Log in

View Full Version : Loading a swf into a container



nate51
02-06-2008, 02:47 AM
I am trying to do something and am getting very lost in the process.

I have a stage with thumbnails on the left and a blank MC called "container" on the right. I have seen this done before where when I click the thumbnail on the left a swf movie will load into the container, reason for this is my swf movie is not the same size as my stage and I have a square set up for the movie file.

Does anyone know how to do this?

BLiZZaRD
02-06-2008, 06:32 AM
container.loadMovie( "/path/to/loaded.swf", level_number );


container.loadMovie loads the prescribes swf in an MC named "container"

"/path/to/loaded.swf" is the URL path to the movie swf you want to load

level_number is the stacking order of the movie, higher numbers = higher placement, like a z-index. If you are only loading one movie at a time, you MAY leave that off if you prefer.