Section 1
//b2CircleDef (Box2D.Collision.Shapes.b2CircleDef)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
public class b2CircleDef extends b2ShapeDef {
public var :b2Vec2;
public var :Number;
public function b2CircleDef(){
= new b2Vec2(0, 0);
super();
type = b2Shape.e_circleShape;
= 1;
}
}
}//package Box2D.Collision.Shapes
Section 2
//b2CircleShape (Box2D.Collision.Shapes.b2CircleShape)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
public class b2CircleShape extends b2Shape {
public var :b2Vec2;
public var :Number;
public function b2CircleShape(_arg1:b2ShapeDef){
= new b2Vec2();
super(_arg1);
var _local2:b2CircleDef = (_arg1 as b2CircleDef);
= e_circleShape;
. (_local2. );
= _local2. ;
}
override public function (_arg1:b2XForm, _arg2:b2Vec2):Boolean{
var _local3:b2Mat22 = _arg1.R;
var _local4:Number = (_arg1.position.x + ((_local3.
.x * .x) + (_local3. .x * .y)));
var _local5:Number = (_arg1.position.y + ((_local3.
.y * .x) + (_local3. .y * .y)));
_local4 = (_arg2.x - _local4);
_local5 = (_arg2.y - _local5);
return ((((_local4 * _local4) + (_local5 * _local5)) <= ( * )));
}
override public function (_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
var _local10:Number;
var _local6:b2Mat22 = _arg1.R;
var _local7:Number = (_arg1.position.x + ((_local6.
.x * .x) + (_local6. .x * .y)));
var _local8:Number = (_arg1.position.x + ((_local6.
.y * .x) + (_local6. .y * .y)));
var _local9:Number = (_arg4. .x - _local7);
_local10 = (_arg4. .y - _local8);
var _local11:Number = (((_local9 * _local9) + (_local10 * _local10)) - ( * ));
if (_local11 < 0){
return (false);
};
var _local12:Number = (_arg4. .x - _arg4. .x);
var _local13:Number = (_arg4. .y - _arg4. .y);
var _local14:Number = ((_local9 * _local12) + (_local10 * _local13));
var _local15:Number = ((_local12 * _local12) + (_local13 * _local13));
var _local16:Number = ((_local14 * _local14) - (_local15 * _local11));
if ((((_local16 < 0)) || ((_local15 < Number.MIN_VALUE)))){
return (false);
};
var _local17:Number = -((_local14 + Math.sqrt(_local16)));
if ((((0 <= _local17)) && ((_local17 <= (_arg5 * _local15))))){
_local17 = (_local17 / _local15);
_arg2[0] = _local17;
_arg3.x = (_local9 + (_local17 * _local12));
_arg3.y = (_local10 + (_local17 * _local13));
_arg3.Normalize();
return (true);
};
return (false);
}
override public function (_arg1:b2AABB, _arg2:b2XForm):void{
var _local3:b2Mat22 = _arg2.R;
var _local4:Number = (_arg2.position.x + ((_local3.
.x * .x) + (_local3. .x * .y)));
var _local5:Number = (_arg2.position.y + ((_local3.
.y * .x) + (_local3. .y * .y)));
_arg1. .Set((_local4 - ), (_local5 - ));
_arg1. .Set((_local4 + ), (_local5 + ));
}
override public function (_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{
var _local4:b2Mat22;
_local4 = _arg2.R;
var _local5:Number = (_arg2.position.x + ((_local4.
.x * .x) + (_local4. .x * .y)));
var _local6:Number = (_arg2.position.y + ((_local4.
.y * .x) + (_local4. .y * .y)));
_local4 = _arg3.R;
var _local7:Number = (_arg3.position.x + ((_local4.
.x * .x) + (_local4. .x * .y)));
var _local8:Number = (_arg3.position.y + ((_local4.
.y * .x) + (_local4. .y * .y)));
_arg1. .Set((((_local5 < _local7)) ? _local5 : _local7 - ), (((_local6 < _local8)) ? _local6 : _local8 - ));
_arg1. .Set((((_local5 > _local7)) ? _local5 : _local7 + ), (((_local6 > _local8)) ? _local6 : _local8 + ));
}
override public function (_arg1:b2MassData):void{
_arg1. = ((( * b2Settings.b2_pi) * ) * );
_arg1.center. ( );
_arg1.I = (_arg1. * (((0.5 * ) * ) + (( .x * .x) + ( .y * .y))));
}
public function ():b2Vec2{
return ( );
}
public function
():Number{
return ( );
}
override public function
(_arg1:b2Vec2):void{
var _local2:Number = ( .x - _arg1.x);
var _local3:Number = ( .y - _arg1.y);
_local2 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3)));
= ((_local2 + ) - b2Settings.b2_toiSlop);
}
}
}//package Box2D.Collision.Shapes
Section 3
//b2FilterData (Box2D.Collision.Shapes.b2FilterData)
package Box2D.Collision.Shapes {
public class b2FilterData {
public var :uint;// = 1
public var :uint;// = 0xFFFF
public var
:int;// = 0
public function Copy():b2FilterData{
var _local1:b2FilterData = new b2FilterData();
_local1. = ;
_local1. = ;
_local1.
=
;
return (_local1);
}
}
}//package Box2D.Collision.Shapes
Section 4
//b2MassData (Box2D.Collision.Shapes.b2MassData)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
public class b2MassData {
public var :Number;// = 0
public var center:b2Vec2;
public var I:Number;// = 0
public function b2MassData(){
center = new b2Vec2(0, 0);
super();
}
}
}//package Box2D.Collision.Shapes
Section 5
//b2PolygonDef (Box2D.Collision.Shapes.b2PolygonDef)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2PolygonDef extends b2ShapeDef {
public var :Array;
public var
:int;
private static var
:b2Mat22 = new b2Mat22();
public function b2PolygonDef(){
= new Array(b2Settings.b2_maxPolygonVertices);
super();
type = b2Shape.e_polygonShape;
= 0;
var _local1:int;
while (_local1 < b2Settings.b2_maxPolygonVertices) {
[_local1] = new b2Vec2();
_local1++;
};
}
public function (_arg1:Number, _arg2:Number):void{
= 4;
[0].Set(-(_arg1), -(_arg2));
[1].Set(_arg1, -(_arg2));
[2].Set(_arg1, _arg2);
[3].Set(-(_arg1), _arg2);
}
public function (_arg1:Number, _arg2:Number, _arg3:b2Vec2=null, _arg4:Number=0):void{
var _local5:b2Vec2;
var _local6:b2Mat22;
var _local7:int;
= 4;
[0].Set(-(_arg1), -(_arg2));
[1].Set(_arg1, -(_arg2));
[2].Set(_arg1, _arg2);
[3].Set(-(_arg1), _arg2);
if (_arg3){
_local5 = _arg3;
_local6 =
;
_local6.Set(_arg4);
_local7 = 0;
while (_local7 <
) {
_arg3 = [_local7];
_arg1 = (_local5.x + ((_local6.
.x * _arg3.x) + (_local6. .x * _arg3.y)));
_arg3.y = (_local5.y + ((_local6.
.y * _arg3.x) + (_local6. .y * _arg3.y)));
_arg3.x = _arg1;
_local7++;
};
};
}
}
}//package Box2D.Collision.Shapes
Section 6
//b2PolygonShape (Box2D.Collision.Shapes.b2PolygonShape)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
public class b2PolygonShape extends b2Shape {
private var :b2Vec2;
public var :b2Vec2;
public var :b2OBB;
public var :Array;
public var :Array;
public var :Array;
public var
:int;
private static var
:b2Mat22 = new b2Mat22();
private static var
:b2AABB = new b2AABB();
private static var
:b2AABB = new b2AABB();
public function b2PolygonShape(_arg1:b2ShapeDef){
var _local3:int;
var _local6:Number;
var _local7:Number;
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;
= new b2Vec2();
= new b2OBB();
= new Array(b2Settings.b2_maxPolygonVertices);
= new Array(b2Settings.b2_maxPolygonVertices);
= new Array(b2Settings.b2_maxPolygonVertices);
super(_arg1);
= e_polygonShape;
var _local2:b2PolygonDef = (_arg1 as b2PolygonDef);
= _local2.
;
var _local4:int = _local3;
var _local5:int = _local3;
_local3 = 0;
while (_local3 <
) {
[_local3] = _local2. [_local3].Copy();
_local3++;
};
_local3 = 0;
while (_local3 <
) {
_local4 = _local3;
_local5 = (((_local3 + 1) <
)) ? (_local3 + 1) : 0;
_local6 = ( [_local5].x - [_local4].x);
_local7 = ( [_local5].y - [_local4].y);
_local8 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7)));
[_local3] = new b2Vec2((_local7 / _local8), (-(_local6) / _local8));
_local3++;
};
=
(_local2. , _local2.
);
( , ,
);
_local3 = 0;
while (_local3 <
) {
_local4 = (((_local3 - 1) >= 0)) ? (_local3 - 1) : (
- 1);
_local5 = _local3;
_local9 = [_local4].x;
_local10 = [_local4].y;
_local11 = [_local5].x;
_local12 = [_local5].y;
_local13 = ( [_local3].x - .x);
_local14 = ( [_local3].y - .y);
_local15 = (((_local9 * _local13) + (_local10 * _local14)) - b2Settings.b2_toiSlop);
_local16 = (((_local11 * _local13) + (_local12 * _local14)) - b2Settings.b2_toiSlop);
_local17 = (1 / ((_local9 * _local12) - (_local10 * _local11)));
[_local3] = new b2Vec2(((_local17 * ((_local12 * _local15) - (_local10 * _local16))) + .x), ((_local17 * ((_local9 * _local16) - (_local11 * _local15))) + .y));
_local3++;
};
}
override public function (_arg1:b2XForm, _arg2:b2Vec2):Boolean{
var _local3:b2Vec2;
var _local10:Number;
var _local4:b2Mat22 = _arg1.R;
var _local5:Number = (_arg2.x - _arg1.position.x);
var _local6:Number = (_arg2.y - _arg1.position.y);
var _local7:Number = ((_local5 * _local4.
.x) + (_local6 * _local4.
.y));
var _local8:Number = ((_local5 * _local4. .x) + (_local6 * _local4. .y));
var _local9:int;
while (_local9 <
) {
_local3 = [_local9];
_local5 = (_local7 - _local3.x);
_local6 = (_local8 - _local3.y);
_local3 = [_local9];
_local10 = ((_local3.x * _local5) + (_local3.y * _local6));
if (_local10 > 0){
return (false);
};
_local9++;
};
return (true);
}
override public function (_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
var _local8:Number;
var _local9:Number;
var _local10:b2Mat22;
var _local11:b2Vec2;
var _local20:Number;
var _local21:Number;
var _local6:Number = 0;
var _local7:Number = _arg5;
_local8 = (_arg4. .x - _arg1.position.x);
_local9 = (_arg4. .y - _arg1.position.y);
_local10 = _arg1.R;
var _local12:Number = ((_local8 * _local10.
.x) + (_local9 * _local10.
.y));
var _local13:Number = ((_local8 * _local10. .x) + (_local9 * _local10. .y));
_local8 = (_arg4. .x - _arg1.position.x);
_local9 = (_arg4. .y - _arg1.position.y);
_local10 = _arg1.R;
var _local14:Number = ((_local8 * _local10.
.x) + (_local9 * _local10.
.y));
var _local15:Number = ((_local8 * _local10. .x) + (_local9 * _local10. .y));
var _local16:Number = (_local14 - _local12);
var _local17:Number = (_local15 - _local13);
var _local18 = -1;
var _local19:int;
while (_local19 <
) {
_local11 = [_local19];
_local8 = (_local11.x - _local12);
_local9 = (_local11.y - _local13);
_local11 = [_local19];
_local20 = ((_local11.x * _local8) + (_local11.y * _local9));
_local21 = ((_local11.x * _local16) + (_local11.y * _local17));
if ((((_local21 < 0)) && ((_local20 < (_local6 * _local21))))){
_local6 = (_local20 / _local21);
_local18 = _local19;
} else {
if ((((_local21 > 0)) && ((_local20 < (_local7 * _local21))))){
_local7 = (_local20 / _local21);
};
};
if (_local7 < _local6){
return (false);
};
_local19++;
};
if (_local18 >= 0){
_arg2[0] = _local6;
_local10 = _arg1.R;
_local11 = [_local18];
_arg3.x = ((_local10.
.x * _local11.x) + (_local10. .x * _local11.y));
_arg3.y = ((_local10.
.y * _local11.x) + (_local10. .y * _local11.y));
return (true);
};
return (false);
}
override public function (_arg1:b2AABB, _arg2:b2XForm):void{
var _local3:b2Mat22;
var _local4:b2Vec2;
var _local5:b2Mat22 =
;
_local3 = _arg2.R;
_local4 = .R.
;
_local5.
.x = ((_local3.
.x * _local4.x) + (_local3. .x * _local4.y));
_local5.
.y = ((_local3.
.y * _local4.x) + (_local3. .y * _local4.y));
_local4 = .R. ;
_local5. .x = ((_local3.
.x * _local4.x) + (_local3. .x * _local4.y));
_local5. .y = ((_local3.
.y * _local4.x) + (_local3. .y * _local4.y));
_local5.Abs();
var _local6:b2Mat22 = _local5;
_local4 = . ;
var _local7:Number = ((_local6.
.x * _local4.x) + (_local6. .x * _local4.y));
var _local8:Number = ((_local6.
.y * _local4.x) + (_local6. .y * _local4.y));
_local3 = _arg2.R;
_local4 = .center;
var _local9:Number = (_arg2.position.x + ((_local3.
.x * _local4.x) + (_local3. .x * _local4.y)));
var _local10:Number = (_arg2.position.y + ((_local3.
.y * _local4.x) + (_local3. .y * _local4.y)));
_arg1. .Set((_local9 - _local7), (_local10 - _local8));
_arg1. .Set((_local9 + _local7), (_local10 + _local8));
}
override public function (_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{
var _local4:b2AABB =
;
var _local5:b2AABB =
;
(_local4, _arg2);
(_local5, _arg3);
_arg1. .Set(((_local4. .x < _local5. .x)) ? _local4. .x : _local5. .x, ((_local4. .y < _local5. .y)) ? _local4. .y : _local5. .y);
_arg1. .Set(((_local4. .x > _local5. .x)) ? _local4. .x : _local5. .x, ((_local4. .y > _local5. .y)) ? _local4. .y : _local5. .y);
}
override public function (_arg1:b2MassData):void{
var _local10:b2Vec2;
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:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:Number = 0;
var _local7:Number = 0;
var _local8:Number = (1 / 3);
var _local9:int;
while (_local9 <
) {
_local10 = [_local9];
_local11 = (((_local9 + 1) <
)) ? [int((_local9 + 1))] : [0];
_local12 = (_local10.x - _local6);
_local13 = (_local10.y - _local7);
_local14 = (_local11.x - _local6);
_local15 = (_local11.y - _local7);
_local16 = ((_local12 * _local15) - (_local13 * _local14));
_local17 = (0.5 * _local16);
_local4 = (_local4 + _local17);
_local2 = (_local2 + ((_local17 * _local8) * ((_local6 + _local10.x) + _local11.x)));
_local3 = (_local3 + ((_local17 * _local8) * ((_local7 + _local10.y) + _local11.y)));
_local18 = _local6;
_local19 = _local7;
_local20 = _local12;
_local21 = _local13;
_local22 = _local14;
_local23 = _local15;
_local24 = ((_local8 * ((0.25 * (((_local20 * _local20) + (_local22 * _local20)) + (_local22 * _local22))) + ((_local18 * _local20) + (_local18 * _local22)))) + ((0.5 * _local18) * _local18));
_local25 = ((_local8 * ((0.25 * (((_local21 * _local21) + (_local23 * _local21)) + (_local23 * _local23))) + ((_local19 * _local21) + (_local19 * _local23)))) + ((0.5 * _local19) * _local19));
_local5 = (_local5 + (_local16 * (_local24 + _local25)));
_local9++;
};
_arg1. = ( * _local4);
_local2 = (_local2 * (1 / _local4));
_local3 = (_local3 * (1 / _local4));
_arg1.center.Set(_local2, _local3);
_arg1.I = ( * _local5);
}
public function
():b2OBB{
return ( );
}
public function ():b2Vec2{
return ( );
}
public function ():int{
return (
);
}
public function ():Array{
return ( );
}
public function ():Array{
return ( );
}
public function ():Array{
return ( );
}
public function (_arg1:b2XForm):b2Vec2{
return (b2Math. (_arg1, [0]));
}
public function (_arg1:b2XForm):b2Vec2{
return (b2Math. (_arg1, ));
}
public function (_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{
var _local4:b2Vec2;
var _local5:b2Mat22;
var _local11:Number;
_local5 = _arg1.R;
var _local6:Number = ((_arg2 * _local5.
.x) + (_arg3 * _local5.
.y));
var _local7:Number = ((_arg2 * _local5. .x) + (_arg3 * _local5. .y));
var _local8:int;
_local4 = [0];
var _local9:Number = ((_local4.x * _local6) + (_local4.y * _local7));
var _local10 = 1;
while (_local10 <
) {
_local4 = [_local10];
_local11 = ((_local4.x * _local6) + (_local4.y * _local7));
if (_local11 > _local9){
_local8 = _local10;
_local9 = _local11;
};
_local10++;
};
_local5 = _arg1.R;
_local4 = [_local8];
.x = (_arg1.position.x + ((_local5.
.x * _local4.x) + (_local5. .x * _local4.y)));
.y = (_arg1.position.y + ((_local5.
.y * _local4.x) + (_local5. .y * _local4.y)));
return ( );
}
override public function
(_arg1:b2Vec2):void{
var _local2:b2Vec2;
var _local4:Number;
var _local5:Number;
= 0;
var _local3:int;
while (_local3 <
) {
_local2 = [_local3];
_local4 = (_local2.x - _arg1.x);
_local5 = (_local2.y - _arg1.y);
_local4 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
if (_local4 > ){
= _local4;
};
_local3++;
};
}
public static function
(_arg1:Array, _arg2:int):b2Vec2{
var _local3:b2Vec2;
var _local7:Number;
var _local9:b2Vec2;
var _local10:b2Vec2;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
_local3 = new b2Vec2();
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:Number = 0;
_local7 = (1 / 3);
var _local8:int;
while (_local8 < _arg2) {
_local9 = _arg1[_local8];
_local10 = (((_local8 + 1) < _arg2)) ? _arg1[int((_local8 + 1))] : _arg1[0];
_local11 = (_local9.x - _local5);
_local12 = (_local9.y - _local6);
_local13 = (_local10.x - _local5);
_local14 = (_local10.y - _local6);
_local15 = ((_local11 * _local14) - (_local12 * _local13));
_local16 = (0.5 * _local15);
_local4 = (_local4 + _local16);
_local3.x = (_local3.x + ((_local16 * _local7) * ((_local5 + _local9.x) + _local10.x)));
_local3.y = (_local3.y + ((_local16 * _local7) * ((_local6 + _local9.y) + _local10.y)));
_local8++;
};
_local3.x = (_local3.x * (1 / _local4));
_local3.y = (_local3.y * (1 / _local4));
return (_local3);
}
public static function
(_arg1:b2OBB, _arg2:Array, _arg3:int):void{
var _local4:int;
var _local7:b2Vec2;
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:int;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:b2Mat22;
var _local5:Array = new Array((b2Settings.b2_maxPolygonVertices + 1));
_local4 = 0;
while (_local4 < _arg3) {
_local5[_local4] = _arg2[_local4];
_local4++;
};
_local5[_arg3] = _local5[0];
var _local6:Number = Number.MAX_VALUE;
_local4 = 1;
while (_local4 <= _arg3) {
_local7 = _local5[int((_local4 - 1))];
_local8 = (_local5[_local4].x - _local7.x);
_local9 = (_local5[_local4].y - _local7.y);
_local10 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9)));
_local8 = (_local8 / _local10);
_local9 = (_local9 / _local10);
_local11 = -(_local9);
_local12 = _local8;
_local13 = Number.MAX_VALUE;
_local14 = Number.MAX_VALUE;
_local15 = -(Number.MAX_VALUE);
_local16 = -(Number.MAX_VALUE);
_local17 = 0;
while (_local17 < _arg3) {
_local19 = (_local5[_local17].x - _local7.x);
_local20 = (_local5[_local17].y - _local7.y);
_local21 = ((_local8 * _local19) + (_local9 * _local20));
_local22 = ((_local11 * _local19) + (_local12 * _local20));
if (_local21 < _local13){
_local13 = _local21;
};
if (_local22 < _local14){
_local14 = _local22;
};
if (_local21 > _local15){
_local15 = _local21;
};
if (_local22 > _local16){
_local16 = _local22;
};
_local17++;
};
_local18 = ((_local15 - _local13) * (_local16 - _local14));
if (_local18 < (0.95 * _local6)){
_local6 = _local18;
_arg1.R.
.x = _local8;
_arg1.R.
.y = _local9;
_arg1.R. .x = _local11;
_arg1.R. .y = _local12;
_local23 = (0.5 * (_local13 + _local15));
_local24 = (0.5 * (_local14 + _local16));
_local25 = _arg1.R;
_arg1.center.x = (_local7.x + ((_local25.
.x * _local23) + (_local25. .x * _local24)));
_arg1.center.y = (_local7.y + ((_local25.
.y * _local23) + (_local25. .y * _local24)));
_arg1. .x = (0.5 * (_local15 - _local13));
_arg1. .y = (0.5 * (_local16 - _local14));
};
_local4++;
};
}
}
}//package Box2D.Collision.Shapes
Section 7
//b2Shape (Box2D.Collision.Shapes.b2Shape)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
public class b2Shape {
public var :int;
public var
:b2Shape;
public var :b2Body;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var :uint;
public var :b2FilterData;
public var :Boolean;
public var
;
public static const e_unknownShape:int = -1;
public static const e_circleShape:int = 0;
public static const e_polygonShape:int = 1;
public static const e_shapeTypeCount:int = 2;
private static var
:b2AABB = new b2AABB();
private static var :b2AABB = new b2AABB();
private static var :b2AABB = new b2AABB();
public function b2Shape(_arg1:b2ShapeDef){
= _arg1. ;
= _arg1. ;
= _arg1. ;
= _arg1. ;
= null;
= 0;
= null;
= b2Pair. ;
= _arg1.filter.Copy();
= _arg1. ;
}
public function ():int{
return ( );
}
public function ():Boolean{
return ( );
}
public function (_arg1:b2FilterData):void{
= _arg1.Copy();
}
public function ():b2FilterData{
return ( .Copy());
}
public function ():b2Body{
return ( );
}
public function ():b2Shape{
return (
);
}
public function
(){
return (
);
}
public function (_arg1):void{
= _arg1;
}
public function (_arg1:b2XForm, _arg2:b2Vec2):Boolean{
return (false);
}
public function (_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
return (false);
}
public function (_arg1:b2AABB, _arg2:b2XForm):void{
}
public function (_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{
}
public function (_arg1:b2MassData):void{
}
public function ():Number{
return ( );
}
public function ():Number{
return ( );
}
public function
():Number{
return ( );
}
public function (_arg1:b2BroadPhase, _arg2:b2XForm):void{
var _local3:b2AABB =
;
(_local3, _arg2);
var _local4:Boolean = _arg1. (_local3);
if (_local4){
= _arg1. (_local3, this);
} else {
= b2Pair. ;
};
}
public function (_arg1:b2BroadPhase):void{
if ( != b2Pair. ){
_arg1. ( );
= b2Pair. ;
};
}
public function (_arg1:b2BroadPhase, _arg2:b2XForm, _arg3:b2XForm):Boolean{
if ( == b2Pair. ){
return (false);
};
var _local4:b2AABB = ;
(_local4, _arg2, _arg3);
if (_arg1. (_local4)){
_arg1. ( , _local4);
return (true);
};
return (false);
}
public function (_arg1:b2BroadPhase, _arg2:b2XForm):void{
if ( == b2Pair. ){
return;
};
_arg1. ( );
var _local3:b2AABB = ;
(_local3, _arg2);
var _local4:Boolean = _arg1. (_local3);
if (_local4){
= _arg1. (_local3, this);
} else {
= b2Pair. ;
};
}
public function
(_arg1:b2Vec2):void{
}
public static function (_arg1:b2ShapeDef, _arg2):b2Shape{
switch (_arg1.type){
case e_circleShape:
return (new b2CircleShape(_arg1));
case e_polygonShape:
return (new b2PolygonShape(_arg1));
default:
return (null);
};
}
public static function (_arg1:b2Shape, _arg2):void{
}
}
}//package Box2D.Collision.Shapes
Section 8
//b2ShapeDef (Box2D.Collision.Shapes.b2ShapeDef)
package Box2D.Collision.Shapes {
public class b2ShapeDef {
public var type:int;// = -1
public var ;// = null
public var :Number;// = 0.2
public var :Number;// = 0
public var :Number;// = 0
public var :Boolean;// = false
public var filter:b2FilterData;
public function b2ShapeDef(){
filter = new b2FilterData();
super();
}
}
}//package Box2D.Collision.Shapes
Section 9
//
(Box2D.Collision.
)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.Shapes.*;
public class
{
private static var
:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
private static var :Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
private static var :Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
private static var :b2Point = new b2Point();
public static var :int = 0;
public static function
(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:Array, _arg4:Array, _arg5:Array):int{
var _local9:b2Vec2;
var _local10:b2Vec2;
var _local11:b2Vec2;
var _local17:Number;
var _local6:b2Vec2 = _arg5[0];
var _local7:b2Vec2 = _arg5[1];
var _local8:b2Vec2 = _arg3[0];
_local9 = _arg3[1];
_local10 = _arg4[0];
_local11 = _arg4[1];
var _local12:Number = -(_local7.x);
var _local13:Number = -(_local7.y);
var _local14:Number = (_local6.x - _local7.x);
var _local15:Number = (_local6.y - _local7.y);
var _local16:Number = Math.sqrt(((_local14 * _local14) + (_local15 * _local15)));
_local14 = (_local14 / _local16);
_local15 = (_local15 / _local16);
_local17 = ((_local12 * _local14) + (_local13 * _local15));
if ((((_local17 <= 0)) || ((_local16 < Number.MIN_VALUE)))){
_arg1. (_local9);
_arg2. (_local11);
_local8. (_local9);
_local10. (_local11);
_local6. (_local7);
return (1);
};
_local17 = (_local17 / _local16);
_arg1.x = (_local9.x + (_local17 * (_local8.x - _local9.x)));
_arg1.y = (_local9.y + (_local17 * (_local8.y - _local9.y)));
_arg2.x = (_local11.x + (_local17 * (_local10.x - _local11.x)));
_arg2.y = (_local11.y + (_local17 * (_local10.y - _local11.y)));
return (2);
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2, _arg3:Array, _arg4:Array, _arg5:Array):int{
var _local6:b2Vec2;
var _local7:b2Vec2;
var _local8:b2Vec2;
var _local9:b2Vec2;
var _local10:b2Vec2;
var _local11:b2Vec2;
var _local12:b2Vec2;
var _local13:b2Vec2;
var _local35:Number;
_local6 = _arg5[0];
_local7 = _arg5[1];
_local8 = _arg5[2];
_local9 = _arg3[0];
_local10 = _arg3[1];
_local11 = _arg3[2];
_local12 = _arg4[0];
_local13 = _arg4[1];
var _local14:b2Vec2 = _arg4[2];
var _local15:Number = _local6.x;
var _local16:Number = _local6.y;
var _local17:Number = _local7.x;
var _local18:Number = _local7.y;
var _local19:Number = _local8.x;
var _local20:Number = _local8.y;
var _local21:Number = (_local17 - _local15);
var _local22:Number = (_local18 - _local16);
var _local23:Number = (_local19 - _local15);
var _local24:Number = (_local20 - _local16);
var _local25:Number = (_local19 - _local17);
var _local26:Number = (_local20 - _local18);
var _local27:Number = -(((_local15 * _local21) + (_local16 * _local22)));
var _local28:Number = ((_local17 * _local21) + (_local18 * _local22));
var _local29:Number = -(((_local15 * _local23) + (_local16 * _local24)));
var _local30:Number = ((_local19 * _local23) + (_local20 * _local24));
var _local31:Number = -(((_local17 * _local25) + (_local18 * _local26)));
var _local32:Number = ((_local19 * _local25) + (_local20 * _local26));
if ((((_local30 <= 0)) && ((_local32 <= 0)))){
_arg1. (_local11);
_arg2. (_local14);
_local9. (_local11);
_local12. (_local14);
_local6. (_local8);
return (1);
};
var _local33:Number = ((_local21 * _local24) - (_local22 * _local23));
var _local34:Number = (_local33 * ((_local15 * _local18) - (_local16 * _local17)));
var _local36:Number = (_local33 * ((_local17 * _local20) - (_local18 * _local19)));
if ((((((((_local36 <= 0)) && ((_local31 >= 0)))) && ((_local32 >= 0)))) && (((_local31 + _local32) > 0)))){
_local35 = (_local31 / (_local31 + _local32));
_arg1.x = (_local10.x + (_local35 * (_local11.x - _local10.x)));
_arg1.y = (_local10.y + (_local35 * (_local11.y - _local10.y)));
_arg2.x = (_local13.x + (_local35 * (_local14.x - _local13.x)));
_arg2.y = (_local13.y + (_local35 * (_local14.y - _local13.y)));
_local9. (_local11);
_local12. (_local14);
_local6. (_local8);
return (2);
};
var _local37:Number = (_local33 * ((_local19 * _local16) - (_local20 * _local15)));
if ((((((((_local37 <= 0)) && ((_local29 >= 0)))) && ((_local30 >= 0)))) && (((_local29 + _local30) > 0)))){
_local35 = (_local29 / (_local29 + _local30));
_arg1.x = (_local9.x + (_local35 * (_local11.x - _local9.x)));
_arg1.y = (_local9.y + (_local35 * (_local11.y - _local9.y)));
_arg2.x = (_local12.x + (_local35 * (_local14.x - _local12.x)));
_arg2.y = (_local12.y + (_local35 * (_local14.y - _local12.y)));
_local10. (_local11);
_local13. (_local14);
_local7. (_local8);
return (2);
};
var _local38:Number = ((_local36 + _local37) + _local34);
_local38 = (1 / _local38);
var _local39:Number = (_local36 * _local38);
var _local40:Number = (_local37 * _local38);
var _local41:Number = ((1 - _local39) - _local40);
_arg1.x = (((_local39 * _local9.x) + (_local40 * _local10.x)) + (_local41 * _local11.x));
_arg1.y = (((_local39 * _local9.y) + (_local40 * _local10.y)) + (_local41 * _local11.y));
_arg2.x = (((_local39 * _local12.x) + (_local40 * _local13.x)) + (_local41 * _local14.x));
_arg2.y = (((_local39 * _local12.y) + (_local40 * _local13.y)) + (_local41 * _local14.y));
return (3);
}
public static function (_arg1:b2Vec2, _arg2:Array, _arg3:int):Boolean{
var _local6:b2Vec2;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local4:Number = (100 * Number.MIN_VALUE);
var _local5:int;
while (_local5 < _arg3) {
_local6 = _arg2[_local5];
_local7 = Math.abs((_arg1.x - _local6.x));
_local8 = Math.abs((_arg1.y - _local6.y));
_local9 = Math.max(Math.abs(_arg1.x), Math.abs(_local6.x));
_local10 = Math.max(Math.abs(_arg1.y), Math.abs(_local6.y));
if ((((_local7 < (_local4 * (_local9 + 1)))) && ((_local8 < (_local4 * (_local10 + 1)))))){
return (true);
};
_local5++;
};
return (false);
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2, _arg3, _arg4:b2XForm, _arg5, _arg6:b2XForm):Number{
var _local7:b2Vec2;
var _local15:Number;
var _local16:Number;
var _local17:b2Vec2;
var _local18:b2Vec2;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:int;
var _local8:Array =
;
var _local9:Array = ;
var _local10:Array = ;
var _local11:int;
_arg1. (_arg3. (_arg4));
_arg2. (_arg5. (_arg6));
var _local12:Number = 0;
var _local13 = 20;
var _local14:int;
while (_local14 < _local13) {
_local15 = (_arg2.x - _arg1.x);
_local16 = (_arg2.y - _arg1.y);
_local17 = _arg3. (_arg4, _local15, _local16);
_local18 = _arg5. (_arg6, -(_local15), -(_local16));
_local12 = ((_local15 * _local15) + (_local16 * _local16));
_local19 = (_local18.x - _local17.x);
_local20 = (_local18.y - _local17.y);
_local21 = ((_local15 * _local19) + (_local16 * _local20));
if ((_local12 - ((_local15 * _local19) + (_local16 * _local20))) <= (0.01 * _local12)){
if (_local11 == 0){
_arg1. (_local17);
_arg2. (_local18);
};
= _local14;
return (Math.sqrt(_local12));
};
switch (_local11){
case 0:
_local7 = _local8[0];
_local7. (_local17);
_local7 = _local9[0];
_local7. (_local18);
_local7 = _local10[0];
_local7.x = _local19;
_local7.y = _local20;
_arg1. (_local8[0]);
_arg2. (_local9[0]);
_local11++;
break;
case 1:
_local7 = _local8[1];
_local7. (_local17);
_local7 = _local9[1];
_local7. (_local18);
_local7 = _local10[1];
_local7.x = _local19;
_local7.y = _local20;
_local11 =
(_arg1, _arg2, _local8, _local9, _local10);
break;
case 2:
_local7 = _local8[2];
_local7. (_local17);
_local7 = _local9[2];
_local7. (_local18);
_local7 = _local10[2];
_local7.x = _local19;
_local7.y = _local20;
_local11 = (_arg1, _arg2, _local8, _local9, _local10);
break;
};
if (_local11 == 3){
= _local14;
return (0);
};
_local22 = -(Number.MAX_VALUE);
_local23 = 0;
while (_local23 < _local11) {
_local7 = _local10[_local23];
_local22 = b2Math.
(_local22, ((_local7.x * _local7.x) + (_local7.y * _local7.y)));
_local23++;
};
if ((((_local11 == 3)) || ((_local12 <= ((100 * Number.MIN_VALUE) * _local22))))){
= _local14;
_local15 = (_arg2.x - _arg1.x);
_local16 = (_arg2.y - _arg1.y);
_local12 = ((_local15 * _local15) + (_local16 * _local16));
return (Math.sqrt(_local12));
};
_local14++;
};
= _local13;
return (Math.sqrt(_local12));
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2CircleShape, _arg4:b2XForm, _arg5:b2CircleShape, _arg6:b2XForm):Number{
var _local7:b2Mat22;
var _local8:b2Vec2;
var _local19:Number;
var _local20:Number;
_local7 = _arg4.R;
_local8 = _arg3. ;
var _local9:Number = (_arg4.position.x + ((_local7.
.x * _local8.x) + (_local7. .x * _local8.y)));
var _local10:Number = (_arg4.position.y + ((_local7.
.y * _local8.x) + (_local7. .y * _local8.y)));
_local7 = _arg6.R;
_local8 = _arg5. ;
var _local11:Number = (_arg6.position.x + ((_local7.
.x * _local8.x) + (_local7. .x * _local8.y)));
var _local12:Number = (_arg6.position.y + ((_local7.
.y * _local8.x) + (_local7. .y * _local8.y)));
var _local13:Number = (_local11 - _local9);
var _local14:Number = (_local12 - _local10);
var _local15:Number = ((_local13 * _local13) + (_local14 * _local14));
var _local16:Number = (_arg3. - b2Settings.b2_toiSlop);
var _local17:Number = (_arg5. - b2Settings.b2_toiSlop);
var _local18:Number = (_local16 + _local17);
if (_local15 > (_local18 * _local18)){
_local19 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14)));
_local13 = (_local13 / _local19);
_local14 = (_local14 / _local19);
_local20 = (_local19 - _local18);
_arg1.x = (_local9 + (_local16 * _local13));
_arg1.y = (_local10 + (_local16 * _local14));
_arg2.x = (_local11 - (_local17 * _local13));
_arg2.y = (_local12 - (_local17 * _local14));
return (_local20);
};
if (_local15 > (Number.MIN_VALUE * Number.MIN_VALUE)){
_local19 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14)));
_local13 = (_local13 / _local19);
_local14 = (_local14 / _local19);
_arg1.x = (_local9 + (_local16 * _local13));
_arg1.y = (_local10 + (_local16 * _local14));
_arg2.x = _arg1.x;
_arg2.y = _arg1.y;
return (0);
};
_arg1.x = _local9;
_arg1.y = _local10;
_arg2.x = _arg1.x;
_arg2.y = _arg1.y;
return (0);
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2PolygonShape, _arg4:b2XForm, _arg5:b2CircleShape, _arg6:b2XForm):Number{
var _local7:b2Mat22;
var _local8:b2Vec2;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local9:b2Point = ;
_local8 = _arg5. ;
_local7 = _arg6.R;
_local9.p.x = (_arg6.position.x + ((_local7.
.x * _local8.x) + (_local7. .x * _local8.y)));
_local9.p.y = (_arg6.position.y + ((_local7.
.y * _local8.x) + (_local7. .y * _local8.y)));
var _local10:Number = (_arg1, _arg2, _arg3, _arg4, _local9, b2Math.b2XForm_identity);
var _local11:Number = (_arg5. - b2Settings.b2_toiSlop);
if (_local10 > _local11){
_local10 = (_local10 - _local11);
_local12 = (_arg2.x - _arg1.x);
_local13 = (_arg2.y - _arg1.y);
_local14 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13)));
_local12 = (_local12 / _local14);
_local13 = (_local13 / _local14);
_arg2.x = (_arg2.x - (_local11 * _local12));
_arg2.y = (_arg2.y - (_local11 * _local13));
} else {
_local10 = 0;
_arg2.x = _arg1.x;
_arg2.y = _arg1.y;
};
return (_local10);
}
public static function Distance(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Shape, _arg4:b2XForm, _arg5:b2Shape, _arg6:b2XForm):Number{
var _local7:int = _arg3. ;
var _local8:int = _arg5. ;
if ((((_local7 == b2Shape.e_circleShape)) && ((_local8 == b2Shape.e_circleShape)))){
return ( (_arg1, _arg2, (_arg3 as b2CircleShape), _arg4, (_arg5 as b2CircleShape), _arg6));
};
if ((((_local7 == b2Shape.e_polygonShape)) && ((_local8 == b2Shape.e_circleShape)))){
return ( (_arg1, _arg2, (_arg3 as b2PolygonShape), _arg4, (_arg5 as b2CircleShape), _arg6));
};
if ((((_local7 == b2Shape.e_circleShape)) && ((_local8 == b2Shape.e_polygonShape)))){
return ( (_arg2, _arg1, (_arg5 as b2PolygonShape), _arg6, (_arg3 as b2CircleShape), _arg4));
};
if ((((_local7 == b2Shape.e_polygonShape)) && ((_local8 == b2Shape.e_polygonShape)))){
return ( (_arg1, _arg2, (_arg3 as b2PolygonShape), _arg4, (_arg5 as b2PolygonShape), _arg6));
};
return (0);
}
}
}//package Box2D.Collision
Section 10
//b2AABB (Box2D.Collision.b2AABB)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2AABB {
public var :b2Vec2;
public var :b2Vec2;
public function b2AABB(){
= new b2Vec2();
= new b2Vec2();
super();
}
public function ():Boolean{
var _local1:Number = ( .x - .x);
var _local2:Number = ( .y - .y);
var _local3:Boolean = (((_local1 >= 0)) && ((_local2 >= 0)));
_local3 = ((((_local3) && ( . ()))) && ( . ()));
return (_local3);
}
}
}//package Box2D.Collision
Section 11
//b2Bound (Box2D.Collision.b2Bound)
package Box2D.Collision {
public class b2Bound {
public var value:uint;
public var :uint;
public var :uint;
public function ():Boolean{
return (((value & 1) == 0));
}
public function ():Boolean{
return (((value & 1) == 1));
}
public function (_arg1:b2Bound):void{
var _local2:uint = value;
var _local3:uint = ;
var _local4:uint = ;
value = _arg1.value;
= _arg1. ;
= _arg1. ;
_arg1.value = _local2;
_arg1. = _local3;
_arg1. = _local4;
}
}
}//package Box2D.Collision
Section 12
//b2BoundValues (Box2D.Collision.b2BoundValues)
package Box2D.Collision {
public class b2BoundValues {
public var :Array;
public var :Array;
public function b2BoundValues(){
= [0, 0];
= [0, 0];
super();
}
}
}//package Box2D.Collision
Section 13
//b2BroadPhase (Box2D.Collision.b2BroadPhase)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2BroadPhase {
public var :b2PairManager;
public var :Array;
public var :uint;
public var :Array;
public var :Array;
public var :int;
public var :b2AABB;
public var :b2Vec2;
public var :int;
public var :uint;
public static const b2_invalid:uint = b2Settings.USHRT_MAX;
public static const b2_nullEdge:uint = b2Settings.USHRT_MAX;
public static var :Boolean = false;
public function b2BroadPhase(_arg1:b2AABB, _arg2:b2PairCallback){
var _local3:int;
var _local5:Number;
var _local6:b2Proxy;
var _local7:int;
= new b2PairManager();
= new Array(b2Settings.b2_maxPairs);
= new Array((2 * b2Settings.b2_maxProxies));
= new Array(b2Settings.b2_maxProxies);
= new b2Vec2();
super();
. (this, _arg2);
= _arg1;
= 0;
_local3 = 0;
while (_local3 < b2Settings.b2_maxProxies) {
[_local3] = 0;
_local3++;
};
= new Array(2);
_local3 = 0;
while (_local3 < 2) {
[_local3] = new Array((2 * b2Settings.b2_maxProxies));
_local7 = 0;
while (_local7 < (2 * b2Settings.b2_maxProxies)) {
[_local3][_local7] = new b2Bound();
_local7++;
};
_local3++;
};
var _local4:Number = (_arg1. .x - _arg1. .x);
_local5 = (_arg1. .y - _arg1. .y);
.x = (b2Settings.USHRT_MAX / _local4);
.y = (b2Settings.USHRT_MAX / _local5);
_local3 = 0;
while (_local3 < (b2Settings.b2_maxProxies - 1)) {
_local6 = new b2Proxy();
[_local3] = _local6;
_local6. ((_local3 + 1));
_local6. = 0;
_local6. = b2_invalid;
_local6. = null;
_local3++;
};
_local6 = new b2Proxy();
[int((b2Settings.b2_maxProxies - 1))] = _local6;
_local6. (b2Pair. );
_local6. = 0;
_local6. = b2_invalid;
_local6. = null;
= 0;
= 1;
= 0;
}
public function (_arg1:b2AABB):Boolean{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = _arg1. .x;
_local3 = _arg1. .y;
_local2 = (_local2 - . .x);
_local3 = (_local3 - . .y);
_local4 = . .x;
_local5 = . .y;
_local4 = (_local4 - _arg1. .x);
_local5 = (_local5 - _arg1. .y);
_local2 = b2Math.
(_local2, _local4);
_local3 = b2Math.
(_local3, _local5);
return ((b2Math.
(_local2, _local3) < 0));
}
public function (_arg1:int):b2Proxy{
var _local2:b2Proxy = [_arg1];
if ((((_arg1 == b2Pair. )) || ((_local2. () == false)))){
return (null);
};
return (_local2);
}
public function (_arg1:b2AABB, _arg2):uint{
var _local3:uint;
var _local4:b2Proxy;
var _local11:Array;
var _local12:uint;
var _local13:uint;
var _local14:Array;
var _local15:Array;
var _local16:Array;
var _local17:int;
var _local18:int;
var _local19:b2Bound;
var _local20:b2Bound;
var _local21:b2Bound;
var _local22:int;
var _local23:b2Proxy;
var _local5:uint = ;
_local4 = [_local5];
= _local4. ();
_local4. = 0;
_local4. = _arg2;
var _local6:uint = (2 * );
var _local7:Array = new Array();
var _local8:Array = new Array();
(_local7, _local8, _arg1);
var _local9:int;
while (_local9 < 2) {
_local11 = [_local9];
_local14 = [_local12];
_local15 = [_local13];
(_local14, _local15, _local7[_local9], _local8[_local9], _local11, _local6, _local9);
_local12 = _local14[0];
_local13 = _local15[0];
_local16 = new Array();
_local18 = (_local6 - _local13);
_local17 = 0;
while (_local17 < _local18) {
_local16[_local17] = new b2Bound();
_local19 = _local16[_local17];
_local20 = _local11[int((_local13 + _local17))];
_local19.value = _local20.value;
_local19. = _local20. ;
_local19. = _local20. ;
_local17++;
};
_local18 = _local16.length;
_local22 = (_local13 + 2);
_local17 = 0;
while (_local17 < _local18) {
_local20 = _local16[_local17];
_local19 = _local11[int((_local22 + _local17))];
_local19.value = _local20.value;
_local19. = _local20. ;
_local19. = _local20. ;
_local17++;
};
_local16 = new Array();
_local18 = (_local13 - _local12);
_local17 = 0;
while (_local17 < _local18) {
_local16[_local17] = new b2Bound();
_local19 = _local16[_local17];
_local20 = _local11[int((_local12 + _local17))];
_local19.value = _local20.value;
_local19. = _local20. ;
_local19. = _local20. ;
_local17++;
};
_local18 = _local16.length;
_local22 = (_local12 + 1);
_local17 = 0;
while (_local17 < _local18) {
_local20 = _local16[_local17];
_local19 = _local11[int((_local22 + _local17))];
_local19.value = _local20.value;
_local19. = _local20. ;
_local19. = _local20. ;
_local17++;
};
_local13++;
_local19 = _local11[_local12];
_local20 = _local11[_local13];
_local19.value = _local7[_local9];
_local19. = _local5;
_local20.value = _local8[_local9];
_local20. = _local5;
_local21 = _local11[int((_local12 - 1))];
_local19. = ((_local12 == 0)) ? 0 : _local21. ;
_local21 = _local11[int((_local13 - 1))];
_local20. = _local21. ;
_local3 = _local12;
while (_local3 < _local13) {
_local21 = _local11[_local3];
_local21. ++;
_local3++;
};
_local3 = _local12;
while (_local3 < (_local6 + 2)) {
_local19 = _local11[_local3];
_local23 = [_local19. ];
if (_local19. ()){
_local23. [_local9] = _local3;
} else {
_local23. [_local9] = _local3;
};
_local3++;
};
_local9++;
};
++;
var _local10:int;
while (_local10 < ) {
. (_local5, [_local10]);
_local10++;
};
.Commit();
= 0;
();
return (_local5);
}
public function (_arg1:uint):void{
var _local2:b2Bound;
var _local3:b2Bound;
var _local8:Array;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:Array;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:uint;
var _local18:int;
var _local19:b2Proxy;
var _local4:b2Proxy = [_arg1];
var _local5:int = (2 * );
var _local6:int;
while (_local6 < 2) {
_local8 = [_local6];
_local9 = _local4. [_local6];
_local10 = _local4. [_local6];
_local2 = _local8[_local9];
_local11 = _local2.value;
_local3 = _local8[_local10];
_local12 = _local3.value;
_local13 = new Array();
_local15 = ((_local10 - _local9) - 1);
_local14 = 0;
while (_local14 < _local15) {
_local13[_local14] = new b2Bound();
_local2 = _local13[_local14];
_local3 = _local8[int(((_local9 + 1) + _local14))];
_local2.value = _local3.value;
_local2. = _local3. ;
_local2. = _local3. ;
_local14++;
};
_local15 = _local13.length;
_local16 = _local9;
_local14 = 0;
while (_local14 < _local15) {
_local3 = _local13[_local14];
_local2 = _local8[int((_local16 + _local14))];
_local2.value = _local3.value;
_local2. = _local3. ;
_local2. = _local3. ;
_local14++;
};
_local13 = new Array();
_local15 = ((_local5 - _local10) - 1);
_local14 = 0;
while (_local14 < _local15) {
_local13[_local14] = new b2Bound();
_local2 = _local13[_local14];
_local3 = _local8[int(((_local10 + 1) + _local14))];
_local2.value = _local3.value;
_local2. = _local3. ;
_local2. = _local3. ;
_local14++;
};
_local15 = _local13.length;
_local16 = (_local10 - 1);
_local14 = 0;
while (_local14 < _local15) {
_local3 = _local13[_local14];
_local2 = _local8[int((_local16 + _local14))];
_local2.value = _local3.value;
_local2. = _local3. ;
_local2. = _local3. ;
_local14++;
};
_local15 = (_local5 - 2);
_local17 = _local9;
while (_local17 < _local15) {
_local2 = _local8[_local17];
_local19 = [_local2. ];
if (_local2. ()){
_local19. [_local6] = _local17;
} else {
_local19. [_local6] = _local17;
};
_local17++;
};
_local15 = (_local10 - 1);
_local18 = _local9;
while (_local18 < _local15) {
_local2 = _local8[_local18];
_local2. --;
_local18++;
};
([0], [0], _local11, _local12, _local8, (_local5 - 2), _local6);
_local6++;
};
var _local7:int;
while (_local7 < ) {
. (_arg1, [_local7]);
_local7++;
};
.Commit();
= 0;
();
_local4. = null;
_local4. = b2_invalid;
_local4. [0] = b2_invalid;
_local4. [1] = b2_invalid;
_local4. [0] = b2_invalid;
_local4. [1] = b2_invalid;
_local4. ( );
= _arg1;
--;
}
public function (_arg1:uint, _arg2:b2AABB):void{
var _local3:Array;
var _local4:int;
var _local5:uint;
var _local6:uint;
var _local7:b2Bound;
var _local8:b2Bound;
var _local9:b2Bound;
var _local10:uint;
var _local11:b2Proxy;
var _local16:Array;
var _local17:uint;
var _local18:uint;
var _local19:uint;
var _local20:uint;
var _local21:int;
var _local22:int;
var _local23:uint;
var _local24:b2Proxy;
if ((((_arg1 == b2Pair. )) || ((b2Settings.b2_maxProxies <= _arg1)))){
return;
};
if (_arg2. () == false){
return;
};
var _local12:uint = (2 * );
var _local13:b2Proxy = [_arg1];
var _local14:b2BoundValues = new b2BoundValues();
(_local14. , _local14. , _arg2);
var _local15:b2BoundValues = new b2BoundValues();
_local5 = 0;
while (_local5 < 2) {
_local7 = [_local5][_local13. [_local5]];
_local15. [_local5] = _local7.value;
_local7 = [_local5][_local13. [_local5]];
_local15. [_local5] = _local7.value;
_local5++;
};
_local5 = 0;
while (_local5 < 2) {
_local16 = [_local5];
_local17 = _local13. [_local5];
_local18 = _local13. [_local5];
_local19 = _local14. [_local5];
_local20 = _local14. [_local5];
_local7 = _local16[_local17];
_local21 = (_local19 - _local7.value);
_local7.value = _local19;
_local7 = _local16[_local18];
_local22 = (_local20 - _local7.value);
_local7.value = _local20;
if (_local21 < 0){
_local6 = _local17;
while ((((_local6 > 0)) && ((_local19 < (_local16[int((_local6 - 1))] as b2Bound).value)))) {
_local7 = _local16[_local6];
_local8 = _local16[int((_local6 - 1))];
_local23 = _local8. ;
_local24 = [_local8. ];
_local8. ++;
if (_local8. () == true){
if ( (_local14, _local24)){
. (_arg1, _local23);
};
_local3 = _local24. ;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7. ++;
} else {
_local3 = _local24. ;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7. --;
};
_local3 = _local13. ;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7. (_local8);
_local6--;
};
};
if (_local22 > 0){
_local6 = _local18;
while ((((_local6 < (_local12 - 1))) && (((_local16[int((_local6 + 1))] as b2Bound).value <= _local20)))) {
_local7 = _local16[_local6];
_local9 = _local16[int((_local6 + 1))];
_local10 = _local9. ;
_local11 = [_local10];
_local9. ++;
if (_local9. () == true){
if ( (_local14, _local11)){
. (_arg1, _local10);
};
_local3 = _local11. ;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7. ++;
} else {
_local3 = _local11. ;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7. --;
};
_local3 = _local13. ;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7. (_local9);
_local6++;
};
};
if (_local21 > 0){
_local6 = _local17;
while ((((_local6 < (_local12 - 1))) && (((_local16[int((_local6 + 1))] as b2Bound).value <= _local19)))) {
_local7 = _local16[_local6];
_local9 = _local16[int((_local6 + 1))];
_local10 = _local9. ;
_local11 = [_local10];
_local9. --;
if (_local9. ()){
if ( (_local15, _local11)){
. (_arg1, _local10);
};
_local3 = _local11. ;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7. --;
} else {
_local3 = _local11. ;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7. ++;
};
_local3 = _local13. ;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7. (_local9);
_local6++;
};
};
if (_local22 < 0){
_local6 = _local18;
while ((((_local6 > 0)) && ((_local20 < (_local16[int((_local6 - 1))] as b2Bound).value)))) {
_local7 = _local16[_local6];
_local8 = _local16[int((_local6 - 1))];
_local23 = _local8. ;
_local24 = [_local23];
_local8. --;
if (_local8. () == true){
if ( (_local15, _local24)){
. (_arg1, _local23);
};
_local3 = _local24. ;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7. --;
} else {
_local3 = _local24. ;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7. ++;
};
_local3 = _local13. ;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7. (_local8);
_local6--;
};
};
_local5++;
};
}
public function Commit():void{
.Commit();
}
public function (_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();
(_local4, _local5, _arg1);
var _local8:Array = [_local6];
var _local9:Array = [_local7];
(_local8, _local9, _local4[0], _local5[0], [0], (2 * ), 0);
(_local8, _local9, _local4[1], _local5[1], [1], (2 * ), 1);
var _local10:int;
var _local11:int;
while ((((_local11 < )) && ((_local10 < _arg3)))) {
_local12 = [ [_local11]];
_arg2[_local11] = _local12. ;
_local11++;
_local10++;
};
= 0;
();
return (_local10);
}
public function ():void{
var _local1:b2Pair;
var _local2:b2Proxy;
var _local3:b2Proxy;
var _local4:Boolean;
var _local6:b2Bound;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:b2Bound;
var _local5:int;
while (_local5 < 2) {
_local6 = [_local5];
_local7 = (2 * );
_local8 = 0;
_local9 = 0;
while (_local9 < _local7) {
_local10 = _local6[_local9];
if (_local10. () == true){
_local8++;
} else {
_local8--;
};
_local9++;
};
_local5++;
};
}
private function (_arg1:Array, _arg2:Array, _arg3:b2AABB):void{
var _local4:Number = _arg3. .x;
var _local5:Number = _arg3. .y;
_local4 = b2Math.
(_local4, . .x);
_local5 = b2Math.
(_local5, . .y);
_local4 = b2Math.
(_local4, . .x);
_local5 = b2Math.
(_local5, . .y);
var _local6:Number = _arg3. .x;
var _local7:Number = _arg3. .y;
_local6 = b2Math.
(_local6, . .x);
_local7 = b2Math.
(_local7, . .y);
_local6 = b2Math.
(_local6, . .x);
_local7 = b2Math.
(_local7, . .y);
_arg1[0] = (uint(( .x * (_local4 - . .x))) & (b2Settings.USHRT_MAX - 1));
_arg2[0] = ((uint(( .x * (_local6 - . .x))) & 0xFFFF) | 1);
_arg1[1] = (uint(( .y * (_local5 - . .y))) & (b2Settings.USHRT_MAX - 1));
_arg2[1] = ((uint(( .y * (_local7 - . .y))) & 0xFFFF) | 1);
}
private function
(_arg1:b2Proxy, _arg2:b2Proxy):Boolean{
var _local4:Array;
var _local5:b2Bound;
var _local6:b2Bound;
var _local3:int;
while (_local3 < 2) {
_local4 = [_local3];
_local5 = _local4[_arg1. [_local3]];
_local6 = _local4[_arg2. [_local3]];
if (_local5.value > _local6.value){
return (false);
};
_local5 = _local4[_arg1. [_local3]];
_local6 = _local4[_arg2. [_local3]];
if (_local5.value < _local6.value){
return (false);
};
_local3++;
};
return (true);
}
public function (_arg1:b2BoundValues, _arg2:b2Proxy):Boolean{
var _local4:Array;
var _local5:b2Bound;
var _local3:int;
while (_local3 < 2) {
_local4 = [_local3];
_local5 = _local4[_arg2. [_local3]];
if (_arg1. [_local3] > _local5.value){
return (false);
};
_local5 = _local4[_arg2. [_local3]];
if (_arg1. [_local3] < _local5.value){
return (false);
};
_local3++;
};
return (true);
}
private function (_arg1:Array, _arg2:Array, _arg3:uint, _arg4:uint, _arg5:Array, _arg6:uint, _arg7:int):void{
var _local10:b2Bound;
var _local12:int;
var _local13:int;
var _local14:b2Proxy;
var _local8:uint = (_arg5, _arg6, _arg3);
var _local9:uint = (_arg5, _arg6, _arg4);
var _local11:uint = _local8;
while (_local11 < _local9) {
_local10 = _arg5[_local11];
if (_local10. ()){
(_local10. );
};
_local11++;
};
if (_local8 > 0){
_local12 = (_local8 - 1);
_local10 = _arg5[_local12];
_local13 = _local10. ;
while (_local13) {
_local10 = _arg5[_local12];
if (_local10. ()){
_local14 = [_local10. ];
if (_local8 <= _local14. [_arg7]){
(_local10. );
_local13--;
};
};
_local12--;
};
};
_arg1[0] = _local8;
_arg2[0] = _local9;
}
private function (_arg1:uint):void{
var _local2:b2Proxy = [_arg1];
if (_local2. < ){
_local2. = ;
_local2. = 1;
} else {
_local2. = 2;
[ ] = _arg1;
++;
};
}
private function
():void{
var _local1:uint;
if ( == b2Settings.USHRT_MAX){
_local1 = 0;
while (_local1 < b2Settings.b2_maxProxies) {
( [_local1] as b2Proxy). = 0;
_local1++;
};
= 1;
} else {
++;
};
}
public static function (_arg1:Array, _arg2:int, _arg3:uint):uint{
var _local6:int;
var _local7:b2Bound;
var _local4:int;
var _local5:int = (_arg2 - 1);
while (_local4 <= _local5) {
_local6 = ((_local4 + _local5) / 2);
_local7 = _arg1[_local6];
if (_local7.value > _arg3){
_local5 = (_local6 - 1);
} else {
if (_local7.value < _arg3){
_local4 = (_local6 + 1);
} else {
return (uint(_local6));
};
};
};
return (uint(_local4));
}
}
}//package Box2D.Collision
Section 14
//b2BufferedPair (Box2D.Collision.b2BufferedPair)
package Box2D.Collision {
public class b2BufferedPair {
public var :uint;
public var :uint;
}
}//package Box2D.Collision
Section 15
//b2Collision (Box2D.Collision.b2Collision)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.Shapes.*;
public class b2Collision {
public static const b2_nullFeature:uint = 0xFF;
private static var :b2Vec2 = new b2Vec2();
public static function (_arg1:Array, _arg2:Array, _arg3:b2Vec2, _arg4:Number):int{
var _local5:ClipVertex;
var _local6:int;
var _local7:b2Vec2;
var _local8:b2Vec2;
var _local9:Number;
var _local11:Number;
var _local12:b2Vec2;
var _local13:ClipVertex;
_local6 = 0;
_local5 = _arg2[0];
_local7 = _local5.v;
_local5 = _arg2[1];
_local8 = _local5.v;
_local9 = (b2Math. (_arg3, _local7) - _arg4);
var _local10:Number = (b2Math. (_arg3, _local8) - _arg4);
if (_local9 <= 0){
var _temp1 = _local6;
_local6 = (_local6 + 1);
var _local14 = _temp1;
_arg1[_local14] = _arg2[0];
};
if (_local10 <= 0){
var _temp2 = _local6;
_local6 = (_local6 + 1);
_local14 = _temp2;
_arg1[_local14] = _arg2[1];
};
if ((_local9 * _local10) < 0){
_local11 = (_local9 / (_local9 - _local10));
_local5 = _arg1[_local6];
_local12 = _local5.v;
_local12.x = (_local7.x + (_local11 * (_local8.x - _local7.x)));
_local12.y = (_local7.y + (_local11 * (_local8.y - _local7.y)));
_local5 = _arg1[_local6];
if (_local9 > 0){
_local13 = _arg2[0];
_local5.id = _local13.id;
} else {
_local13 = _arg2[1];
_local5.id = _local13.id;
};
_local6++;
};
return (_local6);
}
public static function (_arg1:b2PolygonShape, _arg2:b2XForm, _arg3:int, _arg4:b2PolygonShape, _arg5:b2XForm):Number{
var _local11:b2Mat22;
var _local12:b2Vec2;
var _local25:Number;
var _local6:int = _arg1.
;
var _local7:Array = _arg1. ;
var _local8:Array = _arg1. ;
var _local9:int = _arg4.
;
var _local10:Array = _arg4. ;
_local11 = _arg2.R;
_local12 = _local8[_arg3];
var _local13:Number = ((_local11.
.x * _local12.x) + (_local11. .x * _local12.y));
var _local14:Number = ((_local11.
.y * _local12.x) + (_local11. .y * _local12.y));
_local11 = _arg5.R;
var _local15:Number = ((_local11.
.x * _local13) + (_local11.
.y * _local14));
var _local16:Number = ((_local11. .x * _local13) + (_local11. .y * _local14));
var _local17:int;
var _local18:Number = Number.MAX_VALUE;
var _local19:int;
while (_local19 < _local9) {
_local12 = _local10[_local19];
_local25 = ((_local12.x * _local15) + (_local12.y * _local16));
if (_local25 < _local18){
_local18 = _local25;
_local17 = _local19;
};
_local19++;
};
_local12 = _local7[_arg3];
_local11 = _arg2.R;
var _local20:Number = (_arg2.position.x + ((_local11.
.x * _local12.x) + (_local11. .x * _local12.y)));
var _local21:Number = (_arg2.position.y + ((_local11.
.y * _local12.x) + (_local11. .y * _local12.y)));
_local12 = _local10[_local17];
_local11 = _arg5.R;
var _local22:Number = (_arg5.position.x + ((_local11.
.x * _local12.x) + (_local11. .x * _local12.y)));
var _local23:Number = (_arg5.position.y + ((_local11.
.y * _local12.x) + (_local11. .y * _local12.y)));
_local22 = (_local22 - _local20);
_local23 = (_local23 - _local21);
var _local24:Number = ((_local22 * _local13) + (_local23 * _local14));
return (_local24);
}
public static function (_arg1:Array, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2PolygonShape, _arg5:b2XForm):Number{
var _local8:b2Vec2;
var _local9:b2Mat22;
var _local22:int;
var _local23:Number;
var _local24:int;
var _local25:Number;
var _local6:int = _arg2.
;
var _local7:Array = _arg2. ;
_local9 = _arg5.R;
_local8 = _arg4. ;
var _local10:Number = (_arg5.position.x + ((_local9.
.x * _local8.x) + (_local9. .x * _local8.y)));
var _local11:Number = (_arg5.position.y + ((_local9.
.y * _local8.x) + (_local9. .y * _local8.y)));
_local9 = _arg3.R;
_local8 = _arg2. ;
_local10 = (_local10 - (_arg3.position.x + ((_local9.
.x * _local8.x) + (_local9. .x * _local8.y))));
_local11 = (_local11 - (_arg3.position.y + ((_local9.
.y * _local8.x) + (_local9. .y * _local8.y))));
var _local12:Number = ((_local10 * _arg3.R.
.x) + (_local11 * _arg3.R.
.y));
var _local13:Number = ((_local10 * _arg3.R. .x) + (_local11 * _arg3.R. .y));
var _local14:int;
var _local15:Number = -(Number.MAX_VALUE);
var _local16:int;
while (_local16 < _local6) {
_local8 = _local7[_local16];
_local25 = ((_local8.x * _local12) + (_local8.y * _local13));
if (_local25 > _local15){
_local15 = _local25;
_local14 = _local16;
};
_local16++;
};
var _local17:Number = (_arg2, _arg3, _local14, _arg4, _arg5);
if (_local17 > 0){
return (_local17);
};
var _local18:int = (((_local14 - 1) >= 0)) ? (_local14 - 1) : (_local6 - 1);
var _local19:Number = (_arg2, _arg3, _local18, _arg4, _arg5);
if (_local19 > 0){
return (_local19);
};
var _local20:int = (((_local14 + 1) < _local6)) ? (_local14 + 1) : 0;
var _local21:Number = (_arg2, _arg3, _local20, _arg4, _arg5);
if (_local21 > 0){
return (_local21);
};
if ((((_local19 > _local17)) && ((_local19 > _local21)))){
_local24 = -1;
_local22 = _local18;
_local23 = _local19;
} else {
if (_local21 > _local17){
_local24 = 1;
_local22 = _local20;
_local23 = _local21;
} else {
_arg1[0] = _local14;
return (_local17);
};
};
while (true) {
if (_local24 == -1){
_local14 = (((_local22 - 1) >= 0)) ? (_local22 - 1) : (_local6 - 1);
} else {
_local14 = (((_local22 + 1) < _local6)) ? (_local22 + 1) : 0;
};
_local17 = (_arg2, _arg3, _local14, _arg4, _arg5);
if (_local17 > 0){
return (_local17);
};
if (_local17 > _local23){
_local22 = _local14;
_local23 = _local17;
} else {
break;
};
};
_arg1[0] = _local22;
return (_local23);
}
public static function (_arg1:Array, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:int, _arg5:b2PolygonShape, _arg6:b2XForm):void{
var _local12:b2Mat22;
var _local13:b2Vec2;
var _local20:ClipVertex;
var _local23:Number;
var _local7:int = _arg2.
;
var _local8:Array = _arg2. ;
var _local9:int = _arg5.
;
var _local10:Array = _arg5. ;
var _local11:Array = _arg5. ;
_local12 = _arg3.R;
_local13 = _local8[_arg4];
var _local14:Number = ((_local12.
.x * _local13.x) + (_local12. .x * _local13.y));
var _local15:Number = ((_local12.
.y * _local13.x) + (_local12. .y * _local13.y));
_local12 = _arg6.R;
var _local16:Number = ((_local12.
.x * _local14) + (_local12.
.y * _local15));
_local15 = ((_local12. .x * _local14) + (_local12. .y * _local15));
_local14 = _local16;
var _local17:int;
var _local18:Number = Number.MAX_VALUE;
var _local19:int;
while (_local19 < _local9) {
_local13 = _local11[_local19];
_local23 = ((_local14 * _local13.x) + (_local15 * _local13.y));
if (_local23 < _local18){
_local18 = _local23;
_local17 = _local19;
};
_local19++;
};
var _local21:int = _local17;
var _local22:int = (((_local21 + 1) < _local9)) ? (_local21 + 1) : 0;
_local20 = _arg1[0];
_local13 = _local10[_local21];
_local12 = _arg6.R;
_local20.v.x = (_arg6.position.x + ((_local12.
.x * _local13.x) + (_local12. .x * _local13.y)));
_local20.v.y = (_arg6.position.y + ((_local12.
.y * _local13.x) + (_local12. .y * _local13.y)));
_local20.id. . = _arg4;
_local20.id. .
= _local21;
_local20.id. . = 0;
_local20 = _arg1[1];
_local13 = _local10[_local22];
_local12 = _arg6.R;
_local20.v.x = (_arg6.position.x + ((_local12.
.x * _local13.x) + (_local12. .x * _local13.y)));
_local20.v.y = (_arg6.position.y + ((_local12.
.y * _local13.x) + (_local12. .y * _local13.y)));
_local20.id. . = _arg4;
_local20.id. .
= _local22;
_local20.id. . = 1;
}
public static function
(_arg1:b2Manifold, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2PolygonShape, _arg5:b2XForm):void{
var _local6:ClipVertex;
var _local13:b2PolygonShape;
var _local14:b2PolygonShape;
var _local17:int;
var _local18:uint;
var _local34:int;
var _local37:b2Vec2;
var _local38:Number;
var _local39:b2ManifoldPoint;
_arg1. = 0;
var _local7:int;
var _local8:Array = [_local7];
var _local9:Number = (_local8, _arg2, _arg3, _arg4, _arg5);
_local7 = _local8[0];
if (_local9 > 0){
return;
};
var _local10:int;
var _local11:Array = [_local10];
var _local12:Number = (_local11, _arg4, _arg5, _arg2, _arg3);
_local10 = _local11[0];
if (_local12 > 0){
return;
};
var _local15:b2XForm = new b2XForm();
var _local16:b2XForm = new b2XForm();
var _local19:Number = 0.98;
var _local20:Number = 0.001;
if (_local12 > ((_local19 * _local9) + _local20)){
_local13 = _arg4;
_local14 = _arg2;
_local15.Set(_arg5);
_local16.Set(_arg3);
_local17 = _local10;
_local18 = 1;
} else {
_local13 = _arg2;
_local14 = _arg4;
_local15.Set(_arg3);
_local16.Set(_arg5);
_local17 = _local7;
_local18 = 0;
};
var _local21:Array = [new ClipVertex(), new ClipVertex()];
(_local21, _local13, _local15, _local17, _local14, _local16);
var _local22:int = _local13.
;
var _local23:Array = _local13. ;
var _local24:b2Vec2 = _local23[_local17];
var _local25:b2Vec2 = _local24.Copy();
if ((_local17 + 1) < _local22){
_local24 = _local23[int((_local17 + 1))];
_local37 = _local24.Copy();
} else {
_local24 = _local23[0];
_local37 = _local24.Copy();
};
var _local26:b2Vec2 = b2Math. (_local37, _local25);
var _local27:b2Vec2 = b2Math.
(_local15.R, b2Math. (_local37, _local25));
_local27.Normalize();
var _local28:b2Vec2 = b2Math. (_local27, 1);
_local25 = b2Math. (_local15, _local25);
_local37 = b2Math. (_local15, _local37);
var _local29:Number = b2Math. (_local28, _local25);
var _local30:Number = -(b2Math. (_local27, _local25));
var _local31:Number = b2Math. (_local27, _local37);
var _local32:Array = [new ClipVertex(), new ClipVertex()];
var _local33:Array = [new ClipVertex(), new ClipVertex()];
_local34 = (_local32, _local21, _local27. (), _local30);
if (_local34 < 2){
return;
};
_local34 = (_local33, _local32, _local27, _local31);
if (_local34 < 2){
return;
};
_arg1.normal = (_local18) ? _local28. () : _local28.Copy();
var _local35:int;
var _local36:int;
while (_local36 < b2Settings.b2_maxManifoldPoints) {
_local6 = _local33[_local36];
_local38 = (b2Math. (_local28, _local6.v) - _local29);
if (_local38 <= 0){
_local39 = _arg1. [_local35];
_local39. = _local38;
_local39. = b2Math.
(_arg3, _local6.v);
_local39. = b2Math.
(_arg5, _local6.v);
_local39.id.
= _local6.id. ;
_local39.id. . = _local18;
_local35++;
};
_local36++;
};
_arg1. = _local35;
}
public static function (_arg1:b2Manifold, _arg2:b2CircleShape, _arg3:b2XForm, _arg4:b2CircleShape, _arg5:b2XForm):void{
var _local6:b2Mat22;
var _local7:b2Vec2;
var _local18:Number;
var _local24:Number;
var _local25:Number;
_arg1. = 0;
_local6 = _arg3.R;
_local7 = _arg2. ;
var _local8:Number = (_arg3.position.x + ((_local6.
.x * _local7.x) + (_local6. .x * _local7.y)));
var _local9:Number = (_arg3.position.y + ((_local6.
.y * _local7.x) + (_local6. .y * _local7.y)));
_local6 = _arg5.R;
_local7 = _arg4. ;
var _local10:Number = (_arg5.position.x + ((_local6.
.x * _local7.x) + (_local6. .x * _local7.y)));
var _local11:Number = (_arg5.position.y + ((_local6.
.y * _local7.x) + (_local6. .y * _local7.y)));
var _local12:Number = (_local10 - _local8);
var _local13:Number = (_local11 - _local9);
var _local14:Number = ((_local12 * _local12) + (_local13 * _local13));
var _local15:Number = _arg2. ;
var _local16:Number = _arg4. ;
var _local17:Number = (_local15 + _local16);
if (_local14 > (_local17 * _local17)){
return;
};
if (_local14 < Number.MIN_VALUE){
_local18 = -(_local17);
_arg1.normal.Set(0, 1);
} else {
_local24 = Math.sqrt(_local14);
_local18 = (_local24 - _local17);
_local25 = (1 / _local24);
_arg1.normal.x = (_local25 * _local12);
_arg1.normal.y = (_local25 * _local13);
};
_arg1. = 1;
var _local19:b2ManifoldPoint = _arg1. [0];
_local19.id.
= 0;
_local19. = _local18;
_local8 = (_local8 + (_local15 * _arg1.normal.x));
_local9 = (_local9 + (_local15 * _arg1.normal.y));
_local10 = (_local10 - (_local16 * _arg1.normal.x));
_local11 = (_local11 - (_local16 * _arg1.normal.y));
var _local20:Number = (0.5 * (_local8 + _local10));
var _local21:Number = (0.5 * (_local9 + _local11));
var _local22:Number = (_local20 - _arg3.position.x);
var _local23:Number = (_local21 - _arg3.position.y);
_local19. .x = ((_local22 * _arg3.R.
.x) + (_local23 * _arg3.R.
.y));
_local19. .y = ((_local22 * _arg3.R. .x) + (_local23 * _arg3.R. .y));
_local22 = (_local20 - _arg5.position.x);
_local23 = (_local21 - _arg5.position.y);
_local19. .x = ((_local22 * _arg5.R.
.x) + (_local23 * _arg5.R.
.y));
_local19. .y = ((_local22 * _arg5.R. .x) + (_local23 * _arg5.R. .y));
}
public static function (_arg1:b2Manifold, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2CircleShape, _arg5:b2XForm):void{
var _local6:b2ManifoldPoint;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:b2Vec2;
var _local12:b2Mat22;
var _local17:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
_arg1. = 0;
_local12 = _arg5.R;
_local11 = _arg4. ;
var _local13:Number = (_arg5.position.x + ((_local12.
.x * _local11.x) + (_local12. .x * _local11.y)));
var _local14:Number = (_arg5.position.y + ((_local12.
.y * _local11.x) + (_local12. .y * _local11.y)));
_local7 = (_local13 - _arg3.position.x);
_local8 = (_local14 - _arg3.position.y);
_local12 = _arg3.R;
var _local15:Number = ((_local7 * _local12.
.x) + (_local8 * _local12.
.y));
var _local16:Number = ((_local7 * _local12. .x) + (_local8 * _local12. .y));
var _local18:int;
var _local19:Number = -(Number.MAX_VALUE);
var _local20:Number = _arg4. ;
var _local21:int = _arg2.
;
var _local22:Array = _arg2. ;
var _local23:Array = _arg2. ;
var _local24:int;
while (_local24 < _local21) {
_local11 = _local22[_local24];
_local7 = (_local15 - _local11.x);
_local8 = (_local16 - _local11.y);
_local11 = _local23[_local24];
_local34 = ((_local11.x * _local7) + (_local11.y * _local8));
if (_local34 > _local20){
return;
};
if (_local34 > _local19){
_local19 = _local34;
_local18 = _local24;
};
_local24++;
};
if (_local19 < Number.MIN_VALUE){
_arg1. = 1;
_local11 = _local23[_local18];
_local12 = _arg3.R;
_arg1.normal.x = ((_local12.
.x * _local11.x) + (_local12. .x * _local11.y));
_arg1.normal.y = ((_local12.
.y * _local11.x) + (_local12. .y * _local11.y));
_local6 = _arg1. [0];
_local6.id. .
= _local18;
_local6.id. . = b2_nullFeature;
_local6.id. . = 0;
_local6.id. . = 0;
_local9 = (_local13 - (_local20 * _arg1.normal.x));
_local10 = (_local14 - (_local20 * _arg1.normal.y));
_local7 = (_local9 - _arg3.position.x);
_local8 = (_local10 - _arg3.position.y);
_local12 = _arg3.R;
_local6. .x = ((_local7 * _local12.
.x) + (_local8 * _local12.
.y));
_local6. .y = ((_local7 * _local12. .x) + (_local8 * _local12. .y));
_local7 = (_local9 - _arg5.position.x);
_local8 = (_local10 - _arg5.position.y);
_local12 = _arg5.R;
_local6. .x = ((_local7 * _local12.
.x) + (_local8 * _local12.
.y));
_local6. .y = ((_local7 * _local12. .x) + (_local8 * _local12. .y));
_local6. = (_local19 - _local20);
return;
};
var _local25:int = _local18;
var _local26:int = (((_local25 + 1) < _local21)) ? (_local25 + 1) : 0;
_local11 = _local22[_local25];
var _local27:b2Vec2 = _local22[_local26];
var _local28:Number = (_local27.x - _local11.x);
var _local29:Number = (_local27.y - _local11.y);
var _local30:Number = Math.sqrt(((_local28 * _local28) + (_local29 * _local29)));
_local28 = (_local28 / _local30);
_local29 = (_local29 / _local30);
_local7 = (_local15 - _local11.x);
_local8 = (_local16 - _local11.y);
var _local31:Number = ((_local7 * _local28) + (_local8 * _local29));
_local6 = _arg1. [0];
if (_local31 <= 0){
_local32 = _local11.x;
_local33 = _local11.y;
_local6.id. .
= b2_nullFeature;
_local6.id. . = _local25;
} else {
if (_local31 >= _local30){
_local32 = _local27.x;
_local33 = _local27.y;
_local6.id. .
= b2_nullFeature;
_local6.id. . = _local26;
} else {
_local32 = ((_local28 * _local31) + _local11.x);
_local33 = ((_local29 * _local31) + _local11.y);
_local6.id. .
= _local18;
_local6.id. . = 0;
};
};
_local7 = (_local15 - _local32);
_local8 = (_local16 - _local33);
_local17 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8)));
_local7 = (_local7 / _local17);
_local8 = (_local8 / _local17);
if (_local17 > _local20){
return;
};
_arg1. = 1;
_local12 = _arg3.R;
_arg1.normal.x = ((_local12.
.x * _local7) + (_local12. .x * _local8));
_arg1.normal.y = ((_local12.
.y * _local7) + (_local12. .y * _local8));
_local9 = (_local13 - (_local20 * _arg1.normal.x));
_local10 = (_local14 - (_local20 * _arg1.normal.y));
_local7 = (_local9 - _arg3.position.x);
_local8 = (_local10 - _arg3.position.y);
_local12 = _arg3.R;
_local6. .x = ((_local7 * _local12.
.x) + (_local8 * _local12.
.y));
_local6. .y = ((_local7 * _local12. .x) + (_local8 * _local12. .y));
_local7 = (_local9 - _arg5.position.x);
_local8 = (_local10 - _arg5.position.y);
_local12 = _arg5.R;
_local6. .x = ((_local7 * _local12.
.x) + (_local8 * _local12.
.y));
_local6. .y = ((_local7 * _local12. .x) + (_local8 * _local12. .y));
_local6. = (_local17 - _local20);
_local6.id. . = 0;
_local6.id. . = 0;
}
public static function
(_arg1:b2AABB, _arg2:b2AABB):Boolean{
var _local3:b2Vec2 = _arg2. ;
var _local4:b2Vec2 = _arg1. ;
var _local5:Number = (_local3.x - _local4.x);
var _local6:Number = (_local3.y - _local4.y);
_local3 = _arg1. ;
_local4 = _arg2. ;
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);
}
}
}//package Box2D.Collision
Section 16
//b2ContactID (Box2D.Collision.b2ContactID)
package Box2D.Collision {
public class b2ContactID {
public var :Features;
public var :uint;
public function b2ContactID(){
= new Features();
super();
. = this;
}
public function Set(_arg1:b2ContactID):void{
= _arg1. ;
}
public function Copy():b2ContactID{
var _local1:b2ContactID = new b2ContactID();
_local1.
=
;
return (_local1);
}
public function get
():uint{
return ( );
}
public function set
(_arg1:uint):void{
= _arg1;
. = ( & 0xFF);
. = ((( & 0xFF00) >> 8) & 0xFF);
. = ((( & 0xFF0000) >> 16) & 0xFF);
. = ((( & 4278190080) >> 24) & 0xFF);
}
}
}//package Box2D.Collision
Section 17
//b2ContactPoint (Box2D.Collision.b2ContactPoint)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
public class b2ContactPoint {
public var :b2Shape;
public var :b2Shape;
public var position:b2Vec2;
public var :b2Vec2;
public var normal:b2Vec2;
public var :Number;
public var :Number;
public var :Number;
public var id:b2ContactID;
public function b2ContactPoint(){
position = new b2Vec2();
= new b2Vec2();
normal = new b2Vec2();
id = new b2ContactID();
super();
}
}
}//package Box2D.Collision
Section 18
//b2Manifold (Box2D.Collision.b2Manifold)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2Manifold {
public var :Array;
public var normal:b2Vec2;
public var :int;// = 0
public function b2Manifold(){
= new Array(b2Settings.b2_maxManifoldPoints);
var _local1:int;
while (_local1 < b2Settings.b2_maxManifoldPoints) {
[_local1] = new b2ManifoldPoint();
_local1++;
};
normal = new b2Vec2();
}
public function Reset():void{
var _local1:int;
while (_local1 < b2Settings.b2_maxManifoldPoints) {
( [_local1] as b2ManifoldPoint).Reset();
_local1++;
};
normal. ();
= 0;
}
public function Set(_arg1:b2Manifold):void{
= _arg1. ;
var _local2:int;
while (_local2 < b2Settings.b2_maxManifoldPoints) {
( [_local2] as b2ManifoldPoint).Set(_arg1. [_local2]);
_local2++;
};
normal. (_arg1.normal);
}
}
}//package Box2D.Collision
Section 19
//b2ManifoldPoint (Box2D.Collision.b2ManifoldPoint)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2ManifoldPoint {
public var :b2Vec2;
public var :b2Vec2;
public var :Number;
public var :Number;
public var :Number;
public var id:b2ContactID;
public function b2ManifoldPoint(){
= new b2Vec2();
= new b2Vec2();
id = new b2ContactID();
super();
}
public function Reset():void{
. ();
. ();
= 0;
= 0;
= 0;
id.
= 0;
}
public function Set(_arg1:b2ManifoldPoint):void{
. (_arg1. );
. (_arg1. );
= _arg1. ;
= _arg1. ;
= _arg1. ;
id.
= _arg1.id.
;
}
}
}//package Box2D.Collision
Section 20
//b2OBB (Box2D.Collision.b2OBB)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2OBB {
public var R:b2Mat22;
public var center:b2Vec2;
public var :b2Vec2;
public function b2OBB(){
R = new b2Mat22();
center = new b2Vec2();
= new b2Vec2();
super();
}
}
}//package Box2D.Collision
Section 21
//b2Pair (Box2D.Collision.b2Pair)
package Box2D.Collision {
import Box2D.Common.*;
public class b2Pair {
public var ;// = null
public var :uint;
public var :uint;
public var :uint;
public var status:uint;
public static var
:uint = b2Settings.USHRT_MAX;
public static var :uint = b2Settings.USHRT_MAX;
public static var :int = b2Settings.b2_maxPairs;
public static var :int = ( - 1);
public static var :uint = 1;
public static var :uint = 2;
public static var :uint = 4;
public function ():void{
status = (status | );
}
public function ():void{
status = (status & ~( ));
}
public function ():Boolean{
return (((status & ) == ));
}
public function ():void{
status = (status | );
}
public function
():void{
status = (status & ~( ));
}
public function ():Boolean{
return (((status & ) == ));
}
public function ():void{
status = (status | );
}
public function
():Boolean{
return (((status & ) == ));
}
}
}//package Box2D.Collision
Section 22
//b2PairCallback (Box2D.Collision.b2PairCallback)
package Box2D.Collision {
public class b2PairCallback {
public function (_arg1, _arg2){
return (null);
}
public function (_arg1, _arg2, _arg3):void{
}
}
}//package Box2D.Collision
Section 23
//b2PairManager (Box2D.Collision.b2PairManager)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2PairManager {
public var :b2BroadPhase;
public var :b2PairCallback;
public var
:Array;
public var :uint;
public var :int;
public var :Array;
public var :int;
public var :Array;
public function b2PairManager(){
var _local1:uint;
super();
= new Array(b2Pair. );
_local1 = 0;
while (_local1 < b2Pair. ) {
[_local1] = b2Pair.
;
_local1++;
};
= new Array(b2Settings.b2_maxPairs);
_local1 = 0;
while (_local1 < b2Settings.b2_maxPairs) {
[_local1] = new b2Pair();
_local1++;
};
= new Array(b2Settings.b2_maxPairs);
_local1 = 0;
while (_local1 < b2Settings.b2_maxPairs) {
[_local1] = new b2BufferedPair();
_local1++;
};
_local1 = 0;
while (_local1 < b2Settings.b2_maxPairs) {
[_local1]. = b2Pair. ;
[_local1]. = b2Pair. ;
[_local1]. = null;
[_local1].status = 0;
[_local1]. = (_local1 + 1);
_local1++;
};
[int((b2Settings.b2_maxPairs - 1))]. = b2Pair.
;
= 0;
= 0;
}
public function (_arg1:b2BroadPhase, _arg2:b2PairCallback):void{
= _arg1;
= _arg2;
}
public function (_arg1:int, _arg2:int):void{
var _local3:b2BufferedPair;
var _local4:b2Pair = (_arg1, _arg2);
if (_local4. () == false){
_local4. ();
_local3 = [ ];
_local3. = _local4. ;
_local3. = _local4. ;
++;
};
_local4.
();
if (b2BroadPhase. ){
();
};
}
public function (_arg1:int, _arg2:int):void{
var _local3:b2BufferedPair;
var _local4:b2Pair = (_arg1, _arg2);
if (_local4 == null){
return;
};
if (_local4. () == false){
_local4. ();
_local3 = [ ];
_local3. = _local4. ;
_local3. = _local4. ;
++;
};
_local4. ();
if (b2BroadPhase. ){
();
};
}
public function Commit():void{
var _local1:b2BufferedPair;
var _local2:int;
var _local5:b2Pair;
var _local6:b2Proxy;
var _local7:b2Proxy;
var _local3:int;
var _local4:Array = . ;
_local2 = 0;
while (_local2 < ) {
_local1 = [_local2];
_local5 = (_local1. , _local1. );
_local5. ();
_local6 = _local4[_local5. ];
_local7 = _local4[_local5. ];
if (_local5. ()){
if (_local5.
() == true){
. (_local6. , _local7. , _local5. );
};
_local1 = [_local3];
_local1. = _local5. ;
_local1. = _local5. ;
_local3++;
} else {
if (_local5.
() == false){
_local5. = . (_local6. , _local7. );
_local5. ();
};
};
_local2++;
};
_local2 = 0;
while (_local2 < _local3) {
_local1 = [_local2];
(_local1. , _local1. );
_local2++;
};
= 0;
if (b2BroadPhase. ){
();
};
}
private function (_arg1:uint, _arg2:uint):b2Pair{
var _local6:uint;
if (_arg1 > _arg2){
_local6 = _arg1;
_arg1 = _arg2;
_arg2 = _local6;
};
var _local3:uint = ( (_arg1, _arg2) & b2Pair. );
var _local4 = (_arg1, _arg2, _local3);
if (_local4 != null){
return (_local4);
};
var _local5:uint = ;
_local4 =
[_local5];
= _local4. ;
_local4. = _arg1;
_local4. = _arg2;
_local4.status = 0;
_local4. = null;
_local4. = [_local3];
[_local3] = _local5;
++;
return (_local4);
}
private function (_arg1:uint, _arg2:uint){
var _local3:b2Pair;
var _local7:uint;
var _local8:uint;
var _local9:*;
if (_arg1 > _arg2){
_local7 = _arg1;
_arg1 = _arg2;
_arg2 = _local7;
};
var _local4:uint = ( (_arg1, _arg2) & b2Pair. );
var _local5:uint = [_local4];
var _local6:b2Pair;
while (_local5 != b2Pair.
) {
if (Equals(
[_local5], _arg1, _arg2)){
_local8 = _local5;
_local3 =
[_local5];
if (_local6){
_local6. = _local3. ;
} else {
[_local4] = _local3. ;
};
_local3 =
[_local8];
_local9 = _local3. ;
_local3. = ;
_local3. = b2Pair. ;
_local3. = b2Pair. ;
_local3. = null;
_local3.status = 0;
= _local8;
--;
return (_local9);
} else {
_local6 =
[_local5];
_local5 = _local6. ;
};
};
return (null);
}
private function (_arg1:uint, _arg2:uint):b2Pair{
var _local4:uint;
if (_arg1 > _arg2){
_local4 = _arg1;
_arg1 = _arg2;
_arg2 = _local4;
};
var _local3:uint = ( (_arg1, _arg2) & b2Pair. );
return ( (_arg1, _arg2, _local3));
}
private function (_arg1:uint, _arg2:uint, _arg3:uint):b2Pair{
var _local4:b2Pair;
var _local5:uint = [_arg3];
_local4 =
[_local5];
while (((!((_local5 == b2Pair.
))) && ((Equals(_local4, _arg1, _arg2) == false)))) {
_local5 = _local4. ;
_local4 =
[_local5];
};
if (_local5 == b2Pair.
){
return (null);
};
return (_local4);
}
private function
():void{
}
private function ():void{
}
public static function (_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. == _arg2)) && ((_arg1. == _arg3))));
}
public static function (_arg1:b2BufferedPair, _arg2:b2BufferedPair):Boolean{
return ((((_arg1. == _arg2. )) && ((_arg1. == _arg2. ))));
}
}
}//package Box2D.Collision
Section 24
//b2Point (Box2D.Collision.b2Point)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2Point {
public var p:b2Vec2;
public function b2Point(){
p = new b2Vec2();
super();
}
public function (_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{
return (p);
}
public function (_arg1:b2XForm):b2Vec2{
return (p);
}
}
}//package Box2D.Collision
Section 25
//b2Proxy (Box2D.Collision.b2Proxy)
package Box2D.Collision {
public class b2Proxy {
public var :Array;
public var :Array;
public var :uint;
public var :uint;
public var ;// = null
public function b2Proxy(){
= [uint(0), uint(0)];
= [uint(0), uint(0)];
super();
}
public function ():uint{
return ( [0]);
}
public function (_arg1:uint):void{
[0] = (_arg1 & 0xFFFF);
}
public function ():Boolean{
return (!(( == b2BroadPhase.b2_invalid)));
}
}
}//package Box2D.Collision
Section 26
//b2Segment (Box2D.Collision.b2Segment)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2Segment {
public var :b2Vec2;
public var :b2Vec2;
public function b2Segment(){
= new b2Vec2();
= new b2Vec2();
super();
}
public function (_arg1:Array, _arg2:b2Vec2, _arg3:b2Segment, _arg4:Number):Boolean{
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local5:b2Vec2 = _arg3. ;
var _local6:Number = (_arg3. .x - _local5.x);
var _local7:Number = (_arg3. .y - _local5.y);
var _local8:Number = ( .x - .x);
var _local9:Number = ( .y - .y);
var _local10:Number = _local9;
var _local11:Number = -(_local8);
var _local12:Number = (100 * Number.MIN_VALUE);
var _local13:Number = -(((_local6 * _local10) + (_local7 * _local11)));
if (_local13 > _local12){
_local14 = (_local5.x - .x);
_local15 = (_local5.y - .y);
_local16 = ((_local14 * _local10) + (_local15 * _local11));
if ((((0 <= _local16)) && ((_local16 <= (_arg4 * _local13))))){
_local17 = ((-(_local7) * _local15) + (_local7 * _local14));
if (((((-(_local12) * _local13) <= _local17)) && ((_local17 <= (_local13 * (1 + _local12)))))){
_local16 = (_local16 / _local13);
_local18 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11)));
_local10 = (_local10 / _local18);
_local11 = (_local11 / _local18);
_arg1[0] = _local16;
_arg2.Set(_local10, _local11);
return (true);
};
};
};
return (false);
}
}
}//package Box2D.Collision
Section 27
//b2TimeOfImpact (Box2D.Collision.b2TimeOfImpact)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.Shapes.*;
public class b2TimeOfImpact {
public static var :b2Vec2 = new b2Vec2();
public static var :b2Vec2 = new b2Vec2();
public static var :b2XForm = new b2XForm();
public static var :b2XForm = new b2XForm();
public static function (_arg1:b2Shape, _arg2:b2Sweep, _arg3:b2Shape, _arg4:b2Sweep):Number{
var _local5:Number;
var _local6:Number;
var _local25:Number;
var _local26:b2XForm;
var _local27:b2XForm;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local7:Number = _arg1. ;
var _local8:Number = _arg3. ;
var _local9:Number = _arg2. ;
var _local10:Number = (_arg2.c.x - _arg2. .x);
var _local11:Number = (_arg2.c.y - _arg2. .y);
var _local12:Number = (_arg4.c.x - _arg4. .x);
var _local13:Number = (_arg4.c.y - _arg4. .y);
var _local14:Number = (_arg2.a - _arg2. );
var _local15:Number = (_arg4.a - _arg4. );
var _local16:Number = 0;
var _local17:b2Vec2 = ;
var _local18:b2Vec2 = ;
var _local19 = 20;
var _local20:int;
var _local21:Number = 0;
var _local22:Number = 0;
var _local23:Number = 0;
var _local24:Number = 0;
while (true) {
_local25 = (((1 - _local16) * _local9) + _local16);
_local26 = ;
_local27 = ;
_arg2.
(_local26, _local25);
_arg4.
(_local27, _local25);
_local23 =
.Distance(_local17, _local18, _arg1, _local26, _arg3, _local27);
if (_local20 == 0){
if (_local23 > (2 * b2Settings.b2_toiSlop)){
_local24 = (1.5 * b2Settings.b2_toiSlop);
} else {
_local5 = (0.05 * b2Settings.b2_toiSlop);
_local6 = (_local23 - (0.5 * b2Settings.b2_toiSlop));
_local24 = ((_local5 > _local6)) ? _local5 : _local6;
};
};
if (((((_local23 - _local24) < (0.05 * b2Settings.b2_toiSlop))) || ((_local20 == _local19)))){
break;
};
_local21 = (_local18.x - _local17.x);
_local22 = (_local18.y - _local17.y);
_local28 = Math.sqrt(((_local21 * _local21) + (_local22 * _local22)));
_local21 = (_local21 / _local28);
_local22 = (_local22 / _local28);
_local29 = ((((_local21 * (_local10 - _local12)) + (_local22 * (_local11 - _local13))) + (((_local14 < 0)) ? -(_local14) : _local14 * _local7)) + (((_local15 < 0)) ? -(_local15) : _local15 * _local8));
if (_local29 == 0){
_local16 = 1;
break;
};
_local30 = ((_local23 - _local24) / _local29);
_local31 = (_local16 + _local30);
if ((((_local31 < 0)) || ((1 < _local31)))){
_local16 = 1;
break;
};
if (_local31 < ((1 + (100 * Number.MIN_VALUE)) * _local16)){
break;
};
_local16 = _local31;
_local20++;
};
return (_local16);
}
}
}//package Box2D.Collision
Section 28
//ClipVertex (Box2D.Collision.ClipVertex)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class ClipVertex {
public var v:b2Vec2;
public var id:b2ContactID;
public function ClipVertex(){
v = new b2Vec2();
id = new b2ContactID();
super();
}
}
}//package Box2D.Collision
Section 29
//Features (Box2D.Collision.Features)
package Box2D.Collision {
public class Features {
public var :int;
public var :int;
public var :int;
public var :int;
public var :b2ContactID;
public function set (_arg1:int):void{
= _arg1;
. = (( . & 4294967040) | ( & 0xFF));
}
public function get ():int{
return ( );
}
public function set
(_arg1:int):void{
= _arg1;
. = (( . & 4294902015) | (( << 8) & 0xFF00));
}
public function get
():int{
return ( );
}
public function set (_arg1:int):void{
= _arg1;
. = (( . & 4278255615) | (( << 16) & 0xFF0000));
}
public function get ():int{
return ( );
}
public function set (_arg1:int):void{
= _arg1;
. = (( . & 0xFFFFFF) | (( << 24) & 4278190080));
}
public function get ():int{
return ( );
}
}
}//package Box2D.Collision
Section 30
//b2Mat22 (Box2D.Common.Math.b2Mat22)
package Box2D.Common.Math {
public class b2Mat22 {
public var
:b2Vec2;
public var :b2Vec2;
public function b2Mat22(_arg1:Number=0, _arg2:b2Vec2=null, _arg3:b2Vec2=null){
var _local4:Number;
var _local5:Number;
= new b2Vec2();
= new b2Vec2();
super();
if (((!((_arg2 == null))) && (!((_arg3 == null))))){
. (_arg2);
. (_arg3);
} else {
_local4 = Math.cos(_arg1);
_local5 = Math.sin(_arg1);
.x = _local4;
.x = -(_local5);
.y = _local5;
.y = _local4;
};
}
public function Set(_arg1:Number):void{
var _local2:Number;
_local2 = Math.cos(_arg1);
var _local3:Number = Math.sin(_arg1);
.x = _local2;
.x = -(_local3);
.y = _local3;
.y = _local2;
}
public function (_arg1:b2Vec2, _arg2:b2Vec2):void{
. (_arg1);
. (_arg2);
}
public function Copy():b2Mat22{
return (new b2Mat22(0,
, ));
}
public function (_arg1:b2Mat22):void{
. (_arg1.
);
. (_arg1. );
}
public function
(_arg1:b2Mat22):void{
.x = (
.x + _arg1.
.x);
.y = (
.y + _arg1.
.y);
.x = ( .x + _arg1. .x);
.y = ( .y + _arg1. .y);
}
public function ():void{
.x = 1;
.x = 0;
.y = 0;
.y = 1;
}
public function ():void{
.x = 0;
.x = 0;
.y = 0;
.y = 0;
}
public function ():Number{
return (Math.atan2(
.y,
.x));
}
public function Invert(_arg1:b2Mat22):b2Mat22{
var _local2:Number;
var _local4:Number;
var _local6:Number;
_local2 =
.x;
var _local3:Number = .x;
_local4 =
.y;
var _local5:Number = .y;
_local6 = ((_local2 * _local5) - (_local3 * _local4));
_local6 = (1 / _local6);
_arg1.
.x = (_local6 * _local5);
_arg1. .x = (-(_local6) * _local3);
_arg1.
.y = (-(_local6) * _local4);
_arg1. .y = (_local6 * _local2);
return (_arg1);
}
public function (_arg1:b2Vec2, _arg2:Number, _arg3:Number):b2Vec2{
var _local4:Number =
.x;
var _local5:Number = .x;
var _local6:Number =
.y;
var _local7:Number = .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);
}
public function Abs():void{
.Abs();
.Abs();
}
}
}//package Box2D.Common.Math
Section 31
//b2Math (Box2D.Common.Math.b2Math)
package Box2D.Common.Math {
public class b2Math {
public static const b2Vec2_zero:b2Vec2 = new b2Vec2(0, 0);
public static const b2Mat22_identity:b2Mat22 = new b2Mat22(0, new b2Vec2(1, 0), new b2Vec2(0, 1));
public static const b2XForm_identity:b2XForm = new b2XForm(b2Vec2_zero, b2Mat22_identity);
public static function (_arg1:Number):Boolean{
return (isFinite(_arg1));
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2):Number{
return (((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y)));
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2):Number{
return (((_arg1.x * _arg2.y) - (_arg1.y * _arg2.x)));
}
public static function (_arg1:b2Vec2, _arg2:Number):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((_arg2 * _arg1.y), (-(_arg2) * _arg1.x));
return (_local3);
}
public static function (_arg1:Number, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((-(_arg1) * _arg2.y), (_arg1 * _arg2.x));
return (_local3);
}
public static function
(_arg1:b2Mat22, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2(((_arg1.
.x * _arg2.x) + (_arg1. .x * _arg2.y)), ((_arg1.
.y * _arg2.x) + (_arg1. .y * _arg2.y)));
return (_local3);
}
public static function (_arg1:b2Mat22, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2( (_arg2, _arg1.
), (_arg2, _arg1. ));
return (_local3);
}
public static function (_arg1:b2XForm, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 =
(_arg1.R, _arg2);
_local3.x = (_local3.x + _arg1.position.x);
_local3.y = (_local3.y + _arg1.position.y);
return (_local3);
}
public static function
(_arg1:b2XForm, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
var _local4:Number;
_local3 = (_arg2, _arg1.position);
_local4 = ((_local3.x * _arg1.R.
.x) + (_local3.y * _arg1.R.
.y));
_local3.y = ((_local3.x * _arg1.R. .x) + (_local3.y * _arg1.R. .y));
_local3.x = _local4;
return (_local3);
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((_arg1.x + _arg2.x), (_arg1.y + _arg2.y));
return (_local3);
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((_arg1.x - _arg2.x), (_arg1.y - _arg2.y));
return (_local3);
}
public static function
(_arg1:b2Vec2, _arg2:b2Vec2):Number{
var _local3:Number = (_arg1.x - _arg2.x);
var _local4:Number = (_arg1.y - _arg2.y);
return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4))));
}
public static function (_arg1:b2Vec2, _arg2:b2Vec2):Number{
var _local3:Number = (_arg1.x - _arg2.x);
var _local4:Number = (_arg1.y - _arg2.y);
return (((_local3 * _local3) + (_local4 * _local4)));
}
public static function
(_arg1:Number, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2((_arg1 * _arg2.x), (_arg1 * _arg2.y));
return (_local3);
}
public static function
(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Mat22 = new b2Mat22(0, (_arg1.
, _arg2.
), (_arg1. , _arg2. ));
return (_local3);
}
public static function
(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Mat22 = new b2Mat22(0,
(_arg1, _arg2.
),
(_arg1, _arg2. ));
return (_local3);
}
public static function
(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Vec2 = new b2Vec2( (_arg1.
, _arg2.
), (_arg1. , _arg2.
));
var _local4:b2Vec2 = new b2Vec2( (_arg1.
, _arg2. ), (_arg1. , _arg2. ));
var _local5:b2Mat22 = new b2Mat22(0, _local3, _local4);
return (_local5);
}
public static function
(_arg1:Number):Number{
return (((_arg1 > 0)) ? _arg1 : -(_arg1));
}
public static function
(_arg1:b2Vec2):b2Vec2{
var _local2:b2Vec2 = new b2Vec2(
(_arg1.x),
(_arg1.y));
return (_local2);
}
public static function
(_arg1:b2Mat22):b2Mat22{
var _local2:b2Mat22 = new b2Mat22(0,
(_arg1.
),
(_arg1. ));
return (_local2);
}
public static function
(_arg1:Number, _arg2:Number):Number{
return (((_arg1 < _arg2)) ? _arg1 : _arg2);
}
public static function
(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2(
(_arg1.x, _arg2.x),
(_arg1.y, _arg2.y));
return (_local3);
}
public static function
(_arg1:Number, _arg2:Number):Number{
return (((_arg1 > _arg2)) ? _arg1 : _arg2);
}
public static function
(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2 = new b2Vec2(
(_arg1.x, _arg2.x),
(_arg1.y, _arg2.y));
return (_local3);
}
public static function
(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (
(_arg2,
(_arg1, _arg3)));
}
public static function
(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Vec2):b2Vec2{
return (
(_arg2,
(_arg1, _arg3)));
}
public static function
(_arg1:Array, _arg2:Array):void{
var _local3:* = _arg1[0];
_arg1[0] = _arg2[0];
_arg2[0] = _local3;
}
public static function
():Number{
return (((Math.random() * 2) - 1));
}
public static function
(_arg1:Number, _arg2:Number):Number{
var _local3:Number = Math.random();
_local3 = (((_arg2 - _arg1) * _local3) + _arg1);
return (_local3);
}
public static function (_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 (_arg1:uint):Boolean{
var _local2:Boolean = (((_arg1 > 0)) && (((_arg1 & (_arg1 - 1)) == 0)));
return (_local2);
}
}
}//package Box2D.Common.Math
Section 32
//b2Sweep (Box2D.Common.Math.b2Sweep)
package Box2D.Common.Math {
public class b2Sweep {
public var :b2Vec2;
public var :b2Vec2;
public var c:b2Vec2;
public var :Number;
public var a:Number;
public var :Number;
public function b2Sweep(){
= new b2Vec2();
= new b2Vec2();
c = new b2Vec2();
super();
}
public function
(_arg1:b2XForm, _arg2:Number):void{
var _local4:Number;
var _local5:Number;
if ((1 - ) > Number.MIN_VALUE){
_local4 = ((_arg2 - ) / (1 - ));
_arg1.position.x = (((1 - _local4) * .x) + (_local4 * c.x));
_arg1.position.y = (((1 - _local4) * .y) + (_local4 * c.y));
_local5 = (((1 - _local4) * ) + (_local4 * a));
_arg1.R.Set(_local5);
} else {
_arg1.position. (c);
_arg1.R.Set(a);
};
var _local3:b2Mat22 = _arg1.R;
_arg1.position.x = (_arg1.position.x - ((_local3.
.x * .x) + (_local3. .x * .y)));
_arg1.position.y = (_arg1.position.y - ((_local3.
.y * .x) + (_local3. .y * .y)));
}
public function
(_arg1:Number):void{
var _local2:Number;
if (((( < _arg1)) && (((1 - ) > Number.MIN_VALUE)))){
_local2 = ((_arg1 - ) / (1 - ));
.x = (((1 - _local2) * .x) + (_local2 * c.x));
.y = (((1 - _local2) * .y) + (_local2 * c.y));
= (((1 - _local2) * ) + (_local2 * a));
= _arg1;
};
}
}
}//package Box2D.Common.Math
Section 33
//b2Vec2 (Box2D.Common.Math.b2Vec2)
package Box2D.Common.Math {
public class b2Vec2 {
public var x:Number;
public var y:Number;
public function b2Vec2(_arg1:Number=0, _arg2:Number=0):void{
x = _arg1;
y = _arg2;
}
public function ():void{
x = 0;
y = 0;
}
public function Set(_arg1:Number=0, _arg2:Number=0):void{
x = _arg1;
y = _arg2;
}
public function (_arg1:b2Vec2):void{
x = _arg1.x;
y = _arg1.y;
}
public function ():b2Vec2{
return (new b2Vec2(-(x), -(y)));
}
public function Copy():b2Vec2{
return (new b2Vec2(x, y));
}
public function Add(_arg1:b2Vec2):void{
x = (x + _arg1.x);
y = (y + _arg1.y);
}
public function Subtract(_arg1:b2Vec2):void{
x = (x - _arg1.x);
y = (y - _arg1.y);
}
public function Multiply(_arg1:Number):void{
x = (x * _arg1);
y = (y * _arg1);
}
public function (_arg1:b2Mat22):void{
var _local2:Number = x;
x = ((_arg1.
.x * _local2) + (_arg1. .x * y));
y = ((_arg1.
.y * _local2) + (_arg1. .y * y));
}
public function
(_arg1:b2Mat22):void{
var _local2:Number = b2Math. (this, _arg1.
);
y = b2Math. (this, _arg1. );
x = _local2;
}
public function (_arg1:Number):void{
var _local2:Number = x;
x = (_arg1 * y);
y = (-(_arg1) * _local2);
}
public function (_arg1:Number):void{
var _local2:Number = x;
x = (-(_arg1) * y);
y = (_arg1 * _local2);
}
public function
(_arg1:b2Vec2):void{
x = ((x < _arg1.x)) ? x : _arg1.x;
y = ((y < _arg1.y)) ? y : _arg1.y;
}
public function (_arg1:b2Vec2):void{
x = ((x > _arg1.x)) ? x : _arg1.x;
y = ((y > _arg1.y)) ? y : _arg1.y;
}
public function Abs():void{
if (x < 0){
x = -(x);
};
if (y < 0){
y = -(y);
};
}
public function Length():Number{
return (Math.sqrt(((x * x) + (y * y))));
}
public function ():Number{
return (((x * x) + (y * y)));
}
public function Normalize():Number{
var _local1:Number = Math.sqrt(((x * x) + (y * y)));
if (_local1 < Number.MIN_VALUE){
return (0);
};
var _local2:Number = (1 / _local1);
x = (x * _local2);
y = (y * _local2);
return (_local1);
}
public function ():Boolean{
return (((b2Math. (x)) && (b2Math. (y))));
}
public static function (_arg1:Number, _arg2:Number):b2Vec2{
return (new b2Vec2(_arg1, _arg2));
}
}
}//package Box2D.Common.Math
Section 34
//b2XForm (Box2D.Common.Math.b2XForm)
package Box2D.Common.Math {
public class b2XForm {
public var position:b2Vec2;
public var R:b2Mat22;
public function b2XForm(_arg1:b2Vec2=null, _arg2:b2Mat22=null):void{
position = new b2Vec2();
R = new b2Mat22();
super();
if (_arg1){
position. (_arg1);
R. (_arg2);
};
}
public function (_arg1:b2Vec2, _arg2:b2Mat22):void{
position. (_arg1);
R. (_arg2);
}
public function ():void{
position. ();
R. ();
}
public function Set(_arg1:b2XForm):void{
position. (_arg1.position);
R. (_arg1.R);
}
}
}//package Box2D.Common.Math
Section 35
//b2Color (Box2D.Common.b2Color)
package Box2D.Common {
import Box2D.Common.Math.*;
public class b2Color {
private var :uint;// = 0
private var :uint;// = 0
private var :uint;// = 0
public function b2Color(_arg1:Number, _arg2:Number, _arg3:Number){
= uint((0xFF * b2Math.
(_arg1, 0, 1)));
= uint((0xFF * b2Math.
(_arg2, 0, 1)));
= uint((0xFF * b2Math.
(_arg3, 0, 1)));
}
public function Set(_arg1:Number, _arg2:Number, _arg3:Number):void{
= uint((0xFF * b2Math.
(_arg1, 0, 1)));
= uint((0xFF * b2Math.
(_arg2, 0, 1)));
= uint((0xFF * b2Math.
(_arg3, 0, 1)));
}
public function set r(_arg1:Number):void{
= uint((0xFF * b2Math.
(_arg1, 0, 1)));
}
public function set g(_arg1:Number):void{
= uint((0xFF * b2Math.
(_arg1, 0, 1)));
}
public function set b(_arg1:Number):void{
= uint((0xFF * b2Math.
(_arg1, 0, 1)));
}
public function get color():uint{
return ((( | ( << 8)) | ( << 16)));
}
}
}//package Box2D.Common
Section 36
//b2Settings (Box2D.Common.b2Settings)
package Box2D.Common {
import Box2D.Common.Math.*;
public class b2Settings {
public static const USHRT_MAX:int = 0xFFFF;
public static const b2_pi:Number = 3.14159265358979;
public static const b2_maxManifoldPoints:int = 2;
public static const b2_maxPolygonVertices:int = 8;
public static const b2_maxProxies:int = 0x0200;
public static const b2_maxPairs:int = 4096;
public static const b2_linearSlop:Number = 0.005;
public static const b2_angularSlop:Number = 0.0349065850398866;
public static const b2_toiSlop:Number = 0.04;
public static const b2_maxTOIContactsPerIsland:int = 32;
public static const b2_velocityThreshold:Number = 1;
public static const b2_maxLinearCorrection:Number = 0.2;
public static const b2_maxAngularCorrection:Number = 0.139626340159546;
public static const b2_maxLinearVelocity:Number = 200;
public static const b2_maxLinearVelocitySquared:Number = 40000;
public static const b2_maxAngularVelocity:Number = 250;
public static const b2_maxAngularVelocitySquared:Number = 62500;
public static const b2_contactBaumgarte:Number = 0.2;
public static const b2_timeToSleep:Number = 0.5;
public static const b2_linearSleepTolerance:Number = 0.01;
public static const b2_angularSleepTolerance:Number = 0.0111111111111111;
public static function (_arg1:Boolean):void{
var _local2:b2Vec2;
if (!_arg1){
_local2.x++;
};
}
}
}//package Box2D.Common
Section 37
//b2CircleContact (Box2D.Dynamics.Contacts.b2CircleContact)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class b2CircleContact extends b2Contact {
private var :Array;
public var :b2Manifold;
private var :b2Manifold;
private static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2CircleContact(_arg1:b2Shape, _arg2:b2Shape){
= [new b2Manifold()];
= new b2Manifold();
super(_arg1, _arg2);
= [0];
. = 0;
var _local3:b2ManifoldPoint = . [0];
_local3. = 0;
_local3. = 0;
}
override public function
(_arg1:b2ContactListener):void{
var _local2:b2Vec2;
var _local3:b2Vec2;
var _local4:b2ManifoldPoint;
var _local8:b2ManifoldPoint;
var _local5:b2Body = . ;
var _local6:b2Body = . ;
.Set( );
b2Collision. ( , ( as b2CircleShape), _local5.
, ( as b2CircleShape), _local6.
);
var _local7:b2ContactPoint = s_evalCP;
_local7. = ;
_local7. = ;
_local7. = ;
_local7. = ;
if ( . > 0){
= 1;
_local8 = . [0];
if ( . == 0){
_local8. = 0;
_local8. = 0;
if (_arg1){
_local7.position = _local5.
(_local8. );
_local2 = _local5. (_local8. );
_local3 = _local6. (_local8. );
_local7. .Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal. ( .normal);
_local7. = _local8. ;
_local7.id.
= _local8.id. ;
_arg1.Add(_local7);
};
} else {
_local4 = . [0];
_local8. = _local4. ;
_local8. = _local4. ;
if (_arg1){
_local7.position = _local5.
(_local8. );
_local2 = _local5. (_local8. );
_local3 = _local6. (_local8. );
_local7. .Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal. ( .normal);
_local7. = _local8. ;
_local7.id.
= _local8.id. ;
_arg1. (_local7);
};
};
} else {
= 0;
if (((( . > 0)) && (_arg1))){
_local4 = . [0];
_local7.position = _local5.
(_local4. );
_local2 = _local5. (_local4. );
_local3 = _local6. (_local4. );
_local7. .Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal. ( .normal);
_local7. = _local4. ;
_local7.id.
= _local4.id. ;
_arg1. (_local7);
};
};
}
override public function
():Array{
return ( );
}
public static function (_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2CircleContact(_arg1, _arg2));
}
public static function (_arg1:b2Contact, _arg2):void{
}
}
}//package Box2D.Dynamics.Contacts
Section 38
//b2Contact (Box2D.Dynamics.Contacts.b2Contact)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class b2Contact {
public var :uint;
public var
:b2Contact;
public var
:b2Contact;
public var
:b2ContactEdge;
public var
:b2ContactEdge;
public var :b2Shape;
public var :b2Shape;
public var :int;
public var :Number;
public var :Number;
public var :Number;
public static var :uint = 1;
public static var :uint = 2;
public static var
:uint = 4;
public static var :uint = 8;
public static var :Array;
public static var :Boolean = false;
public function b2Contact(_arg1:b2Shape=null, _arg2:b2Shape=null){
= new b2ContactEdge();
= new b2ContactEdge();
super();
= 0;
if (((!(_arg1)) || (!(_arg2)))){
= null;
= null;
return;
};
if (((_arg1. ()) || (_arg2. ()))){
= ( | );
};
= _arg1;
= _arg2;
= 0;
= Math.sqrt(( . * . ));
= b2Math.
( . , . );
= null;
= null;
. = null;
. = null;
. = null;
. = null;
. = null;
. = null;
. = null;
. = null;
}
public function
():Array{
return (null);
}
public function
():int{
return ( );
}
public function
():Boolean{
return ((( & ) == 0));
}
public function ():b2Contact{
return (
);
}
public function
():b2Shape{
return ( );
}
public function
():b2Shape{
return ( );
}
public function Update(_arg1:b2ContactListener):void{
var _local2:int = ;
(_arg1);
var _local3:int = ;
var _local4:b2Body = . ;
var _local5:b2Body = . ;
if ((((_local3 == 0)) && ((_local2 > 0)))){
_local4.
();
_local5.
();
};
if (((((((_local4.
()) || (_local4. ()))) || (_local5.
()))) || (_local5. ()))){
= ( & ~( ));
} else {
= ( | );
};
}
public function
(_arg1:b2ContactListener):void{
}
public static function (_arg1:Function, _arg2:Function, _arg3:int, _arg4:int):void{
[_arg3][_arg4]. = _arg1;
[_arg3][_arg4]. = _arg2;
[_arg3][_arg4]. = true;
if (_arg3 != _arg4){
[_arg4][_arg3]. = _arg1;
[_arg4][_arg3]. = _arg2;
[_arg4][_arg3]. = false;
};
}
public static function
():void{
var _local2:int;
= new Array(b2Shape.e_shapeTypeCount);
var _local1:int;
while (_local1 < b2Shape.e_shapeTypeCount) {
[_local1] = new Array(b2Shape.e_shapeTypeCount);
_local2 = 0;
while (_local2 < b2Shape.e_shapeTypeCount) {
[_local1][_local2] = new b2ContactRegister();
_local2++;
};
_local1++;
};
(b2CircleContact. , b2CircleContact. , b2Shape.e_circleShape, b2Shape.e_circleShape);
(b2PolyAndCircleContact. , b2PolyAndCircleContact. , b2Shape.e_polygonShape, b2Shape.e_circleShape);
(b2PolygonContact. , b2PolygonContact. , b2Shape.e_polygonShape, b2Shape.e_polygonShape);
}
public static function (_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
var _local8:b2Contact;
var _local9:int;
var _local10:b2Manifold;
if ( == false){
();
= true;
};
var _local4:int = _arg1. ;
var _local5:int = _arg2. ;
var _local6:b2ContactRegister = [_local4][_local5];
var _local7:Function = _local6. ;
if (_local7 != null){
if (_local6. ){
return (_local7(_arg1, _arg2, _arg3));
};
_local8 = _local7(_arg2, _arg1, _arg3);
_local9 = 0;
while (_local9 < _local8. ) {
_local10 = _local8.
()[_local9];
_local8.
()[_local9].normal = _local10.normal. ();
_local9++;
};
return (_local8);
//unresolved jump
};
return (null);
}
public static function (_arg1:b2Contact, _arg2):void{
if (_arg1. > 0){
_arg1. . .
();
_arg1. . .
();
};
var _local3:int = _arg1. . ;
var _local4:int = _arg1. . ;
var _local5:b2ContactRegister = [_local3][_local4];
var _local6:Function = _local5. ;
_local6(_arg1, _arg2);
}
}
}//package Box2D.Dynamics.Contacts
Section 39
//b2ContactConstraint (Box2D.Dynamics.Contacts.b2ContactConstraint)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
public class b2ContactConstraint {
public var :Array;
public var normal:b2Vec2;
public var
:b2Manifold;
public var :b2Body;
public var :b2Body;
public var :Number;
public var :Number;
public var :int;
public function b2ContactConstraint(){
normal = new b2Vec2();
super();
= new Array(b2Settings.b2_maxManifoldPoints);
var _local1:int;
while (_local1 < b2Settings.b2_maxManifoldPoints) {
[_local1] = new b2ContactConstraintPoint();
_local1++;
};
}
}
}//package Box2D.Dynamics.Contacts
Section 40
//b2ContactConstraintPoint (Box2D.Dynamics.Contacts.b2ContactConstraintPoint)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
public class b2ContactConstraintPoint {
public var :b2Vec2;
public var :b2Vec2;
public var
:b2Vec2;
public var :b2Vec2;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public function b2ContactConstraintPoint(){
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
super();
}
}
}//package Box2D.Dynamics.Contacts
Section 41
//b2ContactEdge (Box2D.Dynamics.Contacts.b2ContactEdge)
package Box2D.Dynamics.Contacts {
import Box2D.Dynamics.*;
public class b2ContactEdge {
public var :b2Body;
public var :b2Contact;
public var :b2ContactEdge;
public var :b2ContactEdge;
}
}//package Box2D.Dynamics.Contacts
Section 42
//b2ContactRegister (Box2D.Dynamics.Contacts.b2ContactRegister)
package Box2D.Dynamics.Contacts {
public class b2ContactRegister {
public var :Function;
public var :Function;
public var :Boolean;
}
}//package Box2D.Dynamics.Contacts
Section 43
//b2ContactResult (Box2D.Dynamics.Contacts.b2ContactResult)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Collision.*;
import Box2D.Collision.Shapes.*;
public class b2ContactResult {
public var :b2Shape;
public var :b2Shape;
public var position:b2Vec2;
public var normal:b2Vec2;
public var :Number;
public var :Number;
public var id:b2ContactID;
public function b2ContactResult(){
position = new b2Vec2();
normal = new b2Vec2();
id = new b2ContactID();
super();
}
}
}//package Box2D.Dynamics.Contacts
Section 44
//b2ContactSolver (Box2D.Dynamics.Contacts.b2ContactSolver)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
public class b2ContactSolver {
public var :b2TimeStep;
public var ;
public var :Array;
public var :int;
public function b2ContactSolver(_arg1:b2TimeStep, _arg2:Array, _arg3:int, _arg4){
var _local5:b2Contact;
var _local6:int;
var _local7:b2Vec2;
var _local8:b2Mat22;
var _local10:b2Body;
var _local11:b2Body;
var _local12:int;
var _local13:Array;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:int;
var _local23:b2Manifold;
var _local24:Number;
var _local25:Number;
var _local26:b2ContactConstraint;
var _local27:uint;
var _local28:b2ManifoldPoint;
var _local29:b2ContactConstraintPoint;
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;
var _local46:Number;
var _local47:Number;
= new b2TimeStep();
= new Array();
super();
. = _arg1. ;
.
= _arg1.
;
. = _arg1. ;
= _arg4;
= 0;
_local6 = 0;
while (_local6 < _arg3) {
_local5 = _arg2[_local6];
= ( + _local5. );
_local6++;
};
_local6 = 0;
while (_local6 < ) {
[_local6] = new b2ContactConstraint();
_local6++;
};
var _local9:int;
_local6 = 0;
while (_local6 < _arg3) {
_local5 = _arg2[_local6];
_local10 = _local5. . ;
_local11 = _local5. . ;
_local12 = _local5. ;
_local13 = _local5.
();
_local14 = _local5. ;
_local15 = _local5. ;
_local16 = _local10. .x;
_local17 = _local10. .y;
_local18 = _local11. .x;
_local19 = _local11. .y;
_local20 = _local10. ;
_local21 = _local11. ;
_local22 = 0;
while (_local22 < _local12) {
_local23 = _local13[_local22];
_local24 = _local23.normal.x;
_local25 = _local23.normal.y;
_local26 = [_local9];
_local26. = _local10;
_local26. = _local11;
_local26.
= _local23;
_local26.normal.x = _local24;
_local26.normal.y = _local25;
_local26. = _local23. ;
_local26. = _local14;
_local26. = _local15;
_local27 = 0;
while (_local27 < _local26. ) {
_local28 = _local23. [_local27];
_local29 = _local26. [_local27];
_local29. = _local28. ;
_local29. = _local28. ;
_local29. = _local28. ;
_local29. = 0;
_local29. . (_local28. );
_local29. . (_local28. );
_local8 = _local10.
.R;
_local32 = (_local28. .x - _local10.
. .x);
_local33 = (_local28. .y - _local10.
. .y);
_local30 = ((_local8.
.x * _local32) + (_local8. .x * _local33));
_local33 = ((_local8.
.y * _local32) + (_local8. .y * _local33));
_local32 = _local30;
_local29.
.Set(_local32, _local33);
_local8 = _local11.
.R;
_local34 = (_local28. .x - _local11.
. .x);
_local35 = (_local28. .y - _local11.
. .y);
_local30 = ((_local8.
.x * _local34) + (_local8. .x * _local35));
_local35 = ((_local8.
.y * _local34) + (_local8. .y * _local35));
_local34 = _local30;
_local29. .Set(_local34, _local35);
_local36 = ((_local32 * _local32) + (_local33 * _local33));
_local37 = ((_local34 * _local34) + (_local35 * _local35));
_local38 = ((_local32 * _local24) + (_local33 * _local25));
_local39 = ((_local34 * _local24) + (_local35 * _local25));
_local40 = (_local10. + _local11. );
_local40 = (_local40 + ((_local10. * (_local36 - (_local38 * _local38))) + (_local11. * (_local37 - (_local39 * _local39)))));
_local29. = (1 / _local40);
_local41 = ((_local10. * _local10. ) + (_local11. * _local11. ));
_local41 = (_local41 + (((_local10. * _local10. ) * (_local36 - (_local38 * _local38))) + ((_local11. * _local11. ) * (_local37 - (_local39 * _local39)))));
_local29. = (1 / _local41);
_local42 = _local25;
_local43 = -(_local24);
_local44 = ((_local32 * _local42) + (_local33 * _local43));
_local45 = ((_local34 * _local42) + (_local35 * _local43));
_local46 = (_local10. + _local11. );
_local46 = (_local46 + ((_local10. * (_local36 - (_local44 * _local44))) + (_local11. * (_local37 - (_local45 * _local45)))));
_local29. = (1 / _local46);
_local29. = 0;
if (_local29. > 0){
_local29. = (-60 * _local29. );
};
_local30 = (((_local18 + (-(_local21) * _local35)) - _local16) - (-(_local20) * _local33));
_local31 = (((_local19 + (_local21 * _local34)) - _local17) - (_local20 * _local32));
_local47 = ((_local26.normal.x * _local30) + (_local26.normal.y * _local31));
if (_local47 < -(b2Settings.b2_velocityThreshold)){
_local29. = (_local29. + (-(_local26. ) * _local47));
};
_local27++;
};
_local9++;
_local22++;
};
_local6++;
};
}
public function (_arg1:b2TimeStep):void{
var _local2:b2Vec2;
var _local3:b2Vec2;
var _local4:b2Mat22;
var _local6:b2ContactConstraint;
var _local7:b2Body;
var _local8:b2Body;
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:int;
var _local19:int;
var _local20:b2ContactConstraintPoint;
var _local21:Number;
var _local22:Number;
var _local23:b2ContactConstraintPoint;
var _local5:int;
while (_local5 < ) {
_local6 = [_local5];
_local7 = _local6. ;
_local8 = _local6. ;
_local9 = _local7. ;
_local10 = _local7. ;
_local11 = _local8. ;
_local12 = _local8. ;
_local13 = _local6.normal.x;
_local14 = _local6.normal.y;
_local15 = _local14;
_local16 = -(_local13);
if (_arg1.
){
_local19 = _local6. ;
_local18 = 0;
while (_local18 < _local19) {
_local20 = _local6. [_local18];
_local6. [_local18]. = (_local20. * _arg1. );
_local20. = (_local20. * _arg1. );
_local21 = ((_local20. * _local13) + (_local20. * _local15));
_local22 = ((_local20. * _local14) + (_local20. * _local16));
_local7. = (_local7. - (_local10 * ((_local20.
.x * _local22) - (_local20.
.y * _local21))));
_local7. .x = (_local7. .x - (_local9 * _local21));
_local7. .y = (_local7. .y - (_local9 * _local22));
_local8. = (_local8. + (_local12 * ((_local20. .x * _local22) - (_local20. .y * _local21))));
_local8. .x = (_local8. .x + (_local11 * _local21));
_local8. .y = (_local8. .y + (_local11 * _local22));
_local18++;
};
} else {
_local19 = _local6. ;
_local18 = 0;
while (_local18 < _local19) {
_local23 = _local6. [_local18];
_local23. = 0;
_local23. = 0;
_local18++;
};
};
_local5++;
};
}
public function
():void{
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:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:b2Mat22;
var _local18:b2Vec2;
var _local20:b2ContactConstraint;
var _local21:b2Body;
var _local22:b2Body;
var _local23:Number;
var _local24:Number;
var _local25:b2Vec2;
var _local26:b2Vec2;
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:int;
var _local38:Number;
var _local19:int;
while (_local19 < ) {
_local20 = [_local19];
_local21 = _local20. ;
_local22 = _local20. ;
_local23 = _local21. ;
_local24 = _local22. ;
_local25 = _local21. ;
_local26 = _local22. ;
_local27 = _local21. ;
_local28 = _local21. ;
_local29 = _local22. ;
_local30 = _local22. ;
_local31 = _local20.normal.x;
_local32 = _local20.normal.y;
_local33 = _local32;
_local34 = -(_local31);
_local35 = _local20. ;
_local37 = _local20. ;
_local1 = 0;
while (_local1 < _local37) {
_local2 = _local20. [_local1];
_local7 = (((_local26.x + (-(_local24) * _local2. .y)) - _local25.x) - (-(_local23) * _local2.
.y));
_local8 = (((_local26.y + (_local24 * _local2. .x)) - _local25.y) - (_local23 * _local2.
.x));
_local9 = ((_local7 * _local31) + (_local8 * _local32));
_local11 = (-(_local2. ) * (_local9 - _local2. ));
_local10 = ((_local7 * _local33) + (_local8 * _local34));
_local12 = (_local2. * -(_local10));
_local13 = b2Math.
((_local2. + _local11), 0);
_local11 = (_local13 - _local2. );
_local38 = (_local35 * _local2. );
_local14 = b2Math.
((_local2. + _local12), -(_local38), _local38);
_local12 = (_local14 - _local2. );
_local15 = ((_local11 * _local31) + (_local12 * _local33));
_local16 = ((_local11 * _local32) + (_local12 * _local34));
_local25.x = (_local25.x - (_local27 * _local15));
_local25.y = (_local25.y - (_local27 * _local16));
_local23 = (_local23 - (_local28 * ((_local2.
.x * _local16) - (_local2.
.y * _local15))));
_local26.x = (_local26.x + (_local29 * _local15));
_local26.y = (_local26.y + (_local29 * _local16));
_local24 = (_local24 + (_local30 * ((_local2. .x * _local16) - (_local2. .y * _local15))));
_local2. = _local13;
_local2. = _local14;
_local1++;
};
_local21. = _local23;
_local22. = _local24;
_local19++;
};
}
public function ():void{
var _local2:b2ContactConstraint;
var _local3:b2Manifold;
var _local4:int;
var _local5:b2ManifoldPoint;
var _local6:b2ContactConstraintPoint;
var _local1:int;
while (_local1 < ) {
_local2 = [_local1];
_local3 = _local2.
;
_local4 = 0;
while (_local4 < _local2. ) {
_local5 = _local3. [_local4];
_local6 = _local2. [_local4];
_local5. = _local6. ;
_local5. = _local6. ;
_local4++;
};
_local1++;
};
}
public function (_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:int;
var _local20:int;
var _local21:b2ContactConstraintPoint;
var _local22:Number;
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:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local2:Number = 0;
var _local5:int;
while (_local5 < ) {
_local6 = [_local5];
_local7 = _local6. ;
_local8 = _local6. ;
_local9 = _local7.
.c;
_local10 = _local7.
.a;
_local11 = _local8.
.c;
_local12 = _local8.
.a;
_local13 = (_local7. * _local7. );
_local14 = (_local7. * _local7. );
_local15 = (_local8. * _local8. );
_local16 = (_local8. * _local8. );
_local17 = _local6.normal.x;
_local18 = _local6.normal.y;
_local19 = _local6. ;
_local20 = 0;
while (_local20 < _local19) {
_local21 = _local6. [_local20];
_local3 = _local7.
.R;
_local4 = _local7.
. ;
_local22 = (_local21. .x - _local4.x);
_local23 = (_local21. .y - _local4.y);
_local26 = ((_local3.
.x * _local22) + (_local3. .x * _local23));
_local23 = ((_local3.
.y * _local22) + (_local3. .y * _local23));
_local22 = _local26;
_local3 = _local8.
.R;
_local4 = _local8.
. ;
_local24 = (_local21. .x - _local4.x);
_local25 = (_local21. .y - _local4.y);
_local26 = ((_local3.
.x * _local24) + (_local3. .x * _local25));
_local25 = ((_local3.
.y * _local24) + (_local3. .y * _local25));
_local24 = _local26;
_local27 = (_local9.x + _local22);
_local28 = (_local9.y + _local23);
_local29 = (_local11.x + _local24);
_local30 = (_local11.y + _local25);
_local31 = (_local29 - _local27);
_local32 = (_local30 - _local28);
_local33 = (((_local31 * _local17) + (_local32 * _local18)) + _local21. );
_local2 = b2Math.
(_local2, _local33);
_local34 = (_arg1 * b2Math.
((_local33 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0));
_local35 = (-(_local21. ) * _local34);
_local36 = _local21. ;
_local21. = b2Math.
((_local36 + _local35), 0);
_local35 = (_local21. - _local36);
_local37 = (_local35 * _local17);
_local38 = (_local35 * _local18);
_local9.x = (_local9.x - (_local13 * _local37));
_local9.y = (_local9.y - (_local13 * _local38));
_local10 = (_local10 - (_local14 * ((_local22 * _local38) - (_local23 * _local37))));
_local7.
.a = _local10;
_local7.
();
_local11.x = (_local11.x + (_local15 * _local37));
_local11.y = (_local11.y + (_local15 * _local38));
_local12 = (_local12 + (_local16 * ((_local24 * _local38) - (_local25 * _local37))));
_local8.
.a = _local12;
_local8.
();
_local20++;
};
_local5++;
};
return ((_local2 >= (-1.5 * b2Settings.b2_linearSlop)));
}
}
}//package Box2D.Dynamics.Contacts
Section 45
//b2NullContact (Box2D.Dynamics.Contacts.b2NullContact)
package Box2D.Dynamics.Contacts {
import Box2D.Dynamics.*;
public class b2NullContact extends b2Contact {
override public function
(_arg1:b2ContactListener):void{
}
override public function
():Array{
return (null);
}
}
}//package Box2D.Dynamics.Contacts
Section 46
//b2PolyAndCircleContact (Box2D.Dynamics.Contacts.b2PolyAndCircleContact)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class b2PolyAndCircleContact extends b2Contact {
private var :Array;
public var :b2Manifold;
private var :b2Manifold;
private static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2PolyAndCircleContact(_arg1:b2Shape, _arg2:b2Shape){
= [new b2Manifold()];
= new b2Manifold();
super(_arg1, _arg2);
= [0];
b2Settings. (( . == b2Shape.e_polygonShape));
b2Settings. (( . == b2Shape.e_circleShape));
. = 0;
var _local3:b2ManifoldPoint = . [0];
_local3. = 0;
_local3. = 0;
}
override public function
(_arg1:b2ContactListener):void{
var _local2:int;
var _local3:b2Vec2;
var _local4:b2Vec2;
var _local5:b2ManifoldPoint;
var _local10:b2ManifoldPoint;
var _local11:Boolean;
var _local12:uint;
var _local13:int;
var _local6:b2Body = . ;
var _local7:b2Body = . ;
.Set( );
b2Collision. ( , ( as b2PolygonShape), _local6.
, ( as b2CircleShape), _local7.
);
var _local8:Array = [false, false];
var _local9:b2ContactPoint = s_evalCP;
_local9. = ;
_local9. = ;
_local9. = ;
_local9. = ;
if ( . > 0){
_local2 = 0;
while (_local2 < . ) {
_local10 = . [_local2];
_local10. = 0;
_local10. = 0;
_local11 = false;
_local12 = _local10.id. ;
_local13 = 0;
while (_local13 < . ) {
if (_local8[_local13] == true){
} else {
_local5 = . [_local13];
if (_local5.id. == _local12){
_local8[_local13] = true;
_local10. = _local5. ;
_local10. = _local5. ;
_local11 = true;
if (_arg1 != null){
_local9.position = _local6.
(_local10. );
_local3 = _local6. (_local10. );
_local4 = _local7. (_local10. );
_local9. .Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal. ( .normal);
_local9. = _local10. ;
_local9.id.
= _local12;
_arg1. (_local9);
};
break;
};
};
_local13++;
};
if ((((_local11 == false)) && (!((_arg1 == null))))){
_local9.position = _local6.
(_local10. );
_local3 = _local6. (_local10. );
_local4 = _local7. (_local10. );
_local9. .Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal. ( .normal);
_local9. = _local10. ;
_local9.id.
= _local12;
_arg1.Add(_local9);
};
_local2++;
};
= 1;
} else {
= 0;
};
if (_arg1 == null){
return;
};
_local2 = 0;
while (_local2 < . ) {
if (_local8[_local2]){
} else {
_local5 = . [_local2];
_local9.position = _local6.
(_local5. );
_local3 = _local6. (_local5. );
_local4 = _local7. (_local5. );
_local9. .Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal. ( .normal);
_local9. = _local5. ;
_local9.id.
= _local5.id. ;
_arg1. (_local9);
};
_local2++;
};
}
override public function
():Array{
return ( );
}
public static function (_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2PolyAndCircleContact(_arg1, _arg2));
}
public static function (_arg1:b2Contact, _arg2):void{
}
}
}//package Box2D.Dynamics.Contacts
Section 47
//b2PolygonContact (Box2D.Dynamics.Contacts.b2PolygonContact)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class b2PolygonContact extends b2Contact {
private var :b2Manifold;
private var :Array;
public var :b2Manifold;
private static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2PolygonContact(_arg1:b2Shape, _arg2:b2Shape):void{
= new b2Manifold();
= [new b2Manifold()];
super(_arg1, _arg2);
= [0];
. = 0;
}
override public function
(_arg1:b2ContactListener):void{
var _local2:b2Vec2;
var _local3:b2Vec2;
var _local4:b2ManifoldPoint;
var _local7:b2ContactPoint;
var _local8:int;
var _local10:b2ManifoldPoint;
var _local11:Boolean;
var _local12:uint;
var _local13:int;
var _local5:b2Body = . ;
var _local6:b2Body = . ;
.Set( );
b2Collision.
( , ( as b2PolygonShape), _local5.
, ( as b2PolygonShape), _local6.
);
var _local9:Array = [false, false];
_local7 = s_evalCP;
_local7. = ;
_local7. = ;
_local7. = ;
_local7. = ;
if ( . > 0){
_local8 = 0;
while (_local8 < . ) {
_local10 = . [_local8];
_local10. = 0;
_local10. = 0;
_local11 = false;
_local12 = _local10.id. ;
_local13 = 0;
while (_local13 < . ) {
if (_local9[_local13] == true){
} else {
_local4 = . [_local13];
if (_local4.id. == _local12){
_local9[_local13] = true;
_local10. = _local4. ;
_local10. = _local4. ;
_local11 = true;
if (_arg1 != null){
_local7.position = _local5.
(_local10. );
_local2 = _local5. (_local10. );
_local3 = _local6. (_local10. );
_local7. .Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal. ( .normal);
_local7. = _local10. ;
_local7.id.
= _local12;
_arg1. (_local7);
};
break;
};
};
_local13++;
};
if ((((_local11 == false)) && (!((_arg1 == null))))){
_local7.position = _local5.
(_local10. );
_local2 = _local5. (_local10. );
_local3 = _local6. (_local10. );
_local7. .Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal. ( .normal);
_local7. = _local10. ;
_local7.id.
= _local12;
_arg1.Add(_local7);
};
_local8++;
};
= 1;
} else {
= 0;
};
if (_arg1 == null){
return;
};
_local8 = 0;
while (_local8 < . ) {
if (_local9[_local8]){
} else {
_local4 = . [_local8];
_local7.position = _local5.
(_local4. );
_local2 = _local5. (_local4. );
_local3 = _local6. (_local4. );
_local7. .Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal. ( .normal);
_local7. = _local4. ;
_local7.id.
= _local4.id. ;
_arg1. (_local7);
};
_local8++;
};
}
override public function
():Array{
return ( );
}
public static function (_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2PolygonContact(_arg1, _arg2));
}
public static function (_arg1:b2Contact, _arg2):void{
}
}
}//package Box2D.Dynamics.Contacts
Section 48
//b2DistanceJoint (Box2D.Dynamics.Joints.b2DistanceJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Dynamics.*;
public class b2DistanceJoint extends b2Joint {
public var
:b2Vec2;
public var
:b2Vec2;
public var :b2Vec2;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public function b2DistanceJoint(_arg1:b2DistanceJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
super(_arg1);
. (_arg1. );
. (_arg1. );
= _arg1.length;
= _arg1. ;
= _arg1. ;
= 0;
= 0;
= 0;
= 0;
}
override public function (_arg1:b2TimeStep):void{
var _local2:b2Mat22;
var _local3:Number;
var _local4:b2Body;
var _local5:b2Body;
var _local6:Number;
var _local8:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
= _arg1.
;
_local4 =
;
_local5 =
;
_local2 = _local4.
.R;
_local6 = (
.x - _local4.
. .x);
var _local7:Number = (
.y - _local4.
. .y);
_local3 = ((_local2.
.x * _local6) + (_local2. .x * _local7));
_local7 = ((_local2.
.y * _local6) + (_local2. .y * _local7));
_local6 = _local3;
_local2 = _local5.
.R;
_local8 = (
.x - _local5.
. .x);
var _local9:Number = (
.y - _local5.
. .y);
_local3 = ((_local2.
.x * _local8) + (_local2. .x * _local9));
_local9 = ((_local2.
.y * _local8) + (_local2. .y * _local9));
_local8 = _local3;
.x = (((_local5.
.c.x + _local8) - _local4.
.c.x) - _local6);
.y = (((_local5.
.c.y + _local9) - _local4.
.c.y) - _local7);
var _local10:Number = Math.sqrt((( .x * .x) + ( .y * .y)));
if (_local10 > b2Settings.b2_linearSlop){
.Multiply((1 / _local10));
} else {
. ();
};
var _local11:Number = ((_local6 * .y) - (_local7 * .x));
var _local12:Number = ((_local8 * .y) - (_local9 * .x));
var _local13:Number = (((_local4. + ((_local4. * _local11) * _local11)) + _local5. ) + ((_local5. * _local12) * _local12));
= (1 / _local13);
if ( > 0){
_local14 = (_local10 - );
_local15 = ((2 * Math.PI) * );
_local16 = (((2 * ) * ) * _local15);
_local17 = (( * _local15) * _local15);
= (1 / (_arg1. * (_local16 + (_arg1. * _local17))));
= (((_local14 * _arg1. ) * _local17) * );
= (1 / (_local13 + ));
};
if (_arg1.
){
= ( * _arg1. );
_local18 = ( * .x);
_local19 = ( * .y);
_local4. .x = (_local4. .x - (_local4. * _local18));
_local4. .y = (_local4. .y - (_local4. * _local19));
_local4. = (_local4. - (_local4. * ((_local6 * _local19) - (_local7 * _local18))));
_local5. .x = (_local5. .x + (_local5. * _local18));
_local5. .y = (_local5. .y + (_local5. * _local19));
_local5. = (_local5. + (_local5. * ((_local8 * _local19) - (_local9 * _local18))));
} else {
= 0;
};
}
override public function
(_arg1:b2TimeStep):void{
var _local2:b2Mat22;
var _local3:b2Body =
;
var _local4:b2Body =
;
_local2 = _local3.
.R;
var _local5:Number = (
.x - _local3.
. .x);
var _local6:Number = (
.y - _local3.
. .y);
var _local7:Number = ((_local2.
.x * _local5) + (_local2. .x * _local6));
_local6 = ((_local2.
.y * _local5) + (_local2. .y * _local6));
_local5 = _local7;
_local2 = _local4.
.R;
var _local8:Number = (
.x - _local4.
. .x);
var _local9:Number = (
.y - _local4.
. .y);
_local7 = ((_local2.
.x * _local8) + (_local2. .x * _local9));
_local9 = ((_local2.
.y * _local8) + (_local2. .y * _local9));
_local8 = _local7;
var _local10:Number = (_local3. .x + (-(_local3. ) * _local6));
var _local11:Number = (_local3. .y + (_local3. * _local5));
var _local12:Number = (_local4. .x + (-(_local4. ) * _local9));
var _local13:Number = (_local4. .y + (_local4. * _local8));
var _local14:Number = (( .x * (_local12 - _local10)) + ( .y * (_local13 - _local11)));
var _local15:Number = (-( ) * ((_local14 + ) + ( * )));
= ( + _local15);
var _local16:Number = (_local15 * .x);
var _local17:Number = (_local15 * .y);
_local3. .x = (_local3. .x - (_local3. * _local16));
_local3. .y = (_local3. .y - (_local3. * _local17));
_local3. = (_local3. - (_local3. * ((_local5 * _local17) - (_local6 * _local16))));
_local4. .x = (_local4. .x + (_local4. * _local16));
_local4. .y = (_local4. .y + (_local4. * _local17));
_local4. = (_local4. + (_local4. * ((_local8 * _local17) - (_local9 * _local16))));
}
override public function ():Boolean{
var _local1:b2Mat22;
if ( > 0){
return (true);
};
var _local2:b2Body =
;
var _local3:b2Body =
;
_local1 = _local2.
.R;
var _local4:Number = (
.x - _local2.
. .x);
var _local5:Number = (
.y - _local2.
. .y);
var _local6:Number = ((_local1.
.x * _local4) + (_local1. .x * _local5));
_local5 = ((_local1.
.y * _local4) + (_local1. .y * _local5));
_local4 = _local6;
_local1 = _local3.
.R;
var _local7:Number = (
.x - _local3.
. .x);
var _local8:Number = (
.y - _local3.
. .y);
_local6 = ((_local1.
.x * _local7) + (_local1. .x * _local8));
_local8 = ((_local1.
.y * _local7) + (_local1. .y * _local8));
_local7 = _local6;
var _local9:Number = (((_local3.
.c.x + _local7) - _local2.
.c.x) - _local4);
var _local10:Number = (((_local3.
.c.y + _local8) - _local2.
.c.y) - _local5);
var _local11:Number = Math.sqrt(((_local9 * _local9) + (_local10 * _local10)));
_local9 = (_local9 / _local11);
_local10 = (_local10 / _local11);
var _local12:Number = (_local11 - );
_local12 = b2Math.
(_local12, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
var _local13:Number = (-( ) * _local12);
.Set(_local9, _local10);
var _local14:Number = (_local13 * .x);
var _local15:Number = (_local13 * .y);
_local2.
.c.x = (_local2.
.c.x - (_local2. * _local14));
_local2.
.c.y = (_local2.
.c.y - (_local2. * _local15));
_local2.
.a = (_local2.
.a - (_local2. * ((_local4 * _local15) - (_local5 * _local14))));
_local3.
.c.x = (_local3.
.c.x + (_local3. * _local14));
_local3.
.c.y = (_local3.
.c.y + (_local3. * _local15));
_local3.
.a = (_local3.
.a + (_local3. * ((_local7 * _local15) - (_local8 * _local14))));
_local2.
();
_local3.
();
return ((b2Math.
(_local12) < b2Settings.b2_linearSlop));
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
var _local1:b2Vec2 = new b2Vec2();
_local1. ( );
_local1.Multiply((
* ));
return (_local1);
}
override public function ():Number{
return (0);
}
}
}//package Box2D.Dynamics.Joints
Section 49
//b2DistanceJointDef (Box2D.Dynamics.Joints.b2DistanceJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2DistanceJointDef extends b2JointDef {
public var :b2Vec2;
public var :b2Vec2;
public var length:Number;
public var :Number;
public var :Number;
public function b2DistanceJointDef(){
= new b2Vec2();
= new b2Vec2();
super();
type = b2Joint.e_distanceJoint;
length = 1;
= 0;
= 0;
}
public function (_arg1:b2Body, _arg2:b2Body, _arg3:b2Vec2, _arg4:b2Vec2):void{
= _arg1;
= _arg2;
. ( . (_arg3));
. ( . (_arg4));
var _local5:Number = (_arg4.x - _arg3.x);
var _local6:Number = (_arg4.y - _arg3.y);
length = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
= 0;
= 0;
}
}
}//package Box2D.Dynamics.Joints
Section 50
//b2GearJoint (Box2D.Dynamics.Joints.b2GearJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Dynamics.*;
public class b2GearJoint extends b2Joint {
public var :b2Body;
public var :b2Body;
public var :b2RevoluteJoint;
public var :b2PrismaticJoint;
public var :b2RevoluteJoint;
public var :b2PrismaticJoint;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:b2Vec2;
public var :b2Jacobian;
public var
:Number;
public var
:Number;
public var :Number;
public var :Number;
public function b2GearJoint(_arg1:b2GearJointDef){
var _local4:Number;
var _local5:Number;
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Jacobian();
super(_arg1);
var _local2:int = _arg1. . ;
var _local3:int = _arg1. . ;
= null;
= null;
= null;
= null;
= _arg1. .
;
= _arg1. .
;
if (_local2 == b2Joint.e_revoluteJoint){
= (_arg1. as b2RevoluteJoint);
. ( .
);
. ( .
);
_local4 = . ();
} else {
= (_arg1. as b2PrismaticJoint);
. ( .
);
. ( .
);
_local4 = . ();
};
= _arg1. .
;
= _arg1. .
;
if (_local3 == b2Joint.e_revoluteJoint){
= (_arg1. as b2RevoluteJoint);
. ( .
);
. ( .
);
_local5 = . ();
} else {
= (_arg1. as b2PrismaticJoint);
. ( .
);
. ( .
);
_local5 = . ();
};
= _arg1. ;
= (_local4 + (
* _local5));
= 0;
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
var _local1:b2Vec2 = new b2Vec2(( * . .x), ( * . .y));
return (_local1);
}
override public function ():Number{
var _local1:b2Mat22 =
.
.R;
var _local2:Number = (
.x -
.
. .x);
var _local3:Number = (
.y -
.
. .y);
var _local4:Number = ((_local1.
.x * _local2) + (_local1. .x * _local3));
_local3 = ((_local1.
.y * _local2) + (_local1. .y * _local3));
_local2 = _local4;
_local4 = (( * . ) - ((_local2 * ( * . .y)) - (_local3 * ( * . .x))));
return (_local4);
}
public function ():Number{
return (
);
}
override public function (_arg1:b2TimeStep):void{
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:b2Mat22;
var _local11:b2Vec2;
var _local12:Number;
var _local13:Number;
var _local15:Number;
var _local2:b2Body = ;
var _local3:b2Body = ;
var _local4:b2Body =
;
var _local5:b2Body =
;
var _local14:Number = 0;
. ();
if ( ){
. = -1;
_local14 = (_local14 + _local4. );
} else {
_local10 = _local2.
.R;
_local11 = . ;
_local6 = ((_local10.
.x * _local11.x) + (_local10. .x * _local11.y));
_local7 = ((_local10.
.y * _local11.x) + (_local10. .y * _local11.y));
_local10 = _local4.
.R;
_local8 = (
.x - _local4.
. .x);
_local9 = (
.y - _local4.
. .y);
_local13 = ((_local10.
.x * _local8) + (_local10. .x * _local9));
_local9 = ((_local10.
.y * _local8) + (_local10. .y * _local9));
_local8 = _local13;
_local12 = ((_local8 * _local7) - (_local9 * _local6));
. .Set(-(_local6), -(_local7));
. = -(_local12);
_local14 = (_local14 + (_local4. + ((_local4. * _local12) * _local12)));
};
if ( ){
. = -(
);
_local14 = (_local14 + ((
*
) * _local5. ));
} else {
_local10 = _local3.
.R;
_local11 = . ;
_local6 = ((_local10.
.x * _local11.x) + (_local10. .x * _local11.y));
_local7 = ((_local10.
.y * _local11.x) + (_local10. .y * _local11.y));
_local10 = _local5.
.R;
_local8 = (
.x - _local5.
. .x);
_local9 = (
.y - _local5.
. .y);
_local13 = ((_local10.
.x * _local8) + (_local10. .x * _local9));
_local9 = ((_local10.
.y * _local8) + (_local10. .y * _local9));
_local8 = _local13;
_local12 = ((_local8 * _local7) - (_local9 * _local6));
. .Set((-(
) * _local6), (-(
) * _local7));
. = (-(
) * _local12);
_local14 = (_local14 + ((
*
) * (_local5. + ((_local5. * _local12) * _local12))));
};
= (1 / _local14);
if (_arg1.
){
_local15 = (_arg1. * );
_local4. .x = (_local4. .x + ((_local4. * _local15) * . .x));
_local4. .y = (_local4. .y + ((_local4. * _local15) * . .y));
_local4. = (_local4. + ((_local4. * _local15) * . ));
_local5. .x = (_local5. .x + ((_local5. * _local15) * . .x));
_local5. .y = (_local5. .y + ((_local5. * _local15) * . .y));
_local5. = (_local5. + ((_local5. * _local15) * . ));
} else {
= 0;
};
}
override public function
(_arg1:b2TimeStep):void{
var _local2:b2Body =
;
var _local3:b2Body =
;
var _local4:Number = .
(_local2. , _local2. , _local3. , _local3. );
var _local5:Number = ((-(_arg1.
) * ) * _local4);
= ( + _local5);
var _local6:Number = (_arg1. * _local5);
_local2. .x = (_local2. .x + ((_local2. * _local6) * . .x));
_local2. .y = (_local2. .y + ((_local2. * _local6) * . .y));
_local2. = (_local2. + ((_local2. * _local6) * . ));
_local3. .x = (_local3. .x + ((_local3. * _local6) * . .x));
_local3. .y = (_local3. .y + ((_local3. * _local6) * . .y));
_local3. = (_local3. + ((_local3. * _local6) * . ));
}
override public function ():Boolean{
var _local4:Number;
var _local5:Number;
var _local1:Number = 0;
var _local2:b2Body =
;
var _local3:b2Body =
;
if ( ){
_local4 = . ();
} else {
_local4 = . ();
};
if ( ){
_local5 = . ();
} else {
_local5 = . ();
};
var _local6:Number = (
- (_local4 + (
* _local5)));
var _local7:Number = (-( ) * _local6);
_local2.
.c.x = (_local2.
.c.x + ((_local2. * _local7) * . .x));
_local2.
.c.y = (_local2.
.c.y + ((_local2. * _local7) * . .y));
_local2.
.a = (_local2.
.a + ((_local2. * _local7) * . ));
_local3.
.c.x = (_local3.
.c.x + ((_local3. * _local7) * . .x));
_local3.
.c.y = (_local3.
.c.y + ((_local3. * _local7) * . .y));
_local3.
.a = (_local3.
.a + ((_local3. * _local7) * . ));
_local2.
();
_local3.
();
return ((_local1 < b2Settings.b2_linearSlop));
}
}
}//package Box2D.Dynamics.Joints
Section 51
//b2GearJointDef (Box2D.Dynamics.Joints.b2GearJointDef)
package Box2D.Dynamics.Joints {
public class b2GearJointDef extends b2JointDef {
public var :b2Joint;
public var :b2Joint;
public var :Number;
public function b2GearJointDef(){
type = b2Joint.e_gearJoint;
= null;
= null;
= 1;
}
}
}//package Box2D.Dynamics.Joints
Section 52
//b2Jacobian (Box2D.Dynamics.Joints.b2Jacobian)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
public class b2Jacobian {
public var :b2Vec2;
public var :Number;
public var :b2Vec2;
public var :Number;
public function b2Jacobian(){
= new b2Vec2();
= new b2Vec2();
super();
}
public function ():void{
. ();
= 0;
. ();
= 0;
}
public function Set(_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:Number):void{
. (_arg1);
= _arg2;
. (_arg3);
= _arg4;
}
public function
(_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:Number):Number{
return (((((( .x * _arg1.x) + ( .y * _arg1.y)) + ( * _arg2)) + (( .x * _arg3.x) + ( .y * _arg3.y))) + ( * _arg4)));
}
}
}//package Box2D.Dynamics.Joints
Section 53
//b2Joint (Box2D.Dynamics.Joints.b2Joint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2Joint {
public var :int;
public var
:b2Joint;
public var
:b2Joint;
public var
:b2JointEdge;
public var
:b2JointEdge;
public var
:b2Body;
public var
:b2Body;
public var
:Number;
public var
:Boolean;
public var
:Boolean;
public var
;
public static const e_unknownJoint:int = 0;
public static const e_revoluteJoint:int = 1;
public static const e_prismaticJoint:int = 2;
public static const e_distanceJoint:int = 3;
public static const e_pulleyJoint:int = 4;
public static const e_mouseJoint:int = 5;
public static const e_gearJoint:int = 6;
public static const e_inactiveLimit:int = 0;
public static const e_atLowerLimit:int = 1;
public static const e_atUpperLimit:int = 2;
public static const e_equalLimits:int = 3;
public function b2Joint(_arg1:b2JointDef){
= new b2JointEdge();
= new b2JointEdge();
super();
= _arg1.type;
= null;
= null;
= _arg1. ;
= _arg1. ;
= _arg1. ;
= false;
= _arg1. ;
}
public function ():int{
return ( );
}
public function ():b2Vec2{
return (null);
}
public function ():b2Vec2{
return (null);
}
public function ():b2Vec2{
return (null);
}
public function ():Number{
return (0);
}
public function ():b2Body{
return (
);
}
public function ():b2Body{
return (
);
}
public function ():b2Joint{
return (
);
}
public function
(){
return (
);
}
public function (_arg1):void{
= _arg1;
}
public function (_arg1:b2TimeStep):void{
}
public function
(_arg1:b2TimeStep):void{
}
public function ():void{
}
public function ():Boolean{
return (false);
}
public static function (_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);
}
public static function (_arg1:b2Joint, _arg2):void{
}
}
}//package Box2D.Dynamics.Joints
Section 54
//b2JointDef (Box2D.Dynamics.Joints.b2JointDef)
package Box2D.Dynamics.Joints {
import Box2D.Dynamics.*;
public class b2JointDef {
public var type:int;
public var ;
public var :b2Body;
public var :b2Body;
public var :Boolean;
public function b2JointDef(){
type = b2Joint.e_unknownJoint;
= null;
= null;
= null;
= false;
}
}
}//package Box2D.Dynamics.Joints
Section 55
//b2JointEdge (Box2D.Dynamics.Joints.b2JointEdge)
package Box2D.Dynamics.Joints {
import Box2D.Dynamics.*;
public class b2JointEdge {
public var :b2Body;
public var joint:b2Joint;
public var :b2JointEdge;
public var :b2JointEdge;
}
}//package Box2D.Dynamics.Joints
Section 56
//b2MouseJoint (Box2D.Dynamics.Joints.b2MouseJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Dynamics.*;
public class b2MouseJoint extends b2Joint {
private var K:b2Mat22;
private var :b2Mat22;
private var :b2Mat22;
public var
:b2Vec2;
public var :b2Vec2;
public var :b2Vec2;
public var :b2Mat22;
public var
:b2Vec2;
public var :Number;
public var :Number;
public var :Number;
public function b2MouseJoint(_arg1:b2MouseJointDef){
var _local3:Number;
K = new b2Mat22();
= new b2Mat22();
= new b2Mat22();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Mat22();
= new b2Vec2();
super(_arg1);
. (_arg1.target);
var _local2:Number = ( .x -
.
.position.x);
_local3 = ( .y -
.
.position.y);
var _local4:b2Mat22 =
.
.R;
.x = ((_local2 * _local4.
.x) + (_local3 * _local4.
.y));
.y = ((_local2 * _local4. .x) + (_local3 * _local4. .y));
= _arg1. ;
. ();
var _local5:Number =
. ;
var _local6:Number = ((2 * b2Settings.b2_pi) * _arg1. );
var _local7:Number = (((2 * _local5) * _arg1. ) * _local6);
var _local8:Number = ((_arg1. * _local5) * (_local6 * _local6));
= (1 / (_local7 + _local8));
= (_local8 / (_local7 + _local8));
}
override public function ():b2Vec2{
return ( );
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
return ( );
}
override public function ():Number{
return (0);
}
public function (_arg1:b2Vec2):void{
if (
.
()){
.
();
};
= _arg1;
}
override public function (_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Mat22;
var _local4:Number;
var _local5:Number;
var _local7:Number;
var _local8:Number;
_local2 =
;
_local3 = _local2.
.R;
_local4 = (
.x - _local2.
. .x);
_local5 = (
.y - _local2.
. .y);
var _local6:Number = ((_local3.
.x * _local4) + (_local3. .x * _local5));
_local5 = ((_local3.
.y * _local4) + (_local3. .y * _local5));
_local4 = _local6;
_local7 = _local2. ;
_local8 = _local2. ;
.
.x = _local7;
. .x = 0;
.
.y = 0;
. .y = _local7;
.
.x = ((_local8 * _local5) * _local5);
. .x = ((-(_local8) * _local4) * _local5);
.
.y = ((-(_local8) * _local4) * _local5);
. .y = ((_local8 * _local4) * _local4);
K. ( );
K.
( );
K.
.x = (K.
.x + );
K. .y = (K. .y + );
K.Invert( );
.x = ((_local2.
.c.x + _local4) - .x);
.y = ((_local2.
.c.y + _local5) - .y);
_local2. = (_local2. * 0.98);
var _local9:Number = (_arg1. * .x);
var _local10:Number = (_arg1. * .y);
_local2. .x = (_local2. .x + (_local7 * _local9));
_local2. .y = (_local2. .y + (_local7 * _local10));
_local2. = (_local2. + (_local8 * ((_local4 * _local10) - (_local5 * _local9))));
}
override public function
(_arg1:b2TimeStep):void{
var _local3:b2Mat22;
var _local4:Number;
var _local5:Number;
var _local2:b2Body =
;
_local3 = _local2.
.R;
var _local6:Number = (
.x - _local2.
. .x);
var _local7:Number = (
.y - _local2.
. .y);
_local4 = ((_local3.
.x * _local6) + (_local3. .x * _local7));
_local7 = ((_local3.
.y * _local6) + (_local3. .y * _local7));
_local6 = _local4;
var _local8:Number = (_local2. .x + (-(_local2. ) * _local7));
var _local9:Number = (_local2. .y + (_local2. * _local6));
_local3 = ;
_local4 = ((_local8 + (( * _arg1.
) *
.x)) + (( * _arg1. ) * .x));
_local5 = ((_local9 + (( * _arg1.
) *
.y)) + (( * _arg1. ) * .y));
var _local10:Number = (-(_arg1.
) * ((_local3.
.x * _local4) + (_local3. .x * _local5)));
var _local11:Number = (-(_arg1.
) * ((_local3.
.y * _local4) + (_local3. .y * _local5)));
var _local12:Number = .x;
var _local13:Number = .y;
.x = ( .x + _local10);
.y = ( .y + _local11);
var _local14:Number = .Length();
if (_local14 > ){
.Multiply(( / _local14));
};
_local10 = ( .x - _local12);
_local11 = ( .y - _local13);
var _local15:Number = (_arg1. * _local10);
var _local16:Number = (_arg1. * _local11);
_local2. .x = (_local2. .x + (_local2. * _local15));
_local2. .y = (_local2. .y + (_local2. * _local16));
_local2. = (_local2. + (_local2. * ((_local6 * _local16) - (_local7 * _local15))));
}
override public function ():Boolean{
return (true);
}
}
}//package Box2D.Dynamics.Joints
Section 57
//b2MouseJointDef (Box2D.Dynamics.Joints.b2MouseJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
public class b2MouseJointDef extends b2JointDef {
public var target:b2Vec2;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public function b2MouseJointDef(){
target = new b2Vec2();
super();
type = b2Joint.e_mouseJoint;
= 0;
= 5;
= 0.7;
= (1 / 60);
}
}
}//package Box2D.Dynamics.Joints
Section 58
//b2PrismaticJoint (Box2D.Dynamics.Joints.b2PrismaticJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Dynamics.*;
public class b2PrismaticJoint extends b2Joint {
public var
:b2Vec2;
public var
:b2Vec2;
public var :b2Vec2;
public var :b2Vec2;
public var :Number;
public var
:b2Jacobian;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public var
:b2Jacobian;
public var
:Number;
public var
:Number;
public var
:Number;
public var
:Number;
public var :Number;
public var :Number;
public var :Number;
public var
:Number;
public var
:Boolean;
public var
:Boolean;
public var :int;
public function b2PrismaticJoint(_arg1:b2PrismaticJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Jacobian();
= new b2Jacobian();
super(_arg1);
. (_arg1. );
. (_arg1. );
. (_arg1. );
.x = -( .y);
.y = .x;
= _arg1. ;
. ();
= 0;
= 0;
= 0;
= 0;
. ();
= 0;
= 0;
= 0;
= 0;
= _arg1. ;
= _arg1. ;
= _arg1.
;
= _arg1. ;
= _arg1. ;
= _arg1. ;
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
var _local1:b2Mat22 =
.
.R;
var _local2:Number = (
* ((_local1.
.x * .x) + (_local1. .x * .y)));
var _local3:Number = (
* ((_local1.
.y * .x) + (_local1. .y * .y)));
var _local4:Number = ( * ((_local1.
.x * .x) + (_local1. .x * .y)));
var _local5:Number = ( * ((_local1.
.y * .x) + (_local1. .y * .y)));
return (new b2Vec2(((
* _local2) + ( * _local4)), ((
* _local3) + ( * _local5))));
}
override public function ():Number{
return ( );
}
public function ():Number{
var _local3:b2Mat22;
var _local1:b2Body =
;
var _local2:b2Body =
;
var _local4:b2Vec2 = _local1.
(
);
var _local5:b2Vec2 = _local2.
(
);
var _local6:Number = (_local5.x - _local4.x);
var _local7:Number = (_local5.y - _local4.y);
var _local8:b2Vec2 = _local1. ( );
var _local9:Number = ((_local8.x * _local6) + (_local8.y * _local7));
return (_local9);
}
public function ():Number{
var _local3:b2Mat22;
var _local1:b2Body =
;
var _local2:b2Body =
;
_local3 = _local1.
.R;
var _local4:Number = (
.x - _local1.
. .x);
var _local5:Number = (
.y - _local1.
. .y);
var _local6:Number = ((_local3.
.x * _local4) + (_local3. .x * _local5));
_local5 = ((_local3.
.y * _local4) + (_local3. .y * _local5));
_local4 = _local6;
_local3 = _local2.
.R;
var _local7:Number = (
.x - _local2.
. .x);
var _local8:Number = (
.y - _local2.
. .y);
_local6 = ((_local3.
.x * _local7) + (_local3. .x * _local8));
_local8 = ((_local3.
.y * _local7) + (_local3. .y * _local8));
_local7 = _local6;
var _local9:Number = (_local1.
.c.x + _local4);
var _local10:Number = (_local1.
.c.y + _local5);
var _local11:Number = (_local2.
.c.x + _local7);
var _local12:Number = (_local2.
.c.y + _local8);
var _local13:Number = (_local11 - _local9);
var _local14:Number = (_local12 - _local10);
var _local15:b2Vec2 = _local1. ( );
var _local16:b2Vec2 = _local1. ;
var _local17:b2Vec2 = _local2. ;
var _local18:Number = _local1. ;
var _local19:Number = _local2. ;
var _local20:Number = (((_local13 * (-(_local18) * _local15.y)) + (_local14 * (_local18 * _local15.x))) + ((_local15.x * (((_local17.x + (-(_local19) * _local8)) - _local16.x) - (-(_local18) * _local5))) + (_local15.y * (((_local17.y + (_local19 * _local7)) - _local16.y) - (_local18 * _local4)))));
return (_local20);
}
public function
():Boolean{
return (
);
}
public function (_arg1:Boolean):void{
= _arg1;
}
public function ():Number{
return ( );
}
public function
():Number{
return ( );
}
public function (_arg1:Number, _arg2:Number):void{
= _arg1;
= _arg2;
}
public function ():Boolean{
return (
);
}
public function (_arg1:Boolean):void{
= _arg1;
}
public function
(_arg1:Number):void{
= _arg1;
}
public function
():Number{
return (
);
}
public function (_arg1:Number):void{
= _arg1;
}
public function ():Number{
return (
);
}
override public function (_arg1:b2TimeStep):void{
var _local4:b2Mat22;
var _local5: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 _local27:Number;
var _local28:Number;
var _local2:b2Body =
;
var _local3:b2Body =
;
_local4 = _local2.
.R;
var _local6:Number = (
.x - _local2.
. .x);
var _local7:Number = (
.y - _local2.
. .y);
_local5 = ((_local4.
.x * _local6) + (_local4. .x * _local7));
_local7 = ((_local4.
.y * _local6) + (_local4. .y * _local7));
_local6 = _local5;
_local4 = _local3.
.R;
var _local8:Number = (
.x - _local3.
. .x);
var _local9:Number = (
.y - _local3.
. .y);
_local5 = ((_local4.
.x * _local8) + (_local4. .x * _local9));
_local9 = ((_local4.
.y * _local8) + (_local4. .y * _local9));
_local8 = _local5;
var _local10:Number = _local2. ;
var _local11:Number = _local3. ;
var _local12:Number = _local2. ;
var _local13:Number = _local3. ;
_local4 = _local2.
.R;
var _local14:Number = ((_local4.
.x * .x) + (_local4. .x * .y));
var _local15:Number = ((_local4.
.y * .x) + (_local4. .y * .y));
var _local16:Number = ((_local3.
.c.x + _local8) - _local2.
.c.x);
var _local17:Number = ((_local3.
.c.y + _local9) - _local2.
.c.y);
. .x = -(_local14);
. .y = -(_local15);
. .x = _local14;
. .y = _local15;
. = -(((_local16 * _local15) - (_local17 * _local14)));
. = ((_local8 * _local15) - (_local9 * _local14));
= (((_local10 + ((_local12 *
. ) *
. )) + _local11) + ((_local13 *
. ) *
. ));
= (1 / );
= (_local12 + _local13);
if ( > Number.MIN_VALUE){
= (1 / );
};
if (((
) || (
))){
_local4 = _local2.
.R;
_local18 = ((_local4.
.x * .x) + (_local4. .x * .y));
_local19 = ((_local4.
.y * .x) + (_local4. .y * .y));
. .x = -(_local18);
. .y = -(_local19);
. .x = _local18;
. .y = _local19;
. = -(((_local16 * _local19) - (_local17 * _local18)));
. = ((_local8 * _local19) - (_local9 * _local18));
= (((_local10 + ((_local12 *
. ) *
. )) + _local11) + ((_local13 *
. ) *
. ));
= (1 /
);
if (
){
_local20 = (_local16 - _local6);
_local21 = (_local17 - _local7);
_local22 = ((_local18 * _local20) + (_local19 * _local21));
if (b2Math.
(( - )) < (2 * b2Settings.b2_linearSlop)){
= e_equalLimits;
} else {
if (_local22 <= ){
if ( != e_atLowerLimit){
= 0;
};
= e_atLowerLimit;
} else {
if (_local22 >= ){
if ( != e_atUpperLimit){
= 0;
};
= e_atUpperLimit;
} else {
= e_inactiveLimit;
= 0;
};
};
};
};
};
if (
== false){
= 0;
};
if (
== false){
= 0;
};
if (_arg1.
){
_local23 = (_arg1. * (( *
. .x) + ((
+
) *
. .x)));
_local24 = (_arg1. * (( *
. .y) + ((
+
) *
. .y)));
_local25 = (_arg1. * (( *
. .x) + ((
+
) *
. .x)));
_local26 = (_arg1. * (( *
. .y) + ((
+
) *
. .y)));
_local27 = (_arg1. * ((( *
. ) - ) + ((
+
) *
. )));
_local28 = (_arg1. * ((( *
. ) + ) + ((
+
) *
. )));
_local2. .x = (_local2. .x + (_local10 * _local23));
_local2. .y = (_local2. .y + (_local10 * _local24));
_local2. = (_local2. + (_local12 * _local27));
_local3. .x = (_local3. .x + (_local11 * _local25));
_local3. .y = (_local3. .y + (_local11 * _local26));
_local3. = (_local3. + (_local13 * _local28));
} else {
= 0;
= 0;
= 0;
= 0;
};
= 0;
}
override public function
(_arg1:b2TimeStep):void{
var _local8:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local2:b2Body =
;
var _local3:b2Body =
;
var _local4:Number = _local2. ;
var _local5:Number = _local3. ;
var _local6:Number = _local2. ;
var _local7:Number = _local3. ;
var _local9:Number =
.
(_local2. , _local2. , _local3. , _local3. );
var _local10:Number = ((-(_arg1.
) * ) * _local9);
= ( + _local10);
var _local11:Number = (_arg1. * _local10);
_local2. .x = (_local2. .x + ((_local4 * _local11) *
. .x));
_local2. .y = (_local2. .y + ((_local4 * _local11) *
. .y));
_local2. = (_local2. + ((_local6 * _local11) *
. ));
_local3. .x = (_local3. .x + ((_local5 * _local11) *
. .x));
_local3. .y = (_local3. .y + ((_local5 * _local11) *
. .y));
_local3. = (_local3. + ((_local7 * _local11) *
. ));
var _local12:Number = (_local3. - _local2. );
var _local13:Number = ((-(_arg1.
) * ) * _local12);
= ( + _local13);
var _local14:Number = (_arg1. * _local13);
_local2. = (_local2. - (_local6 * _local14));
_local3. = (_local3. + (_local7 * _local14));
if (((
) && (!(( == e_equalLimits))))){
_local15 = (
.
(_local2. , _local2. , _local3. , _local3. ) -
);
_local16 = ((-(_arg1.
) *
) * _local15);
_local17 =
;
= b2Math.
((
+ _local16), -( ), );
_local16 = (
- _local17);
_local11 = (_arg1. * _local16);
_local2. .x = (_local2. .x + ((_local4 * _local11) *
. .x));
_local2. .y = (_local2. .y + ((_local4 * _local11) *
. .y));
_local2. = (_local2. + ((_local6 * _local11) *
. ));
_local3. .x = (_local3. .x + ((_local5 * _local11) *
. .x));
_local3. .y = (_local3. .y + ((_local5 * _local11) *
. .y));
_local3. = (_local3. + ((_local7 * _local11) *
. ));
};
if (((
) && (!(( == e_inactiveLimit))))){
_local18 =
.
(_local2. , _local2. , _local3. , _local3. );
_local19 = ((-(_arg1.
) *
) * _local18);
if ( == e_equalLimits){
= (
+ _local19);
} else {
if ( == e_atLowerLimit){
_local8 =
;
= b2Math.
((
+ _local19), 0);
_local19 = (
- _local8);
} else {
if ( == e_atUpperLimit){
_local8 =
;
= b2Math.
((
+ _local19), 0);
_local19 = (
- _local8);
};
};
};
_local11 = (_arg1. * _local19);
_local2. .x = (_local2. .x + ((_local4 * _local11) *
. .x));
_local2. .y = (_local2. .y + ((_local4 * _local11) *
. .y));
_local2. = (_local2. + ((_local6 * _local11) *
. ));
_local3. .x = (_local3. .x + ((_local5 * _local11) *
. .x));
_local3. .y = (_local3. .y + ((_local5 * _local11) *
. .y));
_local3. = (_local3. + ((_local7 * _local11) *
. ));
};
}
override public function ():Boolean{
var _local1:Number;
var _local2:Number;
var _local9:b2Mat22;
var _local10:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local3:b2Body =
;
var _local4:b2Body =
;
var _local5:Number = _local3. ;
var _local6:Number = _local4. ;
var _local7:Number = _local3. ;
var _local8:Number = _local4. ;
_local9 = _local3.
.R;
var _local11:Number = (
.x - _local3.
. .x);
var _local12:Number = (
.y - _local3.
. .y);
_local10 = ((_local9.
.x * _local11) + (_local9. .x * _local12));
_local12 = ((_local9.
.y * _local11) + (_local9. .y * _local12));
_local11 = _local10;
_local9 = _local4.
.R;
var _local13:Number = (
.x - _local4.
. .x);
var _local14:Number = (
.y - _local4.
. .y);
_local10 = ((_local9.
.x * _local13) + (_local9. .x * _local14));
_local14 = ((_local9.
.y * _local13) + (_local9. .y * _local14));
_local13 = _local10;
var _local15:Number = (_local3.
.c.x + _local11);
var _local16:Number = (_local3.
.c.y + _local12);
var _local17:Number = (_local4.
.c.x + _local13);
var _local18:Number = (_local4.
.c.y + _local14);
var _local19:Number = (_local17 - _local15);
var _local20:Number = (_local18 - _local16);
_local9 = _local3.
.R;
var _local21:Number = ((_local9.
.x * .x) + (_local9. .x * .y));
var _local22:Number = ((_local9.
.y * .x) + (_local9. .y * .y));
var _local23:Number = ((_local21 * _local19) + (_local22 * _local20));
_local23 = b2Math.
(_local23, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
var _local24:Number = (-( ) * _local23);
_local3.
.c.x = (_local3.
.c.x + ((_local5 * _local24) *
. .x));
_local3.
.c.y = (_local3.
.c.y + ((_local5 * _local24) *
. .y));
_local3.
.a = (_local3.
.a + ((_local7 * _local24) *
. ));
_local4.
.c.x = (_local4.
.c.x + ((_local6 * _local24) *
. .x));
_local4.
.c.y = (_local4.
.c.y + ((_local6 * _local24) *
. .y));
_local4.
.a = (_local4.
.a + ((_local8 * _local24) *
. ));
var _local25:Number = b2Math.
(_local23);
var _local26:Number = ((_local4.
.a - _local3.
.a) - );
_local26 = b2Math.
(_local26, -(b2Settings.b2_maxAngularCorrection), b2Settings.b2_maxAngularCorrection);
var _local27:Number = (-( ) * _local26);
_local3.
.a = (_local3.
.a - (_local3. * _local27));
_local4.
.a = (_local4.
.a + (_local4. * _local27));
_local3.
();
_local4.
();
var _local28:Number = b2Math.
(_local26);
if (((
) && (!(( == e_inactiveLimit))))){
_local9 = _local3.
.R;
_local11 = (
.x - _local3.
. .x);
_local12 = (
.y - _local3.
. .y);
_local10 = ((_local9.
.x * _local11) + (_local9. .x * _local12));
_local12 = ((_local9.
.y * _local11) + (_local9. .y * _local12));
_local11 = _local10;
_local9 = _local4.
.R;
_local13 = (
.x - _local4.
. .x);
_local14 = (
.y - _local4.
. .y);
_local10 = ((_local9.
.x * _local13) + (_local9. .x * _local14));
_local14 = ((_local9.
.y * _local13) + (_local9. .y * _local14));
_local13 = _local10;
_local15 = (_local3.
.c.x + _local11);
_local16 = (_local3.
.c.y + _local12);
_local17 = (_local4.
.c.x + _local13);
_local18 = (_local4.
.c.y + _local14);
_local19 = (_local17 - _local15);
_local20 = (_local18 - _local16);
_local9 = _local3.
.R;
_local29 = ((_local9.
.x * .x) + (_local9. .x * .y));
_local30 = ((_local9.
.y * .x) + (_local9. .y * .y));
_local31 = ((_local29 * _local19) + (_local30 * _local20));
_local32 = 0;
if ( == e_equalLimits){
_local1 = b2Math.
(_local31, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
_local32 = (-(
) * _local1);
_local25 = b2Math.
(_local25, b2Math.
(_local26));
} else {
if ( == e_atLowerLimit){
_local1 = (_local31 - );
_local25 = b2Math.
(_local25, -(_local1));
_local1 = b2Math.
((_local1 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local32 = (-(
) * _local1);
_local2 =
;
= b2Math.
((
+ _local32), 0);
_local32 = (
- _local2);
} else {
if ( == e_atUpperLimit){
_local1 = (_local31 - );
_local25 = b2Math.
(_local25, _local1);
_local1 = b2Math.
((_local1 - b2Settings.b2_linearSlop), 0, b2Settings.b2_maxLinearCorrection);
_local32 = (-(
) * _local1);
_local2 =
;
= b2Math.
((
+ _local32), 0);
_local32 = (
- _local2);
};
};
};
_local3.
.c.x = (_local3.
.c.x + ((_local5 * _local32) *
. .x));
_local3.
.c.y = (_local3.
.c.y + ((_local5 * _local32) *
. .y));
_local3.
.a = (_local3.
.a + ((_local7 * _local32) *
. ));
_local4.
.c.x = (_local4.
.c.x + ((_local6 * _local32) *
. .x));
_local4.
.c.y = (_local4.
.c.y + ((_local6 * _local32) *
. .y));
_local4.
.a = (_local4.
.a + ((_local8 * _local32) *
. ));
_local3.
();
_local4.
();
};
return ((((_local25 <= b2Settings.b2_linearSlop)) && ((_local28 <= b2Settings.b2_angularSlop))));
}
}
}//package Box2D.Dynamics.Joints
Section 59
//b2PrismaticJointDef (Box2D.Dynamics.Joints.b2PrismaticJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2PrismaticJointDef extends b2JointDef {
public var :b2Vec2;
public var :b2Vec2;
public var :b2Vec2;
public var :Number;
public var :Boolean;
public var :Number;
public var :Number;
public var :Boolean;
public var
:Number;
public var :Number;
public function b2PrismaticJointDef(){
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
super();
type = b2Joint.e_prismaticJoint;
.Set(1, 0);
= 0;
= false;
= 0;
= 0;
= false;
= 0;
= 0;
}
public function (_arg1:b2Body, _arg2:b2Body, _arg3:b2Vec2, _arg4:b2Vec2):void{
= _arg1;
= _arg2;
= . (_arg3);
= . (_arg3);
= .
(_arg4);
= ( . () - . ());
}
}
}//package Box2D.Dynamics.Joints
Section 60
//b2PulleyJoint (Box2D.Dynamics.Joints.b2PulleyJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Dynamics.*;
public class b2PulleyJoint extends b2Joint {
public var
:b2Body;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:Number;
public var
:Number;
public var
:Number;
public var
:Number;
public var
:Number;
public var
:Number;
public var
:Number;
public var :Number;
public var
:Number;
public var
:Number;
public var :Number;
public var :Number;
public var :Number;
public var :int;
public var :int;
public var :int;
public static const b2_minPulleyLength:Number = 2;
public function b2PulleyJoint(_arg1:b2PulleyJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
super(_arg1);
=
. . ;
.x = (_arg1. .x -
.
.position.x);
.y = (_arg1. .y -
.
.position.y);
.x = (_arg1. .x -
.
.position.x);
.y = (_arg1. .y -
.
.position.y);
. (_arg1. );
. (_arg1. );
= _arg1. ;
= (_arg1.
+ (
* _arg1. ));
= b2Math.
(_arg1. , (
- (
* b2_minPulleyLength)));
= b2Math.
(_arg1. , ((
- b2_minPulleyLength) /
));
= 0;
= 0;
= 0;
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
var _local1:b2Vec2 =
.Copy();
_local1.Multiply( );
return (_local1);
}
override public function ():Number{
return (0);
}
public function ():b2Vec2{
var _local1:b2Vec2 =
.
.position.Copy();
_local1.Add(
);
return (_local1);
}
public function
():b2Vec2{
var _local1:b2Vec2 =
.
.position.Copy();
_local1.Add(
);
return (_local1);
}
public function ():Number{
var _local1:b2Vec2 =
.
(
);
var _local2:Number = (
.
.position.x +
.x);
var _local3:Number = (
.
.position.y +
.y);
var _local4:Number = (_local1.x - _local2);
var _local5:Number = (_local1.y - _local3);
return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5))));
}
public function ():Number{
var _local1:b2Vec2 =
.
(
);
var _local2:Number = (
.
.position.x +
.x);
var _local3:Number = (
.
.position.y +
.y);
var _local4:Number = (_local1.x - _local2);
var _local5:Number = (_local1.y - _local3);
return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5))));
}
public function ():Number{
return (
);
}
override public function (_arg1:b2TimeStep):void{
var _local4:b2Mat22;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local2:b2Body =
;
var _local3:b2Body =
;
_local4 = _local2.
.R;
var _local5:Number = (
.x - _local2.
. .x);
var _local6:Number = (
.y - _local2.
. .y);
var _local7:Number = ((_local4.
.x * _local5) + (_local4. .x * _local6));
_local6 = ((_local4.
.y * _local5) + (_local4. .y * _local6));
_local5 = _local7;
_local4 = _local3.
.R;
var _local8:Number = (
.x - _local3.
. .x);
var _local9:Number = (
.y - _local3.
. .y);
_local7 = ((_local4.
.x * _local8) + (_local4. .x * _local9));
_local9 = ((_local4.
.y * _local8) + (_local4. .y * _local9));
_local8 = _local7;
var _local10:Number = (_local2.
.c.x + _local5);
var _local11:Number = (_local2.
.c.y + _local6);
var _local12:Number = (_local3.
.c.x + _local8);
var _local13:Number = (_local3.
.c.y + _local9);
var _local14:Number = (
.
.position.x +
.x);
var _local15:Number = (
.
.position.y +
.y);
var _local16:Number = (
.
.position.x +
.x);
var _local17:Number = (
.
.position.y +
.y);
.Set((_local10 - _local14), (_local11 - _local15));
.Set((_local12 - _local16), (_local13 - _local17));
var _local18:Number =
.Length();
var _local19:Number =
.Length();
if (_local18 > b2Settings.b2_linearSlop){
.Multiply((1 / _local18));
} else {
. ();
};
if (_local19 > b2Settings.b2_linearSlop){
.Multiply((1 / _local19));
} else {
. ();
};
var _local20:Number = ((
- _local18) - (
* _local19));
if (_local20 > 0){
= e_inactiveLimit;
= 0;
} else {
= e_atUpperLimit;
= 0;
};
if (_local18 <
){
= e_inactiveLimit;
= 0;
} else {
= e_atUpperLimit;
= 0;
};
if (_local19 <
){
= e_inactiveLimit;
= 0;
} else {
= e_atUpperLimit;
= 0;
};
var _local21:Number = ((_local5 *
.y) - (_local6 *
.x));
var _local22:Number = ((_local8 *
.y) - (_local9 *
.x));
= (_local2. + ((_local2. * _local21) * _local21));
= (_local3. + ((_local3. * _local22) * _local22));
= (
+ ((
*
) *
));
= (1 /
);
= (1 /
);
= (1 /
);
if (_arg1.
){
_local23 = ((_arg1. * (-( ) -
)) *
.x);
_local24 = ((_arg1. * (-( ) -
)) *
.y);
_local25 = ((_arg1. * ((-(
) * ) -
)) *
.x);
_local26 = ((_arg1. * ((-(
) * ) -
)) *
.y);
_local2. .x = (_local2. .x + (_local2. * _local23));
_local2. .y = (_local2. .y + (_local2. * _local24));
_local2. = (_local2. + (_local2. * ((_local5 * _local24) - (_local6 * _local23))));
_local3. .x = (_local3. .x + (_local3. * _local25));
_local3. .y = (_local3. .y + (_local3. * _local26));
_local3. = (_local3. + (_local3. * ((_local8 * _local26) - (_local9 * _local25))));
} else {
= 0;
= 0;
= 0;
};
}
override public function
(_arg1:b2TimeStep):void{
var _local4:b2Mat22;
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 _local2:b2Body =
;
var _local3:b2Body =
;
_local4 = _local2.
.R;
var _local5:Number = (
.x - _local2.
. .x);
var _local6:Number = (
.y - _local2.
. .y);
var _local7:Number = ((_local4.
.x * _local5) + (_local4. .x * _local6));
_local6 = ((_local4.
.y * _local5) + (_local4. .y * _local6));
_local5 = _local7;
_local4 = _local3.
.R;
var _local8:Number = (
.x - _local3.
. .x);
var _local9:Number = (
.y - _local3.
. .y);
_local7 = ((_local4.
.x * _local8) + (_local4. .x * _local9));
_local9 = ((_local4.
.y * _local8) + (_local4. .y * _local9));
_local8 = _local7;
if ( == e_atUpperLimit){
_local10 = (_local2. .x + (-(_local2. ) * _local6));
_local11 = (_local2. .y + (_local2. * _local5));
_local12 = (_local3. .x + (-(_local3. ) * _local9));
_local13 = (_local3. .y + (_local3. * _local8));
_local18 = (-(((
.x * _local10) + (
.y * _local11))) - (
* ((
.x * _local12) + (
.y * _local13))));
_local19 = ((-(_arg1.
) *
) * _local18);
_local20 = ;
= b2Math.
(0, ( + _local19));
_local19 = ( - _local20);
_local14 = ((-(_arg1. ) * _local19) *
.x);
_local15 = ((-(_arg1. ) * _local19) *
.y);
_local16 = (((-(_arg1. ) *
) * _local19) *
.x);
_local17 = (((-(_arg1. ) *
) * _local19) *
.y);
_local2. .x = (_local2. .x + (_local2. * _local14));
_local2. .y = (_local2. .y + (_local2. * _local15));
_local2. = (_local2. + (_local2. * ((_local5 * _local15) - (_local6 * _local14))));
_local3. .x = (_local3. .x + (_local3. * _local16));
_local3. .y = (_local3. .y + (_local3. * _local17));
_local3. = (_local3. + (_local3. * ((_local8 * _local17) - (_local9 * _local16))));
};
if ( == e_atUpperLimit){
_local10 = (_local2. .x + (-(_local2. ) * _local6));
_local11 = (_local2. .y + (_local2. * _local5));
_local18 = -(((
.x * _local10) + (
.y * _local11)));
_local19 = ((-(_arg1.
) *
) * _local18);
_local20 =
;
= b2Math.
(0, (
+ _local19));
_local19 = (
- _local20);
_local14 = ((-(_arg1. ) * _local19) *
.x);
_local15 = ((-(_arg1. ) * _local19) *
.y);
_local2. .x = (_local2. .x + (_local2. * _local14));
_local2. .y = (_local2. .y + (_local2. * _local15));
_local2. = (_local2. + (_local2. * ((_local5 * _local15) - (_local6 * _local14))));
};
if ( == e_atUpperLimit){
_local12 = (_local3. .x + (-(_local3. ) * _local9));
_local13 = (_local3. .y + (_local3. * _local8));
_local18 = -(((
.x * _local12) + (
.y * _local13)));
_local19 = ((-(_arg1.
) *
) * _local18);
_local20 =
;
= b2Math.
(0, (
+ _local19));
_local19 = (
- _local20);
_local16 = ((-(_arg1. ) * _local19) *
.x);
_local17 = ((-(_arg1. ) * _local19) *
.y);
_local3. .x = (_local3. .x + (_local3. * _local16));
_local3. .y = (_local3. .y + (_local3. * _local17));
_local3. = (_local3. + (_local3. * ((_local8 * _local17) - (_local9 * _local16))));
};
}
override public function ():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 _local21:Number;
var _local22:Number;
var _local1:b2Body =
;
var _local2:b2Body =
;
var _local4:Number = (
.
.position.x +
.x);
var _local5:Number = (
.
.position.y +
.y);
var _local6:Number = (
.
.position.x +
.x);
var _local7:Number = (
.
.position.y +
.y);
var _local23:Number = 0;
if ( == e_atUpperLimit){
_local3 = _local1.
.R;
_local8 = (
.x - _local1.
. .x);
_local9 = (
.y - _local1.
. .y);
_local22 = ((_local3.
.x * _local8) + (_local3. .x * _local9));
_local9 = ((_local3.
.y * _local8) + (_local3. .y * _local9));
_local8 = _local22;
_local3 = _local2.
.R;
_local10 = (
.x - _local2.
. .x);
_local11 = (
.y - _local2.
. .y);
_local22 = ((_local3.
.x * _local10) + (_local3. .x * _local11));
_local11 = ((_local3.
.y * _local10) + (_local3. .y * _local11));
_local10 = _local22;
_local12 = (_local1.
.c.x + _local8);
_local13 = (_local1.
.c.y + _local9);
_local14 = (_local2.
.c.x + _local10);
_local15 = (_local2.
.c.y + _local11);
.Set((_local12 - _local4), (_local13 - _local5));
.Set((_local14 - _local6), (_local15 - _local7));
_local16 =
.Length();
_local17 =
.Length();
if (_local16 > b2Settings.b2_linearSlop){
.Multiply((1 / _local16));
} else {
. ();
};
if (_local17 > b2Settings.b2_linearSlop){
.Multiply((1 / _local17));
} else {
. ();
};
_local18 = ((
- _local16) - (
* _local17));
_local23 = b2Math.
(_local23, -(_local18));
_local18 = b2Math.
((_local18 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local19 = (-(
) * _local18);
_local20 = ;
= b2Math.
(0, ( + _local19));
_local19 = ( - _local20);
_local12 = (-(_local19) *
.x);
_local13 = (-(_local19) *
.y);
_local14 = ((-(
) * _local19) *
.x);
_local15 = ((-(
) * _local19) *
.y);
_local1.
.c.x = (_local1.
.c.x + (_local1. * _local12));
_local1.
.c.y = (_local1.
.c.y + (_local1. * _local13));
_local1.
.a = (_local1.
.a + (_local1. * ((_local8 * _local13) - (_local9 * _local12))));
_local2.
.c.x = (_local2.
.c.x + (_local2. * _local14));
_local2.
.c.y = (_local2.
.c.y + (_local2. * _local15));
_local2.
.a = (_local2.
.a + (_local2. * ((_local10 * _local15) - (_local11 * _local14))));
_local1.
();
_local2.
();
};
if ( == e_atUpperLimit){
_local3 = _local1.
.R;
_local8 = (
.x - _local1.
. .x);
_local9 = (
.y - _local1.
. .y);
_local22 = ((_local3.
.x * _local8) + (_local3. .x * _local9));
_local9 = ((_local3.
.y * _local8) + (_local3. .y * _local9));
_local8 = _local22;
_local12 = (_local1.
.c.x + _local8);
_local13 = (_local1.
.c.y + _local9);
.Set((_local12 - _local4), (_local13 - _local5));
_local16 =
.Length();
if (_local16 > b2Settings.b2_linearSlop){
.x = (
.x * (1 / _local16));
.y = (
.y * (1 / _local16));
} else {
. ();
};
_local18 = (
- _local16);
_local23 = b2Math.
(_local23, -(_local18));
_local18 = b2Math.
((_local18 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local19 = (-(
) * _local18);
_local21 = ;
= b2Math.
(0, ( + _local19));
_local19 = ( - _local21);
_local12 = (-(_local19) *
.x);
_local13 = (-(_local19) *
.y);
_local1.
.c.x = (_local1.
.c.x + (_local1. * _local12));
_local1.
.c.y = (_local1.
.c.y + (_local1. * _local13));
_local1.
.a = (_local1.
.a + (_local1. * ((_local8 * _local13) - (_local9 * _local12))));
_local1.
();
};
if ( == e_atUpperLimit){
_local3 = _local2.
.R;
_local10 = (
.x - _local2.
. .x);
_local11 = (
.y - _local2.
. .y);
_local22 = ((_local3.
.x * _local10) + (_local3. .x * _local11));
_local11 = ((_local3.
.y * _local10) + (_local3. .y * _local11));
_local10 = _local22;
_local14 = (_local2.
.c.x + _local10);
_local15 = (_local2.
.c.y + _local11);
.Set((_local14 - _local6), (_local15 - _local7));
_local17 =
.Length();
if (_local17 > b2Settings.b2_linearSlop){
.x = (
.x * (1 / _local17));
.y = (
.y * (1 / _local17));
} else {
. ();
};
_local18 = (
- _local17);
_local23 = b2Math.
(_local23, -(_local18));
_local18 = b2Math.
((_local18 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local19 = (-(
) * _local18);
_local21 = ;
= b2Math.
(0, ( + _local19));
_local19 = ( - _local21);
_local14 = (-(_local19) *
.x);
_local15 = (-(_local19) *
.y);
_local2.
.c.x = (_local2.
.c.x + (_local2. * _local14));
_local2.
.c.y = (_local2.
.c.y + (_local2. * _local15));
_local2.
.a = (_local2.
.a + (_local2. * ((_local10 * _local15) - (_local11 * _local14))));
_local2.
();
};
return ((_local23 < b2Settings.b2_linearSlop));
}
}
}//package Box2D.Dynamics.Joints
Section 61
//b2PulleyJointDef (Box2D.Dynamics.Joints.b2PulleyJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2PulleyJointDef extends b2JointDef {
public var :b2Vec2;
public var :b2Vec2;
public var :b2Vec2;
public var :b2Vec2;
public var
:Number;
public var :Number;
public var :Number;
public var :Number;
public var :Number;
public function b2PulleyJointDef(){
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
super();
type = b2Joint.e_pulleyJoint;
.Set(-1, 1);
.Set(1, 1);
.Set(-1, 0);
.Set(1, 0);
= 0;
= 0;
= 0;
= 0;
= 1;
= true;
}
public function (_arg1:b2Body, _arg2:b2Body, _arg3:b2Vec2, _arg4:b2Vec2, _arg5:b2Vec2, _arg6:b2Vec2, _arg7:Number):void{
= _arg1;
= _arg2;
. (_arg3);
. (_arg4);
= . (_arg5);
= . (_arg6);
var _local8:Number = (_arg5.x - _arg3.x);
var _local9:Number = (_arg5.y - _arg3.y);
= Math.sqrt(((_local8 * _local8) + (_local9 * _local9)));
var _local10:Number = (_arg6.x - _arg4.x);
var _local11:Number = (_arg6.y - _arg4.y);
= Math.sqrt(((_local10 * _local10) + (_local11 * _local11)));
= _arg7;
var _local12:Number = (
+ ( * ));
= (_local12 - ( * b2PulleyJoint.b2_minPulleyLength));
= ((_local12 - b2PulleyJoint.b2_minPulleyLength) / );
}
}
}//package Box2D.Dynamics.Joints
Section 62
//b2RevoluteJoint (Box2D.Dynamics.Joints.b2RevoluteJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Dynamics.*;
public class b2RevoluteJoint extends b2Joint {
private var K:b2Mat22;
private var :b2Mat22;
private var :b2Mat22;
private var
:b2Mat22;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:b2Vec2;
public var
:Number;
public var
:Number;
public var
:Number;
public var
:b2Mat22;
public var
:Number;
public var
:Boolean;
public var
:Number;
public var
:Number;
public var
:Boolean;
public var
:Number;
public var :Number;
public var :Number;
public var :int;
public static var
:b2Vec2 = new b2Vec2();
public function b2RevoluteJoint(_arg1:b2RevoluteJointDef){
K = new b2Mat22();
= new b2Mat22();
= new b2Mat22();
= new b2Mat22();
= new b2Vec2();
= new b2Vec2();
= new b2Vec2();
= new b2Mat22();
super(_arg1);
. (_arg1. );
. (_arg1. );
= _arg1. ;
.Set(0, 0);
= 0;
= 0;
= 0;
= _arg1. ;
= _arg1.
;
= _arg1. ;
= _arg1. ;
= _arg1. ;
= _arg1. ;
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
return (
.
(
));
}
override public function ():b2Vec2{
return (
);
}
override public function ():Number{
return (
);
}
public function ():Number{
return (((
.
.a -
.
.a) -
));
}
public function ():Number{
return ((
. -
. ));
}
public function
():Boolean{
return (
);
}
public function (_arg1:Boolean):void{
= _arg1;
}
public function ():Number{
return ( );
}
public function
():Number{
return ( );
}
public function (_arg1:Number, _arg2:Number):void{
= _arg1;
= _arg2;
}
public function ():Boolean{
return (
);
}
public function (_arg1:Boolean):void{
= _arg1;
}
public function
(_arg1:Number):void{
= _arg1;
}
public function
():Number{
return (
);
}
public function
(_arg1:Number):void{
= _arg1;
}
public function
():Number{
return (
);
}
override public function (_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2Mat22;
var _local5:Number;
var _local7:Number;
var _local14:Number;
_local2 =
;
_local3 =
;
_local4 = _local2.
.R;
var _local6:Number = (
.x - _local2.
. .x);
_local7 = (
.y - _local2.
. .y);
_local5 = ((_local4.
.x * _local6) + (_local4. .x * _local7));
_local7 = ((_local4.
.y * _local6) + (_local4. .y * _local7));
_local6 = _local5;
_local4 = _local3.
.R;
var _local8:Number = (
.x - _local3.
. .x);
var _local9:Number = (
.y - _local3.
. .y);
_local5 = ((_local4.
.x * _local8) + (_local4. .x * _local9));
_local9 = ((_local4.
.y * _local8) + (_local4. .y * _local9));
_local8 = _local5;
var _local10:Number = _local2. ;
var _local11:Number = _local3. ;
var _local12:Number = _local2. ;
var _local13:Number = _local3. ;
.
.x = (_local10 + _local11);
. .x = 0;
.
.y = 0;
. .y = (_local10 + _local11);
.
.x = ((_local12 * _local7) * _local7);
. .x = ((-(_local12) * _local6) * _local7);
.
.y = ((-(_local12) * _local6) * _local7);
. .y = ((_local12 * _local6) * _local6);
.
.x = ((_local13 * _local9) * _local9);
. .x = ((-(_local13) * _local8) * _local9);
.
.y = ((-(_local13) * _local8) * _local9);
. .y = ((_local13 * _local8) * _local8);
K. ( );
K.
( );
K.
(
);
K.Invert(
);
= (1 / (_local12 + _local13));
if (
== false){
= 0;
};
if (
){
_local14 = ((_local3.
.a - _local2.
.a) -
);
if (b2Math.
(( - )) < (2 * b2Settings.b2_angularSlop)){
= e_equalLimits;
} else {
if (_local14 <= ){
if ( != e_atLowerLimit){
= 0;
};
= e_atLowerLimit;
} else {
if (_local14 >= ){
if ( != e_atUpperLimit){
= 0;
};
= e_atUpperLimit;
} else {
= e_inactiveLimit;
= 0;
};
};
};
} else {
= 0;
};
if (_arg1.
){
_local2. .x = (_local2. .x - ((_arg1. * _local10) *
.x));
_local2. .y = (_local2. .y - ((_arg1. * _local10) *
.y));
_local2. = (_local2. - ((_arg1. * _local12) * ((((_local6 *
.y) - (_local7 *
.x)) +
) +
)));
_local3. .x = (_local3. .x + ((_arg1. * _local11) *
.x));
_local3. .y = (_local3. .y + ((_arg1. * _local11) *
.y));
_local3. = (_local3. + ((_arg1. * _local13) * ((((_local8 *
.y) - (_local9 *
.x)) +
) +
)));
} else {
. ();
= 0;
= 0;
};
= 0;
}
override public function
(_arg1:b2TimeStep):void{
var _local4:b2Mat22;
var _local5:Number;
var _local10:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local2:b2Body =
;
var _local3:b2Body =
;
_local4 = _local2.
.R;
var _local6:Number = (
.x - _local2.
. .x);
var _local7:Number = (
.y - _local2.
. .y);
_local5 = ((_local4.
.x * _local6) + (_local4. .x * _local7));
_local7 = ((_local4.
.y * _local6) + (_local4. .y * _local7));
_local6 = _local5;
_local4 = _local3.
.R;
var _local8:Number = (
.x - _local3.
. .x);
var _local9:Number = (
.y - _local3.
. .y);
_local5 = ((_local4.
.x * _local8) + (_local4. .x * _local9));
_local9 = ((_local4.
.y * _local8) + (_local4. .y * _local9));
_local8 = _local5;
var _local11:Number = (((_local3. .x + (-(_local3. ) * _local9)) - _local2. .x) - (-(_local2. ) * _local7));
var _local12:Number = (((_local3. .y + (_local3. * _local8)) - _local2. .y) - (_local2. * _local6));
var _local13:Number = (-(_arg1.
) * ((
.
.x * _local11) + (
. .x * _local12)));
var _local14:Number = (-(_arg1.
) * ((
.
.y * _local11) + (
. .y * _local12)));
.x = (
.x + _local13);
.y = (
.y + _local14);
var _local15:Number = (_arg1. * _local13);
_local16 = (_arg1. * _local14);
_local2. .x = (_local2. .x - (_local2. * _local15));
_local2. .y = (_local2. .y - (_local2. * _local16));
_local2. = (_local2. - (_local2. * ((_local6 * _local16) - (_local7 * _local15))));
_local3. .x = (_local3. .x + (_local3. * _local15));
_local3. .y = (_local3. .y + (_local3. * _local16));
_local3. = (_local3. + (_local3. * ((_local8 * _local16) - (_local9 * _local15))));
if (((
) && (!(( == e_equalLimits))))){
_local17 = ((_local3. - _local2. ) -
);
_local18 = ((-(_arg1.
) *
) * _local17);
_local19 =
;
= b2Math.
((
+ _local18), -(
),
);
_local18 = (
- _local19);
_local2. = (_local2. - ((_local2. * _arg1. ) * _local18));
_local3. = (_local3. + ((_local3. * _arg1. ) * _local18));
};
if (((
) && (!(( == e_inactiveLimit))))){
_local20 = (_local3. - _local2. );
_local21 = ((-(_arg1.
) *
) * _local20);
if ( == e_equalLimits){
= (
+ _local21);
} else {
if ( == e_atLowerLimit){
_local10 =
;
= b2Math.
((
+ _local21), 0);
_local21 = (
- _local10);
} else {
if ( == e_atUpperLimit){
_local10 =
;
= b2Math.
((
+ _local21), 0);
_local21 = (
- _local10);
};
};
};
_local2. = (_local2. - ((_local2. * _arg1. ) * _local21));
_local3. = (_local3. + ((_local3. * _arg1. ) * _local21));
};
}
override public function ():Boolean{
var _local1:Number;
var _local2:Number;
var _local6:b2Mat22;
var _local25:Number;
var _local26:Number;
var _local3:b2Body =
;
var _local4:b2Body =
;
var _local5:Number = 0;
_local6 = _local3.
.R;
var _local7:Number = (
.x - _local3.
. .x);
var _local8:Number = (
.y - _local3.
. .y);
var _local9:Number = ((_local6.
.x * _local7) + (_local6. .x * _local8));
_local8 = ((_local6.
.y * _local7) + (_local6. .y * _local8));
_local7 = _local9;
_local6 = _local4.
.R;
var _local10:Number = (
.x - _local4.
. .x);
var _local11:Number = (
.y - _local4.
. .y);
_local9 = ((_local6.
.x * _local10) + (_local6. .x * _local11));
_local11 = ((_local6.
.y * _local10) + (_local6. .y * _local11));
_local10 = _local9;
var _local12:Number = (_local3.
.c.x + _local7);
var _local13:Number = (_local3.
.c.y + _local8);
var _local14:Number = (_local4.
.c.x + _local10);
var _local15:Number = (_local4.
.c.y + _local11);
var _local16:Number = (_local14 - _local12);
var _local17:Number = (_local15 - _local13);
_local5 = Math.sqrt(((_local16 * _local16) + (_local17 * _local17)));
var _local18:Number = _local3. ;
var _local19:Number = _local4. ;
var _local20:Number = _local3. ;
var _local21:Number = _local4. ;
.
.x = (_local18 + _local19);
. .x = 0;
.
.y = 0;
. .y = (_local18 + _local19);
.
.x = ((_local20 * _local8) * _local8);
. .x = ((-(_local20) * _local7) * _local8);
.
.y = ((-(_local20) * _local7) * _local8);
. .y = ((_local20 * _local7) * _local7);
.
.x = ((_local21 * _local11) * _local11);
. .x = ((-(_local21) * _local10) * _local11);
.
.y = ((-(_local21) * _local10) * _local11);
. .y = ((_local21 * _local10) * _local10);
K. ( );
K.
( );
K.
(
);
K. (
, -(_local16), -(_local17));
var _local22:Number =
.x;
var _local23:Number =
.y;
_local3.
.c.x = (_local3.
.c.x - (_local3. * _local22));
_local3.
.c.y = (_local3.
.c.y - (_local3. * _local23));
_local3.
.a = (_local3.
.a - (_local3. * ((_local7 * _local23) - (_local8 * _local22))));
_local4.
.c.x = (_local4.
.c.x + (_local4. * _local22));
_local4.
.c.y = (_local4.
.c.y + (_local4. * _local23));
_local4.
.a = (_local4.
.a + (_local4. * ((_local10 * _local23) - (_local11 * _local22))));
_local3.
();
_local4.
();
var _local24:Number = 0;
if (((
) && (!(( == e_inactiveLimit))))){
_local25 = ((_local4.
.a - _local3.
.a) -
);
_local26 = 0;
if ( == e_equalLimits){
_local2 = b2Math.
(_local25, -(b2Settings.b2_maxAngularCorrection), b2Settings.b2_maxAngularCorrection);
_local26 = (-(
) * _local2);
_local24 = b2Math.
(_local2);
} else {
if ( == e_atLowerLimit){
_local2 = (_local25 - );
_local24 = b2Math.
(0, -(_local2));
_local2 = b2Math.
((_local2 + b2Settings.b2_angularSlop), -(b2Settings.b2_maxAngularCorrection), 0);
_local26 = (-(
) * _local2);
_local1 =
;
= b2Math.
((
+ _local26), 0);
_local26 = (
- _local1);
} else {
if ( == e_atUpperLimit){
_local2 = (_local25 - );
_local24 = b2Math.
(0, _local2);
_local2 = b2Math.
((_local2 - b2Settings.b2_angularSlop), 0, b2Settings.b2_maxAngularCorrection);
_local26 = (-(
) * _local2);
_local1 =
;
= b2Math.
((
+ _local26), 0);
_local26 = (
- _local1);
};
};
};
_local3.
.a = (_local3.
.a - (_local3. * _local26));
_local4.
.a = (_local4.
.a + (_local4. * _local26));
_local3.
();
_local4.
();
};
return ((((_local5 <= b2Settings.b2_linearSlop)) && ((_local24 <= b2Settings.b2_angularSlop))));
}
}
}//package Box2D.Dynamics.Joints
Section 63
//b2RevoluteJointDef (Box2D.Dynamics.Joints.b2RevoluteJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2RevoluteJointDef extends b2JointDef {
public var :b2Vec2;
public var :b2Vec2;
public var :Number;
public var :Boolean;
public var :Number;
public var
:Number;
public var :Boolean;
public var :Number;
public var :Number;
public function b2RevoluteJointDef(){
= new b2Vec2();
= new b2Vec2();
super();
type = b2Joint.e_revoluteJoint;
.Set(0, 0);
.Set(0, 0);
= 0;
= 0;
= 0;
= 0;
= 0;
= false;
= false;
}
public function (_arg1:b2Body, _arg2:b2Body, _arg3:b2Vec2):void{
= _arg1;
= _arg2;
= . (_arg3);
= . (_arg3);
= ( . () - . ());
}
}
}//package Box2D.Dynamics.Joints
Section 64
//b2Body (Box2D.Dynamics.b2Body)
package Box2D.Dynamics {
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
import Box2D.Dynamics.Contacts.*;
public class b2Body {
public var :uint;
public var :int;
public var
:b2XForm;
public var
:b2Sweep;
public var :b2Vec2;
public var :Number;
public var :b2Vec2;
public var :Number;
public var :b2World;
public var
:b2Body;
public var
:b2Body;
public var :b2Shape;
public var :int;
public var :b2JointEdge;
public var :b2ContactEdge;
public var :Number;
public var :Number;
public var
:Number;
public var :Number;
public var :Number;
public var
:Number;
public var :Number;
public var
;
private static var :b2MassData = new b2MassData();
private static var :b2XForm = new b2XForm();
public static var :uint = 2;
public static var
:uint = 4;
public static var :uint = 8;
public static var :uint = 16;
public static var :uint = 32;
public static var :uint = 64;
public static var :uint = 1;
public static var :uint = 2;
public static var :uint = 3;
public function b2Body(_arg1:b2BodyDef, _arg2:b2World){
= new b2XForm();
= new b2Sweep();
= new b2Vec2();
= new b2Vec2();
super();
= 0;
if (_arg1. ){
= ( | );
};
if (_arg1. ){
= ( | );
};
if (_arg1. ){
= ( | );
};
if (_arg1. ){
= ( | );
};
= _arg2;
.position. (_arg1.position);
.R.Set(_arg1.angle);
. . (_arg1.
.center);
. = 1;
. = (
.a = _arg1.angle);
var _local3:b2Mat22 =
.R;
var _local4:b2Vec2 =
. ;
.c.x = ((_local3.
.x * _local4.x) + (_local3. .x * _local4.y));
.c.y = ((_local3.
.y * _local4.x) + (_local3. .y * _local4.y));
.c.x = (
.c.x +
.position.x);
.c.y = (
.c.y +
.position.y);
. . (
.c);
= null;
= null;
= null;
= null;
= _arg1. ;
= _arg1.
;
.Set(0, 0);
= 0;
. ();
= 0;
= 0;
= 0;
= 0;
= 0;
= _arg1.
. ;
if ( > 0){
= (1 / );
};
if (( & b2Body. ) == 0){
= _arg1.
.I;
};
if (
> 0){
= (1 /
);
};
if (((( == 0)) && (( == 0)))){
= ;
} else {
= ;
};
= _arg1. ;
= null;
= 0;
}
public function (_arg1:b2ShapeDef):b2Shape{
var _local2:b2Shape;
if ( . == true){
return (null);
};
_local2 = b2Shape. (_arg1, . );
_local2.
= ;
= _local2;
++;
_local2. = this;
_local2. ( . ,
);
_local2.
(
. );
return (_local2);
}
public function (_arg1:b2Shape):void{
if ( . == true){
return;
};
_arg1. ( . );
var _local2:b2Shape = ;
var _local3:b2Shape;
var _local4:Boolean;
while (_local2 != null) {
if (_local2 == _arg1){
if (_local3){
_local3.
= _arg1.
;
} else {
= _arg1.
;
};
_local4 = true;
break;
};
_local3 = _local2;
_local2 = _local2.
;
};
_arg1. = null;
_arg1.
= null;
--;
b2Shape. (_arg1, . );
}
public function
(_arg1:b2MassData):void{
var _local2:b2Shape;
if ( . == true){
return;
};
= 0;
= 0;
= 0;
= _arg1. ;
if ( > 0){
= (1 / );
};
if (( & b2Body. ) == 0){
= _arg1.I;
};
if (
> 0){
= (1 /
);
};
. . (_arg1.center);
var _local3:b2Mat22 =
.R;
var _local4:b2Vec2 =
. ;
.c.x = ((_local3.
.x * _local4.x) + (_local3. .x * _local4.y));
.c.y = ((_local3.
.y * _local4.x) + (_local3. .y * _local4.y));
.c.x = (
.c.x +
.position.x);
.c.y = (
.c.y +
.position.y);
. . (
.c);
_local2 = ;
while (_local2) {
_local2.
(
. );
_local2 = _local2.
;
};
var _local5:int = ;
if (((( == 0)) && (( == 0)))){
= ;
} else {
= ;
};
if (_local5 != ){
_local2 = ;
while (_local2) {
_local2. ( . ,
);
_local2 = _local2.
;
};
};
}
public function ():void{
var _local1:b2Shape;
if ( . == true){
return;
};
= 0;
= 0;
= 0;
= 0;
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:b2MassData = ;
_local1 = ;
while (_local1) {
_local1. (_local4);
= ( + _local4. );
_local2 = (_local2 + (_local4. * _local4.center.x));
_local3 = (_local3 + (_local4. * _local4.center.y));
= (
+ _local4.I);
_local1 = _local1.
;
};
if ( > 0){
= (1 / );
_local2 = (_local2 * );
_local3 = (_local3 * );
};
if ((((
> 0)) && ((( & ) == 0)))){
= (
- ( * ((_local2 * _local2) + (_local3 * _local3))));
= (1 /
);
} else {
= 0;
= 0;
};
. .Set(_local2, _local3);
var _local5:b2Mat22 =
.R;
var _local6:b2Vec2 =
. ;
.c.x = ((_local5.
.x * _local6.x) + (_local5. .x * _local6.y));
.c.y = ((_local5.
.y * _local6.x) + (_local5. .y * _local6.y));
.c.x = (
.c.x +
.position.x);
.c.y = (
.c.y +
.position.y);
. . (
.c);
_local1 = ;
while (_local1) {
_local1.
(
. );
_local1 = _local1.
;
};
var _local7:int = ;
if (((( == 0)) && (( == 0)))){
= ;
} else {
= ;
};
if (_local7 != ){
_local1 = ;
while (_local1) {
_local1. ( . ,
);
_local1 = _local1.
;
};
};
}
public function (_arg1:b2Vec2, _arg2:Number):Boolean{
var _local3:b2Shape;
var _local7:Boolean;
if ( . == true){
return (true);
};
if (
()){
return (false);
};
.R.Set(_arg2);
.position. (_arg1);
var _local4:b2Mat22 =
.R;
var _local5:b2Vec2 =
. ;
.c.x = ((_local4.
.x * _local5.x) + (_local4. .x * _local5.y));
.c.y = ((_local4.
.y * _local5.x) + (_local4. .y * _local5.y));
.c.x = (
.c.x +
.position.x);
.c.y = (
.c.y +
.position.y);
. . (
.c);
. = (
.a = _arg2);
var _local6:Boolean;
_local3 = ;
while (_local3) {
_local7 = _local3. ( . ,
,
);
if (_local7 == false){
_local6 = true;
break;
};
_local3 = _local3.
;
};
if (_local6 == true){
= ( | );
. ();
= 0;
_local3 = ;
while (_local3) {
_local3. ( . );
_local3 = _local3.
;
};
return (false);
};
. .Commit();
return (true);
}
public function
():b2XForm{
return (
);
}
public function ():b2Vec2{
return (
.position);
}
public function ():Number{
return (
.a);
}
public function ():b2Vec2{
return (
.c);
}
public function ():b2Vec2{
return (
. );
}
public function (_arg1:b2Vec2):void{
. (_arg1);
}
public function ():b2Vec2{
return ( );
}
public function (_arg1:Number):void{
= _arg1;
}
public function ():Number{
return ( );
}
public function (_arg1:b2Vec2, _arg2:b2Vec2):void{
if (
()){
();
};
.x = ( .x + _arg1.x);
.y = ( .y + _arg1.y);
= ( + (((_arg2.x -
.c.x) * _arg1.y) - ((_arg2.y -
.c.y) * _arg1.x)));
}
public function (_arg1:Number):void{
if (
()){
();
};
= ( + _arg1);
}
public function (_arg1:b2Vec2, _arg2:b2Vec2):void{
if (
()){
();
};
.x = ( .x + ( * _arg1.x));
.y = ( .y + ( * _arg1.y));
= ( + ( * (((_arg2.x -
.c.x) * _arg1.y) - ((_arg2.y -
.c.y) * _arg1.x))));
}
public function ():Number{
return ( );
}
public function ():Number{
return (
);
}
public function
(_arg1:b2Vec2):b2Vec2{
var _local2:b2Mat22 =
.R;
var _local3:b2Vec2 = new b2Vec2(((_local2.
.x * _arg1.x) + (_local2. .x * _arg1.y)), ((_local2.
.y * _arg1.x) + (_local2. .y * _arg1.y)));
_local3.x = (_local3.x +
.position.x);
_local3.y = (_local3.y +
.position.y);
return (_local3);
}
public function (_arg1:b2Vec2):b2Vec2{
return (b2Math.
(
.R, _arg1));
}
public function (_arg1:b2Vec2):b2Vec2{
return (b2Math.
(
, _arg1));
}
public function
(_arg1:b2Vec2):b2Vec2{
return (b2Math. (
.R, _arg1));
}
public function (_arg1:b2Vec2):b2Vec2{
return (new b2Vec2(( .x + ( * (_arg1.y -
.c.y))), ( .x - ( * (_arg1.x -
.c.x)))));
}
public function (_arg1:b2Vec2):b2Vec2{
var _local2:b2Mat22 =
.R;
var _local3:b2Vec2 = new b2Vec2(((_local2.
.x * _arg1.x) + (_local2. .x * _arg1.y)), ((_local2.
.y * _arg1.x) + (_local2. .y * _arg1.y)));
_local3.x = (_local3.x +
.position.x);
_local3.y = (_local3.y +
.position.y);
return (new b2Vec2(( .x + ( * (_local3.y -
.c.y))), ( .x - ( * (_local3.x -
.c.x)))));
}
public function ():Boolean{
return ((( & ) == ));
}
public function
(_arg1:Boolean):void{
if (_arg1){
= ( | );
} else {
= ( & ~( ));
};
}
public function
():Boolean{
return (( == ));
}
public function
():Boolean{
return (( == ));
}
public function
():Boolean{
return ((( & ) == ));
}
public function
():Boolean{
return ((( & ) == ));
}
public function
(_arg1:Boolean):void{
if (_arg1){
= ( | );
} else {
= ( & ~( ));
();
};
}
public function
():void{
= ( & ~( ));
= 0;
}
public function
():void{
= ( | );
= 0;
. ();
= 0;
. ();
= 0;
}
public function
():b2Shape{
return ( );
}
public function ():b2JointEdge{
return ( );
}
public function ():b2Body{
return (
);
}
public function
(){
return (
);
}
public function (_arg1):void{
= _arg1;
}
public function
():b2World{
return ( );
}
public function
():Boolean{
var _local4:b2Shape;
var _local1:b2XForm = ;
_local1.R.Set(
. );
var _local2:b2Mat22 = _local1.R;
var _local3:b2Vec2 =
. ;
_local1.position.x = (
. .x - ((_local2.
.x * _local3.x) + (_local2. .x * _local3.y)));
_local1.position.y = (
. .y - ((_local2.
.y * _local3.x) + (_local2. .y * _local3.y)));
var _local5:Boolean;
_local4 = ;
while (_local4) {
_local5 = _local4. ( . , _local1,
);
if (_local5 == false){
break;
};
_local4 = _local4.
;
};
if (_local5 == false){
= ( | );
. ();
= 0;
_local4 = ;
while (_local4) {
_local4. ( . );
_local4 = _local4.
;
};
return (false);
};
return (true);
}
public function
():void{
.R.Set(
.a);
var _local1:b2Mat22 =
.R;
var _local2:b2Vec2 =
. ;
.position.x = (
.c.x - ((_local1.
.x * _local2.x) + (_local1. .x * _local2.y)));
.position.y = (
.c.y - ((_local1.
.y * _local2.x) + (_local1. .y * _local2.y)));
}
public function
(_arg1:b2Body):Boolean{
var _local2:b2JointEdge = ;
while (_local2) {
if (_local2. == _arg1){
return ((_local2.joint.
== false));
};
_local2 = _local2. ;
};
return (false);
}
public function
(_arg1:Number):void{
.
(_arg1);
.c. (
. );
.a =
. ;
();
}
}
}//package Box2D.Dynamics
Section 65
//b2BodyDef (Box2D.Dynamics.b2BodyDef)
package Box2D.Dynamics {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
public class b2BodyDef {
public var
:b2MassData;
public var ;
public var position:b2Vec2;
public var angle:Number;
public var :Number;
public var
:Number;
public var :Boolean;
public var :Boolean;
public var :Boolean;
public var :Boolean;
public function b2BodyDef(){
= new b2MassData();
position = new b2Vec2();
super();
.center. ();
. = 0;
.I = 0;
= null;
position.Set(0, 0);
angle = 0;
= 0;
= 0;
= true;
= false;
= false;
= false;
}
}
}//package Box2D.Dynamics
Section 66
//b2BoundaryListener (Box2D.Dynamics.b2BoundaryListener)
package Box2D.Dynamics {
public class b2BoundaryListener {
public function (_arg1:b2Body):void{
}
}
}//package Box2D.Dynamics
Section 67
//b2ContactFilter (Box2D.Dynamics.b2ContactFilter)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
public class b2ContactFilter {
public static var :b2ContactFilter = new (b2ContactFilter);
;
public function (_arg1:b2Shape, _arg2:b2Shape):Boolean{
var _local3:b2FilterData = _arg1. ();
var _local4:b2FilterData = _arg2. ();
if ((((_local3.
== _local4.
)) && (!((_local3.
== 0))))){
return ((_local3.
> 0));
};
var _local5:Boolean = ((!(((_local3. & _local4. ) == 0))) && (!(((_local3. & _local4. ) == 0))));
return (_local5);
}
}
}//package Box2D.Dynamics
Section 68
//b2ContactListener (Box2D.Dynamics.b2ContactListener)
package Box2D.Dynamics {
import Box2D.Collision.*;
import Box2D.Dynamics.Contacts.*;
public class b2ContactListener {
public function Add(_arg1:b2ContactPoint):void{
}
public function (_arg1:b2ContactPoint):void{
}
public function (_arg1:b2ContactPoint):void{
}
public function Result(_arg1:b2ContactResult):void{
}
}
}//package Box2D.Dynamics
Section 69
//b2ContactManager (Box2D.Dynamics.b2ContactManager)
package Box2D.Dynamics {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Collision.Shapes.*;
import Box2D.Dynamics.Contacts.*;
public class b2ContactManager extends b2PairCallback {
public var :b2World;
public var :b2NullContact;
public var :Boolean;
private static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2ContactManager(){
= new b2NullContact();
super();
= null;
= false;
}
override public function (_arg1, _arg2){
var _local3:b2Shape = (_arg1 as b2Shape);
var _local4:b2Shape = (_arg2 as b2Shape);
var _local5:b2Body = _local3. ;
var _local6:b2Body = _local4. ;
if (((_local5.
()) && (_local6.
()))){
return ( );
};
if (_local3. == _local4. ){
return ( );
};
if (_local6.
(_local5)){
return ( );
};
if (((!(( . == null))) && (( . . (_local3, _local4) == false)))){
return ( );
};
var _local7:b2Contact = b2Contact. (_local3, _local4, . );
if (_local7 == null){
return ( );
};
_local3 = _local7. ;
_local4 = _local7. ;
_local5 = _local3. ;
_local6 = _local4. ;
_local7.
= null;
_local7.
= . ;
if ( . != null){
. .
= _local7;
};
. = _local7;
_local7.
. = _local7;
_local7.
. = _local6;
_local7.
. = null;
_local7.
. = _local5. ;
if (_local5. != null){
_local5. . = _local7.
;
};
_local5. = _local7.
;
_local7.
. = _local7;
_local7.
. = _local5;
_local7.
. = null;
_local7.
. = _local6. ;
if (_local6. != null){
_local6. . = _local7.
;
};
_local6. = _local7.
;
.
++;
return (_local7);
}
override public function (_arg1, _arg2, _arg3):void{
if (_arg3 == null){
return;
};
var _local4:b2Contact = (_arg3 as b2Contact);
if (_local4 == ){
return;
};
(_local4);
}
public function (_arg1:b2Contact):void{
var _local7:b2Body;
var _local8:b2Body;
var _local9:Array;
var _local10:b2ContactPoint;
var _local11:int;
var _local12:b2Manifold;
var _local13:int;
var _local14:b2ManifoldPoint;
var _local15:b2Vec2;
var _local16:b2Vec2;
var _local2:b2Shape = _arg1. ;
var _local3:b2Shape = _arg1. ;
var _local4:int = _arg1. ;
if ((((_local4 > 0)) && ( . ))){
_local7 = _local2. ;
_local8 = _local3. ;
_local9 = _arg1.
();
_local10 = s_evalCP;
_local10. = _arg1. ;
_local10. = _arg1. ;
_local10. = _arg1. ;
_local10. = _arg1. ;
_local11 = 0;
while (_local11 < _local4) {
_local12 = _local9[_local11];
_local10.normal. (_local12.normal);
_local13 = 0;
while (_local13 < _local12. ) {
_local14 = _local12. [_local13];
_local10.position = _local7.
(_local14. );
_local15 = _local7. (_local14. );
_local16 = _local8. (_local14. );
_local10. .Set((_local16.x - _local15.x), (_local16.y - _local15.y));
_local10. = _local14. ;
_local10.id.
= _local14.id. ;
. . (_local10);
_local13++;
};
_local11++;
};
};
if (_arg1.
){
_arg1.
.
= _arg1.
;
};
if (_arg1.
){
_arg1.
.
= _arg1.
;
};
if (_arg1 == . ){
. = _arg1.
;
};
var _local5:b2Body = _local2. ;
var _local6:b2Body = _local3. ;
if (_arg1.
. ){
_arg1.
. . = _arg1.
. ;
};
if (_arg1.
. ){
_arg1.
. . = _arg1.
. ;
};
if (_arg1.
== _local5. ){
_local5. = _arg1.
. ;
};
if (_arg1.
. ){
_arg1.
. . = _arg1.
. ;
};
if (_arg1.
. ){
_arg1.
. . = _arg1.
. ;
};
if (_arg1.
== _local6. ){
_local6. = _arg1.
. ;
};
b2Contact. (_arg1, . );
.
--;
}
public function ():void{
var _local2:b2Body;
var _local3:b2Body;
var _local1:b2Contact = . ;
while (_local1) {
_local2 = _local1. . ;
_local3 = _local1. . ;
if (((_local2.
()) && (_local3.
()))){
} else {
_local1.Update( . );
};
_local1 = _local1.
;
};
}
}
}//package Box2D.Dynamics
Section 70
//b2DebugDraw (Box2D.Dynamics.b2DebugDraw)
package Box2D.Dynamics {
import flash.display.*;
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Collision.Shapes.*;
import Box2D.Dynamics.Contacts.*;
public class b2DebugDraw {
public var :uint;
public var
:Sprite;
public var :Number;// = 1
public var :Number;// = 1
public var :Number;// = 1
public var :Number;// = 1
public var :Number;// = 1
public static var :uint = 1;
public static var :uint = 2;
public static var :uint = 4;
public static var :uint = 8;
public static var :uint = 16;
public static var :uint = 32;
public static var :uint = 64;
public function b2DebugDraw(){
= 0;
}
public function (_arg1:uint):void{
= _arg1;
}
public function ():uint{
return ( );
}
public function (_arg1:uint):void{
= ( | _arg1);
}
public function (_arg1:uint):void{
= ( & ~(_arg1));
}
public function (_arg1:Array, _arg2:int, _arg3:b2Color):void{
.graphics.lineStyle( , _arg3.color, );
.graphics.moveTo((_arg1[0].x * ), (_arg1[0].y * ));
var _local4 = 1;
while (_local4 < _arg2) {
.graphics.lineTo((_arg1[_local4].x * ), (_arg1[_local4].y * ));
_local4++;
};
.graphics.lineTo((_arg1[0].x * ), (_arg1[0].y * ));
}
public function (_arg1:Array, _arg2:int, _arg3:b2Color):void{
.graphics.lineStyle( , _arg3.color, );
.graphics.moveTo((_arg1[0].x * ), (_arg1[0].y * ));
.graphics.beginFill(_arg3.color, );
var _local4 = 1;
while (_local4 < _arg2) {
.graphics.lineTo((_arg1[_local4].x * ), (_arg1[_local4].y * ));
_local4++;
};
.graphics.lineTo((_arg1[0].x * ), (_arg1[0].y * ));
.graphics.endFill();
}
public function DrawCircle(_arg1:b2Vec2, _arg2:Number, _arg3:b2Color):void{
.graphics.lineStyle( , _arg3.color, );
.graphics.drawCircle((_arg1.x * ), (_arg1.y * ), (_arg2 * ));
}
public function (_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:b2Color):void{
.graphics.lineStyle( , _arg4.color, );
.graphics.moveTo(0, 0);
.graphics.beginFill(_arg4.color, );
.graphics.drawCircle((_arg1.x * ), (_arg1.y * ), (_arg2 * ));
.graphics.endFill();
.graphics.moveTo((_arg1.x * ), (_arg1.y * ));
.graphics.lineTo(((_arg1.x + (_arg3.x * _arg2)) * ), ((_arg1.y + (_arg3.y * _arg2)) * ));
}
public function
(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Color):void{
.graphics.lineStyle( , _arg3.color, );
.graphics.moveTo((_arg1.x * ), (_arg1.y * ));
.graphics.lineTo((_arg2.x * ), (_arg2.y * ));
}
public function (_arg1:b2XForm):void{
.graphics.lineStyle( , 0xFF0000, );
.graphics.moveTo((_arg1.position.x * ), (_arg1.position.y * ));
.graphics.lineTo(((_arg1.position.x + ( * _arg1.R.
.x)) * ), ((_arg1.position.y + ( * _arg1.R.
.y)) * ));
.graphics.lineStyle( , 0xFF00, );
.graphics.moveTo((_arg1.position.x * ), (_arg1.position.y * ));
.graphics.lineTo(((_arg1.position.x + ( * _arg1.R. .x)) * ), ((_arg1.position.y + ( * _arg1.R. .y)) * ));
}
}
}//package Box2D.Dynamics
Section 71
//b2DestructionListener (Box2D.Dynamics.b2DestructionListener)
package Box2D.Dynamics {
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
public class b2DestructionListener {
public function (_arg1:b2Joint):void{
}
public function (_arg1:b2Shape):void{
}
}
}//package Box2D.Dynamics
Section 72
//b2Island (Box2D.Dynamics.b2Island)
package Box2D.Dynamics {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.Contacts.*;
public class b2Island {
public var ;
public var :b2ContactListener;
public var :Array;
public var :Array;
public var
:Array;
public var :int;
public var :int;
public var
:int;
public var :int;
public var :int;
public var
:int;
public var :int;
private static var :b2ContactResult = new b2ContactResult();
public function b2Island(_arg1:int, _arg2:int, _arg3:int, _arg4, _arg5:b2ContactListener){
var _local6:int;
super();
= _arg1;
= _arg2;
= _arg3;
= 0;
= 0;
= 0;
= _arg4;
= _arg5;
= new Array(_arg1);
_local6 = 0;
while (_local6 < _arg1) {
[_local6] = null;
_local6++;
};
= new Array(_arg2);
_local6 = 0;
while (_local6 < _arg2) {
[_local6] = null;
_local6++;
};
= new Array(_arg3);
_local6 = 0;
while (_local6 < _arg3) {
[_local6] = null;
_local6++;
};
= 0;
}
public function Clear():void{
= 0;
= 0;
= 0;
}
public function (_arg1:b2TimeStep, _arg2:b2Vec2, _arg3:Boolean, _arg4:Boolean):void{
var _local5:int;
var _local6:b2Body;
var _local7:b2Joint;
var _local9:int;
var _local10:Boolean;
var _local11:Boolean;
var _local12:Boolean;
var _local13:Number;
var _local14:Number;
var _local15:Number;
_local5 = 0;
while (_local5 < ) {
_local6 = [_local5];
if (_local6.
()){
} else {
_local6. .x = (_local6. .x + (_arg1. * (_arg2.x + (_local6. * _local6. .x))));
_local6. .y = (_local6. .y + (_arg1. * (_arg2.y + (_local6. * _local6. .y))));
_local6. = (_local6. + ((_arg1. * _local6. ) * _local6. ));
_local6. . ();
_local6. = 0;
_local6. .Multiply(b2Math.
((1 - (_arg1. * _local6. )), 0, 1));
_local6. = (_local6. * b2Math.
((1 - (_arg1. * _local6.
)), 0, 1));
if (_local6. . () > b2Settings.b2_maxLinearVelocitySquared){
_local6. .Normalize();
_local6. .x = (_local6. .x * b2Settings.b2_maxLinearVelocity);
_local6. .y = (_local6. .y * b2Settings.b2_maxLinearVelocity);
};
if ((_local6. * _local6. ) > b2Settings.b2_maxAngularVelocitySquared){
if (_local6. < 0){
_local6. = -(b2Settings.b2_maxAngularVelocity);
} else {
_local6. = b2Settings.b2_maxAngularVelocity;
};
};
};
_local5++;
};
var _local8:b2ContactSolver = new b2ContactSolver(_arg1, ,
, );
_local8. (_arg1);
_local5 = 0;
while (_local5 < ) {
_local7 =
[_local5];
_local7. (_arg1);
_local5++;
};
_local5 = 0;
while (_local5 < _arg1. ) {
_local8.
();
_local9 = 0;
while (_local9 < ) {
_local7 =
[_local9];
_local7.
(_arg1);
_local9++;
};
_local5++;
};
_local8. ();
_local5 = 0;
while (_local5 < ) {
_local6 = [_local5];
if (_local6.
()){
} else {
_local6.
. . (_local6.
.c);
_local6.
. = _local6.
.a;
_local6.
.c.x = (_local6.
.c.x + (_arg1. * _local6. .x));
_local6.
.c.y = (_local6.
.c.y + (_arg1. * _local6. .y));
_local6.
.a = (_local6.
.a + (_arg1. * _local6. ));
_local6.
();
};
_local5++;
};
if (_arg3){
_local5 = 0;
while (_local5 < ) {
_local7 =
[_local5];
_local7. ();
_local5++;
};
= 0;
while ( < _arg1. ) {
_local10 = _local8. (b2Settings.b2_contactBaumgarte);
_local11 = true;
_local5 = 0;
while (_local5 < ) {
_local7 =
[_local5];
_local12 = _local7. ();
_local11 = ((_local11) && (_local12));
_local5++;
};
if (((_local10) && (_local11))){
break;
};
++;
};
};
(_local8. );
if (_arg4){
_local13 = Number.MAX_VALUE;
_local14 = (b2Settings.b2_linearSleepTolerance * b2Settings.b2_linearSleepTolerance);
_local15 = (b2Settings.b2_angularSleepTolerance * b2Settings.b2_angularSleepTolerance);
_local5 = 0;
while (_local5 < ) {
_local6 = [_local5];
if (_local6. == 0){
} else {
if ((_local6. & b2Body. ) == 0){
_local6. = 0;
_local13 = 0;
};
if (((((((_local6. & b2Body. ) == 0)) || (((_local6. * _local6. ) > _local15)))) || ((b2Math. (_local6. , _local6. ) > _local14)))){
_local6. = 0;
_local13 = 0;
} else {
_local6. = (_local6. + _arg1. );
_local13 = b2Math.
(_local13, _local6. );
};
};
_local5++;
};
if (_local13 >= b2Settings.b2_timeToSleep){
_local5 = 0;
while (_local5 < ) {
_local6 = [_local5];
[_local5]. = (_local6. | b2Body. );
_local6. . ();
_local6. = 0;
_local5++;
};
};
};
}
public function
(_arg1:b2TimeStep):void{
var _local2:int;
var _local5:b2Body;
var _local6:Boolean;
var _local3:b2ContactSolver = new b2ContactSolver(_arg1, ,
, );
_local2 = 0;
while (_local2 < _arg1. ) {
_local3.
();
_local2++;
};
_local2 = 0;
while (_local2 < ) {
_local5 = [_local2];
if (_local5.
()){
} else {
_local5.
. . (_local5.
.c);
_local5.
. = _local5.
.a;
_local5.
.c.x = (_local5.
.c.x + (_arg1. * _local5. .x));
_local5.
.c.y = (_local5.
.c.y + (_arg1. * _local5. .y));
_local5.
.a = (_local5.
.a + (_arg1. * _local5. ));
_local5.
();
};
_local2++;
};
var _local4:Number = 0.75;
_local2 = 0;
while (_local2 < _arg1. ) {
_local6 = _local3. (_local4);
if (_local6){
break;
};
_local2++;
};
(_local3. );
}
public function (_arg1:Array):void{
var _local2:b2Mat22;
var _local3:b2Vec2;
var _local5:b2Contact;
var _local6:b2ContactConstraint;
var _local7:b2ContactResult;
var _local8:b2Body;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:b2Manifold;
var _local13:int;
var _local14:b2ManifoldPoint;
var _local15:b2ContactConstraintPoint;
if ( == null){
return;
};
var _local4:int;
while (_local4 <
) {
_local5 = [_local4];
_local6 = _arg1[_local4];
_local7 = ;
_local7. = _local5. ;
_local7. = _local5. ;
_local8 = _local7. . ;
_local9 = _local5. ;
_local10 = _local5.
();
_local11 = 0;
while (_local11 < _local9) {
_local12 = _local10[_local11];
_local7.normal. (_local12.normal);
_local13 = 0;
while (_local13 < _local12. ) {
_local14 = _local12. [_local13];
_local15 = _local6. [_local13];
_local7.position = _local8.
(_local14. );
_local7. = _local15. ;
_local7. = _local15. ;
_local7.id.
= _local14.id.
;
.Result(_local7);
_local13++;
};
_local11++;
};
_local4++;
};
}
public function (_arg1:b2Body):void{
var _local2 = ++;
[_local2] = _arg1;
}
public function (_arg1:b2Contact):void{
var _local2 =
++;
[_local2] = _arg1;
}
public function (_arg1:b2Joint):void{
var _local2 = ++;
[_local2] = _arg1;
}
}
}//package Box2D.Dynamics
Section 73
//b2TimeStep (Box2D.Dynamics.b2TimeStep)
package Box2D.Dynamics {
public class b2TimeStep {
public var :Number;
public var
:Number;
public var :Number;
public var :int;
public var
:Boolean;
public var :Boolean;
}
}//package Box2D.Dynamics
Section 74
//b2World (Box2D.Dynamics.b2World)
package Box2D.Dynamics {
import Box2D.Common.Math.*;
import Box2D.Common.*;
import Box2D.Collision.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
import Box2D.Dynamics.Contacts.*;
public class b2World {
public var ;
public var ;
public var :Boolean;
public var :b2BroadPhase;
public var :b2ContactManager;
public var :b2Body;
public var :b2Joint;
public var :b2Contact;
public var :int;
public var
:int;
public var :int;
public var :b2Vec2;
public var
:Boolean;
public var :b2Body;
public var :b2DestructionListener;
public var :b2BoundaryListener;
public var :b2ContactFilter;
public var :b2ContactListener;
public var :b2DebugDraw;
public var :Number;
public var :int;
private static var :b2Color = new b2Color(0.5, 0.8, 0.8);
private static var :b2Color = new b2Color(0.9, 0.6, 0.6);
private static var :b2XForm = new b2XForm();
public static var :Boolean;
public static var :Boolean;
public static var :Boolean;
public function b2World(_arg1:b2AABB, _arg2:b2Vec2, _arg3:Boolean){
= new b2ContactManager();
super();
= null;
= null;
= b2ContactFilter. ;
= null;
= null;
= null;
= null;
= null;
= 0;
= 0;
= 0;
= true;
= true;
= true;
= _arg3;
= _arg2;
= false;
= 0;
. = this;
= new b2BroadPhase(_arg1, );
var _local4:b2BodyDef = new b2BodyDef();
= (_local4);
}
public function (_arg1:b2DestructionListener):void{
= _arg1;
}
public function (_arg1:b2BoundaryListener):void{
= _arg1;
}
public function (_arg1:b2ContactFilter):void{
= _arg1;
}
public function (_arg1:b2ContactListener):void{
= _arg1;
}
public function (_arg1:b2DebugDraw):void{
= _arg1;
}
public function ():void{
. ();
}
public function ():int{
return ( . );
}
public function
():int{
return ( . . );
}
public function (_arg1:b2BodyDef):b2Body{
if ( == true){
return (null);
};
var _local2:b2Body = new b2Body(_arg1, this);
_local2.
= null;
_local2.
= ;
if ( ){
.
= _local2;
};
= _local2;
++;
return (_local2);
}
public function (_arg1:b2Body):void{
var _local4:b2JointEdge;
var _local5:b2Shape;
if ( == true){
return;
};
var _local2:b2JointEdge = _arg1. ;
while (_local2) {
_local4 = _local2;
_local2 = _local2. ;
if ( ){
. (_local4.joint);
};
(_local4.joint);
};
var _local3:b2Shape = _arg1. ;
while (_local3) {
_local5 = _local3;
_local3 = _local3.
;
if ( ){
. (_local5);
};
_local5. ( );
b2Shape. (_local5, );
};
if (_arg1.
){
_arg1.
.
= _arg1.
;
};
if (_arg1.
){
_arg1.
.
= _arg1.
;
};
if (_arg1 == ){
= _arg1.
;
};
--;
}
public function
(_arg1:b2JointDef):b2Joint{
var _local3:b2Body;
var _local4:b2Shape;
var _local2:b2Joint = b2Joint. (_arg1, );
_local2.
= null;
_local2.
= ;
if ( ){
.
= _local2;
};
= _local2;
++;
_local2.
.joint = _local2;
_local2.
. = _local2.
;
_local2.
. = null;
_local2.
. = _local2.
. ;
if (_local2.
. ){
_local2.
. . = _local2.
;
};
_local2.
. = _local2.
;
_local2.
.joint = _local2;
_local2.
. = _local2.
;
_local2.
. = null;
_local2.
. = _local2.
. ;
if (_local2.
. ){
_local2.
. . = _local2.
;
};
_local2.
. = _local2.
;
if (_arg1. == false){
_local3 = ((_arg1. . < _arg1. . )) ? _arg1. : _arg1. ;
_local4 = _local3. ;
while (_local4) {
_local4. ( , _local3.
);
_local4 = _local4.
;
};
};
return (_local2);
}
public function (_arg1:b2Joint):void{
var _local5:b2Body;
var _local6:b2Shape;
var _local2:Boolean = _arg1.
;
if (_arg1.
){
_arg1.
.
= _arg1.
;
};
if (_arg1.
){
_arg1.
.
= _arg1.
;
};
if (_arg1 == ){
= _arg1.
;
};
var _local3:b2Body = _arg1.
;
var _local4:b2Body = _arg1.
;
_local3.
();
_local4.
();
if (_arg1.
. ){
_arg1.
. . = _arg1.
. ;
};
if (_arg1.
. ){
_arg1.
. . = _arg1.
. ;
};
if (_arg1.
== _local3. ){
_local3. = _arg1.
. ;
};
_arg1.
. = null;
_arg1.
. = null;
if (_arg1.
. ){
_arg1.
. . = _arg1.
. ;
};
if (_arg1.
. ){
_arg1.
. . = _arg1.
. ;
};
if (_arg1.
== _local4. ){
_local4. = _arg1.
. ;
};
_arg1.
. = null;
_arg1.
. = null;
b2Joint. (_arg1, );
--;
if (_local2 == false){
_local5 = ((_local3. < _local4. )) ? _local3 : _local4;
_local6 = _local5. ;
while (_local6) {
_local6. ( , _local5.
);
_local6 = _local6.
;
};
};
}
public function (_arg1:b2Shape):void{
_arg1. ( , _arg1. .
);
}
public function (_arg1:Boolean):void{
= _arg1;
}
public function (_arg1:Boolean):void{
= _arg1;
}
public function (_arg1:Boolean):void{
= _arg1;
}
public function ():int{
return ( );
}
public function ():int{
return ( );
}
public function ():int{
return (
);
}
public function (_arg1:b2Vec2):void{
= _arg1;
}
public function ():b2Body{
return ( );
}
public function (_arg1:Number, _arg2:int):void{
= true;
var _local3:b2TimeStep = new b2TimeStep();
_local3. = _arg1;
_local3. = _arg2;
if (_arg1 > 0){
_local3.
= (1 / _arg1);
} else {
_local3.
= 0;
};
_local3. = ( * _arg1);
_local3. = ;
_local3.
= ;
. ();
if (_local3. > 0){
(_local3);
};
if ((( ) && ((_local3. > 0)))){
(_local3);
};
();
= _local3.
;
= false;
}
public function (_arg1:b2AABB, _arg2:Array, _arg3:int):int{
var _local4:Array = new Array(_arg3);
var _local5:int = . (_arg1, _local4, _arg3);
var _local6:int;
while (_local6 < _local5) {
_arg2[_local6] = _local4[_local6];
_local6++;
};
return (_local5);
}
public function
():b2Body{
return ( );
}
public function ():b2Joint{
return ( );
}
public function (_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local9:int;
var _local10:int;
var _local11:b2Body;
var _local12:b2ContactEdge;
var _local13:b2JointEdge;
var _local14:Boolean;
= 0;
var _local3:b2Island = new b2Island( ,
, , , );
_local2 = ;
while (_local2) {
_local2. = (_local2. & ~(b2Body.
));
_local2 = _local2.
;
};
var _local4:b2Contact = ;
while (_local4) {
_local4. = (_local4. & ~(b2Contact.
));
_local4 = _local4.
;
};
var _local5:b2Joint = ;
while (_local5) {
_local5.
= false;
_local5 = _local5.
;
};
var _local6:int = ;
var _local7:Array = new Array(_local6);
var _local8:b2Body = ;
while (_local8) {
if ((_local8. & ((b2Body.
| b2Body. ) | b2Body. ))){
} else {
if (_local8.
()){
} else {
_local3.Clear();
_local9 = 0;
var _temp1 = _local9;
_local9 = (_local9 + 1);
var _local15 = _temp1;
_local7[_local15] = _local8;
_local8. = (_local8. | b2Body.
);
while (_local9 > 0) {
--_local9;
_local2 = _local7[_local9];
_local3. (_local2);
_local2. = (_local2. & ~(b2Body. ));
if (_local2.
()){
} else {
_local12 = _local2. ;
while (_local12) {
if ((_local12. . & (b2Contact.
| b2Contact. ))){
} else {
if (_local12. . == 0){
} else {
_local3. (_local12. );
_local12. . = (_local12. . | b2Contact.
);
_local11 = _local12. ;
if ((_local11. & b2Body.
)){
} else {
var _temp2 = _local9;
_local9 = (_local9 + 1);
var _local16 = _temp2;
_local7[_local16] = _local11;
_local11. = (_local11. | b2Body.
);
};
};
};
_local12 = _local12. ;
};
_local13 = _local2. ;
while (_local13) {
if (_local13.joint.
== true){
} else {
_local3. (_local13.joint);
_local13.joint.
= true;
_local11 = _local13. ;
if ((_local11. & b2Body.
)){
} else {
var _temp3 = _local9;
_local9 = (_local9 + 1);
_local16 = _temp3;
_local7[_local16] = _local11;
_local11. = (_local11. | b2Body.
);
};
};
_local13 = _local13. ;
};
};
};
_local3. (_arg1, , ,
);
if (_local3. > ){
= _local3. ;
};
_local10 = 0;
while (_local10 < _local3. ) {
_local2 = _local3. [_local10];
if (_local2.
()){
_local2. = (_local2. & ~(b2Body.
));
};
_local10++;
};
};
};
_local8 = _local8.
;
};
_local2 = ;
while (_local2) {
if ((_local2. & (b2Body. | b2Body. ))){
} else {
if (_local2.
()){
} else {
_local14 = _local2.
();
if ((((_local14 == false)) && (!(( == null))))){
. (_local2);
};
};
};
_local2 = _local2.
;
};
.Commit();
}
public function
(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Shape;
var _local4:b2Shape;
var _local5:b2Body;
var _local6:b2Body;
var _local7:b2ContactEdge;
var _local11:b2Contact;
var _local12:b2Contact;
var _local13:Number;
var _local14:b2Body;
var _local15:int;
var _local16:b2TimeStep;
var _local17:int;
var _local18:Number;
var _local19:Number;
var _local20:b2Body;
var _local21:Boolean;
var _local8:b2Island = new b2Island( , b2Settings.b2_maxTOIContactsPerIsland, 0, , );
var _local9:int = ;
var _local10:Array = new Array(_local9);
_local2 = ;
while (_local2) {
_local2. = (_local2. & ~(b2Body.
));
_local2.
. = 0;
_local2 = _local2.
;
};
_local11 = ;
while (_local11) {
_local11. = (_local11. & ~((b2Contact. | b2Contact.
)));
_local11 = _local11.
;
};
while (true) {
_local12 = null;
_local13 = 1;
_local11 = ;
for (;_local11;(_local11 = _local11.
)) {
if ((_local11. & (b2Contact. | b2Contact. ))){
} else {
_local18 = 1;
if ((_local11. & b2Contact. )){
_local18 = _local11. ;
} else {
_local3 = _local11. ;
_local4 = _local11. ;
_local5 = _local3. ;
_local6 = _local4. ;
if (((((_local5.
()) || (_local5.
()))) && (((_local6.
()) || (_local6.
()))))){
continue;
};
_local19 = _local5.
. ;
if (_local5.
. < _local6.
. ){
_local19 = _local6.
. ;
_local5.
.
(_local19);
} else {
if (_local6.
. < _local5.
. ){
_local19 = _local5.
. ;
_local6.
.
(_local19);
};
};
_local18 = b2TimeOfImpact. (_local11. , _local5.
, _local11. , _local6.
);
if ((((_local18 > 0)) && ((_local18 < 1)))){
_local18 = (((1 - _local18) * _local19) + _local18);
if (_local18 > 1){
_local18 = 1;
};
};
_local11. = _local18;
_local11. = (_local11. | b2Contact. );
};
if ((((Number.MIN_VALUE < _local18)) && ((_local18 < _local13)))){
_local12 = _local11;
_local13 = _local18;
};
};
};
if ((((_local12 == null)) || (((1 - (100 * Number.MIN_VALUE)) < _local13)))){
break;
};
_local3 = _local12. ;
_local4 = _local12. ;
_local5 = _local3. ;
_local6 = _local4. ;
_local5.
(_local13);
_local6.
(_local13);
_local12.Update( );
_local12. = (_local12. & ~(b2Contact. ));
if (_local12. == 0){
} else {
_local14 = _local5;
if (_local14.
()){
_local14 = _local6;
};
_local8.Clear();
_local15 = 0;
var _temp1 = _local15;
_local15 = (_local15 + 1);
var _local22 = _temp1;
_local10[_local22] = _local14;
_local14. = (_local14. | b2Body.
);
while (_local15 > 0) {
--_local15;
_local2 = _local10[_local15];
_local8. (_local2);
_local2. = (_local2. & ~(b2Body. ));
if (_local2.
()){
} else {
_local7 = _local2. ;
while (_local7) {
if (_local8.
== _local8. ){
} else {
if ((_local7. . & ((b2Contact.
| b2Contact. ) | b2Contact. ))){
} else {
if (_local7. . == 0){
} else {
_local8. (_local7. );
_local7. . = (_local7. . | b2Contact.
);
_local20 = _local7. ;
if ((_local20. & b2Body.
)){
} else {
if (_local20.
() == false){
_local20.
(_local13);
_local20.
();
};
var _temp2 = _local15;
_local15 = (_local15 + 1);
var _local23 = _temp2;
_local10[_local23] = _local20;
_local20. = (_local20. | b2Body.
);
};
};
};
};
_local7 = _local7. ;
};
};
};
_local16 = new b2TimeStep();
_local16. = ((1 - _local13) * _arg1. );
_local16.
= (1 / _local16. );
_local16. = _arg1. ;
_local8.
(_local16);
_local17 = 0;
while (_local17 < _local8. ) {
_local2 = _local8. [_local17];
_local2. = (_local2. & ~(b2Body.
));
if ((_local2. & (b2Body. | b2Body. ))){
} else {
if (_local2.
()){
} else {
_local21 = _local2.
();
if ((((_local21 == false)) && (!(( == null))))){
. (_local2);
};
_local7 = _local2. ;
while (_local7) {
_local7. . = (_local7. . & ~(b2Contact. ));
_local7 = _local7. ;
};
};
};
_local17++;
};
_local17 = 0;
while (_local17 < _local8.
) {
_local11 = _local8. [_local17];
_local8. [_local17]. = (_local11. & ~((b2Contact. | b2Contact.
)));
_local17++;
};
.Commit();
};
};
}
public function (_arg1:b2Joint):void{
var _local11:b2PulleyJoint;
var _local12:b2Vec2;
var _local13:b2Vec2;
var _local2:b2Body = _arg1.
;
var _local3:b2Body = _arg1.
;
var _local4:b2XForm = _local2.
;
var _local5:b2XForm = _local3.
;
var _local6:b2Vec2 = _local4.position;
var _local7:b2Vec2 = _local5.position;
var _local8:b2Vec2 = _arg1. ();
var _local9:b2Vec2 = _arg1. ();
var _local10:b2Color = ;
switch (_arg1. ){
case b2Joint.e_distanceJoint:
.
(_local8, _local9, _local10);
break;
case b2Joint.e_pulleyJoint:
_local11 = (_arg1 as b2PulleyJoint);
_local12 = _local11. ();
_local13 = _local11.
();
.
(_local12, _local8, _local10);
.
(_local13, _local9, _local10);
.
(_local12, _local13, _local10);
break;
case b2Joint.e_mouseJoint:
.
(_local8, _local9, _local10);
break;
default:
if (_local2 != ){
.
(_local6, _local8, _local10);
};
.
(_local8, _local9, _local10);
if (_local3 != ){
.
(_local7, _local9, _local10);
};
};
}
public function (_arg1:b2Shape, _arg2:b2XForm, _arg3:b2Color, _arg4:Boolean):void{
var _local6:b2CircleShape;
var _local7:b2Vec2;
var _local8:Number;
var _local9:b2Vec2;
var _local10:int;
var _local11:b2PolygonShape;
var _local12:int;
var _local13:Array;
var _local14:Array;
var _local15:Array;
var _local5:b2Color = ;
switch (_arg1. ){
case b2Shape.e_circleShape:
_local6 = (_arg1 as b2CircleShape);
_local7 = b2Math. (_arg2, _local6. );
_local8 = _local6. ;
_local9 = _arg2.R.
;
. (_local7, _local8, _local9, _arg3);
if (_arg4){
.DrawCircle(_local7, (_local8 - b2Settings.b2_toiSlop), _local5);
};
break;
case b2Shape.e_polygonShape:
_local11 = (_arg1 as b2PolygonShape);
_local12 = _local11. ();
_local13 = _local11. ();
_local14 = new Array(b2Settings.b2_maxPolygonVertices);
_local10 = 0;
while (_local10 < _local12) {
_local14[_local10] = b2Math. (_arg2, _local13[_local10]);
_local10++;
};
. (_local14, _local12, _arg3);
if (_arg4){
_local15 = _local11. ();
_local10 = 0;
while (_local10 < _local12) {
_local14[_local10] = b2Math. (_arg2, _local15[_local10]);
_local10++;
};
. (_local14, _local12, _local5);
};
break;
};
}
public function ():void{
var _local2:int;
var _local3:b2Body;
var _local4:b2Shape;
var _local5:b2Joint;
var _local6:b2BroadPhase;
var _local11:b2XForm;
var _local15:Boolean;
var _local16:uint;
var _local17:b2Pair;
var _local18:b2Proxy;
var _local19:b2Proxy;
var _local20:b2Vec2;
var _local21:b2Vec2;
var _local22:b2Proxy;
var _local23:b2PolygonShape;
var _local24:b2OBB;
var _local25:b2Vec2;
var _local26:b2Mat22;
var _local27:b2Vec2;
var _local28:Number;
if ( == null){
return;
};
.
.graphics.clear();
var _local1:uint = . ();
var _local7:b2Vec2 = new b2Vec2();
var _local8:b2Vec2 = new b2Vec2();
var _local9:b2Vec2 = new b2Vec2();
var _local10:b2Color = new b2Color(0, 0, 0);
var _local12:b2AABB = new b2AABB();
var _local13:b2AABB = new b2AABB();
var _local14:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2(), new b2Vec2()];
if ((_local1 & b2DebugDraw. )){
_local15 = ((_local1 & b2DebugDraw. ) == b2DebugDraw. );
_local3 = ;
while (_local3) {
_local11 = _local3.
;
_local4 = _local3.
();
while (_local4) {
if (_local3.
()){
(_local4, _local11, new b2Color(0.5, 0.9, 0.5), _local15);
} else {
if (_local3.
()){
(_local4, _local11, new b2Color(0.5, 0.5, 0.9), _local15);
} else {
(_local4, _local11, new b2Color(0.9, 0.9, 0.9), _local15);
};
};
_local4 = _local4.
;
};
_local3 = _local3.
;
};
};
if ((_local1 & b2DebugDraw. )){
_local5 = ;
while (_local5) {
(_local5);
_local5 = _local5.
;
};
};
if ((_local1 & b2DebugDraw. )){
_local6 = ;
_local7.Set((1 / _local6. .x), (1 / _local6. .y));
_local10.Set(0.9, 0.9, 0.3);
_local2 = 0;
while (_local2 < b2Pair. ) {
_local16 = _local6. . [_local2];
while (_local16 != b2Pair.
) {
_local17 = _local6. .
[_local16];
_local18 = _local6. [_local17. ];
_local19 = _local6. [_local17. ];
_local12. .x = (_local6. . .x + (_local7.x * _local6. [0][_local18. [0]].value));
_local12. .y = (_local6. . .y + (_local7.y * _local6. [1][_local18. [1]].value));
_local12. .x = (_local6. . .x + (_local7.x * _local6. [0][_local18. [0]].value));
_local12. .y = (_local6. . .y + (_local7.y * _local6. [1][_local18. [1]].value));
_local13. .x = (_local6. . .x + (_local7.x * _local6. [0][_local19. [0]].value));
_local13. .y = (_local6. . .y + (_local7.y * _local6. [1][_local19. [1]].value));
_local13. .x = (_local6. . .x + (_local7.x * _local6. [0][_local19. [0]].value));
_local13. .y = (_local6. . .y + (_local7.y * _local6. [1][_local19. [1]].value));
_local8.x = (0.5 * (_local12. .x + _local12. .x));
_local8.y = (0.5 * (_local12. .y + _local12. .y));
_local9.x = (0.5 * (_local13. .x + _local13. .x));
_local9.y = (0.5 * (_local13. .y + _local13. .y));
.
(_local8, _local9, _local10);
_local16 = _local17. ;
};
_local2++;
};
};
if ((_local1 & b2DebugDraw. )){
_local6 = ;
_local20 = _local6. . ;
_local21 = _local6. . ;
_local7.Set((1 / _local6. .x), (1 / _local6. .y));
_local10.Set(0.9, 0.3, 0.9);
_local2 = 0;
while (_local2 < b2Settings.b2_maxProxies) {
_local22 = _local6. [_local2];
if (_local22. () == false){
} else {
_local12. .x = (_local20.x + (_local7.x * _local6. [0][_local22. [0]].value));
_local12. .y = (_local20.y + (_local7.y * _local6. [1][_local22. [1]].value));
_local12. .x = (_local20.x + (_local7.x * _local6. [0][_local22. [0]].value));
_local12. .y = (_local20.y + (_local7.y * _local6. [1][_local22. [1]].value));
_local14[0].Set(_local12. .x, _local12. .y);
_local14[1].Set(_local12. .x, _local12. .y);
_local14[2].Set(_local12. .x, _local12. .y);
_local14[3].Set(_local12. .x, _local12. .y);
. (_local14, 4, _local10);
};
_local2++;
};
_local14[0].Set(_local20.x, _local20.y);
_local14[1].Set(_local21.x, _local20.y);
_local14[2].Set(_local21.x, _local21.y);
_local14[3].Set(_local20.x, _local21.y);
. (_local14, 4, new b2Color(0.3, 0.9, 0.9));
};
if ((_local1 & b2DebugDraw. )){
_local10.Set(0.5, 0.3, 0.5);
_local3 = ;
while (_local3) {
_local11 = _local3.
;
_local4 = _local3.
();
while (_local4) {
if (_local4. != b2Shape.e_polygonShape){
} else {
_local23 = (_local4 as b2PolygonShape);
_local24 = _local23.
();
_local25 = _local24. ;
_local14[0].Set(-(_local25.x), -(_local25.y));
_local14[1].Set(_local25.x, -(_local25.y));
_local14[2].Set(_local25.x, _local25.y);
_local14[3].Set(-(_local25.x), _local25.y);
_local2 = 0;
while (_local2 < 4) {
_local26 = _local24.R;
_local27 = _local14[_local2];
_local28 = (_local24.center.x + ((_local26.
.x * _local27.x) + (_local26. .x * _local27.y)));
_local14[_local2].y = (_local24.center.y + ((_local26.
.y * _local27.x) + (_local26. .y * _local27.y)));
_local14[_local2].x = _local28;
_local26 = _local11.R;
_local28 = (_local11.position.x + ((_local26.
.x * _local27.x) + (_local26. .x * _local27.y)));
_local14[_local2].y = (_local11.position.y + ((_local26.
.y * _local27.x) + (_local26. .y * _local27.y)));
_local14[_local2].x = _local28;
_local2++;
};
. (_local14, 4, _local10);
};
_local4 = _local4.
;
};
_local3 = _local3.
;
};
};
if ((_local1 & b2DebugDraw. )){
_local3 = ;
while (_local3) {
_local11 = ;
_local11.R = _local3.
.R;
_local11.position = _local3. ();
. (_local11);
_local3 = _local3.
;
};
};
}
}
}//package Box2D.Dynamics
Section 75
//bvnbvnbvnbv_16 (brickrevolution_fla.bvnbvnbvnbv_16)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
public dynamic class bvnbvnbvnbv_16 extends MovieClip {
public var btnMute:MovieClip;
public var btnCredits:SimpleButton;
public var btnPlay:SimpleButton;
public var ;
public function bvnbvnbvnbv_16(){
addFrameScript(25, , 55, );
}
public function (_arg1:MouseEvent){
play();
btnPlay.removeEventListener(MouseEvent.CLICK, );
}
public function (_arg1:MouseEvent){
= true;
play();
btnCredits.removeEventListener(MouseEvent.CLICK, );
}
function (){
stop();
= false;
btnPlay.addEventListener(MouseEvent.CLICK, );
btnCredits.addEventListener(MouseEvent.CLICK, );
}
function (){
stop();
if ( ){
MovieClip(root).gotoAndStop("credits");
} else {
MovieClip(root).gotoAndStop("help");
};
}
}
}//package brickrevolution_fla
Section 76
//bvnbvnbvnbvcopy3_66 (brickrevolution_fla.bvnbvnbvnbvcopy3_66)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
public dynamic class bvnbvnbvnbvcopy3_66 extends MovieClip {
public var btnContinue:SimpleButton;
public var btnMute:MovieClip;
public function bvnbvnbvnbvcopy3_66(){
addFrameScript(25, , 55, );
}
public function (_arg1:MouseEvent){
play();
}
function (){
stop();
btnContinue.addEventListener(MouseEvent.CLICK, );
}
function (){
stop();
MovieClip(root).gotoAndStop("selection");
}
}
}//package brickrevolution_fla
Section 77
//cameraUniversal_7 (brickrevolution_fla.cameraUniversal_7)
package brickrevolution_fla {
import flash.display.*;
public dynamic class cameraUniversal_7 extends MovieClip {
public var cameraFrame:MovieClip;
public function cameraUniversal_7(){
addFrameScript(0, );
}
function (){
}
}
}//package brickrevolution_fla
Section 78
//CirclebodyShape1_113 (brickrevolution_fla.CirclebodyShape1_113)
package brickrevolution_fla {
import flash.display.*;
public dynamic class CirclebodyShape1_113 extends MovieClip {
public function CirclebodyShape1_113(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 79
//CirclebodyShape2_115 (brickrevolution_fla.CirclebodyShape2_115)
package brickrevolution_fla {
import flash.display.*;
public dynamic class CirclebodyShape2_115 extends MovieClip {
public var b:MovieClip;
public function CirclebodyShape2_115(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 80
//CirclebodyShape3_117 (brickrevolution_fla.CirclebodyShape3_117)
package brickrevolution_fla {
import flash.display.*;
public dynamic class CirclebodyShape3_117 extends MovieClip {
public var b:MovieClip;
public function CirclebodyShape3_117(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 81
//CirclebodyShape4_120 (brickrevolution_fla.CirclebodyShape4_120)
package brickrevolution_fla {
import flash.display.*;
public dynamic class CirclebodyShape4_120 extends MovieClip {
public var b:MovieClip;
public function CirclebodyShape4_120(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 82
//CirclebodyShape5_122 (brickrevolution_fla.CirclebodyShape5_122)
package brickrevolution_fla {
import flash.display.*;
public dynamic class CirclebodyShape5_122 extends MovieClip {
public var b:MovieClip;
public function CirclebodyShape5_122(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 83
//CircleBricks1_112 (brickrevolution_fla.CircleBricks1_112)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class CircleBricks1_112 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function CircleBricks1_112(){
addFrameScript(0, );
}
function (){
stop();
this.brickType = 1;
}
}
}//package brickrevolution_fla
Section 84
//CircleBricks2_183 (brickrevolution_fla.CircleBricks2_183)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class CircleBricks2_183 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function CircleBricks2_183(){
addFrameScript(0, , 1, );
}
function (){
this.brickType = 2;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 85
//CircleBricks3_160 (brickrevolution_fla.CircleBricks3_160)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class CircleBricks3_160 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function CircleBricks3_160(){
addFrameScript(0, , 2,
);
}
function (){
this.brickType = 3;
}
function
(){
stop();
}
}
}//package brickrevolution_fla
Section 86
//CircleBricks4_165 (brickrevolution_fla.CircleBricks4_165)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class CircleBricks4_165 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function CircleBricks4_165(){
addFrameScript(0, , 3, );
}
function (){
this.brickType = 4;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 87
//CircleBricks5_163 (brickrevolution_fla.CircleBricks5_163)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class CircleBricks5_163 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function CircleBricks5_163(){
addFrameScript(0, , 4, );
}
function (){
this.brickType = 5;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 88
//CircleBrickShape3_118 (brickrevolution_fla.CircleBrickShape3_118)
package brickrevolution_fla {
import flash.display.*;
public dynamic class CircleBrickShape3_118 extends MovieClip {
public function CircleBrickShape3_118(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 89
//CircleBrickShape5_123 (brickrevolution_fla.CircleBrickShape5_123)
package brickrevolution_fla {
import flash.display.*;
public dynamic class CircleBrickShape5_123 extends MovieClip {
public function CircleBrickShape5_123(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 90
//creaditsscreen_84 (brickrevolution_fla.creaditsscreen_84)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
public dynamic class creaditsscreen_84 extends MovieClip {
public var btnContinue:SimpleButton;
public var btnMute:MovieClip;
public function creaditsscreen_84(){
addFrameScript(25, , 55, );
}
public function (_arg1:MouseEvent){
play();
}
function (){
stop();
btnContinue.addEventListener(MouseEvent.CLICK, );
}
function (){
stop();
MovieClip(root).gotoAndStop("intro");
}
}
}//package brickrevolution_fla
Section 91
//FreeGamesLogo_21 (brickrevolution_fla.FreeGamesLogo_21)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class FreeGamesLogo_21 extends MovieClip {
public function FreeGamesLogo_21(){
addFrameScript(0, );
}
public function (_arg1:MouseEvent){
var e = _arg1;
var url = "http://www.kaisergames.com/";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function (){
buttonMode = true;
addEventListener(MouseEvent.CLICK, );
}
}
}//package brickrevolution_fla
Section 92
//Game1Logo_34 (brickrevolution_fla.Game1Logo_34)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Game1Logo_34 extends MovieClip {
public function Game1Logo_34(){
addFrameScript(0, );
}
public function (_arg1:MouseEvent){
var e = _arg1;
var url:String = MovieClip(root).
;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function (){
buttonMode = true;
addEventListener(MouseEvent.CLICK, );
}
}
}//package brickrevolution_fla
Section 93
//Game1Logo1_87 (brickrevolution_fla.Game1Logo1_87)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Game1Logo1_87 extends MovieClip {
public function Game1Logo1_87(){
addFrameScript(0, );
}
public function (_arg1:MouseEvent){
var e = _arg1;
var url:String = MovieClip(root).
;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function (){
buttonMode = true;
addEventListener(MouseEvent.CLICK, );
}
}
}//package brickrevolution_fla
Section 94
//Game1LogoBig_19 (brickrevolution_fla.Game1LogoBig_19)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Game1LogoBig_19 extends MovieClip {
public function Game1LogoBig_19(){
addFrameScript(0, );
}
public function (_arg1:MouseEvent){
var e = _arg1;
var url:String = MovieClip(root).
;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function (){
buttonMode = true;
addEventListener(MouseEvent.CLICK, );
}
}
}//package brickrevolution_fla
Section 95
//GameMenu_24 (brickrevolution_fla.GameMenu_24)
package brickrevolution_fla {
import flash.display.*;
public dynamic class GameMenu_24 extends MovieClip {
public function GameMenu_24(){
addFrameScript(25, , 55, );
}
function (){
stop();
}
function (){
stop();
if (Levels. ){
MovieClip(this.parent).gotoAndStop("help");
} else {
MovieClip(this.parent).gotoAndStop("game");
};
}
}
}//package brickrevolution_fla
Section 96
//HiddenObjects_36 (brickrevolution_fla.HiddenObjects_36)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects_36 extends MovieClip {
public function HiddenObjects_36(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 97
//HiddenObjects1_39 (brickrevolution_fla.HiddenObjects1_39)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects1_39 extends MovieClip {
public function HiddenObjects1_39(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 98
//HiddenObjects10_48 (brickrevolution_fla.HiddenObjects10_48)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects10_48 extends MovieClip {
public function HiddenObjects10_48(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 99
//HiddenObjects11_49 (brickrevolution_fla.HiddenObjects11_49)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects11_49 extends MovieClip {
public function HiddenObjects11_49(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 100
//HiddenObjects12_50 (brickrevolution_fla.HiddenObjects12_50)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects12_50 extends MovieClip {
public function HiddenObjects12_50(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 101
//HiddenObjects13_51 (brickrevolution_fla.HiddenObjects13_51)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects13_51 extends MovieClip {
public function HiddenObjects13_51(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 102
//HiddenObjects14_52 (brickrevolution_fla.HiddenObjects14_52)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects14_52 extends MovieClip {
public function HiddenObjects14_52(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 103
//HiddenObjects16_53 (brickrevolution_fla.HiddenObjects16_53)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects16_53 extends MovieClip {
public function HiddenObjects16_53(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 104
//HiddenObjects17_54 (brickrevolution_fla.HiddenObjects17_54)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects17_54 extends MovieClip {
public function HiddenObjects17_54(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 105
//HiddenObjects18_57 (brickrevolution_fla.HiddenObjects18_57)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects18_57 extends MovieClip {
public function HiddenObjects18_57(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 106
//HiddenObjects19_56 (brickrevolution_fla.HiddenObjects19_56)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects19_56 extends MovieClip {
public function HiddenObjects19_56(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 107
//HiddenObjects2_40 (brickrevolution_fla.HiddenObjects2_40)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects2_40 extends MovieClip {
public function HiddenObjects2_40(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 108
//HiddenObjects20_55 (brickrevolution_fla.HiddenObjects20_55)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects20_55 extends MovieClip {
public function HiddenObjects20_55(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 109
//HiddenObjects3_41 (brickrevolution_fla.HiddenObjects3_41)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects3_41 extends MovieClip {
public function HiddenObjects3_41(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 110
//HiddenObjects4_42 (brickrevolution_fla.HiddenObjects4_42)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects4_42 extends MovieClip {
public function HiddenObjects4_42(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 111
//HiddenObjects5_43 (brickrevolution_fla.HiddenObjects5_43)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects5_43 extends MovieClip {
public function HiddenObjects5_43(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 112
//HiddenObjects6_44 (brickrevolution_fla.HiddenObjects6_44)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects6_44 extends MovieClip {
public function HiddenObjects6_44(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 113
//HiddenObjects7_45 (brickrevolution_fla.HiddenObjects7_45)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects7_45 extends MovieClip {
public function HiddenObjects7_45(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 114
//HiddenObjects8_46 (brickrevolution_fla.HiddenObjects8_46)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects8_46 extends MovieClip {
public function HiddenObjects8_46(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 115
//HiddenObjects9_47 (brickrevolution_fla.HiddenObjects9_47)
package brickrevolution_fla {
import flash.display.*;
public dynamic class HiddenObjects9_47 extends MovieClip {
public function HiddenObjects9_47(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 116
//hjhjzzz_26 (brickrevolution_fla.hjhjzzz_26)
package brickrevolution_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hjhjzzz_26 extends MovieClip {
public var txtLevelNo:TextField;
public function hjhjzzz_26(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 117
//inventoryeffanimation252_37 (brickrevolution_fla.inventoryeffanimation252_37)
package brickrevolution_fla {
import flash.display.*;
public dynamic class inventoryeffanimation252_37 extends MovieClip {
public function inventoryeffanimation252_37(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 118
//PaddleBonus_198 (brickrevolution_fla.PaddleBonus_198)
package brickrevolution_fla {
import flash.display.*;
public dynamic class PaddleBonus_198 extends MovieClip {
public function PaddleBonus_198(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 119
//paddlebottomcopy_200 (brickrevolution_fla.paddlebottomcopy_200)
package brickrevolution_fla {
import flash.display.*;
public dynamic class paddlebottomcopy_200 extends MovieClip {
public function paddlebottomcopy_200(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 120
//plate_1 (brickrevolution_fla.plate_1)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class plate_1 extends MovieClip {
public function plate_1(){
addFrameScript(0, );
}
public function (_arg1:MouseEvent){
var e = _arg1;
var url:String = MovieClip(root).
;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function (){
buttonMode = true;
addEventListener(MouseEvent.CLICK, );
}
}
}//package brickrevolution_fla
Section 121
//progressbar_14 (brickrevolution_fla.progressbar_14)
package brickrevolution_fla {
import flash.display.*;
public dynamic class progressbar_14 extends MovieClip {
public function progressbar_14(){
addFrameScript(0, , 41,
);
}
function (){
stop();
}
function
(){
stop();
}
}
}//package brickrevolution_fla
Section 122
//RectanglebodyShape1_126 (brickrevolution_fla.RectanglebodyShape1_126)
package brickrevolution_fla {
import flash.display.*;
public dynamic class RectanglebodyShape1_126 extends MovieClip {
public function RectanglebodyShape1_126(){
addFrameScript(0, , 12, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 123
//RectanglebodyShape2_127 (brickrevolution_fla.RectanglebodyShape2_127)
package brickrevolution_fla {
import flash.display.*;
public dynamic class RectanglebodyShape2_127 extends MovieClip {
public function RectanglebodyShape2_127(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 124
//RectanglebodyShape3_128 (brickrevolution_fla.RectanglebodyShape3_128)
package brickrevolution_fla {
import flash.display.*;
public dynamic class RectanglebodyShape3_128 extends MovieClip {
public var b:MovieClip;
public function RectanglebodyShape3_128(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 125
//RectanglebodyShape4_131 (brickrevolution_fla.RectanglebodyShape4_131)
package brickrevolution_fla {
import flash.display.*;
public dynamic class RectanglebodyShape4_131 extends MovieClip {
public var b:MovieClip;
public function RectanglebodyShape4_131(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 126
//RectanglebodyShape5_133 (brickrevolution_fla.RectanglebodyShape5_133)
package brickrevolution_fla {
import flash.display.*;
public dynamic class RectanglebodyShape5_133 extends MovieClip {
public var b:MovieClip;
public function RectanglebodyShape5_133(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 127
//RectangleBrickAnimationShape3_129 (brickrevolution_fla.RectangleBrickAnimationShape3_129)
package brickrevolution_fla {
import flash.display.*;
public dynamic class RectangleBrickAnimationShape3_129 extends MovieClip {
public function RectangleBrickAnimationShape3_129(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 128
//RectangleBrickAnimationShape5_134 (brickrevolution_fla.RectangleBrickAnimationShape5_134)
package brickrevolution_fla {
import flash.display.*;
public dynamic class RectangleBrickAnimationShape5_134 extends MovieClip {
public function RectangleBrickAnimationShape5_134(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 129
//RectangleBricks1_125 (brickrevolution_fla.RectangleBricks1_125)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class RectangleBricks1_125 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function RectangleBricks1_125(){
addFrameScript(0, );
}
function (){
stop();
this.brickType = 1;
}
}
}//package brickrevolution_fla
Section 130
//RectangleBricks2_179 (brickrevolution_fla.RectangleBricks2_179)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class RectangleBricks2_179 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function RectangleBricks2_179(){
addFrameScript(0, , 1, );
}
function (){
this.brickType = 2;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 131
//RectangleBricks3_148 (brickrevolution_fla.RectangleBricks3_148)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class RectangleBricks3_148 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function RectangleBricks3_148(){
addFrameScript(0, , 2,
);
}
function (){
this.brickType = 3;
}
function
(){
stop();
}
}
}//package brickrevolution_fla
Section 132
//RectangleBricks4_189 (brickrevolution_fla.RectangleBricks4_189)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class RectangleBricks4_189 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function RectangleBricks4_189(){
addFrameScript(0, , 3, );
}
function (){
this.brickType = 4;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 133
//RectangleBricks5_169 (brickrevolution_fla.RectangleBricks5_169)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class RectangleBricks5_169 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function RectangleBricks5_169(){
addFrameScript(0, , 4, );
}
function (){
this.brickType = 5;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 134
//SeperatorbodyShape1_150 (brickrevolution_fla.SeperatorbodyShape1_150)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SeperatorbodyShape1_150 extends MovieClip {
public function SeperatorbodyShape1_150(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 135
//SeperatorbodyShape2_151 (brickrevolution_fla.SeperatorbodyShape2_151)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SeperatorbodyShape2_151 extends MovieClip {
public function SeperatorbodyShape2_151(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 136
//SeperatorbodyShape3_152 (brickrevolution_fla.SeperatorbodyShape3_152)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SeperatorbodyShape3_152 extends MovieClip {
public var b:MovieClip;
public function SeperatorbodyShape3_152(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 137
//SeperatorbodyShape4_155 (brickrevolution_fla.SeperatorbodyShape4_155)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SeperatorbodyShape4_155 extends MovieClip {
public var b:MovieClip;
public function SeperatorbodyShape4_155(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 138
//SeperatorbodyShape5_157 (brickrevolution_fla.SeperatorbodyShape5_157)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SeperatorbodyShape5_157 extends MovieClip {
public var b:MovieClip;
public function SeperatorbodyShape5_157(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 139
//SeperatorBrickAnimationShape3_153 (brickrevolution_fla.SeperatorBrickAnimationShape3_153)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SeperatorBrickAnimationShape3_153 extends MovieClip {
public function SeperatorBrickAnimationShape3_153(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 140
//SeperatorBrickAnimationShape5_158 (brickrevolution_fla.SeperatorBrickAnimationShape5_158)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SeperatorBrickAnimationShape5_158 extends MovieClip {
public function SeperatorBrickAnimationShape5_158(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 141
//ShootEdge1_204 (brickrevolution_fla.ShootEdge1_204)
package brickrevolution_fla {
import flash.display.*;
public dynamic class ShootEdge1_204 extends MovieClip {
public function ShootEdge1_204(){
addFrameScript(0, );
}
function (){
this.visible = false;
}
}
}//package brickrevolution_fla
Section 142
//ShootEdge1copy_202 (brickrevolution_fla.ShootEdge1copy_202)
package brickrevolution_fla {
import flash.display.*;
public dynamic class ShootEdge1copy_202 extends MovieClip {
public function ShootEdge1copy_202(){
addFrameScript(0, );
}
function (){
}
}
}//package brickrevolution_fla
Section 143
//SperatorBricks1_149 (brickrevolution_fla.SperatorBricks1_149)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SperatorBricks1_149 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SperatorBricks1_149(){
addFrameScript(0, );
}
function (){
stop();
this.brickType = 1;
}
}
}//package brickrevolution_fla
Section 144
//SperatorBricks2_181 (brickrevolution_fla.SperatorBricks2_181)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SperatorBricks2_181 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SperatorBricks2_181(){
addFrameScript(0, , 1, );
}
function (){
this.brickType = 2;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 145
//SperatorBricks3_162 (brickrevolution_fla.SperatorBricks3_162)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SperatorBricks3_162 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SperatorBricks3_162(){
addFrameScript(0, , 2,
);
}
function (){
this.brickType = 3;
}
function
(){
stop();
}
}
}//package brickrevolution_fla
Section 146
//SperatorBricks4_187 (brickrevolution_fla.SperatorBricks4_187)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SperatorBricks4_187 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SperatorBricks4_187(){
addFrameScript(0, , 3, );
}
function (){
this.brickType = 4;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 147
//SperatorBricks5_167 (brickrevolution_fla.SperatorBricks5_167)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SperatorBricks5_167 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SperatorBricks5_167(){
addFrameScript(0, , 4, );
}
function (){
this.brickType = 5;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 148
//SquarebodyShape1_97 (brickrevolution_fla.SquarebodyShape1_97)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SquarebodyShape1_97 extends MovieClip {
public function SquarebodyShape1_97(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 149
//SquarebodyShape2_106 (brickrevolution_fla.SquarebodyShape2_106)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SquarebodyShape2_106 extends MovieClip {
public var b:MovieClip;
public function SquarebodyShape2_106(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 150
//SquarebodyShape3_103 (brickrevolution_fla.SquarebodyShape3_103)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SquarebodyShape3_103 extends MovieClip {
public var b:MovieClip;
public function SquarebodyShape3_103(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 151
//SquarebodyShape4_102 (brickrevolution_fla.SquarebodyShape4_102)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SquarebodyShape4_102 extends MovieClip {
public function SquarebodyShape4_102(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 152
//SquarebodyShape5_109 (brickrevolution_fla.SquarebodyShape5_109)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SquarebodyShape5_109 extends MovieClip {
public var b:MovieClip;
public function SquarebodyShape5_109(){
addFrameScript(0, , 13, );
}
function (){
stop();
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 153
//SquareBricks1_96 (brickrevolution_fla.SquareBricks1_96)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SquareBricks1_96 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SquareBricks1_96(){
addFrameScript(0, );
}
function (){
stop();
this.brickType = 1;
}
}
}//package brickrevolution_fla
Section 154
//SquareBricks2_192 (brickrevolution_fla.SquareBricks2_192)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SquareBricks2_192 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SquareBricks2_192(){
addFrameScript(0, , 1, );
}
function (){
this.brickType = 2;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 155
//SquareBricks3_173 (brickrevolution_fla.SquareBricks3_173)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SquareBricks3_173 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SquareBricks3_173(){
addFrameScript(0, , 2,
);
}
function (){
this.brickType = 3;
}
function
(){
stop();
}
}
}//package brickrevolution_fla
Section 156
//SquareBricks4_171 (brickrevolution_fla.SquareBricks4_171)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SquareBricks4_171 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SquareBricks4_171(){
addFrameScript(0, , 3, );
}
function (){
this.brickType = 4;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 157
//SquareBricks5_176 (brickrevolution_fla.SquareBricks5_176)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class SquareBricks5_176 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function SquareBricks5_176(){
addFrameScript(0, , 4, );
}
function (){
this.brickType = 5;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 158
//SquareBrickShape3_104 (brickrevolution_fla.SquareBrickShape3_104)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SquareBrickShape3_104 extends MovieClip {
public function SquareBrickShape3_104(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 159
//SquareBrickShape5_110 (brickrevolution_fla.SquareBrickShape5_110)
package brickrevolution_fla {
import flash.display.*;
public dynamic class SquareBrickShape5_110 extends MovieClip {
public function SquareBrickShape5_110(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 160
//Symbol19_197 (brickrevolution_fla.Symbol19_197)
package brickrevolution_fla {
import flash.display.*;
public dynamic class Symbol19_197 extends MovieClip {
public function Symbol19_197(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 161
//Symbol20_60 (brickrevolution_fla.Symbol20_60)
package brickrevolution_fla {
import flash.display.*;
public dynamic class Symbol20_60 extends MovieClip {
public var mcMsg:MovieClip;
public function Symbol20_60(){
addFrameScript(0, , 1, , 59, );
}
function (){
stop();
this.visible = true;
}
function (){
this.visible = true;
}
function (){
stop();
this.visible = false;
}
}
}//package brickrevolution_fla
Section 162
//Symbol3_loader00_85 (brickrevolution_fla.Symbol3_loader00_85)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Symbol3_loader00_85 extends MovieClip {
public function Symbol3_loader00_85(){
addFrameScript(0, );
}
public function (_arg1:MouseEvent){
var e = _arg1;
var url:String = MovieClip(root).
;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function (){
buttonMode = true;
addEventListener(MouseEvent.CLICK, );
}
}
}//package brickrevolution_fla
Section 163
//Symbol72copy2_18 (brickrevolution_fla.Symbol72copy2_18)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Symbol72copy2_18 extends MovieClip {
public function Symbol72copy2_18(){
addFrameScript(0, , 1, );
}
public function (_arg1:MouseEvent){
var _local2:* = MovieClip(_arg1.currentTarget);
if (_local2.currentFrame == 1){
GameSound.
();
_local2.gotoAndStop(" \x01\x04\r\f\x1B");
} else {
GameSound.
();
_local2.gotoAndStop("unmute");
};
}
function (){
stop();
buttonMode = true;
this.addEventListener(MouseEvent.CLICK, );
if (GameSound.
()){
gotoAndStop(" \x01\x04\r\f\x1B");
} else {
gotoAndStop("unmute");
};
}
function (){
buttonMode = true;
}
}
}//package brickrevolution_fla
Section 164
//TrianglebodyShape1_138 (brickrevolution_fla.TrianglebodyShape1_138)
package brickrevolution_fla {
import flash.display.*;
public dynamic class TrianglebodyShape1_138 extends MovieClip {
public function TrianglebodyShape1_138(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 165
//TrianglebodyShape2_139 (brickrevolution_fla.TrianglebodyShape2_139)
package brickrevolution_fla {
import flash.display.*;
public dynamic class TrianglebodyShape2_139 extends MovieClip {
public function TrianglebodyShape2_139(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 166
//TrianglebodyShape3_140 (brickrevolution_fla.TrianglebodyShape3_140)
package brickrevolution_fla {
import flash.display.*;
public dynamic class TrianglebodyShape3_140 extends MovieClip {
public var b:MovieClip;
public function TrianglebodyShape3_140(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 167
//TrianglebodyShape4_145 (brickrevolution_fla.TrianglebodyShape4_145)
package brickrevolution_fla {
import flash.display.*;
public dynamic class TrianglebodyShape4_145 extends MovieClip {
public var b:MovieClip;
public function TrianglebodyShape4_145(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 168
//TrianglebodyShape5_143 (brickrevolution_fla.TrianglebodyShape5_143)
package brickrevolution_fla {
import flash.display.*;
public dynamic class TrianglebodyShape5_143 extends MovieClip {
public var b:MovieClip;
public function TrianglebodyShape5_143(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 169
//TriangleBricks1_137 (brickrevolution_fla.TriangleBricks1_137)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class TriangleBricks1_137 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function TriangleBricks1_137(){
addFrameScript(0, );
}
function (){
stop();
this.brickType = 1;
}
}
}//package brickrevolution_fla
Section 170
//TriangleBricks2_190 (brickrevolution_fla.TriangleBricks2_190)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class TriangleBricks2_190 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function TriangleBricks2_190(){
addFrameScript(0, , 1, );
}
function (){
this.brickType = 2;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 171
//TriangleBricks5_177 (brickrevolution_fla.TriangleBricks5_177)
package brickrevolution_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class TriangleBricks5_177 extends MovieClip {
public var v0:Vertex;
public var v1:Vertex;
public var v2:Vertex;
public var v3:Vertex;
public var mcBody:MovieClip;
public var centerPoint:MovieClip;
public function TriangleBricks5_177(){
addFrameScript(0, , 4, );
}
function (){
this.brickType = 5;
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 172
//TriangleBrickShape3_141 (brickrevolution_fla.TriangleBrickShape3_141)
package brickrevolution_fla {
import flash.display.*;
public dynamic class TriangleBrickShape3_141 extends MovieClip {
public function TriangleBrickShape3_141(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 173
//TriangleBrickShape5_146 (brickrevolution_fla.TriangleBrickShape5_146)
package brickrevolution_fla {
import flash.display.*;
public dynamic class TriangleBrickShape5_146 extends MovieClip {
public function TriangleBrickShape5_146(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package brickrevolution_fla
Section 174
//Input (General.Input)
package General {
import flash.display.*;
import flash.events.*;
public class Input {
public static var :Array;
private static var :Array;
private static var :Array;
private static var :Array;
private static var :int;
public static var :int = 0;
public static var = 0;
public static var mouseDown:Boolean = false;
public static var :Boolean = false;
public static var :Boolean = false;
public static var mouseOver:Boolean = false;
public static var mouseX:Number = 0;
public static var mouseY:Number = 0;
public static var
:Number = 0;
public static var :Number = 0;
public static var :Number = 0;
public static var
:Number = 0;
public static var mouse:Sprite = new Sprite();
public static var :Stage;
public function Input(_arg1:Stage){
= _arg1;
= new Array(222);
();
= new Array(222);
= new Array();
var _local2:int;
while (_local2 < 222) {
[_local2] = new int(0);
if ( [_local2] != undefined){
.push(_local2);
};
_local2++;
};
= 5;
= new Array( );
var _local3:int;
while (_local3 < ) {
[_local3] = new Array(0, 0);
_local3++;
};
_arg1.stage.addEventListener(KeyboardEvent.KEY_DOWN, , false, 0, true);
_arg1.stage.addEventListener(KeyboardEvent.KEY_UP, , false, 0, true);
_arg1.stage.addEventListener(MouseEvent.MOUSE_DOWN, , false, 0, true);
_arg1.stage.addEventListener(MouseEvent.CLICK, , false, 0, true);
_arg1.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove, false, 0, true);
_arg1.stage.addEventListener(Event.MOUSE_LEAVE, mouseLeave, false, 0, true);
mouse.graphics.lineStyle(0.1, 0, 100);
mouse.graphics.moveTo(0, 0);
mouse.graphics.lineTo(0, 0.1);
}
public function (_arg1:MouseEvent){
= true;
mouseDown = true;
= 0;
= 0;
}
public function (_arg1:MouseEvent){
mouseDown = false;
= true;
}
public function mouseLeave(_arg1:Event){
= mouseDown;
mouseDown = false;
}
public function mouseMove(_arg1:MouseEvent){
if (mouseDown != _arg1.buttonDown){
mouseDown = _arg1.buttonDown;
= !(_arg1.buttonDown);
= _arg1.buttonDown;
= 0;
= 0;
};
mouseX = (_arg1.stageX - .x);
mouseY = (_arg1.stageY - .y);
= (mouseX - mouse.x);
= (mouseY - mouse.y);
if (mouseDown){
= ( +
);
= (
+ );
};
mouse.x = mouseX;
mouse.y = mouseY;
}
public function (_arg1:KeyboardEvent){
[_arg1.keyCode] = Math.max( [_arg1.keyCode], 1);
= _arg1.keyCode;
}
public function (_arg1:KeyboardEvent){
[_arg1.keyCode] = -1;
var _local2:int = ( - 1);
while (_local2 > 0) {
[_local2] = [(_local2 - 1)];
_local2--;
};
[0] = [_arg1.keyCode, 0];
}
private function (){
[65] = "A";
[66] = "B";
[67] = "C";
[68] = "D";
[69] = "E";
[70] = "F";
[71] = "G";
[72] = "H";
[73] = "I";
[74] = "J";
[75] = "K";
[76] = "L";
[77] = "M";
[78] = "N";
[79] = "O";
[80] = "P";
[81] = "Q";
[82] = "R";
[83] = "S";
[84] = "T";
[85] = "U";
[86] = "V";
[87] = "W";
[88] = "X";
[89] = "Y";
[90] = "Z";
[48] = "0";
[49] = "1";
[50] = "2";
[51] = "3";
[52] = "4";
[53] = "5";
[54] = "6";
[55] = "7";
[56] = "8";
[57] = "9";
[32] = "Spacebar";
[17] = "Ctrl";
[16] = "Shift";
[192] = "~";
[38] = "up";
[40] = "down";
[37] = "left";
[39] = "right";
[96] = "Numpad 0";
[97] = "Numpad 1";
[98] = "Numpad 2";
[99] = "Numpad 3";
[100] = "Numpad 4";
[101] = "Numpad 5";
[102] = "Numpad 6";
[103] = "Numpad 7";
[104] = "Numpad 8";
[105] = "Numpad 9";
[111] = "Numpad /";
[106] = "Numpad *";
[109] = "Numpad -";
[107] = "Numpad +";
[110] = "Numpad .";
[45] = "Insert";
[46] = "Delete";
[33] = "Page Up";
[34] = "Page Down";
[35] = "End";
[36] = "Home";
[112] = "F1";
[113] = "F2";
[114] = "F3";
[115] = "F4";
[116] = "F5";
[117] = "F6";
[118] = "F7";
[119] = "F8";
[188] = ",";
[190] = ".";
[186] = ";";
[222] = "'";
[219] = "[";
[221] = "]";
[189] = "-";
[187] = "+";
[220] = "\\";
[191] = "/";
[9] = "TAB";
[8] = "Backspace";
}
public static function update(){
var _local1:int;
while (_local1 < .length) {
if ( [ [_local1]] != 0){
var _local3 = ;
var _local4 = [_local1];
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
};
_local1++;
};
var _local2:int;
while (_local2 < ) {
_local3 = [_local2];
_local4 = 1;
_local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
_local2++;
};
= false;
= false;
mouseOver = false;
}
public static function (_arg1:int):int{
return (Math.max(0, [_arg1]));
}
public static function (_arg1:int):Boolean{
return (( [_arg1] > 0));
}
public static function
(_arg1:int):Boolean{
= 0;
return (( [_arg1] == 1));
}
public static function (_arg1:int):Boolean{
return (( [_arg1] == -1));
}
public static function (_arg1:int, _arg2:int, _arg3:int){
return (((( [_arg2][0] == _arg1)) && (( [_arg2][1] <= _arg3))));
}
public static function (_arg1:uint):String{
return ( [_arg1]);
}
}
}//package General
Section 175
//PixelPerfectCollisionDetection (General.PixelPerfectCollisionDetection)
package General {
import flash.display.*;
import flash.geom.*;
public class PixelPerfectCollisionDetection {
public static function (_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Rectangle{
var _local9:BitmapData;
var _local10:BitmapData;
var _local11:uint;
var _local12:Rectangle;
var _local13:int;
var _local6:Rectangle = _arg1.getBounds(_arg3);
var _local7:Rectangle = _arg2.getBounds(_arg3);
var _local8:Rectangle = _local6.intersection(_local7);
if (_local8.size.length > 0){
if (_arg4){
_local8.width = Math.ceil(_local8.width);
_local8.height = Math.ceil(_local8.height);
_local9 = (_arg1, _local8, BitmapDataChannel.RED, _arg3);
_local10 = (_arg2, _local8, BitmapDataChannel.GREEN, _arg3);
_local9.draw(_local10, null, null, BlendMode.LIGHTEN);
if (_arg5 <= 0){
_local11 = 65792;
} else {
if (_arg5 > 1){
_arg5 = 1;
};
_local13 = Math.round((_arg5 * 0xFF));
_local11 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local12 = _local9.getColorBoundsRect(_local11, _local11);
_local9.getColorBoundsRect(_local11, _local11).x = (_local12.x + _local8.x);
_local12.y = (_local12.y + _local8.y);
return (_local12);
} else {
return (_local8);
};
//unresolved jump
};
return (null);
}
private static function (_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:DisplayObjectContainer):BitmapData{
var _local5:Matrix = _arg4.transform.concatenatedMatrix.clone();
_local5.invert();
var _local6:Matrix = _arg1.transform.concatenatedMatrix.clone();
_local6.concat(_local5);
_local6.translate(-(_arg2.x), -(_arg2.y));
var _local7:BitmapData = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local7.draw(_arg1, _local6);
var _local8:BitmapData = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local8.copyChannel(_local7, _local7.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local8);
}
public static function (_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Point{
var _local7:Number;
var _local8:Number;
var _local6:Rectangle = (_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
_local7 = ((_local6.left + _local6.right) / 2);
_local8 = ((_local6.top + _local6.bottom) / 2);
return (new Point(_local7, _local8));
};
return (null);
}
public static function
(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Boolean{
var _local6:Rectangle = (_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
return (true);
};
return (false);
}
}
}//package General
Section 176
//Actor (Actor)
package {
import flash.display.*;
import flash.events.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class Actor extends EventDispatcher {
protected var :b2Body;
protected var
:MovieClip;
public function Actor(_arg1:b2Body, _arg2:MovieClip){
= _arg1;
= _arg2;
. (this);
}
public function (){
if (! .
()){
();
} else {
if ((((this is PaddleActor)) || ((this is BulletActor)))){
();
};
};
();
}
protected function ():void{
}
protected function ():void{
}
protected function ():void{
. (this);
}
public function ():void{
();
.parent.removeChild(
);
= null;
PhysVal. . ( );
}
public function ():b2Vec2{
return ( . ());
}
protected function ():void{
}
}
}//package
Section 177
//Background (Background)
package {
import flash.display.*;
public class Background extends MovieClip {
public var animHiddenObject:MovieClip;
public var mcHiddenObject:MovieClip;
public function Background(){
addFrameScript(0, );
HiddenObject. (mcHiddenObject);
}
public function update(){
if (animHiddenObject.currentFrame == animHiddenObject.totalFrames){
dispatchEvent(new BonusEvent(BonusEvent. ));
};
HiddenObject.update(mcHiddenObject);
}
public function
(){
animHiddenObject.gotoAndPlay(2);
}
function (){
stop();
}
}
}//package
Section 178
//BallActor (BallActor)
package {
import flash.display.*;
import Box2D.Common.Math.*;
import flash.geom.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import flash.utils.*;
public class BallActor extends Actor {
private var :Number;// = 8
private var
:Number;// = 0
private var :Boolean;// = false
private var :MovieClip;
private var :Number;
private var :Number;// = 0
private var :Number;// = 0
private var :GameSound;
private var :int;// = 0
private var :Number;// = 0
private var :Number;// = 0
private var :Number;// = 1
public static var :int = 8;
public static var
:Boolean = false;
public function BallActor(_arg1:DisplayObjectContainer, _arg2:Point, _arg3:Number){
var _local4:MovieClip = new BallSprite();
MovieClip(_arg1).mcContainer.addChild(_local4);
_local4.x = -20;
= (_local4.mcBody.width / 2);
var _local5:b2CircleDef = new b2CircleDef();
_local5. = PhysVal. ( );
_local5. = 0;
_local5. = 1;
_local5. = 1;
_local5. =
;
_local5.filter. = 4;
_local5.filter. = 2;
var _local6:b2BodyDef = new b2BodyDef();
_local6.position.Set(_arg2.x, _arg2.y);
_local6.angle = ((_local4.rotation * Math.PI) / 180);
var _local7:b2Body = PhysVal. . (_local6);
_local7. (_local5);
_local7. ();
(_arg3, _local7);
_local7. (((30 * Math.PI) / 180));
();
super(_local7, _local4);
(MovieClip(_local4));
= GameSound.
();
= MovieClip(_arg1);
= getTimer();
}
private function (){
addEventListener(BallEvent.FIRE_BALL, );
addEventListener(BallEvent.MINI_BALL, );
addEventListener(BallEvent.MEGA_BALL, );
}
override protected function ():void{
= (
.mcBody.width / 2);
var _local1:b2CircleDef = new b2CircleDef();
_local1. = PhysVal. ( );
_local1. = 0;
_local1. = 1;
_local1. = 1;
_local1. =
;
_local1.filter. = 4;
_local1.filter. = 2;
var _local2:b2BodyDef = new b2BodyDef();
_local2.position.Set(PhysVal. (
.x), PhysVal. (
.y));
_local2.angle = ((
.rotation * Math.PI) / 180);
var _local3:b2Body = PhysVal. . (_local2);
_local3. (_local1);
_local3. ();
var _local4:b2Vec2 = new b2Vec2( , );
_local3. (_local4);
_local3. (((30 * Math.PI) / 180));
= _local3;
super. ();
(MovieClip(
));
}
override protected function ():void{
if ((( ) || (!(Definitions.
)))){
. (new b2Vec2(0, 0));
if (!Definitions.
){
. (new b2Vec2(TestApp( ). ().x, (TestApp( ). ().y - PhysVal. ( ))), 0);
} else {
. (new b2Vec2((TestApp( ). ().x -
), (TestApp( ). ().y - PhysVal. ( ))), 0);
};
.
();
return;
};
if (((((
.x - (
.mcBody.width / 2)) < PhysVal.LEFT_EDGE)) && (( . .x <= 0)))){
. ( .WALL_HIT);
. .x = Math.abs( . .x);
};
if (((((
.x + (
.mcBody.width / 2)) > PhysVal.SCREEN_WIDTH)) && (( . .x >= 0)))){
. ( .WALL_HIT);
. .x = -(Math.abs( . .x));
};
if (((((
.y - (
.mcBody.width / 2)) < PhysVal.TOP_EDGE)) && (( . .y <= 0)))){
. ( .WALL_HIT);
. .y = Math.abs( . .y);
};
if (((((
.y + (
.mcBody.width / 2)) > PhysVal.SCREEN_HEIGHT)) && (( . .y >= 0)))){
dispatchEvent(new BallEvent(BallEvent.DESTROY));
return;
};
var _local1:* = (Math.abs( . ().x) + Math.abs( . ().y));
var _local2:* = ( / _local1);
. .x = ( . ().x * _local2);
. .y = ( . ().y * _local2);
super. ();
}
public function (_arg1:Number, _arg2:b2Body){
= ( * Math.cos(((_arg1 * Math.PI) / 180)));
= ( * Math.sin(((_arg1 * Math.PI) / 180)));
var _local3:b2Vec2 = new b2Vec2(PhysVal. ( ), PhysVal. ( ));
_arg2. (_local3);
}
override protected function ():void{
removeEventListener(BallEvent.FIRE_BALL, );
removeEventListener(BallEvent.MINI_BALL, );
removeEventListener(BallEvent.MEGA_BALL, );
super. ();
}
private function (_arg1:MovieClip){
if (BonusActor. (BallEvent.FIRE_BALL)){
dispatchEvent(new BallEvent(BallEvent.FIRE_BALL));
};
if (BonusActor. (BallEvent.MINI_BALL)){
_arg1.gotoAndStop("miniball");
= (_arg1.mcBody.width / 2);
} else {
if (BonusActor. (BallEvent.MEGA_BALL)){
_arg1.gotoAndStop("megaball");
= (_arg1.mcBody.width / 2);
} else {
_arg1.gotoAndStop("normal");
= (_arg1.mcBody.width / 2);
};
};
HiddenObject. ((
as Sprite));
.alpha = 1;
}
public function ():Point{
return (new Point( . ().x, . ().y));
}
public function (_arg1:b2Vec2, _arg2:b2Vec2){
var _local3:Number;
var _local4:Number;
if (((!( )) && (Definitions.
))){
_local3 = ( . ().x - _arg1.x);
_local4 = (_local3 / PhysVal. ((PaddleActor. - )));
= (_local4 * 10);
= -(Math.abs( . ().y));
. .x = ;
. .y = ;
if (!BonusActor. (BallEvent.MAGNET_PADDLE)){
. ( .PADDLE_HIT);
};
};
if (((((BonusActor. (BallEvent.MAGNET_PADDLE)) || (!(Definitions.
)))) && (!( )))){
= true;
= (TestApp( ). ().x - . ().x);
.
();
dispatchEvent(new BallEvent(BallEvent.MAGNET_PADDLE));
};
}
public function
():b2Vec2{
return ( . ());
}
public function (){
if ((( ) || (!(Definitions.
)))){
= false;
.
();
. .x = ;
. .y = ;
= getTimer();
};
}
public function (_arg1:BallEvent){
MovieClip(
).mcBody.gotoAndStop("fireball");
}
public function
(_arg1:BallEvent){
}
public function (_arg1:BallEvent){
if (MovieClip(
).currentLabel != "miniball"){
MovieClip(
).gotoAndStop("miniball");
if ( . ().x != 0){
= . ().x;
= . ().y;
};
PhysVal. . ( );
();
};
}
public function (_arg1:BallEvent){
if (MovieClip(
).currentLabel != "megaball"){
MovieClip(
).gotoAndStop("megaball");
if ( . ().x != 0){
= . ().x;
= . ().y;
};
PhysVal. . ( );
();
};
}
public function (){
if ( . ().x != 0){
= . ().x;
= . ().y;
};
PhysVal. . ( );
();
}
public function
():Number{
var _local1:Number = Math.atan2( . ().y, . ().x);
return (((_local1 * 180) / Math.PI));
}
override protected function ():void{
.x = PhysVal. ( . ().x);
.y = PhysVal. ( . ().y);
.rotation = (( . () * 180) / Math.PI);
();
super. ();
}
private function
():void{
if ((( ) || (!(Definitions.
)))){
return;
};
var _local1:int = getTimer();
if ((_local1 - ) > PaddleActor.
){
dispatchEvent(new BonusEvent(BonusEvent. ));
= _local1;
MovieClip(
).mcPaddleBonus.gotoAndPlay(2);
};
}
public function
():void{
= getTimer();
}
public static function (){
= 6;
}
public static function
(){
= 10;
}
public static function restore(){
= 8;
= false;
}
}
}//package
Section 179
//BallEvent (BallEvent)
package {
import flash.events.*;
public class BallEvent extends Event {
public static const FIRE_BALL = "FIRE_BALL";
public static const THRU_BRICK = "THRU_BALL";
public static const SPLIT_BALL8 = "SPLIT_BALL8";
public static const SPLIT_BALL2 = "SPLIT_BALL2";
public static const MAGNET_PADDLE = "MAGNET_PADDLE";
public static const MINI_BALL = "MINI_BALL";
public static const MEGA_BALL = "MEGA_BALL";
public static const SPEED_UP = "SPEED_UP";
public static const SPEED_DOWN = "SPEED_DOWN";
public static const EXPLOSION = "EXPLOSION";
public static const ZAP_BRICK = "ZAP_BRICK";
public static const MULTI_EXPLODE = "MULTI_EXPLODE";
public static const DESTROY = "DESTROY";
public function BallEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new BallEvent(type, bubbles, cancelable));
}
override public function toString():String{
return (formatToString("BallEvent", "type", "bubbles", "cancelable", "eventPhase"));
}
}
}//package
Section 180
//BallSprite (BallSprite)
package {
import flash.display.*;
public dynamic class BallSprite extends MovieClip {
public var mcPaddleBonus:MovieClip;
public var mcBody:MovieClip;
public function BallSprite(){
addFrameScript(0, );
}
function (){
stop();
}
}
}//package
Section 181
//BonusActor (BonusActor)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class BonusActor extends EventDispatcher {
private var :BrickActor;
private var
:String;
private var :Sprite;
private var :Number;// = 4
private var
:Number;// = -4
private var :GameSound;
private var :Object;
private static var
:String;
private static var
:String;
private static var :Array = [];
private static var :Array = [];
private static var :Array = [BallEvent.FIRE_BALL, BallEvent.SPLIT_BALL8, BallEvent.FIRE_BALL];
public function BonusActor(_arg1:Object, _arg2:BrickActor, _arg3:String, _arg4:Point){
switch (_arg3){
case PaddleEvent.SHOOT_PADDLE:
= new ShootPaddleBonus();
= PaddleEvent.SHOOT_PADDLE;
break;
case BallEvent.FIRE_BALL:
= new FireBall();
= BallEvent.FIRE_BALL;
break;
case BallEvent.SPLIT_BALL8:
= new SPLITBALL8();
= BallEvent.SPLIT_BALL8;
break;
case BallEvent.MAGNET_PADDLE:
= new MagnetPaddleBonus();
= BallEvent.MAGNET_PADDLE;
break;
case BallEvent.MEGA_BALL:
= new MegaBallBonus();
= BallEvent.MEGA_BALL;
break;
case BallEvent.MINI_BALL:
= new MiniBallBonus();
= BallEvent.MINI_BALL;
break;
case BallEvent.SPEED_UP:
= new SpeedUpBonus();
= BallEvent.SPEED_UP;
break;
case BallEvent.SPEED_DOWN:
= new SpeedDownBonus();
= BallEvent.SPEED_DOWN;
break;
case BallEvent.SPLIT_BALL2:
= new SplitBallBonus2();
= BallEvent.SPLIT_BALL2;
break;
case BallEvent.EXPLOSION:
= new ExplosionBonus();
= BallEvent.EXPLOSION;
break;
case BallEvent.MULTI_EXPLODE:
= new MultiExplodeBonus();
= BallEvent.MULTI_EXPLODE;
break;
case BallEvent.ZAP_BRICK:
= new ZapBrickBonus();
= BallEvent.ZAP_BRICK;
break;
case BallEvent.THRU_BRICK:
= new ThroughBrickBonus();
= BallEvent.THRU_BRICK;
break;
case PaddleEvent.EXPAND_PADDLE:
= new PaddleExpandBonus();
= PaddleEvent.EXPAND_PADDLE;
break;
case PaddleEvent.SHRINK_PADDLE:
= new PaddleShrinkBonus();
= PaddleEvent.SHRINK_PADDLE;
break;
case PaddleEvent.LIFE_PADDLE:
= new PaddleLifeBonus();
= PaddleEvent.LIFE_PADDLE;
break;
case PaddleEvent.KILL_PADDLE:
= new PaddleKillBonus();
= PaddleEvent.KILL_PADDLE;
break;
};
= _arg1;
.mcContainer.addChild( );
.x = _arg4.x;
.y = _arg4.y;
.push(this);
= _arg2;
if ( . > 0){
= ;
} else {
= -( );
};
= GameSound.
();
}
private function update(){
if (!TestApp( ).
. ( )){
.y = ( .y +
);
.x = ( .x + );
= (
+ 0.1);
} else {
if (!BonusActor. (
)){
(
);
};
();
return;
};
if (( .x - ( .width / 2)) < PhysVal.LEFT_EDGE){
= Math.abs( );
};
if (( .x + ( .width / 2)) > PhysVal.SCREEN_WIDTH){
= (-1 * Math.abs( ));
};
if (( .y - ( .height / 2)) < 0){
= Math.abs(
);
};
if (( .y + ( .height / 2)) > PhysVal.SCREEN_HEIGHT){
();
};
}
public function (){
var _local1:Number = .indexOf(this);
if (_local1 >= 0){
.splice(_local1, 1);
.parent.removeChild( );
delete ??getglobalscope
[this];
};
}
public function (_arg1:String){
switch (_arg1){
case PaddleEvent.SHOOT_PADDLE:
();
break;
case BallEvent.FIRE_BALL:
();
break;
case BallEvent.THRU_BRICK:
();
break;
case BallEvent.SPLIT_BALL8:
(7);
break;
case BallEvent.MAGNET_PADDLE:
();
break;
case BallEvent.MINI_BALL:
();
break;
case BallEvent.MEGA_BALL:
();
break;
case BallEvent.SPEED_UP:
();
break;
case BallEvent.SPEED_DOWN:
();
break;
case BallEvent.SPLIT_BALL2:
(1);
break;
case BallEvent.EXPLOSION:
();
break;
case BallEvent.MULTI_EXPLODE:
();
break;
case BallEvent.ZAP_BRICK:
();
break;
case PaddleEvent.EXPAND_PADDLE:
();
break;
case PaddleEvent.SHRINK_PADDLE:
();
break;
case PaddleEvent.LIFE_PADDLE:
();
break;
case PaddleEvent.KILL_PADDLE:
();
break;
};
}
private function (_arg1:String){
var _local2:Number = .indexOf(_arg1);
if (_local2 >= 0){
.splice(_local2, 1);
};
}
private function ():void{
.push(PaddleEvent.SHOOT_PADDLE);
TestApp( ). ();
}
private function ():void{
.push(BallEvent.FIRE_BALL);
TestApp( ). ();
}
private function (_arg1:int):void{
TestApp( ). (_arg1);
}
private function ():void{
. ( .POSITIVE_BONUS);
.push(BallEvent.MAGNET_PADDLE);
}
private function ():void{
TestApp( ).
();
}
private function ():void{
TestApp( ). ();
}
private function ():void{
(BallEvent.MEGA_BALL);
.push(BallEvent.MINI_BALL);
TestApp( ). ();
}
private function ():void{
(BallEvent.MINI_BALL);
.push(BallEvent.MEGA_BALL);
TestApp( ). ();
}
private function ():void{
TestApp( ).
();
}
private function ():void{
TestApp( ). ();
}
private function
():void{
TestApp( ). ();
}
private function ():void{
TestApp( ). ();
}
private function ():void{
TestApp( ). ();
}
private function
():void{
.push(BallEvent.THRU_BRICK);
TestApp( ). ();
}
private function ():void{
TestApp( ). ();
}
private function ():void{
TestApp( ). ();
}
public static function (){
var _local1:BonusActor;
for each (_local1 in ) {
_local1. ();
};
= [];
= [];
}
public static function reset(){
();
= [];
}
public static function (){
var _local1:BonusActor;
for each (_local1 in ) {
_local1.update();
};
}
public static function ():String{
var _local1:int = Math.floor((Math.random() * 3));
var _local2:String = [_local1];
.splice(_local1, 1);
if (! (_local2)){
.push(_local2);
};
return (_local2);
}
private static function (_arg1:String):Boolean{
switch (_arg1){
case BallEvent.SPLIT_BALL2:
case BallEvent.SPLIT_BALL8:
case PaddleEvent.LIFE_PADDLE:
case BallEvent.MULTI_EXPLODE:
return (true);
};
return (false);
}
public static function (_arg1:String):Boolean{
var _local2:Number = .indexOf(_arg1);
if (_local2 >= 0){
return (true);
};
return (false);
}
public static function (_arg1:int){
switch (_arg1){
case 1:
= [PaddleEvent.SHOOT_PADDLE, PaddleEvent.EXPAND_PADDLE, BallEvent.SPLIT_BALL8, BallEvent.MINI_BALL, PaddleEvent.SHRINK_PADDLE, BallEvent.MEGA_BALL];
break;
case 2:
= [BallEvent.ZAP_BRICK, BallEvent.THRU_BRICK, BallEvent.SPLIT_BALL8, PaddleEvent.SHOOT_PADDLE, PaddleEvent.KILL_PADDLE];
break;
case 3:
= [BallEvent.ZAP_BRICK, BallEvent.FIRE_BALL, PaddleEvent.SHRINK_PADDLE, BallEvent.SPLIT_BALL2, BallEvent.SPLIT_BALL2, BallEvent.EXPLOSION, BallEvent.MEGA_BALL];
break;
case 4:
= [BallEvent.ZAP_BRICK, BallEvent.EXPLOSION, PaddleEvent.SHOOT_PADDLE, BallEvent.SPEED_UP, PaddleEvent.LIFE_PADDLE, PaddleEvent.SHRINK_PADDLE];
break;
case 5:
= [PaddleEvent.SHOOT_PADDLE, PaddleEvent.EXPAND_PADDLE, BallEvent.THRU_BRICK, BallEvent.SPEED_DOWN, BallEvent.SPEED_UP, BallEvent.SPLIT_BALL8, BallEvent.MAGNET_PADDLE];
break;
case 6:
= [PaddleEvent.KILL_PADDLE, BallEvent.ZAP_BRICK, BallEvent.SPEED_DOWN, PaddleEvent.SHRINK_PADDLE, PaddleEvent.EXPAND_PADDLE, BallEvent.SPLIT_BALL8, BallEvent.SPEED_UP, BallEvent.MAGNET_PADDLE];
break;
case 7:
= [BallEvent.ZAP_BRICK, PaddleEvent.LIFE_PADDLE, BallEvent.SPEED_UP, BallEvent.MAGNET_PADDLE, BallEvent.SPLIT_BALL8, BallEvent.SPLIT_BALL2, BallEvent.SPEED_DOWN, BallEvent.THRU_BRICK];
break;
case 8:
= [BallEvent.SPLIT_BALL2, PaddleEvent.KILL_PADDLE, BallEvent.SPEED_UP, PaddleEvent.SHOOT_PADDLE, BallEvent.MEGA_BALL, BallEvent.SPEED_DOWN];
break;
case 9:
= [PaddleEvent.LIFE_PADDLE, BallEvent.MINI_BALL, BallEvent.MEGA_BALL, BallEvent.SPEED_DOWN, BallEvent.MAGNET_PADDLE, BallEvent.THRU_BRICK, PaddleEvent.SHOOT_PADDLE];
break;
case 10:
= [PaddleEvent.EXPAND_PADDLE, BallEvent.SPEED_UP, BallEvent.MEGA_BALL, PaddleEvent.KILL_PADDLE, PaddleEvent.SHRINK_PADDLE, PaddleEvent.SHOOT_PADDLE, PaddleEvent.LIFE_PADDLE];
break;
case 11:
= [BallEvent.EXPLOSION, BallEvent.SPEED_DOWN, BallEvent.SPEED_UP, BallEvent.MAGNET_PADDLE, PaddleEvent.SHOOT_PADDLE, BallEvent.MEGA_BALL];
break;
case 12:
= [BallEvent.THRU_BRICK, PaddleEvent.SHOOT_PADDLE, BallEvent.MEGA_BALL, PaddleEvent.KILL_PADDLE, PaddleEvent.EXPAND_PADDLE, BallEvent.SPEED_UP];
break;
case 13:
= [BallEvent.EXPLOSION, PaddleEvent.LIFE_PADDLE, BallEvent.SPEED_DOWN, BallEvent.ZAP_BRICK, BallEvent.MEGA_BALL];
break;
case 14:
= [BallEvent.ZAP_BRICK, PaddleEvent.KILL_PADDLE, BallEvent.FIRE_BALL, BallEvent.SPLIT_BALL8, PaddleEvent.EXPAND_PADDLE];
break;
case 15:
= [BallEvent.MULTI_EXPLODE, BallEvent.MINI_BALL, BallEvent.SPLIT_BALL8, BallEvent.FIRE_BALL, PaddleEvent.KILL_PADDLE, BallEvent.SPEED_DOWN];
break;
case 16:
= [BallEvent.SPEED_UP, BallEvent.MEGA_BALL, PaddleEvent.LIFE_PADDLE, BallEvent.MINI_BALL, BallEvent.ZAP_BRICK, PaddleEvent.SHOOT_PADDLE];
break;
case 17:
= [BallEvent.ZAP_BRICK, PaddleEvent.KILL_PADDLE, PaddleEvent.EXPAND_PADDLE, PaddleEvent.SHOOT_PADDLE, BallEvent.MAGNET_PADDLE];
break;
case 18:
= [BallEvent.SPLIT_BALL8, BallEvent.SPEED_DOWN, PaddleEvent.EXPAND_PADDLE, PaddleEvent.SHRINK_PADDLE, BallEvent.MAGNET_PADDLE, PaddleEvent.SHOOT_PADDLE];
break;
case 19:
= [BallEvent.ZAP_BRICK, PaddleEvent.EXPAND_PADDLE, PaddleEvent.LIFE_PADDLE, BallEvent.MAGNET_PADDLE, PaddleEvent.SHOOT_PADDLE];
BallEvent.EXPLOSION;
break;
case 20:
= [PaddleEvent.EXPAND_PADDLE, PaddleEvent.KILL_PADDLE, BallEvent.SPEED_DOWN, BallEvent.MAGNET_PADDLE, BallEvent.EXPLOSION, BallEvent.SPEED_UP, BallEvent.MINI_BALL, PaddleEvent.LIFE_PADDLE];
break;
};
}
}
}//package
Section 182
//BonusEvent (BonusEvent)
package {
import flash.events.*;
public class BonusEvent extends Event {
public static var :String = " ";
public static var :String = " ";
public static var :String = "HiddenObject";
public function BonusEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new BonusEvent(type, bubbles, cancelable));
}
override public function toString():String{
return (formatToString("BonusEvent", "type", "bubbles", "cancelable", "eventPhase"));
}
}
}//package
Section 183
//BrickActor (BrickActor)
package {
import flash.display.*;
import Box2D.Common.Math.*;
import flash.geom.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import flash.utils.*;
public class BrickActor extends Actor {
private var :Array;
private var :Object;
private var :int;// = 0
private var :Boolean;// = false
private var
:int;// = 8
public var ;// = 20
public var :Number;// = 1
private var :GameSound;
private static const BONUS_DELAY:Number = 6000;
private static var = 0;
public function BrickActor(_arg1:MovieClip, _arg2:Array, _arg3:Point){
= [];
var _local4:b2PolygonDef = new b2PolygonDef();
_local4.
= _arg2.length;
var _local5:* = 0;
while (_local5 < _local4.
) {
b2Vec2(_local4. [_local5]).Set(PhysVal. (_arg2[_local5].x), PhysVal. (_arg2[_local5].y));
_local5++;
};
_local4. = 0;
_local4. = 1;
_local4. = 0;
_local4.filter. = 2;
var _local6:b2BodyDef = new b2BodyDef();
var _local7:b2Body = PhysVal. . (_local6);
_local7. (_local4);
_local7. ();
= _arg1.parent;
super(_local7, _arg1);
= MovieClip(
).brickType;
if (
== 2){
.alpha = 0;
};
= GameSound.
();
}
public function (_arg1:b2Vec2){
if (_arg1.x > 0){
= 1;
} else {
= -1;
};
if (BonusActor. (BallEvent.FIRE_BALL)){
.alpha = 1;
();
return;
};
if (BonusActor. (BallEvent.THRU_BRICK)){
.alpha = 1;
if (
== 4){
();
} else {
();
};
return;
};
++;
switch (
){
case 1:
();
break;
case 2:
();
break;
case 3:
();
break;
case 4:
();
break;
case 5:
();
break;
};
}
function
(){
var _local1:Number = getTimer();
var _local2:Number = (_local1 - );
if ((((_local2 > BONUS_DELAY)) || ((_local2 == _local1)))){
= getTimer();
dispatchEvent(new BrickEvent(BrickEvent.GEN_BONUS));
= _local1;
};
}
override protected function ():void{
if (((
) && (MovieClip(
).mcBody))){
if (MovieClip(
).mcBody.currentFrame == 11){
if (
== 4){
dispatchEvent(new BrickEvent(BrickEvent.FIRE_BRICK));
};
};
if (MovieClip(
).mcBody.currentFrame == 12){
dispatchEvent(new BrickEvent(BrickEvent.SCORE_UPDATE));
dispatchEvent(new BrickEvent(BrickEvent.DESTROY));
} else {
if (MovieClip(
).mcBody.currentFrame == 4){
};
};
};
super. ();
}
override protected function ():void{
super. ();
}
private function (){
var _local1:Explode;
if (
){
. ( .BRICK_HIT);
_local1 = new Explode();
_local1.x = ().x;
_local1.y = ().y;
.addChild(_local1);
dispatchEvent(new BrickEvent(BrickEvent.SCORE_UPDATE));
dispatchEvent(new BrickEvent(BrickEvent.DESTROY));
();
};
}
public function ():Point{
var _local1:* =
.localToGlobal(new Point(MovieClip(
).centerPoint.x, MovieClip(
).centerPoint.y));
_local1 = .globalToLocal(_local1);
return (_local1);
}
public function (){
var _local1:BrickActor;
for each (_local1 in ) {
if (((MovieClip(_local1.
)) && (MovieClip(_local1.
).mcBody))){
if (MovieClip(_local1.
).mcBody.currentFrame == 1){
. ( .FIRE_BRICK_HIT);
MovieClip(_local1.
).alpha = 1;
MovieClip(_local1.
).mcBody.gotoAndPlay("explode");
();
};
};
};
}
private function ():void{
if (MovieClip(
)){
. ( .MULTI_BRICK_HIT);
MovieClip(
).mcBody.b.gotoAndStop((MovieClip(
).mcBody.b.currentFrame + 1));
= 3;
};
}
private function ():void{
if (MovieClip(
)){
. ( .MULTI_BRICK_HIT);
MovieClip(
).mcBody.b.gotoAndStop((MovieClip(
).mcBody.b.currentFrame + 1));
= 1;
};
}
private function ():void{
. ( .INVISIBLE_BRICK_HIT);
.alpha = 1;
= 1;
}
public function (_arg1:Array){
var _local2:BrickActor;
for each (_local2 in _arg1) {
if ( .indexOf(_local2) < 0){
.push(_local2);
};
};
}
public function (_arg1:MovieClip):Boolean{
if (
== _arg1){
return (true);
};
return (false);
}
public function ():Point{
var _local1:* = new Point(MovieClip(
).centerPoint.x, MovieClip(
).centerPoint.y);
_local1 = DisplayObjectContainer(
).localToGlobal(_local1);
return (_local1);
}
public function (){
var _local1:BrickActor;
for each (_local1 in ) {
MovieClip(_local1.
).mcBody.gotoAndPlay("explode");
};
}
public function (){
if (
== 4){
();
};
}
public function (){
var _local1:BrickActor;
if (
== 4){
for each (_local1 in ) {
if (((MovieClip(_local1.
)) && (!((MovieClip(_local1.
).currentFrame == 4))))){
MovieClip(_local1.
).gotoAndStop("a4");
};
};
};
}
public function
(){
if (MovieClip(
)){
if ((((((((
== 1)) || ((
== 2)))) || ((
== 3)))) || ((
== 5)))){
try {
.alpha = 1;
= 1;
MovieClip(
).mcBody.b.gotoAndStop(MovieClip(
).mcBody.b.totalFrames);
} catch(e) {
trace("zap brick no frame");
};
};
};
}
public function (){
if (((MovieClip(
)) && ((MovieClip(
).currentFrame == 4)))){
= 4;
};
}
override protected function ():void{
.x = PhysVal. ( . ().x);
.y = PhysVal. ( . ().y);
.rotation = (( . () * 180) / Math.PI);
super. ();
}
}
}//package
Section 184
//BrickEvent (BrickEvent)
package {
import flash.events.*;
public class BrickEvent extends Event {
public static const DESTROY:String = "DESTROY";
public static const FIRE_BRICK:String = "FIRE_BRICK";
public static const GEN_BONUS:String = "GEN_BONUS";
public static const SCORE_UPDATE:String = "SCORE";
public function BrickEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new BrickEvent(type, bubbles, cancelable));
}
override public function toString():String{
return (formatToString("BrickEvent", "type", "bubbles", "cancelable", "eventPhase"));
}
}
}//package
Section 185
//BrickJoint (BrickJoint)
package {
import flash.display.*;
import flash.events.*;
import General.*;
public class BrickJoint extends MovieClip {
public var joint:MovieClip;
private var :Array;
public var type:String;// = "joints"
public static var :Array = [];
public function BrickJoint(){
= [];
.push(this);
}
private function (_arg1:MouseEvent):void{
();
}
private function (){
var _local2:MovieClip;
var _local1:* = 0;
while (_local1 < this.parent.numChildren) {
_local2 = MovieClip(this.parent.getChildAt(_local1));
if (((!((_local2 == this))) && (PixelPerfectCollisionDetection.
(this.joint, _local2, this.parent, true)))){
.push(_local2);
_local2.gotoAndPlay("explode");
if (_local2. ){
_local2. .push(this);
} else {
_local2. = new Array();
_local2. .push(this);
};
};
_local1++;
};
}
public function (){
var _local1:* = 0;
while (_local1 < .length) {
[_local1].mcBody.gotoAndPlay("explode");
_local1++;
};
}
public function (){
return ( );
}
public static function (){
var _local1:* = 0;
while (_local1 < .length) {
[_local1]. ();
_local1++;
};
}
public static function (){
= [];
}
}
}//package
Section 186
//Bullet (Bullet)
package {
import flash.display.*;
public dynamic class Bullet extends MovieClip {
}
}//package
Section 187
//BulletActor (BulletActor)
package {
import flash.display.*;
import Box2D.Common.Math.*;
import flash.geom.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class BulletActor extends Actor {
private var :Object;
private var :Number;// = 1
public var :Boolean;// = false
public function BulletActor(_arg1:MovieClip, _arg2:Point){
var _local3:b2PolygonDef;
_local3 = new b2PolygonDef();
_local3. (PhysVal. ((_arg1.width / 2)), PhysVal. ((_arg1.height / 2)));
_local3. = 0;
_local3. = 1;
_local3. = 1;
var _local4:b2BodyDef = new b2BodyDef();
_local4.position.Set(PhysVal. (_arg2.x), PhysVal. (_arg2.y));
var _local5:b2Body = PhysVal. . (_local4);
_local5. (_local3);
_local5. ();
= _arg1.parent;
super(_local5, _arg1);
}
override protected function ():void{
. (new b2Vec2( . ().x, ( . ().y - )), 0);
if (
.y < -10){
dispatchEvent(new BulletEvent(BulletEvent.DESTROY));
};
}
override protected function ():void{
super. ();
}
public function (){
= true;
dispatchEvent(new BulletEvent(BulletEvent.DESTROY));
}
override protected function ():void{
.x = PhysVal. ( . ().x);
.y = PhysVal. ( . ().y);
.rotation = (( . () * 180) / Math.PI);
super. ();
}
}
}//package
Section 188
//BulletEvent (BulletEvent)
package {
import flash.events.*;
public class BulletEvent extends Event {
public static const DESTROY = "DESTROY";
public function BulletEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new BulletEvent(type, bubbles, cancelable));
}
override public function toString():String{
return (formatToString("BulletEvent", "type", "bubbles", "cancelable", "eventPhase"));
}
}
}//package
Section 189
//CustomTimerEvent (CustomTimerEvent)
package {
import flash.events.*;
public class CustomTimerEvent extends Event {
public static var
:String = "Timer Expired";
public function CustomTimerEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new CustomTimerEvent(type, bubbles, cancelable));
}
override public function toString():String{
return (formatToString("CustomTimerEvent", "type", "bubbles", "cancelable", "eventPhase"));
}
}
}//package
Section 190
//Definitions (Definitions)
package {
public class Definitions {
public static var
:Boolean = false;
}
}//package
Section 191
//Explode (Explode)
package {
import flash.display.*;
public dynamic class Explode extends MovieClip {
public function Explode(){
addFrameScript(26, );
}
function (){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 192
//ExplosionBonus (ExplosionBonus)
package {
import flash.display.*;
public dynamic class ExplosionBonus extends Sprite {
}
}//package
Section 193
//FireBall (FireBall)
package {
import flash.display.*;
public dynamic class FireBall extends Sprite {
}
}//package
Section 194
//GameOverScreen (GameOverScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class GameOverScreen extends MovieClip {
public var txtScore:TextField;
public var btnMute:MovieClip;
public var btnPlayAgain:SimpleButton;
var :ScoreManager;
public function GameOverScreen(){
addFrameScript(14, , 29, );
trace("game overscreen called");
();
}
private function (){
= ScoreManager.
();
txtScore.text = String( .
());
btnPlayAgain.addEventListener(MouseEvent.CLICK,
);
}
function
(_arg1:MouseEvent){
if (Levels. () == Levels.TOTAL_NO_LEVELS){
Levels.reset();
};
.reset();
Life. ();
play();
btnPlayAgain.removeEventListener(MouseEvent.CLICK,
);
}
function (){
stop();
}
function (){
MovieClip(root).gotoAndStop("selection");
}
}
}//package
Section 195
//GameSound (GameSound)
package {
import flash.events.*;
import flash.media.*;
public class GameSound extends EventDispatcher {
public const INTRO:String = "intro";
public const WALL_HIT:String = "wallhit";
public const PADDLE_HIT:String = "paddlehit";
public const BRICK_HIT:String = "brickhit";
public const INVISIBLE_BRICK_HIT:String = "invisiblebrickhit";
public const MULTI_BRICK_HIT:String = "multihitbrick";
public const FIRE_BRICK_HIT:String = "firebrickhit";
public const POSITIVE_BONUS:String = "+ve";
public const NEGATIVE_BONUS:String = "-ve";
public const SHOOT:String = "shoot";
private var :Sound;
private var :Sound;
private var :SoundChannel;
private var :SoundChannel;
private var :SoundChannel;
private var :SoundChannel;
private var
:SoundChannel;
private var :SoundChannel;
private var :SoundChannel;
private var
:SoundChannel;
private var :SoundChannel;
private static var
:GameSound = null;
private static var
:Boolean = false;
public function GameSound(){
= new SndMagnetPaddle();
= new SndIntro();
}
public function (_arg1:String){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
switch (_arg1){
case INTRO:
if (! ){
= .play();
.addEventListener(Event.SOUND_COMPLETE, );
};
break;
case PADDLE_HIT:
if (!
){
_local4 = new SndPaddleHit();
= _local4.play();
.addEventListener(Event.SOUND_COMPLETE, );
};
break;
case WALL_HIT:
if (! ){
_local5 = new SndWallHit();
= _local5.play();
.addEventListener(Event.SOUND_COMPLETE, );
};
break;
case BRICK_HIT:
if (! ){
_local6 = new SndBrickHit();
= _local6.play();
.addEventListener(Event.SOUND_COMPLETE, );
};
break;
case INVISIBLE_BRICK_HIT:
if (! ){
_local7 = new SndInvisbleBrickHit();
= _local7.play();
.addEventListener(Event.SOUND_COMPLETE, );
};
break;
case MULTI_BRICK_HIT:
if (!
){
_local8 = new SndMultiBrickHit();
= _local8.play();
.addEventListener(Event.SOUND_COMPLETE, );
};
break;
case FIRE_BRICK_HIT:
if (! ){
_local9 = new SndFireBrickHit();
= _local9.play();
.addEventListener(Event.SOUND_COMPLETE, );
};
break;
case POSITIVE_BONUS:
_local2 = new SndPositiveBonus();
_local2.play();
break;
case NEGATIVE_BONUS:
_local3 = new SndNegativeBonus();
_local3.play();
break;
case SHOOT:
if (! ){
_local10 = new SndShoot();
= _local10.play();
.addEventListener(Event.SOUND_COMPLETE, );
};
};
}
private function (_arg1:Event):void{
.removeEventListener(Event.SOUND_COMPLETE, );
= null;
}
private function (_arg1:Event):void{
.removeEventListener(Event.SOUND_COMPLETE, );
= null;
}
private function (_arg1:Event):void{
.removeEventListener(Event.SOUND_COMPLETE, );
= null;
}
private function (_arg1:Event):void{
.removeEventListener(Event.SOUND_COMPLETE, );
= null;
}
private function (_arg1:Event):void{
= .play();
.removeEventListener(Event.SOUND_COMPLETE, );
.addEventListener(Event.SOUND_COMPLETE, );
}
private function (_arg1:Event):void{
.removeEventListener(Event.SOUND_COMPLETE, );
= null;
}
private function (_arg1:Event):void{
.removeEventListener(Event.SOUND_COMPLETE, );
= null;
}
private function (_arg1:Event):void{
.removeEventListener(Event.SOUND_COMPLETE, );
= null;
}
public function (){
SoundMixer.stopAll();
= null;
}
public static function
(){
if (
== null){
= new (GameSound);
};
return (
);
}
public static function
(){
if (
){
return;
};
var _local1:SoundTransform = new SoundTransform();
_local1.volume = 0;
SoundMixer.soundTransform = _local1;
= true;
}
public static function
(){
if (!
){
return;
};
var _local1:SoundTransform = new SoundTransform();
_local1.volume = 1;
SoundMixer.soundTransform = _local1;
= false;
}
public static function
(){
return (
);
}
}
}//package
Section 196
//GameTimer (GameTimer)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public class GameTimer extends Sprite {
private const TOTAL_TIME = 300;
public var txtTime:TextField;
var
:Timer;
var
:int;// = 2000
var
:int;// = 0
var
:int;// = 1
private static var
:GameTimer;
public function GameTimer():void{
x = 220;
y = 2;
= new Timer(1000, 0);
addEventListener(Event.REMOVED,
);
}
private function
(_arg1:Event):void{
();
}
private function init(){
= TOTAL_TIME;
txtTime.text =
(
);
}
public function
(){
trace("start timer called");
init();
.addEventListener(TimerEvent.TIMER,
);
.start();
}
private function
(_arg1:TimerEvent):void{
= (TOTAL_TIME -
.currentCount);
if (
>= 0){
txtTime.text =
(
);
} else {
trace("time expired");
= 0;
();
dispatchEvent(new CustomTimerEvent(CustomTimerEvent.
));
};
}
public function
():void{
.removeEventListener(TimerEvent.TIMER,
);
.stop();
.reset();
}
function
(_arg1:int):String{
var _local2:int;
var _local3:String;
var _local4:String;
if (_arg1 > 59){
_local2 = Math.floor((_arg1 / 60));
_local3 = String(_local2);
_local4 = String((_arg1 % 60));
} else {
_local3 = "00";
_local4 = String(_arg1);
};
if (_local4.length == 1){
_local4 = ("0" + _local4);
};
if (_local3.length == 1){
_local3 = ("0" + _local3);
};
return (((_local3 + ":") + _local4));
}
public function
(){
return (
);
}
public function
(_arg1:Boolean){
if (_arg1){
.start();
} else {
.stop();
};
}
public function
():String{
trace(("timeleft: " +
(
)));
return (
(
));
}
public static function
():GameTimer{
if (!
){
= new (GameTimer);
};
return (
);
}
}
}//package
Section 197
//HiddenObject (HiddenObject)
package {
import flash.display.*;
import flash.filters.*;
public class HiddenObject extends MovieClip {
private static var :GlowFilter;
private static var :Number = 0xFFFFFF;
private static var :Number = 0.5;
private static var :Number = 3;
private static var :Number = 3;
private static var :Number = 4;
private static var :Number = 12;
private static var :Number = 0.98;
public static function (_arg1:Sprite){
= new GlowFilter( , , , , , );
}
public static function update(_arg1:Sprite){
_arg1.alpha = 1;
if ( .blurX >= 20){
= 0.97;
} else {
if ( .blurX <= 4){
= 1.03;
};
};
.blurX = ( .blurX * );
.blurY = ( .blurY * );
_arg1.filters = [ ];
}
public static function (_arg1:Sprite){
_arg1.filters = null;
}
public static function (_arg1:Sprite){
= new GlowFilter( , , , , , );
_arg1.filters = [ ];
}
}
}//package
Section 198
//Level1 (Level1)
package {
import flash.display.*;
public dynamic class Level1 extends MovieClip {
}
}//package
Section 199
//Level10 (Level10)
package {
import flash.display.*;
public dynamic class Level10 extends MovieClip {
public var mcSample:MovieClip;
}
}//package
Section 200
//Level11 (Level11)
package {
import flash.display.*;
public dynamic class Level11 extends MovieClip {
}
}//package
Section 201
//Level12 (Level12)
package {
import flash.display.*;
public dynamic class Level12 extends MovieClip {
}
}//package
Section 202
//Level13 (Level13)
package {
import flash.display.*;
public dynamic class Level13 extends MovieClip {
}
}//package
Section 203
//Level14 (Level14)
package {
import flash.display.*;
public dynamic class Level14 extends MovieClip {
}
}//package
Section 204
//Level15 (Level15)
package {
import flash.display.*;
public dynamic class Level15 extends MovieClip {
}
}//package
Section 205
//Level16 (Level16)
package {
import flash.display.*;
public dynamic class Level16 extends MovieClip {
}
}//package
Section 206
//Level17 (Level17)
package {
import flash.display.*;
public dynamic class Level17 extends MovieClip {
}
}//package
Section 207
//Level18 (Level18)
package {
import flash.display.*;
public dynamic class Level18 extends MovieClip {
}
}//package
Section 208
//Level19 (Level19)
package {
import flash.display.*;
public dynamic class Level19 extends MovieClip {
}
}//package
Section 209
//Level2 (Level2)
package {
import flash.display.*;
public dynamic class Level2 extends MovieClip {
public var mcSample:MovieClip;
}
}//package
Section 210
//Level20 (Level20)
package {
import flash.display.*;
public dynamic class Level20 extends MovieClip {
}
}//package
Section 211
//Level3 (Level3)
package {
import flash.display.*;
public dynamic class Level3 extends MovieClip {
public var mcSample:MovieClip;
public var mcBody:MovieClip;
}
}//package
Section 212
//Level4 (Level4)
package {
import flash.display.*;
public dynamic class Level4 extends MovieClip {
public var mcSample:MovieClip;
}
}//package
Section 213
//Level5 (Level5)
package {
import flash.display.*;
public dynamic class Level5 extends MovieClip {
public var mcSample:MovieClip;
}
}//package
Section 214
//Level6 (Level6)
package {
import flash.display.*;
public dynamic class Level6 extends MovieClip {
public var mcSample:MovieClip;
}
}//package
Section 215
//Level7 (Level7)
package {
import flash.display.*;
public dynamic class Level7 extends MovieClip {
public var mcSample:MovieClip;
}
}//package
Section 216
//Level8 (Level8)
package {
import flash.display.*;
public dynamic class Level8 extends MovieClip {
public var mcSample:MovieClip;
}
}//package
Section 217
//Level9 (Level9)
package {
import flash.display.*;
public dynamic class Level9 extends MovieClip {
}
}//package
Section 218
//Levels (Levels)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Levels extends MovieClip {
public var level15:MovieClip;
public var btnContinue:SimpleButton;
public var level16:MovieClip;
public var btnMute:MovieClip;
public var btnHelp:SimpleButton;
public var level17:MovieClip;
public var level18:MovieClip;
public var level0:MovieClip;
public var level19:MovieClip;
public var level1:MovieClip;
public var level2:MovieClip;
public var level3:MovieClip;
public var level4:MovieClip;
public var level5:MovieClip;
public var level6:MovieClip;
public var level7:MovieClip;
public var level8:MovieClip;
public var level10:MovieClip;
public var level9:MovieClip;
public var level11:MovieClip;
public var level12:MovieClip;
public var level13:MovieClip;
public var level14:MovieClip;
private var
:DisplayObjectContainer;
public static const TOTAL_NO_LEVELS = 20;
private static var = 0;
public static var :Boolean = false;
public static var :int = 0;
public function Levels(){
= parent.parent;
();
btnHelp.addEventListener(MouseEvent.CLICK, );
btnContinue.addEventListener(MouseEvent.CLICK, );
}
private function (_arg1:MouseEvent):void{
= true;
btnHelp.removeEventListener(MouseEvent.CLICK, );
MovieClip(
).mcMenu.play();
}
private function ():void{
var _local1:* = 0;
while (_local1 <= ) {
this[("level" + _local1)].buttonMode = true;
this[("level" + _local1)].txtLevelNo.text = (_local1 + 1);
this[("level" + _local1)].gotoAndStop("unlocked");
this[("level" + _local1)].
= _local1;
this[("level" + _local1)].addEventListener(MouseEvent.CLICK, );
_local1++;
};
}
private function (_arg1:MouseEvent):void{
btnContinue.removeEventListener(MouseEvent.CLICK, );
= ;
= false;
MovieClip(
).mcMenu.play();
}
private function (_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.currentTarget as MovieClip);
_local2.removeEventListener(MouseEvent.CLICK, );
= _local2.
;
= false;
MovieClip(
).mcMenu.play();
}
public static function (){
return (( + 1));
}
public static function ():MovieClip{
var _local1:* = getDefinitionByName(("Level" + ( + 1)));
return (new (_local1));
}
public static function (){
if ( <= ){
++;
};
}
public static function reset(){
= 0;
= 0;
}
}
}//package
Section 219
//Life (Life)
package {
import flash.display.*;
public class Life extends MovieClip {
private static const TOTAL_LIFES = 5;
private static var :int = 5;
private static var :Array = new Array();
private static var :Object;
public static function (_arg1:Object){
var _local3:LifeClip;
= _arg1;
var _local2:* = 0;
while (_local2 < ) {
_local3 = new LifeClip();
MovieClip( ).mcContainer.addChild(_local3);
_local3.x = ((PhysVal.SCREEN_WIDTH - 60) - ( .length * (_local3.width + 2)));
_local3.y = 3;
.push(_local3);
_local2++;
};
}
public static function (){
var _local2:LifeClip;
var _local1:* = 0;
while (_local1 < ) {
_local2 = .pop();
MovieClip( ).mcContainer.removeChild(_local2);
_local1++;
};
}
public static function (){
var _local1:LifeClip = new LifeClip();
MovieClip( ).mcContainer.addChild(_local1);
_local1.x = ((PhysVal.SCREEN_WIDTH - 60) - ( .length * (_local1.width + 2)));
_local1.y = 3;
.push(_local1);
++;
}
public static function
(){
var _local1:LifeClip = .pop();
MovieClip( ).mcContainer.removeChild(_local1);
--;
}
public static function (){
return ( );
}
public static function (){
= TOTAL_LIFES;
}
}
}//package
Section 220
//LifeClip (LifeClip)
package {
import flash.display.*;
public dynamic class LifeClip extends Sprite {
}
}//package
Section 221
//MagnetPaddle (MagnetPaddle)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.filters.*;
public class MagnetPaddle {
private var :DisplayObjectContainer;
private var :Number;// = 6
private var :Number;// = 15
private var
:Number;// = 1.3
private var ;// = "0x5C98EF"
private var :Number;// = 75
private var
:Number;// = 1
private var :Shape;
private var :Number;
private var :Number;// = 0.5
private var :Number;// = 5
private var :Number;// = 5
private var :Number;// = 5
private var :Number;// = 10
private var :GlowFilter;
private var :GameSound;
private var :Boolean;
public function MagnetPaddle(_arg1:DisplayObjectContainer){
= new Shape();
= ;
super();
= new GlowFilter( , , , , , );
.filters = [ ];
_arg1.addChild( );
= GameSound.
();
= _arg1;
}
public function (){
.graphics.clear();
.removeChild( );
}
public function update(_arg1:Point, _arg2:Point){
.graphics.clear();
if (!_arg1){
(false);
return;
};
(true);
(_arg2, _arg1);
(_arg1, _arg2);
}
private function (_arg1:Point, _arg2:Point){
var _local10:*;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
.graphics.lineStyle(
, , , true);
var _local3:Number = (_arg1.x - _arg2.x);
var _local4:Number = (_arg1.y - _arg2.y);
var _local5:Number = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
var _local6:Number = (_local5 / );
var _local7:Number = Math.atan2(_local4, _local3);
var _local8:Number = (_local5 / _local6);
var _local9:* = 0;
while (_local9 <
) {
.graphics.moveTo(_arg1.x, _arg1.y);
_local10 = 1;
while (_local10 <= _local6) {
_local11 = (_local8 * _local10);
_local12 = Math.floor((Math.random() * ( - ( / 2))));
_local13 = ((_arg1.x - (Math.cos(_local7) * _local11)) + (Math.cos((_local7 + 1.55)) * _local12));
_local14 = ((_arg1.y - (Math.sin(_local7) * _local11)) + (Math.sin((_local7 + 1.55)) * _local12));
.graphics.lineTo((_local13 - 9), (_local14 + 1));
_local10++;
};
_local9++;
};
}
private function
(_arg1:Point, _arg2:Point){
var _local10:*;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
.graphics.lineStyle(
, , , true);
var _local3:Number = (_arg1.x - _arg2.x);
var _local4:Number = (_arg1.y - _arg2.y);
var _local5:Number = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
var _local6:Number = (_local5 / );
var _local7:Number = Math.atan2(_local4, _local3);
var _local8:Number = (_local5 / _local6);
var _local9:* = 0;
while (_local9 <
) {
.graphics.moveTo(_arg1.x, _arg1.y);
_local10 = 1;
while (_local10 <= _local6) {
_local11 = (_local8 * _local10);
_local12 = Math.floor((Math.random() * ( - ( / 2))));
_local13 = ((_arg1.x - (Math.cos(_local7) * _local11)) + (Math.cos((_local7 + 1.55)) * _local12));
_local14 = ((_arg1.y - (Math.sin(_local7) * _local11)) + (Math.sin((_local7 + 1.55)) * _local12));
.graphics.lineTo((_local13 + 9), (_local14 + 1));
_local10++;
};
_local9++;
};
}
public function (_arg1:Boolean){
if (_arg1){
MovieClip( ).magnetEdge1.visible = true;
MovieClip( ).magnetEdge2.visible = true;
} else {
MovieClip( ).magnetEdge1.visible = false;
MovieClip( ).magnetEdge2.visible = false;
};
}
public function (){
= true;
}
public function
(){
= false;
}
}
}//package
Section 222
//MagnetPaddleBonus (MagnetPaddleBonus)
package {
import flash.display.*;
public dynamic class MagnetPaddleBonus extends Sprite {
}
}//package
Section 223
//MegaBallBonus (MegaBallBonus)
package {
import flash.display.*;
public dynamic class MegaBallBonus extends Sprite {
}
}//package
Section 224
//Message (Message)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class Message extends MovieClip {
public var btnContinue:SimpleButton;
private var txtScore:TextField;
private var txtMsg:TextField;
private var :TextField;
private var :String;// = ""
private static var
:Message = null;
public static var :String = "CONGRATULATIONS, YOU GOT A BETTER HIT!";
public static var :String = "LEVEL CLEARED!";
public static var :String = "OOPS! YOU LOST A LIFE!";
public static var :String = "BAD LUCK! YOU LOSS THE LAST HIT!!";
public static var
:String = "YOU GOT A BETTER HIT!
BUT YOU LOSS THE GAME!!";
public static var :String = "YOU LOST A LIFE! KEEP AWAY FROM KILLER!!";
public static var :String = "GAME PAUSED";
public static var
:String = "TIME UP! IT WAS NOT A BETTER HIT!!";
public static var :String = "TIME UP! YOU GOT A BETTER HIT!!";
public function Message():void{
txtMsg = (TextFormatAlign.CENTER);
txtScore = (TextFormatAlign.CENTER);
= (TextFormatAlign.CENTER);
addEventListener(Event.REMOVED_FROM_STAGE, );
}
private function (_arg1:Event):void{
switch ( ){
case :
case :
txtMsg.text = "";
txtScore.text = "";
.text = "";
removeChild(txtMsg);
removeChild(txtScore);
removeChild( );
break;
case :
case :
case
:
case :
case
:
case :
case :
txtMsg.text = "";
removeChild(txtMsg);
break;
};
}
public function (_arg1:String):void{
trace(("MSG : " + _arg1));
switch (_arg1){
case :
case :
(_arg1);
break;
case :
case :
case
:
case
:
case :
case :
case :
(_arg1);
break;
};
= _arg1;
}
public function (_arg1:String):TextField{
var _local2:TextField = new TextField();
_local2.autoSize = _arg1;
_local2.alpha = 0.6;
_local2.selectable = false;
var _local3:TextFormat = new TextFormat();
_local3.font = "D3 Euronism";
_local2.embedFonts = true;
_local3.color = 0xFFFFFF;
_local3.size = 15;
_local3.bold = true;
_local3.align = _arg1;
_local3.letterSpacing = 0;
_local2.defaultTextFormat = _local3;
return (_local2);
}
public function (_arg1:String){
addChild(txtMsg);
addChild(txtScore);
addChild( );
.x = 375;
.y = 290;
txtScore.x = 375;
txtScore.y = 240;
txtMsg.x = 380;
txtMsg.y = 190;
txtMsg.text = _arg1;
var _local2:GameTimer = GameTimer.
();
var _local3:ScoreManager = ScoreManager.
();
txtScore.text = ("SCORE: " + _local3.
());
.text = ("TIME LEFT: " + _local2.
());
}
public function (_arg1:String){
addChild(txtMsg);
txtMsg.x = 375;
txtMsg.y = 240;
txtMsg.text = _arg1;
}
public static function
():Message{
if (!
){
= new (Message);
};
return (
);
}
}
}//package
Section 225
//MiniBallBonus (MiniBallBonus)
package {
import flash.display.*;
public dynamic class MiniBallBonus extends MovieClip {
}
}//package
Section 226
//MultiExplodeBonus (MultiExplodeBonus)
package {
import flash.display.*;
public dynamic class MultiExplodeBonus extends Sprite {
}
}//package
Section 227
//PaddleActor (PaddleActor)
package {
import flash.display.*;
import Box2D.Common.Math.*;
import flash.geom.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import General.*;
public class PaddleActor extends Actor {
private var :GameSound;
private var :Input;
private var :MagnetPaddle;
private var :Boolean;
private var :Boolean;
private var :Number;// = 0
private var :Object;
public static const PADDLE_SPEED = 0;
public static const PADDLE_MAX_SPEED:int = 10;
public static var :int;
public static var
:int = 6000;
public function PaddleActor(_arg1:DisplayObjectContainer, _arg2:Point, _arg3:Point){
var _local4:MovieClip;
_local4 = new PaddleSprite();
MovieClip(_arg1).mcContainer.addChild(_local4);
_local4.x = _arg2.x;
_local4.y = _arg2.y;
MovieClip(_local4).gotoAndStop(2);
var _local5:b2PolygonDef = new b2PolygonDef();
_local5. (PhysVal. (((_local4.width - 15) / 2)), PhysVal. ((2 / 2)));
_local5. = 0;
_local5. = 0;
_local5. = 1;
_local5.filter. = 2;
var _local6:b2BodyDef = new b2BodyDef();
_local6.position.Set(PhysVal. (_arg2.x), PhysVal. ((_arg2.y - 18)));
_local6.angle = 0;
var _local7:b2Body = PhysVal. . (_local6);
_local7. (_local5);
super(_local7, _local4);
= _arg1;
= _local4.width;
= new MagnetPaddle(_local4);
= GameSound.
();
();
();
}
override protected function ():void{
var _local1:b2PolygonDef = new b2PolygonDef();
_local1. (PhysVal. (((
.width - 15) / 2)), PhysVal. ((2 / 2)));
_local1. = 0;
_local1. = 0;
_local1. = 1;
_local1.filter. = 2;
var _local2:b2BodyDef = new b2BodyDef();
_local2.position.Set(PhysVal. (
.x), PhysVal. ((
.y - 18)));
_local2.angle = 0;
var _local3:b2Body = PhysVal. . (_local2);
_local3. (_local1);
=
.width;
= _local3;
super. ();
();
}
private function ():void{
if (BonusActor. (PaddleEvent.SHOOT_PADDLE)){
();
};
}
override protected function ():void{
var _local2:Point;
var _local3:Point;
var _local1:* = MovieClip( ).mouseX;
if ((_local1 + (
.width / 2)) > PhysVal.SCREEN_WIDTH){
_local1 = (PhysVal.SCREEN_WIDTH - (
.width / 2));
};
if ((_local1 - (
.width / 2)) < PhysVal.LEFT_EDGE){
_local1 = (PhysVal.LEFT_EDGE + (
.width / 2));
};
if ( ){
_local2 = new Point(MovieClip(
).magnetEdge1.x, MovieClip(
).magnetEdge1.y);
_local3 = new Point(MovieClip(
).magnetEdge2.x, MovieClip(
).magnetEdge2.y);
.update(_local2, _local3);
} else {
.update(null, null);
};
(_local1);
super. ();
}
override protected function ():void{
. ();
super. ();
}
private function (_arg1:Number):void{
_arg1 = PhysVal. (_arg1);
. (new b2Vec2(_arg1, . ().y), 0);
}
private function (_arg1:Stage):void{
= new Input(_arg1);
}
public function (_arg1:b2Vec2){
}
public function (_arg1:Sprite):Boolean{
if (
.hitTestObject(_arg1)){
return (true);
};
return (false);
}
public function
(){
= true;
}
public function (){
= false;
. ( );
}
public function (){
if (MovieClip(
).currentFrame != MovieClip(
).totalFrames){
MovieClip(
).gotoAndStop((MovieClip(
).currentFrame + 1));
PhysVal. . ( );
();
};
}
public function
(){
if (MovieClip(
).currentFrame != 1){
MovieClip(
).gotoAndStop((MovieClip(
).currentFrame - 1));
PhysVal. . ( );
();
};
}
public function (){
MovieClip(
).gotoAndStop(2);
PhysVal. . ( );
();
}
public function (){
var _local1:Point = new Point(MovieClip(
).x, MovieClip(
).y);
_local1 = MovieClip(
.parent).localToGlobal(_local1);
return (_local1);
}
public function (){
MovieClip(
).mcGun1.visible = true;
MovieClip(
).mcGun2.visible = true;
}
public function (){
MovieClip(
).mcGun1.visible = false;
MovieClip(
).mcGun2.visible = false;
}
public function (){
return (
.width);
}
public function (){
return (
.height);
}
override protected function ():void{
.x = PhysVal. ( . ().x);
.y = (PhysVal. ( . ().y) + 18);
.rotation = (( . () * 180) / Math.PI);
super. ();
}
}
}//package
Section 228
//PaddleEvent (PaddleEvent)
package {
import flash.events.*;
public class PaddleEvent extends Event {
public static const EXPAND_PADDLE = "EXPAND_PADDLE";
public static const SHRINK_PADDLE = "SHRINK_PADDLE";
public static const LIFE_PADDLE = "LIFE_PADDLE";
public static const KILL_PADDLE = "KILL_PADDLE";
public static const SHOOT_PADDLE = "SHOOT_PADDLE";
public function PaddleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new PaddleEvent(type, bubbles, cancelable));
}
override public function toString():String{
return (formatToString("PaddleEvent", "type", "bubbles", "cancelable", "eventPhase"));
}
}
}//package
Section 229
//PaddleExpandBonus (PaddleExpandBonus)
package {
import flash.display.*;
public dynamic class PaddleExpandBonus extends Sprite {
}
}//package
Section 230
//PaddleKillBonus (PaddleKillBonus)
package {
import flash.display.*;
public dynamic class PaddleKillBonus extends MovieClip {
}
}//package
Section 231
//PaddleLifeBonus (PaddleLifeBonus)
package {
import flash.display.*;
public dynamic class PaddleLifeBonus extends Sprite {
}
}//package
Section 232
//PaddleShrinkBonus (PaddleShrinkBonus)
package {
import flash.display.*;
public dynamic class PaddleShrinkBonus extends Sprite {
}
}//package
Section 233
//PaddleSprite (PaddleSprite)
package {
import flash.display.*;
public dynamic class PaddleSprite extends MovieClip {
public var magnetEdge1:MovieClip;
public var v0:MovieClip;
public var v1:MovieClip;
public var paddle:MovieClip;
public var magnetEdge2:MovieClip;
public var mcGun1:MovieClip;
public var mcGun2:MovieClip;
public function PaddleSprite(){
addFrameScript(0, , 1, , 2,
);
}
function (){
stop();
magnetEdge1.visible = false;
magnetEdge2.visible = false;
}
function (){
stop();
magnetEdge1.visible = false;
magnetEdge2.visible = false;
}
function
(){
stop();
magnetEdge1.visible = false;
magnetEdge2.visible = false;
}
}
}//package
Section 234
//PhysVal (PhysVal)
package {
import Box2D.Dynamics.*;
public class PhysVal {
public static const SCREEN_WIDTH:int = 750;
public static const SCREEN_HEIGHT:int = 550;
public static const LEFT_EDGE:int = 0;
public static const TOP_EDGE:int = 0;
public static const RATIO:Number = 30;
public static const m_iterations:int = 10;
public static const m_timeStep:Number = 0.0333333333333333;
public static var :b2World;
public static function (_arg1:Number):Number{
return ((_arg1 / RATIO));
}
public static function (_arg1:Number):Number{
return ((_arg1 * RATIO));
}
}
}//package
Section 235
//ProjectContactListener (ProjectContactListener)
package {
import flash.display.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
public class ProjectContactListener extends b2ContactListener {
override public function Add(_arg1:b2ContactPoint):void{
if ((_arg1. . ().
() is BrickActor)){
if ((_arg1. . ().
() is BulletActor)){
if (!_arg1. . ().
(). ){
_arg1. . ().
(). (_arg1. . (). ());
_arg1. . ().
(). ();
};
} else {
_arg1. . ().
(). (_arg1. . (). ());
};
} else {
if ((_arg1. . ().
() is BrickActor)){
if ((_arg1. . ().
() is BulletActor)){
if (!_arg1. . ().
(). ){
_arg1. . ().
(). (_arg1. . (). ());
_arg1. . ().
(). ();
};
} else {
_arg1. . ().
(). (_arg1. . (). ());
};
} else {
if ((((_arg1. . ().
() is PaddleActor)) && ((_arg1. . ().
() is BallActor)))){
_arg1. . ().
(). (_arg1. . (). (), _arg1.position);
_arg1. . ().
().
();
} else {
if ((((_arg1. . ().
() is PaddleActor)) && ((_arg1. . ().
() is BallActor)))){
_arg1. . ().
(). (_arg1. . (). (), _arg1.position);
_arg1. . ().
().
();
};
};
};
};
super.Add(_arg1);
}
private function (_arg1:MovieClip){
switch (_arg1.name){
case "paddle":
break;
case "box":
_arg1.box.gotoAndStop((_arg1.box.currentFrame + 1));
break;
};
}
}
}//package
Section 236
//ScoreManager (ScoreManager)
package {
import flash.display.*;
import flash.text.*;
public class ScoreManager extends MovieClip {
public var txtScore:TextField;
private var :Array;
private var :Number;// = 0
private var
:Number;// = 0
public static var :Number = 50;
public static var :Number = 0;
public static var
:ScoreManager;
public function init():void{
= new Array();
var _local1:* = 1;
while (_local1 <= Levels.TOTAL_NO_LEVELS) {
[_local1] = 0;
_local1++;
};
= 0;
}
public function (_arg1:Number):void{
= ( + _arg1);
txtScore.text = String((
+ ));
}
public function (_arg1:int):Boolean{
if ( > [_arg1]){
[_arg1] = ;
= 0;
return (true);
};
= 0;
return (false);
}
public function (_arg1:int):void{
= 0;
=
(_arg1);
txtScore.text = String(
);
}
public function
(_arg1:Number):Number{
var _local2:Number = 0;
var _local3:* = 1;
while (_local3 <= Levels.TOTAL_NO_LEVELS) {
_local2 = (_local2 + [_local3]);
_local3++;
};
trace(("game score: " + (_local2 + )));
return ((_local2 - [_arg1]));
}
public function
():Number{
var _local1:Number = 0;
var _local2:* = 1;
while (_local2 <= Levels.TOTAL_NO_LEVELS) {
_local1 = (_local1 + [_local2]);
_local2++;
};
trace(("game score: " + (_local1 + )));
return ((_local1 + ));
}
public function
(){
= ( + );
}
public function
():void{
var _local1:GameTimer = GameTimer.
();
= (_local1.
* 10);
}
public function reset():void{
var _local1:* = 1;
while (_local1 <= Levels.TOTAL_NO_LEVELS) {
[_local1] = 0;
_local1++;
};
}
public static function
(){
if (!
){
= new (ScoreManager);
};
return (
);
}
}
}//package
Section 237
//ShootPaddleBonus (ShootPaddleBonus)
package {
import flash.display.*;
public dynamic class ShootPaddleBonus extends Sprite {
}
}//package
Section 238
//SndBrickHit (SndBrickHit)
package {
import flash.media.*;
public dynamic class SndBrickHit extends Sound {
}
}//package
Section 239
//SndFireBrickHit (SndFireBrickHit)
package {
import flash.media.*;
public dynamic class SndFireBrickHit extends Sound {
}
}//package
Section 240
//SndIntro (SndIntro)
package {
import flash.media.*;
public dynamic class SndIntro extends Sound {
}
}//package
Section 241
//SndInvisbleBrickHit (SndInvisbleBrickHit)
package {
import flash.media.*;
public dynamic class SndInvisbleBrickHit extends Sound {
}
}//package
Section 242
//SndMagnetPaddle (SndMagnetPaddle)
package {
import flash.media.*;
public dynamic class SndMagnetPaddle extends Sound {
}
}//package
Section 243
//SndMultiBrickHit (SndMultiBrickHit)
package {
import flash.media.*;
public dynamic class SndMultiBrickHit extends Sound {
}
}//package
Section 244
//SndNegativeBonus (SndNegativeBonus)
package {
import flash.media.*;
public dynamic class SndNegativeBonus extends Sound {
}
}//package
Section 245
//SndNegativeBonus11 (SndNegativeBonus11)
package {
import flash.media.*;
public dynamic class SndNegativeBonus11 extends Sound {
}
}//package
Section 246
//SndPaddleHit (SndPaddleHit)
package {
import flash.media.*;
public dynamic class SndPaddleHit extends Sound {
}
}//package
Section 247
//SndPositiveBonus (SndPositiveBonus)
package {
import flash.media.*;
public dynamic class SndPositiveBonus extends Sound {
}
}//package
Section 248
//SndShoot (SndShoot)
package {
import flash.media.*;
public dynamic class SndShoot extends Sound {
}
}//package
Section 249
//SndWallHit (SndWallHit)
package {
import flash.media.*;
public dynamic class SndWallHit extends Sound {
}
}//package
Section 250
//SpeedDownBonus (SpeedDownBonus)
package {
import flash.display.*;
public dynamic class SpeedDownBonus extends Sprite {
}
}//package
Section 251
//SpeedUpBonus (SpeedUpBonus)
package {
import flash.display.*;
public dynamic class SpeedUpBonus extends Sprite {
}
}//package
Section 252
//SPLITBALL8 (SPLITBALL8)
package {
import flash.display.*;
public dynamic class SPLITBALL8 extends MovieClip {
}
}//package
Section 253
//SplitBallBonus2 (SplitBallBonus2)
package {
import flash.display.*;
public dynamic class SplitBallBonus2 extends MovieClip {
}
}//package
Section 254
//TestApp (TestApp)
package {
import flash.display.*;
import flash.events.*;
import Box2D.Common.Math.*;
import flash.geom.*;
import Box2D.Collision.*;
import Box2D.Dynamics.*;
import General.*;
import flash.filters.*;
import flash.ui.*;
public class TestApp extends MovieClip {
public var mcBackground:Background;
public var mcBlackScreen:GameOverScreen;
public var btnSkip:SimpleButton;
public var mcContainer:MovieClip;
public var btnFireBall:MovieClip;
public var mcMenu:MovieClip;
public var mcLevelMsg:MovieClip;
public var mcPreloader:MovieClip;
public var btnPlay:SimpleButton;
public var
:String;
public var
;
public var
:ContextMenu;
private var :Input;
private var
:Array;
private var
:Array;
private var
:Array;
public var
:Array;
public var
:PaddleActor;
public var
:Array;
private var :Array;
private var :GameSound;
private var :int;// = 550
private var :int;// = 750
private var :Message;
private var :MovieClip;
private var :ScoreManager;
private var
:GameTimer;
private var ;// = false
private var :Number;// = 1
private var :Number;// = 2
private var :Number;// = 3
private var
:Number;// = 4
private var :Number;// = 5
private var :Number;// = 6
private var
:Number;// = 7
private var :Number;// = 8
private var :Number;// = 9
private var :Number;// = 10
private var ;// = 11
private var ;// = 12
private var ;// = 13
private var ;// = 14
private var ;// = 15
private var ;// = 16
private var ;// = 17
private var ;// = 18
private var ;// = 19
private var
;// = 20
private var ;// = 21
private var :Number;// = 0
private var :ProjectContactListener;
public function TestApp(){
addFrameScript(0, , 661,
, 684, , 685, , 688,
);
= GameSound.
();
= ScoreManager.
();
= GameTimer.
();
.init();
addEventListener(Event.ENTER_FRAME,
);
( );
}
public function
(){
stage.addEventListener(Event.ENTER_FRAME,
);
}
public function
(_arg1){
var _local2:Number = loaderInfo.bytesLoaded;
var _local3:Number = loaderInfo.bytesTotal;
var _local4:* = Math.round(((_local2 / _local3) * mcPreloader.totalFrames));
mcPreloader.gotoAndStop(_local4);
if (mcPreloader.currentFrame >= mcPreloader.totalFrames){
trace("loaing completed game loader");
stage.removeEventListener(Event.ENTER_FRAME,
);
play();
};
}
public function
(_arg1:MouseEvent){
play();
btnPlay.removeEventListener(MouseEvent.CLICK,
);
}
private function
(_arg1:Event):void{
var _local2:BrickActor;
var _local3:BallActor;
var _local4:BulletActor;
switch ( ){
case :
case :
case :
case :
case :
();
break;
case :
case
:
case :
case :
break;
case :
if (mcLevelMsg.currentFrame == mcLevelMsg.totalFrames){
( );
};
break;
case :
mcBackground.update();
break;
case :
if (
.length == 0){
( );
return;
};
if (
.length == 0){
( );
return;
};
PhysVal. . (PhysVal.m_timeStep, PhysVal.m_iterations);
for each (_local2 in
) {
_local2. ();
};
for each (_local3 in
) {
_local3. ();
};
for each (_local4 in
) {
_local4. ();
};
. ();
BonusActor. ();
();
};
}
private function (_arg1:Number):void{
switch (_arg1){
case :
case :
= _arg1;
break;
case :
case :
case :
();
= _arg1;
break;
case
:
();
( );
break;
case :
();
= _arg1;
break;
case :
= ;
break;
case :
.
();
();
= ;
break;
case :
mcLevelMsg.gotoAndPlay(2);
( );
break;
case
:
=
;
();
.
();
if ( . (Levels. ())){
(Message. );
} else {
(Message. );
};
Definitions.
= false;
break;
case :
();
.
();
mcBackground.
();
= ;
break;
case :
case :
= ;
();
Life.
();
if (Life. ()){
();
if (_arg1 == ){
(Message. );
} else {
(Message. );
};
} else {
trace("game over");
if ( . (Levels. ())){
(Message.
);
} else {
(Message. );
};
. ();
. ();
Definitions.
= false;
};
break;
case :
if (! ){
= ;
();
(Message. );
} else {
= ;
();
};
break;
case :
= ;
Definitions.
= false;
();
. ();
. ();
if ( . (Levels. ())){
(Message. );
} else {
(Message.
);
};
};
}
private function (){
switch (currentLabel){
case "intro":
( );
break;
case "help":
( );
break;
case "selection":
( );
break;
case "gameover":
( );
break;
case "game":
(
);
break;
};
}
public function (){
= [];
= [];
= [];
= [];
= [];
= [];
= Message.
();
();
();
. ();
}
private function (){
= ;
mcBackground.addEventListener(BonusEvent. , );
mcLevelMsg.mcMsg.txtMsg.text = ("LEVEL" + Levels. ());
mcBackground.gotoAndStop(Levels. ());
. (Levels. ());
(new Point(350, 200));
}
private function (_arg1:BonusEvent):void{
mcBackground.removeEventListener(BonusEvent. , );
(
);
}
private function (_arg1:Point):void{
= Levels. ();
.visible = false;
mcContainer.addChild( );
.x = _arg1.x;
.y = _arg1.y;
.addEventListener(Event.RENDER, );
stage.invalidate();
}
private function (_arg1:Event){
var _local3:MovieClip;
var _local4:Array;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:BrickActor;
.removeEventListener(Event.ADDED, );
var _local2:* = 0;
while (_local2 < .numChildren) {
if (((( .getChildAt(_local2) is MovieClip)) && (!((MovieClip( .getChildAt(_local2)).type == "joints"))))){
_local3 = MovieClip( .getChildAt(_local2));
_local4 = [];
_local5 = 0;
while (true) {
if (_local3[("v" + _local5)]){
_local6 = new Point(_local3[("v" + _local5)].x, _local3[("v" + _local5)].y);
_local6 = _local3.localToGlobal(_local6);
_local4.push(_local6);
} else {
break;
};
_local5++;
};
if (_local4.length){
_local7 = new Point(_local3.x, _local3.y);
_local7 = .localToGlobal(_local6);
_local8 = new BrickActor(_local3, _local4, _local7);
_local8.addEventListener(BrickEvent.DESTROY, );
_local8.addEventListener(BrickEvent.FIRE_BRICK, );
_local8.addEventListener(BrickEvent.GEN_BONUS, );
_local8.addEventListener(BrickEvent.SCORE_UPDATE, );
.push(_local8);
};
_local3.cacheAsBitmap = true;
};
_local2++;
};
();
();
();
}
private function (){
BrickJoint. ();
}
private function (){
var _local1:BrickJoint;
var _local2:Array;
var _local3:Array;
var _local4:BrickActor;
for each (_local1 in BrickJoint. ) {
_local2 = _local1. ();
_local3 = (_local2);
for each (_local4 in _local3) {
_local4. (_local3);
};
};
}
private function (){
mcContainer.addChild( );
mcContainer.addChild(
);
.visible = true;
Life. (this);
BonusActor. (Levels. ());
();
var _local1:Point = new Point(
. ().x, (
. ().y - PhysVal. (20)));
(_local1, 1);
( );
}
private function (){
.
(true);
.addEventListener(CustomTimerEvent.
, );
mcContainer.addEventListener(MouseEvent.CLICK, );
stage.addEventListener(KeyboardEvent.KEY_UP,
);
}
private function (_arg1:CustomTimerEvent):void{
( );
}
private function (){
mcContainer.removeEventListener(MouseEvent.CLICK, );
stage.removeEventListener(KeyboardEvent.KEY_UP,
);
}
private function
(_arg1:KeyboardEvent):void{
var _local2:* = _arg1.keyCode;
if (_local2 == 77){
if (GameSound.
()){
GameSound.
();
} else {
GameSound.
();
};
} else {
if (_local2 == 80){
( );
};
};
}
private function (_arg1:Array):Array{
var _local3:MovieClip;
var _local4:BrickActor;
var _local2:Array = [];
for each (_local3 in _arg1) {
for each (_local4 in
) {
if (BrickActor(_local4). (_local3)){
_local2.push(BrickActor(_local4));
break;
};
};
};
return (_local2);
}
private function (_arg1:MouseEvent):void{
var _local3:Actor;
var _local2:MovieClip = MovieClip(_arg1.currentTarget);
for each (_local3 in
) {
if ((((_local3 is BrickActor)) && (BrickActor(_local3). (_local2)))){
BrickActor(_local3). ();
};
};
}
private function
():void{
= new PaddleActor(this, new Point(300, 550), new Point(0, 0));
}
private function (_arg1:Event):void{
. (ScoreManager. );
}
private function (_arg1:Point, _arg2:uint, _arg3:Number=0):void{
var _local4:BallActor;
var _local8:int;
if (_arg2 == 1){
_local8 = (Math.floor((Math.random() * 120)) + 30);
_local4 = new BallActor(this, _arg1, _local8);
_local4.addEventListener(BonusEvent. , );
_local4.addEventListener(BallEvent.DESTROY, );
_local4.addEventListener(BallEvent.MAGNET_PADDLE, );
.push(_local4);
trace("making ball");
return;
};
var _local5 = 45;
var _local6:int = _local5;
var _local7:* = 0;
while (_local7 < _arg2) {
_local4 = new BallActor(this, _arg1, (_arg3 + _local6));
_local4.addEventListener(BonusEvent. , );
_local4.addEventListener(BallEvent.DESTROY, );
_local4.addEventListener(BallEvent.MAGNET_PADDLE, );
.push(_local4);
_local6 = (_local6 + _local5);
_local7++;
};
}
private function ():void{
var _local1:b2DebugDraw = new b2DebugDraw();
var _local2:Sprite = new Sprite();
addChild(_local2);
_local1.
= _local2;
_local1. (b2DebugDraw. );
_local1. = 30;
_local1. = 0;
_local1. = 2;
_local1. = 4294967295;
PhysVal. . (_local1);
}
public function ():void{
var _local1:Actor;
var _local2:int;
for each (_local1 in
) {
_local1. ();
if ((_local1 is BallActor)){
_local2 =
.indexOf(_local1);
if (_local2 >= 0){
.splice(_local2, 1);
};
} else {
if ((_local1 is BrickActor)){
_local2 =
.indexOf(_local1);
if (_local2 >= 0){
.splice(_local2, 1);
};
} else {
if ((_local1 is BulletActor)){
_local2 =
.indexOf(_local1);
if (_local2 >= 0){
.splice(_local2, 1);
};
};
};
};
};
= [];
}
public function (_arg1:Actor):void{
if (
.indexOf(_arg1) < 0){
.push(_arg1);
};
}
private function (_arg1:BrickEvent):void{
var _local2:BrickActor = BrickActor(_arg1.currentTarget);
_local2.removeEventListener(BrickEvent.FIRE_BRICK, );
_local2.removeEventListener(BrickEvent.DESTROY, );
(_local2);
}
private function (_arg1:BallEvent):void{
var _local2:BallActor = BallActor(_arg1.currentTarget);
_local2.removeEventListener(BonusEvent. , );
_local2.removeEventListener(BallEvent.MAGNET_PADDLE, );
_local2.removeEventListener(BallEvent.DESTROY, );
(_local2);
}
private function (_arg1:BulletEvent):void{
var _local2:BulletActor = BulletActor(_arg1.currentTarget);
_local2.removeEventListener(BulletEvent.DESTROY, );
(_local2);
}
private function (_arg1:BrickEvent):void{
var _local2:BrickActor = BrickActor(_arg1.currentTarget);
_local2. ();
_local2.removeEventListener(BrickEvent.FIRE_BRICK, );
}
private function (_arg1:MouseEvent=null){
.btnContinue.removeEventListener(MouseEvent.CLICK, );
= false;
();
removeChild( );
.
(true);
= ;
}
private function (_arg1:MouseEvent){
.btnContinue.removeEventListener(MouseEvent.CLICK, );
();
removeChild( );
();
if (Levels. () == Levels.TOTAL_NO_LEVELS){
( );
gotoAndStop("gameover");
} else {
Levels. ();
( );
gotoAndStop("selection");
};
Mouse.show();
}
private function (_arg1:MouseEvent){
.btnContinue.removeEventListener(MouseEvent.CLICK, );
();
();
removeChild( );
( );
gotoAndStop("gameover");
Mouse.show();
();
}
function
(_arg1:MouseEvent){
trace("continue game");
.btnContinue.removeEventListener(MouseEvent.CLICK,
);
.
();
();
();
removeChild( );
();
.
(true);
= ;
}
private function (){
.btnContinue.addEventListener(MouseEvent.CLICK, );
= true;
}
private function (_arg1:String){
.
(false);
();
addChild( );
Mouse.show();
switch (_arg1){
case Message. :
case Message. :
. (_arg1);
.btnContinue.addEventListener(MouseEvent.CLICK, );
break;
case Message. :
. (_arg1);
.btnContinue.addEventListener(MouseEvent.CLICK,
);
break;
case Message. :
case Message.
:
case Message. :
case Message.
:
trace("msg");
. (_arg1);
.btnContinue.addEventListener(MouseEvent.CLICK, );
break;
case Message. :
. (_arg1);
.btnContinue.addEventListener(MouseEvent.CLICK,
);
break;
case Message. :
. (_arg1);
.btnContinue.addEventListener(MouseEvent.CLICK, );
break;
};
}
private function
():void{
();
();
BonusActor. ();
Definitions.
= false;
BallActor.restore();
. ();
. ();
. ();
var _local1:Point = new Point(
. ().x, (
. ().y - PhysVal. (20)));
(_local1, 1);
Mouse.show();
}
private function (){
var _local1:BallActor;
for each (_local1 in
) {
_local1.dispatchEvent(new BallEvent(BallEvent.DESTROY));
};
();
}
private function (){
var _local1:BrickActor;
for each (_local1 in
) {
_local1.dispatchEvent(new BrickEvent(BrickEvent.DESTROY));
};
();
}
private function (){
var _local1:BulletActor;
for each (_local1 in
) {
_local1.dispatchEvent(new BulletEvent(BulletEvent.DESTROY));
};
();
}
private function (){
();
();
();
mcContainer.removeChild(
);
mcContainer.removeChild( );
. ();
. ();
mcContainer.removeChild( );
= null;
BallActor.restore();
BonusActor.reset();
. ();
BrickJoint. ();
Life. ();
Definitions.
= false;
}
private function (_arg1:MouseEvent):void{
(
);
}
private function ():void{
var _local1:b2AABB = new b2AABB();
_local1. .Set(PhysVal. (-3000), PhysVal. (-3000));
_local1. .Set(PhysVal. (3000), PhysVal. (3000));
var _local2:b2Vec2 = new b2Vec2(0, 0.2);
var _local3:Boolean;
PhysVal. = new b2World(_local1, _local2, _local3);
= new ProjectContactListener();
PhysVal. . ( );
}
public function ():b2Vec2{
return (
. ());
}
private function (_arg1:MouseEvent):void{
var _local2:BallActor;
var _local3:Bullet;
var _local4:Point;
var _local5:*;
if (BonusActor. (PaddleEvent.SHOOT_PADDLE)){
. ();
_local3 = new Bullet();
addChild(_local3);
_local4 =
. ();
_local3.x = (_local4.x - (
. () / 2));
_local3.y = (_local4.y - 40);
_local5 = new BulletActor(_local3, new Point(_local3.x, _local3.y));
_local5.addEventListener(BulletEvent.DESTROY, );
.push(_local5);
_local3 = new Bullet();
addChild(_local3);
_local3.x = (_local4.x + (
. () / 2));
_local3.y = (_local4.y - 40);
_local5 = new BulletActor(_local3, new Point(_local3.x, _local3.y));
_local5.addEventListener(BulletEvent.DESTROY, );
.push(_local5);
. ( .SHOOT);
};
. ();
for each (_local2 in
) {
_local2. ();
};
if (!Definitions.
){
Definitions.
= true;
};
}
private function (_arg1:BrickEvent):void{
var _local4:Point;
var _local5:BonusActor;
var _local2:BrickActor = BrickActor(_arg1.currentTarget);
var _local3:String = BonusActor. ();
if (_local3){
_local4 = _local2. ();
_local5 = new BonusActor(this, _local2, _local3, _local4);
};
_local2.removeEventListener(BrickEvent.GEN_BONUS, );
}
public function ():void{
. ( .POSITIVE_BONUS);
. ();
}
public function (){
var _local1:BallActor;
for each (_local1 in
) {
_local1.dispatchEvent(new BallEvent(BallEvent.FIRE_BALL));
};
. ( .POSITIVE_BONUS);
}
public function (_arg1:int){
var _local4:*;
var _local5:Number;
var _local2:int =
.length;
var _local3:* = 0;
while (_local3 < _local2) {
_local4 =
[_local3]. ();
_local5 =
[_local3].
();
(_local4, _arg1, ((_local5 * 180) / Math.PI));
_local3++;
};
. ( .POSITIVE_BONUS);
}
private function (_arg1:BallEvent){
.
();
}
public function
(){
. ( .POSITIVE_BONUS);
. ();
}
public function (){
. ( .NEGATIVE_BONUS);
.
();
}
public function (){
var _local1:BallActor;
for each (_local1 in
) {
_local1.dispatchEvent(new BallEvent(BallEvent.MEGA_BALL));
};
. ( .POSITIVE_BONUS);
}
public function (){
var _local1:BallActor;
for each (_local1 in
) {
_local1.dispatchEvent(new BallEvent(BallEvent.MINI_BALL));
};
. ( .NEGATIVE_BONUS);
}
public function (){
BallActor. ();
. ( .POSITIVE_BONUS);
}
public function
(){
BallActor.
();
. ( .NEGATIVE_BONUS);
}
public function (){
var _local1:BrickActor;
for each (_local1 in
) {
_local1. ();
};
. ( .POSITIVE_BONUS);
}
public function (){
var _local1:BrickActor;
for each (_local1 in
) {
_local1. ();
};
for each (_local1 in
) {
_local1. ();
};
. ( .POSITIVE_BONUS);
}
public function (){
var _local1:BallActor;
BallActor.
= true;
for each (_local1 in
) {
_local1. ();
};
. ( .POSITIVE_BONUS);
}
public function (){
var _local1:BrickActor;
for each (_local1 in
) {
_local1.
();
};
. ( .POSITIVE_BONUS);
}
public function (){
Life. ();
. ( .POSITIVE_BONUS);
}
public function (){
( );
. ( .NEGATIVE_BONUS);
}
private function (){
. ( .INTRO);
}
function (){
var _local2:*;
var _local1:* = 0;
while (_local1 < this.numChildren) {
_local2 = getChildAt(_local1);
(_local2);
_local1++;
};
}
function (){
var _local2:*;
var _local1:* = 0;
while (_local1 < this.numChildren) {
_local2 = getChildAt(_local1);
(_local2);
_local1++;
};
}
function (_arg1:DisplayObject):void{
var _local2:BlurFilter = new BlurFilter();
_local2.blurX = 7;
_local2.blurY = 7;
_local2.quality = BitmapFilterQuality.MEDIUM;
_arg1.filters = [_local2];
}
function (_arg1:DisplayObject):void{
var _local2:BlurFilter = new BlurFilter();
_local2.blurX = 0;
_local2.blurY = 0;
_local2.quality = BitmapFilterQuality.MEDIUM;
_arg1.filters = [_local2];
_arg1.filters = null;
}
private function (){
try {
if (this["gc"]){
};
} catch(e) {
};
}
private function (_arg1:BrickEvent):void{
var _local2:BrickActor = BrickActor(_arg1.currentTarget);
_local2.removeEventListener(BrickEvent.SCORE_UPDATE, );
. (_local2. );
}
function (){
= "http://www.games1.com/";
= "http://www.crazyantz.com";
= new ContextMenu();
.hideBuiltInItems();
contextMenu =
;
}
function
(){
();
stop();
}
function (){
stop();
btnPlay.addEventListener(MouseEvent.CLICK,
);
}
function (){
stop();
}
function
(){
stop();
}
}
}//package
Section 255
//ThroughBrickBonus (ThroughBrickBonus)
package {
import flash.display.*;
public dynamic class ThroughBrickBonus extends Sprite {
}
}//package
Section 256
//Vertex (Vertex)
package {
import flash.display.*;
public dynamic class Vertex extends MovieClip {
public function Vertex(){
addFrameScript(0, );
}
function (){
visible = false;
}
}
}//package
Section 257
//ZapBrickBonus (ZapBrickBonus)
package {
import flash.display.*;
public dynamic class ZapBrickBonus extends Sprite {
}
}//package