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:
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 modified it for KM as:
I have a Movieclip in the library with a bitmap graphic loaded and the link name is set to 'deck'
Code:
myBitmapData = flash.display.BitmapData.loadBitmap("deck");

var mc = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
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.

Anyone shed some light here? (Wilbert?)