2010年1月19日星期二

Learning SWFLoader in Flex.

Currently trying to embed different assets into flex.

Of course, the most interesting thing is SWF…

<mx:SWFLoader id="loader1" source="@Embed(source='flexapp.swf')"/> 


And to a further extend, we can control the swf in some way,



public var loadedSM:SystemManager;


loadedSM = SystemManager(myLoader.content);


loadedSM.application["lblOne"].text = "I was just updated.";


to see more details:



http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html

沒有留言: