Best approach to this?

Was hoping someone could advice me on the best approach in this scenario;

[doc] class
Has an instance of ‘BgSlide’ class addChilded

[BgSlide] class
Has a few instances of BgLoader class in an array (they get added after they are loaded)

[BgLoader] class
Loads a image into a sprite container.

Now… There’s a bunch of other stuff ‘above’ the BgSlide child back in the document class, and when an instance of ‘bgloader’ Loads, I’d like the mouse cursor to become the progress loader for that slide.

Not quite sure how to accomplish that… I mean the listener is inside the BgLoader class which is nested in another class. How would I get access to something all the way out in the doc class and update it ProgressEvent.Progress?

Thanks guys… :stare:

I’d have BgSlide listen to all of its BgLoader children and have it broadcast to the rest of the movie.

so essentially creating listeners all the way down the chain? Seems so clunky :confused:

Think of BgSlide as a manger class. I assume that it handles the creation of the BgLoader instances. So when you create a new instance of BgLoader, just add BgSlide as a listener of it. Then you’ll have one function in BgSlide which listens for all the events from it’s children and re-broadcasts it to whoever wants it.