0 Replies Latest reply on Sep 23, 2007 8:45 AM by mark416

    how to control ViewStack show?

    mark416 Level 1
      Hi,

      I want to know how to control ViewStack show with actionscript program

      <mx:ViewStack id="vStack" width="80%" height="100%">

      <mx:Panel id="Panel" title="Tile1" label="Tile" >
      .....
      </mx:Panel>

      <mx:Panel id="Pane2" title="Tile2" label="Tile" width="220" height="210">
      .....
      </mx:Panel>

      </mx:ViewStack>

      I try to do this

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" preinitialize="hidden()">
      <mx:Script>
      <![CDATA[
      function hidden(){
      p1.visible = "false";
      }
      ]]>
      </mx:Script>

      <mx:Panel id="p1" height="101" width="447" >
      <mx:Text text="hello" />
      </mx:Panel>

      </mx:Application>

      but I can not hidden the panel.Please help me.Thanks

      MK