1 Reply Latest reply on Apr 20, 2010 11:05 AM by cyber0897

    how do i reinitiate each component's creationcomplete in a view stack everytime?

    cyber0897 Level 1

      hey guys... so ive had this problem before, i thought i fixed it but apparently not. I basically have a vewstack with a bunch of components, and when i change one of these components i need to call my init function eveytime, so i can refresh all the data in tehre.

       

      my viewstack's creation complete policy is set to "auto"

       

      and each one of my viewstacks has a creationpolicy="init()" set on there...

       

       

      any help is greatly appretiated!

       

       

      thanks in advance!

        • 1. Re: how do i reinitiate each component's creationcomplete in a view stack everytime?
          cyber0897 Level 1

          oh, and i thought about using the show event, but the only problem is i cannot access my function from my viewstack. my viewstack looks something like this

           

          <mx:ViewStack id="displayComponents" creationPolicy="auto" width="100%" height="100%">
               <mx:Canvas id="blank"> 
                                   
               </mx:Canvas>
               <mx:Canvas id="images" width="100%" height="100%">
                    <imageHandler:imageHandler width="100%" height="100%" />
               </mx:Canvas>
               <mx:Canvas id="videos" width="100%" height="100%">
                    <videoHandler:videoHandler width="100%" height="100%" />
               </mx:Canvas>
               <mx:Canvas id="story" width="100%" height="100%">
                    <storyHandler:storyEditor width="100%" height="100%" />
               </mx:Canvas>
               <mx:Canvas id="lunch" width="100%" height="100%">
                    <lunchEditor:lunchEditor width="100%" height="100%" />
               </mx:Canvas>
          </mx:ViewStack>
          

           

           

          and my story Handler is

          <s:Group ...... creationComplete="init();">
          

           

           

          and my script associated to my story Handler is not a package.... is there a way i can access a function across components without using statick type??