Jason, tnx.
it seems pretty easy, BUT!!!
i m using flex 1.5 !
tried the preventDefault() but its not working here.

?????



--- In [email protected], "Jason Hawryluk" <[EMAIL PROTECTED]> wrote:
>
> Listen to the key events and prevent the default
> 
> Paste below in a new application to test
> 
> <mx:Script>
>  <![CDATA[
>   [Bindable]
>   public var ComboDS:XML = new XML(
>    <item datasource="CmbData">
>     <object label="Mr."/>
>     <object label="Mrs."/>
>     <object label="Dr"/>
>    </item>
> 
>   );
> 
>   private function DisableKey(event:KeyboardEvent):void{
>    if (event.type == "keydown" || event.type == "keyup" ){
>     event.preventDefault();
>     return;
>    }
>   }
>  ]]>
> </mx:Script>
> 
> 
> <mx:ComboBox dataProvider="{ComboDS.children()}" labelField="@label"
> keyUp="DisableKey(event);" keyDown="DisableKey(event);" />
> 
> hope this helps
> 
> Jason







--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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