# Resizing a dynamically loaded SWF

**URL:** https://forum.kirupa.com/t/resizing-a-dynamically-loaded-swf/118681
**Category:** Uncategorized
**Created:** [August 8, 2004, 3:38am UTC](https://forum.kirupa.com/t/resizing-a-dynamically-loaded-swf/118681 "2004-08-08T03:38:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)
#### Post date: [August 8, 2004, 3:38am UTC](https://forum.kirupa.com/t/resizing-a-dynamically-loaded-swf/118681/1 "2004-08-08T03:38:31Z")

</div>

Hi, I’m trying to load in a movie using ‘loadMovie’ into an empty movie clip. The movie being loaded is a linear playing .swf movie I made using Sorenson Squeeze. I’ve got a 320x240 video and I want to resize it to 240x180 and play in my flash presentation. Whenever I try to change the movie container’s width/height the movie disappears. I can hear the audo but no video. Here’s an example of what I’ve tried:

```auto
  
   movieToOpen = video_txt.text;
   _root.createEmptyMovieClip("movieHolder_mc", 100);
   movieHolder_mc.loadMovie(movieToOpen);
   movieHolder_mc._width = 240;
   movieHolder_mc._height = 180;

```

I’ve also tried using a .onData event to do resizing there. What am I doing wrong? Or can you just not resize a swf like this? Any help is appreciated, thanks

---

<div class="post-metadata">

### Author: ![bobdoe](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bobdoe](https://forum.kirupa.com/u/bobdoe)
#### Post date: [August 8, 2004, 11:59am UTC](https://forum.kirupa.com/t/resizing-a-dynamically-loaded-swf/118681/2 "2004-08-08T11:59:33Z")

</div>

I’m assuming that youre loading text. Since text in flash is pretty weird, I think you will have to embed the font before it will show any type of animation. The sound will play fine, but the text will just disappear.

---

<div class="post-metadata">

### Author: ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)
#### Post date: [August 8, 2004, 6:30pm UTC](https://forum.kirupa.com/t/resizing-a-dynamically-loaded-swf/118681/3 "2004-08-08T18:30:46Z")

</div>

Actually I’m not loading text. The line ‘movieToOpen = video\_txt.text;’ is from an input box where a filename is specified by the user. I’m loading a 30 minute .swf video into a movieclip which I’m trying to resize from 320x240 to 240x180. When I try to adjust the clip size with \_width and \_height, the movie disappears. The sound is still playing but thats it. Make more sense?

---

<div class="post-metadata">

### Author: ![hart](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hart/32/924_2.png) [@hart](https://forum.kirupa.com/u/hart)
#### Post date: [August 9, 2004, 8:28am UTC](https://forum.kirupa.com/t/resizing-a-dynamically-loaded-swf/118681/4 "2004-08-09T08:28:16Z")

</div>

movieHolder\_mc.\_xscale \*= 0.75;  
movieHolder\_mc.\_yscale \*= 0.75;

//try that… you’ll also have to make sure the movie  
//is loaded b4 you try to resize it

---

<div class="post-metadata">

### Author: ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)
#### Post date: [August 10, 2004, 4:02pm UTC](https://forum.kirupa.com/t/resizing-a-dynamically-loaded-swf/118681/5 "2004-08-10T16:02:55Z")

</div>

I found out my problem was trying to attach the scale code within an onData event. After scratching my head on why it didn’t work, I found this explaining why mine wasn’t working:

[http://www.macromedia.com/support/flash/ts/documents/methods\_replaced.htm](http://www.macromedia.com/support/flash/ts/documents/methods_replaced.htm)

Might be helpful if anyone has run into similar problems.
