PDA

View Full Version : Flex loadmovie problem


n0rthwood
01-29-2006, 04:32 PM
Hi,everyone,

I use flex 1.5 now

sometimes I want to load a another movie into the current flex app

I use canvas as the container.

<mx:Canvas id="testArea" width="430" height="220" creationComplete="testArea.loadMovie('test.swf','0')">
</mx:Canvas >
like this.


I can see the movie is loaded. but if there is a List control, it won't show up .
I konw it is because the container Flex app. don't have List control in its lib.
But, even I add a list control in the Flex app and import mx.controls.List(and set its visibility to false, all I want is to add a list control to its lib). it still doesn't work.

Any ideas?

thanks

hangalot
01-30-2006, 04:01 PM
create the list in the application using mxml and then on creationcomplete of the container destroy that object.