This is Flex 2?  Correct, we no longer try calling <event>Handler functions, you will need to do addEventListener yourself and pass in the function name.  Note that events now are typed as a class, not Object (Event by default).

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Caroline
Sent: Sunday, December 04, 2005 10:44 PM
To: [email protected]
Subject: [flexcoders] Event Handler Functions

 

Can anyone tell me why the following doesnt work:

import mx.controls.CalendarLayout;
import de.richinternet.utils.Dumper;

class com.dr.containers.MultiCalendarLayout extends CalendarLayout {

      function keyUpHandler(e:Object)
             trace("IN KEY UP"); // Does NOT get called.
      {

      function keyDownHandler(e:Object)
             trace("IN KEY DOWN"); // Called just fine.
      {

}

Do flex components no longer support Event Handler functions? I tried
this with several other components like SimpleButton.buttonDownHandler
and they do not work either.

Anyone?

Much appreciated!









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to