Re: [flexcoders] state enter /exit
So, It means not to use state...I could it working by hiding and making visible Thanks On 9/21/07, Alex Harui <[EMAIL PROTECTED]> wrote: > >If the canvas gets destroyed and recreated, then it will call init() as > it gets recreated. You would need to prevent re-creation by hiding and > showing the canvas instead. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *learner > *Sent:* Thursday, September 20, 2007 8:59 PM > *To:* flexcoders@yahoogroups.com > *Cc:* Flex India Community > *Subject:* Re: [flexcoders] state enter /exit > > > > > It is getting destroyed and re-created.but the intialization variables > that are kept on > init() ..are getting initialized again and again... > how to avoid that.. > > On 9/20/07, *Alex Harui* <[EMAIL PROTECTED]> wrote: > > You sure the Canvas isn't getting destroyed and re-created? > > > -- > > *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On > Behalf Of *learner > *Sent:* Thursday, September 20, 2007 1:25 AM > *To:* flexcoders@yahoogroups.com; Flex India Community > *Subject:* [flexcoders] state enter /exit > > > > Hi All, > I observed that the creationComplete event of the compoent is fired > everytime the state of the component is changed. > > Ex: > > creationComplete= init() xmlns:mx=" http://www.adobe.com/2006/mxml"; > > > >public function init(){ >// some action > >} > > > > > > > > > > > > > > > > > if i change the state of this compoenet ... the creation complete gets > fired everytime > is there any work arround to avoid this ?? > > Regards > PS > > > > >
RE: [flexcoders] state enter /exit
If the canvas gets destroyed and recreated, then it will call init() as it gets recreated. You would need to prevent re-creation by hiding and showing the canvas instead. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of learner Sent: Thursday, September 20, 2007 8:59 PM To: flexcoders@yahoogroups.com Cc: Flex India Community Subject: Re: [flexcoders] state enter /exit It is getting destroyed and re-created.but the intialization variables that are kept on init() ..are getting initialized again and again... how to avoid that.. On 9/20/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: You sure the Canvas isn't getting destroyed and re-created? From: flexcoders@yahoogroups.com [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of learner Sent: Thursday, September 20, 2007 1:25 AM To: flexcoders@yahoogroups.com; Flex India Community Subject: [flexcoders] state enter /exit Hi All, I observed that the creationComplete event of the compoent is fired everytime the state of the component is changed. Ex: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " > public function init(){ // some action } if i change the state of this compoenet ... the creation complete gets fired everytime is there any work arround to avoid this ?? Regards PS
Re: [flexcoders] state enter /exit
It is getting destroyed and re-created.but the intialization variables that are kept on init() ..are getting initialized again and again... how to avoid that.. On 9/20/07, Alex Harui <[EMAIL PROTECTED]> wrote: > >You sure the Canvas isn't getting destroyed and re-created? > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *learner > *Sent:* Thursday, September 20, 2007 1:25 AM > *To:* flexcoders@yahoogroups.com; Flex India Community > *Subject:* [flexcoders] state enter /exit > > > > Hi All, > I observed that the creationComplete event of the compoent is fired > everytime the state of the component is changed. > > Ex: > > creationComplete= init() xmlns:mx=" http://www.adobe.com/2006/mxml"; > > > >public function init(){ >// some action > >} > > > > > > > > > > > > > > > > > if i change the state of this compoenet ... the creation complete gets > fired everytime > is there any work arround to avoid this ?? > > Regards > PS > > > >
RE: [flexcoders] state enter /exit
You sure the Canvas isn't getting destroyed and re-created? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of learner Sent: Thursday, September 20, 2007 1:25 AM To: flexcoders@yahoogroups.com; Flex India Community Subject: [flexcoders] state enter /exit Hi All, I observed that the creationComplete event of the compoent is fired everytime the state of the component is changed. Ex: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " > public function init(){ // some action } if i change the state of this compoenet ... the creation complete gets fired everytime is there any work arround to avoid this ?? Regards PS
[flexcoders] state enter /exit
Hi All, I observed that the creationComplete event of the compoent is fired everytime the state of the component is changed. Ex: http://www.adobe.com/2006/mxml"; > public function init(){ // some action } if i change the state of this compoenet ... the creation complete gets fired everytime is there any work arround to avoid this ?? Regards PS