home *** CD-ROM | disk | FTP | other *** search
- FNscore = function(s, num)
- {
- var _loc2_ = 1;
- while(_loc2_ <= 5)
- {
- this[s + _loc2_].gotoAndStop(Math.floor(num / Math.pow(10,_loc2_ - 1)) % 10 + 1);
- _loc2_ = _loc2_ + 1;
- }
- };
- this.num = 100;
- FNscore("s",this.num);
- _root.score += this.num;
- trace(_root.score);
- _root.FNscore("s",_root.score);
-