I didn't see that small note to move the loadForCompatibility before the load.  
Now that I have done that, I get this error when sending the test event 
message.  However, if I comment out the loadForCompatibility flag, the child 
swf still loads fine (with a different SDK) and everything works.  Not sure I 
understand why the loadForCompatibility is needed UNLESS it is purely for SWF's 
loaded from a different domain then the parent.


TypeError: Error #1034: Type Coercion failed: cannot convert 
resizeev...@2c66aeb1 to ResizeEvent.
        at 
SubAppTestParent/newText()[/Users/jfinnigan/Documents/android/SubAppTestParent/src/SubAppTestParent.mxml:36]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at 
TestView/sendParent()[/Users/jfinnigan/Documents/android/SubAppTestChild/src/TestView.mxml:21]
        at 
TestView/___TestView_Button1_click()[/Users/jfinnigan/Documents/android/SubAppTestChild/src/TestView.mxml:33]




--- In [email protected], Alex Harui <aha...@...> wrote:
>
> The rules are that each sub-app must load its own RSLs.  I'm still suspicious 
> that you have the load call before setting loadForCompatiblity
> 
> 
> On 2/2/10 10:41 AM, "jamesfin" <james.alan.finni...@...> wrote:
> 
> 
> 
> 
> 
> 
> 
> 
> Forgot to include the error.  This error only appears if I have framework.swc 
> being used via RSL in the child subapplication.
> 
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
> at 
> mx.managers::SystemManager/preloader_rslCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\SystemManager.as:3147]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at 
> mx.preloaders::Preloader/http://www.adobe.com/2006/flex/mx/internal::rslCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\preloaders\Preloader.as:335]
> at 
> mx.core::RSLListLoader/listCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\RSLListLoader.as:238]
> at 
> mx.core::RSLItem/itemCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\RSLItem.as:233]
> at 
> mx.core::CrossDomainRSLItem/loadBytesCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem.as:396]
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , 
> "jamesfin" <james.alan.finnigan@> wrote:
> >
> > For any Multi-Versioned SubApplication, what are the hard and fast rules 
> > about using RSL's?
> >
> > I tried making the parent (3.4sdk) and child subapplication (3.2sdk) both 
> > use RSL's but it fails miserably which doesn't surprise me considering the 
> > complexity of what's going on already.
> >
> > However, if the parent alone has RSL's enabled, all is well. ;)
> >
> >
> > So, what are the guidelines.
> >
> > i.e. Can never use RSL's on subapplications?
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>


Reply via email to