  | | | Listener Object 's best practice | Listener Object 's best practice 2004-03-19 - By Pranav Verma
Back
> try this: > > var mybutton:mx.controls.Button; > myButton.clickHandler = function(){} > > You'll get an error saying there's no property 'clickHandler' > or something...
I dont see any error!!! I am using it this way for quite some time now. PLease check again.
ya I also agree using listener object is a better practise but then may be I am li'le lazy ... i dont want to write those extra 2-3 line of code :)
Pranav.
**************************************************************************** This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us @ http://www.masconit.com ****************************************************************************
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107398 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |