How do I create instances of a library item via Actionscript?
Printable View
How do I create instances of a library item via Actionscript?
Chris is right. Here's also some info on other types.
MovieClip
myChildMC = myMC.attachMovie('linkID', 'myMC_Child', depth, initObject);
Sound
mySound = new Sound(targetMC);
mySound.attachSound('linkID');
Bitmap (requires flash 8, KM 5.3.0)
myBitmap = flash.display.BitmapData.loadBitmap('linkID');
Thanks, Didn't realize it's the same as in standard AS... Somehow thought it was different in KM... Silly boy