I have an action listener :
myText.addEventListener(TextEvent.LINK,linkClickHandler);
As according to this, i need to write an event handler function seperate to handle the text link event.
Now my requirement is i need to write that function in the same line isntead of giving its name.ie, something like
mytext.addEventListenet(TextEvent.LINK,
function(event:TextEvent) {....code comes here....});
can i do like this in AS3.What will the syntax for this if possible.
Also i want to know, wether i can pass one more extra param to the event handler other than event which is the default parameter.