# Action script movement

**URL:** https://forum.kirupa.com/t/action-script-movement/13228
**Category:** Uncategorized
**Created:** [February 10, 2003, 4:13pm UTC](https://forum.kirupa.com/t/action-script-movement/13228 "2003-02-10T16:13:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gbay](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gbay](https://forum.kirupa.com/u/gbay)
#### Post date: [February 10, 2003, 4:13pm UTC](https://forum.kirupa.com/t/action-script-movement/13228/1 "2003-02-10T16:13:12Z")

</div>

hi all,  
i hope you’ve seen this effect before or it may not make sense…  
you have a square in the movie which displays teh main content. you have buttons that when you click on, displays an exetrnal swf in the main square. this is the cool bit… the square resizes itself depending on how big (physically) the movie being loaded is. does anyone know how i can do this?  
any help is much appreciated.

- gBay

---

<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: [February 10, 2003, 4:21pm UTC](https://forum.kirupa.com/t/action-script-movement/13228/2 "2003-02-10T16:21:11Z")

</div>

I think if you know ahead of time how big the swf is going to be then it’s easy to do… all you have to do is anymate your box to the right size and then load the movie… I dont know about loading a swf for which you dont know the size…

---

<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: [February 10, 2003, 4:24pm UTC](https://forum.kirupa.com/t/action-script-movement/13228/3 "2003-02-10T16:24:59Z")

</div>

[http://www.umbc.edu/interactive/fla/scaler.swf](http://www.umbc.edu/interactive/fla/scaler.swf)  
[http://www.umbc.edu/interactive/fla/scaler.fla](http://www.umbc.edu/interactive/fla/scaler.fla)

---

<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: [February 10, 2003, 4:37pm UTC](https://forum.kirupa.com/t/action-script-movement/13228/4 "2003-02-10T16:37:25Z")

</div>

oh man, that was fast! i just wrote a really simple version, but this rocks.  
cheers man!

- D
