Frame 1
function init(pOwner, pConfig) {
gameOwner = pOwner;
gameOwner.gameLog((("Game:init: " + gameOwner) + " class: ") + com.disney.gem.games.BaseGameController);
assetPath = pConfig.game.assetPath;
gameOwner.gameLog("Game:init: assetPath: " + assetPath);
GC = new com.disney.gem.games.BaseGameController(this, pOwner);
GC.soundClipContainer = sound_effects_mc;
return(GC);
}
function rollOverSound() {
my_effects1.setVolume(20);
my_effects1.attachSound(sound_arr[1]);
my_effects1.start();
}
function iconPressSound() {
my_effects1.setVolume(20);
my_effects1.attachSound(sound_arr[4]);
my_effects1.start();
}
function iconRollOver() {
my_effects1.setVolume(30);
my_effects1.attachSound(sound_arr[5]);
my_effects1.start();
}
function playDropSound(drop_check) {
if (drop_check) {
my_effects1.setVolume(100);
my_effects1.attachSound(sound_arr[2]);
my_effects1.start();
my_effects2.setVolume(10);
my_effects2.attachSound(sound_arr[3]);
my_effects2.start();
} else {
my_effects2.setVolume(50);
my_effects2.attachSound(sound_arr[7]);
my_effects2.start();
}
}
function exceededNumberSound() {
my_effects1.setVolume(100);
my_effects1.attachSound(sound_arr[6]);
my_effects1.start();
}
function disableNav(mc) {
var _local1 = 0;
while (_local1 < _btns_arr.length) {
var _local2 = _btns_arr[_local1];
if (_local2 != mc) {
_local2.enabled = false;
}
_local1++;
}
}
function killNav() {
var _local1 = 0;
while (_local1 < _btns_arr.length) {
var _local2 = _btns_arr[_local1];
_local2.enabled = false;
_local1++;
}
}
function enableNav() {
var _local1 = 0;
while (_local1 < _btns_arr.length) {
var _local2 = _btns_arr[_local1];
_local2.enabled = true;
_local1++;
}
}
function genRollOver(mc) {
mc.gotoAndStop(2);
}
function genRollOut(mc) {
mc.gotoAndStop(1);
}
function activate_scene(mc) {
var _local1 = 0;
while (_local1 < _goofy_scenes_arr.length) {
var _local2 = _goofy_scenes_arr[_local1];
_local2.gotoAndStop(1);
_local2._visible = false;
_local1++;
}
mc._visible = true;
mc.gotoAndPlay("initscene");
}
function checkGameResetToggle() {
if (_gameResetState == 0) {
playFLV();
} else {
playFLV();
triggerTooMuch();
_gameResetState = 0;
}
}
function playFLV() {
switch (flvTrig) {
case "helpme" :
killNav();
_goofy_flv.gotoAndPlay("helpme");
flvTrig = "ambient";
return;
case "ambient" :
enableNav();
_goofy_flv.gotoAndPlay("ambient");
return;
case "positive" :
if (positive_counter == 0) {
_goofy_flv.gotoAndPlay("posReact1");
positive_counter = 1;
flvTrig = "ambient";
} else {
_goofy_flv.gotoAndPlay("posReact2");
positive_counter = 0;
flvTrig = "ambient";
}
return;
case "negative" :
if (negative_counter == 0) {
_goofy_flv.gotoAndPlay("negReact1");
flvTrig = "ambient";
}
return;
case "finish" :
if (finish_counter == 0) {
_goofy_flv.gotoAndPlay("finish1");
finish_counter = 1;
flvTrig = "ambient";
} else {
_goofy_flv.gotoAndPlay("finish2");
finish_counter = 0;
flvTrig = "ambient";
}
return;
case "toomuch" :
if (additional_anim == 0) {
additional_anim = 1;
_goofy_flv.gotoAndPlay("toomuch");
_gameResetState = 1;
} else {
additional_anim = 0;
_goofy_flv.gotoAndPlay("negReact1");
flvTrig = "ambient";
}
}
}
function instructionsToggle() {
if (_instruct_active) {
_instruct_mc._visible = true;
_goofy_flv.stop();
disableNav();
_instruct_mc.anim_mc.play();
} else {
_instruct_mc._visible = false;
_instruct_mc.anim_mc.gotoAndStop(1);
}
}
function genericAnimation(mc) {
new mx.transitions.Tween(mc, "_alpha", mx.transitions.easing.Regular.easeIn, 0, 100, 7, false);
new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Bounce.easeInOut, 0, 100, 25, false);
new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Bounce.easeInOut, 0, 100, 25, false);
}
function setIconPositions() {
var _local1 = 0;
while (_local1 < _items_arr.length) {
var _local2 = _items_arr[_local1].item;
_local2._x = _items_arr[_local1].xPos;
_local2._y = _items_arr[_local1].yPos;
_local1++;
}
}
function setItems() {
setItemPos();
var _local3 = _game_mc.createEmptyMovieClip("temp_mc", _game_mc.getNextHighestDepth());
var _local2 = _items_arr.length;
var _local1 = 0;
while (_local1 < _local2) {
createItemStates(_items_arr[_local1].item, _items_arr[_local1].linkage, _items_arr[_local1].swap_id);
_local1++;
}
}
function createItemStates(mc, linkage, swap_id) {
var appRoot = this;
mc.onRollOver = function () {
this._alpha = 50;
appRoot.item_RollOver(linkage);
iconRollOver();
};
mc.onReleaseOutside = (mc.onRollOut = function () {
this._alpha = 100;
});
mc.onPress = function () {
this._alpha = 100;
var appRoot = this;
switch (_item_active_state) {
case 1 :
iconPressSound();
disableNav(this);
this.swapDepths(_currDepth);
xstart = this._x;
ystart = this._y;
delete this.onRollOver;
delete this.onRollOut;
delete this.onReleaseOutside;
var new_item = attachMovie(swap_id, "clip" + _currDepth, _currDepth, {_x:_xmouse, _y:_ymouse});
if (this._currentframe == 2) {
new_item.gotoAndStop(2);
}
if (this == _val_1_mc) {
new_item.text_txt.text = _game_number_arr[_g_num].val1;
} else if (this == _val_2_mc) {
new_item.text_txt.text = _game_number_arr[_g_num].val2;
} else if (this == _val_3_mc) {
new_item.text_txt.text = _game_number_arr[_g_num].val3;
} else if (this == _val_4_mc) {
new_item.text_txt.text = _game_number_arr[_g_num].val4;
}
new_item.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
new_item.onRelease = function () {
setItems();
enableNav();
if (this.hitTest(_user_target)) {
playDropSound((drop_check = true));
this._x = xstart;
this._y = ystart;
this.enabled = false;
this._visible = false;
countItem(linkage);
drop_icon(linkage);
checkItems();
disableNav();
playFLV();
userTracker_2(appRoot);
} else {
disableNav();
flvTrig = "negative";
playFLV();
playDropSound();
missDropAnim(this, new_item);
}
delete this.onEnterFrame;
delete this.onRelease;
};
break;
case 2 :
setItems();
enableNav();
_item_active_state = 1;
this.icon_mc.gotoAndStop(1);
}
};
}
function missDropAnim(mc, mc2) {
myTween = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, mc._x, xstart, 10, false);
new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, mc._y, ystart, 10, false);
var tempListener = new Object();
myTween.addListener(tempListener);
myTween.onMotionFinished = function () {
mc2._visible = false;
delete tempListener;
};
}
function attachClip(mc, linkage) {
var _local3 = this;
var _local2 = _game_mc.attachMovie(linkage, "clip" + _currDepth, _currDepth, {_x:_xmouse, _y:_ymouse});
_local2.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
_local2.onRelease = function () {
this.swapDepths(_currDepth);
delete this.onEnterFrame;
delete this.onRelease;
};
}
function drop_icon(linkage) {
switch (linkage) {
case "mc.icons_value_1" :
_drop_mc.icon_1_drop.swapDepths(_drop_depth);
if (_icon_1._currentframe == 1) {
_drop_mc.icon_1_drop.new_big_1a_mc._visible = true;
_game_number_arr[_g_num].ut_id.count_mc.count_anim_mc.text_txt.text = "+" + _game_value_1;
_game_number_arr[_g_num].ut_id.count_mc.gotoAndPlay(2);
} else {
_drop_mc.icon_1_drop.new_big_1b_mc._visible = true;
_game_number_arr[_g_num].ut_id.count_mc.count_anim_mc.text_txt.text = "+" + _game_value_1;
_game_number_arr[_g_num].ut_id.count_mc.gotoAndPlay(2);
}
break;
case "mc.icons_value_2" :
_drop_mc.icon_2_drop.swapDepths(_drop_depth);
if (_icon_2._currentframe == 1) {
_drop_mc.icon_2_drop.new_big_1a_mc._visible = true;
_game_number_arr[_g_num].ut_id.count_mc.count_anim_mc.text_txt.text = "+" + _game_value_2;
_game_number_arr[_g_num].ut_id.count_mc.gotoAndPlay(2);
} else {
_drop_mc.icon_2_drop.new_big_1b_mc._visible = true;
_game_number_arr[_g_num].ut_id.count_mc.count_anim_mc.text_txt.text = "+" + _game_value_2;
_game_number_arr[_g_num].ut_id.count_mc.gotoAndPlay(2);
}
break;
case "mc.icons_value_3" :
_drop_mc.icon_3_drop.swapDepths(_drop_depth);
if (_icon_3._currentframe == 1) {
_drop_mc.icon_3_drop.new_big_1a_mc._visible = true;
_game_number_arr[_g_num].ut_id.count_mc.count_anim_mc.text_txt.text = "+" + _game_value_3;
_game_number_arr[_g_num].ut_id.count_mc.gotoAndPlay(2);
} else {
_drop_mc.icon_3_drop.new_big_1b_mc._visible = true;
_game_number_arr[_g_num].ut_id.count_mc.count_anim_mc.text_txt.text = "+" + _game_value_3;
_game_number_arr[_g_num].ut_id.count_mc.gotoAndPlay(2);
}
break;
case "mc.icons_value_4" :
_drop_mc.icon_4_drop.swapDepths(_drop_depth);
if (_icon_4._currentframe == 1) {
_drop_mc.icon_4_drop.new_big_1a_mc._visible = true;
_game_number_arr[_g_num].ut_id.count_mc.count_anim_mc.text_txt.text = "+" + _game_value_4;
_game_number_arr[_g_num].ut_id.count_mc.gotoAndPlay(2);
} else {
_drop_mc.icon_4_drop.new_big_1b_mc._visible = true;
_game_number_arr[_g_num].ut_id.count_mc.count_anim_mc.text_txt.text = "+" + _game_value_4;
_game_number_arr[_g_num].ut_id.count_mc.gotoAndPlay(2);
}
}
}
function build_game(linkage) {
switch (_game_counter) {
case 0 :
_game_counter = 1;
_g_num = Math.round(Math.random() * 4);
break;
case 1 :
_g_num++;
if (_g_num < _game_number_arr.length) {
break;
}
_g_num = 0;
}
_game_value_1 = _game_number_arr[_g_num].val1;
_game_value_2 = _game_number_arr[_g_num].val2;
_game_value_3 = _game_number_arr[_g_num].val3;
_game_value_4 = _game_number_arr[_g_num].val4;
_game_val_text_1.text = _game_number_arr[_g_num].val1;
_game_val_text_2.text = _game_number_arr[_g_num].val2;
_game_val_text_3.text = _game_number_arr[_g_num].val3;
_game_val_text_4.text = _game_number_arr[_g_num].val4;
_user_target = _game_number_arr[_g_num].ut_id;
_game_target = _game_number_arr[_g_num].gt_id;
_user_total = _game_number_arr[_g_num].ut_val;
_game_total = _game_number_arr[_g_num].gt_val;
_bucket_text1_mc.text = _game_number_arr[_g_num].b1_txt;
_bucket_text2_mc.text = _game_number_arr[_g_num].b2_txt;
var _local3 = Math.floor(Math.random() * 2) + 1;
var _local1 = Math.floor(Math.random() * 2) + 1;
var _local2 = Math.floor(Math.random() * 2) + 1;
var _local4 = Math.floor(Math.random() * 2) + 1;
_val_1_mc.gotoAndStop(_local3);
_val_2_mc.gotoAndStop(_local1);
_val_3_mc.gotoAndStop(_local2);
_val_4_mc.gotoAndStop(_local4);
bigIconPicker();
if (_local3 == 1) {
_val_1_text.text = "SEEDS";
_prebuilt_bucket1_mc.big_1_mc.gotoAndStop(2);
} else {
_val_1_text.text = "GLOVES";
_prebuilt_bucket1_mc.big_1_mc.gotoAndStop(1);
}
if (_local1 == 1) {
_val_2_text.text = "SHOVEL";
_prebuilt_bucket1_mc.big_2_mc.gotoAndStop(2);
} else {
_val_2_text.text = "SHEERS";
_prebuilt_bucket1_mc.big_2_mc.gotoAndStop(1);
}
if (_local2 == 1) {
_val_3_text.text = "WATER CAN";
_prebuilt_bucket1_mc.big_3_mc.gotoAndStop(2);
} else {
_val_3_text.text = "FLOWER";
_prebuilt_bucket1_mc.big_3_mc.gotoAndStop(1);
}
if (_local4 == 1) {
_val_4_text.text = "HOSE";
_prebuilt_bucket1_mc.big_4_mc.gotoAndStop(2);
} else {
_val_4_text.text = "SOIL";
_prebuilt_bucket1_mc.big_4_mc.gotoAndStop(1);
}
}
function bigIconPicker() {
switch (_g_num) {
case 0 :
_prebuilt_bucket1_mc.big_1_mc._visible = true;
_prebuilt_bucket1_mc.big_2_mc._visible = false;
_prebuilt_bucket1_mc.big_3_mc._visible = false;
_prebuilt_bucket1_mc.big_4_mc._visible = true;
return;
case 1 :
_prebuilt_bucket1_mc.big_1_mc._visible = false;
_prebuilt_bucket1_mc.big_2_mc._visible = true;
_prebuilt_bucket1_mc.big_3_mc._visible = false;
_prebuilt_bucket1_mc.big_4_mc._visible = true;
return;
case 2 :
_prebuilt_bucket1_mc.big_1_mc._visible = true;
_prebuilt_bucket1_mc.big_2_mc._visible = false;
_prebuilt_bucket1_mc.big_3_mc._visible = false;
_prebuilt_bucket1_mc.big_4_mc._visible = true;
return;
case 3 :
_prebuilt_bucket1_mc.big_1_mc._visible = false;
_prebuilt_bucket1_mc.big_2_mc._visible = true;
_prebuilt_bucket1_mc.big_3_mc._visible = true;
_prebuilt_bucket1_mc.big_4_mc._visible = false;
return;
case 4 :
_prebuilt_bucket1_mc.big_1_mc._visible = false;
_prebuilt_bucket1_mc.big_2_mc._visible = false;
_prebuilt_bucket1_mc.big_3_mc._visible = false;
_prebuilt_bucket1_mc.big_4_mc._visible = true;
}
}
function game_reset() {
_drop_mc.icon_1_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_1_drop.new_big_1b_mc._visible = false;
_drop_mc.icon_2_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_2_drop.new_big_1b_mc._visible = false;
_drop_mc.icon_3_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_3_drop.new_big_1b_mc._visible = false;
_drop_mc.icon_4_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_4_drop.new_big_1b_mc._visible = false;
_current_step = 0;
_user_target = _game_number_arr[_g_num].ut_id;
_game_target = _game_number_arr[_g_num].gt_id;
_user_total = _game_number_arr[_g_num].ut_val;
_game_total = _game_number_arr[_g_num].gt_val;
_bucket_text1_mc.text = _game_number_arr[_g_num].b1_txt;
_bucket_text2_mc.text = _game_number_arr[_g_num].b2_txt;
setIconPositions();
_user_arr = [];
_icon1_tracker = 0;
_icon2_tracker = 0;
_icon3_tracker = 0;
_icon4_tracker = 0;
}
function userTracker_2(mc) {
_user_arr.push(mc);
trace(_user_arr);
if (mc == _icon_1) {
_icon1_tracker++;
} else if (mc == _icon_2) {
_icon2_tracker++;
} else if (mc == _icon_3) {
_icon3_tracker++;
} else if (mc == _icon_4) {
_icon4_tracker4++;
}
}
function iconUndoer() {
var _local1 = _user_arr.pop();
trace("MY POPPED CURR CLIP: " + _local1);
if (_local1 == _icon_1) {
_user_total = _user_total - _game_value_1;
if (_icon1_tracker >= 2) {
_icon1_tracker--;
} else {
_icon1_tracker--;
_drop_mc.icon_1_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_1_drop.new_big_1b_mc._visible = false;
}
} else if (_local1 == _icon_2) {
_user_total = _user_total - _game_value_2;
if (_icon2_tracker >= 2) {
_icon2_tracker--;
} else {
_icon2_tracker--;
_drop_mc.icon_2_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_2_drop.new_big_1b_mc._visible = false;
}
} else if (_local1 == _icon_3) {
_user_total = _user_total - _game_value_3;
if (_icon3_tracker >= 2) {
_icon3_tracker--;
} else {
_icon3_tracker--;
_drop_mc.icon_3_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_3_drop.new_big_1b_mc._visible = false;
}
} else if (_local1 == _icon_4) {
_user_total = _user_total - _game_value_4;
if (_icon4_tracker >= 2) {
_icon4_tracker--;
} else {
_icon4_tracker--;
_drop_mc.icon_4_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_4_drop.new_big_1b_mc._visible = false;
}
}
trace("ICON1TRACKER: " + _icon1_tracker);
trace("ICON2TRACKER: " + _icon2_tracker);
trace("ICON3TRACKER: " + _icon3_tracker);
trace("ICON4TRACKER: " + _icon4_tracker);
trace("USER_TOTAL = " + _user_total);
_bucket_text2_mc.text = _user_total;
}
function countItem(linkage) {
switch (linkage) {
case "mc.icons_value_1" :
_user_total = _user_total + _game_value_1;
break;
case "mc.icons_value_2" :
_user_total = _user_total + _game_value_2;
break;
case "mc.icons_value_3" :
_user_total = _user_total + _game_value_3;
break;
case "mc.icons_value_4" :
_user_total = _user_total + _game_value_4;
}
_game_number_arr[_g_num].ut_txt_id.text = _user_total;
}
function triggerTooMuch() {
game_reset();
exceededNumberSound();
}
function checkItems() {
if (_user_total == _game_total) {
flvTrig = "finish";
disableNav();
} else if (_user_total >= _game_total) {
flvTrig = "toomuch";
} else if (_user_total <= _game_total) {
flvTrig = "positive";
}
}
stop();
var gameOwner;
var GC;
var assetPath = "";
var _title_mc = title_mc;
var _opening_mc = opening_mc;
var _game_mc = game_mc;
var _instruct_mc = _game_mc.instuctions_mc;
var _end_mc = end_mc;
var _outro_mc = outro_anim_mc;
var _bucket_target1_mc = _game_mc.goofy_mc.bucket1_mc;
var _bucket_text1_mc = _bucket_target1_mc.text_txt;
var _bucket_target2_mc = _game_mc.goofy_mc.bucket2_mc;
var _bucket_text2_mc = _bucket_target2_mc.text_txt;
var _bucket1_back_mc = _bucket_target1_mc.bucket_back_mc;
var _bucket2_back_mc = _bucket_target2_mc.bucket_back_mc;
var _drop_mc = _game_mc.goofy_mc.bucket2_mc.drop_mc;
var _bucket1_glow_mc = _bucket_target1_mc.glow_mc;
var _bucket2_glow_mc = _bucket_target2_mc.glow_mc;
_bucket1_glow_mc._visible = false;
var _prebuilt_bucket1_mc = _bucket_target1_mc.game_items_mc;
var _prebuilt_bucket2_mc = _bucket_target2_mc.game_items_mc;
_prebuilt_bucket2_mc._visible = false;
var _count1_mc = _bucket_target1_mc.count_mc;
var _count1_txt = _bucket_target1_mc.count_mc.count_anim_mc.text_txt;
var _count2_mc = _bucket_target2_mc.count_mc;
var _count2_txt = _bucket_target2_mc.count_mc.count_anim_mc.text_txt;
var _icon_1 = _game_mc.val_1_mc;
var _icon_2 = _game_mc.val_2_mc;
var _icon_3 = _game_mc.val_3_mc;
var _icon_4 = _game_mc.val_4_mc;
var _goofy_flv = _game_mc.goofy_mc;
var _val_1_mc = _game_mc.val_1_mc;
var _val_2_mc = _game_mc.val_2_mc;
var _val_3_mc = _game_mc.val_3_mc;
var _val_4_mc = _game_mc.val_4_mc;
var _val_1_text = _game_mc.val_1_txt;
var _val_2_text = _game_mc.val_2_txt;
var _val_3_text = _game_mc.val_3_txt;
var _val_4_text = _game_mc.val_4_txt;
var _val1_xPos = _val_1_mc._x;
var _val1_yPos = _val_1_mc._y;
var _val2_xPos = _val_2_mc._x;
var _val2_yPos = _val_2_mc._y;
var _val3_xPos = _val_3_mc._x;
var _val3_yPos = _val_3_mc._y;
var _val4_xPos = _val_4_mc._x;
var _val4_yPos = _val_4_mc._y;
var _game_value_1 = 0;
var _game_value_2 = 0;
var _game_value_3 = 0;
var _game_value_4 = 0;
var _current_step = 0;
var _game_val_text_1 = _val_1_mc.text_txt;
var _game_val_text_2 = _val_2_mc.text_txt;
var _game_val_text_3 = _val_3_mc.text_txt;
var _game_val_text_4 = _val_4_mc.text_txt;
var _user_total = 0;
var _game_total = 0;
var _game_target;
var _user_target;
var _g_num = 0;
var _game_counter = 0;
var _start_btn = opening_mc.start_btn;
var _instruct_close = _instruct_mc.temp_btn;
var _undo_btn = _game_mc.reset_btn;
var _undo_btn = _game_mc.undo_btn;
var _question_btn = _game_mc.question_btn;
var _replay = _end_mc.replay_btn;
var _currDepth;
var _item_active_state = 1;
var flvTrig = "helpme";
var _instruct_active = true;
var _goofy_scenes_arr = Array(_title_mc, _opening_mc, _game_mc, _outro_mc, _end_mc);
var sound_effects_mc = this.createEmptyMovieClip("sound_effects_mc", -1500);
var sound_music_mc = sound_effects_mc.createEmptyMovieClip("sound_music_mc", -1500);
var sound_music = new Sound(sound_effects_mc.sound_music_mc);
var my_effects1_mc = sound_effects_mc.createEmptyMovieClip("my_effects1_mc", -1600);
var my_effects1 = new Sound(sound_effects_mc.my_effects1_mc);
var my_effects2_mc = sound_effects_mc.createEmptyMovieClip("my_effects2_mc", -1700);
var my_effects2 = new Sound(sound_effects_mc.my_effects2_mc);
var sound_arr = Array("mmc_goofy_music.aif", "click01.aif", "drop07.aif", "bling01.aif", "bigpop01.aif", "goofy_rollover01.aif", "jharpboing.aif", "wrong.aif", "GG_001_01d_kpr.aif");
sound_music.attachSound(sound_arr[0]);
sound_music.start(0, 999);
sound_music.setVolume(20);
var _btns_arr = Array(_undo_btn, _question_btn, _val_1_mc, _val_2_mc, _val_3_mc, _val_4_mc);
var _items_arr = Array({item:_val_1_mc, linkage:"mc.icons_value_1", xPos:_val1_xPos, yPos:_val1_yPos, swap_id:"mc.icon_swap1"}, {item:_val_2_mc, linkage:"mc.icons_value_2", xPos:_val2_xPos, yPos:_val2_yPos, swap_id:"mc.icon_swap2"}, {item:_val_3_mc, linkage:"mc.icons_value_3", xPos:_val3_xPos, yPos:_val3_yPos, swap_id:"mc.icon_swap3"}, {item:_val_4_mc, linkage:"mc.icons_value_4", xPos:_val4_xPos, yPos:_val4_yPos, swap_id:"mc.icon_swap4"});
var _items_icon_arr = Array({icon1_1:1, icon1_1_txt:"SEEDS", icon1_2:2, icon1_1_txt:"GLOVES"}, {icon2_1:1, icon2_1_txt:"SHOVEL", icon2_2:2, icon2_2_txt:"SHEERS"}, {icon3_1:1, icon3_1_txt:"BUCKET", icon3_2:2, icon3_2_txt:"FLOWER"}, {icon4_1:1, icon4_1_txt:"HOSE", icon4_2:2, icon4_2_txt:"SOIL"});
var _game_number_arr = Array({ut_id:_bucket_target2_mc, gt_id:_bucket_target1_mc, val1:1, val2:1, val3:2, val4:3, ut_val:0, gt_val:5, ut_txt_id:_bucket_text2_mc, b1_txt:"5", b2_txt:"0"}, {ut_id:_bucket_target2_mc, gt_id:_bucket_target1_mc, val1:1, val2:2, val3:3, val4:4, ut_val:0, gt_val:7, ut_txt_id:_bucket_text2_mc, b1_txt:"7", b2_txt:"0"}, {ut_id:_bucket_target2_mc, gt_id:_bucket_target1_mc, val1:1, val2:2, val3:3, val4:5, ut_val:0, gt_val:8, ut_txt_id:_bucket_text2_mc, b1_txt:"8", b2_txt:"0"}, {ut_id:_bucket_target2_mc, gt_id:_bucket_target1_mc, val1:1, val2:2, val3:2, val4:4, ut_val:0, gt_val:6, ut_txt_id:_bucket_text2_mc, b1_txt:"6", b2_txt:"0"}, {ut_id:_bucket_target2_mc, gt_id:_bucket_target1_mc, val1:1, val2:1, val3:2, val4:7, ut_val:0, gt_val:10, ut_txt_id:_bucket_text2_mc, b1_txt:"10", b2_txt:"0"});
var positive_counter = 0;
var negative_counter = 0;
var finish_counter = 0;
var additional_anim = 0;
var _gameResetState = 0;
_undo_btn.onRollOver = (_question_btn.onRollOver = (_replay.onRollOver = (_instruct_close.onRollOver = (_start_btn.onRollOver = function (mc) {
genRollOver(this);
rollOverSound();
}))));
_undo_btn.onRollOut = (_question_btn.onRollOut = (_replay.onRollOut = (_instruct_close.onRollOut = (_start_btn.onRollOut = function (mc) {
genRollOut(this);
rollOverSound();
}))));
_undo_btn.onRelease = function () {
iconUndoer();
};
_question_btn.onRelease = function () {
_instruct_mc.swapDepths(_currDepth);
genRollOut(this);
killNav();
instructionsToggle((_instruct_active = true));
_bucket2_glow_mc.gotoAndStop(1);
};
_instruct_close.onRelease = function () {
enableNav();
instructionsToggle((_instruct_active = false));
playFLV();
_bucket2_glow_mc.play();
};
_replay.onRelease = function () {
enableNav();
activate_scene(_goofy_scenes_arr[2]);
game_reset();
build_game(linkage);
playFLV((flvTrig = "helpme"));
_end_mc.gotoAndStop(1);
};
_start_btn.onRelease = function () {
activate_scene(_goofy_scenes_arr[2]);
instructionsToggle();
};
_drop_mc.createEmptyMovieClip("icon_1_drop", _drop_mc.getNextHighestDepth());
_drop_mc.createEmptyMovieClip("icon_2_drop", _drop_mc.getNextHighestDepth());
_drop_mc.createEmptyMovieClip("icon_3_drop", _drop_mc.getNextHighestDepth());
_drop_mc.createEmptyMovieClip("icon_4_drop", _drop_mc.getNextHighestDepth());
_drop_mc.icon_1_drop.attachMovie("mc.big_seeds", "new_big_1a_mc", _drop_mc.icon_1_drop.getNextHighestDepth());
_drop_mc.icon_1_drop.attachMovie("mc.big_glove", "new_big_1b_mc", _drop_mc.icon_1_drop.getNextHighestDepth());
_drop_mc.icon_1_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_1_drop.new_big_1b_mc._visible = false;
_drop_mc.icon_2_drop.attachMovie("mc.big_spade", "new_big_1a_mc", _drop_mc.icon_2_drop.getNextHighestDepth());
_drop_mc.icon_2_drop.attachMovie("mc.big_sheers", "new_big_1b_mc", _drop_mc.icon_2_drop.getNextHighestDepth());
_drop_mc.icon_2_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_2_drop.new_big_1b_mc._visible = false;
_drop_mc.icon_3_drop.attachMovie("mc.big_watercan", "new_big_1a_mc", _drop_mc.icon_3_drop.getNextHighestDepth());
_drop_mc.icon_3_drop.attachMovie("mc.big_flower", "new_big_1b_mc", _drop_mc.icon_3_drop.getNextHighestDepth());
_drop_mc.icon_3_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_3_drop.new_big_1b_mc._visible = false;
_drop_mc.icon_4_drop.attachMovie("mc.big_hose", "new_big_1a_mc", _drop_mc.icon_4_drop.getNextHighestDepth());
_drop_mc.icon_4_drop.attachMovie("mc.big_soil", "new_big_1b_mc", _drop_mc.icon_4_drop.getNextHighestDepth());
_drop_mc.icon_4_drop.new_big_1a_mc._visible = false;
_drop_mc.icon_4_drop.new_big_1b_mc._visible = false;
var _drop_depth = _drop_mc.getNextHighestDepth();
var _user_arr = new Array();
var _icon1_tracker = 0;
var _icon2_tracker = 0;
var _icon3_tracker = 0;
var _icon4_tracker = 0;
setItems();
build_game(linkage);
activate_scene(_goofy_scenes_arr[0]);
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 31
stop();
Symbol 21 MovieClip Frame 41
stop();
Symbol 22 MovieClip [mc.drive_num_anim] Frame 51
appRoot.onNumberHit(this, selection_id);
Symbol 22 MovieClip [mc.drive_num_anim] Frame 77
stop();
appRoot.onNumberComplete(this);
Symbol 28 MovieClip [mc.icons_value_2] Frame 1
stop();
Symbol 28 MovieClip [mc.icons_value_2] Frame 2
stop();
Symbol 34 MovieClip [mc.icons_value_3] Frame 1
stop();
Symbol 34 MovieClip [mc.icons_value_3] Frame 2
stop();
Symbol 40 MovieClip [mc.icons_value_4] Frame 1
stop();
Symbol 40 MovieClip [mc.icons_value_4] Frame 2
stop();
Symbol 43 MovieClip [mc.icon_seeds_mc] Frame 1
stop();
Symbol 43 MovieClip [mc.icon_seeds_mc] Frame 2
stop();
Symbol 48 MovieClip [mc.icon_glove_mc] Frame 1
stop();
Symbol 48 MovieClip [mc.icon_glove_mc] Frame 2
stop();
Symbol 49 MovieClip [mc.icon_swap1] Frame 1
stop();
Symbol 49 MovieClip [mc.icon_swap1] Frame 2
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 57 MovieClip [mc.icon_swap2] Frame 1
stop();
Symbol 57 MovieClip [mc.icon_swap2] Frame 2
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 65 MovieClip [mc.icon_swap3] Frame 1
stop();
Symbol 65 MovieClip [mc.icon_swap3] Frame 2
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 73 MovieClip [mc.icon_swap4] Frame 1
stop();
Symbol 73 MovieClip [mc.icon_swap4] Frame 2
stop();
Symbol 75 MovieClip [mc.icons_value_1] Frame 1
stop();
Symbol 75 MovieClip [mc.icons_value_1] Frame 2
stop();
Symbol 77 MovieClip [mc.icon_hose_mc] Frame 1
stop();
Symbol 77 MovieClip [mc.icon_hose_mc] Frame 2
stop();
Symbol 79 MovieClip [mc.icon_watercan_mc] Frame 1
stop();
Symbol 79 MovieClip [mc.icon_watercan_mc] Frame 2
stop();
Symbol 81 MovieClip [mc.icon_shovel_mc] Frame 1
stop();
Symbol 81 MovieClip [mc.icon_shovel_mc] Frame 2
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
Symbol 114 MovieClip Frame 7
Symbol 114 MovieClip Frame 15
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 206
gotoAndPlay ("continue_movie");
Symbol 123 MovieClip Frame 433
_parent.activate_scene(_parent._goofy_scenes_arr[4]);
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 160
gotoAndPlay (2);
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 50
Symbol 157 MovieClip Frame 1
stop();
gotoAndStop (2);
Symbol 157 MovieClip Frame 79
stop();
_parent._parent.playFLV();
Symbol 157 MovieClip Frame 171
stop();
_parent._parent.playFLV();
Symbol 157 MovieClip Frame 288
stop();
_parent._parent.checkGameResetToggle();
Symbol 157 MovieClip Frame 405
_parent._parent.playFLV();
Symbol 157 MovieClip Frame 484
_parent._parent.playFLV();
Symbol 157 MovieClip Frame 563
_parent._parent.playFLV();
Symbol 157 MovieClip Frame 643
_parent._parent.playFLV();
Symbol 157 MovieClip Frame 720
stop();
_parent._parent.activate_scene(_parent._parent._goofy_scenes_arr[3]);
Symbol 157 MovieClip Frame 797
stop();
_parent._parent.activate_scene(_parent._parent._goofy_scenes_arr[3]);
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 95
gotoAndPlay (2);
Symbol 223 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 5
gotoAndStop (2);
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
stop();
Symbol 237 MovieClip Frame 5
gotoAndStop (2);
Symbol 260 MovieClip Frame 1
function triggerCounter(num) {
counter.gotoAndPlay(2);
counter_mc.text = "+" + num;
}
stop();
var counter_mc = counter.counter_mc.text_txt;
Symbol 260 MovieClip Frame 2
glow_mc.play();
Symbol 260 MovieClip Frame 3
glow_2_mc.gotoAndPlay(2);
glow_3_mc.gotoAndPlay(2);
Symbol 260 MovieClip Frame 591
triggerCounter(7);
Symbol 260 MovieClip Frame 691
triggerCounter(1);
Symbol 260 MovieClip Frame 791
triggerCounter(2);
Symbol 260 MovieClip Frame 1031
triggerCounter(1);
Symbol 260 MovieClip Frame 1120
triggerCounter(2);
Symbol 260 MovieClip Frame 1380
_parent.temp_btn.gotoAndStop(3);
Symbol 260 MovieClip Frame 1461
_parent.temp_btn.gotoAndStop(1);
Symbol 260 MovieClip Frame 1465
stop();
fade_mc.onRelease = function () {
gotoAndPlay (2);
};
Symbol 261 MovieClip Frame 1
stop();
anim_mc.play();
instruct_glow_mc._visible = false;
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 2
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 426
stop();
_parent.activate_scene(_parent._goofy_scenes_arr[2]);
_parent.instructionsToggle();
Symbol 274 MovieClip Frame 1
_parent._parent.my_effects1.attachSound(_parent._parent.sound_arr[8]);
_parent._parent.my_effects1.start();
Symbol 274 MovieClip Frame 75
stop();
_parent._parent.activate_scene(_parent._parent._goofy_scenes_arr[1]);
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
stop();
Symbol 276 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 277 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 278 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 279 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 280 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}