This content has been marked as final. Show 3 replies
Well, I think the simplest solution is to use Loader component. Place your buttons on the first frame of the timeline then open Components panel and drag loader on the stage. Give it a instance name "loader" and then drop the following code to the first frame of your timline..
and so on...
In the Loader component properties panel you can set up some more things like scaling the image to fit the loader size etc..
If you dont want to use loader, you have to use MovieClipLoader class which is described in help. You need to create a empty movieclip and then tell the MovieclipLoader to load content into that movieclip using MovieClipLoader.loadClip method... some more code required to make it work but if you'll copy-paste the example from help it will work.
The benefit of using MovieClipLoader is better controll over whats happening - you can handle loading progress, errors etc with events triggered by the class.
use an onPress handler to trigger your loadMove() statement. for example:
[Give it a instance name "loader" and then drop the following code to the first frame of your timline..
The code u gave me, on what layer should I put it ? On the same layer as where my button codes are located ?
Because I tried putting your code and all I could see in the loader area is a white box...