A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: repeating external swf in air for android problem

Threaded View

  1. #1
    Senior Member
    Join Date
    May 2016
    Posts
    451

    repeating external swf in air for android problem

    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.COMPLETEonLoaded);
    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
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center