0 Replies Latest reply on Jul 31, 2007 9:13 AM by Dave Blake

    Script for external swf transitions

    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";
      } else if (_root.currMovie != "OrangeAll") {
      if (container._currentframe >= container.midframe) {
      _root.currMovie = "OrangeAll";