PDA

View Full Version : loadMovie and setting size


Zath
06-07-2006, 03:37 PM
I am using the code below to load a movie into a container.
The movie is too big for the container and I need to resize it.


this.createEmptyMovieClip("loader",1);

loader._x=0;
loader._y=0;

//loader._width = 456; // makes the movie disappear
//loader.height = 341;

loader.loadMovie("testdraganddrop.swf");


I've been looking around for a way to do this with no luck.

Suggestions?

Thanks all,

Zath

mcmcom
06-07-2006, 03:45 PM
just set the size of the loader once the movies loaded in it, it should affect both of them.

loader._xscale = 50;
loader._yscale = 50;

will reduce the overall size by half.

hth,
mcm

Zath
06-07-2006, 04:18 PM
Excellent!

Thanks,

Zath