Basically what I want to do is: Initialize a class, the class function sets up an event listener which loads a sprite sheet into a bitmap. (This part is all going fine for all I can see.) But once the function called by the event listener is over, the bitmap variable that is set up becomes null, and therefore I can’t do anything with it. It’s like nothing happened. In C++ I’d probably use a pointer if something like this happened, but I’m totally at a loss in AS3. Any help?
Thanks in advance!
PS - I’ve tried fiddling with setting the weak references to true and false, manually removing the event listener at the end of the function that it calls, and combinations of the two, but to no avail.