STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229494
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2575 · P5149

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/89244518?noj=FRM89244518-14DC" width="1" height="1"></div>

Dogfight- The Great War.swf

This is the info page for
Flash #40695

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS3]
Section 1
//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 (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 2
//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 3
//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 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 4
//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 5
//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 6
//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 7
//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 8
//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 9
//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 = _local16.CreateProxy(_local7, _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 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 10
//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 11
//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 12
//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 13
//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 14
//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 15
//b2BufferedPair (Engine.Collision.b2BufferedPair) package Engine.Collision { public class b2BufferedPair { public var proxyId1:uint; public var proxyId2:uint; } }//package Engine.Collision
Section 16
//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; private static var b2CollidePolyTempVec:b2Vec2 = new b2Vec2(); public static function EdgeSeparation(_arg1:b2PolyShape, _arg2:int, _arg3:b2PolyShape):Number{ var _local25:b2Vec2; var _local26:Number; var _local4:int = _arg1.m_vertexCount; var _local5:Array = _arg1.m_vertices; var _local6:int = _arg3.m_vertexCount; var _local7:Array = _arg3.m_vertices; var _local8:int = _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); var _local14:Number = _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) { _local25 = _local7[_local21]; _local26 = ((_local25.x * _local17) + (_local25.y * _local18)); if (_local26 < _local20){ _local20 = _local26; _local19 = _local21; }; _local21++; }; var _local22:b2Vec2 = new b2Vec2(); _local22.SetV(_local5[_local8]); _local22.MulM(_arg1.m_R); _local22.Add(_arg1.m_position); var _local23:b2Vec2 = new b2Vec2(); _local23.SetV(_local7[_local19]); _local23.MulM(_arg3.m_R); _local23.Add(_arg3.m_position); _local23.Subtract(_local22); var _local24:Number = ((_local23.x * _local14) + (_local23.y * _local15)); return (_local24); } 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 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 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 FindMaxSeparation(_arg1:Array, _arg2:b2PolyShape, _arg3:b2PolyShape):Number{ var _local15:int; var _local16:Number; var _local17:int; var _local18:Number; var _local19:int; var _local20:Number; var _local4:int = _arg2.m_vertexCount; var _local5:Array = _arg2.m_vertices; var _local6:b2Vec2 = new b2Vec2(); _local6.SetV(_arg3.m_position); _local6.Subtract(_arg2.m_position); var _local7:b2Vec2 = new b2Vec2(); _local7.SetV(_local6); _local7.MulTM(_arg2.m_R); var _local8:int; var _local9:Number = -(Number.MAX_VALUE); var _local10:int; while (_local10 < _local4) { _local18 = b2Math.b2Dot(_local5[_local10], _local7); if (_local18 > _local9){ _local9 = _local18; _local8 = _local10; }; _local10++; }; var _local11:int = (((_local8 - 1) >= 0)) ? (_local8 - 1) : (_local4 - 1); var _local12:Number = EdgeSeparation(_arg2, _local11, _arg3); if (_local12 > 0){ return (_local12); }; var _local13:int = _local8; var _local14:Number = EdgeSeparation(_arg2, _local13, _arg3); if (_local14 > 0){ return (_local14); }; if (_local12 > _local14){ _local17 = -1; _local15 = _local11; _local16 = _local12; } else { _local17 = 1; _local15 = _local13; _local16 = _local14; }; while (true) { if (_local17 == -1){ _local19 = (((_local15 - 1) >= 0)) ? (_local15 - 1) : (_local4 - 1); } else { _local19 = (((_local15 + 1) < _local4)) ? (_local15 + 1) : 0; }; _local20 = EdgeSeparation(_arg2, _local19, _arg3); if (_local20 > 0){ return (_local20); }; if (_local20 > _local16){ _local15 = _local19; _local16 = _local20; } else { break; }; }; _arg1[0] = _local15; return (_local16); } 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 17
//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 18
//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 19
//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 20
//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 21
//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 22
//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 23
//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 24
//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 25
//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 26
//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 27
//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 28
//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 29
//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 30
//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 31
//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 32
//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 33
//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 34
//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 35
//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 36
//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 37
//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 38
//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 39
//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 40
//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 41
//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 42
//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 43
//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 44
//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 45
//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 46
//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 47
//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 48
//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 49
//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 50
//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 51
//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 52
//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 53
//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 54
//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 55
//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 56
//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 57
//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 58
//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 59
//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 60
//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 61
//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 62
//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 63
//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 64
//GameConfig (GameConfig.GameConfig) package GameConfig { import Scenes.*; public class GameConfig { public static var shortName:String = "dogfight"; public static var nagEnabled:Boolean = true; 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 65
//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 _toRemove:Boolean;// = false public var tformFromParent:Boolean;// = true 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 isInputMaxLength:int;// = -1 public var name:String; public var disabled:Boolean;// = false public var selectGlow:Number;// = 1 public var parent:GameObject; public var particles:Array; public var imClass:Class; public var animSpeed:Number;// = 0 public var oldstr:String;// = "oldstrdefaultvalue" public var isInput:Boolean;// = false public var oldRotation:Number; 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 imageSet:Array; public var baseAlpha:Number;// = 1 public var gs:GameScene; 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 oldAlpha:Number; public var fontName:String; public var defaultCol:int; public var buttonBitmapDataOn:BitmapData; public var showButtonOnOutline:Boolean;// = false public var defaultTextNum:int;// = 48 public var buttonTextOffsetX:Number;// = 0 public var hidden:Boolean;// = false public var helper:GameObjectHelper; 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 filters:Array; 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; filters = new Array(); particles = new Array(); conditionalParticles = new Array(); children = new Array(); randTicks = Random.randInt(0, 1000); fontName = GameConfig.fontName; super(); helper = new GameObjectHelper(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; 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 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 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); }; return (collision.collidesWith(_arg1.collision)); } public function syncObj():void{ var _local5:Point; if (justCreated){ modifiedRotation = baseRotation; modifiedx = basex; modifiedy = basey; modifiedScaleX = baseScaleX; modifiedScaleY = baseScaleY; }; if (parent){ if (tformFromParent){ _local5 = parent.tformed(modifiedx, modifiedy); modifiedx = _local5.x; modifiedy = _local5.y; modifiedScaleX = (modifiedScaleX * parent.modifiedScaleX); modifiedScaleY = (modifiedScaleY * parent.modifiedScaleY); } else { modifiedx = (modifiedx + parent.modifiedx); modifiedy = (modifiedy + parent.modifiedy); }; modifiedAlpha = (modifiedAlpha * parent.modifiedAlpha); }; var _local1:Number = modifiedx; var _local2:Number = modifiedy; if (parent){ }; if (!isGlobal){ _local1 = (_local1 - (gs.camX * dampenOrigin)); _local2 = (_local2 - (gs.camY * dampenOrigin)); }; var _local3:Number = (_local1 - ((cosd(-(modifiedRotation)) * int(((baseWidth * baseHandleX) * modifiedScaleX))) + (sind(-(modifiedRotation)) * int(((baseHeight * baseHandleY) * modifiedScaleY))))); var _local4:Number = (_local2 - ((-(sind(-(modifiedRotation))) * int(((baseWidth * baseHandleX) * modifiedScaleX))) + (cosd(-(modifiedRotation)) * int(((baseHeight * baseHandleY) * modifiedScaleY))))); if (parent){ }; obj.x = _local3; obj.y = _local4; if (((_local3 + (baseWidth * Math.abs(modifiedScaleX))) + 20) < 0){ obj.visible = false; if (collision){ collision.synchronize(this); }; return; } else { if (((_local3 - (baseWidth * Math.abs(modifiedScaleX))) - 20) > 800){ if (collision){ collision.synchronize(this); }; obj.visible = false; return; } else { 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; }; if (collision){ collision.synchronize(this); }; } 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); baseWidth = _local1.textWidth; baseHeight = _local1.textHeight; } public function pushAlpha(_arg1:Number):void{ modifiedAlpha = (modifiedAlpha * _arg1); } 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 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); }; } 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 ((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.autoSize = TextFieldAutoSize.LEFT; _local4.embedFonts = true; if (_arg1.indexOf("<b>") != -1){ _local4.htmlText = _arg1; } else { _local4.text = _arg1; }; syncText(); _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)); }; _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(); ticks++; randTicks++; justCreated = false; modifiedRotation = baseRotation; 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{ if (Input.i.mouseX() > (basex - (baseWidth / 2))){ if (Input.i.mouseX() < (basex + (baseWidth / 2))){ if (Input.i.mouseY() > (basey - (baseHeight / 2))){ if (Input.i.mouseY() < (basey + (baseHeight / 2))){ 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 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 show():void{ hidden = false; } public function tint(_arg1:Number, _arg2:Number, _arg3:Number):void{ tintClip(obj, _arg1, _arg2, _arg3); } 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; _arg1.x = _arg2; _arg1.y = _arg3; _arg1.scaleX = _arg5; _arg1.scaleY = _arg6; _arg1.rotation = _arg4; _local8.draw(_arg1, _arg1.transform.matrix, null, _arg7); } 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; _on = _arg1; if (_on){ _local2 = buttonBitmapDataOn; } else { _local2 = buttonBitmapDataOff; }; var _local3:SimpleButton = SimpleButton(obj); Bitmap(_local3.upState).bitmapData = _local2; Bitmap(_local3.downState).bitmapData = _local2; Bitmap(_local3.overState).bitmapData = _local2; if (showButtonOnOutline){ if (_on){ obj.filters = [new GlowFilter(0xFFCD00, selectGlow, 12, 12, 3)]; } else { obj.filters = new Array(); }; }; } 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{ return (tformed(_arg1, _arg2).x); } public function tformedY(_arg1:Number, _arg2:Number):Number{ return (tformed(_arg1, _arg2).y); } 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 _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); _local12.applyFilter(Bitmap(_local11).bitmapData, 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:int, _arg2:int, _arg3:Array):void{ var _local4:Number = (Number(_arg1) / Number(_arg2)); var _local5:int = (_local4 * _arg3.length); if (_local5 < 0){ _local5 = 0; }; if (_local5 > (_arg3.length - 1)){ _local5 = (_arg3.length - 1); }; Bitmap(obj).bitmapData = _arg3[_local5]; } 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 tformed(_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 mHit():Boolean{ var _local1:Boolean = _mHasHit; _mHasHit = false; return (_local1); } public function _update():void{ } public function _init():void{ } } }//package GameObject
Section 66
//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 body:b2Body; public var bodydef:b2BodyDef; public var children:Array; public var approxRadius:Number; public var approxX:Number; public var type:int;// = 0 public var approxY:Number; public static var world:b2World; public function GameObjectCollision(){ var _local1:b2AABB; var _local2:b2Vec2; var _local3:Boolean; children = new Array(); 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 synchronize(_arg1:GameObject):void{ var _local2:b2Shape = body.m_shapeList; var _local3:Number = ((_arg1.baseRotation / 180) * Math.PI); body.m_flags = (body.m_flags & ~(b2Body.e_frozenFlag)); body.SetOriginPosition(new b2Vec2(_arg1.basex, _arg1.basey), _local3); body.SynchronizeShapes(); var _local4:int; while (_local4 < body.m_shapeCount) { children[_local4].tformedX = (((Math.cos(-(_local3)) * children[_local4].approxX) + (Math.sin(-(_local3)) * children[_local4].approxY)) + _arg1.basex); children[_local4].tformedY = (((-(Math.sin(-(_local3))) * children[_local4].approxX) + (Math.cos(-(_local3)) * children[_local4].approxY)) + _arg1.basey); _local2 = _local2.m_next; _local4++; }; } public function finalize():void{ body = new b2Body(bodydef, world); } public function collidesWith(_arg1:GameObjectCollision):Boolean{ var _local5:b2Shape; var _local6:int; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Boolean; var _local12:b2Manifold; var _local2:b2Shape = body.m_shapeList; var _local3:int; var _local4:int = (body.m_shapeCount - 1); while (_local4 >= 0) { _local5 = _arg1.body.m_shapeList; _local6 = (_arg1.body.m_shapeCount - 1); while (_local6 >= 0) { _local7 = (children[_local4].tformedX - _arg1.children[_local6].tformedX); _local8 = (children[_local4].tformedY - _arg1.children[_local6].tformedY); _local9 = ((_local7 * _local7) + (_local8 * _local8)); _local10 = (children[_local4].approxRadius + _arg1.children[_local6].approxRadius); _local11 = false; if (_local9 < (_local10 * _local10)){ _local11 = true; }; if (_local11){ _local12 = new b2Manifold(); b2Collision.b2CollidePoly(_local12, b2PolyShape(_local2), b2PolyShape(_local5)); if (_local12.points[0].separation < 9999999){ return (true); }; }; _local5 = _local5.m_next; _local6--; }; _local2 = _local2.m_next; _local4--; }; return (false); } } }//package GameObject
Section 67
//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 68
//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 69
//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 70
//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 71
//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 72
//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 73
//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 74
//GameObjectFilterRepeats (GameObject.GameObjectFilterRepeats) package GameObject { 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:GameObjectFilterStayOnScreen; var _local4:int; var _local5:GameObject; var _local6:GameObjectFilter; var _local7:GameObjectFilterDampenOrigin; if (!created){ _local2 = ((800 / _arg1.baseWidth) + 2); _local3 = new GameObjectFilterStayOnScreen(); _local3.multiplier = _local2; _local4 = 0; while (_local4 < _local2) { _local5 = new GameObject(_arg1.gs, _arg1.imClass, _arg1.zOrderString, (_arg1.basex + (_local4 * _arg1.baseWidth)), _arg1.basey); _local5.addFilter(_local3); others.push(_local5); for each (_local6 in _arg1.filters) { if ((_local6 is GameObjectFilterDampenOrigin)){ _local7 = new GameObjectFilterDampenOrigin(); _local7.factor = GameObjectFilterDampenOrigin(_local6).factor; _local5.addFilter(_local7); }; }; _local4++; }; _arg1.addFilter(_local3); created = true; }; } } }//package GameObject
Section 75
//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 76
//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 77
//GameObjectHelper (GameObject.GameObjectHelper) package GameObject { import flash.display.*; import Tools.*; public class GameObjectHelper { public var removed:Boolean;// = false public var backing:GameObject; public var conditionalChildren:Object; public var go:GameObject; public var childrenFadeData:Object; public var _lazyLoad:SafeImageRequest; public function GameObjectHelper(_arg1:GameObject){ conditionalChildren = new Object(); childrenFadeData = new Object(); super(); this.go = _arg1; } public function addBacking():void{ backing = new GameObject(go.gs, GraphicsTools.createFilledSprite(800, 600, 4278190080), go.zOrderString, 400, 300); backing.baseAlpha = 0.4; go.changeZOrder(go.zOrderString); } public function update():void{ var _local1:GameObjectFilter; 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)){ backing.baseAlpha = (GameObjectFilterSqrtInterpolateIn(_local1).progress() * 0.4); }; }; }; } 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 handleRemove():void{ var _local1:Object; removed = true; if (backing){ backing.remove(); }; for each (_local1 in conditionalChildren) { if ((_local1 is GameObject)){ GameObject(_local1).remove(); }; }; } 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 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 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 showChildren():void{ var _local1:GameObject; for each (_local1 in go.children) { _local1.show(); }; } public function hideChildren():void{ var _local1:GameObject; for each (_local1 in go.children) { _local1.hide(); }; } public function conditionallyCreateChild(_arg1:Object, _arg2:String, _arg3:Boolean, _arg4:Number=0.05):GameObject{ if (removed){ return (null); }; var _local5:GameObject = conditionalChildren[_arg2]; if (!_local5){ if (_arg3){ if ((_arg1 is Function)){ _local5 = GameObject(_arg1()); } else { _local5 = new GameObject(go.gs, _arg1, go.zOrderString, go.basex, go.basey); }; conditionalChildren[_arg2] = _local5; _local5.baseAlpha = 0; }; }; if (_local5){ if (_arg3){ _local5.baseAlpha = (_local5.baseAlpha + _arg4); } else { _local5.baseAlpha = (_local5.baseAlpha - _arg4); }; _local5.baseAlpha = Interpolation.lockValue(_local5.baseAlpha, 0, 1); if (((!(_arg3)) && ((_local5.baseAlpha == 0)))){ _local5.remove(); conditionalChildren[_arg2] = null; }; }; return (_local5); } public function stripChildren():void{ var _local1:GameObject; for each (_local1 in go.children) { _local1.remove(); }; } 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 containsFilter(_arg1:Class):Boolean{ var _local2:GameObjectFilter; for each (_local2 in go.filters) { if ((_local2 is _arg1)){ return (true); }; }; return (false); } } }//package GameObject
Section 78
//GameScene (GameScene.GameScene) package GameScene { import flash.display.*; 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 currentindex:int = 0; public static var currentScene:GameScene; 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 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); } 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 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 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(); }; }; var nc:GameSceneCamera = 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.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 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 mousey():int{ return (i.mouseY()); } 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 79
//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 80
//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 81
//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 (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 82
//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 83
//Embeds (GlobalSetup.Embeds) package GlobalSetup { public class Embeds { public static var p2_roll003_png:Class = Embeds_p2_roll003_png; public static var p1_roll006_png:Class = Embeds_p1_roll006_png; public static var ace_e_roll013_png:Class = Embeds_ace_e_roll013_png; public static var smoke_a013_png:Class = Embeds_smoke_a013_png; public static var smoke_d007_png:Class = Embeds_smoke_d007_png; public static var aa_gunner002_png:Class = Embeds_aa_gunner002_png; public static var bush_1_png:Class = Embeds_bush_1_png; public static var ace_g_roll015_png:Class = Embeds_ace_g_roll015_png; public static var cloud1_png:Class = Embeds_cloud1_png; public static var p2_roll014_png:Class = Embeds_p2_roll014_png; public static var smoke_d010_png:Class = Embeds_smoke_d010_png; public static var ace_e_roll024_png:Class = Embeds_ace_e_roll024_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 scenery3_png:Class = Embeds_scenery3_png; public static var p1_roll017_png:Class = Embeds_p1_roll017_png; public static var icon_pause_png:Class = Embeds_icon_pause_png; public static var tree1_png:Class = Embeds_tree1_png; public static var p2_roll025_png:Class = Embeds_p2_roll025_png; public static var p1_roll020_png:Class = Embeds_p1_roll020_png; public static var p1_roll028_png:Class = Embeds_p1_roll028_png; public static var smoke_c016_png:Class = Embeds_smoke_c016_png; public static var icon_soundfx_png:Class = Embeds_icon_soundfx_png; public static var p1_roll031_png:Class = Embeds_p1_roll031_png; public static var gunner005_png:Class = Embeds_gunner005_png; public static var ace_e_roll001_png:Class = Embeds_ace_e_roll001_png; public static var smoke_a001_png:Class = Embeds_smoke_a001_png; public static var ace_g_roll003_png:Class = Embeds_ace_g_roll003_png; public static var ace_e_roll009_png:Class = Embeds_ace_e_roll009_png; public static var smoke_a009_png:Class = Embeds_smoke_a009_png; public static var plane_prop002_png:Class = Embeds_plane_prop002_png; public static var p2_roll002_png:Class = Embeds_p2_roll002_png; public static var p1_roll005_png:Class = Embeds_p1_roll005_png; public static var ace_e_roll012_png:Class = Embeds_ace_e_roll012_png; public static var smoke_a012_png:Class = Embeds_smoke_a012_png; public static var smoke_d006_png:Class = Embeds_smoke_d006_png; public static var ace_g_roll014_png:Class = Embeds_ace_g_roll014_png; public static var aa_gunner001_png:Class = Embeds_aa_gunner001_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 ace_e_roll023_png:Class = Embeds_ace_e_roll023_png; public static var scenery2_png:Class = Embeds_scenery2_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 g_bomb_roll005_png:Class = Embeds_g_bomb_roll005_png; public static var p2_roll024_png:Class = Embeds_p2_roll024_png; public static var sopwith_png:Class = Embeds_sopwith_png; public static var main_menu_jpg:Class = Embeds_main_menu_jpg; 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_roll027_png:Class = Embeds_p1_roll027_png; public static var gunner004_png:Class = Embeds_gunner004_png; public static var ace_g_roll002_png:Class = Embeds_ace_g_roll002_png; public static var button_control_2_png:Class = Embeds_button_control_2_png; public static var ace_e_roll008_png:Class = Embeds_ace_e_roll008_png; public static var smoke_a008_png:Class = Embeds_smoke_a008_png; public static var p1_roll030_png:Class = Embeds_p1_roll030_png; public static var plane_prop001_png:Class = Embeds_plane_prop001_png; public static var p2_roll001_png:Class = Embeds_p2_roll001_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 smoke_a011_png:Class = Embeds_smoke_a011_png; public static var smoke_d005_png:Class = Embeds_smoke_d005_png; public static var ace_e_roll019_png:Class = Embeds_ace_e_roll019_png; public static var ace_g_roll013_png:Class = Embeds_ace_g_roll013_png; public static var gun_flash_png:Class = Embeds_gun_flash_png; public static var button_control_b_png:Class = Embeds_button_control_b_png; public static var p2_roll009_png:Class = Embeds_p2_roll009_png; public static var p1_roll015_png:Class = Embeds_p1_roll015_png; public static var ace_e_roll022_png:Class = Embeds_ace_e_roll022_png; public static var p2_roll012_png:Class = Embeds_p2_roll012_png; public static var smoke_c003_png:Class = Embeds_smoke_c003_png; public static var smoke_d016_png:Class = Embeds_smoke_d016_png; public static var scenery1_png:Class = Embeds_scenery1_png; public static var ace_g_roll024_png:Class = Embeds_ace_g_roll024_png; public static var icon_quit_png:Class = Embeds_icon_quit_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 smoke_c014_png:Class = Embeds_smoke_c014_png; public static var flash_png:Class = Embeds_flash_png; public static var gunner003_png:Class = Embeds_gunner003_png; public static var button_control_1_png:Class = Embeds_button_control_1_png; public static var ace_e_roll007_png:Class = Embeds_ace_e_roll007_png; public static var smoke_a007_png:Class = Embeds_smoke_a007_png; public static var ace_g_roll001_png:Class = Embeds_ace_g_roll001_png; public static var ace_g_roll009_png:Class = Embeds_ace_g_roll009_png; public static var bullet_png:Class = Embeds_bullet_png; public static var zep_button_png:Class = Embeds_zep_button_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 aa_gunner007_png:Class = Embeds_aa_gunner007_png; public static var smoke_a010_png:Class = Embeds_smoke_a010_png; public static var smoke_d004_png:Class = Embeds_smoke_d004_png; public static var ace_g_roll012_png:Class = Embeds_ace_g_roll012_png; public static var icon_off_png:Class = Embeds_icon_off_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 button_control_a_png:Class = Embeds_button_control_a_png; public static var p2_roll011_png:Class = Embeds_p2_roll011_png; public static var p1_roll014_png:Class = Embeds_p1_roll014_png; public static var ace_e_roll021_png:Class = Embeds_ace_e_roll021_png; public static var p2_roll019_png:Class = Embeds_p2_roll019_png; public static var smoke_c002_png:Class = Embeds_smoke_c002_png; public static var smoke_d015_png:Class = Embeds_smoke_d015_png; public static var ace_e_roll029_png:Class = Embeds_ace_e_roll029_png; public static var ace_g_roll023_png:Class = Embeds_ace_g_roll023_png; public static var p2_roll022_png:Class = Embeds_p2_roll022_png; public static var ace_e_roll032_png:Class = Embeds_ace_e_roll032_png; public static var smoke_c013_png:Class = Embeds_smoke_c013_png; public static var p1_roll025_png:Class = Embeds_p1_roll025_png; public static var land_png:Class = Embeds_land_png; public static var gunner002_png:Class = Embeds_gunner002_png; public static var ace_e_roll006_png:Class = Embeds_ace_e_roll006_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 shot2_png:Class = Embeds_shot2_png; public static var wreak_png:Class = Embeds_wreak_png; public static var p1_roll002_png:Class = Embeds_p1_roll002_png; public static var p2_roll007_png:Class = Embeds_p2_roll007_png; public static var smoke_d003_png:Class = Embeds_smoke_d003_png; public static var ace_e_roll017_png:Class = Embeds_ace_e_roll017_png; public static var ace_g_roll011_png:Class = Embeds_ace_g_roll011_png; public static var ace_g_roll019_png:Class = Embeds_ace_g_roll019_png; public static var p2_roll010_png:Class = Embeds_p2_roll010_png; public static var p1_roll013_png:Class = Embeds_p1_roll013_png; public static var ace_e_roll020_png:Class = Embeds_ace_e_roll020_png; public static var p2_roll018_png:Class = Embeds_p2_roll018_png; public static var smoke_c001_png:Class = Embeds_smoke_c001_png; public static var smoke_d014_png:Class = Embeds_smoke_d014_png; public static var ace_e_roll028_png:Class = Embeds_ace_e_roll028_png; public static var smoke_c009_png:Class = Embeds_smoke_c009_png; public static var aa_gunner006_png:Class = Embeds_aa_gunner006_png; public static var ace_g_roll022_png:Class = Embeds_ace_g_roll022_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 p2_roll029_png:Class = Embeds_p2_roll029_png; public static var smoke_c012_png:Class = Embeds_smoke_c012_png; public static var seperator_png:Class = Embeds_seperator_png; public static var house_3_png:Class = Embeds_house_3_png; public static var p2_roll032_png:Class = Embeds_p2_roll032_png; public static var gunner001_png:Class = Embeds_gunner001_png; public static var yoursite_png:Class = Embeds_yoursite_png; public static var ace_e_roll005_png:Class = Embeds_ace_e_roll005_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 p1_roll001_png:Class = Embeds_p1_roll001_png; public static var p2_roll006_png:Class = Embeds_p2_roll006_png; public static var bush_4_png:Class = Embeds_bush_4_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 p1_roll009_png:Class = Embeds_p1_roll009_png; public static var ace_g_roll018_png:Class = Embeds_ace_g_roll018_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 aa_gunner005_png:Class = Embeds_aa_gunner005_png; public static var p1_roll012_png:Class = Embeds_p1_roll012_png; public static var p2_roll017_png:Class = Embeds_p2_roll017_png; public static var smoke_d013_png:Class = Embeds_smoke_d013_png; public static var gun_png:Class = Embeds_gun_png; public static var zep_part_3_png:Class = Embeds_zep_part_3_png; public static var ace_e_roll027_png:Class = Embeds_ace_e_roll027_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 ace_g_roll021_png:Class = Embeds_ace_g_roll021_png; public static var house_2_png:Class = Embeds_house_2_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 p2_roll028_png:Class = Embeds_p2_roll028_png; public static var smoke_c011_png:Class = Embeds_smoke_c011_png; public static var ace_g_roll032_png:Class = Embeds_ace_g_roll032_png; public static var p2_roll031_png:Class = Embeds_p2_roll031_png; public static var zeppelin_png:Class = Embeds_zeppelin_png; public static var ace_e_roll004_png:Class = Embeds_ace_e_roll004_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 zeppelin_256_png:Class = Embeds_zeppelin_256_png; public static var p2_roll005_png:Class = Embeds_p2_roll005_png; public static var smoke_d001_png:Class = Embeds_smoke_d001_png; public static var aa_turret_flash_png:Class = Embeds_aa_turret_flash_png; public static var ace_e_roll015_png:Class = Embeds_ace_e_roll015_png; public static var smoke_a015_png:Class = Embeds_smoke_a015_png; public static var smoke_d009_png:Class = Embeds_smoke_d009_png; public static var p1_roll008_png:Class = Embeds_p1_roll008_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 p2_roll016_png:Class = Embeds_p2_roll016_png; public static var aa_gunner004_png:Class = Embeds_aa_gunner004_png; public static var smoke_d012_png:Class = Embeds_smoke_d012_png; public static var bush_3_png:Class = Embeds_bush_3_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 smoke_c007_png:Class = Embeds_smoke_c007_png; public static var ace_g_roll028_png:Class = Embeds_ace_g_roll028_png; public static var p1_roll019_png:Class = Embeds_p1_roll019_png; public static var tree3_png:Class = Embeds_tree3_png; public static var house_1_png:Class = Embeds_house_1_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 ace_g_roll031_png:Class = Embeds_ace_g_roll031_png; public static var ace_g_roll020_png:Class = Embeds_ace_g_roll020_png; public static var p1_roll022_png:Class = Embeds_p1_roll022_png; public static var p2_roll030_png:Class = Embeds_p2_roll030_png; public static var shot_png:Class = Embeds_shot_png; public static var gunner007_png:Class = Embeds_gunner007_png; public static var ace_e_roll003_png:Class = Embeds_ace_e_roll003_png; public static var smoke_a003_png:Class = Embeds_smoke_a003_png; public static var ace_g_roll005_png:Class = Embeds_ace_g_roll005_png; public static var ground_png:Class = Embeds_ground_png; public static var p2_roll004_png:Class = Embeds_p2_roll004_png; public static var bush_2_png:Class = Embeds_bush_2_png; public static var p1_roll007_png:Class = Embeds_p1_roll007_png; public static var cloud2_png:Class = Embeds_cloud2_png; public static var ace_e_roll014_png:Class = Embeds_ace_e_roll014_png; public static var smoke_a014_png:Class = Embeds_smoke_a014_png; public static var smoke_d008_png:Class = Embeds_smoke_d008_png; public static var ace_g_roll016_png:Class = Embeds_ace_g_roll016_png; public static var aa_gunner003_png:Class = Embeds_aa_gunner003_png; public static var p1_roll010_png:Class = Embeds_p1_roll010_png; public static var p2_roll015_png:Class = Embeds_p2_roll015_png; public static var smoke_d011_png:Class = Embeds_smoke_d011_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 icon_play_png:Class = Embeds_icon_play_png; public static var smoke_c006_png:Class = Embeds_smoke_c006_png; public static var mission_complete_jpg:Class = Embeds_mission_complete_jpg; public static var p1_roll018_png:Class = Embeds_p1_roll018_png; public static var scenery4_png:Class = Embeds_scenery4_png; public static var ace_g_roll027_png:Class = Embeds_ace_g_roll027_png; public static var tree2_png:Class = Embeds_tree2_png; public static var p1_roll021_png:Class = Embeds_p1_roll021_png; public static var p1_roll029_png:Class = Embeds_p1_roll029_png; public static var p2_roll026_png:Class = Embeds_p2_roll026_png; public static var ace_g_roll030_png:Class = Embeds_ace_g_roll030_png; public static var aa_turret_png:Class = Embeds_aa_turret_png; public static var gunner006_png:Class = Embeds_gunner006_png; public static var ace_e_roll002_png:Class = Embeds_ace_e_roll002_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 p1_roll032_png:Class = Embeds_p1_roll032_png; public static var plane_prop003_png:Class = Embeds_plane_prop003_png; public static var menu_button_link_png:Class = Embeds_menu_button_link_png; } }//package GlobalSetup
Section 84
//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 85
//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 86
//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 87
//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 88
//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 89
//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 90
//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 91
//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 92
//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 93
//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 94
//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 95
//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 96
//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 97
//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 98
//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 99
//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 100
//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 101
//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 102
//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 103
//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 104
//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 105
//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 106
//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 107
//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 108
//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 109
//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 110
//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 111
//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 112
//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 113
//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 114
//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 115
//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 116
//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 117
//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 118
//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 119
//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 120
//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 121
//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 122
//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 123
//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 124
//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 125
//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 126
//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 127
//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 128
//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 129
//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 130
//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 131
//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 132
//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 133
//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 134
//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 135
//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 136
//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 137
//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 138
//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 139
//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 140
//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 141
//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 142
//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 143
//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 144
//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 145
//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 146
//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 147
//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 148
//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 149
//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 150
//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 151
//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 152
//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 153
//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 154
//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 155
//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 156
//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 157
//Embeds_bullet_png (GlobalSetup.Embeds_bullet_png) package GlobalSetup { import mx.core.*; public class Embeds_bullet_png extends BitmapAsset { } }//package GlobalSetup
Section 158
//Embeds_bush_1_png (GlobalSetup.Embeds_bush_1_png) package GlobalSetup { import mx.core.*; public class Embeds_bush_1_png extends BitmapAsset { } }//package GlobalSetup
Section 159
//Embeds_bush_2_png (GlobalSetup.Embeds_bush_2_png) package GlobalSetup { import mx.core.*; public class Embeds_bush_2_png extends BitmapAsset { } }//package GlobalSetup
Section 160
//Embeds_bush_3_png (GlobalSetup.Embeds_bush_3_png) package GlobalSetup { import mx.core.*; public class Embeds_bush_3_png extends BitmapAsset { } }//package GlobalSetup
Section 161
//Embeds_bush_4_png (GlobalSetup.Embeds_bush_4_png) package GlobalSetup { import mx.core.*; public class Embeds_bush_4_png extends BitmapAsset { } }//package GlobalSetup
Section 162
//Embeds_button_control_1_png (GlobalSetup.Embeds_button_control_1_png) package GlobalSetup { import mx.core.*; public class Embeds_button_control_1_png extends BitmapAsset { } }//package GlobalSetup
Section 163
//Embeds_button_control_2_png (GlobalSetup.Embeds_button_control_2_png) package GlobalSetup { import mx.core.*; public class Embeds_button_control_2_png extends BitmapAsset { } }//package GlobalSetup
Section 164
//Embeds_button_control_a_png (GlobalSetup.Embeds_button_control_a_png) package GlobalSetup { import mx.core.*; public class Embeds_button_control_a_png extends BitmapAsset { } }//package GlobalSetup
Section 165
//Embeds_button_control_b_png (GlobalSetup.Embeds_button_control_b_png) package GlobalSetup { import mx.core.*; public class Embeds_button_control_b_png extends BitmapAsset { } }//package GlobalSetup
Section 166
//Embeds_cloud1_png (GlobalSetup.Embeds_cloud1_png) package GlobalSetup { import mx.core.*; public class Embeds_cloud1_png extends BitmapAsset { } }//package GlobalSetup
Section 167
//Embeds_cloud2_png (GlobalSetup.Embeds_cloud2_png) package GlobalSetup { import mx.core.*; public class Embeds_cloud2_png extends BitmapAsset { } }//package GlobalSetup
Section 168
//Embeds_flash_png (GlobalSetup.Embeds_flash_png) package GlobalSetup { import mx.core.*; public class Embeds_flash_png extends BitmapAsset { } }//package GlobalSetup
Section 169
//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 170
//Embeds_ground_png (GlobalSetup.Embeds_ground_png) package GlobalSetup { import mx.core.*; public class Embeds_ground_png extends BitmapAsset { } }//package GlobalSetup
Section 171
//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 172
//Embeds_gun_png (GlobalSetup.Embeds_gun_png) package GlobalSetup { import mx.core.*; public class Embeds_gun_png extends BitmapAsset { } }//package GlobalSetup
Section 173
//Embeds_gunner001_png (GlobalSetup.Embeds_gunner001_png) package GlobalSetup { import mx.core.*; public class Embeds_gunner001_png extends BitmapAsset { } }//package GlobalSetup
Section 174
//Embeds_gunner002_png (GlobalSetup.Embeds_gunner002_png) package GlobalSetup { import mx.core.*; public class Embeds_gunner002_png extends BitmapAsset { } }//package GlobalSetup
Section 175
//Embeds_gunner003_png (GlobalSetup.Embeds_gunner003_png) package GlobalSetup { import mx.core.*; public class Embeds_gunner003_png extends BitmapAsset { } }//package GlobalSetup
Section 176
//Embeds_gunner004_png (GlobalSetup.Embeds_gunner004_png) package GlobalSetup { import mx.core.*; public class Embeds_gunner004_png extends BitmapAsset { } }//package GlobalSetup
Section 177
//Embeds_gunner005_png (GlobalSetup.Embeds_gunner005_png) package GlobalSetup { import mx.core.*; public class Embeds_gunner005_png extends BitmapAsset { } }//package GlobalSetup
Section 178
//Embeds_gunner006_png (GlobalSetup.Embeds_gunner006_png) package GlobalSetup { import mx.core.*; public class Embeds_gunner006_png extends BitmapAsset { } }//package GlobalSetup
Section 179
//Embeds_gunner007_png (GlobalSetup.Embeds_gunner007_png) package GlobalSetup { import mx.core.*; public class Embeds_gunner007_png extends BitmapAsset { } }//package GlobalSetup
Section 180
//Embeds_house_1_png (GlobalSetup.Embeds_house_1_png) package GlobalSetup { import mx.core.*; public class Embeds_house_1_png extends BitmapAsset { } }//package GlobalSetup
Section 181
//Embeds_house_2_png (GlobalSetup.Embeds_house_2_png) package GlobalSetup { import mx.core.*; public class Embeds_house_2_png extends BitmapAsset { } }//package GlobalSetup
Section 182
//Embeds_house_3_png (GlobalSetup.Embeds_house_3_png) package GlobalSetup { import mx.core.*; public class Embeds_house_3_png extends BitmapAsset { } }//package GlobalSetup
Section 183
//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 184
//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 185
//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 186
//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 187
//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 188
//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 189
//Embeds_land_png (GlobalSetup.Embeds_land_png) package GlobalSetup { import mx.core.*; public class Embeds_land_png extends BitmapAsset { } }//package GlobalSetup
Section 190
//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 191
//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 192
//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 193
//Embeds_mission_complete_jpg (GlobalSetup.Embeds_mission_complete_jpg) package GlobalSetup { import mx.core.*; public class Embeds_mission_complete_jpg extends BitmapAsset { } }//package GlobalSetup
Section 194
//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 195
//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 196
//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 197
//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 198
//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 199
//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 200
//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 201
//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 202
//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 203
//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 204
//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 205
//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 206
//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 207
//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 208
//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 209
//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 210
//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 211
//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 212
//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 213
//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 214
//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 215
//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 216
//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 217
//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 218
//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 219
//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 220
//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 221
//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 222
//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 223
//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 224
//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 225
//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 226
//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 227
//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 228
//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 229
//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 230
//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 231
//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 232
//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 233
//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 234
//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 235
//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 236
//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 237
//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 238
//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 239
//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 240
//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 241
//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 242
//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 243
//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 244
//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 245
//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 246
//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 247
//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 248
//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 249
//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 250
//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 251
//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 252
//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 253
//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 254
//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 255
//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 256
//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 257
//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 258
//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 259
//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 260
//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 261
//Embeds_planecrash_png (GlobalSetup.Embeds_planecrash_png) package GlobalSetup { import mx.core.*; public class Embeds_planecrash_png extends BitmapAsset { } }//package GlobalSetup
Section 262
//Embeds_scenery1_png (GlobalSetup.Embeds_scenery1_png) package GlobalSetup { import mx.core.*; public class Embeds_scenery1_png extends BitmapAsset { } }//package GlobalSetup
Section 263
//Embeds_scenery2_png (GlobalSetup.Embeds_scenery2_png) package GlobalSetup { import mx.core.*; public class Embeds_scenery2_png extends BitmapAsset { } }//package GlobalSetup
Section 264
//Embeds_scenery3_png (GlobalSetup.Embeds_scenery3_png) package GlobalSetup { import mx.core.*; public class Embeds_scenery3_png extends BitmapAsset { } }//package GlobalSetup
Section 265
//Embeds_scenery4_png (GlobalSetup.Embeds_scenery4_png) package GlobalSetup { import mx.core.*; public class Embeds_scenery4_png extends BitmapAsset { } }//package GlobalSetup
Section 266
//Embeds_seperator_png (GlobalSetup.Embeds_seperator_png) package GlobalSetup { import mx.core.*; public class Embeds_seperator_png extends BitmapAsset { } }//package GlobalSetup
Section 267
//Embeds_shot_png (GlobalSetup.Embeds_shot_png) package GlobalSetup { import mx.core.*; public class Embeds_shot_png extends BitmapAsset { } }//package GlobalSetup
Section 268
//Embeds_shot2_png (GlobalSetup.Embeds_shot2_png) package GlobalSetup { import mx.core.*; public class Embeds_shot2_png extends BitmapAsset { } }//package GlobalSetup
Section 269
//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 270
//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 271
//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 272
//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 273
//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 274
//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 275
//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 276
//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 277
//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 278
//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 279
//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 280
//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 281
//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 282
//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 283
//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 284
//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 285
//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 286
//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 287
//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 288
//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 289
//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 290
//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 291
//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 292
//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 293
//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 294
//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 295
//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 296
//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 297
//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 298
//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 299
//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 300
//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 301
//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 302
//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 303
//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 304
//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 305
//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 306
//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 307
//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 308
//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 309
//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 310
//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 311
//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 312
//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 313
//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 314
//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 315
//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 316
//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 317
//Embeds_sopwith_png (GlobalSetup.Embeds_sopwith_png) package GlobalSetup { import mx.core.*; public class Embeds_sopwith_png extends BitmapAsset { } }//package GlobalSetup
Section 318
//Embeds_tree1_png (GlobalSetup.Embeds_tree1_png) package GlobalSetup { import mx.core.*; public class Embeds_tree1_png extends BitmapAsset { } }//package GlobalSetup
Section 319
//Embeds_tree2_png (GlobalSetup.Embeds_tree2_png) package GlobalSetup { import mx.core.*; public class Embeds_tree2_png extends BitmapAsset { } }//package GlobalSetup
Section 320
//Embeds_tree3_png (GlobalSetup.Embeds_tree3_png) package GlobalSetup { import mx.core.*; public class Embeds_tree3_png extends BitmapAsset { } }//package GlobalSetup
Section 321
//Embeds_wreak_png (GlobalSetup.Embeds_wreak_png) package GlobalSetup { import mx.core.*; public class Embeds_wreak_png extends BitmapAsset { } }//package GlobalSetup
Section 322
//Embeds_yoursite_png (GlobalSetup.Embeds_yoursite_png) package GlobalSetup { import mx.core.*; public class Embeds_yoursite_png extends BitmapAsset { } }//package GlobalSetup
Section 323
//Embeds_zep_button_png (GlobalSetup.Embeds_zep_button_png) package GlobalSetup { import mx.core.*; public class Embeds_zep_button_png extends BitmapAsset { } }//package GlobalSetup
Section 324
//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 325
//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 326
//Embeds_zep_part_3_png (GlobalSetup.Embeds_zep_part_3_png) package GlobalSetup { import mx.core.*; public class Embeds_zep_part_3_png extends BitmapAsset { } }//package GlobalSetup
Section 327
//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 328
//Embeds_zeppelin_png (GlobalSetup.Embeds_zeppelin_png) package GlobalSetup { import mx.core.*; public class Embeds_zeppelin_png extends BitmapAsset { } }//package GlobalSetup
Section 329
//ZOrder (GlobalSetup.ZOrder) package GlobalSetup { import GameScene.*; public class ZOrder { public function SetupZOrder(_arg1:GameScene):void{ _arg1.addZOrder(""); _arg1.addZOrder("BehindObstacleBack"); _arg1.addZOrder("ObstacleBack"); _arg1.addZOrder("Ground"); _arg1.addZOrder("GroundFront"); _arg1.addZOrder("Player"); _arg1.addZOrder("ObstacleFront"); _arg1.addZOrder("Stars"); _arg1.addZOrder("TextLayer"); _arg1.addZOrder("AfterTextLayer"); _arg1.addZOrder("GUILayer"); } } }//package GlobalSetup
Section 330
//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 331
//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 332
//DefaultSet (Levels.DefaultSet) package Levels { import GameScene.*; import GameObject.*; import Objects.*; public class DefaultSet { public var DormantEnemies:String; public static var levels:int = 11; function createLevel0(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new PlayerPlane(_arg2, 458, 226); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1057, 176); _arg1.push(_local3); _local3 = new Ground(_arg2, 745, 541); _arg1.push(_local3); _local3 = new Tree1(_arg2, 411, 487); _arg1.push(_local3); _local3 = new Tree2(_arg2, 952, 492); _arg1.push(_local3); _local3 = new Tree3(_arg2, 989, 493); _arg1.push(_local3); _local3 = new Tree2(_arg2, 390, 489); _arg1.push(_local3); _local3 = new Tree3(_arg2, 494, 496); _arg1.push(_local3); _local3 = new Bush2(_arg2, 528, 533); _arg1.push(_local3); _local3 = new Bush1(_arg2, 567, 541); _arg1.push(_local3); _local3 = new Bush3(_arg2, 465, 544); _arg1.push(_local3); _local3 = new Bush3(_arg2, 926, 543); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1122, 539); _arg1.push(_local3); _local3 = new Bush2(_arg2, 841, 538); _arg1.push(_local3); _local3 = new Bush3(_arg2, 711, 528); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1238, 543); _arg1.push(_local3); _local3 = new Tree3(_arg2, 0x0100, 501); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1270, 504); _arg1.push(_local3); _local3 = new Tree2(_arg2, 1447, 494); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1426, 550); _arg1.push(_local3); _local3 = new Bush1(_arg2, 166, 548); _arg1.push(_local3); _local3 = new Bush2(_arg2, 106, 552); _arg1.push(_local3); _local3 = new Tree2(_arg2, 198, 492); _arg1.push(_local3); _local3 = new Tree1(_arg2, 1312, 496); _arg1.push(_local3); _local3 = new Tree2(_arg2, 1597.9375, 496.625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1575.9375, 552.625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1458.9375, 553.625); _arg1.push(_local3); _local3 = new House2(_arg2, 1204, 534); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1161, 550); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1066, 490); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1519.375, 499.5); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1363.375, 492.5); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 494.625, 259.0625); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 1244.625, 436.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 Scenery2(_arg2, 327, 487); _arg1.push(_local3); } function createLevel1(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new PlayerPlane(_arg2, 426, 698); _arg1.push(_local3); _local3 = new Ground(_arg2, 726.9375, 923); _arg1.push(_local3); _local3 = new Tree1(_arg2, 414.9375, 863); _arg1.push(_local3); _local3 = new Tree3(_arg2, 448.9375, 881); _arg1.push(_local3); _local3 = new Tree1(_arg2, 634.9375, 876); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1095.9375, 877); _arg1.push(_local3); _local3 = new Tree3(_arg2, 611.4375, 875.0625); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1252.4375, 887.0625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 676.9375, 926.625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1161.9375, 930.625); _arg1.push(_local3); _local3 = new Bush4(_arg2, 1269.9375, 933.625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 729.9375, 930.625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1068.9375, 915.625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 479.9375, 926.625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1376.9375, 930.625); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1044.9375, 926.625); _arg1.push(_local3); _local3 = new Bush3(_arg2, 565.9375, 927.625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 887.9375, 937.625); _arg1.push(_local3); _local3 = new Bush3(_arg2, 279.375, 933.5625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 189.375, 933.5625); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1539.375, 934.4375); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1674.0625, 932.375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1854.0625, 933.375); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1815.0625, 889.375); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1646.0625, 890.375); _arg1.push(_local3); _local3 = new Tree3(_arg2, 80.625, 887.375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 979.75, 570.0625); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 978.75, 791.0625); _arg1.push(_local3); _local3 = new Scenery1(_arg2, 791.6875, 917.8125); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 343.875, 871.1875); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1481.875, 876.1875); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1320.875, 875.1875); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 126.875, 874.1875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 385.875, 510.1875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 982.875, 340.1875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 1345.875, 599.1875); _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 Tree2(_arg2, 245, 773); _arg1.push(_local3); _local3 = new Tree3(_arg2, 935, 780); _arg1.push(_local3); _local3 = new Tree1(_arg2, 949, 777); _arg1.push(_local3); _local3 = new Tree1(_arg2, 1075, 777); _arg1.push(_local3); _local3 = new Tree3(_arg2, 390, 778); _arg1.push(_local3); _local3 = new Bush1(_arg2, 426.625, 831.1875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1021.625, 829.1875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 842.625, 811.1875); _arg1.push(_local3); _local3 = new Bush4(_arg2, 490.625, 835.1875); _arg1.push(_local3); _local3 = new Bush4(_arg2, 274.625, 826.1875); _arg1.push(_local3); _local3 = new Bush4(_arg2, 903.625, 833.1875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 981.625, 823.1875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 296.625, 832.1875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 462.625, 823.1875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 195.625, 834.1875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1214.625, 787.1875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1294.4375, 837.3125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 69.4375, 834.3125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 8.4375, 834.3125); _arg1.push(_local3); _local3 = new AAGun(_arg2, 653.25, 808.9375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 864.25, 606.9375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 864.25, 416.9375); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 140, 776.625); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 890, 777.625); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1126, 776.625); _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, 653.5, 824.0625); _arg1.push(_local3); } function createLevel3(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 722.3125, 1178.4375); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 297.3125, 761.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 897.375, 773.25); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 892.375, 925.25); _arg1.push(_local3); _local3 = new Tree1(_arg2, 1126.5, 1123.625); _arg1.push(_local3); _local3 = new Tree2(_arg2, 314.5, 1124.625); _arg1.push(_local3); _local3 = new Tree3(_arg2, 634.5, 1130.625); _arg1.push(_local3); _local3 = new Tree2(_arg2, 814.5, 1119.625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 339.8125, 1183.3125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 783.8125, 1183.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 1025.8125, 1181.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 746.8125, 1190.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 446.8125, 1179.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 606.8125, 1179.3125); _arg1.push(_local3); _local3 = new Bush3(_arg2, 618.8125, 1185.3125); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1105.8125, 1187.3125); _arg1.push(_local3); _local3 = new Bush3(_arg2, 837.8125, 1186.3125); _arg1.push(_local3); _local3 = new Tree2(_arg2, 602.8125, 1115.3125); _arg1.push(_local3); _local3 = new Tree2(_arg2, 1282.8125, 1131.3125); _arg1.push(_local3); _local3 = new Tree3(_arg2, 226.8125, 1142.3125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 971.75, 1190.6875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 205.75, 1193.6875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1571.75, 1196.6875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1140.75, 1187.6875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1268.75, 1191.6875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 372.75, 1196.6875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 252.75, 1194.6875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 121.75, 1193.6875); _arg1.push(_local3); _local3 = new Tree2(_arg2, 1531.75, 1138.6875); _arg1.push(_local3); _local3 = new House1(_arg2, 1385.4375, 1176.25); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1329.4375, 1189.25); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1431.4375, 1191.25); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 1000.625, 732.9375); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 994.625, 964.9375); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 1138.625, 853.9375); _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 EnemyPlane(_arg2, 1395, 407.125); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1333, 458.125); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1266, 521.125); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1330, 591.125); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1390, 647.125); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 553, 475.125); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 552, 623.125); _arg1.push(_local3); _local3 = new Ground(_arg2, 949.0625, 779.1875); _arg1.push(_local3); _local3 = new Tree1(_arg2, 572, 727); _arg1.push(_local3); _local3 = new Tree2(_arg2, 604, 732); _arg1.push(_local3); _local3 = new Tree3(_arg2, 634, 732); _arg1.push(_local3); _local3 = new Tree1(_arg2, 1316, 727); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1263, 739); _arg1.push(_local3); _local3 = new Bush2(_arg2, 629, 784.1875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 562, 785.1875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1242, 784.1875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 971, 770.1875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1347, 785.1875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1390, 787.1875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1434, 788.1875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 989, 781.1875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 666, 783.1875); _arg1.push(_local3); _local3 = new Bush4(_arg2, 685, 792.1875); _arg1.push(_local3); _local3 = new Tree2(_arg2, 899, 763.1875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 929, 784.1875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 391, 745.1875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1584, 746.1875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1561, 790.1875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 417, 789.1875); _arg1.push(_local3); _local3 = new Bush4(_arg2, 450, 790.1875); _arg1.push(_local3); _local3 = new Bush4(_arg2, 366, 791.1875); _arg1.push(_local3); _local3 = new House3(_arg2, 1078.5, 762.4375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1036.5, 783.4375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1129.5, 776.4375); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 501.6875, 729.375); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1492.6875, 728.375); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 839.6875, 730.375); _arg1.push(_local3); } function createLevel5(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 804.0625, 1181.5); _arg1.push(_local3); _local3 = new EnemyAce(_arg2, 1074.0625, 858.5); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 491.0625, 1001.5); _arg1.push(_local3); _local3 = new Bush1(_arg2, 437.8125, 1182.3125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 492.8125, 1187.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 1139.8125, 1182.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 524.8125, 1194.3125); _arg1.push(_local3); _local3 = new Bush3(_arg2, 610.8125, 1187.3125); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1115.8125, 1184.3125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1040.8125, 1184.3125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1411.8125, 1185.3125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 125.8125, 1185.3125); _arg1.push(_local3); _local3 = new House1(_arg2, 658.8125, 1173.3125); _arg1.push(_local3); _local3 = new House2(_arg2, 750.8125, 1176.3125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 695.8125, 1191.3125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 783.8125, 1192.3125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1007.8125, 1188.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 811.8125, 1192.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 1547.8125, 1189.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 1234.8125, 1193.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 372.8125, 1194.3125); _arg1.push(_local3); _local3 = new Bush4(_arg2, 186.8125, 1186.3125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1362.8125, 1193.3125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1620.8125, 1191.3125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 24.375, 1189.875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 347.375, 1188.875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 1295.375, 688.875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 455.375, 675.875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 1014.375, 524.875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 775.25, 422); _arg1.push(_local3); _local3 = new Scenery1(_arg2, 867.9375, 1177.8125); _arg1.push(_local3); _local3 = new EnemyAce(_arg2, 1077.8125, 780.75); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 73.6875, 1133); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1490.6875, 1131); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 557.6875, 1127.75); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 948.6875, 1130.75); _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 House1(_arg2, 464.4375, 1170.875); _arg1.push(_local3); _local3 = new House3(_arg2, 1234.4375, 1171.875); _arg1.push(_local3); _local3 = new House2(_arg2, 725.4375, 1165.875); _arg1.push(_local3); _local3 = new AAGun(_arg2, 596.4375, 1167.875); _arg1.push(_local3); _local3 = new AAGun(_arg2, 1107.4375, 1169.875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 758.4375, 1184.875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 417.4375, 1185.875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1243.4375, 1188.875); _arg1.push(_local3); _local3 = new AAGun(_arg2, 855.4375, 1166.875); _arg1.push(_local3); _local3 = new House1(_arg2, 976.4375, 1169.875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 927.4375, 1181.875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 96.4375, 1186.875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1540.4375, 1189.875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 140.4375, 1192.875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 15.4375, 1189.875); _arg1.push(_local3); _local3 = new Tree1(_arg2, 204.4375, 1131.875); _arg1.push(_local3); _local3 = new Tree1(_arg2, 36.4375, 1132.875); _arg1.push(_local3); _local3 = new Tree1(_arg2, 1502.4375, 1133.875); _arg1.push(_local3); _local3 = new Tree2(_arg2, 313.4375, 1133.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 68.4375, 1143.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1480.4375, 1142.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1276.4375, 1144.875); _arg1.push(_local3); _local3 = new Tree2(_arg2, 1335.4375, 1131.875); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1478.4375, 1191.875); _arg1.push(_local3); _local3 = new Bush2(_arg2, 215.4375, 1188.875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 299.4375, 1188.875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 554.4375, 1199.875); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1016.4375, 1199.875); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 284.875, 978.8125); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1317.875, 705.8125); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1219.875, 742.8125); _arg1.push(_local3); _local3 = new EnemyAce(_arg2, 1120.875, 785.8125); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1405.875, 664.8125); _arg1.push(_local3); _local3 = new Scenery1(_arg2, 368.0625, 1177.9375); _arg1.push(_local3); _local3 = new Scenery1(_arg2, 1365.5, 1178.25); _arg1.push(_local3); _local3 = new Scenery3(_arg2, 595.8125, 1182.375); _arg1.push(_local3); _local3 = new Scenery3(_arg2, 855.8125, 1181.375); _arg1.push(_local3); _local3 = new Scenery3(_arg2, 1107.8125, 1186.375); _arg1.push(_local3); } function createLevel7(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 810.375, 1180.9375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 477, 1171.4375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1176, 1177.4375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 719, 1195.4375); _arg1.push(_local3); _local3 = new Bush2(_arg2, 776, 1194.4375); _arg1.push(_local3); _local3 = new Bush2(_arg2, 107, 1190.4375); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1513, 1189.4375); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1483, 1190.4375); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1141, 1187.4375); _arg1.push(_local3); _local3 = new Bush3(_arg2, 169, 1186.4375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 34, 1188.4375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1441, 1192.4375); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 382, 928.4375); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 368, 868.4375); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 369, 978.4375); _arg1.push(_local3); _local3 = new EnemyAce(_arg2, 1100, 970.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1157, 918.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1191, 854.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1160, 1016.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1186, 1058.4375); _arg1.push(_local3); _local3 = new EnemyAce(_arg2, 1090, 699.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1114, 746.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1145, 798.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1125, 651.4375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1160, 593.4375); _arg1.push(_local3); _local3 = new Bush2(_arg2, 393.875, 1193.5625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 972.875, 1179.5625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1348.875, 1186.5625); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 344, 821.3125); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 338, 1025.3125); _arg1.push(_local3); } 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); }; return (_local3); } function createLevel8(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 858.5, 1180.5625); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 1222.125, 986.875); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 1060.125, 848.875); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 1360.125, 798.875); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 1181.125, 695.875); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 888.125, 705.875); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 1517.125, 655.875); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 1501.125, 979.875); _arg1.push(_local3); _local3 = new GermanBomber(_arg2, 711.125, 850.875); _arg1.push(_local3); _local3 = new Tree1(_arg2, 478.125, 1130.875); _arg1.push(_local3); _local3 = new Tree1(_arg2, 1231.125, 1130.875); _arg1.push(_local3); _local3 = new Tree1(_arg2, 164.125, 1131.875); _arg1.push(_local3); _local3 = new Tree2(_arg2, 190.125, 1134.875); _arg1.push(_local3); _local3 = new Tree2(_arg2, 871.125, 1122.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 515.125, 1143.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 311.125, 1144.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1195.125, 1139.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 664.125, 1143.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1084.125, 1129.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 399.125, 1143.875); _arg1.push(_local3); _local3 = new Tree2(_arg2, 421.125, 1133.875); _arg1.push(_local3); _local3 = new Tree1(_arg2, 120.125, 1135.875); _arg1.push(_local3); _local3 = new Tree3(_arg2, 28.125, 1145); _arg1.push(_local3); _local3 = new Tree3(_arg2, 905.125, 1141); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1008.0625, 1167); _arg1.push(_local3); _local3 = new Bush1(_arg2, 567.0625, 1184); _arg1.push(_local3); _local3 = new EnemyAce(_arg2, 1554.625, 804.0625); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 246.625, 736.0625); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1467.4375, 1132); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 815.4375, 1128); _arg1.push(_local3); DormantEnemies = "true"; } function createLevel9(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 860.8125, 1180.9375); _arg1.push(_local3); _local3 = new Zeppelin(_arg2, 1213.3125, 837.5625); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, -578.6875, 951.5625); _arg1.push(_local3); _local3 = new Gunner(_arg2, 620.3125, 805.5625); _arg1.push(_local3); _local3 = new Gunner(_arg2, 1697.1875, 749.9375); _arg1.push(_local3); _local3 = new ZepPart2(_arg2, 1310.1875, 918.9375); _arg1.push(_local3); _local3 = new ZepPart1(_arg2, 1080.1875, 912.9375); _arg1.push(_local3); _local3 = new ZepPart3(_arg2, 1678.1875, 906.9375); _arg1.push(_local3); _local3 = new Bush2(_arg2, 487.5625, 1185.75); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1196.5625, 1172.75); _arg1.push(_local3); _local3 = new Bush2(_arg2, 824.5625, 1166.75); _arg1.push(_local3); _local3 = new Bush3(_arg2, 513.5625, 1195.75); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1154.5625, 1180.75); _arg1.push(_local3); _local3 = new Bush3(_arg2, 122.5625, 1189.75); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1584.5625, 1187.75); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1348.5625, 1188.75); _arg1.push(_local3); _local3 = new Bush1(_arg2, 274.5625, 1191.75); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1911, 1191.5); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1771, 1190.5); _arg1.push(_local3); _local3 = new Bush1(_arg2, 920, 1192.5); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 347.0625, 1133.75); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 2083.8125, 1133.75); _arg1.push(_local3); } public function getClasses(_arg1:int):Array{ var _local2:Array = new Array(); if (_arg1 == 0){ _local2.push(PlayerPlane); _local2.push(EnemyPlane); _local2.push(Ground); _local2.push(Tree1); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush1); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree2); _local2.push(Bush3); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Tree2); _local2.push(Tree1); _local2.push(Tree2); _local2.push(Bush2); _local2.push(Bush1); _local2.push(House2); _local2.push(Bush1); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(Scenery2); }; if (_arg1 == 1){ _local2.push(PlayerPlane); _local2.push(Ground); _local2.push(Tree1); _local2.push(Tree3); _local2.push(Tree1); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush4); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush1); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree3); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(Scenery1); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(levelcloud); }; if (_arg1 == 2){ _local2.push(PlayerPlane); _local2.push(Ground); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree1); _local2.push(Tree1); _local2.push(Tree3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Tree3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush1); _local2.push(AAGun); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(Scenery3); }; if (_arg1 == 3){ _local2.push(Ground); _local2.push(PlayerPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(Tree1); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree2); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Tree2); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Tree2); _local2.push(House1); _local2.push(Bush1); _local2.push(Bush2); _local2.push(GermanBomber); _local2.push(GermanBomber); _local2.push(GermanBomber); }; if (_arg1 == 4){ _local2.push(PlayerPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(Ground); _local2.push(Tree1); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree1); _local2.push(Tree3); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush4); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush4); _local2.push(Bush4); _local2.push(House3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); }; if (_arg1 == 5){ _local2.push(Ground); _local2.push(EnemyAce); _local2.push(PlayerPlane); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush1); _local2.push(House1); _local2.push(House2); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush4); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush2); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(Scenery1); _local2.push(EnemyAce); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); }; if (_arg1 == 6){ _local2.push(Ground); _local2.push(House1); _local2.push(House3); _local2.push(House2); _local2.push(AAGun); _local2.push(AAGun); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush2); _local2.push(AAGun); _local2.push(House1); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Tree1); _local2.push(Tree1); _local2.push(Tree1); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree2); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush1); _local2.push(PlayerPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyAce); _local2.push(EnemyPlane); _local2.push(Scenery1); _local2.push(Scenery1); _local2.push(Scenery3); _local2.push(Scenery3); _local2.push(Scenery3); }; if (_arg1 == 7){ _local2.push(Ground); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(PlayerPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(EnemyAce); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyAce); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush2); _local2.push(GoodPlane); _local2.push(GoodPlane); }; if (_arg1 == 8){ _local2.push(Ground); _local2.push(GermanBomber); _local2.push(GermanBomber); _local2.push(GermanBomber); _local2.push(GermanBomber); _local2.push(GermanBomber); _local2.push(GermanBomber); _local2.push(GermanBomber); _local2.push(GermanBomber); _local2.push(Tree1); _local2.push(Tree1); _local2.push(Tree1); _local2.push(Tree2); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree2); _local2.push(Tree1); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(EnemyAce); _local2.push(PlayerPlane); _local2.push(Scenery2); _local2.push(Scenery2); }; if (_arg1 == 9){ _local2.push(Ground); _local2.push(Zeppelin); _local2.push(PlayerPlane); _local2.push(Gunner); _local2.push(Gunner); _local2.push(ZepPart2); _local2.push(ZepPart1); _local2.push(ZepPart3); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Scenery2); _local2.push(Scenery2); }; return (_local2); } } }//package Levels
Section 333
//twoplayer (Levels.twoplayer) package Levels { import GameScene.*; import GameObject.*; import Objects.*; public class twoplayer { public var TwoPlayer:String; public static var levels:int = 6; 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); }; return (_local3); } function createLevel2(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 879.8125, 1180.1875); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 385.8125, 926.1875); _arg1.push(_local3); _local3 = new TwoPlayerPlane(_arg2, 1397.8125, 939.1875); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1417.8125, 881.1875); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1445.8125, 820.1875); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1412.8125, 1001.1875); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1438.8125, 1059.1875); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 361.8125, 871.1875); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 337.8125, 816.1875); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 363.8125, 975.1875); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 338.8125, 1026.1875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 803.8125, 660.1875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 1191.8125, 787.1875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 322.8125, 778.1875); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 896.8125, 956.1875); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 529.1875, 1127); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1077.1875, 1115); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1558.1875, 1134); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 46.25, 1133.375); _arg1.push(_local3); _local3 = new Bush2(_arg2, 265.9375, 1191.9375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1389.9375, 1190.9375); _arg1.push(_local3); _local3 = new Bush3(_arg2, 893.9375, 1189.9375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 826.9375, 1165.9375); _arg1.push(_local3); _local3 = new Tree3(_arg2, 234.9375, 1145.9375); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1267.9375, 1140.9375); _arg1.push(_local3); _local3 = new Tree2(_arg2, 1295.9375, 1130.9375); _arg1.push(_local3); } public function getClasses(_arg1:int):Array{ var _local2:Array = new Array(); if (_arg1 == 0){ _local2.push(PlayerPlane); _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(Ground); _local2.push(TwoPlayerPlane); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree1); _local2.push(House1); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Tree2); _local2.push(levelcloud); }; if (_arg1 == 1){ _local2.push(Ground); _local2.push(PlayerPlane); _local2.push(TwoPlayerPlane); _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(Scenery1); _local2.push(House1); _local2.push(House3); _local2.push(House2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree2); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Bush3); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Bush2); _local2.push(Bush2); _local2.push(levelcloud); }; if (_arg1 == 2){ _local2.push(Ground); _local2.push(PlayerPlane); _local2.push(TwoPlayerPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush3); _local2.push(Bush1); _local2.push(Tree3); _local2.push(Tree3); _local2.push(Tree2); }; if (_arg1 == 3){ _local2.push(Ground); _local2.push(Bush1); _local2.push(Bush3); _local2.push(Bush2); _local2.push(Bush2); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Bush3); _local2.push(Bush1); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(PlayerPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(TwoPlayerPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(levelcloud); _local2.push(levelcloud); _local2.push(levelcloud); }; if (_arg1 == 4){ _local2.push(Ground); _local2.push(Bush1); _local2.push(Bush2); _local2.push(Scenery1); _local2.push(House3); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(Scenery2); _local2.push(PlayerPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(GoodPlane); _local2.push(TwoPlayerPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(EnemyPlane); _local2.push(Tree2); _local2.push(Tree3); _local2.push(Tree1); _local2.push(Tree3); _local2.push(Bush1); _local2.push(Bush1); _local2.push(Tree1); _local2.push(Bush2); _local2.push(Bush3); _local2.push(levelcloud); }; return (_local2); } function createLevel0(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new PlayerPlane(_arg2, 83, 458); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 47, 390); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 22, 329); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 49, 0x0202); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 21, 570); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1089, 391); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1124, 331); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1084, 515); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1123, 577); _arg1.push(_local3); _local3 = new Ground(_arg2, 579, 726); _arg1.push(_local3); _local3 = new TwoPlayerPlane(_arg2, 1067, 456); _arg1.push(_local3); _local3 = new Bush1(_arg2, 325.5, 712.0625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 877.5, 714.0625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 63.5, 734.0625); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 252.625, 673.75); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1217.625, 676.75); _arg1.push(_local3); _local3 = new Bush2(_arg2, 929.625, 723.75); _arg1.push(_local3); _local3 = new Bush3(_arg2, 965.625, 722.75); _arg1.push(_local3); _local3 = new Tree2(_arg2, 832.625, 666.75); _arg1.push(_local3); _local3 = new Tree3(_arg2, 794.625, 681.75); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1363.625, 693.75); _arg1.push(_local3); _local3 = new Tree1(_arg2, 21.625, 679.75); _arg1.push(_local3); _local3 = new House1(_arg2, 1452.8125, 724.25); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1392.8125, 738.25); _arg1.push(_local3); _local3 = new Bush2(_arg2, 751.0625, 728.125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 510.0625, 739.125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1115.0625, 736.125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1553.0625, 737.125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1005.0625, 738.125); _arg1.push(_local3); _local3 = new Tree2(_arg2, 625.0625, 675); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 678.125, 404.8125); _arg1.push(_local3); TwoPlayer = "true"; } function createLevel1(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 861.75, 1180.75); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 311.75, 901.75); _arg1.push(_local3); _local3 = new TwoPlayerPlane(_arg2, 1379.75, 898.75); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 286.75, 962.75); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 252.75, 1017.75); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 285.75, 835.75); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 254.75, 771.75); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1406.75, 834.75); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1436.75, 776.75); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1398.75, 957.75); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1426.75, 1021.75); _arg1.push(_local3); _local3 = new Scenery1(_arg2, 873.75, 1163.75); _arg1.push(_local3); _local3 = new House1(_arg2, 965.75, 1156.75); _arg1.push(_local3); _local3 = new House3(_arg2, 714.75, 1163.75); _arg1.push(_local3); _local3 = new House2(_arg2, 1086.75, 1159.75); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 383.75, 1126.75); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1539.75, 1129.75); _arg1.push(_local3); _local3 = new Tree2(_arg2, 147.75, 1129.75); _arg1.push(_local3); _local3 = new Tree3(_arg2, 175.75, 1144.75); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1124.75, 1129.75); _arg1.push(_local3); _local3 = new Tree2(_arg2, 663.75, 1127.75); _arg1.push(_local3); _local3 = new Bush1(_arg2, 766.75, 1177.75); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1037.75, 1175.75); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1283.75, 1187.75); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1467.75, 1191.75); _arg1.push(_local3); _local3 = new Bush1(_arg2, 155.75, 1190.75); _arg1.push(_local3); _local3 = new Bush2(_arg2, 46.75, 1191.75); _arg1.push(_local3); _local3 = new Bush3(_arg2, 284.75, 1191.75); _arg1.push(_local3); _local3 = new Bush3(_arg2, 626.75, 1169.75); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1159.75, 1185.75); _arg1.push(_local3); _local3 = new Scenery2(_arg2, -23.6875, 1135.375); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1657.125, 1134.3125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1329.125, 1194.3125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 560.125, 1190.3125); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 729.6875, 543.5); _arg1.push(_local3); } function createLevel3(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 786.5, 1181.5625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 445.4375, 1175.625); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1163.4375, 1183.625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 908.4375, 1184.625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1486.4375, 1190.625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 40.4375, 1189.625); _arg1.push(_local3); _local3 = new Bush2(_arg2, 326.4375, 1191.625); _arg1.push(_local3); _local3 = new Bush3(_arg2, 488.4375, 1182.625); _arg1.push(_local3); _local3 = new Bush1(_arg2, 939.4375, 1191.625); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 119.4375, 1131.625); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1416.4375, 1131.625); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 232.4375, 912.625); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 214.4375, 863.625); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 191.4375, 815.625); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 217.4375, 959.625); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 183.4375, 1010.625); _arg1.push(_local3); _local3 = new TwoPlayerPlane(_arg2, 1267.4375, 923.625); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1286.4375, 874.625); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1303.4375, 825.625); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1286.4375, 968.625); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1306.4375, 1019.625); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 325.4375, 494.625); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 1070.4375, 437.625); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 691.4375, 504.625); _arg1.push(_local3); } function createLevel4(_arg1:Array, _arg2:GameScene):void{ var _local3:GameObject; _local3 = new Ground(_arg2, 914.5, 1180.8125); _arg1.push(_local3); _local3 = new Bush1(_arg2, 595.5, 1177.8125); _arg1.push(_local3); _local3 = new Bush2(_arg2, 1282.5, 1186.8125); _arg1.push(_local3); _local3 = new Scenery1(_arg2, 411.5, 1175.8125); _arg1.push(_local3); _local3 = new House3(_arg2, 1386.5, 1172.8125); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 492.5, 1129.8125); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 56.5, 1131.8125); _arg1.push(_local3); _local3 = new Scenery2(_arg2, 1555.125, 1132.375); _arg1.push(_local3); _local3 = new PlayerPlane(_arg2, 368.125, 904.375); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 341.125, 848.375); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 319.125, 794.375); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 340.125, 949.375); _arg1.push(_local3); _local3 = new GoodPlane(_arg2, 311.125, 1002.375); _arg1.push(_local3); _local3 = new TwoPlayerPlane(_arg2, 1413.125, 912.375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1437.125, 859.375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1467.125, 808.375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1435.125, 962.375); _arg1.push(_local3); _local3 = new EnemyPlane(_arg2, 1464.125, 1023.375); _arg1.push(_local3); _local3 = new Tree2(_arg2, 641.125, 1132.375); _arg1.push(_local3); _local3 = new Tree3(_arg2, 682.125, 1145.375); _arg1.push(_local3); _local3 = new Tree1(_arg2, 1241.125, 1120.375); _arg1.push(_local3); _local3 = new Tree3(_arg2, 1206.125, 1141.375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 175.125, 1188.375); _arg1.push(_local3); _local3 = new Bush1(_arg2, 1468.125, 1192.375); _arg1.push(_local3); _local3 = new Tree1(_arg2, 280.125, 1138.375); _arg1.push(_local3); _local3 = new Bush2(_arg2, 775.0625, 1183.375); _arg1.push(_local3); _local3 = new Bush3(_arg2, 1117.0625, 1188.375); _arg1.push(_local3); _local3 = new levelcloud(_arg2, 799.0625, 619.375); _arg1.push(_local3); } } }//package Levels
Section 334
//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 335
//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 336
//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 337
//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 338
//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 339
//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 340
//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 341
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 342
//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 343
//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 344
//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 345
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 346
//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 347
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { public interface IFlexModuleFactory { function create(... _args):Object; function info():Object; } }//package mx.core
Section 348
//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 349
//IProgrammaticSkin (mx.core.IProgrammaticSkin) package mx.core { public interface IProgrammaticSkin { function validateNow():void; function validateDisplayList():void; } }//package mx.core
Section 350
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 351
//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 352
//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 353
//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 354
//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 355
//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 356
//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 357
//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 358
//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 359
//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 360
//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 361
//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 362
//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 363
//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 364
//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 365
//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 366
//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 367
//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 368
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var bootstrapLoaderInfoURL:String; } }//package mx.managers
Section 369
//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 370
//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 371
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 372
//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 373
//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 374
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 375
//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 376
//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 377
//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 378
//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 379
//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 380
//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 381
//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 382
//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 383
//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 384
//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 385
//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 386
//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 387
//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 388
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 389
//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 390
//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 391
//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 392
//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 393
//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 394
//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 395
//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){ return; }; if (gamesHaveLoaded()){ _local3 = new (NagScreen); _local3.okClass = _arg2; _arg1.pushScene(_local3, true); } else { _arg1.pushScene(new (_arg2), true); }; } } }//package NagScreen
Section 396
//NagScreen_free1 (NagScreen.NagScreen_free1) package NagScreen { import mx.core.*; public class NagScreen_free1 extends BitmapAsset { } }//package NagScreen
Section 397
//NagScreen_free2 (NagScreen.NagScreen_free2) package NagScreen { import mx.core.*; public class NagScreen_free2 extends BitmapAsset { } }//package NagScreen
Section 398
//NagScreen_lastGame (NagScreen.NagScreen_lastGame) package NagScreen { import mx.core.*; public class NagScreen_lastGame extends BitmapAsset { } }//package NagScreen
Section 399
//NagScreen_nextGame (NagScreen.NagScreen_nextGame) package NagScreen { import mx.core.*; public class NagScreen_nextGame extends BitmapAsset { } }//package NagScreen
Section 400
//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 401
//AIPlaneBase (ObjectBase.AIPlaneBase) package ObjectBase { import GameScene.*; import GameObject.*; import Tools.*; import Scenes.*; import Objects.*; public class AIPlaneBase extends Plane { public var canHunt:Boolean;// = false public var currentStrategyTicks:int;// = 0 public var currentStrategy:int; public var destAngle:Number;// = 0 public var multipleHunt:Boolean;// = false public var offset:int; public var target:Plane; public var passiveSpeed:int;// = 0 public var passive:Boolean;// = false public var flyingDirection:int;// = 0 public static var flyTowardsPlayer:int = 3; public static var flyForward:int = 0; public static var huntPlayer:int = 2; public static var turn:int = 1; public static var getBackOnTrack:int = 4; public function AIPlaneBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){ currentStrategy = flyForward; offset = (Math.random() * 100); super(_arg1, _arg2, _arg3, _arg4, _arg5); } public function playerPlane():Plane{ if (target){ if (target._removed){ target = null; }; }; if (!target){ target = findTarget(); }; return (target); } public function backOnTrack():void{ if (currentStrategy != getBackOnTrack){ currentStrategy = getBackOnTrack; currentStrategyTicks = 0; }; } public function playerZoneX():int{ var _local1:Plane = 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 switchToRandomTurn():void{ if (currentStrategy != turn){ destAngle = (Math.random() * 360); currentStrategy = turn; }; } public function startHuntPlayer():void{ var _local1:GameObject; 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()){ return; }; }; }; }; }; }; }; if (currentStrategy != huntPlayer){ currentStrategy = huntPlayer; }; } public function huntLength():int{ return (200); } public function goingOffBorder(_arg1:int=50):Boolean{ var _local2:Number = (basex + (dx * 50)); var _local3:Number = (basey + (dy * 50)); var _local4:MainScene = MainScene(gs); _arg1 = 0; if (_local2 < (_local4.sceneMinX + _arg1)){ return (true); }; if (_local2 > (_local4.sceneMaxX - _arg1)){ return (true); }; if (_local3 < (_local4.sceneMinY + _arg1)){ return (true); }; if (_local3 > ((_local4.sceneMaxY - _arg1) - 128)){ 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)); } override public function _update():void{ var _local1:GameObject; var _local2:Number; var _local3:Number; if (passive){ passiveSpeed = 100; } else { if (passiveSpeed > 0){ passiveSpeed = (passiveSpeed - 1); }; }; if (goingOffBorder()){ if (canHunt){ backOnTrack(); }; }; flyingDirection = 0; if (!playerPlane()){ if (((!((currentStrategy == flyForward))) && (!((currentStrategy == getBackOnTrack))))){ currentStrategy = flyForward; }; }; if (currentStrategy == flyForward){ 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 ((((Math.random() > 0.95)) && (canHunt))){ startHuntPlayer(); } else { if (((!((playerZoneX() == directionX()))) && (!((playerZoneX() == 0))))){ switchToTurn(); }; }; }; }; currentStrategyTicks++; if (currentStrategy == getBackOnTrack){ flyTowardsAngle(angleToCenter()); if (!goingOffBorder(80)){ currentStrategy = flyForward; }; }; 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() < 100)))){ currentStrategy = flyForward; }; }; if (currentStrategy == flyTowardsPlayer){ flyTowardsAngle(angleToPlayer()); if (distanceToPlayer() < 300){ currentStrategy = flyForward; }; }; 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 startFlyTowardsPlayer():void{ if (currentStrategy != flyTowardsPlayer){ currentStrategy = flyTowardsPlayer; }; } override public function controlDown():Boolean{ return ((flyingDirection == 1)); } public function findTarget():Plane{ return (null); } override public function shooting():Boolean{ var _local1:int; if (currentStrategy == huntPlayer){ if (Interpolation.distanceToAngle(baseRotation, angleToPlayer()) > 20){ return (false); }; _local1 = ((ticks + offset) % 100); if ((((((((((((_local1 == 1)) || ((_local1 == 11)))) || ((_local1 == 21)))) || ((_local1 == 31)))) || ((_local1 == 41)))) || ((_local1 == 51)))){ return (true); }; }; return (false); } public function angleToPlayer():Number{ var _local1:Plane = playerPlane(); return (((Math.atan2((_local1.basey - basey), (_local1.basex - basex)) * 180) / Math.PI)); } public function directionX():int{ if (Math.cos(((baseRotation / 180) * Math.PI)) > 0){ return (1); }; return (-1); } override public function controlUp():Boolean{ return ((flyingDirection == -1)); } 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; }; } public function distanceToPlayer():Number{ var _local1:Plane = playerPlane(); var _local2:Number = (_local1.basex - basex); var _local3:Number = (_local1.basey - basey); return (Math.sqrt(((_local2 * _local2) + (_local3 * _local3)))); } } }//package ObjectBase
Section 402
//BomberBase (ObjectBase.BomberBase) package ObjectBase { import GameScene.*; public class BomberBase extends Plane { public function BomberBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){ super(_arg1, _arg2, _arg3, _arg4, _arg5); } override public function deathRotateSpeed():Number{ return (0.2); } override public function updateFrame():void{ } override public function speed():Number{ return (0.25); } override public function maxHealth():int{ return (20); } } }//package ObjectBase
Section 403
//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():Plane{ return (Plane(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 404
//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():Plane{ return (Plane(gs.findRandomObjectByClass("German"))); } } }//package ObjectBase
Section 405
//GondolaBase (ObjectBase.GondolaBase) package ObjectBase { import GameScene.*; import flash.display.*; import Scenes.*; import GlobalSetup.*; public class GondolaBase extends ZeppelinObjectBase { public var dy:Number;// = 0 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 (((!(dead)) && ((health < 5)))){ emitConditionalParticles("Fire", poffsetx, poffsety); }; super._update(); if (dead){ dy = (dy + 0.02); basey = (basey + dy); if (basey > (MainScene(gs).sceneMaxY - 27)){ _local1 = 0; while (_local1 < 5) { emitConditionalParticles("Destroy", ((Math.random() - 0.5) * baseWidth), ((Math.random() - 0.5) * baseHeight)); _local1++; }; Sounds.zepExplosion.play(); remove(); }; }; } override public function damage(_arg1:Projectile):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; }; } } }//package ObjectBase
Section 406
//ObjectBase (ObjectBase.ObjectBase) package ObjectBase { import GameScene.*; import GameObject.*; public class ObjectBase extends GameObject { public var dead:Boolean;// = false public var side:String; public function ObjectBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){ super(_arg1, _arg2, _arg3, _arg4, _arg5); } public function findATarget():ObjectBase{ var _local1:GameObject; var _local2:ObjectBase; for each (_local1 in gs.objects) { if ((_local1 is ObjectBase)){ _local2 = ObjectBase(_local1); if (_local2.side != side){ if (((!((_local2.side == ""))) && (!((_local2.side == null))))){ return (_local2); }; }; }; }; return (null); } public function damage(_arg1:Projectile):void{ } } }//package ObjectBase
Section 407
//Plane (ObjectBase.Plane) package ObjectBase { import GameScene.*; import flash.display.*; import flash.geom.*; import GameObject.*; import Audio.*; import Tools.*; import Scenes.*; import Objects.*; 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 dx:Number;// = 0 public var dy: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 function Plane(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){ super(_arg1, _arg2, _arg3, _arg4, _arg5); health = maxHealth(); } public function deathRotateSpeed():Number{ return (1); } public function sgn(_arg1:Number):Number{ if (_arg1 == 0){ return (0); }; if (_arg1 > 0){ return (1); }; return (-1); } public function killWithEffects():void{ fallingChannel = Sounds.planeFalling.play(); Sounds.planeCrash.play(); emitConditionalParticles("Destroy"); dead = true; } public function controlDown():Boolean{ return (false); } 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 rotSpeed():Number{ return (0.15); } public function speed():Number{ return (0.63); } public function controlUp():Boolean{ return (false); } public function shooting():Boolean{ return (false); } public function maxHealth():int{ return (10); } override public function _update():void{ var _local5:MainScene; var _local6:int; var _local7:Number; var _local8:Number; var _local9:Point; var _local10:Bullet; 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()){ if (fallingChannel){ fallingChannel.stop(); }; Sounds.planeCrash.play(); emitConditionalParticles("Destroy"); emitConditionalParticles("DestroyGround"); 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()){ if (!MainScene(gs).inSuccess){ crashed = true; Sounds.planeCrash.play(); emitConditionalParticles("Destroy"); emitConditionalParticles("DestroyGround"); remove(); }; }; _local5 = MainScene(gs); _local6 = 40; if (basex > (_local5.sceneMaxX + _local6)){ baseRotation = 180; }; if (basex < (_local5.sceneMinX - _local6)){ baseRotation = 0; }; if (basey < (_local5.sceneMinY - _local6)){ baseRotation = 90; }; if (basey > (_local5.sceneMaxY + _local6)){ 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)))){ if ((((overheat < 28)) || ((shootticks % 2)))){ Sounds.shot.play(); _local7 = 0; _local8 = -5; _local9 = tformed(_local7, _local8); _local10 = new Bullet(gs, _local9.x, _local9.y); _local10.baseRotation = (baseRotation + (4 * (Math.random() - 0.5))); _local10.source = this; _local10.speed = (_local10.speed * (1 + (Math.random() / 10))); emitConditionalParticles("shell"); lastShot = 0; }; shootticks++; }; } public function flip():void{ flipped = true; baseRotation = 180; } override public function damage(_arg1:Projectile):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); }; crashed = (_arg1 == null); if (((_arg1) && (_arg1.weak))){ minihealth++; if (minihealth > 1){ minihealth = 0; health--; }; } else { health--; }; if (health < 0){ if (!dead){ killWithEffects(); }; }; } } }//package ObjectBase
Section 408
//PlayerBase (ObjectBase.PlayerBase) package ObjectBase { import GameScene.*; import flash.display.*; import Audio.*; import Tools.*; import Scenes.*; public class PlayerBase extends Plane { public var engineChannel:GameSoundChannel; public var twoPlayer:Boolean;// = false 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"; } override public function maxHealth():int{ return (25); } override public function shooting():Boolean{ if (dead){ return (false); }; if (Input.i.keyDown(shootKey())){ if ((ticks % 10) == 0){ return (true); }; return (false); }; burstShots = 0; return (false); } public function upKey(_arg1:Boolean=false):int{ if (!_arg1){ if (!MainMenu.controlsReversed){ return (downKey(true)); }; }; if (twoPlayer){ return (87); }; return (38); } public function shootKey():int{ if (twoPlayer){ return (16); }; return (32); } override public function _update():void{ 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 _remove():void{ super._remove(); engineChannel.stop(); engineChannel = null; } override public function controlUp():Boolean{ return ((Input.i.keyDown(upKey()) > 0)); } public function downKey(_arg1:Boolean=false):int{ if (!_arg1){ if (!MainMenu.controlsReversed){ return (upKey(true)); }; }; if (twoPlayer){ return (83); }; return (40); } override public function controlDown():Boolean{ return ((Input.i.keyDown(downKey()) > 0)); } } }//package ObjectBase
Section 409
//Projectile (ObjectBase.Projectile) package ObjectBase { import GameScene.*; import GameObject.*; import Tools.*; import Scenes.*; public class Projectile extends GameObject { public var altsource:GameObject; public var speed:Number;// = 1 public var source:GameObject; public var weak:Boolean;// = false public function Projectile(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){ super(_arg1, _arg2, _arg3, _arg4, _arg5); collision = new GameObjectCollision(); 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 _local2:GameObject; basex = (basex + ((Math.cos(((baseRotation / 180) * Math.PI)) * 10) * speed)); basey = (basey + ((Math.sin(((baseRotation / 180) * Math.PI)) * 10) * speed)); baseHandleX = 0; baseHandleY = 0.5; if (basey > MainScene(gs).floor()){ emitConditionalParticles("Hit"); remove(); }; collision.synchronize(this); var _local1:int; for each (_local2 in gs.objects) { if (!_local2._removed){ if ((_local2 is ObjectBase)){ if (((((!((this == _local2))) && (!((_local2 == source))))) && (!((_local2 == altsource))))){ if (this.collidesWith(_local2)){ if (ObjectBase(_local2).side != ObjectBase(source).side){ if ((((source is ZeppelinObjectBase)) && ((_local2 is ZeppelinObjectBase)))){ } else { ObjectBase(_local2).damage(this); this.remove(); Sounds.hit.play(); }; }; }; }; }; }; }; baseAlpha = Interpolation.linearInterpolateLock(1, 0, Interpolation.fromTo(ticks, 90, 100)); if (ticks > 100){ remove(); }; } } }//package ObjectBase
Section 410
//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 411
//TurretBase (ObjectBase.TurretBase) package ObjectBase { import GameScene.*; import GameObject.*; import Tools.*; import Objects.*; public class TurretBase extends ObjectBase { public var burst:int;// = 0 public var inaccuracy:Number;// = 0 public var frontAngle:Number;// = -95 public var lastShot:int;// = 10 public var target:ObjectBase; public var angle:Number;// = -135 public var rearAngle:Number;// = -245 public function TurretBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){ super(_arg1, _arg2, _arg3, _arg4, _arg5); } override public function _update():void{ var _local1:Number; var _local2:GameObject; var _local3:Boolean; var _local4:Bullet; var _local5:Boolean; if (!target){ target = findATarget(); }; if (target){ lastShot++; _local1 = angleToObject(target); angle = Interpolation.tendTowardsAngle(angle, _local1, 1); if (angle > frontAngle){ angle = frontAngle; }; if (angle < rearAngle){ angle = rearAngle; }; _local2 = findChildrenByName("gunflash")[0]; _local3 = (((Interpolation.directionToAngle(angle, rearAngle) < 0.5)) && ((Interpolation.directionToAngle(angle, frontAngle) > 0.5))); if (_local3){ baseRotation = (angle + 90); }; if (lastShot > 3){ _local2.baseAlpha = 0; } else { _local2.baseAlpha = 1; }; if (parent){ if ((parent is ObjectBase)){ if (ObjectBase(parent).dead){ _local3 = false; }; }; }; if (Interpolation.distanceToAngle(angle, _local1) > 5){ _local3 = false; }; if (target.distanceToObject(parent) > 500){ _local3 = false; }; if (!_local3){ burst++; }; if (((((ticks % 15) == 5)) && (_local3))){ burst++; if ((burst % 30) < 5){ _local4 = new Bullet(gs, (basex + parent.basex), (basey + parent.basey)); _local4.baseRotation = (angle + Math.random()); _local4.source = parent; _local4.speed = 0.4; _local4.weak = true; _local4.move((baseHeight * 0.9), 0); _local5 = true; if (!_local5){ _local4.remove(); } else { Sounds.shot.play(); lastShot = 0; }; }; }; }; } } }//package ObjectBase
Section 412
//TwoPlayerBase (ObjectBase.TwoPlayerBase) package ObjectBase { import GameScene.*; import flash.display.*; import Audio.*; import Tools.*; import Scenes.*; 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 (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 413
//ZeppelinObjectBase (ObjectBase.ZeppelinObjectBase) package ObjectBase { import GameScene.*; import GameObject.*; import Tools.*; import Objects.*; public class ZeppelinObjectBase extends ObjectBase { public var burst:int;// = 0 public var inaccuracy:Number;// = 0 public var frontAngle:Number;// = 180 public var rearAngle:Number;// = 0 public var lastShot:int;// = 10 public var target:PlayerPlane; public var angle:Number;// = -135 public var health:int; public function ZeppelinObjectBase(_arg1:GameScene, _arg2:Class, _arg3:String, _arg4:int, _arg5:int){ health = 1; super(_arg1, _arg2, _arg3, _arg4, _arg5); } override public function _update():void{ var _local1:Number; var _local2:GameObject; var _local3:GameObject; var _local4:Boolean; var _local5:Bullet; var _local6:Boolean; lastShot++; grabTarget(); inaccuracy = (inaccuracy + 0.1); 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)); _local5.baseRotation = (angle + Math.random()); _local5.source = this; _local5.speed = 0.4; _local5.weak = true; _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.shot.play(); lastShot = 0; }; }; }; }; } public function blockFire():Boolean{ return (false); } override public function damage(_arg1:Projectile):void{ health--; if (health < 0){ dead = true; }; } 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 414
//AAGun_constructor (ObjectConstructors.AAGun_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; 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(); _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 415
//AirTurret_constructor (ObjectConstructors.AirTurret_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class AirTurret_constructor { public static var child1:BitmapData = new Embeds.aa_turret_flash_png().bitmapData; public static var baseim:BitmapData = new Embeds.aa_turret_png().bitmapData; public static var child1_embed:Class = Embeds.aa_turret_flash_png; 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; _local6 = new GameObject(_arg1, child1_embed, "ObstacleFront", 0, 0); _local6.name = "gunflash"; _local6.baseHandleX = 0.5; _local6.baseHandleY = 1; _local6.basex = 0; _local6.basey = -1; _local6.animSpeed = 0; _arg2.addChild(_local6); } } }//package ObjectConstructors
Section 416
//Bullet_constructor (ObjectConstructors.Bullet_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; 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 417
//Bush1_constructor (ObjectConstructors.Bush1_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Bush1_constructor { public static var baseim:BitmapData = new Embeds.bush_1_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.bush_1_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 418
//Bush2_constructor (ObjectConstructors.Bush2_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Bush2_constructor { public static var baseim:BitmapData = new Embeds.bush_2_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.bush_2_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 419
//Bush3_constructor (ObjectConstructors.Bush3_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Bush3_constructor { public static var baseim:BitmapData = new Embeds.bush_3_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.bush_3_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 420
//Bush4_constructor (ObjectConstructors.Bush4_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Bush4_constructor { public static var baseim:BitmapData = new Embeds.bush_4_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.bush_4_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 421
//EnemyAce_constructor (ObjectConstructors.EnemyAce_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class EnemyAce_constructor { public static var roll_17_embed:Class = Embeds.ace_g_roll017_png; public static var roll_9:BitmapData = new Embeds.ace_g_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_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 child1_3_embed:Class = Embeds.plane_prop003_png; 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_12:BitmapData = new Embeds.ace_g_roll012_png().bitmapData; 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_20_embed:Class = Embeds.ace_g_roll020_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_18_embed:Class = Embeds.ace_g_roll018_png; public static var roll_25:BitmapData = new Embeds.ace_g_roll025_png().bitmapData; public static var roll_4_embed:Class = Embeds.ace_g_roll004_png; 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_22:BitmapData = new Embeds.ace_g_roll022_png().bitmapData; public static var roll_26:BitmapData = new Embeds.ace_g_roll026_png().bitmapData; 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_23:BitmapData = new Embeds.ace_g_roll023_png().bitmapData; public static var roll_24:BitmapData = new Embeds.ace_g_roll024_png().bitmapData; 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: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_g_roll022_png; public static var roll_26_embed:Class = Embeds.ace_g_roll026_png; public static var baseim:BitmapData = new Embeds.ace_g_roll030_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_roll030_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 child1_2_embed:Class = Embeds.plane_prop002_png; public static var roll_1:BitmapData = new Embeds.ace_g_roll001_png().bitmapData; public static var child2_embed:Class = Embeds.flash_png; 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_2:BitmapData = new Embeds.ace_g_roll002_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(); _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 422
//EnemyPlane_constructor (ObjectConstructors.EnemyPlane_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class EnemyPlane_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_roll030_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_roll030_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(); _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); EnemyPlane(_arg2).roll = roll; } } }//package ObjectConstructors
Section 423
//GermanBomber_constructor (ObjectConstructors.GermanBomber_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class GermanBomber_constructor { public static var baseim:BitmapData = new Embeds.g_bomb_roll005_png().bitmapData; public static var LayerName:String = "Player"; public static var baseim_embed:Class = Embeds.g_bomb_roll005_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(); _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(); } } }//package ObjectConstructors
Section 424
//globalParticles (ObjectConstructors.globalParticles) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class globalParticles { 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 par6_10_embed:Class = Embeds.smoke_d010_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 par4_15_embed:Class = Embeds.smoke_d015_png; public static var par3_embed:Class = Embeds.shot_png; public static var par5_11_embed:Class = Embeds.smoke_c011_png; public static var par6_1:BitmapData = new Embeds.smoke_d001_png().bitmapData; public static var par6_3:BitmapData = new Embeds.smoke_d003_png().bitmapData; public static var par6_4:BitmapData = new Embeds.smoke_d004_png().bitmapData; public static var par1_13_embed:Class = Embeds.smoke_a013_png; public static var par4_11:BitmapData = new Embeds.smoke_d011_png().bitmapData; 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_10:BitmapData = new Embeds.smoke_d010_png().bitmapData; public static var par6_6:BitmapData = new Embeds.smoke_d006_png().bitmapData; public static var par6_7:BitmapData = new Embeds.smoke_d007_png().bitmapData; public static var par6_8:BitmapData = new Embeds.smoke_d008_png().bitmapData; public static var par6_9:BitmapData = new Embeds.smoke_d009_png().bitmapData; public static var par6_2:BitmapData = new Embeds.smoke_d002_png().bitmapData; public static var par6_5:BitmapData = new Embeds.smoke_d005_png().bitmapData; public static var par6_2_embed:Class = Embeds.smoke_d002_png; public static var par1_3_embed:Class = Embeds.smoke_a003_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 par4_7_embed:Class = Embeds.smoke_d007_png; public static var par4_12_embed:Class = Embeds.smoke_d012_png; public static var par6_15_embed:Class = Embeds.smoke_d015_png; public static var par5_1:BitmapData = new Embeds.smoke_c001_png().bitmapData; public static var par5_2:BitmapData = new Embeds.smoke_c002_png().bitmapData; public static var par1_10_embed:Class = Embeds.smoke_a010_png; public static var par5_4:BitmapData = new Embeds.smoke_c004_png().bitmapData; public static var par5_5:BitmapData = new Embeds.smoke_c005_png().bitmapData; public static var par5_6:BitmapData = new Embeds.smoke_c006_png().bitmapData; public static var par5_7:BitmapData = new Embeds.smoke_c007_png().bitmapData; public static var par5_8:BitmapData = new Embeds.smoke_c008_png().bitmapData; public static var par5_9:BitmapData = new Embeds.smoke_c009_png().bitmapData; public static var par5_3:BitmapData = new Embeds.smoke_c003_png().bitmapData; public static var par5_16_embed:Class = Embeds.smoke_c016_png; public static var par8_embed:Class = Embeds.wreak_png; public static var par6_7_embed:Class = Embeds.smoke_d007_png; public static var par2_4_embed:Class = Embeds.smoke_c004_png; public static var par1_8_embed:Class = Embeds.smoke_a008_png; public static var par6_12_embed:Class = Embeds.smoke_d012_png; public static var par5_8_embed:Class = Embeds.smoke_c008_png; public static var par4_4_embed:Class = Embeds.smoke_d004_png; public static var par2_14_embed:Class = Embeds.smoke_c014_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 par5_16:BitmapData = new Embeds.smoke_c016_png().bitmapData; 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 par5_14:BitmapData = new Embeds.smoke_c014_png().bitmapData; public static var par5_12:BitmapData = new Embeds.smoke_c012_png().bitmapData; public static var par6_4_embed:Class = Embeds.smoke_d004_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 par4_7:BitmapData = new Embeds.smoke_d007_png().bitmapData; public static var par4_8:BitmapData = new Embeds.smoke_d008_png().bitmapData; public static var par1_15_embed:Class = Embeds.smoke_a015_png; public static var par5_13_embed:Class = Embeds.smoke_c013_png; public static var par4_9:BitmapData = new Embeds.smoke_d009_png().bitmapData; public static var par2_1_embed:Class = Embeds.smoke_c001_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 par6_1_embed:Class = Embeds.smoke_d001_png; public static var emitters:Array; public static var par4_9_embed:Class = Embeds.smoke_d009_png; public static var par4_14_embed:Class = Embeds.smoke_d014_png; public static var par5_5_embed:Class = Embeds.smoke_c005_png; public static var par2_11_embed:Class = Embeds.smoke_c011_png; public static var par2_9_embed:Class = Embeds.smoke_c009_png; public static var par6_10:BitmapData = new Embeds.smoke_d010_png().bitmapData; public static var par1_12_embed:Class = Embeds.smoke_a012_png; public static var par5_10_embed:Class = Embeds.smoke_c010_png; public static var par6_14:BitmapData = new Embeds.smoke_d014_png().bitmapData; public static var par6_16:BitmapData = new Embeds.smoke_d016_png().bitmapData; public static var par6_11:BitmapData = new Embeds.smoke_d011_png().bitmapData; public static var par6_12:BitmapData = new Embeds.smoke_d012_png().bitmapData; public static var par6_13:BitmapData = new Embeds.smoke_d013_png().bitmapData; public static var par6_15:BitmapData = new Embeds.smoke_d015_png().bitmapData; public static var par6_9_embed:Class = Embeds.smoke_d009_png; public static var par1_2_embed:Class = Embeds.smoke_a002_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_14_embed:Class = Embeds.smoke_d014_png; public static var par4_6_embed:Class = Embeds.smoke_d006_png; public static var par2_16_embed:Class = Embeds.smoke_c016_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 par4_11_embed:Class = Embeds.smoke_d011_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 par5_15_embed:Class = Embeds.smoke_c015_png; public static var par7_embed:Class = Embeds.shot2_png; public static var par2_3_embed:Class = Embeds.smoke_c003_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 par6_3_embed:Class = Embeds.smoke_d003_png; public static var par6_11_embed:Class = Embeds.smoke_d011_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 par4_16_embed:Class = Embeds.smoke_d016_png; public static var par1_1:BitmapData = new Embeds.smoke_a001_png().bitmapData; 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 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 par6_6_embed:Class = Embeds.smoke_d006_png; public static var par1_4_embed:Class = Embeds.smoke_a004_png; 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 par4_8_embed:Class = Embeds.smoke_d008_png; public static var par5_12_embed:Class = Embeds.smoke_c012_png; public static var par4_13_embed:Class = Embeds.smoke_d013_png; public static var par1_11_embed:Class = Embeds.smoke_a011_png; public static var par6_8_embed:Class = Embeds.smoke_d008_png; public static var par6_16_embed:Class = Embeds.smoke_d016_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]; 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]; public static var par3:BitmapData = new Embeds.shot_png().bitmapData; 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]; 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]; 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]; public static var par7:BitmapData = new Embeds.shot2_png().bitmapData; public static var par8:BitmapData = new Embeds.wreak_png().bitmapData; public static var par1_1_embed:Class = Embeds.smoke_a001_png; 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 par4_5_embed:Class = Embeds.smoke_d005_png; public static var par1_9_embed:Class = Embeds.smoke_a009_png; public static var par4_10_embed:Class = Embeds.smoke_d010_png; public static var par6_13_embed:Class = Embeds.smoke_d013_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 par6_5_embed:Class = Embeds.smoke_d005_png; public static var par5_14_embed:Class = Embeds.smoke_c014_png; public static var par1_16_embed:Class = Embeds.smoke_a016_png; public static var par2_2_embed:Class = Embeds.smoke_c002_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 = 0.800000012; _local2.endalpha = 0; _local2.rotatespeedtodirection = 0; _local2.startrotationlow = -20; _local2.startrotationhigh = 20; _local2.dRotationLow = 0.100000009; _local2.dRotationHigh = 0.220000029; _local2.startScale = 0.5; _local2.endScale = 0.800000012; _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; _local3 = new ParticleFilterScaleIn(); _local2.addFilter(_local3); ParticleFilterScaleIn(_local3).Frames = 43.5999985; _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 = 0.5; _local2.endalpha = 0.00999999978; _local2.rotatespeedtodirection = 0; _local2.startrotationlow = 0; _local2.startrotationhigh = 360; _local2.dRotationLow = -0.899999976; _local2.dRotationHigh = 0.899999976; _local2.startScale = 0.5; _local2.endScale = 0.699999988; _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; _local3 = new ParticleFilterScaleIn(); _local2.addFilter(_local3); ParticleFilterScaleIn(_local3).Frames = 43.5999985; _local1.push(_local2); _local2 = new ParticleEmitter(); _local2.Name = "Hit"; _local2.x = 0; _local2.y = 0; _local2.Frequency = 2; _local2.lifelow = 70; _local2.lifehigh = 129; _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 = 0; _local2.rotatespeedtodirection = 1; _local2.startrotationlow = 0; _local2.startrotationhigh = 5; _local2.dRotationLow = 0.300000012; _local2.dRotationHigh = 3; _local2.startScale = 1; _local2.endScale = 0.200000003; _local2.additive = 0; _local2.layeroverride = ""; _local2.animspeed = 1; _local2.animspeedrange = 0; _local2.animframecap = 0; _local2.Friction = 0; _local2.Test = 1; _local2.StayAfterDeath = 0; _local2.Identifier = ""; _local2.impath = "shot.png"; _local2.image = par3_embed; _local1.push(_local2); _local2 = new ParticleEmitter(); _local2.Name = "Destroy"; _local2.x = 0; _local2.y = 0; _local2.Frequency = 5; _local2.lifelow = 274; _local2.lifehigh = 342; _local2.gravitylow = -9.99999975E-5; _local2.gravityhigh = -0.000199999995; _local2.xspeedlow = -0.25; _local2.xspeedhigh = 0.25; _local2.yspeedlow = -0.0200000014; _local2.yspeedhigh = -0.0600000024; _local2.startalpha = 1; _local2.endalpha = 0; _local2.rotatespeedtodirection = 1; _local2.startrotationlow = -35; _local2.startrotationhigh = 35; _local2.dRotationLow = 0; _local2.dRotationHigh = 0; _local2.startScale = 2.9000001; _local2.endScale = 1.60000002; _local2.additive = 0; _local2.layeroverride = ""; _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 = 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 = 0.5; _local2.endalpha = 0.00999999978; _local2.rotatespeedtodirection = 0; _local2.startrotationlow = 0; _local2.startrotationhigh = 360; _local2.dRotationLow = -0.899999976; _local2.dRotationHigh = 0.899999976; _local2.startScale = 0.5; _local2.endScale = 1; _local2.additive = 0; _local2.layeroverride = "ObstacleFront"; _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; _local3 = new ParticleFilterScaleIn(); _local2.addFilter(_local3); ParticleFilterScaleIn(_local3).Frames = 43.5999985; _local1.push(_local2); _local2 = new ParticleEmitter(); _local2.Name = "ZepDestroy"; _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 = ""; _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 = par6_1_embed; _local2.imageSet = par6; _local1.push(_local2); _local2 = new ParticleEmitter(); _local2.Name = "DestroyGround"; _local2.x = 0; _local2.y = 0; _local2.Frequency = 10; _local2.lifelow = 470; _local2.lifehigh = 567; _local2.gravitylow = 0.00999999978; _local2.gravityhigh = 0.0399999991; _local2.xspeedlow = -2.0999999; _local2.xspeedhigh = 2.0999999; _local2.yspeedlow = -0.5; _local2.yspeedhigh = -2.5; _local2.startalpha = 1; _local2.endalpha = 0.699999988; _local2.rotatespeedtodirection = 1; _local2.startrotationlow = 0; _local2.startrotationhigh = 1; _local2.dRotationLow = 0.300000012; _local2.dRotationHigh = 15; _local2.startScale = 1; _local2.endScale = 0; _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 = "shot2.png"; _local2.image = par7_embed; _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 = "Player"; _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 = par8_embed; _local1.push(_local2); return (_local1); } public static function getParticles():Array{ if (!emitters){ emitters = constructParticles(); }; return (emitters); } } }//package ObjectConstructors
Section 425
//GoodPlane_constructor (ObjectConstructors.GoodPlane_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class GoodPlane_constructor { public static var roll_17_embed:Class = Embeds.p1_roll017_png; public static var roll_9:BitmapData = new Embeds.p1_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.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 child1_3_embed:Class = Embeds.plane_prop003_png; 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_12:BitmapData = new Embeds.p1_roll012_png().bitmapData; 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_20_embed:Class = Embeds.p1_roll020_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_4_embed:Class = Embeds.p1_roll004_png; 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_22:BitmapData = new Embeds.p1_roll022_png().bitmapData; public static var roll_26:BitmapData = new Embeds.p1_roll026_png().bitmapData; 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_24:BitmapData = new Embeds.p1_roll024_png().bitmapData; 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: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.p1_roll022_png; public static var roll_26_embed:Class = Embeds.p1_roll026_png; public static var baseim:BitmapData = new Embeds.sopwith_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 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.sopwith_png; public static var roll_2_embed:Class = Embeds.p1_roll002_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 child1_2_embed:Class = Embeds.plane_prop002_png; public static var roll_1:BitmapData = new Embeds.p1_roll001_png().bitmapData; public static var child2_embed:Class = Embeds.flash_png; 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_2:BitmapData = new Embeds.p1_roll002_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(); _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); GoodPlane(_arg2).planecrash = planecrash; GoodPlane(_arg2).roll = roll; } } }//package ObjectConstructors
Section 426
//Ground_constructor (ObjectConstructors.Ground_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Ground_constructor { public static var baseim:BitmapData = new Embeds.ground_png().bitmapData; public static var LayerName:String = "Ground"; public static var baseim_embed:Class = Embeds.ground_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 GameObjectFilterRepeats(); _arg2.addFilter(_local3); _arg2.addConditionalParticleArray(globalParticles.getParticles()); _arg2.animSpeed = 0; } } }//package ObjectConstructors
Section 427
//Gunner_constructor (ObjectConstructors.Gunner_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Gunner_constructor { public static var par1_6_embed:Class = Embeds.smoke_d006_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 anim:Array = [anim_1, anim_2, anim_3, anim_4, anim_5, anim_6, anim_7]; public static var anim_1_embed:Class = Embeds.gunner001_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_3_embed:Class = Embeds.smoke_d003_png; public static var par1_7_embed:Class = Embeds.smoke_d007_png; public static var LayerName:String = "Player"; public static var anim_6_embed:Class = Embeds.gunner006_png; 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 anim_2_embed:Class = Embeds.gunner002_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_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_1:BitmapData = new Embeds.gunner001_png().bitmapData; public static var anim_2:BitmapData = new Embeds.gunner002_png().bitmapData; public static var anim_6:BitmapData = new Embeds.gunner006_png().bitmapData; public static var child1:BitmapData = new Embeds.gun_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_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]; public static var baseim:BitmapData = new Embeds.gunner004_png().bitmapData; 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_9_embed:Class = Embeds.smoke_d009_png; public static var baseim_embed:Class = Embeds.gunner004_png; public static var anim_4_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 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(); _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 428
//House1_constructor (ObjectConstructors.House1_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class House1_constructor { public static var baseim:BitmapData = new Embeds.house_1_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.house_1_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 429
//House2_constructor (ObjectConstructors.House2_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class House2_constructor { public static var baseim:BitmapData = new Embeds.house_2_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.house_2_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 430
//House3_constructor (ObjectConstructors.House3_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class House3_constructor { public static var baseim:BitmapData = new Embeds.house_3_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.house_3_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 431
//levelcloud_constructor (ObjectConstructors.levelcloud_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; 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 432
//PlayerPlane_constructor (ObjectConstructors.PlayerPlane_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class PlayerPlane_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_roll001_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_roll001_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(); _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 433
//Scenery1_constructor (ObjectConstructors.Scenery1_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Scenery1_constructor { public static var baseim:BitmapData = new Embeds.scenery1_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.scenery1_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 434
//Scenery2_constructor (ObjectConstructors.Scenery2_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Scenery2_constructor { public static var baseim:BitmapData = new Embeds.scenery2_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.scenery2_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 435
//Scenery3_constructor (ObjectConstructors.Scenery3_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; 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 436
//Tree1_constructor (ObjectConstructors.Tree1_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Tree1_constructor { public static var baseim:BitmapData = new Embeds.tree1_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.tree1_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 437
//Tree2_constructor (ObjectConstructors.Tree2_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Tree2_constructor { public static var baseim:BitmapData = new Embeds.tree2_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.tree2_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 438
//Tree3_constructor (ObjectConstructors.Tree3_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Tree3_constructor { public static var baseim:BitmapData = new Embeds.tree3_png().bitmapData; public static var LayerName:String = "GroundFront"; public static var baseim_embed:Class = Embeds.tree3_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 439
//Turret_constructor (ObjectConstructors.Turret_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class Turret_constructor { public static var child1:BitmapData = new Embeds.gun_flash_png().bitmapData; public static var baseim:BitmapData = new Embeds.gun_png().bitmapData; public static var child1_embed:Class = Embeds.gun_flash_png; 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; _local6 = new GameObject(_arg1, child1_embed, "Player", 0, 0); _local6.name = "gunflash"; _local6.baseHandleX = 0.5; _local6.baseHandleY = 0.5; _local6.basex = 0; _local6.basey = -1; _local6.animSpeed = 0; _arg2.addChild(_local6); } } }//package ObjectConstructors
Section 440
//TwoPlayerPlane_constructor (ObjectConstructors.TwoPlayerPlane_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class TwoPlayerPlane_constructor { public static var roll_17_embed:Class = Embeds.ace_g_roll017_png; public static var roll_9:BitmapData = new Embeds.ace_g_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_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 child1_3_embed:Class = Embeds.plane_prop003_png; 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_12:BitmapData = new Embeds.ace_g_roll012_png().bitmapData; 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_20_embed:Class = Embeds.ace_g_roll020_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_18_embed:Class = Embeds.ace_g_roll018_png; public static var roll_25:BitmapData = new Embeds.ace_g_roll025_png().bitmapData; public static var roll_4_embed:Class = Embeds.ace_g_roll004_png; 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_22:BitmapData = new Embeds.ace_g_roll022_png().bitmapData; public static var roll_26:BitmapData = new Embeds.ace_g_roll026_png().bitmapData; 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_23:BitmapData = new Embeds.ace_g_roll023_png().bitmapData; public static var roll_24:BitmapData = new Embeds.ace_g_roll024_png().bitmapData; 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: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_g_roll022_png; public static var roll_26_embed:Class = Embeds.ace_g_roll026_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 child1_2_embed:Class = Embeds.plane_prop002_png; public static var roll_1:BitmapData = new Embeds.ace_g_roll001_png().bitmapData; public static var child2_embed:Class = Embeds.flash_png; 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_2:BitmapData = new Embeds.ace_g_roll002_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(); _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); TwoPlayerPlane(_arg2).roll = roll; } } }//package ObjectConstructors
Section 441
//ZepPart1_constructor (ObjectConstructors.ZepPart1_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; 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(); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(-52, 9); _local7.pushPoint(-22, -3); _local7.pushPoint(26, -3); _local7.pushPoint(25, 14); _local7.pushPoint(-30, 14); _local7.approxX = -13; _local7.approxY = 3; _local7.approxRadius = 39.5600815; _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.5; _local8.basex = 20; _local8.basey = 2; _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.5; _local8.basex = 20; _local8.basey = 2; _local8.animSpeed = 0; _arg2.addChild(_local8); } } }//package ObjectConstructors
Section 442
//ZepPart2_constructor (ObjectConstructors.ZepPart2_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class ZepPart2_constructor { public static var LayerName:String = "Player"; public static var child1_embed:Class = Embeds.gun_flash_png; public static var child2_embed:Class = Embeds.gun_png; public static var child1:BitmapData = new Embeds.gun_flash_png().bitmapData; public static var baseim_embed:Class = Embeds.zep_part_2_png; public static var baseim:BitmapData = new Embeds.zep_part_2_png().bitmapData; public static var child2:BitmapData = new Embeds.gun_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(); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(-16, -7); _local7.pushPoint(19, -9); _local7.pushPoint(21, 6); _local7.pushPoint(-19, 4); _local7.approxX = 1; _local7.approxY = 1; _local7.approxRadius = 20.6155281; _local6.pushPolygon(_local7); _arg2.collision = _local6; _local6.finalize(); _local8 = new GameObject(_arg1, child1_embed, "Player", 0, 0); _local8.name = "gunflash"; _local8.baseHandleX = 0.5; _local8.baseHandleY = 0.5; _local8.basex = 16; _local8.basey = -3; _local8.animSpeed = 0; _arg2.addChild(_local8); _local8 = new GameObject(_arg1, child2_embed, "Player", 0, 0); _local8.name = "gun"; _local8.baseHandleX = 0.5; _local8.baseHandleY = 0.5; _local8.basex = 16; _local8.basey = -3; _local8.animSpeed = 0; _arg2.addChild(_local8); } } }//package ObjectConstructors
Section 443
//ZepPart3_constructor (ObjectConstructors.ZepPart3_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; public class ZepPart3_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_3_png; public static var baseim:BitmapData = new Embeds.zep_part_3_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(); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(-66, 14); _local7.pushPoint(-29, 1); _local7.pushPoint(33, -1); _local7.pushPoint(33, 15); _local7.approxX = -16; _local7.approxY = 10; _local7.approxRadius = 50.2195168; _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.5; _local8.basex = 25; _local8.basey = 5; _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.5; _local8.basex = 25; _local8.basey = 5; _local8.animSpeed = 0; _arg2.addChild(_local8); } } }//package ObjectConstructors
Section 444
//Zeppelin_constructor (ObjectConstructors.Zeppelin_constructor) package ObjectConstructors { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import GlobalSetup.*; import Objects.*; 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 = "ObstacleBack"; 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(); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(-531, 40); _local7.pushPoint(-557, 47); _local7.pushPoint(-572, 22); _local7.approxX = -552; _local7.approxY = 32; _local7.approxRadius = 22.4722042; _local6.pushPolygon(_local7); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(-640, -14); _local7.pushPoint(-587, -27); _local7.pushPoint(-587, 3); _local7.approxX = -611; _local7.approxY = -13; _local7.approxRadius = 29.0172367; _local6.pushPolygon(_local7); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(-586, -75); _local7.pushPoint(-460, -76); _local7.pushPoint(-405, -62); _local7.pushPoint(-411, 36); _local7.pushPoint(-533, 38); _local7.pushPoint(-587, 37); _local7.approxX = -499; _local7.approxY = -18; _local7.approxRadius = 104.009613; _local6.pushPolygon(_local7); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(394, -90); _local7.pushPoint(537, -73); _local7.pushPoint(616, -42); _local7.pushPoint(643, -12); _local7.pushPoint(617, 15); _local7.pushPoint(541, 47); _local7.pushPoint(397, 66); _local7.approxX = 507; _local7.approxY = -14; _local7.approxRadius = 136.180023; _local6.pushPolygon(_local7); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(145, -93); _local7.pushPoint(395, -91); _local7.pushPoint(399, 65); _local7.pushPoint(144, 68); _local7.approxX = 270; _local7.approxY = -11; _local7.approxRadius = 149.723083; _local6.pushPolygon(_local7); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(-405, -61); _local7.pushPoint(-280, -77); _local7.pushPoint(-131, -87); _local7.pushPoint(-130, 63); _local7.pushPoint(-284, 52); _local7.pushPoint(-410, 36); _local7.approxX = -264; _local7.approxY = -11; _local7.approxRadius = 153.378616; _local6.pushPolygon(_local7); _local7 = new GameObjectCollisionPoly(); _local7.pushPoint(-130, -86); _local7.pushPoint(143, -93); _local7.pushPoint(143, 70); _local7.pushPoint(-129, 62); _local7.approxX = 9; _local7.approxY = -12; _local7.approxRadius = 157.470627; _local6.pushPolygon(_local7); _arg2.collision = _local6; _local6.finalize(); _local8 = new GameObject(_arg1, child1_embed, "BehindObstacleBack", 0, 0); _local8.mask(); _local8.name = ""; _local8.baseHandleX = 0.504999995; _local8.baseHandleY = 0.569999993; _local8.basex = 0; _local8.basey = 0; _local8.animSpeed = 0; _arg2.addChild(_local8); Zeppelin(_arg2).lowOutlineY = [79, 79, 79, 78, 78, 78, 78, 77, 77, 77, 76, 76, 76, 76, 76, 75, 75, 75, 75, 74, 74, 74, 74, 73, 73, 73, 73, 72, 72, 72, 72, 71, 71, 71, 71, 70, 70, 70, 70, 69, 69, 69, 69, 69, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 25, 25, 25, 25, 26, 26, 26, 27, 27, 27, 28, 28, 29, 29, 29, 30, 30, 30, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 30, 29, 29, 29, 29, 29, 29, 28, 28, 28, 28, 28, 28, 28, 27, 27, 27, 27, 27, 27, 27, 26, 26, 26, 26, 26, 26, 26, 25, 25, 25, 25, 25, 25, 25, 25, 24, 24, 24, 24, 24, 24, 24, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 22, 22, 22, 22, 22, 22, 22, 22, 22, 21, 21, 21, 21, 21, 21, 21, 21, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 15, 15, 15, 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, 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, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 14, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 25, 25, 25, 25, 26, 26, 26, 27, 27, 27, 28, 28, 28, 29, 29, 29, 29, 30, 30, 31, 31, 31, 32, 32, 33, 33, 33, 34, 34, 35, 35, 35, 36, 36, 37, 37, 38, 38, 39, 39, 39, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 45, 46, 46, 47, 47, 48, 48, 49, 50, 50, 51, 51, 52, 53, 53, 54, 55, 55, 56, 57, 57, 58, 59, 59, 60, 61, 62, 63, 63, 64, 66, 67, 68, 70, 71, 73, 75, 78]; Zeppelin(_arg2).highOutlineY = [82, 82, 83, 83, 84, 84, 84, 85, 85, 85, 85, 85, 86, 86, 86, 86, 87, 87, 87, 87, 88, 88, 88, 88, 89, 89, 89, 89, 90, 90, 90, 90, 91, 91, 91, 91, 92, 92, 92, 92, 93, 93, 93, 93, 94, 94, 94, 94, 95, 95, 95, 95, 95, 96, 96, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 128, 128, 130, 130, 130, 132, 134, 135, 136, 137, 137, 138, 138, 138, 139, 139, 139, 139, 139, 139, 138, 138, 138, 138, 137, 137, 136, 136, 136, 135, 135, 134, 134, 133, 133, 132, 132, 131, 131, 131, 131, 131, 131, 131, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 127, 127, 127, 127, 127, 127, 127, 127, 126, 126, 126, 126, 126, 126, 126, 125, 125, 125, 125, 125, 124, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 168, 177, 176, 175, 173, 171, 165, 160, 156, 155, 154, 154, 153, 153, 154, 166, 168, 164, 162, 154, 154, 154, 154, 154, 154, 154, 154, 156, 161, 164, 165, 165, 165, 165, 163, 162, 155, 155, 155, 155, 155, 155, 164, 164, 155, 155, 155, 155, 156, 169, 156, 156, 156, 156, 157, 163, 167, 172, 172, 173, 173, 158, 156, 156, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 163, 162, 161, 161, 160, 159, 159, 158, 159, 159, 159, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 171, 162, 170, 170, 168, 174, 174, 174, 174, 175, 175, 175, 174, 174, 174, 174, 174, 174, 174, 174, 174, 173, 164, 168, 162, 162, 162, 162, 162, 162, 174, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 162, 162, 163, 163, 163, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 176, 175, 158, 160, 158, 172, 171, 172, 172, 162, 158, 158, 157, 177, 177, 177, 169, 169, 168, 162, 157, 157, 157, 175, 175, 167, 166, 166, 166, 167, 167, 167, 166, 166, 166, 166, 165, 155, 155, 155, 172, 172, 171, 155, 155, 155, 155, 155, 154, 154, 154, 154, 154, 154, 154, 154, 154, 160, 160, 153, 155, 156, 164, 166, 166, 175, 161, 174, 174, 152, 152, 152, 152, 154, 162, 156, 151, 151, 155, 162, 162, 169, 177, 177, 177, 177, 177, 177, 177, 176, 176, 176, 175, 162, 158, 154, 153, 162, 148, 148, 148, 148, 148, 147, 147, 147, 147, 147, 147, 146, 146, 146, 146, 146, 146, 145, 145, 145, 145, 145, 144, 144, 144, 145, 145, 144, 143, 143, 144, 143, 143, 142, 142, 142, 142, 141, 141, 141, 141, 141, 140, 140, 140, 140, 139, 139, 139, 138, 138, 138, 138, 138, 137, 137, 137, 136, 136, 136, 136, 135, 135, 135, 134, 134, 134, 133, 133, 133, 133, 132, 132, 132, 131, 131, 130, 130, 130, 129, 129, 128, 128, 128, 127, 127, 126, 126, 125, 125, 124, 124, 124, 123, 123, 122, 122, 121, 121, 120, 120, 119, 119, 118, 118, 117, 117, 116, 116, 115, 115, 114, 113, 113, 112, 112, 111, 110, 110, 109, 108, 108, 107, 106, 106, 105, 104, 104, 103, 102, 102, 101, 100, 99, 98, 97, 96, 95, 94, 92, 90, 89, 87, 84]; } } }//package ObjectConstructors
Section 445
//AAGun (Objects.AAGun) package Objects { import GameScene.*; import flash.display.*; import ObjectBase.*; import Tools.*; 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 = "German"; 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 = -135; at.frontAngle = -45; addChild(at); } override public function damage(_arg1:Projectile):void{ if (dead){ return; }; if (_arg1){ emitConditionalParticles("Hit", _arg1.basex, _arg1.basey, true); }; health--; if (health < 0){ if (!dead){ emitConditionalParticles("Destroy"); Sounds.planeCrash.play(); remove(); dead = true; }; }; } override public function _update():void{ 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(); }; }; } } }//package Objects
Section 446
//AirTurret (Objects.AirTurret) package Objects { import GameScene.*; import ObjectBase.*; 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); } } }//package Objects
Section 447
//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 448
//Bush1 (Objects.Bush1) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Bush1 extends SceneryBase { public function Bush1(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Bush1_constructor.baseim_embed, Bush1_constructor.LayerName, _arg2, _arg3); Bush1_constructor.setup(_arg1, this); } } }//package Objects
Section 449
//Bush2 (Objects.Bush2) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Bush2 extends SceneryBase { public function Bush2(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Bush2_constructor.baseim_embed, Bush2_constructor.LayerName, _arg2, _arg3); Bush2_constructor.setup(_arg1, this); } } }//package Objects
Section 450
//Bush3 (Objects.Bush3) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Bush3 extends SceneryBase { public function Bush3(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Bush3_constructor.baseim_embed, Bush3_constructor.LayerName, _arg2, _arg3); Bush3_constructor.setup(_arg1, this); } } }//package Objects
Section 451
//Bush4 (Objects.Bush4) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Bush4 extends SceneryBase { public function Bush4(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Bush4_constructor.baseim_embed, Bush4_constructor.LayerName, _arg2, _arg3); Bush4_constructor.setup(_arg1, this); } } }//package Objects
Section 452
//EnemyAce (Objects.EnemyAce) package Objects { import GameScene.*; import ObjectBase.*; 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 = "German"; } override public function maxHealth():int{ return (20); } override public function huntLength():int{ return (300); } } }//package Objects
Section 453
//EnemyPlane (Objects.EnemyPlane) package Objects { import GameScene.*; import ObjectBase.*; 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); } } }//package Objects
Section 454
//GermanBomber (Objects.GermanBomber) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class GermanBomber extends BomberBase { public function GermanBomber(_arg1:GameScene, _arg2:int, _arg3:int){ var _local4:Turret; side = "German"; super(_arg1, GermanBomber_constructor.baseim_embed, GermanBomber_constructor.LayerName, _arg2, _arg3); GermanBomber_constructor.setup(_arg1, this); _local4 = new Turret(_arg1, 0, 0); _local4.side = side; addChild(_local4); var _local5:Turret = new Turret(_arg1, 10, 0); _local5.rearAngle = -90; _local5.frontAngle = 90; _local5.side = side; addChild(_local5); } } }//package Objects
Section 455
//GoodPlane (Objects.GoodPlane) package Objects { import GameScene.*; import ObjectBase.*; 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"; } } }//package Objects
Section 456
//Ground (Objects.Ground) package Objects { import GameScene.*; import GameObject.*; import ObjectConstructors.*; public class Ground extends GameObject { 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); } } }//package Objects
Section 457
//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 (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:Projectile):void{ if (dead){ return; }; emitConditionalParticles("Hit", (_arg1.basex - basex), (_arg1.basey - basey)); super.damage(_arg1); if (dead){ emitConditionalParticles("gunnerdie"); }; } } }//package Objects
Section 458
//House1 (Objects.House1) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class House1 extends SceneryBase { public function House1(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, House1_constructor.baseim_embed, House1_constructor.LayerName, _arg2, _arg3); House1_constructor.setup(_arg1, this); } } }//package Objects
Section 459
//House2 (Objects.House2) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class House2 extends SceneryBase { public function House2(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, House2_constructor.baseim_embed, House2_constructor.LayerName, _arg2, _arg3); House2_constructor.setup(_arg1, this); } } }//package Objects
Section 460
//House3 (Objects.House3) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class House3 extends SceneryBase { public function House3(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, House3_constructor.baseim_embed, House3_constructor.LayerName, _arg2, _arg3); House3_constructor.setup(_arg1, this); } } }//package Objects
Section 461
//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 462
//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 = "English"; } override public function _update():void{ super._update(); } } }//package Objects
Section 463
//Scenery1 (Objects.Scenery1) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Scenery1 extends SceneryBase { public function Scenery1(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Scenery1_constructor.baseim_embed, Scenery1_constructor.LayerName, _arg2, _arg3); Scenery1_constructor.setup(_arg1, this); } } }//package Objects
Section 464
//Scenery2 (Objects.Scenery2) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Scenery2 extends SceneryBase { public function Scenery2(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Scenery2_constructor.baseim_embed, Scenery2_constructor.LayerName, _arg2, _arg3); Scenery2_constructor.setup(_arg1, this); } } }//package Objects
Section 465
//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 466
//Tree1 (Objects.Tree1) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Tree1 extends SceneryBase { public function Tree1(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Tree1_constructor.baseim_embed, Tree1_constructor.LayerName, _arg2, _arg3); Tree1_constructor.setup(_arg1, this); } } }//package Objects
Section 467
//Tree2 (Objects.Tree2) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Tree2 extends SceneryBase { public function Tree2(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Tree2_constructor.baseim_embed, Tree2_constructor.LayerName, _arg2, _arg3); Tree2_constructor.setup(_arg1, this); } } }//package Objects
Section 468
//Tree3 (Objects.Tree3) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class Tree3 extends SceneryBase { public function Tree3(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, Tree3_constructor.baseim_embed, Tree3_constructor.LayerName, _arg2, _arg3); Tree3_constructor.setup(_arg1, this); } } }//package Objects
Section 469
//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 470
//TwoPlayerPlane (Objects.TwoPlayerPlane) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class TwoPlayerPlane extends TwoPlayerBase { public function TwoPlayerPlane(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, TwoPlayerPlane_constructor.baseim_embed, TwoPlayerPlane_constructor.LayerName, _arg2, _arg3); TwoPlayerPlane_constructor.setup(_arg1, this); } } }//package Objects
Section 471
//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 472
//ZepPart2 (Objects.ZepPart2) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class ZepPart2 extends GondolaBase { public function ZepPart2(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, ZepPart2_constructor.baseim_embed, ZepPart2_constructor.LayerName, _arg2, _arg3); ZepPart2_constructor.setup(_arg1, this); } } }//package Objects
Section 473
//ZepPart3 (Objects.ZepPart3) package Objects { import GameScene.*; import ObjectBase.*; import ObjectConstructors.*; public class ZepPart3 extends GondolaBase { public function ZepPart3(_arg1:GameScene, _arg2:int, _arg3:int){ super(_arg1, ZepPart3_constructor.baseim_embed, ZepPart3_constructor.LayerName, _arg2, _arg3); ZepPart3_constructor.setup(_arg1, this); } } }//package Objects
Section 474
//Zeppelin (Objects.Zeppelin) package Objects { import GameScene.*; import flash.display.*; import Particles.*; import GameObject.*; import ObjectBase.*; import Tools.*; import Scenes.*; 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 dy:Number;// = 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:Projectile):void{ var _local8:GameObject; emitConditionalParticles("Hit", _arg1.basex, _arg1.basey, true); var _local2:BitmapData = Bitmap(obj).bitmapData; var _local3:Bitmap = new Embeds.shot_png(); var _local4:Number = (Math.random() * 40); 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.8; _local3.scaleY = 0.8; _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); var _local7:int; for each (_local8 in gs.objects) { if ((_local8 is ZeppelinObjectBase)){ if (!ZeppelinObjectBase(_local8).dead){ _local7++; }; }; }; if (((!(dead)) && ((_local7 == 0)))){ dead = true; oldExplosionX = ((_arg1.basex - basex) + (obj.width / 2)); oldExplosionY = ((_arg1.basey - basey) + (obj.height / 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:Particle; var _local10:Number; var _local11:GameObject; super._update(); if (dead){ deadProgress++; basey = (basey + dy); if (basey > (MainScene(gs).sceneMaxY - 80)){ 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)); emitConditionalParticles("ZepDestroy", _local7, _local8); _local9 = mainLayer.particles[(mainLayer.particles.length - 1)]; _local10 = Math.random(); _local9.StartScale = (_local9.StartScale * _local10); _local9.EndScale = (_local9.EndScale * _local10); drawToImage(new Embeds.smoke_a001_png(), (basex + _local7), (basey + _local8), 0, _local10, _local10, BlendMode.ERASE); _local3++; }; }; }; if (!gunnersDetermined){ for each (_local11 in gs.objects) { if ((_local11 is Gunner)){ if (_local1){ if (_local11.basex < _local1.basex){ _local2 = _local1; _local1 = Gunner(_local11); } else { _local2 = Gunner(_local11); }; } else { _local1 = Gunner(_local11); }; }; }; }; if (((_local2) && (_local1))){ _local1.rear = true; _local2.rear = false; gunnersDetermined = true; }; } public function isFinished():Boolean{ return ((deadProgress > 1200)); } } }//package Objects
Section 475
//Particle (Particles.Particle) package Particles { import flash.display.*; 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 lockTo:GameObject; public var x:Number;// = 0 public var red:Number;// = 1 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 animSpeed:int;// = 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 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 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 sind(_arg1:Number):Number{ return (Math.sin((_arg1 * (Math.PI / 180)))); } public function update():void{ var _local1:ParticleFilter; var _local2:int; 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){ x = lockTo.basex; y = lockTo.basey; }; 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 476
//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:int;// = 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 477
//ParticleFilter (Particles.ParticleFilter) package Particles { public class ParticleFilter { public function update(_arg1:Particle):void{ } } }//package Particles
Section 478
//ParticleFilterScaleIn (Particles.ParticleFilterScaleIn) package Particles { import Tools.*; public class ParticleFilterScaleIn extends ParticleFilter { public var Frames:Number;// = 0 override public function update(_arg1:Particle):void{ var _local2:Number = Interpolation.linearInterpolateLock(0, 1, (Number(_arg1.ticks) / Frames)); _arg1.baseScaleX = (_arg1.baseScaleX * _local2); _arg1.baseScaleY = (_arg1.baseScaleY * _local2); } } }//package Particles
Section 479
//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 480
//CustomPreloader (preload.CustomPreloader) package preload { import flash.events.*; import flash.display.*; import Tools.*; import flash.utils.*; public class CustomPreloader extends MovieClip { public var _mochiad:MovieClip; public var b:Bitmap; public var clip:MovieClip; public var _finished:Boolean;// = false public var _mochiad_loaded:Boolean;// = false public static var testing:Boolean = false; public static var corner_embed:Class = CustomPreloader_corner_embed; public static var demo:Boolean = false; public static var loadingImage:Class = CustomPreloader_loadingImage; public function CustomPreloader(){ var _local2:int; var _local3:Bitmap; super(); stop(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; addEventListener(Event.ENTER_FRAME, onEnterFrame); SplitTest.init(); Logging.Log("dogfight", "startload"); b = new loadingImage(); b.x = (400 - (b.width / 2)); b.y = (600 - 42); addChild(b); var _local1:int; while (_local1 <= 1) { _local2 = 0; while (_local2 <= 1) { _local3 = new corner_embed(); _local3.x = (_local1 * 800); _local3.y = (_local2 * 600); _local3.rotation = ((_local1 * 90) + (_local2 * 90)); if ((((_local1 == 0)) && ((_local2 == 1)))){ _local3.rotation = (_local3.rotation + 180); }; stage.addChild(_local3); _local2++; }; _local1++; }; if (!testing){ MochiAd.showPreGameAd({clip:root, id:"c3bca0f95057f5b7", res:"800x600", ad_finished:adfinished, unload:unload, no_bg:true}); }; } public function onEnterFrame(_arg1:Event):void{ graphics.clear(); var _local2:String = root.loaderInfo.url.split("/")[2]; if ((((_local2 == "rocksolidarcade.com")) || ((_local2 == "www.rocksolidarcade.com")))){ demo = false; } else { demo = true; }; if (testing){ if (root.loaderInfo.url == "file://E:\\FlashProjects\\PlaneShooter\\PlaneShooter.swf"){ demo = false; }; }; if (testing){ _finished = true; }; if ((((framesLoaded == totalFrames)) && (_finished))){ trace("finish"); Logging.Log("dogfight", "finishload", "hi2"); removeEventListener(Event.ENTER_FRAME, onEnterFrame); removeChild(b); nextFrame(); init(); }; } 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 unloadAd():void{ } public function unload():void{ } } }//package preload
Section 481
//CustomPreloader_corner_embed (preload.CustomPreloader_corner_embed) package preload { import mx.core.*; public class CustomPreloader_corner_embed extends BitmapAsset { } }//package preload
Section 482
//CustomPreloader_loadingImage (preload.CustomPreloader_loadingImage) package preload { import mx.core.*; public class CustomPreloader_loadingImage extends BitmapAsset { } }//package preload
Section 483
//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 == "meez")) || ((_local5 == "donnerwood")))){ demo = false; } else { demo = true; }; var _local6:Boolean; demo = false; 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 484
//CustomPreloader_corner_embed (RSASplash.CustomPreloader_corner_embed) package RSASplash { import mx.core.*; public class CustomPreloader_corner_embed extends BitmapAsset { } }//package RSASplash
Section 485
//CustomPreloader_intro (RSASplash.CustomPreloader_intro) package RSASplash { import mx.core.*; public class CustomPreloader_intro extends SoundAsset { } }//package RSASplash
Section 486
//CustomPreloader_loadingImage (RSASplash.CustomPreloader_loadingImage) package RSASplash { import mx.core.*; public class CustomPreloader_loadingImage extends BitmapAsset { } }//package RSASplash
Section 487
//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_embed:Class = Embeds.cloud1_png; public static var im2_embed:Class = Embeds.cloud1_png; public static var im3_embed:Class = Embeds.cloud1_png; public static var im4_embed:Class = Embeds.land_png; public static var im1:BitmapData = new Embeds.cloud1_png().bitmapData; public static var im2:BitmapData = new Embeds.cloud1_png().bitmapData; public static var im3:BitmapData = new Embeds.cloud1_png().bitmapData; public static var im4:BitmapData = new Embeds.land_png().bitmapData; 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 = [100798, 5880545, 11196394]; 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, "", -42, 135); _local4.baseRotation = 0; _local5 = new GameObjectFilterDampenOrigin(); _local4.addFilter(_local5); GameObjectFilterDampenOrigin(_local5).factor = 0.100000001; GameObjectFilterDampenOrigin(_local5).StickToTop = 0; GameObjectFilterDampenOrigin(_local5).StickToBottom = 0; _local5 = new GameObjectFilterStayOnScreen(); _local4.addFilter(_local5); _local4 = new GameObject(_arg1, im2_embed, "", 425, 19); _local4.baseRotation = 0; _local5 = new GameObjectFilterDampenOrigin(); _local4.addFilter(_local5); GameObjectFilterDampenOrigin(_local5).factor = 0.100000001; GameObjectFilterDampenOrigin(_local5).StickToTop = 0; GameObjectFilterDampenOrigin(_local5).StickToBottom = 0; _local5 = new GameObjectFilterStayOnScreen(); _local4.addFilter(_local5); _local4 = new GameObject(_arg1, im3_embed, "", 731, 374); _local4.baseRotation = 0; _local5 = new GameObjectFilterDampenOrigin(); _local4.addFilter(_local5); GameObjectFilterDampenOrigin(_local5).factor = 0.100000001; GameObjectFilterDampenOrigin(_local5).StickToTop = 0; GameObjectFilterDampenOrigin(_local5).StickToBottom = 0; _local5 = new GameObjectFilterStayOnScreen(); _local4.addFilter(_local5); _local4 = new GameObject(_arg1, im4_embed, "", 400, 505); _local4.baseRotation = 0; _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 488
//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 489
//MainMenu (Scenes.MainMenu) package Scenes { import GameScene.*; import flash.display.*; import GameObject.*; import Layout.*; import flash.net.*; import Audio.*; import Tools.*; import GameConfig.*; import GlobalSetup.*; import SceneConstructors.*; import preload.*; public class MainMenu extends GameScene { public var layer:GUILayer; public static var highestLevel:int = 0; public static var controlsReversed2:Boolean = false; public static var buttonsY:Number = 350; public static var buttonsX:Number = 400; public static var controlsReversed:Boolean = false; public function optionsButtons():Array{ var _local1:GameObject = addButton("Controls"); var _local2:GameObject = addButton("Instructions"); var _local3:GameObject = addButton("Back"); _local3.name = "OK"; var _local4:Array = [_local1, _local2, _local3]; var _local5:Layout = Layout.Vert(_local4, 6, buttonsX, buttonsY); LayerFilter.applySlideIn(_local5); return (_local4); } 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("Single Player Controls"), createText("Up and Down arrow keys to move. Space to fire.")]; var _local3:Layout = Layout.Vert(_local2, 2); var _local4:Array = [createText("Two Player Controls"), createText("Player 1: Up and Down arrow keys to move. Enter to fire."), createText("Player 2: W and S keys to move. Left Shift to fire.")]; 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 mainButtons():Array{ var _local1:GameObject = addButton("Play"); var _local2:GameObject = addButton("Two Player"); var _local3:GameObject = addButton("Options"); var _local4:GameObject = addButton("link", Embeds.menu_button_link_png); var _local5:GameObject = addButton("yoursite", Embeds.yoursite_png); _local5.stripText(); _local5.basex = 400; _local5.basey = 540; LayerFilter.applySlideIn(_local5, 0, 0, 0, true); _local4.stripText(); var _local6:Array = [_local1, _local2, _local3, _local4]; var _local7:Layout = Layout.Vert(_local6, 6, buttonsX, (buttonsY - 32)); LayerFilter.applySlideIn(_local7); return ([_local6, _local5]); } 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); } override public function _update():void{ var _local3:MainScene; var _local4:MainScene; var _local5:GameObject; var _local6:GameObject; var _local7:Boolean; var _local8:Boolean; SoundPause.updateSoundPause(this); if (layer.buttonHit("Play")){ if (highestLevel == 0){ if (CustomPreloader.demo){ Net.openURL("http://www.rocksolidarcade.com/embed/dogfight"); } else { pushScene(new MainScene(), true); }; Logging.Log("dogfight", "play", "0"); } else { layer.push(startButtons); }; }; var _local1:int; while (_local1 < 10) { if (layer.buttonHit(("Start" + _local1))){ _local3 = new MainScene(); _local3.level = _local1; if (CustomPreloader.demo){ Net.openURL("http://www.rocksolidarcade.com/embed/dogfight"); } else { pushScene(_local3, true); }; Logging.Log("dogfight", "play", String(_local1)); }; _local1++; }; if (layer.buttonHit("Two Player")){ if (CustomPreloader.demo){ Net.openURL("http://www.rocksolidarcade.com/embed/dogfight"); } else { _local4 = new MainScene(); _local4.twoPlayer = true; pushScene(_local4, 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 _local2:int; while (_local2 < 2) { _local5 = layer.getButton(("Up" + _local2)); _local6 = layer.getButton(("Down" + _local2)); if (((_local5) && (_local6))){ _local7 = _local5.mHit(); _local8 = _local6.mHit(); if (((_local7) || (_local8))){ _local5.setButtonOn(_local7); _local6.setButtonOn(_local8); if (_local2 == 0){ controlsReversed = _local8; } else { controlsReversed2 = _local8; }; writePrefs(); }; }; _local2++; }; } public function _writePrefs():void{ return (writePrefs()); } public function controls():Array{ var _local5:GameObject; var _local6:Class; var _local7:Class; var _local8:GameObject; var _local9:GameObject; var _local10:Boolean; var _local1:Array = new Array(); var _local2:int; while (_local2 < 2) { _local5 = new GameObject(this, null, "TextLayer", 0, 0); _local5.setText(("Player " + (_local2 + 1)), 48); _local5.baseWidth = (_local5.baseWidth - 8); _local5.baseHeight = (_local5.baseHeight + 5); _local6 = Embeds.button_control_2_png; _local7 = Embeds.button_control_1_png; if (_local2 == 1){ _local6 = Embeds.button_control_b_png; _local7 = Embeds.button_control_a_png; }; _local8 = addButton(("Up" + _local2), _local6, _local6); _local9 = addButton(("Down" + _local2), _local7, _local7); _local8.stripText(); _local9.stripText(); if (_local2 == 0){ _local10 = controlsReversed; } else { _local10 = controlsReversed2; }; _local8.setButtonOn(!(_local10)); _local9.setButtonOn(_local10); _local1[_local2] = Layout.Vert([_local5, _local8, _local9], 6); LayerFilter.applySlideIn(_local1[_local2], ((_local2 * 2) - 1)); _local2++; }; var _local3:GameObject = addButton("OK"); LayerFilter.applySlideIn(_local3, 1, 0, 400); var _local4:Array = [Layout.Horiz(_local1, 96), _local3]; Layout.Vert(_local4, -32, buttonsX, buttonsY); return (_local4); } 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 addButton(_arg1:String, _arg2:Class=null, _arg3:Class=null):GameObject{ if (_arg2 == null){ _arg2 = Embeds.menu_button_png; }; var _local4:GameObject = new GameObject(this, SimpleButton, "TextLayer", 0, 0); _local4.setupButton(_arg2, _arg1, _arg3); if (_arg3 != null){ _local4.showButtonOnOutline = true; }; return (_local4); } public function _readPrefs():void{ return (readPrefs()); } public function startButtons():Array{ var _local7:Array; var _local8:int; var _local9:int; var _local10:String; var _local1:Array = new Array(); var _local2:int; while (_local2 < 2) { _local7 = new Array(); _local8 = 0; while (_local8 < 5) { _local9 = (_local8 + (_local2 * 5)); _local10 = MainScene.levelNames[_local9]; if (_local9 > highestLevel){ _local10 = "Locked!"; }; _local7[_local8] = addButton(_local10); _local7[_local8].name = ("Start" + _local9); if (_local9 > highestLevel){ _local7[_local8].disableButton(); }; _local8++; }; _local1[_local2] = Layout.Vert(_local7); LayerFilter.applySlideIn(_local1[_local2], ((_local2 * 2) - 1)); _local2++; }; var _local3:Layout = Layout.Horiz(_local1); var _local4:GameObject = addButton("Back"); _local4.name = "OK"; LayerFilter.applySlideIn(_local4, 1, 0, 400); var _local5:Array = [_local3, _local4]; var _local6:Layout = Layout.Vert(_local5, 16, buttonsX, buttonsY); return (_local6.getGameObjects()); } public static function writePrefs():void{ 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"; }; } 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["controls"] == "reversed"){ controlsReversed = true; } else { controlsReversed = false; }; if (_local1.data["controls2"] == "reversed"){ controlsReversed2 = true; } else { controlsReversed2 = false; }; } } }//package Scenes
Section 490
//MainScene (Scenes.MainScene) package Scenes { import GameScene.*; import flash.display.*; import GameObject.*; import NagScreen.*; import Audio.*; import ObjectBase.*; import Tools.*; import GameConfig.*; import GlobalSetup.*; import Objects.*; import SceneConstructors.*; import Levels.*; public class MainScene extends GameScene { public var leftScore:int;// = 0 public var twoPlayer:Boolean;// = false public var cam:GameSceneCamera; public var level:int;// = 0 public var leftText:GameObject; public var ZepA:GameObject; public var rightScore:int;// = 0 public var inSuccess:int;// = 0 public var sceneMaxX:Number;// = 2400 public var player:PlayerPlane; public var inFailure:int;// = 0 public var sceneMaxY:Number;// = 1200 public var rightText:GameObject; public var sceneMinX:Number;// = -400 public var sceneMinY:Number;// = -400 var ZepB:Zeppelin; 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 function createHeader(_arg1:GameObject, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int=-1):void{ var _local9:GameObjectFilterFadeInOut = new GameObjectFilterFadeInOut(); _local9.FadeIn = 1; _local9.FadeInDelay = _arg4; _local9.FadeInDuration = _arg5; _local9.FadeOut = 1; _local9.FadeOutTime = _arg6; _local9.FadeOutDuration = _arg7; _arg1.setGlobal(true); _arg1.basex = _arg2; _arg1.basey = _arg3; _arg1.addFilter(_local9); } public function quitHit():void{ NagScreen.create(this, MainMenu); } public function floor():Number{ return ((sceneMaxY - 20)); } public function successUpdate():void{ var _local1:int; var _local2:int; var _local3:GameObject; if (paused){ return; }; if (inSuccess > 0){ inSuccess++; if (inSuccess == 100){ if ((((level < 9)) || (twoPlayer))){ swapToLevel((level + 1)); inSuccess = 0; }; }; if ((((((level == 9)) && (!(twoPlayer)))) && ((inSuccess == 320)))){ NagScreen.create(this, MainMenu); }; } else { if (inFailure > 0){ inFailure++; if (inFailure == 100){ swapToLevel(level); inFailure = 0; }; } else { if (((!(twoPlayer)) && ((countEnemies() == 0)))){ inSuccess = 1; fadeWith((("MISSION " + (level + 1)) + " COMPLETE"), (level == 9)); GameSoundScene.forName("main").insertBreak(Sounds.levelComplete); Logging.Log("dogfight", "finish", String(level)); } else { if (!twoPlayer){ if (((player.dead) || (player._removed))){ inFailure = 1; Logging.Log("dogfight", "dead", String(level)); GameSoundScene.forName("main").insertDeadBreak(2000); if (player.crashed){ fadeWith("YOU CRASHED!"); } else { fadeWith("YOU WERE SHOT DOWN!"); }; }; } else { _local1 = 0; _local2 = 0; for each (_local3 in objects) { if ((_local3 is Plane)){ if ((_local3 is PlayerBase)){ _local1++; }; if ((_local3 is TwoPlayerBase)){ _local2++; }; }; }; if ((((_local1 == 0)) || ((_local2 == 0)))){ inSuccess = 1; GameSoundScene.forName("main").insertBreak(Sounds.levelComplete); if ((((_local1 == 0)) && ((_local2 == 0)))){ fadeWith("YOU BOTH DIED!?"); } else { if (_local1 == 0){ fadeWith("PLAYER TWO WINS!"); rightScore = (rightScore + 1); Logging.Log("dogfight", "2pfinish"); } else { if (_local2 == 0){ fadeWith("PLAYER ONE WINS!"); leftScore = (leftScore + 1); Logging.Log("dogfight", "2pfinish"); }; }; }; }; }; }; }; }; } override public function init():void{ 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); rightText = new GameObject(this, null, "TextLayer", (800 - 8), 0); rightText.setHandle(1, 0); rightText.setGlobal(true); leftText.setText("LEFT", 28); rightText.setText("RIGHT", 28); } public function countEnemies():int{ var _local2:GameObject; var _local1:int; for each (_local2 in objects) { if ((_local2 is ObjectBase)){ if ((((ObjectBase(_local2).side == "German")) || ((_local2 is ZeppelinObjectBase)))){ if ((((((((_local2 is AAGun)) || ((_local2 is ZeppelinObjectBase)))) || ((_local2 is EnemyPlaneBase)))) || ((_local2 is BomberBase)))){ _local1++; if ((_local2 is Gunner)){ if (Gunner(_local2).dead){ _local1--; }; }; }; }; }; }; for each (_local2 in objects) { if ((_local2 is Zeppelin)){ if (!Zeppelin(_local2).isFinished()){ _local1++; }; }; }; return (_local1); } public function fadeWith(_arg1:String, _arg2:Boolean=false):void{ if (_arg2){ _arg1 = "CONGRATULATIONS"; }; var _local3:GameObject = new GameObject(this, MovieClip, "TextLayer", 0, 0); _local3.setGlobal(true); MovieClip(_local3.obj).addChild(new Embeds.mission_complete_jpg()); var _local4:GameObjectFilterFadeInOut = new GameObjectFilterFadeInOut(); _local4.FadeIn = 1; _local4.FadeInDuration = 50; _local4.FadeOut = 1; _local4.FadeOutDuration = 30; _local4.FadeOutTime = 200; if (_arg2){ _local4.FadeOutTime = 450; }; _local3.addFilter(_local4); if (_arg2){ createHeaderText(_arg1, 400, 300, 50, 30, 320, 30); createHeaderText("You have completed Dogfight!", 400, 360, 50, 30, 320, 30); } else { createHeaderText(_arg1, 400, 300, 50, 30, 170, 30); }; } public function _writePrefs():void{ MainMenu.writePrefs(); } public function createHeaderText(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int=-1):GameObject{ var _local9:GameObject = new GameObject(this, null, "TextLayer", _arg2, _arg3); _local9.setGlobal(true); _local9.setText(_arg1, _arg8); createHeader(_local9, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8); return (_local9); } override public function _update():void{ var _local1:GameObject; var _local2:int; var _local3:GameObject; var _local4:Number; var _local5:Number; if (twoPlayer){ leftText.setText(("Player One: " + leftScore)); rightText.setText(("Player Two: " + rightScore)); } else { _local2 = countEnemies(); if (_local2 == 1){ leftText.setText("1 Enemy Left"); } else { leftText.setText((countEnemies() + " Enemies Left")); }; rightText.setText(("Level " + (level + 1))); }; SoundPause.updateSoundPause(this); if (((Input.i.keyHit(187)) && (GameConfig.inDev))){ level++; swapToLevel(level); GameSoundScene.forName("main").insertBreak(Sounds.levelComplete); }; if (!player){ swapToLevel(level); }; cam.position((player.basex - 400), (player.basey - 300)); cam.minX = sceneMinX; cam.maxX = (sceneMaxX - 800); cam.minY = sceneMinY; cam.maxY = (sceneMaxY - 600); pushCamera(cam); for each (_local1 in objects) { if ((_local1 is Zeppelin)){ if (!Zeppelin(_local1).dead){ for each (_local3 in objects) { if ((_local3 is Plane)){ if (_local1.collidesWith(_local3)){ Plane(_local3).damage(null); }; }; }; }; }; }; if (!paused){ _local4 = 9999999; for each (_local3 in objects) { if ((_local3 is BomberBase)){ if (_local4 > _local3.basex){ _local4 = _local3.basex; }; }; }; for each (_local3 in objects) { if ((_local3 is BomberBase)){ _local5 = (BomberBase(_local3).basex - BomberBase(_local3).lastX); sceneMinX = (sceneMinX + _local5); sceneMaxX = (sceneMaxX + _local5); break; }; }; if (_local4 < 99999){ if (player.basex < (_local4 - 200)){ if ((player.basex - sceneMinX) > 400){ sceneMinX = (player.basex - 400); }; }; }; }; successUpdate(); } public function showLevelName(_arg1:String, _arg2:int=0):void{ var _local3:int = (300 + _arg2); if (level == 9){ _local3 = (_local3 + 100); }; var _local4:GameObject = createHeaderText(_arg1, 400, 112, (0 + _arg2), 50, _local3, 50); if (level == 9){ createHeader(new GameObject(this, Embeds.zep_button_png, "TextLayer", 0, 0), 400, 232, (0 + _arg2), 50, _local3, 50, 38); }; } public function _readPrefs():void{ MainMenu.readPrefs(); } public function swapToLevel(_arg1:int):void{ var _local2:GameObject; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local8:twoplayer; var _local9:DefaultSet; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:GameObjectFilterStayOnScreen; if (!twoPlayer){ if (MainMenu.highestLevel < _arg1){ MainMenu.highestLevel = _arg1; _writePrefs(); }; }; for each (_local2 in objects) { if ((_local2 is ObjectBase)){ _local2.remove(); } else { if ((_local2 is Ground)){ _local2.remove(); }; }; }; for each (_local2 in objects) { _local2.update(); }; if (twoPlayer){ _local8 = new twoplayer(); _local8.init(Random.randInt(0, 4), this); } else { _local9 = new DefaultSet(); _local9.init(_arg1, this); }; for each (_local2 in objects) { if ((_local2 is PlayerPlane)){ player = PlayerPlane(_local2); }; }; _local3 = 1000; _local4 = 1000; _local5 = -1000; _local6 = -1000; for each (_local2 in objects) { if ((_local2 is ObjectBase)){ if ((_local2 is SceneryBase)){ } else { if ((_local2 is levelcloud)){ } else { _local10 = ((_local2.basex - (_local2.baseWidth / 2)) - 400); _local11 = ((_local2.basex + (_local2.baseWidth / 2)) + 400); _local12 = ((_local2.basey - (_local2.baseHeight / 2)) - 300); _local13 = ((_local2.basey + (_local2.baseHeight / 2)) + 300); if (_local10 < _local3){ _local3 = _local10; }; if (_local12 < _local4){ _local4 = _local12; }; if (_local11 > _local5){ _local5 = _local11; }; if (_local13 > _local6){ _local6 = _local13; }; }; }; }; }; sceneMinX = _local3; sceneMinY = _local4; sceneMaxX = _local5; sceneMaxY = _local6; for each (_local2 in objects) { if ((_local2 is Ground)){ sceneMaxY = (_local2.basey + (_local2.baseHeight / 2)); sceneMinY = (sceneMaxY - 600); }; }; flushParticles(); level = _arg1; if (!twoPlayer){ if (levelNames[level]){ if (((!((inSuccess == 0))) || (!((inFailure == 0))))){ showLevelName(levelNames[level], 90); } else { showLevelName(levelNames[level], 0); }; }; }; if (twoPlayer){ _local14 = (((sceneMaxX - sceneMinX) - 800) / 2); sceneMaxX = (sceneMaxX - _local14); sceneMinX = (sceneMinX + _local14); for each (_local2 in objects) { if ((_local2 is FriendlyPlaneBase)){ FriendlyPlaneBase(_local2).canHunt = false; }; }; for each (_local2 in objects) { if ((_local2 is PlayerBase)){ PlayerBase(_local2).twoPlayer = true; }; }; for each (_local2 in objects) { if ((_local2 is TwoPlayerBase)){ Plane(_local2).flip(); }; }; for each (_local2 in objects) { if ((_local2 is AIPlaneBase)){ AIPlaneBase(_local2).multipleHunt = true; }; }; }; var _local7:Boolean; if (_local9){ if (_local9.DormantEnemies == "true"){ for each (_local2 in objects) { if ((_local2 is SceneryBase)){ _local15 = new GameObjectFilterStayOnScreen(); _local15.overridedx = 1600; _local2.addFilter(_local15); }; }; _local7 = true; }; }; for each (_local2 in objects) { if ((_local2 is EnemyPlaneBase)){ EnemyPlaneBase(_local2).canHunt = false; if (_local7){ EnemyPlaneBase(_local2).passive = true; EnemyPlaneBase(_local2).canHunt = true; } else { EnemyPlaneBase(_local2).flip(); }; }; }; } } }//package Scenes
Section 491
//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 492
//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)); }; 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 { if (lastSharedObject){ lastSharedObject.flush((0x0100 * 0x0400)); }; } 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 = 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]){ _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 493
//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 setup():void{ if (!_setup){ return; }; _setup = true; ExternalInterface.addCallback("rsaGetText", receive); } public static function sendMessage(_arg1:String, _arg2:String=""):String{ var o:Object; var msg = _arg1; var args = _arg2; setup(); try { try { o = ExternalInterface.call(msg, args); if ((o is String)){ return (String(o)); } else { return (""); }; } catch(err2:Error) { return (""); }; } catch(err:SecurityError) { return (""); }; return (""); } } }//package Tools
Section 494
//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 495
//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 496
//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)]); _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 497
//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{ keyStatus[_arg1.keyCode] = true; keysHit[_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 498
//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 499
//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 500
//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 501
//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 502
//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 503
//SafeRequest (Tools.SafeRequest) package Tools { import flash.events.*; import flash.net.*; public class SafeRequest { public var stream:URLStream; public var data:String;// = "" public var finished:Boolean;// = false public var finishFunc:Function;// = null public var req:URLRequest; public function SafeRequest(_arg1:String, _arg2:Function=null){ var url = _arg1; var finish = _arg2; super(); stream = new URLStream(); finishFunc = finish; try { stream.load(new URLRequest(url)); stream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); stream.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); stream.addEventListener(Event.COMPLETE, complete); } catch(error:Error) { }; } public function securityErrorHandler(_arg1:SecurityErrorEvent):void{ } public function ioErrorHandler(_arg1:IOErrorEvent):void{ } public function complete(_arg1:Event):void{ finished = true; data = ""; while (stream.bytesAvailable > 0) { data = (data + stream.readUTFBytes(1)); }; if (finishFunc != null){ finishFunc(); }; } } }//package Tools
Section 504
//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 505
//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 506
//_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 507
//_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 508
//_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 509
//_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 510
//_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 511
//_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 512
//_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 513
//_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 514
//_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 515
//_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 516
//_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 517
//_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 518
//_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 519
//_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 520
//_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 521
//_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 522
//_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 523
//_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 524
//_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 525
//_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 526
//_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 527
//_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 528
//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 529
//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 530
//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 531
//Main (Main) package { import GameScene.*; import flash.display.*; import flash.text.*; import Tools.*; import GameConfig.*; public class Main extends Sprite { 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; super(); Font.registerFont(mainFont); 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 532
//Main_mainFont (Main_mainFont) package { import mx.core.*; public class Main_mainFont extends FontAsset { } }//package
Section 533
//MochiAd (MochiAd) package { import flash.events.*; import flash.display.*; import flash.system.*; import flash.net.*; import flash.utils.*; public class MochiAd { public static function getVersion():String{ return ("2.1"); } public static function showTimedAd(_arg1:Object):void{ MochiAd.showInterLevelAd(_arg1); } public static function _allowDomains(_arg1:String):String{ var _local2:String = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function load(_arg1:Object):MovieClip{ var clip:Object; var mc:MovieClip; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var f:Function; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; if (clip._mochiad_loaded){ return (null); }; var depth:Number = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); var wh:Array = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; }; var lv:URLVariables = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; lv.lc = name; lv.st = getTimer(); loader = new Loader(); f = function (_arg1:Object):void{ mc._mochiad_ctr_failed = true; }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); g = function (_arg1:Object):void{ MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function sendHighScore(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip = MochiAd._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["sendHighScore", _arg1], _arg2, _arg3); return (true); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; return (_local3); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; if (MovieClip(_arg1).contains(_arg1._mochiad)){ _arg1.removeChild(_arg1._mochiad); }; if (_arg1._mochiad_loaded){ delete _arg1._mochiad_loaded; }; if (_arg1._mochiad){ delete _arg1._mochiad; }; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; chk["onEnterFrame"] = function ():void{ var _local4:Number; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = _local1.loaderInfo.bytesTotal; if ((((_local4 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ _local3 = true; }; }; }; if ((((_local2 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local6:Array; var _local3:Object = _arg2.getBounds(_arg2.root); var _local4:Number = 0; var _local5:Number = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _loadCommunicator(_arg1:Object):MovieClip{ var mc:MovieClip; var k:String; var lc:LocalConnection; var name:String; var req:URLRequest; var loader:Loader; var options = _arg1; var DEFAULTS:Object = {com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); var clip:Object = options.clip; var clipname:String = ("_mochiad_com_" + options.id); if (!MochiAd._isNetworkAvailable()){ return (null); }; if (clip[clipname]){ return (clip[clipname]); }; var server:String = (options.com_server + options.id); MochiAd._allowDomains(server); delete options.id; delete options.com_server; var depth:Number = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, clipname, depth); var lv:URLVariables = new URLVariables(); for (k in options) { lv[k] = options[k]; }; lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.name = name; mc.lc = lc; lv.lc = name; mc._id = 0; mc._queue = []; mc.rpcResult = function (_arg1:Object):void{ _arg1 = parseInt(_arg1.toString()); var _local3:Array = mc._callbacks[_arg1]; if (typeof(_local3) == "undefined"){ return; }; delete mc._callbacks[_arg1]; var _local4:Array = []; var _local5:Number = 2; while (_local5 < _local3.length) { _local4.push(_local3[_local5]); _local5++; }; _local5 = 1; while (_local5 < arguments.length) { _local4.push(arguments[_local5]); _local5++; }; var _local6:Object = _local3[1]; var _local7:Object = _local3[0]; if (((_local7) && ((typeof(_local6) == "string")))){ _local6 = _local7[_local6]; }; if (typeof(_local6) == "function"){ _local6.apply(_local7, _local4); }; }; mc._didConnect = function (_arg1:String):void{ var _local5:Array; mc._endpoint = _arg1; var _local2:Array = mc._queue; delete mc._queue; var _local3:Function = mc.doSend; var _local4:Number = 0; while (_local4 < _local2.length) { _local5 = _local2[_local4]; _local3.apply(this, _local5); _local4++; }; }; mc.doSend = function (_arg1:Array, _arg2:Object, _arg3:Object):void{ var _local7:Array; var _local8:Number; if (mc._endpoint == null){ _local7 = []; _local8 = 0; while (_local8 < arguments.length) { _local7.push(arguments[_local8]); _local8++; }; mc._queue.push(_local7); return; }; mc._id = (mc._id + 1); var _local5:Number = mc._id; mc._callbacks[_local5] = [_arg2, ((_arg3) || (_arg2))]; var _local6:LocalConnection = new LocalConnection(); _local6.send(mc._endpoint, "rpc", _local5, _arg1); }; mc._callbacks = {}; mc._callbacks[0] = [mc, "_didConnect"]; lv.st = getTimer(); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader = new Loader(); loader.load(req); mc.addChild(loader); mc._mochiad_com = loader; return (mc); } public static function showPreGameAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var complete:Boolean; var unloaded:Boolean; var r:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:10197927, background:0xFFFFFF, outline:16098643, ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ var fn:Function = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4); bar.x = 10; bar.y = (h - 20); var bar_color:Number = options.color; delete options.color; var bar_background:Number = options.background; delete options.background; var bar_outline:Number = options.outline; delete options.outline; var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1); var backing:Object = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo((w - 20), 0); backing.lineTo((w - 20), 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2); var inside:Object = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3); var outline:Object = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo((w - 20), 0); outline.lineTo((w - 20), 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; var f:Function = function (_arg1:Event):void{ complete = true; if (unloaded){ MochiAd.unload(clip); }; }; clip.loaderInfo.addEventListener(Event.COMPLETE, f); if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local11:Number; if (!this.parent.parent){ delete this["onEnterFrame"]; return; }; var _local1:Object = this.parent.parent.root; var _local2:Object = this.parent._mochiad_ctr; var _local3:Number = (getTimer() - this.started); var _local4:Boolean; var _local5:Number = _local1.loaderInfo.bytesTotal; var _local6:Number = _local1.loaderInfo.bytesLoaded; var _local7:Number = ((100 * _local6) / _local5); var _local8:Number = ((100 * _local3) / chk.ad_msec); var _local9:Object = this._mochiad_bar._inside; var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); if (!chk.showing){ _local11 = _local2.loaderInfo.bytesTotal; if ((((_local11 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local3 > chk.ad_timeout){ _local4 = true; }; }; }; if ((((_local3 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ MochiAd.showPreGameAd(_arg1); } public static function fetchHighScores(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip = MochiAd._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["fetchHighScores", _arg1], _arg2, _arg3); return (true); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var f:Function; var mc = _arg1; f = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { mc.removeEventListener(Event.ENTER_FRAME, f); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package
Section 534
//Sounds (Sounds) package { import Audio.*; public class Sounds { public static var planeCrash_embed:Class = Sounds_planeCrash_embed; public static var shot_1_embed:Class = Sounds_shot_1_embed; public static var shot_2_embed:Class = Sounds_shot_2_embed; public static var shot_3_embed:Class = Sounds_shot_3_embed; public static var shot:GameSound = GameSound.forEmbedArray(shot_embed, 0.600000024, 0); public static var planeFalling:GameSound = GameSound.forEmbed(planeFalling_embed, 1, 0); public static var planeIdle:GameSound = GameSound.forEmbed(planeIdle_embed, 0.100000001, 0); public static var hit:GameSound = GameSound.forEmbedArray(hit_embed, 0.200000003, 0); public static var mainLoop_embed:Class = Sounds_mainLoop_embed; public static var zepExplosion_embed:Class = Sounds_zepExplosion_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 planeFalling_embed:Class = Sounds_planeFalling_embed; public static var hit_1_embed:Class = Sounds_hit_1_embed; public static var hit_2_embed:Class = Sounds_hit_2_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 zepExplosion:GameSound = GameSound.forEmbed(zepExplosion_embed, 0.5, 0); public static var levelComplete_embed:Class = Sounds_levelComplete_embed; public static var mainLoop:GameSound = GameSound.forEmbed(mainLoop_embed, 0.400000006, 0); } }//package
Section 535
//Sounds_hit_1_embed (Sounds_hit_1_embed) package { import mx.core.*; public class Sounds_hit_1_embed extends SoundAsset { } }//package
Section 536
//Sounds_hit_2_embed (Sounds_hit_2_embed) package { import mx.core.*; public class Sounds_hit_2_embed extends SoundAsset { } }//package
Section 537
//Sounds_levelComplete_embed (Sounds_levelComplete_embed) package { import mx.core.*; public class Sounds_levelComplete_embed extends SoundAsset { } }//package
Section 538
//Sounds_mainLoop_embed (Sounds_mainLoop_embed) package { import mx.core.*; public class Sounds_mainLoop_embed extends SoundAsset { } }//package
Section 539
//Sounds_planeCrash_embed (Sounds_planeCrash_embed) package { import mx.core.*; public class Sounds_planeCrash_embed extends SoundAsset { } }//package
Section 540
//Sounds_planeFalling_embed (Sounds_planeFalling_embed) package { import mx.core.*; public class Sounds_planeFalling_embed extends SoundAsset { } }//package
Section 541
//Sounds_planeIdle_embed (Sounds_planeIdle_embed) package { import mx.core.*; public class Sounds_planeIdle_embed extends SoundAsset { } }//package
Section 542
//Sounds_shot_1_embed (Sounds_shot_1_embed) package { import mx.core.*; public class Sounds_shot_1_embed extends SoundAsset { } }//package
Section 543
//Sounds_shot_2_embed (Sounds_shot_2_embed) package { import mx.core.*; public class Sounds_shot_2_embed extends SoundAsset { } }//package
Section 544
//Sounds_shot_3_embed (Sounds_shot_3_embed) package { import mx.core.*; public class Sounds_shot_3_embed extends SoundAsset { } }//package
Section 545
//Sounds_zepExplosion_embed (Sounds_zepExplosion_embed) package { import mx.core.*; public class Sounds_zepExplosion_embed extends SoundAsset { } }//package

