flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice Amsellem (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLEX-33884) Android mobile app crashes when you click on a modal
Date Fri, 08 Nov 2013 13:07:18 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Maurice Amsellem closed FLEX-33884.
-----------------------------------


> Android mobile app crashes when you click on a modal
> ----------------------------------------------------
>
>                 Key: FLEX-33884
>                 URL: https://issues.apache.org/jira/browse/FLEX-33884
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.11.0
>         Environment: Mobile Android
>            Reporter: Hermes David Junior
>
> open a popup element (a group with a button inside) as Modal
> " PopUpManager.addPopUp(element, true)" 
> and click on the modal element or the button. The application will stop responding and
will crash.
> <?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" applicationDPI="160">
> <fx:Script>
> <![CDATA[
> import mx.core.IFlexDisplayObject;
> import mx.managers.PopUpManager;
> import spark.components.Button;
> protected function openPopup(asModal:Boolean):void
> { grpContainer.enabled = false; var popUpBtn:Button = new Button(); popUpBtn.label =
asModal?"Close Modal Button":"Close Modeless Button"; popUpBtn.addEventListener(MouseEvent.CLICK,
closePopup); lblMessage.text = ""; PopUpManager.addPopUp(popUpBtn, this, asModal); PopUpManager.centerPopUp(popUpBtn);
}
> protected function closePopup(event:MouseEvent):void
> { lblMessage.text = "Popup closed !!!" PopUpManager.removePopUp(event.target as IFlexDisplayObject);
grpContainer.enabled = true; }
> ]]>
> </fx:Script>
> <s:VGroup id="grpContainer">
> <s:Button label="Open as Modeless" click="openPopup(false)" />
> <s:Button label="Open as Modal" click="openPopup(true)"/>
> <s:Spacer height="100%" />
> <s:Label id="lblMessage" />	
> </s:VGroup>
> </s:Application>



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message