2 Replies Latest reply on Oct 3, 2007 8:03 AM by Alifeoffiction

    Actionscript Problems....  HELP

    Alifeoffiction
      Ok so heres the thing. I am kind of new to actionscript 3.0 and I am trying to figure out what I am doing wrong with my coding. I have used this code time and time again and up until I got CS3 it worked just fine. If there is anyone that can take a look at this code and tell me what I am missing or what I might have done wrong I would greatly appreciate your help. below is my coding I am using to call the outside swf files and also call text documents that hold my info. Thank you so much for looking and helping if you can figure out what I messed up.


      this.rootcontainer.onLoad = function ()
      {
      heightscale = 270.45;
      };
      this.btn_news.onRelease = function ()
      {
      if (_root.currMovie == undefined)
      {
      _root.currMovie = "news";
      rootcontainer.loadMovie("News.swf", this.getNextHighestDepth());
      }
      else if (_root.currMovie != "news")
      {
      if (rootcontainer._currentframe >= rootcontainer.midframe)
      {
      _root.currMovie = "news";
      rootcontainer.play();
      } // end if
      } // end else if
      };
      this.btn_band.onRelease = function ()
      {
      if (_root.currMovie == undefined)
      {
      _root.currMovie = "band";
      rootcontainer.loadMovie("Band.swf", this.getNextHighestDepth());
      }
      else if (_root.currMovie != "band")
      {
      if (rootcontainer._currentframe >= rootcontainer.midframe)
      {
      _root.currMovie = "band";
      rootcontainer.play();
      } // end if
      } // end else if
      };
      _root.currMovie = "news";
      rootcontainer.loadMovie(_root.currMovie + ".swf");

      stop ();