Library Items

Symbol 1 Sound {RSASplash.CustomPreloader_intro} [RSASplash.CustomPreloader_intro]
Symbol 2 Bitmap {RSASplash.CustomPreloader_loadingImage}
Symbol 3 Bitmap {preload.CustomPreloader_corner_embed}
Symbol 4 Sound {Sounds_planeIdle_embed} [Sounds_planeIdle_embed]
Symbol 5 Sound {Sounds_hit_1_embed} [Sounds_hit_1_embed]
Symbol 6 Sound {Sounds_levelComplete_embed} [Sounds_levelComplete_embed]
Symbol 7 Sound {Sounds_shot_3_embed} [Sounds_shot_3_embed]
Symbol 8 Sound {Sounds_shot_1_embed} [Sounds_shot_1_embed]
Symbol 9 Sound {Sounds_zepExplosion_embed} [Sounds_zepExplosion_embed]
Symbol 10 Sound {Sounds_shot_2_embed} [Sounds_shot_2_embed]
Symbol 11 Sound {Sounds_planeCrash_embed} [Sounds_planeCrash_embed]
Symbol 12 Sound {Sounds_mainLoop_embed} [Sounds_mainLoop_embed]
Symbol 13 Sound {Sounds_hit_2_embed} [Sounds_hit_2_embed]
Symbol 14 Sound {Sounds_planeFalling_embed} [Sounds_planeFalling_embed]
Symbol 15 Bitmap {GlobalSetup.Embeds_smoke_d005_png}
Symbol 16 Bitmap {GlobalSetup.Embeds_p2_roll023_png}
Symbol 17 Bitmap {GlobalSetup.Embeds_p1_roll011_png}
Symbol 18 Bitmap {GlobalSetup.Embeds_p1_roll021_png}
Symbol 19 Bitmap {GlobalSetup.Embeds_gunner006_png}
Symbol 20 Bitmap {GlobalSetup.Embeds_gunner003_png}
Symbol 21 Bitmap {GlobalSetup.Embeds_bush_4_png}
Symbol 22 Bitmap {GlobalSetup.Embeds_zeppelin_png}
Symbol 23 Bitmap {GlobalSetup.Embeds_ace_e_roll022_png}
Symbol 24 Bitmap {GlobalSetup.Embeds_scenery4_png}
Symbol 25 Bitmap {GlobalSetup.Embeds_p1_roll003_png}
Symbol 26 Bitmap {GlobalSetup.Embeds_smoke_d003_png}
Symbol 27 Bitmap {GlobalSetup.Embeds_ace_g_roll025_png}
Symbol 28 Bitmap {GlobalSetup.Embeds_scenery3_png}
Symbol 29 Bitmap {GlobalSetup.Embeds_smoke_c001_png}
Symbol 30 Bitmap {GlobalSetup.Embeds_smoke_a012_png}
Symbol 31 Bitmap {GlobalSetup.Embeds_ace_e_roll012_png}
Symbol 32 Bitmap {GlobalSetup.Embeds_bush_2_png}
Symbol 33 Bitmap {GlobalSetup.Embeds_gunner005_png}
Symbol 34 Bitmap {GlobalSetup.Embeds_p2_roll024_png}
Symbol 35 Bitmap {GlobalSetup.Embeds_smoke_c009_png}
Symbol 36 Bitmap {GlobalSetup.Embeds_smoke_a011_png}
Symbol 37 Bitmap {GlobalSetup.Embeds_button_control_1_png}
Symbol 38 Bitmap {GlobalSetup.Embeds_ace_g_roll001_png}
Symbol 39 Bitmap {GlobalSetup.Embeds_icon_music_png}
Symbol 40 Bitmap {GlobalSetup.Embeds_p1_roll027_png}
Symbol 41 Bitmap {GlobalSetup.Embeds_planecrash_png}
Symbol 42 Bitmap {GlobalSetup.Embeds_smoke_a006_png}
Symbol 43 Bitmap {GlobalSetup.Embeds_ace_e_roll004_png}
Symbol 44 Bitmap {GlobalSetup.Embeds_ace_g_roll029_png}
Symbol 45 Bitmap {GlobalSetup.Embeds_ace_e_roll019_png}
Symbol 46 Bitmap {GlobalSetup.Embeds_ace_e_roll015_png}
Symbol 47 Bitmap {GlobalSetup.Embeds_smoke_a008_png}
Symbol 48 Bitmap {GlobalSetup.Embeds_bush_3_png}
Symbol 49 Bitmap {GlobalSetup.Embeds_plane_prop003_png}
Symbol 50 Bitmap {GlobalSetup.Embeds_p1_roll002_png}
Symbol 51 Bitmap {GlobalSetup.Embeds_smoke_c011_png}
Symbol 52 Bitmap {GlobalSetup.Embeds_icon_quit_png}
Symbol 53 Bitmap {GlobalSetup.Embeds_p2_roll029_png}
Symbol 54 Bitmap {GlobalSetup.Embeds_ace_g_roll026_png}
Symbol 55 Bitmap {GlobalSetup.Embeds_p1_roll018_png}
Symbol 56 Bitmap {GlobalSetup.Embeds_gunner004_png}
Symbol 57 Bitmap {GlobalSetup.Embeds_p1_roll020_png}
Symbol 58 Bitmap {GlobalSetup.Embeds_ace_g_roll027_png}
Symbol 59 Bitmap {GlobalSetup.Embeds_ace_g_roll019_png}
Symbol 60 Bitmap {GlobalSetup.Embeds_ace_g_roll011_png}
Symbol 61 Bitmap {GlobalSetup.Embeds_ace_e_roll018_png}
Symbol 62 Bitmap {GlobalSetup.Embeds_gunner007_png}
Symbol 63 Bitmap {GlobalSetup.Embeds_gun_flash_png}
Symbol 64 Bitmap {GlobalSetup.Embeds_wreak_png}
Symbol 65 Bitmap {GlobalSetup.Embeds_p2_roll021_png}
Symbol 66 Bitmap {GlobalSetup.Embeds_aa_gunner004_png}
Symbol 67 Bitmap {GlobalSetup.Embeds_aa_turret_png}
Symbol 68 Bitmap {GlobalSetup.Embeds_p1_roll010_png}
Symbol 69 Bitmap {GlobalSetup.Embeds_aa_gunner003_png}
Symbol 70 Bitmap {GlobalSetup.Embeds_house_1_png}
Symbol 71 Bitmap {GlobalSetup.Embeds_ace_e_roll010_png}
Symbol 72 Bitmap {GlobalSetup.Embeds_gunner001_png}
Symbol 73 Bitmap {GlobalSetup.Embeds_smoke_c004_png}
Symbol 74 Bitmap {GlobalSetup.Embeds_ace_e_roll020_png}
Symbol 75 Bitmap {GlobalSetup.Embeds_ace_e_roll007_png}
Symbol 76 Bitmap {GlobalSetup.Embeds_p2_roll017_png}
Symbol 77 Bitmap {GlobalSetup.Embeds_smoke_a004_png}
Symbol 78 Bitmap {GlobalSetup.Embeds_p2_roll022_png}
Symbol 79 Bitmap {GlobalSetup.Embeds_icon_play_png}
Symbol 80 Font {Main_mainFont}
Symbol 81 Bitmap {GlobalSetup.Embeds_ace_g_roll028_png}
Symbol 82 Bitmap {GlobalSetup.Embeds_p2_roll005_png}
Symbol 83 Bitmap {GlobalSetup.Embeds_p1_roll008_png}
Symbol 84 Bitmap {GlobalSetup.Embeds_bullet_png}
Symbol 85 Bitmap {GlobalSetup.Embeds_p2_roll003_png}
Symbol 86 Bitmap {GlobalSetup.Embeds_p2_roll012_png}
Symbol 87 Bitmap {GlobalSetup.Embeds_cloud2_png}
Symbol 88 Bitmap {GlobalSetup.Embeds_p2_roll013_png}
Symbol 89 Bitmap {GlobalSetup.Embeds_p1_roll019_png}
Symbol 90 Bitmap {GlobalSetup.Embeds_smoke_a005_png}
Symbol 91 Bitmap {GlobalSetup.Embeds_smoke_c003_png}
Symbol 92 Bitmap {GlobalSetup.Embeds_p1_roll032_png}
Symbol 93 Bitmap {GlobalSetup.Embeds_p1_roll022_png}
Symbol 94 Bitmap {GlobalSetup.Embeds_p2_roll027_png}
Symbol 95 Bitmap {GlobalSetup.Embeds_ace_e_roll027_png}
Symbol 96 Bitmap {GlobalSetup.Embeds_smoke_c006_png}
Symbol 97 Bitmap {GlobalSetup.Embeds_p2_roll020_png}
Symbol 98 Bitmap {GlobalSetup.Embeds_ground_png}
Symbol 99 Bitmap {GlobalSetup.Embeds_smoke_c014_png}
Symbol 100 Bitmap {GlobalSetup.Embeds_ace_g_roll010_png}
Symbol 101 Bitmap {GlobalSetup.Embeds_p1_roll025_png}
Symbol 102 Bitmap {GlobalSetup.Embeds_smoke_c010_png}
Symbol 103 Bitmap {GlobalSetup.Embeds_ace_g_roll030_png}
Symbol 104 Bitmap {GlobalSetup.Embeds_p2_roll015_png}
Symbol 105 Bitmap {GlobalSetup.Embeds_p2_roll006_png}
Symbol 106 Bitmap {GlobalSetup.Embeds_mission_complete_jpg}
Symbol 107 Bitmap {GlobalSetup.Embeds_p1_roll001_png}
Symbol 108 Bitmap {GlobalSetup.Embeds_p1_roll004_png}
Symbol 109 Bitmap {GlobalSetup.Embeds_p2_roll011_png}
Symbol 110 Bitmap {GlobalSetup.Embeds_tree3_png}
Symbol 111 Bitmap {GlobalSetup.Embeds_smoke_d015_png}
Symbol 112 Bitmap {GlobalSetup.Embeds_ace_e_roll006_png}
Symbol 113 Bitmap {GlobalSetup.Embeds_menu_button_link_png}
Symbol 114 Bitmap {GlobalSetup.Embeds_p1_roll017_png}
Symbol 115 Bitmap {GlobalSetup.Embeds_ace_g_roll022_png}
Symbol 116 Bitmap {GlobalSetup.Embeds_aa_gunner007_png}
Symbol 117 Bitmap {GlobalSetup.Embeds_p1_roll012_png}
Symbol 118 Bitmap {NagScreen.NagScreen_free2}
Symbol 119 Bitmap {NagScreen.NagScreen_free1}
Symbol 120 Bitmap {GlobalSetup.Embeds_p1_roll029_png}
Symbol 121 Bitmap {GlobalSetup.Embeds_p1_roll031_png}
Symbol 122 Bitmap {GlobalSetup.Embeds_p1_roll024_png}
Symbol 123 Bitmap {GlobalSetup.Embeds_smoke_d009_png}
Symbol 124 Bitmap {GlobalSetup.Embeds_ace_e_roll009_png}
Symbol 125 Bitmap {GlobalSetup.Embeds_button_control_b_png}
Symbol 126 Bitmap {GlobalSetup.Embeds_ace_e_roll003_png}
Symbol 127 Bitmap {GlobalSetup.Embeds_ace_e_roll024_png}
Symbol 128 Bitmap {GlobalSetup.Embeds_p2_roll009_png}
Symbol 129 Bitmap {GlobalSetup.Embeds_seperator_png}
Symbol 130 Bitmap {preload.CustomPreloader_loadingImage}
Symbol 131 Bitmap {GlobalSetup.Embeds_ace_e_roll021_png}
Symbol 132 Bitmap {GlobalSetup.Embeds_icon_soundfx_png}
Symbol 133 Bitmap {GlobalSetup.Embeds_p1_roll026_png}
Symbol 134 Bitmap {GlobalSetup.Embeds_smoke_a015_png}
Symbol 135 Bitmap {GlobalSetup.Embeds_smoke_d013_png}
Symbol 136 Bitmap {GlobalSetup.Embeds_smoke_d007_png}
Symbol 137 Bitmap {GlobalSetup.Embeds_ace_e_roll025_png}
Symbol 138 Bitmap {GlobalSetup.Embeds_p2_roll026_png}
Symbol 139 Bitmap {GlobalSetup.Embeds_gunner002_png}
Symbol 140 Bitmap {GlobalSetup.Embeds_shot_png}
Symbol 141 Bitmap {GlobalSetup.Embeds_smoke_a003_png}
Symbol 142 Bitmap {GlobalSetup.Embeds_smoke_d011_png}
Symbol 143 Bitmap {GlobalSetup.Embeds_p2_roll018_png}
Symbol 144 Bitmap {GlobalSetup.Embeds_smoke_c008_png}
Symbol 145 Bitmap {GlobalSetup.Embeds_ace_e_roll032_png}
Symbol 146 Bitmap {GlobalSetup.Embeds_aa_gunner002_png}
Symbol 147 Bitmap {GlobalSetup.Embeds_ace_g_roll013_png}
Symbol 148 Bitmap {GlobalSetup.Embeds_zeppelin_256_png}
Symbol 149 Bitmap {GlobalSetup.Embeds_gun_png}
Symbol 150 Bitmap {GlobalSetup.Embeds_tree2_png}
Symbol 151 Bitmap {GlobalSetup.Embeds_smoke_d016_png}
Symbol 152 Bitmap {GlobalSetup.Embeds_menu_button_png}
Symbol 153 Bitmap {GlobalSetup.Embeds_p2_roll008_png}
Symbol 154 Bitmap {GlobalSetup.Embeds_ace_e_roll001_png}
Symbol 155 Bitmap {GlobalSetup.Embeds_p1_roll016_png}
Symbol 156 Bitmap {GlobalSetup.Embeds_ace_e_roll017_png}
Symbol 157 Bitmap {GlobalSetup.Embeds_p1_roll023_png}
Symbol 158 Bitmap {GlobalSetup.Embeds_smoke_a010_png}
Symbol 159 Bitmap {GlobalSetup.Embeds_p2_roll016_png}
Symbol 160 Bitmap {GlobalSetup.Embeds_smoke_d008_png}
Symbol 161 Bitmap {GlobalSetup.Embeds_aa_turret_flash_png}
Symbol 162 Bitmap {GlobalSetup.Embeds_ace_g_roll021_png}
Symbol 163 Bitmap {GlobalSetup.Embeds_smoke_a013_png}
Symbol 164 Bitmap {GlobalSetup.Embeds_ace_e_roll013_png}
Symbol 165 Bitmap {GlobalSetup.Embeds_ace_e_roll030_png}
Symbol 166 Bitmap {GlobalSetup.Embeds_p2_roll028_png}
Symbol 167 Bitmap {GlobalSetup.Embeds_smoke_c016_png}
Symbol 168 Bitmap {GlobalSetup.Embeds_smoke_a007_png}
Symbol 169 Bitmap {GlobalSetup.Embeds_p1_roll015_png}
Symbol 170 Bitmap {GlobalSetup.Embeds_zep_part_2_png}
Symbol 171 Bitmap {GlobalSetup.Embeds_zep_part_3_png}
Symbol 172 Bitmap {GlobalSetup.Embeds_ace_g_roll012_png}
Symbol 173 Bitmap {GlobalSetup.Embeds_p2_roll001_png}
Symbol 174 Bitmap {GlobalSetup.Embeds_ace_e_roll008_png}
Symbol 175 Bitmap {GlobalSetup.Embeds_smoke_c012_png}
Symbol 176 Bitmap {GlobalSetup.Embeds_p1_roll007_png}
Symbol 177 Bitmap {GlobalSetup.Embeds_p2_roll014_png}
Symbol 178 Bitmap {GlobalSetup.Embeds_smoke_d002_png}
Symbol 179 Bitmap {GlobalSetup.Embeds_ace_g_roll014_png}
Symbol 180 Bitmap {GlobalSetup.Embeds_smoke_a009_png}
Symbol 181 Bitmap {GlobalSetup.Embeds_icon_off_png}
Symbol 182 Bitmap {GlobalSetup.Embeds_bush_1_png}
Symbol 183 Bitmap {GlobalSetup.Embeds_ace_e_roll031_png}
Symbol 184 Bitmap {GlobalSetup.Embeds_smoke_a016_png}
Symbol 185 Bitmap {GlobalSetup.Embeds_zep_button_png}
Symbol 186 Bitmap {GlobalSetup.Embeds_scenery2_png}
Symbol 187 Bitmap {GlobalSetup.Embeds_ace_g_roll031_png}
Symbol 188 Bitmap {GlobalSetup.Embeds_smoke_d006_png}
Symbol 189 Bitmap {NagScreen.NagScreen_nextGame}
Symbol 190 Bitmap {GlobalSetup.Embeds_ace_e_roll028_png}
Symbol 191 Bitmap {GlobalSetup.Embeds_ace_g_roll003_png}
Symbol 192 Bitmap {GlobalSetup.Embeds_p1_roll013_png}
Symbol 193 Bitmap {GlobalSetup.Embeds_cloud1_png}
Symbol 194 Bitmap {GlobalSetup.Embeds_ace_g_roll009_png}
Symbol 195 Bitmap {GlobalSetup.Embeds_smoke_d010_png}
Symbol 196 Bitmap {GlobalSetup.Embeds_p2_roll002_png}
Symbol 197 Bitmap {GlobalSetup.Embeds_smoke_c013_png}
Symbol 198 Bitmap {GlobalSetup.Embeds_smoke_d004_png}
Symbol 199 Bitmap {GlobalSetup.Embeds_button_control_2_png}
Symbol 200 Bitmap {GlobalSetup.Embeds_p2_roll010_png}
Symbol 201 Bitmap {GlobalSetup.Embeds_p1_roll005_png}
Symbol 202 Bitmap {GlobalSetup.Embeds_land_png}
Symbol 203 Bitmap {GlobalSetup.Embeds_main_menu_jpg}
Symbol 204 Bitmap {GlobalSetup.Embeds_ace_g_roll020_png}
Symbol 205 Bitmap {GlobalSetup.Embeds_p2_roll004_png}
Symbol 206 Bitmap {GlobalSetup.Embeds_yoursite_png}
Symbol 207 Bitmap {GlobalSetup.Embeds_p1_roll009_png}
Symbol 208 Bitmap {GlobalSetup.Embeds_plane_prop001_png}
Symbol 209 Bitmap {GlobalSetup.Embeds_p2_roll019_png}
Symbol 210 Bitmap {GlobalSetup.Embeds_sopwith_png}
Symbol 211 Bitmap {GlobalSetup.Embeds_aa_gunner006_png}
Symbol 212 Bitmap {GlobalSetup.Embeds_shot2_png}
Symbol 213 Bitmap {GlobalSetup.Embeds_ace_g_roll032_png}
Symbol 214 Bitmap {GlobalSetup.Embeds_ace_e_roll023_png}
Symbol 215 Bitmap {GlobalSetup.Embeds_p1_roll030_png}
Symbol 216 Bitmap {GlobalSetup.Embeds_smoke_d012_png}
Symbol 217 Bitmap {GlobalSetup.Embeds_zep_part_1_png}
Symbol 218 Bitmap {GlobalSetup.Embeds_smoke_d001_png}
Symbol 219 Bitmap {GlobalSetup.Embeds_ace_g_roll005_png}
Symbol 220 Bitmap {GlobalSetup.Embeds_ace_e_roll011_png}
Symbol 221 Bitmap {GlobalSetup.Embeds_p2_roll031_png}
Symbol 222 Bitmap {GlobalSetup.Embeds_ace_e_roll005_png}
Symbol 223 Bitmap {GlobalSetup.Embeds_smoke_c015_png}
Symbol 224 Bitmap {GlobalSetup.Embeds_ace_e_roll002_png}
Symbol 225 Bitmap {GlobalSetup.Embeds_ace_g_roll017_png}
Symbol 226 Bitmap {GlobalSetup.Embeds_ace_e_roll026_png}
Symbol 227 Bitmap {GlobalSetup.Embeds_p2_roll007_png}
Symbol 228 Bitmap {GlobalSetup.Embeds_p1_roll006_png}
Symbol 229 Bitmap {GlobalSetup.Embeds_ace_g_roll016_png}
Symbol 230 Bitmap {GlobalSetup.Embeds_ace_g_roll015_png}
Symbol 231 Bitmap {GlobalSetup.Embeds_ace_g_roll024_png}
Symbol 232 Bitmap {GlobalSetup.Embeds_house_2_png}
Symbol 233 Bitmap {GlobalSetup.Embeds_smoke_d014_png}
Symbol 234 Bitmap {GlobalSetup.Embeds_ace_g_roll006_png}
Symbol 235 Bitmap {GlobalSetup.Embeds_p1_roll028_png}
Symbol 236 Bitmap {GlobalSetup.Embeds_aa_gunner001_png}
Symbol 237 Bitmap {GlobalSetup.Embeds_p1_roll014_png}
Symbol 238 Bitmap {GlobalSetup.Embeds_aa_gunner005_png}
Symbol 239 Bitmap {GlobalSetup.Embeds_ace_g_roll008_png}
Symbol 240 Bitmap {GlobalSetup.Embeds_ace_g_roll007_png}
Symbol 241 Bitmap {GlobalSetup.Embeds_smoke_a001_png}
Symbol 242 Bitmap {GlobalSetup.Embeds_ace_e_roll016_png}
Symbol 243 Bitmap {GlobalSetup.Embeds_g_bomb_roll005_png}
Symbol 244 Bitmap {GlobalSetup.Embeds_icon_pause_png}
Symbol 245 Bitmap {GlobalSetup.Embeds_p2_roll030_png}
Symbol 246 Bitmap {GlobalSetup.Embeds_smoke_a002_png}
Symbol 247 Bitmap {GlobalSetup.Embeds_flash_png}
Symbol 248 Bitmap {GlobalSetup.Embeds_p2_roll025_png}
Symbol 249 Bitmap {GlobalSetup.Embeds_ace_e_roll029_png}
Symbol 250 Bitmap {GlobalSetup.Embeds_button_control_a_png}
Symbol 251 Bitmap {GlobalSetup.Embeds_ace_g_roll002_png}
Symbol 252 Bitmap {GlobalSetup.Embeds_scenery1_png}
Symbol 253 Bitmap {NagScreen.NagScreen_lastGame}
Symbol 254 Bitmap {GlobalSetup.Embeds_smoke_c007_png}
Symbol 255 Bitmap {GlobalSetup.Embeds_p2_roll032_png}
Symbol 256 Bitmap {GlobalSetup.Embeds_smoke_c005_png}
Symbol 257 Bitmap {GlobalSetup.Embeds_ace_e_roll014_png}
Symbol 258 Bitmap {GlobalSetup.Embeds_house_3_png}
Symbol 259 Bitmap {GlobalSetup.Embeds_ace_g_roll018_png}
Symbol 260 Bitmap {GlobalSetup.Embeds_ace_g_roll023_png}
Symbol 261 Bitmap {GlobalSetup.Embeds_smoke_c002_png}
Symbol 262 Bitmap {GlobalSetup.Embeds_ace_g_roll004_png}
Symbol 263 Bitmap {GlobalSetup.Embeds_smoke_a014_png}
Symbol 264 Bitmap {GlobalSetup.Embeds_plane_prop002_png}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1456 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 1 as "RSASplash.CustomPreloader_intro"
ExportAssets (56)Timeline Frame 2Symbol 4 as "Sounds_planeIdle_embed"
ExportAssets (56)Timeline Frame 2Symbol 5 as "Sounds_hit_1_embed"
ExportAssets (56)Timeline Frame 2Symbol 6 as "Sounds_levelComplete_embed"
ExportAssets (56)Timeline Frame 2Symbol 7 as "Sounds_shot_3_embed"
ExportAssets (56)Timeline Frame 2Symbol 8 as "Sounds_shot_1_embed"
ExportAssets (56)Timeline Frame 2Symbol 9 as "Sounds_zepExplosion_embed"
ExportAssets (56)Timeline Frame 2Symbol 10 as "Sounds_shot_2_embed"
ExportAssets (56)Timeline Frame 2Symbol 11 as "Sounds_planeCrash_embed"
ExportAssets (56)Timeline Frame 2Symbol 12 as "Sounds_mainLoop_embed"
ExportAssets (56)Timeline Frame 2Symbol 13 as "Sounds_hit_2_embed"
ExportAssets (56)Timeline Frame 2Symbol 14 as "Sounds_planeFalling_embed"
SerialNumber (41)Timeline Frame 1

Labels

"RSASplash_CustomPreloader"Frame 1
"Main"Frame 2




http://swfchan.com/9/40695/info.shtml
Created: 10/5 -2019 22:53:07 Last modified: 10/5 -2019 22:53:07 Server time: 14/11 -2024 17:14:02