[ 
https://issues.apache.org/jira/browse/FLEX-34840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15221315#comment-15221315
 ] 

Bui Sy Nguyen commented on FLEX-34840:
--------------------------------------

I've update the description of this issue.
Could you please help to fix this error in next release?

Many thanks

> 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)
> SDK: 4.14.1 FP: 16, AIR: 16
> Code example:
> {code:title=Sample.as|borderStyle=solid}
> [Embed(source='/icons/warning.png')]
> private var myIcon:Class;
> protected function button1_clickHandler(event:MouseEvent):void
> {
>     Alert.show('Message', 'Title', Alert.OK|Alert.CANCEL, null, closeMessage, 
> myIcon); 
> }
> /**
> 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 occured



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to