home *** CD-ROM | disk | FTP | other *** search
- function setVal(v)
- {
- val = Math.max(0,Math.min(100,v));
- }
- function addVal(v)
- {
- val = Math.max(0,Math.min(100,val + v));
- if(val == 100 && star._currentframe == 1)
- {
- bar._yscale = 100;
- star._y = - bar._height;
- _global.Game.setScore(100);
- setVal(0);
- _root.pistol.gotoAndPlay(2);
- }
- }
- function refreshMe()
- {
- if(star._currentframe == 1)
- {
- var _loc1_ = Math.round(val);
- if(_loc1_ != rndVal)
- {
- rndVal = _loc1_;
- }
- bar._yscale = rndVal;
- star._y = - bar._height;
- }
- }
- var val = 0;
- var rndVal = -1;
- refreshMe();
- stop();
-