use the close() method of your loader. but do not try and apply that if nothing is currently loading or, i believe, you will trigger an error.
Thanks Kglad, it all worked fine but can you help me in this.
I have 4 movieclips (_a,_b,_c,_d) when i click each of the movieclip they load a SWF(my_mc)
now when the swf file loades it starts loading a Sound(mp3)
Now when i press another button (_b) while this mp3 is loading
all the methords like Loader.close and loader.unloadAndStop() workes fine but i dont know how dose the MP3 loades and start playing
I also used the below script in my_mc.swf , but it wont work
1 person found this helpful
i don't know what "this" is referencing but i doubt it has an Event.unload event. use the trace function to confirm that is the problem.
or just replace with this to solve the problem: