home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / midnightstrike1.swf / scripts / DefineSprite_904 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-04-02  |  264 b   |  15 lines

  1. setValue = function(p, abs, active)
  2. {
  3.    p = Math.max(0,Math.min(1,p));
  4.    this.bar._xscale = Math.max(0.1,p * 100);
  5.    this.displayNumber = int(abs);
  6.    if(active)
  7.    {
  8.       this.gotoAndStop(2);
  9.    }
  10.    else
  11.    {
  12.       this.gotoAndStop(1);
  13.    }
  14. };
  15.