Hi folks
So I have this Photo class than handles loading a pic, and dispatches an event when the loading is done with:
dispatchEvent(new Event("complete"));
… which is simple and works, but now I’d like to make something more advanced. I’d like to dispatch the load ratio.
So far I have extended the Event class, with my own EventRatio class, and I can put properties on that class. Which is cool, but I need something more dynamic than just sending a fixed value…
So, what is the best way to connect the Loader object of the Photo object, with the EventRatio object?
Thanks