# Flash8 - loadMovie - set size of the movie

**URL:** <https://forum.kirupa.com/t/flash8-loadmovie-set-size-of-the-movie/259633>\
**Category:** flash\
**Created:** [May 7, 2008, 11:07am UTC](https://forum.kirupa.com/t/flash8-loadmovie-set-size-of-the-movie/259633 "2008-05-07T11:07:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sol](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sol](https://forum.kirupa.com/u/sol)\
**Post date:** [May 7, 2008, 11:07am UTC](https://forum.kirupa.com/t/flash8-loadmovie-set-size-of-the-movie/259633/1 "2008-05-07T11:07:35Z")

</div>

[SIZE=3][FONT=Calibri]We have used loadMovie to load some small SWF files on a home page we have made. The swf files are in different sizes and we need to be able to set the size. How do we do this?[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]We hoped the problem was solved with the following code, but this code only sets the size of the variable “minRamme”, the contents are still to big, resulting in only a part of the swf file being visible. [/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]Anyway the following code ignored the onRelease command, so the swf file started playing at once. How come?[/FONT][/SIZE]

[SIZE=3][FONT=Calibri]knapp.onRelease = Function(); {[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]minRamme = this.createEmptyMovieClip(“clip”,0);[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]minRamme.loadMovie(“ann kristin.swf”);[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]minRamme.height = 400;[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]minRamme.width = 600;[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]minRamme.\_x = 0;[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]munRamme.\_y = 0;[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]}[/FONT][/SIZE]

[FONT=Calibri][SIZE=3]Thanks in advance![/SIZE][/FONT]

---

<div class="post-metadata">

**Author:** ![sol](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sol](https://forum.kirupa.com/u/sol)\
**Post date:** [May 15, 2008, 12:50pm UTC](https://forum.kirupa.com/t/flash8-loadmovie-set-size-of-the-movie/259633/2 "2008-05-15T12:50:05Z")

</div>

Thanks four your help, I haven’t been here for a week - kind of busy, but I will try this. If you have tested it, I’m sure it works. Thanks again!
