You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Hermes David Junior (JIRA)" <ji...@apache.org> on 2013/11/08 13:20:18 UTC
[jira] [Reopened] (FLEX-33884) Android mobile app crashes when you
click on a modal
[ https://issues.apache.org/jira/browse/FLEX-33884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hermes David Junior reopened FLEX-33884:
----------------------------------------
I tried compiling with the nighly build and didnt work. Maybe the changes werent commited. Here is the example that crashes
<?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>
> 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.
--
This message was sent by Atlassian JIRA
(v6.1#6144)