Levels suck, try to avoid them.

Anyway, I did this, and it worked:

stop();
loadMovieNum("blank.swf", 5);
this.onEnterFrame = function() {
        if (_level5 != undefined) {
                if (_level5.getBytesTotal() ==
_level5.getBytesTotal()) {
                        var tmp = _level5.createEmptyMovieClip("foo", 10);
                        trace(tmp);
                        delete this.onEnterFrame;
                }
        }
}

My guess is that you're trying to create a clip on
level 5 before it's fully loaded, and so it's failing.



--- James Tu <[EMAIL PROTECTED]> wrote:

> Is there a way to createEmptyMovieClip on a level
> other than _level0?
> 
> I tried doing this:
> var tmc = _level5.createEmptyMovieClip("foo", 10);
> trace(tmc);  //gives me undefined
> 
> I also tried to load a blank .swf into _level5 and
> then creating a  
> movieclip on _level5 and that didn't work either.
> 
> 
> -James
> 
> _______________________________________________
> [email protected]
> To change your subscription options or search the
> archive:
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 



 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to