MovieClipLoader won’t load in ActionScript 2

Posted on Friday, June 29th, 2007 at 5:57 pm by Hans Wichman

Check the following example:


var mc:MovieClipLoader = new MovieClipLoader();
mc.addListener (this);
mc.loadClip(_viewUrl, _root);

Should work right?

Should but doesn’t. What’s the gotcha? It doesn’t work on _root.
Not that that is a bad thing since _root is evil anyway, but I was only writing a ‘quick’ test for something.
Flash turns it into a ‘quirck’ test instead.

Correct way is to load it into a subclip of some kind.

Leave a Reply