home *** CD-ROM | disk | FTP | other *** search
- stop();
- n = 1;
- for(h in _root.possibleHair)
- {
- if(h !== _root.playerActiveHair)
- {
- this["h" + n].gotoAndStop(_root.possibleHair[h]);
- this["h" + n].num = h;
- this["h" + n].onRelease = function()
- {
- if(_root.playerMoney >= 50)
- {
- _root.playerMoney -= 50;
- _root.playerActiveHair = this.num;
- nextFrame();
- }
- else
- {
- txt = "you do not have enough cash";
- }
- };
- n++;
- }
- }
-