oh; sorry i though it might be about the same. No Flex1.5 here.
 
 
Jason
 
 
-----Message d'origine-----
De : [email protected] [mailto:[EMAIL PROTECTED]De la part de shemeshkale
Envoyé : dimanche 10 septembre 2006 11:21
À : [email protected]
Objet : [flexcoders] Re: how to cancel down arrow on a combobox

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

?????

--- In [EMAIL PROTECTED]ups.com, "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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to