12 Replies Latest reply on Mar 11, 2010 1:35 PM by cyber0897

    how do i stop my viewstack from initializing on application creation complete

    cyber0897 Level 1

      hey guys i basically need to find a way to not have my viewstack initialize or create until the user clicks on the list item, ive tried doing creation complete="all" and creationComplete="none", when i do all, my viewstack gets created as soon as my application gets created, and when i do creationComplete="none" i get the following error "Error #2007: Parameter child must be non-null."

      so any ideas??


      i have the following code


      <s:HGroup id="loginSuccessGroup" horizontalCenter="center" height="100%" width="100%">
           <s:Panel id="navContainer" width="250" height="100%">
                <s:List id="nav" width="250" height="100%" dataProvider="{sourceData}" click="updateStack()" />
           <s:Panel width="778" height="100%">
                <mx:ViewStack id="displayComponents" creationPolicy="none" width="100%" height="100%">
                     <mx:Canvas id="blank">
                     <mx:Canvas id="images" width="100%" height="100%">
                          <imageHandler:imageHandler width="100%" height="100%" />
                     <mx:Canvas id="videos" width="100%" height="100%">
                          <videoHandler:videoHandler width="100%" height="100%" />
                     <mx:Canvas id="story" width="100%" height="100%">
                          <storyHandler:storyEditor width="100%" height="100%" />