1 Reply Latest reply on May 10, 2009 8:17 PM by Michael Borbor

    There are issues for set value on component switching states

    master.card

      I am just using Flex not long time; I have a CombBox list inside states (state name="cerateopr"), and initialize its selectedItem after received a string from server side. I can put creationComplete function in the CombBox. First time when i swith to  currentState into "createopr", after received string from server and  call creationComplete to init selectedItem. But second time, when i swith to  currentState into "createopr", it did not call creationComplete. So how to solve this scenery? maybe i can directly set CombBox selectedItem in the second time, how for first time, how can I detect if CombBox is existing?

       

       

      Thanks

        • 1. Re: There are issues for set value on component switching states
          Michael Borbor Level 4

          Just use a bindable var to do that.

           

          Sincerely,

           

          Michael

           

          El 10/05/2009, a las 21:14, "master.card" <forums@adobe.com> escribió:

           

          >

          I am just using Flex not long time; I have a CombBox list inside 

          states (state name="cerateopr"), and initialize its selectedItem 

          after received a string from server side. I can put creationComplete 

          function in the CombBox. First time when i swith to  currentState 

          into "createopr", after received string from server and  call 

          creationComplete to init selectedItem. But second time, when i 

          swith to  currentState into "createopr", it *did not call 

          creationComplete.* So how to solve this scenery? maybe i can 

          directly set CombBox selectedItem in the second time, how for first 

          time, how can I detect if CombBox is existing?

          >

          >

          Thanks

          >