Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Action script...
- // [onClipEvent of sprite 960 in frame 2]
- on (press)
- {
- if (true)
- {
- } // end if
- if (true)
- {
- }
- else
- {
- function ق(ȇ, , , , Ͽ, , , , , _parent, ֏, , bypassSAIntro, R)
- {
- } // end else if
- }
- // [onClipEvent of sprite 236 in frame 2]
- onClipEvent (enterFrame)
- {
- if (true)
- {
- } // end if
- if (true)
- {
- }
- else
- {
- function ق(ȇ, , , , Ͽ, , , , , , , , , )
- {
- } // end else if
- }
- // [onClipEvent of sprite 1364 in frame 2]
- on (press)
- {
- if (true)
- {
- } // end if
- if (true)
- {
- }
- else
- {
- function ق(ȇ, , , , Ͽ, , , , , , , , , )
- {
- } // end else if
- }
- // [Action in Frame 2]
- function titleFrame()
- {
- if (tutorialTimer != -1)
- {
- tutorialTimer = tutorialTimer + 33.330000;
- } // end if
- if (tutorialTimer > tutorialDelay)
- {
- startTutorial();
- } // end if
- if (!pingTestComplete)
- {
- windowPingMC.msgText0.text = windowPingMC.msgText1.text = getPingingText();
- } // end if
- } // End of the function
- function startTutorial()
- {
- tutorialTimer = -1;
- tutorialMC.gotoAndPlay(2);
- titleMenuMC._visible = titleVersionMC._visible = title00MC._visible = 0;
- } // End of the function
- function tutorialDone()
- {
- SFXSATheme.stop();
- SFXSATheme.start(5.650000);
- tutorialTimer = 0;
- tutorialMC.gotoAndStop(1);
- titleBG._visible = titleVersionMC._visible = title00MC._visible = 1;
- titleMenuMC._visible = pingTestComplete;
- windowPingMC._visible = !pingTestComplete;
- if (!pingTestComplete)
- {
- kkBXeJ("windowShow", windowPingMC);
- }
- else
- {
- kkBXeJ("windowShow", titleMenuMC);
- } // end else if
- } // End of the function
- function doneSAIntro()
- {
- if (autoQuickStart)
- {
- pressQuickStart();
- } // end if
- SAIntroMC._visible = 0;
- titleMenuMC._visible = pingTestComplete;
- windowPingMC._visible = !pingTestComplete;
- if (!pingTestComplete)
- {
- kkBXeJ("windowShow", windowPingMC);
- }
- else
- {
- kkBXeJ("windowShow", titleMenuMC);
- } // end else if
- if (specialOffer)
- {
- specialOfferMC._visible = true;
- specialOfferMC.headerText0.text = specialOfferMC.headerText1.text = logInText[16];
- specialOfferMC.msgText0.text = specialOfferMC.msgText1.text = logInText[13];
- specialOfferMC.imageMC.attachMovie(specialOfferImageMC, "specialOfferImageMC", 1);
- specialOfferMC.imageMC.specialOfferImageMC._xscale = specialOfferMC.imageMC.specialOfferImageMC._yscale = 450;
- }
- else
- {
- specialOfferMC._visible = false;
- } // end else if
- } // End of the function
- function bypassSAIntro(userInitiated)
- {
- if (!introBypassed)
- {
- introBypassed = true;
- if (userInitiated)
- {
- userInitiatedBypass = true;
- SFXSATheme.stop();
- SFXSATheme.start(5.650000);
- SAIntroMC.gotoAndPlay(171);
- } // end if
- titleBG._visible = titleVersionMC._visible = title00MC._visible = 1;
- tutorialTimer = 0;
- } // end if
- } // End of the function
- function pressQuickStart()
- {
- tutorialTimer = -1;
- titleMenuMC._visible = 0;
- player.kkfeoJ = getRandomName();
- player.col = generateColor(300, 600);
- player.hexColor = RGBToHex(player.col.rb, player.col.gb, player.col.bb, 100);
- player.vwFidm = 0;
- player.jhJkpo = 0;
- player.spinners = [];
- player.pets = [];
- profileSelectedSpinner = player.zqtPAS = player.spinners.length;
- player.spinners[player.spinners.length] = {num: 0, red0: player.col.rb, green0: player.col.gb, blue0: player.col.bb, red1: player.col.rb, green1: player.col.gb, blue1: player.col.bb, itemID: 0};
- initializeArenaVariables();
- for (var _loc1 = 0; _loc1 < serverName.length; ++_loc1)
- {
- serverConnectTrys[_loc1] = 0;
- } // end of for
- connectAction = "quickStart";
- connectToServer(serverNum, serverNum);
- } // End of the function
- function performPreLogIn()
- {
- if (serverType[serverNum] == "PREMIUM" && n ne uName)
- {
- selectRandomServerAndPort();
- } // end if
- clientBanned = false;
- banDate = 0;
- savePreferences();
- performLogIn();
- } // End of the function
- function onGameLoginAPIResponse(success)
- {
- } // End of the function
- function performLogIn()
- {
- tutorialTimer = -1;
- titleMenuMC._visible = 0;
- for (var _loc2 = 0; _loc2 < serverName.length; ++_loc2)
- {
- serverConnectTrys[_loc2] = 0;
- } // end of for
- errorAction = "login";
- connectAction = "authenticate";
- authenticateAction = "lobby";
- _root.attachMovie("window200LoginMsgMC", "window2MC", 200001, {_x: 175, _y: 199});
- window2MC.msgText0.text = window2MC.msgText1.text = logInText[6] + "\r" + "\r" + "(" + serverName[serverNum] + ")";
- connectToServer(serverNum, serverNum);
- } // End of the function
- function pressCancelLogIn()
- {
- connectAction = "disconnect";
- socket[serverNum].close();
- replyDataAPI.onLoad = null;
- delete replyDataAPI.onLoad;
- tutorialTimer = 0;
- window2MC.removeMovieClip();
- titleMenuMC._visible = 1;
- selectRandomServerAndPort();
- kkBXeJ("windowShow", titleMenuMC);
- } // End of the function
- function pressTutorial()
- {
- SFXSATheme.stop();
- startTutorial();
- } // End of the function
- function pressLogIn()
- {
- tutorialTimer = -1;
- titleMenuMC._visible = 0;
- if (domainName.indexOf("KONGREGATE.COM") != -1 && useKongregateAccount)
- {
- kongregatePressLogIn();
- }
- else
- {
- _root.attachMovie("window470LogInMC", "windowMC", 200000, {_x: 40, _y: 170});
- kkBXeJ("windowShow", windowMC);
- windowMC.usernameText.text = uName;
- var i = 0;
- while (i < 3)
- {
- var n = 0;
- while (n < 2)
- {
- str = "windowMC.h" + i;
- with (eval(str + "Text" + n))
- {
- text = logInText[i];
- } // End of with
- ++n;
- } // end while
- ++i;
- } // end while
- windowMC.h3Text0.text = windowMC.h3Text1.text = logInText[11];
- windowMC.BTNadvancedMC.textBox0.text = windowMC.BTNadvancedMC.textBox1.text = logInText[13];
- var sFontName = windowMC.tDummy.getTextFormat(0, 1).font;
- with (windowMC.checkBoxRemember)
- {
- fontSize = 8;
- color = "0xA1CAFF";
- setStyle("embedFonts", true);
- setStyle("fontFamily", sFontName);
- } // End of with
- Key.addListener(loginKeyListener);
- } // end else if
- } // End of the function
- function pressLogInOK(n, p)
- {
- showLogInTextBoxes(false);
- n = windowMC.usernameText.text.toLowerCase();
- p = windowMC.pass0Text.text;
- var _loc3 = new Date();
- if (n.length > 2)
- {
- if (isLegalAccountString(n))
- {
- if (containsNoFilteredLanguage(n))
- {
- if (isLegalAccountString(p))
- {
- if (p.length > 2)
- {
- if (!clientBanned || banDate != _loc3.getDate())
- {
- uName = n;
- uPass = p;
- rememberUserName = windowMC.checkBoxRemember.selected;
- windowMC.removeMovieClip();
- window2MC.removeMovieClip();
- Key.removeListener(loginKeyListener);
- APIGameLogin(uName, uPass, onGameLoginAPIResponse);
- performPreLogIn();
- }
- else
- {
- displayLogInMessage(logInText[10]);
- } // end else if
- }
- else
- {
- displayLogInMessage(accountText[9]);
- } // end else if
- }
- else
- {
- displayLogInMessage(accountText[7]);
- } // end else if
- }
- else
- {
- displayLogInMessage(accountText[12]);
- } // end else if
- }
- else
- {
- displayLogInMessage(accountText[8]);
- } // end else if
- }
- else
- {
- displayLogInMessage(accountText[11]);
- } // end else if
- } // End of the function
- function pressCreateAccountOK(n, p, p2, e, r, g, b)
- {
- showAccountTextBoxes(false);
- n = n.toLowerCase();
- if (n.length > 2)
- {
- if (isLegalAccountString(n))
- {
- if (containsNoFilteredLanguage(n))
- {
- if (isLegalAccountString(p))
- {
- if (p.length > 2)
- {
- if (p == p2)
- {
- uName = n;
- uPass = p;
- errorAction = "createAccount";
- var _loc5 = pad(r, 3).toString() + pad(g, 3).toString() + pad(b, 3).toString();
- var replyDataPHP = new LoadVars();
- var _loc2 = new LoadVars();
- _loc2.action = "create";
- _loc2.username = n;
- _loc2.userpass = p;
- _loc2.usercol = _loc5;
- _loc2.sendAndLoad(phpURL, replyDataPHP, "POST");
- replyDataPHP.onLoad = function (success)
- {
- if (success)
- {
- if (this.result == "success")
- {
- displayXGenAccountCreatedMessage();
- performLogIn();
- }
- else
- {
- displayCreateAccountMessage(accountText[14]);
- } // end else if
- }
- else
- {
- displayCreateAccountMessage(accountText[13]);
- } // end else if
- };
- }
- else
- {
- displayCreateAccountMessage(accountText[10]);
- } // end else if
- }
- else
- {
- displayCreateAccountMessage(accountText[9]);
- } // end else if
- }
- else
- {
- displayCreateAccountMessage(accountText[7]);
- } // end else if
- }
- else
- {
- displayCreateAccountMessage(accountText[12]);
- } // end else if
- }
- else
- {
- displayCreateAccountMessage(accountText[8]);
- } // end else if
- }
- else
- {
- displayCreateAccountMessage(accountText[11]);
- } // end else if
- } // End of the function
- function pressLogInClose()
- {
- tutorialTimer = 0;
- windowMC.removeMovieClip();
- Key.removeListener(loginKeyListener);
- titleMenuMC._visible = 1;
- kkBXeJ("windowShow", titleMenuMC);
- } // End of the function
- function pressCreateAccountClose()
- {
- tutorialTimer = 0;
- windowMC.removeMovieClip();
- titleMenuMC._visible = 1;
- kkBXeJ("windowShow", titleMenuMC);
- } // End of the function
- function pressCreateAccount()
- {
- tutorialTimer = -1;
- titleMenuMC._visible = 0;
- _root.attachMovie("window470CreateAccountMC", "windowMC", 200000);
- windowMC._x = 40;
- windowMC._y = 70;
- kkBXeJ("windowShow", windowMC);
- var i = 0;
- while (i < 6)
- {
- var n = 0;
- while (n < 2)
- {
- str = "windowMC.h" + i;
- with (eval(str + "Text" + n))
- {
- text = accountText[i];
- } // End of with
- ++n;
- } // end while
- ++i;
- } // end while
- windowMC.gxqKQk.fqBEfG.gotoAndStop(3);
- windowMC.gxqKQk.fqBEfG.legs.play();
- windowMC.crossHairMC._x = random(int(windowMC.colorPickerMC._width)) + windowMC.colorPickerMC._x;
- windowMC.crossHairMC._y = random(int(windowMC.colorPickerMC._height)) + windowMC.colorPickerMC._y;
- if (domainName.indexOf("KONGREGATE.COM") != -1)
- {
- kongregatePressCreateAccount();
- } // end if
- windowMC.eulaNoticeText0.text = windowMC.eulaNoticeText1.text = accountText[19];
- var replyDataEULA = new LoadVars();
- var sendDataEULA = new LoadVars();
- sendDataEULA.sendAndLoad(eulaURL, replyDataEULA, "POST");
- replyDataEULA.onLoad = function (success)
- {
- if (success)
- {
- windowMC.eulaText0.text = windowMC.eulaText1.text = this.eulatext;
- } // end if
- };
- } // End of the function
- function showAccountTextBoxes(b)
- {
- windowMC.usernameText._visible = windowMC.pass0Text._visible = windowMC.pass1Text._visible = windowMC.emailText._visible = windowMC.colorPickerMC._visible = windowMC.btnXMC._visible = windowMC.btnOKMC._visible = b;
- } // End of the function
- function showLogInTextBoxes(b)
- {
- windowMC.usernameText._visible = windowMC.pass0Text._visible = windowMC.btnXMC._visible = windowMC.btnOKMC._visible = b;
- } // End of the function
- function displayCreateAccountMessage(msg)
- {
- _root.attachMovie("window304CreateAccountMessageMC", "window2MC", 200001, {_x: 123, _y: 10});
- kkBXeJ("windowShow", window2MC);
- window2MC.msgText0.text = window2MC.msgText1.text = msg;
- } // End of the function
- function displayLogInMessage(msg)
- {
- _root.attachMovie("window304LogInMessageMC", "window2MC", 200001, {_x: 123, _y: 10});
- kkBXeJ("windowShow", window2MC);
- window2MC.msgText0.text = window2MC.msgText1.text = msg;
- } // End of the function
- function closeCreateAccountMessage()
- {
- showAccountTextBoxes(true);
- } // End of the function
- function closeLogInMessage()
- {
- showLogInTextBoxes(true);
- } // End of the function
- function pressCloseSpecialOffer()
- {
- specialOfferMC._visible = false;
- specialOffer = false;
- } // End of the function
- function pressCredits()
- {
- if (windowMC == null && window2MC == null)
- {
- SFXSATheme.stop();
- windowMC.removeMovieClip();
- window2MC.removeMovieClip();
- Key.removeListener(loginKeyListener);
- gotoAndStop("creditsFrame");
- } // end if
- } // End of the function
- stop ();
- setProperty("", _quality, "BEST");
- stopAllSounds ();
- if (!isCurrentVersion)
- {
- gotoFrame = "deadEnd";
- msgText = versionNotCurrentText;
- gotoAndStop("preReturnFrame");
- }
- else
- {
- checkForClientUpdate();
- } // end else if
- titleVersionMC.versionText.text = titleVersionMC.versionText0.text = titleVersionMC.versionText1.text = titleVersionMC.versionText2.text = titleVersionMC.versionText3.text = titleVersionMC.reflectionMC.versionText.text = titleVersionMC.reflectionMC.versionText0.text = titleVersionMC.reflectionMC.versionText1.text = titleVersionMC.reflectionMC.versionText2.text = titleVersionMC.reflectionMC.versionText3.text = "Modded by 92Garfield" + "";
- titleBG._visible = titleMenuMC._visible = windowPingMC._visible = titleVersionMC._visible = title00MC._visible = instructionsMC._visible = loadGameMC._visible = 0;
- if (!specialOffer)
- {
- specialOfferMC._visible = false;
- } // end if
- var introBypassed = false;
- var userInitiatedBypass = false;
- gameArea = 0;
- if (domainName.indexOf("KONGREGATE.COM") != -1)
- {
- titleMenuMC.createAccountBTNMC._visible = false;
- var sFontName = tDummy.getTextFormat(0, 1).font;
- with (titleMenuMC.checkBoxLoginKongregate)
- {
- fontSize = 8;
- color = "0xA1CAFF";
- setStyle("embedFonts", true);
- setStyle("fontFamily", sFontName);
- } // End of with
- }
- else
- {
- titleMenuMC.checkBoxLoginKongregate._visible = false;
- } // end else if
- if (skipIntro)
- {
- bypassSAIntro(true);
- }
- else
- {
- SFXSATheme.stop();
- SFXSATheme.start();
- } // end else if
- if (titleAction == "quickStart")
- {
- titleAction = null;
- pressQuickStart();
- SAIntroMC._visible = 0;
- SFXSATheme.stop();
- } // end if
- loginKeyListener = new Object();
- loginKeyListener.onKeyDown = function ()
- {
- pressedKey = Key.getAscii();
- if (pressedKey == 13)
- {
- pressLogInOK();
- } // end if
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement