home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / casual_gameplay_escape.swf / scripts / DefineSprite_258_letterbutton / frame_1 / DoAction.as
Text File  |  2008-09-05  |  526b  |  30 lines

  1. stop();
  2. this.onRelease = function()
  3. {
  4.    this.play();
  5.    if(this._currentframe == 1)
  6.    {
  7.       if(_root.soundmute != true)
  8.       {
  9.          hit = new Sound(this);
  10.          hit.attachSound("s01_paper.wav");
  11.          hit.start();
  12.       }
  13.    }
  14. };
  15. this.onEnterFrame = function()
  16. {
  17.    if(this._currentframe > 1 && this._currentframe < 20)
  18.    {
  19.       this._alpha += 4;
  20.    }
  21.    if(_root.lightson)
  22.    {
  23.       this.notedark._visible = false;
  24.    }
  25.    else
  26.    {
  27.       this.notedark._visible = true;
  28.    }
  29. };
  30.