home *** CD-ROM | disk | FTP | other *** search
- function decideGam(num)
- {
- _root.dagam = num;
- _root.gotoAndStop("gameoverview");
- }
- function chooseRando()
- {
- var _loc1_ = random(3);
- decideGam(_loc1_);
- }
- function showStars()
- {
- i = 0;
- while(i < 9)
- {
- var thing = eval("s" + i);
- thing.full._visible = false;
- i++;
- }
- i = 0;
- while(i < 3)
- {
- if(i < _root.so.data.stars[0])
- {
- var thing = eval("s" + i);
- thing.full._visible = true;
- }
- i++;
- }
- cv = 0;
- i = 3;
- while(i < 6)
- {
- if(cv < _root.so.data.stars[1])
- {
- var thing = eval("s" + i);
- thing.full._visible = true;
- }
- cv++;
- i++;
- }
- cv = 0;
- i = 6;
- while(i < 9)
- {
- if(cv < _root.so.data.stars[2])
- {
- var thing = eval("s" + i);
- thing.full._visible = true;
- }
- cv++;
- i++;
- }
- }
- _root.so = SharedObject.getLocal("bosses");
- if(_root.so.data.stars == undefined)
- {
- _root.so.data.stars = new Array(0,0,0);
- _root.so.data.timesplayed = new Array(0,0,0);
- }
- if(_root.so.data.stars[0] == 3 && _root.so.data.stars[1] == 3 && _root.so.data.stars[2] == 3)
- {
- wyn._visible = true;
- wyn.onPress = function()
- {
- gratz._visible = true;
- };
- }
- else
- {
- wyn._visible = false;
- }
- if(_root.so.data.stars[0] == 3 && _root.so.data.stars[1] == 3 && _root.so.data.stars[2] == 3 && !_root.so.data.seenit)
- {
- gratz._visible = true;
- }
- else
- {
- gratz._visible = false;
- }
- showStars();
-