1 Reply Latest reply on Aug 5, 2008 9:26 PM by Newsgroup_User

    Need help with Flex Modules

    Smart_flex
      Hello..I am very new to flex. I have recently studied little bit about modular pgming in flex..I am doing a simple project as explained below..but for some reason I am not able to make it to work..I am gettig below error..I really apreciate some help on this.

      ReferenceError: Error #1069: Property subViewStack not found on IntranetHome and there is no default value.

      I have a 'IntranetHome' which has code similar to below:
      <mx:Application>
      <mx:ViewStack id="superViewStack" borderStyle="solid" width="100%" height="100%" >
      <mx:ModuleLoader url="Module1" width="100%" height="100%" />
      <mx:ModuleLoader url="Module2" width="100%" height="100%" />
      ...
      </mx:ViewStack>
      </mx:Application>

      In Module1..I have code similar to below:

      <mx:Module>
      <mx:ViewStack id="subViewStack" borderStyle="solid" width="100%" height="100%" >
      <mx:ModuleLoader url="SubModule1.swf" id="sm" width="100%" height="100%" />
      <mx:ModuleLoader url="SubModule2.swf" id="sm1" width="100%" height="100%" />
      .....
      </mx:ViewStack>
      </mx:Module>

      In SubModule1 there are couple of buttons..when I click on these buttons..I would like to load SubModule2.swf which is under subViewStack of Module1.. I am getting errors when I am trying to say :

      on button click="Applixation.application.subViewStack.selectedIndex=1"

      Am I doing something wrong...Please help me out here..If there is a better way please let me know. Thanks


        • 1. Re: Need help with Flex Modules
          Level 7

          "Smart_flex" <webforumsuser@macromedia.com> wrote in message
          news:g7b8ol$d57$1@forums.macromedia.com...
          > Hello..I am very new to flex. I have recently studied little bit about
          > modular
          > pgming in flex..I am doing a simple project as explained below..but for
          > some
          > reason I am not able to make it to work..I am gettig below error..I really
          > apreciate some help on this.
          >
          > ReferenceError: Error #1069: Property subViewStack not found on
          > IntranetHome
          > and there is no default value.
          >
          > I have a 'IntranetHome' which has code similar to below:
          > <mx:Application>
          > <mx:ViewStack id="superViewStack" borderStyle="solid" width="100%"
          > height="100%" >
          > <mx:ModuleLoader url="Module1" width="100%" height="100%" />
          > <mx:ModuleLoader url="Module2" width="100%" height="100%" />
          > ...
          > </mx:ViewStack>
          > </mx:Application>
          >
          > In Module1..I have code similar to below:
          >
          > <mx:Module>
          > <mx:ViewStack id="subViewStack" borderStyle="solid" width="100%"
          > height="100%" >
          > <mx:ModuleLoader url="SubModule1.swf" id="sm" width="100%"
          > height="100%" />
          > <mx:ModuleLoader url="SubModule2.swf" id="sm1" width="100%"
          > height="100%" />
          > .....
          > </mx:ViewStack>
          > </mx:Module>
          >
          > In SubModule1 there are couple of buttons..when I click on these
          > buttons..I
          > would like to load SubModule2.swf which is under subViewStack of
          > Module1.. I
          > am getting errors when I am trying to say :
          >
          > on button click="Applixation.application.subViewStack.selectedIndex=1"
          >
          > Am I doing something wrong...Please help me out here..If there is a better
          > way
          > please let me know. Thanks

          http://blogs.adobe.com/aharui/presentations/

          Look at the last one