# \[FMX\] - Resize load movie?

**URL:** https://forum.kirupa.com/t/fmx-resize-load-movie/11675
**Category:** flash
**Created:** [January 20, 2003, 10:52pm UTC](https://forum.kirupa.com/t/fmx-resize-load-movie/11675 "2003-01-20T22:52:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gis](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@Gis](https://forum.kirupa.com/u/Gis)
#### Post date: [January 20, 2003, 10:52pm UTC](https://forum.kirupa.com/t/fmx-resize-load-movie/11675/1 "2003-01-20T22:52:58Z")

</div>

HI,

How do you resize a swf that is loaded into another movie.

I use:

\_root.createEmptyMovieClip(“placeholder”, 1);  
loadMovie(“movie.swf”, “placeholder”);  
placeholder.\_x = 10;  
placeholder.\_y = 50;

What and how do I add the size that the loaded movie should resize to? In this case 200 x 100 pixels

An answer with sample code added to this code would be great!

Thanks,

Gis

---

<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: [January 20, 2003, 11:39pm UTC](https://forum.kirupa.com/t/fmx-resize-load-movie/11675/2 "2003-01-20T23:39:11Z")

</div>

You have to wait until the movie is fully loaded and then resize the movie just like any clip (because it IS a clip). Search the forum a bit, you should find your answer.

pom 🙂

---

<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: [January 20, 2003, 11:44pm UTC](https://forum.kirupa.com/t/fmx-resize-load-movie/11675/3 "2003-01-20T23:44:06Z")

</div>

heres a quick example:

```auto

_root.createEmptyMovieClip("placeholder", 1);
loadMovie("loadme.swf", "placeholder");
_root.createEmptyMovieClip("placeholder_onLoad", 2).onEnterFrame = function(){
	if (placeholder.getBytesTotal() && placeholder.getBytesTotal() == placeholder.getBytesLoaded()){
		placeholder._x = 10;
		placeholder._y = 50;
		this.removeMovieClip();
	}
}

```

---

<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: [January 22, 2003, 4:20am UTC](https://forum.kirupa.com/t/fmx-resize-load-movie/11675/4 "2003-01-22T04:20:07Z")

</div>

:-\ I can see this coe checks that the clip is loaded, but how do I set the size after that?

Thanks

Gis
