I just tried it and it didn't work. I don't think that the syntax works.
var tmc = this.createEmptyMovieClip("testing", 20);
trace(tmc); //traces _level0.testing

It creates an empty movie clip on depth 20 not _level20.

-James

On Mar 27, 2007, at 7:30 PM, Omar Fouad wrote:

If you need to create a movieClip on level 20 for example :
var myClip:MovieClip = createEmtpyMovieClip("myClipInstance", 20)
Note that the secont parameter (20), is the level number you wish the
movieClip is created, in this case therefore will not get into _level0..

if you Need to get a movieClip nasted into another so:

var myClip:MovieClip = containerClip.createEmptyMovieClip ("otherMcInstance",
containerClip.getNextHighestDepth);

The second Parameter specifies the next Free Level inside the containerClip
where the myClip will be nasted...

Hope it helps....


On 3/28/07, 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




--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
_______________________________________________
[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



_______________________________________________
[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