You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Christian Kiefer (JIRA)" <ji...@apache.org> on 2013/01/31 19:25:12 UTC
[jira] [Updated] (FLEX-33375) Button clicked in a Component (Group)
causes the component to stay in memory
[ https://issues.apache.org/jira/browse/FLEX-33375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Kiefer updated FLEX-33375:
------------------------------------
Description:
Code:
protected function handleLoginClicked(event:MouseEvent):void
{
dispatchEvent(new LoginEvent(LoginEvent.LOGIN, "XYZ", "123"));
}
]]>
</fx:Script>
<s:Button width="100%" id="loginButton"
enabled="true"
label="test"
height="60"
click="handleLoginClicked(event)"/>
<s:Label y="200" text="test" click="handleLoginClicked(event)"/>
Result:
After the login event is dispatched the view/current component (group) gets disposed and removed...
Problem:
clicking the label and the view isn't in memory anymore.
clicking the button causes the view to stay in memory.
was:
Code:
protected function handleLoginClicked(event:MouseEvent):void
{
dispatchEvent(new LoginEvent(LoginEvent.LOGIN, "XYZ", "123"));
}
]]>
</fx:Script>
<s:Button width="100%" id="loginButton"
enabled="true"
label="test"
height="60"
click="handleLoginClicked(event)"/>
<s:Label y="200" text="test" click="handleLoginClicked(event)"/>
Result:
After the login event is dispatches the view/current component (group) gets disposed and removed...
Problem:
clicking the label and the view isn't in memory anymore.
clicking the button causes the view to stay in memory.
> Button clicked in a Component (Group) causes the component to stay in memory
> ----------------------------------------------------------------------------
>
> Key: FLEX-33375
> URL: https://issues.apache.org/jira/browse/FLEX-33375
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: Button
> Environment: air 3.5 mobile
> Reporter: Christian Kiefer
> Priority: Critical
>
> Code:
> protected function handleLoginClicked(event:MouseEvent):void
> {
> dispatchEvent(new LoginEvent(LoginEvent.LOGIN, "XYZ", "123"));
> }
>
> ]]>
> </fx:Script>
> <s:Button width="100%" id="loginButton"
> enabled="true"
> label="test"
> height="60"
> click="handleLoginClicked(event)"/>
>
> <s:Label y="200" text="test" click="handleLoginClicked(event)"/>
> Result:
> After the login event is dispatched the view/current component (group) gets disposed and removed...
> Problem:
> clicking the label and the view isn't in memory anymore.
> clicking the button causes the view to stay in memory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira