1 Reply Latest reply on Jul 24, 2008 5:01 AM by anirudhs

    Not calling  HTTPService on creationcomplete event  for secondtime

    manvitha
      I am using components in one MXML application.For each component i used creationcomplete event and calling HTTP Service in .NET.If I click the TAB for firsttime it is calling service.but if i click the tab for second time ,service is not called. only previous output is coming.Please help me out.its urgent.
        • 1. Re: Not calling  HTTPService on creationcomplete event  for secondtime
          anirudhs Level 2
          Hi,

          creationComplete event gets fired only the first time the component has been created. It will not fire whenever the component becomes visible. By default, in a viewstack, only when you switch to a child will that child get created (which is why your creationComplete fires on initial TAB).

          Do your one time initialization stuff in creationComplete.

          If you want HTTPService.send() to get called each time the component is shown in the viewstack, call send() when the show event fires.