2 Replies Latest reply on Mar 11, 2011 10:18 AM by Whitetimer

    How would i move a panel in a custom component ?

    Whitetimer Level 1

      Hi All

       

      I have a custom VGroup component that i am using for navigation on a web application.  In the VGroup i have 6 Panels and inside each Panel between 3 & 10 LinkButtons.  How would i move a Panel to below the first Panel of the VGroup Component, based on which LinkButton the User clicked ?

       

      This is roughly how my component looks

       

      <s:VGroup id="appNav">

      <s:Panel id="p1">

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      </s:Panel>

      <s:Panel id="p2">

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      </s:Panel>

      <s:Panel id="p3">

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      </s:Panel>

      <s:Panel id="p4">

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      </s:Panel>

      <s:Panel id="p5">

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      </s:Panel>

      <s:Panel id="p5">

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      <mx:LinkButton />

      </s:Panel>

      </s:VGroup>

       

      Many Thanks

       

      Whitetimer