OK. Thanks for everyone's input! I usually do use movieclips to
nest elemets. A lot of times I'll have each UI screen be
encapsulated in it's own MC so that I can easily do transitions for
the entire screen if needed. I started down the road with _level's
again b/c of an article that I was reading regarding the use of
dynamic shared libraries. It suggested that I preload dynamic shared
libraries into levels before I load movies that I use them...so that
the dsl's are cached...and when I load the movies that use them Flash
won't reload the dsl's.
If I load the dsl's into movieclips instead, flash should still be
caching them right? If I load a movie that uses them into another
movieclip flash should not reload the dynamic shared libraries right?
On Mar 27, 2007, at 8:18 PM, Joshua Sera wrote:
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
_______________________________________________
[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