hi friends
I need your help
my problem:
I have a file in animate cc that loads an external swf using this code
PHP Code:
stop();
var myloader:Loader = new Loder();
var url:URLRequest = new URLRequest("myswf.swf");
myloader.load(url);
myloader.x=0;
myloader.y=0;
addChild(myloader);
When i test my project in animate , the file is working fine
But when I export the file to Android and test the file, I find the flash does not stop and works repeatedly
i tested an other code
PHP Code:
var context:LoaderContext = new LoaderContext();
context.allowCodeImport = true;
var loader:Loader=new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded);
loader.load(new URLRequest("myswf.swf"), context);
function onLoaded(e:Event):void
{
addChild(loader);
}
this.stop();
but the same problem
Is any expert to modify the programming of this file?
thank you