0 Replies Latest reply on Sep 4, 2006 4:28 AM by jagguy99

    mc image doesn't copy

    jagguy99 Level 1
      //this creates 1 image on screen and it should create 2 since i copied the movieclip with draw
      //why only 1 image and not 2?

      var bmp1:BitmapData = BitmapData.loadBitmap("cave1");
      var bmp2:BitmapData =new BitmapData(64,64);


      this.createEmptyMovieClip("mc1", this.getNextHighestDepth());
      //var loader= new MovieClipLoader();
      //loader.loadClip("cave1.png",mc1);
      this.createEmptyMovieClip("mc11", this.getNextHighestDepth());
      var loader= new MovieClipLoader();
      loader.loadClip("cave1.png",mc11);
      mc11._x=200;

      //bmp2.draw(bmp1);
      this.createEmptyMovieClip("mc2", this.getNextHighestDepth());
      bmp2.draw(mc1, new Matrix(), null,null, new Rectangle(0,0,32,32));
      //bmp2.draw(bmp1);
      mc2.attachBitmap(bmp2, mc2.getNextHighestDepth());


      mc2._y=100;