2 Replies Latest reply on Dec 18, 2006 6:42 AM by xenolith5

    pass variable to gotoAndPlay frame number

    xenolith5
      Hi, I'm just beginning in actionscript so I might be looking at this the wrong way!!
      I have created a simple slider that gives me a variable depending on where the slider is positioned i.e. the percentage.
      I then have a simple movieclip 100 frames long where a red square turns into a blue square (shape tweened then converted to key frames).
      I want this movieclip to jump to whatever frame corresponds to the percentage of the slider i.e. 20% would be frame 20
      100% would be frame 100 etc.
      I can't work out how to assign the percentage variable as a frame number in the gotoAndPlay (or gotoAndStop).
      Help!!
      Thanks