Section 1
//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 2
//SHA1 (com.adobe.crypto.SHA1)
package com.adobe.crypto {
import flash.utils.*;
import com.adobe.utils.*;
public class SHA1 {
private static function hashBlocks(_arg1:Array):ByteArray{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Array;
var _local9:int;
var _local10:ByteArray;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:int;
_local2 = 1732584193;
_local3 = 4023233417;
_local4 = 2562383102;
_local5 = 271733878;
_local6 = 3285377520;
_local7 = _arg1.length;
_local8 = new Array(80);
_local9 = 0;
while (_local9 < _local7) {
_local11 = _local2;
_local12 = _local3;
_local13 = _local4;
_local14 = _local5;
_local15 = _local6;
_local16 = 0;
while (_local16 < 80) {
if (_local16 < 16){
_local8[_local16] = _arg1[(_local9 + _local16)];
} else {
_local8[_local16] = IntUtil.rol((((_local8[(_local16 - 3)] ^ _local8[(_local16 - 8)]) ^ _local8[(_local16 - 14)]) ^ _local8[(_local16 - 16)]), 1);
};
_local17 = ((((IntUtil.rol(_local11, 5) + f(_local16, _local12, _local13, _local14)) + _local15) + int(_local8[_local16])) + k(_local16));
_local15 = _local14;
_local14 = _local13;
_local13 = IntUtil.rol(_local12, 30);
_local12 = _local11;
_local11 = _local17;
_local16++;
};
_local2 = (_local2 + _local11);
_local3 = (_local3 + _local12);
_local4 = (_local4 + _local13);
_local5 = (_local5 + _local14);
_local6 = (_local6 + _local15);
_local9 = (_local9 + 16);
};
_local10 = new ByteArray();
_local10.writeInt(_local2);
_local10.writeInt(_local3);
_local10.writeInt(_local4);
_local10.writeInt(_local5);
_local10.writeInt(_local6);
_local10.position = 0;
return (_local10);
}
private static function createBlocksFromByteArray(_arg1:ByteArray):Array{
var _local2:int;
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = _arg1.position;
_arg1.position = 0;
_local3 = new Array();
_local4 = (_arg1.length * 8);
_local5 = 0xFF;
_local6 = 0;
while (_local6 < _local4) {
_local3[(_local6 >> 5)] = (_local3[(_local6 >> 5)] | ((_arg1.readByte() & _local5) << (24 - (_local6 % 32))));
_local6 = (_local6 + 8);
};
_local3[(_local4 >> 5)] = (_local3[(_local4 >> 5)] | (128 << (24 - (_local4 % 32))));
_local3[((((_local4 + 64) >> 9) << 4) + 15)] = _local4;
_arg1.position = _local2;
return (_local3);
}
private static function f(_arg1:int, _arg2:int, _arg3:int, _arg4:int):int{
if (_arg1 < 20){
return (((_arg2 & _arg3) | (~(_arg2) & _arg4)));
};
if (_arg1 < 40){
return (((_arg2 ^ _arg3) ^ _arg4));
};
if (_arg1 < 60){
return ((((_arg2 & _arg3) | (_arg2 & _arg4)) | (_arg3 & _arg4)));
};
return (((_arg2 ^ _arg3) ^ _arg4));
}
private static function k(_arg1:int):int{
if (_arg1 < 20){
return (1518500249);
};
if (_arg1 < 40){
return (1859775393);
};
if (_arg1 < 60){
return (2400959708);
};
return (3395469782);
}
private static function createBlocksFromString(_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) << (24 - (_local5 % 32))));
_local5 = (_local5 + 8);
};
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (24 - (_local3 % 32))));
_local2[((((_local3 + 64) >> 9) << 4) + 15)] = _local3;
return (_local2);
}
public static function hashBytes(_arg1:ByteArray):String{
var _local2:Array;
var _local3:ByteArray;
_local2 = SHA1.createBlocksFromByteArray(_arg1);
_local3 = hashBlocks(_local2);
return (((((IntUtil.toHex(_local3.readInt(), true) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true)));
}
public static function hash(_arg1:String):String{
var _local2:Array;
var _local3:ByteArray;
_local2 = createBlocksFromString(_arg1);
_local3 = hashBlocks(_local2);
return (((((IntUtil.toHex(_local3.readInt(), true) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true)));
}
}
}//package com.adobe.crypto
Section 3
//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 4
//Connector (com.doof.gameconnector.Connector)
package com.doof.gameconnector {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class Connector extends MovieClip {
private var _onStage:Boolean;
private var _localConnection:LocalConnection;
private var _doofConnectionName:String;// = "doof"
private var _stopGame:Function;
public function Connector():void{
_doofConnectionName = "doof";
super();
trace("allowing all domains");
_localConnection = new LocalConnection();
_localConnection.addEventListener(StatusEvent.STATUS, onStatus);
_localConnection.allowDomain("*");
_onStage = false;
}
public function get stopGame():Function{
return (_stopGame);
}
public function gameStatList(_arg1:Array):void{
trace(("GameConnectorAS3.gameStatList() stats=" + _arg1.toString()));
_localConnection.send(doofConnectionName, "gameStatList", _arg1);
}
public function gameStarted(_arg1:Number):void{
trace(("GameConnectorAS3.gameStarted() initialScore=" + String(_arg1)));
_localConnection.send(doofConnectionName, "gameStarted", _arg1);
}
public function gameStat(_arg1:String, _arg2:String):void{
trace(((("GameConnectorAS3.gameStat() statName=" + _arg1) + ", statValue=") + _arg2));
_localConnection.send(doofConnectionName, "gameStat", _arg1, _arg2);
}
public function set stopGame(_arg1:Function):void{
_stopGame = _arg1;
}
private function onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "status":
trace("AS3 LocalConnection.send() succeeded");
break;
case "error":
trace("AS3 LocalConnection.send() failed");
break;
};
}
public function gameScore(_arg1:Number):void{
trace(("GameConnectorAS3.gameScore() score=" + String(_arg1)));
_localConnection.send(doofConnectionName, "gameScore", _arg1);
}
public function get doofConnectionName():String{
try {
_doofConnectionName = LoaderInfo(this.root.loaderInfo).parameters["doofConnectionName"];
} catch(error:Error) {
_doofConnectionName = "doof";
};
if ((((_doofConnectionName == null)) || ((_doofConnectionName.length == 0)))){
_doofConnectionName = "doof";
};
return (_doofConnectionName);
}
public function gameEnded(_arg1:Number):void{
trace(("GameConnectorAS3.gameEnded() finalScore=" + String(_arg1)));
_localConnection.send(doofConnectionName, "gameEnded", _arg1);
}
}
}//package com.doof.gameconnector
Section 5
//BadGuy (com.doof.superslapstars.BadGuy)
package com.doof.superslapstars {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class BadGuy extends MovieClip {
public var head4:MovieClip;
public var head6:MovieClip;
public var head1:MovieClip;
public var head2:MovieClip;
public var head3:MovieClip;
public var head5:MovieClip;
public var target:MovieClip;
public var _headDamageNum:Number;// = 1
public var lowerHead1:MovieClip;
public var lowerHead2:MovieClip;
public var lowerHead3:MovieClip;
public var lowerHead4:MovieClip;
public var lowerHead5:MovieClip;
public var lowerHead6:MovieClip;
public function BadGuy(){
_headDamageNum = 1;
super();
showStanding();
}
public function showDodging():void{
gotoAndStop("dodging");
headShow(currentFrame);
}
public function showStanding():void{
gotoAndStop("standing");
headShow(currentFrame);
}
private function hideHeads():void{
head1.visible = false;
head2.visible = false;
head3.visible = false;
head4.visible = false;
head5.visible = false;
head6.visible = false;
if (lowerHead1){
lowerHead1.visible = false;
lowerHead2.visible = false;
lowerHead3.visible = false;
lowerHead4.visible = false;
lowerHead5.visible = false;
lowerHead6.visible = false;
};
}
public function showHit3():void{
gotoAndStop("hit3");
headShow(currentFrame);
}
public function showHit1():void{
gotoAndStop("hit1");
headShow(currentFrame);
}
public function showHit2():void{
gotoAndStop("hit2");
headShow(currentFrame);
}
public function showBackSwing():void{
gotoAndStop("backswing");
headShow(currentFrame);
}
public function showSlap():void{
gotoAndStop("slap");
headShow(currentFrame);
}
private function headShow(_arg1:int):void{
var _local2:*;
hideHeads();
head1.gotoAndStop(_arg1);
head2.gotoAndStop(_arg1);
head3.gotoAndStop(_arg1);
head4.gotoAndStop(_arg1);
head5.gotoAndStop(_arg1);
head6.gotoAndStop(_arg1);
if (lowerHead1){
lowerHead1.gotoAndStop(_arg1);
lowerHead2.gotoAndStop(_arg1);
lowerHead3.gotoAndStop(_arg1);
lowerHead4.gotoAndStop(_arg1);
lowerHead5.gotoAndStop(_arg1);
lowerHead6.gotoAndStop(_arg1);
};
_local2 = Math.floor(_headDamageNum);
if (_local2 > 6){
_local2 = 6;
};
this[("head" + _local2)].visible = true;
if (lowerHead1){
this[("lowerHead" + _local2)].visible = true;
};
}
}
}//package com.doof.superslapstars
Section 6
//DoofBot (com.doof.superslapstars.DoofBot)
package com.doof.superslapstars {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
public class DoofBot {
private static var doofBotStartURL:String = "http://www.doof.com/spoof/doofbot/ping/start/";
private static var doofBotEndURL:String = "http://www.doof.com/spoof/doofbot/ping/end/";
private static var doofBotInitURL:String = "http://www.doof.com/spoof/doofbot/ping/init/";
public function DoofBot(){
trace("no instantiation needed, please use the static methods");
}
public static function init(_arg1:Object, _arg2:String):void{
var gameID:String;
var hostURL:String;
var sendVars:URLVariables;
var request:URLRequest;
var loader:URLLoader;
var trackCompleteHandler:Function;
var trackErrorHandler:Function;
var stageRef = _arg1;
var gameName = _arg2;
trackCompleteHandler = function (_arg1:Event):void{
var _local2:URLLoader;
trace("DoofBot tracking info sent!");
_local2 = URLLoader(_arg1.target);
trace(("DoofBot php sent me: " + _local2.data.toString()));
};
trackErrorHandler = function (_arg1:IOErrorEvent):void{
trace("Sorry, DoofBot tracking failed!");
trace(("Error: " + _arg1));
};
Security.allowDomain("*");
Security.allowInsecureDomain("*");
gameID = gameName;
hostURL = stageRef.loaderInfo.url;
trace(("DoofBot gameID: " + gameID));
trace(("DoofBot hostURL: " + hostURL));
sendVars = new URLVariables();
sendVars.gameID = gameID;
sendVars.hostURL = hostURL;
sendVars.rnd = Math.floor((Math.random() * 1000));
request = new URLRequest(doofBotInitURL);
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
request.data = sendVars;
request.method = URLRequestMethod.POST;
loader.addEventListener(Event.COMPLETE, trackCompleteHandler);
loader.addEventListener(IOErrorEvent.IO_ERROR, trackErrorHandler);
loader.load(request);
}
public static function end(_arg1:Object, _arg2:String):void{
var gameID:String;
var hostURL:String;
var sendVars:URLVariables;
var request:URLRequest;
var loader:URLLoader;
var trackCompleteHandler:Function;
var trackErrorHandler:Function;
var stageRef = _arg1;
var gameName = _arg2;
trackCompleteHandler = function (_arg1:Event):void{
var _local2:URLLoader;
trace("DoofBot tracking info sent!");
_local2 = URLLoader(_arg1.target);
trace(("DoofBot php sent me: " + _local2.data.toString()));
};
trackErrorHandler = function (_arg1:IOErrorEvent):void{
trace("Sorry, DoofBot tracking failed!");
trace(("Error: " + _arg1));
};
Security.allowDomain("*");
Security.allowInsecureDomain("*");
gameID = gameName;
hostURL = stageRef.loaderInfo.url;
trace(("DoofBot gameID: " + gameID));
trace(("DoofBot hostURL: " + hostURL));
sendVars = new URLVariables();
sendVars.gameID = gameID;
sendVars.hostURL = hostURL;
sendVars.rnd = Math.floor((Math.random() * 1000));
request = new URLRequest(doofBotEndURL);
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
request.data = sendVars;
request.method = URLRequestMethod.POST;
loader.addEventListener(Event.COMPLETE, trackCompleteHandler);
loader.addEventListener(IOErrorEvent.IO_ERROR, trackErrorHandler);
loader.load(request);
}
public static function start(_arg1:Object, _arg2:String):void{
var gameID:String;
var hostURL:String;
var sendVars:URLVariables;
var request:URLRequest;
var loader:URLLoader;
var trackCompleteHandler:Function;
var trackErrorHandler:Function;
var stageRef = _arg1;
var gameName = _arg2;
trackCompleteHandler = function (_arg1:Event):void{
var _local2:URLLoader;
trace("DoofBot tracking info sent!");
_local2 = URLLoader(_arg1.target);
trace(("DoofBot php sent me: " + _local2.data.toString()));
};
trackErrorHandler = function (_arg1:IOErrorEvent):void{
trace("Sorry, DoofBot tracking failed!");
trace(("Error: " + _arg1));
};
Security.allowDomain("*");
Security.allowInsecureDomain("*");
gameID = gameName;
hostURL = stageRef.loaderInfo.url;
trace(("DoofBot gameID: " + gameID));
trace(("DoofBot hostURL: " + hostURL));
sendVars = new URLVariables();
sendVars.gameID = gameID;
sendVars.hostURL = hostURL;
sendVars.rnd = Math.floor((Math.random() * 1000));
request = new URLRequest(doofBotStartURL);
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
request.data = sendVars;
request.method = URLRequestMethod.POST;
loader.addEventListener(Event.COMPLETE, trackCompleteHandler);
loader.addEventListener(IOErrorEvent.IO_ERROR, trackErrorHandler);
loader.load(request);
}
}
}//package com.doof.superslapstars
Section 7
//Game (com.doof.superslapstars.Game)
package com.doof.superslapstars {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
import flash.geom.*;
public class Game extends MovieClip {
public var _mouseTrail:Boolean;// = false
private var _evadeSpeed:Number;
private var _recoverTimer:Timer;
private var _lastMouseX:int;
public var _badGuyDead:Boolean;
private var _lastMouseY:int;
private var _side:int;
private var _recoverTimeLimit:int;// = 1000
public var badGuyHolder:MovieClip;
private var _nextLevelCall:Boolean;// = false
private var _globalisedTargetPoint:Point;
private var _counterTimer:Timer;
private var _evadeRadius:Number;
private var _mouseTrailer:MouseTrailer;
private var _counterTimeLimit:int;// = 400
private var _controlMode:String;
public var hud:HUD;
private var _musicChannel:SoundChannel;
public var badGuy:BadGuy;
private var _badSlapStrength:Number;
public var background:MovieClip;
public var hitAnimation:MovieClip;
public var evadeTarget:MovieClip;
public var playerCharacter:MovieClip;
public var KO:MovieClip;
public var _playerDamageNum:Number;// = 1
public var healthBarBaddy:MovieClip;
private var _startCounterTime:int;
private var _evasionTimer:Timer;
public var ready:MovieClip;
private var _evadeTimeLimit:int;// = 1000
public var healthBarPlayer:MovieClip;
public var flash:MovieClip;
private var _scoreStartTime:int;
public function Game(){
_mouseTrailer = new MouseTrailer();
_mouseTrail = false;
_playerDamageNum = 1;
_evadeTimeLimit = 1000;
_recoverTimeLimit = 1000;
hud = new HUD();
_counterTimeLimit = 400;
_nextLevelCall = false;
super();
}
private function killBadGuy():void{
var _local1:Sound;
var _local2:int;
var _local3:int;
var _local4:Number;
if (!_badGuyDead){
_badGuyDead = true;
badGuy.showHit3();
hud.turnTimer.stopActionTimer();
_local1 = new EnemyScream1SND();
_local1.play(0, 1);
KO.gotoAndPlay("win");
_local2 = (getTimer() - _scoreStartTime);
_local3 = (7 - Math.floor(_playerDamageNum));
_local4 = ((_local3 * 10000000) / _local2);
Object(parent)._totalScore = (Object(parent)._totalScore + _local4);
trace(Object(parent)._totalScore);
};
}
private function setupHandlers():void{
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
hud.attackBTN.addEventListener(MouseEvent.MOUSE_DOWN, attackHandler);
hud.evadeBTN.addEventListener(MouseEvent.MOUSE_DOWN, evadeHandler);
hud.counterBTN.addEventListener(MouseEvent.MOUSE_DOWN, counterHandler);
}
private function enterFrameHandler(_arg1:Event):void{
checkControls();
setLastMouse();
updateHealthHUD();
if (_badGuyDead){
levelComplete();
};
if ((((((((hud.turnTimer.turnSwapRatio <= 0.5)) && ((playerCharacter.currentFrame == 1)))) && (!((_controlMode == "slapping"))))) && (!(_badGuyDead)))){
hud.attackBTN.visible = true;
} else {
hud.attackBTN.visible = false;
};
if ((((((((badGuy.currentLabel == "slap")) && ((playerCharacter.currentLabel == "evade")))) && ((hud.counterBTN.visible == false)))) && (!((_controlMode == "slapping"))))){
startCounterTimer();
};
}
private function startCounterTimer():void{
_startCounterTime = getTimer();
_counterTimer = new Timer(20);
_counterTimer.addEventListener(TimerEvent.TIMER, checkCounterTimer);
_counterTimer.start();
hud.counterBTN.visible = true;
}
private function updateHealthHUD():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = (7 - Math.floor(badGuy._headDamageNum));
_local2 = (7 - Math.floor(_playerDamageNum));
if (_local1 <= 0){
killBadGuy();
};
_local3 = 1;
while (_local3 <= 5) {
if (healthBarBaddy[("h" + _local3)]){
if (_local3 > _local1){
healthBarBaddy[("h" + _local3)].visible = false;
} else {
healthBarBaddy[("h" + _local3)].visible = true;
};
};
if (_local3 > _local2){
healthBarPlayer[("h" + _local3)].visible = false;
} else {
healthBarPlayer[("h" + _local3)].visible = true;
};
if (_local2 == 0){
if (!_nextLevelCall){
_nextLevelCall = true;
_mouseTrailer.kill();
stopHandlers();
_musicChannel.stop();
Object(parent).nextLevel();
};
};
_local3++;
};
}
private function startEnemyRecover():void{
_recoverTimer = new Timer(_recoverTimeLimit);
_recoverTimer.addEventListener(TimerEvent.TIMER, endEnemyRecover);
_recoverTimer.start();
}
private function slap():void{
var _local1:int;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Sound;
var _local14:Sound;
if (mouseX > _globalisedTargetPoint.x){
_local1 = 1;
} else {
_local1 = -1;
};
_local2 = Math.sqrt((Math.pow((mouseX - _lastMouseX), 2) + Math.pow((mouseY - _lastMouseY), 2)));
_local3 = Math.sqrt((Math.pow((_globalisedTargetPoint.x - mouseX), 2) + Math.pow((_globalisedTargetPoint.y - mouseY), 2)));
if ((((((_local3 < _evadeRadius)) && ((_local2 < _evadeSpeed)))) && ((_side == 1)))){
startEnemyEvade();
_mouseTrail = false;
_controlMode = "";
return;
};
if (((!((_side == _local1))) && ((_side == 1)))){
_local4 = Math.abs((mouseX - _lastMouseX));
_local5 = ((mouseY - _lastMouseY) / _local4);
_local6 = Math.abs((_globalisedTargetPoint.x - _lastMouseX));
_local7 = _globalisedTargetPoint.x;
_local8 = (_lastMouseY + (_local5 * _local6));
playerCharacter.gotoAndPlay("slap");
_local9 = Math.sqrt((Math.pow((_globalisedTargetPoint.x - _local7), 2) + Math.pow((_globalisedTargetPoint.y - _local8), 2)));
if (_local9 < badGuy.target.height){
_local10 = Math.sqrt((Math.pow((mouseX - _lastMouseX), 2) + Math.pow((mouseY - _lastMouseY), 2)));
if (_local10 > 100){
_local10 = 100;
};
if (_local9 < (badGuy.target.height / 2)){
_local11 = (1 / ((_local9 / (badGuy.target.height / 2)) + 1));
_local12 = (_local10 * _local11);
screenFlash();
hitAnimation.animation.visible = true;
hitAnimation.animation.gotoAndPlay(1);
badGuy._headDamageNum = (badGuy._headDamageNum + (_local12 / 100));
if (_local10 > 85){
badGuy.showHit2();
startEnemyRecover();
screenFlash();
_local13 = new Slap1SND();
_local13.play(100, 1);
} else {
badGuy.showHit1();
startEnemyRecover();
screenFlash();
_local14 = new Slap2SND();
_local14.play(100, 1);
};
} else {
startEnemyEvade();
_mouseTrail = false;
_controlMode = "";
};
_mouseTrail = false;
_controlMode = "";
} else {
startEnemyEvade();
_mouseTrail = false;
_controlMode = "";
};
};
_side = _local1;
}
private function evade():void{
var _local1:Sound;
if (evadeTarget.hitTestPoint(mouseX, mouseY)){
_mouseTrail = false;
_controlMode = "";
playerCharacter.gotoAndPlay("evade");
_local1 = new Evade1SND();
_local1.play(0, 1);
};
}
public function nextLevel():void{
_mouseTrailer.kill();
stopHandlers();
Object(parent).nextLevel();
}
private function stopHandlers():void{
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
hud.attackBTN.removeEventListener(MouseEvent.MOUSE_DOWN, attackHandler);
hud.evadeBTN.removeEventListener(MouseEvent.MOUSE_DOWN, evadeHandler);
hud.counterBTN.removeEventListener(MouseEvent.MOUSE_DOWN, counterHandler);
}
private function actionCallback(_arg1:String):void{
var _local2:Sound;
switch (_arg1){
case "showSlapButton":
_mouseTrail = false;
hud.attackBTN.visible = true;
badGuy.showStanding();
break;
case "hideSlapButton":
hud.attackBTN.visible = false;
break;
case "showEvadeButton":
_mouseTrail = false;
hud.evadeBTN.visible = true;
if ((((badGuy.currentLabel == "standing")) || ((badGuy.currentLabel == "dodging")))){
badGuy.showBackSwing();
};
break;
case "hideEvadeButton":
hud.evadeBTN.visible = false;
if (badGuy.currentLabel == "backswing"){
badGuy.showSlap();
if (playerCharacter.currentLabel != "evade"){
playerCharacter.gotoAndPlay("hit");
_playerDamageNum = (_playerDamageNum + _badSlapStrength);
_mouseTrail = false;
_controlMode = "";
screenFlash();
_local2 = new Slap2SND();
_local2.play(100, 1);
};
};
break;
case "stopSlap":
if (playerCharacter.currentLabel != "evade"){
badGuy.showStanding();
};
break;
default:
trace((("action '" + _arg1) + "' not recognised"));
break;
};
}
private function levelComplete():void{
badGuy.x = (badGuy.x - (2 * 0.7));
badGuy.y = (badGuy.y + (1 * 0.7));
if (badGuy.x < -20){
_musicChannel.stop();
nextLevel();
};
}
private function screenFlash():void{
flash.gotoAndPlay("flash");
}
private function endEnemyEvade(_arg1:TimerEvent):void{
if (badGuy.currentLabel == "dodging"){
badGuy.showStanding();
};
_evasionTimer.removeEventListener(TimerEvent.TIMER, endEnemyEvade);
_evasionTimer.stop();
}
public function init(_arg1:Object):void{
var _local2:Sound;
var _local3:SoundTransform;
var _local4:Point;
trace(Object(parent)._levelNum);
healthBarBaddy.gotoAndStop(Object(parent)._levelNum);
_local2 = new GameMusic1SND();
_musicChannel = _local2.play(0, 999999);
_local3 = _musicChannel.soundTransform;
_local3.volume = 0.15;
_musicChannel.soundTransform = _local3;
hud.turnTimer.actionCallback = actionCallback;
badGuy = BadGuy(badGuyHolder.addChild(new _arg1.baddyCharacter()));
badGuy.x = _arg1.baddyPosition.x;
badGuy.y = _arg1.baddyPosition.y;
badGuy.scaleX = _arg1.baddyScale;
badGuy.scaleY = _arg1.baddyScale;
background.gotoAndStop(_arg1.levelNum);
_badGuyDead = false;
hitAnimation.animation.visible = false;
badGuy.target.visible = false;
_evadeRadius = _arg1.evadeRadius;
_evadeSpeed = _arg1.evadeSpeed;
_badSlapStrength = _arg1.slapStrength;
playerCharacter.gotoAndStop(1);
addChild(_mouseTrailer);
_mouseTrailer.init();
addChild(hud);
hud.evadeBTN.visible = false;
hud.counterBTN.visible = false;
_local4 = new Point(badGuy.target.x, badGuy.target.y);
_globalisedTargetPoint = badGuy.localToGlobal(_local4);
if (mouseX > _globalisedTargetPoint.x){
_side = 1;
} else {
_side = -1;
};
setLastMouse();
setupHandlers();
KO.gotoAndStop(1);
ready.play();
_scoreStartTime = getTimer();
}
private function endCounterTimer():void{
_counterTimer.removeEventListener(TimerEvent.TIMER, checkCounterTimer);
_counterTimer.stop();
hud.counterBTN.visible = false;
}
private function endEnemyRecover(_arg1:TimerEvent):void{
if ((((badGuy.currentLabel == "hit1")) || ((badGuy.currentLabel == "hit2")))){
badGuy.showStanding();
};
_recoverTimer.removeEventListener(TimerEvent.TIMER, endEnemyRecover);
_recoverTimer.stop();
}
private function setLastMouse():void{
_lastMouseX = mouseX;
_lastMouseY = mouseY;
}
private function startEnemyEvade():void{
var _local1:Sound;
badGuy.showDodging();
_evasionTimer = new Timer(_evadeTimeLimit);
_evasionTimer.addEventListener(TimerEvent.TIMER, endEnemyEvade);
_evasionTimer.start();
_local1 = new Evade2SND();
_local1.play(0, 1);
}
private function counterHandler(_arg1:MouseEvent):void{
_mouseTrail = true;
_controlMode = "slapping";
hud.counterBTN.visible = false;
}
private function evadeHandler(_arg1:MouseEvent):void{
_mouseTrail = true;
_controlMode = "evading";
hud.evadeBTN.visible = false;
}
public function startBattle():void{
hud.turnTimer.startActionTimer();
}
private function checkCounterTimer(_arg1:TimerEvent):void{
if ((getTimer() - _startCounterTime) > _counterTimeLimit){
endCounterTimer();
};
}
private function checkControls():void{
switch (_controlMode){
case "evading":
evade();
break;
case "slapping":
slap();
break;
case "countering":
break;
};
}
private function attackHandler(_arg1:MouseEvent):void{
_mouseTrail = true;
_controlMode = "slapping";
hud.attackBTN.visible = false;
}
}
}//package com.doof.superslapstars
Section 8
//Main (com.doof.superslapstars.Main)
package com.doof.superslapstars {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import com.doof.gameconnector.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
public dynamic class Main extends MovieClip {
public var _linksEnabled:Boolean;
private var _screenNum:int;// = 0
private var _splashScreen:SplashScreen;
private var _gameScreen:GameScreen;
public var _totalScore:Number;// = 0
private var _endScreen:EndScreen;
public var _playerName:String;
private var _leaderboard:Leaderboard;
public var _levelNum:int;// = 1
private var _levelDataArray:Array;
private var _entryScreen:EntryScreen;
private var _levelTimer:Timer;
public var _connector:Connector;
private var _screensArray:Array;
public function Main(){
_screenNum = 0;
_screensArray = new Array();
_levelNum = 1;
_levelDataArray = new Array();
_totalScore = 0;
_connector = new Connector();
super();
if (loaderInfo.url.search("doof.com") != -1){
_linksEnabled = false;
} else {
_linksEnabled = true;
};
trace(("links enabled: " + _linksEnabled));
startSplash();
}
private function init():void{
var _local1:Object;
var _local2:Object;
var _local3:Object;
var _local4:Object;
_playerName = "Player";
_local1 = {baddyCharacter:ParisHilton, baddyScale:1, baddyPosition:new Point(306.1, 325.3), levelNum:1, hubLabel:"hilton", slapStrength:1, recoverTime:1000, evadeTime:1000, evadeRadius:150, evadeSpeed:50};
_local2 = {baddyCharacter:AmyWinehouse, baddyScale:0.86, baddyPosition:new Point(240.1, 326.3), levelNum:2, hubLabel:"winehouse", slapStrength:1, recoverTime:1000, evadeTime:1000, evadeRadius:165, evadeSpeed:60};
_local3 = {baddyCharacter:Madonna, baddyScale:0.86, baddyPosition:new Point(285, 360), levelNum:3, hubLabel:"madonna", slapStrength:1.5, recoverTime:1000, evadeTime:1000, evadeRadius:205, evadeSpeed:80};
_local4 = {baddyCharacter:CelineDion, baddyScale:0.86, baddyPosition:new Point(350, 295), levelNum:4, hubLabel:"dion", slapStrength:2, recoverTime:800, evadeTime:1000, evadeRadius:350, evadeSpeed:93};
_levelDataArray.push(_local1);
_levelDataArray.push(_local2);
_levelDataArray.push(_local3);
_levelDataArray.push(_local4);
_screensArray.push(new TitleScreen());
_screensArray.push(new InstructionsScreen());
_screensArray.push(new ConfessionsScreen());
_screensArray.push(new HubScreen());
_screensArray.push(new HiltonSays());
_screensArray.push("game");
_screensArray.push(new HiltonSays());
_screensArray.push(new HubScreen());
_screensArray.push(new WinehouseSays());
_screensArray.push("game");
_screensArray.push(new WinehouseSays());
_screensArray.push(new HubScreen());
_screensArray.push(new MadonnaSays());
_screensArray.push("game");
_screensArray.push(new MadonnaSays());
_screensArray.push(new HubScreen());
_screensArray.push(new DionSays());
_screensArray.push("game");
_screensArray.push(new DionSays());
setupScreenHandlers();
showScreen();
}
public function finishAd():void{
_splashScreen.play();
}
public function nextScreen():void{
_screenNum++;
trace(_screenNum);
if (_screenNum == 19){
gameOver();
} else {
removeChild(_screensArray[(_screenNum - 1)]);
showScreen();
};
}
private function getURL(_arg1:String, _arg2:String=null):void{
var req:URLRequest;
var url = _arg1;
var window = _arg2;
req = new URLRequest(url);
try {
navigateToURL(req, window);
} catch(e:Error) {
trace("Navigate to URL failed", e.message);
};
}
private function clickNextScreenHandler(_arg1:MouseEvent):void{
if (_screenNum == 4){
DoofBot.start(this, "SuperSlapStar");
};
nextScreen();
}
private function startSplash():void{
addChild(_connector);
_connector.gameStarted(0);
DoofBot.init(this, "SuperSlapStar");
stage.frameRate = 30;
_splashScreen = new SplashScreen();
addChild(_splashScreen);
addEventListener(Event.ENTER_FRAME, checkSplash);
if (_linksEnabled){
_splashScreen.addEventListener(MouseEvent.CLICK, doofLinkClickedHandler);
_splashScreen.buttonMode = true;
_splashScreen.useHandCursor = true;
};
}
private function gigyaShare(_arg1:MouseEvent):void{
var mcWF:MovieClip;
var ModuleID:String;
var cfg:Object;
var ldr:Loader;
var url:String;
var urlReq:URLRequest;
var e = _arg1;
Security.allowDomain("cdn.gigya.com");
Security.allowInsecureDomain("cdn.gigya.com");
mcWF = new MovieClip();
addChild(mcWF).name = "mcWF";
mcWF.x = 0;
mcWF.y = 0;
ModuleID = "PostModule1";
cfg = {};
cfg["width"] = "740";
cfg["height"] = "480";
cfg["bookmarkURL"] = "http://www.doof.com/#/games/SuperSlapStar";
cfg["widgetTitle"] = "Super Slap Star";
cfg["advancedTracking"] = "true";
cfg["partner"] = "177341";
cfg["UIConfig"] = "<config><display showDesktop=\"true\" showEmail=\"true\" useTransitions=\"true\" showBookmark=\"true\" codeBoxHeight=\"auto\" showCodeBox=\"true\" showCloseButton=\"true\" bulletinChecked=\"false\" networksWithCodeBox=\"\"></display><body corner-roundness=\"8;8;8;8\"><background frame-color=\"Transparent\" gradient-color-begin=\"#353535\" gradient-color-end=\"#606060\" corner-roundness=\"8;8;8;8\"></background><controls size=\"11\" bold=\"true\"><snbuttons iconsOnly=\"false\" type=\"textUnder\" frame-color=\"#6D0000\" background-color=\"#FFFFFF\" over-background-color=\"#FFFFFF\" color=\"#CACACA\" corner-roundness=\"0;8;8;8\" gradient-color-begin=\"#8A8A8A\" gradient-color-end=\"#000000\" font=\"Arial\" size=\"11\" bold=\"false\" over-gradient-color-begin=\"#AAAAAA\" over-gradient-color-end=\"#000000\" over-color=\"#F4F4F4\" down-color=\"#000000\"><more frame-color=\"Transparent\"></more></snbuttons><textboxes frame-color=\"#000000\" color=\"#AAAAAA\" corner-roundness=\"0;0;0;0\" gradient-color-begin=\"#202020\" gradient-color-end=\"#0B0B0B\" font=\"Arial\" bold=\"false\"><codeboxes color=\"#EAEAEA\" frame-color=\"#8A8A8A\" gradient-color-begin=\"#000000\" font=\"Arial\" bold=\"false\"></codeboxes><inputs frame-color=\"#6D0000\"></inputs><dropdowns frame-color=\"#6D0000\" handle-gradient-color-begin=\"#B60000\" handle-gradient-color-end=\"#6D0000\" handle-over-gradient-color-begin=\"#FF0000\" handle-over-gradient-color-end=\"#DA0000\" handle-down-gradient-color-begin=\"#FF0000\" handle-down-gradient-color-end=\"#6D0000\" background-color=\"#6D0000\" gradient-color-begin=\"#000000\" font=\"Arial\" bold=\"false\"></dropdowns></textboxes><buttons frame-color=\"#FF0000\" gradient-color-begin=\"#FF2424\" gradient-color-end=\"#6D0000\" color=\"#F4F4F4\" corner-roundness=\"0;8;8;8\" font=\"Arial\" size=\"10\" bold=\"false\" down-frame-color=\"#000000\" over-gradient-color-begin=\"#DA0000\" down-gradient-color-begin=\"#910000\" over-gradient-color-end=\"#DA0000\" down-gradient-color-end=\"#FF0000\" over-color=\"#F4F4F4\"><post-buttons gradient-color-begin=\"#FF4949\" gradient-color-end=\"#6D0000\"></post-buttons></buttons><listboxes corner-roundness=\"5;5;5;5\"></listboxes><servicemarker gradient-color-begin=\"#DA0000\" gradient-color-end=\"#DA0000\"></servicemarker></controls><texts color=\"#FFFFFF\" font=\"Arial\" size=\"10\"><privacy color=\"#959595\" size=\"11\"></privacy><headers size=\"11\" bold=\"true\"></headers><labels size=\"11\" bold=\"true\"></labels><messages color=\"#D5D5D5\" frame-thickness=\"0\" corner-roundness=\"0;0;0;0\" gradient-color-begin=\"#B60000\" gradient-color-end=\"#000000\" size=\"11\" bold=\"true\"></messages><links color=\"#DFDFDF\" underline=\"false\" size=\"11\" bold=\"true\" over-color=\"#FFFFFF\"></links></texts></body></config>";
cfg["defaultContent"] = "<object width=\"740\" height=\"480\"> <param name=\"movie\" value=\"http://static.doof.com/content/static/games/SuperSlapStar/SuperSlapStar.swf\"></param> <param name=\"wmode\" value=\"transparent\"></param> <embed src=\"http://static.doof.com/content/static/games/SuperSlapStar/SuperSlapStar.swf\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"740\" height=\"480\"></embed></object>";
cfg["onPostProfile"] = function (_arg1:Object):void{
trace(((((("event fired eventObj.type=" + _arg1.type) + " eventObj.network=") + _arg1.network) + " eventObj.partnerData=") + _arg1.partnerData));
};
cfg["onLoad"] = function (_arg1:Object):void{
trace(((("event fired eventObj.type=" + _arg1.type) + "eventObj.ModuleID=") + _arg1.ModuleID));
};
cfg["onClose"] = function (_arg1:Object):void{
mcWF.visible = false;
removeChild(mcWF);
};
ldr = new Loader();
url = ("http://cdn.gigya.com/WildFire/swf/wildfireInAS3.swf?ModuleID=" + ModuleID);
urlReq = new URLRequest(url);
mcWF[ModuleID] = cfg;
ldr.load(urlReq);
mcWF.addChild(ldr);
}
private function showLeaderboard(_arg1:MouseEvent):void{
if (_entryScreen.playerNameTXT.text.length > 0){
_playerName = _entryScreen.playerNameTXT.text;
};
removeChild(_entryScreen);
_leaderboard = new Leaderboard();
addChild(_leaderboard);
_leaderboard.startPHP(this);
_leaderboard.nextBTN.addEventListener(MouseEvent.CLICK, showEndScreen);
}
private function startLevel():void{
_gameScreen = new GameScreen();
addChild(_gameScreen);
_gameScreen.init(_levelDataArray[(_levelNum - 1)]);
if (_levelNum == 1){
_gameScreen.hud.turnTimer.addActionToArray("showSlapButton", 0);
_gameScreen.hud.turnTimer.addActionToArray("hideSlapButton", 0.5);
_gameScreen.hud.turnTimer.addActionToArray("showEvadeButton", 0.6);
_gameScreen.hud.turnTimer.addActionToArray("hideEvadeButton", 0.75);
_gameScreen.hud.turnTimer.addActionToArray("stopSlap", 0.85);
};
if (_levelNum == 2){
_gameScreen.hud.turnTimer.addActionToArray("showSlapButton", 0);
_gameScreen.hud.turnTimer.addActionToArray("hideSlapButton", 0.5);
_gameScreen.hud.turnTimer.addActionToArray("showEvadeButton", 0.5);
_gameScreen.hud.turnTimer.addActionToArray("hideEvadeButton", 0.7);
_gameScreen.hud.turnTimer.addActionToArray("stopSlap", 0.78);
_gameScreen.hud.turnTimer.addActionToArray("showEvadeButton", 0.78);
_gameScreen.hud.turnTimer.addActionToArray("hideEvadeButton", 0.95);
_gameScreen.hud.turnTimer.addActionToArray("stopSlap", 0.99);
};
if (_levelNum == 3){
_gameScreen.hud.turnTimer.addActionToArray("showSlapButton", 0);
_gameScreen.hud.turnTimer.addActionToArray("hideSlapButton", 0.5);
_gameScreen.hud.turnTimer.addActionToArray("showEvadeButton", 0.5);
_gameScreen.hud.turnTimer.addActionToArray("hideEvadeButton", 0.67);
_gameScreen.hud.turnTimer.addActionToArray("stopSlap", 0.72);
_gameScreen.hud.turnTimer.addActionToArray("showEvadeButton", 0.72);
_gameScreen.hud.turnTimer.addActionToArray("hideEvadeButton", 0.92);
_gameScreen.hud.turnTimer.addActionToArray("stopSlap", 0.99);
};
if (_levelNum == 4){
_gameScreen.hud.turnTimer.addActionToArray("showSlapButton", 0);
_gameScreen.hud.turnTimer.addActionToArray("hideSlapButton", 0.5);
_gameScreen.hud.turnTimer.addActionToArray("showEvadeButton", 0.5);
_gameScreen.hud.turnTimer.addActionToArray("hideEvadeButton", 0.65);
_gameScreen.hud.turnTimer.addActionToArray("stopSlap", 0.69);
_gameScreen.hud.turnTimer.addActionToArray("showEvadeButton", 0.72);
_gameScreen.hud.turnTimer.addActionToArray("hideEvadeButton", 0.95);
_gameScreen.hud.turnTimer.addActionToArray("stopSlap", 0.99);
};
}
public function nextLevel():void{
_gameScreen.hud.turnTimer.stopActionTimer();
if (_gameScreen._badGuyDead){
_screensArray[(_screenNum + 1)].gotoAndPlay("lose");
} else {
_screensArray[(_screenNum + 1)].gotoAndPlay("win");
};
removeChild(_gameScreen);
_levelNum++;
_screenNum++;
showScreen();
}
private function checkSplash(_arg1:Event):void{
if (_splashScreen.currentFrame == 50){
_splashScreen.gotoAndStop(51);
_splashScreen.logo.stop();
MochiAd.showPreGameAd({clip:root, id:"fdc967675551b981", res:"740x480", ad_finished:finishAd});
};
if (_splashScreen.currentFrame >= _splashScreen.totalFrames){
removeEventListener(Event.ENTER_FRAME, checkSplash);
removeChild(_splashScreen);
_splashScreen = null;
init();
};
}
public function restartGame(_arg1:MouseEvent):void{
_endScreen.buttons.playAgainBTN.removeEventListener(MouseEvent.CLICK, restartGame);
removeChild(_endScreen);
_screenNum = 0;
_screensArray = new Array();
_levelNum = 1;
_gameScreen = null;
_splashScreen = null;
_endScreen = null;
_levelDataArray = new Array();
_levelTimer = null;
_totalScore = 0;
startSplash();
}
private function showEndScreen(_arg1:MouseEvent):void{
_connector.gameEnded(_totalScore);
if (_linksEnabled){
removeChild(_leaderboard);
_endScreen = new EndScreen();
_endScreen.buttons.playAgainBTN.score.text = _totalScore;
_endScreen.buttons.playAgainBTN.addEventListener(MouseEvent.CLICK, restartGame);
_endScreen.buttons.buttonMode = true;
_endScreen.buttons.useHandCursor = true;
_endScreen.buttons.shareBTN.addEventListener(MouseEvent.CLICK, gigyaShare);
addChild(_endScreen);
};
}
private function clickNextTextHandler(_arg1:MouseEvent):void{
_screensArray[2].gotoAndPlay("intro_2");
}
private function showScreen():void{
if (_screensArray[_screenNum] == "game"){
stage.frameRate = 60;
startLevel();
} else {
stage.frameRate = 30;
if (_screensArray[(_screenNum + 1)] == "game"){
_screensArray[_screenNum].gotoAndPlay(1);
_screensArray[_screenNum].speech.gotoAndPlay(1);
};
if ((_screensArray[_screenNum] is ConfessionsScreen)){
_screensArray[_screenNum].gotoAndPlay(1);
};
if ((_screensArray[_screenNum] is HubScreen)){
_screensArray[_screenNum].gotoAndPlay(_levelDataArray[(_levelNum - 1)].hubLabel);
};
addChild(_screensArray[_screenNum]);
};
}
private function setupScreenHandlers():void{
_screensArray[0].startBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[1].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[2].nextTextBTN.addEventListener(MouseEvent.CLICK, clickNextTextHandler);
_screensArray[2].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[4].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[6].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[8].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[10].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[12].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[14].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[16].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
_screensArray[18].nextBTN.addEventListener(MouseEvent.CLICK, clickNextScreenHandler);
}
public function gameOver():void{
DoofBot.end(this, "SuperSlapStar");
_totalScore = Math.floor(_totalScore);
if (_screenNum != 19){
removeChild(_screensArray[_screenNum]);
};
trace("gameover!");
_entryScreen = new EntryScreen();
addChild(_entryScreen);
_entryScreen.nextBTN.addEventListener(MouseEvent.CLICK, showLeaderboard);
_entryScreen.doofBTN.addEventListener(MouseEvent.CLICK, doofLinkClickedHandler);
_entryScreen.doofBTN.useHandCursor = true;
_entryScreen.doofBTN.buttonMode = true;
}
private function doofLinkClickedHandler(_arg1:MouseEvent):void{
getURL("http://www.doof.com/?ref=superslapstar", "_blank");
}
}
}//package com.doof.superslapstars
Section 9
//MouseTrailer (com.doof.superslapstars.MouseTrailer)
package com.doof.superslapstars {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class MouseTrailer extends MovieClip {
private var _trailBMP:Bitmap;
private var _lineHolder:Sprite;
private var _lastX:int;// = 0
private var _lastY:int;// = 0
private var _trailBD:BitmapData;
private var _trailLength:int;// = 10
public function MouseTrailer(){
_lastX = 0;
_lastY = 0;
_trailLength = 10;
_lineHolder = new Sprite();
super();
this.blendMode = BlendMode.ADD;
}
private function setHandlers():void{
addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
public function init():void{
_trailBD = new BitmapData(stage.stageWidth, stage.stageHeight, true, 0);
_trailBMP = new Bitmap(_trailBD);
addChild(_trailBMP);
addChild(_lineHolder);
setLastMousePos();
setHandlers();
setFilters();
}
private function enterFrameHandler(_arg1:Event):void{
drawTrailBitmap();
}
private function drawTrailLine():void{
_lineHolder.graphics.lineStyle(3, 0xFFDD00, 1);
_lineHolder.graphics.moveTo(_lastX, _lastY);
_lineHolder.graphics.lineTo(stage.mouseX, stage.mouseY);
}
private function setFilters():void{
var _local1:Array;
var _local2:GlowFilter;
var _local3:Array;
var _local4:*;
_local1 = new Array();
_local2 = new GlowFilter(0xFF0000, 1, 5, 5, 4);
_local1.push(_local2);
_lineHolder.filters = _local1;
_local3 = new Array();
_local4 = new BlurFilter(2, 2, 1);
_local3.push(_local4);
filters = _local3;
}
private function mouseMoveHandler(_arg1:MouseEvent):void{
if (Object(parent)._mouseTrail){
drawTrailLine();
} else {
_lineHolder.graphics.clear();
};
setLastMousePos();
}
public function kill():void{
removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
visible = false;
}
private function setLastMousePos():void{
_lastX = stage.mouseX;
_lastY = stage.mouseY;
}
private function drawTrailBitmap():void{
var _local1:Number;
var _local2:ColorTransform;
_lineHolder.visible = true;
_local1 = 0.53;
_local2 = new ColorTransform(1, 1, 1, _local1, 0, 0, 0, 0);
_trailBD.draw(this, null, null, BlendMode.HARDLIGHT);
_trailBD.colorTransform(_trailBD.rect, _local2);
_trailBMP = new Bitmap(_trailBD);
_lineHolder.visible = false;
_lineHolder.graphics.clear();
}
}
}//package com.doof.superslapstars
Section 10
//PHPLeaderboard (com.doof.superslapstars.PHPLeaderboard)
package com.doof.superslapstars {
import flash.events.*;
import flash.display.*;
import com.adobe.crypto.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
public class PHPLeaderboard extends MovieClip {
public var _parentRef:Object;
public var _team:String;
public var nextBTN:SimpleButton;
public var _timeStamp:String;
public var _hashedKey:String;
public var row1:MovieClip;
public var row2:MovieClip;
public var row3:MovieClip;
public var row4:MovieClip;
public var row7:MovieClip;
public var row9:MovieClip;
public var _stats:String;
public var _score:Number;
public var row5:MovieClip;
public var row6:MovieClip;
public var row8:MovieClip;
public var loadingMC:MovieClip;
public static var key:String = "tof#hn7SRrsnr8h7?ghrioc-xhp9nhnt+h$&";
private function buildHashKey():void{
var _local1:String;
_local1 = MD5.hash("SuperSlapStar").concat(_timeStamp).concat(_parentRef._totalScore);
trace(("Game name MD5: " + MD5.hash("SuperSlapStar")));
trace(("Hashed key before SHA1 " + _local1));
_local1 = getSHA1(_local1);
_hashedKey = _local1;
trace(("hashed key after SHA1: " + _local1));
sendScore();
}
private function sendCompleteHandler(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
trace(("php sent me: " + _local2.data.toString()));
loadIndividuals();
}
private function loadIndividuals():void{
var _local1:URLVariables;
var _local2:URLRequest;
var _local3:URLLoader;
_local1 = new URLVariables();
_local1.score = _parentRef._totalScore;
_local1.player = _parentRef._playerName;
_local1.gameID = "SuperSlapStar";
_local1.rnd = Math.floor((Math.random() * 1000));
_local2 = new URLRequest("http://apps.doof.com/spoof/leaderboard/index.php/scores/get_individual/");
_local3 = new URLLoader();
_local3.dataFormat = URLLoaderDataFormat.TEXT;
_local2.data = _local1;
_local2.method = URLRequestMethod.POST;
_local3.addEventListener(Event.COMPLETE, individualsCompleteHandler);
_local3.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_local3.load(_local2);
}
private function sendData(_arg1:String, _arg2:Object):void{
var _local3:URLRequest;
var _local4:URLLoader;
_local3 = new URLRequest(_arg1);
_local4 = new URLLoader();
_local4.dataFormat = URLLoaderDataFormat.TEXT;
_local3.data = _arg2;
_local3.method = URLRequestMethod.POST;
_local4.addEventListener(Event.COMPLETE, sendCompleteHandler);
_local4.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_local4.load(_local3);
}
private function getSHA1(_arg1:String):String{
var _local2:String;
_local2 = SHA1.hash(_arg1);
return (_local2);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("io error generated by " + _arg1.target));
}
public function TestPHPResults():void{
}
private function loadTimeCompleteHandler(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
trace(("time received: " + _local2.data.toString()));
_timeStamp = _local2.data.toString();
buildHashKey();
}
public function startPHP(_arg1:Object):void{
_parentRef = _arg1;
trace("starting PHP");
Security.allowDomain("*");
Security.allowInsecureDomain("*");
trace("loading crossdomain policy from http://apps.doof.com/crossdomain.xml");
Security.loadPolicyFile("http://apps.doof.com/crossdomain.xml");
loadTimeURL("http://apps.doof.com/spoof/leaderboard/timestamp/get/");
}
private function loadTimeURL(_arg1:String):void{
var rnd:Number;
var loader:URLLoader;
var request:URLRequest;
var urlString = _arg1;
rnd = Math.floor((Math.random() * 1000));
urlString = urlString.concat(rnd);
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadTimeCompleteHandler);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
request = new URLRequest(urlString);
try {
loader.load(request);
} catch(error:Error) {
trace("Unable to load requested document.");
};
}
public function displayInd(_arg1:Array):void{
var _local2:int;
var _local3:int;
var _local4:int;
_local2 = 0;
while ((((_local2 < _arg1.length)) && ((_local2 < 9)))) {
_local4 = (_local2 + 1);
this[("row" + _local4)].gotoAndStop(1);
if ((((_arg1[_local2].score == Object(parent)._totalScore)) && ((_arg1[_local2].name == Object(parent)._playerName)))){
this[("row" + _local4)].gotoAndStop(2);
this[("row" + _local4)].rank.textColor = "0x000000";
this[("row" + _local4)].playerName.textColor = "0x000000";
this[("row" + _local4)].score.textColor = "0x000000";
};
if ((((_arg1[_local2].rank == null)) || ((_arg1[_local2].rank == undefined)))){
_arg1[_local2].rank = "";
};
if ((((_arg1[_local2].name == null)) || ((_arg1[_local2].name == undefined)))){
_arg1[_local2].name = "";
};
if ((((_arg1[_local2].score == null)) || ((_arg1[_local2].score == undefined)))){
_arg1[_local2].score = "";
};
this[("row" + _local4)].rank.text = _arg1[_local2].rank;
this[("row" + _local4)].playerName.text = _arg1[_local2].name;
this[("row" + _local4)].score.text = _arg1[_local2].score;
_local2++;
};
_local3 = (_arg1.length + 1);
while (_local3 <= 9) {
this[("row" + _local3)].visible = false;
_local3++;
};
}
public function readIndividualString(_arg1:String):Array{
var _local2:String;
var _local3:Array;
var _local4:Array;
var _local5:int;
var _local6:int;
var _local7:Array;
var _local8:Object;
_local2 = _arg1;
trace(("string before: " + _local2));
if (_local2.substr(_local2.length, -1) == "|"){
_local2 = _local2.substr(0, (_local2.length - 1));
};
trace(("string after: " + _local2));
_local3 = new Array();
_local4 = _local2.split("|");
_local5 = 0;
while (_local5 < _local4.length) {
_local7 = _local4[_local5].split(",");
trace(_local7.toString());
_local8 = {rank:_local7[0], name:_local7[2], score:_local7[1]};
_local3.push(_local8);
_local5++;
};
_local6 = 0;
while (_local6 < _local3.length) {
_local8 = _local3[_local6];
trace(_local8.rank);
trace(_local8.name);
trace(_local8.score);
_local6++;
};
return (_local3);
}
private function individualsCompleteHandler(_arg1:Event):void{
var _local2:URLLoader;
var _local3:String;
var _local4:*;
_local2 = URLLoader(_arg1.target);
_local3 = _local2.data.toString();
trace(("individual scores received: " + _local3));
loadingMC.visible = false;
_local4 = new Array();
_local4 = readIndividualString(_local3);
displayInd(_local4);
}
private function sendScore():void{
var _local1:URLVariables;
_local1 = new URLVariables();
_local1.key = _hashedKey;
_local1.score = _parentRef._totalScore;
_local1.player = _parentRef._playerName;
_local1.gameID = "SuperSlapStar";
_local1.rnd = Math.floor((Math.random() * 1000));
trace(("Flash is sending vars: " + _local1.toString()));
sendData("http://apps.doof.com/spoof/leaderboard/index.php/scores/process/", _local1);
}
}
}//package com.doof.superslapstars
Section 11
//SlapTurnTimer (com.doof.superslapstars.SlapTurnTimer)
package com.doof.superslapstars {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class SlapTurnTimer extends MovieClip {
public var playerIcon:MovieClip;
public var baddyIcon:MovieClip;
private var actionNumber:int;// = 0
public var turnSwapRatio:Number;
public var timer:MovieClip;
private var actionsArray:Array;
private var lastActionTime:int;
private var turnSwapTime:int;// = 5500
private var actionTimer:Timer;
public var actionCallback:Function;
public function SlapTurnTimer(){
turnSwapTime = 5500;
actionNumber = 0;
actionsArray = new Array();
super();
}
public function addActionToArray(_arg1:String, _arg2:Number):void{
var _local3:Object;
_local3 = {actionName:_arg1, actionTime:_arg2};
actionsArray.push(_local3);
}
private function checkActionTimer(_arg1:TimerEvent):void{
var _local2:Number;
turnSwapRatio = ((getTimer() - lastActionTime) / turnSwapTime);
if (actionNumber < actionsArray.length){
if (turnSwapRatio > actionsArray[actionNumber].actionTime){
actionCallback(actionsArray[actionNumber].actionName);
actionNumber++;
};
};
if (turnSwapRatio >= 1){
actionNumber = 0;
lastActionTime = getTimer();
};
if (turnSwapRatio <= 0.5){
playerIcon.gotoAndStop(1);
baddyIcon.gotoAndStop(2);
timer.bezel.baddy.visible = false;
timer.bezel.player.visible = true;
_local2 = (-(turnSwapRatio) * 360);
timer.bezel.rotation = _local2;
} else {
playerIcon.gotoAndStop(2);
baddyIcon.gotoAndStop(1);
timer.bezel.baddy.visible = true;
timer.bezel.player.visible = false;
_local2 = (turnSwapRatio * 360);
timer.bezel.rotation = _local2;
};
}
public function stopActionTimer():void{
actionTimer.removeEventListener(TimerEvent.TIMER, checkActionTimer);
actionTimer.stop();
}
public function startActionTimer():void{
lastActionTime = getTimer();
actionTimer = new Timer(10);
actionTimer.addEventListener(TimerEvent.TIMER, checkActionTimer);
actionTimer.start();
}
}
}//package com.doof.superslapstars
Section 12
//bar_individual_333 (SuperSlapStars_fla.bar_individual_333)
package SuperSlapStars_fla {
import flash.display.*;
import flash.text.*;
public dynamic class bar_individual_333 extends MovieClip {
public var playerName:TextField;
public var rank:TextField;
public var score:TextField;
public function bar_individual_333(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 13
//bgs_2 (SuperSlapStars_fla.bgs_2)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class bgs_2 extends MovieClip {
public function bgs_2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 14
//buttons_299 (SuperSlapStars_fla.buttons_299)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class buttons_299 extends MovieClip {
public var doofLinkBTN:MovieClip;
public var playAgainBTN:MovieClip;
public var shareBTN:MovieClip;
}
}//package SuperSlapStars_fla
Section 15
//celinefaces1_119 (SuperSlapStars_fla.celinefaces1_119)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class celinefaces1_119 extends MovieClip {
public function celinefaces1_119(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 16
//celinefaces2_118 (SuperSlapStars_fla.celinefaces2_118)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class celinefaces2_118 extends MovieClip {
public function celinefaces2_118(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 17
//celinefaces3_117 (SuperSlapStars_fla.celinefaces3_117)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class celinefaces3_117 extends MovieClip {
public function celinefaces3_117(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 18
//celinefaces4_116 (SuperSlapStars_fla.celinefaces4_116)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class celinefaces4_116 extends MovieClip {
public function celinefaces4_116(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 19
//celinefaces6_115 (SuperSlapStars_fla.celinefaces6_115)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class celinefaces6_115 extends MovieClip {
public function celinefaces6_115(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 20
//celinefaces7_114 (SuperSlapStars_fla.celinefaces7_114)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class celinefaces7_114 extends MovieClip {
public function celinefaces7_114(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 21
//combine_text_270 (SuperSlapStars_fla.combine_text_270)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class combine_text_270 extends MovieClip {
public function combine_text_270(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 22
//dion_says_lose_295 (SuperSlapStars_fla.dion_says_lose_295)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class dion_says_lose_295 extends MovieClip {
public function dion_says_lose_295(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 23
//dion_says_pre_284 (SuperSlapStars_fla.dion_says_pre_284)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class dion_says_pre_284 extends MovieClip {
public function dion_says_pre_284(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 24
//dion_says_win_289 (SuperSlapStars_fla.dion_says_win_289)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class dion_says_win_289 extends MovieClip {
public function dion_says_win_289(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 25
//enemyIcon_47 (SuperSlapStars_fla.enemyIcon_47)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class enemyIcon_47 extends MovieClip {
public function enemyIcon_47(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 26
//flash_24 (SuperSlapStars_fla.flash_24)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class flash_24 extends MovieClip {
public function flash_24(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package SuperSlapStars_fla
Section 27
//healthBarPlayer_9 (SuperSlapStars_fla.healthBarPlayer_9)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class healthBarPlayer_9 extends MovieClip {
public var h1:MovieClip;
public var h2:MovieClip;
public var h4:MovieClip;
public var h5:MovieClip;
public var h3:MovieClip;
}
}//package SuperSlapStars_fla
Section 28
//healthBarWinehouse_14 (SuperSlapStars_fla.healthBarWinehouse_14)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class healthBarWinehouse_14 extends MovieClip {
public var h1:MovieClip;
public var h2:MovieClip;
public var h4:MovieClip;
public var h5:MovieClip;
public var h3:MovieClip;
public function healthBarWinehouse_14(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 29
//hearts_45 (SuperSlapStars_fla.hearts_45)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class hearts_45 extends MovieClip {
public function hearts_45(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package SuperSlapStars_fla
Section 30
//hilton_says_lose_222 (SuperSlapStars_fla.hilton_says_lose_222)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class hilton_says_lose_222 extends MovieClip {
public function hilton_says_lose_222(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 31
//hilton_says_pre_212 (SuperSlapStars_fla.hilton_says_pre_212)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class hilton_says_pre_212 extends MovieClip {
public function hilton_says_pre_212(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 32
//hilton_says_win_217 (SuperSlapStars_fla.hilton_says_win_217)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class hilton_says_win_217 extends MovieClip {
public function hilton_says_win_217(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 33
//hitAnimation_20 (SuperSlapStars_fla.hitAnimation_20)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class hitAnimation_20 extends MovieClip {
public var animation:MovieClip;
}
}//package SuperSlapStars_fla
Section 34
//intro_text_1_173 (SuperSlapStars_fla.intro_text_1_173)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class intro_text_1_173 extends MovieClip {
public function intro_text_1_173(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 35
//intro_text_2_177 (SuperSlapStars_fla.intro_text_2_177)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class intro_text_2_177 extends MovieClip {
public function intro_text_2_177(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 36
//KO_29 (SuperSlapStars_fla.KO_29)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class KO_29 extends MovieClip {
public function KO_29(){
addFrameScript(0, frame1, 38, frame39, 73, frame74);
}
function frame74(){
stop();
}
function frame1(){
stop();
}
function frame39(){
stop();
}
}
}//package SuperSlapStars_fla
Section 37
//madonna_says_lose_268 (SuperSlapStars_fla.madonna_says_lose_268)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonna_says_lose_268 extends MovieClip {
public function madonna_says_lose_268(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 38
//madonna_says_pre_254 (SuperSlapStars_fla.madonna_says_pre_254)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonna_says_pre_254 extends MovieClip {
public function madonna_says_pre_254(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 39
//madonna_says_win_262 (SuperSlapStars_fla.madonna_says_win_262)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonna_says_win_262 extends MovieClip {
public function madonna_says_win_262(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 40
//madonnalower1_97 (SuperSlapStars_fla.madonnalower1_97)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonnalower1_97 extends MovieClip {
public function madonnalower1_97(){
addFrameScript(3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package SuperSlapStars_fla
Section 41
//madonnalower2_96 (SuperSlapStars_fla.madonnalower2_96)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonnalower2_96 extends MovieClip {
public function madonnalower2_96(){
addFrameScript(3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package SuperSlapStars_fla
Section 42
//madonnalower3_95 (SuperSlapStars_fla.madonnalower3_95)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonnalower3_95 extends MovieClip {
public function madonnalower3_95(){
addFrameScript(3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package SuperSlapStars_fla
Section 43
//madonnalower4_94 (SuperSlapStars_fla.madonnalower4_94)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonnalower4_94 extends MovieClip {
public function madonnalower4_94(){
addFrameScript(3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package SuperSlapStars_fla
Section 44
//madonnalower5_93 (SuperSlapStars_fla.madonnalower5_93)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonnalower5_93 extends MovieClip {
public function madonnalower5_93(){
addFrameScript(3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package SuperSlapStars_fla
Section 45
//madonnalower6_92 (SuperSlapStars_fla.madonnalower6_92)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class madonnalower6_92 extends MovieClip {
public function madonnalower6_92(){
addFrameScript(3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package SuperSlapStars_fla
Section 46
//playAgain_300 (SuperSlapStars_fla.playAgain_300)
package SuperSlapStars_fla {
import flash.display.*;
import flash.text.*;
public dynamic class playAgain_300 extends MovieClip {
public var score:TextField;
}
}//package SuperSlapStars_fla
Section 47
//playerCharacter_4 (SuperSlapStars_fla.playerCharacter_4)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class playerCharacter_4 extends MovieClip {
public function playerCharacter_4(){
addFrameScript(0, frame1, 49, frame50, 90, frame91, 125, frame126);
}
function frame91(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame126(){
gotoAndStop(1);
}
function frame50(){
gotoAndStop(1);
}
}
}//package SuperSlapStars_fla
Section 48
//pow_filter_21 (SuperSlapStars_fla.pow_filter_21)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class pow_filter_21 extends MovieClip {
public function pow_filter_21(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package SuperSlapStars_fla
Section 49
//slap_animation_25 (SuperSlapStars_fla.slap_animation_25)
package SuperSlapStars_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class slap_animation_25 extends MovieClip {
public function slap_animation_25(){
addFrameScript(0, frame1, 73, frame74);
}
function frame74(){
stop();
Object(parent).startBattle();
}
function frame1(){
stop();
}
}
}//package SuperSlapStars_fla
Section 50
//timer_41 (SuperSlapStars_fla.timer_41)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class timer_41 extends MovieClip {
public var bezel:MovieClip;
}
}//package SuperSlapStars_fla
Section 51
//timerBezel_42 (SuperSlapStars_fla.timerBezel_42)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class timerBezel_42 extends MovieClip {
public var baddy:MovieClip;
public var player:MovieClip;
}
}//package SuperSlapStars_fla
Section 52
//winehouse_says_lose_245 (SuperSlapStars_fla.winehouse_says_lose_245)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class winehouse_says_lose_245 extends MovieClip {
public function winehouse_says_lose_245(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 53
//winehouse_says_pre_229 (SuperSlapStars_fla.winehouse_says_pre_229)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class winehouse_says_pre_229 extends MovieClip {
public function winehouse_says_pre_229(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 54
//winehouse_says_win_239 (SuperSlapStars_fla.winehouse_says_win_239)
package SuperSlapStars_fla {
import flash.display.*;
public dynamic class winehouse_says_win_239 extends MovieClip {
public function winehouse_says_win_239(){
addFrameScript(254, frame255);
}
function frame255(){
stop();
}
}
}//package SuperSlapStars_fla
Section 55
//AmyWinehouse (AmyWinehouse)
package {
import com.doof.superslapstars.*;
public dynamic class AmyWinehouse extends BadGuy {
}
}//package
Section 56
//Button_black_downSkin (Button_black_downSkin)
package {
import flash.display.*;
public dynamic class Button_black_downSkin extends MovieClip {
}
}//package
Section 57
//Button_black_overSkin (Button_black_overSkin)
package {
import flash.display.*;
public dynamic class Button_black_overSkin extends MovieClip {
}
}//package
Section 58
//Button_black_upSkin_static (Button_black_upSkin_static)
package {
import flash.display.*;
public dynamic class Button_black_upSkin_static extends MovieClip {
}
}//package
Section 59
//CelineDion (CelineDion)
package {
import com.doof.superslapstars.*;
public dynamic class CelineDion extends BadGuy {
}
}//package
Section 60
//ConfessionsScreen (ConfessionsScreen)
package {
import flash.display.*;
public dynamic class ConfessionsScreen extends MovieClip {
public var nextBTN:SimpleButton;
public var nextTextBTN:SimpleButton;
public function ConfessionsScreen(){
addFrameScript(184, frame185, 369, frame370);
}
function frame185(){
stop();
}
function frame370(){
stop();
}
}
}//package
Section 61
//DionSays (DionSays)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class DionSays extends MovieClip {
public var nextBTN:SimpleButton;
public var speech:MovieClip;
public function DionSays(){
addFrameScript(279, frame280, 280, frame281, 405, frame406, 529, frame530);
}
function frame281(){
nextBTN.visible = false;
}
function frame280(){
stop();
}
function frame406(){
stop();
Object(parent).gameOver();
}
function frame530(){
stop();
}
}
}//package
Section 62
//EndScreen (EndScreen)
package {
import flash.display.*;
public dynamic class EndScreen extends MovieClip {
public var background:MovieClip;
public var buttons:MovieClip;
}
}//package
Section 63
//EnemyScream1SND (EnemyScream1SND)
package {
import flash.media.*;
public dynamic class EnemyScream1SND extends Sound {
}
}//package
Section 64
//EntryScreen (EntryScreen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class EntryScreen extends MovieClip {
public var nextBTN:SimpleButton;
public var doofBTN:MovieClip;
public var playerNameTXT:TextField;
}
}//package
Section 65
//Evade1SND (Evade1SND)
package {
import flash.media.*;
public dynamic class Evade1SND extends Sound {
}
}//package
Section 66
//Evade2SND (Evade2SND)
package {
import flash.media.*;
public dynamic class Evade2SND extends Sound {
}
}//package
Section 67
//GameMusic1SND (GameMusic1SND)
package {
import flash.media.*;
public dynamic class GameMusic1SND extends Sound {
}
}//package
Section 68
//GameScreen (GameScreen)
package {
import com.doof.superslapstars.*;
public dynamic class GameScreen extends Game {
}
}//package
Section 69
//HiltonSays (HiltonSays)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class HiltonSays extends MovieClip {
public var nextBTN:SimpleButton;
public var speech:MovieClip;
public function HiltonSays(){
addFrameScript(279, frame280, 280, frame281, 445, frame446, 569, frame570);
}
function frame281(){
nextBTN.visible = false;
}
function frame446(){
stop();
Object(parent).gameOver();
}
function frame280(){
stop();
}
function frame570(){
stop();
}
}
}//package
Section 70
//HubScreen (HubScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class HubScreen extends MovieClip {
public function HubScreen(){
addFrameScript(0, frame1, 79, frame80, 159, frame160, 239, frame240, 319, frame320);
}
function frame160(){
stop();
Object(parent).nextScreen();
}
function frame80(){
stop();
Object(parent).nextScreen();
}
function frame320(){
stop();
Object(parent).nextScreen();
}
function frame1(){
stop();
}
function frame240(){
stop();
Object(parent).nextScreen();
}
}
}//package
Section 71
//HUD (HUD)
package {
import flash.display.*;
public dynamic class HUD extends MovieClip {
public var attackBTN:SimpleButton;
public var evadeBTN:SimpleButton;
public var turnTimer:TurnTimer;
public var counterBTN:SimpleButton;
}
}//package
Section 72
//InstructionsScreen (InstructionsScreen)
package {
import flash.display.*;
public dynamic class InstructionsScreen extends MovieClip {
public var nextBTN:SimpleButton;
}
}//package
Section 73
//Leaderboard (Leaderboard)
package {
import com.doof.superslapstars.*;
public dynamic class Leaderboard extends PHPLeaderboard {
}
}//package
Section 74
//Madonna (Madonna)
package {
import com.doof.superslapstars.*;
public dynamic class Madonna extends BadGuy {
}
}//package
Section 75
//MadonnaSays (MadonnaSays)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MadonnaSays extends MovieClip {
public var nextBTN:SimpleButton;
public var speech:MovieClip;
public function MadonnaSays(){
addFrameScript(279, frame280, 280, frame281, 405, frame406, 551, frame552, 615, frame616, 674, frame675);
}
function frame552(){
}
function frame675(){
stop();
if (parent){
Object(parent).nextScreen();
};
}
function frame281(){
nextBTN.visible = false;
}
function frame280(){
stop();
}
function frame616(){
}
function frame406(){
stop();
Object(parent).gameOver();
}
}
}//package
Section 76
//MochiAd (MochiAd)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("2.5");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest((server + ".swf"));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
setTimeout(options.ad_finished, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 77
//ParisHilton (ParisHilton)
package {
import com.doof.superslapstars.*;
public dynamic class ParisHilton extends BadGuy {
}
}//package
Section 78
//Slap1SND (Slap1SND)
package {
import flash.media.*;
public dynamic class Slap1SND extends Sound {
}
}//package
Section 79
//Slap2SND (Slap2SND)
package {
import flash.media.*;
public dynamic class Slap2SND extends Sound {
}
}//package
Section 80
//SplashScreen (SplashScreen)
package {
import flash.display.*;
public dynamic class SplashScreen extends MovieClip {
public var background:MovieClip;
public var logo:MovieClip;
public function SplashScreen(){
addFrameScript(0, frame1, 49, frame50, 64, frame65);
}
function frame65(){
stop();
}
function frame1(){
logo.x = (stage.stageWidth / 2);
logo.y = (stage.stageHeight / 2);
background.width = stage.stageWidth;
background.height = stage.stageHeight;
}
function frame50(){
logo.stop();
}
}
}//package
Section 81
//TitleScreen (TitleScreen)
package {
import flash.display.*;
public dynamic class TitleScreen extends MovieClip {
public var startBTN:SimpleButton;
}
}//package
Section 82
//TurnTimer (TurnTimer)
package {
import com.doof.superslapstars.*;
public dynamic class TurnTimer extends SlapTurnTimer {
}
}//package
Section 83
//WinehouseSays (WinehouseSays)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class WinehouseSays extends MovieClip {
public var nextBTN:SimpleButton;
public var speech:MovieClip;
public function WinehouseSays(){
addFrameScript(279, frame280, 280, frame281, 405, frame406, 540, frame541);
}
function frame281(){
nextBTN.visible = false;
}
function frame280(){
stop();
}
function frame406(){
stop();
Object(parent).gameOver();
}
function frame541(){
stop();
}
}
}//package