[flexcoders] Re: Strange Behavior When Loading Sub Application

2010-05-14 Thread Amy
--- In flexcoders@yahoogroups.com, "jmbo...@..." wrote: > > Robotlegs uses the ADD_TO_STAGE to auto-magically mediate view components so > dispatching 1 event would not work...I would have to dispatch 1 for each > component. I can manually mediate the components, but that is a lot of work >

Re: [flexcoders] Re: Strange Behavior When Loading Sub Application

2010-05-13 Thread Alex Harui
Thinking about this a bit more, every child of the sub-swf except its systemmanager should get an ADD_TO_STAGE around the time of applicationComplete in the sub-swf. Flex builds the SWF’s ui off-stage. So maybe there’s something else going on. On 5/13/10 12:01 PM, "jmbo...@bellsouth.net" wr

[flexcoders] Re: Strange Behavior When Loading Sub Application

2010-05-13 Thread jmbo...@bellsouth.net
Robotlegs uses the ADD_TO_STAGE to auto-magically mediate view components so dispatching 1 event would not work...I would have to dispatch 1 for each component. I can manually mediate the components, but that is a lot of work for a large app and takes the "magic" away from RL. I will just have

Re: [flexcoders] Re: Strange Behavior When Loading Sub Application

2010-05-13 Thread Alex Harui
Flex SWFs must be on-stage in order to load. Are you worried about missing an ADD_TO_STAGE event? Maybe send a fake one on applicationComplete. On 5/13/10 7:51 AM, "jmbo...@bellsouth.net" wrote: Alex, Your suggestion will work and in fact, that is the way we were doing it. Unfortunate

[flexcoders] Re: Strange Behavior When Loading Sub Application

2010-05-13 Thread jmbo...@bellsouth.net
Alex, Your suggestion will work and in fact, that is the way we were doing it. Unfortunately, we needed to create a Robotlegs context so that we can listen for ADD_TO_STAGE events and allow it to automatically mediator our view components (see below). That is why I added the sub-app as a child