I am working on a preloader and I have come across something that makes me wonder what would happen if ...
the command:
PHP Code:
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, preLoader);
works the same as this command:
PHP Code:
loaderInfo.addEventListener(ProgressEvent.PROGRESS, preLoader);
but this command doesn't work:
PHP Code:
stage.loaderInfo.addEventListener(ProgressEvent.PROGRESS, preLoader);
I started out with stage.loaderinfo... and it wouldn't work. everything loaded ok, but nothing counted up. my event (e.target) for the listener never fired.
what exactly is "this" specifying? isn't "this" the same as "root" the same as "stage" since I am in the main timeline? would "root" work as well?
What is the downside if I just used loaderinfo.addEventListener(etc...)?