Basic example using RobotLegs 1.5.2

gmastey's Avatar

gmastey

20 May, 2013 11:51 PM

Hi there,

I'm new to Robotlegs and am looking for a basic, up-to-date example using the latest version Robotlegs 1. Looks like the official demo bundle is quite out of date. Any suggestions?

Thanks!

  1. Support Staff 1 Posted by Shaun Smith on 21 May, 2013 12:53 AM

    Shaun Smith's Avatar

    Hello,

    What issues have you encountered with the RL1 demo bundle?

  2. 2 Posted by gmastey on 21 May, 2013 03:19 AM

    gmastey's Avatar

    Well, I got the below errors with HelloFlash, but really I'm partly inferring that they are too old to function properly. The page [here](http://www.robotlegs.org) says the examples could be out of date, and the commits on github are all 3 & 4 years old, well before the 1.5.2 release. Are they supposed to be fully functional?

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.robotlegs.base::EventMap/mapListener()
    at org.robotlegs.demos.helloflash.view::ReadoutMediator/onRegister()
    at org.robotlegs.base::MediatorBase/preRegister()
    at org.robotlegs.base::MediatorMap/registerMediator()
    at org.robotlegs.base::MediatorMap/createMediatorUsing()
    at org.robotlegs.base::MediatorMap/onViewAdded()
    at flash.display::DisplayObjectContainer/addChild()
    at org.robotlegs.demos.helloflash::HelloFlashContext/startup()
    at org.robotlegs.mvcs::Context/checkAutoStartup()
    at org.robotlegs.mvcs::Context()
    at org.robotlegs.demos.helloflash::HelloFlashContext()
    at HelloFlash()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.robotlegs.demos.helloflash.controller::CreateBallCommand/execute()
    at org.robotlegs.base::CommandMap/execute()
    at org.robotlegs.base::CommandMap/routeEventToCommand()
    at MethodInfo-183()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.robotlegs.base::ContextBase/dispatchEvent()
    at org.robotlegs.mvcs::Context/startup()
    at org.robotlegs.demos.helloflash::HelloFlashContext/startup()
    at org.robotlegs.mvcs::Context/checkAutoStartup()
    at org.robotlegs.mvcs::Context()
    at org.robotlegs.demos.helloflash::HelloFlashContext()
    at HelloFlash()

  3. Support Staff 3 Posted by creynders on 21 May, 2013 08:54 AM

    creynders's Avatar

    Are you using flash to compile the example? Because then you need to tick the Export swc option in publish settings.

  4. Support Staff 4 Posted by Shaun Smith on 21 May, 2013 01:44 PM

    Shaun Smith's Avatar

    Yup, sounds like the issue.

    Otherwise, if you're using an IDE like FlashBuilder/IntelliJ and you're compiling against the framework source (instead of the SWC), you'll need to make sure to add the required compiler arguments to prevent the compiler from stripping out metadata.

  5. 5 Posted by gmastey on 21 May, 2013 02:24 PM

    gmastey's Avatar

    Thanks, ticking Export SWC worked. Could you share with me why it worked? In any case, now that I have a working example I can start digging into the framework. Much appreciated.

  6. Support Staff 6 Posted by creynders on 24 May, 2013 05:00 PM

    creynders's Avatar

    Sorry your last post got into the do-you-want-to-buy-viagra-queue.

    The metadata tags are automatically stripped, unless when you tick the export as .swc option in flash, or pass the keep-metadata as an argument to the compiler.

    Glad we could help!

  7. creynders closed this discussion on 24 May, 2013 05:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac