Cannot reload the same SWF in a sequence

Hi guys,

I’m completely new to Actionscript. I have worked out the following code to load a new swf…I am trying to make several SWF files load in sequence.

The mobile device I am putting these on, will not replay the same SWF twice, so I am assuming that the code is not properly removing the SWF files from the cache.

Please help if you can!!! Really need some advice.

Here’s the code:

background_button.[COLOR=#000000]addEventListener[/COLOR][COLOR=#000000]([/COLOR]MouseEvent.[COLOR=#000000]CLICK[/COLOR], fl_ClickToLoadUnloadSWF_[COLOR=#000000]3[/COLOR][COLOR=#000000])[/COLOR]; [COLOR=#993300]var[/COLOR] fl_Loader_[COLOR=#000000]3[/COLOR]:Loader; [COLOR=#993300]var[/COLOR] fl_ToLoad_[COLOR=#000000]3[/COLOR]:[COLOR=#993300]Boolean[/COLOR] = [COLOR=#993300]true[/COLOR]; [COLOR=#993300]function[/COLOR] fl_ClickToLoadUnloadSWF_[COLOR=#000000]3[/COLOR]COLOR=#000000[/COLOR]:[COLOR=#993300]void[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#993300]if[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR] fl_Loader_[COLOR=#000000]3[/COLOR] = [COLOR=#993300]new[/COLOR] LoaderCOLOR=#000000[/COLOR]; fl_Loader_[COLOR=#000000]3[/COLOR].[COLOR=#993300]load[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]new[/COLOR] URLRequestCOLOR=#000000[/COLOR][COLOR=#000000])[/COLOR]; addChildCOLOR=#000000[/COLOR]; [COLOR=#000000]}[/COLOR] [COLOR=#993300]else[/COLOR] [COLOR=#000000]{[/COLOR] fl_Loader_[COLOR=#000000]3[/COLOR].[COLOR=#000000]unload[/COLOR]COLOR=#000000[/COLOR]; removeChildCOLOR=#000000[/COLOR]; fl_Loader_[COLOR=#000000]3[/COLOR] = [COLOR=#993300]null[/COLOR]; [COLOR=#000000]}[/COLOR] fl_ToLoad_[COLOR=#000000]3[/COLOR] = !fl_ToLoad_[COLOR=#000000]3[/COLOR]; [COLOR=#000000]}[/COLOR]
Thanks