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.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
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
//b2FilterData (Box2D.Collision.Shapes.b2FilterData)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
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 4
//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();
}
}
}//package Box2D.Collision.Shapes
Section 5
//b2PolygonDef (Box2D.Collision.Shapes.b2PolygonDef)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2PolygonDef extends b2ShapeDef {
public var 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 6
//b2PolygonShape (Box2D.Collision.Shapes.b2PolygonShape)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
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 7
//b2Shape (Box2D.Collision.Shapes.b2Shape)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
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_unknownShape:int = -1;
public static const e_circleShape:int = 0;
public static const e_shapeTypeCount:int = 2;
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));
default:
return (null);
};
}
}
}//package Box2D.Collision.Shapes
Section 8
//b2ShapeDef (Box2D.Collision.Shapes.b2ShapeDef)
package Box2D.Collision.Shapes {
import Box2D.Common.Math.*;
import Box2D.Common.*;
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 9
//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 10
//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 11
//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 12
//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 = b2Settings.USHRT_MAX;
public static const b2_invalid:uint = b2Settings.USHRT_MAX;
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 13
//b2BufferedPair (Box2D.Collision.b2BufferedPair)
package Box2D.Collision {
public class b2BufferedPair {
public var proxyId1:uint;
public var proxyId2:uint;
}
}//package Box2D.Collision
Section 14
//b2Collision (Box2D.Collision.b2Collision)
package Box2D.Collision {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
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 = 0;
};
};
_local7 = (_local15 - _local32);
_local8 = (_local16 - _local33);
_local17 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8)));
_local7 = (_local7 / _local17);
_local8 = (_local8 / _local17);
if (_local17 > _local20){
return;
};
_arg1.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 15
//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 16
//b2ContactPoint (Box2D.Collision.b2ContactPoint)
package Box2D.Collision {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
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 17
//b2Distance (Box2D.Collision.b2Distance)
package Box2D.Collision {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Common.*;
public class b2Distance {
private static var s_p2s:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
private static var s_p1s:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
private static var s_points:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()];
private static var gPoint:b2Point = new b2Point();
public static var g_GJK_Iterations:int = 0;
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 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 - ((_local15 * _local19) + (_local16 * _local20))) <= (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 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(((_local13 * _local13) + (_local14 * _local14)));
_local13 = (_local13 / _local19);
_local14 = (_local14 / _local19);
_local20 = (_local19 - _local18);
_arg1.x = (_local9 + (_local16 * _local13));
_arg1.y = (_local10 + (_local16 * _local14));
_arg2.x = (_local11 - (_local17 * _local13));
_arg2.y = (_local12 - (_local17 * _local14));
return (_local20);
};
if (_local15 > (Number.MIN_VALUE * Number.MIN_VALUE)){
_local19 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14)));
_local13 = (_local13 / _local19);
_local14 = (_local14 / _local19);
_arg1.x = (_local9 + (_local16 * _local13));
_arg1.y = (_local10 + (_local16 * _local14));
_arg2.x = _arg1.x;
_arg2.y = _arg1.y;
return (0);
};
_arg1.x = _local9;
_arg1.y = _local10;
_arg2.x = _arg1.x;
_arg2.y = _arg1.y;
return (0);
}
public static function 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 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 Distance(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Shape, _arg4:b2XForm, _arg5:b2Shape, _arg6:b2XForm):Number{
var _local7:int;
var _local8:int;
_local7 = _arg3.m_type;
_local8 = _arg5.m_type;
if ((((_local7 == b2Shape.e_circleShape)) && ((_local8 == b2Shape.e_circleShape)))){
return (DistanceCC(_arg1, _arg2, (_arg3 as b2CircleShape), _arg4, (_arg5 as b2CircleShape), _arg6));
};
if ((((_local7 == b2Shape.e_polygonShape)) && ((_local8 == b2Shape.e_circleShape)))){
return (DistancePC(_arg1, _arg2, (_arg3 as b2PolygonShape), _arg4, (_arg5 as b2CircleShape), _arg6));
};
if ((((_local7 == b2Shape.e_circleShape)) && ((_local8 == b2Shape.e_polygonShape)))){
return (DistancePC(_arg2, _arg1, (_arg5 as b2PolygonShape), _arg6, (_arg3 as b2CircleShape), _arg4));
};
if ((((_local7 == b2Shape.e_polygonShape)) && ((_local8 == b2Shape.e_polygonShape)))){
return (DistanceGeneric(_arg1, _arg2, (_arg3 as b2PolygonShape), _arg4, (_arg5 as b2PolygonShape), _arg6));
};
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 18
//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 19
//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 20
//b2OBB (Box2D.Collision.b2OBB)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2OBB {
public var R:b2Mat22;
public var center:b2Vec2;
public var extents:b2Vec2;
public function b2OBB(){
R = new b2Mat22();
center = new b2Vec2();
extents = new b2Vec2();
super();
}
}
}//package Box2D.Collision
Section 21
//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 22
//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 23
//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 24
//b2Point (Box2D.Collision.b2Point)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class b2Point {
public var p:b2Vec2;
public function b2Point(){
p = new b2Vec2();
super();
}
public function GetFirstVertex(_arg1:b2XForm):b2Vec2{
return (p);
}
public function Support(_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{
return (p);
}
}
}//package Box2D.Collision
Section 25
//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 26
//b2Segment (Box2D.Collision.b2Segment)
package Box2D.Collision {
import Box2D.Common.Math.*;
import Box2D.Common.*;
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 = ((-(_local7) * _local15) + (_local7 * _local14));
if (((((-(_local12) * _local13) <= _local17)) && ((_local17 <= (_local13 * (1 + _local12)))))){
_local16 = (_local16 / _local13);
_local18 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11)));
_local10 = (_local10 / _local18);
_local11 = (_local11 / _local18);
_arg1[0] = _local16;
_arg2.Set(_local10, _local11);
return (true);
};
};
};
return (false);
}
}
}//package Box2D.Collision
Section 27
//b2TimeOfImpact (Box2D.Collision.b2TimeOfImpact)
package Box2D.Collision {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
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 28
//ClipVertex (Box2D.Collision.ClipVertex)
package Box2D.Collision {
import Box2D.Common.Math.*;
public class ClipVertex {
public var v:b2Vec2;
public var id:b2ContactID;
public function ClipVertex(){
v = new b2Vec2();
id = new b2ContactID();
super();
}
}
}//package Box2D.Collision
Section 29
//Features (Box2D.Collision.Features)
package Box2D.Collision {
public class Features {
public var _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 30
//b2Mat22 (Box2D.Common.Math.b2Mat22)
package Box2D.Common.Math {
import Box2D.Common.*;
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 31
//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 32
//b2Sweep (Box2D.Common.Math.b2Sweep)
package Box2D.Common.Math {
import Box2D.Common.*;
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 33
//b2Vec2 (Box2D.Common.Math.b2Vec2)
package Box2D.Common.Math {
import Box2D.Common.*;
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 34
//b2XForm (Box2D.Common.Math.b2XForm)
package Box2D.Common.Math {
import Box2D.Common.*;
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 35
//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 36
//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 = 0.0349065850398866;
public static const b2_linearSlop:Number = 0.005;
public static const b2_pi:Number = 3.14159265358979;
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 = 0.139626340159546;
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 37
//b2CircleContact (Box2D.Dynamics.Contacts.b2CircleContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
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 38
//b2Contact (Box2D.Dynamics.Contacts.b2Contact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
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);
}
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 39
//b2ContactConstraint (Box2D.Dynamics.Contacts.b2ContactConstraint)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
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 40
//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 41
//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 42
//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 43
//b2ContactResult (Box2D.Dynamics.Contacts.b2ContactResult)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Collision.*;
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 44
//b2ContactSolver (Box2D.Dynamics.Contacts.b2ContactSolver)
package Box2D.Dynamics.Contacts {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
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 45
//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 46
//b2PolyAndCircleContact (Box2D.Dynamics.Contacts.b2PolyAndCircleContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
public class b2PolyAndCircleContact 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 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_shape1.m_type == b2Shape.e_polygonShape));
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 47
//b2PolygonContact (Box2D.Dynamics.Contacts.b2PolygonContact)
package Box2D.Dynamics.Contacts {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
public class b2PolygonContact 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 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 48
//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 49
//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 50
//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 51
//b2GearJointDef (Box2D.Dynamics.Joints.b2GearJointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
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 52
//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 53
//b2Joint (Box2D.Dynamics.Joints.b2Joint)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
import Box2D.Dynamics.*;
import Box2D.Common.*;
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 54
//b2JointDef (Box2D.Dynamics.Joints.b2JointDef)
package Box2D.Dynamics.Joints {
import Box2D.Common.Math.*;
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 55
//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 56
//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 57
//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 58
//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 59
//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 60
//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 61
//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 62
//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 63
//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 64
//b2Body (Box2D.Dynamics.b2Body)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Common.*;
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 isMouseDraging:Boolean;// = false
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 isBodyDrageable:Boolean;// = true
public var m_angularDamping:Number;
public var m_type_cad:String;// = ""
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_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();
isMouseDraging = false;
isBodyDrageable = true;
m_type_cad = "";
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);
};
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:b2Shape;
var _local4:Boolean;
if (m_world.m_lock == true){
return;
};
_arg1.DestroyProxy(m_world.m_broadPhase);
_local2 = m_shapeList;
_local3 = null;
_local4 = false;
while (_local2 != null) {
if (_local2 == _arg1){
if (_local3){
_local3.m_next = _arg1.m_next;
} else {
m_shapeList = _arg1.m_next;
};
_local4 = true;
break;
};
_local3 = _local2;
_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 65
//b2BodyDef (Box2D.Dynamics.b2BodyDef)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.*;
import Box2D.Dynamics.Contacts.*;
public class b2BodyDef {
public var isSleeping:Boolean;
public var position:b2Vec2;
public var isBullet:Boolean;
public var allowSleep:Boolean;
public var userData;
public var angularDamping:Number;
public var fixedRotation:Boolean;
public var angle:Number;
public var linearDamping:Number;
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;
}
}
}//package Box2D.Dynamics
Section 66
//b2BoundaryListener (Box2D.Dynamics.b2BoundaryListener)
package Box2D.Dynamics {
public class b2BoundaryListener {
public function Violation(_arg1:b2Body):void{
}
}
}//package Box2D.Dynamics
Section 67
//b2ContactFilter (Box2D.Dynamics.b2ContactFilter)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
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 68
//b2ContactListener (Box2D.Dynamics.b2ContactListener)
package Box2D.Dynamics {
import Box2D.Collision.*;
import Box2D.Dynamics.Contacts.*;
public class b2ContactListener {
public function Add(_arg1:b2ContactPoint):void{
}
public function Remove(_arg1:b2ContactPoint):void{
}
public function Persist(_arg1:b2ContactPoint):void{
}
public function Result(_arg1:b2ContactResult):void{
}
}
}//package Box2D.Dynamics
Section 69
//b2ContactManager (Box2D.Dynamics.b2ContactManager)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Collision.*;
import Box2D.Common.*;
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_shape1;
_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 70
//b2DebugDraw (Box2D.Dynamics.b2DebugDraw)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.display.*;
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_lineThickness:Number;// = 1
public var m_drawFlags:uint;
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 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 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 71
//b2DestructionListener (Box2D.Dynamics.b2DestructionListener)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
import Box2D.Dynamics.Joints.*;
public class b2DestructionListener {
public function SayGoodbyeJoint(_arg1:b2Joint):void{
}
public function SayGoodbyeShape(_arg1:b2Shape):void{
}
}
}//package Box2D.Dynamics
Section 72
//b2Island (Box2D.Dynamics.b2Island)
package Box2D.Dynamics {
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.*;
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 {
_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))));
_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 73
//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 74
//b2World (Box2D.Dynamics.b2World)
package Box2D.Dynamics {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
public class b2World {
public var m_inv_dt0:Number;
public var all_is_sleeping:Boolean;// = false
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();
all_is_sleeping = false;
super();
all_is_sleeping = false;
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);
}
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 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;
_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;
};
}
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);
all_is_sleeping = true;
_local8 = m_bodyList;
while (_local8) {
if ((_local8.m_flags & ((b2Body.e_islandFlag | b2Body.e_sleepFlag) | b2Body.e_frozenFlag))){
} else {
if (_local8.IsStatic()){
} else {
all_is_sleeping = false;
_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 75
//ag_intro_mc_3 (Demo_fla.ag_intro_mc_3)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class ag_intro_mc_3 extends MovieClip {
public function ag_intro_mc_3(){
addFrameScript(0, frame1, 217, frame218);
}
function frame218(){
stop();
parent.gotoAndStop("tanoku");
}
function frame1(){
stop();
gotoAndPlay(2);
}
}
}//package Demo_fla
Section 76
//BotonNivel_48 (Demo_fla.BotonNivel_48)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class BotonNivel_48 extends MovieClip {
public function BotonNivel_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Demo_fla
Section 77
//FPS_67 (Demo_fla.FPS_67)
package Demo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class FPS_67 extends MovieClip {
public var tf:TextField;
}
}//package Demo_fla
Section 78
//intro_159 (Demo_fla.intro_159)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class intro_159 extends MovieClip {
public function intro_159(){
addFrameScript(538, frame539);
}
function frame539(){
parent.gotoAndStop(15);
}
}
}//package Demo_fla
Section 79
//intro2_175 (Demo_fla.intro2_175)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class intro2_175 extends MovieClip {
public function intro2_175(){
addFrameScript(520, frame521);
}
function frame521(){
parent.gotoAndStop(20);
}
}
}//package Demo_fla
Section 80
//intro3_185 (Demo_fla.intro3_185)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class intro3_185 extends MovieClip {
public var nuevacabezanoloop2:MovieClip;
public var nuevacabezanoloop1:MovieClip;
public var nuevacabezanoloop3:MovieClip;
public function intro3_185(){
addFrameScript(179, frame180, 584, frame585);
}
function frame180(){
nuevacabezanoloop1.stop();
nuevacabezanoloop2.stop();
nuevacabezanoloop3.stop();
}
function frame585(){
parent.gotoAndStop(25);
}
}
}//package Demo_fla
Section 81
//intro4_196 (Demo_fla.intro4_196)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class intro4_196 extends MovieClip {
public var arbolesnoloop:MovieClip;
public var colanoloop:MovieClip;
public var nuevacabezanoloop2:MovieClip;
public var cuerponoloop:MovieClip;
public var nuevacabezanoloop1:MovieClip;
public var nuevacabezanoloop3:MovieClip;
public var nuevacabezanoloop4:MovieClip;
public function intro4_196(){
addFrameScript(179, frame180, 399, frame400, 495, frame496);
}
function frame180(){
nuevacabezanoloop1.stop();
nuevacabezanoloop2.stop();
nuevacabezanoloop3.stop();
nuevacabezanoloop4.stop();
}
function frame400(){
cuerponoloop.stop();
colanoloop.stop();
arbolesnoloop.stop();
}
function frame496(){
parent.gotoAndStop(30);
}
}
}//package Demo_fla
Section 82
//intro5_212 (Demo_fla.intro5_212)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class intro5_212 extends MovieClip {
public var intro5noloop:MovieClip;
public function intro5_212(){
addFrameScript(539, frame540, 1212, frame1213);
}
function frame540(){
intro5noloop.stop();
}
function frame1213(){
parent.gotoAndStop("mainscreen");
}
}
}//package Demo_fla
Section 83
//jelly_cuadrado_x_260 (Demo_fla.jelly_cuadrado_x_260)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_cuadrado_x_260 extends MovieClip {
public function jelly_cuadrado_x_260(){
addFrameScript(20, frame21, 41, frame42);
}
function frame21(){
gotoAndPlay("temblando");
}
function frame42(){
gotoAndPlay("volando");
}
}
}//package Demo_fla
Section 84
//jelly_rectangulo_an_169 (Demo_fla.jelly_rectangulo_an_169)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_rectangulo_an_169 extends MovieClip {
public function jelly_rectangulo_an_169(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay("volando");
}
}
}//package Demo_fla
Section 85
//loading_1 (Demo_fla.loading_1)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class loading_1 extends MovieClip {
public function loading_1(){
addFrameScript(60, frame61);
}
function frame61(){
parent.gotoAndStop(2);
}
}
}//package Demo_fla
Section 86
//popup_49 (Demo_fla.popup_49)
package Demo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class popup_49 extends MovieClip {
public var txt_info:TextField;
}
}//package Demo_fla
Section 87
//popup_logro_39 (Demo_fla.popup_logro_39)
package Demo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class popup_logro_39 extends MovieClip {
public var txt_info:TextField;
}
}//package Demo_fla
Section 88
//tanokulogointro_6 (Demo_fla.tanokulogointro_6)
package Demo_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class tanokulogointro_6 extends MovieClip {
public function tanokulogointro_6(){
addFrameScript(179, frame180);
}
function frame180(){
parent.gotoAndStop("mainscreen");
}
}
}//package Demo_fla
Section 89
//Body (wck.Body)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.display.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
public class Body extends MovieClip {
public var pierna_superior_derecha:jelly_rectangulo_;
public var b2body:b2Body;
public var cabeza:jelly_circulo_;
public var cuello:DemoJoint;
public var pelvis_derecha:DemoJoint;
public var bodyAngularDamping:Number;// = 0
public var torso_central:jelly_rectangulo_;
public var bodyIsStatic:Boolean;// = false
public var pierna_superior_izquierda:jelly_rectangulo_;
public var bodyIsSleeping:Boolean;// = false
public var pierna_inferior_izquierda:jelly_rectangulo_;
public var brazo_superior_derecho:jelly_rectangulo_;
public var bodyAllowSleep:Boolean;// = true
public var hombro_izquierdo:DemoJoint;
public var torso_superior:jelly_rectangulo_;
public var codo_derecho:DemoJoint;
public var brazo_inferior_derecho:jelly_rectangulo_;
public var hombro_derecho:DemoJoint;
public var world:World;
public var bodyIsBullet:Boolean;// = false
public var pierna_inferior_derecha:jelly_rectangulo_;
public var pelvis:DemoJoint;
public var pecho:DemoJoint;
public var codo_izquierdo:DemoJoint;
public var brazo_superior_izquierdo:jelly_rectangulo_;
public var compound:Compound;
public var estomago:DemoJoint;
public var rodilla_izquierda:DemoJoint;
public var rodilla_derecha:DemoJoint;
public var bodyFixedRotation:Boolean;// = false
public var torso_inferior:jelly_rectangulo_;
public var pelvis_izquierda:DemoJoint;
public var bodyApplyGravity:Boolean;// = true
public var brazo_inferior_izquierdo:jelly_rectangulo_;
public var bodyLinearDamping:Number;// = 0
public function Body(){
bodyLinearDamping = 0;
bodyAngularDamping = 0;
bodyAllowSleep = true;
bodyIsSleeping = false;
bodyFixedRotation = false;
bodyIsBullet = false;
bodyApplyGravity = true;
bodyIsStatic = false;
super();
}
public function create():void{
var _local1:b2BodyDef;
var _local2:Number;
var _local3:Shape;
var _local4:int;
world = (parent as World);
_local1 = new b2BodyDef();
_local1.userData = this;
_local1.linearDamping = bodyLinearDamping;
_local1.angularDamping = bodyAngularDamping;
_local1.allowSleep = bodyAllowSleep;
_local1.isSleeping = bodyIsSleeping;
_local1.fixedRotation = bodyFixedRotation;
_local1.isBullet = bodyIsBullet;
_local2 = rotation;
rotation = 0;
_local1.position.Set((x / world.scale), (y / world.scale));
_local1.angle = ((_local2 * Math.PI) / 180);
rotation = _local2;
b2body = world.b2world.CreateBody(_local1);
_local3 = (this as Shape);
if (_local3){
_local3.createShape();
};
_local4 = 0;
while (_local4 < numChildren) {
_local3 = (getChildAt(_local4) as Shape);
if (_local3){
_local3.createShape();
};
_local4++;
};
if (!bodyIsStatic){
b2body.SetMassFromShapes();
};
world.addEventListener(Event.ENTER_FRAME, step, false, 0, true);
world.addEventListener("cleanUp", cleanUp, false, 0, true);
}
public function step(_arg1:Event):void{
if (!world.paused){
x = (b2body.GetPosition().x * world.scale);
y = (b2body.GetPosition().y * world.scale);
rotation = (((b2body.GetAngle() * 180) / Math.PI) % 360);
};
}
public function cleanUp(_arg1:Event=null):void{
world.removeEventListener(Event.ENTER_FRAME, step);
}
}
}//package wck
Section 90
//Compound (wck.Compound)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.display.*;
import Box2D.Dynamics.Contacts.*;
import flash.geom.*;
public class Compound extends MovieClip {
public var groupIndexOffset:Number;// = 0
public var world:World;
public function Compound(){
groupIndexOffset = 0;
super();
if (parent){
flatten();
};
}
public function flatten(){
var _local1:DisplayObject;
var _local2:Point;
world = (parent as World);
while (numChildren > 0) {
_local1 = getChildAt(0);
if ((_local1 as Body)){
(_local1 as Body).compound = this;
};
_local2 = parent.globalToLocal(localToGlobal(new Point(_local1.x, _local1.y)));
_local1.x = _local2.x;
_local1.y = _local2.y;
_local1.rotation = (_local1.rotation + rotation);
_local1.scaleX = (_local1.scaleX * scaleX);
_local1.scaleY = (_local1.scaleY * scaleY);
parent.addChild(_local1);
};
}
public function create():void{
}
}
}//package wck
Section 91
//Contact (wck.Contact)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
public class Contact extends Event {
public var normalForce:Number;// = 0
public var separation:Number;// = 0
public var bias:int;// = 0
public var key:Number;// = 0
public var tangentForce:Number;// = 0
public var position:b2Vec2;// = null
public var cp:b2ContactPoint;
public var normal:b2Vec2;// = null
public var shape1:b2Shape;// = null
public var shape2:b2Shape;// = null
public function Contact(_arg1:String, _arg2:b2ContactPoint, _arg3:int){
bias = 0;
shape1 = null;
shape2 = null;
position = null;
normal = null;
separation = 0;
normalForce = 0;
tangentForce = 0;
key = 0;
super(_arg1);
cp = _arg2;
bias = _arg3;
}
public function freeze():void{
shape1 = ((bias)==1) ? cp.shape1 : cp.shape2;
shape2 = ((bias)==1) ? cp.shape2 : cp.shape1;
normal = cp.normal.Copy();
normal.Multiply(bias);
position = cp.position.Copy();
separation = cp.separation;
key = cp.id._key;
}
public function applyForce(_arg1){
var _local2:b2Vec2;
_local2 = normal.Copy();
_local2.Multiply(-(_arg1));
shape1.m_body.ApplyImpulse(_local2, position);
_local2.Multiply(-1);
shape2.m_body.ApplyImpulse(_local2, position);
}
}
}//package wck
Section 92
//ContactListener (wck.ContactListener)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
public class ContactListener extends b2ContactListener {
override public function Persist(_arg1:b2ContactPoint):void{
dispatch(_arg1, "persistContact");
}
override public function Add(_arg1:b2ContactPoint):void{
dispatch(_arg1, "addContact");
}
public function dispatch(_arg1:b2ContactPoint, _arg2:String){
var _local3:EventDispatcher;
var _local4:EventDispatcher;
_local3 = (_arg1.shape1.GetUserData() as EventDispatcher);
_local4 = (_arg1.shape2.GetUserData() as EventDispatcher);
((_local3) && (_local3.dispatchEvent(new Contact(_arg2, _arg1, 1))));
((_local4) && (_local4.dispatchEvent(new Contact(_arg2, _arg1, -1))));
}
override public function Remove(_arg1:b2ContactPoint):void{
dispatch(_arg1, "removeContact");
}
}
}//package wck
Section 93
//Cursor (wck.Cursor)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.display.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
import flash.geom.*;
import flash.ui.*;
public class Cursor extends MovieClip {
public var allowdraw:Boolean;// = false
public var drawing:DrawBody;
public var joint:b2MouseJoint;
public var world:World;
public var shape:Shape;
public var allowdrag:Boolean;// = false
public static const MAX_DRAW_POINTS = 30;
public function Cursor(){
allowdraw = false;
allowdrag = false;
super();
}
public function finishDrawing():void{
var _local1:Point;
_local1 = drawing.globalToLocal(new Point(x, y));
drawing.drawTo(_local1.x, _local1.y, true);
drawing.finish();
drawing = null;
stage.removeEventListener(Event.ENTER_FRAME, updateDraw);
}
public function position(_arg1:MouseEvent):void{
x = _arg1.stageX;
y = _arg1.stageY;
}
public function mouseUp(_arg1:MouseEvent):void{
if (joint){
world.b2world.DestroyJoint(joint);
joint = null;
graphics.clear();
Demo.Sound_Manager.playSound("jelly_drop");
shape.body.b2body.isMouseDraging = false;
stage.removeEventListener(Event.ENTER_FRAME, updateJoint);
} else {
if (((drawing) && (allowdraw))){
finishDrawing();
};
};
shape = null;
}
public function updateJoint(_arg1:Event):void{
var _local2:Point;
var _local3:b2Vec2;
if (shape){
if (shape.body.b2body.isBodyDrageable == true){
_local2 = world.globalToLocal(new Point(x, y));
joint.SetTarget(new b2Vec2((_local2.x / world.scale), (_local2.y / world.scale)));
_local3 = joint.GetAnchor2();
_local2 = globalToLocal(world.localToGlobal(new Point((_local3.x * world.scale), (_local3.y * world.scale))));
graphics.clear();
graphics.lineStyle(1, 0);
graphics.beginFill(0);
graphics.moveTo(0, 0);
graphics.lineTo(_local2.x, _local2.y);
graphics.drawCircle(_local2.x, _local2.y, 2);
} else {
StopDrag();
};
};
}
public function mouseOut(_arg1:MouseEvent):void{
}
public function StopDrag():void{
if (joint){
world.b2world.DestroyJoint(joint);
joint = null;
graphics.clear();
Demo.Sound_Manager.playSound("jelly_drop");
shape.body.b2body.isMouseDraging = false;
stage.removeEventListener(Event.ENTER_FRAME, updateJoint);
} else {
if (((drawing) && (allowdraw))){
finishDrawing();
};
};
shape = null;
}
public function initialize(){
mouseEnabled = false;
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, position, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp, false, 0, true);
stage.addEventListener(MouseEvent.CLICK, click, false, 0, true);
}
public function click(_arg1:MouseEvent):void{
}
public function updateDraw(_arg1:Event):void{
var _local2:Point;
_local2 = drawing.globalToLocal(new Point(x, y));
drawing.drawTo(_local2.x, _local2.y);
if (drawing.points.length > Cursor.MAX_DRAW_POINTS){
finishDrawing();
};
}
public function mouseDown(_arg1:MouseEvent):void{
var _local2:DisplayObject;
var _local3:Point;
var _local4:b2MouseJointDef;
if (!((joint) || (drawing))){
if (((world) && (!(world.paused)))){
_local2 = (_arg1.target as DisplayObject);
while (((_local2) && (!(shape)))) {
shape = (_local2 as Shape);
_local2 = _local2.parent;
};
_local3 = world.globalToLocal(new Point(x, y));
if (shape){
if (shape.body.b2body.isBodyDrageable == true){
_local4 = new b2MouseJointDef();
_local4.body1 = world.b2world.m_groundBody;
_local4.body2 = shape.body.b2body;
_local4.target = new b2Vec2((_local3.x / world.scale), (_local3.y / world.scale));
_local4.maxForce = (500 * shape.body.b2body.m_mass);
_local4.timeStep = (1 / 30);
joint = (world.b2world.CreateJoint(_local4) as b2MouseJoint);
Demo.Sound_Manager.playSound("jelly_click");
shape.body.b2body.isMouseDraging = true;
stage.addEventListener(Event.ENTER_FRAME, updateJoint, false, 0, true);
};
} else {
if (allowdraw){
_local3 = world.globalToLocal(new Point(x, y));
drawing = new DrawBody();
drawing.x = _local3.x;
drawing.y = _local3.y;
world.addChild(drawing);
drawing.create();
stage.addEventListener(Event.ENTER_FRAME, updateDraw, false, 0, true);
};
};
};
};
}
}
}//package wck
Section 94
//Demo (wck.Demo)
package wck {
import Box2D.Dynamics.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
public class Demo extends MovieClip {
public var logro_subirpuntuacion:Boolean;
var loader:URLLoader;
public var nombre_player:TextField;
public var btn_achievements:MovieClip;
public var logro_jugar100minutos_bol:Boolean;
public var btn_sponsor:MovieClip;
public var irnivel01:MovieClip;
public var irnivel02:MovieClip;
public var irnivel03:MovieClip;
public var irnivel04:MovieClip;
public var irnivel05:MovieClip;
public var irnivel06:MovieClip;
public var irnivel07:MovieClip;
public var irnivel08:MovieClip;
public var irnivel09:MovieClip;
public var irnivel10:MovieClip;
public var irnivel11:MovieClip;
public var irnivel12:MovieClip;
public var irnivel13:MovieClip;
public var irnivel14:MovieClip;
public var irnivel15:MovieClip;
public var irnivel17:MovieClip;
public var irnivel18:MovieClip;
public var irnivel19:MovieClip;
public var logro_visitarsponsor:Boolean;
public var irnivel16:MovieClip;
public var nextlevel:MovieClip;
public var niveles_desbloqueados_ant:Number;
public var irnivel20:MovieClip;
public var irnivel22:MovieClip;
public var irnivel24:MovieClip;
public var irnivel25:MovieClip;
public var irnivel26:MovieClip;
public var txt_logro4:TextField;
public var txt_logro5:TextField;
public var txt_logro1:TextField;
public var txt_logro2:TextField;
public var txt_nombre_player:MovieClip;
public var irnivel23:MovieClip;
public var level06:Nivel06View;
public var level07:Nivel07View;
public var level08:Nivel08View;
public var irnivel28:MovieClip;
public var irnivel29:MovieClip;
public var txt_logro3:TextField;
public var txt_logro6:TextField;
public var level09:Nivel09View;
public var movimiento:MovieClip;
public var irnivel30:MovieClip;
public var irnivel31:MovieClip;
public var irnivel32:MovieClip;
public var irnivel21:MovieClip;
public var level01:Nivel1View;
public var level03:Nivel3View;
public var level05:Nivel05View;
public var level10:Nivel10View;
public var level11:Nivel11View;
public var level12:Nivel12View;
public var level13:Nivel13View;
public var panelachi:MovieClip;
public var level15:Nivel15View;
public var level16:Nivel16View;
public var level18:Nivel18View;
public var level19:Nivel19View;
public var level14:Nivel14View;
public var level17:Nivel17View;
public var level02:Nivel2View;
public var irnivel27:MovieClip;
public var txt_logro7:TextField;
public var txt_logro8:TextField;
public var level04:Nivel04View;
public var level21:Nivel21View;
public var level22:Nivel22View;
public var level24:Nivel24View;
public var level25:Nivel25View;
public var txt_info_mejor_tiempo:TextField;
public var level20:Nivel20View;
public var level28:Nivel28View;
public var nuevo_record_mc:MovieClip;
public var level23:Nivel23View;
public var cad_temp:String;
public var logro_jugar100minutos:uint;
public var logro_dormirjydra:Boolean;
public var level30:Nivel30View;
public var level32:Nivel32View;
public var tiempo_nivel06:uint;
public var tiempo_nivel07:uint;
public var tiempo_nivel08:uint;
public var tiempo_nivel02:uint;
public var btn_back:MovieClip;
public var tiempo_nivel05:uint;
public var tiempo_nivel01:uint;
public var level31:Nivel31View;
public var tiempo_nivel11:uint;
public var tiempo_nivel13:uint;
public var tiempo_nivel14:uint;
public var tiempo_nivel10:uint;
public var tiempo_nivel03:uint;
public var tiempo_nivel09:uint;
public var tiempo_nivel04:uint;
public var tiempo_nivel18:uint;
public var tiempo_nivel19:uint;
public var tiempo_nivel23:uint;
public var tiempo_nivel12:uint;
public var tiempo_nivel26:uint;
public var txt_total_segundos:TextField;
public var exitlevel:MovieClip;
public var tiempo_nivel25:uint;
public var tiempo_nivel27:uint;
public var tiempo_nivel21:uint;
public var tiempo_nivel16:uint;
public var tiempo_nivel17:uint;
public var dato_nombreplayer:String;
public var tiempo_nivel28:uint;
public var txt_info:TextField;
public var tiempo_nivel15:uint;
public var tiempo_nivel31:uint;
public var tiempo_nivel29:uint;
public var tiempo_nivel20:uint;
public var tiempo_nivel22:uint;
public var tiempo_nivel24:uint;
public var tiempo_nivel32:uint;
public var gota:MovieClip;
public var tiempo_nivel30:uint;
public var btn_sound:MovieClip;
public var logro_alimentarxveces:uint;
public var panelhigh:MovieClip;
public var txt_completado:MovieClip;
public var btn_credits:MovieClip;
private var tiempoParaSaltarDeNivel:Timer;
public var tiempo_total:uint;
public var retrylevel:MovieClip;
public var logro_pasareljuego:Boolean;
public var nivel_temp:Number;
public var logro_alimentarxveces_bol:Boolean;
public var txt_info_tiempo:TextField;
public var btn_highscores:MovieClip;
public var btn_tanoku:MovieClip;
public var logro_enfadarjydraxveces_bol:Boolean;
public var popup_desc:MovieClip;
public var pointer:DemoCursor;
public var so:SharedObject;
public var txt_info_nivel:TextField;
public var btn_moregames:MovieClip;
public var txt_nocompletado:MovieClip;
var cortina_logro:aviso_logro;
public var btn_music:MovieClip;
public var logro_enfadarjydraxveces:uint;
public var btn_view:MovieClip;
public var txt_info_estado:TextField;
public var nuevo_record:Boolean;// = false
public var logro_jugarxveces:uint;
public var btn_play:MovieClip;
public var intro1:MovieClip;
public var intro3:MovieClip;
public var intro4:MovieClip;
public var intro5:MovieClip;
public var intro2:MovieClip;
public var btn_submit:MovieClip;
public var logro_jugarxveces_bol:Boolean;
public var popup_tiempo:MovieClip;
private var tiempoMinutosJugados:Timer;
public var skip_intro:MovieClip;
private var tiempoquellevadormida:uint;// = 0
public var img_logro1:MovieClip;
public var img_logro2:MovieClip;
public var img_logro3:MovieClip;
public var img_logro4:MovieClip;
public var img_logro5:MovieClip;
public var img_logro6:MovieClip;
public var img_logro7:MovieClip;
public var img_logro8:MovieClip;
private var tiempoParaEsperar:Timer;
private var tiempoAvisoLogro:Timer;
public static var ejecutando_pelicula:Boolean = false;
public static var metas_escenario:Number;
public static var algo_en_movimiento:Boolean = false;
static var movimento_animandose:Boolean = false;
public static var tiempo_nivel:uint;
public static var view:View;
public static var VOLANDO:String = "volando";
public static var GRITACOME:String = "gritacome";
static var estoy_en_sponsor:Boolean = true;
public static var logro_alimentarxveces_local:uint = 0;
public static var Sound_Manager:SoundManager;
public static var TEMBLANDO:String = "temblando";
public static var QUIETO:String = "quieto";
public static var ESTATICO:String = "estatico";
public static var domain:String;
public static var niveles_desbloqueados:Number;
public static var logro_enfadarjydraxveces_local:uint = 0;
public static var GRITANDO:String = "gritando";
public static var Music_Manager:MusicManager;
public static var nivel_anterior:Number;
public static var tiempo_nivel_final:uint;
static var nivel_especial:Boolean = false;
public static var mejor_tiempo_nivel:uint;
public static var nivel_actual:Number;
public static var cursor:Cursor;
public static var meta_alcanzada:Boolean;
static var en_pelicula:Boolean = false;
public function Demo(){
var _local1:String;
loader = new URLLoader();
tiempoParaEsperar = new Timer(1000, 0);
tiempoquellevadormida = 0;
tiempoMinutosJugados = new Timer(5000, 0);
tiempoParaSaltarDeNivel = new Timer(3000, 0);
tiempoAvisoLogro = new Timer(6000, 0);
so = SharedObject.getLocal("userData");
niveles_desbloqueados_ant = so.data.lastlevel;
nuevo_record = false;
tiempo_nivel01 = so.data.time_level01;
tiempo_nivel02 = so.data.time_level02;
tiempo_nivel03 = so.data.time_level03;
tiempo_nivel04 = so.data.time_level04;
tiempo_nivel05 = so.data.time_level05;
tiempo_nivel06 = so.data.time_level06;
tiempo_nivel07 = so.data.time_level07;
tiempo_nivel08 = so.data.time_level08;
tiempo_nivel09 = so.data.time_level09;
tiempo_nivel10 = so.data.time_level10;
tiempo_nivel11 = so.data.time_level11;
tiempo_nivel12 = so.data.time_level12;
tiempo_nivel13 = so.data.time_level13;
tiempo_nivel14 = so.data.time_level14;
tiempo_nivel15 = so.data.time_level15;
tiempo_nivel16 = so.data.time_level16;
tiempo_nivel17 = so.data.time_level17;
tiempo_nivel18 = so.data.time_level18;
tiempo_nivel19 = so.data.time_level19;
tiempo_nivel20 = so.data.time_level20;
tiempo_nivel21 = so.data.time_level21;
tiempo_nivel22 = so.data.time_level22;
tiempo_nivel23 = so.data.time_level23;
tiempo_nivel24 = so.data.time_level24;
tiempo_nivel25 = so.data.time_level25;
tiempo_nivel26 = so.data.time_level26;
tiempo_nivel27 = so.data.time_level27;
tiempo_nivel28 = so.data.time_level28;
tiempo_nivel29 = so.data.time_level29;
tiempo_nivel30 = so.data.time_level30;
tiempo_nivel31 = so.data.time_level31;
tiempo_nivel32 = so.data.time_level32;
logro_pasareljuego = so.data.logro_pasareljuego;
logro_subirpuntuacion = so.data.logro_subirpuntuacion;
logro_jugar100minutos = so.data.logro_jugar100minutos;
logro_jugar100minutos_bol = so.data.logro_jugar100minutos_bol;
logro_dormirjydra = so.data.logro_dormirjydra;
logro_jugarxveces = so.data.logro_jugarxveces;
logro_jugarxveces_bol = so.data.logro_jugarxveces_bol;
logro_enfadarjydraxveces = so.data.logro_enfadarjydraxveces;
logro_enfadarjydraxveces_bol = so.data.logro_enfadarjydraxveces_bol;
logro_alimentarxveces = so.data.logro_alimentarxveces;
logro_alimentarxveces_bol = so.data.logro_alimentarxveces_bol;
dato_nombreplayer = so.data.dato_nombreplayer;
logro_visitarsponsor = so.data.logro_visitarsponsor;
cortina_logro = new aviso_logro();
super();
addFrameScript(0, frame1, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43);
cursor = (getChildByName("pointer") as Cursor);
stop();
addEventListener(Event.ENTER_FRAME, initialize, false, 0, true);
tiempoMinutosJugados.addEventListener(TimerEvent.TIMER, MinutosJugados);
tiempoAvisoLogro.addEventListener(TimerEvent.TIMER, CerrarAvisoLogro);
tiempoMinutosJugados.start();
niveles_desbloqueados = so.data.lastlevel;
tiempo_nivel01 = so.data.time_level01;
tiempo_nivel02 = so.data.time_level02;
tiempo_nivel03 = so.data.time_level03;
tiempo_nivel04 = so.data.time_level04;
tiempo_nivel05 = so.data.time_level05;
tiempo_nivel06 = so.data.time_level06;
tiempo_nivel07 = so.data.time_level07;
tiempo_nivel08 = so.data.time_level08;
tiempo_nivel09 = so.data.time_level09;
tiempo_nivel10 = so.data.time_level10;
tiempo_nivel11 = so.data.time_level11;
tiempo_nivel12 = so.data.time_level12;
tiempo_nivel13 = so.data.time_level13;
tiempo_nivel14 = so.data.time_level14;
tiempo_nivel15 = so.data.time_level15;
tiempo_nivel16 = so.data.time_level16;
tiempo_nivel17 = so.data.time_level17;
tiempo_nivel18 = so.data.time_level18;
tiempo_nivel19 = so.data.time_level19;
tiempo_nivel20 = so.data.time_level20;
tiempo_nivel21 = so.data.time_level21;
tiempo_nivel22 = so.data.time_level22;
tiempo_nivel23 = so.data.time_level23;
tiempo_nivel24 = so.data.time_level24;
tiempo_nivel25 = so.data.time_level25;
tiempo_nivel26 = so.data.time_level26;
tiempo_nivel27 = so.data.time_level27;
tiempo_nivel28 = so.data.time_level28;
tiempo_nivel29 = so.data.time_level29;
tiempo_nivel30 = so.data.time_level30;
tiempo_nivel31 = so.data.time_level31;
tiempo_nivel32 = so.data.time_level32;
if (isNaN(niveles_desbloqueados) == true){
niveles_desbloqueados = 1;
so.data.lastlevel = 1;
so.flush();
};
logro_pasareljuego = so.data.logro_pasareljuego;
logro_subirpuntuacion = so.data.logro_subirpuntuacion;
logro_jugar100minutos = so.data.logro_jugar100minutos;
if (isNaN(logro_jugar100minutos) == true){
logro_enfadarjydraxveces = 0;
so.data.logro_jugar100minutos = logro_enfadarjydraxveces;
so.flush();
};
logro_dormirjydra = so.data.logro_dormirjydra;
logro_jugarxveces = so.data.logro_jugarxveces;
logro_enfadarjydraxveces = so.data.logro_enfadarjydraxveces;
if (isNaN(logro_enfadarjydraxveces) == true){
logro_enfadarjydraxveces = 0;
};
logro_enfadarjydraxveces_local = logro_enfadarjydraxveces;
logro_enfadarjydraxveces_bol = so.data.logro_enfadarjydraxveces_bol;
logro_alimentarxveces = so.data.logro_alimentarxveces;
if (isNaN(logro_alimentarxveces) == true){
logro_alimentarxveces = 0;
};
logro_alimentarxveces_local = logro_alimentarxveces;
logro_alimentarxveces_bol = so.data.logro_alimentarxveces_bol;
logro_visitarsponsor = so.data.logro_visitarsponsor;
logro_jugarxveces = (logro_jugarxveces + 1);
so.data.logro_jugarxveces = logro_jugarxveces;
so.flush();
if ((((logro_jugarxveces >= 25)) && ((logro_jugarxveces_bol == false)))){
logro_jugarxveces_bol = true;
so.data.logro_jugarxveces_bol = logro_jugarxveces_bol;
so.flush();
LogroConseguido();
};
if (dato_nombreplayer == null){
dato_nombreplayer = "<write here>";
};
Cargar_Sonidos();
_local1 = "armorgames.com";
domain = this.root.loaderInfo.url.split("/")[2];
if (domain.indexOf(_local1) == (domain.length - _local1.length)){
estoy_en_sponsor = true;
} else {
estoy_en_sponsor = false;
};
}
public function submit(_arg1:MouseEvent):void{
var _local2:URLRequest;
var _local3:URLVariables;
var _local4:uint;
var _local5:Number;
var _local6:String;
dato_nombreplayer = nombre_player.text;
so.data.dato_nombreplayer = dato_nombreplayer;
so.flush();
_local2 = new URLRequest("http://rankz.armorbot.com/submit/as3_v0.php");
_local2.method = URLRequestMethod.POST;
_local3 = new URLVariables();
_local3.flashkey = "U0NxYklvRlQ=";
_local3.SU0249 = "MzA3NmolZSVhJW4lcw==";
_local4 = 0;
_local4 = ((((tiempo_nivel01 + tiempo_nivel02) + tiempo_nivel03) + tiempo_nivel04) + tiempo_nivel05);
_local4 = (((((_local4 + tiempo_nivel06) + tiempo_nivel07) + tiempo_nivel08) + tiempo_nivel09) + tiempo_nivel10);
_local4 = (((((_local4 + tiempo_nivel11) + tiempo_nivel12) + tiempo_nivel13) + tiempo_nivel14) + tiempo_nivel15);
_local4 = (((((_local4 + tiempo_nivel16) + tiempo_nivel17) + tiempo_nivel18) + tiempo_nivel19) + tiempo_nivel20);
_local4 = (((((_local4 + tiempo_nivel21) + tiempo_nivel22) + tiempo_nivel23) + tiempo_nivel24) + tiempo_nivel25);
_local4 = (_local4 / 1000);
_local3.bmFtZTE = dato_nombreplayer;
_local5 = _local4;
_local6 = (_local5 + "Z");
_local3.c2NvcmUx = _local6.split("0").join("U");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("").join("A");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("AU").join("Y");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("A1").join("B");
_local3.c2NvcmUx = _local3.c2NvcmUx.split(".").join("N");
_local2.data = _local3;
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, dataOnLoad);
loader.load(_local2);
if (logro_subirpuntuacion == false){
logro_subirpuntuacion = true;
so.data.logro_subirpuntuacion = logro_subirpuntuacion;
so.flush();
LogroConseguido();
};
}
private function MinutosJugados(_arg1:TimerEvent):void{
logro_jugar100minutos = (logro_jugar100minutos + 5);
so.data.logro_jugar100minutos = logro_jugar100minutos;
so.flush();
if ((((logro_jugar100minutos >= 6000)) && ((logro_jugar100minutos_bol == false)))){
logro_jugar100minutos_bol = true;
so.data.logro_jugar100minutos_bol = logro_jugar100minutos_bol;
so.flush();
LogroConseguido();
};
}
public function highscores(_arg1:MouseEvent):void{
gotoAndStop("highscores");
}
function frame10(){
initView("level01");
if (niveles_desbloqueados < 1){
niveles_desbloqueados = 1;
};
nivel_anterior = 1;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame11(){
initView("level02");
if (niveles_desbloqueados < 2){
niveles_desbloqueados = 2;
};
nivel_anterior = 2;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame14(){
initView("level05");
if (niveles_desbloqueados < 5){
niveles_desbloqueados = 5;
};
nivel_anterior = 5;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame15(){
initView("level06");
if (niveles_desbloqueados < 6){
niveles_desbloqueados = 6;
};
nivel_anterior = 6;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame16(){
initView("level07");
if (niveles_desbloqueados < 7){
niveles_desbloqueados = 7;
};
nivel_anterior = 7;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame17(){
initView("level08");
if (niveles_desbloqueados < 8){
niveles_desbloqueados = 8;
};
nivel_anterior = 8;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame1(){
MochiBot.track(this, "081ef47a");
}
public function mouse_dentro_logro(_arg1:MouseEvent):void{
var _local2:String;
_local2 = "";
switch (_arg1.target.name){
case "txt_logro1":
_local2 = "complete all levels";
break;
case "txt_logro2":
_local2 = "submit your score";
break;
case "txt_logro3":
_local2 = "play 100 minutes";
break;
case "txt_logro4":
_local2 = "all jellies quiet 10 minutes";
break;
case "txt_logro5":
_local2 = "play 25 times";
break;
case "txt_logro6":
_local2 = "angry Jydra 100 times";
break;
case "txt_logro7":
_local2 = "feed Jydra 100 times";
break;
case "txt_logro8":
_local2 = "click sponsor logo";
break;
};
popup_desc.visible = true;
popup_desc.x = (_arg1.stageX + 25);
popup_desc.y = (_arg1.stageY + 32);
popup_desc.txt_info.text = _local2;
}
function frame5(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
ActualizaIconosAudio();
btn_sponsor.addEventListener(MouseEvent.CLICK, sponsor, false, 0, true);
btn_moregames.addEventListener(MouseEvent.CLICK, moregames, false, 0, true);
btn_view.addEventListener(MouseEvent.CLICK, view_scoreboard, false, 0, true);
btn_submit.addEventListener(MouseEvent.CLICK, submit, false, 0, true);
btn_tanoku.addEventListener(MouseEvent.CLICK, tanoku, false, 0, true);
btn_back.addEventListener("click", exit_level);
if (logro_pasareljuego == true){
txt_nocompletado.visible = false;
txt_completado.visible = true;
btn_submit.visible = true;
btn_view.visible = true;
txt_nombre_player.visible = true;
nombre_player.visible = true;
nombre_player.text = dato_nombreplayer;
txt_total_segundos.visible = true;
tiempo_total = 0;
tiempo_total = ((((tiempo_nivel01 + tiempo_nivel02) + tiempo_nivel03) + tiempo_nivel04) + tiempo_nivel05);
tiempo_total = (((((tiempo_total + tiempo_nivel06) + tiempo_nivel07) + tiempo_nivel08) + tiempo_nivel09) + tiempo_nivel10);
tiempo_total = (((((tiempo_total + tiempo_nivel11) + tiempo_nivel12) + tiempo_nivel13) + tiempo_nivel14) + tiempo_nivel15);
tiempo_total = (((((tiempo_total + tiempo_nivel16) + tiempo_nivel17) + tiempo_nivel18) + tiempo_nivel19) + tiempo_nivel20);
tiempo_total = (((((tiempo_total + tiempo_nivel21) + tiempo_nivel22) + tiempo_nivel23) + tiempo_nivel24) + tiempo_nivel25);
tiempo_total = (tiempo_total / 1000);
txt_total_segundos.text = (tiempo_total + " seconds.");
btn_view.x = 350;
} else {
txt_nocompletado.visible = true;
txt_completado.visible = false;
btn_submit.visible = false;
btn_view.visible = true;
txt_nombre_player.visible = false;
nombre_player.visible = false;
txt_total_segundos.visible = false;
btn_view.x = 440;
};
}
function frame6(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
btn_sponsor.addEventListener(MouseEvent.CLICK, sponsor, false, 0, true);
btn_moregames.addEventListener(MouseEvent.CLICK, moregames, false, 0, true);
btn_tanoku.addEventListener(MouseEvent.CLICK, tanoku, false, 0, true);
ActualizaIconosAudio();
btn_back.addEventListener("click", exit_level);
txt_logro1.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro_logro, false, 0, true);
txt_logro1.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera_logro, false, 0, true);
txt_logro2.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro_logro, false, 0, true);
txt_logro2.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera_logro, false, 0, true);
txt_logro3.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro_logro, false, 0, true);
txt_logro3.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera_logro, false, 0, true);
txt_logro4.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro_logro, false, 0, true);
txt_logro4.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera_logro, false, 0, true);
txt_logro5.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro_logro, false, 0, true);
txt_logro5.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera_logro, false, 0, true);
txt_logro6.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro_logro, false, 0, true);
txt_logro6.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera_logro, false, 0, true);
txt_logro7.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro_logro, false, 0, true);
txt_logro7.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera_logro, false, 0, true);
txt_logro8.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro_logro, false, 0, true);
txt_logro8.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera_logro, false, 0, true);
img_logro1.visible = logro_pasareljuego;
img_logro2.visible = logro_subirpuntuacion;
img_logro3.visible = logro_jugar100minutos_bol;
img_logro4.visible = logro_dormirjydra;
img_logro5.visible = logro_jugarxveces_bol;
img_logro6.visible = logro_enfadarjydraxveces_bol;
img_logro7.visible = logro_alimentarxveces_bol;
img_logro8.visible = logro_visitarsponsor;
}
function frame7(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
btn_sponsor.addEventListener(MouseEvent.CLICK, sponsor, false, 0, true);
btn_moregames.addEventListener(MouseEvent.CLICK, moregames, false, 0, true);
btn_tanoku.addEventListener(MouseEvent.CLICK, tanoku, false, 0, true);
ActualizaIconosAudio();
btn_back.addEventListener("click", exit_level);
}
function frame8(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
btn_sponsor.addEventListener(MouseEvent.CLICK, sponsor, false, 0, true);
btn_moregames.addEventListener(MouseEvent.CLICK, moregames, false, 0, true);
btn_tanoku.addEventListener(MouseEvent.CLICK, tanoku, false, 0, true);
ActualizaIconosAudio();
btn_back.addEventListener("click", exit_level);
if ((((((niveles_desbloqueados == 0)) || ((niveles_desbloqueados == null)))) || ((niveles_desbloqueados == NaN)))){
niveles_desbloqueados = 1;
};
popup_tiempo.visible = false;
irnivel01.visible = false;
irnivel02.visible = false;
irnivel03.visible = false;
irnivel04.visible = false;
irnivel05.visible = false;
irnivel06.visible = false;
irnivel07.visible = false;
irnivel08.visible = false;
irnivel09.visible = false;
irnivel10.visible = false;
irnivel11.visible = false;
irnivel12.visible = false;
irnivel13.visible = false;
irnivel14.visible = false;
irnivel15.visible = false;
irnivel16.visible = false;
irnivel17.visible = false;
irnivel18.visible = false;
irnivel19.visible = false;
irnivel20.visible = false;
irnivel21.visible = false;
irnivel22.visible = false;
irnivel23.visible = false;
irnivel24.visible = false;
irnivel25.visible = false;
irnivel26.visible = false;
irnivel27.visible = false;
irnivel28.visible = false;
irnivel29.visible = false;
irnivel30.visible = false;
irnivel31.visible = false;
irnivel32.visible = false;
irnivel01.addEventListener("click", abrir_nivel);
irnivel01.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel01.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel02.addEventListener("click", abrir_nivel);
irnivel02.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel02.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel03.addEventListener("click", abrir_nivel);
irnivel03.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel03.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel04.addEventListener("click", abrir_nivel);
irnivel04.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel04.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel05.addEventListener("click", abrir_nivel);
irnivel05.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel05.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel06.addEventListener("click", abrir_nivel);
irnivel06.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel06.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel07.addEventListener("click", abrir_nivel);
irnivel07.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel07.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel08.addEventListener("click", abrir_nivel);
irnivel08.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel08.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel09.addEventListener("click", abrir_nivel);
irnivel09.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel09.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel10.addEventListener("click", abrir_nivel);
irnivel10.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel10.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel11.addEventListener("click", abrir_nivel);
irnivel11.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel11.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel12.addEventListener("click", abrir_nivel);
irnivel12.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel12.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel13.addEventListener("click", abrir_nivel);
irnivel13.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel13.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel14.addEventListener("click", abrir_nivel);
irnivel14.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel14.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel15.addEventListener("click", abrir_nivel);
irnivel15.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel15.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel16.addEventListener("click", abrir_nivel);
irnivel16.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel16.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel17.addEventListener("click", abrir_nivel);
irnivel17.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel17.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel18.addEventListener("click", abrir_nivel);
irnivel18.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel18.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel19.addEventListener("click", abrir_nivel);
irnivel19.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel19.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel20.addEventListener("click", abrir_nivel);
irnivel20.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel20.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel21.addEventListener("click", abrir_nivel);
irnivel21.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel21.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel22.addEventListener("click", abrir_nivel);
irnivel22.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel22.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel23.addEventListener("click", abrir_nivel);
irnivel23.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel23.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel24.addEventListener("click", abrir_nivel);
irnivel24.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel24.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel25.addEventListener("click", abrir_nivel);
irnivel25.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel25.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel31.addEventListener("click", abrir_nivel);
irnivel31.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
irnivel31.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
irnivel26.addEventListener("click", abrir_nivel);
irnivel27.addEventListener("click", abrir_nivel);
irnivel28.addEventListener("click", abrir_nivel);
irnivel29.addEventListener("click", abrir_nivel);
irnivel30.addEventListener("click", abrir_nivel);
irnivel31.addEventListener("click", abrir_nivel);
irnivel32.addEventListener("click", abrir_nivel);
if (niveles_desbloqueados >= 1){
irnivel01.visible = true;
};
if (niveles_desbloqueados >= 2){
irnivel02.visible = true;
};
if (niveles_desbloqueados >= 3){
irnivel03.visible = true;
};
if (niveles_desbloqueados >= 4){
irnivel04.visible = true;
};
if (niveles_desbloqueados >= 5){
irnivel05.visible = true;
};
if (niveles_desbloqueados >= 6){
irnivel06.visible = true;
};
if (niveles_desbloqueados >= 7){
irnivel07.visible = true;
};
if (niveles_desbloqueados >= 8){
irnivel08.visible = true;
};
if (niveles_desbloqueados >= 9){
irnivel09.visible = true;
};
if (niveles_desbloqueados >= 10){
irnivel10.visible = true;
};
if (niveles_desbloqueados >= 11){
irnivel11.visible = true;
};
if (niveles_desbloqueados >= 12){
irnivel12.visible = true;
};
if (niveles_desbloqueados >= 13){
irnivel13.visible = true;
};
if (niveles_desbloqueados >= 14){
irnivel14.visible = true;
};
if (niveles_desbloqueados >= 15){
irnivel15.visible = true;
};
if (niveles_desbloqueados >= 16){
irnivel16.visible = true;
};
if (niveles_desbloqueados >= 17){
irnivel17.visible = true;
};
if (niveles_desbloqueados >= 18){
irnivel18.visible = true;
};
if (niveles_desbloqueados >= 19){
irnivel19.visible = true;
};
if (niveles_desbloqueados >= 20){
irnivel20.visible = true;
};
if (niveles_desbloqueados >= 21){
irnivel21.visible = true;
};
if (niveles_desbloqueados >= 22){
irnivel22.visible = true;
};
if (niveles_desbloqueados >= 23){
irnivel23.visible = true;
};
if (niveles_desbloqueados >= 24){
irnivel24.visible = true;
};
if (niveles_desbloqueados >= 25){
irnivel25.visible = true;
};
if (niveles_desbloqueados >= 26){
irnivel26.visible = true;
};
if (niveles_desbloqueados >= 27){
irnivel27.visible = true;
};
if (niveles_desbloqueados >= 28){
irnivel28.visible = true;
};
if (niveles_desbloqueados >= 29){
irnivel29.visible = true;
};
if (niveles_desbloqueados >= 30){
irnivel30.visible = true;
};
if ((((logro_pasareljuego == true)) && ((estoy_en_sponsor == true)))){
irnivel31.visible = true;
};
if (niveles_desbloqueados >= 32){
irnivel32.visible = true;
};
}
function frame19(){
initView("level10");
if (niveles_desbloqueados < 10){
niveles_desbloqueados = 10;
};
nivel_anterior = 10;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame24(){
initView("level15");
if (niveles_desbloqueados < 15){
niveles_desbloqueados = 15;
};
nivel_anterior = 15;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame12(){
initView("level03");
if (niveles_desbloqueados < 3){
niveles_desbloqueados = 3;
};
nivel_anterior = 3;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame21(){
initView("level12");
if (niveles_desbloqueados < 12){
niveles_desbloqueados = 12;
};
nivel_anterior = 12;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame30(){
initView("level21");
if (niveles_desbloqueados < 21){
niveles_desbloqueados = 21;
};
nivel_anterior = 21;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
public function moregames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://armorgames.com/?gamereferral=JellyTowers"));
}
function frame33(){
initView("level24");
if (niveles_desbloqueados < 24){
niveles_desbloqueados = 24;
};
nivel_anterior = 24;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame42(){
retrylevel.addEventListener(MouseEvent.CLICK, retry_level, false, 0, true);
exitlevel.addEventListener(MouseEvent.CLICK, exit_level, false, 0, true);
nextlevel.addEventListener(MouseEvent.CLICK, next_level, false, 0, true);
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
nextlevel.addEventListener(MouseEvent.CLICK, next_level, false, 0, true);
ActualizaIconosAudio();
if (nivel_especial == false){
nextlevel.visible = true;
nivel_temp = nivel_actual;
if (nivel_temp >= 6){
nivel_temp = (nivel_temp - 5);
cad_temp = "Level ";
} else {
cad_temp = "Tutorial ";
};
txt_info_nivel.text = ((cad_temp + nivel_temp) + " Completed");
txt_info_tiempo.text = ((tiempo_nivel_final / 1000) + " s");
txt_info_mejor_tiempo.text = ((mejor_tiempo_nivel / 1000) + " s");
nuevo_record_mc.visible = false;
if (nuevo_record == true){
nuevo_record_mc.visible = true;
};
} else {
nextlevel.visible = false;
cad_temp = "Level ";
txt_info_nivel.text = (cad_temp + " Completed");
txt_info_tiempo.text = ((tiempo_nivel_final / 1000) + " s");
txt_info_mejor_tiempo.text = ((mejor_tiempo_nivel / 1000) + " s");
nuevo_record_mc.visible = false;
if (nuevo_record == true){
nuevo_record_mc.visible = true;
};
};
}
function frame20(){
initView("level11");
if (niveles_desbloqueados < 11){
niveles_desbloqueados = 11;
};
nivel_anterior = 11;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame23(){
initView("level14");
if (niveles_desbloqueados < 14){
niveles_desbloqueados = 14;
};
nivel_anterior = 14;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
public function credits(_arg1:MouseEvent):void{
gotoAndStop("credits");
}
function frame26(){
initView("level17");
if (niveles_desbloqueados < 17){
niveles_desbloqueados = 17;
};
nivel_anterior = 17;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame28(){
initView("level19");
if (niveles_desbloqueados < 19){
niveles_desbloqueados = 19;
};
nivel_anterior = 19;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
private function CuentaAtrasJuego(_arg1:TimerEvent):void{
nivel_actual = nivel_anterior;
if (view.world.b2world.all_is_sleeping){
movimiento.gotoAndStop(1);
movimento_animandose = false;
tiempoquellevadormida = (tiempoquellevadormida + 1);
if (tiempoquellevadormida > 600){
if (logro_dormirjydra == false){
logro_dormirjydra = true;
so.data.logro_dormirjydra = logro_dormirjydra;
so.flush();
LogroConseguido();
};
};
} else {
tiempoquellevadormida = 0;
if (en_pelicula == false){
movimiento.visible = true;
if (movimento_animandose == false){
movimento_animandose = true;
movimiento.gotoAndPlay(1);
};
} else {
movimiento.visible = false;
};
};
logro_enfadarjydraxveces = logro_enfadarjydraxveces_local;
so.data.logro_enfadarjydraxveces = logro_enfadarjydraxveces;
if ((((logro_enfadarjydraxveces >= 100)) && ((logro_enfadarjydraxveces_bol == false)))){
logro_enfadarjydraxveces_bol = true;
so.data.logro_enfadarjydraxveces_bol = logro_enfadarjydraxveces_bol;
so.flush();
LogroConseguido();
};
logro_alimentarxveces = logro_alimentarxveces_local;
so.data.logro_alimentarxveces = logro_alimentarxveces;
if ((((logro_alimentarxveces >= 100)) && ((logro_alimentarxveces_bol == false)))){
logro_alimentarxveces_bol = true;
so.data.logro_alimentarxveces_bol = logro_alimentarxveces_bol;
so.flush();
LogroConseguido();
};
if (!view.world.b2world.all_is_sleeping){
};
if (metas_escenario == 0){
tiempoParaSaltarDeNivel.start();
} else {
tiempoParaSaltarDeNivel.stop();
};
}
public function activar_nextlevel():void{
nextlevel.visible = true;
}
public function abrir_nivel(_arg1:Event):void{
Music_Manager.stopAllSounds(true);
Sound_Manager.stopAllSounds(true);
Music_Manager.playSound("musica01", 0.1, 0, 99);
nivel_especial = false;
switch (_arg1.target.name){
case "irnivel01":
gotoAndStop(10);
break;
case "irnivel02":
gotoAndStop(11);
break;
case "irnivel03":
gotoAndStop(12);
break;
case "irnivel04":
gotoAndStop(13);
break;
case "irnivel05":
gotoAndStop(14);
break;
case "irnivel06":
gotoAndPlay("intro1");
break;
case "irnivel07":
gotoAndStop(16);
break;
case "irnivel08":
gotoAndStop(17);
break;
case "irnivel09":
gotoAndStop(18);
break;
case "irnivel10":
gotoAndStop(19);
break;
case "irnivel11":
gotoAndPlay("intro2");
break;
case "irnivel12":
gotoAndStop(21);
break;
case "irnivel13":
gotoAndStop(22);
break;
case "irnivel14":
gotoAndStop(23);
break;
case "irnivel15":
gotoAndStop(24);
break;
case "irnivel16":
gotoAndPlay("intro3");
break;
case "irnivel17":
gotoAndStop(26);
break;
case "irnivel18":
gotoAndStop(27);
break;
case "irnivel19":
gotoAndStop(28);
break;
case "irnivel20":
gotoAndStop(29);
break;
case "irnivel21":
gotoAndPlay("intro4");
break;
case "irnivel22":
gotoAndStop(31);
break;
case "irnivel23":
gotoAndStop(32);
break;
case "irnivel24":
gotoAndStop(33);
break;
case "irnivel25":
gotoAndStop(34);
break;
case "irnivel26":
gotoAndStop(35);
break;
case "irnivel27":
gotoAndStop(36);
break;
case "irnivel28":
gotoAndStop(37);
break;
case "irnivel29":
gotoAndStop(38);
break;
case "irnivel30":
gotoAndStop(39);
break;
case "irnivel31":
nivel_especial = true;
gotoAndStop(40);
break;
case "irnivel32":
gotoAndStop(41);
break;
default:
gotoAndStop("mainscreen");
};
}
function frame36(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
ActualizaIconosAudio();
skip_intro.addEventListener(MouseEvent.CLICK, saltar2, false, 0, true);
exitlevel.addEventListener(MouseEvent.CLICK, exit_level, false, 0, true);
movimiento.visible = false;
stop();
intro2.play();
}
function frame38(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
ActualizaIconosAudio();
skip_intro.addEventListener(MouseEvent.CLICK, saltar4, false, 0, true);
exitlevel.addEventListener(MouseEvent.CLICK, exit_level, false, 0, true);
movimiento.visible = false;
stop();
intro4.play();
}
function frame4(){
btn_play.addEventListener(MouseEvent.CLICK, jugar, false, 0, true);
btn_highscores.addEventListener(MouseEvent.CLICK, highscores, false, 0, true);
btn_achievements.addEventListener(MouseEvent.CLICK, achievements, false, 0, true);
btn_credits.addEventListener(MouseEvent.CLICK, credits, false, 0, true);
btn_sponsor.addEventListener(MouseEvent.CLICK, sponsor, false, 0, true);
btn_moregames.addEventListener(MouseEvent.CLICK, moregames, false, 0, true);
btn_tanoku.addEventListener(MouseEvent.CLICK, tanoku, false, 0, true);
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
Music_Manager.stopAllSounds(true);
Sound_Manager.stopAllSounds(true);
ActualizaIconosAudio();
Music_Manager.playSound("musica00", 0.1, 0, 99);
if (estoy_en_sponsor){
gota.visible = true;
} else {
gota.visible = false;
};
}
function frame27(){
initView("level18");
if (niveles_desbloqueados < 18){
niveles_desbloqueados = 18;
};
nivel_anterior = 18;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame35(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
ActualizaIconosAudio();
skip_intro.addEventListener(MouseEvent.CLICK, saltar, false, 0, true);
exitlevel.addEventListener(MouseEvent.CLICK, exit_level, false, 0, true);
movimiento.visible = false;
stop();
intro1.play();
}
function frame37(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
ActualizaIconosAudio();
skip_intro.addEventListener(MouseEvent.CLICK, saltar3, false, 0, true);
exitlevel.addEventListener(MouseEvent.CLICK, exit_level, false, 0, true);
movimiento.visible = false;
stop();
intro3.play();
}
public function exit_level(_arg1:MouseEvent):void{
Demo.en_pelicula = false;
Sound_Manager.stopAllSounds(true);
tiempoParaSaltarDeNivel.stop();
tiempoParaEsperar.stop();
if (view){
view.cleanUp();
};
gotoAndStop("mainscreen");
}
function frame25(){
initView("level16");
if (niveles_desbloqueados < 16){
niveles_desbloqueados = 16;
};
nivel_anterior = 16;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
public function ActivarMusica(_arg1:MouseEvent):void{
Music_Manager.Mute();
if (Music_Manager.Activo){
btn_music.gotoAndStop(1);
} else {
btn_music.gotoAndStop(2);
};
}
public function mouse_fuera_logro(_arg1:MouseEvent):void{
if (popup_desc){
popup_desc.visible = false;
};
}
function frame31(){
initView("level22");
if (niveles_desbloqueados < 22){
niveles_desbloqueados = 22;
};
nivel_anterior = 22;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame39(){
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
ActualizaIconosAudio();
skip_intro.addEventListener(MouseEvent.CLICK, saltar5, false, 0, true);
exitlevel.addEventListener(MouseEvent.CLICK, exit_level, false, 0, true);
movimiento.visible = false;
stop();
intro5.play();
}
function frame18(){
initView("level09");
if (niveles_desbloqueados < 9){
niveles_desbloqueados = 9;
};
nivel_anterior = 9;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
public function view_scoreboard(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://rankz.armorbot.com/Jelly_Towers/"));
}
public function kd(_arg1:KeyboardEvent):void{
}
function frame29(){
initView("level20");
if (niveles_desbloqueados < 20){
niveles_desbloqueados = 20;
};
nivel_anterior = 20;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame32(){
initView("level23");
if (niveles_desbloqueados < 23){
niveles_desbloqueados = 23;
};
nivel_anterior = 23;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
private function CuentaAtrasSaltoNivel(_arg1:TimerEvent):void{
tiempo_nivel_final = (getTimer() - tiempo_nivel);
actualiza_tabla_tiempos();
tiempoParaSaltarDeNivel.stop();
abrir_pantalla_salto_nivel();
}
function frame34(){
initView("level25");
if (niveles_desbloqueados < 25){
niveles_desbloqueados = 25;
};
nivel_anterior = 25;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame40(){
initView("level31");
}
function frame41(){
initView("level32");
if (niveles_desbloqueados < 32){
niveles_desbloqueados = 32;
};
nivel_anterior = 32;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
function frame43(){
exitlevel.addEventListener(MouseEvent.CLICK, exit_level, false, 0, true);
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
ActualizaIconosAudio();
}
function frame13(){
initView("level04");
if (niveles_desbloqueados < 4){
niveles_desbloqueados = 4;
};
nivel_anterior = 4;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
public function CerrarAvisoLogro(_arg1:TimerEvent):void{
trace("matar logro");
if (cortina_logro){
removeChild(cortina_logro);
cortina_logro = null;
};
tiempoAvisoLogro.stop();
}
public function ActivarSonido(_arg1:MouseEvent):void{
Sound_Manager.Mute();
if (Sound_Manager.Activo){
btn_sound.gotoAndStop(1);
} else {
btn_sound.gotoAndStop(2);
};
}
function frame22(){
initView("level13");
if (niveles_desbloqueados < 13){
niveles_desbloqueados = 13;
};
nivel_anterior = 13;
so.data.lastlevel = niveles_desbloqueados;
so.flush();
}
public function jugar(_arg1:MouseEvent):void{
gotoAndStop("selnivel");
}
public function mouse_fuera(_arg1:MouseEvent):void{
if (popup_tiempo){
popup_tiempo.visible = false;
};
}
public function saltar3(_arg1:MouseEvent):void{
Demo.en_pelicula = false;
gotoAndStop(25);
}
public function saltar4(_arg1:MouseEvent):void{
Demo.en_pelicula = false;
gotoAndStop(30);
}
public function saltar5(_arg1:MouseEvent):void{
Demo.en_pelicula = false;
gotoAndStop("mainscreen");
}
public function saltar2(_arg1:MouseEvent):void{
Demo.en_pelicula = false;
gotoAndStop(20);
}
public function Cargar_Sonidos():void{
Sound_Manager = SoundManager.getInstance();
Music_Manager = MusicManager.getInstance();
Music_Manager.addLibrarySound(musica00, "musica00");
Music_Manager.addLibrarySound(musica01, "musica01");
Sound_Manager.addLibrarySound(monster_angry, "monster_angry");
Sound_Manager.addLibrarySound(monster_eating, "monster_eating");
Sound_Manager.addLibrarySound(jelly_click, "jelly_click");
Sound_Manager.addLibrarySound(jelly_drop, "jelly_drop");
Sound_Manager.addLibrarySound(mouse_off, "mouse_off");
}
public function desactivar_nextlevel():void{
nextlevel.visible = false;
}
public function tanoku(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://tanoku.com/eng/flash/index.html"));
}
public function saltar(_arg1:MouseEvent):void{
gotoAndStop(15);
}
public function sponsor(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://armorgames.com/play/2664/jelly-towers?gamereferral=JellyTowers"));
if (logro_visitarsponsor == false){
logro_visitarsponsor = true;
so.data.logro_visitarsponsor = logro_visitarsponsor;
so.flush();
LogroConseguido();
};
}
public function achievements(_arg1:MouseEvent):void{
gotoAndStop("achievements");
}
public function retry_level(_arg1:MouseEvent):void{
tiempoParaEsperar.stop();
if (nivel_especial){
nivel_especial = true;
gotoAndStop(40);
} else {
gotoAndStop((nivel_actual + 9));
};
}
public function next_level(_arg1:MouseEvent):void{
var _local2:Number;
nivel_actual = (nivel_anterior + 1);
if (nivel_actual <= 25){
_local2 = (nivel_actual + 9);
if ((((((((_local2 == 15)) || ((_local2 == 20)))) || ((_local2 == 25)))) || ((_local2 == 30)))){
en_pelicula = true;
if (_local2 == 15){
gotoAndStop("intro1");
};
if (_local2 == 20){
gotoAndStop("intro2");
};
if (_local2 == 25){
gotoAndStop("intro3");
};
if (_local2 == 30){
gotoAndStop("intro4");
};
} else {
gotoAndStop((nivel_actual + 9));
};
} else {
if (logro_pasareljuego == false){
logro_pasareljuego = true;
so.data.logro_pasareljuego = logro_pasareljuego;
so.flush();
LogroConseguido();
};
en_pelicula = true;
gotoAndStop("intro5");
};
tiempoParaEsperar.stop();
}
public function mouse_dentro(_arg1:MouseEvent):void{
var _local2:uint;
_local2 = 0;
switch (_arg1.target.name){
case "irnivel01":
_local2 = (tiempo_nivel01 / 1000);
break;
case "irnivel02":
_local2 = (tiempo_nivel02 / 1000);
break;
case "irnivel03":
_local2 = (tiempo_nivel03 / 1000);
break;
case "irnivel04":
_local2 = (tiempo_nivel04 / 1000);
break;
case "irnivel05":
_local2 = (tiempo_nivel05 / 1000);
break;
case "irnivel06":
_local2 = (tiempo_nivel06 / 1000);
break;
case "irnivel07":
_local2 = (tiempo_nivel07 / 1000);
break;
case "irnivel08":
_local2 = (tiempo_nivel08 / 1000);
break;
case "irnivel09":
_local2 = (tiempo_nivel09 / 1000);
break;
case "irnivel10":
_local2 = (tiempo_nivel10 / 1000);
break;
case "irnivel11":
_local2 = (tiempo_nivel11 / 1000);
break;
case "irnivel12":
_local2 = (tiempo_nivel12 / 1000);
break;
case "irnivel13":
_local2 = (tiempo_nivel13 / 1000);
break;
case "irnivel14":
_local2 = (tiempo_nivel14 / 1000);
break;
case "irnivel15":
_local2 = (tiempo_nivel15 / 1000);
break;
case "irnivel16":
_local2 = (tiempo_nivel16 / 1000);
break;
case "irnivel17":
_local2 = (tiempo_nivel17 / 1000);
break;
case "irnivel18":
_local2 = (tiempo_nivel18 / 1000);
break;
case "irnivel19":
_local2 = (tiempo_nivel19 / 1000);
break;
case "irnivel20":
_local2 = (tiempo_nivel20 / 1000);
break;
case "irnivel21":
_local2 = (tiempo_nivel21 / 1000);
break;
case "irnivel22":
_local2 = (tiempo_nivel22 / 1000);
break;
case "irnivel23":
_local2 = (tiempo_nivel23 / 1000);
break;
case "irnivel24":
_local2 = (tiempo_nivel24 / 1000);
break;
case "irnivel25":
_local2 = (tiempo_nivel25 / 1000);
break;
case "irnivel31":
_local2 = (tiempo_nivel31 / 1000);
break;
};
if (_local2 == 0){
} else {
popup_tiempo.visible = true;
popup_tiempo.x = (_arg1.stageX + 25);
popup_tiempo.y = (_arg1.stageY + 32);
popup_tiempo.txt_info.text = (_local2 + " sec.");
};
}
public function LogroConseguido():void{
cortina_logro = new aviso_logro();
cortina_logro.x = 350;
cortina_logro.y = 640;
addChild(cortina_logro);
tiempoAvisoLogro.start();
}
public function ActualizaIconosAudio():void{
if (Music_Manager.Activo){
btn_music.gotoAndStop(1);
} else {
btn_music.gotoAndStop(2);
};
if (Sound_Manager.Activo){
btn_sound.gotoAndStop(1);
} else {
btn_sound.gotoAndStop(2);
};
}
public function actualiza_tabla_tiempos():void{
if (nivel_especial == true){
mejor_tiempo_nivel = tiempo_nivel31;
if ((((isNaN(tiempo_nivel31) == true)) || ((tiempo_nivel31 == 0)))){
tiempo_nivel31 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel31;
} else {
if (tiempo_nivel_final < tiempo_nivel31){
tiempo_nivel31 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel31;
nuevo_record = true;
};
};
so.data.time_level31 = tiempo_nivel31;
so.flush();
} else {
switch (nivel_actual){
case 1:
mejor_tiempo_nivel = tiempo_nivel01;
if ((((isNaN(tiempo_nivel01) == true)) || ((tiempo_nivel01 == 0)))){
tiempo_nivel01 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel01;
} else {
if (tiempo_nivel_final < tiempo_nivel01){
tiempo_nivel01 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel01;
nuevo_record = true;
};
};
so.data.time_level01 = tiempo_nivel01;
so.flush();
break;
case 2:
mejor_tiempo_nivel = tiempo_nivel02;
if ((((isNaN(tiempo_nivel02) == true)) || ((tiempo_nivel02 == 0)))){
tiempo_nivel02 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel02;
} else {
if (tiempo_nivel_final < tiempo_nivel02){
tiempo_nivel02 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel02;
nuevo_record = true;
};
};
so.data.time_level02 = tiempo_nivel02;
so.flush();
break;
case 3:
mejor_tiempo_nivel = tiempo_nivel03;
if ((((isNaN(tiempo_nivel03) == true)) || ((tiempo_nivel03 == 0)))){
tiempo_nivel03 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel03;
} else {
if (tiempo_nivel_final < tiempo_nivel03){
tiempo_nivel03 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel03;
nuevo_record = true;
};
};
so.data.time_level03 = tiempo_nivel03;
so.flush();
break;
case 4:
mejor_tiempo_nivel = tiempo_nivel04;
if ((((isNaN(tiempo_nivel04) == true)) || ((tiempo_nivel04 == 0)))){
tiempo_nivel04 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel04;
} else {
if (tiempo_nivel_final < tiempo_nivel04){
tiempo_nivel04 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel04;
nuevo_record = true;
};
};
so.data.time_level04 = tiempo_nivel04;
so.flush();
break;
case 5:
mejor_tiempo_nivel = tiempo_nivel05;
if ((((isNaN(tiempo_nivel05) == true)) || ((tiempo_nivel05 == 0)))){
tiempo_nivel05 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel05;
} else {
if (tiempo_nivel_final < tiempo_nivel05){
tiempo_nivel05 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel05;
nuevo_record = true;
};
};
so.data.time_level05 = tiempo_nivel05;
so.flush();
break;
case 6:
mejor_tiempo_nivel = tiempo_nivel06;
if ((((isNaN(tiempo_nivel06) == true)) || ((tiempo_nivel06 == 0)))){
tiempo_nivel06 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel06;
} else {
if (tiempo_nivel_final < tiempo_nivel06){
tiempo_nivel06 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel06;
nuevo_record = true;
};
};
so.data.time_level06 = tiempo_nivel06;
so.flush();
break;
case 7:
mejor_tiempo_nivel = tiempo_nivel07;
if ((((isNaN(tiempo_nivel07) == true)) || ((tiempo_nivel07 == 0)))){
tiempo_nivel07 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel07;
} else {
if (tiempo_nivel_final < tiempo_nivel07){
tiempo_nivel07 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel07;
nuevo_record = true;
};
};
so.data.time_level07 = tiempo_nivel07;
so.flush();
break;
case 8:
mejor_tiempo_nivel = tiempo_nivel08;
if ((((isNaN(tiempo_nivel08) == true)) || ((tiempo_nivel08 == 0)))){
tiempo_nivel08 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel08;
} else {
if (tiempo_nivel_final < tiempo_nivel08){
tiempo_nivel08 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel08;
nuevo_record = true;
};
};
so.data.time_level08 = tiempo_nivel08;
so.flush();
break;
case 9:
mejor_tiempo_nivel = tiempo_nivel09;
if ((((isNaN(tiempo_nivel09) == true)) || ((tiempo_nivel09 == 0)))){
tiempo_nivel09 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel09;
} else {
if (tiempo_nivel_final < tiempo_nivel09){
tiempo_nivel09 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel09;
nuevo_record = true;
};
};
so.data.time_level09 = tiempo_nivel09;
so.flush();
break;
case 10:
mejor_tiempo_nivel = tiempo_nivel10;
if ((((isNaN(tiempo_nivel10) == true)) || ((tiempo_nivel10 == 0)))){
tiempo_nivel10 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel10;
} else {
if (tiempo_nivel_final < tiempo_nivel10){
tiempo_nivel10 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel10;
nuevo_record = true;
};
};
so.data.time_level10 = tiempo_nivel10;
so.flush();
break;
case 11:
mejor_tiempo_nivel = tiempo_nivel11;
if ((((isNaN(tiempo_nivel11) == true)) || ((tiempo_nivel11 == 0)))){
tiempo_nivel11 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel11;
} else {
if (tiempo_nivel_final < tiempo_nivel11){
tiempo_nivel11 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel11;
nuevo_record = true;
};
};
so.data.time_level11 = tiempo_nivel11;
so.flush();
break;
case 12:
mejor_tiempo_nivel = tiempo_nivel12;
if ((((isNaN(tiempo_nivel12) == true)) || ((tiempo_nivel12 == 0)))){
tiempo_nivel12 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel12;
} else {
if (tiempo_nivel_final < tiempo_nivel12){
tiempo_nivel12 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel12;
nuevo_record = true;
};
};
so.data.time_level12 = tiempo_nivel12;
so.flush();
break;
case 13:
mejor_tiempo_nivel = tiempo_nivel13;
if ((((isNaN(tiempo_nivel13) == true)) || ((tiempo_nivel13 == 0)))){
tiempo_nivel13 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel13;
} else {
if (tiempo_nivel_final < tiempo_nivel13){
tiempo_nivel13 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel13;
nuevo_record = true;
};
};
so.data.time_level13 = tiempo_nivel13;
so.flush();
break;
case 14:
mejor_tiempo_nivel = tiempo_nivel14;
if ((((isNaN(tiempo_nivel14) == true)) || ((tiempo_nivel14 == 0)))){
tiempo_nivel14 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel14;
} else {
if (tiempo_nivel_final < tiempo_nivel14){
tiempo_nivel14 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel14;
nuevo_record = true;
};
};
so.data.time_level14 = tiempo_nivel14;
so.flush();
break;
case 15:
mejor_tiempo_nivel = tiempo_nivel15;
if ((((isNaN(tiempo_nivel15) == true)) || ((tiempo_nivel15 == 0)))){
tiempo_nivel15 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel15;
} else {
if (tiempo_nivel_final < tiempo_nivel15){
tiempo_nivel15 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel15;
nuevo_record = true;
};
};
so.data.time_level15 = tiempo_nivel15;
so.flush();
break;
case 16:
mejor_tiempo_nivel = tiempo_nivel16;
if ((((isNaN(tiempo_nivel16) == true)) || ((tiempo_nivel16 == 0)))){
tiempo_nivel16 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel16;
} else {
if (tiempo_nivel_final < tiempo_nivel16){
tiempo_nivel16 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel16;
nuevo_record = true;
};
};
so.data.time_level16 = tiempo_nivel16;
so.flush();
break;
case 17:
mejor_tiempo_nivel = tiempo_nivel17;
if ((((isNaN(tiempo_nivel17) == true)) || ((tiempo_nivel17 == 0)))){
tiempo_nivel17 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel17;
} else {
if (tiempo_nivel_final < tiempo_nivel17){
tiempo_nivel17 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel17;
nuevo_record = true;
};
};
so.data.time_level17 = tiempo_nivel17;
so.flush();
break;
case 18:
mejor_tiempo_nivel = tiempo_nivel18;
if ((((isNaN(tiempo_nivel18) == true)) || ((tiempo_nivel18 == 0)))){
tiempo_nivel18 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel18;
} else {
if (tiempo_nivel_final < tiempo_nivel18){
tiempo_nivel18 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel18;
nuevo_record = true;
};
};
so.data.time_level18 = tiempo_nivel18;
so.flush();
break;
case 19:
mejor_tiempo_nivel = tiempo_nivel19;
if ((((isNaN(tiempo_nivel19) == true)) || ((tiempo_nivel19 == 0)))){
tiempo_nivel19 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel19;
} else {
if (tiempo_nivel_final < tiempo_nivel19){
tiempo_nivel19 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel19;
nuevo_record = true;
};
};
so.data.time_level19 = tiempo_nivel19;
so.flush();
break;
case 20:
mejor_tiempo_nivel = tiempo_nivel20;
if ((((isNaN(tiempo_nivel20) == true)) || ((tiempo_nivel20 == 0)))){
tiempo_nivel20 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel20;
} else {
if (tiempo_nivel_final < tiempo_nivel20){
tiempo_nivel20 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel20;
nuevo_record = true;
};
};
so.data.time_level20 = tiempo_nivel20;
so.flush();
break;
case 21:
mejor_tiempo_nivel = tiempo_nivel21;
if ((((isNaN(tiempo_nivel21) == true)) || ((tiempo_nivel21 == 0)))){
tiempo_nivel21 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel21;
} else {
if (tiempo_nivel_final < tiempo_nivel21){
tiempo_nivel21 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel21;
nuevo_record = true;
};
};
so.data.time_level21 = tiempo_nivel21;
so.flush();
break;
case 22:
mejor_tiempo_nivel = tiempo_nivel22;
if ((((isNaN(tiempo_nivel22) == true)) || ((tiempo_nivel22 == 0)))){
tiempo_nivel22 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel22;
} else {
if (tiempo_nivel_final < tiempo_nivel22){
tiempo_nivel22 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel22;
nuevo_record = true;
};
};
so.data.time_level22 = tiempo_nivel22;
so.flush();
break;
case 23:
mejor_tiempo_nivel = tiempo_nivel23;
if ((((isNaN(tiempo_nivel23) == true)) || ((tiempo_nivel23 == 0)))){
tiempo_nivel23 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel23;
} else {
if (tiempo_nivel_final < tiempo_nivel23){
tiempo_nivel23 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel23;
nuevo_record = true;
};
};
so.data.time_level23 = tiempo_nivel23;
so.flush();
break;
case 24:
mejor_tiempo_nivel = tiempo_nivel24;
if ((((isNaN(tiempo_nivel24) == true)) || ((tiempo_nivel24 == 0)))){
tiempo_nivel24 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel24;
} else {
if (tiempo_nivel_final < tiempo_nivel24){
tiempo_nivel24 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel24;
nuevo_record = true;
};
};
so.data.time_level24 = tiempo_nivel24;
so.flush();
break;
case 25:
mejor_tiempo_nivel = tiempo_nivel25;
if ((((isNaN(tiempo_nivel25) == true)) || ((tiempo_nivel25 == 0)))){
tiempo_nivel25 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel25;
} else {
if (tiempo_nivel_final < tiempo_nivel25){
tiempo_nivel25 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel25;
nuevo_record = true;
};
};
so.data.time_level25 = tiempo_nivel25;
so.flush();
break;
case 26:
mejor_tiempo_nivel = tiempo_nivel26;
if ((((isNaN(tiempo_nivel26) == true)) || ((tiempo_nivel26 == 0)))){
tiempo_nivel26 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel26;
} else {
if (tiempo_nivel_final < tiempo_nivel26){
tiempo_nivel26 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel26;
nuevo_record = true;
};
};
so.data.time_level26 = tiempo_nivel26;
so.flush();
break;
case 27:
mejor_tiempo_nivel = tiempo_nivel27;
if ((((isNaN(tiempo_nivel27) == true)) || ((tiempo_nivel27 == 0)))){
tiempo_nivel27 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel27;
} else {
if (tiempo_nivel_final < tiempo_nivel27){
tiempo_nivel27 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel27;
nuevo_record = true;
};
};
so.data.time_level27 = tiempo_nivel27;
so.flush();
break;
case 28:
mejor_tiempo_nivel = tiempo_nivel28;
if ((((isNaN(tiempo_nivel28) == true)) || ((tiempo_nivel28 == 0)))){
tiempo_nivel28 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel28;
} else {
if (tiempo_nivel_final < tiempo_nivel28){
tiempo_nivel28 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel28;
nuevo_record = true;
};
};
so.data.time_level28 = tiempo_nivel28;
so.flush();
break;
case 29:
mejor_tiempo_nivel = tiempo_nivel29;
if ((((isNaN(tiempo_nivel29) == true)) || ((tiempo_nivel29 == 0)))){
tiempo_nivel29 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel29;
} else {
if (tiempo_nivel_final < tiempo_nivel29){
tiempo_nivel29 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel29;
nuevo_record = true;
};
};
so.data.time_level29 = tiempo_nivel29;
so.flush();
break;
case 30:
mejor_tiempo_nivel = tiempo_nivel30;
if ((((isNaN(tiempo_nivel30) == true)) || ((tiempo_nivel30 == 0)))){
tiempo_nivel30 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel30;
} else {
if (tiempo_nivel_final < tiempo_nivel30){
tiempo_nivel30 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel30;
nuevo_record = true;
};
};
so.data.time_level30 = tiempo_nivel30;
so.flush();
break;
case 31:
mejor_tiempo_nivel = tiempo_nivel31;
if ((((isNaN(tiempo_nivel31) == true)) || ((tiempo_nivel31 == 0)))){
tiempo_nivel31 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel31;
} else {
if (tiempo_nivel_final < tiempo_nivel31){
tiempo_nivel31 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel31;
nuevo_record = true;
};
};
so.data.time_level31 = tiempo_nivel31;
so.flush();
break;
case 32:
mejor_tiempo_nivel = tiempo_nivel32;
if ((((isNaN(tiempo_nivel32) == true)) || ((tiempo_nivel32 == 0)))){
tiempo_nivel32 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel32;
} else {
if (tiempo_nivel_final < tiempo_nivel32){
tiempo_nivel32 = tiempo_nivel_final;
mejor_tiempo_nivel = tiempo_nivel32;
nuevo_record = true;
};
};
so.data.time_level32 = tiempo_nivel32;
so.flush();
break;
};
};
}
public function abrir_pantalla_salto_nivel():void{
Sound_Manager.stopAllSounds(true);
tiempoParaEsperar.stop();
if (view){
view.cleanUp();
};
gotoAndStop("salto_nivel");
}
public function initialize(_arg1:Event){
Key.initialize(stage);
cursor.initialize();
removeEventListener(Event.ENTER_FRAME, initialize);
stage.addEventListener(KeyboardEvent.KEY_DOWN, kd);
}
function dataOnLoad(_arg1:Event){
navigateToURL(new URLRequest("http://rankz.armorbot.com/Jelly_Towers/"));
}
public function initView(_arg1):void{
var _local2:b2Body;
if (view){
view.cleanUp();
};
view = (getChildByName(_arg1) as View);
view.initialize();
cursor.world = view.world;
view.world.x = 0;
view.world.y = 0;
ActualizaIconosAudio();
tiempo_nivel = getTimer();
nuevo_record = false;
movimiento.visible = true;
btn_music.addEventListener(MouseEvent.CLICK, ActivarMusica, false, 0, true);
btn_sound.addEventListener(MouseEvent.CLICK, ActivarSonido, false, 0, true);
ActualizaIconosAudio();
exitlevel.addEventListener(MouseEvent.CLICK, exit_level, false, 0, true);
tiempoParaEsperar.addEventListener(TimerEvent.TIMER, CuentaAtrasJuego);
tiempoParaSaltarDeNivel.addEventListener(TimerEvent.TIMER, CuentaAtrasSaltoNivel);
tiempoParaEsperar.start();
meta_alcanzada = false;
metas_escenario = 0;
_local2 = view.world.b2world.GetBodyList();
while (_local2) {
if (_local2.m_userData == "[object meta]"){
metas_escenario++;
};
_local2 = _local2.GetNext();
};
algo_en_movimiento = false;
}
public static function SumarAlimentado():void{
logro_alimentarxveces_local = (logro_alimentarxveces_local + 1);
}
public static function SumarEnfado():void{
logro_enfadarjydraxveces_local = (logro_enfadarjydraxveces_local + 1);
}
}
}//package wck
Section 95
//DrawBody (wck.DrawBody)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
public class DrawBody extends Body {
public var points:Array;
public var lastAngle:Number;// = 0
public function DrawBody(){
points = [new b2Vec2(0, 0)];
lastAngle = 0;
super();
}
public function finish():void{
b2body.WakeUp();
}
public function drawTo(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{
var _local4:int;
var _local5:b2Vec2;
var _local6:b2Vec2;
var _local7:b2Vec2;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:b2Vec2;
var _local12:b2PolygonDef;
_local4 = points.length;
_local5 = new b2Vec2(_arg1, _arg2);
_local6 = points[(_local4 - 1)];
_local7 = new b2Vec2((_local5.x - _local6.x), (_local5.y - _local6.y));
_local8 = Math.atan2(_local7.y, _local7.x);
_local9 = (Math.abs((_local8 - lastAngle)) % (Math.PI * 2));
_local10 = _local7.Length();
trace(_local9);
if (((_local10) && (((_arg3) || ((_local9 > (20 / _local10))))))){
points.push(_local5);
lastAngle = _local8;
_local11 = new b2Vec2((((_local7.x * 0.5) + _local6.x) / world.scale), (((_local7.y * 0.5) + _local6.y) / world.scale));
_local12 = new b2PolygonDef();
_local12.SetAsOrientedBox(((_local10 / world.scale) / 2), (10 / world.scale), _local11, _local8);
_local12.density = 1;
b2body.CreateShape(_local12);
b2body.SetMassFromShapes();
refreshLines();
} else {
graphics.lineTo(_arg1, _arg2);
};
}
public function refreshLines(){
var _local1:int;
graphics.clear();
graphics.lineStyle(20, 0x999999);
graphics.moveTo(points[0].x, points[0].y);
_local1 = 1;
while (_local1 < points.length) {
graphics.lineTo(points[_local1].x, points[_local1].y);
_local1++;
};
}
override public function create():void{
bodyIsSleeping = true;
refreshLines();
super.create();
}
}
}//package wck
Section 96
//Earthquake (wck.Earthquake)
package wck {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Earthquake {
private static const FRAME_RATE:int = 25;
private static var timer:Timer;
private static var originalX:int;
private static var originalY:int;
private static var intensityOffset:int;
private static var intensity:int;
private static var image:DisplayObject;
private static function cleanup():void{
timer = null;
image = null;
}
public static function go(_arg1:DisplayObject, _arg2:Number=10, _arg3:Number=1):void{
var _local4:int;
var _local5:int;
if (timer){
timer.stop();
};
image = _arg1;
originalX = image.x;
originalY = image.y;
intensity = _arg2;
intensityOffset = (intensity / 2);
_local4 = int((1000 / FRAME_RATE));
_local5 = int(((_arg3 * 1000) / _local4));
timer = new Timer(_local4, _local5);
timer.addEventListener(TimerEvent.TIMER, quake);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, resetImage);
timer.start();
}
public static function temp():void{
}
private static function quake(_arg1:TimerEvent):void{
var _local2:int;
var _local3:int;
_local2 = ((originalX + (Math.random() * intensity)) - intensityOffset);
_local3 = ((originalY + (Math.random() * intensity)) - intensityOffset);
image.x = _local2;
image.y = _local3;
}
private static function resetImage(_arg1:TimerEvent=null):void{
image.x = 0;
image.y = 0;
cleanup();
}
}
}//package wck
Section 97
//Goal (wck.Goal)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
import flash.utils.*;
public class Goal extends Shape {
private var hasidoalimentada:Boolean;// = false
private var tiempoEnContactoLanzado:Boolean;// = false
public var goalFinished:Boolean;
public var animacion_anterior:String;
private var hasidoenfadada:Boolean;// = false
private var estado:String;
public var validGoalBody:String;// = ""
private var tiempoParaAnimar:Timer;
public var gritando:Boolean;
private var tiempoEnContacto:Timer;
public var animacion_actual:String;
public function Goal():void{
tiempoParaAnimar = new Timer(100, 0);
tiempoEnContacto = new Timer(3000, 0);
tiempoEnContactoLanzado = false;
hasidoenfadada = false;
hasidoalimentada = false;
validGoalBody = "";
super();
goalFinished = false;
}
public function contactRemoved(_arg1:Contact):void{
}
private function ControlAnimacion(_arg1:TimerEvent):void{
if (gritando == true){
if ((Demo.Sound_Manager.getSoundPosition("monster_angry") + (Demo.Sound_Manager.getSoundPosition("monster_angry") / 10)) >= Demo.Sound_Manager.getSoundDuration("monster_angry")){
if (goalFinished == false){
animacion_actual = Demo.QUIETO;
if (animacion_actual != animacion_anterior){
animacion_anterior = Demo.QUIETO;
this.gotoAndPlay(animacion_actual);
};
};
};
} else {
if (goalFinished == false){
animacion_actual = Demo.QUIETO;
if (animacion_actual != animacion_anterior){
animacion_anterior = Demo.QUIETO;
this.gotoAndPlay(animacion_actual);
};
};
};
}
private function MetaAlcanzada():void{
if (hasidoalimentada == false){
hasidoalimentada = true;
Demo.SumarAlimentado();
};
animacion_actual = Demo.GRITACOME;
if (animacion_actual != animacion_anterior){
animacion_anterior = Demo.GRITACOME;
this.gotoAndPlay(animacion_actual);
};
Demo.Sound_Manager.playSound("monster_eating");
Demo.meta_alcanzada = true;
goalFinished = true;
Demo.metas_escenario--;
}
public function contactAdded(_arg1:Contact):void{
}
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "goal";
_arg1 = _arg1.concat(polygonListDef([[[55, 20], [55, 80], [-55, 80], [-55, 20]]]));
super.addShapes(_arg1);
addEventListener("addContact", contactAdded, false, 0, true);
addEventListener("persistContact", contactPersist, false, 0, true);
addEventListener("removeContact", contactRemoved, false, 0, true);
tiempoParaAnimar.addEventListener(TimerEvent.TIMER, ControlAnimacion);
tiempoParaAnimar.start();
tiempoEnContacto.addEventListener(TimerEvent.TIMER, ControlPiezaEnContacto);
tiempoEnContacto.stop();
tiempoEnContactoLanzado = false;
goalFinished = false;
gritando = false;
animacion_actual = Demo.QUIETO;
animacion_anterior = Demo.QUIETO;
this.gotoAndPlay(animacion_actual);
}
private function MetaNoAlcanzada():void{
Demo.Sound_Manager.stopSound("monster_eating");
Demo.meta_alcanzada = false;
goalFinished = false;
Demo.metas_escenario++;
}
private function ControlPiezaEnContacto(_arg1:TimerEvent):void{
}
public function contactPersist(_arg1:Contact):void{
var _local2:b2Body;
var _local3:Number;
if ((((_arg1.cp.shape1.IsSensor() == true)) || ((_arg1.cp.shape2.IsSensor() == true)))){
if ((((_arg1.cp.shape1.m_body.IsSleeping() == true)) || ((_arg1.cp.shape2.m_body.IsSleeping() == true)))){
if (validGoalBody != ""){
if ((((_arg1.cp.shape1.m_body.m_type_cad == validGoalBody)) || ((_arg1.cp.shape2.m_body.m_type_cad == validGoalBody)))){
if (goalFinished == false){
MetaAlcanzada();
};
} else {
if (hasidoenfadada == false){
hasidoenfadada = true;
Demo.SumarEnfado();
};
Demo.Sound_Manager.playSound("monster_angry");
gritando = true;
animacion_actual = "gritando";
if (animacion_actual != animacion_anterior){
animacion_anterior = "gritando";
this.gotoAndPlay(animacion_actual);
};
Earthquake.go(Demo.view.world, 10, 2);
_local2 = Demo.view.world.b2world.GetBodyList();
while (_local2) {
_local3 = (Math.random() * 1);
if (_local3 > 0.5){
_local3 = 1;
} else {
_local3 = -1;
};
_local2.ApplyForce(new b2Vec2((_local3 * ((Math.random() * -2000) - 50)), -(((Math.random() * 2000) - 50))), _local2.GetWorldCenter());
_local2 = _local2.GetNext();
};
};
} else {
if (goalFinished == false){
MetaAlcanzada();
};
};
} else {
if (goalFinished == true){
MetaNoAlcanzada();
};
};
} else {
if (goalFinished == true){
MetaNoAlcanzada();
};
};
}
}
}//package wck
Section 98
//jelly_anilla (wck.jelly_anilla)
package wck {
public class jelly_anilla extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[20, -100], [20, -140], [140, -140], [100, -100]], [[-20, -100], [-100, -100], [-140, -140], [-20, -140]], [[-100, -100], [-100, 100], [-140, 140], [-140, -140]], [[-100, 100], [100, 100], [140, 140], [-140, 140]], [[100, 100], [100, -100], [140, -140], [140, 140]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 99
//jelly_anilla_invertida (wck.jelly_anilla_invertida)
package wck {
public class jelly_anilla_invertida extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[-100, 80], [-100, 40], [-60, 40], [-20, 80]], [[100, 80], [20, 80], [60, 40], [100, 40]], [[20, 80], [20, -40], [60, -80], [60, 40]], [[20, -40], [-20, -40], [-60, -80], [60, -80]], [[-20, -40], [-20, 80], [-60, 40], [-60, -80]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 100
//jelly_boca (wck.jelly_boca)
package wck {
public class jelly_boca extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[140, -100], [140, -60], [-100, -60], [-140, -100]], [[140, 100], [-140, 100], [-100, 60], [140, 60]], [[-140, 100], [-140, -100], [-100, -60], [-100, 60]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 101
//jelly_boca_larga (wck.jelly_boca_larga)
package wck {
public class jelly_boca_larga extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[-40, -100], [-40, -140], [40, -140], [0, -100]], [[-40, 100], [0, 100], [40, 140], [-40, 140]], [[0, 100], [0, -100], [40, -140], [40, 140]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 102
//jelly_chivato (wck.jelly_chivato)
package wck {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public class jelly_chivato extends MovieClip {
public var nombre_figura:String;// = ""
public var txt_info:TextField;
private var tiempoParaActualizarAnimaciones:Timer;
public function jelly_chivato():void{
nombre_figura = "";
tiempoParaActualizarAnimaciones = new Timer(1000, 0);
super();
this.visible = false;
tiempoParaActualizarAnimaciones.addEventListener(TimerEvent.TIMER, ActualizarAnimaciones);
tiempoParaActualizarAnimaciones.start();
}
private function ActualizarAnimaciones(_arg1:Event):void{
if (nombre_figura == ""){
} else {
this.gotoAndStop(nombre_figura);
this.visible = true;
};
tiempoParaActualizarAnimaciones.stop();
}
}
}//package wck
Section 103
//jelly_circulo (wck.jelly_circulo)
package wck {
import flash.events.*;
import flash.utils.*;
public class jelly_circulo extends Shape {
public var animacion_anterior:String;
public var volando:Boolean;// = false
private var tiempoParaActualizarAnimaciones:Timer;
public var animacion_actual:String;
public function jelly_circulo(){
volando = false;
tiempoParaActualizarAnimaciones = new Timer(100, 0);
super();
}
public function ActualizarAnimaciones(_arg1:Event):void{
if (bodyIsStatic == false){
if (b2body.IsSleeping() == true){
animacion_actual = Demo.QUIETO;
if (animacion_anterior != animacion_actual){
gotoAndStop(Demo.QUIETO);
animacion_anterior = animacion_actual;
};
} else {
if (b2body.isMouseDraging){
animacion_actual = Demo.VOLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.VOLANDO);
animacion_anterior = animacion_actual;
};
} else {
animacion_actual = Demo.TEMBLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.TEMBLANDO);
animacion_anterior = animacion_actual;
};
};
};
};
}
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "jelly_circulo";
_arg1.push(circleDef());
super.addShapes(_arg1);
tiempoParaActualizarAnimaciones.addEventListener(TimerEvent.TIMER, ActualizarAnimaciones);
tiempoParaActualizarAnimaciones.start();
if (bodyIsStatic){
this.gotoAndStop(Demo.ESTATICO);
animacion_anterior = Demo.ESTATICO;
animacion_actual = Demo.ESTATICO;
} else {
this.gotoAndStop(Demo.QUIETO);
animacion_anterior = Demo.QUIETO;
animacion_actual = Demo.QUIETO;
};
}
}
}//package wck
Section 104
//jelly_cuadrado (wck.jelly_cuadrado)
package wck {
import flash.events.*;
import flash.utils.*;
public class jelly_cuadrado extends Shape {
public var animacion_anterior:String;
public var volando:Boolean;// = false
private var tiempoParaActualizarAnimaciones:Timer;
public var animacion_actual:String;
public function jelly_cuadrado(){
volando = false;
tiempoParaActualizarAnimaciones = new Timer(100, 0);
super();
}
public function ActualizarAnimaciones(_arg1:Event):void{
if (bodyIsStatic == false){
if (b2body.IsSleeping() == true){
animacion_actual = Demo.QUIETO;
if (animacion_anterior != animacion_actual){
gotoAndStop(Demo.QUIETO);
animacion_anterior = animacion_actual;
};
} else {
if (b2body.isMouseDraging){
animacion_actual = Demo.VOLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.VOLANDO);
animacion_anterior = animacion_actual;
};
} else {
animacion_actual = Demo.TEMBLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.TEMBLANDO);
animacion_anterior = animacion_actual;
};
};
};
};
}
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "jelly_cuadrado";
_arg1 = _arg1.concat(polygonListDef([[[80.75, 0], [80.75, 80.75], [0, 80.75], [0, 0]]]));
super.addShapes(_arg1);
tiempoParaActualizarAnimaciones.addEventListener(TimerEvent.TIMER, ActualizarAnimaciones);
tiempoParaActualizarAnimaciones.start();
if (bodyIsStatic){
this.gotoAndStop(Demo.ESTATICO);
animacion_anterior = Demo.ESTATICO;
animacion_actual = Demo.ESTATICO;
} else {
this.gotoAndStop(Demo.QUIETO);
animacion_anterior = Demo.QUIETO;
animacion_actual = Demo.QUIETO;
};
}
}
}//package wck
Section 105
//jelly_pentagono (wck.jelly_pentagono)
package wck {
import flash.events.*;
import flash.utils.*;
public class jelly_pentagono extends Shape {
public var animacion_anterior:String;
public var volando:Boolean;// = false
private var tiempoParaActualizarAnimaciones:Timer;
public var animacion_actual:String;
public function jelly_pentagono(){
volando = false;
tiempoParaActualizarAnimaciones = new Timer(100, 0);
super();
}
public function ActualizarAnimaciones(_arg1:Event):void{
if (bodyIsStatic == false){
if (b2body.IsSleeping() == true){
animacion_actual = Demo.QUIETO;
if (animacion_anterior != animacion_actual){
gotoAndStop(Demo.QUIETO);
animacion_anterior = animacion_actual;
};
} else {
if (b2body.isMouseDraging){
animacion_actual = Demo.VOLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.VOLANDO);
animacion_anterior = animacion_actual;
};
} else {
animacion_actual = Demo.TEMBLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.TEMBLANDO);
animacion_anterior = animacion_actual;
};
};
};
};
}
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "jelly_pentagono";
_arg1 = _arg1.concat(polygonListDef([[[0, -38.05], [40, -9], [24.75, 38.05], [-24.75, 38.05], [-40, -9]]]));
super.addShapes(_arg1);
tiempoParaActualizarAnimaciones.addEventListener(TimerEvent.TIMER, ActualizarAnimaciones);
tiempoParaActualizarAnimaciones.start();
if (bodyIsStatic){
this.gotoAndStop(Demo.ESTATICO);
animacion_anterior = Demo.ESTATICO;
animacion_actual = Demo.ESTATICO;
} else {
this.gotoAndStop(Demo.QUIETO);
animacion_anterior = Demo.QUIETO;
animacion_actual = Demo.QUIETO;
};
}
}
}//package wck
Section 106
//jelly_rectangulo (wck.jelly_rectangulo)
package wck {
import flash.events.*;
import flash.utils.*;
public class jelly_rectangulo extends Shape {
public var animacion_anterior:String;
public var volando:Boolean;// = false
private var tiempoParaActualizarAnimaciones:Timer;
public var animacion_actual:String;
public function jelly_rectangulo(){
volando = false;
tiempoParaActualizarAnimaciones = new Timer(100, 0);
super();
}
public function ActualizarAnimaciones(_arg1:Event):void{
if (bodyIsStatic == false){
if (b2body.IsSleeping() == true){
animacion_actual = Demo.QUIETO;
if (animacion_anterior != animacion_actual){
gotoAndStop(Demo.QUIETO);
animacion_anterior = animacion_actual;
};
} else {
if (b2body.isMouseDraging){
animacion_actual = Demo.VOLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.VOLANDO);
animacion_anterior = animacion_actual;
};
} else {
animacion_actual = Demo.TEMBLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.TEMBLANDO);
animacion_anterior = animacion_actual;
};
};
};
};
}
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "jelly_rectangulo";
_arg1 = _arg1.concat(polygonListDef([[[160, 0.25], [160, 79.75], [0.25, 79.75], [0.25, 0.25]]]));
super.addShapes(_arg1);
tiempoParaActualizarAnimaciones.addEventListener(TimerEvent.TIMER, ActualizarAnimaciones);
tiempoParaActualizarAnimaciones.start();
if (bodyIsStatic){
this.gotoAndStop(Demo.ESTATICO);
animacion_anterior = Demo.ESTATICO;
animacion_actual = Demo.ESTATICO;
} else {
this.gotoAndStop(Demo.QUIETO);
animacion_anterior = Demo.QUIETO;
animacion_actual = Demo.QUIETO;
};
}
}
}//package wck
Section 107
//jelly_tanoku (wck.jelly_tanoku)
package wck {
public class jelly_tanoku extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[90.4, 40], [90.4, 80], [29.45, 40]], [[29.45, -80], [29.45, 40], [-10.55, 40], [-10.55, -80]], [[29.45, 40], [90.4, 80], [-10.55, 40]], [[-10.55, 40], [90.4, 80], [-90.55, 80], [-67.05, 40]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 108
//jelly_tetris_cuadrado (wck.jelly_tetris_cuadrado)
package wck {
public class jelly_tetris_cuadrado extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[-40, -40], [40, -40], [40, 40], [-40, 40]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 109
//jelly_tetris_escalera (wck.jelly_tetris_escalera)
package wck {
public class jelly_tetris_escalera extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[0, -60], [40, -60], [0, -20]], [[-40, -20], [0, -20], [-40, 60]], [[0, -20], [40, -60], [0, 20], [-40, 60]], [[0, 60], [-40, 60], [0, 20]], [[40, 20], [0, 20], [40, -60]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 110
//jelly_tetris_forma_l (wck.jelly_tetris_forma_l)
package wck {
public class jelly_tetris_forma_l extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[0, -60], [0, 20], [-40, 60], [-40, -60]], [[0, 20], [40, 20], [40, 60], [-40, 60]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 111
//jelly_tetris_linea (wck.jelly_tetris_linea)
package wck {
public class jelly_tetris_linea extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[-20, 80], [-20, -80], [20, -80], [20, 80]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 112
//jelly_trapecio_isosceles (wck.jelly_trapecio_isosceles)
package wck {
import flash.events.*;
import flash.utils.*;
public class jelly_trapecio_isosceles extends Shape {
public var animacion_anterior:String;
public var volando:Boolean;// = false
private var tiempoParaActualizarAnimaciones:Timer;
public var animacion_actual:String;
public function jelly_trapecio_isosceles(){
volando = false;
tiempoParaActualizarAnimaciones = new Timer(100, 0);
super();
}
public function ActualizarAnimaciones(_arg1:Event):void{
if (bodyIsStatic == false){
if (b2body.IsSleeping() == true){
animacion_actual = Demo.QUIETO;
if (animacion_anterior != animacion_actual){
gotoAndStop(Demo.QUIETO);
animacion_anterior = animacion_actual;
};
} else {
if (b2body.isMouseDraging){
animacion_actual = Demo.VOLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.VOLANDO);
animacion_anterior = animacion_actual;
};
} else {
animacion_actual = Demo.TEMBLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.TEMBLANDO);
animacion_anterior = animacion_actual;
};
};
};
};
}
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "jelly_trapecio_isosceles";
_arg1 = _arg1.concat(polygonListDef([[[0, 80.25], [80, 0.25], [160, 0.25], [240, 80.25]]]));
super.addShapes(_arg1);
tiempoParaActualizarAnimaciones.addEventListener(TimerEvent.TIMER, ActualizarAnimaciones);
tiempoParaActualizarAnimaciones.start();
if (bodyIsStatic){
this.gotoAndStop(Demo.ESTATICO);
animacion_anterior = Demo.ESTATICO;
animacion_actual = Demo.ESTATICO;
} else {
this.gotoAndStop(Demo.QUIETO);
animacion_anterior = Demo.QUIETO;
animacion_actual = Demo.QUIETO;
};
}
}
}//package wck
Section 113
//jelly_trapecio_paralelo (wck.jelly_trapecio_paralelo)
package wck {
public class jelly_trapecio_paralelo extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[60, -20], [20, 20], [-60, 20], [-20, -20]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 114
//jelly_trapecio_rectangulo (wck.jelly_trapecio_rectangulo)
package wck {
public class jelly_trapecio_rectangulo extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[-40, 20], [-40, -20], [0, -20], [40, 20]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 115
//jelly_triangulo_equilatero (wck.jelly_triangulo_equilatero)
package wck {
import flash.events.*;
import flash.utils.*;
public class jelly_triangulo_equilatero extends Shape {
public var animacion_anterior:String;
public var volando:Boolean;// = false
private var tiempoParaActualizarAnimaciones:Timer;
public var animacion_actual:String;
public function jelly_triangulo_equilatero(){
volando = false;
tiempoParaActualizarAnimaciones = new Timer(100, 0);
super();
}
public function ActualizarAnimaciones(_arg1:Event):void{
if (bodyIsStatic == false){
if (b2body.IsSleeping() == true){
animacion_actual = Demo.QUIETO;
if (animacion_anterior != animacion_actual){
gotoAndStop(Demo.QUIETO);
animacion_anterior = animacion_actual;
};
} else {
if (b2body.isMouseDraging){
animacion_actual = Demo.VOLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.VOLANDO);
animacion_anterior = animacion_actual;
};
} else {
animacion_actual = Demo.TEMBLANDO;
if (animacion_anterior != animacion_actual){
gotoAndPlay(Demo.TEMBLANDO);
animacion_anterior = animacion_actual;
};
};
};
};
}
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "jelly_triangulo_equilatero";
_arg1 = _arg1.concat(polygonListDef([[[0, -34.65], [40, 34.65], [-40, 34.65]]]));
super.addShapes(_arg1);
tiempoParaActualizarAnimaciones.addEventListener(TimerEvent.TIMER, ActualizarAnimaciones);
tiempoParaActualizarAnimaciones.start();
if (bodyIsStatic){
this.gotoAndStop(Demo.ESTATICO);
animacion_anterior = Demo.ESTATICO;
animacion_actual = Demo.ESTATICO;
} else {
this.gotoAndStop(Demo.QUIETO);
animacion_anterior = Demo.QUIETO;
animacion_actual = Demo.QUIETO;
};
}
}
}//package wck
Section 116
//jelly_triangulo_isosceles (wck.jelly_triangulo_isosceles)
package wck {
public class jelly_triangulo_isosceles extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[0.15, -40], [20, 40], [-20, 39.65]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 117
//jelly_triangulo_obtuso (wck.jelly_triangulo_obtuso)
package wck {
public class jelly_triangulo_obtuso extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[-39.75, -40], [0.25, -40], [40, 0]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 118
//jelly_triangulo_rectangulo (wck.jelly_triangulo_rectangulo)
package wck {
public class jelly_triangulo_rectangulo extends Shape {
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "jelly_triangulo_rectangulo";
_arg1 = _arg1.concat(polygonListDef([[[-19.95, 19.8], [-20, -20], [20, 20]]]));
super.addShapes(_arg1);
if (bodyIsStatic){
this.gotoAndStop(2);
};
}
}
}//package wck
Section 119
//jelly_vaso (wck.jelly_vaso)
package wck {
public class jelly_vaso extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1 = _arg1.concat(polygonListDef([[[120, -140], [160, -140], [80, 140], [51.5, 100]], [[-120, -140], [-52.45, 100], [-80, 140], [-160, -140]], [[-52.45, 100], [51.5, 100], [80, 140], [-80, 140]]]));
super.addShapes(_arg1);
}
}
}//package wck
Section 120
//Joint (wck.Joint)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.display.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
import flash.utils.*;
import flash.geom.*;
public class Joint extends MovieClip {
public var spring:Boolean;// = false
public var positionInBody:Point;
public var lineParameter:String;// = "0x888888"
public var path:Path;// = null
public var lineStyle:String;// = "Line"
public var springDamping:Number;// = 0
public var upperLimit:Number;// = 0
public var strength:Number;// = 0
public var speed:Number;// = 0
public var collideConnected:Boolean;// = false
public var pathReturns:Boolean;// = true
public var speedFlag;// = ""
public var pathDistance:Number;// = 0
public var target:Joint;
public var world:World;
public var lowerLimit:Number;// = 0
public var bodyName:String;// = ""
public var body2Name:String;// = ""
public var type:String;// = "None"
public var body:Body;
public var joint:b2Joint;
public var enableMotor:Boolean;// = false
public var b2body:b2Body;
public var speed1:Number;// = 0
public var b2body2:b2Body;
public var body2:Body;
public var springConstant:Number;// = 0
public var speed2:Number;// = 0
public var targetName:String;// = ""
public var pathDirection:Number;// = 1
public var length:Number;
public var lineMC:MovieClip;
public var lineColor:Number;
public var enableLimit:Boolean;// = false
public function Joint(){
collideConnected = false;
lowerLimit = 0;
upperLimit = 0;
strength = 0;
speed1 = 0;
speed2 = 0;
enableLimit = false;
enableMotor = false;
targetName = "";
type = "None";
speedFlag = "";
bodyName = "";
body2Name = "";
pathReturns = true;
lineStyle = "Line";
lineParameter = "0x888888";
spring = false;
springConstant = 0;
springDamping = 0;
speed = 0;
path = null;
pathDistance = 0;
pathDirection = 1;
super();
}
public function setSpeed(_arg1:Event):void{
speed = (world.vars[speedFlag]) ? speed2 : speed1;
if (type == "Prismatic"){
(joint as b2PrismaticJoint).SetMotorSpeed(speed);
} else {
if ((((type == "Revolute")) || ((type == "RevolutePin")))){
(joint as b2RevoluteJoint).SetMotorSpeed(speed);
};
};
b2body.WakeUp();
if (b2body2){
b2body2.WakeUp();
};
}
public function create():void{
var _local1:b2DistanceJointDef;
var _local2:b2RevoluteJointDef;
var _local3:b2PrismaticJointDef;
var _local4:b2Vec2;
var _local5:b2RevoluteJointDef;
var _local6:b2MouseJointDef;
var _local7:Class;
this.visible = false;
switch (type){
case "Distance":
_local1 = new b2DistanceJointDef();
_local1.Initialize(b2body, target.b2body, new b2Vec2((x / world.scale), (y / world.scale)), new b2Vec2((target.x / world.scale), (target.y / world.scale)));
joint = world.b2world.CreateJoint(_local1);
break;
case "Revolute":
_local2 = new b2RevoluteJointDef();
_local2.Initialize(b2body, target.b2body, new b2Vec2((x / world.scale), (y / world.scale)));
_local2.lowerAngle = lowerLimit;
_local2.upperAngle = upperLimit;
_local2.maxMotorTorque = strength;
_local2.enableLimit = enableLimit;
_local2.enableMotor = enableMotor;
joint = world.b2world.CreateJoint(_local2);
break;
case "Prismatic":
_local3 = new b2PrismaticJointDef();
_local4 = new b2Vec2(((target.x - x) / world.scale), ((target.y - y) / world.scale));
_local4.Normalize();
_local3.Initialize(b2body, target.b2body, new b2Vec2((x / world.scale), (y / world.scale)), _local4);
_local3.lowerTranslation = (lowerLimit / world.scale);
_local3.upperTranslation = (upperLimit / world.scale);
_local3.maxMotorForce = strength;
_local3.enableLimit = enableLimit;
_local3.enableMotor = enableMotor;
joint = world.b2world.CreateJoint(_local3);
break;
case "RevolutePin":
_local5 = new b2RevoluteJointDef();
_local5.Initialize(b2body, b2body2, new b2Vec2((x / world.scale), (y / world.scale)));
_local5.lowerAngle = lowerLimit;
_local5.upperAngle = upperLimit;
_local5.maxMotorTorque = strength;
_local5.enableLimit = enableLimit;
_local5.enableMotor = enableMotor;
joint = world.b2world.CreateJoint(_local5);
break;
case "Path":
_local6 = new b2MouseJointDef();
_local6.maxForce = strength;
_local6.target.Set((path.x / world.scale), (path.y / world.scale));
_local6.body1 = world.b2world.m_groundBody;
_local6.body2 = b2body;
_local6.timeStep = world.timeStep;
joint = world.b2world.CreateJoint(_local6);
break;
};
if (speedFlag != ""){
world.addEventListener(speedFlag, setSpeed, false, 0, true);
};
setSpeed(null);
if (lineStyle == "Line"){
lineColor = parseInt(lineParameter);
} else {
if (lineStyle == "MovieClip"){
_local7 = (getDefinitionByName(lineParameter) as Class);
lineMC = new (_local7);
addChild(lineMC);
};
};
world.addEventListener(Event.ENTER_FRAME, step, false, 0, true);
world.addEventListener("cleanUp", cleanUp, false, 0, true);
}
public function anchor():void{
var _local1:Point;
var _local2:Array;
var _local3:Shape;
var _local4:DisplayObject;
rotation = 0;
world = (parent as World);
_local1 = localToGlobal(new Point(0, 0));
if (bodyName){
body = (world.getChildByName(bodyName) as Body);
};
if (body2Name){
body2 = (world.getChildByName(body2Name) as Body);
};
if (((!(body)) || ((((type == "RevolutePin")) && (!(body2)))))){
_local2 = world.getObjectsUnderPoint(world.globalToLocal(_local1));
_local3 = null;
for each (_local4 in _local2) {
_local3 = null;
while (((_local4) && (!(_local3)))) {
_local3 = (_local4 as Shape);
_local4 = _local4.parent;
};
if (_local3){
if (!body){
body = _local3.body;
if (((!((type == "RevolutePin"))) || (body2))){
break;
};
} else {
if (_local3.body != body){
body2 = _local3.body;
break;
};
};
};
};
};
b2body = (body) ? body.b2body : world.b2world.m_groundBody;
if (type == "RevolutePin"){
b2body2 = (body2) ? body2.b2body : world.b2world.m_groundBody;
} else {
if (type == "Path"){
path = (parent.getChildByName(targetName) as Path);
} else {
target = (parent.getChildByName(targetName) as Joint);
};
};
if (body){
positionInBody = body.globalToLocal(_local1);
};
}
public function cleanUp(_arg1:Event){
world.removeEventListener(Event.ENTER_FRAME, step);
}
public function step(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:b2RevoluteJoint;
var _local5:Point;
var _local6:b2Vec2;
var _local7:b2Vec2;
var _local8:b2Vec2;
if (world.paused){
return;
};
if (spring){
if (type == "Prismatic"){
_local3 = (joint as b2PrismaticJoint);
_local2 = _local3.GetJointTranslation();
_local3.SetMaxMotorForce(Math.abs(((_local2 * springConstant) + (_local3.GetJointSpeed() * springDamping))));
_local3.SetMotorSpeed(((_local2 > 0)) ? -1000000 : 1000000);
} else {
if ((((type == "Revolute")) || ((type == "RevolutePin")))){
_local4 = (joint as b2RevoluteJoint);
_local2 = _local4.GetJointAngle();
_local4.SetMaxMotorTorque(Math.abs(((_local2 * springConstant) + (_local4.GetJointSpeed() * springDamping))));
_local4.SetMotorSpeed(((_local2 > 0)) ? -1000000 : 1000000);
};
};
};
if (body){
_local5 = world.globalToLocal(body.localToGlobal(positionInBody));
x = _local5.x;
y = _local5.y;
};
if (((target) || (path))){
if (target){
_local6 = new b2Vec2(target.x, target.y);
} else {
if (path){
pathDistance = (pathDistance + (speed * pathDirection));
if ((((pathDistance < 0)) || ((path.length == 0)))){
if (path.prev){
pathDistance = (path.prev.length - (pathDistance - path.length));
path = path.prev;
} else {
if (pathReturns){
pathDistance = (pathDistance * -1);
pathDirection = (pathDirection * -1);
} else {
pathDistance = 0;
};
};
} else {
if (pathDistance >= path.length){
if (((path.next) && (path.next.next))){
pathDistance = (pathDistance - path.length);
path = path.next;
} else {
if (pathReturns){
pathDistance = (path.length - (pathDistance - path.length));
pathDirection = (pathDirection * -1);
} else {
pathDistance = path.length;
};
};
};
};
_local6 = new b2Vec2((path.x + (path.normal.x * pathDistance)), (path.y + (path.normal.y * pathDistance)));
_local7 = _local6.Copy();
_local6.Copy().x = (_local7.x / world.scale);
_local7.y = (_local7.y / world.scale);
(joint as b2MouseJoint).SetTarget(_local7);
};
};
if (lineStyle == "Line"){
graphics.clear();
graphics.lineStyle(2, lineColor);
graphics.moveTo(0, 0);
graphics.lineTo(((_local6.x - x) / scaleX), ((_local6.y - y) / scaleY));
} else {
if (lineStyle == "MovieClip"){
_local8 = new b2Vec2(((x - _local6.x) / scaleX), ((y - _local6.y) / scaleY));
lineMC.rotation = 0;
lineMC.height = _local8.Length();
lineMC.rotation = (((Math.atan2(_local8.y, _local8.x) * 180) / Math.PI) + 90);
};
};
};
}
}
}//package wck
Section 121
//Key (wck.Key)
package wck {
import flash.display.*;
import flash.events.*;
public class Key {
private static var initialized:Boolean = false;
private static var keysDown:Object = new Object();
public static function initialize(_arg1:Stage){
if (!initialized){
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
_arg1.addEventListener(Event.DEACTIVATE, clearKeys);
initialized = true;
};
}
private static function clearKeys(_arg1:Event):void{
keysDown = new Object();
}
public static function isDown(_arg1:uint):Boolean{
if (!initialized){
throw (new Error("Key class has yet been initialized."));
};
return (Boolean((_arg1 in keysDown)));
}
private static function keyPressed(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
private static function keyReleased(_arg1:KeyboardEvent):void{
if ((_arg1.keyCode in keysDown)){
delete keysDown[_arg1.keyCode];
};
}
}
}//package wck
Section 122
//MochiBot (wck.MochiBot)
package wck {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package wck
Section 123
//MusicManager (wck.MusicManager)
package wck {
import flash.media.*;
import flash.utils.*;
import flash.net.*;
public class MusicManager {
private var _soundsDict:Dictionary;
private var _sounds:Array;
public var Activo:Boolean;// = true
private static var _instance:MusicManager;
private static var _allowInstance:Boolean;
public function MusicManager(){
Activo = true;
super();
this._soundsDict = new Dictionary(true);
this._sounds = new Array();
if (!MusicManager._allowInstance){
throw (new Error("Error: Use MusicManager.getInstance() instead of the new keyword."));
};
}
public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:Number=1):void{
var _local4:SoundChannel;
_local4 = this._soundsDict[_arg1].channel;
TweenLite.to(_local4, _arg3, {volume:_arg2});
}
public function get sounds():Array{
return (this._sounds);
}
public function Mute():void{
Activo = !(Activo);
if (Activo){
unmuteAllSounds();
} else {
muteAllSounds();
};
}
public function getSoundDuration(_arg1:String):Number{
return (this._soundsDict[_arg1].sound.length);
}
public function setSoundVolume(_arg1:String, _arg2:Number):void{
var _local3:Object;
var _local4:SoundTransform;
_local3 = this._soundsDict[_arg1];
_local4 = _local3.channel.soundTransform;
_local4.volume = _arg2;
_local3.channel.soundTransform = _local4;
}
public function getSoundVolume(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.soundTransform.volume);
}
public function addLibrarySound(_arg1, _arg2:String):Boolean{
var _local3:int;
var _local4:Object;
var _local5:Sound;
_local3 = 0;
while (_local3 < this._sounds.length) {
if (this._sounds[_local3].name == _arg2){
return (false);
};
_local3++;
};
_local4 = new Object();
_local5 = new (_arg1);
_local4.name = _arg2;
_local4.sound = _local5;
_local4.channel = new SoundChannel();
_local4.position = 0;
_local4.paused = true;
_local4.volume = 1;
_local4.startTime = 0;
_local4.loops = 0;
_local4.pausedByAll = false;
this._soundsDict[_arg2] = _local4;
this._sounds.push(_local4);
return (true);
}
public function toString():String{
return (getQualifiedClassName(this));
}
public function isSoundPaused(_arg1:String):Boolean{
return (this._soundsDict[_arg1].paused);
}
public function removeAllSounds():void{
var _local1:int;
_local1 = 0;
while (_local1 < this._sounds.length) {
this._sounds[_local1] = null;
_local1++;
};
this._sounds = new Array();
this._soundsDict = new Dictionary(true);
}
public function getSoundPosition(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.position);
}
public function stopAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.stopSound(_local3);
};
} else {
this.stopSound(_local3);
};
_local2++;
};
}
public function removeSound(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < this._sounds.length) {
if (this._sounds[_local2].name == _arg1){
this._sounds[_local2] = null;
this._sounds.splice(_local2, 1);
};
_local2++;
};
delete this._soundsDict[_arg1];
}
public function muteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 0);
_local1++;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.channel.stop();
_local2.position = _local2.channel.position;
}
public function pauseAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.pauseSound(_local3);
};
} else {
this.pauseSound(_local3);
};
_local2++;
};
}
public function playAllSounds(_arg1:Boolean=false):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (this._soundsDict[_local3].pausedByAll){
this._soundsDict[_local3].pausedByAll = false;
this.playSound(_local3);
};
} else {
this.playSound(_local3);
};
_local2++;
};
}
public function addExternalSound(_arg1:String, _arg2:String, _arg3:Number=1000, _arg4:Boolean=false):Boolean{
var _local5:int;
var _local6:Object;
var _local7:Sound;
_local5 = 0;
while (_local5 < this._sounds.length) {
if (this._sounds[_local5].name == _arg2){
return (false);
};
_local5++;
};
_local6 = new Object();
_local7 = new Sound(new URLRequest(_arg1), new SoundLoaderContext(_arg3, _arg4));
_local6.name = _arg2;
_local6.sound = _local7;
_local6.channel = new SoundChannel();
_local6.position = 0;
_local6.paused = true;
_local6.volume = 1;
_local6.startTime = 0;
_local6.loops = 0;
_local6.pausedByAll = false;
this._soundsDict[_arg2] = _local6;
this._sounds.push(_local6);
return (true);
}
public function unmuteAllSounds():void{
var _local1:int;
var _local2:String;
var _local3:Object;
var _local4:SoundTransform;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
_local3 = this._soundsDict[_local2];
_local4 = _local3.channel.soundTransform;
_local4.volume = 0.1;
_local3.channel.soundTransform = _local4;
_local1++;
};
}
public function isSoundPausedByAll(_arg1:String):Boolean{
return (this._soundsDict[_arg1].pausedByAll);
}
public function getSoundObject(_arg1:String):Sound{
return (this._soundsDict[_arg1].sound);
}
public function pauseSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.position = _local2.channel.position;
_local2.channel.stop();
}
public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):void{
var _local5:Object;
_local5 = this._soundsDict[_arg1];
_local5.volume = _arg2;
if (Activo){
_local5.volume = _arg2;
} else {
_local5.volume = 0;
};
_local5.startTime = _arg3;
_local5.loops = _arg4;
if (_local5.paused){
_local5.channel = _local5.sound.play(_local5.position, _local5.loops, new SoundTransform(_local5.volume));
} else {
_local5.channel = _local5.sound.play(_arg3, _local5.loops, new SoundTransform(_local5.volume));
};
_local5.paused = false;
}
public static function getInstance():MusicManager{
if (MusicManager._instance == null){
MusicManager._allowInstance = true;
MusicManager._instance = new (MusicManager);
MusicManager._allowInstance = false;
};
return (MusicManager._instance);
}
}
}//package wck
Section 124
//NoMouse (wck.NoMouse)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
public class NoMouse extends Shape {
public var Trigered:Boolean;
public var mouseDentro:Boolean;// = false
public function NoMouse(){
mouseDentro = false;
super();
}
public function mouse_fuera(_arg1:MouseEvent):void{
mouseDentro = false;
}
public function removePersist(_arg1:Contact):void{
if (_arg1.cp.shape1.IsSensor() == false){
_arg1.cp.shape1.m_body.isBodyDrageable = true;
};
if (_arg1.cp.shape2.IsSensor() == false){
_arg1.cp.shape2.m_body.isBodyDrageable = true;
};
}
public function contactAdded(_arg1:Contact):void{
if (mouseDentro == true){
if (_arg1.cp.shape1.IsSensor() == false){
_arg1.cp.shape1.m_body.isBodyDrageable = false;
};
if (_arg1.cp.shape2.IsSensor() == false){
_arg1.cp.shape2.m_body.isBodyDrageable = false;
};
};
}
override public function addShapes(_arg1:Array):void{
body.b2body.m_type_cad = "NoMouse";
_arg1.push(boxDef());
super.addShapes(_arg1);
addEventListener("addContact", contactAdded, false, 0, true);
addEventListener("persistContact", contactPersist, false, 0, true);
addEventListener("removeContact", removePersist, false, 0, true);
this.addEventListener(MouseEvent.MOUSE_MOVE, mouse_dentro, false, 0, true);
this.addEventListener(MouseEvent.MOUSE_OUT, mouse_fuera, false, 0, true);
}
public function mouse_dentro(_arg1:MouseEvent):void{
mouseDentro = true;
}
public function contactPersist(_arg1:Contact):void{
if (mouseDentro == true){
if (_arg1.cp.shape1.IsSensor() == false){
_arg1.cp.shape1.m_body.isBodyDrageable = false;
};
if (_arg1.cp.shape2.IsSensor() == false){
_arg1.cp.shape2.m_body.isBodyDrageable = false;
};
} else {
if (_arg1.cp.shape1.IsSensor() == false){
_arg1.cp.shape1.m_body.isBodyDrageable = true;
};
if (_arg1.cp.shape2.IsSensor() == false){
_arg1.cp.shape2.m_body.isBodyDrageable = true;
};
};
}
}
}//package wck
Section 125
//Pared (wck.Pared)
package wck {
public class Pared extends Shape {
override public function addShapes(_arg1:Array):void{
_arg1.push(boxDef());
super.addShapes(_arg1);
}
}
}//package wck
Section 126
//Path (wck.Path)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.display.*;
import Box2D.Dynamics.Contacts.*;
public class Path extends MovieClip {
public var next:Path;// = null
public var nextName:String;// = ""
public var prev:Path;// = null
public var drawLine:Boolean;// = true
public var world:World;// = null
public var lineColor:String;// = "0x888888"
public var realLineColor:int;
public var length:Number;// = 0
public var normal:b2Vec2;// = null
public function Path(){
nextName = "";
drawLine = true;
lineColor = "0x888888";
world = null;
next = null;
prev = null;
normal = null;
length = 0;
super();
}
public function create():void{
world = (parent as World);
next = (world.getChildByName(nextName) as Path);
if (next){
next.prev = this;
normal = new b2Vec2((next.x - x), (next.y - y));
length = Math.sqrt((Math.pow(normal.x, 2) + Math.pow(normal.y, 2)));
if (drawLine){
realLineColor = parseInt(lineColor);
graphics.lineStyle(2, realLineColor);
graphics.moveTo(0, 0);
graphics.lineTo(normal.x, normal.y);
};
normal.Normalize();
};
}
}
}//package wck
Section 127
//Shape (wck.Shape)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import Box2D.Dynamics.Contacts.*;
import flash.geom.*;
public class Shape extends Body {
public var shapeDensity:Number;// = 1
public var shapeRestitution:Number;// = 0
public var shapeGroupIndex:int;// = 0
public var shapeIsSensor:Boolean;// = false
public var shapeMaskBits:String;// = "0xFFFF"
public var b2shapes:Array;
public var selfBody:Boolean;
public var shapeCategoryBits:String;// = "0x0001"
public var body:Body;
public var shapeFriction:Number;// = 0.2
public function Shape(){
shapeFriction = 0.2;
shapeRestitution = 0;
shapeDensity = 1;
shapeIsSensor = false;
shapeCategoryBits = "0x0001";
shapeMaskBits = "0xFFFF";
shapeGroupIndex = 0;
b2shapes = [];
super();
}
public function createShape():void{
body = (parent as Body);
if (!body){
body = this;
selfBody = true;
} else {
world = body.world;
};
addShapes([]);
}
public function boxDef(_arg1:Number=-1, _arg2:Number=-1, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):b2PolygonDef{
var _local6:b2PolygonDef;
var _local7:Number;
_local6 = new b2PolygonDef();
initializeDef(_local6);
_local7 = rotation;
rotation = 0;
_local6.SetAsOrientedBox(((((_arg1)==-1) ? (width / 2) : (_arg1 * scaleX) * (selfBody) ? 1 : body.scaleX) / world.scale), ((((_arg2)==-1) ? (height / 2) : (_arg2 * scaleY) * (selfBody) ? 1 : body.scaleY) / world.scale), b2Position(_arg3, _arg4), ((((selfBody) ? 0 : _local7 + _arg5) * Math.PI) / 180));
rotation = _local7;
return (_local6);
}
public function polygonDef(_arg1:Array):b2PolygonDef{
var _local2:b2PolygonDef;
var _local3:Array;
_local2 = new b2PolygonDef();
initializeDef(_local2);
_local2.vertices = [];
for each (_local3 in _arg1) {
_local2.vertices.push(b2Position(_local3[0], _local3[1]));
};
_local2.vertexCount = _local2.vertices.length;
return (_local2);
}
public function initializeDef(_arg1:b2ShapeDef):void{
_arg1.userData = this;
_arg1.friction = shapeFriction;
_arg1.restitution = shapeRestitution;
_arg1.density = shapeDensity;
_arg1.filter.categoryBits = parseInt(shapeCategoryBits);
_arg1.filter.maskBits = parseInt(shapeMaskBits);
_arg1.filter.groupIndex = shapeGroupIndex;
if (body.compound){
_arg1.filter.groupIndex = (_arg1.filter.groupIndex + ((_arg1.filter.groupIndex / Math.abs(_arg1.filter.groupIndex)) * body.compound.groupIndexOffset));
};
_arg1.isSensor = shapeIsSensor;
}
public function addShapes(_arg1:Array):void{
var _local2:b2ShapeDef;
for each (_local2 in _arg1) {
b2shapes.push(body.b2body.CreateShape(_local2));
};
}
public function circleDef(_arg1:Number=-1, _arg2:Number=0, _arg3:Number=0):b2CircleDef{
var _local4:b2CircleDef;
_local4 = new b2CircleDef();
initializeDef(_local4);
_local4.localPosition = b2Position(_arg2, _arg3);
_local4.radius = ((((_arg1)==-1) ? (width / 2) : (_arg1 * scaleX) * (selfBody) ? 1 : body.scaleX) / world.scale);
return (_local4);
}
public function b2Position(_arg1=0, _arg2=0):b2Vec2{
var _local3:Point;
if (selfBody){
return (new b2Vec2(((_arg1 * scaleX) / world.scale), ((_arg2 * scaleY) / world.scale)));
};
_local3 = body.globalToLocal(localToGlobal(new Point(_arg1, _arg2)));
return (new b2Vec2(((_local3.x * body.scaleX) / world.scale), ((_local3.y * body.scaleY) / world.scale)));
}
public function polygonListDef(_arg1:Array):Array{
var _local2:Array;
var _local3:Array;
_local2 = [];
for each (_local3 in _arg1) {
_local2.push(polygonDef(_local3));
};
return (_local2);
}
}
}//package wck
Section 128
//SoundManager (wck.SoundManager)
package wck {
import flash.media.*;
import flash.utils.*;
import flash.net.*;
public class SoundManager {
private var _soundsDict:Dictionary;
private var _sounds:Array;
public var Activo:Boolean;// = true
private static var _instance:SoundManager;
private static var _allowInstance:Boolean;
public function SoundManager(){
Activo = true;
super();
this._soundsDict = new Dictionary(true);
this._sounds = new Array();
if (!SoundManager._allowInstance){
throw (new Error("Error: Use SoundManager.getInstance() instead of the new keyword."));
};
}
public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:Number=1):void{
var _local4:SoundChannel;
_local4 = this._soundsDict[_arg1].channel;
TweenLite.to(_local4, _arg3, {volume:_arg2});
}
public function get sounds():Array{
return (this._sounds);
}
public function Mute():void{
Activo = !(Activo);
if (Activo){
unmuteAllSounds();
} else {
muteAllSounds();
};
}
public function getSoundDuration(_arg1:String):Number{
return (this._soundsDict[_arg1].sound.length);
}
public function setSoundVolume(_arg1:String, _arg2:Number):void{
var _local3:Object;
var _local4:SoundTransform;
_local3 = this._soundsDict[_arg1];
_local4 = _local3.channel.soundTransform;
_local4.volume = _arg2;
_local3.channel.soundTransform = _local4;
}
public function getSoundVolume(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.soundTransform.volume);
}
public function addLibrarySound(_arg1, _arg2:String):Boolean{
var _local3:int;
var _local4:Object;
var _local5:Sound;
_local3 = 0;
while (_local3 < this._sounds.length) {
if (this._sounds[_local3].name == _arg2){
return (false);
};
_local3++;
};
_local4 = new Object();
_local5 = new (_arg1);
_local4.name = _arg2;
_local4.sound = _local5;
_local4.channel = new SoundChannel();
_local4.position = 0;
_local4.paused = true;
_local4.volume = 1;
_local4.startTime = 0;
_local4.loops = 0;
_local4.pausedByAll = false;
this._soundsDict[_arg2] = _local4;
this._sounds.push(_local4);
return (true);
}
public function toString():String{
return (getQualifiedClassName(this));
}
public function isSoundPaused(_arg1:String):Boolean{
return (this._soundsDict[_arg1].paused);
}
public function removeAllSounds():void{
var _local1:int;
_local1 = 0;
while (_local1 < this._sounds.length) {
this._sounds[_local1] = null;
_local1++;
};
this._sounds = new Array();
this._soundsDict = new Dictionary(true);
}
public function getSoundPosition(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.position);
}
public function stopAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.stopSound(_local3);
};
} else {
this.stopSound(_local3);
};
_local2++;
};
}
public function removeSound(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < this._sounds.length) {
if (this._sounds[_local2].name == _arg1){
this._sounds[_local2] = null;
this._sounds.splice(_local2, 1);
};
_local2++;
};
delete this._soundsDict[_arg1];
}
public function muteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 0);
_local1++;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.channel.stop();
_local2.position = _local2.channel.position;
}
public function pauseAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.pauseSound(_local3);
};
} else {
this.pauseSound(_local3);
};
_local2++;
};
}
public function playAllSounds(_arg1:Boolean=false):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (this._soundsDict[_local3].pausedByAll){
this._soundsDict[_local3].pausedByAll = false;
this.playSound(_local3);
};
} else {
this.playSound(_local3);
};
_local2++;
};
}
public function addExternalSound(_arg1:String, _arg2:String, _arg3:Number=1000, _arg4:Boolean=false):Boolean{
var _local5:int;
var _local6:Object;
var _local7:Sound;
_local5 = 0;
while (_local5 < this._sounds.length) {
if (this._sounds[_local5].name == _arg2){
return (false);
};
_local5++;
};
_local6 = new Object();
_local7 = new Sound(new URLRequest(_arg1), new SoundLoaderContext(_arg3, _arg4));
_local6.name = _arg2;
_local6.sound = _local7;
_local6.channel = new SoundChannel();
_local6.position = 0;
_local6.paused = true;
_local6.volume = 1;
_local6.startTime = 0;
_local6.loops = 0;
_local6.pausedByAll = false;
this._soundsDict[_arg2] = _local6;
this._sounds.push(_local6);
return (true);
}
public function unmuteAllSounds():void{
var _local1:int;
var _local2:String;
var _local3:Object;
var _local4:SoundTransform;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
_local3 = this._soundsDict[_local2];
_local4 = _local3.channel.soundTransform;
_local4.volume = 1;
_local3.channel.soundTransform = _local4;
_local1++;
};
}
public function isSoundPausedByAll(_arg1:String):Boolean{
return (this._soundsDict[_arg1].pausedByAll);
}
public function getSoundObject(_arg1:String):Sound{
return (this._soundsDict[_arg1].sound);
}
public function pauseSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.position = _local2.channel.position;
_local2.channel.stop();
}
public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):void{
var _local5:Object;
_local5 = this._soundsDict[_arg1];
if (Activo){
_local5.volume = _arg2;
} else {
_local5.volume = 0;
};
_local5.startTime = _arg3;
_local5.loops = _arg4;
if (_local5.paused){
_local5.channel = _local5.sound.play(_local5.position, _local5.loops, new SoundTransform(_local5.volume));
} else {
_local5.channel = _local5.sound.play(_arg3, _local5.loops, new SoundTransform(_local5.volume));
};
_local5.paused = false;
}
public static function getInstance():SoundManager{
if (SoundManager._instance == null){
SoundManager._allowInstance = true;
SoundManager._instance = new (SoundManager);
SoundManager._allowInstance = false;
};
return (SoundManager._instance);
}
}
}//package wck
Section 129
//TweenLite (wck.TweenLite)
package wck {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
public var started:Boolean;
protected var _subTweens:Array;
public var initted:Boolean;
public var startTime:Number;
public var forceActive:Boolean;
public var duration:Number;
protected var _specialVars:Object;
public var target:Object;
protected var _hst:Boolean;
public var gc:Boolean;
protected var _isDisplayObject:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var combinedTimeScale:Number;
public var initTime:Number;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 9.24;
public static var masterList:Dictionary = new Dictionary(false);
private static var _sprite:Sprite = new Sprite();
public static var currentTime:uint;
public static var overwriteManager:Object;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_classInitted){
currentTime = getTimer();
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage);
_timer.start();
_classInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.forceActive = (((_arg2 == 0)) && ((this.delay == 0)));
this.target = _arg1;
_isDisplayObject = (_arg1 is DisplayObject);
if (!(this.vars.ease is Function)){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
this.vars.visible = (this.vars.alpha > 0);
};
_specialVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars;
this.tweens = [];
_subTweens = [];
_hst = (this.initted = false);
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if ((((masterList[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){
masterList[_arg1] = [];
};
masterList[_arg1].push(this);
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.forceActive))){
initTweenVals();
if (this.forceActive){
render((this.startTime + 1));
} else {
render(this.startTime);
};
};
}
protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{
var _local6:String;
_subTweens[_subTweens.length] = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5};
for (_local6 in _arg4) {
if (typeof(_arg4[_local6]) == "number"){
this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], (_arg4[_local6] - _arg3[_local6]), _arg1];
} else {
this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], Number(_arg4[_local6]), _arg1];
};
};
_hst = true;
}
public function get active():Boolean{
if (this.forceActive){
return (true);
};
if (this.gc){
return (false);
};
if (currentTime >= this.startTime){
this.started = (this.forceActive = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:int;
_local2 = ((_arg1 - this.startTime) / 1000);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3]));
_local5--;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5], _local2);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function clear():void{
this.tweens = [];
_subTweens = [];
this.vars = {};
_hst = (_hasUpdate = false);
}
public function get enabled():Boolean{
return (!(this.gc));
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local5:Array;
var _local6:ColorTransform;
var _local7:ColorTransform;
var _local8:Object;
if (((!(_arg1)) && (overwriteManager.enabled))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
if ((this.target is Array)){
_local5 = ((this.vars.endArray) || ([]));
_local4 = 0;
while (_local4 < _local5.length) {
if (((!((this.target[_local4] == _local5[_local4]))) && (!((this.target[_local4] == undefined))))){
this.tweens[this.tweens.length] = [this.target, _local4.toString(), this.target[_local4], (_local5[_local4] - this.target[_local4]), _local4.toString()];
};
_local4++;
};
} else {
if (((((!((typeof(_specialVars.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){
_local6 = this.target.transform.colorTransform;
_local7 = new ColorTransform();
if (_specialVars.alpha != undefined){
_local7.alphaMultiplier = _specialVars.alpha;
delete _specialVars.alpha;
} else {
_local7.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars.removeTint == true))) && (((((!((_specialVars.tint == null))) && (!((_specialVars.tint == ""))))) || ((_specialVars.tint == 0)))))){
_local7.color = _specialVars.tint;
};
addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local6, endColor:_local7});
};
if (((!((_specialVars.frame == null))) && (_isDisplayObject))){
addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_specialVars.frame}, {target:this.target});
};
if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){
addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
};
if (((!((_specialVars.visible == null))) && (_isDisplayObject))){
addSubTween("visible", visibleProxy, {}, {}, {tween:this});
};
for (_local3 in _specialVars) {
if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((((_local3 == "timeScale")) && (!((this.target is TweenLite))))))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){
} else {
if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){
if (typeof(_specialVars[_local3]) == "number"){
this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], (_specialVars[_local3] - this.target[_local3]), _local3];
} else {
this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], Number(_specialVars[_local3]), _local3];
};
};
};
};
};
if (this.vars.runBackwards == true){
_local4 = (this.tweens.length - 1);
while (_local4 > -1) {
_local8 = this.tweens[_local4];
_local8[2] = (_local8[2] + _local8[3]);
_local8[3] = (_local8[3] * -1);
_local4--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
this.initted = true;
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []);
};
}
public function complete(_arg1:Boolean=false):void{
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (masterList[this.target] == undefined){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
masterList[this.target].push(this);
};
};
} else {
if ((this.target is DisplayObject)){
};
};
this.gc = !(_arg1);
if (this.gc){
this.forceActive = false;
} else {
this.forceActive = this.started;
};
}
public static function frameProxy(_arg1:Object, _arg2:Number):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function visibleProxy(_arg1:Object, _arg2:Number):void{
var _local3:TweenLite;
_local3 = _arg1.info.tween;
if (_local3.duration == _arg2){
if (((!((_local3.vars.runBackwards == true))) && ((_local3.ease == _local3.vars.ease)))){
_local3.target.visible = _local3.vars.visible;
};
} else {
if ((((_arg2 == 0)) && ((_local3.vars.runBackwards == true)))){
_local3.target.visible = _local3.vars.visible;
} else {
if (_local3.target.visible != true){
_local3.target.visible = true;
};
};
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && (!((masterList[_arg1] == undefined))))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function executeAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
if (((!((_local4[_local5] == null))) && (_local4[_local5].active))){
_local4[_local5].render(_local2);
};
_local5--;
};
};
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function volumeProxy(_arg1:Object, _arg2:Number):void{
_arg1.info.target.soundTransform = _arg1.target;
}
public static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = (_local4.length - 1);
while (_local5 > -1) {
if (_local4[_local5].gc){
_local4.splice(_local5, 1);
};
_local5--;
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
}
public static function tintProxy(_arg1:Object, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
_local3 = _arg1.target.progress;
_local4 = (1 - _local3);
_local5 = _arg1.info.color;
_local6 = _arg1.info.endColor;
_arg1.info.target.transform.colorTransform = new ColorTransform(((_local5.redMultiplier * _local4) + (_local6.redMultiplier * _local3)), ((_local5.greenMultiplier * _local4) + (_local6.greenMultiplier * _local3)), ((_local5.blueMultiplier * _local4) + (_local6.blueMultiplier * _local3)), ((_local5.alphaMultiplier * _local4) + (_local6.alphaMultiplier * _local3)), ((_local5.redOffset * _local4) + (_local6.redOffset * _local3)), ((_local5.greenOffset * _local4) + (_local6.greenOffset * _local3)), ((_local5.blueOffset * _local4) + (_local6.blueOffset * _local3)), ((_local5.alphaOffset * _local4) + (_local6.alphaOffset * _local3)));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package wck
Section 130
//View (wck.View)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.display.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
public class View extends MovieClip {
public var orientToGravity:Boolean;// = true
public var world;
public function View(){
orientToGravity = true;
super();
}
public function initialize():void{
var _local1:int;
_local1 = 0;
while (_local1 < numChildren) {
world = (getChildAt(_local1) as World);
if (world){
break;
};
_local1++;
};
world.create();
addEventListener(Event.ENTER_FRAME, step, false, 0, true);
}
public function step(_arg1:Event):void{
if (((orientToGravity) && (world.gravityRadial))){
rotation = ((-90 * (world.gravityRadial / Math.abs(world.gravityRadial))) - ((Math.atan2(world.y, world.x) * 180) / Math.PI));
};
}
public function cleanUp():void{
removeEventListener(Event.ENTER_FRAME, step);
world.cleanUp();
}
}
}//package wck
Section 131
//World (wck.World)
package wck {
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;
import Box2D.Dynamics.Joints.*;
import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Common.*;
import flash.display.*;
import flash.events.*;
import Box2D.Dynamics.Contacts.*;
public class World extends MovieClip {
public var cabeza:jelly_circulo_;
public var gravityRadial:Number;// = 0
public var keepCenteredOn:String;// = ""
public var vars:Object;
public var brazo_superior_derecho:jelly_rectangulo_;
public var marco:jelly_marco_colision800x600;
public var boundsLeft:Number;// = -10000000000
public var boundsTop:Number;// = 10000000000
public var boundsRight:Number;// = 10000000000
public var pierna_inferior_derecha:jelly_rectangulo_;
public var pecho:DemoJoint;
public var estomago:DemoJoint;
public var pelvis_izquierda:DemoJoint;
public var pierna_superior_derecha:jelly_rectangulo_;
public var pelvis_derecha:DemoJoint;
public var doSleep:Boolean;// = true
public var centerOn:DisplayObject;
public var torso_central:jelly_rectangulo_;
public var paused:Boolean;
public var pierna_superior_izquierda:jelly_rectangulo_;
public var timeStep:Number;// = 0.025
public var iterations:int;// = 10
public var pierna_inferior_izquierda:jelly_rectangulo_;
public var intro3:MovieClip;
public var hombro_izquierdo:DemoJoint;
public var boundsBottom:Number;// = -10000000000
public var codo_derecho:DemoJoint;
public var scale:Number;// = 40
public var torso_superior:jelly_rectangulo_;
public var b2world:b2World;
public var brazo_inferior_derecho:jelly_rectangulo_;
public var hombro_derecho:DemoJoint;
public var rodilla_derecha:DemoJoint;
public var codo_izquierdo:DemoJoint;
public var pelvis:DemoJoint;
public var brazo_superior_izquierdo:jelly_rectangulo_;
public var rodilla_izquierda:DemoJoint;
public var torso_inferior:jelly_rectangulo_;
public var gravityX:Number;// = 0
public var gravityY:Number;// = 10
public var brazo_inferior_izquierdo:jelly_rectangulo_;
public var cuello:DemoJoint;
public function World(){
timeStep = 0.025;
iterations = 10;
boundsTop = 10000000000;
boundsLeft = -10000000000;
boundsBottom = -10000000000;
boundsRight = 10000000000;
gravityX = 0;
gravityY = 10;
gravityRadial = 0;
doSleep = true;
scale = 40;
keepCenteredOn = "";
vars = {};
super();
}
public function cleanUp():void{
dispatchEvent(new Event("cleanUp"));
removeEventListener(Event.ENTER_FRAME, step);
}
public function step(_arg1:Event):void{
var _local2:b2Vec2;
var _local3:b2Vec2;
var _local4:b2Body;
if (!paused){
b2world.Step(timeStep, iterations);
if (gravityRadial){
_local4 = b2world.GetBodyList();
while (_local4) {
if (((!(_local4.IsStatic())) && (!(_local4.IsSleeping())))){
_local2 = _local4.GetWorldCenter().Copy();
_local2.Normalize();
_local2.Multiply(gravityRadial);
_local3 = _local4.GetLinearVelocity();
_local3.x = (_local3.x + (timeStep * _local2.x));
_local3.y = (_local3.y + (timeStep * _local2.y));
};
_local4 = _local4.GetNext();
};
};
};
if (centerOn){
x = -(centerOn.x);
y = -(centerOn.y);
};
}
public function create():void{
var _local1:b2AABB;
var _local2:Body;
var _local3:Path;
var _local4:Joint;
var _local5:Array;
var _local6:Compound;
var _local7:Array;
var _local8:int;
_local1 = new b2AABB();
_local1.lowerBound.Set(boundsLeft, boundsBottom);
_local1.upperBound.Set(boundsRight, boundsTop);
b2world = new b2World(_local1, new b2Vec2(gravityX, gravityY), doSleep);
b2world.SetContactListener(new ContactListener());
_local5 = [];
_local7 = [];
_local8 = 0;
while (_local8 < numChildren) {
_local2 = (getChildAt(_local8) as Body);
if (_local2){
_local2.create();
} else {
_local3 = (getChildAt(_local8) as Path);
if (_local3){
_local3.create();
} else {
_local4 = (getChildAt(_local8) as Joint);
if (_local4){
_local4.anchor();
_local5.push(_local4);
} else {
_local6 = (getChildAt(_local8) as Compound);
if (_local6){
_local7.push(_local6);
};
};
};
};
_local8++;
};
for each (_local4 in _local5) {
_local4.create();
};
for each (_local6 in _local7) {
_local6.create();
};
if (keepCenteredOn){
centerOn = getChildByName(keepCenteredOn);
};
addEventListener(Event.ENTER_FRAME, step, false, 0, true);
}
public function setVar(_arg1:String, _arg2){
vars[_arg1] = _arg2;
dispatchEvent(new Event(_arg1));
}
}
}//package wck
Section 132
//aviso_logro (aviso_logro)
package {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class aviso_logro extends MovieClip {
public function aviso_logro(){
addFrameScript(119, frame120);
}
function frame120(){
stop();
}
}
}//package
Section 133
//aviso_logro_ (aviso_logro_)
package {
import flash.display.*;
public dynamic class aviso_logro_ extends MovieClip {
}
}//package
Section 134
//DemoCursor (DemoCursor)
package {
import wck.*;
public dynamic class DemoCursor extends Cursor {
}
}//package
Section 135
//DemoJoint (DemoJoint)
package {
import wck.*;
public dynamic class DemoJoint extends Joint {
}
}//package
Section 136
//jelly_anilla (jelly_anilla)
package {
import wck.*;
public dynamic class jelly_anilla extends jelly_anilla {
}
}//package
Section 137
//jelly_anilla_invertida (jelly_anilla_invertida)
package {
import wck.*;
public dynamic class jelly_anilla_invertida extends jelly_anilla_invertida {
}
}//package
Section 138
//jelly_boca (jelly_boca)
package {
import wck.*;
public dynamic class jelly_boca extends jelly_boca {
}
}//package
Section 139
//jelly_boca_larga (jelly_boca_larga)
package {
import wck.*;
public dynamic class jelly_boca_larga extends jelly_boca_larga {
}
}//package
Section 140
//jelly_chivato (jelly_chivato)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_chivato extends jelly_chivato {
public function jelly_chivato(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 141
//jelly_chivato_ (jelly_chivato_)
package {
import wck.*;
public dynamic class jelly_chivato_ extends jelly_chivato {
}
}//package
Section 142
//jelly_circulo (jelly_circulo)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_circulo extends jelly_circulo {
public function jelly_circulo(){
addFrameScript(41, frame42, 73, frame74);
}
function frame42(){
gotoAndPlay("temblando");
}
function frame74(){
gotoAndPlay("volando");
}
}
}//package
Section 143
//jelly_circulo_ (jelly_circulo_)
package {
import wck.*;
public dynamic class jelly_circulo_ extends jelly_circulo {
}
}//package
Section 144
//jelly_click (jelly_click)
package {
import flash.media.*;
public dynamic class jelly_click extends Sound {
}
}//package
Section 145
//jelly_cruz (jelly_cruz)
package {
import wck.*;
public dynamic class jelly_cruz extends Body {
}
}//package
Section 146
//jelly_cuadrado (jelly_cuadrado)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_cuadrado extends jelly_cuadrado {
public function jelly_cuadrado(){
addFrameScript(41, frame42, 73, frame74);
}
function frame42(){
gotoAndPlay("temblando");
}
function frame74(){
gotoAndPlay("volando");
}
}
}//package
Section 147
//jelly_cuadrado_ (jelly_cuadrado_)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_cuadrado_ extends jelly_cuadrado {
public function jelly_cuadrado_(){
addFrameScript(41, frame42, 73, frame74);
}
function frame42(){
gotoAndPlay("temblando");
}
function frame74(){
gotoAndPlay("volando");
}
}
}//package
Section 148
//jelly_drop (jelly_drop)
package {
import flash.media.*;
public dynamic class jelly_drop extends Sound {
}
}//package
Section 149
//jelly_dummy (jelly_dummy)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_dummy extends Body {
public function jelly_dummy(){
__setProp_hombro_derecho_jelly_dummy_Capa1_1();
__setProp_cuello_jelly_dummy_Capa1_1();
__setProp_hombro_izquierdo_jelly_dummy_Capa1_1();
__setProp_pecho_jelly_dummy_Capa1_1();
}
function __setProp_hombro_derecho_jelly_dummy_Capa1_1(){
try {
hombro_derecho["componentInspectorSetting"] = true;
} catch(e:Error) {
};
hombro_derecho.body2Name = "";
hombro_derecho.bodyName = "";
hombro_derecho.collideConnected = false;
hombro_derecho.enableLimit = true;
hombro_derecho.enableMotor = false;
hombro_derecho.lineParameter = "0x888888";
hombro_derecho.lineStyle = "Line";
hombro_derecho.lowerLimit = 0;
hombro_derecho.pathReturns = false;
hombro_derecho.speed1 = 0;
hombro_derecho.speed2 = 0;
hombro_derecho.speedFlag = "";
hombro_derecho.spring = false;
hombro_derecho.springConstant = 0;
hombro_derecho.springDamping = 0;
hombro_derecho.strength = 0;
hombro_derecho.targetName = "";
hombro_derecho.type = "None";
hombro_derecho.upperLimit = 0;
try {
hombro_derecho["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_hombro_izquierdo_jelly_dummy_Capa1_1(){
try {
hombro_izquierdo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
hombro_izquierdo.body2Name = "";
hombro_izquierdo.bodyName = "";
hombro_izquierdo.collideConnected = false;
hombro_izquierdo.enableLimit = true;
hombro_izquierdo.enableMotor = false;
hombro_izquierdo.lineParameter = "0x888888";
hombro_izquierdo.lineStyle = "Line";
hombro_izquierdo.lowerLimit = 0;
hombro_izquierdo.pathReturns = false;
hombro_izquierdo.speed1 = 0;
hombro_izquierdo.speed2 = 0;
hombro_izquierdo.speedFlag = "";
hombro_izquierdo.spring = false;
hombro_izquierdo.springConstant = 0;
hombro_izquierdo.springDamping = 0;
hombro_izquierdo.strength = 0;
hombro_izquierdo.targetName = "";
hombro_izquierdo.type = "None";
hombro_izquierdo.upperLimit = 0;
try {
hombro_izquierdo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_cuello_jelly_dummy_Capa1_1(){
try {
cuello["componentInspectorSetting"] = true;
} catch(e:Error) {
};
cuello.body2Name = "";
cuello.bodyName = "";
cuello.collideConnected = false;
cuello.enableLimit = true;
cuello.enableMotor = false;
cuello.lineParameter = "0x888888";
cuello.lineStyle = "Line";
cuello.lowerLimit = 0;
cuello.pathReturns = false;
cuello.speed1 = 0;
cuello.speed2 = 0;
cuello.speedFlag = "";
cuello.spring = false;
cuello.springConstant = 0;
cuello.springDamping = 0;
cuello.strength = 0;
cuello.targetName = "pecho";
cuello.type = "None";
cuello.upperLimit = 0;
try {
cuello["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pecho_jelly_dummy_Capa1_1(){
try {
pecho["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pecho.body2Name = "";
pecho.bodyName = "";
pecho.collideConnected = false;
pecho.enableLimit = false;
pecho.enableMotor = true;
pecho.lineParameter = "0x888888";
pecho.lineStyle = "Line";
pecho.lowerLimit = 0;
pecho.pathReturns = false;
pecho.speed1 = 0;
pecho.speed2 = 0;
pecho.speedFlag = "";
pecho.spring = false;
pecho.springConstant = 0;
pecho.springDamping = 0;
pecho.strength = 0;
pecho.targetName = "";
pecho.type = "None";
pecho.upperLimit = 0;
try {
pecho["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 150
//jelly_escalera (jelly_escalera)
package {
import wck.*;
public dynamic class jelly_escalera extends Body {
}
}//package
Section 151
//jelly_marco_colision800x600 (jelly_marco_colision800x600)
package {
import wck.*;
public dynamic class jelly_marco_colision800x600 extends Body {
}
}//package
Section 152
//jelly_pentagono (jelly_pentagono)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_pentagono extends jelly_pentagono {
public function jelly_pentagono(){
addFrameScript(41, frame42, 73, frame74);
}
function frame42(){
gotoAndPlay("temblando");
}
function frame74(){
gotoAndPlay("volando");
}
}
}//package
Section 153
//jelly_pentagono_ (jelly_pentagono_)
package {
import wck.*;
public dynamic class jelly_pentagono_ extends jelly_pentagono {
}
}//package
Section 154
//jelly_rectangulo (jelly_rectangulo)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_rectangulo extends jelly_rectangulo {
public function jelly_rectangulo(){
addFrameScript(41, frame42, 73, frame74);
}
function frame42(){
gotoAndPlay("temblando");
}
function frame74(){
gotoAndPlay("volando");
}
}
}//package
Section 155
//jelly_rectangulo_ (jelly_rectangulo_)
package {
import wck.*;
public dynamic class jelly_rectangulo_ extends jelly_rectangulo {
}
}//package
Section 156
//jelly_shake (jelly_shake)
package {
import flash.media.*;
public dynamic class jelly_shake extends Sound {
}
}//package
Section 157
//jelly_tanoku (jelly_tanoku)
package {
import wck.*;
public dynamic class jelly_tanoku extends jelly_tanoku {
}
}//package
Section 158
//jelly_tetris_cuadrado (jelly_tetris_cuadrado)
package {
import wck.*;
public dynamic class jelly_tetris_cuadrado extends jelly_tetris_cuadrado {
}
}//package
Section 159
//jelly_tetris_escalera (jelly_tetris_escalera)
package {
import wck.*;
public dynamic class jelly_tetris_escalera extends jelly_tetris_escalera {
}
}//package
Section 160
//jelly_tetris_forma_l (jelly_tetris_forma_l)
package {
import wck.*;
public dynamic class jelly_tetris_forma_l extends jelly_tetris_forma_l {
}
}//package
Section 161
//jelly_tetris_forma_t (jelly_tetris_forma_t)
package {
import wck.*;
public dynamic class jelly_tetris_forma_t extends Body {
}
}//package
Section 162
//jelly_tetris_linea (jelly_tetris_linea)
package {
import wck.*;
public dynamic class jelly_tetris_linea extends jelly_tetris_linea {
}
}//package
Section 163
//jelly_trapecio_isosceles (jelly_trapecio_isosceles)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_trapecio_isosceles extends jelly_trapecio_isosceles {
public function jelly_trapecio_isosceles(){
addFrameScript(40, frame41, 73, frame74);
}
function frame41(){
gotoAndPlay("temblando");
}
function frame74(){
gotoAndPlay("volando");
}
}
}//package
Section 164
//jelly_trapecio_isosceles_ (jelly_trapecio_isosceles_)
package {
import wck.*;
public dynamic class jelly_trapecio_isosceles_ extends jelly_trapecio_isosceles {
}
}//package
Section 165
//jelly_trapecio_paralelo (jelly_trapecio_paralelo)
package {
import wck.*;
public dynamic class jelly_trapecio_paralelo extends jelly_trapecio_paralelo {
}
}//package
Section 166
//jelly_trapecio_rectangulo (jelly_trapecio_rectangulo)
package {
import wck.*;
public dynamic class jelly_trapecio_rectangulo extends jelly_trapecio_rectangulo {
}
}//package
Section 167
//jelly_triangulo_equilatero (jelly_triangulo_equilatero)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_triangulo_equilatero extends jelly_triangulo_equilatero {
public function jelly_triangulo_equilatero(){
addFrameScript(41, frame42, 73, frame74);
}
function frame42(){
gotoAndPlay("temblando");
}
function frame74(){
gotoAndPlay("volando");
}
}
}//package
Section 168
//jelly_triangulo_equilatero_ (jelly_triangulo_equilatero_)
package {
import wck.*;
public dynamic class jelly_triangulo_equilatero_ extends jelly_triangulo_equilatero {
}
}//package
Section 169
//jelly_triangulo_isosceles (jelly_triangulo_isosceles)
package {
import wck.*;
public dynamic class jelly_triangulo_isosceles extends jelly_triangulo_isosceles {
}
}//package
Section 170
//jelly_triangulo_obtuso (jelly_triangulo_obtuso)
package {
import wck.*;
public dynamic class jelly_triangulo_obtuso extends jelly_triangulo_obtuso {
}
}//package
Section 171
//jelly_triangulo_rectangulo (jelly_triangulo_rectangulo)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class jelly_triangulo_rectangulo extends jelly_triangulo_rectangulo {
public function jelly_triangulo_rectangulo(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 172
//jelly_vaso (jelly_vaso)
package {
import wck.*;
public dynamic class jelly_vaso extends jelly_vaso {
}
}//package
Section 173
//levelcomplete (levelcomplete)
package {
import flash.display.*;
public dynamic class levelcomplete extends MovieClip {
}
}//package
Section 174
//meta (meta)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class meta extends Goal {
public function meta(){
addFrameScript(79, frame80, 159, frame160, 239, frame240, 319, frame320);
}
function frame160(){
gotoAndPlay("gritando");
}
function frame320(){
gotoAndPlay("come");
}
function frame80(){
gotoAndPlay("quieto");
}
function frame240(){
gotoAndPlay("temblando");
}
}
}//package
Section 175
//monster_angry (monster_angry)
package {
import flash.media.*;
public dynamic class monster_angry extends Sound {
}
}//package
Section 176
//monster_eating (monster_eating)
package {
import flash.media.*;
public dynamic class monster_eating extends Sound {
}
}//package
Section 177
//mouse_off (mouse_off)
package {
import flash.media.*;
public dynamic class mouse_off extends Sound {
}
}//package
Section 178
//muro (muro)
package {
import wck.*;
public dynamic class muro extends Pared {
}
}//package
Section 179
//musica00 (musica00)
package {
import flash.media.*;
public dynamic class musica00 extends Sound {
}
}//package
Section 180
//musica01 (musica01)
package {
import flash.media.*;
public dynamic class musica01 extends Sound {
}
}//package
Section 181
//Nivel04View (Nivel04View)
package {
import wck.*;
public dynamic class Nivel04View extends View {
}
}//package
Section 182
//Nivel04World (Nivel04World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel04World extends World {
public var __id516_:meta;
public var __id517_:jelly_marco_colision800x600;
public var __id518_:jelly_cuadrado;
public var __id519_:jelly_cuadrado;
public var __id520_:jelly_rectangulo;
public var __id521_:jelly_triangulo_equilatero;
public var __id522_:jelly_pentagono;
public var __id513_:jelly_chivato;
public var __id514_:jelly_chivato;
public var __id515_:meta;
public function Nivel04World(){
__setProp___id516__Nivel04World_Capa2_1();
__setProp___id514__Nivel04World_Capa2_1();
__setProp___id518__Nivel04World_Capa2_1();
__setProp___id513__Nivel04World_Capa2_1();
__setProp___id519__Nivel04World_Capa2_1();
__setProp___id515__Nivel04World_Capa2_1();
__setProp___id522__Nivel04World_Capa2_1();
__setProp___id520__Nivel04World_Capa2_1();
__setProp___id521__Nivel04World_Capa2_1();
__setProp___id517__Nivel04World_Capa2_1();
}
function __setProp___id513__Nivel04World_Capa2_1(){
try {
__id513_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id513_.nombre_figura = "jelly_pentagono";
try {
__id513_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id518__Nivel04World_Capa2_1(){
try {
__id518_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id518_.bodyAllowSleep = true;
__id518_.bodyAngularDamping = 0;
__id518_.bodyApplyGravity = true;
__id518_.bodyFixedRotation = false;
__id518_.bodyIsBullet = false;
__id518_.bodyIsSleeping = false;
__id518_.bodyIsStatic = false;
__id518_.bodyLinearDamping = 0;
__id518_.shapeCategoryBits = "0x0001";
__id518_.shapeDensity = 1;
__id518_.shapeFriction = 1;
__id518_.shapeGroupIndex = 0;
__id518_.shapeIsSensor = false;
__id518_.shapeMaskBits = "0xFFFF";
__id518_.shapeRestitution = 0;
try {
__id518_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id521__Nivel04World_Capa2_1(){
try {
__id521_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id521_.bodyAllowSleep = true;
__id521_.bodyAngularDamping = 0;
__id521_.bodyApplyGravity = true;
__id521_.bodyFixedRotation = false;
__id521_.bodyIsBullet = false;
__id521_.bodyIsSleeping = false;
__id521_.bodyIsStatic = false;
__id521_.bodyLinearDamping = 0;
__id521_.shapeCategoryBits = "0x0001";
__id521_.shapeDensity = 1;
__id521_.shapeFriction = 1;
__id521_.shapeGroupIndex = 0;
__id521_.shapeIsSensor = false;
__id521_.shapeMaskBits = "0xFFFF";
__id521_.shapeRestitution = 0;
try {
__id521_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id515__Nivel04World_Capa2_1(){
try {
__id515_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id515_.bodyAllowSleep = true;
__id515_.bodyAngularDamping = 0;
__id515_.bodyApplyGravity = false;
__id515_.bodyFixedRotation = false;
__id515_.bodyIsBullet = false;
__id515_.bodyIsSleeping = false;
__id515_.bodyIsStatic = true;
__id515_.bodyLinearDamping = 0;
__id515_.shapeCategoryBits = "0x0001";
__id515_.shapeDensity = 1;
__id515_.shapeFriction = 0.2;
__id515_.shapeGroupIndex = 0;
__id515_.shapeIsSensor = true;
__id515_.shapeMaskBits = "0xFFFF";
__id515_.shapeRestitution = 0;
__id515_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id515_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id517__Nivel04World_Capa2_1(){
try {
__id517_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id517_.bodyAllowSleep = true;
__id517_.bodyAngularDamping = 0;
__id517_.bodyApplyGravity = true;
__id517_.bodyFixedRotation = false;
__id517_.bodyIsBullet = false;
__id517_.bodyIsSleeping = true;
__id517_.bodyIsStatic = true;
__id517_.bodyLinearDamping = 0;
__id517_.shapeCategoryBits = "0x0001";
__id517_.shapeDensity = 1;
__id517_.shapeFriction = 0.2;
__id517_.shapeGroupIndex = 0;
__id517_.shapeIsSensor = false;
__id517_.shapeMaskBits = "0xFFFF";
__id517_.shapeRestitution = 0;
try {
__id517_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id520__Nivel04World_Capa2_1(){
try {
__id520_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id520_.bodyAllowSleep = true;
__id520_.bodyAngularDamping = 0;
__id520_.bodyApplyGravity = true;
__id520_.bodyFixedRotation = false;
__id520_.bodyIsBullet = false;
__id520_.bodyIsSleeping = false;
__id520_.bodyIsStatic = false;
__id520_.bodyLinearDamping = 0;
__id520_.shapeCategoryBits = "0x0001";
__id520_.shapeDensity = 1;
__id520_.shapeFriction = 1;
__id520_.shapeGroupIndex = 0;
__id520_.shapeIsSensor = false;
__id520_.shapeMaskBits = "0xFFFF";
__id520_.shapeRestitution = 0;
try {
__id520_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id514__Nivel04World_Capa2_1(){
try {
__id514_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id514_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id514_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id519__Nivel04World_Capa2_1(){
try {
__id519_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id519_.bodyAllowSleep = true;
__id519_.bodyAngularDamping = 0;
__id519_.bodyApplyGravity = true;
__id519_.bodyFixedRotation = false;
__id519_.bodyIsBullet = false;
__id519_.bodyIsSleeping = false;
__id519_.bodyIsStatic = false;
__id519_.bodyLinearDamping = 0;
__id519_.shapeCategoryBits = "0x0001";
__id519_.shapeDensity = 1;
__id519_.shapeFriction = 1;
__id519_.shapeGroupIndex = 0;
__id519_.shapeIsSensor = false;
__id519_.shapeMaskBits = "0xFFFF";
__id519_.shapeRestitution = 0;
try {
__id519_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id522__Nivel04World_Capa2_1(){
try {
__id522_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id522_.bodyAllowSleep = true;
__id522_.bodyAngularDamping = 0;
__id522_.bodyApplyGravity = true;
__id522_.bodyFixedRotation = false;
__id522_.bodyIsBullet = false;
__id522_.bodyIsSleeping = false;
__id522_.bodyIsStatic = false;
__id522_.bodyLinearDamping = 0;
__id522_.shapeCategoryBits = "0x0001";
__id522_.shapeDensity = 1;
__id522_.shapeFriction = 1;
__id522_.shapeGroupIndex = 0;
__id522_.shapeIsSensor = false;
__id522_.shapeMaskBits = "0xFFFF";
__id522_.shapeRestitution = 0;
try {
__id522_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id516__Nivel04World_Capa2_1(){
try {
__id516_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id516_.bodyAllowSleep = true;
__id516_.bodyAngularDamping = 0;
__id516_.bodyApplyGravity = false;
__id516_.bodyFixedRotation = false;
__id516_.bodyIsBullet = false;
__id516_.bodyIsSleeping = false;
__id516_.bodyIsStatic = true;
__id516_.bodyLinearDamping = 0;
__id516_.shapeCategoryBits = "0x0001";
__id516_.shapeDensity = 1;
__id516_.shapeFriction = 0.2;
__id516_.shapeGroupIndex = 0;
__id516_.shapeIsSensor = true;
__id516_.shapeMaskBits = "0xFFFF";
__id516_.shapeRestitution = 0;
__id516_.validGoalBody = "jelly_pentagono";
try {
__id516_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 183
//Nivel05View (Nivel05View)
package {
import wck.*;
public dynamic class Nivel05View extends View {
}
}//package
Section 184
//Nivel05World (Nivel05World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel05World extends World {
public var __id505_:meta;
public var __id506_:jelly_marco_colision800x600;
public var __id507_:jelly_cuadrado;
public var __id508_:jelly_cuadrado;
public var __id509_:jelly_cuadrado;
public var __id510_:jelly_rectangulo;
public var __id511_:zonatregua;
public function Nivel05World(){
__setProp___id510__Nivel05World_Capa1_1();
__setProp___id507__Nivel05World_Capa1_1();
__setProp___id509__Nivel05World_Capa1_1();
__setProp___id508__Nivel05World_Capa1_1();
__setProp___id505__Nivel05World_Capa1_1();
__setProp___id511__Nivel05World_Capa1_1();
__setProp___id506__Nivel05World_Capa1_1();
}
function __setProp___id507__Nivel05World_Capa1_1(){
try {
__id507_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id507_.bodyAllowSleep = true;
__id507_.bodyAngularDamping = 0;
__id507_.bodyApplyGravity = true;
__id507_.bodyFixedRotation = false;
__id507_.bodyIsBullet = false;
__id507_.bodyIsSleeping = false;
__id507_.bodyIsStatic = false;
__id507_.bodyLinearDamping = 0;
__id507_.shapeCategoryBits = "0x0001";
__id507_.shapeDensity = 25;
__id507_.shapeFriction = 10;
__id507_.shapeGroupIndex = 0;
__id507_.shapeIsSensor = false;
__id507_.shapeMaskBits = "0xFFFF";
__id507_.shapeRestitution = 0;
try {
__id507_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id510__Nivel05World_Capa1_1(){
try {
__id510_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id510_.bodyAllowSleep = true;
__id510_.bodyAngularDamping = 0;
__id510_.bodyApplyGravity = true;
__id510_.bodyFixedRotation = false;
__id510_.bodyIsBullet = false;
__id510_.bodyIsSleeping = false;
__id510_.bodyIsStatic = false;
__id510_.bodyLinearDamping = 0;
__id510_.shapeCategoryBits = "0x0001";
__id510_.shapeDensity = 50;
__id510_.shapeFriction = 1;
__id510_.shapeGroupIndex = 0;
__id510_.shapeIsSensor = false;
__id510_.shapeMaskBits = "0xFFFF";
__id510_.shapeRestitution = 0;
try {
__id510_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id509__Nivel05World_Capa1_1(){
try {
__id509_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id509_.bodyAllowSleep = true;
__id509_.bodyAngularDamping = 0;
__id509_.bodyApplyGravity = true;
__id509_.bodyFixedRotation = false;
__id509_.bodyIsBullet = false;
__id509_.bodyIsSleeping = false;
__id509_.bodyIsStatic = false;
__id509_.bodyLinearDamping = 0;
__id509_.shapeCategoryBits = "0x0001";
__id509_.shapeDensity = 25;
__id509_.shapeFriction = 10;
__id509_.shapeGroupIndex = 0;
__id509_.shapeIsSensor = false;
__id509_.shapeMaskBits = "0xFFFF";
__id509_.shapeRestitution = 0;
try {
__id509_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id506__Nivel05World_Capa1_1(){
try {
__id506_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id506_.bodyAllowSleep = true;
__id506_.bodyAngularDamping = 0;
__id506_.bodyApplyGravity = true;
__id506_.bodyFixedRotation = false;
__id506_.bodyIsBullet = false;
__id506_.bodyIsSleeping = true;
__id506_.bodyIsStatic = true;
__id506_.bodyLinearDamping = 0;
__id506_.shapeCategoryBits = "0x0001";
__id506_.shapeDensity = 1;
__id506_.shapeFriction = 0.2;
__id506_.shapeGroupIndex = 0;
__id506_.shapeIsSensor = false;
__id506_.shapeMaskBits = "0xFFFF";
__id506_.shapeRestitution = 0;
try {
__id506_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id508__Nivel05World_Capa1_1(){
try {
__id508_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id508_.bodyAllowSleep = true;
__id508_.bodyAngularDamping = 0;
__id508_.bodyApplyGravity = true;
__id508_.bodyFixedRotation = false;
__id508_.bodyIsBullet = false;
__id508_.bodyIsSleeping = false;
__id508_.bodyIsStatic = false;
__id508_.bodyLinearDamping = 0;
__id508_.shapeCategoryBits = "0x0001";
__id508_.shapeDensity = 25;
__id508_.shapeFriction = 10;
__id508_.shapeGroupIndex = 0;
__id508_.shapeIsSensor = false;
__id508_.shapeMaskBits = "0xFFFF";
__id508_.shapeRestitution = 0;
try {
__id508_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id511__Nivel05World_Capa1_1(){
try {
__id511_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id511_.bodyAllowSleep = false;
__id511_.bodyAngularDamping = 0;
__id511_.bodyApplyGravity = true;
__id511_.bodyFixedRotation = false;
__id511_.bodyIsBullet = false;
__id511_.bodyIsSleeping = false;
__id511_.bodyIsStatic = true;
__id511_.bodyLinearDamping = 0;
__id511_.shapeCategoryBits = "0x0001";
__id511_.shapeDensity = 1;
__id511_.shapeFriction = 0.2;
__id511_.shapeGroupIndex = 0;
__id511_.shapeIsSensor = true;
__id511_.shapeMaskBits = "0xFFFF";
__id511_.shapeRestitution = 0;
try {
__id511_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id505__Nivel05World_Capa1_1(){
try {
__id505_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id505_.bodyAllowSleep = true;
__id505_.bodyAngularDamping = 0;
__id505_.bodyApplyGravity = false;
__id505_.bodyFixedRotation = false;
__id505_.bodyIsBullet = false;
__id505_.bodyIsSleeping = false;
__id505_.bodyIsStatic = true;
__id505_.bodyLinearDamping = 0;
__id505_.shapeCategoryBits = "0x0001";
__id505_.shapeDensity = 1;
__id505_.shapeFriction = 0.2;
__id505_.shapeGroupIndex = 0;
__id505_.shapeIsSensor = true;
__id505_.shapeMaskBits = "0xFFFF";
__id505_.shapeRestitution = 0;
__id505_.validGoalBody = "";
try {
__id505_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 185
//Nivel06View (Nivel06View)
package {
import wck.*;
public dynamic class Nivel06View extends View {
}
}//package
Section 186
//Nivel06World (Nivel06World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel06World extends World {
public var __id496_:jelly_marco_colision800x600;
public var __id497_:meta;
public function Nivel06World(){
__setProp___id496__Nivel06World_Capa1_1();
__setProp___id497__Nivel06World_Capa1_1();
}
function __setProp___id497__Nivel06World_Capa1_1(){
try {
__id497_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id497_.bodyAllowSleep = true;
__id497_.bodyAngularDamping = 0;
__id497_.bodyApplyGravity = false;
__id497_.bodyFixedRotation = false;
__id497_.bodyIsBullet = false;
__id497_.bodyIsSleeping = false;
__id497_.bodyIsStatic = true;
__id497_.bodyLinearDamping = 0;
__id497_.shapeCategoryBits = "0x0001";
__id497_.shapeDensity = 1;
__id497_.shapeFriction = 0.2;
__id497_.shapeGroupIndex = 0;
__id497_.shapeIsSensor = true;
__id497_.shapeMaskBits = "0xFFFF";
__id497_.shapeRestitution = 0;
__id497_.validGoalBody = "";
try {
__id497_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id496__Nivel06World_Capa1_1(){
try {
__id496_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id496_.bodyAllowSleep = true;
__id496_.bodyAngularDamping = 0;
__id496_.bodyApplyGravity = true;
__id496_.bodyFixedRotation = false;
__id496_.bodyIsBullet = false;
__id496_.bodyIsSleeping = true;
__id496_.bodyIsStatic = true;
__id496_.bodyLinearDamping = 0;
__id496_.shapeCategoryBits = "0x0001";
__id496_.shapeDensity = 1;
__id496_.shapeFriction = 0.2;
__id496_.shapeGroupIndex = 0;
__id496_.shapeIsSensor = false;
__id496_.shapeMaskBits = "0xFFFF";
__id496_.shapeRestitution = 0;
try {
__id496_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 187
//Nivel07View (Nivel07View)
package {
import wck.*;
public dynamic class Nivel07View extends View {
}
}//package
Section 188
//Nivel07World (Nivel07World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel07World extends World {
public var __id487_:muro;
public var __id479_:jelly_chivato;
public var __id480_:jelly_marco_colision800x600;
public var __id493_:zonatregua;
public var __id481_:meta;
public var __id494_:zonatregua;
public var __id482_:muro;
public var __id483_:muro;
public var __id484_:muro;
public var __id485_:muro;
public var __id486_:muro;
public function Nivel07World(){
__setProp___id479__Nivel07World_Capa1_1();
__setProp___id487__Nivel07World_Capa1_1();
__setProp___id482__Nivel07World_Capa1_1();
__setProp___id483__Nivel07World_Capa1_1();
__setProp___id493__Nivel07World_Capa1_1();
__setProp___id484__Nivel07World_Capa1_1();
__setProp___id481__Nivel07World_Capa1_1();
__setProp___id485__Nivel07World_Capa1_1();
__setProp___id480__Nivel07World_Capa1_1();
__setProp___id494__Nivel07World_Capa1_1();
__setProp___id486__Nivel07World_Capa1_1();
}
function __setProp___id486__Nivel07World_Capa1_1(){
try {
__id486_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id486_.bodyAllowSleep = true;
__id486_.bodyAngularDamping = 0;
__id486_.bodyApplyGravity = true;
__id486_.bodyFixedRotation = false;
__id486_.bodyIsBullet = false;
__id486_.bodyIsSleeping = false;
__id486_.bodyIsStatic = true;
__id486_.bodyLinearDamping = 0;
__id486_.shapeCategoryBits = "0x0001";
__id486_.shapeDensity = 1;
__id486_.shapeFriction = 0.2;
__id486_.shapeGroupIndex = 0;
__id486_.shapeIsSensor = false;
__id486_.shapeMaskBits = "0xFFFF";
__id486_.shapeRestitution = 0;
try {
__id486_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id483__Nivel07World_Capa1_1(){
try {
__id483_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id483_.bodyAllowSleep = true;
__id483_.bodyAngularDamping = 0;
__id483_.bodyApplyGravity = true;
__id483_.bodyFixedRotation = false;
__id483_.bodyIsBullet = false;
__id483_.bodyIsSleeping = false;
__id483_.bodyIsStatic = true;
__id483_.bodyLinearDamping = 0;
__id483_.shapeCategoryBits = "0x0001";
__id483_.shapeDensity = 1;
__id483_.shapeFriction = 0.2;
__id483_.shapeGroupIndex = 0;
__id483_.shapeIsSensor = false;
__id483_.shapeMaskBits = "0xFFFF";
__id483_.shapeRestitution = 0;
try {
__id483_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id494__Nivel07World_Capa1_1(){
try {
__id494_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id494_.bodyAllowSleep = true;
__id494_.bodyAngularDamping = 0;
__id494_.bodyApplyGravity = true;
__id494_.bodyFixedRotation = false;
__id494_.bodyIsBullet = false;
__id494_.bodyIsSleeping = false;
__id494_.bodyIsStatic = true;
__id494_.bodyLinearDamping = 0;
__id494_.shapeCategoryBits = "0x0001";
__id494_.shapeDensity = 1;
__id494_.shapeFriction = 0.2;
__id494_.shapeGroupIndex = 0;
__id494_.shapeIsSensor = true;
__id494_.shapeMaskBits = "0xFFFF";
__id494_.shapeRestitution = 0;
try {
__id494_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id480__Nivel07World_Capa1_1(){
try {
__id480_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id480_.bodyAllowSleep = true;
__id480_.bodyAngularDamping = 0;
__id480_.bodyApplyGravity = true;
__id480_.bodyFixedRotation = false;
__id480_.bodyIsBullet = false;
__id480_.bodyIsSleeping = true;
__id480_.bodyIsStatic = true;
__id480_.bodyLinearDamping = 0;
__id480_.shapeCategoryBits = "0x0001";
__id480_.shapeDensity = 1;
__id480_.shapeFriction = 0.2;
__id480_.shapeGroupIndex = 0;
__id480_.shapeIsSensor = false;
__id480_.shapeMaskBits = "0xFFFF";
__id480_.shapeRestitution = 0;
try {
__id480_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id485__Nivel07World_Capa1_1(){
try {
__id485_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id485_.bodyAllowSleep = true;
__id485_.bodyAngularDamping = 0;
__id485_.bodyApplyGravity = true;
__id485_.bodyFixedRotation = false;
__id485_.bodyIsBullet = false;
__id485_.bodyIsSleeping = false;
__id485_.bodyIsStatic = true;
__id485_.bodyLinearDamping = 0;
__id485_.shapeCategoryBits = "0x0001";
__id485_.shapeDensity = 1;
__id485_.shapeFriction = 0.2;
__id485_.shapeGroupIndex = 0;
__id485_.shapeIsSensor = false;
__id485_.shapeMaskBits = "0xFFFF";
__id485_.shapeRestitution = 0;
try {
__id485_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id479__Nivel07World_Capa1_1(){
try {
__id479_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id479_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id479_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id482__Nivel07World_Capa1_1(){
try {
__id482_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id482_.bodyAllowSleep = true;
__id482_.bodyAngularDamping = 0;
__id482_.bodyApplyGravity = true;
__id482_.bodyFixedRotation = false;
__id482_.bodyIsBullet = false;
__id482_.bodyIsSleeping = false;
__id482_.bodyIsStatic = true;
__id482_.bodyLinearDamping = 0;
__id482_.shapeCategoryBits = "0x0001";
__id482_.shapeDensity = 1;
__id482_.shapeFriction = 0.2;
__id482_.shapeGroupIndex = 0;
__id482_.shapeIsSensor = false;
__id482_.shapeMaskBits = "0xFFFF";
__id482_.shapeRestitution = 0;
try {
__id482_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id493__Nivel07World_Capa1_1(){
try {
__id493_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id493_.bodyAllowSleep = true;
__id493_.bodyAngularDamping = 0;
__id493_.bodyApplyGravity = true;
__id493_.bodyFixedRotation = false;
__id493_.bodyIsBullet = false;
__id493_.bodyIsSleeping = false;
__id493_.bodyIsStatic = true;
__id493_.bodyLinearDamping = 0;
__id493_.shapeCategoryBits = "0x0001";
__id493_.shapeDensity = 1;
__id493_.shapeFriction = 0.2;
__id493_.shapeGroupIndex = 0;
__id493_.shapeIsSensor = true;
__id493_.shapeMaskBits = "0xFFFF";
__id493_.shapeRestitution = 0;
try {
__id493_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id487__Nivel07World_Capa1_1(){
try {
__id487_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id487_.bodyAllowSleep = true;
__id487_.bodyAngularDamping = 0;
__id487_.bodyApplyGravity = true;
__id487_.bodyFixedRotation = false;
__id487_.bodyIsBullet = false;
__id487_.bodyIsSleeping = false;
__id487_.bodyIsStatic = true;
__id487_.bodyLinearDamping = 0;
__id487_.shapeCategoryBits = "0x0001";
__id487_.shapeDensity = 1;
__id487_.shapeFriction = 0.2;
__id487_.shapeGroupIndex = 0;
__id487_.shapeIsSensor = false;
__id487_.shapeMaskBits = "0xFFFF";
__id487_.shapeRestitution = 0;
try {
__id487_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id484__Nivel07World_Capa1_1(){
try {
__id484_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id484_.bodyAllowSleep = true;
__id484_.bodyAngularDamping = 0;
__id484_.bodyApplyGravity = true;
__id484_.bodyFixedRotation = false;
__id484_.bodyIsBullet = false;
__id484_.bodyIsSleeping = false;
__id484_.bodyIsStatic = true;
__id484_.bodyLinearDamping = 0;
__id484_.shapeCategoryBits = "0x0001";
__id484_.shapeDensity = 1;
__id484_.shapeFriction = 0.2;
__id484_.shapeGroupIndex = 0;
__id484_.shapeIsSensor = false;
__id484_.shapeMaskBits = "0xFFFF";
__id484_.shapeRestitution = 0;
try {
__id484_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id481__Nivel07World_Capa1_1(){
try {
__id481_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id481_.bodyAllowSleep = true;
__id481_.bodyAngularDamping = 0;
__id481_.bodyApplyGravity = false;
__id481_.bodyFixedRotation = false;
__id481_.bodyIsBullet = false;
__id481_.bodyIsSleeping = false;
__id481_.bodyIsStatic = true;
__id481_.bodyLinearDamping = 0;
__id481_.shapeCategoryBits = "0x0001";
__id481_.shapeDensity = 1;
__id481_.shapeFriction = 0.2;
__id481_.shapeGroupIndex = 0;
__id481_.shapeIsSensor = true;
__id481_.shapeMaskBits = "0xFFFF";
__id481_.shapeRestitution = 0;
__id481_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id481_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 189
//Nivel08View (Nivel08View)
package {
import wck.*;
public dynamic class Nivel08View extends View {
}
}//package
Section 190
//Nivel08World (Nivel08World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel08World extends World {
public var __id463_:jelly_marco_colision800x600;
public var __id476_:zonatregua;
public var __id464_:meta;
public var __id477_:zonatregua;
public var __id466_:jelly_triangulo_equilatero;
public var __id462_:jelly_chivato;
public function Nivel08World(){
__setProp___id464__Nivel08World_Capa1_1();
__setProp___id463__Nivel08World_Capa1_1();
__setProp___id466__Nivel08World_Capa1_1();
__setProp___id462__Nivel08World_Capa1_1();
__setProp___id477__Nivel08World_Capa1_1();
__setProp___id476__Nivel08World_Capa1_1();
}
function __setProp___id463__Nivel08World_Capa1_1(){
try {
__id463_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id463_.bodyAllowSleep = true;
__id463_.bodyAngularDamping = 0;
__id463_.bodyApplyGravity = true;
__id463_.bodyFixedRotation = false;
__id463_.bodyIsBullet = false;
__id463_.bodyIsSleeping = true;
__id463_.bodyIsStatic = true;
__id463_.bodyLinearDamping = 0;
__id463_.shapeCategoryBits = "0x0001";
__id463_.shapeDensity = 1;
__id463_.shapeFriction = 0.2;
__id463_.shapeGroupIndex = 0;
__id463_.shapeIsSensor = false;
__id463_.shapeMaskBits = "0xFFFF";
__id463_.shapeRestitution = 0;
try {
__id463_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id476__Nivel08World_Capa1_1(){
try {
__id476_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id476_.bodyAllowSleep = true;
__id476_.bodyAngularDamping = 0;
__id476_.bodyApplyGravity = true;
__id476_.bodyFixedRotation = false;
__id476_.bodyIsBullet = false;
__id476_.bodyIsSleeping = false;
__id476_.bodyIsStatic = true;
__id476_.bodyLinearDamping = 0;
__id476_.shapeCategoryBits = "0x0001";
__id476_.shapeDensity = 1;
__id476_.shapeFriction = 0.2;
__id476_.shapeGroupIndex = 0;
__id476_.shapeIsSensor = true;
__id476_.shapeMaskBits = "0xFFFF";
__id476_.shapeRestitution = 0;
try {
__id476_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id462__Nivel08World_Capa1_1(){
try {
__id462_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id462_.nombre_figura = "jelly_circulo";
try {
__id462_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id464__Nivel08World_Capa1_1(){
try {
__id464_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id464_.bodyAllowSleep = true;
__id464_.bodyAngularDamping = 0;
__id464_.bodyApplyGravity = false;
__id464_.bodyFixedRotation = false;
__id464_.bodyIsBullet = false;
__id464_.bodyIsSleeping = false;
__id464_.bodyIsStatic = true;
__id464_.bodyLinearDamping = 0;
__id464_.shapeCategoryBits = "0x0001";
__id464_.shapeDensity = 1;
__id464_.shapeFriction = 0.2;
__id464_.shapeGroupIndex = 0;
__id464_.shapeIsSensor = true;
__id464_.shapeMaskBits = "0xFFFF";
__id464_.shapeRestitution = 0;
__id464_.validGoalBody = "jelly_circulo";
try {
__id464_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id466__Nivel08World_Capa1_1(){
try {
__id466_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id466_.bodyAllowSleep = true;
__id466_.bodyAngularDamping = 0;
__id466_.bodyApplyGravity = true;
__id466_.bodyFixedRotation = false;
__id466_.bodyIsBullet = false;
__id466_.bodyIsSleeping = false;
__id466_.bodyIsStatic = true;
__id466_.bodyLinearDamping = 0;
__id466_.shapeCategoryBits = "0x0001";
__id466_.shapeDensity = 1;
__id466_.shapeFriction = 0.2;
__id466_.shapeGroupIndex = 0;
__id466_.shapeIsSensor = false;
__id466_.shapeMaskBits = "0xFFFF";
__id466_.shapeRestitution = 0;
try {
__id466_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id477__Nivel08World_Capa1_1(){
try {
__id477_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id477_.bodyAllowSleep = true;
__id477_.bodyAngularDamping = 0;
__id477_.bodyApplyGravity = true;
__id477_.bodyFixedRotation = false;
__id477_.bodyIsBullet = false;
__id477_.bodyIsSleeping = false;
__id477_.bodyIsStatic = true;
__id477_.bodyLinearDamping = 0;
__id477_.shapeCategoryBits = "0x0001";
__id477_.shapeDensity = 1;
__id477_.shapeFriction = 0.2;
__id477_.shapeGroupIndex = 0;
__id477_.shapeIsSensor = true;
__id477_.shapeMaskBits = "0xFFFF";
__id477_.shapeRestitution = 0;
try {
__id477_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 191
//Nivel09View (Nivel09View)
package {
import wck.*;
public dynamic class Nivel09View extends View {
}
}//package
Section 192
//Nivel09World (Nivel09World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel09World extends World {
public var __id457_:jelly_triangulo_equilatero;
public var __id458_:jelly_triangulo_equilatero;
public var __id459_:jelly_triangulo_equilatero;
public var __id449_:jelly_marco_colision800x600;
public var __id460_:jelly_triangulo_equilatero;
public var __id450_:meta;
public function Nivel09World(){
__setProp___id460__Nivel09World_Capa1_1();
__setProp___id457__Nivel09World_Capa1_1();
__setProp___id459__Nivel09World_Capa1_1();
__setProp___id458__Nivel09World_Capa1_1();
__setProp___id450__Nivel09World_Capa1_1();
__setProp___id449__Nivel09World_Capa1_1();
}
function __setProp___id459__Nivel09World_Capa1_1(){
try {
__id459_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id459_.bodyAllowSleep = true;
__id459_.bodyAngularDamping = 0;
__id459_.bodyApplyGravity = true;
__id459_.bodyFixedRotation = false;
__id459_.bodyIsBullet = false;
__id459_.bodyIsSleeping = false;
__id459_.bodyIsStatic = true;
__id459_.bodyLinearDamping = 0;
__id459_.shapeCategoryBits = "0x0001";
__id459_.shapeDensity = 1;
__id459_.shapeFriction = 0.2;
__id459_.shapeGroupIndex = 0;
__id459_.shapeIsSensor = false;
__id459_.shapeMaskBits = "0xFFFF";
__id459_.shapeRestitution = 0;
try {
__id459_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id458__Nivel09World_Capa1_1(){
try {
__id458_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id458_.bodyAllowSleep = true;
__id458_.bodyAngularDamping = 0;
__id458_.bodyApplyGravity = true;
__id458_.bodyFixedRotation = false;
__id458_.bodyIsBullet = false;
__id458_.bodyIsSleeping = false;
__id458_.bodyIsStatic = true;
__id458_.bodyLinearDamping = 0;
__id458_.shapeCategoryBits = "0x0001";
__id458_.shapeDensity = 1;
__id458_.shapeFriction = 0.2;
__id458_.shapeGroupIndex = 0;
__id458_.shapeIsSensor = false;
__id458_.shapeMaskBits = "0xFFFF";
__id458_.shapeRestitution = 0;
try {
__id458_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id450__Nivel09World_Capa1_1(){
try {
__id450_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id450_.bodyAllowSleep = true;
__id450_.bodyAngularDamping = 0;
__id450_.bodyApplyGravity = false;
__id450_.bodyFixedRotation = false;
__id450_.bodyIsBullet = false;
__id450_.bodyIsSleeping = false;
__id450_.bodyIsStatic = true;
__id450_.bodyLinearDamping = 0;
__id450_.shapeCategoryBits = "0x0001";
__id450_.shapeDensity = 1;
__id450_.shapeFriction = 0.2;
__id450_.shapeGroupIndex = 0;
__id450_.shapeIsSensor = true;
__id450_.shapeMaskBits = "0xFFFF";
__id450_.shapeRestitution = 0;
__id450_.validGoalBody = "";
try {
__id450_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id449__Nivel09World_Capa1_1(){
try {
__id449_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id449_.bodyAllowSleep = true;
__id449_.bodyAngularDamping = 0;
__id449_.bodyApplyGravity = true;
__id449_.bodyFixedRotation = false;
__id449_.bodyIsBullet = false;
__id449_.bodyIsSleeping = true;
__id449_.bodyIsStatic = true;
__id449_.bodyLinearDamping = 0;
__id449_.shapeCategoryBits = "0x0001";
__id449_.shapeDensity = 1;
__id449_.shapeFriction = 0.2;
__id449_.shapeGroupIndex = 0;
__id449_.shapeIsSensor = false;
__id449_.shapeMaskBits = "0xFFFF";
__id449_.shapeRestitution = 0;
try {
__id449_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id457__Nivel09World_Capa1_1(){
try {
__id457_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id457_.bodyAllowSleep = true;
__id457_.bodyAngularDamping = 0;
__id457_.bodyApplyGravity = true;
__id457_.bodyFixedRotation = false;
__id457_.bodyIsBullet = false;
__id457_.bodyIsSleeping = false;
__id457_.bodyIsStatic = true;
__id457_.bodyLinearDamping = 0;
__id457_.shapeCategoryBits = "0x0001";
__id457_.shapeDensity = 1;
__id457_.shapeFriction = 0.2;
__id457_.shapeGroupIndex = 0;
__id457_.shapeIsSensor = false;
__id457_.shapeMaskBits = "0xFFFF";
__id457_.shapeRestitution = 0;
try {
__id457_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id460__Nivel09World_Capa1_1(){
try {
__id460_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id460_.bodyAllowSleep = true;
__id460_.bodyAngularDamping = 0;
__id460_.bodyApplyGravity = true;
__id460_.bodyFixedRotation = false;
__id460_.bodyIsBullet = false;
__id460_.bodyIsSleeping = false;
__id460_.bodyIsStatic = true;
__id460_.bodyLinearDamping = 0;
__id460_.shapeCategoryBits = "0x0001";
__id460_.shapeDensity = 1;
__id460_.shapeFriction = 0.2;
__id460_.shapeGroupIndex = 0;
__id460_.shapeIsSensor = false;
__id460_.shapeMaskBits = "0xFFFF";
__id460_.shapeRestitution = 0;
try {
__id460_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 193
//Nivel10View (Nivel10View)
package {
import wck.*;
public dynamic class Nivel10View extends View {
}
}//package
Section 194
//Nivel10World (Nivel10World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel10World extends World {
public var __id443_:jelly_circulo;
public var __id431_:jelly_chivato;
public var __id432_:jelly_marco_colision800x600;
public var __id433_:meta;
public var __id437_:jelly_circulo;
public var __id438_:jelly_triangulo_equilatero;
public var __id439_:jelly_triangulo_equilatero;
public function Nivel10World(){
__setProp___id437__Nivel10World_Capa1_1();
__setProp___id433__Nivel10World_Capa1_1();
__setProp___id432__Nivel10World_Capa1_1();
__setProp___id431__Nivel10World_Capa1_1();
__setProp___id443__Nivel10World_Capa1_1();
__setProp___id439__Nivel10World_Capa1_1();
__setProp___id438__Nivel10World_Capa1_1();
}
function __setProp___id431__Nivel10World_Capa1_1(){
try {
__id431_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id431_.nombre_figura = "jelly_pentagono";
try {
__id431_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id439__Nivel10World_Capa1_1(){
try {
__id439_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id439_.bodyAllowSleep = true;
__id439_.bodyAngularDamping = 0;
__id439_.bodyApplyGravity = true;
__id439_.bodyFixedRotation = false;
__id439_.bodyIsBullet = false;
__id439_.bodyIsSleeping = false;
__id439_.bodyIsStatic = true;
__id439_.bodyLinearDamping = 0;
__id439_.shapeCategoryBits = "0x0001";
__id439_.shapeDensity = 1;
__id439_.shapeFriction = 0.2;
__id439_.shapeGroupIndex = 0;
__id439_.shapeIsSensor = false;
__id439_.shapeMaskBits = "0xFFFF";
__id439_.shapeRestitution = 0;
try {
__id439_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id433__Nivel10World_Capa1_1(){
try {
__id433_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id433_.bodyAllowSleep = true;
__id433_.bodyAngularDamping = 0;
__id433_.bodyApplyGravity = false;
__id433_.bodyFixedRotation = false;
__id433_.bodyIsBullet = false;
__id433_.bodyIsSleeping = false;
__id433_.bodyIsStatic = true;
__id433_.bodyLinearDamping = 0;
__id433_.shapeCategoryBits = "0x0001";
__id433_.shapeDensity = 1;
__id433_.shapeFriction = 0.2;
__id433_.shapeGroupIndex = 0;
__id433_.shapeIsSensor = true;
__id433_.shapeMaskBits = "0xFFFF";
__id433_.shapeRestitution = 0;
__id433_.validGoalBody = "jelly_pentagono";
try {
__id433_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id438__Nivel10World_Capa1_1(){
try {
__id438_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id438_.bodyAllowSleep = true;
__id438_.bodyAngularDamping = 0;
__id438_.bodyApplyGravity = true;
__id438_.bodyFixedRotation = false;
__id438_.bodyIsBullet = false;
__id438_.bodyIsSleeping = false;
__id438_.bodyIsStatic = true;
__id438_.bodyLinearDamping = 0;
__id438_.shapeCategoryBits = "0x0001";
__id438_.shapeDensity = 1;
__id438_.shapeFriction = 0.2;
__id438_.shapeGroupIndex = 0;
__id438_.shapeIsSensor = false;
__id438_.shapeMaskBits = "0xFFFF";
__id438_.shapeRestitution = 0;
try {
__id438_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id432__Nivel10World_Capa1_1(){
try {
__id432_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id432_.bodyAllowSleep = true;
__id432_.bodyAngularDamping = 0;
__id432_.bodyApplyGravity = true;
__id432_.bodyFixedRotation = false;
__id432_.bodyIsBullet = false;
__id432_.bodyIsSleeping = true;
__id432_.bodyIsStatic = true;
__id432_.bodyLinearDamping = 0;
__id432_.shapeCategoryBits = "0x0001";
__id432_.shapeDensity = 1;
__id432_.shapeFriction = 0.2;
__id432_.shapeGroupIndex = 0;
__id432_.shapeIsSensor = false;
__id432_.shapeMaskBits = "0xFFFF";
__id432_.shapeRestitution = 0;
try {
__id432_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id443__Nivel10World_Capa1_1(){
try {
__id443_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id443_.bodyAllowSleep = true;
__id443_.bodyAngularDamping = 0;
__id443_.bodyApplyGravity = true;
__id443_.bodyFixedRotation = false;
__id443_.bodyIsBullet = false;
__id443_.bodyIsSleeping = false;
__id443_.bodyIsStatic = true;
__id443_.bodyLinearDamping = 0;
__id443_.shapeCategoryBits = "0x0001";
__id443_.shapeDensity = 1;
__id443_.shapeFriction = 0.2;
__id443_.shapeGroupIndex = 0;
__id443_.shapeIsSensor = false;
__id443_.shapeMaskBits = "0xFFFF";
__id443_.shapeRestitution = 0;
try {
__id443_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id437__Nivel10World_Capa1_1(){
try {
__id437_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id437_.bodyAllowSleep = true;
__id437_.bodyAngularDamping = 0;
__id437_.bodyApplyGravity = true;
__id437_.bodyFixedRotation = false;
__id437_.bodyIsBullet = false;
__id437_.bodyIsSleeping = false;
__id437_.bodyIsStatic = true;
__id437_.bodyLinearDamping = 0;
__id437_.shapeCategoryBits = "0x0001";
__id437_.shapeDensity = 1;
__id437_.shapeFriction = 0.2;
__id437_.shapeGroupIndex = 0;
__id437_.shapeIsSensor = false;
__id437_.shapeMaskBits = "0xFFFF";
__id437_.shapeRestitution = 0;
try {
__id437_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 195
//Nivel11View (Nivel11View)
package {
import wck.*;
public dynamic class Nivel11View extends View {
}
}//package
Section 196
//Nivel11World (Nivel11World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel11World extends World {
public var __id422_:jelly_chivato;
public var __id423_:jelly_chivato;
public var __id424_:jelly_marco_colision800x600;
public var __id425_:meta;
public var __id426_:meta;
public var __id427_:jelly_triangulo_equilatero;
public function Nivel11World(){
__setProp___id425__Nivel11World_Capa1_1();
__setProp___id422__Nivel11World_Capa1_1();
__setProp___id423__Nivel11World_Capa1_1();
__setProp___id427__Nivel11World_Capa1_1();
__setProp___id426__Nivel11World_Capa1_1();
__setProp___id424__Nivel11World_Capa1_1();
}
function __setProp___id425__Nivel11World_Capa1_1(){
try {
__id425_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id425_.bodyAllowSleep = true;
__id425_.bodyAngularDamping = 0;
__id425_.bodyApplyGravity = false;
__id425_.bodyFixedRotation = false;
__id425_.bodyIsBullet = false;
__id425_.bodyIsSleeping = false;
__id425_.bodyIsStatic = true;
__id425_.bodyLinearDamping = 0;
__id425_.shapeCategoryBits = "0x0001";
__id425_.shapeDensity = 1;
__id425_.shapeFriction = 0.2;
__id425_.shapeGroupIndex = 0;
__id425_.shapeIsSensor = true;
__id425_.shapeMaskBits = "0xFFFF";
__id425_.shapeRestitution = 0;
__id425_.validGoalBody = "jelly_rectangulo";
try {
__id425_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id422__Nivel11World_Capa1_1(){
try {
__id422_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id422_.nombre_figura = "jelly_rectangulo";
try {
__id422_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id427__Nivel11World_Capa1_1(){
try {
__id427_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id427_.bodyAllowSleep = true;
__id427_.bodyAngularDamping = 0;
__id427_.bodyApplyGravity = true;
__id427_.bodyFixedRotation = false;
__id427_.bodyIsBullet = false;
__id427_.bodyIsSleeping = false;
__id427_.bodyIsStatic = false;
__id427_.bodyLinearDamping = 0;
__id427_.shapeCategoryBits = "0x0001";
__id427_.shapeDensity = 10;
__id427_.shapeFriction = 0.2;
__id427_.shapeGroupIndex = 0;
__id427_.shapeIsSensor = false;
__id427_.shapeMaskBits = "0xFFFF";
__id427_.shapeRestitution = 0;
try {
__id427_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id424__Nivel11World_Capa1_1(){
try {
__id424_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id424_.bodyAllowSleep = true;
__id424_.bodyAngularDamping = 0;
__id424_.bodyApplyGravity = true;
__id424_.bodyFixedRotation = false;
__id424_.bodyIsBullet = false;
__id424_.bodyIsSleeping = true;
__id424_.bodyIsStatic = true;
__id424_.bodyLinearDamping = 0;
__id424_.shapeCategoryBits = "0x0001";
__id424_.shapeDensity = 1;
__id424_.shapeFriction = 0.2;
__id424_.shapeGroupIndex = 0;
__id424_.shapeIsSensor = false;
__id424_.shapeMaskBits = "0xFFFF";
__id424_.shapeRestitution = 0;
try {
__id424_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id426__Nivel11World_Capa1_1(){
try {
__id426_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id426_.bodyAllowSleep = true;
__id426_.bodyAngularDamping = 0;
__id426_.bodyApplyGravity = false;
__id426_.bodyFixedRotation = false;
__id426_.bodyIsBullet = false;
__id426_.bodyIsSleeping = false;
__id426_.bodyIsStatic = true;
__id426_.bodyLinearDamping = 0;
__id426_.shapeCategoryBits = "0x0001";
__id426_.shapeDensity = 1;
__id426_.shapeFriction = 0.2;
__id426_.shapeGroupIndex = 0;
__id426_.shapeIsSensor = true;
__id426_.shapeMaskBits = "0xFFFF";
__id426_.shapeRestitution = 0;
__id426_.validGoalBody = "jelly_rectangulo";
try {
__id426_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id423__Nivel11World_Capa1_1(){
try {
__id423_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id423_.nombre_figura = "jelly_rectangulo";
try {
__id423_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 197
//Nivel12View (Nivel12View)
package {
import wck.*;
public dynamic class Nivel12View extends View {
}
}//package
Section 198
//Nivel12World (Nivel12World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel12World extends World {
public var __id420_:zonatregua;
public var __id410_:jelly_marco_colision800x600;
public var __id411_:meta;
public var __id412_:meta;
public function Nivel12World(){
__setProp___id410__Nivel12World_Capa1_1();
__setProp___id412__Nivel12World_Capa1_1();
__setProp___id411__Nivel12World_Capa1_1();
__setProp___id420__Nivel12World_Capa1_1();
}
function __setProp___id410__Nivel12World_Capa1_1(){
try {
__id410_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id410_.bodyAllowSleep = true;
__id410_.bodyAngularDamping = 0;
__id410_.bodyApplyGravity = true;
__id410_.bodyFixedRotation = false;
__id410_.bodyIsBullet = false;
__id410_.bodyIsSleeping = true;
__id410_.bodyIsStatic = true;
__id410_.bodyLinearDamping = 0;
__id410_.shapeCategoryBits = "0x0001";
__id410_.shapeDensity = 1;
__id410_.shapeFriction = 0.2;
__id410_.shapeGroupIndex = 0;
__id410_.shapeIsSensor = false;
__id410_.shapeMaskBits = "0xFFFF";
__id410_.shapeRestitution = 0;
try {
__id410_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id412__Nivel12World_Capa1_1(){
try {
__id412_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id412_.bodyAllowSleep = true;
__id412_.bodyAngularDamping = 0;
__id412_.bodyApplyGravity = false;
__id412_.bodyFixedRotation = false;
__id412_.bodyIsBullet = false;
__id412_.bodyIsSleeping = false;
__id412_.bodyIsStatic = true;
__id412_.bodyLinearDamping = 0;
__id412_.shapeCategoryBits = "0x0001";
__id412_.shapeDensity = 1;
__id412_.shapeFriction = 0.2;
__id412_.shapeGroupIndex = 0;
__id412_.shapeIsSensor = true;
__id412_.shapeMaskBits = "0xFFFF";
__id412_.shapeRestitution = 0;
__id412_.validGoalBody = "";
try {
__id412_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id420__Nivel12World_Capa1_1(){
try {
__id420_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id420_.bodyAllowSleep = true;
__id420_.bodyAngularDamping = 0;
__id420_.bodyApplyGravity = true;
__id420_.bodyFixedRotation = false;
__id420_.bodyIsBullet = false;
__id420_.bodyIsSleeping = false;
__id420_.bodyIsStatic = true;
__id420_.bodyLinearDamping = 0;
__id420_.shapeCategoryBits = "0x0001";
__id420_.shapeDensity = 1;
__id420_.shapeFriction = 0.2;
__id420_.shapeGroupIndex = 0;
__id420_.shapeIsSensor = true;
__id420_.shapeMaskBits = "0xFFFF";
__id420_.shapeRestitution = 0;
try {
__id420_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id411__Nivel12World_Capa1_1(){
try {
__id411_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id411_.bodyAllowSleep = true;
__id411_.bodyAngularDamping = 0;
__id411_.bodyApplyGravity = false;
__id411_.bodyFixedRotation = false;
__id411_.bodyIsBullet = false;
__id411_.bodyIsSleeping = false;
__id411_.bodyIsStatic = true;
__id411_.bodyLinearDamping = 0;
__id411_.shapeCategoryBits = "0x0001";
__id411_.shapeDensity = 1;
__id411_.shapeFriction = 0.2;
__id411_.shapeGroupIndex = 0;
__id411_.shapeIsSensor = true;
__id411_.shapeMaskBits = "0xFFFF";
__id411_.shapeRestitution = 0;
__id411_.validGoalBody = "";
try {
__id411_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 199
//Nivel13View (Nivel13View)
package {
import wck.*;
public dynamic class Nivel13View extends View {
}
}//package
Section 200
//Nivel13World (Nivel13World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel13World extends World {
public var __id408_:jelly_triangulo_equilatero;
public var __id393_:jelly_chivato;
public var __id394_:jelly_marco_colision800x600;
public var __id395_:meta;
public var __id401_:jelly_triangulo_equilatero;
public var __id396_:meta;
public function Nivel13World(){
__setProp___id396__Nivel13World_Capa1_1();
__setProp___id395__Nivel13World_Capa1_1();
__setProp___id393__Nivel13World_Capa1_1();
__setProp___id408__Nivel13World_Capa1_1();
__setProp___id401__Nivel13World_Capa1_1();
__setProp___id394__Nivel13World_Capa1_1();
}
function __setProp___id395__Nivel13World_Capa1_1(){
try {
__id395_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id395_.bodyAllowSleep = true;
__id395_.bodyAngularDamping = 0;
__id395_.bodyApplyGravity = false;
__id395_.bodyFixedRotation = false;
__id395_.bodyIsBullet = false;
__id395_.bodyIsSleeping = false;
__id395_.bodyIsStatic = true;
__id395_.bodyLinearDamping = 0;
__id395_.shapeCategoryBits = "0x0001";
__id395_.shapeDensity = 1;
__id395_.shapeFriction = 0.2;
__id395_.shapeGroupIndex = 0;
__id395_.shapeIsSensor = true;
__id395_.shapeMaskBits = "0xFFFF";
__id395_.shapeRestitution = 0;
__id395_.validGoalBody = "";
try {
__id395_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id401__Nivel13World_Capa1_1(){
try {
__id401_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id401_.bodyAllowSleep = true;
__id401_.bodyAngularDamping = 0;
__id401_.bodyApplyGravity = true;
__id401_.bodyFixedRotation = false;
__id401_.bodyIsBullet = false;
__id401_.bodyIsSleeping = false;
__id401_.bodyIsStatic = true;
__id401_.bodyLinearDamping = 0;
__id401_.shapeCategoryBits = "0x0001";
__id401_.shapeDensity = 1;
__id401_.shapeFriction = 0.2;
__id401_.shapeGroupIndex = 0;
__id401_.shapeIsSensor = false;
__id401_.shapeMaskBits = "0xFFFF";
__id401_.shapeRestitution = 0;
try {
__id401_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id394__Nivel13World_Capa1_1(){
try {
__id394_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id394_.bodyAllowSleep = true;
__id394_.bodyAngularDamping = 0;
__id394_.bodyApplyGravity = true;
__id394_.bodyFixedRotation = false;
__id394_.bodyIsBullet = false;
__id394_.bodyIsSleeping = true;
__id394_.bodyIsStatic = true;
__id394_.bodyLinearDamping = 0;
__id394_.shapeCategoryBits = "0x0001";
__id394_.shapeDensity = 1;
__id394_.shapeFriction = 0.2;
__id394_.shapeGroupIndex = 0;
__id394_.shapeIsSensor = false;
__id394_.shapeMaskBits = "0xFFFF";
__id394_.shapeRestitution = 0;
try {
__id394_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id396__Nivel13World_Capa1_1(){
try {
__id396_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id396_.bodyAllowSleep = true;
__id396_.bodyAngularDamping = 0;
__id396_.bodyApplyGravity = false;
__id396_.bodyFixedRotation = false;
__id396_.bodyIsBullet = false;
__id396_.bodyIsSleeping = false;
__id396_.bodyIsStatic = true;
__id396_.bodyLinearDamping = 0;
__id396_.shapeCategoryBits = "0x0001";
__id396_.shapeDensity = 1;
__id396_.shapeFriction = 0.2;
__id396_.shapeGroupIndex = 0;
__id396_.shapeIsSensor = true;
__id396_.shapeMaskBits = "0xFFFF";
__id396_.shapeRestitution = 0;
__id396_.validGoalBody = "jelly_cuadrado";
try {
__id396_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id408__Nivel13World_Capa1_1(){
try {
__id408_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id408_.bodyAllowSleep = true;
__id408_.bodyAngularDamping = 0;
__id408_.bodyApplyGravity = true;
__id408_.bodyFixedRotation = false;
__id408_.bodyIsBullet = false;
__id408_.bodyIsSleeping = false;
__id408_.bodyIsStatic = true;
__id408_.bodyLinearDamping = 0;
__id408_.shapeCategoryBits = "0x0001";
__id408_.shapeDensity = 1;
__id408_.shapeFriction = 0.2;
__id408_.shapeGroupIndex = 0;
__id408_.shapeIsSensor = false;
__id408_.shapeMaskBits = "0xFFFF";
__id408_.shapeRestitution = 0;
try {
__id408_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id393__Nivel13World_Capa1_1(){
try {
__id393_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id393_.nombre_figura = "jelly_cuadrado";
try {
__id393_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 201
//Nivel14View (Nivel14View)
package {
import wck.*;
public dynamic class Nivel14View extends View {
}
}//package
Section 202
//Nivel14World (Nivel14World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel14World extends World {
public var __id378_:meta;
public var __id390_:zonatregua;
public var __id391_:zonatregua;
public var __id376_:jelly_marco_colision800x600;
public var __id389_:zonatregua;
public var __id377_:meta;
public function Nivel14World(){
__setProp___id390__Nivel14World_Capa1_1();
__setProp___id389__Nivel14World_Capa1_1();
__setProp___id376__Nivel14World_Capa1_1();
__setProp___id391__Nivel14World_Capa1_1();
__setProp___id377__Nivel14World_Capa1_1();
__setProp___id378__Nivel14World_Capa1_1();
}
function __setProp___id378__Nivel14World_Capa1_1(){
try {
__id378_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id378_.bodyAllowSleep = true;
__id378_.bodyAngularDamping = 0;
__id378_.bodyApplyGravity = false;
__id378_.bodyFixedRotation = false;
__id378_.bodyIsBullet = false;
__id378_.bodyIsSleeping = false;
__id378_.bodyIsStatic = true;
__id378_.bodyLinearDamping = 0;
__id378_.shapeCategoryBits = "0x0001";
__id378_.shapeDensity = 1;
__id378_.shapeFriction = 0.2;
__id378_.shapeGroupIndex = 0;
__id378_.shapeIsSensor = true;
__id378_.shapeMaskBits = "0xFFFF";
__id378_.shapeRestitution = 0;
__id378_.validGoalBody = "";
try {
__id378_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id389__Nivel14World_Capa1_1(){
try {
__id389_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id389_.bodyAllowSleep = true;
__id389_.bodyAngularDamping = 0;
__id389_.bodyApplyGravity = true;
__id389_.bodyFixedRotation = false;
__id389_.bodyIsBullet = false;
__id389_.bodyIsSleeping = false;
__id389_.bodyIsStatic = true;
__id389_.bodyLinearDamping = 0;
__id389_.shapeCategoryBits = "0x0001";
__id389_.shapeDensity = 1;
__id389_.shapeFriction = 0.2;
__id389_.shapeGroupIndex = 0;
__id389_.shapeIsSensor = true;
__id389_.shapeMaskBits = "0xFFFF";
__id389_.shapeRestitution = 0;
try {
__id389_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id377__Nivel14World_Capa1_1(){
try {
__id377_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id377_.bodyAllowSleep = true;
__id377_.bodyAngularDamping = 0;
__id377_.bodyApplyGravity = false;
__id377_.bodyFixedRotation = false;
__id377_.bodyIsBullet = false;
__id377_.bodyIsSleeping = false;
__id377_.bodyIsStatic = true;
__id377_.bodyLinearDamping = 0;
__id377_.shapeCategoryBits = "0x0001";
__id377_.shapeDensity = 1;
__id377_.shapeFriction = 0.2;
__id377_.shapeGroupIndex = 0;
__id377_.shapeIsSensor = true;
__id377_.shapeMaskBits = "0xFFFF";
__id377_.shapeRestitution = 0;
__id377_.validGoalBody = "";
try {
__id377_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id391__Nivel14World_Capa1_1(){
try {
__id391_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id391_.bodyAllowSleep = true;
__id391_.bodyAngularDamping = 0;
__id391_.bodyApplyGravity = true;
__id391_.bodyFixedRotation = false;
__id391_.bodyIsBullet = false;
__id391_.bodyIsSleeping = false;
__id391_.bodyIsStatic = true;
__id391_.bodyLinearDamping = 0;
__id391_.shapeCategoryBits = "0x0001";
__id391_.shapeDensity = 1;
__id391_.shapeFriction = 0.2;
__id391_.shapeGroupIndex = 0;
__id391_.shapeIsSensor = true;
__id391_.shapeMaskBits = "0xFFFF";
__id391_.shapeRestitution = 0;
try {
__id391_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id376__Nivel14World_Capa1_1(){
try {
__id376_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id376_.bodyAllowSleep = true;
__id376_.bodyAngularDamping = 0;
__id376_.bodyApplyGravity = true;
__id376_.bodyFixedRotation = false;
__id376_.bodyIsBullet = false;
__id376_.bodyIsSleeping = true;
__id376_.bodyIsStatic = true;
__id376_.bodyLinearDamping = 0;
__id376_.shapeCategoryBits = "0x0001";
__id376_.shapeDensity = 1;
__id376_.shapeFriction = 0.2;
__id376_.shapeGroupIndex = 0;
__id376_.shapeIsSensor = false;
__id376_.shapeMaskBits = "0xFFFF";
__id376_.shapeRestitution = 0;
try {
__id376_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id390__Nivel14World_Capa1_1(){
try {
__id390_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id390_.bodyAllowSleep = true;
__id390_.bodyAngularDamping = 0;
__id390_.bodyApplyGravity = true;
__id390_.bodyFixedRotation = false;
__id390_.bodyIsBullet = false;
__id390_.bodyIsSleeping = false;
__id390_.bodyIsStatic = true;
__id390_.bodyLinearDamping = 0;
__id390_.shapeCategoryBits = "0x0001";
__id390_.shapeDensity = 1;
__id390_.shapeFriction = 0.2;
__id390_.shapeGroupIndex = 0;
__id390_.shapeIsSensor = true;
__id390_.shapeMaskBits = "0xFFFF";
__id390_.shapeRestitution = 0;
try {
__id390_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 203
//Nivel15View (Nivel15View)
package {
import wck.*;
public dynamic class Nivel15View extends View {
}
}//package
Section 204
//Nivel15World (Nivel15World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel15World extends World {
public var __id354_:jelly_circulo;
public var __id355_:jelly_circulo;
public var __id356_:jelly_circulo;
public var __id357_:jelly_circulo;
public var __id358_:muro;
public var __id347_:jelly_chivato;
public var __id359_:jelly_circulo;
public var __id348_:jelly_chivato;
public var __id349_:jelly_marco_colision800x600;
public var __id360_:jelly_circulo;
public var __id361_:jelly_circulo;
public var __id362_:muro;
public var __id351_:meta;
public var __id350_:meta;
public var __id352_:jelly_circulo;
public var __id353_:jelly_circulo;
public function Nivel15World(){
__setProp___id357__Nivel15World_Capa1_1();
__setProp___id356__Nivel15World_Capa1_1();
__setProp___id360__Nivel15World_Capa1_1();
__setProp___id353__Nivel15World_Capa1_1();
__setProp___id361__Nivel15World_Capa1_1();
__setProp___id352__Nivel15World_Capa1_1();
__setProp___id348__Nivel15World_Capa1_1();
__setProp___id347__Nivel15World_Capa1_1();
__setProp___id350__Nivel15World_Capa1_1();
__setProp___id362__Nivel15World_Capa1_1();
__setProp___id358__Nivel15World_Capa1_1();
__setProp___id355__Nivel15World_Capa1_1();
__setProp___id359__Nivel15World_Capa1_1();
__setProp___id354__Nivel15World_Capa1_1();
__setProp___id351__Nivel15World_Capa1_1();
__setProp___id349__Nivel15World_Capa1_1();
}
function __setProp___id355__Nivel15World_Capa1_1(){
try {
__id355_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id355_.bodyAllowSleep = true;
__id355_.bodyAngularDamping = 0;
__id355_.bodyApplyGravity = true;
__id355_.bodyFixedRotation = false;
__id355_.bodyIsBullet = false;
__id355_.bodyIsSleeping = false;
__id355_.bodyIsStatic = true;
__id355_.bodyLinearDamping = 0;
__id355_.shapeCategoryBits = "0x0001";
__id355_.shapeDensity = 1;
__id355_.shapeFriction = 0.2;
__id355_.shapeGroupIndex = 0;
__id355_.shapeIsSensor = false;
__id355_.shapeMaskBits = "0xFFFF";
__id355_.shapeRestitution = 0;
try {
__id355_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id349__Nivel15World_Capa1_1(){
try {
__id349_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id349_.bodyAllowSleep = true;
__id349_.bodyAngularDamping = 0;
__id349_.bodyApplyGravity = true;
__id349_.bodyFixedRotation = false;
__id349_.bodyIsBullet = false;
__id349_.bodyIsSleeping = true;
__id349_.bodyIsStatic = true;
__id349_.bodyLinearDamping = 0;
__id349_.shapeCategoryBits = "0x0001";
__id349_.shapeDensity = 1;
__id349_.shapeFriction = 0.2;
__id349_.shapeGroupIndex = 0;
__id349_.shapeIsSensor = false;
__id349_.shapeMaskBits = "0xFFFF";
__id349_.shapeRestitution = 0;
try {
__id349_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id352__Nivel15World_Capa1_1(){
try {
__id352_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id352_.bodyAllowSleep = true;
__id352_.bodyAngularDamping = 0;
__id352_.bodyApplyGravity = true;
__id352_.bodyFixedRotation = false;
__id352_.bodyIsBullet = false;
__id352_.bodyIsSleeping = false;
__id352_.bodyIsStatic = true;
__id352_.bodyLinearDamping = 0;
__id352_.shapeCategoryBits = "0x0001";
__id352_.shapeDensity = 1;
__id352_.shapeFriction = 0.2;
__id352_.shapeGroupIndex = 0;
__id352_.shapeIsSensor = false;
__id352_.shapeMaskBits = "0xFFFF";
__id352_.shapeRestitution = 0;
try {
__id352_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id357__Nivel15World_Capa1_1(){
try {
__id357_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id357_.bodyAllowSleep = true;
__id357_.bodyAngularDamping = 0;
__id357_.bodyApplyGravity = true;
__id357_.bodyFixedRotation = false;
__id357_.bodyIsBullet = false;
__id357_.bodyIsSleeping = false;
__id357_.bodyIsStatic = true;
__id357_.bodyLinearDamping = 0;
__id357_.shapeCategoryBits = "0x0001";
__id357_.shapeDensity = 1;
__id357_.shapeFriction = 0.2;
__id357_.shapeGroupIndex = 0;
__id357_.shapeIsSensor = false;
__id357_.shapeMaskBits = "0xFFFF";
__id357_.shapeRestitution = 0;
try {
__id357_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id360__Nivel15World_Capa1_1(){
try {
__id360_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id360_.bodyAllowSleep = true;
__id360_.bodyAngularDamping = 0;
__id360_.bodyApplyGravity = true;
__id360_.bodyFixedRotation = false;
__id360_.bodyIsBullet = false;
__id360_.bodyIsSleeping = false;
__id360_.bodyIsStatic = true;
__id360_.bodyLinearDamping = 0;
__id360_.shapeCategoryBits = "0x0001";
__id360_.shapeDensity = 1;
__id360_.shapeFriction = 0.2;
__id360_.shapeGroupIndex = 0;
__id360_.shapeIsSensor = false;
__id360_.shapeMaskBits = "0xFFFF";
__id360_.shapeRestitution = 0;
try {
__id360_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id354__Nivel15World_Capa1_1(){
try {
__id354_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id354_.bodyAllowSleep = true;
__id354_.bodyAngularDamping = 0;
__id354_.bodyApplyGravity = true;
__id354_.bodyFixedRotation = false;
__id354_.bodyIsBullet = false;
__id354_.bodyIsSleeping = false;
__id354_.bodyIsStatic = true;
__id354_.bodyLinearDamping = 0;
__id354_.shapeCategoryBits = "0x0001";
__id354_.shapeDensity = 1;
__id354_.shapeFriction = 0.2;
__id354_.shapeGroupIndex = 0;
__id354_.shapeIsSensor = false;
__id354_.shapeMaskBits = "0xFFFF";
__id354_.shapeRestitution = 0;
try {
__id354_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id348__Nivel15World_Capa1_1(){
try {
__id348_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id348_.nombre_figura = "jelly_circulo";
try {
__id348_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id351__Nivel15World_Capa1_1(){
try {
__id351_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id351_.bodyAllowSleep = true;
__id351_.bodyAngularDamping = 0;
__id351_.bodyApplyGravity = false;
__id351_.bodyFixedRotation = false;
__id351_.bodyIsBullet = false;
__id351_.bodyIsSleeping = false;
__id351_.bodyIsStatic = true;
__id351_.bodyLinearDamping = 0;
__id351_.shapeCategoryBits = "0x0001";
__id351_.shapeDensity = 1;
__id351_.shapeFriction = 0.2;
__id351_.shapeGroupIndex = 0;
__id351_.shapeIsSensor = true;
__id351_.shapeMaskBits = "0xFFFF";
__id351_.shapeRestitution = 0;
__id351_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id351_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id359__Nivel15World_Capa1_1(){
try {
__id359_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id359_.bodyAllowSleep = true;
__id359_.bodyAngularDamping = 0;
__id359_.bodyApplyGravity = true;
__id359_.bodyFixedRotation = false;
__id359_.bodyIsBullet = false;
__id359_.bodyIsSleeping = false;
__id359_.bodyIsStatic = true;
__id359_.bodyLinearDamping = 0;
__id359_.shapeCategoryBits = "0x0001";
__id359_.shapeDensity = 1;
__id359_.shapeFriction = 0.2;
__id359_.shapeGroupIndex = 0;
__id359_.shapeIsSensor = false;
__id359_.shapeMaskBits = "0xFFFF";
__id359_.shapeRestitution = 0;
try {
__id359_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id362__Nivel15World_Capa1_1(){
try {
__id362_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id362_.bodyAllowSleep = true;
__id362_.bodyAngularDamping = 0;
__id362_.bodyApplyGravity = true;
__id362_.bodyFixedRotation = false;
__id362_.bodyIsBullet = false;
__id362_.bodyIsSleeping = false;
__id362_.bodyIsStatic = true;
__id362_.bodyLinearDamping = 0;
__id362_.shapeCategoryBits = "0x0001";
__id362_.shapeDensity = 1;
__id362_.shapeFriction = 0.2;
__id362_.shapeGroupIndex = 0;
__id362_.shapeIsSensor = false;
__id362_.shapeMaskBits = "0xFFFF";
__id362_.shapeRestitution = 0;
try {
__id362_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id356__Nivel15World_Capa1_1(){
try {
__id356_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id356_.bodyAllowSleep = true;
__id356_.bodyAngularDamping = 0;
__id356_.bodyApplyGravity = true;
__id356_.bodyFixedRotation = false;
__id356_.bodyIsBullet = false;
__id356_.bodyIsSleeping = false;
__id356_.bodyIsStatic = true;
__id356_.bodyLinearDamping = 0;
__id356_.shapeCategoryBits = "0x0001";
__id356_.shapeDensity = 1;
__id356_.shapeFriction = 0.2;
__id356_.shapeGroupIndex = 0;
__id356_.shapeIsSensor = false;
__id356_.shapeMaskBits = "0xFFFF";
__id356_.shapeRestitution = 0;
try {
__id356_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id353__Nivel15World_Capa1_1(){
try {
__id353_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id353_.bodyAllowSleep = true;
__id353_.bodyAngularDamping = 0;
__id353_.bodyApplyGravity = true;
__id353_.bodyFixedRotation = false;
__id353_.bodyIsBullet = false;
__id353_.bodyIsSleeping = false;
__id353_.bodyIsStatic = true;
__id353_.bodyLinearDamping = 0;
__id353_.shapeCategoryBits = "0x0001";
__id353_.shapeDensity = 1;
__id353_.shapeFriction = 0.2;
__id353_.shapeGroupIndex = 0;
__id353_.shapeIsSensor = false;
__id353_.shapeMaskBits = "0xFFFF";
__id353_.shapeRestitution = 0;
try {
__id353_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id347__Nivel15World_Capa1_1(){
try {
__id347_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id347_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id347_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id350__Nivel15World_Capa1_1(){
try {
__id350_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id350_.bodyAllowSleep = true;
__id350_.bodyAngularDamping = 0;
__id350_.bodyApplyGravity = false;
__id350_.bodyFixedRotation = false;
__id350_.bodyIsBullet = false;
__id350_.bodyIsSleeping = false;
__id350_.bodyIsStatic = true;
__id350_.bodyLinearDamping = 0;
__id350_.shapeCategoryBits = "0x0001";
__id350_.shapeDensity = 1;
__id350_.shapeFriction = 0.2;
__id350_.shapeGroupIndex = 0;
__id350_.shapeIsSensor = true;
__id350_.shapeMaskBits = "0xFFFF";
__id350_.shapeRestitution = 0;
__id350_.validGoalBody = "jelly_circulo";
try {
__id350_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id358__Nivel15World_Capa1_1(){
try {
__id358_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id358_.bodyAllowSleep = true;
__id358_.bodyAngularDamping = 0;
__id358_.bodyApplyGravity = true;
__id358_.bodyFixedRotation = false;
__id358_.bodyIsBullet = false;
__id358_.bodyIsSleeping = false;
__id358_.bodyIsStatic = true;
__id358_.bodyLinearDamping = 0;
__id358_.shapeCategoryBits = "0x0001";
__id358_.shapeDensity = 1;
__id358_.shapeFriction = 0.2;
__id358_.shapeGroupIndex = 0;
__id358_.shapeIsSensor = false;
__id358_.shapeMaskBits = "0xFFFF";
__id358_.shapeRestitution = 0;
try {
__id358_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id361__Nivel15World_Capa1_1(){
try {
__id361_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id361_.bodyAllowSleep = true;
__id361_.bodyAngularDamping = 0;
__id361_.bodyApplyGravity = true;
__id361_.bodyFixedRotation = false;
__id361_.bodyIsBullet = false;
__id361_.bodyIsSleeping = false;
__id361_.bodyIsStatic = true;
__id361_.bodyLinearDamping = 0;
__id361_.shapeCategoryBits = "0x0001";
__id361_.shapeDensity = 1;
__id361_.shapeFriction = 0.2;
__id361_.shapeGroupIndex = 0;
__id361_.shapeIsSensor = false;
__id361_.shapeMaskBits = "0xFFFF";
__id361_.shapeRestitution = 0;
try {
__id361_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 205
//Nivel16View (Nivel16View)
package {
import wck.*;
public dynamic class Nivel16View extends View {
}
}//package
Section 206
//Nivel16World (Nivel16World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel16World extends World {
public var __id331_:meta;
public var __id332_:jelly_marco_colision800x600;
public var __id345_:zonatregua;
public var __id333_:jelly_triangulo_equilatero;
public var __id334_:meta;
public var __id335_:jelly_chivato;
public var __id336_:meta;
public var __id337_:jelly_triangulo_equilatero;
public var __id338_:jelly_triangulo_equilatero;
public var __id339_:jelly_triangulo_equilatero;
public function Nivel16World(){
__setProp___id339__Nivel16World_Capa1_1();
__setProp___id336__Nivel16World_Capa1_1();
__setProp___id337__Nivel16World_Capa1_1();
__setProp___id331__Nivel16World_Capa1_1();
__setProp___id332__Nivel16World_Capa1_1();
__setProp___id335__Nivel16World_Capa1_1();
__setProp___id345__Nivel16World_Capa1_1();
__setProp___id338__Nivel16World_Capa1_1();
__setProp___id333__Nivel16World_Capa1_1();
__setProp___id334__Nivel16World_Capa1_1();
}
function __setProp___id335__Nivel16World_Capa1_1(){
try {
__id335_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id335_.nombre_figura = "jelly_pentagono";
try {
__id335_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id332__Nivel16World_Capa1_1(){
try {
__id332_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id332_.bodyAllowSleep = true;
__id332_.bodyAngularDamping = 0;
__id332_.bodyApplyGravity = true;
__id332_.bodyFixedRotation = false;
__id332_.bodyIsBullet = false;
__id332_.bodyIsSleeping = true;
__id332_.bodyIsStatic = true;
__id332_.bodyLinearDamping = 0;
__id332_.shapeCategoryBits = "0x0001";
__id332_.shapeDensity = 1;
__id332_.shapeFriction = 0.2;
__id332_.shapeGroupIndex = 0;
__id332_.shapeIsSensor = false;
__id332_.shapeMaskBits = "0xFFFF";
__id332_.shapeRestitution = 0;
try {
__id332_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id337__Nivel16World_Capa1_1(){
try {
__id337_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id337_.bodyAllowSleep = true;
__id337_.bodyAngularDamping = 0;
__id337_.bodyApplyGravity = true;
__id337_.bodyFixedRotation = false;
__id337_.bodyIsBullet = false;
__id337_.bodyIsSleeping = false;
__id337_.bodyIsStatic = true;
__id337_.bodyLinearDamping = 0;
__id337_.shapeCategoryBits = "0x0001";
__id337_.shapeDensity = 1;
__id337_.shapeFriction = 0.2;
__id337_.shapeGroupIndex = 0;
__id337_.shapeIsSensor = false;
__id337_.shapeMaskBits = "0xFFFF";
__id337_.shapeRestitution = 0;
try {
__id337_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id334__Nivel16World_Capa1_1(){
try {
__id334_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id334_.bodyAllowSleep = true;
__id334_.bodyAngularDamping = 0;
__id334_.bodyApplyGravity = false;
__id334_.bodyFixedRotation = false;
__id334_.bodyIsBullet = false;
__id334_.bodyIsSleeping = false;
__id334_.bodyIsStatic = true;
__id334_.bodyLinearDamping = 0;
__id334_.shapeCategoryBits = "0x0001";
__id334_.shapeDensity = 1;
__id334_.shapeFriction = 0.2;
__id334_.shapeGroupIndex = 0;
__id334_.shapeIsSensor = true;
__id334_.shapeMaskBits = "0xFFFF";
__id334_.shapeRestitution = 0;
__id334_.validGoalBody = "";
try {
__id334_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id345__Nivel16World_Capa1_1(){
try {
__id345_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id345_.bodyAllowSleep = true;
__id345_.bodyAngularDamping = 0;
__id345_.bodyApplyGravity = true;
__id345_.bodyFixedRotation = false;
__id345_.bodyIsBullet = false;
__id345_.bodyIsSleeping = false;
__id345_.bodyIsStatic = true;
__id345_.bodyLinearDamping = 0;
__id345_.shapeCategoryBits = "0x0001";
__id345_.shapeDensity = 1;
__id345_.shapeFriction = 0.2;
__id345_.shapeGroupIndex = 0;
__id345_.shapeIsSensor = true;
__id345_.shapeMaskBits = "0xFFFF";
__id345_.shapeRestitution = 0;
try {
__id345_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id331__Nivel16World_Capa1_1(){
try {
__id331_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id331_.bodyAllowSleep = true;
__id331_.bodyAngularDamping = 0;
__id331_.bodyApplyGravity = false;
__id331_.bodyFixedRotation = false;
__id331_.bodyIsBullet = false;
__id331_.bodyIsSleeping = false;
__id331_.bodyIsStatic = true;
__id331_.bodyLinearDamping = 0;
__id331_.shapeCategoryBits = "0x0001";
__id331_.shapeDensity = 1;
__id331_.shapeFriction = 0.2;
__id331_.shapeGroupIndex = 0;
__id331_.shapeIsSensor = true;
__id331_.shapeMaskBits = "0xFFFF";
__id331_.shapeRestitution = 0;
__id331_.validGoalBody = "";
try {
__id331_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id339__Nivel16World_Capa1_1(){
try {
__id339_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id339_.bodyAllowSleep = true;
__id339_.bodyAngularDamping = 0;
__id339_.bodyApplyGravity = true;
__id339_.bodyFixedRotation = false;
__id339_.bodyIsBullet = false;
__id339_.bodyIsSleeping = false;
__id339_.bodyIsStatic = false;
__id339_.bodyLinearDamping = 0;
__id339_.shapeCategoryBits = "0x0001";
__id339_.shapeDensity = 10;
__id339_.shapeFriction = 0.2;
__id339_.shapeGroupIndex = 0;
__id339_.shapeIsSensor = false;
__id339_.shapeMaskBits = "0xFFFF";
__id339_.shapeRestitution = 0;
try {
__id339_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id336__Nivel16World_Capa1_1(){
try {
__id336_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id336_.bodyAllowSleep = true;
__id336_.bodyAngularDamping = 0;
__id336_.bodyApplyGravity = false;
__id336_.bodyFixedRotation = false;
__id336_.bodyIsBullet = false;
__id336_.bodyIsSleeping = false;
__id336_.bodyIsStatic = true;
__id336_.bodyLinearDamping = 0;
__id336_.shapeCategoryBits = "0x0001";
__id336_.shapeDensity = 1;
__id336_.shapeFriction = 0.2;
__id336_.shapeGroupIndex = 0;
__id336_.shapeIsSensor = true;
__id336_.shapeMaskBits = "0xFFFF";
__id336_.shapeRestitution = 0;
__id336_.validGoalBody = "jelly_pentagono";
try {
__id336_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id333__Nivel16World_Capa1_1(){
try {
__id333_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id333_.bodyAllowSleep = true;
__id333_.bodyAngularDamping = 0;
__id333_.bodyApplyGravity = true;
__id333_.bodyFixedRotation = false;
__id333_.bodyIsBullet = false;
__id333_.bodyIsSleeping = false;
__id333_.bodyIsStatic = true;
__id333_.bodyLinearDamping = 0;
__id333_.shapeCategoryBits = "0x0001";
__id333_.shapeDensity = 1;
__id333_.shapeFriction = 0.2;
__id333_.shapeGroupIndex = 0;
__id333_.shapeIsSensor = false;
__id333_.shapeMaskBits = "0xFFFF";
__id333_.shapeRestitution = 0;
try {
__id333_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id338__Nivel16World_Capa1_1(){
try {
__id338_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id338_.bodyAllowSleep = true;
__id338_.bodyAngularDamping = 0;
__id338_.bodyApplyGravity = true;
__id338_.bodyFixedRotation = false;
__id338_.bodyIsBullet = false;
__id338_.bodyIsSleeping = false;
__id338_.bodyIsStatic = true;
__id338_.bodyLinearDamping = 0;
__id338_.shapeCategoryBits = "0x0001";
__id338_.shapeDensity = 1;
__id338_.shapeFriction = 0.2;
__id338_.shapeGroupIndex = 0;
__id338_.shapeIsSensor = false;
__id338_.shapeMaskBits = "0xFFFF";
__id338_.shapeRestitution = 0;
try {
__id338_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 207
//Nivel17View (Nivel17View)
package {
import wck.*;
public dynamic class Nivel17View extends View {
}
}//package
Section 208
//Nivel17World (Nivel17World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel17World extends World {
public var __id311_:jelly_chivato;
public var __id323_:muro;
public var __id324_:muro;
public var __id312_:jelly_chivato;
public var __id313_:meta;
public var __id315_:meta;
public var __id314_:jelly_marco_colision800x600;
public var __id316_:jelly_chivato;
public var __id328_:muro;
public var __id329_:muro;
public var __id317_:meta;
public function Nivel17World(){
__setProp___id314__Nivel17World_Capa1_1();
__setProp___id328__Nivel17World_Capa1_1();
__setProp___id329__Nivel17World_Capa1_1();
__setProp___id323__Nivel17World_Capa1_1();
__setProp___id313__Nivel17World_Capa1_1();
__setProp___id316__Nivel17World_Capa1_1();
__setProp___id324__Nivel17World_Capa1_1();
__setProp___id312__Nivel17World_Capa1_1();
__setProp___id311__Nivel17World_Capa1_1();
__setProp___id317__Nivel17World_Capa1_1();
__setProp___id315__Nivel17World_Capa1_1();
}
function __setProp___id312__Nivel17World_Capa1_1(){
try {
__id312_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id312_.nombre_figura = "jelly_circulo";
try {
__id312_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id323__Nivel17World_Capa1_1(){
try {
__id323_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id323_.bodyAllowSleep = true;
__id323_.bodyAngularDamping = 0;
__id323_.bodyApplyGravity = true;
__id323_.bodyFixedRotation = false;
__id323_.bodyIsBullet = false;
__id323_.bodyIsSleeping = false;
__id323_.bodyIsStatic = true;
__id323_.bodyLinearDamping = 0;
__id323_.shapeCategoryBits = "0x0001";
__id323_.shapeDensity = 1;
__id323_.shapeFriction = 0.2;
__id323_.shapeGroupIndex = 0;
__id323_.shapeIsSensor = false;
__id323_.shapeMaskBits = "0xFFFF";
__id323_.shapeRestitution = 0;
try {
__id323_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id317__Nivel17World_Capa1_1(){
try {
__id317_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id317_.bodyAllowSleep = true;
__id317_.bodyAngularDamping = 0;
__id317_.bodyApplyGravity = false;
__id317_.bodyFixedRotation = false;
__id317_.bodyIsBullet = false;
__id317_.bodyIsSleeping = false;
__id317_.bodyIsStatic = true;
__id317_.bodyLinearDamping = 0;
__id317_.shapeCategoryBits = "0x0001";
__id317_.shapeDensity = 1;
__id317_.shapeFriction = 0.2;
__id317_.shapeGroupIndex = 0;
__id317_.shapeIsSensor = true;
__id317_.shapeMaskBits = "0xFFFF";
__id317_.shapeRestitution = 0;
__id317_.validGoalBody = "jelly_cuadrado";
try {
__id317_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id328__Nivel17World_Capa1_1(){
try {
__id328_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id328_.bodyAllowSleep = true;
__id328_.bodyAngularDamping = 0;
__id328_.bodyApplyGravity = true;
__id328_.bodyFixedRotation = false;
__id328_.bodyIsBullet = false;
__id328_.bodyIsSleeping = false;
__id328_.bodyIsStatic = true;
__id328_.bodyLinearDamping = 0;
__id328_.shapeCategoryBits = "0x0001";
__id328_.shapeDensity = 1;
__id328_.shapeFriction = 0.2;
__id328_.shapeGroupIndex = 0;
__id328_.shapeIsSensor = false;
__id328_.shapeMaskBits = "0xFFFF";
__id328_.shapeRestitution = 0;
try {
__id328_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id314__Nivel17World_Capa1_1(){
try {
__id314_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id314_.bodyAllowSleep = true;
__id314_.bodyAngularDamping = 0;
__id314_.bodyApplyGravity = true;
__id314_.bodyFixedRotation = false;
__id314_.bodyIsBullet = false;
__id314_.bodyIsSleeping = true;
__id314_.bodyIsStatic = true;
__id314_.bodyLinearDamping = 0;
__id314_.shapeCategoryBits = "0x0001";
__id314_.shapeDensity = 1;
__id314_.shapeFriction = 0.2;
__id314_.shapeGroupIndex = 0;
__id314_.shapeIsSensor = false;
__id314_.shapeMaskBits = "0xFFFF";
__id314_.shapeRestitution = 0;
try {
__id314_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id311__Nivel17World_Capa1_1(){
try {
__id311_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id311_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id311_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id316__Nivel17World_Capa1_1(){
try {
__id316_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id316_.nombre_figura = "jelly_cuadrado";
try {
__id316_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id313__Nivel17World_Capa1_1(){
try {
__id313_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id313_.bodyAllowSleep = true;
__id313_.bodyAngularDamping = 0;
__id313_.bodyApplyGravity = false;
__id313_.bodyFixedRotation = false;
__id313_.bodyIsBullet = false;
__id313_.bodyIsSleeping = false;
__id313_.bodyIsStatic = true;
__id313_.bodyLinearDamping = 0;
__id313_.shapeCategoryBits = "0x0001";
__id313_.shapeDensity = 1;
__id313_.shapeFriction = 0.2;
__id313_.shapeGroupIndex = 0;
__id313_.shapeIsSensor = true;
__id313_.shapeMaskBits = "0xFFFF";
__id313_.shapeRestitution = 0;
__id313_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id313_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id324__Nivel17World_Capa1_1(){
try {
__id324_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id324_.bodyAllowSleep = true;
__id324_.bodyAngularDamping = 0;
__id324_.bodyApplyGravity = true;
__id324_.bodyFixedRotation = false;
__id324_.bodyIsBullet = false;
__id324_.bodyIsSleeping = false;
__id324_.bodyIsStatic = true;
__id324_.bodyLinearDamping = 0;
__id324_.shapeCategoryBits = "0x0001";
__id324_.shapeDensity = 1;
__id324_.shapeFriction = 0.2;
__id324_.shapeGroupIndex = 0;
__id324_.shapeIsSensor = false;
__id324_.shapeMaskBits = "0xFFFF";
__id324_.shapeRestitution = 0;
try {
__id324_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id315__Nivel17World_Capa1_1(){
try {
__id315_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id315_.bodyAllowSleep = true;
__id315_.bodyAngularDamping = 0;
__id315_.bodyApplyGravity = false;
__id315_.bodyFixedRotation = false;
__id315_.bodyIsBullet = false;
__id315_.bodyIsSleeping = false;
__id315_.bodyIsStatic = true;
__id315_.bodyLinearDamping = 0;
__id315_.shapeCategoryBits = "0x0001";
__id315_.shapeDensity = 1;
__id315_.shapeFriction = 0.2;
__id315_.shapeGroupIndex = 0;
__id315_.shapeIsSensor = true;
__id315_.shapeMaskBits = "0xFFFF";
__id315_.shapeRestitution = 0;
__id315_.validGoalBody = "jelly_circulo";
try {
__id315_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id329__Nivel17World_Capa1_1(){
try {
__id329_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id329_.bodyAllowSleep = true;
__id329_.bodyAngularDamping = 0;
__id329_.bodyApplyGravity = true;
__id329_.bodyFixedRotation = false;
__id329_.bodyIsBullet = false;
__id329_.bodyIsSleeping = false;
__id329_.bodyIsStatic = true;
__id329_.bodyLinearDamping = 0;
__id329_.shapeCategoryBits = "0x0001";
__id329_.shapeDensity = 1;
__id329_.shapeFriction = 0.2;
__id329_.shapeGroupIndex = 0;
__id329_.shapeIsSensor = false;
__id329_.shapeMaskBits = "0xFFFF";
__id329_.shapeRestitution = 0;
try {
__id329_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 209
//Nivel18View (Nivel18View)
package {
import wck.*;
public dynamic class Nivel18View extends View {
}
}//package
Section 210
//Nivel18World (Nivel18World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel18World extends World {
public var __id290_:jelly_marco_colision800x600;
public var __id291_:muro;
public var __id292_:meta;
public var __id293_:meta;
public var __id294_:meta;
public var __id305_:zonatregua;
public var __id306_:zonatregua;
public var __id307_:zonatregua;
public var __id308_:zonatregua;
public var __id309_:zonatregua;
public function Nivel18World(){
__setProp___id293__Nivel18World_Capa1_1();
__setProp___id292__Nivel18World_Capa1_1();
__setProp___id305__Nivel18World_Capa1_1();
__setProp___id307__Nivel18World_Capa1_1();
__setProp___id294__Nivel18World_Capa1_1();
__setProp___id306__Nivel18World_Capa1_1();
__setProp___id309__Nivel18World_Capa1_1();
__setProp___id291__Nivel18World_Capa1_1();
__setProp___id290__Nivel18World_Capa1_1();
__setProp___id308__Nivel18World_Capa1_1();
}
function __setProp___id294__Nivel18World_Capa1_1(){
try {
__id294_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id294_.bodyAllowSleep = true;
__id294_.bodyAngularDamping = 0;
__id294_.bodyApplyGravity = false;
__id294_.bodyFixedRotation = false;
__id294_.bodyIsBullet = false;
__id294_.bodyIsSleeping = false;
__id294_.bodyIsStatic = true;
__id294_.bodyLinearDamping = 0;
__id294_.shapeCategoryBits = "0x0001";
__id294_.shapeDensity = 1;
__id294_.shapeFriction = 0.2;
__id294_.shapeGroupIndex = 0;
__id294_.shapeIsSensor = true;
__id294_.shapeMaskBits = "0xFFFF";
__id294_.shapeRestitution = 0;
__id294_.validGoalBody = "";
try {
__id294_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id308__Nivel18World_Capa1_1(){
try {
__id308_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id308_.bodyAllowSleep = true;
__id308_.bodyAngularDamping = 0;
__id308_.bodyApplyGravity = true;
__id308_.bodyFixedRotation = false;
__id308_.bodyIsBullet = false;
__id308_.bodyIsSleeping = false;
__id308_.bodyIsStatic = true;
__id308_.bodyLinearDamping = 0;
__id308_.shapeCategoryBits = "0x0001";
__id308_.shapeDensity = 1;
__id308_.shapeFriction = 0.2;
__id308_.shapeGroupIndex = 0;
__id308_.shapeIsSensor = true;
__id308_.shapeMaskBits = "0xFFFF";
__id308_.shapeRestitution = 0;
try {
__id308_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id305__Nivel18World_Capa1_1(){
try {
__id305_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id305_.bodyAllowSleep = true;
__id305_.bodyAngularDamping = 0;
__id305_.bodyApplyGravity = true;
__id305_.bodyFixedRotation = false;
__id305_.bodyIsBullet = false;
__id305_.bodyIsSleeping = false;
__id305_.bodyIsStatic = true;
__id305_.bodyLinearDamping = 0;
__id305_.shapeCategoryBits = "0x0001";
__id305_.shapeDensity = 1;
__id305_.shapeFriction = 0.2;
__id305_.shapeGroupIndex = 0;
__id305_.shapeIsSensor = true;
__id305_.shapeMaskBits = "0xFFFF";
__id305_.shapeRestitution = 0;
try {
__id305_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id291__Nivel18World_Capa1_1(){
try {
__id291_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id291_.bodyAllowSleep = true;
__id291_.bodyAngularDamping = 0;
__id291_.bodyApplyGravity = true;
__id291_.bodyFixedRotation = false;
__id291_.bodyIsBullet = false;
__id291_.bodyIsSleeping = false;
__id291_.bodyIsStatic = true;
__id291_.bodyLinearDamping = 0;
__id291_.shapeCategoryBits = "0x0001";
__id291_.shapeDensity = 1;
__id291_.shapeFriction = 0.2;
__id291_.shapeGroupIndex = 0;
__id291_.shapeIsSensor = false;
__id291_.shapeMaskBits = "0xFFFF";
__id291_.shapeRestitution = 0;
try {
__id291_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id293__Nivel18World_Capa1_1(){
try {
__id293_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id293_.bodyAllowSleep = true;
__id293_.bodyAngularDamping = 0;
__id293_.bodyApplyGravity = false;
__id293_.bodyFixedRotation = false;
__id293_.bodyIsBullet = false;
__id293_.bodyIsSleeping = false;
__id293_.bodyIsStatic = true;
__id293_.bodyLinearDamping = 0;
__id293_.shapeCategoryBits = "0x0001";
__id293_.shapeDensity = 1;
__id293_.shapeFriction = 0.2;
__id293_.shapeGroupIndex = 0;
__id293_.shapeIsSensor = true;
__id293_.shapeMaskBits = "0xFFFF";
__id293_.shapeRestitution = 0;
__id293_.validGoalBody = "";
try {
__id293_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id307__Nivel18World_Capa1_1(){
try {
__id307_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id307_.bodyAllowSleep = true;
__id307_.bodyAngularDamping = 0;
__id307_.bodyApplyGravity = true;
__id307_.bodyFixedRotation = false;
__id307_.bodyIsBullet = false;
__id307_.bodyIsSleeping = false;
__id307_.bodyIsStatic = true;
__id307_.bodyLinearDamping = 0;
__id307_.shapeCategoryBits = "0x0001";
__id307_.shapeDensity = 1;
__id307_.shapeFriction = 0.2;
__id307_.shapeGroupIndex = 0;
__id307_.shapeIsSensor = true;
__id307_.shapeMaskBits = "0xFFFF";
__id307_.shapeRestitution = 0;
try {
__id307_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id290__Nivel18World_Capa1_1(){
try {
__id290_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id290_.bodyAllowSleep = true;
__id290_.bodyAngularDamping = 0;
__id290_.bodyApplyGravity = true;
__id290_.bodyFixedRotation = false;
__id290_.bodyIsBullet = false;
__id290_.bodyIsSleeping = true;
__id290_.bodyIsStatic = true;
__id290_.bodyLinearDamping = 0;
__id290_.shapeCategoryBits = "0x0001";
__id290_.shapeDensity = 1;
__id290_.shapeFriction = 0.2;
__id290_.shapeGroupIndex = 0;
__id290_.shapeIsSensor = false;
__id290_.shapeMaskBits = "0xFFFF";
__id290_.shapeRestitution = 0;
try {
__id290_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id292__Nivel18World_Capa1_1(){
try {
__id292_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id292_.bodyAllowSleep = true;
__id292_.bodyAngularDamping = 0;
__id292_.bodyApplyGravity = false;
__id292_.bodyFixedRotation = false;
__id292_.bodyIsBullet = false;
__id292_.bodyIsSleeping = false;
__id292_.bodyIsStatic = true;
__id292_.bodyLinearDamping = 0;
__id292_.shapeCategoryBits = "0x0001";
__id292_.shapeDensity = 1;
__id292_.shapeFriction = 0.2;
__id292_.shapeGroupIndex = 0;
__id292_.shapeIsSensor = true;
__id292_.shapeMaskBits = "0xFFFF";
__id292_.shapeRestitution = 0;
__id292_.validGoalBody = "";
try {
__id292_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id309__Nivel18World_Capa1_1(){
try {
__id309_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id309_.bodyAllowSleep = true;
__id309_.bodyAngularDamping = 0;
__id309_.bodyApplyGravity = true;
__id309_.bodyFixedRotation = false;
__id309_.bodyIsBullet = false;
__id309_.bodyIsSleeping = false;
__id309_.bodyIsStatic = true;
__id309_.bodyLinearDamping = 0;
__id309_.shapeCategoryBits = "0x0001";
__id309_.shapeDensity = 1;
__id309_.shapeFriction = 0.2;
__id309_.shapeGroupIndex = 0;
__id309_.shapeIsSensor = true;
__id309_.shapeMaskBits = "0xFFFF";
__id309_.shapeRestitution = 0;
try {
__id309_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id306__Nivel18World_Capa1_1(){
try {
__id306_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id306_.bodyAllowSleep = true;
__id306_.bodyAngularDamping = 0;
__id306_.bodyApplyGravity = true;
__id306_.bodyFixedRotation = false;
__id306_.bodyIsBullet = false;
__id306_.bodyIsSleeping = false;
__id306_.bodyIsStatic = true;
__id306_.bodyLinearDamping = 0;
__id306_.shapeCategoryBits = "0x0001";
__id306_.shapeDensity = 1;
__id306_.shapeFriction = 0.2;
__id306_.shapeGroupIndex = 0;
__id306_.shapeIsSensor = true;
__id306_.shapeMaskBits = "0xFFFF";
__id306_.shapeRestitution = 0;
try {
__id306_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 211
//Nivel19View (Nivel19View)
package {
import wck.*;
public dynamic class Nivel19View extends View {
}
}//package
Section 212
//Nivel19World (Nivel19World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel19World extends World {
public var __id280_:muro;
public var __id270_:jelly_chivato;
public var __id271_:jelly_chivato;
public var __id272_:jelly_chivato;
public var __id285_:muro;
public var __id273_:jelly_marco_colision800x600;
public var __id274_:meta;
public var __id286_:muro;
public var __id287_:muro;
public var __id276_:meta;
public var __id288_:muro;
public var __id275_:meta;
public function Nivel19World(){
__setProp___id285__Nivel19World_Capa1_1();
__setProp___id271__Nivel19World_Capa1_1();
__setProp___id273__Nivel19World_Capa1_1();
__setProp___id270__Nivel19World_Capa1_1();
__setProp___id286__Nivel19World_Capa1_1();
__setProp___id276__Nivel19World_Capa1_1();
__setProp___id272__Nivel19World_Capa1_1();
__setProp___id280__Nivel19World_Capa1_1();
__setProp___id287__Nivel19World_Capa1_1();
__setProp___id274__Nivel19World_Capa1_1();
__setProp___id275__Nivel19World_Capa1_1();
__setProp___id288__Nivel19World_Capa1_1();
}
function __setProp___id274__Nivel19World_Capa1_1(){
try {
__id274_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id274_.bodyAllowSleep = true;
__id274_.bodyAngularDamping = 0;
__id274_.bodyApplyGravity = false;
__id274_.bodyFixedRotation = false;
__id274_.bodyIsBullet = false;
__id274_.bodyIsSleeping = false;
__id274_.bodyIsStatic = true;
__id274_.bodyLinearDamping = 0;
__id274_.shapeCategoryBits = "0x0001";
__id274_.shapeDensity = 1;
__id274_.shapeFriction = 0.2;
__id274_.shapeGroupIndex = 0;
__id274_.shapeIsSensor = true;
__id274_.shapeMaskBits = "0xFFFF";
__id274_.shapeRestitution = 0;
__id274_.validGoalBody = "jelly_rectangulo";
try {
__id274_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id285__Nivel19World_Capa1_1(){
try {
__id285_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id285_.bodyAllowSleep = true;
__id285_.bodyAngularDamping = 0;
__id285_.bodyApplyGravity = true;
__id285_.bodyFixedRotation = false;
__id285_.bodyIsBullet = false;
__id285_.bodyIsSleeping = false;
__id285_.bodyIsStatic = true;
__id285_.bodyLinearDamping = 0;
__id285_.shapeCategoryBits = "0x0001";
__id285_.shapeDensity = 1;
__id285_.shapeFriction = 0.2;
__id285_.shapeGroupIndex = 0;
__id285_.shapeIsSensor = false;
__id285_.shapeMaskBits = "0xFFFF";
__id285_.shapeRestitution = 0;
try {
__id285_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id271__Nivel19World_Capa1_1(){
try {
__id271_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id271_.nombre_figura = "jelly_circulo";
try {
__id271_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id276__Nivel19World_Capa1_1(){
try {
__id276_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id276_.bodyAllowSleep = true;
__id276_.bodyAngularDamping = 0;
__id276_.bodyApplyGravity = false;
__id276_.bodyFixedRotation = false;
__id276_.bodyIsBullet = false;
__id276_.bodyIsSleeping = false;
__id276_.bodyIsStatic = true;
__id276_.bodyLinearDamping = 0;
__id276_.shapeCategoryBits = "0x0001";
__id276_.shapeDensity = 1;
__id276_.shapeFriction = 0.2;
__id276_.shapeGroupIndex = 0;
__id276_.shapeIsSensor = true;
__id276_.shapeMaskBits = "0xFFFF";
__id276_.shapeRestitution = 0;
__id276_.validGoalBody = "jelly_circulo";
try {
__id276_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id287__Nivel19World_Capa1_1(){
try {
__id287_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id287_.bodyAllowSleep = true;
__id287_.bodyAngularDamping = 0;
__id287_.bodyApplyGravity = true;
__id287_.bodyFixedRotation = false;
__id287_.bodyIsBullet = false;
__id287_.bodyIsSleeping = false;
__id287_.bodyIsStatic = true;
__id287_.bodyLinearDamping = 0;
__id287_.shapeCategoryBits = "0x0001";
__id287_.shapeDensity = 1;
__id287_.shapeFriction = 0.2;
__id287_.shapeGroupIndex = 0;
__id287_.shapeIsSensor = false;
__id287_.shapeMaskBits = "0xFFFF";
__id287_.shapeRestitution = 0;
try {
__id287_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id273__Nivel19World_Capa1_1(){
try {
__id273_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id273_.bodyAllowSleep = true;
__id273_.bodyAngularDamping = 0;
__id273_.bodyApplyGravity = true;
__id273_.bodyFixedRotation = false;
__id273_.bodyIsBullet = false;
__id273_.bodyIsSleeping = true;
__id273_.bodyIsStatic = true;
__id273_.bodyLinearDamping = 0;
__id273_.shapeCategoryBits = "0x0001";
__id273_.shapeDensity = 1;
__id273_.shapeFriction = 0.2;
__id273_.shapeGroupIndex = 0;
__id273_.shapeIsSensor = false;
__id273_.shapeMaskBits = "0xFFFF";
__id273_.shapeRestitution = 0;
try {
__id273_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id270__Nivel19World_Capa1_1(){
try {
__id270_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id270_.nombre_figura = "jelly_rectangulo";
try {
__id270_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id275__Nivel19World_Capa1_1(){
try {
__id275_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id275_.bodyAllowSleep = true;
__id275_.bodyAngularDamping = 0;
__id275_.bodyApplyGravity = false;
__id275_.bodyFixedRotation = false;
__id275_.bodyIsBullet = false;
__id275_.bodyIsSleeping = false;
__id275_.bodyIsStatic = true;
__id275_.bodyLinearDamping = 0;
__id275_.shapeCategoryBits = "0x0001";
__id275_.shapeDensity = 1;
__id275_.shapeFriction = 0.2;
__id275_.shapeGroupIndex = 0;
__id275_.shapeIsSensor = true;
__id275_.shapeMaskBits = "0xFFFF";
__id275_.shapeRestitution = 0;
__id275_.validGoalBody = "jelly_rectangulo";
try {
__id275_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id286__Nivel19World_Capa1_1(){
try {
__id286_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id286_.bodyAllowSleep = true;
__id286_.bodyAngularDamping = 0;
__id286_.bodyApplyGravity = true;
__id286_.bodyFixedRotation = false;
__id286_.bodyIsBullet = false;
__id286_.bodyIsSleeping = false;
__id286_.bodyIsStatic = true;
__id286_.bodyLinearDamping = 0;
__id286_.shapeCategoryBits = "0x0001";
__id286_.shapeDensity = 1;
__id286_.shapeFriction = 0.2;
__id286_.shapeGroupIndex = 0;
__id286_.shapeIsSensor = false;
__id286_.shapeMaskBits = "0xFFFF";
__id286_.shapeRestitution = 0;
try {
__id286_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id272__Nivel19World_Capa1_1(){
try {
__id272_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id272_.nombre_figura = "jelly_rectangulo";
try {
__id272_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id280__Nivel19World_Capa1_1(){
try {
__id280_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id280_.bodyAllowSleep = true;
__id280_.bodyAngularDamping = 0;
__id280_.bodyApplyGravity = true;
__id280_.bodyFixedRotation = false;
__id280_.bodyIsBullet = false;
__id280_.bodyIsSleeping = false;
__id280_.bodyIsStatic = true;
__id280_.bodyLinearDamping = 0;
__id280_.shapeCategoryBits = "0x0001";
__id280_.shapeDensity = 1;
__id280_.shapeFriction = 0.2;
__id280_.shapeGroupIndex = 0;
__id280_.shapeIsSensor = false;
__id280_.shapeMaskBits = "0xFFFF";
__id280_.shapeRestitution = 0;
try {
__id280_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id288__Nivel19World_Capa1_1(){
try {
__id288_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id288_.bodyAllowSleep = true;
__id288_.bodyAngularDamping = 0;
__id288_.bodyApplyGravity = true;
__id288_.bodyFixedRotation = false;
__id288_.bodyIsBullet = false;
__id288_.bodyIsSleeping = false;
__id288_.bodyIsStatic = true;
__id288_.bodyLinearDamping = 0;
__id288_.shapeCategoryBits = "0x0001";
__id288_.shapeDensity = 1;
__id288_.shapeFriction = 0.2;
__id288_.shapeGroupIndex = 0;
__id288_.shapeIsSensor = false;
__id288_.shapeMaskBits = "0xFFFF";
__id288_.shapeRestitution = 0;
try {
__id288_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 213
//Nivel1View (Nivel1View)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel1View extends View {
public var __id546_:Nivel1World;
public function Nivel1View(){
__setProp___id546__Nivel1View_Capa1_1();
}
function __setProp___id546__Nivel1View_Capa1_1(){
try {
__id546_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id546_.boundsBottom = -10000000000;
__id546_.boundsLeft = -10000000000;
__id546_.boundsRight = 10000000000;
__id546_.boundsTop = 10000000000;
__id546_.doSleep = true;
__id546_.gravityRadial = 0;
__id546_.gravityX = 0;
__id546_.gravityY = 30;
__id546_.iterations = 30;
__id546_.keepCenteredOn = "";
__id546_.scale = 40;
__id546_.timeStep = 0.025;
try {
__id546_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 214
//Nivel1World (Nivel1World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel1World extends World {
public var __id544_:meta;
public var __id545_:jelly_trapecio_isosceles;
public function Nivel1World(){
__setProp___id545__Nivel1World_Capa1_1();
__setProp___id544__Nivel1World_Capa1_1();
__setProp_marco_Nivel1World_Capa1_1();
}
function __setProp_marco_Nivel1World_Capa1_1(){
try {
marco["componentInspectorSetting"] = true;
} catch(e:Error) {
};
marco.bodyAllowSleep = true;
marco.bodyAngularDamping = 0;
marco.bodyApplyGravity = true;
marco.bodyFixedRotation = false;
marco.bodyIsBullet = false;
marco.bodyIsSleeping = true;
marco.bodyIsStatic = true;
marco.bodyLinearDamping = 0;
marco.shapeCategoryBits = "0x0001";
marco.shapeDensity = 1;
marco.shapeFriction = 0.2;
marco.shapeGroupIndex = 0;
marco.shapeIsSensor = false;
marco.shapeMaskBits = "0xFFFF";
marco.shapeRestitution = 0;
try {
marco["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id544__Nivel1World_Capa1_1(){
try {
__id544_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id544_.bodyAllowSleep = true;
__id544_.bodyAngularDamping = 0;
__id544_.bodyApplyGravity = false;
__id544_.bodyFixedRotation = false;
__id544_.bodyIsBullet = false;
__id544_.bodyIsSleeping = false;
__id544_.bodyIsStatic = true;
__id544_.bodyLinearDamping = 0;
__id544_.shapeCategoryBits = "0x0001";
__id544_.shapeDensity = 1;
__id544_.shapeFriction = 0.2;
__id544_.shapeGroupIndex = 0;
__id544_.shapeIsSensor = true;
__id544_.shapeMaskBits = "0xFFFF";
__id544_.shapeRestitution = 0;
__id544_.validGoalBody = "";
try {
__id544_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id545__Nivel1World_Capa1_1(){
try {
__id545_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id545_.bodyAllowSleep = true;
__id545_.bodyAngularDamping = 0;
__id545_.bodyApplyGravity = true;
__id545_.bodyFixedRotation = false;
__id545_.bodyIsBullet = false;
__id545_.bodyIsSleeping = false;
__id545_.bodyIsStatic = false;
__id545_.bodyLinearDamping = 0;
__id545_.shapeCategoryBits = "0x0001";
__id545_.shapeDensity = 1;
__id545_.shapeFriction = 1;
__id545_.shapeGroupIndex = 0;
__id545_.shapeIsSensor = false;
__id545_.shapeMaskBits = "0xFFFF";
__id545_.shapeRestitution = 0.5;
try {
__id545_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 215
//Nivel20View (Nivel20View)
package {
import wck.*;
public dynamic class Nivel20View extends View {
}
}//package
Section 216
//Nivel20World (Nivel20World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel20World extends World {
public var __id245_:jelly_circulo;
public var __id233_:jelly_chivato;
public var __id246_:jelly_circulo;
public var __id234_:meta;
public var __id247_:jelly_circulo;
public var __id235_:jelly_marco_colision800x600;
public var __id248_:jelly_circulo;
public var __id236_:meta;
public var __id249_:jelly_circulo;
public var __id237_:jelly_chivato;
public var __id238_:jelly_chivato;
public var __id239_:meta;
public var __id250_:jelly_circulo;
public var __id251_:jelly_pentagono;
public var __id252_:jelly_pentagono;
public var __id240_:jelly_circulo;
public var __id253_:jelly_pentagono;
public var __id241_:jelly_circulo;
public var __id242_:jelly_circulo;
public var __id254_:jelly_pentagono;
public var __id255_:jelly_pentagono;
public var __id243_:jelly_circulo;
public var __id244_:jelly_circulo;
public function Nivel20World(){
__setProp___id236__Nivel20World_Capa1_1();
__setProp___id251__Nivel20World_Capa1_1();
__setProp___id240__Nivel20World_Capa1_1();
__setProp___id252__Nivel20World_Capa1_1();
__setProp___id246__Nivel20World_Capa1_1();
__setProp___id238__Nivel20World_Capa1_1();
__setProp___id243__Nivel20World_Capa1_1();
__setProp___id239__Nivel20World_Capa1_1();
__setProp___id253__Nivel20World_Capa1_1();
__setProp___id242__Nivel20World_Capa1_1();
__setProp___id234__Nivel20World_Capa1_1();
__setProp___id254__Nivel20World_Capa1_1();
__setProp___id248__Nivel20World_Capa1_1();
__setProp___id245__Nivel20World_Capa1_1();
__setProp___id235__Nivel20World_Capa1_1();
__setProp___id237__Nivel20World_Capa1_1();
__setProp___id255__Nivel20World_Capa1_1();
__setProp___id250__Nivel20World_Capa1_1();
__setProp___id249__Nivel20World_Capa1_1();
__setProp___id244__Nivel20World_Capa1_1();
__setProp___id241__Nivel20World_Capa1_1();
__setProp___id233__Nivel20World_Capa1_1();
__setProp___id247__Nivel20World_Capa1_1();
}
function __setProp___id254__Nivel20World_Capa1_1(){
try {
__id254_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id254_.bodyAllowSleep = true;
__id254_.bodyAngularDamping = 0;
__id254_.bodyApplyGravity = true;
__id254_.bodyFixedRotation = false;
__id254_.bodyIsBullet = false;
__id254_.bodyIsSleeping = false;
__id254_.bodyIsStatic = true;
__id254_.bodyLinearDamping = 0;
__id254_.shapeCategoryBits = "0x0001";
__id254_.shapeDensity = 1;
__id254_.shapeFriction = 0.2;
__id254_.shapeGroupIndex = 0;
__id254_.shapeIsSensor = false;
__id254_.shapeMaskBits = "0xFFFF";
__id254_.shapeRestitution = 0;
try {
__id254_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id240__Nivel20World_Capa1_1(){
try {
__id240_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id240_.bodyAllowSleep = true;
__id240_.bodyAngularDamping = 0;
__id240_.bodyApplyGravity = true;
__id240_.bodyFixedRotation = false;
__id240_.bodyIsBullet = false;
__id240_.bodyIsSleeping = false;
__id240_.bodyIsStatic = true;
__id240_.bodyLinearDamping = 0;
__id240_.shapeCategoryBits = "0x0001";
__id240_.shapeDensity = 1;
__id240_.shapeFriction = 0.2;
__id240_.shapeGroupIndex = 0;
__id240_.shapeIsSensor = false;
__id240_.shapeMaskBits = "0xFFFF";
__id240_.shapeRestitution = 0;
try {
__id240_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id237__Nivel20World_Capa1_1(){
try {
__id237_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id237_.nombre_figura = "jelly_circulo";
try {
__id237_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id248__Nivel20World_Capa1_1(){
try {
__id248_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id248_.bodyAllowSleep = true;
__id248_.bodyAngularDamping = 0;
__id248_.bodyApplyGravity = true;
__id248_.bodyFixedRotation = false;
__id248_.bodyIsBullet = false;
__id248_.bodyIsSleeping = false;
__id248_.bodyIsStatic = true;
__id248_.bodyLinearDamping = 0;
__id248_.shapeCategoryBits = "0x0001";
__id248_.shapeDensity = 1;
__id248_.shapeFriction = 0.2;
__id248_.shapeGroupIndex = 0;
__id248_.shapeIsSensor = false;
__id248_.shapeMaskBits = "0xFFFF";
__id248_.shapeRestitution = 0;
try {
__id248_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id251__Nivel20World_Capa1_1(){
try {
__id251_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id251_.bodyAllowSleep = true;
__id251_.bodyAngularDamping = 0;
__id251_.bodyApplyGravity = true;
__id251_.bodyFixedRotation = false;
__id251_.bodyIsBullet = false;
__id251_.bodyIsSleeping = false;
__id251_.bodyIsStatic = true;
__id251_.bodyLinearDamping = 0;
__id251_.shapeCategoryBits = "0x0001";
__id251_.shapeDensity = 1;
__id251_.shapeFriction = 0.2;
__id251_.shapeGroupIndex = 0;
__id251_.shapeIsSensor = false;
__id251_.shapeMaskBits = "0xFFFF";
__id251_.shapeRestitution = 0;
try {
__id251_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id234__Nivel20World_Capa1_1(){
try {
__id234_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id234_.bodyAllowSleep = true;
__id234_.bodyAngularDamping = 0;
__id234_.bodyApplyGravity = false;
__id234_.bodyFixedRotation = false;
__id234_.bodyIsBullet = false;
__id234_.bodyIsSleeping = false;
__id234_.bodyIsStatic = true;
__id234_.bodyLinearDamping = 0;
__id234_.shapeCategoryBits = "0x0001";
__id234_.shapeDensity = 1;
__id234_.shapeFriction = 0.2;
__id234_.shapeGroupIndex = 0;
__id234_.shapeIsSensor = true;
__id234_.shapeMaskBits = "0xFFFF";
__id234_.shapeRestitution = 0;
__id234_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id234_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id245__Nivel20World_Capa1_1(){
try {
__id245_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id245_.bodyAllowSleep = true;
__id245_.bodyAngularDamping = 0;
__id245_.bodyApplyGravity = true;
__id245_.bodyFixedRotation = false;
__id245_.bodyIsBullet = false;
__id245_.bodyIsSleeping = false;
__id245_.bodyIsStatic = true;
__id245_.bodyLinearDamping = 0;
__id245_.shapeCategoryBits = "0x0001";
__id245_.shapeDensity = 1;
__id245_.shapeFriction = 0.2;
__id245_.shapeGroupIndex = 0;
__id245_.shapeIsSensor = false;
__id245_.shapeMaskBits = "0xFFFF";
__id245_.shapeRestitution = 0;
try {
__id245_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id239__Nivel20World_Capa1_1(){
try {
__id239_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id239_.bodyAllowSleep = true;
__id239_.bodyAngularDamping = 0;
__id239_.bodyApplyGravity = false;
__id239_.bodyFixedRotation = false;
__id239_.bodyIsBullet = false;
__id239_.bodyIsSleeping = false;
__id239_.bodyIsStatic = true;
__id239_.bodyLinearDamping = 0;
__id239_.shapeCategoryBits = "0x0001";
__id239_.shapeDensity = 1;
__id239_.shapeFriction = 0.2;
__id239_.shapeGroupIndex = 0;
__id239_.shapeIsSensor = true;
__id239_.shapeMaskBits = "0xFFFF";
__id239_.shapeRestitution = 0;
__id239_.validGoalBody = "jelly_cuadrado";
try {
__id239_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id242__Nivel20World_Capa1_1(){
try {
__id242_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id242_.bodyAllowSleep = true;
__id242_.bodyAngularDamping = 0;
__id242_.bodyApplyGravity = true;
__id242_.bodyFixedRotation = false;
__id242_.bodyIsBullet = false;
__id242_.bodyIsSleeping = false;
__id242_.bodyIsStatic = true;
__id242_.bodyLinearDamping = 0;
__id242_.shapeCategoryBits = "0x0001";
__id242_.shapeDensity = 1;
__id242_.shapeFriction = 0.2;
__id242_.shapeGroupIndex = 0;
__id242_.shapeIsSensor = false;
__id242_.shapeMaskBits = "0xFFFF";
__id242_.shapeRestitution = 0;
try {
__id242_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id253__Nivel20World_Capa1_1(){
try {
__id253_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id253_.bodyAllowSleep = true;
__id253_.bodyAngularDamping = 0;
__id253_.bodyApplyGravity = true;
__id253_.bodyFixedRotation = false;
__id253_.bodyIsBullet = false;
__id253_.bodyIsSleeping = false;
__id253_.bodyIsStatic = true;
__id253_.bodyLinearDamping = 0;
__id253_.shapeCategoryBits = "0x0001";
__id253_.shapeDensity = 1;
__id253_.shapeFriction = 0.2;
__id253_.shapeGroupIndex = 0;
__id253_.shapeIsSensor = false;
__id253_.shapeMaskBits = "0xFFFF";
__id253_.shapeRestitution = 0;
try {
__id253_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id236__Nivel20World_Capa1_1(){
try {
__id236_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id236_.bodyAllowSleep = true;
__id236_.bodyAngularDamping = 0;
__id236_.bodyApplyGravity = false;
__id236_.bodyFixedRotation = false;
__id236_.bodyIsBullet = false;
__id236_.bodyIsSleeping = false;
__id236_.bodyIsStatic = true;
__id236_.bodyLinearDamping = 0;
__id236_.shapeCategoryBits = "0x0001";
__id236_.shapeDensity = 1;
__id236_.shapeFriction = 0.2;
__id236_.shapeGroupIndex = 0;
__id236_.shapeIsSensor = true;
__id236_.shapeMaskBits = "0xFFFF";
__id236_.shapeRestitution = 0;
__id236_.validGoalBody = "jelly_circulo";
try {
__id236_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id247__Nivel20World_Capa1_1(){
try {
__id247_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id247_.bodyAllowSleep = true;
__id247_.bodyAngularDamping = 0;
__id247_.bodyApplyGravity = true;
__id247_.bodyFixedRotation = false;
__id247_.bodyIsBullet = false;
__id247_.bodyIsSleeping = false;
__id247_.bodyIsStatic = true;
__id247_.bodyLinearDamping = 0;
__id247_.shapeCategoryBits = "0x0001";
__id247_.shapeDensity = 1;
__id247_.shapeFriction = 0.2;
__id247_.shapeGroupIndex = 0;
__id247_.shapeIsSensor = false;
__id247_.shapeMaskBits = "0xFFFF";
__id247_.shapeRestitution = 0;
try {
__id247_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id250__Nivel20World_Capa1_1(){
try {
__id250_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id250_.bodyAllowSleep = true;
__id250_.bodyAngularDamping = 0;
__id250_.bodyApplyGravity = true;
__id250_.bodyFixedRotation = false;
__id250_.bodyIsBullet = false;
__id250_.bodyIsSleeping = false;
__id250_.bodyIsStatic = true;
__id250_.bodyLinearDamping = 0;
__id250_.shapeCategoryBits = "0x0001";
__id250_.shapeDensity = 1;
__id250_.shapeFriction = 0.2;
__id250_.shapeGroupIndex = 0;
__id250_.shapeIsSensor = false;
__id250_.shapeMaskBits = "0xFFFF";
__id250_.shapeRestitution = 0;
try {
__id250_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id233__Nivel20World_Capa1_1(){
try {
__id233_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id233_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id233_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id244__Nivel20World_Capa1_1(){
try {
__id244_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id244_.bodyAllowSleep = true;
__id244_.bodyAngularDamping = 0;
__id244_.bodyApplyGravity = true;
__id244_.bodyFixedRotation = false;
__id244_.bodyIsBullet = false;
__id244_.bodyIsSleeping = false;
__id244_.bodyIsStatic = true;
__id244_.bodyLinearDamping = 0;
__id244_.shapeCategoryBits = "0x0001";
__id244_.shapeDensity = 1;
__id244_.shapeFriction = 0.2;
__id244_.shapeGroupIndex = 0;
__id244_.shapeIsSensor = false;
__id244_.shapeMaskBits = "0xFFFF";
__id244_.shapeRestitution = 0;
try {
__id244_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id255__Nivel20World_Capa1_1(){
try {
__id255_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id255_.bodyAllowSleep = true;
__id255_.bodyAngularDamping = 0;
__id255_.bodyApplyGravity = true;
__id255_.bodyFixedRotation = false;
__id255_.bodyIsBullet = false;
__id255_.bodyIsSleeping = false;
__id255_.bodyIsStatic = true;
__id255_.bodyLinearDamping = 0;
__id255_.shapeCategoryBits = "0x0001";
__id255_.shapeDensity = 1;
__id255_.shapeFriction = 0.2;
__id255_.shapeGroupIndex = 0;
__id255_.shapeIsSensor = false;
__id255_.shapeMaskBits = "0xFFFF";
__id255_.shapeRestitution = 0;
try {
__id255_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id238__Nivel20World_Capa1_1(){
try {
__id238_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id238_.nombre_figura = "jelly_cuadrado";
try {
__id238_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id249__Nivel20World_Capa1_1(){
try {
__id249_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id249_.bodyAllowSleep = true;
__id249_.bodyAngularDamping = 0;
__id249_.bodyApplyGravity = true;
__id249_.bodyFixedRotation = false;
__id249_.bodyIsBullet = false;
__id249_.bodyIsSleeping = false;
__id249_.bodyIsStatic = true;
__id249_.bodyLinearDamping = 0;
__id249_.shapeCategoryBits = "0x0001";
__id249_.shapeDensity = 1;
__id249_.shapeFriction = 0.2;
__id249_.shapeGroupIndex = 0;
__id249_.shapeIsSensor = false;
__id249_.shapeMaskBits = "0xFFFF";
__id249_.shapeRestitution = 0;
try {
__id249_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id241__Nivel20World_Capa1_1(){
try {
__id241_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id241_.bodyAllowSleep = true;
__id241_.bodyAngularDamping = 0;
__id241_.bodyApplyGravity = true;
__id241_.bodyFixedRotation = false;
__id241_.bodyIsBullet = false;
__id241_.bodyIsSleeping = false;
__id241_.bodyIsStatic = true;
__id241_.bodyLinearDamping = 0;
__id241_.shapeCategoryBits = "0x0001";
__id241_.shapeDensity = 1;
__id241_.shapeFriction = 0.2;
__id241_.shapeGroupIndex = 0;
__id241_.shapeIsSensor = false;
__id241_.shapeMaskBits = "0xFFFF";
__id241_.shapeRestitution = 0;
try {
__id241_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id252__Nivel20World_Capa1_1(){
try {
__id252_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id252_.bodyAllowSleep = true;
__id252_.bodyAngularDamping = 0;
__id252_.bodyApplyGravity = true;
__id252_.bodyFixedRotation = false;
__id252_.bodyIsBullet = false;
__id252_.bodyIsSleeping = false;
__id252_.bodyIsStatic = true;
__id252_.bodyLinearDamping = 0;
__id252_.shapeCategoryBits = "0x0001";
__id252_.shapeDensity = 1;
__id252_.shapeFriction = 0.2;
__id252_.shapeGroupIndex = 0;
__id252_.shapeIsSensor = false;
__id252_.shapeMaskBits = "0xFFFF";
__id252_.shapeRestitution = 0;
try {
__id252_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id235__Nivel20World_Capa1_1(){
try {
__id235_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id235_.bodyAllowSleep = true;
__id235_.bodyAngularDamping = 0;
__id235_.bodyApplyGravity = true;
__id235_.bodyFixedRotation = false;
__id235_.bodyIsBullet = false;
__id235_.bodyIsSleeping = true;
__id235_.bodyIsStatic = true;
__id235_.bodyLinearDamping = 0;
__id235_.shapeCategoryBits = "0x0001";
__id235_.shapeDensity = 1;
__id235_.shapeFriction = 0.2;
__id235_.shapeGroupIndex = 0;
__id235_.shapeIsSensor = false;
__id235_.shapeMaskBits = "0xFFFF";
__id235_.shapeRestitution = 0;
try {
__id235_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id246__Nivel20World_Capa1_1(){
try {
__id246_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id246_.bodyAllowSleep = true;
__id246_.bodyAngularDamping = 0;
__id246_.bodyApplyGravity = true;
__id246_.bodyFixedRotation = false;
__id246_.bodyIsBullet = false;
__id246_.bodyIsSleeping = false;
__id246_.bodyIsStatic = true;
__id246_.bodyLinearDamping = 0;
__id246_.shapeCategoryBits = "0x0001";
__id246_.shapeDensity = 1;
__id246_.shapeFriction = 0.2;
__id246_.shapeGroupIndex = 0;
__id246_.shapeIsSensor = false;
__id246_.shapeMaskBits = "0xFFFF";
__id246_.shapeRestitution = 0;
try {
__id246_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id243__Nivel20World_Capa1_1(){
try {
__id243_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id243_.bodyAllowSleep = true;
__id243_.bodyAngularDamping = 0;
__id243_.bodyApplyGravity = true;
__id243_.bodyFixedRotation = false;
__id243_.bodyIsBullet = false;
__id243_.bodyIsSleeping = false;
__id243_.bodyIsStatic = true;
__id243_.bodyLinearDamping = 0;
__id243_.shapeCategoryBits = "0x0001";
__id243_.shapeDensity = 1;
__id243_.shapeFriction = 0.2;
__id243_.shapeGroupIndex = 0;
__id243_.shapeIsSensor = false;
__id243_.shapeMaskBits = "0xFFFF";
__id243_.shapeRestitution = 0;
try {
__id243_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 217
//Nivel21View (Nivel21View)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel21View extends View {
public var __id232_:Nivel21World;
public function Nivel21View(){
__setProp___id232__Nivel21View_Capa1_1();
}
function __setProp___id232__Nivel21View_Capa1_1(){
try {
__id232_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id232_.boundsBottom = -10000000000;
__id232_.boundsLeft = -10000000000;
__id232_.boundsRight = 10000000000;
__id232_.boundsTop = 10000000000;
__id232_.doSleep = true;
__id232_.gravityRadial = 0;
__id232_.gravityX = 0;
__id232_.gravityY = 10;
__id232_.iterations = 7;
__id232_.keepCenteredOn = "";
__id232_.scale = 40;
__id232_.timeStep = 0.025;
try {
__id232_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 218
//Nivel21World (Nivel21World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel21World extends World {
public var __id210_:jelly_marco_colision800x600;
public var __id211_:muro;
public var __id212_:muro;
public var __id213_:muro;
public var __id214_:jelly_triangulo_equilatero;
public var __id202_:jelly_chivato;
public var __id203_:jelly_chivato;
public var __id215_:muro;
public var __id216_:jelly_triangulo_equilatero;
public var __id204_:jelly_chivato;
public var __id217_:muro;
public var __id205_:meta;
public var __id206_:jelly_chivato;
public var __id218_:jelly_triangulo_equilatero;
public var __id207_:meta;
public var __id219_:jelly_triangulo_equilatero;
public var __id208_:meta;
public var __id209_:meta;
public function Nivel21World(){
__setProp___id209__Nivel21World_Capa1_1();
__setProp___id213__Nivel21World_Capa1_1();
__setProp___id214__Nivel21World_Capa1_1();
__setProp___id208__Nivel21World_Capa1_1();
__setProp___id219__Nivel21World_Capa1_1();
__setProp___id215__Nivel21World_Capa1_1();
__setProp___id210__Nivel21World_Capa1_1();
__setProp___id218__Nivel21World_Capa1_1();
__setProp___id216__Nivel21World_Capa1_1();
__setProp___id206__Nivel21World_Capa1_1();
__setProp___id204__Nivel21World_Capa1_1();
__setProp___id211__Nivel21World_Capa1_1();
__setProp___id203__Nivel21World_Capa1_1();
__setProp___id212__Nivel21World_Capa1_1();
__setProp___id202__Nivel21World_Capa1_1();
__setProp___id217__Nivel21World_Capa1_1();
__setProp___id207__Nivel21World_Capa1_1();
__setProp___id205__Nivel21World_Capa1_1();
}
function __setProp___id203__Nivel21World_Capa1_1(){
try {
__id203_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id203_.nombre_figura = "jelly_cuadrado";
try {
__id203_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id214__Nivel21World_Capa1_1(){
try {
__id214_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id214_.bodyAllowSleep = true;
__id214_.bodyAngularDamping = 0;
__id214_.bodyApplyGravity = true;
__id214_.bodyFixedRotation = false;
__id214_.bodyIsBullet = false;
__id214_.bodyIsSleeping = false;
__id214_.bodyIsStatic = true;
__id214_.bodyLinearDamping = 0;
__id214_.shapeCategoryBits = "0x0001";
__id214_.shapeDensity = 1;
__id214_.shapeFriction = 0.2;
__id214_.shapeGroupIndex = 0;
__id214_.shapeIsSensor = false;
__id214_.shapeMaskBits = "0xFFFF";
__id214_.shapeRestitution = 0;
try {
__id214_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id211__Nivel21World_Capa1_1(){
try {
__id211_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id211_.bodyAllowSleep = true;
__id211_.bodyAngularDamping = 0;
__id211_.bodyApplyGravity = true;
__id211_.bodyFixedRotation = false;
__id211_.bodyIsBullet = false;
__id211_.bodyIsSleeping = false;
__id211_.bodyIsStatic = true;
__id211_.bodyLinearDamping = 0;
__id211_.shapeCategoryBits = "0x0001";
__id211_.shapeDensity = 1;
__id211_.shapeFriction = 0.2;
__id211_.shapeGroupIndex = 0;
__id211_.shapeIsSensor = false;
__id211_.shapeMaskBits = "0xFFFF";
__id211_.shapeRestitution = 0;
try {
__id211_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id219__Nivel21World_Capa1_1(){
try {
__id219_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id219_.bodyAllowSleep = true;
__id219_.bodyAngularDamping = 0;
__id219_.bodyApplyGravity = true;
__id219_.bodyFixedRotation = false;
__id219_.bodyIsBullet = false;
__id219_.bodyIsSleeping = false;
__id219_.bodyIsStatic = true;
__id219_.bodyLinearDamping = 0;
__id219_.shapeCategoryBits = "0x0001";
__id219_.shapeDensity = 1;
__id219_.shapeFriction = 0.2;
__id219_.shapeGroupIndex = 0;
__id219_.shapeIsSensor = false;
__id219_.shapeMaskBits = "0xFFFF";
__id219_.shapeRestitution = 0;
try {
__id219_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id208__Nivel21World_Capa1_1(){
try {
__id208_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id208_.bodyAllowSleep = true;
__id208_.bodyAngularDamping = 0;
__id208_.bodyApplyGravity = false;
__id208_.bodyFixedRotation = false;
__id208_.bodyIsBullet = false;
__id208_.bodyIsSleeping = false;
__id208_.bodyIsStatic = true;
__id208_.bodyLinearDamping = 0;
__id208_.shapeCategoryBits = "0x0001";
__id208_.shapeDensity = 1;
__id208_.shapeFriction = 0.2;
__id208_.shapeGroupIndex = 0;
__id208_.shapeIsSensor = true;
__id208_.shapeMaskBits = "0xFFFF";
__id208_.shapeRestitution = 0;
__id208_.validGoalBody = "jelly_cuadrado";
try {
__id208_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id205__Nivel21World_Capa1_1(){
try {
__id205_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id205_.bodyAllowSleep = true;
__id205_.bodyAngularDamping = 0;
__id205_.bodyApplyGravity = false;
__id205_.bodyFixedRotation = false;
__id205_.bodyIsBullet = false;
__id205_.bodyIsSleeping = false;
__id205_.bodyIsStatic = true;
__id205_.bodyLinearDamping = 0;
__id205_.shapeCategoryBits = "0x0001";
__id205_.shapeDensity = 1;
__id205_.shapeFriction = 0.2;
__id205_.shapeGroupIndex = 0;
__id205_.shapeIsSensor = true;
__id205_.shapeMaskBits = "0xFFFF";
__id205_.shapeRestitution = 0;
__id205_.validGoalBody = "jelly_cuadrado";
try {
__id205_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id216__Nivel21World_Capa1_1(){
try {
__id216_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id216_.bodyAllowSleep = true;
__id216_.bodyAngularDamping = 0;
__id216_.bodyApplyGravity = true;
__id216_.bodyFixedRotation = false;
__id216_.bodyIsBullet = false;
__id216_.bodyIsSleeping = false;
__id216_.bodyIsStatic = true;
__id216_.bodyLinearDamping = 0;
__id216_.shapeCategoryBits = "0x0001";
__id216_.shapeDensity = 1;
__id216_.shapeFriction = 0.2;
__id216_.shapeGroupIndex = 0;
__id216_.shapeIsSensor = false;
__id216_.shapeMaskBits = "0xFFFF";
__id216_.shapeRestitution = 0;
try {
__id216_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id202__Nivel21World_Capa1_1(){
try {
__id202_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id202_.nombre_figura = "jelly_cuadrado";
try {
__id202_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id213__Nivel21World_Capa1_1(){
try {
__id213_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id213_.bodyAllowSleep = true;
__id213_.bodyAngularDamping = 0;
__id213_.bodyApplyGravity = true;
__id213_.bodyFixedRotation = false;
__id213_.bodyIsBullet = false;
__id213_.bodyIsSleeping = false;
__id213_.bodyIsStatic = true;
__id213_.bodyLinearDamping = 0;
__id213_.shapeCategoryBits = "0x0001";
__id213_.shapeDensity = 1;
__id213_.shapeFriction = 0.2;
__id213_.shapeGroupIndex = 0;
__id213_.shapeIsSensor = false;
__id213_.shapeMaskBits = "0xFFFF";
__id213_.shapeRestitution = 0;
try {
__id213_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id207__Nivel21World_Capa1_1(){
try {
__id207_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id207_.bodyAllowSleep = true;
__id207_.bodyAngularDamping = 0;
__id207_.bodyApplyGravity = false;
__id207_.bodyFixedRotation = false;
__id207_.bodyIsBullet = false;
__id207_.bodyIsSleeping = false;
__id207_.bodyIsStatic = true;
__id207_.bodyLinearDamping = 0;
__id207_.shapeCategoryBits = "0x0001";
__id207_.shapeDensity = 1;
__id207_.shapeFriction = 0.2;
__id207_.shapeGroupIndex = 0;
__id207_.shapeIsSensor = true;
__id207_.shapeMaskBits = "0xFFFF";
__id207_.shapeRestitution = 0;
__id207_.validGoalBody = "jelly_cuadrado";
try {
__id207_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id210__Nivel21World_Capa1_1(){
try {
__id210_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id210_.bodyAllowSleep = true;
__id210_.bodyAngularDamping = 0;
__id210_.bodyApplyGravity = true;
__id210_.bodyFixedRotation = false;
__id210_.bodyIsBullet = false;
__id210_.bodyIsSleeping = true;
__id210_.bodyIsStatic = true;
__id210_.bodyLinearDamping = 0;
__id210_.shapeCategoryBits = "0x0001";
__id210_.shapeDensity = 1;
__id210_.shapeFriction = 0.2;
__id210_.shapeGroupIndex = 0;
__id210_.shapeIsSensor = false;
__id210_.shapeMaskBits = "0xFFFF";
__id210_.shapeRestitution = 0;
try {
__id210_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id218__Nivel21World_Capa1_1(){
try {
__id218_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id218_.bodyAllowSleep = true;
__id218_.bodyAngularDamping = 0;
__id218_.bodyApplyGravity = true;
__id218_.bodyFixedRotation = false;
__id218_.bodyIsBullet = false;
__id218_.bodyIsSleeping = false;
__id218_.bodyIsStatic = true;
__id218_.bodyLinearDamping = 0;
__id218_.shapeCategoryBits = "0x0001";
__id218_.shapeDensity = 1;
__id218_.shapeFriction = 0.2;
__id218_.shapeGroupIndex = 0;
__id218_.shapeIsSensor = false;
__id218_.shapeMaskBits = "0xFFFF";
__id218_.shapeRestitution = 0;
try {
__id218_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id204__Nivel21World_Capa1_1(){
try {
__id204_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id204_.nombre_figura = "jelly_cuadrado";
try {
__id204_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id215__Nivel21World_Capa1_1(){
try {
__id215_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id215_.bodyAllowSleep = true;
__id215_.bodyAngularDamping = 0;
__id215_.bodyApplyGravity = true;
__id215_.bodyFixedRotation = false;
__id215_.bodyIsBullet = false;
__id215_.bodyIsSleeping = false;
__id215_.bodyIsStatic = true;
__id215_.bodyLinearDamping = 0;
__id215_.shapeCategoryBits = "0x0001";
__id215_.shapeDensity = 1;
__id215_.shapeFriction = 0.2;
__id215_.shapeGroupIndex = 0;
__id215_.shapeIsSensor = false;
__id215_.shapeMaskBits = "0xFFFF";
__id215_.shapeRestitution = 0;
try {
__id215_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id212__Nivel21World_Capa1_1(){
try {
__id212_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id212_.bodyAllowSleep = true;
__id212_.bodyAngularDamping = 0;
__id212_.bodyApplyGravity = true;
__id212_.bodyFixedRotation = false;
__id212_.bodyIsBullet = false;
__id212_.bodyIsSleeping = false;
__id212_.bodyIsStatic = true;
__id212_.bodyLinearDamping = 0;
__id212_.shapeCategoryBits = "0x0001";
__id212_.shapeDensity = 1;
__id212_.shapeFriction = 0.2;
__id212_.shapeGroupIndex = 0;
__id212_.shapeIsSensor = false;
__id212_.shapeMaskBits = "0xFFFF";
__id212_.shapeRestitution = 0;
try {
__id212_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id209__Nivel21World_Capa1_1(){
try {
__id209_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id209_.bodyAllowSleep = true;
__id209_.bodyAngularDamping = 0;
__id209_.bodyApplyGravity = false;
__id209_.bodyFixedRotation = false;
__id209_.bodyIsBullet = false;
__id209_.bodyIsSleeping = false;
__id209_.bodyIsStatic = true;
__id209_.bodyLinearDamping = 0;
__id209_.shapeCategoryBits = "0x0001";
__id209_.shapeDensity = 1;
__id209_.shapeFriction = 0.2;
__id209_.shapeGroupIndex = 0;
__id209_.shapeIsSensor = true;
__id209_.shapeMaskBits = "0xFFFF";
__id209_.shapeRestitution = 0;
__id209_.validGoalBody = "jelly_cuadrado";
try {
__id209_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id206__Nivel21World_Capa1_1(){
try {
__id206_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id206_.nombre_figura = "jelly_cuadrado";
try {
__id206_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id217__Nivel21World_Capa1_1(){
try {
__id217_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id217_.bodyAllowSleep = true;
__id217_.bodyAngularDamping = 0;
__id217_.bodyApplyGravity = true;
__id217_.bodyFixedRotation = false;
__id217_.bodyIsBullet = false;
__id217_.bodyIsSleeping = false;
__id217_.bodyIsStatic = true;
__id217_.bodyLinearDamping = 0;
__id217_.shapeCategoryBits = "0x0001";
__id217_.shapeDensity = 1;
__id217_.shapeFriction = 0.2;
__id217_.shapeGroupIndex = 0;
__id217_.shapeIsSensor = false;
__id217_.shapeMaskBits = "0xFFFF";
__id217_.shapeRestitution = 0;
try {
__id217_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 219
//Nivel22View (Nivel22View)
package {
import wck.*;
public dynamic class Nivel22View extends View {
}
}//package
Section 220
//Nivel22World (Nivel22World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel22World extends World {
public var __id192_:jelly_circulo;
public var __id180_:jelly_circulo;
public var __id181_:jelly_circulo;
public var __id194_:jelly_circulo;
public var __id200_:jelly_circulo;
public var __id195_:jelly_circulo;
public var __id183_:jelly_circulo;
public var __id182_:jelly_circulo;
public var __id171_:jelly_chivato;
public var __id172_:jelly_chivato;
public var __id196_:jelly_circulo;
public var __id197_:jelly_circulo;
public var __id185_:jelly_circulo;
public var __id184_:jelly_circulo;
public var __id173_:meta;
public var __id198_:jelly_circulo;
public var __id174_:meta;
public var __id199_:jelly_circulo;
public var __id175_:meta;
public var __id176_:meta;
public var __id177_:jelly_marco_colision800x600;
public var __id178_:jelly_circulo;
public var __id179_:jelly_circulo;
public function Nivel22World(){
__setProp___id199__Nivel22World_Capa1_1();
__setProp___id177__Nivel22World_Capa1_1();
__setProp___id173__Nivel22World_Capa1_1();
__setProp___id198__Nivel22World_Capa1_1();
__setProp___id180__Nivel22World_Capa1_1();
__setProp___id194__Nivel22World_Capa1_1();
__setProp___id185__Nivel22World_Capa1_1();
__setProp___id192__Nivel22World_Capa1_1();
__setProp___id183__Nivel22World_Capa1_1();
__setProp___id175__Nivel22World_Capa1_1();
__setProp___id184__Nivel22World_Capa1_1();
__setProp___id176__Nivel22World_Capa1_1();
__setProp___id195__Nivel22World_Capa1_1();
__setProp___id182__Nivel22World_Capa1_1();
__setProp___id196__Nivel22World_Capa1_1();
__setProp___id178__Nivel22World_Capa1_1();
__setProp___id200__Nivel22World_Capa1_1();
__setProp___id179__Nivel22World_Capa1_1();
__setProp___id171__Nivel22World_Capa1_1();
__setProp___id197__Nivel22World_Capa1_1();
__setProp___id172__Nivel22World_Capa1_1();
__setProp___id181__Nivel22World_Capa1_1();
__setProp___id174__Nivel22World_Capa1_1();
}
function __setProp___id199__Nivel22World_Capa1_1(){
try {
__id199_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id199_.bodyAllowSleep = true;
__id199_.bodyAngularDamping = 0;
__id199_.bodyApplyGravity = true;
__id199_.bodyFixedRotation = false;
__id199_.bodyIsBullet = false;
__id199_.bodyIsSleeping = false;
__id199_.bodyIsStatic = true;
__id199_.bodyLinearDamping = 0;
__id199_.shapeCategoryBits = "0x0001";
__id199_.shapeDensity = 1;
__id199_.shapeFriction = 0.2;
__id199_.shapeGroupIndex = 0;
__id199_.shapeIsSensor = false;
__id199_.shapeMaskBits = "0xFFFF";
__id199_.shapeRestitution = 0;
try {
__id199_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id185__Nivel22World_Capa1_1(){
try {
__id185_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id185_.bodyAllowSleep = true;
__id185_.bodyAngularDamping = 0;
__id185_.bodyApplyGravity = true;
__id185_.bodyFixedRotation = false;
__id185_.bodyIsBullet = false;
__id185_.bodyIsSleeping = false;
__id185_.bodyIsStatic = true;
__id185_.bodyLinearDamping = 0;
__id185_.shapeCategoryBits = "0x0001";
__id185_.shapeDensity = 1;
__id185_.shapeFriction = 0.2;
__id185_.shapeGroupIndex = 0;
__id185_.shapeIsSensor = false;
__id185_.shapeMaskBits = "0xFFFF";
__id185_.shapeRestitution = 0;
try {
__id185_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id171__Nivel22World_Capa1_1(){
try {
__id171_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id171_.nombre_figura = "jelly_trapecio_isosceles";
try {
__id171_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id196__Nivel22World_Capa1_1(){
try {
__id196_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id196_.bodyAllowSleep = true;
__id196_.bodyAngularDamping = 0;
__id196_.bodyApplyGravity = true;
__id196_.bodyFixedRotation = false;
__id196_.bodyIsBullet = false;
__id196_.bodyIsSleeping = false;
__id196_.bodyIsStatic = true;
__id196_.bodyLinearDamping = 0;
__id196_.shapeCategoryBits = "0x0001";
__id196_.shapeDensity = 1;
__id196_.shapeFriction = 0.2;
__id196_.shapeGroupIndex = 0;
__id196_.shapeIsSensor = false;
__id196_.shapeMaskBits = "0xFFFF";
__id196_.shapeRestitution = 0;
try {
__id196_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id179__Nivel22World_Capa1_1(){
try {
__id179_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id179_.bodyAllowSleep = true;
__id179_.bodyAngularDamping = 0;
__id179_.bodyApplyGravity = true;
__id179_.bodyFixedRotation = false;
__id179_.bodyIsBullet = false;
__id179_.bodyIsSleeping = false;
__id179_.bodyIsStatic = true;
__id179_.bodyLinearDamping = 0;
__id179_.shapeCategoryBits = "0x0001";
__id179_.shapeDensity = 1;
__id179_.shapeFriction = 0.2;
__id179_.shapeGroupIndex = 0;
__id179_.shapeIsSensor = false;
__id179_.shapeMaskBits = "0xFFFF";
__id179_.shapeRestitution = 0;
try {
__id179_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id182__Nivel22World_Capa1_1(){
try {
__id182_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id182_.bodyAllowSleep = true;
__id182_.bodyAngularDamping = 0;
__id182_.bodyApplyGravity = true;
__id182_.bodyFixedRotation = false;
__id182_.bodyIsBullet = false;
__id182_.bodyIsSleeping = false;
__id182_.bodyIsStatic = true;
__id182_.bodyLinearDamping = 0;
__id182_.shapeCategoryBits = "0x0001";
__id182_.shapeDensity = 1;
__id182_.shapeFriction = 0.2;
__id182_.shapeGroupIndex = 0;
__id182_.shapeIsSensor = false;
__id182_.shapeMaskBits = "0xFFFF";
__id182_.shapeRestitution = 0;
try {
__id182_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id176__Nivel22World_Capa1_1(){
try {
__id176_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id176_.bodyAllowSleep = true;
__id176_.bodyAngularDamping = 0;
__id176_.bodyApplyGravity = false;
__id176_.bodyFixedRotation = false;
__id176_.bodyIsBullet = false;
__id176_.bodyIsSleeping = false;
__id176_.bodyIsStatic = true;
__id176_.bodyLinearDamping = 0;
__id176_.shapeCategoryBits = "0x0001";
__id176_.shapeDensity = 1;
__id176_.shapeFriction = 0.2;
__id176_.shapeGroupIndex = 0;
__id176_.shapeIsSensor = true;
__id176_.shapeMaskBits = "0xFFFF";
__id176_.shapeRestitution = 0;
__id176_.validGoalBody = "";
try {
__id176_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id173__Nivel22World_Capa1_1(){
try {
__id173_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id173_.bodyAllowSleep = true;
__id173_.bodyAngularDamping = 0;
__id173_.bodyApplyGravity = false;
__id173_.bodyFixedRotation = false;
__id173_.bodyIsBullet = false;
__id173_.bodyIsSleeping = false;
__id173_.bodyIsStatic = true;
__id173_.bodyLinearDamping = 0;
__id173_.shapeCategoryBits = "0x0001";
__id173_.shapeDensity = 1;
__id173_.shapeFriction = 0.2;
__id173_.shapeGroupIndex = 0;
__id173_.shapeIsSensor = true;
__id173_.shapeMaskBits = "0xFFFF";
__id173_.shapeRestitution = 0;
__id173_.validGoalBody = "";
try {
__id173_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id184__Nivel22World_Capa1_1(){
try {
__id184_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id184_.bodyAllowSleep = true;
__id184_.bodyAngularDamping = 0;
__id184_.bodyApplyGravity = true;
__id184_.bodyFixedRotation = false;
__id184_.bodyIsBullet = false;
__id184_.bodyIsSleeping = false;
__id184_.bodyIsStatic = true;
__id184_.bodyLinearDamping = 0;
__id184_.shapeCategoryBits = "0x0001";
__id184_.shapeDensity = 1;
__id184_.shapeFriction = 0.2;
__id184_.shapeGroupIndex = 0;
__id184_.shapeIsSensor = false;
__id184_.shapeMaskBits = "0xFFFF";
__id184_.shapeRestitution = 0;
try {
__id184_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id198__Nivel22World_Capa1_1(){
try {
__id198_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id198_.bodyAllowSleep = true;
__id198_.bodyAngularDamping = 0;
__id198_.bodyApplyGravity = true;
__id198_.bodyFixedRotation = false;
__id198_.bodyIsBullet = false;
__id198_.bodyIsSleeping = false;
__id198_.bodyIsStatic = true;
__id198_.bodyLinearDamping = 0;
__id198_.shapeCategoryBits = "0x0001";
__id198_.shapeDensity = 1;
__id198_.shapeFriction = 0.2;
__id198_.shapeGroupIndex = 0;
__id198_.shapeIsSensor = false;
__id198_.shapeMaskBits = "0xFFFF";
__id198_.shapeRestitution = 0;
try {
__id198_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id195__Nivel22World_Capa1_1(){
try {
__id195_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id195_.bodyAllowSleep = true;
__id195_.bodyAngularDamping = 0;
__id195_.bodyApplyGravity = true;
__id195_.bodyFixedRotation = false;
__id195_.bodyIsBullet = false;
__id195_.bodyIsSleeping = false;
__id195_.bodyIsStatic = true;
__id195_.bodyLinearDamping = 0;
__id195_.shapeCategoryBits = "0x0001";
__id195_.shapeDensity = 1;
__id195_.shapeFriction = 0.2;
__id195_.shapeGroupIndex = 0;
__id195_.shapeIsSensor = false;
__id195_.shapeMaskBits = "0xFFFF";
__id195_.shapeRestitution = 0;
try {
__id195_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id178__Nivel22World_Capa1_1(){
try {
__id178_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id178_.bodyAllowSleep = true;
__id178_.bodyAngularDamping = 0;
__id178_.bodyApplyGravity = true;
__id178_.bodyFixedRotation = false;
__id178_.bodyIsBullet = false;
__id178_.bodyIsSleeping = false;
__id178_.bodyIsStatic = true;
__id178_.bodyLinearDamping = 0;
__id178_.shapeCategoryBits = "0x0001";
__id178_.shapeDensity = 1;
__id178_.shapeFriction = 0.2;
__id178_.shapeGroupIndex = 0;
__id178_.shapeIsSensor = false;
__id178_.shapeMaskBits = "0xFFFF";
__id178_.shapeRestitution = 0;
try {
__id178_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id181__Nivel22World_Capa1_1(){
try {
__id181_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id181_.bodyAllowSleep = true;
__id181_.bodyAngularDamping = 0;
__id181_.bodyApplyGravity = true;
__id181_.bodyFixedRotation = false;
__id181_.bodyIsBullet = false;
__id181_.bodyIsSleeping = false;
__id181_.bodyIsStatic = true;
__id181_.bodyLinearDamping = 0;
__id181_.shapeCategoryBits = "0x0001";
__id181_.shapeDensity = 1;
__id181_.shapeFriction = 0.2;
__id181_.shapeGroupIndex = 0;
__id181_.shapeIsSensor = false;
__id181_.shapeMaskBits = "0xFFFF";
__id181_.shapeRestitution = 0;
try {
__id181_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id175__Nivel22World_Capa1_1(){
try {
__id175_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id175_.bodyAllowSleep = true;
__id175_.bodyAngularDamping = 0;
__id175_.bodyApplyGravity = false;
__id175_.bodyFixedRotation = false;
__id175_.bodyIsBullet = false;
__id175_.bodyIsSleeping = false;
__id175_.bodyIsStatic = true;
__id175_.bodyLinearDamping = 0;
__id175_.shapeCategoryBits = "0x0001";
__id175_.shapeDensity = 1;
__id175_.shapeFriction = 0.2;
__id175_.shapeGroupIndex = 0;
__id175_.shapeIsSensor = true;
__id175_.shapeMaskBits = "0xFFFF";
__id175_.shapeRestitution = 0;
__id175_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id175_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id192__Nivel22World_Capa1_1(){
try {
__id192_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id192_.bodyAllowSleep = true;
__id192_.bodyAngularDamping = 0;
__id192_.bodyApplyGravity = true;
__id192_.bodyFixedRotation = false;
__id192_.bodyIsBullet = false;
__id192_.bodyIsSleeping = false;
__id192_.bodyIsStatic = true;
__id192_.bodyLinearDamping = 0;
__id192_.shapeCategoryBits = "0x0001";
__id192_.shapeDensity = 1;
__id192_.shapeFriction = 0.2;
__id192_.shapeGroupIndex = 0;
__id192_.shapeIsSensor = false;
__id192_.shapeMaskBits = "0xFFFF";
__id192_.shapeRestitution = 0;
try {
__id192_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id197__Nivel22World_Capa1_1(){
try {
__id197_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id197_.bodyAllowSleep = true;
__id197_.bodyAngularDamping = 0;
__id197_.bodyApplyGravity = true;
__id197_.bodyFixedRotation = false;
__id197_.bodyIsBullet = false;
__id197_.bodyIsSleeping = false;
__id197_.bodyIsStatic = true;
__id197_.bodyLinearDamping = 0;
__id197_.shapeCategoryBits = "0x0001";
__id197_.shapeDensity = 1;
__id197_.shapeFriction = 0.2;
__id197_.shapeGroupIndex = 0;
__id197_.shapeIsSensor = false;
__id197_.shapeMaskBits = "0xFFFF";
__id197_.shapeRestitution = 0;
try {
__id197_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id172__Nivel22World_Capa1_1(){
try {
__id172_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id172_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id172_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id183__Nivel22World_Capa1_1(){
try {
__id183_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id183_.bodyAllowSleep = true;
__id183_.bodyAngularDamping = 0;
__id183_.bodyApplyGravity = true;
__id183_.bodyFixedRotation = false;
__id183_.bodyIsBullet = false;
__id183_.bodyIsSleeping = false;
__id183_.bodyIsStatic = true;
__id183_.bodyLinearDamping = 0;
__id183_.shapeCategoryBits = "0x0001";
__id183_.shapeDensity = 1;
__id183_.shapeFriction = 0.2;
__id183_.shapeGroupIndex = 0;
__id183_.shapeIsSensor = false;
__id183_.shapeMaskBits = "0xFFFF";
__id183_.shapeRestitution = 0;
try {
__id183_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id194__Nivel22World_Capa1_1(){
try {
__id194_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id194_.bodyAllowSleep = true;
__id194_.bodyAngularDamping = 0;
__id194_.bodyApplyGravity = true;
__id194_.bodyFixedRotation = false;
__id194_.bodyIsBullet = false;
__id194_.bodyIsSleeping = false;
__id194_.bodyIsStatic = true;
__id194_.bodyLinearDamping = 0;
__id194_.shapeCategoryBits = "0x0001";
__id194_.shapeDensity = 1;
__id194_.shapeFriction = 0.2;
__id194_.shapeGroupIndex = 0;
__id194_.shapeIsSensor = false;
__id194_.shapeMaskBits = "0xFFFF";
__id194_.shapeRestitution = 0;
try {
__id194_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id177__Nivel22World_Capa1_1(){
try {
__id177_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id177_.bodyAllowSleep = true;
__id177_.bodyAngularDamping = 0;
__id177_.bodyApplyGravity = true;
__id177_.bodyFixedRotation = false;
__id177_.bodyIsBullet = false;
__id177_.bodyIsSleeping = true;
__id177_.bodyIsStatic = true;
__id177_.bodyLinearDamping = 0;
__id177_.shapeCategoryBits = "0x0001";
__id177_.shapeDensity = 1;
__id177_.shapeFriction = 0.2;
__id177_.shapeGroupIndex = 0;
__id177_.shapeIsSensor = false;
__id177_.shapeMaskBits = "0xFFFF";
__id177_.shapeRestitution = 0;
try {
__id177_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id180__Nivel22World_Capa1_1(){
try {
__id180_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id180_.bodyAllowSleep = true;
__id180_.bodyAngularDamping = 0;
__id180_.bodyApplyGravity = true;
__id180_.bodyFixedRotation = false;
__id180_.bodyIsBullet = false;
__id180_.bodyIsSleeping = false;
__id180_.bodyIsStatic = true;
__id180_.bodyLinearDamping = 0;
__id180_.shapeCategoryBits = "0x0001";
__id180_.shapeDensity = 1;
__id180_.shapeFriction = 0.2;
__id180_.shapeGroupIndex = 0;
__id180_.shapeIsSensor = false;
__id180_.shapeMaskBits = "0xFFFF";
__id180_.shapeRestitution = 0;
try {
__id180_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id200__Nivel22World_Capa1_1(){
try {
__id200_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id200_.bodyAllowSleep = true;
__id200_.bodyAngularDamping = 0;
__id200_.bodyApplyGravity = true;
__id200_.bodyFixedRotation = false;
__id200_.bodyIsBullet = false;
__id200_.bodyIsSleeping = false;
__id200_.bodyIsStatic = true;
__id200_.bodyLinearDamping = 0;
__id200_.shapeCategoryBits = "0x0001";
__id200_.shapeDensity = 1;
__id200_.shapeFriction = 0.2;
__id200_.shapeGroupIndex = 0;
__id200_.shapeIsSensor = false;
__id200_.shapeMaskBits = "0xFFFF";
__id200_.shapeRestitution = 0;
try {
__id200_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id174__Nivel22World_Capa1_1(){
try {
__id174_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id174_.bodyAllowSleep = true;
__id174_.bodyAngularDamping = 0;
__id174_.bodyApplyGravity = false;
__id174_.bodyFixedRotation = false;
__id174_.bodyIsBullet = false;
__id174_.bodyIsSleeping = false;
__id174_.bodyIsStatic = true;
__id174_.bodyLinearDamping = 0;
__id174_.shapeCategoryBits = "0x0001";
__id174_.shapeDensity = 1;
__id174_.shapeFriction = 0.2;
__id174_.shapeGroupIndex = 0;
__id174_.shapeIsSensor = true;
__id174_.shapeMaskBits = "0xFFFF";
__id174_.shapeRestitution = 0;
__id174_.validGoalBody = "jelly_trapecio_isosceles";
try {
__id174_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 221
//Nivel23View (Nivel23View)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel23View extends View {
public var __id170_:Nivel23World;
public function Nivel23View(){
__setProp___id170__Nivel23View_Capa1_1();
}
function __setProp___id170__Nivel23View_Capa1_1(){
try {
__id170_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id170_.boundsBottom = -10000000000;
__id170_.boundsLeft = -10000000000;
__id170_.boundsRight = 10000000000;
__id170_.boundsTop = 10000000000;
__id170_.doSleep = true;
__id170_.gravityRadial = 0;
__id170_.gravityX = 0;
__id170_.gravityY = 10;
__id170_.iterations = 6;
__id170_.keepCenteredOn = "";
__id170_.scale = 40;
__id170_.timeStep = 0.025;
try {
__id170_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 222
//Nivel23World (Nivel23World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel23World extends World {
public var __id148_:jelly_marco_colision800x600;
public var __id167_:zonatregua;
public var __id168_:zonatregua;
public var __id144_:meta;
public var __id169_:zonatregua;
public var __id145_:meta;
public var __id146_:meta;
public var __id147_:meta;
public function Nivel23World(){
__setProp___id169__Nivel23World_Capa1_1();
__setProp___id167__Nivel23World_Capa1_1();
__setProp___id146__Nivel23World_Capa1_1();
__setProp___id144__Nivel23World_Capa1_1();
__setProp___id168__Nivel23World_Capa1_1();
__setProp___id147__Nivel23World_Capa1_1();
__setProp___id145__Nivel23World_Capa1_1();
__setProp___id148__Nivel23World_Capa1_1();
}
function __setProp___id148__Nivel23World_Capa1_1(){
try {
__id148_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id148_.bodyAllowSleep = true;
__id148_.bodyAngularDamping = 0;
__id148_.bodyApplyGravity = true;
__id148_.bodyFixedRotation = false;
__id148_.bodyIsBullet = false;
__id148_.bodyIsSleeping = true;
__id148_.bodyIsStatic = true;
__id148_.bodyLinearDamping = 0;
__id148_.shapeCategoryBits = "0x0001";
__id148_.shapeDensity = 1;
__id148_.shapeFriction = 0.2;
__id148_.shapeGroupIndex = 0;
__id148_.shapeIsSensor = false;
__id148_.shapeMaskBits = "0xFFFF";
__id148_.shapeRestitution = 0;
try {
__id148_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id145__Nivel23World_Capa1_1(){
try {
__id145_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id145_.bodyAllowSleep = true;
__id145_.bodyAngularDamping = 0;
__id145_.bodyApplyGravity = false;
__id145_.bodyFixedRotation = false;
__id145_.bodyIsBullet = false;
__id145_.bodyIsSleeping = false;
__id145_.bodyIsStatic = true;
__id145_.bodyLinearDamping = 0;
__id145_.shapeCategoryBits = "0x0001";
__id145_.shapeDensity = 1;
__id145_.shapeFriction = 0.2;
__id145_.shapeGroupIndex = 0;
__id145_.shapeIsSensor = true;
__id145_.shapeMaskBits = "0xFFFF";
__id145_.shapeRestitution = 0;
__id145_.validGoalBody = "";
try {
__id145_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id167__Nivel23World_Capa1_1(){
try {
__id167_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id167_.bodyAllowSleep = true;
__id167_.bodyAngularDamping = 0;
__id167_.bodyApplyGravity = true;
__id167_.bodyFixedRotation = false;
__id167_.bodyIsBullet = false;
__id167_.bodyIsSleeping = false;
__id167_.bodyIsStatic = true;
__id167_.bodyLinearDamping = 0;
__id167_.shapeCategoryBits = "0x0001";
__id167_.shapeDensity = 1;
__id167_.shapeFriction = 0.2;
__id167_.shapeGroupIndex = 0;
__id167_.shapeIsSensor = true;
__id167_.shapeMaskBits = "0xFFFF";
__id167_.shapeRestitution = 0;
try {
__id167_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id147__Nivel23World_Capa1_1(){
try {
__id147_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id147_.bodyAllowSleep = true;
__id147_.bodyAngularDamping = 0;
__id147_.bodyApplyGravity = false;
__id147_.bodyFixedRotation = false;
__id147_.bodyIsBullet = false;
__id147_.bodyIsSleeping = false;
__id147_.bodyIsStatic = true;
__id147_.bodyLinearDamping = 0;
__id147_.shapeCategoryBits = "0x0001";
__id147_.shapeDensity = 1;
__id147_.shapeFriction = 0.2;
__id147_.shapeGroupIndex = 0;
__id147_.shapeIsSensor = true;
__id147_.shapeMaskBits = "0xFFFF";
__id147_.shapeRestitution = 0;
__id147_.validGoalBody = "";
try {
__id147_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id169__Nivel23World_Capa1_1(){
try {
__id169_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id169_.bodyAllowSleep = true;
__id169_.bodyAngularDamping = 0;
__id169_.bodyApplyGravity = true;
__id169_.bodyFixedRotation = false;
__id169_.bodyIsBullet = false;
__id169_.bodyIsSleeping = false;
__id169_.bodyIsStatic = true;
__id169_.bodyLinearDamping = 0;
__id169_.shapeCategoryBits = "0x0001";
__id169_.shapeDensity = 1;
__id169_.shapeFriction = 0.2;
__id169_.shapeGroupIndex = 0;
__id169_.shapeIsSensor = true;
__id169_.shapeMaskBits = "0xFFFF";
__id169_.shapeRestitution = 0;
try {
__id169_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id144__Nivel23World_Capa1_1(){
try {
__id144_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id144_.bodyAllowSleep = true;
__id144_.bodyAngularDamping = 0;
__id144_.bodyApplyGravity = false;
__id144_.bodyFixedRotation = false;
__id144_.bodyIsBullet = false;
__id144_.bodyIsSleeping = false;
__id144_.bodyIsStatic = true;
__id144_.bodyLinearDamping = 0;
__id144_.shapeCategoryBits = "0x0001";
__id144_.shapeDensity = 1;
__id144_.shapeFriction = 0.2;
__id144_.shapeGroupIndex = 0;
__id144_.shapeIsSensor = true;
__id144_.shapeMaskBits = "0xFFFF";
__id144_.shapeRestitution = 0;
__id144_.validGoalBody = "";
try {
__id144_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id146__Nivel23World_Capa1_1(){
try {
__id146_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id146_.bodyAllowSleep = true;
__id146_.bodyAngularDamping = 0;
__id146_.bodyApplyGravity = false;
__id146_.bodyFixedRotation = false;
__id146_.bodyIsBullet = false;
__id146_.bodyIsSleeping = false;
__id146_.bodyIsStatic = true;
__id146_.bodyLinearDamping = 0;
__id146_.shapeCategoryBits = "0x0001";
__id146_.shapeDensity = 1;
__id146_.shapeFriction = 0.2;
__id146_.shapeGroupIndex = 0;
__id146_.shapeIsSensor = true;
__id146_.shapeMaskBits = "0xFFFF";
__id146_.shapeRestitution = 0;
__id146_.validGoalBody = "";
try {
__id146_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id168__Nivel23World_Capa1_1(){
try {
__id168_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id168_.bodyAllowSleep = true;
__id168_.bodyAngularDamping = 0;
__id168_.bodyApplyGravity = true;
__id168_.bodyFixedRotation = false;
__id168_.bodyIsBullet = false;
__id168_.bodyIsSleeping = false;
__id168_.bodyIsStatic = true;
__id168_.bodyLinearDamping = 0;
__id168_.shapeCategoryBits = "0x0001";
__id168_.shapeDensity = 1;
__id168_.shapeFriction = 0.2;
__id168_.shapeGroupIndex = 0;
__id168_.shapeIsSensor = true;
__id168_.shapeMaskBits = "0xFFFF";
__id168_.shapeRestitution = 0;
try {
__id168_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 223
//Nivel24View (Nivel24View)
package {
import wck.*;
public dynamic class Nivel24View extends View {
}
}//package
Section 224
//Nivel24World (Nivel24World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel24World extends World {
public var __id112_:jelly_marco_colision800x600;
public var __id113_:muro;
public var __id114_:muro;
public var __id127_:jelly_circulo;
public var __id128_:jelly_circulo;
public var __id129_:muro;
public var __id106_:jelly_chivato;
public var __id119_:muro;
public var __id107_:meta;
public var __id108_:meta;
public var __id140_:zonatregua;
public var __id141_:zonatregua;
public var __id109_:meta;
public var __id130_:muro;
public var __id142_:zonatregua;
public var __id131_:jelly_circulo;
public var __id120_:muro;
public var __id121_:muro;
public var __id110_:jelly_chivato;
public var __id135_:muro;
public var __id111_:meta;
public function Nivel24World(){
__setProp___id141__Nivel24World_Capa1_1();
__setProp___id130__Nivel24World_Capa1_1();
__setProp___id121__Nivel24World_Capa1_1();
__setProp___id111__Nivel24World_Capa1_1();
__setProp___id112__Nivel24World_Capa1_1();
__setProp___id140__Nivel24World_Capa1_1();
__setProp___id108__Nivel24World_Capa1_1();
__setProp___id142__Nivel24World_Capa1_1();
__setProp___id109__Nivel24World_Capa1_1();
__setProp___id107__Nivel24World_Capa1_1();
__setProp___id128__Nivel24World_Capa1_1();
__setProp___id129__Nivel24World_Capa1_1();
__setProp___id110__Nivel24World_Capa1_1();
__setProp___id135__Nivel24World_Capa1_1();
__setProp___id119__Nivel24World_Capa1_1();
__setProp___id113__Nivel24World_Capa1_1();
__setProp___id120__Nivel24World_Capa1_1();
__setProp___id106__Nivel24World_Capa1_1();
__setProp___id127__Nivel24World_Capa1_1();
__setProp___id114__Nivel24World_Capa1_1();
__setProp___id131__Nivel24World_Capa1_1();
}
function __setProp___id142__Nivel24World_Capa1_1(){
try {
__id142_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id142_.bodyAllowSleep = true;
__id142_.bodyAngularDamping = 0;
__id142_.bodyApplyGravity = true;
__id142_.bodyFixedRotation = false;
__id142_.bodyIsBullet = false;
__id142_.bodyIsSleeping = false;
__id142_.bodyIsStatic = true;
__id142_.bodyLinearDamping = 0;
__id142_.shapeCategoryBits = "0x0001";
__id142_.shapeDensity = 1;
__id142_.shapeFriction = 0.2;
__id142_.shapeGroupIndex = 0;
__id142_.shapeIsSensor = true;
__id142_.shapeMaskBits = "0xFFFF";
__id142_.shapeRestitution = 0;
try {
__id142_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id108__Nivel24World_Capa1_1(){
try {
__id108_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id108_.bodyAllowSleep = true;
__id108_.bodyAngularDamping = 0;
__id108_.bodyApplyGravity = false;
__id108_.bodyFixedRotation = false;
__id108_.bodyIsBullet = false;
__id108_.bodyIsSleeping = false;
__id108_.bodyIsStatic = true;
__id108_.bodyLinearDamping = 0;
__id108_.shapeCategoryBits = "0x0001";
__id108_.shapeDensity = 1;
__id108_.shapeFriction = 0.2;
__id108_.shapeGroupIndex = 0;
__id108_.shapeIsSensor = true;
__id108_.shapeMaskBits = "0xFFFF";
__id108_.shapeRestitution = 0;
__id108_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id108_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id114__Nivel24World_Capa1_1(){
try {
__id114_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id114_.bodyAllowSleep = true;
__id114_.bodyAngularDamping = 0;
__id114_.bodyApplyGravity = true;
__id114_.bodyFixedRotation = false;
__id114_.bodyIsBullet = false;
__id114_.bodyIsSleeping = false;
__id114_.bodyIsStatic = true;
__id114_.bodyLinearDamping = 0;
__id114_.shapeCategoryBits = "0x0001";
__id114_.shapeDensity = 1;
__id114_.shapeFriction = 0.2;
__id114_.shapeGroupIndex = 0;
__id114_.shapeIsSensor = false;
__id114_.shapeMaskBits = "0xFFFF";
__id114_.shapeRestitution = 0;
try {
__id114_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id111__Nivel24World_Capa1_1(){
try {
__id111_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id111_.bodyAllowSleep = true;
__id111_.bodyAngularDamping = 0;
__id111_.bodyApplyGravity = false;
__id111_.bodyFixedRotation = false;
__id111_.bodyIsBullet = false;
__id111_.bodyIsSleeping = false;
__id111_.bodyIsStatic = true;
__id111_.bodyLinearDamping = 0;
__id111_.shapeCategoryBits = "0x0001";
__id111_.shapeDensity = 1;
__id111_.shapeFriction = 0.2;
__id111_.shapeGroupIndex = 0;
__id111_.shapeIsSensor = true;
__id111_.shapeMaskBits = "0xFFFF";
__id111_.shapeRestitution = 0;
__id111_.validGoalBody = "";
try {
__id111_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id119__Nivel24World_Capa1_1(){
try {
__id119_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id119_.bodyAllowSleep = true;
__id119_.bodyAngularDamping = 0;
__id119_.bodyApplyGravity = true;
__id119_.bodyFixedRotation = false;
__id119_.bodyIsBullet = false;
__id119_.bodyIsSleeping = false;
__id119_.bodyIsStatic = true;
__id119_.bodyLinearDamping = 0;
__id119_.shapeCategoryBits = "0x0001";
__id119_.shapeDensity = 1;
__id119_.shapeFriction = 0.2;
__id119_.shapeGroupIndex = 0;
__id119_.shapeIsSensor = false;
__id119_.shapeMaskBits = "0xFFFF";
__id119_.shapeRestitution = 0;
try {
__id119_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id127__Nivel24World_Capa1_1(){
try {
__id127_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id127_.bodyAllowSleep = true;
__id127_.bodyAngularDamping = 0;
__id127_.bodyApplyGravity = true;
__id127_.bodyFixedRotation = false;
__id127_.bodyIsBullet = false;
__id127_.bodyIsSleeping = false;
__id127_.bodyIsStatic = true;
__id127_.bodyLinearDamping = 0;
__id127_.shapeCategoryBits = "0x0001";
__id127_.shapeDensity = 1;
__id127_.shapeFriction = 0.2;
__id127_.shapeGroupIndex = 0;
__id127_.shapeIsSensor = false;
__id127_.shapeMaskBits = "0xFFFF";
__id127_.shapeRestitution = 0;
try {
__id127_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id113__Nivel24World_Capa1_1(){
try {
__id113_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id113_.bodyAllowSleep = true;
__id113_.bodyAngularDamping = 0;
__id113_.bodyApplyGravity = true;
__id113_.bodyFixedRotation = false;
__id113_.bodyIsBullet = false;
__id113_.bodyIsSleeping = false;
__id113_.bodyIsStatic = true;
__id113_.bodyLinearDamping = 0;
__id113_.shapeCategoryBits = "0x0001";
__id113_.shapeDensity = 1;
__id113_.shapeFriction = 0.2;
__id113_.shapeGroupIndex = 0;
__id113_.shapeIsSensor = false;
__id113_.shapeMaskBits = "0xFFFF";
__id113_.shapeRestitution = 0;
try {
__id113_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id130__Nivel24World_Capa1_1(){
try {
__id130_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id130_.bodyAllowSleep = true;
__id130_.bodyAngularDamping = 0;
__id130_.bodyApplyGravity = true;
__id130_.bodyFixedRotation = false;
__id130_.bodyIsBullet = false;
__id130_.bodyIsSleeping = false;
__id130_.bodyIsStatic = true;
__id130_.bodyLinearDamping = 0;
__id130_.shapeCategoryBits = "0x0001";
__id130_.shapeDensity = 1;
__id130_.shapeFriction = 0.2;
__id130_.shapeGroupIndex = 0;
__id130_.shapeIsSensor = false;
__id130_.shapeMaskBits = "0xFFFF";
__id130_.shapeRestitution = 0;
try {
__id130_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id107__Nivel24World_Capa1_1(){
try {
__id107_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id107_.bodyAllowSleep = true;
__id107_.bodyAngularDamping = 0;
__id107_.bodyApplyGravity = false;
__id107_.bodyFixedRotation = false;
__id107_.bodyIsBullet = false;
__id107_.bodyIsSleeping = false;
__id107_.bodyIsStatic = true;
__id107_.bodyLinearDamping = 0;
__id107_.shapeCategoryBits = "0x0001";
__id107_.shapeDensity = 1;
__id107_.shapeFriction = 0.2;
__id107_.shapeGroupIndex = 0;
__id107_.shapeIsSensor = true;
__id107_.shapeMaskBits = "0xFFFF";
__id107_.shapeRestitution = 0;
__id107_.validGoalBody = "";
try {
__id107_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id110__Nivel24World_Capa1_1(){
try {
__id110_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id110_.nombre_figura = "jelly_pentagono";
try {
__id110_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id141__Nivel24World_Capa1_1(){
try {
__id141_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id141_.bodyAllowSleep = true;
__id141_.bodyAngularDamping = 0;
__id141_.bodyApplyGravity = true;
__id141_.bodyFixedRotation = false;
__id141_.bodyIsBullet = false;
__id141_.bodyIsSleeping = false;
__id141_.bodyIsStatic = true;
__id141_.bodyLinearDamping = 0;
__id141_.shapeCategoryBits = "0x0001";
__id141_.shapeDensity = 1;
__id141_.shapeFriction = 0.2;
__id141_.shapeGroupIndex = 0;
__id141_.shapeIsSensor = true;
__id141_.shapeMaskBits = "0xFFFF";
__id141_.shapeRestitution = 0;
try {
__id141_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id135__Nivel24World_Capa1_1(){
try {
__id135_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id135_.bodyAllowSleep = true;
__id135_.bodyAngularDamping = 0;
__id135_.bodyApplyGravity = true;
__id135_.bodyFixedRotation = false;
__id135_.bodyIsBullet = false;
__id135_.bodyIsSleeping = false;
__id135_.bodyIsStatic = true;
__id135_.bodyLinearDamping = 0;
__id135_.shapeCategoryBits = "0x0001";
__id135_.shapeDensity = 1;
__id135_.shapeFriction = 0.2;
__id135_.shapeGroupIndex = 0;
__id135_.shapeIsSensor = false;
__id135_.shapeMaskBits = "0xFFFF";
__id135_.shapeRestitution = 0;
try {
__id135_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id121__Nivel24World_Capa1_1(){
try {
__id121_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id121_.bodyAllowSleep = true;
__id121_.bodyAngularDamping = 0;
__id121_.bodyApplyGravity = true;
__id121_.bodyFixedRotation = false;
__id121_.bodyIsBullet = false;
__id121_.bodyIsSleeping = false;
__id121_.bodyIsStatic = true;
__id121_.bodyLinearDamping = 0;
__id121_.shapeCategoryBits = "0x0001";
__id121_.shapeDensity = 1;
__id121_.shapeFriction = 0.2;
__id121_.shapeGroupIndex = 0;
__id121_.shapeIsSensor = false;
__id121_.shapeMaskBits = "0xFFFF";
__id121_.shapeRestitution = 0;
try {
__id121_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id129__Nivel24World_Capa1_1(){
try {
__id129_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id129_.bodyAllowSleep = true;
__id129_.bodyAngularDamping = 0;
__id129_.bodyApplyGravity = true;
__id129_.bodyFixedRotation = false;
__id129_.bodyIsBullet = false;
__id129_.bodyIsSleeping = false;
__id129_.bodyIsStatic = true;
__id129_.bodyLinearDamping = 0;
__id129_.shapeCategoryBits = "0x0001";
__id129_.shapeDensity = 1;
__id129_.shapeFriction = 0.2;
__id129_.shapeGroupIndex = 0;
__id129_.shapeIsSensor = false;
__id129_.shapeMaskBits = "0xFFFF";
__id129_.shapeRestitution = 0;
try {
__id129_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id109__Nivel24World_Capa1_1(){
try {
__id109_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id109_.bodyAllowSleep = true;
__id109_.bodyAngularDamping = 0;
__id109_.bodyApplyGravity = false;
__id109_.bodyFixedRotation = false;
__id109_.bodyIsBullet = false;
__id109_.bodyIsSleeping = false;
__id109_.bodyIsStatic = true;
__id109_.bodyLinearDamping = 0;
__id109_.shapeCategoryBits = "0x0001";
__id109_.shapeDensity = 1;
__id109_.shapeFriction = 0.2;
__id109_.shapeGroupIndex = 0;
__id109_.shapeIsSensor = true;
__id109_.shapeMaskBits = "0xFFFF";
__id109_.shapeRestitution = 0;
__id109_.validGoalBody = "jelly_pentagono";
try {
__id109_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id112__Nivel24World_Capa1_1(){
try {
__id112_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id112_.bodyAllowSleep = true;
__id112_.bodyAngularDamping = 0;
__id112_.bodyApplyGravity = true;
__id112_.bodyFixedRotation = false;
__id112_.bodyIsBullet = false;
__id112_.bodyIsSleeping = true;
__id112_.bodyIsStatic = true;
__id112_.bodyLinearDamping = 0;
__id112_.shapeCategoryBits = "0x0001";
__id112_.shapeDensity = 1;
__id112_.shapeFriction = 0.2;
__id112_.shapeGroupIndex = 0;
__id112_.shapeIsSensor = false;
__id112_.shapeMaskBits = "0xFFFF";
__id112_.shapeRestitution = 0;
try {
__id112_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id140__Nivel24World_Capa1_1(){
try {
__id140_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id140_.bodyAllowSleep = true;
__id140_.bodyAngularDamping = 0;
__id140_.bodyApplyGravity = true;
__id140_.bodyFixedRotation = false;
__id140_.bodyIsBullet = false;
__id140_.bodyIsSleeping = false;
__id140_.bodyIsStatic = true;
__id140_.bodyLinearDamping = 0;
__id140_.shapeCategoryBits = "0x0001";
__id140_.shapeDensity = 1;
__id140_.shapeFriction = 0.2;
__id140_.shapeGroupIndex = 0;
__id140_.shapeIsSensor = true;
__id140_.shapeMaskBits = "0xFFFF";
__id140_.shapeRestitution = 0;
try {
__id140_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id106__Nivel24World_Capa1_1(){
try {
__id106_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id106_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id106_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id120__Nivel24World_Capa1_1(){
try {
__id120_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id120_.bodyAllowSleep = true;
__id120_.bodyAngularDamping = 0;
__id120_.bodyApplyGravity = true;
__id120_.bodyFixedRotation = false;
__id120_.bodyIsBullet = false;
__id120_.bodyIsSleeping = false;
__id120_.bodyIsStatic = true;
__id120_.bodyLinearDamping = 0;
__id120_.shapeCategoryBits = "0x0001";
__id120_.shapeDensity = 1;
__id120_.shapeFriction = 0.2;
__id120_.shapeGroupIndex = 0;
__id120_.shapeIsSensor = false;
__id120_.shapeMaskBits = "0xFFFF";
__id120_.shapeRestitution = 0;
try {
__id120_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id128__Nivel24World_Capa1_1(){
try {
__id128_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id128_.bodyAllowSleep = true;
__id128_.bodyAngularDamping = 0;
__id128_.bodyApplyGravity = true;
__id128_.bodyFixedRotation = false;
__id128_.bodyIsBullet = false;
__id128_.bodyIsSleeping = false;
__id128_.bodyIsStatic = true;
__id128_.bodyLinearDamping = 0;
__id128_.shapeCategoryBits = "0x0001";
__id128_.shapeDensity = 1;
__id128_.shapeFriction = 0.2;
__id128_.shapeGroupIndex = 0;
__id128_.shapeIsSensor = false;
__id128_.shapeMaskBits = "0xFFFF";
__id128_.shapeRestitution = 0;
try {
__id128_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id131__Nivel24World_Capa1_1(){
try {
__id131_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id131_.bodyAllowSleep = true;
__id131_.bodyAngularDamping = 0;
__id131_.bodyApplyGravity = true;
__id131_.bodyFixedRotation = false;
__id131_.bodyIsBullet = false;
__id131_.bodyIsSleeping = false;
__id131_.bodyIsStatic = true;
__id131_.bodyLinearDamping = 0;
__id131_.shapeCategoryBits = "0x0001";
__id131_.shapeDensity = 1;
__id131_.shapeFriction = 0.2;
__id131_.shapeGroupIndex = 0;
__id131_.shapeIsSensor = false;
__id131_.shapeMaskBits = "0xFFFF";
__id131_.shapeRestitution = 0;
try {
__id131_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 225
//Nivel25View (Nivel25View)
package {
import wck.*;
public dynamic class Nivel25View extends View {
}
}//package
Section 226
//Nivel25World (Nivel25World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel25World extends World {
public var __id72_:jelly_chivato;
public var __id84_:jelly_circulo;
public var __id85_:jelly_circulo;
public var __id73_:meta;
public var __id86_:jelly_rectangulo;
public var __id74_:meta;
public var __id75_:jelly_chivato;
public var __id103_:jelly_circulo;
public var __id104_:jelly_circulo;
public var __id77_:meta;
public var __id76_:jelly_chivato;
public var __id78_:jelly_marco_colision800x600;
public var __id79_:jelly_triangulo_equilatero;
public var __id81_:jelly_triangulo_equilatero;
public var __id80_:jelly_rectangulo;
public var __id82_:jelly_triangulo_equilatero;
public var __id70_:jelly_chivato;
public var __id83_:jelly_triangulo_equilatero;
public var __id71_:meta;
public function Nivel25World(){
__setProp___id85__Nivel25World_Capa1_1();
__setProp___id80__Nivel25World_Capa1_1();
__setProp___id79__Nivel25World_Capa1_1();
__setProp___id86__Nivel25World_Capa1_1();
__setProp___id81__Nivel25World_Capa1_1();
__setProp___id76__Nivel25World_Capa1_1();
__setProp___id74__Nivel25World_Capa1_1();
__setProp___id82__Nivel25World_Capa1_1();
__setProp___id75__Nivel25World_Capa1_1();
__setProp___id73__Nivel25World_Capa1_1();
__setProp___id83__Nivel25World_Capa1_1();
__setProp___id71__Nivel25World_Capa1_1();
__setProp___id104__Nivel25World_Capa1_1();
__setProp___id78__Nivel25World_Capa1_1();
__setProp___id72__Nivel25World_Capa1_1();
__setProp___id103__Nivel25World_Capa1_1();
__setProp___id70__Nivel25World_Capa1_1();
__setProp___id84__Nivel25World_Capa1_1();
__setProp___id77__Nivel25World_Capa1_1();
}
function __setProp___id81__Nivel25World_Capa1_1(){
try {
__id81_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id81_.bodyAllowSleep = true;
__id81_.bodyAngularDamping = 0;
__id81_.bodyApplyGravity = true;
__id81_.bodyFixedRotation = false;
__id81_.bodyIsBullet = false;
__id81_.bodyIsSleeping = false;
__id81_.bodyIsStatic = true;
__id81_.bodyLinearDamping = 0;
__id81_.shapeCategoryBits = "0x0001";
__id81_.shapeDensity = 1;
__id81_.shapeFriction = 0.2;
__id81_.shapeGroupIndex = 0;
__id81_.shapeIsSensor = false;
__id81_.shapeMaskBits = "0xFFFF";
__id81_.shapeRestitution = 0;
try {
__id81_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id75__Nivel25World_Capa1_1(){
try {
__id75_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id75_.nombre_figura = "jelly_rectangulo";
try {
__id75_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id86__Nivel25World_Capa1_1(){
try {
__id86_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id86_.bodyAllowSleep = true;
__id86_.bodyAngularDamping = 0;
__id86_.bodyApplyGravity = true;
__id86_.bodyFixedRotation = false;
__id86_.bodyIsBullet = false;
__id86_.bodyIsSleeping = false;
__id86_.bodyIsStatic = true;
__id86_.bodyLinearDamping = 0;
__id86_.shapeCategoryBits = "0x0001";
__id86_.shapeDensity = 1;
__id86_.shapeFriction = 0.2;
__id86_.shapeGroupIndex = 0;
__id86_.shapeIsSensor = false;
__id86_.shapeMaskBits = "0xFFFF";
__id86_.shapeRestitution = 0;
try {
__id86_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id72__Nivel25World_Capa1_1(){
try {
__id72_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id72_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id72_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id83__Nivel25World_Capa1_1(){
try {
__id83_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id83_.bodyAllowSleep = true;
__id83_.bodyAngularDamping = 0;
__id83_.bodyApplyGravity = true;
__id83_.bodyFixedRotation = false;
__id83_.bodyIsBullet = false;
__id83_.bodyIsSleeping = false;
__id83_.bodyIsStatic = true;
__id83_.bodyLinearDamping = 0;
__id83_.shapeCategoryBits = "0x0001";
__id83_.shapeDensity = 1;
__id83_.shapeFriction = 0.2;
__id83_.shapeGroupIndex = 0;
__id83_.shapeIsSensor = false;
__id83_.shapeMaskBits = "0xFFFF";
__id83_.shapeRestitution = 0;
try {
__id83_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id77__Nivel25World_Capa1_1(){
try {
__id77_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id77_.bodyAllowSleep = true;
__id77_.bodyAngularDamping = 0;
__id77_.bodyApplyGravity = false;
__id77_.bodyFixedRotation = false;
__id77_.bodyIsBullet = false;
__id77_.bodyIsSleeping = false;
__id77_.bodyIsStatic = true;
__id77_.bodyLinearDamping = 0;
__id77_.shapeCategoryBits = "0x0001";
__id77_.shapeDensity = 1;
__id77_.shapeFriction = 0.2;
__id77_.shapeGroupIndex = 0;
__id77_.shapeIsSensor = true;
__id77_.shapeMaskBits = "0xFFFF";
__id77_.shapeRestitution = 0;
__id77_.validGoalBody = "jelly_pentagono";
try {
__id77_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id104__Nivel25World_Capa1_1(){
try {
__id104_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id104_.bodyAllowSleep = true;
__id104_.bodyAngularDamping = 0;
__id104_.bodyApplyGravity = true;
__id104_.bodyFixedRotation = false;
__id104_.bodyIsBullet = false;
__id104_.bodyIsSleeping = false;
__id104_.bodyIsStatic = true;
__id104_.bodyLinearDamping = 0;
__id104_.shapeCategoryBits = "0x0001";
__id104_.shapeDensity = 1;
__id104_.shapeFriction = 0.2;
__id104_.shapeGroupIndex = 0;
__id104_.shapeIsSensor = false;
__id104_.shapeMaskBits = "0xFFFF";
__id104_.shapeRestitution = 0;
try {
__id104_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id80__Nivel25World_Capa1_1(){
try {
__id80_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id80_.bodyAllowSleep = true;
__id80_.bodyAngularDamping = 0;
__id80_.bodyApplyGravity = true;
__id80_.bodyFixedRotation = false;
__id80_.bodyIsBullet = false;
__id80_.bodyIsSleeping = false;
__id80_.bodyIsStatic = true;
__id80_.bodyLinearDamping = 0;
__id80_.shapeCategoryBits = "0x0001";
__id80_.shapeDensity = 1;
__id80_.shapeFriction = 0.2;
__id80_.shapeGroupIndex = 0;
__id80_.shapeIsSensor = false;
__id80_.shapeMaskBits = "0xFFFF";
__id80_.shapeRestitution = 0;
try {
__id80_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id85__Nivel25World_Capa1_1(){
try {
__id85_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id85_.bodyAllowSleep = true;
__id85_.bodyAngularDamping = 0;
__id85_.bodyApplyGravity = true;
__id85_.bodyFixedRotation = false;
__id85_.bodyIsBullet = false;
__id85_.bodyIsSleeping = false;
__id85_.bodyIsStatic = true;
__id85_.bodyLinearDamping = 0;
__id85_.shapeCategoryBits = "0x0001";
__id85_.shapeDensity = 1;
__id85_.shapeFriction = 0.2;
__id85_.shapeGroupIndex = 0;
__id85_.shapeIsSensor = false;
__id85_.shapeMaskBits = "0xFFFF";
__id85_.shapeRestitution = 0;
try {
__id85_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id74__Nivel25World_Capa1_1(){
try {
__id74_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id74_.bodyAllowSleep = true;
__id74_.bodyAngularDamping = 0;
__id74_.bodyApplyGravity = false;
__id74_.bodyFixedRotation = false;
__id74_.bodyIsBullet = false;
__id74_.bodyIsSleeping = false;
__id74_.bodyIsStatic = true;
__id74_.bodyLinearDamping = 0;
__id74_.shapeCategoryBits = "0x0001";
__id74_.shapeDensity = 1;
__id74_.shapeFriction = 0.2;
__id74_.shapeGroupIndex = 0;
__id74_.shapeIsSensor = true;
__id74_.shapeMaskBits = "0xFFFF";
__id74_.shapeRestitution = 0;
__id74_.validGoalBody = "jelly_rectangulo";
try {
__id74_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id71__Nivel25World_Capa1_1(){
try {
__id71_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id71_.bodyAllowSleep = true;
__id71_.bodyAngularDamping = 0;
__id71_.bodyApplyGravity = false;
__id71_.bodyFixedRotation = false;
__id71_.bodyIsBullet = false;
__id71_.bodyIsSleeping = false;
__id71_.bodyIsStatic = true;
__id71_.bodyLinearDamping = 0;
__id71_.shapeCategoryBits = "0x0001";
__id71_.shapeDensity = 1;
__id71_.shapeFriction = 0.2;
__id71_.shapeGroupIndex = 0;
__id71_.shapeIsSensor = true;
__id71_.shapeMaskBits = "0xFFFF";
__id71_.shapeRestitution = 0;
__id71_.validGoalBody = "jelly_circulo";
try {
__id71_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id82__Nivel25World_Capa1_1(){
try {
__id82_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id82_.bodyAllowSleep = true;
__id82_.bodyAngularDamping = 0;
__id82_.bodyApplyGravity = true;
__id82_.bodyFixedRotation = false;
__id82_.bodyIsBullet = false;
__id82_.bodyIsSleeping = false;
__id82_.bodyIsStatic = true;
__id82_.bodyLinearDamping = 0;
__id82_.shapeCategoryBits = "0x0001";
__id82_.shapeDensity = 1;
__id82_.shapeFriction = 0.2;
__id82_.shapeGroupIndex = 0;
__id82_.shapeIsSensor = false;
__id82_.shapeMaskBits = "0xFFFF";
__id82_.shapeRestitution = 0;
try {
__id82_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id79__Nivel25World_Capa1_1(){
try {
__id79_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id79_.bodyAllowSleep = true;
__id79_.bodyAngularDamping = 0;
__id79_.bodyApplyGravity = true;
__id79_.bodyFixedRotation = false;
__id79_.bodyIsBullet = false;
__id79_.bodyIsSleeping = false;
__id79_.bodyIsStatic = true;
__id79_.bodyLinearDamping = 0;
__id79_.shapeCategoryBits = "0x0001";
__id79_.shapeDensity = 1;
__id79_.shapeFriction = 0.2;
__id79_.shapeGroupIndex = 0;
__id79_.shapeIsSensor = false;
__id79_.shapeMaskBits = "0xFFFF";
__id79_.shapeRestitution = 0;
try {
__id79_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id76__Nivel25World_Capa1_1(){
try {
__id76_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id76_.nombre_figura = "jelly_pentagono";
try {
__id76_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id103__Nivel25World_Capa1_1(){
try {
__id103_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id103_.bodyAllowSleep = true;
__id103_.bodyAngularDamping = 0;
__id103_.bodyApplyGravity = true;
__id103_.bodyFixedRotation = false;
__id103_.bodyIsBullet = false;
__id103_.bodyIsSleeping = false;
__id103_.bodyIsStatic = true;
__id103_.bodyLinearDamping = 0;
__id103_.shapeCategoryBits = "0x0001";
__id103_.shapeDensity = 1;
__id103_.shapeFriction = 0.2;
__id103_.shapeGroupIndex = 0;
__id103_.shapeIsSensor = false;
__id103_.shapeMaskBits = "0xFFFF";
__id103_.shapeRestitution = 0;
try {
__id103_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id73__Nivel25World_Capa1_1(){
try {
__id73_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id73_.bodyAllowSleep = true;
__id73_.bodyAngularDamping = 0;
__id73_.bodyApplyGravity = false;
__id73_.bodyFixedRotation = false;
__id73_.bodyIsBullet = false;
__id73_.bodyIsSleeping = false;
__id73_.bodyIsStatic = true;
__id73_.bodyLinearDamping = 0;
__id73_.shapeCategoryBits = "0x0001";
__id73_.shapeDensity = 1;
__id73_.shapeFriction = 0.2;
__id73_.shapeGroupIndex = 0;
__id73_.shapeIsSensor = true;
__id73_.shapeMaskBits = "0xFFFF";
__id73_.shapeRestitution = 0;
__id73_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id73_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id84__Nivel25World_Capa1_1(){
try {
__id84_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id84_.bodyAllowSleep = true;
__id84_.bodyAngularDamping = 0;
__id84_.bodyApplyGravity = true;
__id84_.bodyFixedRotation = false;
__id84_.bodyIsBullet = false;
__id84_.bodyIsSleeping = false;
__id84_.bodyIsStatic = true;
__id84_.bodyLinearDamping = 0;
__id84_.shapeCategoryBits = "0x0001";
__id84_.shapeDensity = 1;
__id84_.shapeFriction = 0.2;
__id84_.shapeGroupIndex = 0;
__id84_.shapeIsSensor = false;
__id84_.shapeMaskBits = "0xFFFF";
__id84_.shapeRestitution = 0;
try {
__id84_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id70__Nivel25World_Capa1_1(){
try {
__id70_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id70_.nombre_figura = "jelly_circulo";
try {
__id70_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id78__Nivel25World_Capa1_1(){
try {
__id78_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id78_.bodyAllowSleep = true;
__id78_.bodyAngularDamping = 0;
__id78_.bodyApplyGravity = true;
__id78_.bodyFixedRotation = false;
__id78_.bodyIsBullet = false;
__id78_.bodyIsSleeping = true;
__id78_.bodyIsStatic = true;
__id78_.bodyLinearDamping = 0;
__id78_.shapeCategoryBits = "0x0001";
__id78_.shapeDensity = 1;
__id78_.shapeFriction = 0.2;
__id78_.shapeGroupIndex = 0;
__id78_.shapeIsSensor = false;
__id78_.shapeMaskBits = "0xFFFF";
__id78_.shapeRestitution = 0;
try {
__id78_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 227
//Nivel26View (Nivel26View)
package {
import wck.*;
public dynamic class Nivel26View extends View {
}
}//package
Section 228
//Nivel26World (Nivel26World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel26World extends World {
public var __id10_:muro;
public var __id11_:muro;
public var __id9_:muro;
public var __id12_:muro;
public function Nivel26World(){
__setProp___id12__Nivel26World_Capa1_1();
__setProp___id9__Nivel26World_Capa1_1();
__setProp___id10__Nivel26World_Capa1_1();
__setProp___id11__Nivel26World_Capa1_1();
}
function __setProp___id10__Nivel26World_Capa1_1(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.bodyAllowSleep = false;
__id10_.bodyAngularDamping = 0;
__id10_.bodyApplyGravity = false;
__id10_.bodyFixedRotation = false;
__id10_.bodyIsBullet = false;
__id10_.bodyIsSleeping = true;
__id10_.bodyIsStatic = true;
__id10_.bodyLinearDamping = 0;
__id10_.shapeCategoryBits = "0x0001";
__id10_.shapeDensity = 1;
__id10_.shapeFriction = 0.2;
__id10_.shapeGroupIndex = 0;
__id10_.shapeIsSensor = false;
__id10_.shapeMaskBits = "0xFFFF";
__id10_.shapeRestitution = 0;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id9__Nivel26World_Capa1_1(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.bodyAllowSleep = true;
__id9_.bodyAngularDamping = 0;
__id9_.bodyApplyGravity = true;
__id9_.bodyFixedRotation = false;
__id9_.bodyIsBullet = false;
__id9_.bodyIsSleeping = true;
__id9_.bodyIsStatic = true;
__id9_.bodyLinearDamping = 0;
__id9_.shapeCategoryBits = "0x0001";
__id9_.shapeDensity = 1;
__id9_.shapeFriction = 0.2;
__id9_.shapeGroupIndex = 0;
__id9_.shapeIsSensor = false;
__id9_.shapeMaskBits = "0xFFFF";
__id9_.shapeRestitution = 0;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id12__Nivel26World_Capa1_1(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.bodyAllowSleep = false;
__id12_.bodyAngularDamping = 0;
__id12_.bodyApplyGravity = false;
__id12_.bodyFixedRotation = false;
__id12_.bodyIsBullet = false;
__id12_.bodyIsSleeping = true;
__id12_.bodyIsStatic = true;
__id12_.bodyLinearDamping = 0;
__id12_.shapeCategoryBits = "0x0001";
__id12_.shapeDensity = 1;
__id12_.shapeFriction = 0.2;
__id12_.shapeGroupIndex = 0;
__id12_.shapeIsSensor = false;
__id12_.shapeMaskBits = "0xFFFF";
__id12_.shapeRestitution = 0;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id11__Nivel26World_Capa1_1(){
try {
__id11_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id11_.bodyAllowSleep = false;
__id11_.bodyAngularDamping = 0;
__id11_.bodyApplyGravity = false;
__id11_.bodyFixedRotation = false;
__id11_.bodyIsBullet = false;
__id11_.bodyIsSleeping = true;
__id11_.bodyIsStatic = true;
__id11_.bodyLinearDamping = 0;
__id11_.shapeCategoryBits = "0x0001";
__id11_.shapeDensity = 1;
__id11_.shapeFriction = 0.2;
__id11_.shapeGroupIndex = 0;
__id11_.shapeIsSensor = false;
__id11_.shapeMaskBits = "0xFFFF";
__id11_.shapeRestitution = 0;
try {
__id11_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 229
//Nivel27View (Nivel27View)
package {
import wck.*;
public dynamic class Nivel27View extends View {
}
}//package
Section 230
//Nivel27World (Nivel27World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel27World extends World {
public var __id17_:muro;
public var __id14_:muro;
public var __id15_:muro;
public var __id16_:muro;
public function Nivel27World(){
__setProp___id14__Nivel27World_Capa1_1();
__setProp___id15__Nivel27World_Capa1_1();
__setProp___id16__Nivel27World_Capa1_1();
__setProp___id17__Nivel27World_Capa1_1();
}
function __setProp___id15__Nivel27World_Capa1_1(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.bodyAllowSleep = false;
__id15_.bodyAngularDamping = 0;
__id15_.bodyApplyGravity = false;
__id15_.bodyFixedRotation = false;
__id15_.bodyIsBullet = false;
__id15_.bodyIsSleeping = true;
__id15_.bodyIsStatic = true;
__id15_.bodyLinearDamping = 0;
__id15_.shapeCategoryBits = "0x0001";
__id15_.shapeDensity = 1;
__id15_.shapeFriction = 0.2;
__id15_.shapeGroupIndex = 0;
__id15_.shapeIsSensor = false;
__id15_.shapeMaskBits = "0xFFFF";
__id15_.shapeRestitution = 0;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id17__Nivel27World_Capa1_1(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.bodyAllowSleep = false;
__id17_.bodyAngularDamping = 0;
__id17_.bodyApplyGravity = false;
__id17_.bodyFixedRotation = false;
__id17_.bodyIsBullet = false;
__id17_.bodyIsSleeping = true;
__id17_.bodyIsStatic = true;
__id17_.bodyLinearDamping = 0;
__id17_.shapeCategoryBits = "0x0001";
__id17_.shapeDensity = 1;
__id17_.shapeFriction = 0.2;
__id17_.shapeGroupIndex = 0;
__id17_.shapeIsSensor = false;
__id17_.shapeMaskBits = "0xFFFF";
__id17_.shapeRestitution = 0;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id14__Nivel27World_Capa1_1(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.bodyAllowSleep = true;
__id14_.bodyAngularDamping = 0;
__id14_.bodyApplyGravity = true;
__id14_.bodyFixedRotation = false;
__id14_.bodyIsBullet = false;
__id14_.bodyIsSleeping = true;
__id14_.bodyIsStatic = true;
__id14_.bodyLinearDamping = 0;
__id14_.shapeCategoryBits = "0x0001";
__id14_.shapeDensity = 1;
__id14_.shapeFriction = 0.2;
__id14_.shapeGroupIndex = 0;
__id14_.shapeIsSensor = false;
__id14_.shapeMaskBits = "0xFFFF";
__id14_.shapeRestitution = 0;
try {
__id14_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id16__Nivel27World_Capa1_1(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.bodyAllowSleep = false;
__id16_.bodyAngularDamping = 0;
__id16_.bodyApplyGravity = false;
__id16_.bodyFixedRotation = false;
__id16_.bodyIsBullet = false;
__id16_.bodyIsSleeping = true;
__id16_.bodyIsStatic = true;
__id16_.bodyLinearDamping = 0;
__id16_.shapeCategoryBits = "0x0001";
__id16_.shapeDensity = 1;
__id16_.shapeFriction = 0.2;
__id16_.shapeGroupIndex = 0;
__id16_.shapeIsSensor = false;
__id16_.shapeMaskBits = "0xFFFF";
__id16_.shapeRestitution = 0;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 231
//Nivel28View (Nivel28View)
package {
import wck.*;
public dynamic class Nivel28View extends View {
}
}//package
Section 232
//Nivel28World (Nivel28World)
package {
import wck.*;
public dynamic class Nivel28World extends World {
}
}//package
Section 233
//Nivel29View (Nivel29View)
package {
import wck.*;
public dynamic class Nivel29View extends View {
}
}//package
Section 234
//Nivel29World (Nivel29World)
package {
import wck.*;
public dynamic class Nivel29World extends World {
}
}//package
Section 235
//Nivel2View (Nivel2View)
package {
import wck.*;
public dynamic class Nivel2View extends View {
}
}//package
Section 236
//Nivel2World (Nivel2World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel2World extends World {
public var __id540_:muro;
public var __id541_:jelly_cuadrado;
public var __id542_:jelly_cuadrado;
public var __id538_:jelly_marco_colision800x600;
public var __id539_:meta;
public function Nivel2World(){
__setProp___id541__Nivel2World_Capa1_1();
__setProp___id538__Nivel2World_Capa1_1();
__setProp___id542__Nivel2World_Capa1_1();
__setProp___id539__Nivel2World_Capa1_1();
__setProp___id540__Nivel2World_Capa1_1();
}
function __setProp___id540__Nivel2World_Capa1_1(){
try {
__id540_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id540_.bodyAllowSleep = true;
__id540_.bodyAngularDamping = 0;
__id540_.bodyApplyGravity = true;
__id540_.bodyFixedRotation = false;
__id540_.bodyIsBullet = false;
__id540_.bodyIsSleeping = false;
__id540_.bodyIsStatic = true;
__id540_.bodyLinearDamping = 0;
__id540_.shapeCategoryBits = "0x0001";
__id540_.shapeDensity = 1;
__id540_.shapeFriction = 0.2;
__id540_.shapeGroupIndex = 0;
__id540_.shapeIsSensor = false;
__id540_.shapeMaskBits = "0xFFFF";
__id540_.shapeRestitution = 0;
try {
__id540_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id539__Nivel2World_Capa1_1(){
try {
__id539_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id539_.bodyAllowSleep = true;
__id539_.bodyAngularDamping = 0;
__id539_.bodyApplyGravity = false;
__id539_.bodyFixedRotation = false;
__id539_.bodyIsBullet = false;
__id539_.bodyIsSleeping = false;
__id539_.bodyIsStatic = true;
__id539_.bodyLinearDamping = 0;
__id539_.shapeCategoryBits = "0x0001";
__id539_.shapeDensity = 1;
__id539_.shapeFriction = 0.2;
__id539_.shapeGroupIndex = 0;
__id539_.shapeIsSensor = true;
__id539_.shapeMaskBits = "0xFFFF";
__id539_.shapeRestitution = 0;
__id539_.validGoalBody = "";
try {
__id539_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id541__Nivel2World_Capa1_1(){
try {
__id541_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id541_.bodyAllowSleep = true;
__id541_.bodyAngularDamping = 0;
__id541_.bodyApplyGravity = true;
__id541_.bodyFixedRotation = false;
__id541_.bodyIsBullet = false;
__id541_.bodyIsSleeping = false;
__id541_.bodyIsStatic = false;
__id541_.bodyLinearDamping = 0;
__id541_.shapeCategoryBits = "0x0001";
__id541_.shapeDensity = 1;
__id541_.shapeFriction = 1.2;
__id541_.shapeGroupIndex = 0;
__id541_.shapeIsSensor = false;
__id541_.shapeMaskBits = "0xFFFF";
__id541_.shapeRestitution = 0.5;
try {
__id541_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id542__Nivel2World_Capa1_1(){
try {
__id542_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id542_.bodyAllowSleep = true;
__id542_.bodyAngularDamping = 0;
__id542_.bodyApplyGravity = true;
__id542_.bodyFixedRotation = false;
__id542_.bodyIsBullet = false;
__id542_.bodyIsSleeping = false;
__id542_.bodyIsStatic = false;
__id542_.bodyLinearDamping = 0;
__id542_.shapeCategoryBits = "0x0001";
__id542_.shapeDensity = 1;
__id542_.shapeFriction = 1;
__id542_.shapeGroupIndex = 0;
__id542_.shapeIsSensor = false;
__id542_.shapeMaskBits = "0xFFFF";
__id542_.shapeRestitution = 0.5;
try {
__id542_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id538__Nivel2World_Capa1_1(){
try {
__id538_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id538_.bodyAllowSleep = true;
__id538_.bodyAngularDamping = 0;
__id538_.bodyApplyGravity = true;
__id538_.bodyFixedRotation = false;
__id538_.bodyIsBullet = false;
__id538_.bodyIsSleeping = true;
__id538_.bodyIsStatic = true;
__id538_.bodyLinearDamping = 0;
__id538_.shapeCategoryBits = "0x0001";
__id538_.shapeDensity = 1;
__id538_.shapeFriction = 0.2;
__id538_.shapeGroupIndex = 0;
__id538_.shapeIsSensor = false;
__id538_.shapeMaskBits = "0xFFFF";
__id538_.shapeRestitution = 0;
try {
__id538_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 237
//Nivel30View (Nivel30View)
package {
import wck.*;
public dynamic class Nivel30View extends View {
}
}//package
Section 238
//Nivel30World (Nivel30World)
package {
import wck.*;
public dynamic class Nivel30World extends World {
}
}//package
Section 239
//Nivel31View (Nivel31View)
package {
import wck.*;
public dynamic class Nivel31View extends View {
}
}//package
Section 240
//Nivel31World (Nivel31World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel31World extends World {
public var __id50_:muro;
public var __id51_:muro;
public var __id63_:muro;
public var __id52_:muro;
public var __id41_:muro;
public var __id64_:muro;
public var __id65_:zonatregua;
public var __id42_:muro;
public var __id66_:zonatregua;
public var __id43_:muro;
public var __id67_:jelly_marco_colision800x600;
public var __id45_:muro;
public var __id44_:muro;
public var __id33_:jelly_marco_colision800x600;
public var __id46_:muro;
public var __id47_:muro;
public var __id36_:jelly_chivato;
public var __id48_:muro;
public var __id37_:jelly_chivato;
public var __id49_:muro;
public var __id38_:muro;
public var __id39_:muro;
public var __id27_:meta;
public var __id28_:meta;
public function Nivel31World(){
__setProp___id42__Nivel31World_Capa1_1();
__setProp___id52__Nivel31World_Capa1_1();
__setProp___id67__Nivel31World_Capa1_1();
__setProp___id50__Nivel31World_Capa1_1();
__setProp___id43__Nivel31World_Capa1_1();
__setProp___id65__Nivel31World_Capa1_1();
__setProp___id64__Nivel31World_Capa1_1();
__setProp___id51__Nivel31World_Capa1_1();
__setProp___id46__Nivel31World_Capa1_1();
__setProp___id36__Nivel31World_Capa1_1();
__setProp___id41__Nivel31World_Capa1_1();
__setProp___id33__Nivel31World_Capa1_1();
__setProp___id44__Nivel31World_Capa1_1();
__setProp___id47__Nivel31World_Capa1_1();
__setProp___id45__Nivel31World_Capa1_1();
__setProp___id37__Nivel31World_Capa1_1();
__setProp___id28__Nivel31World_Capa1_1();
__setProp___id66__Nivel31World_Capa1_1();
__setProp___id27__Nivel31World_Capa1_1();
__setProp___id63__Nivel31World_Capa1_1();
__setProp___id48__Nivel31World_Capa1_1();
__setProp___id39__Nivel31World_Capa1_1();
__setProp___id49__Nivel31World_Capa1_1();
__setProp___id38__Nivel31World_Capa1_1();
}
function __setProp___id33__Nivel31World_Capa1_1(){
try {
__id33_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id33_.bodyAllowSleep = true;
__id33_.bodyAngularDamping = 0;
__id33_.bodyApplyGravity = true;
__id33_.bodyFixedRotation = false;
__id33_.bodyIsBullet = false;
__id33_.bodyIsSleeping = true;
__id33_.bodyIsStatic = true;
__id33_.bodyLinearDamping = 0;
__id33_.shapeCategoryBits = "0x0001";
__id33_.shapeDensity = 1;
__id33_.shapeFriction = 0.2;
__id33_.shapeGroupIndex = 0;
__id33_.shapeIsSensor = false;
__id33_.shapeMaskBits = "0xFFFF";
__id33_.shapeRestitution = 0;
try {
__id33_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id44__Nivel31World_Capa1_1(){
try {
__id44_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id44_.bodyAllowSleep = true;
__id44_.bodyAngularDamping = 0;
__id44_.bodyApplyGravity = true;
__id44_.bodyFixedRotation = false;
__id44_.bodyIsBullet = false;
__id44_.bodyIsSleeping = false;
__id44_.bodyIsStatic = true;
__id44_.bodyLinearDamping = 0;
__id44_.shapeCategoryBits = "0x0001";
__id44_.shapeDensity = 1;
__id44_.shapeFriction = 0.2;
__id44_.shapeGroupIndex = 0;
__id44_.shapeIsSensor = false;
__id44_.shapeMaskBits = "0xFFFF";
__id44_.shapeRestitution = 0;
try {
__id44_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id27__Nivel31World_Capa1_1(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.bodyAllowSleep = true;
__id27_.bodyAngularDamping = 0;
__id27_.bodyApplyGravity = false;
__id27_.bodyFixedRotation = false;
__id27_.bodyIsBullet = false;
__id27_.bodyIsSleeping = false;
__id27_.bodyIsStatic = true;
__id27_.bodyLinearDamping = 0;
__id27_.shapeCategoryBits = "0x0001";
__id27_.shapeDensity = 1;
__id27_.shapeFriction = 0.2;
__id27_.shapeGroupIndex = 0;
__id27_.shapeIsSensor = true;
__id27_.shapeMaskBits = "0xFFFF";
__id27_.shapeRestitution = 0;
__id27_.validGoalBody = "jelly_pentagono";
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id41__Nivel31World_Capa1_1(){
try {
__id41_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id41_.bodyAllowSleep = true;
__id41_.bodyAngularDamping = 0;
__id41_.bodyApplyGravity = true;
__id41_.bodyFixedRotation = false;
__id41_.bodyIsBullet = false;
__id41_.bodyIsSleeping = false;
__id41_.bodyIsStatic = true;
__id41_.bodyLinearDamping = 0;
__id41_.shapeCategoryBits = "0x0001";
__id41_.shapeDensity = 1;
__id41_.shapeFriction = 0.2;
__id41_.shapeGroupIndex = 0;
__id41_.shapeIsSensor = false;
__id41_.shapeMaskBits = "0xFFFF";
__id41_.shapeRestitution = 0;
try {
__id41_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id49__Nivel31World_Capa1_1(){
try {
__id49_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id49_.bodyAllowSleep = true;
__id49_.bodyAngularDamping = 0;
__id49_.bodyApplyGravity = true;
__id49_.bodyFixedRotation = false;
__id49_.bodyIsBullet = false;
__id49_.bodyIsSleeping = false;
__id49_.bodyIsStatic = true;
__id49_.bodyLinearDamping = 0;
__id49_.shapeCategoryBits = "0x0001";
__id49_.shapeDensity = 1;
__id49_.shapeFriction = 0.2;
__id49_.shapeGroupIndex = 0;
__id49_.shapeIsSensor = false;
__id49_.shapeMaskBits = "0xFFFF";
__id49_.shapeRestitution = 0;
try {
__id49_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id66__Nivel31World_Capa1_1(){
try {
__id66_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id66_.bodyAllowSleep = true;
__id66_.bodyAngularDamping = 0;
__id66_.bodyApplyGravity = true;
__id66_.bodyFixedRotation = false;
__id66_.bodyIsBullet = false;
__id66_.bodyIsSleeping = false;
__id66_.bodyIsStatic = true;
__id66_.bodyLinearDamping = 0;
__id66_.shapeCategoryBits = "0x0001";
__id66_.shapeDensity = 1;
__id66_.shapeFriction = 0.2;
__id66_.shapeGroupIndex = 0;
__id66_.shapeIsSensor = true;
__id66_.shapeMaskBits = "0xFFFF";
__id66_.shapeRestitution = 0;
try {
__id66_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id38__Nivel31World_Capa1_1(){
try {
__id38_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id38_.bodyAllowSleep = true;
__id38_.bodyAngularDamping = 0;
__id38_.bodyApplyGravity = true;
__id38_.bodyFixedRotation = false;
__id38_.bodyIsBullet = false;
__id38_.bodyIsSleeping = false;
__id38_.bodyIsStatic = true;
__id38_.bodyLinearDamping = 0;
__id38_.shapeCategoryBits = "0x0001";
__id38_.shapeDensity = 1;
__id38_.shapeFriction = 0.2;
__id38_.shapeGroupIndex = 0;
__id38_.shapeIsSensor = false;
__id38_.shapeMaskBits = "0xFFFF";
__id38_.shapeRestitution = 0;
try {
__id38_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id46__Nivel31World_Capa1_1(){
try {
__id46_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id46_.bodyAllowSleep = true;
__id46_.bodyAngularDamping = 0;
__id46_.bodyApplyGravity = true;
__id46_.bodyFixedRotation = false;
__id46_.bodyIsBullet = false;
__id46_.bodyIsSleeping = false;
__id46_.bodyIsStatic = true;
__id46_.bodyLinearDamping = 0;
__id46_.shapeCategoryBits = "0x0001";
__id46_.shapeDensity = 1;
__id46_.shapeFriction = 0.2;
__id46_.shapeGroupIndex = 0;
__id46_.shapeIsSensor = false;
__id46_.shapeMaskBits = "0xFFFF";
__id46_.shapeRestitution = 0;
try {
__id46_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id63__Nivel31World_Capa1_1(){
try {
__id63_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id63_.bodyAllowSleep = true;
__id63_.bodyAngularDamping = 0;
__id63_.bodyApplyGravity = true;
__id63_.bodyFixedRotation = false;
__id63_.bodyIsBullet = false;
__id63_.bodyIsSleeping = false;
__id63_.bodyIsStatic = true;
__id63_.bodyLinearDamping = 0;
__id63_.shapeCategoryBits = "0x0001";
__id63_.shapeDensity = 1;
__id63_.shapeFriction = 0.2;
__id63_.shapeGroupIndex = 0;
__id63_.shapeIsSensor = false;
__id63_.shapeMaskBits = "0xFFFF";
__id63_.shapeRestitution = 0;
try {
__id63_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id52__Nivel31World_Capa1_1(){
try {
__id52_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id52_.bodyAllowSleep = true;
__id52_.bodyAngularDamping = 0;
__id52_.bodyApplyGravity = true;
__id52_.bodyFixedRotation = false;
__id52_.bodyIsBullet = false;
__id52_.bodyIsSleeping = false;
__id52_.bodyIsStatic = true;
__id52_.bodyLinearDamping = 0;
__id52_.shapeCategoryBits = "0x0001";
__id52_.shapeDensity = 1;
__id52_.shapeFriction = 0.2;
__id52_.shapeGroupIndex = 0;
__id52_.shapeIsSensor = false;
__id52_.shapeMaskBits = "0xFFFF";
__id52_.shapeRestitution = 0;
try {
__id52_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id43__Nivel31World_Capa1_1(){
try {
__id43_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id43_.bodyAllowSleep = true;
__id43_.bodyAngularDamping = 0;
__id43_.bodyApplyGravity = true;
__id43_.bodyFixedRotation = false;
__id43_.bodyIsBullet = false;
__id43_.bodyIsSleeping = false;
__id43_.bodyIsStatic = true;
__id43_.bodyLinearDamping = 0;
__id43_.shapeCategoryBits = "0x0001";
__id43_.shapeDensity = 1;
__id43_.shapeFriction = 0.2;
__id43_.shapeGroupIndex = 0;
__id43_.shapeIsSensor = false;
__id43_.shapeMaskBits = "0xFFFF";
__id43_.shapeRestitution = 0;
try {
__id43_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id37__Nivel31World_Capa1_1(){
try {
__id37_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id37_.nombre_figura = "jelly_pentagono";
try {
__id37_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id48__Nivel31World_Capa1_1(){
try {
__id48_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id48_.bodyAllowSleep = true;
__id48_.bodyAngularDamping = 0;
__id48_.bodyApplyGravity = true;
__id48_.bodyFixedRotation = false;
__id48_.bodyIsBullet = false;
__id48_.bodyIsSleeping = false;
__id48_.bodyIsStatic = true;
__id48_.bodyLinearDamping = 0;
__id48_.shapeCategoryBits = "0x0001";
__id48_.shapeDensity = 1;
__id48_.shapeFriction = 0.2;
__id48_.shapeGroupIndex = 0;
__id48_.shapeIsSensor = false;
__id48_.shapeMaskBits = "0xFFFF";
__id48_.shapeRestitution = 0;
try {
__id48_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id65__Nivel31World_Capa1_1(){
try {
__id65_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id65_.bodyAllowSleep = true;
__id65_.bodyAngularDamping = 0;
__id65_.bodyApplyGravity = true;
__id65_.bodyFixedRotation = false;
__id65_.bodyIsBullet = false;
__id65_.bodyIsSleeping = false;
__id65_.bodyIsStatic = true;
__id65_.bodyLinearDamping = 0;
__id65_.shapeCategoryBits = "0x0001";
__id65_.shapeDensity = 1;
__id65_.shapeFriction = 0.2;
__id65_.shapeGroupIndex = 0;
__id65_.shapeIsSensor = true;
__id65_.shapeMaskBits = "0xFFFF";
__id65_.shapeRestitution = 0;
try {
__id65_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id51__Nivel31World_Capa1_1(){
try {
__id51_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id51_.bodyAllowSleep = true;
__id51_.bodyAngularDamping = 0;
__id51_.bodyApplyGravity = true;
__id51_.bodyFixedRotation = false;
__id51_.bodyIsBullet = false;
__id51_.bodyIsSleeping = false;
__id51_.bodyIsStatic = true;
__id51_.bodyLinearDamping = 0;
__id51_.shapeCategoryBits = "0x0001";
__id51_.shapeDensity = 1;
__id51_.shapeFriction = 0.2;
__id51_.shapeGroupIndex = 0;
__id51_.shapeIsSensor = false;
__id51_.shapeMaskBits = "0xFFFF";
__id51_.shapeRestitution = 0;
try {
__id51_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id45__Nivel31World_Capa1_1(){
try {
__id45_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id45_.bodyAllowSleep = true;
__id45_.bodyAngularDamping = 0;
__id45_.bodyApplyGravity = true;
__id45_.bodyFixedRotation = false;
__id45_.bodyIsBullet = false;
__id45_.bodyIsSleeping = false;
__id45_.bodyIsStatic = true;
__id45_.bodyLinearDamping = 0;
__id45_.shapeCategoryBits = "0x0001";
__id45_.shapeDensity = 1;
__id45_.shapeFriction = 0.2;
__id45_.shapeGroupIndex = 0;
__id45_.shapeIsSensor = false;
__id45_.shapeMaskBits = "0xFFFF";
__id45_.shapeRestitution = 0;
try {
__id45_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id28__Nivel31World_Capa1_1(){
try {
__id28_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id28_.bodyAllowSleep = true;
__id28_.bodyAngularDamping = 0;
__id28_.bodyApplyGravity = false;
__id28_.bodyFixedRotation = false;
__id28_.bodyIsBullet = false;
__id28_.bodyIsSleeping = false;
__id28_.bodyIsStatic = true;
__id28_.bodyLinearDamping = 0;
__id28_.shapeCategoryBits = "0x0001";
__id28_.shapeDensity = 1;
__id28_.shapeFriction = 0.2;
__id28_.shapeGroupIndex = 0;
__id28_.shapeIsSensor = true;
__id28_.shapeMaskBits = "0xFFFF";
__id28_.shapeRestitution = 0;
__id28_.validGoalBody = "jelly_triangulo_equilatero";
try {
__id28_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id39__Nivel31World_Capa1_1(){
try {
__id39_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id39_.bodyAllowSleep = true;
__id39_.bodyAngularDamping = 0;
__id39_.bodyApplyGravity = true;
__id39_.bodyFixedRotation = false;
__id39_.bodyIsBullet = false;
__id39_.bodyIsSleeping = false;
__id39_.bodyIsStatic = true;
__id39_.bodyLinearDamping = 0;
__id39_.shapeCategoryBits = "0x0001";
__id39_.shapeDensity = 1;
__id39_.shapeFriction = 0.2;
__id39_.shapeGroupIndex = 0;
__id39_.shapeIsSensor = false;
__id39_.shapeMaskBits = "0xFFFF";
__id39_.shapeRestitution = 0;
try {
__id39_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id42__Nivel31World_Capa1_1(){
try {
__id42_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id42_.bodyAllowSleep = true;
__id42_.bodyAngularDamping = 0;
__id42_.bodyApplyGravity = true;
__id42_.bodyFixedRotation = false;
__id42_.bodyIsBullet = false;
__id42_.bodyIsSleeping = false;
__id42_.bodyIsStatic = true;
__id42_.bodyLinearDamping = 0;
__id42_.shapeCategoryBits = "0x0001";
__id42_.shapeDensity = 1;
__id42_.shapeFriction = 0.2;
__id42_.shapeGroupIndex = 0;
__id42_.shapeIsSensor = false;
__id42_.shapeMaskBits = "0xFFFF";
__id42_.shapeRestitution = 0;
try {
__id42_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id67__Nivel31World_Capa1_1(){
try {
__id67_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id67_.bodyAllowSleep = true;
__id67_.bodyAngularDamping = 0;
__id67_.bodyApplyGravity = true;
__id67_.bodyFixedRotation = false;
__id67_.bodyIsBullet = false;
__id67_.bodyIsSleeping = true;
__id67_.bodyIsStatic = true;
__id67_.bodyLinearDamping = 0;
__id67_.shapeCategoryBits = "0x0001";
__id67_.shapeDensity = 1;
__id67_.shapeFriction = 0.2;
__id67_.shapeGroupIndex = 0;
__id67_.shapeIsSensor = false;
__id67_.shapeMaskBits = "0xFFFF";
__id67_.shapeRestitution = 0;
try {
__id67_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id36__Nivel31World_Capa1_1(){
try {
__id36_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id36_.nombre_figura = "jelly_triangulo_equilatero";
try {
__id36_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id64__Nivel31World_Capa1_1(){
try {
__id64_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id64_.bodyAllowSleep = true;
__id64_.bodyAngularDamping = 0;
__id64_.bodyApplyGravity = true;
__id64_.bodyFixedRotation = false;
__id64_.bodyIsBullet = false;
__id64_.bodyIsSleeping = false;
__id64_.bodyIsStatic = true;
__id64_.bodyLinearDamping = 0;
__id64_.shapeCategoryBits = "0x0001";
__id64_.shapeDensity = 1;
__id64_.shapeFriction = 0.2;
__id64_.shapeGroupIndex = 0;
__id64_.shapeIsSensor = false;
__id64_.shapeMaskBits = "0xFFFF";
__id64_.shapeRestitution = 0;
try {
__id64_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id47__Nivel31World_Capa1_1(){
try {
__id47_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id47_.bodyAllowSleep = true;
__id47_.bodyAngularDamping = 0;
__id47_.bodyApplyGravity = true;
__id47_.bodyFixedRotation = false;
__id47_.bodyIsBullet = false;
__id47_.bodyIsSleeping = false;
__id47_.bodyIsStatic = true;
__id47_.bodyLinearDamping = 0;
__id47_.shapeCategoryBits = "0x0001";
__id47_.shapeDensity = 1;
__id47_.shapeFriction = 0.2;
__id47_.shapeGroupIndex = 0;
__id47_.shapeIsSensor = false;
__id47_.shapeMaskBits = "0xFFFF";
__id47_.shapeRestitution = 0;
try {
__id47_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id50__Nivel31World_Capa1_1(){
try {
__id50_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id50_.bodyAllowSleep = true;
__id50_.bodyAngularDamping = 0;
__id50_.bodyApplyGravity = true;
__id50_.bodyFixedRotation = false;
__id50_.bodyIsBullet = false;
__id50_.bodyIsSleeping = false;
__id50_.bodyIsStatic = true;
__id50_.bodyLinearDamping = 0;
__id50_.shapeCategoryBits = "0x0001";
__id50_.shapeDensity = 1;
__id50_.shapeFriction = 0.2;
__id50_.shapeGroupIndex = 0;
__id50_.shapeIsSensor = false;
__id50_.shapeMaskBits = "0xFFFF";
__id50_.shapeRestitution = 0;
try {
__id50_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 241
//Nivel32View (Nivel32View)
package {
import wck.*;
public dynamic class Nivel32View extends View {
}
}//package
Section 242
//Nivel32World (Nivel32World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel32World extends World {
public var __id22_:muro;
public var __id23_:muro;
public var __id24_:muro;
public var __id25_:muro;
public function Nivel32World(){
__setProp___id23__Nivel32World_Capa1_1();
__setProp___id24__Nivel32World_Capa1_1();
__setProp___id25__Nivel32World_Capa1_1();
__setProp___id22__Nivel32World_Capa1_1();
}
function __setProp___id23__Nivel32World_Capa1_1(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.bodyAllowSleep = false;
__id23_.bodyAngularDamping = 0;
__id23_.bodyApplyGravity = false;
__id23_.bodyFixedRotation = false;
__id23_.bodyIsBullet = false;
__id23_.bodyIsSleeping = true;
__id23_.bodyIsStatic = true;
__id23_.bodyLinearDamping = 0;
__id23_.shapeCategoryBits = "0x0001";
__id23_.shapeDensity = 1;
__id23_.shapeFriction = 0.2;
__id23_.shapeGroupIndex = 0;
__id23_.shapeIsSensor = false;
__id23_.shapeMaskBits = "0xFFFF";
__id23_.shapeRestitution = 0;
try {
__id23_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id25__Nivel32World_Capa1_1(){
try {
__id25_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id25_.bodyAllowSleep = false;
__id25_.bodyAngularDamping = 0;
__id25_.bodyApplyGravity = false;
__id25_.bodyFixedRotation = false;
__id25_.bodyIsBullet = false;
__id25_.bodyIsSleeping = true;
__id25_.bodyIsStatic = true;
__id25_.bodyLinearDamping = 0;
__id25_.shapeCategoryBits = "0x0001";
__id25_.shapeDensity = 1;
__id25_.shapeFriction = 0.2;
__id25_.shapeGroupIndex = 0;
__id25_.shapeIsSensor = false;
__id25_.shapeMaskBits = "0xFFFF";
__id25_.shapeRestitution = 0;
try {
__id25_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id22__Nivel32World_Capa1_1(){
try {
__id22_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id22_.bodyAllowSleep = true;
__id22_.bodyAngularDamping = 0;
__id22_.bodyApplyGravity = true;
__id22_.bodyFixedRotation = false;
__id22_.bodyIsBullet = false;
__id22_.bodyIsSleeping = true;
__id22_.bodyIsStatic = true;
__id22_.bodyLinearDamping = 0;
__id22_.shapeCategoryBits = "0x0001";
__id22_.shapeDensity = 1;
__id22_.shapeFriction = 0.2;
__id22_.shapeGroupIndex = 0;
__id22_.shapeIsSensor = false;
__id22_.shapeMaskBits = "0xFFFF";
__id22_.shapeRestitution = 0;
try {
__id22_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id24__Nivel32World_Capa1_1(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.bodyAllowSleep = false;
__id24_.bodyAngularDamping = 0;
__id24_.bodyApplyGravity = false;
__id24_.bodyFixedRotation = false;
__id24_.bodyIsBullet = false;
__id24_.bodyIsSleeping = true;
__id24_.bodyIsStatic = true;
__id24_.bodyLinearDamping = 0;
__id24_.shapeCategoryBits = "0x0001";
__id24_.shapeDensity = 1;
__id24_.shapeFriction = 0.2;
__id24_.shapeGroupIndex = 0;
__id24_.shapeIsSensor = false;
__id24_.shapeMaskBits = "0xFFFF";
__id24_.shapeRestitution = 0;
try {
__id24_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 243
//Nivel3View (Nivel3View)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel3View extends View {
public var __id537_:Nivel3World;
public function Nivel3View(){
__setProp___id537__Nivel3View_Capa1_1();
}
function __setProp___id537__Nivel3View_Capa1_1(){
try {
__id537_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id537_.boundsBottom = -10000000000;
__id537_.boundsLeft = -10000000000;
__id537_.boundsRight = 10000000000;
__id537_.boundsTop = 10000000000;
__id537_.doSleep = true;
__id537_.gravityRadial = 0;
__id537_.gravityX = 0;
__id537_.gravityY = 30;
__id537_.iterations = 10;
__id537_.keepCenteredOn = "";
__id537_.scale = 40;
__id537_.timeStep = 0.025;
try {
__id537_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 244
//Nivel3World (Nivel3World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel3World extends World {
public var __id529_:muro;
public var __id530_:muro;
public var __id531_:muro;
public var __id532_:muro;
public var __id533_:muro;
public var __id534_:muro;
public var __id535_:jelly_circulo;
public var __id524_:jelly_chivato;
public var __id536_:jelly_rectangulo;
public var __id525_:meta;
public var __id526_:muro;
public var __id527_:muro;
public var __id528_:muro;
public function Nivel3World(){
__setProp___id536__Nivel3World_Capa1_1();
__setProp___id535__Nivel3World_Capa1_1();
__setProp___id534__Nivel3World_Capa1_1();
__setProp___id527__Nivel3World_Capa1_1();
__setProp___id531__Nivel3World_Capa1_1();
__setProp___id529__Nivel3World_Capa1_1();
__setProp___id533__Nivel3World_Capa1_1();
__setProp___id528__Nivel3World_Capa1_1();
__setProp___id530__Nivel3World_Capa1_1();
__setProp___id525__Nivel3World_Capa1_1();
__setProp___id532__Nivel3World_Capa1_1();
__setProp___id524__Nivel3World_Capa1_1();
__setProp___id526__Nivel3World_Capa1_1();
}
function __setProp___id528__Nivel3World_Capa1_1(){
try {
__id528_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id528_.bodyAllowSleep = true;
__id528_.bodyAngularDamping = 0;
__id528_.bodyApplyGravity = true;
__id528_.bodyFixedRotation = false;
__id528_.bodyIsBullet = false;
__id528_.bodyIsSleeping = true;
__id528_.bodyIsStatic = true;
__id528_.bodyLinearDamping = 0;
__id528_.shapeCategoryBits = "0x0001";
__id528_.shapeDensity = 1;
__id528_.shapeFriction = 0.2;
__id528_.shapeGroupIndex = 0;
__id528_.shapeIsSensor = false;
__id528_.shapeMaskBits = "0xFFFF";
__id528_.shapeRestitution = 0;
try {
__id528_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id536__Nivel3World_Capa1_1(){
try {
__id536_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id536_.bodyAllowSleep = true;
__id536_.bodyAngularDamping = 0;
__id536_.bodyApplyGravity = true;
__id536_.bodyFixedRotation = false;
__id536_.bodyIsBullet = false;
__id536_.bodyIsSleeping = false;
__id536_.bodyIsStatic = false;
__id536_.bodyLinearDamping = 0;
__id536_.shapeCategoryBits = "0x0001";
__id536_.shapeDensity = 1;
__id536_.shapeFriction = 1;
__id536_.shapeGroupIndex = 0;
__id536_.shapeIsSensor = false;
__id536_.shapeMaskBits = "0xFFFF";
__id536_.shapeRestitution = 0;
try {
__id536_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id533__Nivel3World_Capa1_1(){
try {
__id533_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id533_.bodyAllowSleep = true;
__id533_.bodyAngularDamping = 0;
__id533_.bodyApplyGravity = true;
__id533_.bodyFixedRotation = false;
__id533_.bodyIsBullet = false;
__id533_.bodyIsSleeping = true;
__id533_.bodyIsStatic = true;
__id533_.bodyLinearDamping = 0;
__id533_.shapeCategoryBits = "0x0001";
__id533_.shapeDensity = 1;
__id533_.shapeFriction = 0.2;
__id533_.shapeGroupIndex = 0;
__id533_.shapeIsSensor = false;
__id533_.shapeMaskBits = "0xFFFF";
__id533_.shapeRestitution = 0;
try {
__id533_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id530__Nivel3World_Capa1_1(){
try {
__id530_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id530_.bodyAllowSleep = true;
__id530_.bodyAngularDamping = 0;
__id530_.bodyApplyGravity = true;
__id530_.bodyFixedRotation = false;
__id530_.bodyIsBullet = false;
__id530_.bodyIsSleeping = true;
__id530_.bodyIsStatic = true;
__id530_.bodyLinearDamping = 0;
__id530_.shapeCategoryBits = "0x0001";
__id530_.shapeDensity = 1;
__id530_.shapeFriction = 0.2;
__id530_.shapeGroupIndex = 0;
__id530_.shapeIsSensor = false;
__id530_.shapeMaskBits = "0xFFFF";
__id530_.shapeRestitution = 0;
try {
__id530_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id525__Nivel3World_Capa1_1(){
try {
__id525_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id525_.bodyAllowSleep = true;
__id525_.bodyAngularDamping = 0;
__id525_.bodyApplyGravity = false;
__id525_.bodyFixedRotation = false;
__id525_.bodyIsBullet = false;
__id525_.bodyIsSleeping = false;
__id525_.bodyIsStatic = true;
__id525_.bodyLinearDamping = 0;
__id525_.shapeCategoryBits = "0x0001";
__id525_.shapeDensity = 1;
__id525_.shapeFriction = 0.2;
__id525_.shapeGroupIndex = 0;
__id525_.shapeIsSensor = true;
__id525_.shapeMaskBits = "0xFFFF";
__id525_.shapeRestitution = 0;
__id525_.validGoalBody = "jelly_circulo";
try {
__id525_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id529__Nivel3World_Capa1_1(){
try {
__id529_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id529_.bodyAllowSleep = true;
__id529_.bodyAngularDamping = 0;
__id529_.bodyApplyGravity = true;
__id529_.bodyFixedRotation = false;
__id529_.bodyIsBullet = false;
__id529_.bodyIsSleeping = true;
__id529_.bodyIsStatic = true;
__id529_.bodyLinearDamping = 0;
__id529_.shapeCategoryBits = "0x0001";
__id529_.shapeDensity = 1;
__id529_.shapeFriction = 0.2;
__id529_.shapeGroupIndex = 0;
__id529_.shapeIsSensor = false;
__id529_.shapeMaskBits = "0xFFFF";
__id529_.shapeRestitution = 0;
try {
__id529_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id534__Nivel3World_Capa1_1(){
try {
__id534_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id534_.bodyAllowSleep = true;
__id534_.bodyAngularDamping = 0;
__id534_.bodyApplyGravity = true;
__id534_.bodyFixedRotation = false;
__id534_.bodyIsBullet = false;
__id534_.bodyIsSleeping = true;
__id534_.bodyIsStatic = true;
__id534_.bodyLinearDamping = 0;
__id534_.shapeCategoryBits = "0x0001";
__id534_.shapeDensity = 1;
__id534_.shapeFriction = 0.2;
__id534_.shapeGroupIndex = 0;
__id534_.shapeIsSensor = false;
__id534_.shapeMaskBits = "0xFFFF";
__id534_.shapeRestitution = 0;
try {
__id534_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id526__Nivel3World_Capa1_1(){
try {
__id526_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id526_.bodyAllowSleep = true;
__id526_.bodyAngularDamping = 0;
__id526_.bodyApplyGravity = true;
__id526_.bodyFixedRotation = false;
__id526_.bodyIsBullet = false;
__id526_.bodyIsSleeping = true;
__id526_.bodyIsStatic = true;
__id526_.bodyLinearDamping = 0;
__id526_.shapeCategoryBits = "0x0001";
__id526_.shapeDensity = 1;
__id526_.shapeFriction = 0.2;
__id526_.shapeGroupIndex = 0;
__id526_.shapeIsSensor = false;
__id526_.shapeMaskBits = "0xFFFF";
__id526_.shapeRestitution = 0;
try {
__id526_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id531__Nivel3World_Capa1_1(){
try {
__id531_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id531_.bodyAllowSleep = true;
__id531_.bodyAngularDamping = 0;
__id531_.bodyApplyGravity = true;
__id531_.bodyFixedRotation = false;
__id531_.bodyIsBullet = false;
__id531_.bodyIsSleeping = true;
__id531_.bodyIsStatic = true;
__id531_.bodyLinearDamping = 0;
__id531_.shapeCategoryBits = "0x0001";
__id531_.shapeDensity = 1;
__id531_.shapeFriction = 0.2;
__id531_.shapeGroupIndex = 0;
__id531_.shapeIsSensor = false;
__id531_.shapeMaskBits = "0xFFFF";
__id531_.shapeRestitution = 0;
try {
__id531_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id527__Nivel3World_Capa1_1(){
try {
__id527_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id527_.bodyAllowSleep = true;
__id527_.bodyAngularDamping = 0;
__id527_.bodyApplyGravity = true;
__id527_.bodyFixedRotation = false;
__id527_.bodyIsBullet = false;
__id527_.bodyIsSleeping = true;
__id527_.bodyIsStatic = true;
__id527_.bodyLinearDamping = 0;
__id527_.shapeCategoryBits = "0x0001";
__id527_.shapeDensity = 1;
__id527_.shapeFriction = 0.2;
__id527_.shapeGroupIndex = 0;
__id527_.shapeIsSensor = false;
__id527_.shapeMaskBits = "0xFFFF";
__id527_.shapeRestitution = 0;
try {
__id527_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id535__Nivel3World_Capa1_1(){
try {
__id535_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id535_.bodyAllowSleep = true;
__id535_.bodyAngularDamping = 0;
__id535_.bodyApplyGravity = true;
__id535_.bodyFixedRotation = false;
__id535_.bodyIsBullet = false;
__id535_.bodyIsSleeping = false;
__id535_.bodyIsStatic = false;
__id535_.bodyLinearDamping = 0;
__id535_.shapeCategoryBits = "0x0001";
__id535_.shapeDensity = 10;
__id535_.shapeFriction = 0.4;
__id535_.shapeGroupIndex = 0;
__id535_.shapeIsSensor = false;
__id535_.shapeMaskBits = "0xFFFF";
__id535_.shapeRestitution = 0;
try {
__id535_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id524__Nivel3World_Capa1_1(){
try {
__id524_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id524_.nombre_figura = "jelly_circulo";
try {
__id524_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id532__Nivel3World_Capa1_1(){
try {
__id532_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id532_.bodyAllowSleep = true;
__id532_.bodyAngularDamping = 0;
__id532_.bodyApplyGravity = true;
__id532_.bodyFixedRotation = false;
__id532_.bodyIsBullet = false;
__id532_.bodyIsSleeping = true;
__id532_.bodyIsStatic = true;
__id532_.bodyLinearDamping = 0;
__id532_.shapeCategoryBits = "0x0001";
__id532_.shapeDensity = 1;
__id532_.shapeFriction = 0.2;
__id532_.shapeGroupIndex = 0;
__id532_.shapeIsSensor = false;
__id532_.shapeMaskBits = "0xFFFF";
__id532_.shapeRestitution = 0;
try {
__id532_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 245
//Nivel99View (Nivel99View)
package {
import wck.*;
public dynamic class Nivel99View extends View {
}
}//package
Section 246
//Nivel99World (Nivel99World)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class Nivel99World extends World {
public var __id20_:muro;
public function Nivel99World(){
__setProp___id20__Nivel99World_Capa1_1();
}
function __setProp___id20__Nivel99World_Capa1_1(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.bodyAllowSleep = true;
__id20_.bodyAngularDamping = 0;
__id20_.bodyApplyGravity = true;
__id20_.bodyFixedRotation = false;
__id20_.bodyIsBullet = false;
__id20_.bodyIsSleeping = true;
__id20_.bodyIsStatic = true;
__id20_.bodyLinearDamping = 0;
__id20_.shapeCategoryBits = "0x0001";
__id20_.shapeDensity = 1;
__id20_.shapeFriction = 0.2;
__id20_.shapeGroupIndex = 0;
__id20_.shapeIsSensor = false;
__id20_.shapeMaskBits = "0xFFFF";
__id20_.shapeRestitution = 0;
try {
__id20_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 247
//NivelDummyView (NivelDummyView)
package {
import wck.*;
public dynamic class NivelDummyView extends View {
}
}//package
Section 248
//NivelDummyWorld (NivelDummyWorld)
package {
import wck.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class NivelDummyWorld extends World {
public var __id1_:MovieClip;
public var __id2_:MovieClip;
public var __id3_:MovieClip;
public function NivelDummyWorld(){
__setProp_codo_derecho_NivelDummyWorld_Capa1_1();
__setProp_pecho_NivelDummyWorld_Capa1_1();
__setProp_pierna_superior_derecha_NivelDummyWorld_Capa1_1();
__setProp_pierna_superior_izquierda_NivelDummyWorld_Capa1_1();
__setProp_cabeza_NivelDummyWorld_Capa1_1();
__setProp_rodilla_derecha_NivelDummyWorld_Capa1_1();
__setProp_hombro_derecho_NivelDummyWorld_Capa1_1();
__setProp_estomago_NivelDummyWorld_Capa1_1();
__setProp_rodilla_izquierda_NivelDummyWorld_Capa1_1();
__setProp_hombro_izquierdo_NivelDummyWorld_Capa1_1();
__setProp___id2__NivelDummyWorld_Capa1_1();
__setProp_pelvis_derecha_NivelDummyWorld_Capa1_1();
__setProp___id3__NivelDummyWorld_Capa1_1();
__setProp_pelvis_NivelDummyWorld_Capa1_1();
__setProp_pierna_inferior_derecha_NivelDummyWorld_Capa1_1();
__setProp_torso_inferior_NivelDummyWorld_Capa1_1();
__setProp_torso_superior_NivelDummyWorld_Capa1_1();
__setProp___id1__NivelDummyWorld_Capa1_1();
__setProp_pelvis_izquierda_NivelDummyWorld_Capa1_1();
__setProp_codo_izquierdo_NivelDummyWorld_Capa1_1();
__setProp_brazo_inferior_derecho_NivelDummyWorld_Capa1_1();
__setProp_pierna_inferior_izquierda_NivelDummyWorld_Capa1_1();
__setProp_brazo_superior_derecho_NivelDummyWorld_Capa1_1();
__setProp_brazo_inferior_izquierdo_NivelDummyWorld_Capa1_1();
__setProp_cuello_NivelDummyWorld_Capa1_1();
__setProp_torso_central_NivelDummyWorld_Capa1_1();
__setProp_brazo_superior_izquierdo_NivelDummyWorld_Capa1_1();
}
function __setProp_torso_superior_NivelDummyWorld_Capa1_1(){
try {
torso_superior["componentInspectorSetting"] = true;
} catch(e:Error) {
};
torso_superior.bodyAllowSleep = true;
torso_superior.bodyAngularDamping = 0;
torso_superior.bodyApplyGravity = true;
torso_superior.bodyFixedRotation = false;
torso_superior.bodyIsBullet = false;
torso_superior.bodyIsSleeping = false;
torso_superior.bodyIsStatic = false;
torso_superior.bodyLinearDamping = 0;
torso_superior.shapeCategoryBits = "0x0001";
torso_superior.shapeDensity = 1;
torso_superior.shapeFriction = 0.4;
torso_superior.shapeGroupIndex = 0;
torso_superior.shapeIsSensor = false;
torso_superior.shapeMaskBits = "0xFFFF";
torso_superior.shapeRestitution = 0.1;
try {
torso_superior["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_rodilla_izquierda_NivelDummyWorld_Capa1_1(){
try {
rodilla_izquierda["componentInspectorSetting"] = true;
} catch(e:Error) {
};
rodilla_izquierda.body2Name = "pierna_superior_izquierda";
rodilla_izquierda.bodyName = "pierna_inferior_izquierda";
rodilla_izquierda.collideConnected = false;
rodilla_izquierda.enableLimit = true;
rodilla_izquierda.enableMotor = false;
rodilla_izquierda.lineParameter = "0x888888";
rodilla_izquierda.lineStyle = "Line";
rodilla_izquierda.lowerLimit = -0.436;
rodilla_izquierda.pathReturns = false;
rodilla_izquierda.speed1 = 0;
rodilla_izquierda.speed2 = 0;
rodilla_izquierda.speedFlag = "";
rodilla_izquierda.spring = false;
rodilla_izquierda.springConstant = 0;
rodilla_izquierda.springDamping = 0;
rodilla_izquierda.strength = 0;
rodilla_izquierda.targetName = "";
rodilla_izquierda.type = "RevolutePin";
rodilla_izquierda.upperLimit = 2.006;
try {
rodilla_izquierda["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id2__NivelDummyWorld_Capa1_1(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.bodyAllowSleep = true;
__id2_.bodyAngularDamping = 0;
__id2_.bodyApplyGravity = true;
__id2_.bodyFixedRotation = false;
__id2_.bodyIsBullet = false;
__id2_.bodyIsSleeping = false;
__id2_.bodyIsStatic = false;
__id2_.bodyLinearDamping = 0;
__id2_.shapeCategoryBits = "0x0001";
__id2_.shapeDensity = 0.1;
__id2_.shapeFriction = 0.2;
__id2_.shapeGroupIndex = 0;
__id2_.shapeIsSensor = false;
__id2_.shapeMaskBits = "0xFFFF";
__id2_.shapeRestitution = 0;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pelvis_NivelDummyWorld_Capa1_1(){
try {
pelvis["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pelvis.body2Name = "torso_central";
pelvis.bodyName = "torso_inferior";
pelvis.collideConnected = false;
pelvis.enableLimit = true;
pelvis.enableMotor = false;
pelvis.lineParameter = "0x888888";
pelvis.lineStyle = "Line";
pelvis.lowerLimit = -0.261;
pelvis.pathReturns = false;
pelvis.speed1 = 0;
pelvis.speed2 = 0;
pelvis.speedFlag = "";
pelvis.spring = false;
pelvis.springConstant = 0;
pelvis.springDamping = 0;
pelvis.strength = 0;
pelvis.targetName = "";
pelvis.type = "RevolutePin";
pelvis.upperLimit = 0.261;
try {
pelvis["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_hombro_izquierdo_NivelDummyWorld_Capa1_1(){
try {
hombro_izquierdo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
hombro_izquierdo.body2Name = "torso_superior";
hombro_izquierdo.bodyName = "brazo_superior_izquierdo";
hombro_izquierdo.collideConnected = false;
hombro_izquierdo.enableLimit = true;
hombro_izquierdo.enableMotor = false;
hombro_izquierdo.lineParameter = "0x888888";
hombro_izquierdo.lineStyle = "Line";
hombro_izquierdo.lowerLimit = -1.483;
hombro_izquierdo.pathReturns = false;
hombro_izquierdo.speed1 = 0;
hombro_izquierdo.speed2 = 0;
hombro_izquierdo.speedFlag = "";
hombro_izquierdo.spring = false;
hombro_izquierdo.springConstant = 0;
hombro_izquierdo.springDamping = 0;
hombro_izquierdo.strength = 0;
hombro_izquierdo.targetName = "";
hombro_izquierdo.type = "RevolutePin";
hombro_izquierdo.upperLimit = 2.268;
try {
hombro_izquierdo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pierna_inferior_izquierda_NivelDummyWorld_Capa1_1(){
try {
pierna_inferior_izquierda["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pierna_inferior_izquierda.bodyAllowSleep = true;
pierna_inferior_izquierda.bodyAngularDamping = 0;
pierna_inferior_izquierda.bodyApplyGravity = true;
pierna_inferior_izquierda.bodyFixedRotation = false;
pierna_inferior_izquierda.bodyIsBullet = false;
pierna_inferior_izquierda.bodyIsSleeping = false;
pierna_inferior_izquierda.bodyIsStatic = false;
pierna_inferior_izquierda.bodyLinearDamping = 0;
pierna_inferior_izquierda.shapeCategoryBits = "0x0001";
pierna_inferior_izquierda.shapeDensity = 1;
pierna_inferior_izquierda.shapeFriction = 0.4;
pierna_inferior_izquierda.shapeGroupIndex = 0;
pierna_inferior_izquierda.shapeIsSensor = false;
pierna_inferior_izquierda.shapeMaskBits = "0xFFFF";
pierna_inferior_izquierda.shapeRestitution = 0.1;
try {
pierna_inferior_izquierda["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pelvis_derecha_NivelDummyWorld_Capa1_1(){
try {
pelvis_derecha["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pelvis_derecha.body2Name = "pierna_superior_derecha";
pelvis_derecha.bodyName = "torso_inferior";
pelvis_derecha.collideConnected = false;
pelvis_derecha.enableLimit = true;
pelvis_derecha.enableMotor = false;
pelvis_derecha.lineParameter = "0x888888";
pelvis_derecha.lineStyle = "Line";
pelvis_derecha.lowerLimit = -0.785;
pelvis_derecha.pathReturns = false;
pelvis_derecha.speed1 = 0;
pelvis_derecha.speed2 = 0;
pelvis_derecha.speedFlag = "";
pelvis_derecha.spring = false;
pelvis_derecha.springConstant = 0;
pelvis_derecha.springDamping = 0;
pelvis_derecha.strength = 0;
pelvis_derecha.targetName = "";
pelvis_derecha.type = "RevolutePin";
pelvis_derecha.upperLimit = 0.436;
try {
pelvis_derecha["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_estomago_NivelDummyWorld_Capa1_1(){
try {
estomago["componentInspectorSetting"] = true;
} catch(e:Error) {
};
estomago.body2Name = "torso_superior";
estomago.bodyName = "torso_central";
estomago.collideConnected = false;
estomago.enableLimit = true;
estomago.enableMotor = false;
estomago.lineParameter = "0x888888";
estomago.lineStyle = "Line";
estomago.lowerLimit = -0.261;
estomago.pathReturns = false;
estomago.speed1 = 0;
estomago.speed2 = 0;
estomago.speedFlag = "";
estomago.spring = false;
estomago.springConstant = 0;
estomago.springDamping = 0;
estomago.strength = 0;
estomago.targetName = "";
estomago.type = "RevolutePin";
estomago.upperLimit = 0.261;
try {
estomago["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_brazo_superior_derecho_NivelDummyWorld_Capa1_1(){
try {
brazo_superior_derecho["componentInspectorSetting"] = true;
} catch(e:Error) {
};
brazo_superior_derecho.bodyAllowSleep = true;
brazo_superior_derecho.bodyAngularDamping = 0;
brazo_superior_derecho.bodyApplyGravity = true;
brazo_superior_derecho.bodyFixedRotation = false;
brazo_superior_derecho.bodyIsBullet = false;
brazo_superior_derecho.bodyIsSleeping = false;
brazo_superior_derecho.bodyIsStatic = false;
brazo_superior_derecho.bodyLinearDamping = 0;
brazo_superior_derecho.shapeCategoryBits = "0x0001";
brazo_superior_derecho.shapeDensity = 1;
brazo_superior_derecho.shapeFriction = 0.4;
brazo_superior_derecho.shapeGroupIndex = 0;
brazo_superior_derecho.shapeIsSensor = false;
brazo_superior_derecho.shapeMaskBits = "0xFFFF";
brazo_superior_derecho.shapeRestitution = 0.1;
try {
brazo_superior_derecho["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_brazo_inferior_izquierdo_NivelDummyWorld_Capa1_1(){
try {
brazo_inferior_izquierdo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
brazo_inferior_izquierdo.bodyAllowSleep = true;
brazo_inferior_izquierdo.bodyAngularDamping = 0;
brazo_inferior_izquierdo.bodyApplyGravity = true;
brazo_inferior_izquierdo.bodyFixedRotation = false;
brazo_inferior_izquierdo.bodyIsBullet = false;
brazo_inferior_izquierdo.bodyIsSleeping = false;
brazo_inferior_izquierdo.bodyIsStatic = false;
brazo_inferior_izquierdo.bodyLinearDamping = 0;
brazo_inferior_izquierdo.shapeCategoryBits = "0x0001";
brazo_inferior_izquierdo.shapeDensity = 1;
brazo_inferior_izquierdo.shapeFriction = 0.4;
brazo_inferior_izquierdo.shapeGroupIndex = 0;
brazo_inferior_izquierdo.shapeIsSensor = false;
brazo_inferior_izquierdo.shapeMaskBits = "0xFFFF";
brazo_inferior_izquierdo.shapeRestitution = 0.1;
try {
brazo_inferior_izquierdo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pierna_superior_derecha_NivelDummyWorld_Capa1_1(){
try {
pierna_superior_derecha["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pierna_superior_derecha.bodyAllowSleep = true;
pierna_superior_derecha.bodyAngularDamping = 0;
pierna_superior_derecha.bodyApplyGravity = true;
pierna_superior_derecha.bodyFixedRotation = false;
pierna_superior_derecha.bodyIsBullet = false;
pierna_superior_derecha.bodyIsSleeping = false;
pierna_superior_derecha.bodyIsStatic = false;
pierna_superior_derecha.bodyLinearDamping = 0;
pierna_superior_derecha.shapeCategoryBits = "0x0001";
pierna_superior_derecha.shapeDensity = 1;
pierna_superior_derecha.shapeFriction = 0.4;
pierna_superior_derecha.shapeGroupIndex = 0;
pierna_superior_derecha.shapeIsSensor = false;
pierna_superior_derecha.shapeMaskBits = "0xFFFF";
pierna_superior_derecha.shapeRestitution = 0.1;
try {
pierna_superior_derecha["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pecho_NivelDummyWorld_Capa1_1(){
try {
pecho["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pecho.body2Name = "cabeza";
pecho.bodyName = "torso_superior";
pecho.collideConnected = false;
pecho.enableLimit = true;
pecho.enableMotor = false;
pecho.lineParameter = "0x888888";
pecho.lineStyle = "Line";
pecho.lowerLimit = -0.698;
pecho.pathReturns = false;
pecho.speed1 = 0;
pecho.speed2 = 0;
pecho.speedFlag = "";
pecho.spring = false;
pecho.springConstant = 0;
pecho.springDamping = 0;
pecho.strength = 0;
pecho.targetName = "";
pecho.type = "RevolutePin";
pecho.upperLimit = 0.698;
try {
pecho["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id1__NivelDummyWorld_Capa1_1(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.bodyAllowSleep = true;
__id1_.bodyAngularDamping = 0;
__id1_.bodyApplyGravity = true;
__id1_.bodyFixedRotation = false;
__id1_.bodyIsBullet = false;
__id1_.bodyIsSleeping = false;
__id1_.bodyIsStatic = false;
__id1_.bodyLinearDamping = 0;
__id1_.shapeCategoryBits = "0x0001";
__id1_.shapeDensity = 0.1;
__id1_.shapeFriction = 0.2;
__id1_.shapeGroupIndex = 0;
__id1_.shapeIsSensor = false;
__id1_.shapeMaskBits = "0xFFFF";
__id1_.shapeRestitution = 0;
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_hombro_derecho_NivelDummyWorld_Capa1_1(){
try {
hombro_derecho["componentInspectorSetting"] = true;
} catch(e:Error) {
};
hombro_derecho.body2Name = "torso_superior";
hombro_derecho.bodyName = "brazo_superior_derecho";
hombro_derecho.collideConnected = false;
hombro_derecho.enableLimit = true;
hombro_derecho.enableMotor = false;
hombro_derecho.lineParameter = "0x888888";
hombro_derecho.lineStyle = "Line";
hombro_derecho.lowerLimit = -2.268;
hombro_derecho.pathReturns = false;
hombro_derecho.speed1 = 0;
hombro_derecho.speed2 = 0;
hombro_derecho.speedFlag = "";
hombro_derecho.spring = false;
hombro_derecho.springConstant = 0;
hombro_derecho.springDamping = 0;
hombro_derecho.strength = 0;
hombro_derecho.targetName = "";
hombro_derecho.type = "RevolutePin";
hombro_derecho.upperLimit = 1.483;
try {
hombro_derecho["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_brazo_inferior_derecho_NivelDummyWorld_Capa1_1(){
try {
brazo_inferior_derecho["componentInspectorSetting"] = true;
} catch(e:Error) {
};
brazo_inferior_derecho.bodyAllowSleep = true;
brazo_inferior_derecho.bodyAngularDamping = 0;
brazo_inferior_derecho.bodyApplyGravity = true;
brazo_inferior_derecho.bodyFixedRotation = false;
brazo_inferior_derecho.bodyIsBullet = false;
brazo_inferior_derecho.bodyIsSleeping = false;
brazo_inferior_derecho.bodyIsStatic = false;
brazo_inferior_derecho.bodyLinearDamping = 0;
brazo_inferior_derecho.shapeCategoryBits = "0x0001";
brazo_inferior_derecho.shapeDensity = 1;
brazo_inferior_derecho.shapeFriction = 0.4;
brazo_inferior_derecho.shapeGroupIndex = 0;
brazo_inferior_derecho.shapeIsSensor = false;
brazo_inferior_derecho.shapeMaskBits = "0xFFFF";
brazo_inferior_derecho.shapeRestitution = 0.1;
try {
brazo_inferior_derecho["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pierna_inferior_derecha_NivelDummyWorld_Capa1_1(){
try {
pierna_inferior_derecha["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pierna_inferior_derecha.bodyAllowSleep = true;
pierna_inferior_derecha.bodyAngularDamping = 0;
pierna_inferior_derecha.bodyApplyGravity = true;
pierna_inferior_derecha.bodyFixedRotation = false;
pierna_inferior_derecha.bodyIsBullet = false;
pierna_inferior_derecha.bodyIsSleeping = false;
pierna_inferior_derecha.bodyIsStatic = false;
pierna_inferior_derecha.bodyLinearDamping = 0;
pierna_inferior_derecha.shapeCategoryBits = "0x0001";
pierna_inferior_derecha.shapeDensity = 1;
pierna_inferior_derecha.shapeFriction = 0.4;
pierna_inferior_derecha.shapeGroupIndex = 0;
pierna_inferior_derecha.shapeIsSensor = false;
pierna_inferior_derecha.shapeMaskBits = "0xFFFF";
pierna_inferior_derecha.shapeRestitution = 0.1;
try {
pierna_inferior_derecha["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_codo_izquierdo_NivelDummyWorld_Capa1_1(){
try {
codo_izquierdo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
codo_izquierdo.body2Name = "brazo_superior_izquierdo";
codo_izquierdo.bodyName = "brazo_inferior_izquierdo";
codo_izquierdo.collideConnected = false;
codo_izquierdo.enableLimit = true;
codo_izquierdo.enableMotor = false;
codo_izquierdo.lineParameter = "0x888888";
codo_izquierdo.lineStyle = "Line";
codo_izquierdo.lowerLimit = -2.268;
codo_izquierdo.pathReturns = false;
codo_izquierdo.speed1 = 0;
codo_izquierdo.speed2 = 0;
codo_izquierdo.speedFlag = "";
codo_izquierdo.spring = false;
codo_izquierdo.springConstant = 0;
codo_izquierdo.springDamping = 0;
codo_izquierdo.strength = 0;
codo_izquierdo.targetName = "";
codo_izquierdo.type = "RevolutePin";
codo_izquierdo.upperLimit = 0.174;
try {
codo_izquierdo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id3__NivelDummyWorld_Capa1_1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.bodyAllowSleep = true;
__id3_.bodyAngularDamping = 0;
__id3_.bodyApplyGravity = true;
__id3_.bodyFixedRotation = false;
__id3_.bodyIsBullet = false;
__id3_.bodyIsSleeping = false;
__id3_.bodyIsStatic = false;
__id3_.bodyLinearDamping = 0;
__id3_.shapeCategoryBits = "0x0001";
__id3_.shapeDensity = 0.1;
__id3_.shapeFriction = 0.2;
__id3_.shapeGroupIndex = 0;
__id3_.shapeIsSensor = false;
__id3_.shapeMaskBits = "0xFFFF";
__id3_.shapeRestitution = 0;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_torso_inferior_NivelDummyWorld_Capa1_1(){
try {
torso_inferior["componentInspectorSetting"] = true;
} catch(e:Error) {
};
torso_inferior.bodyAllowSleep = true;
torso_inferior.bodyAngularDamping = 0;
torso_inferior.bodyApplyGravity = true;
torso_inferior.bodyFixedRotation = false;
torso_inferior.bodyIsBullet = false;
torso_inferior.bodyIsSleeping = false;
torso_inferior.bodyIsStatic = false;
torso_inferior.bodyLinearDamping = 0;
torso_inferior.shapeCategoryBits = "0x0001";
torso_inferior.shapeDensity = 1;
torso_inferior.shapeFriction = 0.4;
torso_inferior.shapeGroupIndex = 0;
torso_inferior.shapeIsSensor = false;
torso_inferior.shapeMaskBits = "0xFFFF";
torso_inferior.shapeRestitution = 0.1;
try {
torso_inferior["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_rodilla_derecha_NivelDummyWorld_Capa1_1(){
try {
rodilla_derecha["componentInspectorSetting"] = true;
} catch(e:Error) {
};
rodilla_derecha.body2Name = "pierna_superior_derecha";
rodilla_derecha.bodyName = "pierna_inferior_derecha";
rodilla_derecha.collideConnected = false;
rodilla_derecha.enableLimit = true;
rodilla_derecha.enableMotor = false;
rodilla_derecha.lineParameter = "0x888888";
rodilla_derecha.lineStyle = "Line";
rodilla_derecha.lowerLimit = -2.006;
rodilla_derecha.pathReturns = false;
rodilla_derecha.speed1 = 0;
rodilla_derecha.speed2 = 0;
rodilla_derecha.speedFlag = "";
rodilla_derecha.spring = false;
rodilla_derecha.springConstant = 0;
rodilla_derecha.springDamping = 0;
rodilla_derecha.strength = 0;
rodilla_derecha.targetName = "";
rodilla_derecha.type = "RevolutePin";
rodilla_derecha.upperLimit = 0.436;
try {
rodilla_derecha["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_cuello_NivelDummyWorld_Capa1_1(){
try {
cuello["componentInspectorSetting"] = true;
} catch(e:Error) {
};
cuello.body2Name = "";
cuello.bodyName = "";
cuello.collideConnected = false;
cuello.enableLimit = false;
cuello.enableMotor = false;
cuello.lineParameter = "0x888888";
cuello.lineStyle = "None";
cuello.lowerLimit = 0;
cuello.pathReturns = false;
cuello.speed1 = 0;
cuello.speed2 = 0;
cuello.speedFlag = "";
cuello.spring = false;
cuello.springConstant = 0;
cuello.springDamping = 0;
cuello.strength = 0;
cuello.targetName = "";
cuello.type = "None";
cuello.upperLimit = 0;
try {
cuello["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_codo_derecho_NivelDummyWorld_Capa1_1(){
try {
codo_derecho["componentInspectorSetting"] = true;
} catch(e:Error) {
};
codo_derecho.body2Name = "brazo_superior_derecho";
codo_derecho.bodyName = "brazo_inferior_derecho";
codo_derecho.collideConnected = false;
codo_derecho.enableLimit = true;
codo_derecho.enableMotor = false;
codo_derecho.lineParameter = "0x888888";
codo_derecho.lineStyle = "Line";
codo_derecho.lowerLimit = -0.174;
codo_derecho.pathReturns = false;
codo_derecho.speed1 = 0;
codo_derecho.speed2 = 0;
codo_derecho.speedFlag = "";
codo_derecho.spring = false;
codo_derecho.springConstant = 0;
codo_derecho.springDamping = 0;
codo_derecho.strength = 0;
codo_derecho.targetName = "";
codo_derecho.type = "RevolutePin";
codo_derecho.upperLimit = 2.268;
try {
codo_derecho["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_torso_central_NivelDummyWorld_Capa1_1(){
try {
torso_central["componentInspectorSetting"] = true;
} catch(e:Error) {
};
torso_central.bodyAllowSleep = true;
torso_central.bodyAngularDamping = 0;
torso_central.bodyApplyGravity = true;
torso_central.bodyFixedRotation = false;
torso_central.bodyIsBullet = false;
torso_central.bodyIsSleeping = false;
torso_central.bodyIsStatic = false;
torso_central.bodyLinearDamping = 0;
torso_central.shapeCategoryBits = "0x0001";
torso_central.shapeDensity = 1;
torso_central.shapeFriction = 0.4;
torso_central.shapeGroupIndex = 0;
torso_central.shapeIsSensor = false;
torso_central.shapeMaskBits = "0xFFFF";
torso_central.shapeRestitution = 0.1;
try {
torso_central["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pierna_superior_izquierda_NivelDummyWorld_Capa1_1(){
try {
pierna_superior_izquierda["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pierna_superior_izquierda.bodyAllowSleep = true;
pierna_superior_izquierda.bodyAngularDamping = 0;
pierna_superior_izquierda.bodyApplyGravity = true;
pierna_superior_izquierda.bodyFixedRotation = false;
pierna_superior_izquierda.bodyIsBullet = false;
pierna_superior_izquierda.bodyIsSleeping = false;
pierna_superior_izquierda.bodyIsStatic = false;
pierna_superior_izquierda.bodyLinearDamping = 0;
pierna_superior_izquierda.shapeCategoryBits = "0x0001";
pierna_superior_izquierda.shapeDensity = 1;
pierna_superior_izquierda.shapeFriction = 0.4;
pierna_superior_izquierda.shapeGroupIndex = 0;
pierna_superior_izquierda.shapeIsSensor = false;
pierna_superior_izquierda.shapeMaskBits = "0xFFFF";
pierna_superior_izquierda.shapeRestitution = 0.1;
try {
pierna_superior_izquierda["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_cabeza_NivelDummyWorld_Capa1_1(){
try {
cabeza["componentInspectorSetting"] = true;
} catch(e:Error) {
};
cabeza.bodyAllowSleep = true;
cabeza.bodyAngularDamping = 0;
cabeza.bodyApplyGravity = true;
cabeza.bodyFixedRotation = false;
cabeza.bodyIsBullet = false;
cabeza.bodyIsSleeping = false;
cabeza.bodyIsStatic = false;
cabeza.bodyLinearDamping = 0;
cabeza.shapeCategoryBits = "0x0001";
cabeza.shapeDensity = 1;
cabeza.shapeFriction = 0.2;
cabeza.shapeGroupIndex = 0;
cabeza.shapeIsSensor = false;
cabeza.shapeMaskBits = "0xFFFF";
cabeza.shapeRestitution = 0.3;
try {
cabeza["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_brazo_superior_izquierdo_NivelDummyWorld_Capa1_1(){
try {
brazo_superior_izquierdo["componentInspectorSetting"] = true;
} catch(e:Error) {
};
brazo_superior_izquierdo.bodyAllowSleep = true;
brazo_superior_izquierdo.bodyAngularDamping = 0;
brazo_superior_izquierdo.bodyApplyGravity = true;
brazo_superior_izquierdo.bodyFixedRotation = false;
brazo_superior_izquierdo.bodyIsBullet = false;
brazo_superior_izquierdo.bodyIsSleeping = false;
brazo_superior_izquierdo.bodyIsStatic = false;
brazo_superior_izquierdo.bodyLinearDamping = 0;
brazo_superior_izquierdo.shapeCategoryBits = "0x0001";
brazo_superior_izquierdo.shapeDensity = 1;
brazo_superior_izquierdo.shapeFriction = 0.4;
brazo_superior_izquierdo.shapeGroupIndex = 0;
brazo_superior_izquierdo.shapeIsSensor = false;
brazo_superior_izquierdo.shapeMaskBits = "0xFFFF";
brazo_superior_izquierdo.shapeRestitution = 0.1;
try {
brazo_superior_izquierdo["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_pelvis_izquierda_NivelDummyWorld_Capa1_1(){
try {
pelvis_izquierda["componentInspectorSetting"] = true;
} catch(e:Error) {
};
pelvis_izquierda.body2Name = "pierna_superior_izquierda";
pelvis_izquierda.bodyName = "torso_inferior";
pelvis_izquierda.collideConnected = false;
pelvis_izquierda.enableLimit = true;
pelvis_izquierda.enableMotor = false;
pelvis_izquierda.lineParameter = "0x888888";
pelvis_izquierda.lineStyle = "Line";
pelvis_izquierda.lowerLimit = -0.436;
pelvis_izquierda.pathReturns = false;
pelvis_izquierda.speed1 = 0;
pelvis_izquierda.speed2 = 0;
pelvis_izquierda.speedFlag = "";
pelvis_izquierda.spring = false;
pelvis_izquierda.springConstant = 0;
pelvis_izquierda.springDamping = 0;
pelvis_izquierda.strength = 0;
pelvis_izquierda.targetName = "";
pelvis_izquierda.type = "RevolutePin";
pelvis_izquierda.upperLimit = 0.785;
try {
pelvis_izquierda["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 249
//zonatregua (zonatregua)
package {
import wck.*;
public dynamic class zonatregua extends NoMouse {
}
}//package
Section 250
//zonatregua_ (zonatregua_)
package {
import wck.*;
public dynamic class zonatregua_ extends NoMouse {
}
}//package