Events
It’s not now that i’m thinking if there’s another way of using events and its calls.
When I want to bind an event to someone like a MovieClip a create at least 5 functions, like this example of some behavior in MouseOver and MouseOut:
1) function addHover(mc:MovieClip):void
{
mc.addEventListener(MouseEvent.MOUSE_OVER,callOver );
mc.addEventListener(MouseEvent.MOUSE_OUT,callOut);
}
2) function callOver(me:MouseEvent):void{applyOverAction(me.ta rget)}
3) function callOut(me:MouseEvent):void{applyOutAction(me.targ et)}
4) function applyOverAction(mc:MovieClip):void{/*your over actions*/};
5) function applyOutAction(mc:MovieClip):void{/*your out actions*/};
then we apply it to some mc and it has the behavior of over and out…simple but I think its too much code isn’t ?
Is there another way of doing something like this ?
thanks
Poofy
Original post by Poofy