Loading movies and sizing them

Hey, i havent been on in a while, ive been pretty busy, but im going to try to get back into flash, because i know more about programming, etc.

What i was wondering, is how to load a .swf file into a banner im making, and then resize the swf so i am able to make it fit into where it needs to be. If theres a certain function to use for it, please post it, and preferably its parameters. i was also wondering what i would use to activate the loading, like - onWhatGoesHere.

any help would be appreciated

thanks

you can resize the movie either by using the ._width and ._height parameters of the loaded mc or scaling the mc using the ._xscale and ._yscale parameters.

hope that helps

i tried that but its not workin. i wanted to have it load into a certain area, so i set its coords and then its size via ._height and ._width.

heres my code:

onPlay
{
_root.createEmptyMovieClip(“mainArea”, 1);
loadMovie(“preheader.swf”, “mainArea”);
mainArea._x = 250;
mainArea._y = 48;
mainArea._height = 446.9;
mainArea._width = 92;

}

I had the same problem and this worked for me
[AS]onPlay
{
_root.createEmptyMovieClip(“mainArea”, 1);
_root.mainArea.loadMovie(“preheader.swf”);
_root.mainArea._x = 250;
_root.mainArea._y = 48;
}[/AS]
I am still unsure about my action scripting abilities so if it does not work I apologize and never listen to me again.

still doesnt work. thanks for the try though

heres the code so far:
[AS]
onPlay
{
_root.createEmptyMovieClip(“mainArea”, 1);
_root.mainArea.loadMovie(“preheader.swf”);
_root.mainArea._height = 92;
_root.mainArea._width = 446.9;
_root.mainArea._x = 250;
_root.mainArea._y = 48;
}
[/AS]

aright i got it. instead of using _height and _width, im using _xscale and _yscale and it works. thanks for the help