home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / Titans / raven.swf / scripts / DefineSprite_170 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-01-05  |  1.0 KB  |  45 lines

  1. w = 100;
  2. space = 163;
  3. this.attachmovie("win","win" + w,w);
  4. this["win" + w]._x = 0;
  5. this["win" + w]._y = space * 2;
  6. w++;
  7. this.attachmovie("win","win" + w,w);
  8. this["win" + w]._x = 0;
  9. this["win" + w]._y = space;
  10. w++;
  11. this.attachmovie("win","win" + w,w);
  12. this["win" + w]._x = 0;
  13. this["win" + w]._y = 0;
  14. w++;
  15. this.attachmovie("win","win" + w,w);
  16. this["win" + w]._x = 0;
  17. this["win" + w]._y = - space;
  18. w++;
  19. wc = 100;
  20. onenterframe = function()
  21. {
  22.    if(!this["win" + wc]._visible)
  23.    {
  24.       if(r.floornow < r.totalfloor)
  25.       {
  26.          r.floornow = r.floornow + 1;
  27.          this.attachmovie("win","win" + w,w);
  28.          this["win" + w]._x = 0;
  29.          this["win" + w]._y = this["win" + (w - 1)]._y - 163;
  30.          w++;
  31.          wc++;
  32.       }
  33.       else
  34.       {
  35.          this.attachmovie("wintop","win" + w,w);
  36.          this["win" + w]._x = 0;
  37.          this["win" + w]._y = this["win" + (w - 1)]._y - 163;
  38.          w++;
  39.          wc++;
  40.          r.ontop = 1;
  41.          delete onenterframe;
  42.       }
  43.    }
  44. };
  45.