i have these 2 functions and both are the same:
as you can see disabledAction receives e.target as a paremeter from another function (click function actually).
is there a way to somehow call disabledAction from rollOverHandler ?
(so that the code doesnt repeat)
function disabledAction(target:MovieClip):void {
var txt:TextField = Finder.findTextfield( target as MovieClip ) as TextField;
if (txt) {
txt.textColor = _rollOverColor;
}
}
function rollOverHandler(e:MouseEvent):void {
var txt:TextField = Finder.findTextfield( e.target as MovieClip ) as TextField;
if (txt) {
txt.textColor = _rollOverColor;
}
}