Section 1
//b2CircleDef (Box2D.Collision.Shapes.b2CircleDef)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
public class b2CircleDef extends b2ShapeDef {
public var localPosition:b2Vec2;
public var radius:Number;
public function b2CircleDef(){
localPosition = new b2Vec2(0, 0);
super();
type = b2Shape.e_circleShape;
radius = 1;
}
}
}//package Box2D.Collision.Shapes
Section 2
//b2CircleShape (Box2D.Collision.Shapes.b2CircleShape)
package Box2D.Collision.Shapes {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2CircleShape extends b2Shape {
public var m_radius:Number;
public var m_localPosition:b2Vec2;
public function b2CircleShape(_arg1:b2ShapeDef){
var _local2:b2CircleDef;
m_localPosition = new b2Vec2();
super(_arg1);
_local2 = (_arg1 as b2CircleDef);
m_type = e_circleShape;
m_localPosition.SetV(_local2.localPosition);
m_radius = _local2.radius;
}
override public function TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{
var _local3:b2Mat22;
var _local4:Number;
var _local5:Number;
_local3 = _arg1.R;
_local4 = (_arg1.position.x + ((_local3.col1.x * m_localPosition.x) + (_local3.col2.x * m_localPosition.y)));
_local5 = (_arg1.position.y + ((_local3.col1.y * m_localPosition.x) + (_local3.col2.y * m_localPosition.y)));
_local4 = (_arg2.x - _local4);
_local5 = (_arg2.y - _local5);
return ((((_local4 * _local4) + (_local5 * _local5)) <= (m_radius * m_radius)));
}
public function GetLocalPosition():b2Vec2{
return (m_localPosition);
}
override public function TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
var _local6:b2Mat22;
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;
_local6 = _arg1.R;
_local7 = (_arg1.position.x + ((_local6.col1.x * m_localPosition.x) + (_local6.col2.x * m_localPosition.y)));
_local8 = (_arg1.position.x + ((_local6.col1.y * m_localPosition.x) + (_local6.col2.y * m_localPosition.y)));
_local9 = (_arg4.p1.x - _local7);
_local10 = (_arg4.p1.y - _local8);
_local11 = (((_local9 * _local9) + (_local10 * _local10)) - (m_radius * m_radius));
if (_local11 < 0){
return (false);
};
_local12 = (_arg4.p2.x - _arg4.p1.x);
_local13 = (_arg4.p2.y - _arg4.p1.y);
_local14 = ((_local9 * _local12) + (_local10 * _local13));
_local15 = ((_local12 * _local12) + (_local13 * _local13));
_local16 = ((_local14 * _local14) - (_local15 * _local11));
if ((((_local16 < 0)) || ((_local15 < Number.MIN_VALUE)))){
return (false);
};
_local17 = -((_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 ComputeMass(_arg1:b2MassData):void{
_arg1.mass = (((m_density * b2Settings.b2_pi) * m_radius) * m_radius);
_arg1.center.SetV(m_localPosition);
_arg1.I = (_arg1.mass * (((0.5 * m_radius) * m_radius) + ((m_localPosition.x * m_localPosition.x) + (m_localPosition.y * m_localPosition.y))));
}
override public function ComputeSweptAABB(_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{
var _local4:b2Mat22;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local4 = _arg2.R;
_local5 = (_arg2.position.x + ((_local4.col1.x * m_localPosition.x) + (_local4.col2.x * m_localPosition.y)));
_local6 = (_arg2.position.y + ((_local4.col1.y * m_localPosition.x) + (_local4.col2.y * m_localPosition.y)));
_local4 = _arg3.R;
_local7 = (_arg3.position.x + ((_local4.col1.x * m_localPosition.x) + (_local4.col2.x * m_localPosition.y)));
_local8 = (_arg3.position.y + ((_local4.col1.y * m_localPosition.x) + (_local4.col2.y * m_localPosition.y)));
_arg1.lowerBound.Set((((_local5 < _local7)) ? _local5 : _local7 - m_radius), (((_local6 < _local8)) ? _local6 : _local8 - m_radius));
_arg1.upperBound.Set((((_local5 > _local7)) ? _local5 : _local7 + m_radius), (((_local6 > _local8)) ? _local6 : _local8 + m_radius));
}
public function GetRadius():Number{
return (m_radius);
}
override public function UpdateSweepRadius(_arg1:b2Vec2):void{
var _local2:Number;
var _local3:Number;
_local2 = (m_localPosition.x - _arg1.x);
_local3 = (m_localPosition.y - _arg1.y);
_local2 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3)));
m_sweepRadius = ((_local2 + m_radius) - b2Settings.b2_toiSlop);
}
override public function ComputeAABB(_arg1:b2AABB, _arg2:b2XForm):void{
var _local3:b2Mat22;
var _local4:Number;
var _local5:Number;
_local3 = _arg2.R;
_local4 = (_arg2.position.x + ((_local3.col1.x * m_localPosition.x) + (_local3.col2.x * m_localPosition.y)));
_local5 = (_arg2.position.y + ((_local3.col1.y * m_localPosition.x) + (_local3.col2.y * m_localPosition.y)));
_arg1.lowerBound.Set((_local4 - m_radius), (_local5 - m_radius));
_arg1.upperBound.Set((_local4 + m_radius), (_local5 + m_radius));
}
}
}//package Box2D.Collision.Shapes
Section 3
//b2ConcaveArcDef (Box2D.Collision.Shapes.b2ConcaveArcDef)
package Box2D.Collision.Shapes {
public class b2ConcaveArcDef extends b2PolygonDef {
public var radius:Number;
public function b2ConcaveArcDef(){
type = b2Shape.e_concaveArcShape;
radius = 1;
}
}
}//package Box2D.Collision.Shapes
Section 4
//b2ConcaveArcShape (Box2D.Collision.Shapes.b2ConcaveArcShape)
package Box2D.Collision.Shapes {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2ConcaveArcShape extends b2PolygonShape {
public var m_radius2:Number;
public var m_dot:Number;
public var m_radius:Number;
public var m_norm:Number;
public var m_arcCenter:b2Vec2;
public function b2ConcaveArcShape(_arg1:b2ShapeDef){
var _local2:b2ConcaveArcDef;
var _local3:b2Vec2;
var _local4:b2Vec2;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
super(_arg1);
_local2 = (_arg1 as b2ConcaveArcDef);
m_radius = _local2.radius;
m_radius2 = (m_radius * m_radius);
_local3 = m_vertices[0];
_local4 = m_vertices[1];
_local5 = (_local3.x - _local4.x);
_local6 = (_local3.y - _local4.y);
_local7 = ((_local5 * _local5) + (_local6 * _local6));
_local8 = Math.sqrt(_local7);
if ((_local7 / 4) > m_radius2){
m_radius2 = (_local7 / 4);
m_radius = (_local8 / 2);
};
_local9 = Math.sqrt((m_radius2 - (_local7 * 0.25)));
m_arcCenter = new b2Vec2((((_local3.x + _local4.x) / 2) + (_local9 * m_normals[0].x)), (((_local3.y + _local4.y) / 2) + (_local9 * m_normals[0].y)));
m_dot = (_local9 / m_radius);
m_norm = ((_local8 / 2) / m_radius);
_local10 = ((m_radius + b2Settings.b2_toiSlop) * (m_radius + b2Settings.b2_toiSlop));
_local11 = m_normals[(m_vertexCount - 1)].x;
_local12 = m_normals[(m_vertexCount - 1)].y;
_local5 = (m_coreVertices[0].x - m_arcCenter.x);
_local6 = (m_coreVertices[0].y - m_arcCenter.y);
_local8 = ((_local5 * _local11) + (_local6 * _local12));
_local7 = Math.sqrt((_local10 - (_local8 * _local8)));
m_coreVertices[0].x = ((m_arcCenter.x + (_local8 * _local11)) + (_local7 * _local12));
m_coreVertices[0].y = ((m_arcCenter.y + (_local8 * _local12)) - (_local7 * _local11));
_local11 = m_normals[1].x;
_local12 = m_normals[1].y;
_local5 = (m_coreVertices[1].x - m_arcCenter.x);
_local6 = (m_coreVertices[1].y - m_arcCenter.y);
_local8 = ((_local5 * _local11) + (_local6 * _local12));
_local7 = Math.sqrt((_local10 - (_local8 * _local8)));
m_coreVertices[1].x = ((m_arcCenter.x + (_local8 * _local11)) - (_local7 * _local12));
m_coreVertices[1].y = ((m_arcCenter.y + (_local8 * _local12)) + (_local7 * _local11));
m_type = b2Shape.e_concaveArcShape;
}
override public function TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
b2Settings.b2Assert(false);
return (false);
}
override public function ComputeMass(_arg1:b2MassData):void{
super.ComputeMass(_arg1);
}
override public function TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{
var _local3:b2Mat22;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:b2Vec2;
var _local10:Number;
_local3 = _arg1.R;
_local4 = (_arg2.x - _arg1.position.x);
_local5 = (_arg2.y - _arg1.position.y);
_local6 = ((_local4 * _local3.col1.x) + (_local5 * _local3.col1.y));
_local7 = ((_local4 * _local3.col2.x) + (_local5 * _local3.col2.y));
_local8 = 0;
while (_local8 < m_vertexCount) {
_local9 = m_vertices[_local8];
_local4 = (_local6 - _local9.x);
_local5 = (_local7 - _local9.y);
_local10 = ((_local9.x * _local4) + (_local9.y * _local5));
if (_local10 > 0){
return (false);
};
_local8++;
};
_local4 = (_local6 - m_arcCenter.x);
_local5 = (_local7 - m_arcCenter.y);
return ((((_local4 * _local4) + (_local5 * _local5)) > m_radius2));
}
public static function TriangleMass(_arg1:b2MassData, _arg2:b2Vec2, _arg3:b2Vec2, _arg4:b2Vec2, _arg5:Number):void{
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;
var _local18:Number;
var _local19:Number;
var _local20:Number;
_local6 = (1 / 3);
_local7 = (_arg3.x - _arg2.x);
_local8 = (_arg3.y - _arg2.y);
_local9 = (_arg4.x - _arg2.x);
_local10 = (_arg4.y - _arg2.y);
_local11 = ((_local7 * _local10) - (_local8 * _local9));
_local12 = (0.5 * _local11);
_arg1.mass = (_local12 * _arg5);
_arg1.center.x = (_local6 * ((_arg2.x + _arg3.x) + _arg4.x));
_arg1.center.y = (_local6 * ((_arg2.y + _arg3.y) + _arg4.y));
_local13 = _arg2.x;
_local14 = _arg2.y;
_local15 = _local7;
_local16 = _local8;
_local17 = _local9;
_local18 = _local10;
_local19 = ((_local6 * ((0.25 * (((_local15 * _local15) + (_local17 * _local15)) + (_local17 * _local17))) + ((_local13 * _local15) + (_local13 * _local17)))) + ((0.5 * _local13) * _local13));
_local20 = ((_local6 * ((0.25 * (((_local16 * _local16) + (_local18 * _local16)) + (_local18 * _local18))) + ((_local14 * _local16) + (_local14 * _local18)))) + ((0.5 * _local14) * _local14));
_arg1.I = ((_local11 * (_local19 + _local20)) * _arg5);
}
public static function SegmentMass(_arg1:b2MassData, _arg2:b2Vec2, _arg3:Number, _arg4:b2Vec2, _arg5:Number, _arg6:Number):void{
var _local7:Number;
var _local8:Number;
_local7 = (Math.asin(((_arg5 / _arg3) / 2)) * 2);
_arg1.mass = ((((0.5 * _arg3) * _arg3) * _local7) * _arg6);
_local8 = (((2 / 3) * _arg5) / _local7);
if (_local7 < Number.MIN_VALUE){
_local8 = ((2 / 3) * _arg3);
};
_arg1.center = new b2Vec2((_arg2.x - (_arg4.x * _local8)), (_arg2.y - (_arg4.y * _local8)));
_arg1.I = ((((0.5 * _arg1.mass) * _arg3) * _arg3) - ((_arg1.mass * _local8) * _local8));
}
}
}//package Box2D.Collision.Shapes
Section 5
//b2ConvexArcDef (Box2D.Collision.Shapes.b2ConvexArcDef)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
public class b2ConvexArcDef extends b2ShapeDef {
public var offset:Number;
public var radius:Number;
public var norm:b2Vec2;
public function b2ConvexArcDef(){
type = b2Shape.e_convexArcShape;
norm = new b2Vec2(0, 1);
radius = 50;
offset = 0;
}
}
}//package Box2D.Collision.Shapes
Section 6
//b2ConvexArcShape (Box2D.Collision.Shapes.b2ConvexArcShape)
package Box2D.Collision.Shapes {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2ConvexArcShape extends b2Shape {
public var m_dot:Number;
public var m_vertices:Array;
public var m_d:Number;
public var m_offset:Number;
public var m_radius:Number;
public var m_obb:b2OBB;
public var m_norm:b2Vec2;
public var m_localPosition:b2Vec2;
public function b2ConvexArcShape(_arg1:b2ShapeDef){
m_localPosition = new b2Vec2();
m_obb = new b2OBB();
m_vertices = [new b2Vec2(), new b2Vec2()];
m_norm = new b2Vec2();
super(_arg1);
}
override public function TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{
b2Settings.b2Assert(false);
return (false);
}
override public function TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
b2Settings.b2Assert(false);
return (false);
}
override public function ComputeMass(_arg1:b2MassData):void{
}
public function Support(_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{
b2Settings.b2Assert(false);
return (null);
}
override public function ComputeSweptAABB(_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{
super.ComputeSweptAABB(_arg1, _arg2, _arg3);
}
public function GetOBB():b2OBB{
return (m_obb);
}
override public function UpdateSweepRadius(_arg1:b2Vec2):void{
}
override public function ComputeAABB(_arg1:b2AABB, _arg2:b2XForm):void{
super.ComputeAABB(_arg1, _arg2);
}
}
}//package Box2D.Collision.Shapes
Section 7
//b2FilterData (Box2D.Collision.Shapes.b2FilterData)
package Box2D.Collision.Shapes {
public class b2FilterData {
public var maskBits:uint;// = 0xFFFF
public var groupIndex:int;// = 0
public var categoryBits:uint;// = 1
public function b2FilterData(){
categoryBits = 1;
maskBits = 0xFFFF;
groupIndex = 0;
super();
}
public function Copy():b2FilterData{
var _local1:b2FilterData;
_local1 = new b2FilterData();
_local1.categoryBits = categoryBits;
_local1.maskBits = maskBits;
_local1.groupIndex = groupIndex;
return (_local1);
}
}
}//package Box2D.Collision.Shapes
Section 8
//b2MassData (Box2D.Collision.Shapes.b2MassData)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
public class b2MassData {
public var mass:Number;// = 0
public var center:b2Vec2;
public var I:Number;// = 0
public function b2MassData(){
mass = 0;
center = new b2Vec2(0, 0);
I = 0;
super();
}
public function Set(_arg1:b2MassData):void{
mass = _arg1.mass;
center.x = _arg1.center.x;
center.y = _arg1.center.y;
I = _arg1.I;
}
public static function Add(... _args):b2MassData{
var _local2:b2MassData;
var _local3:b2MassData;
var _local4:b2Vec2;
_local2 = new (b2MassData);
for each (_local3 in _args) {
_local2.mass = (_local2.mass + _local3.mass);
};
if (Math.abs(_local2.mass) > Number.MIN_VALUE){
for each (_local3 in _args) {
_local2.center.x = (_local2.center.x + (_local3.mass * _local3.center.x));
_local2.center.y = (_local2.center.y + (_local3.mass * _local3.center.y));
};
_local2.center.x = (_local2.center.x / _local2.mass);
_local2.center.y = (_local2.center.y / _local2.mass);
for each (_local3 in _args) {
_local2.I = (_local2.I + _local3.I);
_local4 = b2Math.SubtractVV(_local3.center, _local2.center);
_local2.I = (_local2.I + (_local3.mass * b2Math.b2Dot(_local4, _local4)));
};
};
return (_local2);
}
}
}//package Box2D.Collision.Shapes
Section 9
//b2PolygonDef (Box2D.Collision.Shapes.b2PolygonDef)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2PolygonDef extends b2ShapeDef {
public var vertexCount:int;
public var vertices:Array;
private static var s_mat:b2Mat22 = new b2Mat22();
public function b2PolygonDef(){
var _local1:int;
vertices = new Array(b2Settings.b2_maxPolygonVertices);
super();
type = b2Shape.e_polygonShape;
vertexCount = 0;
_local1 = 0;
while (_local1 < b2Settings.b2_maxPolygonVertices) {
vertices[_local1] = new b2Vec2();
_local1++;
};
}
public function SetAsOrientedBox(_arg1:Number, _arg2:Number, _arg3:b2Vec2=null, _arg4:Number=0):void{
var _local5:b2Vec2;
var _local6:b2Mat22;
var _local7:int;
vertexCount = 4;
vertices[0].Set(-(_arg1), -(_arg2));
vertices[1].Set(_arg1, -(_arg2));
vertices[2].Set(_arg1, _arg2);
vertices[3].Set(-(_arg1), _arg2);
if (_arg3){
_local5 = _arg3;
_local6 = s_mat;
_local6.Set(_arg4);
_local7 = 0;
while (_local7 < vertexCount) {
_arg3 = vertices[_local7];
_arg1 = (_local5.x + ((_local6.col1.x * _arg3.x) + (_local6.col2.x * _arg3.y)));
_arg3.y = (_local5.y + ((_local6.col1.y * _arg3.x) + (_local6.col2.y * _arg3.y)));
_arg3.x = _arg1;
_local7++;
};
};
}
public function SetAsBox(_arg1:Number, _arg2:Number):void{
vertexCount = 4;
vertices[0].Set(-(_arg1), -(_arg2));
vertices[1].Set(_arg1, -(_arg2));
vertices[2].Set(_arg1, _arg2);
vertices[3].Set(-(_arg1), _arg2);
}
}
}//package Box2D.Collision.Shapes
Section 10
//b2PolygonShape (Box2D.Collision.Shapes.b2PolygonShape)
package Box2D.Collision.Shapes {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2PolygonShape extends b2Shape {
public var m_vertices:Array;
public var m_normals:Array;
private var s_supportVec:b2Vec2;
public var m_obb:b2OBB;
public var m_coreVertices:Array;
public var m_centroid:b2Vec2;
public var m_vertexCount:int;
private static var s_computeMat:b2Mat22 = new b2Mat22();
private static var s_sweptAABB1:b2AABB = new b2AABB();
private static var s_sweptAABB2:b2AABB = new b2AABB();
public function b2PolygonShape(_arg1:b2ShapeDef){
var _local2:b2PolygonDef;
var _local3:int;
var _local4:int;
var _local5: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;
s_supportVec = new b2Vec2();
m_obb = new b2OBB();
m_vertices = new Array(b2Settings.b2_maxPolygonVertices);
m_normals = new Array(b2Settings.b2_maxPolygonVertices);
m_coreVertices = new Array(b2Settings.b2_maxPolygonVertices);
super(_arg1);
m_type = e_polygonShape;
_local2 = (_arg1 as b2PolygonDef);
m_vertexCount = _local2.vertexCount;
_local4 = _local3;
_local5 = _local3;
_local3 = 0;
while (_local3 < m_vertexCount) {
m_vertices[_local3] = _local2.vertices[_local3].Copy();
_local3++;
};
_local3 = 0;
while (_local3 < m_vertexCount) {
_local4 = _local3;
_local5 = (((_local3 + 1) < m_vertexCount)) ? (_local3 + 1) : 0;
_local6 = (m_vertices[_local5].x - m_vertices[_local4].x);
_local7 = (m_vertices[_local5].y - m_vertices[_local4].y);
_local8 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7)));
m_normals[_local3] = new b2Vec2((_local7 / _local8), (-(_local6) / _local8));
_local3++;
};
m_centroid = ComputeCentroid(_local2.vertices, _local2.vertexCount);
ComputeOBB(m_obb, m_vertices, m_vertexCount);
_local3 = 0;
while (_local3 < m_vertexCount) {
_local4 = (((_local3 - 1) >= 0)) ? (_local3 - 1) : (m_vertexCount - 1);
_local5 = _local3;
_local9 = m_normals[_local4].x;
_local10 = m_normals[_local4].y;
_local11 = m_normals[_local5].x;
_local12 = m_normals[_local5].y;
_local13 = (m_vertices[_local3].x - m_centroid.x);
_local14 = (m_vertices[_local3].y - m_centroid.y);
_local15 = (((_local9 * _local13) + (_local10 * _local14)) - b2Settings.b2_toiSlop);
_local16 = (((_local11 * _local13) + (_local12 * _local14)) - b2Settings.b2_toiSlop);
_local17 = (1 / ((_local9 * _local12) - (_local10 * _local11)));
m_coreVertices[_local3] = new b2Vec2(((_local17 * ((_local12 * _local15) - (_local10 * _local16))) + m_centroid.x), ((_local17 * ((_local9 * _local16) - (_local11 * _local15))) + m_centroid.y));
_local3++;
};
}
override public function TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{
var _local3:b2Vec2;
var _local4:b2Mat22;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:int;
var _local10:Number;
_local4 = _arg1.R;
_local5 = (_arg2.x - _arg1.position.x);
_local6 = (_arg2.y - _arg1.position.y);
_local7 = ((_local5 * _local4.col1.x) + (_local6 * _local4.col1.y));
_local8 = ((_local5 * _local4.col2.x) + (_local6 * _local4.col2.y));
_local9 = 0;
while (_local9 < m_vertexCount) {
_local3 = m_vertices[_local9];
_local5 = (_local7 - _local3.x);
_local6 = (_local8 - _local3.y);
_local3 = m_normals[_local9];
_local10 = ((_local3.x * _local5) + (_local3.y * _local6));
if (_local10 > 0){
return (false);
};
_local9++;
};
return (true);
}
public function GetCoreVertices():Array{
return (m_coreVertices);
}
override public function TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
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 _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:int;
var _local19:int;
var _local20:Number;
var _local21:Number;
_local6 = 0;
_local7 = _arg5;
_local8 = (_arg4.p1.x - _arg1.position.x);
_local9 = (_arg4.p1.y - _arg1.position.y);
_local10 = _arg1.R;
_local12 = ((_local8 * _local10.col1.x) + (_local9 * _local10.col1.y));
_local13 = ((_local8 * _local10.col2.x) + (_local9 * _local10.col2.y));
_local8 = (_arg4.p2.x - _arg1.position.x);
_local9 = (_arg4.p2.y - _arg1.position.y);
_local10 = _arg1.R;
_local14 = ((_local8 * _local10.col1.x) + (_local9 * _local10.col1.y));
_local15 = ((_local8 * _local10.col2.x) + (_local9 * _local10.col2.y));
_local16 = (_local14 - _local12);
_local17 = (_local15 - _local13);
_local18 = -1;
_local19 = 0;
while (_local19 < m_vertexCount) {
_local11 = m_vertices[_local19];
_local8 = (_local11.x - _local12);
_local9 = (_local11.y - _local13);
_local11 = m_normals[_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 = m_normals[_local18];
_arg3.x = ((_local10.col1.x * _local11.x) + (_local10.col2.x * _local11.y));
_arg3.y = ((_local10.col1.y * _local11.x) + (_local10.col2.y * _local11.y));
return (true);
};
return (false);
}
public function GetCentroid():b2Vec2{
return (m_centroid);
}
override public function ComputeMass(_arg1:b2MassData):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:int;
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;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local7 = 0;
_local8 = (1 / 3);
_local9 = 0;
while (_local9 < m_vertexCount) {
_local10 = m_vertices[_local9];
_local11 = (((_local9 + 1) < m_vertexCount)) ? m_vertices[int((_local9 + 1))] : m_vertices[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.mass = (m_density * _local4);
_local2 = (_local2 * (1 / _local4));
_local3 = (_local3 * (1 / _local4));
_arg1.center.Set(_local2, _local3);
_arg1.I = (m_density * _local5);
}
public function Support(_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{
var _local4:b2Vec2;
var _local5:b2Mat22;
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:Number;
var _local10:int;
var _local11:Number;
_local5 = _arg1.R;
_local6 = ((_arg2 * _local5.col1.x) + (_arg3 * _local5.col1.y));
_local7 = ((_arg2 * _local5.col2.x) + (_arg3 * _local5.col2.y));
_local8 = 0;
_local4 = m_coreVertices[0];
_local9 = ((_local4.x * _local6) + (_local4.y * _local7));
_local10 = 1;
while (_local10 < m_vertexCount) {
_local4 = m_coreVertices[_local10];
_local11 = ((_local4.x * _local6) + (_local4.y * _local7));
if (_local11 > _local9){
_local8 = _local10;
_local9 = _local11;
};
_local10++;
};
_local5 = _arg1.R;
_local4 = m_coreVertices[_local8];
s_supportVec.x = (_arg1.position.x + ((_local5.col1.x * _local4.x) + (_local5.col2.x * _local4.y)));
s_supportVec.y = (_arg1.position.y + ((_local5.col1.y * _local4.x) + (_local5.col2.y * _local4.y)));
return (s_supportVec);
}
public function GetVertexCount():int{
return (m_vertexCount);
}
override public function ComputeSweptAABB(_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{
var _local4:b2AABB;
var _local5:b2AABB;
_local4 = s_sweptAABB1;
_local5 = s_sweptAABB2;
ComputeAABB(_local4, _arg2);
ComputeAABB(_local5, _arg3);
_arg1.lowerBound.Set(((_local4.lowerBound.x < _local5.lowerBound.x)) ? _local4.lowerBound.x : _local5.lowerBound.x, ((_local4.lowerBound.y < _local5.lowerBound.y)) ? _local4.lowerBound.y : _local5.lowerBound.y);
_arg1.upperBound.Set(((_local4.upperBound.x > _local5.upperBound.x)) ? _local4.upperBound.x : _local5.upperBound.x, ((_local4.upperBound.y > _local5.upperBound.y)) ? _local4.upperBound.y : _local5.upperBound.y);
}
public function GetVertices():Array{
return (m_vertices);
}
public function GetNormals():Array{
return (m_normals);
}
public function GetOBB():b2OBB{
return (m_obb);
}
public function GetFirstVertex(_arg1:b2XForm):b2Vec2{
return (b2Math.b2MulX(_arg1, m_coreVertices[0]));
}
public function Centroid(_arg1:b2XForm):b2Vec2{
return (b2Math.b2MulX(_arg1, m_centroid));
}
override public function UpdateSweepRadius(_arg1:b2Vec2):void{
var _local2:b2Vec2;
var _local3:int;
var _local4:Number;
var _local5:Number;
m_sweepRadius = 0;
_local3 = 0;
while (_local3 < m_vertexCount) {
_local2 = m_coreVertices[_local3];
_local4 = (_local2.x - _arg1.x);
_local5 = (_local2.y - _arg1.y);
_local4 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
if (_local4 > m_sweepRadius){
m_sweepRadius = _local4;
};
_local3++;
};
}
override public function ComputeAABB(_arg1:b2AABB, _arg2:b2XForm):void{
var _local3:b2Mat22;
var _local4:b2Vec2;
var _local5:b2Mat22;
var _local6:b2Mat22;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local5 = s_computeMat;
_local3 = _arg2.R;
_local4 = m_obb.R.col1;
_local5.col1.x = ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y));
_local5.col1.y = ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y));
_local4 = m_obb.R.col2;
_local5.col2.x = ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y));
_local5.col2.y = ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y));
_local5.Abs();
_local6 = _local5;
_local4 = m_obb.extents;
_local7 = ((_local6.col1.x * _local4.x) + (_local6.col2.x * _local4.y));
_local8 = ((_local6.col1.y * _local4.x) + (_local6.col2.y * _local4.y));
_local3 = _arg2.R;
_local4 = m_obb.center;
_local9 = (_arg2.position.x + ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y)));
_local10 = (_arg2.position.y + ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y)));
_arg1.lowerBound.Set((_local9 - _local7), (_local10 - _local8));
_arg1.upperBound.Set((_local9 + _local7), (_local10 + _local8));
}
public static function ComputeCentroid(_arg1:Array, _arg2:int):b2Vec2{
var _local3:b2Vec2;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:int;
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();
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local7 = (1 / 3);
_local8 = 0;
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 ComputeOBB(_arg1:b2OBB, _arg2:Array, _arg3:int):void{
var _local4:int;
var _local5:Array;
var _local6:Number;
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;
_local5 = new Array((b2Settings.b2_maxPolygonVertices + 1));
_local4 = 0;
while (_local4 < _arg3) {
_local5[_local4] = _arg2[_local4];
_local4++;
};
_local5[_arg3] = _local5[0];
_local6 = 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.col1.x = _local8;
_arg1.R.col1.y = _local9;
_arg1.R.col2.x = _local11;
_arg1.R.col2.y = _local12;
_local23 = (0.5 * (_local13 + _local15));
_local24 = (0.5 * (_local14 + _local16));
_local25 = _arg1.R;
_arg1.center.x = (_local7.x + ((_local25.col1.x * _local23) + (_local25.col2.x * _local24)));
_arg1.center.y = (_local7.y + ((_local25.col1.y * _local23) + (_local25.col2.y * _local24)));
_arg1.extents.x = (0.5 * (_local15 - _local13));
_arg1.extents.y = (0.5 * (_local16 - _local14));
};
_local4++;
};
}
}
}//package Box2D.Collision.Shapes
Section 11
//b2Shape (Box2D.Collision.Shapes.b2Shape)
package Box2D.Collision.Shapes {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2Shape {
public var m_type:int;
public var m_sweepRadius:Number;
public var m_density:Number;
public var m_filter:b2FilterData;
public var m_friction:Number;
public var m_next:b2Shape;
public var m_restitution:Number;
public var m_userData;
public var m_isSensor:Boolean;
public var m_proxyId:uint;
public var m_body:b2Body;
public static const e_polygonShape:int = 1;
public static const e_concaveArcShape:int = 5;
public static const e_convexArcShape:int = 4;
public static const e_unknownShape:int = -1;
public static const e_meshShape:int = 3;
public static const e_circleShape:int = 0;
public static const e_shapeTypeCount:int = 7;
public static const e_staticEdgeShape:int = 6;
private static var s_resetAABB:b2AABB = new b2AABB();
private static var s_syncAABB:b2AABB = new b2AABB();
private static var s_proxyAABB:b2AABB = new b2AABB();
public function b2Shape(_arg1:b2ShapeDef){
m_userData = _arg1.userData;
m_friction = _arg1.friction;
m_restitution = _arg1.restitution;
m_density = _arg1.density;
m_body = null;
m_sweepRadius = 0;
m_next = null;
m_proxyId = b2Pair.b2_nullProxy;
m_filter = _arg1.filter.Copy();
m_isSensor = _arg1.isSensor;
}
public function TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{
return (false);
}
public function GetSweepRadius():Number{
return (m_sweepRadius);
}
public function GetNext():b2Shape{
return (m_next);
}
public function ComputeSweptAABB(_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{
}
public function GetType():int{
return (m_type);
}
public function GetRestitution():Number{
return (m_restitution);
}
public function GetFriction():Number{
return (m_friction);
}
public function GetFilterData():b2FilterData{
return (m_filter.Copy());
}
public function TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
return (false);
}
public function RefilterProxy(_arg1:b2BroadPhase, _arg2:b2XForm):void{
var _local3:b2AABB;
var _local4:Boolean;
if (m_proxyId == b2Pair.b2_nullProxy){
return;
};
_arg1.DestroyProxy(m_proxyId);
_local3 = s_resetAABB;
ComputeAABB(_local3, _arg2);
_local4 = _arg1.InRange(_local3);
if (_local4){
m_proxyId = _arg1.CreateProxy(_local3, this);
} else {
m_proxyId = b2Pair.b2_nullProxy;
};
}
public function SetFilterData(_arg1:b2FilterData):void{
m_filter = _arg1.Copy();
}
public function GetUserData(){
return (m_userData);
}
public function Synchronize(_arg1:b2BroadPhase, _arg2:b2XForm, _arg3:b2XForm):Boolean{
var _local4:b2AABB;
if (m_proxyId == b2Pair.b2_nullProxy){
return (false);
};
_local4 = s_syncAABB;
ComputeSweptAABB(_local4, _arg2, _arg3);
if (_arg1.InRange(_local4)){
_arg1.MoveProxy(m_proxyId, _local4);
return (true);
};
return (false);
}
public function ComputeMass(_arg1:b2MassData):void{
}
public function IsSensor():Boolean{
return (m_isSensor);
}
public function DestroyProxy(_arg1:b2BroadPhase):void{
if (m_proxyId != b2Pair.b2_nullProxy){
_arg1.DestroyProxy(m_proxyId);
m_proxyId = b2Pair.b2_nullProxy;
};
}
public function UpdateSweepRadius(_arg1:b2Vec2):void{
}
public function ComputeAABB(_arg1:b2AABB, _arg2:b2XForm):void{
}
public function GetBody():b2Body{
return (m_body);
}
public function CreateProxy(_arg1:b2BroadPhase, _arg2:b2XForm):void{
var _local3:b2AABB;
var _local4:Boolean;
_local3 = s_proxyAABB;
ComputeAABB(_local3, _arg2);
_local4 = _arg1.InRange(_local3);
if (_local4){
m_proxyId = _arg1.CreateProxy(_local3, this);
} else {
m_proxyId = b2Pair.b2_nullProxy;
};
}
public function SetUserData(_arg1):void{
m_userData = _arg1;
}
public static function Destroy(_arg1:b2Shape, _arg2):void{
}
public static function Create(_arg1:b2ShapeDef, _arg2):b2Shape{
switch (_arg1.type){
case e_circleShape:
return (new b2CircleShape(_arg1));
case e_polygonShape:
return (new b2PolygonShape(_arg1));
case e_convexArcShape:
return (new b2ConvexArcShape(_arg1));
case e_concaveArcShape:
return (new b2ConcaveArcShape(_arg1));
default:
throw (new Error("Shape type not found or cannot be added to Dynamic Bodies."));
};
}
}
}//package Box2D.Collision.Shapes
Section 12
//b2ShapeDef (Box2D.Collision.Shapes.b2ShapeDef)
package Box2D.Collision.Shapes {
public class b2ShapeDef {
public var isSensor:Boolean;// = false
public var density:Number;// = 0
public var type:int;
public var restitution:Number;// = 0
public var userData;// = null
public var filter:b2FilterData;
public var friction:Number;// = 0.2
public function b2ShapeDef(){
type = b2Shape.e_unknownShape;
userData = null;
friction = 0.2;
restitution = 0;
density = 0;
isSensor = false;
filter = new b2FilterData();
super();
}
}
}//package Box2D.Collision.Shapes
Section 13
//b2StaticEdgeChain (Box2D.Collision.Shapes.b2StaticEdgeChain)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2StaticEdgeChain {
public var edges:Array;
public var isALoop:Boolean;
public function b2StaticEdgeChain(_arg1:b2ShapeDef, _arg2:b2World){
var _local3:b2StaticEdgeChainDef;
var _local4:int;
var _local5:b2Vec2;
var _local6:b2Vec2;
var _local7:b2StaticEdgeShape;
var _local8:Number;
var _local9:Number;
var _local10:b2StaticEdgeShape;
var _local11:b2Vec2;
var _local12:b2Vec2;
edges = new Array();
super();
_local3 = (_arg1 as b2StaticEdgeChainDef);
isALoop = _local3.isALoop;
if (_local3.isALoop){
_local4 = 0;
_local5 = _local3.vertices[(_local3.vertexCount - 1)];
} else {
_local4 = 1;
_local5 = _local3.vertices[0];
};
_local5 = _local5.Copy();
while (_local4 < _local3.vertexCount) {
_local6 = _local3.vertices[_local4];
_local6 = _local6.Copy();
_local10 = new b2StaticEdgeShape(_local5, _local6, _local3);
edges.push(_local10);
_local10.m_chain = this;
_local10.m_next = _arg2.m_groundBody.m_shapeList;
_arg2.m_groundBody.m_shapeList = _local10;
_arg2.m_groundBody.m_shapeCount++;
_local10.m_body = _arg2.m_groundBody;
_local10.CreateProxy(_arg2.m_broadPhase, _arg2.m_groundBody.m_xf);
_local10.UpdateSweepRadius(_arg2.m_groundBody.m_sweep.localCenter);
_local5 = _local6;
_local4++;
};
if (_local3.isALoop){
_local10 = edges[(_local3.vertexCount - 1)];
_local4 = 0;
} else {
_local10 = edges[0];
_local4 = 1;
};
_local8 = Math.atan2(_local10.m_direction.y, _local10.m_direction.x);
while (_local4 < edges.length) {
_local7 = edges[_local4];
_local9 = Math.atan2(_local7.m_direction.y, _local7.m_direction.x);
_local11 = _local7.m_direction.Copy();
_local11.Multiply(Math.tan(((_local9 - _local8) * 0.5)));
_local11.Subtract(_local7.m_normal);
_local11.Multiply(b2Settings.b2_toiSlop);
_local11.Add(_local7.m_v1);
_local12 = _local10.m_direction.Copy();
_local12.Add(_local7.m_direction);
_local12.Normalize();
_local10.SetNextEdge(_local7, _local11, _local12);
_local7.SetPrevEdge(_local10, _local11, _local12);
_local10 = _local7;
_local8 = _local9;
_local4++;
};
}
}
}//package Box2D.Collision.Shapes
Section 14
//b2StaticEdgeChainDef (Box2D.Collision.Shapes.b2StaticEdgeChainDef)
package Box2D.Collision.Shapes {
public class b2StaticEdgeChainDef extends b2ShapeDef {
public var isALoop:Boolean;
public var vertexCount:int;
public var vertices:Array;
public function b2StaticEdgeChainDef(){
vertices = new Array();
super();
type = b2Shape.e_staticEdgeShape;
isALoop = true;
vertexCount = 0;
}
}
}//package Box2D.Collision.Shapes
Section 15
//b2StaticEdgeShape (Box2D.Collision.Shapes.b2StaticEdgeShape)
package Box2D.Collision.Shapes {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2StaticEdgeShape extends b2Shape {
public var m_v2:b2Vec2;
public var m_coreV1:b2Vec2;
public var m_v1:b2Vec2;
public var m_prevEdge:b2StaticEdgeShape;
public var m_coreV2:b2Vec2;
public var m_direction:b2Vec2;
public var m_length:Number;
public var m_cornerDir1:b2Vec2;
public var m_cornerDir2:b2Vec2;
public var m_nextEdge:b2StaticEdgeShape;
public var m_chain:b2StaticEdgeChain;
public var m_normal:b2Vec2;
public function b2StaticEdgeShape(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2StaticEdgeChainDef){
super(_arg3);
m_type = e_staticEdgeShape;
m_v1 = _arg1;
m_v2 = _arg2;
m_direction = m_v2.Copy();
m_direction.Subtract(m_v1);
m_length = m_direction.Normalize();
m_normal = new b2Vec2(m_direction.y, -(m_direction.x));
m_coreV1 = m_normal.Copy();
m_coreV1.Subtract(m_direction);
m_coreV1.Multiply(-(b2Settings.b2_toiSlop));
m_coreV1.Add(m_v1);
m_coreV2 = m_normal.Copy();
m_coreV2.Add(m_direction);
m_coreV2.Multiply(-(b2Settings.b2_toiSlop));
m_coreV2.Add(m_v2);
m_cornerDir1 = m_normal;
m_cornerDir2 = m_normal.Copy();
m_cornerDir2.Multiply(-1);
}
public function GetVertex1():b2Vec2{
return (m_v1);
}
public function GetDirectionVector():b2Vec2{
return (m_direction);
}
override public function TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{
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;
_local6 = (100 * Number.MIN_VALUE);
_local7 = (_arg4.p2.x - _arg4.p1.x);
_local8 = (_arg4.p2.y - _arg4.p1.y);
_local9 = (m_v2.y - m_v1.y);
_local10 = (m_v1.x - m_v2.x);
_local11 = -(((_local7 * _local9) + (_local8 * _local10)));
if (_local11 > _local6){
_local12 = (_arg4.p1.x - m_v1.x);
_local13 = (_arg4.p1.y - m_v1.y);
_local14 = ((_local12 * _local9) + (_local13 * _local10));
if ((((0 <= _local14)) && ((_local14 <= (_arg5 * _local11))))){
_local15 = ((-(_local7) * _local13) + (_local8 * _local12));
if (((((-(_local6) * _local11) <= _local15)) && ((_local15 <= (_local11 * (1 + _local6)))))){
_local14 = (_local14 / _local11);
_local16 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10)));
_local9 = (_local9 / _local16);
_local10 = (_local10 / _local16);
_arg2[0] = _local14;
_arg3.Set(_local9, _local10);
return (true);
};
};
};
return (false);
}
public function GetParentChain():b2StaticEdgeChain{
return (m_chain);
}
public function Support(_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{
return (((((m_coreV1.x * _arg2) + (m_coreV1.y * _arg3)) > ((m_coreV2.x * _arg2) + (m_coreV2.y * _arg3)))) ? m_coreV1 : m_coreV2);
}
public function SetNextEdge(_arg1:b2StaticEdgeShape, _arg2:b2Vec2, _arg3:b2Vec2):void{
m_nextEdge = _arg1;
m_coreV2 = _arg2;
m_cornerDir2 = _arg3;
}
public function GetLength():Number{
return (m_length);
}
override public function ComputeSweptAABB(_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{
return (ComputeAABB(_arg1, _arg2));
}
public function GetFirstVertex(_arg1:b2XForm):b2Vec2{
return (m_coreV1);
}
public function GetNormalVector():b2Vec2{
return (m_normal);
}
public function SetPrevEdge(_arg1:b2StaticEdgeShape, _arg2:b2Vec2, _arg3:b2Vec2):void{
m_prevEdge = _arg1;
m_coreV1 = _arg2;
m_cornerDir1 = _arg3;
}
override public function UpdateSweepRadius(_arg1:b2Vec2):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = (m_v1.x - _arg1.x);
_local3 = (m_v1.y - _arg1.y);
_local4 = ((_local2 * _local2) + (_local3 * _local3));
_local2 = (m_v2.x - _arg1.x);
_local3 = (m_v2.y - _arg1.y);
_local5 = ((_local2 * _local2) + (_local3 * _local3));
_local2 = Math.sqrt(((_local4 > _local5)) ? _local4 : _local5);
m_sweepRadius = _local2;
}
override public function ComputeAABB(_arg1:b2AABB, _arg2:b2XForm):void{
if (m_v1.x < m_v2.x){
_arg1.lowerBound.x = m_v1.x;
_arg1.upperBound.x = m_v2.x;
} else {
_arg1.lowerBound.x = m_v2.x;
_arg1.upperBound.x = m_v1.x;
};
if (m_v1.y < m_v2.y){
_arg1.lowerBound.y = m_v1.y;
_arg1.upperBound.y = m_v2.y;
} else {
_arg1.lowerBound.y = m_v2.y;
_arg1.upperBound.y = m_v1.y;
};
}
public function GetVertex2():b2Vec2{
return (m_v2);
}
}
}//package Box2D.Collision.Shapes
Section 16
//b2AABB (Box2D.Collision.b2AABB)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2AABB {
public var upperBound:b2Vec2;
public var lowerBound:b2Vec2;
public function b2AABB(){
lowerBound = new b2Vec2();
upperBound = new b2Vec2();
super();
}
public function IsValid():Boolean{
var _local1:Number;
var _local2:Number;
var _local3:Boolean;
_local1 = (upperBound.x - lowerBound.x);
_local2 = (upperBound.y - lowerBound.y);
_local3 = (((_local1 >= 0)) && ((_local2 >= 0)));
_local3 = ((((_local3) && (lowerBound.IsValid()))) && (upperBound.IsValid()));
return (_local3);
}
}
}//package Box2D.Collision
Section 17
//b2Bound (Box2D.Collision.b2Bound)
package Box2D.Collision {
public class b2Bound {
public var proxyId:uint;
public var stabbingCount:uint;
public var value:uint;
public function Swap(_arg1:b2Bound):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
_local2 = value;
_local3 = proxyId;
_local4 = stabbingCount;
value = _arg1.value;
proxyId = _arg1.proxyId;
stabbingCount = _arg1.stabbingCount;
_arg1.value = _local2;
_arg1.proxyId = _local3;
_arg1.stabbingCount = _local4;
}
public function IsLower():Boolean{
return (((value & 1) == 0));
}
public function IsUpper():Boolean{
return (((value & 1) == 1));
}
}
}//package Box2D.Collision
Section 18
//b2BoundValues (Box2D.Collision.b2BoundValues)
package Box2D.Collision {
public class b2BoundValues {
public var lowerValues:Array;
public var upperValues:Array;
public function b2BoundValues(){
lowerValues = [0, 0];
upperValues = [0, 0];
super();
}
}
}//package Box2D.Collision
Section 19
//b2BroadPhase (Box2D.Collision.b2BroadPhase)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2BroadPhase {
public var m_quantizationFactor:b2Vec2;
public var m_worldAABB:b2AABB;
public var m_bounds:Array;
public var m_freeProxy:uint;
public var m_proxyCount:int;
public var m_proxyPool:Array;
public var m_queryResultCount:int;
public var m_pairManager:b2PairManager;
public var m_timeStamp:uint;
public var m_queryResults:Array;
public static const b2_nullEdge:uint = 0xFFFF;
public static const b2_invalid:uint = 0xFFFF;
public static var s_validate:Boolean = false;
public function b2BroadPhase(_arg1:b2AABB, _arg2:b2PairCallback){
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:b2Proxy;
var _local7:int;
m_pairManager = new b2PairManager();
m_proxyPool = new Array(b2Settings.b2_maxPairs);
m_bounds = new Array((2 * b2Settings.b2_maxProxies));
m_queryResults = new Array(b2Settings.b2_maxProxies);
m_quantizationFactor = new b2Vec2();
super();
m_pairManager.Initialize(this, _arg2);
m_worldAABB = _arg1;
m_proxyCount = 0;
_local3 = 0;
while (_local3 < b2Settings.b2_maxProxies) {
m_queryResults[_local3] = 0;
_local3++;
};
m_bounds = new Array(2);
_local3 = 0;
while (_local3 < 2) {
m_bounds[_local3] = new Array((2 * b2Settings.b2_maxProxies));
_local7 = 0;
while (_local7 < (2 * b2Settings.b2_maxProxies)) {
m_bounds[_local3][_local7] = new b2Bound();
_local7++;
};
_local3++;
};
_local4 = (_arg1.upperBound.x - _arg1.lowerBound.x);
_local5 = (_arg1.upperBound.y - _arg1.lowerBound.y);
m_quantizationFactor.x = (b2Settings.USHRT_MAX / _local4);
m_quantizationFactor.y = (b2Settings.USHRT_MAX / _local5);
_local3 = 0;
while (_local3 < (b2Settings.b2_maxProxies - 1)) {
_local6 = new b2Proxy();
m_proxyPool[_local3] = _local6;
_local6.SetNext((_local3 + 1));
_local6.timeStamp = 0;
_local6.overlapCount = b2_invalid;
_local6.userData = null;
_local3++;
};
_local6 = new b2Proxy();
m_proxyPool[int((b2Settings.b2_maxProxies - 1))] = _local6;
_local6.SetNext(b2Pair.b2_nullProxy);
_local6.timeStamp = 0;
_local6.overlapCount = b2_invalid;
_local6.userData = null;
m_freeProxy = 0;
m_timeStamp = 1;
m_queryResultCount = 0;
}
public function QueryAABB(_arg1:b2AABB, _arg2, _arg3:int):int{
var _local4:Array;
var _local5:Array;
var _local6:uint;
var _local7:uint;
var _local8:Array;
var _local9:Array;
var _local10:int;
var _local11:int;
var _local12:b2Proxy;
_local4 = new Array();
_local5 = new Array();
ComputeBounds(_local4, _local5, _arg1);
_local8 = [_local6];
_local9 = [_local7];
Query(_local8, _local9, _local4[0], _local5[0], m_bounds[0], (2 * m_proxyCount), 0);
Query(_local8, _local9, _local4[1], _local5[1], m_bounds[1], (2 * m_proxyCount), 1);
_local10 = 0;
_local11 = 0;
while ((((_local11 < m_queryResultCount)) && ((_local10 < _arg3)))) {
_local12 = m_proxyPool[m_queryResults[_local11]];
_arg2[_local11] = _local12.userData;
_local11++;
_local10++;
};
m_queryResultCount = 0;
IncrementTimeStamp();
return (_local10);
}
public function Commit():void{
m_pairManager.Commit();
}
public function GetProxy(_arg1:int):b2Proxy{
var _local2:b2Proxy;
_local2 = m_proxyPool[_arg1];
if ((((_arg1 == b2Pair.b2_nullProxy)) || ((_local2.IsValid() == false)))){
return (null);
};
return (_local2);
}
private function IncrementTimeStamp():void{
var _local1:uint;
if (m_timeStamp == b2Settings.USHRT_MAX){
_local1 = 0;
while (_local1 < b2Settings.b2_maxProxies) {
(m_proxyPool[_local1] as b2Proxy).timeStamp = 0;
_local1++;
};
m_timeStamp = 1;
} else {
m_timeStamp++;
};
}
private function Query(_arg1:Array, _arg2:Array, _arg3:uint, _arg4:uint, _arg5:Array, _arg6:uint, _arg7:int):void{
var _local8:uint;
var _local9:uint;
var _local10:b2Bound;
var _local11:uint;
var _local12:int;
var _local13:int;
var _local14:b2Proxy;
_local8 = BinarySearch(_arg5, _arg6, _arg3);
_local9 = BinarySearch(_arg5, _arg6, _arg4);
_local11 = _local8;
while (_local11 < _local9) {
_local10 = _arg5[_local11];
if (_local10.IsLower()){
IncrementOverlapCount(_local10.proxyId);
};
_local11++;
};
if (_local8 > 0){
_local12 = (_local8 - 1);
_local10 = _arg5[_local12];
_local13 = _local10.stabbingCount;
while (_local13) {
_local10 = _arg5[_local12];
if (_local10.IsLower()){
_local14 = m_proxyPool[_local10.proxyId];
if (_local8 <= _local14.upperBounds[_arg7]){
IncrementOverlapCount(_local10.proxyId);
_local13--;
};
};
_local12--;
};
};
_arg1[0] = _local8;
_arg2[0] = _local9;
}
private function TestOverlapValidate(_arg1:b2Proxy, _arg2:b2Proxy):Boolean{
var _local3:int;
var _local4:Array;
var _local5:b2Bound;
var _local6:b2Bound;
_local3 = 0;
while (_local3 < 2) {
_local4 = m_bounds[_local3];
_local5 = _local4[_arg1.lowerBounds[_local3]];
_local6 = _local4[_arg2.upperBounds[_local3]];
if (_local5.value > _local6.value){
return (false);
};
_local5 = _local4[_arg1.upperBounds[_local3]];
_local6 = _local4[_arg2.lowerBounds[_local3]];
if (_local5.value < _local6.value){
return (false);
};
_local3++;
};
return (true);
}
private function ComputeBounds(_arg1:Array, _arg2:Array, _arg3:b2AABB):void{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local4 = _arg3.lowerBound.x;
_local5 = _arg3.lowerBound.y;
_local4 = b2Math.b2Min(_local4, m_worldAABB.upperBound.x);
_local5 = b2Math.b2Min(_local5, m_worldAABB.upperBound.y);
_local4 = b2Math.b2Max(_local4, m_worldAABB.lowerBound.x);
_local5 = b2Math.b2Max(_local5, m_worldAABB.lowerBound.y);
_local6 = _arg3.upperBound.x;
_local7 = _arg3.upperBound.y;
_local6 = b2Math.b2Min(_local6, m_worldAABB.upperBound.x);
_local7 = b2Math.b2Min(_local7, m_worldAABB.upperBound.y);
_local6 = b2Math.b2Max(_local6, m_worldAABB.lowerBound.x);
_local7 = b2Math.b2Max(_local7, m_worldAABB.lowerBound.y);
_arg1[0] = (uint((m_quantizationFactor.x * (_local4 - m_worldAABB.lowerBound.x))) & (b2Settings.USHRT_MAX - 1));
_arg2[0] = ((uint((m_quantizationFactor.x * (_local6 - m_worldAABB.lowerBound.x))) & 0xFFFF) | 1);
_arg1[1] = (uint((m_quantizationFactor.y * (_local5 - m_worldAABB.lowerBound.y))) & (b2Settings.USHRT_MAX - 1));
_arg2[1] = ((uint((m_quantizationFactor.y * (_local7 - m_worldAABB.lowerBound.y))) & 0xFFFF) | 1);
}
public function CreateProxy(_arg1:b2AABB, _arg2):uint{
var _local3:uint;
var _local4:b2Proxy;
var _local5:uint;
var _local6:uint;
var _local7:Array;
var _local8:Array;
var _local9:int;
var _local10:int;
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;
_local5 = m_freeProxy;
_local4 = m_proxyPool[_local5];
m_freeProxy = _local4.GetNext();
_local4.overlapCount = 0;
_local4.userData = _arg2;
_local6 = (2 * m_proxyCount);
_local7 = new Array();
_local8 = new Array();
ComputeBounds(_local7, _local8, _arg1);
_local9 = 0;
while (_local9 < 2) {
_local11 = m_bounds[_local9];
_local14 = [_local12];
_local15 = [_local13];
Query(_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.proxyId = _local20.proxyId;
_local19.stabbingCount = _local20.stabbingCount;
_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.proxyId = _local20.proxyId;
_local19.stabbingCount = _local20.stabbingCount;
_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.proxyId = _local20.proxyId;
_local19.stabbingCount = _local20.stabbingCount;
_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.proxyId = _local20.proxyId;
_local19.stabbingCount = _local20.stabbingCount;
_local17++;
};
_local13++;
_local19 = _local11[_local12];
_local20 = _local11[_local13];
_local19.value = _local7[_local9];
_local19.proxyId = _local5;
_local20.value = _local8[_local9];
_local20.proxyId = _local5;
_local21 = _local11[int((_local12 - 1))];
_local19.stabbingCount = ((_local12 == 0)) ? 0 : _local21.stabbingCount;
_local21 = _local11[int((_local13 - 1))];
_local20.stabbingCount = _local21.stabbingCount;
_local3 = _local12;
while (_local3 < _local13) {
_local21 = _local11[_local3];
_local21.stabbingCount++;
_local3++;
};
_local3 = _local12;
while (_local3 < (_local6 + 2)) {
_local19 = _local11[_local3];
_local23 = m_proxyPool[_local19.proxyId];
if (_local19.IsLower()){
_local23.lowerBounds[_local9] = _local3;
} else {
_local23.upperBounds[_local9] = _local3;
};
_local3++;
};
_local9++;
};
m_proxyCount++;
_local10 = 0;
while (_local10 < m_queryResultCount) {
m_pairManager.AddBufferedPair(_local5, m_queryResults[_local10]);
_local10++;
};
m_pairManager.Commit();
m_queryResultCount = 0;
IncrementTimeStamp();
return (_local5);
}
public function DestroyProxy(_arg1:uint):void{
var _local2:b2Bound;
var _local3:b2Bound;
var _local4:b2Proxy;
var _local5:int;
var _local6:int;
var _local7:int;
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;
_local4 = m_proxyPool[_arg1];
_local5 = (2 * m_proxyCount);
_local6 = 0;
while (_local6 < 2) {
_local8 = m_bounds[_local6];
_local9 = _local4.lowerBounds[_local6];
_local10 = _local4.upperBounds[_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.proxyId = _local3.proxyId;
_local2.stabbingCount = _local3.stabbingCount;
_local14++;
};
_local15 = _local13.length;
_local16 = _local9;
_local14 = 0;
while (_local14 < _local15) {
_local3 = _local13[_local14];
_local2 = _local8[int((_local16 + _local14))];
_local2.value = _local3.value;
_local2.proxyId = _local3.proxyId;
_local2.stabbingCount = _local3.stabbingCount;
_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.proxyId = _local3.proxyId;
_local2.stabbingCount = _local3.stabbingCount;
_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.proxyId = _local3.proxyId;
_local2.stabbingCount = _local3.stabbingCount;
_local14++;
};
_local15 = (_local5 - 2);
_local17 = _local9;
while (_local17 < _local15) {
_local2 = _local8[_local17];
_local19 = m_proxyPool[_local2.proxyId];
if (_local2.IsLower()){
_local19.lowerBounds[_local6] = _local17;
} else {
_local19.upperBounds[_local6] = _local17;
};
_local17++;
};
_local15 = (_local10 - 1);
_local18 = _local9;
while (_local18 < _local15) {
_local2 = _local8[_local18];
_local2.stabbingCount--;
_local18++;
};
Query([0], [0], _local11, _local12, _local8, (_local5 - 2), _local6);
_local6++;
};
_local7 = 0;
while (_local7 < m_queryResultCount) {
m_pairManager.RemoveBufferedPair(_arg1, m_queryResults[_local7]);
_local7++;
};
m_pairManager.Commit();
m_queryResultCount = 0;
IncrementTimeStamp();
_local4.userData = null;
_local4.overlapCount = b2_invalid;
_local4.lowerBounds[0] = b2_invalid;
_local4.lowerBounds[1] = b2_invalid;
_local4.upperBounds[0] = b2_invalid;
_local4.upperBounds[1] = b2_invalid;
_local4.SetNext(m_freeProxy);
m_freeProxy = _arg1;
m_proxyCount--;
}
public function TestOverlap(_arg1:b2BoundValues, _arg2:b2Proxy):Boolean{
var _local3:int;
var _local4:Array;
var _local5:b2Bound;
_local3 = 0;
while (_local3 < 2) {
_local4 = m_bounds[_local3];
_local5 = _local4[_arg2.upperBounds[_local3]];
if (_arg1.lowerValues[_local3] > _local5.value){
return (false);
};
_local5 = _local4[_arg2.lowerBounds[_local3]];
if (_arg1.upperValues[_local3] < _local5.value){
return (false);
};
_local3++;
};
return (true);
}
public function Validate():void{
var _local1:b2Pair;
var _local2:b2Proxy;
var _local3:b2Proxy;
var _local4:Boolean;
var _local5:int;
var _local6:b2Bound;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:b2Bound;
_local5 = 0;
while (_local5 < 2) {
_local6 = m_bounds[_local5];
_local7 = (2 * m_proxyCount);
_local8 = 0;
_local9 = 0;
while (_local9 < _local7) {
_local10 = _local6[_local9];
if (_local10.IsLower() == true){
_local8++;
} else {
_local8--;
};
_local9++;
};
_local5++;
};
}
private function IncrementOverlapCount(_arg1:uint):void{
var _local2:b2Proxy;
_local2 = m_proxyPool[_arg1];
if (_local2.timeStamp < m_timeStamp){
_local2.timeStamp = m_timeStamp;
_local2.overlapCount = 1;
} else {
_local2.overlapCount = 2;
m_queryResults[m_queryResultCount] = _arg1;
m_queryResultCount++;
};
}
public function InRange(_arg1:b2AABB):Boolean{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = _arg1.lowerBound.x;
_local3 = _arg1.lowerBound.y;
_local2 = (_local2 - m_worldAABB.upperBound.x);
_local3 = (_local3 - m_worldAABB.upperBound.y);
_local4 = m_worldAABB.lowerBound.x;
_local5 = m_worldAABB.lowerBound.y;
_local4 = (_local4 - _arg1.upperBound.x);
_local5 = (_local5 - _arg1.upperBound.y);
_local2 = b2Math.b2Max(_local2, _local4);
_local3 = b2Math.b2Max(_local3, _local5);
return ((b2Math.b2Max(_local2, _local3) < 0));
}
public function MoveProxy(_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 _local12:uint;
var _local13:b2Proxy;
var _local14:b2BoundValues;
var _local15:b2BoundValues;
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.b2_nullProxy)) || ((b2Settings.b2_maxProxies <= _arg1)))){
return;
};
if (_arg2.IsValid() == false){
return;
};
_local12 = (2 * m_proxyCount);
_local13 = m_proxyPool[_arg1];
_local14 = new b2BoundValues();
ComputeBounds(_local14.lowerValues, _local14.upperValues, _arg2);
_local15 = new b2BoundValues();
_local5 = 0;
while (_local5 < 2) {
_local7 = m_bounds[_local5][_local13.lowerBounds[_local5]];
_local15.lowerValues[_local5] = _local7.value;
_local7 = m_bounds[_local5][_local13.upperBounds[_local5]];
_local15.upperValues[_local5] = _local7.value;
_local5++;
};
_local5 = 0;
while (_local5 < 2) {
_local16 = m_bounds[_local5];
_local17 = _local13.lowerBounds[_local5];
_local18 = _local13.upperBounds[_local5];
_local19 = _local14.lowerValues[_local5];
_local20 = _local14.upperValues[_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.proxyId;
_local24 = m_proxyPool[_local8.proxyId];
_local8.stabbingCount++;
if (_local8.IsUpper() == true){
if (TestOverlap(_local14, _local24)){
m_pairManager.AddBufferedPair(_arg1, _local23);
};
_local3 = _local24.upperBounds;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7.stabbingCount++;
} else {
_local3 = _local24.lowerBounds;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7.stabbingCount--;
};
_local3 = _local13.lowerBounds;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7.Swap(_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.proxyId;
_local11 = m_proxyPool[_local10];
_local9.stabbingCount++;
if (_local9.IsLower() == true){
if (TestOverlap(_local14, _local11)){
m_pairManager.AddBufferedPair(_arg1, _local10);
};
_local3 = _local11.lowerBounds;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7.stabbingCount++;
} else {
_local3 = _local11.upperBounds;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7.stabbingCount--;
};
_local3 = _local13.upperBounds;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7.Swap(_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.proxyId;
_local11 = m_proxyPool[_local10];
_local9.stabbingCount--;
if (_local9.IsUpper()){
if (TestOverlap(_local15, _local11)){
m_pairManager.RemoveBufferedPair(_arg1, _local10);
};
_local3 = _local11.upperBounds;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7.stabbingCount--;
} else {
_local3 = _local11.lowerBounds;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7.stabbingCount++;
};
_local3 = _local13.lowerBounds;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7.Swap(_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.proxyId;
_local24 = m_proxyPool[_local23];
_local8.stabbingCount--;
if (_local8.IsLower() == true){
if (TestOverlap(_local15, _local24)){
m_pairManager.RemoveBufferedPair(_arg1, _local23);
};
_local3 = _local24.lowerBounds;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7.stabbingCount--;
} else {
_local3 = _local24.upperBounds;
_local4 = _local3[_local5];
_local4++;
_local3[_local5] = _local4;
_local7.stabbingCount++;
};
_local3 = _local13.upperBounds;
_local4 = _local3[_local5];
_local4--;
_local3[_local5] = _local4;
_local7.Swap(_local8);
_local6--;
};
};
_local5++;
};
}
public static function BinarySearch(_arg1:Array, _arg2:int, _arg3:uint):uint{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:b2Bound;
_local4 = 0;
_local5 = (_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 20
//b2BufferedPair (Box2D.Collision.b2BufferedPair)
package Box2D.Collision {
public class b2BufferedPair {
public var proxyId1:uint;
public var proxyId2:uint;
}
}//package Box2D.Collision
Section 21
//b2Collision (Box2D.Collision.b2Collision)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
public class b2Collision {
public static const b2_nullFeature:uint = 0xFF;
private static var b2CollidePolyTempVec:b2Vec2 = new b2Vec2();
public static function EdgeSeparation(_arg1:b2PolygonShape, _arg2:b2XForm, _arg3:int, _arg4:b2PolygonShape, _arg5:b2XForm):Number{
var _local6:int;
var _local7:Array;
var _local8:Array;
var _local9:int;
var _local10:Array;
var _local11:b2Mat22;
var _local12:b2Vec2;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:int;
var _local18:Number;
var _local19:int;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
_local6 = _arg1.m_vertexCount;
_local7 = _arg1.m_vertices;
_local8 = _arg1.m_normals;
_local9 = _arg4.m_vertexCount;
_local10 = _arg4.m_vertices;
_local11 = _arg2.R;
_local12 = _local8[_arg3];
_local13 = ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y));
_local14 = ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y));
_local11 = _arg5.R;
_local15 = ((_local11.col1.x * _local13) + (_local11.col1.y * _local14));
_local16 = ((_local11.col2.x * _local13) + (_local11.col2.y * _local14));
_local17 = 0;
_local18 = Number.MAX_VALUE;
_local19 = 0;
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;
_local20 = (_arg2.position.x + ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y)));
_local21 = (_arg2.position.y + ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y)));
_local12 = _local10[_local17];
_local11 = _arg5.R;
_local22 = (_arg5.position.x + ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y)));
_local23 = (_arg5.position.y + ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y)));
_local22 = (_local22 - _local20);
_local23 = (_local23 - _local21);
_local24 = ((_local22 * _local13) + (_local23 * _local14));
return (_local24);
}
public static function b2TestOverlap(_arg1:b2AABB, _arg2:b2AABB):Boolean{
var _local3:b2Vec2;
var _local4:b2Vec2;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local3 = _arg2.lowerBound;
_local4 = _arg1.upperBound;
_local5 = (_local3.x - _local4.x);
_local6 = (_local3.y - _local4.y);
_local3 = _arg1.lowerBound;
_local4 = _arg2.upperBound;
_local7 = (_local3.x - _local4.x);
_local8 = (_local3.y - _local4.y);
if ((((_local5 > 0)) || ((_local6 > 0)))){
return (false);
};
if ((((_local7 > 0)) || ((_local8 > 0)))){
return (false);
};
return (true);
}
public static function FindIncidentEdge(_arg1:Array, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:int, _arg5:b2PolygonShape, _arg6:b2XForm):void{
var _local7:int;
var _local8:Array;
var _local9:int;
var _local10:Array;
var _local11:Array;
var _local12:b2Mat22;
var _local13:b2Vec2;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:int;
var _local18:Number;
var _local19:int;
var _local20:ClipVertex;
var _local21:int;
var _local22:int;
var _local23:Number;
_local7 = _arg2.m_vertexCount;
_local8 = _arg2.m_normals;
_local9 = _arg5.m_vertexCount;
_local10 = _arg5.m_vertices;
_local11 = _arg5.m_normals;
_local12 = _arg3.R;
_local13 = _local8[_arg4];
_local14 = ((_local12.col1.x * _local13.x) + (_local12.col2.x * _local13.y));
_local15 = ((_local12.col1.y * _local13.x) + (_local12.col2.y * _local13.y));
_local12 = _arg6.R;
_local16 = ((_local12.col1.x * _local14) + (_local12.col1.y * _local15));
_local15 = ((_local12.col2.x * _local14) + (_local12.col2.y * _local15));
_local14 = _local16;
_local17 = 0;
_local18 = Number.MAX_VALUE;
_local19 = 0;
while (_local19 < _local9) {
_local13 = _local11[_local19];
_local23 = ((_local14 * _local13.x) + (_local15 * _local13.y));
if (_local23 < _local18){
_local18 = _local23;
_local17 = _local19;
};
_local19++;
};
_local21 = _local17;
_local22 = (((_local21 + 1) < _local9)) ? (_local21 + 1) : 0;
_local20 = _arg1[0];
_local13 = _local10[_local21];
_local12 = _arg6.R;
_local20.v.x = (_arg6.position.x + ((_local12.col1.x * _local13.x) + (_local12.col2.x * _local13.y)));
_local20.v.y = (_arg6.position.y + ((_local12.col1.y * _local13.x) + (_local12.col2.y * _local13.y)));
_local20.id.features.referenceEdge = _arg4;
_local20.id.features.incidentEdge = _local21;
_local20.id.features.incidentVertex = 0;
_local20 = _arg1[1];
_local13 = _local10[_local22];
_local12 = _arg6.R;
_local20.v.x = (_arg6.position.x + ((_local12.col1.x * _local13.x) + (_local12.col2.x * _local13.y)));
_local20.v.y = (_arg6.position.y + ((_local12.col1.y * _local13.x) + (_local12.col2.y * _local13.y)));
_local20.id.features.referenceEdge = _arg4;
_local20.id.features.incidentEdge = _local22;
_local20.id.features.incidentVertex = 1;
}
public static function b2CollidePolygons(_arg1:b2Manifold, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2PolygonShape, _arg5:b2XForm):void{
var _local6:ClipVertex;
var _local7:int;
var _local8:Array;
var _local9:Number;
var _local10:int;
var _local11:Array;
var _local12:Number;
var _local13:b2PolygonShape;
var _local14:b2PolygonShape;
var _local15:b2XForm;
var _local16:b2XForm;
var _local17:int;
var _local18:uint;
var _local19:Number;
var _local20:Number;
var _local21:Array;
var _local22:int;
var _local23:Array;
var _local24:b2Vec2;
var _local25:b2Vec2;
var _local26:b2Vec2;
var _local27:b2Vec2;
var _local28:b2Vec2;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Array;
var _local33:Array;
var _local34:int;
var _local35:int;
var _local36:int;
var _local37:b2Vec2;
var _local38:Number;
var _local39:b2ManifoldPoint;
_arg1.pointCount = 0;
_local7 = 0;
_local8 = [_local7];
_local9 = FindMaxSeparation(_local8, _arg2, _arg3, _arg4, _arg5);
_local7 = _local8[0];
if (_local9 > 0){
return;
};
_local10 = 0;
_local11 = [_local10];
_local12 = FindMaxSeparation(_local11, _arg4, _arg5, _arg2, _arg3);
_local10 = _local11[0];
if (_local12 > 0){
return;
};
_local15 = new b2XForm();
_local16 = new b2XForm();
_local19 = 0.98;
_local20 = 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;
};
_local21 = [new ClipVertex(), new ClipVertex()];
FindIncidentEdge(_local21, _local13, _local15, _local17, _local14, _local16);
_local22 = _local13.m_vertexCount;
_local23 = _local13.m_vertices;
_local24 = _local23[_local17];
_local25 = _local24.Copy();
if ((_local17 + 1) < _local22){
_local24 = _local23[int((_local17 + 1))];
_local37 = _local24.Copy();
} else {
_local24 = _local23[0];
_local37 = _local24.Copy();
};
_local26 = b2Math.SubtractVV(_local37, _local25);
_local27 = b2Math.b2MulMV(_local15.R, b2Math.SubtractVV(_local37, _local25));
_local27.Normalize();
_local28 = b2Math.b2CrossVF(_local27, 1);
_local25 = b2Math.b2MulX(_local15, _local25);
_local37 = b2Math.b2MulX(_local15, _local37);
_local29 = b2Math.b2Dot(_local28, _local25);
_local30 = -(b2Math.b2Dot(_local27, _local25));
_local31 = b2Math.b2Dot(_local27, _local37);
_local32 = [new ClipVertex(), new ClipVertex()];
_local33 = [new ClipVertex(), new ClipVertex()];
_local34 = ClipSegmentToLine(_local32, _local21, _local27.Negative(), _local30);
if (_local34 < 2){
return;
};
_local34 = ClipSegmentToLine(_local33, _local32, _local27, _local31);
if (_local34 < 2){
return;
};
_arg1.normal = (_local18) ? _local28.Negative() : _local28.Copy();
_local35 = 0;
_local36 = 0;
while (_local36 < b2Settings.b2_maxManifoldPoints) {
_local6 = _local33[_local36];
_local38 = (b2Math.b2Dot(_local28, _local6.v) - _local29);
if (_local38 <= 0){
_local39 = _arg1.points[_local35];
_local39.separation = _local38;
_local39.localPoint1 = b2Math.b2MulXT(_arg3, _local6.v);
_local39.localPoint2 = b2Math.b2MulXT(_arg5, _local6.v);
_local39.id.key = _local6.id._key;
_local39.id.features.flip = _local18;
_local35++;
};
_local36++;
};
_arg1.pointCount = _local35;
}
public static function FindMaxSeparation(_arg1:Array, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2PolygonShape, _arg5:b2XForm):Number{
var _local6:int;
var _local7:Array;
var _local8:b2Vec2;
var _local9:b2Mat22;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:int;
var _local15:Number;
var _local16:int;
var _local17:Number;
var _local18:int;
var _local19:Number;
var _local20:int;
var _local21:Number;
var _local22:int;
var _local23:Number;
var _local24:int;
var _local25:Number;
_local6 = _arg2.m_vertexCount;
_local7 = _arg2.m_normals;
_local9 = _arg5.R;
_local8 = _arg4.m_centroid;
_local10 = (_arg5.position.x + ((_local9.col1.x * _local8.x) + (_local9.col2.x * _local8.y)));
_local11 = (_arg5.position.y + ((_local9.col1.y * _local8.x) + (_local9.col2.y * _local8.y)));
_local9 = _arg3.R;
_local8 = _arg2.m_centroid;
_local10 = (_local10 - (_arg3.position.x + ((_local9.col1.x * _local8.x) + (_local9.col2.x * _local8.y))));
_local11 = (_local11 - (_arg3.position.y + ((_local9.col1.y * _local8.x) + (_local9.col2.y * _local8.y))));
_local12 = ((_local10 * _arg3.R.col1.x) + (_local11 * _arg3.R.col1.y));
_local13 = ((_local10 * _arg3.R.col2.x) + (_local11 * _arg3.R.col2.y));
_local14 = 0;
_local15 = -(Number.MAX_VALUE);
_local16 = 0;
while (_local16 < _local6) {
_local8 = _local7[_local16];
_local25 = ((_local8.x * _local12) + (_local8.y * _local13));
if (_local25 > _local15){
_local15 = _local25;
_local14 = _local16;
};
_local16++;
};
_local17 = EdgeSeparation(_arg2, _arg3, _local14, _arg4, _arg5);
if (_local17 > 0){
return (_local17);
};
_local18 = (((_local14 - 1) >= 0)) ? (_local14 - 1) : (_local6 - 1);
_local19 = EdgeSeparation(_arg2, _arg3, _local18, _arg4, _arg5);
if (_local19 > 0){
return (_local19);
};
_local20 = (((_local14 + 1) < _local6)) ? (_local14 + 1) : 0;
_local21 = EdgeSeparation(_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 = EdgeSeparation(_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 ClipSegmentToLine(_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 _local10: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.b2Dot(_arg3, _local7) - _arg4);
_local10 = (b2Math.b2Dot(_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 b2CollideCircles(_arg1:b2Manifold, _arg2:b2CircleShape, _arg3:b2XForm, _arg4:b2CircleShape, _arg5:b2XForm):void{
var _local6:b2Mat22;
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:Number;
var _local18:Number;
var _local19:b2ManifoldPoint;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
_arg1.pointCount = 0;
_local6 = _arg3.R;
_local7 = _arg2.m_localPosition;
_local8 = (_arg3.position.x + ((_local6.col1.x * _local7.x) + (_local6.col2.x * _local7.y)));
_local9 = (_arg3.position.y + ((_local6.col1.y * _local7.x) + (_local6.col2.y * _local7.y)));
_local6 = _arg5.R;
_local7 = _arg4.m_localPosition;
_local10 = (_arg5.position.x + ((_local6.col1.x * _local7.x) + (_local6.col2.x * _local7.y)));
_local11 = (_arg5.position.y + ((_local6.col1.y * _local7.x) + (_local6.col2.y * _local7.y)));
_local12 = (_local10 - _local8);
_local13 = (_local11 - _local9);
_local14 = ((_local12 * _local12) + (_local13 * _local13));
_local15 = _arg2.m_radius;
_local16 = _arg4.m_radius;
_local17 = (_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.pointCount = 1;
_local19 = _arg1.points[0];
_local19.id.key = 0;
_local19.separation = _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));
_local20 = (0.5 * (_local8 + _local10));
_local21 = (0.5 * (_local9 + _local11));
_local22 = (_local20 - _arg3.position.x);
_local23 = (_local21 - _arg3.position.y);
_local19.localPoint1.x = ((_local22 * _arg3.R.col1.x) + (_local23 * _arg3.R.col1.y));
_local19.localPoint1.y = ((_local22 * _arg3.R.col2.x) + (_local23 * _arg3.R.col2.y));
_local22 = (_local20 - _arg5.position.x);
_local23 = (_local21 - _arg5.position.y);
_local19.localPoint2.x = ((_local22 * _arg5.R.col1.x) + (_local23 * _arg5.R.col1.y));
_local19.localPoint2.y = ((_local22 * _arg5.R.col2.x) + (_local23 * _arg5.R.col2.y));
}
public static function b2CollidePolygonAndCircle(_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 _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:int;
var _local19:Number;
var _local20:Number;
var _local21:int;
var _local22:Array;
var _local23:Array;
var _local24:int;
var _local25:int;
var _local26:int;
var _local27:b2Vec2;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
_arg1.pointCount = 0;
_local12 = _arg5.R;
_local11 = _arg4.m_localPosition;
_local13 = (_arg5.position.x + ((_local12.col1.x * _local11.x) + (_local12.col2.x * _local11.y)));
_local14 = (_arg5.position.y + ((_local12.col1.y * _local11.x) + (_local12.col2.y * _local11.y)));
_local7 = (_local13 - _arg3.position.x);
_local8 = (_local14 - _arg3.position.y);
_local12 = _arg3.R;
_local15 = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y));
_local16 = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y));
_local18 = 0;
_local19 = -(Number.MAX_VALUE);
_local20 = _arg4.m_radius;
_local21 = _arg2.m_vertexCount;
_local22 = _arg2.m_vertices;
_local23 = _arg2.m_normals;
_local24 = 0;
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.pointCount = 1;
_local11 = _local23[_local18];
_local12 = _arg3.R;
_arg1.normal.x = ((_local12.col1.x * _local11.x) + (_local12.col2.x * _local11.y));
_arg1.normal.y = ((_local12.col1.y * _local11.x) + (_local12.col2.y * _local11.y));
_local6 = _arg1.points[0];
_local6.id.features.incidentEdge = _local18;
_local6.id.features.incidentVertex = b2_nullFeature;
_local6.id.features.referenceEdge = 0;
_local6.id.features.flip = 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.localPoint1.x = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y));
_local6.localPoint1.y = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y));
_local7 = (_local9 - _arg5.position.x);
_local8 = (_local10 - _arg5.position.y);
_local12 = _arg5.R;
_local6.localPoint2.x = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y));
_local6.localPoint2.y = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y));
_local6.separation = (_local19 - _local20);
return;
};
_local25 = _local18;
_local26 = (((_local25 + 1) < _local21)) ? (_local25 + 1) : 0;
_local11 = _local22[_local25];
_local27 = _local22[_local26];
_local28 = (_local27.x - _local11.x);
_local29 = (_local27.y - _local11.y);
_local30 = Math.sqrt(((_local28 * _local28) + (_local29 * _local29)));
_local28 = (_local28 / _local30);
_local29 = (_local29 / _local30);
_local7 = (_local15 - _local11.x);
_local8 = (_local16 - _local11.y);
_local31 = ((_local7 * _local28) + (_local8 * _local29));
_local6 = _arg1.points[0];
if (_local31 <= 0){
_local32 = _local11.x;
_local33 = _local11.y;
_local6.id.features.incidentEdge = b2_nullFeature;
_local6.id.features.incidentVertex = _local25;
} else {
if (_local31 >= _local30){
_local32 = _local27.x;
_local33 = _local27.y;
_local6.id.features.incidentEdge = b2_nullFeature;
_local6.id.features.incidentVertex = _local26;
} else {
_local32 = ((_local28 * _local31) + _local11.x);
_local33 = ((_local29 * _local31) + _local11.y);
_local6.id.features.incidentEdge = _local18;
_local6.id.features.incidentVertex = b2_nullFeature;
};
};
_local7 = (_local15 - _local32);
_local8 = (_local16 - _local33);
_local17 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8)));
_local7 = (_local7 / _local17);
_local8 = (_local8 / _local17);
if (_local17 > _local20){
return;
};
_arg1.pointCount = 1;
_local12 = _arg3.R;
_arg1.normal.x = ((_local12.col1.x * _local7) + (_local12.col2.x * _local8));
_arg1.normal.y = ((_local12.col1.y * _local7) + (_local12.col2.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.localPoint1.x = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y));
_local6.localPoint1.y = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y));
_local7 = (_local9 - _arg5.position.x);
_local8 = (_local10 - _arg5.position.y);
_local12 = _arg5.R;
_local6.localPoint2.x = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y));
_local6.localPoint2.y = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y));
_local6.separation = (_local17 - _local20);
_local6.id.features.referenceEdge = 0;
_local6.id.features.flip = 0;
}
}
}//package Box2D.Collision
Section 22
//b2ContactID (Box2D.Collision.b2ContactID)
package Box2D.Collision {
public class b2ContactID {
public var _key:uint;
public var features:Features;
public function b2ContactID(){
features = new Features();
super();
features._m_id = this;
}
public function Set(_arg1:b2ContactID):void{
key = _arg1._key;
}
public function Copy():b2ContactID{
var _local1:b2ContactID;
_local1 = new b2ContactID();
_local1.key = key;
return (_local1);
}
public function get key():uint{
return (_key);
}
public function set key(_arg1:uint):void{
_key = _arg1;
features._referenceEdge = (_key & 0xFF);
features._incidentEdge = (((_key & 0xFF00) >> 8) & 0xFF);
features._incidentVertex = (((_key & 0xFF0000) >> 16) & 0xFF);
features._flip = (((_key & 4278190080) >> 24) & 0xFF);
}
}
}//package Box2D.Collision
Section 23
//b2ContactPoint (Box2D.Collision.b2ContactPoint)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
public class b2ContactPoint {
public var separation:Number;
public var normal:b2Vec2;
public var position:b2Vec2;
public var restitution:Number;
public var shape1:b2Shape;
public var shape2:b2Shape;
public var id:b2ContactID;
public var friction:Number;
public var velocity:b2Vec2;
public function b2ContactPoint(){
position = new b2Vec2();
velocity = new b2Vec2();
normal = new b2Vec2();
id = new b2ContactID();
super();
}
}
}//package Box2D.Collision
Section 24
//b2Distance (Box2D.Collision.b2Distance)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
public class b2Distance {
public static var s_initialized:Boolean = false;
public static var g_GJK_Iterations:int = 0;
private static var s_p1s:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
public static var s_registers:Array;
private static var s_p2s:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
private static var gPoint:b2Point = new b2Point();
private static var s_points:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
public static var t:Number = -1;
public static function DistanceGeneric(_arg1:b2Vec2, _arg2:b2Vec2, _arg3, _arg4:b2XForm, _arg5, _arg6:b2XForm):Number{
var _local7:b2Vec2;
var _local8:Array;
var _local9:Array;
var _local10:Array;
var _local11:int;
var _local12:Number;
var _local13:int;
var _local14:int;
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;
_local8 = s_p1s;
_local9 = s_p2s;
_local10 = s_points;
_local11 = 0;
_arg1.SetV(_arg3.GetFirstVertex(_arg4));
_arg2.SetV(_arg5.GetFirstVertex(_arg6));
_local12 = 0;
_local13 = 20;
_local14 = 0;
while (_local14 < _local13) {
_local15 = (_arg2.x - _arg1.x);
_local16 = (_arg2.y - _arg1.y);
_local17 = _arg3.Support(_arg4, _local15, _local16);
_local18 = _arg5.Support(_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 - _local21) <= (0.01 * _local12)){
if (_local11 == 0){
_arg1.SetV(_local17);
_arg2.SetV(_local18);
};
g_GJK_Iterations = _local14;
return (Math.sqrt(_local12));
};
switch (_local11){
case 0:
_local7 = _local8[0];
_local7.SetV(_local17);
_local7 = _local9[0];
_local7.SetV(_local18);
_local7 = _local10[0];
_local7.x = _local19;
_local7.y = _local20;
_arg1.SetV(_local8[0]);
_arg2.SetV(_local9[0]);
_local11++;
break;
case 1:
_local7 = _local8[1];
_local7.SetV(_local17);
_local7 = _local9[1];
_local7.SetV(_local18);
_local7 = _local10[1];
_local7.x = _local19;
_local7.y = _local20;
_local11 = ProcessTwo(_arg1, _arg2, _local8, _local9, _local10);
break;
case 2:
_local7 = _local8[2];
_local7.SetV(_local17);
_local7 = _local9[2];
_local7.SetV(_local18);
_local7 = _local10[2];
_local7.x = _local19;
_local7.y = _local20;
_local11 = ProcessThree(_arg1, _arg2, _local8, _local9, _local10);
break;
};
if (_local11 == 3){
g_GJK_Iterations = _local14;
return (0);
};
_local22 = -(Number.MAX_VALUE);
_local23 = 0;
while (_local23 < _local11) {
_local7 = _local10[_local23];
_local22 = b2Math.b2Max(_local22, ((_local7.x * _local7.x) + (_local7.y * _local7.y)));
_local23++;
};
if ((((_local11 == 3)) || ((_local12 <= ((100 * Number.MIN_VALUE) * _local22))))){
g_GJK_Iterations = _local14;
_local15 = (_arg2.x - _arg1.x);
_local16 = (_arg2.y - _arg1.y);
_local12 = ((_local15 * _local15) + (_local16 * _local16));
return (Math.sqrt(_local12));
};
_local14++;
};
g_GJK_Iterations = _local13;
return (Math.sqrt(_local12));
}
public static function InPoints(_arg1:b2Vec2, _arg2:Array, _arg3:int):Boolean{
var _local4:Number;
var _local5:int;
var _local6:b2Vec2;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local4 = (100 * Number.MIN_VALUE);
_local5 = 0;
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 ProcessThree(_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 _local14:b2Vec2;
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 _local26:Number;
var _local27:Number;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local39:Number;
var _local40:Number;
var _local41: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];
_local14 = _arg4[2];
_local15 = _local6.x;
_local16 = _local6.y;
_local17 = _local7.x;
_local18 = _local7.y;
_local19 = _local8.x;
_local20 = _local8.y;
_local21 = (_local17 - _local15);
_local22 = (_local18 - _local16);
_local23 = (_local19 - _local15);
_local24 = (_local20 - _local16);
_local25 = (_local19 - _local17);
_local26 = (_local20 - _local18);
_local27 = -(((_local15 * _local21) + (_local16 * _local22)));
_local28 = ((_local17 * _local21) + (_local18 * _local22));
_local29 = -(((_local15 * _local23) + (_local16 * _local24)));
_local30 = ((_local19 * _local23) + (_local20 * _local24));
_local31 = -(((_local17 * _local25) + (_local18 * _local26)));
_local32 = ((_local19 * _local25) + (_local20 * _local26));
if ((((_local30 <= 0)) && ((_local32 <= 0)))){
_arg1.SetV(_local11);
_arg2.SetV(_local14);
_local9.SetV(_local11);
_local12.SetV(_local14);
_local6.SetV(_local8);
return (1);
};
_local33 = ((_local21 * _local24) - (_local22 * _local23));
_local34 = (_local33 * ((_local15 * _local18) - (_local16 * _local17)));
_local36 = (_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.SetV(_local11);
_local12.SetV(_local14);
_local6.SetV(_local8);
return (2);
};
_local37 = (_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.SetV(_local11);
_local13.SetV(_local14);
_local7.SetV(_local8);
return (2);
};
_local38 = ((_local36 + _local37) + _local34);
_local38 = (1 / _local38);
_local39 = (_local36 * _local38);
_local40 = (_local37 * _local38);
_local41 = ((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 Distance(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Shape, _arg4:b2XForm, _arg5:b2Shape, _arg6:b2XForm):Number{
var _local7:int;
var _local8:int;
var _local9:b2DistanceRegister;
_local7 = _arg3.GetType();
_local8 = _arg5.GetType();
_local9 = s_registers[(_local7 + (_local8 * b2Shape.e_shapeTypeCount))];
if (_local9 != null){
if (_local9.primary){
return (_local9.fcn(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
};
return (_local9.fcn(_arg2, _arg1, _arg5, _arg6, _arg3, _arg4));
};
return (0);
}
public static function DistancePC(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2PolygonShape, _arg4:b2XForm, _arg5:b2CircleShape, _arg6:b2XForm):Number{
var _local7:b2Mat22;
var _local8:b2Vec2;
var _local9:b2Point;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
_local9 = gPoint;
_local8 = _arg5.m_localPosition;
_local7 = _arg6.R;
_local9.p.x = (_arg6.position.x + ((_local7.col1.x * _local8.x) + (_local7.col2.x * _local8.y)));
_local9.p.y = (_arg6.position.y + ((_local7.col1.y * _local8.x) + (_local7.col2.y * _local8.y)));
_local10 = DistanceGeneric(_arg1, _arg2, _arg3, _arg4, _local9, b2Math.b2XForm_identity);
_local11 = (_arg5.m_radius - 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 AddType(_arg1:Function, _arg2:int, _arg3:int):void{
s_registers[(_arg2 + (_arg3 * b2Shape.e_shapeTypeCount))] = new b2DistanceRegister(_arg1, true);
if (_arg2 != _arg3){
s_registers[(_arg3 + (_arg2 * b2Shape.e_shapeTypeCount))] = new b2DistanceRegister(_arg1, false);
};
}
public static function DistanceSeC(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2StaticEdgeShape, _arg4:b2XForm, _arg5:b2CircleShape, _arg6:b2XForm):Number{
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:b2ManifoldPoint;
var _local13:b2Mat22;
var _local14:b2Vec2;
var _local15:Number;
var _local16:Number;
var _local17:Number;
_local11 = (_arg5.m_radius - b2Settings.b2_toiSlop);
_local13 = _arg6.R;
_local14 = _arg5.m_localPosition;
_local15 = (_arg6.position.x + ((_local13.col1.x * _local14.x) + (_local13.col2.x * _local14.y)));
_local16 = (_arg6.position.y + ((_local13.col1.y * _local14.x) + (_local13.col2.y * _local14.y)));
_local14 = _arg3.m_direction;
_local17 = (((_local15 - _arg3.m_coreV1.x) * _local14.x) + ((_local16 - _arg3.m_coreV1.y) * _local14.y));
if (_local17 <= 0){
_arg1.SetV(_arg3.m_coreV1);
_local7 = (_local15 - _arg3.m_coreV1.x);
_local8 = (_local16 - _arg3.m_coreV1.y);
_local9 = ((_local7 * _local7) + (_local8 * _local8));
if (_local9 > (_local11 * _local11)){
_local10 = Math.sqrt(_local9);
_local7 = (_local7 / _local10);
_local8 = (_local8 / _local10);
_arg2.x = (_local15 - (_local7 * _local11));
_arg2.y = (_local16 - (_local8 * _local11));
return ((_local10 - _local11));
};
_arg2.SetV(_arg3.m_coreV1);
return (0);
} else {
if (_local17 >= _arg3.m_length){
_arg1.SetV(_arg3.m_coreV2);
_local7 = (_local15 - _arg3.m_coreV2.x);
_local8 = (_local16 - _arg3.m_coreV2.y);
_local9 = ((_local7 * _local7) + (_local8 * _local8));
if (_local9 > (_local11 * _local11)){
_local10 = Math.sqrt(_local9);
_local7 = (_local7 / _local10);
_local8 = (_local8 / _local10);
_arg2.x = (_local15 - (_local7 * _local11));
_arg2.y = (_local16 - (_local8 * _local11));
return ((_local10 - _local11));
};
_arg2.SetV(_arg3.m_coreV2);
return (0);
//unresolved jump
};
_arg1.x = (_arg3.m_coreV1.x + (_local14.x * _local17));
_arg1.y = (_arg3.m_coreV1.y + (_local14.y * _local17));
_local14 = _arg3.m_normal;
_local10 = (((_local15 - _arg3.m_coreV1.x) * _local14.x) + ((_local16 - _arg3.m_coreV1.y) * _local14.y));
if (_local10 < 0){
if (_local10 < -(_local11)){
_arg2.x = (_local15 + (_local11 * _local14.x));
_arg2.y = (_local16 + (_local11 * _local14.y));
return ((-(_local10) - _local11));
};
_arg2.SetV(_arg1);
return (0);
//unresolved jump
};
//unresolved if
_arg2.x = (_local15 - (_local11 * _local14.x));
};
_arg2.y = (_local16 - (_local11 * _local14.y));
return ((_local10 - _local11));
_arg2.SetV(_arg1);
return (0);
}
public static function DistanceCcaC(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2ConcaveArcShape, _arg4:b2XForm, _arg5:b2CircleShape, _arg6:b2XForm):Number{
var _local7:b2Mat22;
var _local8:b2Vec2;
var _local9:b2Point;
var _local10:Number;
var _local11:Number;
var _local12:b2Vec2;
var _local13:b2Vec2;
var _local14:Number;
var _local15:b2Vec2;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
_local9 = gPoint;
_local8 = _arg5.m_localPosition;
_local7 = _arg6.R;
_local9.p.x = (_arg6.position.x + ((_local7.col1.x * _local8.x) + (_local7.col2.x * _local8.y)));
_local9.p.y = (_arg6.position.y + ((_local7.col1.y * _local8.x) + (_local7.col2.y * _local8.y)));
_local10 = DistanceGeneric(_arg1, _arg2, _arg3, _arg4, _local9, b2Math.b2XForm_identity);
_local11 = (_arg5.m_radius - b2Settings.b2_toiSlop);
_local12 = b2Math.b2MulX(_arg4, _arg3.m_coreVertices[0]);
_local13 = b2Math.b2MulMV(_arg4.R, _arg3.m_normals[0]);
_local14 = (((_arg1.x - _local12.x) * _local13.x) + ((_arg1.y - _local12.y) * _local13.y));
if (_local14 >= 0){
_local15 = b2Math.b2MulX(_arg4, _arg3.m_arcCenter);
_local16 = (_local9.p.x - _local15.x);
_local17 = (_local9.p.y - _local15.y);
_local18 = ((-(_local13.y) * _local16) + (_local13.x * _local17));
if (((_local16 * _local13.x) + (_local17 * _local13.y)) > 0){
if (_local18 < 0){
_local8 = _local12;
} else {
_local8 = b2Math.b2MulX(_arg4, _arg3.m_coreVertices[1]);
};
} else {
if (_local18 <= -(_arg3.m_norm)){
_local8 = _local12;
} else {
if (_local18 >= _arg3.m_norm){
_local8 = b2Math.b2MulX(_arg4, _arg3.m_coreVertices[1]);
} else {
_local19 = Math.sqrt(((_local16 * _local16) + (_local17 * _local17)));
_local10 = (((_arg3.m_radius + (b2Settings.b2_toiSlop * 2)) - _local11) - _local19);
_local16 = (_local16 / _local19);
_local17 = (_local17 / _local19);
if (_local10 < 0){
_local10 = 0;
};
_arg1.x = (_local15.x + (_local16 * (_arg3.m_radius + b2Settings.b2_toiSlop)));
_arg1.y = (_local15.y + (_local17 * (_arg3.m_radius + b2Settings.b2_toiSlop)));
_arg2.x = (_arg2.x + (_local16 * _local11));
_arg2.y = (_arg2.y + (_local17 * _local11));
return (_local10);
};
};
};
_arg1.SetV(_local8);
_local8.x = (_local8.x - _local9.p.x);
_local8.y = (_local8.y - _local9.p.y);
_local10 = (_local8.Normalize() - _local11);
if (_local10 > 0){
_arg2.x = (_arg2.x + (_local11 * _local8.x));
_arg2.y = (_arg2.y + (_local11 * _local8.y));
return (_local10);
};
_arg2.SetV(_arg1);
return (0);
};
if (_local10 > _local11){
_local10 = (_local10 - _local11);
_local20 = (_arg2.x - _arg1.x);
_local21 = (_arg2.y - _arg1.y);
_local22 = Math.sqrt(((_local20 * _local20) + (_local21 * _local21)));
_local20 = (_local20 / _local22);
_local21 = (_local21 / _local22);
_arg2.x = (_arg2.x - (_local11 * _local20));
_arg2.y = (_arg2.y - (_local11 * _local21));
} else {
_local10 = 0;
_arg2.x = _arg1.x;
_arg2.y = _arg1.y;
};
return (_local10);
}
public static function InitializeRegisters():void{
if (s_initialized == true){
return;
};
s_initialized = true;
s_registers = new Array((b2Shape.e_shapeTypeCount * b2Shape.e_shapeTypeCount));
AddType(b2Distance.DistanceCC, b2Shape.e_circleShape, b2Shape.e_circleShape);
AddType(b2Distance.DistancePC, b2Shape.e_polygonShape, b2Shape.e_circleShape);
AddType(b2Distance.DistanceGeneric, b2Shape.e_polygonShape, b2Shape.e_polygonShape);
AddType(b2Distance.DistanceCcaC, b2Shape.e_concaveArcShape, b2Shape.e_circleShape);
AddType(b2Distance.DistancePCca, b2Shape.e_polygonShape, b2Shape.e_concaveArcShape);
AddType(b2Distance.DistanceSeC, b2Shape.e_staticEdgeShape, b2Shape.e_circleShape);
AddType(b2Distance.DistanceGeneric, b2Shape.e_polygonShape, b2Shape.e_staticEdgeShape);
}
public static function DistancePCca(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2PolygonShape, _arg4:b2XForm, _arg5:b2ConcaveArcShape, _arg6:b2XForm):Number{
var _local7:Number;
var _local8:b2Vec2;
var _local9:b2Vec2;
var _local10:Number;
var _local11:b2Vec2;
var _local12:b2Vec2;
var _local13:Number;
var _local14:b2Vec2;
var _local15:b2Vec2;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:b2Vec2;
var _local23:b2Vec2;
var _local24:b2Point;
var _local25:Number;
var _local26:Number;
t = -1;
_local7 = DistanceGeneric(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
_local8 = b2Math.b2MulX(_arg6, _arg5.m_coreVertices[0]);
_local9 = b2Math.b2MulMV(_arg6.R, _arg5.m_normals[0]);
_local10 = (((_arg2.x - _local8.x) * _local9.x) + ((_arg2.y - _local8.y) * _local9.y));
if ((((_local10 < (-(b2Settings.b2_linearSlop) / 4))) && ((_local7 > 0)))){
t = 0;
return (_local7);
};
_local11 = b2Math.b2MulX(_arg6, _arg5.m_coreVertices[1]);
_local12 = new b2Vec2();
_local13 = (b2Settings.b2_linearSlop * b2Settings.b2_linearSlop);
_local12.x = (_local8.x - _arg2.x);
_local12.y = (_local8.y - _arg2.y);
if (((_local12.x * _local12.x) + (_local12.y * _local12.y)) < _local13){
t = 1;
return (_local7);
};
_local12.x = (_local11.x - _arg2.x);
_local12.y = (_local11.y - _arg2.y);
if (((_local12.x * _local12.x) + (_local12.y * _local12.y)) < _local13){
t = 2;
return (_local7);
};
_local14 = b2Math.b2MulXT(_arg4, b2Math.b2MulX(_arg6, _arg5.m_arcCenter));
_local15 = b2Math.b2MulTMV(_arg4.R, _local9);
_local16 = -1;
_local17 = -1;
_local18 = Number.MAX_VALUE;
_local21 = 0;
while (_local21 < _arg3.m_vertexCount) {
_local12.x = (_arg3.m_coreVertices[_local21].x - _local14.x);
_local12.y = (_arg3.m_coreVertices[_local21].y - _local14.y);
_local26 = ((_local12.x * _local15.y) - (_local12.y * _local15.x));
_local19 = ((_local12.x * _local12.x) + (_local12.y * _local12.y));
if (((((_local26 * _local26) < ((_arg5.m_norm * _arg5.m_norm) * _local19))) && ((((_local12.x * _local15.x) + (_local12.y * _local15.y)) < 0)))){
if (_local19 > _local16){
_local16 = _local19;
_local17 = _local21;
_local20 = Math.sqrt(_local19);
_local18 = ((_arg5.m_radius + b2Settings.b2_toiSlop) - _local20);
if (_local18 < 0){
_local18 = 0;
};
_arg1.SetV(b2Math.b2MulX(_arg4, _arg3.m_coreVertices[_local21]));
_local12.x = (_local12.x * ((_arg5.m_radius + b2Settings.b2_toiSlop) / _local20));
_local12.y = (_local12.y * ((_arg5.m_radius + b2Settings.b2_toiSlop) / _local20));
_local12.x = (_local12.x + _local14.x);
_local12.y = (_local12.y + _local14.y);
_arg2.SetV(b2Math.b2MulX(_arg4, _local12));
t = 3;
};
};
_local21++;
};
_local22 = new b2Vec2();
_local23 = new b2Vec2();
_local24 = gPoint;
_local24.p.SetV(_local8);
_local25 = DistanceGeneric(_local22, _local23, _arg3, _arg4, _local24, b2Math.b2XForm_identity);
if (_local25 < _local18){
t = 4;
_local18 = _local25;
_arg1.SetV(_local22);
_arg2.SetV(_local23);
};
_local24.p.SetV(_local11);
_local25 = DistanceGeneric(_local22, _local23, _arg3, _arg4, _local24, b2Math.b2XForm_identity);
if (_local25 < _local18){
t = 5;
_local18 = _local25;
_arg1.SetV(_local22);
_arg2.SetV(_local23);
};
return (_local18);
}
public static function DistanceCC(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2CircleShape, _arg4:b2XForm, _arg5:b2CircleShape, _arg6:b2XForm):Number{
var _local7:b2Mat22;
var _local8:b2Vec2;
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;
_local7 = _arg4.R;
_local8 = _arg3.m_localPosition;
_local9 = (_arg4.position.x + ((_local7.col1.x * _local8.x) + (_local7.col2.x * _local8.y)));
_local10 = (_arg4.position.y + ((_local7.col1.y * _local8.x) + (_local7.col2.y * _local8.y)));
_local7 = _arg6.R;
_local8 = _arg5.m_localPosition;
_local11 = (_arg6.position.x + ((_local7.col1.x * _local8.x) + (_local7.col2.x * _local8.y)));
_local12 = (_arg6.position.y + ((_local7.col1.y * _local8.x) + (_local7.col2.y * _local8.y)));
_local13 = (_local11 - _local9);
_local14 = (_local12 - _local10);
_local15 = ((_local13 * _local13) + (_local14 * _local14));
_local16 = (_arg3.m_radius - b2Settings.b2_toiSlop);
_local17 = (_arg5.m_radius - b2Settings.b2_toiSlop);
_local18 = (_local16 + _local17);
if (_local15 > (_local18 * _local18)){
_local19 = Math.sqrt(_local15);
_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(_local15);
_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 ProcessTwo(_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:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
_local6 = _arg5[0];
_local7 = _arg5[1];
_local8 = _arg3[0];
_local9 = _arg3[1];
_local10 = _arg4[0];
_local11 = _arg4[1];
_local12 = -(_local7.x);
_local13 = -(_local7.y);
_local14 = (_local6.x - _local7.x);
_local15 = (_local6.y - _local7.y);
_local16 = 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.SetV(_local9);
_arg2.SetV(_local11);
_local8.SetV(_local9);
_local10.SetV(_local11);
_local6.SetV(_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);
}
}
}//package Box2D.Collision
Section 25
//b2DistanceRegister (Box2D.Collision.b2DistanceRegister)
package Box2D.Collision {
public class b2DistanceRegister {
public var fcn:Function;
public var primary:Boolean;
public function b2DistanceRegister(_arg1:Function, _arg2:Boolean){
this.fcn = _arg1;
this.primary = _arg2;
}
}
}//package Box2D.Collision
Section 26
//b2Manifold (Box2D.Collision.b2Manifold)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2Manifold {
public var points:Array;
public var pointCount:int;// = 0
public var normal:b2Vec2;
public function b2Manifold(){
var _local1:int;
pointCount = 0;
super();
points = new Array(b2Settings.b2_maxManifoldPoints);
_local1 = 0;
while (_local1 < b2Settings.b2_maxManifoldPoints) {
points[_local1] = new b2ManifoldPoint();
_local1++;
};
normal = new b2Vec2();
}
public function Set(_arg1:b2Manifold):void{
var _local2:int;
pointCount = _arg1.pointCount;
_local2 = 0;
while (_local2 < b2Settings.b2_maxManifoldPoints) {
(points[_local2] as b2ManifoldPoint).Set(_arg1.points[_local2]);
_local2++;
};
normal.SetV(_arg1.normal);
}
public function Reset():void{
var _local1:int;
_local1 = 0;
while (_local1 < b2Settings.b2_maxManifoldPoints) {
(points[_local1] as b2ManifoldPoint).Reset();
_local1++;
};
normal.SetZero();
pointCount = 0;
}
}
}//package Box2D.Collision
Section 27
//b2ManifoldPoint (Box2D.Collision.b2ManifoldPoint)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2ManifoldPoint {
public var separation:Number;
public var localPoint2:b2Vec2;
public var normalImpulse:Number;
public var tangentImpulse:Number;
public var localPoint1:b2Vec2;
public var id:b2ContactID;
public function b2ManifoldPoint(){
localPoint1 = new b2Vec2();
localPoint2 = new b2Vec2();
id = new b2ContactID();
super();
}
public function Set(_arg1:b2ManifoldPoint):void{
localPoint1.SetV(_arg1.localPoint1);
localPoint2.SetV(_arg1.localPoint2);
separation = _arg1.separation;
normalImpulse = _arg1.normalImpulse;
tangentImpulse = _arg1.tangentImpulse;
id.key = _arg1.id.key;
}
public function Reset():void{
localPoint1.SetZero();
localPoint2.SetZero();
separation = 0;
normalImpulse = 0;
tangentImpulse = 0;
id.key = 0;
}
}
}//package Box2D.Collision
Section 28
//b2OBB (Box2D.Collision.b2OBB)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2OBB {
public var R:b2Mat22;
public var center:b2Vec2;
public var extents:b2Vec2;
public function b2OBB(){
R = new b2Mat22();
center = new b2Vec2();
extents = new b2Vec2();
super();
}
}
}//package Box2D.Collision
Section 29
//b2Pair (Box2D.Collision.b2Pair)
package Box2D.Collision {
import Box2D.Common.*;
public class b2Pair {
public var userData;// = null
public var proxyId1:uint;
public var proxyId2:uint;
public var status:uint;
public var next:uint;
public static var e_pairFinal:uint = 4;
public static var b2_tableMask:int = (b2_tableCapacity - 1);
public static var e_pairRemoved:uint = 2;
public static var b2_nullPair:uint = b2Settings.USHRT_MAX;
public static var e_pairBuffered:uint = 1;
public static var b2_nullProxy:uint = b2Settings.USHRT_MAX;
public static var b2_tableCapacity:int = b2Settings.b2_maxPairs;
public function b2Pair(){
userData = null;
super();
}
public function SetBuffered():void{
status = (status | e_pairBuffered);
}
public function IsBuffered():Boolean{
return (((status & e_pairBuffered) == e_pairBuffered));
}
public function IsFinal():Boolean{
return (((status & e_pairFinal) == e_pairFinal));
}
public function ClearRemoved():void{
status = (status & ~(e_pairRemoved));
}
public function SetFinal():void{
status = (status | e_pairFinal);
}
public function IsRemoved():Boolean{
return (((status & e_pairRemoved) == e_pairRemoved));
}
public function ClearBuffered():void{
status = (status & ~(e_pairBuffered));
}
public function SetRemoved():void{
status = (status | e_pairRemoved);
}
}
}//package Box2D.Collision
Section 30
//b2PairCallback (Box2D.Collision.b2PairCallback)
package Box2D.Collision {
public class b2PairCallback {
public function PairRemoved(_arg1, _arg2, _arg3):void{
}
public function PairAdded(_arg1, _arg2){
return (null);
}
}
}//package Box2D.Collision
Section 31
//b2PairManager (Box2D.Collision.b2PairManager)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2PairManager {
public var m_pairCount:int;
public var m_pairBuffer:Array;
public var m_callback:b2PairCallback;
public var m_pairs:Array;
public var m_pairBufferCount:int;
public var m_hashTable:Array;
public var m_broadPhase:b2BroadPhase;
public var m_freePair:uint;
public function b2PairManager(){
var _local1:uint;
super();
m_hashTable = new Array(b2Pair.b2_tableCapacity);
_local1 = 0;
while (_local1 < b2Pair.b2_tableCapacity) {
m_hashTable[_local1] = b2Pair.b2_nullPair;
_local1++;
};
m_pairs = new Array(b2Settings.b2_maxPairs);
_local1 = 0;
while (_local1 < b2Settings.b2_maxPairs) {
m_pairs[_local1] = new b2Pair();
_local1++;
};
m_pairBuffer = new Array(b2Settings.b2_maxPairs);
_local1 = 0;
while (_local1 < b2Settings.b2_maxPairs) {
m_pairBuffer[_local1] = new b2BufferedPair();
_local1++;
};
_local1 = 0;
while (_local1 < b2Settings.b2_maxPairs) {
m_pairs[_local1].proxyId1 = b2Pair.b2_nullProxy;
m_pairs[_local1].proxyId2 = b2Pair.b2_nullProxy;
m_pairs[_local1].userData = null;
m_pairs[_local1].status = 0;
m_pairs[_local1].next = (_local1 + 1);
_local1++;
};
m_pairs[int((b2Settings.b2_maxPairs - 1))].next = b2Pair.b2_nullPair;
m_pairCount = 0;
m_pairBufferCount = 0;
}
private function FindHash(_arg1:uint, _arg2:uint, _arg3:uint):b2Pair{
var _local4:b2Pair;
var _local5:uint;
_local5 = m_hashTable[_arg3];
_local4 = m_pairs[_local5];
while (((!((_local5 == b2Pair.b2_nullPair))) && ((Equals(_local4, _arg1, _arg2) == false)))) {
_local5 = _local4.next;
_local4 = m_pairs[_local5];
};
if (_local5 == b2Pair.b2_nullPair){
return (null);
};
return (_local4);
}
private function Find(_arg1:uint, _arg2:uint):b2Pair{
var _local3:uint;
var _local4:uint;
if (_arg1 > _arg2){
_local4 = _arg1;
_arg1 = _arg2;
_arg2 = _local4;
};
_local3 = (Hash(_arg1, _arg2) & b2Pair.b2_tableMask);
return (FindHash(_arg1, _arg2, _local3));
}
private function ValidateBuffer():void{
}
public function Commit():void{
var _local1:b2BufferedPair;
var _local2:int;
var _local3:int;
var _local4:Array;
var _local5:b2Pair;
var _local6:b2Proxy;
var _local7:b2Proxy;
_local3 = 0;
_local4 = m_broadPhase.m_proxyPool;
_local2 = 0;
while (_local2 < m_pairBufferCount) {
_local1 = m_pairBuffer[_local2];
_local5 = Find(_local1.proxyId1, _local1.proxyId2);
_local5.ClearBuffered();
_local6 = _local4[_local5.proxyId1];
_local7 = _local4[_local5.proxyId2];
if (_local5.IsRemoved()){
if (_local5.IsFinal() == true){
m_callback.PairRemoved(_local6.userData, _local7.userData, _local5.userData);
};
_local1 = m_pairBuffer[_local3];
_local1.proxyId1 = _local5.proxyId1;
_local1.proxyId2 = _local5.proxyId2;
_local3++;
} else {
if (_local5.IsFinal() == false){
_local5.userData = m_callback.PairAdded(_local6.userData, _local7.userData);
_local5.SetFinal();
};
};
_local2++;
};
_local2 = 0;
while (_local2 < _local3) {
_local1 = m_pairBuffer[_local2];
RemovePair(_local1.proxyId1, _local1.proxyId2);
_local2++;
};
m_pairBufferCount = 0;
if (b2BroadPhase.s_validate){
ValidateTable();
};
}
public function RemoveBufferedPair(_arg1:int, _arg2:int):void{
var _local3:b2BufferedPair;
var _local4:b2Pair;
_local4 = Find(_arg1, _arg2);
if (_local4 == null){
return;
};
if (_local4.IsBuffered() == false){
_local4.SetBuffered();
_local3 = m_pairBuffer[m_pairBufferCount];
_local3.proxyId1 = _local4.proxyId1;
_local3.proxyId2 = _local4.proxyId2;
m_pairBufferCount++;
};
_local4.SetRemoved();
if (b2BroadPhase.s_validate){
ValidateBuffer();
};
}
private function RemovePair(_arg1:uint, _arg2:uint){
var _local3:b2Pair;
var _local4:uint;
var _local5:uint;
var _local6:b2Pair;
var _local7:uint;
var _local8:uint;
var _local9:*;
if (_arg1 > _arg2){
_local7 = _arg1;
_arg1 = _arg2;
_arg2 = _local7;
};
_local4 = (Hash(_arg1, _arg2) & b2Pair.b2_tableMask);
_local5 = m_hashTable[_local4];
_local6 = null;
while (_local5 != b2Pair.b2_nullPair) {
if (Equals(m_pairs[_local5], _arg1, _arg2)){
_local8 = _local5;
_local3 = m_pairs[_local5];
if (_local6){
_local6.next = _local3.next;
} else {
m_hashTable[_local4] = _local3.next;
};
_local3 = m_pairs[_local8];
_local9 = _local3.userData;
_local3.next = m_freePair;
_local3.proxyId1 = b2Pair.b2_nullProxy;
_local3.proxyId2 = b2Pair.b2_nullProxy;
_local3.userData = null;
_local3.status = 0;
m_freePair = _local8;
m_pairCount--;
return (_local9);
} else {
_local6 = m_pairs[_local5];
_local5 = _local6.next;
};
};
return (null);
}
public function Initialize(_arg1:b2BroadPhase, _arg2:b2PairCallback):void{
m_broadPhase = _arg1;
m_callback = _arg2;
}
public function AddBufferedPair(_arg1:int, _arg2:int):void{
var _local3:b2BufferedPair;
var _local4:b2Pair;
_local4 = AddPair(_arg1, _arg2);
if (_local4.IsBuffered() == false){
_local4.SetBuffered();
_local3 = m_pairBuffer[m_pairBufferCount];
_local3.proxyId1 = _local4.proxyId1;
_local3.proxyId2 = _local4.proxyId2;
m_pairBufferCount++;
};
_local4.ClearRemoved();
if (b2BroadPhase.s_validate){
ValidateBuffer();
};
}
private function AddPair(_arg1:uint, _arg2:uint):b2Pair{
var _local3:uint;
var _local4:b2Pair;
var _local5:uint;
var _local6:uint;
if (_arg1 > _arg2){
_local6 = _arg1;
_arg1 = _arg2;
_arg2 = _local6;
};
_local3 = (Hash(_arg1, _arg2) & b2Pair.b2_tableMask);
_local4 = FindHash(_arg1, _arg2, _local3);
if (_local4 != null){
return (_local4);
};
_local5 = m_freePair;
_local4 = m_pairs[_local5];
m_freePair = _local4.next;
_local4.proxyId1 = _arg1;
_local4.proxyId2 = _arg2;
_local4.status = 0;
_local4.userData = null;
_local4.next = m_hashTable[_local3];
m_hashTable[_local3] = _local5;
m_pairCount++;
return (_local4);
}
private function ValidateTable():void{
}
public static function EqualsPair(_arg1:b2BufferedPair, _arg2:b2BufferedPair):Boolean{
return ((((_arg1.proxyId1 == _arg2.proxyId1)) && ((_arg1.proxyId2 == _arg2.proxyId2))));
}
public static function Hash(_arg1:uint, _arg2:uint):uint{
var _local3:uint;
_local3 = (((_arg2 << 16) & 4294901760) | _arg1);
_local3 = (~(_local3) + ((_local3 << 15) & 4294934528));
_local3 = (_local3 ^ ((_local3 >> 12) & 1048575));
_local3 = (_local3 + ((_local3 << 2) & 4294967292));
_local3 = (_local3 ^ ((_local3 >> 4) & 268435455));
_local3 = (_local3 * 2057);
_local3 = (_local3 ^ ((_local3 >> 16) & 0xFFFF));
return (_local3);
}
public static function Equals(_arg1:b2Pair, _arg2:uint, _arg3:uint):Boolean{
return ((((_arg1.proxyId1 == _arg2)) && ((_arg1.proxyId2 == _arg3))));
}
}
}//package Box2D.Collision
Section 32
//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 GetFirstVertex(_arg1:b2XForm):b2Vec2{
return (p);
}
public function Support(_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{
return (p);
}
}
}//package Box2D.Collision
Section 33
//b2Proxy (Box2D.Collision.b2Proxy)
package Box2D.Collision {
public class b2Proxy {
public var overlapCount:uint;
public var lowerBounds:Array;
public var upperBounds:Array;
public var userData;// = null
public var timeStamp:uint;
public function b2Proxy(){
lowerBounds = [uint(0), uint(0)];
upperBounds = [uint(0), uint(0)];
userData = null;
super();
}
public function GetNext():uint{
return (lowerBounds[0]);
}
public function IsValid():Boolean{
return (!((overlapCount == b2BroadPhase.b2_invalid)));
}
public function SetNext(_arg1:uint):void{
lowerBounds[0] = (_arg1 & 0xFFFF);
}
}
}//package Box2D.Collision
Section 34
//b2Segment (Box2D.Collision.b2Segment)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2Segment {
public var p1:b2Vec2;
public var p2:b2Vec2;
public function b2Segment(){
p1 = new b2Vec2();
p2 = new b2Vec2();
super();
}
public function TestSegment(_arg1:Array, _arg2:b2Vec2, _arg3:b2Segment, _arg4:Number):Boolean{
var _local5:b2Vec2;
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;
var _local18:Number;
_local5 = _arg3.p1;
_local6 = (_arg3.p2.x - _local5.x);
_local7 = (_arg3.p2.y - _local5.y);
_local8 = (p2.x - p1.x);
_local9 = (p2.y - p1.y);
_local10 = _local9;
_local11 = -(_local8);
_local12 = (100 * Number.MIN_VALUE);
_local13 = -(((_local6 * _local10) + (_local7 * _local11)));
if (_local13 > _local12){
_local14 = (_local5.x - p1.x);
_local15 = (_local5.y - p1.y);
_local16 = ((_local14 * _local10) + (_local15 * _local11));
if ((((0 <= _local16)) && ((_local16 <= (_arg4 * _local13))))){
_local17 = ((-(_local6) * _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 35
//b2TimeOfImpact (Box2D.Collision.b2TimeOfImpact)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
public class b2TimeOfImpact {
public static var s_xf1:b2XForm = new b2XForm();
public static var s_xf2:b2XForm = new b2XForm();
public static var s_p1:b2Vec2 = new b2Vec2();
public static var s_p2:b2Vec2 = new b2Vec2();
public static function TimeOfImpact(_arg1:b2Shape, _arg2:b2Sweep, _arg3:b2Shape, _arg4:b2Sweep):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:b2Vec2;
var _local18:b2Vec2;
var _local19:int;
var _local20:int;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:b2XForm;
var _local27:b2XForm;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
_local7 = _arg1.m_sweepRadius;
_local8 = _arg3.m_sweepRadius;
_local9 = _arg2.t0;
_local10 = (_arg2.c.x - _arg2.c0.x);
_local11 = (_arg2.c.y - _arg2.c0.y);
_local12 = (_arg4.c.x - _arg4.c0.x);
_local13 = (_arg4.c.y - _arg4.c0.y);
_local14 = (_arg2.a - _arg2.a0);
_local15 = (_arg4.a - _arg4.a0);
_local16 = 0;
_local17 = s_p1;
_local18 = s_p2;
_local19 = 20;
_local20 = 0;
_local21 = 0;
_local22 = 0;
_local23 = 0;
_local24 = 0;
while (true) {
_local25 = (((1 - _local16) * _local9) + _local16);
_local26 = s_xf1;
_local27 = s_xf2;
_arg2.GetXForm(_local26, _local25);
_arg4.GetXForm(_local27, _local25);
_local23 = b2Distance.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 36
//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 37
//Features (Box2D.Collision.Features)
package Box2D.Collision {
public class Features {
public var _referenceEdge:int;
public var _incidentEdge:int;
public var _flip:int;
public var _incidentVertex:int;
public var _m_id:b2ContactID;
public function get referenceEdge():int{
return (_referenceEdge);
}
public function set incidentVertex(_arg1:int):void{
_incidentVertex = _arg1;
_m_id._key = ((_m_id._key & 4278255615) | ((_incidentVertex << 16) & 0xFF0000));
}
public function get flip():int{
return (_flip);
}
public function get incidentEdge():int{
return (_incidentEdge);
}
public function set referenceEdge(_arg1:int):void{
_referenceEdge = _arg1;
_m_id._key = ((_m_id._key & 4294967040) | (_referenceEdge & 0xFF));
}
public function set flip(_arg1:int):void{
_flip = _arg1;
_m_id._key = ((_m_id._key & 0xFFFFFF) | ((_flip << 24) & 4278190080));
}
public function get incidentVertex():int{
return (_incidentVertex);
}
public function set incidentEdge(_arg1:int):void{
_incidentEdge = _arg1;
_m_id._key = ((_m_id._key & 4294902015) | ((_incidentEdge << 8) & 0xFF00));
}
}
}//package Box2D.Collision
Section 38
//b2Mat22 (Box2D.Common.Math.b2Mat22)
package Box2D.Common.Math {
public class b2Mat22 {
public var col1:b2Vec2;
public var col2:b2Vec2;
public function b2Mat22(_arg1:Number=0, _arg2:b2Vec2=null, _arg3:b2Vec2=null){
var _local4:Number;
var _local5:Number;
col1 = new b2Vec2();
col2 = new b2Vec2();
super();
if (((!((_arg2 == null))) && (!((_arg3 == null))))){
col1.SetV(_arg2);
col2.SetV(_arg3);
} else {
_local4 = Math.cos(_arg1);
_local5 = Math.sin(_arg1);
col1.x = _local4;
col2.x = -(_local5);
col1.y = _local5;
col2.y = _local4;
};
}
public function SetIdentity():void{
col1.x = 1;
col2.x = 0;
col1.y = 0;
col2.y = 1;
}
public function Set(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
_local2 = Math.cos(_arg1);
_local3 = Math.sin(_arg1);
col1.x = _local2;
col2.x = -(_local3);
col1.y = _local3;
col2.y = _local2;
}
public function SetVV(_arg1:b2Vec2, _arg2:b2Vec2):void{
col1.SetV(_arg1);
col2.SetV(_arg2);
}
public function SetZero():void{
col1.x = 0;
col2.x = 0;
col1.y = 0;
col2.y = 0;
}
public function SetM(_arg1:b2Mat22):void{
col1.SetV(_arg1.col1);
col2.SetV(_arg1.col2);
}
public function AddM(_arg1:b2Mat22):void{
col1.x = (col1.x + _arg1.col1.x);
col1.y = (col1.y + _arg1.col1.y);
col2.x = (col2.x + _arg1.col2.x);
col2.y = (col2.y + _arg1.col2.y);
}
public function Abs():void{
col1.Abs();
col2.Abs();
}
public function Copy():b2Mat22{
return (new b2Mat22(0, col1, col2));
}
public function Invert(_arg1:b2Mat22):b2Mat22{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local2 = col1.x;
_local3 = col2.x;
_local4 = col1.y;
_local5 = col2.y;
_local6 = ((_local2 * _local5) - (_local3 * _local4));
_local6 = (1 / _local6);
_arg1.col1.x = (_local6 * _local5);
_arg1.col2.x = (-(_local6) * _local3);
_arg1.col1.y = (-(_local6) * _local4);
_arg1.col2.y = (_local6 * _local2);
return (_arg1);
}
public function GetAngle():Number{
return (Math.atan2(col1.y, col1.x));
}
public function Solve(_arg1:b2Vec2, _arg2:Number, _arg3:Number):b2Vec2{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local4 = col1.x;
_local5 = col2.x;
_local6 = col1.y;
_local7 = col2.y;
_local8 = ((_local4 * _local7) - (_local5 * _local6));
_local8 = (1 / _local8);
_arg1.x = (_local8 * ((_local7 * _arg2) - (_local5 * _arg3)));
_arg1.y = (_local8 * ((_local4 * _arg3) - (_local6 * _arg2)));
return (_arg1);
}
}
}//package Box2D.Common.Math
Section 39
//b2Math (Box2D.Common.Math.b2Math)
package Box2D.Common.Math {
public class b2Math {
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 const b2Vec2_zero:b2Vec2 = new b2Vec2(0, 0);
public static function b2CrossVF(_arg1:b2Vec2, _arg2:Number):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2((_arg2 * _arg1.y), (-(_arg2) * _arg1.x));
return (_local3);
}
public static function AddVV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2((_arg1.x + _arg2.x), (_arg1.y + _arg2.y));
return (_local3);
}
public static function b2IsValid(_arg1:Number):Boolean{
return (isFinite(_arg1));
}
public static function b2MinV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2(b2Min(_arg1.x, _arg2.x), b2Min(_arg1.y, _arg2.y));
return (_local3);
}
public static function b2MulX(_arg1:b2XForm, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = b2MulMV(_arg1.R, _arg2);
_local3.x = (_local3.x + _arg1.position.x);
_local3.y = (_local3.y + _arg1.position.y);
return (_local3);
}
public static function b2DistanceSquared(_arg1:b2Vec2, _arg2:b2Vec2):Number{
var _local3:Number;
var _local4:Number;
_local3 = (_arg1.x - _arg2.x);
_local4 = (_arg1.y - _arg2.y);
return (((_local3 * _local3) + (_local4 * _local4)));
}
public static function b2Swap(_arg1:Array, _arg2:Array):void{
var _local3:*;
_local3 = _arg1[0];
_arg1[0] = _arg2[0];
_arg2[0] = _local3;
}
public static function b2AbsM(_arg1:b2Mat22):b2Mat22{
var _local2:b2Mat22;
_local2 = new b2Mat22(0, b2AbsV(_arg1.col1), b2AbsV(_arg1.col2));
return (_local2);
}
public static function SubtractVV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2((_arg1.x - _arg2.x), (_arg1.y - _arg2.y));
return (_local3);
}
public static function b2MulXT(_arg1:b2XForm, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
var _local4:Number;
_local3 = SubtractVV(_arg2, _arg1.position);
_local4 = ((_local3.x * _arg1.R.col1.x) + (_local3.y * _arg1.R.col1.y));
_local3.y = ((_local3.x * _arg1.R.col2.x) + (_local3.y * _arg1.R.col2.y));
_local3.x = _local4;
return (_local3);
}
public static function b2Abs(_arg1:Number):Number{
return (((_arg1 > 0)) ? _arg1 : -(_arg1));
}
public static function b2Clamp(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (b2Max(_arg2, b2Min(_arg1, _arg3)));
}
public static function b2AbsV(_arg1:b2Vec2):b2Vec2{
var _local2:b2Vec2;
_local2 = new b2Vec2(b2Abs(_arg1.x), b2Abs(_arg1.y));
return (_local2);
}
public static function MulFV(_arg1:Number, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2((_arg1 * _arg2.x), (_arg1 * _arg2.y));
return (_local3);
}
public static function b2CrossVV(_arg1:b2Vec2, _arg2:b2Vec2):Number{
return (((_arg1.x * _arg2.y) - (_arg1.y * _arg2.x)));
}
public static function b2Dot(_arg1:b2Vec2, _arg2:b2Vec2):Number{
return (((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y)));
}
public static function b2CrossFV(_arg1:Number, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2((-(_arg1) * _arg2.y), (_arg1 * _arg2.x));
return (_local3);
}
public static function AddMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Mat22;
_local3 = new b2Mat22(0, AddVV(_arg1.col1, _arg2.col1), AddVV(_arg1.col2, _arg2.col2));
return (_local3);
}
public static function b2Distance(_arg1:b2Vec2, _arg2:b2Vec2):Number{
var _local3:Number;
var _local4:Number;
_local3 = (_arg1.x - _arg2.x);
_local4 = (_arg1.y - _arg2.y);
return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4))));
}
public static function b2MulTMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Vec2;
var _local4:b2Vec2;
var _local5:b2Mat22;
_local3 = new b2Vec2(b2Dot(_arg1.col1, _arg2.col1), b2Dot(_arg1.col2, _arg2.col1));
_local4 = new b2Vec2(b2Dot(_arg1.col1, _arg2.col2), b2Dot(_arg1.col2, _arg2.col2));
_local5 = new b2Mat22(0, _local3, _local4);
return (_local5);
}
public static function b2MaxV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2(b2Max(_arg1.x, _arg2.x), b2Max(_arg1.y, _arg2.y));
return (_local3);
}
public static function b2IsPowerOfTwo(_arg1:uint):Boolean{
var _local2:Boolean;
_local2 = (((_arg1 > 0)) && (((_arg1 & (_arg1 - 1)) == 0)));
return (_local2);
}
public static function b2ClampV(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Vec2):b2Vec2{
return (b2MaxV(_arg2, b2MinV(_arg1, _arg3)));
}
public static function b2RandomRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = Math.random();
_local3 = (((_arg2 - _arg1) * _local3) + _arg1);
return (_local3);
}
public static function b2MulTMV(_arg1:b2Mat22, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2(b2Dot(_arg2, _arg1.col1), b2Dot(_arg2, _arg1.col2));
return (_local3);
}
public static function b2Min(_arg1:Number, _arg2:Number):Number{
return (((_arg1 < _arg2)) ? _arg1 : _arg2);
}
public static function b2Random():Number{
return (((Math.random() * 2) - 1));
}
public static function b2MulMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{
var _local3:b2Mat22;
_local3 = new b2Mat22(0, b2MulMV(_arg1, _arg2.col1), b2MulMV(_arg1, _arg2.col2));
return (_local3);
}
public static function b2NextPowerOfTwo(_arg1:uint):uint{
_arg1 = (_arg1 | ((_arg1 >> 1) & 2147483647));
_arg1 = (_arg1 | ((_arg1 >> 2) & 1073741823));
_arg1 = (_arg1 | ((_arg1 >> 4) & 268435455));
_arg1 = (_arg1 | ((_arg1 >> 8) & 0xFFFFFF));
_arg1 = (_arg1 | ((_arg1 >> 16) & 0xFFFF));
return ((_arg1 + 1));
}
public static function b2Max(_arg1:Number, _arg2:Number):Number{
return (((_arg1 > _arg2)) ? _arg1 : _arg2);
}
public static function b2MulMV(_arg1:b2Mat22, _arg2:b2Vec2):b2Vec2{
var _local3:b2Vec2;
_local3 = new b2Vec2(((_arg1.col1.x * _arg2.x) + (_arg1.col2.x * _arg2.y)), ((_arg1.col1.y * _arg2.x) + (_arg1.col2.y * _arg2.y)));
return (_local3);
}
}
}//package Box2D.Common.Math
Section 40
//b2Sweep (Box2D.Common.Math.b2Sweep)
package Box2D.Common.Math {
public class b2Sweep {
public var localCenter:b2Vec2;
public var c:b2Vec2;
public var a:Number;
public var c0:b2Vec2;
public var a0:Number;
public var t0:Number;
public function b2Sweep(){
localCenter = new b2Vec2();
c0 = new b2Vec2();
c = new b2Vec2();
super();
}
public function Advance(_arg1:Number):void{
var _local2:Number;
if ((((t0 < _arg1)) && (((1 - t0) > Number.MIN_VALUE)))){
_local2 = ((_arg1 - t0) / (1 - t0));
c0.x = (((1 - _local2) * c0.x) + (_local2 * c.x));
c0.y = (((1 - _local2) * c0.y) + (_local2 * c.y));
a0 = (((1 - _local2) * a0) + (_local2 * a));
t0 = _arg1;
};
}
public function GetXForm(_arg1:b2XForm, _arg2:Number):void{
var _local3:b2Mat22;
var _local4:Number;
var _local5:Number;
if ((1 - t0) > Number.MIN_VALUE){
_local4 = ((_arg2 - t0) / (1 - t0));
_arg1.position.x = (((1 - _local4) * c0.x) + (_local4 * c.x));
_arg1.position.y = (((1 - _local4) * c0.y) + (_local4 * c.y));
_local5 = (((1 - _local4) * a0) + (_local4 * a));
_arg1.R.Set(_local5);
} else {
_arg1.position.SetV(c);
_arg1.R.Set(a);
};
_local3 = _arg1.R;
_arg1.position.x = (_arg1.position.x - ((_local3.col1.x * localCenter.x) + (_local3.col2.x * localCenter.y)));
_arg1.position.y = (_arg1.position.y - ((_local3.col1.y * localCenter.x) + (_local3.col2.y * localCenter.y)));
}
}
}//package Box2D.Common.Math
Section 41
//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 Set(_arg1:Number=0, _arg2:Number=0):void{
x = _arg1;
y = _arg2;
}
public function Multiply(_arg1:Number):void{
x = (x * _arg1);
y = (y * _arg1);
}
public function Length():Number{
return (Math.sqrt(((x * x) + (y * y))));
}
public function LengthSquared():Number{
return (((x * x) + (y * y)));
}
public function SetZero():void{
x = 0;
y = 0;
}
public function Add(_arg1:b2Vec2):void{
x = (x + _arg1.x);
y = (y + _arg1.y);
}
public function MaxV(_arg1:b2Vec2):void{
x = ((x > _arg1.x)) ? x : _arg1.x;
y = ((y > _arg1.y)) ? y : _arg1.y;
}
public function SetV(_arg1:b2Vec2):void{
x = _arg1.x;
y = _arg1.y;
}
public function Negative():b2Vec2{
return (new b2Vec2(-(x), -(y)));
}
public function CrossVF(_arg1:Number):void{
var _local2:Number;
_local2 = x;
x = (_arg1 * y);
y = (-(_arg1) * _local2);
}
public function Abs():void{
if (x < 0){
x = -(x);
};
if (y < 0){
y = -(y);
};
}
public function Copy():b2Vec2{
return (new b2Vec2(x, y));
}
public function MulTM(_arg1:b2Mat22):void{
var _local2:Number;
_local2 = b2Math.b2Dot(this, _arg1.col1);
y = b2Math.b2Dot(this, _arg1.col2);
x = _local2;
}
public function IsValid():Boolean{
return (((b2Math.b2IsValid(x)) && (b2Math.b2IsValid(y))));
}
public function MinV(_arg1:b2Vec2):void{
x = ((x < _arg1.x)) ? x : _arg1.x;
y = ((y < _arg1.y)) ? y : _arg1.y;
}
public function MulM(_arg1:b2Mat22):void{
var _local2:Number;
_local2 = x;
x = ((_arg1.col1.x * _local2) + (_arg1.col2.x * y));
y = ((_arg1.col1.y * _local2) + (_arg1.col2.y * y));
}
public function Normalize():Number{
var _local1:Number;
var _local2:Number;
_local1 = Math.sqrt(((x * x) + (y * y)));
if (_local1 < Number.MIN_VALUE){
return (0);
};
_local2 = (1 / _local1);
x = (x * _local2);
y = (y * _local2);
return (_local1);
}
public function Subtract(_arg1:b2Vec2):void{
x = (x - _arg1.x);
y = (y - _arg1.y);
}
public function CrossFV(_arg1:Number):void{
var _local2:Number;
_local2 = x;
x = (-(_arg1) * y);
y = (_arg1 * _local2);
}
public static function Make(_arg1:Number, _arg2:Number):b2Vec2{
return (new b2Vec2(_arg1, _arg2));
}
}
}//package Box2D.Common.Math
Section 42
//b2XForm (Box2D.Common.Math.b2XForm)
package Box2D.Common.Math {
public class b2XForm {
public var R:b2Mat22;
public var position:b2Vec2;
public function b2XForm(_arg1:b2Vec2=null, _arg2:b2Mat22=null):void{
position = new b2Vec2();
R = new b2Mat22();
super();
if (_arg1){
position.SetV(_arg1);
R.SetM(_arg2);
};
}
public function Initialize(_arg1:b2Vec2, _arg2:b2Mat22):void{
position.SetV(_arg1);
R.SetM(_arg2);
}
public function Set(_arg1:b2XForm):void{
position.SetV(_arg1.position);
R.SetM(_arg1.R);
}
public function SetIdentity():void{
position.SetZero();
R.SetIdentity();
}
}
}//package Box2D.Common.Math
Section 43
//b2Color (Box2D.Common.b2Color)
package Box2D.Common {
import Box2D.Common.Math.*;
public class b2Color {
private var _g:uint;// = 0
private var _b:uint;// = 0
private var _r:uint;// = 0
public function b2Color(_arg1:Number, _arg2:Number, _arg3:Number){
_r = 0;
_g = 0;
_b = 0;
super();
_r = uint((0xFF * b2Math.b2Clamp(_arg1, 0, 1)));
_g = uint((0xFF * b2Math.b2Clamp(_arg2, 0, 1)));
_b = uint((0xFF * b2Math.b2Clamp(_arg3, 0, 1)));
}
public function Set(_arg1:Number, _arg2:Number, _arg3:Number):void{
_r = uint((0xFF * b2Math.b2Clamp(_arg1, 0, 1)));
_g = uint((0xFF * b2Math.b2Clamp(_arg2, 0, 1)));
_b = uint((0xFF * b2Math.b2Clamp(_arg3, 0, 1)));
}
public function get color():uint{
return (((_r | (_g << 8)) | (_b << 16)));
}
public function set r(_arg1:Number):void{
_r = uint((0xFF * b2Math.b2Clamp(_arg1, 0, 1)));
}
public function set b(_arg1:Number):void{
_b = uint((0xFF * b2Math.b2Clamp(_arg1, 0, 1)));
}
public function set g(_arg1:Number):void{
_g = uint((0xFF * b2Math.b2Clamp(_arg1, 0, 1)));
}
}
}//package Box2D.Common
Section 44
//b2Settings (Box2D.Common.b2Settings)
package Box2D.Common {
import Box2D.Common.Math.*;
public class b2Settings {
public static const b2_angularSleepTolerance:Number = 0.0111111111111111;
public static const b2_linearSleepTolerance:Number = 0.01;
public static const b2_angularSlop:Number = ((2 / 180) * b2_pi);
public static const b2_linearSlop:Number = 0.005;
public static const b2_pi:Number = Math.PI;
public static const b2_maxProxies:int = 0x0200;
public static const b2_maxAngularVelocitySquared:Number = 62500;
public static const b2_maxPolygonVertices:int = 8;
public static const b2_velocityThreshold:Number = 1;
public static const b2_contactBaumgarte:Number = 0.2;
public static const b2_maxPairs:int = 4096;
public static const b2_maxTOIContactsPerIsland:int = 32;
public static const b2_timeToSleep:Number = 0.5;
public static const b2_maxManifoldPoints:int = 2;
public static const b2_maxAngularVelocity:Number = 250;
public static const b2_maxAngularCorrection:Number = ((8 / 180) * b2_pi);
public static const USHRT_MAX:int = 0xFFFF;
public static const b2_maxLinearVelocity:Number = 200;
public static const b2_maxLinearCorrection:Number = 0.2;
public static const b2_toiSlop:Number = 0.04;
public static const b2_maxLinearVelocitySquared:Number = 40000;
public static function b2Assert(_arg1:Boolean):void{
var _local2:b2Vec2;
if (!_arg1){
_local2.x++;
};
}
}
}//package Box2D.Common
Section 45
//b2CircleContact (Box2D.Dynamics.Contacts.b2CircleContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class b2CircleContact extends b2Contact {
private var m_manifolds:Array;
private var m0:b2Manifold;
public var m_manifold:b2Manifold;
private static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2CircleContact(_arg1:b2Shape, _arg2:b2Shape){
var _local3:b2ManifoldPoint;
m_manifolds = [new b2Manifold()];
m0 = new b2Manifold();
super(_arg1, _arg2);
m_manifold = m_manifolds[0];
m_manifold.pointCount = 0;
_local3 = m_manifold.points[0];
_local3.normalImpulse = 0;
_local3.tangentImpulse = 0;
}
override public function GetManifolds():Array{
return (m_manifolds);
}
override public function Evaluate(_arg1:b2ContactListener):void{
var _local2:b2Vec2;
var _local3:b2Vec2;
var _local4:b2ManifoldPoint;
var _local5:b2Body;
var _local6:b2Body;
var _local7:b2ContactPoint;
var _local8:b2ManifoldPoint;
_local5 = m_shape1.m_body;
_local6 = m_shape2.m_body;
m0.Set(m_manifold);
b2Collision.b2CollideCircles(m_manifold, (m_shape1 as b2CircleShape), _local5.m_xf, (m_shape2 as b2CircleShape), _local6.m_xf);
_local7 = s_evalCP;
_local7.shape1 = m_shape1;
_local7.shape2 = m_shape2;
_local7.friction = m_friction;
_local7.restitution = m_restitution;
if (m_manifold.pointCount > 0){
m_manifoldCount = 1;
_local8 = m_manifold.points[0];
if (m0.pointCount == 0){
_local8.normalImpulse = 0;
_local8.tangentImpulse = 0;
if (_arg1){
_local7.position = _local5.GetWorldPoint(_local8.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local8.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local8.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m_manifold.normal);
_local7.separation = _local8.separation;
_local7.id.key = _local8.id._key;
_arg1.Add(_local7);
};
} else {
_local4 = m0.points[0];
_local8.normalImpulse = _local4.normalImpulse;
_local8.tangentImpulse = _local4.tangentImpulse;
if (_arg1){
_local7.position = _local5.GetWorldPoint(_local8.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local8.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local8.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m_manifold.normal);
_local7.separation = _local8.separation;
_local7.id.key = _local8.id._key;
_arg1.Persist(_local7);
};
};
} else {
m_manifoldCount = 0;
if ((((m0.pointCount > 0)) && (_arg1))){
_local4 = m0.points[0];
_local7.position = _local5.GetWorldPoint(_local4.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local4.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local4.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m0.normal);
_local7.separation = _local4.separation;
_local7.id.key = _local4.id._key;
_arg1.Remove(_local7);
};
};
}
public static function Destroy(_arg1:b2Contact, _arg2):void{
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2CircleContact(_arg1, _arg2));
}
}
}//package Box2D.Dynamics.Contacts
Section 46
//b2ConcaveArcAndCircleContact (Box2D.Dynamics.Contacts.b2ConcaveArcAndCircleContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
public class b2ConcaveArcAndCircleContact extends b2PolyAndCircleContact {
private static var s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2ConcaveArcAndCircleContact(_arg1:b2Shape, _arg2:b2Shape){
super(_arg1, _arg2);
}
override public function GetManifolds():Array{
return (m_manifolds);
}
override public function Evaluate(_arg1:b2ContactListener):void{
var _local2:int;
var _local3:b2Vec2;
var _local4:b2Vec2;
var _local5:b2ManifoldPoint;
var _local6:b2Body;
var _local7:b2Body;
var _local8:Array;
var _local9:b2ContactPoint;
var _local10:b2ManifoldPoint;
var _local11:Boolean;
var _local12:uint;
var _local13:int;
_local6 = m_shape1.m_body;
_local7 = m_shape2.m_body;
m0.Set(m_manifolds[0]);
m_manifoldCount = b2CollideConcaveArcAndCircle(m_manifolds, (m_shape1 as b2ConcaveArcShape), _local6.m_xf, (m_shape2 as b2CircleShape), _local7.m_xf);
_local8 = [false, false];
_local9 = s_evalCP;
_local9.shape1 = m_shape1;
_local9.shape2 = m_shape2;
_local9.friction = m_friction;
_local9.restitution = m_restitution;
if (m_manifold.pointCount > 0){
_local2 = 0;
while (_local2 < m_manifold.pointCount) {
_local10 = m_manifold.points[_local2];
_local10.normalImpulse = 0;
_local10.tangentImpulse = 0;
_local11 = false;
_local12 = _local10.id._key;
_local13 = 0;
while (_local13 < m0.pointCount) {
if (_local8[_local13] == true){
} else {
_local5 = m0.points[_local13];
if (_local5.id._key == _local12){
_local8[_local13] = true;
_local10.normalImpulse = _local5.normalImpulse;
_local10.tangentImpulse = _local5.tangentImpulse;
_local11 = true;
if (_arg1 != null){
_local9.position = _local6.GetWorldPoint(_local10.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local10.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local10.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m_manifold.normal);
_local9.separation = _local10.separation;
_local9.id.key = _local12;
_arg1.Persist(_local9);
};
break;
};
};
_local13++;
};
if ((((_local11 == false)) && (!((_arg1 == null))))){
_local9.position = _local6.GetWorldPoint(_local10.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local10.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local10.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m_manifold.normal);
_local9.separation = _local10.separation;
_local9.id.key = _local12;
_arg1.Add(_local9);
};
_local2++;
};
m_manifoldCount = 1;
} else {
m_manifoldCount = 0;
};
if (_arg1 == null){
return;
};
_local2 = 0;
while (_local2 < m0.pointCount) {
if (_local8[_local2]){
} else {
_local5 = m0.points[_local2];
_local9.position = _local6.GetWorldPoint(_local5.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local5.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local5.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m0.normal);
_local9.separation = _local5.separation;
_local9.id.key = _local5.id._key;
_arg1.Remove(_local9);
};
_local2++;
};
}
public static function Destroy(_arg1:b2Contact, _arg2):void{
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2ConcaveArcAndCircleContact(_arg1, _arg2));
}
public static function b2CollideConcaveArcAndCircle(_arg1:Array, _arg2:b2ConcaveArcShape, _arg3:b2XForm, _arg4:b2CircleShape, _arg5:b2XForm):Number{
var _local6:Boolean;
var _local7:uint;
var _local8:b2Manifold;
var _local9:Number;
var _local10:b2ManifoldPoint;
var _local11:Number;
var _local12:Number;
var _local13:b2Vec2;
var _local14:b2Mat22;
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:Number;
var _local24:Number;
var _local25:int;
var _local26:int;
var _local27:int;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local39:Number;
var _local40:Number;
_local6 = false;
_local7 = b2Collision.b2_nullFeature;
_local8 = _arg1[0];
_local9 = 0;
_local8.pointCount = 0;
_local14 = _arg5.R;
_local13 = _arg4.m_localPosition;
_local17 = (_arg5.position.x + ((_local14.col1.x * _local13.x) + (_local14.col2.x * _local13.y)));
_local18 = (_arg5.position.y + ((_local14.col1.y * _local13.x) + (_local14.col2.y * _local13.y)));
_local11 = (_local17 - _arg3.position.x);
_local12 = (_local18 - _arg3.position.y);
_local14 = _arg3.R;
_local19 = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local20 = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local22 = 0;
_local23 = -(Number.MAX_VALUE);
_local24 = _arg4.m_radius;
_local25 = 1;
while (_local25 < _arg2.m_vertexCount) {
_local11 = (_local19 - _arg2.m_vertices[_local25].x);
_local12 = (_local20 - _arg2.m_vertices[_local25].y);
_local33 = ((_arg2.m_normals[_local25].x * _local11) + (_arg2.m_normals[_local25].y * _local12));
if (_local33 > _local24){
_local9 = 0;
return (_local9);
};
if (_local33 > _local23){
_local23 = _local33;
_local22 = _local25;
};
_local25++;
};
if (((((true) || ((_local22 == 1)))) || ((_local22 == (_arg2.m_vertexCount - 1))))){
_local33 = ((_arg2.m_normals[0].x * (_local19 - _arg2.m_vertices[0].x)) + (_arg2.m_normals[0].y * (_local20 - _arg2.m_vertices[0].y)));
_local34 = (_local19 - _arg2.m_arcCenter.x);
_local35 = (_local20 - _arg2.m_arcCenter.y);
_local36 = Math.sqrt(((_local34 * _local34) + (_local35 * _local35)));
_local34 = (_local34 / _local36);
_local35 = (_local35 / _local36);
_local33 = Math.max(_local33, (_arg2.m_radius - _local36));
if (_local33 > _local24){
_local9 = 0;
return (_local9);
};
if (_local33 > _local23){
_local23 = _local33;
_local22 = 0;
};
};
if ((((_local22 == 0)) && ((_local24 >= _arg2.m_radius)))){
if (_arg1.length < 2){
_arg1[1] = new b2Manifold();
_arg1[1].pointCount = 0;
_arg1[1].points[0].normalImpulse = 0;
_arg1[1].points[0].tangentImpulse = 0;
};
_local9 = 0;
_local25 = 0;
while (_local25 < 2) {
_local11 = (_arg2.m_vertices[_local25].x - _local19);
_local12 = (_arg2.m_vertices[_local25].y - _local20);
_local37 = ((_local11 * _local11) + (_local12 * _local12));
if (_local37 < (_local24 * _local24)){
_local38 = Math.sqrt(_local37);
_arg1[_local9].pointCount = 1;
_local10 = _arg1[_local9].points[0];
_local10.id.features.incidentEdge = _local7;
_local10.id.features.incidentVertex = _local25;
_local10.id.features.referenceEdge = _local7;
_local10.id.features.flip = 0;
_local10.separation = (_local38 - _local24);
_local10.normalImpulse = 0;
_local10.tangentImpulse = 0;
_local11 = (-(_local11) / _local38);
_local12 = (-(_local12) / _local38);
_arg1[_local9].normal.x = ((_local14.col1.x * _local11) + (_local14.col2.x * _local12));
_arg1[_local9].normal.y = ((_local14.col1.y * _local11) + (_local14.col2.y * _local12));
_local15 = (_local17 - (_local24 * _arg1[_local9].normal.x));
_local16 = (_local18 - (_local24 * _arg1[_local9].normal.y));
_local11 = (_local15 - _arg3.position.x);
_local12 = (_local16 - _arg3.position.y);
_local14 = _arg3.R;
_local10.localPoint1.x = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local10.localPoint1.y = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local11 = (_local15 - _arg5.position.x);
_local12 = (_local16 - _arg5.position.y);
_local14 = _arg5.R;
_local10.localPoint2.x = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local10.localPoint2.y = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local9++;
};
_local25++;
};
return (_local9);
};
if (_local23 < Number.MIN_VALUE){
_local8.pointCount = 1;
_local9 = 1;
if (_local22 == 0){
_local14 = _arg3.R;
_local8.normal.x = -(((_local14.col1.x * _local34) + (_local14.col2.x * _local35)));
_local8.normal.y = -(((_local14.col1.y * _local34) + (_local14.col2.y * _local35)));
} else {
_local13 = _arg2.m_normals[_local22];
_local14 = _arg3.R;
_local8.normal.x = ((_local14.col1.x * _local13.x) + (_local14.col2.x * _local13.y));
_local8.normal.y = ((_local14.col1.y * _local13.x) + (_local14.col2.y * _local13.y));
};
_local10 = _local8.points[0];
_local10.id.features.incidentEdge = _local22;
_local10.id.features.incidentVertex = _local7;
_local10.id.features.referenceEdge = 0;
_local10.id.features.flip = 0;
_local15 = (_local17 - (_local24 * _local8.normal.x));
_local16 = (_local18 - (_local24 * _local8.normal.y));
_local11 = (_local15 - _arg3.position.x);
_local12 = (_local16 - _arg3.position.y);
_local14 = _arg3.R;
_local10.localPoint1.x = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local10.localPoint1.y = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local11 = (_local15 - _arg5.position.x);
_local12 = (_local16 - _arg5.position.y);
_local14 = _arg5.R;
_local10.localPoint2.x = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local10.localPoint2.y = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local10.separation = (_local23 - _local24);
return (_local9);
};
_local26 = _local22;
_local27 = (((_local26 + 1) < _arg2.m_vertexCount)) ? (_local26 + 1) : 0;
_local28 = (_arg2.m_vertices[_local27].x - _arg2.m_vertices[_local26].x);
_local29 = (_arg2.m_vertices[_local27].y - _arg2.m_vertices[_local26].y);
_local30 = Math.sqrt(((_local28 * _local28) + (_local29 * _local29)));
_local28 = (_local28 / _local30);
_local29 = (_local29 / _local30);
if (_local30 < Number.MIN_VALUE){
_local11 = (_local19 - _arg2.m_vertices[_local26].x);
_local12 = (_local20 - _arg2.m_vertices[_local26].y);
_local21 = Math.sqrt(((_local11 * _local11) + (_local12 * _local12)));
_local11 = (_local11 / _local21);
_local12 = (_local12 / _local21);
if (_local21 > _local24){
_local9 = 0;
return (_local9);
};
_local8.pointCount = 1;
_local9 = 1;
_local14 = _arg3.R;
_local8.normal.x = ((_local14.col1.x * _local11) + (_local14.col2.x * _local12));
_local8.normal.y = ((_local14.col1.y * _local11) + (_local14.col2.y * _local12));
_local10 = _local8.points[0];
_local10.id.features.incidentEdge = _local7;
_local10.id.features.incidentVertex = _local26;
_local10.id.features.referenceEdge = _local7;
_local10.id.features.flip = 0;
_local15 = (_local17 - (_local24 * _local8.normal.x));
_local16 = (_local18 - (_local24 * _local8.normal.y));
_local11 = (_local15 - _arg3.position.x);
_local12 = (_local16 - _arg3.position.y);
_local14 = _arg3.R;
_local10.localPoint1.x = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local10.localPoint1.y = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local11 = (_local15 - _arg5.position.x);
_local12 = (_local16 - _arg5.position.y);
_local14 = _arg5.R;
_local10.localPoint2.x = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local10.localPoint2.y = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local10.separation = (_local21 - _local24);
return (_local9);
};
_local11 = (_local19 - _arg2.m_vertices[_local26].x);
_local12 = (_local20 - _arg2.m_vertices[_local26].y);
_local10 = _local8.points[0];
_local10.id.features.incidentEdge = 0;
_local10.id.features.incidentVertex = 0;
_local10.id.features.referenceEdge = 0;
_local10.id.features.flip = 0;
if (_local22 == 0){
_local39 = ((_local28 * _local34) + (_local29 * _local35));
if (((_local34 * _arg2.m_normals[0].x) + (_local35 * _arg2.m_normals[0].y)) > 0){
if (_local39 < 0){
_local31 = _arg2.m_vertices[_local26].x;
_local32 = _arg2.m_vertices[_local26].y;
_local10.id.features.incidentVertex = _local26;
_local10.id.features.incidentEdge = _local7;
} else {
_local31 = _arg2.m_vertices[_local27].x;
_local32 = _arg2.m_vertices[_local27].y;
_local10.id.features.incidentVertex = _local27;
_local10.id.features.incidentEdge = _local7;
};
} else {
if (_local39 <= -(_arg2.m_norm)){
_local31 = _arg2.m_vertices[_local26].x;
_local32 = _arg2.m_vertices[_local26].y;
_local10.id.features.incidentVertex = _local26;
_local10.id.features.incidentEdge = _local7;
} else {
if (_local39 >= _arg2.m_norm){
_local31 = _arg2.m_vertices[_local27].x;
_local32 = _arg2.m_vertices[_local27].y;
_local10.id.features.incidentVertex = _local27;
_local10.id.features.incidentEdge = _local7;
} else {
_local31 = (_arg2.m_arcCenter.x + (_local34 * _arg2.m_radius));
_local32 = (_arg2.m_arcCenter.y + (_local35 * _arg2.m_radius));
_local10.id.features.incidentEdge = _local26;
};
};
};
} else {
_local40 = ((_local11 * _local28) + (_local12 * _local29));
if (_local40 <= 0){
_local31 = _arg2.m_vertices[_local26].x;
_local32 = _arg2.m_vertices[_local26].y;
_local10.id.features.incidentVertex = _local26;
_local10.id.features.incidentEdge = _local7;
} else {
if (_local40 >= _local30){
_local31 = _arg2.m_vertices[_local27].x;
_local32 = _arg2.m_vertices[_local27].y;
_local10.id.features.incidentVertex = _local27;
_local10.id.features.incidentEdge = _local7;
} else {
_local31 = ((_local28 * _local40) + _arg2.m_vertices[_local26].x);
_local32 = ((_local29 * _local40) + _arg2.m_vertices[_local26].y);
_local10.id.features.incidentEdge = _local26;
};
};
};
_local11 = (_local19 - _local31);
_local12 = (_local20 - _local32);
_local21 = Math.sqrt(((_local11 * _local11) + (_local12 * _local12)));
_local11 = (_local11 / _local21);
_local12 = (_local12 / _local21);
if (_local21 > _local24){
_local9 = 0;
return (_local9);
};
_local8.pointCount = 1;
_local9 = 1;
_local14 = _arg3.R;
_local8.normal.x = ((_local14.col1.x * _local11) + (_local14.col2.x * _local12));
_local8.normal.y = ((_local14.col1.y * _local11) + (_local14.col2.y * _local12));
_local15 = (_local17 - (_local24 * _local8.normal.x));
_local16 = (_local18 - (_local24 * _local8.normal.y));
_local11 = (_local15 - _arg3.position.x);
_local12 = (_local16 - _arg3.position.y);
_local14 = _arg3.R;
_local10.localPoint1.x = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local10.localPoint1.y = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local11 = (_local15 - _arg5.position.x);
_local12 = (_local16 - _arg5.position.y);
_local14 = _arg5.R;
_local10.localPoint2.x = ((_local11 * _local14.col1.x) + (_local12 * _local14.col1.y));
_local10.localPoint2.y = ((_local11 * _local14.col2.x) + (_local12 * _local14.col2.y));
_local10.separation = (_local21 - _local24);
return (_local9);
}
}
}//package Box2D.Dynamics.Contacts
Section 47
//b2Contact (Box2D.Dynamics.Contacts.b2Contact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
public class b2Contact {
public var m_shape1:b2Shape;
public var m_shape2:b2Shape;
public var m_prev:b2Contact;
public var m_toi:Number;
public var m_next:b2Contact;
public var m_friction:Number;
public var m_manifoldCount:int;
public var m_node1:b2ContactEdge;
public var m_node2:b2ContactEdge;
public var m_restitution:Number;
public var m_flags:uint;
public static var e_toiFlag:uint = 8;
public static var e_nonSolidFlag:uint = 1;
public static var e_slowFlag:uint = 2;
public static var e_islandFlag:uint = 4;
public static var s_registers:Array;
public static var s_initialized:Boolean = false;
public function b2Contact(_arg1:b2Shape=null, _arg2:b2Shape=null){
m_node1 = new b2ContactEdge();
m_node2 = new b2ContactEdge();
super();
m_flags = 0;
if (((!(_arg1)) || (!(_arg2)))){
m_shape1 = null;
m_shape2 = null;
return;
};
if (((_arg1.IsSensor()) || (_arg2.IsSensor()))){
m_flags = (m_flags | e_nonSolidFlag);
};
m_shape1 = _arg1;
m_shape2 = _arg2;
m_manifoldCount = 0;
m_friction = Math.sqrt((m_shape1.m_friction * m_shape2.m_friction));
m_restitution = b2Math.b2Max(m_shape1.m_restitution, m_shape2.m_restitution);
m_prev = null;
m_next = null;
m_node1.contact = null;
m_node1.prev = null;
m_node1.next = null;
m_node1.other = null;
m_node2.contact = null;
m_node2.prev = null;
m_node2.next = null;
m_node2.other = null;
}
public function GetShape1():b2Shape{
return (m_shape1);
}
public function IsSolid():Boolean{
return (((m_flags & e_nonSolidFlag) == 0));
}
public function GetNext():b2Contact{
return (m_next);
}
public function GetManifolds():Array{
return (null);
}
public function GetShape2():b2Shape{
return (m_shape2);
}
public function GetManifoldCount():int{
return (m_manifoldCount);
}
public function Update(_arg1:b2ContactListener):void{
var _local2:int;
var _local3:int;
var _local4:b2Body;
var _local5:b2Body;
_local2 = m_manifoldCount;
Evaluate(_arg1);
_local3 = m_manifoldCount;
_local4 = m_shape1.m_body;
_local5 = m_shape2.m_body;
if ((((_local3 == 0)) && ((_local2 > 0)))){
_local4.WakeUp();
_local5.WakeUp();
};
if (((((((_local4.IsStatic()) || (_local4.IsBullet()))) || (_local5.IsStatic()))) || (_local5.IsBullet()))){
m_flags = (m_flags & ~(e_slowFlag));
} else {
m_flags = (m_flags | e_slowFlag);
};
}
public function Evaluate(_arg1:b2ContactListener):void{
}
public static function InitializeRegisters():void{
var _local1:int;
var _local2:int;
s_registers = new Array(b2Shape.e_shapeTypeCount);
_local1 = 0;
while (_local1 < b2Shape.e_shapeTypeCount) {
s_registers[_local1] = new Array(b2Shape.e_shapeTypeCount);
_local2 = 0;
while (_local2 < b2Shape.e_shapeTypeCount) {
s_registers[_local1][_local2] = new b2ContactRegister();
_local2++;
};
_local1++;
};
AddType(b2CircleContact.Create, b2CircleContact.Destroy, b2Shape.e_circleShape, b2Shape.e_circleShape);
AddType(b2PolyAndCircleContact.Create, b2PolyAndCircleContact.Destroy, b2Shape.e_polygonShape, b2Shape.e_circleShape);
AddType(b2PolygonContact.Create, b2PolygonContact.Destroy, b2Shape.e_polygonShape, b2Shape.e_polygonShape);
AddType(b2ConcaveArcAndCircleContact.Create, b2ConcaveArcAndCircleContact.Destroy, b2Shape.e_concaveArcShape, b2Shape.e_circleShape);
AddType(b2PolyAndConcaveArcContact.Create, b2PolyAndConcaveArcContact.Destroy, b2Shape.e_polygonShape, b2Shape.e_concaveArcShape);
AddType(b2StaticEdgeAndCircleContact.Create, b2StaticEdgeAndCircleContact.Destroy, b2Shape.e_staticEdgeShape, b2Shape.e_circleShape);
AddType(b2PolyAndStaticEdgeContact.Create, b2PolyAndStaticEdgeContact.Destroy, b2Shape.e_polygonShape, b2Shape.e_staticEdgeShape);
}
public static function Destroy(_arg1:b2Contact, _arg2):void{
var _local3:int;
var _local4:int;
var _local5:b2ContactRegister;
var _local6:Function;
if (_arg1.m_manifoldCount > 0){
_arg1.m_shape1.m_body.WakeUp();
_arg1.m_shape2.m_body.WakeUp();
};
_local3 = _arg1.m_shape1.m_type;
_local4 = _arg1.m_shape2.m_type;
_local5 = s_registers[_local3][_local4];
_local6 = _local5.destroyFcn;
_local6(_arg1, _arg2);
}
public static function AddType(_arg1:Function, _arg2:Function, _arg3:int, _arg4:int):void{
s_registers[_arg3][_arg4].createFcn = _arg1;
s_registers[_arg3][_arg4].destroyFcn = _arg2;
s_registers[_arg3][_arg4].primary = true;
if (_arg3 != _arg4){
s_registers[_arg4][_arg3].createFcn = _arg1;
s_registers[_arg4][_arg3].destroyFcn = _arg2;
s_registers[_arg4][_arg3].primary = false;
};
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
var _local4:int;
var _local5:int;
var _local6:b2ContactRegister;
var _local7:Function;
var _local8:b2Contact;
var _local9:int;
var _local10:b2Manifold;
if (s_initialized == false){
InitializeRegisters();
s_initialized = true;
};
_local4 = _arg1.m_type;
_local5 = _arg2.m_type;
_local6 = s_registers[_local4][_local5];
_local7 = _local6.createFcn;
if (_local7 != null){
if (_local6.primary){
return (_local7(_arg1, _arg2, _arg3));
};
_local8 = _local7(_arg2, _arg1, _arg3);
_local9 = 0;
while (_local9 < _local8.m_manifoldCount) {
_local10 = _local8.GetManifolds()[_local9];
_local8.GetManifolds()[_local9].normal = _local10.normal.Negative();
_local9++;
};
return (_local8);
//unresolved jump
};
return (null);
}
}
}//package Box2D.Dynamics.Contacts
Section 48
//b2ContactConstraint (Box2D.Dynamics.Contacts.b2ContactConstraint)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2ContactConstraint {
public var points:Array;
public var restitution:Number;
public var body1:b2Body;
public var manifold:b2Manifold;
public var normal:b2Vec2;
public var body2:b2Body;
public var friction:Number;
public var pointCount:int;
public function b2ContactConstraint(){
var _local1:int;
normal = new b2Vec2();
super();
points = new Array(b2Settings.b2_maxManifoldPoints);
_local1 = 0;
while (_local1 < b2Settings.b2_maxManifoldPoints) {
points[_local1] = new b2ContactConstraintPoint();
_local1++;
};
}
}
}//package Box2D.Dynamics.Contacts
Section 49
//b2ContactConstraintPoint (Box2D.Dynamics.Contacts.b2ContactConstraintPoint)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
public class b2ContactConstraintPoint {
public var r2:b2Vec2;
public var separation:Number;
public var positionImpulse:Number;
public var normalImpulse:Number;
public var equalizedMass:Number;
public var tangentMass:Number;
public var tangentImpulse:Number;
public var localAnchor1:b2Vec2;
public var localAnchor2:b2Vec2;
public var normalMass:Number;
public var velocityBias:Number;
public var r1:b2Vec2;
public function b2ContactConstraintPoint(){
localAnchor1 = new b2Vec2();
localAnchor2 = new b2Vec2();
r1 = new b2Vec2();
r2 = new b2Vec2();
super();
}
}
}//package Box2D.Dynamics.Contacts
Section 50
//b2ContactEdge (Box2D.Dynamics.Contacts.b2ContactEdge)
package Box2D.Dynamics.Contacts {
import Box2D.Dynamics.*;
public class b2ContactEdge {
public var next:b2ContactEdge;
public var other:b2Body;
public var contact:b2Contact;
public var prev:b2ContactEdge;
}
}//package Box2D.Dynamics.Contacts
Section 51
//b2ContactRegister (Box2D.Dynamics.Contacts.b2ContactRegister)
package Box2D.Dynamics.Contacts {
public class b2ContactRegister {
public var primary:Boolean;
public var createFcn:Function;
public var destroyFcn:Function;
}
}//package Box2D.Dynamics.Contacts
Section 52
//b2ContactResult (Box2D.Dynamics.Contacts.b2ContactResult)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
public class b2ContactResult {
public var normal:b2Vec2;
public var position:b2Vec2;
public var shape1:b2Shape;
public var shape2:b2Shape;
public var normalImpulse:Number;
public var tangentImpulse:Number;
public var id:b2ContactID;
public function b2ContactResult(){
position = new b2Vec2();
normal = new b2Vec2();
id = new b2ContactID();
super();
}
}
}//package Box2D.Dynamics.Contacts
Section 53
//b2ContactSolver (Box2D.Dynamics.Contacts.b2ContactSolver)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2ContactSolver {
public var m_constraintCount:int;
public var m_constraints:Array;
public var m_allocator;
public var m_step:b2TimeStep;
public function b2ContactSolver(_arg1:b2TimeStep, _arg2:Array, _arg3:int, _arg4){
var _local5:b2Contact;
var _local6:int;
var _local7:b2Vec2;
var _local8:b2Mat22;
var _local9:int;
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;
m_step = new b2TimeStep();
m_constraints = new Array();
super();
m_step.dt = _arg1.dt;
m_step.inv_dt = _arg1.inv_dt;
m_step.maxIterations = _arg1.maxIterations;
m_allocator = _arg4;
m_constraintCount = 0;
_local6 = 0;
while (_local6 < _arg3) {
_local5 = _arg2[_local6];
m_constraintCount = (m_constraintCount + _local5.m_manifoldCount);
_local6++;
};
_local6 = 0;
while (_local6 < m_constraintCount) {
m_constraints[_local6] = new b2ContactConstraint();
_local6++;
};
_local9 = 0;
_local6 = 0;
while (_local6 < _arg3) {
_local5 = _arg2[_local6];
_local10 = _local5.m_shape1.m_body;
_local11 = _local5.m_shape2.m_body;
_local12 = _local5.m_manifoldCount;
_local13 = _local5.GetManifolds();
_local14 = _local5.m_friction;
_local15 = _local5.m_restitution;
_local16 = _local10.m_linearVelocity.x;
_local17 = _local10.m_linearVelocity.y;
_local18 = _local11.m_linearVelocity.x;
_local19 = _local11.m_linearVelocity.y;
_local20 = _local10.m_angularVelocity;
_local21 = _local11.m_angularVelocity;
_local22 = 0;
while (_local22 < _local12) {
_local23 = _local13[_local22];
_local24 = _local23.normal.x;
_local25 = _local23.normal.y;
_local26 = m_constraints[_local9];
_local26.body1 = _local10;
_local26.body2 = _local11;
_local26.manifold = _local23;
_local26.normal.x = _local24;
_local26.normal.y = _local25;
_local26.pointCount = _local23.pointCount;
_local26.friction = _local14;
_local26.restitution = _local15;
_local27 = 0;
while (_local27 < _local26.pointCount) {
_local28 = _local23.points[_local27];
_local29 = _local26.points[_local27];
_local29.normalImpulse = _local28.normalImpulse;
_local29.tangentImpulse = _local28.tangentImpulse;
_local29.separation = _local28.separation;
_local29.positionImpulse = 0;
_local29.localAnchor1.SetV(_local28.localPoint1);
_local29.localAnchor2.SetV(_local28.localPoint2);
_local8 = _local10.m_xf.R;
_local32 = (_local28.localPoint1.x - _local10.m_sweep.localCenter.x);
_local33 = (_local28.localPoint1.y - _local10.m_sweep.localCenter.y);
_local30 = ((_local8.col1.x * _local32) + (_local8.col2.x * _local33));
_local33 = ((_local8.col1.y * _local32) + (_local8.col2.y * _local33));
_local32 = _local30;
_local29.r1.Set(_local32, _local33);
_local8 = _local11.m_xf.R;
_local34 = (_local28.localPoint2.x - _local11.m_sweep.localCenter.x);
_local35 = (_local28.localPoint2.y - _local11.m_sweep.localCenter.y);
_local30 = ((_local8.col1.x * _local34) + (_local8.col2.x * _local35));
_local35 = ((_local8.col1.y * _local34) + (_local8.col2.y * _local35));
_local34 = _local30;
_local29.r2.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.m_invMass + _local11.m_invMass);
_local40 = (_local40 + ((_local10.m_invI * (_local36 - (_local38 * _local38))) + (_local11.m_invI * (_local37 - (_local39 * _local39)))));
_local29.normalMass = (1 / _local40);
_local41 = ((_local10.m_mass * _local10.m_invMass) + (_local11.m_mass * _local11.m_invMass));
_local41 = (_local41 + (((_local10.m_mass * _local10.m_invI) * (_local36 - (_local38 * _local38))) + ((_local11.m_mass * _local11.m_invI) * (_local37 - (_local39 * _local39)))));
_local29.equalizedMass = (1 / _local41);
_local42 = _local25;
_local43 = -(_local24);
_local44 = ((_local32 * _local42) + (_local33 * _local43));
_local45 = ((_local34 * _local42) + (_local35 * _local43));
_local46 = (_local10.m_invMass + _local11.m_invMass);
_local46 = (_local46 + ((_local10.m_invI * (_local36 - (_local44 * _local44))) + (_local11.m_invI * (_local37 - (_local45 * _local45)))));
_local29.tangentMass = (1 / _local46);
_local29.velocityBias = 0;
if (_local29.separation > 0){
_local29.velocityBias = (-60 * _local29.separation);
};
_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.velocityBias = (_local29.velocityBias + (-(_local26.restitution) * _local47));
};
_local27++;
};
_local9++;
_local22++;
};
_local6++;
};
}
public function InitVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Vec2;
var _local3:b2Vec2;
var _local4:b2Mat22;
var _local5:int;
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;
_local5 = 0;
while (_local5 < m_constraintCount) {
_local6 = m_constraints[_local5];
_local7 = _local6.body1;
_local8 = _local6.body2;
_local9 = _local7.m_invMass;
_local10 = _local7.m_invI;
_local11 = _local8.m_invMass;
_local12 = _local8.m_invI;
_local13 = _local6.normal.x;
_local14 = _local6.normal.y;
_local15 = _local14;
_local16 = -(_local13);
if (_arg1.warmStarting){
_local19 = _local6.pointCount;
_local18 = 0;
while (_local18 < _local19) {
_local20 = _local6.points[_local18];
_local6.points[_local18].normalImpulse = (_local20.normalImpulse * _arg1.dtRatio);
_local20.tangentImpulse = (_local20.tangentImpulse * _arg1.dtRatio);
_local21 = ((_local20.normalImpulse * _local13) + (_local20.tangentImpulse * _local15));
_local22 = ((_local20.normalImpulse * _local14) + (_local20.tangentImpulse * _local16));
_local7.m_angularVelocity = (_local7.m_angularVelocity - (_local10 * ((_local20.r1.x * _local22) - (_local20.r1.y * _local21))));
_local7.m_linearVelocity.x = (_local7.m_linearVelocity.x - (_local9 * _local21));
_local7.m_linearVelocity.y = (_local7.m_linearVelocity.y - (_local9 * _local22));
_local8.m_angularVelocity = (_local8.m_angularVelocity + (_local12 * ((_local20.r2.x * _local22) - (_local20.r2.y * _local21))));
_local8.m_linearVelocity.x = (_local8.m_linearVelocity.x + (_local11 * _local21));
_local8.m_linearVelocity.y = (_local8.m_linearVelocity.y + (_local11 * _local22));
_local18++;
};
} else {
_local19 = _local6.pointCount;
_local18 = 0;
while (_local18 < _local19) {
_local23 = _local6.points[_local18];
_local23.normalImpulse = 0;
_local23.tangentImpulse = 0;
_local18++;
};
};
_local5++;
};
}
public function SolvePositionConstraints(_arg1:Number):Boolean{
var _local2:Number;
var _local3:b2Mat22;
var _local4:b2Vec2;
var _local5:int;
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;
_local2 = 0;
_local5 = 0;
while (_local5 < m_constraintCount) {
_local6 = m_constraints[_local5];
_local7 = _local6.body1;
_local8 = _local6.body2;
_local9 = _local7.m_sweep.c;
_local10 = _local7.m_sweep.a;
_local11 = _local8.m_sweep.c;
_local12 = _local8.m_sweep.a;
_local13 = (_local7.m_mass * _local7.m_invMass);
_local14 = (_local7.m_mass * _local7.m_invI);
_local15 = (_local8.m_mass * _local8.m_invMass);
_local16 = (_local8.m_mass * _local8.m_invI);
_local17 = _local6.normal.x;
_local18 = _local6.normal.y;
_local19 = _local6.pointCount;
_local20 = 0;
while (_local20 < _local19) {
_local21 = _local6.points[_local20];
_local3 = _local7.m_xf.R;
_local4 = _local7.m_sweep.localCenter;
_local22 = (_local21.localAnchor1.x - _local4.x);
_local23 = (_local21.localAnchor1.y - _local4.y);
_local26 = ((_local3.col1.x * _local22) + (_local3.col2.x * _local23));
_local23 = ((_local3.col1.y * _local22) + (_local3.col2.y * _local23));
_local22 = _local26;
_local3 = _local8.m_xf.R;
_local4 = _local8.m_sweep.localCenter;
_local24 = (_local21.localAnchor2.x - _local4.x);
_local25 = (_local21.localAnchor2.y - _local4.y);
_local26 = ((_local3.col1.x * _local24) + (_local3.col2.x * _local25));
_local25 = ((_local3.col1.y * _local24) + (_local3.col2.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.separation);
_local2 = b2Math.b2Min(_local2, _local33);
_local34 = (_arg1 * b2Math.b2Clamp((_local33 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0));
_local35 = (-(_local21.equalizedMass) * _local34);
_local36 = _local21.positionImpulse;
_local21.positionImpulse = b2Math.b2Max((_local36 + _local35), 0);
_local35 = (_local21.positionImpulse - _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.m_sweep.a = _local10;
_local7.SynchronizeTransform();
_local11.x = (_local11.x + (_local15 * _local37));
_local11.y = (_local11.y + (_local15 * _local38));
_local12 = (_local12 + (_local16 * ((_local24 * _local38) - (_local25 * _local37))));
_local8.m_sweep.a = _local12;
_local8.SynchronizeTransform();
_local20++;
};
_local5++;
};
return ((_local2 >= (-1.5 * b2Settings.b2_linearSlop)));
}
public function SolveVelocityConstraints():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 _local19:int;
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;
_local19 = 0;
while (_local19 < m_constraintCount) {
_local20 = m_constraints[_local19];
_local21 = _local20.body1;
_local22 = _local20.body2;
_local23 = _local21.m_angularVelocity;
_local24 = _local22.m_angularVelocity;
_local25 = _local21.m_linearVelocity;
_local26 = _local22.m_linearVelocity;
_local27 = _local21.m_invMass;
_local28 = _local21.m_invI;
_local29 = _local22.m_invMass;
_local30 = _local22.m_invI;
_local31 = _local20.normal.x;
_local32 = _local20.normal.y;
_local33 = _local32;
_local34 = -(_local31);
_local35 = _local20.friction;
_local37 = _local20.pointCount;
_local1 = 0;
while (_local1 < _local37) {
_local2 = _local20.points[_local1];
_local7 = (((_local26.x + (-(_local24) * _local2.r2.y)) - _local25.x) - (-(_local23) * _local2.r1.y));
_local8 = (((_local26.y + (_local24 * _local2.r2.x)) - _local25.y) - (_local23 * _local2.r1.x));
_local9 = ((_local7 * _local31) + (_local8 * _local32));
_local11 = (-(_local2.normalMass) * (_local9 - _local2.velocityBias));
_local10 = ((_local7 * _local33) + (_local8 * _local34));
_local12 = (_local2.tangentMass * -(_local10));
_local13 = b2Math.b2Max((_local2.normalImpulse + _local11), 0);
_local11 = (_local13 - _local2.normalImpulse);
_local38 = (_local35 * _local2.normalImpulse);
_local14 = b2Math.b2Clamp((_local2.tangentImpulse + _local12), -(_local38), _local38);
_local12 = (_local14 - _local2.tangentImpulse);
_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.r1.x * _local16) - (_local2.r1.y * _local15))));
_local26.x = (_local26.x + (_local29 * _local15));
_local26.y = (_local26.y + (_local29 * _local16));
_local24 = (_local24 + (_local30 * ((_local2.r2.x * _local16) - (_local2.r2.y * _local15))));
_local2.normalImpulse = _local13;
_local2.tangentImpulse = _local14;
_local1++;
};
_local21.m_angularVelocity = _local23;
_local22.m_angularVelocity = _local24;
_local19++;
};
}
public function FinalizeVelocityConstraints():void{
var _local1:int;
var _local2:b2ContactConstraint;
var _local3:b2Manifold;
var _local4:int;
var _local5:b2ManifoldPoint;
var _local6:b2ContactConstraintPoint;
_local1 = 0;
while (_local1 < m_constraintCount) {
_local2 = m_constraints[_local1];
_local3 = _local2.manifold;
_local4 = 0;
while (_local4 < _local2.pointCount) {
_local5 = _local3.points[_local4];
_local6 = _local2.points[_local4];
_local5.normalImpulse = _local6.normalImpulse;
_local5.tangentImpulse = _local6.tangentImpulse;
_local4++;
};
_local1++;
};
}
}
}//package Box2D.Dynamics.Contacts
Section 54
//b2NullContact (Box2D.Dynamics.Contacts.b2NullContact)
package Box2D.Dynamics.Contacts {
import Box2D.Dynamics.*;
public class b2NullContact extends b2Contact {
override public function GetManifolds():Array{
return (null);
}
override public function Evaluate(_arg1:b2ContactListener):void{
}
}
}//package Box2D.Dynamics.Contacts
Section 55
//b2PolyAndCircleContact (Box2D.Dynamics.Contacts.b2PolyAndCircleContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
public class b2PolyAndCircleContact extends b2Contact {
public var m_manifolds:Array;
public var m0:b2Manifold;
public var m_manifold:b2Manifold;
public static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2PolyAndCircleContact(_arg1:b2Shape, _arg2:b2Shape){
var _local3:b2ManifoldPoint;
m_manifolds = [new b2Manifold()];
m0 = new b2Manifold();
super(_arg1, _arg2);
m_manifold = m_manifolds[0];
b2Settings.b2Assert((m_shape2.m_type == b2Shape.e_circleShape));
m_manifold.pointCount = 0;
_local3 = m_manifold.points[0];
_local3.normalImpulse = 0;
_local3.tangentImpulse = 0;
}
override public function GetManifolds():Array{
return (m_manifolds);
}
override public function Evaluate(_arg1:b2ContactListener):void{
var _local2:int;
var _local3:b2Vec2;
var _local4:b2Vec2;
var _local5:b2ManifoldPoint;
var _local6:b2Body;
var _local7:b2Body;
var _local8:Array;
var _local9:b2ContactPoint;
var _local10:b2ManifoldPoint;
var _local11:Boolean;
var _local12:uint;
var _local13:int;
_local6 = m_shape1.m_body;
_local7 = m_shape2.m_body;
m0.Set(m_manifold);
b2Collision.b2CollidePolygonAndCircle(m_manifold, (m_shape1 as b2PolygonShape), _local6.m_xf, (m_shape2 as b2CircleShape), _local7.m_xf);
_local8 = [false, false];
_local9 = s_evalCP;
_local9.shape1 = m_shape1;
_local9.shape2 = m_shape2;
_local9.friction = m_friction;
_local9.restitution = m_restitution;
if (m_manifold.pointCount > 0){
_local2 = 0;
while (_local2 < m_manifold.pointCount) {
_local10 = m_manifold.points[_local2];
_local10.normalImpulse = 0;
_local10.tangentImpulse = 0;
_local11 = false;
_local12 = _local10.id._key;
_local13 = 0;
while (_local13 < m0.pointCount) {
if (_local8[_local13] == true){
} else {
_local5 = m0.points[_local13];
if (_local5.id._key == _local12){
_local8[_local13] = true;
_local10.normalImpulse = _local5.normalImpulse;
_local10.tangentImpulse = _local5.tangentImpulse;
_local11 = true;
if (_arg1 != null){
_local9.position = _local6.GetWorldPoint(_local10.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local10.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local10.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m_manifold.normal);
_local9.separation = _local10.separation;
_local9.id.key = _local12;
_arg1.Persist(_local9);
};
break;
};
};
_local13++;
};
if ((((_local11 == false)) && (!((_arg1 == null))))){
_local9.position = _local6.GetWorldPoint(_local10.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local10.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local10.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m_manifold.normal);
_local9.separation = _local10.separation;
_local9.id.key = _local12;
_arg1.Add(_local9);
};
_local2++;
};
m_manifoldCount = 1;
} else {
m_manifoldCount = 0;
};
if (_arg1 == null){
return;
};
_local2 = 0;
while (_local2 < m0.pointCount) {
if (_local8[_local2]){
} else {
_local5 = m0.points[_local2];
_local9.position = _local6.GetWorldPoint(_local5.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local5.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local5.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m0.normal);
_local9.separation = _local5.separation;
_local9.id.key = _local5.id._key;
_arg1.Remove(_local9);
};
_local2++;
};
}
public static function Destroy(_arg1:b2Contact, _arg2):void{
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2PolyAndCircleContact(_arg1, _arg2));
}
}
}//package Box2D.Dynamics.Contacts
Section 56
//b2PolyAndConcaveArcContact (Box2D.Dynamics.Contacts.b2PolyAndConcaveArcContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
public class b2PolyAndConcaveArcContact extends b2PolygonContact {
private var m_arcManifolds:Array;
private var m_arcColl:Boolean;
public function b2PolyAndConcaveArcContact(_arg1:b2Shape, _arg2:b2Shape):void{
m_arcManifolds = [];
super(_arg1, _arg2);
}
override public function GetManifolds():Array{
if (m_arcColl){
return (m_arcManifolds);
};
return (m_manifolds);
}
override public function Evaluate(_arg1:b2ContactListener):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:uint;
var _local5:int;
var _local6:int;
var _local7:b2Manifold;
var _local8:Array;
var _local9:b2ManifoldPoint;
var _local10:b2ManifoldPoint;
var _local11:Number;
var _local12:Number;
var _local13:Features;
var _local14:Number;
var _local15:Number;
var _local16:b2PolygonShape;
var _local17:b2ConcaveArcShape;
var _local18:Number;
var _local19:b2Vec2;
var _local20:b2Vec2;
var _local21:b2Vec2;
var _local22:b2Vec2;
var _local23:b2Vec2;
var _local24:b2Vec2;
var _local25:Array;
var _local26:Array;
var _local27:Boolean;
var _local28:Array;
var _local29:Array;
var _local30:Boolean;
var _local31:b2Vec2;
var _local32:b2Vec2;
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:Boolean;
var _local42:int;
var _local43:Number;
var _local44:Number;
var _local45:b2Vec2;
var _local46:Number;
var _local47:b2Vec2;
var _local48:b2Vec2;
var _local49:b2Vec2;
var _local50:b2Vec2;
var _local51:Number;
var _local52:Number;
var _local53:b2Vec2;
var _local54:Number;
var _local55:Number;
var _local56:b2Vec2;
var _local57:Number;
var _local58:Number;
var _local59:Number;
var _local60:Number;
var _local61:b2ManifoldPoint;
var _local62:*;
_local2 = m_shape1.m_body;
_local3 = m_shape2.m_body;
_local4 = b2Collision.b2_nullFeature;
_local8 = [];
if (!m_arcColl){
_local5 = 0;
while (_local5 < m_manifoldCount) {
_local6 = 0;
while (_local6 < m_manifolds[_local5].pointCount) {
_local10 = m_manifolds[_local5].points[_local6];
_local9 = new b2ManifoldPoint();
_local8[_local10.id.key] = _local9;
_local9.normalImpulse = _local10.normalImpulse;
_local9.tangentImpulse = _local10.tangentImpulse;
_local6++;
};
_local5++;
};
if ((((m_manifoldCount == 1)) && ((m_manifolds[0].pointCount == 1)))){
_local11 = m_manifolds[0].points[0].id.key;
} else {
_local11 = -1;
};
} else {
_local5 = 0;
while (_local5 < m_manifoldCount) {
_local6 = 0;
while (_local6 < m_arcManifolds[_local5].pointCount) {
_local10 = m_arcManifolds[_local5].points[_local6];
_local9 = new b2ManifoldPoint();
_local8[_local10.id.key] = _local9;
_local9.normalImpulse = _local10.normalImpulse;
_local9.tangentImpulse = _local10.tangentImpulse;
_local6++;
};
_local5++;
};
if ((((m_manifoldCount == 1)) && ((m_arcManifolds[0].pointCount == 1)))){
_local11 = m_arcManifolds[0].points[0].id.key;
} else {
_local11 = -1;
};
};
super.Evaluate(_arg1);
_local12 = m_manifoldCount;
if (m_manifoldCount == 0){
return;
};
_local9 = m_manifolds[0].points[0];
_local13 = _local9.id.features;
_local14 = (_local13.flip) ? _local13.referenceEdge : _local13.incidentEdge;
_local15 = -(Number.MAX_VALUE);
if ((((((m_manifoldCount == 1)) && (!((_local14 == 0))))) && ((_local9.separation < 0)))){
_local15 = _local9.separation;
};
_local16 = (m_shape1 as b2PolygonShape);
_local17 = (m_shape2 as b2ConcaveArcShape);
_local18 = Number.MAX_VALUE;
_local19 = b2Math.b2MulXT(_local2.m_xf, b2Math.b2MulX(_local3.m_xf, _local17.m_arcCenter));
_local20 = b2Math.b2MulX(_local3.m_xf, _local17.m_vertices[0]);
_local21 = _local20.Copy();
_local20 = b2Math.b2MulXT(_local2.m_xf, _local20);
_local22 = b2Math.b2MulX(_local3.m_xf, _local17.m_vertices[1]);
_local23 = _local22.Copy();
_local22 = b2Math.b2MulXT(_local2.m_xf, _local22);
_local24 = b2Math.b2MulTMV(_local2.m_xf.R, b2Math.b2MulMV(_local3.m_xf.R, _local17.m_normals[0].Copy()));
_local25 = [_local21, _local23];
_local26 = [_local20, _local22];
_local27 = false;
m_manifoldCount = 0;
_local28 = [-1, -1];
_local29 = [-1, -1];
if (_local14 == 0){
_local5 = 0;
while (_local5 < 2) {
_local43 = -(Number.MAX_VALUE);
_local44 = -1;
_local45 = _local26[_local5];
if (_local5 == 0){
_local47 = b2Math.b2MulTMV(_local2.m_xf.R, b2Math.b2MulMV(_local3.m_xf.R, _local17.m_normals[(_local17.m_vertexCount - 1)]));
_local48 = b2Math.SubtractVV(_local19, _local45);
_local48.Normalize();
} else {
_local48 = b2Math.b2MulTMV(_local2.m_xf.R, b2Math.b2MulMV(_local3.m_xf.R, _local17.m_normals[1]));
_local47 = b2Math.SubtractVV(_local19, _local45);
_local47.Normalize();
};
_local6 = 0;
while (_local6 < _local16.m_vertexCount) {
_local49 = _local16.m_vertices[_local6];
_local50 = _local16.m_normals[_local6];
if (((_local50.x * _local47.y) - (_local50.y * _local47.x)) < 0){
} else {
if (((_local50.x * _local48.y) - (_local50.y * _local48.x)) > 0){
} else {
_local51 = (_local45.x - _local49.x);
_local52 = (_local45.y - _local49.y);
_local46 = ((_local51 * _local50.x) + (_local52 * _local50.y));
if (_local46 > 0){
_local44 = -1;
break;
};
if (_local46 > _local43){
_local43 = _local46;
_local44 = _local6;
};
};
};
_local6++;
};
if (_local44 != -1){
_local50 = _local16.m_normals[_local44];
_local49 = _local16.m_vertices[_local44];
_local53 = _local16.m_vertices[(((_local44 + 1) < _local16.m_vertexCount)) ? (_local44 + 1) : 0];
_local54 = ((_local50.x * _local47.x) + (_local50.y * _local47.y));
_local55 = ((_local50.x * _local48.x) + (_local50.y * _local48.y));
if (_local54 < _local55){
_local56 = b2Math.b2CrossVF(_local47, 1);
} else {
_local56 = b2Math.b2CrossVF(_local48, -1);
};
_local57 = (((_local45.x - _local49.x) * _local50.x) + ((_local45.y - _local49.y) * _local50.y));
_local58 = ((_local56.x * _local50.x) + (_local56.y * _local50.y));
_local59 = (-(_local57) / _local58);
_local51 = (_local53.x - _local49.x);
_local52 = (_local53.y - _local49.y);
_local60 = ((((_local45.x + (_local59 * _local56.x)) - _local49.x) * _local51) + (((_local45.y + (_local59 * _local56.y)) - _local49.y) * _local52));
if ((((_local60 < 0)) || ((_local60 > ((_local51 * _local51) + (_local52 * _local52)))))){
_local44 = -1;
};
};
if (_local44 != -1){
_local29[_local5] = _local44;
if (_local5 == 0){
_local46 = (((_local53.x - _local45.x) * _local48.x) + ((_local53.y - _local45.y) * _local48.y));
if ((((_local43 < _local46)) && ((_local46 < 0)))){
_local28[_local5] = (((_local44 + 1) < _local16.m_vertexCount)) ? (_local44 + 1) : 0;
_local44 = -1;
};
} else {
_local46 = (((_local49.x - _local45.x) * _local47.x) + ((_local49.y - _local45.y) * _local47.y));
if ((((_local43 < _local46)) && ((_local46 < 0)))){
_local28[_local5] = _local44;
_local44 = -1;
};
};
};
if (_local44 != -1){
m_manifoldCount++;
enlargeManifolds(m_manifoldCount);
_local7 = m_arcManifolds[(m_manifoldCount - 1)];
_local7.pointCount = 1;
_local61 = _local7.points[0];
_local61.localPoint1.SetV(_local26[_local5]);
_local61.localPoint2.SetV(_local17.m_vertices[_local5]);
_local61.id.features.incidentEdge = _local4;
_local61.id.features.incidentVertex = _local5;
_local61.id.features.referenceEdge = _local44;
_local61.id.features.flip = 0;
_local61.separation = _local43;
_local61.normalImpulse = 0;
_local61.tangentImpulse = 0;
_local7.normal = b2Math.b2MulMV(_local2.m_xf.R, _local16.m_normals[_local44]);
_local18 = Math.min(_local18, _local61.separation);
};
_local5++;
};
};
if (_local29[1] == -1){
if (_local29[0] == -1){
_local38 = 1;
_local40 = 0;
} else {
_local38 = (_local16.m_vertexCount - 1);
_local40 = (((_local29[0] + 1) == _local16.m_vertexCount)) ? 0 : (_local29[0] + 1);
};
} else {
_local38 = 1;
_local40 = _local29[1];
};
_local41 = false;
_local39 = _local40;
do {
_local30 = true;
_local31 = _local16.m_vertices[_local39];
if (_local29[0] != -1){
_local37 = _local29[0];
_local32 = _local16.m_vertices[(((_local37 + 1) == _local16.m_vertexCount)) ? 0 : (_local37 + 1)];
_local30 = ((_local30) && (((((_local31.x - _local32.x) * _local16.m_normals[_local37].y) - ((_local31.y - _local32.y) * _local16.m_normals[_local37].x)) > 0)));
};
if (_local29[1] != -1){
_local37 = _local29[1];
_local32 = _local16.m_vertices[_local37];
_local30 = ((_local30) && (((((_local31.x - _local32.x) * _local16.m_normals[_local37].y) - ((_local31.y - _local32.y) * _local16.m_normals[_local37].x)) < 0)));
};
if (((_local41) && (!(_local30)))){
_local40 = ((_local39 + _local38) % _local16.m_vertexCount);
};
if (_local30){
_local41 = true;
};
_local31 = new b2Vec2((_local16.m_vertices[_local39].x - _local19.x), (_local16.m_vertices[_local39].y - _local19.y));
_local33 = ((_local31.x * _local31.x) + (_local31.y * _local31.y));
_local34 = Math.sqrt(_local33);
_local35 = (_local17.m_radius - _local34);
_local36 = (((_local16.m_vertices[_local39].x - _local20.x) * _local24.x) + ((_local16.m_vertices[_local39].y - _local20.y) * _local24.y));
_local46 = Math.max(_local35, _local36);
_local18 = Math.min(_local18, _local46);
_local30 = ((_local30) && ((_local46 < 0)));
if (((((_local30) || ((_local39 == _local28[0])))) || ((_local39 == _local28[1])))){
m_manifoldCount++;
enlargeManifolds(m_manifoldCount);
_local7 = m_arcManifolds[(m_manifoldCount - 1)];
_local7.pointCount = 1;
_local61 = _local7.points[0];
_local61.id.features.incidentEdge = _local4;
_local61.id.features.incidentVertex = _local39;
_local61.id.features.referenceEdge = 0;
_local61.id.features.flip = 0;
_local61.normalImpulse = 0;
_local61.tangentImpulse = 0;
_local31.x = (_local31.x / _local34);
_local31.y = (_local31.y / _local34);
_local62 = _local2.m_xf.R;
_local7.normal.x = ((_local62.col1.x * _local31.x) + (_local62.col2.x * _local31.y));
_local7.normal.y = ((_local62.col1.y * _local31.x) + (_local62.col2.y * _local31.y));
_local31 = _local16.m_vertices[_local39];
_local61.localPoint1.SetV(_local31);
_local61.localPoint2.SetV(b2Math.b2MulXT(_local3.m_xf, b2Math.b2MulX(_local2.m_xf, _local31)));
_local61.separation = (_local17.m_radius - _local34);
};
_local39 = ((_local39 + _local38) % _local16.m_vertexCount);
} while (_local39 != _local40);
_local42 = m_manifoldCount;
if (_local15 > _local18){
m_arcColl = false;
m_manifoldCount = _local12;
_local5 = 0;
while (_local5 < m_manifoldCount) {
_local6 = 0;
while (_local6 < m_manifolds[_local5].pointCount) {
_local9 = m_manifolds[_local5].points[_local6];
_local10 = _local8[_local9.id.key];
if (_local10){
_local9.normalImpulse = _local10.normalImpulse;
_local9.tangentImpulse = _local10.tangentImpulse;
};
_local6++;
};
_local5++;
};
if (((((!((_local11 == -1))) && ((m_manifoldCount == 1)))) && ((m_manifolds[0].pointCount == 1)))){
_local9 = m_manifolds[0].points[0];
_local10 = _local8[_local11];
if (_local10){
_local9.normalImpulse = _local10.normalImpulse;
_local9.tangentImpulse = _local10.tangentImpulse;
};
};
} else {
m_arcColl = true;
m_manifoldCount = _local42;
_local5 = 0;
while (_local5 < m_manifoldCount) {
_local6 = 0;
while (_local6 < m_arcManifolds[_local5].pointCount) {
_local9 = m_arcManifolds[_local5].points[_local6];
_local10 = _local8[_local9.id.key];
if (_local10){
_local9.normalImpulse = _local10.normalImpulse;
_local9.tangentImpulse = _local10.tangentImpulse;
};
_local6++;
};
_local5++;
};
if (((((!((_local11 == -1))) && ((m_manifoldCount == 1)))) && ((m_arcManifolds[0].pointCount == 1)))){
_local9 = m_arcManifolds[0].points[0];
_local10 = _local8[_local11];
if (_local10){
_local9.normalImpulse = _local10.normalImpulse;
_local9.tangentImpulse = _local10.tangentImpulse;
};
};
};
}
private function enlargeManifolds(_arg1:Number):void{
var _local2:b2Manifold;
while (m_arcManifolds.length < _arg1) {
_local2 = new b2Manifold();
_local2.pointCount = 0;
_local2.points[0].normalImpulse = 0;
_local2.points[0].tangentImpulse = 0;
m_arcManifolds.push(_local2);
};
}
public static function Destroy(_arg1:b2Contact, _arg2):void{
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2PolyAndConcaveArcContact(_arg1, _arg2));
}
}
}//package Box2D.Dynamics.Contacts
Section 57
//b2PolyAndStaticEdgeContact (Box2D.Dynamics.Contacts.b2PolyAndStaticEdgeContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
public class b2PolyAndStaticEdgeContact extends b2Contact {
public var m_manifolds:Array;
public var m0:b2Manifold;
public var m_manifold:b2Manifold;
public static const s_evalCP:b2ContactPoint = new b2ContactPoint();
private static const k_slop:Number = 4.94065645841247E-322;
public function b2PolyAndStaticEdgeContact(_arg1:b2Shape, _arg2:b2Shape){
var _local3:b2ManifoldPoint;
m_manifolds = [new b2Manifold()];
m0 = new b2Manifold();
super(_arg1, _arg2);
m_manifold = m_manifolds[0];
m_manifold.pointCount = 0;
_local3 = m_manifold.points[0];
_local3.normalImpulse = 0;
_local3.tangentImpulse = 0;
}
override public function GetManifolds():Array{
return (m_manifolds);
}
override public function Evaluate(_arg1:b2ContactListener):void{
var _local2:int;
var _local3:b2Vec2;
var _local4:b2Vec2;
var _local5:b2ManifoldPoint;
var _local6:b2Body;
var _local7:b2Body;
var _local8:Array;
var _local9:b2ContactPoint;
var _local10:b2ManifoldPoint;
var _local11:Boolean;
var _local12:uint;
var _local13:int;
_local6 = m_shape1.m_body;
_local7 = m_shape2.m_body;
m0.Set(m_manifold);
b2CollidePolygonAndStaticEdge(m_manifold, (m_shape1 as b2PolygonShape), _local6.m_xf, (m_shape2 as b2StaticEdgeShape), _local7.m_xf);
_local8 = [false, false];
_local9 = s_evalCP;
_local9.shape1 = m_shape1;
_local9.shape2 = m_shape2;
_local9.friction = m_friction;
_local9.restitution = m_restitution;
if (m_manifold.pointCount > 0){
_local2 = 0;
while (_local2 < m_manifold.pointCount) {
_local10 = m_manifold.points[_local2];
_local10.normalImpulse = 0;
_local10.tangentImpulse = 0;
_local11 = false;
_local12 = _local10.id._key;
_local13 = 0;
while (_local13 < m0.pointCount) {
if (_local8[_local13] == true){
} else {
_local5 = m0.points[_local13];
if (_local5.id._key == _local12){
_local8[_local13] = true;
_local10.normalImpulse = _local5.normalImpulse;
_local10.tangentImpulse = _local5.tangentImpulse;
_local11 = true;
if (_arg1 != null){
_local9.position = _local6.GetWorldPoint(_local10.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local10.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local10.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m_manifold.normal);
_local9.separation = _local10.separation;
_local9.id.key = _local12;
_arg1.Persist(_local9);
};
break;
};
};
_local13++;
};
if ((((_local11 == false)) && (!((_arg1 == null))))){
_local9.position = _local6.GetWorldPoint(_local10.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local10.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local10.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m_manifold.normal);
_local9.separation = _local10.separation;
_local9.id.key = _local12;
_arg1.Add(_local9);
};
_local2++;
};
m_manifoldCount = 1;
} else {
m_manifoldCount = 0;
};
if (_arg1 == null){
return;
};
_local2 = 0;
while (_local2 < m0.pointCount) {
if (_local8[_local2]){
} else {
_local5 = m0.points[_local2];
_local9.position = _local6.GetWorldPoint(_local5.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local5.localPoint1);
_local4 = _local7.GetLinearVelocityFromLocalPoint(_local5.localPoint2);
_local9.velocity.Set((_local4.x - _local3.x), (_local4.y - _local3.y));
_local9.normal.SetV(m0.normal);
_local9.separation = _local5.separation;
_local9.id.key = _local5.id._key;
_arg1.Remove(_local9);
};
_local2++;
};
}
public static function b2CollidePolygonAndStaticEdge(_arg1:b2Manifold, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2StaticEdgeShape, _arg5:b2XForm):void{
var _local6:b2ManifoldPoint;
var _local7:b2Vec2;
var _local8:b2Vec2;
var _local9: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 _local21:Boolean;
var _local22:int;
var _local23:int;
var _local24:Array;
var _local25:Array;
var _local26:Number;
var _local27:Number;
var _local28:int;
var _local29:int;
var _local30:int;
var _local31:int;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local35:int;
var _local36:int;
var _local37:Number;
var _local38:Number;
var _local39:Number;
var _local40:Number;
var _local41:Number;
var _local42:Number;
_arg1.pointCount = 0;
_local9 = _arg3.R;
_local10 = (_arg4.m_v1.x - _arg3.position.x);
_local11 = (_arg4.m_v1.y - _arg3.position.y);
_local12 = ((_local10 * _local9.col1.x) + (_local11 * _local9.col1.y));
_local13 = ((_local10 * _local9.col2.x) + (_local11 * _local9.col2.y));
_local10 = (_arg4.m_v2.x - _arg3.position.x);
_local11 = (_arg4.m_v2.y - _arg3.position.y);
_local14 = ((_local10 * _local9.col1.x) + (_local11 * _local9.col1.y));
_local15 = ((_local10 * _local9.col2.x) + (_local11 * _local9.col2.y));
_local10 = _arg4.m_normal.x;
_local11 = _arg4.m_normal.y;
_local16 = ((_local10 * _local9.col1.x) + (_local11 * _local9.col1.y));
_local17 = ((_local10 * _local9.col2.x) + (_local11 * _local9.col2.y));
_local20 = -(Infinity);
_local23 = _arg2.m_vertexCount;
_local24 = _arg2.m_vertices;
_local25 = _arg2.m_normals;
_local28 = -1;
_local29 = -1;
_local30 = -1;
_local31 = -1;
_local34 = Infinity;
_local7 = _local24[(_local23 - 1)];
_local10 = (_local7.x - _local12);
_local11 = (_local7.y - _local13);
_local26 = ((_local10 * _local16) + (_local11 * _local17));
_local36 = 0;
while (_local36 < _local23) {
_local7 = _local24[_local36];
_local8 = _local25[_local36];
_local10 = (_local12 - _local7.x);
_local11 = (_local13 - _local7.y);
_local18 = ((_local10 * _local8.x) + (_local11 * _local8.y));
_local10 = (_local14 - _local7.x);
_local11 = (_local15 - _local7.y);
_local19 = ((_local10 * _local8.x) + (_local11 * _local8.y));
if (_local19 < _local18){
if (_local19 > _local20){
_local20 = _local19;
_local21 = false;
_local22 = _local36;
};
} else {
if (_local18 > _local20){
_local20 = _local18;
_local21 = true;
_local22 = _local36;
};
};
_local27 = -(((_local10 * _local16) + (_local11 * _local17)));
if ((((_local27 >= 0)) && ((_local26 < 0)))){
_local30 = ((_local36)==0) ? (_local23 - 1) : (_local36 - 1);
_local31 = _local36;
_local33 = _local26;
} else {
if ((((_local27 < 0)) && ((_local26 >= 0)))){
_local28 = ((_local36)==0) ? (_local23 - 1) : (_local36 - 1);
_local29 = _local36;
_local32 = _local27;
};
};
if (_local27 < _local34){
_local34 = _local27;
_local35 = _local36;
};
_local26 = _local27;
_local36++;
};
if (_local28 == -1){
return;
};
if (_local20 > 0){
return;
};
if (_local20 > (_local34 + b2Settings.b2_linearSlop)){
_local8 = _local25[_local22];
if (_local21){
_local10 = _arg4.m_cornerDir1.x;
_local11 = _arg4.m_cornerDir1.y;
_local37 = ((_local10 * _local9.col1.x) + (_local11 * _local9.col1.y));
_local38 = ((_local10 * _local9.col2.x) + (_local11 * _local9.col2.y));
} else {
_local10 = _arg4.m_cornerDir2.x;
_local11 = _arg4.m_cornerDir2.y;
_local37 = -(((_local10 * _local9.col1.x) + (_local11 * _local9.col1.y)));
_local38 = -(((_local10 * _local9.col2.x) + (_local11 * _local9.col2.y)));
};
if (((_local8.x * _local37) + (_local8.y * _local38)) >= 0){
return;
};
_arg1.pointCount = 1;
_arg1.normal.Set(((_local9.col1.x * _local8.x) + (_local9.col2.x * _local8.y)), ((_local9.col1.y * _local8.x) + (_local9.col2.y * _local8.y)));
_local6 = _arg1.points[0];
_local6.id.features.incidentEdge = _local22;
_local6.id.features.incidentVertex = b2Collision.b2_nullFeature;
_local6.id.features.referenceEdge = 0;
_local6.id.features.flip = 0;
if (_local21){
_local6.localPoint1.Set(_local12, _local13);
_local6.localPoint2.SetV(_arg4.m_v1);
} else {
_local6.localPoint1.Set(_local14, _local15);
_local6.localPoint2.SetV(_arg4.m_v2);
};
_local6.separation = _local20;
} else {
_arg1.normal.Set(-(_arg4.m_normal.x), -(_arg4.m_normal.y));
_local7 = _local24[_local29];
if (_local29 == _local30){
_arg1.pointCount = 1;
_local6 = _arg1.points[0];
_local6.id.features.incidentEdge = _local29;
_local6.id.features.incidentVertex = b2Collision.b2_nullFeature;
_local6.id.features.referenceEdge = 0;
_local6.id.features.flip = 0;
_local6.localPoint1.SetV(_local7);
_local6.localPoint2.Set((_arg3.position.x + ((_local9.col1.x * _local7.x) + (_local9.col2.x * _local7.y))), (_arg3.position.y + ((_local9.col1.y * _local7.x) + (_local9.col2.y * _local7.y))));
_local6.separation = _local32;
return;
};
_arg1.pointCount = 2;
_local10 = _arg4.m_direction.x;
_local11 = _arg4.m_direction.y;
_local39 = ((_local10 * _local9.col1.x) + (_local11 * _local9.col1.y));
_local40 = ((_local10 * _local9.col2.x) + (_local11 * _local9.col2.y));
_local41 = ((_local39 * (_local7.x - _local12)) + (_local40 * (_local7.y - _local13)));
_local31 = ((_local29)==(_local23 - 1)) ? 0 : (_local29 + 1);
if (_local31 != _local30){
_local30 = _local31;
_local8 = _local24[_local30];
_local10 = (_local8.x - _local12);
_local11 = (_local8.y - _local13);
_local33 = ((_local16 * _local10) + (_local17 * _local11));
_local42 = ((_local39 * _local10) + (_local40 * _local11));
} else {
_local8 = _local24[_local30];
_local42 = ((_local39 * (_local8.x - _local12)) + (_local40 * (_local8.y - _local13)));
};
_local6 = _arg1.points[0];
_local6.id.features.incidentEdge = _local29;
_local6.id.features.incidentVertex = b2Collision.b2_nullFeature;
_local6.id.features.referenceEdge = 0;
_local6.id.features.flip = 0;
if (_local41 > _arg4.m_length){
_local6.localPoint1.Set(_local14, _local15);
_local6.localPoint2.SetV(_arg4.m_v2);
_local10 = ((_arg4.m_length - _local42) / (_local41 - _local42));
if ((((_local10 > (100 * Number.MIN_VALUE))) && ((_local10 < 1)))){
_local6.separation = ((_local33 * (1 - _local10)) + (_local32 * _local10));
} else {
_local6.separation = _local32;
};
} else {
_local6.localPoint1.SetV(_local7);
_local6.localPoint2.Set((_arg3.position.x + ((_local9.col1.x * _local7.x) + (_local9.col2.x * _local7.y))), (_arg3.position.y + ((_local9.col1.y * _local7.x) + (_local9.col2.y * _local7.y))));
_local6.separation = _local32;
};
_local6 = _arg1.points[1];
_local6.id.features.incidentEdge = _local30;
_local6.id.features.incidentVertex = b2Collision.b2_nullFeature;
_local6.id.features.referenceEdge = 0;
_local6.id.features.flip = 0;
if (_local42 < 0){
_local6.localPoint1.Set(_local12, _local13);
_local6.localPoint2.SetV(_arg4.m_v1);
_local10 = (-(_local41) / (_local42 - _local41));
if ((((_local10 > (100 * Number.MIN_VALUE))) && ((_local10 < 1)))){
_local6.separation = ((_local32 * (1 - _local10)) + (_local33 * _local10));
} else {
_local6.separation = _local33;
};
} else {
_local6.localPoint1.SetV(_local8);
_local6.localPoint2.Set((_arg3.position.x + ((_local9.col1.x * _local8.x) + (_local9.col2.x * _local8.y))), (_arg3.position.y + ((_local9.col1.y * _local8.x) + (_local9.col2.y * _local8.y))));
_local6.separation = _local33;
};
return;
};
}
public static function Destroy(_arg1:b2Contact, _arg2):void{
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2PolyAndStaticEdgeContact(_arg1, _arg2));
}
}
}//package Box2D.Dynamics.Contacts
Section 58
//b2PolygonContact (Box2D.Dynamics.Contacts.b2PolygonContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class b2PolygonContact extends b2Contact {
public var m_manifolds:Array;
public var m0:b2Manifold;
public var m_manifold:b2Manifold;
public static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2PolygonContact(_arg1:b2Shape, _arg2:b2Shape):void{
m0 = new b2Manifold();
m_manifolds = [new b2Manifold()];
super(_arg1, _arg2);
m_manifold = m_manifolds[0];
m_manifold.pointCount = 0;
}
override public function GetManifolds():Array{
return (m_manifolds);
}
override public function Evaluate(_arg1:b2ContactListener):void{
var _local2:b2Vec2;
var _local3:b2Vec2;
var _local4:b2ManifoldPoint;
var _local5:b2Body;
var _local6:b2Body;
var _local7:b2ContactPoint;
var _local8:int;
var _local9:Array;
var _local10:b2ManifoldPoint;
var _local11:Boolean;
var _local12:uint;
var _local13:int;
_local5 = m_shape1.m_body;
_local6 = m_shape2.m_body;
m0.Set(m_manifold);
b2Collision.b2CollidePolygons(m_manifold, (m_shape1 as b2PolygonShape), _local5.m_xf, (m_shape2 as b2PolygonShape), _local6.m_xf);
_local9 = [false, false];
_local7 = s_evalCP;
_local7.shape1 = m_shape1;
_local7.shape2 = m_shape2;
_local7.friction = m_friction;
_local7.restitution = m_restitution;
if (m_manifold.pointCount > 0){
_local8 = 0;
while (_local8 < m_manifold.pointCount) {
_local10 = m_manifold.points[_local8];
_local10.normalImpulse = 0;
_local10.tangentImpulse = 0;
_local11 = false;
_local12 = _local10.id._key;
_local13 = 0;
while (_local13 < m0.pointCount) {
if (_local9[_local13] == true){
} else {
_local4 = m0.points[_local13];
if (_local4.id._key == _local12){
_local9[_local13] = true;
_local10.normalImpulse = _local4.normalImpulse;
_local10.tangentImpulse = _local4.tangentImpulse;
_local11 = true;
if (_arg1 != null){
_local7.position = _local5.GetWorldPoint(_local10.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local10.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local10.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m_manifold.normal);
_local7.separation = _local10.separation;
_local7.id.key = _local12;
_arg1.Persist(_local7);
};
break;
};
};
_local13++;
};
if ((((_local11 == false)) && (!((_arg1 == null))))){
_local7.position = _local5.GetWorldPoint(_local10.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local10.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local10.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m_manifold.normal);
_local7.separation = _local10.separation;
_local7.id.key = _local12;
_arg1.Add(_local7);
};
_local8++;
};
m_manifoldCount = 1;
} else {
m_manifoldCount = 0;
};
if (_arg1 == null){
return;
};
_local8 = 0;
while (_local8 < m0.pointCount) {
if (_local9[_local8]){
} else {
_local4 = m0.points[_local8];
_local7.position = _local5.GetWorldPoint(_local4.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local4.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local4.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m0.normal);
_local7.separation = _local4.separation;
_local7.id.key = _local4.id._key;
_arg1.Remove(_local7);
};
_local8++;
};
}
public static function Destroy(_arg1:b2Contact, _arg2):void{
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2PolygonContact(_arg1, _arg2));
}
}
}//package Box2D.Dynamics.Contacts
Section 59
//b2StaticEdgeAndCircleContact (Box2D.Dynamics.Contacts.b2StaticEdgeAndCircleContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class b2StaticEdgeAndCircleContact extends b2Contact {
private var m_manifolds:Array;
private var m0:b2Manifold;
public var m_manifold:b2Manifold;
private static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2StaticEdgeAndCircleContact(_arg1:b2Shape, _arg2:b2Shape){
var _local3:b2ManifoldPoint;
m_manifolds = [new b2Manifold()];
m0 = new b2Manifold();
super(_arg1, _arg2);
m_manifold = m_manifolds[0];
m_manifold.pointCount = 0;
_local3 = m_manifold.points[0];
_local3.normalImpulse = 0;
_local3.tangentImpulse = 0;
}
override public function GetManifolds():Array{
return (m_manifolds);
}
override public function Evaluate(_arg1:b2ContactListener):void{
var _local2:b2Vec2;
var _local3:b2Vec2;
var _local4:b2ManifoldPoint;
var _local5:b2Body;
var _local6:b2Body;
var _local7:b2ContactPoint;
var _local8:b2ManifoldPoint;
_local5 = m_shape1.m_body;
_local6 = m_shape2.m_body;
m0.Set(m_manifold);
b2CollideStaticEdgeAndCircle(m_manifold, (m_shape1 as b2StaticEdgeShape), _local5.m_xf, (m_shape2 as b2CircleShape), _local6.m_xf);
_local7 = s_evalCP;
_local7.shape1 = m_shape1;
_local7.shape2 = m_shape2;
_local7.friction = m_friction;
_local7.restitution = m_restitution;
if (m_manifold.pointCount > 0){
m_manifoldCount = 1;
_local8 = m_manifold.points[0];
if (m0.pointCount == 0){
_local8.normalImpulse = 0;
_local8.tangentImpulse = 0;
if (_arg1){
_local7.position = _local5.GetWorldPoint(_local8.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local8.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local8.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m_manifold.normal);
_local7.separation = _local8.separation;
_local7.id.key = _local8.id._key;
_arg1.Add(_local7);
};
} else {
_local4 = m0.points[0];
_local8.normalImpulse = _local4.normalImpulse;
_local8.tangentImpulse = _local4.tangentImpulse;
if (_arg1){
_local7.position = _local5.GetWorldPoint(_local8.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local8.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local8.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m_manifold.normal);
_local7.separation = _local8.separation;
_local7.id.key = _local8.id._key;
_arg1.Persist(_local7);
};
};
} else {
m_manifoldCount = 0;
if ((((m0.pointCount > 0)) && (_arg1))){
_local4 = m0.points[0];
_local7.position = _local5.GetWorldPoint(_local4.localPoint1);
_local2 = _local5.GetLinearVelocityFromLocalPoint(_local4.localPoint1);
_local3 = _local6.GetLinearVelocityFromLocalPoint(_local4.localPoint2);
_local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y));
_local7.normal.SetV(m0.normal);
_local7.separation = _local4.separation;
_local7.id.key = _local4.id._key;
_arg1.Remove(_local7);
};
};
}
public static function Destroy(_arg1:b2Contact, _arg2):void{
}
public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{
return (new b2StaticEdgeAndCircleContact(_arg1, _arg2));
}
public static function b2CollideStaticEdgeAndCircle(_arg1:b2Manifold, _arg2:b2StaticEdgeShape, _arg3:b2XForm, _arg4:b2CircleShape, _arg5:b2XForm):void{
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:b2ManifoldPoint;
var _local10:b2Mat22;
var _local11:b2Vec2;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
_arg1.pointCount = 0;
_local10 = _arg5.R;
_local11 = _arg4.m_localPosition;
_local12 = (_arg5.position.x + ((_local10.col1.x * _local11.x) + (_local10.col2.x * _local11.y)));
_local13 = (_arg5.position.y + ((_local10.col1.y * _local11.x) + (_local10.col2.y * _local11.y)));
_local14 = (((_local12 - _arg2.m_v1.x) * _arg2.m_direction.x) + ((_local13 - _arg2.m_v1.y) * _arg2.m_direction.y));
if (_local14 <= 0){
_local6 = (_local12 - _arg2.m_v1.x);
_local7 = (_local13 - _arg2.m_v1.y);
if (((_local6 * _arg2.m_cornerDir1.x) + (_local7 * _arg2.m_cornerDir1.y)) < 0){
return;
};
} else {
if (_local14 >= _arg2.m_length){
_local6 = (_local12 - _arg2.m_v2.x);
_local7 = (_local13 - _arg2.m_v2.y);
if (((_local6 * _arg2.m_cornerDir2.x) + (_local7 * _arg2.m_cornerDir2.y)) > 0){
return;
};
} else {
_local11 = _arg2.m_normal;
_local8 = (((_local12 - _arg2.m_v1.x) * _local11.x) + ((_local13 - _arg2.m_v1.y) * _local11.y));
if ((((_local8 > _arg4.m_radius)) || ((_local8 < -(_arg4.m_radius))))){
return;
};
_local8 = (_local8 - _arg4.m_radius);
_arg1.normal.x = _local11.x;
_arg1.normal.y = _local11.y;
_arg1.pointCount = 1;
_local9 = _arg1.points[0];
_local9.id.key = 0;
_local9.separation = _local8;
_local12 = (_local12 - (_arg4.m_radius * _local11.x));
_local13 = (_local13 - (_arg4.m_radius * _local11.y));
_local9.localPoint1.x = _local12;
_local9.localPoint1.y = _local13;
_local6 = (_local12 - _arg5.position.x);
_local7 = (_local13 - _arg5.position.y);
_local9.localPoint2.x = ((_local6 * _local10.col1.x) + (_local7 * _local10.col1.y));
_local9.localPoint2.y = ((_local6 * _local10.col2.x) + (_local7 * _local10.col2.y));
return;
};
};
_local15 = ((_local6 * _local6) + (_local7 * _local7));
if (_local15 > (_arg4.m_radius * _arg4.m_radius)){
return;
};
if (_local15 < Number.MIN_VALUE){
_local8 = -(_arg4.m_radius);
_arg1.normal.SetV(_arg2.m_normal);
} else {
_local16 = Math.sqrt(_local15);
_local8 = (_local16 - _arg4.m_radius);
_local17 = (1 / _local16);
_arg1.normal.x = (_local17 * _local6);
_arg1.normal.y = (_local17 * _local7);
};
_arg1.pointCount = 1;
_local9 = _arg1.points[0];
_local9.id.key = 0;
_local9.separation = _local8;
_local12 = (_local12 - (_arg4.m_radius * _arg1.normal.x));
_local13 = (_local13 - (_arg4.m_radius * _arg1.normal.y));
_local9.localPoint1.x = _local12;
_local9.localPoint1.y = _local13;
_local6 = (_local12 - _arg5.position.x);
_local7 = (_local13 - _arg5.position.y);
_local9.localPoint2.x = ((_local6 * _local10.col1.x) + (_local7 * _local10.col1.y));
_local9.localPoint2.y = ((_local6 * _local10.col2.x) + (_local7 * _local10.col2.y));
}
}
}//package Box2D.Dynamics.Contacts
Section 60
//b2DistanceJoint (Box2D.Dynamics.Joints.b2DistanceJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2DistanceJoint extends b2Joint {
public var m_mass:Number;
public var m_u:b2Vec2;
public var m_impulse:Number;
public var m_dampingRatio:Number;
public var m_frequencyHz:Number;
public var m_localAnchor2:b2Vec2;
public var m_localAnchor1:b2Vec2;
public var m_bias:Number;
public var m_gamma:Number;
public var m_length:Number;
public function b2DistanceJoint(_arg1:b2DistanceJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_u = new b2Vec2();
super(_arg1);
m_localAnchor1.SetV(_arg1.localAnchor1);
m_localAnchor2.SetV(_arg1.localAnchor2);
m_length = _arg1.length;
m_frequencyHz = _arg1.frequencyHz;
m_dampingRatio = _arg1.dampingRatio;
m_impulse = 0;
m_gamma = 0;
m_bias = 0;
m_inv_dt = 0;
}
override public function GetAnchor1():b2Vec2{
return (m_body1.GetWorldPoint(m_localAnchor1));
}
override public function GetAnchor2():b2Vec2{
return (m_body2.GetWorldPoint(m_localAnchor2));
}
override public function GetReactionForce():b2Vec2{
var _local1:b2Vec2;
_local1 = new b2Vec2();
_local1.SetV(m_u);
_local1.Multiply((m_inv_dt * m_impulse));
return (_local1);
}
override public function SolvePositionConstraints():Boolean{
var _local1:b2Mat22;
var _local2:b2Body;
var _local3:b2Body;
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;
if (m_frequencyHz > 0){
return (true);
};
_local2 = m_body1;
_local3 = m_body2;
_local1 = _local2.m_xf.R;
_local4 = (m_localAnchor1.x - _local2.m_sweep.localCenter.x);
_local5 = (m_localAnchor1.y - _local2.m_sweep.localCenter.y);
_local6 = ((_local1.col1.x * _local4) + (_local1.col2.x * _local5));
_local5 = ((_local1.col1.y * _local4) + (_local1.col2.y * _local5));
_local4 = _local6;
_local1 = _local3.m_xf.R;
_local7 = (m_localAnchor2.x - _local3.m_sweep.localCenter.x);
_local8 = (m_localAnchor2.y - _local3.m_sweep.localCenter.y);
_local6 = ((_local1.col1.x * _local7) + (_local1.col2.x * _local8));
_local8 = ((_local1.col1.y * _local7) + (_local1.col2.y * _local8));
_local7 = _local6;
_local9 = (((_local3.m_sweep.c.x + _local7) - _local2.m_sweep.c.x) - _local4);
_local10 = (((_local3.m_sweep.c.y + _local8) - _local2.m_sweep.c.y) - _local5);
_local11 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10)));
_local9 = (_local9 / _local11);
_local10 = (_local10 / _local11);
_local12 = (_local11 - m_length);
_local12 = b2Math.b2Clamp(_local12, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
_local13 = (-(m_mass) * _local12);
m_u.Set(_local9, _local10);
_local14 = (_local13 * m_u.x);
_local15 = (_local13 * m_u.y);
_local2.m_sweep.c.x = (_local2.m_sweep.c.x - (_local2.m_invMass * _local14));
_local2.m_sweep.c.y = (_local2.m_sweep.c.y - (_local2.m_invMass * _local15));
_local2.m_sweep.a = (_local2.m_sweep.a - (_local2.m_invI * ((_local4 * _local15) - (_local5 * _local14))));
_local3.m_sweep.c.x = (_local3.m_sweep.c.x + (_local3.m_invMass * _local14));
_local3.m_sweep.c.y = (_local3.m_sweep.c.y + (_local3.m_invMass * _local15));
_local3.m_sweep.a = (_local3.m_sweep.a + (_local3.m_invI * ((_local7 * _local15) - (_local8 * _local14))));
_local2.SynchronizeTransform();
_local3.SynchronizeTransform();
return ((b2Math.b2Abs(_local12) < b2Settings.b2_linearSlop));
}
override public function InitVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Mat22;
var _local3:Number;
var _local4:b2Body;
var _local5:b2Body;
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;
var _local18:Number;
var _local19:Number;
m_inv_dt = _arg1.inv_dt;
_local4 = m_body1;
_local5 = m_body2;
_local2 = _local4.m_xf.R;
_local6 = (m_localAnchor1.x - _local4.m_sweep.localCenter.x);
_local7 = (m_localAnchor1.y - _local4.m_sweep.localCenter.y);
_local3 = ((_local2.col1.x * _local6) + (_local2.col2.x * _local7));
_local7 = ((_local2.col1.y * _local6) + (_local2.col2.y * _local7));
_local6 = _local3;
_local2 = _local5.m_xf.R;
_local8 = (m_localAnchor2.x - _local5.m_sweep.localCenter.x);
_local9 = (m_localAnchor2.y - _local5.m_sweep.localCenter.y);
_local3 = ((_local2.col1.x * _local8) + (_local2.col2.x * _local9));
_local9 = ((_local2.col1.y * _local8) + (_local2.col2.y * _local9));
_local8 = _local3;
m_u.x = (((_local5.m_sweep.c.x + _local8) - _local4.m_sweep.c.x) - _local6);
m_u.y = (((_local5.m_sweep.c.y + _local9) - _local4.m_sweep.c.y) - _local7);
_local10 = Math.sqrt(((m_u.x * m_u.x) + (m_u.y * m_u.y)));
if (_local10 > b2Settings.b2_linearSlop){
m_u.Multiply((1 / _local10));
} else {
m_u.SetZero();
};
_local11 = ((_local6 * m_u.y) - (_local7 * m_u.x));
_local12 = ((_local8 * m_u.y) - (_local9 * m_u.x));
_local13 = (((_local4.m_invMass + ((_local4.m_invI * _local11) * _local11)) + _local5.m_invMass) + ((_local5.m_invI * _local12) * _local12));
m_mass = (1 / _local13);
if (m_frequencyHz > 0){
_local14 = (_local10 - m_length);
_local15 = ((2 * Math.PI) * m_frequencyHz);
_local16 = (((2 * m_mass) * m_dampingRatio) * _local15);
_local17 = ((m_mass * _local15) * _local15);
m_gamma = (1 / (_arg1.dt * (_local16 + (_arg1.dt * _local17))));
m_bias = (((_local14 * _arg1.dt) * _local17) * m_gamma);
m_mass = (1 / (_local13 + m_gamma));
};
if (_arg1.warmStarting){
m_impulse = (m_impulse * _arg1.dtRatio);
_local18 = (m_impulse * m_u.x);
_local19 = (m_impulse * m_u.y);
_local4.m_linearVelocity.x = (_local4.m_linearVelocity.x - (_local4.m_invMass * _local18));
_local4.m_linearVelocity.y = (_local4.m_linearVelocity.y - (_local4.m_invMass * _local19));
_local4.m_angularVelocity = (_local4.m_angularVelocity - (_local4.m_invI * ((_local6 * _local19) - (_local7 * _local18))));
_local5.m_linearVelocity.x = (_local5.m_linearVelocity.x + (_local5.m_invMass * _local18));
_local5.m_linearVelocity.y = (_local5.m_linearVelocity.y + (_local5.m_invMass * _local19));
_local5.m_angularVelocity = (_local5.m_angularVelocity + (_local5.m_invI * ((_local8 * _local19) - (_local9 * _local18))));
} else {
m_impulse = 0;
};
}
override public function GetReactionTorque():Number{
return (0);
}
override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Mat22;
var _local3:b2Body;
var _local4:b2Body;
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:Number;
_local3 = m_body1;
_local4 = m_body2;
_local2 = _local3.m_xf.R;
_local5 = (m_localAnchor1.x - _local3.m_sweep.localCenter.x);
_local6 = (m_localAnchor1.y - _local3.m_sweep.localCenter.y);
_local7 = ((_local2.col1.x * _local5) + (_local2.col2.x * _local6));
_local6 = ((_local2.col1.y * _local5) + (_local2.col2.y * _local6));
_local5 = _local7;
_local2 = _local4.m_xf.R;
_local8 = (m_localAnchor2.x - _local4.m_sweep.localCenter.x);
_local9 = (m_localAnchor2.y - _local4.m_sweep.localCenter.y);
_local7 = ((_local2.col1.x * _local8) + (_local2.col2.x * _local9));
_local9 = ((_local2.col1.y * _local8) + (_local2.col2.y * _local9));
_local8 = _local7;
_local10 = (_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local6));
_local11 = (_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local5));
_local12 = (_local4.m_linearVelocity.x + (-(_local4.m_angularVelocity) * _local9));
_local13 = (_local4.m_linearVelocity.y + (_local4.m_angularVelocity * _local8));
_local14 = ((m_u.x * (_local12 - _local10)) + (m_u.y * (_local13 - _local11)));
_local15 = (-(m_mass) * ((_local14 + m_bias) + (m_gamma * m_impulse)));
m_impulse = (m_impulse + _local15);
_local16 = (_local15 * m_u.x);
_local17 = (_local15 * m_u.y);
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x - (_local3.m_invMass * _local16));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y - (_local3.m_invMass * _local17));
_local3.m_angularVelocity = (_local3.m_angularVelocity - (_local3.m_invI * ((_local5 * _local17) - (_local6 * _local16))));
_local4.m_linearVelocity.x = (_local4.m_linearVelocity.x + (_local4.m_invMass * _local16));
_local4.m_linearVelocity.y = (_local4.m_linearVelocity.y + (_local4.m_invMass * _local17));
_local4.m_angularVelocity = (_local4.m_angularVelocity + (_local4.m_invI * ((_local8 * _local17) - (_local9 * _local16))));
}
}
}//package Box2D.Dynamics.Joints
Section 61
//b2DistanceJointDef (Box2D.Dynamics.Joints.b2DistanceJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2DistanceJointDef extends b2JointDef {
public var length:Number;
public var dampingRatio:Number;
public var frequencyHz:Number;
public var localAnchor2:b2Vec2;
public var localAnchor1:b2Vec2;
public function b2DistanceJointDef(){
localAnchor1 = new b2Vec2();
localAnchor2 = new b2Vec2();
super();
type = b2Joint.e_distanceJoint;
length = 1;
frequencyHz = 0;
dampingRatio = 0;
}
public function Initialize(_arg1:b2Body, _arg2:b2Body, _arg3:b2Vec2, _arg4:b2Vec2):void{
var _local5:Number;
var _local6:Number;
body1 = _arg1;
body2 = _arg2;
localAnchor1.SetV(body1.GetLocalPoint(_arg3));
localAnchor2.SetV(body2.GetLocalPoint(_arg4));
_local5 = (_arg4.x - _arg3.x);
_local6 = (_arg4.y - _arg3.y);
length = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
frequencyHz = 0;
dampingRatio = 0;
}
}
}//package Box2D.Dynamics.Joints
Section 62
//b2GearJoint (Box2D.Dynamics.Joints.b2GearJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2GearJoint extends b2Joint {
public var m_force:Number;
public var m_mass:Number;
public var m_prismatic1:b2PrismaticJoint;
public var m_prismatic2:b2PrismaticJoint;
public var m_ground1:b2Body;
public var m_ground2:b2Body;
public var m_constant:Number;
public var m_revolute1:b2RevoluteJoint;
public var m_revolute2:b2RevoluteJoint;
public var m_groundAnchor1:b2Vec2;
public var m_groundAnchor2:b2Vec2;
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
public var m_ratio:Number;
public var m_J:b2Jacobian;
public function b2GearJoint(_arg1:b2GearJointDef){
var _local2:int;
var _local3:int;
var _local4:Number;
var _local5:Number;
m_groundAnchor1 = new b2Vec2();
m_groundAnchor2 = new b2Vec2();
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_J = new b2Jacobian();
super(_arg1);
_local2 = _arg1.joint1.m_type;
_local3 = _arg1.joint2.m_type;
m_revolute1 = null;
m_prismatic1 = null;
m_revolute2 = null;
m_prismatic2 = null;
m_ground1 = _arg1.joint1.m_body1;
m_body1 = _arg1.joint1.m_body2;
if (_local2 == b2Joint.e_revoluteJoint){
m_revolute1 = (_arg1.joint1 as b2RevoluteJoint);
m_groundAnchor1.SetV(m_revolute1.m_localAnchor1);
m_localAnchor1.SetV(m_revolute1.m_localAnchor2);
_local4 = m_revolute1.GetJointAngle();
} else {
m_prismatic1 = (_arg1.joint1 as b2PrismaticJoint);
m_groundAnchor1.SetV(m_prismatic1.m_localAnchor1);
m_localAnchor1.SetV(m_prismatic1.m_localAnchor2);
_local4 = m_prismatic1.GetJointTranslation();
};
m_ground2 = _arg1.joint2.m_body1;
m_body2 = _arg1.joint2.m_body2;
if (_local3 == b2Joint.e_revoluteJoint){
m_revolute2 = (_arg1.joint2 as b2RevoluteJoint);
m_groundAnchor2.SetV(m_revolute2.m_localAnchor1);
m_localAnchor2.SetV(m_revolute2.m_localAnchor2);
_local5 = m_revolute2.GetJointAngle();
} else {
m_prismatic2 = (_arg1.joint2 as b2PrismaticJoint);
m_groundAnchor2.SetV(m_prismatic2.m_localAnchor1);
m_localAnchor2.SetV(m_prismatic2.m_localAnchor2);
_local5 = m_prismatic2.GetJointTranslation();
};
m_ratio = _arg1.ratio;
m_constant = (_local4 + (m_ratio * _local5));
m_force = 0;
}
override public function GetAnchor1():b2Vec2{
return (m_body1.GetWorldPoint(m_localAnchor1));
}
override public function GetAnchor2():b2Vec2{
return (m_body2.GetWorldPoint(m_localAnchor2));
}
override public function GetReactionForce():b2Vec2{
var _local1:b2Vec2;
_local1 = new b2Vec2((m_force * m_J.linear2.x), (m_force * m_J.linear2.y));
return (_local1);
}
override public function SolvePositionConstraints():Boolean{
var _local1:Number;
var _local2:b2Body;
var _local3:b2Body;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local1 = 0;
_local2 = m_body1;
_local3 = m_body2;
if (m_revolute1){
_local4 = m_revolute1.GetJointAngle();
} else {
_local4 = m_prismatic1.GetJointTranslation();
};
if (m_revolute2){
_local5 = m_revolute2.GetJointAngle();
} else {
_local5 = m_prismatic2.GetJointTranslation();
};
_local6 = (m_constant - (_local4 + (m_ratio * _local5)));
_local7 = (-(m_mass) * _local6);
_local2.m_sweep.c.x = (_local2.m_sweep.c.x + ((_local2.m_invMass * _local7) * m_J.linear1.x));
_local2.m_sweep.c.y = (_local2.m_sweep.c.y + ((_local2.m_invMass * _local7) * m_J.linear1.y));
_local2.m_sweep.a = (_local2.m_sweep.a + ((_local2.m_invI * _local7) * m_J.angular1));
_local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local3.m_invMass * _local7) * m_J.linear2.x));
_local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local3.m_invMass * _local7) * m_J.linear2.y));
_local3.m_sweep.a = (_local3.m_sweep.a + ((_local3.m_invI * _local7) * m_J.angular2));
_local2.SynchronizeTransform();
_local3.SynchronizeTransform();
return ((_local1 < b2Settings.b2_linearSlop));
}
override public function InitVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2Body;
var _local5:b2Body;
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 _local14:Number;
var _local15:Number;
_local2 = m_ground1;
_local3 = m_ground2;
_local4 = m_body1;
_local5 = m_body2;
_local14 = 0;
m_J.SetZero();
if (m_revolute1){
m_J.angular1 = -1;
_local14 = (_local14 + _local4.m_invI);
} else {
_local10 = _local2.m_xf.R;
_local11 = m_prismatic1.m_localXAxis1;
_local6 = ((_local10.col1.x * _local11.x) + (_local10.col2.x * _local11.y));
_local7 = ((_local10.col1.y * _local11.x) + (_local10.col2.y * _local11.y));
_local10 = _local4.m_xf.R;
_local8 = (m_localAnchor1.x - _local4.m_sweep.localCenter.x);
_local9 = (m_localAnchor1.y - _local4.m_sweep.localCenter.y);
_local13 = ((_local10.col1.x * _local8) + (_local10.col2.x * _local9));
_local9 = ((_local10.col1.y * _local8) + (_local10.col2.y * _local9));
_local8 = _local13;
_local12 = ((_local8 * _local7) - (_local9 * _local6));
m_J.linear1.Set(-(_local6), -(_local7));
m_J.angular1 = -(_local12);
_local14 = (_local14 + (_local4.m_invMass + ((_local4.m_invI * _local12) * _local12)));
};
if (m_revolute2){
m_J.angular2 = -(m_ratio);
_local14 = (_local14 + ((m_ratio * m_ratio) * _local5.m_invI));
} else {
_local10 = _local3.m_xf.R;
_local11 = m_prismatic2.m_localXAxis1;
_local6 = ((_local10.col1.x * _local11.x) + (_local10.col2.x * _local11.y));
_local7 = ((_local10.col1.y * _local11.x) + (_local10.col2.y * _local11.y));
_local10 = _local5.m_xf.R;
_local8 = (m_localAnchor2.x - _local5.m_sweep.localCenter.x);
_local9 = (m_localAnchor2.y - _local5.m_sweep.localCenter.y);
_local13 = ((_local10.col1.x * _local8) + (_local10.col2.x * _local9));
_local9 = ((_local10.col1.y * _local8) + (_local10.col2.y * _local9));
_local8 = _local13;
_local12 = ((_local8 * _local7) - (_local9 * _local6));
m_J.linear2.Set((-(m_ratio) * _local6), (-(m_ratio) * _local7));
m_J.angular2 = (-(m_ratio) * _local12);
_local14 = (_local14 + ((m_ratio * m_ratio) * (_local5.m_invMass + ((_local5.m_invI * _local12) * _local12))));
};
m_mass = (1 / _local14);
if (_arg1.warmStarting){
_local15 = (_arg1.dt * m_force);
_local4.m_linearVelocity.x = (_local4.m_linearVelocity.x + ((_local4.m_invMass * _local15) * m_J.linear1.x));
_local4.m_linearVelocity.y = (_local4.m_linearVelocity.y + ((_local4.m_invMass * _local15) * m_J.linear1.y));
_local4.m_angularVelocity = (_local4.m_angularVelocity + ((_local4.m_invI * _local15) * m_J.angular1));
_local5.m_linearVelocity.x = (_local5.m_linearVelocity.x + ((_local5.m_invMass * _local15) * m_J.linear2.x));
_local5.m_linearVelocity.y = (_local5.m_linearVelocity.y + ((_local5.m_invMass * _local15) * m_J.linear2.y));
_local5.m_angularVelocity = (_local5.m_angularVelocity + ((_local5.m_invI * _local15) * m_J.angular2));
} else {
m_force = 0;
};
}
override public function GetReactionTorque():Number{
var _local1:b2Mat22;
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local1 = m_body2.m_xf.R;
_local2 = (m_localAnchor1.x - m_body2.m_sweep.localCenter.x);
_local3 = (m_localAnchor1.y - m_body2.m_sweep.localCenter.y);
_local4 = ((_local1.col1.x * _local2) + (_local1.col2.x * _local3));
_local3 = ((_local1.col1.y * _local2) + (_local1.col2.y * _local3));
_local2 = _local4;
_local4 = ((m_force * m_J.angular2) - ((_local2 * (m_force * m_J.linear2.y)) - (_local3 * (m_force * m_J.linear2.x))));
return (_local4);
}
public function GetRatio():Number{
return (m_ratio);
}
override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local2 = m_body1;
_local3 = m_body2;
_local4 = m_J.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity);
_local5 = ((-(_arg1.inv_dt) * m_mass) * _local4);
m_force = (m_force + _local5);
_local6 = (_arg1.dt * _local5);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + ((_local2.m_invMass * _local6) * m_J.linear1.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + ((_local2.m_invMass * _local6) * m_J.linear1.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local2.m_invI * _local6) * m_J.angular1));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local3.m_invMass * _local6) * m_J.linear2.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local3.m_invMass * _local6) * m_J.linear2.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3.m_invI * _local6) * m_J.angular2));
}
}
}//package Box2D.Dynamics.Joints
Section 63
//b2GearJointDef (Box2D.Dynamics.Joints.b2GearJointDef)
package Box2D.Dynamics.Joints {
public class b2GearJointDef extends b2JointDef {
public var joint2:b2Joint;
public var joint1:b2Joint;
public var ratio:Number;
public function b2GearJointDef(){
type = b2Joint.e_gearJoint;
joint1 = null;
joint2 = null;
ratio = 1;
}
}
}//package Box2D.Dynamics.Joints
Section 64
//b2Jacobian (Box2D.Dynamics.Joints.b2Jacobian)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
public class b2Jacobian {
public var linear1:b2Vec2;
public var linear2:b2Vec2;
public var angular2:Number;
public var angular1:Number;
public function b2Jacobian(){
linear1 = new b2Vec2();
linear2 = new b2Vec2();
super();
}
public function Set(_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:Number):void{
linear1.SetV(_arg1);
angular1 = _arg2;
linear2.SetV(_arg3);
angular2 = _arg4;
}
public function SetZero():void{
linear1.SetZero();
angular1 = 0;
linear2.SetZero();
angular2 = 0;
}
public function Compute(_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:Number):Number{
return ((((((linear1.x * _arg1.x) + (linear1.y * _arg1.y)) + (angular1 * _arg2)) + ((linear2.x * _arg3.x) + (linear2.y * _arg3.y))) + (angular2 * _arg4)));
}
}
}//package Box2D.Dynamics.Joints
Section 65
//b2Joint (Box2D.Dynamics.Joints.b2Joint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2Joint {
public var m_islandFlag:Boolean;
public var m_body1:b2Body;
public var m_prev:b2Joint;
public var m_next:b2Joint;
public var m_type:int;
public var m_collideConnected:Boolean;
public var m_node1:b2JointEdge;
public var m_node2:b2JointEdge;
public var m_inv_dt:Number;
public var m_userData;
public var m_body2:b2Body;
public static const e_unknownJoint:int = 0;
public static const e_inactiveLimit:int = 0;
public static const e_atUpperLimit:int = 2;
public static const e_atLowerLimit:int = 1;
public static const e_gearJoint:int = 6;
public static const e_revoluteJoint:int = 1;
public static const e_equalLimits:int = 3;
public static const e_distanceJoint:int = 3;
public static const e_pulleyJoint:int = 4;
public static const e_prismaticJoint:int = 2;
public static const e_mouseJoint:int = 5;
public function b2Joint(_arg1:b2JointDef){
m_node1 = new b2JointEdge();
m_node2 = new b2JointEdge();
super();
m_type = _arg1.type;
m_prev = null;
m_next = null;
m_body1 = _arg1.body1;
m_body2 = _arg1.body2;
m_collideConnected = _arg1.collideConnected;
m_islandFlag = false;
m_userData = _arg1.userData;
}
public function GetAnchor1():b2Vec2{
return (null);
}
public function GetAnchor2():b2Vec2{
return (null);
}
public function InitVelocityConstraints(_arg1:b2TimeStep):void{
}
public function GetType():int{
return (m_type);
}
public function GetBody2():b2Body{
return (m_body2);
}
public function GetNext():b2Joint{
return (m_next);
}
public function GetReactionTorque():Number{
return (0);
}
public function GetUserData(){
return (m_userData);
}
public function GetReactionForce():b2Vec2{
return (null);
}
public function SolvePositionConstraints():Boolean{
return (false);
}
public function SetUserData(_arg1):void{
m_userData = _arg1;
}
public function GetBody1():b2Body{
return (m_body1);
}
public function SolveVelocityConstraints(_arg1:b2TimeStep):void{
}
public function InitPositionConstraints():void{
}
public static function Destroy(_arg1:b2Joint, _arg2):void{
}
public static function Create(_arg1:b2JointDef, _arg2):b2Joint{
var _local3:b2Joint;
_local3 = null;
switch (_arg1.type){
case e_distanceJoint:
_local3 = new b2DistanceJoint((_arg1 as b2DistanceJointDef));
break;
case e_mouseJoint:
_local3 = new b2MouseJoint((_arg1 as b2MouseJointDef));
break;
case e_prismaticJoint:
_local3 = new b2PrismaticJoint((_arg1 as b2PrismaticJointDef));
break;
case e_revoluteJoint:
_local3 = new b2RevoluteJoint((_arg1 as b2RevoluteJointDef));
break;
case e_pulleyJoint:
_local3 = new b2PulleyJoint((_arg1 as b2PulleyJointDef));
break;
case e_gearJoint:
_local3 = new b2GearJoint((_arg1 as b2GearJointDef));
break;
default:
break;
};
return (_local3);
}
}
}//package Box2D.Dynamics.Joints
Section 66
//b2JointDef (Box2D.Dynamics.Joints.b2JointDef)
package Box2D.Dynamics.Joints {
import Box2D.Dynamics.*;
public class b2JointDef {
public var collideConnected:Boolean;
public var body1:b2Body;
public var body2:b2Body;
public var userData;
public var type:int;
public function b2JointDef(){
type = b2Joint.e_unknownJoint;
userData = null;
body1 = null;
body2 = null;
collideConnected = false;
}
}
}//package Box2D.Dynamics.Joints
Section 67
//b2JointEdge (Box2D.Dynamics.Joints.b2JointEdge)
package Box2D.Dynamics.Joints {
import Box2D.Dynamics.*;
public class b2JointEdge {
public var joint:b2Joint;
public var other:b2Body;
public var next:b2JointEdge;
public var prev:b2JointEdge;
}
}//package Box2D.Dynamics.Joints
Section 68
//b2MouseJoint (Box2D.Dynamics.Joints.b2MouseJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2MouseJoint extends b2Joint {
public var m_beta:Number;
public var m_mass:b2Mat22;
public var m_target:b2Vec2;
public var m_impulse:b2Vec2;
public var m_localAnchor:b2Vec2;
private var K1:b2Mat22;
private var K2:b2Mat22;
private var K:b2Mat22;
public var m_gamma:Number;
public var m_C:b2Vec2;
public var m_maxForce:Number;
public function b2MouseJoint(_arg1:b2MouseJointDef){
var _local2:Number;
var _local3:Number;
var _local4:b2Mat22;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
K = new b2Mat22();
K1 = new b2Mat22();
K2 = new b2Mat22();
m_localAnchor = new b2Vec2();
m_target = new b2Vec2();
m_impulse = new b2Vec2();
m_mass = new b2Mat22();
m_C = new b2Vec2();
super(_arg1);
m_target.SetV(_arg1.target);
_local2 = (m_target.x - m_body2.m_xf.position.x);
_local3 = (m_target.y - m_body2.m_xf.position.y);
_local4 = m_body2.m_xf.R;
m_localAnchor.x = ((_local2 * _local4.col1.x) + (_local3 * _local4.col1.y));
m_localAnchor.y = ((_local2 * _local4.col2.x) + (_local3 * _local4.col2.y));
m_maxForce = _arg1.maxForce;
m_impulse.SetZero();
_local5 = m_body2.m_mass;
_local6 = ((2 * b2Settings.b2_pi) * _arg1.frequencyHz);
_local7 = (((2 * _local5) * _arg1.dampingRatio) * _local6);
_local8 = ((_arg1.timeStep * _local5) * (_local6 * _local6));
m_gamma = (1 / (_local7 + _local8));
m_beta = (_local8 / (_local7 + _local8));
}
override public function GetAnchor1():b2Vec2{
return (m_target);
}
override public function GetAnchor2():b2Vec2{
return (m_body2.GetWorldPoint(m_localAnchor));
}
override public function GetReactionForce():b2Vec2{
return (m_impulse);
}
override public function SolvePositionConstraints():Boolean{
return (true);
}
override public function InitVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Mat22;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local2 = m_body2;
_local3 = _local2.m_xf.R;
_local4 = (m_localAnchor.x - _local2.m_sweep.localCenter.x);
_local5 = (m_localAnchor.y - _local2.m_sweep.localCenter.y);
_local6 = ((_local3.col1.x * _local4) + (_local3.col2.x * _local5));
_local5 = ((_local3.col1.y * _local4) + (_local3.col2.y * _local5));
_local4 = _local6;
_local7 = _local2.m_invMass;
_local8 = _local2.m_invI;
K1.col1.x = _local7;
K1.col2.x = 0;
K1.col1.y = 0;
K1.col2.y = _local7;
K2.col1.x = ((_local8 * _local5) * _local5);
K2.col2.x = ((-(_local8) * _local4) * _local5);
K2.col1.y = ((-(_local8) * _local4) * _local5);
K2.col2.y = ((_local8 * _local4) * _local4);
K.SetM(K1);
K.AddM(K2);
K.col1.x = (K.col1.x + m_gamma);
K.col2.y = (K.col2.y + m_gamma);
K.Invert(m_mass);
m_C.x = ((_local2.m_sweep.c.x + _local4) - m_target.x);
m_C.y = ((_local2.m_sweep.c.y + _local5) - m_target.y);
_local2.m_angularVelocity = (_local2.m_angularVelocity * 0.98);
_local9 = (_arg1.dt * m_impulse.x);
_local10 = (_arg1.dt * m_impulse.y);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local7 * _local9));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local7 * _local10));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local8 * ((_local4 * _local10) - (_local5 * _local9))));
}
override public function GetReactionTorque():Number{
return (0);
}
public function SetTarget(_arg1:b2Vec2):void{
if (m_body2.IsSleeping()){
m_body2.WakeUp();
};
m_target = _arg1;
}
override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Mat22;
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;
_local2 = m_body2;
_local3 = _local2.m_xf.R;
_local6 = (m_localAnchor.x - _local2.m_sweep.localCenter.x);
_local7 = (m_localAnchor.y - _local2.m_sweep.localCenter.y);
_local4 = ((_local3.col1.x * _local6) + (_local3.col2.x * _local7));
_local7 = ((_local3.col1.y * _local6) + (_local3.col2.y * _local7));
_local6 = _local4;
_local8 = (_local2.m_linearVelocity.x + (-(_local2.m_angularVelocity) * _local7));
_local9 = (_local2.m_linearVelocity.y + (_local2.m_angularVelocity * _local6));
_local3 = m_mass;
_local4 = ((_local8 + ((m_beta * _arg1.inv_dt) * m_C.x)) + ((m_gamma * _arg1.dt) * m_impulse.x));
_local5 = ((_local9 + ((m_beta * _arg1.inv_dt) * m_C.y)) + ((m_gamma * _arg1.dt) * m_impulse.y));
_local10 = (-(_arg1.inv_dt) * ((_local3.col1.x * _local4) + (_local3.col2.x * _local5)));
_local11 = (-(_arg1.inv_dt) * ((_local3.col1.y * _local4) + (_local3.col2.y * _local5)));
_local12 = m_impulse.x;
_local13 = m_impulse.y;
m_impulse.x = (m_impulse.x + _local10);
m_impulse.y = (m_impulse.y + _local11);
_local14 = m_impulse.Length();
if (_local14 > m_maxForce){
m_impulse.Multiply((m_maxForce / _local14));
};
_local10 = (m_impulse.x - _local12);
_local11 = (m_impulse.y - _local13);
_local15 = (_arg1.dt * _local10);
_local16 = (_arg1.dt * _local11);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local2.m_invMass * _local15));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local2.m_invMass * _local16));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.m_invI * ((_local6 * _local16) - (_local7 * _local15))));
}
}
}//package Box2D.Dynamics.Joints
Section 69
//b2MouseJointDef (Box2D.Dynamics.Joints.b2MouseJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
public class b2MouseJointDef extends b2JointDef {
public var frequencyHz:Number;
public var dampingRatio:Number;
public var maxForce:Number;
public var target:b2Vec2;
public var timeStep:Number;
public function b2MouseJointDef(){
target = new b2Vec2();
super();
type = b2Joint.e_mouseJoint;
maxForce = 0;
frequencyHz = 5;
dampingRatio = 0.7;
timeStep = (1 / 60);
}
}
}//package Box2D.Dynamics.Joints
Section 70
//b2PrismaticJoint (Box2D.Dynamics.Joints.b2PrismaticJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2PrismaticJoint extends b2Joint {
public var m_limitForce:Number;
public var m_refAngle:Number;
public var m_lowerTranslation:Number;
public var m_localXAxis1:b2Vec2;
public var m_torque:Number;
public var m_enableLimit:Boolean;
public var m_motorForce:Number;
public var m_force:Number;
public var m_localYAxis1:b2Vec2;
public var m_motorMass:Number;
public var m_maxMotorForce:Number;
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
public var m_angularMass:Number;
public var m_limitState:int;
public var m_linearMass:Number;
public var m_upperTranslation:Number;
public var m_motorJacobian:b2Jacobian;
public var m_limitPositionImpulse:Number;
public var m_motorSpeed:Number;
public var m_linearJacobian:b2Jacobian;
public var m_enableMotor:Boolean;
public function b2PrismaticJoint(_arg1:b2PrismaticJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_localXAxis1 = new b2Vec2();
m_localYAxis1 = new b2Vec2();
m_linearJacobian = new b2Jacobian();
m_motorJacobian = new b2Jacobian();
super(_arg1);
m_localAnchor1.SetV(_arg1.localAnchor1);
m_localAnchor2.SetV(_arg1.localAnchor2);
m_localXAxis1.SetV(_arg1.localAxis1);
m_localYAxis1.x = -(m_localXAxis1.y);
m_localYAxis1.y = m_localXAxis1.x;
m_refAngle = _arg1.referenceAngle;
m_linearJacobian.SetZero();
m_linearMass = 0;
m_force = 0;
m_angularMass = 0;
m_torque = 0;
m_motorJacobian.SetZero();
m_motorMass = 0;
m_motorForce = 0;
m_limitForce = 0;
m_limitPositionImpulse = 0;
m_lowerTranslation = _arg1.lowerTranslation;
m_upperTranslation = _arg1.upperTranslation;
m_maxMotorForce = _arg1.maxMotorForce;
m_motorSpeed = _arg1.motorSpeed;
m_enableLimit = _arg1.enableLimit;
m_enableMotor = _arg1.enableMotor;
}
override public function GetAnchor1():b2Vec2{
return (m_body1.GetWorldPoint(m_localAnchor1));
}
override public function GetAnchor2():b2Vec2{
return (m_body2.GetWorldPoint(m_localAnchor2));
}
public function EnableMotor(_arg1:Boolean):void{
m_enableMotor = _arg1;
}
public function GetUpperLimit():Number{
return (m_upperTranslation);
}
public function GetLowerLimit():Number{
return (m_lowerTranslation);
}
public function GetJointTranslation():Number{
var _local1:b2Body;
var _local2:b2Body;
var _local3:b2Mat22;
var _local4:b2Vec2;
var _local5:b2Vec2;
var _local6:Number;
var _local7:Number;
var _local8:b2Vec2;
var _local9:Number;
_local1 = m_body1;
_local2 = m_body2;
_local4 = _local1.GetWorldPoint(m_localAnchor1);
_local5 = _local2.GetWorldPoint(m_localAnchor2);
_local6 = (_local5.x - _local4.x);
_local7 = (_local5.y - _local4.y);
_local8 = _local1.GetWorldVector(m_localXAxis1);
_local9 = ((_local8.x * _local6) + (_local8.y * _local7));
return (_local9);
}
public function SetLimits(_arg1:Number, _arg2:Number):void{
m_lowerTranslation = _arg1;
m_upperTranslation = _arg2;
}
public function GetMotorSpeed():Number{
return (m_motorSpeed);
}
override public function GetReactionForce():b2Vec2{
var _local1:b2Mat22;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local1 = m_body1.m_xf.R;
_local2 = (m_limitForce * ((_local1.col1.x * m_localXAxis1.x) + (_local1.col2.x * m_localXAxis1.y)));
_local3 = (m_limitForce * ((_local1.col1.y * m_localXAxis1.x) + (_local1.col2.y * m_localXAxis1.y)));
_local4 = (m_force * ((_local1.col1.x * m_localYAxis1.x) + (_local1.col2.x * m_localYAxis1.y)));
_local5 = (m_force * ((_local1.col1.y * m_localYAxis1.x) + (_local1.col2.y * m_localYAxis1.y)));
return (new b2Vec2(((m_limitForce * _local2) + (m_force * _local4)), ((m_limitForce * _local3) + (m_force * _local5))));
}
override public function SolvePositionConstraints():Boolean{
var _local1:Number;
var _local2:Number;
var _local3:b2Body;
var _local4:b2Body;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9: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 _local21:Number;
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;
_local3 = m_body1;
_local4 = m_body2;
_local5 = _local3.m_invMass;
_local6 = _local4.m_invMass;
_local7 = _local3.m_invI;
_local8 = _local4.m_invI;
_local9 = _local3.m_xf.R;
_local11 = (m_localAnchor1.x - _local3.m_sweep.localCenter.x);
_local12 = (m_localAnchor1.y - _local3.m_sweep.localCenter.y);
_local10 = ((_local9.col1.x * _local11) + (_local9.col2.x * _local12));
_local12 = ((_local9.col1.y * _local11) + (_local9.col2.y * _local12));
_local11 = _local10;
_local9 = _local4.m_xf.R;
_local13 = (m_localAnchor2.x - _local4.m_sweep.localCenter.x);
_local14 = (m_localAnchor2.y - _local4.m_sweep.localCenter.y);
_local10 = ((_local9.col1.x * _local13) + (_local9.col2.x * _local14));
_local14 = ((_local9.col1.y * _local13) + (_local9.col2.y * _local14));
_local13 = _local10;
_local15 = (_local3.m_sweep.c.x + _local11);
_local16 = (_local3.m_sweep.c.y + _local12);
_local17 = (_local4.m_sweep.c.x + _local13);
_local18 = (_local4.m_sweep.c.y + _local14);
_local19 = (_local17 - _local15);
_local20 = (_local18 - _local16);
_local9 = _local3.m_xf.R;
_local21 = ((_local9.col1.x * m_localYAxis1.x) + (_local9.col2.x * m_localYAxis1.y));
_local22 = ((_local9.col1.y * m_localYAxis1.x) + (_local9.col2.y * m_localYAxis1.y));
_local23 = ((_local21 * _local19) + (_local22 * _local20));
_local23 = b2Math.b2Clamp(_local23, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
_local24 = (-(m_linearMass) * _local23);
_local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local5 * _local24) * m_linearJacobian.linear1.x));
_local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local5 * _local24) * m_linearJacobian.linear1.y));
_local3.m_sweep.a = (_local3.m_sweep.a + ((_local7 * _local24) * m_linearJacobian.angular1));
_local4.m_sweep.c.x = (_local4.m_sweep.c.x + ((_local6 * _local24) * m_linearJacobian.linear2.x));
_local4.m_sweep.c.y = (_local4.m_sweep.c.y + ((_local6 * _local24) * m_linearJacobian.linear2.y));
_local4.m_sweep.a = (_local4.m_sweep.a + ((_local8 * _local24) * m_linearJacobian.angular2));
_local25 = b2Math.b2Abs(_local23);
_local26 = ((_local4.m_sweep.a - _local3.m_sweep.a) - m_refAngle);
_local26 = b2Math.b2Clamp(_local26, -(b2Settings.b2_maxAngularCorrection), b2Settings.b2_maxAngularCorrection);
_local27 = (-(m_angularMass) * _local26);
_local3.m_sweep.a = (_local3.m_sweep.a - (_local3.m_invI * _local27));
_local4.m_sweep.a = (_local4.m_sweep.a + (_local4.m_invI * _local27));
_local3.SynchronizeTransform();
_local4.SynchronizeTransform();
_local28 = b2Math.b2Abs(_local26);
if (((m_enableLimit) && (!((m_limitState == e_inactiveLimit))))){
_local9 = _local3.m_xf.R;
_local11 = (m_localAnchor1.x - _local3.m_sweep.localCenter.x);
_local12 = (m_localAnchor1.y - _local3.m_sweep.localCenter.y);
_local10 = ((_local9.col1.x * _local11) + (_local9.col2.x * _local12));
_local12 = ((_local9.col1.y * _local11) + (_local9.col2.y * _local12));
_local11 = _local10;
_local9 = _local4.m_xf.R;
_local13 = (m_localAnchor2.x - _local4.m_sweep.localCenter.x);
_local14 = (m_localAnchor2.y - _local4.m_sweep.localCenter.y);
_local10 = ((_local9.col1.x * _local13) + (_local9.col2.x * _local14));
_local14 = ((_local9.col1.y * _local13) + (_local9.col2.y * _local14));
_local13 = _local10;
_local15 = (_local3.m_sweep.c.x + _local11);
_local16 = (_local3.m_sweep.c.y + _local12);
_local17 = (_local4.m_sweep.c.x + _local13);
_local18 = (_local4.m_sweep.c.y + _local14);
_local19 = (_local17 - _local15);
_local20 = (_local18 - _local16);
_local9 = _local3.m_xf.R;
_local29 = ((_local9.col1.x * m_localXAxis1.x) + (_local9.col2.x * m_localXAxis1.y));
_local30 = ((_local9.col1.y * m_localXAxis1.x) + (_local9.col2.y * m_localXAxis1.y));
_local31 = ((_local29 * _local19) + (_local30 * _local20));
_local32 = 0;
if (m_limitState == e_equalLimits){
_local1 = b2Math.b2Clamp(_local31, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection);
_local32 = (-(m_motorMass) * _local1);
_local25 = b2Math.b2Max(_local25, b2Math.b2Abs(_local26));
} else {
if (m_limitState == e_atLowerLimit){
_local1 = (_local31 - m_lowerTranslation);
_local25 = b2Math.b2Max(_local25, -(_local1));
_local1 = b2Math.b2Clamp((_local1 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local32 = (-(m_motorMass) * _local1);
_local2 = m_limitPositionImpulse;
m_limitPositionImpulse = b2Math.b2Max((m_limitPositionImpulse + _local32), 0);
_local32 = (m_limitPositionImpulse - _local2);
} else {
if (m_limitState == e_atUpperLimit){
_local1 = (_local31 - m_upperTranslation);
_local25 = b2Math.b2Max(_local25, _local1);
_local1 = b2Math.b2Clamp((_local1 - b2Settings.b2_linearSlop), 0, b2Settings.b2_maxLinearCorrection);
_local32 = (-(m_motorMass) * _local1);
_local2 = m_limitPositionImpulse;
m_limitPositionImpulse = b2Math.b2Min((m_limitPositionImpulse + _local32), 0);
_local32 = (m_limitPositionImpulse - _local2);
};
};
};
_local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local5 * _local32) * m_motorJacobian.linear1.x));
_local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local5 * _local32) * m_motorJacobian.linear1.y));
_local3.m_sweep.a = (_local3.m_sweep.a + ((_local7 * _local32) * m_motorJacobian.angular1));
_local4.m_sweep.c.x = (_local4.m_sweep.c.x + ((_local6 * _local32) * m_motorJacobian.linear2.x));
_local4.m_sweep.c.y = (_local4.m_sweep.c.y + ((_local6 * _local32) * m_motorJacobian.linear2.y));
_local4.m_sweep.a = (_local4.m_sweep.a + ((_local8 * _local32) * m_motorJacobian.angular2));
_local3.SynchronizeTransform();
_local4.SynchronizeTransform();
};
return ((((_local25 <= b2Settings.b2_linearSlop)) && ((_local28 <= b2Settings.b2_angularSlop))));
}
public function GetJointSpeed():Number{
var _local1:b2Body;
var _local2:b2Body;
var _local3:b2Mat22;
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:b2Vec2;
var _local16:b2Vec2;
var _local17:b2Vec2;
var _local18:Number;
var _local19:Number;
var _local20:Number;
_local1 = m_body1;
_local2 = m_body2;
_local3 = _local1.m_xf.R;
_local4 = (m_localAnchor1.x - _local1.m_sweep.localCenter.x);
_local5 = (m_localAnchor1.y - _local1.m_sweep.localCenter.y);
_local6 = ((_local3.col1.x * _local4) + (_local3.col2.x * _local5));
_local5 = ((_local3.col1.y * _local4) + (_local3.col2.y * _local5));
_local4 = _local6;
_local3 = _local2.m_xf.R;
_local7 = (m_localAnchor2.x - _local2.m_sweep.localCenter.x);
_local8 = (m_localAnchor2.y - _local2.m_sweep.localCenter.y);
_local6 = ((_local3.col1.x * _local7) + (_local3.col2.x * _local8));
_local8 = ((_local3.col1.y * _local7) + (_local3.col2.y * _local8));
_local7 = _local6;
_local9 = (_local1.m_sweep.c.x + _local4);
_local10 = (_local1.m_sweep.c.y + _local5);
_local11 = (_local2.m_sweep.c.x + _local7);
_local12 = (_local2.m_sweep.c.y + _local8);
_local13 = (_local11 - _local9);
_local14 = (_local12 - _local10);
_local15 = _local1.GetWorldVector(m_localXAxis1);
_local16 = _local1.m_linearVelocity;
_local17 = _local2.m_linearVelocity;
_local18 = _local1.m_angularVelocity;
_local19 = _local2.m_angularVelocity;
_local20 = (((_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 SetMotorSpeed(_arg1:Number):void{
m_motorSpeed = _arg1;
}
override public function InitVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2Mat22;
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: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;
_local2 = m_body1;
_local3 = m_body2;
_local4 = _local2.m_xf.R;
_local6 = (m_localAnchor1.x - _local2.m_sweep.localCenter.x);
_local7 = (m_localAnchor1.y - _local2.m_sweep.localCenter.y);
_local5 = ((_local4.col1.x * _local6) + (_local4.col2.x * _local7));
_local7 = ((_local4.col1.y * _local6) + (_local4.col2.y * _local7));
_local6 = _local5;
_local4 = _local3.m_xf.R;
_local8 = (m_localAnchor2.x - _local3.m_sweep.localCenter.x);
_local9 = (m_localAnchor2.y - _local3.m_sweep.localCenter.y);
_local5 = ((_local4.col1.x * _local8) + (_local4.col2.x * _local9));
_local9 = ((_local4.col1.y * _local8) + (_local4.col2.y * _local9));
_local8 = _local5;
_local10 = _local2.m_invMass;
_local11 = _local3.m_invMass;
_local12 = _local2.m_invI;
_local13 = _local3.m_invI;
_local4 = _local2.m_xf.R;
_local14 = ((_local4.col1.x * m_localYAxis1.x) + (_local4.col2.x * m_localYAxis1.y));
_local15 = ((_local4.col1.y * m_localYAxis1.x) + (_local4.col2.y * m_localYAxis1.y));
_local16 = ((_local3.m_sweep.c.x + _local8) - _local2.m_sweep.c.x);
_local17 = ((_local3.m_sweep.c.y + _local9) - _local2.m_sweep.c.y);
m_linearJacobian.linear1.x = -(_local14);
m_linearJacobian.linear1.y = -(_local15);
m_linearJacobian.linear2.x = _local14;
m_linearJacobian.linear2.y = _local15;
m_linearJacobian.angular1 = -(((_local16 * _local15) - (_local17 * _local14)));
m_linearJacobian.angular2 = ((_local8 * _local15) - (_local9 * _local14));
m_linearMass = (((_local10 + ((_local12 * m_linearJacobian.angular1) * m_linearJacobian.angular1)) + _local11) + ((_local13 * m_linearJacobian.angular2) * m_linearJacobian.angular2));
m_linearMass = (1 / m_linearMass);
m_angularMass = (_local12 + _local13);
if (m_angularMass > Number.MIN_VALUE){
m_angularMass = (1 / m_angularMass);
};
if (((m_enableLimit) || (m_enableMotor))){
_local4 = _local2.m_xf.R;
_local18 = ((_local4.col1.x * m_localXAxis1.x) + (_local4.col2.x * m_localXAxis1.y));
_local19 = ((_local4.col1.y * m_localXAxis1.x) + (_local4.col2.y * m_localXAxis1.y));
m_motorJacobian.linear1.x = -(_local18);
m_motorJacobian.linear1.y = -(_local19);
m_motorJacobian.linear2.x = _local18;
m_motorJacobian.linear2.y = _local19;
m_motorJacobian.angular1 = -(((_local16 * _local19) - (_local17 * _local18)));
m_motorJacobian.angular2 = ((_local8 * _local19) - (_local9 * _local18));
m_motorMass = (((_local10 + ((_local12 * m_motorJacobian.angular1) * m_motorJacobian.angular1)) + _local11) + ((_local13 * m_motorJacobian.angular2) * m_motorJacobian.angular2));
m_motorMass = (1 / m_motorMass);
if (m_enableLimit){
_local20 = (_local16 - _local6);
_local21 = (_local17 - _local7);
_local22 = ((_local18 * _local20) + (_local19 * _local21));
if (b2Math.b2Abs((m_upperTranslation - m_lowerTranslation)) < (2 * b2Settings.b2_linearSlop)){
m_limitState = e_equalLimits;
} else {
if (_local22 <= m_lowerTranslation){
if (m_limitState != e_atLowerLimit){
m_limitForce = 0;
};
m_limitState = e_atLowerLimit;
} else {
if (_local22 >= m_upperTranslation){
if (m_limitState != e_atUpperLimit){
m_limitForce = 0;
};
m_limitState = e_atUpperLimit;
} else {
m_limitState = e_inactiveLimit;
m_limitForce = 0;
};
};
};
};
};
if (m_enableMotor == false){
m_motorForce = 0;
};
if (m_enableLimit == false){
m_limitForce = 0;
};
if (_arg1.warmStarting){
_local23 = (_arg1.dt * ((m_force * m_linearJacobian.linear1.x) + ((m_motorForce + m_limitForce) * m_motorJacobian.linear1.x)));
_local24 = (_arg1.dt * ((m_force * m_linearJacobian.linear1.y) + ((m_motorForce + m_limitForce) * m_motorJacobian.linear1.y)));
_local25 = (_arg1.dt * ((m_force * m_linearJacobian.linear2.x) + ((m_motorForce + m_limitForce) * m_motorJacobian.linear2.x)));
_local26 = (_arg1.dt * ((m_force * m_linearJacobian.linear2.y) + ((m_motorForce + m_limitForce) * m_motorJacobian.linear2.y)));
_local27 = (_arg1.dt * (((m_force * m_linearJacobian.angular1) - m_torque) + ((m_motorForce + m_limitForce) * m_motorJacobian.angular1)));
_local28 = (_arg1.dt * (((m_force * m_linearJacobian.angular2) + m_torque) + ((m_motorForce + m_limitForce) * m_motorJacobian.angular2)));
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local10 * _local23));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local10 * _local24));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local12 * _local27));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + (_local11 * _local25));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + (_local11 * _local26));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local13 * _local28));
} else {
m_force = 0;
m_torque = 0;
m_limitForce = 0;
m_motorForce = 0;
};
m_limitPositionImpulse = 0;
}
public function GetMotorForce():Number{
return (m_motorForce);
}
public function SetMaxMotorForce(_arg1:Number):void{
m_maxMotorForce = _arg1;
}
public function EnableLimit(_arg1:Boolean):void{
m_enableLimit = _arg1;
}
override public function GetReactionTorque():Number{
return (m_torque);
}
public function IsLimitEnabled():Boolean{
return (m_enableLimit);
}
public function IsMotorEnabled():Boolean{
return (m_enableMotor);
}
override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
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:Number;
var _local18:Number;
var _local19:Number;
_local2 = m_body1;
_local3 = m_body2;
_local4 = _local2.m_invMass;
_local5 = _local3.m_invMass;
_local6 = _local2.m_invI;
_local7 = _local3.m_invI;
_local9 = m_linearJacobian.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity);
_local10 = ((-(_arg1.inv_dt) * m_linearMass) * _local9);
m_force = (m_force + _local10);
_local11 = (_arg1.dt * _local10);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + ((_local4 * _local11) * m_linearJacobian.linear1.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + ((_local4 * _local11) * m_linearJacobian.linear1.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * m_linearJacobian.angular1));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local5 * _local11) * m_linearJacobian.linear2.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local5 * _local11) * m_linearJacobian.linear2.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * m_linearJacobian.angular2));
_local12 = (_local3.m_angularVelocity - _local2.m_angularVelocity);
_local13 = ((-(_arg1.inv_dt) * m_angularMass) * _local12);
m_torque = (m_torque + _local13);
_local14 = (_arg1.dt * _local13);
_local2.m_angularVelocity = (_local2.m_angularVelocity - (_local6 * _local14));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local7 * _local14));
if (((m_enableMotor) && (!((m_limitState == e_equalLimits))))){
_local15 = (m_motorJacobian.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity) - m_motorSpeed);
_local16 = ((-(_arg1.inv_dt) * m_motorMass) * _local15);
_local17 = m_motorForce;
m_motorForce = b2Math.b2Clamp((m_motorForce + _local16), -(m_maxMotorForce), m_maxMotorForce);
_local16 = (m_motorForce - _local17);
_local11 = (_arg1.dt * _local16);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + ((_local4 * _local11) * m_motorJacobian.linear1.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + ((_local4 * _local11) * m_motorJacobian.linear1.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * m_motorJacobian.angular1));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local5 * _local11) * m_motorJacobian.linear2.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local5 * _local11) * m_motorJacobian.linear2.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * m_motorJacobian.angular2));
};
if (((m_enableLimit) && (!((m_limitState == e_inactiveLimit))))){
_local18 = m_motorJacobian.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity);
_local19 = ((-(_arg1.inv_dt) * m_motorMass) * _local18);
if (m_limitState == e_equalLimits){
m_limitForce = (m_limitForce + _local19);
} else {
if (m_limitState == e_atLowerLimit){
_local8 = m_limitForce;
m_limitForce = b2Math.b2Max((m_limitForce + _local19), 0);
_local19 = (m_limitForce - _local8);
} else {
if (m_limitState == e_atUpperLimit){
_local8 = m_limitForce;
m_limitForce = b2Math.b2Min((m_limitForce + _local19), 0);
_local19 = (m_limitForce - _local8);
};
};
};
_local11 = (_arg1.dt * _local19);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + ((_local4 * _local11) * m_motorJacobian.linear1.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + ((_local4 * _local11) * m_motorJacobian.linear1.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * m_motorJacobian.angular1));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_local5 * _local11) * m_motorJacobian.linear2.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_local5 * _local11) * m_motorJacobian.linear2.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * m_motorJacobian.angular2));
};
}
}
}//package Box2D.Dynamics.Joints
Section 71
//b2PrismaticJointDef (Box2D.Dynamics.Joints.b2PrismaticJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2PrismaticJointDef extends b2JointDef {
public var localAxis1:b2Vec2;
public var referenceAngle:Number;
public var maxMotorForce:Number;
public var motorSpeed:Number;
public var upperTranslation:Number;
public var localAnchor1:b2Vec2;
public var localAnchor2:b2Vec2;
public var enableLimit:Boolean;
public var enableMotor:Boolean;
public var lowerTranslation:Number;
public function b2PrismaticJointDef(){
localAnchor1 = new b2Vec2();
localAnchor2 = new b2Vec2();
localAxis1 = new b2Vec2();
super();
type = b2Joint.e_prismaticJoint;
localAxis1.Set(1, 0);
referenceAngle = 0;
enableLimit = false;
lowerTranslation = 0;
upperTranslation = 0;
enableMotor = false;
maxMotorForce = 0;
motorSpeed = 0;
}
public function Initialize(_arg1:b2Body, _arg2:b2Body, _arg3:b2Vec2, _arg4:b2Vec2):void{
body1 = _arg1;
body2 = _arg2;
localAnchor1 = body1.GetLocalPoint(_arg3);
localAnchor2 = body2.GetLocalPoint(_arg3);
localAxis1 = body1.GetLocalVector(_arg4);
referenceAngle = (body2.GetAngle() - body1.GetAngle());
}
}
}//package Box2D.Dynamics.Joints
Section 72
//b2PulleyJoint (Box2D.Dynamics.Joints.b2PulleyJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2PulleyJoint extends b2Joint {
public var m_ground:b2Body;
public var m_maxLength2:Number;
public var m_limitForce1:Number;
public var m_maxLength1:Number;
public var m_limitState1:int;
public var m_limitState2:int;
public var m_limitPositionImpulse2:Number;
public var m_force:Number;
public var m_limitPositionImpulse1:Number;
public var m_constant:Number;
public var m_state:int;
public var m_ratio:Number;
public var m_groundAnchor1:b2Vec2;
public var m_groundAnchor2:b2Vec2;
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
public var m_positionImpulse:Number;
public var m_limitMass2:Number;
public var m_limitMass1:Number;
public var m_pulleyMass:Number;
public var m_u1:b2Vec2;
public var m_u2:b2Vec2;
public var m_limitForce2:Number;
public static const b2_minPulleyLength:Number = 2;
public function b2PulleyJoint(_arg1:b2PulleyJointDef){
var _local2:b2Mat22;
var _local3:Number;
var _local4:Number;
m_groundAnchor1 = new b2Vec2();
m_groundAnchor2 = new b2Vec2();
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_u1 = new b2Vec2();
m_u2 = new b2Vec2();
super(_arg1);
m_ground = m_body1.m_world.m_groundBody;
m_groundAnchor1.x = (_arg1.groundAnchor1.x - m_ground.m_xf.position.x);
m_groundAnchor1.y = (_arg1.groundAnchor1.y - m_ground.m_xf.position.y);
m_groundAnchor2.x = (_arg1.groundAnchor2.x - m_ground.m_xf.position.x);
m_groundAnchor2.y = (_arg1.groundAnchor2.y - m_ground.m_xf.position.y);
m_localAnchor1.SetV(_arg1.localAnchor1);
m_localAnchor2.SetV(_arg1.localAnchor2);
m_ratio = _arg1.ratio;
m_constant = (_arg1.length1 + (m_ratio * _arg1.length2));
m_maxLength1 = b2Math.b2Min(_arg1.maxLength1, (m_constant - (m_ratio * b2_minPulleyLength)));
m_maxLength2 = b2Math.b2Min(_arg1.maxLength2, ((m_constant - b2_minPulleyLength) / m_ratio));
m_force = 0;
m_limitForce1 = 0;
m_limitForce2 = 0;
}
public function GetGroundAnchor2():b2Vec2{
var _local1:b2Vec2;
_local1 = m_ground.m_xf.position.Copy();
_local1.Add(m_groundAnchor2);
return (_local1);
}
override public function GetAnchor1():b2Vec2{
return (m_body1.GetWorldPoint(m_localAnchor1));
}
override public function GetAnchor2():b2Vec2{
return (m_body2.GetWorldPoint(m_localAnchor2));
}
override public function GetReactionForce():b2Vec2{
var _local1:b2Vec2;
_local1 = m_u2.Copy();
_local1.Multiply(m_force);
return (_local1);
}
override public function SolvePositionConstraints():Boolean{
var _local1:b2Body;
var _local2:b2Body;
var _local3:b2Mat22;
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:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
_local1 = m_body1;
_local2 = m_body2;
_local4 = (m_ground.m_xf.position.x + m_groundAnchor1.x);
_local5 = (m_ground.m_xf.position.y + m_groundAnchor1.y);
_local6 = (m_ground.m_xf.position.x + m_groundAnchor2.x);
_local7 = (m_ground.m_xf.position.y + m_groundAnchor2.y);
_local23 = 0;
if (m_state == e_atUpperLimit){
_local3 = _local1.m_xf.R;
_local8 = (m_localAnchor1.x - _local1.m_sweep.localCenter.x);
_local9 = (m_localAnchor1.y - _local1.m_sweep.localCenter.y);
_local22 = ((_local3.col1.x * _local8) + (_local3.col2.x * _local9));
_local9 = ((_local3.col1.y * _local8) + (_local3.col2.y * _local9));
_local8 = _local22;
_local3 = _local2.m_xf.R;
_local10 = (m_localAnchor2.x - _local2.m_sweep.localCenter.x);
_local11 = (m_localAnchor2.y - _local2.m_sweep.localCenter.y);
_local22 = ((_local3.col1.x * _local10) + (_local3.col2.x * _local11));
_local11 = ((_local3.col1.y * _local10) + (_local3.col2.y * _local11));
_local10 = _local22;
_local12 = (_local1.m_sweep.c.x + _local8);
_local13 = (_local1.m_sweep.c.y + _local9);
_local14 = (_local2.m_sweep.c.x + _local10);
_local15 = (_local2.m_sweep.c.y + _local11);
m_u1.Set((_local12 - _local4), (_local13 - _local5));
m_u2.Set((_local14 - _local6), (_local15 - _local7));
_local16 = m_u1.Length();
_local17 = m_u2.Length();
if (_local16 > b2Settings.b2_linearSlop){
m_u1.Multiply((1 / _local16));
} else {
m_u1.SetZero();
};
if (_local17 > b2Settings.b2_linearSlop){
m_u2.Multiply((1 / _local17));
} else {
m_u2.SetZero();
};
_local18 = ((m_constant - _local16) - (m_ratio * _local17));
_local23 = b2Math.b2Max(_local23, -(_local18));
_local18 = b2Math.b2Clamp((_local18 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local19 = (-(m_pulleyMass) * _local18);
_local20 = m_positionImpulse;
m_positionImpulse = b2Math.b2Max(0, (m_positionImpulse + _local19));
_local19 = (m_positionImpulse - _local20);
_local12 = (-(_local19) * m_u1.x);
_local13 = (-(_local19) * m_u1.y);
_local14 = ((-(m_ratio) * _local19) * m_u2.x);
_local15 = ((-(m_ratio) * _local19) * m_u2.y);
_local1.m_sweep.c.x = (_local1.m_sweep.c.x + (_local1.m_invMass * _local12));
_local1.m_sweep.c.y = (_local1.m_sweep.c.y + (_local1.m_invMass * _local13));
_local1.m_sweep.a = (_local1.m_sweep.a + (_local1.m_invI * ((_local8 * _local13) - (_local9 * _local12))));
_local2.m_sweep.c.x = (_local2.m_sweep.c.x + (_local2.m_invMass * _local14));
_local2.m_sweep.c.y = (_local2.m_sweep.c.y + (_local2.m_invMass * _local15));
_local2.m_sweep.a = (_local2.m_sweep.a + (_local2.m_invI * ((_local10 * _local15) - (_local11 * _local14))));
_local1.SynchronizeTransform();
_local2.SynchronizeTransform();
};
if (m_limitState1 == e_atUpperLimit){
_local3 = _local1.m_xf.R;
_local8 = (m_localAnchor1.x - _local1.m_sweep.localCenter.x);
_local9 = (m_localAnchor1.y - _local1.m_sweep.localCenter.y);
_local22 = ((_local3.col1.x * _local8) + (_local3.col2.x * _local9));
_local9 = ((_local3.col1.y * _local8) + (_local3.col2.y * _local9));
_local8 = _local22;
_local12 = (_local1.m_sweep.c.x + _local8);
_local13 = (_local1.m_sweep.c.y + _local9);
m_u1.Set((_local12 - _local4), (_local13 - _local5));
_local16 = m_u1.Length();
if (_local16 > b2Settings.b2_linearSlop){
m_u1.x = (m_u1.x * (1 / _local16));
m_u1.y = (m_u1.y * (1 / _local16));
} else {
m_u1.SetZero();
};
_local18 = (m_maxLength1 - _local16);
_local23 = b2Math.b2Max(_local23, -(_local18));
_local18 = b2Math.b2Clamp((_local18 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local19 = (-(m_limitMass1) * _local18);
_local21 = m_limitPositionImpulse1;
m_limitPositionImpulse1 = b2Math.b2Max(0, (m_limitPositionImpulse1 + _local19));
_local19 = (m_limitPositionImpulse1 - _local21);
_local12 = (-(_local19) * m_u1.x);
_local13 = (-(_local19) * m_u1.y);
_local1.m_sweep.c.x = (_local1.m_sweep.c.x + (_local1.m_invMass * _local12));
_local1.m_sweep.c.y = (_local1.m_sweep.c.y + (_local1.m_invMass * _local13));
_local1.m_sweep.a = (_local1.m_sweep.a + (_local1.m_invI * ((_local8 * _local13) - (_local9 * _local12))));
_local1.SynchronizeTransform();
};
if (m_limitState2 == e_atUpperLimit){
_local3 = _local2.m_xf.R;
_local10 = (m_localAnchor2.x - _local2.m_sweep.localCenter.x);
_local11 = (m_localAnchor2.y - _local2.m_sweep.localCenter.y);
_local22 = ((_local3.col1.x * _local10) + (_local3.col2.x * _local11));
_local11 = ((_local3.col1.y * _local10) + (_local3.col2.y * _local11));
_local10 = _local22;
_local14 = (_local2.m_sweep.c.x + _local10);
_local15 = (_local2.m_sweep.c.y + _local11);
m_u2.Set((_local14 - _local6), (_local15 - _local7));
_local17 = m_u2.Length();
if (_local17 > b2Settings.b2_linearSlop){
m_u2.x = (m_u2.x * (1 / _local17));
m_u2.y = (m_u2.y * (1 / _local17));
} else {
m_u2.SetZero();
};
_local18 = (m_maxLength2 - _local17);
_local23 = b2Math.b2Max(_local23, -(_local18));
_local18 = b2Math.b2Clamp((_local18 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0);
_local19 = (-(m_limitMass2) * _local18);
_local21 = m_limitPositionImpulse2;
m_limitPositionImpulse2 = b2Math.b2Max(0, (m_limitPositionImpulse2 + _local19));
_local19 = (m_limitPositionImpulse2 - _local21);
_local14 = (-(_local19) * m_u2.x);
_local15 = (-(_local19) * m_u2.y);
_local2.m_sweep.c.x = (_local2.m_sweep.c.x + (_local2.m_invMass * _local14));
_local2.m_sweep.c.y = (_local2.m_sweep.c.y + (_local2.m_invMass * _local15));
_local2.m_sweep.a = (_local2.m_sweep.a + (_local2.m_invI * ((_local10 * _local15) - (_local11 * _local14))));
_local2.SynchronizeTransform();
};
return ((_local23 < b2Settings.b2_linearSlop));
}
override public function InitVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2Mat22;
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: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;
_local2 = m_body1;
_local3 = m_body2;
_local4 = _local2.m_xf.R;
_local5 = (m_localAnchor1.x - _local2.m_sweep.localCenter.x);
_local6 = (m_localAnchor1.y - _local2.m_sweep.localCenter.y);
_local7 = ((_local4.col1.x * _local5) + (_local4.col2.x * _local6));
_local6 = ((_local4.col1.y * _local5) + (_local4.col2.y * _local6));
_local5 = _local7;
_local4 = _local3.m_xf.R;
_local8 = (m_localAnchor2.x - _local3.m_sweep.localCenter.x);
_local9 = (m_localAnchor2.y - _local3.m_sweep.localCenter.y);
_local7 = ((_local4.col1.x * _local8) + (_local4.col2.x * _local9));
_local9 = ((_local4.col1.y * _local8) + (_local4.col2.y * _local9));
_local8 = _local7;
_local10 = (_local2.m_sweep.c.x + _local5);
_local11 = (_local2.m_sweep.c.y + _local6);
_local12 = (_local3.m_sweep.c.x + _local8);
_local13 = (_local3.m_sweep.c.y + _local9);
_local14 = (m_ground.m_xf.position.x + m_groundAnchor1.x);
_local15 = (m_ground.m_xf.position.y + m_groundAnchor1.y);
_local16 = (m_ground.m_xf.position.x + m_groundAnchor2.x);
_local17 = (m_ground.m_xf.position.y + m_groundAnchor2.y);
m_u1.Set((_local10 - _local14), (_local11 - _local15));
m_u2.Set((_local12 - _local16), (_local13 - _local17));
_local18 = m_u1.Length();
_local19 = m_u2.Length();
if (_local18 > b2Settings.b2_linearSlop){
m_u1.Multiply((1 / _local18));
} else {
m_u1.SetZero();
};
if (_local19 > b2Settings.b2_linearSlop){
m_u2.Multiply((1 / _local19));
} else {
m_u2.SetZero();
};
_local20 = ((m_constant - _local18) - (m_ratio * _local19));
if (_local20 > 0){
m_state = e_inactiveLimit;
m_force = 0;
} else {
m_state = e_atUpperLimit;
m_positionImpulse = 0;
};
if (_local18 < m_maxLength1){
m_limitState1 = e_inactiveLimit;
m_limitForce1 = 0;
} else {
m_limitState1 = e_atUpperLimit;
m_limitPositionImpulse1 = 0;
};
if (_local19 < m_maxLength2){
m_limitState2 = e_inactiveLimit;
m_limitForce2 = 0;
} else {
m_limitState2 = e_atUpperLimit;
m_limitPositionImpulse2 = 0;
};
_local21 = ((_local5 * m_u1.y) - (_local6 * m_u1.x));
_local22 = ((_local8 * m_u2.y) - (_local9 * m_u2.x));
m_limitMass1 = (_local2.m_invMass + ((_local2.m_invI * _local21) * _local21));
m_limitMass2 = (_local3.m_invMass + ((_local3.m_invI * _local22) * _local22));
m_pulleyMass = (m_limitMass1 + ((m_ratio * m_ratio) * m_limitMass2));
m_limitMass1 = (1 / m_limitMass1);
m_limitMass2 = (1 / m_limitMass2);
m_pulleyMass = (1 / m_pulleyMass);
if (_arg1.warmStarting){
_local23 = ((_arg1.dt * (-(m_force) - m_limitForce1)) * m_u1.x);
_local24 = ((_arg1.dt * (-(m_force) - m_limitForce1)) * m_u1.y);
_local25 = ((_arg1.dt * ((-(m_ratio) * m_force) - m_limitForce2)) * m_u2.x);
_local26 = ((_arg1.dt * ((-(m_ratio) * m_force) - m_limitForce2)) * m_u2.y);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local2.m_invMass * _local23));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local2.m_invMass * _local24));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.m_invI * ((_local5 * _local24) - (_local6 * _local23))));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + (_local3.m_invMass * _local25));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + (_local3.m_invMass * _local26));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * ((_local8 * _local26) - (_local9 * _local25))));
} else {
m_force = 0;
m_limitForce1 = 0;
m_limitForce2 = 0;
};
}
override public function GetReactionTorque():Number{
return (0);
}
public function GetRatio():Number{
return (m_ratio);
}
public function GetLength2():Number{
var _local1:b2Vec2;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local1 = m_body2.GetWorldPoint(m_localAnchor2);
_local2 = (m_ground.m_xf.position.x + m_groundAnchor2.x);
_local3 = (m_ground.m_xf.position.y + m_groundAnchor2.y);
_local4 = (_local1.x - _local2);
_local5 = (_local1.y - _local3);
return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5))));
}
override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2Mat22;
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:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
_local2 = m_body1;
_local3 = m_body2;
_local4 = _local2.m_xf.R;
_local5 = (m_localAnchor1.x - _local2.m_sweep.localCenter.x);
_local6 = (m_localAnchor1.y - _local2.m_sweep.localCenter.y);
_local7 = ((_local4.col1.x * _local5) + (_local4.col2.x * _local6));
_local6 = ((_local4.col1.y * _local5) + (_local4.col2.y * _local6));
_local5 = _local7;
_local4 = _local3.m_xf.R;
_local8 = (m_localAnchor2.x - _local3.m_sweep.localCenter.x);
_local9 = (m_localAnchor2.y - _local3.m_sweep.localCenter.y);
_local7 = ((_local4.col1.x * _local8) + (_local4.col2.x * _local9));
_local9 = ((_local4.col1.y * _local8) + (_local4.col2.y * _local9));
_local8 = _local7;
if (m_state == e_atUpperLimit){
_local10 = (_local2.m_linearVelocity.x + (-(_local2.m_angularVelocity) * _local6));
_local11 = (_local2.m_linearVelocity.y + (_local2.m_angularVelocity * _local5));
_local12 = (_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local9));
_local13 = (_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local8));
_local18 = (-(((m_u1.x * _local10) + (m_u1.y * _local11))) - (m_ratio * ((m_u2.x * _local12) + (m_u2.y * _local13))));
_local19 = ((-(_arg1.inv_dt) * m_pulleyMass) * _local18);
_local20 = m_force;
m_force = b2Math.b2Max(0, (m_force + _local19));
_local19 = (m_force - _local20);
_local14 = ((-(_arg1.dt) * _local19) * m_u1.x);
_local15 = ((-(_arg1.dt) * _local19) * m_u1.y);
_local16 = (((-(_arg1.dt) * m_ratio) * _local19) * m_u2.x);
_local17 = (((-(_arg1.dt) * m_ratio) * _local19) * m_u2.y);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local2.m_invMass * _local14));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local2.m_invMass * _local15));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.m_invI * ((_local5 * _local15) - (_local6 * _local14))));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + (_local3.m_invMass * _local16));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + (_local3.m_invMass * _local17));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * ((_local8 * _local17) - (_local9 * _local16))));
};
if (m_limitState1 == e_atUpperLimit){
_local10 = (_local2.m_linearVelocity.x + (-(_local2.m_angularVelocity) * _local6));
_local11 = (_local2.m_linearVelocity.y + (_local2.m_angularVelocity * _local5));
_local18 = -(((m_u1.x * _local10) + (m_u1.y * _local11)));
_local19 = ((-(_arg1.inv_dt) * m_limitMass1) * _local18);
_local20 = m_limitForce1;
m_limitForce1 = b2Math.b2Max(0, (m_limitForce1 + _local19));
_local19 = (m_limitForce1 - _local20);
_local14 = ((-(_arg1.dt) * _local19) * m_u1.x);
_local15 = ((-(_arg1.dt) * _local19) * m_u1.y);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x + (_local2.m_invMass * _local14));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y + (_local2.m_invMass * _local15));
_local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.m_invI * ((_local5 * _local15) - (_local6 * _local14))));
};
if (m_limitState2 == e_atUpperLimit){
_local12 = (_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local9));
_local13 = (_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local8));
_local18 = -(((m_u2.x * _local12) + (m_u2.y * _local13)));
_local19 = ((-(_arg1.inv_dt) * m_limitMass2) * _local18);
_local20 = m_limitForce2;
m_limitForce2 = b2Math.b2Max(0, (m_limitForce2 + _local19));
_local19 = (m_limitForce2 - _local20);
_local16 = ((-(_arg1.dt) * _local19) * m_u2.x);
_local17 = ((-(_arg1.dt) * _local19) * m_u2.y);
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + (_local3.m_invMass * _local16));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + (_local3.m_invMass * _local17));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * ((_local8 * _local17) - (_local9 * _local16))));
};
}
public function GetLength1():Number{
var _local1:b2Vec2;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local1 = m_body1.GetWorldPoint(m_localAnchor1);
_local2 = (m_ground.m_xf.position.x + m_groundAnchor1.x);
_local3 = (m_ground.m_xf.position.y + m_groundAnchor1.y);
_local4 = (_local1.x - _local2);
_local5 = (_local1.y - _local3);
return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5))));
}
public function GetGroundAnchor1():b2Vec2{
var _local1:b2Vec2;
_local1 = m_ground.m_xf.position.Copy();
_local1.Add(m_groundAnchor1);
return (_local1);
}
}
}//package Box2D.Dynamics.Joints
Section 73
//b2PulleyJointDef (Box2D.Dynamics.Joints.b2PulleyJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2PulleyJointDef extends b2JointDef {
public var maxLength2:Number;
public var length1:Number;
public var length2:Number;
public var maxLength1:Number;
public var ratio:Number;
public var groundAnchor1:b2Vec2;
public var groundAnchor2:b2Vec2;
public var localAnchor1:b2Vec2;
public var localAnchor2:b2Vec2;
public function b2PulleyJointDef(){
groundAnchor1 = new b2Vec2();
groundAnchor2 = new b2Vec2();
localAnchor1 = new b2Vec2();
localAnchor2 = new b2Vec2();
super();
type = b2Joint.e_pulleyJoint;
groundAnchor1.Set(-1, 1);
groundAnchor2.Set(1, 1);
localAnchor1.Set(-1, 0);
localAnchor2.Set(1, 0);
length1 = 0;
maxLength1 = 0;
length2 = 0;
maxLength2 = 0;
ratio = 1;
collideConnected = true;
}
public function Initialize(_arg1:b2Body, _arg2:b2Body, _arg3:b2Vec2, _arg4:b2Vec2, _arg5:b2Vec2, _arg6:b2Vec2, _arg7:Number):void{
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
body1 = _arg1;
body2 = _arg2;
groundAnchor1.SetV(_arg3);
groundAnchor2.SetV(_arg4);
localAnchor1 = body1.GetLocalPoint(_arg5);
localAnchor2 = body2.GetLocalPoint(_arg6);
_local8 = (_arg5.x - _arg3.x);
_local9 = (_arg5.y - _arg3.y);
length1 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9)));
_local10 = (_arg6.x - _arg4.x);
_local11 = (_arg6.y - _arg4.y);
length2 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11)));
ratio = _arg7;
_local12 = (length1 + (ratio * length2));
maxLength1 = (_local12 - (ratio * b2PulleyJoint.b2_minPulleyLength));
maxLength2 = ((_local12 - b2PulleyJoint.b2_minPulleyLength) / ratio);
}
}
}//package Box2D.Dynamics.Joints
Section 74
//b2RevoluteJoint (Box2D.Dynamics.Joints.b2RevoluteJoint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
public class b2RevoluteJoint extends b2Joint {
public var m_limitForce:Number;
public var m_motorForce:Number;
public var m_pivotMass:b2Mat22;
public var m_enableLimit:Boolean;
public var m_limitState:int;
public var m_motorMass:Number;
public var m_localAnchor1:b2Vec2;
public var m_localAnchor2:b2Vec2;
private var K1:b2Mat22;
private var K2:b2Mat22;
private var K3:b2Mat22;
private var K:b2Mat22;
public var m_pivotForce:b2Vec2;
public var m_motorSpeed:Number;
public var m_enableMotor:Boolean;
public var m_limitPositionImpulse:Number;
public var m_maxMotorTorque:Number;
public var m_referenceAngle:Number;
public var m_lowerAngle:Number;
public var m_upperAngle:Number;
public static var tImpulse:b2Vec2 = new b2Vec2();
public function b2RevoluteJoint(_arg1:b2RevoluteJointDef){
K = new b2Mat22();
K1 = new b2Mat22();
K2 = new b2Mat22();
K3 = new b2Mat22();
m_localAnchor1 = new b2Vec2();
m_localAnchor2 = new b2Vec2();
m_pivotForce = new b2Vec2();
m_pivotMass = new b2Mat22();
super(_arg1);
m_localAnchor1.SetV(_arg1.localAnchor1);
m_localAnchor2.SetV(_arg1.localAnchor2);
m_referenceAngle = _arg1.referenceAngle;
m_pivotForce.Set(0, 0);
m_motorForce = 0;
m_limitForce = 0;
m_limitPositionImpulse = 0;
m_lowerAngle = _arg1.lowerAngle;
m_upperAngle = _arg1.upperAngle;
m_maxMotorTorque = _arg1.maxMotorTorque;
m_motorSpeed = _arg1.motorSpeed;
m_enableLimit = _arg1.enableLimit;
m_enableMotor = _arg1.enableMotor;
}
override public function GetAnchor1():b2Vec2{
return (m_body1.GetWorldPoint(m_localAnchor1));
}
override public function GetAnchor2():b2Vec2{
return (m_body2.GetWorldPoint(m_localAnchor2));
}
public function EnableMotor(_arg1:Boolean):void{
m_enableMotor = _arg1;
}
public function GetUpperLimit():Number{
return (m_upperAngle);
}
public function GetLowerLimit():Number{
return (m_lowerAngle);
}
public function SetLimits(_arg1:Number, _arg2:Number):void{
m_lowerAngle = _arg1;
m_upperAngle = _arg2;
}
public function GetMotorSpeed():Number{
return (m_motorSpeed);
}
override public function GetReactionForce():b2Vec2{
return (m_pivotForce);
}
override public function SolvePositionConstraints():Boolean{
var _local1:Number;
var _local2:Number;
var _local3:b2Body;
var _local4:b2Body;
var _local5:Number;
var _local6:b2Mat22;
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;
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;
_local3 = m_body1;
_local4 = m_body2;
_local5 = 0;
_local6 = _local3.m_xf.R;
_local7 = (m_localAnchor1.x - _local3.m_sweep.localCenter.x);
_local8 = (m_localAnchor1.y - _local3.m_sweep.localCenter.y);
_local9 = ((_local6.col1.x * _local7) + (_local6.col2.x * _local8));
_local8 = ((_local6.col1.y * _local7) + (_local6.col2.y * _local8));
_local7 = _local9;
_local6 = _local4.m_xf.R;
_local10 = (m_localAnchor2.x - _local4.m_sweep.localCenter.x);
_local11 = (m_localAnchor2.y - _local4.m_sweep.localCenter.y);
_local9 = ((_local6.col1.x * _local10) + (_local6.col2.x * _local11));
_local11 = ((_local6.col1.y * _local10) + (_local6.col2.y * _local11));
_local10 = _local9;
_local12 = (_local3.m_sweep.c.x + _local7);
_local13 = (_local3.m_sweep.c.y + _local8);
_local14 = (_local4.m_sweep.c.x + _local10);
_local15 = (_local4.m_sweep.c.y + _local11);
_local16 = (_local14 - _local12);
_local17 = (_local15 - _local13);
_local5 = Math.sqrt(((_local16 * _local16) + (_local17 * _local17)));
_local18 = _local3.m_invMass;
_local19 = _local4.m_invMass;
_local20 = _local3.m_invI;
_local21 = _local4.m_invI;
K1.col1.x = (_local18 + _local19);
K1.col2.x = 0;
K1.col1.y = 0;
K1.col2.y = (_local18 + _local19);
K2.col1.x = ((_local20 * _local8) * _local8);
K2.col2.x = ((-(_local20) * _local7) * _local8);
K2.col1.y = ((-(_local20) * _local7) * _local8);
K2.col2.y = ((_local20 * _local7) * _local7);
K3.col1.x = ((_local21 * _local11) * _local11);
K3.col2.x = ((-(_local21) * _local10) * _local11);
K3.col1.y = ((-(_local21) * _local10) * _local11);
K3.col2.y = ((_local21 * _local10) * _local10);
K.SetM(K1);
K.AddM(K2);
K.AddM(K3);
K.Solve(tImpulse, -(_local16), -(_local17));
_local22 = tImpulse.x;
_local23 = tImpulse.y;
_local3.m_sweep.c.x = (_local3.m_sweep.c.x - (_local3.m_invMass * _local22));
_local3.m_sweep.c.y = (_local3.m_sweep.c.y - (_local3.m_invMass * _local23));
_local3.m_sweep.a = (_local3.m_sweep.a - (_local3.m_invI * ((_local7 * _local23) - (_local8 * _local22))));
_local4.m_sweep.c.x = (_local4.m_sweep.c.x + (_local4.m_invMass * _local22));
_local4.m_sweep.c.y = (_local4.m_sweep.c.y + (_local4.m_invMass * _local23));
_local4.m_sweep.a = (_local4.m_sweep.a + (_local4.m_invI * ((_local10 * _local23) - (_local11 * _local22))));
_local3.SynchronizeTransform();
_local4.SynchronizeTransform();
_local24 = 0;
if (((m_enableLimit) && (!((m_limitState == e_inactiveLimit))))){
_local25 = ((_local4.m_sweep.a - _local3.m_sweep.a) - m_referenceAngle);
_local26 = 0;
if (m_limitState == e_equalLimits){
_local2 = b2Math.b2Clamp(_local25, -(b2Settings.b2_maxAngularCorrection), b2Settings.b2_maxAngularCorrection);
_local26 = (-(m_motorMass) * _local2);
_local24 = b2Math.b2Abs(_local2);
} else {
if (m_limitState == e_atLowerLimit){
_local2 = (_local25 - m_lowerAngle);
_local24 = b2Math.b2Max(0, -(_local2));
_local2 = b2Math.b2Clamp((_local2 + b2Settings.b2_angularSlop), -(b2Settings.b2_maxAngularCorrection), 0);
_local26 = (-(m_motorMass) * _local2);
_local1 = m_limitPositionImpulse;
m_limitPositionImpulse = b2Math.b2Max((m_limitPositionImpulse + _local26), 0);
_local26 = (m_limitPositionImpulse - _local1);
} else {
if (m_limitState == e_atUpperLimit){
_local2 = (_local25 - m_upperAngle);
_local24 = b2Math.b2Max(0, _local2);
_local2 = b2Math.b2Clamp((_local2 - b2Settings.b2_angularSlop), 0, b2Settings.b2_maxAngularCorrection);
_local26 = (-(m_motorMass) * _local2);
_local1 = m_limitPositionImpulse;
m_limitPositionImpulse = b2Math.b2Min((m_limitPositionImpulse + _local26), 0);
_local26 = (m_limitPositionImpulse - _local1);
};
};
};
_local3.m_sweep.a = (_local3.m_sweep.a - (_local3.m_invI * _local26));
_local4.m_sweep.a = (_local4.m_sweep.a + (_local4.m_invI * _local26));
_local3.SynchronizeTransform();
_local4.SynchronizeTransform();
};
return ((((_local5 <= b2Settings.b2_linearSlop)) && ((_local24 <= b2Settings.b2_angularSlop))));
}
public function GetJointSpeed():Number{
return ((m_body2.m_angularVelocity - m_body1.m_angularVelocity));
}
public function SetMotorSpeed(_arg1:Number):void{
m_motorSpeed = _arg1;
}
public function SetMaxMotorTorque(_arg1:Number):void{
m_maxMotorTorque = _arg1;
}
public function GetJointAngle():Number{
return (((m_body2.m_sweep.a - m_body1.m_sweep.a) - m_referenceAngle));
}
override public function InitVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2Mat22;
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;
_local2 = m_body1;
_local3 = m_body2;
_local4 = _local2.m_xf.R;
_local6 = (m_localAnchor1.x - _local2.m_sweep.localCenter.x);
_local7 = (m_localAnchor1.y - _local2.m_sweep.localCenter.y);
_local5 = ((_local4.col1.x * _local6) + (_local4.col2.x * _local7));
_local7 = ((_local4.col1.y * _local6) + (_local4.col2.y * _local7));
_local6 = _local5;
_local4 = _local3.m_xf.R;
_local8 = (m_localAnchor2.x - _local3.m_sweep.localCenter.x);
_local9 = (m_localAnchor2.y - _local3.m_sweep.localCenter.y);
_local5 = ((_local4.col1.x * _local8) + (_local4.col2.x * _local9));
_local9 = ((_local4.col1.y * _local8) + (_local4.col2.y * _local9));
_local8 = _local5;
_local10 = _local2.m_invMass;
_local11 = _local3.m_invMass;
_local12 = _local2.m_invI;
_local13 = _local3.m_invI;
K1.col1.x = (_local10 + _local11);
K1.col2.x = 0;
K1.col1.y = 0;
K1.col2.y = (_local10 + _local11);
K2.col1.x = ((_local12 * _local7) * _local7);
K2.col2.x = ((-(_local12) * _local6) * _local7);
K2.col1.y = ((-(_local12) * _local6) * _local7);
K2.col2.y = ((_local12 * _local6) * _local6);
K3.col1.x = ((_local13 * _local9) * _local9);
K3.col2.x = ((-(_local13) * _local8) * _local9);
K3.col1.y = ((-(_local13) * _local8) * _local9);
K3.col2.y = ((_local13 * _local8) * _local8);
K.SetM(K1);
K.AddM(K2);
K.AddM(K3);
K.Invert(m_pivotMass);
m_motorMass = (1 / (_local12 + _local13));
if (m_enableMotor == false){
m_motorForce = 0;
};
if (m_enableLimit){
_local14 = ((_local3.m_sweep.a - _local2.m_sweep.a) - m_referenceAngle);
if (b2Math.b2Abs((m_upperAngle - m_lowerAngle)) < (2 * b2Settings.b2_angularSlop)){
m_limitState = e_equalLimits;
} else {
if (_local14 <= m_lowerAngle){
if (m_limitState != e_atLowerLimit){
m_limitForce = 0;
};
m_limitState = e_atLowerLimit;
} else {
if (_local14 >= m_upperAngle){
if (m_limitState != e_atUpperLimit){
m_limitForce = 0;
};
m_limitState = e_atUpperLimit;
} else {
m_limitState = e_inactiveLimit;
m_limitForce = 0;
};
};
};
} else {
m_limitForce = 0;
};
if (_arg1.warmStarting){
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x - ((_arg1.dt * _local10) * m_pivotForce.x));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y - ((_arg1.dt * _local10) * m_pivotForce.y));
_local2.m_angularVelocity = (_local2.m_angularVelocity - ((_arg1.dt * _local12) * ((((_local6 * m_pivotForce.y) - (_local7 * m_pivotForce.x)) + m_motorForce) + m_limitForce)));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + ((_arg1.dt * _local11) * m_pivotForce.x));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + ((_arg1.dt * _local11) * m_pivotForce.y));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_arg1.dt * _local13) * ((((_local8 * m_pivotForce.y) - (_local9 * m_pivotForce.x)) + m_motorForce) + m_limitForce)));
} else {
m_pivotForce.SetZero();
m_motorForce = 0;
m_limitForce = 0;
};
m_limitPositionImpulse = 0;
}
public function EnableLimit(_arg1:Boolean):void{
m_enableLimit = _arg1;
}
public function GetMotorTorque():Number{
return (m_motorForce);
}
override public function GetReactionTorque():Number{
return (m_limitForce);
}
public function IsLimitEnabled():Boolean{
return (m_enableLimit);
}
public function IsMotorEnabled():Boolean{
return (m_enableMotor);
}
override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2Mat22;
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:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
_local2 = m_body1;
_local3 = m_body2;
_local4 = _local2.m_xf.R;
_local6 = (m_localAnchor1.x - _local2.m_sweep.localCenter.x);
_local7 = (m_localAnchor1.y - _local2.m_sweep.localCenter.y);
_local5 = ((_local4.col1.x * _local6) + (_local4.col2.x * _local7));
_local7 = ((_local4.col1.y * _local6) + (_local4.col2.y * _local7));
_local6 = _local5;
_local4 = _local3.m_xf.R;
_local8 = (m_localAnchor2.x - _local3.m_sweep.localCenter.x);
_local9 = (m_localAnchor2.y - _local3.m_sweep.localCenter.y);
_local5 = ((_local4.col1.x * _local8) + (_local4.col2.x * _local9));
_local9 = ((_local4.col1.y * _local8) + (_local4.col2.y * _local9));
_local8 = _local5;
_local11 = (((_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local9)) - _local2.m_linearVelocity.x) - (-(_local2.m_angularVelocity) * _local7));
_local12 = (((_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local8)) - _local2.m_linearVelocity.y) - (_local2.m_angularVelocity * _local6));
_local13 = (-(_arg1.inv_dt) * ((m_pivotMass.col1.x * _local11) + (m_pivotMass.col2.x * _local12)));
_local14 = (-(_arg1.inv_dt) * ((m_pivotMass.col1.y * _local11) + (m_pivotMass.col2.y * _local12)));
m_pivotForce.x = (m_pivotForce.x + _local13);
m_pivotForce.y = (m_pivotForce.y + _local14);
_local15 = (_arg1.dt * _local13);
_local16 = (_arg1.dt * _local14);
_local2.m_linearVelocity.x = (_local2.m_linearVelocity.x - (_local2.m_invMass * _local15));
_local2.m_linearVelocity.y = (_local2.m_linearVelocity.y - (_local2.m_invMass * _local16));
_local2.m_angularVelocity = (_local2.m_angularVelocity - (_local2.m_invI * ((_local6 * _local16) - (_local7 * _local15))));
_local3.m_linearVelocity.x = (_local3.m_linearVelocity.x + (_local3.m_invMass * _local15));
_local3.m_linearVelocity.y = (_local3.m_linearVelocity.y + (_local3.m_invMass * _local16));
_local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.m_invI * ((_local8 * _local16) - (_local9 * _local15))));
if (((m_enableMotor) && (!((m_limitState == e_equalLimits))))){
_local17 = ((_local3.m_angularVelocity - _local2.m_angularVelocity) - m_motorSpeed);
_local18 = ((-(_arg1.inv_dt) * m_motorMass) * _local17);
_local19 = m_motorForce;
m_motorForce = b2Math.b2Clamp((m_motorForce + _local18), -(m_maxMotorTorque), m_maxMotorTorque);
_local18 = (m_motorForce - _local19);
_local2.m_angularVelocity = (_local2.m_angularVelocity - ((_local2.m_invI * _arg1.dt) * _local18));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3.m_invI * _arg1.dt) * _local18));
};
if (((m_enableLimit) && (!((m_limitState == e_inactiveLimit))))){
_local20 = (_local3.m_angularVelocity - _local2.m_angularVelocity);
_local21 = ((-(_arg1.inv_dt) * m_motorMass) * _local20);
if (m_limitState == e_equalLimits){
m_limitForce = (m_limitForce + _local21);
} else {
if (m_limitState == e_atLowerLimit){
_local10 = m_limitForce;
m_limitForce = b2Math.b2Max((m_limitForce + _local21), 0);
_local21 = (m_limitForce - _local10);
} else {
if (m_limitState == e_atUpperLimit){
_local10 = m_limitForce;
m_limitForce = b2Math.b2Min((m_limitForce + _local21), 0);
_local21 = (m_limitForce - _local10);
};
};
};
_local2.m_angularVelocity = (_local2.m_angularVelocity - ((_local2.m_invI * _arg1.dt) * _local21));
_local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3.m_invI * _arg1.dt) * _local21));
};
}
}
}//package Box2D.Dynamics.Joints
Section 75
//b2RevoluteJointDef (Box2D.Dynamics.Joints.b2RevoluteJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
public class b2RevoluteJointDef extends b2JointDef {
public var referenceAngle:Number;
public var upperAngle:Number;
public var lowerAngle:Number;
public var motorSpeed:Number;
public var maxMotorTorque:Number;
public var localAnchor1:b2Vec2;
public var localAnchor2:b2Vec2;
public var enableLimit:Boolean;
public var enableMotor:Boolean;
public function b2RevoluteJointDef(){
localAnchor1 = new b2Vec2();
localAnchor2 = new b2Vec2();
super();
type = b2Joint.e_revoluteJoint;
localAnchor1.Set(0, 0);
localAnchor2.Set(0, 0);
referenceAngle = 0;
lowerAngle = 0;
upperAngle = 0;
maxMotorTorque = 0;
motorSpeed = 0;
enableLimit = false;
enableMotor = false;
}
public function Initialize(_arg1:b2Body, _arg2:b2Body, _arg3:b2Vec2):void{
body1 = _arg1;
body2 = _arg2;
localAnchor1 = body1.GetLocalPoint(_arg3);
localAnchor2 = body2.GetLocalPoint(_arg3);
referenceAngle = (body2.GetAngle() - body1.GetAngle());
}
}
}//package Box2D.Dynamics.Joints
Section 76
//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 m_next:b2Body;
public var m_contactList:b2ContactEdge;
public var m_angularVelocity:Number;
public var m_shapeList:b2Shape;
public var m_force:b2Vec2;
public var m_mass:Number;
public var m_sweep:b2Sweep;
public var m_xf:b2XForm;
public var m_torque:Number;
public var m_userData;
public var m_flags:uint;
public var m_world:b2World;
public var m_prev:b2Body;
public var m_invMass:Number;
public var m_type:int;
public var m_linearDamping:Number;
public var m_angularDamping:Number;
public var m_invI:Number;
public var m_linearVelocity:b2Vec2;
public var m_sleepTime:Number;
public var m_shapeCount:int;
public var m_jointList:b2JointEdge;
public var m_I:Number;
public static var e_fixedRotationFlag:uint = 64;
public static var e_frozenFlag:uint = 2;
public static var e_maxTypes:uint = 3;
public static var e_sleepFlag:uint = 8;
private static var s_massData:b2MassData = new b2MassData();
public static var e_bulletFlag:uint = 32;
public static var e_staticType:uint = 1;
public static var e_islandFlag:uint = 4;
public static var e_allowSleepFlag:uint = 16;
private static var s_xf1:b2XForm = new b2XForm();
public static var e_affByGravityFlag:uint = 128;
public static var e_dynamicType:uint = 2;
public function b2Body(_arg1:b2BodyDef, _arg2:b2World){
var _local3:b2Mat22;
var _local4:b2Vec2;
m_xf = new b2XForm();
m_sweep = new b2Sweep();
m_linearVelocity = new b2Vec2();
m_force = new b2Vec2();
super();
m_flags = 0;
if (_arg1.isBullet){
m_flags = (m_flags | e_bulletFlag);
};
if (_arg1.fixedRotation){
m_flags = (m_flags | e_fixedRotationFlag);
};
if (_arg1.allowSleep){
m_flags = (m_flags | e_allowSleepFlag);
};
if (_arg1.isSleeping){
m_flags = (m_flags | e_sleepFlag);
};
if (_arg1.affectedByGravity){
m_flags = (m_flags | e_affByGravityFlag);
};
m_world = _arg2;
m_xf.position.SetV(_arg1.position);
m_xf.R.Set(_arg1.angle);
m_sweep.localCenter.SetV(_arg1.massData.center);
m_sweep.t0 = 1;
m_sweep.a0 = (m_sweep.a = _arg1.angle);
_local3 = m_xf.R;
_local4 = m_sweep.localCenter;
m_sweep.c.x = ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y));
m_sweep.c.y = ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y));
m_sweep.c.x = (m_sweep.c.x + m_xf.position.x);
m_sweep.c.y = (m_sweep.c.y + m_xf.position.y);
m_sweep.c0.SetV(m_sweep.c);
m_jointList = null;
m_contactList = null;
m_prev = null;
m_next = null;
m_linearDamping = _arg1.linearDamping;
m_angularDamping = _arg1.angularDamping;
m_force.Set(0, 0);
m_torque = 0;
m_linearVelocity.SetZero();
m_angularVelocity = 0;
m_sleepTime = 0;
m_invMass = 0;
m_I = 0;
m_invI = 0;
m_mass = _arg1.massData.mass;
if (m_mass > 0){
m_invMass = (1 / m_mass);
};
if ((m_flags & b2Body.e_fixedRotationFlag) == 0){
m_I = _arg1.massData.I;
};
if (m_I > 0){
m_invI = (1 / m_I);
};
if ((((m_invMass == 0)) && ((m_invI == 0)))){
m_type = e_staticType;
} else {
m_type = e_dynamicType;
};
m_userData = _arg1.userData;
m_shapeList = null;
m_shapeCount = 0;
}
public function GetLinearVelocityFromWorldPoint(_arg1:b2Vec2):b2Vec2{
return (new b2Vec2((m_linearVelocity.x + (m_angularVelocity * (_arg1.y - m_sweep.c.y))), (m_linearVelocity.x - (m_angularVelocity * (_arg1.x - m_sweep.c.x)))));
}
public function SetLinearVelocity(_arg1:b2Vec2):void{
m_linearVelocity.SetV(_arg1);
}
public function WakeUp():void{
m_flags = (m_flags & ~(e_sleepFlag));
m_sleepTime = 0;
}
public function GetLocalCenter():b2Vec2{
return (m_sweep.localCenter);
}
public function ApplyTorque(_arg1:Number):void{
if (IsSleeping()){
WakeUp();
};
m_torque = (m_torque + _arg1);
}
public function IsFrozen():Boolean{
return (((m_flags & e_frozenFlag) == e_frozenFlag));
}
public function IsDynamic():Boolean{
return ((m_type == e_dynamicType));
}
public function GetLinearVelocity():b2Vec2{
return (m_linearVelocity);
}
public function SynchronizeTransform():void{
var _local1:b2Mat22;
var _local2:b2Vec2;
m_xf.R.Set(m_sweep.a);
_local1 = m_xf.R;
_local2 = m_sweep.localCenter;
m_xf.position.x = (m_sweep.c.x - ((_local1.col1.x * _local2.x) + (_local1.col2.x * _local2.y)));
m_xf.position.y = (m_sweep.c.y - ((_local1.col1.y * _local2.x) + (_local1.col2.y * _local2.y)));
}
public function GetInertia():Number{
return (m_I);
}
public function IsSleeping():Boolean{
return (((m_flags & e_sleepFlag) == e_sleepFlag));
}
public function SetMassFromShapes():void{
var _local1:b2Shape;
var _local2:Number;
var _local3:Number;
var _local4:b2MassData;
var _local5:b2Mat22;
var _local6:b2Vec2;
var _local7:int;
if (m_world.m_lock == true){
return;
};
m_mass = 0;
m_invMass = 0;
m_I = 0;
m_invI = 0;
_local2 = 0;
_local3 = 0;
_local4 = s_massData;
_local1 = m_shapeList;
while (_local1) {
_local1.ComputeMass(_local4);
m_mass = (m_mass + _local4.mass);
_local2 = (_local2 + (_local4.mass * _local4.center.x));
_local3 = (_local3 + (_local4.mass * _local4.center.y));
m_I = (m_I + _local4.I);
_local1 = _local1.m_next;
};
if (m_mass > 0){
m_invMass = (1 / m_mass);
_local2 = (_local2 * m_invMass);
_local3 = (_local3 * m_invMass);
};
if ((((m_I > 0)) && (((m_flags & e_fixedRotationFlag) == 0)))){
m_I = (m_I - (m_mass * ((_local2 * _local2) + (_local3 * _local3))));
m_invI = (1 / m_I);
} else {
m_I = 0;
m_invI = 0;
};
m_sweep.localCenter.Set(_local2, _local3);
_local5 = m_xf.R;
_local6 = m_sweep.localCenter;
m_sweep.c.x = ((_local5.col1.x * _local6.x) + (_local5.col2.x * _local6.y));
m_sweep.c.y = ((_local5.col1.y * _local6.x) + (_local5.col2.y * _local6.y));
m_sweep.c.x = (m_sweep.c.x + m_xf.position.x);
m_sweep.c.y = (m_sweep.c.y + m_xf.position.y);
m_sweep.c0.SetV(m_sweep.c);
_local1 = m_shapeList;
while (_local1) {
_local1.UpdateSweepRadius(m_sweep.localCenter);
_local1 = _local1.m_next;
};
_local7 = m_type;
if ((((m_invMass == 0)) && ((m_invI == 0)))){
m_type = e_staticType;
} else {
m_type = e_dynamicType;
};
if (_local7 != m_type){
_local1 = m_shapeList;
while (_local1) {
_local1.RefilterProxy(m_world.m_broadPhase, m_xf);
_local1 = _local1.m_next;
};
};
}
public function PutToSleep():void{
m_flags = (m_flags | e_sleepFlag);
m_sleepTime = 0;
m_linearVelocity.SetZero();
m_angularVelocity = 0;
m_force.SetZero();
m_torque = 0;
}
public function GetJointList():b2JointEdge{
return (m_jointList);
}
public function SetXForm(_arg1:b2Vec2, _arg2:Number):Boolean{
var _local3:b2Shape;
var _local4:b2Mat22;
var _local5:b2Vec2;
var _local6:Boolean;
var _local7:Boolean;
if (m_world.m_lock == true){
return (true);
};
if (IsFrozen()){
return (false);
};
m_xf.R.Set(_arg2);
m_xf.position.SetV(_arg1);
_local4 = m_xf.R;
_local5 = m_sweep.localCenter;
m_sweep.c.x = ((_local4.col1.x * _local5.x) + (_local4.col2.x * _local5.y));
m_sweep.c.y = ((_local4.col1.y * _local5.x) + (_local4.col2.y * _local5.y));
m_sweep.c.x = (m_sweep.c.x + m_xf.position.x);
m_sweep.c.y = (m_sweep.c.y + m_xf.position.y);
m_sweep.c0.SetV(m_sweep.c);
m_sweep.a0 = (m_sweep.a = _arg2);
_local6 = false;
_local3 = m_shapeList;
while (_local3) {
_local7 = _local3.Synchronize(m_world.m_broadPhase, m_xf, m_xf);
if (_local7 == false){
_local6 = true;
break;
};
_local3 = _local3.m_next;
};
if (_local6 == true){
m_flags = (m_flags | e_frozenFlag);
m_linearVelocity.SetZero();
m_angularVelocity = 0;
_local3 = m_shapeList;
while (_local3) {
_local3.DestroyProxy(m_world.m_broadPhase);
_local3 = _local3.m_next;
};
return (false);
};
m_world.m_broadPhase.Commit();
return (true);
}
public function GetLocalPoint(_arg1:b2Vec2):b2Vec2{
return (b2Math.b2MulXT(m_xf, _arg1));
}
public function ApplyForce(_arg1:b2Vec2, _arg2:b2Vec2):void{
if (IsSleeping()){
WakeUp();
};
m_force.x = (m_force.x + _arg1.x);
m_force.y = (m_force.y + _arg1.y);
m_torque = (m_torque + (((_arg2.x - m_sweep.c.x) * _arg1.y) - ((_arg2.y - m_sweep.c.y) * _arg1.x)));
}
public function SynchronizeShapes():Boolean{
var _local1:b2XForm;
var _local2:b2Mat22;
var _local3:b2Vec2;
var _local4:b2Shape;
var _local5:Boolean;
_local1 = s_xf1;
_local1.R.Set(m_sweep.a0);
_local2 = _local1.R;
_local3 = m_sweep.localCenter;
_local1.position.x = (m_sweep.c0.x - ((_local2.col1.x * _local3.x) + (_local2.col2.x * _local3.y)));
_local1.position.y = (m_sweep.c0.y - ((_local2.col1.y * _local3.x) + (_local2.col2.y * _local3.y)));
_local5 = true;
_local4 = m_shapeList;
while (_local4) {
_local5 = _local4.Synchronize(m_world.m_broadPhase, _local1, m_xf);
if (_local5 == false){
break;
};
_local4 = _local4.m_next;
};
if (_local5 == false){
m_flags = (m_flags | e_frozenFlag);
m_linearVelocity.SetZero();
m_angularVelocity = 0;
_local4 = m_shapeList;
while (_local4) {
_local4.DestroyProxy(m_world.m_broadPhase);
_local4 = _local4.m_next;
};
return (false);
};
return (true);
}
public function GetAngle():Number{
return (m_sweep.a);
}
public function GetXForm():b2XForm{
return (m_xf);
}
public function ApplyImpulse(_arg1:b2Vec2, _arg2:b2Vec2):void{
if (IsSleeping()){
WakeUp();
};
m_linearVelocity.x = (m_linearVelocity.x + (m_invMass * _arg1.x));
m_linearVelocity.y = (m_linearVelocity.y + (m_invMass * _arg1.y));
m_angularVelocity = (m_angularVelocity + (m_invI * (((_arg2.x - m_sweep.c.x) * _arg1.y) - ((_arg2.y - m_sweep.c.y) * _arg1.x))));
}
public function GetNext():b2Body{
return (m_next);
}
public function GetMass():Number{
return (m_mass);
}
public function GetLinearVelocityFromLocalPoint(_arg1:b2Vec2):b2Vec2{
var _local2:b2Mat22;
var _local3:b2Vec2;
_local2 = m_xf.R;
_local3 = new b2Vec2(((_local2.col1.x * _arg1.x) + (_local2.col2.x * _arg1.y)), ((_local2.col1.y * _arg1.x) + (_local2.col2.y * _arg1.y)));
_local3.x = (_local3.x + m_xf.position.x);
_local3.y = (_local3.y + m_xf.position.y);
return (new b2Vec2((m_linearVelocity.x + (m_angularVelocity * (_local3.y - m_sweep.c.y))), (m_linearVelocity.x - (m_angularVelocity * (_local3.x - m_sweep.c.x)))));
}
public function GetAngularVelocity():Number{
return (m_angularVelocity);
}
public function SetAngularVelocity(_arg1:Number):void{
m_angularVelocity = _arg1;
}
public function SetMass(_arg1:b2MassData):void{
var _local2:b2Shape;
var _local3:b2Mat22;
var _local4:b2Vec2;
var _local5:int;
if (m_world.m_lock == true){
return;
};
m_invMass = 0;
m_I = 0;
m_invI = 0;
m_mass = _arg1.mass;
if (m_mass > 0){
m_invMass = (1 / m_mass);
};
if ((m_flags & b2Body.e_fixedRotationFlag) == 0){
m_I = _arg1.I;
};
if (m_I > 0){
m_invI = (1 / m_I);
};
m_sweep.localCenter.SetV(_arg1.center);
_local3 = m_xf.R;
_local4 = m_sweep.localCenter;
m_sweep.c.x = ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y));
m_sweep.c.y = ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y));
m_sweep.c.x = (m_sweep.c.x + m_xf.position.x);
m_sweep.c.y = (m_sweep.c.y + m_xf.position.y);
m_sweep.c0.SetV(m_sweep.c);
_local2 = m_shapeList;
while (_local2) {
_local2.UpdateSweepRadius(m_sweep.localCenter);
_local2 = _local2.m_next;
};
_local5 = m_type;
if ((((m_invMass == 0)) && ((m_invI == 0)))){
m_type = e_staticType;
} else {
m_type = e_dynamicType;
};
if (_local5 != m_type){
_local2 = m_shapeList;
while (_local2) {
_local2.RefilterProxy(m_world.m_broadPhase, m_xf);
_local2 = _local2.m_next;
};
};
}
public function IsStatic():Boolean{
return ((m_type == e_staticType));
}
public function GetWorldVector(_arg1:b2Vec2):b2Vec2{
return (b2Math.b2MulMV(m_xf.R, _arg1));
}
public function GetShapeList():b2Shape{
return (m_shapeList);
}
public function Advance(_arg1:Number):void{
m_sweep.Advance(_arg1);
m_sweep.c.SetV(m_sweep.c0);
m_sweep.a = m_sweep.a0;
SynchronizeTransform();
}
public function SetBullet(_arg1:Boolean):void{
if (_arg1){
m_flags = (m_flags | e_bulletFlag);
} else {
m_flags = (m_flags & ~(e_bulletFlag));
};
}
public function CreateShape(_arg1:b2ShapeDef):b2Shape{
var _local2:b2Shape;
if (m_world.m_lock == true){
return (null);
};
_local2 = b2Shape.Create(_arg1, m_world.m_blockAllocator);
_local2.m_next = m_shapeList;
m_shapeList = _local2;
m_shapeCount++;
_local2.m_body = this;
_local2.CreateProxy(m_world.m_broadPhase, m_xf);
_local2.UpdateSweepRadius(m_sweep.localCenter);
return (_local2);
}
public function IsConnected(_arg1:b2Body):Boolean{
var _local2:b2JointEdge;
_local2 = m_jointList;
while (_local2) {
if (_local2.other == _arg1){
return ((_local2.joint.m_collideConnected == false));
};
_local2 = _local2.next;
};
return (false);
}
public function DestroyShape(_arg1:b2Shape):void{
var _local2:b2Shape;
var _local3:Boolean;
if (m_world.m_lock == true){
return;
};
_arg1.DestroyProxy(m_world.m_broadPhase);
_local2 = m_shapeList;
_local3 = false;
while (_local2 != null) {
if (_local2 == _arg1){
_local2 = _arg1.m_next;
_local3 = true;
break;
};
_local2 = _local2.m_next;
};
_arg1.m_body = null;
_arg1.m_next = null;
m_shapeCount--;
b2Shape.Destroy(_arg1, m_world.m_blockAllocator);
}
public function GetUserData(){
return (m_userData);
}
public function IsBullet():Boolean{
return (((m_flags & e_bulletFlag) == e_bulletFlag));
}
public function GetWorldCenter():b2Vec2{
return (m_sweep.c);
}
public function AllowSleeping(_arg1:Boolean):void{
if (_arg1){
m_flags = (m_flags | e_allowSleepFlag);
} else {
m_flags = (m_flags & ~(e_allowSleepFlag));
WakeUp();
};
}
public function SetUserData(_arg1):void{
m_userData = _arg1;
}
public function GetLocalVector(_arg1:b2Vec2):b2Vec2{
return (b2Math.b2MulTMV(m_xf.R, _arg1));
}
public function GetWorldPoint(_arg1:b2Vec2):b2Vec2{
var _local2:b2Mat22;
var _local3:b2Vec2;
_local2 = m_xf.R;
_local3 = new b2Vec2(((_local2.col1.x * _arg1.x) + (_local2.col2.x * _arg1.y)), ((_local2.col1.y * _arg1.x) + (_local2.col2.y * _arg1.y)));
_local3.x = (_local3.x + m_xf.position.x);
_local3.y = (_local3.y + m_xf.position.y);
return (_local3);
}
public function GetWorld():b2World{
return (m_world);
}
public function GetPosition():b2Vec2{
return (m_xf.position);
}
}
}//package Box2D.Dynamics
Section 77
//b2BodyDef (Box2D.Dynamics.b2BodyDef)
package Box2D.Dynamics {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
public class b2BodyDef {
public var isBullet:Boolean;
public var allowSleep:Boolean;
public var angle:Number;
public var userData;
public var angularDamping:Number;
public var fixedRotation:Boolean;
public var linearDamping:Number;
public var affectedByGravity:Boolean;
public var position:b2Vec2;
public var isSleeping:Boolean;
public var massData:b2MassData;
public function b2BodyDef(){
massData = new b2MassData();
position = new b2Vec2();
super();
massData.center.SetZero();
massData.mass = 0;
massData.I = 0;
userData = null;
position.Set(0, 0);
angle = 0;
linearDamping = 0;
angularDamping = 0;
allowSleep = true;
isSleeping = false;
fixedRotation = false;
isBullet = false;
affectedByGravity = true;
}
}
}//package Box2D.Dynamics
Section 78
//b2BoundaryListener (Box2D.Dynamics.b2BoundaryListener)
package Box2D.Dynamics {
public class b2BoundaryListener {
public function Violation(_arg1:b2Body):void{
}
}
}//package Box2D.Dynamics
Section 79
//b2ContactFilter (Box2D.Dynamics.b2ContactFilter)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
public class b2ContactFilter {
public static var b2_defaultFilter:b2ContactFilter = new (b2ContactFilter);
;
public function ShouldCollide(_arg1:b2Shape, _arg2:b2Shape):Boolean{
var _local3:b2FilterData;
var _local4:b2FilterData;
var _local5:Boolean;
_local3 = _arg1.GetFilterData();
_local4 = _arg2.GetFilterData();
if ((((_local3.groupIndex == _local4.groupIndex)) && (!((_local3.groupIndex == 0))))){
return ((_local3.groupIndex > 0));
};
_local5 = ((!(((_local3.maskBits & _local4.categoryBits) == 0))) && (!(((_local3.categoryBits & _local4.maskBits) == 0))));
return (_local5);
}
}
}//package Box2D.Dynamics
Section 80
//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 Remove(_arg1:b2ContactPoint):void{
}
public function Persist(_arg1:b2ContactPoint):void{
}
public function Result(_arg1:b2ContactResult):void{
}
}
}//package Box2D.Dynamics
Section 81
//b2ContactManager (Box2D.Dynamics.b2ContactManager)
package Box2D.Dynamics {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
import Box2D.Dynamics.Contacts.*;
public class b2ContactManager extends b2PairCallback {
public var m_world:b2World;
public var m_destroyImmediate:Boolean;
public var m_nullContact:b2NullContact;
private static const s_evalCP:b2ContactPoint = new b2ContactPoint();
public function b2ContactManager(){
m_nullContact = new b2NullContact();
super();
m_world = null;
m_destroyImmediate = false;
}
override public function PairAdded(_arg1, _arg2){
var _local3:b2Shape;
var _local4:b2Shape;
var _local5:b2Body;
var _local6:b2Body;
var _local7:b2Contact;
_local3 = (_arg1 as b2Shape);
_local4 = (_arg2 as b2Shape);
_local5 = _local3.m_body;
_local6 = _local4.m_body;
if (((_local5.IsStatic()) && (_local6.IsStatic()))){
return (m_nullContact);
};
if (_local3.m_body == _local4.m_body){
return (m_nullContact);
};
if (_local6.IsConnected(_local5)){
return (m_nullContact);
};
if (((!((m_world.m_contactFilter == null))) && ((m_world.m_contactFilter.ShouldCollide(_local3, _local4) == false)))){
return (m_nullContact);
};
_local7 = b2Contact.Create(_local3, _local4, m_world.m_blockAllocator);
if (_local7 == null){
return (m_nullContact);
};
_local3 = _local7.m_shape1;
_local4 = _local7.m_shape2;
_local5 = _local3.m_body;
_local6 = _local4.m_body;
_local7.m_prev = null;
_local7.m_next = m_world.m_contactList;
if (m_world.m_contactList != null){
m_world.m_contactList.m_prev = _local7;
};
m_world.m_contactList = _local7;
_local7.m_node1.contact = _local7;
_local7.m_node1.other = _local6;
_local7.m_node1.prev = null;
_local7.m_node1.next = _local5.m_contactList;
if (_local5.m_contactList != null){
_local5.m_contactList.prev = _local7.m_node1;
};
_local5.m_contactList = _local7.m_node1;
_local7.m_node2.contact = _local7;
_local7.m_node2.other = _local5;
_local7.m_node2.prev = null;
_local7.m_node2.next = _local6.m_contactList;
if (_local6.m_contactList != null){
_local6.m_contactList.prev = _local7.m_node2;
};
_local6.m_contactList = _local7.m_node2;
m_world.m_contactCount++;
return (_local7);
}
override public function PairRemoved(_arg1, _arg2, _arg3):void{
var _local4:b2Contact;
if (_arg3 == null){
return;
};
_local4 = (_arg3 as b2Contact);
if (_local4 == m_nullContact){
return;
};
Destroy(_local4);
}
public function Destroy(_arg1:b2Contact):void{
var _local2:b2Shape;
var _local3:b2Shape;
var _local4:int;
var _local5:b2Body;
var _local6:b2Body;
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;
_local2 = _arg1.m_shape1;
_local3 = _arg1.m_shape2;
_local4 = _arg1.m_manifoldCount;
if ((((_local4 > 0)) && (m_world.m_contactListener))){
_local7 = _local2.m_body;
_local8 = _local3.m_body;
_local9 = _arg1.GetManifolds();
_local10 = s_evalCP;
_local10.shape1 = _arg1.m_shape1;
_local10.shape2 = _arg1.m_shape2;
_local10.friction = _arg1.m_friction;
_local10.restitution = _arg1.m_restitution;
_local11 = 0;
while (_local11 < _local4) {
_local12 = _local9[_local11];
_local10.normal.SetV(_local12.normal);
_local13 = 0;
while (_local13 < _local12.pointCount) {
_local14 = _local12.points[_local13];
_local10.position = _local7.GetWorldPoint(_local14.localPoint1);
_local15 = _local7.GetLinearVelocityFromLocalPoint(_local14.localPoint1);
_local16 = _local8.GetLinearVelocityFromLocalPoint(_local14.localPoint2);
_local10.velocity.Set((_local16.x - _local15.x), (_local16.y - _local15.y));
_local10.separation = _local14.separation;
_local10.id.key = _local14.id._key;
m_world.m_contactListener.Remove(_local10);
_local13++;
};
_local11++;
};
};
if (_arg1.m_prev){
_arg1.m_prev.m_next = _arg1.m_next;
};
if (_arg1.m_next){
_arg1.m_next.m_prev = _arg1.m_prev;
};
if (_arg1 == m_world.m_contactList){
m_world.m_contactList = _arg1.m_next;
};
_local5 = _local2.m_body;
_local6 = _local3.m_body;
if (_arg1.m_node1.prev){
_arg1.m_node1.prev.next = _arg1.m_node1.next;
};
if (_arg1.m_node1.next){
_arg1.m_node1.next.prev = _arg1.m_node1.prev;
};
if (_arg1.m_node1 == _local5.m_contactList){
_local5.m_contactList = _arg1.m_node1.next;
};
if (_arg1.m_node2.prev){
_arg1.m_node2.prev.next = _arg1.m_node2.next;
};
if (_arg1.m_node2.next){
_arg1.m_node2.next.prev = _arg1.m_node2.prev;
};
if (_arg1.m_node2 == _local6.m_contactList){
_local6.m_contactList = _arg1.m_node2.next;
};
b2Contact.Destroy(_arg1, m_world.m_blockAllocator);
m_world.m_contactCount--;
}
public function Collide():void{
var _local1:b2Contact;
var _local2:b2Body;
var _local3:b2Body;
_local1 = m_world.m_contactList;
while (_local1) {
_local2 = _local1.m_shape1.m_body;
_local3 = _local1.m_shape2.m_body;
if (((_local2.IsSleeping()) && (_local3.IsSleeping()))){
} else {
_local1.Update(m_world.m_contactListener);
};
_local1 = _local1.m_next;
};
}
}
}//package Box2D.Dynamics
Section 82
//b2DebugDraw (Box2D.Dynamics.b2DebugDraw)
package Box2D.Dynamics {
import flash.display.*;
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
public class b2DebugDraw {
public var m_xformScale:Number;// = 1
public var m_fillAlpha:Number;// = 1
public var m_alpha:Number;// = 1
public var m_drawFlags:uint;
public var m_lineThickness:Number;// = 1
public var m_sprite:Sprite;
public var m_drawScale:Number;// = 1
public static var e_coreShapeBit:uint = 4;
public static var e_shapeBit:uint = 1;
public static var e_centerOfMassBit:uint = 64;
public static var e_aabbBit:uint = 8;
public static var e_obbBit:uint = 16;
public static var e_pairBit:uint = 32;
public static var e_jointBit:uint = 2;
public function b2DebugDraw(){
m_drawScale = 1;
m_lineThickness = 1;
m_alpha = 1;
m_fillAlpha = 1;
m_xformScale = 1;
super();
m_drawFlags = 0;
}
public function DrawPolyline(_arg1:Array, _arg2:int, _arg3:b2Color):void{
var _local4:int;
m_sprite.graphics.lineStyle(m_lineThickness, _arg3.color, m_alpha);
m_sprite.graphics.moveTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
_local4 = 1;
while (_local4 < _arg2) {
m_sprite.graphics.lineTo((_arg1[_local4].x * m_drawScale), (_arg1[_local4].y * m_drawScale));
_local4++;
};
}
public function DrawSolidConcaveArc(_arg1:Array, _arg2:int, _arg3:b2Vec2, _arg4:b2Color):void{
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:int;
m_sprite.graphics.lineStyle(m_lineThickness, _arg4.color, m_alpha);
m_sprite.graphics.moveTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
m_sprite.graphics.beginFill(_arg4.color, m_fillAlpha);
_local5 = 16;
_local6 = (_arg1[0].x - _arg3.x);
_local7 = (_arg1[0].y - _arg3.y);
_local8 = Math.atan2(_local7, _local6);
_local9 = Math.atan2((_arg1[1].y - _arg3.y), (_arg1[1].x - _arg3.x));
_local10 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7)));
while (_local9 > _local8) {
_local9 = (_local9 - (Math.PI * 2));
};
_local11 = ((_local8 - _local9) / _local5);
_local12 = _local8;
while (_local12 > _local9) {
m_sprite.graphics.lineTo(((_arg3.x + (_local10 * Math.cos(_local12))) * m_drawScale), ((_arg3.y + (_local10 * Math.sin(_local12))) * m_drawScale));
_local12 = (_local12 - _local11);
};
_local13 = 1;
while (_local13 < _arg2) {
m_sprite.graphics.lineTo((_arg1[_local13].x * m_drawScale), (_arg1[_local13].y * m_drawScale));
_local13++;
};
m_sprite.graphics.lineTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
m_sprite.graphics.endFill();
}
public function DrawConcaveArc(_arg1:Array, _arg2:int, _arg3:b2Vec2, _arg4:b2Color):void{
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:int;
m_sprite.graphics.lineStyle(m_lineThickness, _arg4.color, m_alpha);
m_sprite.graphics.moveTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
_local5 = 16;
_local6 = (_arg1[0].x - _arg3.x);
_local7 = (_arg1[0].y - _arg3.y);
_local8 = Math.atan2(_local7, _local6);
_local9 = Math.atan2((_arg1[1].y - _arg3.y), (_arg1[1].x - _arg3.x));
_local10 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7)));
while (_local9 > _local8) {
_local9 = (_local9 - (Math.PI * 2));
};
_local11 = ((_local8 - _local9) / _local5);
_local12 = _local8;
while (_local12 > _local9) {
m_sprite.graphics.lineTo(((_arg3.x + (_local10 * Math.cos(_local12))) * m_drawScale), ((_arg3.y + (_local10 * Math.sin(_local12))) * m_drawScale));
_local12 = (_local12 - _local11);
};
_local13 = 1;
while (_local13 < _arg2) {
m_sprite.graphics.lineTo((_arg1[_local13].x * m_drawScale), (_arg1[_local13].y * m_drawScale));
_local13++;
};
m_sprite.graphics.lineTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
}
public function DrawSolidPolygon(_arg1:Array, _arg2:int, _arg3:b2Color):void{
var _local4:int;
m_sprite.graphics.lineStyle(m_lineThickness, _arg3.color, m_alpha);
m_sprite.graphics.moveTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
m_sprite.graphics.beginFill(_arg3.color, m_fillAlpha);
_local4 = 1;
while (_local4 < _arg2) {
m_sprite.graphics.lineTo((_arg1[_local4].x * m_drawScale), (_arg1[_local4].y * m_drawScale));
_local4++;
};
m_sprite.graphics.lineTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
m_sprite.graphics.endFill();
}
public function DrawCircle(_arg1:b2Vec2, _arg2:Number, _arg3:b2Color):void{
m_sprite.graphics.lineStyle(m_lineThickness, _arg3.color, m_alpha);
m_sprite.graphics.drawCircle((_arg1.x * m_drawScale), (_arg1.y * m_drawScale), (_arg2 * m_drawScale));
}
public function DrawXForm(_arg1:b2XForm):void{
m_sprite.graphics.lineStyle(m_lineThickness, 0xFF0000, m_alpha);
m_sprite.graphics.moveTo((_arg1.position.x * m_drawScale), (_arg1.position.y * m_drawScale));
m_sprite.graphics.lineTo(((_arg1.position.x + (m_xformScale * _arg1.R.col1.x)) * m_drawScale), ((_arg1.position.y + (m_xformScale * _arg1.R.col1.y)) * m_drawScale));
m_sprite.graphics.lineStyle(m_lineThickness, 0xFF00, m_alpha);
m_sprite.graphics.moveTo((_arg1.position.x * m_drawScale), (_arg1.position.y * m_drawScale));
m_sprite.graphics.lineTo(((_arg1.position.x + (m_xformScale * _arg1.R.col2.x)) * m_drawScale), ((_arg1.position.y + (m_xformScale * _arg1.R.col2.y)) * m_drawScale));
}
public function ClearFlags(_arg1:uint):void{
m_drawFlags = (m_drawFlags & ~(_arg1));
}
public function DrawSolidCircle(_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:b2Color):void{
m_sprite.graphics.lineStyle(m_lineThickness, _arg4.color, m_alpha);
m_sprite.graphics.moveTo(0, 0);
m_sprite.graphics.beginFill(_arg4.color, m_fillAlpha);
m_sprite.graphics.drawCircle((_arg1.x * m_drawScale), (_arg1.y * m_drawScale), (_arg2 * m_drawScale));
m_sprite.graphics.endFill();
m_sprite.graphics.moveTo((_arg1.x * m_drawScale), (_arg1.y * m_drawScale));
m_sprite.graphics.lineTo(((_arg1.x + (_arg3.x * _arg2)) * m_drawScale), ((_arg1.y + (_arg3.y * _arg2)) * m_drawScale));
}
public function SetFlags(_arg1:uint):void{
m_drawFlags = _arg1;
}
public function DrawCurve(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Vec2, _arg4:b2Color):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
_local5 = 16;
_local6 = (_arg1.x - _arg3.x);
_local7 = (_arg1.y - _arg3.y);
_local8 = Math.atan2(_local7, _local6);
_local9 = Math.atan2((_arg2.y - _arg3.y), (_arg2.x - _arg3.x));
_local10 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7)));
while (_local9 < _local8) {
_local9 = (_local9 + (Math.PI * 2));
};
_local11 = ((_local9 - _local8) / _local5);
m_sprite.graphics.lineStyle(m_lineThickness, _arg4.color, m_alpha);
m_sprite.graphics.moveTo((_arg1.x * m_drawScale), (_arg1.y * m_drawScale));
_local12 = _local8;
while (_local12 <= _local9) {
m_sprite.graphics.lineTo(((_arg3.x + (_local10 * Math.cos(_local12))) * m_drawScale), ((_arg3.y + (_local10 * Math.sin(_local12))) * m_drawScale));
_local12 = (_local12 + _local11);
};
}
public function AppendFlags(_arg1:uint):void{
m_drawFlags = (m_drawFlags | _arg1);
}
public function DrawSegment(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Color):void{
m_sprite.graphics.lineStyle(m_lineThickness, _arg3.color, m_alpha);
m_sprite.graphics.moveTo((_arg1.x * m_drawScale), (_arg1.y * m_drawScale));
m_sprite.graphics.lineTo((_arg2.x * m_drawScale), (_arg2.y * m_drawScale));
}
public function GetFlags():uint{
return (m_drawFlags);
}
public function DrawPolygon(_arg1:Array, _arg2:int, _arg3:b2Color):void{
var _local4:int;
m_sprite.graphics.lineStyle(m_lineThickness, _arg3.color, m_alpha);
m_sprite.graphics.moveTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
_local4 = 1;
while (_local4 < _arg2) {
m_sprite.graphics.lineTo((_arg1[_local4].x * m_drawScale), (_arg1[_local4].y * m_drawScale));
_local4++;
};
m_sprite.graphics.lineTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale));
}
}
}//package Box2D.Dynamics
Section 83
//b2DestructionListener (Box2D.Dynamics.b2DestructionListener)
package Box2D.Dynamics {
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
public class b2DestructionListener {
public function SayGoodbyeJoint(_arg1:b2Joint):void{
}
public function SayGoodbyeShape(_arg1:b2Shape):void{
}
}
}//package Box2D.Dynamics
Section 84
//b2Island (Box2D.Dynamics.b2Island)
package Box2D.Dynamics {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
public class b2Island {
public var m_joints:Array;
public var m_listener:b2ContactListener;
public var m_positionIterationCount:int;
public var m_bodyCapacity:int;
public var m_bodies:Array;
public var m_jointCapacity:int;
public var m_contactCount:int;
public var m_contacts:Array;
public var m_contactCapacity:int;
public var m_jointCount:int;
public var m_allocator;
public var m_bodyCount:int;
private static var s_reportCR:b2ContactResult = new b2ContactResult();
public function b2Island(_arg1:int, _arg2:int, _arg3:int, _arg4, _arg5:b2ContactListener){
var _local6:int;
super();
m_bodyCapacity = _arg1;
m_contactCapacity = _arg2;
m_jointCapacity = _arg3;
m_bodyCount = 0;
m_contactCount = 0;
m_jointCount = 0;
m_allocator = _arg4;
m_listener = _arg5;
m_bodies = new Array(_arg1);
_local6 = 0;
while (_local6 < _arg1) {
m_bodies[_local6] = null;
_local6++;
};
m_contacts = new Array(_arg2);
_local6 = 0;
while (_local6 < _arg2) {
m_contacts[_local6] = null;
_local6++;
};
m_joints = new Array(_arg3);
_local6 = 0;
while (_local6 < _arg3) {
m_joints[_local6] = null;
_local6++;
};
m_positionIterationCount = 0;
}
public function AddBody(_arg1:b2Body):void{
var _local2 = m_bodyCount++;
m_bodies[_local2] = _arg1;
}
public function AddJoint(_arg1:b2Joint):void{
var _local2 = m_jointCount++;
m_joints[_local2] = _arg1;
}
public function Report(_arg1:Array):void{
var _local2:b2Mat22;
var _local3:b2Vec2;
var _local4:int;
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 (m_listener == null){
return;
};
_local4 = 0;
while (_local4 < m_contactCount) {
_local5 = m_contacts[_local4];
_local6 = _arg1[_local4];
_local7 = s_reportCR;
_local7.shape1 = _local5.m_shape1;
_local7.shape2 = _local5.m_shape2;
_local8 = _local7.shape1.m_body;
_local9 = _local5.m_manifoldCount;
_local10 = _local5.GetManifolds();
_local11 = 0;
while (_local11 < _local9) {
_local12 = _local10[_local11];
_local7.normal.SetV(_local12.normal);
_local13 = 0;
while (_local13 < _local12.pointCount) {
_local14 = _local12.points[_local13];
_local15 = _local6.points[_local13];
_local7.position = _local8.GetWorldPoint(_local14.localPoint1);
_local7.normalImpulse = _local15.normalImpulse;
_local7.tangentImpulse = _local15.tangentImpulse;
_local7.id.key = _local14.id.key;
m_listener.Result(_local7);
_local13++;
};
_local11++;
};
_local4++;
};
}
public function Solve(_arg1:b2TimeStep, _arg2:b2Vec2, _arg3:Boolean, _arg4:Boolean):void{
var _local5:int;
var _local6:b2Body;
var _local7:b2Joint;
var _local8:b2ContactSolver;
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 < m_bodyCount) {
_local6 = m_bodies[_local5];
if (_local6.IsStatic()){
} else {
if ((_local6.m_flags & b2Body.e_affByGravityFlag)){
_local6.m_linearVelocity.x = (_local6.m_linearVelocity.x + (_arg1.dt * (_arg2.x + (_local6.m_invMass * _local6.m_force.x))));
_local6.m_linearVelocity.y = (_local6.m_linearVelocity.y + (_arg1.dt * (_arg2.y + (_local6.m_invMass * _local6.m_force.y))));
} else {
_local6.m_linearVelocity.x = (_local6.m_linearVelocity.x + (_arg1.dt * (_local6.m_invMass * _local6.m_force.x)));
_local6.m_linearVelocity.y = (_local6.m_linearVelocity.y + (_arg1.dt * (_local6.m_invMass * _local6.m_force.y)));
};
_local6.m_angularVelocity = (_local6.m_angularVelocity + ((_arg1.dt * _local6.m_invI) * _local6.m_torque));
_local6.m_force.SetZero();
_local6.m_torque = 0;
_local6.m_linearVelocity.Multiply(b2Math.b2Clamp((1 - (_arg1.dt * _local6.m_linearDamping)), 0, 1));
_local6.m_angularVelocity = (_local6.m_angularVelocity * b2Math.b2Clamp((1 - (_arg1.dt * _local6.m_angularDamping)), 0, 1));
if (_local6.m_linearVelocity.LengthSquared() > b2Settings.b2_maxLinearVelocitySquared){
_local6.m_linearVelocity.Normalize();
_local6.m_linearVelocity.x = (_local6.m_linearVelocity.x * b2Settings.b2_maxLinearVelocity);
_local6.m_linearVelocity.y = (_local6.m_linearVelocity.y * b2Settings.b2_maxLinearVelocity);
};
if ((_local6.m_angularVelocity * _local6.m_angularVelocity) > b2Settings.b2_maxAngularVelocitySquared){
if (_local6.m_angularVelocity < 0){
_local6.m_angularVelocity = -(b2Settings.b2_maxAngularVelocity);
} else {
_local6.m_angularVelocity = b2Settings.b2_maxAngularVelocity;
};
};
};
_local5++;
};
_local8 = new b2ContactSolver(_arg1, m_contacts, m_contactCount, m_allocator);
_local8.InitVelocityConstraints(_arg1);
_local5 = 0;
while (_local5 < m_jointCount) {
_local7 = m_joints[_local5];
_local7.InitVelocityConstraints(_arg1);
_local5++;
};
_local5 = 0;
while (_local5 < _arg1.maxIterations) {
_local8.SolveVelocityConstraints();
_local9 = 0;
while (_local9 < m_jointCount) {
_local7 = m_joints[_local9];
_local7.SolveVelocityConstraints(_arg1);
_local9++;
};
_local5++;
};
_local8.FinalizeVelocityConstraints();
_local5 = 0;
while (_local5 < m_bodyCount) {
_local6 = m_bodies[_local5];
if (_local6.IsStatic()){
} else {
_local6.m_sweep.c0.SetV(_local6.m_sweep.c);
_local6.m_sweep.a0 = _local6.m_sweep.a;
_local6.m_sweep.c.x = (_local6.m_sweep.c.x + (_arg1.dt * _local6.m_linearVelocity.x));
_local6.m_sweep.c.y = (_local6.m_sweep.c.y + (_arg1.dt * _local6.m_linearVelocity.y));
_local6.m_sweep.a = (_local6.m_sweep.a + (_arg1.dt * _local6.m_angularVelocity));
_local6.SynchronizeTransform();
};
_local5++;
};
if (_arg3){
_local5 = 0;
while (_local5 < m_jointCount) {
_local7 = m_joints[_local5];
_local7.InitPositionConstraints();
_local5++;
};
m_positionIterationCount = 0;
while (m_positionIterationCount < _arg1.maxIterations) {
_local10 = _local8.SolvePositionConstraints(b2Settings.b2_contactBaumgarte);
_local11 = true;
_local5 = 0;
while (_local5 < m_jointCount) {
_local7 = m_joints[_local5];
_local12 = _local7.SolvePositionConstraints();
_local11 = ((_local11) && (_local12));
_local5++;
};
if (((_local10) && (_local11))){
break;
};
m_positionIterationCount++;
};
};
Report(_local8.m_constraints);
if (_arg4){
_local13 = Number.MAX_VALUE;
_local14 = (b2Settings.b2_linearSleepTolerance * b2Settings.b2_linearSleepTolerance);
_local15 = (b2Settings.b2_angularSleepTolerance * b2Settings.b2_angularSleepTolerance);
_local5 = 0;
while (_local5 < m_bodyCount) {
_local6 = m_bodies[_local5];
if (_local6.m_invMass == 0){
} else {
if ((_local6.m_flags & b2Body.e_allowSleepFlag) == 0){
_local6.m_sleepTime = 0;
_local13 = 0;
};
if (((((((_local6.m_flags & b2Body.e_allowSleepFlag) == 0)) || (((_local6.m_angularVelocity * _local6.m_angularVelocity) > _local15)))) || ((b2Math.b2Dot(_local6.m_linearVelocity, _local6.m_linearVelocity) > _local14)))){
_local6.m_sleepTime = 0;
_local13 = 0;
} else {
_local6.m_sleepTime = (_local6.m_sleepTime + _arg1.dt);
_local13 = b2Math.b2Min(_local13, _local6.m_sleepTime);
};
};
_local5++;
};
if (_local13 >= b2Settings.b2_timeToSleep){
_local5 = 0;
while (_local5 < m_bodyCount) {
_local6 = m_bodies[_local5];
m_bodies[_local5].m_flags = (_local6.m_flags | b2Body.e_sleepFlag);
_local6.m_linearVelocity.SetZero();
_local6.m_angularVelocity = 0;
_local5++;
};
};
};
}
public function AddContact(_arg1:b2Contact):void{
var _local2 = m_contactCount++;
m_contacts[_local2] = _arg1;
}
public function Clear():void{
m_bodyCount = 0;
m_contactCount = 0;
m_jointCount = 0;
}
public function SolveTOI(_arg1:b2TimeStep):void{
var _local2:int;
var _local3:b2ContactSolver;
var _local4:Number;
var _local5:b2Body;
var _local6:Boolean;
_local3 = new b2ContactSolver(_arg1, m_contacts, m_contactCount, m_allocator);
_local2 = 0;
while (_local2 < _arg1.maxIterations) {
_local3.SolveVelocityConstraints();
_local2++;
};
_local2 = 0;
while (_local2 < m_bodyCount) {
_local5 = m_bodies[_local2];
if (_local5.IsStatic()){
} else {
_local5.m_sweep.c0.SetV(_local5.m_sweep.c);
_local5.m_sweep.a0 = _local5.m_sweep.a;
_local5.m_sweep.c.x = (_local5.m_sweep.c.x + (_arg1.dt * _local5.m_linearVelocity.x));
_local5.m_sweep.c.y = (_local5.m_sweep.c.y + (_arg1.dt * _local5.m_linearVelocity.y));
_local5.m_sweep.a = (_local5.m_sweep.a + (_arg1.dt * _local5.m_angularVelocity));
_local5.SynchronizeTransform();
};
_local2++;
};
_local4 = 0.75;
_local2 = 0;
while (_local2 < _arg1.maxIterations) {
_local6 = _local3.SolvePositionConstraints(_local4);
if (_local6){
break;
};
_local2++;
};
Report(_local3.m_constraints);
}
}
}//package Box2D.Dynamics
Section 85
//b2TimeStep (Box2D.Dynamics.b2TimeStep)
package Box2D.Dynamics {
public class b2TimeStep {
public var warmStarting:Boolean;
public var positionCorrection:Boolean;
public var dt:Number;
public var maxIterations:int;
public var dtRatio:Number;
public var inv_dt:Number;
}
}//package Box2D.Dynamics
Section 86
//b2World (Box2D.Dynamics.b2World)
package Box2D.Dynamics {
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
public class b2World {
public var m_inv_dt0:Number;
public var m_boundaryListener:b2BoundaryListener;
public var m_contactList:b2Contact;
public var m_blockAllocator;
public var m_contactListener:b2ContactListener;
public var m_allowSleep:Boolean;
public var m_broadPhase:b2BroadPhase;
public var m_destructionListener:b2DestructionListener;
public var m_jointCount:int;
public var m_bodyCount:int;
public var m_lock:Boolean;
public var m_positionIterationCount:int;
public var m_groundBody:b2Body;
public var m_contactCount:int;
public var m_debugDraw:b2DebugDraw;
public var m_contactFilter:b2ContactFilter;
public var m_bodyList:b2Body;
public var m_stackAllocator;
public var m_jointList:b2Joint;
public var m_gravity:b2Vec2;
public var m_contactManager:b2ContactManager;
private static var s_jointColor:b2Color = new b2Color(0.5, 0.8, 0.8);
public static var m_continuousPhysics:Boolean;
public static var m_warmStarting:Boolean;
private static var s_coreColor:b2Color = new b2Color(0.9, 0.6, 0.6);
public static var m_positionCorrection:Boolean;
private static var s_xf:b2XForm = new b2XForm();
public function b2World(_arg1:b2AABB, _arg2:b2Vec2, _arg3:Boolean){
var _local4:b2BodyDef;
m_contactManager = new b2ContactManager();
super();
m_destructionListener = null;
m_boundaryListener = null;
m_contactFilter = b2ContactFilter.b2_defaultFilter;
m_contactListener = null;
m_debugDraw = null;
m_bodyList = null;
m_contactList = null;
m_jointList = null;
m_bodyCount = 0;
m_contactCount = 0;
m_jointCount = 0;
m_positionCorrection = true;
m_warmStarting = true;
m_continuousPhysics = true;
m_allowSleep = _arg3;
m_gravity = _arg2;
m_lock = false;
m_inv_dt0 = 0;
m_contactManager.m_world = this;
m_broadPhase = new b2BroadPhase(_arg1, m_contactManager);
_local4 = new b2BodyDef();
m_groundBody = CreateBody(_local4);
b2Distance.InitializeRegisters();
}
public function DrawJoint(_arg1:b2Joint):void{
var _local2:b2Body;
var _local3:b2Body;
var _local4:b2XForm;
var _local5:b2XForm;
var _local6:b2Vec2;
var _local7:b2Vec2;
var _local8:b2Vec2;
var _local9:b2Vec2;
var _local10:b2Color;
var _local11:b2PulleyJoint;
var _local12:b2Vec2;
var _local13:b2Vec2;
_local2 = _arg1.m_body1;
_local3 = _arg1.m_body2;
_local4 = _local2.m_xf;
_local5 = _local3.m_xf;
_local6 = _local4.position;
_local7 = _local5.position;
_local8 = _arg1.GetAnchor1();
_local9 = _arg1.GetAnchor2();
_local10 = s_jointColor;
switch (_arg1.m_type){
case b2Joint.e_distanceJoint:
m_debugDraw.DrawSegment(_local8, _local9, _local10);
break;
case b2Joint.e_pulleyJoint:
_local11 = (_arg1 as b2PulleyJoint);
_local12 = _local11.GetGroundAnchor1();
_local13 = _local11.GetGroundAnchor2();
m_debugDraw.DrawSegment(_local12, _local8, _local10);
m_debugDraw.DrawSegment(_local13, _local9, _local10);
m_debugDraw.DrawSegment(_local12, _local13, _local10);
break;
case b2Joint.e_mouseJoint:
m_debugDraw.DrawSegment(_local8, _local9, _local10);
break;
default:
if (_local2 != m_groundBody){
m_debugDraw.DrawSegment(_local6, _local8, _local10);
};
m_debugDraw.DrawSegment(_local8, _local9, _local10);
if (_local3 != m_groundBody){
m_debugDraw.DrawSegment(_local7, _local9, _local10);
};
};
}
public function Refilter(_arg1:b2Shape):void{
_arg1.RefilterProxy(m_broadPhase, _arg1.m_body.m_xf);
}
public function SetDebugDraw(_arg1:b2DebugDraw):void{
m_debugDraw = _arg1;
}
public function SetContinuousPhysics(_arg1:Boolean):void{
m_continuousPhysics = _arg1;
}
public function GetProxyCount():int{
return (m_broadPhase.m_proxyCount);
}
public function DrawDebugData():void{
var _local1:uint;
var _local2:int;
var _local3:b2Body;
var _local4:b2Shape;
var _local5:b2Joint;
var _local6:b2BroadPhase;
var _local7:b2Vec2;
var _local8:b2Vec2;
var _local9:b2Vec2;
var _local10:b2Color;
var _local11:b2XForm;
var _local12:b2AABB;
var _local13:b2AABB;
var _local14:Array;
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 (m_debugDraw == null){
return;
};
m_debugDraw.m_sprite.graphics.clear();
_local1 = m_debugDraw.GetFlags();
_local7 = new b2Vec2();
_local8 = new b2Vec2();
_local9 = new b2Vec2();
_local10 = new b2Color(0, 0, 0);
_local12 = new b2AABB();
_local13 = new b2AABB();
_local14 = [new b2Vec2(), new b2Vec2(), new b2Vec2(), new b2Vec2()];
if ((_local1 & b2DebugDraw.e_shapeBit)){
_local15 = ((_local1 & b2DebugDraw.e_coreShapeBit) == b2DebugDraw.e_coreShapeBit);
_local3 = m_bodyList;
while (_local3) {
_local11 = _local3.m_xf;
_local4 = _local3.GetShapeList();
while (_local4) {
if (_local3.IsStatic()){
DrawShape(_local4, _local11, new b2Color(0.5, 0.9, 0.5), _local15);
} else {
if (_local3.IsSleeping()){
DrawShape(_local4, _local11, new b2Color(0.5, 0.5, 0.9), _local15);
} else {
DrawShape(_local4, _local11, new b2Color(0.9, 0.9, 0.9), _local15);
};
};
_local4 = _local4.m_next;
};
_local3 = _local3.m_next;
};
};
if ((_local1 & b2DebugDraw.e_jointBit)){
_local5 = m_jointList;
while (_local5) {
DrawJoint(_local5);
_local5 = _local5.m_next;
};
};
if ((_local1 & b2DebugDraw.e_pairBit)){
_local6 = m_broadPhase;
_local7.Set((1 / _local6.m_quantizationFactor.x), (1 / _local6.m_quantizationFactor.y));
_local10.Set(0.9, 0.9, 0.3);
_local2 = 0;
while (_local2 < b2Pair.b2_tableCapacity) {
_local16 = _local6.m_pairManager.m_hashTable[_local2];
while (_local16 != b2Pair.b2_nullPair) {
_local17 = _local6.m_pairManager.m_pairs[_local16];
_local18 = _local6.m_proxyPool[_local17.proxyId1];
_local19 = _local6.m_proxyPool[_local17.proxyId2];
_local12.lowerBound.x = (_local6.m_worldAABB.lowerBound.x + (_local7.x * _local6.m_bounds[0][_local18.lowerBounds[0]].value));
_local12.lowerBound.y = (_local6.m_worldAABB.lowerBound.y + (_local7.y * _local6.m_bounds[1][_local18.lowerBounds[1]].value));
_local12.upperBound.x = (_local6.m_worldAABB.lowerBound.x + (_local7.x * _local6.m_bounds[0][_local18.upperBounds[0]].value));
_local12.upperBound.y = (_local6.m_worldAABB.lowerBound.y + (_local7.y * _local6.m_bounds[1][_local18.upperBounds[1]].value));
_local13.lowerBound.x = (_local6.m_worldAABB.lowerBound.x + (_local7.x * _local6.m_bounds[0][_local19.lowerBounds[0]].value));
_local13.lowerBound.y = (_local6.m_worldAABB.lowerBound.y + (_local7.y * _local6.m_bounds[1][_local19.lowerBounds[1]].value));
_local13.upperBound.x = (_local6.m_worldAABB.lowerBound.x + (_local7.x * _local6.m_bounds[0][_local19.upperBounds[0]].value));
_local13.upperBound.y = (_local6.m_worldAABB.lowerBound.y + (_local7.y * _local6.m_bounds[1][_local19.upperBounds[1]].value));
_local8.x = (0.5 * (_local12.lowerBound.x + _local12.upperBound.x));
_local8.y = (0.5 * (_local12.lowerBound.y + _local12.upperBound.y));
_local9.x = (0.5 * (_local13.lowerBound.x + _local13.upperBound.x));
_local9.y = (0.5 * (_local13.lowerBound.y + _local13.upperBound.y));
m_debugDraw.DrawSegment(_local8, _local9, _local10);
_local16 = _local17.next;
};
_local2++;
};
};
if ((_local1 & b2DebugDraw.e_aabbBit)){
_local6 = m_broadPhase;
_local20 = _local6.m_worldAABB.lowerBound;
_local21 = _local6.m_worldAABB.upperBound;
_local7.Set((1 / _local6.m_quantizationFactor.x), (1 / _local6.m_quantizationFactor.y));
_local10.Set(0.9, 0.3, 0.9);
_local2 = 0;
while (_local2 < b2Settings.b2_maxProxies) {
_local22 = _local6.m_proxyPool[_local2];
if (_local22.IsValid() == false){
} else {
_local12.lowerBound.x = (_local20.x + (_local7.x * _local6.m_bounds[0][_local22.lowerBounds[0]].value));
_local12.lowerBound.y = (_local20.y + (_local7.y * _local6.m_bounds[1][_local22.lowerBounds[1]].value));
_local12.upperBound.x = (_local20.x + (_local7.x * _local6.m_bounds[0][_local22.upperBounds[0]].value));
_local12.upperBound.y = (_local20.y + (_local7.y * _local6.m_bounds[1][_local22.upperBounds[1]].value));
_local14[0].Set(_local12.lowerBound.x, _local12.lowerBound.y);
_local14[1].Set(_local12.upperBound.x, _local12.lowerBound.y);
_local14[2].Set(_local12.upperBound.x, _local12.upperBound.y);
_local14[3].Set(_local12.lowerBound.x, _local12.upperBound.y);
m_debugDraw.DrawPolygon(_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);
m_debugDraw.DrawPolygon(_local14, 4, new b2Color(0.3, 0.9, 0.9));
};
if ((_local1 & b2DebugDraw.e_obbBit)){
_local10.Set(0.5, 0.3, 0.5);
_local3 = m_bodyList;
while (_local3) {
_local11 = _local3.m_xf;
_local4 = _local3.GetShapeList();
while (_local4) {
if (_local4.m_type != b2Shape.e_polygonShape){
} else {
_local23 = (_local4 as b2PolygonShape);
_local24 = _local23.GetOBB();
_local25 = _local24.extents;
_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.col1.x * _local27.x) + (_local26.col2.x * _local27.y)));
_local14[_local2].y = (_local24.center.y + ((_local26.col1.y * _local27.x) + (_local26.col2.y * _local27.y)));
_local14[_local2].x = _local28;
_local26 = _local11.R;
_local28 = (_local11.position.x + ((_local26.col1.x * _local27.x) + (_local26.col2.x * _local27.y)));
_local14[_local2].y = (_local11.position.y + ((_local26.col1.y * _local27.x) + (_local26.col2.y * _local27.y)));
_local14[_local2].x = _local28;
_local2++;
};
m_debugDraw.DrawPolygon(_local14, 4, _local10);
};
_local4 = _local4.m_next;
};
_local3 = _local3.m_next;
};
};
if ((_local1 & b2DebugDraw.e_centerOfMassBit)){
_local3 = m_bodyList;
while (_local3) {
_local11 = s_xf;
_local11.R = _local3.m_xf.R;
_local11.position = _local3.GetWorldCenter();
m_debugDraw.DrawXForm(_local11);
_local3 = _local3.m_next;
};
};
}
public function DestroyBody(_arg1:b2Body):void{
var _local2:b2JointEdge;
var _local3:b2Shape;
var _local4:b2JointEdge;
var _local5:b2Shape;
if (m_lock == true){
return;
};
_local2 = _arg1.m_jointList;
while (_local2) {
_local4 = _local2;
_local2 = _local2.next;
if (m_destructionListener){
m_destructionListener.SayGoodbyeJoint(_local4.joint);
};
DestroyJoint(_local4.joint);
};
_local3 = _arg1.m_shapeList;
while (_local3) {
_local5 = _local3;
_local3 = _local3.m_next;
if (m_destructionListener){
m_destructionListener.SayGoodbyeShape(_local5);
};
_local5.DestroyProxy(m_broadPhase);
b2Shape.Destroy(_local5, m_blockAllocator);
};
if (_arg1.m_prev){
_arg1.m_prev.m_next = _arg1.m_next;
};
if (_arg1.m_next){
_arg1.m_next.m_prev = _arg1.m_prev;
};
if (_arg1 == m_bodyList){
m_bodyList = _arg1.m_next;
};
m_bodyCount--;
}
public function SetContactFilter(_arg1:b2ContactFilter):void{
m_contactFilter = _arg1;
}
public function CreateGroundShape(_arg1:b2ShapeDef){
if (m_lock == true){
return (null);
};
switch (_arg1.type){
case b2Shape.e_staticEdgeShape:
return (new b2StaticEdgeChain(_arg1, this));
default:
return (m_groundBody.CreateShape(_arg1));
};
}
public function GetGroundBody():b2Body{
return (m_groundBody);
}
public function DrawShape(_arg1:b2Shape, _arg2:b2XForm, _arg3:b2Color, _arg4:Boolean):void{
var _local5:b2Color;
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 _local16:b2ConcaveArcShape;
var _local17:b2StaticEdgeShape;
_local5 = s_coreColor;
switch (_arg1.m_type){
case b2Shape.e_circleShape:
_local6 = (_arg1 as b2CircleShape);
_local7 = b2Math.b2MulX(_arg2, _local6.m_localPosition);
_local8 = _local6.m_radius;
_local9 = _arg2.R.col1;
m_debugDraw.DrawSolidCircle(_local7, _local8, _local9, _arg3);
if (_arg4){
m_debugDraw.DrawCircle(_local7, (_local8 - b2Settings.b2_toiSlop), _local5);
};
break;
case b2Shape.e_polygonShape:
_local11 = (_arg1 as b2PolygonShape);
_local12 = _local11.GetVertexCount();
_local13 = _local11.GetVertices();
_local14 = new Array(b2Settings.b2_maxPolygonVertices);
_local10 = 0;
while (_local10 < _local12) {
_local14[_local10] = b2Math.b2MulX(_arg2, _local13[_local10]);
_local10++;
};
m_debugDraw.DrawSolidPolygon(_local14, _local12, _arg3);
if (_arg4){
_local15 = _local11.GetCoreVertices();
_local10 = 0;
while (_local10 < _local12) {
_local14[_local10] = b2Math.b2MulX(_arg2, _local15[_local10]);
_local10++;
};
m_debugDraw.DrawPolygon(_local14, _local12, _local5);
};
break;
case b2Shape.e_concaveArcShape:
_local16 = (_arg1 as b2ConcaveArcShape);
_local12 = _local16.GetVertexCount();
_local13 = _local16.GetVertices();
_local7 = b2Math.b2MulX(_arg2, _local16.m_arcCenter);
_local14 = new Array(b2Settings.b2_maxPolygonVertices);
_local10 = 0;
while (_local10 < _local12) {
_local14[_local10] = b2Math.b2MulX(_arg2, _local13[_local10]);
_local10++;
};
m_debugDraw.DrawSolidConcaveArc(_local14, _local12, _local7, _arg3);
if (_arg4){
_local15 = _local16.GetCoreVertices();
_local10 = 0;
while (_local10 < _local12) {
_local14[_local10] = b2Math.b2MulX(_arg2, _local15[_local10]);
_local10++;
};
m_debugDraw.DrawConcaveArc(_local14, _local12, _local7, _local5);
};
break;
case b2Shape.e_staticEdgeShape:
_local17 = (_arg1 as b2StaticEdgeShape);
m_debugDraw.DrawSegment(_local17.m_v1, _local17.m_v2, _arg3);
if (_arg4){
m_debugDraw.DrawSegment(_local17.m_coreV1, _local17.m_coreV2, _local5);
};
break;
};
}
public function GetContactCount():int{
return (m_contactCount);
}
public function Solve(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Island;
var _local4:b2Contact;
var _local5:b2Joint;
var _local6:int;
var _local7:Array;
var _local8:b2Body;
var _local9:int;
var _local10:int;
var _local11:b2Body;
var _local12:b2ContactEdge;
var _local13:b2JointEdge;
var _local14:Boolean;
m_positionIterationCount = 0;
_local3 = new b2Island(m_bodyCount, m_contactCount, m_jointCount, m_stackAllocator, m_contactListener);
_local2 = m_bodyList;
while (_local2) {
_local2.m_flags = (_local2.m_flags & ~(b2Body.e_islandFlag));
_local2 = _local2.m_next;
};
_local4 = m_contactList;
while (_local4) {
_local4.m_flags = (_local4.m_flags & ~(b2Contact.e_islandFlag));
_local4 = _local4.m_next;
};
_local5 = m_jointList;
while (_local5) {
_local5.m_islandFlag = false;
_local5 = _local5.m_next;
};
_local6 = m_bodyCount;
_local7 = new Array(_local6);
_local8 = m_bodyList;
while (_local8) {
if ((_local8.m_flags & ((b2Body.e_islandFlag | b2Body.e_sleepFlag) | b2Body.e_frozenFlag))){
} else {
if (_local8.IsStatic()){
} else {
_local3.Clear();
_local9 = 0;
var _temp1 = _local9;
_local9 = (_local9 + 1);
var _local15 = _temp1;
_local7[_local15] = _local8;
_local8.m_flags = (_local8.m_flags | b2Body.e_islandFlag);
while (_local9 > 0) {
--_local9;
_local2 = _local7[_local9];
_local3.AddBody(_local2);
_local2.m_flags = (_local2.m_flags & ~(b2Body.e_sleepFlag));
if (_local2.IsStatic()){
} else {
_local12 = _local2.m_contactList;
while (_local12) {
if ((_local12.contact.m_flags & (b2Contact.e_islandFlag | b2Contact.e_nonSolidFlag))){
} else {
if (_local12.contact.m_manifoldCount == 0){
} else {
_local3.AddContact(_local12.contact);
_local12.contact.m_flags = (_local12.contact.m_flags | b2Contact.e_islandFlag);
_local11 = _local12.other;
if ((_local11.m_flags & b2Body.e_islandFlag)){
} else {
var _temp2 = _local9;
_local9 = (_local9 + 1);
var _local16 = _temp2;
_local7[_local16] = _local11;
_local11.m_flags = (_local11.m_flags | b2Body.e_islandFlag);
};
};
};
_local12 = _local12.next;
};
_local13 = _local2.m_jointList;
while (_local13) {
if (_local13.joint.m_islandFlag == true){
} else {
_local3.AddJoint(_local13.joint);
_local13.joint.m_islandFlag = true;
_local11 = _local13.other;
if ((_local11.m_flags & b2Body.e_islandFlag)){
} else {
var _temp3 = _local9;
_local9 = (_local9 + 1);
_local16 = _temp3;
_local7[_local16] = _local11;
_local11.m_flags = (_local11.m_flags | b2Body.e_islandFlag);
};
};
_local13 = _local13.next;
};
};
};
_local3.Solve(_arg1, m_gravity, m_positionCorrection, m_allowSleep);
if (_local3.m_positionIterationCount > m_positionIterationCount){
m_positionIterationCount = _local3.m_positionIterationCount;
};
_local10 = 0;
while (_local10 < _local3.m_bodyCount) {
_local2 = _local3.m_bodies[_local10];
if (_local2.IsStatic()){
_local2.m_flags = (_local2.m_flags & ~(b2Body.e_islandFlag));
};
_local10++;
};
};
};
_local8 = _local8.m_next;
};
_local2 = m_bodyList;
while (_local2) {
if ((_local2.m_flags & (b2Body.e_sleepFlag | b2Body.e_frozenFlag))){
} else {
if (_local2.IsStatic()){
} else {
_local14 = _local2.SynchronizeShapes();
if ((((_local14 == false)) && (!((m_boundaryListener == null))))){
m_boundaryListener.Violation(_local2);
};
};
};
_local2 = _local2.m_next;
};
m_broadPhase.Commit();
}
public function Query(_arg1:b2AABB, _arg2:Array, _arg3:int):int{
var _local4:Array;
var _local5:int;
var _local6:int;
_local4 = new Array(_arg3);
_local5 = m_broadPhase.QueryAABB(_arg1, _local4, _arg3);
_local6 = 0;
while (_local6 < _local5) {
_arg2[_local6] = _local4[_local6];
_local6++;
};
return (_local5);
}
public function SetGravity(_arg1:b2Vec2):void{
m_gravity = _arg1;
}
public function SolveTOI(_arg1:b2TimeStep):void{
var _local2:b2Body;
var _local3:b2Shape;
var _local4:b2Shape;
var _local5:b2Body;
var _local6:b2Body;
var _local7:b2ContactEdge;
var _local8:b2Island;
var _local9:int;
var _local10:Array;
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;
_local8 = new b2Island(m_bodyCount, b2Settings.b2_maxTOIContactsPerIsland, 0, m_stackAllocator, m_contactListener);
_local9 = m_bodyCount;
_local10 = new Array(_local9);
_local2 = m_bodyList;
while (_local2) {
_local2.m_flags = (_local2.m_flags & ~(b2Body.e_islandFlag));
_local2.m_sweep.t0 = 0;
_local2 = _local2.m_next;
};
_local11 = m_contactList;
while (_local11) {
_local11.m_flags = (_local11.m_flags & ~((b2Contact.e_toiFlag | b2Contact.e_islandFlag)));
_local11 = _local11.m_next;
};
while (true) {
_local12 = null;
_local13 = 1;
_local11 = m_contactList;
for (;_local11;(_local11 = _local11.m_next)) {
if ((_local11.m_flags & (b2Contact.e_slowFlag | b2Contact.e_nonSolidFlag))){
} else {
_local18 = 1;
if ((_local11.m_flags & b2Contact.e_toiFlag)){
_local18 = _local11.m_toi;
} else {
_local3 = _local11.m_shape1;
_local4 = _local11.m_shape2;
_local5 = _local3.m_body;
_local6 = _local4.m_body;
if (((((_local5.IsStatic()) || (_local5.IsSleeping()))) && (((_local6.IsStatic()) || (_local6.IsSleeping()))))){
continue;
};
_local19 = _local5.m_sweep.t0;
if (_local5.m_sweep.t0 < _local6.m_sweep.t0){
_local19 = _local6.m_sweep.t0;
_local5.m_sweep.Advance(_local19);
} else {
if (_local6.m_sweep.t0 < _local5.m_sweep.t0){
_local19 = _local5.m_sweep.t0;
_local6.m_sweep.Advance(_local19);
};
};
_local18 = b2TimeOfImpact.TimeOfImpact(_local11.m_shape1, _local5.m_sweep, _local11.m_shape2, _local6.m_sweep);
if ((((_local18 > 0)) && ((_local18 < 1)))){
_local18 = (((1 - _local18) * _local19) + _local18);
if (_local18 > 1){
_local18 = 1;
};
};
_local11.m_toi = _local18;
_local11.m_flags = (_local11.m_flags | b2Contact.e_toiFlag);
};
if ((((Number.MIN_VALUE < _local18)) && ((_local18 < _local13)))){
_local12 = _local11;
_local13 = _local18;
};
};
};
if ((((_local12 == null)) || (((1 - (100 * Number.MIN_VALUE)) < _local13)))){
break;
};
_local3 = _local12.m_shape1;
_local4 = _local12.m_shape2;
_local5 = _local3.m_body;
_local6 = _local4.m_body;
_local5.Advance(_local13);
_local6.Advance(_local13);
_local12.Update(m_contactListener);
_local12.m_flags = (_local12.m_flags & ~(b2Contact.e_toiFlag));
if (_local12.m_manifoldCount == 0){
} else {
_local14 = _local5;
if (_local14.IsStatic()){
_local14 = _local6;
};
_local8.Clear();
_local15 = 0;
var _temp1 = _local15;
_local15 = (_local15 + 1);
var _local22 = _temp1;
_local10[_local22] = _local14;
_local14.m_flags = (_local14.m_flags | b2Body.e_islandFlag);
while (_local15 > 0) {
--_local15;
_local2 = _local10[_local15];
_local8.AddBody(_local2);
_local2.m_flags = (_local2.m_flags & ~(b2Body.e_sleepFlag));
if (_local2.IsStatic()){
} else {
_local7 = _local2.m_contactList;
while (_local7) {
if (_local8.m_contactCount == _local8.m_contactCapacity){
} else {
if ((_local7.contact.m_flags & ((b2Contact.e_islandFlag | b2Contact.e_slowFlag) | b2Contact.e_nonSolidFlag))){
} else {
if (_local7.contact.m_manifoldCount == 0){
} else {
_local8.AddContact(_local7.contact);
_local7.contact.m_flags = (_local7.contact.m_flags | b2Contact.e_islandFlag);
_local20 = _local7.other;
if ((_local20.m_flags & b2Body.e_islandFlag)){
} else {
if (_local20.IsStatic() == false){
_local20.Advance(_local13);
_local20.WakeUp();
};
var _temp2 = _local15;
_local15 = (_local15 + 1);
var _local23 = _temp2;
_local10[_local23] = _local20;
_local20.m_flags = (_local20.m_flags | b2Body.e_islandFlag);
};
};
};
};
_local7 = _local7.next;
};
};
};
_local16 = new b2TimeStep();
_local16.dt = ((1 - _local13) * _arg1.dt);
_local16.inv_dt = (1 / _local16.dt);
_local16.maxIterations = _arg1.maxIterations;
_local8.SolveTOI(_local16);
_local17 = 0;
while (_local17 < _local8.m_bodyCount) {
_local2 = _local8.m_bodies[_local17];
_local2.m_flags = (_local2.m_flags & ~(b2Body.e_islandFlag));
if ((_local2.m_flags & (b2Body.e_sleepFlag | b2Body.e_frozenFlag))){
} else {
if (_local2.IsStatic()){
} else {
_local21 = _local2.SynchronizeShapes();
if ((((_local21 == false)) && (!((m_boundaryListener == null))))){
m_boundaryListener.Violation(_local2);
};
_local7 = _local2.m_contactList;
while (_local7) {
_local7.contact.m_flags = (_local7.contact.m_flags & ~(b2Contact.e_toiFlag));
_local7 = _local7.next;
};
};
};
_local17++;
};
_local17 = 0;
while (_local17 < _local8.m_contactCount) {
_local11 = _local8.m_contacts[_local17];
_local8.m_contacts[_local17].m_flags = (_local11.m_flags & ~((b2Contact.e_toiFlag | b2Contact.e_islandFlag)));
_local17++;
};
m_broadPhase.Commit();
};
};
}
public function GetJointList():b2Joint{
return (m_jointList);
}
public function Validate():void{
m_broadPhase.Validate();
}
public function GetPairCount():int{
return (m_broadPhase.m_pairManager.m_pairCount);
}
public function GetBodyList():b2Body{
return (m_bodyList);
}
public function SetWarmStarting(_arg1:Boolean):void{
m_warmStarting = _arg1;
}
public function SetPositionCorrection(_arg1:Boolean):void{
m_positionCorrection = _arg1;
}
public function CreateJoint(_arg1:b2JointDef):b2Joint{
var _local2:b2Joint;
var _local3:b2Body;
var _local4:b2Shape;
_local2 = b2Joint.Create(_arg1, m_blockAllocator);
_local2.m_prev = null;
_local2.m_next = m_jointList;
if (m_jointList){
m_jointList.m_prev = _local2;
};
m_jointList = _local2;
m_jointCount++;
_local2.m_node1.joint = _local2;
_local2.m_node1.other = _local2.m_body2;
_local2.m_node1.prev = null;
_local2.m_node1.next = _local2.m_body1.m_jointList;
if (_local2.m_body1.m_jointList){
_local2.m_body1.m_jointList.prev = _local2.m_node1;
};
_local2.m_body1.m_jointList = _local2.m_node1;
_local2.m_node2.joint = _local2;
_local2.m_node2.other = _local2.m_body1;
_local2.m_node2.prev = null;
_local2.m_node2.next = _local2.m_body2.m_jointList;
if (_local2.m_body2.m_jointList){
_local2.m_body2.m_jointList.prev = _local2.m_node2;
};
_local2.m_body2.m_jointList = _local2.m_node2;
if (_arg1.collideConnected == false){
_local3 = ((_arg1.body1.m_shapeCount < _arg1.body2.m_shapeCount)) ? _arg1.body1 : _arg1.body2;
_local4 = _local3.m_shapeList;
while (_local4) {
_local4.RefilterProxy(m_broadPhase, _local3.m_xf);
_local4 = _local4.m_next;
};
};
return (_local2);
}
public function DestroyJoint(_arg1:b2Joint):void{
var _local2:Boolean;
var _local3:b2Body;
var _local4:b2Body;
var _local5:b2Body;
var _local6:b2Shape;
_local2 = _arg1.m_collideConnected;
if (_arg1.m_prev){
_arg1.m_prev.m_next = _arg1.m_next;
};
if (_arg1.m_next){
_arg1.m_next.m_prev = _arg1.m_prev;
};
if (_arg1 == m_jointList){
m_jointList = _arg1.m_next;
};
_local3 = _arg1.m_body1;
_local4 = _arg1.m_body2;
_local3.WakeUp();
_local4.WakeUp();
if (_arg1.m_node1.prev){
_arg1.m_node1.prev.next = _arg1.m_node1.next;
};
if (_arg1.m_node1.next){
_arg1.m_node1.next.prev = _arg1.m_node1.prev;
};
if (_arg1.m_node1 == _local3.m_jointList){
_local3.m_jointList = _arg1.m_node1.next;
};
_arg1.m_node1.prev = null;
_arg1.m_node1.next = null;
if (_arg1.m_node2.prev){
_arg1.m_node2.prev.next = _arg1.m_node2.next;
};
if (_arg1.m_node2.next){
_arg1.m_node2.next.prev = _arg1.m_node2.prev;
};
if (_arg1.m_node2 == _local4.m_jointList){
_local4.m_jointList = _arg1.m_node2.next;
};
_arg1.m_node2.prev = null;
_arg1.m_node2.next = null;
b2Joint.Destroy(_arg1, m_blockAllocator);
m_jointCount--;
if (_local2 == false){
_local5 = ((_local3.m_shapeCount < _local4.m_shapeCount)) ? _local3 : _local4;
_local6 = _local5.m_shapeList;
while (_local6) {
_local6.RefilterProxy(m_broadPhase, _local5.m_xf);
_local6 = _local6.m_next;
};
};
}
public function SetContactListener(_arg1:b2ContactListener):void{
m_contactListener = _arg1;
}
public function CreateBody(_arg1:b2BodyDef):b2Body{
var _local2:b2Body;
if (m_lock == true){
return (null);
};
_local2 = new b2Body(_arg1, this);
_local2.m_prev = null;
_local2.m_next = m_bodyList;
if (m_bodyList){
m_bodyList.m_prev = _local2;
};
m_bodyList = _local2;
m_bodyCount++;
return (_local2);
}
public function SetBoundaryListener(_arg1:b2BoundaryListener):void{
m_boundaryListener = _arg1;
}
public function SetDestructionListener(_arg1:b2DestructionListener):void{
m_destructionListener = _arg1;
}
public function Step(_arg1:Number, _arg2:int):void{
var _local3:b2TimeStep;
m_lock = true;
_local3 = new b2TimeStep();
_local3.dt = _arg1;
_local3.maxIterations = _arg2;
if (_arg1 > 0){
_local3.inv_dt = (1 / _arg1);
} else {
_local3.inv_dt = 0;
};
_local3.dtRatio = (m_inv_dt0 * _arg1);
_local3.positionCorrection = m_positionCorrection;
_local3.warmStarting = m_warmStarting;
m_contactManager.Collide();
if (_local3.dt > 0){
Solve(_local3);
};
if (((m_continuousPhysics) && ((_local3.dt > 0)))){
SolveTOI(_local3);
};
DrawDebugData();
m_inv_dt0 = _local3.inv_dt;
m_lock = false;
}
public function GetBodyCount():int{
return (m_bodyCount);
}
public function GetJointCount():int{
return (m_jointCount);
}
}
}//package Box2D.Dynamics
Section 87
//b2iBody (Box2DIntegration.b2iBody)
package Box2DIntegration {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
public class b2iBody extends b2iGameObject {
public var bodyDef:b2BodyDef;
public var m_body:b2Body;
public function b2iBody(){
bodyDef = new b2BodyDef();
}
public function get affectedByGravity():Boolean{
return (this.bodyDef.affectedByGravity);
}
public function get linearDamping():Number{
return (this.bodyDef.linearDamping);
}
public function createBody2(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:b2iLevel;
var _local5:b2ShapeDef;
var _local6:b2iShape;
var _local7:int;
_local4 = b2iLevel(parent);
bodyDef.position.Set(_local4.physCoord(this.x), _local4.physCoord(this.y));
bodyDef.angle = (this.rotation * 0.017453293);
if (static){
m_body = _local4.m_world.CreateBody(bodyDef);
} else {
m_body = _local4.m_world.CreateBody(bodyDef);
};
m_body.m_userData = this;
_local7 = 0;
while (_local7 < this.numChildren) {
if ((this.getChildAt(_local7) is b2iShape)){
_local6 = b2iShape(this.getChildAt(_local7));
_local5 = _local6.createShape(_local4, this);
_local5.density = _arg1;
_local5.friction = _arg2;
_local5.restitution = _arg3;
m_body.CreateShape(_local5);
};
_local7++;
};
m_body.SetMassFromShapes();
}
public function set angularDamping(_arg1:Number):void{
bodyDef.angularDamping = _arg1;
}
public function set linearDamping(_arg1:Number):void{
bodyDef.linearDamping = _arg1;
}
public function createBody():void{
var _local1:b2iLevel;
var _local2:b2ShapeDef;
var _local3:b2iShape;
var _local4:b2Shape;
var _local5:int;
_local1 = b2iLevel(parent);
bodyDef.position.Set(_local1.physCoord(this.x), _local1.physCoord(this.y));
bodyDef.angle = (this.rotation * 0.017453293);
m_body = _local1.m_world.CreateBody(bodyDef);
m_body.m_userData = this;
_local5 = 0;
while (_local5 < this.numChildren) {
if ((this.getChildAt(_local5) is b2iShape)){
_local3 = b2iShape(this.getChildAt(_local5));
_local2 = _local3.createShape(_local1, this);
_local4 = m_body.CreateShape(_local2);
_local4.m_userData = _local3;
};
_local5++;
};
m_body.SetMassFromShapes();
}
public function set affectedByGravity(_arg1:Boolean):void{
bodyDef.affectedByGravity = _arg1;
}
public function get angularDamping():Number{
return (this.bodyDef.angularDamping);
}
override public function Update():void{
var _local1:b2iLevel;
var _local2:b2Vec2;
if (!m_body.IsStatic()){
_local1 = b2iLevel(parent);
_local2 = this.m_body.GetPosition();
this.x = (_local2.x * _local1.m_physScale);
this.y = (_local2.y * _local1.m_physScale);
this.rotation = (this.m_body.GetAngle() * 57.29577951);
};
}
}
}//package Box2DIntegration
Section 88
//b2iBoxShape (Box2DIntegration.b2iBoxShape)
package Box2DIntegration {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
import flash.geom.*;
public class b2iBoxShape extends b2iShape {
public function b2iBoxShape(){
shapeDef = new b2PolygonDef();
}
override public function createShape(_arg1:b2iLevel, _arg2:b2iGameObject):b2ShapeDef{
var _local3:b2PolygonDef;
var _local4:Rectangle;
var _local5:b2Vec2;
_local3 = b2PolygonDef(shapeDef);
_local4 = this.getRect(this);
_local5 = new b2Vec2(_arg1.physCoord((this.x * _arg2.scaleX)), _arg1.physCoord((this.y * _arg2.scaleY)));
_local3.SetAsOrientedBox(((_arg1.physCoord((_local4.width / 2)) * this.scaleX) * _arg2.scaleX), ((_arg1.physCoord((_local4.height / 2)) * this.scaleY) * _arg2.scaleY), _local5, (this.rotation * 0.017453293));
_local3.density = density;
_local3.friction = friction;
_local3.restitution = restitution;
_local3.isSensor = sensor;
_local3.filter.groupIndex = colgroup;
_local3.filter.categoryBits = categoryBits;
_local3.filter.maskBits = maskBits;
return (_local3);
}
}
}//package Box2DIntegration
Section 89
//b2iCircleShape (Box2DIntegration.b2iCircleShape)
package Box2DIntegration {
import Box2D.Collision.Shapes.*;
public class b2iCircleShape extends b2iShape {
public function b2iCircleShape(){
shapeDef = new b2CircleDef();
}
override public function createShape(_arg1:b2iLevel, _arg2:b2iGameObject):b2ShapeDef{
var _local3:b2CircleDef;
_local3 = b2CircleDef(shapeDef);
_local3.radius = (_arg1.physCoord((this.width / 2)) * _arg2.scaleX);
_local3.localPosition.Set(_arg1.physCoord((this.x * _arg2.scaleX)), _arg1.physCoord((this.y * _arg2.scaleY)));
_local3.restitution = restitution;
_local3.density = density;
_local3.friction = friction;
_local3.isSensor = sensor;
_local3.filter.groupIndex = colgroup;
_local3.filter.categoryBits = categoryBits;
_local3.filter.maskBits = maskBits;
return (_local3);
}
}
}//package Box2DIntegration
Section 90
//b2iConcaveArcShape (Box2DIntegration.b2iConcaveArcShape)
package Box2DIntegration {
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
import flash.geom.*;
public class b2iConcaveArcShape extends b2iShape {
public function b2iConcaveArcShape(){
shapeDef = new b2ConcaveArcDef();
}
override public function createShape(_arg1:b2iLevel, _arg2:b2iGameObject):b2ShapeDef{
var _local3:b2ConcaveArcDef;
var _local4:Rectangle;
var _local5:b2Vec2;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local3 = b2ConcaveArcDef(shapeDef);
_local4 = this.getRect(this);
_local5 = new b2Vec2(_arg1.physCoord((this.x * _arg2.scaleX)), _arg1.physCoord((this.y * _arg2.scaleY)));
_local3.SetAsOrientedBox(((_arg1.physCoord((_local4.width / 2)) * this.scaleX) * _arg2.scaleX), ((_arg1.physCoord((_local4.height / 2)) * this.scaleY) * _arg2.scaleY), _local5, (this.rotation * 0.017453293));
_local3.density = density;
_local3.friction = friction;
_local3.restitution = restitution;
_local3.isSensor = sensor;
_local3.filter.groupIndex = colgroup;
_local3.filter.categoryBits = categoryBits;
_local3.filter.maskBits = maskBits;
_local6 = (((_local4.width / 2) * this.scaleX) * _arg2.scaleX);
_local7 = ((_local4.height * this.scaleY) * _arg2.scaleY);
if (_local7 > _local6){
_local7 = _local6;
};
_local8 = (((_local6 * _local6) + (_local7 * _local7)) / (2 * _local7));
_local3.radius = _arg1.physCoord((((_local6 * _local6) + (_local7 * _local7)) / (2 * _local7)));
return (_local3);
}
}
}//package Box2DIntegration
Section 91
//b2iGameObject (Box2DIntegration.b2iGameObject)
package Box2DIntegration {
import flash.display.*;
public class b2iGameObject extends MovieClip {
public function Update():void{
}
}
}//package Box2DIntegration
Section 92
//b2iJoint (Box2DIntegration.b2iJoint)
package Box2DIntegration {
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
public class b2iJoint extends b2iGameObject {
protected var torqueResistance_:Number;
public var m_joint:b2Joint;
protected var forceResistance_:Number;
public var jd:b2JointDef;
public function get torqueResistance():Number{
return (this.torqueResistance_);
}
public function set forceResistance(_arg1:Number):void{
forceResistance_ = _arg1;
}
public function get forceResistance():Number{
return (this.forceResistance_);
}
public function set torqueResistance(_arg1:Number):void{
torqueResistance_ = _arg1;
}
protected function checkDestroy(_arg1:b2iLevel):void{
var _local2:Number;
var _local3:b2Vec2;
if (forceResistance_ != 0){
_local3 = this.m_joint.GetReactionForce();
if (_local3.Length() > forceResistance_){
_arg1.m_world.DestroyJoint(this.m_joint);
_arg1.removeChild(this);
};
};
_local2 = this.m_joint.GetReactionTorque();
}
override public function Update():void{
var _local1:b2iLevel;
var _local2:b2Vec2;
_local1 = b2iLevel(parent);
_local2 = this.m_joint.GetAnchor1();
this.x = (_local2.x * _local1.m_physScale);
this.y = (_local2.y * _local1.m_physScale);
checkDestroy(_local1);
}
public function createJoint():void{
}
}
}//package Box2DIntegration
Section 93
//b2iLevel (Box2DIntegration.b2iLevel)
package Box2DIntegration {
import flash.display.*;
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
public class b2iLevel extends b2iObjectGroup {
public var m_physScale:Number;
public var draw_geometry:Boolean;
public var m_iterations:int;
protected var mousePVec:b2Vec2;
public var m_world:b2World;
public var mouseYWorld:Number;
public var mouseXWorldPhys:Number;
public var mouseYWorldPhys:Number;
public var m_timeStep:Number;
public var mouseXWorld:Number;
public function b2iLevel(){
mousePVec = new b2Vec2();
super();
draw_geometry = false;
}
public function destroy():void{
this.parent.removeChild(this);
m_world = null;
}
public function physCoord(_arg1:Number):Number{
return ((_arg1 / m_physScale));
}
public function restart():void{
}
public function GetBodyAtMouse(_arg1:Boolean=false):b2Body{
var _local2:b2AABB;
var _local3:int;
var _local4:Array;
var _local5:int;
var _local6:b2Body;
var _local7:int;
var _local8:b2Shape;
var _local9:Boolean;
mousePVec.Set(mouseXWorldPhys, mouseYWorldPhys);
_local2 = new b2AABB();
_local2.lowerBound.Set((mouseXWorldPhys - 0.001), (mouseYWorldPhys - 0.001));
_local2.upperBound.Set((mouseXWorldPhys + 0.001), (mouseYWorldPhys + 0.001));
_local3 = 10;
_local4 = new Array();
_local5 = m_world.Query(_local2, _local4, _local3);
_local6 = null;
_local7 = 0;
while (_local7 < _local5) {
if ((((_local4[_local7].m_body.IsStatic() == false)) || (_arg1))){
_local8 = (_local4[_local7] as b2Shape);
_local9 = (_local4[_local7] as b2Shape).TestPoint(_local8.m_body.GetXForm(), mousePVec);
if (_local9){
_local6 = _local8.m_body;
break;
};
};
_local7++;
};
return (_local6);
}
public function start():void{
}
public function UpdateMouseWorld():void{
mouseXWorldPhys = (mouseX / m_physScale);
mouseYWorldPhys = (mouseY / m_physScale);
mouseXWorld = mouseX;
mouseYWorld = mouseY;
}
override public function adoptChildren(_arg1:DisplayObject):void{
this.addChild(_arg1);
}
public function drawGeometry():void{
var _local1:b2DebugDraw;
var _local2:Sprite;
draw_geometry = true;
_local1 = new b2DebugDraw();
_local2 = new Sprite();
_local2.graphics.beginFill(0xFFFFFF);
_local2.graphics.drawRect(0, 0, 2000, 2000);
addChild(_local2);
_local1.m_sprite = _local2;
_local1.m_drawScale = m_physScale;
_local1.m_fillAlpha = 0.3;
_local1.m_lineThickness = 1;
_local1.m_drawFlags = (b2DebugDraw.e_shapeBit | b2DebugDraw.e_jointBit);
m_world.SetDebugDraw(_local1);
}
public function createLevel(_arg1:int=1000, _arg2:int=-1000, _arg3:int=1000, _arg4:int=-1000, _arg5:b2Vec2=null, _arg6:Boolean=true, _arg7:int=1, _arg8:int=10, _arg9:Number=0.0166666666666667):void{
var _local10:b2AABB;
var _local11:b2Vec2;
_local10 = new b2AABB();
_local10.lowerBound.Set(_arg2, _arg4);
_local10.upperBound.Set(_arg1, _arg3);
m_physScale = _arg7;
m_iterations = _arg8;
m_timeStep = _arg9;
if (_arg5){
_local11 = new b2Vec2(_arg5.x, _arg5.y);
} else {
_local11 = new b2Vec2(0, 0);
};
m_world = new b2World(_local10, _local11, _arg6);
}
override public function Update():void{
m_world.Step(m_timeStep, m_iterations);
UpdateChildren();
UpdateMouseWorld();
}
}
}//package Box2DIntegration
Section 94
//b2iObjectGroup (Box2DIntegration.b2iObjectGroup)
package Box2DIntegration {
import flash.display.*;
import Box2D.Common.Math.*;
public class b2iObjectGroup extends MovieClip {
public function UpdateChildren():void{
var _local1:*;
var _local2:b2iGameObject;
var _local3:b2Vec2;
var _local4:int;
_local3 = new b2Vec2();
_local4 = 0;
while (_local4 < this.numChildren) {
_local1 = this.getChildAt(_local4);
if ((_local1 is b2iGameObject)){
_local2 = b2iGameObject(_local1);
_local2.Update();
};
_local4++;
};
}
public function adoptChildren(_arg1:DisplayObject):void{
}
public function Update():void{
}
}
}//package Box2DIntegration
Section 95
//b2iPrismaticJoint (Box2DIntegration.b2iPrismaticJoint)
package Box2DIntegration {
import flash.display.*;
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
import flash.geom.*;
public class b2iPrismaticJoint extends b2iJoint {
protected var useGround_:Boolean;
protected var force_:Number;
public var useStatic:Boolean;// = true
protected var speed_:Number;
public function b2iPrismaticJoint(){
useStatic = true;
super();
jd = new b2PrismaticJointDef();
}
private function createJoint2(_arg1:b2PrismaticJointDef, _arg2:b2World):b2Joint{
if (force_ > 0){
_arg1.upperTranslation = b2iLevel(parent).physCoord((this.getRect(this).width * this.scaleX));
_arg1.lowerTranslation = -0.01;
_arg1.enableLimit = true;
_arg1.maxMotorForce = force_;
_arg1.motorSpeed = speed_;
_arg1.enableMotor = true;
};
return (b2PrismaticJoint(_arg2.CreateJoint(_arg1)));
}
public function get force():Number{
return (this.force_);
}
public function set useGround(_arg1:Boolean):void{
useGround_ = _arg1;
}
public function get speed():Number{
return (this.speed_);
}
public function set speed(_arg1:Number):void{
speed_ = _arg1;
}
public function set force(_arg1:Number):void{
force_ = _arg1;
}
override public function createJoint():void{
var _local1:b2iLevel;
var _local2:b2World;
var _local3:b2PrismaticJointDef;
var _local4:b2AABB;
var _local5:Array;
var _local6:int;
var _local7:Array;
var _local8:int;
var _local9:b2Body;
var _local10:int;
var _local11:Boolean;
var _local12:b2Mat22;
var _local13:b2Vec2;
_local1 = b2iLevel(parent);
_local2 = _local1.m_world;
_local3 = b2PrismaticJointDef(jd);
_local4 = new b2AABB();
_local4.lowerBound.Set((_local1.physCoord(this.x) - 0.001), (_local1.physCoord(this.y) - 0.001));
_local4.upperBound.Set((_local1.physCoord(this.x) + 0.001), (_local1.physCoord(this.y) + 0.001));
_local5 = new Array();
_local6 = 10;
_local7 = new Array();
_local8 = _local2.Query(_local4, _local7, _local6);
_local9 = null;
_local10 = 0;
while (_local10 < _local8) {
if ((((_local7[_local10].m_body.IsStatic() == false)) || (useStatic))){
_local11 = _local7[_local10].TestPoint(_local7[_local10].GetBody().GetXForm(), new b2Vec2(_local1.physCoord(this.x), _local1.physCoord(this.y)));
if (_local11){
_local5.push(_local7[_local10].m_body);
};
};
_local10++;
};
if (_local5.length > 0){
_local12 = new b2Mat22((this.rotation * 0.017453293));
_local13 = new b2Vec2(1, 0);
_local13.MulM(_local12);
if (useGround_){
_local3.Initialize((_local3.body1 = _local2.m_groundBody), _local5[0], new b2Vec2(_local1.physCoord(this.x), _local1.physCoord(this.y)), _local13);
m_joint = createJoint2(_local3, _local2);
} else {
if (_local5.length >= 2){
_local3.Initialize(_local5[0], _local5[1], new b2Vec2(_local1.physCoord(this.x), _local1.physCoord(this.y)), _local13);
m_joint = createJoint2(_local3, _local2);
} else {
m_joint = null;
};
};
} else {
m_joint = null;
};
if (m_joint == null){
throw (Error("Unable to create prismatic joint: No bodies to attach to"));
};
}
public function get useGround():Boolean{
return (this.useGround_);
}
}
}//package Box2DIntegration
Section 96
//b2iRectTriangleShape (Box2DIntegration.b2iRectTriangleShape)
package Box2DIntegration {
import flash.display.*;
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
import flash.geom.*;
public class b2iRectTriangleShape extends b2iShape {
public function b2iRectTriangleShape(){
shapeDef = new b2PolygonDef();
}
override public function createShape(_arg1:b2iLevel, _arg2:b2iGameObject):b2ShapeDef{
var _local3:b2PolygonDef;
var _local4:Rectangle;
var _local5:b2Vec2;
var _local6:Matrix;
var _local7:Point;
_local3 = b2PolygonDef(shapeDef);
_local4 = this.getRect(this);
_local5 = new b2Vec2(_arg1.physCoord((this.x * _arg2.scaleX)), _arg1.physCoord((this.y * _arg2.scaleY)));
_local6 = this.transform.matrix;
_local3.vertexCount = 3;
_local7 = _local6.transformPoint(new Point(_local4.left, _local4.top));
_local3.vertices[0].Set(_arg1.physCoord((_local7.x * _arg2.scaleX)), _arg1.physCoord((_local7.y * _arg2.scaleY)));
_local7 = _local6.transformPoint(new Point(_local4.right, _local4.top));
_local3.vertices[1].Set(_arg1.physCoord((_local7.x * _arg2.scaleX)), _arg1.physCoord((_local7.y * _arg2.scaleY)));
_local7 = _local6.transformPoint(new Point(_local4.left, _local4.bottom));
_local3.vertices[2].Set(_arg1.physCoord((_local7.x * _arg2.scaleX)), _arg1.physCoord((_local7.y * _arg2.scaleY)));
_local3.density = density;
_local3.friction = friction;
_local3.restitution = restitution;
_local3.isSensor = sensor;
_local3.filter.groupIndex = colgroup;
_local3.filter.categoryBits = categoryBits;
_local3.filter.maskBits = maskBits;
return (_local3);
}
}
}//package Box2DIntegration
Section 97
//b2iRevoluteJoint (Box2DIntegration.b2iRevoluteJoint)
package Box2DIntegration {
import flash.display.*;
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
import flash.geom.*;
public class b2iRevoluteJoint extends b2iJoint {
protected var useGround_:Boolean;
protected var torque_:Number;
public var useStatic:Boolean;// = true
protected var speed_:Number;
public function b2iRevoluteJoint(){
useStatic = true;
super();
jd = new b2RevoluteJointDef();
}
private function createJoint2(_arg1:b2RevoluteJointDef, _arg2:b2World):b2Joint{
if (torque_ > 0){
_arg1.enableMotor = true;
_arg1.motorSpeed = speed_;
_arg1.maxMotorTorque = torque_;
};
return (b2RevoluteJoint(_arg2.CreateJoint(_arg1)));
}
public function set torque(_arg1:Number):void{
torque_ = _arg1;
}
public function get torque():Number{
return (this.torque_);
}
public function set useGround(_arg1:Boolean):void{
useGround_ = _arg1;
}
public function get speed():Number{
return (this.speed_);
}
public function set speed(_arg1:Number):void{
speed_ = _arg1;
}
override public function createJoint():void{
var _local1:b2iLevel;
var _local2:b2World;
var _local3:b2RevoluteJointDef;
var _local4:b2AABB;
var _local5:Array;
var _local6:int;
var _local7:Array;
var _local8:int;
var _local9:b2Body;
var _local10:int;
var _local11:Boolean;
_local1 = b2iLevel(parent);
_local2 = _local1.m_world;
_local3 = b2RevoluteJointDef(jd);
_local4 = new b2AABB();
_local4.lowerBound.Set((_local1.physCoord(this.x) - 0.001), (_local1.physCoord(this.y) - 0.001));
_local4.upperBound.Set((_local1.physCoord(this.x) + 0.001), (_local1.physCoord(this.y) + 0.001));
_local5 = new Array();
_local6 = 10;
_local7 = new Array();
_local8 = _local2.Query(_local4, _local7, _local6);
_local9 = null;
_local10 = 0;
while (_local10 < _local8) {
if ((((_local7[_local10].m_body.IsStatic() == false)) || (useStatic))){
_local11 = _local7[_local10].TestPoint(_local7[_local10].GetBody().GetXForm(), new b2Vec2(_local1.physCoord(this.x), _local1.physCoord(this.y)));
if (_local11){
_local5.push(_local7[_local10].m_body);
};
};
_local10++;
};
if (_local5.length > 0){
if (useGround_){
_local3.Initialize((_local3.body1 = _local2.m_groundBody), _local5[0], new b2Vec2(_local1.physCoord(this.x), _local1.physCoord(this.y)));
m_joint = createJoint2(_local3, _local2);
} else {
if (_local5.length >= 2){
_local3.Initialize(_local5[0], _local5[1], new b2Vec2(_local1.physCoord(this.x), _local1.physCoord(this.y)));
m_joint = createJoint2(_local3, _local2);
} else {
m_joint = null;
};
};
} else {
m_joint = null;
};
if (!m_joint){
throw (Error("Unable to create revolute joint: No bodies to attach to"));
};
}
public function get useGround():Boolean{
return (this.useGround_);
}
}
}//package Box2DIntegration
Section 98
//b2iShape (Box2DIntegration.b2iShape)
package Box2DIntegration {
import flash.display.*;
import Box2D.Collision.Shapes.*;
public class b2iShape extends MovieClip {
protected var restitution_:Number;
protected var colgroup_:int;
protected var density_:Number;
protected var friction_:Number;
protected var maskbits_:int;
public var shapeDef:b2ShapeDef;
protected var categorybits_:int;
protected var sensor_:Boolean;
public function get friction():Number{
return (this.friction_);
}
public function set colgroup(_arg1:int):void{
colgroup_ = _arg1;
}
public function get maskBits():int{
return (this.maskbits_);
}
public function get categoryBits():int{
return (this.categorybits_);
}
public function set friction(_arg1:Number):void{
friction_ = _arg1;
}
public function createShape(_arg1:b2iLevel, _arg2:b2iGameObject):b2ShapeDef{
return (null);
}
public function set maskBits(_arg1:int):void{
maskbits_ = _arg1;
}
public function set categoryBits(_arg1:int):void{
categorybits_ = _arg1;
}
public function get restitution():Number{
return (this.restitution_);
}
public function set sensor(_arg1:Boolean):void{
sensor_ = _arg1;
}
public function get sensor():Boolean{
return (this.sensor_);
}
public function set density(_arg1:Number):void{
density_ = _arg1;
}
public function set restitution(_arg1:Number):void{
restitution_ = _arg1;
}
public function get density():Number{
return (this.density_);
}
public function get colgroup():int{
return (this.colgroup_);
}
}
}//package Box2DIntegration
Section 99
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var contentspotid:String;
private var cpmstarLoader:Loader;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler, false, 0, true);
}
private function addedHandler(_arg1:Event):void{
var _local2:String;
var _local3:DisplayObjectContainer;
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
_local2 = "http://server.cpmstar.com/adviewas3.swf";
_local3 = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler, false, 0, true);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler, false, 0, true);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
}
}//package CPMStar
Section 100
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import fl.core.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var _selected:Boolean;// = false
private var unlockedMouseState:String;
protected var pressTimer:Timer;
protected var mouseState:String;
protected var background:DisplayObject;
private var _mouseStateLocked:Boolean;// = false
protected var _autoRepeat:Boolean;// = false
private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35};
public function BaseButton(){
_selected = false;
_autoRepeat = false;
_mouseStateLocked = false;
super();
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
protected function endPress():void{
pressTimer.reset();
}
public function set mouseStateLocked(_arg1:Boolean):void{
_mouseStateLocked = _arg1;
if (_arg1 == false){
setMouseState(unlockedMouseState);
} else {
unlockedMouseState = mouseState;
};
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function get selected():Boolean{
return (_selected);
}
protected function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_DOWN){
setMouseState("down");
startPress();
} else {
if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){
setMouseState("over");
endPress();
} else {
if (_arg1.type == MouseEvent.ROLL_OUT){
setMouseState("up");
endPress();
};
};
};
}
public function setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
protected function buttonDown(_arg1:TimerEvent):void{
if (!_autoRepeat){
endPress();
return;
};
if (pressTimer.currentCount == 1){
pressTimer.delay = Number(getStyleValue("repeatInterval"));
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
public function set selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function setupMouseEvents():void{
addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true);
}
protected function drawLayout():void{
background.width = width;
background.height = height;
}
protected function drawBackground():void{
var _local1:String;
var _local2:DisplayObject;
_local1 = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
_local2 = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 101
//Button (fl.controls.Button)
package fl.controls {
import flash.display.*;
import fl.core.*;
import fl.managers.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var emphasizedBorder:DisplayObject;
protected var _emphasized:Boolean;// = false
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function Button(){
_emphasized = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
var _local3:*;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("emphasizedPadding"));
if ((((_local2 < 0)) || (!(_emphasized)))){
_local2 = 0;
};
_local3 = getStyleValue("focusRectPadding");
_local3 = ((_local3)==null) ? 2 : _local3;
_local3 = (_local3 + _local2);
uiFocusRect.x = -(_local3);
uiFocusRect.y = -(_local3);
uiFocusRect.width = (width + (_local3 * 2));
uiFocusRect.height = (height + (_local3 * 2));
};
}
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
public function get emphasized():Boolean{
return (_emphasized);
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
protected function drawEmphasized():void{
var _local1:Object;
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
_local1 = getStyleValue("emphasizedSkin");
if (_local1 != null){
emphasizedBorder = getDisplayObjectInstance(_local1);
};
if (emphasizedBorder != null){
addChildAt(emphasizedBorder, 0);
_local2 = Number(getStyleValue("emphasizedPadding"));
emphasizedBorder.x = (emphasizedBorder.y = -(_local2));
emphasizedBorder.width = (width + (_local2 * 2));
emphasizedBorder.height = (height + (_local2 * 2));
};
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 102
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement)
package fl.controls {
public class ButtonLabelPlacement {
public static const TOP:String = "top";
public static const LEFT:String = "left";
public static const BOTTOM:String = "bottom";
public static const RIGHT:String = "right";
}
}//package fl.controls
Section 103
//CheckBox (fl.controls.CheckBox)
package fl.controls {
import flash.display.*;
public class CheckBox extends LabelButton {
private static var defaultStyles:Object = {icon:null, upIcon:"CheckBox_upIcon", downIcon:"CheckBox_downIcon", overIcon:"CheckBox_overIcon", disabledIcon:"CheckBox_disabledIcon", selectedDisabledIcon:"CheckBox_selectedDisabledIcon", focusRectSkin:null, focusRectPadding:null, selectedUpIcon:"CheckBox_selectedUpIcon", selectedDownIcon:"CheckBox_selectedDownIcon", selectedOverIcon:"CheckBox_selectedOverIcon", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5};
public static var createAccessibilityImplementation:Function;
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = (background.x - _local2);
uiFocusRect.y = (background.y - _local2);
uiFocusRect.width = (background.width + (_local2 << 1));
uiFocusRect.height = (background.height + (_local2 << 1));
};
}
override public function get autoRepeat():Boolean{
return (false);
}
override public function set autoRepeat(_arg1:Boolean):void{
}
override public function set toggle(_arg1:Boolean):void{
throw (new Error("Warning: You cannot change a CheckBox's toggle."));
}
override public function get toggle():Boolean{
return (true);
}
override protected function configUI():void{
var _local1:Shape;
var _local2:Graphics;
super.configUI();
super.toggle = true;
_local1 = new Shape();
_local2 = _local1.graphics;
_local2.beginFill(0, 0);
_local2.drawRect(0, 0, 100, 100);
_local2.endFill();
background = (_local1 as DisplayObject);
addChildAt(background, 0);
}
override protected function drawLayout():void{
var _local1:Number;
super.drawLayout();
_local1 = Number(getStyleValue("textPadding"));
switch (_labelPlacement){
case ButtonLabelPlacement.RIGHT:
icon.x = _local1;
textField.x = (icon.x + (icon.width + _local1));
background.width = ((textField.x + textField.width) + _local1);
background.height = (Math.max(textField.height, icon.height) + (_local1 * 2));
break;
case ButtonLabelPlacement.LEFT:
icon.x = ((width - icon.width) - _local1);
textField.x = (((width - icon.width) - (_local1 * 2)) - textField.width);
background.width = ((textField.width + icon.width) + (_local1 * 3));
background.height = (Math.max(textField.height, icon.height) + (_local1 * 2));
break;
case ButtonLabelPlacement.TOP:
case ButtonLabelPlacement.BOTTOM:
background.width = (Math.max(textField.width, icon.width) + (_local1 * 2));
background.height = ((textField.height + icon.height) + (_local1 * 3));
break;
};
background.x = Math.min((icon.x - _local1), (textField.x - _local1));
background.y = Math.min((icon.y - _local1), (textField.y - _local1));
}
override protected function drawBackground():void{
}
override protected function initializeAccessibility():void{
if (CheckBox.createAccessibilityImplementation != null){
CheckBox.createAccessibilityImplementation(this);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 104
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import flash.display.*;
import flash.events.*;
import fl.core.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
protected var _labelPlacement:String;// = "right"
protected var _toggle:Boolean;// = false
protected var icon:DisplayObject;
protected var oldMouseState:String;
protected var mode:String;// = "center"
public var textField:TextField;
protected var _label:String;// = "Label"
private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function LabelButton(){
_labelPlacement = ButtonLabelPlacement.RIGHT;
_toggle = false;
_label = "Label";
mode = "center";
super();
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
public function get labelPlacement():String{
return (_labelPlacement);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
setMouseState(oldMouseState);
oldMouseState = null;
endPress();
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set toggle(_arg1:Boolean):void{
if (((!(_arg1)) && (super.selected))){
selected = false;
};
_toggle = _arg1;
if (_toggle){
addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true);
} else {
removeEventListener(MouseEvent.CLICK, toggleSelected);
};
invalidate(InvalidationType.STATE);
}
public function get label():String{
return (_label);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
override protected function draw():void{
if (textField.text != _label){
label = _label;
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
drawIcon();
drawTextFormat();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
public function get toggle():Boolean{
return (_toggle);
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
_local3 = (textField.textWidth + 4);
_local4 = (textField.textHeight + 4);
_local5 = ((icon)==null) ? 0 : (icon.width + _local1);
_local6 = ((icon)==null) ? 0 : (icon.height + _local1);
textField.visible = (label.length > 0);
if (icon != null){
icon.x = Math.round(((width - icon.width) / 2));
icon.y = Math.round(((height - icon.height) / 2));
};
if (textField.visible == false){
textField.width = 0;
textField.height = 0;
} else {
if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){
_local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1))));
if ((height - 2) > _local4){
_local8 = _local4;
} else {
_local8 = (height - 2);
};
_local3 = _local7;
textField.width = _local3;
_local4 = _local8;
textField.height = _local4;
textField.x = Math.round(((width - _local3) / 2));
textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0));
if (icon != null){
icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1));
};
} else {
_local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1))));
_local3 = _local7;
textField.width = _local3;
textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0));
textField.y = Math.round(((height - textField.height) / 2));
if (icon != null){
icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1));
};
};
};
super.drawLayout();
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
protected function drawIcon():void{
var _local1:DisplayObject;
var _local2:String;
var _local3:Object;
_local1 = icon;
_local2 = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
_local3 = getStyleValue(_local2);
if (_local3 == null){
_local3 = getStyleValue("icon");
};
if (_local3 != null){
icon = getDisplayObjectInstance(_local3);
};
if (icon != null){
addChildAt(icon, 1);
};
if (((!((_local1 == null))) && (!((_local1 == icon))))){
removeChild(_local1);
};
}
public function set label(_arg1:String):void{
_label = _arg1;
if (textField.text != _label){
textField.text = _label;
dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE));
};
invalidate(InvalidationType.SIZE);
invalidate(InvalidationType.STYLES);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 105
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 106
//InvalidationType (fl.core.InvalidationType)
package fl.core {
public class InvalidationType {
public static const SIZE:String = "size";
public static const ALL:String = "all";
public static const DATA:String = "data";
public static const SCROLL:String = "scroll";
public static const STATE:String = "state";
public static const STYLES:String = "styles";
public static const SELECTED:String = "selected";
public static const RENDERER_STYLES:String = "rendererStyles";
}
}//package fl.core
Section 107
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.system.*;
public class UIComponent extends Sprite {
protected var _enabled:Boolean;// = true
private var _mouseFocusEnabled:Boolean;// = true
protected var startHeight:Number;
protected var _height:Number;
protected var _oldIMEMode:String;// = null
protected var startWidth:Number;
public var focusTarget:IFocusManagerComponent;
protected var errorCaught:Boolean;// = false
protected var uiFocusRect:DisplayObject;
protected var _width:Number;
public var version:String;// = "3.0.0.15"
protected var isFocused:Boolean;// = false
protected var callLaterMethods:Dictionary;
private var _focusEnabled:Boolean;// = true
private var tempText:TextField;
protected var invalidateFlag:Boolean;// = false
protected var _inspector:Boolean;// = false
protected var sharedStyles:Object;
protected var invalidHash:Object;
protected var isLivePreview:Boolean;// = false
protected var _imeMode:String;// = null
protected var instanceStyles:Object;
protected var _x:Number;
protected var _y:Number;
public static var inCallLaterPhase:Boolean = false;
private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)};
public static var createAccessibilityImplementation:Function;
private static var focusManagers:Dictionary = new Dictionary(false);
public function UIComponent(){
version = "3.0.0.15";
isLivePreview = false;
invalidateFlag = false;
_enabled = true;
isFocused = false;
_focusEnabled = true;
_mouseFocusEnabled = true;
_imeMode = null;
_oldIMEMode = null;
errorCaught = false;
_inspector = false;
super();
instanceStyles = {};
sharedStyles = {};
invalidHash = {};
callLaterMethods = new Dictionary();
StyleManager.registerInstance(this);
configUI();
invalidate(InvalidationType.ALL);
tabEnabled = (this is IFocusManagerComponent);
focusRect = false;
if (tabEnabled){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
initializeFocusManager();
addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true);
}
public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
isFocused = _arg1;
if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){
removeChild(uiFocusRect);
uiFocusRect = null;
};
if (_arg1){
uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite);
if (uiFocusRect == null){
return;
};
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = -(_local2);
uiFocusRect.y = -(_local2);
uiFocusRect.width = (width + (_local2 * 2));
uiFocusRect.height = (height + (_local2 * 2));
addChildAt(uiFocusRect, 0);
};
}
private function callLaterDispatcher(_arg1:Event):void{
var _local2:Dictionary;
var _local3:Object;
if (_arg1.type == Event.ADDED_TO_STAGE){
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
};
_arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher);
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
inCallLaterPhase = true;
_local2 = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
private function addedHandler(_arg1:Event):void{
removeEventListener("addedToStage", addedHandler);
initializeFocusManager();
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
override public function get scaleX():Number{
return ((width / startWidth));
}
override public function get scaleY():Number{
return ((height / startHeight));
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus((_arg1.target as DisplayObject))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
isFocused = true;
};
};
}
public function setStyle(_arg1:String, _arg2:Object):void{
if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
instanceStyles[_arg1] = _arg2;
invalidate(InvalidationType.STYLES);
}
override public function get visible():Boolean{
return (super.visible);
}
public function get componentInspectorSetting():Boolean{
return (_inspector);
}
override public function get x():Number{
return ((isNaN(_x)) ? super.x : _x);
}
override public function get y():Number{
return ((isNaN(_y)) ? super.y : _y);
}
protected function setIMEMode(_arg1:Boolean){
var enabled = _arg1;
if (_imeMode != null){
if (enabled){
IME.enabled = true;
_oldIMEMode = IME.conversionMode;
try {
if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _imeMode;
};
errorCaught = false;
} catch(e:Error) {
errorCaught = true;
throw (new Error(("IME mode not supported: " + _imeMode)));
};
} else {
if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _oldIMEMode;
};
IME.enabled = false;
};
};
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSharedStyle(_arg1:String, _arg2:Object):void{
if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
sharedStyles[_arg1] = _arg2;
if (instanceStyles[_arg1] == null){
invalidate(InvalidationType.STYLES);
};
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
override public function set scaleX(_arg1:Number):void{
setSize((startWidth * _arg1), height);
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
override public function set scaleY(_arg1:Number):void{
setSize(width, (startHeight * _arg1));
}
protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{
var classDef:Object;
var skin = _arg1;
classDef = null;
if ((skin is Class)){
return ((new (skin) as DisplayObject));
};
if ((skin is DisplayObject)){
(skin as DisplayObject).x = 0;
(skin as DisplayObject).y = 0;
return ((skin as DisplayObject));
};
try {
classDef = getDefinitionByName(skin.toString());
} catch(e:Error) {
try {
classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object);
} catch(e:Error) {
};
};
if (classDef == null){
return (null);
};
return ((new (classDef) as DisplayObject));
}
protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{
var _local3:String;
for (_local3 in _arg2) {
_arg1.setStyle(_local3, getStyleValue(_arg2[_local3]));
};
}
protected function beforeComponentParameters():void{
}
protected function callLater(_arg1:Function):void{
if (inCallLaterPhase){
return;
};
callLaterMethods[_arg1] = true;
if (stage != null){
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
protected function createFocusManager():void{
if (focusManagers[stage] == null){
focusManagers[stage] = new FocusManager(stage);
};
}
override public function set visible(_arg1:Boolean):void{
var _local2:String;
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
_local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
protected function hookAccessibility(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, hookAccessibility);
initializeAccessibility();
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_inspector = _arg1;
if (_inspector){
beforeComponentParameters();
} else {
afterComponentParameters();
};
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
public function drawNow():void{
draw();
}
override public function set y(_arg1:Number):void{
move(_x, _arg1);
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus((_arg1.target as DisplayObject))){
drawFocus(false);
isFocused = false;
};
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
public function getFocus():InteractiveObject{
if (stage){
return (stage.focus);
};
return (null);
}
protected function validate():void{
invalidHash = {};
}
override public function get height():Number{
return (_height);
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
public function get enabled():Boolean{
return (_enabled);
}
protected function getScaleX():Number{
return (super.scaleX);
}
protected function getScaleY():Number{
return (super.scaleY);
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
protected function afterComponentParameters():void{
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
protected function configUI():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
isLivePreview = checkLivePreview();
_local1 = rotation;
rotation = 0;
_local2 = super.width;
_local3 = super.height;
var _local4 = 1;
super.scaleY = _local4;
super.scaleX = _local4;
setSize(_local2, _local3);
move(super.x, super.y);
rotation = _local1;
startWidth = _local2;
startHeight = _local3;
if (numChildren > 0){
removeChildAt(0);
};
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
protected function setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
private function initializeFocusManager():void{
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
};
}
public function set focusManager(_arg1:IFocusManager):void{
UIComponent.focusManagers[this] = _arg1;
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function get focusManager():IFocusManager{
var _local1:DisplayObject;
_local1 = this;
while (_local1) {
if (UIComponent.focusManagers[_local1] != null){
return (IFocusManager(UIComponent.focusManagers[_local1]));
};
_local1 = _local1.parent;
};
return (null);
}
override public function get width():Number{
return (_width);
}
public function move(_arg1:Number, _arg2:Number):void{
_x = _arg1;
_y = _arg2;
super.x = Math.round(_arg1);
super.y = Math.round(_arg2);
dispatchEvent(new ComponentEvent(ComponentEvent.MOVE));
}
public function validateNow():void{
invalidate(InvalidationType.ALL, false);
draw();
}
public function getStyle(_arg1:String):Object{
return (instanceStyles[_arg1]);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local2:Object;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:String;
_local2 = {};
_local3 = _args.length;
_local4 = 0;
while (_local4 < _local3) {
_local5 = _args[_local4];
for (_local6 in _local5) {
if (_local2[_local6] != null){
} else {
_local2[_local6] = _args[_local4][_local6];
};
};
_local4++;
};
return (_local2);
}
}
}//package fl.core
Section 108
//ComponentEvent (fl.events.ComponentEvent)
package fl.events {
import flash.events.*;
public class ComponentEvent extends Event {
public static const HIDE:String = "hide";
public static const BUTTON_DOWN:String = "buttonDown";
public static const MOVE:String = "move";
public static const RESIZE:String = "resize";
public static const ENTER:String = "enter";
public static const LABEL_CHANGE:String = "labelChange";
public static const SHOW:String = "show";
public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("ComponentEvent", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new ComponentEvent(type, bubbles, cancelable));
}
}
}//package fl.events
Section 109
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import fl.core.*;
import flash.text.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Dictionary;
private var _showFocusIndicator:Boolean;// = true
private var defButton:Button;
private var focusableCandidates:Array;
private var _form:DisplayObjectContainer;
private var _defaultButtonEnabled:Boolean;// = true
private var activated:Boolean;// = false
private var _defaultButton:Button;
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var lastAction:String;
public function FocusManager(_arg1:DisplayObjectContainer){
activated = false;
calculateCandidates = true;
_showFocusIndicator = true;
_defaultButtonEnabled = true;
super();
focusableObjects = new Dictionary(true);
if (_arg1 != null){
_form = _arg1;
addFocusables(DisplayObject(_arg1));
_arg1.addEventListener(Event.ADDED, addedHandler);
_arg1.addEventListener(Event.REMOVED, removedHandler);
activate();
};
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local5:int;
var _local6:int;
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
_local5 = focusableCandidates.length;
_local6 = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
public function set form(_arg1:DisplayObjectContainer):void{
_form = _arg1;
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var io:InteractiveObject;
var doc:DisplayObjectContainer;
var i:int;
var child:DisplayObject;
var o = _arg1;
var skipTopLevel = _arg2;
if (!skipTopLevel){
if ((o is IFocusManagerComponent)){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects[o] = true;
calculateCandidates = true;
};
o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
} else {
if ((o is InteractiveObject)){
io = (o as InteractiveObject);
if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){
focusableObjects[io] = true;
calculateCandidates = true;
};
io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){
i = 0;
while (i < doc.numChildren) {
try {
child = doc.getChildAt(i);
if (child != null){
addFocusables(doc.getChildAt(i));
};
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
return (_arg1.getChildIndex(_arg2));
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
_local2 = (_arg1.target as InteractiveObject);
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var _local2:InteractiveObject;
_local2 = _arg1;
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
};
return (_local2);
}
private function sortFocusableObjectsTabIndex():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){
focusableCandidates.push(_local2);
};
};
focusableCandidates.sort(sortByTabIndex);
}
private function removeFocusables(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:DisplayObject;
if ((_arg1 is DisplayObjectContainer)){
_arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
_arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
for (_local2 in focusableObjects) {
_local3 = DisplayObject(_local2);
if (DisplayObjectContainer(_arg1).contains(_local3)){
if (_local3 == lastFocus){
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local2];
calculateCandidates = true;
};
};
};
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject;
_local2 = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
while (_arg1 != InteractiveObject(form)) {
if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
if (_arg1 == null){
break;
};
};
return (null);
}
private function tabChildrenChangeHandler(_arg1:Event):void{
var _local2:DisplayObjectContainer;
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
_local2 = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject;
_local1 = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
var _local3:TextField;
var _local4:SimpleButton;
_local2 = DisplayObject(form).parent;
while (_arg1 != _local2) {
if ((_arg1 is UIComponent)){
if (!UIComponent(_arg1).enabled){
return (false);
};
} else {
if ((_arg1 is TextField)){
_local3 = TextField(_arg1);
if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){
return (false);
};
} else {
if ((_arg1 is SimpleButton)){
_local4 = SimpleButton(_arg1);
if (!_local4.enabled){
return (false);
};
};
};
};
if (!_arg1.visible){
return (false);
};
_arg1 = _arg1.parent;
};
return (true);
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button;
_local2 = (_arg1) ? Button(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
if (!hasFocusableObjects()){
return;
};
_local2 = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_local2);
};
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
private function sortFocusableObjects():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local2);
};
focusableCandidates.sort(sortByDepth);
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
showFocusIndicator = true;
if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local2:int;
var _local3:int;
_local2 = focusableCandidates.length;
_local3 = 0;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
public function hideFocus():void{
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local3:DisplayObject;
var _local4:InteractiveObject;
_local3 = DisplayObject(_arg1.target);
if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){
if (_local3 == lastFocus){
IFocusManagerComponent(lastFocus).drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local3];
calculateCandidates = true;
} else {
if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){
_local4 = (_local3 as InteractiveObject);
if (_local4){
if (_local4 == lastFocus){
lastFocus = null;
};
delete focusableObjects[_local4];
calculateCandidates = true;
};
_local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
};
};
removeFocusables(_local3);
}
private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:String;
var _local7:String;
var _local8:String;
var _local9:DisplayObject;
var _local10:DisplayObject;
_local3 = "";
_local4 = "";
_local8 = "0000";
_local9 = DisplayObject(_arg1);
_local10 = DisplayObject(_arg2);
while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) {
_local5 = getChildIndex(_local9.parent, _local9);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local3 = (_local7 + _local3);
_local9 = _local9.parent;
};
while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) {
_local5 = getChildIndex(_local10.parent, _local10);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local4 = (_local7 + _local4);
_local10 = _local10.parent;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0);
}
public function get defaultButton():Button{
return (_defaultButton);
}
private function activateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
if (lastFocus){
if ((lastFocus is IFocusManagerComponent)){
IFocusManagerComponent(lastFocus).setFocus();
} else {
form.stage.focus = lastFocus;
};
};
lastAction = "ACTIVATE";
}
public function showFocus():void{
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{
var _local2:DisplayObject;
var _local3:String;
var _local4:int;
var _local5:Boolean;
var _local6:int;
var _local7:int;
var _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
_local2 = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
_local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
_local4 = getIndexOfFocusedObject(_local2);
_local5 = false;
_local6 = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
_local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
var _local2:InteractiveObject;
if (_arg1.isDefaultPrevented()){
return;
};
_local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(_local2);
};
lastAction = "MOUSEDOWN";
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
_local2 = _arg1.parent;
while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) {
if (!_local2.tabChildren){
return (false);
};
_local2 = _local2.parent;
};
return (true);
}
public function get nextTabIndex():int{
return (0);
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
sendDefaultButtonEvent();
};
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
var _local3:Button;
_local2 = InteractiveObject(_arg1.target);
if (form.contains(_local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is Button)){
_local3 = Button(lastFocus);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
private function tabEnabledChangeHandler(_arg1:Event):void{
var _local2:InteractiveObject;
var _local3:Boolean;
calculateCandidates = true;
_local2 = InteractiveObject(_arg1.target);
_local3 = (focusableObjects[_local2] == true);
if (_local2.tabEnabled){
if (((!(_local3)) && (isTabVisible(_local2)))){
if (!(_local2 is IFocusManagerComponent)){
_local2.focusRect = false;
};
focusableObjects[_local2] = true;
};
} else {
if (_local3){
delete focusableObjects[_local2];
};
};
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
public function get form():DisplayObjectContainer{
return (_form);
}
private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{
return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function activate():void{
if (activated){
return;
};
form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function deactivate():void{
form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler);
form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.removeEventListener(Event.ACTIVATE, activateHandler);
form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
}
}//package fl.managers
Section 110
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
public interface IFocusManager {
function getFocus():InteractiveObject;
function deactivate():void;
function set defaultButton(_arg1:Button):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function get nextTabIndex():int;
function get defaultButton():Button;
function get showFocusIndicator():Boolean;
function setFocus(_arg1:InteractiveObject):void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function hideFocus():void;
function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
}
}//package fl.managers
Section 111
//IFocusManagerComponent (fl.managers.IFocusManagerComponent)
package fl.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package fl.managers
Section 112
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
function get groupName():String;
function get selected():Boolean;
}
}//package fl.managers
Section 113
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import flash.utils.*;
import fl.core.*;
import flash.text.*;
public class StyleManager {
private var globalStyles:Object;
private var classToDefaultStylesDict:Dictionary;
private var styleToClassesHash:Object;
private var classToStylesDict:Dictionary;
private var classToInstancesDict:Dictionary;
private static var _instance:StyleManager;
public function StyleManager(){
styleToClassesHash = {};
classToInstancesDict = new Dictionary(true);
classToStylesDict = new Dictionary(true);
classToDefaultStylesDict = new Dictionary(true);
globalStyles = UIComponent.getStyleDefinition();
}
public static function clearComponentStyle(_arg1:Object, _arg2:String):void{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){
delete _local4[_arg2];
invalidateComponentStyle(_local3, _arg2);
};
}
private static function getClassDef(_arg1:Object):Class{
var component = _arg1;
if ((component is Class)){
return ((component as Class));
};
try {
return ((getDefinitionByName(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
if ((component is UIComponent)){
try {
return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
};
};
};
return (null);
}
public static function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Class;
var _local5:Object;
_local4 = getClassDef(_arg1);
_local5 = getInstance().classToStylesDict[_local4];
if (_local5 == null){
_local5 = (getInstance().classToStylesDict[_local4] = {});
};
if (_local5 == _arg3){
return;
};
_local5[_arg2] = _arg3;
invalidateComponentStyle(_local4, _arg2);
}
private static function setSharedStyles(_arg1:UIComponent):void{
var _local2:StyleManager;
var _local3:Class;
var _local4:Object;
var _local5:String;
_local2 = getInstance();
_local3 = getClassDef(_arg1);
_local4 = _local2.classToDefaultStylesDict[_local3];
for (_local5 in _local4) {
_arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5));
};
}
public static function getComponentStyle(_arg1:Object, _arg2:String):Object{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
return (((_local4)==null) ? null : _local4[_arg2]);
}
private static function getInstance(){
if (_instance == null){
_instance = new (StyleManager);
};
return (_instance);
}
private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{
var _local3:Dictionary;
var _local4:Object;
var _local5:UIComponent;
_local3 = getInstance().classToInstancesDict[_arg1];
if (_local3 == null){
return;
};
for (_local4 in _local3) {
_local5 = (_local4 as UIComponent);
if (_local5 == null){
} else {
_local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2));
};
};
}
private static function invalidateStyle(_arg1:String):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
public static function registerInstance(_arg1:UIComponent):void{
var inst:StyleManager;
var classDef:Class;
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
inst = getInstance();
classDef = getClassDef(instance);
if (classDef == null){
return;
};
if (inst.classToInstancesDict[classDef] == null){
inst.classToInstancesDict[classDef] = new Dictionary(true);
target = classDef;
while (defaultStyles == null) {
if (target["getStyleDefinition"] != null){
defaultStyles = target["getStyleDefinition"]();
break;
};
try {
target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class);
} catch(err:Error) {
try {
target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class);
} catch(e:Error) {
defaultStyles = UIComponent.getStyleDefinition();
break;
};
};
};
styleToClasses = inst.styleToClassesHash;
for (n in defaultStyles) {
if (styleToClasses[n] == null){
styleToClasses[n] = new Dictionary(true);
};
styleToClasses[n][classDef] = true;
};
inst.classToDefaultStylesDict[classDef] = defaultStyles;
inst.classToStylesDict[classDef] = {};
};
inst.classToInstancesDict[classDef][instance] = true;
setSharedStyles(instance);
}
public static function getStyle(_arg1:String):Object{
return (getInstance().globalStyles[_arg1]);
}
private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{
var _local3:Class;
var _local4:StyleManager;
var _local5:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance();
_local5 = _local4.classToStylesDict[_local3][_arg2];
if (_local5 != null){
return (_local5);
};
_local5 = _local4.globalStyles[_arg2];
if (_local5 != null){
return (_local5);
};
return (_local4.classToDefaultStylesDict[_local3][_arg2]);
}
public static function setStyle(_arg1:String, _arg2:Object):void{
var _local3:Object;
_local3 = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
}
}//package fl.managers
Section 114
//BolaParent (Game.Preloader.BolaParent)
package Game.Preloader {
import flash.display.*;
public class BolaParent extends MovieClip {
public var av:Number;
public var radius:Number;
public var vx:Number;
public var vy:Number;
}
}//package Game.Preloader
Section 115
//FisicaBola (Game.Preloader.FisicaBola)
package Game.Preloader {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import MyUtils.*;
public class FisicaBola extends Sprite {
const BORDES:Rectangle;
const GRAVEDAD:Number = 1.5;
const RESTITUTION:Number = 0.9;
const DAMPING:Number = 0.98;
var oldY:Number;
var oldX:Number;
var dragRect:Rectangle;
var bola:BolaPreloader;
public function FisicaBola(){
BORDES = new Rectangle(0, 0, 700, 600);
super();
bola = new BolaPreloader();
bola.x = (BORDES.right / 2);
bola.y = (BORDES.bottom / 2);
bola.vx = Utils.randomRange(10, 30);
bola.vy = Utils.randomRange(10, 30);
bola.av = bola.vx;
bola.radius = (bola.width / 2);
addChild(bola);
dragRect = new Rectangle((BORDES.left + bola.radius), (BORDES.top + bola.radius), (BORDES.right - bola.radius), (BORDES.bottom - bola.radius));
oldX = bola.x;
oldY = bola.y;
addEventListener(Event.ENTER_FRAME, updateBallPhysics, false, 0, true);
bola.addEventListener(MouseEvent.MOUSE_DOWN, lMouseDown, false, 0, true);
}
function lMouseUp(_arg1:Event){
var _local2:*;
var _local3:*;
bola.stopDrag();
removeEventListener(MouseEvent.MOUSE_UP, lMouseUp);
removeEventListener(MouseEvent.MOUSE_OUT, lMouseUp);
removeEventListener(Event.DEACTIVATE, lMouseUp);
removeEventListener(Event.ENTER_FRAME, updateBallVelocity);
addEventListener(Event.ENTER_FRAME, updateBallPhysics, false, 0, true);
_local2 = (bola.x - oldX);
_local3 = (bola.y - oldY);
if (_local2 < 0){
_local2 = Math.max(_local2, -30);
} else {
_local2 = Math.min(_local2, 30);
};
if (_local3 < 0){
_local3 = Math.max(_local3, -30);
} else {
_local3 = Math.min(_local3, 30);
};
bola.av = _local2;
bola.vx = _local2;
bola.vy = _local3;
}
function updateBallVelocity(_arg1:Event){
oldX = bola.x;
oldY = bola.y;
}
function updateBallPhysics(_arg1:Event){
bola.vy = (bola.vy + GRAVEDAD);
bola.vx = (bola.vx * DAMPING);
bola.vy = (bola.vy * DAMPING);
bola.av = bola.vx;
bola.x = (bola.x + bola.vx);
bola.y = (bola.y + bola.vy);
bola.rotation = (bola.rotation + bola.av);
if (!BORDES.containsRect(bola.getRect(this))){
if ((bola.x - bola.radius) < BORDES.left){
bola.x = (BORDES.left + bola.radius);
bola.vx = (bola.vx * -(RESTITUTION));
} else {
if ((bola.x + bola.radius) > BORDES.right){
bola.x = (BORDES.right - bola.radius);
bola.vx = (bola.vx * -(RESTITUTION));
};
};
if ((bola.y - bola.radius) < BORDES.top){
bola.y = (BORDES.top + bola.radius);
bola.vy = (bola.vy * -(RESTITUTION));
} else {
if ((bola.y + bola.radius) > BORDES.bottom){
bola.y = (BORDES.bottom - bola.radius);
bola.vy = (bola.vy * -(RESTITUTION));
};
};
};
}
function lMouseDown(_arg1:MouseEvent){
bola.startDrag(false, dragRect);
addEventListener(MouseEvent.MOUSE_UP, lMouseUp, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, lMouseUp, false, 0, true);
addEventListener(Event.DEACTIVATE, lMouseUp, false, 0, true);
addEventListener(Event.ENTER_FRAME, updateBallVelocity, false, 0, true);
removeEventListener(Event.ENTER_FRAME, updateBallPhysics);
}
public function disable(){
removeEventListener(Event.ENTER_FRAME, updateBallPhysics);
}
}
}//package Game.Preloader
Section 116
//CreditsState (Game.States.CreditsState)
package Game.States {
import flash.events.*;
import Game.*;
public class CreditsState extends GameState {
public function onBack(){
fadeAndSetState("MainMenu");
}
override public function onEnter(){
Messager.dispatch(new Event(Events.ENTER_CREDITS));
}
override public function onExit(){
Messager.dispatch(new Event(Events.EXIT_CREDITS));
}
}
}//package Game.States
Section 117
//GameOverState (Game.States.GameOverState)
package Game.States {
import flash.events.*;
import Game.*;
public class GameOverState extends GameState {
public function onBackToMenu(){
setState("MainMenu");
}
override public function onEnter(){
Glob.gameCompleted = true;
Messager.dispatch(new Event(Events.ENTER_GAME_OVER));
}
override public function onExit(){
Messager.dispatch(new Event(Events.EXIT_GAME_OVER));
}
}
}//package Game.States
Section 118
//InitState (Game.States.InitState)
package Game.States {
import Game.*;
public class InitState extends GameState {
public function onGameStarted(){
setState("MainMenu");
}
override public function onEnter(){
}
override public function onExit(){
}
}
}//package Game.States
Section 119
//InterLevelState (Game.States.InterLevelState)
package Game.States {
import flash.events.*;
import Game.*;
public class InterLevelState extends GameState {
public function onLevelSelect(){
setState("LevelSelect");
}
public function onNextLevel(){
setState("Play");
}
override public function onEnter(){
Messager.dispatch(new Event(Events.ENTER_INTERLEVEL));
}
override public function onExit(){
Messager.dispatch(new Event(Events.EXIT_INTERLEVEL));
}
}
}//package Game.States
Section 120
//LevelSelectState (Game.States.LevelSelectState)
package Game.States {
import flash.events.*;
import Game.*;
public class LevelSelectState extends GameState {
public function onLevelSelected(_arg1:int){
controller.currentLv.value = _arg1;
fadeAndSetState("Play");
}
override public function onEnter(){
Messager.dispatch(new Event(Events.ENTER_LEVEL_SELECT));
}
override public function onExit(){
Messager.dispatch(new Event(Events.EXIT_LEVEL_SELECT));
}
}
}//package Game.States
Section 121
//MainMenuState (Game.States.MainMenuState)
package Game.States {
import flash.events.*;
import flash.net.*;
import Game.*;
public class MainMenuState extends GameState {
public function onScores(){
var _local1:URLRequest;
_local1 = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1509&subid=scores&action=viewscores");
navigateToURL(_local1, "_blank");
}
public function onWalkthrough(){
var _local1:URLRequest;
_local1 = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1509&subid=walkthrough&action=walkthrough_STBC2");
navigateToURL(_local1, "_blank");
}
public function onSpin1(){
var _local1:URLRequest;
_local1 = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1509&subid=playSTBC1&action=playSTBC1");
navigateToURL(_local1, "_blank");
}
public function onPlay(){
controller.currentLv.value = 0;
fadeAndSetState("LevelSelect");
}
public function onITunes(){
var _local1:URLRequest;
_local1 = new URLRequest("http://click.linksynergy.com/fs-bin/stat?id=eH8NOY8fBFE&offerid=78941&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fphobos.apple.com%252FWebObjects%252FMZStore.woa%252Fwa%252FviewAlbum%253Fid%253D317961420%2526s%253D143441%2526partnerId%253D30");
navigateToURL(_local1, "_blank");
}
override public function onEnter(){
Messager.dispatch(new Event(Events.ENTER_MAIN_MENU));
}
public function onCredits(){
fadeAndSetState("Credits");
}
override public function onExit(){
Messager.dispatch(new Event(Events.EXIT_MAIN_MENU));
}
public function onOptions(){
fadeAndSetState("Options");
}
}
}//package Game.States
Section 122
//OptionsState (Game.States.OptionsState)
package Game.States {
import flash.events.*;
import MyUtils.StateMachine.*;
import Game.*;
public class OptionsState extends GameState {
public function onDifficultySelected(_arg1:Object){
if (((((((!((controller.currentDifficulty.value == _arg1.difficulty))) || (!((Glob.reducedFps == _arg1.reduceFps))))) || (!((Glob.backgroundQuality == _arg1.backgroundQuality))))) || (!((Glob.objectQuality == _arg1.objectQuality))))){
controller.currentDifficulty.value = _arg1.difficulty;
Glob.difficulty = _arg1.difficulty;
Glob.reducedFps = _arg1.reduceFps;
Glob.backgroundQuality = _arg1.backgroundQuality;
Glob.objectQuality = _arg1.objectQuality;
};
Glob.showTips = _arg1.showTips;
Glob.skipMsg = _arg1.skipMsg;
Glob.sfxOn = _arg1.sfx;
if (Glob.musicOn != _arg1.music){
Glob.toggleMusic();
};
fadeAndSetState("MainMenu");
}
override public function onEnter(){
Messager.dispatch(new Event(Events.ENTER_DIFFICULTY));
}
override public function onExit(){
Messager.dispatch(new Event(Events.EXIT_DIFFICULTY));
}
}
}//package Game.States
Section 123
//PlayState (Game.States.PlayState)
package Game.States {
import flash.events.*;
import flash.net.*;
import MyUtils.StateMachine.*;
import Game.*;
public class PlayState extends GameState {
var simulator:Simulator;
var substate:int;
var tries:int;
var scheduledFunction:Function;
var restartTimer:int;
static const PLAY:int = 1;
static const PAUSE:int = 2;
static const INACTIVE:int = 4;
static const MENU:int = 3;
public function PlayState(_arg1:Simulator){
simulator = _arg1;
simulator.addEventListener(Events.LEVEL_COMPLETED, lLevelCompleted, false, 0, true);
simulator.addEventListener(Events.LEVEL_RESTART, lLevelRestart, false, 0, true);
if (!Constants.DEBUG){
simulator.addEventListener(Events.LEVEL_FAILED, lLevelRestart, false, 0, true);
};
scheduledFunction = restartLevel;
}
override public function onEnter(){
tries = 0;
substate = PLAY;
enterPlay();
loadLevel();
Messager.dispatch(new Event(Events.ENTER_PLAY));
}
function lLevelCompleted(_arg1:Event):void{
var _local2:int;
_local2 = simulator.getLevelTime();
checkNewScore(int(controller.currentLv.value), _local2, controller.currentDifficulty.value);
restartTimer = 60;
scheduledFunction = nextLevel;
substate = INACTIVE;
}
public function onTipsClosed(_arg1:Boolean):void{
substate = PLAY;
if (_arg1){
Glob.showTips = false;
};
enterPlay();
simulator.refocus();
}
function lLevelRestart(_arg1:Event):void{
if (_arg1.type == Events.LEVEL_FAILED){
restartTimer = 60;
scheduledFunction = restartLevel;
substate = INACTIVE;
return;
};
Glob.main.fadeOut(0.2, loadLevel);
}
override public function onUpdate(){
switch (substate){
case PLAY:
simulator.update();
break;
case INACTIVE:
simulator.update();
restartTimer--;
if (restartTimer <= 0){
scheduledFunction();
};
break;
};
}
function checkNewScore(_arg1:int, _arg2:int, _arg3:Number):void{
var _local4:Number;
var _local5:Number;
var _local6:int;
_local4 = Glob.levelMultiplier(_arg1);
_local5 = Glob.difficultyMultiplier(_arg3);
_local6 = Glob.getScore(_arg2, _local5, _local4);
controller.lastScore = _local6;
controller.lastTime = _arg2;
controller.lastDifficulty = _local5;
controller.lastLevelMult = _local4;
controller.lastLevel = _arg1;
if (_local6 > Glob.levelScore(_arg1)){
Glob.updateScore(_arg1, _local6, _arg2, _local5);
};
}
public function onHelpClosed():void{
if (substate != INACTIVE){
substate = PLAY;
simulator.refocus();
};
}
function restartLevel():void{
var _local1:Array;
tries++;
if ((((((tries == Constants.TRIES_BEFORE_SKIP_MSG)) && (Glob.skipMsg))) && ((int(controller.currentLv.value) < (Constants.numLevels - 1))))){
_local1 = Glob.getUnlockedLevels();
if (_local1[(int(controller.currentLv.value) + 1)]){
Messager.dispatch(new Event(Events.ENTER_SKIP_MSG));
substate = PAUSE;
exitPlay();
return;
};
};
substate = PLAY;
Glob.main.fadeOut(0.2, loadLevel);
}
public function onLevelSelect():void{
if (substate != INACTIVE){
setState("LevelSelect");
};
}
public function exitPlay():void{
Messager.getInstance().removeEventListener(Events.MOVIE_LOST_FOCUS, onFocusLost);
Messager.getInstance().removeEventListener(Events.MOVIE_GAINED_FOCUS, onFocusGained);
}
public function onFocusLost(_arg1:Event):void{
if (substate != INACTIVE){
substate = PAUSE;
};
}
public function onBackToMenu():void{
if (substate != INACTIVE){
setState("MainMenu");
};
}
override public function onExit(){
exitPlay();
Messager.dispatch(new Event(Events.EXIT_PLAY));
}
public function onTipsOpen():void{
if (substate != INACTIVE){
substate = PAUSE;
};
}
public function onShowHelp():void{
if (substate != INACTIVE){
substate = PAUSE;
Messager.dispatch(new Event(Events.ENTER_HELP));
};
}
function nextLevel():void{
controller.currentLv.addValue(1);
if ((((int(controller.currentLv.value) >= Constants.numLevels)) && (!(Glob.gameCompleted)))){
setState("GameOver");
} else {
setState("InterLevel");
};
}
public function onDifficultySelect():void{
if (substate != INACTIVE){
Messager.dispatch(new Event(Events.ENTER_DIFFICULTY));
substate = MENU;
exitPlay();
};
}
public function onSkipMsgClosed(_arg1:Object):void{
if (_arg1.never == true){
Glob.skipMsg = false;
};
if (_arg1.answer == true){
controller.currentLv.addValue(1);
tries = 0;
};
substate = PLAY;
enterPlay();
loadLevel();
}
public function onWalk():void{
var _local1:URLRequest;
_local1 = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1509&subid=walkthrough&action=walkthrough_STBC2");
navigateToURL(_local1, "_blank");
}
public function onFocusGained(_arg1:Event):void{
if (substate != INACTIVE){
substate = PLAY;
simulator.refocus();
};
}
public function enterPlay():void{
Messager.getInstance().addEventListener(Events.MOVIE_LOST_FOCUS, onFocusLost, false, 0, true);
Messager.getInstance().addEventListener(Events.MOVIE_GAINED_FOCUS, onFocusGained, false, 0, true);
}
public function onDifficultySelected(_arg1:Object):void{
substate = PLAY;
enterPlay();
simulator.refocus();
if (((((((!((controller.currentDifficulty.value == _arg1.difficulty))) || (!((Glob.reducedFps == _arg1.reduceFps))))) || (!((Glob.backgroundQuality == _arg1.backgroundQuality))))) || (!((Glob.objectQuality == _arg1.objectQuality))))){
controller.currentDifficulty.value = _arg1.difficulty;
Glob.difficulty = _arg1.difficulty;
Glob.reducedFps = _arg1.reduceFps;
Glob.backgroundQuality = _arg1.backgroundQuality;
Glob.objectQuality = _arg1.objectQuality;
loadLevel();
};
Glob.showTips = _arg1.showTips;
Glob.skipMsg = _arg1.skipMsg;
Glob.sfxOn = _arg1.sfx;
if (Glob.musicOn != _arg1.music){
Glob.toggleMusic();
};
Messager.dispatch(new Event(Events.EXIT_DIFFICULTY));
}
function loadLevel():void{
var _local1:Class;
_local1 = Glob.getLevel(int(controller.currentLv.value));
simulator.loadLevel(new (_local1), new (Constants.balls[int(controller.currentBall.value)]), controller.currentDifficulty.value);
Messager.dispatch(new Event(Events.LEVEL_CHANGED));
}
}
}//package Game.States
Section 124
//DifficultyView (Game.Views.DifficultyView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
public class DifficultyView extends View {
var interfaceMC:MovieClip;
public function DifficultyView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
interfaceMC = _arg3;
addChild(interfaceMC);
interfaceMC.addEventListener(Events.DIFFICULTY_SELECTED, close, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_DIFFICULTY, show, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_DIFFICULTY, hide, false, 0, true);
hide(null);
}
override protected function show(_arg1:Event){
interfaceMC.setDifficulty(controller.currentDifficulty);
interfaceMC.setFpsCheckBox(Glob.reducedFps);
interfaceMC.setBQCheckBox(Glob.backgroundQuality);
interfaceMC.setOQCheckBox(Glob.objectQuality);
interfaceMC.setTipsCheckBox(Glob.showTips);
interfaceMC.setSkipCheckBox(Glob.skipMsg);
interfaceMC.setMusicCheckBox(Glob.musicOn);
interfaceMC.setSFXCheckBox(Glob.sfxOn);
super.show(_arg1);
}
function close(_arg1:Event):void{
var _local2:Object;
_local2 = new Object();
_local2.difficulty = interfaceMC.getDifficulty();
_local2.reduceFps = interfaceMC.getFpsCheckBox();
_local2.backgroundQuality = interfaceMC.getBQCheckBox();
_local2.objectQuality = interfaceMC.getOQCheckBox();
_local2.showTips = interfaceMC.getTipsCheckBox();
_local2.skipMsg = interfaceMC.getSkipCheckBox();
_local2.music = interfaceMC.getMusicCheckBox();
_local2.sfx = interfaceMC.getSFXCheckBox();
controller.onMsg("onDifficultySelected", _local2);
}
}
}//package Game.Views
Section 125
//FocusLostView (Game.Views.FocusLostView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import Game.*;
import CPMStar.*;
import flash.ui.*;
public class FocusLostView extends View {
var interfaceMC:MovieClip;
var adBox:MovieClip;
var adTimer:Timer;
public function FocusLostView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
interfaceMC = _arg3;
addChild(interfaceMC);
Messager.getInstance().addEventListener(Events.MOVIE_LOST_FOCUS, show, false, 0, true);
interfaceMC.addEventListener(MouseEvent.CLICK, focusRegained, false, 0, true);
interfaceMC.bbsplash.addEventListener(MouseEvent.CLICK, splashClicked, false, 0, true);
hide(null);
}
override protected function hide(_arg1:Event){
interfaceMC.bbsplash.stop();
super.hide(_arg1);
thestage.frameRate = 120;
}
function focusRegained(_arg1:Event):void{
hide(null);
Mouse.hide();
Messager.dispatch(new Event(Events.MOVIE_GAINED_FOCUS));
}
function removeAd(){
removeChild(adBox);
adBox = null;
thestage.frameRate = 120;
}
function splashClicked(_arg1:Event):void{
Glob.bubbleboxLogoLink2("focusLost");
}
override protected function show(_arg1:Event){
var _local2:String;
var _local3:DisplayObject;
interfaceMC.bbsplash.gotoAndPlay(0);
super.show(_arg1);
if (!adBox){
adBox = new AdContainer();
adBox.x = 193;
adBox.y = 50;
addChild(adBox);
_local2 = "980QBE985077";
_local3 = new AdLoader(_local2);
adBox.addChild(_local3);
setTimeout(removeAd, 30000);
};
thestage.frameRate = 30;
}
}
}//package Game.Views
Section 126
//GameOverView (Game.Views.GameOverView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
public class GameOverView extends View {
var gameOverMC:MovieClip;
public function GameOverView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
gameOverMC = _arg3;
addChild(gameOverMC);
gameOverMC.addEventListener(Events.BACK_TO_MENU, backToMenu, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_GAME_OVER, show, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_GAME_OVER, hide, false, 0, true);
hide(null);
}
function backToMenu(_arg1:Event):void{
controller.onMsg("onBackToMenu");
}
}
}//package Game.Views
Section 127
//HelpView (Game.Views.HelpView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
public class HelpView extends View {
var interfaceMC:MovieClip;
public function HelpView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
interfaceMC = _arg3;
addChild(interfaceMC);
Messager.getInstance().addEventListener(Events.ENTER_HELP, show);
interfaceMC.playButton.addEventListener(MouseEvent.CLICK, lPlay, false, 0, true);
interfaceMC.walkthroughButton.addEventListener(MouseEvent.CLICK, lWalk, false, 0, true);
hide(null);
}
function lWalk(_arg1:Event):void{
controller.onMsg("onWalk");
}
function lPlay(_arg1:Event):void{
controller.onMsg("onHelpClosed");
hide(null);
}
}
}//package Game.Views
Section 128
//InGameInterfaceView (Game.Views.InGameInterfaceView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
public class InGameInterfaceView extends View {
var simulator:Simulator;
var interfaceMC:MovieClip;
public function InGameInterfaceView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip, _arg4:Simulator){
super(_arg1, _arg2);
interfaceMC = _arg3;
addChild(interfaceMC);
simulator = _arg4;
interfaceMC.addEventListener(Events.DIFFICULTY_SELECT, difficultySelect, false, 0, true);
interfaceMC.addEventListener(Events.LEVEL_SELECT, levelSelect, false, 0, true);
interfaceMC.addEventListener(Events.TOGGLE_MUSIC, toggleMusic, false, 0, true);
interfaceMC.addEventListener(Events.TOGGLE_SFX, toggleSFX, false, 0, true);
interfaceMC.addEventListener(Events.BACK_TO_MENU, backToMenu, false, 0, true);
interfaceMC.addEventListener(Events.SHOW_TIPS, showTips, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_PLAY, show, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_PLAY, hide, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_DIFFICULTY, disable, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_DIFFICULTY, enable, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_LEVEL_SELECT, disable, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_LEVEL_SELECT, enable, false, 0, true);
Messager.getInstance().addEventListener(Events.LEVEL_CHANGED, updateDisplay, false, 0, true);
hide(null);
}
function updateTimer(_arg1:Event):void{
var _local2:Object;
_local2 = formatTime(simulator.getLevelTime(), Glob.fps);
interfaceMC.minTimer.text = _local2.minutes;
interfaceMC.secTimer.text = _local2.seconds;
interfaceMC.centTimer.text = _local2.cent;
}
function toggleMusic(_arg1:Event):void{
controller.onMsg("onToggleMusic");
}
function backToMenu(_arg1:Event):void{
controller.onMsg("onBackToMenu");
}
public function formatTime(_arg1:int, _arg2:int):Object{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:int;
_local3 = Math.floor((Number(_arg1) / _arg2));
_local4 = Math.floor((_local3 / 60));
_local5 = Math.floor((_local4 / 60));
_local6 = (_arg1 % _arg2);
_local6 = Math.floor((_local6 * (100 / _arg2)));
_local4 = (_local4 - (_local5 * 60));
_local3 = (_local3 - (((_local5 * 60) * 60) + (_local4 * 60)));
return ({minutes:String(_local4), seconds:String(_local3), cent:String(_local6)});
}
function enable(_arg1:Event):void{
interfaceMC.enabled = true;
interfaceMC.mouseChildren = true;
stage.addEventListener(Event.ENTER_FRAME, updateTimer, false, 0, true);
updateDisplay();
}
function toggleSFX(_arg1:Event):void{
controller.onMsg("onToggleSFX");
}
function difficultySelect(_arg1:Event):void{
controller.onMsg("onDifficultySelect");
}
function levelSelect(_arg1:Event):void{
controller.onMsg("onLevelSelect");
}
function updateDisplay(_arg1:Event=null):void{
interfaceMC.multiplier.text = ("" + Glob.difficultyMultiplier(controller.currentDifficulty.value).toFixed(2));
stage.focus = stage;
interfaceMC.level.text = ("Level " + (controller.currentLv.value + 1));
}
function showTips(_arg1:Event):void{
controller.onMsg("onShowHelp");
}
function disable(_arg1:Event):void{
interfaceMC.enabled = false;
interfaceMC.mouseChildren = false;
stage.removeEventListener(Event.ENTER_FRAME, updateTimer);
}
override protected function show(_arg1:Event){
super.show(_arg1);
updateDisplay();
}
}
}//package Game.Views
Section 129
//InGameView (Game.Views.InGameView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
public class InGameView extends View {
var simulator:Simulator;
var levelMC:MovieClip;
var fondoMC:Bitmap;
public function InGameView(_arg1:MainController, _arg2:Stage, _arg3:Simulator){
var _local4:BitmapData;
super(_arg1, _arg2);
simulator = _arg3;
Messager.getInstance().addEventListener(Events.LEVEL_CHANGED, updateLevel, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_PLAY, show, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_PLAY, hide, false, 0, true);
_local4 = new Fondo(700, 600);
fondoMC = new Bitmap(_local4);
fondoMC.x = (-(Constants.SCREEN_WIDTH) / 2);
fondoMC.y = (-(Constants.SCREEN_HEIGHT) / 2);
addChild(fondoMC);
hide(null);
}
function updateLevel(_arg1:Event):void{
if (levelMC){
removeChild(levelMC);
levelMC = null;
};
levelMC = simulator.getLevel();
addChild(levelMC);
simulator.refocus();
}
}
}//package Game.Views
Section 130
//InterLevelView (Game.Views.InterLevelView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
import flash.ui.*;
public class InterLevelView extends View {
var interLevelMC:MovieClip;
public function InterLevelView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
interLevelMC = _arg3;
addChild(interLevelMC);
interLevelMC.addEventListener(Events.NEXT_LEVEL, nextLevel, false, 0, true);
interLevelMC.addEventListener(Events.LEVEL_SELECT, levelSelect, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_INTERLEVEL, show, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_INTERLEVEL, updateMC, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_INTERLEVEL, hide, false, 0, true);
super.hide(null);
}
function updateMC(_arg1:Event):void{
interLevelMC.enableNextLevel((int(controller.currentLv.value) < Constants.numLevels));
}
override protected function hide(_arg1:Event){
stage.removeEventListener(KeyboardEvent.KEY_UP, checkEnter);
super.hide(null);
}
function nextLevel(_arg1:Event):void{
controller.onMsg("onNextLevel");
}
function levelSelect(_arg1:Event):void{
controller.onMsg("onLevelSelect");
}
function checkEnter(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
if (int(controller.currentLv.value) < Constants.numLevels){
controller.onMsg("onNextLevel");
} else {
controller.onMsg("onLevelSelect");
};
};
}
override protected function show(_arg1:Event){
stage.focus = stage;
stage.addEventListener(KeyboardEvent.KEY_UP, checkEnter, false, 0, true);
interLevelMC.refresh(controller.lastScore, controller.lastTime, controller.lastLevelMult, controller.lastDifficulty, Glob.levelScore(controller.lastLevel), Glob.getTotalScore());
super.show(null);
}
}
}//package Game.Views
Section 131
//LevelSelectView (Game.Views.LevelSelectView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
public class LevelSelectView extends View {
var levelSelectMC:MovieClip;
public function LevelSelectView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
levelSelectMC = _arg3;
addChild(levelSelectMC);
levelSelectMC.addEventListener(Events.LEVEL_SELECTED, levelSelected, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_LEVEL_SELECT, show, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_LEVEL_SELECT, initLevelSelect, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_LEVEL_SELECT, hide, false, 0, true);
levelSelectMC.initialize(Constants.numLevels);
hide(null);
}
function levelSelected(_arg1:Event):void{
controller.onMsg("onLevelSelected", levelSelectMC.levelNumber);
}
function initLevelSelect(_arg1:Event):void{
var _local2:Array;
_local2 = Glob.getUnlockedLevels();
levelSelectMC.updateButtons(_local2);
levelSelectMC.updateInfo(controller.currentLv.value);
levelSelectMC.updateTotalScore();
}
}
}//package Game.Views
Section 132
//LogoView (Game.Views.LogoView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
public class LogoView extends View {
var interfaceMC:MovieClip;
public function LogoView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
interfaceMC = _arg3;
addChild(interfaceMC);
interfaceMC.bubble_logo.addEventListener(MouseEvent.CLICK, openBBLink, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_LEVEL_SELECT, hide, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_LEVEL_SELECT, show, false, 0, true);
}
function openBBLink(_arg1:Event):void{
Glob.bubbleboxLogoLink2("bottom_left_logo");
}
}
}//package Game.Views
Section 133
//MainMenuView (Game.Views.MainMenuView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
public class MainMenuView extends View {
var menuMC:MovieClip;
public function MainMenuView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
menuMC = _arg3;
addChild(menuMC);
menuMC.credits.back_button.addEventListener(MouseEvent.CLICK, onBackCredits, false, 0, true);
menuMC.mainMenu.play_button.addEventListener(MouseEvent.CLICK, onPlay, false, 0, true);
menuMC.mainMenu.credits_button.addEventListener(MouseEvent.CLICK, onCredits, false, 0, true);
menuMC.mainMenu.options_button.addEventListener(MouseEvent.CLICK, onOptions, false, 0, true);
menuMC.mainMenu.iTunes_button.addEventListener(MouseEvent.CLICK, onITunes, false, 0, true);
menuMC.mainMenu.spin1button.addEventListener(MouseEvent.CLICK, onSpin1, false, 0, true);
menuMC.mainMenu.walk_button.addEventListener(MouseEvent.CLICK, onWalkthrough, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_MAIN_MENU, showMenu, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_MAIN_MENU, hideMenu, false, 0, true);
Messager.getInstance().addEventListener(Events.ENTER_CREDITS, showCredits, false, 0, true);
Messager.getInstance().addEventListener(Events.EXIT_CREDITS, hideCredits, false, 0, true);
menuMC.mainMenu.visible = false;
menuMC.credits.visible = false;
}
function showMenu(_arg1:Event):void{
menuMC.mainMenu.visible = true;
}
function onBackCredits(_arg1:Event):void{
controller.onMsg("onBack");
}
function onITunes(_arg1:Event):void{
controller.onMsg("onITunes");
}
function onWalkthrough(_arg1:Event):void{
controller.onMsg("onWalkthrough");
}
function onSpin1(_arg1:Event):void{
controller.onMsg("onSpin1");
}
function onPlay(_arg1:Event):void{
controller.onMsg("onPlay");
}
function onCredits(_arg1:Event):void{
controller.onMsg("onCredits");
}
function hideMenu(_arg1:Event):void{
menuMC.mainMenu.visible = false;
}
function onOptions(_arg1:Event):void{
controller.onMsg("onOptions");
}
function showCredits(_arg1:Event):void{
menuMC.credits.visible = true;
}
function hideCredits(_arg1:Event):void{
menuMC.credits.visible = false;
}
}
}//package Game.Views
Section 134
//MouseView (Game.Views.MouseView)
package Game.Views {
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import Game.*;
import MyUtils.*;
public class MouseView extends View {
var malpha:Number;
var light:Number;
var mouseMC:MovieClip;
var angle:Number;
public function MouseView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
mouseMC = _arg3;
addChild(mouseMC);
mouseMC.mouseEnabled = false;
mouseMC.mouseChildren = false;
this.mouseEnabled = false;
this.mouseChildren = false;
_arg2.addEventListener(Event.ENTER_FRAME, updateMouse, false, 0, true);
_arg2.addEventListener(MouseEvent.MOUSE_MOVE, updateMouse2, false, 0, true);
malpha = 2;
angle = 0;
}
function updateMouse2(_arg1:Event):void{
malpha = 2;
if ((((((((_arg1.target is SimpleButton)) || ((((((_arg1.target is Sprite)) && (_arg1.target.buttonMode))) && (_arg1.target.useHandCursor))))) || ((_arg1.target is CheckBox)))) || ((_arg1.target is MySliderBar)))){
mouseMC.luz.visible = true;
} else {
mouseMC.luz.visible = false;
};
}
function updateMouse(_arg1:Event):void{
var _local2:Object;
mouseMC.x = mouseX;
mouseMC.y = mouseY;
malpha = (malpha - 0.004);
mouseMC.alpha = Math.min(malpha, 1);
mouseMC.cog1.rotation = (mouseMC.cog1.rotation + 1);
mouseMC.cog2.rotation = (mouseMC.cog2.rotation - 2);
mouseMC.visible = (mouseMC.alpha > 0.1);
if (mouseMC.visible){
if (mouseMC.luz.visible){
_local2 = Motion.wave(0.5, 0.2, angle, 0.1);
angle = _local2.angle;
mouseMC.luz.alpha = _local2.value;
};
};
}
}
}//package Game.Views
Section 135
//SkipMsgView (Game.Views.SkipMsgView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
import flash.ui.*;
public class SkipMsgView extends View {
var interfaceMC:MovieClip;
public function SkipMsgView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
interfaceMC = _arg3;
addChild(interfaceMC);
Messager.getInstance().addEventListener(Events.ENTER_SKIP_MSG, show, false, 0, true);
interfaceMC.yesButton.addEventListener(MouseEvent.CLICK, yes, false, 0, true);
interfaceMC.noButton.addEventListener(MouseEvent.CLICK, no, false, 0, true);
hide(null);
}
function no(_arg1:MouseEvent):void{
hide(null);
Mouse.hide();
controller.onMsg("onSkipMsgClosed", {answer:false, never:interfaceMC.neverShow.selected});
}
function yes(_arg1:MouseEvent):void{
hide(null);
Mouse.hide();
controller.onMsg("onSkipMsgClosed", {answer:true, never:interfaceMC.neverShow.selected});
}
override protected function show(_arg1:Event){
interfaceMC.neverShow.selected = !(Glob.skipMsg);
super.show(_arg1);
}
}
}//package Game.Views
Section 136
//TipsView (Game.Views.TipsView)
package Game.Views {
import flash.display.*;
import flash.events.*;
import Game.*;
import flash.ui.*;
public class TipsView extends View {
var interfaceMC:MovieClip;
var lastLevel:int;
public function TipsView(_arg1:MainController, _arg2:Stage, _arg3:MovieClip){
super(_arg1, _arg2);
interfaceMC = _arg3;
addChild(interfaceMC);
interfaceMC.continue_button.addEventListener(MouseEvent.CLICK, closeWindow, false, 0, true);
lastLevel = -1;
Messager.getInstance().addEventListener(Events.LEVEL_CHANGED, showTips, false, 0, true);
hide(null);
}
function closeWindow(_arg1:Event):void{
hide(null);
thestage.removeEventListener(KeyboardEvent.KEY_UP, checkEnter);
controller.onMsg("onTipsClosed", interfaceMC.checkBox.selected);
}
function checkEnter(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.SPACE){
closeWindow(_arg1);
};
}
function showTips(_arg1:Event):void{
if (Glob.showTips){
if (lastLevel != int(controller.currentLv.value)){
lastLevel = int(controller.currentLv.value);
if (setTip(Glob.mapLevelNumber(lastLevel))){
interfaceMC.checkBox.selected = !(Glob.showTips);
show(null);
thestage.addEventListener(KeyboardEvent.KEY_UP, checkEnter, false, 0, true);
controller.onMsg("onTipsOpen");
};
};
};
}
function setTip(_arg1:int):Boolean{
var _local2:String;
switch (_arg1){
case 0:
_local2 = "CONTROLS: Left and Right arrows (or A,D).\nRotate the cog to get the little black ball to the blue portal.";
break;
case 1:
_local2 = "The ball is not the only object affected by gravity. Try moving this wheel.";
break;
case 2:
_local2 = "Momentum is key. As the ball rolls it will gather speed and defy gravity. Learn how to use this in your advantage.";
break;
case 3:
_local2 = "Having a hard time? Too easy?\nYou can change the difficulty at any time in the OPTIONS menu.";
break;
case 4:
_local2 = "Want to improve your score in a particular level?\n-Complete it in less time.\n-Do it in a harder difficulty.";
break;
case 5:
_local2 = "A 180 turn is easy, take some speed and start turning BEFORE you get to the corner.";
break;
case 6:
_local2 = "Drop down, then turn left until you land on the opposite side";
break;
case 7:
_local2 = "Sometimes rocking the ball back and forth is the only way to get that momentum you need.";
break;
case 8:
_local2 = "Your score for each particular level is multiplied by the difficulty you used. The easiest will halve it, the hardest will double it.";
break;
case 9:
_local2 = "Do you have a fast PC?\nTry improving the quality of the background in the OPTIONS menu.";
break;
case 10:
_local2 = "Are you experiencing slow downs?\nAdjust quality settings in the OPTIONS menu.";
break;
case 11:
_local2 = "A level is unlocked when 3 of the 5 previous levels are completed.\nCheck LEVEL SELECT to see which ones are unlocked.";
break;
case 14:
_local2 = "Press SPACE BAR to restart a level";
break;
case 15:
_local2 = "Take the ramps with good speed and you'll be fine.";
break;
case 17:
_local2 = "Small, gentle corrections. It's easier than it seems.";
break;
case 20:
_local2 = "Dont lose the grip on those corners.";
break;
case 25:
_local2 = "All you need is a good start.";
break;
case 29:
_local2 = "You'll need a lot of momentum.";
break;
case 31:
_local2 = "Wait for the bars to be in a good position to land on them.";
break;
case 34:
_local2 = "Break the force field with that hammer.";
break;
case 42:
_local2 = "The force field will disappear once the square gets to the other side.\nBut can you survive than long?";
break;
};
if (_local2){
interfaceMC.tip.text = _local2;
return (true);
};
return (false);
}
}
}//package Game.Views
Section 137
//BreakableBody (Game.BreakableBody)
package Game {
import flash.events.*;
import Box2DIntegration.*;
public class BreakableBody extends GameBody {
public function breakBody(){
var _local1:b2iLevel;
_local1 = b2iLevel(parent);
_local1.m_world.DestroyBody(m_body);
addEventListener(Event.ENTER_FRAME, disappear, false, 0, true);
}
function disappear(_arg1:Event){
this.alpha = (this.alpha - 0.05);
if (alpha <= 0){
removeEventListener(Event.ENTER_FRAME, disappear);
this.parent.removeChild(this);
};
}
}
}//package Game
Section 138
//Constants (Game.Constants)
package Game {
import Box2D.Common.Math.*;
public class Constants {
public static const BULLET:int = 10;
public static const MAX_LEVEL_MULT:Number = 4;
public static const NORMAL_DAMPING:Number = 0.3;
public static const SCREEN_WIDTH:int = 700;
public static const numLevels:int = 43;
public static const SPEEDER_BOOST:Number = 1.05;
public static const SPEEDER:int = 4;
public static const EXIT:int = 5;
public static const SCALE:int = 20;
public static const FLAME:int = 3;
public static const GRAVITY:b2Vec2 = new b2Vec2(0, 15);
public static const DEBUG:Boolean = false;
public static const BREAKABLE:int = 8;
public static const TRIES_BEFORE_SKIP_MSG:int = 5;
public static const STANDARD_BALL:int = 0;
public static const BOUNCY_BALL:int = 1;
public static const LINEAR_DAMPING:Number = 0;
public static const SAW:int = 11;
public static const LEVEL_RADIUS:int = 25;
public static const WALL:int = 6;
public static const BREAKER:int = 9;
public static const LEVEL_SCORE:int = 12000;
public static const ELECTRICITY:int = 1;
public static const SCREEN_HEIGHT:int = 600;
public static const balls = [];
public static const SEC_PENALTY:int = Math.floor((Number(LEVEL_SCORE) / 120));
public static const ANGULAR_DAMPING:Number = 0.3;
public static const SPIKE:int = 2;
public static const DIFF_SCORE_ADJUST:Number = 1.1;
public static const VELOCITY_FOR_SOUND:Number = 1;
public static const OCTAGON_BALL:int = 2;
public static const BALL:int = 7;
balls[STANDARD_BALL] = StandardBall;
}
}//package Game
Section 139
//ContactListener (Game.ContactListener)
package Game {
import Box2D.Collision.*;
import Box2D.Dynamics.*;
import Box2D.Collision.Shapes.*;
import Box2D.Dynamics.Contacts.*;
import Box2DIntegration.*;
import MyUtils.*;
public class ContactListener extends b2ContactListener {
public var results:Array;
public var flags:Flags;
public static const EXIT_FL:int = 1;
public static const SPEEDER_FL:int = 16;
public static const FLAME_FL:int = 2;
public static const ELECTRICITY_FL:int = 8;
public static const WALL_FL:int = 32;
public static const SAW_FL:int = 64;
public static const SPIKE_FL:int = 4;
public function ContactListener(){
flags = new Flags();
results = [];
}
function checkResult(_arg1:int, _arg2:b2Shape, _arg3:b2ContactResult){
switch (_arg1){
case Constants.WALL:
results.push([Constants.WALL, _arg3]);
break;
};
}
private function getType(_arg1:b2Shape){
var _local2:GameBody;
if (_arg1.m_userData){
if (_arg1.m_userData.type != 0){
return (_arg1.m_userData.type);
};
};
_local2 = _arg1.GetBody().GetUserData();
return (_local2.type);
}
override public function Persist(_arg1:b2ContactPoint):void{
var _local2:int;
var _local3:int;
_local2 = getType(_arg1.shape1);
_local3 = getType(_arg1.shape2);
if (_arg1.separation <= 0){
if (_local2 == Constants.BALL){
checkContact(_local3, _arg1.shape2, _arg1);
} else {
if (_local3 == Constants.BALL){
checkContact(_local2, _arg1.shape1, _arg1);
};
};
};
}
function checkContact(_arg1:int, _arg2:b2Shape, _arg3:b2ContactPoint){
switch (_arg1){
case Constants.EXIT:
flags.turnOn(EXIT_FL);
break;
case Constants.SPIKE:
flags.turnOn(SPIKE_FL);
break;
case Constants.SAW:
flags.turnOn(SAW_FL);
break;
case Constants.ELECTRICITY:
flags.turnOn(ELECTRICITY_FL);
break;
case Constants.BULLET:
flags.turnOn(FLAME_FL);
break;
case Constants.FLAME:
if (Flame(_arg2.GetBody().GetUserData()).burning){
flags.turnOn(FLAME_FL);
};
break;
case Constants.SPEEDER:
flags.turnOn(SPEEDER_FL);
break;
case Constants.WALL:
break;
case Constants.BREAKABLE:
case Constants.BREAKER:
break;
default:
throw (Error(("COLISION CON TIPO DESCONOCIDO: " + _arg2.GetBody().GetUserData().toString())));
};
}
public function clearFlags(){
flags.clear();
results = [];
}
override public function Result(_arg1:b2ContactResult):void{
var _local2:int;
var _local3:int;
_local2 = getType(_arg1.shape1);
_local3 = getType(_arg1.shape2);
if (_local2 == Constants.BALL){
checkResult(_local3, _arg1.shape2, _arg1);
} else {
if (_local3 == Constants.BALL){
checkResult(_local2, _arg1.shape1, _arg1);
} else {
if ((((_local2 == Constants.BREAKABLE)) && ((_local3 == Constants.BREAKER)))){
results.push([Constants.BREAKABLE, _arg1]);
} else {
if ((((_local3 == Constants.BREAKABLE)) && ((_local2 == Constants.BREAKER)))){
results.push([Constants.BREAKABLE, _arg1]);
} else {
if ((((_local2 == Constants.BULLET)) || ((_local3 == Constants.BULLET)))){
results.push([Constants.BULLET, _arg1]);
};
};
};
};
};
}
}
}//package Game
Section 140
//Events (Game.Events)
package Game {
public class Events {
public static const DIFFICULTY_SELECT:String = "DifficultySelect";
public static const ENTER_INTERLEVEL:String = "EnterInterLevel";
public static const LEVEL_COMPLETED:String = "LevelCompleted";
public static const LEVEL_RESTART:String = "LevelRestart";
public static const LEVEL_SELECTED:String = "LevelSelected";
public static const NEXT_LEVEL:String = "NextLevel";
public static const RESTART_LEVEL:String = "RESTART_LEVEL";
public static const PLAY_BUTTON:String = "PlayButton";
public static const DIFFICULTY_SELECTED:String = "DifficultySelected";
public static const EXIT_GAME_OVER:String = "ExitGameOver";
public static const ENTER_DIFFICULTY:String = "EnterDifficulty";
public static const ANIMATION_COMPLETE:String = "ANIMATION_COMPLETE";
public static const EXIT_PLAY:String = "ExitPlay";
public static const CLOSE_WINDOW:String = "CloseWindow";
public static const EXIT_LEVEL_SELECT:String = "ExitLevelSelect";
public static const LEVEL_CHANGED:String = "LevelChanged";
public static const ENTER_GAME_OVER:String = "EnterGameOver";
public static const EXIT_HELP:String = "EXIT_HELP";
public static const EXIT_MAIN_MENU:String = "ExitMainMenu";
public static const LEVEL_SELECT:String = "LevelSelect";
public static const ENTER_SKIP_MSG:String = "ENTER_SKIP_MSG";
public static const SHOW_TIPS:String = "SHOW_TIPS";
public static const EXIT_CREDITS:String = "EXIT_CREDITS";
public static const TOGGLE_MUSIC:String = "ToggleMusic";
public static const ENTER_PLAY:String = "EnterPlay";
public static const ENTER_MAIN_MENU:String = "EnterMainMenu";
public static const BACK_TO_MENU:String = "BackToMenu";
public static const ENTER_LEVEL_SELECT:String = "EnterLevelSelect";
public static const EXIT_INTERLEVEL:String = "ExitInterLevel";
public static const MOVIE_LOST_FOCUS:String = "MovieLostFocus";
public static const MOVIE_GAINED_FOCUS:String = "MovieGainedFocus";
public static const ENTER_HELP:String = "ENTER_HELP";
public static const ENTER_CREDITS:String = "ENTER_CREDITS";
public static const LEVEL_FAILED:String = "LevelFailed";
public static const TOGGLE_SFX:String = "ToggleSFX";
public static const EXIT_DIFFICULTY:String = "ExitDifficulty";
}
}//package Game
Section 141
//Flame (Game.Flame)
package Game {
import MyUtils.FrameTimer.*;
public class Flame extends GameBody {
protected var counter:int;
protected var delay_:int;
protected var timer:FrameTimer;
protected var duration_:int;
protected var frequency_:int;
public var burning:Boolean;
private var updateFun:Function;
public function Flame(){
updateFun = up1;
super();
burning = false;
type = Constants.WALL;
}
private function up1(){
delay_--;
if (delay_ <= 0){
updateFun = up2;
};
}
public function set delay(_arg1:int):void{
delay_ = (_arg1 * 2);
}
public function sensorOn(){
burning = true;
}
private function up2(){
timer.update(null);
if (burning){
counter--;
};
}
public function get frequency():int{
return (this.frequency_);
}
public function set duration(_arg1:int):void{
duration_ = (_arg1 * 2);
}
public function get duration():int{
return (this.duration_);
}
public function get delay():int{
return (this.delay_);
}
function burn(){
counter = duration_;
gotoAndPlay(3);
}
public function sensorOff(){
burning = false;
}
public function set frequency(_arg1:int):void{
frequency_ = (_arg1 * 2);
timer = new FrameTimer(frequency_, burn, 0);
}
override public function Update():void{
super.Update();
updateFun();
}
}
}//package Game
Section 142
//GameArcShape (Game.GameArcShape)
package Game {
import Box2DIntegration.*;
public class GameArcShape extends b2iConcaveArcShape implements GameObject {
protected var type_:int;
public function GameArcShape(){
this.visible = false;
}
public function get type():int{
return (type_);
}
public function set type(_arg1:int):void{
type_ = _arg1;
}
}
}//package Game
Section 143
//GameBall (Game.GameBall)
package Game {
import flash.display.*;
public class GameBall extends GameBody {
public var bola:MovieClip;
}
}//package Game
Section 144
//GameBody (Game.GameBody)
package Game {
import flash.display.*;
import Box2DIntegration.*;
public class GameBody extends b2iBody implements GameObject {
public var active:Boolean;
protected var removeGraphic_:Boolean;
protected var addToBackground_:Boolean;
protected var convertToBitmap_:Boolean;
protected var type_:int;
public function GameBody(){
var _local1:MovieClip;
super();
_local1 = (this as MovieClip);
if (_local1.init){
_local1.init();
};
active = true;
this.mouseEnabled = false;
}
public function get convertToBitmap():Boolean{
return (convertToBitmap_);
}
public function get addToBackground():Boolean{
return (addToBackground_);
}
public function set type(_arg1:int):void{
type_ = _arg1;
}
public function set removeGraphic(_arg1:Boolean):void{
removeGraphic_ = _arg1;
}
public function get type():int{
return (type_);
}
public function set addToBackground(_arg1:Boolean):void{
addToBackground_ = _arg1;
}
public function set convertToBitmap(_arg1:Boolean):void{
convertToBitmap_ = _arg1;
}
public function get removeGraphic():Boolean{
return (removeGraphic_);
}
override public function Update():void{
if (active){
super.Update();
};
}
}
}//package Game
Section 145
//GameBoxShape (Game.GameBoxShape)
package Game {
import Box2DIntegration.*;
public class GameBoxShape extends b2iBoxShape implements GameObject {
protected var type_:int;
public function GameBoxShape(){
this.visible = false;
}
public function get type():int{
return (type_);
}
public function set type(_arg1:int):void{
type_ = _arg1;
}
}
}//package Game
Section 146
//GameCircleShape (Game.GameCircleShape)
package Game {
import Box2DIntegration.*;
public class GameCircleShape extends b2iCircleShape implements GameObject {
protected var type_:int;
public function GameCircleShape(){
this.visible = false;
}
public function get type():int{
return (type_);
}
public function set type(_arg1:int):void{
type_ = _arg1;
}
}
}//package Game
Section 147
//GameLevel (Game.GameLevel)
package Game {
import flash.display.*;
import Box2DIntegration.*;
public class GameLevel extends b2iLevel {
public var ball_start:MovieClip;
public var background:MovieClip;
public function GameLevel(){
this.mouseEnabled = false;
}
override public function Update():void{
m_world.Step((1 / 60), m_iterations);
UpdateChildren();
UpdateMouseWorld();
}
}
}//package Game
Section 148
//GameObject (Game.GameObject)
package Game {
public interface GameObject {
function set type(_arg1:int):void;
function get type():int;
}
}//package Game
Section 149
//GameState (Game.GameState)
package Game {
import MyUtils.StateMachine.*;
public class GameState extends State {
public function onToggleSFX(){
Glob.toggleSfx();
}
public function fadeAndSetState(_arg1:String){
var callback:Function;
var st = _arg1;
callback = function (){
setState(st);
};
Glob.main.fadeOut(0.15, callback);
}
public function onToggleMusic(){
Glob.toggleMusic();
}
public function get controller():MainController{
return (MainController(stateMachine));
}
}
}//package Game
Section 150
//GameTriangleShape (Game.GameTriangleShape)
package Game {
import Box2DIntegration.*;
public class GameTriangleShape extends b2iRectTriangleShape implements GameObject {
protected var type_:int;
public function GameTriangleShape(){
this.visible = false;
}
public function get type():int{
return (type_);
}
public function set type(_arg1:int):void{
type_ = _arg1;
}
}
}//package Game
Section 151
//Glob (Game.Glob)
package Game {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import MyUtils.*;
public class Glob {
public static const GAME_ID:int = 1509;
public static const fps:int = 60;
private static const levels:Array = [STBC1_2, STBC1_6, STBC1_3, STBC1_7, Level15, STBC1_4, Level11, STBC1_5, STBC1_9, STBC1_8, Level3, Level14, STBC1_10, Level13, Level9, Level39, Level40, STBC1_1, Level31, Level32, Level41, STBC1_11, STBC1_12, STBC1_13, Level6, Level12, Level10, Level37, STBC1_14, Level22, STBC1_15, STBC1_17, Level38, Level29, Level30, Level4, STBC1_16, Level20, Level44, STBC1_18, Level43, Level19, Level42];
static var musicChannel:SoundChannel;
public static var music:Sound;
public static var main:MovieClip;
public static var sounds:Dictionary;
private static var levelMapping:Array = [];
private static var savedData:SharedObject;
private static var rotationAngle:Number = 2;
public static function set objectQuality(_arg1:Boolean){
savedData.data.objectQuality = _arg1;
}
public static function get skipMsg():Boolean{
return (savedData.data.skipMsg);
}
public static function set skipMsg(_arg1:Boolean){
savedData.data.skipMsg = _arg1;
}
public static function get backgroundQuality():Boolean{
return (savedData.data.reduceBackQuality);
}
public static function bubbleboxLogoLink2(_arg1){
var _local2:URLRequest;
_local2 = new URLRequest(("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1509&subid=" + _arg1));
navigateToURL(_local2, "_blank");
}
public static function setSavedData(_arg1:SharedObject){
savedData = _arg1;
}
public static function toggleSfx(){
savedData.data.sfxOn = !(savedData.data.sfxOn);
}
public static function set reducedFps(_arg1:Boolean){
savedData.data.reduceFps = _arg1;
}
public static function get gameCompleted():Boolean{
return (savedData.data.gameCompleted);
}
public static function getUnlockedLevelsWithoutSkip():Array{
var _local1:Array;
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local1 = savedData.data.levelScores;
_local2 = new Array(Constants.numLevels);
_local2[0] = true;
_local4 = 1;
while (_local4 < _local1.length) {
if (_local1[(_local4 - 1)].time > 0){
_local2[_local4] = true;
} else {
_local3 = 0;
_local5 = Math.max((_local4 - 5), 0);
while (_local5 < _local4) {
if (_local1[_local5].time > 0){
_local3++;
};
_local5++;
};
if (_local3 >= 3){
_local2[_local4] = true;
} else {
_local2[_local4] = false;
};
};
_local4++;
};
return (_local2);
}
public static function set sfxOn(_arg1:Boolean):void{
savedData.data.sfxOn = _arg1;
}
public static function getTotalScore():int{
var _local1:int;
var _local2:int;
_local2 = 0;
while (_local2 < Constants.numLevels) {
_local1 = (_local1 + levelScore(_local2));
_local2++;
};
return (_local1);
}
public static function getUnlockedLevels():Array{
if (skipOldLevels){
return (getUnlockedLevelsWSkip());
};
return (getUnlockedLevelsWithoutSkip());
}
public static function set showTips(_arg1:Boolean){
savedData.data.tips = _arg1;
}
public static function bubbleboxLogoLink(_arg1:MouseEvent){
var _local2:String;
var _local3:URLRequest;
_local2 = MovieClip(_arg1.currentTarget).subid;
_local3 = new URLRequest(("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1509&subid=" + _local2));
navigateToURL(_local3, "_blank");
}
public static function toggleMusic(){
if (savedData.data.musicOn){
stopMusic();
} else {
playMusic();
};
}
public static function get skipOldLevels():Boolean{
return (savedData.data.skipOldLevels);
}
public static function playSound(_arg1:String, _arg2:Number):SoundChannel{
if (savedData.data.sfxOn){
return (sounds[_arg1].play(0, 0, new SoundTransform(_arg2, 0)));
};
return (null);
}
public static function getRotationAngle():Number{
return (rotationAngle);
}
public static function get objectQuality():Boolean{
return (savedData.data.objectQuality);
}
public static function get difficulty():Number{
return (savedData.data.difficulty);
}
public static function stopMusic(){
musicChannel.stop();
musicChannel = null;
savedData.data.musicOn = false;
}
public static function updateScore(_arg1:int, _arg2:int, _arg3:int, _arg4:Number){
var _local5:int;
var _local6:ByteArray;
var _local7:MochiDigits;
_local5 = mapLevelNumber(_arg1);
_local6 = new ByteArray();
_local6.position = 0;
_local7 = new MochiDigits(_arg2);
_local7.serialize(_local6);
savedData.data.levelScores[_local5].score = _local6;
savedData.data.levelScores[_local5].time = _arg3;
savedData.data.levelScores[_local5].difficulty = _arg4;
savedData.flush();
}
public static function get reducedFps():Boolean{
return (savedData.data.reduceFps);
}
public static function getLevel(_arg1:int):Class{
var _local2:int;
_local2 = mapLevelNumber(_arg1);
return (levels[_local2]);
}
public static function get sfxOn():Boolean{
return (savedData.data.sfxOn);
}
public static function get showTips():Boolean{
return (savedData.data.tips);
}
public static function playMusic(){
if (musicChannel){
stopMusic();
};
musicChannel = music.play(0, int.MAX_VALUE);
savedData.data.musicOn = true;
}
public static function difficultyMultiplier(_arg1:Number):Number{
var _local2:Number;
_local2 = 1;
if (_arg1 < 0){
_local2 = (_local2 + (_arg1 / 3));
} else {
_local2 = (_local2 + (_arg1 * 1.11));
};
return (_local2);
}
public static function getUnlockedLevelsWSkip():Array{
var _local1:Array;
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local1 = savedData.data.levelScores;
_local2 = new Array(Constants.numLevels);
_local4 = 0;
while (_local4 < 19) {
_local2[_local4] = true;
_local4++;
};
_local4 = 19;
while (_local4 < _local1.length) {
if (_local1[mapLevelNumber((_local4 - 1))].time > 0){
_local2[_local4] = true;
} else {
_local3 = 0;
_local5 = Math.max((_local4 - 5), 18);
while (_local5 < _local4) {
if (_local1[mapLevelNumber(_local5)].time > 0){
_local3++;
};
_local5++;
};
if (_local3 >= 3){
_local2[_local4] = true;
} else {
_local2[_local4] = false;
};
};
_local4++;
};
return (_local2);
}
public static function levelDifficulty(_arg1:int):Number{
var _local2:int;
_local2 = mapLevelNumber(_arg1);
return (savedData.data.levelScores[_local2].difficulty);
}
public static function set backgroundQuality(_arg1:Boolean){
savedData.data.reduceBackQuality = _arg1;
}
public static function getScore(_arg1:int, _arg2:Number, _arg3:Number):int{
return (Math.ceil((((Constants.LEVEL_SCORE - ((Number(_arg1) / fps) * Constants.SEC_PENALTY)) * _arg2) * _arg3)));
}
public static function get musicOn():Boolean{
return (savedData.data.musicOn);
}
public static function levelMultiplier(_arg1:int):Number{
var _local2:int;
_local2 = mapLevelNumber(_arg1);
return ((1 + ((Number(_local2) / (Constants.numLevels - 1)) * Constants.MAX_LEVEL_MULT)));
}
public static function levelScore(_arg1:int):int{
var _local2:int;
var _local3:ByteArray;
var _local4:MochiDigits;
_local2 = mapLevelNumber(_arg1);
_local3 = savedData.data.levelScores[_local2].score;
_local3.position = 0;
_local4 = new MochiDigits();
_local4.deserialize(_local3);
return (_local4.value);
}
public static function mapLevelNumber(_arg1:int):int{
if (savedData.data.skipOldLevels){
return (levelMapping[_arg1]);
};
return (_arg1);
}
public static function set gameCompleted(_arg1:Boolean){
savedData.data.gameCompleted = _arg1;
}
public static function set difficulty(_arg1:Number){
savedData.data.difficulty = _arg1;
}
public static function levelTime(_arg1:int):int{
var _local2:int;
_local2 = mapLevelNumber(_arg1);
return (savedData.data.levelScores[_local2].time);
}
levelMapping[0] = 0;
levelMapping[1] = 1;
levelMapping[2] = 2;
levelMapping[3] = 3;
levelMapping[4] = 5;
levelMapping[5] = 7;
levelMapping[6] = 8;
levelMapping[7] = 9;
levelMapping[8] = 12;
levelMapping[9] = 17;
levelMapping[10] = 21;
levelMapping[11] = 22;
levelMapping[12] = 23;
levelMapping[13] = 28;
levelMapping[14] = 30;
levelMapping[15] = 31;
levelMapping[16] = 36;
levelMapping[17] = 39;
levelMapping[18] = 4;
levelMapping[19] = 6;
levelMapping[20] = 10;
levelMapping[21] = 11;
levelMapping[22] = 13;
levelMapping[23] = 14;
levelMapping[24] = 15;
levelMapping[25] = 16;
levelMapping[26] = 18;
levelMapping[27] = 19;
levelMapping[28] = 20;
levelMapping[29] = 24;
levelMapping[30] = 25;
levelMapping[31] = 26;
levelMapping[32] = 27;
levelMapping[33] = 29;
levelMapping[34] = 32;
levelMapping[35] = 33;
levelMapping[36] = 34;
levelMapping[37] = 35;
levelMapping[38] = 37;
levelMapping[39] = 38;
levelMapping[40] = 40;
levelMapping[41] = 41;
levelMapping[42] = 42;
}
}//package Game
Section 152
//MainController (Game.MainController)
package Game {
import MyUtils.StateMachine.*;
import MyUtils.*;
public class MainController extends StateMachine {
public var lastTime:int;
public var lastLevel:int;
public var currentDifficulty:MochiDigits;
public var lastScore:int;
public var currentBall:MochiDigits;
public var lastLevelMult:Number;
public var currentLv:MochiDigits;
public var lastDifficulty:Number;
public function MainController(){
currentLv = new MochiDigits(0);
currentDifficulty = new MochiDigits(Glob.difficulty);
currentBall = new MochiDigits(0);
}
}
}//package Game
Section 153
//Messager (Game.Messager)
package Game {
import flash.events.*;
public class Messager extends EventDispatcher {
private static var instance:Messager = new (Messager);
;
public function Messager(){
if (instance){
throw (new Error("Messager is a Singleton, can only be accessed trough getInstance()"));
};
}
public static function getInstance():Messager{
return (instance);
}
public static function dispatch(_arg1:Event){
instance.dispatchEvent(_arg1);
}
}
}//package Game
Section 154
//RepeatingPrismaticJoint (Game.RepeatingPrismaticJoint)
package Game {
import Box2D.Dynamics.Joints.*;
import Box2DIntegration.*;
public class RepeatingPrismaticJoint extends b2iPrismaticJoint {
protected var delay_:int;
protected var recoilSpeed_:Number;
private var updateFun:Function;
public function RepeatingPrismaticJoint(){
updateFun = up1;
super();
}
public function set delay(_arg1:int):void{
delay_ = (_arg1 * 2);
}
private function up1(){
delay_--;
if (delay_ <= 0){
updateFun = up2;
b2PrismaticJoint(m_joint).m_motorSpeed = speed_;
};
}
private function up2(){
var _local1:b2PrismaticJoint;
_local1 = b2PrismaticJoint(m_joint);
if (_local1.GetJointTranslation() >= _local1.GetUpperLimit()){
_local1.m_motorSpeed = recoilSpeed_;
} else {
if ((_local1.GetJointTranslation() - 0.02) <= _local1.GetLowerLimit()){
_local1.m_motorSpeed = speed_;
};
};
}
public function get recoilSpeed():Number{
return (this.recoilSpeed_);
}
public function set recoilSpeed(_arg1:Number):void{
recoilSpeed_ = _arg1;
}
public function get delay():int{
return (this.delay_);
}
override public function Update():void{
super.Update();
updateFun();
}
override public function createJoint():void{
super.createJoint();
b2PrismaticJoint(m_joint).m_motorSpeed = 0;
}
}
}//package Game
Section 155
//Saw (Game.Saw)
package Game {
import flash.display.*;
public class Saw extends GameBody {
public var sierra:MovieClip;
override public function Update():void{
this.sierra.rotation = (this.sierra.rotation + 5);
super.Update();
}
}
}//package Game
Section 156
//Simulator (Game.Simulator)
package Game {
import flash.display.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Contacts.*;
import flash.events.*;
import MyUtils.InputManager.*;
import flash.geom.*;
import Box2DIntegration.*;
import MyUtils.*;
import MyUtils.Particle.*;
public class Simulator extends EventDispatcher {
var level:b2iLevel;
var timer:MochiDigits;
var fondoBMD:BitmapData;
var input:Input;
var fondo:Bitmap;
var ballDead:Boolean;// = false
var rotR:b2Mat22;
var rotL:b2Mat22;
var contactListener:ContactListener;
var ball:GameBall;
public function Simulator(){
ballDead = false;
super();
input = Input.instance;
timer = new MochiDigits(0);
fondoBMD = new BitmapData(776, 776, true, 0);
fondo = new Bitmap(fondoBMD, "never");
fondo.x = -388;
fondo.y = -388;
}
public function getLevelTime():int{
return (Math.floor(timer.value));
}
public function refocus():void{
level.stage.frameRate = 120;
level.stage.focus = level.stage;
input.resetInput();
}
public function loadLevel(_arg1:b2iLevel, _arg2:GameBall, _arg3:Number):void{
var _local4:Number;
var _local5:MovieClip;
var _local6:int;
var _local7:int;
_arg1.gotoAndPlay(0);
level = _arg1;
ball = _arg2;
MovieClip(level).ball_start.visible = false;
level.addChild(_arg2);
_arg2.bodyDef.allowSleep = false;
ball.x = MovieClip(level).ball_start.x;
ball.y = MovieClip(level).ball_start.y;
ball.convertToBitmap = false;
ball.angularDamping = (Constants.NORMAL_DAMPING - (_arg3 * Constants.NORMAL_DAMPING));
_local4 = (Glob.getRotationAngle() - ((Glob.getRotationAngle() / 8) * _arg3));
rotL = new b2Mat22((_local4 * Utils.TO_RAD));
rotR = new b2Mat22((-(_local4) * Utils.TO_RAD));
level.createLevel(Constants.LEVEL_RADIUS, -(Constants.LEVEL_RADIUS), Constants.LEVEL_RADIUS, -(Constants.LEVEL_RADIUS), Constants.GRAVITY, false, Constants.SCALE, 10, (1 / Glob.fps));
_local6 = (level.numChildren - 1);
while (_local6 >= 0) {
if ((level.getChildAt(_local6) is b2iBody)){
_local5 = MovieClip(level.getChildAt(_local6));
_local5.createBody();
if ((_local5 is GameBody)){
if (_local5.removeGraphic){
level.removeChildAt(_local6);
};
};
};
_local6--;
};
_local7 = (level.numChildren - 1);
while (_local7 >= 0) {
if ((level.getChildAt(_local7) is b2iJoint)){
_local5 = MovieClip(level.getChildAt(_local7));
_local5.createJoint();
};
_local7--;
};
addGraphicsToBackground(level);
contactListener = new ContactListener();
level.m_world.SetContactListener(contactListener);
examineChildren(level, "");
restartLevel();
}
function examineChildren(_arg1:DisplayObjectContainer, _arg2:String):void{
var _local3:DisplayObject;
var _local4:int;
_local4 = 0;
while (_local4 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local4);
if ((_local3 is DisplayObjectContainer)){
examineChildren(DisplayObjectContainer(_local3), (_arg2 + " "));
};
_local4++;
};
}
public function getLevel():MovieClip{
if (level){
return (level);
};
throw (Error("NO LEVEL LOADED"));
}
function processResults():void{
var _local1:Array;
var _local2:int;
var _local3:b2ContactResult;
var _local4:GameBody;
var _local5:GameBody;
for each (_local1 in contactListener.results) {
_local2 = _local1[0];
_local3 = _local1[1];
switch (_local2){
case Constants.WALL:
if (_local3.normalImpulse > 1){
};
break;
case Constants.BREAKABLE:
_local4 = _local3.shape1.GetBody().GetUserData();
if ((_local4 is BreakableBody)){
BreakableBody(_local4).breakBody();
} else {
_local4 = _local3.shape2.GetBody().GetUserData();
if ((_local4 is BreakableBody)){
BreakableBody(_local4).breakBody();
};
};
break;
case Constants.BULLET:
_local5 = _local3.shape1.GetBody().GetUserData();
if ((_local5 is BreakableBody)){
BreakableBody(_local5).breakBody();
} else {
_local5 = _local3.shape2.GetBody().GetUserData();
if ((_local5 is BreakableBody)){
BreakableBody(_local5).breakBody();
};
};
break;
};
};
}
function processContacts():void{
if (contactListener.flags.isFlagOn(ContactListener.EXIT_FL)){
Glob.playSound("exit", 3);
ballDead = true;
ball.active = false;
ball.gotoAndPlay("exit");
dispatchEvent(new Event(Events.LEVEL_COMPLETED));
};
if (((((contactListener.flags.isFlagOn(ContactListener.SPIKE_FL)) || (contactListener.flags.isFlagOn(ContactListener.FLAME_FL)))) || (contactListener.flags.isFlagOn(ContactListener.SAW_FL)))){
ballDead = true;
dispatchEvent(new Event(Events.LEVEL_FAILED));
if (contactListener.flags.isFlagOn(ContactListener.FLAME_FL)){
ball.gotoAndPlay("flameDeath");
Glob.playSound("burn", 0.8);
} else {
if (contactListener.flags.isFlagOn(ContactListener.SPIKE_FL)){
ball.active = false;
ball.gotoAndPlay("spikeDeath");
Glob.playSound("explosion", 0.8);
} else {
if (contactListener.flags.isFlagOn(ContactListener.SAW_FL)){
ball.gotoAndPlay("spikeDeath");
Glob.playSound("saw", 1);
Glob.playSound("explosion", 0.6);
};
};
};
};
if (contactListener.flags.isFlagOn(ContactListener.SPEEDER_FL)){
ball.m_body.m_angularVelocity = (ball.m_body.m_angularVelocity * Constants.SPEEDER_BOOST);
};
processResults();
contactListener.clearFlags();
}
public function update():void{
timer.addValue(1);
if (!ballDead){
processInput();
};
level.Update();
if (!ballDead){
processContacts();
};
}
function addGraphicsToBackground(_arg1:b2iLevel):void{
var _local2:Boolean;
var _local3:Boolean;
var _local4:MovieClip;
var _local5:Matrix;
var _local6:MovieClip;
var _local7:GameBody;
var _local8:int;
var _local9:Rectangle;
var _local10:Matrix;
var _local11:BitmapData;
var _local12:Bitmap;
_local2 = !(Glob.backgroundQuality);
_local3 = !(Glob.objectQuality);
_local4 = MovieClip(_arg1).background;
fondoBMD.floodFill(0, 0, 0);
_local5 = new Matrix();
_local5.translate(388, 388);
fondoBMD.draw(_local4, _local5);
fondo.smoothing = _local2;
MovieClip(_arg1).addChildAt(fondo, 0);
_arg1.removeChild(_local4);
_local6 = new MovieClip();
_local8 = (_arg1.numChildren - 1);
while (_local8 >= 0) {
if ((_arg1.getChildAt(_local8) is GameBody)){
_local7 = (_arg1.getChildAt(_local8) as GameBody);
if (_local7.addToBackground){
_local6.addChild(_local7);
} else {
if (_local7.convertToBitmap){
_local9 = _local7.getBounds(_local7);
_local9.inflate(10, 10);
_local10 = new Matrix();
_local10.translate(-(_local9.left), -(_local9.top));
_local10.scale(_local7.scaleX, _local7.scaleY);
_local11 = new BitmapData((_local9.width * _local7.scaleX), (_local9.height * _local7.scaleY), true, 0);
_local11.draw(_local7, _local10);
_local12 = new Bitmap(_local11, "auto", _local3);
_local12.x = (_local9.left * _local7.scaleX);
_local12.y = (_local9.top * _local7.scaleY);
_local7.scaleX = 1;
_local7.scaleY = 1;
while (_local7.numChildren > 0) {
_local7.removeChildAt(0);
};
_local7.addChild(_local12);
};
};
};
_local8--;
};
fondoBMD.draw(_local6, _local5);
}
public function restartLevel():void{
var _local1:b2Vec2;
var _local2:Number;
var _local3:Number;
ballDead = false;
timer.value = 0;
_local1 = level.m_world.m_gravity;
_local1.x = Constants.GRAVITY.x;
_local1.y = Constants.GRAVITY.y;
level.rotation = (Math.atan2(_local1.x, _local1.y) * Utils.TO_DEG);
_local2 = (Number(MovieClip(level).ball_start.x) / Constants.SCALE);
_local3 = (Number(MovieClip(level).ball_start.y) / Constants.SCALE);
ball.m_body.SetXForm(new b2Vec2(_local2, _local3), 0);
ball.m_body.SetLinearVelocity(new b2Vec2(0, 0));
ball.m_body.SetAngularVelocity(0);
}
function processInput():void{
var _local1:b2Vec2;
_local1 = level.m_world.m_gravity;
if (((input.isKeyDown(KeyCode.LEFT)) || (input.isKeyDown(KeyCode.A)))){
_local1.MulM(rotL);
level.rotation = Math.round((Math.atan2(_local1.x, _local1.y) * Utils.TO_DEG));
};
if (((input.isKeyDown(KeyCode.RIGHT)) || (input.isKeyDown(KeyCode.D)))){
_local1.MulM(rotR);
level.rotation = Math.round((Math.atan2(_local1.x, _local1.y) * Utils.TO_DEG));
};
if (input.isKeyDown(KeyCode.SPACEBAR)){
dispatchEvent(new Event(Events.LEVEL_RESTART));
};
}
}
}//package Game
Section 157
//View (Game.View)
package Game {
import flash.display.*;
import flash.events.*;
public class View extends Sprite {
protected var active:Boolean;
protected var thestage:Stage;
protected var controller:MainController;
public function View(_arg1:MainController, _arg2:Stage){
active = false;
controller = _arg1;
thestage = _arg2;
}
protected function hide(_arg1:Event){
visible = false;
}
protected function show(_arg1:Event){
visible = true;
}
}
}//package Game
Section 158
//mcPreloader_1 (Main_fla.mcPreloader_1)
package Main_fla {
import flash.display.*;
public dynamic class mcPreloader_1 extends MovieClip {
public var damask:MovieClip;
public var wit:MovieClip;
}
}//package Main_fla
Section 159
//FrameTimer (MyUtils.FrameTimer.FrameTimer)
package MyUtils.FrameTimer {
import flash.events.*;
public class FrameTimer {
private var times:int;
private var frame:int;
private var action:Function;
private var freq:int;
public function FrameTimer(_arg1:int, _arg2:Function, _arg3:int=-1){
frame = (_arg1 - 1);
freq = _arg1;
action = _arg2;
times = _arg3;
}
public function update(_arg1:Event):Boolean{
frame++;
frame = (frame % freq);
if (frame == 0){
action();
if (times <= 0){
return (false);
};
times--;
};
return (true);
}
public function setFreq(_arg1:int){
freq = _arg1;
}
}
}//package MyUtils.FrameTimer
Section 160
//Input (MyUtils.InputManager.Input)
package MyUtils.InputManager {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Input {
private var _timeMousePressed:int;
private var _ot:int;
public var mouseDelta:int;// = 0
public var lastKeyName:String;// = ""
private var _bufferSize:int;
private var _keyArr:Array;
private var _timeKeyPressed:int;
private var _timeMouseReleased:int;
public var _keyBuffer:Array;
private var _dt:int;
private var _keyState:Array;
public var mouseX:Number;// = 0
public var mouseY:Number;// = 0
private var _hasMouseScrolled:Boolean;
private var _ascii:Array;
private var _nt:int;
private var _timeKeyReleased:int;
public var lastKeyCode:int;// = 0
private var mouseState:int;// = 0
private var _stage:Stage;
private static const BUFFER_SIZE:int = 5;
private static var _instance:Input;
public function Input(_arg1:SingletonEnforcer){
var _local2:int;
var _local3:int;
lastKeyName = "";
lastKeyCode = 0;
mouseState = 0;
mouseX = 0;
mouseY = 0;
mouseDelta = 0;
super();
_timeKeyPressed = (_nt = (_ot = getTimer()));
_dt = 0;
_ascii = new Array(222);
fillAscii();
_keyState = new Array(222);
_keyArr = new Array();
_local2 = 0;
while (_local2 < 222) {
_keyState[_local2] = new int(0);
if (_ascii[_local2] != undefined){
_keyArr.push(_local2);
};
_local2++;
};
_bufferSize = Input.BUFFER_SIZE;
_keyBuffer = new Array(_bufferSize);
_local3 = 0;
while (_local3 < _bufferSize) {
_keyBuffer[_local3] = new Array(0, 0);
_local3++;
};
}
public function isKeyPressed(_arg1:int):Boolean{
return ((_keyState[_arg1] == 1));
}
public function get timeSinceMouseReleased():int{
return ((getTimer() - _timeMouseReleased));
}
public function isMousePressed():Boolean{
return ((mouseState == 1));
}
public function isKeyDown(_arg1:int):Boolean{
return ((_keyState[_arg1] > 0));
}
public function getKeyString(_arg1:uint):String{
return (_ascii[_arg1]);
}
private function mouseMove(_arg1:MouseEvent):void{
mouseX = (_arg1.stageX - _stage.x);
mouseY = (_arg1.stageY - _stage.y);
}
private function mousePress(_arg1:MouseEvent):void{
mouseState = 1;
_timeMousePressed = getTimer();
}
private function mouseRelease(_arg1:MouseEvent):void{
mouseState = -1;
_timeMouseReleased = getTimer();
}
private function keyPress(_arg1:KeyboardEvent):void{
_keyState[_arg1.keyCode] = Math.max(_keyState[_arg1.keyCode], 1);
lastKeyName = _ascii[_arg1.keyCode];
lastKeyCode = _arg1.keyCode;
if (_keyState[_arg1.keyCode] == 1){
_timeKeyPressed = getTimer();
};
}
private function keyRelease(_arg1:KeyboardEvent):void{
var _local2:int;
_keyState[_arg1.keyCode] = -1;
_local2 = (_bufferSize - 1);
while (_local2 > 0) {
_keyBuffer[_local2] = _keyBuffer[(_local2 - 1)];
_local2--;
};
_keyBuffer[0] = [_arg1.keyCode, 0];
_timeKeyReleased = getTimer();
}
public function get timeSinceLastKeyRelease():int{
return ((getTimer() - _timeKeyReleased));
}
private function fillAscii():void{
_ascii[65] = "A";
_ascii[66] = "B";
_ascii[67] = "C";
_ascii[68] = "D";
_ascii[69] = "E";
_ascii[70] = "F";
_ascii[71] = "G";
_ascii[72] = "H";
_ascii[73] = "I";
_ascii[74] = "J";
_ascii[75] = "K";
_ascii[76] = "L";
_ascii[77] = "M";
_ascii[78] = "N";
_ascii[79] = "O";
_ascii[80] = "P";
_ascii[81] = "Q";
_ascii[82] = "R";
_ascii[83] = "S";
_ascii[84] = "T";
_ascii[85] = "U";
_ascii[86] = "V";
_ascii[87] = "W";
_ascii[88] = "X";
_ascii[89] = "Y";
_ascii[90] = "Z";
_ascii[48] = "0";
_ascii[49] = "1";
_ascii[50] = "2";
_ascii[51] = "3";
_ascii[52] = "4";
_ascii[53] = "5";
_ascii[54] = "6";
_ascii[55] = "7";
_ascii[56] = "8";
_ascii[57] = "9";
_ascii[32] = "Spacebar";
_ascii[13] = "Enter";
_ascii[17] = "Ctrl";
_ascii[16] = "Shift";
_ascii[192] = "~";
_ascii[38] = "up";
_ascii[40] = "down";
_ascii[37] = "left";
_ascii[39] = "right";
_ascii[96] = "Numpad 0";
_ascii[97] = "Numpad 1";
_ascii[98] = "Numpad 2";
_ascii[99] = "Numpad 3";
_ascii[100] = "Numpad 4";
_ascii[101] = "Numpad 5";
_ascii[102] = "Numpad 6";
_ascii[103] = "Numpad 7";
_ascii[104] = "Numpad 8";
_ascii[105] = "Numpad 9";
_ascii[111] = "Numpad /";
_ascii[106] = "Numpad *";
_ascii[109] = "Numpad -";
_ascii[107] = "Numpad +";
_ascii[110] = "Numpad .";
_ascii[45] = "Insert";
_ascii[46] = "Delete";
_ascii[33] = "Page Up";
_ascii[34] = "Page Down";
_ascii[35] = "End";
_ascii[36] = "Home";
_ascii[112] = "F1";
_ascii[113] = "F2";
_ascii[114] = "F3";
_ascii[115] = "F4";
_ascii[116] = "F5";
_ascii[117] = "F6";
_ascii[118] = "F7";
_ascii[119] = "F8";
_ascii[188] = ",";
_ascii[190] = ".";
_ascii[186] = ";";
_ascii[222] = "'";
_ascii[219] = "[";
_ascii[221] = "]";
_ascii[189] = "-";
_ascii[187] = "+";
_ascii[220] = "\\";
_ascii[191] = "/";
_ascii[9] = "TAB";
_ascii[8] = "Backspace";
_ascii[27] = "ESC";
}
public function isKeyReleased(_arg1:int):Boolean{
return ((_keyState[_arg1] == -1));
}
public function isKeyInBuffer(_arg1:int, _arg2:int, _arg3:int):Boolean{
return ((((_keyBuffer[_arg2][0] == _arg1)) && ((_keyBuffer[_arg2][1] <= _arg3))));
}
public function resetInput(){
var _local1:int;
var _local2:int;
_timeKeyPressed = (_nt = (_ot = getTimer()));
_dt = 0;
_local1 = 0;
while (_local1 < 222) {
_keyState[_local1] = new int(0);
_local1++;
};
_local2 = 0;
while (_local2 < _bufferSize) {
_keyBuffer[_local2] = new Array(0, 0);
_local2++;
};
}
public function update():void{
var _local1:int;
var _local2:int;
_nt = getTimer();
_dt = (_nt - _ot);
_ot = _nt;
_local1 = 0;
while (_local1 < _keyArr.length) {
if (_keyState[_keyArr[_local1]] != 0){
var _local3 = _keyState;
var _local4 = _keyArr[_local1];
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
};
if (mouseState != 0){
mouseState++;
};
_local1++;
};
_local2 = 0;
while (_local2 < _bufferSize) {
_keyBuffer[_local2][1] = (_keyBuffer[_local2][1] + _dt);
_local2++;
};
}
public function get timeSinceMousePressed():int{
return ((getTimer() - _timeMousePressed));
}
private function mouseScroll(_arg1:MouseEvent):void{
_hasMouseScrolled = true;
mouseDelta = _arg1.delta;
}
public function isMouseDown():Boolean{
return ((mouseState > 0));
}
public function get timeSinceLastKeyPress():int{
return ((getTimer() - _timeKeyPressed));
}
public function activate(_arg1:Stage):void{
_stage = _arg1;
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyPress, false, 0, true);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyRelease, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, mousePress, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_UP, mouseRelease, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_WHEEL, mouseScroll, false, 0, true);
}
public function get hasMouseScrolled():Boolean{
if (_hasMouseScrolled){
_hasMouseScrolled = false;
return (true);
};
return (false);
}
public function isMouseReleased():Boolean{
return ((mouseState == -1));
}
public static function get instance():Input{
if (Input._instance == null){
Input._instance = new Input(new SingletonEnforcer());
};
return (Input._instance);
}
}
}//package MyUtils.InputManager
class SingletonEnforcer {
private function SingletonEnforcer(){
}
}
Section 161
//KeyCode (MyUtils.InputManager.KeyCode)
package MyUtils.InputManager {
public class KeyCode {
public static const BACKWARD_SLASH:int = 220;
public static const RIGHT:int = 39;
public static const LEFT:int = 37;
public static const SPACEBAR:int = 32;
public static const CAPS_LOCK:int = 20;
public static const FOUR:int = 52;
public static const TWO:int = 50;
public static const CLEAR:int = 12;
public static const TILDE:int = 192;
public static const CONTROL:int = 17;
public static const NUMPAD_DECIMAL:int = 110;
public static const A:int = 65;
public static const B:int = 66;
public static const C:int = 67;
public static const D:int = 68;
public static const E:int = 69;
public static const F:int = 70;
public static const G:int = 71;
public static const H:int = 72;
public static const I:int = 73;
public static const J:int = 74;
public static const K:int = 75;
public static const L:int = 76;
public static const M:int = 77;
public static const N:int = 78;
public static const O:int = 79;
public static const P:int = 80;
public static const Q:int = 81;
public static const R:int = 82;
public static const S:int = 83;
public static const T:int = 84;
public static const U:int = 85;
public static const V:int = 86;
public static const W:int = 87;
public static const X:int = 88;
public static const Y:int = 89;
public static const Z:int = 90;
public static const ONE:int = 49;
public static const PAGE_UP:int = 33;
public static const NUMPAD_ENTER:int = 108;
public static const COLON:int = 186;
public static const BACKSPACE:int = 8;
public static const EIGHT:int = 56;
public static const SHIFT:int = 16;
public static const TAB:int = 9;
public static const THREE:int = 51;
public static const HELP:int = 47;
public static const QUOTES:int = 222;
public static const ALT:int = 18;
public static const NUMPAD_ADD:int = 107;
public static const ESC:int = 27;
public static const F3:int = 114;
public static const ZERO:int = 48;
public static const F4:int = 115;
public static const F5:int = 116;
public static const F6:int = 117;
public static const F7:int = 118;
public static const FIVE:int = 53;
public static const F2:int = 113;
public static const CLOSED_BRACKET:int = 221;
public static const UP:int = 38;
public static const NUMPAD_0:int = 96;
public static const NUMPAD_1:int = 97;
public static const NUMPAD_2:int = 98;
public static const NUMPAD_3:int = 99;
public static const SIX:int = 54;
public static const NUMPAD_5:int = 101;
public static const NUMPAD_6:int = 102;
public static const NUMPAD_7:int = 103;
public static const NUMPAD_SUBTRACT:int = 109;
public static const NUMPAD_9:int = 105;
public static const INSERT:int = 45;
public static const NUMPAD_4:int = 100;
public static const NINE:int = 57;
public static const F9:int = 120;
public static const NUMPAD_8:int = 104;
public static const DOWN:int = 40;
public static const F8:int = 119;
public static const NUMPAD_MULTIPLY:int = 106;
public static const EQUALS:int = 187;
public static const NUMPAD_DIVIDE:int = 111;
public static const UNDERSCORE:int = 189;
public static const HOME:int = 36;
public static const F1:int = 112;
public static const F10:int = 121;
public static const F11:int = 122;
public static const F12:int = 123;
public static const F13:int = 124;
public static const F14:int = 125;
public static const F15:int = 126;
public static const SEVEN:int = 55;
public static const END:int = 35;
public static const OPEN_BRACKET:int = 219;
public static const QUESTION_MARK:int = 191;
public static const NUM_LOCK:int = 144;
public static const PAGE_DOWN:int = 34;
public static const ENTER:int = 13;
public static const DELETE:int = 46;
public static function fCode(_arg1:int):int{
if ((((_arg1 >= 1)) && ((_arg1 <= 15)))){
return ((111 + _arg1));
};
throw (Error("NOT AN F KEY"));
}
public static function digitCode(_arg1:int):int{
if ((((_arg1 >= 0)) && ((_arg1 <= 9)))){
return ((48 + _arg1));
};
throw (Error("NOT A DIGIT"));
}
}
}//package MyUtils.InputManager
Section 162
//State (MyUtils.StateMachine.State)
package MyUtils.StateMachine {
public class State {
public var stateMachine:StateMachine;
protected function setLastState(){
stateMachine.setLastState();
}
public function onUpdate(){
}
public function onEnter(){
}
public function onExit(){
}
protected function setState(_arg1:String){
stateMachine.setState(_arg1);
}
}
}//package MyUtils.StateMachine
Section 163
//StateMachine (MyUtils.StateMachine.StateMachine)
package MyUtils.StateMachine {
import flash.utils.*;
import MyUtils.*;
public class StateMachine {
var states:Dictionary;
var stateChanged:Boolean;
var currentState:String;
var lastState:String;
var nextState:String;
public function StateMachine(){
currentState = (nextState = (lastState = null));
states = new Dictionary();
stateChanged = false;
}
public function onMsg(_arg1:String, _arg2=null){
var _local3:State;
_local3 = states[currentState];
if (_local3.hasOwnProperty(_arg1)){
if (_arg2 != null){
var _local4 = states[currentState];
_local4[_arg1](_arg2);
} else {
_local4 = states[currentState];
_local4[_arg1]();
};
while (stateChanged) {
stateChanged = false;
lastState = currentState;
states[currentState].onExit();
currentState = nextState;
states[currentState].onEnter();
};
} else {
throw (Error(((("ESTADO: " + currentState) + " no responde al mensaje: ") + _arg1)));
};
}
public function setState(_arg1){
if (states[_arg1]){
nextState = _arg1;
stateChanged = true;
} else {
throw (Error((("El Estado: " + _arg1) + " no esta definido")));
};
}
public function addState(_arg1:String, _arg2:State){
_arg2.stateMachine = this;
states[_arg1] = _arg2;
}
public function setLastState(){
nextState = lastState;
stateChanged = true;
}
public function externalSetState(_arg1:String){
var _local2:State;
if (currentState){
_local2 = states[currentState];
_local2.onExit();
lastState = currentState;
};
currentState = _arg1;
_local2 = states[currentState];
_local2.onEnter();
}
}
}//package MyUtils.StateMachine
Section 164
//Flags (MyUtils.Flags)
package MyUtils {
public class Flags {
var flags:int;
public function Flags(){
flags = 0;
}
public function turnOff(_arg1:int):void{
flags = (flags & ~(_arg1));
}
public function isFlagOn(_arg1:int):Boolean{
return (((flags & _arg1) == _arg1));
}
public function turnOn(_arg1:int):void{
flags = (flags | _arg1);
}
public function clear():void{
flags = 0;
}
}
}//package MyUtils
Section 165
//FRateLimiter (MyUtils.FRateLimiter)
package MyUtils {
import flash.utils.*;
public class FRateLimiter {
private static var newT:uint = oldT;
private static var oldT:uint = getTimer();
public static function limitFrame(_arg1:uint):void{
var _local2:uint;
_local2 = (1000 / _arg1);
while (Math.abs((newT - oldT)) < _local2) {
newT = getTimer();
};
oldT = getTimer();
}
}
}//package MyUtils
Section 166
//MochiDigits (MyUtils.MochiDigits)
package MyUtils {
import flash.utils.*;
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function serialize(_arg1:ByteArray):void{
_arg1.writeDouble(Fragment);
_arg1.writeDouble(Encoder);
if (Sibling){
_arg1.writeBoolean(true);
Sibling.serialize(_arg1);
} else {
_arg1.writeBoolean(false);
};
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
public function deserialize(_arg1:ByteArray):void{
Fragment = _arg1.readDouble();
Encoder = _arg1.readDouble();
if (_arg1.readBoolean()){
Sibling = new MochiDigits();
Sibling.deserialize(_arg1);
};
}
}
}//package MyUtils
Section 167
//Motion (MyUtils.Motion)
package MyUtils {
import flash.display.*;
public class Motion {
public static function wave(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Object{
var _local5:Number;
_local5 = (_arg1 + (Math.sin(_arg3) * _arg2));
_arg3 = (_arg3 + _arg4);
return ({value:_local5, angle:_arg3});
}
public static function spring(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
var _local6:Number;
var _local7:Number;
_local6 = ((_arg2 - _arg1.x) * _arg4);
_local7 = ((_arg3 - _arg1.y) * _arg4);
_arg1.x = (_arg1.x + (_local6 * _arg5));
_arg1.y = (_arg1.y + (_local7 * _arg5));
}
public static function ease(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Boolean{
var _local6:Number;
var _local7:Number;
_local6 = ((_arg2 - _arg1.x) * _arg4);
_local7 = ((_arg3 - _arg1.y) * _arg4);
_arg1.x = (_arg1.x + _local6);
_arg1.y = (_arg1.y + _local7);
if ((Math.abs(_local6) + Math.abs(_local7)) < _arg5){
return (false);
};
return (true);
}
}
}//package MyUtils
Section 168
//Utils (MyUtils.Utils)
package MyUtils {
import flash.display.*;
import flash.geom.*;
public class Utils {
public static const DIRECTION_STRAIGHT:int = 0;
public static const DIRECTION_RIGHT:int = 1;
public static const DIRECTION_LEFT:int = 2;
public static const TO_DEG:Number = 57.2957795130823;
public static const TO_RAD:Number = 0.0174532925199433;
static var p1:Point = new Point();
static var p2:Point = new Point();
public static function polar(_arg1:Number, _arg2:Number, _arg3:Point){
_arg3.x = (Math.cos(_arg2) * _arg1);
_arg3.y = (-(Math.sin(_arg2)) * _arg1);
}
public static function direction(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):int{
var _local5:Number;
_local5 = ((_arg1 * _arg4) - (_arg2 * _arg3));
if (_local5 > 0){
return (DIRECTION_LEFT);
};
if (_local5 < 0){
return (DIRECTION_RIGHT);
};
return (DIRECTION_STRAIGHT);
}
public static function distance2D(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
p1.x = _arg1;
p1.y = _arg2;
p2.x = _arg3;
p2.y = _arg4;
return (Point.distance(p1, p2));
}
public static function interval(_arg1:Number, _arg2:Number, _arg3:Number):Number{
if (_arg2 < _arg1){
return (_arg1);
};
if (_arg2 > _arg3){
return (_arg3);
};
return (_arg2);
}
public static function angleBPoints(_arg1, _arg2, _arg3, _arg4):Number{
return (Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)));
}
public static function isInInterval(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{
return ((((_arg1 > _arg2)) && ((_arg1 < _arg3))));
}
public static function smallest(_arg1:Number, _arg2:Number):Number{
if (Math.abs(_arg1) >= Math.abs(_arg2)){
return (_arg1);
};
return (_arg2);
}
public static function stepTowardsValue(_arg1:Number, _arg2:Number, _arg3:Number){
if (_arg1 != _arg2){
if (_arg1 < _arg2){
return (Math.min(_arg2, (_arg1 + _arg3)));
};
return (Math.max(_arg2, (_arg1 - _arg3)));
//unresolved jump
};
return (_arg2);
}
public static function formatTime(_arg1:int, _arg2:int):String{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:int;
_local3 = Math.floor((Number(_arg1) / _arg2));
_local4 = Math.floor((_local3 / 60));
_local5 = Math.floor((_local4 / 60));
_local6 = (_arg1 % _arg2);
_local6 = Math.floor((_local6 * (100 / _arg2)));
_local4 = (_local4 - (_local5 * 60));
_local3 = (_local3 - (((_local5 * 60) * 60) + (_local4 * 60)));
return (((((("" + fillLeft(String(_local4), 2, "0")) + ":") + fillLeft(String(_local3), 2, "0")) + ":") + fillLeft(String(_local6), 2, "0")));
}
public static function distance1D(_arg1:Number, _arg2:Number):Number{
return (Math.abs((_arg1 - _arg2)));
}
public static function fillLeft(_arg1:String, _arg2:int, _arg3:String):String{
var _local4:int;
var _local5:int;
var _local6:String;
var _local7:*;
_local4 = _arg1.length;
_local5 = _arg3.length;
_local6 = new String(_arg1);
_local7 = _local4;
while (_local7 < _arg2) {
_local6 = (_arg3 + _local6);
_local7 = (_local7 + _local5);
};
return (_local6);
}
public static function create2DMatrix(_arg1:int, _arg2:int, _arg3):Array{
var _local4:Array;
var _local5:*;
var _local6:int;
_local4 = new Array(_arg1);
_local5 = 0;
while (_local5 < _arg1) {
_local4[_local5] = new Array(_arg2);
_local6 = 0;
while (_local6 < _arg2) {
_local4[_local5][_local6] = _arg3;
_local6++;
};
_local5++;
};
return (_local4);
}
public static function matrixForEach(_arg1:Array, _arg2:Function):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:int;
_local5 = _arg1.length;
_local6 = _arg1[0].length;
_local3 = 0;
while (_local3 < _local5) {
_local4 = 0;
while (_local4 < _local6) {
_arg2(_arg1[_local3][_local4], _local3, _local4);
_local4++;
};
_local3++;
};
}
public static function fillWithTexture(_arg1:BitmapData, _arg2:BitmapData):void{
var _local3:int;
var _local4:int;
var _local5:Point;
var _local6:int;
var _local7:int;
_local3 = Math.ceil((Number(_arg1.width) / _arg2.width));
_local4 = Math.ceil((Number(_arg1.height) / _arg2.height));
_local5 = new Point();
_local6 = 0;
while (_local6 < _local4) {
_local7 = 0;
while (_local7 < _local3) {
_local5.x = (_local7 * _arg2.width);
_local5.y = (_local6 * _arg2.height);
_arg1.copyPixels(_arg2, _arg2.rect, _local5, null, null, false);
_local7++;
};
_local6++;
};
}
public static function shortAngle(_arg1:Number, _arg2:Number):Number{
if (((((_arg1 * _arg2) > 0)) || ((Math.abs((_arg1 - _arg2)) < Math.PI)))){
return ((_arg2 - _arg1));
};
if (_arg1 > _arg2){
return ((((Math.PI * 2) + _arg2) - _arg1));
};
return ((((-(Math.PI) * 2) + _arg2) - _arg1));
}
public static function randomRange(_arg1:Number, _arg2:Number):Number{
return (((Math.random() * (_arg2 - _arg1)) + _arg1));
}
public static function wrapAround(_arg1:Number, _arg2:Number, _arg3:Number):Number{
if (_arg2 > _arg3){
return ((_arg1 + (_arg2 - _arg3)));
};
if (_arg2 < _arg1){
return ((_arg3 - (_arg1 - _arg2)));
};
return (_arg2);
}
}
}//package MyUtils
Section 169
//bubble_logo3_215 (STBC2_fla.bubble_logo3_215)
package STBC2_fla {
import flash.display.*;
public dynamic class bubble_logo3_215 extends MovieClip {
public function bubble_logo3_215(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package STBC2_fla
Section 170
//BubbleBoxLogoGraphicMc_217 (STBC2_fla.BubbleBoxLogoGraphicMc_217)
package STBC2_fla {
import flash.display.*;
public dynamic class BubbleBoxLogoGraphicMc_217 extends MovieClip {
public var play_latest_text:MovieClip;
}
}//package STBC2_fla
Section 171
//BubbleBoxSplash_244 (STBC2_fla.BubbleBoxSplash_244)
package STBC2_fla {
import flash.display.*;
import flash.events.*;
import Game.*;
public dynamic class BubbleBoxSplash_244 extends MovieClip {
public var link:MovieClip;
public var play_latest_text:MovieClip;
public function BubbleBoxSplash_244(){
addFrameScript(0, frame1, 160, frame161);
}
function frame161(){
stop();
dispatchEvent(new Event(Events.ANIMATION_COMPLETE));
}
function frame1(){
}
}
}//package STBC2_fla
Section 172
//BubbleBoxSplashFocus_213 (STBC2_fla.BubbleBoxSplashFocus_213)
package STBC2_fla {
import flash.display.*;
public dynamic class BubbleBoxSplashFocus_213 extends MovieClip {
public var link:MovieClip;
public var play_latest_text:MovieClip;
public function BubbleBoxSplashFocus_213(){
addFrameScript(0, frame1, 149, frame150);
}
function frame1(){
}
function frame150(){
stop();
}
}
}//package STBC2_fla
Section 173
//bubblxbox_smallLogo_246 (STBC2_fla.bubblxbox_smallLogo_246)
package STBC2_fla {
import flash.display.*;
import flash.events.*;
public dynamic class bubblxbox_smallLogo_246 extends MovieClip {
public var logo_ro:MovieClip;
public function bubblxbox_smallLogo_246(){
addFrameScript(0, frame1);
}
function frame1(){
addEventListener(MouseEvent.MOUSE_OVER, lRollOver);
addEventListener(MouseEvent.MOUSE_OUT, lRollOut);
}
public function lRollOver(_arg1:Event){
this.logo_ro.gotoAndStop(2);
}
public function lRollOut(_arg1:Event){
this.logo_ro.gotoAndStop(1);
}
}
}//package STBC2_fla
Section 174
//bubblxbox_smallLogo_ro_247 (STBC2_fla.bubblxbox_smallLogo_ro_247)
package STBC2_fla {
import flash.display.*;
public dynamic class bubblxbox_smallLogo_ro_247 extends MovieClip {
public function bubblxbox_smallLogo_ro_247(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package STBC2_fla
Section 175
//Contenedor_6 (STBC2_fla.Contenedor_6)
package STBC2_fla {
import flash.display.*;
public dynamic class Contenedor_6 extends MovieClip {
public function Contenedor_6(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package STBC2_fla
Section 176
//CreditsMC_237 (STBC2_fla.CreditsMC_237)
package STBC2_fla {
import flash.display.*;
public dynamic class CreditsMC_237 extends MovieClip {
public var back_button:SimpleButton;
}
}//package STBC2_fla
Section 177
//InGameButtons_220 (STBC2_fla.InGameButtons_220)
package STBC2_fla {
import flash.display.*;
public dynamic class InGameButtons_220 extends MovieClip {
public var sfx_button:SimpleButton;
public var level_select_button:SimpleButton;
public var difficulty_select_button:SimpleButton;
public var back_to_menu_button:SimpleButton;
public var music_button:SimpleButton;
public var hide_button:SimpleButton;
}
}//package STBC2_fla
Section 178
//MainMenuMC2_230 (STBC2_fla.MainMenuMC2_230)
package STBC2_fla {
import flash.display.*;
public dynamic class MainMenuMC2_230 extends MovieClip {
public var options_button:SimpleButton;
public var spin1button:SimpleButton;
public var credits_button:SimpleButton;
public var iTunes_button:SimpleButton;
public var walk_button:SimpleButton;
public var play_button:SimpleButton;
}
}//package STBC2_fla
Section 179
//AdContainer (AdContainer)
package {
import flash.display.*;
public dynamic class AdContainer extends MovieClip {
}
}//package
Section 180
//Arco (Arco)
package {
import Game.*;
public dynamic class Arco extends GameBody {
public var __id7_:ConcaveArcShape;
public function Arco(){
addFrameScript(0, frame1);
__setProp___id7__Arco_Layer1_1();
}
public function init(){
this.type = Constants.WALL;
this.addToBackground = true;
}
function __setProp___id7__Arco_Layer1_1(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.categoryBits = 1;
__id7_.colgroup = -2;
__id7_.density = 0;
__id7_.friction = 1;
__id7_.maskBits = 0xFFFF;
__id7_.restitution = 0;
__id7_.sensor = false;
__id7_.type = 0;
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package
Section 181
//BloqueBreakable (BloqueBreakable)
package {
import Game.*;
public dynamic class BloqueBreakable extends BreakableBody {
public var __id579_:Rectangulo;
public function BloqueBreakable(){
addFrameScript(0, frame1);
__setProp___id579__BloqueBreakable_shapes_1();
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id579__BloqueBreakable_shapes_1(){
try {
__id579_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id579_.categoryBits = 1;
__id579_.colgroup = 0;
__id579_.density = 0;
__id579_.friction = 1;
__id579_.maskBits = 0xFFFF;
__id579_.restitution = 0.2;
__id579_.sensor = false;
__id579_.type = 8;
try {
__id579_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 182
//BloqueMovil (BloqueMovil)
package {
import Game.*;
public dynamic class BloqueMovil extends GameBody {
public var __id12_:Rectangulo;
public function BloqueMovil(){
addFrameScript(0, frame1);
__setProp___id12__BloqueMovil_shapes_1();
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id12__BloqueMovil_shapes_1(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.categoryBits = 1;
__id12_.colgroup = -2;
__id12_.density = 0.1;
__id12_.friction = 1;
__id12_.maskBits = 0xFFFF;
__id12_.restitution = 0.2;
__id12_.sensor = false;
__id12_.type = 0;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 183
//BloqueMovilLevel19 (BloqueMovilLevel19)
package {
import Game.*;
public dynamic class BloqueMovilLevel19 extends GameBody {
public var __id438_:Circulo;
public function BloqueMovilLevel19(){
addFrameScript(0, frame1);
__setProp___id438__CirculoMovilNivel19_Layer1_1();
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id438__CirculoMovilNivel19_Layer1_1(){
try {
__id438_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id438_.categoryBits = 1;
__id438_.colgroup = -2;
__id438_.density = 0.1;
__id438_.friction = 1;
__id438_.maskBits = 0xFFFF;
__id438_.restitution = 0;
__id438_.sensor = false;
__id438_.type = 0;
try {
__id438_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 184
//BloqueMovilNivel19 (BloqueMovilNivel19)
package {
import Game.*;
public dynamic class BloqueMovilNivel19 extends Saw {
public var __id439_:Circulo;
public function BloqueMovilNivel19(){
addFrameScript(0, frame1);
__setProp___id439__BloqueMovilNivel19_shapes_1();
}
public function init(){
this.type = Constants.SAW;
this.convertToBitmap = false;
}
function __setProp___id439__BloqueMovilNivel19_shapes_1(){
try {
__id439_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id439_.categoryBits = 1;
__id439_.colgroup = -2;
__id439_.density = 0.1;
__id439_.friction = 1;
__id439_.maskBits = 0xFFFF;
__id439_.restitution = 0.2;
__id439_.sensor = true;
__id439_.type = 11;
try {
__id439_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package
Section 185
//BloqueMovilNivel29 (BloqueMovilNivel29)
package {
import Game.*;
public dynamic class BloqueMovilNivel29 extends GameBody {
public var __id517_:Rectangulo;
public function BloqueMovilNivel29(){
addFrameScript(0, frame1);
__setProp___id517__BloqueMovilNivel29_shapes_1();
}
function __setProp___id517__BloqueMovilNivel29_shapes_1(){
try {
__id517_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id517_.categoryBits = 1;
__id517_.colgroup = -2;
__id517_.density = 0.1;
__id517_.friction = 1;
__id517_.maskBits = 0xFFFF;
__id517_.restitution = 0.2;
__id517_.sensor = false;
__id517_.type = 0;
try {
__id517_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
}
}//package
Section 186
//BloqueMovilNivel30 (BloqueMovilNivel30)
package {
import Game.*;
public dynamic class BloqueMovilNivel30 extends GameBody {
public var __id584_:Rectangulo;
public var __id586_:ConcaveArcShape;
public var __id587_:Rectangulo;
public var __id585_:Rectangulo;
public var __id589_:Rectangulo;
public var __id588_:Rectangulo;
public function BloqueMovilNivel30(){
addFrameScript(0, frame1);
__setProp___id588__BloqueMovilNivel30_shapes_1();
__setProp___id586__BloqueMovilNivel30_shapes_1();
__setProp___id585__BloqueMovilNivel30_shapes_1();
__setProp___id589__BloqueMovilNivel30_shapes_1();
__setProp___id587__BloqueMovilNivel30_shapes_1();
__setProp___id584__BloqueMovilNivel30_shapes_1();
}
function __setProp___id588__BloqueMovilNivel30_shapes_1(){
try {
__id588_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id588_.categoryBits = 1;
__id588_.colgroup = -2;
__id588_.density = 0.1;
__id588_.friction = 1;
__id588_.maskBits = 0xFFFF;
__id588_.restitution = 0.2;
__id588_.sensor = false;
__id588_.type = 0;
try {
__id588_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id587__BloqueMovilNivel30_shapes_1(){
try {
__id587_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id587_.categoryBits = 1;
__id587_.colgroup = -2;
__id587_.density = 0.1;
__id587_.friction = 1;
__id587_.maskBits = 0xFFFF;
__id587_.restitution = 0.2;
__id587_.sensor = false;
__id587_.type = 0;
try {
__id587_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id585__BloqueMovilNivel30_shapes_1(){
try {
__id585_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id585_.categoryBits = 2;
__id585_.colgroup = -2;
__id585_.density = 0.1;
__id585_.friction = 1;
__id585_.maskBits = 0xFFFF;
__id585_.restitution = 0;
__id585_.sensor = false;
__id585_.type = 0;
try {
__id585_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id584__BloqueMovilNivel30_shapes_1(){
try {
__id584_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id584_.categoryBits = 1;
__id584_.colgroup = -2;
__id584_.density = 0.1;
__id584_.friction = 1;
__id584_.maskBits = 0xFFFF;
__id584_.restitution = 0.2;
__id584_.sensor = false;
__id584_.type = 0;
try {
__id584_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id589__BloqueMovilNivel30_shapes_1(){
try {
__id589_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id589_.categoryBits = 1;
__id589_.colgroup = -2;
__id589_.density = 0.1;
__id589_.friction = 1;
__id589_.maskBits = 0xFFFF;
__id589_.restitution = 0.2;
__id589_.sensor = false;
__id589_.type = 9;
try {
__id589_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id586__BloqueMovilNivel30_shapes_1(){
try {
__id586_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id586_.categoryBits = 1;
__id586_.colgroup = 0;
__id586_.density = 0.1;
__id586_.friction = 1;
__id586_.maskBits = 0xFFFF;
__id586_.restitution = 0.2;
__id586_.sensor = false;
__id586_.type = 0;
try {
__id586_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 187
//BloqueMovilNivel38 (BloqueMovilNivel38)
package {
import Game.*;
public dynamic class BloqueMovilNivel38 extends GameBody {
public var __id677_:Rectangulo;
public var __id678_:Rectangulo;
public function BloqueMovilNivel38(){
addFrameScript(0, frame1);
__setProp___id677__BloqueMovilNivel38_shapes_1();
__setProp___id678__BloqueMovilNivel38_shapes_1();
}
public function init(){
this.type = Constants.WALL;
this.convertToBitmap = true;
}
function __setProp___id677__BloqueMovilNivel38_shapes_1(){
try {
__id677_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id677_.categoryBits = 1;
__id677_.colgroup = -2;
__id677_.density = 0.1;
__id677_.friction = 1;
__id677_.maskBits = 0xFFFF;
__id677_.restitution = 0.2;
__id677_.sensor = false;
__id677_.type = 0;
try {
__id677_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
function __setProp___id678__BloqueMovilNivel38_shapes_1(){
try {
__id678_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id678_.categoryBits = 1;
__id678_.colgroup = -2;
__id678_.density = 0.1;
__id678_.friction = 1;
__id678_.maskBits = 0xFFFF;
__id678_.restitution = 0.2;
__id678_.sensor = true;
__id678_.type = 2;
try {
__id678_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 188
//BloqueMovilNivel4 (BloqueMovilNivel4)
package {
import Game.*;
public dynamic class BloqueMovilNivel4 extends GameBody {
public var __id319_:Rectangulo;
public function BloqueMovilNivel4(){
addFrameScript(0, frame1);
__setProp___id319__BloqueMovilNivel4_shapes_1();
}
function __setProp___id319__BloqueMovilNivel4_shapes_1(){
try {
__id319_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id319_.categoryBits = 1;
__id319_.colgroup = -2;
__id319_.density = 0.1;
__id319_.friction = 1;
__id319_.maskBits = 0xFFFF;
__id319_.restitution = 0.2;
__id319_.sensor = false;
__id319_.type = 0;
try {
__id319_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
}
}//package
Section 189
//BloqueMovilNivel42 (BloqueMovilNivel42)
package {
import Game.*;
public dynamic class BloqueMovilNivel42 extends GameBody {
public var __id814_:Rectangulo;
public function BloqueMovilNivel42(){
addFrameScript(0, frame1);
__setProp___id814__BloqueMovilNivel42_shapes_1();
}
function frame1(){
stop();
this.type = Constants.BREAKER;
}
function __setProp___id814__BloqueMovilNivel42_shapes_1(){
try {
__id814_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id814_.categoryBits = 1;
__id814_.colgroup = -2;
__id814_.density = 0.1;
__id814_.friction = 1;
__id814_.maskBits = 0xFFFF;
__id814_.restitution = 0.2;
__id814_.sensor = false;
__id814_.type = 0;
try {
__id814_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 190
//BloqueMovilSTBC17 (BloqueMovilSTBC17)
package {
import Game.*;
public dynamic class BloqueMovilSTBC17 extends GameBody {
public var __id263_:Rectangulo;
public function BloqueMovilSTBC17(){
addFrameScript(0, frame1);
__setProp___id263__BloqueMovilSTBC17_shapes_1();
}
function __setProp___id263__BloqueMovilSTBC17_shapes_1(){
try {
__id263_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id263_.categoryBits = 1;
__id263_.colgroup = -2;
__id263_.density = 0.1;
__id263_.friction = 1;
__id263_.maskBits = 0xFFFF;
__id263_.restitution = 0.2;
__id263_.sensor = false;
__id263_.type = 0;
try {
__id263_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
}
}//package
Section 191
//BolaPreloader (BolaPreloader)
package {
import Game.Preloader.*;
public dynamic class BolaPreloader extends BolaParent {
}
}//package
Section 192
//BolasNivel37 (BolasNivel37)
package {
import Game.*;
public dynamic class BolasNivel37 extends GameBody {
public var __id654_:Rectangulo;
public var __id656_:ConcaveArcShape;
public var __id655_:ConcaveArcShape;
public var __id660_:Rectangulo;
public var __id657_:Rectangulo;
public var __id658_:Rectangulo;
public var __id659_:Rectangulo;
public function BolasNivel37(){
addFrameScript(0, frame1);
__setProp___id660__BolasNivel37_Layer1_1();
__setProp___id657__BolasNivel37_Layer1_1();
__setProp___id658__BolasNivel37_Layer1_1();
__setProp___id655__BolasNivel37_Layer1_1();
__setProp___id659__BolasNivel37_Layer1_1();
__setProp___id656__BolasNivel37_Layer1_1();
__setProp___id654__BolasNivel37_Layer1_1();
}
function __setProp___id654__BolasNivel37_Layer1_1(){
try {
__id654_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id654_.categoryBits = 2;
__id654_.colgroup = -2;
__id654_.density = 0.1;
__id654_.friction = 1;
__id654_.maskBits = 0xFFFF;
__id654_.restitution = 0;
__id654_.sensor = false;
__id654_.type = 0;
try {
__id654_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id659__BolasNivel37_Layer1_1(){
try {
__id659_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id659_.categoryBits = 1;
__id659_.colgroup = -2;
__id659_.density = 0.1;
__id659_.friction = 1;
__id659_.maskBits = 0xFFFF;
__id659_.restitution = 0;
__id659_.sensor = false;
__id659_.type = 0;
try {
__id659_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id658__BolasNivel37_Layer1_1(){
try {
__id658_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id658_.categoryBits = 1;
__id658_.colgroup = -2;
__id658_.density = 0.1;
__id658_.friction = 1;
__id658_.maskBits = 0xFFFF;
__id658_.restitution = 0;
__id658_.sensor = false;
__id658_.type = 0;
try {
__id658_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id655__BolasNivel37_Layer1_1(){
try {
__id655_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id655_.categoryBits = 1;
__id655_.colgroup = -2;
__id655_.density = 0.1;
__id655_.friction = 1;
__id655_.maskBits = 0xFFFF;
__id655_.restitution = 0.2;
__id655_.sensor = false;
__id655_.type = 0;
try {
__id655_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id660__BolasNivel37_Layer1_1(){
try {
__id660_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id660_.categoryBits = 1;
__id660_.colgroup = -2;
__id660_.density = 0.1;
__id660_.friction = 1;
__id660_.maskBits = 0xFFFF;
__id660_.restitution = 0;
__id660_.sensor = false;
__id660_.type = 0;
try {
__id660_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id657__BolasNivel37_Layer1_1(){
try {
__id657_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id657_.categoryBits = 1;
__id657_.colgroup = -2;
__id657_.density = 0.1;
__id657_.friction = 1;
__id657_.maskBits = 0xFFFF;
__id657_.restitution = 0;
__id657_.sensor = false;
__id657_.type = 0;
try {
__id657_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id656__BolasNivel37_Layer1_1(){
try {
__id656_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id656_.categoryBits = 1;
__id656_.colgroup = -2;
__id656_.density = 0.1;
__id656_.friction = 1;
__id656_.maskBits = 0xFFFF;
__id656_.restitution = 0.2;
__id656_.sensor = false;
__id656_.type = 0;
try {
__id656_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 193
//bubblebox_score (bubblebox_score)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
public dynamic class bubblebox_score extends MovieClip {
public var loader:URLLoader;
public var loadingStatus:String;
public var hexChars:String;
public var score:Number;
public var gameID:Number;
public var insertname:TextField;
public function bubblebox_score(){
addFrameScript(0, frame1);
}
public function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (tr(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public function hash(_arg1:String):String{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeUTFBytes(_arg1);
return (hashBinary(_local2));
}
public function removeListeners():void{
loader.removeEventListener(Event.COMPLETE, completeHandler);
loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
loader.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
public function clicked(_arg1:MouseEvent):void{
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:URLVariables;
var _local7:URLRequest;
if (loadingStatus == "insertName"){
if (((((!((_arg1.target.name == "insertName"))) && (!((this.insertname.text == "YOUR NAME"))))) && ((this.insertname.text.length > 0)))){
_local2 = this.insertname.text;
_local3 = ((((gameID + "_") + score) + "_") + _local2);
_local4 = ((((((((((gameID + "_") + "4234232143214421") + "_") + score) + "_") + "2537625476251") + "_") + _local2) + "_") + "desleutelistessa");
_local5 = hash(_local4);
_local6 = new URLVariables();
_local6.datastring = _local3;
_local6.hashstring = _local5;
_local7 = new URLRequest("http://www.bubblebox.com/scripts/insertscore2008.php");
_local7.data = _local6;
_local7.method = URLRequestMethod.POST;
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, completeHandler, false, 0, true);
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler, false, 0, true);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler, false, 0, true);
loader.load(_local7);
this.gotoAndStop(2);
loadingStatus = "sending";
};
} else {
if (loadingStatus == "sending"){
} else {
if (loadingStatus == "completed"){
navigateToURL(new URLRequest((("http://www.bubblebox.com/highscores/" + gameID) + ".htm")), "_blank");
} else {
if (loadingStatus == "failed"){
loadingStatus = "insertName";
this.gotoAndStop(1);
};
};
};
};
}
public function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (tr(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public function failed():void{
loadingStatus = "failed";
removeListeners();
this.gotoAndStop(4);
}
public function setScore(_arg1:Number, _arg2:Number):void{
score = _arg1;
gameID = _arg2;
}
public function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
public function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
function frame1(){
hexChars = "0123456789abcdef";
this.stage.focus = this.insertname;
this.insertname.setSelection(0, this.insertname.text.length);
loader = new URLLoader();
loadingStatus = "insertName";
this.addEventListener(MouseEvent.CLICK, clicked, false, 0, true);
stop();
}
public function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
public function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
public function ioErrorHandler(_arg1:IOErrorEvent):void{
trace("ioError");
failed();
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
trace("securityError");
failed();
}
public function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local3:String;
var _local4:int;
var _local5:int;
_local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public function createBlocks(_arg1:ByteArray):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = new Array();
_local3 = (_arg1.length * 8);
_local4 = 0xFF;
_local5 = 0;
while (_local5 < _local3) {
_local2[int((_local5 >> 5))] = (_local2[int((_local5 >> 5))] | ((_arg1[(_local5 / 8)] & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[int((_local3 >> 5))] = (_local2[int((_local3 >> 5))] | (128 << (_local3 % 32)));
_local2[int(((((_local3 + 64) >>> 9) << 4) + 14))] = _local3;
return (_local2);
}
public function hashBinary(_arg1:ByteArray):String{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:int;
_local2 = 1732584193;
_local3 = -271733879;
_local4 = -1732584194;
_local5 = 271733878;
_local10 = createBlocks(_arg1);
_local11 = _local10.length;
_local12 = 0;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 1))], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 3))], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 5))], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 7))], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 9))], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 11))], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[int((_local12 + 13))], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[int((_local12 + 15))], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 6))], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 0))], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 10))], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 4))], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 14))], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 8))], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[int((_local12 + 2))], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[int((_local12 + 12))], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 5))], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 8))], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 11))], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 14))], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 1))], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 4))], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 7))], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 10))], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 13))], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 0))], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 3))], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 6))], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[int((_local12 + 9))], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[int((_local12 + 12))], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[int((_local12 + 15))], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[int((_local12 + 2))], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 0))], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 7))], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 14))], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 5))], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 12))], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 3))], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 10))], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 1))], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 8))], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 15))], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 6))], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 13))], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[int((_local12 + 4))], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[int((_local12 + 11))], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[int((_local12 + 2))], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[int((_local12 + 9))], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
return ((((toHex(_local2) + toHex(_local3)) + toHex(_local4)) + toHex(_local5)));
}
public function tr(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int;
_local9 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((rol(_local9, _arg7) + _arg3));
}
public function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public function completeHandler(_arg1:Event):void{
loadingStatus = "completed";
removeListeners();
this.gotoAndStop(3);
}
public function ror(_arg1:int, _arg2:int):uint{
var _local3:int;
_local3 = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (tr(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (tr(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
}
}//package
Section 194
//BubbleScoreContainer (BubbleScoreContainer)
package {
import flash.display.*;
public dynamic class BubbleScoreContainer extends MovieClip {
public var bbscore:bubblebox_score;
}
}//package
Section 195
//Burn (Burn)
package {
import flash.media.*;
public dynamic class Burn extends Sound {
}
}//package
Section 196
//CheckBox_disabledIcon (CheckBox_disabledIcon)
package {
import flash.display.*;
public dynamic class CheckBox_disabledIcon extends MovieClip {
}
}//package
Section 197
//CheckBox_downIcon (CheckBox_downIcon)
package {
import flash.display.*;
public dynamic class CheckBox_downIcon extends MovieClip {
}
}//package
Section 198
//CheckBox_overIcon (CheckBox_overIcon)
package {
import flash.display.*;
public dynamic class CheckBox_overIcon extends MovieClip {
}
}//package
Section 199
//CheckBox_selectedDisabledIcon (CheckBox_selectedDisabledIcon)
package {
import flash.display.*;
public dynamic class CheckBox_selectedDisabledIcon extends MovieClip {
}
}//package
Section 200
//CheckBox_selectedDownIcon (CheckBox_selectedDownIcon)
package {
import flash.display.*;
public dynamic class CheckBox_selectedDownIcon extends MovieClip {
}
}//package
Section 201
//CheckBox_selectedOverIcon (CheckBox_selectedOverIcon)
package {
import flash.display.*;
public dynamic class CheckBox_selectedOverIcon extends MovieClip {
}
}//package
Section 202
//CheckBox_selectedUpIcon (CheckBox_selectedUpIcon)
package {
import flash.display.*;
public dynamic class CheckBox_selectedUpIcon extends MovieClip {
}
}//package
Section 203
//CheckBox_upIcon (CheckBox_upIcon)
package {
import flash.display.*;
public dynamic class CheckBox_upIcon extends MovieClip {
}
}//package
Section 204
//CircleTrap (CircleTrap)
package {
import Game.*;
public dynamic class CircleTrap extends GameBody {
public var __id321_:Circulo;
public function CircleTrap(){
addFrameScript(0, frame1);
__setProp___id321__CircleTrap_Layer1_1();
}
public function init(){
this.type = Constants.SPIKE;
this.removeGraphic = true;
}
function __setProp___id321__CircleTrap_Layer1_1(){
try {
__id321_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id321_.categoryBits = 1;
__id321_.colgroup = -2;
__id321_.density = 0;
__id321_.friction = 0.1;
__id321_.maskBits = 0xFFFF;
__id321_.restitution = 0;
__id321_.sensor = true;
__id321_.type = 0;
try {
__id321_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package
Section 205
//Circulo (Circulo)
package {
import Game.*;
public dynamic class Circulo extends GameCircleShape {
public function Circulo(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 206
//CirculoMovil (CirculoMovil)
package {
import Game.*;
public dynamic class CirculoMovil extends GameBody {
public var __id383_:Circulo;
public function CirculoMovil(){
addFrameScript(0, frame1);
__setProp___id383__CirculoMovil_Layer1_1();
}
function __setProp___id383__CirculoMovil_Layer1_1(){
try {
__id383_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id383_.categoryBits = 1;
__id383_.colgroup = -2;
__id383_.density = 0.1;
__id383_.friction = 1;
__id383_.maskBits = 0xFFFF;
__id383_.restitution = 0;
__id383_.sensor = false;
__id383_.type = 0;
try {
__id383_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
}
}//package
Section 207
//CirculoMovilNivel24 (CirculoMovilNivel24)
package {
import Game.*;
public dynamic class CirculoMovilNivel24 extends GameBody {
public var __id56_:Rectangulo;
public var __id57_:Rectangulo;
public var __id55_:Rectangulo;
public var __id53_:Circulo;
public var __id54_:Rectangulo;
public function CirculoMovilNivel24(){
addFrameScript(0, frame1);
__setProp___id53__CirculoMovilNivel24_Layer1_1();
__setProp___id55__CirculoMovilNivel24_actions_1();
__setProp___id54__CirculoMovilNivel24_actions_1();
__setProp___id57__CirculoMovilNivel24_actions_1();
__setProp___id56__CirculoMovilNivel24_actions_1();
}
function __setProp___id55__CirculoMovilNivel24_actions_1(){
try {
__id55_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id55_.categoryBits = 1;
__id55_.colgroup = -2;
__id55_.density = 0.1;
__id55_.friction = 1;
__id55_.maskBits = 0xFFFF;
__id55_.restitution = 0;
__id55_.sensor = false;
__id55_.type = 0;
try {
__id55_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id54__CirculoMovilNivel24_actions_1(){
try {
__id54_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id54_.categoryBits = 1;
__id54_.colgroup = -2;
__id54_.density = 0.1;
__id54_.friction = 1;
__id54_.maskBits = 0xFFFF;
__id54_.restitution = 0;
__id54_.sensor = false;
__id54_.type = 0;
try {
__id54_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id53__CirculoMovilNivel24_Layer1_1(){
try {
__id53_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id53_.categoryBits = 1;
__id53_.colgroup = -2;
__id53_.density = 0.1;
__id53_.friction = 1;
__id53_.maskBits = 0xFFFF;
__id53_.restitution = 0;
__id53_.sensor = false;
__id53_.type = 0;
try {
__id53_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id57__CirculoMovilNivel24_actions_1(){
try {
__id57_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id57_.categoryBits = 1;
__id57_.colgroup = -2;
__id57_.density = 0.1;
__id57_.friction = 1;
__id57_.maskBits = 0xFFFF;
__id57_.restitution = 0;
__id57_.sensor = false;
__id57_.type = 0;
try {
__id57_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id56__CirculoMovilNivel24_actions_1(){
try {
__id56_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id56_.categoryBits = 1;
__id56_.colgroup = -2;
__id56_.density = 0.1;
__id56_.friction = 1;
__id56_.maskBits = 0xFFFF;
__id56_.restitution = 0;
__id56_.sensor = false;
__id56_.type = 0;
try {
__id56_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 208
//CirculoNivel20 (CirculoNivel20)
package {
import Game.*;
public dynamic class CirculoNivel20 extends GameBody {
public var __id492_:Circulo;
public var __id493_:Rectangulo;
public function CirculoNivel20(){
addFrameScript(0, frame1);
__setProp___id492__CirculoNivel20_Layer1_1();
__setProp___id493__CirculoNivel20_Layer1_1();
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id492__CirculoNivel20_Layer1_1(){
try {
__id492_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id492_.categoryBits = 1;
__id492_.colgroup = -2;
__id492_.density = 0.1;
__id492_.friction = 1;
__id492_.maskBits = 0xFFFF;
__id492_.restitution = 0;
__id492_.sensor = false;
__id492_.type = 0;
try {
__id492_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id493__CirculoNivel20_Layer1_1(){
try {
__id493_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id493_.categoryBits = 2;
__id493_.colgroup = -2;
__id493_.density = 0.1;
__id493_.friction = 1;
__id493_.maskBits = 0xFFFF;
__id493_.restitution = 0;
__id493_.sensor = false;
__id493_.type = 0;
try {
__id493_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 209
//ColiParedCirculo (ColiParedCirculo)
package {
import Game.*;
public dynamic class ColiParedCirculo extends GameBody {
public var __id318_:Circulo;
public function ColiParedCirculo(){
addFrameScript(0, frame1);
__setProp___id318__ColiParedCirculo_Layer1_1();
}
function __setProp___id318__ColiParedCirculo_Layer1_1(){
try {
__id318_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id318_.categoryBits = 1;
__id318_.colgroup = 0;
__id318_.density = 0;
__id318_.friction = 1;
__id318_.maskBits = 0xFFFF;
__id318_.restitution = 0;
__id318_.sensor = false;
__id318_.type = 0;
try {
__id318_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
}
}//package
Section 210
//ConcaveArcShape (ConcaveArcShape)
package {
import Game.*;
public dynamic class ConcaveArcShape extends GameArcShape {
public function ConcaveArcShape(){
addFrameScript(0, frame1);
}
function frame1(){
this.density = 0;
this.friction = 1;
this.restitution = 1;
}
}
}//package
Section 211
//CruzOldNivel12 (CruzOldNivel12)
package {
import Game.*;
public dynamic class CruzOldNivel12 extends GameBody {
public var __id149_:Rectangulo;
public var __id152_:Rectangulo;
public var __id150_:Rectangulo;
public var __id151_:Rectangulo;
public function CruzOldNivel12(){
addFrameScript(0, frame1);
__setProp___id151__CruzOldNivel12_shapes_1();
__setProp___id150__CruzOldNivel12_shapes_1();
__setProp___id152__CruzOldNivel12_shapes_1();
__setProp___id149__CruzOldNivel12_shapes_1();
}
function __setProp___id150__CruzOldNivel12_shapes_1(){
try {
__id150_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id150_.categoryBits = 1;
__id150_.colgroup = -2;
__id150_.density = 0.1;
__id150_.friction = 1;
__id150_.maskBits = 0xFFFF;
__id150_.restitution = 0.2;
__id150_.sensor = false;
__id150_.type = 0;
try {
__id150_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id151__CruzOldNivel12_shapes_1(){
try {
__id151_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id151_.categoryBits = 1;
__id151_.colgroup = -2;
__id151_.density = 0.1;
__id151_.friction = 1;
__id151_.maskBits = 0xFFFF;
__id151_.restitution = 0.2;
__id151_.sensor = false;
__id151_.type = 0;
try {
__id151_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id152__CruzOldNivel12_shapes_1(){
try {
__id152_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id152_.categoryBits = 1;
__id152_.colgroup = -2;
__id152_.density = 0.1;
__id152_.friction = 1;
__id152_.maskBits = 0xFFFF;
__id152_.restitution = 0.2;
__id152_.sensor = false;
__id152_.type = 0;
try {
__id152_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id149__CruzOldNivel12_shapes_1(){
try {
__id149_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id149_.categoryBits = 1;
__id149_.colgroup = -2;
__id149_.density = 0.1;
__id149_.friction = 1;
__id149_.maskBits = 0xFFFF;
__id149_.restitution = 0.2;
__id149_.sensor = false;
__id149_.type = 0;
try {
__id149_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 212
//CursorMC (CursorMC)
package {
import flash.display.*;
public dynamic class CursorMC extends MovieClip {
public var cog2:MovieClip;
public var cog1:MovieClip;
public var luz:MovieClip;
public function CursorMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 213
//DifficultyMC (DifficultyMC)
package {
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import Game.*;
import flash.text.*;
public dynamic class DifficultyMC extends MovieClip {
public var bqCheckBox:CheckBox;
public var sfxCheckBox:CheckBox;
public var skipCheckBox:CheckBox;
public var tipsCheckBox:CheckBox;
public var oqCheckBox:CheckBox;
public var fpsCheckBox:CheckBox;
public var continue_button:SimpleButton;
public var multiplier:TextField;
public var slider:MySliderBar;
public var musicCheckBox:CheckBox;
public function DifficultyMC(){
addFrameScript(0, frame1);
__setProp_sfxCheckBox_DifficultyMC_ui_1();
__setProp_skipCheckBox_DifficultyMC_ui_1();
__setProp_oqCheckBox_DifficultyMC_ui_1();
__setProp_bqCheckBox_DifficultyMC_ui_1();
__setProp_tipsCheckBox_DifficultyMC_ui_1();
__setProp_musicCheckBox_DifficultyMC_ui_1();
__setProp_fpsCheckBox_DifficultyMC_ui_1();
}
function __setProp_sfxCheckBox_DifficultyMC_ui_1(){
try {
sfxCheckBox["componentInspectorSetting"] = true;
} catch(e:Error) {
};
sfxCheckBox.enabled = true;
sfxCheckBox.label = "";
sfxCheckBox.labelPlacement = "right";
sfxCheckBox.selected = false;
sfxCheckBox.visible = true;
try {
sfxCheckBox["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function setBQCheckBox(_arg1:Boolean):void{
bqCheckBox.selected = _arg1;
}
function __setProp_bqCheckBox_DifficultyMC_ui_1(){
try {
bqCheckBox["componentInspectorSetting"] = true;
} catch(e:Error) {
};
bqCheckBox.enabled = true;
bqCheckBox.label = "";
bqCheckBox.labelPlacement = "right";
bqCheckBox.selected = false;
bqCheckBox.visible = true;
try {
bqCheckBox["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function getMusicCheckBox():Boolean{
return (musicCheckBox.selected);
}
public function getSFXCheckBox():Boolean{
return (sfxCheckBox.selected);
}
function __setProp_musicCheckBox_DifficultyMC_ui_1(){
try {
musicCheckBox["componentInspectorSetting"] = true;
} catch(e:Error) {
};
musicCheckBox.enabled = true;
musicCheckBox.label = "";
musicCheckBox.labelPlacement = "right";
musicCheckBox.selected = false;
musicCheckBox.visible = true;
try {
musicCheckBox["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_oqCheckBox_DifficultyMC_ui_1(){
try {
oqCheckBox["componentInspectorSetting"] = true;
} catch(e:Error) {
};
oqCheckBox.enabled = true;
oqCheckBox.label = "";
oqCheckBox.labelPlacement = "right";
oqCheckBox.selected = false;
oqCheckBox.visible = true;
try {
oqCheckBox["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function updateMultiplier(_arg1:Event){
multiplier.text = ("" + Glob.difficultyMultiplier(slider.value).toFixed(2));
}
function frame1(){
stop();
multiplier.mouseEnabled = false;
slider.addEventListener(slider.CHANGE_EVENT, updateMultiplier, false, 0, true);
continue_button.addEventListener(MouseEvent.CLICK, listenerContinue, false, 0, true);
}
public function getTipsCheckBox():Boolean{
return (tipsCheckBox.selected);
}
public function getFpsCheckBox():Boolean{
return (fpsCheckBox.selected);
}
function __setProp_tipsCheckBox_DifficultyMC_ui_1(){
try {
tipsCheckBox["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tipsCheckBox.enabled = true;
tipsCheckBox.label = "";
tipsCheckBox.labelPlacement = "right";
tipsCheckBox.selected = false;
tipsCheckBox.visible = true;
try {
tipsCheckBox["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function setOQCheckBox(_arg1:Boolean):void{
oqCheckBox.selected = _arg1;
}
public function listenerContinue(_arg1:Event){
dispatchEvent(new Event(Events.DIFFICULTY_SELECTED));
}
public function setTipsCheckBox(_arg1:Boolean){
tipsCheckBox.selected = _arg1;
}
public function getOQCheckBox():Boolean{
return (oqCheckBox.selected);
}
function __setProp_fpsCheckBox_DifficultyMC_ui_1(){
try {
fpsCheckBox["componentInspectorSetting"] = true;
} catch(e:Error) {
};
fpsCheckBox.enabled = true;
fpsCheckBox.label = "";
fpsCheckBox.labelPlacement = "right";
fpsCheckBox.selected = false;
fpsCheckBox.visible = true;
try {
fpsCheckBox["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function setMusicCheckBox(_arg1:Boolean){
musicCheckBox.selected = _arg1;
}
public function setSFXCheckBox(_arg1:Boolean){
sfxCheckBox.selected = _arg1;
}
public function getDifficulty():Number{
return (slider.getValue());
}
public function setDifficulty(_arg1:Number):void{
slider.setValue(_arg1);
multiplier.text = ("" + Glob.difficultyMultiplier(_arg1).toFixed(2));
}
function __setProp_skipCheckBox_DifficultyMC_ui_1(){
try {
skipCheckBox["componentInspectorSetting"] = true;
} catch(e:Error) {
};
skipCheckBox.enabled = true;
skipCheckBox.label = "";
skipCheckBox.labelPlacement = "right";
skipCheckBox.selected = false;
skipCheckBox.visible = true;
try {
skipCheckBox["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function setSkipCheckBox(_arg1:Boolean){
skipCheckBox.selected = _arg1;
}
public function getSkipCheckBox():Boolean{
return (skipCheckBox.selected);
}
public function getBQCheckBox():Boolean{
return (bqCheckBox.selected);
}
public function setFpsCheckBox(_arg1:Boolean):void{
fpsCheckBox.selected = _arg1;
}
}
}//package
Section 214
//Empacador (Empacador)
package {
import flash.display.*;
import Box2D.Collision.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
import Box2DIntegration.*;
class Empacador extends MovieClip {
private var _b2ContactManager:b2ContactManager;
private var _b2Bound:b2Bound;
private var _b2PolygonContact:b2PolygonContact;
private var _b2iPrismaticJoint:b2iPrismaticJoint;
private var _b2GearJointDef:b2GearJointDef;
private var _b2PulleyJoint:b2PulleyJointDef;
private var _b2World:b2World;
private var _b2iShape:b2iShape;
private var _b2BroadPhase:b2BroadPhase;
private var _b2Pair:b2Pair;
private var _b2iLevel:b2iLevel;
private var _b2Shape:b2Shape;
private var _b2ContactRegister:b2ContactRegister;
private var _b2Mat22:b2Mat22;
private var _b2ContactListener:b2ContactListener;
private var _b2DebugDraw:b2DebugDraw;
private var _b2DestructionListener:b2DestructionListener;
private var _b2iBoxShape:b2iBoxShape;
private var _b2Math:b2Math;
private var _b2StaticEdgeShape:b2StaticEdgeShape;
private var _b2ConvexArcDef:b2ConvexArcDef;
private var _b2NullContact:b2NullContact;
private var _b2Vec2:b2Vec2;
private var _b2GearJoint:b2GearJoint;
private var _b2Contact:b2Contact;
private var _b2ShapeDef:b2ShapeDef;
private var _b2iBody:b2iBody;
private var _b2iRectTriangleShape:b2iRectTriangleShape;
private var _b2MouseJointDef:b2MouseJointDef;
private var _b2PrismaticJoint:b2PrismaticJoint;
private var _b2CircleShape:b2CircleShape;
private var _b2MassData:b2MassData;
private var _b2iObjectGroup:b2iObjectGroup;
private var _b2Manifold:b2Manifold;
private var _b2iConcaveArcShape:b2iConcaveArcShape;
private var _b2PolygonDef:b2PolygonDef;
private var _b2BufferedPair:b2BufferedPair;
private var _clipVertex:ClipVertex;
private var _b2iCircleShape:b2iCircleShape;
private var _b2CircleContact:b2CircleContact;
private var _b2iRevoluteJoint:b2iRevoluteJoint;
private var _b2ConcaveArcDef:b2ConcaveArcDef;
private var _b2PolygonShape:b2PolygonShape;
private var _b2JointDef:b2JointDef;
private var _b2Jacobian:b2Jacobian;
private var _b2ConcaveArcShape:b2ConcaveArcShape;
private var _b2Body:b2Body;
private var _b2StaticEdgeChainDef:b2StaticEdgeChainDef;
private var _b2Proxy;
private var _b2ConvexArcShape:b2ConvexArcShape;
private var _b2DistanceJointDef:b2DistanceJointDef;
private var _b2TimeStep:b2TimeStep;
private var _b2ContactConstraintPoint:b2ContactConstraintPoint;
private var _b2iGameObject:b2iGameObject;
private var _b2Joint:b2Joint;
private var _b2CircleDef:b2CircleDef;
private var _b2DistanceJoint:b2DistanceJoint;
private var _b2ContactConstraint:b2ContactConstraint;
private var _b2MouseJoint:b2MouseJoint;
private var _b2Collision:b2Collision;
private var _b2PairManager:b2PairManager;
private var _b2ContactFilter:b2ContactFilter;
private var _b2BodyDef:b2BodyDef;
private var _b2ContactId:b2ContactID;
private var _b2JointEdge:b2JointEdge;
private var _b2Sweep:b2Sweep;
private var _b2PairCallback:b2PairCallback;
private var _b2AABB:b2AABB;
private var _features:Features;
private var _b2ContactPoint:b2ContactPoint;
private var _b2PrismaticJointDef:b2PrismaticJointDef;
private var _b2Island:b2Island;
private var _b2StaticEdgeChain:b2StaticEdgeChain;
private var _b2OBB:b2OBB;
private var _b2BoundaryListener:b2BoundaryListener;
private var _b2ContactEdge:b2ContactEdge;
private var _b2PolyAndCircleContact:b2PolyAndCircleContact;
private var _b2RevoluteJoint:b2RevoluteJoint;
private var _b2ContactSolver:b2ContactSolver;
private var _b2XForm:b2XForm;
private var _b2RevoluteJointDef:b2RevoluteJointDef;
private var _b2Settings:b2Settings;
}
}//package
Section 215
//Exit (Exit)
package {
import flash.media.*;
public dynamic class Exit extends Sound {
}
}//package
Section 216
//ExitMC (ExitMC)
package {
import Game.*;
public dynamic class ExitMC extends GameBody {
public var __id11_:Circulo;
public function ExitMC(){
addFrameScript(0, frame1);
__setProp___id11__Exit_Shapes_1();
}
public function init(){
this.convertToBitmap = false;
this.type = Constants.EXIT;
}
function frame1(){
}
function __setProp___id11__Exit_Shapes_1(){
try {
__id11_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id11_.categoryBits = 1;
__id11_.colgroup = 0;
__id11_.density = 0;
__id11_.friction = 0.1;
__id11_.maskBits = 0xFFFF;
__id11_.restitution = 0;
__id11_.sensor = true;
__id11_.type = 0;
try {
__id11_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 217
//Explosion (Explosion)
package {
import flash.media.*;
public dynamic class Explosion extends Sound {
}
}//package
Section 218
//FlameMC (FlameMC)
package {
import Game.*;
public dynamic class FlameMC extends Flame {
public var __id75_:Rectangulo;
public var __id76_:Rectangulo;
public function FlameMC(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 36, frame37, 48, frame49, 52, frame53);
__setProp___id75__FlameMC_shape_1();
__setProp___id76__FlameMC_shape_1();
}
function frame2(){
stop();
}
function frame10(){
sensorOn();
}
function frame1(){
stop();
}
function frame37(){
if (this.counter > 0){
gotoAndPlay("startLoop");
};
}
function __setProp___id75__FlameMC_shape_1(){
try {
__id75_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id75_.categoryBits = 1;
__id75_.colgroup = -2;
__id75_.density = 0;
__id75_.friction = 0.1;
__id75_.maskBits = 0xFFFF;
__id75_.restitution = 0;
__id75_.sensor = true;
__id75_.type = 3;
try {
__id75_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame53(){
this.gotoAndStop(2);
}
function frame49(){
sensorOff();
}
function __setProp___id76__FlameMC_shape_1(){
try {
__id76_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id76_.categoryBits = 1;
__id76_.colgroup = -2;
__id76_.density = 0;
__id76_.friction = 0.1;
__id76_.maskBits = 0xFFFF;
__id76_.restitution = 0;
__id76_.sensor = true;
__id76_.type = 3;
try {
__id76_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 219
//FlameMovilMartilloMC (FlameMovilMartilloMC)
package {
import Game.*;
public dynamic class FlameMovilMartilloMC extends Flame {
public var __id591_:Rectangulo;
public var __id592_:Rectangulo;
public var __id593_:Rectangulo;
public function FlameMovilMartilloMC(){
addFrameScript(0, frame1, 1, frame2, 141, frame142, 168, frame169, 178, frame179, 184, frame185);
__setProp___id593__FlameMovilMartilloMC_shape_1();
__setProp___id592__FlameMovilMartilloMC_shape_1();
__setProp___id591__FlameMovilMartilloMC_shape_1();
}
function frame142(){
sensorOn();
}
function __setProp___id591__FlameMovilMartilloMC_shape_1(){
try {
__id591_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id591_.categoryBits = 1;
__id591_.colgroup = -2;
__id591_.density = 0.1;
__id591_.friction = 0.1;
__id591_.maskBits = 0xFFFF;
__id591_.restitution = 0;
__id591_.sensor = true;
__id591_.type = 3;
try {
__id591_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame2(){
stop();
}
function frame169(){
if (this.counter > 0){
gotoAndPlay("startLoop");
};
}
function __setProp___id592__FlameMovilMartilloMC_shape_1(){
try {
__id592_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id592_.categoryBits = 1;
__id592_.colgroup = -2;
__id592_.density = 0.1;
__id592_.friction = 0.1;
__id592_.maskBits = 0xFFFF;
__id592_.restitution = 0;
__id592_.sensor = true;
__id592_.type = 3;
try {
__id592_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id593__FlameMovilMartilloMC_shape_1(){
try {
__id593_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id593_.categoryBits = 1;
__id593_.colgroup = -2;
__id593_.density = 0.1;
__id593_.friction = 1;
__id593_.maskBits = 0xFFFF;
__id593_.restitution = 0.1;
__id593_.sensor = false;
__id593_.type = 0;
try {
__id593_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame179(){
sensorOff();
}
function frame185(){
this.gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package
Section 220
//FlameMovilMC (FlameMovilMC)
package {
import Game.*;
public dynamic class FlameMovilMC extends Flame {
public var __id520_:Rectangulo;
public var __id521_:Rectangulo;
public var __id519_:Rectangulo;
public function FlameMovilMC(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 36, frame37, 46, frame47, 52, frame53);
__setProp___id521__FlameMovilMC_shape_1();
__setProp___id520__FlameMovilMC_shape_1();
__setProp___id519__FlameMovilMC_shape_1();
}
function __setProp___id521__FlameMovilMC_shape_1(){
try {
__id521_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id521_.categoryBits = 2;
__id521_.colgroup = -2;
__id521_.density = 0.1;
__id521_.friction = 1;
__id521_.maskBits = 0xFFFF;
__id521_.restitution = 0.1;
__id521_.sensor = false;
__id521_.type = 0;
try {
__id521_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id519__FlameMovilMC_shape_1(){
try {
__id519_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id519_.categoryBits = 1;
__id519_.colgroup = -2;
__id519_.density = 0.1;
__id519_.friction = 0.1;
__id519_.maskBits = 0xFFFF;
__id519_.restitution = 0;
__id519_.sensor = true;
__id519_.type = 3;
try {
__id519_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame37(){
if (this.counter > 0){
gotoAndPlay("startLoop");
};
}
function frame11(){
sensorOn();
}
function frame2(){
stop();
}
function frame47(){
sensorOff();
}
function __setProp___id520__FlameMovilMC_shape_1(){
try {
__id520_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id520_.categoryBits = 1;
__id520_.colgroup = -2;
__id520_.density = 0.1;
__id520_.friction = 0.1;
__id520_.maskBits = 0xFFFF;
__id520_.restitution = 0;
__id520_.sensor = true;
__id520_.type = 3;
try {
__id520_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
function frame53(){
this.gotoAndStop(2);
}
}
}//package
Section 221
//FlameSinBaseMC (FlameSinBaseMC)
package {
import Game.*;
public dynamic class FlameSinBaseMC extends Flame {
public var __id96_:Rectangulo;
public var __id97_:Rectangulo;
public function FlameSinBaseMC(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 36, frame37, 48, frame49, 52, frame53);
__setProp___id96__FlameSinBaseMC_shape_1();
__setProp___id97__FlameSinBaseMC_shape_1();
}
function __setProp___id97__FlameSinBaseMC_shape_1(){
try {
__id97_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id97_.categoryBits = 1;
__id97_.colgroup = -2;
__id97_.density = 0;
__id97_.friction = 0.1;
__id97_.maskBits = 0xFFFF;
__id97_.restitution = 0;
__id97_.sensor = true;
__id97_.type = 3;
try {
__id97_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
sensorOn();
}
function frame1(){
stop();
}
function frame37(){
if (this.counter > 0){
gotoAndPlay("startLoop");
};
}
function frame2(){
stop();
}
function __setProp___id96__FlameSinBaseMC_shape_1(){
try {
__id96_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id96_.categoryBits = 1;
__id96_.colgroup = -2;
__id96_.density = 0;
__id96_.friction = 0.1;
__id96_.maskBits = 0xFFFF;
__id96_.restitution = 0;
__id96_.sensor = true;
__id96_.type = 3;
try {
__id96_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame49(){
sensorOff();
}
function frame53(){
this.gotoAndStop(2);
}
}
}//package
Section 222
//FocusLostMC (FocusLostMC)
package {
import flash.display.*;
public dynamic class FocusLostMC extends MovieClip {
public var bbsplash:MovieClip;
}
}//package
Section 223
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
}
}//package
Section 224
//Fondo (Fondo)
package {
import flash.display.*;
public dynamic class Fondo extends BitmapData {
public function Fondo(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 225
//GameOverMC (GameOverMC)
package {
import flash.display.*;
import flash.events.*;
import Game.*;
public dynamic class GameOverMC extends MovieClip {
public var back_button:SimpleButton;
public function GameOverMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
back_button.addEventListener(MouseEvent.CLICK, lBackToMenu, false, 0, true);
}
public function lBackToMenu(_arg1:Event){
dispatchEvent(new Event(Events.BACK_TO_MENU));
}
}
}//package
Section 226
//HelpWindow (HelpWindow)
package {
import flash.display.*;
public dynamic class HelpWindow extends MovieClip {
public var walkthroughButton:SimpleButton;
public var playButton:SimpleButton;
public function HelpWindow(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 227
//InGameInterfaceMC (InGameInterfaceMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.geom.*;
import Game.*;
import MyUtils.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class InGameInterfaceMC extends MovieClip {
public var minTimer:TextField;
public var SLIDING:int;
public var PANEL_HIDE_X:int;
public var secTimer:TextField;
public var centTimer:TextField;
public var EASING_LIMIT:Number;
public var PANEL_SHOW_X:int;
public var level:TextField;
public var ROT_LLAVE:Number;
public var tipButton:SimpleButton;
public var panel_status:int;
public var HIDDEN:int;
public var button_panel:MovieClip;
public var SHOWING:int;
public var multiplier:TextField;
public var PANEL_EASING:Number;
public function InGameInterfaceMC(){
addFrameScript(0, frame1);
}
public function showPanel(){
panel_status = SLIDING;
addEventListener(Event.ENTER_FRAME, slidePanelUp, false, 0, true);
}
function frame1(){
stop();
level.mouseEnabled = false;
multiplier.mouseEnabled = false;
minTimer.mouseEnabled = false;
secTimer.mouseEnabled = false;
centTimer.mouseEnabled = false;
PANEL_SHOW_X = 402;
PANEL_HIDE_X = 742;
PANEL_EASING = 0.04;
EASING_LIMIT = 0.1;
ROT_LLAVE = 2;
SHOWING = 1;
HIDDEN = 2;
SLIDING = 3;
panel_status = SHOWING;
button_panel.difficulty_select_button.addEventListener(MouseEvent.CLICK, listenDifficultySelect);
button_panel.level_select_button.addEventListener(MouseEvent.CLICK, listenLevelSelect);
button_panel.music_button.addEventListener(MouseEvent.CLICK, listenToggleMusic);
button_panel.sfx_button.addEventListener(MouseEvent.CLICK, listenToggleSFX);
button_panel.back_to_menu_button.addEventListener(MouseEvent.CLICK, listenBackToMenu);
button_panel.hide_button.addEventListener(MouseEvent.CLICK, listenHidePanel);
tipButton.addEventListener(MouseEvent.CLICK, listenTipButton);
}
public function listenLevelSelect(_arg1:Event){
dispatchEvent(new Event(Events.LEVEL_SELECT));
}
public function listenBackToMenu(_arg1:Event){
dispatchEvent(new Event(Events.BACK_TO_MENU));
}
public function listenToggleSFX(_arg1:Event){
dispatchEvent(new Event(Events.TOGGLE_SFX));
}
public function listenTipButton(_arg1:Event){
dispatchEvent(new Event(Events.SHOW_TIPS));
}
public function slidePanelDown(_arg1:Event){
var _local2:Number;
_local2 = ((PANEL_HIDE_X - button_panel.x) * PANEL_EASING);
button_panel.hide_button.rotation = (button_panel.hide_button.rotation + (_local2 * ROT_LLAVE));
if (!Motion.ease(button_panel, PANEL_HIDE_X, button_panel.y, PANEL_EASING, EASING_LIMIT)){
removeEventListener(Event.ENTER_FRAME, slidePanelDown);
panel_status = HIDDEN;
};
}
public function slidePanelUp(_arg1:Event){
var _local2:Number;
_local2 = ((PANEL_SHOW_X - button_panel.x) * PANEL_EASING);
button_panel.hide_button.rotation = (button_panel.hide_button.rotation + (_local2 * ROT_LLAVE));
if (!Motion.ease(button_panel, PANEL_SHOW_X, button_panel.y, PANEL_EASING, EASING_LIMIT)){
removeEventListener(Event.ENTER_FRAME, slidePanelUp);
panel_status = SHOWING;
};
}
public function listenDifficultySelect(_arg1:Event){
dispatchEvent(new Event(Events.DIFFICULTY_SELECT));
}
public function listenHidePanel(_arg1:Event){
if (panel_status == HIDDEN){
showPanel();
} else {
if (panel_status == SHOWING){
hidePanel();
};
};
}
public function hidePanel(){
panel_status = SLIDING;
addEventListener(Event.ENTER_FRAME, slidePanelDown, false, 0, true);
}
public function listenToggleMusic(_arg1:Event){
dispatchEvent(new Event(Events.TOGGLE_MUSIC));
}
}
}//package
Section 228
//InterLevelMC (InterLevelMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.geom.*;
import Game.*;
import MyUtils.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class InterLevelMC extends MovieClip {
public var nextLevel:SimpleButton;
public var score:TextField;
public var scorefield:MovieClip;
public var time:TextField;
public var total_score:TextField;
public var selectLevel:SimpleButton;
public function InterLevelMC(){
addFrameScript(0, frame1);
}
public function lselectLevel(_arg1:Event){
dispatchEvent(new Event(Events.LEVEL_SELECT));
}
public function enableNextLevel(_arg1:Boolean){
nextLevel.visible = _arg1;
}
function frame1(){
stop();
score.mouseEnabled = false;
time.mouseEnabled = false;
total_score.mouseEnabled = false;
selectLevel.addEventListener(MouseEvent.CLICK, lselectLevel, false, 0, true);
nextLevel.addEventListener(MouseEvent.CLICK, lnextLevel, false, 0, true);
}
public function lnextLevel(_arg1:Event){
dispatchEvent(new Event(Events.NEXT_LEVEL));
}
public function refresh(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number, _arg5:int, _arg6:int){
var _local7:MovieClip;
score.text = ("" + _arg1);
time.text = ("" + Utils.formatTime(_arg2, 60));
total_score.text = ("" + _arg6);
if (scorefield != null){
removeChild(scorefield);
};
_local7 = new BubbleScoreContainer();
scorefield = _local7.bbscore;
scorefield.x = 190;
scorefield.y = 358;
addChild(scorefield);
scorefield.setScore(_arg6, Glob.GAME_ID);
}
}
}//package
Section 229
//LaserGiratorio (LaserGiratorio)
package {
import Game.*;
public dynamic class LaserGiratorio extends GameBody {
public var __id305_:Rectangulo;
public var __id306_:Rectangulo;
public var __id307_:Rectangulo;
public var __id310_:Rectangulo;
public var __id308_:Rectangulo;
public var __id309_:Rectangulo;
public function LaserGiratorio(){
addFrameScript(0, frame1);
__setProp___id305__LaserGiratorio_Layer1_1();
__setProp___id306__LaserGiratorio_Layer1_1();
__setProp___id307__LaserGiratorio_Layer1_1();
__setProp___id309__LaserGiratorio_Layer1_1();
__setProp___id310__LaserGiratorio_Layer1_1();
__setProp___id308__LaserGiratorio_Layer1_1();
}
function __setProp___id305__LaserGiratorio_Layer1_1(){
try {
__id305_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id305_.categoryBits = 2;
__id305_.colgroup = -2;
__id305_.density = 0.1;
__id305_.friction = 0;
__id305_.maskBits = 0xFFFF;
__id305_.restitution = 0;
__id305_.sensor = false;
__id305_.type = 0;
try {
__id305_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id306__LaserGiratorio_Layer1_1(){
try {
__id306_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id306_.categoryBits = 1;
__id306_.colgroup = -2;
__id306_.density = 0.1;
__id306_.friction = 0;
__id306_.maskBits = 0xFFFF;
__id306_.restitution = 0;
__id306_.sensor = true;
__id306_.type = 2;
try {
__id306_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id310__LaserGiratorio_Layer1_1(){
try {
__id310_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id310_.categoryBits = 1;
__id310_.colgroup = -2;
__id310_.density = 0.1;
__id310_.friction = 0;
__id310_.maskBits = 0xFFFF;
__id310_.restitution = 0;
__id310_.sensor = true;
__id310_.type = 2;
try {
__id310_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id307__LaserGiratorio_Layer1_1(){
try {
__id307_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id307_.categoryBits = 1;
__id307_.colgroup = -2;
__id307_.density = 0.1;
__id307_.friction = 0;
__id307_.maskBits = 0xFFFF;
__id307_.restitution = 0;
__id307_.sensor = true;
__id307_.type = 2;
try {
__id307_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id308__LaserGiratorio_Layer1_1(){
try {
__id308_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id308_.categoryBits = 2;
__id308_.colgroup = -2;
__id308_.density = 0.1;
__id308_.friction = 0;
__id308_.maskBits = 0xFFFF;
__id308_.restitution = 0;
__id308_.sensor = false;
__id308_.type = 0;
try {
__id308_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
type = Constants.WALL;
}
function __setProp___id309__LaserGiratorio_Layer1_1(){
try {
__id309_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id309_.categoryBits = 1;
__id309_.colgroup = -2;
__id309_.density = 0.1;
__id309_.friction = 0;
__id309_.maskBits = 0xFFFF;
__id309_.restitution = 0;
__id309_.sensor = true;
__id309_.type = 2;
try {
__id309_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 230
//Level10 (Level10)
package {
import Game.*;
public dynamic class Level10 extends GameLevel {
public var __id378_:Pared;
public var __id379_:Pared;
public var __id380_:Pared;
public var __id381_:Pared;
public var __id382_:Pared;
public var __id372_:Pared;
public var __id384_:CirculoMovil;
public var __id385_:CirculoMovil;
public var __id373_:Pared;
public var __id386_:CirculoMovil;
public var __id374_:Pared;
public var __id387_:RevoJoint;
public var __id375_:Pared;
public var __id388_:RevoJoint;
public var __id376_:Pared;
public var __id389_:RevoJoint;
public var __id377_:Pared;
public function Level10(){
__setProp___id388__Level10_Objects_1();
__setProp___id385__Level10_MovingWalls_1();
__setProp___id382__Level10_Walls_1();
__setProp___id389__Level10_Objects_1();
__setProp___id373__Level10_borderwalls_1();
__setProp___id372__Level10_borderwalls_1();
__setProp___id387__Level10_Objects_1();
__setProp___id377__Level10_Walls_1();
__setProp___id379__Level10_Walls_1();
__setProp___id376__Level10_Walls_1();
__setProp___id381__Level10_Walls_1();
__setProp___id378__Level10_Walls_1();
__setProp___id375__Level10_borderwalls_1();
__setProp___id380__Level10_Walls_1();
__setProp___id374__Level10_borderwalls_1();
__setProp___id386__Level10_MovingWalls_1();
__setProp___id384__Level10_MovingWalls_1();
}
function __setProp___id380__Level10_Walls_1(){
try {
__id380_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id380_.addToBackground = true;
__id380_.affectedByGravity = true;
__id380_.angularDamping = 0;
__id380_.convertToBitmap = false;
__id380_.linearDamping = 0;
try {
__id380_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id381__Level10_Walls_1(){
try {
__id381_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id381_.addToBackground = true;
__id381_.affectedByGravity = true;
__id381_.angularDamping = 0;
__id381_.convertToBitmap = false;
__id381_.linearDamping = 0;
try {
__id381_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id389__Level10_Objects_1(){
try {
__id389_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id389_.forceResistance = 0;
__id389_.speed = 3;
__id389_.torque = 10000;
__id389_.torqueResistance = 0;
__id389_.useGround = false;
try {
__id389_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id382__Level10_Walls_1(){
try {
__id382_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id382_.addToBackground = true;
__id382_.affectedByGravity = true;
__id382_.angularDamping = 0;
__id382_.convertToBitmap = false;
__id382_.linearDamping = 0;
try {
__id382_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id374__Level10_borderwalls_1(){
try {
__id374_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id374_.addToBackground = true;
__id374_.affectedByGravity = true;
__id374_.angularDamping = 0;
__id374_.convertToBitmap = false;
__id374_.linearDamping = 0;
try {
__id374_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id386__Level10_MovingWalls_1(){
try {
__id386_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id386_.addToBackground = false;
__id386_.affectedByGravity = false;
__id386_.angularDamping = 0;
__id386_.convertToBitmap = true;
__id386_.linearDamping = 0;
try {
__id386_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id372__Level10_borderwalls_1(){
try {
__id372_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id372_.addToBackground = true;
__id372_.affectedByGravity = true;
__id372_.angularDamping = 0;
__id372_.convertToBitmap = false;
__id372_.linearDamping = 0;
try {
__id372_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id384__Level10_MovingWalls_1(){
try {
__id384_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id384_.addToBackground = false;
__id384_.affectedByGravity = false;
__id384_.angularDamping = 0;
__id384_.convertToBitmap = true;
__id384_.linearDamping = 0;
try {
__id384_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id376__Level10_Walls_1(){
try {
__id376_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id376_.addToBackground = true;
__id376_.affectedByGravity = true;
__id376_.angularDamping = 0;
__id376_.convertToBitmap = false;
__id376_.linearDamping = 0;
try {
__id376_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id377__Level10_Walls_1(){
try {
__id377_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id377_.addToBackground = true;
__id377_.affectedByGravity = true;
__id377_.angularDamping = 0;
__id377_.convertToBitmap = false;
__id377_.linearDamping = 0;
try {
__id377_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id378__Level10_Walls_1(){
try {
__id378_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id378_.addToBackground = true;
__id378_.affectedByGravity = true;
__id378_.angularDamping = 0;
__id378_.convertToBitmap = false;
__id378_.linearDamping = 0;
try {
__id378_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id375__Level10_borderwalls_1(){
try {
__id375_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id375_.addToBackground = true;
__id375_.affectedByGravity = true;
__id375_.angularDamping = 0;
__id375_.convertToBitmap = false;
__id375_.linearDamping = 0;
try {
__id375_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id379__Level10_Walls_1(){
try {
__id379_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id379_.addToBackground = true;
__id379_.affectedByGravity = true;
__id379_.angularDamping = 0;
__id379_.convertToBitmap = false;
__id379_.linearDamping = 0;
try {
__id379_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id373__Level10_borderwalls_1(){
try {
__id373_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id373_.addToBackground = true;
__id373_.affectedByGravity = true;
__id373_.angularDamping = 0;
__id373_.convertToBitmap = false;
__id373_.linearDamping = 0;
try {
__id373_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id387__Level10_Objects_1(){
try {
__id387_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id387_.forceResistance = 0;
__id387_.speed = 3;
__id387_.torque = 10000;
__id387_.torqueResistance = 0;
__id387_.useGround = false;
try {
__id387_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id385__Level10_MovingWalls_1(){
try {
__id385_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id385_.addToBackground = false;
__id385_.affectedByGravity = false;
__id385_.angularDamping = 0;
__id385_.convertToBitmap = true;
__id385_.linearDamping = 0;
try {
__id385_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id388__Level10_Objects_1(){
try {
__id388_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id388_.forceResistance = 0;
__id388_.speed = 3;
__id388_.torque = 10000;
__id388_.torqueResistance = 0;
__id388_.useGround = false;
try {
__id388_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 231
//Level11 (Level11)
package {
import Game.*;
public dynamic class Level11 extends GameLevel {
public var __id395_:Pared;
public var __id397_:Pared;
public var __id396_:Pared;
public var __id390_:Pared;
public var __id391_:Pared;
public var __id398_:Pared;
public var __id399_:Pared;
public var __id392_:Pared;
public var __id393_:Pared;
public function Level11(){
__setProp___id393__Level11_borderwalls_1();
__setProp___id392__Level11_borderwalls_1();
__setProp___id397__Level11_Walls_1();
__setProp___id396__Level11_Walls_1();
__setProp___id398__Level11_Walls_1();
__setProp___id391__Level11_borderwalls_1();
__setProp___id390__Level11_borderwalls_1();
__setProp___id399__Level11_Walls_1();
__setProp___id395__Level11_Walls_1();
}
function __setProp___id393__Level11_borderwalls_1(){
try {
__id393_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id393_.addToBackground = true;
__id393_.affectedByGravity = true;
__id393_.angularDamping = 0;
__id393_.convertToBitmap = false;
__id393_.linearDamping = 0;
try {
__id393_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id396__Level11_Walls_1(){
try {
__id396_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id396_.addToBackground = true;
__id396_.affectedByGravity = true;
__id396_.angularDamping = 0;
__id396_.convertToBitmap = false;
__id396_.linearDamping = 0;
try {
__id396_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id391__Level11_borderwalls_1(){
try {
__id391_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id391_.addToBackground = true;
__id391_.affectedByGravity = true;
__id391_.angularDamping = 0;
__id391_.convertToBitmap = false;
__id391_.linearDamping = 0;
try {
__id391_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id390__Level11_borderwalls_1(){
try {
__id390_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id390_.addToBackground = true;
__id390_.affectedByGravity = true;
__id390_.angularDamping = 0;
__id390_.convertToBitmap = false;
__id390_.linearDamping = 0;
try {
__id390_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id395__Level11_Walls_1(){
try {
__id395_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id395_.addToBackground = true;
__id395_.affectedByGravity = true;
__id395_.angularDamping = 0;
__id395_.convertToBitmap = false;
__id395_.linearDamping = 0;
try {
__id395_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id397__Level11_Walls_1(){
try {
__id397_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id397_.addToBackground = true;
__id397_.affectedByGravity = true;
__id397_.angularDamping = 0;
__id397_.convertToBitmap = false;
__id397_.linearDamping = 0;
try {
__id397_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id398__Level11_Walls_1(){
try {
__id398_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id398_.addToBackground = true;
__id398_.affectedByGravity = true;
__id398_.angularDamping = 0;
__id398_.convertToBitmap = false;
__id398_.linearDamping = 0;
try {
__id398_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id399__Level11_Walls_1(){
try {
__id399_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id399_.addToBackground = true;
__id399_.affectedByGravity = true;
__id399_.angularDamping = 0;
__id399_.convertToBitmap = false;
__id399_.linearDamping = 0;
try {
__id399_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id392__Level11_borderwalls_1(){
try {
__id392_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id392_.addToBackground = true;
__id392_.affectedByGravity = true;
__id392_.angularDamping = 0;
__id392_.convertToBitmap = false;
__id392_.linearDamping = 0;
try {
__id392_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 232
//Level12 (Level12)
package {
import Game.*;
public dynamic class Level12 extends GameLevel {
public var __id407_:Pared;
public var __id400_:Pared;
public var __id401_:Pared;
public var __id402_:Pared;
public var __id403_:Pared;
public var __id405_:Pared;
public var __id406_:Pared;
public function Level12(){
__setProp___id405__Level12_Walls_1();
__setProp___id406__Level12_Walls_1();
__setProp___id407__Level12_Walls_1();
__setProp___id400__Level12_borderwalls_1();
__setProp___id401__Level12_borderwalls_1();
__setProp___id402__Level12_borderwalls_1();
__setProp___id403__Level12_borderwalls_1();
}
function __setProp___id406__Level12_Walls_1(){
try {
__id406_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id406_.addToBackground = true;
__id406_.affectedByGravity = true;
__id406_.angularDamping = 0;
__id406_.convertToBitmap = false;
__id406_.linearDamping = 0;
try {
__id406_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id407__Level12_Walls_1(){
try {
__id407_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id407_.addToBackground = true;
__id407_.affectedByGravity = true;
__id407_.angularDamping = 0;
__id407_.convertToBitmap = false;
__id407_.linearDamping = 0;
try {
__id407_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id401__Level12_borderwalls_1(){
try {
__id401_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id401_.addToBackground = true;
__id401_.affectedByGravity = true;
__id401_.angularDamping = 0;
__id401_.convertToBitmap = false;
__id401_.linearDamping = 0;
try {
__id401_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id403__Level12_borderwalls_1(){
try {
__id403_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id403_.addToBackground = true;
__id403_.affectedByGravity = true;
__id403_.angularDamping = 0;
__id403_.convertToBitmap = false;
__id403_.linearDamping = 0;
try {
__id403_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id402__Level12_borderwalls_1(){
try {
__id402_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id402_.addToBackground = true;
__id402_.affectedByGravity = true;
__id402_.angularDamping = 0;
__id402_.convertToBitmap = false;
__id402_.linearDamping = 0;
try {
__id402_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id400__Level12_borderwalls_1(){
try {
__id400_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id400_.addToBackground = true;
__id400_.affectedByGravity = true;
__id400_.angularDamping = 0;
__id400_.convertToBitmap = false;
__id400_.linearDamping = 0;
try {
__id400_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id405__Level12_Walls_1(){
try {
__id405_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id405_.addToBackground = true;
__id405_.affectedByGravity = true;
__id405_.angularDamping = 0;
__id405_.convertToBitmap = false;
__id405_.linearDamping = 0;
try {
__id405_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 233
//Level13 (Level13)
package {
import Game.*;
public dynamic class Level13 extends GameLevel {
public var __id412_:Pared;
public var __id411_:Pared;
public var __id408_:Pared;
public var __id409_:Pared;
public var __id413_:Pared;
public var __id414_:Pared;
public var __id415_:Pared;
public var __id416_:Pared;
public var __id410_:Pared;
public function Level13(){
__setProp___id414__Level13_Walls_1();
__setProp___id415__Level13_Walls_1();
__setProp___id416__Level13_Walls_1();
__setProp___id408__Level13_borderwalls_1();
__setProp___id410__Level13_borderwalls_1();
__setProp___id409__Level13_borderwalls_1();
__setProp___id411__Level13_Walls_1();
__setProp___id412__Level13_Walls_1();
__setProp___id413__Level13_Walls_1();
}
function __setProp___id410__Level13_borderwalls_1(){
try {
__id410_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id410_.addToBackground = true;
__id410_.affectedByGravity = true;
__id410_.angularDamping = 0;
__id410_.convertToBitmap = false;
__id410_.linearDamping = 0;
try {
__id410_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id411__Level13_Walls_1(){
try {
__id411_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id411_.addToBackground = true;
__id411_.affectedByGravity = true;
__id411_.angularDamping = 0;
__id411_.convertToBitmap = false;
__id411_.linearDamping = 0;
try {
__id411_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id412__Level13_Walls_1(){
try {
__id412_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id412_.addToBackground = true;
__id412_.affectedByGravity = true;
__id412_.angularDamping = 0;
__id412_.convertToBitmap = false;
__id412_.linearDamping = 0;
try {
__id412_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id413__Level13_Walls_1(){
try {
__id413_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id413_.addToBackground = true;
__id413_.affectedByGravity = true;
__id413_.angularDamping = 0;
__id413_.convertToBitmap = false;
__id413_.linearDamping = 0;
try {
__id413_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id414__Level13_Walls_1(){
try {
__id414_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id414_.addToBackground = true;
__id414_.affectedByGravity = true;
__id414_.angularDamping = 0;
__id414_.convertToBitmap = false;
__id414_.linearDamping = 0;
try {
__id414_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id409__Level13_borderwalls_1(){
try {
__id409_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id409_.addToBackground = true;
__id409_.affectedByGravity = true;
__id409_.angularDamping = 0;
__id409_.convertToBitmap = false;
__id409_.linearDamping = 0;
try {
__id409_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id415__Level13_Walls_1(){
try {
__id415_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id415_.addToBackground = true;
__id415_.affectedByGravity = true;
__id415_.angularDamping = 0;
__id415_.convertToBitmap = false;
__id415_.linearDamping = 0;
try {
__id415_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id416__Level13_Walls_1(){
try {
__id416_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id416_.addToBackground = true;
__id416_.affectedByGravity = true;
__id416_.angularDamping = 0;
__id416_.convertToBitmap = false;
__id416_.linearDamping = 0;
try {
__id416_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id408__Level13_borderwalls_1(){
try {
__id408_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id408_.addToBackground = true;
__id408_.affectedByGravity = true;
__id408_.angularDamping = 0;
__id408_.convertToBitmap = false;
__id408_.linearDamping = 0;
try {
__id408_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 234
//Level14 (Level14)
package {
import Game.*;
public dynamic class Level14 extends GameLevel {
public var __id424_:Pared;
public var __id419_:Pared;
public var __id423_:Pared;
public var __id425_:Pared;
public var __id420_:Pared;
public var __id421_:Pared;
public var __id418_:Pared;
public var __id422_:Pared;
public function Level14(){
__setProp___id418__Level14_borderwalls_1();
__setProp___id419__Level14_borderwalls_1();
__setProp___id424__Level14_Walls_1();
__setProp___id425__Level14_Walls_1();
__setProp___id420__Level14_borderwalls_1();
__setProp___id421__Level14_borderwalls_1();
__setProp___id422__Level14_Walls_1();
__setProp___id423__Level14_Walls_1();
}
function __setProp___id419__Level14_borderwalls_1(){
try {
__id419_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id419_.addToBackground = true;
__id419_.affectedByGravity = true;
__id419_.angularDamping = 0;
__id419_.convertToBitmap = false;
__id419_.linearDamping = 0;
try {
__id419_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id418__Level14_borderwalls_1(){
try {
__id418_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id418_.addToBackground = true;
__id418_.affectedByGravity = true;
__id418_.angularDamping = 0;
__id418_.convertToBitmap = false;
__id418_.linearDamping = 0;
try {
__id418_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id422__Level14_Walls_1(){
try {
__id422_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id422_.addToBackground = true;
__id422_.affectedByGravity = true;
__id422_.angularDamping = 0;
__id422_.convertToBitmap = false;
__id422_.linearDamping = 0;
try {
__id422_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id423__Level14_Walls_1(){
try {
__id423_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id423_.addToBackground = true;
__id423_.affectedByGravity = true;
__id423_.angularDamping = 0;
__id423_.convertToBitmap = false;
__id423_.linearDamping = 0;
try {
__id423_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id424__Level14_Walls_1(){
try {
__id424_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id424_.addToBackground = true;
__id424_.affectedByGravity = true;
__id424_.angularDamping = 0;
__id424_.convertToBitmap = false;
__id424_.linearDamping = 0;
try {
__id424_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id425__Level14_Walls_1(){
try {
__id425_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id425_.addToBackground = true;
__id425_.affectedByGravity = true;
__id425_.angularDamping = 0;
__id425_.convertToBitmap = false;
__id425_.linearDamping = 0;
try {
__id425_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id420__Level14_borderwalls_1(){
try {
__id420_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id420_.addToBackground = true;
__id420_.affectedByGravity = true;
__id420_.angularDamping = 0;
__id420_.convertToBitmap = false;
__id420_.linearDamping = 0;
try {
__id420_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id421__Level14_borderwalls_1(){
try {
__id421_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id421_.addToBackground = true;
__id421_.affectedByGravity = true;
__id421_.angularDamping = 0;
__id421_.convertToBitmap = false;
__id421_.linearDamping = 0;
try {
__id421_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 235
//Level15 (Level15)
package {
import Game.*;
public dynamic class Level15 extends GameLevel {
public var __id430_:Pared;
public var __id426_:Pared;
public var __id431_:Pared;
public var __id427_:Pared;
public var __id428_:Pared;
public var __id429_:Pared;
public function Level15(){
__setProp___id428__Level15_Walls_1();
__setProp___id429__Level15_Walls_1();
__setProp___id426__Level15_borderwalls_1();
__setProp___id430__Level15_Walls_1();
__setProp___id427__Level15_Walls_1();
__setProp___id431__Level15_Walls_1();
}
function __setProp___id431__Level15_Walls_1(){
try {
__id431_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id431_.addToBackground = true;
__id431_.affectedByGravity = true;
__id431_.angularDamping = 0;
__id431_.convertToBitmap = false;
__id431_.linearDamping = 0;
try {
__id431_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id429__Level15_Walls_1(){
try {
__id429_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id429_.addToBackground = true;
__id429_.affectedByGravity = true;
__id429_.angularDamping = 0;
__id429_.convertToBitmap = false;
__id429_.linearDamping = 0;
try {
__id429_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id426__Level15_borderwalls_1(){
try {
__id426_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id426_.addToBackground = true;
__id426_.affectedByGravity = true;
__id426_.angularDamping = 0;
__id426_.convertToBitmap = false;
__id426_.linearDamping = 0;
try {
__id426_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id430__Level15_Walls_1(){
try {
__id430_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id430_.addToBackground = true;
__id430_.affectedByGravity = true;
__id430_.angularDamping = 0;
__id430_.convertToBitmap = false;
__id430_.linearDamping = 0;
try {
__id430_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id428__Level15_Walls_1(){
try {
__id428_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id428_.addToBackground = true;
__id428_.affectedByGravity = true;
__id428_.angularDamping = 0;
__id428_.convertToBitmap = false;
__id428_.linearDamping = 0;
try {
__id428_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id427__Level15_Walls_1(){
try {
__id427_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id427_.addToBackground = true;
__id427_.affectedByGravity = true;
__id427_.angularDamping = 0;
__id427_.convertToBitmap = false;
__id427_.linearDamping = 0;
try {
__id427_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 236
//Level19 (Level19)
package {
import Game.*;
public dynamic class Level19 extends GameLevel {
public var __id463_:RepeatingPrismaticJoint;
public var __id475_:RepeatingPrismaticJoint;
public var __id476_:RepeatingPrismaticJoint;
public var __id464_:RepeatingPrismaticJoint;
public var __id465_:RepeatingPrismaticJoint;
public var __id478_:RepeatingPrismaticJoint;
public var __id466_:RepeatingPrismaticJoint;
public var __id477_:RepeatingPrismaticJoint;
public var __id479_:RepeatingPrismaticJoint;
public var __id467_:RepeatingPrismaticJoint;
public var __id468_:RepeatingPrismaticJoint;
public var __id432_:Pared;
public var __id469_:RepeatingPrismaticJoint;
public var __id433_:Pared;
public var __id434_:Pared;
public var __id435_:Pared;
public var __id436_:Pared;
public var __id480_:PrismaticJoint;
public var __id437_:Pared;
public var __id470_:RepeatingPrismaticJoint;
public var __id460_:RepeatingPrismaticJoint;
public var __id472_:RepeatingPrismaticJoint;
public var __id471_:RepeatingPrismaticJoint;
public var __id473_:RepeatingPrismaticJoint;
public var __id461_:RepeatingPrismaticJoint;
public var __id474_:RepeatingPrismaticJoint;
public var __id462_:RepeatingPrismaticJoint;
public function Level19(){
__setProp___id474__Level19_Layer12_1();
__setProp___id461__Level19_Layer9_1();
__setProp___id468__Level19_Layer11_1();
__setProp___id460__Level19_Layer9_1();
__setProp___id434__Level19_borderwalls_1();
__setProp___id478__Level19_Layer13_1();
__setProp___id465__Level19_Layer10_1();
__setProp___id435__Level19_borderwalls_1();
__setProp___id479__Level19_Layer13_1();
__setProp___id471__Level19_Layer11_1();
__setProp___id436__Level19_Walls_1();
__setProp___id475__Level19_Layer12_1();
__setProp___id437__Level19_Walls_1();
__setProp___id466__Level19_Layer10_1();
__setProp___id463__Level19_Layer9_1();
__setProp___id473__Level19_Layer12_1();
__setProp___id462__Level19_Layer9_1();
__setProp___id432__Level19_borderwalls_1();
__setProp___id477__Level19_Layer13_1();
__setProp___id472__Level19_Layer12_1();
__setProp___id433__Level19_borderwalls_1();
__setProp___id476__Level19_Layer13_1();
__setProp___id480__Level19_JOINTS_1();
__setProp___id470__Level19_Layer11_1();
__setProp___id467__Level19_Layer10_1();
__setProp___id469__Level19_Layer11_1();
__setProp___id464__Level19_Layer10_1();
}
function __setProp___id471__Level19_Layer11_1(){
try {
__id471_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id471_.delay = 680;
__id471_.force = 10000;
__id471_.forceResistance = 0;
__id471_.recoilSpeed = 0;
__id471_.speed = 1;
__id471_.torqueResistance = 0;
__id471_.useGround = true;
try {
__id471_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id432__Level19_borderwalls_1(){
try {
__id432_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id432_.addToBackground = true;
__id432_.affectedByGravity = true;
__id432_.angularDamping = 0;
__id432_.convertToBitmap = false;
__id432_.linearDamping = 0;
try {
__id432_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id478__Level19_Layer13_1(){
try {
__id478_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id478_.delay = 1300;
__id478_.force = 10000;
__id478_.forceResistance = 0;
__id478_.recoilSpeed = 0;
__id478_.speed = 1;
__id478_.torqueResistance = 0;
__id478_.useGround = true;
try {
__id478_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id462__Level19_Layer9_1(){
try {
__id462_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id462_.delay = 0;
__id462_.force = 10000;
__id462_.forceResistance = 0;
__id462_.recoilSpeed = 0;
__id462_.speed = 1;
__id462_.torqueResistance = 0;
__id462_.useGround = true;
try {
__id462_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id472__Level19_Layer12_1(){
try {
__id472_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id472_.delay = 1100;
__id472_.force = 10000;
__id472_.forceResistance = 0;
__id472_.recoilSpeed = 0;
__id472_.speed = 2;
__id472_.torqueResistance = 0;
__id472_.useGround = true;
try {
__id472_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id465__Level19_Layer10_1(){
try {
__id465_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id465_.delay = 300;
__id465_.force = 10000;
__id465_.forceResistance = 0;
__id465_.recoilSpeed = 0;
__id465_.speed = 1;
__id465_.torqueResistance = 0;
__id465_.useGround = true;
try {
__id465_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id461__Level19_Layer9_1(){
try {
__id461_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id461_.delay = 120;
__id461_.force = 10000;
__id461_.forceResistance = 0;
__id461_.recoilSpeed = 0;
__id461_.speed = 1;
__id461_.torqueResistance = 0;
__id461_.useGround = true;
try {
__id461_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id479__Level19_Layer13_1(){
try {
__id479_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id479_.delay = 1300;
__id479_.force = 10000;
__id479_.forceResistance = 0;
__id479_.recoilSpeed = 0;
__id479_.speed = 1;
__id479_.torqueResistance = 0;
__id479_.useGround = true;
try {
__id479_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id473__Level19_Layer12_1(){
try {
__id473_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id473_.delay = 1000;
__id473_.force = 10000;
__id473_.forceResistance = 0;
__id473_.recoilSpeed = 0;
__id473_.speed = 0.8;
__id473_.torqueResistance = 0;
__id473_.useGround = true;
try {
__id473_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id460__Level19_Layer9_1(){
try {
__id460_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id460_.delay = 120;
__id460_.force = 10000;
__id460_.forceResistance = 0;
__id460_.recoilSpeed = 0;
__id460_.speed = 1;
__id460_.torqueResistance = 0;
__id460_.useGround = true;
try {
__id460_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id466__Level19_Layer10_1(){
try {
__id466_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id466_.delay = 380;
__id466_.force = 10000;
__id466_.forceResistance = 0;
__id466_.recoilSpeed = 0;
__id466_.speed = 1;
__id466_.torqueResistance = 0;
__id466_.useGround = true;
try {
__id466_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id435__Level19_borderwalls_1(){
try {
__id435_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id435_.addToBackground = true;
__id435_.affectedByGravity = true;
__id435_.angularDamping = 0;
__id435_.convertToBitmap = false;
__id435_.linearDamping = 0;
try {
__id435_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id474__Level19_Layer12_1(){
try {
__id474_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id474_.delay = 1100;
__id474_.force = 10000;
__id474_.forceResistance = 0;
__id474_.recoilSpeed = 0;
__id474_.speed = 2;
__id474_.torqueResistance = 0;
__id474_.useGround = true;
try {
__id474_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id433__Level19_borderwalls_1(){
try {
__id433_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id433_.addToBackground = true;
__id433_.affectedByGravity = true;
__id433_.angularDamping = 0;
__id433_.convertToBitmap = false;
__id433_.linearDamping = 0;
try {
__id433_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id467__Level19_Layer10_1(){
try {
__id467_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id467_.delay = 460;
__id467_.force = 10000;
__id467_.forceResistance = 0;
__id467_.recoilSpeed = 0;
__id467_.speed = 1;
__id467_.torqueResistance = 0;
__id467_.useGround = true;
try {
__id467_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id480__Level19_JOINTS_1(){
try {
__id480_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id480_.force = 100000;
__id480_.forceResistance = 0;
__id480_.speed = 0.3;
__id480_.torqueResistance = 0;
__id480_.useGround = true;
try {
__id480_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id468__Level19_Layer11_1(){
try {
__id468_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id468_.delay = 600;
__id468_.force = 10000;
__id468_.forceResistance = 0;
__id468_.recoilSpeed = 0;
__id468_.speed = 1;
__id468_.torqueResistance = 0;
__id468_.useGround = true;
try {
__id468_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id475__Level19_Layer12_1(){
try {
__id475_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id475_.delay = 1000;
__id475_.force = 10000;
__id475_.forceResistance = 0;
__id475_.recoilSpeed = 0;
__id475_.speed = 0.8;
__id475_.torqueResistance = 0;
__id475_.useGround = true;
try {
__id475_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id436__Level19_Walls_1(){
try {
__id436_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id436_.addToBackground = true;
__id436_.affectedByGravity = true;
__id436_.angularDamping = 0;
__id436_.convertToBitmap = false;
__id436_.linearDamping = 0;
try {
__id436_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id476__Level19_Layer13_1(){
try {
__id476_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id476_.delay = 1300;
__id476_.force = 10000;
__id476_.forceResistance = 0;
__id476_.recoilSpeed = 0;
__id476_.speed = 1.6;
__id476_.torqueResistance = 0;
__id476_.useGround = true;
try {
__id476_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id437__Level19_Walls_1(){
try {
__id437_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id437_.addToBackground = true;
__id437_.affectedByGravity = true;
__id437_.angularDamping = 0;
__id437_.convertToBitmap = false;
__id437_.linearDamping = 0;
try {
__id437_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id469__Level19_Layer11_1(){
try {
__id469_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id469_.delay = 840;
__id469_.force = 10000;
__id469_.forceResistance = 0;
__id469_.recoilSpeed = 0;
__id469_.speed = 1;
__id469_.torqueResistance = 0;
__id469_.useGround = true;
try {
__id469_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id477__Level19_Layer13_1(){
try {
__id477_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id477_.delay = 1300;
__id477_.force = 10000;
__id477_.forceResistance = 0;
__id477_.recoilSpeed = 0;
__id477_.speed = 1.6;
__id477_.torqueResistance = 0;
__id477_.useGround = true;
try {
__id477_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id470__Level19_Layer11_1(){
try {
__id470_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id470_.delay = 760;
__id470_.force = 10000;
__id470_.forceResistance = 0;
__id470_.recoilSpeed = 0;
__id470_.speed = 1;
__id470_.torqueResistance = 0;
__id470_.useGround = true;
try {
__id470_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id434__Level19_borderwalls_1(){
try {
__id434_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id434_.addToBackground = true;
__id434_.affectedByGravity = true;
__id434_.angularDamping = 0;
__id434_.convertToBitmap = false;
__id434_.linearDamping = 0;
try {
__id434_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id463__Level19_Layer9_1(){
try {
__id463_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id463_.delay = 0;
__id463_.force = 10000;
__id463_.forceResistance = 0;
__id463_.recoilSpeed = 0;
__id463_.speed = 1;
__id463_.torqueResistance = 0;
__id463_.useGround = true;
try {
__id463_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id464__Level19_Layer10_1(){
try {
__id464_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id464_.delay = 540;
__id464_.force = 10000;
__id464_.forceResistance = 0;
__id464_.recoilSpeed = 0;
__id464_.speed = 1;
__id464_.torqueResistance = 0;
__id464_.useGround = true;
try {
__id464_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 237
//Level20 (Level20)
package {
import Game.*;
public dynamic class Level20 extends GameLevel {
public var __id491_:Pared;
public var __id487_:Pared;
public var __id488_:Pared;
public var __id490_:Pared;
public var __id489_:Pared;
public var __id494_:CirculoNivel20;
public var __id481_:Pared;
public var __id482_:Pared;
public var __id495_:RevoJoint;
public var __id483_:Pared;
public var __id484_:Pared;
public var __id486_:Pared;
public function Level20(){
__setProp___id488__Level20_Walls_1();
__setProp___id489__Level20_Walls_1();
__setProp___id487__Level20_Walls_1();
__setProp___id491__Level20_Walls_1();
__setProp___id484__Level20_borderwalls_1();
__setProp___id481__Level20_borderwalls_1();
__setProp___id486__Level20_Walls_1();
__setProp___id490__Level20_Walls_1();
__setProp___id483__Level20_borderwalls_1();
__setProp___id482__Level20_borderwalls_1();
__setProp___id495__Level20_Objects_1();
__setProp___id494__Level20_MovingWalls_1();
}
function __setProp___id486__Level20_Walls_1(){
try {
__id486_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id486_.addToBackground = true;
__id486_.affectedByGravity = true;
__id486_.angularDamping = 0;
__id486_.convertToBitmap = false;
__id486_.linearDamping = 0;
try {
__id486_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id490__Level20_Walls_1(){
try {
__id490_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id490_.addToBackground = true;
__id490_.affectedByGravity = true;
__id490_.angularDamping = 0;
__id490_.convertToBitmap = false;
__id490_.linearDamping = 0;
try {
__id490_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id495__Level20_Objects_1(){
try {
__id495_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id495_.forceResistance = 0;
__id495_.speed = 0.2;
__id495_.torque = 1000000;
__id495_.torqueResistance = 0;
__id495_.useGround = true;
try {
__id495_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id489__Level20_Walls_1(){
try {
__id489_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id489_.addToBackground = true;
__id489_.affectedByGravity = true;
__id489_.angularDamping = 0;
__id489_.convertToBitmap = false;
__id489_.linearDamping = 0;
try {
__id489_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id488__Level20_Walls_1(){
try {
__id488_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id488_.addToBackground = true;
__id488_.affectedByGravity = true;
__id488_.angularDamping = 0;
__id488_.convertToBitmap = false;
__id488_.linearDamping = 0;
try {
__id488_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id483__Level20_borderwalls_1(){
try {
__id483_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id483_.addToBackground = true;
__id483_.affectedByGravity = true;
__id483_.angularDamping = 0;
__id483_.convertToBitmap = false;
__id483_.linearDamping = 0;
try {
__id483_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id487__Level20_Walls_1(){
try {
__id487_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id487_.addToBackground = true;
__id487_.affectedByGravity = true;
__id487_.angularDamping = 0;
__id487_.convertToBitmap = false;
__id487_.linearDamping = 0;
try {
__id487_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id484__Level20_borderwalls_1(){
try {
__id484_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id484_.addToBackground = true;
__id484_.affectedByGravity = true;
__id484_.angularDamping = 0;
__id484_.convertToBitmap = false;
__id484_.linearDamping = 0;
try {
__id484_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id491__Level20_Walls_1(){
try {
__id491_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id491_.addToBackground = true;
__id491_.affectedByGravity = true;
__id491_.angularDamping = 0;
__id491_.convertToBitmap = false;
__id491_.linearDamping = 0;
try {
__id491_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id482__Level20_borderwalls_1(){
try {
__id482_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id482_.addToBackground = true;
__id482_.affectedByGravity = true;
__id482_.angularDamping = 0;
__id482_.convertToBitmap = false;
__id482_.linearDamping = 0;
try {
__id482_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id481__Level20_borderwalls_1(){
try {
__id481_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id481_.addToBackground = true;
__id481_.affectedByGravity = true;
__id481_.angularDamping = 0;
__id481_.convertToBitmap = false;
__id481_.linearDamping = 0;
try {
__id481_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id494__Level20_MovingWalls_1(){
try {
__id494_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id494_.addToBackground = false;
__id494_.affectedByGravity = false;
__id494_.angularDamping = 0;
__id494_.convertToBitmap = true;
__id494_.linearDamping = 0;
try {
__id494_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 238
//Level22 (Level22)
package {
import Game.*;
public dynamic class Level22 extends GameLevel {
public var __id504_:Pared;
public var __id499_:Pared;
public var __id505_:Pared;
public var __id501_:Pared;
public var __id496_:Pared;
public var __id509_:Pared;
public var __id507_:Pared;
public var __id502_:Pared;
public var __id497_:Pared;
public var __id500_:Pared;
public var __id498_:Pared;
public var __id503_:Pared;
public function Level22(){
__setProp___id497__Level22_borderwalls_1();
__setProp___id498__Level22_borderwalls_1();
__setProp___id499__Level22_borderwalls_1();
__setProp___id496__Level22_borderwalls_1();
__setProp___id509__Level22_Walls_1();
__setProp___id505__Level22_Walls_1();
__setProp___id504__Level22_Walls_1();
__setProp___id507__Level22_Walls_1();
__setProp___id501__Level22_Walls_1();
__setProp___id500__Level22_Walls_1();
__setProp___id503__Level22_Walls_1();
__setProp___id502__Level22_Walls_1();
}
function __setProp___id501__Level22_Walls_1(){
try {
__id501_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id501_.addToBackground = true;
__id501_.affectedByGravity = true;
__id501_.angularDamping = 0;
__id501_.convertToBitmap = false;
__id501_.linearDamping = 0;
try {
__id501_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id499__Level22_borderwalls_1(){
try {
__id499_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id499_.addToBackground = true;
__id499_.affectedByGravity = true;
__id499_.angularDamping = 0;
__id499_.convertToBitmap = false;
__id499_.linearDamping = 0;
try {
__id499_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id509__Level22_Walls_1(){
try {
__id509_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id509_.addToBackground = true;
__id509_.affectedByGravity = true;
__id509_.angularDamping = 0;
__id509_.convertToBitmap = false;
__id509_.linearDamping = 0;
try {
__id509_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id502__Level22_Walls_1(){
try {
__id502_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id502_.addToBackground = true;
__id502_.affectedByGravity = true;
__id502_.angularDamping = 0;
__id502_.convertToBitmap = false;
__id502_.linearDamping = 0;
try {
__id502_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id503__Level22_Walls_1(){
try {
__id503_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id503_.addToBackground = true;
__id503_.affectedByGravity = true;
__id503_.angularDamping = 0;
__id503_.convertToBitmap = false;
__id503_.linearDamping = 0;
try {
__id503_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id504__Level22_Walls_1(){
try {
__id504_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id504_.addToBackground = true;
__id504_.affectedByGravity = true;
__id504_.angularDamping = 0;
__id504_.convertToBitmap = false;
__id504_.linearDamping = 0;
try {
__id504_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id505__Level22_Walls_1(){
try {
__id505_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id505_.addToBackground = true;
__id505_.affectedByGravity = true;
__id505_.angularDamping = 0;
__id505_.convertToBitmap = false;
__id505_.linearDamping = 0;
try {
__id505_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id498__Level22_borderwalls_1(){
try {
__id498_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id498_.addToBackground = true;
__id498_.affectedByGravity = true;
__id498_.angularDamping = 0;
__id498_.convertToBitmap = false;
__id498_.linearDamping = 0;
try {
__id498_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id497__Level22_borderwalls_1(){
try {
__id497_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id497_.addToBackground = true;
__id497_.affectedByGravity = true;
__id497_.angularDamping = 0;
__id497_.convertToBitmap = false;
__id497_.linearDamping = 0;
try {
__id497_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id507__Level22_Walls_1(){
try {
__id507_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id507_.addToBackground = true;
__id507_.affectedByGravity = true;
__id507_.angularDamping = 0;
__id507_.convertToBitmap = false;
__id507_.linearDamping = 0;
try {
__id507_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id496__Level22_borderwalls_1(){
try {
__id496_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id496_.addToBackground = true;
__id496_.affectedByGravity = true;
__id496_.angularDamping = 0;
__id496_.convertToBitmap = false;
__id496_.linearDamping = 0;
try {
__id496_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id500__Level22_Walls_1(){
try {
__id500_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id500_.addToBackground = true;
__id500_.affectedByGravity = true;
__id500_.angularDamping = 0;
__id500_.convertToBitmap = false;
__id500_.linearDamping = 0;
try {
__id500_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 239
//Level29 (Level29)
package {
import Game.*;
public dynamic class Level29 extends GameLevel {
public var __id560_:PrismaticJoint;
public var __id529_:FlameMovilMC;
public var __id561_:PrismaticJoint;
public var __id518_:BloqueMovilNivel29;
public var __id562_:PrismaticJoint;
public var __id550_:PrismaticJoint;
public var __id563_:PrismaticJoint;
public var __id551_:PrismaticJoint;
public var __id564_:PrismaticJoint;
public var __id552_:PrismaticJoint;
public var __id540_:FlameMovilMC;
public var __id565_:PrismaticJoint;
public var __id553_:PrismaticJoint;
public var __id541_:FlameMovilMC;
public var __id566_:PrismaticJoint;
public var __id554_:PrismaticJoint;
public var __id542_:FlameMovilMC;
public var __id530_:FlameMovilMC;
public var __id555_:PrismaticJoint;
public var __id543_:FlameMovilMC;
public var __id531_:FlameMovilMC;
public var __id567_:PrismaticJoint;
public var __id544_:FlameMovilMC;
public var __id532_:FlameMovilMC;
public var __id556_:PrismaticJoint;
public var __id568_:PrismaticJoint;
public var __id569_:PrismaticJoint;
public var __id557_:PrismaticJoint;
public var __id545_:FlameMovilMC;
public var __id533_:FlameMovilMC;
public var __id558_:PrismaticJoint;
public var __id546_:RevoJoint;
public var __id534_:FlameMovilMC;
public var __id522_:FlameMovilMC;
public var __id510_:Pared;
public var __id535_:FlameMovilMC;
public var __id523_:FlameMovilMC;
public var __id511_:Pared;
public var __id547_:PrismaticJoint;
public var __id559_:PrismaticJoint;
public var __id548_:PrismaticJoint;
public var __id536_:FlameMovilMC;
public var __id524_:FlameMovilMC;
public var __id512_:Pared;
public var __id537_:FlameMovilMC;
public var __id525_:FlameMovilMC;
public var __id549_:PrismaticJoint;
public var __id513_:Pared;
public var __id526_:FlameMovilMC;
public var __id514_:Pared;
public var __id570_:PrismaticJoint;
public var __id539_:FlameMovilMC;
public var __id527_:FlameMovilMC;
public var __id515_:Pared;
public var __id538_:FlameMovilMC;
public var __id571_:PrismaticJoint;
public var __id528_:FlameMovilMC;
public function Level29(){
__setProp___id565__Level29_Objects_1();
__setProp___id558__Level29_Objects_1();
__setProp___id570__Level29_Objects_1();
__setProp___id563__Level29_Objects_1();
__setProp___id539__Level29_traps_1();
__setProp___id556__Level29_Objects_1();
__setProp___id553__Level29_Objects_1();
__setProp___id549__Level29_Objects_1();
__setProp___id546__Level29_Objects_1();
__setProp___id538__Level29_traps_1();
__setProp___id561__Level29_Objects_1();
__setProp___id535__Level29_traps_1();
__setProp___id534__Level29_traps_1();
__setProp___id528__Level29_traps_1();
__setProp___id522__Level29_traps_1();
__setProp___id515__Level29_Walls_1();
__setProp___id568__Level29_Objects_1();
__setProp___id552__Level29_Objects_1();
__setProp___id523__Level29_traps_1();
__setProp___id514__Level29_Walls_1();
__setProp___id547__Level29_Objects_1();
__setProp___id544__Level29_traps_1();
__setProp___id545__Level29_traps_1();
__setProp___id527__Level29_traps_1();
__setProp___id518__Level29_MovingWalls_1();
__setProp___id569__Level29_Objects_1();
__setProp___id542__Level29_traps_1();
__setProp___id536__Level29_traps_1();
__setProp___id526__Level29_traps_1();
__setProp___id511__Level29_borderwalls_1();
__setProp___id543__Level29_traps_1();
__setProp___id532__Level29_traps_1();
__setProp___id510__Level29_borderwalls_1();
__setProp___id566__Level29_Objects_1();
__setProp___id555__Level29_Objects_1();
__setProp___id533__Level29_traps_1();
__setProp___id513__Level29_borderwalls_1();
__setProp___id537__Level29_traps_1();
__setProp___id512__Level29_borderwalls_1();
__setProp___id564__Level29_Objects_1();
__setProp___id541__Level29_traps_1();
__setProp___id529__Level29_traps_1();
__setProp___id562__Level29_Objects_1();
__setProp___id554__Level29_Objects_1();
__setProp___id551__Level29_Objects_1();
__setProp___id525__Level29_traps_1();
__setProp___id540__Level29_traps_1();
__setProp___id524__Level29_traps_1();
__setProp___id571__Level29_Objects_1();
__setProp___id567__Level29_Objects_1();
__setProp___id560__Level29_Objects_1();
__setProp___id530__Level29_traps_1();
__setProp___id559__Level29_Objects_1();
__setProp___id557__Level29_Objects_1();
__setProp___id550__Level29_Objects_1();
__setProp___id548__Level29_Objects_1();
__setProp___id531__Level29_traps_1();
}
function __setProp___id530__Level29_traps_1(){
try {
__id530_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id530_.addToBackground = false;
__id530_.affectedByGravity = true;
__id530_.angularDamping = 0;
__id530_.convertToBitmap = false;
__id530_.delay = 28;
__id530_.duration = 180;
__id530_.frequency = 400;
__id530_.linearDamping = 0;
try {
__id530_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id556__Level29_Objects_1(){
try {
__id556_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id556_.force = 100000;
__id556_.forceResistance = 0;
__id556_.speed = 0;
__id556_.torqueResistance = 0;
__id556_.useGround = false;
try {
__id556_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id562__Level29_Objects_1(){
try {
__id562_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id562_.force = 100000;
__id562_.forceResistance = 0;
__id562_.speed = 0;
__id562_.torqueResistance = 0;
__id562_.useGround = false;
try {
__id562_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id543__Level29_traps_1(){
try {
__id543_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id543_.addToBackground = false;
__id543_.affectedByGravity = true;
__id543_.angularDamping = 0;
__id543_.convertToBitmap = false;
__id543_.delay = 238;
__id543_.duration = 180;
__id543_.frequency = 400;
__id543_.linearDamping = 0;
try {
__id543_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id531__Level29_traps_1(){
try {
__id531_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id531_.addToBackground = false;
__id531_.affectedByGravity = true;
__id531_.angularDamping = 0;
__id531_.convertToBitmap = false;
__id531_.delay = 38;
__id531_.duration = 180;
__id531_.frequency = 400;
__id531_.linearDamping = 0;
try {
__id531_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id542__Level29_traps_1(){
try {
__id542_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id542_.addToBackground = false;
__id542_.affectedByGravity = true;
__id542_.angularDamping = 0;
__id542_.convertToBitmap = false;
__id542_.delay = 228;
__id542_.duration = 180;
__id542_.frequency = 400;
__id542_.linearDamping = 0;
try {
__id542_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id551__Level29_Objects_1(){
try {
__id551_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id551_.force = 100000;
__id551_.forceResistance = 0;
__id551_.speed = 0;
__id551_.torqueResistance = 0;
__id551_.useGround = false;
try {
__id551_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id511__Level29_borderwalls_1(){
try {
__id511_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id511_.addToBackground = true;
__id511_.affectedByGravity = true;
__id511_.angularDamping = 0;
__id511_.convertToBitmap = false;
__id511_.linearDamping = 0;
try {
__id511_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id532__Level29_traps_1(){
try {
__id532_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id532_.addToBackground = false;
__id532_.affectedByGravity = true;
__id532_.angularDamping = 0;
__id532_.convertToBitmap = false;
__id532_.delay = 48;
__id532_.duration = 180;
__id532_.frequency = 400;
__id532_.linearDamping = 0;
try {
__id532_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id568__Level29_Objects_1(){
try {
__id568_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id568_.force = 100000;
__id568_.forceResistance = 0;
__id568_.speed = 0;
__id568_.torqueResistance = 0;
__id568_.useGround = false;
try {
__id568_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id545__Level29_traps_1(){
try {
__id545_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id545_.addToBackground = false;
__id545_.affectedByGravity = true;
__id545_.angularDamping = 0;
__id545_.convertToBitmap = false;
__id545_.delay = 258;
__id545_.duration = 180;
__id545_.frequency = 400;
__id545_.linearDamping = 0;
try {
__id545_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id533__Level29_traps_1(){
try {
__id533_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id533_.addToBackground = false;
__id533_.affectedByGravity = true;
__id533_.angularDamping = 0;
__id533_.convertToBitmap = false;
__id533_.delay = 58;
__id533_.duration = 180;
__id533_.frequency = 400;
__id533_.linearDamping = 0;
try {
__id533_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id557__Level29_Objects_1(){
try {
__id557_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id557_.force = 100000;
__id557_.forceResistance = 0;
__id557_.speed = 0;
__id557_.torqueResistance = 0;
__id557_.useGround = false;
try {
__id557_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id544__Level29_traps_1(){
try {
__id544_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id544_.addToBackground = false;
__id544_.affectedByGravity = true;
__id544_.angularDamping = 0;
__id544_.convertToBitmap = false;
__id544_.delay = 248;
__id544_.duration = 180;
__id544_.frequency = 400;
__id544_.linearDamping = 0;
try {
__id544_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id563__Level29_Objects_1(){
try {
__id563_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id563_.force = 100000;
__id563_.forceResistance = 0;
__id563_.speed = 0;
__id563_.torqueResistance = 0;
__id563_.useGround = false;
try {
__id563_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id534__Level29_traps_1(){
try {
__id534_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id534_.addToBackground = false;
__id534_.affectedByGravity = true;
__id534_.angularDamping = 0;
__id534_.convertToBitmap = false;
__id534_.delay = 200;
__id534_.duration = 180;
__id534_.frequency = 400;
__id534_.linearDamping = 0;
try {
__id534_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id552__Level29_Objects_1(){
try {
__id552_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id552_.force = 100000;
__id552_.forceResistance = 0;
__id552_.speed = 0;
__id552_.torqueResistance = 0;
__id552_.useGround = false;
try {
__id552_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id546__Level29_Objects_1(){
try {
__id546_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id546_.forceResistance = 0;
__id546_.speed = 0.3;
__id546_.torque = 2000;
__id546_.torqueResistance = 0;
__id546_.useGround = false;
try {
__id546_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id523__Level29_traps_1(){
try {
__id523_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id523_.addToBackground = false;
__id523_.affectedByGravity = true;
__id523_.angularDamping = 0;
__id523_.convertToBitmap = false;
__id523_.delay = 15;
__id523_.duration = 180;
__id523_.frequency = 400;
__id523_.linearDamping = 0;
try {
__id523_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id535__Level29_traps_1(){
try {
__id535_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id535_.addToBackground = false;
__id535_.affectedByGravity = true;
__id535_.angularDamping = 0;
__id535_.convertToBitmap = false;
__id535_.delay = 215;
__id535_.duration = 180;
__id535_.frequency = 400;
__id535_.linearDamping = 0;
try {
__id535_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id569__Level29_Objects_1(){
try {
__id569_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id569_.force = 100000;
__id569_.forceResistance = 0;
__id569_.speed = 0;
__id569_.torqueResistance = 0;
__id569_.useGround = false;
try {
__id569_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id522__Level29_traps_1(){
try {
__id522_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id522_.addToBackground = false;
__id522_.affectedByGravity = true;
__id522_.angularDamping = 0;
__id522_.convertToBitmap = false;
__id522_.delay = 0;
__id522_.duration = 180;
__id522_.frequency = 400;
__id522_.linearDamping = 0;
try {
__id522_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id536__Level29_traps_1(){
try {
__id536_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id536_.addToBackground = false;
__id536_.affectedByGravity = true;
__id536_.angularDamping = 0;
__id536_.convertToBitmap = false;
__id536_.delay = 228;
__id536_.duration = 180;
__id536_.frequency = 400;
__id536_.linearDamping = 0;
try {
__id536_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id524__Level29_traps_1(){
try {
__id524_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id524_.addToBackground = false;
__id524_.affectedByGravity = true;
__id524_.angularDamping = 0;
__id524_.convertToBitmap = false;
__id524_.delay = 28;
__id524_.duration = 180;
__id524_.frequency = 400;
__id524_.linearDamping = 0;
try {
__id524_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id564__Level29_Objects_1(){
try {
__id564_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id564_.force = 100000;
__id564_.forceResistance = 0;
__id564_.speed = 0;
__id564_.torqueResistance = 0;
__id564_.useGround = false;
try {
__id564_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id558__Level29_Objects_1(){
try {
__id558_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id558_.force = 100000;
__id558_.forceResistance = 0;
__id558_.speed = 0;
__id558_.torqueResistance = 0;
__id558_.useGround = false;
try {
__id558_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id570__Level29_Objects_1(){
try {
__id570_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id570_.force = 100000;
__id570_.forceResistance = 0;
__id570_.speed = 0;
__id570_.torqueResistance = 0;
__id570_.useGround = false;
try {
__id570_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id537__Level29_traps_1(){
try {
__id537_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id537_.addToBackground = false;
__id537_.affectedByGravity = true;
__id537_.angularDamping = 0;
__id537_.convertToBitmap = false;
__id537_.delay = 238;
__id537_.duration = 180;
__id537_.frequency = 400;
__id537_.linearDamping = 0;
try {
__id537_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id525__Level29_traps_1(){
try {
__id525_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id525_.addToBackground = false;
__id525_.affectedByGravity = true;
__id525_.angularDamping = 0;
__id525_.convertToBitmap = false;
__id525_.delay = 38;
__id525_.duration = 180;
__id525_.frequency = 400;
__id525_.linearDamping = 0;
try {
__id525_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id547__Level29_Objects_1(){
try {
__id547_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id547_.force = 3000;
__id547_.forceResistance = 0;
__id547_.speed = 0.3;
__id547_.torqueResistance = 0;
__id547_.useGround = true;
try {
__id547_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id526__Level29_traps_1(){
try {
__id526_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id526_.addToBackground = false;
__id526_.affectedByGravity = true;
__id526_.angularDamping = 0;
__id526_.convertToBitmap = false;
__id526_.delay = 48;
__id526_.duration = 180;
__id526_.frequency = 400;
__id526_.linearDamping = 0;
try {
__id526_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id538__Level29_traps_1(){
try {
__id538_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id538_.addToBackground = false;
__id538_.affectedByGravity = true;
__id538_.angularDamping = 0;
__id538_.convertToBitmap = false;
__id538_.delay = 248;
__id538_.duration = 180;
__id538_.frequency = 400;
__id538_.linearDamping = 0;
try {
__id538_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id539__Level29_traps_1(){
try {
__id539_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id539_.addToBackground = false;
__id539_.affectedByGravity = true;
__id539_.angularDamping = 0;
__id539_.convertToBitmap = false;
__id539_.delay = 258;
__id539_.duration = 180;
__id539_.frequency = 400;
__id539_.linearDamping = 0;
try {
__id539_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id527__Level29_traps_1(){
try {
__id527_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id527_.addToBackground = false;
__id527_.affectedByGravity = true;
__id527_.angularDamping = 0;
__id527_.convertToBitmap = false;
__id527_.delay = 58;
__id527_.duration = 180;
__id527_.frequency = 400;
__id527_.linearDamping = 0;
try {
__id527_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id512__Level29_borderwalls_1(){
try {
__id512_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id512_.addToBackground = true;
__id512_.affectedByGravity = true;
__id512_.angularDamping = 0;
__id512_.convertToBitmap = false;
__id512_.linearDamping = 0;
try {
__id512_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id514__Level29_Walls_1(){
try {
__id514_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id514_.addToBackground = true;
__id514_.affectedByGravity = true;
__id514_.angularDamping = 0;
__id514_.convertToBitmap = false;
__id514_.linearDamping = 0;
try {
__id514_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id565__Level29_Objects_1(){
try {
__id565_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id565_.force = 100000;
__id565_.forceResistance = 0;
__id565_.speed = 0;
__id565_.torqueResistance = 0;
__id565_.useGround = false;
try {
__id565_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id559__Level29_Objects_1(){
try {
__id559_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id559_.force = 100000;
__id559_.forceResistance = 0;
__id559_.speed = 0;
__id559_.torqueResistance = 0;
__id559_.useGround = false;
try {
__id559_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id571__Level29_Objects_1(){
try {
__id571_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id571_.force = 100000;
__id571_.forceResistance = 0;
__id571_.speed = 0;
__id571_.torqueResistance = 0;
__id571_.useGround = false;
try {
__id571_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id553__Level29_Objects_1(){
try {
__id553_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id553_.force = 100000;
__id553_.forceResistance = 0;
__id553_.speed = 0;
__id553_.torqueResistance = 0;
__id553_.useGround = false;
try {
__id553_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id528__Level29_traps_1(){
try {
__id528_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id528_.addToBackground = false;
__id528_.affectedByGravity = true;
__id528_.angularDamping = 0;
__id528_.convertToBitmap = false;
__id528_.delay = 0;
__id528_.duration = 180;
__id528_.frequency = 400;
__id528_.linearDamping = 0;
try {
__id528_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id515__Level29_Walls_1(){
try {
__id515_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id515_.addToBackground = true;
__id515_.affectedByGravity = true;
__id515_.angularDamping = 0;
__id515_.convertToBitmap = false;
__id515_.linearDamping = 0;
try {
__id515_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id560__Level29_Objects_1(){
try {
__id560_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id560_.force = 100000;
__id560_.forceResistance = 0;
__id560_.speed = 0;
__id560_.torqueResistance = 0;
__id560_.useGround = false;
try {
__id560_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id529__Level29_traps_1(){
try {
__id529_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id529_.addToBackground = false;
__id529_.affectedByGravity = true;
__id529_.angularDamping = 0;
__id529_.convertToBitmap = false;
__id529_.delay = 15;
__id529_.duration = 180;
__id529_.frequency = 400;
__id529_.linearDamping = 0;
try {
__id529_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id548__Level29_Objects_1(){
try {
__id548_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id548_.force = 100000;
__id548_.forceResistance = 0;
__id548_.speed = 0;
__id548_.torqueResistance = 0;
__id548_.useGround = false;
try {
__id548_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id510__Level29_borderwalls_1(){
try {
__id510_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id510_.addToBackground = true;
__id510_.affectedByGravity = true;
__id510_.angularDamping = 0;
__id510_.convertToBitmap = false;
__id510_.linearDamping = 0;
try {
__id510_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id554__Level29_Objects_1(){
try {
__id554_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id554_.force = 100000;
__id554_.forceResistance = 0;
__id554_.speed = 0;
__id554_.torqueResistance = 0;
__id554_.useGround = false;
try {
__id554_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id566__Level29_Objects_1(){
try {
__id566_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id566_.force = 100000;
__id566_.forceResistance = 0;
__id566_.speed = 0;
__id566_.torqueResistance = 0;
__id566_.useGround = false;
try {
__id566_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id549__Level29_Objects_1(){
try {
__id549_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id549_.force = 100000;
__id549_.forceResistance = 0;
__id549_.speed = 0;
__id549_.torqueResistance = 0;
__id549_.useGround = false;
try {
__id549_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id518__Level29_MovingWalls_1(){
try {
__id518_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id518_.addToBackground = false;
__id518_.affectedByGravity = false;
__id518_.angularDamping = 0;
__id518_.convertToBitmap = true;
__id518_.linearDamping = 0;
try {
__id518_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id561__Level29_Objects_1(){
try {
__id561_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id561_.force = 100000;
__id561_.forceResistance = 0;
__id561_.speed = 0;
__id561_.torqueResistance = 0;
__id561_.useGround = false;
try {
__id561_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id555__Level29_Objects_1(){
try {
__id555_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id555_.force = 100000;
__id555_.forceResistance = 0;
__id555_.speed = 0;
__id555_.torqueResistance = 0;
__id555_.useGround = false;
try {
__id555_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id540__Level29_traps_1(){
try {
__id540_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id540_.addToBackground = false;
__id540_.affectedByGravity = true;
__id540_.angularDamping = 0;
__id540_.convertToBitmap = false;
__id540_.delay = 200;
__id540_.duration = 180;
__id540_.frequency = 400;
__id540_.linearDamping = 0;
try {
__id540_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id550__Level29_Objects_1(){
try {
__id550_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id550_.force = 100000;
__id550_.forceResistance = 0;
__id550_.speed = 0;
__id550_.torqueResistance = 0;
__id550_.useGround = false;
try {
__id550_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id541__Level29_traps_1(){
try {
__id541_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id541_.addToBackground = false;
__id541_.affectedByGravity = true;
__id541_.angularDamping = 0;
__id541_.convertToBitmap = false;
__id541_.delay = 215;
__id541_.duration = 180;
__id541_.frequency = 400;
__id541_.linearDamping = 0;
try {
__id541_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id567__Level29_Objects_1(){
try {
__id567_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id567_.force = 100000;
__id567_.forceResistance = 0;
__id567_.speed = 0;
__id567_.torqueResistance = 0;
__id567_.useGround = false;
try {
__id567_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id513__Level29_borderwalls_1(){
try {
__id513_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id513_.addToBackground = true;
__id513_.affectedByGravity = true;
__id513_.angularDamping = 0;
__id513_.convertToBitmap = false;
__id513_.linearDamping = 0;
try {
__id513_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 240
//Level3 (Level3)
package {
import Game.*;
public dynamic class Level3 extends GameLevel {
public var __id290_:Pared;
public var __id291_:Pared;
public var __id292_:Pared;
public var __id293_:Pared;
public var __id294_:Pared;
public var __id311_:LaserGiratorio;
public var __id300_:Pared;
public var __id295_:Pared;
public var __id283_:Pared;
public var __id296_:Pared;
public var __id284_:Pared;
public var __id285_:Pared;
public var __id303_:Pared;
public var __id298_:Pared;
public var __id286_:Pared;
public var __id304_:RevoJoint;
public var __id299_:Pared;
public var __id288_:Pared;
public var __id289_:Pared;
public function Level3(){
__setProp___id311__Level3_Objects_1();
__setProp___id292__Level3_Walls_1();
__setProp___id284__Level3_borderwalls_1();
__setProp___id296__Level3_Walls_1();
__setProp___id286__Level3_borderwalls_1();
__setProp___id291__Level3_Walls_1();
__setProp___id303__Level3_Walls_1();
__setProp___id288__Level3_Walls_1();
__setProp___id298__Level3_Walls_1();
__setProp___id290__Level3_Walls_1();
__setProp___id289__Level3_Walls_1();
__setProp___id304__Level3_Objects_1();
__setProp___id300__Level3_Walls_1();
__setProp___id299__Level3_Walls_1();
__setProp___id295__Level3_Walls_1();
__setProp___id293__Level3_Walls_1();
__setProp___id285__Level3_borderwalls_1();
__setProp___id283__Level3_borderwalls_1();
__setProp___id294__Level3_Walls_1();
}
function __setProp___id284__Level3_borderwalls_1(){
try {
__id284_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id284_.addToBackground = true;
__id284_.affectedByGravity = true;
__id284_.angularDamping = 0;
__id284_.convertToBitmap = false;
__id284_.linearDamping = 0;
try {
__id284_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id311__Level3_Objects_1(){
try {
__id311_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id311_.addToBackground = false;
__id311_.affectedByGravity = false;
__id311_.angularDamping = 0;
__id311_.convertToBitmap = true;
__id311_.linearDamping = 0;
__id311_.removeGraphic = false;
try {
__id311_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id289__Level3_Walls_1(){
try {
__id289_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id289_.addToBackground = true;
__id289_.affectedByGravity = true;
__id289_.angularDamping = 0;
__id289_.convertToBitmap = false;
__id289_.linearDamping = 0;
try {
__id289_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id288__Level3_Walls_1(){
try {
__id288_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id288_.addToBackground = true;
__id288_.affectedByGravity = true;
__id288_.angularDamping = 0;
__id288_.convertToBitmap = false;
__id288_.linearDamping = 0;
try {
__id288_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id291__Level3_Walls_1(){
try {
__id291_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id291_.addToBackground = true;
__id291_.affectedByGravity = true;
__id291_.angularDamping = 0;
__id291_.convertToBitmap = false;
__id291_.linearDamping = 0;
try {
__id291_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id292__Level3_Walls_1(){
try {
__id292_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id292_.addToBackground = true;
__id292_.affectedByGravity = true;
__id292_.angularDamping = 0;
__id292_.convertToBitmap = false;
__id292_.linearDamping = 0;
try {
__id292_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id296__Level3_Walls_1(){
try {
__id296_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id296_.addToBackground = true;
__id296_.affectedByGravity = true;
__id296_.angularDamping = 0;
__id296_.convertToBitmap = false;
__id296_.linearDamping = 0;
try {
__id296_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id290__Level3_Walls_1(){
try {
__id290_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id290_.addToBackground = true;
__id290_.affectedByGravity = true;
__id290_.angularDamping = 0;
__id290_.convertToBitmap = false;
__id290_.linearDamping = 0;
try {
__id290_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id298__Level3_Walls_1(){
try {
__id298_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id298_.addToBackground = true;
__id298_.affectedByGravity = true;
__id298_.angularDamping = 0;
__id298_.convertToBitmap = false;
__id298_.linearDamping = 0;
try {
__id298_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id299__Level3_Walls_1(){
try {
__id299_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id299_.addToBackground = true;
__id299_.affectedByGravity = true;
__id299_.angularDamping = 0;
__id299_.convertToBitmap = false;
__id299_.linearDamping = 0;
try {
__id299_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id294__Level3_Walls_1(){
try {
__id294_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id294_.addToBackground = true;
__id294_.affectedByGravity = true;
__id294_.angularDamping = 0;
__id294_.convertToBitmap = false;
__id294_.linearDamping = 0;
try {
__id294_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id293__Level3_Walls_1(){
try {
__id293_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id293_.addToBackground = true;
__id293_.affectedByGravity = true;
__id293_.angularDamping = 0;
__id293_.convertToBitmap = false;
__id293_.linearDamping = 0;
try {
__id293_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id286__Level3_borderwalls_1(){
try {
__id286_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id286_.addToBackground = true;
__id286_.affectedByGravity = true;
__id286_.angularDamping = 0;
__id286_.convertToBitmap = false;
__id286_.linearDamping = 0;
try {
__id286_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id295__Level3_Walls_1(){
try {
__id295_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id295_.addToBackground = true;
__id295_.affectedByGravity = true;
__id295_.angularDamping = 0;
__id295_.convertToBitmap = false;
__id295_.linearDamping = 0;
try {
__id295_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id283__Level3_borderwalls_1(){
try {
__id283_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id283_.addToBackground = true;
__id283_.affectedByGravity = true;
__id283_.angularDamping = 0;
__id283_.convertToBitmap = false;
__id283_.linearDamping = 0;
try {
__id283_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id304__Level3_Objects_1(){
try {
__id304_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id304_.forceResistance = 0;
__id304_.speed = 0.5;
__id304_.torque = 1000;
__id304_.torqueResistance = 0;
__id304_.useGround = false;
try {
__id304_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id300__Level3_Walls_1(){
try {
__id300_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id300_.addToBackground = true;
__id300_.affectedByGravity = true;
__id300_.angularDamping = 0;
__id300_.convertToBitmap = false;
__id300_.linearDamping = 0;
try {
__id300_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id303__Level3_Walls_1(){
try {
__id303_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id303_.addToBackground = true;
__id303_.affectedByGravity = true;
__id303_.angularDamping = 0;
__id303_.convertToBitmap = false;
__id303_.linearDamping = 0;
try {
__id303_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id285__Level3_borderwalls_1(){
try {
__id285_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id285_.addToBackground = true;
__id285_.affectedByGravity = true;
__id285_.angularDamping = 0;
__id285_.convertToBitmap = false;
__id285_.linearDamping = 0;
try {
__id285_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 241
//Level30 (Level30)
package {
import Game.*;
public dynamic class Level30 extends GameLevel {
public var __id595_:RevoJoint;
public var __id596_:PrismaticJoint;
public var __id572_:Pared;
public var __id573_:Pared;
public var __id574_:Pared;
public var __id590_:BloqueMovilNivel30;
public var __id575_:Pared;
public var __id580_:BloqueBreakable;
public var __id594_:FlameMovilMartilloMC;
public var __id578_:Pared;
public var __id577_:Pared;
public var __id583_:ParedNoColBola;
public function Level30(){
__setProp___id580__Level30_Walls_1();
__setProp___id575__Level30_borderwalls_1();
__setProp___id574__Level30_borderwalls_1();
__setProp___id577__Level30_Walls_1();
__setProp___id595__Level30_Objects_1();
__setProp___id578__Level30_Walls_1();
__setProp___id596__Level30_Objects_1();
__setProp___id573__Level30_borderwalls_1();
__setProp___id590__Level30_MovingWalls_1();
__setProp___id572__Level30_borderwalls_1();
__setProp___id594__Level30_traps_1();
__setProp___id583__Level30_Walls_1();
}
function __setProp___id577__Level30_Walls_1(){
try {
__id577_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id577_.addToBackground = true;
__id577_.affectedByGravity = true;
__id577_.angularDamping = 0;
__id577_.convertToBitmap = false;
__id577_.linearDamping = 0;
try {
__id577_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id580__Level30_Walls_1(){
try {
__id580_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id580_.addToBackground = false;
__id580_.affectedByGravity = true;
__id580_.angularDamping = 0;
__id580_.convertToBitmap = true;
__id580_.linearDamping = 0;
__id580_.removeGraphic = false;
try {
__id580_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id578__Level30_Walls_1(){
try {
__id578_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id578_.addToBackground = true;
__id578_.affectedByGravity = true;
__id578_.angularDamping = 0;
__id578_.convertToBitmap = false;
__id578_.linearDamping = 0;
try {
__id578_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id595__Level30_Objects_1(){
try {
__id595_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id595_.forceResistance = 0;
__id595_.speed = 0;
__id595_.torque = 150;
__id595_.torqueResistance = 0;
__id595_.useGround = false;
try {
__id595_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id590__Level30_MovingWalls_1(){
try {
__id590_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id590_.addToBackground = false;
__id590_.affectedByGravity = true;
__id590_.angularDamping = 15;
__id590_.convertToBitmap = true;
__id590_.linearDamping = 0;
try {
__id590_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id575__Level30_borderwalls_1(){
try {
__id575_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id575_.addToBackground = true;
__id575_.affectedByGravity = true;
__id575_.angularDamping = 0;
__id575_.convertToBitmap = false;
__id575_.linearDamping = 0;
try {
__id575_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id583__Level30_Walls_1(){
try {
__id583_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id583_.addToBackground = false;
__id583_.affectedByGravity = false;
__id583_.angularDamping = 0;
__id583_.convertToBitmap = false;
__id583_.linearDamping = 0;
__id583_.removeGraphic = true;
try {
__id583_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id574__Level30_borderwalls_1(){
try {
__id574_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id574_.addToBackground = true;
__id574_.affectedByGravity = true;
__id574_.angularDamping = 0;
__id574_.convertToBitmap = false;
__id574_.linearDamping = 0;
try {
__id574_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id573__Level30_borderwalls_1(){
try {
__id573_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id573_.addToBackground = true;
__id573_.affectedByGravity = true;
__id573_.angularDamping = 0;
__id573_.convertToBitmap = false;
__id573_.linearDamping = 0;
try {
__id573_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id594__Level30_traps_1(){
try {
__id594_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id594_.addToBackground = false;
__id594_.affectedByGravity = false;
__id594_.angularDamping = 0;
__id594_.convertToBitmap = false;
__id594_.delay = 30;
__id594_.duration = 50;
__id594_.frequency = 300;
__id594_.linearDamping = 0;
try {
__id594_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id596__Level30_Objects_1(){
try {
__id596_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id596_.force = 100000;
__id596_.forceResistance = 0;
__id596_.speed = 0;
__id596_.torqueResistance = 0;
__id596_.useGround = false;
try {
__id596_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id572__Level30_borderwalls_1(){
try {
__id572_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id572_.addToBackground = true;
__id572_.affectedByGravity = true;
__id572_.angularDamping = 0;
__id572_.convertToBitmap = false;
__id572_.linearDamping = 0;
try {
__id572_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 242
//Level31 (Level31)
package {
import Game.*;
public dynamic class Level31 extends GameLevel {
public var __id601_:Pared;
public var __id613_:FlameMC;
public var __id614_:FlameMC;
public var __id597_:Pared;
public var __id602_:Pared;
public var __id615_:FlameMC;
public var __id603_:Pared;
public var __id598_:Pared;
public var __id616_:FlameMC;
public var __id604_:Pared;
public var __id599_:Pared;
public var __id617_:FlameMC;
public var __id605_:Pared;
public var __id618_:FlameMC;
public var __id606_:Pared;
public var __id607_:Pared;
public var __id619_:FlameMC;
public var __id608_:Pared;
public var __id609_:Pared;
public var __id611_:Pared;
public var __id612_:Pared;
public var __id600_:Pared;
public function Level31(){
__setProp___id598__Level31_borderwalls_1();
__setProp___id619__Level31_traps_1();
__setProp___id618__Level31_traps_1();
__setProp___id599__Level31_Walls_1();
__setProp___id597__Level31_borderwalls_1();
__setProp___id617__Level31_traps_1();
__setProp___id616__Level31_traps_1();
__setProp___id608__Level31_Walls_1();
__setProp___id606__Level31_Walls_1();
__setProp___id609__Level31_Walls_1();
__setProp___id607__Level31_Walls_1();
__setProp___id604__Level31_Walls_1();
__setProp___id615__Level31_traps_1();
__setProp___id612__Level31_Walls_1();
__setProp___id605__Level31_Walls_1();
__setProp___id602__Level31_Walls_1();
__setProp___id603__Level31_Walls_1();
__setProp___id611__Level31_Walls_1();
__setProp___id600__Level31_Walls_1();
__setProp___id614__Level31_traps_1();
__setProp___id613__Level31_traps_1();
__setProp___id601__Level31_Walls_1();
}
function __setProp___id598__Level31_borderwalls_1(){
try {
__id598_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id598_.addToBackground = true;
__id598_.affectedByGravity = true;
__id598_.angularDamping = 0;
__id598_.convertToBitmap = false;
__id598_.linearDamping = 0;
try {
__id598_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id611__Level31_Walls_1(){
try {
__id611_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id611_.addToBackground = true;
__id611_.affectedByGravity = true;
__id611_.angularDamping = 0;
__id611_.convertToBitmap = false;
__id611_.linearDamping = 0;
try {
__id611_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id613__Level31_traps_1(){
try {
__id613_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id613_.addToBackground = false;
__id613_.affectedByGravity = true;
__id613_.angularDamping = 0;
__id613_.convertToBitmap = false;
__id613_.delay = 0;
__id613_.duration = 30;
__id613_.frequency = 50;
__id613_.linearDamping = 0;
try {
__id613_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id612__Level31_Walls_1(){
try {
__id612_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id612_.addToBackground = true;
__id612_.affectedByGravity = true;
__id612_.angularDamping = 0;
__id612_.convertToBitmap = false;
__id612_.linearDamping = 0;
try {
__id612_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id600__Level31_Walls_1(){
try {
__id600_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id600_.addToBackground = true;
__id600_.affectedByGravity = true;
__id600_.angularDamping = 0;
__id600_.convertToBitmap = false;
__id600_.linearDamping = 0;
try {
__id600_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id614__Level31_traps_1(){
try {
__id614_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id614_.addToBackground = false;
__id614_.affectedByGravity = true;
__id614_.angularDamping = 0;
__id614_.convertToBitmap = false;
__id614_.delay = 0;
__id614_.duration = 50;
__id614_.frequency = 150;
__id614_.linearDamping = 0;
try {
__id614_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id601__Level31_Walls_1(){
try {
__id601_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id601_.addToBackground = true;
__id601_.affectedByGravity = true;
__id601_.angularDamping = 0;
__id601_.convertToBitmap = false;
__id601_.linearDamping = 0;
try {
__id601_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id615__Level31_traps_1(){
try {
__id615_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id615_.addToBackground = false;
__id615_.affectedByGravity = true;
__id615_.angularDamping = 0;
__id615_.convertToBitmap = false;
__id615_.delay = 0;
__id615_.duration = 30;
__id615_.frequency = 50;
__id615_.linearDamping = 0;
try {
__id615_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id602__Level31_Walls_1(){
try {
__id602_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id602_.addToBackground = true;
__id602_.affectedByGravity = true;
__id602_.angularDamping = 0;
__id602_.convertToBitmap = false;
__id602_.linearDamping = 0;
try {
__id602_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id616__Level31_traps_1(){
try {
__id616_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id616_.addToBackground = false;
__id616_.affectedByGravity = true;
__id616_.angularDamping = 0;
__id616_.convertToBitmap = false;
__id616_.delay = 0;
__id616_.duration = 30;
__id616_.frequency = 50;
__id616_.linearDamping = 0;
try {
__id616_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id603__Level31_Walls_1(){
try {
__id603_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id603_.addToBackground = true;
__id603_.affectedByGravity = true;
__id603_.angularDamping = 0;
__id603_.convertToBitmap = false;
__id603_.linearDamping = 0;
try {
__id603_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id617__Level31_traps_1(){
try {
__id617_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id617_.addToBackground = false;
__id617_.affectedByGravity = true;
__id617_.angularDamping = 0;
__id617_.convertToBitmap = false;
__id617_.delay = 0;
__id617_.duration = 30;
__id617_.frequency = 50;
__id617_.linearDamping = 0;
try {
__id617_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id604__Level31_Walls_1(){
try {
__id604_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id604_.addToBackground = true;
__id604_.affectedByGravity = true;
__id604_.angularDamping = 0;
__id604_.convertToBitmap = false;
__id604_.linearDamping = 0;
try {
__id604_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id599__Level31_Walls_1(){
try {
__id599_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id599_.addToBackground = true;
__id599_.affectedByGravity = true;
__id599_.angularDamping = 0;
__id599_.convertToBitmap = false;
__id599_.linearDamping = 0;
try {
__id599_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id618__Level31_traps_1(){
try {
__id618_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id618_.addToBackground = false;
__id618_.affectedByGravity = true;
__id618_.angularDamping = 0;
__id618_.convertToBitmap = false;
__id618_.delay = 0;
__id618_.duration = 30;
__id618_.frequency = 100;
__id618_.linearDamping = 0;
try {
__id618_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id605__Level31_Walls_1(){
try {
__id605_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id605_.addToBackground = true;
__id605_.affectedByGravity = true;
__id605_.angularDamping = 0;
__id605_.convertToBitmap = false;
__id605_.linearDamping = 0;
try {
__id605_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id619__Level31_traps_1(){
try {
__id619_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id619_.addToBackground = false;
__id619_.affectedByGravity = true;
__id619_.angularDamping = 0;
__id619_.convertToBitmap = false;
__id619_.delay = 0;
__id619_.duration = 30;
__id619_.frequency = 100;
__id619_.linearDamping = 0;
try {
__id619_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id606__Level31_Walls_1(){
try {
__id606_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id606_.addToBackground = true;
__id606_.affectedByGravity = true;
__id606_.angularDamping = 0;
__id606_.convertToBitmap = false;
__id606_.linearDamping = 0;
try {
__id606_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id607__Level31_Walls_1(){
try {
__id607_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id607_.addToBackground = true;
__id607_.affectedByGravity = true;
__id607_.angularDamping = 0;
__id607_.convertToBitmap = false;
__id607_.linearDamping = 0;
try {
__id607_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id597__Level31_borderwalls_1(){
try {
__id597_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id597_.addToBackground = true;
__id597_.affectedByGravity = true;
__id597_.angularDamping = 0;
__id597_.convertToBitmap = false;
__id597_.linearDamping = 0;
try {
__id597_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id608__Level31_Walls_1(){
try {
__id608_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id608_.addToBackground = true;
__id608_.affectedByGravity = true;
__id608_.angularDamping = 0;
__id608_.convertToBitmap = false;
__id608_.linearDamping = 0;
try {
__id608_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id609__Level31_Walls_1(){
try {
__id609_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id609_.addToBackground = true;
__id609_.affectedByGravity = true;
__id609_.angularDamping = 0;
__id609_.convertToBitmap = false;
__id609_.linearDamping = 0;
try {
__id609_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 243
//Level32 (Level32)
package {
import Game.*;
public dynamic class Level32 extends GameLevel {
public var __id637_:Pared;
public var __id625_:Pared;
public var __id626_:Pared;
public var __id638_:Pared;
public var __id627_:Pared;
public var __id639_:Pared;
public var __id628_:Pared;
public var __id629_:Pared;
public var __id640_:Pared;
public var __id641_:Pared;
public var __id642_:Pared;
public var __id630_:Pared;
public var __id643_:Pared;
public var __id631_:Pared;
public var __id632_:Pared;
public var __id620_:Pared;
public var __id645_:Pared;
public var __id633_:Pared;
public var __id621_:Pared;
public var __id646_:Pared;
public var __id622_:Pared;
public var __id634_:Pared;
public var __id647_:Pared;
public var __id623_:Pared;
public var __id635_:Pared;
public var __id636_:Pared;
public var __id624_:Pared;
public function Level32(){
__setProp___id638__Level32_Walls_1();
__setProp___id646__Level32_Walls_1();
__setProp___id639__Level32_Walls_1();
__setProp___id647__Level32_Walls_1();
__setProp___id628__Level32_Walls_1();
__setProp___id645__Level32_Walls_1();
__setProp___id629__Level32_Walls_1();
__setProp___id642__Level32_Walls_1();
__setProp___id643__Level32_Walls_1();
__setProp___id636__Level32_Walls_1();
__setProp___id640__Level32_Walls_1();
__setProp___id637__Level32_Walls_1();
__setProp___id626__Level32_Walls_1();
__setProp___id641__Level32_Walls_1();
__setProp___id634__Level32_Walls_1();
__setProp___id627__Level32_Walls_1();
__setProp___id635__Level32_Walls_1();
__setProp___id624__Level32_Walls_1();
__setProp___id632__Level32_Walls_1();
__setProp___id625__Level32_Walls_1();
__setProp___id633__Level32_Walls_1();
__setProp___id622__Level32_borderwalls_1();
__setProp___id630__Level32_Walls_1();
__setProp___id623__Level32_borderwalls_1();
__setProp___id631__Level32_Walls_1();
__setProp___id620__Level32_borderwalls_1();
__setProp___id621__Level32_borderwalls_1();
}
function __setProp___id623__Level32_borderwalls_1(){
try {
__id623_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id623_.addToBackground = true;
__id623_.affectedByGravity = true;
__id623_.angularDamping = 0;
__id623_.convertToBitmap = false;
__id623_.linearDamping = 0;
try {
__id623_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id640__Level32_Walls_1(){
try {
__id640_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id640_.addToBackground = true;
__id640_.affectedByGravity = true;
__id640_.angularDamping = 0;
__id640_.convertToBitmap = false;
__id640_.linearDamping = 0;
try {
__id640_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id621__Level32_borderwalls_1(){
try {
__id621_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id621_.addToBackground = true;
__id621_.affectedByGravity = true;
__id621_.angularDamping = 0;
__id621_.convertToBitmap = false;
__id621_.linearDamping = 0;
try {
__id621_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id641__Level32_Walls_1(){
try {
__id641_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id641_.addToBackground = true;
__id641_.affectedByGravity = true;
__id641_.angularDamping = 0;
__id641_.convertToBitmap = false;
__id641_.linearDamping = 0;
try {
__id641_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id630__Level32_Walls_1(){
try {
__id630_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id630_.addToBackground = true;
__id630_.affectedByGravity = true;
__id630_.angularDamping = 0;
__id630_.convertToBitmap = false;
__id630_.linearDamping = 0;
try {
__id630_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id642__Level32_Walls_1(){
try {
__id642_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id642_.addToBackground = true;
__id642_.affectedByGravity = true;
__id642_.angularDamping = 0;
__id642_.convertToBitmap = false;
__id642_.linearDamping = 0;
try {
__id642_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id643__Level32_Walls_1(){
try {
__id643_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id643_.addToBackground = true;
__id643_.affectedByGravity = true;
__id643_.angularDamping = 0;
__id643_.convertToBitmap = false;
__id643_.linearDamping = 0;
try {
__id643_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id631__Level32_Walls_1(){
try {
__id631_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id631_.addToBackground = true;
__id631_.affectedByGravity = true;
__id631_.angularDamping = 0;
__id631_.convertToBitmap = false;
__id631_.linearDamping = 0;
try {
__id631_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id632__Level32_Walls_1(){
try {
__id632_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id632_.addToBackground = true;
__id632_.affectedByGravity = true;
__id632_.angularDamping = 0;
__id632_.convertToBitmap = false;
__id632_.linearDamping = 0;
try {
__id632_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id645__Level32_Walls_1(){
try {
__id645_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id645_.addToBackground = true;
__id645_.affectedByGravity = true;
__id645_.angularDamping = 0;
__id645_.convertToBitmap = false;
__id645_.linearDamping = 0;
try {
__id645_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id633__Level32_Walls_1(){
try {
__id633_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id633_.addToBackground = true;
__id633_.affectedByGravity = true;
__id633_.angularDamping = 0;
__id633_.convertToBitmap = false;
__id633_.linearDamping = 0;
try {
__id633_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id646__Level32_Walls_1(){
try {
__id646_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id646_.addToBackground = true;
__id646_.affectedByGravity = true;
__id646_.angularDamping = 0;
__id646_.convertToBitmap = false;
__id646_.linearDamping = 0;
try {
__id646_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id634__Level32_Walls_1(){
try {
__id634_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id634_.addToBackground = true;
__id634_.affectedByGravity = true;
__id634_.angularDamping = 0;
__id634_.convertToBitmap = false;
__id634_.linearDamping = 0;
try {
__id634_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id647__Level32_Walls_1(){
try {
__id647_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id647_.addToBackground = true;
__id647_.affectedByGravity = true;
__id647_.angularDamping = 0;
__id647_.convertToBitmap = false;
__id647_.linearDamping = 0;
try {
__id647_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id635__Level32_Walls_1(){
try {
__id635_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id635_.addToBackground = true;
__id635_.affectedByGravity = true;
__id635_.angularDamping = 0;
__id635_.convertToBitmap = false;
__id635_.linearDamping = 0;
try {
__id635_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id622__Level32_borderwalls_1(){
try {
__id622_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id622_.addToBackground = true;
__id622_.affectedByGravity = true;
__id622_.angularDamping = 0;
__id622_.convertToBitmap = false;
__id622_.linearDamping = 0;
try {
__id622_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id636__Level32_Walls_1(){
try {
__id636_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id636_.addToBackground = true;
__id636_.affectedByGravity = true;
__id636_.angularDamping = 0;
__id636_.convertToBitmap = false;
__id636_.linearDamping = 0;
try {
__id636_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id624__Level32_Walls_1(){
try {
__id624_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id624_.addToBackground = true;
__id624_.affectedByGravity = true;
__id624_.angularDamping = 0;
__id624_.convertToBitmap = false;
__id624_.linearDamping = 0;
try {
__id624_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id637__Level32_Walls_1(){
try {
__id637_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id637_.addToBackground = true;
__id637_.affectedByGravity = true;
__id637_.angularDamping = 0;
__id637_.convertToBitmap = false;
__id637_.linearDamping = 0;
try {
__id637_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id625__Level32_Walls_1(){
try {
__id625_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id625_.addToBackground = true;
__id625_.affectedByGravity = true;
__id625_.angularDamping = 0;
__id625_.convertToBitmap = false;
__id625_.linearDamping = 0;
try {
__id625_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id638__Level32_Walls_1(){
try {
__id638_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id638_.addToBackground = true;
__id638_.affectedByGravity = true;
__id638_.angularDamping = 0;
__id638_.convertToBitmap = false;
__id638_.linearDamping = 0;
try {
__id638_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id626__Level32_Walls_1(){
try {
__id626_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id626_.addToBackground = true;
__id626_.affectedByGravity = true;
__id626_.angularDamping = 0;
__id626_.convertToBitmap = false;
__id626_.linearDamping = 0;
try {
__id626_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id620__Level32_borderwalls_1(){
try {
__id620_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id620_.addToBackground = true;
__id620_.affectedByGravity = true;
__id620_.angularDamping = 0;
__id620_.convertToBitmap = false;
__id620_.linearDamping = 0;
try {
__id620_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id627__Level32_Walls_1(){
try {
__id627_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id627_.addToBackground = true;
__id627_.affectedByGravity = true;
__id627_.angularDamping = 0;
__id627_.convertToBitmap = false;
__id627_.linearDamping = 0;
try {
__id627_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id639__Level32_Walls_1(){
try {
__id639_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id639_.addToBackground = true;
__id639_.affectedByGravity = true;
__id639_.angularDamping = 0;
__id639_.convertToBitmap = false;
__id639_.linearDamping = 0;
try {
__id639_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id628__Level32_Walls_1(){
try {
__id628_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id628_.addToBackground = true;
__id628_.affectedByGravity = true;
__id628_.angularDamping = 0;
__id628_.convertToBitmap = false;
__id628_.linearDamping = 0;
try {
__id628_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id629__Level32_Walls_1(){
try {
__id629_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id629_.addToBackground = true;
__id629_.affectedByGravity = true;
__id629_.angularDamping = 0;
__id629_.convertToBitmap = false;
__id629_.linearDamping = 0;
try {
__id629_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 244
//Level37 (Level37)
package {
import Game.*;
public dynamic class Level37 extends GameLevel {
public var __id649_:Pared;
public var __id653_:Pared;
public var __id661_:BolasNivel37;
public var __id662_:RevoJoint;
public var __id650_:Pared;
public var __id651_:Pared;
public var __id648_:Pared;
public function Level37(){
__setProp___id662__Level37_Objects_1();
__setProp___id653__Level37_Walls_1();
__setProp___id661__Level37_MovingWalls_1();
__setProp___id650__Level37_borderwalls_1();
__setProp___id651__Level37_borderwalls_1();
__setProp___id648__Level37_borderwalls_1();
__setProp___id649__Level37_borderwalls_1();
}
function __setProp___id650__Level37_borderwalls_1(){
try {
__id650_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id650_.addToBackground = true;
__id650_.affectedByGravity = true;
__id650_.angularDamping = 0;
__id650_.convertToBitmap = false;
__id650_.linearDamping = 0;
try {
__id650_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id661__Level37_MovingWalls_1(){
try {
__id661_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id661_.addToBackground = false;
__id661_.affectedByGravity = false;
__id661_.angularDamping = 0;
__id661_.convertToBitmap = true;
__id661_.linearDamping = 0;
try {
__id661_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id662__Level37_Objects_1(){
try {
__id662_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id662_.forceResistance = 0;
__id662_.speed = 0.2;
__id662_.torque = 1000000;
__id662_.torqueResistance = 0;
__id662_.useGround = true;
try {
__id662_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id649__Level37_borderwalls_1(){
try {
__id649_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id649_.addToBackground = true;
__id649_.affectedByGravity = true;
__id649_.angularDamping = 0;
__id649_.convertToBitmap = false;
__id649_.linearDamping = 0;
try {
__id649_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id651__Level37_borderwalls_1(){
try {
__id651_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id651_.addToBackground = true;
__id651_.affectedByGravity = true;
__id651_.angularDamping = 0;
__id651_.convertToBitmap = false;
__id651_.linearDamping = 0;
try {
__id651_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id653__Level37_Walls_1(){
try {
__id653_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id653_.addToBackground = true;
__id653_.affectedByGravity = true;
__id653_.angularDamping = 0;
__id653_.convertToBitmap = false;
__id653_.linearDamping = 0;
try {
__id653_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id648__Level37_borderwalls_1(){
try {
__id648_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id648_.addToBackground = true;
__id648_.affectedByGravity = true;
__id648_.angularDamping = 0;
__id648_.convertToBitmap = false;
__id648_.linearDamping = 0;
try {
__id648_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 245
//Level38 (Level38)
package {
import Game.*;
public dynamic class Level38 extends GameLevel {
public var __id670_:Pared;
public var __id682_:FlameMC;
public var __id683_:FlameMC;
public var __id671_:Pared;
public var __id684_:FlameMC;
public var __id672_:Pared;
public var __id685_:RevoJoint;
public var __id673_:Pared;
public var __id686_:RevoJoint;
public var __id674_:Pared;
public var __id687_:RevoJoint;
public var __id675_:Pared;
public var __id663_:Pared;
public var __id676_:Pared;
public var __id664_:Pared;
public var __id665_:Pared;
public var __id666_:Pared;
public var __id667_:Pared;
public var __id668_:Pared;
public var __id669_:Pared;
public function Level38(){
__setProp___id685__Level38_Objects_1();
__setProp___id684__Level38_traps_1();
__setProp___id676__Level38_Walls_1();
__setProp___id682__Level38_traps_1();
__setProp___id666__Level38_borderwalls_1();
__setProp___id687__Level38_Objects_1();
__setProp___id674__Level38_Walls_1();
__setProp___id667__Level38_Walls_1();
__setProp___id675__Level38_Walls_1();
__setProp___id664__Level38_borderwalls_1();
__setProp___id672__Level38_Walls_1();
__setProp___id665__Level38_borderwalls_1();
__setProp___id686__Level38_Objects_1();
__setProp___id673__Level38_Walls_1();
__setProp___id670__Level38_Walls_1();
__setProp___id668__Level38_Walls_1();
__setProp___id663__Level38_borderwalls_1();
__setProp___id671__Level38_Walls_1();
__setProp___id669__Level38_Walls_1();
__setProp___id683__Level38_traps_1();
}
function __setProp___id673__Level38_Walls_1(){
try {
__id673_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id673_.addToBackground = true;
__id673_.affectedByGravity = true;
__id673_.angularDamping = 0;
__id673_.convertToBitmap = false;
__id673_.linearDamping = 0;
try {
__id673_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id674__Level38_Walls_1(){
try {
__id674_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id674_.addToBackground = true;
__id674_.affectedByGravity = true;
__id674_.angularDamping = 0;
__id674_.convertToBitmap = false;
__id674_.linearDamping = 0;
try {
__id674_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id687__Level38_Objects_1(){
try {
__id687_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id687_.forceResistance = 0;
__id687_.speed = 0.3;
__id687_.torque = 10000;
__id687_.torqueResistance = 0;
__id687_.useGround = true;
try {
__id687_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id675__Level38_Walls_1(){
try {
__id675_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id675_.addToBackground = true;
__id675_.affectedByGravity = true;
__id675_.angularDamping = 0;
__id675_.convertToBitmap = false;
__id675_.linearDamping = 0;
try {
__id675_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id666__Level38_borderwalls_1(){
try {
__id666_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id666_.addToBackground = true;
__id666_.affectedByGravity = true;
__id666_.angularDamping = 0;
__id666_.convertToBitmap = false;
__id666_.linearDamping = 0;
try {
__id666_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id676__Level38_Walls_1(){
try {
__id676_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id676_.addToBackground = true;
__id676_.affectedByGravity = true;
__id676_.angularDamping = 0;
__id676_.convertToBitmap = false;
__id676_.linearDamping = 0;
try {
__id676_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id664__Level38_borderwalls_1(){
try {
__id664_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id664_.addToBackground = true;
__id664_.affectedByGravity = true;
__id664_.angularDamping = 0;
__id664_.convertToBitmap = false;
__id664_.linearDamping = 0;
try {
__id664_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id667__Level38_Walls_1(){
try {
__id667_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id667_.addToBackground = true;
__id667_.affectedByGravity = true;
__id667_.angularDamping = 0;
__id667_.convertToBitmap = false;
__id667_.linearDamping = 0;
try {
__id667_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id668__Level38_Walls_1(){
try {
__id668_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id668_.addToBackground = true;
__id668_.affectedByGravity = true;
__id668_.angularDamping = 0;
__id668_.convertToBitmap = false;
__id668_.linearDamping = 0;
try {
__id668_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id669__Level38_Walls_1(){
try {
__id669_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id669_.addToBackground = true;
__id669_.affectedByGravity = true;
__id669_.angularDamping = 0;
__id669_.convertToBitmap = false;
__id669_.linearDamping = 0;
try {
__id669_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id685__Level38_Objects_1(){
try {
__id685_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id685_.forceResistance = 0;
__id685_.speed = 0.3;
__id685_.torque = 10000;
__id685_.torqueResistance = 0;
__id685_.useGround = true;
try {
__id685_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id665__Level38_borderwalls_1(){
try {
__id665_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id665_.addToBackground = true;
__id665_.affectedByGravity = true;
__id665_.angularDamping = 0;
__id665_.convertToBitmap = false;
__id665_.linearDamping = 0;
try {
__id665_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id682__Level38_traps_1(){
try {
__id682_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id682_.addToBackground = false;
__id682_.affectedByGravity = true;
__id682_.angularDamping = 0;
__id682_.convertToBitmap = false;
__id682_.delay = 0;
__id682_.duration = 60;
__id682_.frequency = 130;
__id682_.linearDamping = 0;
try {
__id682_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id683__Level38_traps_1(){
try {
__id683_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id683_.addToBackground = false;
__id683_.affectedByGravity = true;
__id683_.angularDamping = 0;
__id683_.convertToBitmap = false;
__id683_.delay = 20;
__id683_.duration = 60;
__id683_.frequency = 130;
__id683_.linearDamping = 0;
try {
__id683_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id670__Level38_Walls_1(){
try {
__id670_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id670_.addToBackground = true;
__id670_.affectedByGravity = true;
__id670_.angularDamping = 0;
__id670_.convertToBitmap = false;
__id670_.linearDamping = 0;
try {
__id670_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id663__Level38_borderwalls_1(){
try {
__id663_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id663_.addToBackground = true;
__id663_.affectedByGravity = true;
__id663_.angularDamping = 0;
__id663_.convertToBitmap = false;
__id663_.linearDamping = 0;
try {
__id663_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id684__Level38_traps_1(){
try {
__id684_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id684_.addToBackground = false;
__id684_.affectedByGravity = true;
__id684_.angularDamping = 0;
__id684_.convertToBitmap = false;
__id684_.delay = 40;
__id684_.duration = 60;
__id684_.frequency = 130;
__id684_.linearDamping = 0;
try {
__id684_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id686__Level38_Objects_1(){
try {
__id686_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id686_.forceResistance = 0;
__id686_.speed = -0.2;
__id686_.torque = 10000;
__id686_.torqueResistance = 0;
__id686_.useGround = true;
try {
__id686_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id671__Level38_Walls_1(){
try {
__id671_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id671_.addToBackground = true;
__id671_.affectedByGravity = true;
__id671_.angularDamping = 0;
__id671_.convertToBitmap = false;
__id671_.linearDamping = 0;
try {
__id671_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id672__Level38_Walls_1(){
try {
__id672_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id672_.addToBackground = true;
__id672_.affectedByGravity = true;
__id672_.angularDamping = 0;
__id672_.convertToBitmap = false;
__id672_.linearDamping = 0;
try {
__id672_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 246
//Level39 (Level39)
package {
import Game.*;
public dynamic class Level39 extends GameLevel {
public var __id689_:Pared;
public var __id694_:Pared;
public var __id693_:Pared;
public var __id692_:Pared;
public var __id688_:Pared;
public var __id700_:Pared;
public var __id695_:Pared;
public var __id697_:Pared;
public var __id690_:Pared;
public var __id691_:Pared;
public var __id699_:Pared;
public var __id698_:Pared;
public function Level39(){
__setProp___id699__Level39_Walls_1();
__setProp___id695__Level39_Walls_1();
__setProp___id694__Level39_Walls_1();
__setProp___id691__Level39_borderwalls_1();
__setProp___id697__Level39_Walls_1();
__setProp___id690__Level39_borderwalls_1();
__setProp___id693__Level39_Walls_1();
__setProp___id692__Level39_Walls_1();
__setProp___id688__Level39_borderwalls_1();
__setProp___id700__Level39_Walls_1();
__setProp___id698__Level39_Walls_1();
__setProp___id689__Level39_borderwalls_1();
}
function __setProp___id697__Level39_Walls_1(){
try {
__id697_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id697_.addToBackground = true;
__id697_.affectedByGravity = true;
__id697_.angularDamping = 0;
__id697_.convertToBitmap = false;
__id697_.linearDamping = 0;
try {
__id697_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id698__Level39_Walls_1(){
try {
__id698_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id698_.addToBackground = true;
__id698_.affectedByGravity = true;
__id698_.angularDamping = 0;
__id698_.convertToBitmap = false;
__id698_.linearDamping = 0;
try {
__id698_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id689__Level39_borderwalls_1(){
try {
__id689_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id689_.addToBackground = true;
__id689_.affectedByGravity = true;
__id689_.angularDamping = 0;
__id689_.convertToBitmap = false;
__id689_.linearDamping = 0;
try {
__id689_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id699__Level39_Walls_1(){
try {
__id699_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id699_.addToBackground = true;
__id699_.affectedByGravity = true;
__id699_.angularDamping = 0;
__id699_.convertToBitmap = false;
__id699_.linearDamping = 0;
try {
__id699_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id691__Level39_borderwalls_1(){
try {
__id691_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id691_.addToBackground = true;
__id691_.affectedByGravity = true;
__id691_.angularDamping = 0;
__id691_.convertToBitmap = false;
__id691_.linearDamping = 0;
try {
__id691_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id690__Level39_borderwalls_1(){
try {
__id690_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id690_.addToBackground = true;
__id690_.affectedByGravity = true;
__id690_.angularDamping = 0;
__id690_.convertToBitmap = false;
__id690_.linearDamping = 0;
try {
__id690_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id692__Level39_Walls_1(){
try {
__id692_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id692_.addToBackground = true;
__id692_.affectedByGravity = true;
__id692_.angularDamping = 0;
__id692_.convertToBitmap = false;
__id692_.linearDamping = 0;
try {
__id692_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id688__Level39_borderwalls_1(){
try {
__id688_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id688_.addToBackground = true;
__id688_.affectedByGravity = true;
__id688_.angularDamping = 0;
__id688_.convertToBitmap = false;
__id688_.linearDamping = 0;
try {
__id688_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id694__Level39_Walls_1(){
try {
__id694_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id694_.addToBackground = true;
__id694_.affectedByGravity = true;
__id694_.angularDamping = 0;
__id694_.convertToBitmap = false;
__id694_.linearDamping = 0;
try {
__id694_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id695__Level39_Walls_1(){
try {
__id695_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id695_.addToBackground = true;
__id695_.affectedByGravity = true;
__id695_.angularDamping = 0;
__id695_.convertToBitmap = false;
__id695_.linearDamping = 0;
try {
__id695_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id693__Level39_Walls_1(){
try {
__id693_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id693_.addToBackground = true;
__id693_.affectedByGravity = true;
__id693_.angularDamping = 0;
__id693_.convertToBitmap = false;
__id693_.linearDamping = 0;
try {
__id693_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id700__Level39_Walls_1(){
try {
__id700_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id700_.addToBackground = true;
__id700_.affectedByGravity = true;
__id700_.angularDamping = 0;
__id700_.convertToBitmap = false;
__id700_.linearDamping = 0;
try {
__id700_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 247
//Level4 (Level4)
package {
import Game.*;
public dynamic class Level4 extends GameLevel {
public var __id314_:Pared;
public var __id315_:Pared;
public var __id320_:BloqueMovilNivel4;
public var __id317_:Pared;
public var __id322_:RevoJoint;
public var __id312_:Pared;
public var __id313_:Pared;
public function Level4(){
__setProp___id320__Level4_MovingWalls_1();
__setProp___id313__Level4_borderwalls_1();
__setProp___id312__Level4_borderwalls_1();
__setProp___id322__Level4_Objects_1();
__setProp___id317__Level4_Walls_1();
__setProp___id315__Level4_borderwalls_1();
__setProp___id314__Level4_borderwalls_1();
}
function __setProp___id312__Level4_borderwalls_1(){
try {
__id312_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id312_.addToBackground = true;
__id312_.affectedByGravity = true;
__id312_.angularDamping = 0;
__id312_.convertToBitmap = false;
__id312_.linearDamping = 0;
try {
__id312_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id313__Level4_borderwalls_1(){
try {
__id313_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id313_.addToBackground = true;
__id313_.affectedByGravity = true;
__id313_.angularDamping = 0;
__id313_.convertToBitmap = false;
__id313_.linearDamping = 0;
try {
__id313_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id322__Level4_Objects_1(){
try {
__id322_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id322_.forceResistance = 0;
__id322_.speed = -0.3;
__id322_.torque = 1000;
__id322_.torqueResistance = 0;
__id322_.useGround = false;
try {
__id322_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id314__Level4_borderwalls_1(){
try {
__id314_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id314_.addToBackground = true;
__id314_.affectedByGravity = true;
__id314_.angularDamping = 0;
__id314_.convertToBitmap = false;
__id314_.linearDamping = 0;
try {
__id314_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id317__Level4_Walls_1(){
try {
__id317_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id317_.addToBackground = true;
__id317_.affectedByGravity = true;
__id317_.angularDamping = 0;
__id317_.convertToBitmap = false;
__id317_.linearDamping = 0;
try {
__id317_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id320__Level4_MovingWalls_1(){
try {
__id320_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id320_.addToBackground = false;
__id320_.affectedByGravity = false;
__id320_.angularDamping = 0;
__id320_.convertToBitmap = true;
__id320_.linearDamping = 0;
try {
__id320_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id315__Level4_borderwalls_1(){
try {
__id315_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id315_.addToBackground = true;
__id315_.affectedByGravity = true;
__id315_.angularDamping = 0;
__id315_.convertToBitmap = false;
__id315_.linearDamping = 0;
try {
__id315_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 248
//Level40 (Level40)
package {
import Game.*;
public dynamic class Level40 extends GameLevel {
public var __id710_:Pared;
public var __id711_:Pared;
public var __id713_:Pared;
public var __id701_:Pared;
public var __id714_:Pared;
public var __id702_:Pared;
public var __id715_:Pared;
public var __id703_:Pared;
public var __id716_:Pared;
public var __id704_:Pared;
public var __id705_:Pared;
public var __id706_:Pared;
public var __id707_:Pared;
public var __id708_:Pared;
public var __id709_:Pared;
public function Level40(){
__setProp___id709__Level40_Walls_1();
__setProp___id708__Level40_Walls_1();
__setProp___id716__Level40_Walls_1();
__setProp___id707__Level40_Walls_1();
__setProp___id715__Level40_Walls_1();
__setProp___id706__Level40_Walls_1();
__setProp___id714__Level40_Walls_1();
__setProp___id705__Level40_Walls_1();
__setProp___id713__Level40_Walls_1();
__setProp___id704__Level40_borderwalls_1();
__setProp___id703__Level40_borderwalls_1();
__setProp___id711__Level40_Walls_1();
__setProp___id702__Level40_borderwalls_1();
__setProp___id710__Level40_Walls_1();
__setProp___id701__Level40_borderwalls_1();
}
function __setProp___id710__Level40_Walls_1(){
try {
__id710_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id710_.addToBackground = true;
__id710_.affectedByGravity = true;
__id710_.angularDamping = 0;
__id710_.convertToBitmap = false;
__id710_.linearDamping = 0;
try {
__id710_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id703__Level40_borderwalls_1(){
try {
__id703_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id703_.addToBackground = true;
__id703_.affectedByGravity = true;
__id703_.angularDamping = 0;
__id703_.convertToBitmap = false;
__id703_.linearDamping = 0;
try {
__id703_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id711__Level40_Walls_1(){
try {
__id711_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id711_.addToBackground = true;
__id711_.affectedByGravity = true;
__id711_.angularDamping = 0;
__id711_.convertToBitmap = false;
__id711_.linearDamping = 0;
try {
__id711_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id701__Level40_borderwalls_1(){
try {
__id701_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id701_.addToBackground = true;
__id701_.affectedByGravity = true;
__id701_.angularDamping = 0;
__id701_.convertToBitmap = false;
__id701_.linearDamping = 0;
try {
__id701_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id713__Level40_Walls_1(){
try {
__id713_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id713_.addToBackground = true;
__id713_.affectedByGravity = true;
__id713_.angularDamping = 0;
__id713_.convertToBitmap = false;
__id713_.linearDamping = 0;
try {
__id713_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id714__Level40_Walls_1(){
try {
__id714_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id714_.addToBackground = true;
__id714_.affectedByGravity = true;
__id714_.angularDamping = 0;
__id714_.convertToBitmap = false;
__id714_.linearDamping = 0;
try {
__id714_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id715__Level40_Walls_1(){
try {
__id715_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id715_.addToBackground = true;
__id715_.affectedByGravity = true;
__id715_.angularDamping = 0;
__id715_.convertToBitmap = false;
__id715_.linearDamping = 0;
try {
__id715_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id716__Level40_Walls_1(){
try {
__id716_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id716_.addToBackground = true;
__id716_.affectedByGravity = true;
__id716_.angularDamping = 0;
__id716_.convertToBitmap = false;
__id716_.linearDamping = 0;
try {
__id716_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id705__Level40_Walls_1(){
try {
__id705_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id705_.addToBackground = true;
__id705_.affectedByGravity = true;
__id705_.angularDamping = 0;
__id705_.convertToBitmap = false;
__id705_.linearDamping = 0;
try {
__id705_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id704__Level40_borderwalls_1(){
try {
__id704_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id704_.addToBackground = true;
__id704_.affectedByGravity = true;
__id704_.angularDamping = 0;
__id704_.convertToBitmap = false;
__id704_.linearDamping = 0;
try {
__id704_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id706__Level40_Walls_1(){
try {
__id706_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id706_.addToBackground = true;
__id706_.affectedByGravity = true;
__id706_.angularDamping = 0;
__id706_.convertToBitmap = false;
__id706_.linearDamping = 0;
try {
__id706_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id707__Level40_Walls_1(){
try {
__id707_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id707_.addToBackground = true;
__id707_.affectedByGravity = true;
__id707_.angularDamping = 0;
__id707_.convertToBitmap = false;
__id707_.linearDamping = 0;
try {
__id707_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id702__Level40_borderwalls_1(){
try {
__id702_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id702_.addToBackground = true;
__id702_.affectedByGravity = true;
__id702_.angularDamping = 0;
__id702_.convertToBitmap = false;
__id702_.linearDamping = 0;
try {
__id702_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id708__Level40_Walls_1(){
try {
__id708_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id708_.addToBackground = true;
__id708_.affectedByGravity = true;
__id708_.angularDamping = 0;
__id708_.convertToBitmap = false;
__id708_.linearDamping = 0;
try {
__id708_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id709__Level40_Walls_1(){
try {
__id709_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id709_.addToBackground = true;
__id709_.affectedByGravity = true;
__id709_.angularDamping = 0;
__id709_.convertToBitmap = false;
__id709_.linearDamping = 0;
try {
__id709_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 249
//Level41 (Level41)
package {
import Game.*;
public dynamic class Level41 extends GameLevel {
public var __id790_:FlameSinBaseMC;
public var __id791_:FlameSinBaseMC;
public var __id792_:FlameSinBaseMC;
public var __id780_:FlameSinBaseMC;
public var __id793_:FlameSinBaseMC;
public var __id781_:FlameSinBaseMC;
public var __id794_:FlameSinBaseMC;
public var __id782_:FlameSinBaseMC;
public var __id770_:FlameSinBaseMC;
public var __id795_:FlameSinBaseMC;
public var __id783_:FlameSinBaseMC;
public var __id771_:FlameSinBaseMC;
public var __id796_:FlameSinBaseMC;
public var __id784_:FlameSinBaseMC;
public var __id772_:FlameSinBaseMC;
public var __id760_:FlameSinBaseMC;
public var __id797_:FlameSinBaseMC;
public var __id785_:FlameSinBaseMC;
public var __id773_:FlameSinBaseMC;
public var __id761_:FlameSinBaseMC;
public var __id798_:FlameSinBaseMC;
public var __id786_:FlameSinBaseMC;
public var __id774_:FlameSinBaseMC;
public var __id762_:FlameSinBaseMC;
public var __id750_:FlameSinBaseMC;
public var __id799_:FlameSinBaseMC;
public var __id787_:FlameSinBaseMC;
public var __id775_:FlameSinBaseMC;
public var __id763_:FlameSinBaseMC;
public var __id751_:FlameSinBaseMC;
public var __id788_:FlameSinBaseMC;
public var __id764_:FlameSinBaseMC;
public var __id752_:FlameSinBaseMC;
public var __id776_:FlameSinBaseMC;
public var __id740_:FlameSinBaseMC;
public var __id777_:FlameSinBaseMC;
public var __id765_:FlameSinBaseMC;
public var __id753_:FlameSinBaseMC;
public var __id741_:FlameSinBaseMC;
public var __id789_:FlameSinBaseMC;
public var __id778_:FlameSinBaseMC;
public var __id766_:FlameSinBaseMC;
public var __id754_:FlameSinBaseMC;
public var __id742_:FlameSinBaseMC;
public var __id730_:FlameSinBaseMC;
public var __id779_:FlameSinBaseMC;
public var __id767_:FlameSinBaseMC;
public var __id743_:FlameSinBaseMC;
public var __id731_:FlameSinBaseMC;
public var __id755_:FlameSinBaseMC;
public var __id768_:FlameSinBaseMC;
public var __id756_:FlameSinBaseMC;
public var __id744_:FlameSinBaseMC;
public var __id720_:Pared;
public var __id732_:FlameSinBaseMC;
public var __id769_:FlameSinBaseMC;
public var __id757_:FlameSinBaseMC;
public var __id745_:FlameSinBaseMC;
public var __id733_:FlameSinBaseMC;
public var __id758_:FlameSinBaseMC;
public var __id746_:FlameSinBaseMC;
public var __id734_:FlameSinBaseMC;
public var __id722_:Pared;
public var __id747_:FlameSinBaseMC;
public var __id735_:FlameSinBaseMC;
public var __id759_:FlameSinBaseMC;
public var __id723_:Pared;
public var __id748_:FlameSinBaseMC;
public var __id736_:FlameSinBaseMC;
public var __id749_:FlameSinBaseMC;
public var __id737_:FlameSinBaseMC;
public var __id738_:FlameSinBaseMC;
public var __id726_:Pared;
public var __id739_:FlameSinBaseMC;
public var __id727_:Pared;
public var __id800_:FlameSinBaseMC;
public var __id728_:FlameSinBaseMC;
public var __id801_:FlameSinBaseMC;
public var __id717_:Pared;
public var __id802_:FlameSinBaseMC;
public var __id729_:FlameSinBaseMC;
public var __id803_:FlameSinBaseMC;
public var __id718_:Pared;
public var __id719_:Pared;
public var __id804_:FlameSinBaseMC;
public var __id805_:FlameMC;
public var __id806_:FlameMC;
public var __id807_:FlameMC;
public function Level41(){
__setProp___id784__Level41_traps_1();
__setProp___id770__Level41_traps_1();
__setProp___id763__Level41_traps_1();
__setProp___id754__Level41_traps_1();
__setProp___id749__Level41_traps_1();
__setProp___id735__Level41_traps_1();
__setProp___id729__Level41_traps_1();
__setProp___id807__Level41_traps_1();
__setProp___id782__Level41_traps_1();
__setProp___id781__Level41_traps_1();
__setProp___id776__Level41_traps_1();
__setProp___id775__Level41_traps_1();
__setProp___id768__Level41_traps_1();
__setProp___id765__Level41_traps_1();
__setProp___id730__Level41_traps_1();
__setProp___id720__Level41_Walls_1();
__setProp___id733__Level41_traps_1();
__setProp___id803__Level41_traps_1();
__setProp___id802__Level41_traps_1();
__setProp___id798__Level41_traps_1();
__setProp___id796__Level41_traps_1();
__setProp___id786__Level41_traps_1();
__setProp___id750__Level41_traps_1();
__setProp___id745__Level41_traps_1();
__setProp___id738__Level41_traps_1();
__setProp___id737__Level41_traps_1();
__setProp___id732__Level41_traps_1();
__setProp___id806__Level41_traps_1();
__setProp___id805__Level41_traps_1();
__setProp___id788__Level41_traps_1();
__setProp___id783__Level41_traps_1();
__setProp___id771__Level41_traps_1();
__setProp___id762__Level41_traps_1();
__setProp___id761__Level41_traps_1();
__setProp___id760__Level41_traps_1();
__setProp___id748__Level41_traps_1();
__setProp___id740__Level41_traps_1();
__setProp___id719__Level41_borderwalls_1();
__setProp___id790__Level41_traps_1();
__setProp___id779__Level41_traps_1();
__setProp___id758__Level41_traps_1();
__setProp___id742__Level41_traps_1();
__setProp___id718__Level41_borderwalls_1();
__setProp___id800__Level41_traps_1();
__setProp___id774__Level41_traps_1();
__setProp___id757__Level41_traps_1();
__setProp___id743__Level41_traps_1();
__setProp___id739__Level41_traps_1();
__setProp___id804__Level41_traps_1();
__setProp___id787__Level41_traps_1();
__setProp___id759__Level41_traps_1();
__setProp___id751__Level41_traps_1();
__setProp___id785__Level41_traps_1();
__setProp___id778__Level41_traps_1();
__setProp___id769__Level41_traps_1();
__setProp___id736__Level41_traps_1();
__setProp___id717__Level41_borderwalls_1();
__setProp___id793__Level41_traps_1();
__setProp___id789__Level41_traps_1();
__setProp___id756__Level41_traps_1();
__setProp___id746__Level41_traps_1();
__setProp___id728__Level41_traps_1();
__setProp___id792__Level41_traps_1();
__setProp___id755__Level41_traps_1();
__setProp___id727__Level41_Walls_1();
__setProp___id801__Level41_traps_1();
__setProp___id799__Level41_traps_1();
__setProp___id797__Level41_traps_1();
__setProp___id772__Level41_traps_1();
__setProp___id764__Level41_traps_1();
__setProp___id726__Level41_Walls_1();
__setProp___id795__Level41_traps_1();
__setProp___id777__Level41_traps_1();
__setProp___id791__Level41_traps_1();
__setProp___id780__Level41_traps_1();
__setProp___id767__Level41_traps_1();
__setProp___id747__Level41_traps_1();
__setProp___id734__Level41_traps_1();
__setProp___id794__Level41_traps_1();
__setProp___id766__Level41_traps_1();
__setProp___id723__Level41_Walls_1();
__setProp___id773__Level41_traps_1();
__setProp___id753__Level41_traps_1();
__setProp___id752__Level41_traps_1();
__setProp___id744__Level41_traps_1();
__setProp___id741__Level41_traps_1();
__setProp___id731__Level41_traps_1();
__setProp___id722__Level41_Walls_1();
}
function __setProp___id800__Level41_traps_1(){
try {
__id800_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id800_.addToBackground = false;
__id800_.affectedByGravity = true;
__id800_.angularDamping = 0;
__id800_.convertToBitmap = false;
__id800_.delay = 216;
__id800_.duration = 600;
__id800_.frequency = 300;
__id800_.linearDamping = 0;
try {
__id800_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id795__Level41_traps_1(){
try {
__id795_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id795_.addToBackground = false;
__id795_.affectedByGravity = true;
__id795_.angularDamping = 0;
__id795_.convertToBitmap = false;
__id795_.delay = 206;
__id795_.duration = 600;
__id795_.frequency = 300;
__id795_.linearDamping = 0;
try {
__id795_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id771__Level41_traps_1(){
try {
__id771_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id771_.addToBackground = false;
__id771_.affectedByGravity = true;
__id771_.angularDamping = 0;
__id771_.convertToBitmap = false;
__id771_.delay = 152;
__id771_.duration = 600;
__id771_.frequency = 300;
__id771_.linearDamping = 0;
try {
__id771_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id727__Level41_Walls_1(){
try {
__id727_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id727_.addToBackground = true;
__id727_.affectedByGravity = true;
__id727_.angularDamping = 0;
__id727_.convertToBitmap = false;
__id727_.linearDamping = 0;
try {
__id727_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id784__Level41_traps_1(){
try {
__id784_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id784_.addToBackground = false;
__id784_.affectedByGravity = true;
__id784_.angularDamping = 0;
__id784_.convertToBitmap = false;
__id784_.delay = 170;
__id784_.duration = 600;
__id784_.frequency = 300;
__id784_.linearDamping = 0;
try {
__id784_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id760__Level41_traps_1(){
try {
__id760_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id760_.addToBackground = false;
__id760_.affectedByGravity = true;
__id760_.angularDamping = 0;
__id760_.convertToBitmap = false;
__id760_.delay = 98;
__id760_.duration = 600;
__id760_.frequency = 300;
__id760_.linearDamping = 0;
try {
__id760_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id729__Level41_traps_1(){
try {
__id729_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id729_.addToBackground = false;
__id729_.affectedByGravity = true;
__id729_.angularDamping = 0;
__id729_.convertToBitmap = false;
__id729_.delay = 20;
__id729_.duration = 600;
__id729_.frequency = 300;
__id729_.linearDamping = 0;
try {
__id729_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id802__Level41_traps_1(){
try {
__id802_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id802_.addToBackground = false;
__id802_.affectedByGravity = true;
__id802_.angularDamping = 0;
__id802_.convertToBitmap = false;
__id802_.delay = 220;
__id802_.duration = 600;
__id802_.frequency = 300;
__id802_.linearDamping = 0;
try {
__id802_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id718__Level41_borderwalls_1(){
try {
__id718_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id718_.addToBackground = true;
__id718_.affectedByGravity = true;
__id718_.angularDamping = 0;
__id718_.convertToBitmap = false;
__id718_.linearDamping = 0;
try {
__id718_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id797__Level41_traps_1(){
try {
__id797_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id797_.addToBackground = false;
__id797_.affectedByGravity = true;
__id797_.angularDamping = 0;
__id797_.convertToBitmap = false;
__id797_.delay = 210;
__id797_.duration = 600;
__id797_.frequency = 300;
__id797_.linearDamping = 0;
try {
__id797_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id773__Level41_traps_1(){
try {
__id773_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id773_.addToBackground = false;
__id773_.affectedByGravity = true;
__id773_.angularDamping = 0;
__id773_.convertToBitmap = false;
__id773_.delay = 146;
__id773_.duration = 600;
__id773_.frequency = 300;
__id773_.linearDamping = 0;
try {
__id773_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id762__Level41_traps_1(){
try {
__id762_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id762_.addToBackground = false;
__id762_.affectedByGravity = true;
__id762_.angularDamping = 0;
__id762_.convertToBitmap = false;
__id762_.delay = 94;
__id762_.duration = 600;
__id762_.frequency = 300;
__id762_.linearDamping = 0;
try {
__id762_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id786__Level41_traps_1(){
try {
__id786_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id786_.addToBackground = false;
__id786_.affectedByGravity = true;
__id786_.angularDamping = 0;
__id786_.convertToBitmap = false;
__id786_.delay = 175;
__id786_.duration = 600;
__id786_.frequency = 300;
__id786_.linearDamping = 0;
try {
__id786_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id804__Level41_traps_1(){
try {
__id804_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id804_.addToBackground = false;
__id804_.affectedByGravity = true;
__id804_.angularDamping = 0;
__id804_.convertToBitmap = false;
__id804_.delay = 224;
__id804_.duration = 600;
__id804_.frequency = 300;
__id804_.linearDamping = 0;
try {
__id804_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id799__Level41_traps_1(){
try {
__id799_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id799_.addToBackground = false;
__id799_.affectedByGravity = true;
__id799_.angularDamping = 0;
__id799_.convertToBitmap = false;
__id799_.delay = 214;
__id799_.duration = 600;
__id799_.frequency = 300;
__id799_.linearDamping = 0;
try {
__id799_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id775__Level41_traps_1(){
try {
__id775_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id775_.addToBackground = false;
__id775_.affectedByGravity = true;
__id775_.angularDamping = 0;
__id775_.convertToBitmap = false;
__id775_.delay = 140;
__id775_.duration = 600;
__id775_.frequency = 300;
__id775_.linearDamping = 0;
try {
__id775_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id751__Level41_traps_1(){
try {
__id751_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id751_.addToBackground = false;
__id751_.affectedByGravity = true;
__id751_.angularDamping = 0;
__id751_.convertToBitmap = false;
__id751_.delay = 84;
__id751_.duration = 600;
__id751_.frequency = 300;
__id751_.linearDamping = 0;
try {
__id751_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id788__Level41_traps_1(){
try {
__id788_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id788_.addToBackground = false;
__id788_.affectedByGravity = true;
__id788_.angularDamping = 0;
__id788_.convertToBitmap = false;
__id788_.delay = 192;
__id788_.duration = 600;
__id788_.frequency = 300;
__id788_.linearDamping = 0;
try {
__id788_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id764__Level41_traps_1(){
try {
__id764_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id764_.addToBackground = false;
__id764_.affectedByGravity = true;
__id764_.angularDamping = 0;
__id764_.convertToBitmap = false;
__id764_.delay = 90;
__id764_.duration = 600;
__id764_.frequency = 300;
__id764_.linearDamping = 0;
try {
__id764_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id740__Level41_traps_1(){
try {
__id740_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id740_.addToBackground = false;
__id740_.affectedByGravity = true;
__id740_.angularDamping = 0;
__id740_.convertToBitmap = false;
__id740_.delay = 58;
__id740_.duration = 600;
__id740_.frequency = 300;
__id740_.linearDamping = 0;
try {
__id740_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id806__Level41_traps_1(){
try {
__id806_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id806_.addToBackground = false;
__id806_.affectedByGravity = true;
__id806_.angularDamping = 0;
__id806_.convertToBitmap = false;
__id806_.delay = 140;
__id806_.duration = 600;
__id806_.frequency = 300;
__id806_.linearDamping = 0;
try {
__id806_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id777__Level41_traps_1(){
try {
__id777_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id777_.addToBackground = false;
__id777_.affectedByGravity = true;
__id777_.angularDamping = 0;
__id777_.convertToBitmap = false;
__id777_.delay = 134;
__id777_.duration = 600;
__id777_.frequency = 300;
__id777_.linearDamping = 0;
try {
__id777_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id753__Level41_traps_1(){
try {
__id753_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id753_.addToBackground = false;
__id753_.affectedByGravity = true;
__id753_.angularDamping = 0;
__id753_.convertToBitmap = false;
__id753_.delay = 88;
__id753_.duration = 600;
__id753_.frequency = 300;
__id753_.linearDamping = 0;
try {
__id753_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id766__Level41_traps_1(){
try {
__id766_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id766_.addToBackground = false;
__id766_.affectedByGravity = true;
__id766_.angularDamping = 0;
__id766_.convertToBitmap = false;
__id766_.delay = 125;
__id766_.duration = 600;
__id766_.frequency = 300;
__id766_.linearDamping = 0;
try {
__id766_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id742__Level41_traps_1(){
try {
__id742_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id742_.addToBackground = false;
__id742_.affectedByGravity = true;
__id742_.angularDamping = 0;
__id742_.convertToBitmap = false;
__id742_.delay = 64;
__id742_.duration = 600;
__id742_.frequency = 300;
__id742_.linearDamping = 0;
try {
__id742_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id755__Level41_traps_1(){
try {
__id755_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id755_.addToBackground = false;
__id755_.affectedByGravity = true;
__id755_.angularDamping = 0;
__id755_.convertToBitmap = false;
__id755_.delay = 108;
__id755_.duration = 600;
__id755_.frequency = 300;
__id755_.linearDamping = 0;
try {
__id755_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id731__Level41_traps_1(){
try {
__id731_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id731_.addToBackground = false;
__id731_.affectedByGravity = true;
__id731_.angularDamping = 0;
__id731_.convertToBitmap = false;
__id731_.delay = 30;
__id731_.duration = 600;
__id731_.frequency = 300;
__id731_.linearDamping = 0;
try {
__id731_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id779__Level41_traps_1(){
try {
__id779_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id779_.addToBackground = false;
__id779_.affectedByGravity = true;
__id779_.angularDamping = 0;
__id779_.convertToBitmap = false;
__id779_.delay = 160;
__id779_.duration = 600;
__id779_.frequency = 300;
__id779_.linearDamping = 0;
try {
__id779_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id768__Level41_traps_1(){
try {
__id768_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id768_.addToBackground = false;
__id768_.affectedByGravity = true;
__id768_.angularDamping = 0;
__id768_.convertToBitmap = false;
__id768_.delay = 158;
__id768_.duration = 600;
__id768_.frequency = 300;
__id768_.linearDamping = 0;
try {
__id768_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id744__Level41_traps_1(){
try {
__id744_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id744_.addToBackground = false;
__id744_.affectedByGravity = true;
__id744_.angularDamping = 0;
__id744_.convertToBitmap = false;
__id744_.delay = 70;
__id744_.duration = 600;
__id744_.frequency = 300;
__id744_.linearDamping = 0;
try {
__id744_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id733__Level41_traps_1(){
try {
__id733_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id733_.addToBackground = false;
__id733_.affectedByGravity = true;
__id733_.angularDamping = 0;
__id733_.convertToBitmap = false;
__id733_.delay = 37;
__id733_.duration = 600;
__id733_.frequency = 300;
__id733_.linearDamping = 0;
try {
__id733_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id720__Level41_Walls_1(){
try {
__id720_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id720_.addToBackground = true;
__id720_.affectedByGravity = true;
__id720_.angularDamping = 0;
__id720_.convertToBitmap = false;
__id720_.linearDamping = 0;
try {
__id720_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id757__Level41_traps_1(){
try {
__id757_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id757_.addToBackground = false;
__id757_.affectedByGravity = true;
__id757_.angularDamping = 0;
__id757_.convertToBitmap = false;
__id757_.delay = 104;
__id757_.duration = 600;
__id757_.frequency = 300;
__id757_.linearDamping = 0;
try {
__id757_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id717__Level41_borderwalls_1(){
try {
__id717_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id717_.addToBackground = true;
__id717_.affectedByGravity = true;
__id717_.angularDamping = 0;
__id717_.convertToBitmap = false;
__id717_.linearDamping = 0;
try {
__id717_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id746__Level41_traps_1(){
try {
__id746_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id746_.addToBackground = false;
__id746_.affectedByGravity = true;
__id746_.angularDamping = 0;
__id746_.convertToBitmap = false;
__id746_.delay = 72;
__id746_.duration = 600;
__id746_.frequency = 300;
__id746_.linearDamping = 0;
try {
__id746_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id790__Level41_traps_1(){
try {
__id790_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id790_.addToBackground = false;
__id790_.affectedByGravity = true;
__id790_.angularDamping = 0;
__id790_.convertToBitmap = false;
__id790_.delay = 196;
__id790_.duration = 600;
__id790_.frequency = 300;
__id790_.linearDamping = 0;
try {
__id790_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id759__Level41_traps_1(){
try {
__id759_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id759_.addToBackground = false;
__id759_.affectedByGravity = true;
__id759_.angularDamping = 0;
__id759_.convertToBitmap = false;
__id759_.delay = 100;
__id759_.duration = 600;
__id759_.frequency = 300;
__id759_.linearDamping = 0;
try {
__id759_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id735__Level41_traps_1(){
try {
__id735_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id735_.addToBackground = false;
__id735_.affectedByGravity = true;
__id735_.angularDamping = 0;
__id735_.convertToBitmap = false;
__id735_.delay = 43;
__id735_.duration = 600;
__id735_.frequency = 300;
__id735_.linearDamping = 0;
try {
__id735_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id722__Level41_Walls_1(){
try {
__id722_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id722_.addToBackground = true;
__id722_.affectedByGravity = true;
__id722_.angularDamping = 0;
__id722_.convertToBitmap = false;
__id722_.linearDamping = 0;
try {
__id722_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id748__Level41_traps_1(){
try {
__id748_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id748_.addToBackground = false;
__id748_.affectedByGravity = true;
__id748_.angularDamping = 0;
__id748_.convertToBitmap = false;
__id748_.delay = 78;
__id748_.duration = 600;
__id748_.frequency = 300;
__id748_.linearDamping = 0;
try {
__id748_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id792__Level41_traps_1(){
try {
__id792_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id792_.addToBackground = false;
__id792_.affectedByGravity = true;
__id792_.angularDamping = 0;
__id792_.convertToBitmap = false;
__id792_.delay = 200;
__id792_.duration = 600;
__id792_.frequency = 300;
__id792_.linearDamping = 0;
try {
__id792_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id737__Level41_traps_1(){
try {
__id737_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id737_.addToBackground = false;
__id737_.affectedByGravity = true;
__id737_.angularDamping = 0;
__id737_.convertToBitmap = false;
__id737_.delay = 49;
__id737_.duration = 600;
__id737_.frequency = 300;
__id737_.linearDamping = 0;
try {
__id737_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id781__Level41_traps_1(){
try {
__id781_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id781_.addToBackground = false;
__id781_.affectedByGravity = true;
__id781_.angularDamping = 0;
__id781_.convertToBitmap = false;
__id781_.delay = 164;
__id781_.duration = 600;
__id781_.frequency = 300;
__id781_.linearDamping = 0;
try {
__id781_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id794__Level41_traps_1(){
try {
__id794_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id794_.addToBackground = false;
__id794_.affectedByGravity = true;
__id794_.angularDamping = 0;
__id794_.convertToBitmap = false;
__id794_.delay = 204;
__id794_.duration = 600;
__id794_.frequency = 300;
__id794_.linearDamping = 0;
try {
__id794_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id770__Level41_traps_1(){
try {
__id770_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id770_.addToBackground = false;
__id770_.affectedByGravity = true;
__id770_.angularDamping = 0;
__id770_.convertToBitmap = false;
__id770_.delay = 154;
__id770_.duration = 600;
__id770_.frequency = 300;
__id770_.linearDamping = 0;
try {
__id770_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id739__Level41_traps_1(){
try {
__id739_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id739_.addToBackground = false;
__id739_.affectedByGravity = true;
__id739_.angularDamping = 0;
__id739_.convertToBitmap = false;
__id739_.delay = 55;
__id739_.duration = 600;
__id739_.frequency = 300;
__id739_.linearDamping = 0;
try {
__id739_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id783__Level41_traps_1(){
try {
__id783_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id783_.addToBackground = false;
__id783_.affectedByGravity = true;
__id783_.angularDamping = 0;
__id783_.convertToBitmap = false;
__id783_.delay = 168;
__id783_.duration = 600;
__id783_.frequency = 300;
__id783_.linearDamping = 0;
try {
__id783_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id726__Level41_Walls_1(){
try {
__id726_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id726_.addToBackground = true;
__id726_.affectedByGravity = true;
__id726_.angularDamping = 0;
__id726_.convertToBitmap = false;
__id726_.linearDamping = 0;
try {
__id726_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id728__Level41_traps_1(){
try {
__id728_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id728_.addToBackground = false;
__id728_.affectedByGravity = true;
__id728_.angularDamping = 0;
__id728_.convertToBitmap = false;
__id728_.delay = 15;
__id728_.duration = 600;
__id728_.frequency = 300;
__id728_.linearDamping = 0;
try {
__id728_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id796__Level41_traps_1(){
try {
__id796_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id796_.addToBackground = false;
__id796_.affectedByGravity = true;
__id796_.angularDamping = 0;
__id796_.convertToBitmap = false;
__id796_.delay = 208;
__id796_.duration = 600;
__id796_.frequency = 300;
__id796_.linearDamping = 0;
try {
__id796_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id772__Level41_traps_1(){
try {
__id772_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id772_.addToBackground = false;
__id772_.affectedByGravity = true;
__id772_.angularDamping = 0;
__id772_.convertToBitmap = false;
__id772_.delay = 149;
__id772_.duration = 600;
__id772_.frequency = 300;
__id772_.linearDamping = 0;
try {
__id772_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id801__Level41_traps_1(){
try {
__id801_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id801_.addToBackground = false;
__id801_.affectedByGravity = true;
__id801_.angularDamping = 0;
__id801_.convertToBitmap = false;
__id801_.delay = 218;
__id801_.duration = 600;
__id801_.frequency = 300;
__id801_.linearDamping = 0;
try {
__id801_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id785__Level41_traps_1(){
try {
__id785_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id785_.addToBackground = false;
__id785_.affectedByGravity = true;
__id785_.angularDamping = 0;
__id785_.convertToBitmap = false;
__id785_.delay = 180;
__id785_.duration = 600;
__id785_.frequency = 300;
__id785_.linearDamping = 0;
try {
__id785_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id761__Level41_traps_1(){
try {
__id761_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id761_.addToBackground = false;
__id761_.affectedByGravity = true;
__id761_.angularDamping = 0;
__id761_.convertToBitmap = false;
__id761_.delay = 96;
__id761_.duration = 600;
__id761_.frequency = 300;
__id761_.linearDamping = 0;
try {
__id761_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id803__Level41_traps_1(){
try {
__id803_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id803_.addToBackground = false;
__id803_.affectedByGravity = true;
__id803_.angularDamping = 0;
__id803_.convertToBitmap = false;
__id803_.delay = 222;
__id803_.duration = 600;
__id803_.frequency = 300;
__id803_.linearDamping = 0;
try {
__id803_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id798__Level41_traps_1(){
try {
__id798_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id798_.addToBackground = false;
__id798_.affectedByGravity = true;
__id798_.angularDamping = 0;
__id798_.convertToBitmap = false;
__id798_.delay = 212;
__id798_.duration = 600;
__id798_.frequency = 300;
__id798_.linearDamping = 0;
try {
__id798_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id774__Level41_traps_1(){
try {
__id774_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id774_.addToBackground = false;
__id774_.affectedByGravity = true;
__id774_.angularDamping = 0;
__id774_.convertToBitmap = false;
__id774_.delay = 143;
__id774_.duration = 600;
__id774_.frequency = 300;
__id774_.linearDamping = 0;
try {
__id774_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id750__Level41_traps_1(){
try {
__id750_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id750_.addToBackground = false;
__id750_.affectedByGravity = true;
__id750_.angularDamping = 0;
__id750_.convertToBitmap = false;
__id750_.delay = 82;
__id750_.duration = 600;
__id750_.frequency = 300;
__id750_.linearDamping = 0;
try {
__id750_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id787__Level41_traps_1(){
try {
__id787_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id787_.addToBackground = false;
__id787_.affectedByGravity = true;
__id787_.angularDamping = 0;
__id787_.convertToBitmap = false;
__id787_.delay = 190;
__id787_.duration = 600;
__id787_.frequency = 300;
__id787_.linearDamping = 0;
try {
__id787_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id763__Level41_traps_1(){
try {
__id763_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id763_.addToBackground = false;
__id763_.affectedByGravity = true;
__id763_.angularDamping = 0;
__id763_.convertToBitmap = false;
__id763_.delay = 92;
__id763_.duration = 600;
__id763_.frequency = 300;
__id763_.linearDamping = 0;
try {
__id763_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id805__Level41_traps_1(){
try {
__id805_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id805_.addToBackground = false;
__id805_.affectedByGravity = true;
__id805_.angularDamping = 0;
__id805_.convertToBitmap = false;
__id805_.delay = 34;
__id805_.duration = 600;
__id805_.frequency = 300;
__id805_.linearDamping = 0;
try {
__id805_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id776__Level41_traps_1(){
try {
__id776_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id776_.addToBackground = false;
__id776_.affectedByGravity = true;
__id776_.angularDamping = 0;
__id776_.convertToBitmap = false;
__id776_.delay = 137;
__id776_.duration = 600;
__id776_.frequency = 300;
__id776_.linearDamping = 0;
try {
__id776_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id752__Level41_traps_1(){
try {
__id752_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id752_.addToBackground = false;
__id752_.affectedByGravity = true;
__id752_.angularDamping = 0;
__id752_.convertToBitmap = false;
__id752_.delay = 86;
__id752_.duration = 600;
__id752_.frequency = 300;
__id752_.linearDamping = 0;
try {
__id752_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id789__Level41_traps_1(){
try {
__id789_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id789_.addToBackground = false;
__id789_.affectedByGravity = true;
__id789_.angularDamping = 0;
__id789_.convertToBitmap = false;
__id789_.delay = 194;
__id789_.duration = 600;
__id789_.frequency = 300;
__id789_.linearDamping = 0;
try {
__id789_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id765__Level41_traps_1(){
try {
__id765_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id765_.addToBackground = false;
__id765_.affectedByGravity = true;
__id765_.angularDamping = 0;
__id765_.convertToBitmap = false;
__id765_.delay = 120;
__id765_.duration = 600;
__id765_.frequency = 300;
__id765_.linearDamping = 0;
try {
__id765_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id741__Level41_traps_1(){
try {
__id741_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id741_.addToBackground = false;
__id741_.affectedByGravity = true;
__id741_.angularDamping = 0;
__id741_.convertToBitmap = false;
__id741_.delay = 61;
__id741_.duration = 600;
__id741_.frequency = 300;
__id741_.linearDamping = 0;
try {
__id741_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id807__Level41_traps_1(){
try {
__id807_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id807_.addToBackground = false;
__id807_.affectedByGravity = true;
__id807_.angularDamping = 0;
__id807_.convertToBitmap = false;
__id807_.delay = 80;
__id807_.duration = 600;
__id807_.frequency = 300;
__id807_.linearDamping = 0;
try {
__id807_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id778__Level41_traps_1(){
try {
__id778_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id778_.addToBackground = false;
__id778_.affectedByGravity = true;
__id778_.angularDamping = 0;
__id778_.convertToBitmap = false;
__id778_.delay = 130;
__id778_.duration = 600;
__id778_.frequency = 300;
__id778_.linearDamping = 0;
try {
__id778_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id754__Level41_traps_1(){
try {
__id754_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id754_.addToBackground = false;
__id754_.affectedByGravity = true;
__id754_.angularDamping = 0;
__id754_.convertToBitmap = false;
__id754_.delay = 110;
__id754_.duration = 600;
__id754_.frequency = 300;
__id754_.linearDamping = 0;
try {
__id754_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id730__Level41_traps_1(){
try {
__id730_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id730_.addToBackground = false;
__id730_.affectedByGravity = true;
__id730_.angularDamping = 0;
__id730_.convertToBitmap = false;
__id730_.delay = 25;
__id730_.duration = 600;
__id730_.frequency = 300;
__id730_.linearDamping = 0;
try {
__id730_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id767__Level41_traps_1(){
try {
__id767_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id767_.addToBackground = false;
__id767_.affectedByGravity = true;
__id767_.angularDamping = 0;
__id767_.convertToBitmap = false;
__id767_.delay = 115;
__id767_.duration = 600;
__id767_.frequency = 300;
__id767_.linearDamping = 0;
try {
__id767_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id743__Level41_traps_1(){
try {
__id743_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id743_.addToBackground = false;
__id743_.affectedByGravity = true;
__id743_.angularDamping = 0;
__id743_.convertToBitmap = false;
__id743_.delay = 67;
__id743_.duration = 600;
__id743_.frequency = 300;
__id743_.linearDamping = 0;
try {
__id743_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id719__Level41_borderwalls_1(){
try {
__id719_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id719_.addToBackground = true;
__id719_.affectedByGravity = true;
__id719_.angularDamping = 0;
__id719_.convertToBitmap = false;
__id719_.linearDamping = 0;
try {
__id719_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id756__Level41_traps_1(){
try {
__id756_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id756_.addToBackground = false;
__id756_.affectedByGravity = true;
__id756_.angularDamping = 0;
__id756_.convertToBitmap = false;
__id756_.delay = 106;
__id756_.duration = 600;
__id756_.frequency = 300;
__id756_.linearDamping = 0;
try {
__id756_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id732__Level41_traps_1(){
try {
__id732_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id732_.addToBackground = false;
__id732_.affectedByGravity = true;
__id732_.angularDamping = 0;
__id732_.convertToBitmap = false;
__id732_.delay = 34;
__id732_.duration = 600;
__id732_.frequency = 300;
__id732_.linearDamping = 0;
try {
__id732_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id769__Level41_traps_1(){
try {
__id769_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id769_.addToBackground = false;
__id769_.affectedByGravity = true;
__id769_.angularDamping = 0;
__id769_.convertToBitmap = false;
__id769_.delay = 156;
__id769_.duration = 600;
__id769_.frequency = 300;
__id769_.linearDamping = 0;
try {
__id769_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id745__Level41_traps_1(){
try {
__id745_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id745_.addToBackground = false;
__id745_.affectedByGravity = true;
__id745_.angularDamping = 0;
__id745_.convertToBitmap = false;
__id745_.delay = 74;
__id745_.duration = 600;
__id745_.frequency = 300;
__id745_.linearDamping = 0;
try {
__id745_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id758__Level41_traps_1(){
try {
__id758_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id758_.addToBackground = false;
__id758_.affectedByGravity = true;
__id758_.angularDamping = 0;
__id758_.convertToBitmap = false;
__id758_.delay = 102;
__id758_.duration = 600;
__id758_.frequency = 300;
__id758_.linearDamping = 0;
try {
__id758_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id734__Level41_traps_1(){
try {
__id734_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id734_.addToBackground = false;
__id734_.affectedByGravity = true;
__id734_.angularDamping = 0;
__id734_.convertToBitmap = false;
__id734_.delay = 40;
__id734_.duration = 600;
__id734_.frequency = 300;
__id734_.linearDamping = 0;
try {
__id734_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id747__Level41_traps_1(){
try {
__id747_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id747_.addToBackground = false;
__id747_.affectedByGravity = true;
__id747_.angularDamping = 0;
__id747_.convertToBitmap = false;
__id747_.delay = 76;
__id747_.duration = 600;
__id747_.frequency = 300;
__id747_.linearDamping = 0;
try {
__id747_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id791__Level41_traps_1(){
try {
__id791_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id791_.addToBackground = false;
__id791_.affectedByGravity = true;
__id791_.angularDamping = 0;
__id791_.convertToBitmap = false;
__id791_.delay = 198;
__id791_.duration = 600;
__id791_.frequency = 300;
__id791_.linearDamping = 0;
try {
__id791_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id736__Level41_traps_1(){
try {
__id736_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id736_.addToBackground = false;
__id736_.affectedByGravity = true;
__id736_.angularDamping = 0;
__id736_.convertToBitmap = false;
__id736_.delay = 46;
__id736_.duration = 600;
__id736_.frequency = 300;
__id736_.linearDamping = 0;
try {
__id736_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id723__Level41_Walls_1(){
try {
__id723_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id723_.addToBackground = true;
__id723_.affectedByGravity = true;
__id723_.angularDamping = 0;
__id723_.convertToBitmap = false;
__id723_.linearDamping = 0;
try {
__id723_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id780__Level41_traps_1(){
try {
__id780_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id780_.addToBackground = false;
__id780_.affectedByGravity = true;
__id780_.angularDamping = 0;
__id780_.convertToBitmap = false;
__id780_.delay = 162;
__id780_.duration = 600;
__id780_.frequency = 300;
__id780_.linearDamping = 0;
try {
__id780_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id749__Level41_traps_1(){
try {
__id749_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id749_.addToBackground = false;
__id749_.affectedByGravity = true;
__id749_.angularDamping = 0;
__id749_.convertToBitmap = false;
__id749_.delay = 80;
__id749_.duration = 600;
__id749_.frequency = 300;
__id749_.linearDamping = 0;
try {
__id749_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id793__Level41_traps_1(){
try {
__id793_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id793_.addToBackground = false;
__id793_.affectedByGravity = true;
__id793_.angularDamping = 0;
__id793_.convertToBitmap = false;
__id793_.delay = 202;
__id793_.duration = 600;
__id793_.frequency = 300;
__id793_.linearDamping = 0;
try {
__id793_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id738__Level41_traps_1(){
try {
__id738_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id738_.addToBackground = false;
__id738_.affectedByGravity = true;
__id738_.angularDamping = 0;
__id738_.convertToBitmap = false;
__id738_.delay = 52;
__id738_.duration = 600;
__id738_.frequency = 300;
__id738_.linearDamping = 0;
try {
__id738_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id782__Level41_traps_1(){
try {
__id782_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id782_.addToBackground = false;
__id782_.affectedByGravity = true;
__id782_.angularDamping = 0;
__id782_.convertToBitmap = false;
__id782_.delay = 166;
__id782_.duration = 600;
__id782_.frequency = 300;
__id782_.linearDamping = 0;
try {
__id782_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 250
//Level42 (Level42)
package {
import Game.*;
public dynamic class Level42 extends GameLevel {
public var __id831_:RepeatingPrismaticJoint;
public var __id832_:RevoJoint;
public var __id833_:RepeatingPrismaticJoint;
public var __id834_:RepeatingPrismaticJoint;
public var __id810_:Pared;
public var __id835_:RepeatingPrismaticJoint;
public var __id811_:Pared;
public var __id836_:RepeatingPrismaticJoint;
public var __id812_:BloqueBreakable;
public var __id837_:RepeatingPrismaticJoint;
public var __id827_:RepeatingPrismaticJoint;
public var __id815_:BloqueMovilNivel42;
public var __id828_:RepeatingPrismaticJoint;
public var __id816_:PrismaticJoint;
public var __id829_:RepeatingPrismaticJoint;
public var __id808_:Pared;
public var __id809_:Pared;
public var __id830_:RepeatingPrismaticJoint;
public function Level42(){
__setProp___id829__Level42_joints_1();
__setProp___id837__Level42_joints_1();
__setProp___id815__Level42_MovingWalls_1();
__setProp___id810__Level42_borderwalls_1();
__setProp___id811__Level42_borderwalls_1();
__setProp___id831__Level42_joints_1();
__setProp___id808__Level42_borderwalls_1();
__setProp___id832__Level42_joints_1();
__setProp___id809__Level42_borderwalls_1();
__setProp___id834__Level42_joints_1();
__setProp___id828__Level42_joints_1();
__setProp___id830__Level42_joints_1();
__setProp___id812__Level42_Walls_1();
__setProp___id836__Level42_joints_1();
__setProp___id833__Level42_joints_1();
__setProp___id835__Level42_joints_1();
__setProp___id827__Level42_joints_1();
__setProp___id816__Level42_traps_1();
}
function __setProp___id836__Level42_joints_1(){
try {
__id836_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id836_.delay = 60;
__id836_.force = 10000;
__id836_.forceResistance = 0;
__id836_.recoilSpeed = -2;
__id836_.speed = 2;
__id836_.torqueResistance = 0;
__id836_.useGround = true;
try {
__id836_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id815__Level42_MovingWalls_1(){
try {
__id815_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id815_.addToBackground = false;
__id815_.affectedByGravity = false;
__id815_.angularDamping = 0;
__id815_.convertToBitmap = true;
__id815_.linearDamping = 0;
__id815_.removeGraphic = false;
try {
__id815_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id835__Level42_joints_1(){
try {
__id835_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id835_.delay = 40;
__id835_.force = 10000;
__id835_.forceResistance = 0;
__id835_.recoilSpeed = -2;
__id835_.speed = 2;
__id835_.torqueResistance = 0;
__id835_.useGround = true;
try {
__id835_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id808__Level42_borderwalls_1(){
try {
__id808_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id808_.addToBackground = true;
__id808_.affectedByGravity = true;
__id808_.angularDamping = 0;
__id808_.convertToBitmap = false;
__id808_.linearDamping = 0;
try {
__id808_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id810__Level42_borderwalls_1(){
try {
__id810_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id810_.addToBackground = true;
__id810_.affectedByGravity = true;
__id810_.angularDamping = 0;
__id810_.convertToBitmap = false;
__id810_.linearDamping = 0;
try {
__id810_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id834__Level42_joints_1(){
try {
__id834_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id834_.delay = 20;
__id834_.force = 10000;
__id834_.forceResistance = 0;
__id834_.recoilSpeed = -2;
__id834_.speed = 2;
__id834_.torqueResistance = 0;
__id834_.useGround = true;
try {
__id834_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id833__Level42_joints_1(){
try {
__id833_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id833_.delay = 0;
__id833_.force = 10000;
__id833_.forceResistance = 0;
__id833_.recoilSpeed = -2;
__id833_.speed = 2;
__id833_.torqueResistance = 0;
__id833_.useGround = true;
try {
__id833_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id829__Level42_joints_1(){
try {
__id829_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id829_.delay = 40;
__id829_.force = 10000;
__id829_.forceResistance = 0;
__id829_.recoilSpeed = -2;
__id829_.speed = 2;
__id829_.torqueResistance = 0;
__id829_.useGround = true;
try {
__id829_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id832__Level42_joints_1(){
try {
__id832_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id832_.forceResistance = 0;
__id832_.speed = 0.2;
__id832_.torque = 10000;
__id832_.torqueResistance = 0;
__id832_.useGround = false;
try {
__id832_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id812__Level42_Walls_1(){
try {
__id812_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id812_.addToBackground = false;
__id812_.affectedByGravity = true;
__id812_.angularDamping = 0;
__id812_.convertToBitmap = true;
__id812_.linearDamping = 0;
__id812_.removeGraphic = false;
try {
__id812_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id828__Level42_joints_1(){
try {
__id828_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id828_.delay = 20;
__id828_.force = 10000;
__id828_.forceResistance = 0;
__id828_.recoilSpeed = -2;
__id828_.speed = 2;
__id828_.torqueResistance = 0;
__id828_.useGround = true;
try {
__id828_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id831__Level42_joints_1(){
try {
__id831_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id831_.delay = 80;
__id831_.force = 10000;
__id831_.forceResistance = 0;
__id831_.recoilSpeed = -2;
__id831_.speed = 2;
__id831_.torqueResistance = 0;
__id831_.useGround = true;
try {
__id831_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id811__Level42_borderwalls_1(){
try {
__id811_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id811_.addToBackground = true;
__id811_.affectedByGravity = true;
__id811_.angularDamping = 0;
__id811_.convertToBitmap = false;
__id811_.linearDamping = 0;
try {
__id811_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id809__Level42_borderwalls_1(){
try {
__id809_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id809_.addToBackground = true;
__id809_.affectedByGravity = true;
__id809_.angularDamping = 0;
__id809_.convertToBitmap = false;
__id809_.linearDamping = 0;
try {
__id809_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id816__Level42_traps_1(){
try {
__id816_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id816_.force = 10000;
__id816_.forceResistance = 0;
__id816_.speed = 0.18;
__id816_.torqueResistance = 0;
__id816_.useGround = true;
try {
__id816_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id827__Level42_joints_1(){
try {
__id827_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id827_.delay = 0;
__id827_.force = 10000;
__id827_.forceResistance = 0;
__id827_.recoilSpeed = -2;
__id827_.speed = 2;
__id827_.torqueResistance = 0;
__id827_.useGround = true;
try {
__id827_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id830__Level42_joints_1(){
try {
__id830_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id830_.delay = 60;
__id830_.force = 10000;
__id830_.forceResistance = 0;
__id830_.recoilSpeed = -2;
__id830_.speed = 2;
__id830_.torqueResistance = 0;
__id830_.useGround = true;
try {
__id830_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id837__Level42_joints_1(){
try {
__id837_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id837_.delay = 80;
__id837_.force = 10000;
__id837_.forceResistance = 0;
__id837_.recoilSpeed = -2;
__id837_.speed = 2;
__id837_.torqueResistance = 0;
__id837_.useGround = true;
try {
__id837_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 251
//Level43 (Level43)
package {
import Game.*;
public dynamic class Level43 extends GameLevel {
public var __id843_:Pared;
public var __id855_:Pared;
public var __id856_:Pared;
public var __id844_:Pared;
public var __id845_:Pared;
public var __id857_:Pared;
public var __id858_:Pared;
public var __id846_:Pared;
public var __id847_:Pared;
public var __id848_:Pared;
public var __id849_:Pared;
public var __id839_:Pared;
public var __id861_:LaserGiratorio;
public var __id862_:RevoJoint;
public var __id850_:Pared;
public var __id851_:Pared;
public var __id840_:Pared;
public var __id852_:Pared;
public var __id841_:Pared;
public var __id853_:Pared;
public var __id854_:Pared;
public var __id842_:Pared;
public function Level43(){
__setProp___id861__Level43_Objects_1();
__setProp___id858__Level43_Walls_1();
__setProp___id848__Level43_Walls_1();
__setProp___id849__Level43_Walls_1();
__setProp___id840__Level43_Walls_1();
__setProp___id850__Level43_Walls_1();
__setProp___id841__Level43_Walls_1();
__setProp___id862__Level43_Objects_1();
__setProp___id851__Level43_Walls_1();
__setProp___id842__Level43_Walls_1();
__setProp___id852__Level43_Walls_1();
__setProp___id843__Level43_Walls_1();
__setProp___id853__Level43_Walls_1();
__setProp___id844__Level43_Walls_1();
__setProp___id854__Level43_Walls_1();
__setProp___id845__Level43_Walls_1();
__setProp___id855__Level43_Walls_1();
__setProp___id846__Level43_Walls_1();
__setProp___id856__Level43_Walls_1();
__setProp___id847__Level43_Walls_1();
__setProp___id857__Level43_Walls_1();
__setProp___id839__Level43_Walls_1();
}
function __setProp___id846__Level43_Walls_1(){
try {
__id846_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id846_.addToBackground = true;
__id846_.affectedByGravity = true;
__id846_.angularDamping = 0;
__id846_.convertToBitmap = false;
__id846_.linearDamping = 0;
try {
__id846_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id847__Level43_Walls_1(){
try {
__id847_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id847_.addToBackground = true;
__id847_.affectedByGravity = true;
__id847_.angularDamping = 0;
__id847_.convertToBitmap = false;
__id847_.linearDamping = 0;
try {
__id847_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id862__Level43_Objects_1(){
try {
__id862_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id862_.forceResistance = 0;
__id862_.speed = 0.3;
__id862_.torque = 100000;
__id862_.torqueResistance = 0;
__id862_.useGround = false;
try {
__id862_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id848__Level43_Walls_1(){
try {
__id848_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id848_.addToBackground = true;
__id848_.affectedByGravity = true;
__id848_.angularDamping = 0;
__id848_.convertToBitmap = false;
__id848_.linearDamping = 0;
try {
__id848_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id849__Level43_Walls_1(){
try {
__id849_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id849_.addToBackground = true;
__id849_.affectedByGravity = true;
__id849_.angularDamping = 0;
__id849_.convertToBitmap = false;
__id849_.linearDamping = 0;
try {
__id849_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id839__Level43_Walls_1(){
try {
__id839_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id839_.addToBackground = true;
__id839_.affectedByGravity = true;
__id839_.angularDamping = 0;
__id839_.convertToBitmap = false;
__id839_.linearDamping = 0;
try {
__id839_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id850__Level43_Walls_1(){
try {
__id850_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id850_.addToBackground = true;
__id850_.affectedByGravity = true;
__id850_.angularDamping = 0;
__id850_.convertToBitmap = false;
__id850_.linearDamping = 0;
try {
__id850_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id851__Level43_Walls_1(){
try {
__id851_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id851_.addToBackground = true;
__id851_.affectedByGravity = true;
__id851_.angularDamping = 0;
__id851_.convertToBitmap = false;
__id851_.linearDamping = 0;
try {
__id851_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id852__Level43_Walls_1(){
try {
__id852_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id852_.addToBackground = true;
__id852_.affectedByGravity = true;
__id852_.angularDamping = 0;
__id852_.convertToBitmap = false;
__id852_.linearDamping = 0;
try {
__id852_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id840__Level43_Walls_1(){
try {
__id840_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id840_.addToBackground = true;
__id840_.affectedByGravity = true;
__id840_.angularDamping = 0;
__id840_.convertToBitmap = false;
__id840_.linearDamping = 0;
try {
__id840_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id841__Level43_Walls_1(){
try {
__id841_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id841_.addToBackground = true;
__id841_.affectedByGravity = true;
__id841_.angularDamping = 0;
__id841_.convertToBitmap = false;
__id841_.linearDamping = 0;
try {
__id841_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id853__Level43_Walls_1(){
try {
__id853_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id853_.addToBackground = true;
__id853_.affectedByGravity = true;
__id853_.angularDamping = 0;
__id853_.convertToBitmap = false;
__id853_.linearDamping = 0;
try {
__id853_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id854__Level43_Walls_1(){
try {
__id854_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id854_.addToBackground = true;
__id854_.affectedByGravity = true;
__id854_.angularDamping = 0;
__id854_.convertToBitmap = false;
__id854_.linearDamping = 0;
try {
__id854_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id842__Level43_Walls_1(){
try {
__id842_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id842_.addToBackground = true;
__id842_.affectedByGravity = true;
__id842_.angularDamping = 0;
__id842_.convertToBitmap = false;
__id842_.linearDamping = 0;
try {
__id842_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id855__Level43_Walls_1(){
try {
__id855_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id855_.addToBackground = true;
__id855_.affectedByGravity = true;
__id855_.angularDamping = 0;
__id855_.convertToBitmap = false;
__id855_.linearDamping = 0;
try {
__id855_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id843__Level43_Walls_1(){
try {
__id843_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id843_.addToBackground = true;
__id843_.affectedByGravity = true;
__id843_.angularDamping = 0;
__id843_.convertToBitmap = false;
__id843_.linearDamping = 0;
try {
__id843_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id856__Level43_Walls_1(){
try {
__id856_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id856_.addToBackground = true;
__id856_.affectedByGravity = true;
__id856_.angularDamping = 0;
__id856_.convertToBitmap = false;
__id856_.linearDamping = 0;
try {
__id856_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id844__Level43_Walls_1(){
try {
__id844_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id844_.addToBackground = true;
__id844_.affectedByGravity = true;
__id844_.angularDamping = 0;
__id844_.convertToBitmap = false;
__id844_.linearDamping = 0;
try {
__id844_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id861__Level43_Objects_1(){
try {
__id861_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id861_.addToBackground = false;
__id861_.affectedByGravity = true;
__id861_.angularDamping = 0;
__id861_.convertToBitmap = true;
__id861_.linearDamping = 0;
__id861_.removeGraphic = false;
try {
__id861_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id857__Level43_Walls_1(){
try {
__id857_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id857_.addToBackground = true;
__id857_.affectedByGravity = true;
__id857_.angularDamping = 0;
__id857_.convertToBitmap = false;
__id857_.linearDamping = 0;
try {
__id857_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id845__Level43_Walls_1(){
try {
__id845_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id845_.addToBackground = true;
__id845_.affectedByGravity = true;
__id845_.angularDamping = 0;
__id845_.convertToBitmap = false;
__id845_.linearDamping = 0;
try {
__id845_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id858__Level43_Walls_1(){
try {
__id858_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id858_.addToBackground = true;
__id858_.affectedByGravity = true;
__id858_.angularDamping = 0;
__id858_.convertToBitmap = false;
__id858_.linearDamping = 0;
try {
__id858_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 252
//Level44 (Level44)
package {
import Game.*;
public dynamic class Level44 extends GameLevel {
public var __id870_:FlameMC;
public var __id871_:FlameMC;
public var __id867_:Pared;
public var __id872_:FlameMC;
public var __id868_:Pared;
public var __id869_:CirculoMovilNivel24;
public var __id873_:RevoJoint;
public var __id864_:Pared;
public var __id863_:Pared;
public var __id865_:Pared;
public var __id866_:Pared;
public function Level44(){
__setProp___id873__Level44_Objects_1();
__setProp___id872__Level44_traps_1();
__setProp___id869__Level44_MovingWalls_1();
__setProp___id863__Level44_borderwalls_1();
__setProp___id864__Level44_borderwalls_1();
__setProp___id865__Level44_borderwalls_1();
__setProp___id871__Level44_traps_1();
__setProp___id870__Level44_traps_1();
__setProp___id866__Level44_borderwalls_1();
__setProp___id867__Level44_Walls_1();
__setProp___id868__Level44_Walls_1();
}
function __setProp___id870__Level44_traps_1(){
try {
__id870_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id870_.addToBackground = false;
__id870_.affectedByGravity = true;
__id870_.angularDamping = 0;
__id870_.convertToBitmap = false;
__id870_.delay = 0;
__id870_.duration = 1000000;
__id870_.frequency = 1000000;
__id870_.linearDamping = 0;
try {
__id870_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id866__Level44_borderwalls_1(){
try {
__id866_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id866_.addToBackground = true;
__id866_.affectedByGravity = true;
__id866_.angularDamping = 0;
__id866_.convertToBitmap = false;
__id866_.linearDamping = 0;
try {
__id866_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id869__Level44_MovingWalls_1(){
try {
__id869_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id869_.addToBackground = false;
__id869_.affectedByGravity = false;
__id869_.angularDamping = 0;
__id869_.convertToBitmap = true;
__id869_.linearDamping = 0;
try {
__id869_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id871__Level44_traps_1(){
try {
__id871_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id871_.addToBackground = false;
__id871_.affectedByGravity = true;
__id871_.angularDamping = 0;
__id871_.convertToBitmap = false;
__id871_.delay = 0;
__id871_.duration = 1000000;
__id871_.frequency = 1000000;
__id871_.linearDamping = 0;
try {
__id871_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id865__Level44_borderwalls_1(){
try {
__id865_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id865_.addToBackground = true;
__id865_.affectedByGravity = true;
__id865_.angularDamping = 0;
__id865_.convertToBitmap = false;
__id865_.linearDamping = 0;
try {
__id865_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id872__Level44_traps_1(){
try {
__id872_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id872_.addToBackground = false;
__id872_.affectedByGravity = true;
__id872_.angularDamping = 0;
__id872_.convertToBitmap = false;
__id872_.delay = 0;
__id872_.duration = 1000000;
__id872_.frequency = 1000000;
__id872_.linearDamping = 0;
try {
__id872_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id864__Level44_borderwalls_1(){
try {
__id864_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id864_.addToBackground = true;
__id864_.affectedByGravity = true;
__id864_.angularDamping = 0;
__id864_.convertToBitmap = false;
__id864_.linearDamping = 0;
try {
__id864_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id868__Level44_Walls_1(){
try {
__id868_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id868_.addToBackground = true;
__id868_.affectedByGravity = true;
__id868_.angularDamping = 0;
__id868_.convertToBitmap = false;
__id868_.linearDamping = 0;
try {
__id868_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id867__Level44_Walls_1(){
try {
__id867_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id867_.addToBackground = true;
__id867_.affectedByGravity = true;
__id867_.angularDamping = 0;
__id867_.convertToBitmap = false;
__id867_.linearDamping = 0;
try {
__id867_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id873__Level44_Objects_1(){
try {
__id873_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id873_.forceResistance = 0;
__id873_.speed = -0.12;
__id873_.torque = 100000;
__id873_.torqueResistance = 0;
__id873_.useGround = true;
try {
__id873_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id863__Level44_borderwalls_1(){
try {
__id863_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id863_.addToBackground = true;
__id863_.affectedByGravity = true;
__id863_.angularDamping = 0;
__id863_.convertToBitmap = false;
__id863_.linearDamping = 0;
try {
__id863_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 253
//Level6 (Level6)
package {
import Game.*;
public dynamic class Level6 extends GameLevel {
public var __id326_:Pared;
public var __id327_:Pared;
public var __id325_:Pared;
public var __id360_:RevoJoint;
public var __id358_:Octagono;
public var __id323_:Pared;
public var __id359_:RevoJoint;
public var __id324_:Pared;
public function Level6(){
__setProp___id325__Level6_borderwalls_1();
__setProp___id358__Level6_MovingWalls_1();
__setProp___id324__Level6_borderwalls_1();
__setProp___id359__Level6_Objects_1();
__setProp___id360__Level6_Objects_1();
__setProp___id323__Level6_borderwalls_1();
__setProp___id327__Level6_Walls_1();
__setProp___id326__Level6_borderwalls_1();
}
function __setProp___id324__Level6_borderwalls_1(){
try {
__id324_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id324_.addToBackground = true;
__id324_.affectedByGravity = true;
__id324_.angularDamping = 0;
__id324_.convertToBitmap = false;
__id324_.linearDamping = 0;
try {
__id324_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id358__Level6_MovingWalls_1(){
try {
__id358_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id358_.addToBackground = false;
__id358_.affectedByGravity = false;
__id358_.angularDamping = 0;
__id358_.convertToBitmap = true;
__id358_.linearDamping = 0;
try {
__id358_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id325__Level6_borderwalls_1(){
try {
__id325_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id325_.addToBackground = true;
__id325_.affectedByGravity = true;
__id325_.angularDamping = 0;
__id325_.convertToBitmap = false;
__id325_.linearDamping = 0;
try {
__id325_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id359__Level6_Objects_1(){
try {
__id359_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id359_.forceResistance = 0;
__id359_.speed = -0.5;
__id359_.torque = 10000;
__id359_.torqueResistance = 0;
__id359_.useGround = true;
try {
__id359_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id323__Level6_borderwalls_1(){
try {
__id323_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id323_.addToBackground = true;
__id323_.affectedByGravity = true;
__id323_.angularDamping = 0;
__id323_.convertToBitmap = false;
__id323_.linearDamping = 0;
try {
__id323_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id326__Level6_borderwalls_1(){
try {
__id326_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id326_.addToBackground = true;
__id326_.affectedByGravity = true;
__id326_.angularDamping = 0;
__id326_.convertToBitmap = false;
__id326_.linearDamping = 0;
try {
__id326_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id327__Level6_Walls_1(){
try {
__id327_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id327_.addToBackground = true;
__id327_.affectedByGravity = true;
__id327_.angularDamping = 0;
__id327_.convertToBitmap = false;
__id327_.linearDamping = 0;
try {
__id327_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id360__Level6_Objects_1(){
try {
__id360_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id360_.forceResistance = 0;
__id360_.speed = 0.5;
__id360_.torque = 2000;
__id360_.torqueResistance = 0;
__id360_.useGround = false;
try {
__id360_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 254
//Level9 (Level9)
package {
import Game.*;
public dynamic class Level9 extends GameLevel {
public var __id370_:RotorNivel9;
public var __id371_:RevoJoint;
public var __id361_:Pared;
public var __id362_:Pared;
public var __id363_:Pared;
public var __id364_:Pared;
public function Level9(){
__setProp___id370__Level9_MovingWalls_1();
__setProp___id363__Level9_borderwalls_1();
__setProp___id362__Level9_borderwalls_1();
__setProp___id361__Level9_borderwalls_1();
__setProp___id364__Level9_borderwalls_1();
__setProp___id371__Level9_Objects_1();
}
function __setProp___id363__Level9_borderwalls_1(){
try {
__id363_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id363_.addToBackground = true;
__id363_.affectedByGravity = true;
__id363_.angularDamping = 0;
__id363_.convertToBitmap = false;
__id363_.linearDamping = 0;
try {
__id363_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id364__Level9_borderwalls_1(){
try {
__id364_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id364_.addToBackground = true;
__id364_.affectedByGravity = true;
__id364_.angularDamping = 0;
__id364_.convertToBitmap = false;
__id364_.linearDamping = 0;
try {
__id364_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id370__Level9_MovingWalls_1(){
try {
__id370_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id370_.addToBackground = false;
__id370_.affectedByGravity = false;
__id370_.angularDamping = 0;
__id370_.convertToBitmap = true;
__id370_.linearDamping = 0;
try {
__id370_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id361__Level9_borderwalls_1(){
try {
__id361_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id361_.addToBackground = true;
__id361_.affectedByGravity = true;
__id361_.angularDamping = 0;
__id361_.convertToBitmap = false;
__id361_.linearDamping = 0;
try {
__id361_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id362__Level9_borderwalls_1(){
try {
__id362_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id362_.addToBackground = true;
__id362_.affectedByGravity = true;
__id362_.angularDamping = 0;
__id362_.convertToBitmap = false;
__id362_.linearDamping = 0;
try {
__id362_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id371__Level9_Objects_1(){
try {
__id371_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id371_.forceResistance = 0;
__id371_.speed = -0.6;
__id371_.torque = 1000;
__id371_.torqueResistance = 0;
__id371_.useGround = false;
try {
__id371_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 255
//LevelButton (LevelButton)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;
public dynamic class LevelButton extends MovieClip {
public var levelNum:TextField;
public var estrellita:MovieClip;
public var candado:MovieClip;
public var glow:GlowFilter;
public var activated:Boolean;
public function LevelButton(){
addFrameScript(0, frame1);
}
public function activate():void{
activated = true;
candado.visible = false;
}
public function completed(_arg1:Boolean):void{
estrellita.visible = _arg1;
}
function frame1(){
stop();
levelNum.mouseEnabled = false;
estrellita.mouseEnabled = false;
candado.mouseEnabled = false;
mouseChildren = false;
this.buttonMode = true;
this.useHandCursor = true;
addEventListener(MouseEvent.MOUSE_OVER, agrandar, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, normalizar, false, 0, true);
glow = new GlowFilter(0xFFFFFF, 1, 10, 20);
}
public function deactivate():void{
activated = false;
candado.visible = true;
normalizar(null);
}
public function normalizar(_arg1:Event):void{
this.filters = [];
}
public function setText(_arg1:String):void{
this.levelNum.text = _arg1;
}
public function agrandar(_arg1:Event):void{
if (activated){
this.filters = [glow];
};
}
}
}//package
Section 256
//LevelSelectMC (LevelSelectMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.geom.*;
import Game.*;
import MyUtils.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LevelSelectMC extends MovieClip {
public const BUTTONS_ROW:int = 8;
public const SPACE_X:int = 84;
public const SPACE_Y:int = 38;
public const BUTTONS_START_X:int = 36;
public const BUTTONS_START_Y:int = 25;
public const BUTTON_X_OFFSET:int = 40;
public var level_preview:MovieClip;
public var best_time:TextField;
public var level_multiplier:TextField;
public var best_score:TextField;
public var buttons:Array;
public var levelPreview:MovieClip;
public var multiplier:TextField;
public var total_score:TextField;
public var levelNumber:int;
public function LevelSelectMC(){
addFrameScript(0, frame1);
}
public function updateInfo(_arg1:int){
if (levelPreview){
level_preview.removeChild(levelPreview);
};
levelPreview = new (Glob.getLevel(_arg1));
levelPreview.scaleX = 0.5;
levelPreview.scaleY = 0.5;
level_preview.addChild(levelPreview);
best_score.text = ("" + Glob.levelScore(_arg1));
best_time.text = ("" + Utils.formatTime(Glob.levelTime(_arg1), 60));
multiplier.text = ("" + Glob.levelDifficulty(_arg1).toFixed(2));
level_multiplier.text = ("" + Glob.levelMultiplier(_arg1).toFixed(2));
}
public function listenOver(_arg1:Event){
var _local2:int;
_local2 = _arg1.currentTarget.num;
updateInfo(_local2);
}
public function updateTotalScore(){
total_score.text = ("" + Glob.getTotalScore());
}
function frame1(){
stop();
best_score.mouseEnabled = false;
best_time.mouseEnabled = false;
multiplier.mouseEnabled = false;
level_multiplier.mouseEnabled = false;
total_score.mouseEnabled = false;
level_preview.scrollRect = new Rectangle(-112.5, -112.5, 215, 215);
}
public function updateButtons(_arg1:Array){
var _local2:int;
_local2 = 0;
while (_local2 < buttons.length) {
if (_arg1[_local2]){
buttons[_local2].activate();
if (Glob.levelScore(_local2) > 0){
buttons[_local2].completed(true);
} else {
buttons[_local2].completed(false);
};
} else {
buttons[_local2].deactivate();
buttons[_local2].completed(false);
};
_local2++;
};
}
public function initialize(_arg1:int){
var _local2:int;
var _local3:int;
var _local4:Boolean;
var _local5:LevelButton;
var _local6:int;
levelNumber = 0;
buttons = [];
_local2 = 0;
_local3 = 0;
_local4 = false;
_local6 = 0;
while (_local6 < _arg1) {
_local5 = new LevelButton();
_local5.setText(("" + (_local6 + 1)));
MovieClip(_local5).num = _local6;
_local5.x = (BUTTONS_START_X + (_local3 * SPACE_X));
_local5.y = (BUTTONS_START_Y + (_local2 * SPACE_Y));
if (_local4){
_local5.x = (_local5.x + BUTTON_X_OFFSET);
};
_local5.addEventListener(MouseEvent.CLICK, listenSelect);
_local5.addEventListener(MouseEvent.ROLL_OVER, listenOver);
addChild(_local5);
buttons.push(_local5);
_local3++;
if (((((!(_local4)) && ((_local3 == BUTTONS_ROW)))) || (((_local4) && ((_local3 == (BUTTONS_ROW - 1))))))){
_local4 = !(_local4);
_local2++;
_local3 = 0;
};
_local6++;
};
}
public function listenSelect(_arg1:Event){
if (_arg1.currentTarget.activated){
levelNumber = _arg1.currentTarget.num;
dispatchEvent(new Event(Events.LEVEL_SELECTED));
};
}
public function getLevelNumber():int{
return (levelNumber);
}
}
}//package
Section 257
//LogoLink (LogoLink)
package {
import flash.display.*;
public dynamic class LogoLink extends MovieClip {
public var bubble_logo:MovieClip;
}
}//package
Section 258
//Loop2 (Loop2)
package {
import flash.media.*;
public dynamic class Loop2 extends Sound {
}
}//package
Section 259
//Main (Main)
package {
import flash.display.*;
import flash.events.*;
import MyUtils.InputManager.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import MyUtils.StateMachine.*;
import Game.*;
import MyUtils.*;
import Game.States.*;
import Game.Preloader.*;
import CPMStar.*;
import Main_fla.*;
import Game.Views.*;
import flash.ui.*;
public class Main extends MovieClip {
public var officeLogoTimer:Timer;
public var ad:DisplayObject;
var easing:Number;// = 0.1
public var contenedorMC:MovieClip;
public var preGame:FisicaBola;
var callback:Function;// = null
public var diff_slider:MySliderBar;
public var office_logo:MovieClip;
public var preloader:mcPreloader_1;
public var prePlay:SimpleButton;
public var startTime:int;
public var startDiff:Number;
public var minimumTime:int;
var target:Number;// = 0
public var skipNo:SimpleButton;
public var adBox:AdContainer;
public var skipOld:Boolean;
public var CPMStarContentSpotID:String;
public var bar_init_x:int;
public var bubble_logo:MovieClip;
var limit:Number;// = 0.1
var controller:MainController;
var cuadroNegro:Sprite;
public var skipYes:SimpleButton;
public var movieBytesTotal:int;
public function Main(){
easing = 0.1;
target = 0;
limit = 0.1;
callback = null;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
cuadroNegro = new Sprite();
cuadroNegro.graphics.beginFill(0, 1);
cuadroNegro.graphics.drawRect(0, 0, 700, 600);
Glob.main = this;
}
function lFocusLost(_arg1:Event):void{
Messager.dispatch(new Event(Events.MOVIE_LOST_FOCUS));
}
public function lskipNo(_arg1:Event){
skipYes.removeEventListener(MouseEvent.CLICK, lskipYes);
skipNo.removeEventListener(MouseEvent.CLICK, lskipNo);
skipOld = false;
this.fadeOut(0.1, callPlay4);
}
function startMusic():void{
Glob.playMusic();
}
public function lskipYes(_arg1:Event){
skipYes.removeEventListener(MouseEvent.CLICK, lskipYes);
skipNo.removeEventListener(MouseEvent.CLICK, lskipNo);
skipOld = true;
this.fadeOut(0.1, callPlay4);
}
public function fadeOut(_arg1:Number=0.1, _arg2:Function=null):void{
var ease = _arg1;
var fun = _arg2;
easing = ease;
cuadroNegro.visible = true;
cuadroNegro.alpha = 0;
target = 1;
this.addChild(cuadroNegro);
callback = function ():void{
if (fun != null){
fun();
};
fadeIn(ease);
};
addEventListener(Event.ENTER_FRAME, fade, false, 0, true);
}
public function loadProgress(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
_local2 = this.root.loaderInfo.bytesLoaded;
_local3 = int(((_local2 * preloader.damask.width) / movieBytesTotal));
_local4 = (getTimer() - startTime);
_local3 = Math.min(_local3, ((Number(_local4) / minimumTime) * preloader.damask.width));
preloader.damask.x = (bar_init_x + _local3);
if ((((_local2 >= movieBytesTotal)) && ((_local4 >= minimumTime)))){
removeEventListener(Event.ENTER_FRAME, loadProgress);
preloader.visible = false;
prePlay.visible = true;
CPMStarContentSpotID = null;
ad = null;
};
}
public function officeLogoContinue(_arg1:Event){
officeLogoTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, officeLogoContinue);
officeLogoTimer.stop();
officeLogoTimer = null;
this.fadeOut(0.1, callPlay3);
}
function frame6(){
stop();
stage.frameRate = 120;
this.startGame(skipOld, startDiff);
}
function frame1(){
stop();
prePlay.visible = false;
prePlay.addEventListener(MouseEvent.CLICK, lprePlay, false, 0, true);
preGame = new FisicaBola();
addChildAt(preGame, 0);
stage.frameRate = 30;
CPMStarContentSpotID = "979Q97A1FFA9";
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
addEventListener(Event.ENTER_FRAME, loadProgress, false, 0, true);
movieBytesTotal = this.root.loaderInfo.bytesTotal;
bar_init_x = preloader.damask.x;
minimumTime = (10 * 1000);
startTime = getTimer();
}
function frame3(){
stop();
bubble_logo.subid = "splash";
bubble_logo.addEventListener(MouseEvent.CLICK, Glob.bubbleboxLogoLink, false, 0, true);
bubble_logo.addEventListener(Events.ANIMATION_COMPLETE, bubbleboxLogoContinue, false, 0, true);
}
public function startGame(_arg1:Boolean, _arg2:Number):void{
var _local3:Input;
var _local4:Simulator;
var _local5:State;
var _local6:State;
var _local7:State;
var _local8:State;
var _local9:State;
var _local10:State;
var _local11:State;
var _local12:State;
var _local13:View;
var _local14:View;
var _local15:View;
var _local16:View;
var _local17:View;
var _local18:View;
var _local19:View;
var _local20:View;
var _local21:View;
var _local22:View;
var _local23:View;
var _local24:View;
var _local25:View;
var _local26:ContextMenu;
Glob.music = new Loop2();
Glob.sounds = new Dictionary();
Glob.sounds["explosion"] = new Explosion();
Glob.sounds["burn"] = new Burn();
Glob.sounds["saw"] = new Saw();
Glob.sounds["exit"] = new Exit();
this.scrollRect = new Rectangle(0, 0, 700, 600);
_local3 = Input.instance;
_local3.activate(stage);
loadSavedData(_arg1, _arg2);
controller = new MainController();
Mouse.hide();
stage.addEventListener(Event.DEACTIVATE, lFocusLost, false, 0, true);
_local4 = new Simulator();
_local5 = new InitState();
_local6 = new MainMenuState();
_local7 = new PlayState(_local4);
_local8 = new LevelSelectState();
_local9 = new InterLevelState();
_local10 = new GameOverState();
_local11 = new CreditsState();
_local12 = new OptionsState();
controller.addState("Init", _local5);
controller.addState("MainMenu", _local6);
controller.addState("Credits", _local11);
controller.addState("Options", _local12);
controller.addState("Play", _local7);
controller.addState("LevelSelect", _local8);
controller.addState("InterLevel", _local9);
controller.addState("GameOver", _local10);
controller.externalSetState("Init");
_local13 = new MainMenuView(controller, stage, new MainMenuMC());
_local14 = new InGameView(controller, stage, _local4);
_local15 = new InGameInterfaceView(controller, stage, new InGameInterfaceMC(), _local4);
_local16 = new LevelSelectView(controller, stage, new LevelSelectMC());
_local17 = new InterLevelView(controller, stage, new InterLevelMC());
_local18 = new GameOverView(controller, stage, new GameOverMC());
_local19 = new DifficultyView(controller, stage, new DifficultyMC());
_local20 = new FocusLostView(controller, stage, new FocusLostMC());
_local21 = new MouseView(controller, stage, new CursorMC());
_local22 = new SkipMsgView(controller, stage, new SkipMsgMC());
_local23 = new TipsView(controller, stage, new TipsMC());
_local24 = new LogoView(controller, stage, new LogoLink());
_local25 = new HelpView(controller, stage, new HelpWindow());
_local14.x = (Constants.SCREEN_WIDTH / 2);
_local14.y = (Constants.SCREEN_HEIGHT / 2);
addChild(_local13);
addChild(_local14);
addChild(_local15);
addChild(_local19);
addChild(_local16);
addChild(_local17);
addChild(_local18);
addChild(_local22);
addChild(_local23);
addChild(_local24);
addChild(_local25);
addChild(_local20);
addChild(_local21);
_local26 = new ContextMenu();
_local26.hideBuiltInItems();
this.contextMenu = _local26;
this.contextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, lFocusLost, false, 0, true);
startMusic();
addEventListener(Event.ENTER_FRAME, gameLoop, false, 0, true);
controller.onMsg("onGameStarted");
stage.focus = stage;
}
function loadSavedData(_arg1:Boolean, _arg2:Number):void{
var _local3:SharedObject;
var _local4:int;
var _local5:ByteArray;
var _local6:MochiDigits;
_local3 = SharedObject.getLocal("STBC2_Bubblebox_v1_1");
if (!_local3.data.playedBefore){
_local3.data.playedBefore = true;
_local3.data.gameCompleted = false;
_local3.data.levelScores = new Array(Constants.numLevels);
_local3.data.reduceFps = false;
_local3.data.skipMsg = true;
_local3.data.tips = !(_arg1);
_local3.data.skipOldLevels = _arg1;
_local3.data.difficulty = -0.9;
_local3.data.reduceBackQuality = true;
_local3.data.reduceObjQuality = true;
_local3.data.musicOn = true;
_local3.data.sfxOn = true;
_local4 = 0;
while (_local4 < Constants.numLevels) {
_local5 = new ByteArray();
_local6 = new MochiDigits(0);
_local6.serialize(_local5);
_local3.data.levelScores[_local4] = {score:_local5, time:0, difficulty:0};
_local4++;
};
};
_local3.data.skipOldLevels = _arg1;
_local3.data.tips = !(_arg1);
_local3.data.difficulty = _arg2;
Glob.setSavedData(_local3);
}
function frame2(){
removeChild(contenedorMC);
}
public function lprePlay(_arg1:Event){
prePlay.removeEventListener(MouseEvent.CLICK, lprePlay);
this.fadeOut(0.1, callPlay);
}
function frame5(){
stop();
skipOld = false;
startDiff = -0.9;
skipYes.addEventListener(MouseEvent.CLICK, lskipYes);
skipNo.addEventListener(MouseEvent.CLICK, lskipNo);
diff_slider.setValue(startDiff);
}
function fade(_arg1:Event):void{
var _local2:Number;
_local2 = ((target - cuadroNegro.alpha) * easing);
cuadroNegro.alpha = (cuadroNegro.alpha + _local2);
if (Math.abs((cuadroNegro.alpha - target)) < limit){
removeEventListener(Event.ENTER_FRAME, fade);
cuadroNegro.alpha = target;
if (cuadroNegro.alpha == 0){
removeChild(cuadroNegro);
};
if (callback != null){
callback();
};
};
}
public function callPlay(){
removeChild(adBox);
removeChild(preGame);
removeChild(prePlay);
preGame.disable();
preGame = null;
play();
}
public function callPlay3(){
removeChild(office_logo);
play();
}
public function callPlay4(){
startDiff = diff_slider.getValue();
play();
}
function gameLoop(_arg1:Event):void{
controller.onMsg("onUpdate");
if (Glob.reducedFps){
FRateLimiter.limitFrame((Glob.fps / 2));
} else {
FRateLimiter.limitFrame(Glob.fps);
};
}
function frame4(){
stop();
officeLogoTimer = new Timer(2000, 1);
officeLogoTimer.start();
officeLogoTimer.addEventListener(TimerEvent.TIMER_COMPLETE, officeLogoContinue, false, 0, true);
}
public function callPlay2(){
removeChild(bubble_logo);
play();
}
public function bubbleboxLogoContinue(_arg1:Event){
bubble_logo.removeEventListener(MouseEvent.CLICK, Glob.bubbleboxLogoLink);
bubble_logo.removeEventListener(Events.ANIMATION_COMPLETE, bubbleboxLogoContinue);
this.fadeOut(0.1, callPlay2);
}
public function fadeIn(_arg1:Number=0.1):void{
easing = _arg1;
cuadroNegro.visible = true;
cuadroNegro.alpha = 1;
target = 0;
this.addChild(cuadroNegro);
callback = null;
addEventListener(Event.ENTER_FRAME, fade, false, 0, true);
}
}
}//package
Section 260
//MainMenuMC (MainMenuMC)
package {
import flash.display.*;
public dynamic class MainMenuMC extends MovieClip {
public var credits:MovieClip;
public var mainMenu:MovieClip;
public function MainMenuMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 261
//MochiAdContainer (MochiAdContainer)
package {
import flash.display.*;
public dynamic class MochiAdContainer extends MovieClip {
}
}//package
Section 262
//MySliderBar (MySliderBar)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import MyUtils.*;
public dynamic class MySliderBar extends MovieClip {
public const CHANGE_EVENT:String = "SLIDER_CHANGE_EVENT";
public const WIDTH:Number = 272;
public const bounds:Rectangle;
public var value:Number;
public var thumb:MovieClip;
public function MySliderBar(){
bounds = new Rectangle(0, 0, WIDTH, 0);
super();
addFrameScript(0, frame1);
}
public function releaseThumb(_arg1:Event){
var _local2:Number;
thumb.y = 0;
_local2 = Utils.interval(0, thumb.x, WIDTH);
recalcValue(_local2);
thumb.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, releaseThumb);
}
public function pickThumb(_arg1:Event){
var _local2:Number;
thumb.y = 0;
_local2 = Utils.interval(0, this.mouseX, WIDTH);
recalcValue(_local2);
thumb.startDrag(false, bounds);
stage.addEventListener(MouseEvent.MOUSE_UP, releaseThumb, false, 0, true);
}
public function setValue(_arg1:Number){
value = _arg1;
thumb.x = (((_arg1 + 1.5) / 2.4) * WIDTH);
}
public function recalcValue(_arg1:Number){
var _local2:Number;
_local2 = (((_arg1 / WIDTH) * 2.4) - 1.5);
setValue(_local2);
dispatchEvent(new Event(CHANGE_EVENT));
}
function frame1(){
this.thumb.mouseEnabled = false;
addEventListener(MouseEvent.MOUSE_DOWN, pickThumb, false, 0, true);
}
public function getValue():Number{
return (value);
}
}
}//package
Section 263
//Octagono (Octagono)
package {
import Game.*;
public dynamic class Octagono extends GameBody {
public var __id354_:TriangleShape;
public var __id342_:TriangleShape;
public var __id330_:Rectangulo;
public var __id355_:TriangleShape;
public var __id343_:TriangleShape;
public var __id331_:Rectangulo;
public var __id356_:TriangleShape;
public var __id332_:Rectangulo;
public var __id344_:TriangleShape;
public var __id357_:TriangleShape;
public var __id333_:Rectangulo;
public var __id345_:TriangleShape;
public var __id334_:Rectangulo;
public var __id346_:TriangleShape;
public var __id347_:TriangleShape;
public var __id335_:Rectangulo;
public var __id348_:TriangleShape;
public var __id336_:Rectangulo;
public var __id337_:Rectangulo;
public var __id349_:TriangleShape;
public var __id338_:Rectangulo;
public var __id339_:Rectangulo;
public var __id329_:Rectangulo;
public var __id350_:TriangleShape;
public var __id351_:TriangleShape;
public var __id352_:TriangleShape;
public var __id340_:Rectangulo;
public var __id353_:TriangleShape;
public var __id341_:Rectangulo;
public function Octagono(){
addFrameScript(0, frame1);
__setProp___id345__Octagono_temp_1();
__setProp___id337__Octagono_Layer1_1();
__setProp___id353__Octagono_temp_1();
__setProp___id352__Octagono_temp_1();
__setProp___id342__Octagono_temp_1();
__setProp___id341__Octagono_Layer1_1();
__setProp___id340__Octagono_Layer1_1();
__setProp___id334__Octagono_Layer1_1();
__setProp___id335__Octagono_Layer1_1();
__setProp___id351__Octagono_temp_1();
__setProp___id350__Octagono_temp_1();
__setProp___id343__Octagono_temp_1();
__setProp___id332__Octagono_Layer1_1();
__setProp___id333__Octagono_Layer1_1();
__setProp___id357__Octagono_temp_1();
__setProp___id356__Octagono_temp_1();
__setProp___id346__Octagono_temp_1();
__setProp___id349__Octagono_temp_1();
__setProp___id330__Octagono_Layer1_1();
__setProp___id339__Octagono_Layer1_1();
__setProp___id348__Octagono_temp_1();
__setProp___id331__Octagono_Layer1_1();
__setProp___id355__Octagono_temp_1();
__setProp___id354__Octagono_temp_1();
__setProp___id347__Octagono_temp_1();
__setProp___id344__Octagono_temp_1();
__setProp___id338__Octagono_Layer1_1();
__setProp___id336__Octagono_Layer1_1();
__setProp___id329__Octagono_Layer1_1();
}
function __setProp___id350__Octagono_temp_1(){
try {
__id350_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id350_.categoryBits = 1;
__id350_.colgroup = -2;
__id350_.density = 0.1;
__id350_.friction = 0;
__id350_.maskBits = 0xFFFF;
__id350_.restitution = 0;
__id350_.sensor = true;
__id350_.type = 2;
try {
__id350_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id341__Octagono_Layer1_1(){
try {
__id341_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id341_.categoryBits = 2;
__id341_.colgroup = -2;
__id341_.density = 0.1;
__id341_.friction = 1;
__id341_.maskBits = 0xFFFF;
__id341_.restitution = 0;
__id341_.sensor = false;
__id341_.type = 0;
try {
__id341_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id351__Octagono_temp_1(){
try {
__id351_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id351_.categoryBits = 1;
__id351_.colgroup = -2;
__id351_.density = 0.1;
__id351_.friction = 0;
__id351_.maskBits = 0xFFFF;
__id351_.restitution = 0;
__id351_.sensor = true;
__id351_.type = 2;
try {
__id351_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id352__Octagono_temp_1(){
try {
__id352_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id352_.categoryBits = 1;
__id352_.colgroup = -2;
__id352_.density = 0.1;
__id352_.friction = 0;
__id352_.maskBits = 0xFFFF;
__id352_.restitution = 0;
__id352_.sensor = true;
__id352_.type = 2;
try {
__id352_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id335__Octagono_Layer1_1(){
try {
__id335_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id335_.categoryBits = 1;
__id335_.colgroup = -2;
__id335_.density = 0.1;
__id335_.friction = 1;
__id335_.maskBits = 0xFFFF;
__id335_.restitution = 0;
__id335_.sensor = false;
__id335_.type = 0;
try {
__id335_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id330__Octagono_Layer1_1(){
try {
__id330_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id330_.categoryBits = 1;
__id330_.colgroup = -2;
__id330_.density = 0.1;
__id330_.friction = 1;
__id330_.maskBits = 0xFFFF;
__id330_.restitution = 0;
__id330_.sensor = false;
__id330_.type = 0;
try {
__id330_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id353__Octagono_temp_1(){
try {
__id353_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id353_.categoryBits = 1;
__id353_.colgroup = -2;
__id353_.density = 0.1;
__id353_.friction = 0;
__id353_.maskBits = 0xFFFF;
__id353_.restitution = 0;
__id353_.sensor = true;
__id353_.type = 2;
try {
__id353_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id342__Octagono_temp_1(){
try {
__id342_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id342_.categoryBits = 1;
__id342_.colgroup = -2;
__id342_.density = 0.1;
__id342_.friction = 0;
__id342_.maskBits = 0xFFFF;
__id342_.restitution = 0;
__id342_.sensor = true;
__id342_.type = 2;
try {
__id342_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id336__Octagono_Layer1_1(){
try {
__id336_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id336_.categoryBits = 1;
__id336_.colgroup = -2;
__id336_.density = 0.1;
__id336_.friction = 1;
__id336_.maskBits = 0xFFFF;
__id336_.restitution = 0;
__id336_.sensor = false;
__id336_.type = 0;
try {
__id336_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id354__Octagono_temp_1(){
try {
__id354_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id354_.categoryBits = 1;
__id354_.colgroup = -2;
__id354_.density = 0.1;
__id354_.friction = 0;
__id354_.maskBits = 0xFFFF;
__id354_.restitution = 0;
__id354_.sensor = true;
__id354_.type = 2;
try {
__id354_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id329__Octagono_Layer1_1(){
try {
__id329_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id329_.categoryBits = 1;
__id329_.colgroup = -2;
__id329_.density = 0.1;
__id329_.friction = 1;
__id329_.maskBits = 0xFFFF;
__id329_.restitution = 0;
__id329_.sensor = false;
__id329_.type = 0;
try {
__id329_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id355__Octagono_temp_1(){
try {
__id355_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id355_.categoryBits = 1;
__id355_.colgroup = -2;
__id355_.density = 0.1;
__id355_.friction = 0;
__id355_.maskBits = 0xFFFF;
__id355_.restitution = 0;
__id355_.sensor = true;
__id355_.type = 2;
try {
__id355_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id343__Octagono_temp_1(){
try {
__id343_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id343_.categoryBits = 1;
__id343_.colgroup = -2;
__id343_.density = 0.1;
__id343_.friction = 0;
__id343_.maskBits = 0xFFFF;
__id343_.restitution = 0;
__id343_.sensor = true;
__id343_.type = 2;
try {
__id343_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id331__Octagono_Layer1_1(){
try {
__id331_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id331_.categoryBits = 1;
__id331_.colgroup = -2;
__id331_.density = 0.1;
__id331_.friction = 1;
__id331_.maskBits = 0xFFFF;
__id331_.restitution = 0;
__id331_.sensor = false;
__id331_.type = 0;
try {
__id331_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id344__Octagono_temp_1(){
try {
__id344_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id344_.categoryBits = 1;
__id344_.colgroup = -2;
__id344_.density = 0.1;
__id344_.friction = 0;
__id344_.maskBits = 0xFFFF;
__id344_.restitution = 0;
__id344_.sensor = true;
__id344_.type = 2;
try {
__id344_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id356__Octagono_temp_1(){
try {
__id356_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id356_.categoryBits = 1;
__id356_.colgroup = -2;
__id356_.density = 0.1;
__id356_.friction = 0;
__id356_.maskBits = 0xFFFF;
__id356_.restitution = 0;
__id356_.sensor = true;
__id356_.type = 2;
try {
__id356_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id337__Octagono_Layer1_1(){
try {
__id337_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id337_.categoryBits = 1;
__id337_.colgroup = -2;
__id337_.density = 0.1;
__id337_.friction = 1;
__id337_.maskBits = 0xFFFF;
__id337_.restitution = 0;
__id337_.sensor = false;
__id337_.type = 0;
try {
__id337_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id345__Octagono_temp_1(){
try {
__id345_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id345_.categoryBits = 1;
__id345_.colgroup = -2;
__id345_.density = 0.1;
__id345_.friction = 0;
__id345_.maskBits = 0xFFFF;
__id345_.restitution = 0;
__id345_.sensor = true;
__id345_.type = 2;
try {
__id345_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id346__Octagono_temp_1(){
try {
__id346_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id346_.categoryBits = 1;
__id346_.colgroup = -2;
__id346_.density = 0.1;
__id346_.friction = 0;
__id346_.maskBits = 0xFFFF;
__id346_.restitution = 0;
__id346_.sensor = true;
__id346_.type = 2;
try {
__id346_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id332__Octagono_Layer1_1(){
try {
__id332_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id332_.categoryBits = 1;
__id332_.colgroup = -2;
__id332_.density = 0.1;
__id332_.friction = 1;
__id332_.maskBits = 0xFFFF;
__id332_.restitution = 0;
__id332_.sensor = false;
__id332_.type = 0;
try {
__id332_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id347__Octagono_temp_1(){
try {
__id347_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id347_.categoryBits = 1;
__id347_.colgroup = -2;
__id347_.density = 0.1;
__id347_.friction = 0;
__id347_.maskBits = 0xFFFF;
__id347_.restitution = 0;
__id347_.sensor = true;
__id347_.type = 2;
try {
__id347_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id338__Octagono_Layer1_1(){
try {
__id338_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id338_.categoryBits = 1;
__id338_.colgroup = -2;
__id338_.density = 0.1;
__id338_.friction = 1;
__id338_.maskBits = 0xFFFF;
__id338_.restitution = 0;
__id338_.sensor = false;
__id338_.type = 0;
try {
__id338_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id357__Octagono_temp_1(){
try {
__id357_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id357_.categoryBits = 1;
__id357_.colgroup = -2;
__id357_.density = 0.1;
__id357_.friction = 0;
__id357_.maskBits = 0xFFFF;
__id357_.restitution = 0;
__id357_.sensor = true;
__id357_.type = 2;
try {
__id357_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id348__Octagono_temp_1(){
try {
__id348_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id348_.categoryBits = 1;
__id348_.colgroup = -2;
__id348_.density = 0.1;
__id348_.friction = 0;
__id348_.maskBits = 0xFFFF;
__id348_.restitution = 0;
__id348_.sensor = true;
__id348_.type = 2;
try {
__id348_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id349__Octagono_temp_1(){
try {
__id349_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id349_.categoryBits = 1;
__id349_.colgroup = -2;
__id349_.density = 0.1;
__id349_.friction = 0;
__id349_.maskBits = 0xFFFF;
__id349_.restitution = 0;
__id349_.sensor = true;
__id349_.type = 2;
try {
__id349_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id333__Octagono_Layer1_1(){
try {
__id333_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id333_.categoryBits = 1;
__id333_.colgroup = -2;
__id333_.density = 0.1;
__id333_.friction = 1;
__id333_.maskBits = 0xFFFF;
__id333_.restitution = 0;
__id333_.sensor = false;
__id333_.type = 0;
try {
__id333_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id339__Octagono_Layer1_1(){
try {
__id339_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id339_.categoryBits = 1;
__id339_.colgroup = -2;
__id339_.density = 0.1;
__id339_.friction = 1;
__id339_.maskBits = 0xFFFF;
__id339_.restitution = 0;
__id339_.sensor = false;
__id339_.type = 0;
try {
__id339_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id334__Octagono_Layer1_1(){
try {
__id334_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id334_.categoryBits = 1;
__id334_.colgroup = -2;
__id334_.density = 0.1;
__id334_.friction = 1;
__id334_.maskBits = 0xFFFF;
__id334_.restitution = 0;
__id334_.sensor = false;
__id334_.type = 0;
try {
__id334_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id340__Octagono_Layer1_1(){
try {
__id340_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id340_.categoryBits = 1;
__id340_.colgroup = -2;
__id340_.density = 0.1;
__id340_.friction = 1;
__id340_.maskBits = 0xFFFF;
__id340_.restitution = 0;
__id340_.sensor = false;
__id340_.type = 0;
try {
__id340_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 264
//OneSpikeMC (OneSpikeMC)
package {
import Game.*;
public dynamic class OneSpikeMC extends GameBody {
public var __id14_:TriangleShape;
public var __id15_:TriangleShape;
public function OneSpikeMC(){
addFrameScript(0, frame1);
__setProp___id15__OneSpikeMC_Layer1_1();
__setProp___id14__OneSpikeMC_Layer1_1();
}
function __setProp___id15__OneSpikeMC_Layer1_1(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.categoryBits = 1;
__id15_.colgroup = -2;
__id15_.density = 0;
__id15_.friction = 0.1;
__id15_.maskBits = 0xFFFF;
__id15_.restitution = 0.1;
__id15_.sensor = true;
__id15_.type = 0;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function init(){
this.removeGraphic = true;
this.type = Constants.SPIKE;
}
function __setProp___id14__OneSpikeMC_Layer1_1(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.categoryBits = 1;
__id14_.colgroup = -2;
__id14_.density = 0;
__id14_.friction = 0.1;
__id14_.maskBits = 0xFFFF;
__id14_.restitution = 0.1;
__id14_.sensor = true;
__id14_.type = 0;
try {
__id14_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package
Section 265
//Paquete (Paquete)
package {
public dynamic class Paquete extends Empacador {
}
}//package
Section 266
//Pared (Pared)
package {
import Game.*;
public dynamic class Pared extends GameBody {
public var __id2_:Rectangulo;
public function Pared(){
addFrameScript(0, frame1);
__setProp___id2__Pared_shapes_1();
}
public function init(){
this.type = Constants.WALL;
this.removeGraphic = true;
}
function frame1(){
stop();
}
function __setProp___id2__Pared_shapes_1(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.categoryBits = 1;
__id2_.colgroup = -2;
__id2_.density = 0;
__id2_.friction = 1;
__id2_.maskBits = 0xFFFF;
__id2_.restitution = 0.2;
__id2_.sensor = false;
__id2_.type = 6;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 267
//ParedCirculo (ParedCirculo)
package {
import Game.*;
public dynamic class ParedCirculo extends GameBody {
public var __id21_:Circulo;
public function ParedCirculo(){
addFrameScript(0, frame1);
__setProp___id21__ParedCirculo_Layer1_1();
}
public function init(){
this.type = Constants.WALL;
this.removeGraphic = true;
}
function frame1(){
stop();
}
function __setProp___id21__ParedCirculo_Layer1_1(){
try {
__id21_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id21_.categoryBits = 1;
__id21_.colgroup = -2;
__id21_.density = 0;
__id21_.friction = 1;
__id21_.maskBits = 0xFFFF;
__id21_.restitution = 0;
__id21_.sensor = false;
__id21_.type = 0;
try {
__id21_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 268
//ParedNoColBola (ParedNoColBola)
package {
import Game.*;
public dynamic class ParedNoColBola extends GameBody {
public var __id582_:Rectangulo;
public function ParedNoColBola(){
addFrameScript(0, frame1);
__setProp___id582__ParedNoColBola_shapes_1();
}
function __setProp___id582__ParedNoColBola_shapes_1(){
try {
__id582_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id582_.categoryBits = 1;
__id582_.colgroup = -7;
__id582_.density = 0;
__id582_.friction = 1;
__id582_.maskBits = 0xFFFF;
__id582_.restitution = 0.2;
__id582_.sensor = false;
__id582_.type = 6;
try {
__id582_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function init(){
this.type = Constants.WALL;
this.removeGraphic = true;
}
function frame1(){
stop();
}
}
}//package
Section 269
//PrismaticJoint (PrismaticJoint)
package {
import Box2DIntegration.*;
public dynamic class PrismaticJoint extends b2iPrismaticJoint {
public function PrismaticJoint(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package
Section 270
//Rectangulo (Rectangulo)
package {
import Game.*;
public dynamic class Rectangulo extends GameBoxShape {
public function Rectangulo(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 271
//RepeatingPrismaticJoint (RepeatingPrismaticJoint)
package {
import Game.*;
public dynamic class RepeatingPrismaticJoint extends RepeatingPrismaticJoint {
public function RepeatingPrismaticJoint(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package
Section 272
//RevoJoint (RevoJoint)
package {
import Box2DIntegration.*;
public dynamic class RevoJoint extends b2iRevoluteJoint {
public function RevoJoint(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package
Section 273
//RotorNivel9 (RotorNivel9)
package {
import Game.*;
public dynamic class RotorNivel9 extends GameBody {
public var __id367_:Rectangulo;
public var __id368_:Circulo;
public var __id369_:Circulo;
public function RotorNivel9(){
addFrameScript(0, frame1);
__setProp___id368__RotorNivel9_Layer1_1();
__setProp___id369__RotorNivel9_Layer1_1();
__setProp___id367__RotorNivel9_Layer1_1();
}
function __setProp___id367__RotorNivel9_Layer1_1(){
try {
__id367_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id367_.categoryBits = 1;
__id367_.colgroup = -2;
__id367_.density = 0.1;
__id367_.friction = 1;
__id367_.maskBits = 0xFFFF;
__id367_.restitution = 0;
__id367_.sensor = false;
__id367_.type = 0;
try {
__id367_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
this.type = Constants.WALL;
}
function __setProp___id368__RotorNivel9_Layer1_1(){
try {
__id368_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id368_.categoryBits = 1;
__id368_.colgroup = -2;
__id368_.density = 0.1;
__id368_.friction = 1;
__id368_.maskBits = 0xFFFF;
__id368_.restitution = 0;
__id368_.sensor = false;
__id368_.type = 0;
try {
__id368_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id369__RotorNivel9_Layer1_1(){
try {
__id369_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id369_.categoryBits = 1;
__id369_.colgroup = -2;
__id369_.density = 0.1;
__id369_.friction = 1;
__id369_.maskBits = 0xFFFF;
__id369_.restitution = 0;
__id369_.sensor = false;
__id369_.type = 0;
try {
__id369_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 274
//Saw (Saw)
package {
import flash.media.*;
public dynamic class Saw extends Sound {
}
}//package
Section 275
//SkipMsgMC (SkipMsgMC)
package {
import fl.controls.*;
import flash.display.*;
public dynamic class SkipMsgMC extends MovieClip {
public var noButton:SimpleButton;
public var neverShow:CheckBox;
public var yesButton:SimpleButton;
public function SkipMsgMC(){
__setProp_neverShow_SkipMsgMC_ui2_1();
}
function __setProp_neverShow_SkipMsgMC_ui2_1(){
try {
neverShow["componentInspectorSetting"] = true;
} catch(e:Error) {
};
neverShow.enabled = true;
neverShow.label = "";
neverShow.labelPlacement = "right";
neverShow.selected = false;
neverShow.visible = true;
try {
neverShow["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 276
//SpikeMC (SpikeMC)
package {
import Game.*;
public dynamic class SpikeMC extends GameBody {
public var __id221_:TriangleShape;
public var __id222_:TriangleShape;
public var __id219_:TriangleShape;
public var __id220_:TriangleShape;
public function SpikeMC(){
addFrameScript(0, frame1);
__setProp___id220__SpikeMC_Shapes_1();
__setProp___id219__SpikeMC_Shapes_1();
__setProp___id221__SpikeMC_Shapes_1();
__setProp___id222__SpikeMC_Shapes_1();
}
function __setProp___id221__SpikeMC_Shapes_1(){
try {
__id221_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id221_.categoryBits = 1;
__id221_.colgroup = 0;
__id221_.density = 0;
__id221_.friction = 0.1;
__id221_.maskBits = 0xFFFF;
__id221_.restitution = 0.1;
__id221_.sensor = true;
__id221_.type = 0;
try {
__id221_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function init(){
this.removeGraphic = true;
this.type = Constants.SPIKE;
}
function __setProp___id220__SpikeMC_Shapes_1(){
try {
__id220_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id220_.categoryBits = 1;
__id220_.colgroup = 0;
__id220_.density = 0;
__id220_.friction = 0.1;
__id220_.maskBits = 0xFFFF;
__id220_.restitution = 0.1;
__id220_.sensor = true;
__id220_.type = 0;
try {
__id220_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
function __setProp___id219__SpikeMC_Shapes_1(){
try {
__id219_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id219_.categoryBits = 1;
__id219_.colgroup = 0;
__id219_.density = 0;
__id219_.friction = 0.1;
__id219_.maskBits = 0xFFFF;
__id219_.restitution = 0.1;
__id219_.sensor = true;
__id219_.type = 0;
try {
__id219_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id222__SpikeMC_Shapes_1(){
try {
__id222_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id222_.categoryBits = 1;
__id222_.colgroup = 0;
__id222_.density = 0;
__id222_.friction = 0.1;
__id222_.maskBits = 0xFFFF;
__id222_.restitution = 0.1;
__id222_.sensor = true;
__id222_.type = 0;
try {
__id222_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 277
//StandardBall (StandardBall)
package {
import flash.events.*;
import flash.geom.*;
import Game.*;
public dynamic class StandardBall extends GameBall {
public var __id0_:Circulo;
public var ct:ColorTransform;
public function StandardBall(){
addFrameScript(0, frame1, 5, frame6, 26, frame27, 31, frame32, 49, frame50, 50, frame51);
__setProp___id0__Ball_Shapes_1();
}
function __setProp___id0__Ball_Shapes_1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.categoryBits = 1;
__id0_.colgroup = 0;
__id0_.density = 0.5;
__id0_.friction = 1;
__id0_.maskBits = 65533;
__id0_.restitution = 0.3;
__id0_.sensor = false;
__id0_.type = 0;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame6(){
bola.visible = false;
}
function frame1(){
stop();
this.type = Constants.BALL;
}
public function fade(_arg1:Event){
ct.redMultiplier = (ct.redMultiplier * 1.1);
ct.greenMultiplier = (ct.greenMultiplier * 1.1);
ct.blueMultiplier = (ct.blueMultiplier * 1.1);
ct.alphaMultiplier = (ct.alphaMultiplier - 0.03);
transform.colorTransform = ct;
if (ct.alphaMultiplier < 0.1){
bola.visible = false;
removeEventListener(Event.ENTER_FRAME, fade);
};
}
function frame27(){
stop();
}
function frame32(){
bola.visible = false;
}
function frame51(){
stop();
addEventListener(Event.ENTER_FRAME, fade, false, 0, true);
ct = new ColorTransform(1, 1, 1);
}
function frame50(){
stop();
}
}
}//package
Section 278
//STBC1_1 (STBC1_1)
package {
import Game.*;
public dynamic class STBC1_1 extends GameLevel {
public var __id16_:RevoJoint;
public var __id6_:Pared;
public var __id5_:Pared;
public var __id10_:Pared;
public var __id8_:Pared;
public var __id9_:Pared;
public var __id13_:BloqueMovil;
public var __id3_:Pared;
public var __id4_:Pared;
public function STBC1_1(){
__setProp___id6__STBC1_1();
__setProp___id10__STBC1_1();
__setProp___id8__STBC1_1();
__setProp___id9__STBC1_1();
__setProp___id13__STBC1_1();
__setProp___id3__STBC1_1();
__setProp___id4__STBC1_1();
__setProp___id16__STBC1_1();
__setProp___id5__STBC1_1();
}
function __setProp___id3__STBC1_1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.addToBackground = true;
__id3_.affectedByGravity = true;
__id3_.angularDamping = 0;
__id3_.convertToBitmap = false;
__id3_.linearDamping = 0;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id4__STBC1_1(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.addToBackground = true;
__id4_.affectedByGravity = true;
__id4_.angularDamping = 0;
__id4_.convertToBitmap = false;
__id4_.linearDamping = 0;
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id13__STBC1_1(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.addToBackground = false;
__id13_.affectedByGravity = false;
__id13_.angularDamping = 0;
__id13_.convertToBitmap = true;
__id13_.linearDamping = 0;
try {
__id13_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id5__STBC1_1(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.addToBackground = true;
__id5_.affectedByGravity = true;
__id5_.angularDamping = 0;
__id5_.convertToBitmap = false;
__id5_.linearDamping = 0;
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id6__STBC1_1(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.addToBackground = true;
__id6_.affectedByGravity = true;
__id6_.angularDamping = 0;
__id6_.convertToBitmap = false;
__id6_.linearDamping = 0;
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id16__STBC1_1(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.forceResistance = 0;
__id16_.speed = -0.9;
__id16_.torque = 2000;
__id16_.torqueResistance = 0;
__id16_.useGround = false;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id8__STBC1_1(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.addToBackground = true;
__id8_.affectedByGravity = true;
__id8_.angularDamping = 0;
__id8_.convertToBitmap = false;
__id8_.linearDamping = 0;
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id10__STBC1_1(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.addToBackground = true;
__id10_.affectedByGravity = true;
__id10_.angularDamping = 0;
__id10_.convertToBitmap = false;
__id10_.linearDamping = 0;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id9__STBC1_1(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.addToBackground = true;
__id9_.affectedByGravity = true;
__id9_.angularDamping = 0;
__id9_.convertToBitmap = false;
__id9_.linearDamping = 0;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 279
//STBC1_10 (STBC1_10)
package {
import Game.*;
public dynamic class STBC1_10 extends GameLevel {
public var __id100_:Pared;
public var __id112_:Pared;
public var __id113_:Pared;
public var __id101_:Pared;
public var __id102_:Pared;
public var __id103_:Pared;
public var __id99_:Pared;
public var __id104_:Pared;
public var __id105_:Pared;
public var __id106_:Pared;
public var __id107_:Pared;
public var __id108_:Pared;
public var __id109_:Pared;
public var __id110_:Pared;
public var __id111_:Pared;
public function STBC1_10(){
__setProp___id111__STBC1_1();
__setProp___id110__STBC1_1();
__setProp___id101__STBC1_1();
__setProp___id99__STBC1_1();
__setProp___id113__STBC1_1();
__setProp___id100__STBC1_1();
__setProp___id112__STBC1_1();
__setProp___id103__STBC1_1();
__setProp___id102__STBC1_1();
__setProp___id109__STBC1_1();
__setProp___id105__STBC1_1();
__setProp___id108__STBC1_1();
__setProp___id104__STBC1_1();
__setProp___id107__STBC1_1();
__setProp___id106__STBC1_1();
}
function __setProp___id102__STBC1_1(){
try {
__id102_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id102_.addToBackground = true;
__id102_.affectedByGravity = true;
__id102_.angularDamping = 0;
__id102_.convertToBitmap = false;
__id102_.linearDamping = 0;
try {
__id102_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id104__STBC1_1(){
try {
__id104_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id104_.addToBackground = true;
__id104_.affectedByGravity = true;
__id104_.angularDamping = 0;
__id104_.convertToBitmap = false;
__id104_.linearDamping = 0;
try {
__id104_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id106__STBC1_1(){
try {
__id106_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id106_.addToBackground = true;
__id106_.affectedByGravity = true;
__id106_.angularDamping = 0;
__id106_.convertToBitmap = false;
__id106_.linearDamping = 0;
try {
__id106_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id110__STBC1_1(){
try {
__id110_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id110_.addToBackground = true;
__id110_.affectedByGravity = true;
__id110_.angularDamping = 0;
__id110_.convertToBitmap = false;
__id110_.linearDamping = 0;
try {
__id110_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id108__STBC1_1(){
try {
__id108_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id108_.addToBackground = true;
__id108_.affectedByGravity = true;
__id108_.angularDamping = 0;
__id108_.convertToBitmap = false;
__id108_.linearDamping = 0;
try {
__id108_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id112__STBC1_1(){
try {
__id112_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id112_.addToBackground = true;
__id112_.affectedByGravity = true;
__id112_.angularDamping = 0;
__id112_.convertToBitmap = false;
__id112_.linearDamping = 0;
try {
__id112_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id101__STBC1_1(){
try {
__id101_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id101_.addToBackground = true;
__id101_.affectedByGravity = true;
__id101_.angularDamping = 0;
__id101_.convertToBitmap = false;
__id101_.linearDamping = 0;
try {
__id101_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id103__STBC1_1(){
try {
__id103_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id103_.addToBackground = true;
__id103_.affectedByGravity = true;
__id103_.angularDamping = 0;
__id103_.convertToBitmap = false;
__id103_.linearDamping = 0;
try {
__id103_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id105__STBC1_1(){
try {
__id105_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id105_.addToBackground = true;
__id105_.affectedByGravity = true;
__id105_.angularDamping = 0;
__id105_.convertToBitmap = false;
__id105_.linearDamping = 0;
try {
__id105_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id111__STBC1_1(){
try {
__id111_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id111_.addToBackground = true;
__id111_.affectedByGravity = true;
__id111_.angularDamping = 0;
__id111_.convertToBitmap = false;
__id111_.linearDamping = 0;
try {
__id111_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id107__STBC1_1(){
try {
__id107_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id107_.addToBackground = true;
__id107_.affectedByGravity = true;
__id107_.angularDamping = 0;
__id107_.convertToBitmap = false;
__id107_.linearDamping = 0;
try {
__id107_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id100__STBC1_1(){
try {
__id100_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id100_.addToBackground = true;
__id100_.affectedByGravity = true;
__id100_.angularDamping = 0;
__id100_.convertToBitmap = false;
__id100_.linearDamping = 0;
try {
__id100_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id109__STBC1_1(){
try {
__id109_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id109_.addToBackground = true;
__id109_.affectedByGravity = true;
__id109_.angularDamping = 0;
__id109_.convertToBitmap = false;
__id109_.linearDamping = 0;
try {
__id109_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id113__STBC1_1(){
try {
__id113_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id113_.addToBackground = true;
__id113_.affectedByGravity = true;
__id113_.angularDamping = 0;
__id113_.convertToBitmap = false;
__id113_.linearDamping = 0;
try {
__id113_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id99__STBC1_1(){
try {
__id99_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id99_.addToBackground = true;
__id99_.affectedByGravity = true;
__id99_.angularDamping = 0;
__id99_.convertToBitmap = false;
__id99_.linearDamping = 0;
try {
__id99_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 280
//STBC1_11 (STBC1_11)
package {
import Game.*;
public dynamic class STBC1_11 extends GameLevel {
public var __id124_:Pared;
public var __id136_:FlameMC;
public var __id137_:FlameMC;
public var __id125_:Pared;
public var __id126_:Pared;
public var __id114_:Pared;
public var __id139_:FlameMC;
public var __id115_:Pared;
public var __id138_:FlameMC;
public var __id127_:Pared;
public var __id128_:Pared;
public var __id116_:Pared;
public var __id117_:Pared;
public var __id129_:Pared;
public var __id118_:Pared;
public var __id130_:Pared;
public var __id131_:Pared;
public var __id132_:Pared;
public var __id133_:Pared;
public var __id134_:Pared;
public var __id135_:FlameMC;
public var __id123_:Pared;
public function STBC1_11(){
__setProp___id131__STBC1_1();
__setProp___id130__STBC1_1();
__setProp___id129__STBC1_1();
__setProp___id118__STBC1_1();
__setProp___id133__STBC1_1();
__setProp___id128__STBC1_1();
__setProp___id115__STBC1_1();
__setProp___id132__STBC1_1();
__setProp___id123__STBC1_1();
__setProp___id114__STBC1_1();
__setProp___id117__STBC1_1();
__setProp___id135__STBC1_1();
__setProp___id134__STBC1_1();
__setProp___id125__STBC1_1();
__setProp___id116__STBC1_1();
__setProp___id138__STBC1_1();
__setProp___id124__STBC1_1();
__setProp___id127__STBC1_1();
__setProp___id139__STBC1_1();
__setProp___id126__STBC1_1();
__setProp___id137__STBC1_1();
__setProp___id136__STBC1_1();
}
function __setProp___id126__STBC1_1(){
try {
__id126_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id126_.addToBackground = true;
__id126_.affectedByGravity = true;
__id126_.angularDamping = 0;
__id126_.convertToBitmap = false;
__id126_.linearDamping = 0;
try {
__id126_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id130__STBC1_1(){
try {
__id130_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id130_.addToBackground = true;
__id130_.affectedByGravity = true;
__id130_.angularDamping = 0;
__id130_.convertToBitmap = false;
__id130_.linearDamping = 0;
try {
__id130_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id115__STBC1_1(){
try {
__id115_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id115_.addToBackground = true;
__id115_.affectedByGravity = true;
__id115_.angularDamping = 0;
__id115_.convertToBitmap = false;
__id115_.linearDamping = 0;
try {
__id115_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id139__STBC1_1(){
try {
__id139_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id139_.addToBackground = false;
__id139_.affectedByGravity = true;
__id139_.angularDamping = 0;
__id139_.convertToBitmap = false;
__id139_.delay = 0;
__id139_.duration = 1000000;
__id139_.frequency = 1000000;
__id139_.linearDamping = 0;
try {
__id139_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id128__STBC1_1(){
try {
__id128_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id128_.addToBackground = true;
__id128_.affectedByGravity = true;
__id128_.angularDamping = 0;
__id128_.convertToBitmap = false;
__id128_.linearDamping = 0;
try {
__id128_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id117__STBC1_1(){
try {
__id117_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id117_.addToBackground = true;
__id117_.affectedByGravity = true;
__id117_.angularDamping = 0;
__id117_.convertToBitmap = false;
__id117_.linearDamping = 0;
try {
__id117_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id132__STBC1_1(){
try {
__id132_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id132_.addToBackground = true;
__id132_.affectedByGravity = true;
__id132_.angularDamping = 0;
__id132_.convertToBitmap = false;
__id132_.linearDamping = 0;
try {
__id132_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id123__STBC1_1(){
try {
__id123_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id123_.addToBackground = true;
__id123_.affectedByGravity = true;
__id123_.angularDamping = 0;
__id123_.convertToBitmap = false;
__id123_.linearDamping = 0;
try {
__id123_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id134__STBC1_1(){
try {
__id134_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id134_.addToBackground = true;
__id134_.affectedByGravity = true;
__id134_.angularDamping = 0;
__id134_.convertToBitmap = false;
__id134_.linearDamping = 0;
try {
__id134_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id136__STBC1_1(){
try {
__id136_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id136_.addToBackground = false;
__id136_.affectedByGravity = true;
__id136_.angularDamping = 0;
__id136_.convertToBitmap = false;
__id136_.delay = 0;
__id136_.duration = 1000000;
__id136_.frequency = 1000000;
__id136_.linearDamping = 0;
try {
__id136_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id125__STBC1_1(){
try {
__id125_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id125_.addToBackground = true;
__id125_.affectedByGravity = true;
__id125_.angularDamping = 0;
__id125_.convertToBitmap = false;
__id125_.linearDamping = 0;
try {
__id125_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id138__STBC1_1(){
try {
__id138_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id138_.addToBackground = false;
__id138_.affectedByGravity = true;
__id138_.angularDamping = 0;
__id138_.convertToBitmap = false;
__id138_.delay = 0;
__id138_.duration = 1000000;
__id138_.frequency = 1000000;
__id138_.linearDamping = 0;
try {
__id138_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id114__STBC1_1(){
try {
__id114_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id114_.addToBackground = true;
__id114_.affectedByGravity = true;
__id114_.angularDamping = 0;
__id114_.convertToBitmap = false;
__id114_.linearDamping = 0;
try {
__id114_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id127__STBC1_1(){
try {
__id127_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id127_.addToBackground = true;
__id127_.affectedByGravity = true;
__id127_.angularDamping = 0;
__id127_.convertToBitmap = false;
__id127_.linearDamping = 0;
try {
__id127_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id131__STBC1_1(){
try {
__id131_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id131_.addToBackground = true;
__id131_.affectedByGravity = true;
__id131_.angularDamping = 0;
__id131_.convertToBitmap = false;
__id131_.linearDamping = 0;
try {
__id131_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id116__STBC1_1(){
try {
__id116_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id116_.addToBackground = true;
__id116_.affectedByGravity = true;
__id116_.angularDamping = 0;
__id116_.convertToBitmap = false;
__id116_.linearDamping = 0;
try {
__id116_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id129__STBC1_1(){
try {
__id129_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id129_.addToBackground = true;
__id129_.affectedByGravity = true;
__id129_.angularDamping = 0;
__id129_.convertToBitmap = false;
__id129_.linearDamping = 0;
try {
__id129_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id133__STBC1_1(){
try {
__id133_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id133_.addToBackground = true;
__id133_.affectedByGravity = true;
__id133_.angularDamping = 0;
__id133_.convertToBitmap = false;
__id133_.linearDamping = 0;
try {
__id133_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id118__STBC1_1(){
try {
__id118_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id118_.addToBackground = true;
__id118_.affectedByGravity = true;
__id118_.angularDamping = 0;
__id118_.convertToBitmap = false;
__id118_.linearDamping = 0;
try {
__id118_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id135__STBC1_1(){
try {
__id135_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id135_.addToBackground = false;
__id135_.affectedByGravity = true;
__id135_.angularDamping = 0;
__id135_.convertToBitmap = false;
__id135_.delay = 0;
__id135_.duration = 1000000;
__id135_.frequency = 1000000;
__id135_.linearDamping = 0;
try {
__id135_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id124__STBC1_1(){
try {
__id124_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id124_.addToBackground = true;
__id124_.affectedByGravity = true;
__id124_.angularDamping = 0;
__id124_.convertToBitmap = false;
__id124_.linearDamping = 0;
try {
__id124_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id137__STBC1_1(){
try {
__id137_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id137_.addToBackground = false;
__id137_.affectedByGravity = true;
__id137_.angularDamping = 0;
__id137_.convertToBitmap = false;
__id137_.delay = 0;
__id137_.duration = 1000000;
__id137_.frequency = 1000000;
__id137_.linearDamping = 0;
try {
__id137_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 281
//STBC1_12 (STBC1_12)
package {
import Game.*;
public dynamic class STBC1_12 extends GameLevel {
public var __id140_:Pared;
public var __id153_:CruzOldNivel12;
public var __id141_:Pared;
public var __id148_:Pared;
public var __id143_:Pared;
public var __id154_:RevoJoint;
public var __id142_:Pared;
public var __id144_:Pared;
public var __id145_:Pared;
public var __id146_:Pared;
public var __id147_:Pared;
public function STBC1_12(){
__setProp___id141__STBC1_1();
__setProp___id140__STBC1_1();
__setProp___id143__STBC1_1();
__setProp___id142__STBC1_1();
__setProp___id145__STBC1_1();
__setProp___id144__STBC1_1();
__setProp___id154__STBC1_1();
__setProp___id147__STBC1_1();
__setProp___id153__STBC1_1();
__setProp___id146__STBC1_1();
__setProp___id148__STBC1_1();
}
function __setProp___id142__STBC1_1(){
try {
__id142_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id142_.addToBackground = true;
__id142_.affectedByGravity = true;
__id142_.angularDamping = 0;
__id142_.convertToBitmap = false;
__id142_.linearDamping = 0;
try {
__id142_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id154__STBC1_1(){
try {
__id154_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id154_.forceResistance = 0;
__id154_.speed = -0.5;
__id154_.torque = 100000;
__id154_.torqueResistance = 0;
__id154_.useGround = true;
try {
__id154_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id143__STBC1_1(){
try {
__id143_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id143_.addToBackground = true;
__id143_.affectedByGravity = true;
__id143_.angularDamping = 0;
__id143_.convertToBitmap = false;
__id143_.linearDamping = 0;
try {
__id143_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id144__STBC1_1(){
try {
__id144_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id144_.addToBackground = true;
__id144_.affectedByGravity = true;
__id144_.angularDamping = 0;
__id144_.convertToBitmap = false;
__id144_.linearDamping = 0;
try {
__id144_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id145__STBC1_1(){
try {
__id145_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id145_.addToBackground = true;
__id145_.affectedByGravity = true;
__id145_.angularDamping = 0;
__id145_.convertToBitmap = false;
__id145_.linearDamping = 0;
try {
__id145_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id146__STBC1_1(){
try {
__id146_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id146_.addToBackground = true;
__id146_.affectedByGravity = true;
__id146_.angularDamping = 0;
__id146_.convertToBitmap = false;
__id146_.linearDamping = 0;
try {
__id146_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id147__STBC1_1(){
try {
__id147_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id147_.addToBackground = true;
__id147_.affectedByGravity = true;
__id147_.angularDamping = 0;
__id147_.convertToBitmap = false;
__id147_.linearDamping = 0;
try {
__id147_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id140__STBC1_1(){
try {
__id140_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id140_.addToBackground = true;
__id140_.affectedByGravity = true;
__id140_.angularDamping = 0;
__id140_.convertToBitmap = false;
__id140_.linearDamping = 0;
try {
__id140_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id148__STBC1_1(){
try {
__id148_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id148_.addToBackground = true;
__id148_.affectedByGravity = true;
__id148_.angularDamping = 0;
__id148_.convertToBitmap = false;
__id148_.linearDamping = 0;
try {
__id148_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id153__STBC1_1(){
try {
__id153_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id153_.addToBackground = false;
__id153_.affectedByGravity = false;
__id153_.angularDamping = 0;
__id153_.convertToBitmap = true;
__id153_.linearDamping = 0;
try {
__id153_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id141__STBC1_1(){
try {
__id141_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id141_.addToBackground = true;
__id141_.affectedByGravity = true;
__id141_.angularDamping = 0;
__id141_.convertToBitmap = false;
__id141_.linearDamping = 0;
try {
__id141_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 282
//STBC1_13 (STBC1_13)
package {
import Game.*;
public dynamic class STBC1_13 extends GameLevel {
public var __id165_:FlameMC;
public var __id166_:FlameMC;
public var __id167_:FlameMC;
public var __id155_:Pared;
public var __id156_:Pared;
public var __id161_:Pared;
public var __id157_:Pared;
public var __id158_:Pared;
public var __id160_:Pared;
public var __id159_:Pared;
public function STBC1_13(){
__setProp___id165__STBC1_1();
__setProp___id161__STBC1_1();
__setProp___id160__STBC1_1();
__setProp___id155__STBC1_1();
__setProp___id157__STBC1_1();
__setProp___id156__STBC1_1();
__setProp___id166__STBC1_1();
__setProp___id159__STBC1_1();
__setProp___id158__STBC1_1();
__setProp___id167__STBC1_1();
}
function __setProp___id167__STBC1_1(){
try {
__id167_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id167_.addToBackground = false;
__id167_.affectedByGravity = true;
__id167_.angularDamping = 0;
__id167_.convertToBitmap = false;
__id167_.delay = 0;
__id167_.duration = 0;
__id167_.frequency = 120;
__id167_.linearDamping = 0;
try {
__id167_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id155__STBC1_1(){
try {
__id155_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id155_.addToBackground = true;
__id155_.affectedByGravity = true;
__id155_.angularDamping = 0;
__id155_.convertToBitmap = false;
__id155_.linearDamping = 0;
try {
__id155_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id166__STBC1_1(){
try {
__id166_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id166_.addToBackground = false;
__id166_.affectedByGravity = true;
__id166_.angularDamping = 0;
__id166_.convertToBitmap = false;
__id166_.delay = 0;
__id166_.duration = 0;
__id166_.frequency = 120;
__id166_.linearDamping = 0;
try {
__id166_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id156__STBC1_1(){
try {
__id156_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id156_.addToBackground = true;
__id156_.affectedByGravity = true;
__id156_.angularDamping = 0;
__id156_.convertToBitmap = false;
__id156_.linearDamping = 0;
try {
__id156_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id161__STBC1_1(){
try {
__id161_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id161_.addToBackground = true;
__id161_.affectedByGravity = true;
__id161_.angularDamping = 0;
__id161_.convertToBitmap = false;
__id161_.linearDamping = 0;
try {
__id161_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id157__STBC1_1(){
try {
__id157_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id157_.addToBackground = true;
__id157_.affectedByGravity = true;
__id157_.angularDamping = 0;
__id157_.convertToBitmap = false;
__id157_.linearDamping = 0;
try {
__id157_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id160__STBC1_1(){
try {
__id160_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id160_.addToBackground = true;
__id160_.affectedByGravity = true;
__id160_.angularDamping = 0;
__id160_.convertToBitmap = false;
__id160_.linearDamping = 0;
try {
__id160_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id158__STBC1_1(){
try {
__id158_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id158_.addToBackground = true;
__id158_.affectedByGravity = true;
__id158_.angularDamping = 0;
__id158_.convertToBitmap = false;
__id158_.linearDamping = 0;
try {
__id158_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id159__STBC1_1(){
try {
__id159_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id159_.addToBackground = true;
__id159_.affectedByGravity = true;
__id159_.angularDamping = 0;
__id159_.convertToBitmap = false;
__id159_.linearDamping = 0;
try {
__id159_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id165__STBC1_1(){
try {
__id165_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id165_.addToBackground = false;
__id165_.affectedByGravity = true;
__id165_.angularDamping = 0;
__id165_.convertToBitmap = false;
__id165_.delay = 0;
__id165_.duration = 0;
__id165_.frequency = 120;
__id165_.linearDamping = 0;
try {
__id165_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 283
//STBC1_14 (STBC1_14)
package {
import Game.*;
public dynamic class STBC1_14 extends GameLevel {
public var __id192_:FlameMC;
public var __id180_:Pared;
public var __id181_:Pared;
public var __id193_:FlameMC;
public var __id170_:Pared;
public var __id194_:FlameMC;
public var __id182_:Pared;
public var __id195_:FlameMC;
public var __id183_:Pared;
public var __id171_:Pared;
public var __id184_:Pared;
public var __id172_:Pared;
public var __id185_:Pared;
public var __id173_:Pared;
public var __id174_:Pared;
public var __id186_:FlameMC;
public var __id187_:FlameMC;
public var __id175_:Pared;
public var __id188_:FlameMC;
public var __id176_:Pared;
public var __id177_:Pared;
public var __id189_:FlameMC;
public var __id178_:Pared;
public var __id179_:Pared;
public var __id168_:Pared;
public var __id169_:Pared;
public var __id190_:FlameMC;
public var __id191_:FlameMC;
public function STBC1_14(){
__setProp___id171__STBC1_1();
__setProp___id186__STBC1_1();
__setProp___id170__STBC1_1();
__setProp___id173__STBC1_1();
__setProp___id191__STBC1_1();
__setProp___id172__STBC1_1();
__setProp___id175__STBC1_1();
__setProp___id188__STBC1_1();
__setProp___id174__STBC1_1();
__setProp___id193__STBC1_1();
__setProp___id187__STBC1_1();
__setProp___id177__STBC1_1();
__setProp___id190__STBC1_1();
__setProp___id189__STBC1_1();
__setProp___id179__STBC1_1();
__setProp___id176__STBC1_1();
__setProp___id181__STBC1_1();
__setProp___id178__STBC1_1();
__setProp___id180__STBC1_1();
__setProp___id192__STBC1_1();
__setProp___id183__STBC1_1();
__setProp___id169__STBC1_1();
__setProp___id182__STBC1_1();
__setProp___id168__STBC1_1();
__setProp___id195__STBC1_1();
__setProp___id194__STBC1_1();
__setProp___id185__STBC1_1();
__setProp___id184__STBC1_1();
}
function __setProp___id178__STBC1_1(){
try {
__id178_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id178_.addToBackground = true;
__id178_.affectedByGravity = true;
__id178_.angularDamping = 0;
__id178_.convertToBitmap = false;
__id178_.linearDamping = 0;
try {
__id178_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id182__STBC1_1(){
try {
__id182_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id182_.addToBackground = true;
__id182_.affectedByGravity = true;
__id182_.angularDamping = 0;
__id182_.convertToBitmap = false;
__id182_.linearDamping = 0;
try {
__id182_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id171__STBC1_1(){
try {
__id171_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id171_.addToBackground = true;
__id171_.affectedByGravity = true;
__id171_.angularDamping = 0;
__id171_.convertToBitmap = false;
__id171_.linearDamping = 0;
try {
__id171_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id195__STBC1_1(){
try {
__id195_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id195_.addToBackground = false;
__id195_.affectedByGravity = true;
__id195_.angularDamping = 0;
__id195_.convertToBitmap = false;
__id195_.delay = 30;
__id195_.duration = 1;
__id195_.frequency = 120;
__id195_.linearDamping = 0;
try {
__id195_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id184__STBC1_1(){
try {
__id184_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id184_.addToBackground = true;
__id184_.affectedByGravity = true;
__id184_.angularDamping = 0;
__id184_.convertToBitmap = false;
__id184_.linearDamping = 0;
try {
__id184_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id173__STBC1_1(){
try {
__id173_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id173_.addToBackground = true;
__id173_.affectedByGravity = true;
__id173_.angularDamping = 0;
__id173_.convertToBitmap = false;
__id173_.linearDamping = 0;
try {
__id173_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id169__STBC1_1(){
try {
__id169_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id169_.addToBackground = true;
__id169_.affectedByGravity = true;
__id169_.angularDamping = 0;
__id169_.convertToBitmap = false;
__id169_.linearDamping = 0;
try {
__id169_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id186__STBC1_1(){
try {
__id186_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id186_.addToBackground = false;
__id186_.affectedByGravity = true;
__id186_.angularDamping = 0;
__id186_.convertToBitmap = false;
__id186_.delay = 0;
__id186_.duration = 1;
__id186_.frequency = 120;
__id186_.linearDamping = 0;
try {
__id186_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id190__STBC1_1(){
try {
__id190_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id190_.addToBackground = false;
__id190_.affectedByGravity = true;
__id190_.angularDamping = 0;
__id190_.convertToBitmap = false;
__id190_.delay = 5;
__id190_.duration = 1;
__id190_.frequency = 60;
__id190_.linearDamping = 0;
try {
__id190_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id175__STBC1_1(){
try {
__id175_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id175_.addToBackground = true;
__id175_.affectedByGravity = true;
__id175_.angularDamping = 0;
__id175_.convertToBitmap = false;
__id175_.linearDamping = 0;
try {
__id175_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id188__STBC1_1(){
try {
__id188_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id188_.addToBackground = false;
__id188_.affectedByGravity = true;
__id188_.angularDamping = 0;
__id188_.convertToBitmap = false;
__id188_.delay = 0;
__id188_.duration = 1;
__id188_.frequency = 120;
__id188_.linearDamping = 0;
try {
__id188_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id192__STBC1_1(){
try {
__id192_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id192_.addToBackground = false;
__id192_.affectedByGravity = true;
__id192_.angularDamping = 0;
__id192_.convertToBitmap = false;
__id192_.delay = 15;
__id192_.duration = 1;
__id192_.frequency = 60;
__id192_.linearDamping = 0;
try {
__id192_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id177__STBC1_1(){
try {
__id177_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id177_.addToBackground = true;
__id177_.affectedByGravity = true;
__id177_.angularDamping = 0;
__id177_.convertToBitmap = false;
__id177_.linearDamping = 0;
try {
__id177_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id181__STBC1_1(){
try {
__id181_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id181_.addToBackground = true;
__id181_.affectedByGravity = true;
__id181_.angularDamping = 0;
__id181_.convertToBitmap = false;
__id181_.linearDamping = 0;
try {
__id181_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id170__STBC1_1(){
try {
__id170_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id170_.addToBackground = true;
__id170_.affectedByGravity = true;
__id170_.angularDamping = 0;
__id170_.convertToBitmap = false;
__id170_.linearDamping = 0;
try {
__id170_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id194__STBC1_1(){
try {
__id194_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id194_.addToBackground = false;
__id194_.affectedByGravity = true;
__id194_.angularDamping = 0;
__id194_.convertToBitmap = false;
__id194_.delay = 25;
__id194_.duration = 1;
__id194_.frequency = 60;
__id194_.linearDamping = 0;
try {
__id194_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id179__STBC1_1(){
try {
__id179_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id179_.addToBackground = true;
__id179_.affectedByGravity = true;
__id179_.angularDamping = 0;
__id179_.convertToBitmap = false;
__id179_.linearDamping = 0;
try {
__id179_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id183__STBC1_1(){
try {
__id183_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id183_.addToBackground = true;
__id183_.affectedByGravity = true;
__id183_.angularDamping = 0;
__id183_.convertToBitmap = false;
__id183_.linearDamping = 0;
try {
__id183_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id168__STBC1_1(){
try {
__id168_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id168_.addToBackground = true;
__id168_.affectedByGravity = true;
__id168_.angularDamping = 0;
__id168_.convertToBitmap = false;
__id168_.linearDamping = 0;
try {
__id168_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id185__STBC1_1(){
try {
__id185_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id185_.addToBackground = true;
__id185_.affectedByGravity = true;
__id185_.angularDamping = 0;
__id185_.convertToBitmap = false;
__id185_.linearDamping = 0;
try {
__id185_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id172__STBC1_1(){
try {
__id172_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id172_.addToBackground = true;
__id172_.affectedByGravity = true;
__id172_.angularDamping = 0;
__id172_.convertToBitmap = false;
__id172_.linearDamping = 0;
try {
__id172_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id174__STBC1_1(){
try {
__id174_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id174_.addToBackground = true;
__id174_.affectedByGravity = true;
__id174_.angularDamping = 0;
__id174_.convertToBitmap = false;
__id174_.linearDamping = 0;
try {
__id174_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id191__STBC1_1(){
try {
__id191_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id191_.addToBackground = false;
__id191_.affectedByGravity = true;
__id191_.angularDamping = 0;
__id191_.convertToBitmap = false;
__id191_.delay = 10;
__id191_.duration = 1;
__id191_.frequency = 60;
__id191_.linearDamping = 0;
try {
__id191_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id187__STBC1_1(){
try {
__id187_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id187_.addToBackground = false;
__id187_.affectedByGravity = true;
__id187_.angularDamping = 0;
__id187_.convertToBitmap = false;
__id187_.delay = 30;
__id187_.duration = 1;
__id187_.frequency = 110;
__id187_.linearDamping = 0;
try {
__id187_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id176__STBC1_1(){
try {
__id176_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id176_.addToBackground = true;
__id176_.affectedByGravity = true;
__id176_.angularDamping = 0;
__id176_.convertToBitmap = false;
__id176_.linearDamping = 0;
try {
__id176_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id189__STBC1_1(){
try {
__id189_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id189_.addToBackground = false;
__id189_.affectedByGravity = true;
__id189_.angularDamping = 0;
__id189_.convertToBitmap = false;
__id189_.delay = 0;
__id189_.duration = 1;
__id189_.frequency = 60;
__id189_.linearDamping = 0;
try {
__id189_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id180__STBC1_1(){
try {
__id180_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id180_.addToBackground = true;
__id180_.affectedByGravity = true;
__id180_.angularDamping = 0;
__id180_.convertToBitmap = false;
__id180_.linearDamping = 0;
try {
__id180_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id193__STBC1_1(){
try {
__id193_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id193_.addToBackground = false;
__id193_.affectedByGravity = true;
__id193_.angularDamping = 0;
__id193_.convertToBitmap = false;
__id193_.delay = 20;
__id193_.duration = 1;
__id193_.frequency = 60;
__id193_.linearDamping = 0;
try {
__id193_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 284
//STBC1_15 (STBC1_15)
package {
import Game.*;
public dynamic class STBC1_15 extends GameLevel {
public var __id210_:Pared;
public var __id211_:Pared;
public var __id223_:FlameMC;
public var __id224_:FlameMC;
public var __id200_:Pared;
public var __id201_:Pared;
public var __id196_:Pared;
public var __id225_:FlameMC;
public var __id226_:FlameMC;
public var __id214_:Pared;
public var __id202_:Pared;
public var __id197_:Pared;
public var __id227_:FlameMC;
public var __id215_:Pared;
public var __id203_:Pared;
public var __id198_:Pared;
public var __id204_:Pared;
public var __id216_:Pared;
public var __id228_:FlameMC;
public var __id199_:Pared;
public var __id217_:Pared;
public var __id205_:Pared;
public var __id206_:Pared;
public var __id218_:Pared;
public var __id207_:Pared;
public var __id208_:Pared;
public var __id209_:Pared;
public function STBC1_15(){
__setProp___id196__STBC1_1();
__setProp___id225__STBC1_1();
__setProp___id224__STBC1_1();
__setProp___id202__STBC1_1();
__setProp___id218__STBC1_1();
__setProp___id210__STBC1_1();
__setProp___id203__STBC1_1();
__setProp___id227__STBC1_1();
__setProp___id226__STBC1_1();
__setProp___id211__STBC1_1();
__setProp___id200__STBC1_1();
__setProp___id216__STBC1_1();
__setProp___id201__STBC1_1();
__setProp___id223__STBC1_1();
__setProp___id217__STBC1_1();
__setProp___id208__STBC1_1();
__setProp___id206__STBC1_1();
__setProp___id214__STBC1_1();
__setProp___id209__STBC1_1();
__setProp___id207__STBC1_1();
__setProp___id198__STBC1_1();
__setProp___id215__STBC1_1();
__setProp___id204__STBC1_1();
__setProp___id205__STBC1_1();
__setProp___id228__STBC1_1();
__setProp___id199__STBC1_1();
__setProp___id197__STBC1_1();
}
function __setProp___id223__STBC1_1(){
try {
__id223_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id223_.addToBackground = false;
__id223_.affectedByGravity = true;
__id223_.angularDamping = 0;
__id223_.convertToBitmap = false;
__id223_.delay = 30;
__id223_.duration = 1;
__id223_.frequency = 130;
__id223_.linearDamping = 0;
try {
__id223_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id208__STBC1_1(){
try {
__id208_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id208_.addToBackground = true;
__id208_.affectedByGravity = true;
__id208_.angularDamping = 0;
__id208_.convertToBitmap = false;
__id208_.linearDamping = 0;
try {
__id208_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id201__STBC1_1(){
try {
__id201_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id201_.addToBackground = true;
__id201_.affectedByGravity = true;
__id201_.angularDamping = 0;
__id201_.convertToBitmap = false;
__id201_.linearDamping = 0;
try {
__id201_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id225__STBC1_1(){
try {
__id225_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id225_.addToBackground = false;
__id225_.affectedByGravity = true;
__id225_.angularDamping = 0;
__id225_.convertToBitmap = false;
__id225_.delay = 60;
__id225_.duration = 1;
__id225_.frequency = 130;
__id225_.linearDamping = 0;
try {
__id225_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id214__STBC1_1(){
try {
__id214_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id214_.addToBackground = true;
__id214_.affectedByGravity = true;
__id214_.angularDamping = 0;
__id214_.convertToBitmap = false;
__id214_.linearDamping = 0;
try {
__id214_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id197__STBC1_1(){
try {
__id197_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id197_.addToBackground = true;
__id197_.affectedByGravity = true;
__id197_.angularDamping = 0;
__id197_.convertToBitmap = false;
__id197_.linearDamping = 0;
try {
__id197_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id227__STBC1_1(){
try {
__id227_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id227_.addToBackground = false;
__id227_.affectedByGravity = true;
__id227_.angularDamping = 0;
__id227_.convertToBitmap = false;
__id227_.delay = 1;
__id227_.duration = 10000000;
__id227_.frequency = 10000000;
__id227_.linearDamping = 0;
try {
__id227_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id203__STBC1_1(){
try {
__id203_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id203_.addToBackground = true;
__id203_.affectedByGravity = true;
__id203_.angularDamping = 0;
__id203_.convertToBitmap = false;
__id203_.linearDamping = 0;
try {
__id203_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id216__STBC1_1(){
try {
__id216_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id216_.addToBackground = true;
__id216_.affectedByGravity = true;
__id216_.angularDamping = 0;
__id216_.convertToBitmap = false;
__id216_.linearDamping = 0;
try {
__id216_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id199__STBC1_1(){
try {
__id199_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id199_.addToBackground = true;
__id199_.affectedByGravity = true;
__id199_.angularDamping = 0;
__id199_.convertToBitmap = false;
__id199_.linearDamping = 0;
try {
__id199_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id205__STBC1_1(){
try {
__id205_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id205_.addToBackground = true;
__id205_.affectedByGravity = true;
__id205_.angularDamping = 0;
__id205_.convertToBitmap = false;
__id205_.linearDamping = 0;
try {
__id205_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id218__STBC1_1(){
try {
__id218_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id218_.addToBackground = true;
__id218_.affectedByGravity = true;
__id218_.angularDamping = 0;
__id218_.convertToBitmap = false;
__id218_.linearDamping = 0;
try {
__id218_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id207__STBC1_1(){
try {
__id207_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id207_.addToBackground = true;
__id207_.affectedByGravity = true;
__id207_.angularDamping = 0;
__id207_.convertToBitmap = false;
__id207_.linearDamping = 0;
try {
__id207_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id211__STBC1_1(){
try {
__id211_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id211_.addToBackground = true;
__id211_.affectedByGravity = true;
__id211_.angularDamping = 0;
__id211_.convertToBitmap = false;
__id211_.linearDamping = 0;
try {
__id211_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id200__STBC1_1(){
try {
__id200_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id200_.addToBackground = true;
__id200_.affectedByGravity = true;
__id200_.angularDamping = 0;
__id200_.convertToBitmap = false;
__id200_.linearDamping = 0;
try {
__id200_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id224__STBC1_1(){
try {
__id224_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id224_.addToBackground = false;
__id224_.affectedByGravity = true;
__id224_.angularDamping = 0;
__id224_.convertToBitmap = false;
__id224_.delay = 0;
__id224_.duration = 1;
__id224_.frequency = 130;
__id224_.linearDamping = 0;
try {
__id224_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id209__STBC1_1(){
try {
__id209_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id209_.addToBackground = true;
__id209_.affectedByGravity = true;
__id209_.angularDamping = 0;
__id209_.convertToBitmap = false;
__id209_.linearDamping = 0;
try {
__id209_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id196__STBC1_1(){
try {
__id196_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id196_.addToBackground = true;
__id196_.affectedByGravity = true;
__id196_.angularDamping = 0;
__id196_.convertToBitmap = false;
__id196_.linearDamping = 0;
try {
__id196_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id202__STBC1_1(){
try {
__id202_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id202_.addToBackground = true;
__id202_.affectedByGravity = true;
__id202_.angularDamping = 0;
__id202_.convertToBitmap = false;
__id202_.linearDamping = 0;
try {
__id202_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id226__STBC1_1(){
try {
__id226_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id226_.addToBackground = false;
__id226_.affectedByGravity = true;
__id226_.angularDamping = 0;
__id226_.convertToBitmap = false;
__id226_.delay = 1;
__id226_.duration = 10000000;
__id226_.frequency = 10000000;
__id226_.linearDamping = 0;
try {
__id226_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id215__STBC1_1(){
try {
__id215_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id215_.addToBackground = true;
__id215_.affectedByGravity = true;
__id215_.angularDamping = 0;
__id215_.convertToBitmap = false;
__id215_.linearDamping = 0;
try {
__id215_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id204__STBC1_1(){
try {
__id204_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id204_.addToBackground = true;
__id204_.affectedByGravity = true;
__id204_.angularDamping = 0;
__id204_.convertToBitmap = false;
__id204_.linearDamping = 0;
try {
__id204_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id198__STBC1_1(){
try {
__id198_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id198_.addToBackground = true;
__id198_.affectedByGravity = true;
__id198_.angularDamping = 0;
__id198_.convertToBitmap = false;
__id198_.linearDamping = 0;
try {
__id198_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id228__STBC1_1(){
try {
__id228_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id228_.addToBackground = false;
__id228_.affectedByGravity = true;
__id228_.angularDamping = 0;
__id228_.convertToBitmap = false;
__id228_.delay = 1;
__id228_.duration = 10000000;
__id228_.frequency = 10000000;
__id228_.linearDamping = 0;
try {
__id228_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id217__STBC1_1(){
try {
__id217_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id217_.addToBackground = true;
__id217_.affectedByGravity = true;
__id217_.angularDamping = 0;
__id217_.convertToBitmap = false;
__id217_.linearDamping = 0;
try {
__id217_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id206__STBC1_1(){
try {
__id206_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id206_.addToBackground = true;
__id206_.affectedByGravity = true;
__id206_.angularDamping = 0;
__id206_.convertToBitmap = false;
__id206_.linearDamping = 0;
try {
__id206_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id210__STBC1_1(){
try {
__id210_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id210_.addToBackground = true;
__id210_.affectedByGravity = true;
__id210_.angularDamping = 0;
__id210_.convertToBitmap = false;
__id210_.linearDamping = 0;
try {
__id210_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 285
//STBC1_16 (STBC1_16)
package {
import Game.*;
public dynamic class STBC1_16 extends GameLevel {
public var __id245_:Pared;
public var __id233_:Pared;
public var __id246_:Pared;
public var __id234_:Pared;
public var __id247_:Pared;
public var __id235_:Pared;
public var __id236_:Pared;
public var __id248_:Pared;
public var __id249_:Pared;
public var __id237_:Pared;
public var __id238_:Pared;
public var __id239_:Pared;
public var __id229_:Pared;
public var __id250_:FlameMC;
public var __id251_:FlameMC;
public var __id252_:FlameMC;
public var __id240_:Pared;
public var __id253_:FlameMC;
public var __id241_:Pared;
public var __id254_:FlameMC;
public var __id242_:Pared;
public var __id230_:Pared;
public var __id243_:Pared;
public var __id231_:Pared;
public var __id232_:Pared;
public var __id244_:Pared;
public function STBC1_16(){
__setProp___id249__STBC1_1();
__setProp___id254__STBC1_1();
__setProp___id242__STBC1_1();
__setProp___id243__STBC1_1();
__setProp___id240__STBC1_1();
__setProp___id241__STBC1_1();
__setProp___id238__STBC1_1();
__setProp___id246__STBC1_1();
__setProp___id239__STBC1_1();
__setProp___id247__STBC1_1();
__setProp___id232__STBC1_1();
__setProp___id244__STBC1_1();
__setProp___id233__STBC1_1();
__setProp___id250__STBC1_1();
__setProp___id245__STBC1_1();
__setProp___id230__STBC1_1();
__setProp___id229__STBC1_1();
__setProp___id231__STBC1_1();
__setProp___id236__STBC1_1();
__setProp___id252__STBC1_1();
__setProp___id237__STBC1_1();
__setProp___id251__STBC1_1();
__setProp___id234__STBC1_1();
__setProp___id253__STBC1_1();
__setProp___id235__STBC1_1();
__setProp___id248__STBC1_1();
}
function __setProp___id247__STBC1_1(){
try {
__id247_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id247_.addToBackground = true;
__id247_.affectedByGravity = true;
__id247_.angularDamping = 0;
__id247_.convertToBitmap = false;
__id247_.linearDamping = 0;
try {
__id247_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id251__STBC1_1(){
try {
__id251_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id251_.addToBackground = false;
__id251_.affectedByGravity = true;
__id251_.angularDamping = 0;
__id251_.convertToBitmap = false;
__id251_.delay = 30;
__id251_.duration = 1;
__id251_.frequency = 120;
__id251_.linearDamping = 0;
try {
__id251_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id236__STBC1_1(){
try {
__id236_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id236_.addToBackground = true;
__id236_.affectedByGravity = true;
__id236_.angularDamping = 0;
__id236_.convertToBitmap = false;
__id236_.linearDamping = 0;
try {
__id236_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id240__STBC1_1(){
try {
__id240_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id240_.addToBackground = true;
__id240_.affectedByGravity = true;
__id240_.angularDamping = 0;
__id240_.convertToBitmap = false;
__id240_.linearDamping = 0;
try {
__id240_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id249__STBC1_1(){
try {
__id249_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id249_.addToBackground = true;
__id249_.affectedByGravity = true;
__id249_.angularDamping = 0;
__id249_.convertToBitmap = false;
__id249_.linearDamping = 0;
try {
__id249_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id238__STBC1_1(){
try {
__id238_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id238_.addToBackground = true;
__id238_.affectedByGravity = true;
__id238_.angularDamping = 0;
__id238_.convertToBitmap = false;
__id238_.linearDamping = 0;
try {
__id238_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id242__STBC1_1(){
try {
__id242_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id242_.addToBackground = true;
__id242_.affectedByGravity = true;
__id242_.angularDamping = 0;
__id242_.convertToBitmap = false;
__id242_.linearDamping = 0;
try {
__id242_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id253__STBC1_1(){
try {
__id253_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id253_.addToBackground = false;
__id253_.affectedByGravity = true;
__id253_.angularDamping = 0;
__id253_.convertToBitmap = false;
__id253_.delay = 90;
__id253_.duration = 1;
__id253_.frequency = 120;
__id253_.linearDamping = 0;
try {
__id253_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id231__STBC1_1(){
try {
__id231_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id231_.addToBackground = true;
__id231_.affectedByGravity = true;
__id231_.angularDamping = 0;
__id231_.convertToBitmap = false;
__id231_.linearDamping = 0;
try {
__id231_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id244__STBC1_1(){
try {
__id244_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id244_.addToBackground = true;
__id244_.affectedByGravity = true;
__id244_.angularDamping = 0;
__id244_.convertToBitmap = false;
__id244_.linearDamping = 0;
try {
__id244_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id229__STBC1_1(){
try {
__id229_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id229_.addToBackground = true;
__id229_.affectedByGravity = true;
__id229_.angularDamping = 0;
__id229_.convertToBitmap = false;
__id229_.linearDamping = 0;
try {
__id229_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id233__STBC1_1(){
try {
__id233_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id233_.addToBackground = true;
__id233_.affectedByGravity = true;
__id233_.angularDamping = 0;
__id233_.convertToBitmap = false;
__id233_.linearDamping = 0;
try {
__id233_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id246__STBC1_1(){
try {
__id246_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id246_.addToBackground = true;
__id246_.affectedByGravity = true;
__id246_.angularDamping = 0;
__id246_.convertToBitmap = false;
__id246_.linearDamping = 0;
try {
__id246_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id235__STBC1_1(){
try {
__id235_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id235_.addToBackground = true;
__id235_.affectedByGravity = true;
__id235_.angularDamping = 0;
__id235_.convertToBitmap = false;
__id235_.linearDamping = 0;
try {
__id235_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id250__STBC1_1(){
try {
__id250_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id250_.addToBackground = false;
__id250_.affectedByGravity = true;
__id250_.angularDamping = 0;
__id250_.convertToBitmap = false;
__id250_.delay = 0;
__id250_.duration = 1;
__id250_.frequency = 120;
__id250_.linearDamping = 0;
try {
__id250_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id248__STBC1_1(){
try {
__id248_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id248_.addToBackground = true;
__id248_.affectedByGravity = true;
__id248_.angularDamping = 0;
__id248_.convertToBitmap = false;
__id248_.linearDamping = 0;
try {
__id248_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id252__STBC1_1(){
try {
__id252_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id252_.addToBackground = false;
__id252_.affectedByGravity = true;
__id252_.angularDamping = 0;
__id252_.convertToBitmap = false;
__id252_.delay = 60;
__id252_.duration = 1;
__id252_.frequency = 120;
__id252_.linearDamping = 0;
try {
__id252_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id241__STBC1_1(){
try {
__id241_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id241_.addToBackground = true;
__id241_.affectedByGravity = true;
__id241_.angularDamping = 0;
__id241_.convertToBitmap = false;
__id241_.linearDamping = 0;
try {
__id241_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id237__STBC1_1(){
try {
__id237_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id237_.addToBackground = true;
__id237_.affectedByGravity = true;
__id237_.angularDamping = 0;
__id237_.convertToBitmap = false;
__id237_.linearDamping = 0;
try {
__id237_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id254__STBC1_1(){
try {
__id254_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id254_.addToBackground = false;
__id254_.affectedByGravity = true;
__id254_.angularDamping = 0;
__id254_.convertToBitmap = false;
__id254_.delay = 120;
__id254_.duration = 1;
__id254_.frequency = 120;
__id254_.linearDamping = 0;
try {
__id254_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id230__STBC1_1(){
try {
__id230_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id230_.addToBackground = true;
__id230_.affectedByGravity = true;
__id230_.angularDamping = 0;
__id230_.convertToBitmap = false;
__id230_.linearDamping = 0;
try {
__id230_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id243__STBC1_1(){
try {
__id243_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id243_.addToBackground = true;
__id243_.affectedByGravity = true;
__id243_.angularDamping = 0;
__id243_.convertToBitmap = false;
__id243_.linearDamping = 0;
try {
__id243_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id232__STBC1_1(){
try {
__id232_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id232_.addToBackground = true;
__id232_.affectedByGravity = true;
__id232_.angularDamping = 0;
__id232_.convertToBitmap = false;
__id232_.linearDamping = 0;
try {
__id232_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id239__STBC1_1(){
try {
__id239_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id239_.addToBackground = true;
__id239_.affectedByGravity = true;
__id239_.angularDamping = 0;
__id239_.convertToBitmap = false;
__id239_.linearDamping = 0;
try {
__id239_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id245__STBC1_1(){
try {
__id245_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id245_.addToBackground = true;
__id245_.affectedByGravity = true;
__id245_.angularDamping = 0;
__id245_.convertToBitmap = false;
__id245_.linearDamping = 0;
try {
__id245_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id234__STBC1_1(){
try {
__id234_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id234_.addToBackground = true;
__id234_.affectedByGravity = true;
__id234_.angularDamping = 0;
__id234_.convertToBitmap = false;
__id234_.linearDamping = 0;
try {
__id234_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 286
//STBC1_17 (STBC1_17)
package {
import Game.*;
public dynamic class STBC1_17 extends GameLevel {
public var __id269_:RevoJoint;
public var __id257_:Pared;
public var __id258_:Pared;
public var __id259_:Pared;
public var __id260_:Pared;
public var __id261_:Pared;
public var __id262_:Pared;
public var __id264_:BloqueMovilSTBC17;
public var __id265_:BloqueMovilSTBC17;
public var __id266_:Pared;
public var __id255_:Pared;
public var __id267_:Pared;
public var __id268_:RevoJoint;
public var __id256_:Pared;
public function STBC1_17(){
__setProp___id262__STBC1_1();
__setProp___id268__STBC1_1();
__setProp___id256__STBC1_1();
__setProp___id260__STBC1_1();
__setProp___id257__STBC1_1();
__setProp___id261__STBC1_1();
__setProp___id269__STBC1_1();
__setProp___id266__STBC1_1();
__setProp___id255__STBC1_1();
__setProp___id267__STBC1_1();
__setProp___id264__STBC1_1();
__setProp___id258__STBC1_1();
__setProp___id259__STBC1_1();
__setProp___id265__STBC1_1();
}
function __setProp___id264__STBC1_1(){
try {
__id264_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id264_.addToBackground = false;
__id264_.affectedByGravity = false;
__id264_.angularDamping = 0;
__id264_.convertToBitmap = true;
__id264_.linearDamping = 0;
try {
__id264_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id266__STBC1_1(){
try {
__id266_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id266_.addToBackground = true;
__id266_.affectedByGravity = true;
__id266_.angularDamping = 0;
__id266_.convertToBitmap = false;
__id266_.linearDamping = 0;
try {
__id266_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id255__STBC1_1(){
try {
__id255_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id255_.addToBackground = true;
__id255_.affectedByGravity = true;
__id255_.angularDamping = 0;
__id255_.convertToBitmap = false;
__id255_.linearDamping = 0;
try {
__id255_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id268__STBC1_1(){
try {
__id268_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id268_.forceResistance = 0;
__id268_.speed = 0.7;
__id268_.torque = 1000;
__id268_.torqueResistance = 0;
__id268_.useGround = true;
try {
__id268_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id257__STBC1_1(){
try {
__id257_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id257_.addToBackground = true;
__id257_.affectedByGravity = true;
__id257_.angularDamping = 0;
__id257_.convertToBitmap = false;
__id257_.linearDamping = 0;
try {
__id257_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id261__STBC1_1(){
try {
__id261_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id261_.addToBackground = true;
__id261_.affectedByGravity = true;
__id261_.angularDamping = 0;
__id261_.convertToBitmap = false;
__id261_.linearDamping = 0;
try {
__id261_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id259__STBC1_1(){
try {
__id259_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id259_.addToBackground = true;
__id259_.affectedByGravity = true;
__id259_.angularDamping = 0;
__id259_.convertToBitmap = false;
__id259_.linearDamping = 0;
try {
__id259_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id265__STBC1_1(){
try {
__id265_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id265_.addToBackground = false;
__id265_.affectedByGravity = false;
__id265_.angularDamping = 0;
__id265_.convertToBitmap = true;
__id265_.linearDamping = 0;
try {
__id265_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id267__STBC1_1(){
try {
__id267_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id267_.addToBackground = true;
__id267_.affectedByGravity = true;
__id267_.angularDamping = 0;
__id267_.convertToBitmap = false;
__id267_.linearDamping = 0;
try {
__id267_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id260__STBC1_1(){
try {
__id260_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id260_.addToBackground = true;
__id260_.affectedByGravity = true;
__id260_.angularDamping = 0;
__id260_.convertToBitmap = false;
__id260_.linearDamping = 0;
try {
__id260_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id256__STBC1_1(){
try {
__id256_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id256_.addToBackground = true;
__id256_.affectedByGravity = true;
__id256_.angularDamping = 0;
__id256_.convertToBitmap = false;
__id256_.linearDamping = 0;
try {
__id256_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id269__STBC1_1(){
try {
__id269_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id269_.forceResistance = 0;
__id269_.speed = 0.7;
__id269_.torque = 1000;
__id269_.torqueResistance = 0;
__id269_.useGround = true;
try {
__id269_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id258__STBC1_1(){
try {
__id258_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id258_.addToBackground = true;
__id258_.affectedByGravity = true;
__id258_.angularDamping = 0;
__id258_.convertToBitmap = false;
__id258_.linearDamping = 0;
try {
__id258_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id262__STBC1_1(){
try {
__id262_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id262_.addToBackground = true;
__id262_.affectedByGravity = true;
__id262_.angularDamping = 0;
__id262_.convertToBitmap = false;
__id262_.linearDamping = 0;
try {
__id262_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 287
//STBC1_18 (STBC1_18)
package {
import Game.*;
public dynamic class STBC1_18 extends GameLevel {
public var __id280_:Pared;
public var __id281_:FlameMC;
public var __id282_:FlameMC;
public var __id270_:Pared;
public var __id271_:Pared;
public var __id272_:Pared;
public var __id273_:Pared;
public var __id274_:Pared;
public var __id276_:Pared;
public var __id275_:Pared;
public var __id277_:Pared;
public var __id278_:Pared;
public var __id279_:Pared;
public function STBC1_18(){
__setProp___id281__STBC1_1();
__setProp___id272__STBC1_1();
__setProp___id273__STBC1_1();
__setProp___id282__STBC1_1();
__setProp___id270__STBC1_1();
__setProp___id271__STBC1_1();
__setProp___id276__STBC1_1();
__setProp___id277__STBC1_1();
__setProp___id274__STBC1_1();
__setProp___id278__STBC1_1();
__setProp___id275__STBC1_1();
__setProp___id280__STBC1_1();
__setProp___id279__STBC1_1();
}
function __setProp___id275__STBC1_1(){
try {
__id275_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id275_.addToBackground = true;
__id275_.affectedByGravity = true;
__id275_.angularDamping = 0;
__id275_.convertToBitmap = false;
__id275_.linearDamping = 0;
try {
__id275_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id281__STBC1_1(){
try {
__id281_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id281_.addToBackground = false;
__id281_.affectedByGravity = true;
__id281_.angularDamping = 0;
__id281_.convertToBitmap = false;
__id281_.delay = 0;
__id281_.duration = 1;
__id281_.frequency = 130;
__id281_.linearDamping = 0;
try {
__id281_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id277__STBC1_1(){
try {
__id277_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id277_.addToBackground = true;
__id277_.affectedByGravity = true;
__id277_.angularDamping = 0;
__id277_.convertToBitmap = false;
__id277_.linearDamping = 0;
try {
__id277_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id270__STBC1_1(){
try {
__id270_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id270_.addToBackground = true;
__id270_.affectedByGravity = true;
__id270_.angularDamping = 0;
__id270_.convertToBitmap = false;
__id270_.linearDamping = 0;
try {
__id270_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id279__STBC1_1(){
try {
__id279_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id279_.addToBackground = true;
__id279_.affectedByGravity = true;
__id279_.angularDamping = 0;
__id279_.convertToBitmap = false;
__id279_.linearDamping = 0;
try {
__id279_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id272__STBC1_1(){
try {
__id272_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id272_.addToBackground = true;
__id272_.affectedByGravity = true;
__id272_.angularDamping = 0;
__id272_.convertToBitmap = false;
__id272_.linearDamping = 0;
try {
__id272_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id274__STBC1_1(){
try {
__id274_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id274_.addToBackground = true;
__id274_.affectedByGravity = true;
__id274_.angularDamping = 0;
__id274_.convertToBitmap = false;
__id274_.linearDamping = 0;
try {
__id274_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id276__STBC1_1(){
try {
__id276_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id276_.addToBackground = true;
__id276_.affectedByGravity = true;
__id276_.angularDamping = 0;
__id276_.convertToBitmap = false;
__id276_.linearDamping = 0;
try {
__id276_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id280__STBC1_1(){
try {
__id280_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id280_.addToBackground = true;
__id280_.affectedByGravity = true;
__id280_.angularDamping = 0;
__id280_.convertToBitmap = false;
__id280_.linearDamping = 0;
try {
__id280_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id282__STBC1_1(){
try {
__id282_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id282_.addToBackground = false;
__id282_.affectedByGravity = true;
__id282_.angularDamping = 0;
__id282_.convertToBitmap = false;
__id282_.delay = 0;
__id282_.duration = 1;
__id282_.frequency = 130;
__id282_.linearDamping = 0;
try {
__id282_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id278__STBC1_1(){
try {
__id278_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id278_.addToBackground = true;
__id278_.affectedByGravity = true;
__id278_.angularDamping = 0;
__id278_.convertToBitmap = false;
__id278_.linearDamping = 0;
try {
__id278_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id271__STBC1_1(){
try {
__id271_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id271_.addToBackground = true;
__id271_.affectedByGravity = true;
__id271_.angularDamping = 0;
__id271_.convertToBitmap = false;
__id271_.linearDamping = 0;
try {
__id271_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id273__STBC1_1(){
try {
__id273_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id273_.addToBackground = true;
__id273_.affectedByGravity = true;
__id273_.angularDamping = 0;
__id273_.convertToBitmap = false;
__id273_.linearDamping = 0;
try {
__id273_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 288
//STBC1_2 (STBC1_2)
package {
import Game.*;
public dynamic class STBC1_2 extends GameLevel {
public var __id20_:Pared;
public var __id17_:Pared;
public var __id18_:Pared;
public var __id23_:Pared;
public var __id19_:Pared;
public var __id24_:Pared;
public function STBC1_2(){
__setProp___id20__STBC1_1();
__setProp___id18__STBC1_1();
__setProp___id23__STBC1_1();
__setProp___id19__STBC1_1();
__setProp___id17__STBC1_1();
__setProp___id24__STBC1_1();
}
function __setProp___id23__STBC1_1(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.addToBackground = true;
__id23_.affectedByGravity = true;
__id23_.angularDamping = 0;
__id23_.convertToBitmap = false;
__id23_.linearDamping = 0;
try {
__id23_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id24__STBC1_1(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.addToBackground = true;
__id24_.affectedByGravity = true;
__id24_.angularDamping = 0;
__id24_.convertToBitmap = false;
__id24_.linearDamping = 0;
try {
__id24_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id19__STBC1_1(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.addToBackground = true;
__id19_.affectedByGravity = true;
__id19_.angularDamping = 0;
__id19_.convertToBitmap = false;
__id19_.linearDamping = 0;
try {
__id19_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id20__STBC1_1(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.addToBackground = true;
__id20_.affectedByGravity = true;
__id20_.angularDamping = 0;
__id20_.convertToBitmap = false;
__id20_.linearDamping = 0;
try {
__id20_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id17__STBC1_1(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.addToBackground = true;
__id17_.affectedByGravity = true;
__id17_.angularDamping = 0;
__id17_.convertToBitmap = false;
__id17_.linearDamping = 0;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id18__STBC1_1(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.addToBackground = true;
__id18_.affectedByGravity = true;
__id18_.angularDamping = 0;
__id18_.convertToBitmap = false;
__id18_.linearDamping = 0;
try {
__id18_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 289
//STBC1_3 (STBC1_3)
package {
import Game.*;
public dynamic class STBC1_3 extends GameLevel {
public var __id29_:Pared;
public var __id28_:Pared;
public var __id25_:Pared;
public var __id27_:Pared;
public var __id26_:Pared;
public function STBC1_3(){
__setProp___id26__STBC1_1();
__setProp___id27__STBC1_1();
__setProp___id29__STBC1_1();
__setProp___id28__STBC1_1();
__setProp___id25__STBC1_1();
}
function __setProp___id25__STBC1_1(){
try {
__id25_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id25_.addToBackground = true;
__id25_.affectedByGravity = true;
__id25_.angularDamping = 0;
__id25_.convertToBitmap = false;
__id25_.linearDamping = 0;
try {
__id25_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id26__STBC1_1(){
try {
__id26_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id26_.addToBackground = true;
__id26_.affectedByGravity = true;
__id26_.angularDamping = 0;
__id26_.convertToBitmap = false;
__id26_.linearDamping = 0;
try {
__id26_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id28__STBC1_1(){
try {
__id28_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id28_.addToBackground = true;
__id28_.affectedByGravity = true;
__id28_.angularDamping = 0;
__id28_.convertToBitmap = false;
__id28_.linearDamping = 0;
try {
__id28_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id27__STBC1_1(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.addToBackground = true;
__id27_.affectedByGravity = true;
__id27_.angularDamping = 0;
__id27_.convertToBitmap = false;
__id27_.linearDamping = 0;
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id29__STBC1_1(){
try {
__id29_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id29_.addToBackground = true;
__id29_.affectedByGravity = true;
__id29_.angularDamping = 0;
__id29_.convertToBitmap = false;
__id29_.linearDamping = 0;
try {
__id29_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 290
//STBC1_4 (STBC1_4)
package {
import Game.*;
public dynamic class STBC1_4 extends GameLevel {
public var __id33_:Pared;
public var __id32_:Pared;
public var __id34_:Pared;
public var __id35_:Pared;
public var __id31_:Pared;
public function STBC1_4(){
__setProp___id31__STBC1_1();
__setProp___id32__STBC1_1();
__setProp___id33__STBC1_1();
__setProp___id34__STBC1_1();
__setProp___id35__STBC1_1();
}
function __setProp___id31__STBC1_1(){
try {
__id31_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id31_.addToBackground = true;
__id31_.affectedByGravity = true;
__id31_.angularDamping = 0;
__id31_.convertToBitmap = false;
__id31_.linearDamping = 0;
try {
__id31_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id32__STBC1_1(){
try {
__id32_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id32_.addToBackground = true;
__id32_.affectedByGravity = true;
__id32_.angularDamping = 0;
__id32_.convertToBitmap = false;
__id32_.linearDamping = 0;
try {
__id32_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id33__STBC1_1(){
try {
__id33_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id33_.addToBackground = true;
__id33_.affectedByGravity = true;
__id33_.angularDamping = 0;
__id33_.convertToBitmap = false;
__id33_.linearDamping = 0;
try {
__id33_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id34__STBC1_1(){
try {
__id34_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id34_.addToBackground = true;
__id34_.affectedByGravity = true;
__id34_.angularDamping = 0;
__id34_.convertToBitmap = false;
__id34_.linearDamping = 0;
try {
__id34_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id35__STBC1_1(){
try {
__id35_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id35_.addToBackground = true;
__id35_.affectedByGravity = true;
__id35_.angularDamping = 0;
__id35_.convertToBitmap = false;
__id35_.linearDamping = 0;
try {
__id35_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 291
//STBC1_5 (STBC1_5)
package {
import Game.*;
public dynamic class STBC1_5 extends GameLevel {
public var __id44_:Pared;
public var __id45_:Pared;
public var __id40_:Pared;
public var __id37_:Pared;
public var __id41_:Pared;
public var __id42_:Pared;
public var __id38_:Pared;
public var __id39_:Pared;
public var __id43_:Pared;
public function STBC1_5(){
__setProp___id41__STBC1_1();
__setProp___id44__STBC1_1();
__setProp___id45__STBC1_1();
__setProp___id37__STBC1_1();
__setProp___id38__STBC1_1();
__setProp___id42__STBC1_1();
__setProp___id43__STBC1_1();
__setProp___id39__STBC1_1();
__setProp___id40__STBC1_1();
}
function __setProp___id40__STBC1_1(){
try {
__id40_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id40_.addToBackground = true;
__id40_.affectedByGravity = true;
__id40_.angularDamping = 0;
__id40_.convertToBitmap = false;
__id40_.linearDamping = 0;
try {
__id40_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id41__STBC1_1(){
try {
__id41_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id41_.addToBackground = true;
__id41_.affectedByGravity = true;
__id41_.angularDamping = 0;
__id41_.convertToBitmap = false;
__id41_.linearDamping = 0;
try {
__id41_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id38__STBC1_1(){
try {
__id38_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id38_.addToBackground = true;
__id38_.affectedByGravity = true;
__id38_.angularDamping = 0;
__id38_.convertToBitmap = false;
__id38_.linearDamping = 0;
try {
__id38_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id42__STBC1_1(){
try {
__id42_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id42_.addToBackground = true;
__id42_.affectedByGravity = true;
__id42_.angularDamping = 0;
__id42_.convertToBitmap = false;
__id42_.linearDamping = 0;
try {
__id42_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id39__STBC1_1(){
try {
__id39_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id39_.addToBackground = true;
__id39_.affectedByGravity = true;
__id39_.angularDamping = 0;
__id39_.convertToBitmap = false;
__id39_.linearDamping = 0;
try {
__id39_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id37__STBC1_1(){
try {
__id37_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id37_.addToBackground = true;
__id37_.affectedByGravity = true;
__id37_.angularDamping = 0;
__id37_.convertToBitmap = false;
__id37_.linearDamping = 0;
try {
__id37_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id43__STBC1_1(){
try {
__id43_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id43_.addToBackground = true;
__id43_.affectedByGravity = true;
__id43_.angularDamping = 0;
__id43_.convertToBitmap = false;
__id43_.linearDamping = 0;
try {
__id43_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id44__STBC1_1(){
try {
__id44_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id44_.addToBackground = true;
__id44_.affectedByGravity = true;
__id44_.angularDamping = 0;
__id44_.convertToBitmap = false;
__id44_.linearDamping = 0;
try {
__id44_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id45__STBC1_1(){
try {
__id45_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id45_.addToBackground = true;
__id45_.affectedByGravity = true;
__id45_.angularDamping = 0;
__id45_.convertToBitmap = false;
__id45_.linearDamping = 0;
try {
__id45_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 292
//STBC1_6 (STBC1_6)
package {
import Game.*;
public dynamic class STBC1_6 extends GameLevel {
public var __id50_:Pared;
public var __id51_:Pared;
public var __id47_:Pared;
public var __id46_:Pared;
public var __id48_:Pared;
public var __id52_:Pared;
public var __id58_:CirculoMovilNivel24;
public var __id59_:RevoJoint;
public var __id49_:Pared;
public function STBC1_6(){
__setProp___id58__STBC1_1();
__setProp___id51__STBC1_1();
__setProp___id59__STBC1_1();
__setProp___id52__STBC1_1();
__setProp___id49__STBC1_1();
__setProp___id48__STBC1_1();
__setProp___id46__STBC1_1();
__setProp___id50__STBC1_1();
__setProp___id47__STBC1_1();
}
function __setProp___id47__STBC1_1(){
try {
__id47_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id47_.addToBackground = true;
__id47_.affectedByGravity = true;
__id47_.angularDamping = 0;
__id47_.convertToBitmap = false;
__id47_.linearDamping = 0;
try {
__id47_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id51__STBC1_1(){
try {
__id51_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id51_.addToBackground = true;
__id51_.affectedByGravity = true;
__id51_.angularDamping = 0;
__id51_.convertToBitmap = false;
__id51_.linearDamping = 0;
try {
__id51_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id48__STBC1_1(){
try {
__id48_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id48_.addToBackground = true;
__id48_.affectedByGravity = true;
__id48_.angularDamping = 0;
__id48_.convertToBitmap = false;
__id48_.linearDamping = 0;
try {
__id48_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id52__STBC1_1(){
try {
__id52_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id52_.addToBackground = true;
__id52_.affectedByGravity = true;
__id52_.angularDamping = 0;
__id52_.convertToBitmap = false;
__id52_.linearDamping = 0;
try {
__id52_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id49__STBC1_1(){
try {
__id49_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id49_.addToBackground = true;
__id49_.affectedByGravity = true;
__id49_.angularDamping = 0;
__id49_.convertToBitmap = false;
__id49_.linearDamping = 0;
try {
__id49_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id58__STBC1_1(){
try {
__id58_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id58_.addToBackground = false;
__id58_.affectedByGravity = false;
__id58_.angularDamping = 0;
__id58_.convertToBitmap = true;
__id58_.linearDamping = 0;
try {
__id58_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id46__STBC1_1(){
try {
__id46_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id46_.addToBackground = true;
__id46_.affectedByGravity = true;
__id46_.angularDamping = 0;
__id46_.convertToBitmap = false;
__id46_.linearDamping = 0;
try {
__id46_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id50__STBC1_1(){
try {
__id50_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id50_.addToBackground = true;
__id50_.affectedByGravity = true;
__id50_.angularDamping = 0;
__id50_.convertToBitmap = false;
__id50_.linearDamping = 0;
try {
__id50_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id59__STBC1_1(){
try {
__id59_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id59_.forceResistance = 0;
__id59_.speed = 0;
__id59_.torque = 8;
__id59_.torqueResistance = 0;
__id59_.useGround = true;
try {
__id59_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 293
//STBC1_7 (STBC1_7)
package {
import Game.*;
public dynamic class STBC1_7 extends GameLevel {
public var __id61_:Pared;
public var __id60_:Pared;
public var __id62_:Pared;
public var __id64_:Pared;
public var __id63_:Pared;
public function STBC1_7(){
__setProp___id64__STBC1_1();
__setProp___id62__STBC1_1();
__setProp___id63__STBC1_1();
__setProp___id60__STBC1_1();
__setProp___id61__STBC1_1();
}
function __setProp___id64__STBC1_1(){
try {
__id64_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id64_.addToBackground = true;
__id64_.affectedByGravity = true;
__id64_.angularDamping = 0;
__id64_.convertToBitmap = false;
__id64_.linearDamping = 0;
try {
__id64_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id60__STBC1_1(){
try {
__id60_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id60_.addToBackground = true;
__id60_.affectedByGravity = true;
__id60_.angularDamping = 0;
__id60_.convertToBitmap = false;
__id60_.linearDamping = 0;
try {
__id60_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id61__STBC1_1(){
try {
__id61_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id61_.addToBackground = true;
__id61_.affectedByGravity = true;
__id61_.angularDamping = 0;
__id61_.convertToBitmap = false;
__id61_.linearDamping = 0;
try {
__id61_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id62__STBC1_1(){
try {
__id62_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id62_.addToBackground = true;
__id62_.affectedByGravity = true;
__id62_.angularDamping = 0;
__id62_.convertToBitmap = false;
__id62_.linearDamping = 0;
try {
__id62_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id63__STBC1_1(){
try {
__id63_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id63_.addToBackground = true;
__id63_.affectedByGravity = true;
__id63_.angularDamping = 0;
__id63_.convertToBitmap = false;
__id63_.linearDamping = 0;
try {
__id63_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 294
//STBC1_8 (STBC1_8)
package {
import Game.*;
public dynamic class STBC1_8 extends GameLevel {
public var __id72_:Pared;
public var __id73_:Pared;
public var __id74_:Pared;
public var __id77_:FlameMC;
public var __id65_:Pared;
public var __id78_:FlameMC;
public var __id66_:Pared;
public var __id79_:FlameMC;
public var __id67_:Pared;
public var __id68_:Pared;
public var __id69_:Pared;
public var __id80_:FlameMC;
public var __id81_:FlameMC;
public var __id70_:Pared;
public var __id71_:Pared;
public function STBC1_8(){
__setProp___id74__STBC1_1();
__setProp___id77__STBC1_1();
__setProp___id72__STBC1_1();
__setProp___id65__STBC1_1();
__setProp___id73__STBC1_1();
__setProp___id66__STBC1_1();
__setProp___id78__STBC1_1();
__setProp___id67__STBC1_1();
__setProp___id81__STBC1_1();
__setProp___id70__STBC1_1();
__setProp___id80__STBC1_1();
__setProp___id69__STBC1_1();
__setProp___id79__STBC1_1();
__setProp___id68__STBC1_1();
__setProp___id71__STBC1_1();
}
function __setProp___id77__STBC1_1(){
try {
__id77_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id77_.addToBackground = false;
__id77_.affectedByGravity = true;
__id77_.angularDamping = 0;
__id77_.convertToBitmap = false;
__id77_.delay = 0;
__id77_.duration = 1;
__id77_.frequency = 80;
__id77_.linearDamping = 0;
try {
__id77_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id81__STBC1_1(){
try {
__id81_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id81_.addToBackground = false;
__id81_.affectedByGravity = true;
__id81_.angularDamping = 0;
__id81_.convertToBitmap = false;
__id81_.delay = 0;
__id81_.duration = 1;
__id81_.frequency = 80;
__id81_.linearDamping = 0;
try {
__id81_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id66__STBC1_1(){
try {
__id66_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id66_.addToBackground = true;
__id66_.affectedByGravity = true;
__id66_.angularDamping = 0;
__id66_.convertToBitmap = false;
__id66_.linearDamping = 0;
try {
__id66_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id79__STBC1_1(){
try {
__id79_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id79_.addToBackground = false;
__id79_.affectedByGravity = true;
__id79_.angularDamping = 0;
__id79_.convertToBitmap = false;
__id79_.delay = 0;
__id79_.duration = 1;
__id79_.frequency = 80;
__id79_.linearDamping = 0;
try {
__id79_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id70__STBC1_1(){
try {
__id70_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id70_.addToBackground = true;
__id70_.affectedByGravity = true;
__id70_.angularDamping = 0;
__id70_.convertToBitmap = false;
__id70_.linearDamping = 0;
try {
__id70_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id68__STBC1_1(){
try {
__id68_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id68_.addToBackground = true;
__id68_.affectedByGravity = true;
__id68_.angularDamping = 0;
__id68_.convertToBitmap = false;
__id68_.linearDamping = 0;
try {
__id68_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id72__STBC1_1(){
try {
__id72_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id72_.addToBackground = true;
__id72_.affectedByGravity = true;
__id72_.angularDamping = 0;
__id72_.convertToBitmap = false;
__id72_.linearDamping = 0;
try {
__id72_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id74__STBC1_1(){
try {
__id74_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id74_.addToBackground = true;
__id74_.affectedByGravity = true;
__id74_.angularDamping = 0;
__id74_.convertToBitmap = false;
__id74_.linearDamping = 0;
try {
__id74_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id80__STBC1_1(){
try {
__id80_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id80_.addToBackground = false;
__id80_.affectedByGravity = true;
__id80_.angularDamping = 0;
__id80_.convertToBitmap = false;
__id80_.delay = 30;
__id80_.duration = 1;
__id80_.frequency = 80;
__id80_.linearDamping = 0;
try {
__id80_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id65__STBC1_1(){
try {
__id65_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id65_.addToBackground = true;
__id65_.affectedByGravity = true;
__id65_.angularDamping = 0;
__id65_.convertToBitmap = false;
__id65_.linearDamping = 0;
try {
__id65_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id78__STBC1_1(){
try {
__id78_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id78_.addToBackground = false;
__id78_.affectedByGravity = true;
__id78_.angularDamping = 0;
__id78_.convertToBitmap = false;
__id78_.delay = 30;
__id78_.duration = 1;
__id78_.frequency = 80;
__id78_.linearDamping = 0;
try {
__id78_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id67__STBC1_1(){
try {
__id67_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id67_.addToBackground = true;
__id67_.affectedByGravity = true;
__id67_.angularDamping = 0;
__id67_.convertToBitmap = false;
__id67_.linearDamping = 0;
try {
__id67_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id71__STBC1_1(){
try {
__id71_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id71_.addToBackground = true;
__id71_.affectedByGravity = true;
__id71_.angularDamping = 0;
__id71_.convertToBitmap = false;
__id71_.linearDamping = 0;
try {
__id71_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id69__STBC1_1(){
try {
__id69_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id69_.addToBackground = true;
__id69_.affectedByGravity = true;
__id69_.angularDamping = 0;
__id69_.convertToBitmap = false;
__id69_.linearDamping = 0;
try {
__id69_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id73__STBC1_1(){
try {
__id73_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id73_.addToBackground = true;
__id73_.affectedByGravity = true;
__id73_.angularDamping = 0;
__id73_.convertToBitmap = false;
__id73_.linearDamping = 0;
try {
__id73_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 295
//STBC1_9 (STBC1_9)
package {
import Game.*;
public dynamic class STBC1_9 extends GameLevel {
public var __id84_:Pared;
public var __id85_:Pared;
public var __id98_:FlameSinBaseMC;
public var __id86_:Pared;
public var __id87_:Pared;
public var __id88_:Pared;
public var __id89_:Pared;
public var __id90_:Pared;
public var __id91_:Pared;
public var __id92_:Pared;
public var __id93_:Pared;
public var __id94_:Pared;
public var __id82_:Pared;
public var __id95_:Pared;
public var __id83_:Pared;
public function STBC1_9(){
__setProp___id91__STBC1_1();
__setProp___id89__STBC1_1();
__setProp___id88__STBC1_1();
__setProp___id98__STBC1_1();
__setProp___id86__STBC1_1();
__setProp___id92__STBC1_1();
__setProp___id87__STBC1_1();
__setProp___id94__STBC1_1();
__setProp___id93__STBC1_1();
__setProp___id82__STBC1_1();
__setProp___id83__STBC1_1();
__setProp___id95__STBC1_1();
__setProp___id84__STBC1_1();
__setProp___id90__STBC1_1();
__setProp___id85__STBC1_1();
}
function __setProp___id88__STBC1_1(){
try {
__id88_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id88_.addToBackground = true;
__id88_.affectedByGravity = true;
__id88_.angularDamping = 0;
__id88_.convertToBitmap = false;
__id88_.linearDamping = 0;
try {
__id88_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id92__STBC1_1(){
try {
__id92_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id92_.addToBackground = true;
__id92_.affectedByGravity = true;
__id92_.angularDamping = 0;
__id92_.convertToBitmap = false;
__id92_.linearDamping = 0;
try {
__id92_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id94__STBC1_1(){
try {
__id94_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id94_.addToBackground = true;
__id94_.affectedByGravity = true;
__id94_.angularDamping = 0;
__id94_.convertToBitmap = false;
__id94_.linearDamping = 0;
try {
__id94_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id83__STBC1_1(){
try {
__id83_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id83_.addToBackground = true;
__id83_.affectedByGravity = true;
__id83_.angularDamping = 0;
__id83_.convertToBitmap = false;
__id83_.linearDamping = 0;
try {
__id83_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id85__STBC1_1(){
try {
__id85_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id85_.addToBackground = true;
__id85_.affectedByGravity = true;
__id85_.angularDamping = 0;
__id85_.convertToBitmap = false;
__id85_.linearDamping = 0;
try {
__id85_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id98__STBC1_1(){
try {
__id98_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id98_.addToBackground = false;
__id98_.affectedByGravity = true;
__id98_.angularDamping = 0;
__id98_.convertToBitmap = false;
__id98_.delay = 0;
__id98_.duration = 1;
__id98_.frequency = 120;
__id98_.linearDamping = 0;
try {
__id98_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id87__STBC1_1(){
try {
__id87_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id87_.addToBackground = true;
__id87_.affectedByGravity = true;
__id87_.angularDamping = 0;
__id87_.convertToBitmap = false;
__id87_.linearDamping = 0;
try {
__id87_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id91__STBC1_1(){
try {
__id91_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id91_.addToBackground = true;
__id91_.affectedByGravity = true;
__id91_.angularDamping = 0;
__id91_.convertToBitmap = false;
__id91_.linearDamping = 0;
try {
__id91_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id89__STBC1_1(){
try {
__id89_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id89_.addToBackground = true;
__id89_.affectedByGravity = true;
__id89_.angularDamping = 0;
__id89_.convertToBitmap = false;
__id89_.linearDamping = 0;
try {
__id89_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id93__STBC1_1(){
try {
__id93_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id93_.addToBackground = true;
__id93_.affectedByGravity = true;
__id93_.angularDamping = 0;
__id93_.convertToBitmap = false;
__id93_.linearDamping = 0;
try {
__id93_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id82__STBC1_1(){
try {
__id82_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id82_.addToBackground = true;
__id82_.affectedByGravity = true;
__id82_.angularDamping = 0;
__id82_.convertToBitmap = false;
__id82_.linearDamping = 0;
try {
__id82_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id95__STBC1_1(){
try {
__id95_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id95_.addToBackground = true;
__id95_.affectedByGravity = true;
__id95_.angularDamping = 0;
__id95_.convertToBitmap = false;
__id95_.linearDamping = 0;
try {
__id95_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id84__STBC1_1(){
try {
__id84_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id84_.addToBackground = true;
__id84_.affectedByGravity = true;
__id84_.angularDamping = 0;
__id84_.convertToBitmap = false;
__id84_.linearDamping = 0;
try {
__id84_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id86__STBC1_1(){
try {
__id86_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id86_.addToBackground = true;
__id86_.affectedByGravity = true;
__id86_.angularDamping = 0;
__id86_.convertToBitmap = false;
__id86_.linearDamping = 0;
try {
__id86_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id90__STBC1_1(){
try {
__id90_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id90_.addToBackground = true;
__id90_.affectedByGravity = true;
__id90_.angularDamping = 0;
__id90_.convertToBitmap = false;
__id90_.linearDamping = 0;
try {
__id90_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 296
//TipsMC (TipsMC)
package {
import fl.controls.*;
import flash.display.*;
import flash.text.*;
public dynamic class TipsMC extends MovieClip {
public var tip:TextField;
public var checkBox:CheckBox;
public var continue_button:SimpleButton;
public function TipsMC(){
addFrameScript(0, frame1);
__setProp_checkBox_TipsMC_newUI_1();
}
function frame1(){
stop();
tip.mouseEnabled = false;
}
function __setProp_checkBox_TipsMC_newUI_1(){
try {
checkBox["componentInspectorSetting"] = true;
} catch(e:Error) {
};
checkBox.enabled = true;
checkBox.label = "";
checkBox.labelPlacement = "right";
checkBox.selected = false;
checkBox.visible = true;
try {
checkBox["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 297
//Triangle (Triangle)
package {
import Game.*;
public dynamic class Triangle extends GameBody {
public var __id36_:TriangleShape;
public function Triangle(){
addFrameScript(0, frame1);
__setProp___id36__ParedTriangle_Layer1_1();
}
public function init(){
this.type = Constants.WALL;
this.removeGraphic = true;
}
function frame1(){
stop();
}
function __setProp___id36__ParedTriangle_Layer1_1(){
try {
__id36_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id36_.categoryBits = 1;
__id36_.colgroup = -2;
__id36_.density = 0;
__id36_.friction = 1;
__id36_.maskBits = 0xFFFF;
__id36_.restitution = 0.2;
__id36_.sensor = false;
__id36_.type = 0;
try {
__id36_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 298
//TriangleShape (TriangleShape)
package {
import Game.*;
public dynamic class TriangleShape extends GameTriangleShape {
}
}//package
Section 299
//TriangleTrampolin (TriangleTrampolin)
package {
import Game.*;
public dynamic class TriangleTrampolin extends GameBody {
public var __id213_:TriangleShape;
public function TriangleTrampolin(){
addFrameScript(0, frame1);
__setProp___id213__TriangleTrampolin_Layer1_1();
}
public function init(){
this.type = Constants.WALL;
this.addToBackground = true;
}
function __setProp___id213__TriangleTrampolin_Layer1_1(){
try {
__id213_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id213_.categoryBits = 1;
__id213_.colgroup = -2;
__id213_.density = 0;
__id213_.friction = 1;
__id213_.maskBits = 0xFFFF;
__id213_.restitution = 0.9;
__id213_.sensor = false;
__id213_.type = 0;
try {
__id213_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package