# This.createEmptyMovieClip help

**URL:** <https://forum.kirupa.com/t/this-createemptymovieclip-help/272389>\
**Category:** Uncategorized\
**Created:** [October 4, 2008, 9:21pm UTC](https://forum.kirupa.com/t/this-createemptymovieclip-help/272389 "2008-10-04T21:21:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![msin33](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@msin33](https://forum.kirupa.com/u/msin33)\
**Post date:** [October 4, 2008, 9:21pm UTC](https://forum.kirupa.com/t/this-createemptymovieclip-help/272389/1 "2008-10-04T21:21:10Z")

</div>

AS 2.0 Flash CS3:

Trying to _resize_ external .swf movie clip, imported to a separate flash file with a movie clip container.

The following code works but the .swf is smaller than the container.

on (press) {  
this.createEmptyMovieClip(“container\_mc”, this.getNextHighestDepth());  
container\_mc.loadMovie (“abc.swf”, “\_root.containerclip”);  
container\_mc.\_x = -320;  
container\_mc.\_y = -135;  
}

* * *

Added foll. to resize. Keep getting ‘statement must appear within onhandler’.

this.onEnterFrame = function() {  
total = container\_mc.getBytesTotal();  
loaded = container\_mc.getBytesLoaded();  
percent1 = Math.round(loaded/total\*100);  
if (loaded\>total);  
}

Any help appreciated.  
Thanks in advance.
