When I call unloadClip on a MovieClipLoader instance after
loading has started, but before loading finishes, the clip
continues loading. Is there any kind of "stop()" functionality for
I have a main image viewer tied to button events that tell it
to load the next or previous image. So if the user clicks the next
button 10 times, the MovieClipLoader instance will load all 10
clips, rather than dumping the UrLs sent by the previous 9 clicks.
I know I can just disable the buttons until the data has loaded,
but that shouldn't be necessary.
I've tried these workarounds with no success:
- Re-initializing the moviecliploader instance I am using
when either button is clicked
- Deleting the target movie of the previous load, and putting
the new target on another level with a different name
I thought about setting the _alpha property of the targets of
previous load requests to 0, but that still means that the user has
to wait for each image to download before they get to the one they
wanted. So they don't see the clips loading but they have to wait
I haven't tried this, but I found this advice from a google
When using the MovieClipLoader the .unloadMovie will only
work after the
'onLoadStart' has been called. If you can wait until that
event has been
dispatched then the download should stop. Otherwise it
behaves as you have
said, it just keeps loading as usual.
Also, if you tell the MovieClip to load another movie (ex.
"null") it will
cancel the current load and begin on the next one. Of course
if that one
doesn't exist it fulfills your purpose of simply canceling a
Where it says .unloadMovie above I assume that's a mistake
and that they mean the MovieClipLoader .unloadClip method.
And in the second paragraph I assume its supposed to be
MovieClipLoader instead of MovieClip.