Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 176091971F for ; Fri, 1 Apr 2016 07:56:26 +0000 (UTC) Received: (qmail 90809 invoked by uid 500); 1 Apr 2016 07:56:25 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 90783 invoked by uid 500); 1 Apr 2016 07:56:25 -0000 Mailing-List: contact issues-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 issues@flex.apache.org Received: (qmail 90774 invoked by uid 99); 1 Apr 2016 07:56:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2016 07:56:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7E01E2C1F5A for ; Fri, 1 Apr 2016 07:56:25 +0000 (UTC) Date: Fri, 1 Apr 2016 07:56:25 +0000 (UTC) From: "Bui Sy Nguyen (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-34840) RangeError: Error #1125: The index 4 is out of range 2. 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-34840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bui Sy Nguyen updated FLEX-34840: --------------------------------- Description: The Spark Alert component throws the following error when press ESC key: RangeError: Error #1125: The index 4 is out of range 2. at spark.components::Alert/onKeyDown()[/Users/erik/Documents/ApacheFlex/git/flex-sdk_RC2/flex-sdk/frameworks/projects/experimental/src/spark/components/Alert.as:842] ======================================= May be you still need a demo code and the platform information, so I copy Robbyn Gerhardt's comment here: Platform: Adobe AIR 19, Mac OS X 10.11 (Desktop Application) Also in Adobe Flash Player 21.1, Windows 10. SDK: 4.14.1 FP: 16, AIR: 16 Code example: Create a Flex mxml application with a button that has "click" event listener pointed to button1_clickHandler() function as below: {code:title=Sample.mxml|borderStyle=solid} protected function button1_clickHandler(event:MouseEvent):void { Alert.show('Message', 'Title', Alert.OK|Alert.CANCEL, null, closeMessage); } /** Die Anwendung wurde geschlossen @param CloseEvent @return void */ protected function closeMessage(e:CloseEvent):void { trace(e.detail); } {code} STEPS: - Run the Flex app - Click the button to show alert dialog - Press ESC key EXPECTED: The alert dialog is closed. ACTUAL: when I press the ESC key, comes the exception mentioned above is occurred was: The Spark Alert component throws the following error when press ESC key: RangeError: Error #1125: The index 4 is out of range 2. at spark.components::Alert/onKeyDown()[/Users/erik/Documents/ApacheFlex/git/flex-sdk_RC2/flex-sdk/frameworks/projects/experimental/src/spark/components/Alert.as:842] ======================================= May be you still need a demo code and the platform information, so I copy Robbyn Gerhardt's comment here: Platform: Adobe AIR 19, Mac OS X 10.11 (Desktop Application) Also in Adobe Flash Player 21.1, Windows 10. SDK: 4.14.1 FP: 16, AIR: 16 Code example: Create a Flex mxml application with a button that has "click" event listener pointed to button1_clickHandler() function as below: {code:title=Sample.as|borderStyle=solid} protected function button1_clickHandler(event:MouseEvent):void { Alert.show('Message', 'Title', Alert.OK|Alert.CANCEL, null, closeMessage); } /** Die Anwendung wurde geschlossen @param CloseEvent @return void */ protected function closeMessage(e:CloseEvent):void { trace(e.detail); } {code} STEPS: - Run the Flex app - Click the button to show alert dialog - Press ESC key EXPECTED: The alert dialog is closed. ACTUAL: when I press the ESC key, comes the exception mentioned above is occurred > RangeError: Error #1125: The index 4 is out of range 2. > ------------------------------------------------------- > > Key: FLEX-34840 > URL: https://issues.apache.org/jira/browse/FLEX-34840 > Project: Apache Flex > Issue Type: Bug > Affects Versions: Apache Flex 4.13.0 > Reporter: Bui Sy Nguyen > > The Spark Alert component throws the following error when press ESC key: > RangeError: Error #1125: The index 4 is out of range 2. > at spark.components::Alert/onKeyDown()[/Users/erik/Documents/ApacheFlex/git/flex-sdk_RC2/flex-sdk/frameworks/projects/experimental/src/spark/components/Alert.as:842] > ======================================= > May be you still need a demo code and the platform information, so I copy Robbyn Gerhardt's comment here: > Platform: Adobe AIR 19, Mac OS X 10.11 (Desktop Application) > Also in Adobe Flash Player 21.1, Windows 10. > SDK: 4.14.1 FP: 16, AIR: 16 > Code example: > Create a Flex mxml application with a button that has "click" event listener pointed to button1_clickHandler() function as below: > {code:title=Sample.mxml|borderStyle=solid} > protected function button1_clickHandler(event:MouseEvent):void > { > Alert.show('Message', 'Title', Alert.OK|Alert.CANCEL, null, closeMessage); > } > /** > Die Anwendung wurde geschlossen > @param CloseEvent > @return void > */ > protected function closeMessage(e:CloseEvent):void > { > trace(e.detail); > } > {code} > STEPS: > - Run the Flex app > - Click the button to show alert dialog > - Press ESC key > EXPECTED: > The alert dialog is closed. > ACTUAL: > when I press the ESC key, comes the exception mentioned above is occurred -- This message was sent by Atlassian JIRA (v6.3.4#6332)