[flexcoders] Re: SubApplications Chapter Deux...

2010-02-02 Thread jamesfin
Here is the final code that will enable you to have a subapplication and send a simple event to the parent from the child... PARENT APPLICATION... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=init()

Re: [flexcoders] Re: SubApplications Chapter Deux...

2010-02-02 Thread Alex Harui
Hmm. I think that you need to set loadForCompatibility before calling load() unless the url for the app is in a different domain. On 2/2/10 9:01 AM, jamesfin james.alan.finni...@gmail.com wrote: Here is the final code that will enable you to have a subapplication and send a simple

[flexcoders] Re: SubApplications Chapter Deux...

2010-02-01 Thread jamesfin
Thanks for the feedback. Ironically, I had just found the systemManager.getSandboxRoot() reference and was putting it in to test! While on the same subject, is systemManager.topLevelSystemManager used in a non-sandboxed-sub-app? I'll blog this for sure as it was quite a hike around the

[flexcoders] Re: SubApplications Chapter Deux...

2010-02-01 Thread jamesfin
And... With what use-case would the loaderContext be used? --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: Thanks for the feedback. Ironically, I had just found the systemManager.getSandboxRoot() reference and was putting it in to test! While on the same

Re: [flexcoders] Re: SubApplications Chapter Deux...

2010-02-01 Thread Alex Harui
TopLevelSystemManager is might be used by a sub-app of that sub-app to get to its parent sub-app if they are both on the same version and not using loadForCompatibility (did you follow that?) LoaderContext is available for those who really know what they are doing and need explicit control for

[flexcoders] Re: SubApplications Chapter Deux...

2010-02-01 Thread jamesfin
Understood! I'll add that to my blog. Thanks again. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: TopLevelSystemManager is might be used by a sub-app of that sub-app to get to its parent sub-app if they are both on the same version and not using loadForCompatibility (did