Section 1
//ScoreMixin (AbstractBase.ScoreMixin)
package AbstractBase {
import GameObject.*;
import Scenes.*;
import Templates.*;
public class ScoreMixin {
public var multiplier:int;// = 1
public var attachedScores:Object;
public var ms:MainScene;
public var scores:Array;
public function ScoreMixin(_arg1:MainScene){
scores = new Array();
attachedScores = new Object();
super();
ms = _arg1;
}
public function getScore(_arg1:GameObject, _arg2:int):Score{
var _local3:Score;
var _local4:String;
for each (_local3 in scores) {
if (_local3.attached == _arg1){
return (_local3);
};
};
_local4 = String(_arg2);
if (_arg2 == 0){
_local4 = "";
};
_local3 = Score.createScore(_local4, ms, _arg1.basex, (_arg1.basey - 20));
scores.push(_local3);
_local3.attached = _arg1;
return (_local3);
}
public function resetMultiplier():void{
multiplier = 1;
}
public function createAttachedScore(_arg1:GameObject, _arg2:int):void{
var _local4:GameObjectFilter;
if (((ms.inSuccess) || (ms.inFailure))){
return;
};
_arg2 = tformscore(_arg2);
var _local3:Score = getScore(_arg1, _arg2);
if (_local3.getScore() != _arg2){
_arg2 = (_arg2 + (_local3.getScore() / 10));
};
addToMainSceneScore(_arg2);
for each (_local4 in _local3.filters) {
if ((_local4 is GameObjectFilterFadeInOut)){
GameObjectFilterFadeInOut(_local4).ticks = 0;
};
};
_local3.basex = _arg1.basex;
_local3.basey = (_arg1.basey - 20);
_local3.increaseScore(_arg2);
}
public function bumpMultiplier():void{
multiplier++;
}
public function update():void{
var _local1:Score;
for each (_local1 in scores) {
_local1.basex = _local1.attached.basex;
_local1.basey = (_local1.attached.basey - 40);
};
}
public function tformscore(_arg1:int):int{
_arg1 = (_arg1 * multiplier);
return (_arg1);
}
public function addToMainSceneScore(_arg1:int):void{
ms.money = (ms.money * -1);
ms.score = (ms.score + _arg1);
ms.money = ((ms.money + _arg1) % 3571);
ms.money = (ms.money * -1);
}
public function createVisibleScore(_arg1:GameObject, _arg2:int, _arg3:String=null):void{
var _local5:Score;
if (((ms.inSuccess) || (ms.inFailure))){
return;
};
_arg2 = tformscore(_arg2);
addToMainSceneScore(_arg2);
var _local4:int = _arg1.basey;
if (_arg2 > 0){
_local5 = Score.createScore(String(_arg2), ms, _arg1.basex, _arg1.basey);
_local4 = (_local4 - 30);
};
if (_arg3){
Score.createScore(_arg3, ms, _arg1.basex, _local4);
};
}
}
}//package AbstractBase
Section 2
//GameSound (Audio.GameSound)
package Audio {
import flash.media.*;
import Tools.*;
import flash.utils.*;
public class GameSound {
public var alternates:Array;
public var lastPlayed:int;// = -10
public var eqVolume:Number;// = 1
public var sc:SoundChannel;
public var minDelay:int;// = 0
public var s:Sound;
public var embed:Class;
public var isMusic:Boolean;// = false
public static var allSounds:Array = new Array();
public static var globalSoundVolume:Number = 1;
public static var globalMusicVolume:Number = 1;
public function GameSound(_arg1:Class, _arg2:Number, _arg3:int=0){
embed = _arg1;
s = new embed();
eqVolume = _arg2;
minDelay = _arg3;
allSounds.push(this);
}
public function addAlternate(_arg1:GameSound):void{
if (!alternates){
alternates = new Array();
alternates.push(this);
};
alternates.push(_arg1);
}
public function play(_arg1:Boolean=false, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Boolean=false):GameSoundChannel{
var _local9:int;
var _local10:GameSoundChannel;
if ((getTimer() - lastPlayed) < minDelay){
return (new GameSoundChannel(null, null));
};
lastPlayed = getTimer();
if (((alternates) && (!(_arg5)))){
_local9 = Random.randInt(0, (alternates.length - 1));
return (alternates[_local9].play(_arg1, _arg2, _arg3, _arg4, true));
};
var _local6:Number = eqVolume;
if (isMusic){
_local6 = (_local6 * globalMusicVolume);
} else {
_local6 = (_local6 * globalSoundVolume);
};
var _local7:SoundTransform = new SoundTransform(_local6, _arg4);
if (_arg3){
_local7.volume = 0;
};
_arg2 = (_arg2 % s.length);
sc = null;
var _local8:Boolean;
while (sc == null) {
if (_arg1){
if (_arg2 == 0){
sc = s.play(_arg2, 99, _local7);
} else {
sc = s.play(_arg2, 0, _local7);
};
} else {
sc = s.play(_arg2, 0, _local7);
};
if (sc == null){
if (_local8){
return (new GameSoundChannel(null, null));
};
_local8 = true;
s = new embed();
};
};
if (sc){
_local10 = new GameSoundChannel(this, sc, _arg1, _arg3);
_local10._pan = _arg4;
return (_local10);
};
return (new GameSoundChannel(null, null));
}
public function playSpecific(_arg1:int):GameSoundChannel{
if (!alternates){
return (play());
};
return (alternates[_arg1].play(false, 0, 0, 0, true));
}
public static function forEmbed(_arg1:Class, _arg2:Number, _arg3:int=0):GameSound{
var _local5:GameSound;
var _local4:Sound = new (_arg1);
for each (_local5 in allSounds) {
if ((((_local5.s.bytesTotal == _local4.bytesTotal)) && ((_local5.s.length == _local4.length)))){
return (_local5);
};
};
return (new GameSound(_arg1, _arg2, _arg3));
}
public static function forEmbedArray(_arg1:Array, _arg2:Number, _arg3:int=0):GameSound{
var _local5:int;
if (!(_arg1[0] is Class)){
return (null);
};
var _local4:GameSound = forEmbed(_arg1[0], _arg2);
if (_local4){
_local5 = 1;
while (_local5 < _arg1.length) {
_local4.addAlternate(forEmbed(_arg1[_local5], _arg2, _arg3));
_local5++;
};
};
return (_local4);
}
}
}//package Audio
Section 3
//GameSoundChannel (Audio.GameSoundChannel)
package Audio {
import flash.events.*;
import GameObject.*;
import flash.media.*;
import Tools.*;
public class GameSoundChannel {
public var fadeIn:Number;// = 0
public var chan:SoundChannel;
public var fullVolumeSet:Boolean;// = false
public var fadeOutTime:Number;// = 0
public var _remove:Boolean;// = false
public var _pan:Number;
public var gs:GameSound;
public var _playing:Boolean;// = true
public var chanStart:Number;// = 0
public var currentVolume:Number;// = 1
public var fadeOut:Number;// = 0
public var tiedObject:GameObject;
public var looping:Boolean;// = false
public static var allChannels:Array = new Array();
public function GameSoundChannel(_arg1:GameSound, _arg2:SoundChannel, _arg3:Boolean=false, _arg4:Number=0){
if (_arg2){
chanStart = _arg2.position;
chan = _arg2;
} else {
_playing = false;
};
if (chan){
chan.addEventListener(Event.SOUND_COMPLETE, complete);
};
fadeIn = _arg4;
looping = _arg3;
gs = _arg1;
if (gs){
allChannels.push(this);
};
}
public function complete(_arg1:Event):void{
if (!chan){
return;
};
if (_playing == false){
return;
};
chan.removeEventListener(Event.SOUND_COMPLETE, complete);
chan.stop();
chanStart = (chanStart - chan.position);
fadeOutTime = (fadeOutTime - chan.position);
if (looping){
chan = gs.s.play(0, 0, new SoundTransform(vol(), pan()));
if (chan){
chan.addEventListener(Event.SOUND_COMPLETE, complete);
};
} else {
_playing = false;
_remove = true;
};
}
public function update():void{
var _local1:Number;
var _local2:Number;
var _local3:SoundTransform;
if (!chan){
return;
};
if (((!((fadeIn == 0))) || (!((fadeOut == 0))))){
if (((((chan.position - chanStart) < fadeIn)) || (!((fadeOut == 0))))){
_local1 = Interpolation.linearInterpolateLock(0, 1, Interpolation.fromTo((chan.position - chanStart), 0, fadeIn));
_local2 = 1;
if (fadeOut != 0){
_local2 = Interpolation.linearInterpolateLock(1, 0, Interpolation.fromTo(chan.position, fadeOutTime, (fadeOutTime + fadeOut)));
};
_local3 = new SoundTransform(((_local1 * _local2) * vol()), pan());
chan.soundTransform = _local3;
} else {
fullVolumeSet = true;
_local3 = new SoundTransform(vol(), pan());
chan.soundTransform = _local3;
};
} else {
_local3 = new SoundTransform(vol());
chan.soundTransform = _local3;
};
if (tiedObject){
if (tiedObject._removed){
stop();
};
};
if (fadeOut != 0){
if (chan.position > (fadeOutTime + fadeOut)){
stop();
};
};
}
public function tieTo(_arg1:GameObject):void{
tiedObject = _arg1;
}
public function stop(_arg1:Number=0):void{
if (!chan){
return;
};
if (_arg1 != 0){
fadeOutTime = chan.position;
fadeOut = _arg1;
return;
};
_playing = false;
chan.removeEventListener(Event.SOUND_COMPLETE, complete);
chan.stop();
_remove = true;
}
public function vol():Number{
var _local1:Number = (currentVolume * gs.eqVolume);
if (gs.isMusic){
_local1 = (_local1 * GameSound.globalMusicVolume);
} else {
_local1 = (_local1 * GameSound.globalSoundVolume);
};
return (_local1);
}
public function setVolume(_arg1:Number):void{
currentVolume = _arg1;
}
public function pan():Number{
return (_pan);
}
public function position():Number{
if (!chan){
return (0);
};
return (chan.position);
}
public function playing():Boolean{
if (fadeOut != 0){
return (false);
};
return (_playing);
}
public static function updateAll():void{
var gsc:GameSoundChannel;
allChannels = allChannels.filter(function (_arg1:GameSoundChannel, _arg2:int, _arg3:Array):Boolean{
return (!(_arg1._remove));
});
for each (gsc in allChannels) {
gsc.update();
};
}
}
}//package Audio
Section 4
//GameSoundScene (Audio.GameSoundScene)
package Audio {
import Tools.*;
import flash.utils.*;
public class GameSoundScene {
public var breakLoop:GameSound;
public var breakLoopChannel:GameSoundChannel;
public var permanentBreakCurrent:int;// = 0
public var volumeTarget:Number;// = 1
public var mainLoopChannel:GameSoundChannel;
public var mainLoopStopped:Number;// = 0
public var restartTime:Number;
public var permanentBreakTime:int;// = 0
public var permanentBreak:Boolean;// = false
public var currentVolume:Number;// = 1
public var sceneName:String;
public var deadBreak:Boolean;// = false
public var mainLoop:GameSound;
public static var allScenes:Array = new Array();
public function GameSoundScene(_arg1:String){
sceneName = _arg1;
allScenes.push(this);
}
public function update():void{
currentVolume = Interpolation.tendTowards(currentVolume, volumeTarget, 0.01);
if (mainLoopChannel){
if (mainLoopChannel.playing()){
if (currentVolume != volumeTarget){
mainLoopChannel.setVolume(currentVolume);
};
};
};
if (breakLoopChannel){
if (!breakLoopChannel.playing()){
breakLoopChannel.stop();
breakLoopChannel = null;
mainLoopChannel.stop();
mainLoopChannel = mainLoop.play(true, mainLoopStopped, 500);
mainLoopStopped = 0;
};
};
if (deadBreak){
if (getTimer() > restartTime){
deadBreak = false;
mainLoopChannel.stop();
mainLoopChannel = mainLoop.play(true, mainLoopStopped, 500);
mainLoopStopped = 0;
};
};
if (permanentBreak){
if (mainLoopChannel != null){
if (!mainLoopChannel.playing()){
permanentBreakCurrent++;
if (permanentBreakCurrent > permanentBreakTime){
permanentBreakCurrent = 0;
mainLoopChannel = mainLoop.play(false, 0, 500);
};
};
};
};
}
public function insertDeadBreak(_arg1:Number):void{
mainLoopStopped = mainLoopChannel.position();
mainLoopChannel.stop(2000);
deadBreak = true;
restartTime = (getTimer() + _arg1);
}
public function setPermanentBreak(_arg1:int):void{
permanentBreak = true;
permanentBreakTime = _arg1;
}
public function setBackgroundMusic(_arg1:GameSound, _arg2:int=500):void{
if (mainLoop){
if (mainLoop == _arg1){
return;
};
};
if (mainLoop){
if (mainLoopChannel){
mainLoopChannel.stop(_arg2);
};
};
mainLoop = _arg1;
_arg1.isMusic = true;
volumeTarget = 1;
mainLoopChannel = _arg1.play(!(permanentBreak), 0, _arg2);
}
public function queueBackgroundMusic(_arg1:GameSound):void{
mainLoop = _arg1;
}
public function insertBreak(_arg1:GameSound):void{
_arg1.isMusic = true;
mainLoopStopped = mainLoopChannel.position();
mainLoopChannel.stop(500);
breakLoop = _arg1;
breakLoopChannel = _arg1.play();
deadBreak = false;
}
public static function forName(_arg1:String):GameSoundScene{
var _local2:GameSoundScene;
for each (_local2 in allScenes) {
if (_local2.sceneName == _arg1){
return (_local2);
};
};
return (new GameSoundScene(_arg1));
}
public static function updateAll():void{
var _local1:GameSoundScene;
GameSoundChannel.updateAll();
for each (_local1 in allScenes) {
_local1.update();
};
}
}
}//package Audio
Section 5
//b2BoxDef (Engine.Collision.Shapes.b2BoxDef)
package Engine.Collision.Shapes {
import Engine.Common.Math.*;
public class b2BoxDef extends b2ShapeDef {
public var extents:b2Vec2;
public function b2BoxDef(){
type = b2Shape.e_boxShape;
extents = new b2Vec2(1, 1);
}
}
}//package Engine.Collision.Shapes
Section 6
//b2CircleDef (Engine.Collision.Shapes.b2CircleDef)
package Engine.Collision.Shapes {
public class b2CircleDef extends b2ShapeDef {
public var radius:Number;
public function b2CircleDef(){
type = b2Shape.e_circleShape;
radius = 1;
}
}
}//package Engine.Collision.Shapes
Section 7
//b2CircleShape (Engine.Collision.Shapes.b2CircleShape)
package Engine.Collision.Shapes {
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
public class b2CircleShape extends b2Shape {
public var m_localPosition:b2Vec2;
public var m_radius:Number;
public function b2CircleShape(_arg1:b2ShapeDef, _arg2:b2Body, _arg3:b2Vec2){
m_localPosition = new b2Vec2();
super(_arg1, _arg2);
var _local4:b2CircleDef = (_arg1 as b2CircleDef);
m_localPosition.Set((_arg1.localPosition.x - _arg3.x), (_arg1.localPosition.y - _arg3.y));
m_type = b2Shape.e_circleShape;
m_radius = _local4.radius;
m_R.SetM(m_body.m_R);
m_position.SetV(m_localPosition);
m_position.MulM(m_R);
m_position.Add(m_body.m_position);
var _local5:b2AABB = new b2AABB();
_local5.minVertex.Set((m_position.x - m_radius), (m_position.y - m_radius));
_local5.maxVertex.Set((m_position.x + m_radius), (m_position.y + m_radius));
var _local6:b2BroadPhase = m_body.m_world.m_broadPhase;
if (_local6.InRange(_local5)){
m_proxyId = _local6.CreateProxy(_local5, _arg1.groupIndex, _arg1.categoryBits, _arg1.maskBits, this);
} else {
m_proxyId = b2Pair.b2_nullProxy;
};
if (m_proxyId == b2Pair.b2_nullProxy){
m_body.Freeze();
};
}
override public function Synchronize(_arg1:b2Vec2, _arg2:b2Mat22){
m_R.SetM(_arg2);
m_position.SetV(m_localPosition);
m_position.MulM(_arg2);
m_position.Add(_arg1);
if (m_proxyId == b2Pair.b2_nullProxy){
return;
};
var _local3:b2AABB = new b2AABB();
_local3.minVertex.Set((m_position.x - m_radius), (m_position.y - m_radius));
_local3.maxVertex.Set((m_position.x + m_radius), (m_position.y + m_radius));
var _local4:b2BroadPhase = m_body.m_world.m_broadPhase;
if (_local4.InRange(_local3)){
_local4.MoveProxy(m_proxyId, _local3);
} else {
_local4.DestroyProxy(m_proxyId);
m_proxyId = b2Pair.b2_nullProxy;
m_body.Freeze();
};
}
override public function ResetProxy(_arg1:b2BroadPhase){
if (m_proxyId == b2Pair.b2_nullProxy){
return;
};
var _local2:b2Proxy = _arg1.GetProxy(m_proxyId);
var _local3:int = _local2.groupIndex;
var _local4:uint = _local2.categoryBits;
var _local5:uint = _local2.maskBits;
_arg1.DestroyProxy(m_proxyId);
_local2 = null;
var _local6:b2AABB = new b2AABB();
_local6.minVertex.Set((m_position.x - m_radius), (m_position.y - m_radius));
_local6.maxVertex.Set((m_position.x + m_radius), (m_position.y + m_radius));
if (_arg1.InRange(_local6)){
m_proxyId = _arg1.CreateProxy(_local6, _local3, _local4, _local5, this);
} else {
m_proxyId = b2Pair.b2_nullProxy;
};
if (m_proxyId == b2Pair.b2_nullProxy){
m_body.Freeze();
};
}
override public function TestPoint(_arg1:b2Vec2):Boolean{
var _local2:b2Vec2 = new b2Vec2();
_local2.SetV(_arg1);
_local2.Subtract(m_position);
return ((b2Math.b2Dot(_local2, _local2) <= (m_radius * m_radius)));
}
override public function Support(_arg1:Number, _arg2:Number):b2Vec2{
var _local3:Number = Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2)));
_arg1 = (_arg1 / _local3);
_arg2 = (_arg2 / _local3);
return (new b2Vec2((m_position.x + (m_radius * _arg1)), (m_position.y + (m_radius * _arg2))));
}
}
}//package Engine.Collision.Shapes
Section 8
//b2MassData (Engine.Collision.Shapes.b2MassData)
package Engine.Collision.Shapes {
import Engine.Common.Math.*;
public class b2MassData {
public var mass:Number;// = 0
public var center:b2Vec2;
public var I:Number;// = 0
public function b2MassData(){
center = new b2Vec2(0, 0);
super();
}
}
}//package Engine.Collision.Shapes
Section 9
//b2PolyDef (Engine.Collision.Shapes.b2PolyDef)
package Engine.Collision.Shapes {
import Engine.Common.Math.*;
import Engine.Common.*;
public class b2PolyDef extends b2ShapeDef {
public var vertices:Array;
public var vertexCount:int;
public function b2PolyDef(){
vertices = new Array(b2Settings.b2_maxPolyVertices);
super();
type = b2Shape.e_polyShape;
vertexCount = 0;
var _local1:int;
while (_local1 < b2Settings.b2_maxPolyVertices) {
vertices[_local1] = new b2Vec2();
_local1++;
};
}
}
}//package Engine.Collision.Shapes
Section 10
//b2PolyShape (Engine.Collision.Shapes.b2PolyShape)
package Engine.Collision.Shapes {
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2PolyShape extends b2Shape {
public var m_nextVert:Array;
public var m_vertices:Array;
public var m_localOBB:b2OBB;
public var m_vertexCount:int;
public var m_normals:Array;
public function b2PolyShape(_arg1:b2ShapeDef, _arg2:b2Body, _arg3:b2Vec2){
var _local4:int;
var _local5:b2Vec2;
var _local6:b2Vec2;
var _local8:b2Mat22;
var _local9:Number;
var _local10:Number;
var _local17:b2BoxDef;
var _local18:b2PolyDef;
var _local19:b2Vec2;
m_localOBB = new b2OBB();
super(_arg1, _arg2);
var _local7:b2AABB = new b2AABB();
m_vertices = new Array(b2Settings.b2_maxPolyVertices);
m_nextVert = new Array();
m_normals = new Array(b2Settings.b2_maxPolyVertices);
m_type = b2Shape.e_polyShape;
_local8 = new b2Mat22(_arg1.localRotation);
_local9 = (_arg1.localPosition.x - _arg3.x);
_local10 = (_arg1.localPosition.y - _arg3.y);
if (_arg1.type == b2Shape.e_boxShape){
_local17 = (_arg1 as b2BoxDef);
m_vertexCount = 4;
_local5 = _local17.extents;
m_vertices[0] = new b2Vec2(_local5.x, _local5.y);
_local6 = m_vertices[0];
_local6.MulM(_local8);
_local6.x = (_local6.x + _local9);
_local6.y = (_local6.y + _local10);
m_vertices[1] = new b2Vec2(-(_local5.x), _local5.y);
_local6 = m_vertices[1];
_local6.MulM(_local8);
_local6.x = (_local6.x + _local9);
_local6.y = (_local6.y + _local10);
m_vertices[2] = new b2Vec2(-(_local5.x), -(_local5.y));
_local6 = m_vertices[2];
_local6.MulM(_local8);
_local6.x = (_local6.x + _local9);
_local6.y = (_local6.y + _local10);
m_vertices[3] = new b2Vec2(_local5.x, -(_local5.y));
_local6 = m_vertices[3];
_local6.MulM(_local8);
_local6.x = (_local6.x + _local9);
_local6.y = (_local6.y + _local10);
} else {
_local18 = (_arg1 as b2PolyDef);
m_vertexCount = _local18.vertexCount;
_local4 = 0;
while (_local4 < m_vertexCount) {
m_vertices[_local4] = _local18.vertices[_local4].Copy();
_local6 = m_vertices[_local4];
_local6.MulM(_local8);
_local6.x = (_local6.x + _local9);
_local6.y = (_local6.y + _local10);
_local4++;
};
};
var _local11:b2Vec2 = new b2Vec2(Number.MAX_VALUE, Number.MAX_VALUE);
var _local12:b2Vec2 = new b2Vec2(-(Number.MAX_VALUE), -(Number.MAX_VALUE));
_local4 = 0;
while (_local4 < m_vertexCount) {
_local11 = b2Math.b2MinV(_local11, m_vertices[_local4]);
_local12 = b2Math.b2MaxV(_local12, m_vertices[_local4]);
_local4++;
};
m_localOBB.R.SetIdentity();
m_localOBB.center.Set(((_local11.x + _local12.x) * 0.5), ((_local11.y + _local12.y) * 0.5));
m_localOBB.extents.Set(((_local12.x - _local11.x) * 0.5), ((_local12.y - _local11.y) * 0.5));
_local4 = 0;
while (_local4 < m_vertexCount) {
m_nextVert[_local4] = (((_local4 + 1) < m_vertexCount)) ? (_local4 + 1) : 0;
_local19 = m_vertices[m_nextVert[_local4]].Copy();
_local19.Subtract(m_vertices[_local4]);
m_normals[_local4] = new b2Vec2();
_local6 = m_normals[_local4];
_local6.SetV(_local19);
_local6.CrossVF(1);
_local6.Normalize();
_local4++;
};
_local4 = 0;
while (_local4 < m_vertexCount) {
_local4++;
};
m_R = m_body.m_R.Copy();
m_position.SetV(m_body.m_position);
var _local13:b2Mat22 = b2Math.b2MulMM(m_R, m_localOBB.R);
var _local14:b2Mat22 = b2Math.b2AbsM(_local13);
_local5 = b2Math.b2MulMV(_local14, m_localOBB.extents);
var _local15:b2Vec2 = b2Math.b2MulMV(m_R, m_localOBB.center);
_local15.Add(m_position);
_local7.minVertex.SetV(_local15);
_local7.minVertex.Subtract(_local5);
_local7.maxVertex.SetV(_local15);
_local7.maxVertex.Add(_local5);
var _local16:b2BroadPhase = m_body.m_world.m_broadPhase;
if (_local16.InRange(_local7)){
m_proxyId = b2Pair.b2_nullProxy;
} else {
m_proxyId = b2Pair.b2_nullProxy;
};
if (m_proxyId == b2Pair.b2_nullProxy){
m_body.Freeze();
};
}
override public function Support(_arg1:Number, _arg2:Number):b2Vec2{
var _local8:Number;
var _local3:Number = ((_arg1 * m_R.col1.x) + (_arg2 * m_R.col1.y));
var _local4:Number = ((_arg1 * m_R.col2.x) + (_arg2 * m_R.col2.y));
var _local5:int;
var _local6:Number = ((m_vertices[0].x * _local3) + (m_vertices[0].y * _local4));
var _local7 = 1;
while (_local7 < m_vertexCount) {
_local8 = ((m_vertices[_local7].x * _local3) + (m_vertices[_local7].y * _local4));
if (_local8 > _local6){
_local5 = _local7;
_local6 = _local8;
};
_local7++;
};
return (new b2Vec2((m_position.x + ((m_R.col1.x * m_vertices[_local5].x) + (m_R.col2.x * m_vertices[_local5].y))), (m_position.y + ((m_R.col1.y * m_vertices[_local5].x) + (m_R.col2.y * m_vertices[_local5].y)))));
}
override public function Synchronize(_arg1:b2Vec2, _arg2:b2Mat22){
m_R.SetM(_arg2);
m_position.SetV(_arg1);
if (m_proxyId == b2Pair.b2_nullProxy){
return;
};
var _local3:b2Mat22 = b2Math.b2MulMM(m_R, m_localOBB.R);
var _local4:b2Mat22 = b2Math.b2AbsM(_local3);
var _local5:b2Vec2 = b2Math.b2MulMV(_local4, m_localOBB.extents);
var _local6:b2Vec2 = b2Math.b2MulMV(m_R, m_localOBB.center);
_local6.Add(m_position);
var _local7:b2AABB = new b2AABB();
_local7.minVertex.SetV(_local6);
_local7.minVertex.Subtract(_local5);
_local7.maxVertex.SetV(_local6);
_local7.maxVertex.Add(_local5);
var _local8:b2BroadPhase = m_body.m_world.m_broadPhase;
if (_local8.InRange(_local7)){
_local8.MoveProxy(m_proxyId, _local7);
} else {
_local8.DestroyProxy(m_proxyId);
m_proxyId = b2Pair.b2_nullProxy;
m_body.Freeze();
};
}
override public function TestPoint(_arg1:b2Vec2):Boolean{
var _local4:b2Vec2;
var _local5:Number;
var _local2:b2Vec2 = new b2Vec2();
_local2.SetV(_arg1);
_local2.Subtract(m_position);
_local2.MulTM(m_R);
var _local3:int;
while (_local3 < m_vertexCount) {
_local4 = new b2Vec2();
_local4.SetV(_local2);
_local4.Subtract(m_vertices[_local3]);
_local5 = b2Math.b2Dot(m_normals[_local3], _local4);
if (_local5 > 0){
return (false);
};
_local3++;
};
return (true);
}
override public function ResetProxy(_arg1:b2BroadPhase){
if (m_proxyId == b2Pair.b2_nullProxy){
return;
};
var _local2:b2Proxy = _arg1.GetProxy(m_proxyId);
var _local3:int = _local2.groupIndex;
var _local4:uint = _local2.categoryBits;
var _local5:uint = _local2.maskBits;
_arg1.DestroyProxy(m_proxyId);
_local2 = null;
var _local6:b2Mat22 = b2Math.b2MulMM(m_R, m_localOBB.R);
var _local7:b2Mat22 = b2Math.b2AbsM(_local6);
var _local8:b2Vec2 = b2Math.b2MulMV(_local7, m_localOBB.extents);
var _local9:b2Vec2 = b2Math.b2MulMV(m_R, m_localOBB.center);
_local9.Add(m_position);
var _local10:b2AABB = new b2AABB();
_local10.minVertex.SetV(_local9);
_local10.minVertex.Subtract(_local8);
_local10.maxVertex.SetV(_local9);
_local10.maxVertex.Add(_local8);
if (_arg1.InRange(_local10)){
m_proxyId = _arg1.CreateProxy(_local10, _local3, _local4, _local5, this);
} else {
m_proxyId = b2Pair.b2_nullProxy;
};
if (m_proxyId == b2Pair.b2_nullProxy){
m_body.Freeze();
};
}
}
}//package Engine.Collision.Shapes
Section 11
//b2Shape (Engine.Collision.Shapes.b2Shape)
package Engine.Collision.Shapes {
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
public class b2Shape {
public var m_R:b2Mat22;
public var m_next:b2Shape;
public var m_friction:Number;
public var m_type:int;
public var m_proxyId:int;
public var m_userData;// = null
public var m_body:b2Body;
public var m_restitution:Number;
public var m_position:b2Vec2;
public static const e_boxShape:int = 1;
public static const e_unknownShape:int = -1;
public static const e_shapeTypeCount:int = 4;
public static const e_circleShape:int = 0;
public static const e_meshShape:int = 3;
public static const e_polyShape:int = 2;
public function b2Shape(_arg1:b2ShapeDef, _arg2:b2Body){
m_position = new b2Vec2();
m_R = new b2Mat22();
super();
m_userData = _arg1.userData;
m_friction = _arg1.friction;
m_restitution = _arg1.restitution;
m_body = _arg2;
m_proxyId = b2Pair.b2_nullProxy;
}
public function ResetProxy(_arg1:b2BroadPhase){
}
public function GetNext():b2Shape{
return (m_next);
}
public function GetType():int{
return (m_type);
}
public function GetUserData(){
return (m_userData);
}
public function Support(_arg1:Number, _arg2:Number):b2Vec2{
return (null);
}
public function Synchronize(_arg1:b2Vec2, _arg2:b2Mat22){
}
public function GetRotationMatrix():b2Mat22{
return (m_R);
}
public function GetBody():b2Body{
return (m_body);
}
public function TestPoint(_arg1:b2Vec2):Boolean{
return (false);
}
public function GetPosition():b2Vec2{
return (m_position);
}
public static function Destroy(_arg1:b2Shape){
if (_arg1.m_proxyId != b2Pair.b2_nullProxy){
_arg1.m_body.m_world.m_broadPhase.DestroyProxy(_arg1.m_proxyId);
};
}
public static function PolyMass(_arg1:b2MassData, _arg2:Array, _arg3:int, _arg4:Number){
var _local11:b2Vec2;
var _local12:b2Vec2;
var _local13:b2Vec2;
var _local14:b2Vec2;
var _local15:b2Vec2;
var _local16:Number;
var _local17:Number;
var _local18:b2Vec2;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local5:b2Vec2 = new b2Vec2();
_local5.SetZero();
var _local6:Number = 0;
var _local7:Number = 0;
var _local8:b2Vec2 = new b2Vec2(0, 0);
var _local9:Number = (1 / 3);
var _local10:int;
while (_local10 < _arg3) {
_local11 = _local8;
_local12 = _arg2[_local10];
_local13 = (((_local10 + 1) < _arg3)) ? _arg2[(_local10 + 1)] : _arg2[0];
_local14 = b2Math.SubtractVV(_local12, _local11);
_local15 = b2Math.SubtractVV(_local13, _local11);
_local16 = b2Math.b2CrossVV(_local14, _local15);
_local17 = (0.5 * _local16);
_local6 = (_local6 + _local17);
_local18 = new b2Vec2();
_local18.SetV(_local11);
_local18.Add(_local12);
_local18.Add(_local13);
_local18.Multiply((_local9 * _local17));
_local5.Add(_local18);
_local19 = _local11.x;
_local20 = _local11.y;
_local21 = _local14.x;
_local22 = _local14.y;
_local23 = _local15.x;
_local24 = _local15.y;
_local25 = ((_local9 * ((0.25 * (((_local21 * _local21) + (_local23 * _local21)) + (_local23 * _local23))) + ((_local19 * _local21) + (_local19 * _local23)))) + ((0.5 * _local19) * _local19));
_local26 = ((_local9 * ((0.25 * (((_local22 * _local22) + (_local24 * _local22)) + (_local24 * _local24))) + ((_local20 * _local22) + (_local20 * _local24)))) + ((0.5 * _local20) * _local20));
_local7 = (_local7 + (_local16 * (_local25 + _local26)));
_local10++;
};
_arg1.mass = (_arg4 * _local6);
_local5.Multiply((1 / _local6));
_arg1.center = _local5;
_local7 = (_arg4 * (_local7 - (_local6 * b2Math.b2Dot(_local5, _local5))));
_arg1.I = _local7;
}
public static function Create(_arg1:b2ShapeDef, _arg2:b2Body, _arg3:b2Vec2):b2Shape{
switch (_arg1.type){
case e_circleShape:
return (new b2CircleShape(_arg1, _arg2, _arg3));
case e_boxShape:
case e_polyShape:
return (new b2PolyShape(_arg1, _arg2, _arg3));
};
return (null);
}
}
}//package Engine.Collision.Shapes
Section 12
//b2ShapeDef (Engine.Collision.Shapes.b2ShapeDef)
package Engine.Collision.Shapes {
import Engine.Common.Math.*;
import Engine.Common.*;
public class b2ShapeDef {
public var type:int;
public var groupIndex:int;
public var localPosition:b2Vec2;
public var categoryBits:int;
public var localRotation:Number;
public var density:Number;
public var restitution:Number;
public var userData;// = null
public var maskBits:int;
public var friction:Number;
public function b2ShapeDef(){
type = b2Shape.e_unknownShape;
userData = null;
localPosition = new b2Vec2(0, 0);
localRotation = 0;
friction = 0.2;
restitution = 0;
density = 0;
categoryBits = 1;
maskBits = 0xFFFF;
groupIndex = 0;
}
public function ComputeMass(_arg1:b2MassData){
var _local2:b2CircleDef;
var _local3:b2BoxDef;
var _local4:b2PolyDef;
_arg1.center = new b2Vec2(0, 0);
if (density == 0){
_arg1.mass = 0;
_arg1.center.Set(0, 0);
_arg1.I = 0;
};
switch (type){
case b2Shape.e_circleShape:
_local2 = (this as b2CircleDef);
_arg1.mass = (((density * b2Settings.b2_pi) * _local2.radius) * _local2.radius);
_arg1.center.Set(0, 0);
_arg1.I = (((0.5 * _arg1.mass) * _local2.radius) * _local2.radius);
break;
case b2Shape.e_boxShape:
_local3 = (this as b2BoxDef);
_arg1.mass = (((4 * density) * _local3.extents.x) * _local3.extents.y);
_arg1.center.Set(0, 0);
_arg1.I = ((_arg1.mass / 3) * b2Math.b2Dot(_local3.extents, _local3.extents));
break;
case b2Shape.e_polyShape:
_local4 = (this as b2PolyDef);
b2Shape.PolyMass(_arg1, _local4.vertices, _local4.vertexCount, density);
break;
default:
_arg1.mass = 0;
_arg1.center.Set(0, 0);
_arg1.I = 0;
break;
};
}
}
}//package Engine.Collision.Shapes
Section 13
//b2AABB (Engine.Collision.b2AABB)
package Engine.Collision {
import Engine.Common.Math.*;
public class b2AABB {
public var minVertex:b2Vec2;
public var maxVertex:b2Vec2;
public function b2AABB(){
minVertex = new b2Vec2();
maxVertex = new b2Vec2();
super();
}
public function IsValid():Boolean{
var _local1:Number = maxVertex.x;
var _local2:Number = maxVertex.y;
_local1 = maxVertex.x;
_local2 = maxVertex.y;
_local1 = (_local1 - minVertex.x);
_local2 = (_local2 - minVertex.y);
var _local3:Boolean = (((_local1 >= 0)) && ((_local2 >= 0)));
_local3 = ((((_local3) && (minVertex.IsValid()))) && (maxVertex.IsValid()));
return (_local3);
}
}
}//package Engine.Collision
Section 14
//b2Bound (Engine.Collision.b2Bound)
package Engine.Collision {
public class b2Bound {
public var value:uint;
public var proxyId:uint;
public var stabbingCount:uint;
public function Swap(_arg1:b2Bound){
var _local2:uint = value;
var _local3:uint = proxyId;
var _local4:uint = stabbingCount;
value = _arg1.value;
proxyId = _arg1.proxyId;
stabbingCount = _arg1.stabbingCount;
_arg1.value = _local2;
_arg1.proxyId = _local3;
_arg1.stabbingCount = _local4;
}
public function IsLower():Boolean{
return (((value & 1) == 0));
}
public function IsUpper():Boolean{
return (((value & 1) == 1));
}
}
}//package Engine.Collision
Section 15
//b2BroadPhase (Engine.Collision.b2BroadPhase)
package Engine.Collision {
import Engine.Common.Math.*;
import Engine.Common.*;
public class b2BroadPhase {
public var m_bounds:Array;
public var m_quantizationFactor:b2Vec2;
public var m_pairBuffer:Array;
public var m_worldAABB:b2AABB;
public var m_freeProxy:uint;
public var m_pairCallback:b2PairCallback;
public var m_proxyCount:int;
public var m_queryResultCount:int;
public var m_proxyPool:Array;
public var m_pairManager:b2PairManager;
public var m_pairBufferCount:int;
public var m_timeStamp:uint;
public var m_queryResults:Array;
public static const b2_nullEdge:uint = 0xFFFF;
public static const b2_invalid:uint = 0xFFFF;
public static var s_validate:Boolean = false;
public function b2BroadPhase(_arg1:b2AABB, _arg2:b2PairCallback){
var _local3:int;
var _local6:b2Proxy;
var _local7:int;
m_pairManager = new b2PairManager();
m_proxyPool = new Array(b2Settings.b2_maxPairs);
m_pairBuffer = new Array(b2Settings.b2_maxPairs);
m_bounds = new Array((2 * b2Settings.b2_maxProxies));
m_queryResults = new Array(b2Settings.b2_maxProxies);
m_quantizationFactor = new b2Vec2();
super();
m_worldAABB = _arg1;
m_pairCallback = _arg2;
m_proxyCount = 0;
_local3 = 0;
while (_local3 < b2Settings.b2_maxProxies) {
m_queryResults[_local3] = 0;
_local3++;
};
m_bounds = new Array(2);
_local3 = 0;
while (_local3 < 2) {
m_bounds[_local3] = new Array((2 * b2Settings.b2_maxProxies));
_local7 = 0;
while (_local7 < (2 * b2Settings.b2_maxProxies)) {
m_bounds[_local3][_local7] = new b2Bound();
_local7++;
};
_local3++;
};
_local3 = 0;
while (_local3 < b2Settings.b2_maxPairs) {
m_pairBuffer[_local3] = new b2BufferedPair();
_local3++;
};
var _local4:Number = _arg1.maxVertex.x;
var _local5:Number = _arg1.maxVertex.y;
_local4 = (_local4 - _arg1.minVertex.x);
_local5 = (_local5 - _arg1.minVertex.y);
m_quantizationFactor.x = (b2Settings.USHRT_MAX / _local4);
m_quantizationFactor.y = (b2Settings.USHRT_MAX / _local5);
_local3 = 0;
while (_local3 < (b2Settings.b2_maxProxies - 1)) {
_local6 = new b2Proxy();
m_proxyPool[_local3] = _local6;
_local6.SetNext((_local3 + 1));
_local6.timeStamp = 0;
_local6.overlapCount = b2_invalid;
_local6.userData = null;
_local3++;
};
_local6 = new b2Proxy();
m_proxyPool[(b2Settings.b2_maxProxies - 1)] = _local6;
_local6.SetNext(b2Pair.b2_nullProxy);
_local6.timeStamp = 0;
_local6.overlapCount = b2_invalid;
_local6.userData = null;
m_freeProxy = 0;
m_pairBufferCount = 0;
m_timeStamp = 1;
m_queryResultCount = 0;
}
public function ValidatePairs(){
var _local3:b2Pair;
var _local4:b2Proxy;
var _local5:b2Proxy;
var _local1:uint = m_pairManager.GetCount();
m_pairBuffer.sortOn(["proxyId1", "proxyId2"], Array.NUMERIC);
var _local2:int;
while (_local2 < m_pairBufferCount) {
if (_local2 > 0){
};
_local3 = m_pairManager.Find(m_pairBuffer[_local2].proxyId1, m_pairBuffer[_local2].proxyId2);
_local4 = m_proxyPool[_local3.proxyId1];
_local5 = m_proxyPool[_local3.proxyId2];
_local2++;
};
}
public function GetProxy(_arg1:int):b2Proxy{
if ((((_arg1 == b2Pair.b2_nullProxy)) || ((m_proxyPool[_arg1].IsValid() == false)))){
return (null);
};
return (m_proxyPool[_arg1]);
}
public function QueryAABB(_arg1:b2AABB, _arg2, _arg3:int):int{
var _local6:uint;
var _local7:uint;
var _local12:b2Proxy;
var _local4:Array = new Array();
var _local5:Array = new Array();
ComputeBounds(_local4, _local5, _arg1);
var _local8:Array = [_local6];
var _local9:Array = [_local7];
Query(_local8, _local9, _local4[0], _local5[0], m_bounds[0], (2 * m_proxyCount), 0);
Query(_local8, _local9, _local4[1], _local5[1], m_bounds[1], (2 * m_proxyCount), 1);
var _local10:int;
var _local11:int;
while ((((_local11 < m_queryResultCount)) && ((_local10 < _arg3)))) {
_local12 = m_proxyPool[m_queryResults[_local11]];
_arg2[_local11] = _local12.userData;
_local11++;
_local10++;
};
m_queryResultCount = 0;
IncrementTimeStamp();
return (_local10);
}
private function RemoveBufferedPair(_arg1:uint, _arg2:uint){
var _local3:b2Pair = m_pairManager.Find(_arg1, _arg2);
if (_local3 == null){
return;
};
if (_local3.IsBuffered() == false){
if (m_pairBufferCount < b2Settings.b2_maxPairs){
_local3.SetBuffered();
m_pairBuffer[m_pairBufferCount].proxyId1 = _local3.proxyId1;
m_pairBuffer[m_pairBufferCount].proxyId2 = _local3.proxyId2;
m_pairBufferCount++;
};
};
_local3.SetRemoved();
}
public function Flush(){
var _local1:int;
var _local3:b2Pair;
var _local4:b2Proxy;
var _local5:b2Proxy;
var _local2:int;
_local1 = 0;
while (_local1 < m_pairBufferCount) {
_local3 = m_pairManager.Find(m_pairBuffer[_local1].proxyId1, m_pairBuffer[_local1].proxyId2);
_local4 = m_proxyPool[_local3.proxyId1];
_local5 = m_proxyPool[_local3.proxyId2];
if (_local3.IsRemoved()){
if (_local3.IsReceived()){
m_pairCallback.PairRemoved(_local4.userData, _local5.userData, _local3.userData);
};
m_pairBuffer[_local2].proxyId1 = _local3.proxyId1;
m_pairBuffer[_local2].proxyId2 = _local3.proxyId2;
_local2++;
} else {
_local3.ClearBuffered();
if (_local3.IsReceived() == false){
_local3.userData = m_pairCallback.PairAdded(_local4.userData, _local5.userData);
_local3.SetReceived();
};
};
_local1++;
};
_local1 = 0;
while (_local1 < _local2) {
m_pairManager.Remove(m_pairBuffer[_local1].proxyId1, m_pairBuffer[_local1].proxyId2);
_local1++;
};
m_pairBufferCount = 0;
}
private function IncrementTimeStamp(){
var _local1:uint;
if (m_timeStamp == b2Settings.USHRT_MAX){
_local1 = 0;
while (_local1 < b2Settings.b2_maxProxies) {
m_proxyPool[_local1].timeStamp = 0;
_local1++;
};
m_timeStamp = 1;
} else {
m_timeStamp++;
};
}
private function Query(_arg1:Array, _arg2:Array, _arg3:uint, _arg4:uint, _arg5:Array, _arg6:uint, _arg7:int){
var _local11:int;
var _local12:int;
var _local13:b2Proxy;
var _local8:uint = BinarySearch(_arg5, _arg6, _arg3);
var _local9:uint = BinarySearch(_arg5, _arg6, _arg4);
var _local10:uint = _local8;
while (_local10 < _local9) {
if (_arg5[_local10].IsLower()){
IncrementOverlapCount(_arg5[_local10].proxyId);
};
_local10++;
};
if (_local8 > 0){
_local11 = (_local8 - 1);
_local12 = _arg5[_local11].stabbingCount;
while (_local12) {
if (_arg5[_local11].IsLower()){
_local13 = m_proxyPool[_arg5[_local11].proxyId];
if (_local8 <= _local13.upperBounds[_arg7]){
IncrementOverlapCount(_arg5[_local11].proxyId);
_local12--;
};
};
_local11--;
};
};
_arg1[0] = _local8;
_arg2[0] = _local9;
}
private function ComputeBounds(_arg1:Array, _arg2:Array, _arg3:b2AABB){
var _local4:Number = _arg3.minVertex.x;
var _local5:Number = _arg3.minVertex.y;
_local4 = b2Math.b2Min(_local4, m_worldAABB.maxVertex.x);
_local5 = b2Math.b2Min(_local5, m_worldAABB.maxVertex.y);
_local4 = b2Math.b2Max(_local4, m_worldAABB.minVertex.x);
_local5 = b2Math.b2Max(_local5, m_worldAABB.minVertex.y);
var _local6:Number = _arg3.maxVertex.x;
var _local7:Number = _arg3.maxVertex.y;
_local6 = b2Math.b2Min(_local6, m_worldAABB.maxVertex.x);
_local7 = b2Math.b2Min(_local7, m_worldAABB.maxVertex.y);
_local6 = b2Math.b2Max(_local6, m_worldAABB.minVertex.x);
_local7 = b2Math.b2Max(_local7, m_worldAABB.minVertex.y);
_arg1[0] = (uint((m_quantizationFactor.x * (_local4 - m_worldAABB.minVertex.x))) & (b2Settings.USHRT_MAX - 1));
_arg2[0] = ((uint((m_quantizationFactor.x * (_local6 - m_worldAABB.minVertex.x))) & 0xFFFF) | 1);
_arg1[1] = (uint((m_quantizationFactor.y * (_local5 - m_worldAABB.minVertex.y))) & (b2Settings.USHRT_MAX - 1));
_arg2[1] = ((uint((m_quantizationFactor.y * (_local7 - m_worldAABB.minVertex.y))) & 0xFFFF) | 1);
}
public function ShouldCollide(_arg1:int, _arg2:int):Boolean{
var _local3:b2Proxy = m_proxyPool[_arg1];
var _local4:b2Proxy = m_proxyPool[_arg2];
if ((((_local3.groupIndex == _local4.groupIndex)) && (!((_local3.groupIndex == 0))))){
return ((_local3.groupIndex > 0));
};
var _local5:Boolean = ((!(((_local3.maskBits & _local4.categoryBits) == 0))) && (!(((_local3.categoryBits & _local4.maskBits) == 0))));
return (_local5);
}
public function CreateProxy(_arg1:b2AABB, _arg2:int, _arg3:int, _arg4:int, _arg5):uint{
var _local6:uint;
var _local7:b2Proxy;
var _local14:Array;
var _local15:uint;
var _local16:uint;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:int;
var _local21:int;
var _local22:b2Bound;
var _local23:b2Bound;
var _local24:int;
var _local25:b2Proxy;
var _local26:b2Pair;
if (m_freeProxy == b2Pair.b2_nullProxy){
return (b2Pair.b2_nullProxy);
};
Flush();
var _local8:uint = m_freeProxy;
_local7 = m_proxyPool[_local8];
m_freeProxy = _local7.GetNext();
_local7.overlapCount = 0;
_local7.groupIndex = _arg2;
_local7.categoryBits = _arg3;
_local7.maskBits = _arg4;
_local7.userData = _arg5;
var _local9:uint = (2 * m_proxyCount);
var _local10:Array = new Array();
var _local11:Array = new Array();
ComputeBounds(_local10, _local11, _arg1);
var _local12:int;
while (_local12 < 2) {
_local14 = m_bounds[_local12];
_local17 = [_local15];
_local18 = [_local16];
Query(_local17, _local18, _local10[_local12], _local11[_local12], _local14, _local9, _local12);
_local15 = _local17[0];
_local16 = _local18[0];
_local19 = new Array();
_local21 = (_local9 - _local16);
_local20 = 0;
while (_local20 < _local21) {
_local19[_local20] = new b2Bound();
_local22 = _local19[_local20];
_local23 = _local14[(_local16 + _local20)];
_local22.value = _local23.value;
_local22.proxyId = _local23.proxyId;
_local22.stabbingCount = _local23.stabbingCount;
_local20++;
};
_local21 = _local19.length;
_local24 = (_local16 + 2);
_local20 = 0;
while (_local20 < _local21) {
_local23 = _local19[_local20];
_local22 = _local14[(_local24 + _local20)];
_local22.value = _local23.value;
_local22.proxyId = _local23.proxyId;
_local22.stabbingCount = _local23.stabbingCount;
_local20++;
};
_local19 = new Array();
_local21 = (_local16 - _local15);
_local20 = 0;
while (_local20 < _local21) {
_local19[_local20] = new b2Bound();
_local22 = _local19[_local20];
_local23 = _local14[(_local15 + _local20)];
_local22.value = _local23.value;
_local22.proxyId = _local23.proxyId;
_local22.stabbingCount = _local23.stabbingCount;
_local20++;
};
_local21 = _local19.length;
_local24 = (_local15 + 1);
_local20 = 0;
while (_local20 < _local21) {
_local23 = _local19[_local20];
_local22 = _local14[(_local24 + _local20)];
_local22.value = _local23.value;
_local22.proxyId = _local23.proxyId;
_local22.stabbingCount = _local23.stabbingCount;
_local20++;
};
_local16++;
_local14[_local15].value = _local10[_local12];
_local14[_local15].proxyId = _local8;
_local14[_local16].value = _local11[_local12];
_local14[_local16].proxyId = _local8;
_local14[_local15].stabbingCount = ((_local15 == 0)) ? 0 : _local14[(_local15 - 1)].stabbingCount;
_local14[_local16].stabbingCount = _local14[(_local16 - 1)].stabbingCount;
_local6 = _local15;
while (_local6 < _local16) {
_local14[_local6].stabbingCount++;
_local6++;
};
_local6 = _local15;
while (_local6 < (_local9 + 2)) {
_local25 = m_proxyPool[_local14[_local6].proxyId];
if (_local14[_local6].IsLower()){
_local25.lowerBounds[_local12] = _local6;
} else {
_local25.upperBounds[_local12] = _local6;
};
_local6++;
};
_local12++;
};
m_proxyCount++;
var _local13:int;
while (_local13 < m_queryResultCount) {
if (ShouldCollide(_local8, m_queryResults[_local13]) == false){
} else {
_local26 = m_pairManager.Add(_local8, m_queryResults[_local13]);
if (_local26 == null){
} else {
_local26.userData = m_pairCallback.PairAdded(_local7.userData, m_proxyPool[m_queryResults[_local13]].userData);
_local26.SetReceived();
};
};
_local13++;
};
m_queryResultCount = 0;
IncrementTimeStamp();
return (_local8);
}
public function DestroyProxy(_arg1:uint){
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:Array;
var _local12:int;
var _local13:int;
var _local14:b2Bound;
var _local15:b2Bound;
var _local16:int;
var _local17:uint;
var _local18:int;
var _local19:b2Proxy;
var _local20:b2Proxy;
var _local21:*;
if (_arg1 == b2Pair.b2_nullProxy){
return;
};
Flush();
var _local2:b2Proxy = m_proxyPool[_arg1];
var _local3:uint = (2 * m_proxyCount);
var _local4:int;
while (_local4 < 2) {
_local6 = m_bounds[_local4];
_local7 = _local2.lowerBounds[_local4];
_local8 = _local2.upperBounds[_local4];
_local9 = _local6[_local7].value;
_local10 = _local6[_local8].value;
_local11 = new Array();
_local13 = ((_local8 - _local7) - 1);
_local12 = 0;
while (_local12 < _local13) {
_local11[_local12] = new b2Bound();
_local14 = _local11[_local12];
_local15 = _local6[((_local7 + 1) + _local12)];
_local14.value = _local15.value;
_local14.proxyId = _local15.proxyId;
_local14.stabbingCount = _local15.stabbingCount;
_local12++;
};
_local13 = _local11.length;
_local16 = _local7;
_local12 = 0;
while (_local12 < _local13) {
_local15 = _local11[_local12];
_local14 = _local6[(_local16 + _local12)];
_local14.value = _local15.value;
_local14.proxyId = _local15.proxyId;
_local14.stabbingCount = _local15.stabbingCount;
_local12++;
};
_local11 = new Array();
_local13 = ((_local3 - _local8) - 1);
_local12 = 0;
while (_local12 < _local13) {
_local11[_local12] = new b2Bound();
_local14 = _local11[_local12];
_local15 = _local6[((_local8 + 1) + _local12)];
_local14.value = _local15.value;
_local14.proxyId = _local15.proxyId;
_local14.stabbingCount = _local15.stabbingCount;
_local12++;
};
_local13 = _local11.length;
_local16 = (_local8 - 1);
_local12 = 0;
while (_local12 < _local13) {
_local15 = _local11[_local12];
_local14 = _local6[(_local16 + _local12)];
_local14.value = _local15.value;
_local14.proxyId = _local15.proxyId;
_local14.stabbingCount = _local15.stabbingCount;
_local12++;
};
_local13 = (_local3 - 2);
_local17 = _local7;
while (_local17 < _local13) {
_local19 = m_proxyPool[_local6[_local17].proxyId];
if (_local6[_local17].IsLower()){
_local19.lowerBounds[_local4] = _local17;
} else {
_local19.upperBounds[_local4] = _local17;
};
_local17++;
};
_local13 = (_local8 - 1);
_local18 = _local7;
while (_local18 < _local13) {
_local6[_local18].stabbingCount--;
_local18++;
};
Query(new Array(), new Array(), _local9, _local10, _local6, (_local3 - 2), _local4);
_local4++;
};
var _local5:int;
while (_local5 < m_queryResultCount) {
_local20 = m_proxyPool[m_queryResults[_local5]];
_local21 = m_pairManager.Remove(_arg1, m_queryResults[_local5]);
m_pairCallback.PairRemoved(_local2.userData, _local20.userData, _local21);
_local5++;
};
m_queryResultCount = 0;
IncrementTimeStamp();
_local2.userData = null;
_local2.overlapCount = b2_invalid;
_local2.SetNext(m_freeProxy);
m_freeProxy = _arg1;
m_proxyCount--;
}
private function TestOverlap(_arg1:b2Proxy, _arg2:b2Proxy):Boolean{
var _local4:Array;
var _local3:int;
while (_local3 < 2) {
_local4 = m_bounds[_local3];
if (_local4[_arg1.lowerBounds[_local3]].value > _local4[_arg2.upperBounds[_local3]].value){
return (false);
};
if (_local4[_arg1.upperBounds[_local3]].value < _local4[_arg2.lowerBounds[_local3]].value){
return (false);
};
_local3++;
};
return (true);
}
public function Validate(){
var _local1:b2Pair;
var _local2:b2Proxy;
var _local3:b2Proxy;
var _local4:Boolean;
var _local10:b2Bound;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:b2Bound;
var _local15:uint;
var _local16:b2Proxy;
var _local17:b2Bound;
var _local5:int;
while (_local5 < 2) {
_local10 = m_bounds[_local5];
_local11 = (2 * m_proxyCount);
_local12 = 0;
_local13 = 0;
while (_local13 < _local11) {
_local14 = _local10[_local13];
if (_local13 > 0){
_local17 = _local10[(_local13 - 1)];
};
_local15 = _local14.proxyId;
_local16 = m_proxyPool[_local14.proxyId];
if (_local14.IsLower() == true){
_local12++;
} else {
_local12--;
};
_local13++;
};
_local5++;
};
var _local6:Array = m_pairManager.GetPairs();
var _local7:uint = m_pairManager.GetCount();
m_pairBuffer.sortOn(["proxyId1", "proxyId2"], Array.NUMERIC);
var _local8:int;
while (_local8 < m_pairBufferCount) {
if (_local8 > 0){
};
_local1 = m_pairManager.Find(m_pairBuffer[_local8].proxyId1, m_pairBuffer[_local8].proxyId2);
_local2 = m_proxyPool[_local1.proxyId1];
_local3 = m_proxyPool[_local1.proxyId2];
_local4 = TestOverlap(_local2, _local3);
if (_local1.IsRemoved() == true){
};
_local8++;
};
var _local9:int;
while (_local9 < _local7) {
_local1 = _local6[_local9];
_local2 = m_proxyPool[_local1.proxyId1];
_local3 = m_proxyPool[_local1.proxyId2];
_local4 = TestOverlap(_local2, _local3);
if (_local1.IsBuffered()){
if (_local1.IsRemoved() == true){
};
};
_local9++;
};
}
private function IncrementOverlapCount(_arg1:uint){
var _local2:b2Proxy = m_proxyPool[_arg1];
if (_local2.timeStamp < m_timeStamp){
_local2.timeStamp = m_timeStamp;
_local2.overlapCount = 1;
} else {
_local2.overlapCount = 2;
m_queryResults[m_queryResultCount] = _arg1;
m_queryResultCount++;
};
}
public function InRange(_arg1:b2AABB):Boolean{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = _arg1.minVertex.x;
_local3 = _arg1.minVertex.y;
_local2 = (_local2 - m_worldAABB.maxVertex.x);
_local3 = (_local3 - m_worldAABB.maxVertex.y);
_local4 = m_worldAABB.minVertex.x;
_local5 = m_worldAABB.minVertex.y;
_local4 = (_local4 - _arg1.maxVertex.x);
_local5 = (_local5 - _arg1.maxVertex.y);
_local2 = b2Math.b2Max(_local2, _local4);
_local3 = b2Math.b2Max(_local3, _local5);
return ((b2Math.b2Max(_local2, _local3) < 0));
}
private function AddBufferedPair(_arg1:uint, _arg2:uint){
if (ShouldCollide(_arg1, _arg2) == false){
return;
};
var _local3:b2Pair = m_pairManager.Add(_arg1, _arg2);
if (_local3 == null){
return;
};
if (_local3.IsBuffered() == false){
if (m_pairBufferCount < b2Settings.b2_maxPairs){
_local3.SetBuffered();
m_pairBuffer[m_pairBufferCount].proxyId1 = _local3.proxyId1;
m_pairBuffer[m_pairBufferCount].proxyId2 = _local3.proxyId2;
m_pairBufferCount++;
};
};
_local3.ClearRemoved();
}
public function MoveProxy(_arg1:uint, _arg2:b2AABB){
var _local3:uint;
var _local4:b2Bound;
var _local5:b2Bound;
var _local6:b2Bound;
var _local7:uint;
var _local8:b2Proxy;
var _local14:Array;
var _local15:uint;
var _local16:uint;
var _local17:uint;
var _local18:uint;
var _local19:int;
var _local20:int;
var _local21:uint;
var _local22:b2Proxy;
if ((((_arg1 == b2Pair.b2_nullProxy)) || ((b2Settings.b2_maxProxies <= _arg1)))){
return;
};
if (_arg2.IsValid() == false){
return;
};
var _local9:uint = (2 * m_proxyCount);
var _local10:b2Proxy = m_proxyPool[_arg1];
var _local11:Array = new Array();
var _local12:Array = new Array();
ComputeBounds(_local11, _local12, _arg2);
var _local13:uint;
while (_local13 < 2) {
_local14 = m_bounds[_local13];
_local15 = _local10.lowerBounds[_local13];
_local16 = _local10.upperBounds[_local13];
_local17 = _local11[_local13];
_local18 = _local12[_local13];
_local19 = (_local17 - _local14[_local15].value);
_local20 = (_local18 - _local14[_local16].value);
_local14[_local15].value = _local17;
_local14[_local16].value = _local18;
if (_local19 < 0){
_local3 = _local15;
while ((((_local3 > 0)) && ((_local17 < _local14[(_local3 - 1)].value)))) {
_local4 = _local14[_local3];
_local5 = _local14[(_local3 - 1)];
_local21 = _local5.proxyId;
_local22 = m_proxyPool[_local5.proxyId];
_local5.stabbingCount++;
if (_local5.IsUpper() == true){
if (TestOverlap(_local10, _local22)){
AddBufferedPair(_arg1, _local21);
};
var _local23 = _local22.upperBounds;
var _local24 = _local13;
var _local25 = (_local23[_local24] + 1);
_local23[_local24] = _local25;
_local4.stabbingCount++;
} else {
_local23 = _local22.lowerBounds;
_local24 = _local13;
_local25 = (_local23[_local24] + 1);
_local23[_local24] = _local25;
_local4.stabbingCount--;
};
_local23 = _local10.lowerBounds;
_local24 = _local13;
_local25 = (_local23[_local24] - 1);
_local23[_local24] = _local25;
_local4.Swap(_local5);
_local3--;
};
};
if (_local20 > 0){
_local3 = _local16;
while ((((_local3 < (_local9 - 1))) && ((_local14[(_local3 + 1)].value <= _local18)))) {
_local4 = _local14[_local3];
_local6 = _local14[(_local3 + 1)];
_local7 = _local6.proxyId;
_local8 = m_proxyPool[_local7];
_local6.stabbingCount++;
if (_local6.IsLower() == true){
if (TestOverlap(_local10, _local8)){
AddBufferedPair(_arg1, _local7);
};
_local23 = _local8.lowerBounds;
_local24 = _local13;
_local25 = (_local23[_local24] - 1);
_local23[_local24] = _local25;
_local4.stabbingCount++;
} else {
_local23 = _local8.upperBounds;
_local24 = _local13;
_local25 = (_local23[_local24] - 1);
_local23[_local24] = _local25;
_local4.stabbingCount--;
};
_local23 = _local10.upperBounds;
_local24 = _local13;
_local25 = (_local23[_local24] + 1);
_local23[_local24] = _local25;
_local4.Swap(_local6);
_local3++;
};
};
if (_local19 > 0){
_local3 = _local15;
while ((((_local3 < (_local9 - 1))) && ((_local14[(_local3 + 1)].value <= _local17)))) {
_local4 = _local14[_local3];
_local6 = _local14[(_local3 + 1)];
_local7 = _local6.proxyId;
_local8 = m_proxyPool[_local7];
_local6.stabbingCount--;
if (_local6.IsUpper()){
RemoveBufferedPair(_arg1, _local7);
_local23 = _local8.upperBounds;
_local24 = _local13;
_local25 = (_local23[_local24] - 1);
_local23[_local24] = _local25;
_local4.stabbingCount--;
} else {
_local23 = _local8.lowerBounds;
_local24 = _local13;
_local25 = (_local23[_local24] - 1);
_local23[_local24] = _local25;
_local4.stabbingCount++;
};
_local23 = _local10.lowerBounds;
_local24 = _local13;
_local25 = (_local23[_local24] + 1);
_local23[_local24] = _local25;
_local4.Swap(_local6);
_local3++;
};
};
if (_local20 < 0){
_local3 = _local16;
while ((((_local3 > 0)) && ((_local18 < _local14[(_local3 - 1)].value)))) {
_local4 = _local14[_local3];
_local5 = _local14[(_local3 - 1)];
_local21 = _local5.proxyId;
_local22 = m_proxyPool[_local21];
_local5.stabbingCount--;
if (_local5.IsLower() == true){
RemoveBufferedPair(_arg1, _local21);
_local23 = _local22.lowerBounds;
_local24 = _local13;
_local25 = (_local23[_local24] + 1);
_local23[_local24] = _local25;
_local4.stabbingCount--;
} else {
_local23 = _local22.upperBounds;
_local24 = _local13;
_local25 = (_local23[_local24] + 1);
_local23[_local24] = _local25;
_local4.stabbingCount++;
};
_local23 = _local10.upperBounds;
_local24 = _local13;
_local25 = (_local23[_local24] - 1);
_local23[_local24] = _local25;
_local4.Swap(_local5);
_local3--;
};
};
_local13++;
};
}
public static function BinarySearch(_arg1:Array, _arg2:int, _arg3:uint):uint{
var _local6:int;
var _local4:int;
var _local5:int = (_arg2 - 1);
while (_local4 <= _local5) {
_local6 = ((_local4 + _local5) / 2);
if (_arg1[_local6].value > _arg3){
_local5 = (_local6 - 1);
} else {
if (_arg1[_local6].value < _arg3){
_local4 = (_local6 + 1);
} else {
return (uint(_local6));
};
};
};
return (uint(_local4));
}
public static function Equals(_arg1:b2BufferedPair, _arg2:b2BufferedPair):Boolean{
if ((((_arg1.proxyId1 == _arg2.proxyId1)) && ((_arg1.proxyId2 == _arg2.proxyId2)))){
return (true);
};
return (false);
}
public static function LessThanBP(_arg1:b2BufferedPair, _arg2:b2BufferedPair):Boolean{
if (_arg1.proxyId1 < _arg2.proxyId1){
return (true);
};
if (_arg1.proxyId1 == _arg2.proxyId1){
return ((_arg1.proxyId2 < _arg2.proxyId2));
};
return (false);
}
}
}//package Engine.Collision
Section 16
//b2BufferedPair (Engine.Collision.b2BufferedPair)
package Engine.Collision {
public class b2BufferedPair {
public var proxyId1:uint;
public var proxyId2:uint;
}
}//package Engine.Collision
Section 17
//b2Collision (Engine.Collision.b2Collision)
package Engine.Collision {
import Engine.Collision.Shapes.*;
import Engine.Common.Math.*;
import Engine.Common.*;
public class b2Collision {
public static const b2_nullFeature:uint = 0xFF;
public static var d:b2Vec2 = new b2Vec2();
private static var b2CollidePolyTempVec:b2Vec2 = new b2Vec2();
public static var dLocal1:b2Vec2 = new b2Vec2();
public static var v1:b2Vec2 = new b2Vec2();
public static var v2:b2Vec2 = new b2Vec2();
public static function EdgeSeparation(_arg1:b2PolyShape, _arg2:int, _arg3:b2PolyShape):Number{
var _local5:Array;
var _local8:int;
var _local14:Number;
var _local23:b2Vec2;
var _local24:Number;
var _local4:int = _arg1.m_vertexCount;
_local5 = _arg1.m_vertices;
var _local6:int = _arg3.m_vertexCount;
var _local7:Array = _arg3.m_vertices;
_local8 = _arg2;
var _local9:int = (((_arg2 + 1) == _local4)) ? 0 : (_arg2 + 1);
var _local10:Number = (_local5[_local9].x - _local5[_local8].x);
var _local11:Number = (_local5[_local9].y - _local5[_local8].y);
var _local12:Number = _local10;
_local10 = _local11;
_local11 = -(_local12);
var _local13:Number = (1 / Math.sqrt(((_local10 * _local10) + (_local11 * _local11))));
_local10 = (_local10 * _local13);
_local11 = (_local11 * _local13);
_local14 = _local10;
var _local15:Number = _local11;
_local12 = _local14;
var _local16:b2Mat22 = _arg1.m_R;
_local14 = ((_local16.col1.x * _local12) + (_local16.col2.x * _local15));
_local15 = ((_local16.col1.y * _local12) + (_local16.col2.y * _local15));
var _local17:Number = _local14;
var _local18:Number = _local15;
_local16 = _arg3.m_R;
_local12 = ((_local17 * _local16.col1.x) + (_local18 * _local16.col1.y));
_local18 = ((_local17 * _local16.col2.x) + (_local18 * _local16.col2.y));
_local17 = _local12;
var _local19:int;
var _local20:Number = Number.MAX_VALUE;
var _local21:int;
while (_local21 < _local6) {
_local23 = _local7[_local21];
_local24 = ((_local23.x * _local17) + (_local23.y * _local18));
if (_local24 < _local20){
_local20 = _local24;
_local19 = _local21;
};
_local21++;
};
v1.x = 0;
v1.y = 0;
v1.SetV(_local5[_local8]);
v1.MulM(_arg1.m_R);
v1.Add(_arg1.m_position);
v2.x = 0;
v2.y = 0;
v2.SetV(_local7[_local19]);
v2.MulM(_arg3.m_R);
v2.Add(_arg3.m_position);
v2.Subtract(v1);
var _local22:Number = ((v2.x * _local14) + (v2.y * _local15));
return (_local22);
}
public static function b2TestOverlap(_arg1:b2AABB, _arg2:b2AABB):Boolean{
var _local3:b2Vec2 = _arg2.minVertex;
var _local4:b2Vec2 = _arg1.maxVertex;
var _local5:Number = (_local3.x - _local4.x);
var _local6:Number = (_local3.y - _local4.y);
_local3 = _arg1.minVertex;
_local4 = _arg2.maxVertex;
var _local7:Number = (_local3.x - _local4.x);
var _local8:Number = (_local3.y - _local4.y);
if ((((_local5 > 0)) || ((_local6 > 0)))){
return (false);
};
if ((((_local7 > 0)) || ((_local8 > 0)))){
return (false);
};
return (true);
}
public static function b2CollidePolyAndCircle(_arg1:b2Manifold, _arg2:b2PolyShape, _arg3:b2CircleShape){
var _local4:b2ContactPoint;
var _local5:Number;
var _local6:Number;
var _local11:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:b2Vec2;
_arg1.pointCount = 0;
var _local7:Number = (_arg3.m_position.x - _arg2.m_position.x);
var _local8:Number = (_arg3.m_position.y - _arg2.m_position.y);
var _local9:b2Mat22 = _arg2.m_R;
var _local10:Number = ((_local7 * _local9.col1.x) + (_local8 * _local9.col1.y));
_local8 = ((_local7 * _local9.col2.x) + (_local8 * _local9.col2.y));
_local7 = _local10;
var _local12:int;
var _local13:Number = -(Number.MAX_VALUE);
var _local14:Number = _arg3.m_radius;
var _local15:int;
while (_local15 < _arg2.m_vertexCount) {
_local24 = ((_arg2.m_normals[_local15].x * (_local7 - _arg2.m_vertices[_local15].x)) + (_arg2.m_normals[_local15].y * (_local8 - _arg2.m_vertices[_local15].y)));
if (_local24 > _local14){
return;
};
if (_local24 > _local13){
_local13 = _local24;
_local12 = _local15;
};
_local15++;
};
if (_local13 < Number.MIN_VALUE){
_arg1.pointCount = 1;
_local25 = _arg2.m_normals[_local12];
_arg1.normal.x = ((_local9.col1.x * _local25.x) + (_local9.col2.x * _local25.y));
_arg1.normal.y = ((_local9.col1.y * _local25.x) + (_local9.col2.y * _local25.y));
_local4 = _arg1.points[0];
_local4.id.features.incidentEdge = _local12;
_local4.id.features.incidentVertex = b2_nullFeature;
_local4.id.features.referenceFace = b2_nullFeature;
_local4.id.features.flip = 0;
_local4.position.x = (_arg3.m_position.x - (_local14 * _arg1.normal.x));
_local4.position.y = (_arg3.m_position.y - (_local14 * _arg1.normal.y));
_local4.separation = (_local13 - _local14);
return;
};
var _local16:int = _local12;
var _local17:int = _arg2.m_nextVert[_local16];
var _local18:Number = (_arg2.m_vertices[_local17].x - _arg2.m_vertices[_local16].x);
var _local19:Number = (_arg2.m_vertices[_local17].y - _arg2.m_vertices[_local16].y);
var _local20:Number = Math.sqrt(((_local18 * _local18) + (_local19 * _local19)));
_local18 = (_local18 / _local20);
_local19 = (_local19 / _local20);
if (_local20 < Number.MIN_VALUE){
_local5 = (_local7 - _arg2.m_vertices[_local16].x);
_local6 = (_local8 - _arg2.m_vertices[_local16].y);
_local11 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
_local5 = (_local5 / _local11);
_local6 = (_local6 / _local11);
if (_local11 > _local14){
return;
};
_arg1.pointCount = 1;
_arg1.normal.Set(((_local9.col1.x * _local5) + (_local9.col2.x * _local6)), ((_local9.col1.y * _local5) + (_local9.col2.y * _local6)));
_local4 = _arg1.points[0];
_local4.id.features.incidentEdge = b2_nullFeature;
_local4.id.features.incidentVertex = _local16;
_local4.id.features.referenceFace = b2_nullFeature;
_local4.id.features.flip = 0;
_local4.position.x = (_arg3.m_position.x - (_local14 * _arg1.normal.x));
_local4.position.y = (_arg3.m_position.y - (_local14 * _arg1.normal.y));
_local4.separation = (_local11 - _local14);
return;
};
var _local21:Number = (((_local7 - _arg2.m_vertices[_local16].x) * _local18) + ((_local8 - _arg2.m_vertices[_local16].y) * _local19));
_local4 = _arg1.points[0];
_local4.id.features.incidentEdge = b2_nullFeature;
_local4.id.features.incidentVertex = b2_nullFeature;
_local4.id.features.referenceFace = b2_nullFeature;
_local4.id.features.flip = 0;
if (_local21 <= 0){
_local22 = _arg2.m_vertices[_local16].x;
_local23 = _arg2.m_vertices[_local16].y;
_local4.id.features.incidentVertex = _local16;
} else {
if (_local21 >= _local20){
_local22 = _arg2.m_vertices[_local17].x;
_local23 = _arg2.m_vertices[_local17].y;
_local4.id.features.incidentVertex = _local17;
} else {
_local22 = ((_local18 * _local21) + _arg2.m_vertices[_local16].x);
_local23 = ((_local19 * _local21) + _arg2.m_vertices[_local16].y);
_local4.id.features.incidentEdge = _local16;
};
};
_local5 = (_local7 - _local22);
_local6 = (_local8 - _local23);
_local11 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
_local5 = (_local5 / _local11);
_local6 = (_local6 / _local11);
if (_local11 > _local14){
return;
};
_arg1.pointCount = 1;
_arg1.normal.Set(((_local9.col1.x * _local5) + (_local9.col2.x * _local6)), ((_local9.col1.y * _local5) + (_local9.col2.y * _local6)));
_local4.position.x = (_arg3.m_position.x - (_local14 * _arg1.normal.x));
_local4.position.y = (_arg3.m_position.y - (_local14 * _arg1.normal.y));
_local4.separation = (_local11 - _local14);
}
public static function FindIncidentEdge(_arg1:Array, _arg2:b2PolyShape, _arg3:int, _arg4:b2PolyShape){
var _local21:int;
var _local22:int;
var _local25:ClipVertex;
var _local26:int;
var _local27:int;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local5:int = _arg2.m_vertexCount;
var _local6:Array = _arg2.m_vertices;
var _local7:int = _arg4.m_vertexCount;
var _local8:Array = _arg4.m_vertices;
var _local9:int = _arg3;
var _local10:int = (((_arg3 + 1) == _local5)) ? 0 : (_arg3 + 1);
var _local11:b2Vec2 = _local6[_local10];
var _local12:Number = _local11.x;
var _local13:Number = _local11.y;
_local11 = _local6[_local9];
_local12 = (_local12 - _local11.x);
_local13 = (_local13 - _local11.y);
var _local14:Number = _local12;
_local12 = _local13;
_local13 = -(_local14);
var _local15:Number = (1 / Math.sqrt(((_local12 * _local12) + (_local13 * _local13))));
_local12 = (_local12 * _local15);
_local13 = (_local13 * _local15);
var _local16:Number = _local12;
var _local17:Number = _local13;
_local14 = _local16;
var _local18:b2Mat22 = _arg2.m_R;
_local16 = ((_local18.col1.x * _local14) + (_local18.col2.x * _local17));
_local17 = ((_local18.col1.y * _local14) + (_local18.col2.y * _local17));
var _local19:Number = _local16;
var _local20:Number = _local17;
_local18 = _arg4.m_R;
_local14 = ((_local19 * _local18.col1.x) + (_local20 * _local18.col1.y));
_local20 = ((_local19 * _local18.col2.x) + (_local20 * _local18.col2.y));
_local19 = _local14;
var _local23:Number = Number.MAX_VALUE;
var _local24:int;
while (_local24 < _local7) {
_local26 = _local24;
_local27 = (((_local24 + 1) < _local7)) ? (_local24 + 1) : 0;
_local11 = _local8[_local27];
_local28 = _local11.x;
_local29 = _local11.y;
_local11 = _local8[_local26];
_local28 = (_local28 - _local11.x);
_local29 = (_local29 - _local11.y);
_local14 = _local28;
_local28 = _local29;
_local29 = -(_local14);
_local15 = (1 / Math.sqrt(((_local28 * _local28) + (_local29 * _local29))));
_local28 = (_local28 * _local15);
_local29 = (_local29 * _local15);
_local30 = ((_local28 * _local19) + (_local29 * _local20));
if (_local30 < _local23){
_local23 = _local30;
_local21 = _local26;
_local22 = _local27;
};
_local24++;
};
_local25 = _arg1[0];
_local11 = _local25.v;
_local11.SetV(_local8[_local21]);
_local11.MulM(_arg4.m_R);
_local11.Add(_arg4.m_position);
_local25.id.features.referenceFace = _arg3;
_local25.id.features.incidentEdge = _local21;
_local25.id.features.incidentVertex = _local21;
_local25 = _arg1[1];
_local11 = _local25.v;
_local11.SetV(_local8[_local22]);
_local11.MulM(_arg4.m_R);
_local11.Add(_arg4.m_position);
_local25.id.features.referenceFace = _arg3;
_local25.id.features.incidentEdge = _local21;
_local25.id.features.incidentVertex = _local22;
}
public static function FindMaxSeparation(_arg1:Array, _arg2:b2PolyShape, _arg3:b2PolyShape):Number{
var _local13:int;
var _local14:Number;
var _local15:int;
var _local16:Number;
var _local17:int;
var _local18:Number;
var _local4:int = _arg2.m_vertexCount;
var _local5:Array = _arg2.m_vertices;
d.x = 0;
d.y = 0;
d.SetV(_arg3.m_position);
d.Subtract(_arg2.m_position);
dLocal1.x = 0;
dLocal1.y = 0;
dLocal1.SetV(d);
dLocal1.MulTM(_arg2.m_R);
var _local6:int;
var _local7:Number = -(Number.MAX_VALUE);
var _local8:int;
while (_local8 < _local4) {
_local16 = b2Math.b2Dot(_local5[_local8], dLocal1);
if (_local16 > _local7){
_local7 = _local16;
_local6 = _local8;
};
_local8++;
};
var _local9:int = (((_local6 - 1) >= 0)) ? (_local6 - 1) : (_local4 - 1);
var _local10:Number = EdgeSeparation(_arg2, _local9, _arg3);
if (_local10 > 0){
return (_local10);
};
var _local11:int = _local6;
var _local12:Number = EdgeSeparation(_arg2, _local11, _arg3);
if (_local12 > 0){
return (_local12);
};
if (_local10 > _local12){
_local15 = -1;
_local13 = _local9;
_local14 = _local10;
} else {
_local15 = 1;
_local13 = _local11;
_local14 = _local12;
};
while (true) {
if (_local15 == -1){
_local17 = (((_local13 - 1) >= 0)) ? (_local13 - 1) : (_local4 - 1);
} else {
_local17 = (((_local13 + 1) < _local4)) ? (_local13 + 1) : 0;
};
_local18 = EdgeSeparation(_arg2, _local17, _arg3);
if (_local18 > 0){
return (_local18);
};
if (_local18 > _local14){
_local13 = _local17;
_local14 = _local18;
} else {
break;
};
};
_arg1[0] = _local13;
return (_local14);
}
public static function ClipSegmentToLine(_arg1:Array, _arg2:Array, _arg3:b2Vec2, _arg4:Number):int{
var _local7:b2Vec2;
var _local8:Number;
var _local10:Number;
var _local11:b2Vec2;
var _local5:int;
var _local6:b2Vec2 = _arg2[0].v;
_local7 = _arg2[1].v;
_local8 = (b2Math.b2Dot(_arg3, _arg2[0].v) - _arg4);
var _local9:Number = (b2Math.b2Dot(_arg3, _arg2[1].v) - _arg4);
if (_local8 <= 0){
var _temp1 = _local5;
_local5 = (_local5 + 1);
var _local12 = _temp1;
_arg1[_local12] = _arg2[0];
};
if (_local9 <= 0){
var _temp2 = _local5;
_local5 = (_local5 + 1);
_local12 = _temp2;
_arg1[_local12] = _arg2[1];
};
if ((_local8 * _local9) < 0){
_local10 = (_local8 / (_local8 - _local9));
_local11 = _arg1[_local5].v;
_local11.x = (_local6.x + (_local10 * (_local7.x - _local6.x)));
_local11.y = (_local6.y + (_local10 * (_local7.y - _local6.y)));
if (_local8 > 0){
_arg1[_local5].id = _arg2[0].id;
} else {
_arg1[_local5].id = _arg2[1].id;
};
_local5++;
};
return (_local5);
}
public static function b2CollidePoly(_arg1:b2Manifold, _arg2:b2PolyShape, _arg3:b2PolyShape){
var _local10:b2PolyShape;
var _local11:b2PolyShape;
var _local12:int;
var _local13:int;
var _local39:int;
var _local42:b2Vec2;
var _local43:Number;
var _local44:b2ContactPoint;
_arg1.pointCount = 0;
var _local4:int;
var _local5:Array = [_local4];
var _local6:Number = FindMaxSeparation(_local5, _arg2, _arg3);
_local4 = _local5[0];
if (_local6 > 0){
return;
};
var _local7:int;
var _local8:Array = [_local7];
var _local9:Number = FindMaxSeparation(_local8, _arg3, _arg2);
_local7 = _local8[0];
if (_local9 > 0){
return;
};
var _local14:Number = 0.98;
var _local15:Number = 0.001;
if (_local9 > ((_local14 * _local6) + _local15)){
_local10 = _arg3;
_local11 = _arg2;
_local12 = _local7;
_local13 = 1;
} else {
_local10 = _arg2;
_local11 = _arg3;
_local12 = _local4;
_local13 = 0;
};
var _local16:Array = [new ClipVertex(), new ClipVertex()];
FindIncidentEdge(_local16, _local10, _local12, _local11);
var _local17:int = _local10.m_vertexCount;
var _local18:Array = _local10.m_vertices;
var _local19:b2Vec2 = _local18[_local12];
var _local20:b2Vec2 = (((_local12 + 1) < _local17)) ? _local18[(_local12 + 1)] : _local18[0];
var _local21:Number = (_local20.x - _local19.x);
var _local22:Number = (_local20.y - _local19.y);
var _local23:Number = (_local20.x - _local19.x);
var _local24:Number = (_local20.y - _local19.y);
var _local25:Number = _local23;
var _local26:b2Mat22 = _local10.m_R;
_local23 = ((_local26.col1.x * _local25) + (_local26.col2.x * _local24));
_local24 = ((_local26.col1.y * _local25) + (_local26.col2.y * _local24));
var _local27:Number = (1 / Math.sqrt(((_local23 * _local23) + (_local24 * _local24))));
_local23 = (_local23 * _local27);
_local24 = (_local24 * _local27);
var _local28:Number = _local23;
var _local29:Number = _local24;
_local25 = _local28;
_local28 = _local29;
_local29 = -(_local25);
var _local30:Number = _local19.x;
var _local31:Number = _local19.y;
_local25 = _local30;
_local26 = _local10.m_R;
_local30 = ((_local26.col1.x * _local25) + (_local26.col2.x * _local31));
_local31 = ((_local26.col1.y * _local25) + (_local26.col2.y * _local31));
_local30 = (_local30 + _local10.m_position.x);
_local31 = (_local31 + _local10.m_position.y);
var _local32:Number = _local20.x;
var _local33:Number = _local20.y;
_local25 = _local32;
_local26 = _local10.m_R;
_local32 = ((_local26.col1.x * _local25) + (_local26.col2.x * _local33));
_local33 = ((_local26.col1.y * _local25) + (_local26.col2.y * _local33));
_local32 = (_local32 + _local10.m_position.x);
_local33 = (_local33 + _local10.m_position.y);
var _local34:Number = ((_local28 * _local30) + (_local29 * _local31));
var _local35:Number = -(((_local23 * _local30) + (_local24 * _local31)));
var _local36:Number = ((_local23 * _local32) + (_local24 * _local33));
var _local37:Array = [new ClipVertex(), new ClipVertex()];
var _local38:Array = [new ClipVertex(), new ClipVertex()];
b2CollidePolyTempVec.Set(-(_local23), -(_local24));
_local39 = ClipSegmentToLine(_local37, _local16, b2CollidePolyTempVec, _local35);
if (_local39 < 2){
return;
};
b2CollidePolyTempVec.Set(_local23, _local24);
_local39 = ClipSegmentToLine(_local38, _local37, b2CollidePolyTempVec, _local36);
if (_local39 < 2){
return;
};
if (_local13){
_arg1.normal.Set(-(_local28), -(_local29));
} else {
_arg1.normal.Set(_local28, _local29);
};
var _local40:int;
var _local41:int;
while (_local41 < b2Settings.b2_maxManifoldPoints) {
_local42 = _local38[_local41].v;
_local43 = (((_local28 * _local42.x) + (_local29 * _local42.y)) - _local34);
if (_local43 <= 0){
_local44 = _arg1.points[_local40];
_local44.separation = _local43;
_local44.position.SetV(_local38[_local41].v);
_local44.id.Set(_local38[_local41].id);
_local44.id.features.flip = _local13;
_local40++;
};
_local41++;
};
_arg1.pointCount = _local40;
}
public static function b2CollideCircle(_arg1:b2Manifold, _arg2:b2CircleShape, _arg3:b2CircleShape){
var _local8:Number;
var _local10:Number;
var _local11:Number;
_arg1.pointCount = 0;
var _local4:Number = (_arg3.m_position.x - _arg2.m_position.x);
var _local5:Number = (_arg3.m_position.y - _arg2.m_position.y);
var _local6:Number = ((_local4 * _local4) + (_local5 * _local5));
var _local7:Number = (_arg2.m_radius + _arg3.m_radius);
if (_local6 > (_local7 * _local7)){
return;
};
if (_local6 < Number.MIN_VALUE){
_local8 = -(_local7);
_arg1.normal.Set(0, 1);
} else {
_local10 = Math.sqrt(_local6);
_local8 = (_local10 - _local7);
_local11 = (1 / _local10);
_arg1.normal.x = (_local11 * _local4);
_arg1.normal.y = (_local11 * _local5);
};
_arg1.pointCount = 1;
var _local9:b2ContactPoint = _arg1.points[0];
_local9.id.key = 0;
_local9.separation = _local8;
_local9.position.x = (_arg3.m_position.x - (_arg3.m_radius * _arg1.normal.x));
_local9.position.y = (_arg3.m_position.y - (_arg3.m_radius * _arg1.normal.y));
}
}
}//package Engine.Collision
Section 18
//b2ContactID (Engine.Collision.b2ContactID)
package Engine.Collision {
public class b2ContactID {
public var _key:uint;
public var features:Features;
public function b2ContactID(){
features = new Features();
super();
features._m_id = this;
}
public function Set(_arg1:b2ContactID){
key = _arg1._key;
}
public function Copy():b2ContactID{
var _local1:b2ContactID = new b2ContactID();
_local1.key = key;
return (_local1);
}
public function set key(_arg1:uint){
_key = _arg1;
features._referenceFace = (_key & 0xFF);
features._incidentEdge = (((_key & 0xFF00) >> 8) & 0xFF);
features._incidentVertex = (((_key & 0xFF0000) >> 16) & 0xFF);
features._flip = (((_key & 4278190080) >> 24) & 0xFF);
}
public function get key():uint{
return (_key);
}
}
}//package Engine.Collision
Section 19
//b2ContactPoint (Engine.Collision.b2ContactPoint)
package Engine.Collision {
import Engine.Common.Math.*;
public class b2ContactPoint {
public var tangentImpulse:Number;
public var separation:Number;
public var position:b2Vec2;
public var id:b2ContactID;
public var normalImpulse:Number;
public function b2ContactPoint(){
position = new b2Vec2();
id = new b2ContactID();
super();
}
}
}//package Engine.Collision
Section 20
//b2Manifold (Engine.Collision.b2Manifold)
package Engine.Collision {
import Engine.Common.Math.*;
import Engine.Common.*;
public class b2Manifold {
public var points:Array;
public var normal:b2Vec2;
public var pointCount:int;
public function b2Manifold(){
points = new Array(b2Settings.b2_maxManifoldPoints);
var _local1:int;
while (_local1 < b2Settings.b2_maxManifoldPoints) {
points[_local1] = new b2ContactPoint();
_local1++;
};
normal = new b2Vec2();
}
}
}//package Engine.Collision
Section 21
//b2OBB (Engine.Collision.b2OBB)
package Engine.Collision {
import Engine.Common.Math.*;
public class b2OBB {
public var R:b2Mat22;
public var center:b2Vec2;
public var extents:b2Vec2;
public function b2OBB(){
R = new b2Mat22();
center = new b2Vec2();
extents = new b2Vec2();
super();
}
}
}//package Engine.Collision
Section 22
//b2Pair (Engine.Collision.b2Pair)
package Engine.Collision {
public class b2Pair {
public var proxyId1:uint;
public var userData;// = null
public var proxyId2:uint;
public var status:uint;
public static var b2_tableMask:int = (b2_tableCapacity - 1);
public static var e_pairRemoved:uint = 2;
public static var b2_nullPair:uint = 0xFFFF;
public static var e_pairBuffered:uint = 1;
public static var e_pairReceived:uint = 4;
public static var b2_nullProxy:uint = 0xFFFF;
public static var b2_tableCapacity:int = 8192;
public function SetBuffered(){
status = (status | e_pairBuffered);
}
public function SetReceived(){
status = (status | e_pairReceived);
}
public function IsBuffered():Boolean{
return (((status & e_pairBuffered) == e_pairBuffered));
}
public function IsReceived():Boolean{
return (((status & e_pairReceived) == e_pairReceived));
}
public function ClearBuffered(){
status = (status & ~(e_pairBuffered));
}
public function ClearRemoved(){
status = (status & ~(e_pairRemoved));
}
public function IsRemoved():Boolean{
return (((status & e_pairRemoved) == e_pairRemoved));
}
public function SetRemoved(){
status = (status | e_pairRemoved);
}
}
}//package Engine.Collision
Section 23
//b2PairCallback (Engine.Collision.b2PairCallback)
package Engine.Collision {
public class b2PairCallback {
public function PairRemoved(_arg1, _arg2, _arg3){
}
public function PairAdded(_arg1, _arg2){
return (null);
}
}
}//package Engine.Collision
Section 24
//b2PairManager (Engine.Collision.b2PairManager)
package Engine.Collision {
import Engine.Common.Math.*;
import Engine.Common.*;
public class b2PairManager {
public var m_pairCount:int;
public var m_next:Array;
public var m_hashTable:Array;
public var m_pairs:Array;
public function b2PairManager(){
var _local1:uint;
super();
m_hashTable = new Array(b2Pair.b2_tableCapacity);
_local1 = 0;
while (_local1 < b2Pair.b2_tableCapacity) {
m_hashTable[_local1] = b2Pair.b2_nullPair;
_local1++;
};
m_next = new Array(b2Settings.b2_maxPairs);
_local1 = 0;
while (_local1 < b2Settings.b2_maxPairs) {
m_next[_local1] = b2Pair.b2_nullPair;
_local1++;
};
m_pairs = new Array(b2Settings.b2_maxPairs);
_local1 = 0;
while (_local1 < b2Settings.b2_maxPairs) {
m_pairs[_local1] = new b2Pair();
_local1++;
};
m_pairCount = 0;
}
public function Find(_arg1:uint, _arg2:uint):b2Pair{
var _local5:uint;
if (_arg1 > _arg2){
_local5 = _arg1;
_arg1 = _arg2;
_arg2 = _local5;
};
var _local3:uint = (Hash(_arg1, _arg2) & b2Pair.b2_tableMask);
var _local4:uint = m_hashTable[_local3];
while (((!((_local4 == b2Pair.b2_nullPair))) && ((Equals(m_pairs[_local4], _arg1, _arg2) == false)))) {
_local4 = m_next[_local4];
};
if (_local4 == b2Pair.b2_nullPair){
return (null);
};
return (m_pairs[_local4]);
}
public function Add(_arg1:uint, _arg2:uint):b2Pair{
var _local6:uint;
if (_arg1 > _arg2){
_local6 = _arg1;
_arg1 = _arg2;
_arg2 = _local6;
};
var _local3:uint = (Hash(_arg1, _arg2) & b2Pair.b2_tableMask);
var _local4:int = FindHash(_arg1, _arg2, _local3);
var _local5:b2Pair = ((_local4)!=b2Settings.USHRT_MAX) ? m_pairs[_local4] : null;
if (_local5 != null){
return (_local5);
};
if (m_pairCount == b2Settings.b2_maxPairs){
return (null);
};
_local5 = m_pairs[m_pairCount];
_local5.proxyId1 = _arg1;
_local5.proxyId2 = _arg2;
_local5.status = 0;
_local5.userData = null;
m_next[m_pairCount] = m_hashTable[_local3];
m_hashTable[_local3] = m_pairCount;
m_pairCount++;
return (_local5);
}
public function Remove(_arg1:uint, _arg2:uint){
var _local12:uint;
if (_arg1 > _arg2){
_local12 = _arg1;
_arg1 = _arg2;
_arg2 = _local12;
};
var _local3:uint = (Hash(_arg1, _arg2) & b2Pair.b2_tableMask);
var _local4:int = FindHash(_arg1, _arg2, _local3);
var _local5:b2Pair = ((_local4)!=b2Settings.USHRT_MAX) ? m_pairs[_local4] : null;
if (_local5 == null){
return (null);
};
var _local6:* = _local5.userData;
var _local7:uint = m_hashTable[_local3];
var _local8:uint = b2Pair.b2_nullPair;
while (_local7 != _local4) {
_local8 = _local7;
_local7 = m_next[_local7];
};
if (_local8 != b2Pair.b2_nullPair){
m_next[_local8] = m_next[_local4];
} else {
m_hashTable[_local3] = m_next[_local4];
};
var _local9:uint = (m_pairCount - 1);
if (_local9 == _local4){
m_pairCount--;
return (_local6);
};
var _local10:b2Pair = m_pairs[_local9];
var _local11:uint = (Hash(_local10.proxyId1, _local10.proxyId2) & b2Pair.b2_tableMask);
_local7 = m_hashTable[_local11];
_local8 = b2Pair.b2_nullPair;
while (_local7 != _local9) {
_local8 = _local7;
_local7 = m_next[_local7];
};
if (_local8 != b2Pair.b2_nullPair){
m_next[_local8] = m_next[_local9];
} else {
m_hashTable[_local11] = m_next[_local9];
};
m_pairs[_local4].userData = m_pairs[_local9].userData;
m_pairs[_local4].proxyId1 = m_pairs[_local9].proxyId1;
m_pairs[_local4].proxyId2 = m_pairs[_local9].proxyId2;
m_pairs[_local4].status = m_pairs[_local9].status;
m_next[_local4] = m_hashTable[_local11];
m_hashTable[_local11] = _local4;
m_pairCount--;
return (_local6);
}
private function FindHash(_arg1:uint, _arg2:uint, _arg3:uint):int{
var _local4:uint = m_hashTable[_arg3];
while (((!((_local4 == b2Pair.b2_nullPair))) && ((Equals(m_pairs[_local4], _arg1, _arg2) == false)))) {
_local4 = m_next[_local4];
};
if (_local4 == b2Pair.b2_nullPair){
return (b2Settings.USHRT_MAX);
};
return (_local4);
}
public function GetPairs():Array{
return (m_pairs);
}
public function GetCount():int{
return (m_pairCount);
}
public static function Hash(_arg1:uint, _arg2:uint):uint{
var _local3:uint = (((_arg2 << 16) & 4294901760) | _arg1);
_local3 = (~(_local3) + ((_local3 << 15) & 4294934528));
_local3 = (_local3 ^ ((_local3 >> 12) & 1048575));
_local3 = (_local3 + ((_local3 << 2) & 4294967292));
_local3 = (_local3 ^ ((_local3 >> 4) & 268435455));
_local3 = (_local3 * 2057);
_local3 = (_local3 ^ ((_local3 >> 16) & 0xFFFF));
return (_local3);
}
public static function Equals(_arg1:b2Pair, _arg2:uint, _arg3:uint):Boolean{
return ((((_arg1.proxyId1 == _arg2)) && ((_arg1.proxyId2 == _arg3))));
}
}
}//package Engine.Collision
Section 25
//b2Proxy (Engine.Collision.b2Proxy)
package Engine.Collision {
public class b2Proxy {
public var categoryBits:uint;
public var overlapCount:uint;
public var lowerBounds:Array;
public var upperBounds:Array;
public var maskBits:uint;
public var groupIndex:int;
public var userData;// = null
public var timeStamp:uint;
public function b2Proxy(){
lowerBounds = [uint(0), uint(0)];
upperBounds = [uint(0), uint(0)];
super();
}
public function GetNext():uint{
return (lowerBounds[0]);
}
public function IsValid():Boolean{
return (!((overlapCount == b2BroadPhase.b2_invalid)));
}
public function SetNext(_arg1:uint){
lowerBounds[0] = (_arg1 & 0xFFFF);
}
}
}//package Engine.Collision
Section 26
//ClipVertex (Engine.Collision.ClipVertex)
package Engine.Collision {
import Engine.Common.Math.*;
public class ClipVertex {
public var id:b2ContactID;
public var v:b2Vec2;
public function ClipVertex(){
v = new b2Vec2();
id = new b2ContactID();
super();
}
}
}//package Engine.Collision
Section 27
//Features (Engine.Collision.Features)
package Engine.Collision {
public class Features {
public var _referenceFace:int;
public var _incidentEdge:int;
public var _flip:int;
public var _incidentVertex:int;
public var _m_id:b2ContactID;
public function get referenceFace():int{
return (_referenceFace);
}
public function set incidentVertex(_arg1:int){
_incidentVertex = _arg1;
_m_id._key = ((_m_id._key & 4278255615) | ((_incidentVertex << 16) & 0xFF0000));
}
public function get flip():int{
return (_flip);
}
public function get incidentEdge():int{
return (_incidentEdge);
}
public function set referenceFace(_arg1:int){
_referenceFace = _arg1;
_m_id._key = ((_m_id._key & 4294967040) | (_referenceFace & 0xFF));
}
public function get incidentVertex():int{
return (_incidentVertex);
}
public function set flip(_arg1:int){
_flip = _arg1;
_m_id._key = ((_m_id._key & 0xFFFFFF) | ((_flip << 24) & 4278190080));
}
public function set incidentEdge(_arg1:int){
_incidentEdge = _arg1;
_m_id._key = ((_m_id._key & 4294902015) | ((_incidentEdge << 8) & 0xFF00));
}
}
}//package Engine.Collision
Section 28
//b2Mat22 (Engine.Common.Math.b2Mat22)
package Engine.Common.Math {
public class b2Mat22 {
public var col1:b2Vec2;
public var col2:b2Vec2;
public function b2Mat22(_arg1:Number=0, _arg2:b2Vec2=null, _arg3:b2Vec2=null){
var _local4:Number;
var _local5:Number;
col1 = new b2Vec2();
col2 = new b2Vec2();
super();
if (((!((_arg2 == null))) && (!((_arg3 == null))))){
col1.SetV(_arg2);
col2.SetV(_arg3);
} else {
_local4 = Math.cos(_arg1);
_local5 = Math.sin(_arg1);
col1.x = _local4;
col2.x = -(_local5);
col1.y = _local5;
col2.y = _local4;
};
}
public function SetIdentity(){
col1.x = 1;
col2.x = 0;
col1.y = 0;
col2.y = 1;
}
public function SetVV(_arg1:b2Vec2, _arg2:b2Vec2){
col1.SetV(_arg1);
col2.SetV(_arg2);
}
public function Set(_arg1:Number){
var _local2:Number;
_local2 = Math.cos(_arg1);
var _local3:Number = Math.sin(_arg1);
col1.x = _local2;
col2.x = -(_local3);
col1.y = _local3;
col2.y = _local2;
}
public function SetZero(){
col1.x = 0;
col2.x = 0;
col1.y = 0;
col2.y = 0;
}
public function SetM(_arg1:b2Mat22){
col1.SetV(_arg1.col1);
col2.SetV(_arg1.col2);
}
public function AddM(_arg1:b2Mat22){
col1.x = (col1.x + _arg1.col1.x);
col1.y = (col1.y + _arg1.col1.y);
col2.x = (col2.x + _arg1.col2.x);
col2.y = (col2.y + _arg1.col2.y);
}
public function Abs(){
col1.Abs();
col2.Abs();
}
public function Copy():b2Mat22{
return (new b2Mat22(0, col1, col2));
}
public function Invert(_arg1:b2Mat22):b2Mat22{
var _local2:Number;
var _local4:Number;
var _local6:Number;
_local2 = col1.x;
var _local3:Number = col2.x;
_local4 = col1.y;
var _local5:Number = col2.y;
_local6 = ((_local2 * _local5) - (_local3 * _local4));
_local6 = (1 / _local6);
_arg1.col1.x = (_local6 * _local5);
_arg1.col2.x = (-(_local6) * _local3);
_arg1.col1.y = (-(_local6) * _local4);
_arg1.col2.y = (_local6 * _local2);
return (_arg1);
}
public function Solve(_arg1:b2Vec2, _arg2:Number, _arg3:Number):b2Vec2{
var _local4:Number = col1.x;
var _local5:Number = col2.x;
var _local6:Number = col1.y;
var _local7:Number = col2.y;
var _local8:Number = ((_local4 * _local7) - (_local5 * _local6));
_local8 = (1 / _local8);
_arg1.x = (_local8 * ((_local7 * _arg2) - (_local5 * _arg3)));
_arg1.y = (_local8 * ((_local4 * _arg3) - (_local6 * _arg2)));
return (_arg1);
}
}
}//package Engine.Common.Math
Section 29
//b2Math (Engine.Common.Math.b2Math)
package Engine.Common.Math {
public class b2Math {
public static function b2CrossVF(_arg1:b2Vec2, _arg2:Number):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((_arg2 * _arg1.y), (-(_arg2) * _arg1.x));
return (_local3);
}
public static function AddVV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((_arg1.x + _arg2.x), (_arg1.y + _arg2.y));
return (_local3);
}
public static function b2IsValid(_arg1:Number){
return (isFinite(_arg1));
}
public static function b2Swap(_arg1:Array, _arg2:Array){
var _local3:* = _arg1[0];
_arg1[0] = _arg2[0];
_arg2[0] = _local3;
}
public static function b2Abs(_arg1:Number):Number{
return (((_arg1 > 0)) ? _arg1 : -(_arg1));
}
public static function b2AbsM(_arg1:b2Mat22):b2Mat22{
var _local2:b2Mat22 = new b2Mat22(0, b2AbsV(_arg1.col1), b2AbsV(_arg1.col2));
return (_local2);
}
public static function SubtractVV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((_arg1.x - _arg2.x), (_arg1.y - _arg2.y));
return (_local3);
}
public static function b2CrossVV(_arg1:b2Vec2, _arg2:b2Vec2):Number{
return (((_arg1.x * _arg2.y) - (_arg1.y * _arg2.x)));
}
public static function b2Clamp(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (b2Max(_arg2, b2Min(_arg1, _arg3)));
}
public static function b2AbsV(_arg1:b2Vec2):b2Vec2{
var _local2:b2Vec2 = new b2Vec2(b2Abs(_arg1.x), b2Abs(_arg1.y));
return (_local2);
}
public static function b2MinV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2(b2Min(_arg1.x, _arg2.x), b2Min(_arg1.y, _arg2.y));
return (_local3);
}
public static function b2Dot(_arg1:b2Vec2, _arg2:b2Vec2):Number{
return (((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y)));
}
public static function b2CrossFV(_arg1:Number, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((-(_arg1) * _arg2.y), (_arg1 * _arg2.x));
return (_local3);
}
public static function AddMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Mat22 = new b2Mat22(0, AddVV(_arg1.col1, _arg2.col1), AddVV(_arg1.col2, _arg2.col2));
return (_local3);
}
public static function b2MulTMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Vec2 = new b2Vec2(b2Dot(_arg1.col1, _arg2.col1), b2Dot(_arg1.col2, _arg2.col1));
var _local4:b2Vec2 = new b2Vec2(b2Dot(_arg1.col1, _arg2.col2), b2Dot(_arg1.col2, _arg2.col2));
var _local5:b2Mat22 = new b2Mat22(0, _local3, _local4);
return (_local5);
}
public static function b2MaxV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2(b2Max(_arg1.x, _arg2.x), b2Max(_arg1.y, _arg2.y));
return (_local3);
}
public static function b2IsPowerOfTwo(_arg1:uint):Boolean{
var _local2:Boolean = (((_arg1 > 0)) && (((_arg1 & (_arg1 - 1)) == 0)));
return (_local2);
}
public static function b2ClampV(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Vec2):b2Vec2{
return (b2MaxV(_arg2, b2MinV(_arg1, _arg3)));
}
public static function MulFV(_arg1:Number, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((_arg1 * _arg2.x), (_arg1 * _arg2.y));
return (_local3);
}
public static function b2MulTMV(_arg1:b2Mat22, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2(b2Dot(_arg2, _arg1.col1), b2Dot(_arg2, _arg1.col2));
return (_local3);
}
public static function b2Min(_arg1:Number, _arg2:Number):Number{
return (((_arg1 < _arg2)) ? _arg1 : _arg2);
}
public static function b2Random():Number{
return (((Math.random() * 2) - 1));
}
public static function b2MulMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Mat22 = new b2Mat22(0, b2MulMV(_arg1, _arg2.col1), b2MulMV(_arg1, _arg2.col2));
return (_local3);
}
public static function b2NextPowerOfTwo(_arg1:uint):uint{
_arg1 = (_arg1 | ((_arg1 >> 1) & 2147483647));
_arg1 = (_arg1 | ((_arg1 >> 2) & 1073741823));
_arg1 = (_arg1 | ((_arg1 >> 4) & 268435455));
_arg1 = (_arg1 | ((_arg1 >> 8) & 0xFFFFFF));
_arg1 = (_arg1 | ((_arg1 >> 16) & 0xFFFF));
return ((_arg1 + 1));
}
public static function b2Max(_arg1:Number, _arg2:Number):Number{
return (((_arg1 > _arg2)) ? _arg1 : _arg2);
}
public static function b2MulMV(_arg1:b2Mat22, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2(((_arg1.col1.x * _arg2.x) + (_arg1.col2.x * _arg2.y)), ((_arg1.col1.y * _arg2.x) + (_arg1.col2.y * _arg2.y)));
return (_local3);
}
}
}//package Engine.Common.Math
Section 30
//b2Vec2 (Engine.Common.Math.b2Vec2)
package Engine.Common.Math {
public class b2Vec2 {
public var y:Number;
public var x:Number;
public function b2Vec2(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
public function Add(_arg1:b2Vec2){
x = (x + _arg1.x);
y = (y + _arg1.y);
}
public function Set(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
public function Multiply(_arg1:Number){
x = (x * _arg1);
y = (y * _arg1);
}
public function Length():Number{
return (Math.sqrt(((x * x) + (y * y))));
}
public function MulM(_arg1:b2Mat22){
var _local2:Number = x;
x = ((_arg1.col1.x * _local2) + (_arg1.col2.x * y));
y = ((_arg1.col1.y * _local2) + (_arg1.col2.y * y));
}
public function SetZero(){
x = 0;
y = 0;
}
public function MinV(_arg1:b2Vec2){
x = ((x < _arg1.x)) ? x : _arg1.x;
y = ((y < _arg1.y)) ? y : _arg1.y;
}
public function Normalize():Number{
var _local1:Number = Length();
if (_local1 < Number.MIN_VALUE){
return (0);
};
var _local2:Number = (1 / _local1);
x = (x * _local2);
y = (y * _local2);
return (_local1);
}
public function CrossVF(_arg1:Number){
var _local2:Number = x;
x = (_arg1 * y);
y = (-(_arg1) * _local2);
}
public function MaxV(_arg1:b2Vec2){
x = ((x > _arg1.x)) ? x : _arg1.x;
y = ((y > _arg1.y)) ? y : _arg1.y;
}
public function SetV(_arg1:b2Vec2){
x = _arg1.x;
y = _arg1.y;
}
public function Negative():b2Vec2{
return (new b2Vec2(-(x), -(y)));
}
public function CrossFV(_arg1:Number){
var _local2:Number = x;
x = (-(_arg1) * y);
y = (_arg1 * _local2);
}
public function Abs(){
x = Math.abs(x);
y = Math.abs(y);
}
public function Subtract(_arg1:b2Vec2){
x = (x - _arg1.x);
y = (y - _arg1.y);
}
public function Copy():b2Vec2{
return (new b2Vec2(x, y));
}
public function MulTM(_arg1:b2Mat22){
var _local2:Number = b2Math.b2Dot(this, _arg1.col1);
y = b2Math.b2Dot(this, _arg1.col2);
x = _local2;
}
public function IsValid():Boolean{
return (((b2Math.b2IsValid(x)) && (b2Math.b2IsValid(y))));
}
public static function Make(_arg1:Number, _arg2:Number):b2Vec2{
return (new b2Vec2(_arg1, _arg2));
}
}
}//package Engine.Common.Math
Section 31
//b2Settings (Engine.Common.b2Settings)
package Engine.Common {
import Engine.Common.Math.*;
public class b2Settings {
public static const b2_lengthUnitsPerMeter:Number = 1;
public static const b2_angularSleepTolerance:Number = 0.0111111111111111;
public static const b2_linearSleepTolerance:Number = 0.01;
public static const b2_angularSlop:Number = 0.0349065850398866;
public static const b2_linearSlop:Number = 0.005;
public static const b2_pi:Number = 3.14159265358979;
public static const b2_maxShapesPerBody:int = 64;
public static const b2_maxProxies:int = 0x0400;
public static const b2_velocityThreshold:Number = 1;
public static const b2_timeToSleep:Number = 0.5;
public static const b2_contactBaumgarte:Number = 0.2;
public static const b2_maxPairs:int = 8192;
public static const b2_maxManifoldPoints:int = 2;
public static const b2_maxAngularCorrection:Number = 0.139626340159546;
public static const b2_massUnitsPerKilogram:Number = 1;
public static const USHRT_MAX:int = 0xFFFF;
public static const b2_maxLinearCorrection:Number = 0.2;
public static const b2_maxPolyVertices:int = 8;
public static const b2_timeUnitsPerSecond:Number = 1;
public static function b2Assert(_arg1:Boolean){
var _local2:b2Vec2;
if (!_arg1){
_local2.x++;
};
}
}
}//package Engine.Common
Section 32
//b2CircleContact (Engine.Dynamics.Contacts.b2CircleContact)
package Engine.Dynamics.Contacts {
import Engine.Collision.Shapes.*;
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2CircleContact extends b2Contact {
public var m_manifold:Array;
public function b2CircleContact(_arg1:b2Shape, _arg2:b2Shape){
m_manifold = [new b2Manifold()];
super(_arg1, _arg2);
m_manifold[0].pointCount = 0;
m_manifold[0].points[0].normalImpulse = 0;
m_manifold[0].points[0].tangentImpulse = 0;
}
override public function Evaluate(){
b2Collision.b2CollideCircle(m_manifold[0], (m_shape1 as b2CircleShape), (m_shape2 as b2CircleShape));
if (m_manifold[0].pointCount > 0){
m_manifoldCount = 1;
} else {
m_manifoldCount = 0;
};
}
override public function GetManifolds():Array{
return (m_manifold);
}
public static function Destroy(_arg1:b2Contact, _arg2){
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2CircleContact(_arg1, _arg2));
}
}
}//package Engine.Dynamics.Contacts
Section 33
//b2Contact (Engine.Dynamics.Contacts.b2Contact)
package Engine.Dynamics.Contacts {
import Engine.Collision.Shapes.*;
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2Contact {
public var m_shape1:b2Shape;
public var m_shape2:b2Shape;
public var m_next:b2Contact;
public var m_prev:b2Contact;
public var m_friction:Number;
public var m_manifoldCount:int;
public var m_node1:b2ContactNode;
public var m_node2:b2ContactNode;
public var m_restitution:Number;
public var m_flags:uint;
public static var s_registers:Array;
public static var s_initialized:Boolean = false;
public static var e_islandFlag:uint = 1;
public static var e_destroyFlag:uint = 2;
public function b2Contact(_arg1:b2Shape=null, _arg2:b2Shape=null){
m_node1 = new b2ContactNode();
m_node2 = new b2ContactNode();
super();
m_flags = 0;
if (((!(_arg1)) || (!(_arg2)))){
m_shape1 = null;
m_shape2 = null;
return;
};
m_shape1 = _arg1;
m_shape2 = _arg2;
m_manifoldCount = 0;
m_friction = Math.sqrt((m_shape1.m_friction * m_shape2.m_friction));
m_restitution = b2Math.b2Max(m_shape1.m_restitution, m_shape2.m_restitution);
m_prev = null;
m_next = null;
m_node1.contact = null;
m_node1.prev = null;
m_node1.next = null;
m_node1.other = null;
m_node2.contact = null;
m_node2.prev = null;
m_node2.next = null;
m_node2.other = null;
}
public function GetShape1():b2Shape{
return (m_shape1);
}
public function GetShape2():b2Shape{
return (m_shape2);
}
public function GetManifoldCount():int{
return (m_manifoldCount);
}
public function GetNext():b2Contact{
return (m_next);
}
public function GetManifolds():Array{
return (null);
}
public function Evaluate(){
}
public static function InitializeRegisters(){
var _local2:int;
s_registers = new Array(b2Shape.e_shapeTypeCount);
var _local1:int;
while (_local1 < b2Shape.e_shapeTypeCount) {
s_registers[_local1] = new Array(b2Shape.e_shapeTypeCount);
_local2 = 0;
while (_local2 < b2Shape.e_shapeTypeCount) {
s_registers[_local1][_local2] = new b2ContactRegister();
_local2++;
};
_local1++;
};
AddType(b2CircleContact.Create, b2CircleContact.Destroy, b2Shape.e_circleShape, b2Shape.e_circleShape);
AddType(b2PolyAndCircleContact.Create, b2PolyAndCircleContact.Destroy, b2Shape.e_polyShape, b2Shape.e_circleShape);
AddType(b2PolyContact.Create, b2PolyContact.Destroy, b2Shape.e_polyShape, b2Shape.e_polyShape);
}
public static function Destroy(_arg1:b2Contact, _arg2){
if (_arg1.GetManifoldCount() > 0){
_arg1.m_shape1.m_body.WakeUp();
_arg1.m_shape2.m_body.WakeUp();
};
var _local3:int = _arg1.m_shape1.m_type;
var _local4:int = _arg1.m_shape2.m_type;
var _local5:* = s_registers[_local3][_local4].destroyFcn;
_local5(_arg1, _arg2);
}
public static function AddType(_arg1, _arg2, _arg3:int, _arg4:int){
s_registers[_arg3][_arg4].createFcn = _arg1;
s_registers[_arg3][_arg4].destroyFcn = _arg2;
s_registers[_arg3][_arg4].primary = true;
if (_arg3 != _arg4){
s_registers[_arg4][_arg3].createFcn = _arg1;
s_registers[_arg4][_arg3].destroyFcn = _arg2;
s_registers[_arg4][_arg3].primary = false;
};
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
var _local7:b2Contact;
var _local8:int;
var _local9:b2Manifold;
if (s_initialized == false){
InitializeRegisters();
s_initialized = true;
};
var _local4:int = _arg1.m_type;
var _local5:int = _arg2.m_type;
var _local6:* = s_registers[_local4][_local5].createFcn;
if (_local6){
if (s_registers[_local4][_local5].primary){
return (_local6(_arg1, _arg2, _arg3));
};
_local7 = _local6(_arg2, _arg1, _arg3);
_local8 = 0;
while (_local8 < _local7.GetManifoldCount()) {
_local9 = _local7.GetManifolds()[_local8];
_local7.GetManifolds()[_local8].normal = _local9.normal.Negative();
_local8++;
};
return (_local7);
//unresolved jump
};
return (null);
}
}
}//package Engine.Dynamics.Contacts
Section 34
//b2ContactConstraint (Engine.Dynamics.Contacts.b2ContactConstraint)
package Engine.Dynamics.Contacts {
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2ContactConstraint {
public var points:Array;
public var normal:b2Vec2;
public var restitution:Number;
public var body1:b2Body;
public var manifold:b2Manifold;
public var body2:b2Body;
public var friction:Number;
public var pointCount:int;
public function b2ContactConstraint(){
normal = new b2Vec2();
super();
points = new Array(b2Settings.b2_maxManifoldPoints);
var _local1:int;
while (_local1 < b2Settings.b2_maxManifoldPoints) {
points[_local1] = new b2ContactConstraintPoint();
_local1++;
};
}
}
}//package Engine.Dynamics.Contacts
Section 35
//b2ContactConstraintPoint (Engine.Dynamics.Contacts.b2ContactConstraintPoint)
package Engine.Dynamics.Contacts {
import Engine.Common.Math.*;
public class b2ContactConstraintPoint {
public var separation:Number;
public var positionImpulse:Number;
public var normalImpulse:Number;
public var tangentImpulse:Number;
public var localAnchor1:b2Vec2;
public var localAnchor2:b2Vec2;
public var tangentMass:Number;
public var normalMass:Number;
public var velocityBias:Number;
public function b2ContactConstraintPoint(){
localAnchor1 = new b2Vec2();
localAnchor2 = new b2Vec2();
super();
}
}
}//package Engine.Dynamics.Contacts
Section 36
//b2ContactNode (Engine.Dynamics.Contacts.b2ContactNode)
package Engine.Dynamics.Contacts {
import Engine.Dynamics.*;
public class b2ContactNode {
public var other:b2Body;
public var prev:b2ContactNode;
public var contact:b2Contact;
public var next:b2ContactNode;
}
}//package Engine.Dynamics.Contacts
Section 37
//b2ContactRegister (Engine.Dynamics.Contacts.b2ContactRegister)
package Engine.Dynamics.Contacts {
public class b2ContactRegister {
public var primary:Boolean;
public var createFcn;
public var destroyFcn;
}
}//package Engine.Dynamics.Contacts
Section 38
//b2ContactSolver (Engine.Dynamics.Contacts.b2ContactSolver)
package Engine.Dynamics.Contacts {
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2ContactSolver {
public var m_constraintCount:int;
public var m_constraints:Array;
public var m_allocator;
public function b2ContactSolver(_arg1:Array, _arg2:int, _arg3){
var _local4:int;
var _local5:b2Vec2;
var _local6:b2Mat22;
var _local8:b2Contact;
var _local9:b2Body;
var _local10:b2Body;
var _local11:int;
var _local12:Array;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:int;
var _local22:b2Manifold;
var _local23:Number;
var _local24:Number;
var _local25:b2ContactConstraint;
var _local26:*;
var _local27:b2ContactPoint;
var _local28:b2ContactConstraintPoint;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local39:Number;
var _local40:Number;
var _local41:Number;
var _local42:Number;
var _local43:Number;
var _local44:Number;
var _local45:Number;
m_constraints = new Array();
super();
m_allocator = _arg3;
m_constraintCount = 0;
_local4 = 0;
while (_local4 < _arg2) {
m_constraintCount = (m_constraintCount + _arg1[_local4].GetManifoldCount());
_local4++;
};
_local4 = 0;
while (_local4 < m_constraintCount) {
m_constraints[_local4] = new b2ContactConstraint();
_local4++;
};
var _local7:int;
_local4 = 0;
while (_local4 < _arg2) {
_local8 = _arg1[_local4];
_local9 = _local8.m_shape1.m_body;
_local10 = _local8.m_shape2.m_body;
_local11 = _local8.GetManifoldCount();
_local12 = _local8.GetManifolds();
_local13 = _local8.m_friction;
_local14 = _local8.m_restitution;
_local15 = _local9.m_linearVelocity.x;
_local16 = _local9.m_linearVelocity.y;
_local17 = _local10.m_linearVelocity.x;
_local18 = _local10.m_linearVelocity.y;
_local19 = _local9.m_angularVelocity;
_local20 = _local10.m_angularVelocity;
_local21 = 0;
while (_local21 < _local11) {
_local22 = _local12[_local21];
_local23 = _local22.normal.x;
_local24 = _local22.normal.y;
_local25 = m_constraints[_local7];
_local25.body1 = _local9;
_local25.body2 = _local10;
_local25.manifold = _local22;
_local25.normal.x = _local23;
_local25.normal.y = _local24;
_local25.pointCount = _local22.pointCount;
_local25.friction = _local13;
_local25.restitution = _local14;
_local26 = 0;
while (_local26 < _local25.pointCount) {
_local27 = _local22.points[_local26];
_local28 = _local25.points[_local26];
_local28.normalImpulse = _local27.normalImpulse;
_local28.tangentImpulse = _local27.tangentImpulse;
_local28.separation = _local27.separation;
_local29 = (_local27.position.x - _local9.m_position.x);
_local30 = (_local27.position.y - _local9.m_position.y);
_local31 = (_local27.position.x - _local10.m_position.x);
_local32 = (_local27.position.y - _local10.m_position.y);
_local5 = _local28.localAnchor1;
_local6 = _local9.m_R;
_local5.x = ((_local29 * _local6.col1.x) + (_local30 * _local6.col1.y));
_local5.y = ((_local29 * _local6.col2.x) + (_local30 * _local6.col2.y));
_local5 = _local28.localAnchor2;
_local6 = _local10.m_R;
_local5.x = ((_local31 * _local6.col1.x) + (_local32 * _local6.col1.y));
_local5.y = ((_local31 * _local6.col2.x) + (_local32 * _local6.col2.y));
_local33 = ((_local29 * _local29) + (_local30 * _local30));
_local34 = ((_local31 * _local31) + (_local32 * _local32));
_local35 = ((_local29 * _local23) + (_local30 * _local24));
_local36 = ((_local31 * _local23) + (_local32 * _local24));
_local37 = (_local9.m_invMass + _local10.m_invMass);
_local37 = (_local37 + ((_local9.m_invI * (_local33 - (_local35 * _local35))) + (_local10.m_invI * (_local34 - (_local36 * _local36)))));
_local28.normalMass = (1 / _local37);
_local38 = _local24;
_local39 = -(_local23);
_local40 = ((_local29 * _local38) + (_local30 * _local39));
_local41 = ((_local31 * _local38) + (_local32 * _local39));
_local42 = (_local9.m_invMass + _local10.m_invMass);
_local42 = (_local42 + ((_local9.m_invI * (_local33 - (_local40 * _local40))) + (_local10.m_invI * (_local34 - (_local41 * _local41)))));
_local28.tangentMass = (1 / _local42);
_local43 = (((_local17 + (-(_local20) * _local32)) - _local15) - (-(_local19) * _local30));
_local44 = (((_local18 + (_local20 * _local31)) - _local16) - (_local19 * _local29));
_local45 = ((_local25.normal.x * _local43) + (_local25.normal.y * _local44));
if (_local45 < -(b2Settings.b2_velocityThreshold)){
_local28.velocityBias = (-(_local25.restitution) * _local45);
} else {
_local28.velocityBias = 0;
};
_local26++;
};
_local7++;
_local21++;
};
_local4++;
};
}
public function SolveVelocityConstraints(){
var _local1:int;
var _local2:b2ContactConstraintPoint;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:b2Mat22;
var _local14:b2Vec2;
var _local16:b2ContactConstraint;
var _local17:b2Body;
var _local18:b2Body;
var _local19:Number;
var _local20:b2Vec2;
var _local21:Number;
var _local22:b2Vec2;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local27:Number;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:int;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local15:int;
while (_local15 < m_constraintCount) {
_local16 = m_constraints[_local15];
_local17 = _local16.body1;
_local18 = _local16.body2;
_local19 = _local17.m_angularVelocity;
_local20 = _local17.m_linearVelocity;
_local21 = _local18.m_angularVelocity;
_local22 = _local18.m_linearVelocity;
_local23 = _local17.m_invMass;
_local24 = _local17.m_invI;
_local25 = _local18.m_invMass;
_local26 = _local18.m_invI;
_local27 = _local16.normal.x;
_local28 = _local16.normal.y;
_local29 = _local28;
_local30 = -(_local27);
_local31 = _local16.pointCount;
_local1 = 0;
while (_local1 < _local31) {
_local2 = _local16.points[_local1];
_local13 = _local17.m_R;
_local14 = _local2.localAnchor1;
_local3 = ((_local13.col1.x * _local14.x) + (_local13.col2.x * _local14.y));
_local4 = ((_local13.col1.y * _local14.x) + (_local13.col2.y * _local14.y));
_local13 = _local18.m_R;
_local14 = _local2.localAnchor2;
_local5 = ((_local13.col1.x * _local14.x) + (_local13.col2.x * _local14.y));
_local6 = ((_local13.col1.y * _local14.x) + (_local13.col2.y * _local14.y));
_local7 = (((_local22.x + (-(_local21) * _local6)) - _local20.x) - (-(_local19) * _local4));
_local8 = (((_local22.y + (_local21 * _local5)) - _local20.y) - (_local19 * _local3));
_local32 = ((_local7 * _local27) + (_local8 * _local28));
_local9 = (-(_local2.normalMass) * (_local32 - _local2.velocityBias));
_local10 = b2Math.b2Max((_local2.normalImpulse + _local9), 0);
_local9 = (_local10 - _local2.normalImpulse);
_local11 = (_local9 * _local27);
_local12 = (_local9 * _local28);
_local20.x = (_local20.x - (_local23 * _local11));
_local20.y = (_local20.y - (_local23 * _local12));
_local19 = (_local19 - (_local24 * ((_local3 * _local12) - (_local4 * _local11))));
_local22.x = (_local22.x + (_local25 * _local11));
_local22.y = (_local22.y + (_local25 * _local12));
_local21 = (_local21 + (_local26 * ((_local5 * _local12) - (_local6 * _local11))));
_local2.normalImpulse = _local10;
_local7 = (((_local22.x + (-(_local21) * _local6)) - _local20.x) - (-(_local19) * _local4));
_local8 = (((_local22.y + (_local21 * _local5)) - _local20.y) - (_local19 * _local3));
_local33 = ((_local7 * _local29) + (_local8 * _local30));
_local9 = (_local2.tangentMass * -(_local33));
_local34 = (_local16.friction * _local2.normalImpulse);
_local10 = b2Math.b2Clamp((_local2.tangentImpulse + _local9), -(_local34), _local34);
_local9 = (_local10 - _local2.tangentImpulse);
_local11 = (_local9 * _local29);
_local12 = (_local9 * _local30);
_local20.x = (_local20.x - (_local23 * _local11));
_local20.y = (_local20.y - (_local23 * _local12));
_local19 = (_local19 - (_local24 * ((_local3 * _local12) - (_local4 * _local11))));
_local22.x = (_local22.x + (_local25 * _local11));
_local22.y = (_local22.y + (_local25 * _local12));
_local21 = (_local21 + (_local26 * ((_local5 * _local12) - (_local6 * _local11))));
_local2.tangentImpulse = _local10;
_local1++;
};
_local17.m_angularVelocity = _local19;
_local18.m_angularVelocity = _local21;
_local15++;
};
}
public function PreSolve(){
var _local1:b2Vec2;
var _local2:b2Vec2;
var _local3:b2Mat22;
var _local5:b2ContactConstraint;
var _local6:b2Body;
var _local7:b2Body;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:int;
var _local17:int;
var _local18:b2ContactConstraintPoint;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:b2ContactConstraintPoint;
var _local4:int;
while (_local4 < m_constraintCount) {
_local5 = m_constraints[_local4];
_local6 = _local5.body1;
_local7 = _local5.body2;
_local8 = _local6.m_invMass;
_local9 = _local6.m_invI;
_local10 = _local7.m_invMass;
_local11 = _local7.m_invI;
_local12 = _local5.normal.x;
_local13 = _local5.normal.y;
_local14 = _local13;
_local15 = -(_local12);
if (b2World.s_enableWarmStarting){
_local17 = _local5.pointCount;
_local16 = 0;
while (_local16 < _local17) {
_local18 = _local5.points[_local16];
_local19 = ((_local18.normalImpulse * _local12) + (_local18.tangentImpulse * _local14));
_local20 = ((_local18.normalImpulse * _local13) + (_local18.tangentImpulse * _local15));
_local3 = _local6.m_R;
_local1 = _local18.localAnchor1;
_local21 = ((_local3.col1.x * _local1.x) + (_local3.col2.x * _local1.y));
_local22 = ((_local3.col1.y * _local1.x) + (_local3.col2.y * _local1.y));
_local3 = _local7.m_R;
_local1 = _local18.localAnchor2;
_local23 = ((_local3.col1.x * _local1.x) + (_local3.col2.x * _local1.y));
_local24 = ((_local3.col1.y * _local1.x) + (_local3.col2.y * _local1.y));
_local6.m_angularVelocity = (_local6.m_angularVelocity - (_local9 * ((_local21 * _local20) - (_local22 * _local19))));
_local6.m_linearVelocity.x = (_local6.m_linearVelocity.x - (_local8 * _local19));
_local6.m_linearVelocity.y = (_local6.m_linearVelocity.y - (_local8 * _local20));
_local7.m_angularVelocity = (_local7.m_angularVelocity + (_local11 * ((_local23 * _local20) - (_local24 * _local19))));
_local7.m_linearVelocity.x = (_local7.m_linearVelocity.x + (_local10 * _local19));
_local7.m_linearVelocity.y = (_local7.m_linearVelocity.y + (_local10 * _local20));
_local18.positionImpulse = 0;
_local16++;
};
} else {
_local17 = _local5.pointCount;
_local16 = 0;
while (_local16 < _local17) {
_local25 = _local5.points[_local16];
_local25.normalImpulse = 0;
_local25.tangentImpulse = 0;
_local25.positionImpulse = 0;
_local16++;
};
};
_local4++;
};
}
public function SolvePositionConstraints(_arg1:Number):Boolean{
var _local3:b2Mat22;
var _local4:b2Vec2;
var _local6:b2ContactConstraint;
var _local7:b2Body;
var _local8:b2Body;
var _local9:b2Vec2;
var _local10:Number;
var _local11:b2Vec2;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:int;
var _local22:int;
var _local23:b2ContactConstraintPoint;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local27:Number;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local39:Number;
var _local2:Number = 0;
var _local5:int;
while (_local5 < m_constraintCount) {
_local6 = m_constraints[_local5];
_local7 = _local6.body1;
_local8 = _local6.body2;
_local9 = _local7.m_position;
_local10 = _local7.m_rotation;
_local11 = _local8.m_position;
_local12 = _local8.m_rotation;
_local13 = _local7.m_invMass;
_local14 = _local7.m_invI;
_local15 = _local8.m_invMass;
_local16 = _local8.m_invI;
_local17 = _local6.normal.x;
_local18 = _local6.normal.y;
_local19 = _local18;
_local20 = -(_local17);
_local21 = _local6.pointCount;
_local22 = 0;
while (_local22 < _local21) {
_local23 = _local6.points[_local22];
_local3 = _local7.m_R;
_local4 = _local23.localAnchor1;
_local24 = ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y));
_local25 = ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y));
_local3 = _local8.m_R;
_local4 = _local23.localAnchor2;
_local26 = ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y));
_local27 = ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y));
_local28 = (_local9.x + _local24);
_local29 = (_local9.y + _local25);
_local30 = (_local11.x + _local26);
_local31 = (_local11.y + _local27);
_local32 = (_local30 - _local28);
_local33 = (_local31 - _local29);
_local34 = (((_local32 * _local17) + (_local33 * _local18)) + _local23.separation);
_local2 = b2Math.b2Min(_local2, _local34);
_local35 = (_arg1 * b2Math.b2Clamp((_local34 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0));
_local36 = (-(_local23.normalMass) * _local35);
_local37 = _local23.positionImpulse;
_local23.positionImpulse = b2Math.b2Max((_local37 + _local36), 0);
_local36 = (_local23.positionImpulse - _local37);
_local38 = (_local36 * _local17);
_local39 = (_local36 * _local18);
_local9.x = (_local9.x - (_local13 * _local38));
_local9.y = (_local9.y - (_local13 * _local39));
_local10 = (_local10 - (_local14 * ((_local24 * _local39) - (_local25 * _local38))));
_local7.m_R.Set(_local10);
_local11.x = (_local11.x + (_local15 * _local38));
_local11.y = (_local11.y + (_local15 * _local39));
_local12 = (_local12 + (_local16 * ((_local26 * _local39) - (_local27 * _local38))));
_local8.m_R.Set(_local12);
_local22++;
};
_local7.m_rotation = _local10;
_local8.m_rotation = _local12;
_local5++;
};
return ((_local2 >= -(b2Settings.b2_linearSlop)));
}
public function PostSolve(){
var _local2:b2ContactConstraint;
var _local3:b2Manifold;
var _local4:int;
var _local5:b2ContactPoint;
var _local6:b2ContactConstraintPoint;
var _local1:int;
while (_local1 < m_constraintCount) {
_local2 = m_constraints[_local1];
_local3 = _local2.manifold;
_local4 = 0;
while (_local4 < _local2.pointCount) {
_local5 = _local3.points[_local4];
_local6 = _local2.points[_local4];
_local5.normalImpulse = _local6.normalImpulse;
_local5.tangentImpulse = _local6.tangentImpulse;
_local4++;
};
_local1++;
};
}
}
}//package Engine.Dynamics.Contacts
Section 39
//b2NullContact (Engine.Dynamics.Contacts.b2NullContact)
package Engine.Dynamics.Contacts {
public class b2NullContact extends b2Contact {
override public function Evaluate(){
}
override public function GetManifolds():Array{
return (null);
}
}
}//package Engine.Dynamics.Contacts
Section 40
//b2PolyAndCircleContact (Engine.Dynamics.Contacts.b2PolyAndCircleContact)
package Engine.Dynamics.Contacts {
import Engine.Collision.Shapes.*;
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2PolyAndCircleContact extends b2Contact {
public var m_manifold:Array;
public function b2PolyAndCircleContact(_arg1:b2Shape, _arg2:b2Shape){
m_manifold = [new b2Manifold()];
super(_arg1, _arg2);
b2Settings.b2Assert((m_shape1.m_type == b2Shape.e_polyShape));
b2Settings.b2Assert((m_shape2.m_type == b2Shape.e_circleShape));
m_manifold[0].pointCount = 0;
m_manifold[0].points[0].normalImpulse = 0;
m_manifold[0].points[0].tangentImpulse = 0;
}
override public function Evaluate(){
b2Collision.b2CollidePolyAndCircle(m_manifold[0], (m_shape1 as b2PolyShape), (m_shape2 as b2CircleShape));
if (m_manifold[0].pointCount > 0){
m_manifoldCount = 1;
} else {
m_manifoldCount = 0;
};
}
override public function GetManifolds():Array{
return (m_manifold);
}
public static function Destroy(_arg1:b2Contact, _arg2){
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2PolyAndCircleContact(_arg1, _arg2));
}
}
}//package Engine.Dynamics.Contacts
Section 41
//b2PolyContact (Engine.Dynamics.Contacts.b2PolyContact)
package Engine.Dynamics.Contacts {
import Engine.Collision.Shapes.*;
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2PolyContact extends b2Contact {
public var m_manifold:Array;
private var m0:b2Manifold;
public function b2PolyContact(_arg1:b2Shape, _arg2:b2Shape){
m0 = new b2Manifold();
m_manifold = [new b2Manifold()];
super(_arg1, _arg2);
m_manifold[0].pointCount = 0;
}
override public function Evaluate(){
var _local4:b2ContactPoint;
var _local5:b2ContactPoint;
var _local6:Array;
var _local7:int;
var _local8:b2ContactPoint;
var _local9:uint;
var _local10:int;
var _local11:b2ContactPoint;
var _local12:b2ContactID;
var _local1:b2Manifold = m_manifold[0];
var _local2:Array = m0.points;
var _local3:int;
while (_local3 < _local1.pointCount) {
_local4 = _local2[_local3];
_local5 = _local1.points[_local3];
_local4.normalImpulse = _local5.normalImpulse;
_local4.tangentImpulse = _local5.tangentImpulse;
_local4.id = _local5.id.Copy();
_local3++;
};
m0.pointCount = _local1.pointCount;
b2Collision.b2CollidePoly(_local1, (m_shape1 as b2PolyShape), (m_shape2 as b2PolyShape));
if (_local1.pointCount > 0){
_local6 = [false, false];
_local7 = 0;
while (_local7 < _local1.pointCount) {
_local8 = _local1.points[_local7];
_local8.normalImpulse = 0;
_local8.tangentImpulse = 0;
_local9 = _local8.id.key;
_local10 = 0;
while (_local10 < m0.pointCount) {
if (_local6[_local10] == true){
} else {
_local11 = m0.points[_local10];
_local12 = _local11.id;
if (_local12.key == _local9){
_local6[_local10] = true;
_local8.normalImpulse = _local11.normalImpulse;
_local8.tangentImpulse = _local11.tangentImpulse;
break;
};
};
_local10++;
};
_local7++;
};
m_manifoldCount = 1;
} else {
m_manifoldCount = 0;
};
}
override public function GetManifolds():Array{
return (m_manifold);
}
public static function Destroy(_arg1:b2Contact, _arg2){
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2PolyContact(_arg1, _arg2));
}
}
}//package Engine.Dynamics.Contacts
Section 42
//b2DistanceJoint (Engine.Dynamics.Joints.b2DistanceJoint)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2DistanceJoint extends b2Joint {
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
public var m_u:b2Vec2;
public var m_impulse:Number;
public var m_length:Number;
public var m_mass:Number;
public function b2DistanceJoint(_arg1:b2DistanceJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_u = new b2Vec2();
super(_arg1);
_local2 = m_body1.m_R;
_local3 = (_arg1.anchorPoint1.x - m_body1.m_position.x);
_local4 = (_arg1.anchorPoint1.y - m_body1.m_position.y);
m_localAnchor1.x = ((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y));
m_localAnchor1.y = ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y));
_local2 = m_body2.m_R;
_local3 = (_arg1.anchorPoint2.x - m_body2.m_position.x);
_local4 = (_arg1.anchorPoint2.y - m_body2.m_position.y);
m_localAnchor2.x = ((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y));
m_localAnchor2.y = ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y));
_local3 = (_arg1.anchorPoint2.x - _arg1.anchorPoint1.x);
_local4 = (_arg1.anchorPoint2.y - _arg1.anchorPoint1.y);
m_length = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
m_impulse = 0;
}
override public function GetAnchor1():b2Vec2{
return (b2Math.AddVV(m_body1.m_position, b2Math.b2MulMV(m_body1.m_R, m_localAnchor1)));
}
override public function GetAnchor2():b2Vec2{
return (b2Math.AddVV(m_body2.m_position, b2Math.b2MulMV(m_body2.m_R, m_localAnchor2)));
}
override public function GetReactionTorque(_arg1:Number):Number{
return (0);
}
override public function GetReactionForce(_arg1:Number):b2Vec2{
var _local2:b2Vec2 = new b2Vec2();
_local2.SetV(m_u);
_local2.Multiply((m_impulse * _arg1));
return (_local2);
}
override public function SolvePositionConstraints():Boolean{
var _local1:b2Mat22;
_local1 = m_body1.m_R;
var _local2:Number = ((_local1.col1.x * m_localAnchor1.x) + (_local1.col2.x * m_localAnchor1.y));
var _local3:Number = ((_local1.col1.y * m_localAnchor1.x) + (_local1.col2.y * m_localAnchor1.y));
_local1 = m_body2.m_R;
var _local4:Number = ((_local1.col1.x * m_localAnchor2.x) + (_local1.col2.x * m_localAnchor2.y));
var _local5:Number = ((_local1.col1.y * m_localAnchor2.x) + (_local1.col2.y * m_localAnchor2.y));
var _local6:Number = (((m_body2.m_position.x + _local4) - m_body1.m_position.x) - _local2);
var _local7:Number = (((m_body2.m_position.y + _local5) - m_body1.m_position.y) - _local3);
var _local8:Number = Math.sqrt(((_local6 * _local6) + (_local7 * _local7)));
_local6 = (_local6 / _local8);
_local7 = (_local7 / _local8);
var _local9:Number = (_local8 - m_length);
_local9 = b2Math.b2Clamp(_local9, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
var _local10:Number = (-(m_mass) * _local9);
m_u.Set(_local6, _local7);
var _local11:Number = (_local10 * m_u.x);
var _local12:Number = (_local10 * m_u.y);
m_body1.m_position.x = (m_body1.m_position.x - (m_body1.m_invMass * _local11));
m_body1.m_position.y = (m_body1.m_position.y - (m_body1.m_invMass * _local12));
m_body1.m_rotation = (m_body1.m_rotation - (m_body1.m_invI * ((_local2 * _local12) - (_local3 * _local11))));
m_body2.m_position.x = (m_body2.m_position.x + (m_body2.m_invMass * _local11));
m_body2.m_position.y = (m_body2.m_position.y + (m_body2.m_invMass * _local12));
m_body2.m_rotation = (m_body2.m_rotation + (m_body2.m_invI * ((_local4 * _local12) - (_local5 * _local11))));
m_body1.m_R.Set(m_body1.m_rotation);
m_body2.m_R.Set(m_body2.m_rotation);
return ((b2Math.b2Abs(_local9) < b2Settings.b2_linearSlop));
}
override public function PrepareVelocitySolver(){
var _local1:b2Mat22;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local9:Number;
var _local10:Number;
_local1 = m_body1.m_R;
_local2 = ((_local1.col1.x * m_localAnchor1.x) + (_local1.col2.x * m_localAnchor1.y));
_local3 = ((_local1.col1.y * m_localAnchor1.x) + (_local1.col2.y * m_localAnchor1.y));
_local1 = m_body2.m_R;
_local4 = ((_local1.col1.x * m_localAnchor2.x) + (_local1.col2.x * m_localAnchor2.y));
_local5 = ((_local1.col1.y * m_localAnchor2.x) + (_local1.col2.y * m_localAnchor2.y));
m_u.x = (((m_body2.m_position.x + _local4) - m_body1.m_position.x) - _local2);
m_u.y = (((m_body2.m_position.y + _local5) - m_body1.m_position.y) - _local3);
var _local6:Number = Math.sqrt(((m_u.x * m_u.x) + (m_u.y * m_u.y)));
if (_local6 > b2Settings.b2_linearSlop){
m_u.Multiply((1 / _local6));
} else {
m_u.SetZero();
};
var _local7:Number = ((_local2 * m_u.y) - (_local3 * m_u.x));
var _local8:Number = ((_local4 * m_u.y) - (_local5 * m_u.x));
m_mass = (((m_body1.m_invMass + ((m_body1.m_invI * _local7) * _local7)) + m_body2.m_invMass) + ((m_body2.m_invI * _local8) * _local8));
m_mass = (1 / m_mass);
if (b2World.s_enableWarmStarting){
_local9 = (m_impulse * m_u.x);
_local10 = (m_impulse * m_u.y);
m_body1.m_linearVelocity.x = (m_body1.m_linearVelocity.x - (m_body1.m_invMass * _local9));
m_body1.m_linearVelocity.y = (m_body1.m_linearVelocity.y - (m_body1.m_invMass * _local10));
m_body1.m_angularVelocity = (m_body1.m_angularVelocity - (m_body1.m_invI * ((_local2 * _local10) - (_local3 * _local9))));
m_body2.m_linearVelocity.x = (m_body2.m_linearVelocity.x + (m_body2.m_invMass * _local9));
m_body2.m_linearVelocity.y = (m_body2.m_linearVelocity.y + (m_body2.m_invMass * _local10));
m_body2.m_angularVelocity = (m_body2.m_angularVelocity + (m_body2.m_invI * ((_local4 * _local10) - (_local5 * _local9))));
} else {
m_impulse = 0;
};
}
override public function SolveVelocityConstraints(_arg1:b2StepInfo){
var _local2:b2Mat22;
var _local14:Number;
_local2 = m_body1.m_R;
var _local3:Number = ((_local2.col1.x * m_localAnchor1.x) + (_local2.col2.x * m_localAnchor1.y));
var _local4:Number = ((_local2.col1.y * m_localAnchor1.x) + (_local2.col2.y * m_localAnchor1.y));
_local2 = m_body2.m_R;
var _local5:Number = ((_local2.col1.x * m_localAnchor2.x) + (_local2.col2.x * m_localAnchor2.y));
var _local6:Number = ((_local2.col1.y * m_localAnchor2.x) + (_local2.col2.y * m_localAnchor2.y));
var _local7:Number = (m_body1.m_linearVelocity.x + (-(m_body1.m_angularVelocity) * _local4));
var _local8:Number = (m_body1.m_linearVelocity.y + (m_body1.m_angularVelocity * _local3));
var _local9:Number = (m_body2.m_linearVelocity.x + (-(m_body2.m_angularVelocity) * _local6));
var _local10:Number = (m_body2.m_linearVelocity.y + (m_body2.m_angularVelocity * _local5));
var _local11:Number = ((m_u.x * (_local9 - _local7)) + (m_u.y * (_local10 - _local8)));
var _local12:Number = (-(m_mass) * _local11);
m_impulse = (m_impulse + _local12);
var _local13:Number = (_local12 * m_u.x);
_local14 = (_local12 * m_u.y);
m_body1.m_linearVelocity.x = (m_body1.m_linearVelocity.x - (m_body1.m_invMass * _local13));
m_body1.m_linearVelocity.y = (m_body1.m_linearVelocity.y - (m_body1.m_invMass * _local14));
m_body1.m_angularVelocity = (m_body1.m_angularVelocity - (m_body1.m_invI * ((_local3 * _local14) - (_local4 * _local13))));
m_body2.m_linearVelocity.x = (m_body2.m_linearVelocity.x + (m_body2.m_invMass * _local13));
m_body2.m_linearVelocity.y = (m_body2.m_linearVelocity.y + (m_body2.m_invMass * _local14));
m_body2.m_angularVelocity = (m_body2.m_angularVelocity + (m_body2.m_invI * ((_local5 * _local14) - (_local6 * _local13))));
}
}
}//package Engine.Dynamics.Joints
Section 43
//b2DistanceJointDef (Engine.Dynamics.Joints.b2DistanceJointDef)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
public class b2DistanceJointDef extends b2JointDef {
public var anchorPoint1:b2Vec2;
public var anchorPoint2:b2Vec2;
public function b2DistanceJointDef(){
anchorPoint1 = new b2Vec2();
anchorPoint2 = new b2Vec2();
super();
type = b2Joint.e_distanceJoint;
}
}
}//package Engine.Dynamics.Joints
Section 44
//b2GearJoint (Engine.Dynamics.Joints.b2GearJoint)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2GearJoint extends b2Joint {
public var m_ground2:b2Body;
public var m_groundAnchor1:b2Vec2;
public var m_groundAnchor2:b2Vec2;
public var m_revolute2:b2RevoluteJoint;
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
public var m_ratio:Number;
public var m_mass:Number;
public var m_impulse:Number;
public var m_prismatic2:b2PrismaticJoint;
public var m_ground1:b2Body;
public var m_revolute1:b2RevoluteJoint;
public var m_prismatic1:b2PrismaticJoint;
public var m_constant:Number;
public var m_J:b2Jacobian;
public function b2GearJoint(_arg1:b2GearJointDef){
var _local2:Number;
var _local3:Number;
m_groundAnchor1 = new b2Vec2();
m_groundAnchor2 = new b2Vec2();
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_J = new b2Jacobian();
super(_arg1);
m_revolute1 = null;
m_prismatic1 = null;
m_revolute2 = null;
m_prismatic2 = null;
m_ground1 = _arg1.joint1.m_body1;
m_body1 = _arg1.joint1.m_body2;
if (_arg1.joint1.m_type == b2Joint.e_revoluteJoint){
m_revolute1 = (_arg1.joint1 as b2RevoluteJoint);
m_groundAnchor1.SetV(m_revolute1.m_localAnchor1);
m_localAnchor1.SetV(m_revolute1.m_localAnchor2);
_local2 = m_revolute1.GetJointAngle();
} else {
m_prismatic1 = (_arg1.joint1 as b2PrismaticJoint);
m_groundAnchor1.SetV(m_prismatic1.m_localAnchor1);
m_localAnchor1.SetV(m_prismatic1.m_localAnchor2);
_local2 = m_prismatic1.GetJointTranslation();
};
m_ground2 = _arg1.joint2.m_body1;
m_body2 = _arg1.joint2.m_body2;
if (_arg1.joint2.m_type == b2Joint.e_revoluteJoint){
m_revolute2 = (_arg1.joint2 as b2RevoluteJoint);
m_groundAnchor2.SetV(m_revolute2.m_localAnchor1);
m_localAnchor2.SetV(m_revolute2.m_localAnchor2);
_local3 = m_revolute2.GetJointAngle();
} else {
m_prismatic2 = (_arg1.joint2 as b2PrismaticJoint);
m_groundAnchor2.SetV(m_prismatic2.m_localAnchor1);
m_localAnchor2.SetV(m_prismatic2.m_localAnchor2);
_local3 = m_prismatic2.GetJointTranslation();
};
m_ratio = _arg1.ratio;
m_constant = (_local2 + (m_ratio * _local3));
m_impulse = 0;
}
override public function GetAnchor1():b2Vec2{
var _local1:b2Mat22 = m_body1.m_R;
return (new b2Vec2((m_body1.m_position.x + ((_local1.col1.x * m_localAnchor1.x) + (_local1.col2.x * m_localAnchor1.y))), (m_body1.m_position.y + ((_local1.col1.y * m_localAnchor1.x) + (_local1.col2.y * m_localAnchor1.y)))));
}
override public function GetAnchor2():b2Vec2{
var _local1:b2Mat22 = m_body2.m_R;
return (new b2Vec2((m_body2.m_position.x + ((_local1.col1.x * m_localAnchor2.x) + (_local1.col2.x * m_localAnchor2.y))), (m_body2.m_position.y + ((_local1.col1.y * m_localAnchor2.x) + (_local1.col2.y * m_localAnchor2.y)))));
}
override public function PrepareVelocitySolver(){
var _local3:b2Body;
var _local4:b2Body;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:b2Mat22;
var _local10:b2Vec2;
var _local11:Number;
var _local1:b2Body = m_ground1;
var _local2:b2Body = m_ground2;
_local3 = m_body1;
_local4 = m_body2;
var _local12:Number = 0;
m_J.SetZero();
if (m_revolute1){
m_J.angular1 = -1;
_local12 = (_local12 + _local3.m_invI);
} else {
_local9 = _local1.m_R;
_local10 = m_prismatic1.m_localXAxis1;
_local5 = ((_local9.col1.x * _local10.x) + (_local9.col2.x * _local10.y));
_local6 = ((_local9.col1.y * _local10.x) + (_local9.col2.y * _local10.y));
_local9 = _local3.m_R;
_local7 = ((_local9.col1.x * m_localAnchor1.x) + (_local9.col2.x * m_localAnchor1.y));
_local8 = ((_local9.col1.y * m_localAnchor1.x) + (_local9.col2.y * m_localAnchor1.y));
_local11 = ((_local7 * _local6) - (_local8 * _local5));
m_J.linear1.Set(-(_local5), -(_local6));
m_J.angular1 = -(_local11);
_local12 = (_local12 + (_local3.m_invMass + ((_local3.m_invI * _local11) * _local11)));
};
if (m_revolute2){
m_J.angular2 = -(m_ratio);
_local12 = (_local12 + ((m_ratio * m_ratio) * _local4.m_invI));
} else {
_local9 = _local2.m_R;
_local10 = m_prismatic2.m_localXAxis1;
_local5 = ((_local9.col1.x * _local10.x) + (_local9.col2.x * _local10.y));
_local6 = ((_local9.col1.y * _local10.x) + (_local9.col2.y * _local10.y));
_local9 = _local4.m_R;
_local7 = ((_local9.col1.x * m_localAnchor2.x) + (_local9.col2.x * m_localAnchor2.y));
_local8 = ((_local9.col1.y * m_localAnchor2.x) + (_local9.col2.y * m_localAnchor2.y));
_local11 = ((_local7 * _local6) - (_local8 * _local5));
m_J.linear2.Set((-(m_ratio) * _local5), (-(m_ratio) * _local6));
m_J.angular2 = (-(m_ratio) * _local11);
_local12 = (_local12 + ((m_ratio * m_ratio) * (_local4.m_invMass + ((_local4.m_invI * _local11) * _local11))));
};
m_mass = (1 / _local12);
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local3.m_invMass * m_impulse) * m_J.linear1.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local3.m_invMass * m_impulse) * m_J.linear1.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3.m_invI * m_impulse) * m_J.angular1));
_local4.m_linearVelocity.x = (_local4.m_linearVelocity.x + ((_local4.m_invMass * m_impulse) * m_J.linear2.x));
_local4.m_linearVelocity.y = (_local4.m_linearVelocity.y + ((_local4.m_invMass * m_impulse) * m_J.linear2.y));
_local4.m_angularVelocity = (_local4.m_angularVelocity + ((_local4.m_invI * m_impulse) * m_J.angular2));
}
override public function GetReactionTorque(_arg1:Number):Number{
return (0);
}
override public function GetReactionForce(_arg1:Number):b2Vec2{
return (new b2Vec2());
}
override public function SolvePositionConstraints():Boolean{
var _local4:Number;
var _local5:Number;
var _local1:Number = 0;
var _local2:b2Body = m_body1;
var _local3:b2Body = m_body2;
if (m_revolute1){
_local4 = m_revolute1.GetJointAngle();
} else {
_local4 = m_prismatic1.GetJointTranslation();
};
if (m_revolute2){
_local5 = m_revolute2.GetJointAngle();
} else {
_local5 = m_prismatic2.GetJointTranslation();
};
var _local6:Number = (m_constant - (_local4 + (m_ratio * _local5)));
var _local7:Number = (-(m_mass) * _local6);
_local2.m_position.x = (_local2.m_position.x + ((_local2.m_invMass * _local7) * m_J.linear1.x));
_local2.m_position.y = (_local2.m_position.y + ((_local2.m_invMass * _local7) * m_J.linear1.y));
_local2.m_rotation = (_local2.m_rotation + ((_local2.m_invI * _local7) * m_J.angular1));
_local3.m_position.x = (_local3.m_position.x + ((_local3.m_invMass * _local7) * m_J.linear2.x));
_local3.m_position.y = (_local3.m_position.y + ((_local3.m_invMass * _local7) * m_J.linear2.y));
_local3.m_rotation = (_local3.m_rotation + ((_local3.m_invI * _local7) * m_J.angular2));
_local2.m_R.Set(_local2.m_rotation);
_local3.m_R.Set(_local3.m_rotation);
return ((_local1 < b2Settings.b2_linearSlop));
}
public function GetRatio():Number{
return (m_ratio);
}
override public function SolveVelocityConstraints(_arg1:b2StepInfo){
var _local2:b2Body = m_body1;
var _local3:b2Body = m_body2;
var _local4:Number = m_J.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity);
var _local5:Number = (-(m_mass) * _local4);
m_impulse = (m_impulse + _local5);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + ((_local2.m_invMass * _local5) * m_J.linear1.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + ((_local2.m_invMass * _local5) * m_J.linear1.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local2.m_invI * _local5) * m_J.angular1));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local3.m_invMass * _local5) * m_J.linear2.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local3.m_invMass * _local5) * m_J.linear2.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3.m_invI * _local5) * m_J.angular2));
}
}
}//package Engine.Dynamics.Joints
Section 45
//b2GearJointDef (Engine.Dynamics.Joints.b2GearJointDef)
package Engine.Dynamics.Joints {
public class b2GearJointDef extends b2JointDef {
public var joint1:b2Joint;
public var joint2:b2Joint;
public var ratio:Number;
public function b2GearJointDef(){
type = b2Joint.e_gearJoint;
joint1 = null;
joint2 = null;
ratio = 1;
}
}
}//package Engine.Dynamics.Joints
Section 46
//b2Jacobian (Engine.Dynamics.Joints.b2Jacobian)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
public class b2Jacobian {
public var linear1:b2Vec2;
public var linear2:b2Vec2;
public var angular1:Number;
public var angular2:Number;
public function b2Jacobian(){
linear1 = new b2Vec2();
linear2 = new b2Vec2();
super();
}
public function Set(_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:Number){
linear1.SetV(_arg1);
angular1 = _arg2;
linear2.SetV(_arg3);
angular2 = _arg4;
}
public function SetZero(){
linear1.SetZero();
angular1 = 0;
linear2.SetZero();
angular2 = 0;
}
public function Compute(_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:Number):Number{
return ((((((linear1.x * _arg1.x) + (linear1.y * _arg1.y)) + (angular1 * _arg2)) + ((linear2.x * _arg3.x) + (linear2.y * _arg3.y))) + (angular2 * _arg4)));
}
}
}//package Engine.Dynamics.Joints
Section 47
//b2Joint (Engine.Dynamics.Joints.b2Joint)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
import Engine.Dynamics.*;
public class b2Joint {
public var m_islandFlag:Boolean;
public var m_collideConnected:Boolean;
public var m_prev:b2Joint;
public var m_next:b2Joint;
public var m_type:int;
public var m_node1:b2JointNode;
public var m_node2:b2JointNode;
public var m_userData;
public var m_body1:b2Body;
public var m_body2:b2Body;
public static const e_unknownJoint:int = 0;
public static const e_inactiveLimit:int = 0;
public static const e_atUpperLimit:int = 2;
public static const e_atLowerLimit:int = 1;
public static const e_gearJoint:int = 6;
public static const e_revoluteJoint:int = 1;
public static const e_equalLimits:int = 3;
public static const e_distanceJoint:int = 3;
public static const e_pulleyJoint:int = 4;
public static const e_prismaticJoint:int = 2;
public static const e_mouseJoint:int = 5;
public function b2Joint(_arg1:b2JointDef){
m_node1 = new b2JointNode();
m_node2 = new b2JointNode();
super();
m_type = _arg1.type;
m_prev = null;
m_next = null;
m_body1 = _arg1.body1;
m_body2 = _arg1.body2;
m_collideConnected = _arg1.collideConnected;
m_islandFlag = false;
m_userData = _arg1.userData;
}
public function GetAnchor1():b2Vec2{
return (null);
}
public function GetAnchor2():b2Vec2{
return (null);
}
public function GetNext():b2Joint{
return (m_next);
}
public function GetType():int{
return (m_type);
}
public function SolveVelocityConstraints(_arg1:b2StepInfo){
}
public function PrepareVelocitySolver(){
}
public function PreparePositionSolver(){
}
public function GetReactionTorque(_arg1:Number):Number{
return (0);
}
public function GetUserData(){
return (m_userData);
}
public function GetReactionForce(_arg1:Number):b2Vec2{
return (null);
}
public function SolvePositionConstraints():Boolean{
return (false);
}
public function GetBody1():b2Body{
return (m_body1);
}
public function GetBody2():b2Body{
return (m_body2);
}
public static function Destroy(_arg1:b2Joint, _arg2){
}
public static function Create(_arg1:b2JointDef, _arg2):b2Joint{
var _local3:b2Joint;
switch (_arg1.type){
case e_distanceJoint:
_local3 = new b2DistanceJoint((_arg1 as b2DistanceJointDef));
break;
case e_mouseJoint:
_local3 = new b2MouseJoint((_arg1 as b2MouseJointDef));
break;
case e_prismaticJoint:
_local3 = new b2PrismaticJoint((_arg1 as b2PrismaticJointDef));
break;
case e_revoluteJoint:
_local3 = new b2RevoluteJoint((_arg1 as b2RevoluteJointDef));
break;
case e_pulleyJoint:
_local3 = new b2PulleyJoint((_arg1 as b2PulleyJointDef));
break;
case e_gearJoint:
_local3 = new b2GearJoint((_arg1 as b2GearJointDef));
break;
default:
break;
};
return (_local3);
}
}
}//package Engine.Dynamics.Joints
Section 48
//b2JointDef (Engine.Dynamics.Joints.b2JointDef)
package Engine.Dynamics.Joints {
import Engine.Dynamics.*;
public class b2JointDef {
public var body2:b2Body;
public var type:int;
public var userData;
public var collideConnected:Boolean;
public var body1:b2Body;
public function b2JointDef(){
type = b2Joint.e_unknownJoint;
userData = null;
body1 = null;
body2 = null;
collideConnected = false;
}
}
}//package Engine.Dynamics.Joints
Section 49
//b2JointNode (Engine.Dynamics.Joints.b2JointNode)
package Engine.Dynamics.Joints {
import Engine.Dynamics.*;
public class b2JointNode {
public var other:b2Body;
public var next:b2JointNode;
public var prev:b2JointNode;
public var joint:b2Joint;
}
}//package Engine.Dynamics.Joints
Section 50
//b2MouseJoint (Engine.Dynamics.Joints.b2MouseJoint)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2MouseJoint extends b2Joint {
private var K1:b2Mat22;
public var m_beta:Number;
private var K:b2Mat22;
private var K2:b2Mat22;
public var m_target:b2Vec2;
public var m_gamma:Number;
public var m_impulse:b2Vec2;
public var m_ptpMass:b2Mat22;
public var m_C:b2Vec2;
public var m_maxForce:Number;
public var m_localAnchor:b2Vec2;
public function b2MouseJoint(_arg1:b2MouseJointDef){
var _local3:Number;
K = new b2Mat22();
K1 = new b2Mat22();
K2 = new b2Mat22();
m_localAnchor = new b2Vec2();
m_target = new b2Vec2();
m_impulse = new b2Vec2();
m_ptpMass = new b2Mat22();
m_C = new b2Vec2();
super(_arg1);
m_target.SetV(_arg1.target);
var _local2:Number = (m_target.x - m_body2.m_position.x);
_local3 = (m_target.y - m_body2.m_position.y);
m_localAnchor.x = ((_local2 * m_body2.m_R.col1.x) + (_local3 * m_body2.m_R.col1.y));
m_localAnchor.y = ((_local2 * m_body2.m_R.col2.x) + (_local3 * m_body2.m_R.col2.y));
m_maxForce = _arg1.maxForce;
m_impulse.SetZero();
var _local4:Number = m_body2.m_mass;
var _local5:Number = ((2 * b2Settings.b2_pi) * _arg1.frequencyHz);
var _local6:Number = (((2 * _local4) * _arg1.dampingRatio) * _local5);
var _local7:Number = ((_local4 * _local5) * _local5);
m_gamma = (1 / (_local6 + (_arg1.timeStep * _local7)));
m_beta = ((_arg1.timeStep * _local7) / (_local6 + (_arg1.timeStep * _local7)));
}
public function SetTarget(_arg1:b2Vec2){
m_body2.WakeUp();
m_target = _arg1;
}
override public function GetAnchor2():b2Vec2{
var _local1:b2Vec2 = b2Math.b2MulMV(m_body2.m_R, m_localAnchor);
_local1.Add(m_body2.m_position);
return (_local1);
}
override public function GetAnchor1():b2Vec2{
return (m_target);
}
override public function PrepareVelocitySolver(){
var _local1:b2Body;
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local1 = m_body2;
_local2 = _local1.m_R;
_local3 = ((_local2.col1.x * m_localAnchor.x) + (_local2.col2.x * m_localAnchor.y));
_local4 = ((_local2.col1.y * m_localAnchor.x) + (_local2.col2.y * m_localAnchor.y));
_local5 = _local1.m_invMass;
_local6 = _local1.m_invI;
K1.col1.x = _local5;
K1.col2.x = 0;
K1.col1.y = 0;
K1.col2.y = _local5;
K2.col1.x = ((_local6 * _local4) * _local4);
K2.col2.x = ((-(_local6) * _local3) * _local4);
K2.col1.y = ((-(_local6) * _local3) * _local4);
K2.col2.y = ((_local6 * _local3) * _local3);
K.SetM(K1);
K.AddM(K2);
K.col1.x = (K.col1.x + m_gamma);
K.col2.y = (K.col2.y + m_gamma);
K.Invert(m_ptpMass);
m_C.x = ((_local1.m_position.x + _local3) - m_target.x);
m_C.y = ((_local1.m_position.y + _local4) - m_target.y);
_local1.m_angularVelocity = (_local1.m_angularVelocity * 0.98);
var _local7:Number = m_impulse.x;
var _local8:Number = m_impulse.y;
_local1.m_linearVelocity.x = (_local1.m_linearVelocity.x + (_local5 * _local7));
_local1.m_linearVelocity.y = (_local1.m_linearVelocity.y + (_local5 * _local8));
_local1.m_angularVelocity = (_local1.m_angularVelocity + (_local6 * ((_local3 * _local8) - (_local4 * _local7))));
}
override public function GetReactionTorque(_arg1:Number):Number{
return (0);
}
override public function GetReactionForce(_arg1:Number):b2Vec2{
var _local2:b2Vec2 = new b2Vec2();
_local2.SetV(m_impulse);
_local2.Multiply(_arg1);
return (_local2);
}
override public function SolvePositionConstraints():Boolean{
return (true);
}
override public function SolveVelocityConstraints(_arg1:b2StepInfo){
var _local3:b2Mat22;
var _local2:b2Body = m_body2;
_local3 = _local2.m_R;
var _local4:Number = ((_local3.col1.x * m_localAnchor.x) + (_local3.col2.x * m_localAnchor.y));
var _local5:Number = ((_local3.col1.y * m_localAnchor.x) + (_local3.col2.y * m_localAnchor.y));
var _local6:Number = (_local2.m_linearVelocity.x + (-(_local2.m_angularVelocity) * _local5));
var _local7:Number = (_local2.m_linearVelocity.y + (_local2.m_angularVelocity * _local4));
_local3 = m_ptpMass;
var _local8:Number = ((_local6 + ((m_beta * _arg1.inv_dt) * m_C.x)) + (m_gamma * m_impulse.x));
var _local9:Number = ((_local7 + ((m_beta * _arg1.inv_dt) * m_C.y)) + (m_gamma * m_impulse.y));
var _local10:Number = -(((_local3.col1.x * _local8) + (_local3.col2.x * _local9)));
var _local11:Number = -(((_local3.col1.y * _local8) + (_local3.col2.y * _local9)));
var _local12:Number = m_impulse.x;
var _local13:Number = m_impulse.y;
m_impulse.x = (m_impulse.x + _local10);
m_impulse.y = (m_impulse.y + _local11);
var _local14:Number = m_impulse.Length();
if (_local14 > (_arg1.dt * m_maxForce)){
m_impulse.Multiply(((_arg1.dt * m_maxForce) / _local14));
};
_local10 = (m_impulse.x - _local12);
_local11 = (m_impulse.y - _local13);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local2.m_invMass * _local10));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local2.m_invMass * _local11));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.m_invI * ((_local4 * _local11) - (_local5 * _local10))));
}
}
}//package Engine.Dynamics.Joints
Section 51
//b2MouseJointDef (Engine.Dynamics.Joints.b2MouseJointDef)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
public class b2MouseJointDef extends b2JointDef {
public var timeStep:Number;
public var target:b2Vec2;
public var maxForce:Number;
public var dampingRatio:Number;
public var frequencyHz:Number;
public function b2MouseJointDef(){
target = new b2Vec2();
super();
type = b2Joint.e_mouseJoint;
maxForce = 0;
frequencyHz = 5;
dampingRatio = 0.7;
timeStep = (1 / 60);
}
}
}//package Engine.Dynamics.Joints
Section 52
//b2PrismaticJoint (Engine.Dynamics.Joints.b2PrismaticJoint)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2PrismaticJoint extends b2Joint {
public var m_initialAngle:Number;
public var m_localXAxis1:b2Vec2;
public var m_lowerTranslation:Number;
public var m_angularMass:Number;
public var m_enableLimit:Boolean;
public var m_maxMotorForce:Number;
public var m_limitState:int;
public var m_localYAxis1:b2Vec2;
public var m_motorMass:Number;
public var m_linearImpulse:Number;
public var m_upperTranslation:Number;
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
public var m_angularImpulse:Number;
public var m_linearMass:Number;
public var m_motorImpulse:Number;
public var m_limitImpulse:Number;
public var m_motorJacobian:b2Jacobian;
public var m_limitPositionImpulse:Number;
public var m_motorSpeed:Number;
public var m_enableMotor:Boolean;
public var m_linearJacobian:b2Jacobian;
public function b2PrismaticJoint(_arg1:b2PrismaticJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_localXAxis1 = new b2Vec2();
m_localYAxis1 = new b2Vec2();
m_linearJacobian = new b2Jacobian();
m_motorJacobian = new b2Jacobian();
super(_arg1);
_local2 = m_body1.m_R;
_local3 = (_arg1.anchorPoint.x - m_body1.m_position.x);
_local4 = (_arg1.anchorPoint.y - m_body1.m_position.y);
m_localAnchor1.Set(((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y)), ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y)));
_local2 = m_body2.m_R;
_local3 = (_arg1.anchorPoint.x - m_body2.m_position.x);
_local4 = (_arg1.anchorPoint.y - m_body2.m_position.y);
m_localAnchor2.Set(((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y)), ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y)));
_local2 = m_body1.m_R;
_local3 = _arg1.axis.x;
_local4 = _arg1.axis.y;
m_localXAxis1.Set(((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y)), ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y)));
m_localYAxis1.x = -(m_localXAxis1.y);
m_localYAxis1.y = m_localXAxis1.x;
m_initialAngle = (m_body2.m_rotation - m_body1.m_rotation);
m_linearJacobian.SetZero();
m_linearMass = 0;
m_linearImpulse = 0;
m_angularMass = 0;
m_angularImpulse = 0;
m_motorJacobian.SetZero();
m_motorMass = 0;
m_motorImpulse = 0;
m_limitImpulse = 0;
m_limitPositionImpulse = 0;
m_lowerTranslation = _arg1.lowerTranslation;
m_upperTranslation = _arg1.upperTranslation;
m_maxMotorForce = _arg1.motorForce;
m_motorSpeed = _arg1.motorSpeed;
m_enableLimit = _arg1.enableLimit;
m_enableMotor = _arg1.enableMotor;
}
override public function GetAnchor1():b2Vec2{
var _local1:b2Body = m_body1;
var _local2:b2Vec2 = new b2Vec2();
_local2.SetV(m_localAnchor1);
_local2.MulM(_local1.m_R);
_local2.Add(_local1.m_position);
return (_local2);
}
override public function GetAnchor2():b2Vec2{
var _local1:b2Body = m_body2;
var _local2:b2Vec2 = new b2Vec2();
_local2.SetV(m_localAnchor2);
_local2.MulM(_local1.m_R);
_local2.Add(_local1.m_position);
return (_local2);
}
override public function PrepareVelocitySolver(){
var _local3:b2Mat22;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local1:b2Body = m_body1;
var _local2:b2Body = m_body2;
_local3 = _local1.m_R;
var _local4:Number = ((_local3.col1.x * m_localAnchor1.x) + (_local3.col2.x * m_localAnchor1.y));
var _local5:Number = ((_local3.col1.y * m_localAnchor1.x) + (_local3.col2.y * m_localAnchor1.y));
_local3 = _local2.m_R;
var _local6:Number = ((_local3.col1.x * m_localAnchor2.x) + (_local3.col2.x * m_localAnchor2.y));
var _local7:Number = ((_local3.col1.y * m_localAnchor2.x) + (_local3.col2.y * m_localAnchor2.y));
var _local8:Number = _local1.m_invMass;
var _local9:Number = _local2.m_invMass;
var _local10:Number = _local1.m_invI;
var _local11:Number = _local2.m_invI;
_local3 = _local1.m_R;
var _local12:Number = ((_local3.col1.x * m_localYAxis1.x) + (_local3.col2.x * m_localYAxis1.y));
var _local13:Number = ((_local3.col1.y * m_localYAxis1.x) + (_local3.col2.y * m_localYAxis1.y));
var _local14:Number = ((_local2.m_position.x + _local6) - _local1.m_position.x);
var _local15:Number = ((_local2.m_position.y + _local7) - _local1.m_position.y);
m_linearJacobian.linear1.x = -(_local12);
m_linearJacobian.linear1.y = -(_local13);
m_linearJacobian.linear2.x = _local12;
m_linearJacobian.linear2.y = _local13;
m_linearJacobian.angular1 = -(((_local14 * _local13) - (_local15 * _local12)));
m_linearJacobian.angular2 = ((_local6 * _local13) - (_local7 * _local12));
m_linearMass = (((_local8 + ((_local10 * m_linearJacobian.angular1) * m_linearJacobian.angular1)) + _local9) + ((_local11 * m_linearJacobian.angular2) * m_linearJacobian.angular2));
m_linearMass = (1 / m_linearMass);
m_angularMass = (1 / (_local10 + _local11));
if (((m_enableLimit) || (m_enableMotor))){
_local3 = _local1.m_R;
_local16 = ((_local3.col1.x * m_localXAxis1.x) + (_local3.col2.x * m_localXAxis1.y));
_local17 = ((_local3.col1.y * m_localXAxis1.x) + (_local3.col2.y * m_localXAxis1.y));
m_motorJacobian.linear1.x = -(_local16);
m_motorJacobian.linear1.y = -(_local17);
m_motorJacobian.linear2.x = _local16;
m_motorJacobian.linear2.y = _local17;
m_motorJacobian.angular1 = -(((_local14 * _local17) - (_local15 * _local16)));
m_motorJacobian.angular2 = ((_local6 * _local17) - (_local7 * _local16));
m_motorMass = (((_local8 + ((_local10 * m_motorJacobian.angular1) * m_motorJacobian.angular1)) + _local9) + ((_local11 * m_motorJacobian.angular2) * m_motorJacobian.angular2));
m_motorMass = (1 / m_motorMass);
if (m_enableLimit){
_local18 = (_local14 - _local4);
_local19 = (_local15 - _local5);
_local20 = ((_local16 * _local18) + (_local17 * _local19));
if (b2Math.b2Abs((m_upperTranslation - m_lowerTranslation)) < (2 * b2Settings.b2_linearSlop)){
m_limitState = e_equalLimits;
} else {
if (_local20 <= m_lowerTranslation){
if (m_limitState != e_atLowerLimit){
m_limitImpulse = 0;
};
m_limitState = e_atLowerLimit;
} else {
if (_local20 >= m_upperTranslation){
if (m_limitState != e_atUpperLimit){
m_limitImpulse = 0;
};
m_limitState = e_atUpperLimit;
} else {
m_limitState = e_inactiveLimit;
m_limitImpulse = 0;
};
};
};
};
};
if (m_enableMotor == false){
m_motorImpulse = 0;
};
if (m_enableLimit == false){
m_limitImpulse = 0;
};
if (b2World.s_enableWarmStarting){
_local21 = ((m_linearImpulse * m_linearJacobian.linear1.x) + ((m_motorImpulse + m_limitImpulse) * m_motorJacobian.linear1.x));
_local22 = ((m_linearImpulse * m_linearJacobian.linear1.y) + ((m_motorImpulse + m_limitImpulse) * m_motorJacobian.linear1.y));
_local23 = ((m_linearImpulse * m_linearJacobian.linear2.x) + ((m_motorImpulse + m_limitImpulse) * m_motorJacobian.linear2.x));
_local24 = ((m_linearImpulse * m_linearJacobian.linear2.y) + ((m_motorImpulse + m_limitImpulse) * m_motorJacobian.linear2.y));
_local25 = (((m_linearImpulse * m_linearJacobian.angular1) - m_angularImpulse) + ((m_motorImpulse + m_limitImpulse) * m_motorJacobian.angular1));
_local26 = (((m_linearImpulse * m_linearJacobian.angular2) + m_angularImpulse) + ((m_motorImpulse + m_limitImpulse) * m_motorJacobian.angular2));
_local1.m_linearVelocity.x = (_local1.m_linearVelocity.x + (_local8 * _local21));
_local1.m_linearVelocity.y = (_local1.m_linearVelocity.y + (_local8 * _local22));
_local1.m_angularVelocity = (_local1.m_angularVelocity + (_local10 * _local25));
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local9 * _local23));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local9 * _local24));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local11 * _local26));
} else {
m_linearImpulse = 0;
m_angularImpulse = 0;
m_limitImpulse = 0;
m_motorImpulse = 0;
};
m_limitPositionImpulse = 0;
}
public function GetJointTranslation():Number{
var _local3:b2Mat22;
var _local1:b2Body = m_body1;
var _local2:b2Body = m_body2;
_local3 = _local1.m_R;
var _local4:Number = ((_local3.col1.x * m_localAnchor1.x) + (_local3.col2.x * m_localAnchor1.y));
var _local5:Number = ((_local3.col1.y * m_localAnchor1.x) + (_local3.col2.y * m_localAnchor1.y));
_local3 = _local2.m_R;
var _local6:Number = ((_local3.col1.x * m_localAnchor2.x) + (_local3.col2.x * m_localAnchor2.y));
var _local7:Number = ((_local3.col1.y * m_localAnchor2.x) + (_local3.col2.y * m_localAnchor2.y));
var _local8:Number = (_local1.m_position.x + _local4);
var _local9:Number = (_local1.m_position.y + _local5);
var _local10:Number = (_local2.m_position.x + _local6);
var _local11:Number = (_local2.m_position.y + _local7);
var _local12:Number = (_local10 - _local8);
var _local13:Number = (_local11 - _local9);
_local3 = _local1.m_R;
var _local14:Number = ((_local3.col1.x * m_localXAxis1.x) + (_local3.col2.x * m_localXAxis1.y));
var _local15:Number = ((_local3.col1.y * m_localXAxis1.x) + (_local3.col2.y * m_localXAxis1.y));
var _local16:Number = ((_local14 * _local12) + (_local15 * _local13));
return (_local16);
}
override public function GetReactionForce(_arg1:Number):b2Vec2{
var _local3:b2Mat22;
var _local2:Number = (_arg1 * m_limitImpulse);
_local3 = m_body1.m_R;
var _local4:Number = (_local2 * ((_local3.col1.x * m_localXAxis1.x) + (_local3.col2.x * m_localXAxis1.y)));
var _local5:Number = (_local2 * ((_local3.col1.y * m_localXAxis1.x) + (_local3.col2.y * m_localXAxis1.y)));
var _local6:Number = (_local2 * ((_local3.col1.x * m_localYAxis1.x) + (_local3.col2.x * m_localYAxis1.y)));
var _local7:Number = (_local2 * ((_local3.col1.y * m_localYAxis1.x) + (_local3.col2.y * m_localYAxis1.y)));
return (new b2Vec2((_local4 + _local6), (_local5 + _local7)));
}
override public function SolvePositionConstraints():Boolean{
var _local1:Number;
var _local2:Number;
var _local9:b2Mat22;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local3:b2Body = m_body1;
var _local4:b2Body = m_body2;
var _local5:Number = _local3.m_invMass;
var _local6:Number = _local4.m_invMass;
var _local7:Number = _local3.m_invI;
var _local8:Number = _local4.m_invI;
_local9 = _local3.m_R;
var _local10:Number = ((_local9.col1.x * m_localAnchor1.x) + (_local9.col2.x * m_localAnchor1.y));
var _local11:Number = ((_local9.col1.y * m_localAnchor1.x) + (_local9.col2.y * m_localAnchor1.y));
_local9 = _local4.m_R;
var _local12:Number = ((_local9.col1.x * m_localAnchor2.x) + (_local9.col2.x * m_localAnchor2.y));
var _local13:Number = ((_local9.col1.y * m_localAnchor2.x) + (_local9.col2.y * m_localAnchor2.y));
var _local14:Number = (_local3.m_position.x + _local10);
var _local15:Number = (_local3.m_position.y + _local11);
var _local16:Number = (_local4.m_position.x + _local12);
var _local17:Number = (_local4.m_position.y + _local13);
var _local18:Number = (_local16 - _local14);
var _local19:Number = (_local17 - _local15);
_local9 = _local3.m_R;
var _local20:Number = ((_local9.col1.x * m_localYAxis1.x) + (_local9.col2.x * m_localYAxis1.y));
var _local21:Number = ((_local9.col1.y * m_localYAxis1.x) + (_local9.col2.y * m_localYAxis1.y));
var _local22:Number = ((_local20 * _local18) + (_local21 * _local19));
_local22 = b2Math.b2Clamp(_local22, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
var _local23:Number = (-(m_linearMass) * _local22);
_local3.m_position.x = (_local3.m_position.x + ((_local5 * _local23) * m_linearJacobian.linear1.x));
_local3.m_position.y = (_local3.m_position.y + ((_local5 * _local23) * m_linearJacobian.linear1.y));
_local3.m_rotation = (_local3.m_rotation + ((_local7 * _local23) * m_linearJacobian.angular1));
_local4.m_position.x = (_local4.m_position.x + ((_local6 * _local23) * m_linearJacobian.linear2.x));
_local4.m_position.y = (_local4.m_position.y + ((_local6 * _local23) * m_linearJacobian.linear2.y));
_local4.m_rotation = (_local4.m_rotation + ((_local8 * _local23) * m_linearJacobian.angular2));
var _local24:Number = b2Math.b2Abs(_local22);
var _local25:Number = ((_local4.m_rotation - _local3.m_rotation) - m_initialAngle);
_local25 = b2Math.b2Clamp(_local25, -(b2Settings.b2_maxAngularCorrection), b2Settings.b2_maxAngularCorrection);
var _local26:Number = (-(m_angularMass) * _local25);
_local3.m_rotation = (_local3.m_rotation - (_local3.m_invI * _local26));
_local3.m_R.Set(_local3.m_rotation);
_local4.m_rotation = (_local4.m_rotation + (_local4.m_invI * _local26));
_local4.m_R.Set(_local4.m_rotation);
var _local27:Number = b2Math.b2Abs(_local25);
if (((m_enableLimit) && (!((m_limitState == e_inactiveLimit))))){
_local9 = _local3.m_R;
_local10 = ((_local9.col1.x * m_localAnchor1.x) + (_local9.col2.x * m_localAnchor1.y));
_local11 = ((_local9.col1.y * m_localAnchor1.x) + (_local9.col2.y * m_localAnchor1.y));
_local9 = _local4.m_R;
_local12 = ((_local9.col1.x * m_localAnchor2.x) + (_local9.col2.x * m_localAnchor2.y));
_local13 = ((_local9.col1.y * m_localAnchor2.x) + (_local9.col2.y * m_localAnchor2.y));
_local14 = (_local3.m_position.x + _local10);
_local15 = (_local3.m_position.y + _local11);
_local16 = (_local4.m_position.x + _local12);
_local17 = (_local4.m_position.y + _local13);
_local18 = (_local16 - _local14);
_local19 = (_local17 - _local15);
_local9 = _local3.m_R;
_local28 = ((_local9.col1.x * m_localXAxis1.x) + (_local9.col2.x * m_localXAxis1.y));
_local29 = ((_local9.col1.y * m_localXAxis1.x) + (_local9.col2.y * m_localXAxis1.y));
_local30 = ((_local28 * _local18) + (_local29 * _local19));
_local31 = 0;
if (m_limitState == e_equalLimits){
_local1 = b2Math.b2Clamp(_local30, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
_local31 = (-(m_motorMass) * _local1);
_local24 = b2Math.b2Max(_local24, b2Math.b2Abs(_local25));
} else {
if (m_limitState == e_atLowerLimit){
_local1 = (_local30 - m_lowerTranslation);
_local24 = b2Math.b2Max(_local24, -(_local1));
_local1 = b2Math.b2Clamp((_local1 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local31 = (-(m_motorMass) * _local1);
_local2 = m_limitPositionImpulse;
m_limitPositionImpulse = b2Math.b2Max((m_limitPositionImpulse + _local31), 0);
_local31 = (m_limitPositionImpulse - _local2);
} else {
if (m_limitState == e_atUpperLimit){
_local1 = (_local30 - m_upperTranslation);
_local24 = b2Math.b2Max(_local24, _local1);
_local1 = b2Math.b2Clamp((_local1 - b2Settings.b2_linearSlop), 0, b2Settings.b2_maxLinearCorrection);
_local31 = (-(m_motorMass) * _local1);
_local2 = m_limitPositionImpulse;
m_limitPositionImpulse = b2Math.b2Min((m_limitPositionImpulse + _local31), 0);
_local31 = (m_limitPositionImpulse - _local2);
};
};
};
_local3.m_position.x = (_local3.m_position.x + ((_local5 * _local31) * m_motorJacobian.linear1.x));
_local3.m_position.y = (_local3.m_position.y + ((_local5 * _local31) * m_motorJacobian.linear1.y));
_local3.m_rotation = (_local3.m_rotation + ((_local7 * _local31) * m_motorJacobian.angular1));
_local3.m_R.Set(_local3.m_rotation);
_local4.m_position.x = (_local4.m_position.x + ((_local6 * _local31) * m_motorJacobian.linear2.x));
_local4.m_position.y = (_local4.m_position.y + ((_local6 * _local31) * m_motorJacobian.linear2.y));
_local4.m_rotation = (_local4.m_rotation + ((_local8 * _local31) * m_motorJacobian.angular2));
_local4.m_R.Set(_local4.m_rotation);
};
return ((((_local24 <= b2Settings.b2_linearSlop)) && ((_local27 <= b2Settings.b2_angularSlop))));
}
public function SetMotorSpeed(_arg1:Number){
m_motorSpeed = _arg1;
}
public function GetJointSpeed():Number{
var _local3:b2Mat22;
var _local1:b2Body = m_body1;
var _local2:b2Body = m_body2;
_local3 = _local1.m_R;
var _local4:Number = ((_local3.col1.x * m_localAnchor1.x) + (_local3.col2.x * m_localAnchor1.y));
var _local5:Number = ((_local3.col1.y * m_localAnchor1.x) + (_local3.col2.y * m_localAnchor1.y));
_local3 = _local2.m_R;
var _local6:Number = ((_local3.col1.x * m_localAnchor2.x) + (_local3.col2.x * m_localAnchor2.y));
var _local7:Number = ((_local3.col1.y * m_localAnchor2.x) + (_local3.col2.y * m_localAnchor2.y));
var _local8:Number = (_local1.m_position.x + _local4);
var _local9:Number = (_local1.m_position.y + _local5);
var _local10:Number = (_local2.m_position.x + _local6);
var _local11:Number = (_local2.m_position.y + _local7);
var _local12:Number = (_local10 - _local8);
var _local13:Number = (_local11 - _local9);
_local3 = _local1.m_R;
var _local14:Number = ((_local3.col1.x * m_localXAxis1.x) + (_local3.col2.x * m_localXAxis1.y));
var _local15:Number = ((_local3.col1.y * m_localXAxis1.x) + (_local3.col2.y * m_localXAxis1.y));
var _local16:b2Vec2 = _local1.m_linearVelocity;
var _local17:b2Vec2 = _local2.m_linearVelocity;
var _local18:Number = _local1.m_angularVelocity;
var _local19:Number = _local2.m_angularVelocity;
var _local20:Number = (((_local12 * (-(_local18) * _local15)) + (_local13 * (_local18 * _local14))) + ((_local14 * (((_local17.x + (-(_local19) * _local7)) - _local16.x) - (-(_local18) * _local5))) + (_local15 * (((_local17.y + (_local19 * _local6)) - _local16.y) - (_local18 * _local4)))));
return (_local20);
}
public function GetMotorForce(_arg1:Number):Number{
return ((_arg1 * m_motorImpulse));
}
public function SetMotorForce(_arg1:Number){
m_maxMotorForce = _arg1;
}
override public function GetReactionTorque(_arg1:Number):Number{
return ((_arg1 * m_angularImpulse));
}
override public function SolveVelocityConstraints(_arg1:b2StepInfo){
var _local8:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local2:b2Body = m_body1;
var _local3:b2Body = m_body2;
var _local4:Number = _local2.m_invMass;
var _local5:Number = _local3.m_invMass;
var _local6:Number = _local2.m_invI;
var _local7:Number = _local3.m_invI;
var _local9:Number = m_linearJacobian.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity);
var _local10:Number = (-(m_linearMass) * _local9);
m_linearImpulse = (m_linearImpulse + _local10);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + ((_local4 * _local10) * m_linearJacobian.linear1.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + ((_local4 * _local10) * m_linearJacobian.linear1.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local10) * m_linearJacobian.angular1));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local5 * _local10) * m_linearJacobian.linear2.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local5 * _local10) * m_linearJacobian.linear2.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local10) * m_linearJacobian.angular2));
var _local11:Number = (_local3.m_angularVelocity - _local2.m_angularVelocity);
var _local12:* = (-(m_angularMass) * _local11);
m_angularImpulse = (m_angularImpulse + _local12);
_local2.m_angularVelocity = (_local2.m_angularVelocity - (_local6 * _local12));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local7 * _local12));
if (((m_enableMotor) && (!((m_limitState == e_equalLimits))))){
_local13 = (m_motorJacobian.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity) - m_motorSpeed);
_local14 = (-(m_motorMass) * _local13);
_local15 = m_motorImpulse;
m_motorImpulse = b2Math.b2Clamp((m_motorImpulse + _local14), (-(_arg1.dt) * m_maxMotorForce), (_arg1.dt * m_maxMotorForce));
_local14 = (m_motorImpulse - _local15);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + ((_local4 * _local14) * m_motorJacobian.linear1.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + ((_local4 * _local14) * m_motorJacobian.linear1.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local14) * m_motorJacobian.angular1));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local5 * _local14) * m_motorJacobian.linear2.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local5 * _local14) * m_motorJacobian.linear2.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local14) * m_motorJacobian.angular2));
};
if (((m_enableLimit) && (!((m_limitState == e_inactiveLimit))))){
_local16 = m_motorJacobian.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity);
_local17 = (-(m_motorMass) * _local16);
if (m_limitState == e_equalLimits){
m_limitImpulse = (m_limitImpulse + _local17);
} else {
if (m_limitState == e_atLowerLimit){
_local8 = m_limitImpulse;
m_limitImpulse = b2Math.b2Max((m_limitImpulse + _local17), 0);
_local17 = (m_limitImpulse - _local8);
} else {
if (m_limitState == e_atUpperLimit){
_local8 = m_limitImpulse;
m_limitImpulse = b2Math.b2Min((m_limitImpulse + _local17), 0);
_local17 = (m_limitImpulse - _local8);
};
};
};
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + ((_local4 * _local17) * m_motorJacobian.linear1.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + ((_local4 * _local17) * m_motorJacobian.linear1.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local17) * m_motorJacobian.angular1));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local5 * _local17) * m_motorJacobian.linear2.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local5 * _local17) * m_motorJacobian.linear2.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local17) * m_motorJacobian.angular2));
};
}
}
}//package Engine.Dynamics.Joints
Section 53
//b2PrismaticJointDef (Engine.Dynamics.Joints.b2PrismaticJointDef)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
public class b2PrismaticJointDef extends b2JointDef {
public var axis:b2Vec2;
public var upperTranslation:Number;
public var lowerTranslation:Number;
public var motorSpeed:Number;
public var enableLimit:Boolean;
public var enableMotor:Boolean;
public var anchorPoint:b2Vec2;
public var motorForce:Number;
public function b2PrismaticJointDef(){
type = b2Joint.e_prismaticJoint;
anchorPoint = new b2Vec2(0, 0);
axis = new b2Vec2(0, 0);
lowerTranslation = 0;
upperTranslation = 0;
motorForce = 0;
motorSpeed = 0;
enableLimit = false;
enableMotor = false;
}
}
}//package Engine.Dynamics.Joints
Section 54
//b2PulleyJoint (Engine.Dynamics.Joints.b2PulleyJoint)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2PulleyJoint extends b2Joint {
public var m_limitState1:int;
public var m_limitState2:int;
public var m_ground:b2Body;
public var m_maxLength2:Number;
public var m_maxLength1:Number;
public var m_limitPositionImpulse1:Number;
public var m_limitPositionImpulse2:Number;
public var m_pulleyImpulse:Number;
public var m_constant:Number;
public var m_ratio:Number;
public var m_groundAnchor1:b2Vec2;
public var m_groundAnchor2:b2Vec2;
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
public var m_limitMass1:Number;
public var m_limitMass2:Number;
public var m_limitImpulse1:Number;
public var m_pulleyMass:Number;
public var m_u1:b2Vec2;
public var m_u2:b2Vec2;
public var m_limitImpulse2:Number;
public static var b2_minPulleyLength:Number = 1;
public function b2PulleyJoint(_arg1:b2PulleyJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
m_groundAnchor1 = new b2Vec2();
m_groundAnchor2 = new b2Vec2();
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_u1 = new b2Vec2();
m_u2 = new b2Vec2();
super(_arg1);
m_ground = m_body1.m_world.m_groundBody;
m_groundAnchor1.x = (_arg1.groundPoint1.x - m_ground.m_position.x);
m_groundAnchor1.y = (_arg1.groundPoint1.y - m_ground.m_position.y);
m_groundAnchor2.x = (_arg1.groundPoint2.x - m_ground.m_position.x);
m_groundAnchor2.y = (_arg1.groundPoint2.y - m_ground.m_position.y);
_local2 = m_body1.m_R;
_local3 = (_arg1.anchorPoint1.x - m_body1.m_position.x);
_local4 = (_arg1.anchorPoint1.y - m_body1.m_position.y);
m_localAnchor1.x = ((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y));
m_localAnchor1.y = ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y));
_local2 = m_body2.m_R;
_local3 = (_arg1.anchorPoint2.x - m_body2.m_position.x);
_local4 = (_arg1.anchorPoint2.y - m_body2.m_position.y);
m_localAnchor2.x = ((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y));
m_localAnchor2.y = ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y));
m_ratio = _arg1.ratio;
_local3 = (_arg1.groundPoint1.x - _arg1.anchorPoint1.x);
_local4 = (_arg1.groundPoint1.y - _arg1.anchorPoint1.y);
var _local5:Number = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
_local3 = (_arg1.groundPoint2.x - _arg1.anchorPoint2.x);
_local4 = (_arg1.groundPoint2.y - _arg1.anchorPoint2.y);
var _local6:Number = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
var _local7:Number = b2Math.b2Max((0.5 * b2_minPulleyLength), _local5);
var _local8:Number = b2Math.b2Max((0.5 * b2_minPulleyLength), _local6);
m_constant = (_local7 + (m_ratio * _local8));
m_maxLength1 = b2Math.b2Clamp(_arg1.maxLength1, _local7, (m_constant - (m_ratio * b2_minPulleyLength)));
m_maxLength2 = b2Math.b2Clamp(_arg1.maxLength2, _local8, ((m_constant - b2_minPulleyLength) / m_ratio));
m_pulleyImpulse = 0;
m_limitImpulse1 = 0;
m_limitImpulse2 = 0;
}
public function GetLength1():Number{
var _local1:b2Mat22;
_local1 = m_body1.m_R;
var _local2:Number = (m_body1.m_position.x + ((_local1.col1.x * m_localAnchor1.x) + (_local1.col2.x * m_localAnchor1.y)));
var _local3:Number = (m_body1.m_position.y + ((_local1.col1.y * m_localAnchor1.x) + (_local1.col2.y * m_localAnchor1.y)));
var _local4:Number = (_local2 - (m_ground.m_position.x + m_groundAnchor1.x));
var _local5:Number = (_local3 - (m_ground.m_position.y + m_groundAnchor1.y));
return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5))));
}
override public function GetAnchor1():b2Vec2{
var _local1:b2Mat22 = m_body1.m_R;
return (new b2Vec2((m_body1.m_position.x + ((_local1.col1.x * m_localAnchor1.x) + (_local1.col2.x * m_localAnchor1.y))), (m_body1.m_position.y + ((_local1.col1.y * m_localAnchor1.x) + (_local1.col2.y * m_localAnchor1.y)))));
}
override public function GetAnchor2():b2Vec2{
var _local1:b2Mat22 = m_body2.m_R;
return (new b2Vec2((m_body2.m_position.x + ((_local1.col1.x * m_localAnchor2.x) + (_local1.col2.x * m_localAnchor2.y))), (m_body2.m_position.y + ((_local1.col1.y * m_localAnchor2.x) + (_local1.col2.y * m_localAnchor2.y)))));
}
override public function PrepareVelocitySolver(){
var _local3:b2Mat22;
var _local1:b2Body = m_body1;
var _local2:b2Body = m_body2;
_local3 = _local1.m_R;
var _local4:Number = ((_local3.col1.x * m_localAnchor1.x) + (_local3.col2.x * m_localAnchor1.y));
var _local5:Number = ((_local3.col1.y * m_localAnchor1.x) + (_local3.col2.y * m_localAnchor1.y));
_local3 = _local2.m_R;
var _local6:Number = ((_local3.col1.x * m_localAnchor2.x) + (_local3.col2.x * m_localAnchor2.y));
var _local7:Number = ((_local3.col1.y * m_localAnchor2.x) + (_local3.col2.y * m_localAnchor2.y));
var _local8:Number = (_local1.m_position.x + _local4);
var _local9:Number = (_local1.m_position.y + _local5);
var _local10:Number = (_local2.m_position.x + _local6);
var _local11:Number = (_local2.m_position.y + _local7);
var _local12:Number = (m_ground.m_position.x + m_groundAnchor1.x);
var _local13:Number = (m_ground.m_position.y + m_groundAnchor1.y);
var _local14:Number = (m_ground.m_position.x + m_groundAnchor2.x);
var _local15:Number = (m_ground.m_position.y + m_groundAnchor2.y);
m_u1.Set((_local8 - _local12), (_local9 - _local13));
m_u2.Set((_local10 - _local14), (_local11 - _local15));
var _local16:Number = m_u1.Length();
var _local17:Number = m_u2.Length();
if (_local16 > b2Settings.b2_linearSlop){
m_u1.Multiply((1 / _local16));
} else {
m_u1.SetZero();
};
if (_local17 > b2Settings.b2_linearSlop){
m_u2.Multiply((1 / _local17));
} else {
m_u2.SetZero();
};
if (_local16 < m_maxLength1){
m_limitState1 = e_inactiveLimit;
m_limitImpulse1 = 0;
} else {
m_limitState1 = e_atUpperLimit;
m_limitPositionImpulse1 = 0;
};
if (_local17 < m_maxLength2){
m_limitState2 = e_inactiveLimit;
m_limitImpulse2 = 0;
} else {
m_limitState2 = e_atUpperLimit;
m_limitPositionImpulse2 = 0;
};
var _local18:Number = ((_local4 * m_u1.y) - (_local5 * m_u1.x));
var _local19:Number = ((_local6 * m_u2.y) - (_local7 * m_u2.x));
m_limitMass1 = (_local1.m_invMass + ((_local1.m_invI * _local18) * _local18));
m_limitMass2 = (_local2.m_invMass + ((_local2.m_invI * _local19) * _local19));
m_pulleyMass = (m_limitMass1 + ((m_ratio * m_ratio) * m_limitMass2));
m_limitMass1 = (1 / m_limitMass1);
m_limitMass2 = (1 / m_limitMass2);
m_pulleyMass = (1 / m_pulleyMass);
var _local20:Number = ((-(m_pulleyImpulse) - m_limitImpulse1) * m_u1.x);
var _local21:Number = ((-(m_pulleyImpulse) - m_limitImpulse1) * m_u1.y);
var _local22:Number = (((-(m_ratio) * m_pulleyImpulse) - m_limitImpulse2) * m_u2.x);
var _local23:Number = (((-(m_ratio) * m_pulleyImpulse) - m_limitImpulse2) * m_u2.y);
_local1.m_linearVelocity.x = (_local1.m_linearVelocity.x + (_local1.m_invMass * _local20));
_local1.m_linearVelocity.y = (_local1.m_linearVelocity.y + (_local1.m_invMass * _local21));
_local1.m_angularVelocity = (_local1.m_angularVelocity + (_local1.m_invI * ((_local4 * _local21) - (_local5 * _local20))));
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local2.m_invMass * _local22));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local2.m_invMass * _local23));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.m_invI * ((_local6 * _local23) - (_local7 * _local22))));
}
override public function GetReactionForce(_arg1:Number):b2Vec2{
return (new b2Vec2());
}
override public function SolvePositionConstraints():Boolean{
var _local3:b2Mat22;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local1:b2Body = m_body1;
var _local2:b2Body = m_body2;
var _local4:Number = (m_ground.m_position.x + m_groundAnchor1.x);
var _local5:Number = (m_ground.m_position.y + m_groundAnchor1.y);
var _local6:Number = (m_ground.m_position.x + m_groundAnchor2.x);
var _local7:Number = (m_ground.m_position.y + m_groundAnchor2.y);
var _local21:Number = 0;
_local3 = _local1.m_R;
_local8 = ((_local3.col1.x * m_localAnchor1.x) + (_local3.col2.x * m_localAnchor1.y));
_local9 = ((_local3.col1.y * m_localAnchor1.x) + (_local3.col2.y * m_localAnchor1.y));
_local3 = _local2.m_R;
_local10 = ((_local3.col1.x * m_localAnchor2.x) + (_local3.col2.x * m_localAnchor2.y));
_local11 = ((_local3.col1.y * m_localAnchor2.x) + (_local3.col2.y * m_localAnchor2.y));
_local12 = (_local1.m_position.x + _local8);
_local13 = (_local1.m_position.y + _local9);
_local14 = (_local2.m_position.x + _local10);
_local15 = (_local2.m_position.y + _local11);
m_u1.Set((_local12 - _local4), (_local13 - _local5));
m_u2.Set((_local14 - _local6), (_local15 - _local7));
_local16 = m_u1.Length();
_local17 = m_u2.Length();
if (_local16 > b2Settings.b2_linearSlop){
m_u1.Multiply((1 / _local16));
} else {
m_u1.SetZero();
};
if (_local17 > b2Settings.b2_linearSlop){
m_u2.Multiply((1 / _local17));
} else {
m_u2.SetZero();
};
_local18 = ((m_constant - _local16) - (m_ratio * _local17));
_local21 = b2Math.b2Max(_local21, Math.abs(_local18));
_local18 = b2Math.b2Clamp(_local18, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
_local19 = (-(m_pulleyMass) * _local18);
_local12 = (-(_local19) * m_u1.x);
_local13 = (-(_local19) * m_u1.y);
_local14 = ((-(m_ratio) * _local19) * m_u2.x);
_local15 = ((-(m_ratio) * _local19) * m_u2.y);
_local1.m_position.x = (_local1.m_position.x + (_local1.m_invMass * _local12));
_local1.m_position.y = (_local1.m_position.y + (_local1.m_invMass * _local13));
_local1.m_rotation = (_local1.m_rotation + (_local1.m_invI * ((_local8 * _local13) - (_local9 * _local12))));
_local2.m_position.x = (_local2.m_position.x + (_local2.m_invMass * _local14));
_local2.m_position.y = (_local2.m_position.y + (_local2.m_invMass * _local15));
_local2.m_rotation = (_local2.m_rotation + (_local2.m_invI * ((_local10 * _local15) - (_local11 * _local14))));
_local1.m_R.Set(_local1.m_rotation);
_local2.m_R.Set(_local2.m_rotation);
if (m_limitState1 == e_atUpperLimit){
_local3 = _local1.m_R;
_local8 = ((_local3.col1.x * m_localAnchor1.x) + (_local3.col2.x * m_localAnchor1.y));
_local9 = ((_local3.col1.y * m_localAnchor1.x) + (_local3.col2.y * m_localAnchor1.y));
_local12 = (_local1.m_position.x + _local8);
_local13 = (_local1.m_position.y + _local9);
m_u1.Set((_local12 - _local4), (_local13 - _local5));
_local16 = m_u1.Length();
if (_local16 > b2Settings.b2_linearSlop){
m_u1.x = (m_u1.x * (1 / _local16));
m_u1.y = (m_u1.y * (1 / _local16));
} else {
m_u1.SetZero();
};
_local18 = (m_maxLength1 - _local16);
_local21 = b2Math.b2Max(_local21, -(_local18));
_local18 = b2Math.b2Clamp((_local18 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local19 = (-(m_limitMass1) * _local18);
_local20 = m_limitPositionImpulse1;
m_limitPositionImpulse1 = b2Math.b2Max(0, (m_limitPositionImpulse1 + _local19));
_local19 = (m_limitPositionImpulse1 - _local20);
_local12 = (-(_local19) * m_u1.x);
_local13 = (-(_local19) * m_u1.y);
_local1.m_position.x = (_local1.m_position.x + (_local1.m_invMass * _local12));
_local1.m_position.y = (_local1.m_position.y + (_local1.m_invMass * _local13));
_local1.m_rotation = (_local1.m_rotation + (_local1.m_invI * ((_local8 * _local13) - (_local9 * _local12))));
_local1.m_R.Set(_local1.m_rotation);
};
if (m_limitState2 == e_atUpperLimit){
_local3 = _local2.m_R;
_local10 = ((_local3.col1.x * m_localAnchor2.x) + (_local3.col2.x * m_localAnchor2.y));
_local11 = ((_local3.col1.y * m_localAnchor2.x) + (_local3.col2.y * m_localAnchor2.y));
_local14 = (_local2.m_position.x + _local10);
_local15 = (_local2.m_position.y + _local11);
m_u2.Set((_local14 - _local6), (_local15 - _local7));
_local17 = m_u2.Length();
if (_local17 > b2Settings.b2_linearSlop){
m_u2.x = (m_u2.x * (1 / _local17));
m_u2.y = (m_u2.y * (1 / _local17));
} else {
m_u2.SetZero();
};
_local18 = (m_maxLength2 - _local17);
_local21 = b2Math.b2Max(_local21, -(_local18));
_local18 = b2Math.b2Clamp((_local18 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local19 = (-(m_limitMass2) * _local18);
_local20 = m_limitPositionImpulse2;
m_limitPositionImpulse2 = b2Math.b2Max(0, (m_limitPositionImpulse2 + _local19));
_local19 = (m_limitPositionImpulse2 - _local20);
_local14 = (-(_local19) * m_u2.x);
_local15 = (-(_local19) * m_u2.y);
_local2.m_position.x = (_local2.m_position.x + (_local2.m_invMass * _local14));
_local2.m_position.y = (_local2.m_position.y + (_local2.m_invMass * _local15));
_local2.m_rotation = (_local2.m_rotation + (_local2.m_invI * ((_local10 * _local15) - (_local11 * _local14))));
_local2.m_R.Set(_local2.m_rotation);
};
return ((_local21 < b2Settings.b2_linearSlop));
}
public function GetGroundPoint2():b2Vec2{
return (new b2Vec2((m_ground.m_position.x + m_groundAnchor2.x), (m_ground.m_position.y + m_groundAnchor2.y)));
}
override public function GetReactionTorque(_arg1:Number):Number{
return (0);
}
public function GetGroundPoint1():b2Vec2{
return (new b2Vec2((m_ground.m_position.x + m_groundAnchor1.x), (m_ground.m_position.y + m_groundAnchor1.y)));
}
override public function SolveVelocityConstraints(_arg1:b2StepInfo){
var _local4:b2Mat22;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local2:b2Body = m_body1;
var _local3:b2Body = m_body2;
_local4 = _local2.m_R;
var _local5:Number = ((_local4.col1.x * m_localAnchor1.x) + (_local4.col2.x * m_localAnchor1.y));
var _local6:Number = ((_local4.col1.y * m_localAnchor1.x) + (_local4.col2.y * m_localAnchor1.y));
_local4 = _local3.m_R;
var _local7:Number = ((_local4.col1.x * m_localAnchor2.x) + (_local4.col2.x * m_localAnchor2.y));
var _local8:Number = ((_local4.col1.y * m_localAnchor2.x) + (_local4.col2.y * m_localAnchor2.y));
_local9 = (_local2.m_linearVelocity.x + (-(_local2.m_angularVelocity) * _local6));
_local10 = (_local2.m_linearVelocity.y + (_local2.m_angularVelocity * _local5));
_local11 = (_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local8));
_local12 = (_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local7));
_local17 = (-(((m_u1.x * _local9) + (m_u1.y * _local10))) - (m_ratio * ((m_u2.x * _local11) + (m_u2.y * _local12))));
_local18 = (-(m_pulleyMass) * _local17);
m_pulleyImpulse = (m_pulleyImpulse + _local18);
_local13 = (-(_local18) * m_u1.x);
_local14 = (-(_local18) * m_u1.y);
_local15 = ((-(m_ratio) * _local18) * m_u2.x);
_local16 = ((-(m_ratio) * _local18) * m_u2.y);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local2.m_invMass * _local13));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local2.m_invMass * _local14));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.m_invI * ((_local5 * _local14) - (_local6 * _local13))));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + (_local3.m_invMass * _local15));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + (_local3.m_invMass * _local16));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * ((_local7 * _local16) - (_local8 * _local15))));
if (m_limitState1 == e_atUpperLimit){
_local9 = (_local2.m_linearVelocity.x + (-(_local2.m_angularVelocity) * _local6));
_local10 = (_local2.m_linearVelocity.y + (_local2.m_angularVelocity * _local5));
_local17 = -(((m_u1.x * _local9) + (m_u1.y * _local10)));
_local18 = (-(m_limitMass1) * _local17);
_local19 = m_limitImpulse1;
m_limitImpulse1 = b2Math.b2Max(0, (m_limitImpulse1 + _local18));
_local18 = (m_limitImpulse1 - _local19);
_local13 = (-(_local18) * m_u1.x);
_local14 = (-(_local18) * m_u1.y);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local2.m_invMass * _local13));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local2.m_invMass * _local14));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.m_invI * ((_local5 * _local14) - (_local6 * _local13))));
};
if (m_limitState2 == e_atUpperLimit){
_local11 = (_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local8));
_local12 = (_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local7));
_local17 = -(((m_u2.x * _local11) + (m_u2.y * _local12)));
_local18 = (-(m_limitMass2) * _local17);
_local19 = m_limitImpulse2;
m_limitImpulse2 = b2Math.b2Max(0, (m_limitImpulse2 + _local18));
_local18 = (m_limitImpulse2 - _local19);
_local15 = (-(_local18) * m_u2.x);
_local16 = (-(_local18) * m_u2.y);
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + (_local3.m_invMass * _local15));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + (_local3.m_invMass * _local16));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * ((_local7 * _local16) - (_local8 * _local15))));
};
}
public function GetRatio():Number{
return (m_ratio);
}
public function GetLength2():Number{
var _local1:b2Mat22;
_local1 = m_body2.m_R;
var _local2:Number = (m_body2.m_position.x + ((_local1.col1.x * m_localAnchor2.x) + (_local1.col2.x * m_localAnchor2.y)));
var _local3:Number = (m_body2.m_position.y + ((_local1.col1.y * m_localAnchor2.x) + (_local1.col2.y * m_localAnchor2.y)));
var _local4:Number = (_local2 - (m_ground.m_position.x + m_groundAnchor2.x));
var _local5:Number = (_local3 - (m_ground.m_position.y + m_groundAnchor2.y));
return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5))));
}
}
}//package Engine.Dynamics.Joints
Section 55
//b2PulleyJointDef (Engine.Dynamics.Joints.b2PulleyJointDef)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
public class b2PulleyJointDef extends b2JointDef {
public var maxLength1:Number;
public var groundPoint1:b2Vec2;
public var groundPoint2:b2Vec2;
public var ratio:Number;
public var maxLength2:Number;
public var anchorPoint1:b2Vec2;
public var anchorPoint2:b2Vec2;
public function b2PulleyJointDef(){
groundPoint1 = new b2Vec2();
groundPoint2 = new b2Vec2();
anchorPoint1 = new b2Vec2();
anchorPoint2 = new b2Vec2();
super();
type = b2Joint.e_pulleyJoint;
groundPoint1.Set(-1, 1);
groundPoint2.Set(1, 1);
anchorPoint1.Set(-1, 0);
anchorPoint2.Set(1, 0);
maxLength1 = (0.5 * b2PulleyJoint.b2_minPulleyLength);
maxLength2 = (0.5 * b2PulleyJoint.b2_minPulleyLength);
ratio = 1;
collideConnected = true;
}
}
}//package Engine.Dynamics.Joints
Section 56
//b2RevoluteJoint (Engine.Dynamics.Joints.b2RevoluteJoint)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class b2RevoluteJoint extends b2Joint {
public var m_enableLimit:Boolean;
public var m_limitState:int;
public var m_ptpMass:b2Mat22;
public var m_motorMass:Number;
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
private var K1:b2Mat22;
private var K2:b2Mat22;
private var K:b2Mat22;
public var m_limitImpulse:Number;
private var K3:b2Mat22;
public var m_motorImpulse:Number;
public var m_enableMotor:Boolean;
public var m_limitPositionImpulse:Number;
public var m_motorSpeed:Number;
public var m_upperAngle:Number;
public var m_lowerAngle:Number;
public var m_maxMotorTorque:Number;
public var m_ptpImpulse:b2Vec2;
public var m_intialAngle:Number;
static var tImpulse:b2Vec2 = new b2Vec2();
public function b2RevoluteJoint(_arg1:b2RevoluteJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
K = new b2Mat22();
K1 = new b2Mat22();
K2 = new b2Mat22();
K3 = new b2Mat22();
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_ptpImpulse = new b2Vec2();
m_ptpMass = new b2Mat22();
super(_arg1);
_local2 = m_body1.m_R;
_local3 = (_arg1.anchorPoint.x - m_body1.m_position.x);
_local4 = (_arg1.anchorPoint.y - m_body1.m_position.y);
m_localAnchor1.x = ((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y));
m_localAnchor1.y = ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y));
_local2 = m_body2.m_R;
_local3 = (_arg1.anchorPoint.x - m_body2.m_position.x);
_local4 = (_arg1.anchorPoint.y - m_body2.m_position.y);
m_localAnchor2.x = ((_local3 * _local2.col1.x) + (_local4 * _local2.col1.y));
m_localAnchor2.y = ((_local3 * _local2.col2.x) + (_local4 * _local2.col2.y));
m_intialAngle = (m_body2.m_rotation - m_body1.m_rotation);
m_ptpImpulse.Set(0, 0);
m_motorImpulse = 0;
m_limitImpulse = 0;
m_limitPositionImpulse = 0;
m_lowerAngle = _arg1.lowerAngle;
m_upperAngle = _arg1.upperAngle;
m_maxMotorTorque = _arg1.motorTorque;
m_motorSpeed = _arg1.motorSpeed;
m_enableLimit = _arg1.enableLimit;
m_enableMotor = _arg1.enableMotor;
}
override public function GetAnchor1():b2Vec2{
var _local1:b2Mat22 = m_body1.m_R;
return (new b2Vec2((m_body1.m_position.x + ((_local1.col1.x * m_localAnchor1.x) + (_local1.col2.x * m_localAnchor1.y))), (m_body1.m_position.y + ((_local1.col1.y * m_localAnchor1.x) + (_local1.col2.y * m_localAnchor1.y)))));
}
override public function GetAnchor2():b2Vec2{
var _local1:b2Mat22 = m_body2.m_R;
return (new b2Vec2((m_body2.m_position.x + ((_local1.col1.x * m_localAnchor2.x) + (_local1.col2.x * m_localAnchor2.y))), (m_body2.m_position.y + ((_local1.col1.y * m_localAnchor2.x) + (_local1.col2.y * m_localAnchor2.y)))));
}
override public function PrepareVelocitySolver(){
var _local1:b2Body;
var _local2:b2Body;
var _local3:b2Mat22;
var _local12:Number;
_local1 = m_body1;
_local2 = m_body2;
_local3 = _local1.m_R;
var _local4:Number = ((_local3.col1.x * m_localAnchor1.x) + (_local3.col2.x * m_localAnchor1.y));
var _local5:Number = ((_local3.col1.y * m_localAnchor1.x) + (_local3.col2.y * m_localAnchor1.y));
_local3 = _local2.m_R;
var _local6:Number = ((_local3.col1.x * m_localAnchor2.x) + (_local3.col2.x * m_localAnchor2.y));
var _local7:Number = ((_local3.col1.y * m_localAnchor2.x) + (_local3.col2.y * m_localAnchor2.y));
var _local8:Number = _local1.m_invMass;
var _local9:Number = _local2.m_invMass;
var _local10:Number = _local1.m_invI;
var _local11:Number = _local2.m_invI;
K1.col1.x = (_local8 + _local9);
K1.col2.x = 0;
K1.col1.y = 0;
K1.col2.y = (_local8 + _local9);
K2.col1.x = ((_local10 * _local5) * _local5);
K2.col2.x = ((-(_local10) * _local4) * _local5);
K2.col1.y = ((-(_local10) * _local4) * _local5);
K2.col2.y = ((_local10 * _local4) * _local4);
K3.col1.x = ((_local11 * _local7) * _local7);
K3.col2.x = ((-(_local11) * _local6) * _local7);
K3.col1.y = ((-(_local11) * _local6) * _local7);
K3.col2.y = ((_local11 * _local6) * _local6);
K.SetM(K1);
K.AddM(K2);
K.AddM(K3);
K.Invert(m_ptpMass);
m_motorMass = (1 / (_local10 + _local11));
if (m_enableMotor == false){
m_motorImpulse = 0;
};
if (m_enableLimit){
_local12 = ((_local2.m_rotation - _local1.m_rotation) - m_intialAngle);
if (b2Math.b2Abs((m_upperAngle - m_lowerAngle)) < (2 * b2Settings.b2_angularSlop)){
m_limitState = e_equalLimits;
} else {
if (_local12 <= m_lowerAngle){
if (m_limitState != e_atLowerLimit){
m_limitImpulse = 0;
};
m_limitState = e_atLowerLimit;
} else {
if (_local12 >= m_upperAngle){
if (m_limitState != e_atUpperLimit){
m_limitImpulse = 0;
};
m_limitState = e_atUpperLimit;
} else {
m_limitState = e_inactiveLimit;
m_limitImpulse = 0;
};
};
};
} else {
m_limitImpulse = 0;
};
if (b2World.s_enableWarmStarting){
_local1.m_linearVelocity.x = (_local1.m_linearVelocity.x - (_local8 * m_ptpImpulse.x));
_local1.m_linearVelocity.y = (_local1.m_linearVelocity.y - (_local8 * m_ptpImpulse.y));
_local1.m_angularVelocity = (_local1.m_angularVelocity - (_local10 * ((((_local4 * m_ptpImpulse.y) - (_local5 * m_ptpImpulse.x)) + m_motorImpulse) + m_limitImpulse)));
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local9 * m_ptpImpulse.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local9 * m_ptpImpulse.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local11 * ((((_local6 * m_ptpImpulse.y) - (_local7 * m_ptpImpulse.x)) + m_motorImpulse) + m_limitImpulse)));
} else {
m_ptpImpulse.SetZero();
m_motorImpulse = 0;
m_limitImpulse = 0;
};
m_limitPositionImpulse = 0;
}
override public function GetReactionForce(_arg1:Number):b2Vec2{
var _local2:b2Vec2 = m_ptpImpulse.Copy();
_local2.Multiply(_arg1);
return (_local2);
}
override public function SolvePositionConstraints():Boolean{
var _local1:Number;
var _local2:Number;
var _local6:b2Mat22;
var _local24:Number;
var _local25:Number;
var _local3:b2Body = m_body1;
var _local4:b2Body = m_body2;
var _local5:Number = 0;
_local6 = _local3.m_R;
var _local7:Number = ((_local6.col1.x * m_localAnchor1.x) + (_local6.col2.x * m_localAnchor1.y));
var _local8:Number = ((_local6.col1.y * m_localAnchor1.x) + (_local6.col2.y * m_localAnchor1.y));
_local6 = _local4.m_R;
var _local9:Number = ((_local6.col1.x * m_localAnchor2.x) + (_local6.col2.x * m_localAnchor2.y));
var _local10:Number = ((_local6.col1.y * m_localAnchor2.x) + (_local6.col2.y * m_localAnchor2.y));
var _local11:Number = (_local3.m_position.x + _local7);
var _local12:Number = (_local3.m_position.y + _local8);
var _local13:Number = (_local4.m_position.x + _local9);
var _local14:Number = (_local4.m_position.y + _local10);
var _local15:Number = (_local13 - _local11);
var _local16:Number = (_local14 - _local12);
_local5 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16)));
var _local17:Number = _local3.m_invMass;
var _local18:Number = _local4.m_invMass;
var _local19:Number = _local3.m_invI;
var _local20:Number = _local4.m_invI;
K1.col1.x = (_local17 + _local18);
K1.col2.x = 0;
K1.col1.y = 0;
K1.col2.y = (_local17 + _local18);
K2.col1.x = ((_local19 * _local8) * _local8);
K2.col2.x = ((-(_local19) * _local7) * _local8);
K2.col1.y = ((-(_local19) * _local7) * _local8);
K2.col2.y = ((_local19 * _local7) * _local7);
K3.col1.x = ((_local20 * _local10) * _local10);
K3.col2.x = ((-(_local20) * _local9) * _local10);
K3.col1.y = ((-(_local20) * _local9) * _local10);
K3.col2.y = ((_local20 * _local9) * _local9);
K.SetM(K1);
K.AddM(K2);
K.AddM(K3);
K.Solve(tImpulse, -(_local15), -(_local16));
var _local21:Number = tImpulse.x;
var _local22:Number = tImpulse.y;
_local3.m_position.x = (_local3.m_position.x - (_local3.m_invMass * _local21));
_local3.m_position.y = (_local3.m_position.y - (_local3.m_invMass * _local22));
_local3.m_rotation = (_local3.m_rotation - (_local3.m_invI * ((_local7 * _local22) - (_local8 * _local21))));
_local3.m_R.Set(_local3.m_rotation);
_local4.m_position.x = (_local4.m_position.x + (_local4.m_invMass * _local21));
_local4.m_position.y = (_local4.m_position.y + (_local4.m_invMass * _local22));
_local4.m_rotation = (_local4.m_rotation + (_local4.m_invI * ((_local9 * _local22) - (_local10 * _local21))));
_local4.m_R.Set(_local4.m_rotation);
var _local23:Number = 0;
if (((m_enableLimit) && (!((m_limitState == e_inactiveLimit))))){
_local24 = ((_local4.m_rotation - _local3.m_rotation) - m_intialAngle);
_local25 = 0;
if (m_limitState == e_equalLimits){
_local2 = b2Math.b2Clamp(_local24, -(b2Settings.b2_maxAngularCorrection), b2Settings.b2_maxAngularCorrection);
_local25 = (-(m_motorMass) * _local2);
_local23 = b2Math.b2Abs(_local2);
} else {
if (m_limitState == e_atLowerLimit){
_local2 = (_local24 - m_lowerAngle);
_local23 = b2Math.b2Max(0, -(_local2));
_local2 = b2Math.b2Clamp((_local2 + b2Settings.b2_angularSlop), -(b2Settings.b2_maxAngularCorrection), 0);
_local25 = (-(m_motorMass) * _local2);
_local1 = m_limitPositionImpulse;
m_limitPositionImpulse = b2Math.b2Max((m_limitPositionImpulse + _local25), 0);
_local25 = (m_limitPositionImpulse - _local1);
} else {
if (m_limitState == e_atUpperLimit){
_local2 = (_local24 - m_upperAngle);
_local23 = b2Math.b2Max(0, _local2);
_local2 = b2Math.b2Clamp((_local2 - b2Settings.b2_angularSlop), 0, b2Settings.b2_maxAngularCorrection);
_local25 = (-(m_motorMass) * _local2);
_local1 = m_limitPositionImpulse;
m_limitPositionImpulse = b2Math.b2Min((m_limitPositionImpulse + _local25), 0);
_local25 = (m_limitPositionImpulse - _local1);
};
};
};
_local3.m_rotation = (_local3.m_rotation - (_local3.m_invI * _local25));
_local3.m_R.Set(_local3.m_rotation);
_local4.m_rotation = (_local4.m_rotation + (_local4.m_invI * _local25));
_local4.m_R.Set(_local4.m_rotation);
};
return ((((_local5 <= b2Settings.b2_linearSlop)) && ((_local23 <= b2Settings.b2_angularSlop))));
}
public function SetMotorSpeed(_arg1:Number){
m_motorSpeed = _arg1;
}
public function GetJointSpeed():Number{
return ((m_body2.m_angularVelocity - m_body1.m_angularVelocity));
}
public function SetMotorTorque(_arg1:Number){
m_maxMotorTorque = _arg1;
}
public function GetJointAngle():Number{
return ((m_body2.m_rotation - m_body1.m_rotation));
}
public function GetMotorTorque(_arg1:Number):Number{
return ((_arg1 * m_motorImpulse));
}
override public function GetReactionTorque(_arg1:Number):Number{
return ((_arg1 * m_limitImpulse));
}
override public function SolveVelocityConstraints(_arg1:b2StepInfo){
var _local4:b2Mat22;
var _local9:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local2:b2Body = m_body1;
var _local3:b2Body = m_body2;
_local4 = _local2.m_R;
var _local5:Number = ((_local4.col1.x * m_localAnchor1.x) + (_local4.col2.x * m_localAnchor1.y));
var _local6:Number = ((_local4.col1.y * m_localAnchor1.x) + (_local4.col2.y * m_localAnchor1.y));
_local4 = _local3.m_R;
var _local7:Number = ((_local4.col1.x * m_localAnchor2.x) + (_local4.col2.x * m_localAnchor2.y));
var _local8:Number = ((_local4.col1.y * m_localAnchor2.x) + (_local4.col2.y * m_localAnchor2.y));
var _local10:Number = (((_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local8)) - _local2.m_linearVelocity.x) - (-(_local2.m_angularVelocity) * _local6));
var _local11:Number = (((_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local7)) - _local2.m_linearVelocity.y) - (_local2.m_angularVelocity * _local5));
var _local12:Number = -(((m_ptpMass.col1.x * _local10) + (m_ptpMass.col2.x * _local11)));
var _local13:Number = -(((m_ptpMass.col1.y * _local10) + (m_ptpMass.col2.y * _local11)));
m_ptpImpulse.x = (m_ptpImpulse.x + _local12);
m_ptpImpulse.y = (m_ptpImpulse.y + _local13);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x - (_local2.m_invMass * _local12));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y - (_local2.m_invMass * _local13));
_local2.m_angularVelocity = (_local2.m_angularVelocity - (_local2.m_invI * ((_local5 * _local13) - (_local6 * _local12))));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + (_local3.m_invMass * _local12));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + (_local3.m_invMass * _local13));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * ((_local7 * _local13) - (_local8 * _local12))));
if (((m_enableMotor) && (!((m_limitState == e_equalLimits))))){
_local14 = ((_local3.m_angularVelocity - _local2.m_angularVelocity) - m_motorSpeed);
_local15 = (-(m_motorMass) * _local14);
_local16 = m_motorImpulse;
m_motorImpulse = b2Math.b2Clamp((m_motorImpulse + _local15), (-(_arg1.dt) * m_maxMotorTorque), (_arg1.dt * m_maxMotorTorque));
_local15 = (m_motorImpulse - _local16);
_local2.m_angularVelocity = (_local2.m_angularVelocity - (_local2.m_invI * _local15));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * _local15));
};
if (((m_enableLimit) && (!((m_limitState == e_inactiveLimit))))){
_local17 = (_local3.m_angularVelocity - _local2.m_angularVelocity);
_local18 = (-(m_motorMass) * _local17);
if (m_limitState == e_equalLimits){
m_limitImpulse = (m_limitImpulse + _local18);
} else {
if (m_limitState == e_atLowerLimit){
_local9 = m_limitImpulse;
m_limitImpulse = b2Math.b2Max((m_limitImpulse + _local18), 0);
_local18 = (m_limitImpulse - _local9);
} else {
if (m_limitState == e_atUpperLimit){
_local9 = m_limitImpulse;
m_limitImpulse = b2Math.b2Min((m_limitImpulse + _local18), 0);
_local18 = (m_limitImpulse - _local9);
};
};
};
_local2.m_angularVelocity = (_local2.m_angularVelocity - (_local2.m_invI * _local18));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * _local18));
};
}
}
}//package Engine.Dynamics.Joints
Section 57
//b2RevoluteJointDef (Engine.Dynamics.Joints.b2RevoluteJointDef)
package Engine.Dynamics.Joints {
import Engine.Common.Math.*;
public class b2RevoluteJointDef extends b2JointDef {
public var enableMotor:Boolean;
public var upperAngle:Number;
public var lowerAngle:Number;
public var enableLimit:Boolean;
public var motorSpeed:Number;
public var anchorPoint:b2Vec2;
public var motorTorque:Number;
public function b2RevoluteJointDef(){
type = b2Joint.e_revoluteJoint;
anchorPoint = new b2Vec2(0, 0);
lowerAngle = 0;
upperAngle = 0;
motorTorque = 0;
motorSpeed = 0;
enableLimit = false;
enableMotor = false;
}
}
}//package Engine.Dynamics.Joints
Section 58
//b2Body (Engine.Dynamics.b2Body)
package Engine.Dynamics {
import Engine.Collision.Shapes.*;
import Engine.Common.Math.*;
import Engine.Dynamics.Joints.*;
import Engine.Dynamics.Contacts.*;
import Engine.Common.*;
public class b2Body {
public var m_next:b2Body;
public var m_R:b2Mat22;
public var m_contactList:b2ContactNode;
public var m_angularVelocity:Number;
public var m_rotation:Number;
public var m_shapeList:b2Shape;
public var m_force:b2Vec2;
public var m_torque:Number;
public var m_mass:Number;
public var m_userData;
public var m_invI:Number;
public var m_shapeCount:int;
public var m_linearVelocity:b2Vec2;
public var m_invMass:Number;
public var m_position:b2Vec2;
public var m_flags:uint;
public var m_world:b2World;
public var m_linearDamping:Number;
public var m_prev:b2Body;
public var m_angularDamping:Number;
public var m_center:b2Vec2;
public var m_sleepTime:Number;
public var m_I:Number;
public var m_jointList:b2JointNode;
public static var e_frozenFlag:uint = 2;
public static var e_sleepFlag:uint = 8;
public static var e_islandFlag:uint = 4;
public static var e_destroyFlag:uint = 32;
public static var e_allowSleepFlag:uint = 16;
public static var e_staticFlag:uint = 1;
public function b2Body(_arg1:b2BodyDef, _arg2:b2World){
var _local3:int;
var _local4:b2ShapeDef;
var _local5:b2MassData;
var _local7:b2Vec2;
var _local8:b2Shape;
m_position = new b2Vec2();
m_R = new b2Mat22(0);
super();
m_flags = 0;
m_position.SetV(_arg1.position);
m_rotation = _arg1.rotation;
m_R.Set(m_rotation);
m_world = _arg2;
m_linearDamping = b2Math.b2Clamp((1 - _arg1.linearDamping), 0, 1);
m_angularDamping = b2Math.b2Clamp((1 - _arg1.angularDamping), 0, 1);
m_force = new b2Vec2(0, 0);
m_torque = 0;
m_mass = 0;
var _local6:Array = new Array(b2Settings.b2_maxShapesPerBody);
_local3 = 0;
while (_local3 < b2Settings.b2_maxShapesPerBody) {
_local6[_local3] = new b2MassData();
_local3++;
};
m_shapeCount = 0;
m_center = new b2Vec2(0, 0);
_local3 = 0;
while (_local3 < b2Settings.b2_maxShapesPerBody) {
_local4 = _arg1.shapes[_local3];
if (_local4 == null){
break;
};
_local5 = _local6[_local3];
_local4.ComputeMass(_local5);
m_mass = (m_mass + _local5.mass);
m_center.Add(b2Math.MulFV(_local5.mass, b2Math.AddVV(_local4.localPosition, _local5.center)));
m_shapeCount++;
_local3++;
};
if (m_mass > 0){
m_center.Multiply((1 / m_mass));
m_position.Add(b2Math.b2MulMV(m_R, m_center));
} else {
m_flags = (m_flags | e_staticFlag);
};
m_I = 0;
_local3 = 0;
while (_local3 < m_shapeCount) {
_local4 = _arg1.shapes[_local3];
_local5 = _local6[_local3];
m_I = (m_I + _local5.I);
_local7 = b2Math.SubtractVV(b2Math.AddVV(_local4.localPosition, _local5.center), m_center);
m_I = (m_I + (_local5.mass * b2Math.b2Dot(_local7, _local7)));
_local3++;
};
if (m_mass > 0){
m_invMass = (1 / m_mass);
} else {
m_invMass = 0;
};
if ((((m_I > 0)) && ((_arg1.preventRotation == false)))){
m_invI = (1 / m_I);
} else {
m_I = 0;
m_invI = 0;
};
m_linearVelocity = b2Math.AddVV(_arg1.linearVelocity, b2Math.b2CrossFV(_arg1.angularVelocity, m_center));
m_angularVelocity = _arg1.angularVelocity;
m_jointList = null;
m_contactList = null;
m_prev = null;
m_next = null;
m_shapeList = null;
_local3 = 0;
while (_local3 < m_shapeCount) {
_local4 = _arg1.shapes[_local3];
_local8 = b2Shape.Create(_local4, this, m_center);
_local8.m_next = m_shapeList;
m_shapeList = _local8;
_local3++;
};
m_sleepTime = 0;
if (_arg1.allowSleep){
m_flags = (m_flags | e_allowSleepFlag);
};
if (_arg1.isSleeping){
m_flags = (m_flags | e_sleepFlag);
};
if ((((m_flags & e_sleepFlag)) || ((m_invMass == 0)))){
m_linearVelocity.Set(0, 0);
m_angularVelocity = 0;
};
m_userData = _arg1.userData;
}
public function SetCenterPosition(_arg1:b2Vec2, _arg2:Number){
if (IsFrozen()){
return;
};
m_rotation = _arg2;
m_R.Set(m_rotation);
m_position.SetV(_arg1);
var _local3:b2Shape = m_shapeList;
while (_local3 != null) {
_local3.Synchronize(m_position, m_R);
_local3 = _local3.m_next;
};
m_world.m_broadPhase.Flush();
}
public function GetWorldPoint(_arg1:b2Vec2):b2Vec2{
return (b2Math.AddVV(m_position, b2Math.b2MulMV(m_R, _arg1)));
}
public function SetLinearVelocity(_arg1:b2Vec2){
m_linearVelocity.SetV(_arg1);
}
public function WakeUp(){
m_flags = (m_flags & ~(e_sleepFlag));
m_sleepTime = 0;
}
public function IsFrozen():Boolean{
return (((m_flags & e_frozenFlag) == e_frozenFlag));
}
public function IsSleeping():Boolean{
return (((m_flags & e_sleepFlag) == e_sleepFlag));
}
public function GetInertia():Number{
return (m_I);
}
public function GetLocalVector(_arg1:b2Vec2):b2Vec2{
return (b2Math.b2MulTMV(m_R, _arg1));
}
public function GetJointList():b2JointNode{
return (m_jointList);
}
public function GetRotationMatrix():b2Mat22{
return (m_R);
}
public function Freeze(){
m_flags = (m_flags | e_frozenFlag);
m_linearVelocity.SetZero();
m_angularVelocity = 0;
}
public function SetAngularVelocity(_arg1:Number){
m_angularVelocity = _arg1;
}
public function SynchronizeShapes(){
var _local1:b2Shape = m_shapeList;
while (_local1 != null) {
_local1.Synchronize(m_position, m_R);
_local1 = _local1.m_next;
};
}
public function ApplyForce(_arg1:b2Vec2, _arg2:b2Vec2){
if (IsSleeping() == false){
m_force.Add(_arg1);
m_torque = (m_torque + b2Math.b2CrossVV(b2Math.SubtractVV(_arg2, m_position), _arg1));
};
}
public function GetOriginPosition():b2Vec2{
return (b2Math.SubtractVV(m_position, b2Math.b2MulMV(m_R, m_center)));
}
public function ApplyImpulse(_arg1:b2Vec2, _arg2:b2Vec2){
if (IsSleeping() == false){
m_linearVelocity.Add(b2Math.MulFV(m_invMass, _arg1));
m_angularVelocity = (m_angularVelocity + (m_invI * b2Math.b2CrossVV(b2Math.SubtractVV(_arg2, m_position), _arg1)));
};
}
public function GetContactList():b2ContactNode{
return (m_contactList);
}
public function GetShapeList():b2Shape{
return (m_shapeList);
}
public function GetMass():Number{
return (m_mass);
}
public function GetAngularVelocity():Number{
return (m_angularVelocity);
}
public function SetOriginPosition(_arg1:b2Vec2, _arg2:Number){
if (IsFrozen()){
return;
};
m_rotation = _arg2;
m_R.Set(m_rotation);
m_position = b2Math.AddVV(_arg1, b2Math.b2MulMV(m_R, m_center));
var _local3:b2Shape = m_shapeList;
while (_local3 != null) {
_local3.Synchronize(m_position, m_R);
_local3 = _local3.m_next;
};
m_world.m_broadPhase.Flush();
}
public function GetLocalPoint(_arg1:b2Vec2):b2Vec2{
return (b2Math.b2MulTMV(m_R, b2Math.SubtractVV(_arg1, m_position)));
}
public function GetRotation():Number{
return (m_rotation);
}
public function IsStatic():Boolean{
return (((m_flags & e_staticFlag) == e_staticFlag));
}
public function Destroy(){
var _local2:b2Shape;
var _local1:b2Shape = m_shapeList;
while (_local1) {
_local2 = _local1;
_local1 = _local1.m_next;
b2Shape.Destroy(_local2);
};
}
public function GetWorldVector(_arg1:b2Vec2):b2Vec2{
return (b2Math.b2MulMV(m_R, _arg1));
}
public function GetNext():b2Body{
return (m_next);
}
public function IsConnected(_arg1:b2Body):Boolean{
var _local2:b2JointNode = m_jointList;
while (_local2 != null) {
if (_local2.other == _arg1){
return ((_local2.joint.m_collideConnected == false));
};
_local2 = _local2.next;
};
return (false);
}
public function GetUserData(){
return (m_userData);
}
public function AllowSleeping(_arg1:Boolean){
if (_arg1){
m_flags = (m_flags | e_allowSleepFlag);
} else {
m_flags = (m_flags & ~(e_allowSleepFlag));
WakeUp();
};
}
public function ApplyTorque(_arg1:Number){
if (IsSleeping() == false){
m_torque = (m_torque + _arg1);
};
}
public function GetCenterPosition():b2Vec2{
return (m_position);
}
public function GetLinearVelocity():b2Vec2{
return (m_linearVelocity);
}
}
}//package Engine.Dynamics
Section 59
//b2BodyDef (Engine.Dynamics.b2BodyDef)
package Engine.Dynamics {
import Engine.Collision.Shapes.*;
import Engine.Common.Math.*;
import Engine.Common.*;
public class b2BodyDef {
public var angularDamping:Number;
public var linearVelocity:b2Vec2;
public var position:b2Vec2;
public var isSleeping:Boolean;
public var allowSleep:Boolean;
public var userData;
public var preventRotation:Boolean;
public var shapes:Array;
public var linearDamping:Number;
public var rotation:Number;
public var angularVelocity:Number;
public function b2BodyDef(){
shapes = new Array();
super();
userData = null;
var _local1:int;
while (_local1 < b2Settings.b2_maxShapesPerBody) {
shapes[_local1] = null;
_local1++;
};
position = new b2Vec2(0, 0);
rotation = 0;
linearVelocity = new b2Vec2(0, 0);
angularVelocity = 0;
linearDamping = 0;
angularDamping = 0;
allowSleep = true;
isSleeping = false;
preventRotation = false;
}
public function AddShape(_arg1:b2ShapeDef){
var _local2:int;
while (_local2 < b2Settings.b2_maxShapesPerBody) {
if (shapes[_local2] == null){
shapes[_local2] = _arg1;
break;
};
_local2++;
};
}
}
}//package Engine.Dynamics
Section 60
//b2ContactManager (Engine.Dynamics.b2ContactManager)
package Engine.Dynamics {
import Engine.Collision.Shapes.*;
import Engine.Collision.*;
import Engine.Dynamics.Contacts.*;
public class b2ContactManager extends b2PairCallback {
public var m_world:b2World;
public var m_destroyImmediate:Boolean;
public var m_nullContact:b2NullContact;
public function b2ContactManager(){
m_nullContact = new b2NullContact();
super();
m_world = null;
m_destroyImmediate = false;
}
public function Collide(){
var _local1:b2Body;
var _local2:b2Body;
var _local3:b2ContactNode;
var _local4:b2ContactNode;
var _local6:int;
var _local7:int;
var _local5:b2Contact = m_world.m_contactList;
while (_local5 != null) {
if (((_local5.m_shape1.m_body.IsSleeping()) && (_local5.m_shape2.m_body.IsSleeping()))){
} else {
_local6 = _local5.GetManifoldCount();
_local5.Evaluate();
_local7 = _local5.GetManifoldCount();
if ((((_local6 == 0)) && ((_local7 > 0)))){
_local1 = _local5.m_shape1.m_body;
_local2 = _local5.m_shape2.m_body;
_local3 = _local5.m_node1;
_local4 = _local5.m_node2;
_local3.contact = _local5;
_local3.other = _local2;
_local3.prev = null;
_local3.next = _local1.m_contactList;
if (_local3.next != null){
_local3.next.prev = _local5.m_node1;
};
_local1.m_contactList = _local5.m_node1;
_local4.contact = _local5;
_local4.other = _local1;
_local4.prev = null;
_local4.next = _local2.m_contactList;
if (_local4.next != null){
_local4.next.prev = _local4;
};
_local2.m_contactList = _local4;
} else {
if ((((_local6 > 0)) && ((_local7 == 0)))){
_local1 = _local5.m_shape1.m_body;
_local2 = _local5.m_shape2.m_body;
_local3 = _local5.m_node1;
_local4 = _local5.m_node2;
if (_local3.prev){
_local3.prev.next = _local3.next;
};
if (_local3.next){
_local3.next.prev = _local3.prev;
};
if (_local3 == _local1.m_contactList){
_local1.m_contactList = _local3.next;
};
_local3.prev = null;
_local3.next = null;
if (_local4.prev){
_local4.prev.next = _local4.next;
};
if (_local4.next){
_local4.next.prev = _local4.prev;
};
if (_local4 == _local2.m_contactList){
_local2.m_contactList = _local4.next;
};
_local4.prev = null;
_local4.next = null;
};
};
};
_local5 = _local5.m_next;
};
}
public function CleanContactList(){
var _local2:b2Contact;
var _local1:b2Contact = m_world.m_contactList;
while (_local1 != null) {
_local2 = _local1;
_local1 = _local1.m_next;
if ((_local2.m_flags & b2Contact.e_destroyFlag)){
DestroyContact(_local2);
_local2 = null;
};
};
}
public function DestroyContact(_arg1:b2Contact){
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2ContactNode;
var _local5:b2ContactNode;
if (_arg1.m_prev){
_arg1.m_prev.m_next = _arg1.m_next;
};
if (_arg1.m_next){
_arg1.m_next.m_prev = _arg1.m_prev;
};
if (_arg1 == m_world.m_contactList){
m_world.m_contactList = _arg1.m_next;
};
if (_arg1.GetManifoldCount() > 0){
_local2 = _arg1.m_shape1.m_body;
_local3 = _arg1.m_shape2.m_body;
_local4 = _arg1.m_node1;
_local5 = _arg1.m_node2;
_local2.WakeUp();
_local3.WakeUp();
if (_local4.prev){
_local4.prev.next = _local4.next;
};
if (_local4.next){
_local4.next.prev = _local4.prev;
};
if (_local4 == _local2.m_contactList){
_local2.m_contactList = _local4.next;
};
_local4.prev = null;
_local4.next = null;
if (_local5.prev){
_local5.prev.next = _local5.next;
};
if (_local5.next){
_local5.next.prev = _local5.prev;
};
if (_local5 == _local3.m_contactList){
_local3.m_contactList = _local5.next;
};
_local5.prev = null;
_local5.next = null;
};
b2Contact.Destroy(_arg1, m_world.m_blockAllocator);
m_world.m_contactCount--;
}
override public function PairRemoved(_arg1, _arg2, _arg3){
if (_arg3 == null){
return;
};
var _local4:b2Contact = (_arg3 as b2Contact);
if (_local4 != m_nullContact){
if (m_destroyImmediate == true){
DestroyContact(_local4);
_local4 = null;
} else {
_local4.m_flags = (_local4.m_flags | b2Contact.e_destroyFlag);
};
};
}
override public function PairAdded(_arg1, _arg2){
var _local8:b2Shape;
var _local9:b2Body;
var _local3:b2Shape = (_arg1 as b2Shape);
var _local4:b2Shape = (_arg2 as b2Shape);
var _local5:b2Body = _local3.m_body;
var _local6:b2Body = _local4.m_body;
if (((_local5.IsStatic()) && (_local6.IsStatic()))){
return (m_nullContact);
};
if (_local3.m_body == _local4.m_body){
return (m_nullContact);
};
if (_local6.m_invMass == 0){
_local8 = _local3;
_local3 = _local4;
_local4 = _local8;
_local9 = _local5;
_local5 = _local6;
_local6 = _local9;
};
if (_local6.IsConnected(_local5)){
return (m_nullContact);
};
var _local7:b2Contact = b2Contact.Create(_local3, _local4, m_world.m_blockAllocator);
if (_local7 == null){
return (m_nullContact);
};
_local7.m_prev = null;
_local7.m_next = m_world.m_contactList;
if (m_world.m_contactList != null){
m_world.m_contactList.m_prev = _local7;
};
m_world.m_contactList = _local7;
m_world.m_contactCount++;
return (_local7);
}
}
}//package Engine.Dynamics
Section 61
//b2Island (Engine.Dynamics.b2Island)
package Engine.Dynamics {
import Engine.Common.Math.*;
import Engine.Dynamics.Joints.*;
import Engine.Dynamics.Contacts.*;
import Engine.Common.*;
public class b2Island {
public var m_positionError:Number;
public var m_bodyCapacity:int;
public var m_bodies:Array;
public var m_joints:Array;
public var m_jointCapacity:int;
public var m_contactCount:int;
public var m_contacts:Array;
public var m_contactCapacity:int;
public var m_jointCount:int;
public var m_allocator;
public var m_bodyCount:int;
public static var m_positionIterationCount;
public function b2Island(_arg1:int, _arg2:int, _arg3:int, _arg4){
var _local5:int;
super();
m_bodyCapacity = _arg1;
m_contactCapacity = _arg2;
m_jointCapacity = _arg3;
m_bodyCount = 0;
m_contactCount = 0;
m_jointCount = 0;
m_bodies = new Array(_arg1);
_local5 = 0;
while (_local5 < _arg1) {
m_bodies[_local5] = null;
_local5++;
};
m_contacts = new Array(_arg2);
_local5 = 0;
while (_local5 < _arg2) {
m_contacts[_local5] = null;
_local5++;
};
m_joints = new Array(_arg3);
_local5 = 0;
while (_local5 < _arg3) {
m_joints[_local5] = null;
_local5++;
};
m_allocator = _arg4;
}
public function AddBody(_arg1:b2Body){
var _local2 = m_bodyCount++;
m_bodies[_local2] = _arg1;
}
public function AddJoint(_arg1:b2Joint){
var _local2 = m_jointCount++;
m_joints[_local2] = _arg1;
}
public function AddContact(_arg1:b2Contact){
var _local2 = m_contactCount++;
m_contacts[_local2] = _arg1;
}
public function Solve(_arg1:b2StepInfo, _arg2:b2Vec2){
var _local3:int;
var _local4:b2Body;
var _local6:int;
var _local7:Boolean;
var _local8:Boolean;
var _local9:Boolean;
_local3 = 0;
while (_local3 < m_bodyCount) {
_local4 = m_bodies[_local3];
if (_local4.m_invMass == 0){
} else {
_local4.m_linearVelocity.Add(b2Math.MulFV(_arg1.dt, b2Math.AddVV(_arg2, b2Math.MulFV(_local4.m_invMass, _local4.m_force))));
_local4.m_angularVelocity = (_local4.m_angularVelocity + ((_arg1.dt * _local4.m_invI) * _local4.m_torque));
_local4.m_linearVelocity.Multiply(_local4.m_linearDamping);
_local4.m_angularVelocity = (_local4.m_angularVelocity * _local4.m_angularDamping);
};
_local3++;
};
var _local5:b2ContactSolver = new b2ContactSolver(m_contacts, m_contactCount, m_allocator);
_local5.PreSolve();
_local3 = 0;
while (_local3 < m_jointCount) {
m_joints[_local3].PrepareVelocitySolver();
_local3++;
};
_local3 = 0;
while (_local3 < _arg1.iterations) {
_local5.SolveVelocityConstraints();
_local6 = 0;
while (_local6 < m_jointCount) {
m_joints[_local6].SolveVelocityConstraints(_arg1);
_local6++;
};
_local3++;
};
_local3 = 0;
while (_local3 < m_bodyCount) {
_local4 = m_bodies[_local3];
if (_local4.m_invMass == 0){
} else {
_local4.m_position.x = (_local4.m_position.x + (_arg1.dt * _local4.m_linearVelocity.x));
_local4.m_position.y = (_local4.m_position.y + (_arg1.dt * _local4.m_linearVelocity.y));
_local4.m_rotation = (_local4.m_rotation + (_arg1.dt * _local4.m_angularVelocity));
_local4.m_R.Set(_local4.m_rotation);
};
_local3++;
};
_local3 = 0;
while (_local3 < m_jointCount) {
m_joints[_local3].PreparePositionSolver();
_local3++;
};
if (b2World.s_enablePositionCorrection){
m_positionIterationCount = 0;
while (m_positionIterationCount < _arg1.iterations) {
_local7 = _local5.SolvePositionConstraints(b2Settings.b2_contactBaumgarte);
_local8 = true;
_local3 = 0;
while (_local3 < m_jointCount) {
_local9 = m_joints[_local3].SolvePositionConstraints();
_local8 = ((_local8) && (_local9));
_local3++;
};
if (((_local7) && (_local8))){
break;
};
m_positionIterationCount++;
};
};
_local5.PostSolve();
_local3 = 0;
while (_local3 < m_bodyCount) {
_local4 = m_bodies[_local3];
if (_local4.m_invMass == 0){
} else {
_local4.m_R.Set(_local4.m_rotation);
_local4.SynchronizeShapes();
_local4.m_force.Set(0, 0);
_local4.m_torque = 0;
};
_local3++;
};
}
public function Clear(){
m_bodyCount = 0;
m_contactCount = 0;
m_jointCount = 0;
}
public function UpdateSleep(_arg1:Number){
var _local2:int;
var _local3:b2Body;
var _local4:Number = Number.MAX_VALUE;
var _local5:Number = (b2Settings.b2_linearSleepTolerance * b2Settings.b2_linearSleepTolerance);
var _local6:Number = (b2Settings.b2_angularSleepTolerance * b2Settings.b2_angularSleepTolerance);
_local2 = 0;
while (_local2 < m_bodyCount) {
_local3 = m_bodies[_local2];
if (_local3.m_invMass == 0){
} else {
if ((_local3.m_flags & b2Body.e_allowSleepFlag) == 0){
_local3.m_sleepTime = 0;
_local4 = 0;
};
if (((((((_local3.m_flags & b2Body.e_allowSleepFlag) == 0)) || (((_local3.m_angularVelocity * _local3.m_angularVelocity) > _local6)))) || ((b2Math.b2Dot(_local3.m_linearVelocity, _local3.m_linearVelocity) > _local5)))){
_local3.m_sleepTime = 0;
_local4 = 0;
} else {
_local3.m_sleepTime = (_local3.m_sleepTime + _arg1);
_local4 = b2Math.b2Min(_local4, _local3.m_sleepTime);
};
};
_local2++;
};
if (_local4 >= b2Settings.b2_timeToSleep){
_local2 = 0;
while (_local2 < m_bodyCount) {
_local3 = m_bodies[_local2];
_local3.m_flags = (_local3.m_flags | b2Body.e_sleepFlag);
_local2++;
};
};
}
}
}//package Engine.Dynamics
Section 62
//b2StepInfo (Engine.Dynamics.b2StepInfo)
package Engine.Dynamics {
public class b2StepInfo {
public var dt:Number;
public var iterations:int;
public var inv_dt:Number;
}
}//package Engine.Dynamics
Section 63
//b2World (Engine.Dynamics.b2World)
package Engine.Dynamics {
import Engine.Collision.Shapes.*;
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.Joints.*;
import Engine.Dynamics.Contacts.*;
public class b2World {
public var m_bodyCount:int;
public var m_gravity:b2Vec2;
public var m_listener:b2WorldListener;
private var step:b2StepInfo;
public var m_positionIterationCount:int;
public var m_contactList:b2Contact;
public var m_blockAllocator;
public var m_groundBody:b2Body;
public var m_contactCount:int;
public var m_broadPhase:b2BroadPhase;
public var m_stackAllocator;
public var m_jointCount:int;
public var m_bodyList:b2Body;
public var m_doSleep:Boolean;
public var m_bodyDestroyList:b2Body;
public var m_jointList:b2Joint;
public var m_contactManager:b2ContactManager;
public static var s_enableWarmStarting:int = 1;
public static var s_enablePositionCorrection:int = 1;
public function b2World(_arg1:b2AABB, _arg2:b2Vec2, _arg3:Boolean){
step = new b2StepInfo();
m_contactManager = new b2ContactManager();
super();
m_listener = null;
m_bodyList = null;
m_contactList = null;
m_jointList = null;
m_bodyCount = 0;
m_contactCount = 0;
m_jointCount = 0;
m_bodyDestroyList = null;
m_doSleep = _arg3;
m_gravity = _arg2;
m_contactManager.m_world = this;
m_broadPhase = new b2BroadPhase(_arg1, m_contactManager);
var _local4:b2BodyDef = new b2BodyDef();
m_groundBody = CreateBody(_local4);
}
public function GetContactList():b2Contact{
return (m_contactList);
}
public function CreateJoint(_arg1:b2JointDef):b2Joint{
var _local3:b2Body;
var _local4:b2Shape;
var _local2:b2Joint = b2Joint.Create(_arg1, m_blockAllocator);
_local2.m_prev = null;
_local2.m_next = m_jointList;
if (m_jointList){
m_jointList.m_prev = _local2;
};
m_jointList = _local2;
m_jointCount++;
_local2.m_node1.joint = _local2;
_local2.m_node1.other = _local2.m_body2;
_local2.m_node1.prev = null;
_local2.m_node1.next = _local2.m_body1.m_jointList;
if (_local2.m_body1.m_jointList){
_local2.m_body1.m_jointList.prev = _local2.m_node1;
};
_local2.m_body1.m_jointList = _local2.m_node1;
_local2.m_node2.joint = _local2;
_local2.m_node2.other = _local2.m_body1;
_local2.m_node2.prev = null;
_local2.m_node2.next = _local2.m_body2.m_jointList;
if (_local2.m_body2.m_jointList){
_local2.m_body2.m_jointList.prev = _local2.m_node2;
};
_local2.m_body2.m_jointList = _local2.m_node2;
if (_arg1.collideConnected == false){
_local3 = ((_arg1.body1.m_shapeCount < _arg1.body2.m_shapeCount)) ? _arg1.body1 : _arg1.body2;
_local4 = _local3.m_shapeList;
while (_local4) {
_local4.ResetProxy(m_broadPhase);
_local4 = _local4.m_next;
};
};
return (_local2);
}
public function DestroyJoint(_arg1:b2Joint){
var _local5:b2Body;
var _local6:b2Shape;
var _local2:Boolean = _arg1.m_collideConnected;
if (_arg1.m_prev){
_arg1.m_prev.m_next = _arg1.m_next;
};
if (_arg1.m_next){
_arg1.m_next.m_prev = _arg1.m_prev;
};
if (_arg1 == m_jointList){
m_jointList = _arg1.m_next;
};
var _local3:b2Body = _arg1.m_body1;
var _local4:b2Body = _arg1.m_body2;
_local3.WakeUp();
_local4.WakeUp();
if (_arg1.m_node1.prev){
_arg1.m_node1.prev.next = _arg1.m_node1.next;
};
if (_arg1.m_node1.next){
_arg1.m_node1.next.prev = _arg1.m_node1.prev;
};
if (_arg1.m_node1 == _local3.m_jointList){
_local3.m_jointList = _arg1.m_node1.next;
};
_arg1.m_node1.prev = null;
_arg1.m_node1.next = null;
if (_arg1.m_node2.prev){
_arg1.m_node2.prev.next = _arg1.m_node2.next;
};
if (_arg1.m_node2.next){
_arg1.m_node2.next.prev = _arg1.m_node2.prev;
};
if (_arg1.m_node2 == _local4.m_jointList){
_local4.m_jointList = _arg1.m_node2.next;
};
_arg1.m_node2.prev = null;
_arg1.m_node2.next = null;
b2Joint.Destroy(_arg1, m_blockAllocator);
m_jointCount--;
if (_local2 == false){
_local5 = ((_local3.m_shapeCount < _local4.m_shapeCount)) ? _local3 : _local4;
_local6 = _local5.m_shapeList;
while (_local6) {
_local6.ResetProxy(m_broadPhase);
_local6 = _local6.m_next;
};
};
}
public function DestroyBody(_arg1:b2Body){
if ((_arg1.m_flags & b2Body.e_destroyFlag)){
return;
};
if (_arg1.m_prev){
_arg1.m_prev.m_next = _arg1.m_next;
};
if (_arg1.m_next){
_arg1.m_next.m_prev = _arg1.m_prev;
};
if (_arg1 == m_bodyList){
m_bodyList = _arg1.m_next;
};
_arg1.m_flags = (_arg1.m_flags | b2Body.e_destroyFlag);
m_bodyCount--;
_arg1.m_prev = null;
_arg1.m_next = m_bodyDestroyList;
m_bodyDestroyList = _arg1;
}
public function SetListener(_arg1:b2WorldListener){
m_listener = _arg1;
}
public function CreateBody(_arg1:b2BodyDef):b2Body{
var _local2:b2Body = new b2Body(_arg1, this);
_local2.m_prev = null;
_local2.m_next = m_bodyList;
if (m_bodyList){
m_bodyList.m_prev = _local2;
};
m_bodyList = _local2;
m_bodyCount++;
return (_local2);
}
public function GetGroundBody():b2Body{
return (m_groundBody);
}
public function Query(_arg1:b2AABB, _arg2:Array, _arg3:int):int{
var _local4:Array = new Array();
var _local5:int = m_broadPhase.QueryAABB(_arg1, _local4, _arg3);
var _local6:int;
while (_local6 < _local5) {
_arg2[_local6] = (_local4[_local6] as b2Shape);
_local6++;
};
return (_local5);
}
public function CleanBodyList(){
var _local2:b2Body;
var _local3:b2JointNode;
var _local4:b2JointNode;
m_contactManager.m_destroyImmediate = true;
var _local1:b2Body = m_bodyDestroyList;
while (_local1) {
_local2 = _local1;
_local1 = _local1.m_next;
_local3 = _local2.m_jointList;
while (_local3) {
_local4 = _local3;
_local3 = _local3.next;
if (m_listener){
m_listener.NotifyJointDestroyed(_local4.joint);
};
DestroyJoint(_local4.joint);
};
_local2.Destroy();
};
m_bodyDestroyList = null;
m_contactManager.m_destroyImmediate = false;
}
public function Step(_arg1:Number, _arg2:int){
var _local3:b2Body;
var _local4:b2Body;
var _local12:int;
var _local13:int;
var _local14:b2ContactNode;
var _local15:b2JointNode;
var _local16:uint;
step.dt = _arg1;
step.iterations = _arg2;
if (_arg1 > 0){
step.inv_dt = (1 / _arg1);
} else {
step.inv_dt = 0;
};
m_positionIterationCount = 0;
m_contactManager.CleanContactList();
CleanBodyList();
m_contactManager.Collide();
var _local5:b2Island = new b2Island(m_bodyCount, m_contactCount, m_jointCount, m_stackAllocator);
_local3 = m_bodyList;
while (_local3 != null) {
_local3.m_flags = (_local3.m_flags & ~(b2Body.e_islandFlag));
_local3 = _local3.m_next;
};
var _local6:b2Contact = m_contactList;
while (_local6 != null) {
_local6.m_flags = (_local6.m_flags & ~(b2Contact.e_islandFlag));
_local6 = _local6.m_next;
};
var _local7:b2Joint = m_jointList;
while (_local7 != null) {
_local7.m_islandFlag = false;
_local7 = _local7.m_next;
};
var _local8:int = m_bodyCount;
var _local9:Array = new Array(m_bodyCount);
var _local10:int;
while (_local10 < m_bodyCount) {
_local9[_local10] = null;
_local10++;
};
var _local11:b2Body = m_bodyList;
while (_local11 != null) {
if ((_local11.m_flags & (((b2Body.e_staticFlag | b2Body.e_islandFlag) | b2Body.e_sleepFlag) | b2Body.e_frozenFlag))){
} else {
_local5.Clear();
_local12 = 0;
var _temp1 = _local12;
_local12 = (_local12 + 1);
var _local17 = _temp1;
_local9[_local17] = _local11;
_local11.m_flags = (_local11.m_flags | b2Body.e_islandFlag);
while (_local12 > 0) {
--_local12;
_local3 = _local9[_local12];
_local5.AddBody(_local3);
_local3.m_flags = (_local3.m_flags & ~(b2Body.e_sleepFlag));
if ((_local3.m_flags & b2Body.e_staticFlag)){
} else {
_local14 = _local3.m_contactList;
while (_local14 != null) {
if ((_local14.contact.m_flags & b2Contact.e_islandFlag)){
} else {
_local5.AddContact(_local14.contact);
_local14.contact.m_flags = (_local14.contact.m_flags | b2Contact.e_islandFlag);
_local4 = _local14.other;
if ((_local4.m_flags & b2Body.e_islandFlag)){
} else {
var _temp2 = _local12;
_local12 = (_local12 + 1);
var _local18 = _temp2;
_local9[_local18] = _local4;
_local4.m_flags = (_local4.m_flags | b2Body.e_islandFlag);
};
};
_local14 = _local14.next;
};
_local15 = _local3.m_jointList;
while (_local15 != null) {
if (_local15.joint.m_islandFlag == true){
} else {
_local5.AddJoint(_local15.joint);
_local15.joint.m_islandFlag = true;
_local4 = _local15.other;
if ((_local4.m_flags & b2Body.e_islandFlag)){
} else {
var _temp3 = _local12;
_local12 = (_local12 + 1);
_local18 = _temp3;
_local9[_local18] = _local4;
_local4.m_flags = (_local4.m_flags | b2Body.e_islandFlag);
};
};
_local15 = _local15.next;
};
};
};
_local5.Solve(step, m_gravity);
m_positionIterationCount = b2Math.b2Max(m_positionIterationCount, b2Island.m_positionIterationCount);
if (m_doSleep){
_local5.UpdateSleep(_arg1);
};
_local13 = 0;
while (_local13 < _local5.m_bodyCount) {
_local3 = _local5.m_bodies[_local13];
if ((_local3.m_flags & b2Body.e_staticFlag)){
_local3.m_flags = (_local3.m_flags & ~(b2Body.e_islandFlag));
};
if (((_local3.IsFrozen()) && (m_listener))){
_local16 = m_listener.NotifyBoundaryViolated(_local3);
if (_local16 == b2WorldListener.b2_destroyBody){
DestroyBody(_local3);
_local3 = null;
_local5.m_bodies[_local13] = null;
};
};
_local13++;
};
};
_local11 = _local11.m_next;
};
m_broadPhase.Flush();
}
public function GetJointList():b2Joint{
return (m_jointList);
}
public function GetBodyList():b2Body{
return (m_bodyList);
}
}
}//package Engine.Dynamics
Section 64
//b2WorldListener (Engine.Dynamics.b2WorldListener)
package Engine.Dynamics {
import Engine.Dynamics.Joints.*;
public class b2WorldListener {
public static var b2_freezeBody:uint = 0;
public static var b2_destroyBody:uint = 1;
public function NotifyJointDestroyed(_arg1:b2Joint){
}
public function NotifyBoundaryViolated(_arg1:b2Body):uint{
return (b2_freezeBody);
}
}
}//package Engine.Dynamics
Section 65
//GameConfig (GameConfig.GameConfig)
package GameConfig {
import Scenes.*;
public class GameConfig {
public static var shortName:String = "dogfight2";
public static var nagEnabled:Boolean = true;
public static var referenceAngle:Number = 90;
public static var inDev:Boolean = false;
public static var startClass:Class = MainMenu;
public static var fontName:String = "Vahika";
public static var fontColor:int = 15717544;
}
}//package GameConfig
Section 66
//GameObject (GameObject.GameObject)
package GameObject {
import flash.events.*;
import GameScene.*;
import flash.display.*;
import flash.geom.*;
import Particles.*;
import flash.net.*;
import flash.text.*;
import Tools.*;
import GameConfig.*;
import flash.filters.*;
public class GameObject {
public var baseBrightness:Number;// = 1
public var loaded:Boolean;// = false
public var animFreeze:Boolean;// = false
public var dampenOrigin:Number;// = 1
public var modifiedAlpha:Number;// = 1
public var className:String;
public var zOrderString:String;
public var _mHasHit:Boolean;// = false
public var vars:Object;
public var _toRemove:Boolean;// = false
public var tformFromParent:Boolean;// = true
public var debug:Boolean;// = false
public var justCreated:Boolean;// = true
public var m:MovieClip;
public var ticks:int;// = 0
public var modifiedScaleX:Number;// = 1
public var modifiedScaleY:Number;// = 1
public var isInputEnterHit:Boolean;// = false
public var _on:Boolean;// = false
public var baseScaleX:Number;// = 1
public var baseScaleY:Number;// = 1
public var overGlow:Number;// = 1
public var lastX:Number;// = 0
public var lastY:Number;// = 0
public var helperButton:GameObjectHelperButton;
public var isInputMaxLength:int;// = -1
public var name:String;
public var disabled:Boolean;// = false
private var _tFormedY:Number;
private var _tFormedX:Number;
public var selectGlow:Number;// = 1
public var parent:GameObject;
public var particles:Array;
public var imClass:Class;
public var animSpeed:Number;// = 0
public var lastModifiedX:Number;// = 0
public var lastModifiedY:Number;// = 0
public var isInput:Boolean;// = false
public var oldstr:String;// = "oldstrdefaultvalue"
public var oldRotation:Number;
public var helperFilter:GameObjectHelperFilter;
public var conditionalParticles:Array;
public var modifiedx:Number;
public var modifiedy:Number;
public var initialized:Boolean;// = false
public var pausesGame:Boolean;// = false
public var obj:DisplayObject;
public var gs:GameScene;
public var imageSet:Array;
public var baseAlpha:Number;// = 1
public var independentRotation:Boolean;// = false
public var id:int;// = 0
public var baseHandleX:Number;// = 0.5
public var baseHandleY:Number;// = 0.5
public var _removed:Boolean;// = false
public var buttonBitmapDataOff:BitmapData;
public var mainLayer:ParticleLayer;
public var collision:GameObjectCollision;
public var animStarted:Boolean;// = false
public var updateDespitePaused:Boolean;// = false
public var randTicks:int;
public var oldScaleX:Number;
public var oldScaleY:Number;
public var baseHeight:Number;
public var modifiedRotation:Number;// = 0
public var isGlobal:Boolean;// = false
public var baseRotation:Number;// = 0
public var baseWidth:Number;
public var helperAnimation:GameObjectHelperAnimation;
public var oldAlpha:Number;
public var fontName:String;
public var defaultCol:int;
public var buttonBitmapDataOn:BitmapData;
public var showButtonOnOutline:Boolean;// = false
public var syncedSize:Boolean;// = false
public var defaultTextNum:int;// = 48
public var buttonTextOffsetX:Number;// = 0
public var hidden:Boolean;// = false
public var helper:GameObjectHelper;
private var radianConst:Number;// = 0.0174532925199433
public var basex:Number;
public var basey:Number;
public var additive:Boolean;// = false
public var buttonDisabled:Boolean;// = false
public var animFrame:Number;// = 0
public var lastScreenY:Number;// = 0
public var filters:Array;
public var lastScreenX:Number;// = 0
public var children:Array;
public static var matrixClip:MovieClip = new MovieClip();
public static var idBase:int = 0;
public function GameObject(_arg1:GameScene, _arg2:Object, _arg3:String, _arg4:int, _arg5:int):void{
var _local6:Class;
vars = new Object();
filters = new Array();
particles = new Array();
conditionalParticles = new Array();
children = new Array();
randTicks = Random.randInt(0, 10000);
fontName = GameConfig.fontName;
super();
if (_arg1 == null){
_arg1 = GameScene.current();
};
helper = new GameObjectHelper(this);
helperFilter = new GameObjectHelperFilter(this);
helperAnimation = new GameObjectHelperAnimation(this);
idBase++;
id = idBase;
defaultCol = GameConfig.fontColor;
if (_arg2 == null){
obj = new TextField();
TextField(obj).mouseEnabled = false;
TextField(obj).selectable = false;
} else {
if ((_arg2 is Class)){
_local6 = Class(_arg2);
obj = new (_local6);
} else {
if ((_arg2 is DisplayObject)){
obj = DisplayObject(_arg2);
};
};
};
obj.alpha = 0;
basex = _arg4;
basey = _arg5;
baseWidth = obj.width;
baseHeight = obj.height;
obj.x = basex;
obj.y = basey;
lastX = basex;
lastY = basey;
_arg1.objects.push(this);
zOrderString = _arg3;
m = _arg1.clipForZOrder(_arg3);
m.addChild(obj);
mainLayer = new ParticleLayer();
mainLayer.parent = m;
if ((_arg2 is Class)){
imClass = Class(_arg2);
};
gs = _arg1;
}
public function setupButton(_arg1:Object, _arg2:String, _arg3:Class=null, _arg4:Boolean=false, _arg5:Boolean=false):void{
var _local6:DisplayObject;
var _local7:DisplayObject;
var _local8:DisplayObject;
var _local11:Class;
var _local12:BitmapData;
helperButton = new GameObjectHelperButton(this);
this.name = _arg2;
if ((_arg1 is Class)){
_local11 = Class(_arg1);
if (((_arg5) && (_arg3))){
_local8 = new (_arg3);
_local6 = new (_arg3);
_arg3 = null;
} else {
_local6 = new (_local11);
_local8 = new (_local11);
};
_local7 = new (_local11);
} else {
if ((_arg1 is BitmapData)){
_local12 = BitmapData(_arg1);
_local6 = new Bitmap(_local12);
_local7 = new Bitmap(_local12);
_local8 = new Bitmap(_local12);
} else {
_local6 = DisplayObject(_arg1);
_local7 = DisplayObject(_arg1);
_local8 = DisplayObject(_arg1);
};
};
_local6.scaleX = 0.95;
_local6.scaleY = 0.95;
_local6.x = (0.025 * _local6.width);
_local6.y = (0.025 * _local6.height);
if (!_arg5){
if (_arg4){
_local8.filters = [new GlowFilter(0xFFFFFF, 0.6), new GlowFilter(0xFFFFFF, 0.6, 16, 16, 2, 1, true)];
} else {
_local8.filters = [new GlowFilter(0xFFFFFF, 0.6)];
};
};
_local6.filters = [new GlowFilter(0xFFFFFF, overGlow)];
var _local9:SimpleButton = SimpleButton(obj);
_local9.upState = _local7;
_local9.overState = _local8;
_local9.downState = _local6;
_local9.useHandCursor = true;
_local9.hitTestState = _local7;
_local9.useHandCursor = _arg4;
baseWidth = _local7.width;
baseHeight = _local7.height;
_local9.addEventListener(MouseEvent.CLICK, _mHit);
var _local10:GameObject = new GameObject(gs, null, zOrderString, buttonTextOffsetX, -2);
_local10.fontName = fontName;
_local10.setText(_arg2.toUpperCase(), 26, defaultCol);
addChild(_local10);
if (_arg3){
buttonBitmapDataOn = Bitmap(new (_arg3)).bitmapData;
buttonBitmapDataOff = Bitmap(_local7).bitmapData;
};
}
public function setAlpha(_arg1:Number, _arg2:Boolean=false):void{
var _local3:GameObject;
baseAlpha = _arg1;
if (_arg2){
for each (_local3 in children) {
_local3.setAlpha(_arg1, true);
};
};
}
public function distanceToPoint(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (_arg1 - basex);
var _local4:Number = (_arg2 - basey);
return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4))));
}
public function objectLoaded(_arg1:Event=null):void{
baseWidth = obj.width;
baseHeight = obj.height;
loaded = true;
}
public function setFrame(_arg1:int){
if (imageSet){
if ((((_arg1 >= 0)) && ((_arg1 < imageSet.length)))){
Bitmap(obj).bitmapData = imageSet[_arg1];
};
};
}
public function disableButton():void{
var _local1:SimpleButton;
if ((obj is SimpleButton)){
_local1 = SimpleButton(obj);
_local1.enabled = false;
baseAlpha = 0.5;
buttonDisabled = true;
};
}
public function pushScale(_arg1:Number, _arg2:Number):void{
modifiedScaleX = (modifiedScaleX * _arg1);
modifiedScaleY = (modifiedScaleY * _arg2);
}
public function addConditionalParticleArray(_arg1:Array):void{
if (!_arg1){
return;
};
var _local2:int;
while (_local2 < _arg1.length) {
conditionalParticles.push(_arg1[_local2]);
_local2++;
};
}
public function collidesWith(_arg1:GameObject):Boolean{
if (((!(collision)) || (!(_arg1.collision)))){
return (false);
};
collision.go = this;
_arg1.collision.go = _arg1;
return (collision.collidesWith(_arg1.collision));
}
public function syncObj():void{
if (justCreated){
modifiedRotation = baseRotation;
modifiedx = basex;
modifiedy = basey;
modifiedScaleX = baseScaleX;
modifiedScaleY = baseScaleY;
};
lastScreenX = modifiedx;
lastScreenY = modifiedy;
if (parent){
if (tformFromParent){
parent._tformed(modifiedx, modifiedy);
lastScreenX = parent._tFormedX;
lastScreenY = parent._tFormedY;
modifiedScaleX = (modifiedScaleX * parent.modifiedScaleX);
modifiedScaleY = (modifiedScaleY * parent.modifiedScaleY);
} else {
lastScreenX = (lastScreenX + parent.modifiedx);
lastScreenY = (lastScreenY + parent.modifiedy);
};
modifiedAlpha = (modifiedAlpha * parent.modifiedAlpha);
};
if (!isGlobal){
lastScreenX = (lastScreenX - (gs.camX * dampenOrigin));
lastScreenY = (lastScreenY - (gs.camY * dampenOrigin));
};
var _local1:Number = (lastScreenX - ((Math.cos((-(modifiedRotation) * radianConst)) * int(((baseWidth * baseHandleX) * modifiedScaleX))) + (Math.sin((-(modifiedRotation) * radianConst)) * int(((baseHeight * baseHandleY) * modifiedScaleY)))));
var _local2:Number = (lastScreenY - ((-(Math.sin((-(modifiedRotation) * radianConst))) * int(((baseWidth * baseHandleX) * modifiedScaleX))) + (Math.cos((-(modifiedRotation) * radianConst)) * int(((baseHeight * baseHandleY) * modifiedScaleY)))));
if (parent){
};
obj.x = _local1;
obj.y = _local2;
if (((_local1 + (baseWidth * Math.abs(modifiedScaleX))) + 20) < 0){
obj.visible = false;
return;
};
if (((_local1 - (baseWidth * Math.abs(modifiedScaleX))) - 20) > 800){
obj.visible = false;
return;
};
obj.visible = !(hidden);
if (hidden){
modifiedAlpha = 0;
};
if (modifiedAlpha != oldAlpha){
obj.alpha = modifiedAlpha;
oldAlpha = modifiedAlpha;
};
if (modifiedRotation != oldRotation){
oldRotation = modifiedRotation;
obj.rotation = modifiedRotation;
};
if (modifiedScaleX != oldScaleX){
oldScaleX = modifiedScaleX;
obj.scaleX = modifiedScaleX;
};
if (modifiedScaleY != oldScaleY){
obj.scaleY = modifiedScaleY;
oldScaleY = modifiedScaleY;
};
if (additive){
obj.blendMode = BlendMode.ADD;
};
}
public function stripText():void{
var _local1:GameObject;
for each (_local1 in children) {
_local1.remove();
};
}
public function syncText():void{
if (!(obj is TextField)){
return;
};
var _local1:TextField = TextField(obj);
_local1.width = (_local1.textWidth + 64);
_local1.height = (_local1.textHeight + 16);
baseWidth = _local1.textWidth;
baseHeight = _local1.textHeight;
}
public function pushAlpha(_arg1:Number):void{
modifiedAlpha = (modifiedAlpha * _arg1);
}
public function remoteLoad(_arg1:String):void{
if ((!(obj) is Loader)){
return;
};
var _local2:Loader = Loader(obj);
_local2.load(new URLRequest(_arg1));
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, objectLoaded);
}
public function findChildrenByName(_arg1:String):Array{
var name = _arg1;
return (children.filter(function (_arg1:GameObject, _arg2:int, _arg3:Array):Boolean{
return ((_arg1.name == name));
}));
}
public function remove():void{
var _local1:GameObjectFilter;
var _local2:GameObject;
if (_removed){
return;
};
gs.addOrphanedParticleLayer(mainLayer);
if (m.contains(obj)){
m.removeChild(obj);
} else {
trace("Does not contain");
};
for each (_local1 in filters) {
_local1.remove(this);
};
for each (_local2 in children) {
_local2.remove();
};
helper.handleRemove();
_remove();
_removed = true;
}
public function sind(_arg1:Number):Number{
return (Math.sin((_arg1 * (Math.PI / 180))));
}
public function enableButton():void{
var _local1:SimpleButton;
if ((obj is SimpleButton)){
_local1 = SimpleButton(obj);
_local1.enabled = true;
baseAlpha = 1;
buttonDisabled = false;
};
}
public function screenBaseX():Number{
return ((basex - gs.camX));
}
public function screenBaseY():Number{
return ((basey - gs.camY));
}
public function bringToFront():void{
var _local1:MovieClip = gs.clipForZOrder(zOrderString);
if (_local1.contains(obj)){
_local1.setChildIndex(obj, 0);
};
}
private function _tformed(_arg1:Number, _arg2:Number):void{
var _local3:Number = modifiedx;
var _local4:Number = modifiedy;
if (parent){
parent._tformed(modifiedx, modifiedy);
_local3 = parent._tFormedX;
_local4 = parent._tFormedY;
};
_tFormedX = ((_local3 + ((Math.cos((-(modifiedRotation) * radianConst)) * _arg1) * modifiedScaleX)) + ((Math.sin((-(modifiedRotation) * radianConst)) * _arg2) * modifiedScaleY));
_tFormedY = ((_local4 + ((-(Math.sin((-(modifiedRotation) * radianConst))) * _arg1) * modifiedScaleX)) + ((Math.cos((-(modifiedRotation) * radianConst)) * _arg2) * modifiedScaleY));
}
public function setupTextInput(_arg1:int=-1):void{
var _local2:TextField;
if ((obj is TextField)){
_local2 = TextField(obj);
_local2.selectable = true;
_local2.mouseEnabled = true;
_local2.type = TextFieldType.INPUT;
if (_arg1 != -1){
_local2.maxChars = _arg1;
};
_local2.setSelection(_local2.text.length, _local2.text.length);
GameSceneStack.focusObj = this;
};
}
public function setGlobal(_arg1:Boolean):void{
var _local2:GameObject;
isGlobal = _arg1;
for each (_local2 in children) {
_local2.setGlobal(_arg1);
};
}
public function distanceToObject(_arg1:GameObject):Number{
var _local2:Number = (_arg1.basex - basex);
var _local3:Number = (_arg1.basey - basey);
return (Math.sqrt(((_local2 * _local2) + (_local3 * _local3))));
}
public function setText(_arg1:String, _arg2:int=-1, _arg3:int=-1):void{
var _local4:TextField;
var _local5:int;
var _local6:TextField;
if (_arg1 == null){
_arg1 = "";
};
if (oldstr == null){
oldstr = "";
};
if ((obj is TextField)){
_local4 = TextField(obj);
if (((!((_arg1.length == oldstr.length))) && (!((oldstr == "oldstrdefaultvalue"))))){
_local5 = -1;
if (m.contains(_local4)){
_local5 = m.getChildIndex(_local4);
m.removeChild(_local4);
};
_local6 = _local4;
_local4 = new TextField();
_local4.x = _local6.x;
_local4.y = _local6.y;
_local4.scaleX = _local6.scaleX;
_local4.scaleY = _local6.scaleY;
_local4.rotation = _local6.rotation;
_local4.alpha = _local6.alpha;
if (_local5 == -1){
m.addChild(_local4);
} else {
m.addChildAt(_local4, _local5);
};
obj = _local4;
};
oldstr = _arg1;
if (_arg2 == -1){
_arg2 = defaultTextNum;
} else {
defaultTextNum = _arg2;
};
if (_arg3 == -1){
_arg3 = defaultCol;
} else {
defaultCol = _arg3;
};
_local4.defaultTextFormat = new TextFormat(fontName, _arg2, _arg3, true, true);
_local4.embedFonts = true;
if (_arg1.indexOf("<b>") != -1){
_local4.htmlText = _arg1;
} else {
_local4.text = _arg1;
};
syncText();
syncedSize = false;
_local4.selectable = false;
_local4.mouseEnabled = false;
if ((((_arg2 > 12)) && ((_local4.filters.length < 1)))){
_local4.filters = [new DropShadowFilter((4 * (_arg2 / 48)), 45, 0, 1, 0, 0, 1, 0)];
};
};
}
public function changeZOrder(_arg1:String):void{
if (gs.clipForZOrder(zOrderString).contains(obj)){
gs.clipForZOrder(zOrderString).removeChild(obj);
};
m = gs.clipForZOrder(_arg1);
gs.clipForZOrder(_arg1).addChild(obj);
zOrderString = _arg1;
}
public function buttonOn():Boolean{
return (_on);
}
public function mOverModified():Boolean{
if (Input.i.mouseX() > (modifiedx - (baseWidth / 2))){
if (Input.i.mouseX() < (modifiedx + (baseWidth / 2))){
if (Input.i.mouseY() > (modifiedy - (baseHeight / 2))){
if (Input.i.mouseY() < (modifiedy + (baseHeight / 2))){
return (true);
};
};
};
};
return (false);
}
public function _mHit(_arg1:Event):void{
if (gs.stackFading()){
return;
};
if (hidden){
return;
};
if (buttonDisabled){
return;
};
if (buttonBitmapDataOn){
setButtonOn(!(_on));
};
helperButton.mHit();
_mHasHit = true;
}
public function update():void{
var pe:ParticleEmitter;
var go:GameObject;
var frame:int;
var c:int;
var ostr:String;
var str:String;
if (_removed){
return;
};
if (disabled){
obj.alpha = 0;
return;
};
if ((obj is TextField)){
syncText();
};
if (imageSet){
if (animSpeed > 0){
if (!animStarted){
animFrame = (Math.random() * imageSet.length);
animStarted = true;
};
if (!animFreeze){
animFrame = (animFrame + (1 / animSpeed));
};
frame = (int(animFrame) % imageSet.length);
Bitmap(obj).bitmapData = imageSet[frame];
};
};
if (!initialized){
initialized = true;
_init();
};
helper.update();
helperAnimation.update();
if (helperButton){
helperButton.update();
};
ticks++;
randTicks++;
justCreated = false;
modifiedRotation = baseRotation;
lastModifiedX = modifiedx;
lastModifiedY = modifiedy;
modifiedx = basex;
modifiedy = basey;
modifiedScaleX = baseScaleX;
modifiedScaleY = baseScaleY;
if (parent != null){
modifiedRotation = (parent.modifiedRotation + baseRotation);
if (independentRotation){
modifiedRotation = baseRotation;
};
};
modifiedAlpha = baseAlpha;
var i:int;
while (i < filters.length) {
GameObjectFilter(filters[i]).update(this);
i = (i + 1);
};
with ({}) {
with ({}) {
!ERROR!.blah = function (_arg1:Object, _arg2:int, _arg3:Array):Boolean{
return (!(GameObjectFilter(_arg1).removeFilter));
};
};
filters = filters.filter(function (_arg1:Object, _arg2:int, _arg3:Array):Boolean{
return (!(GameObjectFilter(_arg1).removeFilter));
});
for each (pe in particles) {
pe.emitOnto(mainLayer, tformedX(pe.x, pe.y), tformedY(pe.x, pe.y));
};
for each (go in children) {
go.update();
};
mainLayer.x = gs.camX;
mainLayer.y = gs.camY;
if (mainLayer.particles.length > 0){
mainLayer.update();
};
if (isInput){
c = 0;
while (c < 0xFF) {
if (Input.i.keyHit(c)){
if (c == 13){
isInputEnterHit = true;
} else {
if (c == 8){
ostr = TextField(obj).text;
if (ostr.length > 1){
setText(ostr.slice(0, (ostr.length - 1)));
} else {
setText("");
};
} else {
str = numToChar(c);
ostr = TextField(obj).text;
if (str.length > 0){
if ((((ostr.length < isInputMaxLength)) || ((isInputMaxLength == -1)))){
setText((ostr + str));
};
};
};
};
};
c = (c + 1);
};
};
_update();
if (_toRemove){
remove();
};
}
public function mOver():Boolean{
var _local1:Number = basex;
var _local2:Number = basey;
if (!isGlobal){
_local1 = (_local1 - gs.camX);
_local2 = (_local2 - gs.camY);
};
if (Input.i.mouseX() > (_local1 - ((baseWidth * baseHandleX) * baseScaleX))){
if (Input.i.mouseX() < (_local1 + ((baseWidth * (1 - baseHandleX)) * baseScaleX))){
if (Input.i.mouseY() > (_local2 - ((baseHeight * baseHandleY) * baseScaleY))){
if (Input.i.mouseY() < (_local2 + ((baseHeight * (1 - baseHandleY)) * baseScaleY))){
return (true);
};
};
};
};
return (false);
}
public function tintClip(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:Array = new Array();
_local5 = _local5.concat([_arg2, _arg3, _arg4, 0, 0]);
_local5 = _local5.concat([_arg4, _arg2, _arg3, 0, 0]);
_local5 = _local5.concat([_arg3, _arg4, _arg2, 0, 0]);
_local5 = _local5.concat([0, 0, 0, 1, 0]);
var _local6:BitmapFilter = new ColorMatrixFilter(_local5);
_arg1.filters = new Array(_local6);
}
public function show():void{
hidden = false;
}
public function removeChild(_arg1:GameObject):void{
var go = _arg1;
go.parent = null;
children = children.filter(function (_arg1:Object, _arg2:int, _arg3:Array){
return (!((_arg1 == go)));
});
}
public function tformedWithoutParent(_arg1:Number, _arg2:Number):Point{
var _local3:Number = ((modifiedx + ((cosd(-(modifiedRotation)) * _arg1) * baseScaleX)) + ((sind(-(modifiedRotation)) * _arg2) * baseScaleY));
var _local4:Number = ((modifiedy + ((-(sind(-(modifiedRotation))) * _arg1) * baseScaleX)) + ((cosd(-(modifiedRotation)) * _arg2) * baseScaleY));
return (new Point(_local3, _local4));
}
public function mask():void{
var _local4:int;
if ((!(obj) is Bitmap)){
return;
};
var _local1:Bitmap = Bitmap(obj);
var _local2:BitmapData = _local1.bitmapData;
_local2.lock();
var _local3:int;
while (_local3 < _local2.width) {
_local4 = 0;
while (_local4 < _local2.height) {
if (_local2.getPixel32(_local3, _local4) == 4278190080){
_local2.floodFill(_local3, _local4, 0);
};
_local4++;
};
_local3++;
};
_local2.unlock();
}
public function addChild(_arg1:GameObject):void{
_arg1.parent = this;
children.push(_arg1);
}
public function globalX():Number{
var _local1:Number = basex;
if (parent){
_local1 = parent.tformedX(basex, basey);
};
return (_local1);
}
public function drawToPixmap(_arg1:DisplayObject, _arg2:int, _arg3:int, _arg4:int=0, _arg5:Number=1, _arg6:Number=1, _arg7:String="normal"){
var _local8:BitmapData = Bitmap(obj).bitmapData;
var _local9:Number = _arg1.x;
var _local10:Number = _arg1.y;
var _local11:Number = _arg1.scaleX;
var _local12:Number = _arg1.scaleY;
var _local13:Number = _arg1.rotation;
_arg1.x = _arg2;
_arg1.y = _arg3;
_arg1.scaleX = _arg5;
_arg1.scaleY = _arg6;
_arg1.rotation = _arg4;
_local8.draw(_arg1, _arg1.transform.matrix, null, _arg7);
_arg1.x = _local9;
_arg1.y = _local10;
_arg1.scaleX = _local11;
_arg1.scaleY = _local12;
_arg1.rotation = _local13;
}
public function globalY():Number{
var _local1:Number = basey;
if (parent){
_local1 = parent.tformedY(basex, basey);
};
return (_local1);
}
public function position(_arg1:Number, _arg2:Number):void{
basex = _arg1;
basey = _arg2;
}
public function setHandle(_arg1:Number, _arg2:Number, _arg3:Boolean=true){
var _local4:GameObject;
baseHandleX = _arg1;
baseHandleY = _arg2;
if (_arg3){
for each (_local4 in children) {
_local4.setHandle(_arg1, _arg2, _arg3);
};
};
}
public function setButtonOn(_arg1:Boolean):void{
var _local2:BitmapData;
var _local3:SimpleButton;
_on = _arg1;
if (buttonBitmapDataOn){
if (_on){
_local2 = buttonBitmapDataOn;
} else {
_local2 = buttonBitmapDataOff;
};
_local3 = SimpleButton(obj);
Bitmap(_local3.upState).bitmapData = _local2;
Bitmap(_local3.downState).bitmapData = _local2;
Bitmap(_local3.overState).bitmapData = _local2;
};
if (((showButtonOnOutline) || (!(buttonBitmapDataOn)))){
if (_on){
obj.filters = [new GlowFilter(0xFFCD00, selectGlow, 12, 12, 3)];
} else {
obj.filters = new Array();
};
};
}
public function tint(_arg1:Number, _arg2:Number, _arg3:Number):void{
tintClip(obj, _arg1, _arg2, _arg3);
}
public function emitConditionalParticles(_arg1:String, _arg2:Number=0, _arg3:Number=0, _arg4:Boolean=false, _arg5:Number=0):Array{
var _local7:ParticleEmitter;
if (_removed){
return (null);
};
var _local6:Array;
for each (_local7 in conditionalParticles) {
if (_local7.Name == _arg1){
if (_arg4){
_local6 = _local7.emitOnto(mainLayer, _arg2, _arg3, _arg5, gs.particleKilledCallback);
} else {
_local6 = _local7.emitOnto(mainLayer, tformedX((_local7.x + _arg2), (_local7.y + _arg3)), tformedY((_local7.x + _arg2), (_local7.y + _arg3)), _arg5, gs.particleKilledCallback);
};
};
};
return (_local6);
}
public function hide():void{
hidden = true;
}
public function tformedX(_arg1:Number, _arg2:Number):Number{
_tformed(_arg1, _arg2);
return (_tFormedX);
}
public function tformedY(_arg1:Number, _arg2:Number):Number{
_tformed(_arg1, _arg2);
return (_tFormedY);
}
public function rotate(_arg1:Number):void{
baseRotation = _arg1;
}
public function addFilter(_arg1:GameObjectFilter):void{
filters.push(_arg1);
}
public function setButtonText(_arg1:String, _arg2:int=-1):void{
var _local3:GameObject = children[0];
_local3.setText(_arg1, _arg2);
}
public function angleToObject(_arg1:GameObject):Number{
return (((Math.atan2((_arg1.globalY() - globalY()), (_arg1.globalX() - globalX())) * 180) / Math.PI));
}
private function numToChar(_arg1:int):String{
var _local2:String;
var _local3:String;
var _local4:String;
if ((((_arg1 > 47)) && ((_arg1 < 58)))){
_local2 = "0123456789";
return (_local2.charAt((_arg1 - 48)));
};
if ((((_arg1 > 64)) && ((_arg1 < 91)))){
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
return (_local3.charAt((_arg1 - 65)));
};
if ((((_arg1 > 96)) && ((_arg1 < 123)))){
_local4 = "abcdefghijklmnopqrstuvwxyz";
return (_local4.charAt((_arg1 - 97)));
};
return ("");
}
public function _remove():void{
}
public function drawToImage(_arg1:Object, _arg2:int, _arg3:int, _arg4:int=0, _arg5:Number=1, _arg6:Number=1, _arg7:String="erase", _arg8:Rectangle=null, _arg9:Array=null){
var _local12:BitmapData;
var _local13:BitmapData;
var _local10:BitmapData = Bitmap(obj).bitmapData;
var _local11:Object = _arg1;
matrixClip.scaleX = _arg5;
matrixClip.scaleY = _arg6;
matrixClip.rotation = _arg4;
matrixClip.x = ((_arg2 - basex) + (_local10.width / 2));
matrixClip.y = ((_arg3 - basey) + (_local10.height / 2));
if (_arg9){
tintClip(matrixClip, _arg9[0], _arg9[1], _arg9[2]);
_local12 = new BitmapData(_local11.width, _local11.height, true);
if ((_arg1 is BitmapData)){
_local13 = BitmapData(_arg1);
} else {
_local13 = Bitmap(_local11).bitmapData;
};
_local12.applyFilter(_local13, new Rectangle(0, 0, _local11.width, _local11.height), new Point(0, 0), matrixClip.filters[0]);
_local11 = _local12;
};
if ((_local11 is IBitmapDrawable)){
_local10.draw(IBitmapDrawable(_local11), matrixClip.transform.matrix, null, _arg7, _arg8, true);
} else {
trace("ILLEGAL BITMAP DRAW!!");
};
}
public function cosd(_arg1:Number):Number{
return (Math.cos((_arg1 * (Math.PI / 180))));
}
public function setFrameFromRange(_arg1:Number, _arg2:Number, _arg3:Array, _arg4:int=-1):void{
var _local5:Number = (Number(_arg1) / Number(_arg2));
var _local6:int;
if (_arg4 != -1){
_local6 = (_arg4 - (_arg3.length / 2));
};
var _local7:int = ((_local5 * _arg3.length) + _local6);
if (_arg4 == -1){
if (_local7 < 0){
_local7 = 0;
};
if (_local7 > (_arg3.length - 1)){
_local7 = (_arg3.length - 1);
};
} else {
while (_local7 < 0) {
_local7 = (_local7 + _arg3.length);
};
while (_local7 > (_arg3.length - 1)) {
_local7 = (_local7 - _arg3.length);
};
};
Bitmap(obj).bitmapData = _arg3[_local7];
}
public function move(_arg1:Number, _arg2:Number):void{
var _local3:Number = ((_arg1 * cosd(-(baseRotation))) + (sind(-(baseRotation)) * _arg2));
var _local4:Number = ((_arg1 * -(sind(-(baseRotation)))) + (cosd(-(baseRotation)) * _arg2));
basex = (basex + _local3);
basey = (basey + _local4);
}
public function setFrameFromSignedRange(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array, _arg5:int=-1):void{
if (_arg1 < _arg2){
_arg1 = _arg2;
};
if (_arg1 > _arg3){
_arg1 = _arg3;
};
return (setFrameFromRange((_arg1 - _arg2), (_arg3 - _arg2), _arg4, _arg5));
}
public function tformed(_arg1:Number, _arg2:Number):Point{
_tformed(_arg1, _arg2);
return (new Point(_tFormedX, _tFormedY));
}
public function mHit():Boolean{
var _local1:Boolean = _mHasHit;
_mHasHit = false;
return (_local1);
}
public function _update():void{
}
public function _init():void{
}
}
}//package GameObject
Section 67
//GameObjectCollision (GameObject.GameObjectCollision)
package GameObject {
import Engine.Collision.Shapes.*;
import Engine.Collision.*;
import Engine.Common.Math.*;
import Engine.Dynamics.*;
import Engine.Common.*;
public class GameObjectCollision {
public var approxX:Number;
public var vecTemp:b2Vec2;
public var lastSynchronized:int;// = 0
public var approxRadius:Number;
public var approxY:Number;
public var lastMiniSync:int;// = 0
public var body:b2Body;
public var bodydef:b2BodyDef;
public var go:GameObject;
public var type:int;// = 0
public var disabled:Boolean;// = false
public var children:Array;
public static var world:b2World;
public function GameObjectCollision(){
var _local1:b2AABB;
var _local2:b2Vec2;
var _local3:Boolean;
children = new Array();
vecTemp = new b2Vec2();
super();
if (!world){
_local1 = new b2AABB();
_local1.minVertex.Set(-100, -100);
_local1.maxVertex.Set(100, 100);
_local2 = new b2Vec2(0, 0);
_local3 = true;
world = new b2World(_local1, _local2, _local3);
};
bodydef = new b2BodyDef();
}
public function pushPolygon(_arg1:GameObjectCollisionPoly):void{
_arg1.finalize();
children.push(_arg1);
bodydef.AddShape(_arg1.polyDef);
}
public function miniSync():void{
if (lastMiniSync == go.ticks){
return;
};
lastMiniSync = go.ticks;
var _local1:b2Shape = body.m_shapeList;
var _local2:Number = ((go.baseRotation / 180) * Math.PI);
var _local3:int;
while (_local3 < body.m_shapeCount) {
children[_local3].tformedX = (((Math.cos(-(_local2)) * children[_local3].approxX) + (Math.sin(-(_local2)) * children[_local3].approxY)) + go.basex);
children[_local3].tformedY = (((-(Math.sin(-(_local2))) * children[_local3].approxX) + (Math.cos(-(_local2)) * children[_local3].approxY)) + go.basey);
_local1 = _local1.m_next;
_local3++;
};
}
public function collidesWith(_arg1:GameObjectCollision):Boolean{
var _local8:b2Shape;
var _local9:int;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Boolean;
var _local15:b2Manifold;
if (((disabled) || (_arg1.disabled))){
return (false);
};
var _local2:Number = (go.basex - _arg1.go.basex);
var _local3:Number = (go.basey - _arg1.go.basey);
var _local4:Number = ((((go.baseWidth + _arg1.go.baseWidth) + go.baseHeight) + _arg1.go.baseHeight) * 0.7);
if ((((((((_local2 < -(_local4))) || ((_local2 > _local4)))) || ((_local3 < -(_local4))))) || ((_local3 > _local4)))){
return (false);
};
miniSync();
_arg1.miniSync();
var _local5:b2Shape = body.m_shapeList;
var _local6:int;
var _local7:int = (body.m_shapeCount - 1);
while (_local7 >= 0) {
_local8 = _arg1.body.m_shapeList;
_local9 = (_arg1.body.m_shapeCount - 1);
while (_local9 >= 0) {
_local10 = (children[_local7].tformedX - _arg1.children[_local9].tformedX);
_local11 = (children[_local7].tformedY - _arg1.children[_local9].tformedY);
_local12 = ((_local10 * _local10) + (_local11 * _local11));
_local13 = (children[_local7].approxRadius + _arg1.children[_local9].approxRadius);
_local14 = false;
if (_local12 < (_local13 * _local13)){
_local14 = true;
};
if (_local14){
synchronize();
_arg1.synchronize();
_local15 = new b2Manifold();
b2Collision.b2CollidePoly(_local15, b2PolyShape(_local5), b2PolyShape(_local8));
if (_local15.points[0].separation < 9999999){
return (true);
};
};
_local8 = _local8.m_next;
_local9--;
};
_local5 = _local5.m_next;
_local7--;
};
return (false);
}
public function finalize():void{
body = new b2Body(bodydef, world);
}
public function synchronize():void{
var _local2:Number;
if (lastSynchronized == go.ticks){
return;
};
lastSynchronized = go.ticks;
vecTemp.x = go.basex;
vecTemp.y = go.basey;
var _local1:b2Shape = body.m_shapeList;
_local2 = ((go.baseRotation / 180) * Math.PI);
body.m_flags = (body.m_flags & ~(b2Body.e_frozenFlag));
body.SetOriginPosition(vecTemp, _local2);
body.SynchronizeShapes();
}
}
}//package GameObject
Section 68
//GameObjectCollisionPoly (GameObject.GameObjectCollisionPoly)
package GameObject {
import Engine.Collision.Shapes.*;
public class GameObjectCollisionPoly {
public var tformedX:Number;
public var points:Array;
public var approxX:Number;
public var tformedY:Number;
public var approxRadius:Number;
public var polyDef:b2PolyDef;
public var approxY:Number;
public function GameObjectCollisionPoly(){
points = new Array();
super();
}
public function finalize():void{
polyDef = new b2PolyDef();
polyDef.vertexCount = points.length;
var _local1:int = (points.length - 1);
while (_local1 >= 0) {
polyDef.vertices[_local1].Set(points[_local1][0], points[_local1][1]);
_local1--;
};
polyDef.density = 1;
polyDef.friction = 0.3;
}
public function pushPoint(_arg1:Number, _arg2:Number):void{
points.push([_arg1, _arg2]);
}
}
}//package GameObject
Section 69
//GameObjectFilter (GameObject.GameObjectFilter)
package GameObject {
public class GameObjectFilter {
public var ticks:int;// = 0
public var removeFilter:Boolean;// = false
public function removeWhenDone():void{
}
public function reverse():void{
}
public function remove(_arg1:GameObject):void{
}
public function update(_arg1:GameObject):void{
}
}
}//package GameObject
Section 70
//GameObjectFilterAddOrigin (GameObject.GameObjectFilterAddOrigin)
package GameObject {
public class GameObjectFilterAddOrigin extends GameObjectFilter {
public var dx:Number;// = 0
public var dy:Number;// = 0
override public function update(_arg1:GameObject):void{
_arg1.modifiedx = (_arg1.modifiedx + dx);
_arg1.modifiedy = (_arg1.modifiedy + dy);
}
}
}//package GameObject
Section 71
//GameObjectFilterBlink (GameObject.GameObjectFilterBlink)
package GameObject {
import Tools.*;
public class GameObjectFilterBlink extends GameObjectFilter {
public var BlinkAlpha:Number;// = 0
public var dead:Boolean;// = false
public var Interval:int;// = 100
public var AliveTime:int;// = 0
public function GameObjectFilterBlink(){
ticks = Random.randInt(0, 100);
}
override public function update(_arg1:GameObject):void{
if (dead){
return;
};
ticks++;
if (((ticks % Interval) > (Interval / 2))){
_arg1.modifiedAlpha = (_arg1.modifiedAlpha * BlinkAlpha);
};
if ((((AliveTime > 0)) && ((ticks > AliveTime)))){
dead = true;
};
}
}
}//package GameObject
Section 72
//GameObjectFilterDampenInterpolateIn (GameObject.GameObjectFilterDampenInterpolateIn)
package GameObject {
import Tools.*;
public class GameObjectFilterDampenInterpolateIn extends GameObjectFilter {
public var Delay:int;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var FadeTime:int;
override public function update(_arg1:GameObject):void{
ticks = (ticks + 1);
var _local2:Number = Interpolation.dampenInterpolateLock(dx, 0, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)));
var _local3:Number = Interpolation.dampenInterpolateLock(dy, 0, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)));
_arg1.modifiedx = (_arg1.modifiedx + _local2);
_arg1.modifiedy = (_arg1.modifiedy + _local3);
}
}
}//package GameObject
Section 73
//GameObjectFilterDampenOrigin (GameObject.GameObjectFilterDampenOrigin)
package GameObject {
public class GameObjectFilterDampenOrigin extends GameObjectFilter {
public var StickToBottom:int;// = 0
public var StickToTop:int;// = 0
public var factor:Number;// = 0
override public function update(_arg1:GameObject):void{
_arg1.dampenOrigin = factor;
}
}
}//package GameObject
Section 74
//GameObjectFilterDraggable (GameObject.GameObjectFilterDraggable)
package GameObject {
import Tools.*;
public class GameObjectFilterDraggable extends GameObjectFilter {
public var dormant:Boolean;// = false
public var startFunc:Function;
public var handleX:Number;// = 0
public var handleY:Number;// = 0
public var beingDragged:Boolean;// = false
public var finishFunc:Function;
public static var lastDragged;
override public function update(_arg1:GameObject):void{
if (dormant){
return;
};
var _local2:Number = (Input.i.mouseX() + _arg1.gs.camX);
var _local3:Number = (Input.i.mouseY() + _arg1.gs.camY);
if (!beingDragged){
if (!anyInFront(_arg1)){
if (_arg1.gs.mHit()){
if (_arg1.mOver()){
handleX = (_arg1.basex - _local2);
handleY = (_arg1.basey - _local3);
beingDragged = true;
if (startFunc){
startFunc();
};
};
};
};
};
if (beingDragged){
if (!Input.i.mouseDown()){
beingDragged = false;
if (finishFunc != null){
finishFunc();
};
};
};
if (beingDragged){
_arg1.basex = (_local2 + handleX);
_arg1.basey = (_local3 + handleY);
};
}
public function anyInFront(_arg1:GameObject):Boolean{
var _local4:GameObject;
var _local5:int;
var _local6:int;
var _local7:Boolean;
var _local8:int;
var _local2:Boolean;
var _local3:int;
while (_local3 < _arg1.gs.objects.length) {
_local4 = _arg1.gs.objects[_local3];
if (_local4 == _arg1){
_local2 = true;
};
_local5 = _arg1.gs.zOrderInt(_arg1.zOrderString);
_local6 = _arg1.gs.zOrderInt(_local4.zOrderString);
_local7 = true;
if (_local6 < _local5){
_local7 = false;
};
if (_local6 == _local5){
if (!_local2){
_local7 = false;
};
};
if (_local4 == _arg1){
_local7 = false;
};
if (_local7){
_local8 = 0;
while (_local8 < _local4.filters.length) {
if ((_local4.filters[_local8] is GameObjectFilterDraggable)){
if (_local4.mOver()){
return (true);
};
};
_local8++;
};
};
_local3++;
};
return (false);
}
}
}//package GameObject
Section 75
//GameObjectFilterFadeInOut (GameObject.GameObjectFilterFadeInOut)
package GameObject {
import Tools.*;
public class GameObjectFilterFadeInOut extends GameObjectFilter {
public var FadeIn:int;// = 0
public var FadeOutDuration:Number;// = 0
public var FadeInBlur:int;// = 0
public var FadeInDelay:Number;// = 0
public var FadeOut:int;// = 0
public var FadeInDuration:Number;// = 0
public var FadeOutKill:int;// = 1
public var FadeOutBlur:int;// = 0
public var FadeOutTime:Number;// = 0
override public function update(_arg1:GameObject):void{
var _local5:Number;
var _local6:Array;
ticks = (ticks + 1);
var _local2:Number = 1;
var _local3:Number = 1;
var _local4:Number = 1;
if (FadeIn){
_local3 = Interpolation.linearInterpolateLock(0, 1, Interpolation.fromTo(ticks, FadeInDelay, (FadeInDelay + FadeInDuration)));
};
if (FadeOut){
_local4 = Interpolation.linearInterpolateLock(1, 0, Interpolation.fromTo(ticks, FadeOutTime, (FadeOutTime + FadeOutDuration)));
};
_local2 = (_local3 * _local4);
_arg1.pushAlpha(_local2);
if (((FadeInBlur) || (FadeOutBlur))){
_local5 = (((1 - _local3) * FadeInBlur) + ((1 - _local4) * FadeOutBlur));
_local6 = _arg1.obj.filters;
_arg1.obj.filters = _local6;
};
if (((FadeOut) && (FadeOutKill))){
if (ticks > (FadeOutTime + FadeOutDuration)){
_arg1._toRemove = true;
};
};
}
}
}//package GameObject
Section 76
//GameObjectFilterMoveWith (GameObject.GameObjectFilterMoveWith)
package GameObject {
public class GameObjectFilterMoveWith extends GameObjectFilter {
public var other:GameObject;
public var dx:Number;
public var dy:Number;
public var setup:Boolean;// = false
override public function update(_arg1:GameObject):void{
ticks++;
if (!setup){
setup = true;
dx = (_arg1.basex - other.basex);
dy = (_arg1.basey - other.basey);
};
_arg1.basex = (other.basex + dx);
_arg1.basey = (other.basey + dy);
if (other._removed){
removeFilter = true;
};
}
}
}//package GameObject
Section 77
//GameObjectFilterPulse (GameObject.GameObjectFilterPulse)
package GameObject {
import Tools.*;
public class GameObjectFilterPulse extends GameObjectFilter {
public var alpha:Number;// = 1
public var Speed:Number;// = 1
public function GameObjectFilterPulse(){
ticks = Random.randInt(0, 100);
}
override public function update(_arg1:GameObject):void{
ticks++;
_arg1.modifiedAlpha = (_arg1.modifiedAlpha * ((alpha * (1 + _arg1.sind(((ticks * 2) * Speed)))) / 2));
}
}
}//package GameObject
Section 78
//GameObjectFilterRepeats (GameObject.GameObjectFilterRepeats)
package GameObject {
import flash.display.*;
public class GameObjectFilterRepeats extends GameObjectFilter {
public var created:Boolean;// = false
public var others:Array;
public function GameObjectFilterRepeats(){
others = new Array();
super();
}
override public function remove(_arg1:GameObject):void{
var _local2:GameObject;
for each (_local2 in others) {
_local2.remove();
};
}
override public function update(_arg1:GameObject):void{
var _local2:int;
var _local3:int;
var _local4:GameObjectFilterStayOnScreen;
var _local5:GameObject;
var _local6:GameObjectFilter;
var _local7:GameObjectFilterDampenOrigin;
if (!created){
_arg1.hide();
_local3 = ((800 / _arg1.baseWidth) + 2);
_local4 = new GameObjectFilterStayOnScreen();
_local4.multiplier = _local3;
_local2 = 0;
while (_local2 < _local3) {
_local5 = new GameObject(_arg1.gs, _arg1.imClass, _arg1.zOrderString, (_arg1.basex + (_local2 * _arg1.baseWidth)), _arg1.basey);
_local5.addFilter(_local4);
others.push(_local5);
for each (_local6 in _arg1.filters) {
if ((_local6 is GameObjectFilterDampenOrigin)){
_local7 = new GameObjectFilterDampenOrigin();
_local7.factor = GameObjectFilterDampenOrigin(_local6).factor;
_local5.addFilter(_local7);
};
};
_local2++;
};
_arg1.addFilter(_local4);
created = true;
};
_local2 = 0;
while (_local2 < others.length) {
if (Bitmap(others[_local2].obj).bitmapData != Bitmap(_arg1.obj).bitmapData){
Bitmap(others[_local2].obj).bitmapData = Bitmap(_arg1.obj).bitmapData;
};
others[_local2].baseWidth = _arg1.baseWidth;
others[_local2].baseHeight = _arg1.baseHeight;
_local2++;
};
}
}
}//package GameObject
Section 79
//GameObjectFilterRotate (GameObject.GameObjectFilterRotate)
package GameObject {
public class GameObjectFilterRotate extends GameObjectFilter {
public var startRotation:Number;
public var Speed:Number;// = 1
public var direction:Boolean;
public function GameObjectFilterRotate(){
startRotation = (Math.random() * 360);
direction = ((Math.random())<0.5) ? true : false;
super();
}
override public function update(_arg1:GameObject):void{
startRotation = (startRotation + Speed);
_arg1.baseRotation = startRotation;
if (_arg1.baseRotation < (360 * 5000)){
if (_arg1.baseRotation > (-360 * 5000)){
while (_arg1.baseRotation > 360) {
_arg1.baseRotation = (_arg1.baseRotation - 360);
};
while (_arg1.baseRotation < -360) {
_arg1.baseRotation = (_arg1.baseRotation + 360);
};
};
};
}
}
}//package GameObject
Section 80
//GameObjectFilterRotateSlowly (GameObject.GameObjectFilterRotateSlowly)
package GameObject {
import Tools.*;
public class GameObjectFilterRotateSlowly extends GameObjectFilter {
public var rotSpeed:Number;// = 1
public var paused:Boolean;// = false
public var internalRotationSet:Boolean;// = false
public var internalRotation:Number;// = 0
public function GameObjectFilterRotateSlowly(_arg1:Number=1){
rotSpeed = _arg1;
}
override public function update(_arg1:GameObject):void{
if (!internalRotationSet){
internalRotation = _arg1.baseRotation;
internalRotationSet = true;
};
if (!paused){
internalRotation = Interpolation.tendTowardsAngle(internalRotation, _arg1.baseRotation, rotSpeed);
};
_arg1.modifiedRotation = internalRotation;
}
}
}//package GameObject
Section 81
//GameObjectFilterScaleInOut (GameObject.GameObjectFilterScaleInOut)
package GameObject {
import Tools.*;
public class GameObjectFilterScaleInOut extends GameObjectFilter {
public var ScaleOutEndX:Number;// = 0
public var ScaleInDuration:Number;// = 0
public var ScaleOut:int;// = 0
public var ScaleInStartX:Number;// = 1
public var ScaleInStartY:Number;// = 1
public var ScaleOutTime:Number;// = 0
public var ScaleInDelay:Number;// = 0
public var ScaleIn:int;// = 0
public var ScaleOutDuration:Number;// = 0
public var ScaleOutEndY:Number;// = 0
override public function update(_arg1:GameObject):void{
ticks = (ticks + 1);
var _local2:Number = 1;
var _local3:Number = 1;
if (ScaleIn){
_local2 = (_local2 * Interpolation.linearInterpolateLock(ScaleInStartX, 1, Interpolation.fromTo(ticks, ScaleInDelay, (ScaleInDelay + ScaleInDuration))));
_local3 = (_local3 * Interpolation.linearInterpolateLock(ScaleInStartY, 1, Interpolation.fromTo(ticks, ScaleInDelay, (ScaleInDelay + ScaleInDuration))));
};
if (ScaleOut){
_local2 = (_local2 * Interpolation.linearInterpolateLock(1, ScaleOutEndX, Interpolation.fromTo(ticks, ScaleOutTime, (ScaleOutTime + ScaleOutDuration))));
_local3 = (_local3 * Interpolation.linearInterpolateLock(1, ScaleOutEndY, Interpolation.fromTo(ticks, ScaleOutTime, (ScaleOutTime + ScaleOutDuration))));
};
_arg1.pushScale(_local2, _local3);
}
}
}//package GameObject
Section 82
//GameObjectFilterShift (GameObject.GameObjectFilterShift)
package GameObject {
public class GameObjectFilterShift extends GameObjectFilter {
public var timeout:int;// = -1
public var dx:Number;// = 0
public var dy:Number;// = 0
override public function update(_arg1:GameObject):void{
ticks++;
_arg1.basex = (_arg1.basex + dx);
_arg1.basey = (_arg1.basey + dy);
if ((((ticks > timeout)) && (!((timeout == -1))))){
removeFilter = true;
};
}
}
}//package GameObject
Section 83
//GameObjectFilterSinDisplace (GameObject.GameObjectFilterSinDisplace)
package GameObject {
public class GameObjectFilterSinDisplace extends GameObjectFilter {
public var speed:Number;// = 1
public var x:Number;// = 0
public var y:Number;// = 0
override public function update(_arg1:GameObject):void{
ticks++;
_arg1.modifiedx = (_arg1.modifiedx + (x * _arg1.sind(((speed * Number(ticks)) * 3.6))));
_arg1.modifiedy = (_arg1.modifiedy + (y * _arg1.sind(((speed * Number(ticks)) * 3.6))));
}
}
}//package GameObject
Section 84
//GameObjectFilterSqrtInterpolateIn (GameObject.GameObjectFilterSqrtInterpolateIn)
package GameObject {
import Tools.*;
public class GameObjectFilterSqrtInterpolateIn extends GameObjectFilter {
public var useSquareSquare:Boolean;// = false
public var Delay:int;
public var useSquare:Boolean;// = false
public var FadeTime:int;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var killFunction:Function;
public var useAlpha:Boolean;// = false
public var killWhenDone:Boolean;// = false
override public function removeWhenDone():void{
killWhenDone = true;
}
override public function reverse():void{
useSquare = !(useSquare);
ticks = 0;
}
public function progress():Number{
var _local1:Number = Interpolation.lockValue(Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)), 0, 1);
if (useSquare){
return ((1 - _local1));
};
return (_local1);
}
override public function update(_arg1:GameObject):void{
var _local4:int;
var _local5:int;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
ticks = (ticks + 1);
var _local2:Number = 0;
var _local3:Number = 0;
if (useAlpha){
_local4 = 0;
_local5 = 1;
if (useSquare){
_local4 = 1;
_local5 = 0;
};
_arg1.modifiedAlpha = (_arg1.modifiedAlpha * Interpolation.squareInterpolateLock(_local4, _local5, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime))));
} else {
if (useSquareSquare){
_local6 = 0;
_local7 = dx;
_local8 = 0;
_local9 = dy;
if (useSquare){
_local6 = dx;
_local8 = dy;
_local7 = 0;
_local9 = 0;
};
_local2 = Interpolation.squareSquareInterpolateLock(_local6, _local7, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)));
_local3 = Interpolation.squareSquareInterpolateLock(_local8, _local9, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)));
} else {
if (useSquare){
_local2 = Interpolation.squareInterpolateLock(0, dx, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)));
_local3 = Interpolation.squareInterpolateLock(0, dy, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)));
} else {
_local2 = Interpolation.sqrtInterpolateLock(dx, 0, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)));
_local3 = Interpolation.sqrtInterpolateLock(dy, 0, Interpolation.fromTo(ticks, Delay, (Delay + FadeTime)));
};
};
};
_arg1.modifiedx = (_arg1.modifiedx + _local2);
_arg1.modifiedy = (_arg1.modifiedy + _local3);
if (ticks > (Delay + FadeTime)){
if (killWhenDone){
if (killFunction){
killFunction(_arg1);
};
_arg1.remove();
};
};
}
public function done():Boolean{
return ((ticks > (Delay + FadeTime)));
}
}
}//package GameObject
Section 85
//GameObjectFilterStayOnScreen (GameObject.GameObjectFilterStayOnScreen)
package GameObject {
public class GameObjectFilterStayOnScreen extends GameObjectFilter {
public var overridedx:Number;// = 0
public var multiplier:int;// = 0
override public function update(_arg1:GameObject):void{
var _local2:Number = 0;
if (multiplier == 0){
_local2 = (880 + (_arg1.baseWidth * _arg1.modifiedScaleX));
} else {
_local2 = ((multiplier * _arg1.baseWidth) * _arg1.modifiedScaleX);
};
if (overridedx > 10){
_local2 = overridedx;
};
while (((_arg1.modifiedx - (_arg1.gs.camX * _arg1.dampenOrigin)) + ((_arg1.baseWidth * _arg1.modifiedScaleX) / 2)) < 0) {
_arg1.modifiedx = (_arg1.modifiedx + _local2);
};
while (((_arg1.modifiedx - (_arg1.gs.camX * _arg1.dampenOrigin)) - ((_arg1.baseWidth * _arg1.modifiedScaleX) / 2)) > 800) {
_arg1.modifiedx = (_arg1.modifiedx - _local2);
};
}
}
}//package GameObject
Section 86
//GameObjectFilterTrigger (GameObject.GameObjectFilterTrigger)
package GameObject {
public class GameObjectFilterTrigger extends GameObjectFilter {
public var cause:Function;
public var result:Function;
override public function update(_arg1:GameObject):void{
if (cause()){
removeFilter = true;
result();
};
}
}
}//package GameObject
Section 87
//GameObjectHelper (GameObject.GameObjectHelper)
package GameObject {
import flash.display.*;
import flash.geom.*;
import Audio.*;
import Tools.*;
import GameConfig.*;
public class GameObjectHelper {
public var ambientsMap:Object;
public var conditionalChildrenAdjust:Object;
public var lastInputs:Object;
public var lastOutputs:Object;
public var conditionalChildren:Object;
public var backing:GameObject;
public var _lazyLoad:SafeImageRequest;
public var removed:Boolean;// = false
public var childrenFadeData:Object;
public var go:GameObject;
public var blinkFilter:GameObjectFilterBlink;
public var lastAdjustedAlphaTicks;// = 0
public static var radianConst:Number = 0.0174532925199433;
public function GameObjectHelper(_arg1:GameObject){
conditionalChildren = new Object();
conditionalChildrenAdjust = new Object();
childrenFadeData = new Object();
lastInputs = new Object();
lastOutputs = new Object();
ambientsMap = new Object();
super();
this.go = _arg1;
}
public function angleToPoint(_arg1:Number, _arg2:Number):Number{
return (((((Math.atan2((_arg2 - go.globalY()), (_arg1 - go.globalX())) * 180) / Math.PI) + 90) + GameConfig.referenceAngle));
}
public function blinkHelpText(_arg1:String, _arg2:String="", _arg3:int=7):void{
var _local4:GameObject = new GameObject(go.gs, null, go.zOrderString, (go.baseWidth * (0.5 - go.baseHandleX)), (((-(go.baseHeight) / 2) - 10) + (go.baseHeight * (0.5 - go.baseHandleY))));
if (_arg2 != ""){
_local4.fontName = _arg2;
};
_local4.setText(_arg1, _arg3);
_local4.addFilter(new GameObjectFilterBlink());
_local4.updateDespitePaused = go.updateDespitePaused;
go.addChild(_local4);
}
public function slideTo(_arg1:Number, _arg2:Number, _arg3:Boolean=true, _arg4:int=100, _arg5:Function=null):void{
var _local6:GameObjectFilterSqrtInterpolateIn = new GameObjectFilterSqrtInterpolateIn();
_local6.dx = (_arg1 - go.basex);
_local6.dy = (_arg2 - go.basey);
_local6.useSquareSquare = true;
_local6.killWhenDone = _arg3;
_local6.FadeTime = _arg4;
_local6.killFunction = _arg5;
go.addFilter(_local6);
}
public function angleToObject(_arg1:GameObject):Number{
return (((((Math.atan2((_arg1.globalY() - go.globalY()), (_arg1.globalX() - go.globalX())) * 180) / Math.PI) + 90) + GameConfig.referenceAngle));
}
public function normalize(_arg1:Number, _arg2:Number):Point{
if ((((_arg1 == 0)) && ((_arg2 == 0)))){
return (new Point(0, 0));
};
var _local3:Number = Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2)));
_arg1 = (_arg1 / _local3);
_arg2 = (_arg2 / _local3);
return (new Point(_arg1, _arg2));
}
public function anySlideFilters():Boolean{
var _local1:GameObjectFilter;
for each (_local1 in go.filters) {
if ((_local1 is GameObjectFilterSqrtInterpolateIn)){
if (!GameObjectFilterSqrtInterpolateIn(_local1).done()){
return (true);
};
};
};
return (false);
}
public function showChildren():void{
var _local1:GameObject;
for each (_local1 in go.children) {
_local1.show();
};
}
public function mapWhenChanged(_arg1:Array, _arg2:String, _arg3:Function, _arg4:Function):Array{
var _local5:Array = new Array(_arg1.length);
var _local6:Array = Array(lastInputs[_arg2])[0];
var _local7:Array = Array(lastOutputs[_arg2])[0];
if (!_local6){
_local6 = new Array(_arg1.length);
lastInputs[_arg2] = _local6;
_local7 = new Array(_arg1.length);
lastOutputs[_arg2] = _local7;
};
var _local8:int;
while (_local8 < _arg1.length) {
if (_arg1[_local8] != _local6[_local8]){
if (_local7[_local8]){
_arg4(_local7[_local8]);
};
if (_arg1[_local8]){
_local5[_local8] = _arg3(_arg1[_local8]);
};
} else {
_local5[_local8] = _local7[_local8];
};
_local6[_local8] = _arg1[_local8];
_local7[_local8] = _local5[_local8];
_local8++;
};
return (_local5);
}
public function relativeAngleToObject(_arg1:GameObject):Number{
var _local2:Number = 0;
if (go.parent){
_local2 = (_local2 + go.parent.baseRotation);
};
return ((go.helper.angleToObject(_arg1) - _local2));
}
public function fadeChildren(_arg1:Number, _arg2:Number=100):void{
var _local3:GameObject;
var _local4:Number;
for each (_local3 in go.children) {
if (childrenFadeData[_local3] == null){
childrenFadeData[_local3] = _local3.baseAlpha;
};
_local4 = Number(childrenFadeData[_local3]);
_local3.baseAlpha = Interpolation.tendTowards(_local3.baseAlpha, (_arg1 * _local4), (_local4 / _arg2));
_local3.hidden = (_local3.baseAlpha == 0);
};
}
public function onScreen():Boolean{
if ((go.basex - go.gs.camX) < 0){
return (false);
};
if ((go.basey - go.gs.camX) > 800){
return (false);
};
if ((go.basey - go.gs.camY) < 0){
return (false);
};
if ((go.basey - go.gs.camY) > 600){
return (false);
};
return (true);
}
public function positionAsChild(_arg1:GameObject, _arg2:Number=0, _arg3:Number=0):void{
var _local4:Point = go.tformed(_arg2, _arg3);
_arg1.basex = _local4.x;
_arg1.basey = _local4.y;
_arg1.baseScaleX = go.baseScaleX;
_arg1.baseScaleY = go.baseScaleY;
_arg1.baseRotation = go.modifiedRotation;
_arg1.baseAlpha = go.baseAlpha;
}
public function offscreen(_arg1:int=0):Boolean{
if (go.basex < -(_arg1)){
return (true);
};
if (go.basex > (800 + _arg1)){
return (true);
};
if (go.basey < -(_arg1)){
return (true);
};
if (go.basey > (600 + _arg1)){
return (true);
};
return (false);
}
public function stripChildren():void{
var _local1:GameObject;
for each (_local1 in go.children) {
_local1.remove();
};
}
public function addBacking():void{
backing = new GameObject(go.gs, GraphicsTools.createFilledSprite(800, 600, 4278190080), go.zOrderString, 400, 300);
backing.baseAlpha = 0.4;
backing.helperFilter.fadeIn(15);
backing.setGlobal(true);
go.changeZOrder(go.zOrderString);
}
public function pushTowardsObject(_arg1:GameObject, _arg2:Number, _arg3:Number=0, _arg4:Boolean=true, _arg5:Boolean=true){
var _local6:Point = vectorToObject(_arg1);
if (!_arg4){
_local6.x = 0;
if (_local6.y > 0){
_local6.y = 1;
} else {
_local6.y = 0;
};
};
if (!_arg5){
_local6.x = 0;
if (_local6.x > 0){
_local6.x = 1;
} else {
_local6.x = 0;
};
};
if (_arg4){
go["dx"] = (go["dx"] + (_local6.x * _arg2));
};
if (_arg5){
go["dy"] = (go["dy"] + (_local6.y * _arg2));
};
}
public function playAmbient(_arg1:GameSound, _arg2:Boolean=false):GameSoundChannel{
if ((ambientsMap[_arg1] is GameSoundChannel)){
if (!_arg2){
ambientsMap[_arg1].stop();
ambientsMap[_arg1] = null;
};
} else {
if (_arg2){
ambientsMap[_arg1] = _arg1.play(true);
};
};
return (ambientsMap[_arg1]);
}
public function update():void{
var _local1:GameObjectFilter;
var _local2:Number;
if (_lazyLoad){
if (_lazyLoad.finished){
go.setupButton(Bitmap(_lazyLoad.ldr.getChildAt(0)).bitmapData, "", null, true);
go.baseWidth = go.obj.width;
go.baseHeight = go.obj.height;
_lazyLoad = null;
};
};
if (backing){
for each (_local1 in go.filters) {
if ((_local1 is GameObjectFilterSqrtInterpolateIn)){
_local2 = GameObjectFilterSqrtInterpolateIn(_local1).progress();
_local2 = ((_local2 - 0.5) * 2);
if (_local2 < 0){
_local2 = 0;
};
backing.baseAlpha = (_local2 * 0.4);
};
};
};
}
public function handleRemove():void{
var _local1:Object;
removed = true;
if (backing){
backing.helperFilter.fadeOff(15);
};
for each (_local1 in conditionalChildren) {
if ((_local1 is GameObject)){
GameObject(_local1).remove();
};
};
for each (_local1 in ambientsMap) {
if ((_local1 is GameSoundChannel)){
GameSoundChannel(_local1).stop();
};
};
}
public function blink(_arg1:Boolean):void{
if (_arg1){
if (!blinkFilter){
blinkFilter = new GameObjectFilterBlink();
blinkFilter.BlinkAlpha = 0.4;
blinkFilter.Interval = 15;
go.addFilter(blinkFilter);
};
} else {
if (blinkFilter){
blinkFilter.removeFilter = true;
blinkFilter = null;
};
};
}
public function getModifiedRotation():Number{
var _local1:GameObjectFilter;
for each (_local1 in go.filters) {
if ((_local1 is GameObjectFilterRotateSlowly)){
return (GameObjectFilterRotateSlowly(_local1).internalRotation);
};
};
return (go.baseRotation);
}
public function hideChildren():void{
var _local1:GameObject;
for each (_local1 in go.children) {
_local1.hide();
};
}
public function findNearest(_arg1:Class):GameObject{
var _local4:GameObject;
var _local2:GameObject;
var _local3:Number = 0;
for each (_local4 in go.gs.objects) {
if ((_local4 is _arg1)){
if (_local4 != go){
if ((((_local4.distanceToObject(go) < _local3)) || ((_local2 == null)))){
_local3 = _local4.distanceToObject(go);
_local2 = _local4;
};
};
};
};
return (_local2);
}
public function conditionallyCreateChild(_arg1:Object, _arg2:String, _arg3:Boolean, _arg4:Number=0.05, _arg5:Function=null):GameObject{
var _local7:Object;
var _local8:int;
if (removed){
return (null);
};
var _local6:GameObject = conditionalChildren[_arg2];
if (!_local6){
if (_arg3){
if ((_arg1 is Class)){
_local7 = new (_arg1);
if ((_local7 is GameObject)){
_local6 = GameObject(_local7);
} else {
_local6 = new GameObject(null, _local7, go.zOrderString, go.basex, go.basey);
};
} else {
if ((_arg1 is Function)){
_local6 = GameObject(_arg1());
} else {
_local6 = new GameObject(go.gs, _arg1, go.zOrderString, go.basex, go.basey);
};
};
if (_arg5){
_arg5(_local6);
};
conditionalChildren[_arg2] = _local6;
_local6.baseAlpha = 0;
};
};
if (_local6){
_local8 = int(conditionalChildrenAdjust[_arg2]);
if (_local8 != go.ticks){
if (_arg3){
_local6.baseAlpha = (_local6.baseAlpha + _arg4);
} else {
_local6.baseAlpha = (_local6.baseAlpha - _arg4);
};
};
conditionalChildrenAdjust[_arg2] = go.ticks;
_local6.baseAlpha = Interpolation.lockValue(_local6.baseAlpha, 0, 1);
if (((!(_arg3)) && ((_local6.baseAlpha == 0)))){
_local6.remove();
conditionalChildren[_arg2] = null;
};
};
return (_local6);
}
public function angleForVector(_arg1:Number, _arg2:Number):Number{
return (((((Math.atan2(_arg2, _arg1) * 180) / Math.PI) + 90) + GameConfig.referenceAngle));
}
public function containsFilter(_arg1:Class):Boolean{
var _local2:GameObjectFilter;
for each (_local2 in go.filters) {
if ((_local2 is _arg1)){
return (true);
};
};
return (false);
}
public function lazyLoad(_arg1:String):void{
_lazyLoad = new SafeImageRequest(_arg1);
}
public function mapChildren(_arg1:Function):void{
var _local2:GameObject;
for each (_local2 in go.children) {
_arg1(_local2);
};
}
public function vectorToObject(_arg1:GameObject):Point{
var _local2:Number = (_arg1.basex - go.basex);
var _local3:Number = (_arg1.basey - go.basey);
var _local4:Number = Math.sqrt(((_local2 * _local2) + (_local3 * _local3)));
_local2 = (_local2 / _local4);
_local3 = (_local3 / _local4);
return (new Point(_local2, _local3));
}
public function rotateVector(_arg1:Number, _arg2:Number, _arg3:Number=-9999999):Point{
if (_arg3 < -99999){
_arg3 = go.baseRotation;
};
var _local4:Number = (((Math.cos((-(_arg3) * radianConst)) * _arg1) * go.modifiedScaleX) + ((Math.sin((-(_arg3) * radianConst)) * _arg2) * go.modifiedScaleY));
var _local5:Number = (((-(Math.sin((-(_arg3) * radianConst))) * _arg1) * go.modifiedScaleX) + ((Math.cos((-(_arg3) * radianConst)) * _arg2) * go.modifiedScaleY));
return (new Point(_local4, _local5));
}
}
}//package GameObject
Section 88
//GameObjectHelperAnimation (GameObject.GameObjectHelperAnimation)
package GameObject {
import flash.display.*;
import Tools.*;
public class GameObjectHelperAnimation {
public var go:GameObject;
public function GameObjectHelperAnimation(_arg1:GameObject){
go = _arg1;
}
public function update():void{
}
public function setFrame(_arg1:BitmapData):void{
Bitmap(go.obj).bitmapData = _arg1;
go.baseWidth = _arg1.width;
go.baseHeight = _arg1.height;
}
public function setFrameRandomly(_arg1:Array):void{
setFrame(_arg1[Random.randInt(0, (_arg1.length - 1))]);
}
}
}//package GameObject
Section 89
//GameObjectHelperButton (GameObject.GameObjectHelperButton)
package GameObject {
public class GameObjectHelperButton {
public var radioButtons:Array;// = null
public var go:GameObject;
public var selected:Boolean;// = false
public function GameObjectHelperButton(_arg1:GameObject){
go = _arg1;
}
public function mHit():void{
var _local1:GameObject;
if (radioButtons){
for each (_local1 in radioButtons) {
_local1.setButtonOn(false);
_local1.helperButton.selected = false;
};
go.setButtonOn(true);
selected = true;
};
}
public function update():void{
}
public function setupRadioButtons(_arg1:Array, _arg2:Boolean=true):void{
var _local3:GameObject;
for each (_local3 in _arg1) {
_local3.helperButton.radioButtons = _arg1;
};
if (_arg2){
selected = true;
go.setButtonOn(true);
};
}
public function updatePrevNext(_arg1:GameObject, _arg2:GameObject):void{
var _local3:int;
var _local4:int;
if (radioButtons){
_arg1.enableButton();
_arg2.enableButton();
_local3 = -1;
_local4 = 0;
while (_local4 < radioButtons.length) {
if (radioButtons[_local4].helperButton.selected){
_local3 = _local4;
};
_local4++;
};
if (_local3 == 0){
_arg1.disableButton();
};
if (_local3 == (radioButtons.length - 1)){
_arg2.disableButton();
};
if (_arg1.mHit()){
if (_local3 == -1){
radioButtons[0]._mHit(null);
} else {
if (_local3 > 0){
radioButtons[(_local3 - 1)]._mHit(null);
};
};
};
if (_arg2.mHit()){
if (_local3 == -1){
radioButtons[0]._mHit(null);
} else {
if (_local3 < (radioButtons.length - 1)){
radioButtons[(_local3 + 1)]._mHit(null);
};
};
};
};
}
}
}//package GameObject
Section 90
//GameObjectHelperFilter (GameObject.GameObjectHelperFilter)
package GameObject {
public class GameObjectHelperFilter {
public var go:GameObject;
public function GameObjectHelperFilter(_arg1:GameObject){
go = _arg1;
}
public function isDragging():Boolean{
var _local1:GameObjectFilter;
for each (_local1 in go.filters) {
if ((_local1 is GameObjectFilterDraggable)){
return (GameObjectFilterDraggable(_local1).beingDragged);
};
};
return (false);
}
public function fadeIn(_arg1:int, _arg2:int=0):void{
var _local3:GameObjectFilterFadeInOut = new GameObjectFilterFadeInOut();
_local3.FadeIn = 1;
_local3.FadeInDuration = _arg1;
_local3.FadeInDelay = _arg2;
go.addFilter(_local3);
}
public function addShift(_arg1:Number, _arg2:Number, _arg3:int=-1):void{
var _local4:GameObjectFilterShift = new GameObjectFilterShift();
_local4.dx = _arg1;
_local4.dy = _arg2;
_local4.timeout = _arg3;
go.addFilter(_local4);
}
public function draggable(_arg1:Function=null, _arg2:Function=null, _arg3:Boolean=false):GameObjectFilterDraggable{
var _local4:GameObjectFilterDraggable = new GameObjectFilterDraggable();
_local4.startFunc = _arg1;
_local4.finishFunc = _arg2;
_local4.dormant = _arg3;
go.addFilter(_local4);
return (_local4);
}
public function addPanelSlide():void{
go.basey = (go.basey - 700);
var _local1:GameObjectFilterSqrtInterpolateIn = new GameObjectFilterSqrtInterpolateIn();
_local1.dy = 700;
_local1.FadeTime = 100;
_local1.useSquareSquare = true;
go.addFilter(_local1);
}
public function sinDisplace(_arg1:Number, _arg2:Number, _arg3:Number=1):void{
var _local4:GameObjectFilterSinDisplace = new GameObjectFilterSinDisplace();
_local4.x = _arg1;
_local4.y = _arg2;
_local4.speed = _arg3;
go.addFilter(_local4);
}
public function fadeOffIfFalse(_arg1:int, _arg2:Function):void{
var period = _arg1;
var func = _arg2;
var gof:GameObjectFilterTrigger = new GameObjectFilterTrigger();
gof.cause = func;
gof.result = function ():void{
go.helperFilter.fadeOff(period);
};
go.addFilter(gof);
}
public function scaleIn(_arg1:int, _arg2:Number=0, _arg3:Number=0, _arg4:int=0):void{
var _local5:GameObjectFilterScaleInOut = new GameObjectFilterScaleInOut();
_local5.ScaleIn = 1;
_local5.ScaleInDelay = _arg4;
_local5.ScaleInDuration = _arg1;
_local5.ScaleInStartX = _arg2;
_local5.ScaleInStartY = _arg3;
go.addFilter(_local5);
}
public function moveWith(_arg1:GameObject):void{
var _local2:GameObjectFilterMoveWith = new GameObjectFilterMoveWith();
_local2.other = _arg1;
go.addFilter(_local2);
}
public function pulse(_arg1:Number=1, _arg2:int=0, _arg3:int=0, _arg4:Boolean=true):void{
var _local5:GameObjectFilterPulse = new GameObjectFilterPulse();
if (_arg2 > 0){
_local5.Speed = (100 / _arg2);
};
if (!_arg4){
_local5.ticks = 0;
};
_local5.alpha = _arg1;
go.addFilter(_local5);
}
public function fadeOff(_arg1:int, _arg2:int=-1, _arg3:Boolean=true):void{
if (_arg2 == -1){
_arg2 = _arg1;
_arg1 = 0;
};
var _local4:GameObjectFilterFadeInOut = new GameObjectFilterFadeInOut();
_local4.FadeOut = 1;
_local4.FadeOutTime = _arg1;
_local4.FadeOutDuration = _arg2;
_local4.FadeOutKill = (_arg3) ? 1 : 0;
go.addFilter(_local4);
}
public function blink(_arg1:Number=0, _arg2:int=100, _arg3:int=0, _arg4:Boolean=true):void{
var _local5:GameObjectFilterBlink = new GameObjectFilterBlink();
_local5.BlinkAlpha = _arg1;
_local5.Interval = _arg2;
_local5.AliveTime = _arg3;
if (!_arg4){
_local5.ticks = 0;
};
go.addFilter(_local5);
}
public function dampenInterpolateIn(_arg1:int, _arg2:Number, _arg3:Number, _arg4:int=0):void{
var _local5:GameObjectFilterDampenInterpolateIn = new GameObjectFilterDampenInterpolateIn();
_local5.Delay = _arg4;
_local5.FadeTime = _arg1;
_local5.dx = _arg2;
_local5.dy = _arg3;
go.addFilter(_local5);
}
}
}//package GameObject
Section 91
//GameScene (GameScene.GameScene)
package GameScene {
import flash.display.*;
import flash.geom.*;
import Particles.*;
import GameObject.*;
import Layout.*;
import NagScreen.*;
import Audio.*;
import Tools.*;
import GlobalSetup.*;
public class GameScene {
public var updateWhenRemoving:Boolean;// = false
public var gss:GameSceneStack;
public var objects:Array;
public var parent:Sprite;
public var paused:Boolean;// = false
public var defaultTextSize:Number;// = 24
public var fadeToBlackTicks:int;// = 0
public var fadeToBlack:Boolean;// = false
public var _paused:Boolean;// = false
public var Ticks:int;// = 0
public var camX:Number;// = 0
public var _mhit:Boolean;
public var m:MovieClip;
public var cameras:Array;
public var orphanedParticleLayers:Array;
public var i:Input;
public var camY:Number;// = 0
public var defaultTextLayer:String;// = "TextLayer"
public var zOrders:Array;
public static var stealFocus:Boolean = true;
public static var currentScene:GameScene;
public static var currentindex:int = 0;
public function GameScene(){
objects = new Array();
zOrders = new Array();
cameras = new Array();
orphanedParticleLayers = new Array();
super();
currentScene = this;
NagScreen.preload();
m = new MovieClip();
new ZOrder().SetupZOrder(this);
}
public function _register(_arg1:Sprite):void{
}
public function mousey():int{
return (i.mouseY());
}
public function flushParticles():void{
var _local1:GameSceneZOrder;
var _local2:ParticleLayer;
for each (_local1 in zOrders) {
if (_local1.pl){
_local1.pl.remove();
};
};
for each (_local2 in orphanedParticleLayers) {
_local2.remove();
};
orphanedParticleLayers = new Array();
}
public function particleKilledCallback(_arg1:Particle):void{
}
public function init():void{
}
public function pushScene(_arg1:GameScene, _arg2:Boolean=false, _arg3:int=0):void{
gss.pushScene(_arg1, _arg2, _arg3);
}
public function count(_arg1:Class):int{
var _local3:GameObject;
var _local2:int;
for each (_local3 in objects) {
if ((_local3 is _arg1)){
_local2++;
};
};
return (_local2);
}
public function drawBackground(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:String = GradientType.LINEAR;
var _local5:Array = [_arg1, _arg2, _arg3];
var _local6:Array = [100, 100, 100];
var _local7:Array = [0, 128, 0xFF];
var _local8:Matrix = new Matrix();
_local8.createGradientBox(400, 600, (Math.PI / 2), 0, 0);
var _local9:String = SpreadMethod.PAD;
m.graphics.beginGradientFill(_local4, _local5, _local6, _local7, _local8, _local9);
m.graphics.drawRect(0, 0, 800, 600);
}
final public function register(_arg1:Sprite):void{
var _local2:GameSceneZOrder;
parent = _arg1;
currentindex--;
_arg1.addChildAt(m, 0);
for each (_local2 in zOrders) {
m.addChild(_local2.m);
};
_register(_arg1);
}
public function applyToParticles(_arg1:Function):void{
var _local2:int;
var _local3:Particle;
var _local4:ParticleLayer;
var _local5:GameSceneZOrder;
_local2 = 0;
while (_local2 < objects.length) {
for each (_local3 in objects[_local2].mainLayer.particles) {
_arg1(_local3);
};
_local2++;
};
_local2 = 0;
while (_local2 < orphanedParticleLayers.length) {
_local4 = orphanedParticleLayers[_local2];
for each (_local3 in _local4.particles) {
_arg1(_local3);
};
_local2++;
};
_local2 = 0;
while (_local2 < zOrders.length) {
_local5 = GameSceneZOrder(zOrders[_local2]);
for each (_local3 in _local5.pl.particles) {
_arg1(_local3);
};
_local2++;
};
}
public function findRandomObjectByClass(_arg1:String):GameObject{
var _local3:GameObject;
var _local2:Array = new Array();
for each (_local3 in objects) {
if (_local3.className == _arg1){
_local2.push(_local3);
};
};
if (_local2.length > 0){
return (_local2[Random.randInt(0, (_local2.length - 1))]);
};
return (null);
}
public function setCamera(_arg1:GameSceneCamera):void{
cameras.push(_arg1);
}
public function clipForZOrder(_arg1:String):MovieClip{
var _local2:GameSceneZOrder;
for each (_local2 in zOrders) {
if (_local2.name == _arg1){
return (_local2.m);
};
};
trace(("Could not find ZOrder: " + _arg1));
return (m);
}
public function vert(_arg1:Array, _arg2:int=8, _arg3:Number=0, _arg4:Number=0):Layout{
return (Layout.Vert(_arg1, _arg2, _arg3, _arg4));
}
public function text(_arg1:String, _arg2:Number=-1, _arg3:Number=0.5, _arg4:Number=0.5):GameObject{
if (_arg2 < 0){
_arg2 = defaultTextSize;
};
var _local5 = "TextLayer";
if (defaultTextLayer != ""){
_local5 = defaultTextLayer;
};
var _local6:GameObject = new GameObject(this, null, _local5, 0, 0);
_local6.setText(_arg1, _arg2);
_local6.baseHandleX = _arg3;
_local6.baseHandleY = _arg4;
return (_local6);
}
public function horiz(_arg1:Array, _arg2:int=8, _arg3:Number=0, _arg4:Number=0):Layout{
return (Layout.Horiz(_arg1, _arg2, _arg3, _arg4));
}
public function getNearest(_arg1:Class, _arg2:Number, _arg3:Number):GameObject{
var _local5:GameObject;
var _local6:GameObject;
var _local7:Number;
var _local4:Number = 999999;
for each (_local6 in objects) {
if ((_local6 is _arg1)){
_local7 = _local6.distanceToPoint(_arg2, _arg3);
if (_local7 < _local4){
_local4 = _local7;
_local5 = _local6;
};
};
};
return (_local5);
}
public function syncRemoved():void{
objects = objects.filter(function (_arg1:GameObject, _arg2:int, _arg3:Array):Boolean{
return (!(_arg1._removed));
});
}
public function update():void{
var go:GameObject;
var lgo:GameObject;
var gss:GameSceneCameraStack;
var nc:GameSceneCamera;
var zo:GameSceneZOrder;
var pl:ParticleLayer;
_mhit = Input.i.mouseHit();
_paused = paused;
for each (go in objects) {
if (go.pausesGame){
_paused = true;
};
};
if (!_paused){
for each (gss in cameras) {
gss.decay();
};
};
if (cameras.length > 0){
nc = GameSceneCameraStack.flatten(cameras);
camX = nc.x;
camY = nc.y;
};
GameSoundScene.updateAll();
if (!_paused){
Ticks = (Ticks + 1);
};
for each (lgo in objects) {
lgo.lastX = lgo.basex;
lgo.lastY = lgo.basey;
};
for each (lgo in objects) {
if (((!(_paused)) || (lgo.updateDespitePaused))){
if (lgo.parent == null){
lgo.update();
};
};
};
for each (lgo in objects) {
if (((!(_paused)) || (lgo.updateDespitePaused))){
lgo.syncObj();
} else {
if (lgo.parent){
if (lgo.parent.updateDespitePaused){
lgo.syncObj();
};
};
};
};
_update();
syncRemoved();
if (!_paused){
for each (zo in zOrders) {
zo.pl.x = camX;
zo.pl.y = camY;
zo.pl.update();
};
for each (pl in orphanedParticleLayers) {
pl.x = camX;
pl.y = camY;
pl.update();
if (pl.parent.length == 0){
pl.remove();
};
};
orphanedParticleLayers = orphanedParticleLayers.filter(function (_arg1:ParticleLayer, _arg2:int, _arg3:Array):Boolean{
return (!((_arg1.particles.length == 0)));
});
};
}
public function zOrderInt(_arg1:String):int{
var _local2:int;
while (_local2 < zOrders.length) {
if (zOrders[_local2].name == _arg1){
return (_local2);
};
_local2++;
};
trace(("Could not find ZOrder: " + _arg1));
return (-1);
}
public function pushCamera(_arg1:GameSceneCamera):void{
var _local2:GameSceneCameraStack;
for each (_local2 in cameras) {
if (_local2.Camera == _arg1){
_local2.increment();
return;
};
};
_local2 = new GameSceneCameraStack();
_local2.Camera = _arg1;
cameras.push(_local2);
}
public function stackFading():Boolean{
return (!((GameSceneStack.currentStack.fading == 0)));
}
public function mHit():Boolean{
return (_mhit);
}
public function _update():void{
}
public function getZOrder(_arg1:String):GameSceneZOrder{
var _local2:GameSceneZOrder;
for each (_local2 in zOrders) {
if (_local2.name == _arg1){
return (_local2);
};
};
trace(("Could not find ZOrder: " + _arg1));
return (null);
}
public function mousex():int{
return (i.mouseX());
}
public function addZOrder(_arg1:String):void{
var _local2:GameSceneZOrder = new GameSceneZOrder();
_local2.name = _arg1;
_local2.m = new MovieClip();
_local2.pl = new ParticleLayer();
_local2.pl.parent = _local2.m;
zOrders.push(_local2);
}
public function findObjectByClass(_arg1:String):GameObject{
var _local2:GameObject;
for each (_local2 in objects) {
if (_local2.className == _arg1){
return (_local2);
};
};
return (null);
}
public function findObjectByName(_arg1:String):GameObject{
var _local2:GameObject;
for each (_local2 in objects) {
if (_local2.name == _arg1){
return (_local2);
};
};
return (null);
}
public function addOrphanedParticleLayer(_arg1:ParticleLayer):void{
orphanedParticleLayers.push(_arg1);
}
public static function current():GameScene{
return (currentScene);
}
}
}//package GameScene
Section 92
//GameSceneCamera (GameScene.GameSceneCamera)
package GameScene {
public class GameSceneCamera {
public var totalTicks:Number;// = 300
public var linear:Boolean;// = false
public var minX:Number;// = -9999999
public var minY:Number;// = -9999999
public var maxX:Number;// = 9999999
public var maxY:Number;// = 9999999
public var x:Number;// = 0
public var y:Number;// = 0
public var frameChange:Number;// = 1
public function position(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
if (this.x > maxX){
this.x = maxX;
};
if (this.x < minX){
this.x = minX;
};
if (this.y > maxY){
this.y = maxY;
};
if (this.y < minY){
this.y = minY;
};
}
public function positionInterpolate(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
position(((_arg1 + _arg3) / 2), ((_arg2 + _arg4) / 2));
}
}
}//package GameScene
Section 93
//GameSceneCameraStack (GameScene.GameSceneCameraStack)
package GameScene {
import Tools.*;
public class GameSceneCameraStack {
public var Camera:GameSceneCamera;
public var ticks:Number;// = 0
public static var globalCameraX:Number;
public static var globalCameraY:Number;
public function decay():void{
ticks = (ticks - Camera.frameChange);
if (ticks < 0){
ticks = 0;
};
}
public function increment():void{
ticks = (ticks + (Camera.frameChange * 2));
if (ticks > Camera.totalTicks){
ticks = Camera.totalTicks;
};
}
public static function cameraSort(_arg1:GameSceneCameraStack, _arg2:GameSceneCameraStack):int{
if (_arg1.ticks > _arg2.ticks){
return (-1);
};
if (_arg1.ticks < _arg2.ticks){
return (1);
};
return (0);
}
public static function flatten(_arg1:Array):GameSceneCamera{
var _local5:GameSceneCameraStack;
var _local6:GameSceneCamera;
var _local7:Number;
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
for each (_local5 in _arg1) {
if (_local5.ticks > 0){
if (_local5.Camera.linear){
_local7 = (Number(_local5.ticks) / Number(_local5.Camera.totalTicks));
} else {
_local7 = Interpolation.squareSquareInterpolateLock(0, 1, (Number(_local5.ticks) / Number(_local5.Camera.totalTicks)));
};
_local2 = (_local2 + (_local5.Camera.x * _local7));
_local3 = (_local3 + (_local5.Camera.y * _local7));
_local4 = (_local4 + _local7);
};
};
_local6 = new GameSceneCamera();
if (_local4 > 0){
_local6.x = (_local2 / _local4);
_local6.y = (_local3 / _local4);
} else {
if (_arg1.length > 0){
_local6.x = _arg1[0].Camera.x;
_local6.y = _arg1[0].Camera.y;
} else {
_local6.x = 0;
_local6.y = 0;
};
};
globalCameraX = _local6.x;
globalCameraY = _local6.y;
return (_local6);
}
}
}//package GameScene
Section 94
//GameSceneStack (GameScene.GameSceneStack)
package GameScene {
import flash.display.*;
import GameObject.*;
import Serialization.*;
import Tools.*;
import flash.utils.*;
public class GameSceneStack {
public var lastTicks:int;
public var fadeSprite:Bitmap;
public var stack:Array;
public var i:Input;
public var extraDelay:int;// = 0
public var fading:Boolean;// = false
public var fadeTicks:int;// = 0
public var killedLife:int;// = 0
public var elapsedTicks:int;
public var mainSprite:Sprite;
public static var focusObj:GameObject;
public static var currentStack:GameSceneStack;
public function GameSceneStack(){
stack = new Array();
super();
currentStack = this;
}
public function update():void{
var _local4:Boolean;
var _local5:int;
var _local6:GameScene;
var _local7:int;
var _local8:GameScene;
var _local9:int;
var _local10:Boolean;
var _local11:GameObject;
StoreObject.updateStoreObject();
if (i == null){
if (Input.i){
i = Input.i;
} else {
i = new Input(mainSprite.stage);
};
};
if (GameScene.stealFocus){
if (focusObj){
if (focusObj._removed){
focusObj = null;
};
};
if (focusObj){
mainSprite.stage.focus = InteractiveObject(focusObj.obj);
} else {
mainSprite.stage.focus = mainSprite;
};
mainSprite.focusRect = null;
mainSprite.stage.stageFocusRect = false;
};
var _local1:int = getTimer();
elapsedTicks = (elapsedTicks + (_local1 - lastTicks));
lastTicks = _local1;
var _local2:int = ((elapsedTicks - (elapsedTicks % 10)) / 10);
elapsedTicks = (elapsedTicks % 10);
if (_local2 > 5){
_local2 = 5;
};
var _local3:int;
while (_local3 < _local2) {
_local4 = (_local3 == (_local2 - 1));
_local5 = getTimer();
_local6 = GameScene(stack[(stack.length - 1)]);
if (((!(fading)) || ((fadeTicks > (60 + extraDelay))))){
_local6.update();
};
_local7 = 0;
while (_local7 < (stack.length - 1)) {
_local8 = GameScene(stack[_local7]);
if (_local8.updateWhenRemoving){
_local8.update();
};
_local7++;
};
if (fading){
fadeTicks = (fadeTicks + 1);
fadeSprite.alpha = Interpolation.linearInterpolateLock(0, 1, Interpolation.fromTo(fadeTicks, 0, 30));
fadeSprite.alpha = (fadeSprite.alpha * Interpolation.linearInterpolateLock(1, 0, Interpolation.fromTo(fadeTicks, (70 + extraDelay), (100 + extraDelay))));
if ((((fadeTicks > (100 + extraDelay))) && (_local4))){
fadeTicks = 0;
fading = false;
mainSprite.removeChild(fadeSprite);
};
};
_local3++;
};
_local3 = 0;
while (_local3 < _local2) {
_local9 = 0;
while (_local9 < (stack.length - 1)) {
_local6 = GameScene(stack[_local9]);
_local10 = false;
if (_local6.fadeToBlack){
_local6.fadeToBlackTicks = (_local6.fadeToBlackTicks + 1);
_local10 = (_local6.fadeToBlackTicks > 50);
} else {
_local6.m.alpha = (_local6.m.alpha - 0.02);
_local10 = (_local6.m.alpha < 0);
};
if (((_local10) && ((_local3 == (_local2 - 1))))){
_local6.flushParticles();
for each (_local11 in _local6.objects) {
_local11.remove();
};
mainSprite.removeChild(_local6.m);
stack = [stack.pop()];
return;
};
_local9++;
};
_local3++;
};
}
public function pushScene(_arg1:GameScene, _arg2:Boolean=false, _arg3:int=0):void{
_arg1.gss = this;
_arg1.i = i;
_arg1.register(mainSprite);
_arg1.init();
stack.push(_arg1);
extraDelay = _arg3;
if (_arg2){
if (fadeSprite){
if (mainSprite.contains(fadeSprite)){
mainSprite.removeChild(fadeSprite);
};
};
fadeSprite = GraphicsTools.createFilledSprite(800, 600, 0);
mainSprite.addChild(fadeSprite);
fadeTicks = 0;
fading = true;
_arg1.fadeToBlack = true;
} else {
fading = false;
};
}
}
}//package GameScene
Section 95
//GameSceneZOrder (GameScene.GameSceneZOrder)
package GameScene {
import flash.display.*;
import Particles.*;
public class GameSceneZOrder {
public var name:String;
public var pl:ParticleLayer;
public var m:MovieClip;
}
}//package GameScene
Section 96
//Embeds (GlobalSetup.Embeds)
package GlobalSetup {
import flash.display.*;
public class Embeds {
public static var shot018_png:Class = Embeds_shot018_png;
public static var smoke_a013_png:Class = Embeds_smoke_a013_png;
public static var ace_g_roll015_png:Class = Embeds_ace_g_roll015_png;
public static var e_bomb_roll006_png:Class = Embeds_e_bomb_roll006_png;
public static var smoke_d010_png:Class = Embeds_smoke_d010_png;
public static var icon_pause_png:Class = Embeds_icon_pause_png;
public static var scenery3_png:Class = Embeds_scenery3_png;
public static var smoke_a024_png:Class = Embeds_smoke_a024_png;
public static var smoke_c005_png:Class = Embeds_smoke_c005_png;
public static var ace_g_roll026_png:Class = Embeds_ace_g_roll026_png;
public static var englishBomberWasted_1:BitmapData = new Embeds.e_bomb_wasted_1_png().bitmapData;
public static var englishBomberWasted_2:BitmapData = new Embeds.e_bomb_wasted_2_png().bitmapData;
public static var p1_roll020_png:Class = Embeds_p1_roll020_png;
public static var smoke_d021_png:Class = Embeds_smoke_d021_png;
public static var medal_bronze_png:Class = Embeds_medal_bronze_png;
public static var englishWasted_2:BitmapData = new Embeds.e_green_wasted_2_png().bitmapData;
public static var englishWasted_1:BitmapData = new Embeds.e_green_wasted_1_png().bitmapData;
public static var smoke_c016_png:Class = Embeds_smoke_c016_png;
public static var smoke_d032_png:Class = Embeds_smoke_d032_png;
public static var shot006_png:Class = Embeds_shot006_png;
public static var smoke_a001_png:Class = Embeds_smoke_a001_png;
public static var smoke_c027_png:Class = Embeds_smoke_c027_png;
public static var smoke_e008_png:Class = Embeds_smoke_e008_png;
public static var ace_e_roll009_png:Class = Embeds_ace_e_roll009_png;
public static var ace_g_roll003_png:Class = Embeds_ace_g_roll003_png;
public static var p1_roll031_png:Class = Embeds_p1_roll031_png;
public static var plane_prop002_png:Class = Embeds_plane_prop002_png;
public static var e_bomb_roll005_png:Class = Embeds_e_bomb_roll005_png;
public static var shot017_png:Class = Embeds_shot017_png;
public static var smoke_a012_png:Class = Embeds_smoke_a012_png;
public static var ace_g_roll014_png:Class = Embeds_ace_g_roll014_png;
public static var smoke_e019_png:Class = Embeds_smoke_e019_png;
public static var highscore_month_png:Class = Embeds_highscore_month_png;
public static var highscore_skip_png:Class = Embeds_highscore_skip_png;
public static var englishAceWasted_2_embed:Class = Embeds.e_ace_wasted_2_png;
public static var smoke_c004_png:Class = Embeds_smoke_c004_png;
public static var ace_g_roll025_png:Class = Embeds_ace_g_roll025_png;
public static var button_submit_png:Class = Embeds_button_submit_png;
public static var smoke_a023_png:Class = Embeds_smoke_a023_png;
public static var smoke_d020_png:Class = Embeds_smoke_d020_png;
public static var icon_music_png:Class = Embeds_icon_music_png;
public static var smoke_c015_png:Class = Embeds_smoke_c015_png;
public static var p1_roll030_png:Class = Embeds_p1_roll030_png;
public static var shot005_png:Class = Embeds_shot005_png;
public static var smoke_c026_png:Class = Embeds_smoke_c026_png;
public static var smoke_e007_png:Class = Embeds_smoke_e007_png;
public static var wreckage:Array = [wreckage_1, wreckage_2];
public static var ace_e_roll008_png:Class = Embeds_ace_e_roll008_png;
public static var ace_g_roll002_png:Class = Embeds_ace_g_roll002_png;
public static var smoke_d031_png:Class = Embeds_smoke_d031_png;
public static var plane_prop001_png:Class = Embeds_plane_prop001_png;
public static var germanWasted_2_embed:Class = Embeds.g_wasted_2_png;
public static var evasive_icon_cloud_png:Class = Embeds_evasive_icon_cloud_png;
public static var shot016_png:Class = Embeds_shot016_png;
public static var smoke_a011_png:Class = Embeds_smoke_a011_png;
public static var ace_g_roll013_png:Class = Embeds_ace_g_roll013_png;
public static var e_bomb_roll004_png:Class = Embeds_e_bomb_roll004_png;
public static var ace_e_roll019_png:Class = Embeds_ace_e_roll019_png;
public static var p2_roll009_png:Class = Embeds_p2_roll009_png;
public static var smoke_e018_png:Class = Embeds_smoke_e018_png;
public static var englishWasted_1_embed:Class = Embeds.e_green_wasted_1_png;
public static var smoke_a022_png:Class = Embeds_smoke_a022_png;
public static var smoke_c003_png:Class = Embeds_smoke_c003_png;
public static var ace_g_roll024_png:Class = Embeds_ace_g_roll024_png;
public static var germanBomberWasted_2_embed:Class = Embeds.g_bomb_wasted_2_png;
public static var smoke_e029_png:Class = Embeds_smoke_e029_png;
public static var parachute_busted_png:Class = Embeds_parachute_busted_png;
public static var icon_quit_png:Class = Embeds_icon_quit_png;
public static var player_wasted_2_png:Class = Embeds_player_wasted_2_png;
public static var land_2_png:Class = Embeds_land_2_png;
public static var smoke_c014_png:Class = Embeds_smoke_c014_png;
public static var g_bomb_wasted_2_png:Class = Embeds_g_bomb_wasted_2_png;
public static var flash_png:Class = Embeds_flash_png;
public static var smoke_d030_png:Class = Embeds_smoke_d030_png;
public static var shot004_png:Class = Embeds_shot004_png;
public static var smoke_c025_png:Class = Embeds_smoke_c025_png;
public static var smoke_e006_png:Class = Embeds_smoke_e006_png;
public static var ace_e_roll007_png:Class = Embeds_ace_e_roll007_png;
public static var ace_g_roll001_png:Class = Embeds_ace_g_roll001_png;
public static var balloon_line_png:Class = Embeds_balloon_line_png;
public static var e_bomb_roll003_png:Class = Embeds_e_bomb_roll003_png;
public static var shot015_png:Class = Embeds_shot015_png;
public static var aa_gunner007_png:Class = Embeds_aa_gunner007_png;
public static var smoke_a010_png:Class = Embeds_smoke_a010_png;
public static var ace_g_roll012_png:Class = Embeds_ace_g_roll012_png;
public static var smoke_e017_png:Class = Embeds_smoke_e017_png;
public static var ace_e_roll018_png:Class = Embeds_ace_e_roll018_png;
public static var p2_roll008_png:Class = Embeds_p2_roll008_png;
public static var icon_off_png:Class = Embeds_icon_off_png;
public static var smoke_a021_png:Class = Embeds_smoke_a021_png;
public static var smoke_c002_png:Class = Embeds_smoke_c002_png;
public static var ace_g_roll023_png:Class = Embeds_ace_g_roll023_png;
public static var smoke_e028_png:Class = Embeds_smoke_e028_png;
public static var ace_e_roll029_png:Class = Embeds_ace_e_roll029_png;
public static var p2_roll019_png:Class = Embeds_p2_roll019_png;
public static var player_wasted_1_png:Class = Embeds_player_wasted_1_png;
public static var land_1_png:Class = Embeds_land_1_png;
public static var smoke_a032_png:Class = Embeds_smoke_a032_png;
public static var smoke_c013_png:Class = Embeds_smoke_c013_png;
public static var g_bomb_wasted_1_png:Class = Embeds_g_bomb_wasted_1_png;
public static var confused_png:Class = Embeds_confused_png;
public static var man_png:Class = Embeds_man_png;
public static var englishBomberWasted_1_embed:Class = Embeds.e_bomb_wasted_1_png;
public static var shot003_png:Class = Embeds_shot003_png;
public static var highscore_page_selected_png:Class = Embeds_highscore_page_selected_png;
public static var smoke_c024_png:Class = Embeds_smoke_c024_png;
public static var smoke_e005_png:Class = Embeds_smoke_e005_png;
public static var land:Array = [land_1, land_2];
public static var planeshadow_png:Class = Embeds_planeshadow_png;
public static var ace_e_roll006_png:Class = Embeds_ace_e_roll006_png;
public static var shot014_png:Class = Embeds_shot014_png;
public static var p2_roll007_png:Class = Embeds_p2_roll007_png;
public static var ace_g_roll011_png:Class = Embeds_ace_g_roll011_png;
public static var e_bomb_roll002_png:Class = Embeds_e_bomb_roll002_png;
public static var smoke_e016_png:Class = Embeds_smoke_e016_png;
public static var medal_gold_png:Class = Embeds_medal_gold_png;
public static var ace_e_roll017_png:Class = Embeds_ace_e_roll017_png;
public static var escape_text_png:Class = Embeds_escape_text_png;
public static var smoke_a020_png:Class = Embeds_smoke_a020_png;
public static var smoke_c001_png:Class = Embeds_smoke_c001_png;
public static var ace_g_roll022_png:Class = Embeds_ace_g_roll022_png;
public static var smoke_e027_png:Class = Embeds_smoke_e027_png;
public static var ace_e_roll028_png:Class = Embeds_ace_e_roll028_png;
public static var p2_roll018_png:Class = Embeds_p2_roll018_png;
public static var aa_gunner006_png:Class = Embeds_aa_gunner006_png;
public static var highscore_ok_png:Class = Embeds_highscore_ok_png;
public static var land_2_embed:Class = Embeds.land_2_png;
public static var bomb_hud_png:Class = Embeds_bomb_hud_png;
public static var smoke_a031_png:Class = Embeds_smoke_a031_png;
public static var smoke_c012_png:Class = Embeds_smoke_c012_png;
public static var p2_roll029_png:Class = Embeds_p2_roll029_png;
public static var englishAceWasted:Array = [englishAceWasted_1, englishAceWasted_2];
public static var shot002_png:Class = Embeds_shot002_png;
public static var yoursite_png:Class = Embeds_yoursite_png;
public static var smoke_c023_png:Class = Embeds_smoke_c023_png;
public static var smoke_e004_png:Class = Embeds_smoke_e004_png;
public static var ace_e_roll005_png:Class = Embeds_ace_e_roll005_png;
public static var e_bomb_roll001_png:Class = Embeds_e_bomb_roll001_png;
public static var shot013_png:Class = Embeds_shot013_png;
public static var aa_gunner005_png:Class = Embeds_aa_gunner005_png;
public static var p2_roll006_png:Class = Embeds_p2_roll006_png;
public static var smoke_e015_png:Class = Embeds_smoke_e015_png;
public static var ace_e_roll016_png:Class = Embeds_ace_e_roll016_png;
public static var ace_g_roll010_png:Class = Embeds_ace_g_roll010_png;
public static var p1_roll009_png:Class = Embeds_p1_roll009_png;
public static var shot024_png:Class = Embeds_shot024_png;
public static var p2_roll017_png:Class = Embeds_p2_roll017_png;
public static var ace_g_roll021_png:Class = Embeds_ace_g_roll021_png;
public static var smoke_e026_png:Class = Embeds_smoke_e026_png;
public static var gun_png:Class = Embeds_gun_png;
public static var ace_e_roll027_png:Class = Embeds_ace_e_roll027_png;
public static var evasive_cloud_png:Class = Embeds_evasive_cloud_png;
public static var g_bomb_roll009_png:Class = Embeds_g_bomb_roll009_png;
public static var smoke_c011_png:Class = Embeds_smoke_c011_png;
public static var englishBomberWasted:Array = [englishBomberWasted_1, englishBomberWasted_2];
public static var playerWasted:Array = [playerWasted_1, playerWasted_2];
public static var smoke_a030_png:Class = Embeds_smoke_a030_png;
public static var englishAceWasted_1:BitmapData = new Embeds.e_ace_wasted_1_png().bitmapData;
public static var englishAceWasted_2:BitmapData = new Embeds.e_ace_wasted_2_png().bitmapData;
public static var ace_g_roll032_png:Class = Embeds_ace_g_roll032_png;
public static var p2_roll028_png:Class = Embeds_p2_roll028_png;
public static var shot001_png:Class = Embeds_shot001_png;
public static var smoke_c022_png:Class = Embeds_smoke_c022_png;
public static var smoke_e003_png:Class = Embeds_smoke_e003_png;
public static var ace_e_roll004_png:Class = Embeds_ace_e_roll004_png;
public static var zeppelin_png:Class = Embeds_zeppelin_png;
public static var shot012_png:Class = Embeds_shot012_png;
public static var target_text_png:Class = Embeds_target_text_png;
public static var p1_roll008_png:Class = Embeds_p1_roll008_png;
public static var aa_turret_flash_png:Class = Embeds_aa_turret_flash_png;
public static var aa_gunner004_png:Class = Embeds_aa_gunner004_png;
public static var p2_roll005_png:Class = Embeds_p2_roll005_png;
public static var smoke_d009_png:Class = Embeds_smoke_d009_png;
public static var ace_e_roll015_png:Class = Embeds_ace_e_roll015_png;
public static var smoke_e014_png:Class = Embeds_smoke_e014_png;
public static var playerWasted_2_embed:Class = Embeds.player_wasted_2_png;
public static var englishWasted:Array = [englishWasted_1, englishWasted_2];
public static var shot023_png:Class = Embeds_shot023_png;
public static var bomb_png:Class = Embeds_bomb_png;
public static var p2_roll016_png:Class = Embeds_p2_roll016_png;
public static var ace_g_roll020_png:Class = Embeds_ace_g_roll020_png;
public static var smoke_e025_png:Class = Embeds_smoke_e025_png;
public static var zep_part_2_png:Class = Embeds_zep_part_2_png;
public static var ace_e_roll026_png:Class = Embeds_ace_e_roll026_png;
public static var p1_roll019_png:Class = Embeds_p1_roll019_png;
public static var cloud3_png:Class = Embeds_cloud3_png;
public static var bombtarget_wreckage2_png:Class = Embeds_bombtarget_wreckage2_png;
public static var p2_roll027_png:Class = Embeds_p2_roll027_png;
public static var smoke_c010_png:Class = Embeds_smoke_c010_png;
public static var g_bomb_roll008_png:Class = Embeds_g_bomb_roll008_png;
public static var convoy_dead_3_png:Class = Embeds_convoy_dead_3_png;
public static var ace_g_roll031_png:Class = Embeds_ace_g_roll031_png;
public static var ground_3_png:Class = Embeds_ground_3_png;
public static var smoke_c021_png:Class = Embeds_smoke_c021_png;
public static var ace_e_roll003_png:Class = Embeds_ace_e_roll003_png;
public static var gunner007_png:Class = Embeds_gunner007_png;
public static var smoke_e002_png:Class = Embeds_smoke_e002_png;
public static var e_ace_wasted_2_png:Class = Embeds_e_ace_wasted_2_png;
public static var shot011_png:Class = Embeds_shot011_png;
public static var aa_gunner003_png:Class = Embeds_aa_gunner003_png;
public static var p2_roll004_png:Class = Embeds_p2_roll004_png;
public static var smoke_c032_png:Class = Embeds_smoke_c032_png;
public static var protect_text_png:Class = Embeds_protect_text_png;
public static var ace_e_roll014_png:Class = Embeds_ace_e_roll014_png;
public static var smoke_d008_png:Class = Embeds_smoke_d008_png;
public static var p1_roll007_png:Class = Embeds_p1_roll007_png;
public static var smoke_e013_png:Class = Embeds_smoke_e013_png;
public static var shot022_png:Class = Embeds_shot022_png;
public static var p2_roll015_png:Class = Embeds_p2_roll015_png;
public static var p1_roll018_png:Class = Embeds_p1_roll018_png;
public static var smoke_e024_png:Class = Embeds_smoke_e024_png;
public static var cloud2_png:Class = Embeds_cloud2_png;
public static var smoke_d019_png:Class = Embeds_smoke_d019_png;
public static var zep_part_1_png:Class = Embeds_zep_part_1_png;
public static var ace_e_roll025_png:Class = Embeds_ace_e_roll025_png;
public static var e_bomb_roll010_png:Class = Embeds_e_bomb_roll010_png;
public static var g_bomb_roll007_png:Class = Embeds_g_bomb_roll007_png;
public static var bombtarget_wreckage1_png:Class = Embeds_bombtarget_wreckage1_png;
public static var p2_roll026_png:Class = Embeds_p2_roll026_png;
public static var target_arrow_png:Class = Embeds_target_arrow_png;
public static var ace_g_roll030_png:Class = Embeds_ace_g_roll030_png;
public static var convoy_dead_2_png:Class = Embeds_convoy_dead_2_png;
public static var p1_roll029_png:Class = Embeds_p1_roll029_png;
public static var ground_2_png:Class = Embeds_ground_2_png;
public static var smoke_c020_png:Class = Embeds_smoke_c020_png;
public static var smoke_e001_png:Class = Embeds_smoke_e001_png;
public static var ace_e_roll002_png:Class = Embeds_ace_e_roll002_png;
public static var menu_button_link_png:Class = Embeds_menu_button_link_png;
public static var gunner006_png:Class = Embeds_gunner006_png;
public static var wreckage_1_embed:Class = Embeds.bombtarget_wreckage1_png;
public static var e_ace_wasted_1_png:Class = Embeds_e_ace_wasted_1_png;
public static var shot010_png:Class = Embeds_shot010_png;
public static var highscore_back_png:Class = Embeds_highscore_back_png;
public static var p2_roll003_png:Class = Embeds_p2_roll003_png;
public static var smoke_c031_png:Class = Embeds_smoke_c031_png;
public static var aa_gunner002_png:Class = Embeds_aa_gunner002_png;
public static var highscore_next_png:Class = Embeds_highscore_next_png;
public static var smoke_d007_png:Class = Embeds_smoke_d007_png;
public static var ace_e_roll013_png:Class = Embeds_ace_e_roll013_png;
public static var smoke_e012_png:Class = Embeds_smoke_e012_png;
public static var p1_roll006_png:Class = Embeds_p1_roll006_png;
public static var shot021_png:Class = Embeds_shot021_png;
public static var p2_roll014_png:Class = Embeds_p2_roll014_png;
public static var p1_roll017_png:Class = Embeds_p1_roll017_png;
public static var smoke_e023_png:Class = Embeds_smoke_e023_png;
public static var parachute_png:Class = Embeds_parachute_png;
public static var smoke_d018_png:Class = Embeds_smoke_d018_png;
public static var ace_e_roll024_png:Class = Embeds_ace_e_roll024_png;
public static var medal_silver_png:Class = Embeds_medal_silver_png;
public static var convoy_dead_1_png:Class = Embeds_convoy_dead_1_png;
public static var p2_roll025_png:Class = Embeds_p2_roll025_png;
public static var p1_roll028_png:Class = Embeds_p1_roll028_png;
public static var smoke_d029_png:Class = Embeds_smoke_d029_png;
public static var bombtarget5_png:Class = Embeds_bombtarget5_png;
public static var g_bomb_roll006_png:Class = Embeds_g_bomb_roll006_png;
public static var icon_soundfx_png:Class = Embeds_icon_soundfx_png;
public static var lifeicon_png:Class = Embeds_lifeicon_png;
public static var ground_1_png:Class = Embeds_ground_1_png;
public static var gunner005_png:Class = Embeds_gunner005_png;
public static var englishWasted_2_embed:Class = Embeds.e_green_wasted_2_png;
public static var ace_e_roll001_png:Class = Embeds_ace_e_roll001_png;
public static var smoke_a009_png:Class = Embeds_smoke_a009_png;
public static var aa_gunner001_png:Class = Embeds_aa_gunner001_png;
public static var p2_roll002_png:Class = Embeds_p2_roll002_png;
public static var smoke_c030_png:Class = Embeds_smoke_c030_png;
public static var smoke_e011_png:Class = Embeds_smoke_e011_png;
public static var smoke_d006_png:Class = Embeds_smoke_d006_png;
public static var ace_e_roll012_png:Class = Embeds_ace_e_roll012_png;
public static var p1_roll005_png:Class = Embeds_p1_roll005_png;
public static var shot020_png:Class = Embeds_shot020_png;
public static var p2_roll013_png:Class = Embeds_p2_roll013_png;
public static var p1_roll016_png:Class = Embeds_p1_roll016_png;
public static var smoke_e022_png:Class = Embeds_smoke_e022_png;
public static var ace_e_roll023_png:Class = Embeds_ace_e_roll023_png;
public static var smoke_d017_png:Class = Embeds_smoke_d017_png;
public static var convoy_3_png:Class = Embeds_convoy_3_png;
public static var g_bomb_roll005_png:Class = Embeds_g_bomb_roll005_png;
public static var p2_roll024_png:Class = Embeds_p2_roll024_png;
public static var main_menu_jpg:Class = Embeds_main_menu_jpg;
public static var p1_roll027_png:Class = Embeds_p1_roll027_png;
public static var smoke_d028_png:Class = Embeds_smoke_d028_png;
public static var germanBomberWasted_1:BitmapData = new Embeds.g_bomb_wasted_1_png().bitmapData;
public static var germanBomberWasted_2:BitmapData = new Embeds.g_bomb_wasted_2_png().bitmapData;
public static var germanBomberWasted:Array = [germanBomberWasted_1, germanBomberWasted_2];
public static var highscore_today_png:Class = Embeds_highscore_today_png;
public static var gunner004_png:Class = Embeds_gunner004_png;
public static var bombtarget4_png:Class = Embeds_bombtarget4_png;
public static var smoke_a008_png:Class = Embeds_smoke_a008_png;
public static var evasive_icon_dive_png:Class = Embeds_evasive_icon_dive_png;
public static var p1_roll004_png:Class = Embeds_p1_roll004_png;
public static var ace_e_roll011_png:Class = Embeds_ace_e_roll011_png;
public static var evasive_dive_png:Class = Embeds_evasive_dive_png;
public static var smoke_d005_png:Class = Embeds_smoke_d005_png;
public static var smoke_a019_png:Class = Embeds_smoke_a019_png;
public static var smoke_e010_png:Class = Embeds_smoke_e010_png;
public static var englishBomberWasted_2_embed:Class = Embeds.e_bomb_wasted_2_png;
public static var p2_roll001_png:Class = Embeds_p2_roll001_png;
public static var gun_flash_png:Class = Embeds_gun_flash_png;
public static var p2_roll012_png:Class = Embeds_p2_roll012_png;
public static var p1_roll015_png:Class = Embeds_p1_roll015_png;
public static var smoke_e021_png:Class = Embeds_smoke_e021_png;
public static var ace_e_roll022_png:Class = Embeds_ace_e_roll022_png;
public static var smoke_d016_png:Class = Embeds_smoke_d016_png;
public static var convoy_2_png:Class = Embeds_convoy_2_png;
public static var g_bomb_roll004_png:Class = Embeds_g_bomb_roll004_png;
public static var p2_roll023_png:Class = Embeds_p2_roll023_png;
public static var p1_roll026_png:Class = Embeds_p1_roll026_png;
public static var bombtarget3_png:Class = Embeds_bombtarget3_png;
public static var smoke_d027_png:Class = Embeds_smoke_d027_png;
public static var smoke_e032_png:Class = Embeds_smoke_e032_png;
public static var wreckage_1:BitmapData = new Embeds.bombtarget_wreckage1_png().bitmapData;
public static var wreckage_2:BitmapData = new Embeds.bombtarget_wreckage2_png().bitmapData;
public static var germanWasted_1:BitmapData = new Embeds.g_wasted_1_png().bitmapData;
public static var germanWasted_2:BitmapData = new Embeds.g_wasted_2_png().bitmapData;
public static var englishAceWasted_1_embed:Class = Embeds.e_ace_wasted_1_png;
public static var bullet_png:Class = Embeds_bullet_png;
public static var smoke_a007_png:Class = Embeds_smoke_a007_png;
public static var gunner003_png:Class = Embeds_gunner003_png;
public static var ace_g_roll009_png:Class = Embeds_ace_g_roll009_png;
public static var g_wasted_2_png:Class = Embeds_g_wasted_2_png;
public static var p1_roll003_png:Class = Embeds_p1_roll003_png;
public static var ace_e_roll010_png:Class = Embeds_ace_e_roll010_png;
public static var smoke_d004_png:Class = Embeds_smoke_d004_png;
public static var smoke_a018_png:Class = Embeds_smoke_a018_png;
public static var p1_roll014_png:Class = Embeds_p1_roll014_png;
public static var smoke_e020_png:Class = Embeds_smoke_e020_png;
public static var ace_e_roll021_png:Class = Embeds_ace_e_roll021_png;
public static var p2_roll011_png:Class = Embeds_p2_roll011_png;
public static var highscore_page_png:Class = Embeds_highscore_page_png;
public static var evasive_icon_loop_png:Class = Embeds_evasive_icon_loop_png;
public static var balloon_damaged_png:Class = Embeds_balloon_damaged_png;
public static var germanWasted:Array = [germanWasted_1, germanWasted_2];
public static var smoke_d015_png:Class = Embeds_smoke_d015_png;
public static var smoke_a029_png:Class = Embeds_smoke_a029_png;
public static var evasive_loop_png:Class = Embeds_evasive_loop_png;
public static var g_bomb_roll003_png:Class = Embeds_g_bomb_roll003_png;
public static var p2_roll022_png:Class = Embeds_p2_roll022_png;
public static var convoy_1_png:Class = Embeds_convoy_1_png;
public static var germanWasted_1_embed:Class = Embeds.g_wasted_1_png;
public static var ace_e_roll032_png:Class = Embeds_ace_e_roll032_png;
public static var e_bomb_wasted_2_png:Class = Embeds_e_bomb_wasted_2_png;
public static var smoke_d026_png:Class = Embeds_smoke_d026_png;
public static var evasive_low_png:Class = Embeds_evasive_low_png;
public static var bombtarget2_png:Class = Embeds_bombtarget2_png;
public static var smoke_e031_png:Class = Embeds_smoke_e031_png;
public static var gunner002_png:Class = Embeds_gunner002_png;
public static var p1_roll025_png:Class = Embeds_p1_roll025_png;
public static var germanBomberWasted_1_embed:Class = Embeds.g_bomb_wasted_1_png;
public static var smoke_a006_png:Class = Embeds_smoke_a006_png;
public static var ace_g_roll008_png:Class = Embeds_ace_g_roll008_png;
public static var gameoverscore_png:Class = Embeds_gameoverscore_png;
public static var g_wasted_1_png:Class = Embeds_g_wasted_1_png;
public static var p1_roll002_png:Class = Embeds_p1_roll002_png;
public static var wreak_png:Class = Embeds_wreak_png;
public static var smoke_d003_png:Class = Embeds_smoke_d003_png;
public static var smoke_a017_png:Class = Embeds_smoke_a017_png;
public static var ace_g_roll019_png:Class = Embeds_ace_g_roll019_png;
public static var highscore_panel_png:Class = Embeds_highscore_panel_png;
public static var balloon_png:Class = Embeds_balloon_png;
public static var p1_roll013_png:Class = Embeds_p1_roll013_png;
public static var p2_roll010_png:Class = Embeds_p2_roll010_png;
public static var smoke_d014_png:Class = Embeds_smoke_d014_png;
public static var ace_e_roll020_png:Class = Embeds_ace_e_roll020_png;
public static var smoke_a028_png:Class = Embeds_smoke_a028_png;
public static var smoke_c009_png:Class = Embeds_smoke_c009_png;
public static var g_bomb_roll002_png:Class = Embeds_g_bomb_roll002_png;
public static var p2_roll021_png:Class = Embeds_p2_roll021_png;
public static var p1_roll024_png:Class = Embeds_p1_roll024_png;
public static var ace_e_roll031_png:Class = Embeds_ace_e_roll031_png;
public static var bombtarget1_png:Class = Embeds_bombtarget1_png;
public static var e_bomb_wasted_1_png:Class = Embeds_e_bomb_wasted_1_png;
public static var seperator_png:Class = Embeds_seperator_png;
public static var smoke_d025_png:Class = Embeds_smoke_d025_png;
public static var smoke_e030_png:Class = Embeds_smoke_e030_png;
public static var p2_roll032_png:Class = Embeds_p2_roll032_png;
public static var gunner001_png:Class = Embeds_gunner001_png;
public static var playerbomber_png:Class = Embeds_playerbomber_png;
public static var scenery3_dead_png:Class = Embeds_scenery3_dead_png;
public static var smoke_a005_png:Class = Embeds_smoke_a005_png;
public static var ace_g_roll007_png:Class = Embeds_ace_g_roll007_png;
public static var menu_button_png:Class = Embeds_menu_button_png;
public static var e_green_wasted_2_png:Class = Embeds_e_green_wasted_2_png;
public static var p1_roll001_png:Class = Embeds_p1_roll001_png;
public static var e_bomb_roll009_png:Class = Embeds_e_bomb_roll009_png;
public static var smoke_d002_png:Class = Embeds_smoke_d002_png;
public static var smoke_a016_png:Class = Embeds_smoke_a016_png;
public static var ace_g_roll018_png:Class = Embeds_ace_g_roll018_png;
public static var p1_roll012_png:Class = Embeds_p1_roll012_png;
public static var smoke_d013_png:Class = Embeds_smoke_d013_png;
public static var smoke_a027_png:Class = Embeds_smoke_a027_png;
public static var smoke_c008_png:Class = Embeds_smoke_c008_png;
public static var ace_g_roll029_png:Class = Embeds_ace_g_roll029_png;
public static var planecrash_png:Class = Embeds_planecrash_png;
public static var g_bomb_roll001_png:Class = Embeds_g_bomb_roll001_png;
public static var p2_roll020_png:Class = Embeds_p2_roll020_png;
public static var p1_roll023_png:Class = Embeds_p1_roll023_png;
public static var ace_e_roll030_png:Class = Embeds_ace_e_roll030_png;
public static var smoke_c019_png:Class = Embeds_smoke_c019_png;
public static var smoke_d024_png:Class = Embeds_smoke_d024_png;
public static var land_1:BitmapData = new Embeds.land_1_png().bitmapData;
public static var land_2:BitmapData = new Embeds.land_2_png().bitmapData;
public static var p2_roll031_png:Class = Embeds_p2_roll031_png;
public static var netloading_png:Class = Embeds_netloading_png;
public static var smoke_a004_png:Class = Embeds_smoke_a004_png;
public static var ace_g_roll006_png:Class = Embeds_ace_g_roll006_png;
public static var shot009_png:Class = Embeds_shot009_png;
public static var zeppelin_256_png:Class = Embeds_zeppelin_256_png;
public static var land_1_embed:Class = Embeds.land_1_png;
public static var e_green_wasted_1_png:Class = Embeds_e_green_wasted_1_png;
public static var smoke_d001_png:Class = Embeds_smoke_d001_png;
public static var e_bomb_roll008_png:Class = Embeds_e_bomb_roll008_png;
public static var smoke_a015_png:Class = Embeds_smoke_a015_png;
public static var ace_g_roll017_png:Class = Embeds_ace_g_roll017_png;
public static var p1_roll011_png:Class = Embeds_p1_roll011_png;
public static var smoke_d012_png:Class = Embeds_smoke_d012_png;
public static var smoke_a026_png:Class = Embeds_smoke_a026_png;
public static var smoke_c007_png:Class = Embeds_smoke_c007_png;
public static var ace_g_roll028_png:Class = Embeds_ace_g_roll028_png;
public static var wreckage_2_embed:Class = Embeds.bombtarget_wreckage2_png;
public static var p1_roll022_png:Class = Embeds_p1_roll022_png;
public static var smoke_d023_png:Class = Embeds_smoke_d023_png;
public static var smoke_c018_png:Class = Embeds_smoke_c018_png;
public static var p2_roll030_png:Class = Embeds_p2_roll030_png;
public static var shot_png:Class = Embeds_shot_png;
public static var shot008_png:Class = Embeds_shot008_png;
public static var smoke_a003_png:Class = Embeds_smoke_a003_png;
public static var smoke_c029_png:Class = Embeds_smoke_c029_png;
public static var ace_g_roll005_png:Class = Embeds_ace_g_roll005_png;
public static var highscore_all_png:Class = Embeds_highscore_all_png;
public static var e_bomb_roll007_png:Class = Embeds_e_bomb_roll007_png;
public static var shot019_png:Class = Embeds_shot019_png;
public static var ace_g_roll016_png:Class = Embeds_ace_g_roll016_png;
public static var smoke_a014_png:Class = Embeds_smoke_a014_png;
public static var p1_roll010_png:Class = Embeds_p1_roll010_png;
public static var evasive_icon_low_png:Class = Embeds_evasive_icon_low_png;
public static var smoke_d011_png:Class = Embeds_smoke_d011_png;
public static var icon_play_png:Class = Embeds_icon_play_png;
public static var smoke_a025_png:Class = Embeds_smoke_a025_png;
public static var smoke_c006_png:Class = Embeds_smoke_c006_png;
public static var playerWasted_1:BitmapData = new Embeds.player_wasted_1_png().bitmapData;
public static var playerWasted_2:BitmapData = new Embeds.player_wasted_2_png().bitmapData;
public static var p1_roll021_png:Class = Embeds_p1_roll021_png;
public static var ace_g_roll027_png:Class = Embeds_ace_g_roll027_png;
public static var smoke_c017_png:Class = Embeds_smoke_c017_png;
public static var smoke_d022_png:Class = Embeds_smoke_d022_png;
public static var g_bomb_roll010_png:Class = Embeds_g_bomb_roll010_png;
public static var aa_turret_png:Class = Embeds_aa_turret_png;
public static var playerWasted_1_embed:Class = Embeds.player_wasted_1_png;
public static var p1_roll032_png:Class = Embeds_p1_roll032_png;
public static var shot007_png:Class = Embeds_shot007_png;
public static var smoke_a002_png:Class = Embeds_smoke_a002_png;
public static var ace_g_roll004_png:Class = Embeds_ace_g_roll004_png;
public static var smoke_e009_png:Class = Embeds_smoke_e009_png;
public static var smoke_c028_png:Class = Embeds_smoke_c028_png;
public static var plane_prop003_png:Class = Embeds_plane_prop003_png;
}
}//package GlobalSetup
Section 97
//Embeds_aa_gunner001_png (GlobalSetup.Embeds_aa_gunner001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_gunner001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 98
//Embeds_aa_gunner002_png (GlobalSetup.Embeds_aa_gunner002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_gunner002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 99
//Embeds_aa_gunner003_png (GlobalSetup.Embeds_aa_gunner003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_gunner003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 100
//Embeds_aa_gunner004_png (GlobalSetup.Embeds_aa_gunner004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_gunner004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 101
//Embeds_aa_gunner005_png (GlobalSetup.Embeds_aa_gunner005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_gunner005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 102
//Embeds_aa_gunner006_png (GlobalSetup.Embeds_aa_gunner006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_gunner006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 103
//Embeds_aa_gunner007_png (GlobalSetup.Embeds_aa_gunner007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_gunner007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 104
//Embeds_aa_turret_flash_png (GlobalSetup.Embeds_aa_turret_flash_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_turret_flash_png extends BitmapAsset {
}
}//package GlobalSetup
Section 105
//Embeds_aa_turret_png (GlobalSetup.Embeds_aa_turret_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_aa_turret_png extends BitmapAsset {
}
}//package GlobalSetup
Section 106
//Embeds_ace_e_roll001_png (GlobalSetup.Embeds_ace_e_roll001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 107
//Embeds_ace_e_roll002_png (GlobalSetup.Embeds_ace_e_roll002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 108
//Embeds_ace_e_roll003_png (GlobalSetup.Embeds_ace_e_roll003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 109
//Embeds_ace_e_roll004_png (GlobalSetup.Embeds_ace_e_roll004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 110
//Embeds_ace_e_roll005_png (GlobalSetup.Embeds_ace_e_roll005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 111
//Embeds_ace_e_roll006_png (GlobalSetup.Embeds_ace_e_roll006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 112
//Embeds_ace_e_roll007_png (GlobalSetup.Embeds_ace_e_roll007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 113
//Embeds_ace_e_roll008_png (GlobalSetup.Embeds_ace_e_roll008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 114
//Embeds_ace_e_roll009_png (GlobalSetup.Embeds_ace_e_roll009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 115
//Embeds_ace_e_roll010_png (GlobalSetup.Embeds_ace_e_roll010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 116
//Embeds_ace_e_roll011_png (GlobalSetup.Embeds_ace_e_roll011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 117
//Embeds_ace_e_roll012_png (GlobalSetup.Embeds_ace_e_roll012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 118
//Embeds_ace_e_roll013_png (GlobalSetup.Embeds_ace_e_roll013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 119
//Embeds_ace_e_roll014_png (GlobalSetup.Embeds_ace_e_roll014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 120
//Embeds_ace_e_roll015_png (GlobalSetup.Embeds_ace_e_roll015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 121
//Embeds_ace_e_roll016_png (GlobalSetup.Embeds_ace_e_roll016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 122
//Embeds_ace_e_roll017_png (GlobalSetup.Embeds_ace_e_roll017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 123
//Embeds_ace_e_roll018_png (GlobalSetup.Embeds_ace_e_roll018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 124
//Embeds_ace_e_roll019_png (GlobalSetup.Embeds_ace_e_roll019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 125
//Embeds_ace_e_roll020_png (GlobalSetup.Embeds_ace_e_roll020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 126
//Embeds_ace_e_roll021_png (GlobalSetup.Embeds_ace_e_roll021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 127
//Embeds_ace_e_roll022_png (GlobalSetup.Embeds_ace_e_roll022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 128
//Embeds_ace_e_roll023_png (GlobalSetup.Embeds_ace_e_roll023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 129
//Embeds_ace_e_roll024_png (GlobalSetup.Embeds_ace_e_roll024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 130
//Embeds_ace_e_roll025_png (GlobalSetup.Embeds_ace_e_roll025_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll025_png extends BitmapAsset {
}
}//package GlobalSetup
Section 131
//Embeds_ace_e_roll026_png (GlobalSetup.Embeds_ace_e_roll026_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll026_png extends BitmapAsset {
}
}//package GlobalSetup
Section 132
//Embeds_ace_e_roll027_png (GlobalSetup.Embeds_ace_e_roll027_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll027_png extends BitmapAsset {
}
}//package GlobalSetup
Section 133
//Embeds_ace_e_roll028_png (GlobalSetup.Embeds_ace_e_roll028_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll028_png extends BitmapAsset {
}
}//package GlobalSetup
Section 134
//Embeds_ace_e_roll029_png (GlobalSetup.Embeds_ace_e_roll029_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll029_png extends BitmapAsset {
}
}//package GlobalSetup
Section 135
//Embeds_ace_e_roll030_png (GlobalSetup.Embeds_ace_e_roll030_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll030_png extends BitmapAsset {
}
}//package GlobalSetup
Section 136
//Embeds_ace_e_roll031_png (GlobalSetup.Embeds_ace_e_roll031_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll031_png extends BitmapAsset {
}
}//package GlobalSetup
Section 137
//Embeds_ace_e_roll032_png (GlobalSetup.Embeds_ace_e_roll032_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_e_roll032_png extends BitmapAsset {
}
}//package GlobalSetup
Section 138
//Embeds_ace_g_roll001_png (GlobalSetup.Embeds_ace_g_roll001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 139
//Embeds_ace_g_roll002_png (GlobalSetup.Embeds_ace_g_roll002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 140
//Embeds_ace_g_roll003_png (GlobalSetup.Embeds_ace_g_roll003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 141
//Embeds_ace_g_roll004_png (GlobalSetup.Embeds_ace_g_roll004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 142
//Embeds_ace_g_roll005_png (GlobalSetup.Embeds_ace_g_roll005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 143
//Embeds_ace_g_roll006_png (GlobalSetup.Embeds_ace_g_roll006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 144
//Embeds_ace_g_roll007_png (GlobalSetup.Embeds_ace_g_roll007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 145
//Embeds_ace_g_roll008_png (GlobalSetup.Embeds_ace_g_roll008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 146
//Embeds_ace_g_roll009_png (GlobalSetup.Embeds_ace_g_roll009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 147
//Embeds_ace_g_roll010_png (GlobalSetup.Embeds_ace_g_roll010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 148
//Embeds_ace_g_roll011_png (GlobalSetup.Embeds_ace_g_roll011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 149
//Embeds_ace_g_roll012_png (GlobalSetup.Embeds_ace_g_roll012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 150
//Embeds_ace_g_roll013_png (GlobalSetup.Embeds_ace_g_roll013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 151
//Embeds_ace_g_roll014_png (GlobalSetup.Embeds_ace_g_roll014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 152
//Embeds_ace_g_roll015_png (GlobalSetup.Embeds_ace_g_roll015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 153
//Embeds_ace_g_roll016_png (GlobalSetup.Embeds_ace_g_roll016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 154
//Embeds_ace_g_roll017_png (GlobalSetup.Embeds_ace_g_roll017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 155
//Embeds_ace_g_roll018_png (GlobalSetup.Embeds_ace_g_roll018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 156
//Embeds_ace_g_roll019_png (GlobalSetup.Embeds_ace_g_roll019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 157
//Embeds_ace_g_roll020_png (GlobalSetup.Embeds_ace_g_roll020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 158
//Embeds_ace_g_roll021_png (GlobalSetup.Embeds_ace_g_roll021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 159
//Embeds_ace_g_roll022_png (GlobalSetup.Embeds_ace_g_roll022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 160
//Embeds_ace_g_roll023_png (GlobalSetup.Embeds_ace_g_roll023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 161
//Embeds_ace_g_roll024_png (GlobalSetup.Embeds_ace_g_roll024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 162
//Embeds_ace_g_roll025_png (GlobalSetup.Embeds_ace_g_roll025_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll025_png extends BitmapAsset {
}
}//package GlobalSetup
Section 163
//Embeds_ace_g_roll026_png (GlobalSetup.Embeds_ace_g_roll026_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll026_png extends BitmapAsset {
}
}//package GlobalSetup
Section 164
//Embeds_ace_g_roll027_png (GlobalSetup.Embeds_ace_g_roll027_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll027_png extends BitmapAsset {
}
}//package GlobalSetup
Section 165
//Embeds_ace_g_roll028_png (GlobalSetup.Embeds_ace_g_roll028_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll028_png extends BitmapAsset {
}
}//package GlobalSetup
Section 166
//Embeds_ace_g_roll029_png (GlobalSetup.Embeds_ace_g_roll029_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll029_png extends BitmapAsset {
}
}//package GlobalSetup
Section 167
//Embeds_ace_g_roll030_png (GlobalSetup.Embeds_ace_g_roll030_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll030_png extends BitmapAsset {
}
}//package GlobalSetup
Section 168
//Embeds_ace_g_roll031_png (GlobalSetup.Embeds_ace_g_roll031_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll031_png extends BitmapAsset {
}
}//package GlobalSetup
Section 169
//Embeds_ace_g_roll032_png (GlobalSetup.Embeds_ace_g_roll032_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ace_g_roll032_png extends BitmapAsset {
}
}//package GlobalSetup
Section 170
//Embeds_balloon_damaged_png (GlobalSetup.Embeds_balloon_damaged_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_balloon_damaged_png extends BitmapAsset {
}
}//package GlobalSetup
Section 171
//Embeds_balloon_line_png (GlobalSetup.Embeds_balloon_line_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_balloon_line_png extends BitmapAsset {
}
}//package GlobalSetup
Section 172
//Embeds_balloon_png (GlobalSetup.Embeds_balloon_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_balloon_png extends BitmapAsset {
}
}//package GlobalSetup
Section 173
//Embeds_bomb_hud_png (GlobalSetup.Embeds_bomb_hud_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bomb_hud_png extends BitmapAsset {
}
}//package GlobalSetup
Section 174
//Embeds_bomb_png (GlobalSetup.Embeds_bomb_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bomb_png extends BitmapAsset {
}
}//package GlobalSetup
Section 175
//Embeds_bombtarget_wreckage1_png (GlobalSetup.Embeds_bombtarget_wreckage1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bombtarget_wreckage1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 176
//Embeds_bombtarget_wreckage2_png (GlobalSetup.Embeds_bombtarget_wreckage2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bombtarget_wreckage2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 177
//Embeds_bombtarget1_png (GlobalSetup.Embeds_bombtarget1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bombtarget1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 178
//Embeds_bombtarget2_png (GlobalSetup.Embeds_bombtarget2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bombtarget2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 179
//Embeds_bombtarget3_png (GlobalSetup.Embeds_bombtarget3_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bombtarget3_png extends BitmapAsset {
}
}//package GlobalSetup
Section 180
//Embeds_bombtarget4_png (GlobalSetup.Embeds_bombtarget4_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bombtarget4_png extends BitmapAsset {
}
}//package GlobalSetup
Section 181
//Embeds_bombtarget5_png (GlobalSetup.Embeds_bombtarget5_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bombtarget5_png extends BitmapAsset {
}
}//package GlobalSetup
Section 182
//Embeds_bullet_png (GlobalSetup.Embeds_bullet_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_bullet_png extends BitmapAsset {
}
}//package GlobalSetup
Section 183
//Embeds_button_submit_png (GlobalSetup.Embeds_button_submit_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_button_submit_png extends BitmapAsset {
}
}//package GlobalSetup
Section 184
//Embeds_cloud2_png (GlobalSetup.Embeds_cloud2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_cloud2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 185
//Embeds_cloud3_png (GlobalSetup.Embeds_cloud3_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_cloud3_png extends BitmapAsset {
}
}//package GlobalSetup
Section 186
//Embeds_confused_png (GlobalSetup.Embeds_confused_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_confused_png extends BitmapAsset {
}
}//package GlobalSetup
Section 187
//Embeds_convoy_1_png (GlobalSetup.Embeds_convoy_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_convoy_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 188
//Embeds_convoy_2_png (GlobalSetup.Embeds_convoy_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_convoy_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 189
//Embeds_convoy_3_png (GlobalSetup.Embeds_convoy_3_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_convoy_3_png extends BitmapAsset {
}
}//package GlobalSetup
Section 190
//Embeds_convoy_dead_1_png (GlobalSetup.Embeds_convoy_dead_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_convoy_dead_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 191
//Embeds_convoy_dead_2_png (GlobalSetup.Embeds_convoy_dead_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_convoy_dead_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 192
//Embeds_convoy_dead_3_png (GlobalSetup.Embeds_convoy_dead_3_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_convoy_dead_3_png extends BitmapAsset {
}
}//package GlobalSetup
Section 193
//Embeds_e_ace_wasted_1_png (GlobalSetup.Embeds_e_ace_wasted_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_ace_wasted_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 194
//Embeds_e_ace_wasted_2_png (GlobalSetup.Embeds_e_ace_wasted_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_ace_wasted_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 195
//Embeds_e_bomb_roll001_png (GlobalSetup.Embeds_e_bomb_roll001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 196
//Embeds_e_bomb_roll002_png (GlobalSetup.Embeds_e_bomb_roll002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 197
//Embeds_e_bomb_roll003_png (GlobalSetup.Embeds_e_bomb_roll003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 198
//Embeds_e_bomb_roll004_png (GlobalSetup.Embeds_e_bomb_roll004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 199
//Embeds_e_bomb_roll005_png (GlobalSetup.Embeds_e_bomb_roll005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 200
//Embeds_e_bomb_roll006_png (GlobalSetup.Embeds_e_bomb_roll006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 201
//Embeds_e_bomb_roll007_png (GlobalSetup.Embeds_e_bomb_roll007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 202
//Embeds_e_bomb_roll008_png (GlobalSetup.Embeds_e_bomb_roll008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 203
//Embeds_e_bomb_roll009_png (GlobalSetup.Embeds_e_bomb_roll009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 204
//Embeds_e_bomb_roll010_png (GlobalSetup.Embeds_e_bomb_roll010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_roll010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 205
//Embeds_e_bomb_wasted_1_png (GlobalSetup.Embeds_e_bomb_wasted_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_wasted_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 206
//Embeds_e_bomb_wasted_2_png (GlobalSetup.Embeds_e_bomb_wasted_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_bomb_wasted_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 207
//Embeds_e_green_wasted_1_png (GlobalSetup.Embeds_e_green_wasted_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_green_wasted_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 208
//Embeds_e_green_wasted_2_png (GlobalSetup.Embeds_e_green_wasted_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_e_green_wasted_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 209
//Embeds_escape_text_png (GlobalSetup.Embeds_escape_text_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_escape_text_png extends BitmapAsset {
}
}//package GlobalSetup
Section 210
//Embeds_evasive_cloud_png (GlobalSetup.Embeds_evasive_cloud_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_evasive_cloud_png extends BitmapAsset {
}
}//package GlobalSetup
Section 211
//Embeds_evasive_dive_png (GlobalSetup.Embeds_evasive_dive_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_evasive_dive_png extends BitmapAsset {
}
}//package GlobalSetup
Section 212
//Embeds_evasive_icon_cloud_png (GlobalSetup.Embeds_evasive_icon_cloud_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_evasive_icon_cloud_png extends BitmapAsset {
}
}//package GlobalSetup
Section 213
//Embeds_evasive_icon_dive_png (GlobalSetup.Embeds_evasive_icon_dive_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_evasive_icon_dive_png extends BitmapAsset {
}
}//package GlobalSetup
Section 214
//Embeds_evasive_icon_loop_png (GlobalSetup.Embeds_evasive_icon_loop_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_evasive_icon_loop_png extends BitmapAsset {
}
}//package GlobalSetup
Section 215
//Embeds_evasive_icon_low_png (GlobalSetup.Embeds_evasive_icon_low_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_evasive_icon_low_png extends BitmapAsset {
}
}//package GlobalSetup
Section 216
//Embeds_evasive_loop_png (GlobalSetup.Embeds_evasive_loop_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_evasive_loop_png extends BitmapAsset {
}
}//package GlobalSetup
Section 217
//Embeds_evasive_low_png (GlobalSetup.Embeds_evasive_low_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_evasive_low_png extends BitmapAsset {
}
}//package GlobalSetup
Section 218
//Embeds_flash_png (GlobalSetup.Embeds_flash_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_flash_png extends BitmapAsset {
}
}//package GlobalSetup
Section 219
//Embeds_g_bomb_roll001_png (GlobalSetup.Embeds_g_bomb_roll001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 220
//Embeds_g_bomb_roll002_png (GlobalSetup.Embeds_g_bomb_roll002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 221
//Embeds_g_bomb_roll003_png (GlobalSetup.Embeds_g_bomb_roll003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 222
//Embeds_g_bomb_roll004_png (GlobalSetup.Embeds_g_bomb_roll004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 223
//Embeds_g_bomb_roll005_png (GlobalSetup.Embeds_g_bomb_roll005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 224
//Embeds_g_bomb_roll006_png (GlobalSetup.Embeds_g_bomb_roll006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 225
//Embeds_g_bomb_roll007_png (GlobalSetup.Embeds_g_bomb_roll007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 226
//Embeds_g_bomb_roll008_png (GlobalSetup.Embeds_g_bomb_roll008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 227
//Embeds_g_bomb_roll009_png (GlobalSetup.Embeds_g_bomb_roll009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 228
//Embeds_g_bomb_roll010_png (GlobalSetup.Embeds_g_bomb_roll010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_roll010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 229
//Embeds_g_bomb_wasted_1_png (GlobalSetup.Embeds_g_bomb_wasted_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_wasted_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 230
//Embeds_g_bomb_wasted_2_png (GlobalSetup.Embeds_g_bomb_wasted_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_bomb_wasted_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 231
//Embeds_g_wasted_1_png (GlobalSetup.Embeds_g_wasted_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_wasted_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 232
//Embeds_g_wasted_2_png (GlobalSetup.Embeds_g_wasted_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_g_wasted_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 233
//Embeds_gameoverscore_png (GlobalSetup.Embeds_gameoverscore_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gameoverscore_png extends BitmapAsset {
}
}//package GlobalSetup
Section 234
//Embeds_ground_1_png (GlobalSetup.Embeds_ground_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ground_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 235
//Embeds_ground_2_png (GlobalSetup.Embeds_ground_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ground_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 236
//Embeds_ground_3_png (GlobalSetup.Embeds_ground_3_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_ground_3_png extends BitmapAsset {
}
}//package GlobalSetup
Section 237
//Embeds_gun_flash_png (GlobalSetup.Embeds_gun_flash_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gun_flash_png extends BitmapAsset {
}
}//package GlobalSetup
Section 238
//Embeds_gun_png (GlobalSetup.Embeds_gun_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gun_png extends BitmapAsset {
}
}//package GlobalSetup
Section 239
//Embeds_gunner001_png (GlobalSetup.Embeds_gunner001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gunner001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 240
//Embeds_gunner002_png (GlobalSetup.Embeds_gunner002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gunner002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 241
//Embeds_gunner003_png (GlobalSetup.Embeds_gunner003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gunner003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 242
//Embeds_gunner004_png (GlobalSetup.Embeds_gunner004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gunner004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 243
//Embeds_gunner005_png (GlobalSetup.Embeds_gunner005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gunner005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 244
//Embeds_gunner006_png (GlobalSetup.Embeds_gunner006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gunner006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 245
//Embeds_gunner007_png (GlobalSetup.Embeds_gunner007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_gunner007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 246
//Embeds_highscore_all_png (GlobalSetup.Embeds_highscore_all_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_all_png extends BitmapAsset {
}
}//package GlobalSetup
Section 247
//Embeds_highscore_back_png (GlobalSetup.Embeds_highscore_back_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_back_png extends BitmapAsset {
}
}//package GlobalSetup
Section 248
//Embeds_highscore_month_png (GlobalSetup.Embeds_highscore_month_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_month_png extends BitmapAsset {
}
}//package GlobalSetup
Section 249
//Embeds_highscore_next_png (GlobalSetup.Embeds_highscore_next_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_next_png extends BitmapAsset {
}
}//package GlobalSetup
Section 250
//Embeds_highscore_ok_png (GlobalSetup.Embeds_highscore_ok_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_ok_png extends BitmapAsset {
}
}//package GlobalSetup
Section 251
//Embeds_highscore_page_png (GlobalSetup.Embeds_highscore_page_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_page_png extends BitmapAsset {
}
}//package GlobalSetup
Section 252
//Embeds_highscore_page_selected_png (GlobalSetup.Embeds_highscore_page_selected_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_page_selected_png extends BitmapAsset {
}
}//package GlobalSetup
Section 253
//Embeds_highscore_panel_png (GlobalSetup.Embeds_highscore_panel_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_panel_png extends BitmapAsset {
}
}//package GlobalSetup
Section 254
//Embeds_highscore_skip_png (GlobalSetup.Embeds_highscore_skip_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_skip_png extends BitmapAsset {
}
}//package GlobalSetup
Section 255
//Embeds_highscore_today_png (GlobalSetup.Embeds_highscore_today_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_highscore_today_png extends BitmapAsset {
}
}//package GlobalSetup
Section 256
//Embeds_icon_music_png (GlobalSetup.Embeds_icon_music_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_icon_music_png extends BitmapAsset {
}
}//package GlobalSetup
Section 257
//Embeds_icon_off_png (GlobalSetup.Embeds_icon_off_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_icon_off_png extends BitmapAsset {
}
}//package GlobalSetup
Section 258
//Embeds_icon_pause_png (GlobalSetup.Embeds_icon_pause_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_icon_pause_png extends BitmapAsset {
}
}//package GlobalSetup
Section 259
//Embeds_icon_play_png (GlobalSetup.Embeds_icon_play_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_icon_play_png extends BitmapAsset {
}
}//package GlobalSetup
Section 260
//Embeds_icon_quit_png (GlobalSetup.Embeds_icon_quit_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_icon_quit_png extends BitmapAsset {
}
}//package GlobalSetup
Section 261
//Embeds_icon_soundfx_png (GlobalSetup.Embeds_icon_soundfx_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_icon_soundfx_png extends BitmapAsset {
}
}//package GlobalSetup
Section 262
//Embeds_land_1_png (GlobalSetup.Embeds_land_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_land_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 263
//Embeds_land_2_png (GlobalSetup.Embeds_land_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_land_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 264
//Embeds_lifeicon_png (GlobalSetup.Embeds_lifeicon_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_lifeicon_png extends BitmapAsset {
}
}//package GlobalSetup
Section 265
//Embeds_main_menu_jpg (GlobalSetup.Embeds_main_menu_jpg)
package GlobalSetup {
import mx.core.*;
public class Embeds_main_menu_jpg extends BitmapAsset {
}
}//package GlobalSetup
Section 266
//Embeds_man_png (GlobalSetup.Embeds_man_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_man_png extends BitmapAsset {
}
}//package GlobalSetup
Section 267
//Embeds_medal_bronze_png (GlobalSetup.Embeds_medal_bronze_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_medal_bronze_png extends BitmapAsset {
}
}//package GlobalSetup
Section 268
//Embeds_medal_gold_png (GlobalSetup.Embeds_medal_gold_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_medal_gold_png extends BitmapAsset {
}
}//package GlobalSetup
Section 269
//Embeds_medal_silver_png (GlobalSetup.Embeds_medal_silver_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_medal_silver_png extends BitmapAsset {
}
}//package GlobalSetup
Section 270
//Embeds_menu_button_link_png (GlobalSetup.Embeds_menu_button_link_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_menu_button_link_png extends BitmapAsset {
}
}//package GlobalSetup
Section 271
//Embeds_menu_button_png (GlobalSetup.Embeds_menu_button_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_menu_button_png extends BitmapAsset {
}
}//package GlobalSetup
Section 272
//Embeds_netloading_png (GlobalSetup.Embeds_netloading_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_netloading_png extends BitmapAsset {
}
}//package GlobalSetup
Section 273
//Embeds_p1_roll001_png (GlobalSetup.Embeds_p1_roll001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 274
//Embeds_p1_roll002_png (GlobalSetup.Embeds_p1_roll002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 275
//Embeds_p1_roll003_png (GlobalSetup.Embeds_p1_roll003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 276
//Embeds_p1_roll004_png (GlobalSetup.Embeds_p1_roll004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 277
//Embeds_p1_roll005_png (GlobalSetup.Embeds_p1_roll005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 278
//Embeds_p1_roll006_png (GlobalSetup.Embeds_p1_roll006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 279
//Embeds_p1_roll007_png (GlobalSetup.Embeds_p1_roll007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 280
//Embeds_p1_roll008_png (GlobalSetup.Embeds_p1_roll008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 281
//Embeds_p1_roll009_png (GlobalSetup.Embeds_p1_roll009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 282
//Embeds_p1_roll010_png (GlobalSetup.Embeds_p1_roll010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 283
//Embeds_p1_roll011_png (GlobalSetup.Embeds_p1_roll011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 284
//Embeds_p1_roll012_png (GlobalSetup.Embeds_p1_roll012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 285
//Embeds_p1_roll013_png (GlobalSetup.Embeds_p1_roll013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 286
//Embeds_p1_roll014_png (GlobalSetup.Embeds_p1_roll014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 287
//Embeds_p1_roll015_png (GlobalSetup.Embeds_p1_roll015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 288
//Embeds_p1_roll016_png (GlobalSetup.Embeds_p1_roll016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 289
//Embeds_p1_roll017_png (GlobalSetup.Embeds_p1_roll017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 290
//Embeds_p1_roll018_png (GlobalSetup.Embeds_p1_roll018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 291
//Embeds_p1_roll019_png (GlobalSetup.Embeds_p1_roll019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 292
//Embeds_p1_roll020_png (GlobalSetup.Embeds_p1_roll020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 293
//Embeds_p1_roll021_png (GlobalSetup.Embeds_p1_roll021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 294
//Embeds_p1_roll022_png (GlobalSetup.Embeds_p1_roll022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 295
//Embeds_p1_roll023_png (GlobalSetup.Embeds_p1_roll023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 296
//Embeds_p1_roll024_png (GlobalSetup.Embeds_p1_roll024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 297
//Embeds_p1_roll025_png (GlobalSetup.Embeds_p1_roll025_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll025_png extends BitmapAsset {
}
}//package GlobalSetup
Section 298
//Embeds_p1_roll026_png (GlobalSetup.Embeds_p1_roll026_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll026_png extends BitmapAsset {
}
}//package GlobalSetup
Section 299
//Embeds_p1_roll027_png (GlobalSetup.Embeds_p1_roll027_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll027_png extends BitmapAsset {
}
}//package GlobalSetup
Section 300
//Embeds_p1_roll028_png (GlobalSetup.Embeds_p1_roll028_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll028_png extends BitmapAsset {
}
}//package GlobalSetup
Section 301
//Embeds_p1_roll029_png (GlobalSetup.Embeds_p1_roll029_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll029_png extends BitmapAsset {
}
}//package GlobalSetup
Section 302
//Embeds_p1_roll030_png (GlobalSetup.Embeds_p1_roll030_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll030_png extends BitmapAsset {
}
}//package GlobalSetup
Section 303
//Embeds_p1_roll031_png (GlobalSetup.Embeds_p1_roll031_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll031_png extends BitmapAsset {
}
}//package GlobalSetup
Section 304
//Embeds_p1_roll032_png (GlobalSetup.Embeds_p1_roll032_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p1_roll032_png extends BitmapAsset {
}
}//package GlobalSetup
Section 305
//Embeds_p2_roll001_png (GlobalSetup.Embeds_p2_roll001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 306
//Embeds_p2_roll002_png (GlobalSetup.Embeds_p2_roll002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 307
//Embeds_p2_roll003_png (GlobalSetup.Embeds_p2_roll003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 308
//Embeds_p2_roll004_png (GlobalSetup.Embeds_p2_roll004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 309
//Embeds_p2_roll005_png (GlobalSetup.Embeds_p2_roll005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 310
//Embeds_p2_roll006_png (GlobalSetup.Embeds_p2_roll006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 311
//Embeds_p2_roll007_png (GlobalSetup.Embeds_p2_roll007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 312
//Embeds_p2_roll008_png (GlobalSetup.Embeds_p2_roll008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 313
//Embeds_p2_roll009_png (GlobalSetup.Embeds_p2_roll009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 314
//Embeds_p2_roll010_png (GlobalSetup.Embeds_p2_roll010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 315
//Embeds_p2_roll011_png (GlobalSetup.Embeds_p2_roll011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 316
//Embeds_p2_roll012_png (GlobalSetup.Embeds_p2_roll012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 317
//Embeds_p2_roll013_png (GlobalSetup.Embeds_p2_roll013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 318
//Embeds_p2_roll014_png (GlobalSetup.Embeds_p2_roll014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 319
//Embeds_p2_roll015_png (GlobalSetup.Embeds_p2_roll015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 320
//Embeds_p2_roll016_png (GlobalSetup.Embeds_p2_roll016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 321
//Embeds_p2_roll017_png (GlobalSetup.Embeds_p2_roll017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 322
//Embeds_p2_roll018_png (GlobalSetup.Embeds_p2_roll018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 323
//Embeds_p2_roll019_png (GlobalSetup.Embeds_p2_roll019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 324
//Embeds_p2_roll020_png (GlobalSetup.Embeds_p2_roll020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 325
//Embeds_p2_roll021_png (GlobalSetup.Embeds_p2_roll021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 326
//Embeds_p2_roll022_png (GlobalSetup.Embeds_p2_roll022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 327
//Embeds_p2_roll023_png (GlobalSetup.Embeds_p2_roll023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 328
//Embeds_p2_roll024_png (GlobalSetup.Embeds_p2_roll024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 329
//Embeds_p2_roll025_png (GlobalSetup.Embeds_p2_roll025_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll025_png extends BitmapAsset {
}
}//package GlobalSetup
Section 330
//Embeds_p2_roll026_png (GlobalSetup.Embeds_p2_roll026_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll026_png extends BitmapAsset {
}
}//package GlobalSetup
Section 331
//Embeds_p2_roll027_png (GlobalSetup.Embeds_p2_roll027_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll027_png extends BitmapAsset {
}
}//package GlobalSetup
Section 332
//Embeds_p2_roll028_png (GlobalSetup.Embeds_p2_roll028_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll028_png extends BitmapAsset {
}
}//package GlobalSetup
Section 333
//Embeds_p2_roll029_png (GlobalSetup.Embeds_p2_roll029_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll029_png extends BitmapAsset {
}
}//package GlobalSetup
Section 334
//Embeds_p2_roll030_png (GlobalSetup.Embeds_p2_roll030_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll030_png extends BitmapAsset {
}
}//package GlobalSetup
Section 335
//Embeds_p2_roll031_png (GlobalSetup.Embeds_p2_roll031_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll031_png extends BitmapAsset {
}
}//package GlobalSetup
Section 336
//Embeds_p2_roll032_png (GlobalSetup.Embeds_p2_roll032_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_p2_roll032_png extends BitmapAsset {
}
}//package GlobalSetup
Section 337
//Embeds_parachute_busted_png (GlobalSetup.Embeds_parachute_busted_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_parachute_busted_png extends BitmapAsset {
}
}//package GlobalSetup
Section 338
//Embeds_parachute_png (GlobalSetup.Embeds_parachute_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_parachute_png extends BitmapAsset {
}
}//package GlobalSetup
Section 339
//Embeds_plane_prop001_png (GlobalSetup.Embeds_plane_prop001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_plane_prop001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 340
//Embeds_plane_prop002_png (GlobalSetup.Embeds_plane_prop002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_plane_prop002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 341
//Embeds_plane_prop003_png (GlobalSetup.Embeds_plane_prop003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_plane_prop003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 342
//Embeds_planecrash_png (GlobalSetup.Embeds_planecrash_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_planecrash_png extends BitmapAsset {
}
}//package GlobalSetup
Section 343
//Embeds_planeshadow_png (GlobalSetup.Embeds_planeshadow_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_planeshadow_png extends BitmapAsset {
}
}//package GlobalSetup
Section 344
//Embeds_player_wasted_1_png (GlobalSetup.Embeds_player_wasted_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_player_wasted_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 345
//Embeds_player_wasted_2_png (GlobalSetup.Embeds_player_wasted_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_player_wasted_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 346
//Embeds_playerbomber_png (GlobalSetup.Embeds_playerbomber_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_playerbomber_png extends BitmapAsset {
}
}//package GlobalSetup
Section 347
//Embeds_protect_text_png (GlobalSetup.Embeds_protect_text_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_protect_text_png extends BitmapAsset {
}
}//package GlobalSetup
Section 348
//Embeds_scenery3_dead_png (GlobalSetup.Embeds_scenery3_dead_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_scenery3_dead_png extends BitmapAsset {
}
}//package GlobalSetup
Section 349
//Embeds_scenery3_png (GlobalSetup.Embeds_scenery3_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_scenery3_png extends BitmapAsset {
}
}//package GlobalSetup
Section 350
//Embeds_seperator_png (GlobalSetup.Embeds_seperator_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_seperator_png extends BitmapAsset {
}
}//package GlobalSetup
Section 351
//Embeds_shot_png (GlobalSetup.Embeds_shot_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot_png extends BitmapAsset {
}
}//package GlobalSetup
Section 352
//Embeds_shot001_png (GlobalSetup.Embeds_shot001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 353
//Embeds_shot002_png (GlobalSetup.Embeds_shot002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 354
//Embeds_shot003_png (GlobalSetup.Embeds_shot003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 355
//Embeds_shot004_png (GlobalSetup.Embeds_shot004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 356
//Embeds_shot005_png (GlobalSetup.Embeds_shot005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 357
//Embeds_shot006_png (GlobalSetup.Embeds_shot006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 358
//Embeds_shot007_png (GlobalSetup.Embeds_shot007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 359
//Embeds_shot008_png (GlobalSetup.Embeds_shot008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 360
//Embeds_shot009_png (GlobalSetup.Embeds_shot009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 361
//Embeds_shot010_png (GlobalSetup.Embeds_shot010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 362
//Embeds_shot011_png (GlobalSetup.Embeds_shot011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 363
//Embeds_shot012_png (GlobalSetup.Embeds_shot012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 364
//Embeds_shot013_png (GlobalSetup.Embeds_shot013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 365
//Embeds_shot014_png (GlobalSetup.Embeds_shot014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 366
//Embeds_shot015_png (GlobalSetup.Embeds_shot015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 367
//Embeds_shot016_png (GlobalSetup.Embeds_shot016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 368
//Embeds_shot017_png (GlobalSetup.Embeds_shot017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 369
//Embeds_shot018_png (GlobalSetup.Embeds_shot018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 370
//Embeds_shot019_png (GlobalSetup.Embeds_shot019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 371
//Embeds_shot020_png (GlobalSetup.Embeds_shot020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 372
//Embeds_shot021_png (GlobalSetup.Embeds_shot021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 373
//Embeds_shot022_png (GlobalSetup.Embeds_shot022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 374
//Embeds_shot023_png (GlobalSetup.Embeds_shot023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 375
//Embeds_shot024_png (GlobalSetup.Embeds_shot024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_shot024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 376
//Embeds_smoke_a001_png (GlobalSetup.Embeds_smoke_a001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 377
//Embeds_smoke_a002_png (GlobalSetup.Embeds_smoke_a002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 378
//Embeds_smoke_a003_png (GlobalSetup.Embeds_smoke_a003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 379
//Embeds_smoke_a004_png (GlobalSetup.Embeds_smoke_a004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 380
//Embeds_smoke_a005_png (GlobalSetup.Embeds_smoke_a005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 381
//Embeds_smoke_a006_png (GlobalSetup.Embeds_smoke_a006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 382
//Embeds_smoke_a007_png (GlobalSetup.Embeds_smoke_a007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 383
//Embeds_smoke_a008_png (GlobalSetup.Embeds_smoke_a008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 384
//Embeds_smoke_a009_png (GlobalSetup.Embeds_smoke_a009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 385
//Embeds_smoke_a010_png (GlobalSetup.Embeds_smoke_a010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 386
//Embeds_smoke_a011_png (GlobalSetup.Embeds_smoke_a011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 387
//Embeds_smoke_a012_png (GlobalSetup.Embeds_smoke_a012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 388
//Embeds_smoke_a013_png (GlobalSetup.Embeds_smoke_a013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 389
//Embeds_smoke_a014_png (GlobalSetup.Embeds_smoke_a014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 390
//Embeds_smoke_a015_png (GlobalSetup.Embeds_smoke_a015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 391
//Embeds_smoke_a016_png (GlobalSetup.Embeds_smoke_a016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 392
//Embeds_smoke_a017_png (GlobalSetup.Embeds_smoke_a017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 393
//Embeds_smoke_a018_png (GlobalSetup.Embeds_smoke_a018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 394
//Embeds_smoke_a019_png (GlobalSetup.Embeds_smoke_a019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 395
//Embeds_smoke_a020_png (GlobalSetup.Embeds_smoke_a020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 396
//Embeds_smoke_a021_png (GlobalSetup.Embeds_smoke_a021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 397
//Embeds_smoke_a022_png (GlobalSetup.Embeds_smoke_a022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 398
//Embeds_smoke_a023_png (GlobalSetup.Embeds_smoke_a023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 399
//Embeds_smoke_a024_png (GlobalSetup.Embeds_smoke_a024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 400
//Embeds_smoke_a025_png (GlobalSetup.Embeds_smoke_a025_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a025_png extends BitmapAsset {
}
}//package GlobalSetup
Section 401
//Embeds_smoke_a026_png (GlobalSetup.Embeds_smoke_a026_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a026_png extends BitmapAsset {
}
}//package GlobalSetup
Section 402
//Embeds_smoke_a027_png (GlobalSetup.Embeds_smoke_a027_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a027_png extends BitmapAsset {
}
}//package GlobalSetup
Section 403
//Embeds_smoke_a028_png (GlobalSetup.Embeds_smoke_a028_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a028_png extends BitmapAsset {
}
}//package GlobalSetup
Section 404
//Embeds_smoke_a029_png (GlobalSetup.Embeds_smoke_a029_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a029_png extends BitmapAsset {
}
}//package GlobalSetup
Section 405
//Embeds_smoke_a030_png (GlobalSetup.Embeds_smoke_a030_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a030_png extends BitmapAsset {
}
}//package GlobalSetup
Section 406
//Embeds_smoke_a031_png (GlobalSetup.Embeds_smoke_a031_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a031_png extends BitmapAsset {
}
}//package GlobalSetup
Section 407
//Embeds_smoke_a032_png (GlobalSetup.Embeds_smoke_a032_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_a032_png extends BitmapAsset {
}
}//package GlobalSetup
Section 408
//Embeds_smoke_c001_png (GlobalSetup.Embeds_smoke_c001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 409
//Embeds_smoke_c002_png (GlobalSetup.Embeds_smoke_c002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 410
//Embeds_smoke_c003_png (GlobalSetup.Embeds_smoke_c003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 411
//Embeds_smoke_c004_png (GlobalSetup.Embeds_smoke_c004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 412
//Embeds_smoke_c005_png (GlobalSetup.Embeds_smoke_c005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 413
//Embeds_smoke_c006_png (GlobalSetup.Embeds_smoke_c006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 414
//Embeds_smoke_c007_png (GlobalSetup.Embeds_smoke_c007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 415
//Embeds_smoke_c008_png (GlobalSetup.Embeds_smoke_c008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 416
//Embeds_smoke_c009_png (GlobalSetup.Embeds_smoke_c009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 417
//Embeds_smoke_c010_png (GlobalSetup.Embeds_smoke_c010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 418
//Embeds_smoke_c011_png (GlobalSetup.Embeds_smoke_c011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 419
//Embeds_smoke_c012_png (GlobalSetup.Embeds_smoke_c012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 420
//Embeds_smoke_c013_png (GlobalSetup.Embeds_smoke_c013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 421
//Embeds_smoke_c014_png (GlobalSetup.Embeds_smoke_c014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 422
//Embeds_smoke_c015_png (GlobalSetup.Embeds_smoke_c015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 423
//Embeds_smoke_c016_png (GlobalSetup.Embeds_smoke_c016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 424
//Embeds_smoke_c017_png (GlobalSetup.Embeds_smoke_c017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 425
//Embeds_smoke_c018_png (GlobalSetup.Embeds_smoke_c018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 426
//Embeds_smoke_c019_png (GlobalSetup.Embeds_smoke_c019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 427
//Embeds_smoke_c020_png (GlobalSetup.Embeds_smoke_c020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 428
//Embeds_smoke_c021_png (GlobalSetup.Embeds_smoke_c021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 429
//Embeds_smoke_c022_png (GlobalSetup.Embeds_smoke_c022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 430
//Embeds_smoke_c023_png (GlobalSetup.Embeds_smoke_c023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 431
//Embeds_smoke_c024_png (GlobalSetup.Embeds_smoke_c024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 432
//Embeds_smoke_c025_png (GlobalSetup.Embeds_smoke_c025_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c025_png extends BitmapAsset {
}
}//package GlobalSetup
Section 433
//Embeds_smoke_c026_png (GlobalSetup.Embeds_smoke_c026_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c026_png extends BitmapAsset {
}
}//package GlobalSetup
Section 434
//Embeds_smoke_c027_png (GlobalSetup.Embeds_smoke_c027_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c027_png extends BitmapAsset {
}
}//package GlobalSetup
Section 435
//Embeds_smoke_c028_png (GlobalSetup.Embeds_smoke_c028_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c028_png extends BitmapAsset {
}
}//package GlobalSetup
Section 436
//Embeds_smoke_c029_png (GlobalSetup.Embeds_smoke_c029_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c029_png extends BitmapAsset {
}
}//package GlobalSetup
Section 437
//Embeds_smoke_c030_png (GlobalSetup.Embeds_smoke_c030_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c030_png extends BitmapAsset {
}
}//package GlobalSetup
Section 438
//Embeds_smoke_c031_png (GlobalSetup.Embeds_smoke_c031_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c031_png extends BitmapAsset {
}
}//package GlobalSetup
Section 439
//Embeds_smoke_c032_png (GlobalSetup.Embeds_smoke_c032_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_c032_png extends BitmapAsset {
}
}//package GlobalSetup
Section 440
//Embeds_smoke_d001_png (GlobalSetup.Embeds_smoke_d001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 441
//Embeds_smoke_d002_png (GlobalSetup.Embeds_smoke_d002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 442
//Embeds_smoke_d003_png (GlobalSetup.Embeds_smoke_d003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 443
//Embeds_smoke_d004_png (GlobalSetup.Embeds_smoke_d004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 444
//Embeds_smoke_d005_png (GlobalSetup.Embeds_smoke_d005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 445
//Embeds_smoke_d006_png (GlobalSetup.Embeds_smoke_d006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 446
//Embeds_smoke_d007_png (GlobalSetup.Embeds_smoke_d007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 447
//Embeds_smoke_d008_png (GlobalSetup.Embeds_smoke_d008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 448
//Embeds_smoke_d009_png (GlobalSetup.Embeds_smoke_d009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 449
//Embeds_smoke_d010_png (GlobalSetup.Embeds_smoke_d010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 450
//Embeds_smoke_d011_png (GlobalSetup.Embeds_smoke_d011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 451
//Embeds_smoke_d012_png (GlobalSetup.Embeds_smoke_d012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 452
//Embeds_smoke_d013_png (GlobalSetup.Embeds_smoke_d013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 453
//Embeds_smoke_d014_png (GlobalSetup.Embeds_smoke_d014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 454
//Embeds_smoke_d015_png (GlobalSetup.Embeds_smoke_d015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 455
//Embeds_smoke_d016_png (GlobalSetup.Embeds_smoke_d016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 456
//Embeds_smoke_d017_png (GlobalSetup.Embeds_smoke_d017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 457
//Embeds_smoke_d018_png (GlobalSetup.Embeds_smoke_d018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 458
//Embeds_smoke_d019_png (GlobalSetup.Embeds_smoke_d019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 459
//Embeds_smoke_d020_png (GlobalSetup.Embeds_smoke_d020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 460
//Embeds_smoke_d021_png (GlobalSetup.Embeds_smoke_d021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 461
//Embeds_smoke_d022_png (GlobalSetup.Embeds_smoke_d022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 462
//Embeds_smoke_d023_png (GlobalSetup.Embeds_smoke_d023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 463
//Embeds_smoke_d024_png (GlobalSetup.Embeds_smoke_d024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 464
//Embeds_smoke_d025_png (GlobalSetup.Embeds_smoke_d025_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d025_png extends BitmapAsset {
}
}//package GlobalSetup
Section 465
//Embeds_smoke_d026_png (GlobalSetup.Embeds_smoke_d026_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d026_png extends BitmapAsset {
}
}//package GlobalSetup
Section 466
//Embeds_smoke_d027_png (GlobalSetup.Embeds_smoke_d027_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d027_png extends BitmapAsset {
}
}//package GlobalSetup
Section 467
//Embeds_smoke_d028_png (GlobalSetup.Embeds_smoke_d028_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d028_png extends BitmapAsset {
}
}//package GlobalSetup
Section 468
//Embeds_smoke_d029_png (GlobalSetup.Embeds_smoke_d029_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d029_png extends BitmapAsset {
}
}//package GlobalSetup
Section 469
//Embeds_smoke_d030_png (GlobalSetup.Embeds_smoke_d030_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d030_png extends BitmapAsset {
}
}//package GlobalSetup
Section 470
//Embeds_smoke_d031_png (GlobalSetup.Embeds_smoke_d031_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d031_png extends BitmapAsset {
}
}//package GlobalSetup
Section 471
//Embeds_smoke_d032_png (GlobalSetup.Embeds_smoke_d032_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_d032_png extends BitmapAsset {
}
}//package GlobalSetup
Section 472
//Embeds_smoke_e001_png (GlobalSetup.Embeds_smoke_e001_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e001_png extends BitmapAsset {
}
}//package GlobalSetup
Section 473
//Embeds_smoke_e002_png (GlobalSetup.Embeds_smoke_e002_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e002_png extends BitmapAsset {
}
}//package GlobalSetup
Section 474
//Embeds_smoke_e003_png (GlobalSetup.Embeds_smoke_e003_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e003_png extends BitmapAsset {
}
}//package GlobalSetup
Section 475
//Embeds_smoke_e004_png (GlobalSetup.Embeds_smoke_e004_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e004_png extends BitmapAsset {
}
}//package GlobalSetup
Section 476
//Embeds_smoke_e005_png (GlobalSetup.Embeds_smoke_e005_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e005_png extends BitmapAsset {
}
}//package GlobalSetup
Section 477
//Embeds_smoke_e006_png (GlobalSetup.Embeds_smoke_e006_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e006_png extends BitmapAsset {
}
}//package GlobalSetup
Section 478
//Embeds_smoke_e007_png (GlobalSetup.Embeds_smoke_e007_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e007_png extends BitmapAsset {
}
}//package GlobalSetup
Section 479
//Embeds_smoke_e008_png (GlobalSetup.Embeds_smoke_e008_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e008_png extends BitmapAsset {
}
}//package GlobalSetup
Section 480
//Embeds_smoke_e009_png (GlobalSetup.Embeds_smoke_e009_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e009_png extends BitmapAsset {
}
}//package GlobalSetup
Section 481
//Embeds_smoke_e010_png (GlobalSetup.Embeds_smoke_e010_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e010_png extends BitmapAsset {
}
}//package GlobalSetup
Section 482
//Embeds_smoke_e011_png (GlobalSetup.Embeds_smoke_e011_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e011_png extends BitmapAsset {
}
}//package GlobalSetup
Section 483
//Embeds_smoke_e012_png (GlobalSetup.Embeds_smoke_e012_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e012_png extends BitmapAsset {
}
}//package GlobalSetup
Section 484
//Embeds_smoke_e013_png (GlobalSetup.Embeds_smoke_e013_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e013_png extends BitmapAsset {
}
}//package GlobalSetup
Section 485
//Embeds_smoke_e014_png (GlobalSetup.Embeds_smoke_e014_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e014_png extends BitmapAsset {
}
}//package GlobalSetup
Section 486
//Embeds_smoke_e015_png (GlobalSetup.Embeds_smoke_e015_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e015_png extends BitmapAsset {
}
}//package GlobalSetup
Section 487
//Embeds_smoke_e016_png (GlobalSetup.Embeds_smoke_e016_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e016_png extends BitmapAsset {
}
}//package GlobalSetup
Section 488
//Embeds_smoke_e017_png (GlobalSetup.Embeds_smoke_e017_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e017_png extends BitmapAsset {
}
}//package GlobalSetup
Section 489
//Embeds_smoke_e018_png (GlobalSetup.Embeds_smoke_e018_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e018_png extends BitmapAsset {
}
}//package GlobalSetup
Section 490
//Embeds_smoke_e019_png (GlobalSetup.Embeds_smoke_e019_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e019_png extends BitmapAsset {
}
}//package GlobalSetup
Section 491
//Embeds_smoke_e020_png (GlobalSetup.Embeds_smoke_e020_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e020_png extends BitmapAsset {
}
}//package GlobalSetup
Section 492
//Embeds_smoke_e021_png (GlobalSetup.Embeds_smoke_e021_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e021_png extends BitmapAsset {
}
}//package GlobalSetup
Section 493
//Embeds_smoke_e022_png (GlobalSetup.Embeds_smoke_e022_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e022_png extends BitmapAsset {
}
}//package GlobalSetup
Section 494
//Embeds_smoke_e023_png (GlobalSetup.Embeds_smoke_e023_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e023_png extends BitmapAsset {
}
}//package GlobalSetup
Section 495
//Embeds_smoke_e024_png (GlobalSetup.Embeds_smoke_e024_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e024_png extends BitmapAsset {
}
}//package GlobalSetup
Section 496
//Embeds_smoke_e025_png (GlobalSetup.Embeds_smoke_e025_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e025_png extends BitmapAsset {
}
}//package GlobalSetup
Section 497
//Embeds_smoke_e026_png (GlobalSetup.Embeds_smoke_e026_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e026_png extends BitmapAsset {
}
}//package GlobalSetup
Section 498
//Embeds_smoke_e027_png (GlobalSetup.Embeds_smoke_e027_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e027_png extends BitmapAsset {
}
}//package GlobalSetup
Section 499
//Embeds_smoke_e028_png (GlobalSetup.Embeds_smoke_e028_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e028_png extends BitmapAsset {
}
}//package GlobalSetup
Section 500
//Embeds_smoke_e029_png (GlobalSetup.Embeds_smoke_e029_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e029_png extends BitmapAsset {
}
}//package GlobalSetup
Section 501
//Embeds_smoke_e030_png (GlobalSetup.Embeds_smoke_e030_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e030_png extends BitmapAsset {
}
}//package GlobalSetup
Section 502
//Embeds_smoke_e031_png (GlobalSetup.Embeds_smoke_e031_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e031_png extends BitmapAsset {
}
}//package GlobalSetup
Section 503
//Embeds_smoke_e032_png (GlobalSetup.Embeds_smoke_e032_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_smoke_e032_png extends BitmapAsset {
}
}//package GlobalSetup
Section 504
//Embeds_target_arrow_png (GlobalSetup.Embeds_target_arrow_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_target_arrow_png extends BitmapAsset {
}
}//package GlobalSetup
Section 505
//Embeds_target_text_png (GlobalSetup.Embeds_target_text_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_target_text_png extends BitmapAsset {
}
}//package GlobalSetup
Section 506
//Embeds_wreak_png (GlobalSetup.Embeds_wreak_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_wreak_png extends BitmapAsset {
}
}//package GlobalSetup
Section 507
//Embeds_yoursite_png (GlobalSetup.Embeds_yoursite_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_yoursite_png extends BitmapAsset {
}
}//package GlobalSetup
Section 508
//Embeds_zep_part_1_png (GlobalSetup.Embeds_zep_part_1_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_zep_part_1_png extends BitmapAsset {
}
}//package GlobalSetup
Section 509
//Embeds_zep_part_2_png (GlobalSetup.Embeds_zep_part_2_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_zep_part_2_png extends BitmapAsset {
}
}//package GlobalSetup
Section 510
//Embeds_zeppelin_256_png (GlobalSetup.Embeds_zeppelin_256_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_zeppelin_256_png extends BitmapAsset {
}
}//package GlobalSetup
Section 511
//Embeds_zeppelin_png (GlobalSetup.Embeds_zeppelin_png)
package GlobalSetup {
import mx.core.*;
public class Embeds_zeppelin_png extends BitmapAsset {
}
}//package GlobalSetup
Section 512
//ZOrder (GlobalSetup.ZOrder)
package GlobalSetup {
import GameScene.*;
public class ZOrder {
public function SetupZOrder(_arg1:GameScene):void{
_arg1.addZOrder("");
_arg1.addZOrder("BehindObstacleBack");
_arg1.addZOrder("BehindGround");
_arg1.addZOrder("Ground");
_arg1.addZOrder("ObstacleBack");
_arg1.addZOrder("GroundFront");
_arg1.addZOrder("Player");
_arg1.addZOrder("AfterPlayer");
_arg1.addZOrder("ObstacleFront");
_arg1.addZOrder("Stars");
_arg1.addZOrder("Ace");
_arg1.addZOrder("BeforeTextLayer");
_arg1.addZOrder("TextLayer");
_arg1.addZOrder("AfterTextLayer");
_arg1.addZOrder("GUILayer");
}
}
}//package GlobalSetup
Section 513
//HighScore (HighScorePanel.HighScore)
package HighScorePanel {
import GameObject.*;
import Layout.*;
import Serialization.*;
import Tools.*;
import GlobalSetup.*;
public class HighScore {
var score:int;
var name:String;
var rank:int;
var me:Boolean;// = false
public static var justSubmittedScore:int = 0;
public static var myScores:Array;
public static var justSubmittedName:String = "";
public static var myNames:Array;
public function HighScore(_arg1:int, _arg2:String, _arg3:int, _arg4:Boolean=false){
rank = _arg1;
name = _arg2;
score = _arg3;
me = _arg4;
}
public function getObjects():Layout{
readMyValues();
var _local1:int;
var _local2:int;
while (_local2 < myNames.length) {
if (name == myNames[_local2]){
if (score == myScores[_local2]){
_local1 = 1;
};
};
_local2++;
};
if ((((name == justSubmittedName)) && ((score == justSubmittedScore)))){
_local1 = 2;
};
var _local3:Array = [getRankIcon(rank), txt(((rank + ". ") + name), 20, _local1), txt(HumanReadable.formatInteger(score), 20, _local1, 1)];
return (LayoutCustomPosition.Horiz(_local3, [0, 20, 287, 310]));
}
public function toString():String{
return (((((("Rank: " + rank) + ", ") + name) + ", ") + score));
}
public static function readMyValues():void{
if (!myNames){
myNames = StoreObject.retrieveArray("highScoreMyNames");
myScores = StoreObject.retrieveArray("highScoreMyScores");
if (myNames.length != myScores.length){
myNames = [];
myScores = [];
storeMyValues();
};
};
}
public static function getEmptyScoreLayout():Layout{
var _local1:GameObject;
_local1 = txt("I");
_local1.baseAlpha = 0;
var _local2:GameObject = txt("I");
_local2.baseAlpha = 0;
return (LayoutCustomPosition.Horiz([getRankIcon(999), _local1, _local2], [0, 20, 250, 310]));
}
public static function storeMyValues():void{
StoreObject.storeArray("highScoreMyNames", myNames);
StoreObject.storeArray("highScoreMyScores", myScores);
}
public static function txt(_arg1:String, _arg2:int=20, _arg3:int=0, _arg4:Number=0, _arg5:Number=0.5):GameObject{
var _local8:GameObject;
var _local6:GameObject = new GameObject(null, null, HighScorePanel.zOrder, 0, 0);
var _local7 = 10592701;
if (_arg3 > 0){
_local7 = 0xFF8000;
};
if (_arg3 == 2){
_local8 = txt(_arg1, _arg2, 1, _arg4, _arg5);
_local6.addChild(_local8);
_local8.additive = true;
_local8.helperFilter.pulse(0.5, 0, 0, false);
};
_local6.fontName = "Arial Rounded MT Bold";
_local6.setText(_arg1, _arg2, _local7);
_local6.baseHandleX = _arg4;
_local6.baseHandleY = _arg5;
return (_local6);
}
public static function addScoreAsMine(_arg1:String, _arg2:int):void{
readMyValues();
myNames.push(_arg1);
myScores.push(_arg2);
storeMyValues();
}
public static function createNotInTop():GameObject{
return (txt("NOT IN TOP 100", 36, 1, 0.5));
}
public static function getRankIcon(_arg1:int):GameObject{
var _local2:Class;
var _local4:GameObject;
var _local3:Number = 1;
if (_arg1 == 1){
_local2 = Embeds.medal_gold_png;
} else {
if (_arg1 == 2){
_local2 = Embeds.medal_silver_png;
} else {
if (_arg1 == 3){
_local2 = Embeds.medal_bronze_png;
} else {
_local2 = Embeds.medal_bronze_png;
_local3 = 0;
};
};
};
_local4 = new GameObject(null, _local2, HighScorePanel.zOrder, 0, 0);
_local4.baseAlpha = _local3;
_local4.baseHandleY = 0.28;
_local4.baseHandleX = 0.4;
return (_local4);
}
}
}//package HighScorePanel
Section 514
//HighScorePanel (HighScorePanel.HighScorePanel)
package HighScorePanel {
import GameObject.*;
import Layout.*;
import Scenes.*;
import Tools.*;
import GameConfig.*;
import GlobalSetup.*;
public class HighScorePanel extends HighScorePanelBase {
public var month:GameObject;
public var today:GameObject;
public var buttons:Array;
public var currentPages:Array;
public var maxPages:int;// = -1
public var preSetData:Array;
public var scoreDisplay:Array;
public var requestedTime:String;
public var requestedPage:int;// = 0
public var okHit:Boolean;// = false
public var highScoreRequest:SafeRequest;
public var scores:Array;
public var justSubmittedScore:int;// = 0
public var back:GameObject;
public var all:GameObject;
public var justSubmittedName:String;// = ""
public var pageButtons:Array;
public var next:GameObject;
public var loading:GameObject;
public static var zOrder:String = "TextLayer";
public static var offsetY:Number = 300;
public function HighScorePanel(){
currentPages = [0, 0, 0];
super(null, Embeds.highscore_panel_png, zOrder, 400, offsetY);
addOK((500 + 32));
today = MainMenu.addNormalStyledButton(gs, "Today", Embeds.highscore_today_png, Embeds.highscore_today_png, "", -999, true);
today.stripText();
month = MainMenu.addNormalStyledButton(gs, "Month", Embeds.highscore_month_png, Embeds.highscore_month_png, "", -999, true);
month.stripText();
all = MainMenu.addNormalStyledButton(gs, "All", Embeds.highscore_all_png, Embeds.highscore_all_png, "", -999, true);
all.stripText();
back = MainMenu.addNormalStyledButton(gs, "Back", Embeds.highscore_back_png, Embeds.highscore_back_png);
back.stripText();
next = MainMenu.addNormalStyledButton(gs, "Next", Embeds.highscore_next_png, Embeds.highscore_next_png);
next.stripText();
gs.horiz([back, next], 156, 400, 500);
gs.horiz([today, month, all], 8, 398, 205);
today.helperButton.setupRadioButtons([today, month, all]);
lockToThis(today);
lockToThis(month);
lockToThis(all);
lockToThis(back);
lockToThis(next);
addSlide(this);
setGlobal(true);
}
public function getData():String{
if (preSetData){
if (preSetData.length >= 3){
if (requestedTime == "today"){
return (preSetData[0]);
};
if (requestedTime == "month"){
return (preSetData[1]);
};
return (preSetData[2]);
};
};
if (highScoreRequest){
return (highScoreRequest.data);
};
return ("");
}
override public function _update():void{
var _local1:int;
if (Input.i.keyHit(13)){
ok._mHit(null);
};
if (pageButtons){
pageButtons[0].helperButton.updatePrevNext(back, next);
} else {
back.disableButton();
next.disableButton();
};
if (ticks == 1){
request("today", currentPages[0]);
};
if (today.mHit()){
request("today", currentPages[0]);
};
if (month.mHit()){
request("month", currentPages[1]);
};
if (all.mHit()){
request("all", currentPages[2]);
};
if (pageButtons){
_local1 = 0;
while (_local1 < pageButtons.length) {
if (pageButtons[_local1].mHit()){
request(requestedTime, _local1);
};
_local1++;
};
};
}
public function request(_arg1:String, _arg2:int):void{
var _local3:GameObject;
var _local4:Layout;
if ((((_arg1 == requestedTime)) && ((_arg2 == requestedPage)))){
return;
};
if (_arg1 != requestedTime){
if (pageButtons){
for each (_local3 in pageButtons) {
_local3.helperFilter.fadeOff(20);
};
pageButtons = null;
};
};
if (highScoreRequest){
highScoreRequest.cancel();
};
requestedTime = _arg1;
requestedPage = _arg2;
if (requestedTime == "today"){
currentPages[0] = _arg2;
} else {
if (requestedTime == "month"){
currentPages[1] = _arg2;
} else {
currentPages[2] = _arg2;
};
};
if (scoreDisplay){
for each (_local4 in scoreDisplay) {
for each (_local3 in _local4.getGameObjects()) {
_local3.helperFilter.fadeOff(20);
};
};
scoreDisplay = null;
};
if (preSetData){
done();
return;
};
if (_arg2 == -1){
_arg2 = 0;
};
highScoreRequest = new SafeRequest(((((((("http://www.rocksolidarcade.com/scores/" + GameConfig.shortName) + "/") + _arg1) + "/") + String(_arg2)) + "/") + Math.random()), done);
if (!loading){
loading = createLoadingSprite(400, 350);
};
}
public function done():void{
var _local4:Layout;
var _local5:Array;
var _local6:int;
var _local7:GameObjectHelperButton;
var _local8:GameObject;
var _local9:Array;
var _local10:Array;
var _local11:HighScore;
if (loading){
loading.helperFilter.fadeOff(20);
loading = null;
};
var _local1:int;
var _local2:String = getData();
if (_local2.indexOf("<p>")){
_local5 = _local2.split("<p>");
_local1 = int(_local5[0]);
if (_local1 > 10){
_local1 = 10;
};
if (_local1 < 1){
_local1 = 1;
};
_local2 = _local5[1];
};
if (!pageButtons){
pageButtons = new Array();
_local6 = 0;
while (_local6 < _local1) {
pageButtons[_local6] = MainMenu.addNormalStyledButton(gs, "", Embeds.highscore_page_png, Embeds.highscore_page_selected_png, ("page" + _local6), -999, false);
_local6++;
};
_local7 = pageButtons[0].helperButton;
_local7.setupRadioButtons(pageButtons, false);
if (requestedPage >= 0){
pageButtons[requestedPage].helperButton.mHit();
};
Layout.Horiz(pageButtons, 8, 400, 800);
for each (_local8 in pageButtons) {
lockToThis(_local8);
_local8.helperFilter.fadeIn(20);
_local8.baseAlpha = 0;
};
};
if (requestedPage == -1){
scoreDisplay = new Array();
_local8 = HighScore.createNotInTop();
scoreDisplay.push(Layout.Vert([_local8]));
} else {
_local9 = _local2.split(":::");
scoreDisplay = new Array();
HighScore.justSubmittedName = justSubmittedName;
HighScore.justSubmittedScore = justSubmittedScore;
_local6 = 0;
while (_local6 < (_local9.length - 1)) {
_local10 = _local9[_local6].split(",");
_local11 = new HighScore(int(_local10[0]), _local10[1], int(_local10[2]), ((_local10[3] == "True")) ? true : false);
_local4 = _local11.getObjects();
scoreDisplay.push(_local4);
_local6++;
};
_local6 = (_local9.length - 1);
while (_local6 < 10) {
scoreDisplay.push(HighScore.getEmptyScoreLayout());
_local6++;
};
};
Layout.Vert(scoreDisplay, -4, 400, 350);
var _local3:int;
for each (_local4 in scoreDisplay) {
_local3 = (_local3 + 10);
for each (_local8 in _local4.getGameObjects()) {
_local8.helperFilter.fadeIn(20, _local3);
lockToThis(_local8);
};
};
highScoreRequest = null;
}
}
}//package HighScorePanel
Section 515
//HighScorePanelBase (HighScorePanel.HighScorePanelBase)
package HighScorePanel {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Scenes.*;
import GlobalSetup.*;
public class HighScorePanelBase extends GameObject {
public var ok:GameObject;
public function HighScorePanelBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
helper.addBacking();
}
public function addOK(_arg1:Number, _arg2:String="OK", _arg3:Class=null):void{
if (!_arg3){
_arg3 = Embeds.highscore_ok_png;
};
ok = MainMenu.addNormalStyledButton(gs, _arg2, _arg3, _arg3);
ok.stripText();
ok.basex = 400;
ok.basey = _arg1;
lockToThis(ok);
}
public function lockToThis(_arg1:GameObject):void{
_arg1.setGlobal(true);
_arg1.basex = (_arg1.basex - 400);
_arg1.basey = (_arg1.basey - 300);
addChild(_arg1);
}
public function createLoadingSprite(_arg1:int, _arg2:int):GameObject{
var _local3:GameObject = new GameObject(null, Embeds.netloading_png, "TextLayer", _arg1, _arg2);
var _local4:GameObjectFilterRotate = new GameObjectFilterRotate();
_local3.addFilter(_local4);
_local3.helperFilter.fadeIn(20);
Bitmap(_local3.obj).smoothing = true;
lockToThis(_local3);
return (_local3);
}
public static function addSlide(_arg1:GameObject):void{
var _local2:GameObjectFilterSqrtInterpolateIn;
_arg1.basey = (_arg1.basey - 700);
_local2 = new GameObjectFilterSqrtInterpolateIn();
_local2.dy = 700;
_local2.FadeTime = 100;
_local2.useSquareSquare = true;
_arg1.addFilter(_local2);
}
}
}//package HighScorePanel
Section 516
//HighScoreSubmit (HighScorePanel.HighScoreSubmit)
package HighScorePanel {
import GameObject.*;
import flash.text.*;
import Serialization.*;
import Scenes.*;
import Tools.*;
import GameConfig.*;
import GlobalSetup.*;
public class HighScoreSubmit extends HighScorePanelBase {
public var submission:SafeRequest;
public var score:int;// = 10000
public var submitCompleted:Boolean;// = false
public var justSubmittedName:String;// = ""
public var email:GameObject;
public var color:int;// = 0
public var quitAction:Function;
public var defaultName:String;// = ""
public var skipped:Boolean;// = false
public var data:Array;
public var justSubmittedScore:int;// = 0
public var submitted:int;// = -1
public var skip:GameObject;
public function HighScoreSubmit(){
super(null, Embeds.gameoverscore_png, "TextLayer", 400, 300);
Input.i.keyHit(13);
}
public function getHash(_arg1:Array):String{
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:String;
var _local2:Array = [240, 0xFF, 127, 170];
for each (_local3 in _arg1) {
applyHash(_local3, _local2);
};
_local4 = "";
_local5 = 0;
while (_local5 < _local2.length) {
_local6 = _local2[_local5].toString(16).toUpperCase();
while (_local6.length < 2) {
_local6 = ("0" + _local6);
};
_local4 = (_local4 + _local6);
_local5++;
};
return (_local4);
}
public function submit(_arg1:String, _arg2:int):void{
if (submission){
return;
};
trace("submitting");
justSubmittedName = _arg1;
justSubmittedScore = _arg2;
HighScore.addScoreAsMine(_arg1, _arg2);
var _local3:String = getHash([GameConfig.shortName, _arg1, String(_arg2)]);
if ((_arg2 % 3571) != -(color)){
_local3 = "haha";
};
submission = new SafeRequest((((((((("http://www.rocksolidarcade.com/addscore/" + GameConfig.shortName) + "/") + _arg1) + "/") + _arg2) + "/") + _local3) + "/"), submitDone);
}
override public function _update():void{
var _local1:String;
if (email.mHit()){
TextField(email.obj).text = "";
};
if (ticks > 100){
if ((((submitted == -1)) && (!(skipped)))){
if (((ok.mHit()) || (Input.i.keyHit(13)))){
if (TextField(email.obj).text == ""){
doSkip();
} else {
_local1 = TextField(email.obj).text;
if (_local1 == "Enter Name"){
_local1 = "Guest";
};
submit(_local1, score);
submitted = 0;
ok.helperFilter.fadeOff(20);
createLoadingSprite(400, 417);
StoreObject.storeValue("defaultHighscoreName", TextField(email.obj).text);
};
};
} else {
submitted++;
};
};
if (!submitCompleted){
if (submitted == 750){
submission.cancel();
submission.data = "notonboard";
submitDone();
};
};
if (skip.mHit()){
doSkip();
};
}
public function doSkip():void{
if (submitted != -1){
return;
};
if (!skipped){
quitAction();
};
skipped = true;
}
public function applyHash(_arg1:String, _arg2:Array):void{
var _local4:int;
var _local3:int;
while (_local3 < _arg1.length) {
_local4 = 0;
while (_local4 < _arg2.length) {
_arg2[_local4] = (_arg2[_local4] ^ int(_arg1.charCodeAt(_local3)));
_local4++;
};
_local3++;
};
}
override public function _init():void{
defaultName = String(StoreObject.retrieveValue("defaultHighscoreName"));
if ((((defaultName == "null")) || ((defaultName == null)))){
defaultName = "";
};
if (defaultName == ""){
defaultName = "Enter Name";
};
addOK(417, "Submit", Embeds.button_submit_png);
addSlide(this);
email = new GameObject(gs, null, "TextLayer", 400, 349);
email.fontName = "Arial Rounded MT Bold";
email.setText(defaultName, 18, 0x444444);
TextField(email.obj).autoSize = TextFieldAutoSize.NONE;
TextField(email.obj).restrict = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
TextField(email.obj).maxChars = 10;
email.obj.width = 250;
email.obj.height = 24;
email.obj.filters = [];
email.basex = (400 - (250 / 2));
email.baseHandleX = 0;
email.baseHandleY = 0;
email.setupTextInput();
lockToThis(email);
setGlobal(true);
txt("YOUR FINAL SCORE WAS: ", 400, 253, 20);
txt(HumanReadable.formatInteger(score), 400, 293, 36, 0xFF8000);
skip = MainMenu.addNormalStyledButton(gs, "", Embeds.highscore_skip_png, Embeds.highscore_skip_png);
skip.basex = 400;
skip.basey = 468;
lockToThis(skip);
}
public function txt(_arg1:String, _arg2:int, _arg3:int, _arg4:int=-1, _arg5:int=0x818181):GameObject{
var _local6:GameObject = new GameObject(null, null, "TextLayer", _arg2, _arg3);
_local6.fontName = "Arial Rounded MT Bold";
_local6.setText(_arg1, _arg4, _arg5);
lockToThis(_local6);
return (_local6);
}
public function createTable():Array{
var _local1:HighScorePanel = new HighScorePanel();
_local1.justSubmittedName = justSubmittedName;
_local1.justSubmittedScore = justSubmittedScore;
_local1.currentPages = new Array();
var _local2:int;
while (_local2 < 3) {
if (data[_local2] == "notonboard"){
_local1.currentPages[_local2] = -1;
} else {
_local1.currentPages[_local2] = int(data[_local2]);
};
_local2++;
};
return ([_local1, _local1.ok]);
}
public function submitDone():void{
submitCompleted = true;
data = submission.data.split("<p>");
if (submission.data == "toolow"){
data = ["notonboard", "notonboard", "notonboard"];
} else {
if (submission.data.indexOf("<p>") == -1){
data = ["notonboard", "notonboard", "notonboard"];
};
};
gs["layer"].push(createTable, true);
}
}
}//package HighScorePanel
Section 517
//LayerFilter (Layout.LayerFilter)
package Layout {
import flash.display.*;
import GameObject.*;
public class LayerFilter {
public static function applyAlphaInOut(_arg1:Object, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
var _local7:GameObject;
var _local8:GameObjectFilterFadeInOut;
var _local6:Array = getObjectsArray(_arg1);
for each (_local7 in _local6) {
_local8 = new GameObjectFilterFadeInOut();
_local8.FadeIn = 1;
_local8.FadeInDelay = _arg2;
_local8.FadeInDuration = _arg3;
_local8.FadeOut = 1;
_local8.FadeOutTime = _arg4;
_local8.FadeOutDuration = _arg5;
_local7.addFilter(_local8);
};
}
public static function applyAlphaInStep(_arg1:Object, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int):void{
var _local7:int;
var _local8:Layout = Layout(_arg1);
for each (_arg1 in _local8.children) {
applyAlphaInOut(_arg1, (_arg2 + (_arg6 * _local7)), _arg3, _arg4, _arg5);
_local7++;
};
}
public static function reverse(_arg1:Object):void{
var _local3:GameObject;
var _local4:GameObjectFilter;
var _local2:Array = getObjectsArray(_arg1);
for each (_local3 in _local2) {
for each (_local4 in _local3.filters) {
_local4.reverse();
_local4.removeWhenDone();
};
};
}
public static function bakeToObject(_arg1:GameObject, _arg2:Object):void{
var _local4:GameObject;
var _local3:Array = getObjectsArray(_arg2);
for each (_local4 in _local3) {
_arg1.drawToPixmap(_local4.obj, _local4.obj.x, _local4.obj.y, _local4.baseRotation, _local4.baseScaleX, _local4.baseScaleY, BlendMode.NORMAL);
};
}
public static function getObjectsArray(_arg1:Object):Array{
var _local2:Array;
var _local3:Object;
var _local4:Array;
var _local5:Object;
if ((_arg1 is Array)){
_local2 = new Array();
for each (_local3 in _arg1) {
_local4 = getObjectsArray(_local3);
for each (_local5 in _local4) {
_local2.push(_local5);
};
};
};
if ((_arg1 is Layout)){
_local2 = Layout(_arg1).getGameObjects();
};
if ((_arg1 is GameObject)){
_local2 = [_arg1];
};
return (_local2);
}
public static function setLayerOrigin(_arg1:Object, _arg2:Number, _arg3:Number):void{
var _local5:GameObject;
var _local6:Boolean;
var _local7:GameObjectFilter;
var _local8:GameObjectFilterAddOrigin;
var _local4:Array = getObjectsArray(_arg1);
for each (_local5 in _local4) {
_local6 = false;
for each (_local7 in _local5.filters) {
if ((_local7 is GameObjectFilterAddOrigin)){
_local6 = true;
_local8 = GameObjectFilterAddOrigin(_local7);
_local8.dx = _arg2;
_local8.dy = _arg3;
};
};
if (!_local6){
_local8 = new GameObjectFilterAddOrigin();
_local8.dx = _arg2;
_local8.dy = _arg3;
_local5.addFilter(_local8);
};
};
}
public static function applySlideIn(_arg1:Object, _arg2:int=0, _arg3:int=800, _arg4:int=0, _arg5:Boolean=false, _arg6:int=80):void{
var _local9:GameObject;
var _local10:GameObjectFilterSqrtInterpolateIn;
var _local7:Array = getObjectsArray(_arg1);
var _local8 = 1;
for each (_local9 in _local7) {
_local10 = new GameObjectFilterSqrtInterpolateIn();
if (_arg2 != 0){
_local8 = _arg2;
};
_local10.dx = (_local8 * _arg3);
_local10.dy = _arg4;
_local10.FadeTime = _arg6;
_local10.useAlpha = _arg5;
_local9.addFilter(_local10);
_local8 = (_local8 * -1);
};
}
public static function applySqrtSlide(_arg1:Object, _arg2:int=0, _arg3:int=0, _arg4:int=80, _arg5:Boolean=false):void{
var _local7:GameObject;
var _local8:GameObjectFilterSqrtInterpolateIn;
var _local6:Array = getObjectsArray(_arg1);
for each (_local7 in _local6) {
_local8 = new GameObjectFilterSqrtInterpolateIn();
_local8.dx = _arg2;
_local8.dy = _arg3;
_local8.FadeTime = _arg4;
_local8.killWhenDone = _arg5;
_local8.useSquareSquare = true;
_local7.addFilter(_local8);
};
}
public static function applyDampenIn(_arg1:Object, _arg2:int=800, _arg3:int=0, _arg4:int=5):void{
var _local7:GameObject;
var _local8:GameObjectFilterDampenInterpolateIn;
var _local5:Array = getObjectsArray(_arg1);
var _local6:int;
for each (_local7 in _local5) {
_local8 = new GameObjectFilterDampenInterpolateIn();
_local8.dx = _arg2;
_local8.dy = _arg3;
_local8.FadeTime = 200;
_local8.Delay = _local6;
_local6 = (_local6 + _arg4);
_local7.addFilter(_local8);
};
}
public static function setAlpha(_arg1:Object, _arg2:Number):void{
var _local4:GameObject;
var _local3:Array = getObjectsArray(_arg1);
for each (_local4 in _local3) {
_local4.baseAlpha = _arg2;
};
}
public static function removeAll(_arg1:Object):void{
var _local3:GameObject;
var _local2:Array = getObjectsArray(_arg1);
for each (_local3 in _local2) {
_local3.remove();
};
}
}
}//package Layout
Section 518
//Layout (Layout.Layout)
package Layout {
import GameObject.*;
public class Layout {
public var y:Number;// = 0
public var spacing:Number;// = 0
public var dir:int;// = 0
public var freePlacement:Boolean;// = false
public var leaf:GameObject;
public var freeX:Number;// = 0
public var freeY:Number;// = 0
public var globalx:Number;// = 0
public var globaly:Number;// = 0
public var x:Number;// = 0
public var children:Array;
public function getGameObjects():Array{
var _local1:Array;
var _local2:Layout;
var _local3:GameObject;
if (leaf){
return ([leaf]);
};
_local1 = new Array();
for each (_local2 in children) {
for each (_local3 in _local2.getGameObjects()) {
_local1.push(_local3);
};
};
return (_local1);
}
public function width():Number{
var _local2:Layout;
if (leaf){
return (leaf.baseWidth);
};
var _local1:Number = 0;
if (dir == 0){
_local1 = -(spacing);
for each (_local2 in children) {
if (!_local2.freePlacement){
_local1 = (_local1 + (_local2.width() + spacing));
};
};
} else {
for each (_local2 in children) {
if (!_local2.freePlacement){
_local1 = Math.max(_local1, (_local2.width() + spacing));
};
};
};
return (_local1);
}
public function height():Number{
var _local2:Layout;
if (leaf){
return (leaf.baseHeight);
};
var _local1:Number = 0;
if (dir == 1){
_local1 = -(spacing);
for each (_local2 in children) {
if (!_local2.freePlacement){
_local1 = (_local1 + (_local2.height() + spacing));
};
};
} else {
for each (_local2 in children) {
if (!_local2.freePlacement){
_local1 = Math.max(_local1, (_local2.height() + spacing));
};
};
};
return (_local1);
}
public function layout(_arg1:Number=0, _arg2:Number=0):void{
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (leaf){
leaf.basex = _arg1;
leaf.basey = _arg2;
return;
};
if (dir == 0){
_local4 = 0;
_local5 = width();
_local3 = 0;
while (_local3 < children.length) {
children[_local3].x = ((_local4 - (_local5 / 2)) + (children[_local3].width() / 2));
_local4 = (_local4 + (children[_local3].width() + spacing));
_local3++;
};
} else {
_local6 = 0;
_local7 = height();
_local3 = 0;
while (_local3 < children.length) {
children[_local3].y = ((_local6 - (_local7 / 2)) + (children[_local3].height() / 2));
_local6 = (_local6 + (children[_local3].height() + spacing));
_local3++;
};
};
_local3 = 0;
while (_local3 < children.length) {
if (children[_local3].freePlacement){
children[_local3].x = children[_local3].freeX;
children[_local3].y = children[_local3].freeY;
};
children[_local3].layout((_arg1 + children[_local3].x), (_arg2 + children[_local3].y));
_local3++;
};
}
public static function createLeaves(_arg1:Array):Array{
var _local4:Object;
var _local5:Layout;
var _local2:Array = new Array();
var _local3:int;
while (_local3 < _arg1.length) {
_local4 = _arg1[_local3];
if ((_local4 is Array)){
_local2.push(createLeaves(Array(_local4)));
} else {
if ((_local4 is GameObject)){
_local5 = new (Layout);
_local5.leaf = GameObject(_local4);
_local2.push(_local5);
} else {
_local2.push(_local4);
};
};
_local3++;
};
return (_local2);
}
public static function Vert(_arg1:Array, _arg2:int=8, _arg3:Number=0, _arg4:Number=0):Layout{
_arg1 = createLeaves(_arg1);
var _local5:Layout = new (Layout);
_local5.dir = 1;
_local5.spacing = _arg2;
_local5.children = _arg1;
_local5.layout(_arg3, _arg4);
return (_local5);
}
public static function Horiz(_arg1:Array, _arg2:Number=8, _arg3:Number=0, _arg4:Number=0):Layout{
_arg1 = createLeaves(_arg1);
var _local5:Layout = new (Layout);
_local5.dir = 0;
_local5.spacing = _arg2;
_local5.children = _arg1;
_local5.layout(_arg3, _arg4);
return (_local5);
}
}
}//package Layout
Section 519
//LayoutCustomPosition (Layout.LayoutCustomPosition)
package Layout {
public class LayoutCustomPosition extends Layout {
public var positions:Array;
override public function width():Number{
return ((positions[(positions.length - 1)] - positions[0]));
}
override public function layout(_arg1:Number=0, _arg2:Number=0):void{
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (leaf){
leaf.basex = _arg1;
leaf.basey = _arg2;
return;
};
if (dir == 0){
_local4 = 0;
_local5 = width();
_local3 = 0;
while (_local3 < children.length) {
children[_local3].x = (positions[_local3] - (width() / 2));
_local3++;
};
} else {
_local6 = 0;
_local7 = height();
_local3 = 0;
while (_local3 < children.length) {
children[_local3].y = ((_local6 - (_local7 / 2)) + (children[_local3].height() / 2));
_local6 = (_local6 + (children[_local3].height() + spacing));
_local3++;
};
};
_local3 = 0;
while (_local3 < children.length) {
children[_local3].layout((_arg1 + children[_local3].x), (_arg2 + children[_local3].y));
_local3++;
};
}
public function LayoutAroundZero(){
}
public static function Horiz(_arg1:Array, _arg2:Array, _arg3:Number=0, _arg4:Number=0):Layout{
_arg1 = createLeaves(_arg1);
var _local5:LayoutCustomPosition = new (LayoutCustomPosition);
_local5.positions = _arg2;
_local5.children = _arg1;
_local5.layout(_arg3, _arg4);
return (_local5);
}
}
}//package Layout
Section 520
//DefaultSet (Levels.DefaultSet)
package Levels {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Objects.*;
public class DefaultSet {
public var escape:String;
public var convoy:String;
public var oneBomb:String;
public var balloon:String;
public var protectBase:String;
public var targetCloseToPlayer:String;
public var destroyBuilding:String;
public var assassinateAce:String;
public var gunsJam:String;
public var DormantEnemies:String;
public var defendBombers:String;
public var flipEnemies:String;
public static var levels:int = 26;
function createLevel10(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 586.1875, 617.5);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 602.1875, 694.5);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 799.1875, 697.5);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 12.625, 498.375);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1206, 699);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new BombTargetHouse(_arg2, 423, 697);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new BombTargetHouse(_arg2, 907, 695);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1031, 694);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 696, 401);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 278.25, 486.1875);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 783.25, 326.1875);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 597, 578);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 597, 594);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 260, 702);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 260, 716);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 704, 713);
_arg1.push(_local3);
}
function createLevel11(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, -99, 417);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 1236.3125, 442.875);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 1757.3125, 354.875);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 577.3125, 363.875);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 2184.0625, 466.25);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1128, 340);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 485, 449);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 1167.5625, 265.375);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 743.5, 620.8125);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new ConvoyCar(_arg2, 490.5, 680.8125);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 1375.1875, 682.25);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 910.625, 680.1875);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 1254.375, 682.9375);
_arg1.push(_local3);
balloon = "true";
}
function createLevel12(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new EnemyAce(_arg2, 1068, 232);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 227.9375, 432.1875);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 738, 608);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new AAGun(_arg2, 1095.875, 638.875);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1096.875, 652.875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1269.75, 485.9375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 393.75, 500.9375);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 1135.75, 272.9375);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 677.4375, 664.375);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 481, 653.875);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 480, 665.875);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1332.625, 652.75);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1333.625, 666.75);
_arg1.push(_local3);
assassinateAce = "true";
}
function createLevel13(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, 1082, 484);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 798, 790);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 883, 790);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 983, 790);
_arg1.push(_local3);
_local3 = new ConvoyTruck(_arg2, 1154, 792);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 706, 789);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 1064, 791);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 1248, 793);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 1108.25, 696.1875);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 1342.5625, 791.8125);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 1437.5625, 790.8125);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 1532.5625, 792.8125);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 1363.5, 357.125);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1304, 443.625);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 525, 249.625);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1468.1875, 648.625);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1469.1875, 663.625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1581.1875, 512.625);
_arg1.push(_local3);
convoy = "true";
}
function createLevel14(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 759, 733);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new BombTargetHouse(_arg2, 1195, 774);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1426.9375, 772.75);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1661.9375, 777.75);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new BombTargetHouse(_arg2, 813.9375, 782.75);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new PlayerPlane(_arg2, -59.6875, 440.75);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1531.9375, 784.5625);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1796.9375, 783.5625);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1307.9375, 785.5625);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1038.9375, 784.5625);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 555.8125, 771.875);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1038.625, 797.625);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1307.625, 799.625);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1531.625, 798.625);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1797.1875, 797.25);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 599.0625, 517.75);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 1229.9375, 384);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1453.9375, 505);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 574.9375, 566);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 2122.1875, 498.1875);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 2121.1875, 549.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 2204.1875, 450.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 2281.1875, 401.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 2202.1875, 605.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 2280.1875, 651.1875);
_arg1.push(_local3);
}
function createLevel15(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, 230, 448);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1206, 520);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1188, 417);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1074, 436);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1123, 576);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 978, 518);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 968, 369);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1056, 328);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 765, 683);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[2];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 2;
_local3 = new levelcloud(_arg2, 776, 468);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 343, 305);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 1083, 246);
_arg1.push(_local3);
gunsJam = "true";
}
function createLevel16(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 858, 734);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 832, 813);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[3];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 3;
_local3 = new BombTargetHouse(_arg2, 697, 813);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[3];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 3;
_local3 = new EnglishBomber(_arg2, -524.4375, 485.5);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -632.4375, 425.5);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -824.4375, 513.5);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -1521.875, 513.6875);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -1673.875, 428.6875);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -1344.875, 445.6875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -926.8125, 404.5625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -1161.8125, 532.5625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -1479.8125, 384.5625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -1664.8125, 550.5625);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 866, 509);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 990, 825);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 0x0200, 824);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 989, 835);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 511.3125, 836.25);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1155.3125, 816.25);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[4];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 4;
_local3 = new levelcloud(_arg2, 1242, 547);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 818, 365);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 415, 544);
_arg1.push(_local3);
protectBase = "true";
}
function createLevel17(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new AAGun(_arg2, 324, 790);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 511, 794);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1861.875, 788.9375);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 2172.625, 787.375);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 1109.75, 279.4375);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 280.5, 364.8125);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, -109.5, 337.8125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 931.875, 289.75);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 2609.875, 415.75);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 2315.875, 300.75);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1285.875, 395.75);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1742.875, 445.75);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 1244, 698.6875);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 699, 796.6875);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 910, 640.6875);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1390, 647.6875);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1598, 652.6875);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 323.125, 803.4375);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 511.125, 807.4375);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 699.125, 809.4375);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 910.9375, 655.6875);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1599.5625, 667.5);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1389.5625, 661.5);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1862.125, 803.3125);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 2172.125, 802.3125);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1538.625, 514.1875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 919.8125, 313.375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 403.8125, 487.375);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 1116.3125, 797.625);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1519.125, 476.25);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 2392.625, 494.3125);
_arg1.push(_local3);
escape = "true";
}
function createLevel18(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 717, 708);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new PlayerPlane(_arg2, 813, 344);
_arg1.push(_local3);
_local3 = new GermanBomber(_arg2, 971.3125, 421.875);
_arg1.push(_local3);
_local3 = new GermanBomber(_arg2, 1155.3125, 512.875);
_arg1.push(_local3);
_local3 = new GermanBomber(_arg2, 1291.3125, 398.875);
_arg1.push(_local3);
_local3 = new GermanBomber(_arg2, 1515.3125, 476.875);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 989.5625, 769.5625);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 1398.5625, 767.5625);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1311.5625, 383.25);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 1788, 768.375);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 1891, 768.375);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 2760.3125, 542.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 2807.3125, 493.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 2805.3125, 599.1875);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 5675.6875, 566.1875);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 5676.6875, 514.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 5719.6875, 477.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 5713.6875, 617.1875);
_arg1.push(_local3);
defendBombers = "true";
}
public function init(_arg1:int, _arg2:GameScene):Array{
var _local4:GameObject;
var _local3:Array = new Array();
if (_arg1 == 0){
createLevel0(_local3, _arg2);
};
if (_arg1 == 1){
createLevel1(_local3, _arg2);
};
if (_arg1 == 2){
createLevel2(_local3, _arg2);
};
if (_arg1 == 3){
createLevel3(_local3, _arg2);
};
if (_arg1 == 4){
createLevel4(_local3, _arg2);
};
if (_arg1 == 5){
createLevel5(_local3, _arg2);
};
if (_arg1 == 6){
createLevel6(_local3, _arg2);
};
if (_arg1 == 7){
createLevel7(_local3, _arg2);
};
if (_arg1 == 8){
createLevel8(_local3, _arg2);
};
if (_arg1 == 9){
createLevel9(_local3, _arg2);
};
if (_arg1 == 10){
createLevel10(_local3, _arg2);
};
if (_arg1 == 11){
createLevel11(_local3, _arg2);
};
if (_arg1 == 12){
createLevel12(_local3, _arg2);
};
if (_arg1 == 13){
createLevel13(_local3, _arg2);
};
if (_arg1 == 14){
createLevel14(_local3, _arg2);
};
if (_arg1 == 15){
createLevel15(_local3, _arg2);
};
if (_arg1 == 16){
createLevel16(_local3, _arg2);
};
if (_arg1 == 17){
createLevel17(_local3, _arg2);
};
if (_arg1 == 18){
createLevel18(_local3, _arg2);
};
if (_arg1 == 19){
createLevel19(_local3, _arg2);
};
if (_arg1 == 20){
createLevel20(_local3, _arg2);
};
if (_arg1 == 21){
createLevel21(_local3, _arg2);
};
if (_arg1 == 22){
createLevel22(_local3, _arg2);
};
if (_arg1 == 23){
createLevel23(_local3, _arg2);
};
if (_arg1 == 24){
createLevel24(_local3, _arg2);
};
if (_arg1 == 25){
createLevel25(_local3, _arg2);
};
return (_local3);
}
function createLevel19(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 681, 741);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1074, 822);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 117, 575);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 387, 820.875);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 743, 824.875);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new BombTargetHouse(_arg2, 1317, 826.875);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new GoodPlane(_arg2, 1125, 457.875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1039, 493.875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1175, 643.875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1039, 587.875);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 911, 535.875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 737.75, 492.875);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 469.75, 433.875);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1533.4375, 827.125);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new BombTargetHouse(_arg2, 1785.875, 822.3125);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 246.8125, 821.3125);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 1287.8125, 604.4375);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 1510.8125, 658.4375);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 732.9375, 610.4375);
_arg1.push(_local3);
oneBomb = "true";
}
function createLevel20(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 775, 681);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1013.375, 406.9375);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1287.375, 331.9375);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1349.375, 441.9375);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1539.4375, 355.875);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1600.4375, 474.875);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 409.5625, 301.4375);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1365.125, 299.9375);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1142.125, 472.9375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1179.1875, 450.3125);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 453.1875, 415.3125);
_arg1.push(_local3);
DormantEnemies = "true";
gunsJam = "true";
flipEnemies = "true";
}
function createLevel21(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 910, 754);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[2];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 2;
_local3 = new PlayerPlane(_arg2, 732, 521);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, 682, 476);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, 680, 567);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1350.75, 578.4375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1316.75, 539.4375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1317.75, 445.4375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1356.75, 411.4375);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1274.75, 494.4375);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 3468.9375, 504.3125);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 3472.9375, 466.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 3542.9375, 542.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 3600.9375, 582.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 3535.9375, 415.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 3583.9375, 370.3125);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, -2866.375, 350);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, -2806.375, 412);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, -2808.375, 485);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, -2868.375, 548);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 451.5625, 443.3125);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1324.5625, 482.3125);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 818.5625, 436.3125);
_arg1.push(_local3);
targetCloseToPlayer = "true";
}
function createLevel23(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 593, 696);
_arg1.push(_local3);
_local3 = new Zeppelin(_arg2, 902, 353);
_arg1.push(_local3);
_local3 = new Gunner(_arg2, 1298.3125, 282.875);
_arg1.push(_local3);
_local3 = new ZepPart1(_arg2, 674.875, 428.375);
_arg1.push(_local3);
_local3 = new ZepPart1(_arg2, 1246.875, 428.375);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 632.875, 780.375);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new BombTargetHouse(_arg2, 853.875, 776.375);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, -459.8125, 485.3125);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 249.1875, 788.3125);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 720.1875, 649.3125);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1044.125, 786.75);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1245.125, 786.75);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 249.375, 800.25);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 719.375, 661.25);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1043.375, 798.25);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1244.375, 798.25);
_arg1.push(_local3);
}
function createLevel24(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 633, 813);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new BombTargetHouse(_arg2, 648, 859);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[3];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 3;
_local3 = new BombTargetHouse(_arg2, 817, 860);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[4];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 4;
_local3 = new BombTargetHouse(_arg2, 992, 859);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[4];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 4;
_local3 = new EnglishBomber(_arg2, -247.5, 570.25);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -550.5, 458.25);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -902.5, 557.25);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -54.5, 465.25);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -1551.375, 540.3125);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -1848.375, 457.3125);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, -2004.375, 534.3125);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, -1802.375, 545.3125);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, -1550.375, 436.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -1149.6875, 478.625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -538.6875, 569.625);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1281.8125, 856.5);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[3];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 3;
_local3 = new BombTargetHouse(_arg2, 1413.8125, 855.5);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[3];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 3;
_local3 = new BombTargetHouse(_arg2, 1696.8125, 860.5);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = BombTargetHouse(_local3).images[4];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 4;
_local3 = new AAGun(_arg2, 1139.8125, 872.5);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1536.8125, 868.5);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 530.8125, 870.5);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1849.25, 869.4375);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1139.375, 881.1875);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1536.375, 876.1875);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1849.375, 879.1875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 418.9375, 538.25);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 986.9375, 390.25);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 1070, 531);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -2426.0625, 450.25);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -2672.0625, 540.25);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, -2869.0625, 422.25);
_arg1.push(_local3);
protectBase = "true";
}
function createLevel25(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 954, 759);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[2];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 2;
destroyBuilding = "true";
}
function createLevel22(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 1003, 0x0300);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 758, 529);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1301, 502);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1364, 558);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1362, 449);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1442.4375, 398.25);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1446.4375, 610.25);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1244.75, 573.3125);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 809.75, 381.3125);
_arg1.push(_local3);
assassinateAce = "true";
}
function createLevel0(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, 459, 315);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 494.625, 259.0625);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1414.625, 356.0625);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 784.8125, 228.1875);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1109.125, 189.625);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 811.375, 136.5625);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 1768.125, 183.875);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 2707.25, 91.5);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 933.625, 561.625);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new GoodPlane(_arg2, 1194, 455.1875);
_arg1.push(_local3);
}
function createLevel1(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, 31, 570);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 385.875, 510.1875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 738.875, 654.1875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1345.875, 599.1875);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 812, 474);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1570.5, 554.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1371.5, 380.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1078.5, 375.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 862.5, 544.3125);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 1118.3125, 707.5625);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 855.5, 898.375);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[2];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 2;
balloon = "true";
}
function createLevel3(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, 311.3125, 839.4375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1156.6875, 807.0625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1156.6875, 904.0625);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 735.6875, 1143.3125);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[2];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 2;
_local3 = new levelcloud(_arg2, 461.1875, 572.9375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 616.1875, 904.9375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 272.875, 620.0625);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1137.25, 744.5);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1281.25, 859.5);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1085.25, 969.5);
_arg1.push(_local3);
DormantEnemies = "true";
}
function createLevel4(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, 592.0625, 554.3125);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1329.875, 623.5);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1263.875, 564.5);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1258.875, 486.5);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1333.875, 430.5);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1407.875, 397.5);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1417.875, 658.5);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, 516.875, 490.5);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, 517.875, 616.5);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 974.8125, 431.5);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 946, 812.5);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new levelcloud(_arg2, 1222.375, 403.1875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 489.375, 436.1875);
_arg1.push(_local3);
}
function createLevel5(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new EnemyAce(_arg2, 1444.0625, 851.5);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 464.0625, 801.5);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1190.375, 1045.875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 503.375, 725.875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1002.375, 958.875);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1171.8125, 754.75);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 855.4375, 751.125);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 1576.125, 945.1875);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 474.125, 942.1875);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 840.875, 1166.625);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 504.875, 1261.625);
_arg1.push(_local3);
_local3 = new ConvoyAA(_arg2, 727.875, 1262.625);
_arg1.push(_local3);
}
function createLevel7(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, 382, 928.4375);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1196, 986.4375);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1090, 699.4375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1142.0625, 670.5625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1200.0625, 636.5625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1138.0625, 772.5625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1142.0625, 853.5625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1289.0625, 1028.5625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1366.0625, 1068.5625);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, 355.0625, 855.5625);
_arg1.push(_local3);
_local3 = new EnemyPlane(_arg2, 357.0625, 995.5625);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 829.5625, 1175.6875);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[1];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 1;
_local3 = new Cloud(_arg2, 809, 829.6875);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 533.9375, 530.9375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1255.9375, 727.9375);
_arg1.push(_local3);
}
function createLevel2(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new PlayerPlane(_arg2, 38, 490);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 619.0625, 825.125);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 740.25, 769.9375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 319, 355.625);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1129, 531.625);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 740.5, 787.0625);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 878.125, 401);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 887.125, 567);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 715.6875, 442.6875);
_arg1.push(_local3);
_local3 = new Balloon(_arg2, 571.25, 594.25);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 976.875, 776.625);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 977.875, 792.625);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 404.625, 919.875);
_arg1.push(_local3);
}
function createLevel6(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 839.9375, 1181.0625);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 985.4375, 1124.875);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1193.4375, 1132.875);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 833.4375, 1144.875);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 284.875, 978.8125);
_arg1.push(_local3);
_local3 = new EnemyAce(_arg2, 1260.875, 706.8125);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 985.8125, 1141.375);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 833.8125, 1161.375);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1193.8125, 1149.375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1053.9375, 981.375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 983.9375, 1030.375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1203.9375, 640.375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1140.3125, 874);
_arg1.push(_local3);
_local3 = new Cloud(_arg2, 895.3125, 757);
_arg1.push(_local3);
_local3 = new BombTargetHouse(_arg2, 1095.5, 1260.9375);
_arg1.push(_local3);
_local3 = new ConvoyCar(_arg2, 476.5, 1279.9375);
_arg1.push(_local3);
}
function createLevel8(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new EnemyAce(_arg2, 757.625, 838.0625);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, 275.625, 914.0625);
_arg1.push(_local3);
_local3 = new Ground(_arg2, 1003.0625, 1105.875);
_arg1.push(_local3);
Bitmap(_local3.obj).bitmapData = Ground(_local3).images[2];
_local3.baseWidth = _local3.obj.width;
_local3.baseHeight = _local3.obj.height;
_local3.animFrame = 2;
_local3 = new GoodPlane(_arg2, 1767.8125, 869.4375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1381.8125, 979.4375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1321.8125, 721.4375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 1373.9375, 797.375);
_arg1.push(_local3);
_local3 = new levelcloud(_arg2, 562.9375, 546.375);
_arg1.push(_local3);
_local3 = new GoodPlane(_arg2, 1084.625, 840.0625);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1420.5, 856.875);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1172.5, 942.875);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 867.5, 889.875);
_arg1.push(_local3);
_local3 = new EnglishBomber(_arg2, 1138.5, 777.875);
_arg1.push(_local3);
DormantEnemies = "true";
}
function createLevel9(_arg1:Array, _arg2:GameScene):void{
var _local3:GameObject;
_local3 = new Ground(_arg2, 397.8125, 747.9375);
_arg1.push(_local3);
_local3 = new Zeppelin(_arg2, 377.3125, 466.5625);
_arg1.push(_local3);
_local3 = new PlayerPlane(_arg2, -923.6875, 678.5625);
_arg1.push(_local3);
_local3 = new Gunner(_arg2, 780.1875, 394.9375);
_arg1.push(_local3);
_local3 = new ZepPart1(_arg2, 150.1875, 542.9375);
_arg1.push(_local3);
_local3 = new ZepPart1(_arg2, 722.0625, 543.375);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 135.0625, 841.5);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 716.0625, 840.5);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 135.0625, 851.5);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 716.0625, 850.5);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, -395.3125, 841.125);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, -395.3125, 850.125);
_arg1.push(_local3);
_local3 = new AAGun(_arg2, 1160.625, 841.75);
_arg1.push(_local3);
_local3 = new Scenery3(_arg2, 1160.625, 850.75);
_arg1.push(_local3);
}
public function getClasses(_arg1:int):Array{
var _local2:Array = new Array();
if (_arg1 == 0){
_local2.push(PlayerPlane);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(GoodPlane);
_local2.push(Cloud);
_local2.push(Cloud);
_local2.push(Cloud);
_local2.push(Ground);
_local2.push(GoodPlane);
};
if (_arg1 == 1){
_local2.push(PlayerPlane);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(Cloud);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(Balloon);
_local2.push(Ground);
};
if (_arg1 == 2){
_local2.push(PlayerPlane);
_local2.push(Ground);
_local2.push(AAGun);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(Scenery3);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(Cloud);
_local2.push(Balloon);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(ConvoyCar);
};
if (_arg1 == 3){
_local2.push(PlayerPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(Ground);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
};
if (_arg1 == 4){
_local2.push(PlayerPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(EnemyPlane);
_local2.push(EnemyPlane);
_local2.push(Cloud);
_local2.push(Ground);
_local2.push(levelcloud);
_local2.push(levelcloud);
};
if (_arg1 == 5){
_local2.push(EnemyAce);
_local2.push(PlayerPlane);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(EnemyAce);
_local2.push(Cloud);
_local2.push(Balloon);
_local2.push(Balloon);
_local2.push(Ground);
_local2.push(ConvoyAA);
_local2.push(ConvoyAA);
};
if (_arg1 == 6){
_local2.push(Ground);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(PlayerPlane);
_local2.push(EnemyAce);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(levelcloud);
_local2.push(Cloud);
_local2.push(BombTargetHouse);
_local2.push(ConvoyCar);
};
if (_arg1 == 7){
_local2.push(PlayerPlane);
_local2.push(EnemyAce);
_local2.push(EnemyAce);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(EnemyPlane);
_local2.push(EnemyPlane);
_local2.push(Ground);
_local2.push(Cloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
};
if (_arg1 == 8){
_local2.push(EnemyAce);
_local2.push(PlayerPlane);
_local2.push(Ground);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(GoodPlane);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
};
if (_arg1 == 9){
_local2.push(Ground);
_local2.push(Zeppelin);
_local2.push(PlayerPlane);
_local2.push(Gunner);
_local2.push(ZepPart1);
_local2.push(ZepPart1);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(AAGun);
_local2.push(Scenery3);
};
if (_arg1 == 10){
_local2.push(Ground);
_local2.push(BombTargetHouse);
_local2.push(GoodPlane);
_local2.push(PlayerPlane);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(Balloon);
_local2.push(levelcloud);
_local2.push(Cloud);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(ConvoyCar);
};
if (_arg1 == 11){
_local2.push(PlayerPlane);
_local2.push(Balloon);
_local2.push(Balloon);
_local2.push(Balloon);
_local2.push(Balloon);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(Cloud);
_local2.push(Ground);
_local2.push(ConvoyCar);
_local2.push(ConvoyCar);
_local2.push(ConvoyCar);
_local2.push(ConvoyCar);
};
if (_arg1 == 12){
_local2.push(EnemyAce);
_local2.push(PlayerPlane);
_local2.push(Ground);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(Cloud);
_local2.push(ConvoyAA);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(AAGun);
_local2.push(Scenery3);
};
if (_arg1 == 13){
_local2.push(PlayerPlane);
_local2.push(ConvoyCar);
_local2.push(ConvoyCar);
_local2.push(ConvoyCar);
_local2.push(ConvoyTruck);
_local2.push(ConvoyAA);
_local2.push(ConvoyAA);
_local2.push(ConvoyAA);
_local2.push(Ground);
_local2.push(ConvoyCar);
_local2.push(ConvoyCar);
_local2.push(ConvoyAA);
_local2.push(Cloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(GoodPlane);
};
if (_arg1 == 14){
_local2.push(Ground);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(PlayerPlane);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(BombTargetHouse);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Balloon);
_local2.push(Cloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(EnemyAce);
_local2.push(EnemyAce);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
};
if (_arg1 == 15){
_local2.push(PlayerPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(Ground);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(Cloud);
};
if (_arg1 == 16){
_local2.push(Ground);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(PlayerPlane);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(BombTargetHouse);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
};
if (_arg1 == 17){
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(Cloud);
_local2.push(Cloud);
_local2.push(PlayerPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(Ground);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(ConvoyAA);
_local2.push(EnemyAce);
_local2.push(EnemyAce);
};
if (_arg1 == 18){
_local2.push(Ground);
_local2.push(PlayerPlane);
_local2.push(GermanBomber);
_local2.push(GermanBomber);
_local2.push(GermanBomber);
_local2.push(GermanBomber);
_local2.push(ConvoyAA);
_local2.push(ConvoyAA);
_local2.push(levelcloud);
_local2.push(ConvoyAA);
_local2.push(ConvoyAA);
_local2.push(EnemyAce);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(EnemyAce);
_local2.push(EnemyAce);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
};
if (_arg1 == 19){
_local2.push(Ground);
_local2.push(BombTargetHouse);
_local2.push(PlayerPlane);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(EnemyAce);
_local2.push(levelcloud);
_local2.push(Cloud);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(Balloon);
_local2.push(Balloon);
_local2.push(Balloon);
};
if (_arg1 == 20){
_local2.push(Ground);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(PlayerPlane);
_local2.push(EnemyAce);
_local2.push(EnemyAce);
_local2.push(levelcloud);
_local2.push(levelcloud);
};
if (_arg1 == 21){
_local2.push(Ground);
_local2.push(PlayerPlane);
_local2.push(EnemyPlane);
_local2.push(EnemyPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(EnemyAce);
_local2.push(EnemyAce);
_local2.push(EnemyAce);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(EnemyPlane);
_local2.push(EnemyPlane);
_local2.push(EnemyPlane);
_local2.push(EnemyPlane);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(Cloud);
};
if (_arg1 == 22){
_local2.push(Ground);
_local2.push(PlayerPlane);
_local2.push(EnemyAce);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(levelcloud);
_local2.push(Cloud);
};
if (_arg1 == 23){
_local2.push(Ground);
_local2.push(Zeppelin);
_local2.push(Gunner);
_local2.push(ZepPart1);
_local2.push(ZepPart1);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(PlayerPlane);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
};
if (_arg1 == 24){
_local2.push(Ground);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnglishBomber);
_local2.push(EnemyAce);
_local2.push(EnemyAce);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(BombTargetHouse);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(AAGun);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(Scenery3);
_local2.push(levelcloud);
_local2.push(levelcloud);
_local2.push(PlayerPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
_local2.push(GoodPlane);
};
if (_arg1 == 25){
_local2.push(Ground);
};
return (_local2);
}
}
}//package Levels
Section 521
//twoplayer (Levels.twoplayer)
package Levels {
import GameScene.*;
import GameObject.*;
public class twoplayer {
public static var levels:int = 0;
public function init(_arg1:int, _arg2:GameScene):Array{
var _local4:GameObject;
var _local3:Array = new Array();
return (_local3);
}
public function getClasses(_arg1:int):Array{
var _local2:Array = new Array();
return (_local2);
}
}
}//package Levels
Section 522
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.0.0.0";
public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 523
//EdgeMetrics (mx.core.EdgeMetrics)
package mx.core {
public class EdgeMetrics {
public var top:Number;
public var left:Number;
public var bottom:Number;
public var right:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0);
;
public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
this.left = _arg1;
this.top = _arg2;
this.right = _arg3;
this.bottom = _arg4;
}
public function clone():EdgeMetrics{
return (new EdgeMetrics(left, top, right, bottom));
}
}
}//package mx.core
Section 524
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 525
//FlexLoader (mx.core.FlexLoader)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexLoader extends Loader {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexLoader(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 526
//FlexShape (mx.core.FlexShape)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexShape extends Shape {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexShape(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 527
//FlexVersion (mx.core.FlexVersion)
package mx.core {
import mx.resources.*;
public class FlexVersion {
public static const VERSION_2_0_1:uint = 33554433;
public static const CURRENT_VERSION:uint = 50331648;
public static const VERSION_3_0:uint = 50331648;
public static const VERSION_2_0:uint = 33554432;
public static const VERSION_ALREADY_READ:String = "versionAlreadyRead";
public static const VERSION_ALREADY_SET:String = "versionAlreadySet";
mx_internal static const VERSION:String = "3.0.0.0";
private static var compatibilityVersionChanged:Boolean = false;
private static var _compatibilityErrorFunction:Function;
private static var _compatibilityVersion:uint = 50331648;
private static var compatibilityVersionRead:Boolean = false;
mx_internal static function changeCompatibilityVersionString(_arg1:String):void{
var _local2:Array = _arg1.split(".");
var _local3:uint = parseInt(_local2[0]);
var _local4:uint = parseInt(_local2[1]);
var _local5:uint = parseInt(_local2[2]);
_compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5);
}
public static function set compatibilityVersion(_arg1:uint):void{
var _local2:String;
if (_arg1 == _compatibilityVersion){
return;
};
if (compatibilityVersionChanged){
if (compatibilityErrorFunction == null){
_local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET);
throw (new Error(_local2));
};
compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET);
};
if (compatibilityVersionRead){
if (compatibilityErrorFunction == null){
_local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ);
throw (new Error(_local2));
};
compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ);
};
_compatibilityVersion = _arg1;
compatibilityVersionChanged = true;
}
public static function get compatibilityVersion():uint{
compatibilityVersionRead = true;
return (_compatibilityVersion);
}
public static function set compatibilityErrorFunction(_arg1:Function):void{
_compatibilityErrorFunction = _arg1;
}
public static function set compatibilityVersionString(_arg1:String):void{
var _local2:Array = _arg1.split(".");
var _local3:uint = parseInt(_local2[0]);
var _local4:uint = parseInt(_local2[1]);
var _local5:uint = parseInt(_local2[2]);
compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5);
}
public static function get compatibilityErrorFunction():Function{
return (_compatibilityErrorFunction);
}
public static function get compatibilityVersionString():String{
var _local1:uint = ((compatibilityVersion >> 24) & 0xFF);
var _local2:uint = ((compatibilityVersion >> 16) & 0xFF);
var _local3:uint = (compatibilityVersion & 0xFFFF);
return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString()));
}
}
}//package mx.core
Section 528
//FontAsset (mx.core.FontAsset)
package mx.core {
import flash.text.*;
public class FontAsset extends Font implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 529
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 530
//IButton (mx.core.IButton)
package mx.core {
public interface IButton extends IUIComponent {
function get emphasized():Boolean;
function set emphasized(_arg1:Boolean):void;
function callLater(_arg1:Function, _arg2:Array=null):void;
}
}//package mx.core
Section 531
//IChildList (mx.core.IChildList)
package mx.core {
import flash.display.*;
import flash.geom.*;
public interface IChildList {
function get numChildren():int;
function removeChild(_arg1:DisplayObject):DisplayObject;
function getChildByName(_arg1:String):DisplayObject;
function removeChildAt(_arg1:int):DisplayObject;
function getChildIndex(_arg1:DisplayObject):int;
function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject;
function getObjectsUnderPoint(_arg1:Point):Array;
function setChildIndex(_arg1:DisplayObject, _arg2:int):void;
function getChildAt(_arg1:int):DisplayObject;
function addChild(_arg1:DisplayObject):DisplayObject;
function contains(_arg1:DisplayObject):Boolean;
}
}//package mx.core
Section 532
//IContainer (mx.core.IContainer)
package mx.core {
import flash.display.*;
import flash.geom.*;
import mx.managers.*;
import flash.media.*;
import flash.text.*;
public interface IContainer extends IUIComponent {
function set hitArea(_arg1:Sprite):void;
function swapChildrenAt(_arg1:int, _arg2:int):void;
function getChildByName(_arg1:String):DisplayObject;
function get doubleClickEnabled():Boolean;
function get graphics():Graphics;
function get useHandCursor():Boolean;
function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject;
function set mouseChildren(_arg1:Boolean):void;
function set creatingContentPane(_arg1:Boolean):void;
function get textSnapshot():TextSnapshot;
function getChildIndex(_arg1:DisplayObject):int;
function set doubleClickEnabled(_arg1:Boolean):void;
function getObjectsUnderPoint(_arg1:Point):Array;
function get creatingContentPane():Boolean;
function setChildIndex(_arg1:DisplayObject, _arg2:int):void;
function get soundTransform():SoundTransform;
function set useHandCursor(_arg1:Boolean):void;
function get numChildren():int;
function contains(_arg1:DisplayObject):Boolean;
function get verticalScrollPosition():Number;
function set defaultButton(_arg1:IFlexDisplayObject):void;
function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void;
function set horizontalScrollPosition(_arg1:Number):void;
function get focusManager():IFocusManager;
function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void;
function set mouseEnabled(_arg1:Boolean):void;
function getChildAt(_arg1:int):DisplayObject;
function set soundTransform(_arg1:SoundTransform):void;
function get tabChildren():Boolean;
function get tabIndex():int;
function set focusRect(_arg1:Object):void;
function get hitArea():Sprite;
function get mouseChildren():Boolean;
function removeChildAt(_arg1:int):DisplayObject;
function get defaultButton():IFlexDisplayObject;
function stopDrag():void;
function set tabEnabled(_arg1:Boolean):void;
function get horizontalScrollPosition():Number;
function get focusRect():Object;
function get viewMetrics():EdgeMetrics;
function set verticalScrollPosition(_arg1:Number):void;
function get dropTarget():DisplayObject;
function get mouseEnabled():Boolean;
function set tabChildren(_arg1:Boolean):void;
function set buttonMode(_arg1:Boolean):void;
function get tabEnabled():Boolean;
function get buttonMode():Boolean;
function removeChild(_arg1:DisplayObject):DisplayObject;
function set tabIndex(_arg1:int):void;
function addChild(_arg1:DisplayObject):DisplayObject;
function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean;
}
}//package mx.core
Section 533
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 534
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(_arg1:Point):Point;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(_arg1:String):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(_arg1:Point):Point;
function get height():Number;
function set blendMode(_arg1:String):void;
function get parent():DisplayObjectContainer;
function getBounds(_arg1:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(_arg1:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(_arg1:Number):void;
function set accessibilityProperties(_arg1:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(_arg1:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(_arg1:Number):void;
function set mask(_arg1:DisplayObject):void;
function getRect(_arg1:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(_arg1:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(_arg1:DisplayObject):Boolean;
function set opaqueBackground(_arg1:Object):void;
function set visible(_arg1:Boolean):void;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get transform():Transform;
function set filters(_arg1:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(_arg1:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 535
//IFlexModuleFactory (mx.core.IFlexModuleFactory)
package mx.core {
public interface IFlexModuleFactory {
function create(... _args):Object;
function info():Object;
}
}//package mx.core
Section 536
//IInvalidating (mx.core.IInvalidating)
package mx.core {
public interface IInvalidating {
function validateNow():void;
function invalidateSize():void;
function invalidateDisplayList():void;
function invalidateProperties():void;
}
}//package mx.core
Section 537
//IProgrammaticSkin (mx.core.IProgrammaticSkin)
package mx.core {
public interface IProgrammaticSkin {
function validateNow():void;
function validateDisplayList():void;
}
}//package mx.core
Section 538
//IRawChildrenContainer (mx.core.IRawChildrenContainer)
package mx.core {
public interface IRawChildrenContainer {
function get rawChildren():IChildList;
}
}//package mx.core
Section 539
//IRectangularBorder (mx.core.IRectangularBorder)
package mx.core {
import flash.geom.*;
public interface IRectangularBorder extends IBorder {
function get backgroundImageBounds():Rectangle;
function get hasBackgroundImage():Boolean;
function set backgroundImageBounds(_arg1:Rectangle):void;
function layoutBackgroundImage():void;
}
}//package mx.core
Section 540
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 541
//IUIComponent (mx.core.IUIComponent)
package mx.core {
import flash.display.*;
import mx.managers.*;
public interface IUIComponent extends IFlexDisplayObject {
function set focusPane(_arg1:Sprite):void;
function get enabled():Boolean;
function set enabled(_arg1:Boolean):void;
function set isPopUp(_arg1:Boolean):void;
function get explicitMinHeight():Number;
function get percentWidth():Number;
function get isPopUp():Boolean;
function get owner():DisplayObjectContainer;
function get percentHeight():Number;
function get baselinePosition():Number;
function owns(_arg1:DisplayObject):Boolean;
function initialize():void;
function get maxWidth():Number;
function get minWidth():Number;
function getExplicitOrMeasuredWidth():Number;
function get explicitMaxWidth():Number;
function get explicitMaxHeight():Number;
function set percentHeight(_arg1:Number):void;
function get minHeight():Number;
function set percentWidth(_arg1:Number):void;
function get document():Object;
function get focusPane():Sprite;
function getExplicitOrMeasuredHeight():Number;
function set tweeningProperties(_arg1:Array):void;
function set explicitWidth(_arg1:Number):void;
function set measuredMinHeight(_arg1:Number):void;
function get explicitMinWidth():Number;
function get tweeningProperties():Array;
function get maxHeight():Number;
function set owner(_arg1:DisplayObjectContainer):void;
function set includeInLayout(_arg1:Boolean):void;
function setVisible(_arg1:Boolean, _arg2:Boolean=false):void;
function parentChanged(_arg1:DisplayObjectContainer):void;
function get explicitWidth():Number;
function get measuredMinHeight():Number;
function set measuredMinWidth(_arg1:Number):void;
function set explicitHeight(_arg1:Number):void;
function get includeInLayout():Boolean;
function get measuredMinWidth():Number;
function get explicitHeight():Number;
function set systemManager(_arg1:ISystemManager):void;
function set document(_arg1:Object):void;
function get systemManager():ISystemManager;
}
}//package mx.core
Section 542
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 543
//Singleton (mx.core.Singleton)
package mx.core {
public class Singleton {
mx_internal static const VERSION:String = "3.0.0.0";
private static var classMap:Object = {};
public static function registerClass(_arg1:String, _arg2:Class):void{
var _local3:Class = classMap[_arg1];
if (!_local3){
classMap[_arg1] = _arg2;
};
}
public static function getClass(_arg1:String):Class{
return (classMap[_arg1]);
}
public static function getInstance(_arg1:String):Object{
var _local2:Class = classMap[_arg1];
if (!_local2){
throw (new Error((("No class registered for interface '" + _arg1) + "'.")));
};
return (_local2["getInstance"]());
}
}
}//package mx.core
Section 544
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 545
//UIComponentGlobals (mx.core.UIComponentGlobals)
package mx.core {
import flash.display.*;
import flash.geom.*;
import mx.managers.*;
public class UIComponentGlobals {
mx_internal static var callLaterSuspendCount:int = 0;
mx_internal static var layoutManager:ILayoutManager;
mx_internal static var nextFocusObject:InteractiveObject;
mx_internal static var designTime:Boolean = false;
mx_internal static var tempMatrix:Matrix = new Matrix();
mx_internal static var callLaterDispatcherCount:int = 0;
private static var _catchCallLaterExceptions:Boolean = false;
public static function set catchCallLaterExceptions(_arg1:Boolean):void{
_catchCallLaterExceptions = _arg1;
}
public static function get designMode():Boolean{
return (designTime);
}
public static function set designMode(_arg1:Boolean):void{
designTime = _arg1;
}
public static function get catchCallLaterExceptions():Boolean{
return (_catchCallLaterExceptions);
}
}
}//package mx.core
Section 546
//ModuleEvent (mx.events.ModuleEvent)
package mx.events {
import flash.events.*;
import mx.modules.*;
public class ModuleEvent extends ProgressEvent {
public var errorText:String;
private var _module:IModuleInfo;
public static const READY:String = "ready";
public static const ERROR:String = "error";
public static const PROGRESS:String = "progress";
mx_internal static const VERSION:String = "3.0.0.0";
public static const SETUP:String = "setup";
public static const UNLOAD:String = "unload";
public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
this.errorText = _arg6;
this._module = _arg7;
}
public function get module():IModuleInfo{
if (_module){
return (_module);
};
return ((target as IModuleInfo));
}
override public function clone():Event{
return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module));
}
}
}//package mx.events
Section 547
//ResourceEvent (mx.events.ResourceEvent)
package mx.events {
import flash.events.*;
public class ResourceEvent extends ProgressEvent {
public var errorText:String;
mx_internal static const VERSION:String = "3.0.0.0";
public static const COMPLETE:String = "complete";
public static const PROGRESS:String = "progress";
public static const ERROR:String = "error";
public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
this.errorText = _arg6;
}
override public function clone():Event{
return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText));
}
}
}//package mx.events
Section 548
//StyleEvent (mx.events.StyleEvent)
package mx.events {
import flash.events.*;
public class StyleEvent extends ProgressEvent {
public var errorText:String;
mx_internal static const VERSION:String = "3.0.0.0";
public static const COMPLETE:String = "complete";
public static const PROGRESS:String = "progress";
public static const ERROR:String = "error";
public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
this.errorText = _arg6;
}
override public function clone():Event{
return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText));
}
}
}//package mx.events
Section 549
//RectangularDropShadow (mx.graphics.RectangularDropShadow)
package mx.graphics {
import mx.core.*;
import flash.display.*;
import flash.geom.*;
import mx.utils.*;
import flash.filters.*;
public class RectangularDropShadow {
private var leftShadow:BitmapData;
private var _tlRadius:Number;// = 0
private var _trRadius:Number;// = 0
private var _angle:Number;// = 45
private var topShadow:BitmapData;
private var _distance:Number;// = 4
private var rightShadow:BitmapData;
private var _alpha:Number;// = 0.4
private var shadow:BitmapData;
private var _brRadius:Number;// = 0
private var _blRadius:Number;// = 0
private var _color:int;// = 0
private var bottomShadow:BitmapData;
private var changed:Boolean;// = true
mx_internal static const VERSION:String = "3.0.0.0";
public function get blRadius():Number{
return (_blRadius);
}
public function set brRadius(_arg1:Number):void{
if (_brRadius != _arg1){
_brRadius = _arg1;
changed = true;
};
}
public function set color(_arg1:int):void{
if (_color != _arg1){
_color = _arg1;
changed = true;
};
}
public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
if (changed){
createShadowBitmaps();
changed = false;
};
_arg4 = Math.ceil(_arg4);
_arg5 = Math.ceil(_arg5);
var _local6:int = (leftShadow) ? leftShadow.width : 0;
var _local7:int = (rightShadow) ? rightShadow.width : 0;
var _local8:int = (topShadow) ? topShadow.height : 0;
var _local9:int = (bottomShadow) ? bottomShadow.height : 0;
var _local10:int = (_local6 + _local7);
var _local11:int = (_local8 + _local9);
var _local12:Number = ((_arg5 + _local11) / 2);
var _local13:Number = ((_arg4 + _local10) / 2);
var _local14:Matrix = new Matrix();
if (((leftShadow) || (topShadow))){
_local15 = Math.min((tlRadius + _local10), _local13);
_local16 = Math.min((tlRadius + _local11), _local12);
_local14.tx = (_arg2 - _local6);
_local14.ty = (_arg3 - _local8);
_arg1.beginBitmapFill(shadow, _local14);
_arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16);
_arg1.endFill();
};
if (((rightShadow) || (topShadow))){
_local17 = Math.min((trRadius + _local10), _local13);
_local18 = Math.min((trRadius + _local11), _local12);
_local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width);
_local14.ty = (_arg3 - _local8);
_arg1.beginBitmapFill(shadow, _local14);
_arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18);
_arg1.endFill();
};
if (((leftShadow) || (bottomShadow))){
_local19 = Math.min((blRadius + _local10), _local13);
_local20 = Math.min((blRadius + _local11), _local12);
_local14.tx = (_arg2 - _local6);
_local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height);
_arg1.beginBitmapFill(shadow, _local14);
_arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20);
_arg1.endFill();
};
if (((rightShadow) || (bottomShadow))){
_local21 = Math.min((brRadius + _local10), _local13);
_local22 = Math.min((brRadius + _local11), _local12);
_local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width);
_local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height);
_arg1.beginBitmapFill(shadow, _local14);
_arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22);
_arg1.endFill();
};
if (leftShadow){
_local14.tx = (_arg2 - _local6);
_local14.ty = 0;
_arg1.beginBitmapFill(leftShadow, _local14);
_arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20));
_arg1.endFill();
};
if (rightShadow){
_local14.tx = (_arg2 + _arg4);
_local14.ty = 0;
_arg1.beginBitmapFill(rightShadow, _local14);
_arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22));
_arg1.endFill();
};
if (topShadow){
_local14.tx = 0;
_local14.ty = (_arg3 - _local8);
_arg1.beginBitmapFill(topShadow, _local14);
_arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8);
_arg1.endFill();
};
if (bottomShadow){
_local14.tx = 0;
_local14.ty = (_arg3 + _arg5);
_arg1.beginBitmapFill(bottomShadow, _local14);
_arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9);
_arg1.endFill();
};
}
public function get brRadius():Number{
return (_brRadius);
}
public function get angle():Number{
return (_angle);
}
private function createShadowBitmaps():void{
var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius));
var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius));
if ((((_local1 < 0)) || ((_local2 < 0)))){
return;
};
var _local3:Shape = new FlexShape();
var _local4:Graphics = _local3.graphics;
_local4.beginFill(0xFFFFFF);
GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius);
_local4.endFill();
var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0);
_local5.draw(_local3, new Matrix());
var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha);
_local6.knockout = true;
var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2);
var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6);
var _local9:Number = (_local7.left - _local8.left);
var _local10:Number = (_local8.right - _local7.right);
var _local11:Number = (_local7.top - _local8.top);
var _local12:Number = (_local8.bottom - _local7.bottom);
shadow = new BitmapData(_local8.width, _local8.height);
shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6);
var _local13:Point = new Point(0, 0);
var _local14:Rectangle = new Rectangle();
if (_local9 > 0){
_local14.x = 0;
_local14.y = ((tlRadius + _local11) + _local12);
_local14.width = _local9;
_local14.height = 1;
leftShadow = new BitmapData(_local9, 1);
leftShadow.copyPixels(shadow, _local14, _local13);
} else {
leftShadow = null;
};
if (_local10 > 0){
_local14.x = (shadow.width - _local10);
_local14.y = ((trRadius + _local11) + _local12);
_local14.width = _local10;
_local14.height = 1;
rightShadow = new BitmapData(_local10, 1);
rightShadow.copyPixels(shadow, _local14, _local13);
} else {
rightShadow = null;
};
if (_local11 > 0){
_local14.x = ((tlRadius + _local9) + _local10);
_local14.y = 0;
_local14.width = 1;
_local14.height = _local11;
topShadow = new BitmapData(1, _local11);
topShadow.copyPixels(shadow, _local14, _local13);
} else {
topShadow = null;
};
if (_local12 > 0){
_local14.x = ((blRadius + _local9) + _local10);
_local14.y = (shadow.height - _local12);
_local14.width = 1;
_local14.height = _local12;
bottomShadow = new BitmapData(1, _local12);
bottomShadow.copyPixels(shadow, _local14, _local13);
} else {
bottomShadow = null;
};
}
public function get alpha():Number{
return (_alpha);
}
public function get color():int{
return (_color);
}
public function set angle(_arg1:Number):void{
if (_angle != _arg1){
_angle = _arg1;
changed = true;
};
}
public function set trRadius(_arg1:Number):void{
if (_trRadius != _arg1){
_trRadius = _arg1;
changed = true;
};
}
public function set tlRadius(_arg1:Number):void{
if (_tlRadius != _arg1){
_tlRadius = _arg1;
changed = true;
};
}
public function get trRadius():Number{
return (_trRadius);
}
public function set distance(_arg1:Number):void{
if (_distance != _arg1){
_distance = _arg1;
changed = true;
};
}
public function get distance():Number{
return (_distance);
}
public function get tlRadius():Number{
return (_tlRadius);
}
public function set alpha(_arg1:Number):void{
if (_alpha != _arg1){
_alpha = _arg1;
changed = true;
};
}
public function set blRadius(_arg1:Number):void{
if (_blRadius != _arg1){
_blRadius = _arg1;
changed = true;
};
}
}
}//package mx.graphics
Section 550
//IFocusManager (mx.managers.IFocusManager)
package mx.managers {
import mx.core.*;
import flash.display.*;
public interface IFocusManager {
function get focusPane():Sprite;
function getFocus():IFocusManagerComponent;
function deactivate():void;
function set defaultButton(_arg1:IButton):void;
function set focusPane(_arg1:Sprite):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent;
function get nextTabIndex():int;
function get defaultButton():IButton;
function get showFocusIndicator():Boolean;
function setFocus(_arg1:IFocusManagerComponent):void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function hideFocus():void;
function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent;
}
}//package mx.managers
Section 551
//IFocusManagerComponent (mx.managers.IFocusManagerComponent)
package mx.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package mx.managers
Section 552
//IFocusManagerContainer (mx.managers.IFocusManagerContainer)
package mx.managers {
import flash.events.*;
import flash.display.*;
public interface IFocusManagerContainer extends IEventDispatcher {
function set focusManager(_arg1:IFocusManager):void;
function get focusManager():IFocusManager;
function get systemManager():ISystemManager;
function contains(_arg1:DisplayObject):Boolean;
}
}//package mx.managers
Section 553
//ILayoutManager (mx.managers.ILayoutManager)
package mx.managers {
import flash.events.*;
public interface ILayoutManager extends IEventDispatcher {
function validateNow():void;
function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void;
function isInvalid():Boolean;
function invalidateDisplayList(_arg1:ILayoutManagerClient):void;
function set usePhasedInstantiation(_arg1:Boolean):void;
function invalidateSize(_arg1:ILayoutManagerClient):void;
function get usePhasedInstantiation():Boolean;
function invalidateProperties(_arg1:ILayoutManagerClient):void;
}
}//package mx.managers
Section 554
//ILayoutManagerClient (mx.managers.ILayoutManagerClient)
package mx.managers {
import flash.events.*;
public interface ILayoutManagerClient extends IEventDispatcher {
function get updateCompletePendingFlag():Boolean;
function set updateCompletePendingFlag(_arg1:Boolean):void;
function set initialized(_arg1:Boolean):void;
function validateProperties():void;
function validateDisplayList():void;
function get nestLevel():int;
function get initialized():Boolean;
function get processedDescriptors():Boolean;
function validateSize(_arg1:Boolean=false):void;
function set nestLevel(_arg1:int):void;
function set processedDescriptors(_arg1:Boolean):void;
}
}//package mx.managers
Section 555
//ISystemManager (mx.managers.ISystemManager)
package mx.managers {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory {
function get focusPane():Sprite;
function get loaderInfo():LoaderInfo;
function get toolTipChildren():IChildList;
function set focusPane(_arg1:Sprite):void;
function isTopLevel():Boolean;
function get popUpChildren():IChildList;
function get screen():Rectangle;
function isFontFaceEmbedded(_arg1:TextFormat):Boolean;
function get rawChildren():IChildList;
function get topLevelSystemManager():ISystemManager;
function getDefinitionByName(_arg1:String):Object;
function activate(_arg1:IFocusManagerContainer):void;
function deactivate(_arg1:IFocusManagerContainer):void;
function get cursorChildren():IChildList;
function set document(_arg1:Object):void;
function get embeddedFontList():Object;
function set numModalWindows(_arg1:int):void;
function removeFocusManager(_arg1:IFocusManagerContainer):void;
function get document():Object;
function get numModalWindows():int;
function addFocusManager(_arg1:IFocusManagerContainer):void;
function get stage():Stage;
}
}//package mx.managers
Section 556
//SystemManagerGlobals (mx.managers.SystemManagerGlobals)
package mx.managers {
public class SystemManagerGlobals {
public static var topLevelSystemManagers:Array = [];
public static var bootstrapLoaderInfoURL:String;
}
}//package mx.managers
Section 557
//IModuleInfo (mx.modules.IModuleInfo)
package mx.modules {
import mx.core.*;
import flash.events.*;
import flash.system.*;
public interface IModuleInfo extends IEventDispatcher {
function get ready():Boolean;
function get loaded():Boolean;
function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void;
function release():void;
function get error():Boolean;
function get data():Object;
function publish(_arg1:IFlexModuleFactory):void;
function get factory():IFlexModuleFactory;
function set data(_arg1:Object):void;
function get url():String;
function get setup():Boolean;
function unload():void;
}
}//package mx.modules
Section 558
//ModuleManager (mx.modules.ModuleManager)
package mx.modules {
import mx.core.*;
public class ModuleManager {
mx_internal static const VERSION:String = "3.0.0.0";
public static function getModule(_arg1:String):IModuleInfo{
return (getSingleton().getModule(_arg1));
}
private static function getSingleton():Object{
if (!ModuleManagerGlobals.managerSingleton){
ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl();
};
return (ModuleManagerGlobals.managerSingleton);
}
public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{
return (getSingleton().getAssociatedFactory(_arg1));
}
}
}//package mx.modules
import mx.core.*;
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
import mx.events.*;
import flash.utils.*;
class ModuleInfoProxy extends EventDispatcher implements IModuleInfo {
private var _data:Object;
private var info:ModuleInfo;
private var referenced:Boolean;// = false
private function ModuleInfoProxy(_arg1:ModuleInfo){
this.info = _arg1;
_arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true);
_arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true);
_arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true);
_arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true);
_arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true);
}
public function get loaded():Boolean{
return (info.loaded);
}
public function release():void{
if (referenced){
info.removeReference();
referenced = false;
};
}
public function get error():Boolean{
return (info.error);
}
public function get factory():IFlexModuleFactory{
return (info.factory);
}
public function publish(_arg1:IFlexModuleFactory):void{
info.publish(_arg1);
}
public function set data(_arg1:Object):void{
_data = _arg1;
}
public function get ready():Boolean{
return (info.ready);
}
public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void{
var _local3:ModuleEvent;
info.resurrect();
if (!referenced){
info.addReference();
referenced = true;
};
if (info.error){
dispatchEvent(new ModuleEvent(ModuleEvent.ERROR));
} else {
if (info.loaded){
if (info.setup){
dispatchEvent(new ModuleEvent(ModuleEvent.SETUP));
if (info.ready){
_local3 = new ModuleEvent(ModuleEvent.PROGRESS);
_local3.bytesLoaded = info.size;
_local3.bytesTotal = info.size;
dispatchEvent(_local3);
dispatchEvent(new ModuleEvent(ModuleEvent.READY));
};
};
} else {
info.load(_arg1, _arg2);
};
};
}
private function moduleEventHandler(_arg1:ModuleEvent):void{
dispatchEvent(_arg1);
}
public function get url():String{
return (info.url);
}
public function get data():Object{
return (_data);
}
public function get setup():Boolean{
return (info.setup);
}
public function unload():void{
info.unload();
info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler);
info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler);
info.removeEventListener(ModuleEvent.READY, moduleEventHandler);
info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler);
info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler);
}
}
class ModuleManagerImpl extends EventDispatcher {
private var moduleList:Object;
private function ModuleManagerImpl(){
moduleList = {};
super();
}
public function getModule(_arg1:String):IModuleInfo{
var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo);
if (!_local2){
_local2 = new ModuleInfo(_arg1);
moduleList[_arg1] = _local2;
};
return (new ModuleInfoProxy(_local2));
}
public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{
var m:Object;
var info:ModuleInfo;
var domain:ApplicationDomain;
var cls:Class;
var object = _arg1;
var className:String = getQualifiedClassName(object);
for each (m in moduleList) {
info = (m as ModuleInfo);
if (!info.ready){
} else {
domain = info.applicationDomain;
try {
cls = Class(domain.getDefinition(className));
if ((object is cls)){
return (info.factory);
};
} catch(error:Error) {
};
};
};
return (null);
}
}
class ModuleInfo extends EventDispatcher {
private var _error:Boolean;// = false
private var loader:Loader;
private var factoryInfo:FactoryInfo;
private var limbo:Dictionary;
private var _loaded:Boolean;// = false
private var _ready:Boolean;// = false
private var numReferences:int;// = 0
private var _url:String;
private var _setup:Boolean;// = false
private function ModuleInfo(_arg1:String){
_url = _arg1;
}
private function clearLoader():void{
if (loader){
if (loader.contentLoaderInfo){
loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler);
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler);
loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
};
try {
if (loader.content){
loader.content.removeEventListener("ready", readyHandler);
};
} catch(error:Error) {
};
if (_loaded){
try {
loader.close();
} catch(error:Error) {
};
};
try {
loader.unload();
} catch(error:Error) {
};
loader = null;
};
}
public function get size():int{
return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0);
}
public function get loaded():Boolean{
return ((limbo) ? false : _loaded);
}
public function release():void{
if (((_ready) && (!(limbo)))){
limbo = new Dictionary(true);
limbo[factoryInfo] = 1;
factoryInfo = null;
} else {
unload();
};
}
public function get error():Boolean{
return ((limbo) ? false : _error);
}
public function get factory():IFlexModuleFactory{
return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null);
}
public function completeHandler(_arg1:Event):void{
var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded;
_local2.bytesTotal = loader.contentLoaderInfo.bytesTotal;
dispatchEvent(_local2);
}
public function publish(_arg1:IFlexModuleFactory):void{
if (factoryInfo){
return;
};
if (_url.indexOf("published://") != 0){
return;
};
factoryInfo = new FactoryInfo();
factoryInfo.factory = _arg1;
_loaded = true;
_setup = true;
_ready = true;
_error = false;
dispatchEvent(new ModuleEvent(ModuleEvent.SETUP));
dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS));
dispatchEvent(new ModuleEvent(ModuleEvent.READY));
}
public function initHandler(_arg1:Event):void{
var moduleEvent:ModuleEvent;
var event = _arg1;
factoryInfo = new FactoryInfo();
try {
factoryInfo.factory = (loader.content as IFlexModuleFactory);
} catch(error:Error) {
};
if (!factoryInfo.factory){
moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable);
moduleEvent.bytesLoaded = 0;
moduleEvent.bytesTotal = 0;
moduleEvent.errorText = "SWF is not a loadable module";
dispatchEvent(moduleEvent);
return;
};
loader.content.addEventListener("ready", readyHandler);
try {
factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain;
} catch(error:Error) {
};
_setup = true;
dispatchEvent(new ModuleEvent(ModuleEvent.SETUP));
}
public function resurrect():void{
var _local1:Object;
if (((!(factoryInfo)) && (limbo))){
for (_local1 in limbo) {
factoryInfo = (_local1 as FactoryInfo);
break;
};
limbo = null;
};
if (!factoryInfo){
if (_loaded){
dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD));
};
loader = null;
_loaded = false;
_setup = false;
_ready = false;
_error = false;
};
}
public function errorHandler(_arg1:ErrorEvent):void{
_error = true;
var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = 0;
_local2.bytesTotal = 0;
_local2.errorText = _arg1.text;
dispatchEvent(_local2);
}
public function get ready():Boolean{
return ((limbo) ? false : _ready);
}
public function removeReference():void{
numReferences--;
if (numReferences == 0){
release();
};
}
public function addReference():void{
numReferences++;
}
public function progressHandler(_arg1:ProgressEvent):void{
var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = _arg1.bytesLoaded;
_local2.bytesTotal = _arg1.bytesTotal;
dispatchEvent(_local2);
}
public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void{
if (_loaded){
return;
};
_loaded = true;
limbo = null;
if (_url.indexOf("published://") == 0){
return;
};
var _local3:URLRequest = new URLRequest(_url);
var _local4:LoaderContext = new LoaderContext();
_local4.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain);
_local4.securityDomain = _arg2;
if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){
_local4.securityDomain = SecurityDomain.currentDomain;
};
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
loader.load(_local3, _local4);
}
public function get url():String{
return (_url);
}
public function get applicationDomain():ApplicationDomain{
return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null);
}
public function readyHandler(_arg1:Event):void{
_ready = true;
factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal;
clearLoader();
dispatchEvent(new ModuleEvent(ModuleEvent.READY));
}
public function get setup():Boolean{
return ((limbo) ? false : _setup);
}
public function unload():void{
clearLoader();
if (_loaded){
dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD));
};
limbo = null;
factoryInfo = null;
_loaded = false;
_setup = false;
_ready = false;
_error = false;
}
}
class FactoryInfo {
public var bytesTotal:int;// = 0
public var factory:IFlexModuleFactory;
public var applicationDomain:ApplicationDomain;
private function FactoryInfo(){
}
}
Section 559
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals)
package mx.modules {
public class ModuleManagerGlobals {
public static var managerSingleton:Object = null;
}
}//package mx.modules
Section 560
//IResourceBundle (mx.resources.IResourceBundle)
package mx.resources {
public interface IResourceBundle {
function get content():Object;
function get locale():String;
function get bundleName():String;
}
}//package mx.resources
Section 561
//IResourceManager (mx.resources.IResourceManager)
package mx.resources {
import flash.events.*;
import flash.system.*;
public interface IResourceManager extends IEventDispatcher {
function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher;
function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean;
function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class;
function getLocales():Array;
function removeResourceBundlesForLocale(_arg1:String):void;
function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle;
function get localeChain():Array;
function getInt(_arg1:String, _arg2:String, _arg3:String=null):int;
function update():void;
function set localeChain(_arg1:Array):void;
function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint;
function addResourceBundle(_arg1:IResourceBundle):void;
function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array;
function getBundleNamesForLocale(_arg1:String):Array;
function removeResourceBundle(_arg1:String, _arg2:String):void;
function getObject(_arg1:String, _arg2:String, _arg3:String=null);
function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String;
function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void;
function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void;
function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle;
function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number;
}
}//package mx.resources
Section 562
//IResourceModule (mx.resources.IResourceModule)
package mx.resources {
public interface IResourceModule {
function get resourceBundles():Array;
}
}//package mx.resources
Section 563
//ResourceBundle (mx.resources.ResourceBundle)
package mx.resources {
import mx.core.*;
import flash.system.*;
import mx.utils.*;
public class ResourceBundle implements IResourceBundle {
mx_internal var _locale:String;
private var _content:Object;
mx_internal var _bundleName:String;
mx_internal static const VERSION:String = "3.0.0.0";
mx_internal static var backupApplicationDomain:ApplicationDomain;
mx_internal static var locale:String;
public function ResourceBundle(_arg1:String=null, _arg2:String=null){
_content = {};
super();
mx_internal::_locale = _arg1;
mx_internal::_bundleName = _arg2;
_content = getContent();
}
protected function getContent():Object{
return ({});
}
public function getString(_arg1:String):String{
return (String(_getObject(_arg1)));
}
public function get content():Object{
return (_content);
}
public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{
var _local3:String = _getObject(_arg1).toLowerCase();
if (_local3 == "false"){
return (false);
};
if (_local3 == "true"){
return (true);
};
return (_arg2);
}
public function getStringArray(_arg1:String):Array{
var _local2:Array = _getObject(_arg1).split(",");
var _local3:int = _local2.length;
var _local4:int;
while (_local4 < _local3) {
_local2[_local4] = StringUtil.trim(_local2[_local4]);
_local4++;
};
return (_local2);
}
public function getObject(_arg1:String):Object{
return (_getObject(_arg1));
}
private function _getObject(_arg1:String):Object{
var _local2:Object = content[_arg1];
if (!_local2){
throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName)));
};
return (_local2);
}
public function get locale():String{
return (mx_internal::_locale);
}
public function get bundleName():String{
return (mx_internal::_bundleName);
}
public function getNumber(_arg1:String):Number{
return (Number(_getObject(_arg1)));
}
private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{
var _local3:Class;
if (_arg2.hasDefinition(_arg1)){
_local3 = (_arg2.getDefinition(_arg1) as Class);
};
return (_local3);
}
public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{
var _local3:String;
var _local4:Class;
var _local5:Object;
var _local6:ResourceBundle;
if (!_arg2){
_arg2 = ApplicationDomain.currentDomain;
};
_local3 = (((mx_internal::locale + "$") + _arg1) + "_properties");
_local4 = getClassByName(_local3, _arg2);
if (!_local4){
_local3 = (_arg1 + "_properties");
_local4 = getClassByName(_local3, _arg2);
};
if (!_local4){
_local3 = _arg1;
_local4 = getClassByName(_local3, _arg2);
};
if (((!(_local4)) && (mx_internal::backupApplicationDomain))){
_local3 = (_arg1 + "_properties");
_local4 = getClassByName(_local3, mx_internal::backupApplicationDomain);
if (!_local4){
_local3 = _arg1;
_local4 = getClassByName(_local3, mx_internal::backupApplicationDomain);
};
};
if (_local4){
_local5 = new (_local4);
if ((_local5 is ResourceBundle)){
_local6 = ResourceBundle(_local5);
return (_local6);
};
};
throw (new Error(("Could not find resource bundle " + _arg1)));
}
}
}//package mx.resources
Section 564
//ResourceManager (mx.resources.ResourceManager)
package mx.resources {
import mx.core.*;
public class ResourceManager {
mx_internal static const VERSION:String = "3.0.0.0";
private static var implClassDependency:ResourceManagerImpl;
private static var instance:IResourceManager;
public static function getInstance():IResourceManager{
if (!instance){
instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager"));
};
return (instance);
}
}
}//package mx.resources
Section 565
//ResourceManagerImpl (mx.resources.ResourceManagerImpl)
package mx.resources {
import mx.core.*;
import flash.events.*;
import flash.system.*;
import mx.modules.*;
import mx.events.*;
import flash.utils.*;
import mx.utils.*;
public class ResourceManagerImpl extends EventDispatcher implements IResourceManager {
private var resourceModules:Object;
private var initializedForNonFrameworkApp:Boolean;// = false
private var localeMap:Object;
private var _localeChain:Array;
mx_internal static const VERSION:String = "3.0.0.0";
private static var instance:IResourceManager;
public function ResourceManagerImpl(){
localeMap = {};
resourceModules = {};
super();
}
public function get localeChain():Array{
return (_localeChain);
}
public function set localeChain(_arg1:Array):void{
_localeChain = _arg1;
update();
}
public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{
var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
if (!_local4){
return (null);
};
var _local5:* = _local4.content[_arg2];
var _local6:Array = String(_local5).split(",");
var _local7:int = _local6.length;
var _local8:int;
while (_local8 < _local7) {
_local6[_local8] = StringUtil.trim(_local6[_local8]);
_local8++;
};
return (_local6);
}
mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{
var _local4:String;
var _local5:String = _arg3;
var _local6:int = _arg3.indexOf(":");
if (_local6 != -1){
_local4 = _arg3.substring(0, _local6);
_local5 = _arg3.substring((_local6 + 1));
};
if (getResourceBundle(_arg2, _arg3)){
return;
};
var _local7 = (((_arg2 + "$") + _local5) + "_properties");
if (_local4 != null){
_local7 = ((_local4 + ".") + _local7);
};
var _local8:Class;
if (_arg1.hasDefinition(_local7)){
_local8 = Class(_arg1.getDefinition(_local7));
};
if (!_local8){
_local7 = _arg3;
if (_arg1.hasDefinition(_local7)){
_local8 = Class(_arg1.getDefinition(_local7));
};
};
if (!_local8){
_local7 = (_arg3 + "_properties");
if (_arg1.hasDefinition(_local7)){
_local8 = Class(_arg1.getDefinition(_local7));
};
};
if (!_local8){
throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'.")));
};
var _local9:ResourceBundle = ResourceBundle(new (_local8));
_local9.mx_internal::_locale = _arg2;
_local9.mx_internal::_bundleName = _arg3;
addResourceBundle(_local9);
}
public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{
var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4);
if (!_local5){
return (null);
};
var _local6:String = String(_local5.content[_arg2]);
if (_arg3){
_local6 = StringUtil.substitute(_local6, _arg3);
};
return (_local6);
}
public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{
var moduleInfo:IModuleInfo;
var resourceEventDispatcher:ResourceEventDispatcher;
var timer:Timer;
var timerHandler:Function;
var url = _arg1;
var updateFlag = _arg2;
var applicationDomain = _arg3;
var securityDomain = _arg4;
moduleInfo = ModuleManager.getModule(url);
resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo);
var readyHandler:Function = function (_arg1:ModuleEvent):void{
var _local2:* = _arg1.module.factory.create();
resourceModules[_arg1.module.url].resourceModule = _local2;
if (updateFlag){
update();
};
};
moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true);
var errorHandler:Function = function (_arg1:ModuleEvent):void{
var _local3:ResourceEvent;
var _local2:String = ("Unable to load resource module from " + url);
if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){
_local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
_local3.bytesLoaded = 0;
_local3.bytesTotal = 0;
_local3.errorText = _local2;
resourceEventDispatcher.dispatchEvent(_local3);
} else {
throw (new Error(_local2));
};
};
moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true);
resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler);
timer = new Timer(0);
timerHandler = function (_arg1:TimerEvent):void{
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer.stop();
moduleInfo.load(applicationDomain, securityDomain);
};
timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true);
timer.start();
return (resourceEventDispatcher);
}
public function getLocales():Array{
var _local2:String;
var _local1:Array = [];
for (_local2 in localeMap) {
_local1.push(_local2);
};
return (_local1);
}
public function removeResourceBundlesForLocale(_arg1:String):void{
delete localeMap[_arg1];
}
public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{
var _local3:Object = localeMap[_arg1];
if (!_local3){
return (null);
};
return (_local3[_arg2]);
}
private function dumpResourceModule(_arg1):void{
var _local2:ResourceBundle;
var _local3:String;
for each (_local2 in _arg1.resourceBundles) {
trace(_local2.locale, _local2.bundleName);
for (_local3 in _local2.content) {
};
};
}
public function getObject(_arg1:String, _arg2:String, _arg3:String=null){
var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
if (!_local4){
return (undefined);
};
return (_local4.content[_arg2]);
}
public function addResourceBundle(_arg1:IResourceBundle):void{
var _local2:String = _arg1.locale;
var _local3:String = _arg1.bundleName;
if (!localeMap[_local2]){
localeMap[_local2] = {};
};
localeMap[_local2][_local3] = _arg1;
}
private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{
supportNonFrameworkApps();
return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2));
}
public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{
var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
if (!_local4){
return (0);
};
var _local5:* = _local4.content[_arg2];
return (int(_local5));
}
private function supportNonFrameworkApps():void{
if (initializedForNonFrameworkApp){
return;
};
initializedForNonFrameworkApp = true;
if (getLocales().length > 0){
return;
};
var _local1:ApplicationDomain = ApplicationDomain.currentDomain;
if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){
return;
};
var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo"));
var _local3:Array = _local2.compiledLocales;
var _local4:Array = _local2.compiledResourceBundleNames;
installCompiledResourceBundles(_local1, _local3, _local4);
localeChain = _local3;
}
public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{
var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
if (!_local4){
return (null);
};
var _local5:* = _local4.content[_arg2];
return ((_local5 as Class));
}
public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{
var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
if (!_local4){
return (NaN);
};
var _local5:* = _local4.content[_arg2];
return (Number(_local5));
}
public function update():void{
dispatchEvent(new Event(Event.CHANGE));
}
public function getBundleNamesForLocale(_arg1:String):Array{
var _local3:String;
var _local2:Array = [];
for (_local3 in localeMap[_arg1]) {
_local2.push(_local3);
};
return (_local2);
}
public function removeResourceBundle(_arg1:String, _arg2:String):void{
delete localeMap[_arg1][_arg2];
if (getBundleNamesForLocale(_arg1).length == 0){
delete localeMap[_arg1];
};
}
public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{
var _local7:String;
var _local8:int;
var _local9:String;
var _local4:int = (_arg2) ? _arg2.length : 0;
var _local5:int = (_arg3) ? _arg3.length : 0;
var _local6:int;
while (_local6 < _local4) {
_local7 = _arg2[_local6];
_local8 = 0;
while (_local8 < _local5) {
_local9 = _arg3[_local8];
mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9);
_local8++;
};
_local6++;
};
}
public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{
var _local5:String;
var _local6:Object;
var _local7:ResourceBundle;
if (!_localeChain){
return (null);
};
var _local3:int = _localeChain.length;
var _local4:int;
while (_local4 < _local3) {
_local5 = localeChain[_local4];
_local6 = localeMap[_local5];
if (!_local6){
} else {
_local7 = _local6[_arg1];
if (!_local7){
} else {
if ((_arg2 in _local7.content)){
return (_local7);
};
};
};
_local4++;
};
return (null);
}
public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{
var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
if (!_local4){
return (0);
};
var _local5:* = _local4.content[_arg2];
return (uint(_local5));
}
public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{
var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
if (!_local4){
return (false);
};
var _local5:* = _local4.content[_arg2];
return ((String(_local5).toLowerCase() == "true"));
}
public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{
throw (new Error("unloadResourceModule() is not yet implemented."));
}
public static function getInstance():IResourceManager{
if (!instance){
instance = new (ResourceManagerImpl);
};
return (instance);
}
}
}//package mx.resources
import flash.events.*;
import mx.modules.*;
import mx.events.*;
class ResourceModuleInfo {
public var resourceModule:IResourceModule;
public var errorHandler:Function;
public var readyHandler:Function;
public var moduleInfo:IModuleInfo;
private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){
this.moduleInfo = _arg1;
this.readyHandler = _arg2;
this.errorHandler = _arg3;
}
}
class ResourceEventDispatcher extends EventDispatcher {
private function ResourceEventDispatcher(_arg1:IModuleInfo){
_arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true);
_arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true);
_arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true);
}
private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{
var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = _arg1.bytesLoaded;
_local2.bytesTotal = _arg1.bytesTotal;
dispatchEvent(_local2);
}
private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{
var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE);
dispatchEvent(_local2);
}
private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{
var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = _arg1.bytesLoaded;
_local2.bytesTotal = _arg1.bytesTotal;
_local2.errorText = _arg1.errorText;
dispatchEvent(_local2);
}
}
Section 566
//HaloBorder (mx.skins.halo.HaloBorder)
package mx.skins.halo {
import mx.core.*;
import flash.display.*;
import mx.styles.*;
import mx.skins.*;
import mx.graphics.*;
import mx.utils.*;
public class HaloBorder extends RectangularBorder {
mx_internal var radiusObj:Object;
mx_internal var backgroundHole:Object;
mx_internal var radius:Number;
mx_internal var bRoundedCorners:Boolean;
mx_internal var backgroundColor:Object;
private var dropShadow:RectangularDropShadow;
protected var _borderMetrics:EdgeMetrics;
mx_internal var backgroundAlphaName:String;
mx_internal static const VERSION:String = "3.0.0.0";
private static var BORDER_WIDTHS:Object = {none:0, solid:1, inset:2, outset:2, alert:3, dropdown:2, menuBorder:1, comboNonEdit:2};
public function HaloBorder(){
BORDER_WIDTHS["default"] = 3;
}
override public function styleChanged(_arg1:String):void{
if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){
_borderMetrics = null;
};
invalidateDisplayList();
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
if (((isNaN(_arg1)) || (isNaN(_arg2)))){
return;
};
super.updateDisplayList(_arg1, _arg2);
backgroundColor = getBackgroundColor();
bRoundedCorners = false;
backgroundAlphaName = "backgroundAlpha";
backgroundHole = null;
radius = 0;
radiusObj = null;
drawBorder(_arg1, _arg2);
drawBackground(_arg1, _arg2);
}
mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{
var _local5:Number;
var _local6:uint;
var _local7:uint;
var _local8:String;
var _local9:Number;
var _local10:uint;
var _local11:Boolean;
var _local12:uint;
var _local13:Array;
var _local14:Array;
var _local15:uint;
var _local16:uint;
var _local17:uint;
var _local18:uint;
var _local19:Boolean;
var _local20:Object;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Object;
var _local27:Number;
var _local28:Number;
var _local29:IContainer;
var _local30:EdgeMetrics;
var _local31:Boolean;
var _local32:Number;
var _local33:Array;
var _local34:uint;
var _local35:Boolean;
var _local36:Number;
var _local3:String = getStyle("borderStyle");
var _local4:Array = getStyle("highlightAlphas");
var _local21:Boolean;
var _local26:Graphics = graphics;
_local26.clear();
if (_local3){
switch (_local3){
case "none":
break;
case "inset":
_local7 = getStyle("borderColor");
_local22 = ColorUtil.adjustBrightness2(_local7, -40);
_local23 = ColorUtil.adjustBrightness2(_local7, 25);
_local24 = ColorUtil.adjustBrightness2(_local7, 40);
_local25 = backgroundColor;
if ((((_local25 === null)) || ((_local25 === "")))){
_local25 = _local7;
};
draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25));
break;
case "outset":
_local7 = getStyle("borderColor");
_local22 = ColorUtil.adjustBrightness2(_local7, -40);
_local23 = ColorUtil.adjustBrightness2(_local7, -25);
_local24 = ColorUtil.adjustBrightness2(_local7, 40);
_local25 = backgroundColor;
if ((((_local25 === null)) || ((_local25 === "")))){
_local25 = _local7;
};
draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25));
break;
case "alert":
case "default":
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
_local27 = getStyle("backgroundAlpha");
_local5 = getStyle("borderAlpha");
backgroundAlphaName = "borderAlpha";
radius = getStyle("cornerRadius");
bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true");
_local28 = (bRoundedCorners) ? radius : 0;
drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28);
if (!bRoundedCorners){
radiusObj = {};
};
_local29 = (parent as IContainer);
if (_local29){
_local30 = _local29.viewMetrics;
backgroundHole = {x:_local30.left, y:_local30.top, w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)), h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)), r:0};
if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){
if (_local27 != _local5){
drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0);
};
_local26.beginFill(Number(backgroundColor), _local27);
_local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h);
_local26.endFill();
};
};
backgroundColor = getStyle("borderColor");
};
break;
case "dropdown":
_local12 = getStyle("dropdownBorderColor");
drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4);
drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, 5068126, 1);
drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2));
drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1);
drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3)));
if (!isNaN(_local12)){
drawRoundRect(0, 0, (_arg1 + 1), _arg2, {tl:4, tr:0, br:0, bl:4}, _local12, 0.5);
drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1);
drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3)));
};
backgroundColor = null;
break;
case "menuBorder":
_local7 = getStyle("borderColor");
drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1);
drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0);
break;
case "comboNonEdit":
break;
case "controlBar":
if ((((_arg1 == 0)) || ((_arg2 == 0)))){
backgroundColor = null;
break;
};
_local14 = getStyle("footerColors");
_local31 = !((_local14 == null));
_local32 = getStyle("borderAlpha");
if (_local31){
_local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32);
_local26.moveTo(0, 0);
_local26.lineTo(_arg1, 0);
_local26.lineStyle(0, 0, 0);
if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){
radius = IStyleClient(parent.parent).getStyle("cornerRadius");
_local32 = IStyleClient(parent.parent).getStyle("borderAlpha");
};
if (isNaN(radius)){
radius = 0;
};
if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){
radius = 0;
};
drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2));
if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){
drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2));
drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {tl:0, tr:0, bl:(radius - 1), br:(radius - 1)}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2));
};
};
backgroundColor = null;
break;
case "applicationControlBar":
_local13 = getStyle("fillColors");
_local5 = getStyle("backgroundAlpha");
_local4 = getStyle("highlightAlphas");
_local33 = getStyle("fillAlphas");
_local11 = getStyle("docked");
_local34 = uint(backgroundColor);
radius = getStyle("cornerRadius");
if (!radius){
radius = 0;
};
drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius);
if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){
drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2));
};
drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2));
drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {tl:radius, tr:radius, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1)));
drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {x:0, y:2, w:_arg1, h:(_arg2 - 2), r:{tl:radius, tr:radius, bl:0, br:0}});
backgroundColor = null;
break;
default:
_local7 = getStyle("borderColor");
_local9 = getStyle("borderThickness");
_local8 = getStyle("borderSides");
_local35 = true;
radius = getStyle("cornerRadius");
bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true");
_local36 = Math.max((radius - _local9), 0);
_local20 = {x:_local9, y:_local9, w:(_arg1 - (_local9 * 2)), h:(_arg2 - (_local9 * 2)), r:_local36};
if (!bRoundedCorners){
radiusObj = {tl:radius, tr:radius, bl:0, br:0};
_local20.r = {tl:_local36, tr:_local36, bl:0, br:0};
};
if (_local8 != "left top right bottom"){
_local20.r = {tl:_local36, tr:_local36, bl:(bRoundedCorners) ? _local36 : 0, br:(bRoundedCorners) ? _local36 : 0};
radiusObj = {tl:radius, tr:radius, bl:(bRoundedCorners) ? radius : 0, br:(bRoundedCorners) ? radius : 0};
_local8 = _local8.toLowerCase();
if (_local8.indexOf("left") == -1){
_local20.x = 0;
_local20.w = (_local20.w + _local9);
_local20.r.tl = 0;
_local20.r.bl = 0;
radiusObj.tl = 0;
radiusObj.bl = 0;
_local35 = false;
};
if (_local8.indexOf("top") == -1){
_local20.y = 0;
_local20.h = (_local20.h + _local9);
_local20.r.tl = 0;
_local20.r.tr = 0;
radiusObj.tl = 0;
radiusObj.tr = 0;
_local35 = false;
};
if (_local8.indexOf("right") == -1){
_local20.w = (_local20.w + _local9);
_local20.r.tr = 0;
_local20.r.br = 0;
radiusObj.tr = 0;
radiusObj.br = 0;
_local35 = false;
};
if (_local8.indexOf("bottom") == -1){
_local20.h = (_local20.h + _local9);
_local20.r.bl = 0;
_local20.r.br = 0;
radiusObj.bl = 0;
radiusObj.br = 0;
_local35 = false;
};
};
if ((((radius == 0)) && (_local35))){
drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0);
_local26.beginFill(_local7);
_local26.drawRect(0, 0, _arg1, _arg2);
_local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9)));
_local26.endFill();
} else {
if (radiusObj){
drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl);
drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20);
radiusObj.tl = Math.max((radius - _local9), 0);
radiusObj.tr = Math.max((radius - _local9), 0);
radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0;
radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0;
} else {
drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius);
drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20);
radius = Math.max((getStyle("cornerRadius") - _local9), 0);
};
};
};
};
}
mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{
var _local4:Number;
var _local5:Number;
var _local6:EdgeMetrics;
var _local7:Graphics;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Number;
if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){
_local4 = Number(backgroundColor);
_local5 = 1;
_local6 = getBackgroundColorMetrics();
_local7 = graphics;
if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){
_local5 = 0;
_local4 = 0xFFFFFF;
} else {
_local5 = getStyle(backgroundAlphaName);
};
if (((!((radius == 0))) || (backgroundHole))){
_local8 = _local6.bottom;
if (radiusObj){
_local9 = (bRoundedCorners) ? radius : 0;
radiusObj = {tl:radius, tr:radius, bl:_local9, br:_local9};
drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole);
} else {
drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole);
};
} else {
_local7.beginFill(_local4, _local5);
_local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top));
_local7.endFill();
};
};
var _local3:String = getStyle("borderStyle");
if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){
_local10 = getStyle("highlightAlphas");
_local11 = (_local10) ? _local10[0] : 0.3;
drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local11, null, GradientType.LINEAR, null, {x:0, y:1, w:_arg1, h:(_arg2 - 1), r:{tl:radius, tr:radius, bl:0, br:0}});
};
}
mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{
var _local11:Number;
var _local12:Boolean;
if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){
return;
};
var _local9:Number = getStyle("shadowDistance");
var _local10:String = getStyle("shadowDirection");
if (getStyle("borderStyle") == "applicationControlBar"){
_local12 = getStyle("docked");
_local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10);
_local9 = Math.abs(_local9);
} else {
_local11 = getDropShadowAngle(_local9, _local10);
_local9 = (Math.abs(_local9) + 2);
};
if (!dropShadow){
dropShadow = new RectangularDropShadow();
};
dropShadow.distance = _local9;
dropShadow.angle = _local11;
dropShadow.color = getStyle("dropShadowColor");
dropShadow.alpha = 0.4;
dropShadow.tlRadius = _arg5;
dropShadow.trRadius = _arg6;
dropShadow.blRadius = _arg8;
dropShadow.brRadius = _arg7;
dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4);
}
mx_internal function getBackgroundColor():Object{
var _local2:Object;
var _local1:IUIComponent = (parent as IUIComponent);
if (((_local1) && (!(_local1.enabled)))){
_local2 = getStyle("backgroundDisabledColor");
if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){
return (_local2);
};
};
return (getStyle("backgroundColor"));
}
mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
var _local7:Number = width;
var _local8:Number = height;
drawDropShadow(0, 0, width, height, 0, 0, 0, 0);
var _local9:Graphics = graphics;
_local9.beginFill(_arg1);
_local9.drawRect(0, 0, _local7, _local8);
_local9.drawRect(1, 0, (_local7 - 2), _local8);
_local9.endFill();
_local9.beginFill(_arg2);
_local9.drawRect(1, 0, (_local7 - 2), 1);
_local9.endFill();
_local9.beginFill(_arg3);
_local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1);
_local9.endFill();
_local9.beginFill(_arg4);
_local9.drawRect(1, 1, (_local7 - 2), 1);
_local9.endFill();
_local9.beginFill(_arg5);
_local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1);
_local9.endFill();
_local9.beginFill(_arg6);
_local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4));
_local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4));
_local9.endFill();
}
mx_internal function getBackgroundColorMetrics():EdgeMetrics{
return (borderMetrics);
}
mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{
if (_arg2 == "left"){
return (((_arg1 >= 0)) ? 135 : 225);
//unresolved jump
};
if (_arg2 == "right"){
return (((_arg1 >= 0)) ? 45 : 315);
//unresolved jump
};
return (((_arg1 >= 0)) ? 90 : 270);
}
override public function get borderMetrics():EdgeMetrics{
var _local1:Number;
var _local3:String;
if (_borderMetrics){
return (_borderMetrics);
};
var _local2:String = getStyle("borderStyle");
if ((((_local2 == "default")) || ((_local2 == "alert")))){
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
_borderMetrics = new EdgeMetrics(0, 0, 0, 0);
} else {
return (EdgeMetrics.EMPTY);
};
} else {
if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){
_borderMetrics = new EdgeMetrics(1, 1, 1, 1);
} else {
if (_local2 == "solid"){
_local1 = getStyle("borderThickness");
if (isNaN(_local1)){
_local1 = 0;
};
_borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1);
_local3 = getStyle("borderSides");
if (_local3 != "left top right bottom"){
if (_local3.indexOf("left") == -1){
_borderMetrics.left = 0;
};
if (_local3.indexOf("top") == -1){
_borderMetrics.top = 0;
};
if (_local3.indexOf("right") == -1){
_borderMetrics.right = 0;
};
if (_local3.indexOf("bottom") == -1){
_borderMetrics.bottom = 0;
};
};
} else {
_local1 = BORDER_WIDTHS[_local2];
if (isNaN(_local1)){
_local1 = 0;
};
_borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1);
};
};
};
return (_borderMetrics);
}
}
}//package mx.skins.halo
Section 567
//HaloFocusRect (mx.skins.halo.HaloFocusRect)
package mx.skins.halo {
import flash.display.*;
import mx.styles.*;
import mx.skins.*;
import mx.utils.*;
public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient {
private var _focusColor:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public function get inheritingStyles():Object{
return (styleName.inheritingStyles);
}
public function set inheritingStyles(_arg1:Object):void{
}
public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{
}
public function registerEffects(_arg1:Array):void{
}
public function regenerateStyleCache(_arg1:Boolean):void{
}
public function get styleDeclaration():CSSStyleDeclaration{
return (CSSStyleDeclaration(styleName));
}
public function getClassStyleDeclarations():Array{
return ([]);
}
public function get className():String{
return ("HaloFocusRect");
}
public function clearStyle(_arg1:String):void{
if (_arg1 == "focusColor"){
_focusColor = NaN;
};
}
public function setStyle(_arg1:String, _arg2):void{
if (_arg1 == "focusColor"){
_focusColor = _arg2;
};
}
public function set nonInheritingStyles(_arg1:Object):void{
}
public function get nonInheritingStyles():Object{
return (styleName.nonInheritingStyles);
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
super.updateDisplayList(_arg1, _arg2);
var _local3:String = getStyle("focusBlendMode");
var _local4:Number = getStyle("focusAlpha");
var _local5:Number = getStyle("focusColor");
var _local6:Number = getStyle("cornerRadius");
var _local7:Number = getStyle("focusThickness");
var _local8:String = getStyle("focusRoundedCorners");
var _local9:Number = getStyle("themeColor");
var _local10:Number = _local5;
if (isNaN(_local10)){
_local10 = _local9;
};
var _local11:Graphics = graphics;
_local11.clear();
blendMode = _local3;
if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){
_local12 = 0;
_local13 = 0;
_local14 = 0;
_local15 = 0;
_local16 = (_local6 + _local7);
if (_local8.indexOf("tl") >= 0){
_local12 = _local16;
};
if (_local8.indexOf("tr") >= 0){
_local14 = _local16;
};
if (_local8.indexOf("bl") >= 0){
_local13 = _local16;
};
if (_local8.indexOf("br") >= 0){
_local15 = _local16;
};
_local11.beginFill(_local10, _local4);
GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15);
_local12 = (_local12) ? _local6 : 0;
_local14 = (_local14) ? _local6 : 0;
_local13 = (_local13) ? _local6 : 0;
_local15 = (_local15) ? _local6 : 0;
GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15);
_local11.endFill();
_local16 = (_local6 + (_local7 / 2));
_local12 = (_local12) ? _local16 : 0;
_local14 = (_local14) ? _local16 : 0;
_local13 = (_local13) ? _local16 : 0;
_local15 = (_local15) ? _local16 : 0;
_local11.beginFill(_local10, _local4);
GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15);
_local12 = (_local12) ? _local6 : 0;
_local14 = (_local14) ? _local6 : 0;
_local13 = (_local13) ? _local6 : 0;
_local15 = (_local15) ? _local6 : 0;
GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15);
_local11.endFill();
} else {
_local11.beginFill(_local10, _local4);
_local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2);
_local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17);
_local17 = (_local6 * 2);
_local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17);
_local11.endFill();
_local11.beginFill(_local10, _local4);
_local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2);
_local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17);
_local17 = (_local6 * 2);
_local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17);
_local11.endFill();
};
}
override public function getStyle(_arg1:String){
return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1));
}
public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{
}
}
}//package mx.skins.halo
Section 568
//Border (mx.skins.Border)
package mx.skins {
import mx.core.*;
public class Border extends ProgrammaticSkin implements IBorder {
mx_internal static const VERSION:String = "3.0.0.0";
public function get borderMetrics():EdgeMetrics{
return (EdgeMetrics.EMPTY);
}
}
}//package mx.skins
Section 569
//ProgrammaticSkin (mx.skins.ProgrammaticSkin)
package mx.skins {
import mx.core.*;
import flash.display.*;
import mx.styles.*;
import flash.geom.*;
import mx.managers.*;
import mx.utils.*;
public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin {
private var _initialized:Boolean;// = false
private var _height:Number;
private var invalidateDisplayListFlag:Boolean;// = false
private var _styleName:IStyleClient;
private var _nestLevel:int;// = 0
private var _processedDescriptors:Boolean;// = false
private var _updateCompletePendingFlag:Boolean;// = true
private var _width:Number;
mx_internal static const VERSION:String = "3.0.0.0";
private static var tempMatrix:Matrix = new Matrix();
public function ProgrammaticSkin(){
_width = measuredWidth;
_height = measuredHeight;
}
public function getStyle(_arg1:String){
return (_styleName.getStyle(_arg1));
}
protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
}
public function get nestLevel():int{
return (_nestLevel);
}
public function set nestLevel(_arg1:int):void{
_nestLevel = _arg1;
invalidateDisplayList();
}
override public function get height():Number{
return (_height);
}
public function get updateCompletePendingFlag():Boolean{
return (_updateCompletePendingFlag);
}
protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{
return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90));
}
public function validateSize(_arg1:Boolean=false):void{
}
public function invalidateDisplayList():void{
if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){
invalidateDisplayListFlag = true;
UIComponentGlobals.layoutManager.invalidateDisplayList(this);
};
}
public function set updateCompletePendingFlag(_arg1:Boolean):void{
_updateCompletePendingFlag = _arg1;
}
protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{
return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0));
}
override public function set height(_arg1:Number):void{
_height = _arg1;
invalidateDisplayList();
}
public function set processedDescriptors(_arg1:Boolean):void{
_processedDescriptors = _arg1;
}
public function validateDisplayList():void{
invalidateDisplayListFlag = false;
updateDisplayList(width, height);
}
public function get measuredWidth():Number{
return (0);
}
override public function set width(_arg1:Number):void{
_width = _arg1;
invalidateDisplayList();
}
public function get measuredHeight():Number{
return (0);
}
public function set initialized(_arg1:Boolean):void{
_initialized = _arg1;
}
protected function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Matrix=null, _arg9:String="linear", _arg10:Array=null, _arg11:Object=null):void{
var _local13:Number;
var _local14:Array;
var _local15:Object;
var _local12:Graphics = graphics;
if ((((_arg3 == 0)) || ((_arg4 == 0)))){
return;
};
if (_arg6 !== null){
if ((_arg6 is uint)){
_local12.beginFill(uint(_arg6), Number(_arg7));
} else {
if ((_arg6 is Array)){
_local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7];
if (!_arg10){
_arg10 = [0, 0xFF];
};
_local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8);
};
};
};
if (!_arg5){
_local12.drawRect(_arg1, _arg2, _arg3, _arg4);
} else {
if ((_arg5 is Number)){
_local13 = (Number(_arg5) * 2);
_local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13);
} else {
GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br);
};
};
if (_arg11){
_local15 = _arg11.r;
if ((_local15 is Number)){
_local13 = (Number(_local15) * 2);
_local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13);
} else {
GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br);
};
};
if (_arg6 !== null){
_local12.endFill();
};
}
public function get processedDescriptors():Boolean{
return (_processedDescriptors);
}
public function set styleName(_arg1:Object):void{
if (_styleName != _arg1){
_styleName = (_arg1 as IStyleClient);
invalidateDisplayList();
};
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
var _local3:Boolean;
if (_width != _arg1){
_width = _arg1;
_local3 = true;
};
if (_height != _arg2){
_height = _arg2;
_local3 = true;
};
if (_local3){
invalidateDisplayList();
};
}
public function styleChanged(_arg1:String):void{
invalidateDisplayList();
}
override public function get width():Number{
return (_width);
}
public function invalidateProperties():void{
}
public function get initialized():Boolean{
return (_initialized);
}
protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{
tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2);
return (tempMatrix);
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get styleName():Object{
return (_styleName);
}
public function validateNow():void{
if (invalidateDisplayListFlag){
validateDisplayList();
};
}
public function invalidateSize():void{
}
public function validateProperties():void{
}
}
}//package mx.skins
Section 570
//RectangularBorder (mx.skins.RectangularBorder)
package mx.skins {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import mx.styles.*;
import flash.system.*;
import flash.geom.*;
import flash.net.*;
import mx.resources.*;
import flash.utils.*;
public class RectangularBorder extends Border implements IRectangularBorder {
private var backgroundImage:DisplayObject;
private var backgroundImageHeight:Number;
private var _backgroundImageBounds:Rectangle;
private var backgroundImageStyle:Object;
private var backgroundImageWidth:Number;
private var resourceManager:IResourceManager;
mx_internal static const VERSION:String = "3.0.0.0";
public function RectangularBorder(){
resourceManager = ResourceManager.getInstance();
super();
addEventListener(Event.REMOVED, removedHandler);
}
public function layoutBackgroundImage():void{
var _local4:Number;
var _local5:Number;
var _local7:Number;
var _local8:Number;
var _local14:Number;
var _local15:Graphics;
var _local1:DisplayObject = parent;
var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics;
var _local3 = !((getStyle("backgroundAttachment") == "fixed"));
if (_backgroundImageBounds){
_local4 = _backgroundImageBounds.width;
_local5 = _backgroundImageBounds.height;
} else {
_local4 = ((width - _local2.left) - _local2.right);
_local5 = ((height - _local2.top) - _local2.bottom);
};
var _local6:Number = getBackgroundSize();
if (isNaN(_local6)){
_local7 = 1;
_local8 = 1;
} else {
_local14 = (_local6 * 0.01);
_local7 = ((_local14 * _local4) / backgroundImageWidth);
_local8 = ((_local14 * _local5) / backgroundImageHeight);
};
backgroundImage.scaleX = _local7;
backgroundImage.scaleY = _local8;
var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7))));
var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8))));
backgroundImage.x = _local2.left;
backgroundImage.y = _local2.top;
var _local11:Shape = Shape(backgroundImage.mask);
_local11.x = _local2.left;
_local11.y = _local2.top;
if (((_local3) && ((_local1 is IContainer)))){
_local9 = (_local9 - IContainer(_local1).horizontalScrollPosition);
_local10 = (_local10 - IContainer(_local1).verticalScrollPosition);
};
backgroundImage.alpha = getStyle("backgroundAlpha");
backgroundImage.x = (backgroundImage.x + _local9);
backgroundImage.y = (backgroundImage.y + _local10);
var _local12:Number = ((width - _local2.left) - _local2.right);
var _local13:Number = ((height - _local2.top) - _local2.bottom);
if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){
_local15 = _local11.graphics;
_local15.clear();
_local15.beginFill(0xFFFFFF);
_local15.drawRect(0, 0, _local12, _local13);
_local15.endFill();
};
}
public function set backgroundImageBounds(_arg1:Rectangle):void{
_backgroundImageBounds = _arg1;
invalidateDisplayList();
}
private function getBackgroundSize():Number{
var _local3:int;
var _local1:Number = NaN;
var _local2:Object = getStyle("backgroundSize");
if (((_local2) && ((_local2 is String)))){
_local3 = _local2.indexOf("%");
if (_local3 != -1){
_local1 = Number(_local2.substr(0, _local3));
};
};
return (_local1);
}
private function removedHandler(_arg1:Event):void{
var _local2:IChildList;
if (backgroundImage){
_local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent);
_local2.removeChild(backgroundImage.mask);
_local2.removeChild(backgroundImage);
backgroundImage = null;
};
}
private function initBackgroundImage(_arg1:DisplayObject):void{
backgroundImage = _arg1;
if ((_arg1 is Loader)){
backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width;
backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height;
} else {
backgroundImageWidth = backgroundImage.width;
backgroundImageHeight = backgroundImage.height;
if ((_arg1 is ISimpleStyleClient)){
ISimpleStyleClient(_arg1).styleName = styleName;
};
};
var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent);
var _local3:Shape = new FlexShape();
_local3.name = "backgroundMask";
_local3.x = 0;
_local3.y = 0;
_local2.addChild(_local3);
var _local4:int = _local2.getChildIndex(this);
_local2.addChildAt(backgroundImage, (_local4 + 1));
backgroundImage.mask = _local3;
}
public function get backgroundImageBounds():Rectangle{
return (_backgroundImageBounds);
}
public function get hasBackgroundImage():Boolean{
return (!((backgroundImage == null)));
}
private function completeEventHandler(_arg1:Event):void{
if (!parent){
return;
};
var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader);
initBackgroundImage(_local2);
layoutBackgroundImage();
dispatchEvent(_arg1.clone());
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
var cls:Class;
var newStyleObj:DisplayObject;
var loader:Loader;
var loaderContext:LoaderContext;
var message:String;
var unscaledWidth = _arg1;
var unscaledHeight = _arg2;
if (!parent){
return;
};
var newStyle:Object = getStyle("backgroundImage");
if (newStyle != backgroundImageStyle){
removedHandler(null);
backgroundImageStyle = newStyle;
if (((newStyle) && ((newStyle as Class)))){
cls = Class(newStyle);
initBackgroundImage(new (cls));
} else {
if (((newStyle) && ((newStyle is String)))){
try {
cls = Class(getDefinitionByName(String(newStyle)));
} catch(e:Error) {
};
if (cls){
newStyleObj = new (cls);
initBackgroundImage(newStyleObj);
} else {
loader = new FlexLoader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler);
loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler);
loaderContext = new LoaderContext();
loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
loader.load(new URLRequest(String(newStyle)), loaderContext);
};
} else {
if (newStyle){
message = resourceManager.getString("skins", "notLoaded", [newStyle]);
throw (new Error(message));
};
};
};
};
if (backgroundImage){
layoutBackgroundImage();
};
}
private function errorEventHandler(_arg1:Event):void{
}
}
}//package mx.skins
Section 571
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration)
package mx.styles {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import mx.managers.*;
import flash.utils.*;
public class CSSStyleDeclaration extends EventDispatcher {
mx_internal var effects:Array;
protected var overrides:Object;
public var defaultFactory:Function;
public var factory:Function;
mx_internal var selectorRefCount:int;// = 0
private var styleManager:IStyleManager2;
private var clones:Dictionary;
mx_internal static const VERSION:String = "3.0.0.0";
private static const NOT_A_COLOR:uint = 4294967295;
private static const FILTERMAP_PROP:String = "__reserved__filterMap";
public function CSSStyleDeclaration(_arg1:String=null){
clones = new Dictionary(true);
super();
if (_arg1){
styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2);
styleManager.setStyleDeclaration(_arg1, this, false);
};
}
mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{
var p:String;
var emptyObjectFactory:Function;
var filteredChain:Object;
var filterObjectFactory:Function;
var i:String;
var chain = _arg1;
var target = _arg2;
var filterMap = _arg3;
var nodeAddedToChain:Boolean;
var originalChain:Object = chain;
if (filterMap){
chain = {};
};
if (defaultFactory != null){
defaultFactory.prototype = chain;
chain = new defaultFactory();
nodeAddedToChain = true;
};
if (factory != null){
factory.prototype = chain;
chain = new factory();
nodeAddedToChain = true;
};
if (overrides){
if ((((defaultFactory == null)) && ((factory == null)))){
emptyObjectFactory = function ():void{
};
emptyObjectFactory.prototype = chain;
chain = new (emptyObjectFactory);
nodeAddedToChain = true;
};
for (p in overrides) {
if (overrides[p] === undefined){
delete chain[p];
} else {
chain[p] = overrides[p];
};
};
};
if (filterMap){
if (nodeAddedToChain){
filteredChain = {};
filterObjectFactory = function ():void{
};
filterObjectFactory.prototype = originalChain;
filteredChain = new (filterObjectFactory);
for (i in chain) {
if (filterMap[i] != null){
filteredChain[filterMap[i]] = chain[i];
};
};
chain = filteredChain;
chain[FILTERMAP_PROP] = filterMap;
} else {
chain = originalChain;
};
};
if (nodeAddedToChain){
clones[chain] = 1;
};
return (chain);
}
public function getStyle(_arg1:String){
var _local2:*;
var _local3:*;
if (overrides){
if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){
return (undefined);
};
_local3 = overrides[_arg1];
if (_local3 !== undefined){
return (_local3);
};
};
if (factory != null){
factory.prototype = {};
_local2 = new factory();
_local3 = _local2[_arg1];
if (_local3 !== undefined){
return (_local3);
};
};
if (defaultFactory != null){
defaultFactory.prototype = {};
_local2 = new defaultFactory();
_local3 = _local2[_arg1];
if (_local3 !== undefined){
return (_local3);
};
};
return (undefined);
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, undefined);
}
public function setStyle(_arg1:String, _arg2):void{
var _local7:int;
var _local8:Object;
var _local3:Object = getStyle(_arg1);
var _local4:Boolean;
if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){
_local4 = true;
};
if (_arg2 !== undefined){
setStyle(_arg1, _arg2);
} else {
if (_arg2 == _local3){
return;
};
setStyle(_arg1, _arg2);
};
var _local5:Array = SystemManagerGlobals.topLevelSystemManagers;
var _local6:int = _local5.length;
if (_local4){
_local7 = 0;
while (_local7 < _local6) {
_local8 = _local5[_local7];
_local8.regenerateStyleCache(true);
_local7++;
};
};
_local7 = 0;
while (_local7 < _local6) {
_local8 = _local5[_local7];
_local8.notifyStyleChangeInChildren(_arg1, true);
_local7++;
};
}
private function clearStyleAttr(_arg1:String):void{
var _local2:*;
if (!overrides){
overrides = {};
};
overrides[_arg1] = undefined;
for (_local2 in clones) {
delete _local2[_arg1];
};
}
mx_internal function createProtoChainRoot():Object{
var _local1:Object = {};
if (defaultFactory != null){
defaultFactory.prototype = _local1;
_local1 = new defaultFactory();
};
if (factory != null){
factory.prototype = _local1;
_local1 = new factory();
};
clones[_local1] = 1;
return (_local1);
}
mx_internal function clearOverride(_arg1:String):void{
if (((overrides) && (overrides[_arg1]))){
delete overrides[_arg1];
};
}
mx_internal function setStyle(_arg1:String, _arg2):void{
var _local3:Object;
var _local4:*;
var _local5:Number;
var _local6:Object;
if (_arg2 === undefined){
clearStyleAttr(_arg1);
return;
};
if ((_arg2 is String)){
if (!styleManager){
styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2);
};
_local5 = styleManager.getColorName(_arg2);
if (_local5 != NOT_A_COLOR){
_arg2 = _local5;
};
};
if (defaultFactory != null){
_local3 = new defaultFactory();
if (_local3[_arg1] !== _arg2){
if (!overrides){
overrides = {};
};
overrides[_arg1] = _arg2;
} else {
if (overrides){
delete overrides[_arg1];
};
};
};
if (factory != null){
_local3 = new factory();
if (_local3[_arg1] !== _arg2){
if (!overrides){
overrides = {};
};
overrides[_arg1] = _arg2;
} else {
if (overrides){
delete overrides[_arg1];
};
};
};
if ((((defaultFactory == null)) && ((factory == null)))){
if (!overrides){
overrides = {};
};
overrides[_arg1] = _arg2;
};
for (_local4 in clones) {
_local6 = _local4[FILTERMAP_PROP];
if (_local6){
if (_local6[_arg1] != null){
_local4[_local6[_arg1]] = _arg2;
};
} else {
_local4[_arg1] = _arg2;
};
};
}
}
}//package mx.styles
Section 572
//ISimpleStyleClient (mx.styles.ISimpleStyleClient)
package mx.styles {
public interface ISimpleStyleClient {
function set styleName(_arg1:Object):void;
function styleChanged(_arg1:String):void;
function get styleName():Object;
}
}//package mx.styles
Section 573
//IStyleClient (mx.styles.IStyleClient)
package mx.styles {
public interface IStyleClient extends ISimpleStyleClient {
function regenerateStyleCache(_arg1:Boolean):void;
function get className():String;
function clearStyle(_arg1:String):void;
function getClassStyleDeclarations():Array;
function get inheritingStyles():Object;
function set nonInheritingStyles(_arg1:Object):void;
function setStyle(_arg1:String, _arg2):void;
function get styleDeclaration():CSSStyleDeclaration;
function set styleDeclaration(_arg1:CSSStyleDeclaration):void;
function get nonInheritingStyles():Object;
function set inheritingStyles(_arg1:Object):void;
function getStyle(_arg1:String);
function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void;
function registerEffects(_arg1:Array):void;
}
}//package mx.styles
Section 574
//IStyleManager (mx.styles.IStyleManager)
package mx.styles {
import flash.events.*;
public interface IStyleManager {
function isColorName(_arg1:String):Boolean;
function registerParentDisplayListInvalidatingStyle(_arg1:String):void;
function registerInheritingStyle(_arg1:String):void;
function set stylesRoot(_arg1:Object):void;
function get typeSelectorCache():Object;
function styleDeclarationsChanged():void;
function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void;
function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean;
function isSizeInvalidatingStyle(_arg1:String):Boolean;
function get inheritingStyles():Object;
function isValidStyleValue(_arg1):Boolean;
function isParentSizeInvalidatingStyle(_arg1:String):Boolean;
function getColorName(_arg1:Object):uint;
function set typeSelectorCache(_arg1:Object):void;
function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void;
function getColorNames(_arg1:Array):void;
function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher;
function isInheritingStyle(_arg1:String):Boolean;
function set inheritingStyles(_arg1:Object):void;
function get stylesRoot():Object;
function initProtoChainRoots():void;
function registerColorName(_arg1:String, _arg2:uint):void;
function registerParentSizeInvalidatingStyle(_arg1:String):void;
function registerSizeInvalidatingStyle(_arg1:String):void;
function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void;
function isInheritingTextFormatStyle(_arg1:String):Boolean;
function getStyleDeclaration(_arg1:String):CSSStyleDeclaration;
}
}//package mx.styles
Section 575
//IStyleManager2 (mx.styles.IStyleManager2)
package mx.styles {
import flash.events.*;
import flash.system.*;
public interface IStyleManager2 extends IStyleManager {
function get selectors():Array;
function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher;
}
}//package mx.styles
Section 576
//IStyleModule (mx.styles.IStyleModule)
package mx.styles {
public interface IStyleModule {
function unload():void;
}
}//package mx.styles
Section 577
//StyleManager (mx.styles.StyleManager)
package mx.styles {
import mx.core.*;
import flash.events.*;
import flash.system.*;
public class StyleManager {
mx_internal static const VERSION:String = "3.0.0.0";
public static const NOT_A_COLOR:uint = 4294967295;
private static var _impl:IStyleManager2;
private static var implClassDependency:StyleManagerImpl;
public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{
return (impl.isParentSizeInvalidatingStyle(_arg1));
}
public static function registerInheritingStyle(_arg1:String):void{
impl.registerInheritingStyle(_arg1);
}
mx_internal static function set stylesRoot(_arg1:Object):void{
impl.stylesRoot = _arg1;
}
mx_internal static function get inheritingStyles():Object{
return (impl.inheritingStyles);
}
mx_internal static function styleDeclarationsChanged():void{
impl.styleDeclarationsChanged();
}
public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{
impl.setStyleDeclaration(_arg1, _arg2, _arg3);
}
public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{
impl.registerParentDisplayListInvalidatingStyle(_arg1);
}
mx_internal static function get typeSelectorCache():Object{
return (impl.typeSelectorCache);
}
mx_internal static function set inheritingStyles(_arg1:Object):void{
impl.inheritingStyles = _arg1;
}
public static function isColorName(_arg1:String):Boolean{
return (impl.isColorName(_arg1));
}
public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{
return (impl.isParentDisplayListInvalidatingStyle(_arg1));
}
public static function isSizeInvalidatingStyle(_arg1:String):Boolean{
return (impl.isSizeInvalidatingStyle(_arg1));
}
public static function getColorName(_arg1:Object):uint{
return (impl.getColorName(_arg1));
}
mx_internal static function set typeSelectorCache(_arg1:Object):void{
impl.typeSelectorCache = _arg1;
}
public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{
impl.unloadStyleDeclarations(_arg1, _arg2);
}
public static function getColorNames(_arg1:Array):void{
impl.getColorNames(_arg1);
}
public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{
return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5));
}
private static function get impl():IStyleManager2{
if (!_impl){
_impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2"));
};
return (_impl);
}
public static function isValidStyleValue(_arg1):Boolean{
return (impl.isValidStyleValue(_arg1));
}
mx_internal static function get stylesRoot():Object{
return (impl.stylesRoot);
}
public static function isInheritingStyle(_arg1:String):Boolean{
return (impl.isInheritingStyle(_arg1));
}
mx_internal static function initProtoChainRoots():void{
impl.initProtoChainRoots();
}
public static function registerParentSizeInvalidatingStyle(_arg1:String):void{
impl.registerParentSizeInvalidatingStyle(_arg1);
}
public static function get selectors():Array{
return (impl.selectors);
}
public static function registerSizeInvalidatingStyle(_arg1:String):void{
impl.registerSizeInvalidatingStyle(_arg1);
}
public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{
impl.clearStyleDeclaration(_arg1, _arg2);
}
public static function registerColorName(_arg1:String, _arg2:uint):void{
impl.registerColorName(_arg1, _arg2);
}
public static function isInheritingTextFormatStyle(_arg1:String):Boolean{
return (impl.isInheritingTextFormatStyle(_arg1));
}
public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{
return (impl.getStyleDeclaration(_arg1));
}
}
}//package mx.styles
Section 578
//StyleManagerImpl (mx.styles.StyleManagerImpl)
package mx.styles {
import mx.core.*;
import flash.events.*;
import flash.system.*;
import mx.modules.*;
import mx.events.*;
import mx.resources.*;
import mx.managers.*;
import flash.utils.*;
public class StyleManagerImpl implements IStyleManager2 {
private var _stylesRoot:Object;
private var _selectors:Object;
private var styleModules:Object;
private var _inheritingStyles:Object;
private var resourceManager:IResourceManager;
private var _typeSelectorCache:Object;
mx_internal static const VERSION:String = "3.0.0.0";
private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true};
private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193};
private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true};
private static var instance:IStyleManager2;
private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true};
private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true};
public function StyleManagerImpl(){
_selectors = {};
styleModules = {};
resourceManager = ResourceManager.getInstance();
_inheritingStyles = {};
_typeSelectorCache = {};
super();
}
public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{
_arg2.selectorRefCount++;
_selectors[_arg1] = _arg2;
typeSelectorCache = {};
if (_arg3){
styleDeclarationsChanged();
};
}
public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{
parentDisplayListInvalidatingStyles[_arg1] = true;
}
public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{
var _local2:int;
if (_arg1.charAt(0) != "."){
_local2 = _arg1.lastIndexOf(".");
if (_local2 != -1){
_arg1 = _arg1.substr((_local2 + 1));
};
};
return (_selectors[_arg1]);
}
public function set typeSelectorCache(_arg1:Object):void{
_typeSelectorCache = _arg1;
}
public function isColorName(_arg1:String):Boolean{
return (!((colorNames[_arg1.toLowerCase()] === undefined)));
}
public function set inheritingStyles(_arg1:Object):void{
_inheritingStyles = _arg1;
}
public function getColorNames(_arg1:Array):void{
var _local4:uint;
if (!_arg1){
return;
};
var _local2:int = _arg1.length;
var _local3:int;
while (_local3 < _local2) {
if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){
_local4 = getColorName(_arg1[_local3]);
if (_local4 != StyleManager.NOT_A_COLOR){
_arg1[_local3] = _local4;
};
};
_local3++;
};
}
public function isInheritingTextFormatStyle(_arg1:String):Boolean{
return ((inheritingTextFormatStyles[_arg1] == true));
}
public function registerParentSizeInvalidatingStyle(_arg1:String):void{
parentSizeInvalidatingStyles[_arg1] = true;
}
public function registerColorName(_arg1:String, _arg2:uint):void{
colorNames[_arg1.toLowerCase()] = _arg2;
}
public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{
return ((parentSizeInvalidatingStyles[_arg1] == true));
}
public function registerInheritingStyle(_arg1:String):void{
inheritingStyles[_arg1] = true;
}
public function set stylesRoot(_arg1:Object):void{
_stylesRoot = _arg1;
}
public function get typeSelectorCache():Object{
return (_typeSelectorCache);
}
public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{
return ((parentDisplayListInvalidatingStyles[_arg1] == true));
}
public function isSizeInvalidatingStyle(_arg1:String):Boolean{
return ((sizeInvalidatingStyles[_arg1] == true));
}
public function styleDeclarationsChanged():void{
var _local4:Object;
var _local1:Array = SystemManagerGlobals.topLevelSystemManagers;
var _local2:int = _local1.length;
var _local3:int;
while (_local3 < _local2) {
_local4 = _local1[_local3];
_local4.regenerateStyleCache(true);
_local4.notifyStyleChangeInChildren(null, true);
_local3++;
};
}
public function isValidStyleValue(_arg1):Boolean{
return (!((_arg1 === undefined)));
}
public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{
return (loadStyleDeclarations2(_arg1, _arg2));
}
public function get inheritingStyles():Object{
return (_inheritingStyles);
}
public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{
var _local4:IModuleInfo;
var _local3:StyleModuleInfo = styleModules[_arg1];
if (_local3){
_local3.styleModule.unload();
_local4 = _local3.module;
_local4.unload();
_local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler);
_local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler);
styleModules[_arg1] = null;
};
if (_arg2){
styleDeclarationsChanged();
};
}
public function getColorName(_arg1:Object):uint{
var _local2:Number;
var _local3:*;
if ((_arg1 is String)){
if (_arg1.charAt(0) == "#"){
_local2 = Number(("0x" + _arg1.slice(1)));
return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2));
};
if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){
_local2 = Number(_arg1);
return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2));
};
_local3 = colorNames[_arg1.toLowerCase()];
if (_local3 === undefined){
return (StyleManager.NOT_A_COLOR);
};
return (uint(_local3));
};
return (uint(_arg1));
}
public function isInheritingStyle(_arg1:String):Boolean{
return ((inheritingStyles[_arg1] == true));
}
public function get stylesRoot():Object{
return (_stylesRoot);
}
public function initProtoChainRoots():void{
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
delete _inheritingStyles["textDecoration"];
delete _inheritingStyles["leading"];
};
if (!stylesRoot){
stylesRoot = _selectors["global"].addStyleToProtoChain({}, null);
};
}
public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{
var module:IModuleInfo;
var styleEventDispatcher:StyleEventDispatcher;
var timer:Timer;
var timerHandler:Function;
var url = _arg1;
var update = _arg2;
var applicationDomain = _arg3;
var securityDomain = _arg4;
module = ModuleManager.getModule(url);
var readyHandler:Function = function (_arg1:ModuleEvent):void{
var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create());
styleModules[_arg1.module.url].styleModule = _local2;
if (update){
styleDeclarationsChanged();
};
};
module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true);
styleEventDispatcher = new StyleEventDispatcher(module);
var errorHandler:Function = function (_arg1:ModuleEvent):void{
var _local3:StyleEvent;
var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]);
if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){
_local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
_local3.bytesLoaded = 0;
_local3.bytesTotal = 0;
_local3.errorText = _local2;
styleEventDispatcher.dispatchEvent(_local3);
} else {
throw (new Error(_local2));
};
};
module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true);
styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler);
timer = new Timer(0);
timerHandler = function (_arg1:TimerEvent):void{
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer.stop();
module.load(applicationDomain, securityDomain);
};
timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true);
timer.start();
return (styleEventDispatcher);
}
public function registerSizeInvalidatingStyle(_arg1:String):void{
sizeInvalidatingStyles[_arg1] = true;
}
public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{
var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1);
if (((_local3) && ((_local3.selectorRefCount > 0)))){
_local3.selectorRefCount--;
};
delete _selectors[_arg1];
if (_arg2){
styleDeclarationsChanged();
};
}
public function get selectors():Array{
var _local2:String;
var _local1:Array = [];
for (_local2 in _selectors) {
_local1.push(_local2);
};
return (_local1);
}
public static function getInstance():IStyleManager2{
if (!instance){
instance = new (StyleManagerImpl);
};
return (instance);
}
}
}//package mx.styles
import flash.events.*;
import mx.modules.*;
import mx.events.*;
class StyleEventDispatcher extends EventDispatcher {
private function StyleEventDispatcher(_arg1:IModuleInfo){
_arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true);
_arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true);
_arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true);
}
private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{
var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = _arg1.bytesLoaded;
_local2.bytesTotal = _arg1.bytesTotal;
dispatchEvent(_local2);
}
private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{
var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE);
dispatchEvent(_local2);
}
private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{
var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = _arg1.bytesLoaded;
_local2.bytesTotal = _arg1.bytesTotal;
_local2.errorText = _arg1.errorText;
dispatchEvent(_local2);
}
}
class StyleModuleInfo {
public var errorHandler:Function;
public var readyHandler:Function;
public var module:IModuleInfo;
public var styleModule:IStyleModule;
private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){
this.module = _arg1;
this.readyHandler = _arg2;
this.errorHandler = _arg3;
}
}
Section 579
//ColorUtil (mx.utils.ColorUtil)
package mx.utils {
public class ColorUtil {
mx_internal static const VERSION:String = "3.0.0.0";
public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (_arg2 == 0){
return (_arg1);
};
if (_arg2 < 0){
_arg2 = ((100 + _arg2) / 100);
_local3 = (((_arg1 >> 16) & 0xFF) * _arg2);
_local4 = (((_arg1 >> 8) & 0xFF) * _arg2);
_local5 = ((_arg1 & 0xFF) * _arg2);
} else {
_arg2 = (_arg2 / 100);
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
_local3 = (_local3 + ((0xFF - _local3) * _arg2));
_local4 = (_local4 + ((0xFF - _local4) * _arg2));
_local5 = (_local5 + ((0xFF - _local5) * _arg2));
_local3 = Math.min(_local3, 0xFF);
_local4 = Math.min(_local4, 0xFF);
_local5 = Math.min(_local5, 0xFF);
};
return ((((_local3 << 16) | (_local4 << 8)) | _local5));
}
public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{
var _local3:Number = ((_arg1 >> 16) & 0xFF);
var _local4:Number = ((_arg1 >> 8) & 0xFF);
var _local5:Number = (_arg1 & 0xFF);
var _local6:Number = ((_arg2 >> 16) & 0xFF);
var _local7:Number = ((_arg2 >> 8) & 0xFF);
var _local8:Number = (_arg2 & 0xFF);
return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF)));
}
public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{
var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0);
var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0);
var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0);
return ((((_local3 << 16) | (_local4 << 8)) | _local5));
}
}
}//package mx.utils
Section 580
//GraphicsUtil (mx.utils.GraphicsUtil)
package mx.utils {
import flash.display.*;
public class GraphicsUtil {
mx_internal static const VERSION:String = "3.0.0.0";
public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{
var _local10:Number = (_arg2 + _arg4);
var _local11:Number = (_arg3 + _arg5);
var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2);
_arg6 = ((_arg6 < _local12)) ? _arg6 : _local12;
_arg7 = ((_arg7 < _local12)) ? _arg7 : _local12;
_arg8 = ((_arg8 < _local12)) ? _arg8 : _local12;
_arg9 = ((_arg9 < _local12)) ? _arg9 : _local12;
var _local13:Number = (_arg9 * 0.292893218813453);
var _local14:Number = (_arg9 * 0.585786437626905);
_arg1.moveTo(_local10, (_local11 - _arg9));
_arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13));
_arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11);
_local13 = (_arg8 * 0.292893218813453);
_local14 = (_arg8 * 0.585786437626905);
_arg1.lineTo((_arg2 + _arg8), _local11);
_arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13));
_arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8));
_local13 = (_arg6 * 0.292893218813453);
_local14 = (_arg6 * 0.585786437626905);
_arg1.lineTo(_arg2, (_arg3 + _arg6));
_arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13));
_arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3);
_local13 = (_arg7 * 0.292893218813453);
_local14 = (_arg7 * 0.585786437626905);
_arg1.lineTo((_local10 - _arg7), _arg3);
_arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13));
_arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7));
_arg1.lineTo(_local10, (_local11 - _arg9));
}
}
}//package mx.utils
Section 581
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.0.0.0";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var _local2:String;
var _local4:String;
var _local5:Array;
var _local3:DisplayObject = _arg1;
while (_local3 != null) {
if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){
break;
};
_local4 = _local3.name;
if ((_local3 is IRepeaterClient)){
_local5 = IRepeaterClient(_local3).instanceIndices;
if (_local5){
_local4 = (_local4 + (("[" + _local5.join("][")) + "]"));
};
};
_local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2);
_local3 = _local3.parent;
};
return (_local2);
}
public static function createUniqueName(_arg1:Object):String{
if (!_arg1){
return (null);
};
var _local2:String = getQualifiedClassName(_arg1);
var _local3:int = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
var _local4:int = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 582
//StringUtil (mx.utils.StringUtil)
package mx.utils {
public class StringUtil {
mx_internal static const VERSION:String = "3.0.0.0";
public static function trim(_arg1:String):String{
if (_arg1 == null){
return ("");
};
var _local2:int;
while (isWhitespace(_arg1.charAt(_local2))) {
_local2++;
};
var _local3:int = (_arg1.length - 1);
while (isWhitespace(_arg1.charAt(_local3))) {
_local3--;
};
if (_local3 >= _local2){
return (_arg1.slice(_local2, (_local3 + 1)));
};
return ("");
}
public static function isWhitespace(_arg1:String):Boolean{
switch (_arg1){
case " ":
case "\t":
case "\r":
case "\n":
case "\f":
return (true);
default:
return (false);
};
}
public static function substitute(_arg1:String, ... _args):String{
var _local4:Array;
if (_arg1 == null){
return ("");
};
var _local3:uint = _args.length;
if ((((_local3 == 1)) && ((_args[0] is Array)))){
_local4 = (_args[0] as Array);
_local3 = _local4.length;
} else {
_local4 = _args;
};
var _local5:int;
while (_local5 < _local3) {
_arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]);
_local5++;
};
return (_arg1);
}
public static function trimArrayElements(_arg1:String, _arg2:String):String{
var _local3:Array;
var _local4:int;
var _local5:int;
if (((!((_arg1 == ""))) && (!((_arg1 == null))))){
_local3 = _arg1.split(_arg2);
_local4 = _local3.length;
_local5 = 0;
while (_local5 < _local4) {
_local3[_local5] = StringUtil.trim(_local3[_local5]);
_local5++;
};
if (_local4 > 0){
_arg1 = _local3.join(_arg2);
};
};
return (_arg1);
}
}
}//package mx.utils
Section 583
//NagScreen (NagScreen.NagScreen)
package NagScreen {
import flash.events.*;
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Layout.*;
import Audio.*;
import Tools.*;
import GameConfig.*;
import GlobalSetup.*;
import flash.external.*;
public class NagScreen extends GameScene {
public var ccc:int;// = 0
public var nextButton:GameObject;
public var allLoaded:Boolean;// = false
public var but1:GameObject;
public var but2:GameObject;
public var leftText:GameObject;
public var iconObjects:Array;
public var OK:GameObject;
public var lastButton:GameObject;
public var gobs:Layout;
public var okClass:Class;
public static var allGames:Array;
public static var nextGame:Class = NagScreen_nextGame;
public static var free2:Class = NagScreen_free2;
public static var lastGame:Class = NagScreen_lastGame;
public static var free1:Class = NagScreen_free1;
public static var dataFetched:Boolean = false;
public static var gameNames:Array = null;
public static var data:SafeRequest;
public static var iconRequests:Array;
public function getTextFromJavascript(_arg1:String):void{
leftText.setText(_arg1);
}
public function getLastGame():NagScreenGame{
if (ccc == 0){
return (allGames[(allGames.length - 1)]);
};
return (allGames[(ccc - 1)]);
}
override public function init():void{
nextButton = new GameObject(this, SimpleButton, "TextLayer", 400, 300);
lastButton = new GameObject(this, SimpleButton, "TextLayer", 400, 300);
nextButton.setupButton(nextGame, "", null, true);
lastButton.setupButton(lastGame, "", null, true);
but1 = new GameObject(this, SimpleButton, "TextLayer", 400, 100);
but2 = new GameObject(this, SimpleButton, "TextLayer", 400, 200);
but1.setupButton(free1, "", null, true);
but2.setupButton(free2, "", null, true);
OK = new GameObject(this, SimpleButton, "TextLayer", 0, 0);
OK.setupButton(Embeds.menu_button_png, "Keep Playing", null, true);
OK.basex = 400;
OK.basey = (600 - 48);
var _local1:NagScreenGame = allGames[0];
gobs = _local1.getGameObjects(this);
nextButton.basey = gobs.getGameObjects()[2].basey;
lastButton.basey = nextButton.basey;
slideGames(gobs, null, 1);
var _local2:Array = gobs.getGameObjects();
LayerFilter.applySlideIn(but1, 0, -800);
LayerFilter.applySlideIn(but2, 0, 800);
LayerFilter.applySqrtSlide(lastButton, -800);
LayerFilter.applySqrtSlide(nextButton, -800);
LayerFilter.applySlideIn(OK, 0, 0, 400);
}
public function buildGames(){
var _local2:String;
var _local3:GameObject;
iconObjects = new Array();
var _local1:int;
while (_local1 < iconRequests.length) {
_local2 = gameNames[_local1];
_local3 = new GameObject(this, SimpleButton, "TextLayer", 0, 0);
_local3.setupButton(iconRequests[_local1].ldr, ("game" + _local1), null, true);
_local3.stripText();
iconObjects.push(_local3);
_local1++;
};
}
override public function _update():void{
var _local4:GameObject;
var _local5:Layout;
var _local6:String;
var _local1:int = ccc;
var _local2:Boolean;
var _local3:Boolean;
getNextGame().cache();
getLastGame().cache();
if (nextButton.mHit()){
_local2 = true;
ccc++;
};
if (lastButton.mHit()){
_local3 = true;
ccc--;
};
if (ccc < 0){
ccc = (allGames.length - 1);
};
if (ccc >= allGames.length){
ccc = 0;
};
if (_local1 != ccc){
_local5 = gobs;
gobs = allGames[ccc].getGameObjects(this);
if (_local2){
slideGames(gobs, _local5, 1);
} else {
slideGames(gobs, _local5, -1);
};
lastButton.changeZOrder("TextLayer");
nextButton.changeZOrder("TextLayer");
};
if (but1.mHit()){
Net.openURL("http://www.rocksolidarcade.com/");
GameSound.globalMusicVolume = 0;
};
if (but2.mHit()){
Net.openURL("http://www.rocksolidarcade.com/");
GameSound.globalMusicVolume = 0;
};
for each (_local4 in gobs.getGameObjects()) {
if (_local4.mHit()){
_local6 = Extern.sendMessage("nav", (("http://www.rocksolidarcade.com/games/" + allGames[ccc].shortName) + "/fn"));
if (_local6 != "ss"){
Net.openURL((("http://www.rocksolidarcade.com/games/" + allGames[ccc].shortName) + "/fn"));
};
GameSound.globalMusicVolume = 0;
};
};
if (OK.mHit()){
pushScene(new okClass(), true);
};
}
public function getNextGame():NagScreenGame{
if (ccc == (allGames.length - 1)){
return (allGames[0]);
};
return (allGames[(ccc + 1)]);
}
public function slideGames(_arg1:Object, _arg2:Object, _arg3:int):void{
vert([but2, but1, horiz([lastButton, _arg1, nextButton])], 32, 400, 270);
lastButton.basex = (lastButton.basex + 800);
nextButton.basex = (nextButton.basex + 800);
lastButton.basex = (lastButton.basex - 2);
lastButton.basey = Layout(_arg1).getGameObjects()[1].basey;
nextButton.basey = lastButton.basey;
if (_arg2){
LayerFilter.applySqrtSlide(_arg2, (-800 * _arg3), 0, 80, true);
LayerFilter.applyAlphaInOut(_arg2, 0, 0, 0, 60);
};
LayerFilter.setLayerOrigin(_arg1, (800 * _arg3), 0);
LayerFilter.applySqrtSlide(_arg1, (-800 * _arg3), 0);
LayerFilter.applyAlphaInOut(_arg1, 20, 60, 9999999, 9);
}
public static function preload():void{
if (GameConfig.nagEnabled == false){
return;
};
if (!data){
data = new SafeRequest(("http://www.rocksolidarcade.com/newrandomselection/" + GameConfig.shortName), finishFetch);
};
}
public static function requestIcons(_arg1:Array){
var _local2:String;
var _local3:SafeImageRequest;
iconRequests = new Array();
gameNames = _arg1;
for each (_local2 in _arg1) {
_local3 = new SafeImageRequest((("http://www.rocksolidarcade.com/static/" + _local2) + "/icon.png"));
iconRequests.push(_local3);
};
}
public static function finishFetch():void{
var _local3:String;
var _local4:NagScreenGame;
dataFetched = true;
var _local1:Array = data.data.split(":::");
var _local2:String = _local1[0];
_local1.splice(0, 1);
_local1.splice((_local1.length - 1), 1);
allGames = new Array();
for each (_local3 in _local1) {
_local4 = NagScreenGame.create(_local3);
if (_local4){
_local4.baseURL = _local2;
allGames.push(_local4);
};
};
if (allGames.length > 0){
allGames[0].cache();
};
}
public static function gamesHaveLoaded():Boolean{
var _local1:SafeImageRequest;
if (allGames){
return (true);
};
return (false);
return (true);
}
public static function create(_arg1:GameScene, _arg2:Class):void{
var _local3:NagScreen;
if (GameConfig.nagEnabled == false){
_arg1.pushScene(new (_arg2), true);
return;
};
if (gamesHaveLoaded()){
_local3 = new (NagScreen);
_local3.okClass = _arg2;
_arg1.pushScene(_local3, true);
} else {
_arg1.pushScene(new (_arg2), true);
};
}
}
}//package NagScreen
Section 584
//NagScreen_free1 (NagScreen.NagScreen_free1)
package NagScreen {
import mx.core.*;
public class NagScreen_free1 extends BitmapAsset {
}
}//package NagScreen
Section 585
//NagScreen_free2 (NagScreen.NagScreen_free2)
package NagScreen {
import mx.core.*;
public class NagScreen_free2 extends BitmapAsset {
}
}//package NagScreen
Section 586
//NagScreen_lastGame (NagScreen.NagScreen_lastGame)
package NagScreen {
import mx.core.*;
public class NagScreen_lastGame extends BitmapAsset {
}
}//package NagScreen
Section 587
//NagScreen_nextGame (NagScreen.NagScreen_nextGame)
package NagScreen {
import mx.core.*;
public class NagScreen_nextGame extends BitmapAsset {
}
}//package NagScreen
Section 588
//NagScreenGame (NagScreen.NagScreenGame)
package NagScreen {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Layout.*;
import Tools.*;
import GameConfig.*;
public class NagScreenGame {
public var cached:Boolean;// = false
public var shortName:String;
public var name:String;
public var gs:GameScene;
public var baseURL:String;
public function cache():void{
if (cached){
return;
};
cached = true;
var _local1:SafeImageRequest = new SafeImageRequest(((baseURL + shortName) + "/headersmall.png"));
var _local2:SafeImageRequest = new SafeImageRequest(((baseURL + shortName) + "/nagshot1.jpg"));
var _local3:SafeImageRequest = new SafeImageRequest(((baseURL + shortName) + "/nagshot2.jpg"));
}
public function getGameObjects(_arg1:GameScene):Layout{
var _local2:GameObject = new GameObject(_arg1, SimpleButton, "TextLayer", 400, 300);
_local2.helper.lazyLoad(((baseURL + shortName) + "/headersmall.png"));
_local2.baseWidth = 400;
_local2.baseHeight = 83;
var _local3:Array = new Array();
var _local4:int;
while (_local4 < 2) {
_local3[_local4] = new GameObject(_arg1, SimpleButton, "TextLayer", 400, 300);
_local3[_local4].helper.lazyLoad(((((baseURL + shortName) + "/nagshot") + (_local4 + 1)) + ".jpg"));
_local3[_local4].baseWidth = 200;
_local3[_local4].baseHeight = 150;
_local4++;
};
var _local5:Layout = _arg1.vert([_local2, _arg1.horiz(_local3)], 4);
return (_local5);
}
public static function create(_arg1:String):NagScreenGame{
var _local6:NagScreenGame;
var _local2:Array = _arg1.split(",", 3);
var _local3:String = _local2[0];
var _local4:int = int(_local2[1]);
var _local5:String = _local2[2];
if (_local3 != GameConfig.shortName){
_local6 = new (NagScreenGame);
_local6.shortName = _local3;
_local6.name = _local5;
return (_local6);
};
return (null);
}
}
}//package NagScreen
Section 589
//AIPlaneBase (ObjectBase.AIPlaneBase)
package ObjectBase {
import GameScene.*;
import GameObject.*;
import Objects.*;
import Scenes.*;
import Tools.*;
public class AIPlaneBase extends Plane {
public var canHunt:Boolean;// = false
public var currentStrategy:int;
public var target:ObjectBase;
public var offset:int;
public var climbAngle:Number;
public var avoidingBalloon:Balloon;
public var passive:Boolean;// = false
public var flyingDirection:int;// = 0
public var evaded:int;// = -500
public var hasBeenOnScreen:Boolean;// = false
public var multipleHunt:Boolean;// = false
public var currentStrategyTicks:int;// = 0
public var diffAngle:Number;
public var destAngle:Number;// = 0
public var passiveSpeed:int;// = 0
public var confused:GameObject;
public var lastHunting:int;// = 0
public static var avoidBalloon:int = 7;
public static var takeOff:int = 5;
public static var flyTowardsPlayer:int = 3;
public static var evadeTime:int = 300;
public static var flyForward:int = 0;
public static var pauseThenAttack:int = 6;
public static var climb:int = 8;
public static var getBackOnTrack:int = 4;
public static var huntPlayer:int = 2;
public static var turn:int = 1;
public function AIPlaneBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
currentStrategy = flyForward;
offset = (Math.random() * 100);
diffAngle = (40 * (Math.random() - 0.5));
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function playerPlane():ObjectBase{
if (target){
if (target._removed){
target = null;
};
};
if (target){
if (!validTarget(target)){
target = null;
};
};
if (!target){
target = findATarget(validTarget);
};
return (target);
}
public function switchToRandomTurn():void{
if (currentStrategy != turn){
destAngle = ((Math.random() - 0.5) * 90);
if (Math.random() < 0.5){
destAngle = (destAngle + 180);
};
currentStrategy = turn;
};
}
public function playerHasEvaded():void{
evaded = ticks;
switchToRandomTurn();
}
override public function controlDown():Boolean{
if (currentStrategy == avoidBalloon){
if (Interpolation.directionToAngle(baseRotation, angleToObject(avoidingBalloon)) == 1){
return (true);
};
return (false);
};
return ((flyingDirection == 1));
}
public function goingOffBorder(_arg1:int=50):Boolean{
var _local2:Number = (basex + (dx * 100));
var _local3:Number = (basey + (dy * 100));
var _local4:MainScene = MainScene(gs);
_arg1 = 0;
if (_local3 > (_local4.sceneMaxY - _arg1)){
return (true);
};
return (false);
}
public function angleToCenter():Number{
var _local1:MainScene = MainScene(gs);
var _local2:Number = ((_local1.sceneMaxX + _local1.sceneMinX) / 2);
var _local3:Number = ((_local1.sceneMaxY + _local1.sceneMinY) / 2);
var _local4:Number = Math.abs((_local1.sceneMaxX - basex));
var _local5:Number = Math.abs((_local1.sceneMinX - basex));
var _local6:Number = Math.abs((_local1.sceneMaxY - basey));
var _local7:Number = Math.abs((_local1.sceneMinY - basey));
if ((((_local4 > 150)) && ((_local5 > 150)))){
_local2 = basex;
} else {
if ((((_local6 > 150)) && ((_local7 > 150)))){
_local3 = basey;
};
};
return (((Math.atan2((_local3 - basey), (_local2 - basex)) * 180) / Math.PI));
}
public function aboutToHitBalloon():Boolean{
var _local1:BalloonBase;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local9:int;
var _local10:Number;
for each (_local1 in ms.balloons) {
if (!BalloonBase(_local1).falling){
_local2 = angleToObject(_local1);
_local3 = helper.angleToPoint((_local1.basex - 30), _local1.basey);
_local4 = helper.angleToPoint((_local1.basex + 30), _local1.basey);
_local5 = helper.angleToPoint(_local1.basex, (_local1.basey - 15));
_local6 = helper.angleToPoint(_local1.basex, (_local1.basey + 15));
_local7 = helper.angleToPoint(_local1.basex, _local1.basey);
_local8 = [_local3, _local4, _local5, _local6, _local7];
_local9 = 0;
while (_local9 < _local8.length) {
_local10 = Interpolation.distanceToAngle(baseRotation, (_local8[_local9] + 90));
if (_local10 < 10){
if (distanceToObject(_local1) < 240){
doAvoidBalloon(Balloon(_local1));
return (true);
};
};
_local9++;
};
};
};
return (false);
}
public function doAvoidBalloon(_arg1:Balloon):void{
if (currentStrategy != avoidBalloon){
currentStrategyTicks = 0;
currentStrategy = avoidBalloon;
avoidingBalloon = _arg1;
};
}
public function findTarget():ObjectBase{
return (null);
}
public function startFlyTowardsPlayer():void{
var _local2:GameObject;
var _local1:int;
for each (_local2 in gs.objects) {
if ((_local2 is AIPlaneBase)){
if (AIPlaneBase(_local2).currentStrategy == flyTowardsPlayer){
_local1++;
};
};
};
if (_local1 > 2){
return;
};
if (currentStrategy != flyTowardsPlayer){
currentStrategy = flyTowardsPlayer;
};
}
public function validTarget(_arg1:Object, _arg2:int=-1, _arg3:Array=null):Boolean{
if ((_arg1 is AAGun)){
if ((_arg1.basey - basey) < 200){
return (false);
};
};
return (true);
}
public function angleToPlayer():Number{
var _local1:ObjectBase = playerPlane();
if (_local1){
return (((Math.atan2((_local1.basey - basey), (_local1.basex - basex)) * 180) / Math.PI));
};
return (0);
}
public function directionX():int{
if (Math.cos(((baseRotation / 180) * Math.PI)) > 0){
return (1);
};
return (-1);
}
public function backOnTrack():void{
if (currentStrategy != getBackOnTrack){
currentStrategy = getBackOnTrack;
currentStrategyTicks = 0;
};
}
public function playerZoneX():int{
var _local1:ObjectBase = playerPlane();
if (Math.abs((_local1.basex - basex)) < 20){
return (0);
};
if (_local1.basex < basex){
return (-1);
};
if (_local1.basex > basex){
return (1);
};
return (0);
}
public function startHuntPlayer():void{
var _local1:GameObject;
if ((ticks - evaded) < evadeTime){
return;
};
if (!(this is EnemyAce)){
if (!multipleHunt){
for each (_local1 in gs.objects) {
if ((_local1 is AIPlaneBase)){
if (_local1 != this){
if (AIPlaneBase(_local1).currentStrategy == huntPlayer){
if (AIPlaneBase(_local1).playerPlane() == playerPlane()){
startClimb();
return;
};
};
};
};
};
};
};
if (currentStrategy != huntPlayer){
currentStrategy = huntPlayer;
currentStrategyTicks = 0;
};
}
public function distanceToPlayer():Number{
var _local2:Number;
var _local3:Number;
var _local1:ObjectBase = playerPlane();
if (_local1){
_local2 = (_local1.basex - basex);
_local3 = (_local1.basey - basey);
return (Math.sqrt(((_local2 * _local2) + (_local3 * _local3))));
};
return (0);
}
public function huntLength():int{
if ((playerPlane() is BomberBase)){
return (100);
};
if ((this is EnemyAce)){
return (400);
};
return (200);
}
override public function controlUp():Boolean{
if (currentStrategy == avoidBalloon){
if (Interpolation.directionToAngle(baseRotation, angleToObject(avoidingBalloon)) == -1){
return (true);
};
return (false);
};
return ((flyingDirection == -1));
}
override public function shooting():Boolean{
var _local1:int;
if (!helper.onScreen()){
return (false);
};
if (currentStrategy == huntPlayer){
if (Interpolation.distanceToAngle(baseRotation, angleToPlayer()) > 20){
return (false);
};
if (playerPlane()){
if (distanceToObject(playerPlane()) > 400){
return (false);
};
};
_local1 = ((ticks + offset) % 100);
if ((((((((((((_local1 == 1)) || ((_local1 == 11)))) || ((_local1 == 21)))) || ((_local1 == 31)))) || ((_local1 == 41)))) || ((_local1 == 51)))){
return (true);
};
};
return (false);
}
override public function _update():void{
var _local1:GameObject;
var _local2:Number;
var _local3:Number;
if (ms.introPausingGame()){
return;
};
confused = helper.conditionallyCreateChild(Confused, "Confused", ((!(dead)) && (((ticks - evaded) < evadeTime))));
if (confused){
confused.basex = basex;
confused.basey = (basey - 32);
};
if (!hasBeenOnScreen){
if (((!((lastScreenX == 0))) || (!((lastScreenY == 0))))){
if ((((((((lastScreenX > -20)) && ((lastScreenX < 820)))) && ((lastScreenY > -20)))) && ((lastScreenY < 620)))){
hasBeenOnScreen = true;
};
};
if (Math.abs((basey - MainScene(gs).sceneMaxY)) < 40){
currentStrategy = takeOff;
} else {
hasBeenOnScreen = true;
};
return;
};
if (passive){
passiveSpeed = 100;
} else {
if (passiveSpeed > 0){
passiveSpeed = (passiveSpeed - 1);
};
};
if (goingOffBorder()){
if (currentStrategy != takeOff){
backOnTrack();
};
};
flyingDirection = 0;
if (!playerPlane()){
if (((!((currentStrategy == flyForward))) && (!((currentStrategy == getBackOnTrack))))){
currentStrategy = flyForward;
};
};
if ((((currentStrategy == flyForward)) || ((currentStrategy == turn)))){
currentStrategyTicks = 0;
if (!passive){
if (canHunt){
for each (_local1 in gs.objects) {
if ((_local1 is AIPlaneBase)){
if (_local1 != this){
if (_local1.distanceToObject(this) < 85){
if (Math.random() > 0.9){
if (AIPlaneBase(_local1).currentStrategy == flyForward){
switchToRandomTurn();
};
};
};
};
};
};
};
};
if (((target) && (!(passive)))){
if ((((distanceToPlayer() > 400)) && (canHunt))){
startFlyTowardsPlayer();
} else {
if ((((((Math.random() > 0.95)) && (canHunt))) && (((((ticks - lastHunting) > 200)) || ((this is EnemyAce)))))){
startHuntPlayer();
} else {
if (((!((playerZoneX() == directionX()))) && (!((playerZoneX() == 0))))){
switchToTurn();
};
};
};
};
};
currentStrategyTicks++;
if (currentStrategy == getBackOnTrack){
if (Interpolation.distanceToAngle(baseRotation, 180) < Interpolation.distanceToAngle(baseRotation, 0)){
flyTowardsAngle(200);
} else {
flyTowardsAngle(-20);
};
if (!goingOffBorder(80)){
currentStrategy = flyTowardsPlayer;
};
};
if (currentStrategy == turn){
_local2 = baseRotation;
_local3 = flyTowardsAngle(destAngle);
canHunt = true;
if (Math.abs((_local3 - _local2)) < 2){
currentStrategy = flyForward;
};
};
if (currentStrategy == huntPlayer){
flyTowardsAngle(angleToPlayer());
if ((((currentStrategyTicks > huntLength())) || ((distanceToPlayer() < 50)))){
lastHunting = ticks;
currentStrategy = flyForward;
};
};
if (currentStrategy == flyTowardsPlayer){
flyTowardsAngle((angleToPlayer() + diffAngle));
if (distanceToPlayer() < 300){
currentStrategy = flyForward;
};
};
if (currentStrategy == takeOff){
flyTowardsAngle((-180 + (currentStrategyTicks / 8)));
if (currentStrategyTicks > 200){
currentStrategy = flyTowardsPlayer;
};
};
if (currentStrategy == climb){
flyTowardsAngle((climbAngle + (sind(ticks) * 20)));
if ((((basey < ms.sceneMinY)) || ((currentStrategyTicks > 200)))){
currentStrategy = flyTowardsPlayer;
};
};
if (currentStrategy == pauseThenAttack){
if (currentStrategyTicks > 200){
currentStrategy = flyTowardsPlayer;
};
};
if (currentStrategy == avoidBalloon){
if (currentStrategyTicks > 100){
currentStrategy = flyTowardsPlayer;
};
};
if (aboutToHitBalloon()){
};
super._update();
}
public function flyTowardsAngle(_arg1:Number):Number{
var _local2:Number = Interpolation.tendTowardsAngle(baseRotation, _arg1, 5);
if ((baseRotation - _local2) > 2){
flyingDirection = 1;
} else {
if ((baseRotation - _local2) < -2){
flyingDirection = -1;
};
};
return (_local2);
}
public function turnSpeed():Number{
return (5);
}
public function startClimb():void{
climbAngle = (-45 + (Math.random() * 90));
currentStrategy = climb;
currentStrategyTicks = 0;
}
public function switchToTurn():void{
var _local1:Boolean;
var _local2:Number;
var _local3:Number;
if (currentStrategy != turn){
_local2 = Math.abs((MainScene(gs).sceneMinY - basey));
_local1 = (_local2 > (600 / 2));
if (_local1){
_local3 = -10;
} else {
_local3 = 10;
};
if (directionX() == -1){
destAngle = (0 + _local3);
} else {
destAngle = (-180 - _local3);
};
currentStrategy = turn;
};
}
}
}//package ObjectBase
Section 590
//BalloonBase (ObjectBase.BalloonBase)
package ObjectBase {
import GameScene.*;
import flash.display.*;
import flash.geom.*;
import GameObject.*;
import Objects.*;
import Scenes.*;
import Tools.*;
import GlobalSetup.*;
public class BalloonBase extends ObjectBase {
public var visibleDamage:Array;
public var falling:Boolean;// = false
public var hitImage:Bitmap;
public var damaged:BitmapData;
public var minihealth:int;// = 0
public var health:int;// = 25
public function BalloonBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
visibleDamage = new Array();
hitImage = new Embeds.shot_png();
super(_arg1, _arg2, _arg3, _arg4, _arg5);
side = "English";
className = "English";
}
public function addVisibleDamage(_arg1:Number, _arg2:Number){
visibleDamage.push([_arg1, _arg2]);
drawVisibleDamage(_arg1, _arg2);
}
override public function _update():void{
var _local1:int;
if (ms.introPausingGame()){
return;
};
if (falling){
dy = (dy + 0.01);
};
if (basey > (MainScene(gs).sceneMaxY - 10)){
doBombDamage();
_local1 = -2;
while (_local1 <= 2) {
emitConditionalParticles("ZepDestroy", (_local1 * 10), 0);
_local1++;
};
remove();
Sounds.zepExplosion.play();
};
super._update();
}
public function refreshVisibleDamage():void{
var _local1:int;
while (_local1 < visibleDamage.length) {
drawVisibleDamage(visibleDamage[_local1][0], visibleDamage[_local1][1]);
_local1++;
};
}
override public function damage(_arg1:ObjectBase):void{
var _local2:Projectile;
var _local4:Number;
var _local5:Point;
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:Number;
var _local10:Number;
var _local11:Array;
if ((_arg1 is Projectile)){
_local2 = Projectile(_arg1);
};
if (_local2){
emitConditionalParticles("Hit", _local2.basex, _local2.basey, true);
_local4 = (10 + (Math.random() * 20));
_local5 = _local2.tformed(_local4, 0);
_local6 = ((_local5.x - basex) + (baseWidth / 2));
_local7 = ((_local5.y - basey) + (baseHeight / 2));
addVisibleDamage(_local6, _local7);
};
if ((_arg1 is BombBase)){
_local8 = 0;
while (_local8 < 20) {
_local9 = (_arg1.basex + Random.randInt(-20, 20));
_local10 = (_arg1.basey + Random.randInt(-5, 20));
_local6 = ((_local9 - basex) + (baseWidth / 2));
_local7 = ((_local10 - basey) + (baseHeight / 2));
addVisibleDamage(_local6, _local7);
_local8++;
};
};
var _local3 = (_local2 == null);
if (_local2){
if (_local2.weak){
minihealth++;
if (minihealth > 1){
minihealth = 0;
health--;
};
} else {
health--;
};
} else {
health = (health - 20);
};
if (health < 0){
if (!dead){
if (!falling){
if (ms.currentLevelSet.balloon == "true"){
ms.scoreMixin.createVisibleScore(this, 250);
} else {
ms.scoreMixin.createVisibleScore(this, 250, "Target of Opportunity");
};
falling = true;
Bitmap(obj).bitmapData = damaged.clone();
_local11 = findChildrenByName("line");
if (_local11.length > 0){
_local11[0].helperFilter.fadeOff(20);
};
refreshVisibleDamage();
};
};
};
}
public function drawVisibleDamage(_arg1:Number, _arg2:Number):void{
drawToPixmap(hitImage, _arg1, _arg2, 0, 1, 1, BlendMode.ERASE);
}
}
}//package ObjectBase
Section 591
//BombBase (ObjectBase.BombBase)
package ObjectBase {
import GameScene.*;
import GameObject.*;
import Objects.*;
import Tools.*;
public class BombBase extends ObjectBase {
public var targetLevel:Number;
public var weak:Boolean;// = false
public var source:GameObject;
public function BombBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
targetLevel = ((560 + 10) + (Math.random() * 10));
super(_arg1, _arg2, _arg3, _arg4, _arg5);
ay = 0.02;
}
public function doExplosion():void{
Sounds.zepExplosion.play();
var _local1:int;
while (_local1 < 1) {
emitConditionalParticles("Destroy");
_local1++;
};
doBombDamage();
}
override public function _update():void{
var _local1:GameObject;
if (ms.introPausingGame()){
return;
};
super._update();
baseRotation = Interpolation.tendTowardsAngle(baseRotation, 90, 0.3);
if (lastScreenY > targetLevel){
doExplosion();
remove();
};
if (ticks > 50){
for each (_local1 in gs.objects) {
if (!_local1._removed){
if (((!((_local1 == source))) || ((ticks > 150)))){
if ((((((((((_local1 is Plane)) || ((_local1 is AAGun)))) || ((_local1 is BalloonBase)))) || ((_local1 is Zeppelin)))) || ((_local1 is ZeppelinObjectBase)))){
if ((_local1 is ObjectBase)){
if (determineBombCollision(_local1)){
doExplosion();
remove();
ObjectBase(_local1).damage(this);
};
};
};
};
};
};
};
}
}
}//package ObjectBase
Section 592
//BomberBase (ObjectBase.BomberBase)
package ObjectBase {
import GameScene.*;
import GameObject.*;
import Objects.*;
import Tools.*;
public class BomberBase extends Plane {
public var currentFrame:Number;// = 5
public var frameTarget:Number;// = 0
public function BomberBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
override public function maxHealth():int{
return (20);
}
override public function updateFrame():void{
}
public function setupTurrets(_arg1:Boolean=false):void{
var _local2:Turret = new Turret(gs, 0, 0);
_local2.side = side;
_local2.mouseControlled = _arg1;
_local2.frontAngle = -90;
_local2.rearAngle = -270;
_local2.weak = true;
_local2.baseHandleY = 0.8;
_local2.burstDelay = 15;
addChild(_local2);
var _local3:Turret = new Turret(gs, 10, 0);
_local3.rearAngle = -90;
_local3.frontAngle = 90;
_local3.mouseControlled = _arg1;
_local3.weak = true;
_local3.baseHandleY = 0.8;
_local3.side = side;
_local3.burstDelay = 15;
addChild(_local3);
}
override public function speed():Number{
return (0.25);
}
override public function smallScore():int{
return (10);
}
override public function parachutists():int{
return (2);
}
override public function _update():void{
var _local1:GameObject;
var _local2:int;
if (ms.introPausingGame()){
return;
};
basey = (basey + (sind((randTicks / 2)) / 20));
if (sind((randTicks / 2)) < 0){
frameTarget = 3;
} else {
frameTarget = 7;
};
currentFrame = Interpolation.tendTowards(currentFrame, frameTarget, 0.1);
if (!dead){
setFrame(int((currentFrame + 0.5)));
};
for each (_local1 in gs.objects) {
if ((_local1 is BomberBase)){
if (!BomberBase(_local1).dead){
if (_local1 != this){
if (collidesWith(_local1)){
_local2 = 0;
while (_local2 < 5) {
emitConditionalParticles("ZepDestroy", 0, 18);
_local2++;
};
while (!(BomberBase(_local1).dead)) {
BomberBase(_local1).damage(null);
};
_local1.helperFilter.addShift(0, 1, 10);
};
};
};
};
};
super._update();
}
override public function bigScore():int{
return (200);
}
override public function deathRotateSpeed():Number{
return (0.2);
}
}
}//package ObjectBase
Section 593
//BombTarget (ObjectBase.BombTarget)
package ObjectBase {
import GameScene.*;
import flash.display.*;
import GlobalSetup.*;
public class BombTarget extends ObjectBase {
public var wrecked:Boolean;// = false
public var images:Array;
public function BombTarget(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
side = "English";
}
override public function _update():void{
if (ms.introPausingGame()){
return;
};
super._update();
if ((((animFrame == 3)) || ((animFrame == 4)))){
side = "German";
};
}
public function validForThisLevel():Boolean{
if (ms.currentLevelSet.destroyBuilding == "true"){
return ((animFrame == 2));
};
if (ms.currentLevelSet.protectBase == "true"){
return (false);
};
return (true);
}
override public function isValidTarget():Boolean{
return (false);
}
override public function handleBombHit():void{
if (wrecked){
return;
};
if (side == "English"){
ms.scoreMixin.createVisibleScore(this, 200);
} else {
ms.scoreMixin.createVisibleScore(this, 0, "BUILDING DESTROYED!");
};
emitConditionalParticles("ZepDestroy");
wrecked = true;
Bitmap(obj).bitmapData = Embeds.wreckage[animFrame];
}
override public function attractsBombs():Boolean{
return (true);
}
}
}//package ObjectBase
Section 594
//ConvoyBase (ObjectBase.ConvoyBase)
package ObjectBase {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Objects.*;
public class ConvoyBase extends ObjectBase {
public var deathFrame:BitmapData;
public var minihealth:int;// = 0
public var health:int;// = 5
public function ConvoyBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
side = "English";
dx = 0.25;
}
public function distanceToNext():Number{
var _local2:GameObject;
var _local3:Number;
var _local1:Number = -1;
for each (_local2 in gs.objects) {
if ((_local2 is ConvoyBase)){
if (_local2 != this){
if (_local2.basex > basex){
_local3 = (_local2.basex - basex);
if ((((_local3 < _local1)) || ((_local1 < 0)))){
_local1 = _local3;
};
};
};
};
};
return (_local1);
}
override public function _update():void{
var _local1:Number;
if (ms.introPausingGame()){
return;
};
if (ms.currentLevelSet.convoy){
if (basex > ms.sceneMaxX){
ms.lose("A TRUCK ESCAPED!");
};
};
if (dead){
dx = (dx * 0.9);
} else {
_local1 = distanceToNext();
if ((((_local1 > 0)) && ((_local1 < 70)))){
dx = (dx * 0.96);
};
};
basex = (basex + dx);
}
override public function handleBombHit():void{
killWithEffects();
}
override public function damage(_arg1:ObjectBase):void{
if (_arg1){
emitConditionalParticles("Hit", _arg1.basex, _arg1.basey, true);
};
if (((_arg1) && (_arg1["weak"]))){
minihealth++;
if (minihealth > 1){
minihealth = 0;
health--;
};
} else {
if ((_arg1 is Bomb)){
health = (health - 20);
} else {
health--;
};
};
if (health < 0){
if (!dead){
killWithEffects();
};
};
}
public function bigScore():int{
return (100);
}
override public function _init():void{
}
public function killWithEffects():void{
if (dead){
return;
};
if (!ms.currentLevelSet.convoy){
ms.scoreMixin.createVisibleScore(this, (bigScore() * 2), "TARGET OF OPPORTUNITY");
} else {
ms.scoreMixin.createVisibleScore(this, bigScore());
};
emitConditionalParticles("ZepDestroy");
Bitmap(obj).bitmapData = deathFrame;
dead = true;
}
override public function attractsBombs():Boolean{
return (true);
}
}
}//package ObjectBase
Section 595
//EnemyPlaneBase (ObjectBase.EnemyPlaneBase)
package ObjectBase {
import GameScene.*;
import Tools.*;
public class EnemyPlaneBase extends AIPlaneBase {
public function EnemyPlaneBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
className = "German";
}
override public function findTarget():ObjectBase{
return (ObjectBase(gs.findRandomObjectByClass("English")));
}
override public function speed():Number{
var _local1:Number = Interpolation.linearInterpolateLock(0.25, super.speed(), Interpolation.fromTo(passiveSpeed, 100, 0));
return (_local1);
}
}
}//package ObjectBase
Section 596
//EvasiveIcon (ObjectBase.EvasiveIcon)
package ObjectBase {
import GameObject.*;
import GlobalSetup.*;
public class EvasiveIcon extends GameObject {
public static var icons:Array;
public static var hasDone:Array = new Array(4);
public function EvasiveIcon(_arg1:Class){
super(null, _arg1, "TextLayer", 0, 0);
}
public static function reset():void{
var _local1:int;
while (_local1 < 4) {
hasDone[_local1] = false;
icons[_local1].baseAlpha = 1;
_local1++;
};
}
public static function doManoeuvre(_arg1:String):void{
hasDone[mapMan(_arg1)] = true;
icons[mapMan(_arg1)].baseAlpha = 0.25;
}
public static function setupIcons():void{
var _local2:Class;
var _local3:EvasiveIcon;
icons = new Array();
hasDone = new Array(4);
var _local1:int;
while (_local1 < 4) {
_local2 = [Embeds.evasive_icon_cloud_png, Embeds.evasive_icon_dive_png, Embeds.evasive_icon_loop_png, Embeds.evasive_icon_low_png][_local1];
_local3 = new EvasiveIcon(_local2);
_local3.isGlobal = true;
_local3.basex = ((19 + (_local1 * _local3.baseWidth)) + 653);
_local3.basey = 23;
icons[_local1] = _local3;
_local1++;
};
}
public static function mapMan(_arg1:String):int{
if (_arg1 == "cloud"){
return (0);
};
if (_arg1 == "dive"){
return (1);
};
if (_arg1 == "loop"){
return (2);
};
if (_arg1 == "low"){
return (3);
};
return (0);
}
public static function hasDoneManoeuvre(_arg1:String):Boolean{
return (hasDone[mapMan(_arg1)]);
}
}
}//package ObjectBase
Section 597
//FriendlyPlaneBase (ObjectBase.FriendlyPlaneBase)
package ObjectBase {
import GameScene.*;
public class FriendlyPlaneBase extends AIPlaneBase {
public function FriendlyPlaneBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
className = "English";
}
override public function findTarget():ObjectBase{
return (ObjectBase(gs.findRandomObjectByClass("German")));
}
}
}//package ObjectBase
Section 598
//GondolaBase (ObjectBase.GondolaBase)
package ObjectBase {
import GameScene.*;
import flash.display.*;
import Scenes.*;
import GlobalSetup.*;
public class GondolaBase extends ZeppelinObjectBase {
public var poffsetx:Number;// = 0
public var poffsety:Number;// = 0
public function GondolaBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
poffsetx = (((Math.random() - 0.5) * obj.width) / 2);
poffsety = (((Math.random() - 0.5) * obj.height) / 2);
health = 10;
}
override public function blockFire():Boolean{
return (dead);
}
override public function _update():void{
var _local1:int;
if (ms.introPausingGame()){
return;
};
if (((!(dead)) && ((health < 5)))){
emitConditionalParticles("Fire", (poffsetx + basex), (poffsety + basey), true);
};
super._update();
if (dead){
dy = (dy + 0.02);
basey = (basey + dy);
if (basey > (MainScene(gs).sceneMaxY - 10)){
emitConditionalParticles("DestroyGround", -5);
_local1 = 0;
while (_local1 < 5) {
emitConditionalParticles("ZepDestroy", ((Math.random() - 0.5) * baseWidth), ((Math.random() - 0.5) * baseHeight));
_local1++;
};
Sounds.zepExplosion.play();
remove();
doBombDamage();
};
};
}
override public function damage(_arg1:ObjectBase):void{
emitConditionalParticles("Hit", (_arg1.basex - basex), (_arg1.basey - basey));
var _local2:BitmapData = Bitmap(obj).bitmapData;
var _local3:Bitmap = new Embeds.shot_png();
var _local4:Number = (Math.random() * 5);
var _local5:Number = (_arg1.basex + (Math.cos(((_arg1.baseRotation / 180) * Math.PI)) * _local4));
var _local6:Number = (_arg1.basey + (Math.sin(((_arg1.baseRotation / 180) * Math.PI)) * _local4));
_local3.scaleX = 0.55;
_local3.scaleY = 0.55;
_local3.rotation = 0;
_local3.x = ((((_local5 - basex) + (Math.random() * 40)) - 20) + (_local2.width / 2));
_local3.y = ((((_local6 - basey) + (Math.random() * 40)) - 20) + (_local2.height / 2));
_local2.draw(_local3, _local3.transform.matrix, null, BlendMode.ERASE);
health--;
if (((!(dead)) && ((health < 0)))){
emitConditionalParticles("ZepDestroy");
Sounds.zepExplosion.play();
dead = true;
if (Math.random() < 0.5){
dRotation = -0.25;
} else {
dRotation = 0.25;
};
};
}
}
}//package ObjectBase
Section 599
//ObjectBase (ObjectBase.ObjectBase)
package ObjectBase {
import GameScene.*;
import GameObject.*;
import Objects.*;
import Scenes.*;
import Tools.*;
public class ObjectBase extends GameObject {
public var dx:Number;// = 0
public var dy:Number;// = 0
public var side:String;
public var removeOnTransition:Boolean;// = false
public var dead:Boolean;// = false
public var ms:MainScene;
public var blocksNextLevel:Boolean;// = false
public var ay:Number;// = 0
public var lastInCloudTicks:int;// = -1000
public var ax:Number;// = 0
public function ObjectBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
ms = MainScene(_arg1);
}
public function recentlyInCloud():Boolean{
if (inCloud()){
lastInCloudTicks = ticks;
};
return (((ticks - lastInCloudTicks) < 120));
}
public function handleBombHit():void{
remove();
}
public function inCloud():Boolean{
var _local1:Cloud;
for each (_local1 in ms.clouds) {
if (Math.abs((_local1.basex - basex)) < 110){
if (Math.abs((_local1.basey - basey)) < 20){
return (true);
};
};
};
return (false);
}
public function findATarget(_arg1:Function=null):ObjectBase{
var _local3:GameObject;
var _local4:ObjectBase;
if ((randTicks % 25) != 0){
return (null);
};
var _local2:Array = new Array();
for each (_local3 in gs.objects) {
if ((_local3 is ObjectBase)){
_local4 = ObjectBase(_local3);
if (_local4.isValidTarget()){
if (_local4.side != side){
if (((!((_local4.side == ""))) && (!((_local4.side == null))))){
if (ms.currentLevelSet.targetCloseToPlayer == "true"){
//unresolved if
} else {
_local2.push(_local4);
};
};
};
};
};
};
if (_arg1){
_local2 = _local2.filter(_arg1);
};
if (_local2.length > 0){
return (_local2[Random.randInt(0, (_local2.length - 1))]);
};
return (null);
}
public function doBombDamage():void{
var _local1:GameObject;
for each (_local1 in gs.objects) {
if ((((((_local1 is BombTarget)) || ((_local1 is AAGun)))) || ((_local1 is ConvoyBase)))){
if (determineBombCollision(_local1, true)){
ObjectBase(_local1).handleBombHit();
};
};
};
}
public function determineBombCollision(_arg1:GameObject, _arg2:Boolean=false):Boolean{
var _local4:Number;
var _local5:Number;
var _local6:Boolean;
_arg2 = true;
var _local3:ObjectBase = ObjectBase(_arg1);
if (collidesWith(_arg1)){
return (true);
};
if (_local3.attractsBombs()){
_local4 = Math.abs((_local3.basex - basex));
_local5 = Math.abs(((_local3.basey + (_local3.baseHeight / 2)) - basey));
_local6 = false;
if (_arg2){
if (_local5 < (_local3.baseHeight * 2)){
_local6 = true;
};
};
if (_local4 < ((_local3.baseWidth / 2) + 20)){
if ((((_local5 < (_local3.baseHeight / 4))) || (_local6))){
return (true);
};
};
};
return (false);
}
public function attractsBombs():Boolean{
return (false);
}
public function isValidTarget():Boolean{
return (true);
}
override public function _update():void{
if (ms){
if (ms.introPausingGame()){
return;
};
};
dx = (dx + ax);
dy = (dy + ay);
basex = (basex + dx);
basey = (basey + dy);
}
public function damage(_arg1:ObjectBase):void{
}
public function allowFriendlyFire():Boolean{
return (false);
}
}
}//package ObjectBase
Section 600
//Plane (ObjectBase.Plane)
package ObjectBase {
import GameScene.*;
import flash.display.*;
import flash.geom.*;
import GameObject.*;
import Audio.*;
import Objects.*;
import Scenes.*;
import Tools.*;
import GlobalSetup.*;
public class Plane extends ObjectBase {
public var dRotation:Number;// = 0
public var crashed:Boolean;// = false
public var flipped:Boolean;// = false
public var deadRotation:Number;// = 0
public var lockTarget:int;// = 0
public var rollFrameTarget:Number;// = 0
public var lastShot:int;// = 100
public var lockTargetTicks:int;// = 0
public var shootticks:int;// = 0
public var overheat:Number;// = 0
public var stalling:Number;// = 0
public var planecrash:BitmapData;
public var health:int;// = 10
public var minihealth:int;// = 0
public var burstShots:int;// = 0
public var fallingChannel:GameSoundChannel;
public var roll:Array;
public static var curFrame:int = 0;
public function Plane(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
health = maxHealth();
baseHandleX = 0.6;
}
public function bigScore():int{
return (100);
}
public function shotRotation():Number{
return (baseRotation);
}
public function sgn(_arg1:Number):Number{
if (_arg1 == 0){
return (0);
};
if (_arg1 > 0){
return (1);
};
return (-1);
}
public function killWithEffects():void{
var _local2:Parachute;
fallingChannel = Sounds.planeFalling.play();
Sounds.planeCrash.play();
emitConditionalParticles("Destroy");
dead = true;
var _local1:Boolean = (((this is EnemyAce)) && ((ms.currentLevelSet.assassinateAce == "true")));
if ((((Math.random() > 0.3)) || (_local1))){
_local2 = new Parachute();
_local2.basex = (basex + Random.randInt((-(baseWidth) / 2), (baseWidth / 2)));
_local2.basey = basey;
_local2.side = side;
_local2.isTarget = _local1;
};
}
public function deathRotateSpeed():Number{
return (1);
}
override public function _remove():void{
var _local1:int;
if (fallingChannel){
_local1 = 0;
while (_local1 < 1000) {
fallingChannel.stop();
_local1++;
};
};
}
public function updateFrame():void{
var _local1:int;
if (rollFrameTarget < 0){
_local1 = int((Math.pow(-(rollFrameTarget), 0.3) * -6));
} else {
_local1 = int((Math.pow(rollFrameTarget, 0.3) * 6));
};
_local1 = (_local1 + deadRotation);
while (Math.abs(_local1) > 31) {
_local1 = (_local1 - (sgn(_local1) * 32));
};
if (_local1 > 0){
Bitmap(obj).bitmapData = roll[_local1];
} else {
Bitmap(obj).bitmapData = roll[(31 + _local1)];
};
}
public function bombKeyDown():Boolean{
return (((((Input.i.keyDown(16)) || (Input.i.keyDown(17)))) || (Input.i.keyDown(90))));
}
public function controlDown():Boolean{
return (false);
}
public function rotSpeed():Number{
return (0.15);
}
public function dropBomb():void{
var _local1:Bomb = new Bomb(null, basex, basey);
_local1.source = this;
_local1.baseRotation = baseRotation;
var _local2:GameSoundChannel = Sounds.bombDrop.play();
_local2.tieTo(_local1);
}
public function createWreck():void{
var _local3:BitmapData;
var _local4:ObjectBase;
var _local1:Number = Interpolation.distanceToAngle(baseRotation, 90);
var _local2:Number = Interpolation.directionToAngle(baseRotation, 90);
if (Math.random() > 0.66){
_local3 = destroyedFrame();
if (_local3){
_local4 = new ObjectBase(null, Embeds.englishBomberWasted_1_embed, zOrderString, basex, basey);
_local4.helperAnimation.setFrame(_local3);
_local4.baseHandleY = 1;
_local4.basey = (_local4.basey + (5 + (Math.random() * 8)));
if ((this is BomberBase)){
_local4.basey = (_local4.basey + 8);
};
if (_local2 < 0){
_local4.baseScaleX = -1;
};
if (!(this is BomberBase)){
_local4.baseScaleX = (_local4.baseScaleX * -1);
};
_local4.removeOnTransition = true;
};
};
}
public function destroyedFrames():Array{
return (null);
}
public function speed():Number{
return (0.63);
}
public function shotOffsetY():Number{
return (-5);
}
public function parachutists():int{
return (1);
}
public function shotOffsetX():Number{
return (0);
}
public function destroyedFrame():BitmapData{
curFrame++;
var _local1:Array = destroyedFrames();
if (_local1){
return (_local1[(curFrame % _local1.length)]);
};
return (null);
}
public function controlUp():Boolean{
return (false);
}
public function smallScore():int{
return (10);
}
public function shooting():Boolean{
return (false);
}
public function maxHealth():int{
return (10);
}
override public function _update():void{
var _local5:int;
var _local6:Number;
var _local7:Number;
var _local8:Point;
var _local9:Bullet;
var _local10:GameObject;
var _local11:GameObject;
if (ms.introPausingGame()){
return;
};
if (flipped){
baseScaleY = -1;
};
var _local1:int;
if (controlDown()){
_local1 = -1;
};
if (controlUp()){
_local1 = 1;
};
if (lockTarget != _local1){
lockTargetTicks--;
if (lockTargetTicks < 0){
lockTargetTicks = 0;
lockTarget = _local1;
};
};
if (lockTarget == _local1){
lockTargetTicks++;
};
if (lockTargetTicks > 5){
lockTargetTicks = 5;
};
_local1 = lockTarget;
if (!dead){
rollFrameTarget = Interpolation.tendTowards(rollFrameTarget, _local1, 0.06);
};
updateFrame();
basex = (basex + (dx * speed()));
basey = (basey + (dy * speed()));
if (health < (maxHealth() / 3)){
emitConditionalParticles("DamagedBadly");
} else {
if (health < ((maxHealth() * 2) / 3)){
emitConditionalParticles("Damaged");
};
};
dx = (dx * 0.96);
dy = (dy * 0.96);
var _local2:Number = ((sgn(dy) * dy) / 70);
if (_local2 < 0){
_local2 = (_local2 * 4);
};
dy = (dy + _local2);
dy = (dy + Math.pow((stalling / 3000), 2));
var _local3:Number = 0.1;
_local3 = (_local3 - (dRotation / 10));
dx = (dx + (cosd(baseRotation) * 0.1));
dy = (dy + (sind(baseRotation) * 0.1));
if (dead){
deadRotation = (deadRotation + 0.15);
dy = (dy + 0.07);
baseRotation = Interpolation.tendTowardsAngle(baseRotation, ((180 / Math.PI) * Math.atan2(dy, dx)), deathRotateSpeed());
if (basey > (MainScene(gs).floor() + 10)){
if (fallingChannel){
fallingChannel.stop();
};
createWreck();
Sounds.planeCrash.play();
emitConditionalParticles("ZepDestroy");
emitConditionalParticles("DestroyGround", 0, 10);
remove();
};
} else {
if (((controlDown()) || (controlUp()))){
stalling++;
} else {
stalling = (stalling - 20);
};
stalling = Interpolation.lockValue(stalling, 0, 400);
if (controlUp()){
dRotation = (dRotation + rotSpeed());
} else {
if (controlDown()){
dRotation = (dRotation - rotSpeed());
};
};
if (basey > (MainScene(gs).floor() + 10)){
if (!MainScene(gs).inSuccess){
createWreck();
crashed = true;
Sounds.planeCrash.play();
emitConditionalParticles("Destroy");
emitConditionalParticles("DestroyGround");
remove();
};
};
_local5 = 40;
if (basex > (ms.sceneMaxX + _local5)){
baseRotation = 180;
};
if (basex < (ms.sceneMinX - _local5)){
baseRotation = 0;
};
if (basey < (ms.sceneMinY - _local5)){
baseRotation = 90;
};
if ((!(this) is BomberBase)){
if (basey > (ms.sceneMaxY + _local5)){
baseRotation = 270;
};
};
};
baseRotation = (baseRotation + dRotation);
dRotation = (dRotation * 0.9);
baseHandleX = 0.6;
var _local4:GameObject = findChildrenByName("muzzleflash")[0];
if (_local4){
if ((((((lastShot < 4)) && (!(controlDown())))) && (!(controlUp())))){
_local4.baseAlpha = 1;
} else {
_local4.baseAlpha = 0;
};
};
lastShot++;
if (((((shooting()) && (!(dead)))) && (!((((ms.inSuccess > 120)) || ((ms.inFailure > 120))))))){
if ((((overheat < 28)) || ((shootticks % 2)))){
if ((this is EnemyAce)){
Sounds.aceGun.play();
} else {
if ((((this is PlayerBase)) || ((this is EnemyPlaneBase)))){
Sounds.shot.play();
} else {
Sounds.enemyGun.play();
};
};
_local6 = shotOffsetX();
_local7 = shotOffsetY();
_local8 = tformed(_local6, _local7);
_local9 = new Bullet(gs, _local8.x, _local8.y);
_local9.baseRotation = (shotRotation() + (4 * (Math.random() - 0.5)));
_local9.source = this;
_local9.speed = (_local9.speed * (1 + (Math.random() / 10)));
emitConditionalParticles("shell");
lastShot = 0;
};
shootticks++;
};
if ((this is PlayerPlane)){
_local10 = helper.conditionallyCreateChild(Embeds.planeshadow_png, "shadow", ((ms.sceneMaxY - basey) < 300));
if (_local10){
_local10.basex = basex;
_local10.basey = (ms.sceneMaxY - 10);
_local10.baseAlpha = (1 - (Math.abs((basey - ms.sceneMaxY)) / 300));
};
};
if (dead){
for each (_local11 in gs.objects) {
if (_local11 != this){
if ((((_local11 is ConvoyBase)) || ((_local11 is Balloon)))){
if (_local11.collidesWith(this)){
emitConditionalParticles("ZepDestroy");
remove();
Sounds.planeCrash.play();
if ((_local11 is ConvoyBase)){
ConvoyBase(_local11).handleBombHit();
};
if ((_local11 is BalloonBase)){
while (!(BalloonBase(_local11).falling)) {
BalloonBase(_local11).damage(null);
};
};
};
};
};
};
};
}
public function smoking():Boolean{
return ((health < ((maxHealth() * 2) / 3)));
}
public function flip():void{
flipped = true;
baseRotation = 180;
}
override public function _init():void{
var _local1:GameObject = findChildrenByName("muzzleflash")[0];
if (_local1){
_local1.baseAlpha = 0;
};
baseHandleX = 0.6;
}
public function bombKeyHit():Boolean{
return (((((Input.i.keyHit(16)) || (Input.i.keyHit(17)))) || (Input.i.keyHit(90))));
}
override public function damage(_arg1:ObjectBase):void{
var _local2:GameObject;
for each (_local2 in gs.objects) {
if ((_local2 is AIPlaneBase)){
if (ObjectBase(_local2).side == side){
if (AIPlaneBase(_local2).passive){
AIPlaneBase(_local2).passive = false;
};
};
};
};
if (_arg1){
emitConditionalParticles("Hit", _arg1.basex, _arg1.basey, true);
if (dead){
if (_arg1["source"] == ms.player){
ms.scoreMixin.createAttachedScore(this, smallScore());
};
};
};
crashed = (_arg1 == null);
if (((_arg1) && (_arg1["weak"]))){
minihealth++;
if (minihealth > 2){
minihealth = 0;
health--;
};
} else {
if ((_arg1 is Bomb)){
health = (health - 20);
} else {
health--;
};
};
if (health < 0){
if (!dead){
if (_arg1){
if (_arg1["source"] == ms.player){
if (((!((this is BomberBase))) && ((_arg1 is Bomb)))){
if (side == "German"){
ms.scoreMixin.createVisibleScore(this, 0, "OOPS!");
} else {
ms.scoreMixin.createVisibleScore(this, (bigScore() * 4), "SKILL DROP");
};
} else {
ms.scoreMixin.createVisibleScore(this, bigScore());
};
};
};
killWithEffects();
};
};
}
}
}//package ObjectBase
Section 601
//PlayerBase (ObjectBase.PlayerBase)
package ObjectBase {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Audio.*;
import Scenes.*;
import Templates.*;
import Tools.*;
import GlobalSetup.*;
public class PlayerBase extends Plane {
public var cloudTicks:int;// = 0
public var turned180:Boolean;// = false
public var lastManoeuvre:String;// = ""
public var lowTicks:int;// = 0
public var twoPlayer:Boolean;// = false
public var shootingTime:int;// = 0
public var bombs:int;
public var lastTurnAngle:Number;// = 0
public var engineChannel:GameSoundChannel;
public var loopControlMethodSet:Boolean;
public var loopControlMethod:Boolean;
public function PlayerBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
engineChannel = Sounds.planeIdle.play(true);
engineChannel.setVolume(0);
className = "English";
Input.i.keyHit(17);
}
public function manoeuvreAppropriate():Boolean{
var _local1:GameObject;
for each (_local1 in gs.objects) {
if ((_local1 is AIPlaneBase)){
if ((_local1.ticks - AIPlaneBase(_local1).evaded) > (AIPlaneBase.evadeTime * 1.5)){
return (true);
};
};
};
for each (_local1 in gs.objects) {
if ((_local1 is TurretBase)){
if ((_local1.ticks - TurretBase(_local1).evaded) > (AIPlaneBase.evadeTime * 1.5)){
return (true);
};
};
};
return (false);
}
public function shootKey():int{
if (twoPlayer){
return (16);
};
return (32);
}
public function upKey(_arg1:Boolean=false):int{
if (!_arg1){
if (!MainMenu.controlsReversed){
return (downKey(true));
};
};
if (twoPlayer){
return (87);
};
return (38);
}
public function downKey(_arg1:Boolean=false):int{
if (!_arg1){
if (!MainMenu.controlsReversed){
return (upKey(true));
};
};
if (twoPlayer){
return (83);
};
return (40);
}
public function leftKey():int{
return (39);
}
override public function _remove():void{
super._remove();
engineChannel.stop();
engineChannel = null;
}
public function shootKeyDown():Boolean{
return (Input.i.keyDown(shootKey()));
}
override public function controlDown():Boolean{
return (((Input.i.keyDown(downKey())) || (Input.i.keyDown(rightKey()))));
}
override public function maxHealth():int{
var _local1:int = (35 - (MainScene(gs).playedThrough * 10));
if (_local1 < 5){
_local1 = 5;
};
return (_local1);
}
override public function shooting():Boolean{
var _local1:RewardText;
if (dead){
return (false);
};
if (Input.i.keyDown(shootKey())){
if ((ticks % 10) == 0){
shootingTime++;
if (ms.currentLevelSet.gunsJam == "true"){
if (shootingTime >= 20){
if (shootingTime == 20){
_local1 = RewardText.createRewardText(ms, 400, 300, "GUNS JAMMED - USE YOUR BOMBS!", "TextLayer", -1, 1, 0, 200);
_local1.helperFilter.fadeOffIfFalse(20, ms.globalKill);
};
if (Input.i.keyHit(shootKey())){
Sounds.jam.play();
};
return (false);
};
};
return (true);
};
return (false);
};
burstShots = 0;
return (false);
}
override public function destroyedFrames():Array{
trace("destroyed frames");
return (Embeds.playerWasted);
}
override public function _update():void{
var _local3:Number;
if (ms.introPausingGame()){
bombKeyHit();
return;
};
if (bombs > 0){
if (bombKeyHit()){
if (!ms.inIntro){
if (!((ms.inSuccess) || (ms.inFailure))){
dropBomb();
bombs--;
};
};
};
};
if (engineChannel){
if (!engineChannel.playing()){
engineChannel = Sounds.planeIdle.play(true);
};
if (engineChannel){
engineChannel.setVolume((0.6 + (dy / 10)));
};
};
super._update();
Bitmap(obj).smoothing = true;
if (!((controlUp()) || (controlDown()))){
turned180 = false;
lastTurnAngle = baseRotation;
loopControlMethodSet = false;
} else {
if (!loopControlMethodSet){
loopControlMethodSet = true;
loopControlMethod = controlUp();
} else {
if (loopControlMethod != controlUp()){
loopControlMethodSet = false;
turned180 = false;
lastTurnAngle = baseRotation;
};
};
if (Interpolation.distanceToAngle(lastTurnAngle, baseRotation) > 170){
turned180 = true;
};
if (turned180){
if (Interpolation.distanceToAngle(lastTurnAngle, baseRotation) < 10){
evasiveManoeuvre("loop", Embeds.evasive_loop_png);
turned180 = false;
lastTurnAngle = baseRotation;
};
};
};
var _local1:Number = Math.abs((basey - MainScene(gs).sceneMaxY));
var _local2:Number = (dy * speed());
if (_local2 > 0){
_local3 = (_local1 / _local2);
if (_local3 < 80){
if (Interpolation.distanceToAngle(baseRotation, 90) < 45){
evasiveManoeuvre("dive", Embeds.evasive_dive_png);
};
};
};
if (Math.abs((basey - MainScene(gs).sceneMaxY)) < 60){
lowTicks++;
if (lowTicks > 50){
evasiveManoeuvre("low", Embeds.evasive_low_png);
};
} else {
lowTicks = 0;
};
if (inCloud()){
cloudTicks++;
} else {
cloudTicks = 0;
};
if (cloudTicks > 30){
evasiveManoeuvre("cloud", Embeds.evasive_cloud_png);
};
}
override public function controlUp():Boolean{
return (((Input.i.keyDown(upKey())) || (Input.i.keyDown(leftKey()))));
}
public function evasiveManoeuvre(_arg1:String, _arg2:Class):void{
var _local3:ObjectBase;
var _local4:GameObject;
if (dead){
return;
};
if (manoeuvreAppropriate()){
if (!EvasiveIcon.hasDoneManoeuvre(_arg1)){
EvasiveIcon.doManoeuvre(_arg1);
lastManoeuvre = _arg1;
_local3 = new ObjectBase(gs, _arg2, "Ace", basex, basey);
_local3.helperFilter.fadeOff(200, 20);
_local3.removeOnTransition = true;
Sounds.aceTactic.play();
for each (_local4 in gs.objects) {
if ((_local4 is AIPlaneBase)){
if (ObjectBase(_local4).side != side){
AIPlaneBase(_local4).playerHasEvaded();
};
};
};
for each (_local4 in gs.objects) {
if ((_local4 is TurretBase)){
if (ObjectBase(_local4).side != side){
TurretBase(_local4).playerHasEvaded();
};
};
};
};
};
}
public function rightKey():int{
return (37);
}
}
}//package ObjectBase
Section 602
//Projectile (ObjectBase.Projectile)
package ObjectBase {
import GameScene.*;
import GameObject.*;
import Scenes.*;
import Tools.*;
public class Projectile extends ObjectBase {
public var altsource:GameObject;
public var speed:Number;// = 1
public var flakDeleteTime:int;
public var flak:Boolean;// = false
public var weak:Boolean;// = false
public var source:GameObject;
public function Projectile(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
flakDeleteTime = Random.randInt(60, 100);
super(_arg1, _arg2, _arg3, _arg4, _arg5);
collision = new GameObjectCollision();
collision.go = this;
var _local6:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.pushPoint(0, 0);
_local6.pushPoint(10, 0);
_local6.pushPoint(10, 2);
_local6.pushPoint(0, 2);
_local6.approxX = 5;
_local6.approxY = 1;
_local6.approxRadius = Math.sqrt(26);
collision.pushPolygon(_local6);
collision.finalize();
}
override public function _update():void{
var _local4:ObjectBase;
if (ms.introPausingGame()){
return;
};
var _local1:Number = (Math.cos(((baseRotation / 180) * Math.PI)) * 10);
var _local2:Number = (Math.sin(((baseRotation / 180) * Math.PI)) * 10);
basex = (basex + (_local1 * speed));
basey = (basey + (_local2 * speed));
baseHandleX = 0;
baseHandleY = 0.5;
if (basey > (MainScene(gs).floor() + 10)){
emitConditionalParticles("Hit");
remove();
};
var _local3:int;
for each (_local4 in ms.projTargets) {
if (((((!((this == _local4))) && (!((_local4 == source))))) && (!((_local4 == altsource))))){
if (ObjectBase(_local4).side != ObjectBase(source).side){
if (this.collidesWith(_local4)){
if ((((source is ZeppelinObjectBase)) && ((_local4 is ZeppelinObjectBase)))){
} else {
ObjectBase(_local4).damage(this);
this.remove();
Sounds.hit.play();
};
};
};
};
};
if (!flak){
baseAlpha = Interpolation.linearInterpolateLock(1, 0, Interpolation.fromTo(ticks, 90, 100));
};
if (ticks > life()){
if (flak){
if (MainMenu.levelOfDetail){
emitConditionalParticles("Flak", (basex + _local1), (basey + _local2), true);
};
};
remove();
};
}
public function life():int{
if (flak){
return (flakDeleteTime);
};
return (100);
}
}
}//package ObjectBase
Section 603
//SceneryBase (ObjectBase.SceneryBase)
package ObjectBase {
import GameScene.*;
public class SceneryBase extends ObjectBase {
public function SceneryBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
}
}//package ObjectBase
Section 604
//TurretBase (ObjectBase.TurretBase)
package ObjectBase {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Objects.*;
import Tools.*;
import GlobalSetup.*;
public class TurretBase extends ObjectBase {
public var middleAngleDist:Number;// = 0
public var normalFrame:BitmapData;
public var burstDelay:int;// = 5
public var rearAngle:Number;// = -245
public var target:ObjectBase;
public var mouseControlled:Boolean;// = false
public var angle:Number;// = -135
public var flashFrame:BitmapData;
public var burst:int;// = 0
public var _middleAngleCalculated:Boolean;// = false
public var inaccuracy:Number;// = 0
public var frontAngle:Number;// = -95
public var burstOffset:int;
public var lastShot:int;// = 10
public var evaded:int;// = -500
public var weak:Boolean;// = false
public var middleAngle:Number;// = 0
public var flak:Boolean;// = false
public function TurretBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
burstOffset = Random.randInt(0, 100);
flashFrame = new Embeds.gun_flash_png().bitmapData;
normalFrame = new Embeds.gun_png().bitmapData;
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function canShoot(_arg1:ObjectBase, _arg2:int=-1, _arg3:Array=null):Boolean{
if (!_arg1){
return (false);
};
if (_arg1._removed){
return (false);
};
var _local4:Number = angleToObject(_arg1);
if (_arg1){
if (_arg1.side == side){
return (false);
};
};
if (Interpolation.distanceToAngle(_local4, middleAngle) > (middleAngleDist / 2)){
return (false);
};
return (true);
}
public function playerHasEvaded():void{
evaded = ticks;
}
override public function isValidTarget():Boolean{
return (false);
}
override public function _update():void{
var _local3:Number;
var _local4:Number;
var _local5:Boolean;
var _local6:Boolean;
var _local7:Boolean;
var _local8:Bullet;
var _local9:Boolean;
if (lastShot > 3){
Bitmap(obj).bitmapData = normalFrame;
} else {
Bitmap(obj).bitmapData = flashFrame;
};
if (ms.introPausingGame()){
return;
};
if (!_middleAngleCalculated){
_middleAngleCalculated = true;
middleAngleDist = Interpolation.distanceToAngle(rearAngle, frontAngle);
middleAngle = Interpolation.tendTowardsAngle(rearAngle, frontAngle, (middleAngleDist / 2));
angle = (middleAngle + Random.randInt((-(middleAngleDist) / 2), (middleAngleDist / 2)));
baseRotation = (angle + 90);
};
if (!target){
target = findATarget(canShoot);
};
if (!canShoot(target)){
target = null;
};
var _local1 = ((ticks - evaded) < AIPlaneBase.evadeTime);
if (target){
if (target.recentlyInCloud()){
_local1 = true;
};
};
lastShot++;
if ((parent is BomberBase)){
if (BomberBase(parent).dead){
_local1 = false;
};
};
var _local2:GameObject = parent.helper.conditionallyCreateChild(Confused, "Confused", _local1);
if (_local2){
_local2.basex = parent.basex;
_local2.basey = (parent.basey - 32);
};
if (_local1){
return;
};
if (((target) || (mouseControlled))){
if (!mouseControlled){
_local3 = angleToObject(target);
};
_local4 = 1;
_local5 = true;
if (canShoot(target)){
angle = Interpolation.tendTowardsAngle(angle, _local3, _local4);
baseRotation = (angle + 90);
} else {
_local5 = false;
};
if (mouseControlled){
_local5 = Input.i.mouseDown();
};
if (parent){
if ((parent is ObjectBase)){
if (ObjectBase(parent).dead){
_local5 = false;
};
};
};
if (Interpolation.distanceToAngle(angle, _local3) > 5){
_local5 = false;
};
if (!mouseControlled){
if (target.distanceToObject(parent) > 500){
_local5 = false;
};
};
if (!_local5){
burst++;
};
_local6 = ((randTicks % 15) == 5);
if (mouseControlled){
_local6 = ((ticks % 10) == 0);
};
if (!_local5){
return;
};
if (((_local6) && (_local5))){
burst++;
_local7 = (((burstOffset + burst) % (burstDelay + 5)) < 5);
if (mouseControlled){
_local7 = true;
};
if (_local7){
_local8 = new Bullet(gs, (basex + parent.basex), (basey + parent.basey));
_local8.baseRotation = (angle + Math.random());
_local8.source = parent;
_local8.speed = 0.75;
_local8.flak = flak;
if (weak){
_local8.speed = 0.4;
_local8.weak = true;
};
_local8.move((baseHeight * 0.9), 0);
_local9 = true;
if ((this is AirTurret)){
Sounds.aaGun.play();
} else {
Sounds.smallGun.play();
};
lastShot = 0;
};
};
};
}
override public function _init():void{
Bitmap(obj).bitmapData = normalFrame;
}
}
}//package ObjectBase
Section 605
//TwoPlayerBase (ObjectBase.TwoPlayerBase)
package ObjectBase {
import GameScene.*;
import flash.display.*;
import Audio.*;
import Scenes.*;
import Tools.*;
public class TwoPlayerBase extends Plane {
public var engineChannel:GameSoundChannel;
public function TwoPlayerBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
side = "German";
className = "German";
}
override public function maxHealth():int{
return (25);
}
override public function controlDown():Boolean{
if (!MainMenu.controlsReversed2){
return ((Input.i.keyDown(38) > 0));
};
return ((Input.i.keyDown(40) > 0));
}
override public function _update():void{
if (ms.introPausingGame()){
return;
};
if (engineChannel){
if (!engineChannel.playing()){
engineChannel = Sounds.planeIdle.play(true);
};
if (engineChannel){
engineChannel.setVolume((0.6 + (dy / 10)));
};
};
super._update();
Bitmap(obj).smoothing = true;
}
override public function shooting():Boolean{
if (dead){
return (false);
};
if (Input.i.keyDown(13)){
if ((ticks % 10) == 0){
return (true);
};
return (false);
};
burstShots = 0;
return (false);
}
override public function controlUp():Boolean{
if (!MainMenu.controlsReversed2){
return ((Input.i.keyDown(40) > 0));
};
return ((Input.i.keyDown(38) > 0));
}
}
}//package ObjectBase
Section 606
//ZeppelinObjectBase (ObjectBase.ZeppelinObjectBase)
package ObjectBase {
import GameScene.*;
import GameObject.*;
import Objects.*;
import Tools.*;
public class ZeppelinObjectBase extends ObjectBase {
public var dRotation:Number;// = 0
public var rearAngle:Number;// = 0
public var target:PlayerPlane;
public var angle:Number;// = -135
public var health:int;
public var inaccuracy:Number;// = 0
public var burst:int;// = 0
public var frontAngle:Number;// = 180
public var lastShot:int;// = 10
public function ZeppelinObjectBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
health = 1;
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
override public function handleBombHit():void{
damage(null);
}
override public function attractsBombs():Boolean{
return (true);
}
public function blockFire():Boolean{
return (false);
}
override public function _update():void{
var _local1:Number;
var _local2:GameObject;
var _local3:GameObject;
var _local4:Boolean;
var _local5:Bullet;
var _local6:Boolean;
if (ms.introPausingGame()){
return;
};
lastShot++;
grabTarget();
inaccuracy = (inaccuracy + 0.1);
baseRotation = (baseRotation + dRotation);
if (target != null){
_local1 = angleToObject(target);
angle = Interpolation.tendTowardsAngle(angle, _local1, 1);
if (angle > frontAngle){
angle = frontAngle;
};
if (angle < rearAngle){
angle = rearAngle;
};
_local2 = findChildrenByName("gun")[0];
_local3 = findChildrenByName("gunflash")[0];
_local4 = (((Interpolation.directionToAngle(angle, rearAngle) < 0.5)) && ((Interpolation.directionToAngle(angle, frontAngle) > 0.5)));
if (_local4){
_local2.baseRotation = (angle + 90);
_local3.baseRotation = (angle + 90);
};
if (lastShot > 3){
_local3.baseAlpha = 0;
} else {
_local3.baseAlpha = 1;
};
if (blockFire()){
_local4 = false;
};
if (Interpolation.distanceToAngle(angle, _local1) > 5){
_local4 = false;
};
if (!_local4){
burst++;
};
if (((((ticks % 15) == 0)) && (_local4))){
burst++;
if ((burst % 30) < 5){
_local5 = new Bullet(gs, (basex + _local2.basex), (basey + _local2.basey));
if (parent){
_local5.basex = (_local5.basex + parent.basex);
_local5.basey = (_local5.basey + parent.basey);
};
_local5.baseRotation = (angle + Math.random());
_local5.source = this;
_local5.speed = 0.4;
_local5.weak = true;
_local5.side = side;
_local6 = true;
for each (_local2 in gs.objects) {
if ((_local2 is Zeppelin)){
if (((!((_local2 == this))) && (!((_local2 == _local5))))){
if (_local5.collidesWith(_local2)){
_local6 = false;
};
};
};
};
if (!_local6){
_local5.remove();
} else {
Sounds.smallGun.play();
lastShot = 0;
};
};
};
};
}
override public function damage(_arg1:ObjectBase):void{
if (((!(_arg1)) || ((_arg1 is BombBase)))){
health = (health - 20);
} else {
health--;
};
if (health < 0){
if (!dead){
dead = true;
};
};
}
override public function _init():void{
var _local1:GameObject = findChildrenByName("gunflash")[0];
if (_local1){
_local1.baseAlpha = 0;
};
}
public function grabTarget():void{
var _local1:GameObject;
target = null;
for each (_local1 in gs.objects) {
if ((_local1 is PlayerPlane)){
target = PlayerPlane(_local1);
};
};
}
}
}//package ObjectBase
Section 607
//AAGun_constructor (ObjectConstructors.AAGun_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class AAGun_constructor {
public static var rotations_1_embed:Class = Embeds.aa_gunner001_png;
public static var rotations_2_embed:Class = Embeds.aa_gunner002_png;
public static var rotations_3_embed:Class = Embeds.aa_gunner003_png;
public static var rotations_5_embed:Class = Embeds.aa_gunner005_png;
public static var rotations_7_embed:Class = Embeds.aa_gunner007_png;
public static var rotations_4_embed:Class = Embeds.aa_gunner004_png;
public static var rotations_6_embed:Class = Embeds.aa_gunner006_png;
public static var baseim_embed:Class = Embeds.aa_gunner004_png;
public static var LayerName:String = "Player";
public static var rotations_1:BitmapData = new Embeds.aa_gunner001_png().bitmapData;
public static var rotations_2:BitmapData = new Embeds.aa_gunner002_png().bitmapData;
public static var rotations_3:BitmapData = new Embeds.aa_gunner003_png().bitmapData;
public static var rotations_5:BitmapData = new Embeds.aa_gunner005_png().bitmapData;
public static var rotations_6:BitmapData = new Embeds.aa_gunner006_png().bitmapData;
public static var rotations_7:BitmapData = new Embeds.aa_gunner007_png().bitmapData;
public static var rotations_4:BitmapData = new Embeds.aa_gunner004_png().bitmapData;
public static var baseim:BitmapData = new Embeds.aa_gunner004_png().bitmapData;
public static var rotations:Array = [rotations_1, rotations_2, rotations_3, rotations_4, rotations_5, rotations_6, rotations_7];
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-13, -6);
_local7.pushPoint(3, -7);
_local7.pushPoint(10, 12);
_local7.pushPoint(-11, 13);
_local7.approxX = -3;
_local7.approxY = 5;
_local7.approxRadius = 14.8660688;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
AAGun(_arg2).rotations = rotations;
}
}
}//package ObjectConstructors
Section 608
//AirTurret_constructor (ObjectConstructors.AirTurret_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class AirTurret_constructor {
public static var baseim:BitmapData = new Embeds.aa_turret_png().bitmapData;
public static var LayerName:String = "ObstacleFront";
public static var baseim_embed:Class = Embeds.aa_turret_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
}
}
}//package ObjectConstructors
Section 609
//Balloon_constructor (ObjectConstructors.Balloon_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Balloon_constructor {
public static var LayerName:String = "Player";
public static var damaged:BitmapData = new Embeds.balloon_damaged_png().bitmapData;
public static var baseim_embed:Class = Embeds.balloon_png;
public static var child1_embed:Class = Embeds.balloon_line_png;
public static var child1:BitmapData = new Embeds.balloon_line_png().bitmapData;
public static var damaged_embed:Class = Embeds.balloon_damaged_png;
public static var baseim:BitmapData = new Embeds.balloon_png().bitmapData;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-67, 6);
_local7.pushPoint(-16, 20);
_local7.pushPoint(-28, 34);
_local7.pushPoint(-55, 27);
_local7.approxX = -42;
_local7.approxY = 15;
_local7.approxRadius = 26.5706596;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(20, -33);
_local7.pushPoint(61, -24);
_local7.pushPoint(69, -10);
_local7.pushPoint(54, 9);
_local7.pushPoint(17, 18);
_local7.approxX = 37;
_local7.approxY = -7;
_local7.approxRadius = 32.140316;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-72, 0);
_local7.pushPoint(-37, -20);
_local7.pushPoint(20, -32);
_local7.pushPoint(19, 18);
_local7.pushPoint(-37, 17);
_local7.approxX = -23;
_local7.approxY = -8;
_local7.approxRadius = 49.6487656;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
_local8 = new GameObject(_arg1, child1_embed, "BehindObstacleBack", 23, 169);
_local8.name = "line";
_local8.baseHandleX = 0.5;
_local8.baseHandleY = 0.5;
_local8.basex = 23;
_local8.basey = 169;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
Balloon(_arg2).damaged = damaged;
}
}
}//package ObjectConstructors
Section 610
//Bomb_constructor (ObjectConstructors.Bomb_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Bomb_constructor {
public static var baseim:BitmapData = new Embeds.bomb_png().bitmapData;
public static var LayerName:String = "Player";
public static var baseim_embed:Class = Embeds.bomb_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-10, -4);
_local7.pushPoint(8, -4);
_local7.pushPoint(8, 1);
_local7.pushPoint(-9, 3);
_local7.approxX = -1;
_local7.approxY = -2;
_local7.approxRadius = 9.48683262;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
}
}
}//package ObjectConstructors
Section 611
//BombTargetHouse_constructor (ObjectConstructors.BombTargetHouse_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class BombTargetHouse_constructor {
public static var images_1_embed:Class = Embeds.bombtarget1_png;
public static var images_2_embed:Class = Embeds.bombtarget2_png;
public static var images_3_embed:Class = Embeds.bombtarget3_png;
public static var images_4_embed:Class = Embeds.bombtarget4_png;
public static var baseim_embed:Class = Embeds.bombtarget1_png;
public static var images_5_embed:Class = Embeds.bombtarget5_png;
public static var LayerName:String = "GroundFront";
public static var images_1:BitmapData = new Embeds.bombtarget1_png().bitmapData;
public static var images_2:BitmapData = new Embeds.bombtarget2_png().bitmapData;
public static var images_3:BitmapData = new Embeds.bombtarget3_png().bitmapData;
public static var images_4:BitmapData = new Embeds.bombtarget4_png().bitmapData;
public static var images_5:BitmapData = new Embeds.bombtarget5_png().bitmapData;
public static var baseim:BitmapData = new Embeds.bombtarget1_png().bitmapData;
public static var images:Array = [images_1, images_2, images_3, images_4, images_5];
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
BombTargetHouse(_arg2).images = images;
}
}
}//package ObjectConstructors
Section 612
//Bullet_constructor (ObjectConstructors.Bullet_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Bullet_constructor {
public static var baseim:BitmapData = new Embeds.bullet_png().bitmapData;
public static var LayerName:String = "ObstacleFront";
public static var baseim_embed:Class = Embeds.bullet_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
}
}
}//package ObjectConstructors
Section 613
//Cloud_constructor (ObjectConstructors.Cloud_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Cloud_constructor {
public static var baseim:BitmapData = new Embeds.cloud3_png().bitmapData;
public static var LayerName:String = "AfterPlayer";
public static var baseim_embed:Class = Embeds.cloud3_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
}
}
}//package ObjectConstructors
Section 614
//Confused_constructor (ObjectConstructors.Confused_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Confused_constructor {
public static var baseim:BitmapData = new Embeds.confused_png().bitmapData;
public static var LayerName:String = "Player";
public static var baseim_embed:Class = Embeds.confused_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
}
}
}//package ObjectConstructors
Section 615
//ConvoyAA_constructor (ObjectConstructors.ConvoyAA_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class ConvoyAA_constructor {
public static var deathFrame_embed:Class = Embeds.convoy_dead_3_png;
public static var baseim:BitmapData = new Embeds.convoy_3_png().bitmapData;
public static var deathFrame:BitmapData = new Embeds.convoy_dead_3_png().bitmapData;
public static var LayerName:String = "Player";
public static var baseim_embed:Class = Embeds.convoy_3_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-24, -12);
_local7.pushPoint(-5, -14);
_local7.pushPoint(14, -3);
_local7.pushPoint(17, 6);
_local7.pushPoint(-29, 8);
_local7.approxX = -6;
_local7.approxY = 3;
_local7.approxRadius = 23.5372047;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
ConvoyAA(_arg2).deathFrame = deathFrame;
}
}
}//package ObjectConstructors
Section 616
//ConvoyCar_constructor (ObjectConstructors.ConvoyCar_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class ConvoyCar_constructor {
public static var deathFrame_embed:Class = Embeds.convoy_dead_1_png;
public static var baseim:BitmapData = new Embeds.convoy_1_png().bitmapData;
public static var deathFrame:BitmapData = new Embeds.convoy_dead_1_png().bitmapData;
public static var LayerName:String = "Player";
public static var baseim_embed:Class = Embeds.convoy_1_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-23, -13);
_local7.pushPoint(-2, -11);
_local7.pushPoint(12, -3);
_local7.pushPoint(17, 5);
_local7.pushPoint(-20, 6);
_local7.approxX = -3;
_local7.approxY = -4;
_local7.approxRadius = 21.9317131;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
ConvoyCar(_arg2).deathFrame = deathFrame;
}
}
}//package ObjectConstructors
Section 617
//ConvoyTruck_constructor (ObjectConstructors.ConvoyTruck_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class ConvoyTruck_constructor {
public static var deathFrame_embed:Class = Embeds.convoy_dead_2_png;
public static var baseim:BitmapData = new Embeds.convoy_2_png().bitmapData;
public static var deathFrame:BitmapData = new Embeds.convoy_dead_2_png().bitmapData;
public static var LayerName:String = "Player";
public static var baseim_embed:Class = Embeds.convoy_2_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-24, -11);
_local7.pushPoint(0, -13);
_local7.pushPoint(17, -1);
_local7.pushPoint(18, 8);
_local7.pushPoint(-27, 9);
_local7.approxX = -5;
_local7.approxY = 3;
_local7.approxRadius = 23.6008472;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
ConvoyTruck(_arg2).deathFrame = deathFrame;
}
}
}//package ObjectConstructors
Section 618
//EnemyAce_constructor (ObjectConstructors.EnemyAce_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class EnemyAce_constructor {
public static var roll_17_embed:Class = Embeds.ace_e_roll017_png;
public static var roll_9:BitmapData = new Embeds.ace_e_roll009_png().bitmapData;
public static var child1_1:BitmapData = new Embeds.plane_prop001_png().bitmapData;
public static var child1_2:BitmapData = new Embeds.plane_prop002_png().bitmapData;
public static var child1_3:BitmapData = new Embeds.plane_prop003_png().bitmapData;
public static var roll_3_embed:Class = Embeds.ace_e_roll003_png;
public static var roll_7_embed:Class = Embeds.ace_e_roll007_png;
public static var roll_10:BitmapData = new Embeds.ace_e_roll010_png().bitmapData;
public static var child1_3_embed:Class = Embeds.plane_prop003_png;
public static var roll_13:BitmapData = new Embeds.ace_e_roll013_png().bitmapData;
public static var roll_14:BitmapData = new Embeds.ace_e_roll014_png().bitmapData;
public static var roll_15:BitmapData = new Embeds.ace_e_roll015_png().bitmapData;
public static var roll_16:BitmapData = new Embeds.ace_e_roll016_png().bitmapData;
public static var roll_17:BitmapData = new Embeds.ace_e_roll017_png().bitmapData;
public static var roll_24_embed:Class = Embeds.ace_e_roll024_png;
public static var roll_18:BitmapData = new Embeds.ace_e_roll018_png().bitmapData;
public static var roll_11:BitmapData = new Embeds.ace_e_roll011_png().bitmapData;
public static var roll_12:BitmapData = new Embeds.ace_e_roll012_png().bitmapData;
public static var roll_19:BitmapData = new Embeds.ace_e_roll019_png().bitmapData;
public static var roll_28_embed:Class = Embeds.ace_e_roll028_png;
public static var roll_10_embed:Class = Embeds.ace_e_roll010_png;
public static var roll_20_embed:Class = Embeds.ace_e_roll020_png;
public static var roll_14_embed:Class = Embeds.ace_e_roll014_png;
public static var roll_20:BitmapData = new Embeds.ace_e_roll020_png().bitmapData;
public static var roll_21:BitmapData = new Embeds.ace_e_roll021_png().bitmapData;
public static var roll_18_embed:Class = Embeds.ace_e_roll018_png;
public static var roll_25:BitmapData = new Embeds.ace_e_roll025_png().bitmapData;
public static var roll_4_embed:Class = Embeds.ace_e_roll004_png;
public static var roll_28:BitmapData = new Embeds.ace_e_roll028_png().bitmapData;
public static var roll_8_embed:Class = Embeds.ace_e_roll008_png;
public static var roll_22:BitmapData = new Embeds.ace_e_roll022_png().bitmapData;
public static var roll_26:BitmapData = new Embeds.ace_e_roll026_png().bitmapData;
public static var roll_27:BitmapData = new Embeds.ace_e_roll027_png().bitmapData;
public static var roll_29:BitmapData = new Embeds.ace_e_roll029_png().bitmapData;
public static var roll_21_embed:Class = Embeds.ace_e_roll021_png;
public static var LayerName:String = "Player";
public static var roll_25_embed:Class = Embeds.ace_e_roll025_png;
public static var roll_31:BitmapData = new Embeds.ace_e_roll031_png().bitmapData;
public static var roll_32:BitmapData = new Embeds.ace_e_roll032_png().bitmapData;
public static var roll_29_embed:Class = Embeds.ace_e_roll029_png;
public static var roll_23:BitmapData = new Embeds.ace_e_roll023_png().bitmapData;
public static var roll_24:BitmapData = new Embeds.ace_e_roll024_png().bitmapData;
public static var roll_31_embed:Class = Embeds.ace_e_roll031_png;
public static var roll_30:BitmapData = new Embeds.ace_e_roll030_png().bitmapData;
public static var roll_32_embed:Class = Embeds.ace_e_roll032_png;
public static var roll_11_embed:Class = Embeds.ace_e_roll011_png;
public static var roll:Array = [roll_1, roll_2, roll_3, roll_4, roll_5, roll_6, roll_7, roll_8, roll_9, roll_10, roll_11, roll_12, roll_13, roll_14, roll_15, roll_16, roll_17, roll_18, roll_19, roll_20, roll_21, roll_22, roll_23, roll_24, roll_25, roll_26, roll_27, roll_28, roll_29, roll_30, roll_31, roll_32];
public static var roll_15_embed:Class = Embeds.ace_e_roll015_png;
public static var roll_19_embed:Class = Embeds.ace_e_roll019_png;
public static var roll_1_embed:Class = Embeds.ace_e_roll001_png;
public static var roll_5_embed:Class = Embeds.ace_e_roll005_png;
public static var roll_9_embed:Class = Embeds.ace_e_roll009_png;
public static var child1:Array = [child1_1, child1_2, child1_3];
public static var child2:BitmapData = new Embeds.flash_png().bitmapData;
public static var child1_1_embed:Class = Embeds.plane_prop001_png;
public static var roll_22_embed:Class = Embeds.ace_e_roll022_png;
public static var roll_26_embed:Class = Embeds.ace_e_roll026_png;
public static var baseim:BitmapData = new Embeds.ace_e_roll030_png().bitmapData;
public static var roll_12_embed:Class = Embeds.ace_e_roll012_png;
public static var roll_16_embed:Class = Embeds.ace_e_roll016_png;
public static var roll_2_embed:Class = Embeds.ace_e_roll002_png;
public static var roll_6_embed:Class = Embeds.ace_e_roll006_png;
public static var baseim_embed:Class = Embeds.ace_e_roll030_png;
public static var roll_23_embed:Class = Embeds.ace_e_roll023_png;
public static var roll_27_embed:Class = Embeds.ace_e_roll027_png;
public static var child1_2_embed:Class = Embeds.plane_prop002_png;
public static var roll_1:BitmapData = new Embeds.ace_e_roll001_png().bitmapData;
public static var child2_embed:Class = Embeds.flash_png;
public static var roll_3:BitmapData = new Embeds.ace_e_roll003_png().bitmapData;
public static var roll_4:BitmapData = new Embeds.ace_e_roll004_png().bitmapData;
public static var roll_5:BitmapData = new Embeds.ace_e_roll005_png().bitmapData;
public static var roll_6:BitmapData = new Embeds.ace_e_roll006_png().bitmapData;
public static var roll_7:BitmapData = new Embeds.ace_e_roll007_png().bitmapData;
public static var roll_8:BitmapData = new Embeds.ace_e_roll008_png().bitmapData;
public static var roll_2:BitmapData = new Embeds.ace_e_roll002_png().bitmapData;
public static var roll_30_embed:Class = Embeds.ace_e_roll030_png;
public static var roll_13_embed:Class = Embeds.ace_e_roll013_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-14, -10);
_local7.pushPoint(12, -9);
_local7.pushPoint(15, -1);
_local7.pushPoint(10, 9);
_local7.pushPoint(-17, 2);
_local7.approxX = -1;
_local7.approxY = -1;
_local7.approxRadius = 16.27882;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
_local8 = new GameObject(_arg1, child1_1_embed, "Player", 0, 0);
_local8.name = "";
_local8.baseHandleX = 0.579999983;
_local8.baseHandleY = 0.49000001;
_local8.basex = 0;
_local8.basey = 0;
_local8.animSpeed = 4;
_arg2.addChild(_local8);
_local8.imageSet = child1;
_local8 = new GameObject(_arg1, child2_embed, "Player", 0, 0);
_local8.name = "muzzleflash";
_local8.baseHandleX = -0.100000001;
_local8.baseHandleY = 0.899999976;
_local8.basex = 0;
_local8.basey = 0;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
EnemyAce(_arg2).roll = roll;
}
}
}//package ObjectConstructors
Section 619
//EnemyPlane_constructor (ObjectConstructors.EnemyPlane_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class EnemyPlane_constructor {
public static var roll_17_embed:Class = Embeds.ace_g_roll017_png;
public static var roll_3_embed:Class = Embeds.ace_g_roll003_png;
public static var roll_7_embed:Class = Embeds.ace_g_roll007_png;
public static var roll_10:BitmapData = new Embeds.ace_g_roll010_png().bitmapData;
public static var roll_12:BitmapData = new Embeds.ace_g_roll012_png().bitmapData;
public static var roll_13:BitmapData = new Embeds.ace_g_roll013_png().bitmapData;
public static var roll_14:BitmapData = new Embeds.ace_g_roll014_png().bitmapData;
public static var roll_15:BitmapData = new Embeds.ace_g_roll015_png().bitmapData;
public static var roll_16:BitmapData = new Embeds.ace_g_roll016_png().bitmapData;
public static var roll_17:BitmapData = new Embeds.ace_g_roll017_png().bitmapData;
public static var roll_24_embed:Class = Embeds.ace_g_roll024_png;
public static var roll_18:BitmapData = new Embeds.ace_g_roll018_png().bitmapData;
public static var roll_11:BitmapData = new Embeds.ace_g_roll011_png().bitmapData;
public static var roll_20_embed:Class = Embeds.ace_g_roll020_png;
public static var roll_19:BitmapData = new Embeds.ace_g_roll019_png().bitmapData;
public static var roll_28_embed:Class = Embeds.ace_g_roll028_png;
public static var roll_10_embed:Class = Embeds.ace_g_roll010_png;
public static var roll_14_embed:Class = Embeds.ace_g_roll014_png;
public static var roll_20:BitmapData = new Embeds.ace_g_roll020_png().bitmapData;
public static var roll_21:BitmapData = new Embeds.ace_g_roll021_png().bitmapData;
public static var roll_23:BitmapData = new Embeds.ace_g_roll023_png().bitmapData;
public static var roll_25:BitmapData = new Embeds.ace_g_roll025_png().bitmapData;
public static var roll_22:BitmapData = new Embeds.ace_g_roll022_png().bitmapData;
public static var roll_18_embed:Class = Embeds.ace_g_roll018_png;
public static var roll_24:BitmapData = new Embeds.ace_g_roll024_png().bitmapData;
public static var roll_4_embed:Class = Embeds.ace_g_roll004_png;
public static var roll_26:BitmapData = new Embeds.ace_g_roll026_png().bitmapData;
public static var roll_28:BitmapData = new Embeds.ace_g_roll028_png().bitmapData;
public static var roll_8_embed:Class = Embeds.ace_g_roll008_png;
public static var roll_27:BitmapData = new Embeds.ace_g_roll027_png().bitmapData;
public static var roll_29:BitmapData = new Embeds.ace_g_roll029_png().bitmapData;
public static var roll_21_embed:Class = Embeds.ace_g_roll021_png;
public static var LayerName:String = "Player";
public static var roll_25_embed:Class = Embeds.ace_g_roll025_png;
public static var roll_31:BitmapData = new Embeds.ace_g_roll031_png().bitmapData;
public static var roll_32:BitmapData = new Embeds.ace_g_roll032_png().bitmapData;
public static var roll_29_embed:Class = Embeds.ace_g_roll029_png;
public static var roll_31_embed:Class = Embeds.ace_g_roll031_png;
public static var roll_30:BitmapData = new Embeds.ace_g_roll030_png().bitmapData;
public static var roll_32_embed:Class = Embeds.ace_g_roll032_png;
public static var roll_11_embed:Class = Embeds.ace_g_roll011_png;
public static var roll:Array = [roll_1, roll_2, roll_3, roll_4, roll_5, roll_6, roll_7, roll_8, roll_9, roll_10, roll_11, roll_12, roll_13, roll_14, roll_15, roll_16, roll_17, roll_18, roll_19, roll_20, roll_21, roll_22, roll_23, roll_24, roll_25, roll_26, roll_27, roll_28, roll_29, roll_30, roll_31, roll_32];
public static var roll_15_embed:Class = Embeds.ace_g_roll015_png;
public static var roll_19_embed:Class = Embeds.ace_g_roll019_png;
public static var roll_1_embed:Class = Embeds.ace_g_roll001_png;
public static var roll_5_embed:Class = Embeds.ace_g_roll005_png;
public static var roll_9_embed:Class = Embeds.ace_g_roll009_png;
public static var child1:BitmapData = new Embeds.flash_png().bitmapData;
public static var roll_22_embed:Class = Embeds.ace_g_roll022_png;
public static var roll_26_embed:Class = Embeds.ace_g_roll026_png;
public static var child1_embed:Class = Embeds.flash_png;
public static var baseim:BitmapData = new Embeds.ace_g_roll001_png().bitmapData;
public static var roll_12_embed:Class = Embeds.ace_g_roll012_png;
public static var roll_16_embed:Class = Embeds.ace_g_roll016_png;
public static var roll_2_embed:Class = Embeds.ace_g_roll002_png;
public static var roll_6_embed:Class = Embeds.ace_g_roll006_png;
public static var baseim_embed:Class = Embeds.ace_g_roll001_png;
public static var roll_23_embed:Class = Embeds.ace_g_roll023_png;
public static var roll_27_embed:Class = Embeds.ace_g_roll027_png;
public static var roll_1:BitmapData = new Embeds.ace_g_roll001_png().bitmapData;
public static var roll_2:BitmapData = new Embeds.ace_g_roll002_png().bitmapData;
public static var roll_3:BitmapData = new Embeds.ace_g_roll003_png().bitmapData;
public static var roll_4:BitmapData = new Embeds.ace_g_roll004_png().bitmapData;
public static var roll_5:BitmapData = new Embeds.ace_g_roll005_png().bitmapData;
public static var roll_6:BitmapData = new Embeds.ace_g_roll006_png().bitmapData;
public static var roll_7:BitmapData = new Embeds.ace_g_roll007_png().bitmapData;
public static var roll_8:BitmapData = new Embeds.ace_g_roll008_png().bitmapData;
public static var roll_9:BitmapData = new Embeds.ace_g_roll009_png().bitmapData;
public static var roll_30_embed:Class = Embeds.ace_g_roll030_png;
public static var roll_13_embed:Class = Embeds.ace_g_roll013_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-14, -10);
_local7.pushPoint(12, -9);
_local7.pushPoint(15, -1);
_local7.pushPoint(10, 9);
_local7.pushPoint(-17, 2);
_local7.approxX = -1;
_local7.approxY = -1;
_local7.approxRadius = 16.27882;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
_local8 = new GameObject(_arg1, child1_embed, "Player", 0, 0);
_local8.name = "muzzleflash";
_local8.baseHandleX = -0.100000001;
_local8.baseHandleY = 0.899999976;
_local8.basex = 0;
_local8.basey = 0;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
EnemyPlane(_arg2).roll = roll;
}
}
}//package ObjectConstructors
Section 620
//EnglishBomber_constructor (ObjectConstructors.EnglishBomber_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class EnglishBomber_constructor {
public static var imageSet_8:BitmapData = new Embeds.e_bomb_roll008_png().bitmapData;
public static var imageSet_7:BitmapData = new Embeds.e_bomb_roll007_png().bitmapData;
public static var imageSet_9:BitmapData = new Embeds.e_bomb_roll009_png().bitmapData;
public static var imageSet_10_embed:Class = Embeds.e_bomb_roll010_png;
public static var baseim_embed:Class = Embeds.e_bomb_roll005_png;
public static var imageSet_1_embed:Class = Embeds.e_bomb_roll001_png;
public static var imageSet_2_embed:Class = Embeds.e_bomb_roll002_png;
public static var imageSet_3_embed:Class = Embeds.e_bomb_roll003_png;
public static var imageSet_4_embed:Class = Embeds.e_bomb_roll004_png;
public static var imageSet_5_embed:Class = Embeds.e_bomb_roll005_png;
public static var imageSet_6_embed:Class = Embeds.e_bomb_roll006_png;
public static var imageSet_7_embed:Class = Embeds.e_bomb_roll007_png;
public static var imageSet_8_embed:Class = Embeds.e_bomb_roll008_png;
public static var imageSet_9_embed:Class = Embeds.e_bomb_roll009_png;
public static var LayerName:String = "Player";
public static var imageSet:Array = [imageSet_1, imageSet_2, imageSet_3, imageSet_4, imageSet_5, imageSet_6, imageSet_7, imageSet_8, imageSet_9, imageSet_10];
public static var imageSet_10:BitmapData = new Embeds.e_bomb_roll010_png().bitmapData;
public static var baseim:BitmapData = new Embeds.e_bomb_roll005_png().bitmapData;
public static var imageSet_1:BitmapData = new Embeds.e_bomb_roll001_png().bitmapData;
public static var imageSet_2:BitmapData = new Embeds.e_bomb_roll002_png().bitmapData;
public static var imageSet_3:BitmapData = new Embeds.e_bomb_roll003_png().bitmapData;
public static var imageSet_4:BitmapData = new Embeds.e_bomb_roll004_png().bitmapData;
public static var imageSet_5:BitmapData = new Embeds.e_bomb_roll005_png().bitmapData;
public static var imageSet_6:BitmapData = new Embeds.e_bomb_roll006_png().bitmapData;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-42, -1);
_local7.pushPoint(-42, -11);
_local7.pushPoint(-33, -12);
_local7.pushPoint(-34, 0);
_local7.approxX = -37;
_local7.approxY = -6;
_local7.approxRadius = 7.21110249;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(8, -2);
_local7.pushPoint(9, -12);
_local7.pushPoint(25, -10);
_local7.pushPoint(23, -3);
_local7.approxX = 16;
_local7.approxY = -7;
_local7.approxRadius = 9.48683262;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-32, -5);
_local7.pushPoint(38, -2);
_local7.pushPoint(39, 5);
_local7.pushPoint(22, 16);
_local7.pushPoint(-25, 5);
_local7.approxX = 3;
_local7.approxY = 3;
_local7.approxRadius = 36.0555115;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
EnglishBomber(_arg2).imageSet = imageSet;
}
}
}//package ObjectConstructors
Section 621
//GermanBomber_constructor (ObjectConstructors.GermanBomber_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class GermanBomber_constructor {
public static var imageSet_8:BitmapData = new Embeds.g_bomb_roll008_png().bitmapData;
public static var imageSet_7:BitmapData = new Embeds.g_bomb_roll007_png().bitmapData;
public static var imageSet_9:BitmapData = new Embeds.g_bomb_roll009_png().bitmapData;
public static var imageSet_10_embed:Class = Embeds.g_bomb_roll010_png;
public static var baseim_embed:Class = Embeds.g_bomb_roll005_png;
public static var imageSet_1_embed:Class = Embeds.g_bomb_roll001_png;
public static var imageSet_2_embed:Class = Embeds.g_bomb_roll002_png;
public static var imageSet_3_embed:Class = Embeds.g_bomb_roll003_png;
public static var imageSet_4_embed:Class = Embeds.g_bomb_roll004_png;
public static var imageSet_5_embed:Class = Embeds.g_bomb_roll005_png;
public static var imageSet_6_embed:Class = Embeds.g_bomb_roll006_png;
public static var imageSet_7_embed:Class = Embeds.g_bomb_roll007_png;
public static var imageSet_8_embed:Class = Embeds.g_bomb_roll008_png;
public static var imageSet_9_embed:Class = Embeds.g_bomb_roll009_png;
public static var LayerName:String = "Player";
public static var imageSet:Array = [imageSet_1, imageSet_2, imageSet_3, imageSet_4, imageSet_5, imageSet_6, imageSet_7, imageSet_8, imageSet_9, imageSet_10];
public static var imageSet_10:BitmapData = new Embeds.g_bomb_roll010_png().bitmapData;
public static var baseim:BitmapData = new Embeds.g_bomb_roll005_png().bitmapData;
public static var imageSet_1:BitmapData = new Embeds.g_bomb_roll001_png().bitmapData;
public static var imageSet_2:BitmapData = new Embeds.g_bomb_roll002_png().bitmapData;
public static var imageSet_3:BitmapData = new Embeds.g_bomb_roll003_png().bitmapData;
public static var imageSet_4:BitmapData = new Embeds.g_bomb_roll004_png().bitmapData;
public static var imageSet_5:BitmapData = new Embeds.g_bomb_roll005_png().bitmapData;
public static var imageSet_6:BitmapData = new Embeds.g_bomb_roll006_png().bitmapData;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-42, -1);
_local7.pushPoint(-42, -11);
_local7.pushPoint(-33, -12);
_local7.pushPoint(-34, 0);
_local7.approxX = -37;
_local7.approxY = -6;
_local7.approxRadius = 7.21110249;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(8, -2);
_local7.pushPoint(9, -12);
_local7.pushPoint(25, -10);
_local7.pushPoint(23, -3);
_local7.approxX = 16;
_local7.approxY = -7;
_local7.approxRadius = 9.48683262;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-32, -5);
_local7.pushPoint(38, -2);
_local7.pushPoint(39, 5);
_local7.pushPoint(22, 16);
_local7.pushPoint(-25, 5);
_local7.approxX = 3;
_local7.approxY = 3;
_local7.approxRadius = 36.0555115;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
GermanBomber(_arg2).imageSet = imageSet;
}
}
}//package ObjectConstructors
Section 622
//globalParticles (ObjectConstructors.globalParticles)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class globalParticles {
public static var par8_2_embed:Class = Embeds.smoke_d002_png;
public static var par5_6_embed:Class = Embeds.smoke_c006_png;
public static var par2_12_embed:Class = Embeds.smoke_c012_png;
public static var par6_18_embed:Class = Embeds.smoke_e018_png;
public static var par9_23_embed:Class = Embeds.smoke_c023_png;
public static var par5_11_embed:Class = Embeds.smoke_c011_png;
public static var par9_17_embed:Class = Embeds.smoke_c017_png;
public static var par2_23_embed:Class = Embeds.smoke_c023_png;
public static var par6_29_embed:Class = Embeds.smoke_e029_png;
public static var par3_3_embed:Class = Embeds.shot003_png;
public static var par8_10_embed:Class = Embeds.smoke_d010_png;
public static var par5_22_embed:Class = Embeds.smoke_c022_png;
public static var par9_28_embed:Class = Embeds.smoke_c028_png;
public static var par8_7_embed:Class = Embeds.smoke_d007_png;
public static var par2_17_embed:Class = Embeds.smoke_c017_png;
public static var par8_21_embed:Class = Embeds.smoke_d021_png;
public static var par1_10_embed:Class = Embeds.smoke_a010_png;
public static var par5_16_embed:Class = Embeds.smoke_c016_png;
public static var par2_28_embed:Class = Embeds.smoke_c028_png;
public static var par8_32_embed:Class = Embeds.smoke_d032_png;
public static var par6_4_embed:Class = Embeds.smoke_e004_png;
public static var par3_8_embed:Class = Embeds.shot008_png;
public static var par8_15_embed:Class = Embeds.smoke_d015_png;
public static var par1_21_embed:Class = Embeds.smoke_a021_png;
public static var par5_27_embed:Class = Embeds.smoke_c027_png;
public static var par4_20_embed:Class = Embeds.smoke_d020_png;
public static var par8_26_embed:Class = Embeds.smoke_d026_png;
public static var par1_32_embed:Class = Embeds.smoke_a032_png;
public static var par1_15_embed:Class = Embeds.smoke_a015_png;
public static var par4_1_embed:Class = Embeds.smoke_d001_png;
public static var par1_5_embed:Class = Embeds.smoke_a005_png;
public static var par4_31_embed:Class = Embeds.smoke_d031_png;
public static var par9_5_embed:Class = Embeds.smoke_c005_png;
public static var par4_14_embed:Class = Embeds.smoke_d014_png;
public static var par1_26_embed:Class = Embeds.smoke_a026_png;
public static var par6_9_embed:Class = Embeds.smoke_e009_png;
public static var par4_25_embed:Class = Embeds.smoke_d025_png;
public static var par4_6_embed:Class = Embeds.smoke_d006_png;
public static var par1_10:BitmapData = new Embeds.smoke_a010_png().bitmapData;
public static var par1_11:BitmapData = new Embeds.smoke_a011_png().bitmapData;
public static var par1_12:BitmapData = new Embeds.smoke_a012_png().bitmapData;
public static var par1_13:BitmapData = new Embeds.smoke_a013_png().bitmapData;
public static var par1_14:BitmapData = new Embeds.smoke_a014_png().bitmapData;
public static var par1_15:BitmapData = new Embeds.smoke_a015_png().bitmapData;
public static var par1_16:BitmapData = new Embeds.smoke_a016_png().bitmapData;
public static var par1_17:BitmapData = new Embeds.smoke_a017_png().bitmapData;
public static var par1_18:BitmapData = new Embeds.smoke_a018_png().bitmapData;
public static var par1_19:BitmapData = new Embeds.smoke_a019_png().bitmapData;
public static var par4_19_embed:Class = Embeds.smoke_d019_png;
public static var par3_12_embed:Class = Embeds.shot012_png;
public static var par1_20:BitmapData = new Embeds.smoke_a020_png().bitmapData;
public static var par1_21:BitmapData = new Embeds.smoke_a021_png().bitmapData;
public static var par1_22:BitmapData = new Embeds.smoke_a022_png().bitmapData;
public static var par1_23:BitmapData = new Embeds.smoke_a023_png().bitmapData;
public static var par1_24:BitmapData = new Embeds.smoke_a024_png().bitmapData;
public static var par1_25:BitmapData = new Embeds.smoke_a025_png().bitmapData;
public static var par1_26:BitmapData = new Embeds.smoke_a026_png().bitmapData;
public static var par1_27:BitmapData = new Embeds.smoke_a027_png().bitmapData;
public static var par1_28:BitmapData = new Embeds.smoke_a028_png().bitmapData;
public static var par1_29:BitmapData = new Embeds.smoke_a029_png().bitmapData;
public static var par2_3_embed:Class = Embeds.smoke_c003_png;
public static var par6_11_embed:Class = Embeds.smoke_e011_png;
public static var par3_23_embed:Class = Embeds.shot023_png;
public static var par1_30:BitmapData = new Embeds.smoke_a030_png().bitmapData;
public static var par1_31:BitmapData = new Embeds.smoke_a031_png().bitmapData;
public static var par1_32:BitmapData = new Embeds.smoke_a032_png().bitmapData;
public static var par9_10_embed:Class = Embeds.smoke_c010_png;
public static var par6_22_embed:Class = Embeds.smoke_e022_png;
public static var par9_1:BitmapData = new Embeds.smoke_c001_png().bitmapData;
public static var par9_2:BitmapData = new Embeds.smoke_c002_png().bitmapData;
public static var par9_3:BitmapData = new Embeds.smoke_c003_png().bitmapData;
public static var par3_17_embed:Class = Embeds.shot017_png;
public static var par9_5:BitmapData = new Embeds.smoke_c005_png().bitmapData;
public static var par9_6:BitmapData = new Embeds.smoke_c006_png().bitmapData;
public static var par9_7:BitmapData = new Embeds.smoke_c007_png().bitmapData;
public static var par9_8:BitmapData = new Embeds.smoke_c008_png().bitmapData;
public static var par9_9:BitmapData = new Embeds.smoke_c009_png().bitmapData;
public static var par9_4:BitmapData = new Embeds.smoke_c004_png().bitmapData;
public static var par5_4_embed:Class = Embeds.smoke_c004_png;
public static var par2_8_embed:Class = Embeds.smoke_c008_png;
public static var par2_10_embed:Class = Embeds.smoke_c010_png;
public static var par6_16_embed:Class = Embeds.smoke_e016_png;
public static var par9_21_embed:Class = Embeds.smoke_c021_png;
public static var par9_32_embed:Class = Embeds.smoke_c032_png;
public static var par9_15_embed:Class = Embeds.smoke_c015_png;
public static var par2_21_embed:Class = Embeds.smoke_c021_png;
public static var par6_27_embed:Class = Embeds.smoke_e027_png;
public static var par3_1_embed:Class = Embeds.shot001_png;
public static var par5_20_embed:Class = Embeds.smoke_c020_png;
public static var par9_26_embed:Class = Embeds.smoke_c026_png;
public static var par2_32_embed:Class = Embeds.smoke_c032_png;
public static var par5_9_embed:Class = Embeds.smoke_c009_png;
public static var par2_15_embed:Class = Embeds.smoke_c015_png;
public static var par3_11:BitmapData = new Embeds.shot011_png().bitmapData;
public static var par3_12:BitmapData = new Embeds.shot012_png().bitmapData;
public static var par3_13:BitmapData = new Embeds.shot013_png().bitmapData;
public static var par3_15:BitmapData = new Embeds.shot015_png().bitmapData;
public static var par3_16:BitmapData = new Embeds.shot016_png().bitmapData;
public static var par3_17:BitmapData = new Embeds.shot017_png().bitmapData;
public static var par3_18:BitmapData = new Embeds.shot018_png().bitmapData;
public static var par3_19:BitmapData = new Embeds.shot019_png().bitmapData;
public static var par8_5_embed:Class = Embeds.smoke_d005_png;
public static var par3_14:BitmapData = new Embeds.shot014_png().bitmapData;
public static var par3_10:BitmapData = new Embeds.shot010_png().bitmapData;
public static var par5_31_embed:Class = Embeds.smoke_c031_png;
public static var par5_14_embed:Class = Embeds.smoke_c014_png;
public static var par3_20:BitmapData = new Embeds.shot020_png().bitmapData;
public static var par2_26_embed:Class = Embeds.smoke_c026_png;
public static var par3_22:BitmapData = new Embeds.shot022_png().bitmapData;
public static var par3_23:BitmapData = new Embeds.shot023_png().bitmapData;
public static var par3_24:BitmapData = new Embeds.shot024_png().bitmapData;
public static var par3_21:BitmapData = new Embeds.shot021_png().bitmapData;
public static var par8_30_embed:Class = Embeds.smoke_d030_png;
public static var par6_2_embed:Class = Embeds.smoke_e002_png;
public static var par3_6_embed:Class = Embeds.shot006_png;
public static var par8_13_embed:Class = Embeds.smoke_d013_png;
public static var par5_25_embed:Class = Embeds.smoke_c025_png;
public static var par1_13_embed:Class = Embeds.smoke_a013_png;
public static var par1_30_embed:Class = Embeds.smoke_a030_png;
public static var par8_24_embed:Class = Embeds.smoke_d024_png;
public static var par5_19_embed:Class = Embeds.smoke_c019_png;
public static var par1_3_embed:Class = Embeds.smoke_a003_png;
public static var par9_3_embed:Class = Embeds.smoke_c003_png;
public static var par4_12_embed:Class = Embeds.smoke_d012_png;
public static var par8_18_embed:Class = Embeds.smoke_d018_png;
public static var par1_24_embed:Class = Embeds.smoke_a024_png;
public static var par6_7_embed:Class = Embeds.smoke_e007_png;
public static var par4_23_embed:Class = Embeds.smoke_d023_png;
public static var par5_4:BitmapData = new Embeds.smoke_c004_png().bitmapData;
public static var par5_6:BitmapData = new Embeds.smoke_c006_png().bitmapData;
public static var par5_8:BitmapData = new Embeds.smoke_c008_png().bitmapData;
public static var par5_2:BitmapData = new Embeds.smoke_c002_png().bitmapData;
public static var par5_3:BitmapData = new Embeds.smoke_c003_png().bitmapData;
public static var par1_18_embed:Class = Embeds.smoke_a018_png;
public static var par5_5:BitmapData = new Embeds.smoke_c005_png().bitmapData;
public static var par5_7:BitmapData = new Embeds.smoke_c007_png().bitmapData;
public static var par5_1:BitmapData = new Embeds.smoke_c001_png().bitmapData;
public static var par8_29_embed:Class = Embeds.smoke_d029_png;
public static var par5_9:BitmapData = new Embeds.smoke_c009_png().bitmapData;
public static var par4_4_embed:Class = Embeds.smoke_d004_png;
public static var par1_8_embed:Class = Embeds.smoke_a008_png;
public static var par5_10:BitmapData = new Embeds.smoke_c010_png().bitmapData;
public static var par5_11:BitmapData = new Embeds.smoke_c011_png().bitmapData;
public static var par4_17_embed:Class = Embeds.smoke_d017_png;
public static var par5_13:BitmapData = new Embeds.smoke_c013_png().bitmapData;
public static var par5_15:BitmapData = new Embeds.smoke_c015_png().bitmapData;
public static var par1_29_embed:Class = Embeds.smoke_a029_png;
public static var par5_17:BitmapData = new Embeds.smoke_c017_png().bitmapData;
public static var par5_18:BitmapData = new Embeds.smoke_c018_png().bitmapData;
public static var par5_12:BitmapData = new Embeds.smoke_c012_png().bitmapData;
public static var par5_14:BitmapData = new Embeds.smoke_c014_png().bitmapData;
public static var par5_16:BitmapData = new Embeds.smoke_c016_png().bitmapData;
public static var par5_19:BitmapData = new Embeds.smoke_c019_png().bitmapData;
public static var par9_8_embed:Class = Embeds.smoke_c008_png;
public static var par3_10_embed:Class = Embeds.shot010_png;
public static var par5_20:BitmapData = new Embeds.smoke_c020_png().bitmapData;
public static var par5_21:BitmapData = new Embeds.smoke_c021_png().bitmapData;
public static var par5_22:BitmapData = new Embeds.smoke_c022_png().bitmapData;
public static var par4_28_embed:Class = Embeds.smoke_d028_png;
public static var par5_24:BitmapData = new Embeds.smoke_c024_png().bitmapData;
public static var par5_25:BitmapData = new Embeds.smoke_c025_png().bitmapData;
public static var par5_26:BitmapData = new Embeds.smoke_c026_png().bitmapData;
public static var par5_27:BitmapData = new Embeds.smoke_c027_png().bitmapData;
public static var par5_28:BitmapData = new Embeds.smoke_c028_png().bitmapData;
public static var par5_29:BitmapData = new Embeds.smoke_c029_png().bitmapData;
public static var par5_23:BitmapData = new Embeds.smoke_c023_png().bitmapData;
public static var par2_1_embed:Class = Embeds.smoke_c001_png;
public static var emitters:Array;
public static var par3_21_embed:Class = Embeds.shot021_png;
public static var par4_9_embed:Class = Embeds.smoke_d009_png;
public static var par5_30:BitmapData = new Embeds.smoke_c030_png().bitmapData;
public static var par5_31:BitmapData = new Embeds.smoke_c031_png().bitmapData;
public static var par5_32:BitmapData = new Embeds.smoke_c032_png().bitmapData;
public static var par3_2:BitmapData = new Embeds.shot002_png().bitmapData;
public static var par3_4:BitmapData = new Embeds.shot004_png().bitmapData;
public static var par3_6:BitmapData = new Embeds.shot006_png().bitmapData;
public static var par3_1:BitmapData = new Embeds.shot001_png().bitmapData;
public static var par3_3:BitmapData = new Embeds.shot003_png().bitmapData;
public static var par3_5:BitmapData = new Embeds.shot005_png().bitmapData;
public static var par3_7:BitmapData = new Embeds.shot007_png().bitmapData;
public static var par3_8:BitmapData = new Embeds.shot008_png().bitmapData;
public static var par3_9:BitmapData = new Embeds.shot009_png().bitmapData;
public static var par3_15_embed:Class = Embeds.shot015_png;
public static var par5_2_embed:Class = Embeds.smoke_c002_png;
public static var par2_6_embed:Class = Embeds.smoke_c006_png;
public static var par6_20_embed:Class = Embeds.smoke_e020_png;
public static var par6_14_embed:Class = Embeds.smoke_e014_png;
public static var par6_31_embed:Class = Embeds.smoke_e031_png;
public static var par9_13_embed:Class = Embeds.smoke_c013_png;
public static var par9_30_embed:Class = Embeds.smoke_c030_png;
public static var par6_25_embed:Class = Embeds.smoke_e025_png;
public static var par9_24_embed:Class = Embeds.smoke_c024_png;
public static var par2_30_embed:Class = Embeds.smoke_c030_png;
public static var par5_7_embed:Class = Embeds.smoke_c007_png;
public static var par2_13_embed:Class = Embeds.smoke_c013_png;
public static var par6_19_embed:Class = Embeds.smoke_e019_png;
public static var par1_2:BitmapData = new Embeds.smoke_a002_png().bitmapData;
public static var par1_3:BitmapData = new Embeds.smoke_a003_png().bitmapData;
public static var par1_4:BitmapData = new Embeds.smoke_a004_png().bitmapData;
public static var par1_5:BitmapData = new Embeds.smoke_a005_png().bitmapData;
public static var par1_6:BitmapData = new Embeds.smoke_a006_png().bitmapData;
public static var par1_7:BitmapData = new Embeds.smoke_a007_png().bitmapData;
public static var par1_8:BitmapData = new Embeds.smoke_a008_png().bitmapData;
public static var par1_9:BitmapData = new Embeds.smoke_a009_png().bitmapData;
public static var par5_12_embed:Class = Embeds.smoke_c012_png;
public static var par9_18_embed:Class = Embeds.smoke_c018_png;
public static var par1_1:BitmapData = new Embeds.smoke_a001_png().bitmapData;
public static var par8_3_embed:Class = Embeds.smoke_d003_png;
public static var par2_24_embed:Class = Embeds.smoke_c024_png;
public static var par3_4_embed:Class = Embeds.shot004_png;
public static var par8_11_embed:Class = Embeds.smoke_d011_png;
public static var par8_8_embed:Class = Embeds.smoke_d008_png;
public static var par2_18_embed:Class = Embeds.smoke_c018_png;
public static var par9_29_embed:Class = Embeds.smoke_c029_png;
public static var par1_11_embed:Class = Embeds.smoke_a011_png;
public static var par5_17_embed:Class = Embeds.smoke_c017_png;
public static var par2_29_embed:Class = Embeds.smoke_c029_png;
public static var par1:Array = [par1_1, par1_2, par1_3, par1_4, par1_5, par1_6, par1_7, par1_8, par1_9, par1_10, par1_11, par1_12, par1_13, par1_14, par1_15, par1_16, par1_17, par1_18, par1_19, par1_20, par1_21, par1_22, par1_23, par1_24, par1_25, par1_26, par1_27, par1_28, par1_29, par1_30, par1_31, par1_32];
public static var par2:Array = [par2_1, par2_2, par2_3, par2_4, par2_5, par2_6, par2_7, par2_8, par2_9, par2_10, par2_11, par2_12, par2_13, par2_14, par2_15, par2_16, par2_17, par2_18, par2_19, par2_20, par2_21, par2_22, par2_23, par2_24, par2_25, par2_26, par2_27, par2_28, par2_29, par2_30, par2_31, par2_32];
public static var par3:Array = [par3_1, par3_2, par3_3, par3_4, par3_5, par3_6, par3_7, par3_8, par3_9, par3_10, par3_11, par3_12, par3_13, par3_14, par3_15, par3_16, par3_17, par3_18, par3_19, par3_20, par3_21, par3_22, par3_23, par3_24];
public static var par4:Array = [par4_1, par4_2, par4_3, par4_4, par4_5, par4_6, par4_7, par4_8, par4_9, par4_10, par4_11, par4_12, par4_13, par4_14, par4_15, par4_16, par4_17, par4_18, par4_19, par4_20, par4_21, par4_22, par4_23, par4_24, par4_25, par4_26, par4_27, par4_28, par4_29, par4_30, par4_31, par4_32];
public static var par5:Array = [par5_1, par5_2, par5_3, par5_4, par5_5, par5_6, par5_7, par5_8, par5_9, par5_10, par5_11, par5_12, par5_13, par5_14, par5_15, par5_16, par5_17, par5_18, par5_19, par5_20, par5_21, par5_22, par5_23, par5_24, par5_25, par5_26, par5_27, par5_28, par5_29, par5_30, par5_31, par5_32];
public static var par6:Array = [par6_1, par6_2, par6_3, par6_4, par6_5, par6_6, par6_7, par6_8, par6_9, par6_10, par6_11, par6_12, par6_13, par6_14, par6_15, par6_16, par6_17, par6_18, par6_19, par6_20, par6_21, par6_22, par6_23, par6_24, par6_25, par6_26, par6_27, par6_28, par6_29, par6_30, par6_31, par6_32];
public static var par7:BitmapData = new Embeds.wreak_png().bitmapData;
public static var par8:Array = [par8_1, par8_2, par8_3, par8_4, par8_5, par8_6, par8_7, par8_8, par8_9, par8_10, par8_11, par8_12, par8_13, par8_14, par8_15, par8_16, par8_17, par8_18, par8_19, par8_20, par8_21, par8_22, par8_23, par8_24, par8_25, par8_26, par8_27, par8_28, par8_29, par8_30, par8_31, par8_32];
public static var par9:Array = [par9_1, par9_2, par9_3, par9_4, par9_5, par9_6, par9_7, par9_8, par9_9, par9_10, par9_11, par9_12, par9_13, par9_14, par9_15, par9_16, par9_17, par9_18, par9_19, par9_20, par9_21, par9_22, par9_23, par9_24, par9_25, par9_26, par9_27, par9_28, par9_29, par9_30, par9_31, par9_32];
public static var par8_22_embed:Class = Embeds.smoke_d022_png;
public static var par1_1_embed:Class = Embeds.smoke_a001_png;
public static var par5_23_embed:Class = Embeds.smoke_c023_png;
public static var par9_1_embed:Class = Embeds.smoke_c001_png;
public static var par4_10_embed:Class = Embeds.smoke_d010_png;
public static var par3_9_embed:Class = Embeds.shot009_png;
public static var par8_16_embed:Class = Embeds.smoke_d016_png;
public static var par1_22_embed:Class = Embeds.smoke_a022_png;
public static var par5_28_embed:Class = Embeds.smoke_c028_png;
public static var par6_5_embed:Class = Embeds.smoke_e005_png;
public static var par4_21_embed:Class = Embeds.smoke_d021_png;
public static var par8_27_embed:Class = Embeds.smoke_d027_png;
public static var par1_16_embed:Class = Embeds.smoke_a016_png;
public static var par4_2_embed:Class = Embeds.smoke_d002_png;
public static var par1_6_embed:Class = Embeds.smoke_a006_png;
public static var par4_32_embed:Class = Embeds.smoke_d032_png;
public static var par9_11:BitmapData = new Embeds.smoke_c011_png().bitmapData;
public static var par9_6_embed:Class = Embeds.smoke_c006_png;
public static var par4_15_embed:Class = Embeds.smoke_d015_png;
public static var par9_15:BitmapData = new Embeds.smoke_c015_png().bitmapData;
public static var par9_16:BitmapData = new Embeds.smoke_c016_png().bitmapData;
public static var par1_27_embed:Class = Embeds.smoke_a027_png;
public static var par9_12:BitmapData = new Embeds.smoke_c012_png().bitmapData;
public static var par9_14:BitmapData = new Embeds.smoke_c014_png().bitmapData;
public static var par9_17:BitmapData = new Embeds.smoke_c017_png().bitmapData;
public static var par9_19:BitmapData = new Embeds.smoke_c019_png().bitmapData;
public static var par9_13:BitmapData = new Embeds.smoke_c013_png().bitmapData;
public static var par9_18:BitmapData = new Embeds.smoke_c018_png().bitmapData;
public static var par9_10:BitmapData = new Embeds.smoke_c010_png().bitmapData;
public static var par9_20:BitmapData = new Embeds.smoke_c020_png().bitmapData;
public static var par9_21:BitmapData = new Embeds.smoke_c021_png().bitmapData;
public static var par9_22:BitmapData = new Embeds.smoke_c022_png().bitmapData;
public static var par9_23:BitmapData = new Embeds.smoke_c023_png().bitmapData;
public static var par9_24:BitmapData = new Embeds.smoke_c024_png().bitmapData;
public static var par4_26_embed:Class = Embeds.smoke_d026_png;
public static var par9_26:BitmapData = new Embeds.smoke_c026_png().bitmapData;
public static var par9_27:BitmapData = new Embeds.smoke_c027_png().bitmapData;
public static var par9_28:BitmapData = new Embeds.smoke_c028_png().bitmapData;
public static var par9_29:BitmapData = new Embeds.smoke_c029_png().bitmapData;
public static var par9_25:BitmapData = new Embeds.smoke_c025_png().bitmapData;
public static var par9_30:BitmapData = new Embeds.smoke_c030_png().bitmapData;
public static var par4_7_embed:Class = Embeds.smoke_d007_png;
public static var par9_32:BitmapData = new Embeds.smoke_c032_png().bitmapData;
public static var par3_13_embed:Class = Embeds.shot013_png;
public static var par2_4_embed:Class = Embeds.smoke_c004_png;
public static var par6_12_embed:Class = Embeds.smoke_e012_png;
public static var par3_24_embed:Class = Embeds.shot024_png;
public static var par9_31:BitmapData = new Embeds.smoke_c031_png().bitmapData;
public static var par9_11_embed:Class = Embeds.smoke_c011_png;
public static var par6_23_embed:Class = Embeds.smoke_e023_png;
public static var par3_18_embed:Class = Embeds.shot018_png;
public static var par9_22_embed:Class = Embeds.smoke_c022_png;
public static var par8_1_embed:Class = Embeds.smoke_d001_png;
public static var par5_5_embed:Class = Embeds.smoke_c005_png;
public static var par2_9_embed:Class = Embeds.smoke_c009_png;
public static var par2_11_embed:Class = Embeds.smoke_c011_png;
public static var par6_17_embed:Class = Embeds.smoke_e017_png;
public static var par5_10_embed:Class = Embeds.smoke_c010_png;
public static var par9_16_embed:Class = Embeds.smoke_c016_png;
public static var par2_22_embed:Class = Embeds.smoke_c022_png;
public static var par6_28_embed:Class = Embeds.smoke_e028_png;
public static var par3_2_embed:Class = Embeds.shot002_png;
public static var par8_6_embed:Class = Embeds.smoke_d006_png;
public static var par5_21_embed:Class = Embeds.smoke_c021_png;
public static var par2_16_embed:Class = Embeds.smoke_c016_png;
public static var par7_embed:Class = Embeds.wreak_png;
public static var par9_27_embed:Class = Embeds.smoke_c027_png;
public static var par5_15_embed:Class = Embeds.smoke_c015_png;
public static var par5_32_embed:Class = Embeds.smoke_c032_png;
public static var par2_27_embed:Class = Embeds.smoke_c027_png;
public static var par8_20_embed:Class = Embeds.smoke_d020_png;
public static var par8_31_embed:Class = Embeds.smoke_d031_png;
public static var par6_3_embed:Class = Embeds.smoke_e003_png;
public static var par3_7_embed:Class = Embeds.shot007_png;
public static var par8_14_embed:Class = Embeds.smoke_d014_png;
public static var par1_20_embed:Class = Embeds.smoke_a020_png;
public static var par5_26_embed:Class = Embeds.smoke_c026_png;
public static var par1_31_embed:Class = Embeds.smoke_a031_png;
public static var par1_14_embed:Class = Embeds.smoke_a014_png;
public static var par2_10:BitmapData = new Embeds.smoke_c010_png().bitmapData;
public static var par2_11:BitmapData = new Embeds.smoke_c011_png().bitmapData;
public static var par2_12:BitmapData = new Embeds.smoke_c012_png().bitmapData;
public static var par2_13:BitmapData = new Embeds.smoke_c013_png().bitmapData;
public static var par2_14:BitmapData = new Embeds.smoke_c014_png().bitmapData;
public static var par2_15:BitmapData = new Embeds.smoke_c015_png().bitmapData;
public static var par2_16:BitmapData = new Embeds.smoke_c016_png().bitmapData;
public static var par2_17:BitmapData = new Embeds.smoke_c017_png().bitmapData;
public static var par2_18:BitmapData = new Embeds.smoke_c018_png().bitmapData;
public static var par2_19:BitmapData = new Embeds.smoke_c019_png().bitmapData;
public static var par8_25_embed:Class = Embeds.smoke_d025_png;
public static var par1_4_embed:Class = Embeds.smoke_a004_png;
public static var par4_30_embed:Class = Embeds.smoke_d030_png;
public static var par9_4_embed:Class = Embeds.smoke_c004_png;
public static var par4_13_embed:Class = Embeds.smoke_d013_png;
public static var par1_25_embed:Class = Embeds.smoke_a025_png;
public static var par2_21:BitmapData = new Embeds.smoke_c021_png().bitmapData;
public static var par2_22:BitmapData = new Embeds.smoke_c022_png().bitmapData;
public static var par2_23:BitmapData = new Embeds.smoke_c023_png().bitmapData;
public static var par2_24:BitmapData = new Embeds.smoke_c024_png().bitmapData;
public static var par2_25:BitmapData = new Embeds.smoke_c025_png().bitmapData;
public static var par2_26:BitmapData = new Embeds.smoke_c026_png().bitmapData;
public static var par2_20:BitmapData = new Embeds.smoke_c020_png().bitmapData;
public static var par2_28:BitmapData = new Embeds.smoke_c028_png().bitmapData;
public static var par2_29:BitmapData = new Embeds.smoke_c029_png().bitmapData;
public static var par2_27:BitmapData = new Embeds.smoke_c027_png().bitmapData;
public static var par8_19_embed:Class = Embeds.smoke_d019_png;
public static var par4_24_embed:Class = Embeds.smoke_d024_png;
public static var par8_1:BitmapData = new Embeds.smoke_d001_png().bitmapData;
public static var par6_8_embed:Class = Embeds.smoke_e008_png;
public static var par2_30:BitmapData = new Embeds.smoke_c030_png().bitmapData;
public static var par2_31:BitmapData = new Embeds.smoke_c031_png().bitmapData;
public static var par2_32:BitmapData = new Embeds.smoke_c032_png().bitmapData;
public static var par8_6:BitmapData = new Embeds.smoke_d006_png().bitmapData;
public static var par8_7:BitmapData = new Embeds.smoke_d007_png().bitmapData;
public static var par8_8:BitmapData = new Embeds.smoke_d008_png().bitmapData;
public static var par1_19_embed:Class = Embeds.smoke_a019_png;
public static var par8_3:BitmapData = new Embeds.smoke_d003_png().bitmapData;
public static var par8_4:BitmapData = new Embeds.smoke_d004_png().bitmapData;
public static var par8_5:BitmapData = new Embeds.smoke_d005_png().bitmapData;
public static var par8_9:BitmapData = new Embeds.smoke_d009_png().bitmapData;
public static var par8_2:BitmapData = new Embeds.smoke_d002_png().bitmapData;
public static var par4_5_embed:Class = Embeds.smoke_d005_png;
public static var par1_9_embed:Class = Embeds.smoke_a009_png;
public static var par4_18_embed:Class = Embeds.smoke_d018_png;
public static var par9_9_embed:Class = Embeds.smoke_c009_png;
public static var par3_11_embed:Class = Embeds.shot011_png;
public static var par4_29_embed:Class = Embeds.smoke_d029_png;
public static var par2_2_embed:Class = Embeds.smoke_c002_png;
public static var par6_10_embed:Class = Embeds.smoke_e010_png;
public static var par3_22_embed:Class = Embeds.shot022_png;
public static var par6_21_embed:Class = Embeds.smoke_e021_png;
public static var par6_1:BitmapData = new Embeds.smoke_e001_png().bitmapData;
public static var par6_2:BitmapData = new Embeds.smoke_e002_png().bitmapData;
public static var par6_3:BitmapData = new Embeds.smoke_e003_png().bitmapData;
public static var par6_4:BitmapData = new Embeds.smoke_e004_png().bitmapData;
public static var par4_10:BitmapData = new Embeds.smoke_d010_png().bitmapData;
public static var par3_16_embed:Class = Embeds.shot016_png;
public static var par4_12:BitmapData = new Embeds.smoke_d012_png().bitmapData;
public static var par4_13:BitmapData = new Embeds.smoke_d013_png().bitmapData;
public static var par4_14:BitmapData = new Embeds.smoke_d014_png().bitmapData;
public static var par4_15:BitmapData = new Embeds.smoke_d015_png().bitmapData;
public static var par4_16:BitmapData = new Embeds.smoke_d016_png().bitmapData;
public static var par4_17:BitmapData = new Embeds.smoke_d017_png().bitmapData;
public static var par4_18:BitmapData = new Embeds.smoke_d018_png().bitmapData;
public static var par6_7:BitmapData = new Embeds.smoke_e007_png().bitmapData;
public static var par6_8:BitmapData = new Embeds.smoke_e008_png().bitmapData;
public static var par6_9:BitmapData = new Embeds.smoke_e009_png().bitmapData;
public static var par6_5:BitmapData = new Embeds.smoke_e005_png().bitmapData;
public static var par4_11:BitmapData = new Embeds.smoke_d011_png().bitmapData;
public static var par9_20_embed:Class = Embeds.smoke_c020_png;
public static var par5_3_embed:Class = Embeds.smoke_c003_png;
public static var par2_7_embed:Class = Embeds.smoke_c007_png;
public static var par6_6:BitmapData = new Embeds.smoke_e006_png().bitmapData;
public static var par4_21:BitmapData = new Embeds.smoke_d021_png().bitmapData;
public static var par4_23:BitmapData = new Embeds.smoke_d023_png().bitmapData;
public static var par4_25:BitmapData = new Embeds.smoke_d025_png().bitmapData;
public static var par4_20:BitmapData = new Embeds.smoke_d020_png().bitmapData;
public static var par4_24:BitmapData = new Embeds.smoke_d024_png().bitmapData;
public static var par4_26:BitmapData = new Embeds.smoke_d026_png().bitmapData;
public static var par4_27:BitmapData = new Embeds.smoke_d027_png().bitmapData;
public static var par4_28:BitmapData = new Embeds.smoke_d028_png().bitmapData;
public static var par4_29:BitmapData = new Embeds.smoke_d029_png().bitmapData;
public static var par4_22:BitmapData = new Embeds.smoke_d022_png().bitmapData;
public static var par6_15_embed:Class = Embeds.smoke_e015_png;
public static var par4_19:BitmapData = new Embeds.smoke_d019_png().bitmapData;
public static var par9_14_embed:Class = Embeds.smoke_c014_png;
public static var par6_32_embed:Class = Embeds.smoke_e032_png;
public static var par2_20_embed:Class = Embeds.smoke_c020_png;
public static var par6_26_embed:Class = Embeds.smoke_e026_png;
public static var par4_30:BitmapData = new Embeds.smoke_d030_png().bitmapData;
public static var par4_31:BitmapData = new Embeds.smoke_d031_png().bitmapData;
public static var par4_32:BitmapData = new Embeds.smoke_d032_png().bitmapData;
public static var par9_31_embed:Class = Embeds.smoke_c031_png;
public static var par2_31_embed:Class = Embeds.smoke_c031_png;
public static var par5_8_embed:Class = Embeds.smoke_c008_png;
public static var par2_14_embed:Class = Embeds.smoke_c014_png;
public static var par8_4_embed:Class = Embeds.smoke_d004_png;
public static var par9_25_embed:Class = Embeds.smoke_c025_png;
public static var par5_30_embed:Class = Embeds.smoke_c030_png;
public static var par4_1:BitmapData = new Embeds.smoke_d001_png().bitmapData;
public static var par4_2:BitmapData = new Embeds.smoke_d002_png().bitmapData;
public static var par4_3:BitmapData = new Embeds.smoke_d003_png().bitmapData;
public static var par4_4:BitmapData = new Embeds.smoke_d004_png().bitmapData;
public static var par4_5:BitmapData = new Embeds.smoke_d005_png().bitmapData;
public static var par4_6:BitmapData = new Embeds.smoke_d006_png().bitmapData;
public static var par2_25_embed:Class = Embeds.smoke_c025_png;
public static var par4_8:BitmapData = new Embeds.smoke_d008_png().bitmapData;
public static var par4_9:BitmapData = new Embeds.smoke_d009_png().bitmapData;
public static var par5_13_embed:Class = Embeds.smoke_c013_png;
public static var par9_19_embed:Class = Embeds.smoke_c019_png;
public static var par4_7:BitmapData = new Embeds.smoke_d007_png().bitmapData;
public static var par6_1_embed:Class = Embeds.smoke_e001_png;
public static var par3_5_embed:Class = Embeds.shot005_png;
public static var par8_12_embed:Class = Embeds.smoke_d012_png;
public static var par5_24_embed:Class = Embeds.smoke_c024_png;
public static var par8_9_embed:Class = Embeds.smoke_d009_png;
public static var par2_19_embed:Class = Embeds.smoke_c019_png;
public static var par8_23_embed:Class = Embeds.smoke_d023_png;
public static var par6_10:BitmapData = new Embeds.smoke_e010_png().bitmapData;
public static var par1_12_embed:Class = Embeds.smoke_a012_png;
public static var par6_12:BitmapData = new Embeds.smoke_e012_png().bitmapData;
public static var par5_18_embed:Class = Embeds.smoke_c018_png;
public static var par6_14:BitmapData = new Embeds.smoke_e014_png().bitmapData;
public static var par6_15:BitmapData = new Embeds.smoke_e015_png().bitmapData;
public static var par6_16:BitmapData = new Embeds.smoke_e016_png().bitmapData;
public static var par6_17:BitmapData = new Embeds.smoke_e017_png().bitmapData;
public static var par6_18:BitmapData = new Embeds.smoke_e018_png().bitmapData;
public static var par6_19:BitmapData = new Embeds.smoke_e019_png().bitmapData;
public static var par6_13:BitmapData = new Embeds.smoke_e013_png().bitmapData;
public static var par6_11:BitmapData = new Embeds.smoke_e011_png().bitmapData;
public static var par1_2_embed:Class = Embeds.smoke_a002_png;
public static var par9_2_embed:Class = Embeds.smoke_c002_png;
public static var par4_11_embed:Class = Embeds.smoke_d011_png;
public static var par6_20:BitmapData = new Embeds.smoke_e020_png().bitmapData;
public static var par6_21:BitmapData = new Embeds.smoke_e021_png().bitmapData;
public static var par1_23_embed:Class = Embeds.smoke_a023_png;
public static var par6_23:BitmapData = new Embeds.smoke_e023_png().bitmapData;
public static var par6_25:BitmapData = new Embeds.smoke_e025_png().bitmapData;
public static var par6_26:BitmapData = new Embeds.smoke_e026_png().bitmapData;
public static var par6_27:BitmapData = new Embeds.smoke_e027_png().bitmapData;
public static var par6_28:BitmapData = new Embeds.smoke_e028_png().bitmapData;
public static var par6_6_embed:Class = Embeds.smoke_e006_png;
public static var par8_17_embed:Class = Embeds.smoke_d017_png;
public static var par6_29:BitmapData = new Embeds.smoke_e029_png().bitmapData;
public static var par6_22:BitmapData = new Embeds.smoke_e022_png().bitmapData;
public static var par5_29_embed:Class = Embeds.smoke_c029_png;
public static var par2_1:BitmapData = new Embeds.smoke_c001_png().bitmapData;
public static var par2_2:BitmapData = new Embeds.smoke_c002_png().bitmapData;
public static var par2_3:BitmapData = new Embeds.smoke_c003_png().bitmapData;
public static var par2_4:BitmapData = new Embeds.smoke_c004_png().bitmapData;
public static var par2_5:BitmapData = new Embeds.smoke_c005_png().bitmapData;
public static var par2_6:BitmapData = new Embeds.smoke_c006_png().bitmapData;
public static var par2_7:BitmapData = new Embeds.smoke_c007_png().bitmapData;
public static var par2_8:BitmapData = new Embeds.smoke_c008_png().bitmapData;
public static var par2_9:BitmapData = new Embeds.smoke_c009_png().bitmapData;
public static var par4_22_embed:Class = Embeds.smoke_d022_png;
public static var par6_24:BitmapData = new Embeds.smoke_e024_png().bitmapData;
public static var par1_17_embed:Class = Embeds.smoke_a017_png;
public static var par6_32:BitmapData = new Embeds.smoke_e032_png().bitmapData;
public static var par6_30:BitmapData = new Embeds.smoke_e030_png().bitmapData;
public static var par6_31:BitmapData = new Embeds.smoke_e031_png().bitmapData;
public static var par8_28_embed:Class = Embeds.smoke_d028_png;
public static var par4_3_embed:Class = Embeds.smoke_d003_png;
public static var par1_7_embed:Class = Embeds.smoke_a007_png;
public static var par9_7_embed:Class = Embeds.smoke_c007_png;
public static var par4_16_embed:Class = Embeds.smoke_d016_png;
public static var par1_28_embed:Class = Embeds.smoke_a028_png;
public static var par4_27_embed:Class = Embeds.smoke_d027_png;
public static var par3_20_embed:Class = Embeds.shot020_png;
public static var par4_8_embed:Class = Embeds.smoke_d008_png;
public static var par8_10:BitmapData = new Embeds.smoke_d010_png().bitmapData;
public static var par8_11:BitmapData = new Embeds.smoke_d011_png().bitmapData;
public static var par8_12:BitmapData = new Embeds.smoke_d012_png().bitmapData;
public static var par3_14_embed:Class = Embeds.shot014_png;
public static var par8_14:BitmapData = new Embeds.smoke_d014_png().bitmapData;
public static var par8_15:BitmapData = new Embeds.smoke_d015_png().bitmapData;
public static var par8_16:BitmapData = new Embeds.smoke_d016_png().bitmapData;
public static var par8_17:BitmapData = new Embeds.smoke_d017_png().bitmapData;
public static var par8_18:BitmapData = new Embeds.smoke_d018_png().bitmapData;
public static var par8_19:BitmapData = new Embeds.smoke_d019_png().bitmapData;
public static var par8_13:BitmapData = new Embeds.smoke_d013_png().bitmapData;
public static var par5_1_embed:Class = Embeds.smoke_c001_png;
public static var par2_5_embed:Class = Embeds.smoke_c005_png;
public static var par6_13_embed:Class = Embeds.smoke_e013_png;
public static var par8_21:BitmapData = new Embeds.smoke_d021_png().bitmapData;
public static var par6_30_embed:Class = Embeds.smoke_e030_png;
public static var par8_23:BitmapData = new Embeds.smoke_d023_png().bitmapData;
public static var par8_25:BitmapData = new Embeds.smoke_d025_png().bitmapData;
public static var par8_20:BitmapData = new Embeds.smoke_d020_png().bitmapData;
public static var par8_22:BitmapData = new Embeds.smoke_d022_png().bitmapData;
public static var par8_24:BitmapData = new Embeds.smoke_d024_png().bitmapData;
public static var par8_26:BitmapData = new Embeds.smoke_d026_png().bitmapData;
public static var par8_27:BitmapData = new Embeds.smoke_d027_png().bitmapData;
public static var par8_28:BitmapData = new Embeds.smoke_d028_png().bitmapData;
public static var par8_29:BitmapData = new Embeds.smoke_d029_png().bitmapData;
public static var par9_12_embed:Class = Embeds.smoke_c012_png;
public static var par8_30:BitmapData = new Embeds.smoke_d030_png().bitmapData;
public static var par6_24_embed:Class = Embeds.smoke_e024_png;
public static var par8_32:BitmapData = new Embeds.smoke_d032_png().bitmapData;
public static var par8_31:BitmapData = new Embeds.smoke_d031_png().bitmapData;
public static var par3_19_embed:Class = Embeds.shot019_png;
public static function constructParticles():Array{
var _local2:ParticleEmitter;
var _local3:ParticleFilter;
var _local1:Array = new Array();
_local2 = new ParticleEmitter();
_local2.Name = "Damaged";
_local2.x = -6;
_local2.y = 3.5999999;
_local2.Frequency = -3;
_local2.lifelow = 50;
_local2.lifehigh = 106;
_local2.gravitylow = 0;
_local2.gravityhigh = -0.000500004971;
_local2.xspeedlow = -0.0500000007;
_local2.xspeedhigh = 0.0500000007;
_local2.yspeedlow = -0.0399999991;
_local2.yspeedhigh = 0.0399999991;
_local2.startalpha = 1;
_local2.endalpha = 1;
_local2.rotatespeedtodirection = 0;
_local2.startrotationlow = 0;
_local2.startrotationhigh = 0;
_local2.dRotationLow = 0;
_local2.dRotationHigh = 0;
_local2.startScale = 1;
_local2.endScale = 1;
_local2.additive = 0;
_local2.layeroverride = "";
_local2.animspeed = 5;
_local2.animspeedrange = 0;
_local2.animframecap = 0;
_local2.Friction = 0;
_local2.Test = 0;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "smoke-a***.png";
_local2.image = par1_1_embed;
_local2.imageSet = par1;
_local1.push(_local2);
_local2 = new ParticleEmitter();
_local2.Name = "DamagedBadly";
_local2.x = -6;
_local2.y = 3.5999999;
_local2.Frequency = -3;
_local2.lifelow = 58;
_local2.lifehigh = 95;
_local2.gravitylow = -0.00100000005;
_local2.gravityhigh = -0.00200000009;
_local2.xspeedlow = -0.0209999997;
_local2.xspeedhigh = 0.0209999997;
_local2.yspeedlow = -0.0909999982;
_local2.yspeedhigh = 0.0410000011;
_local2.startalpha = 1;
_local2.endalpha = 1;
_local2.rotatespeedtodirection = 0;
_local2.startrotationlow = 0;
_local2.startrotationhigh = 0;
_local2.dRotationLow = 0;
_local2.dRotationHigh = 0;
_local2.startScale = 1;
_local2.endScale = 1;
_local2.additive = 0;
_local2.layeroverride = "";
_local2.animspeed = 4;
_local2.animspeedrange = 0;
_local2.animframecap = 0;
_local2.Friction = 0;
_local2.Test = 0;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "smoke-c***.png";
_local2.image = par2_1_embed;
_local2.imageSet = par2;
_local1.push(_local2);
_local2 = new ParticleEmitter();
_local2.Name = "Hit";
_local2.x = 0;
_local2.y = 0;
_local2.Frequency = 0;
_local2.lifelow = 58;
_local2.lifehigh = 58;
_local2.gravitylow = 0.00799999945;
_local2.gravityhigh = 0.0199999996;
_local2.xspeedlow = -0.200000003;
_local2.xspeedhigh = 0.100000001;
_local2.yspeedlow = -0.200000003;
_local2.yspeedhigh = 0.899999976;
_local2.startalpha = 1;
_local2.endalpha = 1;
_local2.rotatespeedtodirection = 0;
_local2.startrotationlow = 0;
_local2.startrotationhigh = 0;
_local2.dRotationLow = 0;
_local2.dRotationHigh = 0;
_local2.startScale = 1;
_local2.endScale = 1;
_local2.additive = 0;
_local2.layeroverride = "";
_local2.animspeed = 4;
_local2.animspeedrange = 0;
_local2.animframecap = 0;
_local2.Friction = 0;
_local2.Test = 1;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "shot***.png";
_local2.image = par3_1_embed;
_local2.imageSet = par3;
_local1.push(_local2);
_local2 = new ParticleEmitter();
_local2.Name = "Destroy";
_local2.x = 0;
_local2.y = 0;
_local2.Frequency = 0;
_local2.lifelow = 274;
_local2.lifehigh = 342;
_local2.gravitylow = 0;
_local2.gravityhigh = 0;
_local2.xspeedlow = 0;
_local2.xspeedhigh = 0;
_local2.yspeedlow = 0;
_local2.yspeedhigh = 0;
_local2.startalpha = 1;
_local2.endalpha = 1;
_local2.rotatespeedtodirection = 0;
_local2.startrotationlow = 0;
_local2.startrotationhigh = 0;
_local2.dRotationLow = 0;
_local2.dRotationHigh = 0;
_local2.startScale = 1;
_local2.endScale = 1;
_local2.additive = 1;
_local2.layeroverride = "";
_local2.animspeed = 5;
_local2.animspeedrange = 0;
_local2.animframecap = 0;
_local2.Friction = 0;
_local2.Test = 1;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "smoke-d***.png";
_local2.image = par4_1_embed;
_local2.imageSet = par4;
_local1.push(_local2);
_local2 = new ParticleEmitter();
_local2.Name = "Fire";
_local2.x = -6;
_local2.y = 3.5999999;
_local2.Frequency = -4;
_local2.lifelow = 173;
_local2.lifehigh = 223;
_local2.gravitylow = -0.00100000005;
_local2.gravityhigh = -0.00200000009;
_local2.xspeedlow = -0.0209999997;
_local2.xspeedhigh = 0.0209999997;
_local2.yspeedlow = -0.0909999982;
_local2.yspeedhigh = 0.0410000011;
_local2.startalpha = 1;
_local2.endalpha = 1;
_local2.rotatespeedtodirection = 0;
_local2.startrotationlow = 0;
_local2.startrotationhigh = 0;
_local2.dRotationLow = 0;
_local2.dRotationHigh = 0;
_local2.startScale = 1;
_local2.endScale = 1;
_local2.additive = 0;
_local2.layeroverride = "";
_local2.animspeed = 8;
_local2.animspeedrange = 0;
_local2.animframecap = 0;
_local2.Friction = 0;
_local2.Test = 0;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "smoke-c***.png";
_local2.image = par5_1_embed;
_local2.imageSet = par5;
_local1.push(_local2);
_local2 = new ParticleEmitter();
_local2.Name = "ZepDestroy";
_local2.x = 0;
_local2.y = 0;
_local2.Frequency = 0;
_local2.lifelow = 157;
_local2.lifehigh = 226;
_local2.gravitylow = 0;
_local2.gravityhigh = 0;
_local2.xspeedlow = 0;
_local2.xspeedhigh = 0;
_local2.yspeedlow = 0;
_local2.yspeedhigh = 0;
_local2.startalpha = 1;
_local2.endalpha = 1;
_local2.rotatespeedtodirection = 0;
_local2.startrotationlow = 0;
_local2.startrotationhigh = 0;
_local2.dRotationLow = 0;
_local2.dRotationHigh = 0;
_local2.startScale = 1;
_local2.endScale = 1;
_local2.additive = 1;
_local2.layeroverride = "AfterPlayer";
_local2.animspeed = 3;
_local2.animspeedrange = 1;
_local2.animframecap = 0;
_local2.Friction = 0.0450000018;
_local2.Test = 0;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "smoke-e***.png";
_local2.image = par6_1_embed;
_local2.imageSet = par6;
_local1.push(_local2);
_local2 = new ParticleEmitter();
_local2.Name = "DestroyGround";
_local2.x = 0;
_local2.y = 0;
_local2.Frequency = 0;
_local2.lifelow = 999;
_local2.lifehigh = 999;
_local2.gravitylow = 0;
_local2.gravityhigh = 0;
_local2.xspeedlow = 0;
_local2.xspeedhigh = 0;
_local2.yspeedlow = 0;
_local2.yspeedhigh = 0;
_local2.startalpha = 1;
_local2.endalpha = 0;
_local2.rotatespeedtodirection = 0;
_local2.startrotationlow = 0;
_local2.startrotationhigh = 0;
_local2.dRotationLow = 0;
_local2.dRotationHigh = 0;
_local2.startScale = 1;
_local2.endScale = 1;
_local2.additive = 0;
_local2.layeroverride = "";
_local2.animspeed = 1;
_local2.animspeedrange = 0;
_local2.animframecap = 0;
_local2.Friction = 0;
_local2.Test = 0;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "wreak.png";
_local2.image = par7_embed;
_local1.push(_local2);
_local2 = new ParticleEmitter();
_local2.Name = "ZepDestroyBehind";
_local2.x = 0;
_local2.y = 0;
_local2.Frequency = 1;
_local2.lifelow = 157;
_local2.lifehigh = 226;
_local2.gravitylow = -9.99999975E-5;
_local2.gravityhigh = -0.000199999995;
_local2.xspeedlow = -0.25;
_local2.xspeedhigh = 0.25;
_local2.yspeedlow = -0.25;
_local2.yspeedhigh = 0.25;
_local2.startalpha = 1;
_local2.endalpha = 0;
_local2.rotatespeedtodirection = 1;
_local2.startrotationlow = -35;
_local2.startrotationhigh = 35;
_local2.dRotationLow = 0.5;
_local2.dRotationHigh = -0.5;
_local2.startScale = 3;
_local2.endScale = 1;
_local2.additive = 0;
_local2.layeroverride = "BehindGround";
_local2.animspeed = 3;
_local2.animspeedrange = 0;
_local2.animframecap = 0;
_local2.Friction = 0.0450000018;
_local2.Test = 0;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "smoke-d***.png";
_local2.image = par8_1_embed;
_local2.imageSet = par8;
_local1.push(_local2);
_local2 = new ParticleEmitter();
_local2.Name = "Flak";
_local2.x = -6;
_local2.y = 3.5999999;
_local2.Frequency = 0;
_local2.lifelow = 58;
_local2.lifehigh = 95;
_local2.gravitylow = -0.00100000005;
_local2.gravityhigh = -0.00200000009;
_local2.xspeedlow = -0.0209999997;
_local2.xspeedhigh = 0.0209999997;
_local2.yspeedlow = -0.0909999982;
_local2.yspeedhigh = 0.0410000011;
_local2.startalpha = 1;
_local2.endalpha = 1;
_local2.rotatespeedtodirection = 0;
_local2.startrotationlow = 0;
_local2.startrotationhigh = 0;
_local2.dRotationLow = 0;
_local2.dRotationHigh = 0;
_local2.startScale = 1;
_local2.endScale = 1;
_local2.additive = 0;
_local2.layeroverride = "";
_local2.animspeed = 4;
_local2.animspeedrange = 0;
_local2.animframecap = 0;
_local2.Friction = 0;
_local2.Test = 0;
_local2.StayAfterDeath = 0;
_local2.Identifier = "";
_local2.impath = "smoke-c***.png";
_local2.image = par9_1_embed;
_local2.imageSet = par9;
_local1.push(_local2);
return (_local1);
}
public static function getParticles():Array{
if (!emitters){
emitters = constructParticles();
};
return (emitters);
}
}
}//package ObjectConstructors
Section 623
//GoodPlane_constructor (ObjectConstructors.GoodPlane_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class GoodPlane_constructor {
public static var roll_17_embed:Class = Embeds.p1_roll017_png;
public static var roll_3_embed:Class = Embeds.p1_roll003_png;
public static var roll_7_embed:Class = Embeds.p1_roll007_png;
public static var roll_10:BitmapData = new Embeds.p1_roll010_png().bitmapData;
public static var roll_12:BitmapData = new Embeds.p1_roll012_png().bitmapData;
public static var roll_13:BitmapData = new Embeds.p1_roll013_png().bitmapData;
public static var roll_14:BitmapData = new Embeds.p1_roll014_png().bitmapData;
public static var roll_15:BitmapData = new Embeds.p1_roll015_png().bitmapData;
public static var roll_16:BitmapData = new Embeds.p1_roll016_png().bitmapData;
public static var roll_17:BitmapData = new Embeds.p1_roll017_png().bitmapData;
public static var roll_24_embed:Class = Embeds.p1_roll024_png;
public static var roll_18:BitmapData = new Embeds.p1_roll018_png().bitmapData;
public static var roll_11:BitmapData = new Embeds.p1_roll011_png().bitmapData;
public static var roll_20_embed:Class = Embeds.p1_roll020_png;
public static var roll_19:BitmapData = new Embeds.p1_roll019_png().bitmapData;
public static var roll_28_embed:Class = Embeds.p1_roll028_png;
public static var roll_10_embed:Class = Embeds.p1_roll010_png;
public static var roll_14_embed:Class = Embeds.p1_roll014_png;
public static var roll_20:BitmapData = new Embeds.p1_roll020_png().bitmapData;
public static var roll_21:BitmapData = new Embeds.p1_roll021_png().bitmapData;
public static var roll_18_embed:Class = Embeds.p1_roll018_png;
public static var roll_25:BitmapData = new Embeds.p1_roll025_png().bitmapData;
public static var roll_22:BitmapData = new Embeds.p1_roll022_png().bitmapData;
public static var roll_24:BitmapData = new Embeds.p1_roll024_png().bitmapData;
public static var roll_4_embed:Class = Embeds.p1_roll004_png;
public static var roll_26:BitmapData = new Embeds.p1_roll026_png().bitmapData;
public static var roll_28:BitmapData = new Embeds.p1_roll028_png().bitmapData;
public static var roll_8_embed:Class = Embeds.p1_roll008_png;
public static var roll_27:BitmapData = new Embeds.p1_roll027_png().bitmapData;
public static var roll_29:BitmapData = new Embeds.p1_roll029_png().bitmapData;
public static var roll_21_embed:Class = Embeds.p1_roll021_png;
public static var LayerName:String = "Player";
public static var roll_25_embed:Class = Embeds.p1_roll025_png;
public static var roll_31:BitmapData = new Embeds.p1_roll031_png().bitmapData;
public static var roll_32:BitmapData = new Embeds.p1_roll032_png().bitmapData;
public static var roll_29_embed:Class = Embeds.p1_roll029_png;
public static var planecrash_embed:Class = Embeds.planecrash_png;
public static var roll_31_embed:Class = Embeds.p1_roll031_png;
public static var roll_30:BitmapData = new Embeds.p1_roll030_png().bitmapData;
public static var roll_23:BitmapData = new Embeds.p1_roll023_png().bitmapData;
public static var roll_32_embed:Class = Embeds.p1_roll032_png;
public static var roll_11_embed:Class = Embeds.p1_roll011_png;
public static var roll:Array = [roll_1, roll_2, roll_3, roll_4, roll_5, roll_6, roll_7, roll_8, roll_9, roll_10, roll_11, roll_12, roll_13, roll_14, roll_15, roll_16, roll_17, roll_18, roll_19, roll_20, roll_21, roll_22, roll_23, roll_24, roll_25, roll_26, roll_27, roll_28, roll_29, roll_30, roll_31, roll_32];
public static var roll_15_embed:Class = Embeds.p1_roll015_png;
public static var roll_19_embed:Class = Embeds.p1_roll019_png;
public static var roll_1_embed:Class = Embeds.p1_roll001_png;
public static var roll_5_embed:Class = Embeds.p1_roll005_png;
public static var roll_9_embed:Class = Embeds.p1_roll009_png;
public static var child1:BitmapData = new Embeds.flash_png().bitmapData;
public static var roll_22_embed:Class = Embeds.p1_roll022_png;
public static var roll_26_embed:Class = Embeds.p1_roll026_png;
public static var child1_embed:Class = Embeds.flash_png;
public static var baseim:BitmapData = new Embeds.p1_roll001_png().bitmapData;
public static var roll_12_embed:Class = Embeds.p1_roll012_png;
public static var roll_16_embed:Class = Embeds.p1_roll016_png;
public static var roll_2_embed:Class = Embeds.p1_roll002_png;
public static var planecrash:BitmapData = new Embeds.planecrash_png().bitmapData;
public static var roll_6_embed:Class = Embeds.p1_roll006_png;
public static var baseim_embed:Class = Embeds.p1_roll001_png;
public static var roll_23_embed:Class = Embeds.p1_roll023_png;
public static var roll_27_embed:Class = Embeds.p1_roll027_png;
public static var roll_1:BitmapData = new Embeds.p1_roll001_png().bitmapData;
public static var roll_2:BitmapData = new Embeds.p1_roll002_png().bitmapData;
public static var roll_3:BitmapData = new Embeds.p1_roll003_png().bitmapData;
public static var roll_4:BitmapData = new Embeds.p1_roll004_png().bitmapData;
public static var roll_5:BitmapData = new Embeds.p1_roll005_png().bitmapData;
public static var roll_6:BitmapData = new Embeds.p1_roll006_png().bitmapData;
public static var roll_7:BitmapData = new Embeds.p1_roll007_png().bitmapData;
public static var roll_8:BitmapData = new Embeds.p1_roll008_png().bitmapData;
public static var roll_9:BitmapData = new Embeds.p1_roll009_png().bitmapData;
public static var roll_30_embed:Class = Embeds.p1_roll030_png;
public static var roll_13_embed:Class = Embeds.p1_roll013_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-14, -9);
_local7.pushPoint(11, -8);
_local7.pushPoint(16, 1);
_local7.pushPoint(9, 10);
_local7.pushPoint(-18, 4);
_local7.approxX = -1;
_local7.approxY = 2;
_local7.approxRadius = 17.1172428;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
_local8 = new GameObject(_arg1, child1_embed, "Player", 0, 0);
_local8.name = "muzzleflash";
_local8.baseHandleX = -0.100000001;
_local8.baseHandleY = 0.899999976;
_local8.basex = 0;
_local8.basey = 0;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
GoodPlane(_arg2).planecrash = planecrash;
GoodPlane(_arg2).roll = roll;
}
}
}//package ObjectConstructors
Section 624
//Ground_constructor (ObjectConstructors.Ground_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Ground_constructor {
public static var images_1_embed:Class = Embeds.ground_1_png;
public static var images_2_embed:Class = Embeds.ground_2_png;
public static var images_3_embed:Class = Embeds.ground_3_png;
public static var images:Array = [images_1, images_2, images_3];
public static var images_1:BitmapData = new Embeds.ground_1_png().bitmapData;
public static var images_2:BitmapData = new Embeds.ground_2_png().bitmapData;
public static var baseim_embed:Class = Embeds.ground_1_png;
public static var images_3:BitmapData = new Embeds.ground_3_png().bitmapData;
public static var baseim:BitmapData = new Embeds.ground_1_png().bitmapData;
public static var LayerName:String = "Ground";
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_local3 = new GameObjectFilterRepeats();
_arg2.addFilter(_local3);
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
Ground(_arg2).images = images;
}
}
}//package ObjectConstructors
Section 625
//Gunner_constructor (ObjectConstructors.Gunner_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Gunner_constructor {
public static var par1_6_embed:Class = Embeds.smoke_d006_png;
public static var par1_23_embed:Class = Embeds.smoke_d023_png;
public static var par1_10:BitmapData = new Embeds.smoke_d010_png().bitmapData;
public static var par1_11:BitmapData = new Embeds.smoke_d011_png().bitmapData;
public static var par1_12:BitmapData = new Embeds.smoke_d012_png().bitmapData;
public static var par1_13:BitmapData = new Embeds.smoke_d013_png().bitmapData;
public static var par1_14:BitmapData = new Embeds.smoke_d014_png().bitmapData;
public static var par1_15:BitmapData = new Embeds.smoke_d015_png().bitmapData;
public static var par1_16:BitmapData = new Embeds.smoke_d016_png().bitmapData;
public static var par1_17:BitmapData = new Embeds.smoke_d017_png().bitmapData;
public static var par1_18:BitmapData = new Embeds.smoke_d018_png().bitmapData;
public static var par1_19:BitmapData = new Embeds.smoke_d019_png().bitmapData;
public static var par1_27_embed:Class = Embeds.smoke_d027_png;
public static var anim_5_embed:Class = Embeds.gunner005_png;
public static var par1_13_embed:Class = Embeds.smoke_d013_png;
public static var par1_20:BitmapData = new Embeds.smoke_d020_png().bitmapData;
public static var par1_17_embed:Class = Embeds.smoke_d017_png;
public static var par1_23:BitmapData = new Embeds.smoke_d023_png().bitmapData;
public static var par1_24:BitmapData = new Embeds.smoke_d024_png().bitmapData;
public static var par1_25:BitmapData = new Embeds.smoke_d025_png().bitmapData;
public static var par1_26:BitmapData = new Embeds.smoke_d026_png().bitmapData;
public static var par1_27:BitmapData = new Embeds.smoke_d027_png().bitmapData;
public static var par1_21:BitmapData = new Embeds.smoke_d021_png().bitmapData;
public static var par1_22:BitmapData = new Embeds.smoke_d022_png().bitmapData;
public static var par1_28:BitmapData = new Embeds.smoke_d028_png().bitmapData;
public static var par1_29:BitmapData = new Embeds.smoke_d029_png().bitmapData;
public static var par1_3_embed:Class = Embeds.smoke_d003_png;
public static var anim_1_embed:Class = Embeds.gunner001_png;
public static var par1_7_embed:Class = Embeds.smoke_d007_png;
public static var par1_20_embed:Class = Embeds.smoke_d020_png;
public static var par1_30_embed:Class = Embeds.smoke_d030_png;
public static var anim:Array = [anim_1, anim_2, anim_3, anim_4, anim_5, anim_6, anim_7];
public static var par1_24_embed:Class = Embeds.smoke_d024_png;
public static var par1_31:BitmapData = new Embeds.smoke_d031_png().bitmapData;
public static var par1_32:BitmapData = new Embeds.smoke_d032_png().bitmapData;
public static var par1_28_embed:Class = Embeds.smoke_d028_png;
public static var par1_30:BitmapData = new Embeds.smoke_d030_png().bitmapData;
public static var LayerName:String = "Player";
public static var par1_2:BitmapData = new Embeds.smoke_d002_png().bitmapData;
public static var par1_3:BitmapData = new Embeds.smoke_d003_png().bitmapData;
public static var par1_4:BitmapData = new Embeds.smoke_d004_png().bitmapData;
public static var par1_5:BitmapData = new Embeds.smoke_d005_png().bitmapData;
public static var par1_6:BitmapData = new Embeds.smoke_d006_png().bitmapData;
public static var par1_7:BitmapData = new Embeds.smoke_d007_png().bitmapData;
public static var par1_1:BitmapData = new Embeds.smoke_d001_png().bitmapData;
public static var par1_14_embed:Class = Embeds.smoke_d014_png;
public static var par1_31_embed:Class = Embeds.smoke_d031_png;
public static var par1_10_embed:Class = Embeds.smoke_d010_png;
public static var par1_8:BitmapData = new Embeds.smoke_d008_png().bitmapData;
public static var par1_9:BitmapData = new Embeds.smoke_d009_png().bitmapData;
public static var par1_18_embed:Class = Embeds.smoke_d018_png;
public static var par1_4_embed:Class = Embeds.smoke_d004_png;
public static var par1_8_embed:Class = Embeds.smoke_d008_png;
public static var anim_3:BitmapData = new Embeds.gunner003_png().bitmapData;
public static var anim_4:BitmapData = new Embeds.gunner004_png().bitmapData;
public static var anim_5:BitmapData = new Embeds.gunner005_png().bitmapData;
public static var anim_7:BitmapData = new Embeds.gunner007_png().bitmapData;
public static var anim_2_embed:Class = Embeds.gunner002_png;
public static var par1_25_embed:Class = Embeds.smoke_d025_png;
public static var par1_21_embed:Class = Embeds.smoke_d021_png;
public static var par1_29_embed:Class = Embeds.smoke_d029_png;
public static var anim_2:BitmapData = new Embeds.gunner002_png().bitmapData;
public static var child1:BitmapData = new Embeds.gun_png().bitmapData;
public static var anim_6:BitmapData = new Embeds.gunner006_png().bitmapData;
public static var anim_1:BitmapData = new Embeds.gunner001_png().bitmapData;
public static var child2:BitmapData = new Embeds.gun_flash_png().bitmapData;
public static var anim_3_embed:Class = Embeds.gunner003_png;
public static var anim_7_embed:Class = Embeds.gunner007_png;
public static var par1_32_embed:Class = Embeds.smoke_d032_png;
public static var par1_11_embed:Class = Embeds.smoke_d011_png;
public static var par1_15_embed:Class = Embeds.smoke_d015_png;
public static var child1_embed:Class = Embeds.gun_png;
public static var par1:Array = [par1_1, par1_2, par1_3, par1_4, par1_5, par1_6, par1_7, par1_8, par1_9, par1_10, par1_11, par1_12, par1_13, par1_14, par1_15, par1_16, par1_17, par1_18, par1_19, par1_20, par1_21, par1_22, par1_23, par1_24, par1_25, par1_26, par1_27, par1_28, par1_29, par1_30, par1_31, par1_32];
public static var par1_19_embed:Class = Embeds.smoke_d019_png;
public static var baseim:BitmapData = new Embeds.gunner004_png().bitmapData;
public static var anim_6_embed:Class = Embeds.gunner006_png;
public static var par1_1_embed:Class = Embeds.smoke_d001_png;
public static var par1_5_embed:Class = Embeds.smoke_d005_png;
public static var par1_22_embed:Class = Embeds.smoke_d022_png;
public static var par1_9_embed:Class = Embeds.smoke_d009_png;
public static var par1_26_embed:Class = Embeds.smoke_d026_png;
public static var baseim_embed:Class = Embeds.gunner004_png;
public static var par1_12_embed:Class = Embeds.smoke_d012_png;
public static var par1_16_embed:Class = Embeds.smoke_d016_png;
public static var anim_4_embed:Class = Embeds.gunner004_png;
public static var child2_embed:Class = Embeds.gun_flash_png;
public static var par1_2_embed:Class = Embeds.smoke_d002_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_local4 = new ParticleEmitter();
_local4.Name = "gunnerdie";
_local4.x = 0;
_local4.y = 0;
_local4.Frequency = 1;
_local4.lifelow = 94;
_local4.lifehigh = 121;
_local4.gravitylow = -9.99999975E-5;
_local4.gravityhigh = -0.000199999995;
_local4.xspeedlow = -0.25;
_local4.xspeedhigh = 0.25;
_local4.yspeedlow = -0.25;
_local4.yspeedhigh = 0.25;
_local4.startalpha = 1;
_local4.endalpha = 0;
_local4.rotatespeedtodirection = 1;
_local4.startrotationlow = -35;
_local4.startrotationhigh = 35;
_local4.dRotationLow = 0.5;
_local4.dRotationHigh = -0.5;
_local4.startScale = 2;
_local4.endScale = 0.699999988;
_local4.additive = 0;
_local4.layeroverride = "";
_local4.animspeed = 3;
_local4.animspeedrange = 0;
_local4.animframecap = 0;
_local4.Friction = 0.0450000018;
_local4.Test = 0;
_local4.StayAfterDeath = 0;
_local4.Identifier = "";
_local4.impath = "smoke-d***.png";
_local4.image = par1_1_embed;
_local4.imageSet = par1;
_arg2.conditionalParticles.push(_local4);
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-5, -8);
_local7.pushPoint(0, -10);
_local7.pushPoint(0, 6);
_local7.pushPoint(-5, 6);
_local7.approxX = -3;
_local7.approxY = -2;
_local7.approxRadius = 8.54400349;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
_local8 = new GameObject(_arg1, child1_embed, "Player", 0, 0);
_local8.name = "gun";
_local8.baseHandleX = 0.5;
_local8.baseHandleY = 0.75;
_local8.basex = 0;
_local8.basey = -1;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
_local8 = new GameObject(_arg1, child2_embed, "Player", 0, 0);
_local8.name = "gunflash";
_local8.baseHandleX = 0.5;
_local8.baseHandleY = 0.75;
_local8.basex = 0;
_local8.basey = -1;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
Gunner(_arg2).anim = anim;
}
}
}//package ObjectConstructors
Section 626
//levelcloud_constructor (ObjectConstructors.levelcloud_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class levelcloud_constructor {
public static var baseim:BitmapData = new Embeds.cloud2_png().bitmapData;
public static var LayerName:String = "";
public static var baseim_embed:Class = Embeds.cloud2_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_local3 = new GameObjectFilterDampenOrigin();
_arg2.addFilter(_local3);
GameObjectFilterDampenOrigin(_local3).factor = 0.400000006;
GameObjectFilterDampenOrigin(_local3).StickToTop = 0;
GameObjectFilterDampenOrigin(_local3).StickToBottom = 0;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
}
}
}//package ObjectConstructors
Section 627
//Man_constructor (ObjectConstructors.Man_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Man_constructor {
public static var baseim:BitmapData = new Embeds.man_png().bitmapData;
public static var LayerName:String = "Player";
public static var baseim_embed:Class = Embeds.man_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
}
}
}//package ObjectConstructors
Section 628
//Parachute_constructor (ObjectConstructors.Parachute_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Parachute_constructor {
public static var busted:BitmapData = new Embeds.parachute_busted_png().bitmapData;
public static var baseim:BitmapData = new Embeds.parachute_png().bitmapData;
public static var LayerName:String = "Player";
public static var busted_embed:Class = Embeds.parachute_busted_png;
public static var baseim_embed:Class = Embeds.parachute_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(0, -13);
_local7.pushPoint(10, -10);
_local7.pushPoint(4, 15);
_local7.pushPoint(-12, -3);
_local7.approxX = 1;
_local7.approxY = 1;
_local7.approxRadius = 14.3178215;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
Parachute(_arg2).busted = busted;
}
}
}//package ObjectConstructors
Section 629
//PlayerBomber_constructor (ObjectConstructors.PlayerBomber_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class PlayerBomber_constructor {
public static var frames_8_embed:Class = Embeds.g_bomb_roll008_png;
public static var frames_7_embed:Class = Embeds.g_bomb_roll007_png;
public static var frames_9_embed:Class = Embeds.g_bomb_roll009_png;
public static var frames_10_embed:Class = Embeds.g_bomb_roll010_png;
public static var baseim_embed:Class = Embeds.playerbomber_png;
public static var frames:Array = [frames_1, frames_2, frames_3, frames_4, frames_5, frames_6, frames_7, frames_8, frames_9, frames_10];
public static var frames_1:BitmapData = new Embeds.g_bomb_roll001_png().bitmapData;
public static var frames_2:BitmapData = new Embeds.g_bomb_roll002_png().bitmapData;
public static var frames_3:BitmapData = new Embeds.g_bomb_roll003_png().bitmapData;
public static var frames_4:BitmapData = new Embeds.g_bomb_roll004_png().bitmapData;
public static var LayerName:String = "Player";
public static var frames_6:BitmapData = new Embeds.g_bomb_roll006_png().bitmapData;
public static var frames_8:BitmapData = new Embeds.g_bomb_roll008_png().bitmapData;
public static var frames_9:BitmapData = new Embeds.g_bomb_roll009_png().bitmapData;
public static var frames_5:BitmapData = new Embeds.g_bomb_roll005_png().bitmapData;
public static var frames_7:BitmapData = new Embeds.g_bomb_roll007_png().bitmapData;
public static var frames_10:BitmapData = new Embeds.g_bomb_roll010_png().bitmapData;
public static var frames_2_embed:Class = Embeds.g_bomb_roll002_png;
public static var frames_3_embed:Class = Embeds.g_bomb_roll003_png;
public static var frames_4_embed:Class = Embeds.g_bomb_roll004_png;
public static var frames_5_embed:Class = Embeds.g_bomb_roll005_png;
public static var frames_6_embed:Class = Embeds.g_bomb_roll006_png;
public static var frames_1_embed:Class = Embeds.g_bomb_roll001_png;
public static var baseim:BitmapData = new Embeds.playerbomber_png().bitmapData;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-39, -8);
_local7.pushPoint(39, -3);
_local7.pushPoint(37, 5);
_local7.pushPoint(13, 9);
_local7.pushPoint(-38, 0);
_local7.approxX = 0;
_local7.approxY = -6;
_local7.approxRadius = 39.1152153;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
PlayerBomber(_arg2).frames = frames;
}
}
}//package ObjectConstructors
Section 630
//PlayerPlane_constructor (ObjectConstructors.PlayerPlane_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class PlayerPlane_constructor {
public static var roll_17_embed:Class = Embeds.p2_roll017_png;
public static var roll_9:BitmapData = new Embeds.p2_roll009_png().bitmapData;
public static var child1_1:BitmapData = new Embeds.plane_prop001_png().bitmapData;
public static var child1_2:BitmapData = new Embeds.plane_prop002_png().bitmapData;
public static var child1_3:BitmapData = new Embeds.plane_prop003_png().bitmapData;
public static var roll_3_embed:Class = Embeds.p2_roll003_png;
public static var roll_7_embed:Class = Embeds.p2_roll007_png;
public static var roll_10:BitmapData = new Embeds.p2_roll010_png().bitmapData;
public static var child1_3_embed:Class = Embeds.plane_prop003_png;
public static var roll_13:BitmapData = new Embeds.p2_roll013_png().bitmapData;
public static var roll_14:BitmapData = new Embeds.p2_roll014_png().bitmapData;
public static var roll_15:BitmapData = new Embeds.p2_roll015_png().bitmapData;
public static var roll_16:BitmapData = new Embeds.p2_roll016_png().bitmapData;
public static var roll_17:BitmapData = new Embeds.p2_roll017_png().bitmapData;
public static var roll_24_embed:Class = Embeds.p2_roll024_png;
public static var roll_18:BitmapData = new Embeds.p2_roll018_png().bitmapData;
public static var roll_11:BitmapData = new Embeds.p2_roll011_png().bitmapData;
public static var roll_12:BitmapData = new Embeds.p2_roll012_png().bitmapData;
public static var roll_19:BitmapData = new Embeds.p2_roll019_png().bitmapData;
public static var roll_28_embed:Class = Embeds.p2_roll028_png;
public static var roll_10_embed:Class = Embeds.p2_roll010_png;
public static var roll_20_embed:Class = Embeds.p2_roll020_png;
public static var roll_14_embed:Class = Embeds.p2_roll014_png;
public static var roll_20:BitmapData = new Embeds.p2_roll020_png().bitmapData;
public static var roll_21:BitmapData = new Embeds.p2_roll021_png().bitmapData;
public static var roll_18_embed:Class = Embeds.p2_roll018_png;
public static var roll_25:BitmapData = new Embeds.p2_roll025_png().bitmapData;
public static var roll_4_embed:Class = Embeds.p2_roll004_png;
public static var roll_28:BitmapData = new Embeds.p2_roll028_png().bitmapData;
public static var roll_8_embed:Class = Embeds.p2_roll008_png;
public static var roll_22:BitmapData = new Embeds.p2_roll022_png().bitmapData;
public static var roll_26:BitmapData = new Embeds.p2_roll026_png().bitmapData;
public static var roll_27:BitmapData = new Embeds.p2_roll027_png().bitmapData;
public static var roll_29:BitmapData = new Embeds.p2_roll029_png().bitmapData;
public static var roll_21_embed:Class = Embeds.p2_roll021_png;
public static var LayerName:String = "Player";
public static var roll_25_embed:Class = Embeds.p2_roll025_png;
public static var roll_31:BitmapData = new Embeds.p2_roll031_png().bitmapData;
public static var roll_32:BitmapData = new Embeds.p2_roll032_png().bitmapData;
public static var roll_29_embed:Class = Embeds.p2_roll029_png;
public static var roll_23:BitmapData = new Embeds.p2_roll023_png().bitmapData;
public static var roll_24:BitmapData = new Embeds.p2_roll024_png().bitmapData;
public static var roll_31_embed:Class = Embeds.p2_roll031_png;
public static var roll_30:BitmapData = new Embeds.p2_roll030_png().bitmapData;
public static var roll_32_embed:Class = Embeds.p2_roll032_png;
public static var roll_11_embed:Class = Embeds.p2_roll011_png;
public static var roll:Array = [roll_1, roll_2, roll_3, roll_4, roll_5, roll_6, roll_7, roll_8, roll_9, roll_10, roll_11, roll_12, roll_13, roll_14, roll_15, roll_16, roll_17, roll_18, roll_19, roll_20, roll_21, roll_22, roll_23, roll_24, roll_25, roll_26, roll_27, roll_28, roll_29, roll_30, roll_31, roll_32];
public static var roll_15_embed:Class = Embeds.p2_roll015_png;
public static var roll_19_embed:Class = Embeds.p2_roll019_png;
public static var roll_1_embed:Class = Embeds.p2_roll001_png;
public static var roll_5_embed:Class = Embeds.p2_roll005_png;
public static var roll_9_embed:Class = Embeds.p2_roll009_png;
public static var child1:Array = [child1_1, child1_2, child1_3];
public static var child2:BitmapData = new Embeds.flash_png().bitmapData;
public static var child1_1_embed:Class = Embeds.plane_prop001_png;
public static var roll_22_embed:Class = Embeds.p2_roll022_png;
public static var roll_26_embed:Class = Embeds.p2_roll026_png;
public static var baseim:BitmapData = new Embeds.p2_roll001_png().bitmapData;
public static var roll_12_embed:Class = Embeds.p2_roll012_png;
public static var roll_16_embed:Class = Embeds.p2_roll016_png;
public static var roll_2_embed:Class = Embeds.p2_roll002_png;
public static var roll_6_embed:Class = Embeds.p2_roll006_png;
public static var baseim_embed:Class = Embeds.p2_roll001_png;
public static var roll_23_embed:Class = Embeds.p2_roll023_png;
public static var roll_27_embed:Class = Embeds.p2_roll027_png;
public static var child1_2_embed:Class = Embeds.plane_prop002_png;
public static var roll_1:BitmapData = new Embeds.p2_roll001_png().bitmapData;
public static var child2_embed:Class = Embeds.flash_png;
public static var roll_3:BitmapData = new Embeds.p2_roll003_png().bitmapData;
public static var roll_4:BitmapData = new Embeds.p2_roll004_png().bitmapData;
public static var roll_5:BitmapData = new Embeds.p2_roll005_png().bitmapData;
public static var roll_6:BitmapData = new Embeds.p2_roll006_png().bitmapData;
public static var roll_7:BitmapData = new Embeds.p2_roll007_png().bitmapData;
public static var roll_8:BitmapData = new Embeds.p2_roll008_png().bitmapData;
public static var roll_2:BitmapData = new Embeds.p2_roll002_png().bitmapData;
public static var roll_30_embed:Class = Embeds.p2_roll030_png;
public static var roll_13_embed:Class = Embeds.p2_roll013_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-14, -9);
_local7.pushPoint(11, -8);
_local7.pushPoint(16, 1);
_local7.pushPoint(9, 10);
_local7.pushPoint(-18, 4);
_local7.approxX = -1;
_local7.approxY = 2;
_local7.approxRadius = 17.1172428;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
_local8 = new GameObject(_arg1, child1_1_embed, "Player", 0, 0);
_local8.name = "";
_local8.baseHandleX = 0.579999983;
_local8.baseHandleY = 0.49000001;
_local8.basex = 0;
_local8.basey = 0;
_local8.animSpeed = 4;
_arg2.addChild(_local8);
_local8.imageSet = child1;
_local8 = new GameObject(_arg1, child2_embed, "Player", 0, 0);
_local8.name = "muzzleflash";
_local8.baseHandleX = -0.100000001;
_local8.baseHandleY = 0.899999976;
_local8.basex = 0;
_local8.basey = 0;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
PlayerPlane(_arg2).roll = roll;
}
}
}//package ObjectConstructors
Section 631
//Scenery3_constructor (ObjectConstructors.Scenery3_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Scenery3_constructor {
public static var baseim:BitmapData = new Embeds.scenery3_png().bitmapData;
public static var LayerName:String = "GroundFront";
public static var baseim_embed:Class = Embeds.scenery3_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
}
}
}//package ObjectConstructors
Section 632
//Turret_constructor (ObjectConstructors.Turret_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Turret_constructor {
public static var baseim:BitmapData = new Embeds.gun_png().bitmapData;
public static var LayerName:String = "Player";
public static var baseim_embed:Class = Embeds.gun_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local6:GameObject;
var _local7:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
}
}
}//package ObjectConstructors
Section 633
//ZepPart1_constructor (ObjectConstructors.ZepPart1_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class ZepPart1_constructor {
public static var LayerName:String = "Player";
public static var child1_embed:Class = Embeds.gun_png;
public static var child2_embed:Class = Embeds.gun_flash_png;
public static var child1:BitmapData = new Embeds.gun_png().bitmapData;
public static var baseim_embed:Class = Embeds.zep_part_1_png;
public static var baseim:BitmapData = new Embeds.zep_part_1_png().bitmapData;
public static var child2:BitmapData = new Embeds.gun_flash_png().bitmapData;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-30, -8);
_local7.pushPoint(11, -8);
_local7.pushPoint(15, 6);
_local7.pushPoint(-35, 9);
_local7.approxX = -10;
_local7.approxY = 6;
_local7.approxRadius = 25.2388592;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
_local8 = new GameObject(_arg1, child1_embed, "Player", -18, -3);
_local8.name = "gun";
_local8.baseHandleX = 0.5;
_local8.baseHandleY = 0.5;
_local8.basex = 2;
_local8.basey = -1;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
_local8 = new GameObject(_arg1, child2_embed, "Player", -18, -10);
_local8.name = "gunflash";
_local8.baseHandleX = 0.5;
_local8.baseHandleY = 0.5;
_local8.basex = 2;
_local8.basey = -8;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
}
}
}//package ObjectConstructors
Section 634
//Zeppelin_constructor (ObjectConstructors.Zeppelin_constructor)
package ObjectConstructors {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import Objects.*;
import GlobalSetup.*;
public class Zeppelin_constructor {
public static var child1:BitmapData = new Embeds.zeppelin_256_png().bitmapData;
public static var baseim:BitmapData = new Embeds.zeppelin_png().bitmapData;
public static var child1_embed:Class = Embeds.zeppelin_256_png;
public static var LayerName:String = "BehindGround";
public static var baseim_embed:Class = Embeds.zeppelin_png;
public static function setup(_arg1:GameScene, _arg2:GameObject):void{
var _local3:GameObjectFilter;
var _local4:ParticleEmitter;
var _local5:ParticleFilter;
var _local8:GameObject;
var _local9:GameObjectFilter;
_arg2.baseHandleX = 0.5;
_arg2.baseHandleY = 0.5;
_arg2.addConditionalParticleArray(globalParticles.getParticles());
_arg2.animSpeed = 0;
var _local6:GameObjectCollision = new GameObjectCollision();
var _local7:GameObjectCollisionPoly = new GameObjectCollisionPoly();
_local6.go = _arg2;
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-538, 0);
_local7.pushPoint(-511, -15);
_local7.pushPoint(-510, 13);
_local7.approxX = -521;
_local7.approxY = -1;
_local7.approxRadius = 17.804493;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(508, -40);
_local7.pushPoint(536, -12);
_local7.pushPoint(536, 7);
_local7.pushPoint(504, 44);
_local7.approxX = 506;
_local7.approxY = 2;
_local7.approxRadius = 42.0475922;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-371, -55);
_local7.pushPoint(-315, -64);
_local7.pushPoint(-328, 65);
_local7.pushPoint(-375, 54);
_local7.approxX = -337;
_local7.approxY = -1;
_local7.approxRadius = 66.8505783;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(387, -65);
_local7.pushPoint(457, -59);
_local7.pushPoint(507, -44);
_local7.pushPoint(504, 46);
_local7.pushPoint(454, 60);
_local7.pushPoint(387, 65);
_local7.approxX = 438;
_local7.approxY = 0;
_local7.approxRadius = 82.6196136;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-526, -73);
_local7.pushPoint(-408, -76);
_local7.pushPoint(-370, -56);
_local7.pushPoint(-371, 55);
_local7.pushPoint(-411, 78);
_local7.pushPoint(-531, 72);
_local7.approxX = -456;
_local7.approxY = 1;
_local7.approxRadius = 103.276329;
_local6.pushPolygon(_local7);
_local7 = new GameObjectCollisionPoly();
_local7.pushPoint(-317, -63);
_local7.pushPoint(387, -64);
_local7.pushPoint(387, 64);
_local7.pushPoint(-325, 62);
_local7.approxX = 32;
_local7.approxY = 5;
_local7.approxRadius = 361.643463;
_local6.pushPolygon(_local7);
_arg2.collision = _local6;
_local6.finalize();
_local8 = new GameObject(_arg1, child1_embed, "BehindObstacleBack", 5, 11);
_local8.mask();
_local8.name = "";
_local8.baseHandleX = 0.504999995;
_local8.baseHandleY = 0.569999993;
_local8.basex = 5;
_local8.basey = 11;
_local8.animSpeed = 0;
_arg2.addChild(_local8);
Zeppelin(_arg2).lowOutlineY = [74, 74, 74, 74, 74, 74, 74, 74, 74, 73, 73, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 17, 17, 17, 17, 17, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 16, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 4, 4, 5, 4, 4, 5, 4, 4, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 21, 21, 21, 22, 22, 22, 23, 23, 23, 24, 24, 24, 25, 25, 26, 26, 26, 27, 27, 28, 28, 29, 29, 30, 30, 31, 31, 32, 33, 33, 34, 35, 35, 36, 37, 38, 39, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 50, 51, 52, 53, 55, 56, 57, 59, 60, 62, 64, 67, 71];
Zeppelin(_arg2).highOutlineY = [76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 147, 148, 149, 149, 149, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 149, 149, 148, 148, 147, 147, 146, 146, 145, 145, 145, 144, 144, 143, 143, 142, 142, 141, 141, 140, 140, 139, 139, 138, 138, 137, 137, 136, 136, 135, 135, 134, 134, 133, 133, 132, 132, 131, 131, 132, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 140, 140, 140, 140, 140, 140, 140, 140, 139, 140, 140, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 139, 139, 139, 140, 140, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 139, 140, 140, 140, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 139, 140, 140, 140, 140, 139, 140, 140, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 139, 139, 140, 140, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 137, 137, 137, 137, 137, 137, 137, 136, 136, 136, 136, 136, 136, 135, 135, 135, 135, 135, 135, 134, 134, 134, 134, 134, 133, 133, 133, 133, 132, 132, 132, 132, 131, 131, 131, 131, 130, 130, 130, 130, 129, 129, 129, 128, 128, 128, 127, 127, 127, 126, 126, 126, 125, 125, 124, 124, 124, 123, 123, 122, 122, 121, 121, 120, 120, 119, 118, 118, 117, 117, 116, 115, 115, 114, 113, 112, 111, 110, 110, 109, 108, 107, 106, 105, 104, 103, 102, 100, 99, 98, 97, 95, 94, 93, 91, 90, 88, 85, 83, 79];
}
}
}//package ObjectConstructors
Section 635
//AAGun (Objects.AAGun)
package Objects {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import ObjectBase.*;
import Tools.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class AAGun extends ObjectBase {
public var at:AirTurret;
public var rotations:Array;
public var health:int;// = 5
public function AAGun(_arg1:GameScene, _arg2:int, _arg3:int){
side = "English";
super(_arg1, AAGun_constructor.baseim_embed, AAGun_constructor.LayerName, _arg2, _arg3);
AAGun_constructor.setup(_arg1, this);
at = new AirTurret(_arg1, 0, -4);
at.side = side;
at.baseHandleY = 1;
at.rearAngle = -140;
at.frontAngle = -40;
at.weak = true;
addChild(at);
}
override public function handleBombHit():void{
damage(null);
}
override public function damage(_arg1:ObjectBase):void{
var _local2:GameObject;
if (dead){
return;
};
if (_arg1){
emitConditionalParticles("Hit", _arg1.basex, _arg1.basey, true);
health--;
} else {
health = (health - 10);
};
if (health < 0){
if (!dead){
if (side == "English"){
ms.scoreMixin.createVisibleScore(this, 200);
} else {
ms.scoreMixin.createVisibleScore(this, 0, "DEFENCES DESTROYED!");
};
emitConditionalParticles("Destroy");
Sounds.planeCrash.play();
remove();
dead = true;
_local2 = helper.findNearest(Scenery3);
if (_local2){
Bitmap(_local2.obj).bitmapData = new Embeds.scenery3_dead_png().bitmapData;
};
};
};
}
override public function _update():void{
if (ms.introPausingGame()){
return;
};
var _local1:Number = Interpolation.linearInterpolateLock(-3, 3, Interpolation.fromTo(at.angle, -105, -75));
var _local2:int = -(int(_local1));
Bitmap(obj).bitmapData = rotations[(_local2 + 3)];
if (dead){
setAlpha(0, true);
if (mainLayer.particles.length == 0){
remove();
};
};
if (ms.currentLevelSet.protectBase == "true"){
side = "German";
at.side = side;
};
}
}
}//package Objects
Section 636
//AirTurret (Objects.AirTurret)
package Objects {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import ObjectBase.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class AirTurret extends TurretBase {
public function AirTurret(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, AirTurret_constructor.baseim_embed, AirTurret_constructor.LayerName, _arg2, _arg3);
AirTurret_constructor.setup(_arg1, this);
normalFrame = new Embeds.aa_turret_png().bitmapData;
flashFrame = new Embeds.aa_turret_flash_png().bitmapData;
flak = true;
burstDelay = 3;
}
}
}//package Objects
Section 637
//Balloon (Objects.Balloon)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class Balloon extends BalloonBase {
public function Balloon(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, Balloon_constructor.baseim_embed, Balloon_constructor.LayerName, _arg2, _arg3);
Balloon_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 638
//Bomb (Objects.Bomb)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class Bomb extends BombBase {
public function Bomb(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, Bomb_constructor.baseim_embed, Bomb_constructor.LayerName, _arg2, _arg3);
Bomb_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 639
//BombTargetHouse (Objects.BombTargetHouse)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class BombTargetHouse extends BombTarget {
public function BombTargetHouse(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, BombTargetHouse_constructor.baseim_embed, BombTargetHouse_constructor.LayerName, _arg2, _arg3);
BombTargetHouse_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 640
//Bullet (Objects.Bullet)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class Bullet extends Projectile {
public function Bullet(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, Bullet_constructor.baseim_embed, Bullet_constructor.LayerName, _arg2, _arg3);
Bullet_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 641
//Cloud (Objects.Cloud)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class Cloud extends ObjectBase {
public function Cloud(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, Cloud_constructor.baseim_embed, Cloud_constructor.LayerName, _arg2, _arg3);
Cloud_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 642
//Confused (Objects.Confused)
package Objects {
import GameScene.*;
import GameObject.*;
import ObjectConstructors.*;
public class Confused extends GameObject {
public function Confused(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, Confused_constructor.baseim_embed, Confused_constructor.LayerName, _arg2, _arg3);
Confused_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 643
//ConvoyAA (Objects.ConvoyAA)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class ConvoyAA extends ConvoyBase {
public var g:Gunner;
public function ConvoyAA(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, ConvoyAA_constructor.baseim_embed, ConvoyAA_constructor.LayerName, _arg2, _arg3);
ConvoyAA_constructor.setup(_arg1, this);
}
override public function _update():void{
if (ms.introPausingGame()){
return;
};
if (dead){
if (g){
g.remove();
g = null;
};
};
super._update();
}
override public function _init():void{
g = new Gunner(gs, -10, -7);
g.side = side;
addChild(g);
g.changeZOrder("GroundFront");
}
}
}//package Objects
Section 644
//ConvoyCar (Objects.ConvoyCar)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class ConvoyCar extends ConvoyBase {
public function ConvoyCar(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, ConvoyCar_constructor.baseim_embed, ConvoyCar_constructor.LayerName, _arg2, _arg3);
ConvoyCar_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 645
//ConvoyTruck (Objects.ConvoyTruck)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class ConvoyTruck extends ConvoyBase {
public function ConvoyTruck(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, ConvoyTruck_constructor.baseim_embed, ConvoyTruck_constructor.LayerName, _arg2, _arg3);
ConvoyTruck_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 646
//EnemyAce (Objects.EnemyAce)
package Objects {
import GameScene.*;
import ObjectBase.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class EnemyAce extends EnemyPlaneBase {
public function EnemyAce(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, EnemyAce_constructor.baseim_embed, EnemyAce_constructor.LayerName, _arg2, _arg3);
EnemyAce_constructor.setup(_arg1, this);
side = "English";
className = "English";
}
override public function maxHealth():int{
return (20);
}
override public function huntLength():int{
return (300);
}
override public function findTarget():ObjectBase{
return (ObjectBase(gs.findRandomObjectByClass("German")));
}
override public function destroyedFrames():Array{
return (Embeds.englishAceWasted);
}
}
}//package Objects
Section 647
//EnemyPlane (Objects.EnemyPlane)
package Objects {
import GameScene.*;
import ObjectBase.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class EnemyPlane extends EnemyPlaneBase {
public function EnemyPlane(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, EnemyPlane_constructor.baseim_embed, EnemyPlane_constructor.LayerName, _arg2, _arg3);
EnemyPlane_constructor.setup(_arg1, this);
side = "German";
}
override public function rotSpeed():Number{
return (0.13);
}
override public function destroyedFrames():Array{
return (Embeds.germanWasted);
}
override public function _update():void{
super._update();
}
}
}//package Objects
Section 648
//EnglishBomber (Objects.EnglishBomber)
package Objects {
import GameScene.*;
import GameObject.*;
import ObjectBase.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class EnglishBomber extends BomberBase {
public function EnglishBomber(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
side = "English";
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, EnglishBomber_constructor.baseim_embed, EnglishBomber_constructor.LayerName, _arg2, _arg3);
EnglishBomber_constructor.setup(_arg1, this);
setupTurrets();
}
override public function _update():void{
if (ms.introPausingGame()){
return;
};
super._update();
if (ms.level > 10){
if (!dead){
if (closeToBombTarget()){
if (((((randTicks % 300) > 200)) && (((randTicks % 20) == 0)))){
dropBomb();
};
};
};
};
}
public function validTarget(_arg1:GameObject):Boolean{
if ((_arg1 is BombTarget)){
if (!BombTarget(_arg1).wrecked){
return (true);
};
};
if ((_arg1 is ObjectBase)){
if (((ObjectBase(_arg1).side) && (!((ObjectBase(_arg1).side == side))))){
return (true);
};
};
return (false);
}
public function closeToBombTarget():Boolean{
var _local1:GameObject;
for each (_local1 in gs.objects) {
if (validTarget(_local1)){
if (Math.abs((basex - _local1.basex)) < 80){
if (_local1.basey > basey){
return (true);
};
};
};
};
return (false);
}
override public function destroyedFrames():Array{
return (Embeds.englishBomberWasted);
}
}
}//package Objects
Section 649
//GermanBomber (Objects.GermanBomber)
package Objects {
import GameScene.*;
import ObjectBase.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class GermanBomber extends BomberBase {
public function GermanBomber(_arg1:GameScene, _arg2:int, _arg3:int){
side = "German";
className = "German";
super(_arg1, GermanBomber_constructor.baseim_embed, GermanBomber_constructor.LayerName, _arg2, _arg3);
GermanBomber_constructor.setup(_arg1, this);
setupTurrets();
}
override public function destroyedFrames():Array{
return (Embeds.germanBomberWasted);
}
}
}//package Objects
Section 650
//GoodPlane (Objects.GoodPlane)
package Objects {
import GameScene.*;
import ObjectBase.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class GoodPlane extends FriendlyPlaneBase {
public function GoodPlane(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, GoodPlane_constructor.baseim_embed, GoodPlane_constructor.LayerName, _arg2, _arg3);
GoodPlane_constructor.setup(_arg1, this);
side = "English";
}
override public function destroyedFrames():Array{
return (Embeds.englishWasted);
}
}
}//package Objects
Section 651
//Ground (Objects.Ground)
package Objects {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class Ground extends GameObject {
public var setBackground:Boolean;// = false
public var images:Array;
public function Ground(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, Ground_constructor.baseim_embed, Ground_constructor.LayerName, _arg2, _arg3);
Ground_constructor.setup(_arg1, this);
}
public function changeBackground():void{
var _local1:GameObject;
for each (_local1 in gs.objects) {
if (_local1.name == "land"){
if (animFrame == 2){
Bitmap(_local1.obj).bitmapData = Embeds.land[0];
} else {
Bitmap(_local1.obj).bitmapData = Embeds.land[animFrame];
};
if (animFrame == 1){
_local1.baseHandleY = 0;
} else {
if (animFrame == 2){
_local1.baseHandleY = -0.2;
} else {
_local1.baseHandleY = 0.5;
};
};
if (animFrame == 1){
gs.drawBackground(4877712, 5339296, 6721455);
} else {
if (animFrame == 0){
gs.drawBackground(3431816, 4290737, 8241114);
} else {
gs.drawBackground(4877712, 5339296, 12691338);
};
};
};
};
}
override public function _update():void{
if (!setBackground){
setBackground = true;
changeBackground();
};
}
}
}//package Objects
Section 652
//Gunner (Objects.Gunner)
package Objects {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import ObjectBase.*;
import Tools.*;
import ObjectConstructors.*;
public class Gunner extends ZeppelinObjectBase {
public var anim:Array;
public var rear:Boolean;// = false
public function Gunner(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, Gunner_constructor.baseim_embed, Gunner_constructor.LayerName, _arg2, _arg3);
Gunner_constructor.setup(_arg1, this);
}
override public function _update():void{
var _local3:GameObject;
if (ms.introPausingGame()){
return;
};
if (dead){
for each (_local3 in children) {
_local3.baseAlpha = 0;
};
baseAlpha = 0;
return;
};
if (rear){
rearAngle = -180;
frontAngle = -90;
} else {
rearAngle = -180;
frontAngle = 10;
};
super._update();
var _local1:Number = Interpolation.linearInterpolateLock(-3, 3, Interpolation.fromTo(angle, -135, -45));
var _local2:int = -(int(_local1));
Bitmap(obj).bitmapData = anim[(_local2 + 3)];
}
override public function damage(_arg1:ObjectBase):void{
if (dead){
return;
};
emitConditionalParticles("Hit", (_arg1.basex - basex), (_arg1.basey - basey));
super.damage(_arg1);
if (dead){
emitConditionalParticles("gunnerdie");
};
}
}
}//package Objects
Section 653
//levelcloud (Objects.levelcloud)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class levelcloud extends ObjectBase {
public function levelcloud(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, levelcloud_constructor.baseim_embed, levelcloud_constructor.LayerName, _arg2, _arg3);
levelcloud_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 654
//Man (Objects.Man)
package Objects {
import GameScene.*;
import GameObject.*;
import ObjectConstructors.*;
public class Man extends GameObject {
public function Man(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, Man_constructor.baseim_embed, Man_constructor.LayerName, _arg2, _arg3);
Man_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 655
//Parachute (Objects.Parachute)
package Objects {
import GameScene.*;
import flash.display.*;
import flash.geom.*;
import ObjectBase.*;
import Scenes.*;
import Tools.*;
import ObjectConstructors.*;
public class Parachute extends ObjectBase {
public var man:Man;
public var delay:int;// = 0
public var busted:BitmapData;
public var isTarget:Boolean;// = false
public var health:int;// = 3
public function Parachute(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, Parachute_constructor.baseim_embed, Parachute_constructor.LayerName, _arg2, _arg3);
Parachute_constructor.setup(_arg1, this);
baseHandleY = 0;
baseScaleY = 0;
}
override public function _update():void{
if (ms.introPausingGame()){
return;
};
if (ticks < 75){
baseScaleX = 0;
baseScaleY = 0;
dy = (dy + 0.03);
} else {
baseScaleX = Interpolation.linearInterpolateLock(0, 1, ((ticks - 75) / 40));
baseScaleY = Interpolation.linearInterpolateLock(0, 1, ((ticks - 75) / 40));
dy = (dy + 0.005);
baseRotation = (Math.sin(((Math.PI * (ticks - 75)) / 180)) * 10);
};
if (dead){
dy = (dy + 0.05);
};
basey = (basey + (dy * 0.5));
dy = (dy * 0.99);
var _local1:Point = tformed(0, 30);
man.basex = _local1.x;
man.basey = _local1.y;
baseScaleY = Interpolation.linearInterpolateLock(baseScaleY, 0, Interpolation.fromTo(basey, (ms.sceneMaxY - 40), (ms.sceneMaxY - 10)));
baseAlpha = Interpolation.linearInterpolateLock(1, 0, Interpolation.fromTo(basey, (ms.sceneMaxY - 25), (ms.sceneMaxY - 10)));
man.baseAlpha = baseAlpha;
if (basey > (MainScene(gs).sceneMaxY - 10)){
if (!dead){
if (isTarget){
ms.lose("YOU LOST HIM!");
};
};
man.remove();
remove();
};
}
override public function allowFriendlyFire():Boolean{
return (true);
}
override public function damage(_arg1:ObjectBase):void{
health--;
if (_arg1){
emitConditionalParticles("Hit", _arg1.basex, _arg1.basey, true);
};
if (ticks < 75){
return;
};
if (health < 0){
if (!dead){
if (side == "German"){
ms.scoreMixin.createVisibleScore(this, 0, "OOPS!");
} else {
ms.scoreMixin.createVisibleScore(this, 200, "NO MERCY!");
};
};
dead = true;
Bitmap(obj).bitmapData = busted;
};
}
override public function _remove():void{
if (man){
man.remove();
};
man = null;
}
override public function _init():void{
man = new Man();
}
}
}//package Objects
Section 656
//PlayerBomber (Objects.PlayerBomber)
package Objects {
import GameScene.*;
import ObjectBase.*;
import Tools.*;
import ObjectConstructors.*;
public class PlayerBomber extends BomberBase {
public var bombs:int;
public var frames:Array;
public var maxBombs:int;// = 24
public function PlayerBomber(_arg1:GameScene=null, _arg2:int=0, _arg3:int=0){
bombs = maxBombs;
if (!_arg1){
_arg1 = GameScene.current();
};
super(_arg1, PlayerBomber_constructor.baseim_embed, PlayerBomber_constructor.LayerName, _arg2, _arg3);
PlayerBomber_constructor.setup(_arg1, this);
side = "German";
className = "German";
setupTurrets(true);
}
override public function maxHealth():int{
return ((super.maxHealth() * 4));
}
override public function _update():void{
var _local3:Bomb;
if (ms.introPausingGame()){
return;
};
if ((ticks % 100) == 0){
bombs++;
};
if (bombs > maxBombs){
bombs = maxBombs;
};
if (bombs > 0){
if ((ticks % 10) == 0){
if (Input.i.keyDown(32)){
_local3 = new Bomb(null, basex, basey);
bombs--;
};
};
};
var _local1:Boolean;
var _local2:Boolean;
setFrameFromSignedRange(dy, -3, 3, frames);
if (Input.i.keyDown(87)){
dy = (dy - 0.15);
};
if (Input.i.keyDown(83)){
dy = (dy + 0.15);
};
if (Input.i.keyDown(65)){
if (flipped){
dx = (dx - 0.08);
} else {
dx = (dx - 0.03);
};
};
if (Input.i.keyDown(68)){
if (flipped){
dx = (dx + 0.03);
} else {
dx = (dx + 0.08);
};
};
super._update();
}
}
}//package Objects
Section 657
//PlayerPlane (Objects.PlayerPlane)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class PlayerPlane extends PlayerBase {
public function PlayerPlane(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, PlayerPlane_constructor.baseim_embed, PlayerPlane_constructor.LayerName, _arg2, _arg3);
PlayerPlane_constructor.setup(_arg1, this);
side = "German";
className = "German";
}
}
}//package Objects
Section 658
//Scenery3 (Objects.Scenery3)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class Scenery3 extends SceneryBase {
public function Scenery3(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, Scenery3_constructor.baseim_embed, Scenery3_constructor.LayerName, _arg2, _arg3);
Scenery3_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 659
//Turret (Objects.Turret)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class Turret extends TurretBase {
public function Turret(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, Turret_constructor.baseim_embed, Turret_constructor.LayerName, _arg2, _arg3);
Turret_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 660
//ZepPart1 (Objects.ZepPart1)
package Objects {
import GameScene.*;
import ObjectBase.*;
import ObjectConstructors.*;
public class ZepPart1 extends GondolaBase {
public function ZepPart1(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, ZepPart1_constructor.baseim_embed, ZepPart1_constructor.LayerName, _arg2, _arg3);
ZepPart1_constructor.setup(_arg1, this);
}
}
}//package Objects
Section 661
//Zeppelin (Objects.Zeppelin)
package Objects {
import GameScene.*;
import flash.display.*;
import Particles.*;
import GameObject.*;
import ObjectBase.*;
import Scenes.*;
import Tools.*;
import GlobalSetup.*;
import ObjectConstructors.*;
public class Zeppelin extends ObjectBase {
public var explosionx:Number;// = 0
public var explosiony:Number;// = 0
public var gunnersDetermined:Boolean;// = false
public var oldExplosionX:Number;// = 0
public var lowOutlineY:Array;
public var deadProgress:int;// = 0
public var highOutlineY:Array;
public var oldExplosionY:Number;// = 0
public var deadCenterX:int;// = 0
public function Zeppelin(_arg1:GameScene, _arg2:int, _arg3:int){
super(_arg1, Zeppelin_constructor.baseim_embed, Zeppelin_constructor.LayerName, _arg2, _arg3);
Zeppelin_constructor.setup(_arg1, this);
Bitmap(obj).bitmapData.floodFill(0, 0, 0);
Bitmap(obj).bitmapData.floodFill(0, (Bitmap(obj).bitmapData.height - 1), 0);
Bitmap(obj).bitmapData.floodFill((Bitmap(obj).bitmapData.width - 1), 0, 0);
}
override public function damage(_arg1:ObjectBase):void{
var _local3:GameObject;
var _local4:Projectile;
var _local5:BitmapData;
var _local6:Bitmap;
var _local7:Number;
var _local8:Number;
var _local9:Number;
if ((_arg1 is Projectile)){
_local4 = Projectile(_arg1);
emitConditionalParticles("Hit", _local4.basex, _local4.basey, true);
_local5 = Bitmap(obj).bitmapData;
_local6 = new Embeds.shot_png();
_local7 = (Math.random() * 40);
_local8 = (_local4.basex + (Math.cos(((_local4.baseRotation / 180) * Math.PI)) * _local7));
_local9 = (_local4.basey + (Math.sin(((_local4.baseRotation / 180) * Math.PI)) * _local7));
_local6.scaleX = 0.8;
_local6.scaleY = 0.8;
_local6.rotation = 0;
_local6.x = ((((_local8 - basex) + (Math.random() * 40)) - 20) + (_local5.width / 2));
_local6.y = ((((_local9 - basey) + (Math.random() * 40)) - 20) + (_local5.height / 2));
_local5.draw(_local6, _local6.transform.matrix, null, BlendMode.ERASE);
};
var _local2:int;
for each (_local3 in gs.objects) {
if ((_local3 is ZeppelinObjectBase)){
if (!ZeppelinObjectBase(_local3).dead){
_local2++;
};
};
};
if (((!(dead)) && ((_local2 == 0)))){
dead = true;
if (_local4){
oldExplosionX = ((_local4.basex - basex) + (obj.width / 2));
oldExplosionY = ((_local4.basey - basey) + (obj.height / 2));
} else {
oldExplosionX = (baseWidth / 2);
oldExplosionY = (baseHeight / 2);
};
};
}
override public function _update():void{
var _local1:Gunner;
var _local2:Gunner;
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:int;
var _local7:Number;
var _local8:Number;
var _local9:Array;
var _local10:Particle;
var _local11:Number;
var _local12:GameObject;
if (ms.introPausingGame()){
return;
};
super._update();
if (deadProgress > 500){
basey = 10000;
hide();
};
if (dead){
deadProgress++;
basey = (basey + dy);
if (basey > (MainScene(gs).sceneMaxY - 60)){
dy = (dy * 0.98);
} else {
dy = (dy + 0.002);
};
baseRotation = Interpolation.squareSquareInterpolateLock(0, 10, Interpolation.fromTo(deadProgress, 0, 600));
Bitmap(obj).smoothing = true;
if (((((deadProgress % 10) == 0)) && ((deadProgress < 1000)))){
if ((deadProgress % 30) == 0){
Sounds.zepExplosion.play().setVolume(Interpolation.linearInterpolate(1, 0, Interpolation.fromToLock(deadProgress, 800, 1000)));
};
while (true) {
explosionx = (2 + (Math.random() * (baseWidth - 4)));
explosiony = (lowOutlineY[int(explosionx)] + (Math.random() * (highOutlineY[int(explosionx)] - lowOutlineY[int(explosionx)])));
_local4 = (oldExplosionX - explosionx);
_local5 = (oldExplosionY - explosiony);
_local6 = Interpolation.linearInterpolateLock(20, 300, (deadProgress / 200));
if (((_local4 * _local4) + (_local5 * _local5)) < (_local6 * _local6)){
break;
};
};
if ((deadProgress % (10 * 3)) == 0){
explosionx = (2 + (Math.random() * (baseWidth - 4)));
explosiony = (lowOutlineY[int(explosionx)] + (Math.random() * (highOutlineY[int(explosionx)] - lowOutlineY[int(explosionx)])));
};
_local3 = 0;
while (_local3 < 5) {
_local7 = ((explosionx - (baseWidth / 2)) + ((Math.random() - 0.5) * 10));
_local8 = ((explosiony - (baseHeight / 2)) + ((Math.random() - 0.5) * 10));
_local9 = emitConditionalParticles("ZepDestroyBehind", _local7, _local8);
_local10 = emitConditionalParticles("ZepDestroyBehind", _local7, _local8)[(_local9.length - 1)];
if (_local10){
_local11 = Math.random();
_local10.StartScale = (_local10.StartScale * _local11);
_local10.EndScale = (_local10.EndScale * _local11);
drawToImage(new Embeds.smoke_a006_png(), (basex + _local7), (basey + _local8), 0, _local11, _local11, BlendMode.ERASE);
};
_local3++;
};
};
};
if (!gunnersDetermined){
for each (_local12 in gs.objects) {
if ((_local12 is Gunner)){
if (_local1){
if (_local12.basex < _local1.basex){
_local2 = _local1;
_local1 = Gunner(_local12);
} else {
_local2 = Gunner(_local12);
};
} else {
_local1 = Gunner(_local12);
};
};
};
};
if (((_local2) && (_local1))){
_local1.rear = true;
_local2.rear = false;
gunnersDetermined = true;
};
}
public function isFinished():Boolean{
return ((deadProgress > 800));
}
}
}//package Objects
Section 662
//Particle (Particles.Particle)
package Particles {
import flash.display.*;
import flash.geom.*;
import GameObject.*;
import Tools.*;
import flash.filters.*;
public class Particle {
public var dRotation:Number;// = 0
public var green:Number;// = 0
public var baseScaleX:Number;// = 1
public var imageSet:Array;
public var toKill:Boolean;// = false
public var lockToTForm:Boolean;// = false
public var lockTo:GameObject;
public var x:Number;// = 0
public var red:Number;// = 1
public var lockToX:Number;// = 0
public var dx:Number;// = 0
public var dy:Number;// = 0
public var lastframe:int;// = 0
public var Plugins:Array;
public var Friction:Number;// = 0
public var blue:Number;// = 0
public var Rotation:Number;// = 0
public var identifier:String;
public var baseScaleY:Number;// = 1
public var StartScale:Number;// = 1
public var Blend:String;// = ""
public var lockToY:Number;// = 0
public var animSpeed:Number;// = 1
public var ax:Number;// = 0
public var ay:Number;// = 0
public var TotalLife:Number;// = 0
public var Delayed:int;// = 0
public var StartAlpha:Number;// = 1
public var RenderWhileDelayed:int;// = 0
public var EndScale:Number;// = 1
public var layer:ParticleLayer;
public var StayAfterDeath:Boolean;// = false
public var xscale:Number;// = 1
public var baseHeight:Number;// = 0
public var deathCallback:Function;// = null
public var _deleted:Boolean;// = false
public var EndAlpha:Number;// = 1
public var b:Bitmap;
public var frame:int;// = 0
public var yscale:Number;// = 1
public var CurrentLife:Number;// = 0
public var ticks:int;// = 0
public var y:Number;// = 0
public var filters:Array;
public var baseWidth:Number;// = 0
public var aRotation:Number;// = 0
public function Particle(){
Plugins = new Array();
filters = new Array();
super();
}
public function addFilter(_arg1:ParticleFilter):void{
filters.push(_arg1);
}
public function remove():void{
b.parent.removeChild(b);
}
public function cosd(_arg1:Number):Number{
return (Math.cos((_arg1 * (Math.PI / 180))));
}
public function tint(_arg1:Number, _arg2:Number, _arg3:Number):void{
red = _arg1;
green = _arg2;
blue = _arg3;
var _local4:Array = new Array();
_local4 = _local4.concat([_arg1, _arg2, _arg3, 0, 0]);
_local4 = _local4.concat([_arg3, _arg1, _arg2, 0, 0]);
_local4 = _local4.concat([_arg2, _arg3, _arg1, 0, 0]);
_local4 = _local4.concat([0, 0, 0, 1, 0]);
var _local5:BitmapFilter = new ColorMatrixFilter(_local4);
this.b.filters = new Array(_local5);
}
public function sind(_arg1:Number):Number{
return (Math.sin((_arg1 * (Math.PI / 180))));
}
public function update():void{
var _local1:ParticleFilter;
var _local2:int;
var _local3:Point;
if (Delayed){
Delayed--;
if (Delayed > 0){
if (!RenderWhileDelayed){
b.visible = false;
};
return;
} else {
b.visible = true;
};
};
if (Blend != ""){
b.blendMode = Blend;
};
ticks++;
dx = (dx + ax);
dy = (dy + ay);
if (Friction > 0){
dx = (dx * (1 - Friction));
dy = (dy * (1 - Friction));
};
x = (x + dx);
y = (y + dy);
if (imageSet != null){
frame++;
_local2 = (frame / animSpeed);
if (_local2 >= lastframe){
_local2 = lastframe;
};
b.bitmapData = imageSet[_local2];
};
if (lockTo){
if (lockToTForm){
_local3 = lockTo.tformed(lockToX, lockToY);
x = _local3.x;
x = _local3.x;
y = _local3.y;
} else {
x = (lockTo.basex + lockToX);
y = (lockTo.basey + lockToY);
};
};
if (((((!((StartScale == 1))) || (!((EndScale == 1))))) || ((Math.abs(Rotation) > 4)))){
b.smoothing = true;
};
CurrentLife = (CurrentLife + 1);
baseScaleX = Interpolation.linearInterpolateLock(StartScale, EndScale, Interpolation.fromTo(CurrentLife, 0, TotalLife));
baseScaleY = baseScaleX;
for each (_local1 in filters) {
_local1.update(this);
};
b.alpha = Interpolation.linearInterpolateLock(StartAlpha, EndAlpha, Interpolation.fromTo(CurrentLife, 0, TotalLife));
b.scaleX = baseScaleX;
b.scaleY = baseScaleY;
Rotation = (Rotation + dRotation);
dRotation = (dRotation + aRotation);
b.rotation = Rotation;
b.x = ((x - ((cosd(-(Rotation)) * ((baseWidth * 0.5) * baseScaleY)) + (sind(-(Rotation)) * ((baseHeight * 0.5) * baseScaleX)))) - layer.x);
b.y = ((y - ((-(sind(-(Rotation))) * ((baseWidth * 0.5) * baseScaleX)) + (cosd(-(Rotation)) * ((baseHeight * 0.5) * baseScaleY)))) - layer.y);
if ((((CurrentLife > TotalLife)) || (toKill))){
if (deathCallback){
deathCallback(this);
};
_deleted = true;
};
}
}
}//package Particles
Section 663
//ParticleEmitter (Particles.ParticleEmitter)
package Particles {
import GameScene.*;
import flash.display.*;
import Tools.*;
public class ParticleEmitter {
public var y:Number;
public var startrotationhigh:Number;// = 0
public var imageSet:Array;
public var startScale:Number;// = 0
public var yspeedhigh:Number;// = 0
public var rotatespeedtodirection:int;// = 0
public var Friction:Number;// = 0
public var layeroverride:String;// = ""
public var lifehigh:int;// = 100
public var xspeedlow:Number;// = 0
public var yspeedlow:Number;// = 0
public var animspeedrange:int;// = 0
public var Name:String;
public var endScale:Number;// = 0
public var x:Number;
public var Test:int;// = 0
public var Frequency:int;// = 0
public var startalpha:Number;// = 1
public var dRotationHigh:Number;// = 0
public var gravitylow:Number;// = 0
public var impath:String;
public var Identifier:String;// = ""
public var StayAfterDeath:Boolean;// = false
public var additive:int;// = 0
public var lifelow:int;// = 100
public var image:Class;
public var animspeed:Number;// = 1
public var endalpha:Number;// = 1
public var animframecap:int;// = 0
public var gravityhigh:Number;// = 0
public var xspeedhigh:Number;// = 0
public var dRotationLow:Number;// = 0
public var startrotationlow:Number;// = 0
public var filters:Array;
public function ParticleEmitter(){
filters = new Array();
super();
}
public function emitOnto(_arg1:ParticleLayer, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Function=null):Array{
var _local9:ParticleLayer;
var _local10:Particle;
if (((((isNaN(_arg2)) || (isNaN(_arg3)))) || ((((_arg2 == 0)) && ((_arg3 == 0)))))){
return (new Array());
};
if (((!((layeroverride == ""))) && (!((layeroverride == null))))){
_local9 = GameScene.current().getZOrder(layeroverride).pl;
if (_local9){
_arg1 = _local9;
};
};
var _local6:int;
if (Frequency >= 0){
_local6 = Frequency;
} else {
if (int((Math.random() > (1 - (1 / (1 - Frequency))))) == 1){
_local6 = 1;
};
};
if (Frequency == 0){
_local6 = 1;
};
var _local7:Array = new Array(_local6);
var _local8:int;
while (_local8 < _local6) {
_local10 = _arg1.addParticle(image);
_local7[_local8] = _local10;
_local10.imageSet = imageSet;
if (imageSet){
_local10.lastframe = Random.randInt(((imageSet.length - animframecap) - 1), (imageSet.length - 1));
};
_local10.layer = _arg1;
_local10.x = _arg2;
_local10.y = _arg3;
_local10.TotalLife = rand(lifelow, lifehigh);
_local10.Rotation = (rand(startrotationlow, startrotationhigh) + _arg4);
_local10.dRotation = rand(dRotationLow, dRotationHigh);
_local10.deathCallback = _arg5;
_local10.baseWidth = _local10.b.width;
_local10.baseHeight = _local10.b.height;
_local10.dx = rand(xspeedlow, xspeedhigh);
_local10.dy = rand(yspeedlow, yspeedhigh);
_local10.ay = rand(gravitylow, gravityhigh);
_local10.StartAlpha = startalpha;
_local10.EndAlpha = endalpha;
_local10.StartScale = startScale;
_local10.EndScale = endScale;
_local10.StayAfterDeath = StayAfterDeath;
_local10.b.alpha = _local10.StartAlpha;
_local10.b.scaleX = _local10.StartScale;
_local10.b.scaleY = _local10.StartScale;
_local10.Friction = Friction;
_local10.identifier = Identifier;
_local10.filters = filters;
_local10.animSpeed = (animspeed + Random.randInt(0, animspeedrange));
if (additive){
_local10.Blend = BlendMode.ADD;
};
_local10.update();
_local8++;
};
return (_local7);
}
public function addFilter(_arg1:ParticleFilter):void{
filters.push(_arg1);
}
public function rand(_arg1:Number, _arg2:Number):Number{
return ((_arg1 + (Math.random() * (_arg2 - _arg1))));
}
}
}//package Particles
Section 664
//ParticleFilter (Particles.ParticleFilter)
package Particles {
public class ParticleFilter {
public function update(_arg1:Particle):void{
}
}
}//package Particles
Section 665
//ParticleLayer (Particles.ParticleLayer)
package Particles {
import flash.display.*;
public class ParticleLayer {
public var parent:MovieClip;
public var x:Number;// = 0
public var y:Number;// = 0
public var particles:Array;
public function ParticleLayer(){
particles = new Array();
super();
}
public function update():void{
var _local1:Particle;
for each (_local1 in particles) {
_local1.update();
if (_local1._deleted){
_local1.remove();
particles.splice(particles.indexOf(_local1), 1);
};
};
}
public function addParticle(_arg1:Class):Particle{
var _local2:Particle = new Particle();
_local2.b = new (_arg1);
parent.addChild(_local2.b);
particles.push(_local2);
return (_local2);
}
public function remove():void{
var _local1:Particle;
for each (_local1 in particles) {
_local1.remove();
};
particles = new Array();
}
}
}//package Particles
Section 666
//CustomPreloader (RSASplash.CustomPreloader)
package RSASplash {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import Tools.*;
import flash.utils.*;
import flash.filters.*;
public class CustomPreloader extends MovieClip {
public var but:SimpleButton;
public var startMS:int;
public var count:int;// = 0
public var clip:MovieClip;
public var _finished:Boolean;// = false
public var _mochiad:MovieClip;
public var b:Bitmap;
public var endStartMS:int;// = 0
public var ticks:int;// = 0
public var setup:Boolean;// = false
public var _mochiad_loaded:Boolean;// = false
public static var introSound:Sound = new intro();
public static var corner_embed:Class = CustomPreloader_corner_embed;
public static var demo:Boolean = false;
public static var intro:Class = CustomPreloader_intro;
public static var loadingImage:Class = CustomPreloader_loadingImage;
public function CustomPreloader(){
var _local3:int;
var _local4:Bitmap;
super();
startMS = getTimer();
stop();
stage.scaleMode = StageScaleMode.SHOW_ALL;
stage.align = StageAlign.TOP_LEFT;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
b = new loadingImage();
b.alpha = 1;
b.x = (400 - (b.width / 2));
b.y = (300 - (b.height / 2));
var _local1:Bitmap = new loadingImage();
_local1.alpha = 1;
_local1.x = (400 - (b.width / 2));
_local1.y = (300 - (b.height / 2));
_local1.filters = [new GlowFilter(0xFFFFFF, 0.5, 12, 12, 2, 1, true)];
but = new SimpleButton(b, _local1, b, b);
but.addEventListener(MouseEvent.CLICK, blah);
addChild(but);
var _local2:int;
while (_local2 <= 1) {
_local3 = 0;
while (_local3 <= 1) {
_local4 = new corner_embed();
_local4.x = (_local2 * 800);
_local4.y = (_local3 * 600);
_local4.rotation = ((_local2 * 90) + (_local3 * 90));
if ((((_local2 == 0)) && ((_local3 == 1)))){
_local4.rotation = (_local4.rotation + 180);
};
stage.addChild(_local4);
_local3++;
};
_local2++;
};
stage.stageFocusRect = null;
}
public function unloadAd():void{
}
public function adfinished():void{
_finished = true;
}
private function init():void{
var _local2:Object;
var _local1:Class = Class(getDefinitionByName("Main"));
if (_local1){
_local2 = new (_local1);
addChild((_local2 as DisplayObject));
};
}
public function blah(_arg1:Event):void{
Net.openURL("http://www.rocksolidarcade.com/");
}
public function onEnterFrame(_arg1:Event):void{
var _local2:int = (getTimer() - startMS);
ticks++;
if (ticks == 20){
introSound.play();
};
but.alpha = Interpolation.squareInterpolateLock(0, 1, Interpolation.fromTo(_local2, 500, 1400));
if (endStartMS){
but.alpha = (but.alpha * Interpolation.linearInterpolateLock(1, 0, Interpolation.fromTo((getTimer() - endStartMS), 0, 300)));
};
b.filters = [new GlowFilter(0xFFFFFF, (1 - but.alpha), 12, 12, 2, 1, true)];
graphics.clear();
graphics.beginGradientFill(GradientType.LINEAR, [0xFFFFFF], [1], [1]);
graphics.drawRect(0, 0, 800, 600);
var _local3:String = root.loaderInfo.url.split("/")[2];
var _local4:Array = _local3.split(".");
var _local5:String = _local3.split(".")[(_local4.length - 2)];
if (_local5 == "rocksolidarcade"){
demo = false;
} else {
demo = true;
};
var _local6:Boolean;
if ((((((framesLoaded == totalFrames)) && (_finished))) && (!(_local6)))){
count++;
if (endStartMS == 0){
if (_local2 > 6000){
endStartMS = getTimer();
};
};
if (endStartMS != 0){
if ((getTimer() - endStartMS) > 500){
removeChild(but);
graphics.clear();
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
nextFrame();
init();
_local6 = true;
return;
};
};
};
var _local7:Number = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
var _local8 = 10;
var _local9 = 10;
graphics.lineStyle(1, 16098643);
graphics.moveTo(12, ((600 - _local8) - _local9));
graphics.lineTo((800 - 12), ((600 - _local8) - _local9));
graphics.lineTo((800 - 12), (600 - _local9));
graphics.lineTo(12, (600 - _local9));
graphics.lineTo(12, ((600 - _local8) - _local9));
graphics.beginFill(10197927);
graphics.drawRect(12, ((600 - _local8) - _local9), ((800 * _local7) - 24), _local8);
graphics.endFill();
_finished = (root.loaderInfo.bytesLoaded == root.loaderInfo.bytesTotal);
}
public function unload():void{
}
}
}//package RSASplash
Section 667
//CustomPreloader_corner_embed (RSASplash.CustomPreloader_corner_embed)
package RSASplash {
import mx.core.*;
public class CustomPreloader_corner_embed extends BitmapAsset {
}
}//package RSASplash
Section 668
//CustomPreloader_intro (RSASplash.CustomPreloader_intro)
package RSASplash {
import mx.core.*;
public class CustomPreloader_intro extends SoundAsset {
}
}//package RSASplash
Section 669
//CustomPreloader_loadingImage (RSASplash.CustomPreloader_loadingImage)
package RSASplash {
import mx.core.*;
public class CustomPreloader_loadingImage extends BitmapAsset {
}
}//package RSASplash
Section 670
//MainGameBackground_constructor (SceneConstructors.MainGameBackground_constructor)
package SceneConstructors {
import GameScene.*;
import flash.display.*;
import flash.geom.*;
import GameObject.*;
import GlobalSetup.*;
public class MainGameBackground_constructor {
public static var im1:BitmapData = new Embeds.land_1_png().bitmapData;
public static var im1_embed:Class = Embeds.land_1_png;
public function register(_arg1:GameScene, _arg2:Sprite, _arg3:Boolean=false):void{
var _local4:GameObject;
var _local5:GameObjectFilter;
if (!_arg3){
_arg1.m = new MovieClip();
};
var _local6:String = GradientType.LINEAR;
var _local7:Array = [3960223, 4290737, 5673151];
var _local8:Array = [100, 100, 100];
var _local9:Array = [0, 128, 0xFF];
var _local10:Matrix = new Matrix();
_local10.createGradientBox(400, 600, (Math.PI / 2), 0, 0);
var _local11:String = SpreadMethod.PAD;
_arg1.m.graphics.beginGradientFill(_local6, _local7, _local8, _local9, _local10, _local11);
_arg1.m.graphics.drawRect(0, 0, 800, 600);
_local4 = new GameObject(_arg1, im1_embed, "", 400, 400);
_local4.baseRotation = 0;
_local4.name = "land";
_local5 = new GameObjectFilterDampenOrigin();
_local4.addFilter(_local5);
GameObjectFilterDampenOrigin(_local5).factor = 0;
GameObjectFilterDampenOrigin(_local5).StickToTop = 0;
GameObjectFilterDampenOrigin(_local5).StickToBottom = 0;
if (!_arg3){
_arg2.addChild(_arg1.m);
};
}
}
}//package SceneConstructors
Section 671
//MainMenu_constructor (SceneConstructors.MainMenu_constructor)
package SceneConstructors {
import GameScene.*;
import flash.display.*;
import flash.geom.*;
import GameObject.*;
import GlobalSetup.*;
public class MainMenu_constructor {
public static var im1:BitmapData = new Embeds.main_menu_jpg().bitmapData;
public static var im1_embed:Class = Embeds.main_menu_jpg;
public function register(_arg1:GameScene, _arg2:Sprite, _arg3:Boolean=false):void{
var _local4:GameObject;
var _local5:GameObjectFilter;
if (!_arg3){
_arg1.m = new MovieClip();
};
_local4 = new GameObject(_arg1, im1_embed, "", 400, 300);
_local4.baseRotation = 0;
if (!_arg3){
_arg2.addChild(_arg1.m);
};
}
}
}//package SceneConstructors
Section 672
//MainMenu (Scenes.MainMenu)
package Scenes {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Layout.*;
import flash.net.*;
import flash.text.*;
import Audio.*;
import Tools.*;
import GameConfig.*;
import GlobalSetup.*;
import HighScorePanel.*;
import SceneConstructors.*;
import RSASplash.*;
public class MainMenu extends GameScene {
public var layer:GUILayer;
public static var highestLevel:int = 0;
public static var levelOfDetail:Boolean = true;
public static var buttonsX:Number = 400;
public static var buttonsY:Number = 350;
public static var controlsReversed2:Boolean = false;
public static var changed:Boolean = false;
public static var controlsReversed:Boolean = false;
public function createSubmitTable():Array{
var _local1:HighScoreSubmit = new HighScoreSubmit();
_local1.score = Random.randInt(10, 3000);
_local1.color = -(_local1.score);
return ([_local1, _local1.ok]);
}
public function optionsButtons():Array{
var _local1:Layout = makeLayout("Controls", ["Normal", "Reversed"], "Controls", 1);
var _local2:Layout = makeLayout("Level of Detail", ["Low", "High"], "LOD", -1);
var _local3:GameObject = addButton("Back");
_local3.name = "OK";
var _local4:Array = [_local1, _local2, _local3];
var _local5:Layout = Layout.Vert(_local4, 12, buttonsX, buttonsY);
LayerFilter.applySlideIn(_local3);
return (_local5.getGameObjects());
}
override public function _register(_arg1:Sprite):void{
var _local2:MainMenu_constructor = new MainMenu_constructor();
_local2.register(this, _arg1);
}
public function instructions():Array{
var _local1:GameObject = addButton("Back");
_local1.name = "OK";
var _local2:Array = [createText("Use either the Up & Down or Left & Right arrow keys to turn"), createText("Space Bar to fire your guns"), createText("Shift or Ctrl key to drop bombs"), createText(" "), createText("Note: Flight Controls may be reversed in the options menu")];
var _local3:Layout = Layout.Vert(_local2, 2);
var _local4:Array = [createText("At the start of each level, you will be given a Mission Briefing"), createText("Complete the tasks given to progress")];
var _local5:Layout = Layout.Vert(_local4, 2);
var _local6:Layout = Layout.Vert([createBreak(), _local3, createBreak(), _local5, createBreak()], 16);
var _local7:Layout = Layout.Vert([createText("INSTRUCTIONS", 36), _local6], 0);
var _local8:Array = [_local7, _local1];
var _local9:GameObject = new GameObject(this, MovieClip, "", 0, 0);
var _local10:Bitmap = GraphicsTools.createFilledSprite(800, 600, 0);
_local10.alpha = 0.6;
MovieClip(_local9.obj).addChild(_local10);
var _local11:Layout = Layout.Vert(_local8, 24, buttonsX, buttonsY);
LayerFilter.applySlideIn(_local9, 0, 0, 0, true);
LayerFilter.applySlideIn(_local7, 0, 0, 0, true);
LayerFilter.applySlideIn(_local1, 0, 0, 400);
return ([_local8, _local9]);
}
public function bombButtons():Array{
return (getStartButtons("Bomb"));
}
public function mainButtons():Array{
var _local1:GameObject = addButton("Play");
var _local2:GameObject = addButton("High Scores");
var _local3:GameObject = addButton("Options");
var _local4:GameObject = addButton("Instructions");
var _local5:GameObject = addButton("link", Embeds.menu_button_link_png);
var _local6:GameObject = addButton("yoursite", Embeds.yoursite_png);
_local6.stripText();
_local6.basex = 400;
_local6.basey = 540;
LayerFilter.applySlideIn(_local6, 0, 0, 0, true);
_local5.stripText();
var _local7:Array = [_local1, _local2, _local3, _local4, _local5];
var _local8:Layout = Layout.Vert(_local7, 6, buttonsX, (buttonsY - 32));
LayerFilter.applySlideIn(_local8);
return ([_local7, _local6]);
}
public function createText(_arg1:String, _arg2:int=20):GameObject{
var _local3:GameObject = new GameObject(this, null, "TextLayer", 0, 0);
_local3.setText(_arg1, _arg2);
_local3.setGlobal(true);
return (_local3);
}
public function createBreak():GameObject{
var _local1:GameObject = new GameObject(this, Embeds.seperator_png, "TextLayer", 0, 0);
return (_local1);
}
public function selectButton(_arg1:String, _arg2:Array, _arg3:Boolean):Boolean{
var _local4:GameObject = findObjectByName((_arg1 + _arg2[0]));
var _local5:GameObject = findObjectByName((_arg1 + _arg2[1]));
if (((_local4) && (_local5))){
if (_local4.mHit()){
_arg3 = false;
changed = true;
};
if (_local5.mHit()){
_arg3 = true;
changed = true;
};
_local4.setButtonOn(!(_arg3));
_local5.setButtonOn(_arg3);
};
return (_arg3);
}
override public function _update():void{
var _local4:MainScene;
var _local5:Boolean;
var _local6:MainScene;
var _local7:GameObject;
var _local8:GameObject;
var _local9:Boolean;
var _local10:Boolean;
SoundPause.updateSoundPause(this);
levelOfDetail = selectButton("LOD", ["Low", "High"], levelOfDetail);
controlsReversed = selectButton("Controls", ["Normal", "Reversed"], controlsReversed);
var _local1:Stage = m.stage;
if (levelOfDetail){
_local1.quality = StageQuality.BEST;
} else {
_local1.quality = StageQuality.MEDIUM;
};
if (changed){
writePrefs();
};
if (layer.buttonHit("Bomb")){
layer.push(bombButtons);
};
if (layer.buttonHit("High Scores")){
layer.push(createHighscoreTable);
};
if (layer.buttonHit("Submit")){
layer.push(createSubmitTable);
};
if (layer.buttonHit("Play")){
if (highestLevel == 0){
_local4 = new MainScene();
_local4.level = 0;
pushScene(_local4, true);
} else {
layer.push(startButtons);
};
};
var _local2:int;
while (_local2 < 25) {
_local5 = layer.buttonHit(("Start" + _local2));
if (_local5){
_local4 = new MainScene();
_local4.level = _local2;
pushScene(_local4, true);
Logging.Log("dogfight", "play", String(_local2));
};
_local2++;
};
if (layer.buttonHit("Two Player")){
if (CustomPreloader.demo){
Net.openURL("http://www.rocksolidarcade.com/embed/dogfight");
} else {
_local6 = new MainScene();
_local6.twoPlayer = true;
pushScene(_local6, true);
Logging.Log("dogfight", "play", "twoplayer");
};
};
if (layer.buttonHit("Options")){
layer.push(optionsButtons);
};
if (layer.buttonHit("Instructions")){
layer.push(instructions);
};
if (layer.buttonHit("Controls")){
layer.push(controls);
};
if (layer.buttonHit("OK")){
layer.pop();
};
if (layer.buttonHit("link")){
Net.openURL("http://www.rocksolidarcade.com/home2");
};
if (layer.buttonHit("yoursite")){
Net.openURL((("http://www.rocksolidarcade.com/embed/" + GameConfig.shortName) + "/"));
};
var _local3:int;
while (_local3 < 2) {
_local7 = layer.getButton(("Up" + _local3));
_local8 = layer.getButton(("Down" + _local3));
if (((_local7) && (_local8))){
_local9 = _local7.mHit();
_local10 = _local8.mHit();
if (((_local9) || (_local10))){
_local7.setButtonOn(_local9);
_local8.setButtonOn(_local10);
if (_local3 == 0){
controlsReversed = _local10;
} else {
controlsReversed2 = _local10;
};
writePrefs();
};
};
_local3++;
};
}
public function _writePrefs():void{
return (writePrefs());
}
public function createHighscoreTable(_arg1:Array=null):Array{
var _local2:HighScorePanel = new HighScorePanel();
_local2.preSetData = _arg1;
return ([_local2, _local2.ok]);
}
public function getStartButtons(_arg1:String=""):Array{
var _local8:Array;
var _local9:int;
var _local10:int;
var _local11:String;
var _local2:Array = new Array();
var _local3:int;
while (_local3 < 1) {
_local8 = new Array();
_local9 = 0;
while (_local9 < 5) {
_local10 = (_local9 + (_local3 * 5));
_local11 = MainScene.levelNames[_local10];
if ((_local10 * 5) > highestLevel){
_local11 = "Locked!";
} else {
_local11 = ("Level " + ((_local9 * 5) + 1));
};
_local8[_local9] = addButton(_local11);
_local8[_local9].name = (("Start" + _arg1) + (_local10 * 5));
if ((_local10 * 5) > highestLevel){
_local8[_local9].disableButton();
};
_local9++;
};
_local2[_local3] = Layout.Vert(_local8);
LayerFilter.applySlideIn(_local2[_local3]);
_local3++;
};
var _local4:Layout = Layout.Horiz(_local2);
var _local5:GameObject = addButton("Back");
_local5.name = "OK";
LayerFilter.applySlideIn(_local5, 1, 0, 400);
var _local6:Array = [_local4, _local5];
var _local7:Layout = Layout.Vert(_local6, 16, buttonsX, buttonsY);
return (_local7.getGameObjects());
}
public function controls():Array{
return ([]);
}
override public function init():void{
readPrefs();
var _local1:GameSoundScene = GameSoundScene.forName("main");
_local1.setBackgroundMusic(Sounds.mainLoop);
SoundPause.createSoundPause(this, false);
layer = new GUILayer();
layer.push(mainButtons);
}
public function makeLayout(_arg1:String, _arg2:Array, _arg3:String, _arg4:int=0):Layout{
var _local7:String;
var _local8:GameObject;
var _local9:Layout;
var _local10:Layout;
var _local5:GameObject = createText(_arg1, 32);
var _local6:Array = new Array();
for each (_local7 in _arg2) {
_local6.push(addButton(_local7, null, null, (_arg3 + _local7), false));
};
_local8 = _local6[0];
_local8.helperButton.setupRadioButtons(_local6, true);
_local9 = horiz(_local6);
_local10 = vert([_local5, _local9]);
LayerFilter.applySlideIn(_local10, _arg4);
return (_local10);
}
public function addButton(_arg1:String, _arg2:Class=null, _arg3:Class=null, _arg4:String="", _arg5:Boolean=true):GameObject{
if (_arg2 == null){
_arg2 = Embeds.menu_button_png;
};
var _local6:GameObject = new GameObject(this, SimpleButton, "TextLayer", 0, 0);
_local6.setupButton(_arg2, _arg1, _arg3, false, _arg5);
if (_arg4 != ""){
_local6.name = _arg4;
};
if (_arg3 != null){
_local6.showButtonOnOutline = true;
};
return (_local6);
}
public function _readPrefs():void{
return (readPrefs());
}
public function startButtons():Array{
return (getStartButtons());
}
public static function readPrefs():void{
var _local1:SharedObject = SharedObject.getLocal("rocksolidprefs");
if (_local1.data["sound"] == "off"){
GameSound.globalSoundVolume = 0;
};
if (_local1.data["music"] == "off"){
GameSound.globalMusicVolume = 0;
};
if (_local1.data["dogfighthighestlevel"]){
highestLevel = int(_local1.data["dogfighthighestlevel"]);
};
if (_local1.data["lod"] == "low"){
levelOfDetail = false;
} else {
levelOfDetail = true;
};
if (_local1.data["controls"] == "reversed"){
controlsReversed = true;
} else {
controlsReversed = false;
};
if (_local1.data["controls2"] == "reversed"){
controlsReversed2 = true;
} else {
controlsReversed2 = false;
};
}
public static function addNormalStyledButton(_arg1:GameScene, _arg2:String, _arg3:Class=null, _arg4:Class=null, _arg5:String="", _arg6:int=-999, _arg7:Boolean=true):GameObject{
var _local10:GameObject;
var _local11:int;
var _local12:String;
var _local13:TextFormat;
if (_arg3 == null){
_arg3 = Embeds.menu_button_png;
};
if (_arg4 == null){
_arg4 = Embeds.menu_button_png;
};
var _local8:GameObject = new GameObject(_arg1, SimpleButton, "TextLayer", 0, 0);
_local8.overGlow = 0.4;
_local8.selectGlow = 0.4;
_local8.buttonTextOffsetX = (-35 - 25);
if (_arg6 > -500){
_local8.buttonTextOffsetX = _arg6;
};
_local8.defaultCol = 0xFFAA00;
var _local9 = 16766499;
_local8.setupButton(_arg3, _arg2, _arg4, false, _arg7);
for each (_local10 in _local8.children) {
_local11 = 0;
while (_local11 <= (_arg2.length - 1)) {
_local12 = _arg2.substr(_local11, 1);
if (String(int(_local12)) == _local12){
_local13 = TextField(_local10.obj).defaultTextFormat;
_local13.color = _local9;
TextField(_local10.obj).setTextFormat(_local13, _local11, (_local11 + 1));
};
_local11++;
};
_local10.baseHandleX = 0;
};
_local8.baseWidth = _local8.obj.width;
_local8.baseHeight = _local8.obj.height;
if (_arg5 != ""){
_local8.name = _arg5;
};
if (_arg4 != null){
_local8.showButtonOnOutline = true;
};
return (_local8);
}
public static function writePrefs():void{
changed = false;
var _local1:SharedObject = SharedObject.getLocal("rocksolidprefs");
if (GameSound.globalSoundVolume < 0.5){
_local1.data["sound"] = "off";
} else {
_local1.data["sound"] = "on";
};
if (GameSound.globalMusicVolume < 0.5){
_local1.data["music"] = "off";
} else {
_local1.data["music"] = "on";
};
_local1.data["dogfighthighestlevel"] = highestLevel;
if (controlsReversed){
_local1.data["controls"] = "reversed";
} else {
_local1.data["controls"] = "normal";
};
if (controlsReversed2){
_local1.data["controls2"] = "reversed";
} else {
_local1.data["controls2"] = "normal";
};
if (levelOfDetail){
_local1.data["lod"] = "high";
} else {
_local1.data["lod"] = "low";
};
}
}
}//package Scenes
Section 673
//MainScene (Scenes.MainScene)
package Scenes {
import GameScene.*;
import Particles.*;
import GameObject.*;
import NagScreen.*;
import Audio.*;
import ObjectBase.*;
import Objects.*;
import Templates.*;
import Tools.*;
import GlobalSetup.*;
import AbstractBase.*;
import Levels.*;
import HighScorePanel.*;
import SceneConstructors.*;
import ObjectConstructors.*;
public class MainScene extends GameScene {
public var bombing:Boolean;// = false
public var sceneMinY:Number;// = -400
public var lives:int;// = 5
public var scoreCounter:GameObject;
public var scoreMixin:ScoreMixin;
public var inSuccess:int;// = 0
public var sceneMaxX:Number;// = 2400
public var sceneMaxY:Number;// = 1200
public var balloons:Array;
public var _countEnemiesCache:int;// = -1
public var inIntro:Boolean;// = false
public var twoPlayer:Boolean;// = false
public var successDelay:int;// = 0
public var layer:GUILayer;
public var levelTicks:int;// = 0
public var ZepA:GameObject;
var ZepB:Zeppelin;
public var rightText:GameObject;
public var introTicks:int;// = 0
public var playedThrough:int;// = 0
public var level:int;// = 0
public var successFadeTime:int;// = 100
public var pointOutParachutes:PointOutObjects;
public var score:int;// = 0
public var inFailure:int;// = 0
public var playSiren:int;// = 0
public var sirenChannel:GameSoundChannel;// = null
public var money:int;// = 0
public var leftScore:int;// = 0
public var cam:GameSceneCamera;
public var leftText:GameObject;
public var rightScore:int;// = 0
public var currentLevelSet:DefaultSet;
public var clouds:Array;
public var initialFade:Boolean;// = false
public var player:Plane;
public var pointOutBalloons:PointOutObjects;
public var projTargets:Array;
public var pointOutProtectBuildings:PointOutObjects;
public var sceneMinX:Number;// = -400
public var scoreMultiplier:GameObject;
public var livesCounter:IconCollection;
public var bombCounter:IconCollection;
public static var lastTickTime:int = 0;
public static var levelNames:Array = ["Duel", "Dogfight", "AA Gun", "Bombers", "Wingmen", "Aces High", "Village Attack", "Squadron", "Bomber Raid", "- Zeppelin -"];
public static var missionText:Array = [["Dawn Patrol", "Shoot down the dawn patrol."], ["Barrage Balloon", "Bomb or shoot down the enemy barrage balloon."], ["Behind Enemy Lines", "Bomb the AA gun outpost, expect resistance."], ["Bombers", "Shoot down all enemy fighters and bombers."], ["Wingmen", "Engage the enemy planes, protect your wingmen for", "as long as you can."], ["Aces High", "Two ace pilots spotted protecting barrage balloons,", "shoot them down."], ["Outpost Assult", "Destroy the enemy outpost."], ["Squadron", "Attack the enemy Squadron, Use tactics to survive.", ""], ["Bomber Raid", "Draw the escort fighters away and shoot them down", "before you attack the bombers."], ["Airship", "The enemy have deployed an R-29 Airship, shoot it", "down."], ["Bombing Run", "Use bombs to pound the enemy base and secondary ground", "targets."], ["Barrage", "Our scouts have spotted four barrage balloons, eliminate", "them before reinforcments arrive."], ["Ace", "Shoot down the ace pilot at all costs."], ["The Convoy", "An enemy General is on his way to a airbase, he must", "not escape."], ["Surprise Attack", "The airbase is expecting the Generals arival. Bomb", "it while they are off guard."], ["No time for repairs", "Enemy squadron approching, shoot them down."], ["Death from above", "The enemy have broken our lines, defend the base!", ""], ["Break the line", "Our bombers need your protection, but first you must", "cross the enemy lines."], ["Ace Escort", "Intercept our bombers and protect them from the enemy.", ""], ["Short Supply", "Destroy the enemy aircraft hangers, you only have", "one bomb per hanger!"], ["Gun Jam", "Shoot down the enemy bombers"], ["Air Advance", "A large enemy squadron is heading our way, fight off", "the attack until our reinforcements arrive."], ["Ace of Aces", "Shoot down the ace pilot, beware of fighter escorts.", ""], ["Return of the R-29", "Attack the airship base and destroy the R-29."], ["Final hour", "Defend our base from an all out bombing assult."]];
public static var levelDescriptions:Array = ["Duel", "Dogfight", "AA Gun", "Bombers", "Wingmen", "Aces High", "Village Attack", "Squadron", "Bomber Raid", "- Zeppelin -"];
public static var aceTacticTip:Boolean = false;
public function MainScene(){
layer = new GUILayer();
clouds = new Array();
balloons = new Array();
projTargets = new Array();
super();
}
public function floor():Number{
return ((sceneMaxY - 20));
}
override public function init():void{
livesCounter = new IconCollection(this, Embeds.lifeicon_png, "TextLayer", 6, 6, 1, 24, false);
livesCounter.setGlobal(true);
scoreMixin = new ScoreMixin(this);
cam = new GameSceneCamera();
var _local1:MainGameBackground_constructor = new MainGameBackground_constructor();
_local1.register(this, this.parent, true);
SoundPause.createSoundPause(this, true);
leftText = new GameObject(this, null, "TextLayer", 4, 0);
leftText.setHandle(0, 0);
leftText.setGlobal(true);
leftText.setText("LEFT", 28);
bombCounter = new IconCollection(this, Embeds.bomb_hud_png, "TextLayer", 80, 6, 1, 24);
bombCounter.setGlobal(true);
bombCounter.setValue(24);
bombCounter.setHandle(0, 1);
var _local2:Number = -20;
scoreCounter = new GameObject(this, null, "TextLayer", (400 + _local2), 2);
scoreCounter.setText("SCORE", 28);
scoreCounter.setGlobal(true);
scoreCounter.baseHandleY = 0;
var _local3:GameObject = new GameObject(this, null, "TextLayer", (476 + _local2), 2);
_local3.setText("x", 24);
_local3.setGlobal(true);
_local3.baseHandleX = 1;
_local3.baseHandleY = 0;
scoreMultiplier = new GameObject(this, null, "TextLayer", (480 + _local2), 2);
scoreMultiplier.setText("1", 28);
scoreMultiplier.setGlobal(true);
scoreMultiplier.baseHandleX = 0;
scoreMultiplier.baseHandleY = 0;
EvasiveIcon.setupIcons();
setupPointOutObjects();
}
public function lose(_arg1:String):void{
if (inFailure != 0){
return;
};
scoreMixin.resetMultiplier();
lives = (lives - 1);
inFailure = 1;
Logging.Log("dogfight", "dead", String(level));
GameSoundScene.forName("main").insertDeadBreak(2000);
if (lives <= 0){
layer.push(createHighScoreSubmit);
} else {
fadeWith(_arg1);
};
}
function bombersDead():Boolean{
var _local1:GameObject;
if (!currentLevelSet.defendBombers){
return (false);
};
for each (_local1 in objects) {
if ((_local1 is BomberBase)){
if (!BomberBase(_local1).dead){
return (false);
};
};
};
return (true);
}
public function updateIntro():void{
var _local2:GameObject;
var _local3:GameObjectFilterFadeInOut;
var _local1 = 300;
if (initialFade){
_local1 = 80;
};
if (inIntro){
introTicks++;
if (introTicks > _local1){
if (((((((player.controlUp()) || (player.controlDown()))) || (PlayerBase(player).shootKeyDown()))) || (player.bombKeyDown()))){
for each (_local2 in objects) {
if (_local2.name == "header"){
_local2.remove();
};
};
player.baseAlpha = 1;
inIntro = false;
};
};
for each (_local2 in objects) {
if (_local2.name == "fadesprite"){
for each (_local3 in _local2.filters) {
if (_local3.FadeOut){
if (inIntro){
if (_local3.ticks > _local3.FadeOutTime){
player.baseAlpha = 0.2;
};
};
if (_local3.ticks > (_local3.FadeOutTime + (_local3.FadeOutDuration * 0.4))){
_local3.ticks = (_local3.FadeOutTime + (_local3.FadeOutDuration * 0.4));
};
};
};
};
};
} else {
initialFade = false;
introTicks = 0;
};
}
public function countEnemies():int{
var _local2:GameObject;
if (_countEnemiesCache != -1){
return (_countEnemiesCache);
};
if (currentLevelSet.escape == "true"){
return (((player.basex)>(sceneMaxX - 32)) ? 0 : 1);
};
var _local1:int;
for each (_local2 in objects) {
if (validTarget(_local2)){
_local1++;
};
};
if (currentLevelSet.destroyBuilding == "true"){
if (player.basex > sceneMinX){
_local1++;
};
};
if (currentLevelSet.protectBase == "true"){
if (levelTicks < 2000){
_local1++;
};
};
if (currentLevelSet.defendBombers == "true"){
if (levelTicks < 2000){
_local1++;
};
};
_countEnemiesCache = _local1;
return (_local1);
}
public function _readPrefs():void{
MainMenu.readPrefs();
}
public function outOfBombs():Boolean{
var _local1:GameObject;
for each (_local1 in objects) {
if ((_local1 is Bomb)){
return (false);
};
};
for each (_local1 in objects) {
if ((_local1 is BombTarget)){
if (BombTarget(_local1).side == "English"){
if (!BombTarget(_local1).wrecked){
if (PlayerBase(player).bombs == 0){
return (true);
};
};
};
};
};
for each (_local1 in objects) {
if ((_local1 is FriendlyPlaneBase)){
if (!FriendlyPlaneBase(_local1).dead){
if (currentLevelSet.gunsJam == "true"){
if (PlayerBase(player).bombs == 0){
return (true);
};
};
};
};
};
for each (_local1 in objects) {
if ((_local1 is EnglishBomber)){
if (!EnglishBomber(_local1).dead){
if (currentLevelSet.gunsJam == "true"){
if (PlayerBase(player).bombs == 0){
return (true);
};
};
};
};
};
return (false);
}
public function countSmokingPlanes():int{
var _local2:GameObject;
var _local1:int;
for each (_local2 in objects) {
if ((_local2 is Plane)){
if (Plane(_local2).smoking()){
_local1++;
};
};
};
return (_local1);
}
public function updateMisc():void{
var _local1:GameObject;
var _local2:ParticleEmitter;
var _local3:GameObjectFilter;
_countEnemiesCache = -1;
clouds = new Array();
balloons = new Array();
projTargets = new Array();
for each (_local1 in objects) {
if ((_local1 is Cloud)){
clouds.push(_local1);
};
};
for each (_local1 in objects) {
if ((_local1 is Balloon)){
balloons.push(_local1);
};
};
for each (_local1 in objects) {
if ((_local1 is ObjectBase)){
if (!ObjectBase(_local1)._removed){
if (((((ObjectBase(_local1).side) || ((_local1 is Zeppelin)))) || ((_local1 is ZeppelinObjectBase)))){
projTargets.push(_local1);
};
};
};
};
if (!MainMenu.levelOfDetail){
for each (_local1 in objects) {
if ((_local1 is levelcloud)){
_local1.remove();
} else {
for each (_local3 in _local1.filters) {
if ((_local3 is GameObjectFilterDampenOrigin)){
if (GameObjectFilterDampenOrigin(_local3).factor > 0.05){
_local1.remove();
};
};
};
};
};
};
for each (_local2 in globalParticles.getParticles()) {
if ((((_local2.Name == "Damaged")) || ((_local2.Name == "DamagedBadly")))){
_local2.lifehigh = getSmokeLife();
_local2.lifelow = ((3 * _local2.lifehigh) / 4);
_local2.animspeed = (_local2.lifehigh / 25);
};
if (_local2.Name == "Hit"){
if (!MainMenu.levelOfDetail){
_local2.Frequency = -2;
} else {
_local2.Frequency = 0;
};
};
};
}
public function setupPointOutObjects():void{
pointOutBalloons = new PointOutObjects(Embeds.target_text_png, Embeds.target_arrow_png, "Ace");
pointOutParachutes = new PointOutObjects(Embeds.target_text_png, Embeds.target_arrow_png, "Ace");
pointOutProtectBuildings = new PointOutObjects(Embeds.protect_text_png, Embeds.target_arrow_png, "Ace");
pointOutBalloons.globalKill = globalKill;
pointOutParachutes.globalKill = globalKill;
pointOutProtectBuildings.globalKill = globalKill;
pointOutParachutes.timeToLast = 99999;
pointOutParachutes.adjust = function (_arg1:GameObject):void{
_arg1.basey = (_arg1.basey + 16);
};
pointOutProtectBuildings.showOffScreenHint = false;
}
public function getSmokeLife():int{
var _local1:Number = 75;
var _local2:int = countSmokingPlanes();
if (_local2 > 5){
_local1 = 40;
} else {
if (_local2 > 2){
_local1 = 60;
} else {
if (_local2 > 1){
_local1 = 75;
};
};
};
if (!MainMenu.levelOfDetail){
_local1 = (_local1 / 2);
};
return (_local1);
}
public function getTip():Array{
var _local1:Array = new Array();
_local1.push([Embeds.evasive_icon_cloud_png, "Tip: Cloud Cover", "If you find a large cloud, fly into it for a short time", "and the Cloud Cover tactic will activate."]);
_local1.push([Embeds.evasive_icon_dive_png, "Tip: Ground Dive", "Point your plane straight down and dive toward the ground,", "then pull out of the dive before it's too late."]);
_local1.push([Embeds.evasive_icon_loop_png, "Tip: Evasive Loop", "Pull a 360 degree loop in any direction to activate.", ""]);
_local1.push([Embeds.evasive_icon_low_png, "Tip: Low Level", "Fly very close to the ground for a short time to activate.", ""]);
_local1.push([null, "Tip: Ace Tactics", "Activate any of the four ace tactics to confuse the enemy!", ""]);
if (!aceTacticTip){
aceTacticTip = true;
return (_local1[4]);
};
return (_local1[Random.randInt(0, (_local1.length - 1))]);
}
public function fadeWith(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false):void{
var _local7:String;
if (_arg2){
_arg1 = "CONGRATULATIONS";
};
var _local5:GameObject = new GameObject(this, GraphicsTools.createFilledSprite(800, 600, 4278190080), "AfterTextLayer", 0, 0);
_local5.baseHandleX = 0;
_local5.baseHandleY = 0;
_local5.setGlobal(true);
_local5.name = "fadesprite";
var _local6:GameObjectFilterFadeInOut = new GameObjectFilterFadeInOut();
_local6.FadeIn = 1;
_local6.FadeInDuration = 50;
_local6.FadeInDelay = 100;
_local6.FadeOut = 1;
_local6.FadeOutDuration = 50;
_local6.FadeOutTime = 200;
if (_arg4){
_local6.ticks = 200;
};
if (_arg2){
_local6.FadeOutTime = 450;
};
_local5.addFilter(_local6);
if (_arg2){
_local7 = "You have completed Dogfight!";
if (_arg3){
_arg1 = "Game Over";
_local7 = ("Final Score: " + score);
};
createHeaderText(_arg1, 400, 300, 50, 30, 320, 30, -1, 2);
createHeaderText(_local7, 400, 360, 50, 30, 320, 30, -1, 2);
} else {
createHeaderText(_arg1, 400, 300, 0, 30, 170, 30);
if (_arg1 != ""){
if (_arg1.toLowerCase().indexOf("mission") != -1){
createHeaderText("MULTIPLIER +1", 400, 360, 20, 30, 170, 30, 36);
} else {
createHeaderText("MULTIPLIER RESET", 400, 360, 20, 30, 170, 30, 36);
};
};
};
}
public function createHeaderText(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int=-1, _arg9:int=0):GameObject{
inIntro = true;
var _local10 = "TextLayer";
if (_arg9){
_local10 = "AfterTextLayer";
};
var _local11:GameObject = new GameObject(this, null, _local10, _arg2, _arg3);
_local11.setGlobal(true);
_local11.setText(_arg1, _arg8);
createHeader(_local11, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9);
return (_local11);
}
public function updateLevelSpecifics():void{
var go:GameObject;
var anyLeft:Boolean;
var objs:Array;
var ep:FriendlyPlaneBase;
if (introPausingGame()){
return;
};
if (((inSuccess) || (inFailure))){
return;
};
var auxObjects:Array = new Array();
for each (go in objects) {
if (validTarget(go)){
auxObjects.push(go);
};
};
if (!currentLevelSet){
return;
};
if (currentLevelSet.protectBase == "true"){
anyLeft = false;
for each (go in objects) {
if ((go is BombTarget)){
if (!BombTarget(go).wrecked){
anyLeft = true;
};
};
};
if (!anyLeft){
lose("YOUR BASE WAS DESTROYED!");
};
};
var anyUpdated:Boolean;
if (currentLevelSet){
if (currentLevelSet.balloon == "true"){
objs = new Array();
for each (go in objects) {
if ((go is BalloonBase)){
if (!BalloonBase(go).falling){
objs.push(go);
};
};
};
pointOutBalloons.update(objs, function (_arg1:GameObject):Boolean{
return (BalloonBase(_arg1).falling);
}, auxObjects);
anyUpdated = true;
if (level > 5){
if (objs.length > 0){
if (((((levelTicks % 800) == 700)) && ((levelTicks < 4000)))){
ep = new GoodPlane(this, (camX - 40), (sceneMinY + 200));
ep.hasBeenOnScreen = true;
ep.currentStrategy = AIPlaneBase.pauseThenAttack;
if (Math.random() > 0.5){
ep.basex = ((camX + 800) + 40);
ep.flip();
};
};
};
};
};
};
if (currentLevelSet.assassinateAce == "true"){
objs = new Array();
for each (go in objects) {
if ((go is Parachute)){
if (Parachute(go).isTarget){
objs.push(go);
};
};
};
if (!anyUpdated){
pointOutParachutes.update(objs, function (_arg1:GameObject):Boolean{
return (Parachute(_arg1).dead);
}, auxObjects);
};
anyUpdated = true;
};
if (currentLevelSet.protectBase){
objs = new Array();
for each (go in objects) {
if ((go is BombTarget)){
objs.push(go);
};
};
if (!anyUpdated){
pointOutProtectBuildings.update(objs, function (_arg1:GameObject):Boolean{
return (BombTarget(_arg1).wrecked);
}, auxObjects);
};
anyUpdated = true;
};
if (currentLevelSet.defendBombers){
objs = new Array();
for each (go in objects) {
if ((go is GermanBomber)){
objs.push(go);
};
};
if (!anyUpdated){
pointOutProtectBuildings.update(objs, function (_arg1:GameObject):Boolean{
return (GermanBomber(_arg1).dead);
}, auxObjects);
};
anyUpdated = true;
if (objs.length > 0){
if (((((levelTicks % 800) == 0)) && ((levelTicks < 2500)))){
ep = new GoodPlane(this, (camX - 40), (sceneMinY + 200));
ep.hasBeenOnScreen = true;
ep.currentStrategy = AIPlaneBase.pauseThenAttack;
if (Math.random() > 0.5){
ep.basex = ((camX + 800) + 40);
ep.flip();
};
};
};
};
var targets:Array = new Array();
for each (go in objects) {
if ((go is BombTarget)){
if (validTarget(go)){
targets.push(go);
};
};
};
if (currentLevelSet.destroyBuilding == "true"){
if (countEnemies() == 1){
pointOutBalloons.textImage = Embeds.escape_text_png;
pointOutBalloons.overrideDirection = -1;
};
};
if (currentLevelSet.escape == "true"){
pointOutBalloons.textImage = Embeds.escape_text_png;
pointOutBalloons.overrideDirection = 1;
};
var anyZobs:Boolean;
for each (go in objects) {
if (!go.parent){
if ((go is ZeppelinObjectBase)){
if (!ZeppelinObjectBase(go).dead){
anyZobs = true;
targets.push(go);
};
};
};
};
for each (go in objects) {
if ((go is Zeppelin)){
if (!anyZobs){
if (!Zeppelin(go).dead){
targets.push(go);
};
};
};
};
if (((((((auxObjects.length) || (targets.length))) || (currentLevelSet.destroyBuilding))) || (currentLevelSet.escape))){
if (!anyUpdated){
pointOutBalloons.update(targets, targetDead, auxObjects);
};
anyUpdated = true;
};
}
function targetDead(_arg1:GameObject):Boolean{
if ((_arg1 is BombTarget)){
return (BombTarget(_arg1).wrecked);
};
if ((_arg1 is ZeppelinObjectBase)){
return (ZeppelinObjectBase(_arg1).dead);
};
if ((_arg1 is Zeppelin)){
return (Zeppelin(_arg1).dead);
};
return (false);
}
public function globalKill():Boolean{
return ((((inSuccess == 180)) || ((inFailure == 180))));
}
public function createHeader(_arg1:GameObject, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int=-1, _arg9:int=0):void{
var _local10:GameObjectFilterFadeInOut = new GameObjectFilterFadeInOut();
_local10.FadeIn = 1;
_local10.FadeInDelay = _arg4;
_local10.FadeInDuration = _arg5;
if (_arg9 == 1){
_arg1.name = "header";
} else {
_local10.FadeOut = 1;
_local10.FadeOutTime = _arg6;
_local10.FadeOutDuration = _arg7;
};
_arg1.setGlobal(true);
_arg1.basex = _arg2;
_arg1.basey = _arg3;
_arg1.addFilter(_local10);
}
public function validTarget(_arg1:GameObject):Boolean{
if ((_arg1 is Zeppelin)){
if (!Zeppelin(_arg1).isFinished()){
return (true);
};
};
if ((_arg1 is Parachute)){
if (Parachute(_arg1).isTarget){
return (true);
};
};
if ((_arg1 is ObjectBase)){
if ((((((ObjectBase(_arg1).side == "English")) || ((_arg1 is ZeppelinObjectBase)))) || (ObjectBase(_arg1).blocksNextLevel))){
if ((((((((((((((((_arg1 is ConvoyBase)) || ((_arg1 is BombTarget)))) || ((_arg1 is AAGun)))) || ((_arg1 is ZeppelinObjectBase)))) || ((_arg1 is EnemyPlaneBase)))) || ((_arg1 is BomberBase)))) || ((_arg1 is FriendlyPlaneBase)))) || (ObjectBase(_arg1).blocksNextLevel))){
if ((_arg1 is Gunner)){
if (Gunner(_arg1).dead){
return (false);
};
};
if ((_arg1 is BombTarget)){
if (((BombTarget(_arg1).wrecked) || (!(BombTarget(_arg1).validForThisLevel())))){
return (false);
};
};
if ((_arg1 is ConvoyBase)){
if (((ConvoyBase(_arg1).dead) || (!((currentLevelSet.convoy == "true"))))){
return (false);
};
};
if (_arg1.parent){
return (false);
};
if (currentLevelSet.destroyBuilding == "true"){
if (!(_arg1 is BombTarget)){
return (false);
};
};
return (true);
};
};
};
return (false);
}
public function _writePrefs():void{
MainMenu.writePrefs();
}
public function showLevelName(_arg1:Array, _arg2:int=0):void{
var d:int;
var img:GameObject;
var txt = _arg1;
var delay = _arg2;
var _txt:Function = function (_arg1:String, _arg2:Number, _arg3:int=24):GameObject{
return (createHeaderText(_arg1, 400, _arg2, ((0 + delay) + 30), 50, d, 50, _arg3, 1));
};
var _img:Function = function (_arg1:Class, _arg2:Number, _arg3:Number):GameObject{
var _local4:GameObject = new GameObject(null, _arg1, "AfterTextLayer", 0, 0);
createHeader(_local4, _arg2, _arg3, ((0 + delay) + 30), 50, d, 50, -1, 1);
return (_local4);
};
d = (150 + delay);
createHeaderText(txt[0], 400, 112, (0 + delay), 50, d, 50, -1, 1);
createHeaderText(txt[1], 400, 168, ((0 + delay) + 30), 50, d, 50, 24, 1);
if (txt[2]){
createHeaderText(txt[2], 400, 200, ((0 + delay) + 30), 50, d, 50, 24, 1);
};
var offset:Number = 0;
if (txt[2]){
offset = 28;
};
_img(Embeds.seperator_png, 400, (200 + offset));
var tip:Array = getTip();
var cc:GameObject = _txt(tip[1], (260 + offset), 32);
if (tip[0]){
img = _img(tip[0], ((400 + (cc.baseWidth / 2)) + 12), ((260 + 4) + offset));
img.baseHandleX = 0;
};
_txt(tip[2], (300 + offset));
_txt(tip[3], (330 + offset));
var fire:GameObject = _txt("Press Fire To Continue", 500);
fire.helperFilter.blink();
}
public function createHighScoreSubmit():Array{
var _local1:HighScoreSubmit = new HighScoreSubmit();
_local1.score = score;
_local1.color = money;
_local1.quitAction = quitHit;
return ([_local1]);
}
public function positionCamera():void{
cam.minX = sceneMinX;
cam.maxX = (sceneMaxX - 800);
cam.minY = sceneMinY;
cam.maxY = (sceneMaxY - 600);
cam.position((player.basex - 400), (player.basey - 300));
pushCamera(cam);
}
public function swapToLevel(_arg1:int, _arg2:Boolean=false):void{
var _local4:GameObject;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local10:twoplayer;
var _local11:DefaultSet;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:GameObjectFilterStayOnScreen;
if ((((((((((((_arg1 == 10)) || ((_arg1 == 14)))) || ((_arg1 == 16)))) || ((_arg1 == 19)))) || ((_arg1 == 23)))) || ((_arg1 == 24)))){
playSiren = 2;
} else {
playSiren = 0;
};
var _local3:GameSound = [Sounds.mainLoop, Sounds.mainLoop2, Sounds.mainLoop3][((_arg1 + 1) % 3)];
if (_arg2){
GameSoundScene.forName("main").setBackgroundMusic(_local3);
} else {
GameSoundScene.forName("main").queueBackgroundMusic(_local3);
};
_arg1 = (_arg1 % 25);
levelTicks = 0;
if (!twoPlayer){
if (MainMenu.highestLevel < _arg1){
MainMenu.highestLevel = _arg1;
_writePrefs();
};
};
EvasiveIcon.reset();
for each (_local4 in objects) {
if ((_local4 is ObjectBase)){
_local4.remove();
} else {
if ((_local4 is Ground)){
_local4.remove();
};
};
};
for each (_local4 in objects) {
_local4.update();
};
if (twoPlayer){
_local10 = new twoplayer();
_local10.init(Random.randInt(0, 4), this);
} else {
_local11 = new DefaultSet();
_local11.init(_arg1, this);
currentLevelSet = _local11;
};
for each (_local4 in objects) {
if ((_local4 is PlayerPlane)){
player = PlayerPlane(_local4);
};
};
for each (_local4 in objects) {
if ((_local4 is PlayerBomber)){
player = Plane(_local4);
};
};
_local5 = 1000;
_local6 = 1000;
_local7 = -1000;
_local8 = -1000;
for each (_local4 in objects) {
if ((_local4 is ObjectBase)){
if ((_local4 is SceneryBase)){
} else {
if ((_local4 is levelcloud)){
} else {
_local12 = ((_local4.basex - (_local4.baseWidth / 2)) - 400);
_local13 = ((_local4.basex + (_local4.baseWidth / 2)) + 400);
_local14 = ((_local4.basey - (_local4.baseHeight / 2)) - 300);
_local15 = ((_local4.basey + (_local4.baseHeight / 2)) + 300);
if (_local12 < _local5){
_local5 = _local12;
};
if (_local14 < _local6){
_local6 = _local14;
};
if (_local13 > _local7){
_local7 = _local13;
};
if (_local15 > _local8){
_local8 = _local15;
};
};
};
};
};
sceneMinX = _local5;
sceneMinY = _local6;
sceneMaxX = _local7;
sceneMaxY = _local8;
for each (_local4 in objects) {
if ((_local4 is Ground)){
sceneMaxY = (_local4.basey + (_local4.baseHeight / 2));
sceneMinY = (sceneMaxY - 600);
};
};
flushParticles();
level = _arg1;
if (!twoPlayer){
if (missionText[level]){
if (((!((inSuccess == 0))) || (!((inFailure == 0))))){
showLevelName(missionText[level], 30);
} else {
showLevelName(missionText[level], 0);
};
};
};
if (twoPlayer){
_local16 = (((sceneMaxX - sceneMinX) - 800) / 2);
sceneMaxX = (sceneMaxX - _local16);
sceneMinX = (sceneMinX + _local16);
for each (_local4 in objects) {
if ((_local4 is FriendlyPlaneBase)){
FriendlyPlaneBase(_local4).canHunt = false;
};
};
for each (_local4 in objects) {
if ((_local4 is PlayerBase)){
PlayerBase(_local4).twoPlayer = true;
};
};
for each (_local4 in objects) {
if ((_local4 is TwoPlayerBase)){
Plane(_local4).flip();
};
};
for each (_local4 in objects) {
if ((_local4 is AIPlaneBase)){
AIPlaneBase(_local4).multipleHunt = true;
};
};
};
var _local9:Boolean;
if (_local11){
if (_local11.DormantEnemies == "true"){
for each (_local4 in objects) {
if ((_local4 is SceneryBase)){
_local17 = new GameObjectFilterStayOnScreen();
_local17.overridedx = 1600;
_local4.addFilter(_local17);
};
};
_local9 = true;
};
};
for each (_local4 in objects) {
if ((_local4 is AIPlaneBase)){
if (AIPlaneBase(_local4).side == "English"){
AIPlaneBase(_local4).canHunt = false;
if (_local9){
AIPlaneBase(_local4).passive = true;
AIPlaneBase(_local4).canHunt = true;
} else {
AIPlaneBase(_local4).flip();
};
};
};
};
PlayerPlane(player).bombs = 0;
for each (_local4 in objects) {
if ((_local4 is ObjectBase)){
if (!(_local4 is Turret)){
if (!_local4._removed){
if (ObjectBase(_local4).side == "English"){
PlayerPlane(player).bombs++;
if ((((_local4 is BombTarget)) && (!(currentLevelSet.oneBomb)))){
PlayerBase(player).bombs++;
};
};
};
};
};
};
if (_local11.balloon == "true"){
for each (_local4 in objects) {
if ((_local4 is Balloon)){
ObjectBase(_local4).blocksNextLevel = true;
};
};
};
if (_local11.gunsJam == "true"){
PlayerPlane(player).bombs = (PlayerPlane(player).bombs * 3);
};
if (PlayerPlane(player).bombs > 24){
PlayerPlane(player).bombs = 24;
};
if (_local11.oneBomb){
PlayerPlane(player).bombs = 0;
for each (_local4 in objects) {
if ((_local4 is BombTarget)){
PlayerPlane(player).bombs++;
};
};
};
setupPointOutObjects();
}
public function introPausingGame():Boolean{
if (initialFade){
return (inIntro);
};
return (((inIntro) && ((introTicks > 200))));
}
public function successUpdate():void{
if (paused){
return;
};
if (inSuccess > 0){
successDelay = 0;
inSuccess++;
if (inSuccess == successFadeTime){
swapToLevel((level + 1));
inSuccess = 0;
};
} else {
if (inFailure > 0){
inFailure++;
successDelay = 0;
if (inFailure == 200){
if (lives > 0){
swapToLevel(level);
inFailure = 0;
} else {
if (!player.dead){
player.dead = true;
};
};
};
} else {
if (((((((player.dead) || (player._removed))) || (outOfBombs()))) || (bombersDead()))){
successDelay++;
if (successDelay > 50){
if (bombersDead()){
lose("YOU LOST ALL OF THE BOMBERS!");
} else {
if (outOfBombs()){
lose("OUT OF BOMBS!");
} else {
if (player.crashed){
lose("YOU CRASHED!");
} else {
lose("YOU WERE SHOT DOWN!");
};
};
};
scoreMixin.resetMultiplier();
};
} else {
if (countEnemies() == 0){
successDelay++;
if ((((successDelay > 50)) || ((currentLevelSet.escape == "true")))){
inSuccess = 1;
fadeWith((("MISSION " + (level + 1)) + " COMPLETE"), (level == 24));
if (level == 24){
playedThrough++;
successFadeTime = 450;
} else {
successFadeTime = 200;
};
GameSoundScene.forName("main").insertBreak(Sounds.levelComplete);
Logging.Log("dogfight", "finish", String(level));
scoreMixin.bumpMultiplier();
};
};
};
};
};
}
public function quitHit():void{
NagScreen.create(this, MainMenu);
}
public function gameOverPlusScore():Array{
var _local1:GameOverPlusScore = new GameOverPlusScore();
_local1.submitCreator = createHighScoreSubmit;
_local1.quitAction = quitHit;
_local1.score = score;
return (_local1.getGameObjects());
}
override public function _update():void{
var _local1:GameObject;
var _local2:GameObject;
var _local3:int;
var _local4:GameObject;
var _local5:Number;
var _local6:Number;
updateMisc();
updateIntro();
if (!player){
initialFade = true;
fadeWith("", false, false, true);
swapToLevel(level, true);
};
if (levelTicks > 200){
if (playSiren > 0){
if (((!(sirenChannel)) || (!(sirenChannel.playing())))){
sirenChannel = Sounds.airRaidSiren.play();
playSiren--;
};
};
};
if (layer.buttonHit("OK")){
NagScreen.create(this, MainMenu);
};
livesCounter.setValue(lives);
scoreMixin.update();
scoreCounter.setText(HumanReadable.padInteger(score, 8));
scoreMultiplier.setText(String(scoreMixin.multiplier));
updateLevelSpecifics();
if ((player is PlayerBase)){
bombCounter.setValue(PlayerBase(player).bombs);
};
if (twoPlayer){
leftText.setText(("Player One: " + leftScore));
} else {
_local3 = countEnemies();
if (_local3 == 1){
leftText.setText("1 Enemy Left");
} else {
leftText.setText((countEnemies() + " Enemies Left"));
};
leftText.baseAlpha = 0;
};
SoundPause.updateSoundPause(this);
if (paused){
if (((inSuccess) || (inFailure))){
paused = false;
};
if (lives == 0){
paused = false;
};
if (inIntro){
paused = false;
};
};
positionCamera();
for each (_local1 in objects) {
if ((_local1 is Zeppelin)){
if (!Zeppelin(_local1).dead){
for each (_local4 in objects) {
if ((_local4 is Plane)){
if (_local1.collidesWith(_local4)){
Plane(_local4).damage(null);
};
};
};
};
};
};
for each (_local2 in objects) {
if ((_local2 is Balloon)){
if (!BalloonBase(_local2).falling){
for each (_local4 in objects) {
if ((_local4 is PlayerBase)){
if (_local2.collidesWith(_local4)){
Plane(_local4).damage(null);
};
};
};
};
};
};
if (!paused){
_local5 = 9999999;
for each (_local4 in objects) {
if ((_local4 is BomberBase)){
if (_local5 > _local4.basex){
_local5 = _local4.basex;
};
};
};
if (!currentLevelSet.protectBase){
for each (_local4 in objects) {
if ((_local4 is BomberBase)){
_local6 = (BomberBase(_local4).basex - BomberBase(_local4).lastX);
sceneMinX = (sceneMinX + _local6);
sceneMaxX = (sceneMaxX + _local6);
break;
};
};
};
if (_local5 < 99999){
if (player.basex < (_local5 - 200)){
if ((player.basex - sceneMinX) > 400){
sceneMinX = (player.basex - 400);
};
};
};
levelTicks++;
successUpdate();
};
}
}
}//package Scenes
Section 674
//SerializedObject (Serialization.SerializedObject)
package Serialization {
import flash.utils.*;
public class SerializedObject {
public var val:Array;
public var typeName:String;
public function SerializedObject(){
val = new Array();
super();
}
public function applyTo(_arg1:Object):void{
var _local2:int;
while (_local2 < val.length) {
_arg1[val[_local2][0]] = val[_local2][1];
_local2++;
};
}
public function toArray():Array{
return ([typeName, val]);
}
public static function serialize(_arg1:Object):SerializedObject{
var _local6:XML;
var _local7:String;
var _local8:int;
var _local9:Array;
var _local10:Array;
var _local11:int;
var _local2:SerializedObject = new (SerializedObject);
var _local3:XML = describeType(_arg1);
var _local4:Array = _arg1["serializeFields"]();
_local2.typeName = _local3.attribute("name")[0];
var _local5:XMLList = _local3.descendants("variable");
for each (_local6 in _local5) {
_local7 = _local6.attribute("name")[0];
_local8 = 0;
while (_local8 < _local4.length) {
if (_local7 == _local4[_local8]){
if (_local6.attribute("type") == "Array"){
_local9 = _arg1[_local7];
_local10 = new Array(_local9.length);
_local11 = 0;
while (_local11 < _local9.length) {
if (_local9[_local11]){
_local10[_local11] = serialize(_local9[_local11]).toArray();
};
_local11++;
};
_local2.val.push([_local7, _local10, _local6.attribute("type")[0]]);
} else {
_local2.val.push([_local7, _arg1[_local7], _local6.attribute("type")[0]]);
};
};
_local8++;
};
};
return (_local2);
}
public static function fromArray(_arg1:Array):SerializedObject{
var _local2:SerializedObject = new (SerializedObject);
_local2.typeName = _arg1[0];
_local2.val = _arg1[1];
return (_local2);
}
}
}//package Serialization
Section 675
//StoreObject (Serialization.StoreObject)
package Serialization {
import flash.events.*;
import flash.net.*;
import GameConfig.*;
import flash.utils.*;
public class StoreObject {
public static var dirty:Boolean = false;
public static var couldNotFlush:Boolean = false;
public static var lastSharedObject:SharedObject;
public static var ihateflash:SharedObject;
public static function couldFlush():Boolean{
var _local1 = !(couldNotFlush);
couldNotFlush = false;
return (_local1);
}
public static function unPackArray(_arg1:Array):Array{
var _local2:Array = new Array(_arg1.length);
var _local3:int;
while (_local3 < _arg1.length) {
if ((_arg1[_local3] is Array)){
_local2[_local3] = unPackObject(_arg1[_local3]);
} else {
_local2[_local3] = _arg1[_local3];
};
_local3++;
};
return (_local2);
}
public static function unPackField(_arg1:Array){
var _local2:String = _arg1[2];
if (_local2 == "Array"){
return (unPackArray(_arg1[1]));
};
return (_arg1[1]);
}
public static function testStorage():Boolean{
var _local1:SharedObject = getSharedObject();
_local1.flush((0x0200 * 0x0400));
return (true);
}
public static function retrieveArray(_arg1:String):Array{
var _local2:SharedObject = getSharedObject();
var _local3:Array = _local2.data[_arg1];
if (_local3 == null){
return (new Array(0));
};
if (_local3.length > 1000){
return (null);
};
var _local4:Array = unPackArray(_local3);
return (_local4);
}
public static function netHandler(_arg1:NetStatusEvent):void{
if (_arg1.info.code == "SharedObject.Flush.Failed"){
couldNotFlush = true;
} else {
couldNotFlush = false;
};
}
public static function storeValue(_arg1:String, _arg2:Object):void{
var _local3:SharedObject = getSharedObject();
_local3.data[_arg1] = _arg2;
dirty = true;
}
public static function unPackObject(_arg1:Array){
var _local5:Array;
var _local2:String = _arg1[0];
var _local3:Array = _arg1[1];
var _local4:Object = new ((getDefinitionByName(_local2) as Class));
for each (_local5 in _local3) {
_local4[_local5[0]] = unPackField(_local5);
};
return (_local4);
}
public static function flush():void{
if (!dirty){
return;
};
try {
} catch(exp:Error) {
couldNotFlush = true;
};
}
public static function retrieveValue(_arg1:String):Object{
var _local2:SharedObject = getSharedObject();
var _local3:Object = _local2.data[_arg1];
return (_local3);
}
public static function updateStoreObject():void{
if (lastSharedObject){
flush();
ihateflash = lastSharedObject;
lastSharedObject.removeEventListener(NetStatusEvent.NET_STATUS, netHandler);
lastSharedObject = null;
};
}
public static function storeArray(_arg1:String, _arg2:Array):void{
var _local3:SharedObject = getSharedObject();
var _local4:Array = new Array(_arg2.length);
var _local5:int;
while (_local5 < _arg2.length) {
if (_arg2[_local5]){
if ((((_arg2[_local5] is String)) || ((_arg2[_local5] is int)))){
_local4[_local5] = _arg2[_local5];
} else {
_local4[_local5] = SerializedObject.serialize(_arg2[_local5]).toArray();
};
} else {
_local4[_local5] = null;
};
_local5++;
};
_local3.data[_arg1] = _local4;
dirty = true;
}
public static function getSharedObject():SharedObject{
if (!lastSharedObject){
lastSharedObject = SharedObject.getLocal(GameConfig.shortName, "/");
lastSharedObject.addEventListener(NetStatusEvent.NET_STATUS, netHandler);
dirty = false;
};
return (lastSharedObject);
}
public static function describe(_arg1:Array):String{
var _local2 = " [ ";
var _local3:int;
while (_local3 < _arg1.length) {
if ((_arg1[_local3] is Array)){
_local2 = (_local2 + describe(_arg1[_local3]));
} else {
_local2 = (_local2 + String(_arg1[_local3]));
};
if (_local3 < (_arg1.length - 1)){
_local2 = (_local2 + ", ");
};
_local3++;
};
_local2 = (_local2 + " ] ");
return (_local2);
}
}
}//package Serialization
Section 676
//GameOverPlusScore (Templates.GameOverPlusScore)
package Templates {
import GameScene.*;
import GameObject.*;
import Layout.*;
import Scenes.*;
import GlobalSetup.*;
public class GameOverPlusScore extends GameObject {
public var no:GameObject;
public var quitAction:Function;
public var yes:GameObject;
public var score:int;// = 0
public var gameOverText:GameObject;
public var submitCreator:Function;
public function GameOverPlusScore(){
super(null, Embeds.gameoverscore_png, "TextLayer", 400, 300);
}
public function lockToThis(_arg1:GameObject):void{
_arg1.setGlobal(true);
_arg1.basex = (_arg1.basex - 400);
_arg1.basey = (_arg1.basey - 300);
addChild(_arg1);
}
public function getGameObjects():Array{
return ([this, yes, no]);
}
override public function _init():void{
helperFilter.addPanelSlide();
setGlobal(true);
helper.addBacking();
yes = addButton("SUBMIT");
no = addButton("KEEP PLAYING");
var _local1:Array = [yes, no];
Layout.Horiz(_local1, 8, 400, 360);
lockToThis(yes);
lockToThis(no);
txt("GAME OVER", 400, 200, 36);
txt(("YOUR FINAL SCORE WAS: " + score), 400, 250, 24);
txt("SUBMIT THIS SCORE ONLINE?", 400, 290, 24);
}
public function txt(_arg1:String, _arg2:int, _arg3:int, _arg4:int=-1):GameObject{
var _local5:GameObject = new GameObject(null, null, "TextLayer", _arg2, _arg3);
_local5.setText(_arg1, _arg4);
lockToThis(_local5);
return (_local5);
}
public function addButton(_arg1:String):GameObject{
var _local2:GameObject = MainMenu.addNormalStyledButton(gs, _arg1);
_local2.setGlobal(true);
return (_local2);
}
override public function _update():void{
if (no.mHit()){
if (quitAction){
quitAction();
};
};
if (yes.mHit()){
gs["layer"].push(submitCreator, true);
};
}
}
}//package Templates
Section 677
//IconCollection (Templates.IconCollection)
package Templates {
import GameScene.*;
import GameObject.*;
import Layout.*;
public class IconCollection extends GameObject {
public var threshold:int;// = 3
public var sprites:Array;
public var displayText:GameObject;
public var fontSize:int;// = 48
public var value:int;// = 5
public var iconClass:Class;
public function IconCollection(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int, _arg6:int=3, _arg7:int=32, _arg8:Boolean=false){
sprites = new Array();
super(_arg1, null, _arg3, _arg4, _arg5);
threshold = _arg6;
this.fontSize = _arg7;
var _local9:int;
while (_local9 < threshold) {
sprites[_local9] = new GameObject(_arg1, _arg2, _arg3, 0, 0);
_local9++;
};
displayText = new GameObject(_arg1, null, _arg3, _arg4, _arg5);
displayText.setText("x 3", _arg7);
displayText.baseHandleX = 0;
displayText.baseHandleY = 0;
if (_arg8){
displayText.baseHandleX = 1;
sprites.reverse();
};
var _local10:Layout = _arg1.horiz(sprites, -2, _arg4, _arg5);
var _local11:Number = (_arg4 + (_local10.width() / 2));
if (_arg8){
_local11 = (_arg4 - (_local10.width() / 2));
};
_arg1.horiz(sprites, -2, _local11, (_arg5 + (_local10.height() / 2)));
if (_arg8){
sprites.reverse();
};
if (_arg8){
displayText.basex = (sprites[0].basex - (sprites[0].baseWidth / 2));
} else {
displayText.basex = (sprites[0].basex + (sprites[0].baseWidth / 2));
};
}
override public function _remove():void{
var _local1:GameObject;
for each (_local1 in sprites) {
_local1.remove();
};
displayText.remove();
}
public function setValue(_arg1:int):void{
value = _arg1;
}
override public function _update():void{
var _local1:int;
_local1 = 0;
while (_local1 < threshold) {
sprites[_local1].isGlobal = isGlobal;
sprites[_local1].hide();
_local1++;
};
displayText.hide();
if ((((value > threshold)) || ((threshold == 1)))){
sprites[0].show();
displayText.show();
displayText.setText(("x " + value));
displayText.isGlobal = isGlobal;
} else {
_local1 = 0;
while (_local1 < value) {
sprites[_local1].show();
_local1++;
};
};
}
public function copyCurrentIcon():GameObject{
var _local1:GameObject = sprites[(value - 1)];
return (new GameObject(_local1.gs, _local1.imClass, _local1.zOrderString, _local1.basex, _local1.basey));
}
}
}//package Templates
Section 678
//PointOutObjects (Templates.PointOutObjects)
package Templates {
import GameScene.*;
import GameObject.*;
import Tools.*;
public class PointOutObjects {
public var timeToLast:int;// = 400
public var adjust:Function;
public var layer:String;
public var arrowImage:Class;
public var globalTicks:int;// = 0
public var overrideDirection:int;// = 0
public var staticText:GameObject;
public var globalKill:Function;
public var showOffScreenHint:Boolean;// = true
public var textImage:Class;
public var ticks:int;// = 0
public var staticArrow:GameObject;
public function PointOutObjects(_arg1:Class, _arg2:Class, _arg3:String){
textImage = _arg1;
arrowImage = _arg2;
layer = _arg3;
}
public function update(_arg1:Array, _arg2:Function=null, _arg3:Array=null):void{
var go:GameObject;
var text:GameObject;
var arrow:GameObject;
var objects = _arg1;
var removedFunc = _arg2;
var auxObjects = _arg3;
var addObject:Function = function (_arg1:Class, _arg2:Number, _arg3:Number, _arg4:Boolean=true):GameObject{
var _local5:GameObject = new GameObject(null, _arg1, layer, _arg2, _arg3);
_local5.helperFilter.fadeIn(20);
if (_arg4){
_local5.helperFilter.fadeOff(timeToLast, 20);
};
if (go){
_local5.helperFilter.fadeOffIfFalse(20, getRemoveFunc(go, removedFunc));
};
if (adjust){
adjust(_local5);
};
if (globalKill){
_local5.helperFilter.fadeOffIfFalse(20, globalKill);
};
if (go){
_local5.helperFilter.moveWith(go);
};
return (_local5);
};
var doTargetOffScreen:Function = function (_arg1:int):void{
};
var allObjectsOffScreen:Function = function ():int{
var _local2:Object;
var _local6:GameObject;
var _local7:Boolean;
var _local8:Boolean;
var _local1:Array = new Array();
for each (_local2 in objects) {
_local1.push(_local2);
};
for each (_local2 in auxObjects) {
_local1.push(_local2);
};
if (_local1.length == 0){
return (0);
};
var _local3:int;
var _local4:int;
var _local5:int;
for each (_local6 in _local1) {
_local7 = ((_local6.basex + (_local6.baseWidth / 2)) < _local6.gs.camX);
_local8 = ((_local6.basex - (_local6.baseWidth / 2)) > (_local6.gs.camX + 800));
if (_local7){
_local3++;
} else {
if (_local8){
_local4++;
} else {
_local5++;
};
};
};
if (_local5 > 0){
return (0);
};
if ((((_local4 > 0)) && ((_local3 > 0)))){
return (0);
};
if (_local4 > 0){
return (1);
};
return (-1);
};
if (GameScene.current().paused){
return;
};
if (ticks > 0){
ticks++;
};
globalTicks++;
var off:int = allObjectsOffScreen();
if (overrideDirection != 0){
off = overrideDirection;
};
if (globalTicks > 50){
if (showOffScreenHint){
if (off != 0){
if (!((staticArrow) || (staticText))){
staticText = addObject(textImage, (400 + (350 * off)), 300, false);
staticText.isGlobal = true;
staticArrow = addObject(arrowImage, (400 + (350 * off)), 320, false);
staticArrow.isGlobal = true;
staticArrow.baseRotation = (-(off) * 90);
staticArrow.helperFilter.sinDisplace(6, 0, 0.75);
};
} else {
if (((staticText) || (staticArrow))){
staticArrow.helperFilter.fadeOff(20);
staticText.helperFilter.fadeOff(20);
staticArrow = null;
staticText = null;
};
};
};
};
if ((ticks % (timeToLast + 100)) == 0){
go = getTargetObject(objects, removedFunc);
if (!go){
return;
};
text = addObject(textImage, go.basex, (go.basey - 80));
arrow = addObject(arrowImage, go.basex, (go.basey - 50));
arrow.helperFilter.sinDisplace(0, 6, 0.75);
ticks++;
};
}
public function getRemoveFunc(_arg1:GameObject, _arg2:Function){
var go = _arg1;
var removedFunc = _arg2;
return (function ():Boolean{
return (removedFunc(go));
});
}
public function getTargetObject(_arg1:Array, _arg2:Function=null):GameObject{
var _local3:Array = filterPossibilities(_arg1, _arg2);
if (_local3.length == 0){
return (null);
};
var _local4:GameObject = _local3[Random.randInt(0, (_local3.length - 1))];
return (_local4);
}
public function filterPossibilities(_arg1:Array, _arg2:Function):Array{
var objects = _arg1;
var removedFunc = _arg2;
var possibilities:Array = objects.filter(function (_arg1:Object, _arg2:int, _arg3:Array):Boolean{
return (GameObject(_arg1).helper.onScreen());
});
if (removedFunc){
possibilities = possibilities.filter(function (_arg1:Object, _arg2:int, _arg3:Array):Boolean{
return (!(removedFunc(_arg1)));
});
};
return (possibilities);
}
}
}//package Templates
Section 679
//RewardText (Templates.RewardText)
package Templates {
import GameScene.*;
import GameObject.*;
import Tools.*;
public class RewardText extends GameObject {
public function RewardText(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function createRewardText(_arg1:GameScene, _arg2:int, _arg3:int, _arg4:String="", _arg5:String="TextLayer", _arg6:int=-1, _arg7:Number=1, _arg8:int=0, _arg9:int=0):RewardText{
var _local10:RewardText;
var _local11:GameObjectFilterScaleInOut;
var _local13:Array;
if (_arg4 == ""){
_local13 = ["EXCELLENT!", "WELL DONE!", "GREAT!"];
_arg4 = _local13[Random.randInt(0, (_local13.length - 1))];
};
_local10 = new RewardText(_arg1, null, _arg5, _arg2, _arg3);
_local10.setText(_arg4, (36 * _arg7), _arg6);
_local11 = new GameObjectFilterScaleInOut();
_local11.ScaleIn = 1;
_local11.ScaleInStartX = 1.5;
_local11.ScaleInStartY = 0;
_local11.ScaleInDelay = _arg8;
_local11.ScaleInDuration = 25;
_local10.setGlobal(true);
_local10.addFilter(_local11);
var _local12:GameObjectFilterFadeInOut = new GameObjectFilterFadeInOut();
_local12.FadeOut = 1;
_local12.FadeOutTime = ((100 + _arg8) + _arg9);
_local12.FadeOutDuration = 50;
_local12.FadeOutKill = 1;
_local10.addFilter(_local12);
return (_local10);
}
}
}//package Templates
Section 680
//Score (Templates.Score)
package Templates {
import GameScene.*;
import GameObject.*;
public class Score extends GameObject {
public var score:String;
public var attached:GameObject;
public function Score(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function increaseScore(_arg1:int):void{
score = String((int(score) + _arg1));
setText(score);
}
public function getScore():int{
return (int(score));
}
public static function createScore(_arg1:String, _arg2:GameScene, _arg3:int, _arg4:int, _arg5:String="TextLayer"):Score{
var _local6:Score;
var _local7:GameObjectFilterScaleInOut;
_local6 = new Score(_arg2, null, _arg5, _arg3, (_arg4 - 24));
_local6.setText(_arg1, 24);
_local6.score = _arg1;
_local7 = new GameObjectFilterScaleInOut();
_local7.ScaleIn = 1;
_local7.ScaleInStartX = 1.5;
if (_local6.baseWidth > 100){
_local7.ScaleInStartX = 1.2;
};
_local7.ScaleInStartY = 0;
_local7.ScaleInDuration = 15;
_local6.addFilter(_local7);
var _local8:GameObjectFilterShift = new GameObjectFilterShift();
_local8.dy = -0.25;
_local6.addFilter(_local8);
var _local9:GameObjectFilterFadeInOut = new GameObjectFilterFadeInOut();
_local9.FadeOut = 1;
_local9.FadeOutTime = 100;
_local9.FadeOutDuration = 50;
_local9.FadeOutKill = 1;
_local6.addFilter(_local9);
return (_local6);
}
}
}//package Templates
Section 681
//Extern (Tools.Extern)
package Tools {
import flash.external.*;
public class Extern {
public static var messages:Array = new Array();
public static var _setup:Boolean = false;
public static function getMessage(_arg1:String):String{
var _local3:Array;
setup();
var _local2:int;
while (_local2 < messages.length) {
_local3 = messages[_local2].split(",", 2);
if (_local3[0] == _arg1){
messages = messages.splice(_local2, 1);
return (_local3[1]);
};
_local2++;
};
return ("");
}
public static function receive(_arg1:String):void{
messages.push(_arg1);
}
public static function callJavascript(_arg1:String, _arg2:String=""):String{
var o:Object;
var js = _arg1;
var args = _arg2;
try {
try {
o = ExternalInterface.call(js, args);
if ((o is String)){
return (String(o));
} else {
return ("");
};
} catch(err2:Error) {
return ("");
};
} catch(err:SecurityError) {
return ("");
};
return ("");
}
public static function setup():void{
if (!_setup){
return;
};
_setup = true;
ExternalInterface.addCallback("rsaGetText", receive);
}
public static function sendMessage(_arg1:String, _arg2:String=""):String{
setup();
return (callJavascript(_arg1, _arg2));
}
}
}//package Tools
Section 682
//GameTimer (Tools.GameTimer)
package Tools {
import flash.events.*;
import flash.utils.*;
public class GameTimer {
private var ticker:Timer;
private var func:Function;
public function GameTimer(_arg1:int, _arg2:Function){
ticker = new Timer(_arg1);
ticker.addEventListener(TimerEvent.TIMER, onTick);
func = _arg2;
ticker.start();
}
function onTick(_arg1:TimerEvent):void{
func();
}
}
}//package Tools
Section 683
//GraphicsTools (Tools.GraphicsTools)
package Tools {
import flash.display.*;
public class GraphicsTools {
public static function createFilledSprite(_arg1:int, _arg2:int, _arg3:int):Bitmap{
var _local4:BitmapData = new BitmapData(_arg1, _arg2, false, _arg3);
var _local5:Bitmap = new Bitmap(_local4);
return (_local5);
}
}
}//package Tools
Section 684
//GUILayer (Tools.GUILayer)
package Tools {
import GameObject.*;
import Layout.*;
public class GUILayer {
public var creation:Function;
public var elements:Array;
public var children:Array;
public function GUILayer(){
children = new Array();
super();
}
public function buttonHit(_arg1:String):Boolean{
var _local2:GUILayer;
var _local3:GameObject;
for each (_local2 in children) {
if (_local2.buttonHit(_arg1)){
return (true);
};
};
for each (_local3 in elements) {
if (_local3.name == _arg1){
return (_local3.mHit());
};
};
return (false);
}
public function flattenLayouts(_arg1:Array):Array{
var _local3:Object;
var _local4:Array;
var _local5:GameObject;
_arg1 = flattenArray(_arg1);
var _local2:Array = new Array();
for each (_local3 in _arg1) {
if ((_local3 is GameObject)){
_local2.push(_local3);
};
if ((_local3 is Layout)){
_local4 = Layout(_local3).getGameObjects();
for each (_local5 in _local4) {
_local2.push(_local5);
};
};
};
return (_local2);
}
public function getButton(_arg1:String):GameObject{
var _local2:GUILayer;
var _local3:GameObject;
for each (_local2 in children) {
_local3 = _local2.getButton(_arg1);
if (_local3){
return (_local3);
};
};
for each (_local3 in elements) {
if (_local3.name == _arg1){
return (_local3);
};
};
return (null);
}
public function pop():void{
var _local1:GUILayer = GUILayer(children.pop());
_local1.destroyElements();
var _local2:GUILayer = GUILayer(children[(children.length - 1)]);
if (_local2){
_local2.elements = flattenLayouts(_local2.creation());
};
}
public function flattenArray(_arg1:Array):Array{
var _local4:Array;
var _local5:int;
var _local2:Array = new Array();
var _local3:int;
while (_local3 < _arg1.length) {
if ((_arg1[_local3] is Array)){
_local4 = flattenArray(_arg1[_local3]);
_local5 = 0;
while (_local5 < _local4.length) {
_local2.push(_local4[_local5]);
_local5++;
};
} else {
_local2.push(_arg1[_local3]);
};
_local3++;
};
return (_local2);
}
public function destroyElements():void{
var _local1:GameObject;
var _local2:GameObjectFilter;
if (!elements){
return;
};
for each (_local1 in elements) {
for each (_local2 in _local1.filters) {
_local2.reverse();
_local2.removeWhenDone();
};
};
elements = new Array();
}
public function push(_arg1:Function, _arg2:Boolean=false):void{
if (children.length > 0){
children[(children.length - 1)].destroyElements();
};
if (_arg2){
children.pop();
};
var _local3:Array = flattenLayouts(_arg1());
var _local4:GUILayer = new GUILayer();
_local4.elements = _local3;
_local4.creation = _arg1;
children.push(_local4);
}
}
}//package Tools
Section 685
//HumanReadable (Tools.HumanReadable)
package Tools {
public class HumanReadable {
public static function combineSentences(_arg1:Array, _arg2:Boolean=true):String{
var _local3:Array = new Array();
var _local4:int;
while (_local4 < _arg1.length) {
if (_arg1[_local4] != ""){
_local3.push(_arg1[_local4]);
};
_local4++;
};
var _local5 = "";
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = (_local5 + _local3[_local4]);
if (_local4 != (_local3.length - 1)){
_local5 = (_local5 + ", ");
};
_local4++;
};
if (((_arg2) && ((_local3.length > 0)))){
_local5 = (_local5 + ".");
};
return (_local5);
}
public static function padInteger(_arg1:int, _arg2:int=8):String{
var _local3:String = String(_arg1);
while (_local3.length < _arg2) {
_local3 = ("0" + _local3);
};
return (_local3);
}
public static function splitIntoLines(_arg1:String, _arg2:String, _arg3:int, _arg4:int=-1):Array{
var _local9:int;
var _local5:Array = new Array();
if (_arg4 > 0){
_local9 = 0;
while (_local9 < _arg4) {
_local5[_local9] = "";
_local9++;
};
};
var _local6:Array = _arg1.split(_arg2);
var _local7:int;
var _local8:int;
_local9 = 0;
while (_local9 < _local6.length) {
_local8 = _local5[_local7].length;
if ((((_local8 > 0)) && ((((_local7 < _arg4)) || ((_arg4 == -1)))))){
if (((_local8 + _local6[_local9].length) + _local6.length) > _arg3){
_local8 = 0;
_local7++;
};
};
if (!(_local5[_local7] is String)){
_local5[_local7] = "";
};
_local5[_local7] = (_local5[_local7] + _local6[_local9]);
if (_local9 < (_local6.length - 1)){
_local5[_local7] = (_local5[_local7] + _arg2);
};
_local9++;
};
return (_local5);
}
public static function truncateFloat(_arg1:Number, _arg2:int=2):String{
var _local3:String = String(_arg1);
var _local4:String = _local3.split(".")[0];
var _local5:String = _local3.split(".")[1];
if (_local5){
if (_local5.length > 2){
_local5 = _local5.substr(0, 2);
};
};
var _local6:String = _local4;
if (_local5){
if (_local5.length > 0){
_local6 = (_local6 + ("." + _local5));
};
};
return (_local6);
}
public static function formatInteger(_arg1:int):String{
var _local2:String = String(_arg1);
var _local3 = "";
var _local4:int;
while (_local4 < _local2.length) {
_local3 = (_local2.substring(((_local2.length - _local4) - 1), (_local2.length - _local4)) + _local3);
if (((((_local4 % 3) == 2)) && ((_local4 < (_local2.length - 1))))){
_local3 = ("," + _local3);
};
_local4++;
};
return (_local3);
}
}
}//package Tools
Section 686
//Input (Tools.Input)
package Tools {
import flash.events.*;
import flash.display.*;
public class Input {
public var last:FocusEvent;
public var mouseButtonHit:int;// = 0
public var keyStatus:Array;
public var mousex:int;
public var mouseStatus:int;// = 0
public var mousey:int;
public var keysHit:Array;
public static var verboseInput:Boolean = false;
public static var i:Input;
public function Input(_arg1:DisplayObject){
keyStatus = new Array();
keysHit = new Array();
super();
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
_arg1.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
_arg1.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
_arg1.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
_arg1.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, focusOutHandler);
_arg1.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, focusOutHandler);
i = this;
}
public function mouseUpHandler(_arg1:MouseEvent):void{
mouseStatus = 0;
}
public function keyUpHandler(_arg1:KeyboardEvent):void{
keyStatus[_arg1.keyCode] = false;
}
public function mouseX():int{
return (mousex);
}
public function mouseMoveHandler(_arg1:MouseEvent):void{
mousex = _arg1.stageX;
mousey = _arg1.stageY;
}
public function focusOutHandler(_arg1:FocusEvent):void{
var _local2:int;
if (last){
if (_arg1.type == FocusEvent.FOCUS_OUT){
if (last.type != FocusEvent.MOUSE_FOCUS_CHANGE){
_local2 = 0;
while (_local2 < keyStatus.length) {
keyStatus[_local2] = false;
_local2++;
};
mouseStatus = 0;
};
};
};
last = _arg1;
}
public function keyDown(_arg1:int):int{
return (keyStatus[_arg1]);
}
public function mouseDownHandler(_arg1:MouseEvent):void{
mouseStatus = 1;
mouseButtonHit = 1;
}
public function mouseDown():int{
return (mouseStatus);
}
public function keyDownHandler(_arg1:KeyboardEvent):void{
if (keyStatus[_arg1.keyCode] != true){
keysHit[_arg1.keyCode] = true;
};
keyStatus[_arg1.keyCode] = true;
if (verboseInput){
trace(_arg1.keyCode);
};
}
public function keyHit(_arg1:int, _arg2:Boolean=true):int{
var _local3:int = keysHit[_arg1];
if (_arg2){
keysHit[_arg1] = false;
};
return (_local3);
}
public function mouseHit():int{
var _local1:int = mouseButtonHit;
mouseButtonHit = 0;
return (_local1);
}
public function mouseY():int{
return (mousey);
}
}
}//package Tools
Section 687
//Interpolation (Tools.Interpolation)
package Tools {
import flash.geom.*;
public class Interpolation {
public static function squareSquareInterpolateLock(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (squareSquareInterpolate(_arg1, _arg2, lockValue(_arg3, 0, 1)));
}
public static function distanceToAngle(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (_arg2 - _arg1);
while (abs((_arg2 - _arg1)) > 181) {
_arg2 = (_arg2 - (sgn((_arg2 - _arg1)) * 360));
};
return (abs((_arg2 - _arg1)));
}
public static function squareInterpolate(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return ((_arg1 + ((_arg2 - _arg1) * Math.pow(_arg3, 2))));
}
public static function fromTo(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (((_arg1 - _arg2) / (_arg3 - _arg2)));
}
public static function lockValue(_arg1:Number, _arg2:Number, _arg3:Number):Number{
if (_arg1 < _arg2){
return (_arg2);
};
if (_arg1 > _arg3){
return (_arg3);
};
return (_arg1);
}
public static function squareSquareInterpolate(_arg1:Number, _arg2:Number, _arg3:Number):Number{
_arg3 = (_arg3 * 2);
if (_arg3 < 1){
return ((_arg1 + (((_arg2 - _arg1) * Math.pow(_arg3, 2)) / 2)));
};
return ((_arg1 + (((_arg2 - _arg1) * (-(Math.pow((_arg3 - 2), 2)) + 2)) / 2)));
}
public static function sqrtInterpolate(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return ((_arg1 + ((_arg2 - _arg1) * Math.sqrt(_arg3))));
}
public static function lockValueInt(_arg1:int, _arg2:int, _arg3:int):int{
if (_arg1 < _arg2){
return (_arg2);
};
if (_arg1 > _arg3){
return (_arg3);
};
return (_arg1);
}
public static function dampenInterpolateLock(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (dampenInterpolate(_arg1, _arg2, lockValue(_arg3, 0, 1)));
}
public static function sqrtInterpolateLock(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (sqrtInterpolate(_arg1, _arg2, lockValue(_arg3, 0, 1)));
}
public static function flipAngleLeft(_arg1:Number):Number{
return ((_arg1 - 360));
}
public static function linearInterpolateLock(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (linearInterpolate(_arg1, _arg2, lockValue(_arg3, 0, 1)));
}
public static function squareInterpolateLock(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (squareInterpolate(_arg1, _arg2, lockValue(_arg3, 0, 1)));
}
public static function fromToLock(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (lockValue(fromTo(_arg1, _arg2, _arg3), 0, 1));
}
public static function abs(_arg1:Number):Number{
return (Math.abs(_arg1));
}
public static function tendTowards(_arg1:Number, _arg2:Number, _arg3:Number):Number{
if (Math.abs((_arg2 - _arg1)) < Math.abs(_arg3)){
return (_arg2);
};
if (_arg2 > _arg1){
return ((_arg1 + _arg3));
};
return ((_arg1 - _arg3));
}
public static function flipAngleRight(_arg1:Number):Number{
return ((_arg1 + 360));
}
public static function tendTowardsVector(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Point{
var _local6:Number = (_arg3 - _arg1);
var _local7:Number = (_arg4 - _arg2);
if ((((_local6 == 0)) && ((_local7 == 0)))){
return (new Point(_arg3, _arg4));
};
if (((_local6 * _local6) + (_local7 * _local7)) <= (_arg5 * _arg5)){
return (new Point(_arg3, _arg4));
};
var _local8:Number = Math.atan2(_local7, _local6);
var _local9:Number = (_arg1 + (Math.cos(_local8) * _arg5));
var _local10:Number = (_arg2 + (Math.sin(_local8) * _arg5));
return (new Point(_local9, _local10));
}
public static function directionToAngle(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (_arg2 - _arg1);
while (abs((_arg2 - _arg1)) > 181) {
_arg2 = (_arg2 - (sgn((_arg2 - _arg1)) * 360));
};
return (sgn((_arg2 - _arg1)));
}
public static function sgn(_arg1:Number):Number{
if (_arg1 < 0){
return (-1);
};
if (_arg1 == 0){
return (0);
};
return (1);
}
public static function linearInterpolate(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return ((_arg1 + ((_arg2 - _arg1) * _arg3)));
}
public static function tendTowardsAngle(_arg1:Number, _arg2:Number, _arg3:Number):Number{
var _local4:Number = (_arg2 - _arg1);
while (abs((_arg2 - _arg1)) > 181) {
_arg2 = (_arg2 - (sgn((_arg2 - _arg1)) * 360));
};
return (tendTowards(_arg1, _arg2, _arg3));
}
public static function dampenInterpolate(_arg1:Number, _arg2:Number, _arg3:Number):Number{
_arg3 = Math.sqrt(_arg3);
var _local4:Number = (1 - ((Math.sin(((15 * (Math.pow(_arg3, 2.5) - 5)) / Math.PI)) * Math.pow((1 - _arg3), 2)) / 0.95));
return ((_arg1 + (_local4 * (_arg2 - _arg1))));
}
}
}//package Tools
Section 688
//Logging (Tools.Logging)
package Tools {
import flash.events.*;
import flash.system.*;
import flash.net.*;
public class Logging {
public static var loggingEnabled:Boolean = false;
public static var allLoggingConnections:Array = new Array();
public static var lastRequest:URLStream;
private static function ioErrorHandler(_arg1:IOErrorEvent):void{
}
public static function Log(_arg1:String, _arg2:String, _arg3:String="", _arg4:String=""):void{
var gamename = _arg1;
var event = _arg2;
var extradata = _arg3;
var splittest = _arg4;
if (!loggingEnabled){
return;
};
if (Security.sandboxType != Security.REMOTE){
return;
};
splittest = SplitTest.splitTestName;
if (lastRequest){
if (lastRequest.bytesAvailable > 0){
lastRequest.close();
lastRequest = null;
};
};
Security.allowDomain("www.rocksolidarcade.com");
Security.allowInsecureDomain("www.rocksolidarcade.com");
var link = (((("http://www.rocksolidarcade.com/event2/" + gamename) + "/") + event) + "/");
if (splittest != ""){
if (extradata == ""){
extradata = "null";
};
link = (link + (((extradata + "/") + splittest) + "/"));
} else {
if (extradata != ""){
link = (link + (extradata + "/"));
};
};
lastRequest = new URLStream();
try {
lastRequest.load(new URLRequest(link));
lastRequest.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
lastRequest.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
} catch(error:Error) {
};
}
private static function securityErrorHandler(_arg1:SecurityErrorEvent):void{
}
}
}//package Tools
Section 689
//Net (Tools.Net)
package Tools {
import flash.net.*;
public class Net {
public static function openURL(_arg1:String):void{
navigateToURL(new URLRequest(_arg1));
}
public static function postURL(_arg1:String, _arg2:Array):void{
var _local5:Array;
var _local3:URLRequest = new URLRequest(_arg1);
_local3.method = URLRequestMethod.POST;
var _local4:URLVariables = new URLVariables();
for each (_local5 in _arg2) {
_local4[_local5[0]] = _local5[1];
};
_local3.data = _local4;
trace(_local3.method);
navigateToURL(_local3);
}
}
}//package Tools
Section 690
//Random (Tools.Random)
package Tools {
public class Random {
public static function randInt(_arg1:int, _arg2:int):int{
var _local3:Number = (Math.random() - 0.001);
var _local4:int = (_arg1 + int((_local3 * ((_arg2 - _arg1) + 1))));
return (_local4);
}
public static function randArrayElements(_arg1:Array, _arg2:int):Array{
var _local5:int;
var _local3:Array = new Array();
var _local4:Array = new Array();
if (_arg1.length < _arg2){
return (_arg1);
};
while (_local4.length < _arg2) {
_local5 = randInt(0, (_arg1.length - 1));
if (_local3[_local5] != 1){
_local4.push(_arg1[_local5]);
_local3[_local5] = 1;
};
};
return (_local4);
}
}
}//package Tools
Section 691
//SafeImageRequest (Tools.SafeImageRequest)
package Tools {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class SafeImageRequest {
public var finished:Boolean;// = false
public var finishFunc:Function;// = null
public var ldr:Loader;
public function SafeImageRequest(_arg1:String, _arg2:Function=null){
var url = _arg1;
var finish = _arg2;
super();
ldr = new Loader();
finishFunc = finish;
try {
ldr.load(new URLRequest(url));
ldr.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
} catch(err:Error) {
};
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
trace("security error");
}
public function ioErrorHandler(_arg1:IOErrorEvent):void{
trace("IO Error");
}
public function complete(_arg1:Event):void{
finished = true;
if (finishFunc != null){
finishFunc();
};
}
}
}//package Tools
Section 692
//SafeRequest (Tools.SafeRequest)
package Tools {
import flash.events.*;
import flash.net.*;
public class SafeRequest {
public var stream:URLStream;
public var data:String;// = ""
public var cancelled:Boolean;// = false
public var finished:Boolean;// = false
public var finishFunc:Function;// = null
public var req:URLRequest;
public function SafeRequest(_arg1:String, _arg2:Function=null){
var ur:URLRequest;
var url = _arg1;
var finish = _arg2;
super();
stream = new URLStream();
finishFunc = finish;
try {
ur = new URLRequest(url);
stream.load(ur);
stream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
stream.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
stream.addEventListener(Event.COMPLETE, complete);
} catch(error:Error) {
trace("Unable to load requested URL.");
};
}
public function ioErrorHandler(_arg1:IOErrorEvent):void{
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
}
public function complete(_arg1:Event):void{
if (cancelled){
return;
};
finished = true;
data = "";
while (stream.bytesAvailable > 0) {
data = (data + stream.readUTFBytes(1));
};
if (finishFunc != null){
finishFunc();
};
}
public function cancel():void{
cancelled = true;
}
}
}//package Tools
Section 693
//SoundPause (Tools.SoundPause)
package Tools {
import GameScene.*;
import flash.display.*;
import GameObject.*;
import Audio.*;
import GlobalSetup.*;
public class SoundPause {
public static var baseY:Number = 583;
public static var soundButton:GameObject;
public static var baseX:Number = 783;
public static var quitButton:GameObject;
public static var pauseButton:GameObject;
public static var musicButton:GameObject;
public static function createSoundPause(_arg1:GameScene, _arg2:Boolean=false):void{
musicButton = new GameObject(_arg1, SimpleButton, "GUILayer", baseX, baseY);
musicButton.setupButton(Embeds.icon_music_png, "", Embeds.icon_off_png);
musicButton.setGlobal(true);
musicButton.updateDespitePaused = true;
soundButton = new GameObject(_arg1, SimpleButton, "GUILayer", (baseX - (4 + 26)), baseY);
soundButton.setupButton(Embeds.icon_soundfx_png, "", Embeds.icon_off_png);
soundButton.setGlobal(true);
soundButton.updateDespitePaused = true;
if (GameSound.globalMusicVolume < 0.5){
musicButton.setButtonOn(true);
};
if (GameSound.globalSoundVolume < 0.5){
soundButton.setButtonOn(true);
};
if (_arg2){
pauseButton = new GameObject(_arg1, SimpleButton, "GUILayer", (baseX - (2 * (4 + 26))), baseY);
pauseButton.setupButton(Embeds.icon_pause_png, "", Embeds.icon_play_png);
pauseButton.setGlobal(true);
pauseButton.updateDespitePaused = true;
quitButton = new GameObject(_arg1, SimpleButton, "GUILayer", (baseX - (3 * (4 + 26))), baseY);
quitButton.setupButton(Embeds.icon_quit_png, "");
quitButton.setGlobal(true);
quitButton.updateDespitePaused = true;
} else {
pauseButton = null;
};
}
public static function updateSoundPause(_arg1:Object):void{
if (musicButton.buttonOn()){
GameSound.globalMusicVolume = 0;
} else {
GameSound.globalMusicVolume = 1;
};
if (soundButton.buttonOn()){
GameSound.globalSoundVolume = 0;
} else {
GameSound.globalSoundVolume = 1;
};
if (pauseButton){
if (((pauseButton.mHit()) || (Input.i.keyHit(80)))){
_arg1["paused"] = !(Boolean(_arg1["paused"]));
};
};
if (pauseButton){
pauseButton.setButtonOn(Boolean(_arg1["paused"]));
};
if (((soundButton.mHit()) || (musicButton.mHit()))){
var _local2 = _arg1;
_local2["_writePrefs"]();
};
if (quitButton){
if (quitButton.mHit()){
_local2 = _arg1;
_local2["quitHit"]();
};
};
if (pauseButton){
if (pauseButton.buttonOn()){
GameSound.globalSoundVolume = 0;
GameSound.globalMusicVolume = 0;
};
};
}
}
}//package Tools
Section 694
//SplitTest (Tools.SplitTest)
package Tools {
import flash.events.*;
import flash.system.*;
import flash.net.*;
public class SplitTest {
public var enabled:Boolean;// = false
public var thisname:String;
public var req:URLStream;
public static var fivelives:SplitTest;
public static var splitTestName:String;
public function SplitTest(_arg1:String){
var name = _arg1;
super();
if (Security.sandboxType != Security.REMOTE){
return;
};
thisname = name;
Security.allowDomain("www.rocksolidarcade.com");
Security.allowInsecureDomain("www.rocksolidarcade.com");
var link = "http://www.rocksolidarcade.com/test/";
req = new URLStream();
try {
req.load(new URLRequest(link));
req.addEventListener(Event.COMPLETE, finishload);
req.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
req.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
} catch(error:Error) {
};
}
public function finishload(_arg1:Event):void{
var _local2 = "";
while (req.bytesAvailable > 0) {
_local2 = (_local2 + req.readUTFBytes(1));
};
_local2 = _local2.toLowerCase();
if (_local2.indexOf(thisname) != -1){
splitTestName = thisname;
enabled = true;
} else {
splitTestName = ("!" + thisname);
};
}
public static function init():void{
}
private static function ioErrorHandler(_arg1:IOErrorEvent):void{
}
private static function securityErrorHandler(_arg1:SecurityErrorEvent):void{
}
}
}//package Tools
Section 695
//_activeButtonStyleStyle (_activeButtonStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _activeButtonStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".activeButtonStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
};
};
}
}
}//package
Section 696
//_activeTabStyleStyle (_activeTabStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _activeTabStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".activeTabStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "bold";
};
};
}
}
}//package
Section 697
//_alertButtonStyleStyle (_alertButtonStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _alertButtonStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".alertButtonStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.color = 734012;
};
};
}
}
}//package
Section 698
//_comboDropdownStyle (_comboDropdownStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _comboDropdownStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".comboDropdown", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.shadowDirection = "center";
this.fontWeight = "normal";
this.dropShadowEnabled = true;
this.leading = 0;
this.backgroundColor = 0xFFFFFF;
this.shadowDistance = 1;
this.cornerRadius = 0;
this.borderThickness = 0;
this.paddingLeft = 5;
this.paddingRight = 5;
};
};
}
}
}//package
Section 699
//_dataGridStylesStyle (_dataGridStylesStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _dataGridStylesStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".dataGridStyles", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "bold";
};
};
}
}
}//package
Section 700
//_dateFieldPopupStyle (_dateFieldPopupStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _dateFieldPopupStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".dateFieldPopup", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.dropShadowEnabled = true;
this.backgroundColor = 0xFFFFFF;
this.borderThickness = 0;
};
};
}
}
}//package
Section 701
//_errorTipStyle (_errorTipStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _errorTipStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".errorTip", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "bold";
this.borderStyle = "errorTipRight";
this.paddingTop = 4;
this.borderColor = 13510953;
this.color = 0xFFFFFF;
this.fontSize = 9;
this.shadowColor = 0;
this.paddingLeft = 4;
this.paddingBottom = 4;
this.paddingRight = 4;
};
};
}
}
}//package
Section 702
//_globalStyle (_globalStyle)
package {
import mx.core.*;
import mx.styles.*;
import mx.skins.halo.*;
public class _globalStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("global", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fillColor = 0xFFFFFF;
this.kerning = false;
this.iconColor = 0x111111;
this.textRollOverColor = 2831164;
this.horizontalAlign = "left";
this.shadowCapColor = 14015965;
this.backgroundAlpha = 1;
this.filled = true;
this.textDecoration = "none";
this.roundedBottomCorners = true;
this.fontThickness = 0;
this.focusBlendMode = "normal";
this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE];
this.horizontalGap = 8;
this.borderCapColor = 9542041;
this.buttonColor = 7305079;
this.indentation = 17;
this.selectionDisabledColor = 0xDDDDDD;
this.closeDuration = 250;
this.embedFonts = false;
this.paddingTop = 0;
this.letterSpacing = 0;
this.focusAlpha = 0.4;
this.bevel = true;
this.fontSize = 10;
this.shadowColor = 0xEEEEEE;
this.borderAlpha = 1;
this.paddingLeft = 0;
this.fontWeight = "normal";
this.indicatorGap = 14;
this.focusSkin = HaloFocusRect;
this.dropShadowEnabled = false;
this.leading = 2;
this.borderSkin = HaloBorder;
this.fontSharpness = 0;
this.modalTransparencyDuration = 100;
this.borderThickness = 1;
this.backgroundSize = "auto";
this.borderStyle = "inset";
this.borderColor = 12040892;
this.fontAntiAliasType = "advanced";
this.errorColor = 0xFF0000;
this.shadowDistance = 2;
this.horizontalGridLineColor = 0xF7F7F7;
this.stroked = false;
this.modalTransparencyColor = 0xDDDDDD;
this.cornerRadius = 0;
this.verticalAlign = "top";
this.textIndent = 0;
this.fillAlphas = [0.6, 0.4, 0.75, 0.65];
this.verticalGridLineColor = 14015965;
this.themeColor = 40447;
this.version = "3.0.0";
this.shadowDirection = "center";
this.modalTransparency = 0.5;
this.repeatInterval = 35;
this.openDuration = 250;
this.textAlign = "left";
this.fontFamily = "Verdana";
this.textSelectedColor = 2831164;
this.paddingBottom = 0;
this.strokeWidth = 1;
this.fontGridFitType = "pixel";
this.horizontalGridLines = false;
this.useRollOver = true;
this.verticalGridLines = true;
this.repeatDelay = 500;
this.fontStyle = "normal";
this.dropShadowColor = 0;
this.focusThickness = 2;
this.verticalGap = 6;
this.disabledColor = 11187123;
this.paddingRight = 0;
this.focusRoundedCorners = "tl tr bl br";
this.borderSides = "left top right bottom";
this.disabledIconColor = 0x999999;
this.modalTransparencyBlur = 3;
this.color = 734012;
this.selectionDuration = 250;
this.highlightAlphas = [0.3, 0];
};
};
}
}
}//package
Section 703
//_headerDateTextStyle (_headerDateTextStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _headerDateTextStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".headerDateText", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "bold";
this.textAlign = "center";
};
};
}
}
}//package
Section 704
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _headerDragProxyStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "bold";
};
};
}
}
}//package
Section 705
//_linkButtonStyleStyle (_linkButtonStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _linkButtonStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".linkButtonStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.paddingTop = 2;
this.paddingLeft = 2;
this.paddingBottom = 2;
this.paddingRight = 2;
};
};
}
}
}//package
Section 706
//_opaquePanelStyle (_opaquePanelStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _opaquePanelStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".opaquePanel", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.borderColor = 0xFFFFFF;
this.backgroundColor = 0xFFFFFF;
this.headerColors = [0xE7E7E7, 0xD9D9D9];
this.footerColors = [0xE7E7E7, 0xC7C7C7];
this.borderAlpha = 1;
};
};
}
}
}//package
Section 707
//_plainStyle (_plainStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _plainStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".plain", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.paddingTop = 0;
this.backgroundColor = 0xFFFFFF;
this.backgroundImage = "";
this.horizontalAlign = "left";
this.paddingLeft = 0;
this.paddingBottom = 0;
this.paddingRight = 0;
};
};
}
}
}//package
Section 708
//_popUpMenuStyle (_popUpMenuStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _popUpMenuStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".popUpMenu", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "normal";
this.textAlign = "left";
};
};
}
}
}//package
Section 709
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _richTextEditorTextAreaStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
};
};
}
}
}//package
Section 710
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _swatchPanelTextFieldStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.borderStyle = "inset";
this.borderColor = 14015965;
this.highlightColor = 12897484;
this.backgroundColor = 0xFFFFFF;
this.shadowCapColor = 14015965;
this.shadowColor = 14015965;
this.paddingLeft = 5;
this.buttonColor = 7305079;
this.borderCapColor = 9542041;
this.paddingRight = 5;
};
};
}
}
}//package
Section 711
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _textAreaHScrollBarStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
};
};
}
}
}//package
Section 712
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _textAreaVScrollBarStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
};
};
}
}
}//package
Section 713
//_todayStyleStyle (_todayStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _todayStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".todayStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.color = 0xFFFFFF;
this.textAlign = "center";
};
};
}
}
}//package
Section 714
//_weekDayStyleStyle (_weekDayStyleStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _weekDayStyleStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".weekDayStyle", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "bold";
this.textAlign = "center";
};
};
}
}
}//package
Section 715
//_windowStatusStyle (_windowStatusStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _windowStatusStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".windowStatus", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.color = 0x666666;
};
};
}
}
}//package
Section 716
//_windowStylesStyle (_windowStylesStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _windowStylesStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".windowStyles", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "bold";
};
};
}
}
}//package
Section 717
//en_US$core_properties (en_US$core_properties)
package {
import mx.resources.*;
public class en_US$core_properties extends ResourceBundle {
public function en_US$core_properties(){
super("en_US", "core");
}
override protected function getContent():Object{
var _local1:Object = {multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).", truncationIndicator:"...", notExecuting:"Repeater is not executing.", versionAlreadyRead:"Compatibility version has already been read.", multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).", viewSource:"View Source", badFile:"File does not exist.", stateUndefined:"Undefined state '{0}'.", versionAlreadySet:"Compatibility version has already been set."};
return (_local1);
}
}
}//package
Section 718
//en_US$skins_properties (en_US$skins_properties)
package {
import mx.resources.*;
public class en_US$skins_properties extends ResourceBundle {
public function en_US$skins_properties(){
super("en_US", "skins");
}
override protected function getContent():Object{
var _local1:Object = {notLoaded:"Unable to load '{0}'."};
return (_local1);
}
}
}//package
Section 719
//en_US$styles_properties (en_US$styles_properties)
package {
import mx.resources.*;
public class en_US$styles_properties extends ResourceBundle {
public function en_US$styles_properties(){
super("en_US", "styles");
}
override protected function getContent():Object{
var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."};
return (_local1);
}
}
}//package
Section 720
//Main (Main)
package {
import GameScene.*;
import flash.display.*;
import flash.text.*;
import Tools.*;
import GameConfig.*;
public class Main extends Sprite {
public var arialBlah:Class;
public var mainFont:Class;
public var i:Input;
public var gt:GameTimer;
public static var gss:GameSceneStack = new GameSceneStack();
public function Main():void{
mainFont = Main_mainFont;
arialBlah = Main_arialBlah;
super();
Font.registerFont(mainFont);
Font.registerFont(arialBlah);
gt = new GameTimer(10, __update);
gss.mainSprite = this;
var _local1:Class = GameConfig.startClass;
gss.pushScene(new (_local1));
}
public function __update():void{
gss.update();
}
}
}//package
Section 721
//Main_arialBlah (Main_arialBlah)
package {
import mx.core.*;
public class Main_arialBlah extends FontAsset {
}
}//package
Section 722
//Main_mainFont (Main_mainFont)
package {
import mx.core.*;
public class Main_mainFont extends FontAsset {
}
}//package
Section 723
//Sounds (Sounds)
package {
import Audio.*;
public class Sounds {
public static var aaGun:GameSound = GameSound.forEmbed(aaGun_embed, 0.360000014, 0);
public static var shot_1_embed:Class = Sounds_shot_1_embed;
public static var shot_3_embed:Class = Sounds_shot_3_embed;
public static var planeFalling:GameSound = GameSound.forEmbed(planeFalling_embed, 1, 0);
public static var airRaidSiren_embed:Class = Sounds_airRaidSiren_embed;
public static var hit:GameSound = GameSound.forEmbedArray(hit_embed, 0.200000003, 0);
public static var mainLoop_embed:Class = Sounds_mainLoop_embed;
public static var enemyGun:GameSound = GameSound.forEmbedArray(enemyGun_embed, 0.5, 0);
public static var aceTactic:GameSound = GameSound.forEmbed(aceTactic_embed, 1, 0);
public static var hit_1_embed:Class = Sounds_hit_1_embed;
public static var enemyGun_1_embed:Class = Sounds_enemyGun_1_embed;
public static var planeFalling_embed:Class = Sounds_planeFalling_embed;
public static var planeIdle_embed:Class = Sounds_planeIdle_embed;
public static var planeCrash:GameSound = GameSound.forEmbed(planeCrash_embed, 1, 0);
public static var hit_embed:Array = [hit_1_embed, hit_2_embed];
public static var mainLoop3_embed:Class = Sounds_mainLoop3_embed;
public static var bombDrop:GameSound = GameSound.forEmbed(bombDrop_embed, 0.699999988, 0);
public static var aceTactic_embed:Class = Sounds_aceTactic_embed;
public static var jam:GameSound = GameSound.forEmbed(jam_embed, 0.300000012, 0);
public static var aceGun:GameSound = GameSound.forEmbedArray(aceGun_embed, 0.360000014, 0);
public static var planeCrash_embed:Class = Sounds_planeCrash_embed;
public static var shot_2_embed:Class = Sounds_shot_2_embed;
public static var aceGun_1_embed:Class = Sounds_aceGun_1_embed;
public static var bombDrop_embed:Class = Sounds_bombDrop_embed;
public static var smallGun_1_embed:Class = Sounds_smallGun_1_embed;
public static var planeIdle:GameSound = GameSound.forEmbed(planeIdle_embed, 0.100000001, 0);
public static var zepExplosion_embed:Class = Sounds_zepExplosion_embed;
public static var smallGun_embed:Array = [smallGun_1_embed];
public static var mainLoop2:GameSound = GameSound.forEmbed(mainLoop2_embed, 0.25, 0);
public static var aceGun_embed:Array = [aceGun_1_embed];
public static var shot_embed:Array = [shot_1_embed, shot_2_embed, shot_3_embed];
public static var levelComplete:GameSound = GameSound.forEmbed(levelComplete_embed, 0.400000006, 0);
public static var hit_2_embed:Class = Sounds_hit_2_embed;
public static var aaGun_embed:Class = Sounds_aaGun_embed;
public static var mainLoop3:GameSound = GameSound.forEmbed(mainLoop3_embed, 0.25, 0);
public static var smallGun:GameSound = GameSound.forEmbedArray(smallGun_embed, 0.300000012, 0);
public static var zepExplosion:GameSound = GameSound.forEmbed(zepExplosion_embed, 0.5, 0);
public static var airRaidSiren:GameSound = GameSound.forEmbed(airRaidSiren_embed, 0.5, 0);
public static var enemyGun_embed:Array = [enemyGun_1_embed];
public static var mainLoop2_embed:Class = Sounds_mainLoop2_embed;
public static var levelComplete_embed:Class = Sounds_levelComplete_embed;
public static var shot:GameSound = GameSound.forEmbedArray(shot_embed, 0.5, 0);
public static var mainLoop:GameSound = GameSound.forEmbed(mainLoop_embed, 0.25, 0);
public static var jam_embed:Class = Sounds_jam_embed;
}
}//package
Section 724
//Sounds_aaGun_embed (Sounds_aaGun_embed)
package {
import mx.core.*;
public class Sounds_aaGun_embed extends SoundAsset {
}
}//package
Section 725
//Sounds_aceGun_1_embed (Sounds_aceGun_1_embed)
package {
import mx.core.*;
public class Sounds_aceGun_1_embed extends SoundAsset {
}
}//package
Section 726
//Sounds_aceTactic_embed (Sounds_aceTactic_embed)
package {
import mx.core.*;
public class Sounds_aceTactic_embed extends SoundAsset {
}
}//package
Section 727
//Sounds_airRaidSiren_embed (Sounds_airRaidSiren_embed)
package {
import mx.core.*;
public class Sounds_airRaidSiren_embed extends SoundAsset {
}
}//package
Section 728
//Sounds_bombDrop_embed (Sounds_bombDrop_embed)
package {
import mx.core.*;
public class Sounds_bombDrop_embed extends SoundAsset {
}
}//package
Section 729
//Sounds_enemyGun_1_embed (Sounds_enemyGun_1_embed)
package {
import mx.core.*;
public class Sounds_enemyGun_1_embed extends SoundAsset {
}
}//package
Section 730
//Sounds_hit_1_embed (Sounds_hit_1_embed)
package {
import mx.core.*;
public class Sounds_hit_1_embed extends SoundAsset {
}
}//package
Section 731
//Sounds_hit_2_embed (Sounds_hit_2_embed)
package {
import mx.core.*;
public class Sounds_hit_2_embed extends SoundAsset {
}
}//package
Section 732
//Sounds_jam_embed (Sounds_jam_embed)
package {
import mx.core.*;
public class Sounds_jam_embed extends SoundAsset {
}
}//package
Section 733
//Sounds_levelComplete_embed (Sounds_levelComplete_embed)
package {
import mx.core.*;
public class Sounds_levelComplete_embed extends SoundAsset {
}
}//package
Section 734
//Sounds_mainLoop_embed (Sounds_mainLoop_embed)
package {
import mx.core.*;
public class Sounds_mainLoop_embed extends SoundAsset {
}
}//package
Section 735
//Sounds_mainLoop2_embed (Sounds_mainLoop2_embed)
package {
import mx.core.*;
public class Sounds_mainLoop2_embed extends SoundAsset {
}
}//package
Section 736
//Sounds_mainLoop3_embed (Sounds_mainLoop3_embed)
package {
import mx.core.*;
public class Sounds_mainLoop3_embed extends SoundAsset {
}
}//package
Section 737
//Sounds_planeCrash_embed (Sounds_planeCrash_embed)
package {
import mx.core.*;
public class Sounds_planeCrash_embed extends SoundAsset {
}
}//package
Section 738
//Sounds_planeFalling_embed (Sounds_planeFalling_embed)
package {
import mx.core.*;
public class Sounds_planeFalling_embed extends SoundAsset {
}
}//package
Section 739
//Sounds_planeIdle_embed (Sounds_planeIdle_embed)
package {
import mx.core.*;
public class Sounds_planeIdle_embed extends SoundAsset {
}
}//package
Section 740
//Sounds_shot_1_embed (Sounds_shot_1_embed)
package {
import mx.core.*;
public class Sounds_shot_1_embed extends SoundAsset {
}
}//package
Section 741
//Sounds_shot_2_embed (Sounds_shot_2_embed)
package {
import mx.core.*;
public class Sounds_shot_2_embed extends SoundAsset {
}
}//package
Section 742
//Sounds_shot_3_embed (Sounds_shot_3_embed)
package {
import mx.core.*;
public class Sounds_shot_3_embed extends SoundAsset {
}
}//package
Section 743
//Sounds_smallGun_1_embed (Sounds_smallGun_1_embed)
package {
import mx.core.*;
public class Sounds_smallGun_1_embed extends SoundAsset {
}
}//package
Section 744
//Sounds_zepExplosion_embed (Sounds_zepExplosion_embed)
package {
import mx.core.*;
public class Sounds_zepExplosion_embed extends SoundAsset {
}
}//package