[_] as3 - adding a mc from library using dynamic name
juan kennaugh
contact at jkennaugh.co.uk
Wed Dec 9 14:22:51 GMT 2009
Brilliant, thanks Richard - very helpful as always. Juan Richard Davey wrote: > Hi juan, > > Wednesday, December 9, 2009, 2:11:00 PM, you wrote: > > >> just trying to convert some as2 to as3. >> > > >> can you tell me how I can get this to work?: >> > > >> var animation_to_attach_name:String = "mc_animation_" + >> current_animation; >> var animation:MovieClip = new animation_to_attach_name(); >> >> animations.addChild(animation); >> > > >> How can I instantiate my mc with a dynamically created name? >> > > http://www.photonstorm.com/archives/620/creating-movieclips-dynamically-at-run-time-using-the-linkage-class > > Cheers, > > Rich >