Frame 1
stop();
onEnterFrame = function () {
var _local2 = _root.getBytesLoaded() / _root.getBytesTotal();
preloader_mc.value = _local2;
if (_local2 == 1) {
delete onEnterFrame;
play();
}
};
Frame 31
playerPoints = 0;
randomColorA = [10218237, 8668865, 9652480, 16711680, 16760779, 16746037, 4223231, 65280, 3407749, 16739436, 26163, 255, 16777090, 2105376, 15066597, 16776960];
randomColorB = [13694971, 11898842, 15890688, 16737380, 16768483, 16758148, 9678591, 10354589, 11206604, 16754856, 47452, 7961087, 16777147, 7303023, 10921638, 16777088];
Bear = new Object();
Bear.shirt = 1;
Bear.pants = 1;
Bear.shoes = 1;
Bear.accessories = 1;
Bear.faces = 1;
Bear.hair = 1;
var ran = random(16);
Bear.mainColor = randomColorA[ran];
Bear.secondColor = randomColorB[ran];
var ran = random(16);
Bear.eyesColor = randomColorA[ran];
var ran = random(16);
Bear.hairColor = randomColorA[ran];
Bear.hairSecondColor = randomColorB[ran];
var ran = random(16);
Bear.topColor = randomColorA[ran];
var ran = random(16);
Bear.bottomsColor = randomColorA[ran];
var ran = random(16);
Bear.shoesColor = randomColorA[ran];
Bear.shoesSecondColor = randomColorB[ran];
var ran = random(16);
Bear.accessoriesColor = randomColorA[ran];
Bear.wallsColor = 16777147 /* 0xFFFFBB */;
canBuy = new Array(200);
var i = 0;
while (i < 200) {
canBuy[i] = true;
i++;
}
function sounds_ClothesMusic() {
this.createEmptyMovieClip("sndHolder1_mc", this.getNextHighestDepth());
ClothesMusic = new Sound(sndHolder1_mc);
ClothesMusic.attachSound("ClothesMusic");
ClothesMusic.start(0, 99999);
}
function sounds_MapMusic() {
this.createEmptyMovieClip("sndHolder3_mc", this.getNextHighestDepth());
MapMusic = new Sound(sndHolder3_mc);
MapMusic.attachSound("MapMusic");
MapMusic.start(0, 999999);
}
function sounds_MenuMusic() {
this.createEmptyMovieClip("sndHolder4_mc", this.getNextHighestDepth());
MenuMusic = new Sound(sndHolder4_mc);
MenuMusic.attachSound("MenuMusic");
MenuMusic.start(0, 999999);
}
function sounds_GameMusic() {
this.createEmptyMovieClip("sndHolder5_mc", this.getNextHighestDepth());
GameMusic = new Sound(sndHolder5_mc);
GameMusic.attachSound("GameMusic");
GameMusic.start(0, 999999);
}
function sounds_Shift() {
this.createEmptyMovieClip("sndHolder6_mc", this.getNextHighestDepth());
var _local2 = new Sound(sndHolder6_mc);
_local2.attachSound("shift");
_local2.setVolume(150);
_local2.start(0, 1);
}
function sounds_Match() {
this.createEmptyMovieClip("sndHolder7_mc", this.getNextHighestDepth());
var _local2 = new Sound(sndHolder7_mc);
_local2.attachSound("match");
_local2.setVolume(200);
_local2.start(0, 1);
}
sounds_ClothesMusic();
sounds_MapMusic();
sounds_MenuMusic();
sounds_GameMusic();
ClothesMusic.setVolume(0);
MapMusic.setVolume(0);
MenuMusic.setVolume(0);
GameMusic.setVolume(0);
Frame 168
ClothesMusic.setVolume(100);
IntroMusic.setVolume(0);
MapMusic.setVolume(0);
MenuMusic.setVolume(0);
GameMusic.setVolume(0);
stop();
Instance of Symbol 122 MovieClip "bear1" in Frame 168
onClipEvent (load) {
var ran = random(_root.bear1.clothes.shirts._totalframes);
_root.bear1.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear1.clothes.pants._totalframes);
_root.bear1.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear1.clothes.shoes._totalframes);
_root.bear1.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear1.clothes.accessories._totalframes);
_root.bear1.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear1.clothes.hair._totalframes);
_root.bear1.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear1.clothes.faces._totalframes);
_root.bear1.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 122 MovieClip "bear2" in Frame 168
onClipEvent (load) {
var ran = random(_root.bear2.clothes.shirts._totalframes);
_root.bear2.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear2.clothes.pants._totalframes);
_root.bear2.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear2.clothes.shoes._totalframes);
_root.bear2.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear2.clothes.accessories._totalframes);
_root.bear2.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear2.clothes.hair._totalframes);
_root.bear2.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear2.clothes.faces._totalframes);
_root.bear2.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 122 MovieClip "bear3" in Frame 168
onClipEvent (load) {
var ran = random(_root.bear3.clothes.shirts._totalframes);
_root.bear3.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear3.clothes.pants._totalframes);
_root.bear3.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear3.clothes.shoes._totalframes);
_root.bear3.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear3.clothes.accessories._totalframes);
_root.bear3.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear3.clothes.hair._totalframes);
_root.bear3.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear3.clothes.faces._totalframes);
_root.bear3.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 122 MovieClip "bear5" in Frame 168
onClipEvent (load) {
var ran = random(_root.bear5.clothes.shirts._totalframes);
_root.bear5.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear5.clothes.pants._totalframes);
_root.bear5.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear5.clothes.shoes._totalframes);
_root.bear5.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear5.clothes.accessories._totalframes);
_root.bear5.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear5.clothes.hair._totalframes);
_root.bear5.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear5.clothes.faces._totalframes);
_root.bear5.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 122 MovieClip "bear6" in Frame 168
onClipEvent (load) {
var ran = random(_root.bear6.clothes.shirts._totalframes);
_root.bear6.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear6.clothes.pants._totalframes);
_root.bear6.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear6.clothes.shoes._totalframes);
_root.bear6.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear6.clothes.accessories._totalframes);
_root.bear6.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear6.clothes.hair._totalframes);
_root.bear6.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear6.clothes.faces._totalframes);
_root.bear6.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 122 MovieClip "bear7" in Frame 168
onClipEvent (load) {
var ran = random(_root.bear7.clothes.shirts._totalframes);
_root.bear7.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear7.clothes.pants._totalframes);
_root.bear7.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear7.clothes.shoes._totalframes);
_root.bear7.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear7.clothes.accessories._totalframes);
_root.bear7.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear7.clothes.hair._totalframes);
_root.bear7.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear7.clothes.faces._totalframes);
_root.bear7.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 122 MovieClip "bear8" in Frame 168
onClipEvent (load) {
var ran = random(_root.bear8.clothes.shirts._totalframes);
_root.bear8.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear8.clothes.pants._totalframes);
_root.bear8.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear8.clothes.shoes._totalframes);
_root.bear8.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear8.clothes.accessories._totalframes);
_root.bear8.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear8.clothes.hair._totalframes);
_root.bear8.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear8.clothes.faces._totalframes);
_root.bear8.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 122 MovieClip "bear4" in Frame 168
onClipEvent (load) {
var ran = random(_root.bear4.clothes.shirts._totalframes);
_root.bear4.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear4.clothes.pants._totalframes);
_root.bear4.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear4.clothes.shoes._totalframes);
_root.bear4.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear4.clothes.accessories._totalframes);
_root.bear4.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear4.clothes.hair._totalframes);
_root.bear4.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear4.clothes.faces._totalframes);
_root.bear4.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 142 MovieClip in Frame 168
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 168
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (169);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (169);
} else {
gotoAndPlay (168);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Frame 169
ClothesMusic.setVolume(0);
MapMusic.setVolume(0);
MenuMusic.setVolume(100);
GameMusic.setVolume(0);
stop();
stop();
Instance of Symbol 149 MovieClip "wallColor" in Frame 169
onClipEvent (load) {
colorchange = new Color(this);
colorchange.setRGB(_root.Bear.wallsColor);
}
Instance of Symbol 155 MovieClip "stool" in Frame 169
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
}
on (releaseOutside) {
stopDrag();
}
Instance of Symbol 158 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[9]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 161 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[3]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 164 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[4]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 167 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[1]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 170 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[2]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 173 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[8]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 176 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[7]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 179 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[10]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 182 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[6]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 185 MovieClip in Frame 169
onClipEvent (load) {
if (!_root.canBuy[5]) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 186 MovieClip "bear" in Frame 169
onClipEvent (load) {
_root.colorMenu.colorName = "Bear";
_root.bear.clothes.shirts.gotoAndStop(_root.Bear.shirt);
_root.bear.clothes.pants.gotoAndStop(_root.Bear.pants);
_root.bear.clothes.shoes.gotoAndStop(_root.Bear.shoes);
_root.bear.clothes.accessories.gotoAndStop(_root.Bear.accessories);
_root.bear.clothes.hair.gotoAndStop(_root.Bear.hair);
_root.bear.clothes.faces.gotoAndStop(_root.Bear.faces);
}
onClipEvent (enterFrame) {
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.Bear.eyesColor);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.Bear.hairColor);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.Bear.hairSecondColor);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.Bear.topColor);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.Bear.bottomsColor);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.Bear.shoesColor);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.Bear.shoesSecondColor);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.Bear.accessoriesColor);
}
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
}
on (releaseOutside) {
stopDrag();
}
Instance of Symbol 193 MovieClip in Frame 169
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
}
on (releaseOutside) {
stopDrag();
}
Instance of Symbol 142 MovieClip in Frame 169
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 169
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (170);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (170);
} else {
gotoAndPlay (169);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Frame 170
stop();
Instance of Symbol 122 MovieClip "bear" in Frame 170
onClipEvent (load) {
var ran = random(_root.bear.clothes.shirts._totalframes);
_root.bear.clothes.shirts.gotoAndStop(ran + 1);
var ran = random(_root.bear.clothes.pants._totalframes);
_root.bear.clothes.pants.gotoAndStop(ran + 1);
var ran = random(_root.bear.clothes.shoes._totalframes);
_root.bear.clothes.shoes.gotoAndStop(ran + 1);
var ran = random(_root.bear.clothes.accessories._totalframes);
_root.bear.clothes.accessories.gotoAndStop(ran + 1);
var ran = random(_root.bear.clothes.hair._totalframes);
_root.bear.clothes.hair.gotoAndStop(ran + 1);
var ran = random(_root.bear.clothes.faces._totalframes);
_root.bear.clothes.faces.gotoAndStop(ran + 1);
var ran = random(16);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.randomColorA[ran]);
var ran = random(16);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.randomColorA[ran]);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.randomColorB[ran]);
var ran = random(16);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.randomColorA[ran]);
}
Instance of Symbol 412 MovieClip "menu" in Frame 170
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 142 MovieClip in Frame 170
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 170
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (171);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (171);
} else {
gotoAndPlay (170);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Frame 171
ClothesMusic.setVolume(0);
MapMusic.setVolume(100);
MenuMusic.setVolume(0);
GameMusic.setVolume(0);
stop();
northam.onRollOver = function () {
this.gotoAndPlay("over");
};
northam.onRollOut = function () {
this.gotoAndPlay("off");
};
latam.onRollOver = function () {
this.gotoAndPlay("over");
};
latam.onRollOut = function () {
this.gotoAndPlay("off");
};
emea.onRollOver = function () {
this.gotoAndPlay("over");
};
emea.onRollOut = function () {
this.gotoAndPlay("off");
};
eurea.onRollOver = function () {
this.gotoAndPlay("over");
};
eurea.onRollOut = function () {
this.gotoAndPlay("off");
};
ant.onRollOver = function () {
this.gotoAndPlay("over");
};
ant.onRollOut = function () {
this.gotoAndPlay("off");
};
apac.onRollOver = function () {
this.gotoAndPlay("over");
};
apac.onRollOut = function () {
this.gotoAndPlay("off");
};
aust.onRollOver = function () {
this.gotoAndPlay("over");
};
aust.onRollOut = function () {
this.gotoAndPlay("off");
};
Instance of Symbol 424 MovieClip "apac" in Frame 171
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/CureBear/asia.cgi", "_blank");
}
Instance of Symbol 426 MovieClip "emea" in Frame 171
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/CureBear/africa.cgi", "_blank");
}
Instance of Symbol 428 MovieClip "latam" in Frame 171
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/CureBear/southamerica.cgi", "_blank");
}
Instance of Symbol 430 MovieClip "northam" in Frame 171
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/CureBear/northamerica.cgi", "_blank");
}
Instance of Symbol 432 MovieClip "aust" in Frame 171
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/CureBear/australia.cgi", "_blank");
}
Instance of Symbol 434 MovieClip "eurea" in Frame 171
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/CureBear/europe.cgi", "_blank");
}
Instance of Symbol 436 MovieClip "ant" in Frame 171
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/CureBear/antarctica.cgi", "_blank");
}
Instance of Symbol 142 MovieClip in Frame 171
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 171
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (172);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (172);
} else {
gotoAndPlay (171);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Frame 172
ClothesMusic.setVolume(0);
MapMusic.setVolume(0);
MenuMusic.setVolume(0);
GameMusic.setVolume(75);
stop();
Instance of Symbol 186 MovieClip "bear" in Frame 172
onClipEvent (load) {
_root.bear.clothes.shirts.gotoAndStop(_root.Bear.shirt);
_root.bear.clothes.pants.gotoAndStop(_root.Bear.pants);
_root.bear.clothes.shoes.gotoAndStop(_root.Bear.shoes);
_root.bear.clothes.accessories.gotoAndStop(_root.Bear.accessories);
_root.bear.clothes.hair.gotoAndStop(_root.Bear.hair);
_root.bear.clothes.faces.gotoAndStop(_root.Bear.faces);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.Bear.eyesColor);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.Bear.hairColor);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.Bear.hairSecondColor);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.Bear.topColor);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.Bear.bottomsColor);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.Bear.shoesColor);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.Bear.shoesSecondColor);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.Bear.accessoriesColor);
}
Instance of Symbol 142 MovieClip in Frame 172
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 172
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (173);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (173);
} else {
gotoAndPlay (172);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Frame 173
function initializeBoard() {
Puzzle = [A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4, D1, D2, D3, D4];
var _local1 = 0;
while (_local1 < 16) {
Puzzle[_local1].number = _local1 + 1;
_local1++;
}
Puzzle[15].number = "";
winnerText = "Arrange the squares so that they are in order from 1-15";
puzzleGameOver = false;
puzzleSelection = null;
shuffle();
}
function updateBoard() {
var _local3 = true;
var _local2 = 0;
while (_local2 < 16) {
if (_local2 != 14) {
if (int(Puzzle[_local2 + 1].number) < int(Puzzle[_local2].number)) {
_local3 = false;
}
}
if (Puzzle[_local2] == puzzleSelection) {
if (_local2 < 4) {
if (_local2 == 0) {
if (Puzzle[_local2 + 1].number == "") {
Puzzle[_local2 + 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 4].number == "") {
Puzzle[_local2 + 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
} else if (_local2 == 3) {
if (Puzzle[_local2 - 1].number == "") {
Puzzle[_local2 - 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 4].number == "") {
Puzzle[_local2 + 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
} else if (Puzzle[_local2 - 1].number == "") {
Puzzle[_local2 - 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 1].number == "") {
Puzzle[_local2 + 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 4].number == "") {
Puzzle[_local2 + 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
} else if (_local2 > 11) {
if (_local2 == 12) {
if (Puzzle[_local2 - 4].number == "") {
Puzzle[_local2 - 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 1].number == "") {
Puzzle[_local2 + 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
} else if (_local2 == 15) {
if (Puzzle[_local2 - 1].number == "") {
Puzzle[_local2 - 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 - 4].number == "") {
Puzzle[_local2 - 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
} else if (Puzzle[_local2 - 1].number == "") {
Puzzle[_local2 - 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 - 4].number == "") {
Puzzle[_local2 - 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 1].number == "") {
Puzzle[_local2 + 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
} else if ((_local2 == 4) || (_local2 == 8)) {
if (Puzzle[_local2 - 4].number == "") {
Puzzle[_local2 - 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 1].number == "") {
Puzzle[_local2 + 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 4].number == "") {
Puzzle[_local2 + 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
} else if ((_local2 == 7) || (_local2 == 11)) {
if (Puzzle[_local2 - 1].number == "") {
Puzzle[_local2 - 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 - 4].number == "") {
Puzzle[_local2 - 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 4].number == "") {
Puzzle[_local2 + 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
} else if (Puzzle[_local2 - 1].number == "") {
Puzzle[_local2 - 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 - 4].number == "") {
Puzzle[_local2 - 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 1].number == "") {
Puzzle[_local2 + 1].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
} else if (Puzzle[_local2 + 4].number == "") {
Puzzle[_local2 + 4].number = Puzzle[_local2].number;
Puzzle[_local2].number = "";
_root.sounds_Shift();
}
puzzleSelection = null;
}
_local2++;
}
if (_local3) {
puzzleGameOver = true;
playerPoints = playerPoints + 100;
_root.sounds_Match();
winnerText = "You are the\nWinner!!!";
}
}
function shuffle() {
var _local3 = 0;
var _local1 = 15;
while (_local3 < 600) {
if (_local1 < 4) {
if (_local1 == 0) {
var _local2 = random(2);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 + 1].number;
Puzzle[_local1 + 1].number = "";
_local1 = _local1 + 1;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 4].number;
Puzzle[_local1 + 4].number = "";
_local1 = _local1 + 4;
}
} else if (_local1 == 3) {
var _local2 = random(2);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 - 1].number;
Puzzle[_local1 - 1].number = "";
_local1 = _local1 - 1;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 4].number;
Puzzle[_local1 + 4].number = "";
_local1 = _local1 + 4;
}
} else {
var _local2 = random(3);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 - 1].number;
Puzzle[_local1 - 1].number = "";
_local1 = _local1 - 1;
} else if (_local2 == 1) {
Puzzle[_local1].number = Puzzle[_local1 + 1].number;
Puzzle[_local1 + 1].number = "";
_local1 = _local1 + 1;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 4].number;
Puzzle[_local1 + 4].number = "";
_local1 = _local1 + 4;
}
}
} else if (_local1 > 11) {
if (_local1 == 12) {
var _local2 = random(2);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 - 4].number;
Puzzle[_local1 - 4].number = "";
_local1 = _local1 - 4;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 1].number;
Puzzle[_local1 + 1].number = "";
_local1 = _local1 + 1;
}
} else if (_local1 == 15) {
var _local2 = random(2);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 - 1].number;
Puzzle[_local1 - 1].number = "";
_local1 = _local1 - 1;
} else {
Puzzle[_local1].number = Puzzle[_local1 - 4].number;
Puzzle[_local1 - 4].number = "";
_local1 = _local1 - 4;
}
} else {
var _local2 = random(3);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 - 1].number;
Puzzle[_local1 - 1].number = "";
_local1 = _local1 - 1;
} else if (_local2 == 1) {
Puzzle[_local1].number = Puzzle[_local1 - 4].number;
Puzzle[_local1 - 4].number = "";
_local1 = _local1 - 4;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 1].number;
Puzzle[_local1 + 1].number = "";
_local1 = _local1 + 1;
}
}
} else if ((_local1 == 4) || (_local1 == 8)) {
var _local2 = random(3);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 - 4].number;
Puzzle[_local1 - 4].number = "";
_local1 = _local1 - 4;
} else if (_local2 == 1) {
Puzzle[_local1].number = Puzzle[_local1 + 1].number;
Puzzle[_local1 + 1].number = "";
_local1 = _local1 + 1;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 4].number;
Puzzle[_local1 + 4].number = "";
_local1 = _local1 + 4;
}
} else if ((_local1 == 7) || (_local1 == 11)) {
var _local2 = random(3);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 - 1].number;
Puzzle[_local1 - 1].number = "";
_local1 = _local1 - 1;
} else if (_local2 == 1) {
Puzzle[_local1].number = Puzzle[_local1 - 4].number;
Puzzle[_local1 - 4].number = "";
_local1 = _local1 - 4;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 4].number;
Puzzle[_local1 + 4].number = "";
_local1 = _local1 + 4;
}
} else {
var _local2 = random(4);
if (_local2 == 0) {
Puzzle[_local1].number = Puzzle[_local1 - 1].number;
Puzzle[_local1 - 1].number = "";
_local1 = _local1 - 1;
} else if (_local2 == 1) {
Puzzle[_local1].number = Puzzle[_local1 - 4].number;
Puzzle[_local1 - 4].number = "";
_local1 = _local1 - 4;
} else if (_local2 == 2) {
Puzzle[_local1].number = Puzzle[_local1 + 1].number;
Puzzle[_local1 + 1].number = "";
_local1 = _local1 + 1;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 4].number;
Puzzle[_local1 + 4].number = "";
_local1 = _local1 + 4;
}
}
_local3++;
}
while (Puzzle[15].number != "") {
if ((((_local1 != 3) && (_local1 != 7)) && (_local1 != 11)) && (_local1 != 15)) {
Puzzle[_local1].number = Puzzle[_local1 + 1].number;
Puzzle[_local1 + 1].number = "";
_local1 = _local1 + 1;
} else {
Puzzle[_local1].number = Puzzle[_local1 + 4].number;
Puzzle[_local1 + 4].number = "";
_local1 = _local1 + 4;
}
}
}
Instance of Symbol 186 MovieClip "bear" in Frame 173
onClipEvent (load) {
_root.bear.clothes.shirts.gotoAndStop(_root.Bear.shirt);
_root.bear.clothes.pants.gotoAndStop(_root.Bear.pants);
_root.bear.clothes.shoes.gotoAndStop(_root.Bear.shoes);
_root.bear.clothes.accessories.gotoAndStop(_root.Bear.accessories);
_root.bear.clothes.hair.gotoAndStop(_root.Bear.hair);
_root.bear.clothes.faces.gotoAndStop(_root.Bear.faces);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.Bear.eyesColor);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.Bear.hairColor);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.Bear.hairSecondColor);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.Bear.topColor);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.Bear.bottomsColor);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.Bear.shoesColor);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.Bear.shoesSecondColor);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.Bear.accessoriesColor);
}
Instance of Symbol 142 MovieClip in Frame 173
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 173
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (174);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (174);
} else {
gotoAndPlay (173);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Instance of Symbol 474 MovieClip in Frame 173
onClipEvent (load) {
_root.initializeBoard();
}
onClipEvent (enterFrame) {
if (!_root.puzzleGameOver) {
_root.playAgainButton._visible = false;
_root.updateBoard();
} else {
_root.playAgainButton._visible = true;
}
}
Frame 174
function initializeBoard() {
TTTBoard = [[A1, A2, A3], [B1, B2, B3], [C1, C2, C3]];
var _local2 = 0;
while (_local2 < 3) {
var _local1 = 0;
while (_local1 < 3) {
TTTBoard[_local2][_local1].choice = null;
_local1++;
}
_local2++;
}
turn = "Player";
playerChoice = "O";
ComputerChoice = "X";
winnerText = "";
win1._visible = false;
win2._visible = false;
win3._visible = false;
win4._visible = false;
win5._visible = false;
win6._visible = false;
win7._visible = false;
win8._visible = false;
lose1._visible = false;
lose2._visible = false;
lose3._visible = false;
lose4._visible = false;
lose5._visible = false;
lose6._visible = false;
lose7._visible = false;
lose8._visible = false;
TTTgameOver = false;
}
function updateBoard() {
var _local2 = 0;
while (_local2 < 3) {
var _local1 = 0;
while (_local1 < 3) {
if (TTTBoard[_local2][_local1].choice == "X") {
TTTBoard[_local2][_local1].X._visible = true;
TTTBoard[_local2][_local1].O._visible = false;
} else if (TTTBoard[_local2][_local1].choice == "O") {
TTTBoard[_local2][_local1].X._visible = false;
TTTBoard[_local2][_local1].O._visible = true;
} else {
TTTBoard[_local2][_local1].X._visible = false;
TTTBoard[_local2][_local1].O._visible = false;
}
_local1++;
}
_local2++;
}
}
function computerTurn() {
var _local2 = random(3);
var _local1 = random(3);
if (TTTBoard[_local2][_local1].choice == null) {
TTTBoard[_local2][_local1].choice = ComputerChoice;
turn = "Player";
}
}
function checkWinner() {
var _local4 = true;
var _local2 = 0;
while (_local2 < 3) {
if (((TTTBoard[0][_local2].choice == TTTBoard[1][_local2].choice) && (TTTBoard[0][_local2].choice == TTTBoard[2][_local2].choice)) && (TTTBoard[0][_local2].choice != null)) {
if (TTTBoard[0][_local2].choice == playerChoice) {
switch (_local2) {
case 0 :
win4._visible = true;
break;
case 1 :
win5._visible = true;
break;
case 2 :
win6._visible = true;
}
winnerText = "You are the\nWinner!!!";
} else {
switch (_local2) {
case 0 :
lose4._visible = true;
break;
case 1 :
lose5._visible = true;
break;
case 2 :
lose6._visible = true;
}
winnerText = "You lost this match,\ntry again!!!";
}
TTTgameOver = true;
} else if (((TTTBoard[_local2][0].choice == TTTBoard[_local2][1].choice) && (TTTBoard[_local2][0].choice == TTTBoard[_local2][2].choice)) && (TTTBoard[_local2][0].choice != null)) {
if (TTTBoard[_local2][0].choice == playerChoice) {
switch (_local2) {
case 0 :
win1._visible = true;
break;
case 1 :
win2._visible = true;
break;
case 2 :
win3._visible = true;
}
winnerText = "You are the\nWinner!!!";
} else {
switch (_local2) {
case 0 :
lose1._visible = true;
break;
case 1 :
lose2._visible = true;
break;
case 2 :
lose3._visible = true;
}
winnerText = "You lost this match,\ntry again!!!";
}
TTTgameOver = true;
}
var _local3 = 0;
while (_local3 < 3) {
if (TTTBoard[_local2][_local3].choice == null) {
_local4 = false;
}
_local3++;
}
_local2++;
}
if (TTTBoard[1][1].choice != null) {
if ((TTTBoard[0][0].choice == TTTBoard[1][1].choice) && (TTTBoard[0][0].choice == TTTBoard[2][2].choice)) {
if (TTTBoard[1][1].choice == playerChoice) {
win7._visible = true;
winnerText = "You are the\nWinner!!!";
} else {
lose7._visible = true;
winnerText = "You lost this match,\ntry again!!!";
}
TTTgameOver = true;
} else if ((TTTBoard[0][2].choice == TTTBoard[1][1].choice) && (TTTBoard[0][2].choice == TTTBoard[2][0].choice)) {
if (TTTBoard[1][1].choice == playerChoice) {
win8._visible = true;
winnerText = "You are the\nWinner!!!";
} else {
lose8._visible = true;
winnerText = "You lost this match,\ntry again!!!";
}
TTTgameOver = true;
}
}
if (winnerText == "You are the\nWinner!!!") {
_root.sounds_Match();
playerPoints++;
} else if (_local4) {
winnerText = "This Game is a\nTie!!!";
TTTgameOver = true;
}
}
changeTurn = function () {
if ((!TTTgameOver) && (_root.turn != "Player")) {
_root.turn = "Computer";
}
clearInterval(delInterval);
};
Instance of Symbol 186 MovieClip "bear" in Frame 174
onClipEvent (load) {
_root.bear.clothes.shirts.gotoAndStop(_root.Bear.shirt);
_root.bear.clothes.pants.gotoAndStop(_root.Bear.pants);
_root.bear.clothes.shoes.gotoAndStop(_root.Bear.shoes);
_root.bear.clothes.accessories.gotoAndStop(_root.Bear.accessories);
_root.bear.clothes.hair.gotoAndStop(_root.Bear.hair);
_root.bear.clothes.faces.gotoAndStop(_root.Bear.faces);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.Bear.eyesColor);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.Bear.hairColor);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.Bear.hairSecondColor);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.Bear.topColor);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.Bear.bottomsColor);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.Bear.shoesColor);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.Bear.shoesSecondColor);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.Bear.accessoriesColor);
}
Instance of Symbol 142 MovieClip in Frame 174
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 174
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (175);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (175);
} else {
gotoAndPlay (174);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Instance of Symbol 488 MovieClip in Frame 174
onClipEvent (load) {
_root.initializeBoard();
_root.winnerText = "It is your turn to\nchoose a square...";
}
onClipEvent (enterFrame) {
if (!_root.TTTgameOver) {
_root.playAgainButton._visible = false;
if ((_root.turn == "Computer") && (!_root.TTTgameOver)) {
_root.computerTurn();
_root.winnerText = "It is your turn to\nchoose a square...";
}
_root.updateBoard();
_root.checkWinner();
} else {
_root.playAgainButton._visible = true;
}
}
Frame 175
function initializeBoard() {
MemoryDeck = [A1, A2, A3, A4, A5, B1, B2, B3, B4, B5, C1, C2, C3, C4, C5, D1, D2, D3, D4, D5];
MemoryBoard = new Array();
var _local1 = 0;
while (_local1 < 20) {
var _local2 = random(MemoryDeck.length);
MemoryDeck[_local2].flipped = false;
MemoryBoard.push(MemoryDeck[_local2]);
MemoryDeck.splice(_local2, 1);
MemoryBoard[_local1].border.gotoAndStop(1);
MemoryBoard[_local1].image.gotoAndStop((_local1 % 10) + 1);
_local1++;
}
pairsLeft = 10;
memoryAction = 0;
winnerText = "Select a card to\nflip it over";
memoryGameOver = false;
choice = new Array();
}
function updateBoard() {
var _local1 = 0;
while (_local1 < 20) {
if (MemoryBoard[_local1].flipped) {
MemoryBoard[_local1].cover._visible = false;
} else {
MemoryBoard[_local1].cover._visible = true;
}
_local1++;
}
}
validate = function () {
if (choice[0].image._currentframe != choice[1].image._currentframe) {
choice[0].flipped = false;
choice[1].flipped = false;
} else {
_root.sounds_Match();
pairsLeft--;
choice[0].border.nextFrame();
choice[1].border.nextFrame();
if (pairsLeft == 0) {
winnerText = "You are the\nWinner!!!";
playerPoints = playerPoints + 5;
} else {
playerPoints++;
}
}
choice.pop();
choice.pop();
memoryAction = 0;
clearInterval(delInterval);
winnerText = "Select a card to\nflip it over";
};
Instance of Symbol 186 MovieClip "bear" in Frame 175
onClipEvent (load) {
_root.bear.clothes.shirts.gotoAndStop(_root.Bear.shirt);
_root.bear.clothes.pants.gotoAndStop(_root.Bear.pants);
_root.bear.clothes.shoes.gotoAndStop(_root.Bear.shoes);
_root.bear.clothes.accessories.gotoAndStop(_root.Bear.accessories);
_root.bear.clothes.hair.gotoAndStop(_root.Bear.hair);
_root.bear.clothes.faces.gotoAndStop(_root.Bear.faces);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.Bear.eyesColor);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.Bear.hairColor);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.Bear.hairSecondColor);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.Bear.topColor);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.Bear.bottomsColor);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.Bear.shoesColor);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.Bear.shoesSecondColor);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.Bear.accessoriesColor);
}
Instance of Symbol 142 MovieClip in Frame 175
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 175
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (176);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (176);
} else {
gotoAndPlay (175);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Instance of Symbol 519 MovieClip in Frame 175
onClipEvent (load) {
_root.initializeBoard();
}
onClipEvent (enterFrame) {
if (_root.pairsLeft != 0) {
_root.playAgainButton._visible = false;
if ((_root.turn == 3) && (!_root.MemoryGameOver)) {
}
_root.updateBoard();
} else {
_root.playAgainButton._visible = true;
}
}
Frame 176
function initializeLevel() {
marpeyGameOver = false;
levelActive = false;
currentLevel = 1;
HitZone = null;
loadMap();
winnerText = "Move over the honey\nto pick it up!";
}
function updateMarpeyPosition() {
if (levelActive) {
Mouse.hide();
marpey.honey._visible = true;
if (HitZone.hitTest(_xmouse, _ymouse, true)) {
level.startButton._visible = true;
levelActive = false;
winnerText = "You dropped the honey,\ntry again!";
}
} else {
Mouse.show();
marpey.honey._visible = false;
}
if (!level.hitTest(_xmouse, _ymouse, true)) {
if (level.startButton._visible == false) {
winnerText = "You dropped the honey,\ntry again!";
}
Mouse.show();
marpey._visible = false;
level.startButton._visible = true;
levelActive = false;
} else {
Mouse.hide();
marpey._visible = true;
startDrag ("_root.marpey", true);
}
}
function loadMap() {
if (currentLevel > 7) {
currentLevel = 1;
}
HitZone = level.hitZone;
level.gotoAndStop(currentLevel);
}
Instance of Symbol 186 MovieClip "bear" in Frame 176
onClipEvent (load) {
_root.bear.clothes.shirts.gotoAndStop(_root.Bear.shirt);
_root.bear.clothes.pants.gotoAndStop(_root.Bear.pants);
_root.bear.clothes.shoes.gotoAndStop(_root.Bear.shoes);
_root.bear.clothes.accessories.gotoAndStop(_root.Bear.accessories);
_root.bear.clothes.hair.gotoAndStop(_root.Bear.hair);
_root.bear.clothes.faces.gotoAndStop(_root.Bear.faces);
colorchange = new Color("head.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("body.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("arms.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("legs.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.eyes.mainColor");
colorchange.setRGB(_root.Bear.mainColor);
colorchange = new Color("head.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("body.secondColor");
colorchange.setRGB(_root.Bear.secondColor);
colorchange = new Color("head.eyes.eyesColor");
colorchange.setRGB(_root.Bear.eyesColor);
colorchange = new Color("clothes.hair.mainColor");
colorchange.setRGB(_root.Bear.hairColor);
colorchange = new Color("clothes.hair.secondColor");
colorchange.setRGB(_root.Bear.hairSecondColor);
colorchange = new Color("clothes.shirts.color");
colorchange.setRGB(_root.Bear.topColor);
colorchange = new Color("clothes.pants.color");
colorchange.setRGB(_root.Bear.bottomsColor);
colorchange = new Color("clothes.shoes.color");
colorchange.setRGB(_root.Bear.shoesColor);
colorchange = new Color("clothes.shoes.secondColor");
colorchange.setRGB(_root.Bear.shoesSecondColor);
colorchange = new Color("clothes.accessories.color");
colorchange.setRGB(_root.Bear.accessoriesColor);
}
Instance of Symbol 142 MovieClip in Frame 176
on (press) {
getURL ("http://z.cs.utexas.edu/users/cs329e/jasonds/iCare/", "_blank");
}
Instance of Symbol 146 MovieClip "mute" in Frame 176
onClipEvent (load) {
if (_root.Muted == null) {
_root.Muted = false;
} else if (_root.Muted) {
gotoAndStop (177);
} else {
prevFrame();
}
}
onClipEvent (enterFrame) {
var music = new Sound();
if (_root.Muted) {
music.setVolume(0);
} else {
music.setVolume(100);
}
}
on (press) {
_root.Muted = !_root.Muted;
if (_root.Muted) {
gotoAndStop (177);
} else {
gotoAndPlay (176);
}
}
on (rollOver) {
trans._alpha = 100;
}
on (rollOut) {
trans._alpha = 60;
}
Instance of Symbol 567 MovieClip in Frame 176
onClipEvent (load) {
_root.initializeLevel();
}
onClipEvent (enterFrame) {
if (!_root.marpeyGameOver) {
_root.playAgainButton._visible = false;
_root.updateMarpeyPosition();
} else {
_root.playAgainButton._visible = true;
}
}
Symbol 11 MovieClip Frame 1
var value = 0;
onEnterFrame = function () {
bar_mc._xscale = 100 * value;
};
onEnterFrame();
Symbol 63 MovieClip Frame 199
if (random(2) == 0) {
gotoAndPlay (1);
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 3
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 3
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 3
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 131 Button
on (release) {
gotoAndPlay (172);
}
Symbol 132 Button
on (release) {
gotoAndPlay (169);
}
Symbol 133 Button
on (release) {
gotoAndPlay (170);
}
Symbol 137 Button
on (release) {
gotoAndPlay (171);
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 209 Button
on (release) {
_root.clothes_choice.gotoAndStop("accessories");
_root.currentSelection = "accessories";
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 3
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Instance of Symbol 200 MovieClip "clothes" in Symbol 224 MovieClip Frame 1
on (release) {
_root.bear.clothes.shirts.gotoAndStop(_currentframe);
_root.Bear.shirt = _currentframe;
}
Instance of Symbol 204 MovieClip "clothes" in Symbol 224 MovieClip Frame 2
on (release) {
_root.bear.clothes.pants.gotoAndStop(_currentframe);
_root.Bear.pants = _currentframe;
}
Instance of Symbol 207 MovieClip "clothes" in Symbol 224 MovieClip Frame 3
on (release) {
_root.bear.clothes.shoes.gotoAndStop(_currentframe);
_root.Bear.shoes = _currentframe;
}
Instance of Symbol 210 MovieClip "clothes" in Symbol 224 MovieClip Frame 4
on (release) {
_root.bear.clothes.accessories.gotoAndStop(_currentframe);
_root.Bear.accessories = _currentframe;
}
Instance of Symbol 214 MovieClip "clothes" in Symbol 224 MovieClip Frame 5
on (release) {
_root.bear.clothes.hair.gotoAndStop(_currentframe);
_root.Bear.hair = _currentframe;
}
Instance of Symbol 223 MovieClip "clothes" in Symbol 224 MovieClip Frame 6
on (release) {
_root.bear.clothes.faces.gotoAndStop(_currentframe);
_root.Bear.faces = _currentframe;
}
Symbol 226 Button
on (release) {
if (_root.clothesChoice.clothes_choice.clothes._currentframe == 1) {
_root.clothesChoice.clothes_choice.clothes.gotoAndStop(_root.clothesChoice.clothes_choice.clothes._totalframes);
} else {
_root.clothesChoice.clothes_choice.clothes.prevFrame();
}
}
Symbol 227 Button
on (release) {
if (_root.clothesChoice.clothes_choice.clothes._currentframe == _root.clothesChoice.clothes_choice.clothes._totalframes) {
_root.clothesChoice.clothes_choice.clothes.gotoAndStop(1);
} else {
_root.clothesChoice.clothes_choice.clothes.nextFrame();
}
}
Instance of Symbol 195 MovieClip in Symbol 229 MovieClip Frame 1
on (press) {
startDrag (_root.clothesChoice);
}
on (release) {
_root.clothesChoice.stopDrag();
}
on (releaseOutside) {
_root.clothesChoice.stopDrag();
}
Instance of Symbol 232 MovieClip in Symbol 234 MovieClip Frame 1
on (press) {
startDrag (_root.clothesSelectionMenu);
}
on (release) {
_root.clothesSelectionMenu.stopDrag();
}
on (releaseOutside) {
_root.clothesSelectionMenu.stopDrag();
}
Symbol 236 Button
on (release) {
_root.clothesChoice.clothes_choice.gotoAndStop("shirts");
_root.currentSelection = "tops";
}
Symbol 238 Button
on (release) {
_root.clothesChoice.clothes_choice.gotoAndStop("pants");
_root.currentSelection = "bottoms";
}
Symbol 240 Button
on (release) {
_root.clothesChoice.clothes_choice.gotoAndStop("shoes");
_root.currentSelection = "shoes";
}
Symbol 244 Button
on (release) {
_root.clothesChoice.clothes_choice.gotoAndStop("accessories");
_root.currentSelection = "accessories";
}
Symbol 247 Button
on (release) {
_root.clothesChoice.clothes_choice.gotoAndStop("faces");
_root.currentSelection = "expressions";
}
Symbol 250 Button
on (release) {
_root.clothesChoice.clothes_choice.gotoAndStop("hair");
_root.currentSelection = "hair";
}
Symbol 255 Button
on (release) {
var ran = random(_root.bear.clothes.shirts._totalframes);
_root.bear.clothes.shirts.gotoAndStop(ran + 1);
_root.Bear.shirt = ran + 1;
var ran = random(_root.bear.clothes.pants._totalframes);
_root.bear.clothes.pants.gotoAndStop(ran + 1);
_root.Bear.pants = ran + 1;
var ran = random(_root.bear.clothes.shoes._totalframes);
_root.bear.clothes.shoes.gotoAndStop(ran + 1);
_root.Bear.shoes = ran + 1;
var ran = random(_root.bear.clothes.accessories._totalframes);
_root.bear.clothes.accessories.gotoAndStop(ran + 1);
_root.Bear.accessories = ran + 1;
var ran = random(_root.bear.clothes.hair._totalframes);
_root.bear.clothes.hair.gotoAndStop(ran + 1);
_root.Bear.hair = ran + 1;
var ran = random(_root.bear.clothes.faces._totalframes);
_root.bear.clothes.faces.gotoAndStop(ran + 1);
_root.Bear.faces = ran + 1;
var ran = random(16);
_root.Bear.mainColor = randomColorA[ran];
_root.Bear.secondColor = randomColorB[ran];
var ran = random(16);
_root.Bear.eyesColor = randomColorA[ran];
var ran = random(16);
_root.Bear.hairColor = randomColorA[ran];
_root.Bear.hairSecondColor = randomColorB[ran];
var ran = random(16);
_root.Bear.topColor = randomColorA[ran];
var ran = random(16);
_root.Bear.bottomsColor = randomColorA[ran];
var ran = random(16);
_root.Bear.shoesColor = randomColorA[ran];
_root.Bear.shoesSecondColor = randomColorB[ran];
var ran = random(16);
_root.Bear.accessoriesColor = randomColorA[ran];
}
Symbol 264 Button
on (release) {
var colorA = 10218237;
var colorB = 13694971;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 266 Button
on (release) {
var colorA = 8668865;
var colorB = 11898842;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 268 Button
on (release) {
var colorA = 9652480;
var colorB = 15890688;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 270 Button
on (release) {
var colorA = 16711680;
var colorB = 16737380;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 272 Button
on (release) {
var colorA = 16760779;
var colorB = 16768483;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 274 Button
on (release) {
var colorA = 16746037;
var colorB = 16758148;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 276 Button
on (release) {
var colorA = 4223231;
var colorB = 9678591;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 278 Button
on (release) {
var colorA = 65280;
var colorB = 10354589;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 280 Button
on (release) {
var colorA = 3407749;
var colorB = 11206604;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 282 Button
on (release) {
var colorA = 16739436;
var colorB = 16754856;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 284 Button
on (release) {
var colorA = 26163;
var colorB = 47452;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 286 Button
on (release) {
var colorA = 255;
var colorB = 7961087;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 288 Button
on (release) {
var colorA = 16777090;
var colorB = 16777147;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 290 Button
on (release) {
var colorA = 2105376;
var colorB = 7303023;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 292 Button
on (release) {
var colorA = 15066597;
var colorB = 10921638;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 294 Button
on (release) {
var colorA = 16776960;
var colorB = 16777088;
switch (_root.colorMenu.colorName) {
case "Bear" :
_root.Bear.mainColor = colorA;
_root.Bear.secondColor = colorB;
break;
case "Eyes" :
_root.Bear.eyesColor = colorA;
break;
case "Hair" :
_root.Bear.hairColor = colorA;
_root.Bear.hairSecondColor = colorB;
break;
case "Top" :
_root.Bear.topColor = colorA;
break;
case "Bottoms" :
_root.Bear.bottomsColor = colorA;
break;
case "Shoes" :
_root.Bear.shoesColor = colorA;
_root.Bear.shoesSecondColor = colorB;
break;
case "Accessories" :
_root.Bear.accessoriesColor = colorA;
}
}
Symbol 296 Button
on (release) {
if (!color_submenu._visible) {
color_submenu_button._rotation = color_submenu_button._rotation - 90;
} else {
color_submenu_button._rotation = color_submenu_button._rotation + 90;
}
color_submenu._visible = !color_submenu._visible;
}
Symbol 298 Button
on (release) {
_root.colorMenu.colorName = "Accessories";
_root.colorMenu.color_submenu_button._rotation = _root.colorMenu.color_submenu_button._rotation + 90;
_root.colorMenu.color_submenu._visible = false;
}
Symbol 299 Button
on (release) {
_root.colorMenu.colorName = "Shoes";
_root.colorMenu.color_submenu_button._rotation = _root.colorMenu.color_submenu_button._rotation + 90;
_root.colorMenu.color_submenu._visible = false;
}
Symbol 300 Button
on (release) {
_root.colorMenu.colorName = "Bottoms";
_root.colorMenu.color_submenu_button._rotation = _root.colorMenu.color_submenu_button._rotation + 90;
_root.colorMenu.color_submenu._visible = false;
}
Symbol 301 Button
on (release) {
_root.colorMenu.colorName = "Top";
_root.colorMenu.color_submenu_button._rotation = _root.colorMenu.color_submenu_button._rotation + 90;
_root.colorMenu.color_submenu._visible = false;
}
Symbol 302 Button
on (release) {
_root.colorMenu.colorName = "Hair";
_root.colorMenu.color_submenu_button._rotation = _root.colorMenu.color_submenu_button._rotation + 90;
_root.colorMenu.color_submenu._visible = false;
}
Symbol 303 Button
on (release) {
_root.colorMenu.colorName = "Eyes";
_root.colorMenu.color_submenu_button._rotation = _root.colorMenu.color_submenu_button._rotation + 90;
_root.colorMenu.color_submenu._visible = false;
}
Symbol 304 Button
on (release) {
_root.colorMenu.colorName = "Bear";
_root.colorMenu.color_submenu_button._rotation = _root.colorMenu.color_submenu_button._rotation + 90;
_root.colorMenu.color_submenu._visible = false;
}
Instance of Symbol 258 MovieClip in Symbol 315 MovieClip Frame 1
on (press) {
startDrag (_root.colorMenu);
}
on (release) {
_root.colorMenu.stopDrag();
}
on (releaseOutside) {
_root.colorMenu.stopDrag();
}
Instance of Symbol 313 MovieClip "color_submenu" in Symbol 315 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 319 Button
on (release) {
gotoAndPlay (168);
}
Symbol 324 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(1);
cost = 15;
}
Symbol 327 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(2);
cost = 17;
}
Symbol 330 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(3);
cost = 22;
}
Symbol 333 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(4);
cost = 16;
}
Symbol 336 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(5);
cost = 12;
}
Symbol 339 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(6);
cost = 81;
}
Symbol 342 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(7);
cost = 45;
}
Symbol 345 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(8);
cost = 27;
}
Symbol 348 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(9);
cost = 50;
}
Symbol 351 Button
on (release) {
menu._visible = true;
menu.selection.gotoAndStop(10);
cost = 23;
}
Symbol 358 Button
on (release) {
_root.menu._visible = true;
_root.menu.selection.gotoAndStop(11);
cost = 30;
}
Symbol 365 Button
on (release) {
_root.menu._visible = false;
}
Symbol 371 Button
on (release) {
if ((_root.cost <= _root.playerPoints) && (_root.canBuy[_currentframe])) {
_root.playerPoints = _root.playerPoints - _root.cost;
_root.canBuy[_currentframe] = false;
_root.menu._visible = false;
}
}
Symbol 391 Button
on (release) {
var colorB = 13694971;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 392 Button
on (release) {
var colorB = 11898842;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 393 Button
on (release) {
var colorB = 15890688;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 394 Button
on (release) {
var colorB = 16737380;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 395 Button
on (release) {
var colorB = 16768483;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 396 Button
on (release) {
var colorB = 16758148;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 397 Button
on (release) {
var colorB = 9678591;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 398 Button
on (release) {
var colorB = 10354589;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 399 Button
on (release) {
var colorB = 11206604;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 400 Button
on (release) {
var colorB = 16754856;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 401 Button
on (release) {
var colorB = 47452;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 402 Button
on (release) {
var colorB = 7961087;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 403 Button
on (release) {
var colorB = 16777147;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 404 Button
on (release) {
var colorB = 7303023;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 405 Button
on (release) {
var colorB = 15066597;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 406 Button
on (release) {
var colorB = 16777088;
colorchange = new Color("_root.menu.selection.paintCan.color");
_root.tmpColor = colorB;
colorchange.setRGB(colorB);
}
Symbol 408 Button
on (release) {
if ((_root.cost <= _root.playerPoints) && (_root.tmpColor != _root.Bear.wallsColor)) {
_root.playerPoints = _root.playerPoints - _root.cost;
_root.menu._visible = false;
_root.Bear.wallsColor = _root.tmpColor;
}
}
Instance of Symbol 355 MovieClip "color" in Symbol 410 MovieClip Frame 1
onClipEvent (load) {
_root.tmpColor = _root.Bear.wallsColor;
colorchange = new Color(this);
colorchange.setRGB(_root.Bear.wallsColor);
}
Symbol 411 MovieClip Frame 1
stop();
Instance of Symbol 141 MovieClip in Symbol 412 MovieClip Frame 1
on (press) {
}
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 5
stop();
Symbol 424 MovieClip Frame 9
gotoAndStop (1);
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 5
stop();
Symbol 426 MovieClip Frame 9
gotoAndStop (1);
Symbol 428 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 5
stop();
Symbol 428 MovieClip Frame 9
gotoAndStop (1);
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 5
stop();
Symbol 430 MovieClip Frame 9
gotoAndStop (1);
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 5
stop();
Symbol 432 MovieClip Frame 9
gotoAndStop (1);
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 5
stop();
Symbol 434 MovieClip Frame 9
gotoAndStop (1);
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 5
stop();
Symbol 436 MovieClip Frame 9
gotoAndStop (1);
Symbol 440 Button
on (release) {
gotoAndStop (175);
}
Symbol 441 Button
on (release) {
gotoAndStop (174);
}
Symbol 442 Button
on (release) {
gotoAndStop (172);
}
Symbol 443 Button
on (release) {
gotoAndStop (172);
}
Symbol 444 Button
on (release) {
gotoAndStop (176);
}
Symbol 445 Button
on (release) {
gotoAndStop (173);
}
Symbol 463 Button
on (release) {
_root.puzzleSelection = this;
}
Symbol 471 Button
on (release) {
gotoAndPlay (172);
}
Symbol 473 Button
on (release) {
initializeBoard();
}
Symbol 476 Button
on (release) {
if ((_root.turn == "Player") && (choice == null)) {
choice = _root.playerChoice;
_root.turn = "";
_root.winnerText = "The computer is\nchoosing a square...";
_root.delInterval = setInterval(_root.changeTurn, 1500);
}
}
Instance of Symbol 478 MovieClip "X" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 480 MovieClip "O" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 513 Button
on (release) {
if ((_root.memoryAction == 0) && (!flipped)) {
_root.winnerText = "Try to find a card\nthat matches it";
_root.choice.push(this);
_root.memoryAction++;
flipped = true;
} else if ((_root.memoryAction == 1) && (!flipped)) {
_root.choice.push(this);
_root.memoryAction++;
flipped = true;
_root.winnerText = "Let's see if these\ncards match...";
_root.delInterval = setInterval(_root.validate, 1000);
}
}
Symbol 515 MovieClip Frame 1
stop();
Symbol 531 Button
on (rollOver) {
if (_root.levelActive) {
_root.levelActive = false;
startButton._visible = true;
_root.playerPoints = _root.playerPoints + _root.currentLevel;
_root.sounds_Match();
_root.currentLevel++;
_root.winnerText = "Move over the honey\nto pick it up!";
_root.loadMap();
}
}
Symbol 537 Button
on (rollOver) {
_root.levelActive = true;
startButton._visible = false;
_root.winnerText = "Take the honey to the honeycomb!\nWatch out for things with red outlines.";
}
Symbol 553 MovieClip Frame 1
stop();
Symbol 565 Button
on (release) {
gotoAndPlay (168);
Mouse.show();
levelActive = false;
}
Symbol 566 Button
on (release) {
gotoAndPlay (172);
Mouse.show();
levelActive = false;
}