Actionscript 3: document class Q
Actionscript 3: document class Q
Out of context: Reply #12
- Started
- Last post
- 14 Responses
- nadnerb0
one other thing - add listeners in the loop, then find out which target they're coming from when you capture the event. i.e.
for (var i:uint = 1; i <= 4; i++) {
home_mc.icons_mc["b" + i + "_mc"].addEventListener(MouseEve... doOver);
}public function doOver(e:MouseEvent):void {
e.target.gotoAndPlay("over");
}