# What's wrong with this script?

**URL:** <https://forum.kirupa.com/t/whats-wrong-with-this-script/222036>\
**Category:** Uncategorized\
**Created:** [April 10, 2007, 10:29am UTC](https://forum.kirupa.com/t/whats-wrong-with-this-script/222036 "2007-04-10T10:29:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hydra](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@Hydra](https://forum.kirupa.com/u/Hydra)\
**Post date:** [April 10, 2007, 10:29am UTC](https://forum.kirupa.com/t/whats-wrong-with-this-script/222036/1 "2007-04-10T10:29:18Z")

</div>

I want that my movieclip load a file swf named “main.swf” and then trace its Bytes.  
Below i reported my script.

```auto
this.createEmptyMovieClip("main",this.getNextHighestDepth());
loadMovie("main.swf","main");
var bt = main.getBytesTotal();
trace(bt);

```
