home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / gravity.swf / scripts / frame_101 / DoAction.as
Encoding:
Text File  |  2007-03-28  |  347 b   |  17 lines

  1. function randSong()
  2. {
  3.    if(_root.onOrOff == "on")
  4.    {
  5.       rand = random(3);
  6.       _root.musicSphere.gotoAndStop(soundArray[rand]);
  7.    }
  8.    else
  9.    {
  10.       _root.musicSphere.gotoAndStop("noSound");
  11.    }
  12. }
  13. stop();
  14. _root.musicSphere.gotoAndStop("intro2");
  15. soundArray = new Array("level1","level3","level4");
  16. _root.onOrOff = "on";
  17.