Does anyone has some links or directions about 

How to mark an region over loading an image into a bitmapData on the stage and 
copy parts of it ?

I´ve tryed the simplest example from FL 8 reference manual and I didn´t get 
just to load the image on the stage

In the manual 

...............................................................................................
import flash.display.BitmapData; 

var linkageId:String = "libraryBitmap"; 

var myBitmapData:BitmapData = BitmapData.loadBitmap(linkageId); 

var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth()); 

mc.attachBitmap(myBitmapData, this.getNextHighestDepth()); 

..............................................................................................................................

as loadBitmap is a static method so I must have inside a class so I did 

import flash.display.BitmapData;
class LoadBitmap
{
 private var _myBitmap:BitmapData  ;
 
 function LoadBitmap (holder:MovieClip,linkageID:String)
 {
  trace( "LoadBitmap constructor " + holder + "  " + linkageID);
  // it works 
  //_myBitmap = new BitmapData(100, 80, true, 0xCCCCCCCC);
  
  // it does not works and I get undefined to _myBitmap
  //_myBitmap= BitmapData.loadBitmap (linkageID);
  
  trace ( _myBitmap ) ;
  
  var mc:MovieClip = holder.createEmptyMovieClip ("mc", 
holder.getNextHighestDepth());
  mc._x = 0;
  mc._y = 0;
  mc.attachBitmap ( _myBitmap, 0);
 }
}

and instantiate it in the main timeline 

var loadBitmap:LoadBitmap = new LoadBitmap(this, "myPhoto");

Nothing happens

What am I doing wrong?

in time:   myPhoto is there in the Library 

João Carlos 
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to