Somewhere at the top of your swf, probably before any other code, put the line //lock the root to this timeline - any reference to _root == this this._lockroot= true; //your code here