Section 1
//fireEscape (assets.buildings.parts.fireEscape)
package assets.buildings.parts {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class fireEscape extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
public var hitpoints:Array;
public var scope:Object;
public var hitType:Number;// = 4
public var dist:Number;
public var buffer:Number;// = 10
public var objType:Number;// = 1
public var wide:Number;// = 85
public function fireEscape(){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 85;
space = 0;
objType = 1;
hitType = 4;
buffer = 10;
hitpoints = new Array();
super();
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
var _local1:*;
_local1 = 0;
while (_local1 < 100) {
hitpoints.push({x:40, y:(-50 - _local1)});
_local1 = (_local1 + 10);
};
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawRails(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
graphics.lineStyle(4, 0x330000);
_local3 = new Point((pp.x - (x + -(_arg1))), (pp.y - y));
_local4 = Math.atan2(_local3.y, _local3.x);
_local5 = (-10 * (1 / Math.tan(_local4)));
_local6 = new Point((pp.x - (x + -(_arg1))), (pp.y - (y + _arg2)));
_local7 = Math.atan2(_local6.y, _local6.x);
_local8 = (_local5 * Math.tan(_local7));
graphics.moveTo(-(_arg1), _arg2);
graphics.lineTo((-(_arg1) + _local5), (_arg2 + _local8));
_local9 = new Point((pp.x - (x + _arg1)), (pp.y - y));
_local10 = Math.atan2(_local9.y, _local9.x);
_local11 = (-10 * (1 / Math.tan(_local10)));
_local12 = new Point((pp.x - (x + _arg1)), (pp.y - (y + _arg2)));
_local13 = Math.atan2(_local12.y, _local12.x);
_local14 = (_local11 * Math.tan(_local13));
graphics.moveTo(_arg1, _arg2);
graphics.lineTo((_arg1 + _local11), (_arg2 + _local14));
}
public function drawSteps(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
graphics.lineStyle(6, 0x330000);
_local1 = new Point((pp.x - (x + -20)), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (-5 * (1 / Math.tan(_local2)));
_local4 = new Point((pp.x - (x + -20)), (pp.y - (y + -150)));
_local5 = Math.atan2(_local4.y, _local4.x);
_local6 = (_local3 * Math.tan(_local5));
_local7 = new Point((pp.x - (x + 40)), (pp.y - y));
_local8 = Math.atan2(_local7.y, _local7.x);
_local9 = (-5 * (1 / Math.tan(_local8)));
_local10 = new Point((pp.x - (x + 40)), (pp.y - (y + -260)));
_local11 = Math.atan2(_local10.y, _local10.x);
_local12 = (_local9 * Math.tan(_local11));
graphics.moveTo((-20 + _local3), (-150 + _local6));
graphics.lineTo((40 + _local9), (-260 + _local12));
_local13 = 10;
while (_local13 < 110) {
_local14 = (_local13 * (1 / Math.tan(1.0712475)));
_local15 = (-150 - _local13);
_local16 = new Point((pp.x - (x + (-20 + _local14))), (pp.y - y));
_local17 = Math.atan2(_local16.y, _local16.x);
_local18 = (-5 * (1 / Math.tan(_local17)));
_local19 = new Point((pp.x - (x + (-20 + _local14))), (pp.y - (y + _local15)));
_local20 = Math.atan2(_local19.y, _local19.x);
_local21 = (_local18 * Math.tan(_local20));
graphics.lineStyle(4, 0x330000);
graphics.moveTo((-20 + _local14), _local15);
graphics.lineTo(((-20 + _local14) + _local18), (_local15 + _local21));
_local13 = (_local13 + 10);
};
}
public function drawLadder(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
drawVert(5, 40, -50, -150, 6);
graphics.lineStyle(2, 0x330000);
_local1 = 10;
while (_local1 < 100) {
_local2 = new Point((pp.x - (x + 40)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-5 * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + 40)), (pp.y - (y + (-50 - _local1))));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
graphics.moveTo(40, (-50 - _local1));
graphics.lineTo((40 + _local4), ((-50 - _local1) + _local7));
_local1 = (_local1 + 10);
};
}
public function render(_arg1:Event){
graphics.clear();
drawPlatform(53, -260);
drawPlatform(53, -150);
drawRails(52, -310);
drawRails(52, -200);
drawVert(4, -52, -260, -310, 2);
drawVert(7, -52, -260, -310, 2);
drawVert(4, 52, -260, -310, 2);
drawVert(7, 52, -260, -310, 2);
drawVert(4, -52, -150, -200, 2);
drawVert(7, -52, -150, -200, 2);
drawVert(4, 52, -150, -200, 2);
drawVert(7, 52, -150, -200, 2);
drawSteps();
drawLadder();
}
public function drawVert(_arg1, _arg2, _arg3, _arg4, _arg5){
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
graphics.lineStyle(_arg5, 0x330000, 1, false, "normal", "none");
_local6 = new Point((pp.x - (x + _arg2)), (pp.y - y));
_local7 = Math.atan2(_local6.y, _local6.x);
_local8 = (-(_arg1) * (1 / Math.tan(_local7)));
_local9 = new Point((pp.x - (x + _arg2)), (pp.y - (y + _arg3)));
_local10 = Math.atan2(_local9.y, _local9.x);
_local11 = (_local8 * Math.tan(_local10));
_local12 = new Point((pp.x - (x + _arg2)), (pp.y - y));
_local13 = Math.atan2(_local12.y, _local12.x);
_local14 = (-(_arg1) * (1 / Math.tan(_local13)));
_local15 = new Point((pp.x - (x + _arg2)), (pp.y - (y + _arg4)));
_local16 = Math.atan2(_local15.y, _local15.x);
_local17 = (_local14 * Math.tan(_local16));
graphics.moveTo((_arg2 + _local8), (_arg3 + _local11));
graphics.lineTo((_arg2 + _local14), (_arg4 + _local17));
}
public function drawPlatform(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
graphics.lineStyle(6, 0x330000);
_local3 = new Point((pp.x - (x + -(_arg1))), (pp.y - y));
_local4 = Math.atan2(_local3.y, _local3.x);
_local5 = (-10 * (1 / Math.tan(_local4)));
_local6 = new Point((pp.x - (x + -(_arg1))), (pp.y - (y + _arg2)));
_local7 = Math.atan2(_local6.y, _local6.x);
_local8 = (_local5 * Math.tan(_local7));
graphics.moveTo(-(_arg1), _arg2);
graphics.lineTo((-(_arg1) + _local5), (_arg2 + _local8));
_local9 = new Point((pp.x - (x + _arg1)), (pp.y - y));
_local10 = Math.atan2(_local9.y, _local9.x);
_local11 = (-10 * (1 / Math.tan(_local10)));
_local12 = new Point((pp.x - (x + _arg1)), (pp.y - (y + _arg2)));
_local13 = Math.atan2(_local12.y, _local12.x);
_local14 = (_local11 * Math.tan(_local13));
graphics.moveTo(_arg1, _arg2);
graphics.lineTo((_arg1 + _local11), (_arg2 + _local14));
graphics.moveTo((-(_arg1) + _local5), (_arg2 + _local8));
graphics.lineTo((_arg1 + _local11), (_arg2 + _local14));
graphics.lineStyle(2, 0x330000);
_local15 = 0;
while (_local15 <= 100) {
_local16 = new Point((pp.x - (x + (-50 + _local15))), (pp.y - y));
_local17 = Math.atan2(_local16.y, _local16.x);
_local18 = (-10 * (1 / Math.tan(_local17)));
graphics.moveTo((-50 + _local15), _arg2);
graphics.lineTo(((-50 + _local15) + _local18), (_arg2 + _local14));
_local15 = (_local15 + 5);
};
}
}
}//package assets.buildings.parts
Section 2
//railing1 (assets.buildings.parts.railing1)
package assets.buildings.parts {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class railing1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
public var scope:Object;
public var hitType:Number;// = 2
public var planesA:Array;
public var planesB:Array;
public var dist:Number;
public var buffer:Number;// = 10
public var objType:Number;// = 1
public var wide:Number;// = 97
public function railing1(){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 97;
space = 0;
objType = 1;
hitType = 2;
buffer = 10;
planesA = new Array();
planesB = new Array();
super();
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planesA.push({A:new Point(97, 0), B:new Point(97, -10), cl:10053171, al:1, dp:5});
planesA.push({A:new Point(97, -10), B:new Point(95, -10), cl:13408614, al:1, dp:5});
planesA.push({A:new Point(95, -10), B:new Point(95, -35), cl:4399361, al:1, dp:5});
planesA.push({A:new Point(97, -35), B:new Point(97, -40), cl:10053171, al:1, dp:5});
planesA.push({A:new Point(-83, 0), B:new Point(-83, -10), cl:10053171, al:1, dp:10});
planesA.push({A:new Point(-85, -10), B:new Point(-83, -10), cl:13408614, al:1, dp:10});
planesA.push({A:new Point(-85, -10), B:new Point(-85, -35), cl:4399361, al:1, dp:10});
planesA.push({A:new Point(-83, -35), B:new Point(-83, -40), cl:10053171, al:1, dp:10});
planesA.push({A:new Point(-97, 0), B:new Point(-97, -10), cl:10053171, al:1, dp:10});
planesA.push({A:new Point(-95, -10), B:new Point(-97, -10), cl:13408614, al:1, dp:10});
planesA.push({A:new Point(-95, -10), B:new Point(-95, -35), cl:4399361, al:1, dp:10});
planesA.push({A:new Point(-97, -35), B:new Point(-97, -40), cl:10053171, al:1, dp:10});
planesA.push({A:new Point(97, -40), B:new Point(-97, -40), cl:14531481, al:1, dp:5});
planesA.push({A:new Point(-97, -40), B:new Point(-83, -40), cl:14531481, al:1, dp:10});
planesB.push({A:new Point(97, 0), B:new Point(97, -10), cl:10053171, al:1, dp:5});
planesB.push({A:new Point(97, -10), B:new Point(95, -10), cl:13408614, al:1, dp:5});
planesB.push({A:new Point(95, -10), B:new Point(95, -35), cl:4399361, al:1, dp:5});
planesB.push({A:new Point(97, -35), B:new Point(97, -40), cl:10053171, al:1, dp:5});
planesB.push({A:new Point(-97, 0), B:new Point(-97, -10), cl:10053171, al:1, dp:10});
planesB.push({A:new Point(-95, -10), B:new Point(-97, -10), cl:13408614, al:1, dp:10});
planesB.push({A:new Point(-95, -10), B:new Point(-95, -35), cl:4399361, al:1, dp:10});
planesB.push({A:new Point(-97, -35), B:new Point(-97, -40), cl:10053171, al:1, dp:10});
planesB.push({A:new Point(-83, 0), B:new Point(-83, -10), cl:10053171, al:1, dp:10});
planesB.push({A:new Point(-85, -10), B:new Point(-83, -10), cl:13408614, al:1, dp:10});
planesB.push({A:new Point(-85, -10), B:new Point(-85, -35), cl:4399361, al:1, dp:10});
planesB.push({A:new Point(-83, -35), B:new Point(-83, -40), cl:10053171, al:1, dp:10});
planesB.push({A:new Point(97, -40), B:new Point(-97, -40), cl:14531481, al:1, dp:5});
planesB.push({A:new Point(-97, -40), B:new Point(-83, -40), cl:14531481, al:1, dp:10});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(_arg1.dp) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(_arg1.dp) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:Array;
var _local3:*;
_local2 = new Array();
if (x > 500){
_local2 = planesA;
} else {
_local2 = planesB;
};
graphics.clear();
_local3 = 0;
while (_local3 < _local2.length) {
drawPlane(_local2[_local3]);
_local3++;
};
}
}
}//package assets.buildings.parts
Section 3
//ramp1 (assets.buildings.parts.ramp1)
package assets.buildings.parts {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class ramp1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
public var ramp:MovieClip;
public var scope:Object;
public var buffer:Number;// = 10
public var hitType:Number;// = 3
public var planes:Array;
public var dist:Number;
public var objType:Number;// = 1
public var wide:Number;// = 170
public function ramp1(){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 170;
space = 0;
buffer = 10;
objType = 1;
hitType = 3;
planes = new Array();
super();
setData();
filters = [new DropShadowFilter(2, 45, 0, 0.4, 1, 1)];
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(170, 0), B:new Point(170, -20), cl:0x666666, al:1});
planes.push({A:new Point(-170, 0), B:new Point(-130, -20), cl:0x999999, al:1});
planes.push({A:new Point(170, -20), B:new Point(-130, -20), cl:0xCCCCCC, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
}
}//package assets.buildings.parts
Section 4
//stack1 (assets.buildings.parts.stack1)
package assets.buildings.parts {
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class stack1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
public var scope:Object;
public var hitType:Number;// = 0
public var dist:Number;
public var objType:Number;// = 0
public var wide:Number;// = 50
public function stack1(){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 50;
space = 0;
objType = 0;
hitType = 0;
super();
filters = [new DropShadowFilter(8, 0, 0, 0.5, 4, 4)];
}
}
}//package assets.buildings.parts
Section 5
//step2 (assets.buildings.parts.step2)
package assets.buildings.parts {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class step2 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
public var scope:Object;
public var hitType:Number;// = 1
public var planes:Array;
public var dist:Number;
public var objType:Number;// = 1
public var wide:Number;// = 40
public function step2(){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 40;
space = 0;
objType = 1;
hitType = 1;
planes = new Array();
super();
setData();
filters = [new DropShadowFilter(2, 45, 0, 0.4, 1, 1)];
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(40, 0), B:new Point(40, -10), cl:0x666666, al:1});
planes.push({A:new Point(-40, 0), B:new Point(-40, -10), cl:0x666666, al:1});
planes.push({A:new Point(40, -10), B:new Point(-40, -10), cl:0xCCCCCC, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
}
}//package assets.buildings.parts
Section 6
//step3 (assets.buildings.parts.step3)
package assets.buildings.parts {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class step3 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
public var scope:Object;
public var hitType:Number;// = 1
public var planes:Array;
public var dist:Number;
public var objType:Number;// = 1
public var wide:Number;// = 110
public function step3(){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 110;
space = 0;
objType = 1;
hitType = 1;
planes = new Array();
super();
setData();
filters = [new DropShadowFilter(2, 45, 0, 0.4, 1, 1)];
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(60, 0), B:new Point(60, -10), cl:0x666666, al:1});
planes.push({A:new Point(50, -10), B:new Point(50, -20), cl:0x666666, al:1});
planes.push({A:new Point(40, -20), B:new Point(40, -30), cl:0x666666, al:1});
planes.push({A:new Point(60, -10), B:new Point(50, -10), cl:0xCCCCCC, al:1});
planes.push({A:new Point(50, -20), B:new Point(40, -20), cl:0xCCCCCC, al:1});
planes.push({A:new Point(-60, 0), B:new Point(-60, -10), cl:0x666666, al:1});
planes.push({A:new Point(-50, -10), B:new Point(-50, -20), cl:0x666666, al:1});
planes.push({A:new Point(-40, -20), B:new Point(-40, -30), cl:0x666666, al:1});
planes.push({A:new Point(-60, -10), B:new Point(-50, -10), cl:0xCCCCCC, al:1});
planes.push({A:new Point(-50, -20), B:new Point(-40, -20), cl:0xCCCCCC, al:1});
planes.push({A:new Point(40, -30), B:new Point(-40, -30), cl:0xCCCCCC, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
}
}//package assets.buildings.parts
Section 7
//step4 (assets.buildings.parts.step4)
package assets.buildings.parts {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class step4 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
public var scope:Object;
public var hitType:Number;// = 2
public var planes:Array;
public var dist:Number;
public var buffer:Number;// = 20
public var objType:Number;// = 1
public var wide:Number;// = 250
public function step4(){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 250;
space = 0;
objType = 1;
hitType = 2;
buffer = 20;
planes = new Array();
super();
setData();
filters = [new DropShadowFilter(2, 45, 0, 0.4, 1, 1)];
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(250, 0), B:new Point(250, -10), cl:0x666666, al:1});
planes.push({A:new Point(250, -10), B:new Point(240, -10), cl:0xCCCCCC, al:1});
planes.push({A:new Point(240, -10), B:new Point(240, -20), cl:0x666666, al:1});
planes.push({A:new Point(-250, 0), B:new Point(-250, -10), cl:0x666666, al:1});
planes.push({A:new Point(-250, -10), B:new Point(-240, -10), cl:0xCCCCCC, al:1});
planes.push({A:new Point(-240, -10), B:new Point(-240, -20), cl:0x666666, al:1});
planes.push({A:new Point(240, -20), B:new Point(-240, -20), cl:0xCCCCCC, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
}
}//package assets.buildings.parts
Section 8
//step5 (assets.buildings.parts.step5)
package assets.buildings.parts {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class step5 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
public var scope:Object;
public var hitType:Number;// = 2
public var planes:Array;
public var dist:Number;
public var buffer:Number;// = 10
public var objType:Number;// = 1
public var wide:Number;// = 85
public function step5(){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 85;
space = 0;
objType = 1;
hitType = 2;
buffer = 10;
planes = new Array();
super();
setData();
filters = [new DropShadowFilter(2, 45, 0, 0.4, 1, 1)];
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(85, 0), B:new Point(85, -10), cl:0x666666, al:1});
planes.push({A:new Point(85, -10), B:new Point(75, -10), cl:0xCCCCCC, al:1});
planes.push({A:new Point(75, -10), B:new Point(75, -20), cl:0x666666, al:1});
planes.push({A:new Point(-85, 0), B:new Point(-85, -20), cl:0x666666, al:1});
planes.push({A:new Point(-85, -20), B:new Point(75, -20), cl:0xCCCCCC, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawRails(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
graphics.lineStyle(4, 0x330000);
_local1 = new Point((pp.x - (x + -80)), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (-10 * (1 / Math.tan(_local2)));
_local4 = new Point((pp.x - (x + -80)), (pp.y - (y + -70)));
_local5 = Math.atan2(_local4.y, _local4.x);
_local6 = (_local3 * Math.tan(_local5));
graphics.moveTo(-80, -70);
graphics.lineTo((-80 + _local3), (-70 + _local6));
_local1 = new Point((pp.x - (x + -80)), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (-10 * (1 / Math.tan(_local2)));
_local4 = new Point((pp.x - (x + -80)), (pp.y - (y + -30)));
_local5 = Math.atan2(_local4.y, _local4.x);
_local6 = (_local3 * Math.tan(_local5));
graphics.moveTo(-80, -30);
graphics.lineTo((-80 + _local3), (-30 + _local6));
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function drawVert(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
graphics.lineStyle(2, 0x330000);
_local4 = new Point((pp.x - (x + -80)), (pp.y - y));
_local5 = Math.atan2(_local4.y, _local4.x);
_local6 = (-(_arg1) * (1 / Math.tan(_local5)));
_local7 = new Point((pp.x - (x + -80)), (pp.y - (y + _arg2)));
_local8 = Math.atan2(_local7.y, _local7.x);
_local9 = (_local6 * Math.tan(_local8));
_local10 = new Point((pp.x - (x + -80)), (pp.y - y));
_local11 = Math.atan2(_local10.y, _local10.x);
_local12 = (-(_arg1) * (1 / Math.tan(_local11)));
_local13 = new Point((pp.x - (x + -80)), (pp.y - (y + _arg3)));
_local14 = Math.atan2(_local13.y, _local13.x);
_local15 = (_local12 * Math.tan(_local14));
graphics.moveTo((-80 + _local6), (_arg2 + _local9));
graphics.lineTo((-80 + _local12), (_arg3 + _local15));
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
drawRails();
drawVert(7, -30, -70);
drawVert(4, -30, -70);
}
}
}//package assets.buildings.parts
Section 9
//building1 (assets.buildings.building1)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class building1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 30
public var space:Number;// = 10
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 102
public function building1(_arg1){
pp = new Point((350 + 150), 200);
deep = 30;
wide = 102;
space = 10;
planes = new Array();
super();
setData();
scope = _arg1;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(102, 0), B:new Point(102, -30), cl:0x666666, al:1});
planes.push({A:new Point(100, -30), B:new Point(102, -30), cl:0x999999, al:1});
planes.push({A:new Point(100, -30), B:new Point(100, -150), cl:0x660000, al:1});
planes.push({A:new Point(102, -150), B:new Point(102, -160), cl:0x666666, al:1});
planes.push({A:new Point(100, -150), B:new Point(102, -150), cl:0x333333, al:1});
planes.push({A:new Point(100, -160), B:new Point(100, -270), cl:0x660000, al:1});
planes.push({A:new Point(102, -270), B:new Point(102, -280), cl:0x666666, al:1});
planes.push({A:new Point(100, -270), B:new Point(102, -270), cl:0x333333, al:1});
planes.push({A:new Point(-102, 0), B:new Point(-102, -30), cl:0x666666, al:1});
planes.push({A:new Point(-100, -30), B:new Point(-102, -30), cl:0x999999, al:1});
planes.push({A:new Point(-100, -30), B:new Point(-100, -150), cl:0x660000, al:1});
planes.push({A:new Point(-102, -150), B:new Point(-102, -160), cl:0x666666, al:1});
planes.push({A:new Point(-100, -150), B:new Point(-102, -150), cl:0x333333, al:1});
planes.push({A:new Point(-100, -160), B:new Point(-100, -270), cl:0x660000, al:1});
planes.push({A:new Point(-102, -270), B:new Point(-102, -280), cl:0x666666, al:1});
planes.push({A:new Point(-100, -270), B:new Point(-102, -270), cl:0x333333, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new step2();
_local4.x = (x + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
}
}
}//package assets.buildings
Section 10
//building2 (assets.buildings.building2)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class building2 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 40
public var space:Number;// = 20
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 202
public function building2(_arg1){
pp = new Point((350 + 150), 200);
deep = 40;
wide = 202;
space = 20;
planes = new Array();
super();
scope = _arg1;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(202, 0), B:new Point(202, -20), cl:0x666666, al:1});
planes.push({A:new Point(202, -20), B:new Point(200, -20), cl:0x999999, al:1});
planes.push({A:new Point(200, -20), B:new Point(200, -290), cl:0x663300, al:1});
planes.push({A:new Point(200, -290), B:new Point(202, -290), cl:0x333333, al:1});
planes.push({A:new Point(202, -290), B:new Point(202, -310), cl:0x666666, al:1});
planes.push({A:new Point(202, -310), B:new Point(210, -310), cl:0x333333, al:1});
planes.push({A:new Point(210, -310), B:new Point(210, -320), cl:0x666666, al:1});
planes.push({A:new Point(-202, 0), B:new Point(-202, -20), cl:0x666666, al:1});
planes.push({A:new Point(-202, -20), B:new Point(-200, -20), cl:0x999999, al:1});
planes.push({A:new Point(-200, -20), B:new Point(-200, -290), cl:0x663300, al:1});
planes.push({A:new Point(-200, -290), B:new Point(-202, -290), cl:0x333333, al:1});
planes.push({A:new Point(-202, -290), B:new Point(-202, -310), cl:0x666666, al:1});
planes.push({A:new Point(-202, -310), B:new Point(-210, -310), cl:0x333333, al:1});
planes.push({A:new Point(-210, -310), B:new Point(-210, -320), cl:0x666666, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new step3();
_local4.x = ((x + 145) + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
}
}
}//package assets.buildings
Section 11
//building3 (assets.buildings.building3)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class building3 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 30
public var space:Number;// = 10
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 154
public function building3(_arg1){
pp = new Point((350 + 150), 200);
deep = 30;
wide = 154;
space = 10;
planes = new Array();
super();
setData();
scope = _arg1;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(154, 0), B:new Point(154, -20), cl:10053171, al:1});
planes.push({A:new Point(150, -20), B:new Point(154, -20), cl:13408614, al:1});
planes.push({A:new Point(150, -20), B:new Point(150, -450), cl:4399361, al:1});
planes.push({A:new Point(153, -150), B:new Point(153, -160), cl:10053171, al:1});
planes.push({A:new Point(150, -150), B:new Point(153, -150), cl:0x663300, al:1});
planes.push({A:new Point(153, -300), B:new Point(153, -310), cl:10053171, al:1});
planes.push({A:new Point(150, -300), B:new Point(153, -300), cl:0x663300, al:1});
planes.push({A:new Point(153, -450), B:new Point(153, -460), cl:10053171, al:1});
planes.push({A:new Point(150, -450), B:new Point(153, -450), cl:0x663300, al:1});
planes.push({A:new Point(-154, 0), B:new Point(-154, -20), cl:10053171, al:1});
planes.push({A:new Point(-150, -20), B:new Point(-154, -20), cl:13408614, al:1});
planes.push({A:new Point(-150, -20), B:new Point(-150, -450), cl:4399361, al:1});
planes.push({A:new Point(-153, -150), B:new Point(-153, -160), cl:10053171, al:1});
planes.push({A:new Point(-150, -150), B:new Point(-153, -150), cl:0x663300, al:1});
planes.push({A:new Point(-153, -300), B:new Point(-153, -310), cl:10053171, al:1});
planes.push({A:new Point(-150, -300), B:new Point(-153, -300), cl:0x663300, al:1});
planes.push({A:new Point(-153, -450), B:new Point(-153, -460), cl:10053171, al:1});
planes.push({A:new Point(-150, -450), B:new Point(-153, -450), cl:0x663300, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new railing1();
_local4.x = ((x + -45) + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
}
}
}//package assets.buildings
Section 12
//building4 (assets.buildings.building4)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class building4 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 30
public var space:Number;// = 10
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 0xFF
public function building4(_arg1){
pp = new Point((350 + 150), 200);
deep = 30;
wide = 0xFF;
space = 10;
planes = new Array();
super();
setData();
scope = _arg1;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(253, 0), B:new Point(253, -50), cl:0x999999, al:1});
planes.push({A:new Point(253, -50), B:new Point(250, -50), cl:0xCCCCCC, al:1});
planes.push({A:new Point(250, -50), B:new Point(250, -230), cl:76090, al:1});
planes.push({A:new Point(250, -230), B:new Point(0xFF, -230), cl:0x333333, al:1});
planes.push({A:new Point(0xFF, -230), B:new Point(0xFF, -240), cl:0x666666, al:1});
planes.push({A:new Point(-253, 0), B:new Point(-253, -50), cl:0x999999, al:1});
planes.push({A:new Point(-253, -50), B:new Point(-250, -50), cl:0xCCCCCC, al:1});
planes.push({A:new Point(-250, -50), B:new Point(-250, -230), cl:76090, al:1});
planes.push({A:new Point(-250, -230), B:new Point(-255, -230), cl:0x333333, al:1});
planes.push({A:new Point(-255, -230), B:new Point(-255, -240), cl:0x666666, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new ramp1();
_local4.x = ((x + 90) + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
}
}
}//package assets.buildings
Section 13
//building5 (assets.buildings.building5)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class building5 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 40
public var space:Number;// = 10
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 200
public function building5(_arg1){
pp = new Point((350 + 150), 200);
deep = 40;
wide = 200;
space = 10;
planes = new Array();
super();
setData();
scope = _arg1;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(200, -180), B:new Point(0, -280), cl:0x333333, al:1});
planes.push({A:new Point(-200, -180), B:new Point(0, -280), cl:0x444444, al:1});
planes.push({A:new Point(188, 0), B:new Point(188, -30), cl:0x333333, al:1});
planes.push({A:new Point(190, -30), B:new Point(190, -160), cl:0x444444, al:1});
planes.push({A:new Point(190, -160), B:new Point(190, -170), cl:0x333333, al:1});
planes.push({A:new Point(200, -170), B:new Point(200, -180), cl:0x999999, al:1});
planes.push({A:new Point(190, -170), B:new Point(200, -170), cl:0x666666, al:1});
planes.push({A:new Point(-188, 0), B:new Point(-188, -30), cl:0x333333, al:1});
planes.push({A:new Point(-190, -30), B:new Point(-190, -160), cl:0x444444, al:1});
planes.push({A:new Point(-190, -160), B:new Point(-190, -170), cl:0x333333, al:1});
planes.push({A:new Point(-200, -170), B:new Point(-200, -180), cl:0x999999, al:1});
planes.push({A:new Point(-190, -170), B:new Point(-200, -170), cl:0x666666, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
if (x > pp.x){
drawPlane(planes[1]);
} else {
drawPlane(planes[0]);
};
_local2 = 2;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new step2();
_local4.x = ((x + -155) + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
}
}
}//package assets.buildings
Section 14
//building6 (assets.buildings.building6)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class building6 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 30
public var space:Number;// = 10
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 300
public function building6(_arg1){
pp = new Point((350 + 150), 200);
deep = 30;
wide = 300;
space = 10;
planes = new Array();
super();
setData();
scope = _arg1;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(300, 0), B:new Point(300, -280), cl:0x333333, al:1, d:30});
planes.push({A:new Point(310, -280), B:new Point(310, -300), cl:0x666666, al:1, d:30});
planes.push({A:new Point(300, -280), B:new Point(310, -280), cl:0x444444, al:1, d:30});
planes.push({A:new Point(-300, 0), B:new Point(-300, -280), cl:0x333333, al:1, d:30});
planes.push({A:new Point(-310, -280), B:new Point(-310, -300), cl:0x666666, al:1, d:30});
planes.push({A:new Point(-300, -280), B:new Point(-310, -280), cl:0x444444, al:1, d:30});
planes.push({A:new Point(250, -300), B:new Point(250, -370), cl:0x333333, al:1, d:10});
planes.push({A:new Point(160, -300), B:new Point(160, -370), cl:0x333333, al:1, d:10});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(_arg1.d) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(_arg1.d) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
var _local5:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new step5();
_local4.x = ((x + -215) + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
_local5 = new fireEscape();
_local5.x = ((x + 230) + (_local5.deep * _local3));
_local5.y = 340;
scope.elementArray.push(_local5);
scope.element.addChild(_local5);
}
}
}//package assets.buildings
Section 15
//building7 (assets.buildings.building7)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class building7 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 30
public var space:Number;// = 20
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 200
public function building7(_arg1){
pp = new Point((350 + 150), 200);
deep = 30;
wide = 200;
space = 20;
planes = new Array();
super();
setData();
scope = _arg1;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(202, 0), B:new Point(202, -40), cl:0x333333, al:1, d:30});
planes.push({A:new Point(205, -40), B:new Point(205, -50), cl:51, al:1, d:30});
planes.push({A:new Point(205, -50), B:new Point(200, -50), cl:13158, al:1, d:30});
planes.push({A:new Point(200, -50), B:new Point(200, -200), cl:51, al:1, d:30});
planes.push({A:new Point(205, -200), B:new Point(205, -210), cl:51, al:1, d:30});
planes.push({A:new Point(200, -200), B:new Point(205, -200), cl:0, al:1, d:30});
planes.push({A:new Point(200, -210), B:new Point(200, -400), cl:51, al:1, d:30});
planes.push({A:new Point(-202, 0), B:new Point(-202, -40), cl:0x333333, al:1, d:30});
planes.push({A:new Point(-205, -40), B:new Point(-205, -50), cl:51, al:1, d:30});
planes.push({A:new Point(-205, -50), B:new Point(-200, -50), cl:13158, al:1, d:30});
planes.push({A:new Point(-200, -50), B:new Point(-200, -200), cl:51, al:1, d:30});
planes.push({A:new Point(-205, -200), B:new Point(-205, -210), cl:51, al:1, d:30});
planes.push({A:new Point(-200, -200), B:new Point(-205, -200), cl:0, al:1, d:30});
planes.push({A:new Point(-200, -210), B:new Point(-200, -400), cl:51, al:1, d:30});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(_arg1.d) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(_arg1.d) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new stack1();
_local4.x = ((x + 100) + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
}
}
}//package assets.buildings
Section 16
//building8 (assets.buildings.building8)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class building8 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 30
public var space:Number;// = 20
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 300
public function building8(_arg1){
pp = new Point((350 + 150), 200);
deep = 30;
wide = 300;
space = 20;
planes = new Array();
super();
setData();
scope = _arg1;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(300, 0), B:new Point(300, -70), cl:0x333333, al:1, d:30});
planes.push({A:new Point(305, -70), B:new Point(305, -80), cl:0x666666, al:1, d:30});
planes.push({A:new Point(300, -80), B:new Point(305, -80), cl:0x999999, al:1, d:30});
planes.push({A:new Point(300, -80), B:new Point(300, -250), cl:34, al:1, d:30});
planes.push({A:new Point(305, -250), B:new Point(305, -270), cl:0x666666, al:1, d:30});
planes.push({A:new Point(300, -250), B:new Point(305, -250), cl:0x333333, al:1, d:30});
planes.push({A:new Point(310, -270), B:new Point(310, -280), cl:0x333333, al:1, d:30});
planes.push({A:new Point(310, -270), B:new Point(305, -270), cl:0, al:1, d:30});
planes.push({A:new Point(-300, 0), B:new Point(-300, -70), cl:0x333333, al:1, d:30});
planes.push({A:new Point(-305, -70), B:new Point(-305, -80), cl:0x666666, al:1, d:30});
planes.push({A:new Point(-300, -80), B:new Point(-305, -80), cl:0x999999, al:1, d:30});
planes.push({A:new Point(-300, -80), B:new Point(-300, -250), cl:34, al:1, d:30});
planes.push({A:new Point(-305, -250), B:new Point(-305, -270), cl:0x666666, al:1, d:30});
planes.push({A:new Point(-300, -250), B:new Point(-305, -250), cl:0x333333, al:1, d:30});
planes.push({A:new Point(-310, -270), B:new Point(-310, -280), cl:0x333333, al:1, d:30});
planes.push({A:new Point(-310, -270), B:new Point(-305, -270), cl:0, al:1, d:30});
planes.push({A:new Point(0, -280), B:new Point(0, -400), cl:34, al:1, d:20});
planes.push({A:new Point(5, -400), B:new Point(5, -410), cl:0x666666, al:1, d:20});
planes.push({A:new Point(0, -400), B:new Point(5, -400), cl:0x333333, al:1, d:20});
planes.push({A:new Point(-250, -280), B:new Point(-250, -400), cl:34, al:1, d:20});
planes.push({A:new Point(-255, -400), B:new Point(-255, -410), cl:0x666666, al:1, d:20});
planes.push({A:new Point(-250, -400), B:new Point(-255, -400), cl:0x333333, al:1, d:20});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(_arg1.d) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(_arg1.d) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new step4();
_local4.x = (x + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
}
}
}//package assets.buildings
Section 17
//shop1 (assets.buildings.shop1)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class shop1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 20
public var space:Number;// = 10
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 117
public function shop1(_arg1){
pp = new Point((350 + 150), 200);
deep = 20;
wide = 117;
space = 10;
planes = new Array();
super();
scope = _arg1;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(117, 0), B:new Point(117, -10), cl:0x666666, al:1});
planes.push({A:new Point(115, -10), B:new Point(117, -10), cl:0x999999, al:1});
planes.push({A:new Point(115, -10), B:new Point(115, -185), cl:0x333333, al:1});
planes.push({A:new Point(115, -185), B:new Point(117, -185), cl:0, al:1});
planes.push({A:new Point(117, -185), B:new Point(117, -190), cl:0x666666, al:1});
planes.push({A:new Point(-117, 0), B:new Point(-117, -10), cl:0x666666, al:1});
planes.push({A:new Point(-115, -10), B:new Point(-117, -10), cl:0x999999, al:1});
planes.push({A:new Point(-115, -10), B:new Point(-115, -185), cl:0x333333, al:1});
planes.push({A:new Point(-115, -185), B:new Point(-117, -185), cl:0, al:1});
planes.push({A:new Point(-117, -185), B:new Point(-117, -190), cl:0x666666, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
}
}
}//package assets.buildings
Section 18
//shop2 (assets.buildings.shop2)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class shop2 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 30
public var space:Number;// = 10
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 202
public function shop2(_arg1){
pp = new Point((350 + 150), 200);
deep = 30;
wide = 202;
space = 10;
planes = new Array();
super();
scope = _arg1;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(202, 0), B:new Point(202, -20), cl:4924929, al:1});
planes.push({A:new Point(202, -20), B:new Point(200, -20), cl:13408614, al:1});
planes.push({A:new Point(200, -20), B:new Point(200, -200), cl:0x663300, al:1});
planes.push({A:new Point(200, -200), B:new Point(202, -200), cl:0x330000, al:1});
planes.push({A:new Point(202, -200), B:new Point(202, -210), cl:4924929, al:1});
planes.push({A:new Point(-202, 0), B:new Point(-202, -20), cl:4924929, al:1});
planes.push({A:new Point(-202, -20), B:new Point(-200, -20), cl:13408614, al:1});
planes.push({A:new Point(-200, -20), B:new Point(-200, -200), cl:0x663300, al:1});
planes.push({A:new Point(-200, -200), B:new Point(-202, -200), cl:0x330000, al:1});
planes.push({A:new Point(-202, -200), B:new Point(-202, -210), cl:4924929, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
}
}
}//package assets.buildings
Section 19
//shop3 (assets.buildings.shop3)
package assets.buildings {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.buildings.parts.*;
public class shop3 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 40
public var space:Number;// = 10
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 310
public function shop3(_arg1){
pp = new Point((350 + 150), 200);
deep = 40;
wide = 310;
space = 10;
planes = new Array();
super();
setData();
scope = _arg1;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(305, 0), B:new Point(305, -50), cl:0x3C0000, al:1});
planes.push({A:new Point(310, -50), B:new Point(310, -60), cl:0x666666, al:1});
planes.push({A:new Point(310, -60), B:new Point(300, -60), cl:0x999999, al:1});
planes.push({A:new Point(300, -60), B:new Point(300, -250), cl:0xCCCCCC, al:1});
planes.push({A:new Point(305, -250), B:new Point(300, -250), cl:0x333333, al:1});
planes.push({A:new Point(305, -250), B:new Point(305, -270), cl:0x666666, al:1});
planes.push({A:new Point(305, -270), B:new Point(310, -270), cl:0x330000, al:1});
planes.push({A:new Point(310, -270), B:new Point(310, -280), cl:0x3C0000, al:1});
planes.push({A:new Point(-305, 0), B:new Point(-305, -50), cl:0x3C0000, al:1});
planes.push({A:new Point(-310, -50), B:new Point(-310, -60), cl:0x666666, al:1});
planes.push({A:new Point(-310, -60), B:new Point(-300, -60), cl:0x999999, al:1});
planes.push({A:new Point(-300, -60), B:new Point(-300, -250), cl:0xCCCCCC, al:1});
planes.push({A:new Point(-305, -250), B:new Point(-300, -250), cl:0x333333, al:1});
planes.push({A:new Point(-305, -250), B:new Point(-305, -270), cl:0x666666, al:1});
planes.push({A:new Point(-305, -270), B:new Point(-310, -270), cl:0x330000, al:1});
planes.push({A:new Point(-310, -270), B:new Point(-310, -280), cl:0x3C0000, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:MovieClip;
_local1 = new Point((pp.x - x), (pp.y - y));
_local2 = Math.atan2(_local1.y, _local1.x);
_local3 = (1 / Math.tan(_local2));
_local4 = new step4();
_local4.x = (x + (_local4.deep * _local3));
_local4.y = 340;
scope.elementArray.push(_local4);
scope.element.addChild(_local4);
}
}
}//package assets.buildings
Section 20
//blood (assets.effects.blood)
package assets.effects {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
public class blood extends Sprite {
public var deep:Number;// = 15
public var space:Number;// = 0
public var scope:Object;
public var hitType:Number;
public var group:Sprite;
public var instances:Array;
public var dragX:Number;// = 0.5
public var dragY:Number;// = 0.25
public var dist:Number;
public var objType:Number;
public var wide:Number;// = 50
public function blood(_arg1, _arg2, _arg3, _arg4, _arg5){
var _local6:*;
var _local7:*;
var _local8:*;
instances = new Array();
dragX = 0.5;
dragY = 0.25;
deep = 15;
wide = 50;
space = 0;
super();
scope = _arg1;
x = (200 + 150);
y = 350;
_arg5 = (_arg5 + ((10 + scope.player.skater.y) - 350));
_local6 = (5 + Math.round((Math.random() * _arg2)));
_local7 = 0;
while (_local7 < _local6) {
_local8 = Math.round((Math.random() * 360));
render(_arg4, _arg5, _local8, _arg3);
_local7++;
};
addEventListener(Event.ENTER_FRAME, fallLoop);
}
public function fall(_arg1, _arg2){
_arg1.clip.x = (_arg1.clip.x + _arg1.x);
_arg1.clip.y = (_arg1.clip.y + _arg1.y);
if (_arg1.count < _arg1.time){
_arg1.count++;
_arg1.x = (_arg1.x * dragX);
_arg1.y = (_arg1.y * dragY);
} else {
removeEventListener(Event.ENTER_FRAME, fallLoop);
};
}
public function render(_arg1, _arg2, _arg3, _arg4){
var _local5:Sprite;
var _local6:Object;
_local5 = new Sprite();
_local5.graphics.beginFill(0x660000);
_local5.graphics.drawCircle(0, 0, 2);
_local5.graphics.endFill();
_local5.x = _arg1;
_local5.y = _arg2;
_local5.scaleX = ((50 + Math.round((Math.random() * 150))) / 100);
_local5.scaleY = ((10 + Math.round((Math.random() * 70))) / 100);
_local5.filters = [new BevelFilter(0.5, 45, 0xFFFFFF, 0.3, 0, 0, 1, 1), new DropShadowFilter(0.5, 45, 0, 0.3, 1, 1)];
_local6 = new Object();
_local6.count = 0;
_local6.time = Math.round((Math.random() * 5));
_local6.d = (Math.round((Math.random() * _arg4)) / _local6.time);
_local6.x = (_local6.d * Math.cos(((_arg3 * Math.PI) / 180)));
_local6.y = (_local6.d * Math.sin(((_arg3 * Math.PI) / 180)));
_local6.clip = _local5;
instances.push(_local6);
addChild(_local5);
}
public function fallLoop(_arg1:Event){
var _local2:*;
_local2 = 0;
while (_local2 < instances.length) {
fall(instances[_local2], _local2);
_local2++;
};
}
}
}//package assets.effects
Section 21
//monsterEye (assets.effects.monsterEye)
package assets.effects {
import flash.events.*;
import flash.display.*;
public class monsterEye extends MovieClip {
private var moving:Boolean;// = false
public var pupil:MovieClip;
private var ang:Number;
public function monsterEye(){
moving = false;
super();
addFrameScript(0, frame1, 14, frame15);
addEventListener(Event.ENTER_FRAME, run);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, run);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
function frame15(){
gotoAndStop("open");
}
function frame1(){
stop();
}
private function run(_arg1:Event){
var _local2:*;
if (Math.round((Math.random() * 100)) < 25){
if (!moving){
ang = Math.round(((Math.random() * 360) * (Math.PI / 180)));
moving = true;
};
_local2 = Math.abs(Math.sqrt(((pupil.x * pupil.x) + (pupil.y * pupil.y))));
if (_local2 > 2){
pupil.x = (pupil.x - (0.25 * Math.cos(ang)));
pupil.y = (pupil.y - (0.25 * Math.sin(ang)));
moving = false;
} else {
if (Math.round(Math.random())){
pupil.x = (pupil.x + (0.25 * Math.cos(ang)));
pupil.y = (pupil.y + (0.25 * Math.sin(ang)));
};
};
if (Math.round((Math.random() * 100)) <= 10){
gotoAndPlay("blink");
};
};
}
}
}//package assets.effects
Section 22
//star1 (assets.effects.star1)
package assets.effects {
import flash.events.*;
import flash.display.*;
public class star1 extends MovieClip {
private var count:Number;// = 0
public var clip:Object;
public var scope:Object;
private var dist:Number;
private var spd:Number;
private var ang:Number;
public function star1(_arg1, _arg2){
count = 0;
super();
addFrameScript(0, frame1, 5, frame6);
clip = _arg1;
scope = _arg2;
ang = (Math.round((Math.random() * 360)) * (Math.PI / 180));
dist = Math.round((Math.random() * 10));
spd = Math.round((Math.random() * 10));
scaleX = (scaleY = (0.25 + (Math.random() * 0.25)));
if (Math.round(Math.random())){
gotoAndStop("white");
};
addEventListener(Event.ENTER_FRAME, run);
}
private function removal(){
removeEventListener(Event.ENTER_FRAME, run);
clip.removeChild(this);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
private function run(_arg1:Event){
var _local2:*;
scaleX = (scaleY = (scaleY + 0.05));
rotation = (rotation + 2);
x = (x + (spd * Math.cos(ang)));
y = (y + (spd * Math.sin(ang)));
_local2 = (scope.vx * ((y - scope.pp.y) / scope.pp.y));
x = (x - Math.abs(_local2));
if (count < dist){
count++;
} else {
removal();
};
}
}
}//package assets.effects
Section 23
//barrier1 (assets.objects.barrier1)
package assets.objects {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class barrier1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 2
private var planes:Array;
public var dist:Number;
public var buffer:Number;// = 10
private var main:Object;
public var objType:Number;// = 1
public var wide:Number;// = 150
public function barrier1(_arg1){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 150;
space = 0;
objType = 1;
hitType = 2;
buffer = 10;
planes = new Array();
super();
scope = _arg1;
main = _arg1.scope;
y = 355;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function setData(){
planes.push({A:new Point(-140, 0), B:new Point(-130, 0), cl:0x666666, al:1, dp:10});
planes.push({A:new Point(140, 0), B:new Point(130, 0), cl:0x666666, al:1, dp:10});
}
private function drawLeg(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(_arg1.dp) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(_arg1.dp) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, -45);
graphics.lineTo(_arg1.A.x, -45);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.endFill();
}
private function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function monitor(){
var _local1:*;
var _local2:*;
_local1 = scope.element.getChildIndex(this);
_local2 = (scope.element.numChildren - 1);
if (_local1 < _local2){
scope.element.swapChildrenAt(_local1, _local2);
};
if (hitTestObject(main.player.skater)){
if (main.player.base < y){
scope.elementToForeground(barrier1, x, y, this);
};
};
}
private function render(_arg1:Event){
var _local2:*;
if (parent == scope.element){
monitor();
};
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawLeg(planes[_local2]);
_local2++;
};
}
}
}//package assets.objects
Section 24
//bikerack (assets.objects.bikerack)
package assets.objects {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class bikerack extends MovieClip {
public var pp:Point;
public var deep:Number;// = 10
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 2
public var dist:Number;
public var buffer:Number;// = 15
public var Lfoot:MovieClip;
public var objType:Number;// = 1
public var wide:Number;// = 125
public var Rfoot:MovieClip;
public function bikerack(_arg1){
pp = new Point((350 + 150), 200);
deep = 10;
wide = 125;
space = 0;
objType = 1;
hitType = 2;
buffer = 15;
super();
scope = _arg1;
y = 363;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function render(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = new Point((pp.x - (x + Lfoot.x)), (pp.y - y));
_local3 = (Math.atan2(_local2.y, _local2.x) * (180 / Math.PI));
Lfoot.rotation = _local3;
_local4 = new Point((pp.x - (x + Rfoot.x)), (pp.y - y));
_local5 = (Math.atan2(_local4.y, _local4.x) * (180 / Math.PI));
Rfoot.rotation = _local5;
}
}
}//package assets.objects
Section 25
//dirtpile1 (assets.objects.dirtpile1)
package assets.objects {
import flash.events.*;
import flash.display.*;
public class dirtpile1 extends MovieClip {
public var deep:Number;// = 20
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 0
public var dist:Number;
private var main:Object;
public var objType:Number;// = 2
public var wide:Number;// = 80
public function dirtpile1(_arg1){
deep = 20;
wide = 80;
space = 0;
objType = 2;
hitType = 0;
super();
scope = _arg1;
main = _arg1.scope;
y = (350 + Math.round((Math.random() * 10)));
addEventListener(Event.ENTER_FRAME, monitor);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, monitor);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function monitor(_arg1:Event){
var _local2:*;
var _local3:*;
if (parent == scope.element){
_local2 = scope.element.getChildIndex(this);
_local3 = (scope.element.numChildren - 1);
if (_local2 < _local3){
scope.element.swapChildrenAt(_local2, _local3);
};
if (hitTestObject(main.player.skater)){
if (main.player.base < y){
scope.elementToForeground(dirtpile1, x, y, this);
};
};
} else {
removeEventListener(Event.ENTER_FRAME, monitor);
};
}
}
}//package assets.objects
Section 26
//finishline (assets.objects.finishline)
package assets.objects {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class finishline extends MovieClip {
public var pp:Point;
public var deep:Number;// = 30
public var space:Number;// = 0
private var scope:Object;
public var hitType:Number;
private var planes:Array;
private var finished:Boolean;// = false
public var dist:Number;
private var main:Object;
private var finishPoint:Boolean;
public var objType:Number;
public var wide:Number;// = 40
public function finishline(_arg1, _arg2){
pp = new Point((350 + 150), 200);
deep = 30;
wide = 40;
space = 0;
finished = false;
planes = new Array();
super();
scope = _arg1;
main = _arg1.scope;
finishPoint = _arg2;
y = 362;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function setData(){
planes.push({A:new Point(-20, 0), B:new Point(0, 0), cl:0, al:1, dp:30});
planes.push({A:new Point(0, 0), B:new Point(20, 0), cl:0xFFFFFF, al:1, dp:30});
planes.push({A:new Point(-20, 0), B:new Point(0, 0), cl:0xFFFFFF, al:1, dp:26});
planes.push({A:new Point(0, 0), B:new Point(20, 0), cl:0, al:1, dp:26});
planes.push({A:new Point(-20, 0), B:new Point(0, 0), cl:0, al:1, dp:21});
planes.push({A:new Point(0, 0), B:new Point(20, 0), cl:0xFFFFFF, al:1, dp:21});
planes.push({A:new Point(-20, 0), B:new Point(0, 0), cl:0xFFFFFF, al:1, dp:15});
planes.push({A:new Point(0, 0), B:new Point(20, 0), cl:0, al:1, dp:15});
planes.push({A:new Point(-20, 0), B:new Point(0, 0), cl:0, al:1, dp:8});
planes.push({A:new Point(0, 0), B:new Point(20, 0), cl:0xFFFFFF, al:1, dp:8});
}
private function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(_arg1.dp) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(_arg1.dp) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
private function render(_arg1:Event){
var _local2:*;
if (scope.element.getChildIndex(this) != 0){
scope.element.addChildAt(this, 0);
};
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
if (finishPoint){
if ((((x <= (200 + 150))) && (!(finished)))){
finished = true;
main.sound.startSound("cheer", 0, 0, 1, 0);
main.player.tscore = (1000 * main.course);
main.stats.bailBonus.bBonus_txt.text = (main.stats.bailBonusQty * main.course);
main.stats.clearTrickFX(true);
main.stats.initTrickFX("complete");
main.player.smode = 10;
main.player.momentumV = main.vx;
main.player.skater.gotoAndPlay("ollie");
};
};
}
}
}//package assets.objects
Section 27
//gaspipe1 (assets.objects.gaspipe1)
package assets.objects {
import flash.display.*;
public class gaspipe1 extends MovieClip {
public var deep:Number;// = 10
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 2
public var dist:Number;
public var buffer:Number;// = 15
public var objType:Number;// = 1
public var wide:Number;// = 300
public function gaspipe1(_arg1){
deep = 10;
wide = 300;
space = 0;
objType = 1;
hitType = 2;
buffer = 15;
super();
scope = _arg1;
y = 365;
}
}
}//package assets.objects
Section 28
//gaspipe2 (assets.objects.gaspipe2)
package assets.objects {
import flash.display.*;
public class gaspipe2 extends MovieClip {
public var deep:Number;// = 10
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 2
public var dist:Number;
public var buffer:Number;// = 15
public var objType:Number;// = 1
public var wide:Number;// = 200
public function gaspipe2(_arg1){
deep = 10;
wide = 200;
space = 0;
objType = 1;
hitType = 2;
buffer = 15;
super();
scope = _arg1;
y = 365;
}
}
}//package assets.objects
Section 29
//grate1 (assets.objects.grate1)
package assets.objects {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class grate1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 15
public var space:Number;// = 0
private var scope:Object;
public var hitType:Number;// = 0
private var masking:Sprite;
private var planes:Array;
public var dist:Number;
public var objType:Number;// = 0
public var wide:Number;// = 100
public function grate1(_arg1){
pp = new Point((350 + 150), 200);
deep = 15;
wide = 100;
space = 0;
objType = 0;
hitType = 0;
masking = new Sprite();
planes = new Array();
super();
scope = _arg1;
y = 358;
setData();
addChild(masking);
drawMask({A:new Point(-51, 0), B:new Point(51, 0), cl:0, al:1, dpA:15, dpB:15});
mask = masking;
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function setData(){
planes.push({A:new Point(-50, 0), B:new Point(50, 0), cl:0x999999, al:1, dpA:15, dpB:15});
planes.push({A:new Point(-50, 0), B:new Point(50, 0), cl:0x333333, al:1, dpA:8, dpB:8});
planes.push({A:new Point(50, 0), B:new Point(50, 7), cl:0x666666, al:1, dpA:15, dpB:15});
planes.push({A:new Point(-50, 0), B:new Point(-50, 7), cl:0x666666, al:1, dpA:15, dpB:15});
}
private function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawLines(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
graphics.lineStyle(2, 0x663300);
graphics.moveTo(-50, 0);
graphics.lineTo(50, 0);
graphics.moveTo(-75, -14);
graphics.lineTo(75, -14);
_local1 = 0;
while (_local1 <= 100) {
_local2 = new Point((pp.x - (x + (-50 + _local1))), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-15 * (1 / Math.tan(_local3)));
graphics.moveTo((-50 + _local1), 0);
graphics.lineTo(((-50 + _local1) + _local4), -15);
_local1 = (_local1 + 10);
};
}
public function drawMask(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(_arg1.dpA) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(_arg1.dpB) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
masking.graphics.beginFill(_arg1.cl, _arg1.al);
masking.graphics.moveTo(_arg1.A.x, _arg1.A.y);
masking.graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
masking.graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
masking.graphics.lineTo(_arg1.B.x, _arg1.B.y);
masking.graphics.lineTo(_arg1.A.x, _arg1.A.y);
masking.graphics.endFill();
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(_arg1.dpA) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(_arg1.dpB) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
private function render(_arg1:Event){
var _local2:*;
masking.graphics.clear();
drawMask({A:new Point(-51, 0), B:new Point(51, 0), cl:0, al:1, dpA:15, dpB:15});
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
drawLines();
}
}
}//package assets.objects
Section 30
//hole1 (assets.objects.hole1)
package assets.objects {
import flash.display.*;
public class hole1 extends MovieClip {
public var deep:Number;// = 15
public var space:Number;// = 0
private var scope:Object;
public var hitType:Number;// = 0
public var dist:Number;
public var objType:Number;// = 0
public var wide:Number;// = 50
public function hole1(_arg1){
deep = 15;
wide = 50;
space = 0;
objType = 0;
hitType = 0;
super();
scope = _arg1;
y = (355 + Math.round((Math.random() * 10)));
}
}
}//package assets.objects
Section 31
//hydrant (assets.objects.hydrant)
package assets.objects {
import flash.display.*;
public class hydrant extends MovieClip {
public var deep:Number;// = 5
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 0
public var dist:Number;
public var objType:Number;// = 1
public var wide:Number;// = 15
public function hydrant(_arg1){
deep = 5;
wide = 15;
space = 0;
objType = 1;
hitType = 0;
super();
scope = _arg1;
y = 367;
}
}
}//package assets.objects
Section 32
//manhole1 (assets.objects.manhole1)
package assets.objects {
import flash.display.*;
public class manhole1 extends MovieClip {
public var deep:Number;// = 20
public var space:Number;// = 0
public var darkhole:MovieClip;
private var scope:Object;
public var hitType:Number;// = 0
public var dist:Number;
public var objType:Number;// = 0
public var wide:Number;// = 30
public function manhole1(_arg1){
deep = 20;
wide = 30;
space = 0;
objType = 0;
hitType = 0;
super();
scope = _arg1;
y = (355 + Math.round((Math.random() * 10)));
}
}
}//package assets.objects
Section 33
//oildrum (assets.objects.oildrum)
package assets.objects {
import flash.display.*;
public class oildrum extends MovieClip {
public var deep:Number;// = 10
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 0
public var dist:Number;
public var buffer:Number;// = 15
public var objType:Number;// = 1
public var wide:Number;// = 25
public function oildrum(_arg1){
deep = 10;
wide = 25;
space = 0;
objType = 1;
hitType = 0;
buffer = 15;
super();
scope = _arg1;
gotoAndStop((1 + Math.round((Math.random() * (totalFrames - 1)))));
y = 365;
}
}
}//package assets.objects
Section 34
//powerpole1 (assets.objects.powerpole1)
package assets.objects {
import flash.events.*;
import flash.display.*;
public class powerpole1 extends MovieClip {
public var deep:Number;// = 5
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 0
public var dist:Number;
public var objType:Number;// = 1
public var wide:Number;// = 15
public function powerpole1(_arg1){
deep = 5;
wide = 15;
space = 0;
objType = 1;
hitType = 0;
super();
scope = _arg1;
y = 368;
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function onRemove(_arg1:Event){
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function render(){
}
}
}//package assets.objects
Section 35
//sign1 (assets.objects.sign1)
package assets.objects {
import flash.display.*;
public class sign1 extends MovieClip {
public var deep:Number;// = 5
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 0
public var dist:Number;
public var objType:Number;// = 0
public var wide:Number;// = 40
public function sign1(_arg1){
var _local2:*;
deep = 5;
wide = 40;
space = 0;
objType = 0;
hitType = 0;
super();
addFrameScript(0, frame1);
scope = _arg1;
y = 365;
_local2 = (1 + Math.round((Math.random() * (totalFrames - 1))));
gotoAndStop(_local2);
}
function frame1(){
stop();
}
}
}//package assets.objects
Section 36
//TargetLogo (assets.objects.TargetLogo)
package assets.objects {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class TargetLogo extends MovieClip {
private var url:String;// = "http://ad.doubleclick.net/clk;205717430;15177704;a?http://www.target.com/b?node=682514011"
public var hitBtn:SimpleButton;
public function TargetLogo(){
url = "http://ad.doubleclick.net/clk;205717430;15177704;a?http://www.target.com/b?node=682514011";
super();
hitBtn.addEventListener(MouseEvent.CLICK, link);
addEventListener(Event.REMOVED_FROM_STAGE, removed);
}
private function link(_arg1:Event){
var _local2:*;
_local2 = new URLRequest(url);
navigateToURL(_local2);
}
private function removed(_arg1:Event){
hitBtn.removeEventListener(MouseEvent.CLICK, link);
removeEventListener(Event.REMOVED_FROM_STAGE, removed);
}
}
}//package assets.objects
Section 37
//trashcan1 (assets.objects.trashcan1)
package assets.objects {
import flash.display.*;
public class trashcan1 extends MovieClip {
public var deep:Number;// = 10
public var space:Number;// = 0
private var scope:Object;
public var hitObj:MovieClip;
public var hitType:Number;// = 0
public var dist:Number;
public var buffer:Number;// = 15
public var objType:Number;// = 1
public var wide:Number;// = 22
public function trashcan1(_arg1){
deep = 10;
wide = 22;
space = 0;
objType = 1;
hitType = 0;
buffer = 15;
super();
scope = _arg1;
y = 365;
}
}
}//package assets.objects
Section 38
//screen_learn (assets.screens.screen_learn)
package assets.screens {
import flash.events.*;
import flash.display.*;
public class screen_learn extends MovieClip {
public var key3_mc:MovieClip;
private var keySP:Boolean;// = false
private var keySH:Boolean;// = false
private var keyLT:Boolean;// = false
private var keyDN:Boolean;// = false
public var continueBtn:SimpleButton;
public var key1_mc:MovieClip;
private var keys:Array;
private var scope:Object;
public var keyDN_mc:MovieClip;
public var menuBtn:SimpleButton;
public var imagebox:MovieClip;
public var key4_mc:MovieClip;
private var keyUP:Boolean;// = false
public var key2_mc:MovieClip;
private var key2:Boolean;// = false
public var keyLT_mc:MovieClip;
public var keySP_mc:MovieClip;
public var keyRT_mc:MovieClip;
private var key5:Boolean;// = false
private var key1:Boolean;// = false
public var keyUP_mc:MovieClip;
private var key3:Boolean;// = false
private var key4:Boolean;// = false
public var key5_mc:MovieClip;
private var keyRT:Boolean;// = false
public function screen_learn(_arg1){
var _local2:*;
var _local3:*;
key1 = false;
key2 = false;
key3 = false;
key4 = false;
key5 = false;
keyUP = false;
keyLT = false;
keyDN = false;
keyRT = false;
keySP = false;
keySH = false;
keys = new Array();
super();
addFrameScript(0, frame1);
scope = _arg1;
scope.stage.focus = this;
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
addEventListener(Event.ENTER_FRAME, process);
addEventListener(KeyboardEvent.KEY_DOWN, keyCapture);
addEventListener(KeyboardEvent.KEY_UP, keyRelease);
menuBtn.addEventListener(MouseEvent.CLICK, onMenu);
continueBtn.addEventListener(MouseEvent.CLICK, nextPage);
keys = [keySP_mc, keyUP_mc, keyDN_mc, keyLT_mc, keyRT_mc, key1_mc, key2_mc, key3_mc, key4_mc, key5_mc];
_local2 = 0;
while (_local2 < keys.length) {
keys[_local2].visible = false;
_local2++;
};
_local3 = 1;
while (_local3 < 5) {
keys[_local3].visible = true;
_local3++;
};
}
private function nextPage(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:*;
if (currentFrame < totalFrames){
nextFrame();
} else {
gotoAndStop(1);
};
_local2 = 0;
while (_local2 < keys.length) {
keys[_local2].visible = false;
_local2++;
};
switch (currentFrame){
case 1:
_local3 = 1;
while (_local3 < 5) {
keys[_local3].visible = true;
_local3++;
};
break;
case 2:
keys[0].visible = true;
break;
case 3:
_local4 = 5;
while (_local4 < 10) {
keys[_local4].visible = true;
_local4++;
};
break;
};
}
private function onRemove(_arg1:Event){
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
removeEventListener(Event.ENTER_FRAME, process);
removeEventListener(KeyboardEvent.KEY_DOWN, keyCapture);
removeEventListener(KeyboardEvent.KEY_UP, keyRelease);
menuBtn.removeEventListener(MouseEvent.CLICK, onMenu);
continueBtn.removeEventListener(MouseEvent.CLICK, nextPage);
}
function frame1(){
stop();
}
private function process(_arg1:Event){
switch (currentFrame){
case 1:
if (keyUP){
keyUP_mc.gotoAndStop("on");
imagebox.gotoAndStop(2);
} else {
keyUP_mc.gotoAndStop("off");
};
if (keyDN){
keyDN_mc.gotoAndStop("on");
imagebox.gotoAndStop(3);
} else {
keyDN_mc.gotoAndStop("off");
};
if (keyLT){
keyLT_mc.gotoAndStop("on");
imagebox.gotoAndStop(5);
} else {
keyLT_mc.gotoAndStop("off");
};
if (keyRT){
keyRT_mc.gotoAndStop("on");
imagebox.gotoAndStop(4);
} else {
keyRT_mc.gotoAndStop("off");
};
if (((((((!(keyUP)) && (!(keyDN)))) && (!(keyLT)))) && (!(keyRT)))){
imagebox.gotoAndStop(1);
};
break;
case 2:
if (keySP){
keySP_mc.gotoAndStop("on");
imagebox.gotoAndStop(7);
} else {
keySP_mc.gotoAndStop("off");
imagebox.gotoAndStop(6);
};
break;
case 3:
if (key1){
key1_mc.gotoAndStop("on");
imagebox.gotoAndStop(9);
} else {
key1_mc.gotoAndStop("off");
};
if (key2){
key2_mc.gotoAndStop("on");
imagebox.gotoAndStop(10);
} else {
key2_mc.gotoAndStop("off");
};
if (key3){
key3_mc.gotoAndStop("on");
imagebox.gotoAndStop(11);
} else {
key3_mc.gotoAndStop("off");
};
if (key4){
key4_mc.gotoAndStop("on");
imagebox.gotoAndStop(12);
} else {
key4_mc.gotoAndStop("off");
};
if (key5){
key5_mc.gotoAndStop("on");
imagebox.gotoAndStop(13);
} else {
key5_mc.gotoAndStop("off");
};
if (((((((((!(key1)) && (!(key2)))) && (!(key3)))) && (!(key4)))) && (!(key5)))){
imagebox.gotoAndStop(8);
};
break;
};
}
private function keyRelease(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 65:
key1 = false;
break;
case 83:
key2 = false;
break;
case 68:
key3 = false;
break;
case 70:
key4 = false;
break;
case 71:
key5 = false;
break;
case 38:
keyUP = false;
break;
case 37:
keyLT = false;
break;
case 39:
keyRT = false;
break;
case 40:
keyDN = false;
break;
case 32:
keySP = false;
break;
case 16:
keySH = false;
break;
};
}
private function onMenu(_arg1:MouseEvent){
scope.setScreen(0);
}
private function keyCapture(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 65:
key1 = true;
break;
case 83:
key2 = true;
break;
case 68:
key3 = true;
break;
case 70:
key4 = true;
break;
case 71:
key5 = true;
break;
case 38:
keyUP = true;
break;
case 37:
keyLT = true;
break;
case 39:
keyRT = true;
break;
case 40:
keyDN = true;
break;
case 32:
keySP = true;
break;
case 16:
keySH = true;
break;
};
}
}
}//package assets.screens
Section 39
//screen_select (assets.screens.screen_select)
package assets.screens {
import flash.events.*;
import flash.display.*;
public class screen_select extends MovieClip {
private var scope:Object;
public var character_mc:MovieClip;
public var shirt_mc:MovieClip;
public var course_mc:MovieClip;
public var board_mc:MovieClip;
private var pages:Array;
public function screen_select(_arg1){
pages = new Array();
super();
scope = _arg1;
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
character_mc.nextCharBtn.addEventListener(MouseEvent.CLICK, nextChar);
character_mc.selectCharBtn.addEventListener(MouseEvent.CLICK, selectChar);
shirt_mc.nextShirtBtn.addEventListener(MouseEvent.CLICK, nextShirt);
shirt_mc.selectShirtBtn.addEventListener(MouseEvent.CLICK, selectShirt);
board_mc.nextDeckBtn.addEventListener(MouseEvent.CLICK, nextDeck);
board_mc.nextWheelBtn.addEventListener(MouseEvent.CLICK, nextWheel);
board_mc.selectBoardBtn.addEventListener(MouseEvent.CLICK, selectBoard);
course_mc.nextCourseBtn.addEventListener(MouseEvent.CLICK, nextCourse);
course_mc.selectCourseBtn.addEventListener(MouseEvent.CLICK, selectCourse);
pages = [character_mc, shirt_mc, board_mc, course_mc];
character_mc.charbox.gotoAndStop(1);
shirt_mc.shirtbox.gotoAndStop(1);
board_mc.boardbox.gotoAndStop(1);
course_mc.coursebox.gotoAndStop(1);
course_mc.coursebox.locked_mc.visible = false;
pageManager(2);
}
private function locked(){
trace("locked");
}
private function pageManager(_arg1){
var _local2:*;
_local2 = 0;
while (_local2 < pages.length) {
pages[_local2].visible = false;
_local2++;
};
switch (_arg1){
case 1:
character_mc.visible = true;
break;
case 2:
shirt_mc.visible = true;
break;
case 3:
board_mc.visible = true;
break;
case 4:
course_mc.visible = true;
break;
case 5:
scope.setScreen(3);
break;
};
}
private function nextDeck(_arg1:MouseEvent){
if (board_mc.boardbox.deck.currentFrame < board_mc.boardbox.deck.totalFrames){
board_mc.boardbox.deck.nextFrame();
} else {
board_mc.boardbox.deck.gotoAndStop(1);
};
}
private function selectCourse(_arg1:MouseEvent){
scope.course = course_mc.coursebox.currentFrame;
if (scope[(("c" + course_mc.coursebox.currentFrame) + "lock")]){
locked();
} else {
pageManager(5);
};
}
private function onRemove(_arg1:Event){
character_mc.nextCharBtn.removeEventListener(MouseEvent.CLICK, nextChar);
character_mc.selectCharBtn.removeEventListener(MouseEvent.CLICK, selectChar);
shirt_mc.nextShirtBtn.removeEventListener(MouseEvent.CLICK, nextShirt);
shirt_mc.selectShirtBtn.removeEventListener(MouseEvent.CLICK, selectShirt);
board_mc.nextDeckBtn.removeEventListener(MouseEvent.CLICK, nextDeck);
board_mc.nextWheelBtn.removeEventListener(MouseEvent.CLICK, nextWheel);
board_mc.selectBoardBtn.removeEventListener(MouseEvent.CLICK, selectBoard);
course_mc.nextCourseBtn.removeEventListener(MouseEvent.CLICK, nextCourse);
course_mc.selectCourseBtn.removeEventListener(MouseEvent.CLICK, selectCourse);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function selectShirt(_arg1:MouseEvent){
scope.player.snum = shirt_mc.shirtbox.currentFrame;
pageManager(3);
}
private function selectBoard(_arg1:MouseEvent){
scope.player.dnum = board_mc.boardbox.deck.currentFrame;
scope.player.wnum = board_mc.boardbox.wheels.currentFrame;
pageManager(4);
}
private function nextWheel(_arg1:MouseEvent){
if (board_mc.boardbox.wheels.currentFrame < board_mc.boardbox.wheels.totalFrames){
board_mc.boardbox.wheels.nextFrame();
} else {
board_mc.boardbox.wheels.gotoAndStop(1);
};
}
private function selectChar(_arg1:MouseEvent){
scope.player.cnum = character_mc.charbox.currentFrame;
pageManager(2);
}
private function nextShirt(_arg1:MouseEvent){
if (shirt_mc.shirtbox.currentFrame < shirt_mc.shirtbox.totalFrames){
shirt_mc.shirtbox.nextFrame();
} else {
shirt_mc.shirtbox.gotoAndStop(1);
};
}
private function nextChar(_arg1:MouseEvent){
if (character_mc.charbox.currentFrame < character_mc.charbox.totalFrames){
character_mc.charbox.nextFrame();
} else {
character_mc.charbox.gotoAndStop(1);
};
}
private function nextCourse(_arg1:MouseEvent){
if (course_mc.coursebox.currentFrame < course_mc.coursebox.totalFrames){
course_mc.coursebox.nextFrame();
} else {
course_mc.coursebox.gotoAndStop(1);
};
if (scope[(("c" + course_mc.coursebox.currentFrame) + "lock")]){
course_mc.coursebox.locked_mc.visible = true;
} else {
course_mc.coursebox.locked_mc.visible = false;
};
}
}
}//package assets.screens
Section 40
//screen_splash (assets.screens.screen_splash)
package assets.screens {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class screen_splash extends MovieClip {
private var scope:Object;
public var creditsBtn:SimpleButton;
public var lockupBtn:SimpleButton;
public var learnBtn:SimpleButton;
public var credits:MovieClip;
public var skateBtn:SimpleButton;
public function screen_splash(_arg1){
scope = _arg1;
credits.visible = false;
learnBtn.addEventListener(MouseEvent.CLICK, learnScreen);
skateBtn.addEventListener(MouseEvent.CLICK, selectScreen);
creditsBtn.addEventListener(MouseEvent.ROLL_OVER, creditsOn);
creditsBtn.addEventListener(MouseEvent.ROLL_OUT, creditsOff);
lockupBtn.addEventListener(MouseEvent.CLICK, link);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function link(_arg1:MouseEvent){
var _local2:String;
var _local3:*;
_local2 = "http://ad.doubleclick.net/clk;205717430;15177704;a?http://www.target.com/b?node=682514011";
_local3 = new URLRequest(_local2);
navigateToURL(_local3);
}
private function creditsOn(_arg1:MouseEvent){
credits.visible = true;
}
private function onRemove(_arg1:Event){
learnBtn.removeEventListener(MouseEvent.CLICK, learnScreen);
skateBtn.removeEventListener(MouseEvent.CLICK, selectScreen);
creditsBtn.removeEventListener(MouseEvent.ROLL_OVER, creditsOn);
creditsBtn.removeEventListener(MouseEvent.ROLL_OUT, creditsOff);
lockupBtn.removeEventListener(MouseEvent.CLICK, link);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
private function creditsOff(_arg1:MouseEvent){
credits.visible = false;
}
private function selectScreen(_arg1:MouseEvent){
scope.setScreen(2);
}
private function learnScreen(_arg1:MouseEvent){
scope.setScreen(1);
}
}
}//package assets.screens
Section 41
//screen_stats (assets.screens.screen_stats)
package assets.screens {
import flash.events.*;
import flash.display.*;
import assets.effects.*;
import flash.text.*;
import flash.net.*;
public class screen_stats extends MovieClip {
public var recoveryRate:Number;// = 0.5
public var bails:Number;// = 0
public var continueBtn:SimpleButton;
public var action:Boolean;// = true
public var score_txt:TextField;
public var staminabar:MovieClip;
private var scope:Object;
public var paused_mc:MovieClip;
public var speed:Number;// = 0
private var sboard:Array;
public var stamina:Number;// = 1
public var speedbar:MovieClip;
public var muteBtn:MovieClip;
public var localScores:MovieClip;
public var trickFX:MovieClip;
public var travelBar:MovieClip;
public var bailBonus:MovieClip;
public var saveBtn:SimpleButton;
public var score:Number;// = 0
public var pauseBtn:MovieClip;
private var sObj:SharedObject;
public var bails_txt:TextField;
public var restartBtn:SimpleButton;
public var bailBonusQty:Number;// = 2
public var trickScore:Number;// = 0
public function screen_stats(_arg1){
action = true;
score = 0;
bails = 0;
bailBonusQty = 2;
trickScore = 0;
trickFX = new trickText();
speed = 0;
stamina = 1;
recoveryRate = 0.5;
sboard = new Array();
super();
scope = _arg1;
trickFX.x = 350;
trickFX.y = 100;
trickFX.tscore_txt.text = 0;
trickFX.visible = false;
addChild(trickFX);
restartBtn.addEventListener(MouseEvent.CLICK, restartGame);
saveBtn.addEventListener(MouseEvent.CLICK, saveScreen);
continueBtn.addEventListener(MouseEvent.CLICK, continueGame);
muteBtn.addEventListener(MouseEvent.CLICK, muteSounds);
pauseBtn.addEventListener(MouseEvent.CLICK, pauseGame);
paused_mc.visible = false;
localScores.saveBtn.addEventListener(MouseEvent.CLICK, saveScore);
localScores.doneBtn.addEventListener(MouseEvent.CLICK, doneScore);
localScores.visible = false;
setScoreData();
gameOverMenu(false);
courseCompleteMenu(false);
}
public function pauseGame(_arg1:Event){
if (action){
action = false;
scope.sound.soundON = false;
scope.sound.stopSounds();
_arg1.target.gotoAndStop("off");
paused_mc.visible = true;
} else {
action = true;
scope.sound.soundON = true;
scope.sound.restartSounds();
_arg1.target.gotoAndStop("on");
paused_mc.visible = false;
};
}
public function courseCompleteMenu(_arg1){
continueBtn.visible = (bailBonus.visible = _arg1);
}
private function setScoreData(){
var _local1:*;
sObj = SharedObject.getLocal("streetskater", "/");
_local1 = 0;
while (_local1 < 10) {
sboard.push({nm:" --- ", sc:0});
_local1++;
};
updateBoard();
}
private function saveScore(_arg1:Event){
var _local2:*;
_local2 = {nm:localScores.pName.text, sc:score};
sboard.push(_local2);
sboard.sortOn("sc", (Array.NUMERIC | Array.DESCENDING));
if (sboard.length > 10){
sboard.pop();
};
sObj.data.scores = sboard;
sObj.flush();
localScores.saveBtn.removeEventListener(MouseEvent.CLICK, saveScore);
saveBtn.removeEventListener(MouseEvent.CLICK, saveScreen);
updateBoard();
}
private function doneScore(_arg1:Event){
localScores.visible = false;
trickFX.visible = true;
gameOverMenu(true);
}
public function initTrickFX(_arg1:String){
trickFX.gotoAndStop(_arg1);
trickFX.visible = true;
trickFX.addEventListener(Event.ENTER_FRAME, trickMonitor);
}
private function continueGame(_arg1:Event){
courseCompleteMenu(false);
clearTrickFX(true);
updateBails((scope.course * bailBonusQty));
scope.player.tscore = 0;
travelBar.scaleX = 0;
scope.gameContinue();
}
private function saveScreen(_arg1:Event){
gameOverMenu(false);
trickFX.visible = false;
updateBoard();
localScores.visible = true;
stage.focus = localScores.pName;
localScores.pName.setSelection(0, 0);
}
public function updateStamina(_arg1){
stamina = (stamina + (_arg1 / 100));
if (stamina >= 1){
stamina = 1;
};
if (stamina <= 0){
stamina = 0;
};
}
public function updateScore(_arg1:Number){
score = (score + _arg1);
score_txt.text = score.toString();
}
public function clearTrickFX(_arg1:Boolean){
if (_arg1){
updateScore(trickScore);
};
trickScore = 0;
trickFX.visible = false;
trickFX.removeEventListener(Event.ENTER_FRAME, trickMonitor);
}
private function submitScore(_arg1:Event){
trace("submitScores click");
}
public function resetStats(){
gameOverMenu(false);
score = 0;
bails = 10;
updateScore(0);
updateBails(0);
travelBar.scaleX = 0;
localScores.saveBtn.addEventListener(MouseEvent.CLICK, saveScore);
saveBtn.addEventListener(MouseEvent.CLICK, saveScreen);
}
public function process(){
updateStamina(recoveryRate);
staminabar.scaleY = stamina;
speedbar.scaleY = (scope.vx / scope.topspd);
speedbar.gotoAndStop((1 + Math.round(((speedbar.scaleY * 100) / 10))));
staminabar.gotoAndStop((1 + Math.round(((stamina * 100) / 10))));
}
public function trickMonitor(_arg1:Event){
trickStars();
trickScore = scope.player.tscore;
trickFX.tscore_txt.text = trickScore.toString();
}
private function updateBoard(){
var _local1:*;
if (sObj.data.scores == undefined){
sObj.data.scores = sboard;
} else {
sboard = sObj.data.scores;
};
sboard.sortOn("sc", (Array.NUMERIC | Array.DESCENDING));
_local1 = 1;
while (_local1 < (sboard.length + 1)) {
localScores[("n" + _local1)].text = sboard[(_local1 - 1)].nm;
localScores[("s" + _local1)].text = sboard[(_local1 - 1)].sc;
_local1++;
};
localScores.pScore.text = score.toString();
localScores.pName.text = "";
}
private function muteSounds(_arg1:Event){
if (scope.sound.soundON){
scope.sound.soundON = false;
scope.sound.stopSounds();
_arg1.target.gotoAndStop("off");
} else {
scope.sound.soundON = true;
scope.sound.restartSounds();
_arg1.target.gotoAndStop("on");
};
}
private function restartGame(_arg1:Event){
clearTrickFX(false);
score = 0;
scope.player.tscore = 0;
scope.gameReset();
}
private function trickStars(){
var _local1:MovieClip;
_local1 = new star1(trickFX, scope);
_local1.x = (_local1.x + (10 - Math.round((Math.random() * 20))));
_local1.y = (_local1.y + (10 - Math.round((Math.random() * 20))));
trickFX.addChild(_local1);
}
public function updateBails(_arg1:Number){
bails = (bails + _arg1);
bails_txt.text = bails.toString();
}
public function gameOverMenu(_arg1){
restartBtn.visible = (saveBtn.visible = _arg1);
}
}
}//package assets.screens
Section 42
//wall_block1 (assets.walls.wall_block1)
package assets.walls {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class wall_block1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 5
public var space:Number;// = 0
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var hitBtn:SimpleButton;
public var wide:Number;// = 150
public function wall_block1(_arg1){
pp = new Point((350 + 150), 200);
deep = 5;
wide = 150;
space = 0;
planes = new Array();
super();
scope = _arg1;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(150, 0), B:new Point(150, -100), cl:77891, al:1});
planes.push({A:new Point(150, -100), B:new Point(150, -105), cl:0x666666, al:1});
planes.push({A:new Point(-150, 0), B:new Point(-150, -100), cl:77891, al:1});
planes.push({A:new Point(-150, -100), B:new Point(-150, -105), cl:0x666666, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
}
}
}//package assets.walls
Section 43
//wall_block2 (assets.walls.wall_block2)
package assets.walls {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class wall_block2 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 5
public var space:Number;// = 0
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var hitBtn:SimpleButton;
public var wide:Number;// = 150
public function wall_block2(_arg1){
pp = new Point((350 + 150), 200);
deep = 5;
wide = 150;
space = 0;
planes = new Array();
super();
scope = _arg1;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(150, 0), B:new Point(150, -100), cl:77891, al:1});
planes.push({A:new Point(150, -100), B:new Point(150, -105), cl:0x666666, al:1});
planes.push({A:new Point(-150, 0), B:new Point(-150, -100), cl:77891, al:1});
planes.push({A:new Point(-150, -100), B:new Point(-150, -105), cl:0x666666, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
}
}
}//package assets.walls
Section 44
//wall_chainlink1 (assets.walls.wall_chainlink1)
package assets.walls {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class wall_chainlink1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 0
public var space:Number;// = 0
public var scope:Object;
public var dist:Number;
public var wide:Number;// = 100
public function wall_chainlink1(_arg1){
pp = new Point((350 + 150), 200);
deep = 0;
wide = 100;
space = 0;
super();
scope = _arg1;
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function onRemove(_arg1:Event){
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function addElements(){
}
}
}//package assets.walls
Section 45
//wall_chainlink2 (assets.walls.wall_chainlink2)
package assets.walls {
import flash.display.*;
public dynamic class wall_chainlink2 extends MovieClip {
}
}//package assets.walls
Section 46
//woodfence1 (assets.walls.woodfence1)
package assets.walls {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class woodfence1 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 2
public var space:Number;// = 0
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 50
public function woodfence1(_arg1){
pp = new Point((350 + 150), 200);
deep = 2;
wide = 50;
space = 0;
planes = new Array();
super();
scope = _arg1;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(50, 0), B:new Point(50, -131), cl:0x663300, al:1});
planes.push({A:new Point(-50, 0), B:new Point(-50, -131), cl:0x663300, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
}
}
}//package assets.walls
Section 47
//woodfence2 (assets.walls.woodfence2)
package assets.walls {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class woodfence2 extends MovieClip {
public var pp:Point;
public var deep:Number;// = 2
public var space:Number;// = 0
public var scope:Object;
public var planes:Array;
public var dist:Number;
public var wide:Number;// = 100
public function woodfence2(_arg1){
pp = new Point((350 + 150), 200);
deep = 2;
wide = 100;
space = 0;
planes = new Array();
super();
scope = _arg1;
setData();
addEventListener(Event.ENTER_FRAME, render);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function setData(){
planes.push({A:new Point(100, 0), B:new Point(100, -131), cl:0x333333, al:1});
planes.push({A:new Point(-100, 0), B:new Point(-100, -131), cl:0x333333, al:1});
}
public function onRemove(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, render);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
public function drawPlane(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - y));
_local3 = Math.atan2(_local2.y, _local2.x);
_local4 = (-(deep) * (1 / Math.tan(_local3)));
_local5 = new Point((pp.x - (x + _arg1.A.x)), (pp.y - (y + _arg1.A.y)));
_local6 = Math.atan2(_local5.y, _local5.x);
_local7 = (_local4 * Math.tan(_local6));
_local8 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - y));
_local9 = Math.atan2(_local8.y, _local8.x);
_local10 = (-(deep) * (1 / Math.tan(_local9)));
_local11 = new Point((pp.x - (x + _arg1.B.x)), (pp.y - (y + _arg1.B.y)));
_local12 = Math.atan2(_local11.y, _local11.x);
_local13 = (_local10 * Math.tan(_local12));
graphics.beginFill(_arg1.cl, _arg1.al);
graphics.moveTo(_arg1.A.x, _arg1.A.y);
graphics.lineTo((_arg1.A.x + _local4), (_arg1.A.y + _local7));
graphics.lineTo((_arg1.B.x + _local10), (_arg1.B.y + _local13));
graphics.lineTo(_arg1.B.x, _arg1.B.y);
graphics.lineTo(_arg1.A.x, _arg1.A.y);
graphics.endFill();
}
public function render(_arg1:Event){
var _local2:*;
graphics.clear();
_local2 = 0;
while (_local2 < planes.length) {
drawPlane(planes[_local2]);
_local2++;
};
}
public function addElements(){
}
}
}//package assets.walls
Section 48
//ambulance_16 (skate_gold_fla.ambulance_16)
package skate_gold_fla {
import flash.display.*;
public dynamic class ambulance_16 extends MovieClip {
public var hitBtn:SimpleButton;
}
}//package skate_gold_fla
Section 49
//bailBonus_45 (skate_gold_fla.bailBonus_45)
package skate_gold_fla {
import flash.display.*;
import flash.text.*;
public dynamic class bailBonus_45 extends MovieClip {
public var bBonus_txt:TextField;
}
}//package skate_gold_fla
Section 50
//board_109 (skate_gold_fla.board_109)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class board_109 extends MovieClip {
public var wheels:MovieClip;
public var deck:MovieClip;
public function board_109(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
deck.gotoAndStop(MovieClip(this.parent.parent).player.dnum);
wheels.gotoAndStop(MovieClip(this.parent.parent).player.wnum);
}
}
}//package skate_gold_fla
Section 51
//bone_arm_L1_112 (skate_gold_fla.bone_arm_L1_112)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_arm_L1_112 extends MovieClip {
public function bone_arm_L1_112(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 52
//bone_arm_L2_113 (skate_gold_fla.bone_arm_L2_113)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_arm_L2_113 extends MovieClip {
public function bone_arm_L2_113(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 53
//bone_arm_R1_110 (skate_gold_fla.bone_arm_R1_110)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_arm_R1_110 extends MovieClip {
public function bone_arm_R1_110(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 54
//bone_arm_R2_111 (skate_gold_fla.bone_arm_R2_111)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_arm_R2_111 extends MovieClip {
public function bone_arm_R2_111(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 55
//bone_footL_121 (skate_gold_fla.bone_footL_121)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_footL_121 extends MovieClip {
public function bone_footL_121(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 56
//bone_footR_120 (skate_gold_fla.bone_footR_120)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_footR_120 extends MovieClip {
public function bone_footR_120(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 57
//bone_handL_123 (skate_gold_fla.bone_handL_123)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_handL_123 extends MovieClip {
public function bone_handL_123(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 58
//bone_handR_122 (skate_gold_fla.bone_handR_122)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_handR_122 extends MovieClip {
public function bone_handR_122(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 59
//bone_head_125 (skate_gold_fla.bone_head_125)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_head_125 extends MovieClip {
public var hair_A1:MovieClip;
public function bone_head_125(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.cnum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
case 5:
gotoAndStop("E1");
break;
case 6:
gotoAndStop("F1");
break;
};
}
}
}//package skate_gold_fla
Section 60
//bone_leg_L1_115 (skate_gold_fla.bone_leg_L1_115)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_leg_L1_115 extends MovieClip {
public function bone_leg_L1_115(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 61
//bone_leg_L2_117 (skate_gold_fla.bone_leg_L2_117)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_leg_L2_117 extends MovieClip {
public function bone_leg_L2_117(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 62
//bone_leg_R1_114 (skate_gold_fla.bone_leg_R1_114)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_leg_R1_114 extends MovieClip {
public function bone_leg_R1_114(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 63
//bone_leg_R2_116 (skate_gold_fla.bone_leg_R2_116)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_leg_R2_116 extends MovieClip {
public function bone_leg_R2_116(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 64
//bone_neck_124 (skate_gold_fla.bone_neck_124)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_neck_124 extends MovieClip {
public function bone_neck_124(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
case 5:
gotoAndStop("E1");
break;
case 6:
gotoAndStop("F1");
break;
};
}
}
}//package skate_gold_fla
Section 65
//bone_torso1_118 (skate_gold_fla.bone_torso1_118)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_torso1_118 extends MovieClip {
public function bone_torso1_118(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 66
//bone_torso2_119 (skate_gold_fla.bone_torso2_119)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bone_torso2_119 extends MovieClip {
public function bone_torso2_119(){
addFrameScript(0, frame1);
}
function frame1(){
switch (MovieClip(this.parent.parent).player.snum){
case 1:
gotoAndStop("A1");
break;
case 2:
gotoAndStop("B1");
break;
case 3:
gotoAndStop("C1");
break;
case 4:
gotoAndStop("D1");
break;
};
}
}
}//package skate_gold_fla
Section 67
//hair_A1_126 (skate_gold_fla.hair_A1_126)
package skate_gold_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hair_A1_126 extends MovieClip {
public function hair_A1_126(){
addFrameScript(0, frame1, 1, frame2, 16, frame17, 24, frame25, 28, frame29);
}
public function onRemove(_arg1:Event){
stop();
removeEventListener(Event.ENTER_FRAME, hairCheck);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
function frame1(){
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
function frame25(){
if (MovieClip(this.parent.parent.parent).vx < 10){
gotoAndPlay("slow");
} else {
if (MovieClip(this.parent.parent.parent).vx > 15){
gotoAndPlay("fast");
} else {
gotoAndPlay("med");
};
};
}
function frame17(){
if (MovieClip(this.parent.parent.parent).vx < 5){
gotoAndStop("still");
} else {
if (MovieClip(this.parent.parent.parent).vx > 10){
gotoAndPlay("med");
} else {
gotoAndPlay("slow");
};
};
}
function frame29(){
if (MovieClip(this.parent.parent.parent).vx < 15){
gotoAndPlay("med");
} else {
gotoAndPlay("fast");
};
}
public function hairCheck(_arg1:Event){
if (MovieClip(this.parent.parent.parent).vx > 5){
removeEventListener(Event.ENTER_FRAME, hairCheck);
gotoAndPlay("slow");
};
}
function frame2(){
stop();
addEventListener(Event.ENTER_FRAME, hairCheck);
}
}
}//package skate_gold_fla
Section 68
//keyA_mc_79 (skate_gold_fla.keyA_mc_79)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyA_mc_79 extends MovieClip {
public function keyA_mc_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 69
//keyD_mc_80 (skate_gold_fla.keyD_mc_80)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyD_mc_80 extends MovieClip {
public function keyD_mc_80(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 70
//keyDN_mc_73 (skate_gold_fla.keyDN_mc_73)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyDN_mc_73 extends MovieClip {
public function keyDN_mc_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 71
//keyF_mc_81 (skate_gold_fla.keyF_mc_81)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyF_mc_81 extends MovieClip {
public function keyF_mc_81(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 72
//keyG_mc_82 (skate_gold_fla.keyG_mc_82)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyG_mc_82 extends MovieClip {
public function keyG_mc_82(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 73
//keyLT_mc_75 (skate_gold_fla.keyLT_mc_75)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyLT_mc_75 extends MovieClip {
public function keyLT_mc_75(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 74
//keyRT_mc_76 (skate_gold_fla.keyRT_mc_76)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyRT_mc_76 extends MovieClip {
public function keyRT_mc_76(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 75
//keyS_mc_78 (skate_gold_fla.keyS_mc_78)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyS_mc_78 extends MovieClip {
public function keyS_mc_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 76
//keySP_mc_77 (skate_gold_fla.keySP_mc_77)
package skate_gold_fla {
import flash.display.*;
public dynamic class keySP_mc_77 extends MovieClip {
public function keySP_mc_77(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 77
//keyUP_mc_74 (skate_gold_fla.keyUP_mc_74)
package skate_gold_fla {
import flash.display.*;
public dynamic class keyUP_mc_74 extends MovieClip {
public function keyUP_mc_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 78
//learn_imagebox_72 (skate_gold_fla.learn_imagebox_72)
package skate_gold_fla {
import flash.display.*;
public dynamic class learn_imagebox_72 extends MovieClip {
public function learn_imagebox_72(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 79
//muteBtn_50 (skate_gold_fla.muteBtn_50)
package skate_gold_fla {
import flash.display.*;
public dynamic class muteBtn_50 extends MovieClip {
public function muteBtn_50(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 80
//pauseBtn_51 (skate_gold_fla.pauseBtn_51)
package skate_gold_fla {
import flash.display.*;
public dynamic class pauseBtn_51 extends MovieClip {
public function pauseBtn_51(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 81
//select_board_62 (skate_gold_fla.select_board_62)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_board_62 extends MovieClip {
public var nextWheelBtn:SimpleButton;
public var boardbox:MovieClip;
public var nextDeckBtn:SimpleButton;
public var selectBoardBtn:SimpleButton;
}
}//package skate_gold_fla
Section 82
//select_boardbox_63 (skate_gold_fla.select_boardbox_63)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_boardbox_63 extends MovieClip {
public var wheels:MovieClip;
public var deck:MovieClip;
}
}//package skate_gold_fla
Section 83
//select_character_69 (skate_gold_fla.select_character_69)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_character_69 extends MovieClip {
public var selectCharBtn:SimpleButton;
public var nextCharBtn:SimpleButton;
public var charbox:MovieClip;
}
}//package skate_gold_fla
Section 84
//select_charbox_70 (skate_gold_fla.select_charbox_70)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_charbox_70 extends MovieClip {
public function select_charbox_70(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package skate_gold_fla
Section 85
//select_course_57 (skate_gold_fla.select_course_57)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_course_57 extends MovieClip {
public var nextCourseBtn:SimpleButton;
public var selectCourseBtn:SimpleButton;
public var coursebox:MovieClip;
}
}//package skate_gold_fla
Section 86
//select_coursebox_58 (skate_gold_fla.select_coursebox_58)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_coursebox_58 extends MovieClip {
public var locked_mc:MovieClip;
public function select_coursebox_58(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package skate_gold_fla
Section 87
//select_deck_66 (skate_gold_fla.select_deck_66)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_deck_66 extends MovieClip {
public function select_deck_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 88
//select_shirt_67 (skate_gold_fla.select_shirt_67)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_shirt_67 extends MovieClip {
public var shirtbox:MovieClip;
public var nextShirtBtn:SimpleButton;
public var selectShirtBtn:SimpleButton;
}
}//package skate_gold_fla
Section 89
//select_shirtbox_68 (skate_gold_fla.select_shirtbox_68)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_shirtbox_68 extends MovieClip {
public function select_shirtbox_68(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package skate_gold_fla
Section 90
//select_wheels_65 (skate_gold_fla.select_wheels_65)
package skate_gold_fla {
import flash.display.*;
public dynamic class select_wheels_65 extends MovieClip {
public function select_wheels_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 91
//speedbar_48 (skate_gold_fla.speedbar_48)
package skate_gold_fla {
import flash.display.*;
public dynamic class speedbar_48 extends MovieClip {
public function speedbar_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 92
//staminabar_49 (skate_gold_fla.staminabar_49)
package skate_gold_fla {
import flash.display.*;
public dynamic class staminabar_49 extends MovieClip {
public function staminabar_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package skate_gold_fla
Section 93
//stats_localScores_52 (skate_gold_fla.stats_localScores_52)
package skate_gold_fla {
import flash.display.*;
import flash.text.*;
public dynamic class stats_localScores_52 extends MovieClip {
public var pScore:TextField;
public var n10:TextField;
public var s1:TextField;
public var pName:TextField;
public var s6:TextField;
public var s5:TextField;
public var s7:TextField;
public var s2:TextField;
public var s4:TextField;
public var s9:TextField;
public var s3:TextField;
public var s8:TextField;
public var n1:TextField;
public var n2:TextField;
public var n5:TextField;
public var n8:TextField;
public var n7:TextField;
public var n4:TextField;
public var n6:TextField;
public var n9:TextField;
public var n3:TextField;
public var saveBtn:SimpleButton;
public var doneBtn:SimpleButton;
public var s10:TextField;
}
}//package skate_gold_fla
Section 94
//ambulance (ambulance)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ambulance extends MovieClip {
public function ambulance(){
addFrameScript(111, frame112, 159, frame160);
}
function frame160(){
stop();
MovieClip(this.parent).stats.gameOverMenu(true);
}
function frame112(){
MovieClip(this.parent).player.skater.visible = false;
MovieClip(this.parent).player.removeSkater();
}
}
}//package
Section 95
//bgMusic (bgMusic)
package {
import flash.media.*;
public dynamic class bgMusic extends Sound {
}
}//package
Section 96
//board_shadow (board_shadow)
package {
import flash.display.*;
public dynamic class board_shadow extends MovieClip {
}
}//package
Section 97
//board2 (board2)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class board2 extends MovieClip {
public var wheels:MovieClip;
public var deck:MovieClip;
public function board2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
deck.gotoAndStop(MovieClip(this.parent.parent).player.dnum);
wheels.gotoAndStop(MovieClip(this.parent.parent).player.wnum);
}
}
}//package
Section 98
//cityscape_back1 (cityscape_back1)
package {
import flash.display.*;
public dynamic class cityscape_back1 extends MovieClip {
}
}//package
Section 99
//cityscape_back2 (cityscape_back2)
package {
import flash.display.*;
public dynamic class cityscape_back2 extends MovieClip {
}
}//package
Section 100
//cityscape_mid1 (cityscape_mid1)
package {
import flash.display.*;
public dynamic class cityscape_mid1 extends MovieClip {
}
}//package
Section 101
//cityscape_mid2 (cityscape_mid2)
package {
import flash.display.*;
public dynamic class cityscape_mid2 extends MovieClip {
}
}//package
Section 102
//cityscape_near1 (cityscape_near1)
package {
import flash.display.*;
public dynamic class cityscape_near1 extends MovieClip {
}
}//package
Section 103
//cityscape_near2 (cityscape_near2)
package {
import flash.display.*;
public dynamic class cityscape_near2 extends MovieClip {
}
}//package
Section 104
//playerEngine (playerEngine)
package {
import flash.events.*;
import flash.display.*;
import assets.effects.*;
import flash.utils.*;
import flash.filters.*;
public class playerEngine extends MovieClip {
public var snum:Number;// = 1
public var action:Boolean;// = true
public var contact:Boolean;// = true
public var airTime:Boolean;// = false
public var shad:MovieClip;
public var cnum:Number;// = 1
public var scope:Object;
public var pos:Object;
public var pump:Boolean;// = false
public var skater:MovieClip;
public var ramping:Boolean;// = false
public var rampObj:MovieClip;
public var dnum:Number;// = 1
public var tscore:Number;// = 0
public var wnum:Number;// = 1
private var recoveryTimer:Timer;
public var skaterFX:MovieClip;
public var momentumV:Number;
public var smode:Number;// = 0
public var base:Number;// = 350
public var fore:Boolean;// = false
public var impactV:Number;
public var minGrindSpeed:Number;// = 5
public function playerEngine(_arg1){
cnum = 1;
snum = 1;
dnum = 1;
wnum = 1;
pos = {x:200, y:350};
base = 350;
contact = true;
pump = false;
ramping = false;
smode = 0;
action = true;
airTime = false;
fore = false;
tscore = 0;
recoveryTimer = new Timer(2000, 1);
skater = new skeleton();
shad = new board_shadow();
skaterFX = new MovieClip();
minGrindSpeed = 5;
super();
scope = _arg1;
recoveryTimer.addEventListener(TimerEvent.TIMER, recoverInit);
}
private function recoverCheck():Boolean{
var _local1:Boolean;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = true;
_local2 = scope.scene.elementArray;
_local3 = 0;
while (_local3 < _local2.length) {
if (((((((_local2[_local3].y - _local2[_local3].height) <= 350)) && ((_local2[_local3].y >= 350)))) && (((_local2[_local3].x - _local2[_local3].wide) <= (250 + 150))))){
if ((_local2[_local3].x + _local2[_local3].width) > (200 + 150)){
_local1 = false;
break;
};
};
_local3++;
};
_local4 = scope.scene.foregroundArray;
_local5 = 0;
while (_local5 < _local4.length) {
if ((((_local4[_local5].objType == 2)) && (((_local4[_local5].x - _local4[_local5].wide) <= (250 + 150))))){
if ((_local4[_local5].x + _local4[_local5].width) > (200 + 150)){
_local1 = false;
break;
};
};
_local5++;
};
return (_local1);
}
public function setPlayer(){
var _local1:*;
skater.x = pos.x;
skater.y = pos.y;
shad.x = pos.x;
shad.y = pos.y;
shad.alpha = 0.5;
shad.filters = [new BlurFilter(6, 6)];
skaterFX.x = pos.x;
skaterFX.y = pos.y;
if (skaterFX.numChildren > 0){
_local1 = 0;
while (_local1 < skaterFX.numChildren) {
skaterFX.removeChildAt(_local1);
_local1++;
};
};
scope.addChild(shad);
scope.addChild(skater);
scope.addChild(skaterFX);
scope.sound.startSound("roll", 0, 9999, 0, 0);
action = true;
contact = true;
smode = 0;
starFX(10, 20, 20, -50);
}
public function grind(){
var _local1:Boolean;
_local1 = false;
if (airTime){
bail();
} else {
if (smode != 3){
scope.stats.clearTrickFX(true);
scope.ollieInit = false;
scope.methodInit = false;
scope.indyInit = false;
};
if (scope.vx > minGrindSpeed){
if (((!(scope.key1)) && (!(scope.key2)))){
_local1 = true;
starFX(1, 2, 0, 0);
tscore = (tscore + 5);
if (smode != 3){
skater.rotation = 0;
scope.sound.setVolume("roll", 0);
skater.gotoAndPlay("grind_50-50");
scope.stats.initTrickFX("50-50_grind");
smode = 3;
};
} else {
if (((scope.key1) && (!(scope.key2)))){
_local1 = true;
starFX(1, 2, 0, 0);
tscore = (tscore + 10);
if (smode != 3){
skater.rotation = 0;
scope.sound.setVolume("roll", 0);
skater.gotoAndPlay("grind_tail");
scope.stats.initTrickFX("5-0_grind");
smode = 3;
};
} else {
if (((!(scope.key1)) && (scope.key2))){
_local1 = true;
starFX(1, 2, 40, 0);
tscore = (tscore + 10);
if (smode != 3){
skater.rotation = 0;
scope.sound.setVolume("roll", 0);
skater.gotoAndPlay("grind_nose");
scope.stats.initTrickFX("nose_grind");
smode = 3;
};
};
};
};
} else {
bail();
};
if (!_local1){
if (smode == 3){
tscore = 0;
scope.stats.clearTrickFX(false);
bail();
};
};
};
}
public function removeSkater(){
var _local1:*;
skater.visible = false;
_local1 = new board2();
_local1.x = -113.3;
_local1.y = 9.7;
skaterFX.addChild(_local1);
shad.x = (skater.x - 113.3);
shad.y = (skater.y + 9.7);
shad.rotation = 0;
shad.visible = true;
}
public function bloodFX(_arg1, _arg2, _arg3, _arg4){
var _local5:Sprite;
_local5 = new blood(scope, _arg1, _arg2, _arg3, _arg4);
scope.scene.elementArray.push(_local5);
scope.scene.element.addChild(_local5);
}
private function recover(_arg1:Event){
skater.visible = (shad.visible = false);
if (recoverCheck()){
removeEventListener(Event.ENTER_FRAME, recover);
scope.vx = 0;
scope.ollieInit = false;
scope.methodInit = false;
action = true;
contact = true;
skater.gotoAndStop("stand");
skater.y = (shad.y = 350);
skater.visible = (shad.visible = true);
starFX(10, 20, 20, -50);
smode = 0;
} else {
scope.vx = 10;
};
}
public function process(){
var _local1:*;
var _local2:*;
skaterFX.x = skater.x;
skaterFX.y = skater.y;
_local1 = ((100 - (base - skater.y)) / 100);
if (_local1 <= 0){
_local1 = 0;
};
shad.scaleX = (shad.scaleY = _local1);
switch (smode){
case 0:
base = skater.y;
shad.y = skater.y;
shad.rotation = skater.rotation;
_local2 = (scope.vx / scope.topspd);
scope.sound.setVolume("roll", _local2);
break;
case 1:
skater.y = (skater.y - scope.vy);
scope.vy = (scope.vy - scope.gravity);
if (skater.y >= base){
skater.y = base;
scope.vy = 0;
smode = 0;
contact = true;
scope.ollieInit = false;
};
break;
case 2:
skater.y = (skater.y - scope.vy);
scope.vy = (scope.vy - scope.gravity);
scope.vx = (scope.vx - (impactV / 20));
if (skater.y >= base){
skater.y = base;
scope.vy = 0;
};
if (scope.vx <= 1){
scope.vx = 0;
};
break;
case 3:
skater.y = (skater.y - scope.vy);
scope.vy = (scope.vy - scope.gravity);
if (skater.y >= base){
scope.stats.clearTrickFX(true);
tscore = 0;
skater.gotoAndStop("stand");
skater.y = base;
scope.vy = 0;
smode = 0;
contact = true;
};
break;
case 4:
starFX(1, 1, 0, 0);
skater.y = (skater.y - scope.vy);
scope.vy = (scope.vy - scope.gravity);
if (skater.y >= base){
skater.y = base;
scope.vy = 0;
smode = 0;
contact = true;
tscore = 0;
scope.stats.clearTrickFX(true);
};
break;
case 5:
starFX(1, 1, 0, 0);
starFX(1, 1, 0, -30);
starFX(1, 1, 0, -60);
skater.y = (skater.y - scope.vy);
scope.vy = (scope.vy - scope.gravity);
if (skater.y >= base){
if (airTime){
tscore = 0;
scope.stats.clearTrickFX(false);
bail();
} else {
skater.y = base;
scope.vy = 0;
smode = 0;
contact = true;
tscore = 1000;
scope.stats.clearTrickFX(true);
tscore = 0;
scope.indyInit = false;
};
};
break;
case 6:
starFX(1, 1, 0, 0);
starFX(1, 1, 0, -30);
starFX(1, 1, 0, -60);
if (airTime){
tscore = (tscore + 20);
};
skater.y = (skater.y - scope.vy);
scope.vy = (scope.vy - scope.gravity);
if (skater.y >= base){
if (airTime){
tscore = 0;
scope.stats.clearTrickFX(false);
skater.board.wheels.visible = true;
bail();
} else {
skater.y = base;
scope.vy = 0;
smode = 0;
contact = true;
scope.stats.clearTrickFX(true);
tscore = 0;
scope.methodInit = false;
};
};
break;
case 7:
skater.y = (skater.y - scope.vy);
scope.vy = (scope.vy - scope.gravity);
if (skater.y >= base){
skater.y = base;
scope.vy = 0;
smode = 0;
contact = true;
};
break;
case 10:
action = false;
base = 350;
shad.y = 350;
shad.x = skater.x;
if (momentumV > 5){
momentumV = (momentumV - 2);
} else {
momentumV = 5;
};
skater.x = (skater.x + momentumV);
if (scope.vx > 1){
scope.vx--;
} else {
scope.vx = 0;
};
skater.y = (skater.y - scope.vy);
scope.vy = (scope.vy - scope.gravity);
starFX(1, 1, 20, 0);
starFX(1, 1, 20, -30);
starFX(1, 1, 20, -60);
if (skater.y >= base){
skater.y = base;
scope.sound.setVolume("roll", 0.5);
};
if (skater.x >= 800){
scope.levelComplete();
scope.vx = 0;
smode = 0;
};
break;
default:
break;
};
if (action){
hitTest();
};
}
public function resetCharacter(){
var _local1:*;
var _local2:*;
if ((((snum == 3)) && ((dnum == 2)))){
snum = 4;
cnum = 6;
} else {
cnum = 1;
};
_local1 = 0;
while (_local1 < skater.numChildren) {
_local2 = skater.getChildAt(_local1);
_local2.gotoAndStop(1);
_local1++;
};
skater.board.deck.gotoAndStop(dnum);
skater.board.wheels.gotoAndStop(wnum);
skater.gotoAndStop("stand");
skater.visible = (shad.visible = (skaterFX.visible = true));
scope.sound.startSound("roll", 0, 9999, 0, 0);
}
public function bail(){
action = false;
airTime = false;
impactV = scope.vx;
base = 340;
scope.ollieInit = false;
scope.methodInit = false;
scope.indyInit = false;
if (scope.getChildIndex(scope.player.skater) > scope.getChildIndex(scope.scene.foreground)){
scope.foreSwap();
};
shad.visible = false;
skater.rotation = 0;
skater.y = (skater.y - 20);
skater.board.wheels.visible = true;
scope.sound.setVolume("roll", 0);
scope.sound.startSound("bail1", 0, 0, 1, 0);
tscore = -100;
scope.stats.clearTrickFX(false);
scope.stats.initTrickFX("bail");
scope.stats.updateBails(-1);
smode = 2;
skater.gotoAndPlay("bail_fw");
recoveryTimer.start();
}
private function recoverInit(_arg1:TimerEvent){
scope.stats.clearTrickFX(true);
tscore = 0;
scope.ollieInit = false;
scope.methodInit = false;
scope.indyInit = false;
if (scope.stats.bails == 0){
scope.gameComplete();
} else {
addEventListener(Event.ENTER_FRAME, recover);
};
}
private function hitTest(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_local1 = false;
_local2 = false;
_local3 = scope.scene.elementArray;
_local4 = false;
_local5 = 0;
while (_local5 < _local3.length) {
if (base <= _local3[_local5].y){
if (((((_local3[_local5].hitTestPoint(skater.x, skater.y, false)) || (_local3[_local5].hitTestPoint((skater.x + 20), skater.y, false)))) || (_local3[_local5].hitTestPoint((skater.x + 40), skater.y, false)))){
switch (_local3[_local5].hitType){
case 0:
if (((((_local3[_local5].hitTestPoint(skater.x, skater.y, true)) || (_local3[_local5].hitTestPoint((skater.x + 20), skater.y, true)))) || (_local3[_local5].hitTestPoint((skater.x + 40), skater.y, true)))){
bail();
};
break;
case 1:
if (((_local3[_local5].y - _local3[_local5].height) + _local3[_local5].deep) < skater.y){
bail();
} else {
scope.vy = (scope.vy + (scope.vy * -1));
_local4 = true;
};
break;
case 2:
if (((_local3[_local5].y - _local3[_local5].height) + _local3[_local5].buffer) < skater.y){
bail();
} else {
scope.vy = (scope.vy + (scope.vy * -1));
_local4 = true;
grind();
};
break;
case 3:
if (((((_local3[_local5].ramp.hitTestPoint(skater.x, skater.y, false)) || (_local3[_local5].ramp.hitTestPoint((skater.x + 20), skater.y, false)))) || (_local3[_local5].ramp.hitTestPoint((skater.x + 40), skater.y, false)))){
skater.gotoAndPlay("rampUP");
scope.vy = (scope.vx * 0.75);
skater.y = (skater.y - scope.vy);
smode = 7;
} else {
if (((_local3[_local5].y - _local3[_local5].height) + _local3[_local5].buffer) < skater.y){
bail();
} else {
scope.vy = (scope.vy + (scope.vy * -1));
_local4 = true;
};
};
break;
case 4:
_local9 = 0;
while (_local9 < _local3[_local5].hitpoints.length) {
if (skater.hitTestPoint(((_local3[_local5].x + -150) + _local3[_local5].hitpoints[_local9].x), (_local3[_local5].y + _local3[_local5].hitpoints[_local9].y), true)){
bail();
break;
};
_local9++;
};
break;
default:
break;
};
};
};
if (_local4){
_local1 = true;
break;
} else {
_local1 = false;
};
_local5++;
};
_local6 = scope.scene.foregroundArray;
_local7 = false;
_local8 = 0;
while (_local8 < _local6.length) {
if (((((_local6[_local8].hitTestPoint(skater.x, skater.y, false)) || (_local6[_local8].hitTestPoint((skater.x + 20), skater.y, false)))) || (_local6[_local8].hitTestPoint((skater.x + 40), skater.y, false)))){
switch (_local6[_local8].hitType){
case 0:
if (((((_local6[_local8].hitObj.hitTestPoint(200, base, false)) || (_local6[_local8].hitObj.hitTestPoint(220, base, false)))) || (_local6[_local8].hitObj.hitTestPoint(240, base, false)))){
if (((((_local6[_local8].hitTestPoint(skater.x, skater.y, true)) || (_local6[_local8].hitTestPoint((skater.x + 20), skater.y, true)))) || (_local6[_local8].hitTestPoint((skater.x + 40), skater.y, true)))){
bail();
};
};
break;
case 1:
break;
case 2:
if (((((_local6[_local8].hitObj.hitTestPoint(200, base, false)) || (_local6[_local8].hitObj.hitTestPoint(220, base, false)))) || (_local6[_local8].hitObj.hitTestPoint(240, base, false)))){
if (((_local6[_local8].y - _local6[_local8].height) + _local6[_local8].buffer) < skater.y){
bail();
} else {
scope.vy = (scope.vy + (scope.vy * -1));
_local7 = true;
grind();
};
};
break;
default:
break;
};
};
if (_local7){
_local2 = true;
break;
} else {
_local2 = false;
};
_local8++;
};
if (action){
if (_local2){
if (scope.getChildIndex(scope.player.skater) < scope.getChildIndex(scope.scene.foreground)){
scope.foreSwap();
};
} else {
if (scope.getChildIndex(scope.player.skater) > scope.getChildIndex(scope.scene.foreground)){
scope.foreSwap();
};
};
if (((_local1) || (_local2))){
contact = true;
} else {
if (skater.y < base){
contact = false;
} else {
contact = true;
};
};
};
}
public function starFX(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:*;
var _local7:MovieClip;
_local5 = (_arg1 + Math.round((Math.random() * (_arg2 - _arg1))));
_local6 = 0;
while (_local6 < _local5) {
_local7 = new star1(skaterFX, scope);
_local7.x = _arg3;
_local7.y = _arg4;
skaterFX.addChild(_local7);
_local6++;
};
}
}
}//package
Section 105
//sceneEngine (sceneEngine)
package {
import flash.events.*;
import flash.display.*;
import assets.buildings.*;
import assets.objects.*;
import assets.walls.*;
public class sceneEngine extends Sprite {
private var distance:Number;// = 0
public var element:Sprite;
private var travel:Number;// = 0
private var course:Number;
private var fmark:Number;// = 0
private var elementSource:Array;
private var backscape:MovieClip;
private var fChance:Number;// = 50
public var foreground:Sprite;
private var pmark:Number;// = 0
private var skyscape:Sprite;
public var scope:Object;
private var foreArray:Array;
private var eFrequency:Number;// = 1000
private var foregroundSource:Array;
private var forescape:Sprite;
private var fFrequency:Number;// = 1000
private var finish:Boolean;// = false
public var groundscape:MovieClip;
private var nearscape:MovieClip;
private var emark:Number;// = 0
public var landscape:Sprite;
public var elementArray:Array;
private var pFrequency:Number;// = 5
private var midscape:MovieClip;
public var foregroundArray:Array;
private var foreSource:Array;
private var eChance:Number;// = 20
public function sceneEngine(_arg1){
travel = 0;
emark = 0;
fmark = 0;
pmark = 0;
distance = 0;
finish = false;
eFrequency = 1000;
eChance = 20;
fFrequency = 1000;
fChance = 50;
pFrequency = 5;
foreSource = new Array();
foreArray = new Array();
elementSource = new Array();
elementArray = new Array();
foregroundSource = new Array();
foregroundArray = new Array();
super();
scope = _arg1;
setData();
}
private function elementAdd(){
var _local1:*;
var _local2:*;
_local1 = Math.round((Math.random() * (elementSource[(course - 1)].length - 1)));
_local2 = new elementSource[(course - 1)][_local1](this);
_local2.x = (1000 + _local2.wide);
elementArray.push(_local2);
element.addChild(_local2);
}
private function setData(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local1 = [building1, building2, building3, shop1, shop2, shop3, wall_block2, woodfence1, wall_chainlink1];
_local2 = [building4, building5, building6, building7, building8, wall_block1, woodfence2, wall_chainlink1];
foreSource.push(_local1);
foreSource.push(_local2);
_local3 = [grate1, manhole1, hole1];
_local4 = [barrier1, manhole1, hole1, dirtpile1];
elementSource.push(_local3);
elementSource.push(_local4);
_local5 = [hydrant, bikerack, gaspipe1, trashcan1, sign1];
_local6 = [hydrant, gaspipe2, trashcan1, sign1, oildrum];
foregroundSource.push(_local5);
foregroundSource.push(_local6);
}
public function elementToForeground(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:*;
_local5 = 0;
while (_local5 < elementArray.length) {
if (elementArray[_local5].name == _arg4.name){
element.removeChild(elementArray[_local5]);
elementArray.splice(_local5, 1);
break;
};
_local5++;
};
_local6 = new _arg1(this);
_local6.x = _arg2;
_local6.y = _arg3;
foregroundArray.push(_local6);
foreground.addChildAt(_local6, 0);
}
public function setScene(){
var _local1:*;
course = scope.course;
scope.stats.travelBar.scaleX = 0;
landscape = new Sprite();
forescape = new Sprite();
element = new Sprite();
foreground = new Sprite();
switch (course){
case 1:
distance = 50000;
skyscape = new Sprite();
skyscape.graphics.beginFill(10079487);
skyscape.graphics.drawRect(0, 0, 700, 100);
groundscape = new sidewalk(scope);
groundscape.x = -100;
groundscape.y = 330;
backscape = new cityscape_back1();
midscape = new cityscape_mid1();
nearscape = new cityscape_near1();
backscape.y = 210;
midscape.y = 240;
nearscape.y = 280;
forescape.x = -150;
element.x = -150;
foreground.x = -150;
break;
case 2:
distance = 100000;
skyscape = new Sprite();
skyscape.graphics.beginFill(16764006);
skyscape.graphics.drawRect(0, 0, 700, 100);
groundscape = new sidewalk(scope);
groundscape.x = -100;
groundscape.y = 330;
backscape = new cityscape_back2();
midscape = new cityscape_mid2();
nearscape = new cityscape_near2();
backscape.y = 210;
midscape.y = 240;
nearscape.y = 280;
forescape.x = -150;
element.x = -150;
foreground.x = -150;
break;
};
forescapeAdd();
landscape.addChild(skyscape);
landscape.addChild(backscape);
landscape.addChild(midscape);
landscape.addChild(nearscape);
landscape.addChild(forescape);
scope.addChild(groundscape);
scope.addChild(landscape);
scope.addChild(element);
scope.addChild(foreground);
_local1 = new finishline(this, false);
_local1.x = (250 + 150);
elementArray.push(_local1);
element.addChild(_local1);
}
public function process(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Number;
var _local9:*;
var _local10:*;
travel = (travel + Math.round(scope.vx));
fmark = (fmark + Math.round(scope.vx));
emark = (emark + Math.round(scope.vx));
scope.stats.travelBar.scaleX = (travel / distance);
if (travel >= distance){
scope.stats.travelBar.scaleX = 1;
if (!finish){
finish = true;
_local5 = new finishline(this, true);
_local5.x = (1000 + _local5.wide);
elementArray.push(_local5);
element.addChild(_local5);
};
};
if ((((emark >= eFrequency)) && (!(finish)))){
if (Math.round((Math.random() * 100)) < eChance){
elementAdd();
};
emark = 0;
};
if ((((fmark >= fFrequency)) && (!(finish)))){
if (pmark == pFrequency){
foregroundAdd(true);
pmark = -1;
fmark = 0;
} else {
if (Math.round((Math.random() * 100)) < fChance){
foregroundAdd(false);
};
};
pmark++;
fmark = 0;
};
groundscape.process();
if (backscape.x <= -700){
backscape.x = (backscape.x + (-1 * backscape.x));
};
if (midscape.x <= -700){
midscape.x = (midscape.x + (-1 * midscape.x));
};
if (nearscape.x <= -700){
nearscape.x = (nearscape.x + (-1 * nearscape.x));
};
backscape.x = (backscape.x - (scope.vx * ((backscape.y - scope.pp.y) / scope.pp.y)));
midscape.x = (midscape.x - (scope.vx * ((midscape.y - scope.pp.y) / scope.pp.y)));
nearscape.x = (nearscape.x - (scope.vx * ((nearscape.y - scope.pp.y) / scope.pp.y)));
_local1 = (scope.vx * (((forescape.y + 330) - scope.pp.y) / scope.pp.y));
if ((foreArray[0].x + foreArray[0].wide) <= 0){
forescape.removeChild(foreArray[0]);
foreArray.shift();
};
if ((foreArray[(foreArray.length - 1)].x - foreArray[(foreArray.length - 1)].wide) <= 850){
forescapeAdd();
};
_local2 = 0;
while (_local2 < foreArray.length) {
foreArray[_local2].x = (foreArray[_local2].x - _local1);
_local6 = (foreArray[_local2].x - 500);
foreArray[_local2].dist = Math.abs(_local6);
_local2++;
};
_local3 = foreArray.slice();
_local3.sortOn("dist", (Array.DESCENDING | Array.NUMERIC));
_local4 = 0;
while (_local4 < _local3.length) {
forescape.addChild(_local3[_local4]);
_local4++;
};
if (elementArray.length > 0){
if ((elementArray[0].x + elementArray[0].wide) <= 0){
element.removeChild(elementArray[0]);
elementArray.shift();
};
_local7 = 0;
while (_local7 < elementArray.length) {
switch (elementArray[_local7].objType){
case 0:
_local8 = (scope.vx * (((elementArray[_local7].y - (elementArray[_local7].deep / 2)) - scope.pp.y) / scope.pp.y));
break;
case 1:
_local8 = (scope.vx * ((elementArray[_local7].y - scope.pp.y) / scope.pp.y));
break;
case 2:
_local8 = (scope.vx * (((elementArray[_local7].y - (elementArray[_local7].deep / 2)) - scope.pp.y) / scope.pp.y));
break;
default:
_local8 = (scope.vx * ((elementArray[_local7].y - scope.pp.y) / scope.pp.y));
break;
};
elementArray[_local7].x = (elementArray[_local7].x - _local8);
_local7++;
};
};
if (foregroundArray.length > 0){
if ((foregroundArray[0].x + foregroundArray[0].wide) <= 0){
foreground.removeChild(foregroundArray[0]);
foregroundArray.shift();
};
_local9 = 0;
while (_local9 < foregroundArray.length) {
_local10 = (scope.vx * ((foregroundArray[_local9].y - scope.pp.y) / scope.pp.y));
foregroundArray[_local9].x = (foregroundArray[_local9].x - _local10);
_local9++;
};
};
}
private function foregroundAdd(_arg1){
var _local2:MovieClip;
var _local3:*;
if (_arg1){
_local2 = new powerpole1(this);
} else {
_local3 = Math.round((Math.random() * (foregroundSource[(course - 1)].length - 1)));
_local2 = new foregroundSource[(course - 1)][_local3](this);
};
_local2.x = (1000 + _local2.wide);
foregroundArray.push(_local2);
foreground.addChild(_local2);
}
private function forescapeAdd(){
var _local1:*;
var _local2:*;
var _local3:Number;
while ((((foreArray.length == 0)) || ((foreArray[(foreArray.length - 1)].x <= 1200)))) {
_local1 = Math.round((Math.random() * (foreSource[(course - 1)].length - 1)));
_local2 = new foreSource[(course - 1)][_local1](this);
if (foreArray.length == 0){
_local2.x = _local2.wide;
} else {
if (foreArray[(foreArray.length - 1)].space == 0){
_local3 = 0;
} else {
_local3 = _local2.space;
};
_local2.x = (((_local2.wide + _local3) + foreArray[(foreArray.length - 1)].x) + foreArray[(foreArray.length - 1)].wide);
};
_local2.y = 330;
_local2.addElements();
foreArray.push(_local2);
forescape.addChild(_local2);
};
}
public function resetScene(){
var _local1:*;
var _local2:*;
var _local3:*;
travel = 0;
emark = 0;
fmark = 0;
pmark = 0;
finish = false;
_local1 = 0;
while (_local1 < foreArray.length) {
forescape.removeChild(foreArray[_local1]);
_local1++;
};
_local2 = 0;
while (_local2 < elementArray.length) {
element.removeChild(elementArray[_local2]);
_local2++;
};
_local3 = 0;
while (_local3 < foregroundArray.length) {
foreground.removeChild(foregroundArray[_local3]);
_local3++;
};
foreArray.splice(0);
elementArray.splice(0);
foregroundArray.splice(0);
landscape.removeChild(skyscape);
landscape.removeChild(backscape);
landscape.removeChild(midscape);
landscape.removeChild(nearscape);
landscape.removeChild(forescape);
scope.removeChild(groundscape);
scope.removeChild(landscape);
scope.removeChild(element);
scope.removeChild(foreground);
}
}
}//package
Section 106
//sidewalk (sidewalk)
package {
import flash.display.*;
public class sidewalk extends MovieClip {
private var linePoints:Array;
private var scope:Object;
private var lines:Sprite;
public function sidewalk(_arg1){
linePoints = new Array();
lines = new Sprite();
super();
scope = _arg1;
addChild(lines);
lines.graphics.lineStyle(1, 0x999999);
setLines();
}
private function drawLine(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = ((scope.pp.x + 100) - _arg1);
_local3 = (scope.pp.y - (y + 35));
_local4 = Math.atan2(_local3, _local2);
_local5 = (-35 * (1 / Math.tan(_local4)));
lines.graphics.moveTo(_arg1, 35);
lines.graphics.lineTo((_arg1 + _local5), 0);
}
public function process(){
var _local1:*;
var _local2:*;
lines.graphics.clear();
lines.graphics.lineStyle(1, 0x999999);
_local1 = (scope.vx * (((y + 35) - scope.pp.y) / scope.pp.y));
if ((linePoints[0] - _local1) < 0){
linePoints.shift();
linePoints.push((linePoints[(linePoints.length - 1)] + 100));
};
_local2 = 0;
while (_local2 < linePoints.length) {
linePoints[_local2] = (linePoints[_local2] - _local1);
drawLine(linePoints[_local2]);
_local2++;
};
}
private function setLines(){
var _local1:*;
_local1 = 0;
while (_local1 <= 900) {
linePoints.push(_local1);
drawLine(_local1);
_local1 = (_local1 + 100);
};
}
}
}//package
Section 107
//skate_bail1 (skate_bail1)
package {
import flash.media.*;
public dynamic class skate_bail1 extends Sound {
}
}//package
Section 108
//skate_bail2 (skate_bail2)
package {
import flash.media.*;
public dynamic class skate_bail2 extends Sound {
}
}//package
Section 109
//skate_clack (skate_clack)
package {
import flash.media.*;
public dynamic class skate_clack extends Sound {
}
}//package
Section 110
//skate_finishCheer (skate_finishCheer)
package {
import flash.media.*;
public dynamic class skate_finishCheer extends Sound {
}
}//package
Section 111
//skate_roll (skate_roll)
package {
import flash.media.*;
public dynamic class skate_roll extends Sound {
}
}//package
Section 112
//skate_softland (skate_softland)
package {
import flash.media.*;
public dynamic class skate_softland extends Sound {
}
}//package
Section 113
//skate_softland2 (skate_softland2)
package {
import flash.media.*;
public dynamic class skate_softland2 extends Sound {
}
}//package
Section 114
//skateEngine (skateEngine)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import assets.screens.*;
import flash.net.*;
import flash.system.*;
public class skateEngine extends MovieClip {
public var pp:Point;
public var accl:Number;// = 1
public var course:Number;// = 1
private var keyLT:Boolean;// = false
public var topspd:Number;// = 20
public var c1lock:Boolean;// = false
public var scope:Object;
public var gravity:Number;// = 1
public var screen:Sprite;
public var swHighScoreObject;
public var scene:Object;
public var stats;
public var decl:Number;// = 0.5
public var vx:Number;// = 0
public var vy:Number;// = 0
public var indyInit:Boolean;// = false
public var c4lock:Boolean;// = true
private var keyRT:Boolean;// = false
public var player:Object;
public var hub:Loader;
public var friction:Number;// = 0.1
private var keySH:Boolean;// = false
private var keySP:Boolean;// = false
public var medic1:MovieClip;
public var sound:Object;
private var keyDN:Boolean;// = false
private var keyUP:Boolean;// = false
public var ollieInit:Boolean;// = false
public var c3lock:Boolean;// = true
public var methodInit:Boolean;// = false
public var HSLOAD_ID:Number;// = 0
public var key1:Boolean;// = false
public var key2:Boolean;// = false
public var key3:Boolean;// = false
public var key4:Boolean;// = false
public var key5:Boolean;// = false
public var c2lock:Boolean;// = true
public function skateEngine(){
key1 = false;
key2 = false;
key3 = false;
key4 = false;
key5 = false;
keyUP = false;
keyLT = false;
keyDN = false;
keyRT = false;
keySP = false;
keySH = false;
pp = new Point(350, 200);
course = 1;
c1lock = false;
c2lock = true;
c3lock = true;
c4lock = true;
vx = 0;
vy = 0;
gravity = 1;
friction = 0.1;
accl = 1;
decl = 0.5;
topspd = 20;
screen = new Sprite();
stats = new screen_stats(this);
ollieInit = false;
methodInit = false;
indyInit = false;
hub = new Loader();
swHighScoreObject = new Object();
HSLOAD_ID = 0;
super();
scope = this;
scene = new sceneEngine(scope);
sound = new soundEngine(scope);
player = new playerEngine(scope);
player.setPlayer();
sound.startSound("bg", 0, 9999, 0.5, 0);
stats.resetStats();
setScreen(0);
}
private function loadHub(){
var _local1:*;
var _local2:URLRequest;
Security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
swHighScoreObject = {showTab:"submit", gameId:null, gameTitle:null, screenWidth:700, screenHeight:400, scoreDescriptor:"points", numPlayers:1, player1Score:0};
swHighScoreObject.gameId = "streetskater";
swHighScoreObject.gameTitle = "StreetSkater";
swHighScoreObject.player1Score = stats.score;
_local1 = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
_local2 = new URLRequest(_local1);
hub.load(_local2);
addChild(hub);
}
public function foreSwap(){
swapChildren(player.skater, scene.foreground);
}
public function gameReset(){
var _local1:DisplayObject;
var _local2:uint;
stats.resetStats();
scene.resetScene();
_local2 = 0;
while (_local2 < this.numChildren) {
_local1 = this.getChildAt(_local2);
if ((this.getChildAt(_local2) is DisplayObjectContainer)){
this.removeChild(_local1);
};
_local2++;
};
setScreen(0);
}
public function playAgain(){
hub.unload();
removeChild(hub);
trace("done");
}
private function keyRelease(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 65:
key1 = false;
break;
case 83:
key2 = false;
break;
case 68:
key3 = false;
break;
case 70:
key4 = false;
break;
case 71:
key5 = false;
break;
case 38:
keyUP = false;
break;
case 37:
keyLT = false;
break;
case 39:
keyRT = false;
break;
case 40:
keyDN = false;
break;
case 32:
keySP = false;
break;
case 16:
keySH = false;
break;
};
}
public function gameContinue(){
var _local1:DisplayObject;
var _local2:uint;
scene.resetScene();
if (scope[(("c" + (course + 1)) + "lock")]){
scope[(("c" + (course + 1)) + "lock")] = false;
};
trace(((course + ":") + scope[(("c" + (course + 1)) + "lock")]));
_local2 = 0;
while (_local2 < this.numChildren) {
_local1 = this.getChildAt(_local2);
if ((this.getChildAt(_local2) is DisplayObjectContainer)){
this.removeChild(_local1);
};
_local2++;
};
setScreen(2);
}
public function levelComplete(){
control(false);
sound.stopSound("roll");
stats.courseCompleteMenu(true);
}
private function activate(_arg1:Event){
if (stats.action){
if (player.action){
process_keys();
};
scene.process();
player.process();
stats.process();
};
}
private function mouseControl(_arg1:Event){
stage.focus = this;
}
public function setCourse(){
removeChild(screen);
scene.setScene();
addChild(player.shad);
addChild(player.skater);
addChild(player.skaterFX);
player.setPlayer();
player.resetCharacter();
ollieInit = false;
methodInit = false;
indyInit = false;
addChild(scene.foreground);
addChild(stats);
control(true);
}
public function gameComplete(){
control(false);
sound.stopSound("roll");
stats.clearTrickFX(true);
player.tscore = stats.score;
stats.initTrickFX("gameover");
medic1 = new ambulance();
medic1.x = 280;
medic1.y = 410;
addChildAt(medic1, (numChildren - 2));
}
public function submitScore(){
trace("submit click");
}
public function control(_arg1){
switch (_arg1){
case true:
stage.focus = this;
addEventListener(Event.ENTER_FRAME, activate);
addEventListener(KeyboardEvent.KEY_DOWN, keyCapture);
addEventListener(KeyboardEvent.KEY_UP, keyRelease);
addEventListener(MouseEvent.CLICK, mouseControl);
break;
case false:
removeEventListener(Event.ENTER_FRAME, activate);
removeEventListener(KeyboardEvent.KEY_DOWN, keyCapture);
removeEventListener(KeyboardEvent.KEY_UP, keyRelease);
removeEventListener(MouseEvent.CLICK, mouseControl);
break;
};
}
public function setScreen(_arg1){
if (screen.numChildren > 0){
screen.removeChildAt(0);
};
switch (_arg1){
case 0:
screen.addChild(new screen_splash(this));
break;
case 1:
screen.addChild(new screen_learn(this));
break;
case 2:
screen.addChild(new screen_select(this));
break;
case 3:
addChild(stats);
setCourse();
break;
};
addChild(screen);
}
private function process_keys(){
if (((keyRT) && ((player.smode == 0)))){
if ((vx + accl) < topspd){
vx = (vx + accl);
} else {
vx = topspd;
};
if (!player.pump){
stats.updateStamina(-10);
player.skater.gotoAndPlay("pump");
player.pump = true;
};
} else {
if (player.smode == 3){
if ((vx - (friction / 2)) > 0){
vx = (vx - (friction / 2));
} else {
vx = 0;
};
} else {
if ((vx - friction) > 0){
vx = (vx - friction);
} else {
vx = 0;
};
};
};
if (((keyLT) && ((player.smode == 0)))){
if ((vx - decl) > 0){
vx = (vx - decl);
} else {
vx = 0;
};
};
if (((((keyUP) && ((vx > 0)))) && ((player.smode == 0)))){
if (player.skater.y > 335){
player.skater.y--;
player.skater.rotation = -3;
} else {
player.skater.y = 335;
player.skater.rotation = 0;
};
};
if (((((keyDN) && ((vx > 0)))) && ((player.smode == 0)))){
if (player.skater.y < 365){
player.skater.y++;
player.skater.rotation = 8;
} else {
player.skater.y = 365;
player.skater.rotation = 0;
};
};
if (((!(keyUP)) && (!(keyDN)))){
player.skater.rotation = 0;
};
if (((((((keySP) && (player.contact))) && ((stats.stamina > 0.25)))) && (!(ollieInit)))){
ollieInit = true;
stats.updateStamina(-15);
player.skater.gotoAndPlay("ollie");
stats.clearTrickFX(true);
};
if (((((key3) && (player.contact))) && ((stats.stamina > 0.25)))){
sound.startSound("ollie", 0, 0, 0.25, 0);
sound.setVolume("roll", 0);
player.skater.gotoAndPlay("kickflip");
player.contact = false;
player.smode = 4;
vy = 7;
if (player.skater.y < player.base){
player.tscore = 100;
} else {
player.tscore = 50;
};
stats.initTrickFX("kickflip");
};
if (((((((key4) && (!(player.contact)))) && ((stats.stamina > 0.25)))) && (!(indyInit)))){
indyInit = true;
player.skater.gotoAndPlay("indy360");
sound.setVolume("roll", 0);
player.airTime = true;
player.smode = 5;
player.tscore = 1000;
stats.initTrickFX("indy360");
};
if (((((((key5) && (!(player.contact)))) && ((stats.stamina > 0.25)))) && (!(methodInit)))){
methodInit = true;
player.skater.gotoAndPlay("methodAir");
player.airTime = true;
player.smode = 6;
player.tscore = 250;
stats.initTrickFX("methodAir");
};
}
private function keyCapture(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 65:
key1 = true;
break;
case 83:
key2 = true;
break;
case 68:
key3 = true;
break;
case 70:
key4 = true;
break;
case 71:
key5 = true;
break;
case 38:
keyUP = true;
break;
case 37:
keyLT = true;
break;
case 39:
keyRT = true;
break;
case 40:
keyDN = true;
break;
case 32:
keySP = true;
break;
case 16:
keySH = true;
break;
};
}
}
}//package
Section 115
//skeleton (skeleton)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class skeleton extends MovieClip {
public var legL1:MovieClip;
public var legL2:MovieClip;
public var neck:MovieClip;
public var armR1:MovieClip;
public var armR2:MovieClip;
public var torso2:MovieClip;
public var torso1:MovieClip;
public var footR:MovieClip;
public var legR2:MovieClip;
public var handL:MovieClip;
public var armL1:MovieClip;
public var armL2:MovieClip;
public var handR:MovieClip;
public var legR1:MovieClip;
public var footL:MovieClip;
public var head:MovieClip;
public var board:MovieClip;
public function skeleton(){
addFrameScript(0, frame1, 17, frame18, 18, frame19, 19, frame20, 32, frame33, 37, frame38, 47, frame48, 50, frame51, 53, frame54, 60, frame61, 70, frame71, 80, frame81, 90, frame91, 103, frame104, 115, frame116, 120, frame121, 121, frame122, 128, frame129, 132, frame133, 135, frame136, 138, frame139, 142, frame143);
}
function frame143(){
gotoAndStop("stand");
}
function frame71(){
gotoAndPlay("grind_50-50");
}
function frame81(){
gotoAndPlay("grind_tail");
}
function frame91(){
gotoAndPlay("grind_nose");
}
function frame18(){
gotoAndStop("stand");
}
function frame1(){
stop();
MovieClip(this.parent).player.pump = false;
board.wheels.visible = true;
}
function frame19(){
MovieClip(this.parent).sound.startSound("ollie", 0, 0, 1, 0);
}
function frame104(){
gotoAndStop("stand");
}
function frame20(){
MovieClip(this.parent).sound.setVolume("roll", 0);
MovieClip(this.parent).vy = 10;
MovieClip(this.parent).player.contact = false;
MovieClip(this.parent).ollieInit = false;
if (MovieClip(this.parent).player.smode != 10){
MovieClip(this.parent).player.smode = 1;
};
}
function frame116(){
MovieClip(this.parent).player.airTime = false;
}
function frame38(){
if (MovieClip(this.parent).player.smode == 10){
gotoAndStop("winner");
} else {
gotoAndStop("stand");
};
}
function frame33(){
MovieClip(this.parent).sound.startSound("softland", 0, 0, 1, 0);
}
function frame48(){
MovieClip(this.parent).player.starFX(4, 10, 60, 0);
}
function frame129(){
board.wheels.visible = false;
}
function frame121(){
gotoAndStop("stand");
}
function frame51(){
MovieClip(this.parent).player.starFX(4, 10, 80, 0);
}
function frame139(){
gotoAndStop("stand");
}
function frame136(){
MovieClip(this.parent).player.airTime = false;
board.wheels.visible = true;
}
function frame122(){
stop();
board.wheels.visible = true;
}
function frame54(){
MovieClip(this.parent).player.starFX(4, 10, 100, 0);
}
function frame61(){
stop();
}
function frame133(){
if (MovieClip(this.parent).key5){
gotoAndPlay(130);
};
}
}
}//package
Section 116
//soundEngine (soundEngine)
package {
import flash.media.*;
public class soundEngine extends Sound {
public var rollSound:Sound;
public var bail1Sound:Sound;
public var soundON:Boolean;// = true
public var bail1Channel:SoundChannel;
public var softlandChannel:SoundChannel;
public var cheerSound:Sound;
public var ollieSound:Sound;
public var rollChannel:SoundChannel;
private var scope:Object;
public var bgSound:Sound;
public var cheerChannel:SoundChannel;
public var ollieChannel:SoundChannel;
public var softlandSound:Sound;
public var bgChannel:SoundChannel;
public function soundEngine(_arg1){
soundON = true;
bgSound = new bgMusic();
bgChannel = new SoundChannel();
rollSound = new skate_roll();
rollChannel = new SoundChannel();
ollieSound = new skate_clack();
ollieChannel = new SoundChannel();
softlandSound = new skate_softland2();
softlandChannel = new SoundChannel();
bail1Sound = new skate_bail2();
bail1Channel = new SoundChannel();
cheerSound = new skate_finishCheer();
cheerChannel = new SoundChannel();
super();
scope = _arg1;
}
public function setVolume(_arg1:String, _arg2:Number){
var _local3:*;
_local3 = this[(_arg1 + "Channel")].soundTransform;
_local3.volume = _arg2;
this[(_arg1 + "Channel")].soundTransform = _local3;
}
public function stopSound(_arg1:String){
this[(_arg1 + "Channel")].stop();
}
public function restartSounds(){
startSound("bg", 0, 9999, 0.5, 0);
startSound("roll", 0, 9999, 0, 0);
}
public function startSound(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
if (soundON){
this[(_arg1 + "Channel")] = this[(_arg1 + "Sound")].play(_arg2, _arg3, new SoundTransform(_arg4, _arg5));
};
}
public function stopSounds(){
SoundMixer.stopAll();
}
}
}//package
Section 117
//trickText (trickText)
package {
import flash.display.*;
import flash.text.*;
public dynamic class trickText extends MovieClip {
public var tscore_txt:TextField;
public function trickText(){
addFrameScript(0, frame1, 5, frame6, 10, frame11, 15, frame16, 20, frame21, 25, frame26, 30, frame31, 35, frame36, 40, frame41);
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame36(){
stop();
}
function frame31(){
stop();
}
function frame11(){
stop();
}
function frame41(){
stop();
}
function frame26(){
stop();
}
}
}//package