10 Replies Latest reply on Jan 19, 2016 12:15 PM by johnj67254525

    How to limit a loaded swf file to a scene or a layer?

    johnj67254525 Level 1

      I have imported a swf file in to my main swf file, but I want to limit the file I have imported to a surden layer, and frames/ scene.

      Can anyone show me a nice easy way to do this? - Thanks in advance!


      The code I have used so far is:


      import flash.ui.Mouse;



      var myLoader:Loader = new Loader();                

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




      // (optional)

      myLoader.x = 550;                                     

      myLoader.y = 100;