2 Replies Latest reply on May 11, 2011 8:25 AM by adninjastrator

    External SWF

    ProtlerOfficial

      I put external SWF file to the parent one. but everythin's working wrong now. How to let it work right.

       

      My code:

       

      var PLoader:Loader = new Loader();

      addChild(PLoader);

      var url:URLRequest = new URLRequest("/App.swf");

      PLoader.load(url);

       

      stage.addEventListener(Event.RESIZE, event3);

       

      function event3(e:Event):void

      {

        PLoader.x = 20;

        PLoader.y = 100;

      }

       

      function event4(d:DisplayObject):void

      {

        event3(null);

      }

       

      Perhaps the better way to do this exists.