4 Replies Latest reply on Jul 9, 2010 3:14 AM by Oli_Wales

    Loading external files into movieclips

    Oli_Wales Level 1

      Hello,

       

      I'm importing images from a folder into movie clips located in my flash, the clip on my first frame loads the graphic, but i can't quite get the others to work

       

       

       

      function loadImage(path:String):Loader{
      var request:URLRequest = new URLRequest(path);
      var loader:Loader = new Loader();
      loader.load(request);
      return loader;
      };
      var image1 = loadImage("image01.jpg");
      this.addChild(image1);
      var image2 = loadImage("image02.jpg");
      imageArea2.addChild(image2);
      var image3 = loadImage("image03.jpg");
      imageArea3.addChild(image3);

       

       

      Cheers