1 Reply Latest reply on Dec 22, 2009 9:53 PM by Flex harUI

    Performance Question

    Trojan84

      My application is based a viewstack with dataprovider. Each View stack is its own mxml file. I have a mx:script with a bunch of variables that all mxml's use. Some get passed through the ViewStack others don't but all keep the same name to reduce time managing code.(No Naming Conflicts Either) My question is as it stands application works great but I want to know if have a file being imported like so. -> <mx:script source="com/dump/scripts/test.as"/> on each mxml page cause Memory Leak issues? I wasn't sure if garbage collector would handle it correctly and that I am using up extra memory for the sake of easier code management.

       

       

       

       

      <mx:ApplicationControlBar id="acb" width="100%" horizontalAlign="center" >
            <mx:ToggleButtonBar  height="75" horizontalAlign="center"dataProvider="NavMenu" />  
         </mx:ApplicationControlBar>

       

       

      <mx:ViewStack id="NavMenu" width="100%" height="100%" creationPolicy="all" change="invalidateProperties();">
                      <ns1:Search label="Key Map" width="100%" height="100%" Blah="{TESTER}"  showEffect="WipeDown" hideEffect="WipeUp"/>
                   
                      <ns1:Map label="View Map" width="100%" height="100%" Blah="{TESTER}" showEffect="WipeDown" hideEffect="WipeUp"/>
                               
                      <ns1:Book label="Book" width="100%" height="100%" Blah="{TESTER}" showEffect="WipeDown" hideEffect="WipeUp"/>
                  
              </mx:ViewStack>