Frame 1
function GlobalParent() {
this._state = "Loading";
this.Score = 0;
this._level = 1;
this.HighScore = 0;
this.BallTypes = 11;
this.GhoulScale = 15;
this.ArrowScale = 75;
this.ActiveBallTypes = 3;
this.Max_x = 480;
this.Max_y = 480;
this.Min_x = 0;
this.Min_y = 0;
this.WorldScale = 0;
this.Cur_Arrow = 0;
this.Flight_Ball = 0;
this.Reload_Ball = 0;
this.ReloadScale = 0;
this.ReloadRadiius = 20;
this.Radius = 1;
this.ActiveBallCount = 0;
this.BallValue = 10;
this.Bonus = 100;
this.Cur_Bonus = 0;
this.LevelCounter = 0;
this.GhoulsPerLevel = 0;
this.GhoulWidth = 0;
this.GhoulHeight = 0;
this.Ghoul_halfheight = 0;
this.Ghoul_halfwidth = 0;
this.BaseRotationSpeed = 5;
this.RotationSpeed = 0;
this.MaxRotationSpeed = 10;
this.Platform = 0;
this.DefaultGhoulSpeed = 3;
this.GhoulSpeed = 1;
this.ArrowSpeed = 10;
this.EnemyGhoulSpeed = 1;
this.LevelWindowTimer = 0;
this.Background_Count = 0;
this.CurrentBackground = 0;
this.Profile_ID = 0;
this.Login = 0;
this.Password = "";
this.arrowhandler_mathx = 0;
this.arrowhandler_mathy = 0;
this.arrowholder_rotation = 0;
this.ArrowHolder_Count = 0;
this.Background_Count;
this.Depth_Count = 0;
this.Ghoul_Count = 0;
this.Sprite_Count = 0;
this.PiCalculation = (Math.PI/180);
this.ActiveGhouls = 0;
this.MaxGhouls = 0;
this.Arrow_Count = 0;
this.Cur_Arrow = 0;
this.ActiveArrows = 0;
this.Flight_Arrow = 0;
this.Cloud_Count = 0;
this.Score_Count = 0;
this.LoadBar_Count = 0;
this.Tombstone_Count = 0;
this.Arrows = 0;
this.ArrowCount_Count = 0;
this.Multiplier = 1;
this.GameTitle_Count = 0;
this.GameOver_Count = 0;
this.Instructions_Count = 0;
this.LevelText_Count = 0;
this.LevelTextTimer = 0;
this.Raindrop_Count = 0;
this.Points_Count = 0;
this.WindCounter = 50;
this.ThunderCounter = 75;
this.AttackTimer = 5;
this.LoadTitle_Count = 0;
this.Moon_Count = 0;
this.MainUI_Count = 0;
this.HighScores_Count = 0;
this.MainMenu_Count = 0;
this.LevelStart_Count = 0;
this.MultiplierFrames = 0;
this.LoadingData_Count = 0;
this.SavingData_Count = 0;
this.Game_ID = 5;
this.BasePath = "http://games.smallzworld.com/";
this.InitLoadTime = 0;
this.SpecialLinkURL = "";
this.SpecialMessage = "";
this._username = "Default";
this._submitState = false;
}
function SpriteParent(id) {
Global.Sprite_Count++;
this._id = int(id);
this._spriteid = int(Global.Sprite_Count);
this._state = "Inactive";
this._color = 0;
this._xpos = 0;
this._ypos = 0;
this._xspeed = 0;
this._yspeed = 0;
this._targetx = 0;
this._targety = 0;
this._scale = 100;
this._rotation = 0;
this._speed = 0;
this._xslot = 0;
this.JumpCounter = 0;
this._shakecounter = 0;
this._bumpcounter = 0;
this._counter = 0;
this._instance = instance_name;
}
function Preloader_Status() {
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded / myTotal;
return(myPercent * 100);
}
function FPSParent() {
this._framecount = 0;
this._starttime = 0;
this._timer = 0;
}
function FPS_Start() {
FPS._starttime = getTimer();
FPS._framecount = 0;
}
function FPS_Value() {
cur_time = getTimer();
elapsed = (cur_time - FPS._starttime) / 1000;
return(Math.round(FPS._framecount / elapsed));
}
function FPS_Init(loc_x, loc_y) {
Global.Depth_Count++;
_root.attachMovie("ScoreSymbol", "FPSPanel", Global.Depth_Count);
MC_pos("FPSPanel", loc_x, loc_y);
FPSPanel.Symbol.Label.text = "FPS : ";
}
function FPS_Update() {
FPS._framecount++;
_root.FPSPanel.Symbol.ScoreText.text = FPS_Value();
}
function Process_Control_Input(KeyCode) {
switch (Global._state) {
case "MainMenu" :
if (MainMenu_1.StartGame.hitTest(_root._xmouse, _root._ymouse)) {
MC_tween(MainMenu_1, "_xscale", "Regular", 100, 0, 0.75);
MC_tween(MainMenu_1, "_yscale", "Regular", 100, 0, 0.75);
reset_game();
Global._state = "LevelStart";
Global.LevelTextTimer = 50;
}
if (MainMenu_1.Instructions.hitTest(_root._xmouse, _root._ymouse)) {
MC_tween(MainMenu_1, "_xscale", "Regular", 100, 0, 0.75);
MC_tween(MainMenu_1, "_yscale", "Regular", 100, 0, 0.75);
Global._state = "Instructions";
}
if (MainMenu_1.HighScores.hitTest(_root._xmouse, _root._ymouse)) {
MC_tween(MainMenu_1, "_xscale", "Regular", 100, 0, 0.75);
MC_tween(MainMenu_1, "_yscale", "Regular", 100, 0, 0.75);
LoadHighScores(Global.Game_ID);
}
if (MainMenu_1.ADDButton.hitTest(_root._xmouse, _root._ymouse)) {
getURL ("http://games.smallzworld.com/Main.php?PageType=DisplayHighScores&Game_ID=5", "_blank");
}
break;
case "Core" :
if (Global.Arrows > 0) {
SFX_shoot.start();
release_arrow();
}
break;
case "GameOver" :
if (GameOver_1.Back.hitTest(_root._xmouse, _root._ymouse)) {
MC_hide(GameOver_1);
MC_tween(GameOver_1, "_xscale", "Regular", 100, 0, 0.75);
MC_tween(GameOver_1, "_yscale", "Regular", 100, 0, 0.75);
MC_tween(MainUI_1, "_xscale", "Regular", 100, 0, 0.75);
MC_tween(MainUI_1, "_yscale", "Regular", 100, 0, 0.75);
Global._state = "MainMenu";
}
if ((GameOver_1.Submit.hitTest(_root._xmouse, _root._ymouse) && (Global._submitState == false)) && (KeyCode == 0)) {
Global._submitState = true;
Global._username = _root.GameOver_1.UserName.text;
MC_hide(GameOver_1.Submit);
MC_hide(GameOver_1.UserName);
MC_hide(GameOver_1.Label);
SaveHighScore(Global.Game_ID, 0, Global._username, 0, Global.Score, 0, "Test Comment");
}
break;
case "HighScores" :
if (HighScores_1.Back.hitTest(_root._xmouse, _root._ymouse)) {
MC_hide(HighScores_1);
Global._state = "MainMenu";
}
break;
case "LevelChange" :
break;
case "Instructions" :
if (!Instructions_1.Back.hitTest(_root._xmouse, _root._ymouse)) {
break;
}
MC_tween(Instructions_1, "_xscale", "Regular", 100, 0, 0.75);
MC_tween(Instructions_1, "_yscale", "Regular", 100, 0, 0.75);
Global._state = "MainMenu";
break;
}
}
function LoadSomeText(game_id) {
Global._phpRoutine = "LoadSomeText";
PHPSendData.Routine = "LoadSomeText";
PHPSendData.Game_ID = game_id;
PHPSendData.sendAndLoad(Global.BasePath + "RecordManagement.php", PHPLoadData, "GET");
Global._state = "LoadingData";
Global.InitLoadTime = getTimer();
}
function LoadHighScores(game_id) {
Global._phpRoutine = "LoadHighScores";
PHPSendData.Routine = "LoadHighScores";
PHPSendData.Game_ID = game_id;
PHPSendData.sendAndLoad(Global.BasePath + "RecordManagement.php", PHPLoadData, "GET");
Global.InitLoadTime = getTimer();
Global._state = "LoadingData";
}
function SaveHighScore(game_id, profile_id, user_name, level, score, time_score, comment) {
Global._phpRoutine = "AddHighScore";
PHPSendData.Routine = "AddHighScore";
PHPSendData.Game_ID = game_id;
PHPSendData.Profile_ID = profile_id;
PHPSendData.UserName = user_name;
PHPSendData.Level = level;
PHPSendData.Score = score;
PHPSendData.TimeScore = time_score;
PHPSendData.Comment = comment;
PHPSendData.sendAndLoad(Global.BasePath + "RecordManagement.php", PHPLoadData, "GET");
Global.InitLoadTime = getTimer();
Global._state = "SavingData";
}
function process_php_data(Routine) {
switch (Routine) {
case "AddHighScore" :
MC_hide(SavingData_1);
Global._state = "GameOver";
break;
case "LoadHighScores" :
Global.SpecialMessage = PHPLoadData.SpecialMessage;
Global.SpecialLinkURL = PHPLoadData.SpecialLinkURL;
MC_hide(LoadingData_1);
Global._state = "HighScores";
break;
case "LoadSomeText" :
Global.SpecialMessage = PHPLoadData.SpecialMessage;
Global.SpecialLinkURL = PHPLoadData.SpecialLinkURL;
MC_hide(LoadingData_1);
Global._state = "MainMenu";
}
}
function Create_MovieClip(ObjectName, Instance) {
Global.Depth_Count++;
Global[Instance + "_Count"]++;
Index = Global[Instance + "_Count"];
InstanceName = (Instance + "_") + Index;
InstanceInfoName = (Instance + "Info_") + Index;
SymbolName = ObjectName + "Symbol";
_root[InstanceInfoName] = new SpriteParent(Index);
_root.attachMovie(SymbolName, InstanceName, Global.Depth_Count);
_root[InstanceName].cacheAsBitmap;
_root[InstanceName].gotoAndStop(1);
return(Index);
}
function create_instances(ObjectName, Instance, amount) {
c_instance = 1;
while (c_instance <= amount) {
trace((ObjectName + " : ") + c_instance);
New_Index = Create_MovieClip(ObjectName, Instance);
c_instance++;
}
}
function MC_alpha(InstanceName, pct) {
setProperty(InstanceName, _alpha , pct);
}
function MC_rotate(InstanceName, angle) {
setProperty(InstanceName, _rotation , angle);
}
function MC_pos(InstanceName, loc_x, loc_y) {
setProperty(InstanceName, _x , loc_x);
setProperty(InstanceName, _y , loc_y);
}
function MC_scale(InstanceName, newscale) {
setProperty(InstanceName, _xscale , newscale);
setProperty(InstanceName, _yscale , newscale);
}
function MC_size(InstanceName, new_width, new_height) {
setProperty(InstanceName, _width , new_width);
setProperty(InstanceName, _height , new_height);
}
function MC_show(InstanceName) {
setProperty(InstanceName, _visible , 1);
}
function MC_hide(InstanceName) {
setProperty(InstanceName, _visible , 0);
}
function set_object_color(ObjectName, ColorCode) {
var _local2 = new Color(_root[ObjectName]);
_local2.setRGB(ColorCode);
}
function display_prompt(PromptText, loc_x, loc_y) {
Prompt.PromptText.text = PromptText;
MC_pos("Prompt", loc_x, loc_y);
MC_show("Prompt");
}
function MC_tween(ObjectName, Property, tweenType, Begin, End, Time) {
switch (tweenType) {
case "Bounce" :
easeType = mx.transitions.easing.Bounce.easeOut;
break;
case "Strong" :
easeType = mx.transitions.easing.Strong.easeOut;
break;
case "Back" :
easeType = mx.transitions.easing.Back.easeOut;
break;
case "Elastic" :
easeType = mx.transitions.easing.Elastic.easeOut;
break;
case "Regular" :
easeType = mx.transitions.easing.Regular.easeOut;
break;
case "None" :
easeType = mx.transitions.easing.None.easeOut;
}
Tween = new mx.transitions.Tween(ObjectName, Property, easeType, Begin, End, Time, true);
}
function main_loop() {
switch (Global._state) {
case "MainMenu" :
update_rain();
update_clouds();
if ((MainMenu_1._visible == 0) || (MainMenu_1._xscale == 0)) {
MC_tween(MainMenu_1, "_xscale", "Regular", 5, 100, 0.75);
MC_tween(MainMenu_1, "_yscale", "Regular", 5, 100, 0.75);
MC_show(MainMenu_1);
MainMenu_1.Message.MessageText.text = Global.SpecialMessage;
}
check_mainmenu_rollovers();
break;
case "Core" :
if ((MainUI_1._visible == 0) || (MainUI_1._xscale == 0)) {
MC_tween(MainUI_1, "_xscale", "Regular", 5, 100, 0.75);
MC_tween(MainUI_1, "_yscale", "Regular", 5, 100, 0.75);
MC_show(MainUI_1);
MC_hide(MainUI_1.Multiplier);
MC_show(ArrowHolder_1);
}
update_rain();
update_clouds();
update_arrowholder();
update_ghouls();
update_arrows();
if (Global.Cur_Arrow == 0) {
load_new_arrow();
}
Global.AttackTimer--;
if (((Global.ActiveGhouls < Global.MaxGhouls) && (Global.AttackTimer < 1)) && (Global.GhoulsPerLevel > 0)) {
release_ghoul();
Global.AttackTimer = 55;
trace("GhoulsPerLevel : " + Global.GhoulsPerLevel);
}
if ((Global.GhoulsPerLevel < 1) && (Global.ActiveGhouls == 0)) {
Global._state = "LevelChange";
Global._level++;
level_handler(Global._level);
}
update_clay_score(Global.Score);
update_arrow_counter(Global.Arrows);
update_points_ui();
break;
case "AttackMode" :
update_rain();
update_clouds();
update_ghouls();
break;
case "GameOver" :
update_rain();
update_clouds();
check_gameover_rollovers();
if ((GameOver_1._visible == 0) || (GameOver_1._xscale == 0)) {
MC_hide(ArrowHolder_1);
MC_hide(_root["Arrow_" + Global.Cur_Arrow]);
MC_tween(GameOver_1, "_xscale", "Regular", 5, 100, 0.75);
MC_tween(GameOver_1, "_yscale", "Regular", 5, 100, 0.75);
Global._submitState = false;
MC_show(GameOver_1);
if (Global.Score > Global.HighScore) {
Global.HighScore = Global.Score;
}
GameOver_1.ScoreText.text = "Score\r" + Global.Score;
GameOver_1.HighScoreText.text = "High Score\r" + Global.HighScore;
GameOver_1.UserName.text = Global._username;
MC_show(GameOver_1.Submit);
MC_show(GameOver_1.UserName);
MC_show(GameOver_1.Label);
}
break;
case "Instructions" :
update_rain();
update_clouds();
if ((Instructions_1._visible == 0) || (Instructions_1._xscale == 0)) {
MC_tween(Instructions_1, "_xscale", "Regular", 5, 100, 0.75);
MC_tween(Instructions_1, "_yscale", "Regular", 5, 100, 0.75);
MC_show(Instructions_1);
}
check_Instructions_rollovers();
break;
case "HighScores" :
update_rain();
update_clouds();
check_highscores_rollovers();
if ((HighScores_1._visible == 0) || (HighScores_1._xscale == 0)) {
MC_show(HighScores_1);
index = 1;
while (index <= 10) {
MC_hide(HighScores_1["Listing_" + index]);
index++;
}
output_high_scores();
}
break;
case "LevelStart" :
update_arrowholder();
update_clay_score(Global.Score);
update_arrow_counter(Global.Arrows);
update_rain();
update_clouds();
if ((LevelStart_1._visible == 0) || (LevelStart_1._xscale == 0)) {
LevelStart_1.Level.LevelText.text = "Level " + Global._level;
MC_tween(LevelStart_1, "_xscale", "Regular", 5, 100, 0.75);
MC_tween(LevelStart_1, "_yscale", "Regular", 5, 100, 0.75);
MC_show(LevelStart_1);
}
Global.LevelTextTimer--;
if (Global.LevelTextTimer < 1) {
x = 1;
while (x <= Global.Arrow_Count) {
MC_scale(_root["Arrow_" + x], 75);
MC_rotation(ArrowHolder_1, 0);
x++;
}
MC_tween(LevelStart_1, "_xscale", "Regular", 100, 0, 0.75);
MC_tween(LevelStart_1, "_yscale", "Regular", 100, 0, 0.75);
Global._state = "Core";
}
break;
case "LoadingData" :
update_rain();
update_clouds();
if (LoadingData_1._visible == 0) {
Global.InitLoadTime = getTimer();
MC_show(LoadingData_1);
}
elapsedTime = update_timer(Global.InitLoadTime);
if (elapsedTime > 45) {
MC_hide(LoadingData_1);
Global._state = "MainMenu";
}
break;
case "SavingData" :
update_rain();
update_clouds();
if (SavingData_1._visible == 0) {
MC_show(SavingData_1);
}
break;
case "LevelChange" :
update_arrowholder();
update_clay_score(Global.Score);
update_arrow_counter(Global.Arrows);
update_rain();
update_clouds();
if ((LevelStart_1._visible == 0) || (LevelStart_1._xscale == 0)) {
LevelStart_1.Level.LevelText.text = "Level " + Global._level;
MC_tween(LevelStart_1, "_xscale", "Regular", 5, 100, 0.75);
MC_tween(LevelStart_1, "_yscale", "Regular", 5, 100, 0.75);
}
Global.LevelTextTimer--;
if (Global.LevelTextTimer >= 1) {
break;
}
x = 1;
while (x <= Global.Arrow_Count) {
MC_scale(_root["Arrow_" + x], 75);
MC_rotation(ArrowHolder_1, 0);
x++;
}
MC_tween(LevelStart_1, "_xscale", "Regular", 100, 0, 0.75);
MC_tween(LevelStart_1, "_yscale", "Regular", 100, 0, 0.75);
Global._state = "Core";
}
}
function reset_tombstones() {
loc_x = 70;
loc_y = 270;
b = 1;
while (b <= Global.Tombstone_Count) {
_root["TombstoneInfo_" + b]._state = "Active";
_root["TombstoneInfo_" + b]._xpos = loc_x;
_root["TombstoneInfo_" + b]._ypos = loc_y;
_root["TombstoneInfo_" + b]._scale = 100;
_root["Tombstone_" + b].gotoAndStop(random(4) + 1);
MC_pos("Tombstone_" + b, _root["TombstoneInfo_" + b]._xpos, _root["TombstoneInfo_" + b]._ypos);
MC_scale("Tombstone_" + b, _root["TombstoneInfo_" + b]._scale);
loc_x = loc_x + (random(25) + 70);
if (loc_x > (Global.Max_x - 50)) {
loc_x = 70;
loc_y = loc_y + 75;
}
b++;
}
}
function reset_ghouls() {
b = 1;
while (b <= Global.Ghoul_Count) {
_root["GhoulInfo_" + b]._state = "Inactive";
_root["GhoulInfo_" + b]._xpos = -500;
_root["GhoulInfo_" + b]._scale = Global.GhoulScale;
_root["Ghoul_" + b].gotoAndStop(103);
MC_pos("Ghoul_" + b, _root["GhoulInfo_" + b]._xpos, _root["GhoulInfo_" + b]._ypos);
MC_scale("Ghoul_" + b, _root["GhoulInfo_" + b]._scale);
b++;
}
}
function reset_arrows() {
b = 1;
while (b <= Global.Arrow_Count) {
_root["ArrowInfo_" + b]._state = "Inactive";
_root["ArrowInfo_" + b]._xpos = -200;
_root["ArrowInfo_" + b]._xpos = -200;
_root["ArrowInfo_" + b]._scale = Global.ArrowScale;
_root["Arrow_" + b].gotoAndStop(1);
MC_pos("Arrow_" + b, _root["ArrowInfo_" + b]._xpos, _root["ArrowInfo_" + b]._ypos);
MC_scale("Arrow_" + b, _root["ArrowInfo_" + b]._scale);
b++;
}
}
function reset_game() {
reset_rain();
reset_ghouls();
reset_arrows();
reset_tombstones();
initialize_ballholder();
reset_clouds();
Global.ActiveGhouls = 0;
Global.MaxGhouls = 2;
Global.Arrows = 40;
Global.Cur_Arrow = 0;
Global.Score = 0;
Global._level = 1;
Global.Multiplier = 1;
Global.GhoulsPerLevel = 15;
ArrowHolderInfo_1._rotation = 0;
Global.RotationSpeed = Global.BaseRotationSpeed;
}
function update_ghoul(ghoul_id, xpos, ypos) {
MC_pos(_root["Ghoul_" + ghoul_id], _root["GhoulInfo_" + ghoul_id]._xpos, _root["Ghoul_" + ghoul_id]._ypos);
}
function release_ghoul() {
ghoul_id = find_inactive_ghoul();
_root["Ghoul_" + ghoul_id].gotoAndStop(random(3) + 1);
_root["GhoulInfo_" + ghoul_id]._state = "Attacking";
random_start_point(_root["GhoulInfo_" + ghoul_id]);
Target_x = int(ArrowHolderInfo_1._xpos);
Target_y = int(ArrowHolderInfo_1._ypos);
xdiff = _root["GhoulInfo_" + ghoul_id]._xpos - Target_x;
ydiff = _root["GhoulInfo_" + ghoul_id]._ypos - Target_y;
if (xdiff < 0) {
xdiff = -xdiff;
}
if (ydiff < 0) {
ydiff = -ydiff;
}
x_frames = xdiff / Global.GhoulSpeed;
y_frames = ydiff / Global.GhoulSpeed;
if (x_frames > y_frames) {
Max_Frames = x_frames;
} else {
Max_Frames = y_frames;
}
_root["GhoulInfo_" + ghoul_id]._xspeed = xdiff / Max_Frames;
_root["GhoulInfo_" + ghoul_id]._yspeed = ydiff / Max_Frames;
if (Target_x < _root["GhoulInfo_" + ghoul_id]._xpos) {
_root["GhoulInfo_" + ghoul_id]._xspeed = -_root["GhoulInfo_" + ghoul_id]._xspeed;
}
if (Target_y < _root["GhoulInfo_" + ghoul_id]._ypos) {
_root["GhoulInfo_" + ghoul_id]._yspeed = -_root["GhoulInfo_" + ghoul_id]._yspeed;
}
trace((_root["GhoulInfo_" + ghoul_id]._xpos + "---") + _root["GhoulInfo_" + ghoul_id]._ypos);
trace((_root["GhoulInfo_" + ghoul_id]._xspeed + "---") + _root["GhoulInfo_" + ghoul_id]._yspeed);
Global.ActiveGhouls++;
Global.GhoulsPerLevel--;
}
function release_arrow() {
if (_root["ArrowInfo_" + Global.Cur_Arrow]._state == "Loaded") {
x_calc = 480 * Math.cos(Global.arrowholder_rotation * Global.PiCalculation);
y_calc = 480 * Math.sin(Global.arrowholder_rotation * Global.PiCalculation);
_root["ArrowInfo_" + Global.Cur_Arrow]._state = "Flying";
Target_x = int(ArrowHolderInfo_1._xpos + x_calc);
Target_y = int(ArrowHolderInfo_1._ypos + y_calc);
xdiff = ArrowHolderInfo_1._xpos - Target_x;
ydiff = ArrowHolderInfo_1._ypos - Target_y;
if (xdiff < 0) {
xdiff = -xdiff;
}
if (ydiff < 0) {
ydiff = -ydiff;
}
x_frames = xdiff / Global.ArrowSpeed;
y_frames = ydiff / Global.ArrowSpeed;
if (x_frames > y_frames) {
Max_Frames = x_frames;
} else {
Max_Frames = y_frames;
}
_root["ArrowInfo_" + Global.Cur_Arrow]._xspeed = int(xdiff / Max_Frames);
_root["ArrowInfo_" + Global.Cur_Arrow]._yspeed = int(ydiff / Max_Frames);
if (Target_x < ArrowHolderInfo_1._xpos) {
_root["ArrowInfo_" + Global.Cur_Arrow]._xspeed = -_root["ArrowInfo_" + Global.Cur_Arrow]._xspeed;
}
if (Target_y < ArrowHolderInfo_1._ypos) {
_root["ArrowInfo_" + Global.Cur_Arrow]._yspeed = -_root["ArrowInfo_" + Global.Cur_Arrow]._yspeed;
}
Global.Cur_Arrow = 0;
Global.Arrows--;
}
}
function update_arrowholder() {
New_rotation = ArrowHolderInfo_1._rotation + Global.RotationSpeed;
ArrowHolderInfo_1._rotation = New_rotation;
ArrowHolderInfo_1._xpos = Global.Max_x / 2;
ArrowHolderInfo_1._ypos = Global.Max_y / 2;
Global.arrowholder_rotation = _root.ArrowHolderInfo_1._rotation + 90;
Global.arrowhandler_mathx = Global.Radius * Math.cos(Global.arrowholder_rotation * Global.PiCalculation);
Global.arrowhandler_mathy = Global.Radius * Math.sin(Global.arrowholder_rotation * Global.PiCalculation);
MC_rotate(ArrowHolder_1, ArrowHolderInfo_1._rotation);
MC_pos(ArrowHolder_1, ArrowHolderInfo_1._xpos, ArrowHolderInfo_1._ypos);
}
function update_score_UI() {
_root.ScorePanel.ScoreText.text = int(_root.Global.Score);
if (Global.Score > Global.HighScore) {
Global.HighScore = Global.Score;
}
_root.HighScorePanel.ScoreText.text = int(_root.Global.HighScore);
_root.BonusPanel.ScoreText.text = int(_root.Global.Cur_Bonus);
_root.LevelPanel.ScoreText.text = _root.Global._level;
}
function find_inactive_ghoul() {
c_ghoul = 1;
while (c_ghoul <= Global.Ghoul_Count) {
ghoul_state = _root["GhoulInfo_" + c_ghoul]._state;
if (ghoul_state == "Inactive") {
return(c_ghoul);
}
c_ghoul++;
}
}
function find_inactive_arrow() {
cb = 1;
while (cb <= Global.Arrow_Count) {
arrow_state = _root["ArrowInfo_" + cb]._state;
if (arrow_state == "Inactive") {
return(cb);
}
cb++;
}
}
function load_new_arrow() {
NewArrowType = 1;
Arrow_id = find_inactive_arrow();
_root["ArrowInfo_" + Arrow_id]._state = "Loaded";
_root["ArrowInfo_" + Arrow_id]._type = NewArrowType;
_root["Arrow_" + Arrow_id].gotoAndStop(NewArrowType);
Global.Cur_Arrow = Arrow_id;
Global.ActiveArrows++;
Global.ReloadScale = 0;
}
function reload_arrow() {
if (Global.Platform == 1) {
_root["GhoulInfo_" + Global.Reload_Arrow]._state = 1;
Global.Reload_Arrow = 0;
ArrowHolderData_InitTime = getTimer();
} else {
Global.ReloadRadius = 20;
_root["Ghoul_" + Global.Reload_Arrow]._x = int(ArrowHolder._x + arrowhandler_mathx);
_root["Ghoul_" + Global.Reload_Arrow]._y = int(ArrowHolder._y + arrowhandler_mathy);
Global.ReloadScale = Global.ReloadScale + 15;
_root["Ghoul_" + Global.Reload_Arrow]._xscale = Global.ReloadScale;
_root["Ghoul_" + Global.Reload_Arrow]._yscale = Global.ReloadScale;
if (Global.ReloadScale >= Global.GhoulScale) {
trace("done reloading");
_root["GhoulInfo_" + Global.Reload_Arrow]._state = 1;
_root["Ghoul_" + Global.Reload_Arrow]._xscale = Global.GhoulScale;
_root["Ghoul_" + Global.Reload_Arrow]._yscale = Global.GhoulScale;
Global.Reload_Arrow = 0;
ArrowHolderData_InitTime = getTimer();
}
}
}
function update_points_ui() {
if (Global.MultiplierFrames > 0) {
Global.MultiplierFrames--;
if (Global.MultiplierFrames < 1) {
MC_hide(MainUI_1.Multiplier);
} else {
MC_show(MainUI_1.Multiplier);
}
}
}
function update_arrows() {
cb = 1;
while (cb <= Global.Arrow_Count) {
switch (_root["ArrowInfo_" + cb]._state) {
case "Loaded" :
_root["ArrowInfo_" + cb]._xpos = int(ArrowHolderInfo_1._xpos + Global.arrowhandler_mathx);
_root["ArrowInfo_" + cb]._ypos = int(ArrowHolderInfo_1._ypos + Global.arrowhandler_mathy);
MC_pos(_root["Arrow_" + cb], _root["ArrowInfo_" + cb]._xpos, _root["ArrowInfo_" + cb]._ypos);
MC_rotate(_root["Arrow_" + cb], ArrowHolderInfo_1._rotation);
MC_show(_root["Arrow_" + cb]);
g = 1;
while (g <= Global.Ghoul_Count) {
if (_root["GhoulInfo_" + g]._state == "Attacking") {
xdiff = _root["ArrowInfo_" + cb]._xpos - _root["GhoulInfo_" + g]._xpos;
ydiff = _root["ArrowInfo_" + cb]._ypos - _root["GhoulInfo_" + g]._ypos;
if (xdiff < 0) {
xdiff = -xdiff;
}
if (ydiff < 0) {
ydiff = -ydiff;
}
if ((xdiff <= 20) && (ydiff <= 20)) {
trace("xpos : " + _root["GhoulInfo_" + g]._xpos);
trace("ypos : " + _root["GhoulInfo_" + g]._ypos);
trace((xdiff + " : ") + ydiff);
Global._state = "AttackMode";
cg = 1;
while (cg <= Global.Ghoul_Count) {
if ((_root["GhoulInfo_" + cg]._state = "Attacking")) {
_root["GhoulInfo_" + cg]._state = "AttackScreen";
}
cg++;
}
break;
}
}
g++;
}
break;
case "Flying" :
_root["ArrowInfo_" + cb]._xpos = _root["ArrowInfo_" + cb]._xpos + _root["ArrowInfo_" + cb]._xspeed;
_root["ArrowInfo_" + cb]._ypos = _root["ArrowInfo_" + cb]._ypos + _root["ArrowInfo_" + cb]._yspeed;
if ((((_root["ArrowInfo_" + cb]._xpos > (Global.Max_x + Global.GhoulWidth)) || (_root["ArrowInfo_" + cb]._xpos < 0)) || (_root["ArrowInfo_" + cb]._ypos > (Global.Max_y + Global.GhoulHeight))) || (_root["ArrowInfo_" + cb]._ypos < 0)) {
_root["ArrowInfo_" + cb]._xpos = -100;
_root["ArrowInfo_" + cb]._ypos = -100;
_root["ArrowInfo_" + cb]._state = "Inactive";
_root["Arrow_" + cb].gotoAndStop(20);
Global.ActiveArrows--;
Global.Multiplier = 1;
}
e = 1;
while (e <= Global.Ghoul_Count) {
if (_root["GhoulInfo_" + e]._state == "Attacking") {
xdiff = _root["GhoulInfo_" + e]._xpos - _root["ArrowInfo_" + cb]._xpos;
ydiff = _root["GhoulInfo_" + e]._ypos - _root["ArrowInfo_" + cb]._ypos;
if (xdiff < 0) {
xdiff = -xdiff;
}
if (ydiff < 0) {
ydiff = -ydiff;
}
trace((("CollisionTest : " + xdiff) + " : ") + ydiff);
if ((xdiff < 30) && (ydiff < 30)) {
_root["Ghoul_" + e].gotoAndStop(4);
SFX_explosion.start();
_root["GhoulInfo_" + e]._state = "Exploding";
_root["ArrowInfo_" + cb]._state = "Inactive";
_root["ArrowInfo_" + cb]._xpos = -200;
_root["ArrowInfo_" + cb]._ypos = -200;
_root["Arrow_" + cb].gotoAndStop(2);
MC_pos(_root["Arrow_" + cb], _root["ArrowInfo_" + cb]._xpos, _root["ArrowInfo_" + cb]._ypos);
Global.Score = Global.Score + (50 * Global.Multiplier);
if (Global.Multiplier > 1) {
Global.MultiplierFrames = 30;
MainUI_1.Multiplier.PointText.text = ((("x" + Global.Multiplier) + " ") + (50 * Global.Multiplier)) + " pts";
}
Global.Multiplier++;
}
}
e++;
}
MC_pos(_root["Arrow_" + cb], _root["ArrowInfo_" + cb]._xpos, _root["ArrowInfo_" + cb]._ypos);
}
cb++;
}
}
function update_ghouls() {
c_ghoul = 1;
while (c_ghoul <= Global.Ghoul_Count) {
switch (_root["GhoulInfo_" + c_ghoul]._state) {
case "AttackScreen" :
_root["GhoulInfo_" + c_ghoul]._xpos = _root["GhoulInfo_" + c_ghoul]._xpos + _root["GhoulInfo_" + c_ghoul]._xspeed;
_root["GhoulInfo_" + c_ghoul]._ypos = _root["GhoulInfo_" + c_ghoul]._ypos + _root["GhoulInfo_" + c_ghoul]._yspeed;
_root["GhoulInfo_" + c_ghoul]._scale = _root["GhoulInfo_" + c_ghoul]._scale + 12;
MC_pos(_root["Ghoul_" + c_ghoul], _root["GhoulInfo_" + c_ghoul]._xpos, _root["GhoulInfo_" + c_ghoul]._ypos);
MC_scale(_root["Ghoul_" + c_ghoul], _root["GhoulInfo_" + c_ghoul]._scale);
if (_root["GhoulInfo_" + c_ghoul]._scale > 150) {
Global._state = "GameOver";
}
break;
case "Attacking" :
_root["GhoulInfo_" + c_ghoul]._xpos = _root["GhoulInfo_" + c_ghoul]._xpos + _root["GhoulInfo_" + c_ghoul]._xspeed;
_root["GhoulInfo_" + c_ghoul]._ypos = _root["GhoulInfo_" + c_ghoul]._ypos + _root["GhoulInfo_" + c_ghoul]._yspeed;
if ((_root["GhoulInfo_" + c_ghoul]._xpos == 88) && (_root["GhoulInfo_" + c_ghoul]._xpos == 104)) {
_root["GhoulInfo_" + c_ghoul]._xpos = -100;
_root["GhoulInfo_" + c_ghoul]._ypos = -100;
_root["GhoulInfo_" + c_ghoul]._state = "Inactive";
_root["Ghoul_" + c_ghoul].gotoAndStop(20);
Global.ActiveGhouls--;
}
MC_pos(_root["Ghoul_" + c_ghoul], _root["GhoulInfo_" + c_ghoul]._xpos, _root["GhoulInfo_" + c_ghoul]._ypos);
break;
case "Exploding" :
if (_root["Ghoul_" + c_ghoul].Pow._currentFrame != 15) {
break;
}
_root["GhoulInfo_" + c_ghoul]._state = "Inactive";
_root["Ghoul_" + c_ghoul].gotoAndStop(4);
_root["GhoulInfo_" + c_ghoul]._xpos = -200;
_root["GhoulInfo_" + c_ghoul]._ypos = -200;
MC_pos(_root["Ghoul_" + c_ghoul], _root["GhoulInfo_" + c_ghoul]._xpos, _root["GhoulInfo_" + c_ghoul]._ypos);
Global.ActiveGhouls--;
}
c_ghoul++;
}
}
function update_release_timer() {
Cur_Time = getTimer();
Elapsed_Time = (Cur_Time - ArrowHolderData_InitTime) / 1000;
if ((Elapsed_Time > 5) && (ArrowHolderData_InitTime != 0)) {
ArrowHolderData_InitTime = 0;
release_arrow();
}
}
function update_background() {
_root["Background_" + Global.CurrentBackground]._alpha = random(5) + 25;
}
function level_window_check() {
if (LevelPanel._x < (Global.Max_x - (LevelPanel._width + 10))) {
LevelPanel._x = LevelPanel._x + 11;
} else {
LevelPanel._x = Global.Max_x - (LevelPanel._width + 10);
}
}
function increment_level() {
Global._level++;
Global.ActiveGhoulTypes++;
if (Global.ActiveGhoulTypes > Global.ActiveGhoulTypes) {
Global.ActiveGhoulTypes = Global.GhoulTypes;
}
Global.LevelCounter = Global.GhoulsPerLevel;
Global.RotationSpeed = Global.RotationSpeed + 0.25;
if (Global.RotationSpeed > Global.MaxRotationSpeed) {
Global.RotatationSpeed = Global.MaxRotationSpeed;
}
switch (Global._level) {
case 2 :
break;
case 3 :
}
display_new_level();
new_background();
update_background();
}
function random_start_point(Datastruct) {
EntrySide = random(4) + 1;
switch (EntrySide) {
case 1 :
Datastruct._xpos = random(Global.Max_x) + 1;
Datastruct._ypos = -40;
break;
case 2 :
Datastruct._ypos = random(Global.Max_y) + 1;
Datastruct._xpos = Global.Max_x + 40;
break;
case 3 :
Datastruct._xpos = random(Global.Max_x) + 1;
Datastruct._ypos = Global.Max_y + 40;
break;
case 4 :
Datastruct._ypos = random(Global.Max_y) + 1;
Datastruct._xpos = Global.Max_x - 40;
}
}
function move_cloud(Datastruct) {
cloud_id = Datastruct._id;
cloud_width = _root["Cloud_" + cloud_id]._width;
Datastruct._xpos = Datastruct._xpos + Datastruct._speed;
Datastruct._ypos = Datastruct._ypos + (random(3) - 1.5);
if ((Datastruct._xpos - (cloud_width / 2)) > _root.Global.Max_x) {
Datastruct._xpos = -cloud_width;
Datastruct._ypos = random(Global.Max_y - 40) + 20;
Datastruct._speed = random(6) + 2;
}
}
function update_clouds() {
c_cloud = 1;
while (c_cloud <= Global.Cloud_Count) {
if (_root["CloudInfo_" + c_cloud]._state == "Active") {
move_cloud(_root["CloudInfo_" + c_cloud]);
MC_pos("Cloud_" + c_cloud, _root["CloudInfo_" + c_cloud]._xpos, _root["CloudInfo_" + c_cloud]._ypos);
}
c_cloud++;
}
}
function reset_clouds() {
c = 1;
while (c <= Global.Cloud_Count) {
_root["CloudInfo_" + c]._state = "Active";
_root["CloudInfo_" + c]._speed = random(6) + 2;
_root["CloudInfo_" + c]._alpha = 45;
_root["CloudInfo_" + c]._ypos = random(Global.Max_y - 40) + 20;
_root["Cloud_" + c].gotoAndStop(random(5) + 1);
MC_alpha(_root["Cloud_" + c], _root["CloudInfo_" + c]._alpha);
c++;
}
}
function update_clay_score(NewScore) {
cs = 1;
while (cs <= 7) {
MainUI_1.Score["Slot_" + cs].gotoAndStop(12);
MC_scale(Score["Slot_" + cs], random(3) + 25);
cs++;
}
var _local1 = String(NewScore);
var _local2 = _local1.length;
SlotNum = 0;
cs = _local2 - 1;
while (cs >= 0) {
SlotNum++;
SlotValue = _local1.charAt(cs);
SlotValue++;
MainUI_1.Score["Slot_" + SlotNum].gotoAndStop(SlotValue);
cs--;
}
}
function update_arrow_counter(Arrows) {
cs = 1;
while (cs <= 3) {
MainUI_1.ArrowCount["Slot_" + cs].gotoAndStop(1);
MC_scale(MainUI_1.ArrowCount["Slot_" + cs], random(3) + 25);
cs++;
}
var _local1 = String(Arrows);
var _local2 = _local1.length;
SlotNum = 0;
cs = _local2 - 1;
while (cs >= 0) {
SlotNum++;
SlotValue = _local1.charAt(cs);
SlotValue++;
MainUI_1.ArrowCount["Slot_" + SlotNum].gotoAndStop(SlotValue);
cs--;
}
}
function reset_rain() {
var index;
index = 1;
while (index <= Global.Raindrop_Count) {
with (_root["RaindropInfo_" + index]) {
_xpos = random(640);
_ypos = random(400);
_xspeed = random(20) + 20;
_yspeed = random(10) + 10;
MC_pos(_instance, _xpos, _ypos);
}
index++;
}
}
function update_rain() {
c_drop = 1;
while (c_drop <= Global.Raindrop_Count) {
_root["RaindropInfo_" + c_drop]._xpos = _root["RaindropInfo_" + c_drop]._xpos + _root["RaindropInfo_" + c_drop]._xspeed;
_root["RaindropInfo_" + c_drop]._ypos = _root["RaindropInfo_" + c_drop]._ypos + _root["RaindropInfo_" + c_drop]._yspeed;
if (_root["RaindropInfo_" + c_drop]._ypos > Global.Max_y) {
_root["RaindropInfo_" + c_drop]._ypos = 0;
}
if (_root["RaindropInfo_" + c_drop]._xpos > Global.Max_x) {
_root["RaindropInfo_" + c_drop]._xpos = 0;
}
MC_pos(_root["Raindrop_" + c_drop], _root["RaindropInfo_" + c_drop]._xpos, _root["RaindropInfo_" + c_drop]._ypos);
c_drop++;
}
Global.WindCounter--;
if (Global.WindCounter < 1) {
SFX_wind.start(1);
SFX_Thunder_1.start();
Global.WindCounter = 150;
}
if (Global.ThunderCounter < 1) {
}
}
function level_handler(NewLevel) {
Global.LevelTextTimer = 50;
Global.Arrows = Global.Arrows + 40;
Global.MaxGhouls++;
Global.GhoulsPerLevel = 25;
if (Global.MaxGhouls > 6) {
Global.MaxGhouls = 6;
Global.GhoulSpeed = Global.GhoulSpeed + 0.25;
}
}
function display_new_level() {
}
function init_ui() {
create_instances("MainMenu", "MainMenu", 1);
MC_pos(MainMenu_1, 0, 0);
MC_hide(MainMenu_1);
create_instances("GameOver", "GameOver", 1);
MC_pos(GameOver_1, 0, 0);
MC_hide(GameOver_1);
create_instances("Instructions", "Instructions", 1);
MC_pos(Instructions_1, 0, 0);
MC_hide(Instructions_1);
create_instances("MainUI", "MainUI", 1);
MC_pos(MainUI_1, 0, 0);
MC_hide(MainUI_1);
create_instances("HighScores", "HighScores", 1);
MC_pos(HighScores_1, 0, 0);
MC_hide(HighScores_1);
create_instances("LoadingData", "LoadingData", 1);
MC_pos(LoadingData_1, 0, 0);
MC_hide(LoadingData_1);
create_instances("SavingData", "SavingData", 1);
MC_pos(SavingData_1, 0, 0);
MC_hide(SavingData_1);
create_instances("LevelStart", "LevelStart", 1);
MC_pos(LevelStart_1, 0, 0);
MC_hide(LevelStart_1);
}
function check_mainmenu_rollovers() {
if (MainMenu_1.StartGame.hitTest(_root._xmouse, _root._ymouse)) {
MC_scale(MainMenu_1.StartGame, 150);
} else {
MC_scale(MainMenu_1.StartGame, 100);
}
if (MainMenu_1.Instructions.hitTest(_root._xmouse, _root._ymouse)) {
MC_scale(MainMenu_1.Instructions, 150);
} else {
MC_scale(MainMenu_1.Instructions, 100);
}
if (MainMenu_1.HighScores.hitTest(_root._xmouse, _root._ymouse)) {
MC_scale(MainMenu_1.HighScores, 150);
} else {
MC_scale(MainMenu_1.HighScores, 100);
}
if (MainMenu_1.ADDButton.hitTest(_root._xmouse, _root._ymouse)) {
MC_scale(MainMenu_1.ADDButton, 150);
} else {
MC_scale(MainMenu_1.ADDButton, 100);
}
}
function check_Instructions_rollovers() {
if (Instructions_1.Back.hitTest(_root._xmouse, _root._ymouse)) {
MC_scale(Instructions_1.Back, 150);
} else {
MC_scale(Instructions_1.Back, 100);
}
}
function check_gameover_rollovers() {
if (GameOver_1.Submit.hitTest(_root._xmouse, _root._ymouse)) {
MC_scale(GameOver_1.Submit, 150);
} else {
MC_scale(GameOver_1.Submit, 100);
}
if (GameOver_1.Back.hitTest(_root._xmouse, _root._ymouse)) {
MC_scale(GameOver_1.Back, 150);
} else {
MC_scale(GameOver_1.Back, 100);
}
}
function check_highscores_rollovers() {
MC_rotate(HighScores_1.Back, random(5) - 2);
if (HighScores_1.Back.hitTest(_root._xmouse, _root._ymouse)) {
MC_scale(HighScores_1.Back, 115);
} else {
MC_scale(HighScores_1.Back, 100);
}
}
function output_high_scores() {
var _local1;
_local1 = 1;
while (_local1 <= 10) {
if (PHPLoadData["Score_" + _local1]) {
HighScores_1["Listing_" + _local1].Rank.text = _local1;
HighScores_1["Listing_" + _local1].Score.text = PHPLoadData["Score_" + _local1];
HighScores_1["Listing_" + _local1].User.text = PHPLoadData["User_" + _local1];
MC_show(HighScores_1["Listing_" + _local1]);
}
_local1++;
}
}
Global = new GlobalParent();
FPS = new FPSParent();
create_instances("Load", "LoadBar", 1);
MC_pos(LoadBar_1, 0, 0);
mouseObj = new Object();
Mouse.addListener(mouseObj);
mouseObj.onMouseUp = function () {
Process_Control_Input(0);
};
var PHPSendData = new LoadVars();
var PHPLoadData = new LoadVars();
PHPLoadData.onLoad = function (success) {
if (success) {
process_php_data(Global._phpRoutine);
}
};
Frame 2
MochiAd.showPreloaderAd({id:"bac1042052a2411d", res:"480x480"});
Frame 3
LoadBar_1.LoadText.text = ("Loading : " + int(Preloader_Status())) + "%";
if (Preloader_Status() < 100) {
gotoAndPlay (2);
}
Frame 5
MC_hide(LoadBar_1);
Global._state = "MainMenu";
SFX_shoot = new Sound();
SFX_shoot.attachSound("ShootSound");
SFX_wind = new Sound();
SFX_wind.attachSound("Wind");
SFX_explosion = new Sound();
SFX_explosion.attachSound("ExplosionSound");
SFX_Thunder_1 = new Sound();
SFX_Thunder_1.attachSound("ThunderSound_1");
Audio_Music = new Sound();
Audio_Music.attachSound("FatCat");
Audio_Music.start();
Audio_Music.onSoundComplete = function () {
Audio_Music.start();
};
create_instances("BallHolder", "ArrowHolder", 1);
create_instances("Moon", "Moon", 1);
create_instances("Tombstone", "Tombstone", 15);
create_instances("Ghoul", "Ghoul", 5);
create_instances("Arrow", "Arrow", 25);
create_instances("Cloud", "Cloud", 5);
create_instances("Raindrop", "Raindrop", 50);
init_ui();
reset_game();
MC_pos(Moon_1, 400, 100);
MC_scale(Moon_1, 50);
Frame 6
SFX_explosion.setVolume(10);
LightMask._alpha = random(10) + 30;
main_loop();
Frame 7
Global.Cur_Bonus = Global.Cur_Bonus - ((Global.Level * Global.Bonus) / 95);
if (Global.Cur_Bonus < 0) {
Global.Cur_Bonus = 0;
}
gotoAndPlay (6);
Symbol 196 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 197 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 198 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 199 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 200 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 201 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 202 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 203 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";
}
Symbol 204 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 205 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 36 MovieClip [WindSoundEffect] Frame 1
stop();
Symbol 45 MovieClip [GhostSymbol] Frame 24
this.gotoAndPlay(1);
Symbol 80 MovieClip [PumpkinSymbol] Frame 85
this.gotoAndPlay(1);
Symbol 91 MovieClip [PowSymbol] Frame 18
stop();
Symbol 92 MovieClip [GhoulSymbol] Frame 5
stop();
Symbol 95 MovieClip [ArrowSymbol] Frame 1
this.stop(1);
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 3
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 3
stop();
Instance of Symbol 171 MovieClip [LinkSymbol] "Message" in Symbol 172 MovieClip [MainMenuSymbol] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this._xscale = 115;
this._yscale = 115;
} else {
this._xscale = 100;
this._yscale = 100;
}
}
on (release) {
if (_root.Global.SpecialLinkURL != "") {
getURL (_root.Global.SpecialLinkURL, _blank);
}
}