If you are using MXML, then the code between the quotes in an event handler
is not the handler itself, it is wrapped by something else, so you could add
an additional parameter.
However, it is often better to check the event.target's properties and make
a decision from there.
1 person found this helpful
You can pass any number of arguments in your click handler as it is in MXML so you can do something like this...
click="ow1_clickHandler(event, 'some param')"
In order to pass this value to the PopUp create one Bindable public variable in your ow1PopUp popup component and bind it to title property of your TitleWindow component as shown below:
[Bindable]public var titleText:String="";
protected function ow1_clickHandler(event:MouseEvent, title:String):void
popup.titleText = title;
Thanks Bhasker, exaclty what I needed!