[
https://issues.apache.org/jira/browse/FLEX-34840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15594341#comment-15594341
]
Bui Sy Nguyen commented on FLEX-34840:
--------------------------------------
I want to get the latest source of this Alert class. Can you send it to me?
Thanks,
Bui Sy Nguyen.
> 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}
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx">
> <fx:Script>
> <![CDATA[
> 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);
> }
>
> ]]>
> </fx:Script>
>
> <s:Button label="Test Alert"
> click="button1_clickHandler(event)"/>
>
> </s:Application>
> {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)