2 Replies Latest reply on Nov 28, 2006 8:16 AM by eniocarvalho

    Accessing variables

    eniocarvalho
      How can I access variables created at root application, from an outsider application loaded as ViewState Child upon the current application? And hou can I exec actions in the loaded ViewState from the root application?
        • 1. Re: Accessing variables
          jlingwai Level 1
          I think this might help......

          to call a variable from the root application use parentApplication.VarName

          to execute actions to the viewstate from the root application use the childsID.FunctionName

          of example if the following component is a child in the root application.
          <components:state3 id="newState3"/>
          and you want the runState() function in the root application to execute the cmpState() function in state3.
          public function runState():void{
          actions.....
          newState3.cmpState();
          }
          • 2. Re: Accessing variables
            eniocarvalho Level 1
            Great help. Thanks!