Sign in to follow this  

[web] [FLASH] design problem with my graphicsmanager

This topic is 3577 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

yo! I'm having trouble.. flash is kind of a pain with loading files n stuff. so here's what I want to do. I want to load an image and once that's done I want to return the Bitmap data. But the problem is, there's no bitmap data until Event.COMPLETE has been done, yet flash allows me to do all kinds of stupid things while the file is being processed. I'll show you my graphicsmanager so far. right now my GetImage calls itself a bunch of times before it actually has the bitmap data to return. which isn't good ;) so how can I make the GetImage function WAIT for the file to have been loaded? I get stackOverflow if I'm unlucky cause the GetImage calls the LoadImage function gazillions of times because the bitmap data hasn't been made just yet. and no I can't simply set the filename and add it to the arraylist then the imagedata won't be ready and the place I'll be using it will whine about it being null. pretty prease help! http://www.pastebin.ca/926766

Share this post


Link to post
Share on other sites

This topic is 3577 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this