Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81C8E10513 for ; Tue, 16 Apr 2013 00:28:18 +0000 (UTC) Received: (qmail 72627 invoked by uid 500); 16 Apr 2013 00:28:16 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 72586 invoked by uid 500); 16 Apr 2013 00:28:16 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 72495 invoked by uid 99); 16 Apr 2013 00:28:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 00:28:16 +0000 Date: Tue, 16 Apr 2013 00:28:16 +0000 (UTC) From: "Mark Kessler (JIRA)" To: dev@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (FLEX-24780) Initially I can change the selectedItem in a List programmatically, but if the event preventDefault is called anytime, I can no longer change the selectedItem programatically. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-24780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Kessler closed FLEX-24780. ------------------------------- > Initially I can change the selectedItem in a List programmatically, but if the event preventDefault is called anytime, I can no longer change the selectedItem programatically. > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: FLEX-24780 > URL: https://issues.apache.org/jira/browse/FLEX-24780 > Project: Apache Flex > Issue Type: Bug > Components: Spark: List > Affects Versions: Adobe Flex SDK 4.0 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Browser: Firefox 2.x > Language Found: English > Reporter: Adobe JIRA > Assignee: Mark Kessler > Fix For: Adobe Flex SDK Next > > > 1.Click the button. The selectedItem is changed programmatically. > 2.Click on the list. The changing handler is called, the preventDefault is executed and the selectedItem is not changed. > 3.Click on the button again. The changing handler is executed and the selectedItem does not change. > > import spark.events.IndexChangeEvent; > protected function myButton_clickHandler(event:MouseEvent):void{ > if(myList.selectedIndex == 0) myList.selectedIndex = 1; > else myList.selectedIndex = 0; > } > protected function myList_changingHandler(event:IndexChangeEvent):void{ > event.preventDefault(); > } > ]] > > > > > > > > > > Item1 > Item2 > > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira