Can ANYONE get _lockroot to work?

Posted by webfac on Stack Overflow See other posts from Stack Overflow or by webfac
Published on 2010-05-05T12:41:51Z Indexed on 2010/05/05 13:38 UTC
Read the original article Hit count: 202

Filed under:
|

Hi Guys,

I have the following code which ultimately loads a SWF into movieclip 'myloader' using a movie clip loader, code as follows:

var myload:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
myload.addListener(listener);

listener.onLoadStart = function(){
    animcontainer.myloader._lockroot = true;
    trace("Started");
    }

listener.onLoadInit = function(){
    animcontainer.myloader._lockroot = true;
    trace("finished and locked");
    }

listener.onLoadComplete = function(){
    animcontainer.myloader._lockroot = true;
    }

myload.loadClip(path, animcontainer.myloader);

The swf I am loading has pause, rewind and play buttons that must be referencing _root as they work fine when played alone. Upon loading them into myloader they no longer work.

Based on the above code surely the myloader clip should be locking as _root after the load is complete?

I have Googled myself dry on this one, no luck. ANY help will be much appreciated,

Thanks.

© Stack Overflow or respective owner

Related posts about flash

Related posts about as2