1 Reply Latest reply on Jan 4, 2008 12:49 PM by kglad

    Controlling Movie Clips on stage with Actionscript

    cmrstudios
      Hi all,

      I've been following some tutorials on gotoandlearn.com, which is very cool. Now I'm trying to add some text effects (as movie clips) to a video and need to control when they play with actionscript. I'm using Flash 8.

      Here's my code:

      var duration:Number;
      duration = 69;
      function videoStatus(){
      percentagePlayed = ns.time / duration;
      if(percentagePlayed < 100){
      trace (ns.time);
      if(ns.time > 10){
      _root.mResults.gotoAndPlay(2);
      }
      }
      }


      it outputs my trace just fine so why won't it gotoAndPlay my mResults movie clip when ns.time is greater than 10?

      Thanks for any help.