[osflash] Using MovieAssetMaterial with Flex

Glen Pike postmaster at glenpike.co.uk
Wed Mar 19 10:08:33 PDT 2008


Hi,

    This article talks about using MovieMaterial vs MovieAssetMaterial.

    http://www.rockonflash.com/blog/?p=101

    For stuff in Flex, if you want to use external assets that you load 
at compile time, you have to Embed them:

    http://www.bit-101.com/blog/?p=853

    With this you can Embed a single SWF, or use the LinkageID set in 
Flash to specifically target a Symbol.

    Then you can instantiate these symbols at runtime - you may need to 
cast them though:

    mySymbolInstance = new SymbolInstance() as MovieClip;

    You can embed a MovieClip at compile time, so I would guess you 
could then use this as a MovieMaterial.

    Not sure about loading stuff at runtime and using it.

    HTH

    Glen

victoria powers wrote:
> How would I go about using MovieAssetMaterial with Flex?  I understand 
> how this works using Flash because you have actual library assets with 
> linkage identifiers, but with Flex you dont.
> ------------------------------------------------------------------------
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>   

-- 

Glen Pike
01736 759321
www.glenpike.co.uk <http://www.glenpike.co.uk>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20080319/85d1eaf7/attachment.html 


More information about the osflash mailing list