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:47:14 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13567929#comment-13567929 ] 

Christian Kiefer commented on FLEX-33375:
-----------------------------------------

That was the problem... thanks a lot for your quick reponse!!!
                
> 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