This content has been marked as final. Show 2 replies
If you use the MovieClipLoader class, it has inherent events that you can use to determine if the loading is still in progress or if the loading has been completed.
Thanks. Then I could store a MovieClipLoader in my picture-associated object and check when coming in from the outside to see if <> undefined ?
My question has to do with "concurrency" -- that is, if in one part of the program I'm running through an array of these picture-objects, creating MovieClipLoaders and storing them in my picture-object, but elsewhere in the program I'm looking for mouseclicks and if a user wants to view a particular picture then I go ahead and check the associated picture object to see if it's already loading -- what lag, if any, is there in assigning the MovieClipLoader in my bulk loading in the array and checking for it in my mouseclick handling?
That is to say, if I have two parts of the program both trying to load the same picture, I need a "lockout" so that they don't both try to load it at the same time -- and this "lockout" would be the MovieClipLoader -- one or the other will do new MovieClipLoader() and the other will check for this before trying to create it. But what I'm curious about is whether there is a lag between one part of the programming checking for this and creating it, and the other part checking for it -- and how to deal with that.