Convert String to MovieClip in Flash AS3
March 16th, 2010 Posted in ActionScript 3
Pretty straightforward:
function doClick(e:Event):void { this[e.target.name].gotoAndStop('over') }
Of course, in the case above you could actually just use:
e.currentTarget.gotoAndStop('over')