Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5468410925 for ; Thu, 13 Mar 2014 17:50:15 +0000 (UTC) Received: (qmail 5476 invoked by uid 500); 13 Mar 2014 17:49:56 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 5107 invoked by uid 500); 13 Mar 2014 17:49:48 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 4964 invoked by uid 99); 13 Mar 2014 17:49:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 17:49:47 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of aharui@adobe.com) Received: from [207.46.163.183] (HELO na01-bn1-obe.outbound.protection.outlook.com) (207.46.163.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 17:49:41 +0000 Received: from BL2PR02MB500.namprd02.prod.outlook.com (10.141.95.147) by BL2PR02MB305.namprd02.prod.outlook.com (10.141.91.17) with Microsoft SMTP Server (TLS) id 15.0.893.10; Thu, 13 Mar 2014 17:49:18 +0000 Received: from BL2PR02MB500.namprd02.prod.outlook.com ([10.141.95.147]) by BL2PR02MB500.namprd02.prod.outlook.com ([10.141.95.147]) with mapi id 15.00.0893.001; Thu, 13 Mar 2014 17:49:18 +0000 From: Alex Harui To: "users@flex.apache.org" Subject: Re: Add event listeners to the textInput skin part of the ComboBox Thread-Topic: Add event listeners to the textInput skin part of the ComboBox Thread-Index: AQHPPtqswUhnLwPjvESm2ExIwOKy25re0l2AgAB3koD//4wfAA== Date: Thu, 13 Mar 2014 17:49:18 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [192.150.22.5] x-forefront-prvs: 01494FA7F7 x-forefront-antispam-report: SFV:NSPM;SFS:(10019001)(6009001)(428001)(51704005)(24454002)(199002)(189002)(479174003)(377454003)(63696002)(85852003)(80976001)(2656002)(85306002)(90146001)(74706001)(74876001)(74502001)(95666003)(31966008)(97186001)(66066001)(95416001)(19580405001)(81816001)(74366001)(74662001)(83072002)(81542001)(50986001)(47976001)(51856001)(54316002)(54356001)(56776001)(49866001)(53806001)(47736001)(76482001)(46102001)(4396001)(92566001)(87266001)(59766001)(77982001)(93516002)(94946001)(86362001)(69226001)(79102001)(83322001)(87936001)(76796001)(19580395003)(93136001)(92726001)(80022001)(56816005)(81686001)(65816001)(97336001)(36756003)(83506001)(94316002)(76786001)(81342001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR02MB305;H:BL2PR02MB500.namprd02.prod.outlook.com;CLIP:192.150.22.5;FPR:E635F054.AEE06FF4.4CF179C4.43EEC150.20224;MLV:sfv;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (: adobe.com does not designate permitted sender hosts) Content-Type: text/plain; charset="us-ascii" Content-ID: <884F80640396CA4C976EDCE89B89B881@namprd02.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: adobe.com X-Virus-Checked: Checked by ClamAV on apache.org The ComboBox itself should dispatch a valueCommit event if the text is changed via drop-down selection. On 3/13/14 10:44 AM, "mark goldin" wrote: >I see. But what I am after is to highlight a text when an item is >selected. >No matter what I do the selected item is not highlighted. However, >switching between any Windows application and Flex will highlight it. So, >it's about positioning a focus somewhere and then place it back to the >combo. Any thoughts? > >Thanks > > >On Thu, Mar 13, 2014 at 12:36 PM, Alex Harui wrote: > >> If you choose from the drop down, the textInput is programmatically >> modified so no change notification event is dispatched. >> >> On 3/13/14 9:37 AM, "mark goldin" wrote: >> >> >I have the following code to accomplish what is says in the title: >> > >> >override protected function childrenCreated():void >> >{ >> >super.childrenCreated(); >> >textInput.addEventListener("change", onValueChange, false, 0, true); >> >} >> >private function onValueChange(event:Event):void >> >{ >> >textInput.selectRange(0, textInput.text.length); >> >} >> > >> >The listener is not called when I use a mouse to change a value. But >>if I >> >type in it does fire. >> >Not sure what would the difference be. Any idea? >> > >> >Thanks >> >>