Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > BitmapData (flash.display.BitmapData) > loadBitmap (BitmapData.loadBitmap method) | |||
public static loadBitmap(id:String) : BitmapData
Returns a new BitmapData object that contains a bitmap image representation of the symbol that is identified by a specified linkage ID in the library.
Availability: ActionScript 1.0; Flash Player 8
id:String - A linkage ID of a symbol in the library.
flash.display.BitmapData - A bitmap image representation of the symbol.
The following example loads a bitmap with the linkageId libraryBitmap from your library. You must attach it to a MovieClip object to give it a visual representation.
import flash.display.BitmapData;
var linkageId:String = "libraryBitmap";
var myBitmapData:BitmapData = BitmapData.loadBitmap(linkageId);
trace(myBitmapData instanceof BitmapData); // true
var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001959.html
Comments
liquid_sound said on Jan 2, 2006 at 1:03 AM : pganaye said on Jan 6, 2006 at 3:54 PM : panorezo said on Jan 16, 2006 at 5:28 AM : Juise said on Feb 22, 2006 at 1:34 AM : isite_peter said on Mar 21, 2006 at 4:58 PM : YanPak said on Apr 11, 2006 at 4:49 AM : No screen name said on Sep 17, 2006 at 1:10 PM : dafreq said on Apr 9, 2007 at 2:06 AM : pisikopatikalistor said on Jun 18, 2007 at 9:57 AM : mal.seq said on Jul 21, 2008 at 4:59 AM :