Question
Passing extra argument in event listener?
Is this possible? I have one event handler for several object's events. I would like to pass a value through to the function from the event listener:
function chkEmpty(event:Event){
if(event.currentTarget.text==""){
thisIsBitIWantToBeAbleChange.text = "You haven't entered anything in the box, please try again"
hisIsBitIWantToBeAbleChange.setTextFormat(validate_frmt);
}
}Could I give the event.currentTarget a value that I could test for? So if the value is 1, I effect output1_txt, if 2, output2_txt, etc etc. If so, are there customisable values that I could use that wouldn't do anything to the display object,?
