Where is the text property present?
I see what you mean change event.text to event.currentTarget.text
I figured it out, I will post the solution shortly.
Well, I thought I got it but I did not.
In any event, my solution is to extend the TextEvent event.
But I need a little hint on how to do that, since it does not have a clone() method to override like the Event class.
I can't do this while extending the TextEvent event
override public function clone():TextEvent
return new ItemSelectedEvent(_selectedItem);
1 person found this helpful
Did you try this with your first custom event implementation event.currentTarget.text?
I am getting the entire contents of the textArea when I use:
I just want the item that was clicked, which is a text within <a></a> tags.
When the TextEvent was used, this worked easily, but I want to use a custom event that either extendsTextEvent or one that extends the Event class.
I got it to work by using:
I don't think I help you that much, but you're welcome