Why the "Click to Load/Unload SWF" code snippet for iOS apps is not working anymore?
Hi,
Some months ago I could use the "Click to Load/Unload SWF" code snippet for iOS apps. It was just this:
stop();
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
import fl.display.ProLoader;
var fl_ProLoader:ProLoader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad:Boolean = true;
function fl_ClickToLoadUnloadSWF(event:MouseEvent):void
{
if(fl_ToLoad)
{
fl_ProLoader = new ProLoader();
fl_ProLoader.load(new URLRequest("1bis.swf"));
addChild(fl_ProLoader);
}
else
{
fl_ProLoader.unload();
removeChild(fl_ProLoader);
fl_ProLoader = null;
}
{
gotoAndStop(5);
}
// Toggle whether you want to load or unload the SWF
fl_ToLoad = !fl_ToLoad;
}
But now it doesn't work when I upload my app for TestFlight. It stays unresponsive.
Any idea what's going on?
Best,
