home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Beteroid.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  483 b   |  26 lines

  1. totales1 = _root.getBytesTotal();
  2. leidos1 = _root.getBytesLoaded();
  3. if(totales1 >= leidos1)
  4. {
  5.    e_barra1 = int(leidos1 * 100 / totales1);
  6.    barra1.valor = e_barra1;
  7.    with(barra1)
  8.    {
  9.       gotoAndStop(valor);
  10.    }
  11. }
  12. if(leidos1 == totales1)
  13. {
  14.    carga1 = 1;
  15. }
  16. barra1.muestra1 = int(leidos1 / 1000) + " de " + int(totales1 / 1000) + " Kb";
  17. barra1.muestra2 = "Estado: " + e_barra1 + " %";
  18. if(carga1 == 1)
  19. {
  20.    gotoAndStop(4);
  21. }
  22. else
  23. {
  24.    gotoAndPlay(2);
  25. }
  26.