home *** CD-ROM | disk | FTP | other *** search
/ 3D Games (Spidla) / 3dhry2.iso / InterBingo 1.0 / InterBingoSetup.exe / InstallResource.swf / scripts / DefineSprite_136 / frame_1 / DoAction.as
Encoding:
Text File  |  2002-07-25  |  573 b   |  35 lines

  1. function Init()
  2. {
  3.    NormX = Bar._x;
  4.    NormW = Bar._width;
  5.    trace(NormX + ":" + NormW);
  6.    Bar._width = 0;
  7.    Bar._x = NormX - NormW / 2;
  8.    trace(Bar._x + ":" + Bar._width);
  9. }
  10. function SetBar(per)
  11. {
  12.    Bar._width = per * 3.9;
  13.    PercentDone = per + "%";
  14.    Bar._x = NormX - NormW / 2 + Bar._width / 2;
  15.    trace(Bar._x + ":" + Bar._width);
  16. }
  17. function SetComponent(cname)
  18. {
  19.    ComponentName = cname;
  20. }
  21. function SetSpeed(k)
  22. {
  23.    KBS = k;
  24. }
  25. function SetETA(e)
  26. {
  27.    ETA = e;
  28. }
  29. function SetStatus(stat)
  30. {
  31.    Status = stat;
  32. }
  33. Init();
  34. stop();
  35.