1 Reply Latest reply on Jun 9, 2011 1:01 AM by agile116@hotmail.com

    Flex 4 State issue

    agile116@hotmail.com

      Hi,

       

      In flex 3, we can use the following state definition to hide a component or move this component to another position. But it seems we can't do this in flex 4's state. In my opinion, we must put fgroup component in two places in order to have this functionality. But we must change all the ids in fgroup component to another name in this situation. Anyone has a good solution?

      <mx:states>
              <mx:State name="GroupState">
                  <mx:RemoveChild target="{fgroup}" />
                  <mx:AddChild target="{fgroup}" relativeTo="{fgroupCanvas}" />   
                  <mx:RemoveChild target="{accordion}" />   
              </mx:State>
          </mx:states>