home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / DeliBEEry.swf / scripts / DefineSprite_163 / frame_28 / DoAction.as
Encoding:
Text File  |  2006-06-06  |  675 b   |  36 lines

  1. stop();
  2. if(_root.barra.vida4._visible == true)
  3. {
  4.    _root.barra.vida4._visible = false;
  5. }
  6. else
  7. {
  8.    _root.vidaschau = _root.vidaschau + 1;
  9.    switch(_root.vidaschau)
  10.    {
  11.       case 1:
  12.          _root.barra.vida1._visible = false;
  13.          break;
  14.       case 2:
  15.          _root.barra.vida2._visible = false;
  16.          break;
  17.       case 3:
  18.          _root.barra.vida3._visible = false;
  19.    }
  20. }
  21. if(_root.vidaschau < _root.vidas)
  22. {
  23.    this.gotoAndStop(1);
  24.    this.avancex = 0;
  25.    this.avancey = 0;
  26.    this.gravedad = 0;
  27.    this.control = true;
  28.    this._x = 28;
  29.    this._y = 278;
  30. }
  31. else
  32. {
  33.    _root.barra._visible = false;
  34.    _root.gameover.play();
  35. }
  36.