Thanks for the information, especially about the loader being added to
the display list.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Loading Flex into Flash is not guaranteed to work, especially if fl.*
> components are involved.  Flex expects to have access to the stage and
> makes other assumptions.  Any loader loading a Flex app must be added to
> the display list before calling load().
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, March 06, 2008 2:24 PM
> To: flex
> Subject: [flexcoders] Load Flex SWF into Flash - Error Msg
> 
>  
> 
> Hello All ---
> 
> I am just moving into Flex 3 from Flash CS3/AS3 and am trying to import
> a Flex compiled SWF into Flash. I followed this tutorial, which seems to
> work well:
> 
> http://seeing-is-believing.blogspot.com/2007/11/flex-components-in-flash
> -example-with.html
> <http://seeing-is-believing.blogspot.com/2007/11/flex-components-in-flas
> h-example-with.html> 
> 
> If I put the code on a frame in Flash, not using any custom document
> class everything works fine. However, when I try and load the Flex SWF
> into my Flash Document class via a custom class loading file which
> basically implements the prior referenced code, I get the following
> error:
> 
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
>     at mx.managers::LayoutManager/set
> usePhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\
> mx\managers\LayoutManager.as:325]
>     at
> mx.core::Application()[E:\dev\3.0.x\frameworks\projects\framework\src\mx
> \core\Application.as:274]
>     at CDForm()[C:\TriggerFish FLEX\src\CDForm.mxml:0]
>     at _CDForm_mx_managers_SystemManager/create()
>     at
> mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frame
> works\projects\framework\src\mx\managers\SystemManager.as:2438]
>     at mx.managers::SystemManager/http://www.a!
> dobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\3.0.x\framework
> s\projects\framework\src\mx\managers\SystemManager.as:2330
> <http://www.adobe.com/2006/flex/mx/internal::docFrameHandler%28%29%5BE:%
> 5Cdev%5C3.0.x%5Cframeworks%5Cprojects%5Cframework%5Csrc%5Cmx%5Cmanagers%
> 5CSystemManager.as:2330> ]
> 
> Any insight into why I am getting this error:
> 
> Thanks for any and all replies.
>


Reply via email to