home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / starisland.swf / scripts / __Packages / illusoft / GameTile002.as < prev    next >
Encoding:
Text File  |  2007-12-10  |  893 b   |  39 lines

  1. class illusoft.GameTile002 extends illusoft.GameTile
  2. {
  3.    var levelComplete;
  4.    function GameTile002(id, dEngine, character, game, gamemc, nextLevel)
  5.    {
  6.       super(id,dEngine,character,game,gamemc,nextLevel);
  7.    }
  8.    function Update(x)
  9.    {
  10.       super.Update(x);
  11.       if(!this.levelComplete)
  12.       {
  13.          if(x > 0 && x < 805)
  14.          {
  15.             _global.sounds.LoopSound("jetstream",60);
  16.          }
  17.          else
  18.          {
  19.             _global.sounds.FadeVolume("jetstream",false,false);
  20.          }
  21.       }
  22.    }
  23.    function Close()
  24.    {
  25.       _global.sounds.FadeVolume("jetstream",false,false);
  26.       super.Close();
  27.    }
  28.    function LevelComplete()
  29.    {
  30.       this.levelComplete = true;
  31.       _global.sounds.FadeVolume("jetstream",false,false);
  32.    }
  33.    function Init()
  34.    {
  35.       super.Init();
  36.       _global.sounds.StartMusic("loop1");
  37.    }
  38. }
  39.