Frame 1
function myCB(thisBool) {
if (thisBool) {
gProxyObj.getScores(cbGetScore);
} else {
_root.msgInfo = "There has been a problem with the server";
popInfo.gotoAndPlay("play");
}
}
function cbGetScore() {
var _local1 = _root;
_local1.HS_listA1 = "";
_local1.HS_listB1 = "";
_local1.HS_listA2 = "";
_local1.HS_listB2 = "";
_local1.HS_listA3 = "";
_local1.HS_listB3 = "";
_local1.HS_listA4 = "";
_local1.HS_listB4 = "";
nbScore = gProxyObj.getScoreCount();
i = 0;
while (i < nbScore) {
thisPlayer = gProxyObj.getScoreItem(i);
thisName = thisPlayer[0];
thisScore = thisPlayer[1];
if (i < 26) {
_local1.HS_listA1 = _local1.HS_listA1 + ((((i + 1) + "- ") + thisName) + newline);
_local1.HS_listB1 = _local1.HS_listB1 + (thisScore + newline);
} else if (i < 51) {
_local1.HS_listA2 = _local1.HS_listA2 + ((((i + 1) + "- ") + thisName) + newline);
_local1.HS_listB2 = _local1.HS_listB2 + (thisScore + newline);
} else if (i < 76) {
_local1.HS_listA3 = _local1.HS_listA3 + ((((i + 1) + "- ") + thisName) + newline);
_local1.HS_listB3 = _local1.HS_listB3 + (thisScore + newline);
} else {
_local1.HS_listA4 = _local1.HS_listA4 + ((((i + 1) + "- ") + thisName) + newline);
_local1.HS_listB4 = _local1.HS_listB4 + (thisScore + newline);
}
i++;
}
HS_pop.gotoAndStop(2);
}
function submitScore() {
gProxyObj.setServer("nick2k-q.nickonline.com");
gProxyObj.setGame_Id("sb_shuffle");
gProxyObj.setScreenName("fenrirm80");
gProxyObj.submitScore(600, myCB);
}
function myQuit() {
gotoAndStop ("titleCard");
}
function showScore() {
gProxyObj.setGame_Id("sb_shuffle");
gProxyObj.getScores(cbGetScore);
}
if (gProxyObj == undefined) {
_root.enableHS = false;
} else if (!gProxyObj.getIsLoggedIn()) {
_root.enableHS = false;
} else {
_root.enableHS = true;
}
_root.enableHS = true;
_global.b = new Object();
AsBroadcaster.initialize(_global.b);
play();
Frame 2
stop();
Instance of Symbol 161 MovieClip [starfish] in Frame 3
onClipEvent (load) {
this.swapDepths(1);
this.removeMovieClip();
}
Instance of Symbol 191 MovieClip [jellyFish] in Frame 3
onClipEvent (load) {
this.swapDepths(1);
this.removeMovieClip();
}
Instance of Symbol 200 MovieClip [cloud] in Frame 3
onClipEvent (load) {
this.swapDepths(1);
this.removeMovieClip();
}
Instance of Symbol 201 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(1);
this.removeMovieClip();
}
Frame 4
stop();
Frame 41
stop();
Instance of Symbol 397 MovieClip in Frame 41
onClipEvent (load) {
this.onRollOver = function () {
this.useHandCursor = false;
};
this.onPress = function () {
c.fDoClick();
};
}
Instance of Symbol 524 MovieClip "c" in Frame 41
onClipEvent (load) {
point = new Object();
_parent.board.pucks.arrow._visible = false;
fDoClick = function () {
var _local1 = _parent;
if ((enableFire and (!c.gamePaused)) and (!_local1.hitClick.hitTest(_local1._xmouse, _local1._ymouse, true))) {
enableFire = false;
_local1.board.pucks.arrow._visible = false;
if (arrowScale <= (arrowmaxLen / 3)) {
spongeFrame = "fire_1";
} else if (arrowScale <= ((arrowmaxLen / 3) * 2)) {
spongeFrame = "fire_2";
} else {
spongeFrame = "fire_3";
}
_local1["perso_" + activePlayer].gotoAndStop((_root["perso" + activePlayer] + "_") + spongeFrame);
_local1.liveBoard["jelly_" + nbReserve].removeMovieClip();
nbReserve--;
}
};
}
Instance of Symbol 527 MovieClip in Frame 41
onClipEvent (load) {
_visible = false;
b.addListener(this);
this.onPuckStop = function () {
var _local1 = _parent;
if (!c.detectMovement()) {
if (c.nbReserve > 0) {
if (c.activePlayer == 1) {
c.changeWind(false);
c.updateStar();
_local1.perso_1.jellyStart.gotoAndPlay("in");
} else {
c.changeWind(false);
c.updateStar();
c.enableFire = false;
_local1.perso_2.jellyStart.gotoAndPlay("in");
_local1.board.pucks.arrow._visible = false;
}
} else {
c.nextRound();
}
}
};
}
Instance of Symbol 534 MovieClip in Frame 41
onClipEvent (load) {
_global.s1 = this;
_visible = false;
}
Instance of Symbol 548 MovieClip in Frame 41
onClipEvent (load) {
this.hitArea = hitZoneSound;
this.onPress = function () {
play();
};
}
Instance of Symbol 590 MovieClip "perso_1" in Frame 41
onClipEvent (load) {
b.addListener(this);
gotoAndStop(_root.perso1 + "_happy");
this.onReactionSad = function () {
if (c.activePlayer == 1) {
this.gotoAndStop(_root.perso1 + "_sad");
}
};
this.onReactionHappy = function () {
if (c.activePlayer == 1) {
this.gotoAndStop(_root.perso1 + "_happy");
}
};
}
Instance of Symbol 631 MovieClip "perso_2" in Frame 41
onClipEvent (load) {
b.addListener(this);
if (_root.gameType == 1) {
gotoAndStop ("noPlayer");
} else {
gotoAndStop(_root.perso2 + "_happy");
this.onReactionSad = function () {
if (c.activePlayer == 2) {
this.gotoAndStop(_root.perso2 + "_sad");
}
};
this.onReactionHappy = function () {
if (c.activePlayer == 2) {
this.gotoAndStop(_root.perso2 + "_happy");
}
};
}
}
Frame 46
stop();
Frame 74
if ((_root.enableHS == false) or (_root.enableHS == undefined)) {
btnSend._visible = false;
} else {
btnSend._visible = true;
}
Symbol 11 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 19 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 26 MovieClip [fcb_states] Frame 1
stop();
Symbol 26 MovieClip [fcb_states] Frame 2
stop();
Symbol 26 MovieClip [fcb_states] Frame 3
stop();
Symbol 26 MovieClip [fcb_states] Frame 4
stop();
Symbol 26 MovieClip [fcb_states] Frame 5
stop();
Symbol 26 MovieClip [fcb_states] Frame 6
stop();
Symbol 29 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 32 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 32 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 35 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 4
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
_local1.attachMovie("fcb_states", "fcb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1.setChangeHandler(_local1.changeHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.initialValue == undefined) {
_local1.setCheckState(false);
} else {
_local1.setCheckState(_local1.initialValue);
}
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_CHECKBUTTON = 44;
_local1.STATE_SYSTEM_CHECKED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
var _local3 = pos;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(_local3);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = _local1.fcb_states_mc._width;
var frame = _local1.fcb_states_mc;
var label = _local1.fLabel_mc;
var _local2 = 0;
if (frame._width > _local1.width) {
_local2 = 0;
} else {
_local2 = _local1.width - frame._width;
}
_local1.fLabel_mc.setSize(_local2);
if ((_local3 == "right") || (_local3 == undefined)) {
_local1.labelPlacement = "right";
_local1.fcb_states_mc._x = 0;
_local1.fLabel_mc._x = checkWidth;
_local1.txtFormat("left");
} else if (_local3 == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.fcb_states_mc._x = _local1.width - checkWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.fcb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.fcb_states_mc._width > w) {
_local1._width = _local2.fcb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.fcb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
var _local2 = this;
_local2.pressFocus();
_root.focusRect.removeMovieClip();
var _local1 = _local2.fcb_states_mc;
if (_local2.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fcb_states_mc.gotoAndStop("up");
_local1.setValue(!_local1.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
var _local1 = this;
var _local2 = checkedValue;
if (_local2 || (_local2 == undefined)) {
_local1.setCheckState(_local2);
} else if (_local2 == false) {
_local1.setCheckState(_local2);
}
_local1.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var _local1 = this;
var _local3 = checkedValue;
var _local2 = _local1.fcb_states_mc;
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedEnabled");
_local1.enabled = true;
_local1.checked = true;
} else {
_local2.gotoAndStop("up");
_local1.enabled = true;
_local1.checked = false;
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedDisabled");
_local1.enabled = false;
_local1.checked = true;
} else {
_local2.gotoAndStop("uncheckedDisabled");
_local1.enabled = false;
_local1.checked = false;
_local1.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
Super.setEnabled(true);
} else {
_local1.enable = false;
Super.setEnabled(false);
}
_local1.setCheckState(_local1.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (((Key.getCode() == 32) && (_local1.pressOnce == undefined)) && (_local1.enabled == true)) {
_local1.setValue(!_local1.getValue());
_local1.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 36 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 47 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 57 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 66 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 67 MovieClip [UpArrow] Frame 1
stop();
Symbol 67 MovieClip [UpArrow] Frame 2
stop();
Symbol 67 MovieClip [UpArrow] Frame 3
stop();
Symbol 73 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 80 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 85 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 86 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 94 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 102 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 110 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 111 MovieClip [DownArrow] Frame 1
stop();
Symbol 111 MovieClip [DownArrow] Frame 2
stop();
Symbol 111 MovieClip [DownArrow] Frame 3
stop();
Symbol 113 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 114 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 126 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 1
if (loadedPercent >= 100) {
_parent._parent.gotoAndStop("titlecard");
stop();
}
loadedCur = _root.getBytesLoaded();
loadedPercent = (loadedCur / loadedTotal) * 100;
_parent.txtPercent.text = Math.round(Math.abs(loadedPercent)) + "%";
_parent.loadBar.gotoAndStop(int(Math.abs(loadedPercent)));
Instance of Symbol 133 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
loadedPercent = 0;
loadedTotal = _root.getBytesTotal();
loadedCur = 0;
}
Symbol 151 MovieClip Frame 1
gotoAndStop(_parent._parent.starColor);
Symbol 152 MovieClip Frame 14
stop();
Symbol 154 MovieClip Frame 10
_parent.removeMovieClip();
stop();
Symbol 158 MovieClip Frame 1
if (_parent._parent._parent.starColor == "white") {
txtBonus = "+";
} else if (_parent._parent._parent.starColor == "blue") {
txtBonus = "x";
}
txtShow = txtBonus + _parent._parent._parent.val;
Symbol 160 MovieClip Frame 3
Symbol 160 MovieClip Frame 49
_parent.removeMovieClip();
stop();
Symbol 161 MovieClip [starfish] Frame 1
stop();
Symbol 173 MovieClip Frame 1
if (c.activePlayer == 2) {
gotoAndPlay ("perso_2");
} else {
play();
}
Symbol 173 MovieClip Frame 13
stop();
Symbol 173 MovieClip Frame 26
stop();
Symbol 181 MovieClip Frame 9
_parent.gotoAndStop("idle");
Symbol 184 MovieClip Frame 12
_parent.gotoAndStop("idle");
Symbol 187 MovieClip Frame 1
if (_parent._parent._parent.val > 0) {
txtShow = "+" + Math.abs(_parent._parent._parent.val);
} else if (_parent._parent._parent.val < 0) {
txtShow = "-" + Math.abs(_parent._parent._parent.val);
} else {
txtShow = "";
}
Symbol 188 MovieClip Frame 5
if ((_parent._parent.val != 0) and (_parent._parent.val != undefined)) {
s1.gotoAndPlay("jellyDeliver");
}
Symbol 188 MovieClip Frame 43
stop();
Symbol 189 MovieClip Frame 43
_parent._parent.removeMovieClip();
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 191 MovieClip [jellyFish] Frame 2
this.swapDepths(Math.round(this._x + this._y));
Symbol 191 MovieClip [jellyFish] Frame 3
call(2);
Symbol 191 MovieClip [jellyFish] Frame 7
gotoAndPlay (3);
Symbol 200 MovieClip [cloud] Frame 2
s1.gotoAndPlay("sandCloud");
Symbol 200 MovieClip [cloud] Frame 16
this.removeMovieClip();
stop();
Symbol 201 MovieClip Frame 1
gotoAndPlay(c.myRand(2, 16));
Symbol 201 MovieClip Frame 31
stop();
Instance of Symbol 166 MovieClip in Symbol 201 MovieClip Frame 31
onClipEvent (load) {
jelly.stop();
jelly.jelly.stop();
}
Symbol 204 MovieClip Frame 1
Symbol 206 MovieClip Frame 1
Symbol 209 MovieClip [puck] Frame 1
if (point == undefined) {
point = new Object();
}
_visible = false;
txtTag.text = tag;
collided = false;
if (windAffected == undefined) {
windAffected = true;
}
if (bonusM == undefined) {
bonusM = 1;
}
if (bonusA == undefined) {
bonusA = 0;
}
r = 9;
Symbol 209 MovieClip [puck] Frame 2
if (!c.gamePaused) {
if (speed > 0) {
if (speed > 35) {
speed = 35;
}
collided = false;
moveTempX = Math.cos((Math.PI/180) * _rotation) * speed;
moveTempY = Math.sin((Math.PI/180) * _rotation) * speed;
x1 = _x;
y1 = _y;
x2 = x1 + moveTempX;
y2 = y1 + moveTempY;
m = (y2 - y1) / (x2 - x1);
b = -((m * x1) - y1);
a = 0;
while (a < 3) {
if (c.tabStar[a][0] != -1) {
SX = c.tabStar[a][1];
SY = c.tabStar[a][2];
dS = Math.abs(((m * SX) - SY) + b) / Math.sqrt((m * m) + 1);
dS2 = Math.sqrt(((SX - x1) * (SX - x1)) + ((SY - y1) * (SY - y1)));
if ((dS < (3 * r)) and (dS2 < (speed + (2 * r)))) {
switch (c.tabStar[a][3]) {
case "M" :
bonusM = bonusM * c.tabStar[a][4];
_root.starBoard["star_" + a].gotoAndStop("up");
break;
case "A" :
bonusA = bonusA + c.tabStar[a][4];
_root.starBoard["star_" + a].gotoAndStop("up");
break;
case "J" :
c.nbReserve++;
_parent._parent._parent.liveBoard.attachMovie("jellyLives", "jelly_" + c.nbReserve, c.nbReserve);
_parent._parent._parent.liveBoard["jelly_" + c.nbReserve]._x = (c.nbReserve * 120) / c.nbStartReserve;
_parent._parent._parent.liveBoard["jelly_" + c.nbReserve]._y = 0;
_parent._parent._parent.liveBoard["jelly_" + c.nbReserve].jelly.jelly.stop();
_root.starBoard["star_" + a].gotoAndStop("jelly");
}
_parent["star_" + a].removeMovieClip();
c.tabStar[a] = [-1, 0, 0, "", 0];
}
}
a++;
}
a = 0;
while (a < c.tabPuck.length) {
if (c.tabPuck[a] != tag) {
h = _parent["puck_" + c.tabPuck[a]]._x;
k = _parent["puck_" + c.tabPuck[a]]._y;
d = Math.abs(((m * h) - k) + b) / Math.sqrt((m * m) + 1);
d2 = Math.sqrt(((h - x1) * (h - x1)) + ((k - y1) * (k - y1)));
if ((d < (2 * r)) and (d2 < (speed + r))) {
_parent._parent._parent.jellies[this._name].jelly.gotoAndStop("bump");
collided = true;
f = d / (2 * r);
w = Math.acos(f);
w = (w / (Math.PI/180)) - 90;
d4 = Math.sqrt(((2 * r) * (2 * r)) - (d * d));
d5 = Math.sqrt((d2 * d2) - (d * d));
d6 = d5 - d4;
moveTempX = Math.cos((Math.PI/180) * _rotation) * d6;
moveTempY = Math.sin((Math.PI/180) * _rotation) * d6;
_x = (_x + moveTempX);
_y = (_y + moveTempY);
lastCollision = c.tabPuck[a];
newSpeed = (Math.abs(w) / 90) * speed;
_parent["puck_" + c.tabPuck[a]].speed = _parent["puck_" + c.tabPuck[a]].speed + (speed - newSpeed);
speed = newSpeed * 0.8;
_parent["puck_" + c.tabPuck[a]].lastCollision = tag;
_parent["puck_" + c.tabPuck[a]].windAffected = false;
if (hitR.hitTest(_parent["puck_" + c.tabPuck[a]].hitZone)) {
_parent["puck_" + c.tabPuck[a]]._rotation = _rotation - w;
modRot = Math.abs(Math.abs(Math.abs(w) - 45) - 45);
_rotation = (_rotation - modRot);
} else {
_parent["puck_" + c.tabPuck[a]]._rotation = _rotation + w;
modRot = Math.abs(Math.abs(Math.abs(w) - 45) - 45);
_rotation = (_rotation + modRot);
}
moveTempDefX = Math.cos((Math.PI/180) * _parent["puck_" + c.tabPuck[a]]._rotation) * 4;
moveTempDefY = Math.sin((Math.PI/180) * _parent["puck_" + c.tabPuck[a]]._rotation) * 4;
_parent["puck_" + c.tabPuck[a]]._x = _parent["puck_" + c.tabPuck[a]]._x + moveTempDefX;
_parent["puck_" + c.tabPuck[a]]._y = _parent["puck_" + c.tabPuck[a]]._y + moveTempDefY;
_parent["puck_" + c.tabPuck[a]].play();
}
}
a++;
}
point.x = 0;
point.y = 0;
this.localToGlobal(point);
if (!collided) {
_x = x2;
_y = y2;
} else {
_x = (_x - moveTempDefX);
_y = (_y - moveTempDefY);
}
if (_parent._parent.hitSand.hitTest(point.x, point.y, true)) {
speed = speed - (decel * 4);
_parent._parent._parent.jellies.attachMovie("cloud", (("cloud_" + tag) + "_") + speed, speed);
_parent._parent._parent.jellies[(("cloud_" + tag) + "_") + speed]._rotation = _rotation - 45;
_parent._parent._parent.jellies[(("cloud_" + tag) + "_") + speed]._x = point.x;
_parent._parent._parent.jellies[(("cloud_" + tag) + "_") + speed]._y = point.y;
} else {
speed = speed - decel;
}
_parent._parent._parent.jellies[this._name]._x = point.x;
_parent._parent._parent.jellies[this._name]._y = point.y;
} else {
speed = 0;
if (!_parent._parent.hitGood.hitTest(point.x, point.y, true)) {
if ((lastCollision == -1) or (lastCollision == undefined)) {
if (c.myRand(1, 100) <= c.chanceSad) {
_global.b.broadcastMessage("onReactionSad");
}
}
score = 0;
_global.b.broadcastMessage("onPuckStop");
_parent._parent._parent.jellies[this._name].jelly.gotoAndStop("fly");
puckIndex = c.findPuck(tag);
c.tabPuck.splice(puckIndex, 1);
this.removeMovieClip();
} else {
if (_parent._parent.hit_10.hitTest(point.x, point.y, true)) {
this.score = (10 + bonusA) * bonusM;
_parent._parent._parent.jellies[this._name].jelly.gotoAndStop("glow");
if ((lastCollision == -1) or (lastCollision == undefined)) {
s1.gotoAndPlay("jellyBlueGlow");
if (c.myRand(1, 100) <= c.chanceHappy) {
_global.b.broadcastMessage("onReactionHappy");
}
}
} else if (_parent._parent.hit_8.hitTest(point.x, point.y, true)) {
this.score = (8 + bonusA) * bonusM;
_parent._parent._parent.jellies[this._name].jelly.gotoAndStop("glow");
if ((lastCollision == -1) or (lastCollision == undefined)) {
s1.gotoAndPlay("jellyBlueGlow");
if (c.myRand(1, 100) <= c.chanceHappy) {
_global.b.broadcastMessage("onReactionHappy");
}
}
} else if (_parent._parent.hit_7.hitTest(point.x, point.y, true)) {
this.score = (7 + bonusA) * bonusM;
_parent._parent._parent.jellies[this._name].jelly.gotoAndStop("glow");
if ((lastCollision == -1) or (lastCollision == undefined)) {
s1.gotoAndPlay("jellyBlueGlow");
if (c.myRand(1, 100) <= c.chanceHappy) {
_global.b.broadcastMessage("onReactionHappy");
}
}
} else if (_parent._parent["hit_-10"].hitTest(point.x, point.y, true)) {
s1.gotoAndPlay("jellyBad");
this.score = (bonusA - 10) * bonusM;
_parent._parent._parent.jellies[this._name].jelly.gotoAndStop("glow");
_global.b.broadcastMessage("onReactionSad");
} else {
_parent._parent._parent.jellies[this._name].jelly.gotoAndStop("idle");
this.score = bonusA * bonusM;
}
_global.b.broadcastMessage("onPuckStop");
}
lastCollision = -1;
gotoAndStop (1);
}
}
Symbol 209 MovieClip [puck] Frame 3
call(2);
Symbol 209 MovieClip [puck] Frame 4
gotoAndPlay (3);
Symbol 262 Button
on (release) {
gotoAndStop ("instruct");
}
Symbol 283 Button
on (release) {
gotoAndStop ("chosePerso");
}
Symbol 297 Button
on (release) {
_root.perso1 = "bob";
_root.perso2 = "sandy";
_parent.gotoAndStop("choseGame");
}
Symbol 305 Button
on (release) {
_root.perso2 = "bob";
_root.perso1 = "sandy";
_parent.gotoAndStop("choseGame");
}
Symbol 318 Button
on (release) {
_root.gameType = 1;
_root.perso2 = null;
_parent.gotoAndStop("control");
}
Symbol 327 Button
on (release) {
_root.gameType = 2;
_parent.gotoAndStop("control");
}
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
play();
Symbol 342 MovieClip Frame 7
if (c.activePlayer == 1) {
stop();
_parent._parent.board.pucks.arrow._visible = true;
c.enableFire = true;
}
Symbol 342 MovieClip Frame 40
stop();
if (c.activePlayer == 2) {
c.CPU_fire();
}
Symbol 354 Button
on (release) {
nextFrame();
}
Symbol 360 Button
on (release) {
gotoAndStop ("play");
}
Symbol 401 MovieClip Frame 1
Symbol 403 MovieClip Frame 1
_visible = false;
Symbol 405 MovieClip Frame 1
_visible = false;
Symbol 407 MovieClip Frame 1
_visible = false;
Symbol 409 MovieClip Frame 1
_visible = false;
Symbol 411 MovieClip Frame 1
_visible = false;
Symbol 413 MovieClip Frame 1
_visible = false;
Instance of Symbol 209 MovieClip [puck] "puck" in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1);
this.removeMovieClip();
}
Symbol 511 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 1
function findPuck(puckTag) {
var _local1 = puckTag;
fp = 0;
while (fp < tabPuck.length) {
if (tabPuck[fp] == _local1) {
return(fp);
}
fp++;
}
return(-1);
}
function detectMovement() {
var _local2 = _parent;
var _local1 = false;
dM = 0;
while (dM <= tabPuck.length) {
if (_local2.board.pucks["puck_" + tabPuck[dM]].speed > 0) {
_local1 = true;
break;
}
dM++;
}
return(_local1);
}
function nextRound() {
if (idInt2 == 0) {
s1.gotoAndPlay("jellyRise");
rJ = -1;
idInt2 = setInterval(remJelly, 600);
}
}
function remJelly() {
var _local1 = _parent;
var _local2 = _root;
rJ++;
if (rJ < tabPuck.length) {
_local2[(("P" + activePlayer) + "_scoreRound_") + curRound] = _local2[(("P" + activePlayer) + "_scoreRound_") + curRound] + _local1.board.pucks["puck_" + tabPuck[rJ]].score;
_local1.jellies["puck_" + tabPuck[rJ]].jelly.val = _local1.board.pucks["puck_" + tabPuck[rJ]].score;
_local1.board.pucks["puck_" + tabPuck[rJ]].removeMovieClip();
_local1.jellies["puck_" + tabPuck[rJ]].jelly.gotoAndStop("fly");
_local1.scoreBoard[(("txt" + activePlayer) + "_") + curRound].text = _local2[(("P" + activePlayer) + "_scoreRound_") + curRound];
} else {
s1.gotoAndPlay("endLevel");
tabPuck.splice(0);
clearInterval(idInt2);
idInt2 = 0;
_local1.scoreBoard[(("txt" + activePlayer) + "_") + curRound].text = _local2[(("P" + activePlayer) + "_scoreRound_") + curRound];
_local2["score_P" + activePlayer] = _local2["score_P" + activePlayer] + _local2[(("P" + activePlayer) + "_scoreRound_") + curRound];
if (_local2.gameType == 1) {
if (curRound >= 16) {
_local1.gotoAndStop("scoreScreen");
}
} else {
nr = 0;
while (nr < 3) {
if (tabStar[nr][0] != -1) {
_local1.board.pucks["star_" + nr].removeMovieClip();
_local1.starBoard["star_" + nr].gotoAndStop("out");
tabStar[nr] = [-1, 0, 0, "", 0];
}
nr++;
}
if ((curRound >= 16) and (activePlayer == 2)) {
if (_local2.score_P1 > _local2.score_P2) {
_local1.gotoAndStop(_local2.perso1 + "Win");
} else if (_local2.score_P1 < _local2.score_P2) {
_local1.gotoAndStop(_local2.perso1 + "Lose");
} else {
curRound--;
}
}
}
initNewRound();
}
}
function initNewRound() {
var _local1 = _parent;
if (_root.gameType == 1) {
curRound++;
activePlayer = 1;
iNR = 1;
while (iNR <= nbStartReserve) {
nbReserve++;
_local1.liveBoard.attachMovie("jellyLives", "jelly_" + iNR, iNR);
_local1.liveBoard["jelly_" + iNR]._x = (iNR * 120) / nbStartReserve;
_local1.liveBoard["jelly_" + iNR]._y = 0;
_local1.liveBoard["jelly_" + iNR].jelly.jelly.stop();
iNR++;
}
_local1.board.pucks.arrow._visible = true;
_local1.perso_1.jellyStart.gotoAndPlay("in");
enableFire = true;
changeWind(true);
} else if (idInt == 0) {
idInt = setInterval(chVisible, 1200);
}
}
function chVisible() {
var _local1 = _parent;
if (ch != undefined) {
clearInterval(idInt);
idInt = 0;
if (activePlayer == 1) {
_local1.perso_1._visible = false;
_local1.perso_2._visible = true;
_local1.wheel.gotoAndStop(_root.perso2);
_local1.wheel.txtScore.gotoAndStop(2);
activePlayer = 2;
_local1.board._xscale = -Math.abs(_local1.board._xscale);
_local1.board._yscale = -Math.abs(_local1.board._yscale);
_local1.board._x = 510;
_local1.board._y = 395;
iNR = 1;
while (iNR <= nbStartReserve) {
nbReserve++;
_local1.liveBoard.attachMovie("jellyLives", "jelly_" + iNR, iNR);
_local1.liveBoard["jelly_" + iNR]._x = (iNR * 120) / nbStartReserve;
_local1.liveBoard["jelly_" + iNR]._y = 0;
_local1.liveBoard["jelly_" + iNR].jelly.jelly.stop();
iNR++;
}
_local1.board.pucks.arrow._visible = false;
_local1.perso_2.jellyStart.gotoAndPlay("in");
enableFire = false;
changeWind(true);
} else {
_local1.perso_1._visible = true;
_local1.perso_2._visible = false;
_local1.wheel.gotoAndStop(_root.perso1);
_local1.wheel.txtScore.gotoAndStop(1);
curRound++;
activePlayer = 1;
_local1.board._xscale = Math.abs(_local1.board._xscale);
_local1.board._yscale = Math.abs(_local1.board._yscale);
_local1.board._x = 0;
_local1.board._y = 0;
iNR = 1;
while (iNR <= nbStartReserve) {
nbReserve++;
_local1.liveBoard.attachMovie("jellyLives", "jelly_" + iNR, iNR);
_local1.liveBoard["jelly_" + iNR]._x = (iNR * 120) / nbStartReserve;
_local1.liveBoard["jelly_" + iNR]._y = 0;
_local1.liveBoard["jelly_" + iNR].jelly.jelly.stop();
iNR++;
}
_local1.board.pucks.arrow._visible = true;
_local1.perso_1.jellyStart.gotoAndPlay("in");
enableFire = true;
changeWind(true);
}
}
ch = false;
}
function changeWind(changeDirection) {
}
function updateStar() {
var _local1 = _parent;
uS = 0;
while (uS < 3) {
if (tabStar[uS][0] == -1) {
if (myRand(1, 100) <= starBirth) {
tempPosX = myRand(starMinX, starMaxX);
tempPosY = myRand(starMinY, starMaxY);
contact = false;
b = 0;
while (b < 3) {
d = Math.sqrt(((tempPosX - tabStar[b][1]) * (tempPosX - tabStar[b][1])) + ((tempPosY - tabStar[b][2]) * (tempPosY - tabStar[b][2])));
if (d < 40) {
contact = true;
break;
}
b++;
}
if (!contact) {
_local1.board.pucks.attachMovie("dot", "star_" + uS, uS + 200);
_local1.board.pucks["star_" + uS]._x = tempPosX;
_local1.board.pucks["star_" + uS]._y = tempPosY;
if (pointA == undefined) {
pointA = new Object();
}
pointA.x = 0;
pointA.y = 0;
_local1.board.pucks["star_" + uS].localToGlobal(pointA);
_local1.starBoard.attachMovie("starfish", "star_" + uS, uS);
_local1.starBoard["star_" + uS]._x = pointA.x;
_local1.starBoard["star_" + uS]._y = pointA.y;
var _local2 = myRand(1, 100);
if (_local2 <= starChanceA) {
Ttype = "A";
_local1.starBoard["star_" + uS].starColor = "white";
Tval = myRand(2, 4) * 2;
} else if (_local2 <= (starChanceA + starChanceM)) {
Ttype = "M";
_local1.starBoard["star_" + uS].starColor = "blue";
Tval = myRand(2, 4);
} else {
Ttype = "J";
_local1.starBoard["star_" + uS].starColor = "yellow";
Tval = 1;
}
tabStar[uS] = [0, tempPosX, tempPosY, Ttype, Tval];
_local1.starBoard["star_" + uS].val = Tval;
_local1.starBoard["star_" + uS]._xscale = 75;
_local1.starBoard["star_" + uS]._yscale = 75;
_local1.starBoard["star_" + uS].gotoAndStop("in");
}
}
} else if (myRand(1, 100) <= starDeath) {
_local1.board.pucks["star_" + uS].removeMovieClip();
_local1.starBoard["star_" + uS].gotoAndStop("out");
tabStar[uS] = [-1, 0, 0, "", 0];
}
uS++;
}
}
function CPU_fire() {
var _local1 = _parent;
var _local2 = _root;
switch (windD) {
case 0 :
windXAjust = 0;
windYAjust = Math.abs(windS) * -8;
break;
case 1 :
windXAjust = Math.abs(windS) * 18;
windYAjust = 0;
break;
case 2 :
windXAjust = 0;
windYAjust = Math.abs(windS) * 8;
break;
case 3 :
windXAjust = Math.abs(windS) * -18;
windYAjust = 0;
}
CPU_normX = 75;
CPU_normY = 55;
if ((_local2.score_P1 - _local2.score_P2) <= 0) {
if ((_local2.score_P1 - _local2.score_P2) <= -100) {
CPU_varX = myRand(30, 60);
CPU_varY = myRand(20, 40);
} else {
CPU_varX = myRand(25, 40);
CPU_varY = myRand(15, 25);
}
} else if ((_local2.score_P1 - _local2.score_P2) > 100) {
CPU_varX = myRand(5, 15);
CPU_varY = myRand(5, 10);
} else {
CPU_varX = myRand(5, 20);
CPU_varY = myRand(5, 10);
}
CPU_x = myRand((CPU_normX - CPU_varX) + windXAjust, (CPU_normX + CPU_varX) + windXAjust);
CPU_y = myRand((CPU_normY - CPU_varY) + windYAjust, (CPU_normY + CPU_varY) + windYAjust);
var _local3 = CPU_x - _local1.board.pucks.arrow._x;
var y = (CPU_y - _local1.board.pucks.arrow._y);
angle = Math.atan(y / _local3) / (Math.PI/180);
if (_local3 < 0) {
angle = angle - 180;
}
if ((_local3 >= 0) && (y < 0)) {
angle = angle - 360;
}
_local1.board.pucks.arrow._rotation = angle;
var xmouse = CPU_x;
var ymouse = CPU_y;
var xBase = _local1.board.pucks.arrow._x;
var yBase = _local1.board.pucks.arrow._y;
var arrLen = Math.sqrt(((xmouse - xBase) * (xmouse - xBase)) + ((ymouse - yBase) * (ymouse - yBase)));
arrowScale = (100 / arrowWidth) * arrLen;
if (arrowScale > arrowMaxLen) {
arrowScale = arrowMaxLen;
_local1.board.pucks.arrow._xscale = arrowMaxLen;
} else if (arrowScale < arrowMinLen) {
arrowScale = arrowMinLen;
_local1.board.pucks.arrow._xscale = arrowMinLen;
} else {
_local1.board.pucks.arrow._xscale = arrowScale;
}
if (arrowScale <= (arrowmaxLen / 3)) {
spongeFrame = "fire_1";
} else if (arrowScale <= ((arrowmaxLen / 3) * 2)) {
spongeFrame = "fire_2";
} else {
spongeFrame = "fire_3";
}
_local1.perso_2.gotoAndStop((_local2.perso2 + "_") + spongeFrame);
_local1.liveBoard["jelly_" + nbReserve].removeMovieClip();
nbReserve--;
}
function myRand(valMin, valMax) {
return(Math.round(Math.random() * (valMax - valMin)) + valMin);
}
function myRandDec(valMin, valMax) {
return((Math.random() * (valMax - valMin)) + valMin);
}
_visible = false;
_global.c = this;
gamePaused = false;
_parent.scoreBoard.gotoAndStop("game" + _root.gameType);
if (_root.gameType == 1) {
_parent.liveBoard._x = _parent.liveBoard._x - 40;
}
idInt = 0;
idInt2 = 0;
point = new Object();
_root.score_P1 = 0;
_root.score_P2 = 0;
a = 1;
while (a <= 16) {
_root["P1_scoreRound_" + a] = 0;
a++;
}
if (_root.gameType == 2) {
a = 1;
while (a <= 16) {
_root["P2_scoreRound_" + a] = 0;
a++;
}
}
arrowWidth = _parent.board.pucks.arrow._width;
arrowMaxLen = 250;
arrowMinLen = 50;
arrowScale = 0;
powerFactor = 10;
angle = 1;
puckDecelFactor = 0.4;
nbPuck = 0;
nbStar = 0;
tabPuck = new Array();
tabStar = new Array();
a = 0;
while (a < 3) {
tabStar[a] = [-1, 0, 0, "", 0];
a++;
}
starBirth = 40;
starDeath = 50;
starMinX = 40;
starMaxX = 140;
starMinY = 55;
starMaxY = 110;
starChanceA = 60;
starChanceM = 30;
starChanceJ = 10;
nbReserve = 0;
nbStartReserve = 5;
enablePlacement = true;
enableFire = false;
activePlayer = 0;
curRound = 0;
windD = -1;
windS = -1;
chanceHappy = 50;
chanceSad = 50;
initNewRound();
updateStar();
Symbol 524 MovieClip Frame 2
if (enableFire and (!gamePaused)) {
var x = (_parent.board.pucks._xmouse - _parent.board.pucks.arrow._x);
var y = (_parent.board.pucks._ymouse - _parent.board.pucks.arrow._y);
if (y < 50) {
y = 50;
}
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle - 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle - 360;
}
_parent.board.pucks.arrow._rotation = angle;
var xmouse = _parent.board.pucks._xmouse;
var ymouse = _parent.board.pucks._ymouse;
var xBase = _parent.board.pucks.arrow._x;
var yBase = _parent.board.pucks.arrow._y;
var arrLen = Math.sqrt(((xmouse - xBase) * (xmouse - xBase)) + ((ymouse - yBase) * (ymouse - yBase)));
arrowScale = (100 / arrowWidth) * arrLen;
if (arrowScale > arrowMaxLen) {
arrowScale = arrowMaxLen;
_parent.board.pucks.arrow._xscale = arrowMaxLen;
} else if (arrowScale < arrowMinLen) {
arrowScale = arrowMinLen;
_parent.board.pucks.arrow._xscale = arrowMinLen;
} else {
_parent.board.pucks.arrow._xscale = arrowScale;
}
}
Symbol 524 MovieClip Frame 3
call(2);
Symbol 524 MovieClip Frame 4
gotoAndPlay (3);
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
Symbol 534 MovieClip Frame 11
stop();
Symbol 534 MovieClip Frame 12
Symbol 534 MovieClip Frame 18
stop();
Symbol 534 MovieClip Frame 19
Symbol 534 MovieClip Frame 25
stop();
Symbol 534 MovieClip Frame 26
Symbol 534 MovieClip Frame 32
stop();
Symbol 534 MovieClip Frame 33
Symbol 534 MovieClip Frame 42
stop();
Symbol 534 MovieClip Frame 43
Symbol 534 MovieClip Frame 51
stop();
Symbol 534 MovieClip Frame 52
Symbol 534 MovieClip Frame 59
stop();
Symbol 534 MovieClip Frame 60
Symbol 534 MovieClip Frame 68
stop();
Symbol 534 MovieClip Frame 69
Symbol 534 MovieClip Frame 79
stop();
Symbol 534 MovieClip Frame 80
Symbol 534 MovieClip Frame 90
stop();
Symbol 534 MovieClip Frame 91
Symbol 534 MovieClip Frame 100
stop();
Symbol 534 MovieClip Frame 101
Symbol 534 MovieClip Frame 111
stop();
Symbol 534 MovieClip Frame 112
Symbol 534 MovieClip Frame 124
stop();
Symbol 534 MovieClip Frame 132
stop();
Symbol 534 MovieClip Frame 140
stop();
Symbol 534 MovieClip Frame 147
stop();
Symbol 536 MovieClip Frame 1
_visible = false;
Symbol 541 Button
on (press) {
myQuit();
}
Symbol 544 Button
on (press) {
c.gamePaused = true;
help.gotoAndStop(2);
}
Symbol 548 MovieClip Frame 1
stop();
Instance of Symbol 545 MovieClip "hitZoneSound" in Symbol 548 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 548 MovieClip Frame 2
stop();
Symbol 551 MovieClip Frame 22
if (c.myRand(1, 4) > 2) {
gotoAndPlay (1);
}
Symbol 563 MovieClip Frame 13
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_1.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
_parent.jellies["puck_" + nbPuck].jelly.gotoAndStop("speed");
}
Symbol 563 MovieClip Frame 30
_parent.gotoAndStop("bob_idle");
Symbol 570 MovieClip Frame 10
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_1.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
}
Symbol 570 MovieClip Frame 23
_parent.gotoAndStop("bob_idle");
Symbol 571 MovieClip Frame 18
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_1.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
}
Symbol 571 MovieClip Frame 42
_parent.gotoAndStop("bob_idle");
Symbol 575 MovieClip Frame 32
_parent.gotoAndStop("bob_idle");
Symbol 578 MovieClip Frame 49
_parent.gotoAndStop("bob_idle");
Symbol 582 MovieClip Frame 13
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_1.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
_parent.jellies["puck_" + nbPuck].jelly.gotoAndStop("speed");
}
Symbol 582 MovieClip Frame 30
_parent.gotoAndStop("sandy_idle");
Symbol 583 MovieClip Frame 10
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_1.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
}
Symbol 583 MovieClip Frame 23
_parent.gotoAndStop("sandy_idle");
Symbol 584 MovieClip Frame 18
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_1.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
}
Symbol 584 MovieClip Frame 42
_parent.gotoAndStop("sandy_idle");
Symbol 585 MovieClip Frame 32
_parent.gotoAndStop("sandy_idle");
Symbol 586 MovieClip Frame 22
if (c.myRand(1, 4) > 2) {
gotoAndPlay (1);
}
Symbol 589 MovieClip Frame 49
_parent.gotoAndStop("sandy_idle");
Symbol 590 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 25
if (c.myRand(1, 4) > 3) {
gotoAndPlay("loop" + c.myRand(1, 2));
}
Symbol 611 MovieClip Frame 10
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_2.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
_parent.jellies["puck_" + nbPuck].jelly.gotoAndStop("speed");
}
Symbol 611 MovieClip Frame 30
_parent.gotoAndStop("bob_idle");
Symbol 612 MovieClip Frame 18
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_2.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
}
Symbol 612 MovieClip Frame 37
_parent.gotoAndStop("bob_idle");
Symbol 613 MovieClip Frame 30
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_2.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
}
Symbol 613 MovieClip Frame 53
_parent.gotoAndStop("bob_idle");
Symbol 614 MovieClip Frame 42
_parent.gotoAndStop("idle");
stop();
Symbol 619 MovieClip Frame 61
_parent.gotoAndStop("idle");
stop();
Symbol 622 MovieClip Frame 10
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_2.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
_parent.jellies["puck_" + nbPuck].jelly.gotoAndStop("speed");
}
Symbol 622 MovieClip Frame 30
_parent.gotoAndStop("sandy_idle");
Symbol 623 MovieClip Frame 18
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_2.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
}
Symbol 623 MovieClip Frame 38
_parent.gotoAndStop("sandy_idle");
Symbol 624 MovieClip Frame 28
with (c) {
nbPuck++;
tabPuck.push(nbPuck);
_parent.perso_2.jellyStart.gotoAndStop("idle");
_parent.board.pucks.attachMovie("puck", "puck_" + nbPuck, nbPuck + 100);
_parent.board.pucks["puck_" + nbPuck].decel = puckDecelFactor;
_parent.board.pucks["puck_" + nbPuck]._x = 80;
_parent.board.pucks["puck_" + nbPuck]._y = -50;
_parent.board.pucks["puck_" + nbPuck]._rotation = angle;
_parent.board.pucks["puck_" + nbPuck].active = true;
_parent.board.pucks["puck_" + nbPuck].speed = arrowScale / powerFactor;
_parent.board.pucks["puck_" + nbPuck].tag = nbPuck;
_parent.board.pucks["puck_" + nbPuck].play();
point.x = 0;
point.y = 0;
_parent.board.pucks["puck_" + nbPuck].localToGlobal(point);
_parent.jellies.attachMovie("jellyFish", "puck_" + nbPuck, nbPuck);
_parent.jellies["puck_" + nbPuck]._x = point.x;
_parent.jellies["puck_" + nbPuck]._y = point.y;
}
Symbol 624 MovieClip Frame 53
_parent.gotoAndStop("sandy_idle");
Symbol 626 MovieClip Frame 25
if (c.myRand(1, 4) > 3) {
gotoAndPlay("loop" + c.myRand(1, 2));
}
Symbol 627 MovieClip Frame 42
_parent.gotoAndStop("sandy_idle");
stop();
Symbol 630 MovieClip Frame 61
_parent.gotoAndStop("idle");
stop();
Symbol 631 MovieClip Frame 1
stop();
Symbol 633 Button
on (release) {
c.gamePaused = false;
gotoAndStop (1);
}
Symbol 634 MovieClip Frame 1
stop();
Instance of Symbol 386 MovieClip in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
this.useHandCursor = false;
};
}
Symbol 647 Button
on (release) {
myQuit();
}
Symbol 654 Button
on (release) {
gotoAndStop ("chosePerso");
}
Symbol 681 MovieClip Frame 1
stop();
Symbol 714 Button
on (release) {
myQuit();
}