11 Replies Latest reply on Aug 25, 2014 8:22 PM by resdesign

    Access Label in Nested Symbol

    dreaminkiss Level 1

      Hello All;

       

      OK. Here we go.

      Project is laid out like so

      Stage

      MainMenu (Symbol)

         SubMenu1 (Symbol)

       

       

      Within the MainMenu, I have a Label (ShowSub1)

      The MenuItem under the MainMenu, when clicked, needs to activate the label (ShowSub1)

      However, I cannot seem to access the Symbols.

       

       

      This is the code that I have tried.

       

      Access all Symbols

      sym.getComposition().getStage().getSymbol('MainMenu').getSymbol("SubMenu1").play('ShowSub1 ')
      Also tried this as well
      sym.getComposition().getStage().getSymbol("SubMenu1").play('ShowSub1')

       

      I need to Access the SubMenu Symbol and Label from within the MainMenu.

       

      Any assistance on this would be great.

      Thanks

      Wayne