Section 1
//NewgroundsAPIAsset_API_Conencted_4 (APIConnector_fla.NewgroundsAPIAsset_API_Conencted_4)
package APIConnector_fla {
import flash.display.*;
import com.newgrounds.components.*;
public dynamic class NewgroundsAPIAsset_API_Conencted_4 extends MovieClip {
public function NewgroundsAPIAsset_API_Conencted_4(){
addFrameScript(36, this.frame37);
}
function frame37(){
APIConnector(parent).clear();
}
}
}//package APIConnector_fla
Section 2
//NewgroundsAPIAsset_ConnectingAPI_2 (APIConnector_fla.NewgroundsAPIAsset_ConnectingAPI_2)
package APIConnector_fla {
import flash.display.*;
public dynamic class NewgroundsAPIAsset_ConnectingAPI_2 extends MovieClip {
public function NewgroundsAPIAsset_ConnectingAPI_2(){
addFrameScript(9, this.frame10);
}
function frame10(){
stop();
}
}
}//package APIConnector_fla
Section 3
//NewgroundsAPIAsset_Connection_Error_7 (APIConnector_fla.NewgroundsAPIAsset_Connection_Error_7)
package APIConnector_fla {
import flash.display.*;
import com.newgrounds.components.*;
public dynamic class NewgroundsAPIAsset_Connection_Error_7 extends MovieClip {
public function NewgroundsAPIAsset_Connection_Error_7(){
addFrameScript(9, this.frame10, 20, this.frame21);
}
function frame10(){
stop();
}
function frame21(){
APIConnector(parent).clear();
}
}
}//package APIConnector_fla
Section 4
//NewgroundsAPIAsset_Load_Indicator_3 (APIConnector_fla.NewgroundsAPIAsset_Load_Indicator_3)
package APIConnector_fla {
import flash.display.*;
import flash.events.*;
public dynamic class NewgroundsAPIAsset_Load_Indicator_3 extends MovieClip {
public function NewgroundsAPIAsset_Load_Indicator_3(){
addFrameScript(0, this.frame1);
}
public function onEnterFrame(_arg1:Event):void{
if (((visible) && (stage))){
rotation = (rotation + 30);
} else {
removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, this.onEnterFrame);
}
}
}//package APIConnector_fla
Section 5
//NewgroundsAPIAsset_Login_Warning_5 (APIConnector_fla.NewgroundsAPIAsset_Login_Warning_5)
package APIConnector_fla {
import flash.display.*;
import com.newgrounds.components.*;
public dynamic class NewgroundsAPIAsset_Login_Warning_5 extends MovieClip {
public function NewgroundsAPIAsset_Login_Warning_5(){
addFrameScript(9, this.frame10, 20, this.frame21);
}
function frame10(){
stop();
}
function frame21(){
APIConnector(parent).clear();
}
}
}//package APIConnector_fla
Section 6
//MD5 (com.adobe.crypto.MD5)
package com.adobe.crypto {
import flash.utils.*;
import com.adobe.utils.*;
public class MD5 {
public static var digest:ByteArray;
public static function hash(_arg1:String):String{
var _local2:ByteArray = new ByteArray();
_local2.writeUTFBytes(_arg1);
return (hashBinary(_local2));
}
public static function hashBytes(_arg1:ByteArray):String{
return (hashBinary(_arg1));
}
public static function hashBinary(_arg1:ByteArray):String{
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local2 = 1732584193;
var _local3 = -271733879;
var _local4 = -1732584194;
var _local5 = 271733878;
var _local10:Array = createBlocks(_arg1);
var _local11:int = _local10.length;
var _local12:int;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 1))], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 3))], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 5))], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 7))], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 9))], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 11))], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 13))], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 15))], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 6))], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 0))], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 10))], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 4))], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 14))], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 8))], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 2))], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 12))], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 8))], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 14))], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 4))], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 10))], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 0))], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 6))], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 12))], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 2))], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 7))], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 5))], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 3))], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 1))], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 15))], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 13))], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 11))], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 9))], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
digest = new ByteArray();
digest.writeInt(_local2);
digest.writeInt(_local3);
digest.writeInt(_local4);
digest.writeInt(_local5);
digest.position = 0;
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
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 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
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 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));
}
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));
}
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 createBlocks(_arg1:ByteArray):Array{
var _local2:Array = new Array();
var _local3:int = (_arg1.length * 8);
var _local4 = 0xFF;
var _local5:int;
while (_local5 < _local3) {
_local2[int((_local5 >> 5))] = (_local2[int((_local5 >> 5))] | ((_arg1[(_local5 / 8)] & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[int((_local3 >> 5))] = (_local2[int((_local3 >> 5))] | (128 << (_local3 % 32)));
_local2[int(((((_local3 + 64) >>> 9) << 4) + 14))] = _local3;
return (_local2);
}
}
}//package com.adobe.crypto
Section 7
//PNGEncoder (com.adobe.images.PNGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class PNGEncoder {
private static var crcTable:Array;
private static var crcTableComputed:Boolean = false;
public static function encode(_arg1:BitmapData):ByteArray{
var _local6:uint;
var _local7:int;
var _local2:ByteArray = new ByteArray();
_local2.writeUnsignedInt(2303741511);
_local2.writeUnsignedInt(218765834);
var _local3:ByteArray = new ByteArray();
_local3.writeInt(_arg1.width);
_local3.writeInt(_arg1.height);
_local3.writeUnsignedInt(134610944);
_local3.writeByte(0);
writeChunk(_local2, 1229472850, _local3);
var _local4:ByteArray = new ByteArray();
var _local5:int;
while (_local5 < _arg1.height) {
_local4.writeByte(0);
if (!_arg1.transparent){
_local7 = 0;
while (_local7 < _arg1.width) {
_local6 = _arg1.getPixel(_local7, _local5);
_local4.writeUnsignedInt(uint((((_local6 & 0xFFFFFF) << 8) | 0xFF)));
_local7++;
};
} else {
_local7 = 0;
while (_local7 < _arg1.width) {
_local6 = _arg1.getPixel32(_local7, _local5);
_local4.writeUnsignedInt(uint((((_local6 & 0xFFFFFF) << 8) | (_local6 >>> 24))));
_local7++;
};
};
_local5++;
};
_local4.compress();
writeChunk(_local2, 1229209940, _local4);
writeChunk(_local2, 1229278788, null);
return (_local2);
}
private static function writeChunk(_arg1:ByteArray, _arg2:uint, _arg3:ByteArray):void{
var _local8:uint;
var _local9:uint;
var _local10:uint;
if (!crcTableComputed){
crcTableComputed = true;
crcTable = [];
_local9 = 0;
while (_local9 < 0x0100) {
_local8 = _local9;
_local10 = 0;
while (_local10 < 8) {
if ((_local8 & 1)){
_local8 = uint((uint(3988292384) ^ uint((_local8 >>> 1))));
} else {
_local8 = uint((_local8 >>> 1));
};
_local10++;
};
crcTable[_local9] = _local8;
_local9++;
};
};
var _local4:uint;
if (_arg3 != null){
_local4 = _arg3.length;
};
_arg1.writeUnsignedInt(_local4);
var _local5:uint = _arg1.position;
_arg1.writeUnsignedInt(_arg2);
if (_arg3 != null){
_arg1.writeBytes(_arg3);
};
var _local6:uint = _arg1.position;
_arg1.position = _local5;
_local8 = 4294967295;
var _local7:int;
while (_local7 < (_local6 - _local5)) {
_local8 = uint((crcTable[((_local8 ^ _arg1.readUnsignedByte()) & uint(0xFF))] ^ uint((_local8 >>> 8))));
_local7++;
};
_local8 = uint((_local8 ^ uint(4294967295)));
_arg1.position = _local6;
_arg1.writeUnsignedInt(_local8);
}
}
}//package com.adobe.images
Section 8
//JSON (com.adobe.serialization.json.JSON)
package com.adobe.serialization.json {
public class JSON {
public static function encode(_arg1:Object):String{
var _local2:JSONEncoder = new JSONEncoder(_arg1);
return (_local2.getString());
}
public static function decode(_arg1:String){
var _local2:JSONDecoder = new JSONDecoder(_arg1);
return (_local2.getValue());
}
}
}//package com.adobe.serialization.json
Section 9
//JSONDecoder (com.adobe.serialization.json.JSONDecoder)
package com.adobe.serialization.json {
public class JSONDecoder {
private var value;
private var tokenizer:JSONTokenizer;
private var token:JSONToken;
public function JSONDecoder(_arg1:String){
this.tokenizer = new JSONTokenizer(_arg1);
this.nextToken();
this.value = this.parseValue();
}
public function getValue(){
return (this.value);
}
private function nextToken():JSONToken{
return ((this.token = this.tokenizer.getNextToken()));
}
private function parseArray():Array{
var _local1:Array = new Array();
this.nextToken();
if (this.token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
while (true) {
_local1.push(this.parseValue());
this.nextToken();
if (this.token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
if (this.token.type == JSONTokenType.COMMA){
this.nextToken();
} else {
this.tokenizer.parseError(("Expecting ] or , but found " + this.token.value));
};
};
return (null);
}
private function parseObject():Object{
var _local2:String;
var _local1:Object = new Object();
this.nextToken();
if (this.token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
while (true) {
if (this.token.type == JSONTokenType.STRING){
_local2 = String(this.token.value);
this.nextToken();
if (this.token.type == JSONTokenType.COLON){
this.nextToken();
_local1[_local2] = this.parseValue();
this.nextToken();
if (this.token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
if (this.token.type == JSONTokenType.COMMA){
this.nextToken();
} else {
this.tokenizer.parseError(("Expecting } or , but found " + this.token.value));
};
} else {
this.tokenizer.parseError(("Expecting : but found " + this.token.value));
};
} else {
this.tokenizer.parseError(("Expecting string but found " + this.token.value));
};
};
return (null);
}
private function parseValue():Object{
if (this.token == null){
this.tokenizer.parseError("Unexpected end of input");
};
switch (this.token.type){
case JSONTokenType.LEFT_BRACE:
return (this.parseObject());
case JSONTokenType.LEFT_BRACKET:
return (this.parseArray());
case JSONTokenType.STRING:
case JSONTokenType.NUMBER:
case JSONTokenType.TRUE:
case JSONTokenType.FALSE:
case JSONTokenType.NULL:
return (this.token.value);
default:
this.tokenizer.parseError(("Unexpected " + this.token.value));
};
return (null);
}
}
}//package com.adobe.serialization.json
Section 10
//JSONEncoder (com.adobe.serialization.json.JSONEncoder)
package com.adobe.serialization.json {
import flash.utils.*;
public class JSONEncoder {
private var jsonString:String;
public function JSONEncoder(_arg1){
this.jsonString = this.convertToString(_arg1);
}
public function getString():String{
return (this.jsonString);
}
private function convertToString(_arg1):String{
if ((_arg1 is String)){
return (this.escapeString((_arg1 as String)));
};
if ((_arg1 is Number)){
return ((isFinite((_arg1 as Number))) ? _arg1.toString() : "null");
} else {
if ((_arg1 is Boolean)){
return ((_arg1) ? "true" : "false");
} else {
if ((_arg1 is Array)){
return (this.arrayToString((_arg1 as Array)));
};
if ((((_arg1 is Object)) && (!((_arg1 == null))))){
return (this.objectToString(_arg1));
};
};
};
return ("null");
}
private function escapeString(_arg1:String):String{
var _local3:String;
var _local6:String;
var _local7:String;
var _local2 = "";
var _local4:Number = _arg1.length;
var _local5:int;
while (_local5 < _local4) {
_local3 = _arg1.charAt(_local5);
switch (_local3){
case "\"":
_local2 = (_local2 + "\\\"");
break;
case "\\":
_local2 = (_local2 + "\\\\");
break;
case "\b":
_local2 = (_local2 + "\\b");
break;
case "\f":
_local2 = (_local2 + "\\f");
break;
case "\n":
_local2 = (_local2 + "\\n");
break;
case "\r":
_local2 = (_local2 + "\\r");
break;
case "\t":
_local2 = (_local2 + "\\t");
break;
default:
if (_local3 < " "){
_local6 = _local3.charCodeAt(0).toString(16);
_local7 = ((_local6.length == 2)) ? "00" : "000";
_local2 = (_local2 + (("\\u" + _local7) + _local6));
} else {
_local2 = (_local2 + _local3);
};
};
_local5++;
};
return ((("\"" + _local2) + "\""));
}
private function arrayToString(_arg1:Array):String{
var _local2 = "";
var _local3:int;
while (_local3 < _arg1.length) {
if (_local2.length > 0){
_local2 = (_local2 + ",");
};
_local2 = (_local2 + this.convertToString(_arg1[_local3]));
_local3++;
};
return ((("[" + _local2) + "]"));
}
private function objectToString(_arg1:Object):String{
var value:Object;
var key:String;
var v:XML;
var o = _arg1;
var s = "";
var classInfo:XML = describeType(o);
if (classInfo.@name.toString() == "Object"){
for (key in o) {
value = o[key];
if ((value is Function)){
} else {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((this.escapeString(key) + ":") + this.convertToString(value)));
};
};
} else {
for each (v in classInfo..*.(((name() == "variable")) || ((name() == "accessor")))) {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((this.escapeString(v.@name.toString()) + ":") + this.convertToString(o[v.@name])));
};
};
return ((("{" + s) + "}"));
}
}
}//package com.adobe.serialization.json
Section 11
//JSONParseError (com.adobe.serialization.json.JSONParseError)
package com.adobe.serialization.json {
public class JSONParseError extends Error {
private var _location:int;
private var _text:String;
public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){
super(_arg1);
name = "JSONParseError";
this._location = _arg2;
this._text = _arg3;
}
public function get location():int{
return (this._location);
}
public function get text():String{
return (this._text);
}
}
}//package com.adobe.serialization.json
Section 12
//JSONToken (com.adobe.serialization.json.JSONToken)
package com.adobe.serialization.json {
public class JSONToken {
private var _type:int;
private var _value:Object;
public function JSONToken(_arg1:int=-1, _arg2:Object=null){
this._type = _arg1;
this._value = _arg2;
}
public function get type():int{
return (this._type);
}
public function set type(_arg1:int):void{
this._type = _arg1;
}
public function get value():Object{
return (this._value);
}
public function set value(_arg1:Object):void{
this._value = _arg1;
}
}
}//package com.adobe.serialization.json
Section 13
//JSONTokenizer (com.adobe.serialization.json.JSONTokenizer)
package com.adobe.serialization.json {
public class JSONTokenizer {
private var obj:Object;
private var jsonString:String;
private var loc:int;
private var ch:String;
public function JSONTokenizer(_arg1:String){
this.jsonString = _arg1;
this.loc = 0;
this.nextChar();
}
public function getNextToken():JSONToken{
var _local2:String;
var _local3:String;
var _local4:String;
var _local1:JSONToken = new JSONToken();
this.skipIgnored();
switch (this.ch){
case "{":
_local1.type = JSONTokenType.LEFT_BRACE;
_local1.value = "{";
this.nextChar();
break;
case "}":
_local1.type = JSONTokenType.RIGHT_BRACE;
_local1.value = "}";
this.nextChar();
break;
case "[":
_local1.type = JSONTokenType.LEFT_BRACKET;
_local1.value = "[";
this.nextChar();
break;
case "]":
_local1.type = JSONTokenType.RIGHT_BRACKET;
_local1.value = "]";
this.nextChar();
break;
case ",":
_local1.type = JSONTokenType.COMMA;
_local1.value = ",";
this.nextChar();
break;
case ":":
_local1.type = JSONTokenType.COLON;
_local1.value = ":";
this.nextChar();
break;
case "t":
_local2 = ((("t" + this.nextChar()) + this.nextChar()) + this.nextChar());
if (_local2 == "true"){
_local1.type = JSONTokenType.TRUE;
_local1.value = true;
this.nextChar();
} else {
this.parseError(("Expecting 'true' but found " + _local2));
};
break;
case "f":
_local3 = (((("f" + this.nextChar()) + this.nextChar()) + this.nextChar()) + this.nextChar());
if (_local3 == "false"){
_local1.type = JSONTokenType.FALSE;
_local1.value = false;
this.nextChar();
} else {
this.parseError(("Expecting 'false' but found " + _local3));
};
break;
case "n":
_local4 = ((("n" + this.nextChar()) + this.nextChar()) + this.nextChar());
if (_local4 == "null"){
_local1.type = JSONTokenType.NULL;
_local1.value = null;
this.nextChar();
} else {
this.parseError(("Expecting 'null' but found " + _local4));
};
break;
case "\"":
_local1 = this.readString();
break;
default:
if (((this.isDigit(this.ch)) || ((this.ch == "-")))){
_local1 = this.readNumber();
} else {
if (this.ch == ""){
return (null);
};
this.parseError((("Unexpected " + this.ch) + " encountered"));
};
};
return (_local1);
}
private function readString():JSONToken{
var _local3:String;
var _local4:int;
var _local1:JSONToken = new JSONToken();
_local1.type = JSONTokenType.STRING;
var _local2 = "";
this.nextChar();
while (((!((this.ch == "\""))) && (!((this.ch == ""))))) {
if (this.ch == "\\"){
this.nextChar();
switch (this.ch){
case "\"":
_local2 = (_local2 + "\"");
break;
case "/":
_local2 = (_local2 + "/");
break;
case "\\":
_local2 = (_local2 + "\\");
break;
case "b":
_local2 = (_local2 + "\b");
break;
case "f":
_local2 = (_local2 + "\f");
break;
case "n":
_local2 = (_local2 + "\n");
break;
case "r":
_local2 = (_local2 + "\r");
break;
case "t":
_local2 = (_local2 + "\t");
break;
case "u":
_local3 = "";
_local4 = 0;
while (_local4 < 4) {
if (!this.isHexDigit(this.nextChar())){
this.parseError((" Excepted a hex digit, but found: " + this.ch));
};
_local3 = (_local3 + this.ch);
_local4++;
};
_local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16)));
break;
default:
_local2 = (_local2 + ("\\" + this.ch));
};
} else {
_local2 = (_local2 + this.ch);
};
this.nextChar();
};
if (this.ch == ""){
this.parseError("Unterminated string literal");
};
this.nextChar();
_local1.value = _local2;
return (_local1);
}
private function readNumber():JSONToken{
var _local1:JSONToken = new JSONToken();
_local1.type = JSONTokenType.NUMBER;
var _local2 = "";
if (this.ch == "-"){
_local2 = (_local2 + "-");
this.nextChar();
};
if (!this.isDigit(this.ch)){
this.parseError("Expecting a digit");
};
if (this.ch == "0"){
_local2 = (_local2 + this.ch);
this.nextChar();
if (this.isDigit(this.ch)){
this.parseError("A digit cannot immediately follow 0");
};
} else {
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this.nextChar();
};
};
if (this.ch == "."){
_local2 = (_local2 + ".");
this.nextChar();
if (!this.isDigit(this.ch)){
this.parseError("Expecting a digit");
};
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this.nextChar();
};
};
if ((((this.ch == "e")) || ((this.ch == "E")))){
_local2 = (_local2 + "e");
this.nextChar();
if ((((this.ch == "+")) || ((this.ch == "-")))){
_local2 = (_local2 + this.ch);
this.nextChar();
};
if (!this.isDigit(this.ch)){
this.parseError("Scientific notation number needs exponent value");
};
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this.nextChar();
};
};
var _local3:Number = Number(_local2);
if (((isFinite(_local3)) && (!(isNaN(_local3))))){
_local1.value = _local3;
return (_local1);
};
this.parseError((("Number " + _local3) + " is not valid!"));
return (null);
}
private function nextChar():String{
return ((this.ch = this.jsonString.charAt(this.loc++)));
}
private function skipIgnored():void{
var _local1:int;
do {
_local1 = this.loc;
this.skipWhite();
this.skipComments();
} while (_local1 != this.loc);
}
private function skipComments():void{
if (this.ch == "/"){
this.nextChar();
switch (this.ch){
case "/":
do {
this.nextChar();
} while (((!((this.ch == "\n"))) && (!((this.ch == "")))));
this.nextChar();
break;
case "*":
this.nextChar();
while (true) {
if (this.ch == "*"){
this.nextChar();
if (this.ch == "/"){
this.nextChar();
break;
};
} else {
this.nextChar();
};
if (this.ch == ""){
this.parseError("Multi-line comment not closed");
};
};
break;
default:
this.parseError((("Unexpected " + this.ch) + " encountered (expecting '/' or '*' )"));
};
};
}
private function skipWhite():void{
while (this.isWhiteSpace(this.ch)) {
this.nextChar();
};
}
private function isWhiteSpace(_arg1:String):Boolean{
return ((((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))) || ((_arg1 == "\r"))));
}
private function isDigit(_arg1:String):Boolean{
return ((((_arg1 >= "0")) && ((_arg1 <= "9"))));
}
private function isHexDigit(_arg1:String):Boolean{
var _local2:String = _arg1.toUpperCase();
return (((this.isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F"))))));
}
public function parseError(_arg1:String):void{
throw (new JSONParseError(_arg1, this.loc, this.jsonString));
}
}
}//package com.adobe.serialization.json
Section 14
//JSONTokenType (com.adobe.serialization.json.JSONTokenType)
package com.adobe.serialization.json {
public class JSONTokenType {
public static const UNKNOWN:int = -1;
public static const COMMA:int = 0;
public static const LEFT_BRACE:int = 1;
public static const RIGHT_BRACE:int = 2;
public static const LEFT_BRACKET:int = 3;
public static const RIGHT_BRACKET:int = 4;
public static const COLON:int = 6;
public static const TRUE:int = 7;
public static const FALSE:int = 8;
public static const NULL:int = 9;
public static const STRING:int = 10;
public static const NUMBER:int = 11;
}
}//package com.adobe.serialization.json
Section 15
//IntUtil (com.adobe.utils.IntUtil)
package com.adobe.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local4:int;
var _local5:int;
var _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);
}
}
}//package com.adobe.utils
Section 16
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var start:Number;
public var name:String;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var priority:int;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 17
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:TweenCore;
var _local5:Number;
var _local6:TweenCore;
_local4 = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.cachedOrphan)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
_arg1.cachedOrphan = false;
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.cachedOrphan){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
_arg1.cachedOrphan = true;
}
}
}//package com.greensock.core
Section 18
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var cachedTime:Number;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var data;
public var timeline:SimpleTimeline;
public var cachedOrphan:Boolean;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.382;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
var _local3:SimpleTimeline;
_rawPrevTime = -1;
super();
this.vars = ((_arg2)!=null) ? _arg2 : {};
this.cachedDuration = (this.cachedTotalDuration = _arg1);
_delay = (this.vars.delay) ? Number(this.vars.delay) : 0;
this.cachedTimeScale = (this.vars.timeScale) ? Number(this.vars.timeScale) : 1;
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
_local3 = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean;
_local2 = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function invalidate():void{
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.totalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore;
_local2 = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
this.gc = !(_arg1);
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.cachedOrphan))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (((!(_arg2)) && (!(this.cachedOrphan)))){
this.timeline.remove(this, true);
};
};
return (false);
}
}
}//package com.greensock.core
Section 19
//Cubic (com.greensock.easing.Cubic)
package com.greensock.easing {
public class Cubic {
public static const power:uint = 2;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return ((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 * 0.5) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 20
//Quad (com.greensock.easing.Quad)
package com.greensock.easing {
public class Quad {
public static const power:uint = 1;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return (((((_arg3 * 0.5) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) * 0.5) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package com.greensock.easing
Section 21
//OverwriteManager (com.greensock.OverwriteManager)
package com.greensock {
import com.greensock.core.*;
public class OverwriteManager {
public static const ALL_ONSTART:int = 4;
public static const CONCURRENT:int = 3;
public static const ALL_IMMEDIATE:int = 1;
public static const PREEXISTING:int = 5;
public static const AUTO:int = 2;
public static const version:Number = 6.02;
public static const NONE:int = 0;
public static var enabled:Boolean;
public static var mode:int;
public static function getGlobalPaused(_arg1:TweenCore):Boolean{
while (_arg1) {
if (_arg1.cachedPaused){
return (true);
};
_arg1 = _arg1.timeline;
};
return (false);
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 11.1){
throw (new Error("Warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com."));
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Object, _arg3:Array, _arg4:uint):Boolean{
var _local5:int;
var _local6:Boolean;
var _local7:TweenLite;
var _local8:Number;
var _local9:Array;
var _local10:Array;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:TweenCore;
var _local17:Number;
var _local18:SimpleTimeline;
if (_arg4 >= 4){
_local13 = _arg3.length;
_local5 = 0;
while (_local5 < _local13) {
_local7 = _arg3[_local5];
if (_local7 != _arg1){
if (_local7.setEnabled(false, false)){
_local6 = true;
};
} else {
if (_arg4 == 5){
break;
};
};
_local5++;
};
return (_local6);
};
_local8 = (_arg1.cachedStartTime + 1E-10);
_local9 = [];
_local10 = [];
_local11 = 0;
_local12 = 0;
_local5 = _arg3.length;
while (--_local5 > -1) {
_local7 = _arg3[_local5];
if ((((_local7 == _arg1)) || (_local7.gc))){
} else {
if (_local7.timeline != _arg1.timeline){
if (!getGlobalPaused(_local7)){
var _temp1 = _local11;
_local11 = (_local11 + 1);
var _local19 = _temp1;
_local10[_local19] = _local7;
};
} else {
if ((((((_local7.cachedStartTime <= _local8)) && ((((_local7.cachedStartTime + _local7.totalDuration) + 1E-10) > _local8)))) && (!(getGlobalPaused(_local7))))){
var _temp2 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp2;
_local9[_local19] = _local7;
};
};
};
};
if (_local11 != 0){
_local14 = _arg1.cachedTimeScale;
_local15 = _local8;
_local18 = _arg1.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.cachedStartTime);
_local18 = _local18.timeline;
};
_local8 = (_local14 * _local15);
_local5 = _local11;
while (--_local5 > -1) {
_local16 = _local10[_local5];
_local14 = _local16.cachedTimeScale;
_local15 = _local16.cachedStartTime;
_local18 = _local16.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.cachedStartTime);
_local18 = _local18.timeline;
};
_local17 = (_local14 * _local15);
if ((((_local17 <= _local8)) && ((((((_local17 + (_local16.totalDuration * _local14)) + 1E-10) > _local8)) || ((_local16.cachedDuration == 0)))))){
var _temp3 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp3;
_local9[_local19] = _local16;
};
};
};
if (_local12 == 0){
return (_local6);
};
_local5 = _local12;
if (_arg4 == 2){
while (--_local5 > -1) {
_local7 = _local9[_local5];
if (_local7.killVars(_arg2)){
_local6 = true;
};
if ((((_local7.cachedPT1 == null)) && (_local7.initted))){
_local7.setEnabled(false, false);
};
};
} else {
while (--_local5 > -1) {
if (TweenLite(_local9[_local5]).setEnabled(false, false)){
_local6 = true;
};
};
};
return (_local6);
}
}
}//package com.greensock
Section 22
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import flash.events.*;
import com.greensock.core.*;
import flash.utils.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
public var target:Object;
public var ratio:Number;// = 0
protected var _overwrite:uint;
protected var _notifyPluginsOfEnabled:Boolean;
protected var _hasPlugins:Boolean;
public var cachedPT1:PropTween;
protected var _overwrittenProps:Object;
public var propTweenLookup:Object;
protected var _ease:Function;
public static const version:Number = 11.36;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:Array;
var _local5:TweenLite;
ratio = 0;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (this.vars.timeScale))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
_local4 = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number;
var _local6:PropTween;
_local5 = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
_local6 = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (this.vars.onInit){
this.vars.onInit.apply(null, this.vars.onInitParams);
};
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (--_local2 > -1) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (((_arg2) && (!((_arg1 == _overwrittenProps))))){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
if ((_arg1 in masterList)){
_local4 = masterList[_arg1];
_local5 = _local4.length;
while (--_local5 > -1) {
_local6 = _local4[_local5];
if (!_local6.gc){
if (_arg2){
_local6.complete(false, false);
};
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
};
if (_arg3 == null){
delete masterList[_arg1];
};
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (--_local5 > -1) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 23
//APIConnector (com.newgrounds.components.APIConnector)
package com.newgrounds.components {
import com.newgrounds.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class APIConnector extends MovieClip {
public var errorDialog:MovieClip;
public var background:MovieClip;
public var viewLatestButton:SimpleButton;
public var closeButton:SimpleButton;
public var viewAuthorizedButton:SimpleButton;
private var _initialized:Boolean;
private var _movieId:String;
private var _encryptionKey:String;
private var _movieVersion:String;
private var _showConnectingPopup:Boolean;// = true
private var _useErrorPopup:Boolean;// = true
private var _medalPopup:MedalPopup;
private var _popDelay:Timer;
public function APIConnector(){
this._popDelay = new Timer(3000, 1);
super();
addFrameScript(0, this.frame1, 6, this.frame7, 7, this.frame8);
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
return;
};
this.useErrorPopup = true;
this.useMedalPopup = true;
this._popDelay.addEventListener(TimerEvent.TIMER, this.errorTimerHandler);
addEventListener(Event.ENTER_FRAME, this.enterFrameHandler);
if (stage){
addEventListener(Event.RENDER, this.renderHandler);
stage.invalidate();
} else {
this.clear();
};
}
public function get movieId():String{
return (this._movieId);
}
public function set movieId(_arg1:String):void{
this._movieId = _arg1;
}
public function get encryptionKey():String{
return (this._encryptionKey);
}
public function set encryptionKey(_arg1:String):void{
this._encryptionKey = _arg1;
}
public function get movieVersion():String{
return (this._movieVersion);
}
public function set movieVersion(_arg1:String):void{
this._movieVersion = _arg1;
}
public function get debugMode():Boolean{
return (API.debugMode);
}
public function set debugMode(_arg1:Boolean):void{
API.debugMode = true;
}
public function get useFakeSession():Boolean{
return (API.getFakeSession());
}
public function set useFakeSession(_arg1:Boolean):void{
API.setFakeSession(true);
}
public function get useMedalPopup():Boolean{
return (!((this._medalPopup == null)));
}
public function set useMedalPopup(_arg1:Boolean):void{
if (((_arg1) && (!(this._medalPopup)))){
this._medalPopup = new MedalPopup();
addChild(this._medalPopup);
} else {
if (((!(_arg1)) && (this._medalPopup))){
removeChild(this._medalPopup);
this._medalPopup = null;
};
};
}
public function get useErrorPopup():Boolean{
return (this._useErrorPopup);
}
public function set useErrorPopup(_arg1:Boolean):void{
this._useErrorPopup = _arg1;
API.addEventListener(APIEvent.API_CONNECTED, this.movieConnectedHandler);
if (this._useErrorPopup){
API.addEventListener(APIEvent.NEW_VERSION_AVAILABLE, this.newVersionAvailableHandler);
API.addEventListener(APIEvent.HOST_BLOCKED, this.hostBlockedHandler);
} else {
API.removeEventListener(APIEvent.NEW_VERSION_AVAILABLE, this.newVersionAvailableHandler);
API.removeEventListener(APIEvent.HOST_BLOCKED, this.hostBlockedHandler);
};
}
public function get showConnectingPopup():Boolean{
return (this._showConnectingPopup);
}
public function set showConnectingPopup(_arg1:Boolean):void{
this._showConnectingPopup = _arg1;
if (((!(_arg1)) && ((((currentLabel == "connecting")) || ((currentLabel == "connected")))))){
this.clear();
};
}
public function clear():void{
gotoAndStop("idle");
}
public function connect():void{
API.setVersion(this._movieVersion);
API.connect(root.loaderInfo, this._movieId, this._encryptionKey);
visible = true;
if (this.showConnectingPopup){
gotoAndStop("connecting");
};
}
private function renderHandler(_arg1:Event):void{
removeEventListener(Event.RENDER, this.renderHandler);
this.clear();
this.connect();
}
private function movieConnectedHandler(_arg1:APIEvent):void{
if (_arg1.success){
if (((((((API.isPublishedHost()) && (API.hostIsCompatible()))) && (!(API.hasUserSession())))) && (!(API.debugMode)))){
gotoAndStop("no_login");
this._popDelay.start();
visible = true;
} else {
if (this.showConnectingPopup){
gotoAndStop("connected");
};
};
} else {
gotoAndStop("no_connect");
this._popDelay.start();
visible = true;
};
}
private function newVersionAvailableHandler(_arg1:APIEvent):void{
gotoAndStop("new_version");
visible = true;
this.centerOnStage();
}
private function hostBlockedHandler(_arg1:APIEvent):void{
gotoAndStop("bad_host");
visible = true;
this.centerOnStage();
}
private function closeButtonClickHandler(_arg1:Event):void{
this.clear();
}
private function officialVersionClickHandler(_arg1:Event):void{
API.loadOfficialURL();
}
private function enterFrameHandler(_arg1:Event):void{
this.forceAlwaysOnTop();
}
private function initButtons():void{
if (this.viewLatestButton){
this.viewLatestButton.addEventListener(MouseEvent.CLICK, this.officialVersionClickHandler);
};
if (this.viewAuthorizedButton){
this.viewAuthorizedButton.addEventListener(MouseEvent.CLICK, this.officialVersionClickHandler);
};
if (this.closeButton){
this.closeButton.addEventListener(MouseEvent.CLICK, this.closeButtonClickHandler);
};
}
private function forceAlwaysOnTop():void{
var myIndex:uint;
var topIndex:uint;
if (((parent) && (visible))){
try {
myIndex = parent.getChildIndex(this);
topIndex = (parent.numChildren - 1);
if (myIndex != topIndex){
parent.setChildIndex(this, topIndex);
};
} catch(e:Error) {
};
};
}
private function centerOnStage():void{
if (stage){
x = (stage.stageWidth / 2);
y = (stage.stageHeight / 2);
};
}
private function errorTimerHandler(_arg1:TimerEvent):void{
if (this.errorDialog){
this.errorDialog.gotoAndPlay("closeme");
} else {
this.clear();
};
}
function frame1(){
stop();
}
function frame7(){
this.initButtons();
}
function frame8(){
this.initButtons();
}
}
}//package com.newgrounds.components
Section 24
//FlashAd (com.newgrounds.components.FlashAd)
package com.newgrounds.components {
import com.newgrounds.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class FlashAd extends Sprite {
public var background:MovieClip;
private var _showBackground:Boolean;
private var _adURLLoader:URLLoader;
private var _adRect:Sprite;
private var _mask:Shape;
private var _ad:Loader;
private static const DEBUG_AD_URL:String = "http://www.ngads.com/adtest.php";
private static const REMOVED_FROM_STAGE:String = "removedFromStage";
private static var _adResetTime:uint = 0;
private static var _adURL:URLRequest;
public function FlashAd(_arg1:Boolean=true){
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
return;
};
Security.allowDomain("server.cpmstar.com");
this._adRect = new Sprite();
this._adRect.graphics.beginFill(0);
this._adRect.graphics.moveTo(0, 0);
this._adRect.graphics.lineTo(300, 0);
this._adRect.graphics.lineTo(300, 250);
this._adRect.graphics.lineTo(0, 250);
this._adRect.graphics.lineTo(0, 0);
this._adRect.graphics.endFill();
this._mask = new Shape();
this._mask.graphics.beginFill(0);
this._mask.graphics.moveTo(0, 0);
this._mask.graphics.lineTo(300, 0);
this._mask.graphics.lineTo(300, 250);
this._mask.graphics.lineTo(0, 250);
this._mask.graphics.lineTo(0, 0);
this._mask.graphics.endFill();
addChild(this._adRect);
this._adRect.addChild(this._mask);
this._adRect.visible = false;
x = Math.round(x);
y = Math.round(y);
scaleX = 1;
scaleY = 1;
if (this.background){
if (this.background.ngLinkButton){
this.background.ngLinkButton.addEventListener(MouseEvent.CLICK, this.linkClickHandler);
};
if (this.background.loadingClip){
this.background.loadingClip.visible = false;
};
};
if (API.isFlashVersion(9, 0, 28)){
addEventListener(REMOVED_FROM_STAGE, this.onRemovedFromStage);
};
if (API.adsApproved){
this.loadAdFeed(API.adFeedURL);
} else {
API.addEventListener(APIEvent.ADS_APPROVED, this.onAdsApproved, false, 0, true);
};
this.showBackground = _arg1;
}
public function get showBackground():Boolean{
return (this._showBackground);
}
public function set showBackground(_arg1:Boolean):void{
this._showBackground = _arg1;
if (this.background){
this.background.visible = _arg1;
this._adRect.mask = (_arg1) ? this.background.adMask : null;
};
}
public function removeAd():void{
removeEventListener(REMOVED_FROM_STAGE, this.onRemovedFromStage);
if (((this.background) && (this.background.loadingClip))){
this.background.loadingClip.visible = false;
};
if (this._adURLLoader){
try {
this._adURLLoader.close();
} catch(e:Error) {
};
};
if (this._adRect){
this._adRect.visible = false;
};
if (this._ad){
trace("[NewgroundsAPI] :: Ad removed");
try {
this._ad.close();
} catch(e:Error) {
};
try {
Object(this._ad).unloadAndStop(true);
} catch(e:Error) {
_ad.unload();
};
if (this._ad.parent){
this._ad.parent.removeChild(this._ad);
};
};
this._ad = null;
}
private function onAdsApproved(_arg1:APIEvent):void{
API.removeEventListener(APIEvent.ADS_APPROVED, this.onAdsApproved, false);
if (_arg1.success){
this.loadAdFeed(API.adFeedURL);
} else {
trace("[NewgroundsAPI] :: No ad feed URL supplied to Newgrounds API ad!");
};
}
private function loadAdFeed(_arg1:String):void{
var adFeedURL = _arg1;
this._adURLLoader = new URLLoader();
this._adURLLoader.addEventListener(Event.COMPLETE, this.onAdFeedLoaded);
this._adURLLoader.addEventListener(IOErrorEvent.IO_ERROR, this.onAdError);
this._adURLLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onAdError);
if (!adFeedURL){
trace("[Newgrounds API] :: Invalid feed URL!");
return;
};
if (this.hasAdElapsed){
if (adFeedURL.indexOf("?") > -1){
_adURL = new URLRequest(((adFeedURL + "&random=") + Math.random()));
} else {
_adURL = new URLRequest(((adFeedURL + "?random=") + Math.random()));
};
};
try {
this._adURLLoader.load(_adURL);
} catch(e:Error) {
onAdError(null);
};
if (((this.background) && (this.background.loadingClip))){
this.background.loadingClip.visible = true;
};
}
private function loadAd(_arg1:String):void{
var url = _arg1;
if (this._ad){
this.removeAd();
};
this._ad = new Loader();
this._ad.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onAdLoaded);
this._ad.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.onAdError);
try {
Object(this._ad.contentLoaderInfo).uncaughtErrorEvents.addEventListener("uncaughtError", function (_arg1:Event):void{
});
} catch(error:Error) {
};
this._ad.load(new URLRequest(url), new LoaderContext(false, new ApplicationDomain(null)));
if (((this.background) && (this.background.loadingClip))){
this.background.loadingClip.visible = true;
};
}
private function onAdFeedLoaded(_arg1:Event):void{
var _local2:URLLoader = URLLoader(_arg1.target);
if (((_local2.data) && (!((_local2.data == ""))))){
this.loadAd((_local2.data as String));
} else {
dispatchEvent(new APIEvent(APIEvent.AD_ATTACHED, false, new APIError("FLASH_ADS_NOT_APPROVED", "Unable to render ad")));
if (((this.background) && (this.background.loadingClip))){
this.background.loadingClip.visible = false;
};
};
}
private function onAdFeedError(_arg1:Event):void{
trace("[NewgroundsAPI] :: Unable to load ad feed!");
if (((this.background) && (this.background.loadingClip))){
this.background.loadingClip.visible = false;
};
}
private function onAdError(_arg1:Event):void{
dispatchEvent(new APIEvent(APIEvent.AD_ATTACHED, false, new APIError("FLASH_ADS_NOT_APPROVED", "Unable to render ad")));
this.removeAd();
}
private function onAdLoaded(_arg1:Event):void{
this._adRect.addChild(this._ad);
this._ad.mask = this._mask;
this._adRect.visible = true;
if (this.background){
if (this._showBackground){
this._adRect.mask = this.background.adMask;
};
if (this.background.loadingClip){
this.background.loadingClip.visible = false;
};
};
trace("[NewgroundsAPI] :: Ad loaded!");
dispatchEvent(new APIEvent(APIEvent.AD_ATTACHED, true));
}
private function onRemovedFromStage(_arg1:Event):void{
this.removeAd();
}
private function get hasAdElapsed():Boolean{
if (getTimer() >= _adResetTime){
_adResetTime = (getTimer() + ((1000 * 60) * 5));
return (true);
};
return (false);
}
private function linkClickHandler(_arg1:MouseEvent):void{
API.loadNewgrounds();
}
}
}//package com.newgrounds.components
Section 25
//MedalPopup (com.newgrounds.components.MedalPopup)
package com.newgrounds.components {
import com.newgrounds.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public class MedalPopup extends MovieClip {
public var medalNameText:TextField;
public var medalValueText:TextField;
public var medalContainer:Sprite;
private var _initialized:Boolean;
private var _medal:Medal;
private var _medalIcon:Bitmap;
private var _medalQueue:Array;
private var _popDelay:Timer;
public function MedalPopup(){
this._medalQueue = [];
this._popDelay = new Timer(3000, 1);
super();
addFrameScript(0, this.frame1, 9, this.frame10, 18, this.frame19);
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
return;
};
visible = false;
addEventListener(Event.ENTER_FRAME, this.enterFrameHandler);
stop();
API.addEventListener(APIEvent.MEDAL_UNLOCKED, this.onMedalUnlocked, false, 0, true);
this._popDelay.addEventListener(TimerEvent.TIMER, this.timerHandler);
}
public function get popupTime():Number{
return ((this._popDelay.delay / 1000));
}
public function set popupTime(_arg1:Number):void{
if (isNaN(_arg1)){
_arg1 = 3;
};
this._popDelay.delay = (_arg1 * 1000);
}
private function enterFrameHandler(_arg1:Event):void{
var myIndex:uint;
var topIndex:uint;
var event = _arg1;
if (((this._medalQueue.length) && (!(visible)))){
this._medal = this._medalQueue.pop();
this._popDelay.start();
gotoAndPlay("medal_show");
visible = true;
};
if (((visible) && (parent))){
try {
myIndex = parent.getChildIndex(this);
topIndex = (parent.numChildren - 1);
if (myIndex != topIndex){
parent.setChildIndex(this, topIndex);
};
} catch(error:Error) {
};
};
}
private function onMedalUnlocked(_arg1:APIEvent):void{
if (((((_arg1.success) && (_arg1.data))) && ((_arg1.data.medal is Medal)))){
this._medalQueue.push(Medal(_arg1.data.medal));
};
}
private function showMedalInfo():void{
if (!this._medal){
return;
};
if (this.medalContainer){
this._medalIcon = this._medal.createIconBitmap();
this.medalContainer.addChild(this._medalIcon);
};
if (this.medalNameText){
this.medalNameText.text = this._medal.name;
};
if (this.medalValueText){
this.medalValueText.text = (this._medal.value.toString() + "pts");
};
this._popDelay.start();
stop();
}
private function timerHandler(_arg1:TimerEvent):void{
if (((this._medalIcon) && (this._medalIcon.parent))){
this._medalIcon.parent.removeChild(this._medalIcon);
this._medalIcon = null;
};
gotoAndPlay("medal_hide");
this._popDelay.stop();
}
function frame1(){
stop();
}
function frame10(){
this.showMedalInfo();
stop();
}
function frame19(){
stop();
visible = false;
}
}
}//package com.newgrounds.components
Section 26
//API (com.newgrounds.API)
package com.newgrounds {
import flash.display.*;
import flash.events.*;
import com.newgrounds.components.*;
import flash.utils.*;
import com.adobe.serialization.json.*;
import flash.net.*;
import com.adobe.images.*;
import com.adobe.crypto.*;
import flash.system.*;
public class API {
public static const VERSION:String = "2.4.18";
private static const GATEWAY_URL:String = "http://www.ngads.com/gateway_v2.php";
private static const AD_TERMS_URL:String = "http://www.newgrounds.com/wiki/flashads/terms/";
private static const COMMANDS_WIKI_URL:String = "http://www.newgrounds.com/wiki/flashapi/commands/";
private static var do_echo:Boolean = false;
private static var _debug:Boolean = true;
private static var _connected:Boolean = false;
private static var _isMetadataLoaded:Boolean = false;
private static var _preloadComplete:Boolean = false;
private static var _adsApproved:Boolean = false;
private static var _saveGroupId:uint;
private static var _saveFileId:uint;
private static var _trackerId:uint;
private static var _movieId:String;
private static var _encryptionKey:String;
private static var _url:String;
private static var _host:String;
private static var connected:Boolean;
private static var version:String;
private static var ad_url:String;
private static var _fakeSession:Boolean = false;
private static var publisher_id:uint;
private static var session_id:String;
private static var user_email:String;
private static var user_name:String;
private static var user_id:uint;
private static var userpage_format:String;
private static var _medals:Array;
private static var timeoutTimer:Timer = new Timer(8000, 1);
private static var _userpageFormat:String;
private static var _scoreboards:Array = new Array();
private static var _bridge:Bridge;
private static var save_file:SaveFile;
private static var _imageFilePath:String;
private static var _saveFilePath:String;
private static var _saveGroups:Array = [];
private static var root:DisplayObject;
private static var _eventDispatcher:EventDispatcher = new EventDispatcher();
private static var score_page_counts:Object = new Object();
private static var compression_radix:String = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X";
private static var compressor:BaseN = new BaseN(compression_radix);
public static var errors:Dictionary = APIError.init_codes();
private static var sharedObjects:Dictionary = new Dictionary();
private static var _preloadAssets:Array = [];
public static var periods:Object = getPeriodAliases();
private static var period_aliases:Object = {t:{name:"Today", alias:"TODAY"}, p:{name:"Yesterday", alias:"YESTERDAY"}, w:{name:"This Week", alias:"THIS_WEEK"}, m:{name:"This Month", alias:"THIS_MONTH"}, y:{name:"This Year", alias:"THIS_YEAR"}, a:{name:"All-Time", alias:"ALL_TIME"}};
private static var secureCommand:String;
public static function get adFeedURL():String{
return (ad_url);
}
public static function get preloadComplete():Boolean{
return (_preloadComplete);
}
private static function assertConnected():Boolean{
if (!_connected){
return (false);
};
return (true);
}
public static function setVersion(_arg1:String):void{
if (((_arg1) && (!((_arg1 == ""))))){
version = _arg1;
};
}
public static function setUserEmail(_arg1:String):void{
user_email = _arg1;
}
public static function setFakeSession(_arg1:Boolean):void{
_fakeSession = _arg1;
}
public static function getFakeSession():Boolean{
return (_fakeSession);
}
public static function get debugMode():Boolean{
return (_debug);
}
public static function set debugMode(_arg1:Boolean):void{
_debug = _arg1;
}
public static function getTrackerID():uint{
return (_trackerId);
}
public static function getUserID():uint{
return (user_id);
}
public static function getUserName():String{
return (user_name);
}
public static function isConnected():Boolean{
return (_connected);
}
public static function getID():uint{
return (_trackerId);
}
public static function getOfficialURL():String{
var _local1:String = ((((((GATEWAY_URL + "?tracker_id=") + _movieId) + "&command_id=") + getCommandID("loadOfficalVersion")) + "&seed=") + Math.random());
if (debugMode){
_local1 = (_local1 + "&debug=1");
};
return (_local1);
}
public static function get adsApproved():Boolean{
return (_adsApproved);
}
public static function hasUserSession():Boolean{
return (((((!((session_id == null))) && (!((session_id == ""))))) && (!((publisher_id == 0)))));
}
public static function isNewgrounds():Boolean{
return ((((publisher_id == 1)) || (((_host) && ((_host.toLowerCase().indexOf("ungrounded.net") > -1))))));
}
public static function hostIsCompatible():Boolean{
return (!((publisher_id == 0)));
}
public static function hasUserEmail():Boolean{
return (((!((user_email == null))) && (!((user_email == "")))));
}
public static function connectionTimeOut(_arg1:Event=null):void{
dispatchEvent(new APIEvent(APIEvent.API_CONNECTED, false, new APIError("CONNECTION_FAILED", "Connection to NewgroundsAPI gateway timed out.")));
}
public static function connect(_arg1:LoaderInfo, _arg2:String, _arg3:String=null):void{
var loaderInfo = _arg1;
var m_id = _arg2;
var encrypt_key = _arg3;
if (!loaderInfo){
fatalError("Null loaderInfo paremeter passed in to connectMovie!", "");
return;
};
try {
if (loaderInfo.loader){
loaderInfo = loaderInfo.loader.loaderInfo;
};
} catch(error:Error) {
};
_url = loaderInfo.url;
_host = _url;
if ((((_host.indexOf("http://") > -1)) || ((_host.indexOf("https://") > -1)))){
_host = _host.split("/")[2].toLowerCase();
} else {
_host = "localhost";
};
var flashVars:Object = loaderInfo.parameters;
if (isPublishedHost()){
debugMode = false;
};
if (((!(debugMode)) && (flashVars))){
if (flashVars.NewgroundsAPI_UserName){
user_name = flashVars.NewgroundsAPI_UserName;
};
if (flashVars.NewgroundsAPI_UserID){
user_id = flashVars.NewgroundsAPI_UserID;
};
if (flashVars.NewgroundsAPI_PublisherID){
publisher_id = flashVars.NewgroundsAPI_PublisherID;
} else {
publisher_id = 0;
};
if (flashVars.NewgroundsAPI_UserpageFormat){
_userpageFormat = flashVars.NewgroundsAPI_UserpageFormat;
};
if (flashVars.NewgroundsAPI_SessionID){
session_id = flashVars.NewgroundsAPI_SessionID;
};
if (flashVars.NewgroundsAPI_SaveGroupID){
_saveGroupId = flashVars.NewgroundsAPI_SaveGroupID;
};
if (flashVars.NewgroundsAPI_SaveFileID){
_saveFileId = flashVars.NewgroundsAPI_SaveFileID;
};
if (flashVars.NewgroundsAPI_SandboxID){
_bridge = new Bridge(flashVars.NewgroundsAPI_SandboxID);
};
} else {
publisher_id = 1;
if (_fakeSession){
session_id = "D3bu64p1U53R";
user_id = 10;
user_name = "API-Debugger";
};
};
if (connected){
fatalError("NewgroundsAPI.connect() - connection already in progress", "connect");
return;
};
timeoutTimer.start();
if (!m_id){
fatalError("NewgroundsAPI.connectMovie() - missing required movieId parameter", "connectMovie");
};
_movieId = String(m_id);
_trackerId = uint(_movieId.substring(0, _movieId.indexOf(":")));
_encryptionKey = encrypt_key;
connected = true;
sendCommand("connectMovie", {host:getHost(), movie_version:version});
}
private static function getHost():String{
return (_host);
}
public static function isPublishedHost():Boolean{
return (((!((getHost() == "localhost"))) && ((getHost().indexOf("file://") == -1))));
}
public static function loadUserPage(_arg1:uint=0, _arg2:String=null):Boolean{
var _local3:String;
if ((((_arg1 == 0)) && ((_arg2 == null)))){
if (hasUserSession()){
_arg1 = user_id;
_arg2 = user_name;
} else {
return (false);
};
};
if (publisher_id == 1){
_local3 = (("http://" + _arg2.toLowerCase()) + ".newgrounds.com");
navigateToURL(new URLRequest(_local3), "_blank");
return (true);
};
if (userpage_format){
_local3 = userpage_format;
_local3 = _local3.split(":user_id:").join(_arg1.toString());
_local3 = _local3.split(":user_name:").join(escape(_arg2));
navigateToURL(new URLRequest(_local3), "_blank");
return (true);
};
return (false);
}
public static function loadNewgrounds():void{
sendCommand("loadNewgrounds", {host:getHost()}, true);
}
public static function loadOfficialURL():void{
navigateToURL(new URLRequest(getOfficialURL()));
}
public static function loadMySite():void{
sendCommand("loadMySite", {host:getHost()}, true);
}
public static function loadCustomLink(_arg1:String):void{
sendCommand("loadCustomLink", {host:getHost(), link:_arg1}, true);
}
public static function logCustomEvent(_arg1:String):void{
sendCommand("logCustomEvent", {host:getHost(), event:_arg1});
}
public static function getScoreBoard(_arg1:String):ScoreBoard{
var _local2:ScoreBoard;
for each (_local2 in _scoreboards) {
if (_local2.name == _arg1){
return (_local2);
};
};
return (null);
}
public static function getScoreBoardById(_arg1:uint):ScoreBoard{
var _local2:ScoreBoard;
for each (_local2 in _scoreboards) {
if (_local2.id == _arg1){
return (_local2);
};
};
return (null);
}
public static function postScore(_arg1:String, _arg2:uint, _arg3:String=""):void{
if (((!(_arg1)) || ((_arg1 == "")))){
sendError({command_id:getCommandID("postScore")}, new APIError("MISSING_PARAM", "missing required parameter(s)"));
return;
};
if (_arg3 == null){
_arg3 = "";
};
sendSecureCommand("postScore", {user_name:user_name, board:_arg1, value:_arg2, publisher_id:publisher_id, tag:_arg3});
}
public static function loadScores(_arg1:String, _arg2:String=null, _arg3:String=null):void{
var _local4 = "loadScores";
var _local5:ScoreBoard = getScoreBoard(_arg1);
if (((!(_local5)) || (!(_local5.id)))){
sendError({command_id:getCommandID(_local4)}, new APIError("MISSING_PARAM", "missing required ScoreBoard instance"));
return;
};
var _local6:Object = {};
_local6.publisher_id = publisher_id;
if (_arg2){
_local6.period = _arg2;
} else {
_local6.period = _local5.period;
};
_local6.board = _local5.id;
_local6.num_results = _local5.num_results;
_local6.page = _local5.page;
if (((!(_arg3)) || ((_arg3 == "")))){
_local6.tag = _local5.tag;
} else {
_local6.tag = _arg3;
};
sendCommand(_local4, _local6);
}
public static function loadScoresInRange(_arg1:String, _arg2:String="All-Time", _arg3:uint=1, _arg4:uint=10):void{
if (((!(_arg1)) || ((_arg1 == "")))){
sendError({command_id:getCommandID("postScore")}, new APIError("MISSING_PARAM", "missing required parameter(s)"));
return;
};
var _local5:ScoreBoard = getScoreBoard(_arg1);
if (_local5){
_local5.loadScoresInRange(_arg2, _arg3, _arg4);
} else {
sendWarning((("loadScoresInRange: Scoreboard " + _arg1) + " could not be found."));
};
}
private static function populateMedals(_arg1:Array):void{
var _local2:uint;
var _local3:Object;
if (_medals === null){
_medals = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
_local3 = _arg1[_local2];
_medals.push(Medal.createFromObject(_local3));
_local2++;
};
};
sendMessage("Medals loaded!");
}
private static function populateSaveGroups(_arg1:Array):void{
var _local3:SaveGroup;
_saveGroups = [];
var _local2:uint;
while (_local2 < _arg1.length) {
_local3 = SaveGroup.createFromObject(_arg1[_local2]);
_saveGroups.push(_local3);
_local2++;
};
}
private static function populateScoreBoards(_arg1:Array):void{
_scoreboards = [];
var _local2:uint;
while (_local2 < _arg1.length) {
_scoreboards.push(new ScoreBoard(_arg1[_local2].id, _arg1[_local2].name, ""));
_local2++;
};
}
public static function getMedals():Array{
return (_medals);
}
public static function getMedalById(_arg1:uint):Medal{
var _local2:Medal;
for each (_local2 in _medals) {
if (_local2.id == _arg1){
return (_local2);
};
};
return (null);
}
public static function getMedal(_arg1:String):Medal{
var _local2:Medal;
for each (_local2 in _medals) {
if (_local2.name == _arg1){
return (_local2);
};
};
return (null);
}
public static function unlockMedal(_arg1:String):void{
var _local3:Object;
var _local4:Object;
if (((!(_arg1)) || ((_arg1 == "")))){
sendError({command_id:getCommandID("unlockMedal")}, new APIError("MISSING_PARAM", "missing required medal name"));
return;
};
var _local2:Medal = getMedal(_arg1);
if (!_local2){
sendMessage(("No medal with name: " + _arg1));
return;
};
if (((hasUserSession()) || (debugMode))){
sendMessage((("Attempting to unlock '" + _local2.name) + "'"));
if (_local2.unlocked){
sendWarning((("Medal '" + _local2.name) + "' is already unlocked!"));
return;
};
_local3 = new Object();
_local3.medal_id = _local2.id;
sendSecureCommand("unlockMedal", _local3);
} else {
sendMessage(("Locally unlocking " + _local2.name));
if (_local2.unlocked){
sendWarning((("Medal '" + _local2.name) + "' is already unlocked!"));
return;
};
_local2.unlocked = true;
_local4 = loadLocal("medals_unlocked");
if (!_local4){
_local4 = new Object();
};
_local4[_local2.id.toString()] = true;
saveLocal("medals_unlocked", _local4);
callListener(APIEvent.UNLOCK_MEDAL, true, {medal:_local2});
};
}
public static function loadMedals():void{
if (_medals){
dispatchEvent(new APIEvent(APIEvent.MEDALS_LOADED, true, {medals:getMedals()}));
return;
};
var _local1:Object = new Object();
if (hasUserSession()){
_local1.publisher_id = publisher_id;
_local1.user_id = user_id;
};
sendCommand("getMedals", _local1);
}
public static function saveLocal(_arg1:String, _arg2:Object, _arg3:uint=0):void{
var sharedObj:SharedObject;
var save_id = _arg1;
var save_data = _arg2;
var size_allocation = _arg3;
try {
if (!sharedObjects[save_id]){
sharedObjects[save_id] = SharedObject.getLocal(((("ng_ap_secure_" + _trackerId) + "_") + save_id));
};
sharedObj = sharedObjects[save_id];
sharedObj.data[save_id] = encodeData(save_data);
sharedObj.flush();
} catch(e:Error) {
sendWarning(("saveLocal ERROR: " + e));
};
}
public static function loadLocal(_arg1:String):Object{
var sharedObj:SharedObject;
var save_id = _arg1;
try {
if (!sharedObjects[save_id]){
sharedObjects[save_id] = SharedObject.getLocal(((("ng_ap_secure_" + _trackerId) + "_") + save_id));
};
sharedObj = sharedObjects[save_id];
if (((((sharedObj) && (sharedObj.data))) && (sharedObj.data[save_id]))){
return (decodeData(sharedObj.data[save_id]));
} else {
return (null);
};
} catch(e:Error) {
sendWarning(("loadLocal ERROR: " + e));
};
return (null);
}
public static function encodeData(_arg1:Object):String{
return (compressHex(RC4.encrypt(JSON.encode(_arg1), _encryptionKey)));
}
public static function decodeData(_arg1:String){
return (JSON.decode(RC4.decrypt(uncompressHex(_arg1), _encryptionKey)));
}
private static function compressHex(_arg1:String):String{
var _local2:uint = (_arg1.length % 6);
var _local3 = "";
var _local4:uint;
while (_local4 < _arg1.length) {
_local3 = (_local3 + compressor.encode(uint(("0x" + _arg1.substr(_local4, 6))), 4));
_local4 = (_local4 + 6);
};
return ((_local2.toString() + _local3));
}
private static function uncompressHex(_arg1:String):String{
var _local4:uint;
var _local6:String;
var _local7:uint;
var _local8:String;
var _local2:uint = uint(_arg1.charAt(0));
var _local3 = "";
var _local5:uint = 1;
while (_local5 < _arg1.length) {
_local6 = _arg1.substr(_local5, 4);
_local7 = uint(compressor.decode(_local6));
_local8 = _local7.toString(16);
if ((_local5 + 4) < _arg1.length){
_local4 = 6;
} else {
_local4 = _local2;
};
while (_local8.length < _local4) {
_local8 = ("0" + _local8);
};
_local3 = (_local3 + _local8);
_local5 = (_local5 + 4);
};
return (_local3);
}
public static function getSaveGroupById(_arg1:uint):SaveGroup{
if (((!(_saveGroups)) || ((_saveGroups.length < 1)))){
sendWarning("No save groups found");
return (null);
};
var _local2:uint;
while (_local2 < _saveGroups.length) {
if (_saveGroups[_local2].id == _arg1){
return (_saveGroups[_local2]);
};
_local2++;
};
return (null);
}
public static function getSaveGroup(_arg1:String):SaveGroup{
if (((!(_saveGroups)) || ((_saveGroups.length < 1)))){
sendWarning("No save groups found");
return (null);
};
var _local2:uint;
while (_local2 < _saveGroups.length) {
if (_saveGroups[_local2].name == _arg1){
return (_saveGroups[_local2]);
};
_local2++;
};
return (null);
}
public static function getCurrentSaveFile(){
return (save_file);
}
public static function setCurrentSaveFile(_arg1:SaveFile){
save_file = _arg1;
}
public static function newSaveQuery(_arg1:String):SaveGroupQuery{
var _local2:SaveGroup = getSaveGroup(_arg1);
if (_local2){
return (_local2.newQuery());
};
return (null);
}
public static function executeSaveQuery(_arg1:SaveGroupQuery):void{
sendCommand("lookupSaveFiles", {publisher_id:publisher_id, group_id:_arg1.groupId, query:JSON.encode(_arg1.toObject())}, false, null, _arg1);
}
public static function lookupSaveFiles(_arg1:SaveGroup):void{
var _local2:SaveGroupQuery = _arg1.getQuery(false);
sendCommand("lookupSaveFiles", {publisher_id:publisher_id, group_id:_arg1.id, query:_local2.toObject()}, false, null, _local2);
}
public static function checkFilePrivledges(_arg1:SaveFile):void{
sendCommand("checkFilePrivs", {group:_arg1.groupId, filename:_arg1.name, user_id:(user_id) ? user_id : 0, publisher_id:publisher_id});
}
public static function newSaveFile(_arg1:String):SaveFile{
var _local2:SaveGroup = getSaveGroup(_arg1);
if (_local2){
return (new SaveFile(_local2));
};
sendError({command_id:"newSaveFile"}, new APIError("INVALID_SAVE_GROUP", (("'" + _local2) + "' is not a valid save group.")));
return (null);
}
public static function saveFile(_arg1:SaveFile, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Object = _arg1.toObject();
_local4.user_name = user_name;
if (_arg1.id){
_local4.save_id = _arg1.id;
};
_local4.overwrite = (_arg2) ? 1 : 0;
if (_arg3){
_local4.draft = 1;
};
var _local5:ByteArray = new ByteArray();
if ((_arg1.contents is ByteArray)){
_local5.writeByte(0);
_local5.writeBytes(_arg1.contents);
} else {
_local5.writeByte(1);
_local5.writeObject(_arg1.contents);
};
_local5.compress();
var _local6:Object = new Object();
_local6.file = _local5;
if (_arg1.thumbnail){
_local6.thumbnail = PNGEncoder.encode(_arg1.thumbnail);
};
save_file = _arg1;
sendSecureCommand("saveFile", _local4, null, _local6, _arg1);
}
public static function rateSaveFile(_arg1:SaveFile, _arg2:SaveRating, _arg3:Number):void{
sendSecureCommand("rateSaveFile", {group:_arg1.groupId, save_id:_arg1.id, rating_id:_arg2.id, vote:_arg3, user_id:user_id}, null, null, _arg1);
}
public static function loadSaveFile(_arg1:Number, _arg2:Boolean=true){
var _local3:Object = {publisher_id:publisher_id, save_id:_arg1, get_contents:_arg2};
save_file = null;
sendCommand("loadSaveFile", _local3);
}
public static function loadFilesByDate(_arg1:String, _arg2:Boolean=true, _arg3:String=null, _arg4=null):void{
var _local7:*;
var _local5:SaveGroup = getSaveGroup(_arg1);
if (!_local5){
_local7 = new APIError("QUERY_INCOMPLETE", "The query could not be preformed, check the spelling of your save group name.");
sendError({command_id:"loadFilesByDate"}, _local7);
return;
};
var _local6:SaveGroupQuery = _local5.newQuery();
if (_arg3){
_local6.addKeyCondition(_arg3, "=", _arg4);
};
_local6.sortOn(SaveGroupQuery.CREATED_ON, _arg2);
_local6.execute();
}
public static function loadFilesByViews(_arg1:String, _arg2:Boolean=true, _arg3:String=null, _arg4=null):void{
var _local7:*;
var _local5:SaveGroup = getSaveGroup(_arg1);
if (!_local5){
_local7 = new APIError("QUERY_INCOMPLETE", "The query could not be preformed, check the spelling of your save group name.");
sendError({command_id:"loadFilesByViews"}, _local7);
return;
};
var _local6:SaveGroupQuery = _local5.newQuery();
if (_arg3){
_local6.addKeyCondition(_arg3, "=", _arg4);
};
_local6.sortOn(SaveGroupQuery.TOTAL_VIEWS, _arg2);
_local6.execute();
}
public static function loadFilesByRating(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:String=null, _arg5=null):void{
var _local8:*;
var _local6:SaveGroup = getSaveGroup(_arg1);
if (!_local6){
_local8 = new APIError("QUERY_INCOMPLETE", "The query could not be preformed, check the spelling of your save group name.");
sendError({command_id:"loadFilesByDate"}, _local8);
return;
};
var _local7:SaveGroupQuery = _local6.newQuery();
if (_arg4){
_local7.addKeyCondition(_arg4, "=", _arg5);
};
_local7.sortOnRating(_arg2, _arg3);
_local7.execute();
}
public static function onRemoteAuthentication(_arg1:String){
var _local2:Object = JSON.decode(RC4.decrypt(_arg1, _encryptionKey));
user_id = _local2.NewgroundsAPI_UserID;
user_name = _local2.NewgroundsAPI_UserName;
session_id = _local2.NewgroundsAPI_SessionID;
publisher_id = _local2.NewgroundsAPI_PublisherID;
}
private static function doEvent(_arg1:Object):void{
var _local2:String;
var _local3:Object;
var _local4:String;
var _local5:Boolean;
var _local6:ScoreBoard;
var _local7:Array;
var _local8:*;
var _local9:String;
var _local10:Medal;
var _local11:SaveGroup;
var _local12:Object;
var _local13:Object;
var _local14:Object;
var _local15:SaveFile;
var _local16:uint;
var _local17:Object;
var _local18:uint;
var _local19:APIError;
var _local20:Object;
switch (getCommandName(_arg1.command_id)){
case "connectMovie":
timeoutTimer.stop();
if (_arg1.success){
sendMessage("You have successfully connected to the Newgrounds API Gateway");
sendMessage((("Movie identified as \"" + _arg1.movie_name) + "\""));
callListener(APIEvent.API_CONNECTED, _arg1.success, {title:_arg1.movie_name});
} else {
callListener(APIEvent.API_CONNECTED, _arg1.success, {});
return;
};
_local5 = false;
if (_arg1.ad_status === -1){
_local2 = "This movie was not approved to run Flash Ads.";
sendWarning(_local2);
sendWarning((("visit " + AD_TERMS_URL) + " to view our approval guidelines"));
if (!_arg1.ad_url){
callListener(APIEvent.ADS_APPROVED, false, new APIError("FLASH_ADS_NOT_APPROVED", _local2));
} else {
_local5 = true;
};
} else {
if (_arg1.ad_status === 0){
_local2 = "Flash Ads are currently awaiting approval.";
sendNotice(_local2);
if (!_arg1.ad_url){
callListener(APIEvent.ADS_APPROVED, false, new APIError("FLASH_ADS_NOT_APPROVED", _local2));
} else {
_local5 = true;
};
};
};
if (_arg1.ad_url){
ad_url = unescape(_arg1.ad_url);
if (!_local5){
sendMessage("This movie has been approved to run Flash Ads!");
};
_adsApproved = true;
callListener(APIEvent.ADS_APPROVED, true);
};
if (_arg1.deny_host){
_local2 = (getHost() + " does not have permission to run this movie!");
sendWarning(_local2);
sendWarning(("\tUpdate your API configuration to unblock " + getHost()));
callListener(APIEvent.HOST_BLOCKED, true, {real_url:unescape(_arg1.movie_url), url:getOfficialURL()});
};
if (_arg1.movie_version){
sendWarning("According to your API Configuration, this version is out of date.");
if (version){
sendWarning(("\tThe this movie is version " + version));
};
sendWarning(("\tThe most current version is " + _arg1.movie_version));
callListener(APIEvent.NEW_VERSION_AVAILABLE, true, {version:_arg1.movie_version, real_url:unescape(_arg1.movie_url), url:getOfficialURL()});
};
if (_arg1.request_portal_url){
sendCommand("setPortalID", {portal_url:_url});
};
sendCommand("preloadSettings", {publisher_id:publisher_id, user_id:user_id});
break;
case "preloadSettings":
if (_arg1.medals){
populateMedals(_arg1.medals);
if (((!(hasUserSession())) && (!(debugMode)))){
echo("Checking for SharedObject Medals...");
_local8 = loadLocal("medals_unlocked");
if (_local8){
for (_local9 in _local8) {
if (_local8[_local9]){
_local10 = getMedalById(uint(_local9));
echo(("Now unlocking " + _local10.name));
_local10.unlocked = true;
};
};
};
};
};
if (_arg1.save_groups){
populateSaveGroups(_arg1.save_groups);
};
if (_arg1.save_file_path){
_saveFilePath = (_arg1.save_file_path + "/");
};
if (_arg1.image_file_path){
_imageFilePath = (_arg1.image_file_path + "/");
};
if (_arg1.score_boards){
populateScoreBoards(_arg1.score_boards);
};
sendMessage("Metadata loaded!");
callListener(APIEvent.METADATA_LOADED, _arg1.success);
if (((_saveFileId) && (_saveGroupId))){
_local11 = getSaveGroupById(_saveGroupId);
if (_local11){
callListener(APIEvent.FILE_REQUESTED, true, {save_id:_saveFileId, group:_local11});
};
};
_preloadComplete = true;
break;
case "logCustomEvent":
if (_arg1.success){
sendMessage((("Event '" + _arg1.event) + "' was logged."));
};
callListener(APIEvent.EVENT_LOGGED, _arg1.success, {event:_arg1.event});
break;
case "postScore":
if (_arg1.success){
_local4 = "User";
if (user_email){
_local4 = user_email;
} else {
if (user_name){
_local4 = user_name;
};
};
_local6 = getScoreBoardById(_arg1.board);
if (_local6){
sendMessage((((((_local4 + " posted ") + _arg1.value) + " to '") + _local6.name) + "'"));
};
if (_arg1.best_scores){
_local12 = {today:_arg1.best_scores.D, yesterday:_arg1.best_scores.P, week:_arg1.best_scores.W, year:_arg1.best_scores.Y, all_time:_arg1.best_scores.A};
} else {
_local12 = {};
};
if (_arg1.best_ranks){
_local13 = {today:_arg1.best_ranks.D, yesterday:_arg1.best_ranks.P, week:_arg1.best_ranks.W, year:_arg1.best_ranks.Y, all_time:_arg1.best_ranks.A};
} else {
_local13 = {};
};
if (_arg1.num_scores){
_local14 = {today:_arg1.num_scores.D, yesterday:_arg1.num_scores.P, week:_arg1.num_scores.W, year:_arg1.num_scores.Y, all_time:_arg1.num_scores.A};
} else {
_local14 = {};
};
_local3 = {score:_arg1.score, value:_arg1.value, username:_local4, best_scores:_local12, best_ranks:_local13, num_scores:_local14};
};
callListener(APIEvent.SCORE_POSTED, _arg1.success, _local3);
break;
case "loadScores":
_local3 = new Object();
_local6 = getScoreBoardById(_arg1.board);
if (_local6){
_local6.setScores(_arg1.scores, _arg1.period, _arg1.page, _arg1.num_results, _arg1.num_scores);
};
callListener(APIEvent.SCORES_LOADED, _arg1.success, {board:_local6});
break;
case "unlockMedal":
if (_medals){
_local10 = getMedal(_arg1.medal_name);
if (_local10.unlocked){
return;
};
_local10.unlocked = true;
callListener(APIEvent.MEDAL_UNLOCKED, _arg1.success, {medal_id:_local10.id, medal:_local10});
};
break;
case "getMedals":
if (_arg1.success){
populateMedals(_arg1.medals);
};
callListener(APIEvent.MEDALS_LOADED, _arg1.success, _local3);
break;
case "loadSaveFile":
if (_arg1.success){
_local11 = getSaveGroupById(_arg1.group_id);
_local15 = new SaveFile(_local11);
_local15.id = _arg1.file.save_id;
_local15.name = _arg1.file.filename;
_local15.fileUrl = (_saveFilePath + _arg1.file.file);
_local15.thumbnailUrl = (_imageFilePath + _arg1.file.thumb);
_local15.authorName = _arg1.file.user_name;
_local15.authorId = _arg1.file.user_id;
_local15.setStatus(_arg1.file.status);
_local15.description = _arg1.file.description;
_local15.setFileSize(_arg1.file.file_size);
if (((_arg1.file.keys) && (_arg1.file.keys.length))){
_local16 = 0;
while (_local16 < _arg1.file.keys.length) {
_local15.setKey(_arg1.file.keys[_local16].id, _arg1.file.keys[_local16].value);
_local16++;
};
};
if (((_arg1.file.ratings) && (_arg1.file.ratings.length))){
_local16 = 0;
while (_local16 < _arg1.file.ratings.length) {
_local15.setRating(_arg1.file.ratings[_local16].id, _arg1.file.ratings[_local16].votes, _arg1.file.ratings[_local16].score);
_local16++;
};
};
if (_arg1.get_contents){
_local15.loadContents();
};
};
save_file = _local15;
callListener(APIEvent.FILE_INITIALIZED, _arg1.success, {save_id:_local15.id, file:_local15});
break;
case "lookupSaveFiles":
_local7 = [];
if (((_arg1.success) && (_arg1.files))){
_local16 = 0;
while (_local16 < _arg1.files.length) {
_local17 = _arg1.files[_local16];
_local15 = new SaveFile(getSaveGroupById(_arg1.group_id));
_local15.name = _local17.filename;
_local15.id = _local17.save_id;
_local15.description = _local17.description;
_local15.thumbnailUrl = (_imageFilePath + _local17.thumb);
_local15.fileUrl = (_saveFilePath + _local17.file);
_local15.authorName = _local17.user_name;
_local15.authorId = _local17.user_id;
_local15.setStatus(_local17.status);
_local15.setFileSize(_local17.file_size);
if (((_local17.keys) && (_local17.keys.length))){
_local18 = 0;
while (_local18 < _local17.keys.length) {
_local15.setKey(_local17.keys[_local18].id, _local17.keys[_local18].value);
_local18++;
};
};
if (((_local17.ratings) && (_local17.ratings.length))){
_local18 = 0;
while (_local18 < _local17.ratings.length) {
_local15.setRating(_local17.ratings[_local18].id, _local17.ratings[_local18].votes, _local17.ratings[_local18].score);
_local18++;
};
};
_local7.push(_local15);
_local16++;
};
};
_arg1.owner.setResults(_local7);
_arg1.owner.dispatchEvent(new APIEvent(APIEvent.QUERY_COMPLETE, _arg1.success, {query:_arg1.owner}));
callListener(APIEvent.QUERY_COMPLETE, _arg1.success, {query:_arg1.owner});
break;
case "rateSaveFile":
_local15 = _arg1.owner;
_arg1.success = ((_arg1.success) && (!(_arg1.already_voted)));
if (_arg1.success){
_local15.setRating(_arg1.rating_id, _arg1.votes, _arg1.score);
};
_arg1.file = _local15;
if (_arg1.already_voted){
_local19 = new APIError("PERMISSION_DENIED", "You have already voted on this item today");
_local15.dispatchEvent(new APIEvent(APIEvent.VOTE_COMPLETE, _arg1.success, {error:_local19, file:_local15, save_id:_local15.id}));
callListener(APIEvent.VOTE_COMPLETE, _arg1.success, _arg1);
} else {
_local20 = _local15.getRating(_arg1.rating_id);
_local15.dispatchEvent(new APIEvent(APIEvent.VOTE_COMPLETE, _arg1.success, {rating:_local20, file:_local15, save_id:_local15.id}));
API.callListener(APIEvent.VOTE_COMPLETE, _arg1.success, {rating:_local20, file:_local15, save_id:_local15.id});
};
break;
case "saveFile":
_local3 = {};
if (_arg1.success){
_local3 = {save_id:_arg1.save_id, filename:_arg1.filename, file_url:_arg1.file_url, thumbnail:_arg1.thumbnail, icon:_arg1.icon};
SaveFile(_arg1.owner).fileSaved(_local3);
};
_arg1.owner.dispatchEvent(new APIEvent(APIEvent.FILE_SAVED, _arg1.success, {save_id:save_file.id, file:save_file}));
callListener(APIEvent.FILE_SAVED, _arg1.success, {save_id:save_file.id, file:save_file});
save_file = null;
break;
case "checkFilePrivs":
_local3 = {filename:_arg1.filename, folder:_arg1.folder, can_read:_arg1.can_read, can_write:_arg1.can_write};
callListener(APIEvent.FILE_PRIVS_LOADED, _arg1.success, _local3);
break;
};
}
public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:uint=0, _arg5:Boolean=false):void{
_eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function hasEventListener(_arg1:String):Boolean{
return (_eventDispatcher.hasEventListener(_arg1));
}
public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
_eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
private static function dispatchEvent(_arg1:Event):void{
_eventDispatcher.dispatchEvent(_arg1);
echo(("Fired Event: " + _arg1.type));
}
static function callListener(_arg1:String, _arg2:Boolean=true, _arg3=undefined):void{
dispatchEvent(new APIEvent(_arg1, _arg2, _arg3));
if (_bridge){
_bridge.sendEvent(_arg1, {success:_arg2, data:_arg3});
};
}
private static function getCommandName(_arg1:String):String{
return (_arg1);
}
private static function getCommandID(_arg1:String):String{
return (_arg1);
}
private static function getPeriodAliases():Object{
var _local2:String;
var _local1:Object = new Object();
for (_local2 in period_aliases) {
_local1[period_aliases[_local2].alias] = _local2;
};
return (_local1);
}
public static function getPeriodName(_arg1:String):String{
var _local2:String;
for (_local2 in period_aliases) {
if (_local2 == _arg1){
return (period_aliases[_local2].name);
};
};
return (null);
}
public static function getPeriodAlias(_arg1:String):String{
var _local2:String;
for (_local2 in period_aliases) {
if (_local2 == _arg1){
return (period_aliases[_local2].alias);
};
};
return (null);
}
private static function sendError(_arg1:Object, _arg2:APIError):void{
var _local3:String = ((((("[NewgroundsAPI ERROR] :: " + getCommandName(_arg1.command_id)) + "() - ") + _arg2.name) + ":\n\t\t\t\t") + _arg2.message);
trace(_local3);
if (_bridge){
_bridge.sendEvent("trace", {data:_local3});
};
}
private static function sendWarning(_arg1:String, _arg2:String=null):void{
if (_arg2){
_arg1 = (_arg1 + ((("\n[NewgroundsAPI WARNING] :: \tSee " + COMMANDS_WIKI_URL) + _arg2.toLowerCase()) + " for additional information."));
};
trace(_arg1);
if (_bridge){
_bridge.sendEvent("trace", {data:_arg1});
};
}
private static function sendNotice(_arg1:String, _arg2:String=null):void{
var _local3:String;
if (_arg2){
_arg1 = (_arg1 + ((("\n[NewgroundsAPI NOTICE] :: \tSee " + COMMANDS_WIKI_URL) + _arg2.toLowerCase()) + " for additional information."));
};
trace(_arg1);
if (_bridge){
_bridge.sendEvent("trace", {data:_arg1});
};
}
private static function fatalError(_arg1:String, _arg2:String):void{
if (_arg2){
_arg1 = (_arg1 + ((("\n\tSee " + COMMANDS_WIKI_URL) + _arg2.toLowerCase()) + " for additional information."));
};
trace(("***ERROR*** class=API\n\n" + _arg1));
}
public static function openLoginPage(){
if (hasUserSession()){
return;
};
}
public static function sendSecureCommand(_arg1:String, _arg2:Object, _arg3:Object=null, _arg4:Object=null, _arg5=null):void{
if (((((!(debugMode)) && (!(hasUserSession())))) && (!(hasUserEmail())))){
sendError({command_id:getCommandID(_arg1)}, new APIError("IDENTIFICATION_REQUIRED", (("You must be logged in or provide an e-mail address ( using NewgroundsAPI.setUserEmail(\"name@domain.com\"); ) to use " + _arg1) + "().")));
return;
};
if (!_arg1){
fatalError("Missing command", "sendSecureCommand");
};
if (!_arg2){
fatalError("Missing secure_params", "sendSecureCommand");
};
if (!_arg3){
_arg3 = new Object();
};
var _local6 = "";
var _local7:uint;
while (_local7 < 16) {
_local6 = (_local6 + compression_radix.charAt(Math.floor((Math.random() * compression_radix.length))));
_local7++;
};
if (((debugMode) && (!(session_id)))){
_arg2.session_id = "";
} else {
_arg2.session_id = session_id;
};
_arg2.as_version = 3;
_arg2.user_email = user_email;
_arg2.publisher_id = publisher_id;
_arg2.seed = _local6;
_arg2.command_id = getCommandID(_arg1);
var _local8:String = MD5.hash(_local6);
var _local9:String = RC4.encrypt(JSON.encode(_arg2), _encryptionKey);
var _local10:String = (_local8 + _local9);
_arg3.secure = compressHex(_local10);
secureCommand = _arg1;
sendCommand("securePacket", _arg3, false, _arg4, _arg5);
}
public static function stopPendingCommands():void{
SmartURLLoader.closeAll();
}
private static function onCommandComplete(_arg1:Event):void{
var response:Object;
var error:APIError;
var e = _arg1;
var loader:SmartURLLoader = SmartURLLoader(e.target);
echo((("INPUT: \n" + loader.response) + "\n"));
var i:uint;
while (i < _preloadAssets.length) {
if (_preloadAssets[i] == loader){
_preloadAssets.splice(i, 1);
break;
};
i = (i + 1);
};
try {
response = JSON.decode(loader.response);
} catch(error:Error) {
};
if (!response){
response = {command_id:loader._command, success:false};
};
response.owner = loader.owner;
if (((!(response)) || (!(response.success)))){
if (response.command_id == "connectMovie"){
connected = false;
};
error = new APIError(response.error_code, response.error_msg);
sendError(response, error);
if (response.command_id){
doEvent(response);
};
} else {
doEvent(response);
};
}
private static function onCommandError(_arg1:Event):void{
var _local2:Object = {success:false};
var _local3:SmartURLLoader = SmartURLLoader(_arg1.target);
_local2.owner = _local3.owner;
var _local4:uint;
while (_local4 < _preloadAssets.length) {
if (_preloadAssets[_local4] == _local3){
_preloadAssets.splice(_local4, 1);
break;
};
_local4++;
};
if (_local3._command){
_local2.command_id = _local3._command;
if (_local2.command_id == "connectMovie"){
connected = false;
};
doEvent(_local2);
};
}
private static function sendCommand(_arg1:String, _arg2:Object, _arg3:Boolean=false, _arg4:Object=null, _arg5=null):void{
var _local7:String;
var _local8:String;
var _local9:String;
if (((!(connected)) && (!((_arg1 == "connectMovie"))))){
_local7 = (("NewgroundsAPI." + _arg1) + "() - NewgroundsAPI.connectMovie() must be called before this command can be called\n");
fatalError(_local7, "connectMovie");
};
var _local6:SmartURLLoader = new SmartURLLoader();
_local6.addVariable("command_id", getCommandID(_arg1));
_local6.addVariable("tracker_id", _movieId);
if (debugMode){
_local6.addVariable("debug", 1);
};
if (_arg2){
for (_local8 in _arg2) {
_local6.addVariable(_local8, _arg2[_local8]);
};
};
if (_arg4){
for (_local9 in _arg4) {
_local6.addFile(_local9, _arg4[_local9], _local9);
};
};
if (_arg3){
_local6.method = URLRequestMethod.GET;
} else {
_local6.method = URLRequestMethod.POST;
};
_local6.preventCache = true;
if (_arg3){
_local6.openBrowser = true;
_local6.method = URLRequestMethod.GET;
} else {
_local6.addEventListener(Event.COMPLETE, onCommandComplete);
_local6.addEventListener(IOErrorEvent.IO_ERROR, onCommandError);
_local6.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onCommandError);
_local6.method = URLRequestMethod.POST;
};
if (_arg2.secure){
_local6._command = secureCommand;
} else {
_local6._command = getCommandID(_arg1);
};
_local6.owner = _arg5;
_local6.load(GATEWAY_URL);
}
public static function isFlashVersion(_arg1:uint, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0):Boolean{
var _local6:Array = Capabilities.version.split(" ")[1].split(",");
var _local7:Array = arguments;
var _local8:uint;
while (_local8 < _local7.length) {
_local6[_local8] = uint(_local6[_local8]);
_local8++;
};
_local8 = 0;
while (_local8 < _local7.length) {
if (_local6[_local8] > _local7[_local8]){
return (true);
};
if (_local6[_local8] < _local7[_local8]){
return (false);
};
_local8++;
};
return (true);
}
public static function createAd():FlashAd{
sendMessage("You may see a security sandbox violation. This is normal!");
return (new FlashAd());
}
public static function sendMessage(_arg1:String, _arg2:Boolean=false):void{
var _local3:String = ("[NewgroundsAPI] :: " + _arg1);
trace(_local3);
if (_bridge){
_bridge.sendEvent("trace", {data:_local3});
};
}
private static function echo(_arg1:String):void{
if (do_echo){
trace(_arg1);
};
}
}
}//package com.newgrounds
Section 27
//APIError (com.newgrounds.APIError)
package com.newgrounds {
import flash.utils.*;
public class APIError {
public var code:Number;// = 0
public var message:String;
public var name:String;
public var alias:String;
public static const aliases:Array = new Array("UNKNOWN_ERROR", "INVALID_API_ID", "MISSING_PARAM", "INVALID_STAT_ID", "INVALID_COMMAND_ID", "FLASH_ADS_NOT_APPROVED", "PERMISSION_DENIED", "IDENTIFICATION_REQUIRED", "INVALID_EMAIL_ADDRESS", "BANNED_USER", "SESSION_EXPIRED", "INVALID_SCORE", "INVALID_MEDAL", "INVALID_FOLDER", "FILE_NOT_FOUND", "SITE_ID_REQUIRED", "UPLOAD_IN_PROGRESS", "USER_CANCELLED", "CONFIRM_REQUEST", "CONNECTION_FAILED");
private static const always_caps:Array = new Array("API", "URL", "ID");
public static const error_codes:Object = init_codes();
public static const error_names:Object = init_names();
public function APIError(_arg1, _arg2:String){
if ((_arg1 is String)){
_arg1 = error_codes[_arg1];
} else {
if (!(_arg1 is uint)){
_arg1 = 0;
};
};
this.code = _arg1;
this.message = _arg2;
this.name = error_names[_arg1];
this.alias = aliases[_arg1];
}
public function isError():Boolean{
return (true);
}
public static function init_codes():Dictionary{
var _local1:Dictionary = new Dictionary();
var _local2:uint;
while (_local2 < aliases.length) {
_local1[aliases[_local2]] = _local2;
_local2++;
};
return (_local1);
}
private static function init_names():Array{
var _local3:Array;
var _local4:uint;
var _local5:String;
var _local1:Array = new Array();
var _local2:uint;
while (_local2 < aliases.length) {
_local3 = aliases[_local2].toLowerCase().split("_");
_local4 = 0;
while (_local4 < _local3.length) {
_local3[_local4] = (_local3[_local4].substr(0, 1).toUpperCase() + _local3[_local4].substr(1, _local3[_local4].length));
for each (_local5 in always_caps) {
if (_local3[_local4].toUpperCase() == _local5){
_local3[_local4] = _local3[_local4].toUpperCase();
};
};
_local4++;
};
_local1[_local2] = _local3.join(" ");
_local2++;
};
return (_local1);
}
}
}//package com.newgrounds
Section 28
//APIEvent (com.newgrounds.APIEvent)
package com.newgrounds {
import flash.events.*;
public class APIEvent extends Event {
private var _data;
private var _success:Boolean;
private var _target;
private var _error:APIError;
public static const API_CONNECTED:String = "movieConnected";
public static const ADS_APPROVED:String = "adsApproved";
public static const AD_ATTACHED:String = "adAttached";
public static const HOST_BLOCKED:String = "hostBlocked";
public static const NEW_VERSION_AVAILABLE:String = "newVersionAvailable";
public static const EVENT_LOGGED:String = "eventLogged";
public static const SCORE_POSTED:String = "scorePosted";
public static const SCORES_LOADED:String = "scoresLoaded";
public static const UNLOCK_MEDAL:String = "unlockMedal";
public static const MEDAL_UNLOCKED:String = "medalUnlocked";
public static const MEDALS_LOADED:String = "medalsLoaded";
public static const METADATA_LOADED:String = "metadataLoaded";
public static const FILE_PRIVS_LOADED:String = "filePrivsLoaded";
public static const FILE_SAVED:String = "fileSaved";
public static const FILE_LOADED:String = "fileLoaded";
public static const FILE_INITIALIZED:String = "fileInitialized";
public static const FILE_REQUESTED:String = "fileRequested";
public static const QUERY_COMPLETE:String = "queryComplete";
public static const VOTE_COMPLETE:String = "voteComplete";
public function APIEvent(_arg1:String, _arg2:Boolean=true, _arg3=undefined){
super(_arg1);
this._data = _arg3;
this._success = _arg2;
}
public function get success():Boolean{
return (this._success);
}
public function get data(){
return (this._data);
}
}
}//package com.newgrounds
Section 29
//BaseN (com.newgrounds.BaseN)
package com.newgrounds {
import flash.utils.*;
public class BaseN {
private var _hashIndex:String;
private var _hashVal:Dictionary;
private var _base:Number;
public function BaseN(_arg1:String=null){
if (_arg1){
this._hashIndex = _arg1;
} else {
this._hashIndex = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/";
};
this._base = this._hashIndex.length;
this._hashVal = new Dictionary();
var _local2:uint;
while (_local2 < this._base) {
this._hashVal[this._hashIndex.charAt(_local2)] = _local2;
_local2++;
};
}
public function encode(_arg1:Number, _arg2:uint=1):String{
var _local3:String = _arg1.toString();
var _local4 = "";
if (_local3.charAt(0) == "-"){
_local4 = "-";
_local3 = _local3.substring(1);
};
var _local5:Array = _local3.split(".", 2);
_local4 = (_local4 + this.baseNEncoder(_local5[0], _arg2));
if (_local5.length > 1){
_local4 = (_local4 + ("." + this.baseNEncoder(_local5[1])));
};
return (_local4);
}
public function decode(_arg1:String):Number{
var _local2 = "";
if (_arg1.charAt(0) == "-"){
_local2 = "-";
_arg1 = _arg1.substring(1);
};
var _local3:Array = _arg1.split(".", 2);
_local2 = (_local2 + this.baseNDecoder(_local3[0]));
if (_local3.length > 1){
_local2 = (_local2 + ".");
_local2 = (_local2 + this.baseNDecoder(_local3[1]));
};
return (Number(_local2));
}
private function baseNEncoder(_arg1:uint, _arg2:uint=1):String{
var _local3 = "";
var _local4:uint = _arg1;
while (_local4 != 0) {
_local3 = (this._hashIndex.charAt((_local4 % this._base)) + _local3);
_local4 = (_local4 / this._base);
};
if (_arg2){
while (_local3.length < _arg2) {
_local3 = (this._hashIndex.charAt(0) + _local3);
};
};
return (_local3);
}
private function baseNDecoder(_arg1:String):uint{
var _local2:uint;
var _local3:uint;
while (_local3 < _arg1.length) {
_local2 = (_local2 * this._base);
_local2 = (_local2 + this._hashVal[_arg1.charAt(_local3)]);
_local3++;
};
return (_local2);
}
}
}//package com.newgrounds
Section 30
//Bridge (com.newgrounds.Bridge)
package com.newgrounds {
import flash.events.*;
import flash.net.*;
public class Bridge {
private var _inConnection:LocalConnection;
private var _outConnection:LocalConnection;
private var _widgetId:String;
public function Bridge(_arg1:String){
this._widgetId = _arg1;
this._inConnection = new LocalConnection();
this._outConnection = new LocalConnection();
this._inConnection.client = this;
this._inConnection.connect(("rec_" + this._widgetId));
this._outConnection.addEventListener(StatusEvent.STATUS, this.onStatus);
}
public function sendCommand(_arg1:String, _arg2:Object):void{
if (this._outConnection){
this._outConnection.send(this._widgetId, "sendCommand", _arg1, this.scrubParameters(_arg2));
};
}
public function sendEvent(_arg1:String, _arg2:Object):void{
if (this._outConnection){
this._outConnection.send(this._widgetId, "sendEvent", _arg1, this.scrubParameters(_arg2));
};
}
public function receiveEvent(_arg1:String, _arg2:Object):void{
API.callListener(_arg1, _arg2.success, _arg2.data);
}
public function scrubParameters(_arg1:Object):Object{
var _local3:String;
var _local2:Object = new Object();
for (_local3 in _arg1) {
if ((((((((((_arg1[_local3] is String)) || ((_arg1[_local3] is Number)))) || ((_arg1[_local3] is uint)))) || ((_arg1[_local3] is int)))) || ((_arg1[_local3] is Boolean)))){
_local2[_local3] = _arg1[_local3];
};
};
return (_local2);
}
private function onStatus(_arg1:Event):void{
}
}
}//package com.newgrounds
Section 31
//Medal (com.newgrounds.Medal)
package com.newgrounds {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class Medal {
private var _id:uint;
private var _name:String;
private var _value:uint;
private var _difficultyId:uint;
private var _unlocked:Boolean;// = false
private var _iconUrl:URLRequest;
private var _iconLoader:Loader;
private var _icon:BitmapData;
private static const DEFAULT_ICON:BitmapData = new BitmapData(50, 50, false, 0);
private static const DIFFICULT_NAMES:Array = [null, "Easy", "Moderate", "Challenging", "Difficult", "Brutal"];
public function Medal(_arg1:uint, _arg2:String, _arg3:uint, _arg4:uint, _arg5:Boolean, _arg6:String){
var id = _arg1;
var name = _arg2;
var value = _arg3;
var difficulty = _arg4;
var unlocked = _arg5;
var iconUrl = _arg6;
this._icon = DEFAULT_ICON;
super();
this._id = id;
this._name = name;
this._value = value;
this._difficultyId = difficulty;
this._unlocked = unlocked;
if (iconUrl){
this._iconUrl = new URLRequest(iconUrl);
this._iconLoader = new Loader();
this._iconLoader.contentLoaderInfo.addEventListener(Event.INIT, this.onIconLoaderInit);
this._iconLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.onIconLoaderError);
this._iconLoader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onIconLoaderError);
this._iconLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onIconLoaderComplete);
try {
this._iconLoader.load(this._iconUrl, new LoaderContext(true));
} catch(e:Error) {
onIconLoaderError(null);
};
};
}
public function get difficulty():String{
return (DIFFICULT_NAMES[this._difficultyId]);
}
public function get difficultyId():uint{
return (this._difficultyId);
}
public function get icon():BitmapData{
return (this._icon);
}
public function get id():uint{
return (this._id);
}
public function get name():String{
return (this._name);
}
public function get unlocked():Boolean{
return (this._unlocked);
}
public function isUnlocked():Boolean{
return (this._unlocked);
}
public function set unlocked(_arg1:Boolean):void{
this._unlocked = _arg1;
}
public function get value():uint{
return (this._value);
}
public function get bytesLoaded():uint{
return ((this._iconLoader) ? this._iconLoader.contentLoaderInfo.bytesLoaded : 0);
}
public function get bytesTotal():uint{
return ((this._iconLoader) ? this._iconLoader.contentLoaderInfo.bytesTotal : 0);
}
public function getID():uint{
return (this._id);
}
public function getName():String{
return (this._name);
}
public function getValue():uint{
return (this._value);
}
public function getDifficulty():String{
return (DIFFICULT_NAMES[this._difficultyId]);
}
private function onIconLoaderInit(_arg1:Event):void{
}
private function onIconLoaderError(_arg1:IOErrorEvent):void{
trace((((("[NewgroundsAPI WARNING] :: Failed to load medal icon for " + this.name) + " (") + this._iconUrl.url.split("/").pop()) + ")"));
this._iconLoader.unload();
this._iconLoader = null;
}
private function onIconLoaderComplete(_arg1:Event):void{
var _local2:Bitmap = (this._iconLoader.content as Bitmap);
this._icon = _local2.bitmapData;
this._iconLoader.unload();
this._iconLoader = null;
}
public function unlock():void{
if (!this._unlocked){
API.unlockMedal(this._name);
};
}
public function createIconBitmap():Bitmap{
return (new Bitmap(this.icon));
}
public function toString():String{
return (this._name);
}
public static function createFromObject(_arg1:Object):Medal{
return (new Medal(_arg1.medal_id, _arg1.medal_name, _arg1.medal_value, _arg1.medal_difficulty, _arg1.medal_unlocked, _arg1.medal_icon));
}
}
}//package com.newgrounds
Section 32
//RC4 (com.newgrounds.RC4)
package com.newgrounds {
public class RC4 {
private static var sbox:Array = new Array(0xFF);
private static var mykey:Array = new Array(0xFF);
public static function encrypt(_arg1:String, _arg2:String):String{
var _local3:Array = strToChars(_arg1);
var _local4:Array = strToChars(_arg2);
var _local5:Array = calculate(_local3, _local4);
return (charsToHex(_local5));
}
public static function encryptbin(_arg1:String, _arg2:String):Array{
var _local3:Array = strToChars(_arg1);
var _local4:Array = strToChars(_arg2);
var _local5:Array = calculate(_local3, _local4);
return (_local5);
}
public static function decrypt(_arg1:String, _arg2:String):String{
var _local3:Array = hexToChars(_arg1);
var _local4:Array = strToChars(_arg2);
var _local5:Array = calculate(_local3, _local4);
return (charsToStr(_local5));
}
private static function initialize(_arg1:Array):void{
var _local3:uint;
var _local2:uint;
var _local4:uint = _arg1.length;
var _local5:uint;
while (_local5 <= 0xFF) {
mykey[_local5] = _arg1[(_local5 % _local4)];
sbox[_local5] = _local5;
_local5++;
};
_local5 = 0;
while (_local5 <= 0xFF) {
_local2 = (((_local2 + sbox[_local5]) + mykey[_local5]) % 0x0100);
_local3 = sbox[_local5];
sbox[_local5] = sbox[_local2];
sbox[_local2] = _local3;
_local5++;
};
}
private static function calculate(_arg1:Array, _arg2:Array):Array{
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local10:uint;
initialize(_arg2);
var _local3:uint;
var _local4:uint;
var _local5:Array = new Array();
var _local9:uint;
while (_local9 < _arg1.length) {
_local3 = ((_local3 + 1) % 0x0100);
_local4 = ((_local4 + sbox[_local3]) % 0x0100);
_local7 = sbox[_local3];
sbox[_local3] = sbox[_local4];
sbox[_local4] = _local7;
_local10 = ((sbox[_local3] + sbox[_local4]) % 0x0100);
_local6 = sbox[_local10];
_local8 = (_arg1[_local9] ^ _local6);
_local5.push(_local8);
_local9++;
};
return (_local5);
}
private static function charsToHex(_arg1:Array):String{
var _local2:String = new String("");
var _local3:Array = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local4:uint;
while (_local4 < _arg1.length) {
_local2 = (_local2 + (_local3[(_arg1[_local4] >> 4)] + _local3[(_arg1[_local4] & 15)]));
_local4++;
};
return (_local2);
}
private static function hexToChars(_arg1:String):Array{
var _local2:Array = new Array();
var _local3:uint = ((_arg1.substr(0, 2))=="0x") ? 2 : 0;
while (_local3 < _arg1.length) {
_local2.push(parseInt(_arg1.substr(_local3, 2), 16));
_local3 = (_local3 + 2);
};
return (_local2);
}
private static function charsToStr(_arg1:Array):String{
var _local2:String = new String("");
var _local3:uint;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(_arg1[_local3]));
_local3++;
};
return (_local2);
}
private static function strToChars(_arg1:String):Array{
var _local2:Array = new Array();
var _local3:uint;
while (_local3 < _arg1.length) {
_local2.push(_arg1.charCodeAt(_local3));
_local3++;
};
return (_local2);
}
}
}//package com.newgrounds
Section 33
//SaveFile (com.newgrounds.SaveFile)
package com.newgrounds {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class SaveFile extends EventDispatcher {
private var _filename:String;
private var _id:uint;
private var _description:String;
private var _contents;
private var _loader:SmartURLLoader;
private var _group:SaveGroup;
private var _keys:Dictionary;
private var _ratings:Dictionary;
private var _fileUrl:String;
private var _thumbnail:BitmapData;
private var _thumbnailUrl:String;
private var _authorId:uint;
private var _authorName:String;
private var _contentSize:uint;
private var _locked:Boolean;
private var _status:uint;
private var duplicate_id:uint;
private var _draft:Boolean;
public static const STATUS_PRIVATE = 1;
public static const STATUS_SHARED = 2;
public static const STATUS_UNAPPROVED = 3;
public static const STATUS_APPROVED = 4;
public function SaveFile(_arg1:SaveGroup){
this._keys = new Dictionary();
this._ratings = new Dictionary();
this._group = _arg1;
this._description = "";
}
public function get name():String{
return (this._filename);
}
public function set name(_arg1:String):void{
this._filename = _arg1;
}
public function get id():uint{
return (this._id);
}
public function set id(_arg1:uint):void{
this._id = _arg1;
}
public function get description():String{
return (this._description);
}
public function set description(_arg1:String):void{
this._description = _arg1;
}
public function get contents(){
return (this._contents);
}
public function set contents(_arg1):void{
this._contents = _arg1;
this._contentSize = 0;
}
public function get thumbnailUrl():String{
return (this._thumbnailUrl);
}
public function set thumbnailUrl(_arg1:String):void{
this._thumbnailUrl = _arg1;
}
public function get fileUrl():String{
return (this._fileUrl);
}
public function set fileUrl(_arg1:String):void{
this._fileUrl = _arg1;
}
public function get thumbnail():BitmapData{
return (this._thumbnail);
}
public function set thumbnail(_arg1:BitmapData):void{
if (this._thumbnail){
this._thumbnail.dispose();
};
this._thumbnail = _arg1.clone();
}
public function loadThumbnail():Loader{
var _local1:Loader = new Loader();
if (this._thumbnailUrl){
_local1.load(new URLRequest(this._thumbnailUrl));
};
return (_local1);
}
public function get bytesLoaded():uint{
return ((this._loader) ? this._loader.bytesLoaded : this._contentSize);
}
public function get bytesTotal():uint{
return (this._contentSize);
}
public function get status():uint{
return (this._status);
}
function setStatus(_arg1:uint):void{
this._status = _arg1;
}
public function get groupId():uint{
return (this._group.id);
}
public function get groupName():String{
return (this._group.name);
}
public function get groupType():uint{
return (this._group.type);
}
public function get authorName():String{
return (this._authorName);
}
public function set authorName(_arg1:String):void{
this._authorName = _arg1;
}
public function get authorId():uint{
return (this._authorId);
}
public function set authorId(_arg1:uint):void{
this._authorId = _arg1;
}
public function get draft():Boolean{
return (this._draft);
}
public function set draft(_arg1:Boolean):void{
this._draft = _arg1;
}
public function get locked():Boolean{
return (this._locked);
}
public function get shared():Boolean{
return ((this._status == STATUS_SHARED));
}
public function get isPrivate():Boolean{
return ((this._status == STATUS_PRIVATE));
}
public function get isPublic():Boolean{
if (this.isPrivate){
return (false);
};
if (((this._group.isType("SYSTEM")) || (this._group.isType("PRIVATE")))){
return (false);
};
if (this._group.isType("PUBLIC")){
return (true);
};
if (this.approved){
return (true);
};
return (false);
}
public function get approved():Boolean{
return ((this._status > STATUS_UNAPPROVED));
}
public function get keys():Dictionary{
return (this._keys);
}
public function get ratings():Dictionary{
return (this._ratings);
}
function setPermissions(_arg1:uint, _arg2:Boolean){
_arg2 = this._locked;
this._status = _arg1;
}
function setFileSize(_arg1:uint):void{
this._contentSize = _arg1;
}
public function isLocked():Boolean{
return (this._locked);
}
public function getDescription():String{
return (this._description);
}
public function getShared():Boolean{
return (this._draft);
}
public function getDuplicateID():uint{
return (this.duplicate_id);
}
public function getKeys():Dictionary{
return (this._keys);
}
public function getRatings():Dictionary{
return (this._ratings);
}
public function setKey(_arg1, _arg2):void{
var _local3:SaveKey;
if ((_arg1 is String)){
_local3 = this._group.getKeyName(_arg1);
} else {
_local3 = this._group.getKeyID(_arg1);
};
if (_local3){
switch (_local3.type){
case SaveKey.TYPE_BOOLEAN:
this._keys[_local3] = {id:_local3.id, value:Boolean(int(_arg2))};
break;
case SaveKey.TYPE_FLOAT:
this._keys[_local3] = {id:_local3.id, value:Number(_arg2)};
break;
case SaveKey.TYPE_INTEGER:
this._keys[_local3] = {id:_local3.id, value:int(_arg2)};
break;
case SaveKey.TYPE_STRING:
default:
this._keys[_local3] = {id:_local3.id, value:_arg2.toString()};
break;
};
};
}
public function getKey(_arg1){
var _local2:SaveKey;
if ((_arg1 is String)){
_local2 = this._group.getKeyName(_arg1);
} else {
_local2 = this._group.getKeyID(_arg1);
};
if (_local2){
return (this._keys[_local2]);
};
return (null);
}
public function setRating(_arg1, _arg2:Number, _arg3:Number):void{
var _local4:SaveRating;
if ((_arg1 is String)){
_local4 = this._group.getRatingName(_arg1);
} else {
_local4 = this._group.getRatingID(_arg1);
};
if (_local4){
this._ratings[_local4] = {id:_local4.id, name:_local4.name, votes:_arg2, score:_arg3};
};
}
public function getRating(_arg1):Object{
var _local2:SaveRating;
if ((_arg1 is String)){
_local2 = this._group.getRatingName(_arg1);
} else {
_local2 = this._group.getRatingID(_arg1);
};
if (_local2){
return (this._ratings[_local2]);
};
return (null);
}
public function sendRating(_arg1:String, _arg2:Number):void{
var _local3:SaveRating = this._group.getRatingName(_arg1);
if (!_local3){
trace((("[NewgroundsAPISaveFile] " + _arg1) + " is not a recognized save file"));
return;
};
if ((((_arg2 < _local3.minValue)) || ((_arg2 > _local3.maxValue)))){
trace(((("[NewgroundsAPISaveFile] Vote must be between " + _local3.minValue) + " and ") + _local3.maxValue));
return;
};
_local3.voted = true;
API.rateSaveFile(this, _local3, _arg2);
}
override public function toString():String{
var _local2:Object;
var _local3:Object;
var _local1 = (((((("Save File " + this._filename) + " ID: ") + this._id) + "\n ") + this._description) + "\n");
for each (_local2 in this._keys) {
_local1 = (_local1 + ((((" " + this._group.getKeyID(_local2.id).name) + ": ") + _local2.val) + "\n"));
};
for each (_local3 in this._ratings) {
_local1 = (_local1 + ((((((" " + this._group.getRatingID(_local3.id).name) + "\n Score: ") + _local3.score) + " Votes: ") + _local3.votes) + "\n"));
};
return (_local1);
}
public function toObject():Object{
var _local2:Object;
var _local1:Object = {group:this.groupId, filename:this.name, description:this.description, shared:true};
_local1.keys = [];
for each (_local2 in this._keys) {
_local1.keys.push({id:_local2.id, value:_local2.val});
};
return (_local1);
}
public function save(_arg1:Boolean=false, _arg2:Boolean=false):void{
API.saveFile(this, _arg1, _arg2);
}
public function loadContents():void{
if (this._fileUrl){
this._loader = new SmartURLLoader();
this._loader.responseFormat = URLLoaderDataFormat.BINARY;
this._loader.addEventListener(Event.COMPLETE, this.onContentsLoaded);
this._loader.addEventListener(IOErrorEvent.IO_ERROR, this.onContentsError);
this._loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onContentsError);
this._loader.load(this._fileUrl);
};
}
private function onContentsError(_arg1:Event):void{
this._loader = null;
dispatchEvent(new APIEvent(APIEvent.FILE_LOADED, false));
API.callListener(APIEvent.FILE_LOADED, false);
}
private function onContentsLoaded(_arg1:Event):void{
var _local2:ByteArray = _arg1.target.response;
this._contentSize = _local2.length;
_local2.uncompress();
var _local3:uint = _local2.readUnsignedByte();
if (_local3 == 0){
this._contents = new ByteArray();
this._contents.writeBytes(_local2, 1);
} else {
this._contents = _local2.readObject();
};
this._loader = null;
dispatchEvent(new APIEvent(APIEvent.FILE_LOADED, true, {file:this}));
API.callListener(APIEvent.FILE_LOADED, true, {file:this});
}
public function loadAuthorPage(){
API.loadUserPage(this._authorId, this._authorName);
}
function fileSaved(_arg1:Object):void{
this._id = _arg1.save_id;
this._thumbnailUrl = _arg1.thumbnail;
this._fileUrl = _arg1.file_url;
}
}
}//package com.newgrounds
Section 34
//SaveGroup (com.newgrounds.SaveGroup)
package com.newgrounds {
public class SaveGroup {
private var _name:String;
private var _id:uint;
private var _type:uint;
private var _keys:Array;
private var _ratings:Array;
private var _files:Array;
private var _query:SaveGroupQuery;
public static const TYPE_SYSTEM:uint = 0;
public static const TYPE_PRIVATE:uint = 1;
public static const TYPE_PUBLIC:uint = 2;
public static const TYPE_MODERATED:uint = 3;
public static const KEY_TYPES:Array = [null, "float", "integer", "string", "boolean"];
public static const TYPES:Object = {SYSTEM:0, PRIVATE:1, PUBLIC:2, MODERATED:3};
public function SaveGroup(_arg1:uint, _arg2:String, _arg3:uint){
this._name = _arg2;
this._id = _arg1;
this._type = _arg3;
this._ratings = [];
this._keys = [];
this._files = [];
this._query = new SaveGroupQuery(this);
}
public function get name():String{
return (this._name);
}
public function get id():uint{
return (this._id);
}
public function get type():uint{
return (this._type);
}
public function get keys():Array{
return (this._keys);
}
public function get ratings():Array{
return (this._ratings);
}
public function get group_id():uint{
return (this._id);
}
public function get group_name():String{
return (this._name);
}
public function addRating(_arg1:SaveRating):void{
this._ratings.push(_arg1);
}
function getRating(_arg1):SaveRating{
var _local2:uint;
while (_local2 < this._ratings.length) {
if ((((((((_arg1 is uint)) || ((_arg1 is int)))) || ((_arg1 is Number)))) && ((this._ratings[_local2].rating_id == _arg1)))){
return (this._ratings[_local2]);
};
if (this._ratings[_local2].name == _arg1){
return (this._ratings[_local2]);
};
_local2++;
};
return (null);
}
public function getRatingID(_arg1:uint):SaveRating{
var _local2:uint;
while (_local2 < this._ratings.length) {
if (this._ratings[_local2].id == _arg1){
return (this._ratings[_local2]);
};
_local2++;
};
return (null);
}
public function getRatingName(_arg1:String):SaveRating{
var _local2:uint;
while (_local2 < this._ratings.length) {
if (this._ratings[_local2].name == _arg1){
return (this._ratings[_local2]);
};
_local2++;
};
return (null);
}
public function addKey(_arg1:SaveKey):void{
this._keys.push(_arg1);
}
public function getKey(_arg1):SaveKey{
var _local2:uint;
while (_local2 < this._keys.length) {
if ((((((((_arg1 is Number)) || ((_arg1 is uint)))) || ((_arg1 is int)))) && ((this._keys[_local2].key_id == _arg1)))){
return (this._keys[_local2]);
};
if (this._keys[_local2].key_name == _arg1){
return (this._keys[_local2]);
};
_local2++;
};
return (null);
}
public function getKeyID(_arg1:uint):SaveKey{
var _local2:uint;
while (_local2 < this._keys.length) {
if (this._keys[_local2].id == _arg1){
return (this._keys[_local2]);
};
_local2++;
};
return (null);
}
public function getKeyType(_arg1:String, _arg2:Boolean=false){
var _local3:SaveKey = this.getKey(_arg1);
if (_local3){
return ((_arg2) ? KEY_TYPES[_local3.key_type] : _local3.key_type);
};
return (null);
}
public function getKeyName(_arg1:String):SaveKey{
var _local2:uint;
while (_local2 < this._keys.length) {
if (this._keys[_local2].name == _arg1){
return (this._keys[_local2]);
};
_local2++;
};
return (null);
}
public function isType(_arg1:String):Boolean{
return ((TYPES[this._type] == _arg1));
}
public function getID():uint{
return (this._id);
}
public function getName():String{
return (this._name);
}
public function getQuery(_arg1:Boolean=false){
return ((_arg1) ? this._query.toObject() : this._query);
}
public function newQuery():SaveGroupQuery{
return (new SaveGroupQuery(this));
}
public function newFile():SaveFile{
return (new SaveFile(this));
}
public function toString():String{
return ((((((("SaveGroup { name: " + this._name) + ", id: ") + this._id) + ", keys: ") + this._keys) + "}"));
}
public static function createFromObject(_arg1:Object):SaveGroup{
var _local4:Object;
var _local5:Object;
var _local2:SaveGroup = new SaveGroup(_arg1.group_id, _arg1.group_name, _arg1.group_type);
var _local3:uint;
while (_local3 < _arg1.keys.length) {
_local4 = _arg1.keys[_local3];
_local2.addKey(new SaveKey(_local4.id, _local4.name, _local4.type));
_local3++;
};
_local3 = 0;
while (_local3 < _arg1.ratings.length) {
_local5 = _arg1.ratings[_local3];
_local2.addRating(new SaveRating(_local5.id, _local5.name, _local5.float, _local5.min, _local5.max));
_local3++;
};
return (_local2);
}
}
}//package com.newgrounds
Section 35
//SaveGroupQuery (com.newgrounds.SaveGroupQuery)
package com.newgrounds {
import flash.events.*;
public class SaveGroupQuery extends EventDispatcher {
private var _group:SaveGroup;
private var _groupBy:Array;
private var _lookupKeys:Array;
private var _lookupRatings:Array;
private var _fileConditions:Array;
private var _keyConditions:Array;
private var _ratingConditions:Array;
private var _sortConditions:Array;
private var _page:uint;
private var _resultsPerPage:uint;
private var _randomizeResults:Boolean;
private var _results:Array;
public static const TABLE_FILES:uint = 1;
public static const TABLE_KEYS:uint = 2;
public static const TABLE_RATINGS:uint = 3;
public static const FILE_ID:uint = 0;
public static const AUTHOR_ID:uint = 1;
public static const AUTHOR_NAME:uint = 2;
public static const FILE_NAME:uint = 3;
public static const CREATED_ON:uint = 4;
public static const UPDATED_ON:uint = 5;
public static const TOTAL_VIEWS:uint = 6;
public static const FILE_STATUS:uint = 7;
public static const SCORE:String = "score";
public static const TOTAL_VOTES:String = "votes";
public function SaveGroupQuery(_arg1:SaveGroup){
this._results = [];
super();
this._group = _arg1;
this.reset();
}
public function clearCache():void{
this._results = [];
}
public function get group():SaveGroup{
return (this._group);
}
public function get groupId():uint{
return (this._group.id);
}
public function get resultsPerPage():uint{
return (this._resultsPerPage);
}
public function set resultsPerPage(_arg1:uint):void{
this._resultsPerPage = _arg1;
}
public function get page():uint{
return (this._page);
}
public function set page(_arg1:uint):void{
this._page = _arg1;
}
public function get randomized():Boolean{
return (this._randomizeResults);
}
public function set randomized(_arg1:Boolean):void{
this._randomizeResults = _arg1;
}
public function get results():Array{
return (this._results);
}
public function reset():void{
this._fileConditions = [];
this._keyConditions = [];
this._ratingConditions = [];
this._sortConditions = [];
this._groupBy = [];
this._lookupKeys = [];
this._lookupRatings = [];
this._randomizeResults = false;
this._resultsPerPage = 20;
this._page = 1;
this.clearCache();
}
function getGroup():SaveGroup{
return (this._group);
}
function getGroupID():uint{
return (this._group.getID());
}
public function includeKey(_arg1:String):void{
var _local2:SaveKey = this._group.getKeyName(_arg1);
if (_local2){
this._lookupKeys.push(_local2.id);
};
}
public function isRandomized():Boolean{
return (this._randomizeResults);
}
public function includeRating(_arg1:String):void{
var _local2:SaveRating = this._group.getRatingName(_arg1);
if (_local2){
this._lookupRatings.push(_local2.id);
};
}
public function excludeKey(_arg1:String):void{
var _local2:SaveKey = this._group.getKeyName(_arg1);
var _local3:uint;
while (_local3 < this._lookupKeys.length) {
if (this._lookupKeys[_local3] == _local2.id){
this._lookupKeys.splice(_local3, 1);
return;
};
_local3++;
};
}
public function excludeRating(_arg1:String):void{
var _local2:SaveRating = this._group.getRatingName(_arg1);
var _local3:uint;
while (_local3 < this._lookupRatings.length) {
if (this._lookupRatings[_local3] == _local2.id){
this._lookupRatings.splice(_local3, 1);
return;
};
_local3++;
};
}
public function groupBy(_arg1:uint):void{
this._groupBy.push({table:TABLE_FILES, field:_arg1});
}
public function groupByRating(_arg1:String):void{
var _local2:SaveRating = this._group.getRatingName(_arg1);
if (!_local2){
return;
};
this._groupBy.push({table:TABLE_RATINGS, field:_local2.id});
}
public function groupByKey(_arg1:String):void{
var _local2:SaveKey = this._group.getKeyName(_arg1);
if (!_local2){
return;
};
this._groupBy.push({table:TABLE_KEYS, field:_local2.id});
}
public function addFileCondition(_arg1:uint, _arg2:String, _arg3):void{
this._fileConditions.push({field:_arg1, operator:_arg2, value:_arg3});
}
public function addKeyCondition(_arg1:String, _arg2:String, _arg3):void{
var _local4:SaveKey = this._group.getKeyName(_arg1);
if (!_local4){
return;
};
if (!this.checkValue(_arg3, _local4.type)){
return;
};
this._keyConditions.push({key_id:_local4.id, operator:_arg2, value:_arg3});
}
public function addRatingCondition(_arg1:String, _arg2:String, _arg3, _arg4:String="score"):void{
var _local5:SaveRating = this._group.getRatingName(_arg1);
if (!_local5){
return;
};
this._ratingConditions.push({rating_id:_local5.id, operator:_arg2, value:_arg3, column:_arg4});
}
private function addSortCondition(_arg1:uint, _arg2:uint, _arg3:Boolean=false, _arg4=null):void{
var _local5:Object = {table:_arg1, field:_arg2, desc:_arg3};
if (_arg4){
_local5.extra = _arg4;
};
this._sortConditions.push(_local5);
}
public function sortOn(_arg1:uint, _arg2:Boolean=false):void{
this.addSortCondition(TABLE_FILES, _arg1, _arg2);
}
public function sortOnKey(_arg1:String, _arg2:Boolean=false):void{
this.addSortCondition(TABLE_KEYS, this._group.getKeyName(_arg1).id, _arg2);
}
public function sortOnRating(_arg1:String, _arg2:Boolean=false, _arg3:String="score"):void{
this.addSortCondition(TABLE_RATINGS, this._group.getRatingName(_arg1).id, _arg2, _arg3);
}
public function sortOnRatingScore(_arg1:String, _arg2:Boolean){
this.sortOnRating(_arg1, _arg2, SCORE);
}
public function sortOnRatingVotes(_arg1:String, _arg2:Boolean){
this.sortOnRating(_arg1, _arg2, TOTAL_VOTES);
}
public function setResultsPerPage(_arg1:uint){
this._resultsPerPage = _arg1;
this.clearCache();
}
public function setPage(_arg1:Number){
this._page = _arg1;
this.clearCache();
}
public function setRandomize(_arg1:Boolean):void{
this._randomizeResults = _arg1;
}
public function execute():void{
API.executeSaveQuery(this);
}
private function checkValue(_arg1, _arg2:uint):Boolean{
return (true);
}
function setResults(_arg1:Array):void{
this._results = _arg1;
}
override public function toString():String{
return ("");
}
public function toObject():Object{
var _local1:Object = {page:this._page, num_results:this._resultsPerPage};
if (this.isRandomized()){
_local1.randomize = 1;
};
if (((this._fileConditions) && ((this._fileConditions.length > 0)))){
_local1.file_conditions = this._fileConditions;
};
if (((this._keyConditions) && ((this._keyConditions.length > 0)))){
_local1.key_conditions = this._keyConditions;
};
if (((this._ratingConditions) && ((this._ratingConditions.length > 0)))){
_local1.rating_conditions = this._ratingConditions;
};
if (((this._sortConditions) && ((this._sortConditions.length > 0)))){
_local1.sort_conditions = this._sortConditions;
};
if (((this._lookupKeys) && ((this._lookupKeys.length > 0)))){
_local1.lookup_keys = this._lookupKeys;
};
if (((this._lookupRatings) && ((this._lookupRatings.length > 0)))){
_local1.lookup_ratings = this._lookupRatings;
};
if (((this._groupBy) && ((this._groupBy.length > 0)))){
_local1.group_by = this._groupBy;
};
return (_local1);
}
}
}//package com.newgrounds
Section 36
//SaveKey (com.newgrounds.SaveKey)
package com.newgrounds {
public class SaveKey {
private var _id:uint;
private var _name:String;
private var _type:uint;
public static const TYPE_FLOAT:uint = 1;
public static const TYPE_INTEGER:uint = 2;
public static const TYPE_STRING:uint = 3;
public static const TYPE_BOOLEAN:uint = 4;
public function SaveKey(_arg1:uint, _arg2:String, _arg3:uint){
this._id = _arg1;
this._name = _arg2;
this._type = _arg3;
}
public function get id():uint{
return (this._id);
}
public function get name():String{
return (this._name);
}
public function get type():uint{
return (this._type);
}
public function get key_id():uint{
return (this._id);
}
public function get key_name():String{
return (this._name);
}
public function get key_type():uint{
return (this._type);
}
public function isValueValid(_arg1):Boolean{
if (this._type == TYPE_INTEGER){
return ((((_arg1 is int)) || ((_arg1 is uint))));
};
if (this._type == TYPE_FLOAT){
return ((((((_arg1 is int)) || ((_arg1 is uint)))) || ((_arg1 is Number))));
};
if (this._type == TYPE_STRING){
return ((_arg1 is String));
};
if (this._type == TYPE_BOOLEAN){
return ((((((((_arg1 is Boolean)) || ((_arg1 === 0)))) || ((_arg1 === 1)))) || ((_arg1 == ""))));
};
return (false);
}
public function toString():String{
return (this._name);
}
}
}//package com.newgrounds
Section 37
//SaveRating (com.newgrounds.SaveRating)
package com.newgrounds {
public class SaveRating {
private var _id:uint;
private var _name:String;
private var _minValue:Number;
private var _maxValue:Number;
private var _isFloat:Boolean;
private var _voted:Boolean;
public function SaveRating(_arg1:uint, _arg2:String, _arg3:Boolean, _arg4:Number=-INF, _arg5:Number=INF){
this._id = _arg1;
this._name = _arg2;
this._isFloat = _arg3;
this._minValue = _arg4;
this._maxValue = _arg5;
}
public function get rating_id():uint{
return (this._id);
}
public function get rating_name():String{
return (this._name);
}
public function get id():uint{
return (this._id);
}
public function get name():String{
return (this._name);
}
public function get minValue():Number{
return (this._minValue);
}
public function get maxValue():Number{
return (this._maxValue);
}
public function get isFloat():Boolean{
return (this._isFloat);
}
public function get voted():Boolean{
return (this._voted);
}
public function set voted(_arg1:Boolean):void{
this._voted = _arg1;
}
public function toString():String{
return (this._name);
}
}
}//package com.newgrounds
Section 38
//Score (com.newgrounds.Score)
package com.newgrounds {
public class Score {
private var _board:ScoreBoard;
private var _position:uint;
private var _username:String;
private var _value:String;
private var _numeric_value:uint;
private var _tag:String;
public function Score(_arg1:ScoreBoard, _arg2:Number, _arg3:String, _arg4:String, _arg5:uint, _arg6:String){
this._board = _arg1;
this._position = _arg2;
this._username = _arg3;
this._value = _arg4;
this._numeric_value = _arg5;
this._tag = _arg6;
}
public function get board():ScoreBoard{
return (this._board);
}
public function get position():uint{
return (this._position);
}
public function get username():String{
return (this._username);
}
public function get value():String{
return (this._value);
}
public function get numeric_value():uint{
return (this._numeric_value);
}
public function get tag():String{
return (this._tag);
}
}
}//package com.newgrounds
Section 39
//ScoreBoard (com.newgrounds.ScoreBoard)
package com.newgrounds {
import flash.events.*;
public class ScoreBoard extends EventDispatcher {
private var _name:String;
private var _id:uint;
private var _scores:Array;
private var _period:String;// = "Today"
private var _num_results:uint;// = 10
private var _numScores:uint;
private var _desiredNumResults:uint;
private var _startRank:uint;
private var _endRank:uint;
private var _page:uint;// = 1
private var _tag:String;
public function ScoreBoard(_arg1:uint, _arg2:String, _arg3:String){
this._name = _arg2;
this._id = _arg1;
this._scores = [];
this._tag = _arg3;
}
public function exists():Boolean{
return ((this._id > 0));
}
public function get id():Number{
return (this._id);
}
public function get name():String{
return (this._name);
}
public function get period():String{
return (this._period);
}
public function get page():uint{
return (this._page);
}
public function get num_results():uint{
return (this._num_results);
}
public function get scores():Array{
return (this._scores);
}
public function get tag():String{
return (this._tag);
}
public function get num_scores():uint{
return (this._numScores);
}
public function postScore(_arg1:uint, _arg2:String=null):void{
if (_arg2){
this._tag = _arg2;
};
API.postScore(this._name, _arg1);
}
public function loadScores(_arg1:String="Today", _arg2:uint=1, _arg3:uint=10):void{
this._period = _arg1;
if (((!(this._period)) || ((this._period == "")))){
this._period = ScoreBoardPeriod.TODAY;
};
this._page = _arg2;
this._num_results = _arg3;
this._desiredNumResults = 0;
API.loadScores(this.name);
}
public function loadScoresInRange(_arg1:String="Today", _arg2:uint=1, _arg3:uint=10):void{
if (_arg2 == 0){
_arg2 = 1;
};
if (_arg3 < _arg2){
_arg3 = _arg2;
};
this._period = _arg1;
if (((!(this._period)) || ((this._period == "")))){
this._period = ScoreBoardPeriod.TODAY;
};
this._desiredNumResults = ((_arg3 - _arg2) + 1);
this._num_results = this._desiredNumResults;
while (int(((_arg2 - 1) / this._num_results)) != int(((_arg3 - 1) / this._num_results))) {
this._num_results++;
};
this._page = ((_arg2 - 1) / this._num_results);
this._startRank = _arg2;
this._endRank = _arg3;
this._page++;
API.loadScores(this.name);
}
function setScores(_arg1:Array, _arg2:String, _arg3:Number, _arg4:Number, _arg5:uint):void{
var _local7:uint;
this._period = _arg2;
this._page = _arg3;
this._num_results = _arg4;
this._numScores = _arg5;
this._scores = [];
var _local6:uint;
while (_local6 < _arg1.length) {
_local7 = (((this._num_results * (this._page - 1)) + 1) + _local6);
if (((!(this._desiredNumResults)) || ((((_local7 >= this._startRank)) && ((_local7 <= this._endRank)))))){
this._scores.push(new Score(this, _local7, _arg1[_local6].username, _arg1[_local6].value, _arg1[_local6].numeric_value, _arg1[_local6].tag));
};
_local6++;
};
this._num_results = this._scores.length;
}
}
}//package com.newgrounds
Section 40
//ScoreBoardPeriod (com.newgrounds.ScoreBoardPeriod)
package com.newgrounds {
public class ScoreBoardPeriod {
public static const TODAY:String = "Today";
public static const WEEK:String = "This Week";
public static const MONTH:String = "This Month";
public static const YEAR:String = "This Year";
public static const ALL_TIME:String = "All-Time";
}
}//package com.newgrounds
Section 41
//SmartURLLoader (com.newgrounds.SmartURLLoader)
package com.newgrounds {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
public class SmartURLLoader extends EventDispatcher {
private var _variables:Dictionary;
private var _files:Dictionary;
private var _hasVariables:Boolean;
private var _method:String;// = "GET"
private var _urlRequest:URLRequest;
private var _urlLoader:URLLoader;
private var _dataFormat:String;// = "text"
private var _openBrowser:Boolean;// = false
private var _preventCache:Boolean;// = false
var _command:String;
public var owner;
private static const CRLF:String = "
";
private static var _loaders:Dictionary = new Dictionary();
public function SmartURLLoader(){
this._urlRequest = new URLRequest();
this._variables = new Dictionary();
}
public function get responseFormat():String{
return (this._dataFormat);
}
public function set responseFormat(_arg1:String):void{
this._dataFormat = _arg1;
}
public function get response(){
return (this._urlLoader.data);
}
public function get hasFiles():Boolean{
return (Boolean(this._files));
}
public function get method():String{
return (this._method);
}
public function set method(_arg1:String):void{
if (((this.hasFiles) && ((_arg1 == URLRequestMethod.GET)))){
throw (new IllegalOperationError("GET cannot be used to upload files."));
};
this._method = _arg1;
}
public function get openBrowser():Boolean{
return (this._openBrowser);
}
public function set openBrowser(_arg1:Boolean):void{
this._openBrowser = _arg1;
}
public function get preventCache():Boolean{
return (this._preventCache);
}
public function set preventCache(_arg1:Boolean):void{
this._preventCache = _arg1;
}
public function get bytesLoaded():uint{
return ((this._urlLoader) ? this._urlLoader.bytesLoaded : 0);
}
public function get bytesTotal():uint{
return ((this._urlLoader) ? this._urlLoader.bytesTotal : 0);
}
public function addVariable(_arg1:String, _arg2=""):void{
this._variables[_arg1] = _arg2;
if (_arg2){
this._hasVariables = true;
};
}
public function addFile(_arg1:String, _arg2:ByteArray, _arg3:String, _arg4:String="application/octet-stream"):void{
this.method = URLRequestMethod.POST;
if (!this._files){
this._files = new Dictionary();
};
this._files[_arg1] = new File(_arg1, _arg2, _arg3, _arg4);
}
public function clearVariables():void{
this._variables = new Dictionary();
}
public function clearFiles():void{
this._files = null;
}
public function load(_arg1:String):void{
var urlVariables:URLVariables;
var key:String;
var boundary:String;
var i:uint;
var event:SecurityErrorEvent;
var url = _arg1;
this._urlRequest.url = url;
if (this._preventCache){
url = (url + ("?seed=" + Math.random()));
if (this._hasVariables){
url = (url + "&");
};
};
this._urlRequest.method = this._method;
if ((((this._urlRequest.method == URLRequestMethod.GET)) || (!(this.hasFiles)))){
this._urlRequest.contentType = "application/x-www-form-urlencoded";
if (this._hasVariables){
urlVariables = new URLVariables();
for (key in this._variables) {
urlVariables[key] = this._variables[key];
};
this._urlRequest.data = urlVariables;
};
} else {
boundary = "";
i = 0;
while (i < 32) {
boundary = (boundary + String.fromCharCode(uint((97 + (Math.random() * 25)))));
i = (i + 1);
};
this._urlRequest.contentType = (("multipart/form-data; boundary=\"" + boundary) + "\"");
this._urlRequest.data = this.buildMultipartData(boundary);
};
if (this.openBrowser){
navigateToURL(this._urlRequest, "_blank");
} else {
this._urlLoader = new URLLoader();
this._urlLoader.dataFormat = this._dataFormat;
this._urlLoader.addEventListener(Event.COMPLETE, this.onComplete);
this._urlLoader.addEventListener(ProgressEvent.PROGRESS, this.onProgress);
this._urlLoader.addEventListener(IOErrorEvent.IO_ERROR, this.onIOError);
this._urlLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.onHTTPStatus);
this._urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onSecurityError);
_loaders[this._urlLoader] = this;
try {
this._urlLoader.load(this._urlRequest);
} catch(error:Error) {
event = new SecurityErrorEvent(SecurityErrorEvent.SECURITY_ERROR, false, false, error.message);
onSecurityError(event);
};
};
}
public function close():void{
try {
this._urlLoader.close();
} catch(e:Error) {
};
}
public function dispose():void{
this.close();
this._files = null;
this._variables = null;
if (this._urlLoader){
this._urlLoader.removeEventListener(Event.COMPLETE, this.onComplete);
this._urlLoader.removeEventListener(ProgressEvent.PROGRESS, this.onProgress);
this._urlLoader.removeEventListener(IOErrorEvent.IO_ERROR, this.onIOError);
this._urlLoader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, this.onHTTPStatus);
this._urlLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onSecurityError);
this._urlLoader = null;
};
this._urlRequest = null;
delete _loaders[this];
}
private function buildMultipartData(_arg1:String):ByteArray{
var _local3:String;
var _local4:File;
var _local2:ByteArray = new ByteArray();
_local2.endian = Endian.BIG_ENDIAN;
_arg1 = ("--" + _arg1);
for (_local3 in this._variables) {
_local2.writeUTFBytes((_arg1 + CRLF));
_local2.writeUTFBytes(((("Content-Disposition: form-data; name=\"" + _local3) + "\"") + CRLF));
_local2.writeUTFBytes(CRLF);
_local2.writeUTFBytes((this._variables[_local3] + CRLF));
};
if (this.hasFiles){
for each (_local4 in this._files) {
_local2.writeUTFBytes((_arg1 + CRLF));
_local2.writeUTFBytes(("Content-Disposition: form-data; name=\"Filename\"" + CRLF));
_local2.writeUTFBytes(CRLF);
_local2.writeUTFBytes((_local4.fileName + CRLF));
_local2.writeUTFBytes((_arg1 + CRLF));
_local2.writeUTFBytes(((((("Content-Disposition: form-data; name=\"" + _local4.dataField) + "\"; filename=\"") + _local4.fileName) + "\"") + CRLF));
_local2.writeUTFBytes((("Content-Type: " + _local4.contentType) + CRLF));
_local2.writeUTFBytes(CRLF);
_local2.writeBytes(_local4.data);
_local2.writeUTFBytes(CRLF);
};
_local2.writeUTFBytes((_arg1 + CRLF));
_local2.writeUTFBytes(("Content-Disposition: form-data; name=\"Upload\"" + CRLF));
_local2.writeUTFBytes(CRLF);
_local2.writeUTFBytes(("Submit Query" + CRLF));
};
_local2.writeUTFBytes((_arg1 + "--"));
_local2.position = 0;
_local2.position = 0;
return (_local2);
}
private function onComplete(_arg1:Event):void{
dispatchEvent(_arg1);
this.dispose();
}
private function onProgress(_arg1:ProgressEvent):void{
dispatchEvent(_arg1);
}
private function onIOError(_arg1:IOErrorEvent):void{
dispatchEvent(_arg1);
this.dispose();
}
private function onSecurityError(_arg1:SecurityErrorEvent):void{
dispatchEvent(_arg1);
this.dispose();
}
private function onHTTPStatus(_arg1:HTTPStatusEvent):void{
dispatchEvent(_arg1);
}
public static function closeAll():void{
var _local1:SmartURLLoader;
for each (_local1 in _loaders) {
if (_local1){
_local1.dispose();
};
};
_loaders = new Dictionary();
}
}
}//package com.newgrounds
import flash.utils.*;
class File {
private var fileName:String;
private var data:ByteArray;
private var dataField:String;
private var contentType:String;
private function File(_arg1:String, _arg2:ByteArray, _arg3:String="Filedata", _arg4:String="application/octet-stream"){
this.fileName = _arg1;
this.data = _arg2;
this.dataField = _arg3;
this.contentType = _arg4;
}
}
Section 42
//AwardsService (com.spilgames.api.AwardsService)
package com.spilgames.api {
public class AwardsService {
public static function submitAward(_arg1:String, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Awards", "submitAward", _arg2, {tag:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 43
//ScoreService (com.spilgames.api.ScoreService)
package com.spilgames.api {
public class ScoreService {
public static function submitScore(_arg1:int, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Score", "submitScore", _arg2, {score:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 44
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private const DEFAULT_CONNECTION_LOCATION:String = "http://www8.agame.com/games/flash/services/ServicesConnection.swf";
private var _alwaysInFront:Boolean;// = false
private var _loader:Loader;
private var _request:URLRequest;
private var _connecting:Boolean;// = false
private var _servicesConnection;// = null
private var _connected:Boolean;// = false
private var currentDelay:Number;// = 0
private var previousFrameTime:Number;
private var _numConnectionLoadTries:uint;// = 0
public static const INVALID_ID:int = -1;
public static const CONFIGURATION_FAILED:String = "configurationFailure";
private static const MAX_CONNECTION_LOAD_RETRIES:uint = 99;
public static const INVALID_DOMAIN:String = "invalidDomain";
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(_arg1:Private=null){
_servicesConnection = null;
_connecting = false;
_connected = false;
_numConnectionLoadTries = 0;
_alwaysInFront = false;
currentDelay = 0;
super();
if (!_arg1){
throw (new Error("Cannot instantiate this class, use SpilGamesServices.getInstance"));
};
}
public function get alwaysInFront():Boolean{
return (_alwaysInFront);
}
public function get version():String{
return ("1.1");
}
private function handleRemovedFromStage(_arg1:Event):void{
trace("WARNING: please do not remove SpilGamesServices from the stage");
}
private function handleIOError(_arg1:IOErrorEvent):void{
_numConnectionLoadTries++;
if (_numConnectionLoadTries > MAX_CONNECTION_LOAD_RETRIES){
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connecting = false;
trace("ERROR: SpilGamesServices failed to load the connection object");
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
} else {
trace(("WARN: SpilGamesServices failed to load the connection object, retry #" + _numConnectionLoadTries));
previousFrameTime = getTimer();
addEventListener(Event.ENTER_FRAME, updateConnectionRetry);
};
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
private function updateConnectionRetry(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = getTimer();
_local3 = ((_local2 - previousFrameTime) / 1000);
currentDelay = (currentDelay + _local3);
if (currentDelay >= 2){
trace(("WARN: SpilGamesServices trying to reconnect after: " + currentDelay));
_loader.load(_request);
removeEventListener(Event.ENTER_FRAME, updateConnectionRetry);
currentDelay = 0;
};
previousFrameTime = _local2;
}
public function getItemID():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemID());
};
return (INVALID_ID);
}
public function bringToFront(_arg1:Event=null):void{
var e = _arg1;
if (parent){
try {
parent.setChildIndex(this, (parent.numChildren - 1));
} catch(e:Error) {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
private function handleLoadComplete(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_servicesConnection = LoaderInfo(_arg1.target).content;
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
addChild(_servicesConnection);
}
public function send(_arg1:String, _arg2:String, _arg3:Function, _arg4:Object=null):int{
if (isReady()){
return (_servicesConnection.send(_arg1, _arg2, _arg3, _arg4));
};
return (INVALID_ID);
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
private function handleServicesReady(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connected = true;
_connecting = false;
dispatchEvent(new Event("servicesReady"));
}
private function handleServiceError(_arg1:Event):void{
var _local2:String;
if (hasEventListener("serviceError")){
_local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
dispatchEvent(new ErrorEvent("serviceError", false, false, _local2));
};
}
public function disconnect():void{
if (_servicesConnection){
_servicesConnection.removeEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.removeEventListener("serviceError", handleServiceError);
if (_connected){
_servicesConnection.disconnect();
};
removeChild(_servicesConnection);
};
_servicesConnection = null;
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
};
_loader = null;
};
removeEventListener(Event.ENTER_FRAME, bringToFront);
removeEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (parent){
parent.removeChild(this);
};
_connected = (_connecting = false);
}
public function get connecting():Boolean{
return (_connecting);
}
private function handleServicesFailed(_arg1:ErrorEvent):void{
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
_connecting = false;
if (hasEventListener("servicesFailed")){
dispatchEvent(new ErrorEvent("servicesFailed", false, false, _arg1.text));
};
}
public function get connection(){
return (_servicesConnection);
}
public function isServiceAvailable(_arg1:String):Boolean{
return (((isReady()) && (_servicesConnection.isServiceAvailable(_arg1))));
}
public function set alwaysInFront(_arg1:Boolean):void{
if (_alwaysInFront != _arg1){
_alwaysInFront = _arg1;
if (_alwaysInFront){
addEventListener(Event.ENTER_FRAME, bringToFront);
} else {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public function connect(_arg1:DisplayObjectContainer, ... _args):void{
var _local3:String;
var _local4:URLVariables;
var _local5:Date;
if (((!(_connecting)) && (!(_connected)))){
if (!_arg1.stage){
throw (new Error("The given clip must be present in the display list (added to stage)"));
};
_connecting = true;
_arg1.stage.addChild(this);
addEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local3 = root.loaderInfo.parameters["servicesLoc"];
_request = new URLRequest(_local3);
} else {
_local3 = DEFAULT_CONNECTION_LOCATION;
_local4 = new URLVariables();
_local5 = new Date();
_local4.nocache = ((((_local5.fullYear * 12) + (_local5.month + 1)) * 31) + _local5.day);
_request = new URLRequest(_local3);
_request.data = _local4;
};
allowDomain(_local3);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_loader.load(_request);
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new SpilGamesServices(new Private());
};
return (_instance);
}
}
}//package com.spilgames.api
class Private {
private function Private(){
}
}
Section 45
//User (com.spilgames.api.User)
package com.spilgames.api {
import flash.display.*;
public class User {
public static function getUserName():String{
var _local1:*;
_local1 = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserName());
};
return ("");
}
public static function isGuest():Boolean{
var _local1:*;
var _local2:DisplayObject;
var _local3:Object;
_local1 = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.isGuest());
};
_local2 = SpilGamesServices.getInstance().root;
if (_local2.loaderInfo != null){
_local3 = _local2.loaderInfo.parameters;
return (((((((!(_local3.username)) || ((_local3.username == "")))) || (!(_local3.hash)))) || ((_local3.hash == ""))));
};
return (false);
}
public static function getUserHash():String{
var _local1:*;
_local1 = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserHash());
};
return ("");
}
}
}//package com.spilgames.api
Section 46
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var contentspotid:String;
private var cpmstarLoader:Loader;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function addedHandler(_arg1:Event):void{
var _local2:String;
var _local3:DisplayObjectContainer;
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
_local2 = "http://server.cpmstar.com/adviewas3.swf";
_local3 = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
}
}//package CPMStar
Section 47
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const NO_USER:String = "NoUser";
public static const IO_ERROR:String = "IOError";
public static const ITEM_NEW:String = "ItemNew";
public static const ITEM_OWNED:String = "ItemOwned";
public static const STORE_ITEMS:String = "StoreItems";
public static const ERROR:String = "Error";
public static const STORE_SHOW:String = "StoreShow";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _inventory:MochiInventory;
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function get inventory():MochiInventory{
return (_inventory);
}
public static function showStore(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function requestFunding(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestFunding", _arg1);
}
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showItem call must pass an Object with an item key");
return;
};
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showVideo call must pass an Object with an item key");
return;
};
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_inventory = new MochiInventory();
});
addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_inventory = null;
});
}
}//package mochi.as3
Section 48
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 49
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
eventTable = {};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
return;
};
for (_local3 in eventTable[_arg1]) {
var _local6 = eventTable[_arg1];
_local6[_local3](_arg2);
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
eventTable[_arg1] = [];
return;
};
for (_local3 in eventTable[_arg1]) {
if (eventTable[_arg1][_local3] != _arg2){
} else {
eventTable[_arg1].splice(Number(_local3), 1);
};
};
}
public function addEventListener(_arg1:String, _arg2:Function):void{
removeEventListener(_arg1, _arg2);
eventTable[_arg1].push(_arg2);
}
}
}//package mochi.as3
Section 50
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const FORMAT_LONG:String = "LongForm";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const FORMAT_SHORT:String = "ShortForm";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_CENTER:String = "ALIGN_C";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var gameStart:Number;
private static var levelStart:Number;
public static function endPlay():void{
MochiServices.send("events_clearRoundID", null, null, null);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function trackEvent(_arg1:String, _arg2=null):void{
MochiServices.send("events_trackEvent", {tag:_arg1, value:_arg2}, null, null);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function startSession(_arg1:String):void{
MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{
var _local3:Object;
var _local4:Object;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startPlay(_arg1:String="gameplay"):void{
MochiServices.send("events_setRoundID", {tag:String(_arg1)}, null, null);
}
}
}//package mochi.as3
Section 51
//MochiInventory (mochi.as3.MochiInventory)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _names:Array;
private var _consumableProperties:Object;
private var _syncID:Number;
private var _storeSync:Object;
private var _outstandingID:Number;
private var _syncPending:Boolean;
public static const READY:String = "InvReady";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IoError";
private static const KEY_SALT:String = " syncMaint";
public static const WRITTEN:String = "InvWritten";
public static const NOT_READY:String = "InvNotReady";
public static const VALUE_ERROR:String = "InvValueError";
private static const CONSUMER_KEY:String = "MochiConsumables";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public function MochiInventory():void{
MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned);
MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut);
_storeSync = new Object();
_syncPending = false;
_outstandingID = 0;
_syncID = 0;
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, sync);
_timer.start();
if (MochiSocial.loggedIn){
loggedIn();
} else {
loggedOut();
};
}
private function newItems(_arg1:Object):void{
if (!this[(_arg1.id + KEY_SALT)]){
this[(_arg1.id + KEY_SALT)] = 0;
};
if (!this[_arg1.id]){
this[_arg1.id] = 0;
};
this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count);
this[_arg1.id] = (this[_arg1.id] + _arg1.count);
if (((_arg1.privateProperties) && (_arg1.privateProperties.consumable))){
if (!this[_arg1.privateProperties.tag]){
this[_arg1.privateProperties.tag] = 0;
};
this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count));
};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[_arg1]){
return (MochiDigits(_consumableProperties[_arg1]).value);
};
return (undefined);
}
public function release():void{
MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (false);
};
if (_consumableProperties[_arg1] == undefined){
return (false);
};
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{
return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1));
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:MochiDigits;
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return;
};
if (!(_arg2 is Number)){
triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2});
return;
};
if (_consumableProperties[_arg1]){
_local3 = MochiDigits(_consumableProperties[_arg1]);
if (_local3.value == _arg2){
return;
};
_local3.value = _arg2;
} else {
_names.push(_arg1);
_consumableProperties[_arg1] = new MochiDigits(_arg2);
};
_syncID++;
}
private function sync(_arg1:Event=null):void{
var _local2:Object;
var _local3:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
_local2 = {};
for (_local3 in _consumableProperties) {
_local2[_local3] = MochiDigits(_consumableProperties[_local3]).value;
};
MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag);
_syncPending = true;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{
return (_names[(_arg1 - 1)]);
}
private function loggedIn(_arg1:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{
if (!_consumableProperties[_arg1]){
return (false);
};
_names.splice(_names.indexOf(_arg1), 1);
delete _consumableProperties[_arg1];
return (true);
}
private function itemOwned(_arg1:Object):void{
_storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count};
}
private function putConsumableBag(_arg1:MochiUserData):void{
_syncPending = false;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
private function getConsumableBag(_arg1:MochiUserData):void{
var _local2:String;
var _local3:Number;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
return;
};
_consumableProperties = {};
_names = new Array();
if (_arg1.data){
for (_local2 in _arg1.data) {
_names.push(_local2);
_consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]);
};
};
for (_local2 in _storeSync) {
_local3 = _storeSync[_local2].count;
if (_consumableProperties[(_local2 + KEY_SALT)]){
_local3 = (_local3 - _consumableProperties[(_local2 + KEY_SALT)].value);
};
if (_local3 == 0){
} else {
newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties});
};
};
triggerEvent(READY, {});
}
private function loggedOut(_arg1:Object=null):void{
_consumableProperties = null;
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
}
}//package mochi.as3
Section 52
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
delete options.clip;
MochiServices.setContainer();
MochiServices.bringToTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (((((_arg1) && ((_arg1.error == true)))) && (onErrorHandler))){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiServices.warnID(_arg1, true);
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 53
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
public class MochiServices {
public static const CONNECTED:String = "onConnected";
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _queue:Array;
private static var _swfVersion:String;
private static var _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
private static var _nextCallbackID:Number;
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _services:String = "services.swf";
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var _callbacks:Object;
private static var _connecting:Boolean = false;
private static var _mochiLocalConnection:MovieClip;
private static var _listenChannelName:String = "__ms_";
public static var onError:Object;
public static var netup:Boolean = true;
private static var _mochiLC:String = "MochiLC.swf";
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function onReceive(_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = _callbacks[cb];
if (!cblst){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete _callbacks[cb];
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_nextCallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_queue.push({methodName:_arg1, args:_arg2, callbackID:_nextCallbackID});
};
if (_clip != null){
if (_callbacks != null){
_callbacks[_nextCallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_nextCallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local3:Array;
var _local4:int;
var _local5:Array;
var _local6:Array;
var _local7:MovieClip;
var _local8:LocalConnection;
var _local9:String;
var _local10:ByteArray;
var _local11:ByteArray;
var _local12:uint;
var _local13:uint;
var _local14:Loader;
_local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
_local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
_local6 = [0, 64, 0, 0, 0];
_local7 = new MovieClip();
_local8 = new LocalConnection();
_local9 = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
_local10 = new ByteArray();
_local11 = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
_local12 = ((_local3.length + _local11.length) + 4);
_local13 = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
private static function detach(_arg1:Event):void{
var _local2:LoaderInfo;
_local2 = LoaderInfo(_arg1.target);
_local2.removeEventListener(Event.COMPLETE, detach);
_local2.removeEventListener(IOErrorEvent.IO_ERROR, detach);
_local2.removeEventListener(Event.COMPLETE, loadLCBridgeComplete);
_local2.removeEventListener(IOErrorEvent.IO_ERROR, loadError);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
private static function loadLCBridgeComplete(_arg1:Event):void{
var _local2:Loader;
_local2 = LoaderInfo(_arg1.target).loader;
_mochiLocalConnection = MovieClip(_local2.content);
listen();
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_mochiLocalConnection.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, connectWait);
_timer = null;
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.9.2 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
var _local3:Number;
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
_local3 = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
return;
};
_local3++;
};
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_queue))){
while (_queue.length > 0) {
_local2 = _queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _callbacks[_local2.callbackID];
};
delete _callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
}
public static function get id():String{
return (_id);
}
private static function onEvent(_arg1:Object):void{
var _local2:String;
var _local3:String;
_local2 = _arg1.target;
_local3 = _arg1.event;
switch (_local2){
case "services":
MochiServices.triggerEvent(_arg1.event, _arg1.args);
break;
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "social":
MochiSocial.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
private static function urlOptions(_arg1:Object):Object{
var _local2:Object;
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
_local2 = {};
if (_arg1.stage){
_local3 = _arg1.stage.loaderInfo.parameters.mochiad_options;
} else {
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
};
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
vars = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
s = "?";
i = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://link.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
var _local2:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
_local2 = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_clip.parent){
_clip.parent.removeChild(_clip);
};
if (_arg1 != null){
if ((_arg1 is DisplayObjectContainer)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is DisplayObjectContainer)){
DisplayObjectContainer(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function loadError(_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
}
public static function get childClip():Object{
return (_clip);
}
private static function initComChannels():void{
if (!_connected){
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
while (_queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _queue.shift());
};
};
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
trace("Waiting for MochiAds services to connect...");
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
private static function loadLCBridge(_arg1:Object):void{
var _local2:Loader;
var _local3:String;
var _local4:URLRequest;
_local2 = new Loader();
_local3 = (_servURL + _mochiLC);
_local4 = new URLRequest(_local3);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, detach);
_local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, loadLCBridgeComplete);
_local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
_local2.load(_local4);
_arg1.addChild(_local2);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var _local3:String;
var _local4:URLRequest;
var _local5:URLVariables;
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
_local3 = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local3 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(_local3);
_clip = new MovieClip();
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, detach);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
_local4 = new URLRequest(_local3);
_local5 = new URLVariables();
_local5.listenLC = _listenChannelName;
_local5.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local5.api_version = getVersion();
if (widget){
_local5.widget = true;
};
_local4.data = _local5;
_loader.load(_local4);
_clip.addChild(_loader);
_sendChannel = new LocalConnection();
_queue = [];
_nextCallbackID = 0;
_callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function get clip():Object{
return (_container);
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (clip.stage == null){
trace("MochiServices connect requires the containing clip be attached to the stage");
};
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
} else {
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, connectWait);
_timer = null;
};
}
}
}//package mochi.as3
Section 54
//MochiSocial (mochi.as3.MochiSocial)
package mochi.as3 {
public class MochiSocial {
public static const LOGGED_IN:String = "LoggedIn";
public static const ACTION_CANCELED:String = "onCancel";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const IO_ERROR:String = "IOError";
public static const NO_USER:String = "NoUser";
public static const FRIEND_LIST:String = "FriendsList";
public static const PROFILE_DATA:String = "ProfileData";
public static const GAMEPLAY_DATA:String = "GameplayData";
public static const ACTION_COMPLETE:String = "onComplete";
public static const LOGIN_SHOW:String = "LoginShow";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const USER_INFO:String = "UserInfo";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const ERROR:String = "Error";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_HIDE:String = "LoginHide";
public static const LOGIN_SHOWN:String = "LoginShown";
public static var _user_info:Object = null;
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static function requestFan(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestFan", _arg1);
}
public static function postToStream(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_postToStream", _arg1);
}
public static function getFriendsList(_arg1:Object=null):void{
MochiServices.send("social_getFriendsList", _arg1);
}
public static function requestLogin(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestLogin", _arg1);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("social_saveUserProperties", _arg1);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function inviteFriends(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_inviteFriends", _arg1);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_showLoginWidget", {options:_arg1});
}
public static function getAPIURL():String{
if (!_user_info){
return (null);
};
return (_user_info.api_url);
}
public static function hideLoginWidget():void{
MochiServices.send("social_hideLoginWidget");
}
public static function getAPIToken():String{
if (!_user_info){
return (null);
};
return (_user_info.api_token);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_user_info = _arg1;
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_user_info = null;
});
}
}//package mochi.as3
Section 55
//MochiUserData (mochi.as3.MochiUserData)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class MochiUserData extends EventDispatcher {
public var callback:Function;// = null
public var error:Event;// = null
public var key:String;// = null
public var operation:String;// = null
public var data;// = null
public var _loader:URLLoader;
public function MochiUserData(_arg1:String="", _arg2:Function=null){
key = null;
data = null;
error = null;
operation = null;
callback = null;
super();
this.key = _arg1;
this.callback = _arg2;
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString())));
}
public function putEvent(_arg1):void{
request("put", serialize(_arg1));
}
public function request(_arg1:String, _arg2:ByteArray):void{
var api_url:String;
var api_token:String;
var args:URLVariables;
var req:URLRequest;
var _operation = _arg1;
var _data = _arg2;
operation = _operation;
api_url = MochiSocial.getAPIURL();
api_token = MochiSocial.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
args = new URLVariables();
args.op = _operation;
args.key = key;
req = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString()));
req.method = URLRequestMethod.POST;
req.contentType = "application/x-mochi-userdata";
req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)];
req.data = _data;
_loader.dataFormat = URLLoaderDataFormat.BINARY;
_loader.addEventListener(Event.COMPLETE, completeHandler);
_loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
try {
_loader.load(req);
} catch(e:SecurityError) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString())));
};
}
public function completeHandler(_arg1:Event):void{
var event = _arg1;
try {
if (_loader.data.length){
data = deserialize(_loader.data);
} else {
data = null;
};
} catch(e:Error) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString())));
return;
};
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function performCallback():void{
try {
callback(this);
} catch(e:Error) {
trace(("[MochiUserData] exception during callback: " + e));
};
}
public function serialize(_arg1):ByteArray{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.objectEncoding = ObjectEncoding.AMF3;
_local2.writeObject(_arg1);
_local2.compress();
return (_local2);
}
public function errorHandler(_arg1:IOErrorEvent):void{
data = null;
error = _arg1;
if (callback != null){
performCallback();
} else {
dispatchEvent(_arg1);
};
close();
}
public function getEvent():void{
request("get", serialize(null));
}
override public function toString():String{
return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]"));
}
public function close():void{
if (_loader){
_loader.removeEventListener(Event.COMPLETE, completeHandler);
_loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.close();
_loader = null;
};
error = null;
callback = null;
}
public function deserialize(_arg1:ByteArray){
_arg1.objectEncoding = ObjectEncoding.AMF3;
_arg1.uncompress();
return (_arg1.readObject());
}
public static function get(_arg1:String, _arg2:Function):void{
var _local3:MochiUserData;
_local3 = new MochiUserData(_arg1, _arg2);
_local3.getEvent();
}
public static function put(_arg1:String, _arg2, _arg3:Function):void{
var _local4:MochiUserData;
_local4 = new MochiUserData(_arg1, _arg3);
_local4.putEvent(_arg2);
}
}
}//package mochi.as3
Section 56
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var useGoogleAnalitics:Boolean;// = true
public var emailPage:String;
public var name:String;
public var site_id:uint;
public var isExternal:Boolean;// = false
public var id:Number;
public var hostingDomain:String;// = ""
public var preferedLanguage:String;// = ""
public var moreLink:String;// = ""
public var hasSendToFriendLink:Boolean;// = true
public var portalGroup:uint;
public var emailLink:String;// = "game"
private static const topLevelDoubles:String = ((((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,com.ar,") + "com.id,com.in");
public function Brand(){
moreLink = "";
emailLink = "game";
useGoogleAnalitics = true;
hasSendToFriendLink = true;
preferedLanguage = "";
isExternal = false;
hostingDomain = "";
super();
}
public function exportXML():XML{
var _local1:XML;
var _local2:XML;
var _local3:XML;
_local1 = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
_local2 = <domain/>
;
_local2.appendChild(new XMLNode(3, domain));
_local1.appendChild(_local2);
if (moreLink){
_local3 = <more_games_path/>
;
_local3.appendChild(new XMLNode(3, moreLink));
_local1.appendChild(_local3);
};
_local2 = <game_path/>
;
_local2.appendChild(new XMLNode(3, emailLink));
_local1.appendChild(_local2);
if (!useGoogleAnalitics){
_local1.attributes.noGoogleAnalitics = true;
};
if (!hasSendToFriendLink){
_local1.attributes.noSendToFriendLink = true;
};
return (_local1);
}
private function get utm_source():String{
return (("utm_source=brandedgames_" + (isExternal) ? "external" : "internal"));
}
public function getMoreGamesLink(_arg1:String, _arg2:Boolean, _arg3:String="", _arg4:String=""):String{
var _local5:String;
_local5 = ("http://" + domain);
_local5 = (_local5 + ("/" + moreLink));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg2) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg3 = stripSubDomain(_arg3);
if (_arg3 == "localhost"){
_arg3 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg3));
if (((!((_arg4 == ""))) && (!((_arg4 == null))))){
_local5 = (_local5 + ("&utm_content=" + _arg4));
};
};
return (_local5);
}
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String;
_local6 = ("http://" + domain);
_local6 = (_local6 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local6 = (_local6 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local6 = (_local6 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
trace(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local6 = (_local6 + ("&utm_source=" + _arg4));
if (((!((_arg5 == ""))) && (!((_arg5 == null))))){
_local6 = (_local6 + ("&utm_content=" + _arg5));
};
};
return (_local6);
}
private function get utm_term():String{
return ("utm_term=");
}
public function importXML(_arg1:XMLNode):void{
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
var _local5:String;
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
_local5 = ("http://" + domain);
_local5 = (_local5 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg4));
_local5 = (_local5 + "&utm_content=send_to_friend");
};
return (_local5);
}
public static function stripSubDomain(_arg1:String):String{
var _local2:Array;
if (!_arg1){
return ("");
};
_local2 = _arg1.split(".");
if (_local2.length <= 2){
return (_arg1);
};
_local2 = _local2.reverse();
if (topLevelDoubles.indexOf((((_local2[1] + ".") + _local2[0]) + ",")) > 0){
return (((((_local2[2] + ".") + _local2[1]) + ".") + _local2[0]));
};
return (((_local2[1] + ".") + _local2[0]));
}
}
}//package spill.localisation
Section 57
//BrandingLogo (spill.localisation.BrandingLogo)
package spill.localisation {
import flash.display.*;
import flash.events.*;
public class BrandingLogo extends MovieClip {
public function BrandingLogo(){
addFrameScript(0, frame1);
super();
stop();
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
if (stage){
added();
};
brandingChanged();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("brandingChanged", brandingChanged, false, 0, true);
brandingChanged();
}
private function brandingChanged(_arg1:Event=null):void{
if (SpilGame.currentBranding){
gotoAndStop(SpilGame.currentBranding.domain);
};
}
function frame1(){
stop();
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("brandingChanged", brandingChanged);
}
}
}//package spill.localisation
Section 58
//Brandings (spill.localisation.Brandings)
package spill.localisation {
public class Brandings {
private static var brands_by_id:Object = new Object();
private static var brands_by_domain:Object = new Object();
public static function getBrandByID(_arg1:Number):Brand{
return (brands_by_id[_arg1]);
}
public static function getBrandsArray():Array{
var _local1:Array;
var _local2:Brand;
_local1 = new Array();
for each (_local2 in brands_by_domain) {
_local1.push(_local2);
};
return (_local1);
}
private static function addBrand(_arg1:Brand):Brand{
if (brands_by_domain[_arg1.domain]){
trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain));
} else {
brands_by_domain[_arg1.domain] = _arg1;
};
if (brands_by_id[_arg1.site_id]){
trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id));
} else {
brands_by_id[_arg1.site_id] = _arg1;
};
return (_arg1);
}
public static function initialize():void{
var _local1:Brand;
_local1 = new Brand();
_local1.site_id = 79;
_local1.domain = "www.agame.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 88;
_local1.domain = "www.gamesgames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 90;
_local1.domain = "www.girlsgogames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 45;
_local1.domain = "www.a10.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.YOUNG_ADULTS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 92;
_local1.domain = "www.games.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 107;
_local1.domain = "www.agame.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 102;
_local1.domain = "www.girlsgogames.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 2;
_local1.domain = "www.game.com.cn";
_local1.moreLink = "moregames/";
_local1.preferedLanguage = "cn";
_local1.portalGroup = PortalGroup.NONE;
_local1.useGoogleAnalitics = false;
_local1.hasSendToFriendLink = false;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 25;
_local1.domain = "www.spel.nl";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 1;
_local1.domain = "www.spelletjes.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 93;
_local1.domain = "www.girlsgogames.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 12;
_local1.domain = "www.jeu.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 95;
_local1.domain = "www.girlsgogames.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 11;
_local1.domain = "www.jeux.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 26;
_local1.domain = "www.spielen.com";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 94;
_local1.domain = "www.girlsgogames.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 5;
_local1.domain = "www.jetztspielen.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 109;
_local1.domain = "www.minigry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 16;
_local1.domain = "www.gry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 98;
_local1.domain = "www.girlsgogames.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 108;
_local1.domain = "www.spel.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 100;
_local1.domain = "www.girlsgogames.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 44;
_local1.domain = "www.spela.se";
_local1.emailLink = "spel_";
_local1.preferedLanguage = "se";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 106;
_local1.domain = "www.giocaregratis.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 15;
_local1.domain = "www.gioco.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 99;
_local1.domain = "www.girlsgogames.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 97;
_local1.domain = "www.zapjuegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 86;
_local1.domain = "www.juegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 96;
_local1.domain = "www.juegosdechicas.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 122;
_local1.domain = "www.girlsgogames.es";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 125;
_local1.domain = "www.juegos.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 126;
_local1.domain = "www.juegosdechicas.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 127;
_local1.domain = "www.juegos.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 128;
_local1.domain = "www.juegosdechicas.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 91;
_local1.domain = "www.clickjogos.com";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 101;
_local1.domain = "www.girlsgogames.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 50;
_local1.domain = "www.ojogos.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 55;
_local1.domain = "www.games.co.id";
_local1.emailLink = "permainanme";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 104;
_local1.domain = "www.girlsgogames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 103;
_local1.domain = "www.ourgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 24;
_local1.domain = "www.game.co.in";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "in";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 87;
_local1.domain = "www.ojogos.pt";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 120;
_local1.domain = "www.egames.jp";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "jp";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 121;
_local1.domain = "www.dailygame.com";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 123;
_local1.domain = "www.zapapa.com";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.ZAPAPA;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 124;
_local1.domain = "www.zapapa.nl";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.HYVES;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 0;
_local1.domain = "gamedev.dev.spilgames.com";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
}
public static function exportXML():XML{
var _local1:XML;
var _local2:Brand;
_local1 = <portals/>
;
for each (_local2 in brands_by_domain) {
_local1.appendChild(_local2.exportXML());
};
return (_local1);
}
public static function getBrandByDomain(_arg1:String):Brand{
return (brands_by_domain[_arg1]);
}
public static function hasDomain(_arg1:String):Boolean{
return (!((brands_by_domain[_arg1] == null)));
}
}
}//package spill.localisation
Section 59
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var references:Array;
public var name:String;
public var embedInputFonts:Boolean;// = true
public var forceFont:String;// = null
public var id:uint;
public var portal_groups:Array;
public var textLanguage:String;
public var bwcId:int;
public var embedFonts:Boolean;// = true
public var displayName:String;// = ""
public var dname:String;
public function Language(_arg1:String, _arg2:String=null){
embedFonts = true;
embedInputFonts = true;
forceFont = null;
references = [];
displayName = "";
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function exportXML():XMLNode{
var _local1:XMLNode;
var _local2:XMLNode;
var _local3:Array;
var _local4:Array;
var _local5:int;
_local1 = new XMLNode(1, "language");
_local1.attributes.name = name;
if (textLanguage != null){
_local1.attributes.textLanguage = textLanguage;
};
if (references.length){
_local1.attributes.references = references.toString();
};
_local1.attributes.id = bwcId;
_local2 = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
_local3 = [];
_local4 = PortalGroup.channelNames;
_local5 = 0;
while (_local5 < _local4.length) {
_local3.push(Brandings.getBrandByDomain(portal_groups[_local5]).site_id);
_local5++;
};
_local1.attributes.channels = _local3.join(",");
return (_local1);
}
public function get p_teen():String{
return (portal_groups[PortalGroup.YOUNG_ADULTS]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.YOUNG_ADULTS] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TEENS]);
}
public function get p_family():String{
return (portal_groups[PortalGroup.FAMILY]);
}
public function get p_girl():String{
trace("Language", portal_groups[PortalGroup.GIRL]);
return (portal_groups[PortalGroup.GIRL]);
}
public function get p_hyves():String{
return (portal_groups[PortalGroup.HYVES]);
}
public function set p_girl(_arg1:String):void{
portal_groups[PortalGroup.GIRL] = _arg1;
}
public function set p_zapapa(_arg1:String):void{
portal_groups[PortalGroup.ZAPAPA] = _arg1;
}
public function get displayAcronim():String{
return ((dname) ? dname : name);
}
public function set p_family(_arg1:String):void{
portal_groups[PortalGroup.FAMILY] = _arg1;
}
public function set p_tween(_arg1:String):void{
portal_groups[PortalGroup.TEENS] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
}
}//package spill.localisation
Section 60
//Languages (spill.localisation.Languages)
package spill.localisation {
import flash.xml.*;
public class Languages {
private static var _init:Boolean = false;
public static var languages:Object = new Object();
public static function exportXML():XMLNode{
var _local1:Array;
var _local2:XMLNode;
var _local3:Language;
_local1 = getLanguagesArray();
_local2 = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
private static function addReference(_arg1:Language, _arg2:String):void{
languages[_arg2] = _arg1;
_arg1.references.push(_arg2);
}
public static function getLanguage(_arg1:String):Language{
return (languages[_arg1]);
}
public static function initialize():void{
var _local1:Language;
if (_init){
return;
};
_init = true;
_local1 = new Language("nl");
_local1.displayName = "Nederlands";
_local1.p_family = "www.spelletjes.nl";
_local1.p_tween = "www.spel.nl";
_local1.p_girl = "www.girlsgogames.nl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.bwcId = 3;
addLanguage(_local1);
_local1 = new Language("es");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.girlsgogames.es";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 9;
addLanguage(_local1);
_local1 = new Language("pl");
_local1.displayName = "Polski";
_local1.p_family = "www.gry.pl";
_local1.p_tween = "www.gry.pl";
_local1.p_girl = "www.girlsgogames.pl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 6;
addLanguage(_local1);
_local1 = new Language("fr");
_local1.displayName = "Français";
_local1.p_family = "www.jeux.fr";
_local1.p_tween = "www.jeu.fr";
_local1.p_girl = "www.girlsgogames.fr";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 4;
addLanguage(_local1);
_local1 = new Language("en_us", "us");
_local1.displayName = "English";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 1;
addLanguage(_local1);
addReference(_local1, "en");
_local1 = new Language("id");
_local1.displayName = "Bahasa Ind.";
_local1.p_family = "www.games.co.id";
_local1.p_tween = "www.games.co.id";
_local1.p_girl = "www.games.co.id";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 11;
addLanguage(_local1);
_local1 = new Language("ru");
_local1.displayName = "Русский";
_local1.p_family = "www.ourgames.ru";
_local1.p_tween = "www.flashgames.ru";
_local1.p_girl = "www.girlsgogames.ru";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 12;
addLanguage(_local1);
_local1 = new Language("se");
_local1.displayName = "Svenska";
_local1.p_family = "www.spela.se";
_local1.p_tween = "www.spel.se";
_local1.p_girl = "www.girlsgogames.se";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 7;
addLanguage(_local1);
addReference(_local1, "sv");
_local1 = new Language("it");
_local1.displayName = "Italiano";
_local1.p_family = "www.gioco.it";
_local1.p_tween = "www.gioco.it";
_local1.p_girl = "www.girlsgogames.it";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 8;
addLanguage(_local1);
_local1 = new Language("en_uk", "uk");
_local1.displayName = "English";
_local1.p_family = "www.games.co.uk";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.co.uk";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 13;
addLanguage(_local1);
_local1 = new Language("cn");
_local1.displayName = "中文";
_local1.p_family = "www.game.com.cn";
_local1.p_tween = "www.game.com.cn";
_local1.p_girl = "www.game.com.cn";
_local1.p_teen = "www.game.com.cn";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 2;
_local1.embedInputFonts = false;
addLanguage(_local1);
addReference(_local1, "zh-CN");
addReference(_local1, "zh-TW");
_local1 = new Language("pt");
_local1.displayName = "Português";
_local1.p_family = "www.ojogos.pt";
_local1.p_tween = "www.ojogos.pt";
_local1.p_girl = "www.ojogos.pt";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 17;
addLanguage(_local1);
_local1 = new Language("in");
_local1.displayName = "English";
_local1.p_family = "www.game.co.in";
_local1.p_tween = "www.game.co.in";
_local1.p_girl = "www.game.co.in";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "en_uk";
_local1.bwcId = 14;
addLanguage(_local1);
_local1 = new Language("de");
_local1.displayName = "Deutsch";
_local1.p_family = "www.jetztspielen.de";
_local1.p_tween = "www.spielen.com";
_local1.p_girl = "www.girlsgogames.de";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 5;
addLanguage(_local1);
_local1 = new Language("br");
_local1.displayName = "Português (BR)";
_local1.p_family = "www.ojogos.com.br";
_local1.p_tween = "www.clickjogos.com";
_local1.p_girl = "www.girlsgogames.com.br";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 10;
addLanguage(_local1);
_local1 = new Language("jp");
_local1.displayName = "日本語";
_local1.p_family = "www.egames.jp";
_local1.p_tween = "www.egames.jp";
_local1.p_girl = "www.egames.jp";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.embedInputFonts = false;
_local1.bwcId = 19;
addLanguage(_local1);
addReference(_local1, "ja");
_local1 = new Language("ar");
_local1.displayName = "English";
_local1.p_family = "www.dailygame.com";
_local1.p_tween = "www.dailygame.com";
_local1.p_girl = "www.dailygame.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 20;
addLanguage(_local1);
addReference(_local1, "ar");
_local1 = new Language("es_mx", "mx");
_local1.displayName = "Español (mx)";
_local1.p_family = "www.juegos.mx";
_local1.p_tween = "www.juegos.mx";
_local1.p_girl = "www.juegosdechicas.mx";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
addLanguage(_local1);
addReference(_local1, "mx");
_local1 = new Language("es_ar", "arg");
_local1.displayName = "Español (ar)";
_local1.p_family = "www.juegos.com.ar";
_local1.p_tween = "www.juegos.com.ar";
_local1.p_girl = "www.juegosdechicas.com.ar";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
addLanguage(_local1);
addReference(_local1, "arg");
}
public static function getCurrentLanguage():void{
trace(("language = " + SpilGame.currentLanguage.name));
}
public static function getLanguagesArray():Array{
var _local1:Array;
var _local2:Object;
var _local3:Language;
_local1 = new Array();
_local2 = new Object();
for each (_local3 in languages) {
if (!_local2[_local3.name]){
_local1.push(_local3);
_local2[_local3.name] = true;
};
};
return (_local1);
}
private static function addLanguage(_arg1:Language):void{
languages[_arg1.name] = _arg1;
}
public static function getLanguageByOldID(_arg1:int):Language{
var _local2:Language;
for each (_local2 in languages) {
if (_local2.bwcId == _arg1){
return (_local2);
};
};
return (null);
}
}
}//package spill.localisation
Section 61
//LanguageSelectBox (spill.localisation.LanguageSelectBox)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class LanguageSelectBox extends MovieClip {
private var flag:MovieClip;
private var mc:MovieClip;
private var popup:MovieClip;
private var languageName_text:TextField;
public function LanguageSelectBox(){
trace("new langselecbox");
super();
if (numChildren > 0){
removeChildAt(0);
};
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true);
Languages.initialize();
popup = new LanguageSelectPopup_mc();
x = Math.round(x);
y = Math.round(y);
popup.y = (-(Math.floor(popup.height)) + 1);
popup.visible = false;
addChild(popup);
mc = new LanguageSelectBox_mc();
addChild(mc);
flag = mc.flag;
languageName_text = mc.languageName_text;
if (stage){
added();
};
init();
languageChanged();
}
private function added(_arg1:Event=null):void{
trace("addedselebnox");
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
}
public function set popupLocation(_arg1:String):void{
trace(("popupLocation = " + _arg1));
if (_arg1 == "bottom"){
popup.y = Math.floor(mc.height);
} else {
popup.y = (-(Math.floor(mc.height)) + 1);
};
}
public function init():void{
var _local1:Array;
var _local2:int;
var _local3:MovieClip;
var _local4:Language;
trace("initselectbox");
_local1 = new Array(popup.l_br, popup.l_de, popup.l_en_us, popup.l_fr, popup.l_in, popup.l_jp, popup.l_pt, popup.l_ru, popup.l_ar, popup.l_cn, popup.l_en_uk, popup.l_es, popup.l_id, popup.l_it, popup.l_nl, popup.l_pl, popup.l_se, popup.l_es_mx, popup.l_es_ar);
_local2 = 0;
while (_local2 < _local1.length) {
_local3 = MovieClip(_local1[_local2]);
if (_local3){
_local3.addEventListener(MouseEvent.CLICK, itemClicked, true, 0, true);
_local3.flag.gotoAndStop(_local3.name.substr(2));
_local3.flag.mouseEnabled = false;
_local3.text.mouseEnabled = false;
_local4 = Languages.getLanguage(_local3.name.substr(2));
if (_local4){
_local3.text.text = _local4.displayAcronim;
} else {
trace((("Error, '" + _local3.name.substr(2)) + "' language not found"));
};
} else {
trace((((("Error, btn number '" + _local2) + "' is not a MovieClip or there is no button '") + _local1[_local2]) + "'"));
};
_local2++;
};
}
private function mouseOver(_arg1:MouseEvent):void{
popup.visible = true;
}
private function languageChanged(_arg1:Event=null):void{
if (SpilGame.currentLanguage){
if ((((SpilGame.portalGroup == PortalGroup.HYVES)) && ((SpilGame.currentLanguage.name == "nl")))){
this.visible = false;
return;
};
this.visible = true;
flag.gotoAndStop(SpilGame.currentLanguage.name);
languageName_text.text = SpilGame.currentLanguage.displayName;
languageName_text.embedFonts = SpilGame.currentLanguage.embedInputFonts;
};
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
}
}//package spill.localisation
Section 62
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var flag:MovieClip;
public var languageName_text:TextField;
}
}//package spill.localisation
Section 63
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_se:MovieClip;
public var l_ar:MovieClip;
public var l_br:MovieClip;
public var l_in:MovieClip;
public var l_cn:MovieClip;
public var l_de:MovieClip;
public var l_es_mx:MovieClip;
public var l_es:MovieClip;
public var l_en_uk:MovieClip;
public var l_fr:MovieClip;
public var l_en_us:MovieClip;
public var l_pl:MovieClip;
public var l_pt:MovieClip;
public var l_nl:MovieClip;
public var l_id:MovieClip;
public var l_es_ar:MovieClip;
public var l_it:MovieClip;
public var l_jp:MovieClip;
public var l_ru:MovieClip;
}
}//package spill.localisation
Section 64
//LocalizedTextField (spill.localisation.LocalizedTextField)
package spill.localisation {
import flash.events.*;
public class LocalizedTextField extends TextFieldFit {
private var regex:RegExp;
private var originalText:String;
public function LocalizedTextField(){
regex = /{([^{}]*)}/g;
super();
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
added();
}
private function languageChanged(_arg1:Event):void{
text = originalText;
updateProperties();
}
override public function set text(_arg1:String):void{
originalText = _arg1;
if ((_arg1 is String)){
super.text = _arg1.replace(regex, replaceFn);
} else {
super.text = "";
};
trace(super.text);
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function replaceFn():String{
var _local2:String;
_local2 = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
text = originalText;
}
}
}//package spill.localisation
Section 65
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
public static const YOUNG_ADULTS:uint = 3;
public static const FAMILY:uint = 0;
public static const channelNames:Array = ["family", "tween", "girl", "teen", "zapapa", "hyves"];
public static const ZAPAPA:uint = 4;
public static const HYVES:uint = 5;
public static const TEENS:uint = 1;
public static const GIRL:uint = 2;
public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF];
public static const NONE:uint = 6;
public static function getName(_arg1:int):String{
return (channelNames[_arg1]);
}
public static function exportXML():XMLNode{
var _local1:XMLNode;
var _local2:int;
var _local3:XMLNode;
_local1 = new XMLNode(1, "channels");
_local2 = 0;
while (_local2 < 5) {
_local3 = new XMLNode(1, "channel");
_local3.attributes.name = channelNames[_local2];
_local3.attributes.id = _local2;
_local1.appendChild(_local3);
_local2++;
};
return (_local1);
}
}
}//package spill.localisation
Section 66
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 67
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
public class SpilGame {
private static const cookieName:String = "spilgames_language_v100";
private static const cookiePath:String = "/";
private static const cookieLanguageVar:String = "savedLang";
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static const BRANDING_CHANGED:String = "brandingChanged";
private static var strings:Object = new Object();
public static var currentBranding:Brand;
private static var contexMenuItem:ContextMenuItem;
spil_internal static var gameName:String;
spil_internal static var debugHostDomain:String = "";
private static var localDomains:Object = new Object();
spil_internal static var emailPage:String;
private static var channelLock:Boolean = false;
spil_internal static var debugEmbedDomain:String = "";
private static var eventDispatcher:EventDispatcher;
private static var _init:Boolean = false;
public static var currentLanguage:Language;
spil_internal static var portalGroup:uint;
private static var stage:Sprite;
public static function getSpilCompanyLink():String{
var _local1:String;
_local1 = "http://www.gameportal.net/";
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (isExternal) ? "external" : "internal"));
_local1 = (_local1 + ("&utm_campaign=" + gameName));
_local1 = (_local1 + ("&utm_source=" + Brand.stripSubDomain((embedDomain) ? embedDomain : hostingDomain)));
_local1 = (_local1 + "&utm_content=Branding_Link");
return (_local1);
}
public static function getPromotionLink(_arg1:String="feature_promotion"):String{
var _local2:String;
_local2 = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getPromotionLink(gameName, emailPage, isExternal, _local2, _arg1));
}
public static function traceAllBrands():void{
trace(outputAllBrands());
}
public static function getString(_arg1:String):String{
var _local2:Object;
_local2 = strings[_arg1];
if (_local2){
if (currentLanguage.textLanguage){
return (_local2[currentLanguage.textLanguage]);
};
if (_local2[currentLanguage.name]){
return (_local2[currentLanguage.name]);
};
return (_local2["en_us"]);
//unresolved jump
};
return ("");
}
public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false):void{
stage = _arg4;
if (_init){
trace("ERROR: LocalisationManager already initialised");
return;
};
_init = true;
localDomains["localhost"] = true;
localDomains["www8.agame.com"] = true;
localDomains["gamedev.dev.spilgames.com"] = true;
localDomains["stg.spel.nl"] = true;
localDomains["stg.girlsgogames.nl"] = true;
localDomains["stg.pl.spel.nl"] = true;
localDomains["stg.pl.girlsgogames.nl"] = true;
trace(localDomains["stg.girlsgogames.nl"]);
Brandings.initialize();
Languages.initialize();
initContexMenu(_arg4);
channelLock = _arg5;
gameName = _arg1.replace(" ", "_");
portalGroup = _arg2;
emailPage = _arg3;
chooseLanguage();
chooseBranding();
if (portalGroup == PortalGroup.HYVES){
changeLanguage("nl");
};
}
public static function get isExternal():Boolean{
return (((((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))) && (!(isStagingDomain))));
}
private static function initContexMenu(_arg1:Sprite):void{
contexMenuItem = new ContextMenuItem("");
_arg1.contextMenu = new ContextMenu();
_arg1.contextMenu.customItems.push(contexMenuItem);
contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked);
}
private static function replaceFn():String{
var _local2:String;
_local2 = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
spil_internal static function get hostingDomain():String{
var _local1:LocalConnection;
if (debugHostDomain != ""){
return (debugHostDomain);
};
_local1 = new LocalConnection();
return (_local1.domain);
}
spil_internal static function chooseLanguage():void{
if (cookieLanguage != null){
currentLanguage = cookieLanguage;
} else {
if (isExternal){
currentLanguage = systemLanguage;
} else {
currentLanguage = portalLanguage;
if (!currentLanguage){
currentLanguage = systemLanguage;
};
};
};
if (!currentLanguage){
trace("Unable to determine language, using 'English US'");
currentLanguage = Languages.getLanguage("en_us");
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
private static function contexMenuClicked(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest(getMoreGamesLink("Contex_Menu")));
}
public static function initTextField(_arg1:TextField):void{
var _local2:TextFormat;
trace(_arg1.text);
_arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn);
trace(_arg1.text);
_arg1.embedFonts = currentLanguage.embedFonts;
if (currentLanguage.forceFont != ""){
_local2 = new TextFormat();
_local2.font = currentLanguage.forceFont;
_arg1.setTextFormat(_local2);
};
}
public static function importXMLv2(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.attribute("identifier")] = new Object());
for each (_local4 in _local2.children()) {
if (_local4.children().length() > 0){
_local3[_local4.name()] = _local4.children()[0].toString();
} else {
_local3[_local4.name()] = "";
};
};
};
}
spil_internal static function changeLanguage(_arg1:String):void{
var _local2:Language;
_local2 = Languages.getLanguage(_arg1);
if (!_local2){
trace("ERROR: Supplied language string does not have a matching language");
} else {
cookieLanguage = _local2;
currentLanguage = _local2;
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
chooseBranding();
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
public static function getSendToFriendLink():String{
return (currentBranding.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain));
}
spil_internal static function chooseBranding():void{
currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]);
if (!(currentBranding is Brand)){
currentBranding = Brandings.getBrandByDomain("www.agame.com");
};
contexMenuItem.caption = ("More Games: " + currentBranding.domain);
dispatchEvent(new Event(BRANDING_CHANGED));
}
spil_internal static function get systemLanguage():Language{
return (Languages.getLanguage(Capabilities.language));
}
spil_internal static function set cookieLanguage(_arg1:Language):void{
var _local2:SharedObject;
_local2 = SharedObject.getLocal(cookieName, cookiePath);
if (_arg1 == null){
_local2.data[cookieLanguageVar] = null;
} else {
_local2.data[cookieLanguageVar] = _arg1.name;
};
_local2.flush();
}
public static function importXML(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.identifier] = new Object());
for each (_local4 in _local2.children()) {
_local3[_local4.name()] = _local4.children()[0].toString();
};
};
}
spil_internal static function dispatchEvent(_arg1:Event):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.dispatchEvent(_arg1);
}
private static function getDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
if (_arg1.indexOf("file") == 0){
return ("offline_play");
};
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
if (_local2 == "localhost"){
_local2 = "offline_play";
};
return (_local2);
}
public static function exportXML():XML{
var _local1:XML;
_local1 = <spil_games/>
;
_local1.appendChild(Brandings.exportXML());
_local1.appendChild(Languages.exportXML());
_local1.appendChild(PortalGroup.exportXML());
return (_local1);
}
public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public static function outputAllBrands():String{
var _local1:Array;
var _local2:String;
var _local3:Brand;
_local1 = Brandings.getBrandsArray();
_local2 = "";
for each (_local3 in _local1) {
_local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n"));
};
return (_local2);
}
public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function getMoreGamesLink(_arg1:String=""):String{
var _local2:String;
_local2 = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function get isStagingDomain():Boolean{
var _local1:String;
_local1 = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject;
var _local2:String;
_local1 = SharedObject.getLocal(cookieName, cookiePath);
_local2 = String(_local1.data[cookieLanguageVar]);
return (Languages.getLanguage(_local2));
}
private static function get portalLanguage():Language{
var _local1:Brand;
var _local2:String;
var _local3:Language;
if (isExternal){
return (null);
};
if (!embedDomain){
return (null);
};
_local1 = Brandings.getBrandByDomain(embedDomain);
if (!_local1){
return (null);
};
_local2 = _local1.preferedLanguage;
if (!_local2){
return (null);
};
_local3 = Languages.getLanguage(_local2);
if (!_local3){
return (null);
};
return (_local3);
}
spil_internal static function get embedDomain():String{
var loc:String;
if (debugEmbedDomain != ""){
return (debugEmbedDomain);
};
if (ExternalInterface.available){
try {
loc = ExternalInterface.call("window.location.href.toString");
if (((!((loc == ""))) && (!((loc == null))))){
trace(("embed domain = " + getDomain(loc)));
return (getDomain(loc));
};
} catch(e:SecurityError) {
trace(("Security Error connecting to external interface, error = " + e));
} catch(e:Error) {
trace(("Error connecting to external interface, error = " + e));
};
};
return (null);
}
}
}//package spill.localisation
Section 68
//SpilGamesLink (spill.localisation.SpilGamesLink)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class SpilGamesLink extends SimpleButton {
public function SpilGamesLink(){
addEventListener(MouseEvent.CLICK, buttonClicked);
}
private function buttonClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()), "_blank");
}
}
}//package spill.localisation
Section 69
//TextFieldFit (spill.localisation.TextFieldFit)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
public class TextFieldFit extends MovieClip {
protected var _text:String;// = "default"
protected var _textSize:Number;// = 12
protected var _embedFonts:Boolean;// = true
protected var _glowColor:uint;// = 0
private var h:Number;
protected var _antiAliasType:String;// = "advanced"
private var w:Number;
protected var _useGlowFilter:Boolean;// = false
protected var _hAlign:String;// = "left"
protected var _textColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowBlur:Number;// = 3
private var field:TextField;
protected var _gridFitType:String;// = "pixel"
protected var _glowQuality:Number;// = 1
private var debugBounding:Sprite;
protected var _disableWordwrap:Boolean;// = false
protected var _multiline:Boolean;// = false
protected var _font:String;// = ""
protected var _underline:Boolean;// = false
protected var _vAlign:String;// = "top"
protected var _italic:Boolean;// = false
protected var _bold:Boolean;// = false
private var sizeChanged:Boolean;// = true
private var embeddedFonts:Array;
protected var _selectable:Boolean;// = false
private var format:TextFormat;
private var valid:Boolean;// = true
private static const gutter:Number = 2;
spil_internal static var embedFonts:Boolean = true;
spil_internal static var forceAAType:String = null;
spil_internal static var forceFont:String = null;
public static var alwaysCheckWidth:Boolean = false;
public function TextFieldFit(){
var _local1:Boolean;
var _local2:Number;
var _local3:Number;
sizeChanged = true;
valid = true;
_text = "default";
_textColor = 0;
_textSize = 12;
_multiline = false;
_disableWordwrap = false;
_hAlign = "left";
_vAlign = "top";
_bold = false;
_underline = false;
_italic = false;
_selectable = false;
_font = "";
_embedFonts = true;
_antiAliasType = "advanced";
_gridFitType = "pixel";
_useGlowFilter = false;
_glowBlur = 3;
_glowColor = 0;
_glowStrength = 5;
_glowQuality = 1;
super();
_local1 = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
_local2 = width;
_local3 = height;
if (numChildren > 0){
removeChildAt(0);
};
if (!field){
field = new TextField();
addChild(field);
};
field.border = false;
field.background = false;
field.type = TextFieldType.DYNAMIC;
mouseEnabled = false;
mouseChildren = false;
format = new TextFormat();
embeddedFonts = Font.enumerateFonts(false);
setSize(_local2, _local3);
validate();
if (stage){
addEventListener(Event.RENDER, init);
stage.invalidate();
};
init();
}
private function resizeText(_arg1:Boolean=false):void{
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
if (format.size <= 3){
trace("WARNING: Text resised to 3px, either an error occured or the text just wont fit");
return;
};
field.setTextFormat(format);
resizeText(true);
} else {
if (_arg1 == false){
while (doesTextFit()) {
if (format.size <= textSize){
format.size = Object((Number(format.size) + 1));
field.setTextFormat(format);
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
field.setTextFormat(format);
break;
};
} else {
break;
};
};
};
};
}
public function get italic():Boolean{
return (_italic);
}
public function get textColor():uint{
return (_textColor);
}
public function get vAlign():String{
return (_vAlign);
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function get selectable():Boolean{
return (_selectable);
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
public function get bold():Boolean{
return (_bold);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
invalidate();
}
public function set font(_arg1:String):void{
_font = _arg1;
invalidate();
}
public function set selectable(_arg1:Boolean):void{
_selectable = _arg1;
invalidate();
}
public function get multiline():Boolean{
return (_multiline);
}
public function set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function get gridFitType():String{
return (_gridFitType);
}
public function get underline():Boolean{
return (_underline);
}
public function get textSize():Number{
return (_textSize);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _arg1;
invalidate();
}
protected function updateProperties():void{
var _local1:Boolean;
var _local2:Font;
field.text = _text;
field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline;
field.wordWrap = ((field.multiline) && (!(_disableWordwrap)));
field.selectable = _selectable;
field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType;
field.gridFitType = _gridFitType;
embeddedFonts = Font.enumerateFonts(false);
if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){
_local1 = false;
for each (_local2 in embeddedFonts) {
if (_font == _local2.fontName){
_local1 = true;
break;
};
};
field.embedFonts = _local1;
if (!_local1){
trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text));
} else {
trace((("Found Embedded font '" + _font) + "' using font"));
};
} else {
field.embedFonts = false;
};
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
format.font = _font;
};
if (sizeChanged){
format.size = _textSize;
};
format.color = _textColor;
format.align = _hAlign;
format.bold = _bold;
format.italic = _italic;
format.underline = _underline;
format.leftMargin = 0;
format.rightMargin = 0;
field.setTextFormat(format);
if (_useGlowFilter){
filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)];
} else {
filters = [];
};
}
private function doesTextFit():Boolean{
if (((((field.textHeight + (gutter * 2)) > h)) || (((((field.textWidth + (gutter * 2)) > w)) && (((!(field.multiline)) || (alwaysCheckWidth))))))){
return (false);
};
return (true);
}
public function get glowStrength():Number{
return (_glowStrength);
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function get text():String{
return (_text);
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
private function layoutText():void{
resizeText();
field.height = (field.textHeight + (gutter * 2));
if (vAlign == "top"){
field.y = 0;
} else {
if (vAlign == "middle"){
field.y = ((h - field.height) / 2);
} else {
if (vAlign == "bottom"){
field.y = (h - field.height);
};
};
};
}
public function get hAlign():String{
return (_hAlign);
}
public function setSize(_arg1:Number, _arg2:Number):void{
w = _arg1;
h = _arg2;
scaleX = (scaleY = 1);
field.width = w;
field.height = h;
invalidate();
}
public function set gridFitType(_arg1:String):void{
_gridFitType = _arg1;
invalidate();
}
public function set underline(_arg1:Boolean):void{
_underline = _arg1;
invalidate();
}
public function get glowBlur():Number{
return (_glowBlur);
}
public function set textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function get textField():TextField{
return (field);
}
public function get glowColor():uint{
return (_glowColor);
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
}
}//package spill.localisation
Section 70
//1_son_boing_402 (StarSplash_NG_fla.1_son_boing_402)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_boing_402 extends MovieClip {
public function 1_son_boing_402(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 71
//1_son_boost_401 (StarSplash_NG_fla.1_son_boost_401)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_boost_401 extends MovieClip {
public function 1_son_boost_401(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 72
//1_son_etoile_400 (StarSplash_NG_fla.1_son_etoile_400)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_etoile_400 extends MovieClip {
public function 1_son_etoile_400(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 73
//1_son_gameOver_411 (StarSplash_NG_fla.1_son_gameOver_411)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_gameOver_411 extends MovieClip {
public function 1_son_gameOver_411(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 74
//1_son_needPractice_410 (StarSplash_NG_fla.1_son_needPractice_410)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_needPractice_410 extends MovieClip {
public function 1_son_needPractice_410(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 75
//1_son_passed_407 (StarSplash_NG_fla.1_son_passed_407)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_passed_407 extends MovieClip {
public function 1_son_passed_407(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 76
//1_son_perfect_408 (StarSplash_NG_fla.1_son_perfect_408)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_perfect_408 extends MovieClip {
public function 1_son_perfect_408(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 77
//1_son_sonar_403 (StarSplash_NG_fla.1_son_sonar_403)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_sonar_403 extends MovieClip {
public function 1_son_sonar_403(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 78
//1_son_splash_405 (StarSplash_NG_fla.1_son_splash_405)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_splash_405 extends MovieClip {
public function 1_son_splash_405(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame4(){
gotoAndStop(1);
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 79
//1_son_splashOut_406 (StarSplash_NG_fla.1_son_splashOut_406)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_splashOut_406 extends MovieClip {
public function 1_son_splashOut_406(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 80
//1_son_triple_404 (StarSplash_NG_fla.1_son_triple_404)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_triple_404 extends MovieClip {
public function 1_son_triple_404(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 81
//1_son_wellDone_409 (StarSplash_NG_fla.1_son_wellDone_409)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_wellDone_409 extends MovieClip {
public function 1_son_wellDone_409(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 82
//1_son_zonePassed_412 (StarSplash_NG_fla.1_son_zonePassed_412)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class 1_son_zonePassed_412 extends MovieClip {
public function 1_son_zonePassed_412(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 83
//1_tableau_x1_233 (StarSplash_NG_fla.1_tableau_x1_233)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau_x1_233 extends MovieClip {
public var spawn:uint;
public function 1_tableau_x1_233(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneX", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("zigzag1", 700, 3);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 7){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 84
//1_tableau_x2_234 (StarSplash_NG_fla.1_tableau_x2_234)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau_x2_234 extends MovieClip {
public var spawn:uint;
public function 1_tableau_x2_234(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("zigzag1", 700, 4);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("zigzag1", 700, 4);
MovieClip(parent).spawnForme("espace", 200, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 200, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("ligneX", 700, 330);
MovieClip(parent).spawnForme("espace", 200, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("zigzag1", 700, 3);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 9){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 85
//1_tableau_x3_235 (StarSplash_NG_fla.1_tableau_x3_235)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau_x3_235 extends MovieClip {
public var spawn:uint;
public function 1_tableau_x3_235(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("ligneX", 700, 330);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("zigzag2", 700, 5);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("diM2", 700, 230);
MovieClip(parent).spawnForme("ligneX", (MovieClip(parent).newHx + 100), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 7){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 86
//1_tableau_x3b_236 (StarSplash_NG_fla.1_tableau_x3b_236)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau_x3b_236 extends MovieClip {
public var spawn:uint;
public function 1_tableau_x3b_236(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneX", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("zigzag1", 700, 5);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 25), (MovieClip(parent).newHy + 65));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 9){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 87
//1_tableau_x4b_237 (StarSplash_NG_fla.1_tableau_x4b_237)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau_x4b_237 extends MovieClip {
public var spawn:uint;
public function 1_tableau_x4b_237(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("zigzag1", 700, 6);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("diM2", 700, 230);
MovieClip(parent).spawnForme("ligneX", (MovieClip(parent).newHx + 50), MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 25), (MovieClip(parent).newHy + 65));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 300, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 10){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 88
//1_tableau1_213 (StarSplash_NG_fla.1_tableau1_213)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau1_213 extends MovieClip {
public var spawn:uint;
public function 1_tableau1_213(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneXM1", 700, 280);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("ligneXM1", 700, 280);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 7){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 89
//1_tableau10_222 (StarSplash_NG_fla.1_tableau10_222)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau10_222 extends MovieClip {
public var spawn:uint;
public function 1_tableau10_222(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("eTrans", 700, 130);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("eTrans", 700, 80);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 65));
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("eTrans", 700, -20);
MovieClip(parent).spawnForme("eTrans", 800, 330);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnForme("eTrans", 700, -20);
MovieClip(parent).spawnForme("eTrans", 800, 330);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 11){
MovieClip(parent).spawnForme("eTrans", 1200, 130);
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 12){
MovieClip(parent).spawnForme("eTrans", 700, -20);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 13){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 14){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 90
//1_tableau11_223 (StarSplash_NG_fla.1_tableau11_223)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau11_223 extends MovieClip {
public var spawn:uint;
public function 1_tableau11_223(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("diM3", 700, 230);
MovieClip(parent).spawnForme("ligneXM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("diM3", 700, 230);
MovieClip(parent).spawnForme("ligneXM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnage("meduse", (MovieClip(parent).newHx + 50), 220);
MovieClip(parent).spawnForme("medM", (MovieClip(parent).newHx + 50), 180);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("ligneX", 700, 180);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnage("meduse", 700, 220);
MovieClip(parent).spawnForme("medMM10", 700, 180);
MovieClip(parent).spawnForme("sautM5", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("eTrans", 700, 80);
MovieClip(parent).spawnForme("eTrans", 800, 80);
MovieClip(parent).spawnForme("eTrans", 900, 80);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("eTrans", 1150, -90);
MovieClip(parent).spawnForme("eTrans", 1250, -90);
MovieClip(parent).spawnForme("eTrans", 1350, -90);
MovieClip(parent).spawnForme("sautM5", 700, 80);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, 80);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 65));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 11){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 91
//1_tableau12_224 (StarSplash_NG_fla.1_tableau12_224)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau12_224 extends MovieClip {
public var spawn:uint;
public function 1_tableau12_224(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneXM1", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", (MovieClip(parent).newHx + 50), MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("eTrans", 1250, 180);
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("eTrans", 1050, 40);
MovieClip(parent).spawnForme("eTrans", 1150, 40);
MovieClip(parent).spawnForme("eTrans", 1250, 40);
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, 230);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 5, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("ligneXM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("ligneXM1", 700, 380);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 10){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 92
//1_tableau13_225 (StarSplash_NG_fla.1_tableau13_225)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau13_225 extends MovieClip {
public var spawn:uint;
public function 1_tableau13_225(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneX", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
};
if (spawn == 2){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 350, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("ligneX", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 350, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 5, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 5, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnForme("eTrans", 700, -220);
MovieClip(parent).spawnForme("eTrans", 800, -220);
MovieClip(parent).spawnForme("eTrans", 900, -220);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 11){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 12){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 93
//1_tableau14_226 (StarSplash_NG_fla.1_tableau14_226)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau14_226 extends MovieClip {
public var spawn:uint;
public function 1_tableau14_226(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("diM3", 700, 230);
MovieClip(parent).spawnForme("ligneX", (MovieClip(parent).newHx + 50), MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 150, 330);
};
if (spawn == 2){
MovieClip(parent).spawnForme("eTrans", 700, -170);
MovieClip(parent).spawnForme("eTrans", 800, -170);
MovieClip(parent).spawnForme("eTrans", 900, -170);
MovieClip(parent).spawnForme("zigzag2", 700, 4);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("eTrans", 1300, 130);
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 350, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneXM1", (MovieClip(parent).newHx - 50), MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medMM10", 750, 180);
MovieClip(parent).spawnForme("sautM5", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("eTrans", 700, -470);
MovieClip(parent).spawnForme("eTrans", 800, -470);
MovieClip(parent).spawnForme("eTrans", 900, -470);
MovieClip(parent).spawnForme("eTrans", 700, 130);
MovieClip(parent).spawnForme("eTrans", 800, 130);
MovieClip(parent).spawnForme("eTrans", 900, 130);
MovieClip(parent).spawnForme("zigzag2", 700, 4);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("feuille", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("feuille", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnForme("eTrans", 700, -70);
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medMM10", 750, 180);
MovieClip(parent).spawnForme("diM3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("roundDive", (MovieClip(parent).newHx + 50), MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 11){
MovieClip(parent).spawnForme("eTrans", 700, 130);
MovieClip(parent).spawnForme("eTrans", 800, 130);
MovieClip(parent).spawnForme("eTrans", 900, 130);
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 12){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 13){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 94
//1_tableau15_227 (StarSplash_NG_fla.1_tableau15_227)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau15_227 extends MovieClip {
public var spawn:uint;
public function 1_tableau15_227(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("eTrans", 800, 330);
MovieClip(parent).spawnForme("eTrans", 900, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
};
if (spawn == 2){
MovieClip(parent).spawnForme("eTrans", 1100, 80);
MovieClip(parent).spawnForme("eTrans", 1200, 80);
MovieClip(parent).spawnForme("eTrans", 1300, 80);
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 300, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("eTrans", 800, 330);
MovieClip(parent).spawnForme("eTrans", 900, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("eTrans", 700, -20);
MovieClip(parent).spawnForme("eTrans", 800, -20);
MovieClip(parent).spawnForme("eTrans", 900, -20);
MovieClip(parent).spawnForme("espace", 1, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("eTrans", 800, 330);
MovieClip(parent).spawnForme("eTrans", 900, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("eTrans", (MovieClip(parent).newHx + 100), -270);
MovieClip(parent).spawnForme("eTrans", (MovieClip(parent).newHx + 100), -270);
MovieClip(parent).spawnForme("eTrans", (MovieClip(parent).newHx + 100), -270);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 9){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 95
//1_tableau16_228 (StarSplash_NG_fla.1_tableau16_228)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau16_228 extends MovieClip {
public var spawn:uint;
public function 1_tableau16_228(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("zigzag1", 700, 4);
MovieClip(parent).spawnForme("espace", 150, 330);
};
if (spawn == 2){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("zigzag2", 700, 4);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("eTrans", 750, -20);
MovieClip(parent).spawnForme("eTrans", 850, -20);
MovieClip(parent).spawnForme("eTrans", 950, -20);
MovieClip(parent).spawnForme("ligneX", 700, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("ligneX", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, 230);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 11){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 12){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 96
//1_tableau17_229 (StarSplash_NG_fla.1_tableau17_229)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau17_229 extends MovieClip {
public var spawn:uint;
public function 1_tableau17_229(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
var _local1:int;
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("diM3", 700, 230);
MovieClip(parent).spawnForme("ligneX", (MovieClip(parent).newHx + 50), MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 150, 330);
};
if (spawn == 2){
MovieClip(parent).spawnForme("eTrans", 700, -170);
MovieClip(parent).spawnForme("eTrans", 800, -170);
MovieClip(parent).spawnForme("eTrans", 900, -170);
MovieClip(parent).spawnForme("zigzag2", 700, 4);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("eTrans", 1750, -470);
MovieClip(parent).spawnForme("eTrans", 1850, -470);
MovieClip(parent).spawnForme("eTrans", 1950, -470);
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("feuille", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medMM10", 750, 180);
_local1 = MovieClip(parent).newHy;
MovieClip(parent).spawnForme("sautM5", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, _local1);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("eTrans", 700, 130);
MovieClip(parent).spawnForme("eTrans", 800, 130);
MovieClip(parent).spawnForme("eTrans", 900, 130);
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("feuille", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 9){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 97
//1_tableau18_230 (StarSplash_NG_fla.1_tableau18_230)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau18_230 extends MovieClip {
public var spawn:uint;
public function 1_tableau18_230(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
};
if (spawn == 2){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("eTrans", 700, 80);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("eTrans", 700, -220);
MovieClip(parent).spawnForme("ligneX", 700, 130);
MovieClip(parent).spawnForme("espace", 5, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("ligneXM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("eTrans", 700, -220);
MovieClip(parent).spawnForme("eTrans", 800, -220);
MovieClip(parent).spawnForme("eTrans", 900, -220);
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnForme("diM3", 700, 230);
MovieClip(parent).spawnForme("ligneXM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 11){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 12){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 98
//1_tableau19_231 (StarSplash_NG_fla.1_tableau19_231)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau19_231 extends MovieClip {
public var spawn:uint;
public function 1_tableau19_231(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("eTrans", 800, 330);
MovieClip(parent).spawnForme("eTrans", 900, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
};
if (spawn == 2){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, 230);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("eTrans", 800, 30);
MovieClip(parent).spawnForme("eTrans", 900, 30);
MovieClip(parent).spawnForme("eTrans", 1000, 30);
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 10){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 99
//1_tableau2_214 (StarSplash_NG_fla.1_tableau2_214)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau2_214 extends MovieClip {
public var spawn:uint;
public function 1_tableau2_214(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneX", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("ligneXM1", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("ligneXM1", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 9){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 100
//1_tableau20_232 (StarSplash_NG_fla.1_tableau20_232)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau20_232 extends MovieClip {
public var spawn:uint;
public function 1_tableau20_232(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
var _local1:int;
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneX", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
};
if (spawn == 2){
MovieClip(parent).spawnForme("eTrans", 1500, -20);
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 350, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("ligneXM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
_local1 = MovieClip(parent).newHy;
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, _local1);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("feuille", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 75, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 125, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("saut", 700, 130);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("eTrans", 700, -20);
MovieClip(parent).spawnForme("eTrans", 800, -20);
MovieClip(parent).spawnForme("eTrans", 900, -20);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 10){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 101
//1_tableau3_220 (StarSplash_NG_fla.1_tableau3_220)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau3_220 extends MovieClip {
public var spawn:uint;
public function 1_tableau3_220(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("eTrans", 700, 80);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("eTrans", 700, 130);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnForme("eTrans", 700, 80);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnForme("eTrans", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 11){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 12){
MovieClip(parent).spawnForme("eTrans", 700, 130);
MovieClip(parent).spawnForme("eTrans", 800, 130);
MovieClip(parent).spawnForme("eTrans", 900, 130);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 13){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 14){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 102
//1_tableau4_215 (StarSplash_NG_fla.1_tableau4_215)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau4_215 extends MovieClip {
public var spawn:uint;
public function 1_tableau4_215(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneXM1", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 25), (MovieClip(parent).newHy + 65));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 25), (MovieClip(parent).newHy + 65));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 8){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 103
//1_tableau5_216 (StarSplash_NG_fla.1_tableau5_216)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau5_216 extends MovieClip {
public var spawn:uint;
public function 1_tableau5_216(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneXM1", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("ligneX", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 8){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 104
//1_tableau6_218 (StarSplash_NG_fla.1_tableau6_218)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau6_218 extends MovieClip {
public var spawn:uint;
public function 1_tableau6_218(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneX", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("ligneX", 700, 280);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 250, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("ligneX", 700, 330);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 5, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 10){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 105
//1_tableau7_219 (StarSplash_NG_fla.1_tableau7_219)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau7_219 extends MovieClip {
public var spawn:uint;
public function 1_tableau7_219(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("ligneX", 700, 280);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("zigzag2", 700, 5);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("zigzag1", 700, 6);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 25), (MovieClip(parent).newHy + 65));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("ligneXM1", 700, 380);
MovieClip(parent).spawnForme("espace", 300, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 11){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 12){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 106
//1_tableau8_217 (StarSplash_NG_fla.1_tableau8_217)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau8_217 extends MovieClip {
public var spawn:uint;
public function 1_tableau8_217(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("espace", 300, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("zigzag1", 700, 4);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 5, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("ligneXM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 350, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnForme("ligneXM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnForme("sautM45", 700, 230);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 9){
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 10){
MovieClip(parent).spawnForme("medM", 750, 180);
MovieClip(parent).spawnage("meduse", 750, 220);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 11){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 12){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 107
//1_tableau9_221 (StarSplash_NG_fla.1_tableau9_221)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class 1_tableau9_221 extends MovieClip {
public var spawn:uint;
public function 1_tableau9_221(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
public function nextSpawn():void{
spawn = (spawn + 1);
if (spawn == 1){
MovieClip(parent).spawnForme("zigzag1", 700, 3);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 2){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 3){
MovieClip(parent).spawnForme("saut", 700, 230);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 4){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM1", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", MovieClip(parent).newHx, (MovieClip(parent).newHy + 65));
MovieClip(parent).spawnForme("espace", 100, 330);
} else {
if (spawn == 5){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 150, 330);
} else {
if (spawn == 6){
MovieClip(parent).spawnForme("sautM5", 700, 230);
MovieClip(parent).spawnForme("saut3", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("sautM145", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneX", MovieClip(parent).newHx, MovieClip(parent).newHy);
MovieClip(parent).spawnForme("ligneY", (MovieClip(parent).newHx + 50), (MovieClip(parent).newHy + 50));
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 7){
MovieClip(parent).spawnForme("ligneX", 700, 380);
MovieClip(parent).spawnForme("espace", 50, 330);
} else {
if (spawn == 8){
MovieClip(parent).spawnage("bouée", 750, 260);
MovieClip(parent).spawnForme("espace", 675, 330);
} else {
if (spawn == 9){
MovieClip(parent).finTableau();
trace(this.currentFrame);
stop();
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
function frame2(){
if (this.currentFrame == 2){
spawn = 0;
};
}
function frame30(){
nextSpawn();
}
}
}//package StarSplash_NG_fla
Section 108
//bg_clip_182 (StarSplash_NG_fla.bg_clip_182)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class bg_clip_182 extends MovieClip {
public var bg3:MovieClip;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg_clip_182(){
addFrameScript(0, frame1, 2, frame3, 4, frame5);
}
function frame3(){
stop();
MovieClip(parent).distanceBg1 = 0;
MovieClip(parent).distanceBg2 = 0;
MovieClip(parent).distanceBg3 = 0;
}
function frame1(){
stop();
MovieClip(parent).distanceBg1 = 0;
MovieClip(parent).distanceBg2 = 0;
MovieClip(parent).distanceBg3 = 0;
}
function frame5(){
stop();
MovieClip(parent).distanceBg1 = 0;
MovieClip(parent).distanceBg2 = 0;
MovieClip(parent).distanceBg3 = 0;
}
}
}//package StarSplash_NG_fla
Section 109
//bg_nuages_lv1_94 (StarSplash_NG_fla.bg_nuages_lv1_94)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg_nuages_lv1_94 extends MovieClip {
public var i:uint;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg_nuages_lv1_94(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
i = 0;
gotoAndPlay(1);
}
function frame1(){
stop();
i = Math.ceil((Math.random() * 2));
gotoAndStop(i);
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 110
//bg_nuages_lv2_189 (StarSplash_NG_fla.bg_nuages_lv2_189)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg_nuages_lv2_189 extends MovieClip {
public var i:uint;
public var bg3:MovieClip;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg_nuages_lv2_189(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
i = Math.ceil((Math.random() * 3));
gotoAndStop(i);
}
function frame4(){
i = 0;
gotoAndPlay(1);
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 111
//bg_nuages_lv2a_c_190 (StarSplash_NG_fla.bg_nuages_lv2a_c_190)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg_nuages_lv2a_c_190 extends MovieClip {
public var bg1b:MovieClip;
public var bg1a:MovieClip;
}
}//package StarSplash_NG_fla
Section 112
//bg_nuages_lv2c_c_194 (StarSplash_NG_fla.bg_nuages_lv2c_c_194)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg_nuages_lv2c_c_194 extends MovieClip {
public var bg3a:MovieClip;
public var bg3b:MovieClip;
}
}//package StarSplash_NG_fla
Section 113
//bg2_lv1_183 (StarSplash_NG_fla.bg2_lv1_183)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg2_lv1_183 extends MovieClip {
public var i:uint;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg2_lv1_183(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
i = 0;
gotoAndPlay(1);
}
function frame1(){
stop();
i = Math.ceil((Math.random() * 2));
gotoAndStop(i);
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 114
//bg2_lv2_195 (StarSplash_NG_fla.bg2_lv2_195)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg2_lv2_195 extends MovieClip {
public var i:uint;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg2_lv2_195(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
i = 0;
gotoAndPlay(1);
}
function frame1(){
stop();
i = Math.ceil((Math.random() * 2));
gotoAndStop(i);
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 115
//bg2_lv3_204 (StarSplash_NG_fla.bg2_lv3_204)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg2_lv3_204 extends MovieClip {
public var i:uint;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg2_lv3_204(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
i = 0;
gotoAndPlay(1);
}
function frame1(){
stop();
i = Math.ceil((Math.random() * 2));
gotoAndStop(i);
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 116
//bg3_lv1_186 (StarSplash_NG_fla.bg3_lv1_186)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg3_lv1_186 extends MovieClip {
public var i:uint;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg3_lv1_186(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 54, frame55);
}
function frame3(){
i = 0;
play();
}
function frame1(){
stop();
i = Math.ceil((Math.random() * 2));
gotoAndStop(i);
}
function frame2(){
stop();
}
function frame55(){
gotoAndPlay(1);
}
}
}//package StarSplash_NG_fla
Section 117
//bg3_lv2_200 (StarSplash_NG_fla.bg3_lv2_200)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg3_lv2_200 extends MovieClip {
public var i:uint;
public var bg3:MovieClip;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg3_lv2_200(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 55, frame56);
}
function frame3(){
stop();
}
function frame1(){
stop();
i = Math.ceil((Math.random() * 3));
gotoAndStop(i);
}
function frame4(){
i = 0;
play();
}
function frame2(){
stop();
}
function frame56(){
gotoAndPlay(1);
}
}
}//package StarSplash_NG_fla
Section 118
//bg3_lv3_207 (StarSplash_NG_fla.bg3_lv3_207)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bg3_lv3_207 extends MovieClip {
public var i:uint;
public var bg3:MovieClip;
public var bg4:MovieClip;
public var bg2:MovieClip;
public var bg1:MovieClip;
public function bg3_lv3_207(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 55, frame56);
}
function frame3(){
stop();
}
function frame1(){
stop();
i = Math.ceil((Math.random() * 4));
gotoAndStop(i);
}
function frame4(){
stop();
}
function frame5(){
i = 0;
play();
}
function frame2(){
stop();
}
function frame56(){
gotoAndPlay(1);
}
}
}//package StarSplash_NG_fla
Section 119
//bouee_corde_392 (StarSplash_NG_fla.bouee_corde_392)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bouee_corde_392 extends MovieClip {
public var coquillages:MovieClip;
}
}//package StarSplash_NG_fla
Section 120
//bouee_drapeau_395 (StarSplash_NG_fla.bouee_drapeau_395)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bouee_drapeau_395 extends MovieClip {
public var g:MovieClip;
}
}//package StarSplash_NG_fla
Section 121
//bouee_drapeau_level_396 (StarSplash_NG_fla.bouee_drapeau_level_396)
package StarSplash_NG_fla {
import flash.display.*;
import flash.text.*;
public dynamic class bouee_drapeau_level_396 extends MovieClip {
public var lv:TextField;
}
}//package StarSplash_NG_fla
Section 122
//bouee_g_391 (StarSplash_NG_fla.bouee_g_391)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bouee_g_391 extends MovieClip {
public var corde:MovieClip;
public var tete:MovieClip;
}
}//package StarSplash_NG_fla
Section 123
//bouee_tete_394 (StarSplash_NG_fla.bouee_tete_394)
package StarSplash_NG_fla {
import flash.display.*;
import flash.text.*;
public dynamic class bouee_tete_394 extends MovieClip {
public var drapeau:MovieClip;
public var passe:TextField;
}
}//package StarSplash_NG_fla
Section 124
//btn_music_137 (StarSplash_NG_fla.btn_music_137)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class btn_music_137 extends MovieClip {
public var texte:MovieClip;
public var hit:MovieClip;
public function btn_music_137(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
this.texte.visible = false;
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
this.texte.visible = false;
}
function frame2(){
this.texte.visible = true;
}
}
}//package StarSplash_NG_fla
Section 125
//btn_music_texte_138 (StarSplash_NG_fla.btn_music_texte_138)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_music_texte_138 extends MovieClip {
public var __id3_:LocalizedTextField;
public function btn_music_texte_138(){
__setProp___id3__btn_music_texte_Layer1_1();
}
function __setProp___id3__btn_music_texte_Layer1_1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.text = "{MuteMusic}";
__id3_.textColor = 0xFFFFFF;
__id3_.textSize = 8;
__id3_.bold = false;
__id3_.disableWordwrap = false;
__id3_.embedFonts = true;
__id3_.font = "Arial";
__id3_.hAlign = "center";
__id3_.multiline = false;
__id3_.vAlign = "middle";
__id3_.antiAliasType = "advanced";
__id3_.glowBlur = 3;
__id3_.glowColor = 0;
__id3_.useGlowFilter = false;
__id3_.glowQuality = 1;
__id3_.glowStrength = 5;
__id3_.gridFitType = "pixel";
__id3_.italic = false;
__id3_.selectable = false;
__id3_.underline = false;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 126
//btn_sons_142 (StarSplash_NG_fla.btn_sons_142)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class btn_sons_142 extends MovieClip {
public var texte:MovieClip;
public var hit:MovieClip;
public function btn_sons_142(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
this.texte.visible = false;
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
this.texte.visible = false;
}
function frame2(){
this.texte.visible = true;
}
}
}//package StarSplash_NG_fla
Section 127
//btn_sons_texte_143 (StarSplash_NG_fla.btn_sons_texte_143)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_sons_texte_143 extends MovieClip {
public var t1:LocalizedTextField;
public function btn_sons_texte_143(){
__setProp_t1_btn_sons_texte_Layer1_1();
}
function __setProp_t1_btn_sons_texte_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{MuteSounds}";
t1.textColor = 0xFFFFFF;
t1.textSize = 8;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Arial";
t1.hAlign = "center";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 128
//bulle_373 (StarSplash_NG_fla.bulle_373)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bulle_373 extends MovieClip {
public function bulle_373(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package StarSplash_NG_fla
Section 129
//bulle_c_372 (StarSplash_NG_fla.bulle_c_372)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class bulle_c_372 extends MovieClip {
public var b2:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b6:MovieClip;
public var b7:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
public function bulle_c_372(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package StarSplash_NG_fla
Section 130
//ciel_181 (StarSplash_NG_fla.ciel_181)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class ciel_181 extends MovieClip {
public function ciel_181(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 131
//ciel_fin_166 (StarSplash_NG_fla.ciel_fin_166)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class ciel_fin_166 extends MovieClip {
public function ciel_fin_166(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 132
//congratulations_clip_174 (StarSplash_NG_fla.congratulations_clip_174)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class congratulations_clip_174 extends MovieClip {
public function congratulations_clip_174(){
addFrameScript(0, frame1, 159, frame160);
}
function frame160(){
stop();
MovieClip(parent.parent).fondu.nextPlace = "result";
MovieClip(parent.parent).fondu.nextScene1 = "Menu";
MovieClip(parent.parent).fondu.gotoAndPlay("fadeOut");
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 133
//congratulations_texte_175 (StarSplash_NG_fla.congratulations_texte_175)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class congratulations_texte_175 extends MovieClip {
public function congratulations_texte_175(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12);
}
function frame10(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
if ((((MovieClip(parent.parent.parent).quelleLangue() == "pt")) || ((MovieClip(parent.parent.parent).quelleLangue() == "br")))){
this.gotoAndStop("pt");
} else {
if ((((MovieClip(parent.parent.parent).quelleLangue() == "es_mx")) || ((MovieClip(parent.parent.parent).quelleLangue() == "es_ar")))){
this.gotoAndStop("es2");
} else {
if ((((((((((((MovieClip(parent.parent.parent).quelleLangue() == "en_us")) || ((MovieClip(parent.parent.parent).quelleLangue() == "en_uk")))) || ((MovieClip(parent.parent.parent).quelleLangue() == "ar")))) || ((MovieClip(parent.parent.parent).quelleLangue() == "in")))) || ((MovieClip(parent.parent.parent).quelleLangue() == "jp")))) || ((MovieClip(parent.parent.parent).quelleLangue() == "cn")))){
this.gotoAndStop("en");
} else {
this.gotoAndStop(MovieClip(parent.parent.parent).quelleLangue());
};
};
};
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame11(){
stop();
}
}
}//package StarSplash_NG_fla
Section 134
//congratulations_texte_completed_176 (StarSplash_NG_fla.congratulations_texte_completed_176)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class congratulations_texte_completed_176 extends MovieClip {
public function congratulations_texte_completed_176(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12);
}
function frame10(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
if ((((MovieClip(parent.parent.parent).quelleLangue() == "pt")) || ((MovieClip(parent.parent.parent).quelleLangue() == "br")))){
this.gotoAndStop("pt");
} else {
if ((((MovieClip(parent.parent.parent).quelleLangue() == "es_mx")) || ((MovieClip(parent.parent.parent).quelleLangue() == "es_ar")))){
this.gotoAndStop("es2");
} else {
if ((((((((((((MovieClip(parent.parent.parent).quelleLangue() == "en_us")) || ((MovieClip(parent.parent.parent).quelleLangue() == "en_uk")))) || ((MovieClip(parent.parent.parent).quelleLangue() == "ar")))) || ((MovieClip(parent.parent.parent).quelleLangue() == "in")))) || ((MovieClip(parent.parent.parent).quelleLangue() == "jp")))) || ((MovieClip(parent.parent.parent).quelleLangue() == "cn")))){
this.gotoAndStop("en");
} else {
this.gotoAndStop(MovieClip(parent.parent.parent).quelleLangue());
};
};
};
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame11(){
stop();
}
}
}//package StarSplash_NG_fla
Section 135
//copyright_115 (StarSplash_NG_fla.copyright_115)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class copyright_115 extends MovieClip {
public var hit:MovieClip;
public function copyright_115(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 136
//dauphin_100 (StarSplash_NG_fla.dauphin_100)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class dauphin_100 extends MovieClip {
public var etat:String;
public var saute:MovieClip;
public var nage:MovieClip;
public function dauphin_100(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
etat = "nage";
}
function frame2(){
stop();
etat = "saute";
}
}
}//package StarSplash_NG_fla
Section 137
//dauphin_nage_101 (StarSplash_NG_fla.dauphin_nage_101)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class dauphin_nage_101 extends MovieClip {
public var hit:MovieClip;
}
}//package StarSplash_NG_fla
Section 138
//dauphin_saute_103 (StarSplash_NG_fla.dauphin_saute_103)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class dauphin_saute_103 extends MovieClip {
public var noEntFrame:Boolean;
public var frBoost:uint;
public var hit:MovieClip;
public var hit2:MovieClip;
public function dauphin_saute_103(){
addFrameScript(0, frame1, 19, frame20, 24, frame25, 43, frame44, 49, frame50, 54, frame55, 57, frame58, 58, frame59, 64, frame65, 123, frame124, 129, frame130, 133, frame134, 153, frame154, 166, frame167);
}
function frame65(){
stop();
}
function frame154(){
stop();
}
function frame167(){
stop();
}
function frame1(){
noEntFrame = false;
frBoost = 4;
MovieClip(parent.parent).createSplash("tiSplash");
MovieClip(parent.parent).mouvementSaut();
}
function frame25(){
MovieClip(parent.parent).mouvementSaut();
}
public function entFrame(_arg1:Event):void{
var _local2:uint;
var _local3:Boolean;
_local3 = false;
if (MovieClip(parent.parent).plongeFini == true){
_local2 = 20;
} else {
_local2 = 40;
};
if (noEntFrame == false){
if (((!((MovieClip(parent).y == MovieClip(parent.parent).eau))) && (((MovieClip(parent).y + _local2) < MovieClip(parent.parent).eau)))){
MovieClip(parent).y = (MovieClip(parent).y + _local2);
} else {
MovieClip(parent.parent).Splash();
removeEventListener(Event.ENTER_FRAME, entFrame);
};
};
}
function frame20(){
stop();
}
function frame124(){
stop();
}
function frame44(){
stop();
}
function frame130(){
MovieClip(parent.parent).Tombe(true);
}
function frame134(){
stop();
}
function frame55(){
MovieClip(parent.parent).Tombe(false);
}
function frame50(){
frBoost = 2;
MovieClip(parent.parent).Boost();
}
function frame58(){
frBoost = 3;
}
function frame59(){
frBoost = 4;
}
}
}//package StarSplash_NG_fla
Section 139
//eau_alpha_212 (StarSplash_NG_fla.eau_alpha_212)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class eau_alpha_212 extends MovieClip {
public function eau_alpha_212(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 140
//eau_bg_97 (StarSplash_NG_fla.eau_bg_97)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class eau_bg_97 extends MovieClip {
public var masque1:MovieClip;
public var frameName:String;
public function eau_bg_97(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
frameName = "nuit";
stop();
}
function frame1(){
frameName = "tropical";
stop();
}
function frame2(){
frameName = "port";
stop();
}
}
}//package StarSplash_NG_fla
Section 141
//etoile_clip_170 (StarSplash_NG_fla.etoile_clip_170)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class etoile_clip_170 extends MovieClip {
public function etoile_clip_170(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package StarSplash_NG_fla
Section 142
//feux_c_293 (StarSplash_NG_fla.feux_c_293)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class feux_c_293 extends MovieClip {
public var f1:MovieClip;
public function feux_c_293(){
addFrameScript(1, frame2, 8, frame9, 20, frame21, 38, frame39, 46, frame47, 55, frame56, 64, frame65, 100, frame101);
}
function frame65(){
}
function frame9(){
}
function frame21(){
}
function frame2(){
}
function frame47(){
}
function frame39(){
}
function frame101(){
stop();
}
function frame56(){
}
}
}//package StarSplash_NG_fla
Section 143
//feux_g_294 (StarSplash_NG_fla.feux_g_294)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class feux_g_294 extends MovieClip {
public function feux_g_294(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package StarSplash_NG_fla
Section 144
//flag_icon_418 (StarSplash_NG_fla.flag_icon_418)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class flag_icon_418 extends MovieClip {
public function flag_icon_418(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 145
//fleche_DOWN_326 (StarSplash_NG_fla.fleche_DOWN_326)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class fleche_DOWN_326 extends MovieClip {
public function fleche_DOWN_326(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 146
//fleche_DOWN2_331 (StarSplash_NG_fla.fleche_DOWN2_331)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class fleche_DOWN2_331 extends MovieClip {
public function fleche_DOWN2_331(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 147
//fleche_LEFT_RIGHT_327 (StarSplash_NG_fla.fleche_LEFT_RIGHT_327)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class fleche_LEFT_RIGHT_327 extends MovieClip {
public function fleche_LEFT_RIGHT_327(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 148
//fleche_LEFT_RIGHT2_332 (StarSplash_NG_fla.fleche_LEFT_RIGHT2_332)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class fleche_LEFT_RIGHT2_332 extends MovieClip {
public function fleche_LEFT_RIGHT2_332(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 149
//fleche_SPACE_352 (StarSplash_NG_fla.fleche_SPACE_352)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class fleche_SPACE_352 extends MovieClip {
public function fleche_SPACE_352(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 150
//fleche_SPACE2_355 (StarSplash_NG_fla.fleche_SPACE2_355)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class fleche_SPACE2_355 extends MovieClip {
public function fleche_SPACE2_355(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 151
//fleche_UP_324 (StarSplash_NG_fla.fleche_UP_324)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class fleche_UP_324 extends MovieClip {
public function fleche_UP_324(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 152
//fleche_UP2_330 (StarSplash_NG_fla.fleche_UP2_330)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class fleche_UP2_330 extends MovieClip {
public function fleche_UP2_330(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 153
//fondu_fadeIn_144 (StarSplash_NG_fla.fondu_fadeIn_144)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class fondu_fadeIn_144 extends MovieClip {
public var nextPlace:String;
public var nextScene1:String;
public function fondu_fadeIn_144(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 13, frame14, 14, frame15, 23, frame24);
}
function frame10(){
MovieClip(root).frameName = null;
}
function frame14(){
stop();
MovieClip(root).gotoAndPlay(nextPlace, nextScene1);
}
function frame15(){
if (MovieClip(root).frameName == "menu"){
MovieClip(root).musicF("in", 9, "Menu");
} else {
if (MovieClip(root).frameName == "jeu"){
MovieClip(root).musicF("in", 9, "lvl1");
};
};
}
function frame1(){
stop();
nextPlace = null;
nextScene1 = null;
}
function frame24(){
gotoAndStop(1);
}
function frame2(){
if (nextPlace == "jeu"){
MovieClip(root).musicF("out", 12, "end");
};
}
}
}//package StarSplash_NG_fla
Section 154
//fondu_fadeOut_308 (StarSplash_NG_fla.fondu_fadeOut_308)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class fondu_fadeOut_308 extends MovieClip {
public function fondu_fadeOut_308(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
MovieClip(root).musicF("out", 8, "end");
}
function frame9(){
stop();
}
}
}//package StarSplash_NG_fla
Section 155
//hitBox_102 (StarSplash_NG_fla.hitBox_102)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class hitBox_102 extends MovieClip {
public function hitBox_102(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package StarSplash_NG_fla
Section 156
//l_br_416 (StarSplash_NG_fla.l_br_416)
package StarSplash_NG_fla {
import flash.display.*;
import flash.text.*;
public dynamic class l_br_416 extends MovieClip {
public var text:TextField;
public var flag:MovieClip;
}
}//package StarSplash_NG_fla
Section 157
//ligne_eau_113 (StarSplash_NG_fla.ligne_eau_113)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class ligne_eau_113 extends MovieClip {
public function ligne_eau_113(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 158
//ligne_eau_c_112 (StarSplash_NG_fla.ligne_eau_c_112)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class ligne_eau_c_112 extends MovieClip {
public var c1:MovieClip;
}
}//package StarSplash_NG_fla
Section 159
//lv1_180 (StarSplash_NG_fla.lv1_180)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import com.greensock.*;
import flash.utils.*;
import flash.net.*;
import com.greensock.easing.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class lv1_180 extends MovieClip {
public var tableau6:MovieClip;
public var myTween5:TweenLite;
public var passeItems3:uint;
public var limDroite:uint;
public var myTween2:TweenLite;
public var myTween4:TweenLite;
public var itemsCollectAll:uint;
public var dauphinBoost:Boolean;
public var myTween3:TweenLite;
public var passeItems5:uint;
public var passeItems7:uint;
public var myTween8:TweenLite;
public var right:Boolean;
public var passeItems1:uint;
public var passeItems2:uint;
public var tableau10:MovieClip;
public var tableau11:MovieClip;
public var tableau12:MovieClip;
public var tableau13:MovieClip;
public var tableau14:MovieClip;
public var tableau15:MovieClip;
public var tableau16:MovieClip;
public var tableau17:MovieClip;
public var tableau18:MovieClip;
public var passeItems6:uint;
public var jump:Boolean;
public var tableau19:MovieClip;
public var passeItems4:uint;
public var myTween:TweenLite;
public var bg:MovieClip;
public var tableau21:MovieClip;
public var tableau20:MovieClip;
public var distanceBg3:Number;
public var distanceBg2:Number;
public var passeItems8:uint;
public var passeItems9:uint;
public var distanceBg1:Number;
public var peutSonar:Boolean;
public var i:Number;
public var initItemSpd:Number;
public var longTableau:uint;
public var sonarName;
public var plongeFini:Boolean;
public var nombreSauts:uint;
public var splash:Array;
public var tableau10x:MovieClip;
public var cntIt:uint;
public var pourcent:uint;
public var posY:Number;
public var up:Boolean;
public var tableau3x:MovieClip;
public var down:Boolean;
public var peutPlonger:Boolean;
public var dauphin:MovieClip;
public var splashFini:Boolean;
public var passeItems10:uint;
public var passeItems11:uint;
public var passeItems12:uint;
public var myTween2b:TweenLite;
public var newHx:int;
public var compteEtoiles:uint;
public var lignes:MovieClip;
public var passeItems18:uint;
public var passeItems19:uint;
public var passeItems14:uint;
public var controles:Boolean;
public var passeItems13:uint;
public var passeItems17:uint;
public var newHy:int;
public var passeItems20:uint;
public var eau_bg:MovieClip;
public var pratique:Boolean;
public var passeItems16:uint;
public var passeItems15:uint;
public var limVerticale:uint;
public var tableau6x:MovieClip;
public var space:Boolean;
public var chiffreStart:int;
public var passeItems21:uint;
public var totalItems:uint;
public var totalItemsAll:uint;
public var keyArray:Array;
public var tiSplash:Array;
public var dauphinPos:Point;
public var dauphinTombe:Boolean;
public var tableau9x:MovieClip;
public var eau:uint;
public var masque2:MovieClip;
public var itemsCollect:uint;
public var SPD:uint;
public var hit;
public var chiffre:String;
public var ciel:MovieClip;
public var maxSauts:uint;
public var boost:Boolean;
public var vitesseBg2:Number;
public var vitesseBg3:Number;
public var vitesseBg1:Number;
public var passeItems:uint;
public var zone:String;
public var fini:Boolean;
public var itemSpd:Number;
public var ligne_eau:MovieClip;
public var tableau1:MovieClip;
public var tableau2:MovieClip;
public var tableau3:MovieClip;
public var tableau4:MovieClip;
public var tableau5:MovieClip;
public var tableau7:MovieClip;
public var tableau8:MovieClip;
public var tableau9:MovieClip;
public var myTween7:TweenLite;
public var eau_over:MovieClip;
public var myTween6:TweenLite;
public function lv1_180(){
addFrameScript(0, frame1);
}
public function deleteSplash(_arg1:String):void{
if (_arg1 == "grosSplash"){
this.splash[0].removeEventListener(Event.ENTER_FRAME, this.splash[0].entFrame);
this.removeChild(this.splash[0]);
this.splash[0] = null;
splash.splice(0, 1);
} else {
if (_arg1 == "tiSplash"){
this.tiSplash[0].removeEventListener(Event.ENTER_FRAME, this.tiSplash[0].entFrame);
this.removeChild(this.tiSplash[0]);
this.tiSplash[0] = null;
tiSplash.splice(0, 1);
};
};
}
public function scrolling(){
if (dauphinBoost == false){
if (dauphinTombe == false){
posY = (limVerticale - this.dauphinPos.y);
Math.floor((posY = (posY / 7.5)));
} else {
if (dauphinTombe == true){
if (this.dauphinPos.y < 40){
posY = (posY + 2);
} else {
if (this.dauphinPos.y > 200){
posY = (posY - 8);
} else {
posY = (posY - 3);
if (posY < -30){
posY = -30;
};
};
};
};
};
this.y = (this.y + posY);
};
if (this.y > 800){
this.y = 800;
} else {
if (this.y < 0){
this.y = 0;
};
};
}
public function updateMed():void{
if ((this.dauphin.x - (SPD + 2)) > 20){
this.dauphin.x = (this.dauphin.x - (SPD + 2));
} else {
this.dauphin.x = 20;
};
}
function frame1(){
stop();
OverwriteManager.init(2);
vitesseBg1 = 2.3;
distanceBg1 = 0;
vitesseBg2 = 3;
distanceBg2 = 0;
vitesseBg3 = 3.5;
distanceBg3 = 0;
SPD = 6;
jump = false;
keyArray = new Array();
eau = 267;
limDroite = 600;
fini = true;
up = false;
right = false;
down = false;
space = false;
boost = true;
peutSonar = true;
sonarName = null;
peutPlonger = true;
plongeFini = true;
nombreSauts = 0;
maxSauts = 3;
splashFini = true;
splash = new Array();
tiSplash = new Array();
cntIt = 0;
initItemSpd = 8;
itemSpd = initItemSpd;
limVerticale = 200;
dauphinPos = new Point(this.dauphin.x, this.dauphin.y);
dauphinTombe = false;
dauphinBoost = false;
newHx = 0;
newHy = 0;
totalItemsAll = 1977;
itemsCollectAll = 0;
totalItems = 0;
itemsCollect = 0;
passeItems = 0;
passeItems1 = 15;
passeItems2 = 25;
passeItems3 = 30;
passeItems4 = 30;
passeItems5 = 40;
passeItems6 = 45;
passeItems7 = 50;
passeItems8 = 55;
passeItems9 = 60;
passeItems10 = 70;
passeItems11 = 70;
passeItems12 = 75;
passeItems13 = 75;
passeItems14 = 75;
passeItems15 = 80;
passeItems16 = 85;
passeItems17 = 90;
passeItems18 = 90;
passeItems19 = 100;
passeItems20 = 110;
passeItems21 = 160;
pourcent = 0;
chiffreStart = 0;
chiffre = null;
longTableau = 0;
MyGlobal.score = 0;
MyGlobal.vague = 0;
MovieClip(parent).menuJeu.score.text = "0.00";
MovieClip(parent).menuJeu.itemsC.text = 0;
zone = "tropical";
i = 0;
while (i < 222) {
keyArray.push([i, false]);
i++;
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
stage.addEventListener(KeyboardEvent.KEY_UP, checkKeysUp);
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function rndHundredth(_arg1){
var _local2:Number;
_local2 = _arg1;
_local2 = (_local2 * 100);
_local2 = Math.round(_local2);
_local2 = (_local2 / 100);
return (_local2);
}
public function createSplash(_arg1:String):void{
var _local2:Splash1;
var _local3:TiSplash1;
if (_arg1 == "grosSplash"){
_local2 = new Splash1();
addChild(_local2);
splash.push(_local2);
_local2.x = (this.dauphin.x + 30);
_local2.y = 222;
if (MovieClip(parent).frameName != null){
MovieClip(root).sonsF("splash", true);
};
} else {
if (_arg1 == "tiSplash"){
_local3 = new TiSplash1();
addChild(_local3);
tiSplash.push(_local3);
_local3.x = this.dauphin.x;
_local3.y = 222;
MovieClip(root).sonsF("splashOut", false);
};
};
}
public function updateBoost():void{
if (this.dauphin.x >= limDroite){
this.dauphin.x = limDroite;
myTween2.kill();
};
}
public function Bloop():void{
myTween5 = new TweenLite(this.dauphin, 5, {y:"-20", ease:Quad.easeOut, useFrames:true, onComplete:splashComplete});
this.dauphin.gotoAndStop("nage");
}
public function deleteSpawn(_arg1:String, _arg2:uint):void{
var _local3:*;
var _local4:Number;
var _local5:String;
var _local6:uint;
var _local7:String;
if (_arg2 > 0){
MovieClip(root).sonsF("etoile", false);
};
itemsCollect = (itemsCollect + _arg2);
MovieClip(parent).menuJeu.itemsC.text = itemsCollect;
if (pratique == false){
itemsCollectAll = (itemsCollectAll + _arg2);
if (_arg2 != 0){
_local4 = ((itemsCollectAll / totalItemsAll) * 100);
MyGlobal.score = rndHundredth(_local4);
_local5 = String(MyGlobal.score);
_local6 = _local5.indexOf(".");
_local7 = _local5.substring((_local6 + 1), _local5.length);
if (_local7.length == 0){
_local5 = (_local5 + ".00");
} else {
if (_local7.length == 1){
_local5 = (_local5 + "0");
};
};
MovieClip(parent).menuJeu.score.text = _local5;
};
};
_local3 = this.getChildByName(_arg1);
_local3.removeEventListener(Event.ENTER_FRAME, _local3.entFrame);
this.removeChild(_local3);
_local3 = null;
}
public function Splash():void{
var _local1:*;
var _local2:uint;
if (plongeFini == true){
_local2 = 5;
_local1 = "25";
this.dauphin.y = eau;
} else {
_local2 = 10;
_local1 = 390;
};
createSplash("grosSplash");
fini = true;
nombreSauts = 0;
if (plongeFini == false){
this.dauphin.saute.gotoAndPlay("splash2");
} else {
if (this.dauphin.saute.frBoost < 4){
this.dauphin.saute.gotoAndPlay((this.dauphin.saute.frBoost + "b"));
} else {
if (plongeFini == true){
this.dauphin.saute.gotoAndPlay("splash");
};
};
};
myTween4 = new TweenLite(this.dauphin, _local2, {y:_local1, ease:Quad.easeOut, useFrames:true, onComplete:Bloop});
splashFini = false;
plongeFini = true;
peutPlonger = true;
dauphinTombe = false;
}
public function completeFunction():void{
myTween.reverse();
if (this.dauphin.y < 0){
dauphinTombe = true;
};
}
public function meduseSaut():void{
nombreSauts = 0;
peutPlonger = true;
boost = true;
dauphinTombe = false;
dauphinBoost = false;
if (plongeFini == false){
plongeFini = true;
};
myTween7 = new TweenLite(this.dauphin, 30, {y:-260, useFrames:true, onComplete:meduseSautComplete, overwrite:true});
}
public function finTableau():void{
trace(((("Tableau " + MyGlobal.vague) + ": total d'étoile = ") + compteEtoiles));
pourcent = Math.ceil(((itemsCollect * 100) / totalItems));
if (itemsCollect == totalItems){
MovieClip(parent).menuJeu.presTableau.verdict = "perfect";
} else {
if (itemsCollect >= passeItems){
MovieClip(parent).menuJeu.presTableau.verdict = "passed";
} else {
MovieClip(parent).menuJeu.presTableau.verdict = "failed";
};
};
MovieClip(parent).menuJeu.presTableau.nextPlace = "result";
MovieClip(parent).menuJeu.presTableau.gotoAndPlay("noir_in");
}
public function checkKeysUp(_arg1:KeyboardEvent):void{
keyArray[_arg1.keyCode][1] = false;
}
public function initVit():void{
myTween2b.kill();
this.itemSpd = this.initItemSpd;
}
public function Tombe(_arg1:Boolean):void{
var _local2:uint;
if (_arg1 == false){
_local2 = 10;
} else {
if (_arg1 == true){
_local2 = 5;
};
};
myTween3 = new TweenLite(this.dauphin, _local2, {y:"160", ease:Quad.easeIn, useFrames:true, onUpdate:updateTombe, onComplete:reverseFunction});
if (this.dauphin.y < 0){
dauphinTombe = true;
};
dauphinBoost = false;
posY = 0;
}
public function splashComplete():void{
splashFini = true;
}
public function mouvementSaut():void{
nombreSauts = (nombreSauts + 1);
fini = false;
dauphinTombe = false;
dauphinBoost = false;
plongeFini = true;
myTween = new TweenLite(this.dauphin, 10, {y:"-160", useFrames:true, onComplete:completeFunction, onReverseComplete:reverseFunction});
}
public function reverseFunction():void{
this.dauphin.saute.noEntFrame = false;
this.dauphin.saute.addEventListener(Event.ENTER_FRAME, this.dauphin.saute.entFrame);
}
public function isKeyDown(_arg1){
return (keyArray[_arg1][1]);
}
public function entFrame(_arg1:Event):void{
if (MovieClip(root).frameName != "jeu"){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, checkKeysUp);
this.removeEventListener(Event.ENTER_FRAME, entFrame);
if (this.dauphin.saute != null){
this.dauphin.saute.addEventListener(Event.ENTER_FRAME, this.dauphin.saute.entFrame);
};
};
hit = this.dauphin[this.dauphin.etat].hit;
dauphinPos = new Point(this.dauphin.x, this.dauphin.y);
dauphinPos = localToGlobal(dauphinPos);
if (this.dauphinPos.y < limVerticale){
scrolling();
} else {
if ((((this.dauphinPos.y > limVerticale)) && (!((this.y == 0))))){
scrolling();
};
};
if (controles == true){
if ((((isKeyDown(39) == true)) || ((isKeyDown(68) == true)))){
if ((this.dauphin.x + SPD) < limDroite){
this.dauphin.x = (this.dauphin.x + SPD);
} else {
this.dauphin.x = limDroite;
};
} else {
if ((((isKeyDown(37) == true)) || ((isKeyDown(65) == true)))){
if ((this.dauphin.x - SPD) > 20){
this.dauphin.x = (this.dauphin.x - SPD);
} else {
this.dauphin.x = 20;
};
};
};
};
if (this.dauphin.etat == "nage"){
up = true;
if ((((((isKeyDown(40) == true)) || ((isKeyDown(83) == true)))) && ((controles == true)))){
if (splashFini == false){
myTween5.kill();
splashFini = true;
};
if ((this.dauphin.y + SPD) < 385){
this.dauphin.y = (this.dauphin.y + SPD);
this.dauphin.nage.rotation = 10;
} else {
this.dauphin.y = 385;
};
} else {
if ((((((isKeyDown(38)) || (isKeyDown(87))) == true)) && ((controles == true)))){
if (splashFini == false){
myTween5.kill();
splashFini = true;
};
if ((this.dauphin.y - SPD) > eau){
this.dauphin.y = (this.dauphin.y - SPD);
this.dauphin.nage.rotation = -10;
} else {
this.dauphin.y = eau;
jump = true;
};
} else {
if (this.dauphin.nage.rotation > 0){
this.dauphin.nage.rotation = (this.dauphin.nage.rotation - 2);
} else {
if (this.dauphin.nage.rotation < 0){
this.dauphin.nage.rotation = (this.dauphin.nage.rotation + 2);
} else {
this.dauphin.nage.rotation = 0;
};
};
};
};
if ((((((jump == true)) && ((((isKeyDown(38) == true)) || ((isKeyDown(87) == true)))))) && ((controles == true)))){
this.dauphin.gotoAndStop("saute");
jump = false;
boost = true;
};
if ((((((((isKeyDown(39) == false)) && ((isKeyDown(68) == false)))) || ((controles == false)))) && (((this.dauphin.x - 2) > 20)))){
this.dauphin.x = (this.dauphin.x - 2);
};
};
if ((((isKeyDown(38) == false)) && ((isKeyDown(87) == false)))){
up = false;
};
if ((((isKeyDown(39) == false)) && ((isKeyDown(68) == false)))){
right = false;
};
if ((((isKeyDown(40) == false)) && ((isKeyDown(83) == false)))){
down = false;
};
if ((((isKeyDown(32) == false)) && (isKeyDown(13)))){
space = false;
};
if (plongeFini == false){
if ((this.dauphin.x - (itemSpd * (1 / 3))) > 20){
this.dauphin.x = (this.dauphin.x - (itemSpd * (1 / 3)));
} else {
this.dauphin.x = 20;
};
};
if (((!((this.zone == "nuit"))) && ((this.bg.bg1.i > 0)))){
this.bg.bg1.x = (this.bg.bg1.x - vitesseBg1);
distanceBg1 = (distanceBg1 + vitesseBg1);
if (distanceBg1 >= (680 + this.bg.bg1[("bg" + this.bg.bg1.i)].width)){
this.bg.bg1.x = (this.bg.bg1.x + distanceBg1);
distanceBg1 = 0;
this.bg.bg1.gotoAndPlay("fin");
};
};
if (this.bg.bg2.i > 0){
this.bg.bg2.x = (this.bg.bg2.x - vitesseBg2);
distanceBg2 = (distanceBg2 + vitesseBg2);
if (distanceBg2 >= (680 + this.bg.bg2[("bg" + this.bg.bg2.i)].width)){
this.bg.bg2.x = (this.bg.bg2.x + distanceBg2);
distanceBg2 = 0;
this.bg.bg2.gotoAndPlay("fin");
};
};
if (this.bg.bg3.i > 0){
this.bg.bg3.x = (this.bg.bg3.x - vitesseBg3);
distanceBg3 = (distanceBg3 + vitesseBg3);
if (distanceBg3 >= (680 + this.bg.bg3[("bg" + this.bg.bg3.i)].width)){
this.bg.bg3.x = (this.bg.bg3.x + distanceBg3);
distanceBg3 = 0;
this.bg.bg3.gotoAndPlay("fin");
};
};
}
public function chVague():void{
compteEtoiles = 0;
MyGlobal.vague = (MyGlobal.vague + 1);
passeItems = this[("passeItems" + MyGlobal.vague)];
itemsCollect = 0;
pourcent = 0;
MovieClip(parent).menuJeu.itemsC.text = 0;
MovieClip(parent).menuJeu.progression.gotoAndStop(1);
if (MyGlobal.vague == 1){
totalItems = 25;
longTableau = 290;
};
if (MyGlobal.vague == 2){
totalItems = 45;
longTableau = 448;
};
if (MyGlobal.vague == 3){
totalItems = 50;
longTableau = 480;
};
if (MyGlobal.vague == 4){
totalItems = 50;
longTableau = 400;
};
if (MyGlobal.vague == 5){
totalItems = 65;
longTableau = 544;
};
if (MyGlobal.vague == 6){
totalItems = 67;
longTableau = 509;
};
if (MyGlobal.vague == 7){
totalItems = 75;
longTableau = 650;
};
if (MyGlobal.vague == 8){
totalItems = 75;
longTableau = 561;
};
if (MyGlobal.vague == 9){
totalItems = 80;
longTableau = 705;
};
if (MyGlobal.vague == 10){
totalItems = 100;
longTableau = 754;
};
if (MyGlobal.vague == 11){
totalItems = 95;
longTableau = 703;
};
if (MyGlobal.vague == 12){
totalItems = 102;
longTableau = 587;
};
if (MyGlobal.vague == 13){
totalItems = 105;
longTableau = 661;
};
if (MyGlobal.vague == 14){
totalItems = 105;
longTableau = 540;
};
if (MyGlobal.vague == 15){
totalItems = 100;
longTableau = 646;
};
if (MyGlobal.vague == 16){
totalItems = 109;
longTableau = 609;
};
if (MyGlobal.vague == 17){
totalItems = 119;
longTableau = 735;
};
if (MyGlobal.vague == 18){
totalItems = 110;
longTableau = 736;
};
if (MyGlobal.vague == 19){
totalItems = 140;
longTableau = 691;
};
if (MyGlobal.vague == 20){
totalItems = 150;
longTableau = 724;
};
if (MyGlobal.vague == 21){
totalItems = 210;
longTableau = 1068;
};
this[("tableau" + MyGlobal.vague)].gotoAndPlay(2);
}
public function preMeduseSaut():void{
this.dauphin.saute.noEntFrame = true;
this.dauphin.saute.removeEventListener(Event.ENTER_FRAME, this.dauphin.saute.entFrame);
if (myTween3 != null){
myTween3.kill();
};
dauphinTombe = false;
dauphinBoost = false;
if (plongeFini == false){
plongeFini = true;
};
myTween8 = new TweenLite(this.dauphin, 10, {y:240, useFrames:true, onComplete:meduseSaut, overwrite:true, ease:Quad.easeOut, onUpdate:updateMed});
this.dauphin.saute.gotoAndPlay("meduseSaut");
}
public function spawnForme(_arg1:String, _arg2:int, _arg3:int):void{
if (_arg1 == "saut"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 160), _arg3);
newHx = (_arg2 + 160);
newHy = _arg3;
} else {
if (_arg1 == "sautM1"){
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 160), _arg3);
newHx = (_arg2 + 160);
newHy = _arg3;
} else {
if (_arg1 == "sautM5"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
newHx = (_arg2 + 135);
newHy = (_arg3 - 65);
} else {
if (_arg1 == "sautM45"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
newHx = (_arg2 + 135);
newHy = (_arg3 - 110);
} else {
if (_arg1 == "sautM145"){
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
newHx = (_arg2 + 135);
newHy = (_arg3 - 110);
} else {
if (_arg1 == "saut3"){
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
newHx = (_arg2 + 135);
newHy = (_arg3 - 65);
} else {
if (_arg1 == "diM3"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 30), (_arg3 - 50));
spawnage("etoileB", (_arg2 + 60), (_arg3 - 100));
spawnage("etoileB", (_arg2 + 90), (_arg3 - 150));
spawnage("etoileB", (_arg2 + 120), (_arg3 - 200));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 250));
spawnage("etoileB", (_arg2 + 180), (_arg3 - 300));
spawnage("etoileB", (_arg2 + 210), (_arg3 - 350));
spawnage("etoileB", (_arg2 + 240), (_arg3 - 400));
spawnage("etoileB", (_arg2 + 270), (_arg3 - 450));
newHx = (_arg2 + 270);
newHy = (_arg3 - 450);
} else {
if (_arg1 == "diM2"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 30), (_arg3 - 50));
spawnage("etoileB", (_arg2 + 60), (_arg3 - 100));
spawnage("etoileB", (_arg2 + 90), (_arg3 - 150));
spawnage("etoileB", (_arg2 + 120), (_arg3 - 200));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 250));
newHx = (_arg2 + 150);
newHy = (_arg3 - 250);
} else {
if (_arg1 == "medM"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 5), (_arg3 - 90));
spawnage("etoileB", (_arg2 + 15), (_arg3 - 170));
spawnage("etoileB", (_arg2 + 30), (_arg3 - 240));
spawnage("etoileB", (_arg2 + 50), (_arg3 - 300));
spawnage("etoileB", (_arg2 + 75), (_arg3 - 350));
spawnage("etoileB", (_arg2 + 110), (_arg3 - 390));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 420));
spawnage("etoileB", (_arg2 + 200), (_arg3 - 440));
spawnage("etoileB", (_arg2 + 270), (_arg3 - 450));
newHx = (_arg2 + 270);
newHy = (_arg3 - 450);
} else {
if (_arg1 == "medMM10"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 5), (_arg3 - 90));
spawnage("etoileB", (_arg2 + 15), (_arg3 - 170));
spawnage("etoileB", (_arg2 + 30), (_arg3 - 240));
spawnage("etoileB", (_arg2 + 50), (_arg3 - 300));
spawnage("etoileB", (_arg2 + 75), (_arg3 - 350));
spawnage("etoileB", (_arg2 + 110), (_arg3 - 390));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 420));
spawnage("etoileB", (_arg2 + 200), (_arg3 - 440));
newHx = (_arg2 + 270);
newHy = (_arg3 - 450);
} else {
if (_arg1 == "ligneX"){
spawnage("etoileB", (_arg2 + 0), _arg3);
spawnage("etoileB", (_arg2 + 50), _arg3);
spawnage("etoileB", (_arg2 + 100), _arg3);
spawnage("etoileB", (_arg2 + 150), _arg3);
spawnage("etoileB", (_arg2 + 200), _arg3);
spawnage("etoileB", (_arg2 + 250), _arg3);
newHx = (_arg2 + 250);
newHy = _arg3;
} else {
if (_arg1 == "ligneXM1"){
spawnage("etoileB", (_arg2 + 50), _arg3);
spawnage("etoileB", (_arg2 + 100), _arg3);
spawnage("etoileB", (_arg2 + 150), _arg3);
spawnage("etoileB", (_arg2 + 200), _arg3);
spawnage("etoileB", (_arg2 + 250), _arg3);
newHx = (_arg2 + 250);
newHy = _arg3;
} else {
if (_arg1 == "ligneY"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", _arg2, (_arg3 + 50));
spawnage("etoileB", _arg2, (_arg3 + 100));
spawnage("etoileB", _arg2, (_arg3 + 150));
spawnage("etoileB", _arg2, (_arg3 + 200));
newHx = _arg2;
newHy = (_arg3 + 200);
} else {
if (_arg1 == "zigzag1"){
spawnage("etoileB", _arg2, 280);
spawnage("etoileB", (_arg2 + 100), 380);
spawnage("etoileB", (_arg2 + 200), 280);
newHx = (_arg2 + 200);
newHy = 280;
if (_arg3 >= 4){
spawnage("etoileB", (_arg2 + 300), 380);
newHx = (_arg2 + 300);
newHy = 380;
};
if (_arg3 >= 5){
spawnage("etoileB", (_arg2 + 400), 280);
newHx = (_arg2 + 400);
newHy = 280;
};
if (_arg3 >= 6){
spawnage("etoileB", (_arg2 + 500), 380);
newHx = (_arg2 + 500);
newHy = 380;
};
} else {
if (_arg1 == "zigzag2"){
spawnage("etoileB", _arg2, 380);
spawnage("etoileB", (_arg2 + 100), 280);
spawnage("etoileB", (_arg2 + 200), 380);
newHx = (_arg2 + 200);
newHy = 380;
if (_arg3 >= 4){
spawnage("etoileB", (_arg2 + 300), 280);
newHx = (_arg2 + 300);
newHy = 280;
};
if (_arg3 >= 5){
spawnage("etoileB", (_arg2 + 400), 380);
newHx = (_arg2 + 400);
newHy = 380;
};
if (_arg3 >= 6){
spawnage("etoileB", (_arg2 + 500), 280);
newHx = (_arg2 + 500);
newHy = 280;
};
} else {
if (_arg1 == "feuille"){
spawnage("etoileB", (_arg2 + 0), _arg3);
spawnage("etoileB", (_arg2 + 50), (_arg3 - 5));
spawnage("etoileB", (_arg2 + 100), (_arg3 - 15));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 30));
spawnage("etoileB", (_arg2 + 200), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 250), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 300), (_arg3 - 160));
newHx = (_arg2 + 300);
newHy = (_arg3 - 160);
} else {
if (_arg1 == "roundDive"){
spawnage("etoileB", (_arg2 + 0), _arg3);
spawnage("etoileB", (_arg2 + 40), (_arg3 + 15));
spawnage("etoileB", (_arg2 + 90), (_arg3 + 30));
spawnage("etoileB", (_arg2 + 130), (_arg3 + 65));
spawnage("etoileB", (_arg2 + 160), (_arg3 + 110));
spawnage("etoileB", (_arg2 + 175), (_arg3 + 160));
newHx = (_arg2 + 300);
newHy = (_arg3 + 160);
} else {
if (_arg1 == "eTrans"){
spawnage("etoileT", (_arg2 + 0), _arg3);
newHx = _arg2;
newHy = _arg3;
} else {
if (_arg1 == "espace"){
spawnage("espace", (newHx + _arg2), 230);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function Boost():void{
this.dauphin.saute.noEntFrame = true;
dauphinTombe = false;
if (this.dauphin.y < 0){
dauphinBoost = true;
};
plongeFini = true;
myTween2 = new TweenLite(this.dauphin, 12, {x:"225", ease:Cubic.easeOut, useFrames:true, onUpdate:updateBoost, overwrite:true});
}
public function meduseSautComplete():void{
Tombe(false);
}
public function chZone():void{
if (eau_bg.frameName != zone){
MovieClip(parent).menuJeu.progression.fond.gotoAndStop(zone);
ciel.gotoAndStop(zone);
eau_bg.gotoAndStop(zone);
eau_over.gotoAndStop(zone);
ligne_eau.c1.gotoAndStop(zone);
eau_bg.masque1.gotoAndPlay(1);
masque2.gotoAndPlay(1);
ligne_eau.gotoAndPlay(1);
bg.gotoAndStop(zone);
if (zone == "nuit"){
dauphin.transform.colorTransform = new ColorTransform(0.7, 0.55, 0.7, 1, 0, 0, 0, 0);
};
};
}
public function updateTombe():void{
if (plongeFini == true){
if (!((!((this.dauphin.y == eau))) && (((this.dauphin.y + 20) < eau)))){
Splash();
myTween3.kill();
};
};
}
public function spawnage(_arg1:String, _arg2:int, _arg3:int):void{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:int;
_local8 = 0;
if (_arg1 == "etoileB"){
compteEtoiles = (compteEtoiles + 1);
cntIt = (cntIt + 1);
_local4 = new EtoileJaune();
_local4.name = ("et_" + cntIt);
} else {
if (_arg1 == "etoileT"){
compteEtoiles = (compteEtoiles + 4);
_local8 = 1;
cntIt = (cntIt + 4);
_local4 = new EtoileTrans();
_local4.name = ("et_" + (cntIt - 3));
_local5 = new EtoileTrans2();
_local5.name = ("et_" + (cntIt - 2));
_local5.pos = 1;
_local5.x = (_arg2 + 33);
_local5.y = _arg3;
_local6 = new EtoileTrans2();
_local6.name = ("et_" + (cntIt - 1));
_local6.pos = 27;
_local6.x = (_arg2 + 33);
_local6.y = _arg3;
_local7 = new EtoileTrans2();
_local7.name = ("et_" + cntIt);
_local7.pos = 54;
_local7.x = (_arg2 + 33);
_local7.y = _arg3;
} else {
if (_arg1 == "espace"){
cntIt = (cntIt + 1);
_local4 = new Espace();
_local4.name = ("esp_" + cntIt);
} else {
if (_arg1 == "meduse"){
cntIt = (cntIt + 1);
_local4 = new Meduse();
_local4.name = ("med_" + cntIt);
} else {
if (_arg1 == "sonar"){
_local4 = new Sonar();
_local4.name = "sonar1";
} else {
if (_arg1 == "bouée"){
_local4 = new Bouée();
_local4.name = "bouée1";
newHx = 700;
newHy = 230;
};
};
};
};
};
};
_local4.x = _arg2;
_local4.y = _arg3;
addChildAt(_local4, (this.getChildIndex(dauphin) + _local8));
if (_local5 != null){
addChildAt(_local5, (this.getChildIndex(dauphin) + _local8));
};
if (_local6 != null){
addChildAt(_local6, (this.getChildIndex(dauphin) + _local8));
};
if (_local7 != null){
addChildAt(_local7, (this.getChildIndex(dauphin) + _local8));
};
}
public function checkKeysDown(_arg1:KeyboardEvent):void{
keyArray[_arg1.keyCode][1] = true;
if (controles == true){
if (((isKeyDown(38)) || (isKeyDown(87)))){
if ((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((up == false)))) && ((nombreSauts < maxSauts)))){
this.dauphin.saute.gotoAndPlay("saute2");
up = true;
MovieClip(root).sonsF("triple", false);
};
};
if (((isKeyDown(39)) || (isKeyDown(68)))){
if ((((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((right == false)))) && ((boost == true)))) && (((this.dauphin.y + 30) < eau)))){
this.dauphin.saute.gotoAndPlay("boost");
boost = false;
MovieClip(root).sonsF("boost", false);
};
right = true;
};
if (((isKeyDown(40)) || (isKeyDown(83)))){
if ((((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((down == false)))) && ((peutPlonger == true)))) && (((this.dauphin.y + 40) < eau)))){
this.dauphin.saute.gotoAndPlay("plonge");
peutPlonger = false;
plongeFini = false;
MovieClip(root).sonsF("boost", false);
};
down = true;
};
if (((isKeyDown(32)) || (isKeyDown(13)))){
if (peutSonar == true){
spawnage("sonar", (this.dauphin.x + 50), this.dauphin.y);
peutSonar = false;
MovieClip(root).sonsF("sonar", false);
};
};
};
}
}
}//package StarSplash_NG_fla
Section 160
//MainTimeline (StarSplash_NG_fla.MainTimeline)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import com.newgrounds.components.*;
import flash.utils.*;
import mochi.as3.*;
import com.spilgames.api.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class MainTimeline extends MovieClip {
public var musique:String;
public var sceneMenu:MovieClip;
public var fondu:MovieClip;
public var urlStart:Number;
public var percent:Number;
public var __setPropDict:Dictionary;
public var xmlData:XML;
public var fadeFois;
public var i:int;
public var __id0_:APIConnector;
public var fadeFrames:uint;
public var preloader:MovieClip;
public var volumeValue:Number;
public var musicMC:musicMC_clip;
public var fadeFini:Boolean;
public var leMenu:ContextMenu;
public var snails:MovieClip;
public var mFade:String;
public var Star:Boolean;
public var sonMC:sonMC_clip;
public var LastDot:Number;
public var menuJeu:MovieClip;
public var domain:String;
public var maxVol:Number;
public var Hyves:Boolean;
public var qualitee:MovieClip;
public var mus_c:MovieClip;
public var urlEnd:Number;
public var pfixEnd:Number;
public var son_c:MovieClip;
public var Notice:MovieClip;
public var sons:String;
public var co_uk:Number;
public var snailsLogo:Boolean;
public var menuItem1:ContextMenuItem;
public var local:Boolean;
public var fade_i:Number;
public var _spilGamesServices:SpilGamesServices;
public var url:String;
public var lv:MovieClip;
public var point:String;
public var frameName:String;
public var fontList:Array;
public var Menu_c:MovieClip;
public var localMode:String;
public var devTexte:String;
public var com_cn:Number;
public var defaultItems:ContextMenuBuiltInItems;
public function MainTimeline(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 8, frame9, 10, frame11, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 19, frame20, 21, frame22, 29, frame30, 39, frame40, 50, frame51, 51, frame52);
}
public function preload(_arg1:Event):void{
var _local2:uint;
_local2 = 1;
while (_local2 < 9) {
this.preloader.BAR.bx[("b" + _local2)].gotoAndPlay((this.preloader.BAR.bx[("b" + _local2)].currentFrame + 1));
if (this.preloader.BAR.bx[("b" + _local2)].currentFrame == this.preloader.BAR.bx[("b" + _local2)].totalFrames){
this.preloader.BAR.bx[("b" + _local2)].gotoAndPlay(1);
};
_local2++;
};
percent = Math.floor(((this.loaderInfo.bytesLoaded * 100) / this.loaderInfo.bytesTotal));
if (percent > (this.preloader.BAR.currentFrame + 2)){
this.preloader.BAR.play();
} else {
this.preloader.BAR.gotoAndStop(percent);
};
if ((((percent >= 100)) && ((Star == false)))){
this.preloader.BAR.removeEventListener(Event.ENTER_FRAME, preload);
this.play();
} else {
if ((((percent >= 100)) && ((Star == true)))){
this.preloader.BAR.removeEventListener(Event.ENTER_FRAME, preload);
this.preloader.gotoAndPlay("fini");
};
};
}
public function handle_btnMoreGames(_arg1:String):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink(_arg1)), "_blank");
}
function __setProp___id0__Preloader_NG_1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.movieId = "17419:IPw2cYVD";
__id0_.debugMode = true;
__id0_.encryptionKey = "o1RsT3xR6TuqOntaJbJH915HPuJyCF2t";
__id0_.movieVersion = "";
__id0_.showConnectingPopup = true;
__id0_.useErrorPopup = true;
__id0_.useMedalPopup = true;
__id0_.useFakeSession = true;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function onServicesReady(_arg1:Event):void{
trace("SpilGamesServices connection ready");
trace(_spilGamesServices.isDomainAllowed());
}
function frame14(){
if (local == true){
this.Notice.visible = false;
} else {
urlStart = (url.indexOf("://") + 3);
urlEnd = url.indexOf("/", urlStart);
domain = url.substring(urlStart, urlEnd);
LastDot = (domain.lastIndexOf(".") - 1);
pfixEnd = (domain.lastIndexOf(".", LastDot) + 1);
domain = domain.substring(pfixEnd, domain.length);
if ((((domain == "snailsanimation.com")) || ((domain == "flashgamelicense.com")))){
this.Notice.visible = false;
this.play();
} else {
stop();
this.Notice.visible = true;
};
};
}
function frame16(){
stop();
}
function frame15(){
musique = "on";
sons = "on";
maxVol = 0.6;
volumeValue = 0;
fadeFois = 0;
fadeFini = false;
sonMC = new sonMC_clip();
this.addChild(sonMC);
musicMC = new musicMC_clip();
this.addChild(musicMC);
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkQuality);
}
function frame2(){
stop();
this.preloader.BAR.addEventListener(Event.ENTER_FRAME, preload);
}
function frame1(){
if ((((__setPropDict[__id0_] == undefined)) || (!((int(__setPropDict[__id0_]) == 1))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0__Preloader_NG_1();
};
xmlData = <LocalisedText><textItem identifier="PlayBtnMenu"><en_us>Play</en_us><en_uk>Play</en_uk><nl>Spelen</nl><fr>Jouer</fr><de>Spielen</de><es>Jugar</es><br>Jogar</br><pt>Jogar</pt><it>Gioca</it><se>Spela</se><pl>Graj</pl><ru>Играть</ru><id>Mainkan</id><ar>Play</ar><jp>Play</jp><cn>Play</cn><es_mx>Jugar</es_mx><es_ar>Jugar</es_ar></textItem><textItem identifier="MoreGamesBtnMenu"><en_us>More Games</en_us><en_uk>More Games</en_uk><nl>Meer spelletjes</nl><fr>Plus de jeux</fr><de>Mehr Spiele</de><es>Más juegos</es><br>Mais jogos</br><pt>Mais jogos</pt><it>Più giochi</it><se>Fler spel</se><pl>Wiecej gier</pl><ru>Другие игры</ru><id>Game Lainnya</id><ar>More Games</ar><jp>More Games</jp><cn>More Games</cn><es_mx>Más juegos</es_mx><es_ar>Más juegos</es_ar></textItem><textItem identifier="CreditsBtnMenu"><en_us>Credits</en_us><en_uk>Credits</en_uk><nl>De makers</nl><fr>Crédits</fr><de>Credits</de><es>Créditos</es><br>Créditos</br><pt>Créditos</pt><it>Riconoscimenti</it><se>Tacklista</se><pl>Autorzy</pl><ru>Авторы</ru><id>Kredit</id><ar>Credits</ar><jp>Credits</jp><cn>Credits</cn><es_mx>Créditos</es_mx><es_ar>Créditos</es_ar></textItem><textItem identifier="DevCredits"><en_us>Developer:</en_us><en_uk>Developer:</en_uk><nl>Ontwikkelaar:</nl><fr>Développeur :</fr><de>Entwickler:</de><es>Desarrollador:</es><br>Desenvolvedor:</br><pt>Programador:</pt><it>Sviluppatore </it><se>Utvecklare:</se><pl>Developer:</pl><ru>Разработчик:</ru><id>Pengembang:</id><ar>Developer:</ar><jp>Developer:</jp><cn>Developer:</cn><es_mx>Desarrollador:</es_mx><es_ar>Desarrollador:</es_ar></textItem><textItem identifier="SponsorCredits"><en_us>Sponsor:</en_us><en_uk>Sponsor:</en_uk><nl>Sponsor:</nl><fr>Sponsor :</fr><de>Sponsor:</de><es>Patrocinador:</es><br>Patrocinador:</br><pt>Patrocinador:</pt><it>Sponsor:</it><se>Sponsor:</se><pl>Sponsor:</pl><ru>Спонсор:</ru><id>Sponsor:</id><ar>Sponsor:</ar><jp>Sponsor:</jp><cn>Sponsor:</cn><es_mx>Patrocinador:</es_mx><es_ar>Auspiciante:</es_ar></textItem><textItem identifier="MusicCredits"><en_us>Music:</en_us><en_uk>Music:</en_uk><nl>Muziek:</nl><fr>Musique :</fr><de>Musik:</de><es>Música:</es><br>Música:</br><pt>Música:</pt><it>Musica:</it><se>Musik:</se><pl>Muzyka:</pl><ru>Музыка:</ru><id>Musik:</id><ar>Music:</ar><jp>Music:</jp><cn>Music:</cn><es_mx>Música:</es_mx><es_ar>Música:</es_ar></textItem><textItem identifier="SoundsCredits"><en_us>Sound FX:</en_us><en_uk>Sound FX:</en_uk><nl>Geluid:</nl><fr>Effets sonores :</fr><de>Soundeffekte:</de><es>Efectos sonido:</es><br>Efeitos sonoros:</br><pt>Efeitos sonoros:</pt><it>Effetti audio:</it><se>Ljudeffekter:</se><pl>Dzwieki FX:</pl><ru>Звук:</ru><id>Efek Suara:</id><ar>Sound FX:</ar><jp>Sound FX:</jp><cn>Sound FX:</cn><es_mx>Efectos de sonido:</es_mx><es_ar>Efectos de sonido:</es_ar></textItem><textItem identifier="BackBtnCredits"><en_us>Back</en_us><en_uk>Back</en_uk><nl>Terug</nl><fr>Retour</fr><de>Zurück</de><es>Atrás</es><br>Voltar</br><pt>Voltar</pt><it>Indietro</it><se>Tillbaka</se><pl>Powrót</pl><ru>Назад</ru><id>Kembali</id><ar>Back</ar><jp>Back</jp><cn>Back</cn><es_mx>Atrás</es_mx><es_ar>Atrás</es_ar></textItem><textItem identifier="LvPres"><en_us>Level [x]</en_us><en_uk>Level [x]</en_uk><nl>Level [x]</nl><fr>Niveau [x]</fr><de>Level [x]</de><es>Nivel [x]</es><br>Fase [x]</br><pt>Nível [x]</pt><it>Livello [x]</it><se>Nivå [x]</se><pl>Poziom [x]</pl><ru>Уровень [x]</ru><id>Level [x]</id><ar>Level [x]</ar><jp>Level [x]</jp><cn>Level [x]</cn><es_mx>Nivel [x]</es_mx><es_ar>Nivel [x]</es_ar></textItem><textItem identifier="StarsPres"><en_us>Collect [x] stars</en_us><en_uk>Collect [x] stars</en_uk><nl>Verzamel [x] sterren</nl><fr>Collecte [x] étoiles</fr><de>Sammle [x] Sterne</de><es>Recoge [x] estrellas</es><br>Pegue [x] estrelas</br><pt>Apanha [x] estrelas</pt><it>Prendi [x] stelle</it><se>Samla [x] stjärnor</se><pl>Zbierz [x] gwiazdek</pl><ru>Собери [x] звезд</ru><id>Kumpulkan [x] bintang</id><ar>Collect [x] stars</ar><jp>Collect [x] stars</jp><cn>Collect [x] stars</cn><es_mx>Recoge [x] estrellas</es_mx><es_ar>Juntá [x] estrellas</es_ar></textItem><textItem identifier="MovesPres"><en_us>Acrobatics</en_us><en_uk>Acrobatics</en_uk><nl>Acrobatiek</nl><fr>Acrobaties</fr><de>Akrobatik</de><es>Movimientos</es><br>Truques</br><pt>Truques</pt><it>Acrobazie</it><se>Akrobatik</se><pl>Akrobacje</pl><ru>Акробатика</ru><id>Akrobatik</id><ar>Acrobatics</ar><jp>Acrobatics</jp><cn>Acrobatics</cn><es_mx>Acrobacias</es_mx><es_ar>Acrobacias</es_ar></textItem><textItem identifier="WaterPres"><en_us>In the water:</en_us><en_uk>In the water:</en_uk><nl>Waterstunts:</nl><fr>Dans l'eau :</fr><de>Wasserkunststücke:</de><es>Acrobacias acuáticas:</es><br>Acrobacias aquáticas:</br><pt>Acrobacias na água:</pt><it>Acrobazie in acqua:</it><se>Vattentrick:</se><pl>Triki w wodzie:</pl><ru>Трюки в воде:</ru><id>Pertunjukan air:</id><ar>In the water:</ar><jp>In the water:</jp><cn>In the water:</cn><es_mx>Proezas acuáticas:</es_mx><es_ar>Acrobacias acuáticas:</es_ar></textItem><textItem identifier="Air1Pres"><en_us>In the air, after a jump:</en_us><en_uk>In the air, after a jump:</en_uk><nl>Luchtstunts:</nl><fr>Dans les airs, après un saut:</fr><de>Luftkunststücke:</de><es>Acrobacias aéreas:</es><br>Acrobacias aéreas:</br><pt>Acrobacias no ar:</pt><it>Acrobazie in aria:</it><se>Lufttrick:</se><pl>Triki w powietrzu:</pl><ru>Трюки в воздухе:</ru><id>Pertunjukan udara:</id><ar>In the air, after a jump:</ar><jp>In the air, after a jump:</jp><cn>In the air, after a jump:</cn><es_mx>Proezas aéreas:</es_mx><es_ar>Acrobacias aéreas:</es_ar></textItem><textItem identifier="Air2Pres"><en_us>In the air, after a jump (more):</en_us><en_uk>In the air, after a jump (more):</en_uk><nl>Luchtstunts:</nl><fr>Dans les airs, après un saut: (suite):</fr><de>Luftkunststücke:</de><es>Acrobacias aéreas:</es><br>Acrobacias aéreas:</br><pt>Acrobacias no ar:</pt><it>Acrobazie in aria:</it><se>Lufttrick:</se><pl>Triki w powietrzu:</pl><ru>Трюки в воздухе:</ru><id>Pertunjukan udara:</id><ar>In the air, after a jump (more):</ar><jp>In the air, after a jump (more):</jp><cn>In the air, after a jump (more):</cn><es_mx>Proezas aéreas:</es_mx><es_ar>Acrobacias aéreas:</es_ar></textItem><textItem identifier="AnyPres"><en_us>In any situation:</en_us><en_uk>In any situation:</en_uk><nl>Stunts:</nl><fr>En tout temps :</fr><de>Kunststücke:</de><es>Acrobacias:</es><br>Acrobacias:</br><pt>Acrobacias:</pt><it>Acrobazie:</it><se>Trick:</se><pl>Triki:</pl><ru>Трюки:</ru><id>Pertunjukan:</id><ar>In any situation:</ar><jp>In any situation:</jp><cn>In any situation:</cn><es_mx>Proezas:</es_mx><es_ar>Movimientos:</es_ar></textItem><textItem identifier="Move1Pres"><en_us>Swim</en_us><en_uk>Swim</en_uk><nl>Zwemmen</nl><fr>Nager</fr><de>Schwimmen</de><es>Nadar</es><br>Nadar</br><pt>Nadar</pt><it>Nuota</it><se>Simma</se><pl>Pływanie</pl><ru>Плыть</ru><id>Berenang</id><ar>Swim</ar><jp>Swim</jp><cn>Swim</cn><es_mx>Nadar</es_mx><es_ar>Nadar</es_ar></textItem><textItem identifier="Move2Pres"><en_us>Double Jump</en_us><en_uk>Double Jump</en_uk><nl>Dubbele sprong</nl><fr>Double saut</fr><de>Doppelsprung</de><es>Salto doble</es><br>Pulo Duplo</br><pt>Duplo Salto</pt><it>Doppio salto</it><se>Dubbelhopp</se><pl>Podwójny skok</pl><ru>Двойной прыжок</ru><id>Lompat Ganda</id><ar>Double Jump</ar><jp>Double Jump</jp><cn>Double Jump</cn><es_mx>Doble salto</es_mx><es_ar>Salto doble</es_ar></textItem><textItem identifier="Move3Pres"><en_us>Dash</en_us><en_uk>Dash</en_uk><nl>Sprint</nl><fr>Impulsion</fr><de>Blitzsprung</de><es>Sprint</es><br>Impulso</br><pt>Sprint</pt><it>Sprint</it><se>Rusa</se><pl>Zryw w przód</pl><ru>Рывок</ru><id>Menerjang</id><ar>Dash</ar><jp>Dash</jp><cn>Dash</cn><es_mx>Arremeter</es_mx><es_ar>Embestida</es_ar></textItem><textItem identifier="Move4Pres"><en_us>Dive</en_us><en_uk>Dive</en_uk><nl>Duik</nl><fr>Plongeon</fr><de>Tauchen</de><es>Buceo</es><br>Mergulho</br><pt>Mergulho</pt><it>Tuffo</it><se>Dyka</se><pl>Nurkowanie</pl><ru>Нырок</ru><id>Menyelam</id><ar>Dive</ar><jp>Dive</jp><cn>Dive</cn><es_mx>Sumergirse</es_mx><es_ar>Bucear</es_ar></textItem><textItem identifier="Move5Pres"><en_us>Triple Jump</en_us><en_uk>Triple Jump</en_uk><nl>Driedubbele sprong</nl><fr>Triple saut</fr><de>Dreifachsprung</de><es>Salto triple</es><br>Pulo Triplo</br><pt>Triplo Salto</pt><it>Triplo salto</it><se>Trippelhopp</se><pl>Potrójny skok</pl><ru>Тройной прыжок</ru><id>Lompat Lipat Tiga</id><ar>Triple Jump</ar><jp>Triple Jump</jp><cn>Triple Jump</cn><es_mx>Triple salto</es_mx><es_ar>Salto triple</es_ar></textItem><textItem identifier="Move6Pres"><en_us>Dead Leaf</en_us><en_uk>Dead Leaf</en_uk><nl>Zweefvlucht</nl><fr>Feuille morte</fr><de>Gleiten</de><es>Planeo</es><br>Planeio</br><pt>Planar</pt><it>Planata</it><se>Glidhopp</se><pl>Slizg</pl><ru>Парение</ru><id>Melayang</id><ar>Dead Leaf</ar><jp>Dead leaf</jp><cn>Dead Leaf</cn><es_mx>Planear</es_mx><es_ar>Planear</es_ar></textItem><textItem identifier="Move7Pres"><en_us>Rounded Dive</en_us><en_uk>Rounded Dive</en_uk><nl>Aflopende duik</nl><fr>Plongeon arrondi</fr><de>Rundsprung</de><es>Buceo en círculo</es><br>Cambalhota</br><pt>Mortal</pt><it>Tuffo arrotondato</it><se>Dyka i båge</se><pl>Nurkowanie po okregu</pl><ru>Плавный нырок</ru><id>Putaran Menyelam</id><ar>Rounded Dive</ar><jp>Rounded Dive</jp><cn>Rounded Dive</cn><es_mx>Inmersión curva</es_mx><es_ar>Inmersión curva</es_ar></textItem><textItem identifier="Move8Pres"><en_us>Sonar</en_us><en_uk>Sonar</en_uk><nl>Sonar</nl><fr>Sonar</fr><de>Sonar</de><es>Sónar</es><br>Sonar</br><pt>Sonar</pt><it>Onda sonora</it><se>Ekolod</se><pl>Sonar</pl><ru>Сонар</ru><id>Sonar</id><ar>Sonar</ar><jp>Sonar</jp><cn>Sonar</cn><es_mx>Sónar</es_mx><es_ar>Sonar</es_ar></textItem><textItem identifier="Move1Desc"><en_us>Use the arrow keys to swim. If you swim to the surface, you'll automatically jump.</en_us><en_uk>Use the arrow keys to swim. If you swim to the surface, you will automatically jump.</en_uk><nl>Gebruik de pijltjestoetsen om te zwemmen. Als je naar boven zwemt, spring je vanzelf.</nl><fr>Utilise les flèches directionnelles pour nager. Si tu montes à la surface, tu sauteras automatiquement.</fr><de>Benutze die Pfeiltasten zum Schwimmen. Wenn du an die Oberfläche schwimmst, springst du automatisch.</de><es>Utiliza las teclas de flecha para nadar. Si nadas hacia la superficie, saltarás automáticamente.</es><br>Use as teclas de direção para nadar. Quando você toca na superfície, saltará automaticamente.</br><pt>Usa as setas para nadar. Se chegares à superfície, saltarás automaticamente.</pt><it>Usa i tasti freccia per nuotare. Se nuoti in superficie salterai automaticamente.</it><se>Simma med hjälp av piltangenterna. Om du simmar till ytan hoppar du automatiskt.</se><pl>Użyj klawiszy strzałek, aby pływać. Jeśli płyniesz w kierunku powierzchni, automatycznie wykonasz skok.</pl><ru>Плыви, используя стрелки. Подплыв к поверхности, ты автоматически прыгнешь.</ru><id>Gunakan tombol-tombol bertanda panah untuk berenang. Jika kamu berenang ke permukaan, kamu akan secara otomatis melompat.</id><ar>Use the arrow keys to swim. If you swim to the surface, you'll automatically jump.</ar><jp>Use the arrow keys to swim. If you swim to the surface, you'll automatically jump.</jp><cn>Use the arrow keys to swim. If you swim to the surface, you'll automatically jump.</cn><es_mx>Usa las teclas direccionales para nadar. Si nadas en la superficie, saltarás automáticamente.</es_mx><es_ar>Usá las teclas de flecha para nadar. Si nadas hasta la superficie, vas a saltar automáticamente.</es_ar></textItem><textItem identifier="Move2Desc"><en_us>Press Up while in the air for a double jump.</en_us><en_uk>Press Up when airborne for a double jump.</en_uk><nl>Druk in de lucht op het pijltje omhoog voor een dubbele sprong.</nl><fr>Appuie sur la flèche du haut une fois en l'air pour faire un double saut.</fr><de>Drücke die Pfeiltaste nach oben für einen Doppelsprung.</de><es>Pulsa Arriba estando en el aire para dar un salto doble.</es><br>Pressione para cima para realizar um pulo duplo.</br><pt>Prime Cima no ar para executares um duplo salto.</pt><it>Premi Su mentre sei in aria per fare un doppio salto.</it><se>Tryck pil upp i luften för dubbelhopp.</se><pl>Naciśnij strzałkę w górę, kiedy będziesz w powietrzu, aby wykonać podwójny skok.</pl><ru>Находясь в воздухе, нажми стрелку вверх для двойного прыжка.</ru><id>Tekan Atas ketika di udara untuk melompat ganda.</id><ar>Press Up while in the air for a double jump.</ar><jp>Press Up while in the air for a double jump.</jp><cn>Press Up while in the air for a double jump.</cn><es_mx>Pulsa la tecla hacia arriba cuando estés en el aire para un salto doble.</es_mx><es_ar>Presioná Arriba en el aire para hacer un salto doble.</es_ar></textItem><textItem identifier="Move3Desc"><en_us>Press Right for a quick dash forward. </en_us><en_uk>Press Right for a quick dash forward. </en_uk><nl>Druk op het pijltje naar rechts voor een sprint.</nl><fr>Appuie sur la flèche de droite pour t'élancer rapidement en avant.</fr><de>Drücke die rechte Pfeiltaste für einen schnellen Blitzsprung nach vorn.</de><es>Pulsa Derecha para hacer un sprint rápido hacia adelante.</es><br>Pressione para direita para um impulso rápido. </br><pt>Prime Direita para um sprint rápido para a frente. </pt><it>Premi Destra per fare uno sprint veloce in avanti.</it><se>Tryck pil höger för att rusa framåt.</se><pl>Naciśnij strzałkę w prawo, aby wykonać szybki zryw w przód.</pl><ru>Нажми стрелку вправо для быстрого рывка вперед.</ru><id>Tekan Kanan untuk maju menerjang dengan cepat.</id><ar>Press Right for a quick dash forward. </ar><jp>Press Right for a quick dash forward. </jp><cn>Press Right for a quick dash forward. </cn><es_mx>Pulsa la tecla hacia la derecha para arremeter rápidamente.</es_mx><es_ar>Presioná Derecha para hacer un embestida rápida hacia delante.</es_ar></textItem><textItem identifier="Move4Desc"><en_us>Press Down for a vertical plunge into the water.</en_us><en_uk>Press Down for a vertical plunge into the water.</en_uk><nl>Druk op het pijltje omlaag voor een verticale duik in het water.</nl><fr>Appuie sur la flèche du bas pour faire un plongeon à la verticale.</fr><de>Drücke die Pfeiltaste nach unten, um senkrecht ins Wasser einzutauchen.</de><es>Pulsa Abajo para zambullirte en vertical en el agua.</es><br>Pressione para baixo para um mergulho vertical.</br><pt>Prime Baixo para um mergulho na vertical.</pt><it>Premi Giù per fare un tuffo verticale in acqua.</it><se>Tryck pil ned för ett lodrätt dyk ner i vattnet.</se><pl>Naciśnij strzałkę w dół, aby wykonać pionowy skok do wody.</pl><ru>Нажми стрелку вниз для вертикального нырка в воду.</ru><id>Tekan Bawah untuk sebuah terjun vertikal ke dalam air.</id><ar>Press Down for a vertical plunge into the water.</ar><jp>Press Down for a vertical plunge into the water.</jp><cn>Press Down for a vertical plunge into the water.</cn><es_mx>Pulsa la tecla hacia abajo para lograr sumergirte verticalmente.</es_mx><es_ar>Presioná abajo para una sumergida vertical en el agua.</es_ar></textItem><textItem identifier="Move5Desc"><en_us>Press Up twice while in the air for a triple jump.</en_us><en_uk>Press Up twice when airborne for a triple jump.</en_uk><nl>Druk in de lucht 2x op het pijltje omhoog voor een driedubbele sprong.</nl><fr>Une fois en l'air, appuie deux fois sur la flèche du haut pour un triple saut.</fr><de>Drücke zweimal die Pfeiltaste nach oben für einen Dreifachsprung.</de><es>Pulsa Arriba dos veces estando en el aire para dar un salto triple.</es><br>Pressione para cima duas vezes para realizar um pulo triplo.</br><pt>Prime Cima duas vezes no ar para executares um triplo salto.</pt><it>Premi due volte il tasto Su mentre sei in aria per fare un triplo salto.</it><se>Tryck pil upp två gånger i luften för ett trippelhopp.</se><pl>Naciśnij strzałkę w górę dwukrotnie, kiedy będziesz w powietrzu, aby wykonać potrójny skok.</pl><ru>Находясь в воздухе, нажми стрелку вверх дважды для тройного прыжка.</ru><id>Tekan Atas dua kali ketika di udara untuk sebuah lompat lipat tiga.</id><ar>Press Up twice while in the air for a triple jump.</ar><jp>Press Up twice while in the air for a triple jump.</jp><cn>Press Up twice while in the air for a triple jump.</cn><es_mx>Pulsa dos veces la tecla hacia arriba cuando estés en el aire para un triple salto.</es_mx><es_ar>Presioná Arriba dos veces en el aire para hacer un triple salto.</es_ar></textItem><textItem identifier="Move6Desc"><en_us>Press Right and then Up to glide.</en_us><en_uk>Press Right and then Up to glide.</en_uk><nl>Druk op het pijltje naar rechts en dan op omhoog voor een zweefvlucht.</nl><fr>Appuie sur la flèche de droite puis sur celle du haut pour réaliser ce saut.</fr><de>Drücke erst die rechte Pfeiltaste, dann die Pfeiltaste nach oben zum Gleiten.</de><es>Pulsa Derecha y Arriba para hacer un planeo.</es><br>Pressione para direita e depois para cima para realizar um planeio.</br><pt>Prime Direita e depois Cima para planares.</pt><it>Premi i tasti freccia Destra e poi Su per planare.</it><se>Tryck pil höger och sedan upp för att glidhoppa.</se><pl>Naciśnij strzałkę w prawo, a następnie strzałkę w górę, aby wykonać ślizg.</pl><ru>Нажми стрелку вправо, а затем вверх, чтобы выполнить парение.</ru><id>Tekan Kanan dan kemudian Atas untuk melayang.</id><ar>Press Right and then Up to glide.</ar><jp>Press Right and then Up to glide.</jp><cn>Press Right and then Up to glide.</cn><es_mx>Pulsa la tecla hacia la derecha y después hacia arriba para planear.</es_mx><es_ar>Presioná derecha y luego Arriba para planear.</es_ar></textItem><textItem identifier="Move7Desc"><en_us>Press Right and then Down for a rounded dive.</en_us><en_uk>Press Right and then Down for a rounded dive.</en_uk><nl>Druk op het pijltje naar rechts en dan op omlaag voor een aflopende duik.</nl><fr>Appuie sur la flèche de droite puis sur celle du bas pour faire une plongée arrondie.</fr><de>Drücke erst die rechte Pfeiltaste, dann die Pfeiltaste nach unten für einen Rundsprung.</de><es>Pulsa Derecha y Abajo para hacer un buceo en círculo.</es><br>Pressione para direita e depois para baixo para realizar uma cambalhota.</br><pt>Prime Direita e depois Baixo para executares um mortal.</pt><it>Premi i tasti freccia Destra e poi Giù per fare un tuffo arrotondato.</it><se>Tryck pil höger och sedan ned för att dyka i en båge. </se><pl>Naciśnij strzałkę w prawo, a następnie strzałkę w dół, aby wykonać nurkowanie po okręgu.</pl><ru>Нажми стрелку вправо, а затем вниз, чтобы выполнить плавный нырок.</ru><id>Tekan Kanan dan kemudian Bawah untuk sebuah putaran menyelam.</id><ar>Press Right and then Down for a rounded dive.</ar><jp>Press Right and then Down for a rounded dive.</jp><cn>Press Right and then Down for a rounded dive.</cn><es_mx>Pulsa la tecla hacia la derecha y después hacia abajo para dar una curva sumergirte.</es_mx><es_ar>Presioná derecha y luego abajo para una inmersión curva.</es_ar></textItem><textItem identifier="Move8Desc"><en_us>Press Space to shoot a sonar wave. Use it to catch special stars!</en_us><en_uk>Press Space to shoot a sonar wave. Use it to catch special stars!</en_uk><nl>Druk op de spatiebalk voor een sonargolf. Gebruik deze stunt om sterren te verzamelen!</nl><fr>Appuie sur Espace pour lancer une onde sonar. Utilise la pour collecter des étoiles spéciales!</fr><de>Drücke die Leertaste, um Schallwellen zu erzeugen. Benutze dieses Kunststück zum Sammeln von Sternen!</de><es>Pulsa Espacio para usar el sónar. Así podrás recoger estrellas.</es><br>Pressione Espaço para enviar uma onda de sonar. Use este truque para pegar as estrelas!</br><pt>Prime Espaço para enviares uma onda de sonar. Usa esta acrobacia para apanhares estrelas!</pt><it>Premi Spazio per un'onda sonora. Usa quest'acrobazia per prendere stelle!</it><se>Tryck mellanslag för en ekolodsvåg. Använd den för att samla stjärnor!</se><pl>Naciśnij spację, aby użyć fali sonaru. Wykorzystaj ten trik, aby zbierać gwiazdki!</pl><ru>Нажимай пробел, чтобы использовать ультразвук. Это поможет собирать звезды!</ru><id>Tekan Spasi untuk gelombang sonar. Gunakan untuk menangkap bintang khusus!</id><ar>Press Space to shoot a sonar wave. Use it to catch special stars!</ar><jp>Press Space to shoot a sonar wave. Use it to catch special stars!</jp><cn>Press Space to shoot a sonar wave. Use it to catch special stars!</cn><es_mx>Pulsa la barra espaciadora para enviar una onda sonora. ¡Usa esta proeza para recoger estrellas!</es_mx><es_ar>Presioná Espacio para una onda de sonar. ¡Usala para juntar estrellas!</es_ar></textItem><textItem identifier="PracticeBtn"><en_us>Practice</en_us><en_uk>Practice</en_uk><nl>Oefenen</nl><fr>Entraînement</fr><de>Üben</de><es>Practicar</es><br>Treinamento</br><pt>Treinar</pt><it>Fai pratica</it><se>Öva</se><pl>Trening</pl><ru>Тренировка</ru><id>Latihan</id><ar>Practice</ar><jp>Practice</jp><cn>Practice</cn><es_mx>Practicar</es_mx><es_ar>Practicar</es_ar></textItem><textItem identifier="ReadyBtn"><en_us>Ready!</en_us><en_uk>Ready!</en_uk><nl>Klaar!</nl><fr>Prêt !</fr><de>Fertig!</de><es>¡Listo!</es><br>Preparado!</br><pt>A postos!</pt><it>Pronti!</it><se>Redo!</se><pl>Gotów!</pl><ru>Начнем!</ru><id>Siap!</id><ar>Ready!</ar><jp>Ready!</jp><cn>Ready!</cn><es_mx>¡Listo!</es_mx><es_ar>¡Listo!</es_ar></textItem><textItem identifier="LvResult1"><en_us>Level [x] – result</en_us><en_uk>Level [x] – result</en_uk><nl>Level [x]</nl><fr>Niveau [x] - résultat</fr><de>Level [x]</de><es>Nivel [x]</es><br>Fase [x]</br><pt>Nível [x]</pt><it>Livello [x]</it><se>Nivå [x]</se><pl>Poziom [x]</pl><ru>Уровень [x]</ru><id>Level [x]</id><ar>Level [x] – result</ar><jp>Level [x] – result</jp><cn>Level [x] – result</cn><es_mx>Nivel [x]</es_mx><es_ar>Nivel [x]</es_ar></textItem><textItem identifier="LvResult2"><en_us>Level [x] - practice</en_us><en_uk>Level [x] - practice</en_uk><nl>Oefenlevel [x]</nl><fr>Entraînement du niveau [x]</fr><de>Level [x] üben</de><es>Nivel de práctica [x]</es><br>Você treinou a fase [X]</br><pt>Treinaste no nível [X]</pt><it>Livello di pratica [x]</it><se>Övningsnivå [x]</se><pl>Trening poziomu [x]</pl><ru>Уровень [x] – тренировка</ru><id>Latihan Level [x]</id><ar>Level [x] - practice</ar><jp>Level [x] - practice</jp><cn>Level [x] - practice</cn><es_mx>Nivel de práctica [x]</es_mx><es_ar>Nivel de práctica [x]</es_ar></textItem><textItem identifier="StarsResult"><en_us>Stars</en_us><en_uk>Stars</en_uk><nl>Sterren</nl><fr>Étoiles </fr><de>Sterne</de><es>Estrellas</es><br>Estrelas</br><pt>Estrelas</pt><it>Stelle</it><se>Stjärnor</se><pl>Gwiazdki</pl><ru>Звезд</ru><id>Bintang</id><ar>Stars</ar><jp>Stars</jp><cn>Stars</cn><es_mx>Estrellas</es_mx><es_ar>Estrellas</es_ar></textItem><textItem identifier="NeededResult"><en_us>Target</en_us><en_uk>Target</en_uk><nl>Doel</nl><fr>Cible</fr><de>Ziel</de><es>Objetivo</es><br>Meta</br><pt>Objectivo</pt><it>Obiettivo</it><se>Mål</se><pl>Cel</pl><ru>Цель</ru><id>Sasaran</id><ar>Target</ar><jp>Target</jp><cn>Target</cn><es_mx>Objetivo</es_mx><es_ar>Objetivo</es_ar></textItem><textItem identifier="CollectedResult"><en_us>Collected</en_us><en_uk>Collected</en_uk><nl>Verzameld</nl><fr>Collecté</fr><de>Gesammelt</de><es>Recogidas</es><br>Coletadas</br><pt>Apanhadas</pt><it>Prese</it><se>Samlade</se><pl>Zebrano</pl><ru>Собрано</ru><id>Terkumpul</id><ar>Collected</ar><jp>Collected</jp><cn>Collected</cn><es_mx>Recogidas</es_mx><es_ar>Recogidas</es_ar></textItem><textItem identifier="Passed"><en_us>SUCCESS!</en_us><en_uk>SUCCESS!</en_uk><nl>FANTASTISCH!</nl><fr>SUCCÈS!</fr><de>ERFOLG!</de><es>¡SUPERADO!</es><br>SUCESSO!</br><pt>SUCESSO!</pt><it>SUCCESSO!</it><se>JÄTTEBRA!</se><pl>SUKCES!</pl><ru>ХОРОШО!</ru><id>SUKSES!</id><ar>SUCCESS!</ar><jp>SUCCESS!</jp><cn>SUCCESS!</cn><es_mx>¡BRAVO!</es_mx><es_ar>¡ÉXITO!</es_ar></textItem><textItem identifier="Perfect"><en_us>PERFECT!</en_us><en_uk>PERFECT!</en_uk><nl>PERFECT!</nl><fr>PARFAIT!</fr><de>PERFEKT!</de><es>¡PERFECTO!</es><br>PERFEITO!</br><pt>PERFEITO!</pt><it>PERFETTO!</it><se>PERFEKT!</se><pl>DOSKONALE!</pl><ru>СУПЕР!</ru><id>SEMPURNA!</id><ar>PERFECT!</ar><jp>PERFECT!</jp><cn>PERFECT!</cn><es_mx>¡PERFECTO!</es_mx><es_ar>¡PERFECTO!</es_ar></textItem><textItem identifier="WellDone"><en_us>Well done!</en_us><en_uk>Well done!</en_uk><nl>Goed gedaan!</nl><fr>Bien joué!</fr><de>Gut gemacht!</de><es>¡Muy bien!</es><br>Muito bem!</br><pt>Muito bem!</pt><it>Ben fatto!</it><se>Bra gjort!</se><pl>Swietnie!</pl><ru>Неплохо!</ru><id>Bagus!</id><ar>Well done!</ar><jp>Well done!</jp><cn>Well done!</cn><es_mx>¡Bien hecho!</es_mx><es_ar>¡Bien hecho!</es_ar></textItem><textItem identifier="NeedPractice"><en_us>Practice some more…</en_us><en_uk>Practice a little more…</en_uk><nl>Nog even oefenen...</nl><fr>Entraîne-toi encore…</fr><de>Übe noch etwas mehr…</de><es>Practica algo más…</es><br>Treine um pouco mais...</br><pt>Treina mais um pouco…</pt><it>Fai un po' più di pratica...</it><se>Öva lite mer ...</se><pl>Jeszcze troche pocwicz...</pl><ru>Потренируйся еще...</ru><id>Latihan lagi…</id><ar>Practice some more…</ar><jp>Practice some more…</jp><cn>Practice some more…</cn><es_mx>Necesitas más práctica...</es_mx><es_ar>Practicá un poco más…</es_ar></textItem><textItem identifier="GameOver"><en_us>Game Over</en_us><en_uk>Game Over</en_uk><nl>Game over</nl><fr>Partie terminée</fr><de>Game over</de><es>Fin del juego</es><br>Acabou</br><pt>Acabou</pt><it>Gioco finito</it><se>Game over</se><pl>Koniec gry</pl><ru>Конец игры</ru><id>Game Tamat</id><ar>Game Over</ar><jp>Game Over</jp><cn>Game Over</cn><es_mx>Fin del juego</es_mx><es_ar>Fin del juego</es_ar></textItem><textItem identifier="EndGameBtn"><en_us>Quit</en_us><en_uk>Quit</en_uk><nl>Stoppen</nl><fr>Quitter</fr><de>Verlassen</de><es>Salir</es><br>Sair</br><pt>Sair</pt><it>Esci</it><se>Avsluta</se><pl>Zakoncz</pl><ru>Выход</ru><id>Berhenti</id><ar>Quit</ar><jp>Quit</jp><cn>Quit</cn><es_mx>Salir</es_mx><es_ar>Salir</es_ar></textItem><textItem identifier="EndGameDesc"><en_us>Submit your score/Go to the menu</en_us><en_uk>Submit your score/Go to the menu</en_uk><nl>Verzend je score en ga terug naar het menu.</nl><fr>Envoyer le score/Retourner au Menu.</fr><de>Trage deine Punkte ein und kehre zum Menü zurück.</de><es>Envía tu puntuación y vuelve al menú.</es><br>Envie sua pontuação e retorne para o menu.</br><pt>Envia a tua pontuação e volta para o menu.</pt><it>Invia il tuo punteggio e torna al menu.</it><se>Skicka din poäng och återvänd till menyn.</se><pl>Zapisz swój wynik i wróć do menu.</pl><ru>Сохранить счет и вернуться в меню.</ru><id>Kirim skormu dan kembali ke Menu.</id><ar>Submit your score/Go to the menu</ar><jp>Submit your score/Go to the menu</jp><cn>Submit your score/Go to the menu</cn><es_mx>Enviar tu puntaje y regresar al menú.</es_mx><es_ar>Envía tu puntaje y volvé al menú.</es_ar></textItem><textItem identifier="ContinueBtn"><en_us>Try Again</en_us><en_uk>Try Again</en_uk><nl>Opnieuw proberen</nl><fr>Réessayer</fr><de>Nochmal versuchen</de><es>Volver a intentarlo</es><br>Tente de novo</br><pt>Tenta outra vez</pt><it>Riprova</it><se>Försök igen</se><pl>Spróbuj ponownie</pl><ru>Еще раз</ru><id>Coba Lagi</id><ar>Try Again</ar><jp>Try Again</jp><cn>Try Again</cn><es_mx>Vuelve a intentarlo</es_mx><es_ar>Volvé a intentarlo</es_ar></textItem><textItem identifier="ContinueDesc"><en_us>This will reset your score.</en_us><en_uk>This will reset your score.</en_uk><nl>Hiermee wordt je score opnieuw ingesteld.</nl><fr>Cela remettra ton score à zéro.</fr><de>Hierdurch werden deine Punkte zurückgesetzt.</de><es>Tu puntuación se restablecerá.</es><br>Isso vai zerar sua pontuação.</br><pt>Isto vai reiniciar a tua pontuação.</pt><it>Questo azzererà il tuo punteggio.</it><se>Detta nollställer din poäng.</se><pl>To spowoduje zresetowanie twojego wyniku.</pl><ru>Твой результат будет стерт.</ru><id>Ini akan mereset skormu.</id><ar>This will reset your score.</ar><jp>This will reset your score.</jp><cn>This will reset your score.</cn><es_mx>Esto restablecerá tu puntaje.</es_mx><es_ar>Restablecerá tu puntaje.</es_ar></textItem><textItem identifier="EasyPassed"><en_us>Novice levels complete!</en_us><en_uk>Novice levels complete!</en_uk><nl>Beginnerslevels uitgespeeld!</nl><fr>Niveaux débutants réussis !</fr><de>Anfänger-Level beendet!</de><es>¡Niveles de principiante finalizados!</es><br>Fases de Iniciante concluídas!</br><pt>Níveis de principiante terminados!</pt><it>Livelli apprendista completi!</it><se>Nybörjarnivåer klarade!</se><pl>Ukonczono poziomy dla poczatkujacych!</pl><ru>Уровни для новичков пройдены!</ru><id>Level pemula selesai!</id><ar>Novice levels complete!</ar><jp>Novice levels complete!</jp><cn>Novice levels complete!</cn><es_mx>¡Niveles de novato completados!</es_mx><es_ar>¡Niveles de novato completados!</es_ar></textItem><textItem identifier="MediumPassed"><en_us>Intermediate levels complete!</en_us><en_uk>Intermediate levels complete!</en_uk><nl>Levels voor gevorderden voltooid!</nl><fr>Niveaux intermédiaires réussis !</fr><de>Fortgeschrittenen-Level beendet!</de><es>¡Niveles intermedios finalizados!</es><br>Fases de Intermédio concluídas!</br><pt>Níveis intermédios terminados!</pt><it>Livelli intermedi completi!</it><se>Medelsvåra nivåer klarade!</se><pl>Ukonczono poziomy dla sredniozaawansowanych!</pl><ru>Средние уровни пройдены!</ru><id>Level menengah selesai!</id><ar>Intermediate levels complete!</ar><jp>Intermediate levels complete!</jp><cn>Intermediate levels complete!</cn><es_mx>¡Niveles intermedios completados!</es_mx><es_ar>¡Niveles intermedios completados!</es_ar></textItem><textItem identifier="AdvancedPassed"><en_us>Advanced levels complete!</en_us><en_uk>Advanced levels complete!</en_uk><nl>Expertlevels voltooid!</nl><fr>Niveaux avancés réussis !</fr><de>Profi-Level beendet!</de><es>¡Niveles avanzados finalizados!</es><br>Fases de Avançado concluídas!</br><pt>Níveis avançados terminados!</pt><it>Livelli avanzati completi!</it><se>Avancerade nivåer klarade!</se><pl>Ukonczono poziomy dla zaawansowanych!</pl><ru>Сложные уровни пройдены!</ru><id>Level lanjut selesai!</id><ar>Advanced levels complete!</ar><jp>Advanced levels complete!</jp><cn>Advanced levels complete!</cn><es_mx>¡Niveles avanzados completados!</es_mx><es_ar>¡Niveles avanzados completados!</es_ar></textItem><textItem identifier="Congrats"><en_us>Congratulations!</en_us><en_uk>Congratulations!</en_uk><nl>Gefeliciteerd!</nl><fr>Félicitations !</fr><de>Glückwunsch!</de><es>¡Enhorabuena!</es><br>Parabéns!</br><pt>Parabéns!</pt><it>Complimenti!</it><se>Gratulerar!</se><pl>Gratulacje!</pl><ru>Поздравляем!</ru><id>Selamat!</id><ar>Congratulations!</ar><jp>Congratulations!</jp><cn>Congratulations!</cn><es_mx>¡Felicitaciones!</es_mx><es_ar>¡Felicitaciones!</es_ar></textItem><textItem identifier="GameCompleted"><en_us>Game complete!</en_us><en_uk>Game complete!</en_uk><nl>Spel uitgespeeld!</nl><fr>Jeu réussi !</fr><de>Spiel beendet!</de><es>¡Juego finalizado!</es><br>Você chegou ao final do jogo!</br><pt>Terminaste o jogo!</pt><it>Gioco completo!</it><se>Spelet klarat!</se><pl>Gra ukonczona!</pl><ru>Игра пройдена!</ru><id>Game selasai!</id><ar>Game complete!</ar><jp>Game complete!</jp><cn>Game complete!</cn><es_mx>¡Juego completado!</es_mx><es_ar>Nivel completado</es_ar></textItem><textItem identifier="FinalScore"><en_us>Final score</en_us><en_uk>Final score</en_uk><nl>Score</nl><fr>Score final</fr><de>Punkte</de><es>Puntuación</es><br>Pontuação</br><pt>Pontuação</pt><it>Punteggio</it><se>Poäng</se><pl>Wynik</pl><ru>Счет</ru><id>Skor</id><ar>Final score</ar><jp>Final score</jp><cn>Final score</cn><es_mx>Puntaje</es_mx><es_ar>Puntaje</es_ar></textItem><textItem identifier="FinalSubmit"><en_us>Submit</en_us><en_uk>Submit</en_uk><nl>Verzenden</nl><fr>Envoyer</fr><de>Eintragen</de><es>Enviar</es><br>Enviar</br><pt>Enviar</pt><it>Invia</it><se>Skicka</se><pl>Zapisz</pl><ru>Сохранить</ru><id>Kirim</id><ar>Submit</ar><jp>Submit</jp><cn>Submit</cn><es_mx>Enviar</es_mx><es_ar>Enviar</es_ar></textItem><textItem identifier="FinalPlayMore"><en_us>Play more skill games.</en_us><en_uk>Play more skill games.</en_uk><nl>Speel meer behendigheidsspelletjes.</nl><fr>Joue à plus de jeux d'adresse.</fr><de>Spiele mehr Geschicklichkeitsspiele.</de><es>Jugar a más juegos de habilidad.</es><br>Jogue mais jogos de perícia.</br><pt>Joga mais jogos de habilidade.</pt><it>Prova altri giochi di abilità.</it><se>Spela fler skicklighetsspel.</se><pl>Zagraj w więcej gier zręcznościowych.</pl><ru>Другие игры на ловкость</ru><id>Mainkan game keahlian lainnya.</id><ar>Play more skill games.</ar><jp>Play more skill games.</jp><cn>Play more skill games.</cn><es_mx>Juega más juegos de habilidad.</es_mx><es_ar>Jugar más juegos de habilidad.</es_ar></textItem><textItem identifier="FinalMenu"><en_us>Menu</en_us><en_uk>Menu</en_uk><nl>Menu</nl><fr>Menu</fr><de>Menü</de><es>Menú</es><br>Menu</br><pt>Menu</pt><it>Menu</it><se>Meny</se><pl>Menu</pl><ru>Меню</ru><id>Menu</id><ar>Menu</ar><jp>Menu</jp><cn>Menu</cn><es_mx>Menú</es_mx><es_ar>Menú</es_ar></textItem><textItem identifier="FinalPlayAgain"><en_us>Play Again</en_us><en_uk>Play Again</en_uk><nl>Opnieuw spelen</nl><fr>Rejouer</fr><de>Nochmal spielen</de><es>Volver a jugar</es><br>Jogar de novo</br><pt>Jogar outra vez</pt><it>Rigioca</it><se>Spela igen</se><pl>Zagraj ponownie</pl><ru>Еще раз</ru><id>Mainkan Lagi</id><ar>Play Again</ar><jp>Play Again</jp><cn>Play Again</cn><es_mx>Jugar de nuevo</es_mx><es_ar>Jugar de nuevo</es_ar></textItem><textItem identifier="MuteMusic"><en_us>Music</en_us><en_uk>Music</en_uk><nl>Muziek</nl><fr>Musique</fr><de>Musik</de><es>Música</es><br>Música</br><pt>Música</pt><it>Musica</it><se>Musik</se><pl>Muzyka</pl><ru>Музыка</ru><id>Musik</id><ar>Music</ar><jp>Music</jp><cn>Music</cn><es_mx>Música</es_mx><es_ar>Música</es_ar></textItem><textItem identifier="MuteSounds"><en_us>Sound FX</en_us><en_uk>Sound FX</en_uk><nl>Geluid</nl><fr>Effets sonores</fr><de>Soundeffekte</de><es>Efectos sonido</es><br>Efeitos sonoros</br><pt>Efeitos sonoros</pt><it>Effetti audio</it><se>Ljudeffekter</se><pl>Dźwięki FX</pl><ru>Звук</ru><id>Efek Suara</id><ar>Sound FX</ar><jp>Sound FX</jp><cn>Sound FX</cn><es_mx>Efectos de sonido</es_mx><es_ar>Efectos de sonido</es_ar></textItem><textItem identifier="Score"><en_us>SCORE</en_us><en_uk>SCORE</en_uk><nl>SCORE</nl><fr>SCORE</fr><de>PUNKTE</de><es>PUNTUACIÓN</es><br>PONTUAÇÃO</br><pt>PONTUAÇÃO</pt><it>PUNTEGGIO</it><se>POÄNG</se><pl>WYNIK</pl><ru>СЧЕТ
</ru><id>SKOR</id><ar>SCORE</ar><jp>SCORE</jp><cn>SCORE</cn><es_mx>PUNTAJE</es_mx><es_ar>PUNTAJE</es_ar></textItem><textItem identifier="Stars"><en_us>STARS</en_us><en_uk>STARS</en_uk><nl>STERREN</nl><fr>ÉTOILES</fr><de>STERNE</de><es>ESTRELLAS</es><br>ESTRELAS</br><pt>ESTRELAS</pt><it>STELLE</it><se>STJÄRNOR</se><pl>GWIAZDKI</pl><ru>ЗВЕЗД</ru><id>BINTANG</id><ar>STARS</ar><jp>STARS</jp><cn>STARS</cn><es_mx>ESTRELLAS</es_mx><es_ar>ESTRELLAS</es_ar></textItem></LocalisedText>
;
SpilGame.importXMLv2(xmlData);
trace("Language Data Succesfully included");
fontList = Font.enumerateFonts();
i = 0;
while (i < fontList.length) {
trace(fontList[i].fontName);
i++;
};
Languages.initialize();
Languages.getLanguage("ru").forceFont = "Arial Black";
Languages.getLanguage("ru").embedFonts = true;
SpilGame.initialize("Star_Splash", PortalGroup.GIRL, "Star-Splash.html", this, true);
Hyves = false;
_spilGamesServices = SpilGamesServices.getInstance();
_spilGamesServices.addEventListener("servicesReady", onServicesReady);
_spilGamesServices.addEventListener("servicesFailed", onServicesFailed);
_spilGamesServices.connect(this);
localMode = Capabilities.playerType;
if (localMode == "StandAlone"){
stage.showDefaultContextMenu = false;
fscommand("allowscale", "true");
fscommand("trapallkeys", "true");
};
MyGlobal.langue = Capabilities.language;
chLangue();
leMenu = new ContextMenu();
leMenu.hideBuiltInItems();
defaultItems = leMenu.builtInItems;
defaultItems.quality = true;
menuItem1 = new ContextMenuItem(devTexte);
menuItem1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, devSite);
leMenu.customItems.push(menuItem1);
this.contextMenu = leMenu;
url = this.loaderInfo.url;
urlStart = (url.indexOf("://") + 3);
urlEnd = url.indexOf("/", urlStart);
domain = url.substring(urlStart, urlEnd);
co_uk = domain.lastIndexOf(".co.uk");
com_cn = domain.lastIndexOf(".com.cn");
if (co_uk != -1){
point = ".co.uk";
} else {
if (com_cn != -1){
point = ".com.cn";
} else {
point = ".";
};
};
LastDot = (domain.lastIndexOf(point) - 1);
pfixEnd = (domain.lastIndexOf(".", LastDot) + 1);
domain = domain.substring(pfixEnd, domain.length);
trace(("DOMAIN = " + domain));
snailsLogo = true;
if ((((((((((((domain == "agame.com")) || ((domain == "xiaoyouxi.cn")))) || ((domain == "game.com.cn")))) || ((domain == "game.asia")))) || ((domain == "spilgames.com")))) || ((domain == "kongregate.com")))){
Star = false;
} else {
Star = true;
};
if ((((((((((domain == "agame.com")) || ((domain == "xiaoyouxi.cn")))) || ((domain == "game.com.cn")))) || ((domain == "game.asia")))) || ((domain == "spilgames.com")))){
snailsLogo = false;
} else {
snailsLogo = true;
};
}
function frame3(){
play();
}
function frame13(){
MochiBot.track(this, "5e453ea8");
if ((((((((((domain == "agame.com")) || ((domain == "xiaoyouxi.cn")))) || ((domain == "game.com.cn")))) || ((domain == "game.asia")))) || ((domain == "spilgames.com")))){
} else {
MochiServices.connect("4b24aa62b8efe4e5", this);
};
local = true;
frameName = "splash";
}
function frame9(){
if (Star == true){
this.preloader.removeChild(this.preloader.adBox);
};
if (Hyves == true){
this.preloader.hyves2.removeEventListener(MouseEvent.CLICK, this.preloader.clickMoreGames);
};
}
function frame22(){
stop();
if (frameName != "menu"){
frameName = "menu";
this.fondu.gotoAndPlay("fadeIn");
};
this.snails.addEventListener(MouseEvent.CLICK, clickSNL);
if (MovieClip(root).snailsLogo == true){
this.snails.mouseEnabled = true;
} else {
this.snails.mouseEnabled = false;
};
}
function frame20(){
stage.quality = "MEDIUM";
}
function frame11(){
stop();
gotoAndPlay("splash", "Splash");
}
public function quelleLangue():String{
trace(("Langue = " + SpilGame.currentLanguage.name));
return (SpilGame.currentLanguage.name);
}
function frame30(){
stop();
}
function frame40(){
stop();
if (frameName != "menu"){
frameName = "menu";
this.fondu.gotoAndPlay("fadeIn");
ScoreService.submitScore((MyGlobal.score * 100));
};
this.snails.addEventListener(MouseEvent.CLICK, clickSNL);
if (MovieClip(root).snailsLogo == true){
this.snails.mouseEnabled = true;
} else {
this.snails.mouseEnabled = false;
};
}
public function musicF(_arg1:String, _arg2:uint, _arg3:String){
var musFade:Function;
var fade = _arg1;
var frames = _arg2;
var toune = _arg3;
musFade = function (_arg1:Event):void{
if (mFade == "in"){
if ((volumeValue + fade_i) < maxVol){
volumeValue = (volumeValue + fade_i);
};
if ((volumeValue + fade_i) >= maxVol){
volumeValue = maxVol;
fadeFini = true;
};
} else {
if (mFade == "out"){
if ((volumeValue - fade_i) > 0){
volumeValue = (volumeValue - fade_i);
};
if ((volumeValue - fade_i) <= 0){
musicMC.Menu1_ch.stop();
musicMC.lvl1_ch.stop();
musicMC.lvl2_ch.stop();
musicMC.lvl3_ch.stop();
volumeValue = 0;
fadeFini = true;
};
};
};
if (musique == "on"){
musicMC.Menu1_tr.volume = volumeValue;
musicMC.Menu1_ch.soundTransform = musicMC.Menu1_tr;
musicMC.lvl1_tr.volume = volumeValue;
musicMC.lvl1_ch.soundTransform = musicMC.lvl1_tr;
musicMC.lvl2_tr.volume = volumeValue;
musicMC.lvl2_ch.soundTransform = musicMC.lvl2_tr;
musicMC.lvl3_tr.volume = volumeValue;
musicMC.lvl3_ch.soundTransform = musicMC.lvl3_tr;
};
fadeFois = (fadeFois + 1);
if (fadeFini == true){
removeEventListener(Event.ENTER_FRAME, musFade);
};
};
fadeFois = 0;
fade_i = (this.maxVol / frames);
fadeFini = false;
fadeFrames = frames;
mFade = fade;
if ((((mFade == "no")) || ((mFade == "in")))){
musicMC.gotoAndStop(toune);
};
if (mFade != "no"){
addEventListener(Event.ENTER_FRAME, musFade);
};
}
public function clickSNL(_arg1:Event=null):void{
navigateToURL(new URLRequest("http://www.snailsanimation.com"), "_blank");
}
function frame52(){
stop();
frameName = "jeu";
this.fondu.gotoAndPlay("fadeIn");
menuJeu.presTableau.nextPlace = "pres";
menuJeu.presTableau.gotoAndPlay("noir_in");
Menu_c = null;
}
function frame51(){
stop();
if (frameName != "menu"){
frameName = "menu";
};
}
public function checkQuality(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 81){
if (stage.quality == "MEDIUM"){
stage.quality = StageQuality.LOW;
this.qualitee.q_text.gotoAndPlay("low");
} else {
if (stage.quality == "LOW"){
stage.quality = StageQuality.BEST;
this.qualitee.q_text.gotoAndPlay("best");
} else {
if (stage.quality == "BEST"){
stage.quality = StageQuality.HIGH;
this.qualitee.q_text.gotoAndPlay("high");
} else {
if (stage.quality == "HIGH"){
stage.quality = StageQuality.MEDIUM;
this.qualitee.q_text.gotoAndPlay("medium");
};
};
};
};
};
}
public function devSite(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://www.snailsanimation.com"), "_blank");
}
public function sonsF(_arg1:String, _arg2:Boolean):void{
var _local3:uint;
var _local4:uint;
if (this.sons == "on"){
if (_arg2 == false){
this.sonMC[(_arg1 + "")].gotoAndPlay(2);
} else {
if (_arg2 == true){
_local3 = this.sonMC[(_arg1 + "")].totalFrames;
_local4 = (Math.ceil((Math.random() * (_local3 - 1))) + 1);
this.sonMC[(_arg1 + "")].gotoAndStop(_local4);
};
};
};
}
public function chLangue():void{
if (MyGlobal.langue == "fr"){
devTexte = "Jeu fait par Snails Animation - Visitez notre site!";
} else {
if (MyGlobal.langue == "en"){
devTexte = "Game made by Snails Animation - Visit our website!";
} else {
if (MyGlobal.langue == "es"){
devTexte = "Juego hecho por Snails Animation - ¡Visita nuestro sitio web!";
} else {
MyGlobal.langue = "en";
devTexte = "Game made by Snails Animation - Visit our website!";
};
};
};
}
public function quelTexte(_arg1:String):String{
trace(("Texte = " + SpilGame.getString(_arg1)));
return (SpilGame.getString(_arg1));
}
public function onServicesFailed(_arg1:ErrorEvent):void{
trace("Submitter failed to load");
trace(_spilGamesServices.isDomainAllowed());
}
}
}//package StarSplash_NG_fla
Section 161
//meduse_clip_385 (StarSplash_NG_fla.meduse_clip_385)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class meduse_clip_385 extends MovieClip {
public var touche:Boolean;
public function meduse_clip_385(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
touche = false;
}
function frame2(){
stop();
touche = true;
}
}
}//package StarSplash_NG_fla
Section 162
//meduse_spring_388 (StarSplash_NG_fla.meduse_spring_388)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class meduse_spring_388 extends MovieClip {
public function meduse_spring_388(){
addFrameScript(0, frame1, 1, frame2, 14, frame15, 26, frame27);
}
function frame15(){
MovieClip(parent).touche = false;
}
function frame1(){
MovieClip(parent).touche = true;
}
function frame2(){
MovieClip(root).sonsF("boing", false);
}
function frame27(){
stop();
}
}
}//package StarSplash_NG_fla
Section 163
//menu_barre_243 (StarSplash_NG_fla.menu_barre_243)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_barre_243 extends MovieClip {
public var fond:MovieClip;
public function menu_barre_243(){
addFrameScript(0, frame1, 299, frame300);
}
function frame1(){
stop();
}
function frame300(){
stop();
}
}
}//package StarSplash_NG_fla
Section 164
//menu_barre_calculateur_249 (StarSplash_NG_fla.menu_barre_calculateur_249)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_barre_calculateur_249 extends MovieClip {
public var total:uint;
public var percent:Number;
public var nombre:uint;
public function menu_barre_calculateur_249(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
if (MovieClip(root).lv[("tableau" + MyGlobal.vague)] != null){
nombre = MovieClip(root).lv[("tableau" + MyGlobal.vague)].currentFrame;
total = MovieClip(root).lv.longTableau;
percent = Math.floor(((nombre / total) * 300));
MovieClip(parent).gotoAndStop(percent);
};
play();
}
function frame2(){
gotoAndPlay(1);
}
}
}//package StarSplash_NG_fla
Section 165
//menu_barre_fonds_244 (StarSplash_NG_fla.menu_barre_fonds_244)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_barre_fonds_244 extends MovieClip {
public function menu_barre_fonds_244(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 166
//menu_btnBack_153 (StarSplash_NG_fla.menu_btnBack_153)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnBack_153 extends MovieClip {
public var hit:MovieClip;
public function menu_btnBack_153(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 167
//menu_btnBackText_154 (StarSplash_NG_fla.menu_btnBackText_154)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnBackText_154 extends MovieClip {
public var __id9_:LocalizedTextField;
public function menu_btnBackText_154(){
__setProp___id9__menu_btnBackText_Layer1_1();
}
function __setProp___id9__menu_btnBackText_Layer1_1(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.text = "{BackBtnCredits}";
__id9_.textColor = 0xFFFFFF;
__id9_.textSize = 25;
__id9_.bold = false;
__id9_.disableWordwrap = false;
__id9_.embedFonts = true;
__id9_.font = "Porky's";
__id9_.hAlign = "center";
__id9_.multiline = false;
__id9_.vAlign = "middle";
__id9_.antiAliasType = "advanced";
__id9_.glowBlur = 3;
__id9_.glowColor = 0;
__id9_.useGlowFilter = false;
__id9_.glowQuality = 1;
__id9_.glowStrength = 5;
__id9_.gridFitType = "pixel";
__id9_.italic = false;
__id9_.selectable = false;
__id9_.underline = false;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 168
//menu_btnContinue_303 (StarSplash_NG_fla.menu_btnContinue_303)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnContinue_303 extends MovieClip {
public var hit:MovieClip;
public function menu_btnContinue_303(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 169
//menu_btnContinueText_304 (StarSplash_NG_fla.menu_btnContinueText_304)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnContinueText_304 extends MovieClip {
public var __id20_:LocalizedTextField;
public function menu_btnContinueText_304(){
__setProp___id20__menu_btnContinueText_Layer1_1();
}
function __setProp___id20__menu_btnContinueText_Layer1_1(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.text = "{ContinueBtn}";
__id20_.textColor = 0xFFFFFF;
__id20_.textSize = 22;
__id20_.bold = false;
__id20_.disableWordwrap = false;
__id20_.embedFonts = true;
__id20_.font = "Porky's";
__id20_.hAlign = "center";
__id20_.multiline = false;
__id20_.vAlign = "middle";
__id20_.antiAliasType = "advanced";
__id20_.glowBlur = 3;
__id20_.glowColor = 0;
__id20_.useGlowFilter = false;
__id20_.glowQuality = 1;
__id20_.glowStrength = 5;
__id20_.gridFitType = "pixel";
__id20_.italic = false;
__id20_.selectable = false;
__id20_.underline = false;
try {
__id20_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 170
//menu_btnCredits_128 (StarSplash_NG_fla.menu_btnCredits_128)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnCredits_128 extends MovieClip {
public var hit:MovieClip;
public function menu_btnCredits_128(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 171
//menu_btnCreditsText_130 (StarSplash_NG_fla.menu_btnCreditsText_130)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnCreditsText_130 extends MovieClip {
public var __id2_:LocalizedTextField;
public function menu_btnCreditsText_130(){
__setProp___id2__menu_btnCreditsText_Layer1_1();
}
function __setProp___id2__menu_btnCreditsText_Layer1_1(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.text = "{CreditsBtnMenu}";
__id2_.textColor = 0xFFFFFF;
__id2_.textSize = 22;
__id2_.bold = false;
__id2_.disableWordwrap = false;
__id2_.embedFonts = true;
__id2_.font = "Porky's";
__id2_.hAlign = "center";
__id2_.multiline = false;
__id2_.vAlign = "middle";
__id2_.antiAliasType = "advanced";
__id2_.glowBlur = 3;
__id2_.glowColor = 0;
__id2_.useGlowFilter = false;
__id2_.glowQuality = 1;
__id2_.glowStrength = 5;
__id2_.gridFitType = "pixel";
__id2_.italic = false;
__id2_.selectable = false;
__id2_.underline = false;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 172
//menu_btnEndGame_305 (StarSplash_NG_fla.menu_btnEndGame_305)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnEndGame_305 extends MovieClip {
public var hit:MovieClip;
public function menu_btnEndGame_305(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 173
//menu_btnEndGameText_306 (StarSplash_NG_fla.menu_btnEndGameText_306)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnEndGameText_306 extends MovieClip {
public var __id21_:LocalizedTextField;
public function menu_btnEndGameText_306(){
__setProp___id21__menu_btnEndGameText_Layer1_1();
}
function __setProp___id21__menu_btnEndGameText_Layer1_1(){
try {
__id21_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id21_.text = "{EndGameBtn}";
__id21_.textColor = 0xFFFFFF;
__id21_.textSize = 22;
__id21_.bold = false;
__id21_.disableWordwrap = false;
__id21_.embedFonts = true;
__id21_.font = "Porky's";
__id21_.hAlign = "center";
__id21_.multiline = false;
__id21_.vAlign = "middle";
__id21_.antiAliasType = "advanced";
__id21_.glowBlur = 3;
__id21_.glowColor = 0;
__id21_.useGlowFilter = false;
__id21_.glowQuality = 1;
__id21_.glowStrength = 5;
__id21_.gridFitType = "pixel";
__id21_.italic = false;
__id21_.selectable = false;
__id21_.underline = false;
try {
__id21_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 174
//menu_btnMenu_159 (StarSplash_NG_fla.menu_btnMenu_159)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnMenu_159 extends MovieClip {
public var hit:MovieClip;
public function menu_btnMenu_159(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 175
//menu_btnMenuText_160 (StarSplash_NG_fla.menu_btnMenuText_160)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnMenuText_160 extends MovieClip {
public var __id11_:LocalizedTextField;
public function menu_btnMenuText_160(){
__setProp___id11__menu_btnMenuText_Layer1_1();
}
function __setProp___id11__menu_btnMenuText_Layer1_1(){
try {
__id11_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id11_.text = "{FinalMenu}";
__id11_.textColor = 0xFFFFFF;
__id11_.textSize = 22;
__id11_.bold = false;
__id11_.disableWordwrap = false;
__id11_.embedFonts = true;
__id11_.font = "Porky's";
__id11_.hAlign = "center";
__id11_.multiline = false;
__id11_.vAlign = "middle";
__id11_.antiAliasType = "advanced";
__id11_.glowBlur = 3;
__id11_.glowColor = 0;
__id11_.useGlowFilter = false;
__id11_.glowQuality = 1;
__id11_.glowStrength = 5;
__id11_.gridFitType = "pixel";
__id11_.italic = false;
__id11_.selectable = false;
__id11_.underline = false;
try {
__id11_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 176
//menu_btnMoreGames_131 (StarSplash_NG_fla.menu_btnMoreGames_131)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnMoreGames_131 extends MovieClip {
public var t1:MovieClip;
public var hit:MovieClip;
public function menu_btnMoreGames_131(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 177
//menu_btnMoreGames2_158 (StarSplash_NG_fla.menu_btnMoreGames2_158)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnMoreGames2_158 extends MovieClip {
public var hit:MovieClip;
public function menu_btnMoreGames2_158(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 178
//menu_btnMoreGamesText_134 (StarSplash_NG_fla.menu_btnMoreGamesText_134)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnMoreGamesText_134 extends MovieClip {
public var t2:LocalizedTextField;
public function menu_btnMoreGamesText_134(){
__setProp_t2_menu_btnMoreGamesText_Layer1_1();
}
function __setProp_t2_menu_btnMoreGamesText_Layer1_1(){
try {
t2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t2.text = "{MoreGamesBtnMenu}";
t2.textColor = 0xFFFFFF;
t2.textSize = 22;
t2.bold = false;
t2.disableWordwrap = false;
t2.embedFonts = true;
t2.font = "Porky's";
t2.hAlign = "center";
t2.multiline = false;
t2.vAlign = "middle";
t2.antiAliasType = "advanced";
t2.glowBlur = 3;
t2.glowColor = 0;
t2.useGlowFilter = false;
t2.glowQuality = 1;
t2.glowStrength = 5;
t2.gridFitType = "pixel";
t2.italic = false;
t2.selectable = false;
t2.underline = false;
try {
t2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 179
//menu_btnPlay_121 (StarSplash_NG_fla.menu_btnPlay_121)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnPlay_121 extends MovieClip {
public var hit:MovieClip;
public function menu_btnPlay_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 180
//menu_btnPlayText_122 (StarSplash_NG_fla.menu_btnPlayText_122)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnPlayText_122 extends MovieClip {
public var texte:LocalizedTextField;
public function menu_btnPlayText_122(){
__setProp_texte_menu_btnPlayText_Layer1_1();
}
function __setProp_texte_menu_btnPlayText_Layer1_1(){
try {
texte["componentInspectorSetting"] = true;
} catch(e:Error) {
};
texte.text = "{PlayBtnMenu}";
texte.textColor = 0xFFFFFF;
texte.textSize = 25;
texte.bold = false;
texte.disableWordwrap = false;
texte.embedFonts = true;
texte.font = "Porky's";
texte.hAlign = "center";
texte.multiline = false;
texte.vAlign = "middle";
texte.antiAliasType = "advanced";
texte.glowBlur = 3;
texte.glowColor = 0;
texte.useGlowFilter = false;
texte.glowQuality = 1;
texte.glowStrength = 5;
texte.gridFitType = "pixel";
texte.italic = false;
texte.selectable = false;
texte.underline = false;
try {
texte["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 181
//menu_btnPractice_359 (StarSplash_NG_fla.menu_btnPractice_359)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnPractice_359 extends MovieClip {
public var hit:MovieClip;
public function menu_btnPractice_359(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 182
//menu_btnPracticeText_360 (StarSplash_NG_fla.menu_btnPracticeText_360)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnPracticeText_360 extends MovieClip {
public var __id38_:LocalizedTextField;
public function menu_btnPracticeText_360(){
__setProp___id38__menu_btnPracticeText_Layer1_1();
}
function __setProp___id38__menu_btnPracticeText_Layer1_1(){
try {
__id38_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id38_.text = "{PracticeBtn}";
__id38_.textColor = 0xFFFFFF;
__id38_.textSize = 22;
__id38_.bold = false;
__id38_.disableWordwrap = false;
__id38_.embedFonts = true;
__id38_.font = "Porky's";
__id38_.hAlign = "center";
__id38_.multiline = false;
__id38_.vAlign = "middle";
__id38_.antiAliasType = "advanced";
__id38_.glowBlur = 3;
__id38_.glowColor = 0;
__id38_.useGlowFilter = false;
__id38_.glowQuality = 1;
__id38_.glowStrength = 5;
__id38_.gridFitType = "pixel";
__id38_.italic = false;
__id38_.selectable = false;
__id38_.underline = false;
try {
__id38_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 183
//menu_btnReady_357 (StarSplash_NG_fla.menu_btnReady_357)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnReady_357 extends MovieClip {
public var hit:MovieClip;
public function menu_btnReady_357(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 184
//menu_btnReadyText_358 (StarSplash_NG_fla.menu_btnReadyText_358)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnReadyText_358 extends MovieClip {
public var __id37_:LocalizedTextField;
public function menu_btnReadyText_358(){
__setProp___id37__menu_btnReadyText_Layer1_1();
}
function __setProp___id37__menu_btnReadyText_Layer1_1(){
try {
__id37_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id37_.text = "{ReadyBtn}";
__id37_.textColor = 0xFFFFFF;
__id37_.textSize = 22;
__id37_.bold = false;
__id37_.disableWordwrap = false;
__id37_.embedFonts = true;
__id37_.font = "Porky's";
__id37_.hAlign = "center";
__id37_.multiline = false;
__id37_.vAlign = "middle";
__id37_.antiAliasType = "advanced";
__id37_.glowBlur = 3;
__id37_.glowColor = 0;
__id37_.useGlowFilter = false;
__id37_.glowQuality = 1;
__id37_.glowStrength = 5;
__id37_.gridFitType = "pixel";
__id37_.italic = false;
__id37_.selectable = false;
__id37_.underline = false;
try {
__id37_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 185
//menu_btnStart_82 (StarSplash_NG_fla.menu_btnStart_82)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnStart_82 extends MovieClip {
public var hit:MovieClip;
public function menu_btnStart_82(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 186
//menu_btnSubmit_163 (StarSplash_NG_fla.menu_btnSubmit_163)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnSubmit_163 extends MovieClip {
public var hit:MovieClip;
public function menu_btnSubmit_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 187
//menu_btnSubmitText_164 (StarSplash_NG_fla.menu_btnSubmitText_164)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnSubmitText_164 extends MovieClip {
public var __id13_:LocalizedTextField;
public function menu_btnSubmitText_164(){
__setProp___id13__menu_btnSubmitText_Layer1_1();
}
function __setProp___id13__menu_btnSubmitText_Layer1_1(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.text = "{FinalSubmit}";
__id13_.textColor = 0xFFFFFF;
__id13_.textSize = 25;
__id13_.bold = false;
__id13_.disableWordwrap = false;
__id13_.embedFonts = true;
__id13_.font = "Porky's";
__id13_.hAlign = "center";
__id13_.multiline = false;
__id13_.vAlign = "middle";
__id13_.antiAliasType = "advanced";
__id13_.glowBlur = 3;
__id13_.glowColor = 0;
__id13_.useGlowFilter = false;
__id13_.glowQuality = 1;
__id13_.glowStrength = 5;
__id13_.gridFitType = "pixel";
__id13_.italic = false;
__id13_.selectable = false;
__id13_.underline = false;
try {
__id13_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 188
//menu_btnTryAgain_161 (StarSplash_NG_fla.menu_btnTryAgain_161)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_btnTryAgain_161 extends MovieClip {
public var hit:MovieClip;
public function menu_btnTryAgain_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 189
//menu_btnTryAgainText_162 (StarSplash_NG_fla.menu_btnTryAgainText_162)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_btnTryAgainText_162 extends MovieClip {
public var __id12_:LocalizedTextField;
public function menu_btnTryAgainText_162(){
__setProp___id12__menu_btnTryAgainText_Layer1_1();
}
function __setProp___id12__menu_btnTryAgainText_Layer1_1(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.text = "{FinalPlayAgain}";
__id12_.textColor = 0xFFFFFF;
__id12_.textSize = 22;
__id12_.bold = false;
__id12_.disableWordwrap = false;
__id12_.embedFonts = true;
__id12_.font = "Porky's";
__id12_.hAlign = "center";
__id12_.multiline = false;
__id12_.vAlign = "middle";
__id12_.antiAliasType = "advanced";
__id12_.glowBlur = 3;
__id12_.glowColor = 0;
__id12_.useGlowFilter = false;
__id12_.glowQuality = 1;
__id12_.glowStrength = 5;
__id12_.gridFitType = "pixel";
__id12_.italic = false;
__id12_.selectable = false;
__id12_.underline = false;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 190
//menu_credits_146 (StarSplash_NG_fla.menu_credits_146)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_credits_146 extends MovieClip {
public var btnBack:MovieClip;
public var snails:MovieClip;
public function menu_credits_146(){
addFrameScript(0, frame1);
}
function frame1(){
this.snails.addEventListener(MouseEvent.CLICK, clickSNL);
if (MovieClip(root).snailsLogo == true){
this.snails.mouseEnabled = true;
} else {
this.snails.mouseEnabled = false;
};
}
public function clickSNL(_arg1:Event=null):void{
navigateToURL(new URLRequest("http://www.snailsanimation.com"), "_blank");
}
}
}//package StarSplash_NG_fla
Section 191
//menu_credits_c_145 (StarSplash_NG_fla.menu_credits_c_145)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_credits_c_145 extends MovieClip {
public var m:MovieClip;
public function menu_credits_c_145(){
addFrameScript(7, frame8, 15, frame16);
}
function frame16(){
stop();
MovieClip(parent).gotoAndPlay("menu");
}
function frame8(){
stop();
this.m.btnBack.addEventListener(MouseEvent.CLICK, clickBack);
}
public function clickBack(_arg1:Event=null):void{
this.m.btnBack.removeEventListener(MouseEvent.CLICK, clickBack);
this.play();
}
}
}//package StarSplash_NG_fla
Section 192
//menu_credits_snails_152 (StarSplash_NG_fla.menu_credits_snails_152)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_credits_snails_152 extends MovieClip {
public var hit:MovieClip;
public function menu_credits_snails_152(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 193
//menu_creditsDevText_147 (StarSplash_NG_fla.menu_creditsDevText_147)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_creditsDevText_147 extends MovieClip {
public var __id4_:LocalizedTextField;
public function menu_creditsDevText_147(){
__setProp___id4__menu_creditsDevText_Layer1_1();
}
function __setProp___id4__menu_creditsDevText_Layer1_1(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.text = "{DevCredits}";
__id4_.textColor = 0xFFFFFF;
__id4_.textSize = 22;
__id4_.bold = false;
__id4_.disableWordwrap = false;
__id4_.embedFonts = true;
__id4_.font = "Futura BdCn BT";
__id4_.hAlign = "left";
__id4_.multiline = false;
__id4_.vAlign = "middle";
__id4_.antiAliasType = "advanced";
__id4_.glowBlur = 3;
__id4_.glowColor = 0;
__id4_.useGlowFilter = false;
__id4_.glowQuality = 1;
__id4_.glowStrength = 5;
__id4_.gridFitType = "pixel";
__id4_.italic = false;
__id4_.selectable = false;
__id4_.underline = false;
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 194
//menu_creditsMusicText_149 (StarSplash_NG_fla.menu_creditsMusicText_149)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_creditsMusicText_149 extends MovieClip {
public var __id6_:LocalizedTextField;
public function menu_creditsMusicText_149(){
__setProp___id6__menu_creditsMusicText_Layer1_1();
}
function __setProp___id6__menu_creditsMusicText_Layer1_1(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.text = "{MusicCredits}";
__id6_.textColor = 0xFFFFFF;
__id6_.textSize = 22;
__id6_.bold = false;
__id6_.disableWordwrap = false;
__id6_.embedFonts = true;
__id6_.font = "Futura BdCn BT";
__id6_.hAlign = "left";
__id6_.multiline = false;
__id6_.vAlign = "middle";
__id6_.antiAliasType = "advanced";
__id6_.glowBlur = 3;
__id6_.glowColor = 0;
__id6_.useGlowFilter = false;
__id6_.glowQuality = 1;
__id6_.glowStrength = 5;
__id6_.gridFitType = "pixel";
__id6_.italic = false;
__id6_.selectable = false;
__id6_.underline = false;
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 195
//menu_creditsSoundsText_150 (StarSplash_NG_fla.menu_creditsSoundsText_150)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_creditsSoundsText_150 extends MovieClip {
public var __id7_:LocalizedTextField;
public function menu_creditsSoundsText_150(){
__setProp___id7__menu_creditsSoundsText_Layer1_1();
}
function __setProp___id7__menu_creditsSoundsText_Layer1_1(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.text = "{SoundsCredits}";
__id7_.textColor = 0xFFFFFF;
__id7_.textSize = 22;
__id7_.bold = false;
__id7_.disableWordwrap = false;
__id7_.embedFonts = true;
__id7_.font = "Futura BdCn BT";
__id7_.hAlign = "left";
__id7_.multiline = false;
__id7_.vAlign = "middle";
__id7_.antiAliasType = "advanced";
__id7_.glowBlur = 3;
__id7_.glowColor = 0;
__id7_.useGlowFilter = false;
__id7_.glowQuality = 1;
__id7_.glowStrength = 5;
__id7_.gridFitType = "pixel";
__id7_.italic = false;
__id7_.selectable = false;
__id7_.underline = false;
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 196
//menu_creditsSponsorText_148 (StarSplash_NG_fla.menu_creditsSponsorText_148)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_creditsSponsorText_148 extends MovieClip {
public var __id5_:LocalizedTextField;
public function menu_creditsSponsorText_148(){
__setProp___id5__menu_creditsSponsorText_Layer1_1();
}
function __setProp___id5__menu_creditsSponsorText_Layer1_1(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.text = "{SponsorCredits}";
__id5_.textColor = 0xFFFFFF;
__id5_.textSize = 22;
__id5_.bold = false;
__id5_.disableWordwrap = false;
__id5_.embedFonts = true;
__id5_.font = "Futura BdCn BT";
__id5_.hAlign = "left";
__id5_.multiline = false;
__id5_.vAlign = "middle";
__id5_.antiAliasType = "advanced";
__id5_.glowBlur = 3;
__id5_.glowColor = 0;
__id5_.useGlowFilter = false;
__id5_.glowQuality = 1;
__id5_.glowStrength = 5;
__id5_.gridFitType = "pixel";
__id5_.italic = false;
__id5_.selectable = false;
__id5_.underline = false;
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 197
//menu_creditsText_151 (StarSplash_NG_fla.menu_creditsText_151)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_creditsText_151 extends MovieClip {
public var __id8_:LocalizedTextField;
public function menu_creditsText_151(){
__setProp___id8__menu_creditsText_Layer1_1();
}
function __setProp___id8__menu_creditsText_Layer1_1(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.text = "{CreditsBtnMenu}";
__id8_.textColor = 0xFFFFFF;
__id8_.textSize = 30;
__id8_.bold = false;
__id8_.disableWordwrap = false;
__id8_.embedFonts = true;
__id8_.font = "Porky's";
__id8_.hAlign = "center";
__id8_.multiline = false;
__id8_.vAlign = "middle";
__id8_.antiAliasType = "advanced";
__id8_.glowBlur = 3;
__id8_.glowColor = 0;
__id8_.useGlowFilter = false;
__id8_.glowQuality = 1;
__id8_.glowStrength = 5;
__id8_.gridFitType = "pixel";
__id8_.italic = false;
__id8_.selectable = false;
__id8_.underline = false;
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 198
//menu_level_315 (StarSplash_NG_fla.menu_level_315)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_level_315 extends MovieClip {
public var collect:MovieClip;
public var i:uint;
public var vague:MovieClip;
public function menu_level_315(){
addFrameScript(0, frame1);
}
function frame1(){
i = (MyGlobal.vague + 1);
vague.texte.text = MovieClip(parent.parent.parent.parent).quelTexte("LvPres");
vague.texte.text = vague.texte.text.split("[x]").join(i);
collect.texte.text = MovieClip(parent.parent.parent.parent).quelTexte("StarsPres");
collect.texte.text = collect.texte.text.split("[x]").join(MovieClip(root).lv[("passeItems" + i)]);
}
}
}//package StarSplash_NG_fla
Section 199
//menu_level_starsText_317 (StarSplash_NG_fla.menu_level_starsText_317)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_level_starsText_317 extends MovieClip {
public var texte:LocalizedTextField;
public function menu_level_starsText_317(){
__setProp_texte_menu_level_starsText_Layer1_1();
}
function __setProp_texte_menu_level_starsText_Layer1_1(){
try {
texte["componentInspectorSetting"] = true;
} catch(e:Error) {
};
texte.text = "Collect 150 stars";
texte.textColor = 0xFFFF00;
texte.textSize = 22;
texte.bold = false;
texte.disableWordwrap = false;
texte.embedFonts = true;
texte.font = "Futura BdCn BT";
texte.hAlign = "center";
texte.multiline = false;
texte.vAlign = "middle";
texte.antiAliasType = "advanced";
texte.glowBlur = 3;
texte.glowColor = 0;
texte.useGlowFilter = false;
texte.glowQuality = 1;
texte.glowStrength = 5;
texte.gridFitType = "pixel";
texte.italic = false;
texte.selectable = false;
texte.underline = false;
try {
texte["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 200
//menu_levelText_316 (StarSplash_NG_fla.menu_levelText_316)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_levelText_316 extends MovieClip {
public var texte:LocalizedTextField;
public function menu_levelText_316(){
__setProp_texte_menu_levelText_Layer1_1();
}
function __setProp_texte_menu_levelText_Layer1_1(){
try {
texte["componentInspectorSetting"] = true;
} catch(e:Error) {
};
texte.text = "Level [x]";
texte.textColor = 0xFFFFFF;
texte.textSize = 25;
texte.bold = false;
texte.disableWordwrap = false;
texte.embedFonts = true;
texte.font = "Porky's";
texte.hAlign = "center";
texte.multiline = false;
texte.vAlign = "middle";
texte.antiAliasType = "advanced";
texte.glowBlur = 3;
texte.glowColor = 0;
texte.useGlowFilter = false;
texte.glowQuality = 1;
texte.glowStrength = 5;
texte.gridFitType = "pixel";
texte.italic = false;
texte.selectable = false;
texte.underline = false;
try {
texte["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 201
//menu_menu_116 (StarSplash_NG_fla.menu_menu_116)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_menu_116 extends MovieClip {
public var addLink:SimpleButton;
public var btnMoreGames:MovieClip;
public var btnCredits:MovieClip;
public var btnPlay:MovieClip;
public var nextPlace:String;
public function menu_menu_116(){
addFrameScript(0, frame1, 19, frame20, 26, frame27, 33, frame34, 45, frame46, 46, frame47, 52, frame53);
}
public function clickPlay(_arg1:Event=null):void{
this.btnPlay.removeEventListener(MouseEvent.CLICK, clickPlay);
this.btnMoreGames.removeEventListener(MouseEvent.CLICK, clickMoreGames);
this.addLink.removeEventListener(MouseEvent.CLICK, clickAddLink);
this.btnCredits.removeEventListener(MouseEvent.CLICK, clickCredits);
MovieClip(parent).snails.removeEventListener(MouseEvent.CLICK, MovieClip(parent).clickSNL);
this.btnPlay.mouseEnabled = false;
this.btnMoreGames.mouseEnabled = false;
this.btnCredits.mouseEnabled = false;
MovieClip(parent).fondu.nextPlace = "jeu";
MovieClip(parent).fondu.nextScene1 = "Jeu";
MovieClip(parent).fondu.gotoAndPlay("fadeOut");
}
function frame1(){
nextPlace = null;
}
function frame20(){
this.btnPlay.mouseEnabled = false;
}
function frame27(){
this.btnCredits.mouseEnabled = false;
}
function frame34(){
this.btnMoreGames.mouseEnabled = false;
}
public function clickAddLink(_arg1:Event=null):void{
navigateToURL(new URLRequest("http://gameportal.net"), "_blank");
}
function frame46(){
stop();
this.btnPlay.mouseEnabled = true;
this.btnMoreGames.mouseEnabled = true;
this.btnCredits.mouseEnabled = true;
this.btnPlay.addEventListener(MouseEvent.CLICK, clickPlay);
this.btnMoreGames.addEventListener(MouseEvent.CLICK, clickMoreGames);
this.btnCredits.addEventListener(MouseEvent.CLICK, clickCredits);
this.addLink.addEventListener(MouseEvent.CLICK, clickAddLink);
}
function frame47(){
this.btnPlay.removeEventListener(MouseEvent.CLICK, clickPlay);
this.btnMoreGames.removeEventListener(MouseEvent.CLICK, clickMoreGames);
this.btnCredits.removeEventListener(MouseEvent.CLICK, clickCredits);
this.btnPlay.mouseEnabled = false;
this.btnMoreGames.mouseEnabled = false;
this.btnCredits.mouseEnabled = false;
}
function frame53(){
stop();
MovieClip(parent).gotoAndPlay(nextPlace);
}
public function clickMoreGames(_arg1:Event=null):void{
MovieClip(parent).handle_btnMoreGames("MainScreen");
}
public function clickCredits(_arg1:Event=null):void{
this.btnPlay.removeEventListener(MouseEvent.CLICK, clickPlay);
this.btnMoreGames.removeEventListener(MouseEvent.CLICK, clickMoreGames);
this.addLink.removeEventListener(MouseEvent.CLICK, clickAddLink);
this.btnCredits.removeEventListener(MouseEvent.CLICK, clickCredits);
nextPlace = "credits";
this.play();
}
}
}//package StarSplash_NG_fla
Section 202
//menu_moves_bg_318 (StarSplash_NG_fla.menu_moves_bg_318)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_bg_318 extends MovieClip {
public var b2:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b6:MovieClip;
public var b7:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
public var b8:MovieClip;
public var t2:MovieClip;
public var t8:MovieClip;
public var t5:MovieClip;
public var i:uint;
public var j:uint;
public function menu_moves_bg_318(){
addFrameScript(0, frame1);
}
public function out(_arg1:Event=null):void{
_arg1.currentTarget.gotoAndStop(_arg1.currentTarget.couleur);
}
function frame1(){
stop();
j = (MyGlobal.vague + 1);
this.b1.vague = 1;
this.b2.vague = 2;
this.b3.vague = 3;
this.b4.vague = 4;
this.b8.vague = 6;
this.b5.vague = 8;
this.b6.vague = 18;
this.b7.vague = 21;
i = 1;
while (i < 9) {
this[("b" + i)].mouseChildren = false;
this[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, over);
this[("b" + i)].addEventListener(MouseEvent.MOUSE_OUT, out);
this[("b" + i)].couleur = 1;
if (this[("t" + i)] != null){
this[("t" + i)].visible = true;
};
if (this[("b" + i)].vague == j){
if (this[("t" + i)] != null){
this[("t" + i)].visible = true;
};
this[("b" + i)].couleur = 2;
this[("b" + i)].gotoAndStop(2);
} else {
if (this[("b" + i)].vague > j){
if (this[("t" + i)] != null){
this[("t" + i)].visible = false;
};
this[("b" + i)].visible = false;
};
};
i++;
};
}
public function over(_arg1:Event=null):void{
_arg1.currentTarget.gotoAndStop(3);
}
}
}//package StarSplash_NG_fla
Section 203
//menu_moves_bg_InWaterText_322 (StarSplash_NG_fla.menu_moves_bg_InWaterText_322)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_bg_InWaterText_322 extends MovieClip {
public var __id29_:LocalizedTextField;
public function menu_moves_bg_InWaterText_322(){
__setProp___id29__menu_moves_bg_InWaterText_Layer1_1();
}
function __setProp___id29__menu_moves_bg_InWaterText_Layer1_1(){
try {
__id29_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id29_.text = "{WaterPres}";
__id29_.textColor = 0xFFFFFF;
__id29_.textSize = 13;
__id29_.bold = false;
__id29_.disableWordwrap = false;
__id29_.embedFonts = true;
__id29_.font = "Futura BdCn BT";
__id29_.hAlign = "left";
__id29_.multiline = false;
__id29_.vAlign = "middle";
__id29_.antiAliasType = "advanced";
__id29_.glowBlur = 3;
__id29_.glowColor = 0;
__id29_.useGlowFilter = false;
__id29_.glowQuality = 1;
__id29_.glowStrength = 5;
__id29_.gridFitType = "pixel";
__id29_.italic = false;
__id29_.selectable = false;
__id29_.underline = false;
try {
__id29_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 204
//menu_moves_bg_titreText_356 (StarSplash_NG_fla.menu_moves_bg_titreText_356)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_bg_titreText_356 extends MovieClip {
public var __id36_:LocalizedTextField;
public function menu_moves_bg_titreText_356(){
__setProp___id36__menu_moves_bg_titreText_Layer1_1();
}
function __setProp___id36__menu_moves_bg_titreText_Layer1_1(){
try {
__id36_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id36_.text = "{MovesPres}";
__id36_.textColor = 0xFFFFFF;
__id36_.textSize = 25;
__id36_.bold = false;
__id36_.disableWordwrap = false;
__id36_.embedFonts = true;
__id36_.font = "Porky's";
__id36_.hAlign = "center";
__id36_.multiline = false;
__id36_.vAlign = "middle";
__id36_.antiAliasType = "advanced";
__id36_.glowBlur = 3;
__id36_.glowColor = 0;
__id36_.useGlowFilter = false;
__id36_.glowQuality = 1;
__id36_.glowStrength = 5;
__id36_.gridFitType = "pixel";
__id36_.italic = false;
__id36_.selectable = false;
__id36_.underline = false;
try {
__id36_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 205
//menu_moves_boost_336 (StarSplash_NG_fla.menu_moves_boost_336)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_boost_336 extends MovieClip {
public var texte:MovieClip;
public var b_up:MovieClip;
public var couleur:uint;
public function menu_moves_boost_336(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
texte.t1.textColor = 0xFFFFFF;
}
function frame2(){
stop();
texte.t1.textColor = 0xFFFF00;
}
}
}//package StarSplash_NG_fla
Section 206
//menu_moves_boostText_338 (StarSplash_NG_fla.menu_moves_boostText_338)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_boostText_338 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_boostText_338(){
__setProp_t1_menu_moves_boostText_Layer1_1();
}
function __setProp_t1_menu_moves_boostText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move3Pres}";
t1.textColor = 0xFFFFFF;
t1.textSize = 18;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Futura BdCn BT";
t1.hAlign = "left";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 207
//menu_moves_deadLeaf_345 (StarSplash_NG_fla.menu_moves_deadLeaf_345)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_deadLeaf_345 extends MovieClip {
public var texte:MovieClip;
public var b_up:MovieClip;
public var couleur:uint;
public function menu_moves_deadLeaf_345(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
texte.t1.textColor = 0xFFFFFF;
}
function frame2(){
stop();
texte.t1.textColor = 0xFFFF00;
}
}
}//package StarSplash_NG_fla
Section 208
//menu_moves_deadLeafText_347 (StarSplash_NG_fla.menu_moves_deadLeafText_347)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_deadLeafText_347 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_deadLeafText_347(){
__setProp_t1_menu_moves_deadLeafText_Layer1_1();
}
function __setProp_t1_menu_moves_deadLeafText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move6Pres}";
t1.textColor = 0xFFFFFF;
t1.textSize = 18;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Futura BdCn BT";
t1.hAlign = "left";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 209
//menu_moves_deadLeafText2_346 (StarSplash_NG_fla.menu_moves_deadLeafText2_346)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_deadLeafText2_346 extends MovieClip {
public var __id35_:LocalizedTextField;
public function menu_moves_deadLeafText2_346(){
__setProp___id35__menu_moves_deadLeafText2_Layer1_1();
}
function __setProp___id35__menu_moves_deadLeafText2_Layer1_1(){
try {
__id35_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id35_.text = "{Move6Desc}";
__id35_.textColor = 26367;
__id35_.textSize = 8;
__id35_.bold = true;
__id35_.disableWordwrap = false;
__id35_.embedFonts = true;
__id35_.font = "Arial";
__id35_.hAlign = "left";
__id35_.multiline = true;
__id35_.vAlign = "middle";
__id35_.antiAliasType = "advanced";
__id35_.glowBlur = 3;
__id35_.glowColor = 0;
__id35_.useGlowFilter = false;
__id35_.glowQuality = 1;
__id35_.glowStrength = 5;
__id35_.gridFitType = "pixel";
__id35_.italic = false;
__id35_.selectable = false;
__id35_.underline = false;
try {
__id35_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 210
//menu_moves_dive_339 (StarSplash_NG_fla.menu_moves_dive_339)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_dive_339 extends MovieClip {
public var texte:MovieClip;
public var b_up:MovieClip;
public var couleur:uint;
public function menu_moves_dive_339(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
texte.t1.textColor = 0xFFFFFF;
}
function frame2(){
stop();
texte.t1.textColor = 0xFFFF00;
}
}
}//package StarSplash_NG_fla
Section 211
//menu_moves_diveText_341 (StarSplash_NG_fla.menu_moves_diveText_341)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_diveText_341 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_diveText_341(){
__setProp_t1_menu_moves_diveText_Layer1_1();
}
function __setProp_t1_menu_moves_diveText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move4Pres}";
t1.textColor = 0xFFFFFF;
t1.textSize = 18;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Futura BdCn BT";
t1.hAlign = "left";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 212
//menu_moves_diveText2_340 (StarSplash_NG_fla.menu_moves_diveText2_340)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_diveText2_340 extends MovieClip {
public var __id33_:LocalizedTextField;
public function menu_moves_diveText2_340(){
__setProp___id33__menu_moves_diveText2_Layer1_1();
}
function __setProp___id33__menu_moves_diveText2_Layer1_1(){
try {
__id33_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id33_.text = "{Move4Desc}";
__id33_.textColor = 26367;
__id33_.textSize = 8;
__id33_.bold = true;
__id33_.disableWordwrap = false;
__id33_.embedFonts = true;
__id33_.font = "Arial";
__id33_.hAlign = "left";
__id33_.multiline = true;
__id33_.vAlign = "middle";
__id33_.antiAliasType = "advanced";
__id33_.glowBlur = 3;
__id33_.glowColor = 0;
__id33_.useGlowFilter = false;
__id33_.glowQuality = 1;
__id33_.glowStrength = 5;
__id33_.gridFitType = "pixel";
__id33_.italic = false;
__id33_.selectable = false;
__id33_.underline = false;
try {
__id33_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 213
//menu_moves_doubleBoostText2_337 (StarSplash_NG_fla.menu_moves_doubleBoostText2_337)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_doubleBoostText2_337 extends MovieClip {
public var __id32_:LocalizedTextField;
public function menu_moves_doubleBoostText2_337(){
__setProp___id32__menu_moves_doubleBoostText2_Layer1_1();
}
function __setProp___id32__menu_moves_doubleBoostText2_Layer1_1(){
try {
__id32_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id32_.text = "{Move3Desc}";
__id32_.textColor = 26367;
__id32_.textSize = 8;
__id32_.bold = true;
__id32_.disableWordwrap = false;
__id32_.embedFonts = true;
__id32_.font = "Arial";
__id32_.hAlign = "left";
__id32_.multiline = true;
__id32_.vAlign = "middle";
__id32_.antiAliasType = "advanced";
__id32_.glowBlur = 3;
__id32_.glowColor = 0;
__id32_.useGlowFilter = false;
__id32_.glowQuality = 1;
__id32_.glowStrength = 5;
__id32_.gridFitType = "pixel";
__id32_.italic = false;
__id32_.selectable = false;
__id32_.underline = false;
try {
__id32_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 214
//menu_moves_doubleJump_333 (StarSplash_NG_fla.menu_moves_doubleJump_333)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_doubleJump_333 extends MovieClip {
public var texte:MovieClip;
public var b_up:MovieClip;
public var couleur:uint;
public function menu_moves_doubleJump_333(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
texte.t1.textColor = 0xFFFFFF;
}
function frame2(){
stop();
texte.t1.textColor = 0xFFFF00;
}
}
}//package StarSplash_NG_fla
Section 215
//menu_moves_doubleJumpText_335 (StarSplash_NG_fla.menu_moves_doubleJumpText_335)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_doubleJumpText_335 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_doubleJumpText_335(){
__setProp_t1_menu_moves_doubleJumpText_Layer1_1();
}
function __setProp_t1_menu_moves_doubleJumpText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move2Pres}";
t1.textColor = 0xFFFFFF;
t1.textSize = 18;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Futura BdCn BT";
t1.hAlign = "left";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 216
//menu_moves_doubleJumpText2_334 (StarSplash_NG_fla.menu_moves_doubleJumpText2_334)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_doubleJumpText2_334 extends MovieClip {
public var __id31_:LocalizedTextField;
public function menu_moves_doubleJumpText2_334(){
__setProp___id31__menu_moves_doubleJumpText2_Layer1_1();
}
function __setProp___id31__menu_moves_doubleJumpText2_Layer1_1(){
try {
__id31_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id31_.text = "{Move2Desc}";
__id31_.textColor = 26367;
__id31_.textSize = 8;
__id31_.bold = true;
__id31_.disableWordwrap = false;
__id31_.embedFonts = true;
__id31_.font = "Arial";
__id31_.hAlign = "left";
__id31_.multiline = true;
__id31_.vAlign = "middle";
__id31_.antiAliasType = "advanced";
__id31_.glowBlur = 3;
__id31_.glowColor = 0;
__id31_.useGlowFilter = false;
__id31_.glowQuality = 1;
__id31_.glowStrength = 5;
__id31_.gridFitType = "pixel";
__id31_.italic = false;
__id31_.selectable = false;
__id31_.underline = false;
try {
__id31_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 217
//menu_moves_roundDive_348 (StarSplash_NG_fla.menu_moves_roundDive_348)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_roundDive_348 extends MovieClip {
public var texte:MovieClip;
public var b_up:MovieClip;
public var couleur:uint;
public function menu_moves_roundDive_348(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
texte.t1.textColor = 0xFFFFFF;
}
function frame2(){
stop();
texte.t1.textColor = 0xFFFF00;
}
}
}//package StarSplash_NG_fla
Section 218
//menu_moves_RoundDiveText_350 (StarSplash_NG_fla.menu_moves_RoundDiveText_350)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_RoundDiveText_350 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_RoundDiveText_350(){
__setProp_t1_menu_moves_RoundDiveText_Layer1_1();
}
function __setProp_t1_menu_moves_RoundDiveText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move7Pres}";
t1.textColor = 0xFFFFFF;
t1.textSize = 18;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Futura BdCn BT";
t1.hAlign = "left";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 219
//menu_moves_roundDiveText2_349 (StarSplash_NG_fla.menu_moves_roundDiveText2_349)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_roundDiveText2_349 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_roundDiveText2_349(){
addFrameScript(0, frame1);
__setProp_t1_menu_moves_roundDiveText2_Layer1_1();
}
function frame1(){
if (MovieClip(parent.parent.parent.parent.parent.parent).quelleLangue() == "de"){
this.t1.textSize = 6;
};
}
function __setProp_t1_menu_moves_roundDiveText2_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move7Desc}";
t1.textColor = 26367;
t1.textSize = 8;
t1.bold = true;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Arial";
t1.hAlign = "left";
t1.multiline = true;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 220
//menu_moves_sonar_351 (StarSplash_NG_fla.menu_moves_sonar_351)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_sonar_351 extends MovieClip {
public var texte:MovieClip;
public var b_up:MovieClip;
public var couleur:uint;
public function menu_moves_sonar_351(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
texte.t1.textColor = 0xFFFFFF;
}
function frame2(){
stop();
texte.t1.textColor = 0xFFFF00;
}
}
}//package StarSplash_NG_fla
Section 221
//menu_moves_sonarText_354 (StarSplash_NG_fla.menu_moves_sonarText_354)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_sonarText_354 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_sonarText_354(){
__setProp_t1_menu_moves_sonarText_Layer1_1();
}
function __setProp_t1_menu_moves_sonarText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move8Pres}";
t1.textColor = 0xFFFFFF;
t1.textSize = 18;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Futura BdCn BT";
t1.hAlign = "left";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 222
//menu_moves_sonarText2_353 (StarSplash_NG_fla.menu_moves_sonarText2_353)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_sonarText2_353 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_sonarText2_353(){
addFrameScript(0, frame1);
__setProp_t1_menu_moves_sonarText2_Layer1_1();
}
function __setProp_t1_menu_moves_sonarText2_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move8Desc}";
t1.textColor = 26367;
t1.textSize = 8;
t1.bold = true;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Arial";
t1.hAlign = "left";
t1.multiline = true;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
if (MovieClip(parent.parent.parent.parent.parent.parent).quelleLangue() == "nl"){
this.t1.textSize = 6;
} else {
if (MovieClip(parent.parent.parent.parent.parent.parent).quelleLangue() == "id"){
this.t1.textSize = 6;
};
};
}
}
}//package StarSplash_NG_fla
Section 223
//menu_moves_swim_323 (StarSplash_NG_fla.menu_moves_swim_323)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_swim_323 extends MovieClip {
public var texte:MovieClip;
public var b_down:MovieClip;
public var b_up:MovieClip;
public var b_left:MovieClip;
public var couleur:uint;
public var b_right:MovieClip;
public function menu_moves_swim_323(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
texte.t1.textColor = 0xFFFFFF;
}
function frame2(){
stop();
texte.t1.textColor = 0xFFFF00;
}
}
}//package StarSplash_NG_fla
Section 224
//menu_moves_swimText_329 (StarSplash_NG_fla.menu_moves_swimText_329)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_swimText_329 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_swimText_329(){
__setProp_t1_menu_moves_swimText_Layer1_1();
}
function __setProp_t1_menu_moves_swimText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move1Pres}";
t1.textColor = 0xFFFFFF;
t1.textSize = 20;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Futura BdCn BT";
t1.hAlign = "left";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 225
//menu_moves_swimText2_328 (StarSplash_NG_fla.menu_moves_swimText2_328)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_swimText2_328 extends MovieClip {
public var __id30_:LocalizedTextField;
public function menu_moves_swimText2_328(){
__setProp___id30__menu_moves_swimText2_Layer1_1();
}
function __setProp___id30__menu_moves_swimText2_Layer1_1(){
try {
__id30_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id30_.text = "{Move1Desc}";
__id30_.textColor = 26367;
__id30_.textSize = 8;
__id30_.bold = true;
__id30_.disableWordwrap = false;
__id30_.embedFonts = true;
__id30_.font = "Arial";
__id30_.hAlign = "left";
__id30_.multiline = true;
__id30_.vAlign = "middle";
__id30_.antiAliasType = "advanced";
__id30_.glowBlur = 3;
__id30_.glowColor = 0;
__id30_.useGlowFilter = false;
__id30_.glowQuality = 1;
__id30_.glowStrength = 5;
__id30_.gridFitType = "pixel";
__id30_.italic = false;
__id30_.selectable = false;
__id30_.underline = false;
try {
__id30_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 226
//menu_moves_tripleJump_342 (StarSplash_NG_fla.menu_moves_tripleJump_342)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_moves_tripleJump_342 extends MovieClip {
public var texte:MovieClip;
public var b_up:MovieClip;
public var couleur:uint;
public function menu_moves_tripleJump_342(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
texte.t1.textColor = 0xFFFFFF;
}
function frame2(){
stop();
texte.t1.textColor = 0xFFFF00;
}
}
}//package StarSplash_NG_fla
Section 227
//menu_moves_tripleJumpText_344 (StarSplash_NG_fla.menu_moves_tripleJumpText_344)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_tripleJumpText_344 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_moves_tripleJumpText_344(){
__setProp_t1_menu_moves_tripleJumpText_Layer1_1();
}
function __setProp_t1_menu_moves_tripleJumpText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Move5Pres}";
t1.textColor = 0xFFFFFF;
t1.textSize = 18;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Futura BdCn BT";
t1.hAlign = "left";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 228
//menu_moves_tripleJumpText2_343 (StarSplash_NG_fla.menu_moves_tripleJumpText2_343)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_moves_tripleJumpText2_343 extends MovieClip {
public var __id34_:LocalizedTextField;
public function menu_moves_tripleJumpText2_343(){
__setProp___id34__menu_moves_tripleJumpText2_Layer1_1();
}
function __setProp___id34__menu_moves_tripleJumpText2_Layer1_1(){
try {
__id34_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id34_.text = "{Move5Desc}";
__id34_.textColor = 26367;
__id34_.textSize = 8;
__id34_.bold = true;
__id34_.disableWordwrap = false;
__id34_.embedFonts = true;
__id34_.font = "Arial";
__id34_.hAlign = "left";
__id34_.multiline = true;
__id34_.vAlign = "middle";
__id34_.antiAliasType = "advanced";
__id34_.glowBlur = 3;
__id34_.glowColor = 0;
__id34_.useGlowFilter = false;
__id34_.glowQuality = 1;
__id34_.glowStrength = 5;
__id34_.gridFitType = "pixel";
__id34_.italic = false;
__id34_.selectable = false;
__id34_.underline = false;
try {
__id34_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 229
//menu_pres__277 (StarSplash_NG_fla.menu_pres__277)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres__277 extends MovieClip {
public function menu_pres__277(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 230
//menu_pres_C_c_273 (StarSplash_NG_fla.menu_pres_C_c_273)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_C_c_273 extends MovieClip {
public function menu_pres_C_c_273(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 231
//menu_pres_E_c_275 (StarSplash_NG_fla.menu_pres_E_c_275)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_E_c_275 extends MovieClip {
public function menu_pres_E_c_275(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 232
//menu_pres_F_c_289 (StarSplash_NG_fla.menu_pres_F_c_289)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_F_c_289 extends MovieClip {
public function menu_pres_F_c_289(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 233
//menu_pres_gameover_300 (StarSplash_NG_fla.menu_pres_gameover_300)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_gameover_300 extends MovieClip {
public var btnContinue:MovieClip;
public var btnEndGame:MovieClip;
public var nextPlace:String;
public function menu_pres_gameover_300(){
addFrameScript(1, frame2, 54, frame55, 58, frame59, 69, frame70, 74, frame75);
}
function frame70(){
MovieClip(root).frameName = null;
}
function frame75(){
stop();
MovieClip(parent.parent.parent.parent).btnMoreGames.removeEventListener(MouseEvent.CLICK, MovieClip(parent.parent.parent.parent).clickMoreGames);
MovieClip(root).gotoAndPlay("result", "Menu");
}
public function clickContinue(_arg1:Event=null):void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
this.btnEndGame.removeEventListener(MouseEvent.CLICK, clickEndGame);
this.btnContinue.removeEventListener(MouseEvent.CLICK, clickContinue);
nextPlace = "continue";
MyGlobal.score = 0;
MovieClip(root).menuJeu.score.text = "0.00";
MovieClip(root).lv.itemsCollectAll = 0;
this.play();
}
function frame2(){
MovieClip(root).sonsF("gameOver", false);
}
public function clickEndGame(_arg1:Event=null):void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
this.btnContinue.removeEventListener(MouseEvent.CLICK, clickContinue);
this.btnEndGame.removeEventListener(MouseEvent.CLICK, clickEndGame);
nextPlace = "menu";
this.play();
}
function frame55(){
stop();
this.btnEndGame.focusRect = false;
this.btnContinue.focusRect = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
this.btnContinue.addEventListener(MouseEvent.CLICK, clickContinue);
this.btnEndGame.addEventListener(MouseEvent.CLICK, clickEndGame);
}
function frame59(){
if (nextPlace == "continue"){
stop();
MovieClip(root).lv.pratique = true;
MovieClip(parent.parent).play();
} else {
play();
};
}
public function checkKeysDown(_arg1:KeyboardEvent):void{
if (((MovieClip(root).lv.isKeyDown(37)) || (MovieClip(root).lv.isKeyDown(65)))){
stage.focus = this.btnEndGame;
};
if (((MovieClip(root).lv.isKeyDown(39)) || (MovieClip(root).lv.isKeyDown(68)))){
stage.focus = this.btnContinue;
};
if (((MovieClip(root).lv.isKeyDown(32)) || (MovieClip(root).lv.isKeyDown(13)))){
if (stage.focus == this.btnEndGame){
clickEndGame();
} else {
if (stage.focus == this.btnContinue){
clickContinue();
};
};
};
}
}
}//package StarSplash_NG_fla
Section 234
//menu_pres_gameover_text_TEXT_302 (StarSplash_NG_fla.menu_pres_gameover_text_TEXT_302)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_pres_gameover_text_TEXT_302 extends MovieClip {
public var __id19_:LocalizedTextField;
public function menu_pres_gameover_text_TEXT_302(){
__setProp___id19__menu_pres_gameover_text_TEXT_Layer1_1();
}
function __setProp___id19__menu_pres_gameover_text_TEXT_Layer1_1(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.text = "{GameOver}";
__id19_.textColor = 0xFF0000;
__id19_.textSize = 65;
__id19_.bold = false;
__id19_.disableWordwrap = false;
__id19_.embedFonts = true;
__id19_.font = "Berlin Sans FB Demi";
__id19_.hAlign = "center";
__id19_.multiline = false;
__id19_.vAlign = "middle";
__id19_.antiAliasType = "advanced";
__id19_.glowBlur = 3;
__id19_.glowColor = 0;
__id19_.useGlowFilter = false;
__id19_.glowQuality = 1;
__id19_.glowStrength = 5;
__id19_.gridFitType = "pixel";
__id19_.italic = false;
__id19_.selectable = false;
__id19_.underline = false;
try {
__id19_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 235
//menu_pres_gameover_titext_307 (StarSplash_NG_fla.menu_pres_gameover_titext_307)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_pres_gameover_titext_307 extends MovieClip {
public var __id22_:LocalizedTextField;
public var __id23_:LocalizedTextField;
public function menu_pres_gameover_titext_307(){
__setProp___id22__menu_pres_gameover_titext_Layer2_1();
__setProp___id23__menu_pres_gameover_titext_Layer2_1();
}
function __setProp___id22__menu_pres_gameover_titext_Layer2_1(){
try {
__id22_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id22_.text = "{ContinueDesc}";
__id22_.textColor = 0xFFFFFF;
__id22_.textSize = 10;
__id22_.bold = true;
__id22_.disableWordwrap = false;
__id22_.embedFonts = true;
__id22_.font = "Arial";
__id22_.hAlign = "center";
__id22_.multiline = false;
__id22_.vAlign = "middle";
__id22_.antiAliasType = "advanced";
__id22_.glowBlur = 3;
__id22_.glowColor = 0;
__id22_.useGlowFilter = false;
__id22_.glowQuality = 1;
__id22_.glowStrength = 5;
__id22_.gridFitType = "pixel";
__id22_.italic = false;
__id22_.selectable = false;
__id22_.underline = false;
try {
__id22_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id23__menu_pres_gameover_titext_Layer2_1(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.text = "{EndGameDesc}";
__id23_.textColor = 0xFFFFFF;
__id23_.textSize = 10;
__id23_.bold = true;
__id23_.disableWordwrap = false;
__id23_.embedFonts = true;
__id23_.font = "Arial";
__id23_.hAlign = "center";
__id23_.multiline = false;
__id23_.vAlign = "middle";
__id23_.antiAliasType = "advanced";
__id23_.glowBlur = 3;
__id23_.glowColor = 0;
__id23_.useGlowFilter = false;
__id23_.glowQuality = 1;
__id23_.glowStrength = 5;
__id23_.gridFitType = "pixel";
__id23_.italic = false;
__id23_.selectable = false;
__id23_.underline = false;
try {
__id23_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 236
//menu_pres_P_c_285 (StarSplash_NG_fla.menu_pres_P_c_285)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_P_c_285 extends MovieClip {
public function menu_pres_P_c_285(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 237
//menu_pres_passed_266 (StarSplash_NG_fla.menu_pres_passed_266)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_passed_266 extends MovieClip {
public function menu_pres_passed_266(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
if (MovieClip(root).lv.pratique == false){
if (MovieClip(parent.parent).verdict == "perfect"){
gotoAndPlay("perfect");
} else {
if (MovieClip(parent.parent).verdict == "failed"){
gotoAndPlay("failed");
} else {
gotoAndPlay("passed");
};
};
} else {
gotoAndPlay("practice");
};
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 238
//menu_pres_passed_268 (StarSplash_NG_fla.menu_pres_passed_268)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_passed_268 extends MovieClip {
public function menu_pres_passed_268(){
addFrameScript(2, frame3, 91, frame92);
}
function frame3(){
MovieClip(root).sonsF("passed", false);
}
function frame92(){
stop();
MovieClip(parent.parent.parent).play();
}
}
}//package StarSplash_NG_fla
Section 239
//menu_pres_passed_c_267 (StarSplash_NG_fla.menu_pres_passed_c_267)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_passed_c_267 extends MovieClip {
public function menu_pres_passed_c_267(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
if ((((((((((((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "en_us")) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "en_uk")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "ar")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "in")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "jp")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "cn")))){
this.gotoAndStop("en");
} else {
this.gotoAndStop("autres");
};
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 240
//menu_pres_passed_sousTitreText_282 (StarSplash_NG_fla.menu_pres_passed_sousTitreText_282)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_pres_passed_sousTitreText_282 extends MovieClip {
public var t1:LocalizedTextField;
public function menu_pres_passed_sousTitreText_282(){
__setProp_t1_menu_pres_passed_sousTitreText_Layer1_1();
}
function __setProp_t1_menu_pres_passed_sousTitreText_Layer1_1(){
try {
t1["componentInspectorSetting"] = true;
} catch(e:Error) {
};
t1.text = "{Passed}";
t1.textColor = 0xFFFFFF;
t1.textSize = 65;
t1.bold = false;
t1.disableWordwrap = false;
t1.embedFonts = true;
t1.font = "Berlin Sans FB Demi";
t1.hAlign = "center";
t1.multiline = false;
t1.vAlign = "middle";
t1.antiAliasType = "advanced";
t1.glowBlur = 3;
t1.glowColor = 0;
t1.useGlowFilter = false;
t1.glowQuality = 1;
t1.glowStrength = 5;
t1.gridFitType = "pixel";
t1.italic = false;
t1.selectable = false;
t1.underline = false;
try {
t1["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 241
//menu_pres_passed2_279 (StarSplash_NG_fla.menu_pres_passed2_279)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_passed2_279 extends MovieClip {
public var texte:MovieClip;
public function menu_pres_passed2_279(){
addFrameScript(0, frame1, 2, frame3, 91, frame92);
}
function frame3(){
MovieClip(root).sonsF("passed", false);
texte.visible = true;
}
function frame1(){
texte.visible = false;
}
function frame92(){
stop();
MovieClip(parent.parent.parent).play();
}
}
}//package StarSplash_NG_fla
Section 242
//menu_pres_perfect_284 (StarSplash_NG_fla.menu_pres_perfect_284)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_perfect_284 extends MovieClip {
public var feux:MovieClip;
public function menu_pres_perfect_284(){
addFrameScript(2, frame3, 89, frame90);
}
function frame3(){
MovieClip(root).sonsF("perfect", false);
}
function frame90(){
stop();
MovieClip(parent.parent.parent).play();
}
}
}//package StarSplash_NG_fla
Section 243
//menu_pres_perfect_c_283 (StarSplash_NG_fla.menu_pres_perfect_c_283)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_perfect_c_283 extends MovieClip {
public function menu_pres_perfect_c_283(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
if ((((((((((((((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "en_us")) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "en_uk")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "nl")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "ar")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "in")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "jp")))) || ((MovieClip(parent.parent.parent.parent.parent).quelleLangue() == "cn")))){
this.gotoAndStop("en");
} else {
this.gotoAndStop("autres");
};
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 244
//menu_pres_perfect_sousTitreText_299 (StarSplash_NG_fla.menu_pres_perfect_sousTitreText_299)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_perfect_sousTitreText_299 extends MovieClip {
public var langue:String;
public function menu_pres_perfect_sousTitreText_299(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
langue = MovieClip(parent.parent.parent.parent.parent.parent.parent.parent).quelleLangue();
if ((((langue == "pt")) || ((langue == "br")))){
this.gotoAndStop("pt");
} else {
if ((((langue == "de")) || ((langue == "se")))){
this.gotoAndStop("de");
} else {
if ((((((langue == "es")) || ((langue == "es_mx")))) || ((langue == "es_ar")))){
this.gotoAndStop("es");
} else {
this.gotoAndStop(langue);
};
};
};
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 245
//menu_pres_perfect2_297 (StarSplash_NG_fla.menu_pres_perfect2_297)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_pres_perfect2_297 extends MovieClip {
public var texte:MovieClip;
public var feux:MovieClip;
public function menu_pres_perfect2_297(){
addFrameScript(0, frame1, 2, frame3, 89, frame90);
}
function frame3(){
MovieClip(root).sonsF("perfect", false);
texte.visible = true;
}
function frame1(){
texte.visible = false;
}
function frame90(){
stop();
MovieClip(parent.parent.parent).play();
}
}
}//package StarSplash_NG_fla
Section 246
//menu_pres_R_c_287 (StarSplash_NG_fla.menu_pres_R_c_287)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_R_c_287 extends MovieClip {
public function menu_pres_R_c_287(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 247
//menu_pres_S_c_269 (StarSplash_NG_fla.menu_pres_S_c_269)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_S_c_269 extends MovieClip {
public function menu_pres_S_c_269(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 248
//menu_pres_T_c_291 (StarSplash_NG_fla.menu_pres_T_c_291)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_T_c_291 extends MovieClip {
public function menu_pres_T_c_291(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 249
//menu_pres_U_c_271 (StarSplash_NG_fla.menu_pres_U_c_271)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_U_c_271 extends MovieClip {
public function menu_pres_U_c_271(){
addFrameScript(8, frame9, 29, frame30);
}
function frame9(){
play();
}
function frame30(){
gotoAndPlay(9);
}
}
}//package StarSplash_NG_fla
Section 250
//menu_pres_welldone_309 (StarSplash_NG_fla.menu_pres_welldone_309)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class menu_pres_welldone_309 extends MovieClip {
public function menu_pres_welldone_309(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
MovieClip(parent.parent).play();
}
}
}//package StarSplash_NG_fla
Section 251
//menu_pres_welldone_g2_text_312 (StarSplash_NG_fla.menu_pres_welldone_g2_text_312)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_pres_welldone_g2_text_312 extends MovieClip {
public var __id24_:LocalizedTextField;
public function menu_pres_welldone_g2_text_312(){
__setProp___id24__menu_pres_welldone_g2_text_Layer1_1();
}
function __setProp___id24__menu_pres_welldone_g2_text_Layer1_1(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.text = "{WellDone}";
__id24_.textColor = 0xFFFFFF;
__id24_.textSize = 49;
__id24_.bold = false;
__id24_.disableWordwrap = false;
__id24_.embedFonts = true;
__id24_.font = "Berlin Sans FB Demi";
__id24_.hAlign = "center";
__id24_.multiline = false;
__id24_.vAlign = "middle";
__id24_.antiAliasType = "advanced";
__id24_.glowBlur = 3;
__id24_.glowColor = 0;
__id24_.useGlowFilter = false;
__id24_.glowQuality = 1;
__id24_.glowStrength = 5;
__id24_.gridFitType = "pixel";
__id24_.italic = false;
__id24_.selectable = false;
__id24_.underline = false;
try {
__id24_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 252
//menu_pres_welldone_g2_text2_313 (StarSplash_NG_fla.menu_pres_welldone_g2_text2_313)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_pres_welldone_g2_text2_313 extends MovieClip {
public var __id25_:LocalizedTextField;
public function menu_pres_welldone_g2_text2_313(){
__setProp___id25__menu_pres_welldone_g2_text2_Layer1_1();
}
function __setProp___id25__menu_pres_welldone_g2_text2_Layer1_1(){
try {
__id25_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id25_.text = "{NeedPractice}";
__id25_.textColor = 0xFFFFFF;
__id25_.textSize = 43;
__id25_.bold = false;
__id25_.disableWordwrap = false;
__id25_.embedFonts = true;
__id25_.font = "Berlin Sans FB Demi";
__id25_.hAlign = "center";
__id25_.multiline = false;
__id25_.vAlign = "middle";
__id25_.antiAliasType = "advanced";
__id25_.glowBlur = 3;
__id25_.glowColor = 0;
__id25_.useGlowFilter = false;
__id25_.glowQuality = 1;
__id25_.glowStrength = 5;
__id25_.gridFitType = "pixel";
__id25_.italic = false;
__id25_.selectable = false;
__id25_.underline = false;
try {
__id25_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 253
//menu_press_welldone_g2_311 (StarSplash_NG_fla.menu_press_welldone_g2_311)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_press_welldone_g2_311 extends MovieClip {
public function menu_press_welldone_g2_311(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
if (MovieClip(root).menuJeu.presTableau.verdict == "failed"){
MovieClip(root).sonsF("needPractice", false);
gotoAndStop(2);
} else {
MovieClip(root).sonsF("passed", false);
};
stop();
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 254
//menu_result_258 (StarSplash_NG_fla.menu_result_258)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_result_258 extends MovieClip {
public var titre:MovieClip;
public var i:uint;
public function menu_result_258(){
addFrameScript(0, frame1);
}
function frame1(){
i = MyGlobal.vague;
if (MovieClip(root).lv.pratique == false){
titre.texte.text = MovieClip(parent.parent.parent.parent).quelTexte("LvResult1");
} else {
titre.texte.text = MovieClip(parent.parent.parent.parent).quelTexte("LvResult2");
};
titre.texte.text = titre.texte.text.split("[x]").join(i);
}
}
}//package StarSplash_NG_fla
Section 255
//menu_result_c_155 (StarSplash_NG_fla.menu_result_c_155)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import mochi.as3.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_result_c_155 extends MovieClip {
public var m:MovieClip;
public function menu_result_c_155(){
addFrameScript(0, frame1, 1, frame2, 7, frame8);
}
public function clickPlayAgain(_arg1:Event=null):void{
if (this.m.btnSubmit != null){
this.m.btnSubmit.removeEventListener(MouseEvent.CLICK, clickSubmit);
this.m.btnSubmit.mouseEnabled = false;
};
this.m.btnMoreGames.removeEventListener(MouseEvent.CLICK, clickMoreGames);
this.m.btnMenu.removeEventListener(MouseEvent.CLICK, clickMenu);
this.m.btnPlayAgain.removeEventListener(MouseEvent.CLICK, clickPlayAgain);
MovieClip(parent).snails.removeEventListener(MouseEvent.CLICK, MovieClip(parent).clickSNL);
this.m.btnMoreGames.mouseEnabled = false;
this.m.btnMenu.mouseEnabled = false;
this.m.btnPlayAgain.mouseEnabled = false;
MovieClip(parent).fondu.nextPlace = "jeu";
MovieClip(parent).fondu.nextScene1 = "Jeu";
MovieClip(parent).fondu.gotoAndPlay("fadeOut");
}
public function clickMenu(_arg1:Event=null):void{
if (this.m.btnSubmit != null){
this.m.btnSubmit.removeEventListener(MouseEvent.CLICK, clickSubmit);
};
this.m.btnMoreGames.removeEventListener(MouseEvent.CLICK, clickMoreGames);
this.m.btnMenu.removeEventListener(MouseEvent.CLICK, clickMenu);
this.m.btnPlayAgain.removeEventListener(MouseEvent.CLICK, clickPlayAgain);
this.play();
}
function frame1(){
stop();
if (this.m.btnSubmit != null){
this.m.btnSubmit.addEventListener(MouseEvent.CLICK, clickSubmit);
};
this.m.btnMoreGames.addEventListener(MouseEvent.CLICK, clickMoreGames);
this.m.btnMenu.addEventListener(MouseEvent.CLICK, clickMenu);
this.m.btnPlayAgain.addEventListener(MouseEvent.CLICK, clickPlayAgain);
}
function frame8(){
stop();
MovieClip(parent).gotoAndPlay("menu");
}
function frame2(){
if (this.m.btnSubmit != null){
this.m.btnSubmit.removeEventListener(MouseEvent.CLICK, clickSubmit);
};
this.m.btnMoreGames.removeEventListener(MouseEvent.CLICK, clickMoreGames);
this.m.btnMenu.removeEventListener(MouseEvent.CLICK, clickMenu);
this.m.btnPlayAgain.removeEventListener(MouseEvent.CLICK, clickPlayAgain);
MovieClip(parent).snails.removeEventListener(MouseEvent.CLICK, MovieClip(parent).clickSNL);
if (this.m.btnSubmit != null){
this.m.btnSubmit.mouseEnabled = false;
};
this.m.btnMoreGames.mouseEnabled = false;
this.m.btnMenu.mouseEnabled = false;
this.m.btnPlayAgain.mouseEnabled = false;
play();
}
public function clickSubmit(_arg1:Event=null):void{
var o:Object;
var boardID:String;
var e = _arg1;
this.m.visible = false;
o = {n:[7, 15, 8, 1, 6, 12, 15, 4, 14, 10, 9, 10, 2, 2, 6, 12], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:(MyGlobal.score * 100), onClose:function (){
stop();
MovieClip(root).Menu_c.m.visible = true;
}});
}
public function clickMoreGames(_arg1:Event=null):void{
MovieClip(parent).handle_btnMoreGames("ResultScreen");
}
}
}//package StarSplash_NG_fla
Section 256
//menu_result2_156 (StarSplash_NG_fla.menu_result2_156)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_result2_156 extends MovieClip {
public var btnMoreGames:MovieClip;
public var btnPlayAgain:MovieClip;
public var score:TextField;
public var btnSubmit:MovieClip;
public var btnMenu:MovieClip;
public function menu_result2_156(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
if (MovieClip(parent.parent).snailsLogo == true){
this.gotoAndStop(2);
};
this.score.text = (MyGlobal.score + "%");
stop();
}
function frame2(){
this.score.text = (MyGlobal.score + "%");
stop();
}
}
}//package StarSplash_NG_fla
Section 257
//menu_result2Text_157 (StarSplash_NG_fla.menu_result2Text_157)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_result2Text_157 extends MovieClip {
public var __id10_:LocalizedTextField;
public function menu_result2Text_157(){
__setProp___id10__menu_result2Text_Layer1_1();
}
function __setProp___id10__menu_result2Text_Layer1_1(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.text = "{FinalScore}";
__id10_.textColor = 0xFFFFFF;
__id10_.textSize = 30;
__id10_.bold = false;
__id10_.disableWordwrap = false;
__id10_.embedFonts = true;
__id10_.font = "Porky's";
__id10_.hAlign = "center";
__id10_.multiline = false;
__id10_.vAlign = "middle";
__id10_.antiAliasType = "advanced";
__id10_.glowBlur = 3;
__id10_.glowColor = 0;
__id10_.useGlowFilter = false;
__id10_.glowQuality = 1;
__id10_.glowStrength = 5;
__id10_.gridFitType = "pixel";
__id10_.italic = false;
__id10_.selectable = false;
__id10_.underline = false;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 258
//menu_resultTitreText_259 (StarSplash_NG_fla.menu_resultTitreText_259)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menu_resultTitreText_259 extends MovieClip {
public var texte:LocalizedTextField;
public function menu_resultTitreText_259(){
__setProp_texte_menu_resultTitreText_Layer1_1();
}
function __setProp_texte_menu_resultTitreText_Layer1_1(){
try {
texte["componentInspectorSetting"] = true;
} catch(e:Error) {
};
texte.text = "Level [x] - result";
texte.textColor = 0xFFFFFF;
texte.textSize = 32;
texte.bold = false;
texte.disableWordwrap = false;
texte.embedFonts = true;
texte.font = "Porky's";
texte.hAlign = "center";
texte.multiline = false;
texte.vAlign = "middle";
texte.antiAliasType = "advanced";
texte.glowBlur = 3;
texte.glowColor = 0;
texte.useGlowFilter = false;
texte.glowQuality = 1;
texte.glowStrength = 5;
texte.gridFitType = "pixel";
texte.italic = false;
texte.selectable = false;
texte.underline = false;
try {
texte["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 259
//menu_scene_dauphin_92 (StarSplash_NG_fla.menu_scene_dauphin_92)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import com.greensock.*;
import flash.utils.*;
import flash.net.*;
import com.greensock.easing.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_scene_dauphin_92 extends MovieClip {
public var passeItems1:uint;
public var dauphinBoost:Boolean;
public var passeItems3:uint;
public var limDroite:uint;
public var passeItems2:uint;
public var itemsCollectAll:uint;
public var right:Boolean;
public var myTween:TweenLite;
public var jump:Boolean;
public var plongeFini:Boolean;
public var nombreSauts:uint;
public var longTableau:uint;
public var splash:Array;
public var i:Number;
public var initItemSpd:Number;
public var peutSonar;
public var cntIt:uint;
public var pourcent:uint;
public var posY:Number;
public var up:Boolean;
public var peutPlonger:Boolean;
public var down:Boolean;
public var dauphin:MovieClip;
public var splashFini:Boolean;
public var newHx:int;
public var newHy:int;
public var myTween2b:TweenLite;
public var eau_bg:MovieClip;
public var limVerticale:uint;
public var totalItems:uint;
public var chiffreStart:int;
public var totalItemsAll:uint;
public var keyArray:Array;
public var tiSplash:Array;
public var dauphinPos:Point;
public var dauphinTombe:Boolean;
public var masque2:MovieClip;
public var eau:uint;
public var itemsCollect:uint;
public var SPD:uint;
public var hit;
public var chiffre:String;
public var maxSauts:uint;
public var boost:Boolean;
public var itemSpd:Number;
public var passeItems:uint;
public var fini:Boolean;
public var myTween2:TweenLite;
public var myTween3:TweenLite;
public var myTween4:TweenLite;
public var myTween6:TweenLite;
public var myTween7:TweenLite;
public var myTween8:TweenLite;
public var myTween5:TweenLite;
public function menu_scene_dauphin_92(){
addFrameScript(0, frame1);
}
public function deleteSplash(_arg1:String):void{
if (_arg1 == "grosSplash"){
this.splash[0].removeEventListener(Event.ENTER_FRAME, this.splash[0].entFrame);
this.removeChild(this.splash[0]);
this.splash[0] = null;
splash.splice(0, 1);
} else {
if (_arg1 == "tiSplash"){
this.tiSplash[0].removeEventListener(Event.ENTER_FRAME, this.tiSplash[0].entFrame);
this.removeChild(this.tiSplash[0]);
this.tiSplash[0] = null;
tiSplash.splice(0, 1);
};
};
}
public function scrolling(){
if (dauphinBoost == false){
if (dauphinTombe == false){
posY = (limVerticale - this.dauphinPos.y);
Math.floor((posY = (posY / 7.5)));
} else {
if (dauphinTombe == true){
if (this.dauphinPos.y < 40){
posY = (posY + 2);
} else {
if (this.dauphinPos.y > 200){
posY = (posY - 8);
} else {
posY = (posY - 3);
if (posY < -30){
posY = -30;
};
};
};
};
};
this.y = (this.y + posY);
};
if (this.y > 800){
this.y = 800;
} else {
if (this.y < 0){
this.y = 0;
};
};
}
public function completeFunction():void{
myTween.reverse();
if (this.dauphin.y < 0){
dauphinTombe = true;
};
}
public function updateMed():void{
if ((this.dauphin.x - (SPD + 2)) > 20){
this.dauphin.x = (this.dauphin.x - (SPD + 2));
} else {
this.dauphin.x = 20;
};
}
public function meduseSaut():void{
dauphinTombe = false;
dauphinBoost = false;
if (plongeFini == false){
plongeFini = true;
};
myTween7 = new TweenLite(this.dauphin, 30, {y:-260, useFrames:true, onComplete:meduseSautComplete, overwrite:true});
}
public function rndHundredth(_arg1){
var _local2:Number;
_local2 = _arg1;
_local2 = (_local2 * 100);
_local2 = Math.round(_local2);
_local2 = (_local2 / 100);
return (_local2);
}
function frame1(){
stop();
OverwriteManager.init(2);
SPD = 6;
jump = false;
keyArray = new Array();
eau = 267;
limDroite = 600;
fini = true;
up = false;
right = false;
down = false;
boost = true;
peutSonar = true;
peutPlonger = true;
plongeFini = true;
nombreSauts = 0;
maxSauts = 3;
splashFini = true;
splash = new Array();
tiSplash = new Array();
cntIt = 0;
initItemSpd = 8;
itemSpd = initItemSpd;
limVerticale = 200;
dauphinPos = new Point(this.dauphin.x, this.dauphin.y);
dauphinTombe = false;
dauphinBoost = false;
newHx = 0;
newHy = 0;
totalItemsAll = 400;
itemsCollectAll = 0;
totalItems = 0;
itemsCollect = 0;
passeItems = 0;
passeItems1 = 20;
passeItems2 = 30;
passeItems3 = 35;
pourcent = 0;
chiffreStart = 0;
chiffre = null;
longTableau = 0;
i = 0;
while (i < 222) {
keyArray.push([i, false]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function updateBoost():void{
if (this.dauphin.x >= limDroite){
this.dauphin.x = limDroite;
myTween2.kill();
};
}
public function createSplash(_arg1:String):void{
var _local2:Splash1;
var _local3:TiSplash1;
if (_arg1 == "grosSplash"){
_local2 = new Splash1();
addChild(_local2);
splash.push(_local2);
_local2.x = (this.dauphin.x + 30);
_local2.y = 222;
if (((!((MovieClip(root).frameName == null))) && (!((MovieClip(parent).Menu_c == null))))){
MovieClip(root).sonsF("splash", true);
};
} else {
if (_arg1 == "tiSplash"){
_local3 = new TiSplash1();
addChild(_local3);
tiSplash.push(_local3);
_local3.x = this.dauphin.x;
_local3.y = 222;
if (((!((MovieClip(root).frameName == null))) && (!((MovieClip(parent).Menu_c == null))))){
MovieClip(root).sonsF("splashOut", false);
};
};
};
}
public function Splash():void{
var _local1:*;
var _local2:uint;
if (plongeFini == true){
_local2 = 5;
_local1 = "25";
this.dauphin.y = eau;
} else {
_local2 = 10;
_local1 = 390;
};
createSplash("grosSplash");
fini = true;
nombreSauts = 0;
if (plongeFini == false){
this.dauphin.saute.gotoAndPlay("splash2");
} else {
if (this.dauphin.saute.frBoost < 4){
this.dauphin.saute.gotoAndPlay((this.dauphin.saute.frBoost + "b"));
} else {
if (plongeFini == true){
this.dauphin.saute.gotoAndPlay("splash");
};
};
};
myTween4 = new TweenLite(this.dauphin, _local2, {y:_local1, ease:Quad.easeOut, useFrames:true, onComplete:Bloop});
splashFini = false;
plongeFini = true;
peutPlonger = true;
dauphinTombe = false;
}
public function deleteSpawn(_arg1:String, _arg2:uint):void{
var _local3:*;
var _local4:Number;
var _local5:String;
var _local6:uint;
var _local7:String;
itemsCollect = (itemsCollect + _arg2);
itemsCollectAll = (itemsCollectAll + _arg2);
if (_arg2 != 0){
_local4 = ((itemsCollectAll / totalItemsAll) * 100);
MyGlobal.score = rndHundredth(_local4);
_local5 = String(MyGlobal.score);
_local6 = _local5.indexOf(".");
_local7 = _local5.substring((_local6 + 1), _local5.length);
if (_local7.length == 0){
_local5 = (_local5 + ".00");
} else {
if (_local7.length == 1){
_local5 = (_local5 + "0");
};
};
};
_local3 = this.getChildByName(_arg1);
_local3.removeEventListener(Event.ENTER_FRAME, _local3.entFrame);
this.removeChild(_local3);
_local3 = null;
}
public function checkKeysUp(_arg1:uint):void{
keyArray[_arg1][1] = false;
}
public function reverseFunction():void{
this.dauphin.saute.noEntFrame = false;
this.dauphin.saute.addEventListener(Event.ENTER_FRAME, this.dauphin.saute.entFrame);
}
public function mouvementSaut():void{
nombreSauts = (nombreSauts + 1);
fini = false;
dauphinTombe = false;
dauphinBoost = false;
plongeFini = true;
myTween = new TweenLite(this.dauphin, 10, {y:"-160", useFrames:true, onComplete:completeFunction, onReverseComplete:reverseFunction});
}
public function initVit():void{
myTween2b.kill();
this.itemSpd = this.initItemSpd;
}
public function Tombe(_arg1:Boolean):void{
var _local2:uint;
if (_arg1 == false){
_local2 = 10;
} else {
if (_arg1 == true){
_local2 = 5;
};
};
myTween3 = new TweenLite(this.dauphin, _local2, {y:"160", ease:Quad.easeIn, useFrames:true, onUpdate:updateTombe, onComplete:reverseFunction});
if (this.dauphin.y < 0){
dauphinTombe = true;
};
dauphinBoost = false;
posY = 0;
}
public function splashComplete():void{
splashFini = true;
}
public function isKeyDown(_arg1){
return (keyArray[_arg1][1]);
}
public function entFrame(_arg1:Event):void{
if (MovieClip(root).frameName != "menu"){
if (this.dauphin.saute != null){
this.dauphin.saute.addEventListener(Event.ENTER_FRAME, this.dauphin.saute.entFrame);
};
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
hit = this.dauphin[this.dauphin.etat].hit;
if (isKeyDown(39) == true){
if ((this.dauphin.x + SPD) < limDroite){
this.dauphin.x = (this.dauphin.x + SPD);
} else {
this.dauphin.x = limDroite;
};
} else {
if (isKeyDown(37) == true){
if ((this.dauphin.x - SPD) > 20){
this.dauphin.x = (this.dauphin.x - SPD);
} else {
this.dauphin.x = 20;
};
};
};
if (this.dauphin.etat == "nage"){
up = true;
if (isKeyDown(40) == true){
if (splashFini == false){
myTween5.kill();
splashFini = true;
};
if ((this.dauphin.y + SPD) < 385){
this.dauphin.y = (this.dauphin.y + SPD);
this.dauphin.nage.rotation = 10;
} else {
this.dauphin.y = 385;
};
} else {
if (isKeyDown(38) == true){
if (splashFini == false){
myTween5.kill();
splashFini = true;
};
if ((this.dauphin.y - SPD) > eau){
this.dauphin.y = (this.dauphin.y - SPD);
this.dauphin.nage.rotation = -10;
} else {
this.dauphin.y = eau;
jump = true;
};
} else {
if (this.dauphin.nage.rotation > 0){
this.dauphin.nage.rotation = (this.dauphin.nage.rotation - 2);
} else {
if (this.dauphin.nage.rotation < 0){
this.dauphin.nage.rotation = (this.dauphin.nage.rotation + 2);
} else {
this.dauphin.nage.rotation = 0;
};
};
};
};
if ((((jump == true)) && ((isKeyDown(38) == true)))){
this.dauphin.gotoAndStop("saute");
jump = false;
boost = true;
};
if ((((isKeyDown(39) == false)) && (((this.dauphin.x - 2) > 20)))){
this.dauphin.x = (this.dauphin.x - 2);
};
};
if (isKeyDown(38) == false){
up = false;
};
if (isKeyDown(39) == false){
right = false;
};
if (isKeyDown(40) == false){
down = false;
};
if (plongeFini == false){
if ((this.dauphin.x - (itemSpd * (1 / 3))) > 20){
this.dauphin.x = (this.dauphin.x - (itemSpd * (1 / 3)));
} else {
this.dauphin.x = 20;
};
};
}
public function preMeduseSaut():void{
dauphinTombe = false;
dauphinBoost = false;
if (plongeFini == false){
plongeFini = true;
};
myTween8 = new TweenLite(this.dauphin, 10, {y:240, useFrames:true, onComplete:meduseSaut, overwrite:true, ease:Quad.easeOut, onUpdate:updateMed});
this.dauphin.saute.gotoAndPlay("meduseSaut");
}
public function spawnForme(_arg1:String, _arg2:int, _arg3:int):void{
if (_arg1 == "saut"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 160), _arg3);
newHx = (_arg2 + 160);
newHy = _arg3;
} else {
if (_arg1 == "sautM1"){
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 160), _arg3);
newHx = (_arg2 + 160);
newHy = _arg3;
} else {
if (_arg1 == "sautM5"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
newHx = (_arg2 + 135);
newHy = (_arg3 - 65);
} else {
if (_arg1 == "saut3"){
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
newHx = (_arg2 + 135);
newHy = (_arg3 - 65);
} else {
if (_arg1 == "diM3"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 30), (_arg3 - 50));
spawnage("etoileB", (_arg2 + 60), (_arg3 - 100));
spawnage("etoileB", (_arg2 + 90), (_arg3 - 150));
spawnage("etoileB", (_arg2 + 120), (_arg3 - 200));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 250));
spawnage("etoileB", (_arg2 + 180), (_arg3 - 300));
spawnage("etoileB", (_arg2 + 210), (_arg3 - 350));
spawnage("etoileB", (_arg2 + 240), (_arg3 - 400));
spawnage("etoileB", (_arg2 + 270), (_arg3 - 450));
newHx = (_arg2 + 270);
newHy = (_arg3 - 450);
} else {
if (_arg1 == "diM2"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 30), (_arg3 - 50));
spawnage("etoileB", (_arg2 + 60), (_arg3 - 100));
spawnage("etoileB", (_arg2 + 90), (_arg3 - 150));
spawnage("etoileB", (_arg2 + 120), (_arg3 - 200));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 250));
newHx = (_arg2 + 150);
newHy = (_arg3 - 250);
} else {
if (_arg1 == "medM"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 5), (_arg3 - 90));
spawnage("etoileB", (_arg2 + 15), (_arg3 - 170));
spawnage("etoileB", (_arg2 + 30), (_arg3 - 240));
spawnage("etoileB", (_arg2 + 50), (_arg3 - 300));
spawnage("etoileB", (_arg2 + 75), (_arg3 - 350));
spawnage("etoileB", (_arg2 + 110), (_arg3 - 390));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 420));
spawnage("etoileB", (_arg2 + 200), (_arg3 - 440));
spawnage("etoileB", (_arg2 + 270), (_arg3 - 450));
newHx = (_arg2 + 270);
newHy = (_arg3 - 450);
} else {
if (_arg1 == "ligneX"){
spawnage("etoileB", (_arg2 + 0), _arg3);
spawnage("etoileB", (_arg2 + 50), _arg3);
spawnage("etoileB", (_arg2 + 100), _arg3);
spawnage("etoileB", (_arg2 + 150), _arg3);
spawnage("etoileB", (_arg2 + 200), _arg3);
spawnage("etoileB", (_arg2 + 250), _arg3);
newHx = (_arg2 + 250);
newHy = _arg3;
} else {
if (_arg1 == "ligneY"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", _arg2, (_arg3 - 50));
spawnage("etoileB", _arg2, (_arg3 - 100));
spawnage("etoileB", _arg2, (_arg3 - 150));
spawnage("etoileB", _arg2, (_arg3 - 200));
newHx = _arg2;
newHy = (_arg3 - 200);
} else {
if (_arg1 == "zigzag1"){
spawnage("etoileB", _arg2, 280);
spawnage("etoileB", (_arg2 + 100), 380);
spawnage("etoileB", (_arg2 + 200), 280);
newHx = (_arg2 + 200);
newHy = 280;
if (_arg3 >= 4){
spawnage("etoileB", (_arg2 + 300), 380);
newHx = (_arg2 + 300);
newHy = 380;
};
if (_arg3 >= 5){
spawnage("etoileB", (_arg2 + 400), 280);
newHx = (_arg2 + 400);
newHy = 280;
};
if (_arg3 >= 6){
spawnage("etoileB", (_arg2 + 500), 380);
newHx = (_arg2 + 500);
newHy = 380;
};
} else {
if (_arg1 == "zigzag2"){
spawnage("etoileB", _arg2, 380);
spawnage("etoileB", (_arg2 + 100), 280);
spawnage("etoileB", (_arg2 + 200), 380);
newHx = (_arg2 + 200);
newHy = 380;
if (_arg3 >= 4){
spawnage("etoileB", (_arg2 + 300), 280);
newHx = (_arg2 + 300);
newHy = 280;
};
if (_arg3 >= 5){
spawnage("etoileB", (_arg2 + 400), 380);
newHx = (_arg2 + 400);
newHy = 380;
};
if (_arg3 >= 6){
spawnage("etoileB", (_arg2 + 500), 280);
newHx = (_arg2 + 500);
newHy = 280;
};
} else {
if (_arg1 == "espace"){
spawnage("espace", (newHx + _arg2), 230);
};
};
};
};
};
};
};
};
};
};
};
};
}
public function Boost():void{
this.dauphin.saute.noEntFrame = true;
dauphinTombe = false;
if (this.dauphin.y < 0){
dauphinBoost = true;
};
plongeFini = true;
myTween2 = new TweenLite(this.dauphin, 12, {x:"225", ease:Cubic.easeOut, useFrames:true, onUpdate:updateBoost, overwrite:true});
}
public function meduseSautComplete():void{
Tombe(false);
}
public function spawnage(_arg1:String, _arg2:int, _arg3:int):void{
var _local4:*;
if (_arg1 == "etoileB"){
cntIt = (cntIt + 1);
_local4 = new EtoileJaune();
_local4.name = ("et_" + cntIt);
} else {
if (_arg1 == "espace"){
cntIt = (cntIt + 1);
_local4 = new Espace();
_local4.name = ("esp_" + cntIt);
} else {
if (_arg1 == "meduse"){
cntIt = (cntIt + 1);
_local4 = new Meduse();
_local4.name = ("med_" + cntIt);
} else {
if (_arg1 == "sonar"){
_local4 = new Sonar();
_local4.name = "sonar1";
} else {
if (_arg1 == "bouée"){
_local4 = new Bouée();
_local4.name = "bouée1";
newHx = 700;
newHy = 230;
};
};
};
};
};
_local4.x = _arg2;
_local4.y = _arg3;
addChildAt(_local4, this.getChildIndex(dauphin));
}
public function updateTombe():void{
if (plongeFini == true){
if (!((!((this.dauphin.y == eau))) && (((this.dauphin.y + 20) < eau)))){
Splash();
myTween3.kill();
};
};
}
public function checkKeysDown(_arg1:uint):void{
keyArray[_arg1][1] = true;
if (isKeyDown(38)){
if ((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((up == false)))) && ((nombreSauts < maxSauts)))){
this.dauphin.saute.gotoAndPlay("saute2");
up = true;
MovieClip(root).sonsF("triple", false);
};
};
if (isKeyDown(39)){
if ((((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((right == false)))) && ((boost == true)))) && (((this.dauphin.y + 30) < eau)))){
this.dauphin.saute.gotoAndPlay("boost");
boost = false;
MovieClip(root).sonsF("boost", false);
};
right = true;
};
if (isKeyDown(40)){
if ((((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((down == false)))) && ((peutPlonger == true)))) && (((this.dauphin.y + 40) < eau)))){
this.dauphin.saute.gotoAndPlay("plonge");
peutPlonger = false;
plongeFini = false;
MovieClip(root).sonsF("boost", false);
};
down = true;
};
if (isKeyDown(32)){
if (peutSonar == true){
spawnage("sonar", (this.dauphin.x + 50), this.dauphin.y);
peutSonar = false;
MovieClip(root).sonsF("sonar", false);
};
};
}
public function Bloop():void{
myTween5 = new TweenLite(this.dauphin, 5, {y:"-20", ease:Quad.easeOut, useFrames:true, onComplete:splashComplete});
this.dauphin.gotoAndStop("nage");
}
}
}//package StarSplash_NG_fla
Section 260
//menu_scene_dauphin_fin_165 (StarSplash_NG_fla.menu_scene_dauphin_fin_165)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import com.greensock.*;
import flash.utils.*;
import flash.net.*;
import com.greensock.easing.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_scene_dauphin_fin_165 extends MovieClip {
public var passeItems1:uint;
public var dauphinBoost:Boolean;
public var passeItems3:uint;
public var limDroite:uint;
public var passeItems2:uint;
public var itemsCollectAll:uint;
public var right:Boolean;
public var myTween:TweenLite;
public var scrollFini:Boolean;
public var jump:Boolean;
public var plongeFini:Boolean;
public var nombreSauts:uint;
public var longTableau:uint;
public var splash:Array;
public var i:Number;
public var initItemSpd:Number;
public var peutSonar;
public var cntIt:uint;
public var pourcent:uint;
public var posY:Number;
public var up:Boolean;
public var peutPlonger:Boolean;
public var down:Boolean;
public var dauphin:MovieClip;
public var splashFini:Boolean;
public var newHx:int;
public var newHy:int;
public var myTween2b:TweenLite;
public var eau_bg:MovieClip;
public var limVerticale:uint;
public var totalItems:uint;
public var chiffreStart:int;
public var totalItemsAll:uint;
public var keyArray:Array;
public var tiSplash:Array;
public var dauphinPos:Point;
public var dauphinTombe:Boolean;
public var masque2:MovieClip;
public var eau:uint;
public var itemsCollect:uint;
public var SPD:uint;
public var congrats:MovieClip;
public var chiffre:String;
public var hit;
public var maxSauts:uint;
public var boost:Boolean;
public var itemSpd:Number;
public var passeItems:uint;
public var fini:Boolean;
public var ligne_eau:MovieClip;
public var myTween2:TweenLite;
public var myTween3:TweenLite;
public var myTween4:TweenLite;
public var myTween6:TweenLite;
public var myTween7:TweenLite;
public var myTween8:TweenLite;
public var myTween5:TweenLite;
public function menu_scene_dauphin_fin_165(){
addFrameScript(0, frame1);
}
public function deleteSplash(_arg1:String):void{
if (_arg1 == "grosSplash"){
this.splash[0].removeEventListener(Event.ENTER_FRAME, this.splash[0].entFrame);
this.removeChild(this.splash[0]);
this.splash[0] = null;
splash.splice(0, 1);
} else {
if (_arg1 == "tiSplash"){
this.tiSplash[0].removeEventListener(Event.ENTER_FRAME, this.tiSplash[0].entFrame);
this.removeChild(this.tiSplash[0]);
this.tiSplash[0] = null;
tiSplash.splice(0, 1);
};
};
}
public function scrolling(){
if (dauphinBoost == false){
if (dauphinTombe == false){
posY = (limVerticale - this.dauphinPos.y);
Math.floor((posY = (posY / 7.5)));
} else {
if (dauphinTombe == true){
if (this.dauphinPos.y < 40){
posY = (posY + 2);
} else {
if (this.dauphinPos.y > 280){
posY = (posY - 8);
} else {
posY = (posY - 3);
if (posY < -30){
posY = -30;
};
};
};
};
};
this.y = (this.y + posY);
};
if (this.y > 800){
this.y = 800;
} else {
if (this.y < 80){
this.y = 80;
};
};
}
public function completeFunction():void{
myTween.reverse();
if (this.dauphin.y < 0){
dauphinTombe = true;
};
}
public function updateMed():void{
if ((this.dauphin.x - (SPD + 2)) > 20){
this.dauphin.x = (this.dauphin.x - (SPD + 2));
} else {
this.dauphin.x = 20;
};
}
public function meduseSaut():void{
dauphinTombe = false;
dauphinBoost = false;
if (plongeFini == false){
plongeFini = true;
};
myTween7 = new TweenLite(this.dauphin, 30, {y:-260, useFrames:true, onComplete:meduseSautComplete, overwrite:true});
}
public function rndHundredth(_arg1){
var _local2:Number;
_local2 = _arg1;
_local2 = (_local2 * 100);
_local2 = Math.round(_local2);
_local2 = (_local2 / 100);
return (_local2);
}
function frame1(){
stop();
eau_bg.gotoAndStop("nuit");
ligne_eau.c1.gotoAndStop("nuit");
dauphin.transform.colorTransform = new ColorTransform(0.7, 0.55, 0.7, 1, 0, 0, 0, 0);
OverwriteManager.init(2);
SPD = 6;
jump = false;
keyArray = new Array();
eau = 267;
limDroite = 600;
fini = true;
up = false;
right = false;
down = false;
boost = true;
peutSonar = true;
peutPlonger = true;
plongeFini = true;
nombreSauts = 0;
maxSauts = 3;
splashFini = true;
splash = new Array();
tiSplash = new Array();
cntIt = 0;
initItemSpd = 8;
itemSpd = initItemSpd;
limVerticale = 280;
dauphinPos = new Point(this.dauphin.x, this.dauphin.y);
dauphinTombe = false;
dauphinBoost = false;
newHx = 0;
newHy = 0;
totalItemsAll = 400;
itemsCollectAll = 0;
totalItems = 0;
itemsCollect = 0;
passeItems = 0;
passeItems1 = 20;
passeItems2 = 30;
passeItems3 = 35;
pourcent = 0;
chiffreStart = 0;
chiffre = null;
longTableau = 0;
i = 0;
while (i < 222) {
keyArray.push([i, false]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function updateBoost():void{
if (this.dauphin.x >= limDroite){
this.dauphin.x = limDroite;
myTween2.kill();
};
}
public function createSplash(_arg1:String):void{
var _local2:Splash1;
var _local3:TiSplash1;
if (_arg1 == "grosSplash"){
_local2 = new Splash1();
addChild(_local2);
splash.push(_local2);
_local2.x = (this.dauphin.x + 30);
_local2.y = 222;
if (MovieClip(root).frameName != null){
MovieClip(root).sonsF("splash", true);
};
} else {
if (_arg1 == "tiSplash"){
_local3 = new TiSplash1();
addChild(_local3);
tiSplash.push(_local3);
_local3.x = this.dauphin.x;
_local3.y = 222;
MovieClip(root).sonsF("splashOut", false);
};
};
}
public function Splash():void{
var _local1:*;
var _local2:uint;
if (plongeFini == true){
_local2 = 5;
_local1 = "25";
this.dauphin.y = eau;
} else {
_local2 = 10;
_local1 = 390;
};
createSplash("grosSplash");
fini = true;
nombreSauts = 0;
if (plongeFini == false){
this.dauphin.saute.gotoAndPlay("splash2");
} else {
if (this.dauphin.saute.frBoost < 4){
this.dauphin.saute.gotoAndPlay((this.dauphin.saute.frBoost + "b"));
} else {
if (plongeFini == true){
this.dauphin.saute.gotoAndPlay("splash");
};
};
};
myTween4 = new TweenLite(this.dauphin, _local2, {y:_local1, ease:Quad.easeOut, useFrames:true, onComplete:Bloop});
splashFini = false;
plongeFini = true;
peutPlonger = true;
dauphinTombe = false;
}
public function deleteSpawn(_arg1:String, _arg2:uint):void{
var _local3:*;
var _local4:Number;
var _local5:String;
var _local6:uint;
var _local7:String;
itemsCollect = (itemsCollect + _arg2);
itemsCollectAll = (itemsCollectAll + _arg2);
if (_arg2 != 0){
_local4 = ((itemsCollectAll / totalItemsAll) * 100);
MyGlobal.score = rndHundredth(_local4);
_local5 = String(MyGlobal.score);
_local6 = _local5.indexOf(".");
_local7 = _local5.substring((_local6 + 1), _local5.length);
if (_local7.length == 0){
_local5 = (_local5 + ".00");
} else {
if (_local7.length == 1){
_local5 = (_local5 + "0");
};
};
};
_local3 = this.getChildByName(_arg1);
_local3.removeEventListener(Event.ENTER_FRAME, _local3.entFrame);
this.removeChild(_local3);
_local3 = null;
}
public function checkKeysUp(_arg1:uint):void{
keyArray[_arg1][1] = false;
}
public function reverseFunction():void{
this.dauphin.saute.noEntFrame = false;
this.dauphin.saute.addEventListener(Event.ENTER_FRAME, this.dauphin.saute.entFrame);
}
public function mouvementSaut():void{
nombreSauts = (nombreSauts + 1);
fini = false;
dauphinTombe = false;
dauphinBoost = false;
plongeFini = true;
myTween = new TweenLite(this.dauphin, 10, {y:"-160", useFrames:true, onComplete:completeFunction, onReverseComplete:reverseFunction});
}
public function initVit():void{
myTween2b.kill();
this.itemSpd = this.initItemSpd;
}
public function Tombe(_arg1:Boolean):void{
var _local2:uint;
if (_arg1 == false){
_local2 = 10;
} else {
if (_arg1 == true){
_local2 = 5;
};
};
myTween3 = new TweenLite(this.dauphin, _local2, {y:"160", ease:Quad.easeIn, useFrames:true, onUpdate:updateTombe, onComplete:reverseFunction});
if (this.dauphin.y < 0){
dauphinTombe = true;
};
dauphinBoost = false;
posY = 0;
}
public function splashComplete():void{
splashFini = true;
}
public function isKeyDown(_arg1){
return (keyArray[_arg1][1]);
}
public function entFrame(_arg1:Event):void{
if (MovieClip(root).frameName != "menu"){
if (this.dauphin.saute != null){
this.dauphin.saute.addEventListener(Event.ENTER_FRAME, this.dauphin.saute.entFrame);
};
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
hit = this.dauphin[this.dauphin.etat].hit;
if (scrollFini == false){
dauphinPos = new Point(this.dauphin.x, this.dauphin.y);
dauphinPos = localToGlobal(dauphinPos);
if (this.dauphinPos.y < limVerticale){
scrolling();
} else {
if ((((this.dauphinPos.y > limVerticale)) && (!((this.y == 0))))){
scrolling();
};
};
};
if (isKeyDown(39) == true){
if ((this.dauphin.x + SPD) < limDroite){
this.dauphin.x = (this.dauphin.x + SPD);
} else {
this.dauphin.x = limDroite;
};
} else {
if (isKeyDown(37) == true){
if ((this.dauphin.x - SPD) > 20){
this.dauphin.x = (this.dauphin.x - SPD);
} else {
this.dauphin.x = 20;
};
};
};
if (this.dauphin.etat == "nage"){
up = true;
if (isKeyDown(40) == true){
if (splashFini == false){
myTween5.kill();
splashFini = true;
};
if ((this.dauphin.y + SPD) < 385){
this.dauphin.y = (this.dauphin.y + SPD);
this.dauphin.nage.rotation = 10;
} else {
this.dauphin.y = 385;
};
} else {
if (isKeyDown(38) == true){
if (splashFini == false){
myTween5.kill();
splashFini = true;
};
if ((this.dauphin.y - SPD) > eau){
this.dauphin.y = (this.dauphin.y - SPD);
this.dauphin.nage.rotation = -10;
} else {
this.dauphin.y = eau;
jump = true;
};
} else {
if (this.dauphin.nage.rotation > 0){
this.dauphin.nage.rotation = (this.dauphin.nage.rotation - 2);
} else {
if (this.dauphin.nage.rotation < 0){
this.dauphin.nage.rotation = (this.dauphin.nage.rotation + 2);
} else {
this.dauphin.nage.rotation = 0;
};
};
};
};
if ((((jump == true)) && ((isKeyDown(38) == true)))){
this.dauphin.gotoAndStop("saute");
jump = false;
boost = true;
};
if ((((isKeyDown(39) == false)) && (((this.dauphin.x - 2) > 20)))){
this.dauphin.x = (this.dauphin.x - 2);
};
};
if (isKeyDown(38) == false){
up = false;
};
if (isKeyDown(39) == false){
right = false;
};
if (isKeyDown(40) == false){
down = false;
};
if (plongeFini == false){
if ((this.dauphin.x - (itemSpd * (1 / 3))) > 20){
this.dauphin.x = (this.dauphin.x - (itemSpd * (1 / 3)));
} else {
this.dauphin.x = 20;
};
};
}
public function preMeduseSaut():void{
dauphinTombe = false;
dauphinBoost = false;
if (plongeFini == false){
plongeFini = true;
};
myTween8 = new TweenLite(this.dauphin, 10, {y:240, useFrames:true, onComplete:meduseSaut, overwrite:true, ease:Quad.easeOut, onUpdate:updateMed});
this.dauphin.saute.gotoAndPlay("meduseSaut");
}
public function spawnForme(_arg1:String, _arg2:int, _arg3:int):void{
if (_arg1 == "saut"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 160), _arg3);
newHx = (_arg2 + 160);
newHy = _arg3;
} else {
if (_arg1 == "sautM1"){
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 160), _arg3);
newHx = (_arg2 + 160);
newHy = _arg3;
} else {
if (_arg1 == "sautM5"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
newHx = (_arg2 + 135);
newHy = (_arg3 - 65);
} else {
if (_arg1 == "saut3"){
spawnage("etoileB", (_arg2 + 25), (_arg3 - 65));
spawnage("etoileB", (_arg2 + 80), (_arg3 - 110));
spawnage("etoileB", (_arg2 + 135), (_arg3 - 65));
newHx = (_arg2 + 135);
newHy = (_arg3 - 65);
} else {
if (_arg1 == "diM3"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 30), (_arg3 - 50));
spawnage("etoileB", (_arg2 + 60), (_arg3 - 100));
spawnage("etoileB", (_arg2 + 90), (_arg3 - 150));
spawnage("etoileB", (_arg2 + 120), (_arg3 - 200));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 250));
spawnage("etoileB", (_arg2 + 180), (_arg3 - 300));
spawnage("etoileB", (_arg2 + 210), (_arg3 - 350));
spawnage("etoileB", (_arg2 + 240), (_arg3 - 400));
spawnage("etoileB", (_arg2 + 270), (_arg3 - 450));
newHx = (_arg2 + 270);
newHy = (_arg3 - 450);
} else {
if (_arg1 == "diM2"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 30), (_arg3 - 50));
spawnage("etoileB", (_arg2 + 60), (_arg3 - 100));
spawnage("etoileB", (_arg2 + 90), (_arg3 - 150));
spawnage("etoileB", (_arg2 + 120), (_arg3 - 200));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 250));
newHx = (_arg2 + 150);
newHy = (_arg3 - 250);
} else {
if (_arg1 == "medM"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", (_arg2 + 5), (_arg3 - 90));
spawnage("etoileB", (_arg2 + 15), (_arg3 - 170));
spawnage("etoileB", (_arg2 + 30), (_arg3 - 240));
spawnage("etoileB", (_arg2 + 50), (_arg3 - 300));
spawnage("etoileB", (_arg2 + 75), (_arg3 - 350));
spawnage("etoileB", (_arg2 + 110), (_arg3 - 390));
spawnage("etoileB", (_arg2 + 150), (_arg3 - 420));
spawnage("etoileB", (_arg2 + 200), (_arg3 - 440));
spawnage("etoileB", (_arg2 + 270), (_arg3 - 450));
newHx = (_arg2 + 270);
newHy = (_arg3 - 450);
} else {
if (_arg1 == "ligneX"){
spawnage("etoileB", (_arg2 + 0), _arg3);
spawnage("etoileB", (_arg2 + 50), _arg3);
spawnage("etoileB", (_arg2 + 100), _arg3);
spawnage("etoileB", (_arg2 + 150), _arg3);
spawnage("etoileB", (_arg2 + 200), _arg3);
spawnage("etoileB", (_arg2 + 250), _arg3);
newHx = (_arg2 + 250);
newHy = _arg3;
} else {
if (_arg1 == "ligneY"){
spawnage("etoileB", _arg2, _arg3);
spawnage("etoileB", _arg2, (_arg3 - 50));
spawnage("etoileB", _arg2, (_arg3 - 100));
spawnage("etoileB", _arg2, (_arg3 - 150));
spawnage("etoileB", _arg2, (_arg3 - 200));
newHx = _arg2;
newHy = (_arg3 - 200);
} else {
if (_arg1 == "zigzag1"){
spawnage("etoileB", _arg2, 280);
spawnage("etoileB", (_arg2 + 100), 380);
spawnage("etoileB", (_arg2 + 200), 280);
newHx = (_arg2 + 200);
newHy = 280;
if (_arg3 >= 4){
spawnage("etoileB", (_arg2 + 300), 380);
newHx = (_arg2 + 300);
newHy = 380;
};
if (_arg3 >= 5){
spawnage("etoileB", (_arg2 + 400), 280);
newHx = (_arg2 + 400);
newHy = 280;
};
if (_arg3 >= 6){
spawnage("etoileB", (_arg2 + 500), 380);
newHx = (_arg2 + 500);
newHy = 380;
};
} else {
if (_arg1 == "zigzag2"){
spawnage("etoileB", _arg2, 380);
spawnage("etoileB", (_arg2 + 100), 280);
spawnage("etoileB", (_arg2 + 200), 380);
newHx = (_arg2 + 200);
newHy = 380;
if (_arg3 >= 4){
spawnage("etoileB", (_arg2 + 300), 280);
newHx = (_arg2 + 300);
newHy = 280;
};
if (_arg3 >= 5){
spawnage("etoileB", (_arg2 + 400), 380);
newHx = (_arg2 + 400);
newHy = 380;
};
if (_arg3 >= 6){
spawnage("etoileB", (_arg2 + 500), 280);
newHx = (_arg2 + 500);
newHy = 280;
};
} else {
if (_arg1 == "espace"){
spawnage("espace", (newHx + _arg2), 230);
};
};
};
};
};
};
};
};
};
};
};
};
}
public function Boost():void{
this.dauphin.saute.noEntFrame = true;
dauphinTombe = false;
if (this.dauphin.y < 0){
dauphinBoost = true;
};
plongeFini = true;
myTween2 = new TweenLite(this.dauphin, 12, {x:"225", ease:Cubic.easeOut, useFrames:true, onUpdate:updateBoost, overwrite:true});
}
public function meduseSautComplete():void{
Tombe(false);
}
public function spawnage(_arg1:String, _arg2:int, _arg3:int):void{
var _local4:*;
if (_arg1 == "etoileB"){
cntIt = (cntIt + 1);
_local4 = new EtoileJaune();
_local4.name = ("et_" + cntIt);
} else {
if (_arg1 == "espace"){
cntIt = (cntIt + 1);
_local4 = new Espace();
_local4.name = ("esp_" + cntIt);
} else {
if (_arg1 == "meduse"){
cntIt = (cntIt + 1);
_local4 = new Meduse();
_local4.name = ("med_" + cntIt);
} else {
if (_arg1 == "sonar"){
_local4 = new Sonar();
_local4.name = "sonar1";
} else {
if (_arg1 == "bouée"){
_local4 = new Bouée();
_local4.name = "bouée1";
newHx = 700;
newHy = 230;
};
};
};
};
};
_local4.x = _arg2;
_local4.y = _arg3;
addChildAt(_local4, this.getChildIndex(dauphin));
}
public function updateTombe():void{
if (plongeFini == true){
if (!((!((this.dauphin.y == eau))) && (((this.dauphin.y + 20) < eau)))){
Splash();
myTween3.kill();
};
};
}
public function checkKeysDown(_arg1:uint):void{
keyArray[_arg1][1] = true;
if (isKeyDown(38)){
if ((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((up == false)))) && ((nombreSauts < maxSauts)))){
this.dauphin.saute.gotoAndPlay("saute2");
up = true;
MovieClip(root).sonsF("triple", false);
};
};
if (isKeyDown(39)){
if ((((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((right == false)))) && ((boost == true)))) && (((this.dauphin.y + 30) < eau)))){
this.dauphin.saute.gotoAndPlay("boost");
boost = false;
MovieClip(root).sonsF("boost", false);
};
right = true;
};
if (isKeyDown(40)){
if ((((((((((this.dauphin.etat == "saute")) && ((fini == false)))) && ((down == false)))) && ((peutPlonger == true)))) && (((this.dauphin.y + 40) < eau)))){
this.dauphin.saute.gotoAndPlay("plonge");
peutPlonger = false;
plongeFini = false;
MovieClip(root).sonsF("boost", false);
};
down = true;
};
if (isKeyDown(32)){
if (peutSonar == true){
spawnage("sonar", (this.dauphin.x + 50), this.dauphin.y);
peutSonar = false;
MovieClip(root).sonsF("sonar", false);
};
};
}
public function Bloop():void{
myTween5 = new TweenLite(this.dauphin, 5, {y:"-20", ease:Quad.easeOut, useFrames:true, onComplete:splashComplete});
this.dauphin.gotoAndStop("nage");
}
}
}//package StarSplash_NG_fla
Section 261
//menu_scene_dauphin_moves_114 (StarSplash_NG_fla.menu_scene_dauphin_moves_114)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_scene_dauphin_moves_114 extends MovieClip {
public function menu_scene_dauphin_moves_114(){
addFrameScript(19, frame20, 39, frame40, 93, frame94, 113, frame114, 163, frame164, 173, frame174, 178, frame179, 188, frame189, 213, frame214, 215, frame216, 243, frame244, 290, frame291, 300, frame301, 383, frame384, 403, frame404);
}
function frame164(){
MovieClip(parent).checkKeysUp(39);
MovieClip(parent).checkKeysDown(38);
}
function frame291(){
MovieClip(parent).checkKeysDown(38);
}
function frame94(){
MovieClip(parent).checkKeysUp(38);
}
function frame174(){
MovieClip(parent).checkKeysUp(38);
}
function frame214(){
}
function frame20(){
MovieClip(parent).checkKeysUp(40);
MovieClip(parent).dauphin.x = 150;
MovieClip(parent).dauphin.y = 385;
}
function frame216(){
}
function frame179(){
MovieClip(parent).checkKeysDown(38);
}
function frame114(){
MovieClip(parent).checkKeysDown(39);
}
function frame40(){
MovieClip(parent).checkKeysDown(38);
}
function frame244(){
MovieClip(parent).spawnage("meduse", 750, 220);
}
function frame189(){
MovieClip(parent).checkKeysUp(38);
}
function frame404(){
MovieClip(parent).checkKeysUp(40);
}
function frame384(){
MovieClip(parent).checkKeysDown(40);
}
function frame301(){
MovieClip(parent).checkKeysUp(38);
}
}
}//package StarSplash_NG_fla
Section 262
//menu_scene_dauphin_moves_FIN_173 (StarSplash_NG_fla.menu_scene_dauphin_moves_FIN_173)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menu_scene_dauphin_moves_FIN_173 extends MovieClip {
public function menu_scene_dauphin_moves_FIN_173(){
addFrameScript(19, frame20, 39, frame40, 88, frame89, 93, frame94, 159, frame160, 169, frame170, 174, frame175, 184, frame185, 189, frame190, 199, frame200, 204, frame205, 207, frame208, 224, frame225, 244, frame245);
}
function frame160(){
MovieClip(parent).checkKeysDown(38);
}
function frame200(){
MovieClip(parent).congrats.play();
MovieClip(parent).checkKeysUp(38);
}
function frame208(){
}
function frame89(){
MovieClip(parent).checkKeysUp(39);
}
function frame205(){
MovieClip(parent).scrollFini = true;
MovieClip(parent).checkKeysDown(39);
}
function frame170(){
MovieClip(parent).checkKeysUp(38);
}
function frame94(){
MovieClip(parent).checkKeysUp(38);
}
function frame20(){
MovieClip(parent).checkKeysDown(39);
}
function frame185(){
MovieClip(parent).checkKeysUp(38);
}
function frame225(){
MovieClip(parent).checkKeysUp(39);
}
function frame175(){
MovieClip(parent).checkKeysDown(38);
}
function frame190(){
MovieClip(parent).checkKeysDown(38);
}
function frame245(){
stop();
}
function frame40(){
MovieClip(parent).checkKeysDown(38);
}
}
}//package StarSplash_NG_fla
Section 263
//menuJeu_239 (StarSplash_NG_fla.menuJeu_239)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class menuJeu_239 extends MovieClip {
public var presTableau:MovieClip;
public var btnMoreGames:SimpleButton;
public var itemsC:TextField;
public var score:TextField;
public var noir:MovieClip;
public var progression:MovieClip;
public var m_son:MovieClip;
public var m_mus:MovieClip;
public function menuJeu_239(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.noir.mouseChildren = false;
this.noir.mouseEnabled = false;
this.btnMoreGames.addEventListener(MouseEvent.CLICK, clickMoreGames);
}
public function clickMoreGames(_arg1:Event=null):void{
MovieClip(parent).handle_btnMoreGames("InGameLogo");
}
}
}//package StarSplash_NG_fla
Section 264
//menuJeu_scoreText_240 (StarSplash_NG_fla.menuJeu_scoreText_240)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menuJeu_scoreText_240 extends MovieClip {
public var __id14_:LocalizedTextField;
public function menuJeu_scoreText_240(){
__setProp___id14__menuJeu_scoreText_Layer1_1();
}
function __setProp___id14__menuJeu_scoreText_Layer1_1(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.text = "{Score}";
__id14_.textColor = 13351252;
__id14_.textSize = 19;
__id14_.bold = false;
__id14_.disableWordwrap = false;
__id14_.embedFonts = true;
__id14_.font = "Porky's";
__id14_.hAlign = "center";
__id14_.multiline = false;
__id14_.vAlign = "middle";
__id14_.antiAliasType = "advanced";
__id14_.glowBlur = 3;
__id14_.glowColor = 0;
__id14_.useGlowFilter = false;
__id14_.glowQuality = 1;
__id14_.glowStrength = 5;
__id14_.gridFitType = "pixel";
__id14_.italic = false;
__id14_.selectable = false;
__id14_.underline = false;
try {
__id14_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 265
//menuJeu_starsText_241 (StarSplash_NG_fla.menuJeu_starsText_241)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class menuJeu_starsText_241 extends MovieClip {
public var __id15_:LocalizedTextField;
public function menuJeu_starsText_241(){
__setProp___id15__menuJeu_starsText_Layer1_1();
}
function __setProp___id15__menuJeu_starsText_Layer1_1(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.text = "{Stars}";
__id15_.textColor = 13351252;
__id15_.textSize = 15;
__id15_.bold = false;
__id15_.disableWordwrap = false;
__id15_.embedFonts = true;
__id15_.font = "Porky's";
__id15_.hAlign = "center";
__id15_.multiline = false;
__id15_.vAlign = "middle";
__id15_.antiAliasType = "advanced";
__id15_.glowBlur = 3;
__id15_.glowColor = 0;
__id15_.useGlowFilter = false;
__id15_.glowQuality = 1;
__id15_.glowStrength = 5;
__id15_.gridFitType = "pixel";
__id15_.italic = false;
__id15_.selectable = false;
__id15_.underline = false;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 266
//musique_c_135 (StarSplash_NG_fla.musique_c_135)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class musique_c_135 extends MovieClip {
public var hit_btn:MovieClip;
public function musique_c_135(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
if (MovieClip(root).musique == "off"){
this.gotoAndStop(2);
};
this.hit_btn.addEventListener(MouseEvent.CLICK, this.hitBtn1);
}
function frame2(){
stop();
}
public function hitBtn1(_arg1:MouseEvent):void{
if (this.currentFrame == 1){
MovieClip(root).musique = "off";
MovieClip(root).musicMC.Menu1_tr.volume = 0;
MovieClip(root).musicMC.Menu1_ch.soundTransform = MovieClip(root).musicMC.Menu1_tr;
MovieClip(root).musicMC.lvl1_tr.volume = 0;
MovieClip(root).musicMC.lvl1_ch.soundTransform = MovieClip(root).musicMC.lvl1_tr;
MovieClip(root).musicMC.lvl2_tr.volume = 0;
MovieClip(root).musicMC.lvl2_ch.soundTransform = MovieClip(root).musicMC.lvl2_tr;
MovieClip(root).musicMC.lvl3_tr.volume = 0;
MovieClip(root).musicMC.lvl3_ch.soundTransform = MovieClip(root).musicMC.lvl3_tr;
gotoAndStop(2);
} else {
MovieClip(root).musique = "on";
MovieClip(root).musicMC.Menu1_tr.volume = MovieClip(root).volumeValue;
MovieClip(root).musicMC.Menu1_ch.soundTransform = MovieClip(root).musicMC.Menu1_tr;
MovieClip(root).musicMC.lvl1_tr.volume = MovieClip(root).volumeValue;
MovieClip(root).musicMC.lvl1_ch.soundTransform = MovieClip(root).musicMC.lvl1_tr;
MovieClip(root).musicMC.lvl2_tr.volume = MovieClip(root).volumeValue;
MovieClip(root).musicMC.lvl2_ch.soundTransform = MovieClip(root).musicMC.lvl2_tr;
MovieClip(root).musicMC.lvl3_tr.volume = MovieClip(root).volumeValue;
MovieClip(root).musicMC.lvl3_ch.soundTransform = MovieClip(root).musicMC.lvl3_tr;
gotoAndStop(1);
};
}
}
}//package StarSplash_NG_fla
Section 267
//musique_c2_250 (StarSplash_NG_fla.musique_c2_250)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class musique_c2_250 extends MovieClip {
public var hit_btn:SimpleButton;
public function musique_c2_250(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
if (MovieClip(root).musique == "off"){
this.gotoAndStop(2);
};
this.hit_btn.addEventListener(MouseEvent.CLICK, this.hitBtn1);
}
function frame2(){
stop();
}
public function hitBtn1(_arg1:MouseEvent):void{
if (this.currentFrame == 1){
MovieClip(root).musique = "off";
MovieClip(root).musicMC.Menu1_tr.volume = 0;
MovieClip(root).musicMC.Menu1_ch.soundTransform = MovieClip(root).musicMC.Menu1_tr;
MovieClip(root).musicMC.lvl1_tr.volume = 0;
MovieClip(root).musicMC.lvl1_ch.soundTransform = MovieClip(root).musicMC.lvl1_tr;
MovieClip(root).musicMC.lvl2_tr.volume = 0;
MovieClip(root).musicMC.lvl2_ch.soundTransform = MovieClip(root).musicMC.lvl2_tr;
MovieClip(root).musicMC.lvl3_tr.volume = 0;
MovieClip(root).musicMC.lvl3_ch.soundTransform = MovieClip(root).musicMC.lvl3_tr;
gotoAndStop(2);
} else {
MovieClip(root).musique = "on";
MovieClip(root).musicMC.Menu1_tr.volume = MovieClip(root).volumeValue;
MovieClip(root).musicMC.Menu1_ch.soundTransform = MovieClip(root).musicMC.Menu1_tr;
MovieClip(root).musicMC.lvl1_tr.volume = MovieClip(root).volumeValue;
MovieClip(root).musicMC.lvl1_ch.soundTransform = MovieClip(root).musicMC.lvl1_tr;
MovieClip(root).musicMC.lvl2_tr.volume = MovieClip(root).volumeValue;
MovieClip(root).musicMC.lvl2_ch.soundTransform = MovieClip(root).musicMC.lvl2_tr;
MovieClip(root).musicMC.lvl3_tr.volume = MovieClip(root).volumeValue;
MovieClip(root).musicMC.lvl3_ch.soundTransform = MovieClip(root).musicMC.lvl3_tr;
gotoAndStop(1);
};
}
}
}//package StarSplash_NG_fla
Section 268
//noir_alpha_clip_254 (StarSplash_NG_fla.noir_alpha_clip_254)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class noir_alpha_clip_254 extends MovieClip {
public var noir:MovieClip;
public function noir_alpha_clip_254(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
}
}//package StarSplash_NG_fla
Section 269
//preloader_3 (StarSplash_NG_fla.preloader_3)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class preloader_3 extends MovieClip {
public var bx:MovieClip;
public function preloader_3(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package StarSplash_NG_fla
Section 270
//preloader_barre_4 (StarSplash_NG_fla.preloader_barre_4)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class preloader_barre_4 extends MovieClip {
public var b2:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b6:MovieClip;
public var b7:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
public var b8:MovieClip;
public function preloader_barre_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.b1.gotoAndPlay(105);
this.b2.gotoAndPlay(90);
this.b3.gotoAndPlay(75);
this.b4.gotoAndPlay(60);
this.b5.gotoAndPlay(45);
this.b6.gotoAndPlay(30);
this.b7.gotoAndPlay(15);
this.b8.gotoAndPlay(1);
}
}
}//package StarSplash_NG_fla
Section 271
//preloader_barre_tite_c_5 (StarSplash_NG_fla.preloader_barre_tite_c_5)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class preloader_barre_tite_c_5 extends MovieClip {
public function preloader_barre_tite_c_5(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package StarSplash_NG_fla
Section 272
//preloader_c_2 (StarSplash_NG_fla.preloader_c_2)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import CPMStar.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class preloader_c_2 extends MovieClip {
public var BAR:MovieClip;
public var ad:DisplayObject;
public var hyves2:MovieClip;
public var adBox:MovieClip;
public var hyves1:MovieClip;
public var CPMStarContentSpotID:String;
public var btn_start:MovieClip;
public function preloader_c_2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 122, frame123);
}
function frame3(){
if (this.BAR.currentFrame < 100){
this.BAR.play();
};
play();
}
function frame1(){
stop();
if (MovieClip(parent).Star == true){
gotoAndStop("pub");
} else {
if (MovieClip(parent).Hyves == true){
this.hyves2.addEventListener(MouseEvent.CLICK, clickMoreGames);
};
};
this.hyves1.visible = MovieClip(parent).Hyves;
this.hyves2.visible = MovieClip(parent).Hyves;
}
function frame2(){
stop();
CPMStarContentSpotID = "3786QFDD07C8A";
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
if (MovieClip(parent).Hyves == true){
this.hyves2.addEventListener(MouseEvent.CLICK, clickMoreGames);
};
this.hyves1.visible = MovieClip(parent).Hyves;
this.hyves2.visible = MovieClip(parent).Hyves;
}
public function hitBtn1(_arg1:MouseEvent):void{
this.btn_start.removeEventListener(MouseEvent.CLICK, this.hitBtn1);
MovieClip(parent).play();
}
function frame123(){
stop();
this.btn_start.addEventListener(MouseEvent.CLICK, this.hitBtn1);
}
public function clickMoreGames(_arg1:Event=null):void{
MovieClip(parent).handle_btnMoreGames("HyvesPreloader");
}
}
}//package StarSplash_NG_fla
Section 273
//pres_result_257 (StarSplash_NG_fla.pres_result_257)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class pres_result_257 extends MovieClip {
public var titre:MovieClip;
public var l1:MovieClip;
public var l3:MovieClip;
public var l2:MovieClip;
public function pres_result_257(){
addFrameScript(49, frame50, 74, frame75);
}
function frame75(){
stop();
if (MovieClip(root).lv.pratique == true){
MyGlobal.vague = (MyGlobal.vague - 1);
MovieClip(parent).nextPlace = "pres";
MovieClip(parent).gotoAndPlay("pres");
} else {
if ((((((MyGlobal.vague == 7)) || ((MyGlobal.vague == 14)))) || ((MyGlobal.vague == 21)))){
MovieClip(parent).nextPlace = "trans";
MovieClip(parent).gotoAndPlay("trans");
} else {
MovieClip(parent).nextPlace = "pres";
MovieClip(parent).gotoAndPlay("pres");
};
};
}
function frame50(){
stop();
}
}
}//package StarSplash_NG_fla
Section 274
//pres_result_l1_260 (StarSplash_NG_fla.pres_result_l1_260)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class pres_result_l1_260 extends MovieClip {
public var stars:TextField;
public function pres_result_l1_260(){
addFrameScript(0, frame1);
}
function frame1(){
this.stars.text = MovieClip(root).lv.totalItems;
}
}
}//package StarSplash_NG_fla
Section 275
//pres_result_l1_collectedText_265 (StarSplash_NG_fla.pres_result_l1_collectedText_265)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class pres_result_l1_collectedText_265 extends MovieClip {
public var __id18_:LocalizedTextField;
public function pres_result_l1_collectedText_265(){
__setProp___id18__pres_result_l1_collectedText_Layer1_1();
}
function __setProp___id18__pres_result_l1_collectedText_Layer1_1(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.text = "{CollectedResult}";
__id18_.textColor = 0xFFFF;
__id18_.textSize = 32;
__id18_.bold = false;
__id18_.disableWordwrap = false;
__id18_.embedFonts = true;
__id18_.font = "Berlin Sans FB Demi";
__id18_.hAlign = "left";
__id18_.multiline = false;
__id18_.vAlign = "middle";
__id18_.antiAliasType = "advanced";
__id18_.glowBlur = 3;
__id18_.glowColor = 0;
__id18_.useGlowFilter = false;
__id18_.glowQuality = 1;
__id18_.glowStrength = 5;
__id18_.gridFitType = "pixel";
__id18_.italic = false;
__id18_.selectable = false;
__id18_.underline = false;
try {
__id18_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 276
//pres_result_l1_neededText_263 (StarSplash_NG_fla.pres_result_l1_neededText_263)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class pres_result_l1_neededText_263 extends MovieClip {
public var __id17_:LocalizedTextField;
public function pres_result_l1_neededText_263(){
__setProp___id17__pres_result_l1_neededText_Layer1_1();
}
function __setProp___id17__pres_result_l1_neededText_Layer1_1(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.text = "{NeededResult}";
__id17_.textColor = 0xFFFF;
__id17_.textSize = 32;
__id17_.bold = false;
__id17_.disableWordwrap = false;
__id17_.embedFonts = true;
__id17_.font = "Berlin Sans FB Demi";
__id17_.hAlign = "left";
__id17_.multiline = false;
__id17_.vAlign = "middle";
__id17_.antiAliasType = "advanced";
__id17_.glowBlur = 3;
__id17_.glowColor = 0;
__id17_.useGlowFilter = false;
__id17_.glowQuality = 1;
__id17_.glowStrength = 5;
__id17_.gridFitType = "pixel";
__id17_.italic = false;
__id17_.selectable = false;
__id17_.underline = false;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 277
//pres_result_l1_starsText_261 (StarSplash_NG_fla.pres_result_l1_starsText_261)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class pres_result_l1_starsText_261 extends MovieClip {
public var __id16_:LocalizedTextField;
public function pres_result_l1_starsText_261(){
__setProp___id16__pres_result_l1_starsText_Layer1_1();
}
function __setProp___id16__pres_result_l1_starsText_Layer1_1(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.text = "{StarsResult}";
__id16_.textColor = 0xFFFF;
__id16_.textSize = 32;
__id16_.bold = false;
__id16_.disableWordwrap = false;
__id16_.embedFonts = true;
__id16_.font = "Berlin Sans FB Demi";
__id16_.hAlign = "left";
__id16_.multiline = false;
__id16_.vAlign = "middle";
__id16_.antiAliasType = "advanced";
__id16_.glowBlur = 3;
__id16_.glowColor = 0;
__id16_.useGlowFilter = false;
__id16_.glowQuality = 1;
__id16_.glowStrength = 5;
__id16_.gridFitType = "pixel";
__id16_.italic = false;
__id16_.selectable = false;
__id16_.underline = false;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 278
//pres_result_l2_262 (StarSplash_NG_fla.pres_result_l2_262)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class pres_result_l2_262 extends MovieClip {
public var needed:TextField;
public function pres_result_l2_262(){
addFrameScript(0, frame1);
}
function frame1(){
this.needed.text = MovieClip(root).lv.passeItems;
}
}
}//package StarSplash_NG_fla
Section 279
//pres_result_l3_264 (StarSplash_NG_fla.pres_result_l3_264)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class pres_result_l3_264 extends MovieClip {
public var collected:TextField;
public function pres_result_l3_264(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
this.collected.text = MovieClip(root).lv.itemsCollect;
}
function frame1(){
stop();
if (MovieClip(parent.parent).verdict == "perfect"){
gotoAndStop(2);
};
if (MovieClip(parent.parent).verdict == "failed"){
gotoAndStop(3);
};
this.collected.text = MovieClip(root).lv.itemsCollect;
}
function frame2(){
stop();
this.collected.text = MovieClip(root).lv.itemsCollect;
}
}
}//package StarSplash_NG_fla
Section 280
//pres_tableau_256 (StarSplash_NG_fla.pres_tableau_256)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class pres_tableau_256 extends MovieClip {
public var nextPlace:String;
public var verdict:String;
public function pres_tableau_256(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 14, frame15, 19, frame20, 24, frame25, 29, frame30, 34, frame35);
}
function frame10(){
gotoAndPlay(nextPlace);
}
function frame15(){
stop();
}
function frame1(){
stop();
nextPlace = null;
verdict = null;
MovieClip(root).lv.controles = true;
}
function frame25(){
stop();
}
function frame5(){
MovieClip(root).lv.controles = false;
MovieClip(parent).noir.play();
play();
}
function frame20(){
stop();
}
function frame30(){
MovieClip(parent).noir.play();
play();
}
function frame35(){
if (nextPlace == "pres"){
MovieClip(root).lv.chVague();
};
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 281
//pres_tableau_anime_314 (StarSplash_NG_fla.pres_tableau_anime_314)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class pres_tableau_anime_314 extends MovieClip {
public var btnNext:MovieClip;
public var btnReady:MovieClip;
public var btnPractice:MovieClip;
public function pres_tableau_anime_314(){
addFrameScript(34, frame35, 49, frame50);
}
public function clickPractice(_arg1:Event=null):void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
this.btnNext.removeEventListener(MouseEvent.CLICK, clickNext);
this.btnPractice.removeEventListener(MouseEvent.CLICK, clickPractice);
MovieClip(root).lv.pratique = true;
this.play();
}
function frame35(){
stop();
this.btnPractice.focusRect = false;
this.btnNext.focusRect = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
this.btnNext.addEventListener(MouseEvent.CLICK, clickNext);
this.btnPractice.addEventListener(MouseEvent.CLICK, clickPractice);
}
public function clickNext(_arg1:Event=null):void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
this.btnNext.removeEventListener(MouseEvent.CLICK, clickNext);
this.btnPractice.removeEventListener(MouseEvent.CLICK, clickPractice);
MovieClip(root).lv.pratique = false;
this.play();
}
function frame50(){
MovieClip(parent).gotoAndPlay("noir_out");
stop();
}
public function checkKeysDown(_arg1:KeyboardEvent):void{
if (((MovieClip(root).lv.isKeyDown(37)) || (MovieClip(root).lv.isKeyDown(65)))){
stage.focus = this.btnPractice;
};
if (((MovieClip(root).lv.isKeyDown(39)) || (MovieClip(root).lv.isKeyDown(68)))){
stage.focus = this.btnNext;
};
if (((MovieClip(root).lv.isKeyDown(32)) || (MovieClip(root).lv.isKeyDown(13)))){
if (stage.focus == this.btnPractice){
clickPractice();
} else {
if (stage.focus == this.btnNext){
clickNext();
};
};
};
}
}
}//package StarSplash_NG_fla
Section 282
//pres_transition_361 (StarSplash_NG_fla.pres_transition_361)
package StarSplash_NG_fla {
import com.newgrounds.*;
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import com.spilgames.api.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class pres_transition_361 extends MovieClip {
public var etMask:MovieClip;
public var muz:String;
public function pres_transition_361(){
addFrameScript(0, frame1, 1, frame2, 32, frame33, 49, frame50, 54, frame55, 74, frame75, 104, frame105, 110, frame111, 150, frame151);
}
function frame151(){
stop();
MovieClip(parent.parent).btnMoreGames.removeEventListener(MouseEvent.CLICK, MovieClip(parent.parent).clickMoreGames);
MovieClip(root).gotoAndPlay("fin", "Menu");
}
function frame75(){
etMask.play();
}
function frame105(){
stop();
MovieClip(parent).nextPlace = "pres";
MovieClip(parent).gotoAndPlay("pres");
}
function frame1(){
etMask.gotoAndStop(1);
}
function frame111(){
MovieClip(root).frameName = null;
etMask.gotoAndStop(1);
play();
}
function frame2(){
MovieClip(root).musicF("out", 45, "end");
}
function frame33(){
MovieClip(root).sonsF("zonePassed", false);
}
function frame55(){
if (MyGlobal.vague == 7){
AwardsService.submitAward("award1");
API.unlockMedal("Novice Dolphin");
} else {
if (MyGlobal.vague == 14){
AwardsService.submitAward("award2");
API.unlockMedal("Swims Like a Fish");
} else {
if (MyGlobal.vague == 21){
AwardsService.submitAward("award3");
API.unlockMedal("Master Acrobat");
};
};
};
if (MyGlobal.vague == 21){
gotoAndPlay("fini");
} else {
if (MovieClip(root).lv.zone == "port"){
muz = "lvl2";
} else {
if (MovieClip(root).lv.zone == "nuit"){
muz = "lvl3";
};
};
MovieClip(root).musicF("in", 45, muz);
};
}
function frame50(){
if (MovieClip(root).lv.zone == "tropical"){
MovieClip(root).lv.zone = "port";
} else {
if (MovieClip(root).lv.zone == "port"){
MovieClip(root).lv.zone = "nuit";
};
};
MovieClip(root).lv.chZone();
MovieClip(root).lv.itemsCollect = 0;
MovieClip(root).menuJeu.itemsC.text = 0;
MovieClip(root).menuJeu.progression.gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 283
//pres_transition_text_362 (StarSplash_NG_fla.pres_transition_text_362)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class pres_transition_text_362 extends MovieClip {
public function pres_transition_text_362(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
if (MyGlobal.vague == 14){
gotoAndStop(2);
} else {
if (MyGlobal.vague == 21){
gotoAndStop(3);
};
};
stop();
}
function frame2(){
stop();
}
}
}//package StarSplash_NG_fla
Section 284
//pres_transition_text_AdvanceText_365 (StarSplash_NG_fla.pres_transition_text_AdvanceText_365)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class pres_transition_text_AdvanceText_365 extends MovieClip {
public var __id41_:LocalizedTextField;
public function pres_transition_text_AdvanceText_365(){
__setProp___id41__pres_transition_text_AdvanceText_Layer1_1();
}
function __setProp___id41__pres_transition_text_AdvanceText_Layer1_1(){
try {
__id41_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id41_.text = "{AdvancedPassed}";
__id41_.textColor = 10953471;
__id41_.textSize = 60;
__id41_.bold = false;
__id41_.disableWordwrap = false;
__id41_.embedFonts = true;
__id41_.font = "Berlin Sans FB Demi";
__id41_.hAlign = "center";
__id41_.multiline = true;
__id41_.vAlign = "middle";
__id41_.antiAliasType = "advanced";
__id41_.glowBlur = 3;
__id41_.glowColor = 0;
__id41_.useGlowFilter = false;
__id41_.glowQuality = 1;
__id41_.glowStrength = 5;
__id41_.gridFitType = "pixel";
__id41_.italic = false;
__id41_.selectable = false;
__id41_.underline = false;
try {
__id41_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 285
//pres_transition_text_EasyText_363 (StarSplash_NG_fla.pres_transition_text_EasyText_363)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class pres_transition_text_EasyText_363 extends MovieClip {
public var __id39_:LocalizedTextField;
public function pres_transition_text_EasyText_363(){
__setProp___id39__pres_transition_text_EasyText_Layer1_1();
}
function __setProp___id39__pres_transition_text_EasyText_Layer1_1(){
try {
__id39_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id39_.text = "{EasyPassed}";
__id39_.textColor = 0xFFFF;
__id39_.textSize = 60;
__id39_.bold = false;
__id39_.disableWordwrap = false;
__id39_.embedFonts = true;
__id39_.font = "Berlin Sans FB Demi";
__id39_.hAlign = "center";
__id39_.multiline = true;
__id39_.vAlign = "middle";
__id39_.antiAliasType = "advanced";
__id39_.glowBlur = 3;
__id39_.glowColor = 0;
__id39_.useGlowFilter = false;
__id39_.glowQuality = 1;
__id39_.glowStrength = 5;
__id39_.gridFitType = "pixel";
__id39_.italic = false;
__id39_.selectable = false;
__id39_.underline = false;
try {
__id39_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 286
//pres_transition_text_MediumText_364 (StarSplash_NG_fla.pres_transition_text_MediumText_364)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class pres_transition_text_MediumText_364 extends MovieClip {
public var __id40_:LocalizedTextField;
public function pres_transition_text_MediumText_364(){
__setProp___id40__pres_transition_text_MediumText_Layer1_1();
}
function __setProp___id40__pres_transition_text_MediumText_Layer1_1(){
try {
__id40_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id40_.text = "{MediumPassed}";
__id40_.textColor = 4033278;
__id40_.textSize = 60;
__id40_.bold = false;
__id40_.disableWordwrap = false;
__id40_.embedFonts = true;
__id40_.font = "Berlin Sans FB Demi";
__id40_.hAlign = "center";
__id40_.multiline = true;
__id40_.vAlign = "middle";
__id40_.antiAliasType = "advanced";
__id40_.glowBlur = 3;
__id40_.glowColor = 0;
__id40_.useGlowFilter = false;
__id40_.glowQuality = 1;
__id40_.glowStrength = 5;
__id40_.gridFitType = "pixel";
__id40_.italic = false;
__id40_.selectable = false;
__id40_.underline = false;
try {
__id40_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 287
//qualitee_clip_88 (StarSplash_NG_fla.qualitee_clip_88)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class qualitee_clip_88 extends MovieClip {
public var q_text:MovieClip;
}
}//package StarSplash_NG_fla
Section 288
//qualitee_clip_text_90 (StarSplash_NG_fla.qualitee_clip_text_90)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class qualitee_clip_text_90 extends MovieClip {
public function qualitee_clip_text_90(){
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 59, frame60);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame30(){
gotoAndStop(1);
}
function frame45(){
gotoAndStop(1);
}
function frame60(){
gotoAndStop(1);
}
}
}//package StarSplash_NG_fla
Section 289
//snailsanimation_87 (StarSplash_NG_fla.snailsanimation_87)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class snailsanimation_87 extends MovieClip {
public function snailsanimation_87(){
addFrameScript(1, frame2, 89, frame90);
}
function frame90(){
stop();
MovieClip(parent).play();
}
function frame2(){
MovieClip(root).musicF("in", 85, "Menu");
}
}
}//package StarSplash_NG_fla
Section 290
//SnailsAnimation_splash_85 (StarSplash_NG_fla.SnailsAnimation_splash_85)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class SnailsAnimation_splash_85 extends MovieClip {
public var snails:SimpleButton;
public function SnailsAnimation_splash_85(){
addFrameScript(0, frame1, 8, frame9, 22, frame23);
}
function frame1(){
this.snails.addEventListener(MouseEvent.CLICK, MovieClip(root).clickSNL);
if (MovieClip(root).snailsLogo == true){
this.snails.mouseEnabled = true;
} else {
this.snails.mouseEnabled = false;
};
}
function frame23(){
stop();
this.snails.removeEventListener(MouseEvent.CLICK, MovieClip(root).clickSNL);
MovieClip(parent).play();
}
function frame9(){
stop();
}
}
}//package StarSplash_NG_fla
Section 291
//son_c_140 (StarSplash_NG_fla.son_c_140)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class son_c_140 extends MovieClip {
public var hit_btn:MovieClip;
public function son_c_140(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
if (MovieClip(root).sons == "off"){
this.gotoAndStop(2);
};
this.hit_btn.addEventListener(MouseEvent.CLICK, this.hitBtn1);
}
function frame2(){
stop();
}
public function hitBtn1(_arg1:MouseEvent):void{
if (this.currentFrame == 1){
MovieClip(root).sons = "off";
MovieClip(root).sonMC.gotoAndPlay("mute");
this.gotoAndStop(2);
} else {
MovieClip(root).sons = "on";
this.gotoAndStop(1);
};
}
}
}//package StarSplash_NG_fla
Section 292
//son_c2_252 (StarSplash_NG_fla.son_c2_252)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class son_c2_252 extends MovieClip {
public var hit_btn:SimpleButton;
public function son_c2_252(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
if (MovieClip(root).sons == "off"){
this.gotoAndStop(2);
};
this.hit_btn.addEventListener(MouseEvent.CLICK, this.hitBtn1);
}
function frame2(){
stop();
}
public function hitBtn1(_arg1:MouseEvent):void{
if (this.currentFrame == 1){
MovieClip(root).sons = "off";
MovieClip(root).sonMC.gotoAndPlay("mute");
this.gotoAndStop(2);
} else {
MovieClip(root).sons = "on";
this.gotoAndStop(1);
};
}
}
}//package StarSplash_NG_fla
Section 293
//sonar_clip_grossi_368 (StarSplash_NG_fla.sonar_clip_grossi_368)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class sonar_clip_grossi_368 extends MovieClip {
public function sonar_clip_grossi_368(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package StarSplash_NG_fla
Section 294
//Spil_ZapapaHyves_powered_10 (StarSplash_NG_fla.Spil_ZapapaHyves_powered_10)
package StarSplash_NG_fla {
import flash.display.*;
public dynamic class Spil_ZapapaHyves_powered_10 extends MovieClip {
public var hit:MovieClip;
public function Spil_ZapapaHyves_powered_10(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
this.mouseChildren = false;
this.hitArea = hit;
this.hit.visible = false;
}
}
}//package StarSplash_NG_fla
Section 295
//splash_375 (StarSplash_NG_fla.splash_375)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class splash_375 extends MovieClip {
public function splash_375(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
MovieClip(parent.parent).deleteSplash(MovieClip(parent).typeSplash);
}
}
}//package StarSplash_NG_fla
Section 296
//t2_319 (StarSplash_NG_fla.t2_319)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class t2_319 extends MovieClip {
public var __id26_:LocalizedTextField;
public function t2_319(){
__setProp___id26__t2_Layer2_1();
}
function __setProp___id26__t2_Layer2_1(){
try {
__id26_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id26_.text = "{Air1Pres}";
__id26_.textColor = 0xFFFFFF;
__id26_.textSize = 13;
__id26_.bold = false;
__id26_.disableWordwrap = false;
__id26_.embedFonts = true;
__id26_.font = "Futura BdCn BT";
__id26_.hAlign = "left";
__id26_.multiline = false;
__id26_.vAlign = "middle";
__id26_.antiAliasType = "advanced";
__id26_.glowBlur = 3;
__id26_.glowColor = 0;
__id26_.useGlowFilter = false;
__id26_.glowQuality = 1;
__id26_.glowStrength = 5;
__id26_.gridFitType = "pixel";
__id26_.italic = false;
__id26_.selectable = false;
__id26_.underline = false;
try {
__id26_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 297
//t5_320 (StarSplash_NG_fla.t5_320)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class t5_320 extends MovieClip {
public var __id27_:LocalizedTextField;
public function t5_320(){
__setProp___id27__t5_Layer1_1();
}
function __setProp___id27__t5_Layer1_1(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.text = "{Air2Pres}";
__id27_.textColor = 0xFFFFFF;
__id27_.textSize = 13;
__id27_.bold = false;
__id27_.disableWordwrap = false;
__id27_.embedFonts = true;
__id27_.font = "Futura BdCn BT";
__id27_.hAlign = "left";
__id27_.multiline = false;
__id27_.vAlign = "middle";
__id27_.antiAliasType = "advanced";
__id27_.glowBlur = 3;
__id27_.glowColor = 0;
__id27_.useGlowFilter = false;
__id27_.glowQuality = 1;
__id27_.glowStrength = 5;
__id27_.gridFitType = "pixel";
__id27_.italic = false;
__id27_.selectable = false;
__id27_.underline = false;
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 298
//t8_321 (StarSplash_NG_fla.t8_321)
package StarSplash_NG_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class t8_321 extends MovieClip {
public var __id28_:LocalizedTextField;
public function t8_321(){
__setProp___id28__t8_Layer1_1();
}
function __setProp___id28__t8_Layer1_1(){
try {
__id28_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id28_.text = "{AnyPres}";
__id28_.textColor = 0xFFFFFF;
__id28_.textSize = 13;
__id28_.bold = false;
__id28_.disableWordwrap = false;
__id28_.embedFonts = true;
__id28_.font = "Futura BdCn BT";
__id28_.hAlign = "left";
__id28_.multiline = false;
__id28_.vAlign = "middle";
__id28_.antiAliasType = "advanced";
__id28_.glowBlur = 3;
__id28_.glowColor = 0;
__id28_.useGlowFilter = false;
__id28_.glowQuality = 1;
__id28_.glowStrength = 5;
__id28_.gridFitType = "pixel";
__id28_.italic = false;
__id28_.selectable = false;
__id28_.underline = false;
try {
__id28_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package StarSplash_NG_fla
Section 299
//trans_etoile_fin_177 (StarSplash_NG_fla.trans_etoile_fin_177)
package StarSplash_NG_fla {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class trans_etoile_fin_177 extends MovieClip {
public function trans_etoile_fin_177(){
addFrameScript(1, frame2, 31, frame32);
}
function frame2(){
MovieClip(root).musicF("in", 25, "Menu");
}
function frame32(){
stop();
}
}
}//package StarSplash_NG_fla
Section 300
//Bouée (Bouée)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class Bouée extends MovieClip {
public var b:MovieClip;
public function Bouée(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(parent).eau_bg.frameName == "nuit"){
this.transform.colorTransform = new ColorTransform(0.7, 0.55, 0.7, 1, 0, 0, 70, 0);
};
if (MovieClip(parent).eau_bg.frameName == "port"){
this.b.corde.coquillages.visible = true;
} else {
this.b.corde.coquillages.visible = false;
};
b.tete.passe.text = MovieClip(parent).passeItems;
b.tete.drapeau.g.lv.text = MyGlobal.vague;
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function entFrame(_arg1:Event):void{
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
this.x = (this.x - MovieClip(parent).itemSpd);
if (this.x < -70){
MovieClip(parent).deleteSpawn(this.name, 0);
};
}
}
}//package
Section 301
//Espace (Espace)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class Espace extends MovieClip {
public function Espace(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function entFrame(_arg1:Event):void{
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
this.x = (this.x - MovieClip(parent).itemSpd);
if (this.x <= 700){
MovieClip(parent)[("tableau" + MyGlobal.vague)].nextSpawn();
MovieClip(parent).deleteSpawn(this.name, 0);
};
}
}
}//package
Section 302
//EtoileJaune (EtoileJaune)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class EtoileJaune extends MovieClip {
public function EtoileJaune(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function entFrame(_arg1:Event):void{
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
this.x = (this.x - MovieClip(parent).itemSpd);
if (hitTestObject(MovieClip(parent).hit)){
MovieClip(parent).deleteSpawn(this.name, 1);
} else {
if (this.x < -20){
trace(("spawn = " + MovieClip(parent)[("tableau" + MyGlobal.vague)].spawn));
MovieClip(parent).deleteSpawn(this.name, 0);
};
};
}
}
}//package
Section 303
//EtoileTrans (EtoileTrans)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class EtoileTrans extends MovieClip {
public function EtoileTrans(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function entFrame(_arg1:Event):void{
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
this.x = (this.x - MovieClip(parent).itemSpd);
if (MovieClip(parent).sonarName != null){
if (hitTestObject(MovieClip(parent).sonarName)){
MovieClip(parent).deleteSpawn(this.name, 1);
};
} else {
if (this.x < -20){
trace(("spawn = " + MovieClip(parent)[("tableau" + MyGlobal.vague)].spawn));
MovieClip(parent).deleteSpawn(this.name, 0);
};
};
}
}
}//package
Section 304
//EtoileTrans2 (EtoileTrans2)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class EtoileTrans2 extends MovieClip {
public var tourne:MovieClip;
public var pos:uint;
public function EtoileTrans2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.tourne.gotoAndPlay(pos);
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function entFrame(_arg1:Event):void{
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
this.x = (this.x - MovieClip(parent).itemSpd);
if (MovieClip(parent).sonarName != null){
if (hitTestObject(MovieClip(parent).sonarName)){
MovieClip(parent).deleteSpawn(this.name, 1);
};
} else {
if (this.x < -20){
trace(("spawn = " + MovieClip(parent)[("tableau" + MyGlobal.vague)].spawn));
MovieClip(parent).deleteSpawn(this.name, 0);
};
};
}
}
}//package
Section 305
//Meduse (Meduse)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class Meduse extends MovieClip {
public var m:MovieClip;
public var hit:MovieClip;
public function Meduse(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(parent).eau_bg.frameName == "nuit"){
this.transform.colorTransform = new ColorTransform(0.9, 0.8, 0.9, 1, 0, 0, 0, 0);
};
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function entFrame(_arg1:Event):void{
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
this.x = (this.x - MovieClip(parent).itemSpd);
if ((((MovieClip(parent).dauphin.etat == "saute")) && (!((MovieClip(parent).dauphin.saute.hit2 == null))))){
if (((this.hit.hitTestObject(MovieClip(parent).dauphin.saute.hit2)) && ((this.m.touche == false)))){
MovieClip(parent).preMeduseSaut();
this.m.gotoAndStop("spring");
};
} else {
if (this.x < -70){
MovieClip(parent).deleteSpawn(this.name, 0);
};
};
}
}
}//package
Section 306
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 307
//mus_lvl1 (mus_lvl1)
package {
import flash.media.*;
public dynamic class mus_lvl1 extends Sound {
}
}//package
Section 308
//mus_lvl2 (mus_lvl2)
package {
import flash.media.*;
public dynamic class mus_lvl2 extends Sound {
}
}//package
Section 309
//mus_lvl3 (mus_lvl3)
package {
import flash.media.*;
public dynamic class mus_lvl3 extends Sound {
}
}//package
Section 310
//mus_Menu (mus_Menu)
package {
import flash.media.*;
public dynamic class mus_Menu extends Sound {
}
}//package
Section 311
//musicMC_clip (musicMC_clip)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class musicMC_clip extends MovieClip {
public var m_lvl3:MovieClip;
public var m_lvl4:MovieClip;
public var lvl3_ch:SoundChannel;
public var m_Menu:MovieClip;
public var lvl3_tr;
public var Menu1_ch:SoundChannel;
public var m_Erreurs:MovieClip;
public var lvl2:Sound;
public var Menu1_tr;
public var lvl3:Sound;
public var lvl1_ch:SoundChannel;
public var lvl1:Sound;
public var lvl1_tr;
public var Menu1:Sound;
public var lvl2_ch:SoundChannel;
public var lvl2_tr;
public var m_lvl1:MovieClip;
public var m_lvl2:MovieClip;
public function musicMC_clip(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
MovieClip(parent).musFrame = "lvl1";
lvl1_ch = lvl1.play(0, 9999);
if (MovieClip(parent).musique == "on"){
lvl1_tr.volume = MovieClip(parent).volumeValue;
} else {
lvl1_tr.volume = 0;
};
lvl1_ch.soundTransform = lvl1_tr;
}
function frame7(){
stop();
}
function frame6(){
stop();
}
function frame4(){
stop();
MovieClip(parent).musFrame = "lvl2";
lvl2_ch = lvl2.play(0, 9999);
if (MovieClip(parent).musique == "on"){
lvl2_tr.volume = MovieClip(parent).volumeValue;
} else {
lvl2_tr.volume = 0;
};
lvl2_ch.soundTransform = lvl2_tr;
}
function frame1(){
stop();
Menu1 = new mus_Menu();
Menu1_ch = new SoundChannel();
Menu1_tr = new SoundTransform();
lvl1 = new mus_lvl1();
lvl1_ch = new SoundChannel();
lvl1_tr = new SoundTransform();
lvl2 = new mus_lvl2();
lvl2_ch = new SoundChannel();
lvl2_tr = new SoundTransform();
lvl3 = new mus_lvl3();
lvl3_ch = new SoundChannel();
lvl3_tr = new SoundTransform();
}
function frame2(){
stop();
MovieClip(parent).musFrame = "Menu";
Menu1_ch = Menu1.play(0, 9999);
if (MovieClip(parent).musique == "on"){
Menu1_tr.volume = MovieClip(parent).volumeValue;
} else {
Menu1_tr.volume = 0;
};
Menu1_ch.soundTransform = Menu1_tr;
}
function frame5(){
stop();
MovieClip(parent).musFrame = "lvl3";
lvl3_ch = lvl3.play(0, 9999);
if (MovieClip(parent).musique == "on"){
lvl3_tr.volume = MovieClip(parent).volumeValue;
} else {
lvl3_tr.volume = 0;
};
lvl3_ch.soundTransform = lvl3_tr;
}
}
}//package
Section 312
//MyGlobal (MyGlobal)
package {
public class MyGlobal {
public static var score:Number = new Number();
public static var vague:uint = new uint();
public static var langue:String = new String();
}
}//package
Section 313
//NewgroundsAPIAsset_big_popup_background (NewgroundsAPIAsset_big_popup_background)
package {
import flash.display.*;
public dynamic class NewgroundsAPIAsset_big_popup_background extends MovieClip {
public var tl:MovieClip;
public var br:MovieClip;
public var tr:MovieClip;
public var l:MovieClip;
public var shadow:MovieClip;
public var r:MovieClip;
public var b:MovieClip;
public var bl:MovieClip;
public var t:MovieClip;
public var c:MovieClip;
}
}//package
Section 314
//Sonar (Sonar)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class Sonar extends MovieClip {
public function Sonar(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
MovieClip(parent).sonarName = MovieClip(parent).getChildByName(this.name);
this.addEventListener(Event.ENTER_FRAME, entFrame);
}
public function entFrame(_arg1:Event):void{
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
this.x = (this.x + 40);
if (this.x > 800){
MovieClip(parent).sonarName = null;
MovieClip(parent).peutSonar = true;
MovieClip(parent).deleteSpawn(this.name, 0);
};
}
}
}//package
Section 315
//sonMC_clip (sonMC_clip)
package {
import flash.display.*;
public dynamic class sonMC_clip extends MovieClip {
public var needPractice:MovieClip;
public var etoile:MovieClip;
public var perfect:MovieClip;
public var zonePassed:MovieClip;
public var sonar:MovieClip;
public var triple:MovieClip;
public var wellDone:MovieClip;
public var boing:MovieClip;
public var splash:MovieClip;
public var passed:MovieClip;
public var splashOut:MovieClip;
public var boost:MovieClip;
public var gameOver:MovieClip;
public function sonMC_clip(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
this.gotoAndStop(1);
}
}
}//package
Section 316
//Splash1 (Splash1)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class Splash1 extends MovieClip {
public var bulles:MovieClip;
public var typeSplash:String;
public var splash:MovieClip;
public function Splash1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(parent).eau_bg.frameName == "nuit"){
this.splash.transform.colorTransform = new ColorTransform(0.6, 0.5, 0.7, 1, 10, 0, 50, 0);
};
this.addEventListener(Event.ENTER_FRAME, entFrame);
typeSplash = "grosSplash";
}
public function entFrame(_arg1:Event):void{
this.x = (this.x - 8);
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
}
}
}//package
Section 317
//TiSplash1 (TiSplash1)
package {
import flash.display.*;
import flash.events.*;
import flash.xml.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class TiSplash1 extends MovieClip {
public var typeSplash:String;
public var splash:MovieClip;
public function TiSplash1(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
if (MovieClip(parent).eau_bg.frameName == "nuit"){
this.splash.transform.colorTransform = new ColorTransform(0.6, 0.5, 0.7, 1, 10, 0, 50, 0);
};
this.addEventListener(Event.ENTER_FRAME, entFrame);
typeSplash = "tiSplash";
}
public function entFrame(_arg1:Event):void{
this.x = (this.x - 8);
if (!(((MovieClip(root).frameName == "menu")) || ((MovieClip(root).frameName == "jeu")))){
this.removeEventListener(Event.ENTER_FRAME, entFrame);
};
}
}
}//package