You instantiate classes, so 'things from the library'.
There is no 'stage' in an swc.

> How do you work with the laying objects out in flash then accessing them in 
> flex properly?

You wrap a class around them, so throw them in a MovieClip and execute the 
"Create Flex Component" command on that movieclip.
You then create instances of that MovieClip in Flex through its Linkage ID or 
if you used a package (and class) through the full 
package+class name.

regards,
Muzak

----- Original Message ----- 
From: "{reduxdj}" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, August 18, 2007 6:15 PM
Subject: [Flashcoders] AS3 MovieClip - Flex .swc compile error - null 
objectreference


>I compiled a flash movieclip component .swc for flex from flash, problem is,  
>I get a null object error when i try to access the 
>instance of things on the stage, however, this error passes the testing inside 
>flash but not flex.  Do all objects need to be 
>instianted from the library by casting or can you instaniate them from the 
>stage too?
> How do you work with the laying objects out in flash then accessing them in 
> flex properly?
>
> var p1:MovieClip = new Product as MovieClip
>
> Or can i instaniate with instance names?
>
> Thanks,
> Patrick
>


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to