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();
      this.createEmptyMovieClip("mc11", this.getNextHighestDepth());
      var loader= new MovieClipLoader();

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