09/06/2010

Working with RobotLegs - update #1

Spent most of the day working with RobotLegs on a small Flex 3 app, going well so far. Managed to get my startup event to fire as a Context event, which calls my Application startup command. This then accesses the FlashVars passed in when the swf is loaded via swfObject.

One thing I did find out about accessing these FlashVars, is that in Flex 3 you can access them in your command class by calling "contextView.stage.loaderInfo.parameters", while in Flex 4 I have seen a example where these parameters are accessed via "FlexGlobals.topLevelApplication.parameters". The Flex 4 version does allow the FlashVars to be accessed in the service layer and not the command layer, which is cleaner.

I am having a issue with accessing Value Objects in my Model without Injecting them, not sure why I can only update my VO's unless I Inject them into my model, looking into this now.

Another update tomorrow!!

No comments: