That is not runtime though, since you are embedding the swf. I think you'd have 
to use a Loader or a SWFLoader to get the assets at runtime.

--- In [email protected], "hpatino.rm" <hpat...@...> wrote:
>
> check this link
> 
> http://www.adobe.com/devnet/flex/quickstart/embedding_assets/#EmbeddingSwfLibraryAssets
> 
> <mx:Application>
> 
> <mx:Script>
>     <![CDATA[
>             [Embed(source="assets/library.swf", symbol="BadApple")]
> 
>             [Bindable]
>             public var BadApple:Class;
>             
>             [Embed(source="assets/library.swf", symbol="Pumpkin")]
> 
>             [Bindable]
>             public var Pumpkin:Class;
>                         
>         ]]>
>     </mx:Script>
> 
>     <mx:Image id="badApple" source="{BadApple}" width="150" height="151.8"/>
> 
>     <mx:Image id="pumpkin" source="{Pumpkin}" width="150" height="131.7"/>
>     
> 
> </mx:Application>
> 
> HP
>


Reply via email to