1 Reply Latest reply on Mar 15, 2007 3:40 PM by crazyjoemilan

    Variables in calling a Movie to play

    TheScarecrow Level 1
      I have a movie that I want to call on to play but the first part is a variable and I am not sure I have the syntax right. Does anyone see anything wrong with it? I want to add Word to the end of the variable name.
        • 1. Re: Variables in calling a Movie to play
          crazyjoemilan Level 2
          you use it like you would an associative array, so you'll need a front value...


          [currentWord+"Word"].gotoAndPlay(2); //will fail because there is no Array for it to tell which value should be associated with the string equation - [currentWord+"Word"]

          you can also define the variable as an MC, but the above is the easy way.