Explain this AS2 code?
Posted
by incrediman
on Stack Overflow
See other posts from Stack Overflow
or by incrediman
Published on 2010-04-01T22:59:47Z
Indexed on
2010/04/01
23:03 UTC
Read the original article
Hit count: 339
actionscript-2
Why does this code trace 'undefined'?
this.createEmptyMovieClip("myLoader",1);
trace(this.myLoader);
this too?
this.createEmptyMovieClip("myLoader",1);
trace(this["myLoader"]);
(when the code is in the constructor of a class which extends MovieClip)
But this code traces _level0.myLoader (code placed on main timeline)
this.createEmptyMovieClip("myLoader",1);
trace(this.myLoader);
© Stack Overflow or respective owner