A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: this.loaderInfo or just loaderInfo...

  1. #1
    Join Date
    Feb 2006

    this.loaderInfo or just loaderInfo...

    I am working on a preloader and I have come across something that makes me wonder what would happen if ...

    the command:
    PHP Code:
    works the same as this command:
    PHP Code:
    but this command doesn't work:
    PHP Code:
    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...)?

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Austin, TX
    In the main timeline, "this" is the same as "root", but the stage is something else. The stage just is, it doesn't have to load.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center