Ok trying to use a bitmap sheet of playing cards but am having trouble getting the bitmapData thing to work..
From the Flash online docs I got the following:
I modified it for KM as:Code: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());
I have a Movieclip in the library with a bitmap graphic loaded and the link name is set to 'deck'
But this doesn't work. I check and myBitmapData is undefinded after that first line so something in the first line is wrong or something else needed to make it work.Code:myBitmapData = flash.display.BitmapData.loadBitmap("deck");
var mc = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
Anyone shed some light here? (Wilbert?)
