Hi,

It seems that we cannot handle low-level events (keyUp, keyDown, etc)
in Flex through the listener objects.

For example, I cannot get the following to work:

<mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml";
creationComplete="initApp()">

<mx:Script>
   <![CDATA[
       import de.richinternet.utils.Dumper;
       function initApp() {
        var listener:Object;
                        
        listener.keyUp = function () { 
                trace("HELLO"); // Never gets here
        }
                        
        dateChooser.addEventListener("keyUp", listener);
      }
   ]]>
</mx:Script>

<mx:DateChooser id="dateChooser" width="100%" />

I know that this works:
<mx:DateChooser id="dateChooser" keyUp="{trace('HELLO')}" width="100%" />

According to Flash 8 Documentation this should work: 

listenerObject = new Object();
listenerObject.keyUp = function(eventObject){
   ...
}
componentInstance.addEventListener("keyUp", listenerObject)

Anyone have any ideas? 









------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to