Combined Code
frame 1 {
function randRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
function playSound(which) {
var v2 = new Sound(this);
v2.attachSound('noise' + (which || 4));
v2.start();
}
function playAnim(emote) {
crabbyEyes.gotoAndPlay(emote);
trace(emotes[currentEmote]);
}
emotes = ['normal', 'angry', 'sorry', 'surprised', 'inquisitive'];
currentEmote = 0;
flash.external.ExternalInterface.addCallback('playAnim', this, playAnim);
flash.external.ExternalInterface.addCallback('playSound', this, playSound);
}
movieClip 6 {
}
movieClip 9 {
}
movieClip 12 {
}
movieClip 15 {
}
movieClip 18 {
}
movieClip 21 {
}
movieClip 24 {
}
movieClip 25 {
frame 1 {
_root.crabbyEyes = this;
}
frame 121 {
gotoAndPlay('normal');
}
frame 138 {
stop();
}
frame 161 {
stop();
}
frame 186 {
stop();
}
frame 211 {
stop();
}
}
movieClip 26 {
}
movieClip 87 {
}
movieClip 88 {
frame 1 {
cmask.cacheAsBitmap = true;
eyes.cacheAsBitmap = true;
eyes.setMask(cmask);
}
}
movieClip 89 {
}
movieClip 90 {
}