So, basically, what I want to do is replace the contents of a sword MovieClip that's inside a Player MovieClip already, and is animated, so it has multiple instances of the sword MovieClip across the Player MovieClip.
Can I somehow edit the contents of the sword MovieClip in actionscript so as all the sword MovieClips update and are changed?
What I want to achieve is just changing weapons of a character animation that doesn't require me to await every frame and removeChild() the previous weapon and addChild() the new one of every instance of the weapon.
var weaponName:String = "swordBasic1"; var weaponNameClass:Class = getDefinitionByName (weaponName) as Class; var WeaponName=new weaponNameClass ;
if (PlayerCharMc.currentFrame!=5) { PlayerCharMc.WeaponMc.addChild(WeaponName); } else if (PlayerCharMc.currentFrame==5) { PlayerCharMc.LPunch.WeaponMc.addChild(WeaponName); }
This basically pastes over the previous movieclip the new one, I haven't added removeChilds yet, but I understood that I won't get far with a flexible system. What I want to change is the movieclip in the library dynamically. – lagxbag