Question

I am working on a code where i am using loader to add movie clip to UI Component but I dont' want to use loader. Is there any other way to add movie clip to UIComponent??

Was it helpful?

Solution

You can use SWFLoader. Either place one inside your UIComponent, or if the MovieClip is the only thing inside the UIComponent, you can use the SWFLoader instead of the UIComponent.

Use the load method to load a SWF or an image, eg:

mySWFLoader.load("path/to/the/movie.swf");

If you don't want to load at runtime, you can embed the SWF in the Flex app instead. And in this case you only need an Image component with the source property set. eg:

<mx:Image id="myImage" source="@Embed(source='path/to/the/movie.swf')" />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top