Section 1
//JSON (com.adobe.serialization.json.JSON)
package com.adobe.serialization.json {
public class JSON {
public static function decode(_arg1:String){
var _local2:JSONDecoder;
_local2 = new JSONDecoder(_arg1);
return (_local2.getValue());
}
public static function encode(_arg1:Object):String{
var _local2:JSONEncoder;
_local2 = new JSONEncoder(_arg1);
return (_local2.getString());
}
}
}//package com.adobe.serialization.json
Section 2
//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){
tokenizer = new JSONTokenizer(_arg1);
nextToken();
value = parseValue();
}
private function nextToken():JSONToken{
return ((token = tokenizer.getNextToken()));
}
private function parseObject():Object{
var _local1:Object;
var _local2:String;
_local1 = new Object();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
while (true) {
if (token.type == JSONTokenType.STRING){
_local2 = String(token.value);
nextToken();
if (token.type == JSONTokenType.COLON){
nextToken();
_local1[_local2] = parseValue();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
if (token.type == JSONTokenType.COMMA){
nextToken();
} else {
tokenizer.parseError(("Expecting } or , but found " + token.value));
};
} else {
tokenizer.parseError(("Expecting : but found " + token.value));
};
} else {
tokenizer.parseError(("Expecting string but found " + token.value));
};
};
return (null);
}
private function parseArray():Array{
var _local1:Array;
_local1 = new Array();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
while (true) {
_local1.push(parseValue());
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
if (token.type == JSONTokenType.COMMA){
nextToken();
} else {
tokenizer.parseError(("Expecting ] or , but found " + token.value));
};
};
return (null);
}
public function getValue(){
return (value);
}
private function parseValue():Object{
if (token == null){
tokenizer.parseError("Unexpected end of input");
};
switch (token.type){
case JSONTokenType.LEFT_BRACE:
return (parseObject());
case JSONTokenType.LEFT_BRACKET:
return (parseArray());
case JSONTokenType.STRING:
case JSONTokenType.NUMBER:
case JSONTokenType.TRUE:
case JSONTokenType.FALSE:
case JSONTokenType.NULL:
return (token.value);
default:
tokenizer.parseError(("Unexpected " + token.value));
};
return (null);
}
}
}//package com.adobe.serialization.json
Section 3
//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){
jsonString = convertToString(_arg1);
}
private function arrayToString(_arg1:Array):String{
var _local2:String;
var _local3:int;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
if (_local2.length > 0){
_local2 = (_local2 + ",");
};
_local2 = (_local2 + convertToString(_arg1[_local3]));
_local3++;
};
return ((("[" + _local2) + "]"));
}
private function convertToString(_arg1):String{
if ((_arg1 is String)){
return (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 (arrayToString((_arg1 as Array)));
};
if ((((_arg1 is Object)) && (!((_arg1 == null))))){
return (objectToString(_arg1));
};
};
};
return ("null");
}
private function escapeString(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:int;
var _local6:String;
var _local7:String;
_local2 = "";
_local4 = _arg1.length;
_local5 = 0;
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 objectToString(_arg1:Object):String{
var s:String;
var classInfo:XML;
var value:Object;
var key:String;
var v:XML;
var o = _arg1;
s = "";
classInfo = 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 + ((escapeString(key) + ":") + convertToString(value)));
};
};
} else {
for each (v in classInfo..*.(((name() == "variable")) || ((name() == "accessor")))) {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((escapeString(v.@name.toString()) + ":") + convertToString(o[v.@name])));
};
};
return ((("{" + s) + "}"));
}
public function getString():String{
return (jsonString);
}
}
}//package com.adobe.serialization.json
Section 4
//JSONParseError (com.adobe.serialization.json.JSONParseError)
package com.adobe.serialization.json {
public class JSONParseError extends Error {
private var _text:String;
private var _location:int;
public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){
super(_arg1);
name = "JSONParseError";
_location = _arg2;
_text = _arg3;
}
public function get text():String{
return (_text);
}
public function get location():int{
return (_location);
}
}
}//package com.adobe.serialization.json
Section 5
//JSONToken (com.adobe.serialization.json.JSONToken)
package com.adobe.serialization.json {
public class JSONToken {
private var _value:Object;
private var _type:int;
public function JSONToken(_arg1:int=-1, _arg2:Object=null){
_type = _arg1;
_value = _arg2;
}
public function set value(_arg1:Object):void{
_value = _arg1;
}
public function get value():Object{
return (_value);
}
public function set type(_arg1:int):void{
_type = _arg1;
}
public function get type():int{
return (_type);
}
}
}//package com.adobe.serialization.json
Section 6
//JSONTokenizer (com.adobe.serialization.json.JSONTokenizer)
package com.adobe.serialization.json {
public class JSONTokenizer {
private var loc:int;
private var ch:String;
private var obj:Object;
private var jsonString:String;
public function JSONTokenizer(_arg1:String){
jsonString = _arg1;
loc = 0;
nextChar();
}
private function skipComments():void{
if (ch == "/"){
nextChar();
switch (ch){
case "/":
do {
nextChar();
} while (((!((ch == "\n"))) && (!((ch == "")))));
nextChar();
break;
case "*":
nextChar();
while (true) {
if (ch == "*"){
nextChar();
if (ch == "/"){
nextChar();
break;
};
} else {
nextChar();
};
if (ch == ""){
parseError("Multi-line comment not closed");
};
};
break;
default:
parseError((("Unexpected " + ch) + " encountered (expecting '/' or '*' )"));
};
};
}
private function isDigit(_arg1:String):Boolean{
return ((((_arg1 >= "0")) && ((_arg1 <= "9"))));
}
private function readNumber():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:Number;
_local1 = new JSONToken();
_local1.type = JSONTokenType.NUMBER;
_local2 = "";
if (ch == "-"){
_local2 = (_local2 + "-");
nextChar();
};
if (!isDigit(ch)){
parseError("Expecting a digit");
};
if (ch == "0"){
_local2 = (_local2 + ch);
nextChar();
if (isDigit(ch)){
parseError("A digit cannot immediately follow 0");
};
} else {
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
if (ch == "."){
_local2 = (_local2 + ".");
nextChar();
if (!isDigit(ch)){
parseError("Expecting a digit");
};
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
if ((((ch == "e")) || ((ch == "E")))){
_local2 = (_local2 + "e");
nextChar();
if ((((ch == "+")) || ((ch == "-")))){
_local2 = (_local2 + ch);
nextChar();
};
if (!isDigit(ch)){
parseError("Scientific notation number needs exponent value");
};
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
_local3 = Number(_local2);
if (((isFinite(_local3)) && (!(isNaN(_local3))))){
_local1.value = _local3;
return (_local1);
};
parseError((("Number " + _local3) + " is not valid!"));
return (null);
}
private function nextChar():String{
return ((ch = jsonString.charAt(loc++)));
}
public function getNextToken():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:String;
var _local4:String;
_local1 = new JSONToken();
skipIgnored();
switch (ch){
case "{":
_local1.type = JSONTokenType.LEFT_BRACE;
_local1.value = "{";
nextChar();
break;
case "}":
_local1.type = JSONTokenType.RIGHT_BRACE;
_local1.value = "}";
nextChar();
break;
case "[":
_local1.type = JSONTokenType.LEFT_BRACKET;
_local1.value = "[";
nextChar();
break;
case "]":
_local1.type = JSONTokenType.RIGHT_BRACKET;
_local1.value = "]";
nextChar();
break;
case ",":
_local1.type = JSONTokenType.COMMA;
_local1.value = ",";
nextChar();
break;
case ":":
_local1.type = JSONTokenType.COLON;
_local1.value = ":";
nextChar();
break;
case "t":
_local2 = ((("t" + nextChar()) + nextChar()) + nextChar());
if (_local2 == "true"){
_local1.type = JSONTokenType.TRUE;
_local1.value = true;
nextChar();
} else {
parseError(("Expecting 'true' but found " + _local2));
};
break;
case "f":
_local3 = (((("f" + nextChar()) + nextChar()) + nextChar()) + nextChar());
if (_local3 == "false"){
_local1.type = JSONTokenType.FALSE;
_local1.value = false;
nextChar();
} else {
parseError(("Expecting 'false' but found " + _local3));
};
break;
case "n":
_local4 = ((("n" + nextChar()) + nextChar()) + nextChar());
if (_local4 == "null"){
_local1.type = JSONTokenType.NULL;
_local1.value = null;
nextChar();
} else {
parseError(("Expecting 'null' but found " + _local4));
};
break;
case "\"":
_local1 = readString();
break;
default:
if (((isDigit(ch)) || ((ch == "-")))){
_local1 = readNumber();
} else {
if (ch == ""){
return (null);
};
parseError((("Unexpected " + ch) + " encountered"));
};
};
return (_local1);
}
private function skipWhite():void{
while (isWhiteSpace(ch)) {
nextChar();
};
}
private function isWhiteSpace(_arg1:String):Boolean{
return ((((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))) || ((_arg1 == "\r"))));
}
public function parseError(_arg1:String):void{
throw (new JSONParseError(_arg1, loc, jsonString));
}
private function skipIgnored():void{
var _local1:int;
do {
_local1 = loc;
skipWhite();
skipComments();
} while (_local1 != loc);
}
private function isHexDigit(_arg1:String):Boolean{
var _local2:String;
_local2 = _arg1.toUpperCase();
return (((isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F"))))));
}
private function readString():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:String;
var _local4:int;
_local1 = new JSONToken();
_local1.type = JSONTokenType.STRING;
_local2 = "";
nextChar();
while (((!((ch == "\""))) && (!((ch == ""))))) {
if (ch == "\\"){
nextChar();
switch (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 (!isHexDigit(nextChar())){
parseError((" Excepted a hex digit, but found: " + ch));
};
_local3 = (_local3 + ch);
_local4++;
};
_local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16)));
break;
default:
_local2 = (_local2 + ("\\" + ch));
};
} else {
_local2 = (_local2 + ch);
};
nextChar();
};
if (ch == ""){
parseError("Unterminated string literal");
};
nextChar();
_local1.value = _local2;
return (_local1);
}
}
}//package com.adobe.serialization.json
Section 7
//JSONTokenType (com.adobe.serialization.json.JSONTokenType)
package com.adobe.serialization.json {
public class JSONTokenType {
public static const NUMBER:int = 11;
public static const FALSE:int = 8;
public static const RIGHT_BRACKET:int = 4;
public static const NULL:int = 9;
public static const TRUE:int = 7;
public static const RIGHT_BRACE:int = 2;
public static const UNKNOWN:int = -1;
public static const COMMA:int = 0;
public static const LEFT_BRACKET:int = 3;
public static const STRING:int = 10;
public static const LEFT_BRACE:int = 1;
public static const COLON:int = 6;
}
}//package com.adobe.serialization.json
Section 8
//acvd_146 (parkinglot3_fla.acvd_146)
package parkinglot3_fla {
import flash.display.*;
public dynamic class acvd_146 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var parkArea:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
}
}//package parkinglot3_fla
Section 9
//bg1_38 (parkinglot3_fla.bg1_38)
package parkinglot3_fla {
import flash.display.*;
public dynamic class bg1_38 extends MovieClip {
public var s5:MovieClip;
public var block1:MovieClip;
public var block2:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 10
//bg10_189 (parkinglot3_fla.bg10_189)
package parkinglot3_fla {
import flash.display.*;
public dynamic class bg10_189 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
}
}//package parkinglot3_fla
Section 11
//bgsss_247 (parkinglot3_fla.bgsss_247)
package parkinglot3_fla {
import flash.display.*;
public dynamic class bgsss_247 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var block14:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block11:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 12
//BUG_PRELOADER_1 (parkinglot3_fla.BUG_PRELOADER_1)
package parkinglot3_fla {
import flash.display.*;
public dynamic class BUG_PRELOADER_1 extends MovieClip {
public var innerloader:MovieClip;
}
}//package parkinglot3_fla
Section 13
//BUGload_2 (parkinglot3_fla.BUGload_2)
package parkinglot3_fla {
import flash.display.*;
public dynamic class BUGload_2 extends MovieClip {
public function BUGload_2(){
addFrameScript(74, frame75);
}
function frame75(){
}
}
}//package parkinglot3_fla
Section 14
//car17movcopy2_298 (parkinglot3_fla.car17movcopy2_298)
package parkinglot3_fla {
import flash.display.*;
public dynamic class car17movcopy2_298 extends MovieClip {
public var block4:MovieClip;
}
}//package parkinglot3_fla
Section 15
//careditedB_54 (parkinglot3_fla.careditedB_54)
package parkinglot3_fla {
import flash.display.*;
public dynamic class careditedB_54 extends MovieClip {
public var carBody:MovieClip;
public var tire1:MovieClip;
public var tire2:MovieClip;
public var tire4:MovieClip;
public var carCentre:MovieClip;
public var tire3:MovieClip;
public function careditedB_54(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 16
//careditedBcopy_137 (parkinglot3_fla.careditedBcopy_137)
package parkinglot3_fla {
import flash.display.*;
public dynamic class careditedBcopy_137 extends MovieClip {
public var carBody:MovieClip;
public var tire1:MovieClip;
public var tire2:MovieClip;
public var tire4:MovieClip;
public var carCentre:MovieClip;
public var tire3:MovieClip;
public function careditedBcopy_137(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 17
//carmov20copy_335 (parkinglot3_fla.carmov20copy_335)
package parkinglot3_fla {
import flash.display.*;
public dynamic class carmov20copy_335 extends MovieClip {
public var block10:MovieClip;
}
}//package parkinglot3_fla
Section 18
//carmovcopy_289 (parkinglot3_fla.carmovcopy_289)
package parkinglot3_fla {
import flash.display.*;
public dynamic class carmovcopy_289 extends MovieClip {
public var movingCar1:MovieClip;
public var block10:MovieClip;
}
}//package parkinglot3_fla
Section 19
//carmovlevl19copy2_328 (parkinglot3_fla.carmovlevl19copy2_328)
package parkinglot3_fla {
import flash.display.*;
public dynamic class carmovlevl19copy2_328 extends MovieClip {
public var block10:MovieClip;
}
}//package parkinglot3_fla
Section 20
//cghf_86 (parkinglot3_fla.cghf_86)
package parkinglot3_fla {
import flash.display.*;
public dynamic class cghf_86 extends MovieClip {
public function cghf_86(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package parkinglot3_fla
Section 21
//CNGR8Sggg_343 (parkinglot3_fla.CNGR8Sggg_343)
package parkinglot3_fla {
import flash.display.*;
public dynamic class CNGR8Sggg_343 extends MovieClip {
public function CNGR8Sggg_343(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package parkinglot3_fla
Section 22
//dvfnd_224 (parkinglot3_fla.dvfnd_224)
package parkinglot3_fla {
import flash.display.*;
public dynamic class dvfnd_224 extends MovieClip {
public var s5:MovieClip;
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 23
//GameOverfff_336 (parkinglot3_fla.GameOverfff_336)
package parkinglot3_fla {
import flash.display.*;
public dynamic class GameOverfff_336 extends MovieClip {
public function GameOverfff_336(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
}
function frame32(){
stop();
MovieClip(root).gotoAndStop(24);
}
}
}//package parkinglot3_fla
Section 24
//guteer2_100 (parkinglot3_fla.guteer2_100)
package parkinglot3_fla {
import flash.display.*;
public dynamic class guteer2_100 extends MovieClip {
public var innerg:MovieClip;
}
}//package parkinglot3_fla
Section 25
//gutternew1_102 (parkinglot3_fla.gutternew1_102)
package parkinglot3_fla {
import flash.display.*;
public dynamic class gutternew1_102 extends MovieClip {
public var innerg:MovieClip;
}
}//package parkinglot3_fla
Section 26
//health_meter_82 (parkinglot3_fla.health_meter_82)
package parkinglot3_fla {
import flash.display.*;
public dynamic class health_meter_82 extends MovieClip {
public function health_meter_82(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package parkinglot3_fla
Section 27
//hio_233 (parkinglot3_fla.hio_233)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hio_233 extends MovieClip {
public var block8:MovieClip;
}
}//package parkinglot3_fla
Section 28
//hitarea18_312 (parkinglot3_fla.hitarea18_312)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hitarea18_312 extends MovieClip {
public var block12:MovieClip;
}
}//package parkinglot3_fla
Section 29
//hitbars_334 (parkinglot3_fla.hitbars_334)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hitbars_334 extends MovieClip {
public var block12:MovieClip;
}
}//package parkinglot3_fla
Section 30
//hitbarslev16_285 (parkinglot3_fla.hitbarslev16_285)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hitbarslev16_285 extends MovieClip {
public var block12:MovieClip;
}
}//package parkinglot3_fla
Section 31
//hjhacopy2B_68 (parkinglot3_fla.hjhacopy2B_68)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hjhacopy2B_68 extends MovieClip {
public function hjhacopy2B_68(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 32
//hjhacopy4B_73 (parkinglot3_fla.hjhacopy4B_73)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hjhacopy4B_73 extends MovieClip {
public function hjhacopy4B_73(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 33
//hjhacopy5B_70 (parkinglot3_fla.hjhacopy5B_70)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hjhacopy5B_70 extends MovieClip {
public function hjhacopy5B_70(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package parkinglot3_fla
Section 34
//hjhacopyB_64 (parkinglot3_fla.hjhacopyB_64)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hjhacopyB_64 extends MovieClip {
public function hjhacopyB_64(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package parkinglot3_fla
Section 35
//hjk_139 (parkinglot3_fla.hjk_139)
package parkinglot3_fla {
import flash.display.*;
public dynamic class hjk_139 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 36
//icapark_4_147 (parkinglot3_fla.icapark_4_147)
package parkinglot3_fla {
import flash.display.*;
public dynamic class icapark_4_147 extends MovieClip {
public var innerS:MovieClip;
}
}//package parkinglot3_fla
Section 37
//icapark_4lev10_192 (parkinglot3_fla.icapark_4lev10_192)
package parkinglot3_fla {
import flash.display.*;
public dynamic class icapark_4lev10_192 extends MovieClip {
public var innerS:MovieClip;
}
}//package parkinglot3_fla
Section 38
//insbbb_32 (parkinglot3_fla.insbbb_32)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.text.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class insbbb_32 extends MovieClip {
public var back_mc:SimpleButton;
public var close:SimpleButton;
public function insbbb_32(){
addFrameScript(12, frame13, 23, frame24);
}
public function backTomenu(_arg1:Event){
play();
MovieClip(root).channel.stop();
}
function frame13(){
stop();
back_mc.addEventListener(MouseEvent.MOUSE_DOWN, backTomenu);
}
function frame24(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package parkinglot3_fla
Section 39
//introaaa_10 (parkinglot3_fla.introaaa_10)
package parkinglot3_fla {
import flash.display.*;
public dynamic class introaaa_10 extends MovieClip {
public var tireMark:MovieClip;
public var menu_mc:MovieClip;
public function introaaa_10(){
addFrameScript(0, frame1, 22, frame23, 27, frame28);
}
function frame1(){
menu_mc.visible = false;
}
function frame23(){
menu_mc.visible = true;
}
function frame28(){
stop();
if (this.parent["ins_selected"]){
tireMark.gotoAndStop(10);
};
}
}
}//package parkinglot3_fla
Section 40
//jk_273 (parkinglot3_fla.jk_273)
package parkinglot3_fla {
import flash.display.*;
public dynamic class jk_273 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var block11:MovieClip;
public var block14:MovieClip;
public var block15:MovieClip;
public var block12:MovieClip;
public var block13:MovieClip;
public var block7:MovieClip;
public var block18:MovieClip;
public var block19:MovieClip;
public var block3:MovieClip;
public var block10:MovieClip;
public var block23:MovieClip;
public var block20:MovieClip;
public var block16:MovieClip;
public var block24:MovieClip;
public var block17:MovieClip;
public var block22:MovieClip;
public var block21:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
public var iceSurface4:MovieClip;
public var iceSurface5:MovieClip;
public var iceSurface6:MovieClip;
public var iceSurface7:MovieClip;
public var iceSurface8:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 41
//jkl_92 (parkinglot3_fla.jkl_92)
package parkinglot3_fla {
import flash.display.*;
public dynamic class jkl_92 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var gutter1:MovieClip;
public var gutter2:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 42
//lev1copy_37 (parkinglot3_fla.lev1copy_37)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev1copy_37 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 43
//lev2copy_91 (parkinglot3_fla.lev2copy_91)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev2copy_91 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 44
//lev3copy_112 (parkinglot3_fla.lev3copy_112)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev3copy_112 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 45
//lev5copy_138 (parkinglot3_fla.lev5copy_138)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev5copy_138 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 46
//lev6copy_145 (parkinglot3_fla.lev6copy_145)
package parkinglot3_fla {
import flash.display.*;
public dynamic class lev6copy_145 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 47
//levdark_120 (parkinglot3_fla.levdark_120)
package parkinglot3_fla {
import flash.display.*;
public dynamic class levdark_120 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 48
//level10copy2_188 (parkinglot3_fla.level10copy2_188)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level10copy2_188 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 49
//level11copy2_223 (parkinglot3_fla.level11copy2_223)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level11copy2_223 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 50
//level12basecopy_234 (parkinglot3_fla.level12basecopy_234)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level12basecopy_234 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 51
//level12bg_235 (parkinglot3_fla.level12bg_235)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level12bg_235 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
}
}//package parkinglot3_fla
Section 52
//level12deviders_243 (parkinglot3_fla.level12deviders_243)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level12deviders_243 extends MovieClip {
public var block1:MovieClip;
}
}//package parkinglot3_fla
Section 53
//level13copy_246 (parkinglot3_fla.level13copy_246)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level13copy_246 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 54
//level14copy_261 (parkinglot3_fla.level14copy_261)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level14copy_261 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 55
//level15copy2_272 (parkinglot3_fla.level15copy2_272)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level15copy2_272 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 56
//level16maincopy_282 (parkinglot3_fla.level16maincopy_282)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level16maincopy_282 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var block15:MovieClip;
public var gutter1:MovieClip;
public var gutter2:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
}
}//package parkinglot3_fla
Section 57
//level17main2_296 (parkinglot3_fla.level17main2_296)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level17main2_296 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 58
//level17mainup_297 (parkinglot3_fla.level17mainup_297)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level17mainup_297 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var gutter1:MovieClip;
public var gutter2:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var gutter4:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 59
//LEVEL19_320 (parkinglot3_fla.LEVEL19_320)
package parkinglot3_fla {
import flash.display.*;
public dynamic class LEVEL19_320 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 60
//LEVEL19BG1_321 (parkinglot3_fla.LEVEL19BG1_321)
package parkinglot3_fla {
import flash.display.*;
public dynamic class LEVEL19BG1_321 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var movingCar2:MovieClip;
public var block6:MovieClip;
public var block9:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block10:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
}
}//package parkinglot3_fla
Section 61
//level19movcar2copy2_327 (parkinglot3_fla.level19movcar2copy2_327)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level19movcar2copy2_327 extends MovieClip {
public var block4:MovieClip;
}
}//package parkinglot3_fla
Section 62
//LEVEL20MAIN_330 (parkinglot3_fla.LEVEL20MAIN_330)
package parkinglot3_fla {
import flash.display.*;
public dynamic class LEVEL20MAIN_330 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var movingCar1:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
}
}//package parkinglot3_fla
Section 63
//level4copy5_119 (parkinglot3_fla.level4copy5_119)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level4copy5_119 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 64
//level7basecopy_155 (parkinglot3_fla.level7basecopy_155)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level7basecopy_155 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 65
//level7bg_156 (parkinglot3_fla.level7bg_156)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level7bg_156 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 66
//level7divider_160 (parkinglot3_fla.level7divider_160)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level7divider_160 extends MovieClip {
public var block1:MovieClip;
}
}//package parkinglot3_fla
Section 67
//level8background_163 (parkinglot3_fla.level8background_163)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level8background_163 extends MovieClip {
public var block1:MovieClip;
public var movingCar1:MovieClip;
public var gutter1:MovieClip;
public var gutter2:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 68
//level8basecopy_162 (parkinglot3_fla.level8basecopy_162)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level8basecopy_162 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 69
//level8divider_170 (parkinglot3_fla.level8divider_170)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level8divider_170 extends MovieClip {
public var block1:MovieClip;
}
}//package parkinglot3_fla
Section 70
//level8movobstaclecopy_172 (parkinglot3_fla.level8movobstaclecopy_172)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level8movobstaclecopy_172 extends MovieClip {
public var block8:MovieClip;
}
}//package parkinglot3_fla
Section 71
//level9basecopy_173 (parkinglot3_fla.level9basecopy_173)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level9basecopy_173 extends MovieClip {
public var playMask:MovieClip;
public var lightArea:MovieClip;
public var maskLayer:MovieClip;
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 72
//level9bg_174 (parkinglot3_fla.level9bg_174)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level9bg_174 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
}
}//package parkinglot3_fla
Section 73
//level9dividers_187 (parkinglot3_fla.level9dividers_187)
package parkinglot3_fla {
import flash.display.*;
public dynamic class level9dividers_187 extends MovieClip {
public var block1:MovieClip;
}
}//package parkinglot3_fla
Section 74
//mainlev18_310 (parkinglot3_fla.mainlev18_310)
package parkinglot3_fla {
import flash.display.*;
public dynamic class mainlev18_310 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var block3:MovieClip;
public var gutter3:MovieClip;
public var parkArea:MovieClip;
public var gutter2:MovieClip;
public var iceSurface1:MovieClip;
public var iceSurface2:MovieClip;
public var iceSurface3:MovieClip;
}
}//package parkinglot3_fla
Section 75
//mainmvclp20_329 (parkinglot3_fla.mainmvclp20_329)
package parkinglot3_fla {
import flash.display.*;
public dynamic class mainmvclp20_329 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 76
//MainTimeline (parkinglot3_fla.MainTimeline)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.text.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var loaded:Number;
public var popup_mc:MovieClip;
public var mcMsg:MovieClip;
public var perTxt:Number;
public var TOOLKIT_INITIALIZED:Number;
public var percByt:Number;
public var winner:MovieClip;
public var min;
public var sec;
public var outerloader:MovieClip;
public var speed:Number;
public var i;
public var j;
public var k;
public var SFXmuteflag;
public var l;
public var timeLeft;
public var mainCarRot;
public var score;
public var timeID;
public var blockcount;
public var levelComp:MovieClip;
public var bgXpos;
public var rightkey;
public var animspeed:Number;
public var mainCarXpos;
public var guttercount;
public var progress_mc:MovieClip;
public var loadPerc:Number;
public var currentFrm:Number;
public var movCarcount;
public var muteflag;
public var life;
public var leftkey;
public var channel;
public var bgYpos;
public var darkArea:MovieClip;
public var loadText:TextField;
public var mainCarYpos;
public var sideBar:MovieClip;
public var totalFrm:Number;
public var total:Number;
public var redLife;
public var iscollision;
public var gameComplete:MovieClip;
public var mainCar:MovieClip;
public var icecount;
public var snd;
public var SFXmute_mc:MovieClip;
public var hitcar;
public var forwardkey;
public var mcOuch:MovieClip;
public var lifeBarFlag;
public var level;
public var currentLevel;
public var channel1;
public var skipButton:SimpleButton;
public var spacekey;
public var backwardkey;
public var hitFlag;
public var instructions:MovieClip;
public var totalScore:Number;
public var musicmute_mc:MovieClip;
public var namePage:MovieClip;
public var hitframe;
public var lifeFrame;
public var ins_selected;
public var parking:MovieClip;
public var gameOver:MovieClip;
public var snd1;
public function MainTimeline(){
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, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27);
}
public function GameOver(){
channel.stop();
clearInterval(timeID);
stage.removeEventListener(Event.ENTER_FRAME, EnterFrame);
}
public function GetToolKit():AGtoolkit{
return (MovieClip(root).agToolKit);
}
public function playSound(_arg1:String){
snd = getDefinitionByName(_arg1);
snd = new snd();
channel = snd.play();
channel.addEventListener(Event.SOUND_COMPLETE, soundLoop);
}
function frame10(){
stop();
mainCarXpos = 68;
mainCarYpos = 153;
mainCarRot = 270;
blockcount = 4;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 7;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame14(){
stop();
mainCarXpos = 61;
mainCarYpos = 95;
mainCarRot = 270;
bgXpos = -139;
bgYpos = -96;
blockcount = 6;
icecount = 0;
guttercount = 0;
movCarcount = 1;
timeLeft = 180;
level = 11;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function gutterCollision(){
lifeBarFlag = true;
if ((((speed > -4)) && ((speed <= 4)))){
redLife = 2;
};
if ((((((speed > 4)) && ((speed <= 7)))) || ((((speed > -7)) && ((speed <= -4)))))){
redLife = 3;
};
if ((((speed > 7)) || ((speed <= -7)))){
redLife = 5;
};
lifeFrame = (lifeFrame + redLife);
if (mcOuch.currentFrame == 1){
mcOuch.gotoAndPlay(1);
};
speed = 0;
if (lifeFrame <= 20){
mainCar.gotoAndStop(4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
mainCar.gotoAndStop(5);
};
if (lifeFrame > 40){
mainCar.gotoAndStop(6);
};
sideBar.lifeBar.gotoAndStop(lifeFrame);
}
function frame16(){
stop();
mainCarXpos = 184;
mainCarYpos = 335;
mainCarRot = -135;
bgXpos = 180;
bgYpos = -204;
blockcount = 14;
icecount = 0;
guttercount = 0;
movCarcount = 1;
timeLeft = 180;
level = 13;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame18(){
stop();
mainCarXpos = 65;
mainCarYpos = 109;
mainCarRot = 270;
bgXpos = -127;
bgYpos = -105;
blockcount = 24;
icecount = 8;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 15;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame15(){
stop();
mainCarXpos = 90;
mainCarYpos = 380;
mainCarRot = -147;
bgXpos = -83;
bgYpos = -456;
blockcount = 9;
icecount = 0;
guttercount = 2;
movCarcount = 0;
timeLeft = 180;
level = 12;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame2(){
stop();
if (this["ins_selected"]){
namePage.gotoAndStop(28);
};
if (!muteflag){
playSound("music1");
};
musicmute_mc.addEventListener(MouseEvent.MOUSE_DOWN, musicmute);
SFXmute_mc.addEventListener(MouseEvent.MOUSE_DOWN, soundmute);
}
function frame4(){
stop();
stop();
speed = 0;
mainCarXpos = mainCar.x;
mainCarYpos = mainCar.y;
mainCarRot = mainCar.rotation;
bgXpos = darkArea.x;
bgYpos = darkArea.y;
iscollision = false;
lifeBarFlag = false;
forwardkey = false;
backwardkey = false;
rightkey = false;
leftkey = false;
spacekey = false;
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
hitframe = 1;
hitcar = 0;
hitFlag = false;
lifeFrame = 0;
stage.addEventListener(Event.ENTER_FRAME, EnterFrame);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
mainCarXpos = 57;
mainCarYpos = 247;
mainCarRot = 270;
blockcount = 3;
icecount = 0;
guttercount = 0;
movCarcount = 0;
life = 3;
timeLeft = 180;
score = 0;
level = 1;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
if (!muteflag){
playSound("music2");
};
skipButton.addEventListener(MouseEvent.MOUSE_DOWN, skipLevel);
}
function frame5(){
stop();
mainCarXpos = 489;
mainCarYpos = 329;
mainCarRot = 90;
blockcount = 4;
icecount = 0;
guttercount = 2;
movCarcount = 0;
timeLeft = 180;
level = 2;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame3(){
stop();
if (!muteflag){
playSound("music1");
};
ins_selected = true;
}
function frame11(){
stop();
mainCarXpos = 174;
mainCarYpos = 397;
mainCarRot = -149;
bgXpos = -154;
bgYpos = -21;
blockcount = 1;
icecount = 0;
guttercount = 3;
movCarcount = 1;
timeLeft = 180;
level = 8;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame6(){
stop();
mainCarXpos = 172;
mainCarYpos = 400;
mainCarRot = 180;
blockcount = 3;
icecount = 0;
guttercount = 0;
movCarcount = 1;
timeLeft = 180;
level = 3;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function soundLoop(_arg1:Event){
channel = snd.play();
channel.addEventListener(Event.SOUND_COMPLETE, soundLoop);
}
function frame24(){
this.removeEventListener(Event.ENTER_FRAME, EnterFrame);
if (!muteflag){
playSound("music1");
};
}
function frame19(){
stop();
mainCarXpos = 45;
mainCarYpos = 209;
mainCarRot = -72;
bgXpos = -93;
bgYpos = -442;
blockcount = 6;
icecount = 2;
guttercount = 3;
movCarcount = 1;
timeLeft = 180;
level = 16;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame17(){
stop();
mainCarXpos = 56;
mainCarYpos = 179;
mainCarRot = 270;
bgXpos = 0;
bgYpos = 25;
blockcount = 10;
icecount = 0;
guttercount = 11;
movCarcount = 0;
timeLeft = 180;
level = 14;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame8(){
stop();
mainCarXpos = 54;
mainCarYpos = 335;
mainCarRot = 180;
blockcount = 2;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 5;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame9(){
stop();
mainCarXpos = 64;
mainCarYpos = 93;
mainCarRot = 270;
blockcount = 2;
icecount = 3;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 6;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame1(){
stop();
stage.invalidate();
stage.addEventListener(Event.RENDER, onDisplayObjectsLoaded);
total = 0;
loaded = 0;
loadPerc = 0;
currentFrm = 0;
totalFrm = 0;
perTxt = 0;
percByt = 0;
animspeed = 0;
TOOLKIT_INITIALIZED = 234;
totalScore = 24356;
if (MovieClip(root).gToolKitStatus != TOOLKIT_INITIALIZED){
trace("Initializing constructor...");
MovieClip(root).agToolKit = new AGtoolkit(this, "5681", "parkinglot3_hs", "GameZindia");
GetToolKit().AGsetToolbar("pause", AGGamePause);
GetToolKit().AGgameScore("totalScore", "Points", "integer");
GetToolKit().AGinitToolkit(GameStart);
MovieClip(root).gToolKitStatus = TOOLKIT_INITIALIZED;
};
}
function frame12(){
stop();
mainCarXpos = 115;
mainCarYpos = 365;
mainCarRot = 270;
bgXpos = -84;
bgYpos = -79;
blockcount = 9;
icecount = 0;
guttercount = 3;
movCarcount = 0;
timeLeft = 180;
level = 9;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame27(){
stop();
totalScore = score;
MovieClip(root).agToolKit.AGgameover(AGplayagain);
gameOver.play_again.addEventListener(MouseEvent.MOUSE_DOWN, playagain);
if (life == 0){
gameOver.reasonBox.text = "!!! Crashed !!!";
};
if (timeLeft <= 0){
gameOver.reasonBox.text = "!!! Time Out !!!";
};
gameOver.scoreBox.text = score;
if (!muteflag){
playSound("music1");
};
}
function frame7(){
stop();
mainCarXpos = 63;
mainCarYpos = 332;
mainCarRot = 270;
blockcount = 4;
icecount = 0;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 4;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function playmore(_arg1:Event){
MovieClip(root).channel.stop();
MovieClip(root).gotoAndStop(1);
}
function frame22(){
stop();
mainCarXpos = 252;
mainCarYpos = 348;
mainCarRot = -126;
bgXpos = -58;
bgYpos = -25;
blockcount = 10;
icecount = 3;
guttercount = 3;
movCarcount = 2;
timeLeft = 180;
level = 19;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame23(){
stop();
mainCarXpos = 188;
mainCarYpos = 359;
mainCarRot = 180;
bgXpos = -33;
bgYpos = -58;
blockcount = 8;
icecount = 3;
guttercount = 3;
movCarcount = 1;
timeLeft = 180;
level = 20;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function preLoader(_arg1:Event):void{
total = loaderInfo.bytesTotal;
loaded = loaderInfo.bytesLoaded;
loadPerc = Math.floor(((loaded / total) * 100));
currentFrm = outerloader.innerloader.currentFrame;
totalFrm = outerloader.innerloader.totalFrames;
perTxt = Math.round(((currentFrm / totalFrm) * 100));
loadText.text = String(perTxt);
percByt = (loaded / total);
animspeed = Math.ceil((totalFrm * percByt));
if (animspeed > currentFrm){
outerloader.innerloader.play();
progress_mc.play();
} else {
outerloader.innerloader.stop();
progress_mc.stop();
};
if ((((perTxt >= 99)) && ((loadPerc >= 100)))){
trace("completed..");
removeEventListener(Event.ENTER_FRAME, preLoader);
MovieClip(root).gotoAndStop(1, "game");
};
}
function frame21(){
stop();
mainCarXpos = 509;
mainCarYpos = 258;
mainCarRot = 134;
bgXpos = -15;
bgYpos = -421;
blockcount = 7;
icecount = 3;
guttercount = 3;
movCarcount = 0;
timeLeft = 180;
level = 18;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function playagain(_arg1:Event){
channel.stop();
gotoAndStop(3);
}
function frame26(){
stop();
currentLevel = (level - 1);
levelComp.scoreBox.text = score;
levelComp.levelBox.text = currentLevel;
if (!muteflag){
playSound("music1");
};
}
function frame20(){
stop();
mainCarXpos = 108;
mainCarYpos = 367;
mainCarRot = -119;
bgXpos = -151;
bgYpos = -414;
blockcount = 5;
icecount = 0;
guttercount = 3;
movCarcount = 1;
timeLeft = 180;
level = 17;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
ApplyMask();
configureGame();
if (!muteflag){
playSound("music2");
};
}
function frame25(){
stop();
if (!muteflag){
playSound("music1");
};
totalScore = score;
MovieClip(root).agToolKit.AGgameover(AGplayagainGameComplete);
winner.scoreBox.text = MovieClip(root).score;
winner.play_again.addEventListener(MouseEvent.MOUSE_DOWN, playmore);
}
public function keyPressed(_arg1:KeyboardEvent){
var e = _arg1;
switch (e.keyCode){
case 38:
forwardkey = true;
break;
case 40:
backwardkey = true;
break;
case 39:
rightkey = true;
break;
case 37:
leftkey = true;
break;
case 32:
spacekey = true;
break;
case 13:
if (popup_mc.currentFrame == 11){
popup_mc.play();
};
if (this.currentFrame == 25){
if (levelComp.currentFrame == 20){
try {
levelComp.nextlevel(new MouseEvent(MouseEvent.MOUSE_DOWN));
} catch(e) {
};
};
};
break;
};
}
public function keyReleased(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case 38:
forwardkey = false;
break;
case 40:
backwardkey = false;
break;
case 39:
rightkey = false;
break;
case 37:
leftkey = false;
break;
case 32:
spacekey = false;
break;
};
}
public function calculateScore(){
score = (((score + (10 * timeLeft)) + (10 * (54 - lifeFrame))) + (life * 100));
}
function frame13(){
stop();
mainCarXpos = 55;
mainCarYpos = 80;
mainCarRot = 270;
bgXpos = 134;
bgYpos = 223;
blockcount = 4;
icecount = 2;
guttercount = 0;
movCarcount = 0;
timeLeft = 180;
level = 10;
popup_mc.gotoAndPlay(2);
sideBar.mcLife.gotoAndStop(life);
timeID = setInterval(timer, 1000);
StartGame();
configureGame();
if (!muteflag){
playSound("music2");
};
}
public function onDisplayObjectsLoaded(_arg1){
stage.removeEventListener(Event.RENDER, onDisplayObjectsLoaded);
this.addEventListener(Event.ENTER_FRAME, preLoader);
}
public function continueGame(){
iscollision = false;
if ((((speed <= -2)) || ((speed >= 2)))){
lifeBarFlag = false;
};
if (hitFlag){
startMove();
};
}
public function StopGame(){
lifeBarFlag = false;
iscollision = true;
life--;
lifeFrame = 0;
}
public function timer(){
if (popup_mc.visible){
return;
};
timeLeft--;
if (timeLeft < 0){
GameOver();
gotoAndStop(26);
return;
};
if ((((timeLeft / 60)) && ((timeLeft >= 0)))){
min = int((timeLeft / 60));
sec = (timeLeft % 60);
if (String(min).length == 1){
sideBar.mc_timer.text = (("0" + min) + ":");
} else {
sideBar.mc_timer.text = (min + ":");
};
if (String(sec).length == 1){
sideBar.mc_timer.text = ((sideBar.mc_timer.text + "0") + sec);
} else {
sideBar.mc_timer.text = ((sideBar.mc_timer.text + "") + sec);
};
} else {
sideBar.mc_timer.text = "00:00";
};
return (timeLeft);
}
public function AGplayagain(){
channel.stop();
gotoAndStop(3);
}
public function StartGame(){
mainCar.x = mainCarXpos;
mainCar.y = mainCarYpos;
darkArea.x = bgXpos;
darkArea.y = bgYpos;
if (lifeFrame == 0){
mainCar.gotoAndStop(1);
};
if ((((lifeFrame > 0)) && ((lifeFrame <= 20)))){
mainCar.gotoAndStop(4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
mainCar.gotoAndStop(5);
};
if (lifeFrame > 40){
mainCar.gotoAndStop(6);
};
mainCar.rotation = mainCarRot;
speed = 0;
iscollision = false;
lifeBarFlag = false;
sideBar.mcLife.gotoAndStop(life);
sideBar.lifeBar.gotoAndStop(lifeFrame);
hitFlag = false;
l = 1;
while (l <= movCarcount) {
root["darkArea"]["playGround"][("movingCar" + l)].gotoAndPlay(1);
if ((((((this.currentFrame == 15)) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
root["darkArea"]["playMask"][("movingCar" + l)].gotoAndPlay(1);
};
l++;
};
}
public function playSound1(_arg1:String){
snd1 = getDefinitionByName(_arg1);
snd1 = new snd1();
channel1 = snd1.play();
}
public function LifeBar(){
lifeBarFlag = true;
if (!SFXmuteflag){
playSound1("crash1");
};
if ((((speed > -4)) && ((speed <= 4)))){
redLife = 5;
};
if ((((((speed > 4)) && ((speed <= 7)))) || ((((speed > -7)) && ((speed <= -4)))))){
redLife = 10;
};
if ((((speed > 7)) || ((speed <= -7)))){
redLife = 15;
};
lifeFrame = (lifeFrame + redLife);
if (mcOuch.currentFrame == 1){
mcOuch.gotoAndPlay(1);
};
speed = 0;
if (lifeFrame <= 20){
mainCar.gotoAndStop(4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
mainCar.gotoAndStop(5);
};
if (lifeFrame > 40){
mainCar.gotoAndStop(6);
};
sideBar.lifeBar.gotoAndStop(lifeFrame);
}
public function ApplyMask(){
var _local1:Point;
if ((((((((((((this.currentFrame == 6)) || ((this.currentFrame == 11)))) || ((this.currentFrame == 15)))) || ((this.currentFrame == 17)))) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
darkArea.playMask.mask = darkArea.lightArea;
_local1 = new Point(mainCar.x, mainCar.y);
_local1 = darkArea.globalToLocal(_local1);
darkArea.lightArea.rotation = (mainCar.rotation + 90);
darkArea.lightArea.x = _local1.x;
darkArea.lightArea.y = _local1.y;
darkArea.maskLayer.rotation = (mainCar.rotation + 90);
darkArea.maskLayer.x = _local1.x;
darkArea.maskLayer.y = _local1.y;
};
}
public function skipLevel(_arg1:Event){
level++;
clearInterval(timeID);
stage.removeEventListener(Event.ENTER_FRAME, EnterFrame);
gotoAndStop((level + 2));
}
public function startMove(){
root["darkArea"]["playGround"][("movingCar" + hitcar)].gotoAndPlay(hitframe);
if ((((((this.currentFrame == 15)) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
root["darkArea"]["playMask"][("movingCar" + hitcar)].gotoAndPlay(hitframe);
};
if ((((speed <= -2)) || ((speed >= 2)))){
hitFlag = false;
};
}
public function GameStart(){
trace("All initialization complete! Ready to start game!");
}
public function AGGamePause(_arg1:String):void{
trace(("Game Pause state changed to : " + _arg1));
}
public function EnterFrame(_arg1:Event){
var _local2:Point;
if (popup_mc.visible){
return;
};
bgMove();
i = 1;
while (i <= blockcount) {
if (PixelPerfectCollisionDetection.isColliding(root["mainCar"], root["darkArea"]["playGround"][("block" + i)], MovieClip(root), true)){
if (((!(iscollision)) && (!(lifeBarFlag)))){
speed = -(speed);
mainCar.rotation = (mainCar.rotation + ((speed * 0.02) * mainCar.tire1.rotation));
mainCar.x = (mainCar.x - ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 5));
mainCar.y = (mainCar.y - (((Math.cos(((mainCar.rotation * Math.PI) / 180)) * -1) * speed) * 5));
speed = -(speed);
LifeBar();
};
};
i++;
};
j = 1;
while (j <= icecount) {
if (((((((PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"][("iceSurface" + j)]["innerS"], root["mainCar"]["carCentre"], MovieClip(root), true)) || (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"][("iceSurface" + j)]["innerS"], root["mainCar"]["carCentre"], MovieClip(root), true)))) || (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"][("iceSurface" + j)]["innerS"], root["mainCar"]["carCentre"], MovieClip(root), true)))) || (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"][("iceSurface" + j)]["innerS"], root["mainCar"]["carCentre"], MovieClip(root), true)))){
if (((((forwardkey) && (leftkey))) || (((backwardkey) && (rightkey))))){
mainCar.rotation = (mainCar.rotation + ((speed * 0.04) * (mainCar.tire1.rotation + 20)));
mainCar.x = (mainCar.x - ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * speed) * 3));
mainCar.y = (mainCar.y - ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 0.8));
speed = (speed * 0.6);
} else {
mainCar.rotation = (mainCar.rotation + ((speed * 0.04) * (mainCar.tire1.rotation + 20)));
mainCar.x = (mainCar.x + ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * speed) * 3));
mainCar.y = (mainCar.y + ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 0.8));
speed = (speed * 0.6);
};
};
j++;
};
k = 1;
while (k <= guttercount) {
if (((((((PixelPerfectCollisionDetection.isColliding(root["mainCar"]["tire1"]["innerT"], root["darkArea"]["playGround"][("gutter" + k)]["innerg"], MovieClip(root), true)) || (PixelPerfectCollisionDetection.isColliding(root["mainCar"]["tire2"]["innerT"], root["darkArea"]["playGround"][("gutter" + k)]["innerg"], MovieClip(root), true)))) || (PixelPerfectCollisionDetection.isColliding(root["mainCar"]["tire3"]["innerT"], root["darkArea"]["playGround"][("gutter" + k)]["innerg"], MovieClip(root), true)))) || (PixelPerfectCollisionDetection.isColliding(root["mainCar"]["tire4"]["innerT"], root["darkArea"]["playGround"][("gutter" + k)]["innerg"], MovieClip(root), true)))){
if (((!(iscollision)) && (!(lifeBarFlag)))){
gutterCollision();
};
};
k++;
};
l = 1;
while (l <= movCarcount) {
if (PixelPerfectCollisionDetection.isColliding(root["mainCar"], root["darkArea"]["playGround"][("movingCar" + l)], MovieClip(root), true)){
if (((!(iscollision)) && (!(lifeBarFlag)))){
hitframe = root["darkArea"]["playGround"][("movingCar" + l)].currentFrame;
root["darkArea"]["playGround"][("movingCar" + l)].gotoAndStop(hitframe);
if ((((((this.currentFrame == 15)) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
root["darkArea"]["playMask"][("movingCar" + l)].gotoAndStop(hitframe);
};
hitcar = l;
hitFlag = true;
speed = -(speed);
mainCar.rotation = (mainCar.rotation + ((speed * 0.02) * mainCar.tire1.rotation));
mainCar.x = (mainCar.x - ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 5));
mainCar.y = (mainCar.y - (((Math.cos(((mainCar.rotation * Math.PI) / 180)) * -1) * speed) * 5));
speed = -(speed);
LifeBar();
};
};
l++;
};
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"]["parkArea"]["tireArea"], root["mainCar"]["tire1"], MovieClip(root), true)){
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"]["parkArea"]["tireArea"], root["mainCar"]["tire2"], MovieClip(root), true)){
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"]["parkArea"]["tireArea"], root["mainCar"]["tire3"], MovieClip(root), true)){
if (PixelPerfectCollisionDetection.isColliding(root["darkArea"]["playGround"]["parkArea"]["tireArea"], root["mainCar"]["tire4"], MovieClip(root), true)){
level++;
calculateScore();
GameOver();
parking.gotoAndStop(2);
parking.gotoAndPlay(2);
return;
};
};
};
};
if ((((timeLeft > 0)) && (lifeBarFlag))){
if (lifeFrame < 54){
continueGame();
};
if (lifeFrame > 53){
if (mcMsg.currentFrame >= 28){
StopGame();
};
return;
};
};
if ((((timeLeft > 0)) && (iscollision))){
if (life > 0){
StartGame();
} else {
if (life <= 0){
GameOver();
gotoAndStop(26);
return;
};
};
};
if (forwardkey){
if ((((mainCar.currentFrame == 1)) && ((Math.abs(speed) >= 1)))){
mainCar.gotoAndStop(2);
};
if (speed < 9){
if (lifeFrame <= 20){
speed = (speed + 0.4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
speed = (speed + 0.3);
};
if (lifeFrame > 40){
speed = (speed + 0.15);
};
};
};
if (backwardkey){
if ((((mainCar.currentFrame == 1)) && ((Math.abs(speed) >= 1)))){
mainCar.gotoAndStop(2);
};
if (speed > -9){
if (lifeFrame <= 20){
speed = (speed - 0.4);
};
if ((((lifeFrame > 20)) && ((lifeFrame <= 40)))){
speed = (speed - 0.3);
};
if (lifeFrame > 40){
speed = (speed - 0.15);
};
};
} else {
if (((!(forwardkey)) && (!(backwardkey)))){
speed = (speed * 0.7);
};
};
if (((((spacekey) && (!(iscollision)))) && (!(lifeBarFlag)))){
if (((((forwardkey) && (rightkey))) || (((backwardkey) && (leftkey))))){
mainCar.rotation = (mainCar.rotation + ((speed * 0.03) * mainCar.tire1.rotation));
mainCar.x = (mainCar.x + ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * speed) * 2));
mainCar.y = (mainCar.y + ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 0.9));
speed = (speed * 0.7);
} else {
if (((((forwardkey) && (leftkey))) || (((backwardkey) && (rightkey))))){
mainCar.rotation = (mainCar.rotation + ((speed * 0.03) * mainCar.tire1.rotation));
mainCar.x = (mainCar.x - ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * speed) * 2));
mainCar.y = (mainCar.y - ((Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed) * 0.9));
speed = (speed * 0.7);
} else {
if (((forwardkey) || (backwardkey))){
speed = (speed * 0.5);
};
};
};
};
if (rightkey){
if (mainCar.tire1.rotation < 25){
mainCar.tire1.rotation = (mainCar.tire1.rotation + 4);
mainCar.tire2.rotation = (mainCar.tire2.rotation + 4);
};
};
if (leftkey){
if (mainCar.tire1.rotation > -25){
mainCar.tire1.rotation = (mainCar.tire1.rotation - 4);
mainCar.tire2.rotation = (mainCar.tire2.rotation - 4);
};
} else {
if (((!(rightkey)) && (!(leftkey)))){
if (mainCar.tire1.rotation > 0){
mainCar.tire1.rotation = (mainCar.tire1.rotation - 4);
mainCar.tire2.rotation = (mainCar.tire2.rotation - 4);
};
if (mainCar.tire1.rotation < 0){
mainCar.tire1.rotation = (mainCar.tire1.rotation + 4);
mainCar.tire2.rotation = (mainCar.tire2.rotation + 4);
};
};
};
if (!iscollision){
mainCar.rotation = (mainCar.rotation + ((speed * 0.02) * mainCar.tire1.rotation));
mainCar.x = (mainCar.x - (Math.sin(((mainCar.rotation * Math.PI) / 180)) * speed));
mainCar.y = (mainCar.y - ((Math.cos(((mainCar.rotation * Math.PI) / 180)) * -1) * speed));
};
if ((((((((((((this.currentFrame == 6)) || ((this.currentFrame == 11)))) || ((this.currentFrame == 15)))) || ((this.currentFrame == 17)))) || ((this.currentFrame == 19)))) || ((this.currentFrame == 21)))){
darkArea.playMask.mask = darkArea.lightArea;
_local2 = new Point(mainCar.x, mainCar.y);
_local2 = darkArea.globalToLocal(_local2);
darkArea.lightArea.rotation = (mainCar.rotation + 90);
darkArea.lightArea.x = _local2.x;
darkArea.lightArea.y = _local2.y;
darkArea.maskLayer.rotation = (mainCar.rotation + 90);
darkArea.maskLayer.x = _local2.x;
darkArea.maskLayer.y = _local2.y;
};
}
public function soundmute(_arg1:MouseEvent){
if (SFXmute_mc.currentFrame == 1){
SFXmuteflag = true;
SFXmute_mc.gotoAndStop(2);
} else {
SFXmuteflag = false;
SFXmute_mc.gotoAndStop(1);
};
}
public function AGplayagainGameComplete(){
MovieClip(root).channel.stop();
MovieClip(root).gotoAndStop(1);
}
public function bgMove(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = false;
_local2 = darkArea.x;
_local3 = darkArea.y;
_local4 = mainCar.x;
_local5 = mainCar.y;
if (mainCar.x >= 575){
_local2 = (darkArea.x - 565);
_local4 = (mainCar.x - 565);
_local1 = true;
} else {
if (mainCar.x < -50){
_local2 = (darkArea.x + 565);
_local4 = (565 + mainCar.x);
_local1 = true;
} else {
if (mainCar.y > 450){
_local3 = (darkArea.y - 420);
_local5 = (mainCar.y - 420);
_local1 = true;
} else {
if (mainCar.y < 10){
_local3 = (darkArea.y + 420);
_local5 = (420 + mainCar.y);
_local1 = true;
};
};
};
};
if (_local1){
darkArea.x = _local2;
darkArea.y = _local3;
mainCar.x = _local4;
mainCar.y = _local5;
_local1 = false;
};
}
public function musicmute(_arg1:MouseEvent){
if (musicmute_mc.currentFrame == 1){
muteflag = true;
musicmute_mc.gotoAndStop(2);
channel.stop();
} else {
muteflag = false;
musicmute_mc.gotoAndStop(1);
if ((((((currentFrame == 1)) || ((currentFrame == 2)))) || ((((currentFrame >= 23)) && ((currentFrame <= 26)))))){
playSound("music1");
} else {
if ((((currentFrame >= 3)) && ((currentFrame <= 22)))){
playSound("music2");
};
};
};
}
public function configureGame(){
stage.addEventListener(Event.ENTER_FRAME, EnterFrame);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
}
}
}//package parkinglot3_fla
Section 77
//manin218_309 (parkinglot3_fla.manin218_309)
package parkinglot3_fla {
import flash.display.*;
public dynamic class manin218_309 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 78
//mc_cngrtsccc_345 (parkinglot3_fla.mc_cngrtsccc_345)
package parkinglot3_fla {
import flash.display.*;
public dynamic class mc_cngrtsccc_345 extends MovieClip {
public function mc_cngrtsccc_345(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package parkinglot3_fla
Section 79
//MUSICMUTE_24 (parkinglot3_fla.MUSICMUTE_24)
package parkinglot3_fla {
import flash.display.*;
public dynamic class MUSICMUTE_24 extends MovieClip {
public function MUSICMUTE_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package parkinglot3_fla
Section 80
//nlmnk_123 (parkinglot3_fla.nlmnk_123)
package parkinglot3_fla {
import flash.display.*;
public dynamic class nlmnk_123 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block4:MovieClip;
public var block3:MovieClip;
}
}//package parkinglot3_fla
Section 81
//nmnmnm2_20 (parkinglot3_fla.nmnmnm2_20)
package parkinglot3_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class nmnmnm2_20 extends MovieClip {
public function nmnmnm2_20(){
addFrameScript(0, frame1);
}
public function logoRelease(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.gamezindia.com"), "_blank");
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, logoRelease);
}
}
}//package parkinglot3_fla
Section 82
//ouchs_88 (parkinglot3_fla.ouchs_88)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.text.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ouchs_88 extends MovieClip {
public function ouchs_88(){
addFrameScript(0, frame1, 11, frame12, 19, frame20);
}
function frame12(){
}
function frame1(){
stop();
}
function frame20(){
if (MovieClip(root).lifeFrame > 53){
MovieClip(root).mcMsg.gotoAndPlay(1);
};
}
}
}//package parkinglot3_fla
Section 83
//parkingareacopy10_164 (parkinglot3_fla.parkingareacopy10_164)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy10_164 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 84
//parkingareacopy11_178 (parkinglot3_fla.parkingareacopy11_178)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy11_178 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 85
//parkingareacopy12_197 (parkinglot3_fla.parkingareacopy12_197)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy12_197 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 86
//parkingareacopy13_225 (parkinglot3_fla.parkingareacopy13_225)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy13_225 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 87
//parkingareacopy14_245 (parkinglot3_fla.parkingareacopy14_245)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy14_245 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 88
//parkingareacopy15_257 (parkinglot3_fla.parkingareacopy15_257)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy15_257 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 89
//parkingareacopy16_264 (parkinglot3_fla.parkingareacopy16_264)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy16_264 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 90
//parkingareacopy17_279 (parkinglot3_fla.parkingareacopy17_279)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy17_279 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 91
//parkingareacopy18_287 (parkinglot3_fla.parkingareacopy18_287)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy18_287 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 92
//parkingareacopy19_304 (parkinglot3_fla.parkingareacopy19_304)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy19_304 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 93
//parkingareacopy20_318 (parkinglot3_fla.parkingareacopy20_318)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy20_318 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 94
//parkingareacopy21_322 (parkinglot3_fla.parkingareacopy21_322)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy21_322 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 95
//parkingareacopy22_331 (parkinglot3_fla.parkingareacopy22_331)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy22_331 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 96
//parkingareacopy3_52 (parkinglot3_fla.parkingareacopy3_52)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy3_52 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 97
//parkingareacopy4_98 (parkinglot3_fla.parkingareacopy4_98)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy4_98 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 98
//parkingareacopy5_117 (parkinglot3_fla.parkingareacopy5_117)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy5_117 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 99
//parkingareacopy6_121 (parkinglot3_fla.parkingareacopy6_121)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy6_121 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 100
//parkingareacopy7_141 (parkinglot3_fla.parkingareacopy7_141)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy7_141 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 101
//parkingareacopy8_150 (parkinglot3_fla.parkingareacopy8_150)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy8_150 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 102
//parkingareacopy9_161 (parkinglot3_fla.parkingareacopy9_161)
package parkinglot3_fla {
import flash.display.*;
public dynamic class parkingareacopy9_161 extends MovieClip {
public var tireArea:MovieClip;
}
}//package parkinglot3_fla
Section 103
//pop_upiii_30 (parkinglot3_fla.pop_upiii_30)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.text.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class pop_upiii_30 extends MovieClip {
public var popupName:TextField;
public var go_mc:SimpleButton;
public var popupText:TextField;
public function pop_upiii_30(){
addFrameScript(0, frame1, 1, frame2, 10, frame11);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
public function levelPopup(){
switch (MovieClip(root).currentFrame){
case 3:
this.popupName.text = "!!! Warming Up !!!";
this.popupText.text = " Use UP arrow key to accelerate, DOWN to brake, and the LEFT and RIGHT arrow keys to steer. You can also use the SPACE BAR key to use your parking brakes.Press ENTER key to close pop-up windows and continue with the game. Do not crash into obstacles. Its game over if theres more than a few scratches on your car!";
break;
case 4:
this.popupName.text = "!!! Bad Roads !!!";
this.popupText.text = " Watch out for the potholes on the road, they might add damage to your car if you are not careful!";
break;
case 5:
this.popupName.text = "!!! Watch out !!!";
this.popupText.text = " Keep an eye out for moving traffic, you never know when a car might come driving at you!";
break;
case 6:
this.popupName.text = "!!! Lights Out !!!";
this.popupText.text = " Oops! Got late tonight! Thankfully you have headlights... Now, where do you park your car?";
break;
case 7:
this.popupName.text = "!!! Blinded !!!";
this.popupText.text = " Its too foggy out there. You had better keep watch and take it slow...";
break;
case 8:
this.popupName.text = "!!! Ice Skater !!!";
this.popupText.text = " Ah... Ice all over the road. How perfect! Make sure you take it slow or you're in for trouble!";
break;
case 9:
this.popupName.text = "!!! Tight Spot !!!";
this.popupText.text = " This one's gonna be tricky. Take it slow, and keep watch!";
break;
case 10:
this.popupName.text = "!!! Parking Skillz !!!";
this.popupText.text = " Lets see how you tackle this one. Dont forget the potholes!";
break;
case 11:
this.popupName.text = "!!! Potholes in the dark !!!";
this.popupText.text = " I hope your headlamps shine down. Watch the road!";
break;
case 12:
this.popupName.text = "!!! Natural Calamity !!!";
this.popupText.text = " Wow. Ice and fog, together. Perfect time for a car-skid...";
break;
case 13:
this.popupName.text = "!!! Recipe for disaster !!!";
this.popupText.text = " Incoming traffic and fog sounds like a perfect recipe for disaster!";
break;
case 14:
this.popupName.text = "!!! Skillz that killz !!!";
this.popupText.text = " Now this is what you call serious driving skills";
break;
case 15:
this.popupName.text = "!!! Headlight rampage !!!";
this.popupText.text = " You have a good chance of getting your license revoked!";
break;
case 16:
this.popupName.text = "!!! Blur and bump !!!";
this.popupText.text = " Bad Weather + Bad Road = You need a whole lotta Good Luck!!!";
break;
case 17:
this.popupName.text = "!!! Slipping into disaster !!!";
this.popupText.text = " Ever got the feeling you are in for a world of pain?";
break;
case 18:
this.popupName.text = "!!! Out of control !!!";
this.popupText.text = " Lets see you get out of this alive!!";
break;
case 19:
this.popupName.text = "!!! The dark night !!!";
this.popupText.text = " Is this the night when your driving comes to an end?";
break;
case 20:
this.popupName.text = "!!! Bumps and Shivers !!!";
this.popupText.text = " Falling into all the potholes should keep you warm!";
break;
case 21:
this.popupName.text = "!!! Nightmareville !!!";
this.popupText.text = " Yes...Its your worst driving nightmare";
break;
case 22:
this.popupName.text = "!!! The final challenge !!!";
this.popupText.text = " Finally its all over!";
break;
};
}
public function whenKeyPressed(_arg1){
if (_arg1.keyCode == 13){
play();
};
}
function frame11(){
stop();
levelPopup();
go_mc.addEventListener(MouseEvent.MOUSE_DOWN, goTolevel);
go_mc.addEventListener(KeyboardEvent.KEY_DOWN, whenKeyPressed);
}
public function goTolevel(_arg1:Event){
play();
}
}
}//package parkinglot3_fla
Section 104
//powerbar_76 (parkinglot3_fla.powerbar_76)
package parkinglot3_fla {
import flash.display.*;
public dynamic class powerbar_76 extends MovieClip {
public function powerbar_76(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package parkinglot3_fla
Section 105
//sduhgaudghhh_17 (parkinglot3_fla.sduhgaudghhh_17)
package parkinglot3_fla {
import flash.display.*;
public dynamic class sduhgaudghhh_17 extends MovieClip {
public function sduhgaudghhh_17(){
addFrameScript(0, frame1, 1, frame2, 29, frame30);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame30(){
if (MovieClip(this.parent).currentFrame == 22){
MovieClip(this.parent).gotoAndStop(23);
} else {
MovieClip(this.parent).gotoAndStop(25);
};
}
}
}//package parkinglot3_fla
Section 106
//skidaaa_15 (parkinglot3_fla.skidaaa_15)
package parkinglot3_fla {
import flash.display.*;
public dynamic class skidaaa_15 extends MovieClip {
public function skidaaa_15(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package parkinglot3_fla
Section 107
//skidmarkfff_339 (parkinglot3_fla.skidmarkfff_339)
package parkinglot3_fla {
import flash.display.*;
public dynamic class skidmarkfff_339 extends MovieClip {
public function skidmarkfff_339(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package parkinglot3_fla
Section 108
//SNDMUTE_27 (parkinglot3_fla.SNDMUTE_27)
package parkinglot3_fla {
import flash.display.*;
public dynamic class SNDMUTE_27 extends MovieClip {
public function SNDMUTE_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package parkinglot3_fla
Section 109
//Sorry_347 (parkinglot3_fla.Sorry_347)
package parkinglot3_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Sorry_347 extends MovieClip {
public var play_again:SimpleButton;
public var scoreBox:TextField;
public var reasonBox:TextField;
}
}//package parkinglot3_fla
Section 110
//submvcliplevel16copy_281 (parkinglot3_fla.submvcliplevel16copy_281)
package parkinglot3_fla {
import flash.display.*;
public dynamic class submvcliplevel16copy_281 extends MovieClip {
public var playGround:MovieClip;
}
}//package parkinglot3_fla
Section 111
//Symbol1ccc_344 (parkinglot3_fla.Symbol1ccc_344)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.text.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Symbol1ccc_344 extends MovieClip {
public var next_level:SimpleButton;
public var levelBox:TextField;
public var scoreBox:TextField;
public var close:SimpleButton;
public function Symbol1ccc_344(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
next_level.addEventListener(MouseEvent.MOUSE_DOWN, nextlevel);
}
public function nextlevel(_arg1:Event){
MovieClip(root).channel.stop();
MovieClip(root).gotoAndStop((MovieClip(root).level + 2));
}
}
}//package parkinglot3_fla
Section 112
//Symbol28_75 (parkinglot3_fla.Symbol28_75)
package parkinglot3_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol28_75 extends MovieClip {
public var mc_timer:TextField;
public var lifeBar:MovieClip;
public var mcLife:MovieClip;
}
}//package parkinglot3_fla
Section 113
//Symbol5aaa_11 (parkinglot3_fla.Symbol5aaa_11)
package parkinglot3_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.text.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Symbol5aaa_11 extends MovieClip {
public var help_mc:SimpleButton;
public var play_mc:SimpleButton;
public function Symbol5aaa_11(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
play_mc.addEventListener(MouseEvent.MOUSE_DOWN, startPlay);
help_mc.addEventListener(MouseEvent.MOUSE_DOWN, startHelp);
}
public function startPlay(_arg1:Event){
MovieClip(root).channel.stop();
MovieClip(root).gotoAndStop(3);
}
public function startHelp(_arg1:Event){
MovieClip(root).channel.stop();
MovieClip(root).gotoAndStop(2);
}
}
}//package parkinglot3_fla
Section 114
//Symbol99aB_58 (parkinglot3_fla.Symbol99aB_58)
package parkinglot3_fla {
import flash.display.*;
public dynamic class Symbol99aB_58 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 115
//SymbolhjhjhaB_55 (parkinglot3_fla.SymbolhjhjhaB_55)
package parkinglot3_fla {
import flash.display.*;
public dynamic class SymbolhjhjhaB_55 extends MovieClip {
public var innerT:MovieClip;
}
}//package parkinglot3_fla
Section 116
//vbnn_262 (parkinglot3_fla.vbnn_262)
package parkinglot3_fla {
import flash.display.*;
public dynamic class vbnn_262 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var block5:MovieClip;
public var block9:MovieClip;
public var block6:MovieClip;
public var block4:MovieClip;
public var block8:MovieClip;
public var gutter1:MovieClip;
public var block7:MovieClip;
public var gutter6:MovieClip;
public var gutter7:MovieClip;
public var block3:MovieClip;
public var gutter8:MovieClip;
public var gutter3:MovieClip;
public var gutter4:MovieClip;
public var gutter11:MovieClip;
public var parkArea:MovieClip;
public var gutter10:MovieClip;
public var gutter2:MovieClip;
public var gutter5:MovieClip;
public var gutter9:MovieClip;
public var block10:MovieClip;
}
}//package parkinglot3_fla
Section 117
//YOURggg_341 (parkinglot3_fla.YOURggg_341)
package parkinglot3_fla {
import flash.display.*;
import flash.text.*;
public dynamic class YOURggg_341 extends MovieClip {
public var play_again:SimpleButton;
public var scoreBox:TextField;
}
}//package parkinglot3_fla
Section 118
//zacvzsdv_113 (parkinglot3_fla.zacvzsdv_113)
package parkinglot3_fla {
import flash.display.*;
public dynamic class zacvzsdv_113 extends MovieClip {
public var block1:MovieClip;
public var block2:MovieClip;
public var movingCar1:MovieClip;
public var block3:MovieClip;
public var parkArea:MovieClip;
}
}//package parkinglot3_fla
Section 119
//AGdom (AGdom)
package {
import flash.events.*;
import com.adobe.serialization.json.*;
import flash.net.*;
import flash.utils.*;
public class AGdom {
private var instanceLoader:URLLoader;
private var serviceTimer:Timer;
private var instanceRequest:URLRequest;
private var toolkit:Object;
public function AGdom(_arg1:Object):void{
instanceLoader = new URLLoader();
instanceRequest = new URLRequest();
super();
toolkit = _arg1;
serviceTimer = new Timer(15000, 1);
serviceTimer.addEventListener(TimerEvent.TIMER_COMPLETE, serviceTimeout);
}
private function returnServer(_arg1:Event):void{
var _local2:*;
serviceTimer.reset();
_local2 = JSON.decode(_arg1.target.data);
trace(("\ngetServerInstance response\n" + _arg1.target.data));
if (_local2["response-array"][0]["returnCode"] == "Error"){
serviceErrorReturn();
return;
};
toolkit.HSdomain = _local2["response-array"][0]["response"].instance;
toolkit.CSdomain = _local2["response-array"][0]["response"].communityInstance;
toolkit.AGdomain = toolkit.CSdomain;
toolkit.AGallowDomain(toolkit.HSdomain);
toolkit.AGallowDomain(toolkit.CSdomain);
toolkit.AGremovePreloader();
toolkit.loader.initLoader();
}
private function AGdomainStatus():void{
var _local1:int;
var _local2:*;
var _local3:String;
_local1 = (int(toolkit.AGfileLocation.indexOf("://")) + 3);
_local2 = toolkit.AGfileLocation.substring(0, _local1);
if (_local2 == "file://"){
trace("found local dev");
toolkit.AGdomain = (toolkit.CSdomain = "dev.addictinggames.com");
toolkit.HSdomain = "hsdev.addictinggames.com";
toolkit.AGdeveloper = true;
toolkit.AGmount = true;
getServer();
return;
};
_local3 = toolkit.AGfileLocation.substr(_local1);
toolkit.AGdomain = _local3.substring(0, _local3.indexOf("/"));
if (((!((_local3.indexOf("addictinggames.com") == -1))) || (!((_local3.indexOf("shockwave.com") == -1))))){
toolkit.AGmount = true;
getServer();
};
}
private function serviceErrorReturn():void{
trace("json error");
toolkit.AGserviceError();
}
private function serviceErrorSecurity(_arg1:SecurityErrorEvent):void{
trace(_arg1);
toolkit.AGserviceError();
}
private function serviceTimeout(_arg1:TimerEvent):void{
trace("timeout error");
toolkit.AGserviceError();
}
private function serviceErrorIO(_arg1:IOErrorEvent):void{
trace(_arg1);
toolkit.AGserviceError();
}
private function getServer():void{
var _local1:URLVariables;
serviceTimer.start();
toolkit.AGinitPreloader();
instanceLoader.dataFormat = URLLoaderDataFormat.TEXT;
instanceLoader.addEventListener(Event.COMPLETE, returnServer);
instanceLoader.addEventListener(IOErrorEvent.IO_ERROR, serviceErrorIO);
instanceLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, serviceErrorSecurity);
instanceRequest.method = URLRequestMethod.GET;
instanceRequest.url = (toolkit.AGdeveloper) ? (("http://" + toolkit.AGdomain) + "/scores/getServerInstance") : "/scores/getServerInstance";
trace(("\ncalling getServerInstance at: " + instanceRequest.url));
_local1 = new URLVariables();
_local1.id = 1;
_local1.gameId = toolkit.gameID;
instanceRequest.data = _local1;
instanceLoader.load(instanceRequest);
}
public function initDomain():void{
AGdomainStatus();
}
}
}//package
Section 120
//AGloader (AGloader)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.external.*;
public class AGloader {
private var assets:Array;
private var dataRequest:URLRequest;
private var modules:Array;
private var sequence:Array;
private var dataXML:XML;
private var index:int;// = 0
private var modContext:LoaderContext;
private var dataLoader:URLLoader;
private var modLoadInfo:LoaderInfo;
private var modRequest:URLRequest;
private var modLoader:Loader;
private var toolkit:Object;
public function AGloader(_arg1:Object):void{
index = 0;
modules = [];
assets = [];
sequence = [];
dataLoader = new URLLoader();
dataRequest = new URLRequest();
modLoader = new Loader();
modContext = new LoaderContext();
modRequest = new URLRequest();
super();
toolkit = _arg1;
}
private function initAsset(_arg1:Event):void{
toolkit[assets[index].classname].removeEventListener(Event.INIT, initAsset);
if (index < (assets.length - 1)){
index++;
loadAsset();
} else {
index = 0;
toolkit.AGremovePreloader();
loadSequence();
};
}
public function initLoader():void{
initLoadData();
}
private function parseLoadData(_arg1:Event):void{
var _local2:XMLList;
var _local3:XMLList;
var _local4:*;
var _local5:XMLList;
var _local6:*;
var _local7:XMLList;
var _local8:*;
var _local9:XMLList;
var _local10:*;
var _local11:XMLList;
var _local12:XMLList;
var _local13:XMLList;
var _local14:XMLList;
var _local15:XMLList;
var _local16:XMLList;
dataXML = new XML(dataLoader.data);
if (toolkit.AGtheme == null){
toolkit.AGtheme = dataXML.elements("theme");
};
if (!toolkit.AGdev){
toolkit.AGdev = Boolean(dataXML.elements("devpanel"));
};
toolkit.AGcompVersion = dataXML.elements("compVersion");
toolkit.AGmoduleVersion = dataXML.elements("moduleVersion");
toolkit.AGsoundOn = ((dataXML.elements("sounds"))=="on") ? true : false;
_local2 = dataXML.child("nav");
toolkit.AGassetPath = _local2.elements("assetpath");
toolkit.AGmodulePath = _local2.elements("modulepath");
toolkit.AGimagePath = _local2.elements("avatarpath");
toolkit.AGprofilePath = _local2.elements("profilepath");
toolkit.AGiconPath = _local2.elements("iconpath");
_local3 = dataXML.child("modules");
_local4 = 0;
while (_local4 < _local3.child("*").length()) {
modules[_local4] = {filename:_local3.child(_local4).@filename, classname:_local3.child(_local4).@classname, propname:_local3.child(_local4).@propname};
_local4++;
};
_local5 = dataXML.child("assets");
_local6 = 0;
while (_local6 < _local5.child("*").length()) {
assets[_local6] = {classname:_local5.child(_local6).@classname, methodname:_local5.child(_local6).@methodname};
_local6++;
};
_local7 = dataXML.child("sequence");
_local8 = 0;
while (_local8 < _local7.child("*").length()) {
sequence[_local8] = {classname:_local7.child(_local8).@classname, methodname:_local7.child(_local8).@methodname};
_local8++;
};
_local9 = dataXML.child("advertising");
_local10 = 0;
while (_local10 < _local9.child("*").length()) {
if (toolkit.AGadvert[_local10] != undefined){
} else {
toolkit.AGadvert[_local10] = {assetPath:_local9.child(_local10).@assetPath, navPath:_local9.child(_local10).@navPath};
};
_local10++;
};
_local11 = dataXML.child("messages");
_local12 = _local11.child("score");
toolkit.AGscoreMessage.high = _local12.elements("high");
toolkit.AGscoreMessage.best = _local12.elements("best");
toolkit.AGscoreMessage.tied = _local12.elements("tied");
toolkit.AGscoreMessage.less = _local12.elements("less");
toolkit.AGscoreMessage.initial = _local12.elements("initial");
toolkit.AGscoreMessage.logout = _local12.elements("logout");
toolkit.AGscoreMessage.zero = _local12.elements("zero");
_local13 = _local11.child("login");
toolkit.AGloginMessage.ondom = _local13.elements("ondom");
toolkit.AGloginMessage.offdom = _local13.elements("offdom");
_local14 = _local11.child("save");
toolkit.AGsaveMessage.screen = _local14.elements("screen");
toolkit.AGsaveMessage.submit = _local14.elements("submit");
_local15 = _local11.child("notify");
toolkit.AGnotifyMessage.screen = _local15.elements("screen");
toolkit.AGnotifyMessage.submit = _local15.elements("submit");
_local16 = _local11.child("error");
toolkit.AGerrorMessage.msg = _local16.elements("msg");
toolkit.AGerrorMessage.sub = _local16.elements("sub");
loadModule();
}
private function initModule(_arg1:Event):void{
var _local2:Class;
modLoadInfo.removeEventListener(Event.COMPLETE, initModule);
_local2 = (modLoadInfo.applicationDomain.getDefinition(modules[index].classname) as Class);
toolkit[modules[index].propname] = new _local2(toolkit);
if (index < (modules.length - 1)){
index++;
loadModule();
} else {
index = 0;
loadAsset();
};
}
private function loadSequence():void{
toolkit[sequence[index].classname].addEventListener(Event.INIT, initSequence);
var _local1 = toolkit[sequence[index].classname];
_local1[sequence[index].methodname]();
}
private function initLoadData():void{
var _local1:String;
var _local2:String;
_local1 = "config/AGloadData1.0.xml";
_local2 = (("http://" + toolkit.AGdomain) + "/sdk/hs/as3/config/AGloadData1.0.xml");
dataRequest.url = ((toolkit.AGassetLocation)=="remote") ? _local2 : _local1;
dataLoader.addEventListener(Event.COMPLETE, parseLoadData);
dataLoader.load(dataRequest);
}
private function loadAsset():void{
toolkit[assets[index].classname].addEventListener(Event.INIT, initAsset);
var _local1 = toolkit[assets[index].classname];
_local1[assets[index].methodname]();
}
private function loadModule():void{
var _local1:*;
var _local2:*;
_local1 = ((("modules/" + modules[index].propname) + "/") + modules[index].filename);
_local2 = ((("http://" + toolkit.AGdomain) + toolkit.AGmodulePath) + modules[index].filename);
modRequest.url = ((toolkit.AGassetLocation)=="remote") ? _local2 : _local1;
modContext.applicationDomain = ApplicationDomain.currentDomain;
modLoadInfo = modLoader.contentLoaderInfo;
modLoadInfo.addEventListener(Event.COMPLETE, initModule);
modLoader.load(modRequest, modContext);
}
private function initSequence(_arg1:Event):void{
toolkit[sequence[index].classname].removeEventListener(Event.INIT, initSequence);
if (index < (sequence.length - 1)){
index++;
loadSequence();
} else {
toolkit.gameInit();
};
}
}
}//package
Section 121
//AGtoolkit (AGtoolkit)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.media.*;
import flash.external.*;
public class AGtoolkit extends MovieClip {
public var AGerrorMessage:Object;
public var loader:AGloader;
public var gameAuthor:String;
public var gameInit:Function;// = null
public var AGnotifyMessage:Object;
public var AGdev:Boolean;// = false
public var AGscoreMessage:Object;
public var AGassetLocation:String;// = "remote"
public var AGmoduleVersion:String;// = "1.0"
public var AGdomain:String;// = null
public var AGiconPath:String;// = null
public var AGsoundOn:Boolean;// = false
public var AGdeveloper:Boolean;// = false
public var AGfileLocation:String;// = null
public var screen:Object;
public var gameID:String;
public var AGimagePath:String;// = null
public var domain:AGdom;
public var AGgameoverScreenControl:Boolean;// = true
public var AGcompVersion:String;// = "1.0"
public var gameWidth:int;
public var comm:Object;
public var gamePause:Function;// = null
public var gameMute:Function;// = null
public var doc:Object;
public var CSdomain:String;// = null
public var AGdomains:Array;
public var AGmodulePath:String;// = null
public var AGtheme:String;// = null
public var AGadvert:Array;
public var toolbar:Object;
public var AGloginMessage:Object;
public var AGprofilePath:String;// = null
public var gameTitle:String;
public var AGpauseScreenControl:Boolean;// = true
public var HSdomain:String;// = null
public var gameVolume:Function;// = null
public var AGmount:Boolean;// = false
public var gameHeight:int;
public var gameRestart:Function;// = null
public var gameScore:Object;
public var AGassetPath:String;// = null
public var gameStats:Array;
public var AGsaveMessage:Object;
public var AGflashVersion:String;// = "AS3"
public function AGtoolkit(_arg1:Object, _arg2:String, _arg3:String, _arg4:String):void{
var _local5:*;
gameInit = null;
gameRestart = null;
gamePause = null;
gameMute = null;
gameVolume = null;
AGdomains = ["www.addictinggames.com"];
AGdomain = null;
HSdomain = null;
CSdomain = null;
AGassetPath = null;
AGmodulePath = null;
AGimagePath = null;
AGprofilePath = null;
AGiconPath = null;
AGassetLocation = "remote";
AGflashVersion = "AS3";
AGcompVersion = "1.0";
AGmoduleVersion = "1.0";
AGtheme = null;
AGsoundOn = false;
AGfileLocation = null;
AGmount = false;
AGdeveloper = false;
AGpauseScreenControl = true;
gameScore = {prop:null, label:null, type:null, precision:0, value:0, tstamp:0};
gameStats = [];
AGgameoverScreenControl = true;
AGscoreMessage = {high:"You set the High Score!", best:"You set a new personal best!", tied:"You tied your best score!", less:"Good game, but not your best!", initial:"Save your first score!", logout:" ", zero:" "};
AGloginMessage = {ondom:"Want to save your score?", offdom:"Want to save your score?"};
AGsaveMessage = {screen:"Want to save your score?", submit:"Your score has been saved!"};
AGnotifyMessage = {screen:"Congratulations! You just beat # Friends!", submit:"Your Friends have been served!"};
AGerrorMessage = {msg:"Sorry, an error occurred", sub:"please return to your game"};
AGadvert = [];
AGdev = false;
super();
addFrameScript(0, frame1);
doc = _arg1;
gameID = _arg2;
gameTitle = _arg3;
gameAuthor = _arg4;
gameWidth = doc.stage.stageWidth;
gameHeight = doc.stage.stageHeight;
AGfileLocation = doc.loaderInfo.url;
doc.stage.scaleMode = StageScaleMode.NO_SCALE;
for (_local5 in AGdomains) {
AGallowDomain(AGdomains[_local5]);
};
AGallowDomain("cdn.gigya.com");
AGinitPreloader();
domain = new AGdom(this);
loader = new AGloader(this);
}
public function AGsetTeaser(_arg1:String, _arg2:String):void{
AGadvert[0] = {assetPath:_arg1, navPath:_arg2};
}
public function AGpauseScreen(_arg1:Boolean):void{
AGpauseScreenControl = _arg1;
}
public function AGgameScore(_arg1:String, _arg2:String, _arg3:String, _arg4:Number=0):void{
gameScore.prop = _arg1;
gameScore.label = _arg2;
gameScore.type = _arg3;
if (_arg4 != 0){
gameScore.precision = _arg4;
};
}
public function AGreloadPage(_arg1:MouseEvent):void{
var _local2:*;
_local2 = (ExternalInterface.available) ? ExternalInterface.call("function(){return document.location.href;}") : null;
if (_local2 == null){
_local2 = "http://www.addictinggames.com";
};
navigateToURL(new URLRequest(_local2));
}
function frame1(){
stop();
}
public function AGaddAdvert(_arg1:String, _arg2:String):void{
AGadvert.push({assetPath:_arg1, navPath:_arg2});
}
public function AGsetTheme(_arg1:String):void{
AGtheme = _arg1;
}
public function AGinitPreloader():void{
var _local1:Sprite;
var _local2:*;
_local1 = new Sprite();
_local1.name = "preloader";
_local1.graphics.beginFill(0, 0.5);
_local1.graphics.drawRect(0, 0, gameWidth, gameHeight);
_local1.graphics.endFill();
_local2 = new LoadProcessor();
_local2.x = (gameWidth / 2);
_local2.y = ((gameHeight - 40) / 2);
_local1.addChild(_local2);
doc.addChild(_local1);
}
public function AGinitToolkit(_arg1:Function):void{
gameInit = _arg1;
domain.initDomain();
}
public function AGsubmitReplay():void{
comm.initSubmitReplay();
}
public function dataOutput(_arg1, _arg2):void{
if (AGdev){
screen.dataOutput(_arg1, _arg2);
};
}
public function AGgameStatsStat(_arg1:String, _arg2:String, _arg3:String, _arg4:Number=0):void{
var _local5:Object;
_local5 = {prop:null, label:null, type:null, precision:0, value:0, tstamp:0};
_local5.prop = _arg1;
_local5.label = _arg2;
_local5.type = _arg3;
if (_arg4 != 0){
_local5.precision = _arg4;
};
gameStats.push(_local5);
}
public function AGsetToolbar(_arg1:String, _arg2:Function):void{
switch (_arg1){
case "restart":
gameRestart = _arg2;
break;
case "pause":
gamePause = _arg2;
break;
case "mute":
gameMute = _arg2;
break;
case "volume":
gameVolume = _arg2;
break;
};
}
public function AGgetUser(_arg1:Function):void{
comm.DEVgetUser(_arg1);
}
public function AGremovePreloader():void{
doc.removeChild(doc.getChildByName("preloader"));
}
public function AGgameoverScreen(_arg1:Boolean):void{
AGgameoverScreenControl = _arg1;
}
public function AGserviceError():void{
var _local1:Sprite;
var _local2:*;
_local1 = new Sprite();
_local1.graphics.beginFill(0, 0.75);
_local1.graphics.drawRect(0, 0, gameWidth, gameHeight);
_local1.graphics.endFill();
_local2 = new ErrorScreen();
_local2.x = (gameWidth / 2);
_local2.y = (gameHeight / 2);
_local2.okBtn.addEventListener(MouseEvent.CLICK, AGreloadPage);
_local1.addChild(_local2);
doc.addChild(_local1);
}
public function AGsubmitScore(_arg1:Function=null):void{
gameRestart = ((_arg1)==null) ? gameRestart : _arg1;
gameScore.tstamp = new Date().getTime();
gameScore.value = doc[gameScore.prop];
screen.initGameOverSequence();
}
public function AGallowDomain(_arg1:String):void{
if (AGdomains.indexOf(_arg1) != -1){
return;
};
AGdomains.push(_arg1);
Security.allowDomain(_arg1, ("http://" + _arg1), ("https://" + _arg1));
Security.allowInsecureDomain(_arg1, ("http://" + _arg1), ("https://" + _arg1));
}
public function AGsetGameMessage(_arg1:String, _arg2:String, _arg3:String):void{
switch (_arg1){
case "score":
AGscoreMessage[_arg2] = _arg3;
break;
case "login":
AGloginMessage[_arg2] = _arg3;
break;
case "save":
AGsaveMessage[_arg2] = _arg3;
break;
case "notify":
AGnotifyMessage[_arg2] = _arg3;
break;
case "error":
AGerrorMessage[_arg2] = _arg3;
break;
};
}
public function dataTrace(_arg1):void{
if (AGdev){
screen.dataTrace(_arg1);
};
}
public function AGgetLeaderboard(_arg1:Function, _arg2:String, _arg3:String):void{
comm.DEVgetLeaderboard(_arg1, _arg2, _arg3);
}
public function AGgameover(_arg1:Function=null):void{
gameRestart = ((_arg1)==null) ? gameRestart : _arg1;
gameScore.tstamp = new Date().getTime();
gameScore.value = doc[gameScore.prop];
if (AGgameoverScreenControl){
screen.initGameOverScreen();
};
}
}
}//package
Section 122
//crash1 (crash1)
package {
import flash.media.*;
public dynamic class crash1 extends Sound {
}
}//package
Section 123
//crash2 (crash2)
package {
import flash.media.*;
public dynamic class crash2 extends Sound {
}
}//package
Section 124
//ErrorScreen (ErrorScreen)
package {
import flash.display.*;
public dynamic class ErrorScreen extends MovieClip {
public var okBtn:SimpleButton;
}
}//package
Section 125
//LoadProcessor (LoadProcessor)
package {
import flash.events.*;
import flash.display.*;
public dynamic class LoadProcessor extends MovieClip {
public var ringB:MovieClip;
public var ringC:MovieClip;
public var ringA:MovieClip;
public var spd:int;
public function LoadProcessor(){
addFrameScript(0, frame1);
}
public function rotate(_arg1:Event):void{
ringA.rotation = (ringA.rotation + spd);
ringB.rotation = (ringB.rotation - spd);
ringC.rotation = (ringC.rotation + spd);
}
function frame1(){
alpha = 0.7;
spd = 5;
addEventListener(Event.ENTER_FRAME, rotate);
}
}
}//package
Section 126
//music1 (music1)
package {
import flash.media.*;
public dynamic class music1 extends Sound {
}
}//package
Section 127
//music2 (music2)
package {
import flash.media.*;
public dynamic class music2 extends Sound {
}
}//package
Section 128
//PixelPerfectCollisionDetection (PixelPerfectCollisionDetection)
package {
import flash.geom.*;
import flash.display.*;
public class PixelPerfectCollisionDetection {
public static function getCollisionRect(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Rectangle{
var _local6:Rectangle;
var _local7:Rectangle;
var _local8:Rectangle;
var _local9:BitmapData;
var _local10:BitmapData;
var _local11:uint;
var _local12:Rectangle;
var _local13:int;
_local6 = _arg1.getBounds(_arg3);
_local7 = _arg2.getBounds(_arg3);
_local8 = _local6.intersection(_local7);
if (_local8.size.length > 0){
if (_arg4){
_local8.width = Math.ceil(_local8.width);
_local8.height = Math.ceil(_local8.height);
_local9 = getAlphaMap(_arg1, _local8, BitmapDataChannel.RED, _arg3);
_local10 = getAlphaMap(_arg2, _local8, BitmapDataChannel.GREEN, _arg3);
_local9.draw(_local10, null, null, BlendMode.LIGHTEN);
if (_arg5 <= 0){
_local11 = 65792;
} else {
if (_arg5 > 1){
_arg5 = 1;
};
_local13 = Math.round((_arg5 * 0xFF));
_local11 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local12 = _local9.getColorBoundsRect(_local11, _local11);
_local9.getColorBoundsRect(_local11, _local11).x = (_local12.x + _local8.x);
_local12.y = (_local12.y + _local8.y);
return (_local12);
} else {
return (_local8);
};
//unresolved jump
};
return (null);
}
public static function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Boolean{
var _local6:Rectangle;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
return (true);
};
return (false);
}
public static function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Point{
var _local6:Rectangle;
var _local7:Number;
var _local8:Number;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
_local7 = ((_local6.left + _local6.right) / 2);
_local8 = ((_local6.top + _local6.bottom) / 2);
return (new Point(_local7, _local8));
};
return (null);
}
private static function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:DisplayObjectContainer):BitmapData{
var _local5:Matrix;
var _local6:Matrix;
var _local7:BitmapData;
var _local8:BitmapData;
_local5 = _arg4.transform.concatenatedMatrix.clone();
_local5.invert();
_local6 = _arg1.transform.concatenatedMatrix.clone();
_local6.concat(_local5);
_local6.translate(-(_arg2.x), -(_arg2.y));
_local7 = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local7.draw(_arg1, _local6);
_local8 = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local8.copyChannel(_local7, _local7.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local8);
}
}
}//package