Click to See Complete Forum and Search --> : Symbol Library question
blanius
04-12-2006, 10:57 PM
How do I create instances of a library item via Actionscript?
Chris_Seahorn
04-13-2006, 12:08 AM
http://www.google.com/search?hl=en&q=attachMovie&btnG=Google+Search
w.brants
04-13-2006, 01:08 AM
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');
blanius
04-13-2006, 09:47 AM
Thanks, Didn't realize it's the same as in standard AS... Somehow thought it was different in KM... Silly boy
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.