Section 1
//AKey_75 (battleofthebands_fla.AKey_75)
package battleofthebands_fla {
import flash.display.*;
public dynamic class AKey_75 extends MovieClip {
public function AKey_75(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 2
//atmosphere_82 (battleofthebands_fla.atmosphere_82)
package battleofthebands_fla {
import flash.display.*;
public dynamic class atmosphere_82 extends MovieClip {
public var atmosBar_mc:MovieClip;
}
}//package battleofthebands_fla
Section 3
//BandMember1_39 (battleofthebands_fla.BandMember1_39)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember1_39 extends MovieClip {
public var bm1_btn:SimpleButton;
public function BandMember1_39(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 4
//BandMember2_41 (battleofthebands_fla.BandMember2_41)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember2_41 extends MovieClip {
public var bm2_btn:SimpleButton;
public function BandMember2_41(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 5
//BandMember3_43 (battleofthebands_fla.BandMember3_43)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember3_43 extends MovieClip {
public var bm3_btn:SimpleButton;
public function BandMember3_43(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 6
//BandMember4_46 (battleofthebands_fla.BandMember4_46)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember4_46 extends MovieClip {
public var bm4_btn:SimpleButton;
public function BandMember4_46(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 7
//BandMember5_47 (battleofthebands_fla.BandMember5_47)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember5_47 extends MovieClip {
public var bm5_btn:SimpleButton;
public function BandMember5_47(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 8
//BandMember6_48 (battleofthebands_fla.BandMember6_48)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember6_48 extends MovieClip {
public var bm6_btn:SimpleButton;
public function BandMember6_48(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 9
//BandMember7_50 (battleofthebands_fla.BandMember7_50)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember7_50 extends MovieClip {
public var bm7_btn:SimpleButton;
public function BandMember7_50(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 10
//BandMember8_51 (battleofthebands_fla.BandMember8_51)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember8_51 extends MovieClip {
public var bm8_btn:SimpleButton;
public function BandMember8_51(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 11
//BandMember9_52 (battleofthebands_fla.BandMember9_52)
package battleofthebands_fla {
import flash.display.*;
public dynamic class BandMember9_52 extends MovieClip {
public var bm9_btn:SimpleButton;
public function BandMember9_52(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 12
//burst_89 (battleofthebands_fla.burst_89)
package battleofthebands_fla {
import flash.display.*;
public dynamic class burst_89 extends MovieClip {
public function burst_89(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 13
//DKey_77 (battleofthebands_fla.DKey_77)
package battleofthebands_fla {
import flash.display.*;
public dynamic class DKey_77 extends MovieClip {
public function DKey_77(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 14
//EASY_BTN_29 (battleofthebands_fla.EASY_BTN_29)
package battleofthebands_fla {
import flash.display.*;
public dynamic class EASY_BTN_29 extends MovieClip {
public var easy_btn:SimpleButton;
public function EASY_BTN_29(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 15
//gameBassChar_11 (battleofthebands_fla.gameBassChar_11)
package battleofthebands_fla {
import flash.display.*;
public dynamic class gameBassChar_11 extends MovieClip {
public function gameBassChar_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 16
//gameDrumChar_10 (battleofthebands_fla.gameDrumChar_10)
package battleofthebands_fla {
import flash.display.*;
public dynamic class gameDrumChar_10 extends MovieClip {
public function gameDrumChar_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 17
//gameLeadChar_12 (battleofthebands_fla.gameLeadChar_12)
package battleofthebands_fla {
import flash.display.*;
public dynamic class gameLeadChar_12 extends MovieClip {
public function gameLeadChar_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 18
//JKey_79 (battleofthebands_fla.JKey_79)
package battleofthebands_fla {
import flash.display.*;
public dynamic class JKey_79 extends MovieClip {
public function JKey_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 19
//KKey_80 (battleofthebands_fla.KKey_80)
package battleofthebands_fla {
import flash.display.*;
public dynamic class KKey_80 extends MovieClip {
public function KKey_80(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 20
//kokoIntro_90 (battleofthebands_fla.kokoIntro_90)
package battleofthebands_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class kokoIntro_90 extends MovieClip {
public var koko_btn:SimpleButton;
public function kokoIntro_90(){
addFrameScript(60, frame61, 116, frame117);
}
public function kokoDigital(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.kokodigital.co.uk"), "_blank");
}
function frame117(){
MovieClip(parent).play();
stop();
}
function frame61(){
koko_btn.addEventListener(MouseEvent.MOUSE_UP, kokoDigital);
}
}
}//package battleofthebands_fla
Section 21
//KokoLeaf_94 (battleofthebands_fla.KokoLeaf_94)
package battleofthebands_fla {
import flash.display.*;
public dynamic class KokoLeaf_94 extends MovieClip {
public function KokoLeaf_94(){
addFrameScript(77, frame78);
}
function frame78(){
stop();
}
}
}//package battleofthebands_fla
Section 22
//KokoLeafUp_91 (battleofthebands_fla.KokoLeafUp_91)
package battleofthebands_fla {
import flash.display.*;
public dynamic class KokoLeafUp_91 extends MovieClip {
public function KokoLeafUp_91(){
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package battleofthebands_fla
Section 23
//largeChar_28 (battleofthebands_fla.largeChar_28)
package battleofthebands_fla {
import flash.display.*;
public dynamic class largeChar_28 extends MovieClip {
public function largeChar_28(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 24
//LKey_81 (battleofthebands_fla.LKey_81)
package battleofthebands_fla {
import flash.display.*;
public dynamic class LKey_81 extends MovieClip {
public function LKey_81(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 25
//MainTimeline (battleofthebands_fla.MainTimeline)
package battleofthebands_fla {
import flash.display.*;
import flash.events.*;
import com.memecounter.*;
import koko.*;
import flash.net.*;
import game.*;
import flash.system.*;
public dynamic class MainTimeline extends MovieClip {
public var loaderBar_mc:MovieClip;
public var request:URLRequest;
public var target_root:SetStage;
public var gameEngine:GameEngine;
public var myLoader:Loader;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 14, frame15);
}
function frame3(){
stop();
}
function frame15(){
target_root = new SetStage(this);
addChild(target_root);
gameEngine = new GameEngine();
stage.focus = target_root.stage;
stop();
}
function frame1(){
MochiBot.track(this, "6f617d24");
Tracker.init(421, root);
request = new URLRequest("http://www.viralchart.com/tracker.php?media=808&f=F");
request.method = URLRequestMethod.GET;
sendToURL(request);
myLoader = new Loader();
myLoader.contentLoaderInfo.addEventListener(Event.OPEN, showPreloader);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, showLoadResult);
addEventListener(Event.ENTER_FRAME, preloader);
Security.loadPolicyFile("http://www.viral-game.co.uk/crossdomain.xml");
Security.loadPolicyFile("http://battleofthebands.viral-game.co.uk/crossdomain.xml");
Security.allowDomain("*");
stop();
}
public function preloader(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:int;
_local2 = stage.loaderInfo.bytesTotal;
_local3 = stage.loaderInfo.bytesLoaded;
_local4 = (_local3 * (400 / _local2));
loaderBar_mc.gotoAndStop(Math.ceil(_local4));
if (_local4 >= 400){
removeEventListener(Event.ENTER_FRAME, preloader);
gotoAndPlay(2);
};
}
public function showLoadResult(_arg1:Event){
}
public function showPreloader(_arg1:Event){
stop();
}
}
}//package battleofthebands_fla
Section 26
//Medium_btn_33 (battleofthebands_fla.Medium_btn_33)
package battleofthebands_fla {
import flash.display.*;
public dynamic class Medium_btn_33 extends MovieClip {
public var medium_btn:SimpleButton;
public function Medium_btn_33(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 27
//mulitply_88 (battleofthebands_fla.mulitply_88)
package battleofthebands_fla {
import flash.display.*;
public dynamic class mulitply_88 extends MovieClip {
public function mulitply_88(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 28
//multiplier_86 (battleofthebands_fla.multiplier_86)
package battleofthebands_fla {
import flash.display.*;
import flash.text.*;
public dynamic class multiplier_86 extends MovieClip {
public var multiply_mc:MovieClip;
public var score:TextField;
}
}//package battleofthebands_fla
Section 29
//selectBass_38 (battleofthebands_fla.selectBass_38)
package battleofthebands_fla {
import flash.display.*;
public dynamic class selectBass_38 extends MovieClip {
public function selectBass_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 30
//selectDrummer_45 (battleofthebands_fla.selectDrummer_45)
package battleofthebands_fla {
import flash.display.*;
public dynamic class selectDrummer_45 extends MovieClip {
public function selectDrummer_45(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 31
//selectLEad_49 (battleofthebands_fla.selectLEad_49)
package battleofthebands_fla {
import flash.display.*;
public dynamic class selectLEad_49 extends MovieClip {
public function selectLEad_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 32
//SKey_76 (battleofthebands_fla.SKey_76)
package battleofthebands_fla {
import flash.display.*;
public dynamic class SKey_76 extends MovieClip {
public function SKey_76(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 33
//SpaceKey_78 (battleofthebands_fla.SpaceKey_78)
package battleofthebands_fla {
import flash.display.*;
public dynamic class SpaceKey_78 extends MovieClip {
public function SpaceKey_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 34
//spriteHolder_4 (battleofthebands_fla.spriteHolder_4)
package battleofthebands_fla {
import flash.display.*;
public dynamic class spriteHolder_4 extends MovieClip {
public function spriteHolder_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package battleofthebands_fla
Section 35
//SuperHArd_btn_34 (battleofthebands_fla.SuperHArd_btn_34)
package battleofthebands_fla {
import flash.display.*;
public dynamic class SuperHArd_btn_34 extends MovieClip {
public var hard_btn:SimpleButton;
public function SuperHArd_btn_34(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package battleofthebands_fla
Section 36
//MD5 (com.adobe.crypto.MD5)
package com.adobe.crypto {
import com.adobe.utils.*;
public class MD5 {
private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function createBlocks(_arg1:String):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = new Array();
_local3 = (_arg1.length * 8);
_local4 = 0xFF;
_local5 = 0;
while (_local5 < _local3) {
_local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32)));
_local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3;
return (_local2);
}
private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private static function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private static function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private static function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int;
_local9 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hash(_arg1:String):String{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:int;
_local2 = 1732584193;
_local3 = -271733879;
_local4 = -1732584194;
_local5 = 271733878;
_local10 = createBlocks(_arg1);
_local11 = _local10.length;
_local12 = 0;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
}
}//package com.adobe.crypto
Section 37
//IntUtil (com.adobe.utils.IntUtil)
package com.adobe.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local3:String;
var _local4:int;
var _local5:int;
_local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int;
_local3 = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.adobe.utils
Section 38
//Tracker (com.memecounter.Tracker)
package com.memecounter {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class Tracker {
private static var ori_dom:String;
private static var lurl:String;
private static var _isReady:Boolean = false;
public static var a:uint = 0;
public static var root:DisplayObject;
public static var c:uint;
public static var d:String = "";
private static var _isInited:Boolean = false;
public static var fpv:String = "";
private static var l:Loader;
private static var tracker:MovieClip;
public static var da:Array = ["distralytics.com", "distralytics.co.uk"];
private static function loadError(_arg1:Event):void{
a++;
lc();
}
public static function init(_arg1:uint, _arg2:DisplayObject):void{
var _local3:uint;
if (!_isInited){
_isInited = true;
c = _arg1;
root = _arg2;
_local3 = 0;
while (_local3 < da.length) {
Security.allowDomain(da[_local3], ((c + ".c.") + da[_local3]), ("*." + da[_local3]));
_local3++;
};
ori_dom = (root.loaderInfo.parameters.hasOwnProperty("ori_dom")) ? root.loaderInfo.parameters.ori_dom : "";
d = ((ori_dom)!="") ? ori_dom : ((root.loaderInfo.loaderURL.split("/")[0].indexOf("http"))==-1) ? "Local" : root.loaderInfo.loaderURL.split("/")[2].split("?")[0];
fpv = Capabilities.version.split(" ")[1].split(",")[0];
lurl = ((((((((("/control/tracking/trackerAS3.swf" + "?c=") + c) + "&r=") + Math.floor((Math.random() * 10000000000))) + "&d=") + d) + "&p=") + fpv) + "&as=3");
l = new Loader();
l.contentLoaderInfo.addEventListener(Event.INIT, loadComplete);
l.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
lc();
};
}
public static function get isReady():Boolean{
return (isReady);
}
public static function kvClick(_arg1:uint):void{
if (_isReady){
tracker.kvClick(_arg1);
};
}
public static function kvCountry():String{
if (_isReady){
return (tracker.kvCountry());
};
return ("");
}
public static function kvEvent(_arg1:uint):void{
if (_isReady){
tracker.kvEvent(_arg1);
};
}
private static function lc():void{
var _local1:String;
_local1 = (((("http://" + c) + ".c.") + da[(a % da.length)]) + lurl);
Security.allowDomain(_local1);
l.load(new URLRequest(_local1));
}
private static function loadComplete(_arg1:Event):void{
tracker = _arg1.target.content;
tracker.init(getDefinitionByName("com.memecounter.Tracker"), root);
_isReady = true;
}
}
}//package com.memecounter
Section 39
//Arrow (game.Arrow)
package game {
import flash.display.*;
import flash.events.*;
import koko.*;
public class Arrow extends MovieClip {
private var _distPerSecond:int;// = 120
private var _focalLength:int;// = 100
private var _tba:TimeBasedAnimation;
private var _origin;
private var _speed;
private var _ez;
private var _ex;
private var _ey;
private var _keyVal:int;
private var _index:int;// = 0
private var _rn:Array;
private var _khr:Array;
public function Arrow(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
_distPerSecond = 120;
_index = 0;
_tba = new TimeBasedAnimation();
_origin = new Object();
_focalLength = 100;
_khr = GameEngine._keyHitReady;
_rn = GameEngine._removeNote;
super();
this.x = -40;
this.y = -40;
_origin.x = 275;
_origin.y = 140;
gotoAndStop(_arg1);
_ex = _arg3;
_ey = _arg4;
_ez = _arg6;
_speed = _arg5;
_keyVal = _arg1;
this.addEventListener(Event.ENTER_FRAME, controlSprite);
}
public function controlSprite(_arg1:Event){
var _local2:int;
var _local3:*;
var _local4:*;
var _local5:*;
_local3 = _tba.returnTimeDiff();
_ez = (_ez - (_speed * _local3));
_local4 = (_focalLength / (_focalLength + _ez));
this.y = (_origin.y + (_ey * _local4));
if (_ez >= 0){
this.x = (_origin.x + (_ex * _local4));
this.scaleX = (this.scaleY = _local4);
};
if (_ez < 60){
_khr[(_keyVal - 1)] = true;
if (_rn[(_keyVal - 1)]){
_local5 = Math.ceil((GameEngine._multiplierInc / 5));
if (_local5 > 5){
_local5 = 5;
};
if (_local5 < 1){
_local5 = 1;
};
if (GameEngine._atmosphere < 200){
GameEngine._atmosphere = (GameEngine._atmosphere + 5);
};
switch (GameEngine._currentTrack){
case 1:
case 4:
case 7:
GameEngine._levelPoints = (GameEngine._levelPoints + (75 * _local5));
break;
case 2:
case 5:
case 8:
GameEngine._levelPoints = (GameEngine._levelPoints + (100 * _local5));
break;
case 3:
case 6:
case 9:
GameEngine._levelPoints = (GameEngine._levelPoints + (175 * _local5));
break;
};
if (GameEngine._multiplierInc < 24){
GameEngine._multiplierInc++;
};
GameEngine._actualGame.score_mc.score.text = GameEngine._levelPoints;
removeArrow();
};
};
if (_ez <= -30){
_khr[(_keyVal - 1)] = false;
};
if (GameEngine._gameOver){
removeArrow();
};
if (_ez <= -70){
GameEngine._multiplierInc = (GameEngine._multiplierInc - 5);
if (GameEngine._multiplierInc < 0){
GameEngine._multiplierInc = 0;
};
GameEngine._multiplier = (GameEngine._multiplier - 1);
if (GameEngine._atmosphere > 0){
GameEngine._atmosphere = (GameEngine._atmosphere - 10);
};
removeArrow();
};
}
public function removeArrow(){
var _local1:int;
GameEngine._notesEnded++;
_rn[(_keyVal - 1)] = false;
_khr[(_keyVal - 1)] = false;
_local1 = parent.getChildIndex(this);
parent.removeChildAt(_local1);
this.removeEventListener(Event.ENTER_FRAME, controlSprite);
}
}
}//package game
Section 40
//GameEngine (game.GameEngine)
package game {
import flash.display.*;
import flash.events.*;
import com.memecounter.*;
import com.adobe.crypto.*;
import koko.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
public class GameEngine extends MovieClip {
private var _rightArrow;
private var _downArrow:Boolean;// = false
private var _gameArray;
private var _menu;
private var _timer:Timer;
private var _highscoresArray:Array;
private var _multiplier:int;// = 0
private var _seq:TextField;
private var _temp:int;// = 2
private var _arrowGraphic;
private var _leftArrow;
private var _MD5;
private var _startTime:uint;
private var _keys:AnyKeyPress;
private var _countFrames:int;// = 0
private var _upArrow;
public static var _cd = 0;
private static var _target_root = SetStage.root_target;
public static var _loadXML;
public static var _sequencePos:int = 0;
public static var _menuMain = new menu_main_menu();
public static var _notesEnded = 0;
public static var _sequence:Array = new Array();
public static var _timePerBeat:int;
public static var _gameOuter = new gameOuter();
public static var _currentDelayPos:int;
public static var _bpm:int;
public static var _leadChar:int = 0;
public static var _bassChar:int = 1;
public static var _removeNote:Array = new Array(false, false, false, false, false);
public static var _currentTrack:int = 1;
public static var _gameComplete = new menu_final();
public static var _actualGame = new actualGame();
public static var _howToPlay = new menu_htp();
public static var _gameOver:Boolean = false;
public static var _speed = 0;
public static var _multiplierInc:int = 0;
protected static var _timerGame:Timer = new Timer(1, 0);
protected static var _timeOffset = getTimer();
public static var _multiplier:int = 1;
public static var _trackSelect = new menu_select_track();
public static var _points1:int = 0;
public static var _points2:int = 0;
public static var _points3:int = 0;
public static var _drumChar:int = 0;
public static var _cookie:SharedObject = SharedObject.getLocal("botbcookiedata");
public static var _failLevel = new menu_level_failed();
public static var _totalPoints:int = 0;
public static var _sendToFriend = new menu_send_to_friend();
public static var _charSelect = new menu_select_member();
public static var _keyHitReady:Array = new Array(false, false, false, false, false);
public static var _streak:int = 0;
public static var _highscoresArray:Array;
public static var _trans = new transition1();
public static var _largeChar:int = 1;
public static var _atmosphere = 200;
public static var _BPMDist:int;
public static var _levelPoints:int = 0;
public static var _currentCharSelect:int = 1;
public static var _beatStart:int;
public static var _startDelay:int;
public static var _levelOver = new menu_level_over();
public static var _token;
protected static var _tba = new TimeBasedAnimation();
protected static var _trackFPS = new TrackFPS();
public function GameEngine():void{
var _local1:URLVariables;
_menu = new Menus();
_seq = new TextField();
_keys = new AnyKeyPress();
_downArrow = false;
_startTime = getTimer();
_countFrames = 0;
_gameArray = new Array();
_timer = new Timer(_timePerBeat, 0);
_temp = 2;
_multiplier = 0;
_MD5 = new MD5();
super();
GameSounds.startMenuMusic();
_local1 = new URLVariables();
_local1.action = "token_generate";
sendData("http://battleofthebands.viral-game.co.uk/data.php", _local1, loadToken);
_seq.y = 40;
_target_root.addChild(this);
_timerGame.addEventListener(TimerEvent.TIMER, RunGame);
_menuMain.x = 27;
_menuMain.y = 56;
addChild(_menuMain);
addChild(_charSelect);
addChild(_trackSelect);
addChild(_actualGame);
addChild(_failLevel);
addChild(_levelOver);
addChild(_gameComplete);
addChild(_howToPlay);
addChild(_sendToFriend);
addChild(_trans);
addChild(_gameOuter);
_menuMain.gotoAndStop(2);
_menu.buildMenu();
}
public function addNote3():void{
_arrowGraphic = new Arrow(3, 165, -70, 200, _speed, 1500);
_actualGame.addChild(_arrowGraphic);
}
public function missNote(){
_streak = (_streak - 5);
if (_streak < 0){
_streak = 0;
};
}
public function checkKeys(_arg1:TimerEvent){
if (((_leftArrow) && (_rightArrow))){
_temp++;
};
}
public function playSequence(){
var _local1:*;
if (_currentDelayPos >= _startDelay){
if (_sequencePos < _sequence.length){
_local1 = _sequence[_sequencePos];
switch (_local1){
case 0:
break;
case 1:
addNote1();
break;
case 2:
addNote2();
break;
case 3:
addNote3();
break;
case 4:
addNote4();
break;
case 5:
addNote5();
break;
case 6:
addNote6();
break;
case 7:
addNote7();
break;
case 8:
addNote1();
addNote7();
break;
case 9:
addNote3();
addNote5();
break;
case 10:
addNote1();
addNote7();
break;
};
};
_sequencePos++;
_seq.text = _sequencePos.toString();
} else {
_currentDelayPos++;
};
if (_sequencePos == _beatStart){
GameSounds.playSound(_currentTrack);
};
}
public function beatTimer():void{
if ((getTimer() - _timeOffset) > _timePerBeat){
playSequence();
_timeOffset = (_timeOffset + _timePerBeat);
};
}
public function addNote2():void{
_arrowGraphic = new Arrow(2, 165, -140, 200, _speed, 1500);
_actualGame.addChild(_arrowGraphic);
}
public function addNote6():void{
_arrowGraphic = new Arrow(6, 165, 140, 200, _speed, 1500);
_actualGame.addChild(_arrowGraphic);
}
public function addNote5():void{
_arrowGraphic = new Arrow(5, 165, 70, 200, _speed, 1500);
_actualGame.addChild(_arrowGraphic);
}
public function addGameObject(_arg1){
var _local2:*;
_local2 = new Object();
_local2.whatArrow = _arg1;
_local2.frames = _countFrames;
_local2.timer = (getTimer() - _startTime);
_gameArray.push(_local2);
}
public function addNote7():void{
_arrowGraphic = new Arrow(7, 165, 205, 200, _speed, 1500);
_actualGame.addChild(_arrowGraphic);
}
public function addNote4():void{
_arrowGraphic = new Arrow(4, 165, 0, 200, _speed, 1500);
_actualGame.addChild(_arrowGraphic);
}
public function addNote1():void{
_arrowGraphic = new Arrow(1, 165, -205, 200, _speed, 1500);
_actualGame.addChild(_arrowGraphic);
}
public function returnToken():String{
return (_token);
}
public function loadToken(_arg1:Event):void{
var _local2:URLLoader;
var _local3:URLVariables;
var _local4:String;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local2 = URLLoader(_arg1.target);
_local3 = new URLVariables(_local2.data);
_token = _local3.token;
_local4 = _token.substr(28, 8);
_local5 = MD5.hash(_local4);
_local6 = Math.ceil((Math.random() * 1000000));
_local7 = Math.ceil((Math.random() * 1000000));
_local8 = Math.ceil((Math.random() * 1000000));
_token = (((MD5.hash(_local6) + MD5.hash(_local7)) + _local5) + MD5.hash(_local8));
}
public function multiplier(){
if (_actualGame.atmosphere_mc != null){
if ((((_atmosphere <= 0)) && (!(_gameOver)))){
_atmosphere = 0;
endGame();
GameSounds.playSound(11);
_menu.transitionBetweenMenus(_failLevel);
_menu.failLevel();
};
if ((((_sequencePos > ((_sequence.length + _BPMDist) + 2))) && (!(_gameOver)))){
endGame();
_menu.transitionBetweenMenus(_levelOver);
_menu.endLevel();
};
_actualGame.atmosphere_mc.atmosBar_mc.width = (((254 / 200) * _atmosphere) + 50);
if (_multiplier < 6){
_multiplier = Math.ceil((_multiplierInc / 5));
if (_multiplierInc == 0){
_actualGame.score_mc.multiply_mc.gotoAndStop(1);
} else {
_actualGame.score_mc.multiply_mc.gotoAndStop(_multiplier);
};
};
};
}
public function TrapKeys():void{
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = _keys.returnKeyClick();
_local2 = 0;
while (_local2 < _local1.length) {
_local3 = _actualGame;
_local3.key1_mc.gotoAndStop(1);
_local3.key2_mc.gotoAndStop(1);
_local3.key3_mc.gotoAndStop(1);
_local3.key4_mc.gotoAndStop(1);
_local3.key5_mc.gotoAndStop(1);
_local3.key6_mc.gotoAndStop(1);
_local3.key7_mc.gotoAndStop(1);
switch (_local1[_local2]){
case 65:
_local3.key1_mc.gotoAndPlay(2);
if (_keyHitReady[0]){
_removeNote[0] = true;
_local3.fire1_mc.gotoAndPlay(5);
} else {
if (_local3.fire1_mc.currentFrame <= 2){
_multiplierInc = 0;
_atmosphere = (_atmosphere - 5);
_local3.fire1_mc.gotoAndPlay(2);
};
};
break;
case 83:
_local3.key2_mc.gotoAndPlay(2);
if (_keyHitReady[1]){
_removeNote[1] = true;
_local3.fire2_mc.gotoAndPlay(5);
_streak++;
} else {
if (_local3.fire2_mc.currentFrame <= 2){
_multiplierInc = 0;
_atmosphere = (_atmosphere - 5);
_local3.fire2_mc.gotoAndPlay(2);
};
};
break;
case 68:
_local3.key3_mc.gotoAndPlay(2);
if (_keyHitReady[2]){
_removeNote[2] = true;
_local3.fire3_mc.gotoAndPlay(5);
_streak++;
} else {
if (_local3.fire3_mc.currentFrame <= 2){
_multiplierInc = 0;
_atmosphere = (_atmosphere - 5);
_local3.fire3_mc.gotoAndPlay(2);
};
};
break;
case 32:
_local3.key4_mc.gotoAndPlay(2);
if (_keyHitReady[3]){
_removeNote[3] = true;
_local3.fire4_mc.gotoAndPlay(5);
_streak++;
} else {
if (_local3.fire4_mc.currentFrame <= 2){
_multiplierInc = 0;
_atmosphere = (_atmosphere - 5);
_local3.fire4_mc.gotoAndPlay(2);
};
};
break;
case 74:
_local3.key5_mc.gotoAndPlay(2);
if (_keyHitReady[4]){
_removeNote[4] = true;
_local3.fire5_mc.gotoAndPlay(5);
_streak++;
} else {
if (_local3.fire5_mc.currentFrame <= 2){
_multiplierInc = 0;
_atmosphere = (_atmosphere - 5);
_local3.fire5_mc.gotoAndPlay(2);
};
};
break;
case 75:
_local3.key6_mc.gotoAndPlay(2);
if (_keyHitReady[5]){
_removeNote[5] = true;
_local3.fire6_mc.gotoAndPlay(5);
_streak++;
} else {
if (_local3.fire6_mc.currentFrame <= 2){
_multiplierInc = 0;
_atmosphere = (_atmosphere - 5);
_local3.fire6_mc.gotoAndPlay(2);
};
};
break;
case 76:
_local3.key7_mc.gotoAndPlay(2);
if (_keyHitReady[6]){
_removeNote[6] = true;
_local3.fire7_mc.gotoAndPlay(5);
_streak++;
} else {
if (_local3.fire7_mc.currentFrame <= 2){
_multiplierInc = 0;
_atmosphere = (_atmosphere - 5);
_local3.fire7_mc.gotoAndPlay(2);
};
};
break;
};
_keys.removeKeyDownClick(_local1[_local2]);
_local2++;
};
}
public function RunGame(_arg1:Event):void{
if (!_gameOver){
_countFrames++;
TrapKeys();
beatTimer();
};
multiplier();
}
public static function setSpeed(){
var _local1:*;
_timePerBeat = Math.ceil((60000 / _bpm));
_local1 = (1500 / (_timePerBeat * _BPMDist));
_speed = _local1;
}
public static function loadScoreboard(){
_gameComplete.gotoAndStop(5);
_cd = 0;
_target_root.addEventListener(Event.ENTER_FRAME, showScores);
}
public static function returnMultiplier():int{
return (_multiplier);
}
public static function beginGame(){
buildLevels();
setSpeed();
_tba.startTimer();
_timeOffset = getTimer();
_timerGame.start();
GameSounds.stopMusic();
GameSounds.playSound(10);
_levelPoints = 0;
_atmosphere = 200;
_actualGame.score_mc.multiply_mc.gotoAndStop(1);
}
public static function playTrackPreview(){
GameSounds.stopMusic();
GameSounds.playSoundOffset(_currentTrack);
}
public static function loadScoreboard1(){
_gameComplete.gotoAndStop(6);
_cd = 0;
_target_root.addEventListener(Event.ENTER_FRAME, showScores);
}
public static function nextLevel(){
_currentCharSelect++;
switch (_currentCharSelect){
case 2:
_drumChar = 1;
_largeChar = 4;
break;
case 3:
_leadChar = 1;
_largeChar = 7;
break;
};
}
public static function sendData(_arg1:String, _arg2, _arg3):void{
var _local4:URLRequest;
var _local5:URLLoader;
_local4 = new URLRequest(_arg1);
_local5 = new URLLoader();
_local4.data = _arg2;
_local4.method = URLRequestMethod.POST;
_local5.addEventListener(Event.COMPLETE, _arg3);
_local5.load(_local4);
}
public static function submitScore(_arg1, _arg2, _arg3){
var _local4:URLVariables;
_local4 = new URLVariables();
_local4.action = "scores_submit";
_local4.token = _token;
_local4.player_name = _arg2;
_local4.player_email = _arg3;
_local4.band_name = _arg1;
_local4.player_score = _totalPoints;
sendData("http://battleofthebands.viral-game.co.uk/data.php", _local4, scoreSubmitted);
}
public static function setupChars(){
}
public static function endGame(){
_gameOver = true;
_timerGame.stop();
GameSounds.stopMusic();
GameSounds.startMenuMusic();
GameSounds.playSound(10);
}
public static function loadXML(_arg1){
var _local2:*;
_highscoresArray = new Array();
_loadXML = new parseXMLDoc();
_loadXML.pXML(((_arg1 + "&rand=") + Math.ceil((Math.random() * 10000))));
_target_root.addEventListener(Event.ENTER_FRAME, checkLoadedXML);
_local2 = 1;
while (_local2 <= 10) {
_gameComplete[("band" + _local2)].text = "";
_gameComplete[("score" + _local2)].text = "";
_local2++;
};
}
public static function resetLevel(){
_multiplierInc = 0;
_multiplier = 1;
_sequencePos = 0;
_atmosphere = 200;
_notesEnded = 0;
_streak = 0;
_gameOver = false;
}
public static function buildLevels(){
switch (_currentTrack){
case 1:
Tracker.kvEvent(928);
Tracker.kvEvent(936);
_sequence = null;
_sequence = new Array(0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 1, 0, 0, 5, 0, 1, 0, 2, 0, 1, 0, 5, 0, 0, 0, 8, 8, 0, 0, 10, 0, 0, 0, 9, 0, 1, 2, 3, 0, 5, 6, 7, 0, 1, 2, 3, 0, 5, 6, 7, 0, 0, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 5, 0, 0, 0, 4, 4, 4, 0, 10, 10, 10, 0, 9, 9, 9, 0, 8, 8, 8, 0, 4, 4, 4, 0, 10, 10, 10, 0, 9, 9, 9, 0, 8, 8, 8, 0, 4, 9, 8, 0, 4, 9, 8, 0, 4, 9, 8, 0, 4, 9, 8, 0, 10, 9, 8, 4, 4);
_bpm = 140;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 6;
_currentDelayPos = 0;
_currentTrack = 1;
break;
case 2:
Tracker.kvEvent(928);
Tracker.kvEvent(937);
_sequence = null;
_sequence = new Array(0, 1, 2, 1, 3, 1, 2, 1, 3, 7, 6, 7, 5, 7, 6, 7, 5, 0, 0, 0, 8, 8, 8, 8, 9, 9, 0, 9, 0, 10, 0, 10, 0, 9, 0, 9, 0, 10, 0, 10, 0, 2, 8, 5, 8, 1, 7, 0, 7, 2, 8, 5, 8, 1, 7, 0, 7, 0, 0, 0, 0, 1, 2, 3, 0, 5, 6, 7, 0, 7, 6, 5, 0, 4, 4, 4, 10, 1, 7, 1, 7, 1, 7, 1, 7, 10, 10, 10, 0, 9, 9, 9, 0, 8, 8, 8, 0, 10, 9, 8, 4, 10, 9, 8, 0, 8, 9, 10, 0, 9, 10, 8, 0, 4, 4, 4, 10, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 4, 7, 6, 5, 4, 4, 4, 4, 10, 10, 9, 8, 0, 8, 9, 10, 0, 9, 10, 8, 0, 4, 4, 4, 10, 1, 2, 0, 2);
_bpm = 160;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 1;
_currentDelayPos = 0;
_currentTrack = 2;
break;
case 3:
Tracker.kvEvent(928);
Tracker.kvEvent(938);
_sequence = null;
_sequence = new Array(0, 0, 0, 0, 1, 2, 1, 3, 1, 2, 1, 3, 7, 6, 7, 5, 7, 6, 7, 5, 8, 9, 10, 8, 8, 9, 10, 8, 9, 8, 10, 9, 4, 4, 4, 4, 4, 4, 4, 4, 1, 2, 3, 3, 1, 2, 3, 3, 7, 6, 5, 5, 7, 6, 5, 5, 0, 0, 0, 0, 8, 9, 10, 8, 8, 9, 10, 8, 9, 8, 10, 9, 1, 7, 1, 7, 2, 6, 2, 6, 3, 5, 3, 5, 10, 8, 10, 8, 1, 8, 7, 8, 2, 9, 6, 9, 3, 10, 5, 10, 4, 8, 4, 9, 1, 2, 3, 4, 7, 6, 5, 4, 1, 2, 3, 4, 7, 6, 5, 4, 8, 8, 9, 8, 9, 9, 10, 9, 1, 2, 3, 4, 7, 6, 5, 4, 1, 0, 6, 5, 2, 0, 7, 6, 4, 4, 4, 4, 8, 8, 9, 10, 1, 0, 6, 5, 2, 0, 7, 6, 1, 7, 1, 7, 2, 6, 2, 6, 1, 0, 6, 5, 2, 0, 7, 6, 4, 4, 8, 4, 8, 8, 9, 10, 1, 4, 6, 5, 2, 4, 7, 6, 3, 5, 3, 5, 10, 8, 10, 8, 7, 6, 5, 4, 3, 2, 10, 0, 0);
_bpm = 180;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 1;
_currentDelayPos = 0;
_currentTrack = 3;
break;
case 4:
Tracker.kvEvent(929);
Tracker.kvEvent(936);
_sequence = null;
_sequence = new Array(0, 0, 0, 4, 0, 7, 0, 4, 0, 7, 0, 4, 0, 7, 0, 4, 0, 7, 0, 4, 0, 7, 0, 4, 0, 7, 7, 4, 0, 1, 0, 4, 0, 1, 2, 4, 0, 1, 0, 4, 0, 1, 2, 4, 0, 1, 0, 4, 0, 1, 2, 4, 0, 1, 0, 4, 0, 1, 2, 10, 0, 10, 0, 9, 0, 9, 0, 8, 0, 8, 0, 9, 0, 9, 0, 10, 0, 10, 0, 8, 0, 8, 0, 9, 0, 9, 0, 10, 0, 10, 0, 9, 9, 9, 9, 10, 10, 10, 10, 8, 8, 8, 8, 9, 9, 9, 9, 10, 4, 10, 4, 9, 4, 9, 4, 8, 4, 8, 4, 9, 4, 9, 4, 7, 6, 5, 4, 4, 3, 2, 1, 0, 0);
_bpm = 140;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 4;
_currentDelayPos = 0;
_currentTrack = 4;
break;
case 5:
Tracker.kvEvent(929);
Tracker.kvEvent(937);
_sequence = null;
_sequence = new Array(0, 4, 0, 4, 0, 4, 0, 4, 0, 8, 0, 9, 0, 10, 0, 10, 0, 8, 0, 9, 0, 10, 0, 10, 0, 1, 2, 3, 4, 5, 6, 7, 4, 7, 6, 5, 4, 4, 4, 4, 10, 0, 0, 0, 8, 8, 8, 8, 9, 2, 8, 5, 8, 1, 7, 0, 7, 2, 8, 5, 8, 1, 7, 0, 7, 0, 0, 0, 0, 1, 2, 3, 0, 5, 6, 7, 0, 7, 6, 5, 0, 4, 4, 4, 10, 1, 7, 1, 7, 1, 7, 1, 7, 10, 10, 10, 0, 9, 9, 9, 0, 8, 8, 8, 0, 10, 9, 8, 4, 10, 9, 8, 0, 8, 9, 10, 0, 9, 10, 8, 0, 4, 4, 4, 10, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 0, 7, 6, 5, 4, 4, 4, 4, 0, 10, 9, 8, 4, 8, 9, 10, 4, 9, 10, 8, 4, 4, 4, 4, 10, 10, 10, 10, 10, 9, 9, 9, 9, 8, 8, 8, 8, 10, 9, 8, 4, 1, 2, 3, 4, 5, 6, 7, 0, 10, 10, 0);
_bpm = 160;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 1;
_currentDelayPos = 0;
_currentTrack = 5;
break;
case 6:
Tracker.kvEvent(929);
Tracker.kvEvent(938);
_sequence = null;
_sequence = new Array(0, 0, 0, 0, 7, 6, 5, 5, 7, 6, 5, 5, 1, 2, 3, 3, 1, 2, 3, 3, 0, 0, 0, 0, 9, 9, 10, 10, 8, 8, 9, 9, 4, 4, 4, 4, 4, 4, 4, 4, 7, 6, 5, 5, 7, 6, 5, 5, 1, 2, 3, 3, 1, 2, 3, 3, 0, 0, 0, 0, 8, 9, 10, 8, 0, 0, 0, 0, 8, 9, 10, 8, 10, 8, 10, 8, 3, 5, 3, 5, 0, 0, 0, 0, 2, 6, 2, 6, 1, 7, 1, 7, 3, 10, 5, 10, 4, 8, 4, 9, 0, 0, 0, 0, 1, 8, 7, 8, 2, 9, 6, 9, 1, 2, 3, 4, 7, 6, 5, 4, 0, 0, 0, 0, 1, 2, 3, 4, 7, 6, 5, 4, 8, 8, 9, 8, 9, 9, 10, 9, 1, 2, 3, 4, 7, 6, 5, 4, 1, 0, 6, 5, 2, 0, 7, 6, 1, 0, 6, 5, 2, 0, 7, 6, 4, 4, 8, 4, 8, 8, 9, 10, 1, 4, 6, 5, 2, 4, 7, 6, 4, 4, 4, 4, 8, 8, 9, 10, 0, 0, 0, 0, 10, 0);
_bpm = 190;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 1;
_currentDelayPos = 0;
_currentTrack = 6;
break;
case 7:
Tracker.kvEvent(930);
Tracker.kvEvent(936);
_sequence = null;
_sequence = new Array(0, 1, 0, 3, 2, 0, 0, 0, 0, 1, 0, 3, 2, 0, 0, 0, 0, 7, 0, 5, 6, 0, 0, 0, 0, 7, 0, 5, 6, 0, 0, 0, 0, 1, 0, 3, 2, 0, 0, 4, 0, 1, 0, 3, 2, 0, 0, 4, 0, 7, 0, 5, 6, 0, 0, 4, 0, 7, 0, 5, 6, 0, 4, 4, 4, 0, 8, 0, 8, 0, 9, 0, 9, 0, 10, 0, 10, 0, 4, 0, 4, 5, 6, 5, 6, 5, 6, 5, 6, 0, 8, 0, 8, 0, 9, 0, 9, 0, 10, 0, 10, 0, 4, 0, 4, 5, 6, 5, 6, 5, 6, 5, 6, 8, 0, 9, 0, 10, 0, 10, 0, 8, 0, 9, 0, 10, 0, 10, 0, 1, 2, 3, 0, 5, 6, 7, 0, 7, 6, 5, 0, 3, 2, 1, 0, 10, 0);
_bpm = 155;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 2;
_currentDelayPos = 0;
_currentTrack = 7;
break;
case 8:
Tracker.kvEvent(930);
Tracker.kvEvent(937);
_sequence = null;
_sequence = new Array(0, 0, 4, 0, 4, 0, 4, 0, 4, 5, 6, 5, 6, 5, 4, 0, 3, 2, 1, 0, 4, 0, 4, 0, 4, 5, 6, 5, 6, 5, 4, 0, 3, 2, 1, 0, 4, 0, 4, 0, 4, 6, 7, 6, 7, 6, 4, 0, 3, 2, 1, 0, 4, 0, 4, 0, 4, 10, 10, 9, 8, 10, 10, 9, 8, 9, 9, 8, 10, 10, 10, 9, 10, 6, 7, 6, 7, 6, 7, 6, 7, 10, 10, 9, 8, 10, 10, 9, 8, 9, 9, 8, 10, 10, 10, 9, 10, 6, 7, 6, 7, 6, 7, 6, 7, 9, 8, 9, 8, 10, 9, 10, 8, 9, 9, 9, 8, 10, 10, 9, 10, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 0, 7, 6, 5, 0, 1, 2, 3, 0, 7, 6, 5, 0, 10, 9, 8, 0, 8, 9, 10, 0, 1, 2, 3, 0, 7, 6, 5, 0, 8, 9, 10, 8, 7, 6, 7, 6, 6, 5, 6, 5, 3, 2, 3, 2, 2, 1, 2, 1, 0);
_bpm = 155;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 2;
_currentDelayPos = 0;
_currentTrack = 8;
break;
case 9:
Tracker.kvEvent(930);
Tracker.kvEvent(938);
_sequence = null;
_sequence = new Array(0, 0, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 0, 0, 0, 0, 7, 6, 5, 4, 0, 0, 0, 0, 1, 2, 3, 4, 0, 0, 0, 0, 7, 6, 5, 4, 0, 0, 0, 0, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 1, 2, 3, 4, 7, 6, 5, 4, 1, 2, 3, 4, 7, 6, 5, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 10, 10, 10, 10, 9, 9, 9, 9, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 8, 8, 8, 8, 9, 9, 9, 9, 8, 8, 8, 8, 10, 10, 10, 10, 9, 9, 9, 9, 8, 8, 8, 8, 10, 10, 10, 10, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 0, 0, 0, 0, 7, 6, 5, 4, 0, 0, 0, 0, 0, 4, 0, 4, 1, 1, 2, 3, 7, 7, 6, 5, 0, 4, 0, 4, 1, 2, 3, 4, 7, 6, 5, 4, 1, 2, 3, 4, 7, 6, 5, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 4, 0, 4, 0, 4, 1, 1, 2, 2, 7, 7, 6, 6, 1, 1, 2, 2, 7, 7, 6, 6, 1, 1, 2, 2, 7, 7, 6, 6, 1, 1, 2, 3, 7, 7, 6, 6, 1, 2, 3, 4, 7, 6, 7, 4, 1, 2, 3, 4, 7, 6, 7, 4, 0);
_bpm = 280;
_BPMDist = 16;
_startDelay = 0;
_beatStart = 2;
_currentDelayPos = 0;
_currentTrack = 9;
break;
};
}
public static function showScores(_arg1:Event){
_cd++;
if (_cd == 2){
_target_root.removeEventListener(Event.ENTER_FRAME, showScores);
loadXML("http://battleofthebands.viral-game.co.uk/data.php?action=scores_daily_xml");
};
}
public static function scoreSubmitted(_arg1:Event){
_gameComplete.gotoAndStop(4);
}
public static function checkLoadedXML(_arg1:Event){
var _local2:XML;
_local2 = _loadXML.returnXML();
if (_local2 != null){
_target_root.removeEventListener(Event.ENTER_FRAME, checkLoadedXML);
organiseXML(_local2);
};
}
public static function resetGame(){
_bassChar = 1;
_leadChar = 0;
_drumChar = 0;
_largeChar = 1;
_currentCharSelect = 1;
_multiplierInc = 0;
_multiplier = 1;
_points1 = 0;
_points2 = 0;
_points3 = 0;
_totalPoints = 0;
_levelPoints = 0;
_gameOver = false;
_atmosphere = 200;
}
public static function organiseXML(_arg1:XML){
var _local2:XML;
var _local3:*;
var _local4:*;
var _local5:Object;
_local2 = _arg1;
_local3 = 1;
while (_local3 <= _local2.daily_scores.entry.length()) {
_local4 = _local2.daily_scores.entry[(_local3 - 1)];
_local5 = new Object();
_local5.pos = _local3;
_local5.bandName = _local4.attributes()[0];
_local5.playerScore = _local4.attributes()[1];
_gameComplete[("band" + _local3)].text = _local5.bandName.toUpperCase();
_gameComplete[("score" + _local3)].text = _local5.playerScore;
_local3++;
};
}
}
}//package game
Section 41
//GameSounds (game.GameSounds)
package game {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class GameSounds extends Sprite {
private var _screechVolume;// = 0
private var _screechPlaying:Boolean;// = false
private var _musicVolume;// = 1
public static var _musicTrack:SoundChannel;
public static var _soundChoose:Array = new Array("", _easyGuitar, _mediumGuitar, _hardGuitar);
public static var _hardBass:hardBass_snd = new hardBass_snd();
public static var _easyGuitar:easyGuitar_snd = new easyGuitar_snd();
public static var _boos:boos_snd = new boos_snd();
public static var _mediumBass:mediumBass_snd = new mediumBass_snd();
public static var _menuPlaying = false;
public static var _mediumDrums:mediumDrums_snd = new mediumDrums_snd();
public static var _loseGuitar:lose_snd = new lose_snd();
public static var _easyBass:easyBass_snd = new easyBass_snd();
public static var _hardDrums:hardDrums_snd = new hardDrums_snd();
public static var _cheers:cheers_snd = new cheers_snd();
public static var _listener;
public static var _easyDrums:easyDrums_snd = new easyDrums_snd();
public static var _menuTrack:SoundChannel;
public static var _hardGuitar:hardGuitar_snd = new hardGuitar_snd();
public static var _musicVolume = 1;
public static var _mediumGuitar:mediumGuitar_snd = new mediumGuitar_snd();
public function GameSounds(){
_musicVolume = 1;
_screechPlaying = false;
_screechVolume = 0;
super();
}
public function fadeMusic(_arg1:Event){
var _local2:SoundTransform;
_musicVolume = (_musicVolume - 0.025);
_local2 = _menuTrack.soundTransform;
_local2.volume = _musicVolume;
_menuTrack.soundTransform = _local2;
if (_musicVolume <= 0.15){
removeEventListener(Event.ENTER_FRAME, fadeMusic);
_local2.volume = 1;
_menuTrack.soundTransform = _local2;
stopMenuMusic();
};
}
public function startFadeMusic(){
_musicVolume = 1;
addEventListener(Event.ENTER_FRAME, fadeMusic);
}
public static function startMenuMusic(){
if (!_menuPlaying){
_menuTrack = _soundChoose[Math.ceil((Math.random() * 3))].play(2100, 9999);
_menuPlaying = true;
};
}
public static function stopMusic(){
if (_musicTrack != null){
_musicTrack.stop();
};
}
public static function nextTrack(_arg1:Event){
_menuTrack.stop();
_menuPlaying = false;
startMenuMusic();
}
public static function stopMenuMusic(){
if (_menuTrack != null){
_menuTrack.stop();
_menuPlaying = false;
};
}
public static function playSoundOffset(_arg1){
switch (_arg1){
case 1:
_musicTrack = _easyBass.play(3178);
break;
case 2:
_musicTrack = _mediumBass.play(2954);
break;
case 3:
_musicTrack = _hardBass.play(5048);
break;
case 4:
_musicTrack = _easyDrums.play(3178);
break;
case 5:
_musicTrack = _mediumDrums.play(2621);
break;
case 6:
_musicTrack = _hardDrums.play(2117);
break;
case 7:
_musicTrack = _easyGuitar.play(5142);
break;
case 8:
_musicTrack = _mediumGuitar.play(2823);
break;
case 9:
_musicTrack = _hardGuitar.play(3024);
break;
case 10:
_musicTrack = _cheers.play();
break;
case 11:
_musicTrack = _boos.play();
_musicTrack = _loseGuitar.play();
break;
};
}
public static function playSound(_arg1){
switch (_arg1){
case 1:
_musicTrack = _easyBass.play();
break;
case 2:
_musicTrack = _mediumBass.play();
break;
case 3:
_musicTrack = _hardBass.play();
break;
case 4:
_musicTrack = _easyDrums.play();
break;
case 5:
_musicTrack = _mediumDrums.play();
break;
case 6:
_musicTrack = _hardDrums.play();
break;
case 7:
_musicTrack = _easyGuitar.play();
break;
case 8:
_musicTrack = _mediumGuitar.play();
break;
case 9:
_musicTrack = _hardGuitar.play();
break;
case 10:
_musicTrack = _cheers.play();
break;
case 11:
_musicTrack = _boos.play();
_musicTrack = _loseGuitar.play();
break;
};
}
}
}//package game
Section 42
//Menus (game.Menus)
package game {
import flash.display.*;
import flash.events.*;
import com.memecounter.*;
import koko.*;
import flash.net.*;
public class Menus extends MovieClip {
private var _menus;
public static var _showMenu = "";
public static var _runFunction = "";
public static var _runExtFunction1 = "";
public static var _runExtFunction = "";
public static var _runFunction1 = "";
public function Menus(){
_menus = new GameSounds();
super();
}
public function failLevel(){
_runFunction1 = "setFailScores";
}
public function setLevelScores(){
GameEngine[("_points" + GameEngine._currentCharSelect)] = GameEngine._levelPoints;
GameEngine._totalPoints = ((GameEngine._points1 + GameEngine._points2) + GameEngine._points3);
GameEngine._levelOver.points1.text = GameEngine._points1;
GameEngine._levelOver.points2.text = GameEngine._points2;
GameEngine._levelOver.points3.text = GameEngine._points3;
GameEngine._levelOver.totalPoints.text = GameEngine._totalPoints;
}
public function buttonPress(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:URLRequest;
var _local6:URLVariables;
switch (_arg1.target.name){
case "currys_link_btn":
Tracker.kvEvent(940);
Tracker.kvClick(704);
URLUtil.openWindow("http://www.currys.co.uk/summersounds");
break;
case "koko_btn":
Tracker.kvClick(705);
URLUtil.openWindow("http://www.kokodigital.co.uk");
break;
case "summer_sounds_btn":
Tracker.kvEvent(941);
Tracker.kvClick(704);
URLUtil.openWindow("http://www.currys.co.uk/summersounds");
break;
case "mainMenu_btn":
GameEngine.endGame();
transitionBetweenMenus(GameEngine._menuMain);
break;
case "playGame_btn":
GameEngine.resetLevel();
GameEngine.resetGame();
transitionBetweenMenus(GameEngine._charSelect);
_runFunction = "displayChar";
_runFunction1 = "displayChar1";
break;
case "prize_info_btn":
URLUtil.openWindow("http://battleofthebands.viral-game.co.uk/prizeinfo.htm");
break;
case "terms_btn":
Tracker.kvClick(708);
Tracker.kvEvent(945);
URLUtil.openWindow("http://battleofthebands.viral-game.co.uk/terms.htm");
break;
case "privacy_btn":
Tracker.kvClick(707);
Tracker.kvEvent(946);
URLUtil.openWindow("http://battleofthebands.viral-game.co.uk/privacy.htm");
break;
case "entercomp_btn":
Tracker.kvClick(706);
URLUtil.openWindow("http://battleofthebands.viral-game.co.uk/entercompetition.htm");
break;
case "howToPlay_btn":
Tracker.kvEvent(934);
transitionBetweenMenus(GameEngine._howToPlay);
break;
case "send_to_friends_btn":
transitionBetweenMenus(GameEngine._sendToFriend);
break;
case "bm1_btn":
GameEngine._bassChar = 1;
GameEngine._largeChar = 1;
displayBass();
break;
case "bm2_btn":
GameEngine._bassChar = 2;
GameEngine._largeChar = 2;
displayBass();
break;
case "bm3_btn":
GameEngine._bassChar = 3;
GameEngine._largeChar = 3;
displayBass();
break;
case "bm4_btn":
GameEngine._drumChar = 1;
GameEngine._largeChar = 4;
displayDrum();
break;
case "bm5_btn":
GameEngine._drumChar = 2;
GameEngine._largeChar = 5;
displayDrum();
break;
case "bm6_btn":
GameEngine._drumChar = 3;
GameEngine._largeChar = 6;
displayDrum();
break;
case "bm7_btn":
GameEngine._leadChar = 1;
GameEngine._largeChar = 7;
displayLead();
break;
case "bm8_btn":
GameEngine._leadChar = 2;
GameEngine._largeChar = 8;
displayLead();
break;
case "bm9_btn":
GameEngine._leadChar = 3;
GameEngine._largeChar = 9;
displayLead();
break;
case "continue1_btn":
case "continue2_btn":
case "continue3_btn":
transitionBetweenMenus(GameEngine._trackSelect);
_menus.startFadeMusic();
_runFunction = "displayLargeChar";
_runFunction1 = "displayLargeChar1";
break;
case "back1_btn":
transitionBetweenMenus(GameEngine._charSelect);
_runFunction = "displayChar";
_runFunction1 = "displayChar1";
break;
case "continue4_btn":
transitionBetweenMenus(GameEngine._actualGame);
_runFunction1 = "setupChars";
_runExtFunction1 = GameEngine.beginGame();
break;
case "tryAgain1_btn":
Tracker.kvEvent(939);
GameEngine.resetLevel();
_menus.startFadeMusic();
transitionBetweenMenus(GameEngine._trackSelect);
_runFunction = "displayLargeChar";
_runFunction1 = "displayLargeChar1";
break;
case "nextLevel_btn":
if (GameEngine._currentCharSelect < 3){
GameEngine.nextLevel();
GameEngine.resetLevel();
transitionBetweenMenus(GameEngine._charSelect);
_runFunction = "displayChar";
_runFunction1 = "displayChar1";
} else {
Tracker.kvEvent(931);
transitionBetweenMenus(GameEngine._gameComplete);
_runFunction1 = "setupEndChars";
};
break;
case "mainMenu1_btn":
transitionBetweenMenus(GameEngine._menuMain);
break;
case "submitScore1_btn":
GameEngine._gameComplete.gotoAndStop(3);
break;
case "submitScore2_btn":
Tracker.kvEvent(932);
_local2 = GameEngine._gameComplete.bandName.text;
_local3 = GameEngine._gameComplete.playerName.text;
_local4 = GameEngine._gameComplete.playerEmail.text;
GameEngine.submitScore(_local2, _local3, _local4);
break;
case "viewHighscores_btn":
Tracker.kvEvent(933);
GameEngine.loadScoreboard();
break;
case "viewHighscores1_btn":
Tracker.kvEvent(933);
transitionBetweenMenus(GameEngine._gameComplete);
_runFunction1 = "showScores";
break;
case "easy_btn":
GameEngine._trackSelect.easy_mc.gotoAndStop(2);
GameEngine._trackSelect.medium_mc.gotoAndStop(1);
GameEngine._trackSelect.hard_mc.gotoAndStop(1);
switch (GameEngine._currentCharSelect){
case 1:
GameEngine._currentTrack = 1;
break;
case 2:
GameEngine._currentTrack = 4;
break;
case 3:
GameEngine._currentTrack = 7;
break;
};
GameEngine.playTrackPreview();
break;
case "medium_btn":
GameEngine._trackSelect.easy_mc.gotoAndStop(1);
GameEngine._trackSelect.medium_mc.gotoAndStop(2);
GameEngine._trackSelect.hard_mc.gotoAndStop(1);
switch (GameEngine._currentCharSelect){
case 1:
GameEngine._currentTrack = 2;
break;
case 2:
GameEngine._currentTrack = 5;
break;
case 3:
GameEngine._currentTrack = 8;
break;
};
GameEngine.playTrackPreview();
break;
case "hard_btn":
GameEngine._trackSelect.easy_mc.gotoAndStop(1);
GameEngine._trackSelect.medium_mc.gotoAndStop(1);
GameEngine._trackSelect.hard_mc.gotoAndStop(2);
switch (GameEngine._currentCharSelect){
case 1:
GameEngine._currentTrack = 3;
break;
case 2:
GameEngine._currentTrack = 6;
break;
case 3:
GameEngine._currentTrack = 9;
break;
};
GameEngine.playTrackPreview();
break;
case "sendToFriend_btn":
if (((((((!((GameEngine._sendToFriend.yourName.text == ""))) && (!((GameEngine._sendToFriend.yourEmail.text == ""))))) && (!((GameEngine._sendToFriend.friendName.text == ""))))) && (!((GameEngine._sendToFriend.friendEmail.text == ""))))){
Tracker.kvEvent(935);
_local5 = new URLRequest("http://battleofthebands.viral-game.co.uk/mail.php");
_local6 = new URLVariables();
_local6.yourname = GameEngine._sendToFriend.yourName.text;
_local6.youremail = GameEngine._sendToFriend.yourEmail.text;
_local6.friendname = GameEngine._sendToFriend.friendName.text;
_local6.friendemail = GameEngine._sendToFriend.friendEmail.text;
_local5.data = _local6;
_local5.method = URLRequestMethod.POST;
sendToURL(_local5);
GameEngine._sendToFriend.gotoAndStop(3);
GameEngine._sendToFriend.friendName.text = "";
GameEngine._sendToFriend.friendEmail.text = "";
};
break;
};
}
public function displayChar(){
var _local1:int;
_local1 = GameEngine._currentCharSelect;
GameEngine._charSelect.gotoAndStop((_local1 + 1));
}
public function displayLead(){
GameEngine._charSelect.cs1_mc.gotoAndStop(1);
GameEngine._charSelect.cs2_mc.gotoAndStop(1);
GameEngine._charSelect.cs3_mc.gotoAndStop(1);
GameEngine._charSelect[(("cs" + GameEngine._leadChar) + "_mc")].gotoAndStop(2);
GameEngine._charSelect.selectedChar_mc.gotoAndStop(GameEngine._leadChar);
}
public function none(){
}
public function setupEndChars(){
var _local1:*;
GameEngine._gameComplete.lead_mc.gotoAndStop((GameEngine._leadChar + 1));
GameEngine._gameComplete.bass_mc.gotoAndStop((GameEngine._bassChar + 1));
GameEngine._gameComplete.drums_mc.gotoAndStop((GameEngine._drumChar + 1));
_local1 = ((GameEngine._points1 + GameEngine._points2) + GameEngine._points3);
GameEngine[("_points" + GameEngine._currentCharSelect)] = GameEngine._levelPoints;
GameEngine._totalPoints = _local1;
GameEngine._gameComplete.points1.text = GameEngine._points1;
GameEngine._gameComplete.points2.text = GameEngine._points2;
GameEngine._gameComplete.points3.text = GameEngine._points3;
GameEngine._gameComplete.totalScore.text = _local1;
if (_local1 < 125000){
GameEngine._gameComplete.stat.text = "UNSIGNED ACT";
} else {
if (_local1 < 225000){
GameEngine._gameComplete.stat.text = "SUPPORT ACT";
} else {
if (_local1 < 325000){
GameEngine._gameComplete.stat.text = "HEADLINERS";
} else {
GameEngine._gameComplete.stat.text = "ROCK GODS";
};
};
};
}
public function endLevel(){
_runFunction1 = "setLevelScores";
}
public function checkTransition():int{
var _local1:*;
_local1 = 0;
if (GameEngine._trans.currentFrame == 15){
_local1 = 1;
};
if (GameEngine._trans.currentFrame == 17){
_local1 = 2;
};
return (_local1);
}
public function displayLargeChar1(){
var _local1:int;
_local1 = GameEngine._currentCharSelect;
GameEngine._trackSelect.largeChar_mc.gotoAndStop(GameEngine._largeChar);
GameEngine._trackSelect.easy_mc.gotoAndStop(2);
switch (_local1){
case 1:
GameEngine._currentTrack = 1;
break;
case 2:
GameEngine._currentTrack = 4;
break;
case 3:
GameEngine._currentTrack = 7;
break;
};
GameEngine.playTrackPreview();
}
public function displayDrum(){
GameEngine._charSelect.cs1_mc.gotoAndStop(1);
GameEngine._charSelect.cs2_mc.gotoAndStop(1);
GameEngine._charSelect.cs3_mc.gotoAndStop(1);
GameEngine._charSelect[(("cs" + GameEngine._drumChar) + "_mc")].gotoAndStop(2);
GameEngine._charSelect.selectedChar_mc.gotoAndStop(GameEngine._drumChar);
}
public function setupChars(){
GameEngine._actualGame.lead_mc.gotoAndStop((GameEngine._leadChar + 1));
GameEngine._actualGame.bass_mc.gotoAndStop((GameEngine._bassChar + 1));
GameEngine._actualGame.drums_mc.gotoAndStop((GameEngine._drumChar + 1));
}
public function displayLargeChar(){
var _local1:int;
_local1 = GameEngine._currentCharSelect;
GameEngine._trackSelect.gotoAndStop((_local1 + 1));
}
public function playTransition():void{
GameEngine._trans.gotoAndPlay(2);
}
public function showScores(){
GameEngine.loadScoreboard1();
}
public function displayBass(){
GameEngine._charSelect.cs1_mc.gotoAndStop(1);
GameEngine._charSelect.cs2_mc.gotoAndStop(1);
GameEngine._charSelect.cs3_mc.gotoAndStop(1);
GameEngine._charSelect[(("cs" + GameEngine._bassChar) + "_mc")].gotoAndStop(2);
GameEngine._charSelect.selectedChar_mc.gotoAndStop(GameEngine._bassChar);
}
public function transitionBetweenMenus(_arg1){
playTransition();
_showMenu = _arg1;
addEventListener(Event.ENTER_FRAME, hideMenu);
}
public function hideMenu(_arg1:Event){
if (checkTransition() == 1){
GameEngine._menuMain.gotoAndStop(1);
GameEngine._actualGame.gotoAndStop(1);
GameEngine._charSelect.gotoAndStop(1);
GameEngine._trackSelect.gotoAndStop(1);
GameEngine._failLevel.gotoAndStop(1);
GameEngine._levelOver.gotoAndStop(1);
GameEngine._gameComplete.gotoAndStop(1);
GameEngine._howToPlay.gotoAndStop(1);
GameEngine._sendToFriend.gotoAndStop(1);
if (_showMenu != "none"){
_showMenu.x = 27;
_showMenu.y = 56;
_showMenu.gotoAndPlay(2);
};
var _local2 = this;
_local2[_runFunction]();
_runFunction = "none";
_runExtFunction;
_runExtFunction = "";
};
if (checkTransition() == 2){
_local2 = this;
_local2[_runFunction1]();
_runFunction1 = "none";
_runExtFunction1;
_runExtFunction1 = "";
removeEventListener(Event.ENTER_FRAME, hideMenu);
};
}
public function setFailScores(){
GameEngine[("_points" + GameEngine._currentCharSelect)] = GameEngine._levelPoints;
GameEngine._totalPoints = ((GameEngine._points1 + GameEngine._points2) + GameEngine._points3);
GameEngine._failLevel.points1.text = GameEngine._points1;
GameEngine._failLevel.points2.text = GameEngine._points2;
GameEngine._failLevel.points3.text = GameEngine._points3;
GameEngine._failLevel.totalPoints.text = GameEngine._totalPoints;
GameEngine._failLevel[("points" + GameEngine._currentCharSelect)].text = "FAILED";
}
public function buildMenu():void{
GameEngine._gameOuter.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
GameEngine._menuMain.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
GameEngine._charSelect.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
GameEngine._trackSelect.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
GameEngine._failLevel.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
GameEngine._levelOver.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
GameEngine._gameComplete.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
GameEngine._howToPlay.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
GameEngine._sendToFriend.addEventListener(MouseEvent.MOUSE_UP, buttonPress);
}
public function displayChar1(){
var _local1:int;
_local1 = GameEngine._currentCharSelect;
switch (_local1){
case 1:
displayBass();
break;
case 2:
displayDrum();
break;
case 3:
displayLead();
break;
};
}
}
}//package game
Section 43
//AnyKeyPress (koko.AnyKeyPress)
package koko {
import flash.display.*;
import flash.events.*;
public class AnyKeyPress extends Sprite {
private var _keysDown:Array;
private var _keyDownClick:Array;
private var _keysUp:Array;
var target_root;
public function AnyKeyPress(){
target_root = SetStage.root_target;
_keysDown = new Array();
_keyDownClick = new Array();
_keysUp = new Array();
super();
target_root.stage.addEventListener(KeyboardEvent.KEY_DOWN, fnKeyDown);
target_root.stage.addEventListener(KeyboardEvent.KEY_UP, fnKeyUp);
}
public function removeKeyDownClick(_arg1):void{
var _local2:*;
_local2 = 0;
while (_local2 < _keyDownClick.length) {
if (_keyDownClick[_local2] == _arg1){
_keyDownClick.splice(_local2, 1);
};
_local2++;
};
}
public function returnKeyUp():Array{
return (_keysUp);
}
public function resetKeyUp(){
_keysUp = new Array();
}
public function returnKeyDown():Array{
return (_keysDown);
}
public function removeKeyDown(_arg1):void{
var _local2:*;
_local2 = 0;
while (_local2 < _keysDown.length) {
if (_keysDown[_local2] == _arg1){
_keysDown.splice(_local2, 1);
_keysUp.push(_arg1);
};
_local2++;
};
}
public function fnKeyUp(_arg1:KeyboardEvent){
removeKeyDown(_arg1.keyCode);
removeKeyDownClick(_arg1.keyCode);
}
public function fnKeyDown(_arg1:KeyboardEvent){
var _local2:*;
var _local3:*;
_local2 = true;
_local3 = 0;
while (_local3 < _keysDown.length) {
if (_keysDown[_local3] == _arg1.keyCode){
_local2 = false;
};
_local3++;
};
if (_local2){
_keysDown.push(_arg1.keyCode);
_keyDownClick.push(_arg1.keyCode);
} else {
removeKeyDownClick(_arg1.keyCode);
};
}
public function returnKeyClick():Array{
return (_keyDownClick);
}
}
}//package koko
Section 44
//parseXMLDoc (koko.parseXMLDoc)
package koko {
import flash.events.*;
import flash.net.*;
public class parseXMLDoc {
private var _xmlDoc:XML;
private var _urlLoader:URLLoader;
public function returnXML():XML{
return (_xmlDoc);
}
public function pXML(_arg1){
var _local2:URLRequest;
_xmlDoc = null;
_local2 = new URLRequest(_arg1);
_local2.method = URLRequestMethod.POST;
_urlLoader = new URLLoader();
_urlLoader.addEventListener(Event.COMPLETE, completeListener);
_urlLoader.load(_local2);
}
public function completeListener(_arg1:Event){
_xmlDoc = new XML(_urlLoader.data);
return (_xmlDoc.toXMLString());
}
}
}//package koko
Section 45
//SetStage (koko.SetStage)
package koko {
import flash.display.*;
public class SetStage extends Sprite {
public static var root_target:Sprite;
public function SetStage(_arg1:Sprite){
root_target = _arg1;
}
}
}//package koko
Section 46
//TimeBasedAnimation (koko.TimeBasedAnimation)
package koko {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class TimeBasedAnimation extends Sprite {
private static var _timeDiff:int;
private static var _lastTime:int = 0;
public function startTimer():void{
_lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, setTimeDiff);
}
public function setTimeDiff(_arg1:Event):void{
_timeDiff = (getTimer() - _lastTime);
_lastTime = (_lastTime + _timeDiff);
}
public function returnTimeDiff():int{
return (_timeDiff);
}
}
}//package koko
Section 47
//TrackFPS (koko.TrackFPS)
package koko {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public class TrackFPS extends Sprite {
private var _fps:int;
private var _fpsText:TextField;
private var _timeDiff:int;
private var _lastTime:int;// = 0
public function TrackFPS():void{
_lastTime = 0;
_fpsText = new TextField();
super();
_lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, setTimeDiff);
addChild(_fpsText);
}
public function setTimeDiff(_arg1:Event):void{
_timeDiff = (getTimer() - _lastTime);
_lastTime = (_lastTime + _timeDiff);
_fps = (1000 / _timeDiff);
_fpsText.text = _fps.toString();
}
}
}//package koko
Section 48
//URLUtil (koko.URLUtil)
package koko {
import flash.external.*;
public class URLUtil {
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static function openWindow(_arg1:String, _arg2:String="_blank", _arg3:String=""):void{
ExternalInterface.call(WINDOW_OPEN_FUNCTION, _arg1, _arg2, _arg3);
}
}
}//package koko
Section 49
//actualGame (actualGame)
package {
import flash.display.*;
public dynamic class actualGame extends MovieClip {
public var key3_mc:MovieClip;
public var key6_mc:MovieClip;
public var fire5_mc:MovieClip;
public var key1_mc:MovieClip;
public var fire3_mc:MovieClip;
public var score_mc:MovieClip;
public var lead_mc:MovieClip;
public var fire6_mc:MovieClip;
public var key7_mc:MovieClip;
public var drums_mc:MovieClip;
public var key4_mc:MovieClip;
public var fire1_mc:MovieClip;
public var key2_mc:MovieClip;
public var fire4_mc:MovieClip;
public var key5_mc:MovieClip;
public var atmosphere_mc:MovieClip;
public var fire7_mc:MovieClip;
public var fire2_mc:MovieClip;
public var bass_mc:MovieClip;
public function actualGame(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
root.stage.focus = stage;
stop();
}
}
}//package
Section 50
//boos_snd (boos_snd)
package {
import flash.media.*;
public dynamic class boos_snd extends Sound {
}
}//package
Section 51
//cheers_snd (cheers_snd)
package {
import flash.media.*;
public dynamic class cheers_snd extends Sound {
}
}//package
Section 52
//easyBass_snd (easyBass_snd)
package {
import flash.media.*;
public dynamic class easyBass_snd extends Sound {
}
}//package
Section 53
//easyDrums_snd (easyDrums_snd)
package {
import flash.media.*;
public dynamic class easyDrums_snd extends Sound {
}
}//package
Section 54
//easyGuitar_snd (easyGuitar_snd)
package {
import flash.media.*;
public dynamic class easyGuitar_snd extends Sound {
}
}//package
Section 55
//gameOuter (gameOuter)
package {
import flash.display.*;
public dynamic class gameOuter extends MovieClip {
public var mainMenu_btn:SimpleButton;
public var summer_sounds_btn:SimpleButton;
public var koko_btn:SimpleButton;
public var currys_link_btn:SimpleButton;
}
}//package
Section 56
//hardBass_snd (hardBass_snd)
package {
import flash.media.*;
public dynamic class hardBass_snd extends Sound {
}
}//package
Section 57
//hardDrums_snd (hardDrums_snd)
package {
import flash.media.*;
public dynamic class hardDrums_snd extends Sound {
}
}//package
Section 58
//hardGuitar_snd (hardGuitar_snd)
package {
import flash.media.*;
public dynamic class hardGuitar_snd extends Sound {
}
}//package
Section 59
//lose_snd (lose_snd)
package {
import flash.media.*;
public dynamic class lose_snd extends Sound {
}
}//package
Section 60
//mediumBass_snd (mediumBass_snd)
package {
import flash.media.*;
public dynamic class mediumBass_snd extends Sound {
}
}//package
Section 61
//mediumDrums_snd (mediumDrums_snd)
package {
import flash.media.*;
public dynamic class mediumDrums_snd extends Sound {
}
}//package
Section 62
//mediumGuitar_snd (mediumGuitar_snd)
package {
import flash.media.*;
public dynamic class mediumGuitar_snd extends Sound {
}
}//package
Section 63
//menu_final (menu_final)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class menu_final extends MovieClip {
public var entercomp_btn:SimpleButton;
public var score10:TextField;
public var submitScore1_btn:SimpleButton;
public var stat:TextField;
public var bandName:TextField;
public var viewHighscores_btn:SimpleButton;
public var mainMenu_btn:SimpleButton;
public var band2:TextField;
public var band3:TextField;
public var band4:TextField;
public var band6:TextField;
public var band8:TextField;
public var band9:TextField;
public var band5:TextField;
public var band7:TextField;
public var band1:TextField;
public var prize_info_btn:SimpleButton;
public var bass_mc:MovieClip;
public var playerName:TextField;
public var band10:TextField;
public var privacy_btn:SimpleButton;
public var playerEmail:TextField;
public var lead_mc:MovieClip;
public var summer_sounds_btn:SimpleButton;
public var drums_mc:MovieClip;
public var terms_btn:SimpleButton;
public var points2:TextField;
public var points3:TextField;
public var points1:TextField;
public var submitScore2_btn:SimpleButton;
public var totalScore:TextField;
public var score1:TextField;
public var score2:TextField;
public var score3:TextField;
public var score4:TextField;
public var score5:TextField;
public var score6:TextField;
public var score7:TextField;
public var score8:TextField;
public var score9:TextField;
public function menu_final(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
bandName.tabIndex = 5;
playerName.tabIndex = 6;
playerEmail.tabIndex = 7;
root.stage.focus = stage;
playerEmail.addEventListener(Event.CHANGE, textChanged);
stop();
}
function frame4(){
root.stage.focus = stage;
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame5(){
root.stage.focus = stage;
stop();
}
function frame2(){
root.stage.focus = stage;
stop();
}
public function textChanged(_arg1:Event):void{
var _local2:String;
_local2 = _arg1.target.text.slice((_arg1.target.text.length - 1), _arg1.target.text.length);
if (_local2 == "\""){
_arg1.target.text = (_arg1.target.text.slice(0, (_arg1.target.text.length - 1)) + "@");
};
}
}
}//package
Section 64
//menu_htp (menu_htp)
package {
import flash.display.*;
public dynamic class menu_htp extends MovieClip {
public var playGame_btn:SimpleButton;
public var mainMenu_btn:SimpleButton;
public function menu_htp(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 65
//menu_level_failed (menu_level_failed)
package {
import flash.display.*;
import flash.text.*;
public dynamic class menu_level_failed extends MovieClip {
public var entercomp_btn:SimpleButton;
public var tryAgain1_btn:SimpleButton;
public var totalPoints:TextField;
public var summer_sounds_btn:SimpleButton;
public var mainMenu1_btn:SimpleButton;
public var points2:TextField;
public var points3:TextField;
public var points1:TextField;
public function menu_level_failed(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 66
//menu_level_over (menu_level_over)
package {
import flash.display.*;
import flash.text.*;
public dynamic class menu_level_over extends MovieClip {
public var entercomp_btn:SimpleButton;
public var totalPoints:TextField;
public var summer_sounds_btn:SimpleButton;
public var nextLevel_btn:SimpleButton;
public var points2:TextField;
public var points3:TextField;
public var points1:TextField;
public function menu_level_over(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 67
//menu_main_menu (menu_main_menu)
package {
import flash.display.*;
public dynamic class menu_main_menu extends MovieClip {
public var entercomp_btn:SimpleButton;
public var playGame_btn:SimpleButton;
public var howToPlay_btn:SimpleButton;
public var viewHighscores1_btn:SimpleButton;
public var send_to_friends_btn:SimpleButton;
public function menu_main_menu(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 68
//menu_select_member (menu_select_member)
package {
import flash.display.*;
public dynamic class menu_select_member extends MovieClip {
public var selectedChar_mc:MovieClip;
public var continue3_btn:SimpleButton;
public var continue1_btn:SimpleButton;
public var cs2_mc:MovieClip;
public var continue2_btn:SimpleButton;
public var cs3_mc:MovieClip;
public var cs1_mc:MovieClip;
public function menu_select_member(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 69
//menu_select_track (menu_select_track)
package {
import flash.display.*;
public dynamic class menu_select_track extends MovieClip {
public var easy_mc:MovieClip;
public var hard_mc:MovieClip;
public var largeChar_mc:MovieClip;
public var continue4_btn:SimpleButton;
public var medium_mc:MovieClip;
public var back1_btn:SimpleButton;
public function menu_select_track(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 70
//menu_send_to_friend (menu_send_to_friend)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class menu_send_to_friend extends MovieClip {
public var yourEmail:TextField;
public var friendName:TextField;
public var yourName:TextField;
public var mainMenu_btn:SimpleButton;
public var friendEmail:TextField;
public var sendToFriend_btn:SimpleButton;
public function menu_send_to_friend(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
friendName.tabIndex = 3;
friendEmail.tabIndex = 4;
yourEmail.tabIndex = 2;
yourName.tabIndex = 1;
yourEmail.addEventListener(Event.CHANGE, textChanged);
friendEmail.addEventListener(Event.CHANGE, textChanged);
stop();
}
public function textChanged(_arg1:Event):void{
var _local2:String;
_local2 = _arg1.target.text.slice((_arg1.target.text.length - 1), _arg1.target.text.length);
if (_local2 == "\""){
_arg1.target.text = (_arg1.target.text.slice(0, (_arg1.target.text.length - 1)) + "@");
};
}
}
}//package
Section 71
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 72
//transition1 (transition1)
package {
import flash.display.*;
public dynamic class transition1 extends MovieClip {
public function transition1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package