# Loading movies and sizing them

**URL:** <https://forum.kirupa.com/t/loading-movies-and-sizing-them/18137>\
**Category:** flash\
**Created:** [April 13, 2003, 6:17pm UTC](https://forum.kirupa.com/t/loading-movies-and-sizing-them/18137 "2003-04-13T18:17:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![l0stpr0fet](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@l0stpr0fet](https://forum.kirupa.com/u/l0stpr0fet)\
**Post date:** [April 13, 2003, 6:17pm UTC](https://forum.kirupa.com/t/loading-movies-and-sizing-them/18137/1 "2003-04-13T18:17:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 13, 2003, 9:13pm UTC](https://forum.kirupa.com/t/loading-movies-and-sizing-them/18137/2 "2003-04-13T21:13:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2003, 9:40pm UTC](https://forum.kirupa.com/t/loading-movies-and-sizing-them/18137/3 "2003-05-09T21:40:40Z")

</div>

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;

}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2003, 11:54pm UTC](https://forum.kirupa.com/t/loading-movies-and-sizing-them/18137/4 "2003-05-09T23:54:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2003, 12:19am UTC](https://forum.kirupa.com/t/loading-movies-and-sizing-them/18137/5 "2003-05-10T00:19:21Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2003, 1:43am UTC](https://forum.kirupa.com/t/loading-movies-and-sizing-them/18137/6 "2003-05-10T01:43:54Z")

</div>

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