0 Replies Latest reply on May 4, 2007 2:36 AM by camel_humper

    button down with external content

    camel_humper
      I'm trying to find a way of keeping a mc button on the last frame of it's timeline i.e. down the problem being the buttons function is to load an external swf into a container on the _root timeline. I cannot work out how to do this without messing the code for the button up. Here is the code for one button. Any help appreciated!

      stop();

      this.onEnterFrame = function(){
      if(rewind == true){
      prevFrame();
      }
      }

      this.onRollOver = function(){
      rewind = false;
      play();
      }

      this.onRollOut = function(){
      rewind = true;

      }

      this.onPress = function() {
      if (_root.currMovie == undefined) {
      _root.currMovie = "weather";
      _root.container.loadMovie("weather.swf");
      } else if (_root.currMovie != "weather") {
      if (_root.container._currentframe>=_root.container.midframe) {
      _root.currMovie = "weather";
      _root.container.play();
      }
      }
      };