0 Replies Latest reply on Jul 20, 2007 10:05 AM by Dave Blake

    MIdframe variable

    Dave Blake Level 1
      I borrowed some code to create menu transition swfs in which as a button is pushed, it will look to see if the current swf is at midframe and if so, play the exiting animation of that swf and then load and play the intor for the swf for that button selection (hope that makes sense).

      However, I have enhanced my swf files to have a number of stop actions for submenu items for that catagory so the swf does not automatically just play to the midframe and stop. Is there a way that I can modify the code so that if the swf is not at midframe yet, I can have it "gotoandplay" midframe if that makes sense?

      Here's the code:

      on (release) {
      if (_root.currMovie == undefined) {
      _root.currMovie = "OrangeAll";
      container.loadMovie("OrangeAll.swf");
      } else if (_root.currMovie != "OrangeAll") {
      if (container._currentframe >= container.midframe) {
      _root.currMovie = "OrangeAll";
      container.play();
      }
      }
      }

      Thanks,
      Dave