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

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

go-go-bee.swf

This is the info page for
Flash #109377

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


Text
20

50

PLAY

INSTRUCTIONS

lOAD GAME

LOAD GAME

BACK

Your target is to fill the bucket with the honey
extract in each level. Click the Honey Comb to
release the honey balls. Click the bricks to
destroy them.
Game Controls:
Use mouse to interact.
Press M to Mute the sound.
Press Spacebar to Reset the Level.

1

TIME   :

SCORE:

2

3

4

5

6

7

8

9

10

11

12

13

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

14

15

16

17

18

19

20

21

22

23

24

25

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

QUIT

NEXT LEVEL

MORE GAMES

TRY AGAIN

SOLUTION

<p align="left"><font face="Impact" size="35" color="#996600" letterSpacing="0.000000" kerning="1">00 : 00</font></p>

LEVEL :

<p align="center"><font face="Impact" size="35" color="#000000" letterSpacing="0.000000" kerning="1"> 0</font></p>

RESET

QUIT

LEVEL SELECTION

SOLUTION

<p align="center"><font face="Impact" size="35" color="#000000" letterSpacing="0.000000" kerning="1">20</font></p>

TARGET :

<p align="center"><font face="Impact" size="35" color="#000000" letterSpacing="0.000000" kerning="1">0/5</font></p>

<p align="center"></p>

<p align="center"></p>

SCORE      :

NAME       :

COUNTRY   :

E

R

O

C

S

T

I

M

B

U

PLAY AGAIN

Ok

<p align="center"><font face="AlternateGothic2 BT" size="30" color="#333333" letterSpacing="2.000000" kerning="1">10000</font></p>

<p align="center"></p>

CONTINUE

ActionScript [AS3]

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.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 { 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.Collision.*; import Box2D.Dynamics.*; import Box2D.Common.*; public class b2PolygonShape extends b2Shape { public var m_vertices:Array; public var m_normals:Array; private var s_supportVec:b2Vec2; public var m_obb:b2OBB; public var m_coreVertices:Array; public var m_centroid:b2Vec2; public var m_vertexCount:int; private static var s_computeMat:b2Mat22 = new b2Mat22(); private static var s_sweptAABB1:b2AABB = new b2AABB(); private static var s_sweptAABB2:b2AABB = new b2AABB(); public function b2PolygonShape(_arg1:b2ShapeDef){ var _local2:b2PolygonDef; var _local3:int; var _local4:int; var _local5:int; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; s_supportVec = new b2Vec2(); m_obb = new b2OBB(); m_vertices = new Array(b2Settings.b2_maxPolygonVertices); m_normals = new Array(b2Settings.b2_maxPolygonVertices); m_coreVertices = new Array(b2Settings.b2_maxPolygonVertices); super(_arg1); m_type = e_polygonShape; _local2 = (_arg1 as b2PolygonDef); m_vertexCount = _local2.vertexCount; _local4 = _local3; _local5 = _local3; _local3 = 0; while (_local3 < m_vertexCount) { m_vertices[_local3] = _local2.vertices[_local3].Copy(); _local3++; }; _local3 = 0; while (_local3 < m_vertexCount) { _local4 = _local3; _local5 = (((_local3 + 1) < m_vertexCount)) ? (_local3 + 1) : 0; _local6 = (m_vertices[_local5].x - m_vertices[_local4].x); _local7 = (m_vertices[_local5].y - m_vertices[_local4].y); _local8 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7))); m_normals[_local3] = new b2Vec2((_local7 / _local8), (-(_local6) / _local8)); _local3++; }; m_centroid = ComputeCentroid(_local2.vertices, _local2.vertexCount); ComputeOBB(m_obb, m_vertices, m_vertexCount); _local3 = 0; while (_local3 < m_vertexCount) { _local4 = (((_local3 - 1) >= 0)) ? (_local3 - 1) : (m_vertexCount - 1); _local5 = _local3; _local9 = m_normals[_local4].x; _local10 = m_normals[_local4].y; _local11 = m_normals[_local5].x; _local12 = m_normals[_local5].y; _local13 = (m_vertices[_local3].x - m_centroid.x); _local14 = (m_vertices[_local3].y - m_centroid.y); _local15 = (((_local9 * _local13) + (_local10 * _local14)) - b2Settings.b2_toiSlop); _local16 = (((_local11 * _local13) + (_local12 * _local14)) - b2Settings.b2_toiSlop); _local17 = (1 / ((_local9 * _local12) - (_local10 * _local11))); m_coreVertices[_local3] = new b2Vec2(((_local17 * ((_local12 * _local15) - (_local10 * _local16))) + m_centroid.x), ((_local17 * ((_local9 * _local16) - (_local11 * _local15))) + m_centroid.y)); _local3++; }; } override public function TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{ var _local3:b2Vec2; var _local4:b2Mat22; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:int; var _local10:Number; _local4 = _arg1.R; _local5 = (_arg2.x - _arg1.position.x); _local6 = (_arg2.y - _arg1.position.y); _local7 = ((_local5 * _local4.col1.x) + (_local6 * _local4.col1.y)); _local8 = ((_local5 * _local4.col2.x) + (_local6 * _local4.col2.y)); _local9 = 0; while (_local9 < m_vertexCount) { _local3 = m_vertices[_local9]; _local5 = (_local7 - _local3.x); _local6 = (_local8 - _local3.y); _local3 = m_normals[_local9]; _local10 = ((_local3.x * _local5) + (_local3.y * _local6)); if (_local10 > 0){ return (false); }; _local9++; }; return (true); } public function GetCoreVertices():Array{ return (m_coreVertices); } override public function TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{ var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:b2Mat22; var _local11:b2Vec2; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:int; var _local19:int; var _local20:Number; var _local21:Number; _local6 = 0; _local7 = _arg5; _local8 = (_arg4.p1.x - _arg1.position.x); _local9 = (_arg4.p1.y - _arg1.position.y); _local10 = _arg1.R; _local12 = ((_local8 * _local10.col1.x) + (_local9 * _local10.col1.y)); _local13 = ((_local8 * _local10.col2.x) + (_local9 * _local10.col2.y)); _local8 = (_arg4.p2.x - _arg1.position.x); _local9 = (_arg4.p2.y - _arg1.position.y); _local10 = _arg1.R; _local14 = ((_local8 * _local10.col1.x) + (_local9 * _local10.col1.y)); _local15 = ((_local8 * _local10.col2.x) + (_local9 * _local10.col2.y)); _local16 = (_local14 - _local12); _local17 = (_local15 - _local13); _local18 = -1; _local19 = 0; while (_local19 < m_vertexCount) { _local11 = m_vertices[_local19]; _local8 = (_local11.x - _local12); _local9 = (_local11.y - _local13); _local11 = m_normals[_local19]; _local20 = ((_local11.x * _local8) + (_local11.y * _local9)); _local21 = ((_local11.x * _local16) + (_local11.y * _local17)); if ((((_local21 < 0)) && ((_local20 < (_local6 * _local21))))){ _local6 = (_local20 / _local21); _local18 = _local19; } else { if ((((_local21 > 0)) && ((_local20 < (_local7 * _local21))))){ _local7 = (_local20 / _local21); }; }; if (_local7 < _local6){ return (false); }; _local19++; }; if (_local18 >= 0){ _arg2[0] = _local6; _local10 = _arg1.R; _local11 = m_normals[_local18]; _arg3.x = ((_local10.col1.x * _local11.x) + (_local10.col2.x * _local11.y)); _arg3.y = ((_local10.col1.y * _local11.x) + (_local10.col2.y * _local11.y)); return (true); }; return (false); } public function GetCentroid():b2Vec2{ return (m_centroid); } override public function ComputeMass(_arg1:b2MassData):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:int; var _local10:b2Vec2; var _local11:b2Vec2; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; _local2 = 0; _local3 = 0; _local4 = 0; _local5 = 0; _local6 = 0; _local7 = 0; _local8 = (1 / 3); _local9 = 0; while (_local9 < m_vertexCount) { _local10 = m_vertices[_local9]; _local11 = (((_local9 + 1) < m_vertexCount)) ? m_vertices[int((_local9 + 1))] : m_vertices[0]; _local12 = (_local10.x - _local6); _local13 = (_local10.y - _local7); _local14 = (_local11.x - _local6); _local15 = (_local11.y - _local7); _local16 = ((_local12 * _local15) - (_local13 * _local14)); _local17 = (0.5 * _local16); _local4 = (_local4 + _local17); _local2 = (_local2 + ((_local17 * _local8) * ((_local6 + _local10.x) + _local11.x))); _local3 = (_local3 + ((_local17 * _local8) * ((_local7 + _local10.y) + _local11.y))); _local18 = _local6; _local19 = _local7; _local20 = _local12; _local21 = _local13; _local22 = _local14; _local23 = _local15; _local24 = ((_local8 * ((0.25 * (((_local20 * _local20) + (_local22 * _local20)) + (_local22 * _local22))) + ((_local18 * _local20) + (_local18 * _local22)))) + ((0.5 * _local18) * _local18)); _local25 = ((_local8 * ((0.25 * (((_local21 * _local21) + (_local23 * _local21)) + (_local23 * _local23))) + ((_local19 * _local21) + (_local19 * _local23)))) + ((0.5 * _local19) * _local19)); _local5 = (_local5 + (_local16 * (_local24 + _local25))); _local9++; }; _arg1.mass = (m_density * _local4); _local2 = (_local2 * (1 / _local4)); _local3 = (_local3 * (1 / _local4)); _arg1.center.Set(_local2, _local3); _arg1.I = (m_density * _local5); } public function Support(_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{ var _local4:b2Vec2; var _local5:b2Mat22; var _local6:Number; var _local7:Number; var _local8:int; var _local9:Number; var _local10:int; var _local11:Number; _local5 = _arg1.R; _local6 = ((_arg2 * _local5.col1.x) + (_arg3 * _local5.col1.y)); _local7 = ((_arg2 * _local5.col2.x) + (_arg3 * _local5.col2.y)); _local8 = 0; _local4 = m_coreVertices[0]; _local9 = ((_local4.x * _local6) + (_local4.y * _local7)); _local10 = 1; while (_local10 < m_vertexCount) { _local4 = m_coreVertices[_local10]; _local11 = ((_local4.x * _local6) + (_local4.y * _local7)); if (_local11 > _local9){ _local8 = _local10; _local9 = _local11; }; _local10++; }; _local5 = _arg1.R; _local4 = m_coreVertices[_local8]; s_supportVec.x = (_arg1.position.x + ((_local5.col1.x * _local4.x) + (_local5.col2.x * _local4.y))); s_supportVec.y = (_arg1.position.y + ((_local5.col1.y * _local4.x) + (_local5.col2.y * _local4.y))); return (s_supportVec); } public function GetVertexCount():int{ return (m_vertexCount); } override public function ComputeSweptAABB(_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{ var _local4:b2AABB; var _local5:b2AABB; _local4 = s_sweptAABB1; _local5 = s_sweptAABB2; ComputeAABB(_local4, _arg2); ComputeAABB(_local5, _arg3); _arg1.lowerBound.Set(((_local4.lowerBound.x < _local5.lowerBound.x)) ? _local4.lowerBound.x : _local5.lowerBound.x, ((_local4.lowerBound.y < _local5.lowerBound.y)) ? _local4.lowerBound.y : _local5.lowerBound.y); _arg1.upperBound.Set(((_local4.upperBound.x > _local5.upperBound.x)) ? _local4.upperBound.x : _local5.upperBound.x, ((_local4.upperBound.y > _local5.upperBound.y)) ? _local4.upperBound.y : _local5.upperBound.y); } public function GetVertices():Array{ return (m_vertices); } public function GetNormals():Array{ return (m_normals); } public function GetOBB():b2OBB{ return (m_obb); } public function GetFirstVertex(_arg1:b2XForm):b2Vec2{ return (b2Math.b2MulX(_arg1, m_coreVertices[0])); } public function Centroid(_arg1:b2XForm):b2Vec2{ return (b2Math.b2MulX(_arg1, m_centroid)); } override public function UpdateSweepRadius(_arg1:b2Vec2):void{ var _local2:b2Vec2; var _local3:int; var _local4:Number; var _local5:Number; m_sweepRadius = 0; _local3 = 0; while (_local3 < m_vertexCount) { _local2 = m_coreVertices[_local3]; _local4 = (_local2.x - _arg1.x); _local5 = (_local2.y - _arg1.y); _local4 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); if (_local4 > m_sweepRadius){ m_sweepRadius = _local4; }; _local3++; }; } override public function ComputeAABB(_arg1:b2AABB, _arg2:b2XForm):void{ var _local3:b2Mat22; var _local4:b2Vec2; var _local5:b2Mat22; var _local6:b2Mat22; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; _local5 = s_computeMat; _local3 = _arg2.R; _local4 = m_obb.R.col1; _local5.col1.x = ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y)); _local5.col1.y = ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y)); _local4 = m_obb.R.col2; _local5.col2.x = ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y)); _local5.col2.y = ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y)); _local5.Abs(); _local6 = _local5; _local4 = m_obb.extents; _local7 = ((_local6.col1.x * _local4.x) + (_local6.col2.x * _local4.y)); _local8 = ((_local6.col1.y * _local4.x) + (_local6.col2.y * _local4.y)); _local3 = _arg2.R; _local4 = m_obb.center; _local9 = (_arg2.position.x + ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y))); _local10 = (_arg2.position.y + ((_local3.col1.y * _local4.x) + (_local3.col2.y * _local4.y))); _arg1.lowerBound.Set((_local9 - _local7), (_local10 - _local8)); _arg1.upperBound.Set((_local9 + _local7), (_local10 + _local8)); } public static function ComputeCentroid(_arg1:Array, _arg2:int):b2Vec2{ var _local3:b2Vec2; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:int; var _local9:b2Vec2; var _local10:b2Vec2; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; _local3 = new b2Vec2(); _local4 = 0; _local5 = 0; _local6 = 0; _local7 = (1 / 3); _local8 = 0; while (_local8 < _arg2) { _local9 = _arg1[_local8]; _local10 = (((_local8 + 1) < _arg2)) ? _arg1[int((_local8 + 1))] : _arg1[0]; _local11 = (_local9.x - _local5); _local12 = (_local9.y - _local6); _local13 = (_local10.x - _local5); _local14 = (_local10.y - _local6); _local15 = ((_local11 * _local14) - (_local12 * _local13)); _local16 = (0.5 * _local15); _local4 = (_local4 + _local16); _local3.x = (_local3.x + ((_local16 * _local7) * ((_local5 + _local9.x) + _local10.x))); _local3.y = (_local3.y + ((_local16 * _local7) * ((_local6 + _local9.y) + _local10.y))); _local8++; }; _local3.x = (_local3.x * (1 / _local4)); _local3.y = (_local3.y * (1 / _local4)); return (_local3); } public static function ComputeOBB(_arg1:b2OBB, _arg2:Array, _arg3:int):void{ var _local4:int; var _local5:Array; var _local6:Number; var _local7:b2Vec2; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:int; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:b2Mat22; _local5 = new Array((b2Settings.b2_maxPolygonVertices + 1)); _local4 = 0; while (_local4 < _arg3) { _local5[_local4] = _arg2[_local4]; _local4++; }; _local5[_arg3] = _local5[0]; _local6 = Number.MAX_VALUE; _local4 = 1; while (_local4 <= _arg3) { _local7 = _local5[int((_local4 - 1))]; _local8 = (_local5[_local4].x - _local7.x); _local9 = (_local5[_local4].y - _local7.y); _local10 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (_local8 / _local10); _local9 = (_local9 / _local10); _local11 = -(_local9); _local12 = _local8; _local13 = Number.MAX_VALUE; _local14 = Number.MAX_VALUE; _local15 = -(Number.MAX_VALUE); _local16 = -(Number.MAX_VALUE); _local17 = 0; while (_local17 < _arg3) { _local19 = (_local5[_local17].x - _local7.x); _local20 = (_local5[_local17].y - _local7.y); _local21 = ((_local8 * _local19) + (_local9 * _local20)); _local22 = ((_local11 * _local19) + (_local12 * _local20)); if (_local21 < _local13){ _local13 = _local21; }; if (_local22 < _local14){ _local14 = _local22; }; if (_local21 > _local15){ _local15 = _local21; }; if (_local22 > _local16){ _local16 = _local22; }; _local17++; }; _local18 = ((_local15 - _local13) * (_local16 - _local14)); if (_local18 < (0.95 * _local6)){ _local6 = _local18; _arg1.R.col1.x = _local8; _arg1.R.col1.y = _local9; _arg1.R.col2.x = _local11; _arg1.R.col2.y = _local12; _local23 = (0.5 * (_local13 + _local15)); _local24 = (0.5 * (_local14 + _local16)); _local25 = _arg1.R; _arg1.center.x = (_local7.x + ((_local25.col1.x * _local23) + (_local25.col2.x * _local24))); _arg1.center.y = (_local7.y + ((_local25.col1.y * _local23) + (_local25.col2.y * _local24))); _arg1.extents.x = (0.5 * (_local15 - _local13)); _arg1.extents.y = (0.5 * (_local16 - _local14)); }; _local4++; }; } } }//package Box2D.Collision.Shapes
Section 7
//b2Shape (Box2D.Collision.Shapes.b2Shape) package Box2D.Collision.Shapes { import Box2D.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.*; public class b2Shape { public var 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 { 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.Common.Math.*; import Box2D.Collision.Shapes.*; import Box2D.Common.*; public class b2Collision { public static const b2_nullFeature:uint = 0xFF; private static var b2CollidePolyTempVec:b2Vec2 = new b2Vec2(); public static function EdgeSeparation(_arg1:b2PolygonShape, _arg2:b2XForm, _arg3:int, _arg4:b2PolygonShape, _arg5:b2XForm):Number{ var _local6:int; var _local7:Array; var _local8:Array; var _local9:int; var _local10:Array; var _local11:b2Mat22; var _local12:b2Vec2; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:int; var _local18:Number; var _local19:int; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; _local6 = _arg1.m_vertexCount; _local7 = _arg1.m_vertices; _local8 = _arg1.m_normals; _local9 = _arg4.m_vertexCount; _local10 = _arg4.m_vertices; _local11 = _arg2.R; _local12 = _local8[_arg3]; _local13 = ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y)); _local14 = ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y)); _local11 = _arg5.R; _local15 = ((_local11.col1.x * _local13) + (_local11.col1.y * _local14)); _local16 = ((_local11.col2.x * _local13) + (_local11.col2.y * _local14)); _local17 = 0; _local18 = Number.MAX_VALUE; _local19 = 0; while (_local19 < _local9) { _local12 = _local10[_local19]; _local25 = ((_local12.x * _local15) + (_local12.y * _local16)); if (_local25 < _local18){ _local18 = _local25; _local17 = _local19; }; _local19++; }; _local12 = _local7[_arg3]; _local11 = _arg2.R; _local20 = (_arg2.position.x + ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y))); _local21 = (_arg2.position.y + ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y))); _local12 = _local10[_local17]; _local11 = _arg5.R; _local22 = (_arg5.position.x + ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y))); _local23 = (_arg5.position.y + ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y))); _local22 = (_local22 - _local20); _local23 = (_local23 - _local21); _local24 = ((_local22 * _local13) + (_local23 * _local14)); return (_local24); } public static function b2TestOverlap(_arg1:b2AABB, _arg2:b2AABB):Boolean{ var _local3:b2Vec2; var _local4:b2Vec2; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local3 = _arg2.lowerBound; _local4 = _arg1.upperBound; _local5 = (_local3.x - _local4.x); _local6 = (_local3.y - _local4.y); _local3 = _arg1.lowerBound; _local4 = _arg2.upperBound; _local7 = (_local3.x - _local4.x); _local8 = (_local3.y - _local4.y); if ((((_local5 > 0)) || ((_local6 > 0)))){ return (false); }; if ((((_local7 > 0)) || ((_local8 > 0)))){ return (false); }; return (true); } public static function FindIncidentEdge(_arg1:Array, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:int, _arg5:b2PolygonShape, _arg6:b2XForm):void{ var _local7:int; var _local8:Array; var _local9:int; var _local10:Array; var _local11:Array; var _local12:b2Mat22; var _local13:b2Vec2; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:int; var _local18:Number; var _local19:int; var _local20:ClipVertex; var _local21:int; var _local22:int; var _local23:Number; _local7 = _arg2.m_vertexCount; _local8 = _arg2.m_normals; _local9 = _arg5.m_vertexCount; _local10 = _arg5.m_vertices; _local11 = _arg5.m_normals; _local12 = _arg3.R; _local13 = _local8[_arg4]; _local14 = ((_local12.col1.x * _local13.x) + (_local12.col2.x * _local13.y)); _local15 = ((_local12.col1.y * _local13.x) + (_local12.col2.y * _local13.y)); _local12 = _arg6.R; _local16 = ((_local12.col1.x * _local14) + (_local12.col1.y * _local15)); _local15 = ((_local12.col2.x * _local14) + (_local12.col2.y * _local15)); _local14 = _local16; _local17 = 0; _local18 = Number.MAX_VALUE; _local19 = 0; while (_local19 < _local9) { _local13 = _local11[_local19]; _local23 = ((_local14 * _local13.x) + (_local15 * _local13.y)); if (_local23 < _local18){ _local18 = _local23; _local17 = _local19; }; _local19++; }; _local21 = _local17; _local22 = (((_local21 + 1) < _local9)) ? (_local21 + 1) : 0; _local20 = _arg1[0]; _local13 = _local10[_local21]; _local12 = _arg6.R; _local20.v.x = (_arg6.position.x + ((_local12.col1.x * _local13.x) + (_local12.col2.x * _local13.y))); _local20.v.y = (_arg6.position.y + ((_local12.col1.y * _local13.x) + (_local12.col2.y * _local13.y))); _local20.id.features.referenceEdge = _arg4; _local20.id.features.incidentEdge = _local21; _local20.id.features.incidentVertex = 0; _local20 = _arg1[1]; _local13 = _local10[_local22]; _local12 = _arg6.R; _local20.v.x = (_arg6.position.x + ((_local12.col1.x * _local13.x) + (_local12.col2.x * _local13.y))); _local20.v.y = (_arg6.position.y + ((_local12.col1.y * _local13.x) + (_local12.col2.y * _local13.y))); _local20.id.features.referenceEdge = _arg4; _local20.id.features.incidentEdge = _local22; _local20.id.features.incidentVertex = 1; } public static function b2CollidePolygons(_arg1:b2Manifold, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2PolygonShape, _arg5:b2XForm):void{ var _local6:ClipVertex; var _local7:int; var _local8:Array; var _local9:Number; var _local10:int; var _local11:Array; var _local12:Number; var _local13:b2PolygonShape; var _local14:b2PolygonShape; var _local15:b2XForm; var _local16:b2XForm; var _local17:int; var _local18:uint; var _local19:Number; var _local20:Number; var _local21:Array; var _local22:int; var _local23:Array; var _local24:b2Vec2; var _local25:b2Vec2; var _local26:b2Vec2; var _local27:b2Vec2; var _local28:b2Vec2; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Array; var _local33:Array; var _local34:int; var _local35:int; var _local36:int; var _local37:b2Vec2; var _local38:Number; var _local39:b2ManifoldPoint; _arg1.pointCount = 0; _local7 = 0; _local8 = [_local7]; _local9 = FindMaxSeparation(_local8, _arg2, _arg3, _arg4, _arg5); _local7 = _local8[0]; if (_local9 > 0){ return; }; _local10 = 0; _local11 = [_local10]; _local12 = FindMaxSeparation(_local11, _arg4, _arg5, _arg2, _arg3); _local10 = _local11[0]; if (_local12 > 0){ return; }; _local15 = new b2XForm(); _local16 = new b2XForm(); _local19 = 0.98; _local20 = 0.001; if (_local12 > ((_local19 * _local9) + _local20)){ _local13 = _arg4; _local14 = _arg2; _local15.Set(_arg5); _local16.Set(_arg3); _local17 = _local10; _local18 = 1; } else { _local13 = _arg2; _local14 = _arg4; _local15.Set(_arg3); _local16.Set(_arg5); _local17 = _local7; _local18 = 0; }; _local21 = [new ClipVertex(), new ClipVertex()]; FindIncidentEdge(_local21, _local13, _local15, _local17, _local14, _local16); _local22 = _local13.m_vertexCount; _local23 = _local13.m_vertices; _local24 = _local23[_local17]; _local25 = _local24.Copy(); if ((_local17 + 1) < _local22){ _local24 = _local23[int((_local17 + 1))]; _local37 = _local24.Copy(); } else { _local24 = _local23[0]; _local37 = _local24.Copy(); }; _local26 = b2Math.SubtractVV(_local37, _local25); _local27 = b2Math.b2MulMV(_local15.R, b2Math.SubtractVV(_local37, _local25)); _local27.Normalize(); _local28 = b2Math.b2CrossVF(_local27, 1); _local25 = b2Math.b2MulX(_local15, _local25); _local37 = b2Math.b2MulX(_local15, _local37); _local29 = b2Math.b2Dot(_local28, _local25); _local30 = -(b2Math.b2Dot(_local27, _local25)); _local31 = b2Math.b2Dot(_local27, _local37); _local32 = [new ClipVertex(), new ClipVertex()]; _local33 = [new ClipVertex(), new ClipVertex()]; _local34 = ClipSegmentToLine(_local32, _local21, _local27.Negative(), _local30); if (_local34 < 2){ return; }; _local34 = ClipSegmentToLine(_local33, _local32, _local27, _local31); if (_local34 < 2){ return; }; _arg1.normal = (_local18) ? _local28.Negative() : _local28.Copy(); _local35 = 0; _local36 = 0; while (_local36 < b2Settings.b2_maxManifoldPoints) { _local6 = _local33[_local36]; _local38 = (b2Math.b2Dot(_local28, _local6.v) - _local29); if (_local38 <= 0){ _local39 = _arg1.points[_local35]; _local39.separation = _local38; _local39.localPoint1 = b2Math.b2MulXT(_arg3, _local6.v); _local39.localPoint2 = b2Math.b2MulXT(_arg5, _local6.v); _local39.id.key = _local6.id._key; _local39.id.features.flip = _local18; _local35++; }; _local36++; }; _arg1.pointCount = _local35; } public static function FindMaxSeparation(_arg1:Array, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2PolygonShape, _arg5:b2XForm):Number{ var _local6:int; var _local7:Array; var _local8:b2Vec2; var _local9:b2Mat22; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:int; var _local15:Number; var _local16:int; var _local17:Number; var _local18:int; var _local19:Number; var _local20:int; var _local21:Number; var _local22:int; var _local23:Number; var _local24:int; var _local25:Number; _local6 = _arg2.m_vertexCount; _local7 = _arg2.m_normals; _local9 = _arg5.R; _local8 = _arg4.m_centroid; _local10 = (_arg5.position.x + ((_local9.col1.x * _local8.x) + (_local9.col2.x * _local8.y))); _local11 = (_arg5.position.y + ((_local9.col1.y * _local8.x) + (_local9.col2.y * _local8.y))); _local9 = _arg3.R; _local8 = _arg2.m_centroid; _local10 = (_local10 - (_arg3.position.x + ((_local9.col1.x * _local8.x) + (_local9.col2.x * _local8.y)))); _local11 = (_local11 - (_arg3.position.y + ((_local9.col1.y * _local8.x) + (_local9.col2.y * _local8.y)))); _local12 = ((_local10 * _arg3.R.col1.x) + (_local11 * _arg3.R.col1.y)); _local13 = ((_local10 * _arg3.R.col2.x) + (_local11 * _arg3.R.col2.y)); _local14 = 0; _local15 = -(Number.MAX_VALUE); _local16 = 0; while (_local16 < _local6) { _local8 = _local7[_local16]; _local25 = ((_local8.x * _local12) + (_local8.y * _local13)); if (_local25 > _local15){ _local15 = _local25; _local14 = _local16; }; _local16++; }; _local17 = EdgeSeparation(_arg2, _arg3, _local14, _arg4, _arg5); if (_local17 > 0){ return (_local17); }; _local18 = (((_local14 - 1) >= 0)) ? (_local14 - 1) : (_local6 - 1); _local19 = EdgeSeparation(_arg2, _arg3, _local18, _arg4, _arg5); if (_local19 > 0){ return (_local19); }; _local20 = (((_local14 + 1) < _local6)) ? (_local14 + 1) : 0; _local21 = EdgeSeparation(_arg2, _arg3, _local20, _arg4, _arg5); if (_local21 > 0){ return (_local21); }; if ((((_local19 > _local17)) && ((_local19 > _local21)))){ _local24 = -1; _local22 = _local18; _local23 = _local19; } else { if (_local21 > _local17){ _local24 = 1; _local22 = _local20; _local23 = _local21; } else { _arg1[0] = _local14; return (_local17); }; }; while (true) { if (_local24 == -1){ _local14 = (((_local22 - 1) >= 0)) ? (_local22 - 1) : (_local6 - 1); } else { _local14 = (((_local22 + 1) < _local6)) ? (_local22 + 1) : 0; }; _local17 = EdgeSeparation(_arg2, _arg3, _local14, _arg4, _arg5); if (_local17 > 0){ return (_local17); }; if (_local17 > _local23){ _local22 = _local14; _local23 = _local17; } else { break; }; }; _arg1[0] = _local22; return (_local23); } public static function ClipSegmentToLine(_arg1:Array, _arg2:Array, _arg3:b2Vec2, _arg4:Number):int{ var _local5:ClipVertex; var _local6:int; var _local7:b2Vec2; var _local8:b2Vec2; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:b2Vec2; var _local13:ClipVertex; _local6 = 0; _local5 = _arg2[0]; _local7 = _local5.v; _local5 = _arg2[1]; _local8 = _local5.v; _local9 = (b2Math.b2Dot(_arg3, _local7) - _arg4); _local10 = (b2Math.b2Dot(_arg3, _local8) - _arg4); if (_local9 <= 0){ var _temp1 = _local6; _local6 = (_local6 + 1); var _local14 = _temp1; _arg1[_local14] = _arg2[0]; }; if (_local10 <= 0){ var _temp2 = _local6; _local6 = (_local6 + 1); _local14 = _temp2; _arg1[_local14] = _arg2[1]; }; if ((_local9 * _local10) < 0){ _local11 = (_local9 / (_local9 - _local10)); _local5 = _arg1[_local6]; _local12 = _local5.v; _local12.x = (_local7.x + (_local11 * (_local8.x - _local7.x))); _local12.y = (_local7.y + (_local11 * (_local8.y - _local7.y))); _local5 = _arg1[_local6]; if (_local9 > 0){ _local13 = _arg2[0]; _local5.id = _local13.id; } else { _local13 = _arg2[1]; _local5.id = _local13.id; }; _local6++; }; return (_local6); } public static function b2CollideCircles(_arg1:b2Manifold, _arg2:b2CircleShape, _arg3:b2XForm, _arg4:b2CircleShape, _arg5:b2XForm):void{ var _local6:b2Mat22; var _local7:b2Vec2; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:b2ManifoldPoint; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; _arg1.pointCount = 0; _local6 = _arg3.R; _local7 = _arg2.m_localPosition; _local8 = (_arg3.position.x + ((_local6.col1.x * _local7.x) + (_local6.col2.x * _local7.y))); _local9 = (_arg3.position.y + ((_local6.col1.y * _local7.x) + (_local6.col2.y * _local7.y))); _local6 = _arg5.R; _local7 = _arg4.m_localPosition; _local10 = (_arg5.position.x + ((_local6.col1.x * _local7.x) + (_local6.col2.x * _local7.y))); _local11 = (_arg5.position.y + ((_local6.col1.y * _local7.x) + (_local6.col2.y * _local7.y))); _local12 = (_local10 - _local8); _local13 = (_local11 - _local9); _local14 = ((_local12 * _local12) + (_local13 * _local13)); _local15 = _arg2.m_radius; _local16 = _arg4.m_radius; _local17 = (_local15 + _local16); if (_local14 > (_local17 * _local17)){ return; }; if (_local14 < Number.MIN_VALUE){ _local18 = -(_local17); _arg1.normal.Set(0, 1); } else { _local24 = Math.sqrt(_local14); _local18 = (_local24 - _local17); _local25 = (1 / _local24); _arg1.normal.x = (_local25 * _local12); _arg1.normal.y = (_local25 * _local13); }; _arg1.pointCount = 1; _local19 = _arg1.points[0]; _local19.id.key = 0; _local19.separation = _local18; _local8 = (_local8 + (_local15 * _arg1.normal.x)); _local9 = (_local9 + (_local15 * _arg1.normal.y)); _local10 = (_local10 - (_local16 * _arg1.normal.x)); _local11 = (_local11 - (_local16 * _arg1.normal.y)); _local20 = (0.5 * (_local8 + _local10)); _local21 = (0.5 * (_local9 + _local11)); _local22 = (_local20 - _arg3.position.x); _local23 = (_local21 - _arg3.position.y); _local19.localPoint1.x = ((_local22 * _arg3.R.col1.x) + (_local23 * _arg3.R.col1.y)); _local19.localPoint1.y = ((_local22 * _arg3.R.col2.x) + (_local23 * _arg3.R.col2.y)); _local22 = (_local20 - _arg5.position.x); _local23 = (_local21 - _arg5.position.y); _local19.localPoint2.x = ((_local22 * _arg5.R.col1.x) + (_local23 * _arg5.R.col1.y)); _local19.localPoint2.y = ((_local22 * _arg5.R.col2.x) + (_local23 * _arg5.R.col2.y)); } public static function b2CollidePolygonAndCircle(_arg1:b2Manifold, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:b2CircleShape, _arg5:b2XForm):void{ var _local6:b2ManifoldPoint; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:b2Vec2; var _local12:b2Mat22; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:int; var _local19:Number; var _local20:Number; var _local21:int; var _local22:Array; var _local23:Array; var _local24:int; var _local25:int; var _local26:int; var _local27:b2Vec2; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; _arg1.pointCount = 0; _local12 = _arg5.R; _local11 = _arg4.m_localPosition; _local13 = (_arg5.position.x + ((_local12.col1.x * _local11.x) + (_local12.col2.x * _local11.y))); _local14 = (_arg5.position.y + ((_local12.col1.y * _local11.x) + (_local12.col2.y * _local11.y))); _local7 = (_local13 - _arg3.position.x); _local8 = (_local14 - _arg3.position.y); _local12 = _arg3.R; _local15 = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y)); _local16 = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y)); _local18 = 0; _local19 = -(Number.MAX_VALUE); _local20 = _arg4.m_radius; _local21 = _arg2.m_vertexCount; _local22 = _arg2.m_vertices; _local23 = _arg2.m_normals; _local24 = 0; while (_local24 < _local21) { _local11 = _local22[_local24]; _local7 = (_local15 - _local11.x); _local8 = (_local16 - _local11.y); _local11 = _local23[_local24]; _local34 = ((_local11.x * _local7) + (_local11.y * _local8)); if (_local34 > _local20){ return; }; if (_local34 > _local19){ _local19 = _local34; _local18 = _local24; }; _local24++; }; if (_local19 < Number.MIN_VALUE){ _arg1.pointCount = 1; _local11 = _local23[_local18]; _local12 = _arg3.R; _arg1.normal.x = ((_local12.col1.x * _local11.x) + (_local12.col2.x * _local11.y)); _arg1.normal.y = ((_local12.col1.y * _local11.x) + (_local12.col2.y * _local11.y)); _local6 = _arg1.points[0]; _local6.id.features.incidentEdge = _local18; _local6.id.features.incidentVertex = b2_nullFeature; _local6.id.features.referenceEdge = 0; _local6.id.features.flip = 0; _local9 = (_local13 - (_local20 * _arg1.normal.x)); _local10 = (_local14 - (_local20 * _arg1.normal.y)); _local7 = (_local9 - _arg3.position.x); _local8 = (_local10 - _arg3.position.y); _local12 = _arg3.R; _local6.localPoint1.x = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y)); _local6.localPoint1.y = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y)); _local7 = (_local9 - _arg5.position.x); _local8 = (_local10 - _arg5.position.y); _local12 = _arg5.R; _local6.localPoint2.x = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y)); _local6.localPoint2.y = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y)); _local6.separation = (_local19 - _local20); return; }; _local25 = _local18; _local26 = (((_local25 + 1) < _local21)) ? (_local25 + 1) : 0; _local11 = _local22[_local25]; _local27 = _local22[_local26]; _local28 = (_local27.x - _local11.x); _local29 = (_local27.y - _local11.y); _local30 = Math.sqrt(((_local28 * _local28) + (_local29 * _local29))); _local28 = (_local28 / _local30); _local29 = (_local29 / _local30); _local7 = (_local15 - _local11.x); _local8 = (_local16 - _local11.y); _local31 = ((_local7 * _local28) + (_local8 * _local29)); _local6 = _arg1.points[0]; if (_local31 <= 0){ _local32 = _local11.x; _local33 = _local11.y; _local6.id.features.incidentEdge = b2_nullFeature; _local6.id.features.incidentVertex = _local25; } else { if (_local31 >= _local30){ _local32 = _local27.x; _local33 = _local27.y; _local6.id.features.incidentEdge = b2_nullFeature; _local6.id.features.incidentVertex = _local26; } else { _local32 = ((_local28 * _local31) + _local11.x); _local33 = ((_local29 * _local31) + _local11.y); _local6.id.features.incidentEdge = _local18; _local6.id.features.incidentVertex = 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.Common.Math.*; import Box2D.Collision.Shapes.*; public class b2ContactPoint { public var separation:Number; public var normal:b2Vec2; public var position:b2Vec2; public var restitution:Number; public var shape1:b2Shape; public var shape2:b2Shape; public var id:b2ContactID; public var friction:Number; public var velocity:b2Vec2; public function b2ContactPoint(){ position = new b2Vec2(); velocity = new b2Vec2(); normal = new b2Vec2(); id = new b2ContactID(); super(); } } }//package Box2D.Collision
Section 17
//b2Distance (Box2D.Collision.b2Distance) package Box2D.Collision { import Box2D.Common.Math.*; import Box2D.Collision.Shapes.*; 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.*; 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.Common.Math.*; import Box2D.Collision.Shapes.*; import Box2D.Common.*; public class b2TimeOfImpact { public static var s_xf1:b2XForm = new b2XForm(); public static var s_xf2:b2XForm = new b2XForm(); public static var s_p1:b2Vec2 = new b2Vec2(); public static var s_p2:b2Vec2 = new b2Vec2(); public static function TimeOfImpact(_arg1:b2Shape, _arg2:b2Sweep, _arg3:b2Shape, _arg4:b2Sweep):Number{ var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:b2Vec2; var _local18:b2Vec2; var _local19:int; var _local20:int; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:b2XForm; var _local27:b2XForm; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; _local7 = _arg1.m_sweepRadius; _local8 = _arg3.m_sweepRadius; _local9 = _arg2.t0; _local10 = (_arg2.c.x - _arg2.c0.x); _local11 = (_arg2.c.y - _arg2.c0.y); _local12 = (_arg4.c.x - _arg4.c0.x); _local13 = (_arg4.c.y - _arg4.c0.y); _local14 = (_arg2.a - _arg2.a0); _local15 = (_arg4.a - _arg4.a0); _local16 = 0; _local17 = s_p1; _local18 = s_p2; _local19 = 20; _local20 = 0; _local21 = 0; _local22 = 0; _local23 = 0; _local24 = 0; while (true) { _local25 = (((1 - _local16) * _local9) + _local16); _local26 = s_xf1; _local27 = s_xf2; _arg2.GetXForm(_local26, _local25); _arg4.GetXForm(_local27, _local25); _local23 = b2Distance.Distance(_local17, _local18, _arg1, _local26, _arg3, _local27); if (_local20 == 0){ if (_local23 > (2 * b2Settings.b2_toiSlop)){ _local24 = (1.5 * b2Settings.b2_toiSlop); } else { _local5 = (0.05 * b2Settings.b2_toiSlop); _local6 = (_local23 - (0.5 * b2Settings.b2_toiSlop)); _local24 = ((_local5 > _local6)) ? _local5 : _local6; }; }; if (((((_local23 - _local24) < (0.05 * b2Settings.b2_toiSlop))) || ((_local20 == _local19)))){ break; }; _local21 = (_local18.x - _local17.x); _local22 = (_local18.y - _local17.y); _local28 = Math.sqrt(((_local21 * _local21) + (_local22 * _local22))); _local21 = (_local21 / _local28); _local22 = (_local22 / _local28); _local29 = ((((_local21 * (_local10 - _local12)) + (_local22 * (_local11 - _local13))) + (((_local14 < 0)) ? -(_local14) : _local14 * _local7)) + (((_local15 < 0)) ? -(_local15) : _local15 * _local8)); if (_local29 == 0){ _local16 = 1; break; }; _local30 = ((_local23 - _local24) / _local29); _local31 = (_local16 + _local30); if ((((_local31 < 0)) || ((1 < _local31)))){ _local16 = 1; break; }; if (_local31 < ((1 + (100 * Number.MIN_VALUE)) * _local16)){ break; }; _local16 = _local31; _local20++; }; return (_local16); } } }//package Box2D.Collision
Section 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 { 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 { 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 { 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 { 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.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.*; import Box2D.Collision.Shapes.*; public class b2CircleContact extends b2Contact { private var m_manifolds:Array; private var m0:b2Manifold; public var m_manifold:b2Manifold; private static const s_evalCP:b2ContactPoint = new b2ContactPoint(); public function b2CircleContact(_arg1:b2Shape, _arg2:b2Shape){ var _local3:b2ManifoldPoint; m_manifolds = [new b2Manifold()]; m0 = new b2Manifold(); super(_arg1, _arg2); m_manifold = m_manifolds[0]; m_manifold.pointCount = 0; _local3 = m_manifold.points[0]; _local3.normalImpulse = 0; _local3.tangentImpulse = 0; } override public function GetManifolds():Array{ return (m_manifolds); } override public function Evaluate(_arg1:b2ContactListener):void{ var _local2:b2Vec2; var _local3:b2Vec2; var _local4:b2ManifoldPoint; var _local5:b2Body; var _local6:b2Body; var _local7:b2ContactPoint; var _local8:b2ManifoldPoint; _local5 = m_shape1.m_body; _local6 = m_shape2.m_body; m0.Set(m_manifold); b2Collision.b2CollideCircles(m_manifold, (m_shape1 as b2CircleShape), _local5.m_xf, (m_shape2 as b2CircleShape), _local6.m_xf); _local7 = s_evalCP; _local7.shape1 = m_shape1; _local7.shape2 = m_shape2; _local7.friction = m_friction; _local7.restitution = m_restitution; if (m_manifold.pointCount > 0){ m_manifoldCount = 1; _local8 = m_manifold.points[0]; if (m0.pointCount == 0){ _local8.normalImpulse = 0; _local8.tangentImpulse = 0; if (_arg1){ _local7.position = _local5.GetWorldPoint(_local8.localPoint1); _local2 = _local5.GetLinearVelocityFromLocalPoint(_local8.localPoint1); _local3 = _local6.GetLinearVelocityFromLocalPoint(_local8.localPoint2); _local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal.SetV(m_manifold.normal); _local7.separation = _local8.separation; _local7.id.key = _local8.id._key; _arg1.Add(_local7); }; } else { _local4 = m0.points[0]; _local8.normalImpulse = _local4.normalImpulse; _local8.tangentImpulse = _local4.tangentImpulse; if (_arg1){ _local7.position = _local5.GetWorldPoint(_local8.localPoint1); _local2 = _local5.GetLinearVelocityFromLocalPoint(_local8.localPoint1); _local3 = _local6.GetLinearVelocityFromLocalPoint(_local8.localPoint2); _local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal.SetV(m_manifold.normal); _local7.separation = _local8.separation; _local7.id.key = _local8.id._key; _arg1.Persist(_local7); }; }; } else { m_manifoldCount = 0; if ((((m0.pointCount > 0)) && (_arg1))){ _local4 = m0.points[0]; _local7.position = _local5.GetWorldPoint(_local4.localPoint1); _local2 = _local5.GetLinearVelocityFromLocalPoint(_local4.localPoint1); _local3 = _local6.GetLinearVelocityFromLocalPoint(_local4.localPoint2); _local7.velocity.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal.SetV(m0.normal); _local7.separation = _local4.separation; _local7.id.key = _local4.id._key; _arg1.Remove(_local7); }; }; } public static function Destroy(_arg1:b2Contact, _arg2):void{ } public static function Create(_arg1:b2Shape, _arg2:b2Shape, _arg3):b2Contact{ return (new b2CircleContact(_arg1, _arg2)); } } }//package Box2D.Dynamics.Contacts
Section 38
//b2Contact (Box2D.Dynamics.Contacts.b2Contact) package Box2D.Dynamics.Contacts { import Box2D.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.*; import Box2D.Collision.Shapes.*; import Box2D.Common.*; public class b2Contact { public var m_shape1:b2Shape; public var m_shape2:b2Shape; public var m_prev:b2Contact; public var m_toi:Number; public var m_next:b2Contact; public var m_friction:Number; public var m_manifoldCount:int; public var m_node1:b2ContactEdge; public var m_node2:b2ContactEdge; public var m_restitution:Number; public var m_flags:uint; public static var e_toiFlag:uint = 8; public static var e_nonSolidFlag:uint = 1; public static var e_slowFlag:uint = 2; public static var e_islandFlag:uint = 4; public static var s_registers:Array; public static var s_initialized:Boolean = false; public function b2Contact(_arg1:b2Shape=null, _arg2:b2Shape=null){ m_node1 = new b2ContactEdge(); m_node2 = new b2ContactEdge(); super(); m_flags = 0; if (((!(_arg1)) || (!(_arg2)))){ m_shape1 = null; m_shape2 = null; return; }; if (((_arg1.IsSensor()) || (_arg2.IsSensor()))){ m_flags = (m_flags | e_nonSolidFlag); }; m_shape1 = _arg1; m_shape2 = _arg2; m_manifoldCount = 0; m_friction = Math.sqrt((m_shape1.m_friction * m_shape2.m_friction)); m_restitution = b2Math.b2Max(m_shape1.m_restitution, m_shape2.m_restitution); m_prev = null; m_next = null; m_node1.contact = null; m_node1.prev = null; m_node1.next = null; m_node1.other = null; m_node2.contact = null; m_node2.prev = null; m_node2.next = null; m_node2.other = null; } public function GetShape1():b2Shape{ return (m_shape1); } public function IsSolid():Boolean{ return (((m_flags & e_nonSolidFlag) == 0)); } public function GetNext():b2Contact{ return (m_next); } public function GetManifolds():Array{ return (null); } public function GetShape2():b2Shape{ return (m_shape2); } public function GetManifoldCount():int{ return (m_manifoldCount); } public function Update(_arg1:b2ContactListener):void{ var _local2:int; var _local3:int; var _local4:b2Body; var _local5:b2Body; _local2 = m_manifoldCount; Evaluate(_arg1); _local3 = m_manifoldCount; _local4 = m_shape1.m_body; _local5 = m_shape2.m_body; if ((((_local3 == 0)) && ((_local2 > 0)))){ _local4.WakeUp(); _local5.WakeUp(); }; if (((((((_local4.IsStatic()) || (_local4.IsBullet()))) || (_local5.IsStatic()))) || (_local5.IsBullet()))){ m_flags = (m_flags & ~(e_slowFlag)); } else { m_flags = (m_flags | e_slowFlag); }; } public function Evaluate(_arg1:b2ContactListener):void{ } public static function InitializeRegisters():void{ var _local1:int; var _local2:int; s_registers = new Array(b2Shape.e_shapeTypeCount); _local1 = 0; while (_local1 < b2Shape.e_shapeTypeCount) { s_registers[_local1] = new Array(b2Shape.e_shapeTypeCount); _local2 = 0; while (_local2 < b2Shape.e_shapeTypeCount) { s_registers[_local1][_local2] = new b2ContactRegister(); _local2++; }; _local1++; }; AddType(b2CircleContact.Create, b2CircleContact.Destroy, b2Shape.e_circleShape, b2Shape.e_circleShape); AddType(b2PolyAndCircleContact.Create, b2PolyAndCircleContact.Destroy, b2Shape.e_polygonShape, b2Shape.e_circleShape); AddType(b2PolygonContact.Create, b2PolygonContact.Destroy, b2Shape.e_polygonShape, b2Shape.e_polygonShape); } 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.Collision.*; import Box2D.Dynamics.*; import Box2D.Common.*; public class b2ContactConstraint { public var points:Array; public var restitution:Number; public var body1:b2Body; public var manifold:b2Manifold; public var normal:b2Vec2; public var body2:b2Body; public var friction:Number; public var pointCount:int; public function b2ContactConstraint(){ var _local1:int; normal = new b2Vec2(); super(); points = new Array(b2Settings.b2_maxManifoldPoints); _local1 = 0; while (_local1 < b2Settings.b2_maxManifoldPoints) { points[_local1] = new b2ContactConstraintPoint(); _local1++; }; } } }//package Box2D.Dynamics.Contacts
Section 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.Common.Math.*; import Box2D.Collision.*; import Box2D.Collision.Shapes.*; public class b2ContactResult { public var normal:b2Vec2; public var position:b2Vec2; public var shape1:b2Shape; public var shape2:b2Shape; public var normalImpulse:Number; public var tangentImpulse:Number; public var id:b2ContactID; public function b2ContactResult(){ position = new b2Vec2(); normal = new b2Vec2(); id = new b2ContactID(); super(); } } }//package Box2D.Dynamics.Contacts
Section 44
//b2ContactSolver (Box2D.Dynamics.Contacts.b2ContactSolver) package Box2D.Dynamics.Contacts { import Box2D.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.*; import Box2D.Common.*; public class b2ContactSolver { public var m_constraintCount:int; public var m_constraints:Array; public var m_allocator; public var m_step:b2TimeStep; public function b2ContactSolver(_arg1:b2TimeStep, _arg2:Array, _arg3:int, _arg4){ var _local5:b2Contact; var _local6:int; var _local7:b2Vec2; var _local8:b2Mat22; var _local9:int; var _local10:b2Body; var _local11:b2Body; var _local12:int; var _local13:Array; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:int; var _local23:b2Manifold; var _local24:Number; var _local25:Number; var _local26:b2ContactConstraint; var _local27:uint; var _local28:b2ManifoldPoint; var _local29:b2ContactConstraintPoint; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:Number; var _local38:Number; var _local39:Number; var _local40:Number; var _local41:Number; var _local42:Number; var _local43:Number; var _local44:Number; var _local45:Number; var _local46:Number; var _local47:Number; m_step = new b2TimeStep(); m_constraints = new Array(); super(); m_step.dt = _arg1.dt; m_step.inv_dt = _arg1.inv_dt; m_step.maxIterations = _arg1.maxIterations; m_allocator = _arg4; m_constraintCount = 0; _local6 = 0; while (_local6 < _arg3) { _local5 = _arg2[_local6]; m_constraintCount = (m_constraintCount + _local5.m_manifoldCount); _local6++; }; _local6 = 0; while (_local6 < m_constraintCount) { m_constraints[_local6] = new b2ContactConstraint(); _local6++; }; _local9 = 0; _local6 = 0; while (_local6 < _arg3) { _local5 = _arg2[_local6]; _local10 = _local5.m_shape1.m_body; _local11 = _local5.m_shape2.m_body; _local12 = _local5.m_manifoldCount; _local13 = _local5.GetManifolds(); _local14 = _local5.m_friction; _local15 = _local5.m_restitution; _local16 = _local10.m_linearVelocity.x; _local17 = _local10.m_linearVelocity.y; _local18 = _local11.m_linearVelocity.x; _local19 = _local11.m_linearVelocity.y; _local20 = _local10.m_angularVelocity; _local21 = _local11.m_angularVelocity; _local22 = 0; while (_local22 < _local12) { _local23 = _local13[_local22]; _local24 = _local23.normal.x; _local25 = _local23.normal.y; _local26 = m_constraints[_local9]; _local26.body1 = _local10; _local26.body2 = _local11; _local26.manifold = _local23; _local26.normal.x = _local24; _local26.normal.y = _local25; _local26.pointCount = _local23.pointCount; _local26.friction = _local14; _local26.restitution = _local15; _local27 = 0; while (_local27 < _local26.pointCount) { _local28 = _local23.points[_local27]; _local29 = _local26.points[_local27]; _local29.normalImpulse = _local28.normalImpulse; _local29.tangentImpulse = _local28.tangentImpulse; _local29.separation = _local28.separation; _local29.positionImpulse = 0; _local29.localAnchor1.SetV(_local28.localPoint1); _local29.localAnchor2.SetV(_local28.localPoint2); _local8 = _local10.m_xf.R; _local32 = (_local28.localPoint1.x - _local10.m_sweep.localCenter.x); _local33 = (_local28.localPoint1.y - _local10.m_sweep.localCenter.y); _local30 = ((_local8.col1.x * _local32) + (_local8.col2.x * _local33)); _local33 = ((_local8.col1.y * _local32) + (_local8.col2.y * _local33)); _local32 = _local30; _local29.r1.Set(_local32, _local33); _local8 = _local11.m_xf.R; _local34 = (_local28.localPoint2.x - _local11.m_sweep.localCenter.x); _local35 = (_local28.localPoint2.y - _local11.m_sweep.localCenter.y); _local30 = ((_local8.col1.x * _local34) + (_local8.col2.x * _local35)); _local35 = ((_local8.col1.y * _local34) + (_local8.col2.y * _local35)); _local34 = _local30; _local29.r2.Set(_local34, _local35); _local36 = ((_local32 * _local32) + (_local33 * _local33)); _local37 = ((_local34 * _local34) + (_local35 * _local35)); _local38 = ((_local32 * _local24) + (_local33 * _local25)); _local39 = ((_local34 * _local24) + (_local35 * _local25)); _local40 = (_local10.m_invMass + _local11.m_invMass); _local40 = (_local40 + ((_local10.m_invI * (_local36 - (_local38 * _local38))) + (_local11.m_invI * (_local37 - (_local39 * _local39))))); _local29.normalMass = (1 / _local40); _local41 = ((_local10.m_mass * _local10.m_invMass) + (_local11.m_mass * _local11.m_invMass)); _local41 = (_local41 + (((_local10.m_mass * _local10.m_invI) * (_local36 - (_local38 * _local38))) + ((_local11.m_mass * _local11.m_invI) * (_local37 - (_local39 * _local39))))); _local29.equalizedMass = (1 / _local41); _local42 = _local25; _local43 = -(_local24); _local44 = ((_local32 * _local42) + (_local33 * _local43)); _local45 = ((_local34 * _local42) + (_local35 * _local43)); _local46 = (_local10.m_invMass + _local11.m_invMass); _local46 = (_local46 + ((_local10.m_invI * (_local36 - (_local44 * _local44))) + (_local11.m_invI * (_local37 - (_local45 * _local45))))); _local29.tangentMass = (1 / _local46); _local29.velocityBias = 0; if (_local29.separation > 0){ _local29.velocityBias = (-60 * _local29.separation); }; _local30 = (((_local18 + (-(_local21) * _local35)) - _local16) - (-(_local20) * _local33)); _local31 = (((_local19 + (_local21 * _local34)) - _local17) - (_local20 * _local32)); _local47 = ((_local26.normal.x * _local30) + (_local26.normal.y * _local31)); if (_local47 < -(b2Settings.b2_velocityThreshold)){ _local29.velocityBias = (_local29.velocityBias + (-(_local26.restitution) * _local47)); }; _local27++; }; _local9++; _local22++; }; _local6++; }; } public function InitVelocityConstraints(_arg1:b2TimeStep):void{ var _local2:b2Vec2; var _local3:b2Vec2; var _local4:b2Mat22; var _local5:int; var _local6:b2ContactConstraint; var _local7:b2Body; var _local8:b2Body; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:int; var _local19:int; var _local20:b2ContactConstraintPoint; var _local21:Number; var _local22:Number; var _local23:b2ContactConstraintPoint; _local5 = 0; while (_local5 < m_constraintCount) { _local6 = m_constraints[_local5]; _local7 = _local6.body1; _local8 = _local6.body2; _local9 = _local7.m_invMass; _local10 = _local7.m_invI; _local11 = _local8.m_invMass; _local12 = _local8.m_invI; _local13 = _local6.normal.x; _local14 = _local6.normal.y; _local15 = _local14; _local16 = -(_local13); if (_arg1.warmStarting){ _local19 = _local6.pointCount; _local18 = 0; while (_local18 < _local19) { _local20 = _local6.points[_local18]; _local6.points[_local18].normalImpulse = (_local20.normalImpulse * _arg1.dtRatio); _local20.tangentImpulse = (_local20.tangentImpulse * _arg1.dtRatio); _local21 = ((_local20.normalImpulse * _local13) + (_local20.tangentImpulse * _local15)); _local22 = ((_local20.normalImpulse * _local14) + (_local20.tangentImpulse * _local16)); _local7.m_angularVelocity = (_local7.m_angularVelocity - (_local10 * ((_local20.r1.x * _local22) - (_local20.r1.y * _local21)))); _local7.m_linearVelocity.x = (_local7.m_linearVelocity.x - (_local9 * _local21)); _local7.m_linearVelocity.y = (_local7.m_linearVelocity.y - (_local9 * _local22)); _local8.m_angularVelocity = (_local8.m_angularVelocity + (_local12 * ((_local20.r2.x * _local22) - (_local20.r2.y * _local21)))); _local8.m_linearVelocity.x = (_local8.m_linearVelocity.x + (_local11 * _local21)); _local8.m_linearVelocity.y = (_local8.m_linearVelocity.y + (_local11 * _local22)); _local18++; }; } else { _local19 = _local6.pointCount; _local18 = 0; while (_local18 < _local19) { _local23 = _local6.points[_local18]; _local23.normalImpulse = 0; _local23.tangentImpulse = 0; _local18++; }; }; _local5++; }; } public function SolvePositionConstraints(_arg1:Number):Boolean{ var _local2:Number; var _local3:b2Mat22; var _local4:b2Vec2; var _local5:int; var _local6:b2ContactConstraint; var _local7:b2Body; var _local8:b2Body; var _local9:b2Vec2; var _local10:Number; var _local11:b2Vec2; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:int; var _local20:int; var _local21:b2ContactConstraintPoint; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:Number; var _local38:Number; _local2 = 0; _local5 = 0; while (_local5 < m_constraintCount) { _local6 = m_constraints[_local5]; _local7 = _local6.body1; _local8 = _local6.body2; _local9 = _local7.m_sweep.c; _local10 = _local7.m_sweep.a; _local11 = _local8.m_sweep.c; _local12 = _local8.m_sweep.a; _local13 = (_local7.m_mass * _local7.m_invMass); _local14 = (_local7.m_mass * _local7.m_invI); _local15 = (_local8.m_mass * _local8.m_invMass); _local16 = (_local8.m_mass * _local8.m_invI); _local17 = _local6.normal.x; _local18 = _local6.normal.y; _local19 = _local6.pointCount; _local20 = 0; while (_local20 < _local19) { _local21 = _local6.points[_local20]; _local3 = _local7.m_xf.R; _local4 = _local7.m_sweep.localCenter; _local22 = (_local21.localAnchor1.x - _local4.x); _local23 = (_local21.localAnchor1.y - _local4.y); _local26 = ((_local3.col1.x * _local22) + (_local3.col2.x * _local23)); _local23 = ((_local3.col1.y * _local22) + (_local3.col2.y * _local23)); _local22 = _local26; _local3 = _local8.m_xf.R; _local4 = _local8.m_sweep.localCenter; _local24 = (_local21.localAnchor2.x - _local4.x); _local25 = (_local21.localAnchor2.y - _local4.y); _local26 = ((_local3.col1.x * _local24) + (_local3.col2.x * _local25)); _local25 = ((_local3.col1.y * _local24) + (_local3.col2.y * _local25)); _local24 = _local26; _local27 = (_local9.x + _local22); _local28 = (_local9.y + _local23); _local29 = (_local11.x + _local24); _local30 = (_local11.y + _local25); _local31 = (_local29 - _local27); _local32 = (_local30 - _local28); _local33 = (((_local31 * _local17) + (_local32 * _local18)) + _local21.separation); _local2 = b2Math.b2Min(_local2, _local33); _local34 = (_arg1 * b2Math.b2Clamp((_local33 + b2Settings.b2_linearSlop), -(b2Settings.b2_maxLinearCorrection), 0)); _local35 = (-(_local21.equalizedMass) * _local34); _local36 = _local21.positionImpulse; _local21.positionImpulse = b2Math.b2Max((_local36 + _local35), 0); _local35 = (_local21.positionImpulse - _local36); _local37 = (_local35 * _local17); _local38 = (_local35 * _local18); _local9.x = (_local9.x - (_local13 * _local37)); _local9.y = (_local9.y - (_local13 * _local38)); _local10 = (_local10 - (_local14 * ((_local22 * _local38) - (_local23 * _local37)))); _local7.m_sweep.a = _local10; _local7.SynchronizeTransform(); _local11.x = (_local11.x + (_local15 * _local37)); _local11.y = (_local11.y + (_local15 * _local38)); _local12 = (_local12 + (_local16 * ((_local24 * _local38) - (_local25 * _local37)))); _local8.m_sweep.a = _local12; _local8.SynchronizeTransform(); _local20++; }; _local5++; }; return ((_local2 >= (-1.5 * b2Settings.b2_linearSlop))); } public function SolveVelocityConstraints():void{ var _local1:int; var _local2:b2ContactConstraintPoint; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:b2Mat22; var _local18:b2Vec2; var _local19:int; var _local20:b2ContactConstraint; var _local21:b2Body; var _local22:b2Body; var _local23:Number; var _local24:Number; var _local25:b2Vec2; var _local26:b2Vec2; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:int; var _local38:Number; _local19 = 0; while (_local19 < m_constraintCount) { _local20 = m_constraints[_local19]; _local21 = _local20.body1; _local22 = _local20.body2; _local23 = _local21.m_angularVelocity; _local24 = _local22.m_angularVelocity; _local25 = _local21.m_linearVelocity; _local26 = _local22.m_linearVelocity; _local27 = _local21.m_invMass; _local28 = _local21.m_invI; _local29 = _local22.m_invMass; _local30 = _local22.m_invI; _local31 = _local20.normal.x; _local32 = _local20.normal.y; _local33 = _local32; _local34 = -(_local31); _local35 = _local20.friction; _local37 = _local20.pointCount; _local1 = 0; while (_local1 < _local37) { _local2 = _local20.points[_local1]; _local7 = (((_local26.x + (-(_local24) * _local2.r2.y)) - _local25.x) - (-(_local23) * _local2.r1.y)); _local8 = (((_local26.y + (_local24 * _local2.r2.x)) - _local25.y) - (_local23 * _local2.r1.x)); _local9 = ((_local7 * _local31) + (_local8 * _local32)); _local11 = (-(_local2.normalMass) * (_local9 - _local2.velocityBias)); _local10 = ((_local7 * _local33) + (_local8 * _local34)); _local12 = (_local2.tangentMass * -(_local10)); _local13 = b2Math.b2Max((_local2.normalImpulse + _local11), 0); _local11 = (_local13 - _local2.normalImpulse); _local38 = (_local35 * _local2.normalImpulse); _local14 = b2Math.b2Clamp((_local2.tangentImpulse + _local12), -(_local38), _local38); _local12 = (_local14 - _local2.tangentImpulse); _local15 = ((_local11 * _local31) + (_local12 * _local33)); _local16 = ((_local11 * _local32) + (_local12 * _local34)); _local25.x = (_local25.x - (_local27 * _local15)); _local25.y = (_local25.y - (_local27 * _local16)); _local23 = (_local23 - (_local28 * ((_local2.r1.x * _local16) - (_local2.r1.y * _local15)))); _local26.x = (_local26.x + (_local29 * _local15)); _local26.y = (_local26.y + (_local29 * _local16)); _local24 = (_local24 + (_local30 * ((_local2.r2.x * _local16) - (_local2.r2.y * _local15)))); _local2.normalImpulse = _local13; _local2.tangentImpulse = _local14; _local1++; }; _local21.m_angularVelocity = _local23; _local22.m_angularVelocity = _local24; _local19++; }; } public function FinalizeVelocityConstraints():void{ var _local1:int; var _local2:b2ContactConstraint; var _local3:b2Manifold; var _local4:int; var _local5:b2ManifoldPoint; var _local6:b2ContactConstraintPoint; _local1 = 0; while (_local1 < m_constraintCount) { _local2 = m_constraints[_local1]; _local3 = _local2.manifold; _local4 = 0; while (_local4 < _local2.pointCount) { _local5 = _local3.points[_local4]; _local6 = _local2.points[_local4]; _local5.normalImpulse = _local6.normalImpulse; _local5.tangentImpulse = _local6.tangentImpulse; _local4++; }; _local1++; }; } } }//package Box2D.Dynamics.Contacts
Section 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.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.*; import Box2D.Collision.Shapes.*; 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.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.*; import Box2D.Collision.Shapes.*; 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 { 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.*; 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.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.Common.Math.*; import Box2D.Dynamics.Joints.*; import Box2D.Collision.Shapes.*; import Box2D.Dynamics.Contacts.*; public class b2Body { public var m_next:b2Body; public var m_contactList:b2ContactEdge; public var m_angularVelocity:Number; public var m_shapeList:b2Shape; public var m_force:b2Vec2; public var m_mass:Number; public var m_sweep:b2Sweep; public var m_xf:b2XForm; public var m_torque:Number; public var m_userData; public var m_flags:uint; public var m_world:b2World; public var m_prev:b2Body; public var m_invMass:Number; public var m_type:int; public var m_linearDamping:Number; public var m_angularDamping:Number; public var m_invI:Number; public var m_linearVelocity:b2Vec2; public var m_sleepTime:Number; public var m_shapeCount:int; public var m_jointList:b2JointEdge; public var m_I:Number; public static var e_fixedRotationFlag:uint = 64; public static var e_frozenFlag:uint = 2; public static var e_maxTypes:uint = 3; public static var e_sleepFlag:uint = 8; private static var s_massData:b2MassData = new b2MassData(); public static var e_bulletFlag:uint = 32; public static var e_staticType:uint = 1; public static var e_islandFlag:uint = 4; public static var e_allowSleepFlag:uint = 16; private static var s_xf1:b2XForm = new b2XForm(); public static var e_dynamicType:uint = 2; public function b2Body(_arg1:b2BodyDef, _arg2:b2World){ var _local3:b2Mat22; var _local4:b2Vec2; m_xf = new b2XForm(); m_sweep = new b2Sweep(); m_linearVelocity = new b2Vec2(); m_force = new b2Vec2(); super(); m_flags = 0; if (_arg1.isBullet){ m_flags = (m_flags | e_bulletFlag); }; if (_arg1.fixedRotation){ m_flags = (m_flags | e_fixedRotationFlag); }; if (_arg1.allowSleep){ m_flags = (m_flags | e_allowSleepFlag); }; if (_arg1.isSleeping){ m_flags = (m_flags | e_sleepFlag); }; 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.Common.Math.*; import Box2D.Collision.Shapes.*; 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.*; 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.Common.Math.*; import Box2D.Collision.*; import Box2D.Collision.Shapes.*; import Box2D.Dynamics.Contacts.*; public class b2ContactManager extends b2PairCallback { public var m_world:b2World; public var m_destroyImmediate:Boolean; public var m_nullContact:b2NullContact; private static const s_evalCP:b2ContactPoint = new b2ContactPoint(); public function b2ContactManager(){ m_nullContact = new b2NullContact(); super(); m_world = null; m_destroyImmediate = false; } override public function PairAdded(_arg1, _arg2){ var _local3:b2Shape; var _local4:b2Shape; var _local5:b2Body; var _local6:b2Body; var _local7:b2Contact; _local3 = (_arg1 as b2Shape); _local4 = (_arg2 as b2Shape); _local5 = _local3.m_body; _local6 = _local4.m_body; if (((_local5.IsStatic()) && (_local6.IsStatic()))){ return (m_nullContact); }; if (_local3.m_body == _local4.m_body){ return (m_nullContact); }; if (_local6.IsConnected(_local5)){ return (m_nullContact); }; if (((!((m_world.m_contactFilter == null))) && ((m_world.m_contactFilter.ShouldCollide(_local3, _local4) == false)))){ return (m_nullContact); }; _local7 = b2Contact.Create(_local3, _local4, m_world.m_blockAllocator); if (_local7 == null){ return (m_nullContact); }; _local3 = _local7.m_shape1; _local4 = _local7.m_shape2; _local5 = _local3.m_body; _local6 = _local4.m_body; _local7.m_prev = null; _local7.m_next = m_world.m_contactList; if (m_world.m_contactList != null){ m_world.m_contactList.m_prev = _local7; }; m_world.m_contactList = _local7; _local7.m_node1.contact = _local7; _local7.m_node1.other = _local6; _local7.m_node1.prev = null; _local7.m_node1.next = _local5.m_contactList; if (_local5.m_contactList != null){ _local5.m_contactList.prev = _local7.m_node1; }; _local5.m_contactList = _local7.m_node1; _local7.m_node2.contact = _local7; _local7.m_node2.other = _local5; _local7.m_node2.prev = null; _local7.m_node2.next = _local6.m_contactList; if (_local6.m_contactList != null){ _local6.m_contactList.prev = _local7.m_node2; }; _local6.m_contactList = _local7.m_node2; m_world.m_contactCount++; return (_local7); } override public function PairRemoved(_arg1, _arg2, _arg3):void{ var _local4:b2Contact; if (_arg3 == null){ return; }; _local4 = (_arg3 as b2Contact); if (_local4 == m_nullContact){ return; }; Destroy(_local4); } public function Destroy(_arg1:b2Contact):void{ var _local2:b2Shape; var _local3:b2Shape; var _local4:int; var _local5:b2Body; var _local6:b2Body; var _local7:b2Body; var _local8:b2Body; var _local9:Array; var _local10:b2ContactPoint; var _local11:int; var _local12:b2Manifold; var _local13:int; var _local14:b2ManifoldPoint; var _local15:b2Vec2; var _local16:b2Vec2; _local2 = _arg1.m_shape1; _local3 = _arg1.m_shape2; _local4 = _arg1.m_manifoldCount; if ((((_local4 > 0)) && (m_world.m_contactListener))){ _local7 = _local2.m_body; _local8 = _local3.m_body; _local9 = _arg1.GetManifolds(); _local10 = s_evalCP; _local10.shape1 = _arg1.m_shape1; _local10.shape2 = _arg1.m_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 flash.display.*; import Box2D.Common.Math.*; import Box2D.Collision.*; import Box2D.Collision.Shapes.*; import Box2D.Common.*; import Box2D.Dynamics.Contacts.*; public class b2DebugDraw { public var m_xformScale:Number;// = 1 public var m_fillAlpha:Number;// = 1 public var m_alpha:Number;// = 1 public var m_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.Dynamics.Joints.*; import Box2D.Collision.Shapes.*; public class b2DestructionListener { public function SayGoodbyeJoint(_arg1:b2Joint):void{ } public function SayGoodbyeShape(_arg1:b2Shape):void{ } } }//package Box2D.Dynamics
Section 72
//b2Island (Box2D.Dynamics.b2Island) package Box2D.Dynamics { import Box2D.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.Joints.*; import Box2D.Common.*; import Box2D.Dynamics.Contacts.*; public class b2Island { public var m_joints:Array; public var m_listener:b2ContactListener; public var m_positionIterationCount:int; public var m_bodyCapacity:int; public var m_bodies:Array; public var m_jointCapacity:int; public var m_contactCount:int; public var m_contacts:Array; public var m_contactCapacity:int; public var m_jointCount:int; public var m_allocator; public var m_bodyCount:int; private static var s_reportCR:b2ContactResult = new b2ContactResult(); public function b2Island(_arg1:int, _arg2:int, _arg3:int, _arg4, _arg5:b2ContactListener){ var _local6:int; super(); m_bodyCapacity = _arg1; m_contactCapacity = _arg2; m_jointCapacity = _arg3; m_bodyCount = 0; m_contactCount = 0; m_jointCount = 0; m_allocator = _arg4; m_listener = _arg5; m_bodies = new Array(_arg1); _local6 = 0; while (_local6 < _arg1) { m_bodies[_local6] = null; _local6++; }; m_contacts = new Array(_arg2); _local6 = 0; while (_local6 < _arg2) { m_contacts[_local6] = null; _local6++; }; m_joints = new Array(_arg3); _local6 = 0; while (_local6 < _arg3) { m_joints[_local6] = null; _local6++; }; m_positionIterationCount = 0; } public function AddBody(_arg1:b2Body):void{ var _local2 = m_bodyCount++; m_bodies[_local2] = _arg1; } public function AddJoint(_arg1:b2Joint):void{ var _local2 = m_jointCount++; m_joints[_local2] = _arg1; } public function Report(_arg1:Array):void{ var _local2:b2Mat22; var _local3:b2Vec2; var _local4:int; var _local5:b2Contact; var _local6:b2ContactConstraint; var _local7:b2ContactResult; var _local8:b2Body; var _local9:int; var _local10:Array; var _local11:int; var _local12:b2Manifold; var _local13:int; var _local14:b2ManifoldPoint; var _local15:b2ContactConstraintPoint; if (m_listener == null){ return; }; _local4 = 0; while (_local4 < m_contactCount) { _local5 = m_contacts[_local4]; _local6 = _arg1[_local4]; _local7 = s_reportCR; _local7.shape1 = _local5.m_shape1; _local7.shape2 = _local5.m_shape2; _local8 = _local7.shape1.m_body; _local9 = _local5.m_manifoldCount; _local10 = _local5.GetManifolds(); _local11 = 0; while (_local11 < _local9) { _local12 = _local10[_local11]; _local7.normal.SetV(_local12.normal); _local13 = 0; while (_local13 < _local12.pointCount) { _local14 = _local12.points[_local13]; _local15 = _local6.points[_local13]; _local7.position = _local8.GetWorldPoint(_local14.localPoint1); _local7.normalImpulse = _local15.normalImpulse; _local7.tangentImpulse = _local15.tangentImpulse; _local7.id.key = _local14.id.key; m_listener.Result(_local7); _local13++; }; _local11++; }; _local4++; }; } public function Solve(_arg1:b2TimeStep, _arg2:b2Vec2, _arg3:Boolean, _arg4:Boolean):void{ var _local5:int; var _local6:b2Body; var _local7:b2Joint; var _local8:b2ContactSolver; var _local9:int; var _local10:Boolean; var _local11:Boolean; var _local12:Boolean; var _local13:Number; var _local14:Number; var _local15:Number; _local5 = 0; while (_local5 < m_bodyCount) { _local6 = m_bodies[_local5]; if (_local6.IsStatic()){ } else { _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.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.Joints.*; import Box2D.Collision.Shapes.*; import Box2D.Common.*; import Box2D.Dynamics.Contacts.*; public class b2World { public var m_inv_dt0:Number; public var m_boundaryListener:b2BoundaryListener; public var m_contactList:b2Contact; public var m_blockAllocator; public var m_contactListener:b2ContactListener; public var m_allowSleep:Boolean; public var m_broadPhase:b2BroadPhase; public var m_destructionListener:b2DestructionListener; public var m_jointCount:int; public var m_bodyCount:int; public var m_lock:Boolean; public var m_positionIterationCount:int; public var m_groundBody:b2Body; public var m_contactCount:int; public var m_debugDraw:b2DebugDraw; public var m_contactFilter:b2ContactFilter; public var m_bodyList:b2Body; public var m_stackAllocator; public var m_jointList:b2Joint; public var m_gravity:b2Vec2; public var m_contactManager:b2ContactManager; private static var s_jointColor:b2Color = new b2Color(0.5, 0.8, 0.8); public static var m_continuousPhysics:Boolean; public static var m_warmStarting:Boolean; private static var s_coreColor:b2Color = new b2Color(0.9, 0.6, 0.6); public static var m_positionCorrection:Boolean; private static var s_xf:b2XForm = new b2XForm(); public function b2World(_arg1:b2AABB, _arg2:b2Vec2, _arg3:Boolean){ var _local4:b2BodyDef; m_contactManager = new b2ContactManager(); super(); m_destructionListener = null; m_boundaryListener = null; m_contactFilter = b2ContactFilter.b2_defaultFilter; m_contactListener = null; m_debugDraw = null; m_bodyList = null; m_contactList = null; m_jointList = null; m_bodyCount = 0; m_contactCount = 0; m_jointCount = 0; m_positionCorrection = true; m_warmStarting = true; m_continuousPhysics = true; m_allowSleep = _arg3; m_gravity = _arg2; m_lock = false; m_inv_dt0 = 0; m_contactManager.m_world = this; m_broadPhase = new b2BroadPhase(_arg1, m_contactManager); _local4 = new b2BodyDef(); m_groundBody = CreateBody(_local4); } 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); _local8 = m_bodyList; while (_local8) { if ((_local8.m_flags & ((b2Body.e_islandFlag | b2Body.e_sleepFlag) | b2Body.e_frozenFlag))){ } else { if (_local8.IsStatic()){ } else { _local3.Clear(); _local9 = 0; var _temp1 = _local9; _local9 = (_local9 + 1); var _local15 = _temp1; _local7[_local15] = _local8; _local8.m_flags = (_local8.m_flags | b2Body.e_islandFlag); while (_local9 > 0) { --_local9; _local2 = _local7[_local9]; _local3.AddBody(_local2); _local2.m_flags = (_local2.m_flags & ~(b2Body.e_sleepFlag)); if (_local2.IsStatic()){ } else { _local12 = _local2.m_contactList; while (_local12) { if ((_local12.contact.m_flags & (b2Contact.e_islandFlag | b2Contact.e_nonSolidFlag))){ } else { if (_local12.contact.m_manifoldCount == 0){ } else { _local3.AddContact(_local12.contact); _local12.contact.m_flags = (_local12.contact.m_flags | b2Contact.e_islandFlag); _local11 = _local12.other; if ((_local11.m_flags & b2Body.e_islandFlag)){ } else { var _temp2 = _local9; _local9 = (_local9 + 1); var _local16 = _temp2; _local7[_local16] = _local11; _local11.m_flags = (_local11.m_flags | b2Body.e_islandFlag); }; }; }; _local12 = _local12.next; }; _local13 = _local2.m_jointList; while (_local13) { if (_local13.joint.m_islandFlag == true){ } else { _local3.AddJoint(_local13.joint); _local13.joint.m_islandFlag = true; _local11 = _local13.other; if ((_local11.m_flags & b2Body.e_islandFlag)){ } else { var _temp3 = _local9; _local9 = (_local9 + 1); _local16 = _temp3; _local7[_local16] = _local11; _local11.m_flags = (_local11.m_flags | b2Body.e_islandFlag); }; }; _local13 = _local13.next; }; }; }; _local3.Solve(_arg1, m_gravity, m_positionCorrection, m_allowSleep); if (_local3.m_positionIterationCount > m_positionIterationCount){ m_positionIterationCount = _local3.m_positionIterationCount; }; _local10 = 0; while (_local10 < _local3.m_bodyCount) { _local2 = _local3.m_bodies[_local10]; if (_local2.IsStatic()){ _local2.m_flags = (_local2.m_flags & ~(b2Body.e_islandFlag)); }; _local10++; }; }; }; _local8 = _local8.m_next; }; _local2 = m_bodyList; while (_local2) { if ((_local2.m_flags & (b2Body.e_sleepFlag | b2Body.e_frozenFlag))){ } else { if (_local2.IsStatic()){ } else { _local14 = _local2.SynchronizeShapes(); if ((((_local14 == false)) && (!((m_boundaryListener == null))))){ m_boundaryListener.Violation(_local2); }; }; }; _local2 = _local2.m_next; }; m_broadPhase.Commit(); } public function Query(_arg1:b2AABB, _arg2:Array, _arg3:int):int{ var _local4:Array; var _local5:int; var _local6:int; _local4 = new Array(_arg3); _local5 = m_broadPhase.QueryAABB(_arg1, _local4, _arg3); _local6 = 0; while (_local6 < _local5) { _arg2[_local6] = _local4[_local6]; _local6++; }; return (_local5); } public function SetGravity(_arg1:b2Vec2):void{ m_gravity = _arg1; } public function SolveTOI(_arg1:b2TimeStep):void{ var _local2:b2Body; var _local3:b2Shape; var _local4:b2Shape; var _local5:b2Body; var _local6:b2Body; var _local7:b2ContactEdge; var _local8:b2Island; var _local9:int; var _local10:Array; var _local11:b2Contact; var _local12:b2Contact; var _local13:Number; var _local14:b2Body; var _local15:int; var _local16:b2TimeStep; var _local17:int; var _local18:Number; var _local19:Number; var _local20:b2Body; var _local21:Boolean; _local8 = new b2Island(m_bodyCount, b2Settings.b2_maxTOIContactsPerIsland, 0, m_stackAllocator, m_contactListener); _local9 = m_bodyCount; _local10 = new Array(_local9); _local2 = m_bodyList; while (_local2) { _local2.m_flags = (_local2.m_flags & ~(b2Body.e_islandFlag)); _local2.m_sweep.t0 = 0; _local2 = _local2.m_next; }; _local11 = m_contactList; while (_local11) { _local11.m_flags = (_local11.m_flags & ~((b2Contact.e_toiFlag | b2Contact.e_islandFlag))); _local11 = _local11.m_next; }; while (true) { _local12 = null; _local13 = 1; _local11 = m_contactList; for (;_local11;(_local11 = _local11.m_next)) { if ((_local11.m_flags & (b2Contact.e_slowFlag | b2Contact.e_nonSolidFlag))){ } else { _local18 = 1; if ((_local11.m_flags & b2Contact.e_toiFlag)){ _local18 = _local11.m_toi; } else { _local3 = _local11.m_shape1; _local4 = _local11.m_shape2; _local5 = _local3.m_body; _local6 = _local4.m_body; if (((((_local5.IsStatic()) || (_local5.IsSleeping()))) && (((_local6.IsStatic()) || (_local6.IsSleeping()))))){ continue; }; _local19 = _local5.m_sweep.t0; if (_local5.m_sweep.t0 < _local6.m_sweep.t0){ _local19 = _local6.m_sweep.t0; _local5.m_sweep.Advance(_local19); } else { if (_local6.m_sweep.t0 < _local5.m_sweep.t0){ _local19 = _local5.m_sweep.t0; _local6.m_sweep.Advance(_local19); }; }; _local18 = b2TimeOfImpact.TimeOfImpact(_local11.m_shape1, _local5.m_sweep, _local11.m_shape2, _local6.m_sweep); if ((((_local18 > 0)) && ((_local18 < 1)))){ _local18 = (((1 - _local18) * _local19) + _local18); if (_local18 > 1){ _local18 = 1; }; }; _local11.m_toi = _local18; _local11.m_flags = (_local11.m_flags | b2Contact.e_toiFlag); }; if ((((Number.MIN_VALUE < _local18)) && ((_local18 < _local13)))){ _local12 = _local11; _local13 = _local18; }; }; }; if ((((_local12 == null)) || (((1 - (100 * Number.MIN_VALUE)) < _local13)))){ break; }; _local3 = _local12.m_shape1; _local4 = _local12.m_shape2; _local5 = _local3.m_body; _local6 = _local4.m_body; _local5.Advance(_local13); _local6.Advance(_local13); _local12.Update(m_contactListener); _local12.m_flags = (_local12.m_flags & ~(b2Contact.e_toiFlag)); if (_local12.m_manifoldCount == 0){ } else { _local14 = _local5; if (_local14.IsStatic()){ _local14 = _local6; }; _local8.Clear(); _local15 = 0; var _temp1 = _local15; _local15 = (_local15 + 1); var _local22 = _temp1; _local10[_local22] = _local14; _local14.m_flags = (_local14.m_flags | b2Body.e_islandFlag); while (_local15 > 0) { --_local15; _local2 = _local10[_local15]; _local8.AddBody(_local2); _local2.m_flags = (_local2.m_flags & ~(b2Body.e_sleepFlag)); if (_local2.IsStatic()){ } else { _local7 = _local2.m_contactList; while (_local7) { if (_local8.m_contactCount == _local8.m_contactCapacity){ } else { if ((_local7.contact.m_flags & ((b2Contact.e_islandFlag | b2Contact.e_slowFlag) | b2Contact.e_nonSolidFlag))){ } else { if (_local7.contact.m_manifoldCount == 0){ } else { _local8.AddContact(_local7.contact); _local7.contact.m_flags = (_local7.contact.m_flags | b2Contact.e_islandFlag); _local20 = _local7.other; if ((_local20.m_flags & b2Body.e_islandFlag)){ } else { if (_local20.IsStatic() == false){ _local20.Advance(_local13); _local20.WakeUp(); }; var _temp2 = _local15; _local15 = (_local15 + 1); var _local23 = _temp2; _local10[_local23] = _local20; _local20.m_flags = (_local20.m_flags | b2Body.e_islandFlag); }; }; }; }; _local7 = _local7.next; }; }; }; _local16 = new b2TimeStep(); _local16.dt = ((1 - _local13) * _arg1.dt); _local16.inv_dt = (1 / _local16.dt); _local16.maxIterations = _arg1.maxIterations; _local8.SolveTOI(_local16); _local17 = 0; while (_local17 < _local8.m_bodyCount) { _local2 = _local8.m_bodies[_local17]; _local2.m_flags = (_local2.m_flags & ~(b2Body.e_islandFlag)); if ((_local2.m_flags & (b2Body.e_sleepFlag | b2Body.e_frozenFlag))){ } else { if (_local2.IsStatic()){ } else { _local21 = _local2.SynchronizeShapes(); if ((((_local21 == false)) && (!((m_boundaryListener == null))))){ m_boundaryListener.Violation(_local2); }; _local7 = _local2.m_contactList; while (_local7) { _local7.contact.m_flags = (_local7.contact.m_flags & ~(b2Contact.e_toiFlag)); _local7 = _local7.next; }; }; }; _local17++; }; _local17 = 0; while (_local17 < _local8.m_contactCount) { _local11 = _local8.m_contacts[_local17]; _local8.m_contacts[_local17].m_flags = (_local11.m_flags & ~((b2Contact.e_toiFlag | b2Contact.e_islandFlag))); _local17++; }; m_broadPhase.Commit(); }; }; } public function GetJointList():b2Joint{ return (m_jointList); } public function Validate():void{ m_broadPhase.Validate(); } public function GetPairCount():int{ return (m_broadPhase.m_pairManager.m_pairCount); } public function GetBodyList():b2Body{ return (m_bodyList); } public function SetWarmStarting(_arg1:Boolean):void{ m_warmStarting = _arg1; } public function SetPositionCorrection(_arg1:Boolean):void{ m_positionCorrection = _arg1; } public function CreateJoint(_arg1:b2JointDef):b2Joint{ var _local2:b2Joint; var _local3:b2Body; var _local4:b2Shape; _local2 = b2Joint.Create(_arg1, m_blockAllocator); _local2.m_prev = null; _local2.m_next = m_jointList; if (m_jointList){ m_jointList.m_prev = _local2; }; m_jointList = _local2; m_jointCount++; _local2.m_node1.joint = _local2; _local2.m_node1.other = _local2.m_body2; _local2.m_node1.prev = null; _local2.m_node1.next = _local2.m_body1.m_jointList; if (_local2.m_body1.m_jointList){ _local2.m_body1.m_jointList.prev = _local2.m_node1; }; _local2.m_body1.m_jointList = _local2.m_node1; _local2.m_node2.joint = _local2; _local2.m_node2.other = _local2.m_body1; _local2.m_node2.prev = null; _local2.m_node2.next = _local2.m_body2.m_jointList; if (_local2.m_body2.m_jointList){ _local2.m_body2.m_jointList.prev = _local2.m_node2; }; _local2.m_body2.m_jointList = _local2.m_node2; if (_arg1.collideConnected == false){ _local3 = ((_arg1.body1.m_shapeCount < _arg1.body2.m_shapeCount)) ? _arg1.body1 : _arg1.body2; _local4 = _local3.m_shapeList; while (_local4) { _local4.RefilterProxy(m_broadPhase, _local3.m_xf); _local4 = _local4.m_next; }; }; return (_local2); } public function DestroyJoint(_arg1:b2Joint):void{ var _local2:Boolean; var _local3:b2Body; var _local4:b2Body; var _local5:b2Body; var _local6:b2Shape; _local2 = _arg1.m_collideConnected; if (_arg1.m_prev){ _arg1.m_prev.m_next = _arg1.m_next; }; if (_arg1.m_next){ _arg1.m_next.m_prev = _arg1.m_prev; }; if (_arg1 == m_jointList){ m_jointList = _arg1.m_next; }; _local3 = _arg1.m_body1; _local4 = _arg1.m_body2; _local3.WakeUp(); _local4.WakeUp(); if (_arg1.m_node1.prev){ _arg1.m_node1.prev.next = _arg1.m_node1.next; }; if (_arg1.m_node1.next){ _arg1.m_node1.next.prev = _arg1.m_node1.prev; }; if (_arg1.m_node1 == _local3.m_jointList){ _local3.m_jointList = _arg1.m_node1.next; }; _arg1.m_node1.prev = null; _arg1.m_node1.next = null; if (_arg1.m_node2.prev){ _arg1.m_node2.prev.next = _arg1.m_node2.next; }; if (_arg1.m_node2.next){ _arg1.m_node2.next.prev = _arg1.m_node2.prev; }; if (_arg1.m_node2 == _local4.m_jointList){ _local4.m_jointList = _arg1.m_node2.next; }; _arg1.m_node2.prev = null; _arg1.m_node2.next = null; b2Joint.Destroy(_arg1, m_blockAllocator); m_jointCount--; if (_local2 == false){ _local5 = ((_local3.m_shapeCount < _local4.m_shapeCount)) ? _local3 : _local4; _local6 = _local5.m_shapeList; while (_local6) { _local6.RefilterProxy(m_broadPhase, _local5.m_xf); _local6 = _local6.m_next; }; }; } public function SetContactListener(_arg1:b2ContactListener):void{ m_contactListener = _arg1; } public function CreateBody(_arg1:b2BodyDef):b2Body{ var _local2:b2Body; if (m_lock == true){ return (null); }; _local2 = new b2Body(_arg1, this); _local2.m_prev = null; _local2.m_next = m_bodyList; if (m_bodyList){ m_bodyList.m_prev = _local2; }; m_bodyList = _local2; m_bodyCount++; return (_local2); } public function SetBoundaryListener(_arg1:b2BoundaryListener):void{ m_boundaryListener = _arg1; } public function SetDestructionListener(_arg1:b2DestructionListener):void{ m_destructionListener = _arg1; } public function Step(_arg1:Number, _arg2:int):void{ var _local3:b2TimeStep; m_lock = true; _local3 = new b2TimeStep(); _local3.dt = _arg1; _local3.maxIterations = _arg2; if (_arg1 > 0){ _local3.inv_dt = (1 / _arg1); } else { _local3.inv_dt = 0; }; _local3.dtRatio = (m_inv_dt0 * _arg1); _local3.positionCorrection = m_positionCorrection; _local3.warmStarting = m_warmStarting; m_contactManager.Collide(); if (_local3.dt > 0){ Solve(_local3); }; if (((m_continuousPhysics) && ((_local3.dt > 0)))){ SolveTOI(_local3); }; DrawDebugData(); m_inv_dt0 = _local3.inv_dt; m_lock = false; } public function GetBodyCount():int{ return (m_bodyCount); } public function GetJointCount():int{ return (m_jointCount); } } }//package Box2D.Dynamics
Section 75
//BaseScrollPane (fl.containers.BaseScrollPane) package fl.containers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.geom.*; import flash.events.*; import fl.events.*; public class BaseScrollPane extends UIComponent { protected var defaultLineScrollSize:Number;// = 4 protected var _maxHorizontalScrollPosition:Number;// = 0 protected var vScrollBar:Boolean; protected var disabledOverlay:Shape; protected var hScrollBar:Boolean; protected var availableWidth:Number; protected var _verticalPageScrollSize:Number;// = 0 protected var vOffset:Number;// = 0 protected var _verticalScrollBar:ScrollBar; protected var useFixedHorizontalScrolling:Boolean;// = false protected var contentWidth:Number;// = 0 protected var contentHeight:Number;// = 0 protected var _horizontalPageScrollSize:Number;// = 0 protected var background:DisplayObject; protected var _useBitmpScrolling:Boolean;// = false protected var contentPadding:Number;// = 0 protected var availableHeight:Number; protected var _horizontalScrollBar:ScrollBar; protected var contentScrollRect:Rectangle; protected var _horizontalScrollPolicy:String; protected var _verticalScrollPolicy:String; protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5}; public function BaseScrollPane(){ contentWidth = 0; contentHeight = 0; contentPadding = 0; vOffset = 0; _maxHorizontalScrollPosition = 0; _horizontalPageScrollSize = 0; _verticalPageScrollSize = 0; defaultLineScrollSize = 4; useFixedHorizontalScrolling = false; _useBitmpScrolling = false; super(); } protected function handleWheel(_arg1:MouseEvent):void{ if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){ return; }; _verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize)); setVerticalScrollPosition(_verticalScrollBar.scrollPosition); dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition)); } public function get verticalScrollPosition():Number{ return (_verticalScrollBar.scrollPosition); } protected function drawDisabledOverlay():void{ if (enabled){ if (contains(disabledOverlay)){ removeChild(disabledOverlay); }; } else { disabledOverlay.x = (disabledOverlay.y = contentPadding); disabledOverlay.width = availableWidth; disabledOverlay.height = availableHeight; disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number); addChild(disabledOverlay); }; } public function set verticalScrollPosition(_arg1:Number):void{ drawNow(); _verticalScrollBar.scrollPosition = _arg1; setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); } protected function setContentSize(_arg1:Number, _arg2:Number):void{ if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){ return; }; contentWidth = _arg1; contentHeight = _arg2; invalidate(InvalidationType.SIZE); } public function get horizontalScrollPosition():Number{ return (_horizontalScrollBar.scrollPosition); } public function get horizontalScrollBar():ScrollBar{ return (_horizontalScrollBar); } override public function set enabled(_arg1:Boolean):void{ if (enabled == _arg1){ return; }; _verticalScrollBar.enabled = _arg1; _horizontalScrollBar.enabled = _arg1; super.enabled = _arg1; } public function get verticalLineScrollSize():Number{ return (_verticalScrollBar.lineScrollSize); } public function get horizontalScrollPolicy():String{ return (_horizontalScrollPolicy); } protected function calculateAvailableSize():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; _local1 = ScrollBar.WIDTH; _local2 = (contentPadding = Number(getStyleValue("contentPadding"))); _local3 = ((height - (2 * _local2)) - vOffset); vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3))))); _local4 = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2)); _local5 = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4); hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0))))); if (hScrollBar){ _local3 = (_local3 - _local1); }; if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){ vScrollBar = true; _local4 = (_local4 - _local1); }; availableHeight = (_local3 + vOffset); availableWidth = _local4; } public function get maxVerticalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentHeight - availableHeight))); } public function set horizontalScrollPosition(_arg1:Number):void{ drawNow(); _horizontalScrollBar.scrollPosition = _arg1; setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); } public function get horizontalLineScrollSize():Number{ return (_horizontalScrollBar.lineScrollSize); } public function set verticalPageScrollSize(_arg1:Number):void{ _verticalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } public function get verticalScrollPolicy():String{ return (_verticalScrollPolicy); } protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } public function get useBitmapScrolling():Boolean{ return (_useBitmpScrolling); } protected function handleScroll(_arg1:ScrollEvent):void{ if (_arg1.target == _verticalScrollBar){ setVerticalScrollPosition(_arg1.position); } else { setHorizontalScrollPosition(_arg1.position); }; } public function set verticalLineScrollSize(_arg1:Number):void{ _verticalScrollBar.lineScrollSize = _arg1; } public function get verticalScrollBar():ScrollBar{ return (_verticalScrollBar); } protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } public function set horizontalPageScrollSize(_arg1:Number):void{ _horizontalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){ drawLayout(); }; updateChildren(); super.draw(); } public function set horizontalScrollPolicy(_arg1:String):void{ _horizontalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } override protected function configUI():void{ var _local1:Graphics; super.configUI(); contentScrollRect = new Rectangle(0, 0, 85, 85); _verticalScrollBar = new ScrollBar(); _verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _verticalScrollBar.visible = false; _verticalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_verticalScrollBar); copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); _horizontalScrollBar = new ScrollBar(); _horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL; _horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _horizontalScrollBar.visible = false; _horizontalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_horizontalScrollBar); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); disabledOverlay = new Shape(); _local1 = disabledOverlay.graphics; _local1.beginFill(0xFFFFFF); _local1.drawRect(0, 0, width, height); _local1.endFill(); addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true); } protected function calculateContentWidth():void{ } public function get verticalPageScrollSize():Number{ if (isNaN(availableHeight)){ drawNow(); }; return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize); } protected function drawLayout():void{ calculateAvailableSize(); calculateContentWidth(); background.width = width; background.height = height; if (vScrollBar){ _verticalScrollBar.visible = true; _verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding); _verticalScrollBar.y = contentPadding; _verticalScrollBar.height = availableHeight; } else { _verticalScrollBar.visible = false; }; _verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize); setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); if (hScrollBar){ _horizontalScrollBar.visible = true; _horizontalScrollBar.x = contentPadding; _horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding); _horizontalScrollBar.width = availableWidth; } else { _horizontalScrollBar.visible = false; }; _horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize); setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); drawDisabledOverlay(); } protected function drawBackground():void{ var _local1:DisplayObject; _local1 = background; background = getDisplayObjectInstance(getStyleValue("skin")); background.width = width; background.height = height; addChildAt(background, 0); if (((!((_local1 == null))) && (!((_local1 == background))))){ removeChild(_local1); }; } public function set horizontalLineScrollSize(_arg1:Number):void{ _horizontalScrollBar.lineScrollSize = _arg1; } public function get horizontalPageScrollSize():Number{ if (isNaN(availableWidth)){ drawNow(); }; return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize); } public function get maxHorizontalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentWidth - availableWidth))); } protected function setStyles():void{ copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); } protected function updateChildren():void{ _verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled); _verticalScrollBar.drawNow(); _horizontalScrollBar.drawNow(); } public function set verticalScrollPolicy(_arg1:String):void{ _verticalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } public function set useBitmapScrolling(_arg1:Boolean):void{ _useBitmpScrolling = _arg1; invalidate(InvalidationType.STATE); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition())); } } }//package fl.containers
Section 76
//CellRenderer (fl.controls.listClasses.CellRenderer) package fl.controls.listClasses { import fl.controls.*; import flash.events.*; public class CellRenderer extends LabelButton implements ICellRenderer { protected var _data:Object; protected var _listData:ListData; private static var defaultStyles:Object = {upSkin:"CellRenderer_upSkin", downSkin:"CellRenderer_downSkin", overSkin:"CellRenderer_overSkin", disabledSkin:"CellRenderer_disabledSkin", selectedDisabledSkin:"CellRenderer_selectedDisabledSkin", selectedUpSkin:"CellRenderer_selectedUpSkin", selectedDownSkin:"CellRenderer_selectedDownSkin", selectedOverSkin:"CellRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5}; public function CellRenderer():void{ toggle = true; focusEnabled = false; } override protected function toggleSelected(_arg1:MouseEvent):void{ } override public function get selected():Boolean{ return (super.selected); } public function set listData(_arg1:ListData):void{ _listData = _arg1; label = _listData.label; setStyle("icon", _listData.icon); } override public function set selected(_arg1:Boolean):void{ super.selected = _arg1; } public function set data(_arg1:Object):void{ _data = _arg1; } public function get listData():ListData{ return (_listData); } override public function setSize(_arg1:Number, _arg2:Number):void{ super.setSize(_arg1, _arg2); } override protected function drawLayout():void{ var _local1:Number; var _local2:Number; var _local3:Number; _local1 = Number(getStyleValue("textPadding")); _local2 = 0; if (icon != null){ icon.x = _local1; icon.y = Math.round(((height - icon.height) >> 1)); _local2 = (icon.width + _local1); }; if (label.length > 0){ textField.visible = true; _local3 = Math.max(0, ((width - _local2) - (_local1 * 2))); textField.width = _local3; textField.height = (textField.textHeight + 4); textField.x = (_local2 + _local1); textField.y = Math.round(((height - textField.height) >> 1)); } else { textField.visible = false; }; background.width = width; background.height = height; } public function get data():Object{ return (_data); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls.listClasses
Section 77
//ICellRenderer (fl.controls.listClasses.ICellRenderer) package fl.controls.listClasses { public interface ICellRenderer { function setSize(_arg1:Number, _arg2:Number):void; function get listData():ListData; function get data():Object; function setMouseState(_arg1:String):void; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function set data(_arg1:Object):void; function set selected(_arg1:Boolean):void; function set listData(_arg1:ListData):void; function get selected():Boolean; } }//package fl.controls.listClasses
Section 78
//ListData (fl.controls.listClasses.ListData) package fl.controls.listClasses { import fl.core.*; public class ListData { protected var _index:uint; protected var _owner:UIComponent; protected var _label:String; protected var _icon:Object;// = null protected var _row:uint; protected var _column:uint; public function ListData(_arg1:String, _arg2:Object, _arg3:UIComponent, _arg4:uint, _arg5:uint, _arg6:uint=0){ _icon = null; super(); _label = _arg1; _icon = _arg2; _owner = _arg3; _index = _arg4; _row = _arg5; _column = _arg6; } public function get owner():UIComponent{ return (_owner); } public function get label():String{ return (_label); } public function get row():uint{ return (_row); } public function get index():uint{ return (_index); } public function get icon():Object{ return (_icon); } public function get column():uint{ return (_column); } } }//package fl.controls.listClasses
Section 79
//BaseButton (fl.controls.BaseButton) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.events.*; import flash.utils.*; public class BaseButton extends UIComponent { protected var _selected:Boolean;// = false private var unlockedMouseState:String; protected var pressTimer:Timer; protected var mouseState:String; protected var background:DisplayObject; private var _mouseStateLocked:Boolean;// = false protected var _autoRepeat:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ _selected = false; _autoRepeat = false; _mouseStateLocked = false; super(); buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function get selected():Boolean{ return (_selected); } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function drawLayout():void{ background.width = width; background.height = height; } protected function drawBackground():void{ var _local1:String; var _local2:DisplayObject; _local1 = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); _local2 = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 80
//Button (fl.controls.Button) package fl.controls { import fl.core.*; import flash.display.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var emphasizedBorder:DisplayObject; protected var _emphasized:Boolean;// = false private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function Button(){ _emphasized = false; super(); } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local1:Object; var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; _local1 = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 81
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement) package fl.controls { public class ButtonLabelPlacement { public static const TOP:String = "top"; public static const LEFT:String = "left"; public static const BOTTOM:String = "bottom"; public static const RIGHT:String = "right"; } }//package fl.controls
Section 82
//ComboBox (fl.controls.ComboBox) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.geom.*; import flash.events.*; import fl.data.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class ComboBox extends UIComponent implements IFocusManagerComponent { protected var _dropdownWidth:Number; protected var highlightedCell:int;// = -1 protected var _prompt:String; protected var isOpen:Boolean;// = false protected var list:List; protected var _rowCount:uint;// = 5 protected var currentIndex:int; protected var isKeyDown:Boolean;// = false protected var _labels:Array; protected var background:BaseButton; protected var inputField:TextInput; protected var listOverIndex:uint; protected var editableValue:String; protected var _editable:Boolean;// = false private var collectionItemImport:SimpleCollectionItem; protected static const BACKGROUND_STYLES:Object = {overSkin:"overSkin", downSkin:"downSkin", upSkin:"upSkin", disabledSkin:"disabledSkin", repeatInterval:"repeatInterval"}; protected static const LIST_STYLES:Object = {upSkin:"comboListUpSkin", overSkin:"comboListOverSkin", downSkin:"comobListDownSkin", disabledSkin:"comboListDisabledSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval", textFormat:"textFormat", disabledAlpha:"disabledAlpha", skin:"listSkin"}; private static var defaultStyles:Object = {upSkin:"ComboBox_upSkin", downSkin:"ComboBox_downSkin", overSkin:"ComboBox_overSkin", disabledSkin:"ComboBox_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, buttonWidth:24, disabledAlpha:null, listSkin:null}; public static var createAccessibilityImplementation:Function; public function ComboBox(){ _rowCount = 5; _editable = false; isOpen = false; highlightedCell = -1; isKeyDown = false; super(); } protected function drawList():void{ list.rowCount = Math.max(0, Math.min(_rowCount, list.dataProvider.length)); } public function set imeMode(_arg1:String):void{ inputField.imeMode = _arg1; } public function get dropdown():List{ return (list); } public function get dropdownWidth():Number{ return (list.width); } public function sortItemsOn(_arg1:String, _arg2:Object=null){ return (list.sortItemsOn(_arg1, _arg2)); } protected function onEnter(_arg1:ComponentEvent):void{ _arg1.stopPropagation(); } public function removeItemAt(_arg1:uint):void{ list.removeItemAt(_arg1); invalidate(InvalidationType.DATA); } public function open():void{ currentIndex = selectedIndex; if (((isOpen) || ((length == 0)))){ return; }; dispatchEvent(new Event(Event.OPEN)); isOpen = true; addEventListener(Event.ENTER_FRAME, addCloseListener, false, 0, true); positionList(); list.scrollToSelected(); stage.addChild(list); } public function get selectedItem():Object{ return (list.selectedItem); } public function set text(_arg1:String):void{ if (!editable){ return; }; inputField.text = _arg1; } public function get labelField():String{ return (list.labelField); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int; var _local3:uint; var _local4:Number; var _local5:int; isKeyDown = true; if (_arg1.ctrlKey){ switch (_arg1.keyCode){ case Keyboard.UP: if (highlightedCell > -1){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); break; case Keyboard.DOWN: open(); break; }; return; }; _arg1.stopPropagation(); _local2 = Math.max(((calculateAvailableHeight() / list.rowHeight) << 0), 1); _local3 = selectedIndex; _local4 = ((highlightedCell)==-1) ? selectedIndex : highlightedCell; _local5 = -1; switch (_arg1.keyCode){ case Keyboard.SPACE: if (isOpen){ close(); } else { open(); }; return; case Keyboard.ESCAPE: if (isOpen){ if (highlightedCell > -1){ selectedIndex = selectedIndex; }; close(); }; return; case Keyboard.UP: _local5 = Math.max(0, (_local4 - 1)); break; case Keyboard.DOWN: _local5 = Math.min((length - 1), (_local4 + 1)); break; case Keyboard.PAGE_UP: _local5 = Math.max((_local4 - _local2), 0); break; case Keyboard.PAGE_DOWN: _local5 = Math.min((_local4 + _local2), (length - 1)); break; case Keyboard.HOME: _local5 = 0; break; case Keyboard.END: _local5 = (length - 1); break; case Keyboard.ENTER: if (((_editable) && ((highlightedCell == -1)))){ editableValue = inputField.text; selectedIndex = -1; } else { if (((isOpen) && ((highlightedCell > -1)))){ editableValue = null; selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; }; dispatchEvent(new ComponentEvent(ComponentEvent.ENTER)); close(); return; default: if (editable){ break; }; _local5 = list.getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), _local4); break; }; if (_local5 > -1){ if (isOpen){ highlightCell(_local5); inputField.text = list.itemToLabel(getItemAt(_local5)); } else { highlightCell(); selectedIndex = _local5; dispatchEvent(new Event(Event.CHANGE)); }; }; } public function set dropdownWidth(_arg1:Number):void{ _dropdownWidth = _arg1; invalidate(InvalidationType.SIZE); } public function get editable():Boolean{ return (_editable); } override protected function focusInHandler(_arg1:FocusEvent):void{ super.focusInHandler(_arg1); if (editable){ stage.focus = inputField.textField; }; } protected function onStageClick(_arg1:MouseEvent):void{ if (!isOpen){ return; }; if (((!(contains((_arg1.target as DisplayObject)))) && (!(list.contains((_arg1.target as DisplayObject)))))){ if (highlightedCell != -1){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); }; } protected function handleDataChange(_arg1:DataChangeEvent):void{ invalidate(InvalidationType.DATA); } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ isKeyDown = false; } protected function onListItemUp(_arg1:MouseEvent):void{ var _local2:*; stage.removeEventListener(MouseEvent.MOUSE_UP, onListItemUp); if (((!((_arg1.target is ICellRenderer))) || (!(list.contains((_arg1.target as DisplayObject)))))){ return; }; editableValue = null; _local2 = selectedIndex; selectedIndex = _arg1.target.listData.index; if (_local2 != selectedIndex){ dispatchEvent(new Event(Event.CHANGE)); }; close(); } public function removeAll():void{ list.removeAll(); inputField.text = ""; invalidate(InvalidationType.DATA); } public function set selectedItem(_arg1:Object):void{ list.selectedItem = _arg1; invalidate(InvalidationType.SELECTED); } protected function highlightCell(_arg1:int=-1):void{ var _local2:ICellRenderer; if (highlightedCell > -1){ _local2 = list.itemToCellRenderer(getItemAt(highlightedCell)); if (_local2 != null){ _local2.setMouseState("up"); }; }; if (_arg1 == -1){ return; }; list.scrollToIndex(_arg1); list.drawNow(); _local2 = list.itemToCellRenderer(getItemAt(_arg1)); if (_local2 != null){ _local2.setMouseState("over"); highlightedCell = _arg1; }; } public function itemToLabel(_arg1:Object):String{ if (_arg1 == null){ return (""); }; return (list.itemToLabel(_arg1)); } public function addItemAt(_arg1:Object, _arg2:uint):void{ list.addItemAt(_arg1, _arg2); invalidate(InvalidationType.DATA); } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ return (list.replaceItemAt(_arg1, _arg2)); } protected function showPrompt():void{ inputField.text = _prompt; } public function set rowCount(_arg1:uint):void{ _rowCount = _arg1; invalidate(InvalidationType.SIZE); } public function get restrict():String{ return (inputField.restrict); } protected function setEmbedFonts():void{ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ inputField.textField.embedFonts = _local1; }; } public function sortItems(... _args){ return (list.sortItems.apply(list, _args)); } public function set labelField(_arg1:String):void{ list.labelField = _arg1; invalidate(InvalidationType.DATA); } public function set editable(_arg1:Boolean):void{ _editable = _arg1; drawTextField(); } public function set prompt(_arg1:String):void{ if (_arg1 == ""){ _prompt = null; } else { _prompt = _arg1; }; invalidate(InvalidationType.STATE); } public function get length():int{ return (list.length); } protected function drawTextField():void{ inputField.setStyle("upSkin", ""); inputField.setStyle("disabledSkin", ""); inputField.enabled = enabled; inputField.editable = _editable; inputField.textField.selectable = ((enabled) && (_editable)); inputField.mouseEnabled = (inputField.mouseChildren = ((enabled) && (_editable))); inputField.focusEnabled = false; if (_editable){ inputField.addEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus, false, 0, true); inputField.addEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut, false, 0, true); } else { inputField.removeEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus); inputField.removeEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut); }; } protected function onInputFieldFocusOut(_arg1:FocusEvent):void{ inputField.removeEventListener(ComponentEvent.ENTER, onEnter); selectedIndex = selectedIndex; } protected function passEvent(_arg1:Event):void{ dispatchEvent(_arg1); } public function get imeMode():String{ return (inputField.imeMode); } public function get labelFunction():Function{ return (list.labelFunction); } protected function calculateAvailableHeight():Number{ var _local1:Number; _local1 = Number(getStyleValue("contentPadding")); return ((list.height - (_local1 * 2))); } public function get selectedIndex():int{ return (list.selectedIndex); } override protected function focusOutHandler(_arg1:FocusEvent):void{ isKeyDown = false; if (isOpen){ if (((!(_arg1.relatedObject)) || (!(list.contains(_arg1.relatedObject))))){ if (((!((highlightedCell == -1))) && (!((highlightedCell == selectedIndex))))){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); }; }; super.focusOutHandler(_arg1); } public function get selectedLabel():String{ if (editableValue != null){ return (editableValue); }; if (selectedIndex == -1){ return (null); }; return (itemToLabel(selectedItem)); } public function get text():String{ return (inputField.text); } protected function onListChange(_arg1:Event):void{ editableValue = null; dispatchEvent(_arg1); invalidate(InvalidationType.SELECTED); if (isKeyDown){ return; }; close(); } protected function onToggleListVisibility(_arg1:MouseEvent):void{ _arg1.stopPropagation(); dispatchEvent(_arg1); if (isOpen){ close(); } else { open(); stage.addEventListener(MouseEvent.MOUSE_UP, onListItemUp, false, 0, true); }; } override protected function draw():void{ var _local1:*; _local1 = selectedIndex; if ((((_local1 == -1)) && (((((!((prompt == null))) || (editable))) || ((length == 0)))))){ _local1 = Math.max(-1, Math.min(_local1, (length - 1))); } else { editableValue = null; _local1 = Math.max(0, Math.min(_local1, (length - 1))); }; if (list.selectedIndex != _local1){ list.selectedIndex = _local1; invalidate(InvalidationType.SELECTED, false); }; if (isInvalid(InvalidationType.STYLES)){ setStyles(); setEmbedFonts(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.STATE)){ drawTextFormat(); drawLayout(); invalidate(InvalidationType.DATA); }; if (isInvalid(InvalidationType.DATA)){ drawList(); invalidate(InvalidationType.SELECTED, true); }; if (isInvalid(InvalidationType.SELECTED)){ if ((((_local1 == -1)) && (!((editableValue == null))))){ inputField.text = editableValue; } else { if (_local1 > -1){ if (length > 0){ inputField.horizontalScrollPosition = 0; inputField.text = itemToLabel(list.selectedItem); }; } else { if ((((_local1 == -1)) && (!((_prompt == null))))){ showPrompt(); } else { inputField.text = ""; }; }; }; if (((((editable) && ((selectedIndex > -1)))) && ((stage.focus == inputField.textField)))){ inputField.setSelection(0, inputField.length); }; }; drawTextField(); super.draw(); } public function addItem(_arg1:Object):void{ list.addItem(_arg1); invalidate(InvalidationType.DATA); } public function get rowCount():uint{ return (_rowCount); } override protected function configUI():void{ super.configUI(); background = new BaseButton(); background.focusEnabled = false; copyStylesToChild(background, BACKGROUND_STYLES); background.addEventListener(MouseEvent.MOUSE_DOWN, onToggleListVisibility, false, 0, true); addChild(background); inputField = new TextInput(); inputField.focusTarget = (this as IFocusManagerComponent); inputField.focusEnabled = false; inputField.addEventListener(Event.CHANGE, onTextInput, false, 0, true); addChild(inputField); list = new List(); list.focusEnabled = false; copyStylesToChild(list, LIST_STYLES); list.addEventListener(Event.CHANGE, onListChange, false, 0, true); list.addEventListener(ListEvent.ITEM_CLICK, onListChange, false, 0, true); list.addEventListener(ListEvent.ITEM_ROLL_OUT, passEvent, false, 0, true); list.addEventListener(ListEvent.ITEM_ROLL_OVER, passEvent, false, 0, true); list.verticalScrollBar.addEventListener(Event.SCROLL, passEvent, false, 0, true); } protected function positionList():void{ var _local1:Point; _local1 = localToGlobal(new Point(0, 0)); list.x = _local1.x; if (((_local1.y + height) + list.height) > stage.stageHeight){ list.y = (_local1.y - list.height); } else { list.y = (_local1.y + height); }; } public function get value():String{ var _local1:Object; if (editableValue != null){ return (editableValue); }; _local1 = selectedItem; if (((!(_editable)) && (!((_local1.data == null))))){ return (_local1.data); }; return (itemToLabel(_local1)); } public function get prompt():String{ return (_prompt); } public function set dataProvider(_arg1:DataProvider):void{ _arg1.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true); list.dataProvider = _arg1; invalidate(InvalidationType.DATA); } public function set restrict(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ _arg1 = null; }; if (!_editable){ return; }; inputField.restrict = _arg1; } protected function onTextInput(_arg1:Event):void{ _arg1.stopPropagation(); if (!_editable){ return; }; editableValue = inputField.text; selectedIndex = -1; dispatchEvent(new Event(Event.CHANGE)); } protected function onInputFieldFocus(_arg1:FocusEvent):void{ inputField.addEventListener(ComponentEvent.ENTER, onEnter, false, 0, true); close(); } public function getItemAt(_arg1:uint):Object{ return (list.getItemAt(_arg1)); } override protected function initializeAccessibility():void{ if (ComboBox.createAccessibilityImplementation != null){ ComboBox.createAccessibilityImplementation(this); }; } protected function drawLayout():void{ var _local1:Number; var _local2:Number; _local1 = (getStyleValue("buttonWidth") as Number); _local2 = (getStyleValue("textPadding") as Number); background.setSize(width, height); inputField.x = (inputField.y = _local2); inputField.setSize(((width - _local1) - _local2), (height - _local2)); list.width = (isNaN(_dropdownWidth)) ? width : _dropdownWidth; background.enabled = enabled; background.drawNow(); } public function removeItem(_arg1:Object):Object{ return (list.removeItem(_arg1)); } private function addCloseListener(_arg1:Event){ removeEventListener(Event.ENTER_FRAME, addCloseListener); if (!isOpen){ return; }; stage.addEventListener(MouseEvent.MOUSE_DOWN, onStageClick, false, 0, true); } public function get dataProvider():DataProvider{ return (list.dataProvider); } public function get textField():TextInput{ return (inputField); } protected function setStyles():void{ copyStylesToChild(background, BACKGROUND_STYLES); copyStylesToChild(list, LIST_STYLES); } public function set labelFunction(_arg1:Function):void{ list.labelFunction = _arg1; invalidate(InvalidationType.DATA); } protected function drawTextFormat():void{ var _local1:TextFormat; _local1 = (getStyleValue((_enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local1 == null){ _local1 = new TextFormat(); }; inputField.textField.defaultTextFormat = _local1; inputField.textField.setTextFormat(_local1); setEmbedFonts(); } public function set selectedIndex(_arg1:int):void{ list.selectedIndex = _arg1; highlightCell(); invalidate(InvalidationType.SELECTED); } public function close():void{ highlightCell(); highlightedCell = -1; if (!isOpen){ return; }; dispatchEvent(new Event(Event.CLOSE)); stage.removeEventListener(MouseEvent.MOUSE_DOWN, onStageClick); isOpen = false; stage.removeChild(list); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, List.getStyleDefinition())); } } }//package fl.controls
Section 83
//LabelButton (fl.controls.LabelButton) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _labelPlacement:String;// = "right" protected var _toggle:Boolean;// = false protected var icon:DisplayObject; protected var oldMouseState:String; protected var mode:String;// = "center" public var textField:TextField; protected var _label:String;// = "Label" private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function LabelButton(){ _labelPlacement = ButtonLabelPlacement.RIGHT; _toggle = false; _label = "Label"; mode = "center"; super(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } public function get labelPlacement():String{ return (_labelPlacement); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } protected function setEmbedFont(){ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } public function get label():String{ return (_label); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } public function get toggle():Boolean{ return (_toggle); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function drawLayout():void{ var _local1:Number; var _local2:String; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local1 = Number(getStyleValue("textPadding")); _local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); _local3 = (textField.textWidth + 4); _local4 = (textField.textHeight + 4); _local5 = ((icon)==null) ? 0 : (icon.width + _local1); _local6 = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } protected function drawIcon():void{ var _local1:DisplayObject; var _local2:String; var _local3:Object; _local1 = icon; _local2 = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); _local3 = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } protected function drawTextFormat():void{ var _local1:Object; var _local2:TextFormat; var _local3:TextFormat; _local1 = UIComponent.getStyleDefinition(); _local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); _local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 84
//List (fl.controls.List) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.geom.*; import flash.events.*; import fl.managers.*; import flash.utils.*; import flash.ui.*; public class List extends SelectableList implements IFocusManagerComponent { protected var _labelField:String;// = "label" protected var _rowHeight:Number;// = 20 protected var _cellRenderer:Object; protected var _iconField:String;// = "icon" protected var _labelFunction:Function; protected var _iconFunction:Function; private static var defaultStyles:Object = {focusRectSkin:null, focusRectPadding:null}; public static var createAccessibilityImplementation:Function; public function List(){ _rowHeight = 20; _labelField = "label"; _iconField = "icon"; super(); } public function get iconField():String{ return (_iconField); } protected function doKeySelection(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{ var _local4:Boolean; var _local5:int; var _local6:Array; var _local7:int; var _local8:int; _local4 = false; if (_arg2){ _local6 = []; _local7 = lastCaretIndex; _local8 = _arg1; if (_local7 == -1){ _local7 = ((caretIndex)!=-1) ? caretIndex : _arg1; }; if (_local7 > _local8){ _local8 = _local7; _local7 = _arg1; }; _local5 = _local7; while (_local5 <= _local8) { _local6.push(_local5); _local5++; }; selectedIndices = _local6; caretIndex = _arg1; _local4 = true; } else { selectedIndex = _arg1; caretIndex = (lastCaretIndex = _arg1); _local4 = true; }; if (_local4){ dispatchEvent(new Event(Event.CHANGE)); }; invalidate(InvalidationType.DATA); } override protected function drawList():void{ var _local1:Rectangle; var _local2:uint; var _local3:uint; var _local4:uint; var _local5:Object; var _local6:ICellRenderer; var _local7:Dictionary; var _local8:Dictionary; var _local9:Boolean; var _local10:String; var _local11:Object; var _local12:Sprite; var _local13:String; listHolder.x = (listHolder.y = contentPadding); _local1 = listHolder.scrollRect; _local1.x = _horizontalScrollPosition; _local1.y = (Math.floor(_verticalScrollPosition) % rowHeight); listHolder.scrollRect = _local1; listHolder.cacheAsBitmap = useBitmapScrolling; _local2 = Math.floor((_verticalScrollPosition / rowHeight)); _local3 = Math.min(length, ((_local2 + rowCount) + 1)); _local7 = (renderedItems = new Dictionary(true)); _local4 = _local2; while (_local4 < _local3) { _local7[_dataProvider.getItemAt(_local4)] = true; _local4++; }; _local8 = new Dictionary(true); while (activeCellRenderers.length > 0) { _local6 = (activeCellRenderers.pop() as ICellRenderer); _local5 = _local6.data; if ((((_local7[_local5] == null)) || ((invalidItems[_local5] == true)))){ availableCellRenderers.push(_local6); } else { _local8[_local5] = _local6; invalidItems[_local5] = true; }; list.removeChild((_local6 as DisplayObject)); }; invalidItems = new Dictionary(true); _local4 = _local2; while (_local4 < _local3) { _local9 = false; _local5 = _dataProvider.getItemAt(_local4); if (_local8[_local5] != null){ _local9 = true; _local6 = _local8[_local5]; delete _local8[_local5]; } else { if (availableCellRenderers.length > 0){ _local6 = (availableCellRenderers.pop() as ICellRenderer); } else { _local6 = (getDisplayObjectInstance(getStyleValue("cellRenderer")) as ICellRenderer); _local12 = (_local6 as Sprite); if (_local12 != null){ _local12.addEventListener(MouseEvent.CLICK, handleCellRendererClick, false, 0, true); _local12.addEventListener(MouseEvent.ROLL_OVER, handleCellRendererMouseEvent, false, 0, true); _local12.addEventListener(MouseEvent.ROLL_OUT, handleCellRendererMouseEvent, false, 0, true); _local12.addEventListener(Event.CHANGE, handleCellRendererChange, false, 0, true); _local12.doubleClickEnabled = true; _local12.addEventListener(MouseEvent.DOUBLE_CLICK, handleCellRendererDoubleClick, false, 0, true); if (_local12["setStyle"] != null){ for (_local13 in rendererStyles) { var _local16 = _local12; _local16["setStyle"](_local13, rendererStyles[_local13]); }; }; }; }; }; list.addChild((_local6 as Sprite)); activeCellRenderers.push(_local6); _local6.y = (rowHeight * (_local4 - _local2)); _local6.setSize((availableWidth + _maxHorizontalScrollPosition), rowHeight); _local10 = itemToLabel(_local5); _local11 = null; if (_iconFunction != null){ _local11 = _iconFunction(_local5); } else { if (_iconField != null){ _local11 = _local5[_iconField]; }; }; if (!_local9){ _local6.data = _local5; }; _local6.listData = new ListData(_local10, _local11, this, _local4, _local4, 0); _local6.selected = !((_selectedIndices.indexOf(_local4) == -1)); if ((_local6 is UIComponent)){ (_local6 as UIComponent).drawNow(); }; _local4++; }; } public function get iconFunction():Function{ return (_iconFunction); } public function set iconField(_arg1:String):void{ if (_arg1 == _iconField){ return; }; _iconField = _arg1; invalidate(InvalidationType.DATA); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int; if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.SPACE: if (caretIndex == -1){ caretIndex = 0; }; doKeySelection(caretIndex, _arg1.shiftKey, _arg1.ctrlKey); scrollToSelected(); break; default: _local2 = getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), selectedIndex); if (_local2 > -1){ selectedIndex = _local2; scrollToSelected(); }; break; }; _arg1.stopPropagation(); } override public function itemToLabel(_arg1:Object):String{ if (_labelFunction != null){ return (String(_labelFunction(_arg1))); }; return (((_arg1[_labelField])!=null) ? String(_arg1[_labelField]) : ""); } public function get labelField():String{ return (_labelField); } override protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ var _local4:int; var _local5:int; var _local6:int; _local4 = Math.max(Math.floor((calculateAvailableHeight() / rowHeight)), 1); _local5 = -1; _local6 = 0; switch (_arg1){ case Keyboard.UP: if (caretIndex > 0){ _local5 = (caretIndex - 1); }; break; case Keyboard.DOWN: if (caretIndex < (length - 1)){ _local5 = (caretIndex + 1); }; break; case Keyboard.PAGE_UP: if (caretIndex > 0){ _local5 = Math.max((caretIndex - _local4), 0); }; break; case Keyboard.PAGE_DOWN: if (caretIndex < (length - 1)){ _local5 = Math.min((caretIndex + _local4), (length - 1)); }; break; case Keyboard.HOME: if (caretIndex > 0){ _local5 = 0; }; break; case Keyboard.END: if (caretIndex < (length - 1)){ _local5 = (length - 1); }; break; }; if (_local5 >= 0){ doKeySelection(_local5, _arg2, _arg3); scrollToSelected(); }; } public function set labelField(_arg1:String):void{ if (_arg1 == _labelField){ return; }; _labelField = _arg1; invalidate(InvalidationType.DATA); } public function set rowCount(_arg1:uint):void{ var _local2:Number; var _local3:Number; _local2 = Number(getStyleValue("contentPadding")); _local3 = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0; height = (((rowHeight * _arg1) + (2 * _local2)) + _local3); } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ list.x = -(_arg1); super.setHorizontalScrollPosition(_arg1, true); } public function set iconFunction(_arg1:Function):void{ if (_iconFunction == _arg1){ return; }; _iconFunction = _arg1; invalidate(InvalidationType.DATA); } public function get labelFunction():Function{ return (_labelFunction); } override protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ invalidate(InvalidationType.SCROLL); super.setVerticalScrollPosition(_arg1, true); } protected function calculateAvailableHeight():Number{ var _local1:Number; _local1 = Number(getStyleValue("contentPadding")); return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0)); } override protected function draw():void{ var _local1:Boolean; _local1 = !((contentHeight == (rowHeight * length))); contentHeight = (rowHeight * length); if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; if (_cellRenderer != getStyleValue("cellRenderer")){ _invalidateList(); _cellRenderer = getStyleValue("cellRenderer"); }; }; if (((isInvalid(InvalidationType.SIZE, InvalidationType.STATE)) || (_local1))){ drawLayout(); }; if (isInvalid(InvalidationType.RENDERER_STYLES)){ updateRendererStyles(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.SCROLL, InvalidationType.SELECTED)){ drawList(); }; updateChildren(); validate(); } override protected function configUI():void{ useFixedHorizontalScrolling = true; _horizontalScrollPolicy = ScrollPolicy.AUTO; _verticalScrollPolicy = ScrollPolicy.AUTO; super.configUI(); } override public function get rowCount():uint{ return (Math.ceil((calculateAvailableHeight() / rowHeight))); } override protected function initializeAccessibility():void{ if (List.createAccessibilityImplementation != null){ List.createAccessibilityImplementation(this); }; } override public function scrollToIndex(_arg1:int):void{ var _local2:uint; var _local3:uint; drawNow(); _local2 = (Math.floor(((_verticalScrollPosition + availableHeight) / rowHeight)) - 1); _local3 = Math.ceil((_verticalScrollPosition / rowHeight)); if (_arg1 < _local3){ verticalScrollPosition = (_arg1 * rowHeight); } else { if (_arg1 > _local2){ verticalScrollPosition = (((_arg1 + 1) * rowHeight) - availableHeight); }; }; } public function get rowHeight():Number{ return (_rowHeight); } public function set labelFunction(_arg1:Function):void{ if (_labelFunction == _arg1){ return; }; _labelFunction = _arg1; invalidate(InvalidationType.DATA); } public function set rowHeight(_arg1:Number):void{ _rowHeight = _arg1; invalidate(InvalidationType.SIZE); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, SelectableList.getStyleDefinition())); } } }//package fl.controls
Section 85
//ScrollBar (fl.controls.ScrollBar) package fl.controls { import fl.core.*; import flash.events.*; import fl.events.*; public class ScrollBar extends UIComponent { private var _direction:String;// = "vertical" protected var inDrag:Boolean;// = false protected var upArrow:BaseButton; private var _pageScrollSize:Number;// = 0 protected var downArrow:BaseButton; private var _pageSize:Number;// = 10 private var thumbScrollOffset:Number; private var _maxScrollPosition:Number;// = 0 private var _scrollPosition:Number;// = 0 protected var track:BaseButton; private var _minScrollPosition:Number;// = 0 private var _lineScrollSize:Number;// = 1 protected var thumb:LabelButton; protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0}; public static const WIDTH:Number = 15; protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35}; public function ScrollBar(){ _pageSize = 10; _pageScrollSize = 0; _lineScrollSize = 1; _minScrollPosition = 0; _maxScrollPosition = 0; _scrollPosition = 0; _direction = ScrollBarDirection.VERTICAL; inDrag = false; super(); setStyles(); focusEnabled = false; } public function get minScrollPosition():Number{ return (_minScrollPosition); } public function set minScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _arg1, _maxScrollPosition); } public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{ var _local3:Number; _local3 = scrollPosition; _scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1)); if (_local3 == _scrollPosition){ return; }; if (_arg2){ dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition)); }; updateThumb(); } public function set scrollPosition(_arg1:Number):void{ setScrollPosition(_arg1, true); } public function get pageScrollSize():Number{ return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize); } public function set pageSize(_arg1:Number):void{ if (_arg1 > 0){ _pageSize = _arg1; }; } public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{ this.pageSize = _arg1; _minScrollPosition = _arg2; _maxScrollPosition = _arg3; if (_arg4 >= 0){ _pageScrollSize = _arg4; }; enabled = (_maxScrollPosition > _minScrollPosition); setScrollPosition(_scrollPosition, false); updateThumb(); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition)))))); updateThumb(); } protected function updateThumb():void{ var _local1:Number; _local1 = ((_maxScrollPosition - _minScrollPosition) + _pageSize); if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){ thumb.height = 12; thumb.visible = false; } else { thumb.height = Math.max(13, ((_pageSize / _local1) * track.height)); thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition)))); thumb.visible = enabled; }; } protected function thumbPressHandler(_arg1:MouseEvent):void{ inDrag = true; thumbScrollOffset = (mouseY - thumb.y); thumb.mouseStateLocked = true; mouseChildren = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true); } protected function thumbReleaseHandler(_arg1:MouseEvent):void{ inDrag = false; mouseChildren = true; thumb.mouseStateLocked = false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag); stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler); } public function set pageScrollSize(_arg1:Number):void{ if (_arg1 >= 0){ _pageScrollSize = _arg1; }; } protected function handleThumbDrag(_arg1:MouseEvent):void{ var _local2:Number; _local2 = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset))); setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition)); } public function set direction(_arg1:String):void{ var _local2:Boolean; if (_direction == _arg1){ return; }; _direction = _arg1; if (isLivePreview){ return; }; setScaleY(1); _local2 = (_direction == ScrollBarDirection.HORIZONTAL); if (((_local2) && (componentInspectorSetting))){ if (rotation == 90){ return; }; setScaleX(-1); rotation = -90; }; if (!componentInspectorSetting){ if (((_local2) && ((rotation == 0)))){ rotation = -90; setScaleX(-1); } else { if (((!(_local2)) && ((rotation == -90)))){ rotation = 0; setScaleX(1); }; }; }; invalidate(InvalidationType.SIZE); } public function set lineScrollSize(_arg1:Number):void{ if (_arg1 > 0){ _lineScrollSize = _arg1; }; } override public function get height():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height); } protected function scrollPressHandler(_arg1:ComponentEvent):void{ var _local2:Number; var _local3:Number; _arg1.stopImmediatePropagation(); if (_arg1.currentTarget == upArrow){ setScrollPosition((_scrollPosition - _lineScrollSize)); } else { if (_arg1.currentTarget == downArrow){ setScrollPosition((_scrollPosition + _lineScrollSize)); } else { _local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition); _local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize; if (_scrollPosition < _local2){ setScrollPosition(Math.min(_local2, (_scrollPosition + _local3))); } else { if (_scrollPosition > _local2){ setScrollPosition(Math.max(_local2, (_scrollPosition - _local3))); }; }; }; }; } public function get pageSize():Number{ return (_pageSize); } public function set maxScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _minScrollPosition, _arg1); } public function get scrollPosition():Number{ return (_scrollPosition); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ var _local1:Number; if (isInvalid(InvalidationType.SIZE)){ _local1 = super.height; downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height))); track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height)))); updateThumb(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ setStyles(); }; downArrow.drawNow(); upArrow.drawNow(); track.drawNow(); thumb.drawNow(); validate(); } override protected function configUI():void{ super.configUI(); track = new BaseButton(); track.move(0, 14); track.useHandCursor = false; track.autoRepeat = true; track.focusEnabled = false; addChild(track); thumb = new LabelButton(); thumb.label = ""; thumb.setSize(WIDTH, 15); thumb.move(0, 15); thumb.focusEnabled = false; addChild(thumb); downArrow = new BaseButton(); downArrow.setSize(WIDTH, 14); downArrow.autoRepeat = true; downArrow.focusEnabled = false; addChild(downArrow); upArrow = new BaseButton(); upArrow.setSize(WIDTH, 14); upArrow.move(0, 0); upArrow.autoRepeat = true; upArrow.focusEnabled = false; addChild(upArrow); upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true); enabled = false; } public function get direction():String{ return (_direction); } public function get lineScrollSize():Number{ return (_lineScrollSize); } override public function setSize(_arg1:Number, _arg2:Number):void{ if (_direction == ScrollBarDirection.HORIZONTAL){ super.setSize(_arg2, _arg1); } else { super.setSize(_arg1, _arg2); }; } public function get maxScrollPosition():Number{ return (_maxScrollPosition); } override public function get width():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width); } protected function setStyles():void{ copyStylesToChild(downArrow, DOWN_ARROW_STYLES); copyStylesToChild(thumb, THUMB_STYLES); copyStylesToChild(track, TRACK_STYLES); copyStylesToChild(upArrow, UP_ARROW_STYLES); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 86
//ScrollBarDirection (fl.controls.ScrollBarDirection) package fl.controls { public class ScrollBarDirection { public static const HORIZONTAL:String = "horizontal"; public static const VERTICAL:String = "vertical"; } }//package fl.controls
Section 87
//ScrollPolicy (fl.controls.ScrollPolicy) package fl.controls { public class ScrollPolicy { public static const OFF:String = "off"; public static const ON:String = "on"; public static const AUTO:String = "auto"; } }//package fl.controls
Section 88
//SelectableList (fl.controls.SelectableList) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import fl.data.*; import fl.managers.*; import fl.events.*; import flash.utils.*; import flash.ui.*; import fl.containers.*; public class SelectableList extends BaseScrollPane implements IFocusManagerComponent { protected var invalidItems:Dictionary; protected var renderedItems:Dictionary; protected var listHolder:Sprite; protected var _allowMultipleSelection:Boolean;// = false protected var lastCaretIndex:int;// = -1 protected var _selectedIndices:Array; protected var availableCellRenderers:Array; protected var list:Sprite; protected var caretIndex:int;// = -1 protected var updatedRendererStyles:Object; protected var preChangeItems:Array; protected var activeCellRenderers:Array; protected var rendererStyles:Object; protected var _verticalScrollPosition:Number; protected var _dataProvider:DataProvider; protected var _horizontalScrollPosition:Number; private var collectionItemImport:SimpleCollectionItem; protected var _selectable:Boolean;// = true private static var defaultStyles:Object = {skin:"List_skin", cellRenderer:CellRenderer, contentPadding:null, disabledAlpha:null}; public static var createAccessibilityImplementation:Function; public function SelectableList(){ _allowMultipleSelection = false; _selectable = true; caretIndex = -1; lastCaretIndex = -1; super(); activeCellRenderers = []; availableCellRenderers = []; invalidItems = new Dictionary(true); renderedItems = new Dictionary(true); _selectedIndices = []; if (dataProvider == null){ dataProvider = new DataProvider(); }; verticalScrollPolicy = ScrollPolicy.AUTO; rendererStyles = {}; updatedRendererStyles = {}; } protected function drawList():void{ } public function set allowMultipleSelection(_arg1:Boolean):void{ if (_arg1 == _allowMultipleSelection){ return; }; _allowMultipleSelection = _arg1; if (((!(_arg1)) && ((_selectedIndices.length > 1)))){ _selectedIndices = [_selectedIndices.pop()]; invalidate(InvalidationType.DATA); }; } public function sortItemsOn(_arg1:String, _arg2:Object=null){ return (_dataProvider.sortOn(_arg1, _arg2)); } public function removeItemAt(_arg1:uint):Object{ return (_dataProvider.removeItemAt(_arg1)); } public function get selectedItem():Object{ return (((_selectedIndices.length)==0) ? null : _dataProvider.getItemAt(selectedIndex)); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; }; } public function get selectable():Boolean{ return (_selectable); } public function itemToCellRenderer(_arg1:Object):ICellRenderer{ var _local2:*; var _local3:ICellRenderer; if (_arg1 != null){ for (_local2 in activeCellRenderers) { _local3 = (activeCellRenderers[_local2] as ICellRenderer); if (_local3.data == _arg1){ return (_local3); }; }; }; return (null); } public function getNextIndexAtLetter(_arg1:String, _arg2:int=-1):int{ var _local3:int; var _local4:Number; var _local5:Number; var _local6:Object; var _local7:String; if (length == 0){ return (-1); }; _arg1 = _arg1.toUpperCase(); _local3 = (length - 1); _local4 = 0; while (_local4 < _local3) { _local5 = ((_arg2 + 1) + _local4); if (_local5 > (length - 1)){ _local5 = (_local5 - length); }; _local6 = getItemAt(_local5); if (_local6 == null){ break; }; _local7 = itemToLabel(_local6); if (_local7 == null){ } else { if (_local7.charAt(0).toUpperCase() == _arg1){ return (_local5); }; }; _local4++; }; return (-1); } public function invalidateList():void{ _invalidateList(); invalidate(InvalidationType.DATA); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; list.mouseChildren = _enabled; } public function get selectedIndices():Array{ return (_selectedIndices.concat()); } public function set selectable(_arg1:Boolean):void{ if (_arg1 == _selectable){ return; }; if (!_arg1){ selectedIndices = []; }; _selectable = _arg1; } public function itemToLabel(_arg1:Object):String{ return (_arg1["label"]); } public function addItemAt(_arg1:Object, _arg2:uint):void{ _dataProvider.addItemAt(_arg1, _arg2); invalidateList(); } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ return (_dataProvider.replaceItemAt(_arg1, _arg2)); } protected function handleDataChange(_arg1:DataChangeEvent):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:uint; _local2 = _arg1.startIndex; _local3 = _arg1.endIndex; _local4 = _arg1.changeType; if (_local4 == DataChangeType.INVALIDATE_ALL){ clearSelection(); invalidateList(); } else { if (_local4 == DataChangeType.INVALIDATE){ _local5 = 0; while (_local5 < _arg1.items.length) { invalidateItem(_arg1.items[_local5]); _local5++; }; } else { if (_local4 == DataChangeType.ADD){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ _selectedIndices[_local5] = (_selectedIndices[_local5] + (_local2 - _local3)); }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ if (_selectedIndices[_local5] <= _local3){ delete _selectedIndices[_local5]; } else { _selectedIndices[_local5] = (_selectedIndices[_local5] - ((_local2 - _local3) + 1)); }; }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE_ALL){ clearSelection(); } else { if (_local4 == DataChangeType.REPLACE){ } else { selectedItems = preChangeItems; preChangeItems = null; }; }; }; }; }; }; invalidate(InvalidationType.DATA); } protected function _invalidateList():void{ availableCellRenderers = []; while (activeCellRenderers.length > 0) { list.removeChild((activeCellRenderers.pop() as DisplayObject)); }; } protected function updateRendererStyles():void{ var _local1:Array; var _local2:uint; var _local3:uint; var _local4:String; _local1 = availableCellRenderers.concat(activeCellRenderers); _local2 = _local1.length; _local3 = 0; while (_local3 < _local2) { if (_local1[_local3].setStyle == null){ } else { for (_local4 in updatedRendererStyles) { _local1[_local3].setStyle(_local4, updatedRendererStyles[_local4]); }; _local1[_local3].drawNow(); }; _local3++; }; updatedRendererStyles = {}; } public function set selectedItem(_arg1:Object):void{ var _local2:int; _local2 = _dataProvider.getItemIndex(_arg1); selectedIndex = _local2; } public function sortItems(... _args){ return (_dataProvider.sort.apply(_dataProvider, _args)); } public function removeAll():void{ _dataProvider.removeAll(); } protected function handleCellRendererChange(_arg1:Event):void{ var _local2:ICellRenderer; var _local3:uint; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; _dataProvider.invalidateItemAt(_local3); } protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; if (_arg1 == _horizontalScrollPosition){ return; }; _local3 = (_arg1 - _horizontalScrollPosition); _horizontalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.HORIZONTAL, _local3, _arg1)); }; } public function scrollToSelected():void{ scrollToIndex(selectedIndex); } public function invalidateItem(_arg1:Object):void{ if (renderedItems[_arg1] == null){ return; }; invalidItems[_arg1] = true; invalidate(InvalidationType.DATA); } protected function handleCellRendererClick(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:uint; var _local4:int; var _local5:int; var _local6:uint; if (!_enabled){ return; }; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; if (((!(dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)))) || (!(_selectable)))){ return; }; _local4 = selectedIndices.indexOf(_local3); if (!_allowMultipleSelection){ if (_local4 != -1){ return; }; _local2.selected = true; _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); } else { if (_arg1.shiftKey){ _local6 = ((_selectedIndices.length)>0) ? _selectedIndices[0] : _local3; _selectedIndices = []; if (_local6 > _local3){ _local5 = _local6; while (_local5 >= _local3) { _selectedIndices.push(_local5); _local5--; }; } else { _local5 = _local6; while (_local5 <= _local3) { _selectedIndices.push(_local5); _local5++; }; }; caretIndex = _local3; } else { if (_arg1.ctrlKey){ if (_local4 != -1){ _local2.selected = false; _selectedIndices.splice(_local4, 1); } else { _local2.selected = true; _selectedIndices.push(_local3); }; caretIndex = _local3; } else { _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); }; }; }; dispatchEvent(new Event(Event.CHANGE)); invalidate(InvalidationType.DATA); } public function get length():uint{ return (_dataProvider.length); } public function get allowMultipleSelection():Boolean{ return (_allowMultipleSelection); } protected function onPreChange(_arg1:DataChangeEvent):void{ switch (_arg1.changeType){ case DataChangeType.REMOVE: case DataChangeType.ADD: case DataChangeType.INVALIDATE: case DataChangeType.REMOVE_ALL: case DataChangeType.REPLACE: case DataChangeType.INVALIDATE_ALL: break; default: preChangeItems = selectedItems; break; }; } public function getRendererStyle(_arg1:String, _arg2:int=-1):Object{ return (rendererStyles[_arg1]); } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; if (_arg1 == _verticalScrollPosition){ return; }; _local3 = (_arg1 - _verticalScrollPosition); _verticalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _local3, _arg1)); }; } protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } public function set selectedIndices(_arg1:Array):void{ if (!_selectable){ return; }; _selectedIndices = ((_arg1)==null) ? [] : _arg1.concat(); invalidate(InvalidationType.SELECTED); } public function get selectedIndex():int{ return (((_selectedIndices.length)==0) ? -1 : _selectedIndices[(_selectedIndices.length - 1)]); } override protected function draw():void{ super.draw(); } override protected function configUI():void{ super.configUI(); listHolder = new Sprite(); addChild(listHolder); listHolder.scrollRect = contentScrollRect; list = new Sprite(); listHolder.addChild(list); } public function addItem(_arg1:Object):void{ _dataProvider.addItem(_arg1); invalidateList(); } protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:String; _local2 = (_arg1.target as ICellRenderer); _local3 = ((_arg1.type)==MouseEvent.ROLL_OVER) ? ListEvent.ITEM_ROLL_OVER : ListEvent.ITEM_ROLL_OUT; dispatchEvent(new ListEvent(_local3, false, false, _local2.listData.column, _local2.listData.row, _local2.listData.index, _local2.data)); } public function clearRendererStyle(_arg1:String, _arg2:int=-1):void{ delete rendererStyles[_arg1]; updatedRendererStyles[_arg1] = null; invalidate(InvalidationType.RENDERER_STYLES); } protected function handleCellRendererDoubleClick(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:uint; if (!_enabled){ return; }; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; dispatchEvent(new ListEvent(ListEvent.ITEM_DOUBLE_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)); } public function get rowCount():uint{ return (0); } public function isItemSelected(_arg1:Object):Boolean{ return ((selectedItems.indexOf(_arg1) > -1)); } public function set dataProvider(_arg1:DataProvider):void{ if (_dataProvider != null){ _dataProvider.removeEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange); _dataProvider.removeEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange); }; _dataProvider = _arg1; _dataProvider.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true); _dataProvider.addEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange, false, 0, true); clearSelection(); invalidateList(); } override protected function drawLayout():void{ super.drawLayout(); contentScrollRect = listHolder.scrollRect; contentScrollRect.width = availableWidth; contentScrollRect.height = availableHeight; listHolder.scrollRect = contentScrollRect; } public function getItemAt(_arg1:uint):Object{ return (_dataProvider.getItemAt(_arg1)); } override protected function initializeAccessibility():void{ if (SelectableList.createAccessibilityImplementation != null){ SelectableList.createAccessibilityImplementation(this); }; } public function scrollToIndex(_arg1:int):void{ } public function removeItem(_arg1:Object):Object{ return (_dataProvider.removeItem(_arg1)); } public function get dataProvider():DataProvider{ return (_dataProvider); } public function set maxHorizontalScrollPosition(_arg1:Number):void{ _maxHorizontalScrollPosition = _arg1; invalidate(InvalidationType.SIZE); } public function setRendererStyle(_arg1:String, _arg2:Object, _arg3:uint=0):void{ if (rendererStyles[_arg1] == _arg2){ return; }; updatedRendererStyles[_arg1] = _arg2; rendererStyles[_arg1] = _arg2; invalidate(InvalidationType.RENDERER_STYLES); } public function invalidateItemAt(_arg1:uint):void{ var _local2:Object; _local2 = _dataProvider.getItemAt(_arg1); if (_local2 != null){ invalidateItem(_local2); }; } public function set selectedItems(_arg1:Array):void{ var _local2:Array; var _local3:uint; var _local4:int; if (_arg1 == null){ selectedIndices = null; return; }; _local2 = []; _local3 = 0; while (_local3 < _arg1.length) { _local4 = _dataProvider.getItemIndex(_arg1[_local3]); if (_local4 != -1){ _local2.push(_local4); }; _local3++; }; selectedIndices = _local2; } public function clearSelection():void{ selectedIndex = -1; } override public function get maxHorizontalScrollPosition():Number{ return (_maxHorizontalScrollPosition); } public function get selectedItems():Array{ var _local1:Array; var _local2:uint; _local1 = []; _local2 = 0; while (_local2 < _selectedIndices.length) { _local1.push(_dataProvider.getItemAt(_selectedIndices[_local2])); _local2++; }; return (_local1); } public function set selectedIndex(_arg1:int):void{ selectedIndices = ((_arg1)==-1) ? null : [_arg1]; } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition())); } } }//package fl.controls
Section 89
//TextInput (fl.controls.TextInput) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class TextInput extends UIComponent implements IFocusManagerComponent { protected var _html:Boolean;// = false protected var _savedHTML:String; protected var background:DisplayObject; protected var _editable:Boolean;// = true public var textField:TextField; private static var defaultStyles:Object = {upSkin:"TextInput_upSkin", disabledSkin:"TextInput_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:0, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function TextInput(){ _editable = true; _html = false; super(); } override public function drawFocus(_arg1:Boolean):void{ if (focusTarget != null){ focusTarget.drawFocus(_arg1); return; }; super.drawFocus(_arg1); } public function set imeMode(_arg1:String):void{ _imeMode = _arg1; } override protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((((_arg1 == textField)) || (super.isOurFocus(_arg1)))); } protected function handleKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true)); }; } public function set text(_arg1:String):void{ textField.text = _arg1; _html = false; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); } protected function updateTextFieldType():void{ textField.type = (((enabled) && (editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC; textField.selectable = enabled; } public function get selectionEndIndex():int{ return (textField.selectionEndIndex); } public function get editable():Boolean{ return (_editable); } override protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (_arg1.target == this){ stage.focus = textField; }; _local2 = focusManager; if (((editable) && (_local2))){ _local2.showFocusIndicator = true; if (((textField.selectable) && ((textField.selectionBeginIndex == textField.selectionBeginIndex)))){ setSelection(0, textField.length); }; }; super.focusInHandler(_arg1); if (editable){ setIMEMode(true); }; } public function get selectionBeginIndex():int{ return (textField.selectionBeginIndex); } public function set alwaysShowSelection(_arg1:Boolean):void{ textField.alwaysShowSelection = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; updateTextFieldType(); } protected function setEmbedFont(){ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } public function get horizontalScrollPosition():int{ return (textField.scrollH); } public function set condenseWhite(_arg1:Boolean):void{ textField.condenseWhite = _arg1; } public function set displayAsPassword(_arg1:Boolean):void{ textField.displayAsPassword = _arg1; } public function set horizontalScrollPosition(_arg1:int):void{ textField.scrollH = _arg1; } public function get restrict():String{ return (textField.restrict); } public function get textWidth():Number{ return (textField.textWidth); } public function get textHeight():Number{ return (textField.textHeight); } public function set editable(_arg1:Boolean):void{ _editable = _arg1; updateTextFieldType(); } public function get maxChars():int{ return (textField.maxChars); } public function get length():int{ return (textField.length); } public function getLineMetrics(_arg1:int):TextLineMetrics{ return (textField.getLineMetrics(_arg1)); } public function get imeMode():String{ return (_imeMode); } override protected function focusOutHandler(_arg1:FocusEvent):void{ super.focusOutHandler(_arg1); if (editable){ setIMEMode(false); }; } public function set htmlText(_arg1:String):void{ if (_arg1 == ""){ text = ""; return; }; _html = true; _savedHTML = _arg1; textField.htmlText = _arg1; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); } public function get text():String{ return (textField.text); } override public function get enabled():Boolean{ return (super.enabled); } public function get condenseWhite():Boolean{ return (textField.condenseWhite); } public function get alwaysShowSelection():Boolean{ return (textField.alwaysShowSelection); } override protected function draw():void{ var _local1:Object; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawTextFormat(); drawBackground(); _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function handleTextInput(_arg1:TextEvent):void{ _arg1.stopPropagation(); dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text)); } override protected function configUI():void{ super.configUI(); tabChildren = true; textField = new TextField(); addChild(textField); updateTextFieldType(); textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true); textField.addEventListener(Event.CHANGE, handleChange, false, 0, true); textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true); } public function setSelection(_arg1:int, _arg2:int):void{ textField.setSelection(_arg1, _arg2); } public function get displayAsPassword():Boolean{ return (textField.displayAsPassword); } public function appendText(_arg1:String):void{ textField.appendText(_arg1); } public function set restrict(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ _arg1 = null; }; textField.restrict = _arg1; } public function get htmlText():String{ return (textField.htmlText); } protected function drawBackground():void{ var _local1:DisplayObject; var _local2:String; _local1 = background; _local2 = (enabled) ? "upSkin" : "disabledSkin"; background = getDisplayObjectInstance(getStyleValue(_local2)); if (background == null){ return; }; addChildAt(background, 0); if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){ removeChild(_local1); }; } override public function setFocus():void{ stage.focus = textField; } protected function drawLayout():void{ var _local1:Number; _local1 = Number(getStyleValue("textPadding")); if (background != null){ background.width = width; background.height = height; }; textField.width = (width - (2 * _local1)); textField.height = (height - (2 * _local1)); textField.x = (textField.y = _local1); } public function set maxChars(_arg1:int):void{ textField.maxChars = _arg1; } public function get maxHorizontalScrollPosition():int{ return (textField.maxScrollH); } protected function drawTextFormat():void{ var _local1:Object; var _local2:TextFormat; var _local3:TextFormat; _local1 = UIComponent.getStyleDefinition(); _local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); _local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); if (_html){ textField.htmlText = _savedHTML; }; } protected function handleChange(_arg1:Event):void{ _arg1.stopPropagation(); dispatchEvent(new Event(Event.CHANGE, true)); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 90
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 91
//InvalidationType (fl.core.InvalidationType) package fl.core { public class InvalidationType { public static const SIZE:String = "size"; public static const ALL:String = "all"; public static const DATA:String = "data"; public static const SCROLL:String = "scroll"; public static const STATE:String = "state"; public static const STYLES:String = "styles"; public static const SELECTED:String = "selected"; public static const RENDERER_STYLES:String = "rendererStyles"; } }//package fl.core
Section 92
//UIComponent (fl.core.UIComponent) package fl.core { import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.utils.*; import flash.system.*; public class UIComponent extends Sprite { protected var _enabled:Boolean;// = true private var _mouseFocusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var _oldIMEMode:String;// = null protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var uiFocusRect:DisplayObject; protected var _width:Number; public var version:String;// = "3.0.0.15" protected var isFocused:Boolean;// = false protected var callLaterMethods:Dictionary; private var _focusEnabled:Boolean;// = true private var tempText:TextField; protected var invalidateFlag:Boolean;// = false protected var _inspector:Boolean;// = false protected var sharedStyles:Object; protected var invalidHash:Object; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var instanceStyles:Object; protected var _x:Number; protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ version = "3.0.0.15"; isLivePreview = false; invalidateFlag = false; _enabled = true; isFocused = false; _focusEnabled = true; _mouseFocusEnabled = true; _imeMode = null; _oldIMEMode = null; errorCaught = false; _inspector = false; super(); instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } private function callLaterDispatcher(_arg1:Event):void{ var _local2:Dictionary; var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; _local2 = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } override public function get scaleX():Number{ return ((width / startWidth)); } override public function get scaleY():Number{ return ((height / startHeight)); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var classDef:Object; var skin = _arg1; classDef = null; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } override public function set visible(_arg1:Boolean):void{ var _local2:String; if (super.visible == _arg1){ return; }; super.visible = _arg1; _local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } override public function set y(_arg1:Number):void{ move(_x, _arg1); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } protected function validate():void{ invalidHash = {}; } override public function get height():Number{ return (_height); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } protected function configUI():void{ var _local1:Number; var _local2:Number; var _local3:Number; isLivePreview = checkLivePreview(); _local1 = rotation; rotation = 0; _local2 = super.width; _local3 = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject; _local1 = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local2:Object; var _local3:uint; var _local4:uint; var _local5:Object; var _local6:String; _local2 = {}; _local3 = _args.length; _local4 = 0; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 93
//DataProvider (fl.data.DataProvider) package fl.data { import flash.events.*; import fl.events.*; public class DataProvider extends EventDispatcher { protected var data:Array; public function DataProvider(_arg1:Object=null){ if (_arg1 == null){ data = []; } else { data = getDataFromObject(_arg1); }; } protected function dispatchPreChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.PRE_DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } public function invalidateItemAt(_arg1:int):void{ checkIndex(_arg1, (data.length - 1)); dispatchChangeEvent(DataChangeType.INVALIDATE, [data[_arg1]], _arg1, _arg1); } public function getItemIndex(_arg1:Object):int{ return (data.indexOf(_arg1)); } protected function getDataFromObject(_arg1:Object):Array{ var _local2:Array; var _local3:Array; var _local4:uint; var _local5:Object; var _local6:XML; var _local7:XMLList; var _local8:XML; var _local9:XMLList; var _local10:XML; var _local11:XMLList; var _local12:XML; if ((_arg1 is Array)){ _local3 = (_arg1 as Array); if (_local3.length > 0){ if ((((_local3[0] is String)) || ((_local3[0] is Number)))){ _local2 = []; _local4 = 0; while (_local4 < _local3.length) { _local5 = {label:String(_local3[_local4]), data:_local3[_local4]}; _local2.push(_local5); _local4++; }; return (_local2); }; }; return (_arg1.concat()); //unresolved jump }; if ((_arg1 is DataProvider)){ return (_arg1.toArray()); }; if ((_arg1 is XML)){ _local6 = (_arg1 as XML); _local2 = []; _local7 = _local6.*; for each (_local8 in _local7) { _arg1 = {}; _local9 = _local8.attributes(); for each (_local10 in _local9) { _arg1[_local10.localName()] = _local10.toString(); }; _local11 = _local8.*; for each (_local12 in _local11) { if (_local12.hasSimpleContent()){ _arg1[_local12.localName()] = _local12.toString(); }; }; _local2.push(_arg1); }; return (_local2); //unresolved jump }; throw (new TypeError((("Error: Type Coercion failed: cannot convert " + _arg1) + " to Array or DataProvider."))); } public function removeItemAt(_arg1:uint):Object{ var _local2:Array; checkIndex(_arg1, (data.length - 1)); dispatchPreChangeEvent(DataChangeType.REMOVE, data.slice(_arg1, (_arg1 + 1)), _arg1, _arg1); _local2 = data.splice(_arg1, 1); dispatchChangeEvent(DataChangeType.REMOVE, _local2, _arg1, _arg1); return (_local2[0]); } public function addItem(_arg1:Object):void{ dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); data.push(_arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); } public function sortOn(_arg1:Object, _arg2:Object=null){ var _local3:Array; dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); _local3 = data.sortOn(_arg1, _arg2); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local3); } public function sort(... _args){ var _local2:Array; dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); _local2 = data.sort.apply(data, _args); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local2); } public function addItems(_arg1:Object):void{ addItemsAt(_arg1, data.length); } public function concat(_arg1:Object):void{ addItems(_arg1); } public function clone():DataProvider{ return (new DataProvider(data)); } public function toArray():Array{ return (data.concat()); } public function get length():uint{ return (data.length); } public function addItemAt(_arg1:Object, _arg2:uint):void{ checkIndex(_arg2, data.length); dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); data.splice(_arg2, 0, _arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); } public function getItemAt(_arg1:uint):Object{ checkIndex(_arg1, (data.length - 1)); return (data[_arg1]); } override public function toString():String{ return ((("DataProvider [" + data.join(" , ")) + "]")); } public function invalidateItem(_arg1:Object):void{ var _local2:uint; _local2 = getItemIndex(_arg1); if (_local2 == -1){ return; }; invalidateItemAt(_local2); } protected function dispatchChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } protected function checkIndex(_arg1:int, _arg2:int):void{ if ((((_arg1 > _arg2)) || ((_arg1 < 0)))){ throw (new RangeError((((("DataProvider index (" + _arg1) + ") is not in acceptable range (0 - ") + _arg2) + ")"))); }; } public function addItemsAt(_arg1:Object, _arg2:uint):void{ var _local3:Array; checkIndex(_arg2, data.length); _local3 = getDataFromObject(_arg1); dispatchPreChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); data.splice.apply(data, [_arg2, 0].concat(_local3)); dispatchChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); } public function replaceItem(_arg1:Object, _arg2:Object):Object{ var _local3:int; _local3 = getItemIndex(_arg2); if (_local3 != -1){ return (replaceItemAt(_arg1, _local3)); }; return (null); } public function removeItem(_arg1:Object):Object{ var _local2:int; _local2 = getItemIndex(_arg1); if (_local2 != -1){ return (removeItemAt(_local2)); }; return (null); } public function merge(_arg1:Object):void{ var _local2:Array; var _local3:uint; var _local4:uint; var _local5:uint; var _local6:Object; _local2 = getDataFromObject(_arg1); _local3 = _local2.length; _local4 = data.length; dispatchPreChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); _local5 = 0; while (_local5 < _local3) { _local6 = _local2[_local5]; if (getItemIndex(_local6) == -1){ data.push(_local6); }; _local5++; }; if (data.length > _local4){ dispatchChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); } else { dispatchChangeEvent(DataChangeType.ADD, [], -1, -1); }; } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ var _local3:Array; checkIndex(_arg2, (data.length - 1)); _local3 = [data[_arg2]]; dispatchPreChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); data[_arg2] = _arg1; dispatchChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); return (_local3[0]); } public function invalidate():void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, DataChangeType.INVALIDATE_ALL, data.concat(), 0, data.length)); } public function removeAll():void{ var _local1:Array; _local1 = data.concat(); dispatchPreChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); data = []; dispatchChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); } } }//package fl.data
Section 94
//SimpleCollectionItem (fl.data.SimpleCollectionItem) package fl.data { public dynamic class SimpleCollectionItem { public var label:String; public var data:String; public function toString():String{ return ((((("[SimpleCollectionItem: " + label) + ",") + data) + "]")); } } }//package fl.data
Section 95
//ComponentEvent (fl.events.ComponentEvent) package fl.events { import flash.events.*; public class ComponentEvent extends Event { public static const HIDE:String = "hide"; public static const BUTTON_DOWN:String = "buttonDown"; public static const MOVE:String = "move"; public static const RESIZE:String = "resize"; public static const ENTER:String = "enter"; public static const LABEL_CHANGE:String = "labelChange"; public static const SHOW:String = "show"; public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function toString():String{ return (formatToString("ComponentEvent", "type", "bubbles", "cancelable")); } override public function clone():Event{ return (new ComponentEvent(type, bubbles, cancelable)); } } }//package fl.events
Section 96
//DataChangeEvent (fl.events.DataChangeEvent) package fl.events { import flash.events.*; public class DataChangeEvent extends Event { protected var _items:Array; protected var _endIndex:uint; protected var _changeType:String; protected var _startIndex:uint; public static const PRE_DATA_CHANGE:String = "preDataChange"; public static const DATA_CHANGE:String = "dataChange"; public function DataChangeEvent(_arg1:String, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{ super(_arg1); _changeType = _arg2; _startIndex = _arg4; _items = _arg3; _endIndex = ((_arg5)==-1) ? _startIndex : _arg5; } public function get changeType():String{ return (_changeType); } public function get startIndex():uint{ return (_startIndex); } public function get items():Array{ return (_items); } override public function clone():Event{ return (new DataChangeEvent(type, _changeType, _items, _startIndex, _endIndex)); } override public function toString():String{ return (formatToString("DataChangeEvent", "type", "changeType", "startIndex", "endIndex", "bubbles", "cancelable")); } public function get endIndex():uint{ return (_endIndex); } } }//package fl.events
Section 97
//DataChangeType (fl.events.DataChangeType) package fl.events { public class DataChangeType { public static const ADD:String = "add"; public static const REMOVE:String = "remove"; public static const REMOVE_ALL:String = "removeAll"; public static const CHANGE:String = "change"; public static const REPLACE:String = "replace"; public static const INVALIDATE:String = "invalidate"; public static const INVALIDATE_ALL:String = "invalidateAll"; public static const SORT:String = "sort"; } }//package fl.events
Section 98
//ListEvent (fl.events.ListEvent) package fl.events { import flash.events.*; public class ListEvent extends Event { protected var _index:int; protected var _item:Object; protected var _columnIndex:int; protected var _rowIndex:int; public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick"; public static const ITEM_ROLL_OUT:String = "itemRollOut"; public static const ITEM_ROLL_OVER:String = "itemRollOver"; public static const ITEM_CLICK:String = "itemClick"; public function ListEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:Object=null){ super(_arg1, _arg2, _arg3); _rowIndex = _arg5; _columnIndex = _arg4; _index = _arg6; _item = _arg7; } public function get rowIndex():Object{ return (_rowIndex); } public function get index():int{ return (_index); } public function get item():Object{ return (_item); } public function get columnIndex():int{ return (_columnIndex); } override public function clone():Event{ return (new ListEvent(type, bubbles, cancelable, _columnIndex, _rowIndex)); } override public function toString():String{ return (formatToString("ListEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "index", "item")); } } }//package fl.events
Section 99
//ScrollEvent (fl.events.ScrollEvent) package fl.events { import flash.events.*; public class ScrollEvent extends Event { private var _position:Number; private var _direction:String; private var _delta:Number; public static const SCROLL:String = "scroll"; public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){ super(ScrollEvent.SCROLL, false, false); _direction = _arg1; _delta = _arg2; _position = _arg3; } override public function clone():Event{ return (new ScrollEvent(_direction, _delta, _position)); } public function get position():Number{ return (_position); } override public function toString():String{ return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position")); } public function get delta():Number{ return (_delta); } public function get direction():String{ return (_direction); } } }//package fl.events
Section 100
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ activated = false; calculateCandidates = true; _showFocusIndicator = true; _defaultButtonEnabled = true; super(); focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local5:int; var _local6:int; var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; _local5 = focusableCandidates.length; _local6 = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; _local2 = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject; _local2 = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject; _local2 = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } private function tabChildrenChangeHandler(_arg1:Event):void{ var _local2:DisplayObjectContainer; if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; _local2 = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } public function getFocus():InteractiveObject{ var _local1:InteractiveObject; _local1 = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; var _local3:TextField; var _local4:SimpleButton; _local2 = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } public function set defaultButton(_arg1:Button):void{ var _local2:Button; _local2 = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } private function setFocusToNextObject(_arg1:FocusEvent):void{ var _local2:InteractiveObject; if (!hasFocusableObjects()){ return; }; _local2 = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int; var _local3:int; _local2 = focusableCandidates.length; _local3 = 0; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; var _local4:InteractiveObject; _local3 = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local3:String; var _local4:String; var _local5:int; var _local6:String; var _local7:String; var _local8:String; var _local9:DisplayObject; var _local10:DisplayObject; _local3 = ""; _local4 = ""; _local8 = "0000"; _local9 = DisplayObject(_arg1); _local10 = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local2:DisplayObject; var _local3:String; var _local4:int; var _local5:Boolean; var _local6:int; var _local7:int; var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; _local2 = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; _local4 = getIndexOfFocusedObject(_local2); _local5 = false; _local6 = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; _local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ var _local2:InteractiveObject; if (_arg1.isDefaultPrevented()){ return; }; _local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; _local2 = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; var _local3:Button; _local2 = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ var _local2:InteractiveObject; var _local3:Boolean; calculateCandidates = true; _local2 = InteractiveObject(_arg1.target); _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } } }//package fl.managers
Section 101
//IFocusManager (fl.managers.IFocusManager) package fl.managers { import fl.controls.*; import flash.display.*; public interface IFocusManager { function getFocus():InteractiveObject; function deactivate():void; function set defaultButton(_arg1:Button):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function setFocus(_arg1:InteractiveObject):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 102
//IFocusManagerComponent (fl.managers.IFocusManagerComponent) package fl.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package fl.managers
Section 103
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; function get groupName():String; function get selected():Boolean; } }//package fl.managers
Section 104
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.text.*; import flash.utils.*; public class StyleManager { private var globalStyles:Object; private var classToDefaultStylesDict:Dictionary; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToInstancesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class; var _local5:Object; _local4 = getClassDef(_arg1); _local5 = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local2:StyleManager; var _local3:Class; var _local4:Object; var _local5:String; _local2 = getInstance(); _local3 = getClassDef(_arg1); _local4 = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local3:Dictionary; var _local4:Object; var _local5:UIComponent; _local3 = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local2:Dictionary; var _local3:Object; _local2 = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var inst:StyleManager; var classDef:Class; var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; inst = getInstance(); classDef = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; inst.classToStylesDict[classDef] = {}; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class; var _local4:StyleManager; var _local5:Object; _local3 = getClassDef(_arg1); _local4 = getInstance(); _local5 = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object; _local3 = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 105
//cong19_352 (gogobee_fla.cong19_352) package gogobee_fla { import flash.display.*; public dynamic class cong19_352 extends MovieClip { public function cong19_352(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 106
//ewsndButton_288 (gogobee_fla.ewsndButton_288) package gogobee_fla { import flash.display.*; public dynamic class ewsndButton_288 extends MovieClip { public var sndon:SimpleButton; public var sndoff:MovieClip; public function ewsndButton_288(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 107
//ewsound_but_village_292 (gogobee_fla.ewsound_but_village_292) package gogobee_fla { import flash.display.*; public dynamic class ewsound_but_village_292 extends MovieClip { public var Line:MovieClip; } }//package gogobee_fla
Section 108
//frontv_313 (gogobee_fla.frontv_313) package gogobee_fla { import flash.display.*; import flash.geom.*; import flash.events.*; import flash.filters.*; import flash.text.*; import flash.utils.*; import flash.media.*; import flash.net.*; import flash.ui.*; import flash.errors.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.xml.*; public dynamic class frontv_313 extends MovieClip { public function frontv_313(){ addFrameScript(0, frame1, 30, frame31); } function frame1(){ stop(); } function frame31(){ stop(); MovieClip(this.parent).nextLevel(); } } }//package gogobee_fla
Section 109
//gamepage_207 (gogobee_fla.gamepage_207) package gogobee_fla { import flash.display.*; import Box2D.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.*; import Box2D.Dynamics.Joints.*; import Box2D.Collision.Shapes.*; import flash.geom.*; import gs.*; import flash.events.*; import flash.filters.*; import flash.text.*; import flash.utils.*; import gs.easing.*; import flash.media.*; import flash.net.*; import flash.ui.*; import flash.errors.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.xml.*; public dynamic class gamepage_207 extends MovieClip { public var l25b3:MovieClip; public var l25b4:MovieClip; public var r8l25:MovieClip; public var l2b2:MovieClip; public var r11l10:MovieClip; public var r11l12:MovieClip; public var r11l14:MovieClip; public var r11l16:MovieClip; public var r11l18:MovieClip; public var r11l19:MovieClip; public var r11l11:MovieClip; public var r11l21:MovieClip; public var r11l22:MovieClip; public var r11l23:MovieClip; public var r11l24:MovieClip; public var r11l25:MovieClip; public var l12b4:MovieClip; public var b1bal24:MovieClip; public var b:b2Body; public var l12b1:MovieClip; public var l12b2:MovieClip; public var l12b3:MovieClip; public var r11l20:MovieClip; public var j:int; public var k:int; public var l12b5:MovieClip; public var i:int; public var outer:MovieClip; public var l23b2:MovieClip; public var l23b5:MovieClip; public var l23b1:MovieClip; public var l23b3:MovieClip; public var l23b4:MovieClip; public var r23l21:MovieClip; public var r23l23:MovieClip; public var r23l24:MovieClip; public var pan:MovieClip; public var r23l25:MovieClip; public var r23l10:MovieClip; public var l10b1:MovieClip; public var l10b2:MovieClip; public var l10b3:MovieClip; public var l10b4:MovieClip; public var l10b5:MovieClip; public var l10b6:MovieClip; public var r13l11:MovieClip; public var l21b3:MovieClip; public var l21b4:MovieClip; public var l21b5:MovieClip; public var r13l18:MovieClip; public var l21b1:MovieClip; public var r13l14:MovieClip; public var r13l10:MovieClip; public var r13l19:MovieClip; public var l21b2:MovieClip; public var r13l21:MovieClip; public var r13l22:MovieClip; public var r13l23:MovieClip; public var r13l24:MovieClip; public var r13l25:MovieClip; public var r13l20:MovieClip; public var r1l10:MovieClip; public var r1l11:MovieClip; public var r1l12:MovieClip; public var r1l13:MovieClip; public var r1l15:MovieClip; public var r1l17:MovieClip; public var r1l19:MovieClip; public var r25l10:MovieClip; public var r1l16:MovieClip; public var r1l18:MovieClip; public var r1l14:MovieClip; public var r1l21:MovieClip; public var r1l22:MovieClip; public var r1l23:MovieClip; public var r1l24:MovieClip; public var r1l25:MovieClip; public var r1l20:MovieClip; public var r25l21:MovieClip; public var r25l23:MovieClip; public var r25l24:MovieClip; public var r25l25:MovieClip; public var levelNum:String; public var m_world:b2World; public var delay:Number; public var selectedLevel:int; public var r15l10:MovieClip; public var r15l18:MovieClip; public var r15l19:MovieClip; public var basket:MovieClip; public var r8l4:MovieClip; public var r8l5:MovieClip; public var r8l8:MovieClip; public var r8l9:MovieClip; public var r15l20:MovieClip; public var r15l21:MovieClip; public var r15l22:MovieClip; public var r15l23:MovieClip; public var r15l24:MovieClip; public var r15l25:MovieClip; public var r15l5:MovieClip; public var r15l8:MovieClip; public var r3l10:MovieClip; public var r3l11:MovieClip; public var r3l12:MovieClip; public var r3l13:MovieClip; public var r3l15:MovieClip; public var r3l17:MovieClip; public var r3l14:MovieClip; public var r3l16:MovieClip; public var r3l18:MovieClip; public var r3l19:MovieClip; public var r3l20:MovieClip; public var r3l21:MovieClip; public var r3l22:MovieClip; public var r3l23:MovieClip; public var r3l24:MovieClip; public var r3l25:MovieClip; public var r27l23:MovieClip; public var l9b1:MovieClip; public var l9b2:MovieClip; public var l9b3:MovieClip; public var l9b4:MovieClip; public var l9b5:MovieClip; public var l9b6:MovieClip; public var p1l11:MovieClip; public var p1l15:MovieClip; public var p1l17:MovieClip; public var p1l19:MovieClip; public var p1l14:MovieClip; public var p1l16:MovieClip; public var p1l18:MovieClip; public var p1l20:MovieClip; public var p1l21:MovieClip; public var p1l22:MovieClip; public var p1l23:MovieClip; public var r6l5:MovieClip; public var r6l8:MovieClip; public var r6l9:MovieClip; public var r6l3:MovieClip; public var r6l4:MovieClip; public var p1l25:MovieClip; public var r13l5:MovieClip; public var r13l8:MovieClip; public var r13l9:MovieClip; public var r17l10:MovieClip; public var r17l18:MovieClip; public var r17l19:MovieClip; public var gravity:b2Vec2; public var r17l21:MovieClip; public var r17l23:MovieClip; public var r17l25:MovieClip; public var l7b2:MovieClip; public var r17l24:MovieClip; public var l7b1:MovieClip; public var l19b1:MovieClip; public var l19b2:MovieClip; public var l19b3:MovieClip; public var l19b4:MovieClip; public var l19b5:MovieClip; public var r5l10:MovieClip; public var r5l11:MovieClip; public var r5l12:MovieClip; public var r5l13:MovieClip; public var r5l15:MovieClip; public var r5l16:MovieClip; public var l19b6:MovieClip; public var r5l19:MovieClip; public var l7b4:MovieClip; public var r5l17:MovieClip; public var r5l18:MovieClip; public var l7b5:MovieClip; public var r5l14:MovieClip; public var r5l20:MovieClip; public var r5l21:MovieClip; public var r5l22:MovieClip; public var r5l23:MovieClip; public var r5l24:MovieClip; public var r5l25:MovieClip; public var r4l7:MovieClip; public var r4l8:MovieClip; public var r4l9:MovieClip; public var r4l3:MovieClip; public var r4l4:MovieClip; public var r4l5:MovieClip; public var r4l6:MovieClip; public var r29l23:MovieClip; public var l7b3:MovieClip; public var r11l5:MovieClip; public var r11l8:MovieClip; public var r11l9:MovieClip; public var p3l17:MovieClip; public var p3l19:MovieClip; public var p3l14:MovieClip; public var p3l16:MovieClip; public var p3l18:MovieClip; public var worldAABB:b2AABB; public var r30l23:MovieClip; public var CFrame:int; public var ssec:String; public var l5b2:MovieClip; public var l17b1:MovieClip; public var l17b2:MovieClip; public var l17b3:MovieClip; public var l17b4:MovieClip; public var l5b1:MovieClip; public var r19l10:MovieClip; public var l5b3:MovieClip; public var r19l18:MovieClip; public var r19l19:MovieClip; public var r2l3:MovieClip; public var r2l4:MovieClip; public var r2l5:MovieClip; public var r2l6:MovieClip; public var r2l7:MovieClip; public var r2l8:MovieClip; public var r2l9:MovieClip; public var basketFrame:int; public var r19l21:MovieClip; public var r19l23:MovieClip; public var r19l25:MovieClip; public var r19l24:MovieClip; public var r20l10:MovieClip; public var r20l18:MovieClip; public var r20l19:MovieClip; public var r7l10:MovieClip; public var r7l11:MovieClip; public var r7l12:MovieClip; public var r7l13:MovieClip; public var r7l15:MovieClip; public var r7l17:MovieClip; public var r7l19:MovieClip; public var r7l16:MovieClip; public var r7l18:MovieClip; public var r7l14:MovieClip; public var r20l21:MovieClip; public var r20l23:MovieClip; public var r20l24:MovieClip; public var r20l25:MovieClip; public var ReachCount:int; public var r7l20:MovieClip; public var r7l21:MovieClip; public var r7l22:MovieClip; public var r7l24:MovieClip; public var r7l25:MovieClip; public var r7l23:MovieClip; public var l3b2:MovieClip; public var l3b3:MovieClip; public var l3b4:MovieClip; public var r2l2:MovieClip; public var l3b1:MovieClip; public var l15b1:MovieClip; public var l15b2:MovieClip; public var l15b3:MovieClip; public var l15b4:MovieClip; public var p5l17:MovieClip; public var debug_draw:b2DebugDraw; public var r10l11:MovieClip; public var CArray:Array; public var r10l16:MovieClip; public var r10l10:MovieClip; public var r10l18:MovieClip; public var r10l12:MovieClip; public var r10l14:MovieClip; public var r10l19:MovieClip; public var r10l20:MovieClip; public var r10l21:MovieClip; public var r10l23:MovieClip; public var r10l24:MovieClip; public var r10l25:MovieClip; public var r10l22:MovieClip; public var l1b2:MovieClip; public var l1b3:MovieClip; public var beeT:MovieClip; public var l1b1:MovieClip; public var l13b2:MovieClip; public var l13b4:MovieClip; public var l13b6:MovieClip; public var l13b7:MovieClip; public var r9l11:MovieClip; public var r9l12:MovieClip; public var r9l16:MovieClip; public var r9l10:MovieClip; public var r9l18:MovieClip; public var r9l19:MovieClip; public var l13b3:MovieClip; public var r9l14:MovieClip; public var l13b5:MovieClip; public var r22l10:MovieClip; public var l13b1:MovieClip; public var r22l21:MovieClip; public var r22l23:MovieClip; public var r22l25:MovieClip; public var l24b3:MovieClip; public var r22l24:MovieClip; public var l24b1:MovieClip; public var l24b2:MovieClip; public var r9l23:MovieClip; public var l24b5:MovieClip; public var r9l20:MovieClip; public var r9l22:MovieClip; public var r9l24:MovieClip; public var l24b4:MovieClip; public var l24b6:MovieClip; public var r9l21:MovieClip; public var sndBtn:MovieClip; public var r9l25:MovieClip; public var sec:int; public var bd:b2BodyDef; public var m_iterations:Number; public var Maxb1Count:int; public var bee:Bee; public var levelComplet:MovieClip; public var r12l10:MovieClip; public var r12l11:MovieClip; public var r12l14:MovieClip; public var l11b4:MovieClip; public var l11b5:MovieClip; public var l11b6:MovieClip; public var r12l18:MovieClip; public var r12l19:MovieClip; public var l11b1:MovieClip; public var l11b3:MovieClip; public var r12l20:MovieClip; public var r12l21:MovieClip; public var r12l22:MovieClip; public var r12l23:MovieClip; public var r12l24:MovieClip; public var r12l25:MovieClip; public var levelFail:MovieClip; public var l22b3:MovieClip; public var l22b5:MovieClip; public var l22b1:MovieClip; public var l22b2:MovieClip; public var l22b4:MovieClip; public var l11b2:MovieClip; public var r24l10:MovieClip; public var m_phys_scale:Number; public var r24l21:MovieClip; public var r24l23:MovieClip; public var r24l24:MovieClip; public var smin:String; public var r24l25:MovieClip; public var Maxb2Count:int; public var b1ball11:MovieClip; public var l20b1:MovieClip; public var l20b3:MovieClip; public var l20b4:MovieClip; public var l20b5:MovieClip; public var l20b2:MovieClip; public var r14l10:MovieClip; public var r14l14:MovieClip; public var r14l18:MovieClip; public var bball:MovieClip; public var r14l19:MovieClip; public var levels:MovieClip; public var r14l20:MovieClip; public var r14l21:MovieClip; public var r14l22:MovieClip; public var r14l23:MovieClip; public var r14l24:MovieClip; public var r14l25:MovieClip; public var bottomhit:MovieClip; public var r2l10:MovieClip; public var r2l14:MovieClip; public var r2l16:MovieClip; public var r2l11:MovieClip; public var r26l10:MovieClip; public var r2l15:MovieClip; public var r2l13:MovieClip; public var r9l5:MovieClip; public var r16l5:MovieClip; public var r2l17:MovieClip; public var r2l18:MovieClip; public var r2l12:MovieClip; public var r9l4:MovieClip; public var r2l20:MovieClip; public var r2l21:MovieClip; public var r2l22:MovieClip; public var r2l23:MovieClip; public var r2l24:MovieClip; public var r2l25:MovieClip; public var r26l21:MovieClip; public var r26l23:MovieClip; public var r26l25:MovieClip; public var r9l8:MovieClip; public var r2l19:MovieClip; public var hour:int; public var r9l9:MovieClip; public var beeCount:int; public var r7l3:MovieClip; public var r7l4:MovieClip; public var r7l8:MovieClip; public var r7l5:MovieClip; public var r14l5:MovieClip; public var r7l9:MovieClip; public var r16l10:MovieClip; public var r16l19:MovieClip; public var r14l8:MovieClip; public var r16l18:MovieClip; public var debug_sprite:Sprite; public var r16l20:MovieClip; public var r16l23:MovieClip; public var r16l24:MovieClip; public var r16l25:MovieClip; public var r16l21:MovieClip; public var b1Count:int; public var r4l10:MovieClip; public var r4l11:MovieClip; public var r4l12:MovieClip; public var r4l16:MovieClip; public var r4l13:MovieClip; public var r4l15:MovieClip; public var r4l17:MovieClip; public var r4l18:MovieClip; public var l8b1:MovieClip; public var l8b2:MovieClip; public var l8b3:MovieClip; public var l8b4:MovieClip; public var beeT1:MovieClip; public var l8b6:MovieClip; public var r4l19:MovieClip; public var r4l14:MovieClip; public var l8b5:MovieClip; public var r4l20:MovieClip; public var r4l21:MovieClip; public var r4l22:MovieClip; public var r4l23:MovieClip; public var r4l24:MovieClip; public var r4l25:MovieClip; public var r28l23:MovieClip; public var m_dbgSprite; public var min:int; public var r5l3:MovieClip; public var r5l4:MovieClip; public var p2l14:MovieClip; public var r5l8:MovieClip; public var r5l9:MovieClip; public var p2l15:MovieClip; public var p2l17:MovieClip; public var p2l19:MovieClip; public var r12l5:MovieClip; public var p2l16:MovieClip; public var r12l8:MovieClip; public var r12l9:MovieClip; public var r5l5:MovieClip; public var p2l20:MovieClip; public var p2l21:MovieClip; public var p2l22:MovieClip; public var p2l23:MovieClip; public var p2l25:MovieClip; public var p2l18:MovieClip; public var BrickArray:Array; public var m_timestep:Number; public var p1l4:MovieClip; public var p1l6:MovieClip; public var r18l10:MovieClip; public var l6b1:MovieClip; public var l6b2:MovieClip; public var l6b3:MovieClip; public var l6b5:MovieClip; public var l6b6:MovieClip; public var l18b1:MovieClip; public var l18b2:MovieClip; public var l18b3:MovieClip; public var l18b4:MovieClip; public var b2Count:int; public var r18l19:MovieClip; public var l6b4:MovieClip; public var r18l21:MovieClip; public var r18l23:MovieClip; public var r18l24:MovieClip; public var bball7:MovieClip; public var bball8:MovieClip; public var r18l25:MovieClip; public var bball9:MovieClip; public var r6l10:MovieClip; public var r6l11:MovieClip; public var r3l4:MovieClip; public var r3l6:MovieClip; public var r3l8:MovieClip; public var r6l18:MovieClip; public var r3l5:MovieClip; public var r3l7:MovieClip; public var r3l9:MovieClip; public var r10l4:MovieClip; public var r10l5:MovieClip; public var r6l16:MovieClip; public var r10l8:MovieClip; public var r10l9:MovieClip; public var r6l19:MovieClip; public var r18l18:MovieClip; public var r6l12:MovieClip; public var r6l14:MovieClip; public var r6l15:MovieClip; public var r6l20:MovieClip; public var r6l21:MovieClip; public var r6l22:MovieClip; public var r6l23:MovieClip; public var r6l25:MovieClip; public var r6l13:MovieClip; public var basket3:MovieClip; public var r6l24:MovieClip; public var r3l3:MovieClip; public var basket1:BasMc; public var r6l17:MovieClip; public var bball10:MovieClip; public var bball11:MovieClip; public var bball13:MovieClip; public var times:TextField; public var p4l14:MovieClip; public var p4l16:MovieClip; public var p4l17:MovieClip; public var p4l19:MovieClip; public var l4b1:MovieClip; public var l4b2:MovieClip; public var l4b3:MovieClip; public var r31l23:MovieClip; public var l16b1:MovieClip; public var l16b3:MovieClip; public var l16b4:MovieClip; public var basket2:BasMc; public var l16b2:MovieClip; public var r1l2:MovieClip; public var r1l3:MovieClip; public var r1l4:MovieClip; public var r1l5:MovieClip; public var r1l6:MovieClip; public var r1l7:MovieClip; public var r1l8:MovieClip; public var r1l9:MovieClip; public var r21l10:MovieClip; public var r8l10:MovieClip; public var r8l14:MovieClip; public var r8l17:MovieClip; public var r8l18:MovieClip; public var r8l19:MovieClip; public var r8l16:MovieClip; public var r8l11:MovieClip; public var r8l12:MovieClip; public var l2b3:MovieClip; public var l2b7:MovieClip; public var r21l23:MovieClip; public var r21l24:MovieClip; public var l14b1:MovieClip; public var l14b2:MovieClip; public var l14b3:MovieClip; public var l2b6:MovieClip; public var r8l20:MovieClip; public var r21l25:MovieClip; public var r8l22:MovieClip; public var r8l23:MovieClip; public var r8l24:MovieClip; public var r21l21:MovieClip; public var r8l21:MovieClip; public var bbal24:MovieClip; public var bbal25:MovieClip; public var bbal21:MovieClip; public var l2b1:MovieClip; public var bbal12:MovieClip; public var l25b1:MovieClip; public var l25b2:MovieClip; public function gamepage_207(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 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); } public function LevelSelectFUN(_arg1:MouseEvent){ var _local2:b2Body; if ((((levels.y == -300)) || ((levels.y == 300)))){ levelNum = _arg1.target.name; trace(levelNum); selectedLevel = Number(levelNum.substr(5, (levelNum.length - 5))); if ((((selectedLevel >= 1)) && ((selectedLevel <= 25)))){ if (selectedLevel <= MyVar.LevelFinished){ pan.levelTxt.text = selectedLevel.toString(); MyVar.levelScore = 0; MyVar.gcount = 0; _local2 = m_world.m_bodyList; while (_local2) { if ((_local2.m_userData is Sprite)){ trace(("bb.m_userData.name\t" + _local2.m_userData.name)); } else { trace(" not sprite"); }; m_world.DestroyBody(_local2); _local2 = _local2.m_next; }; delay = setInterval(delayfun1, 500); }; }; }; } public function pQfun(_arg1:MouseEvent){ MyVar.soundChannel1.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, pauseClick); MyVar.CkCong = false; MyVar.LevelFinished--; stage.removeEventListener(KeyboardEvent.KEY_UP, kup); stage.removeEventListener(Event.ENTER_FRAME, Update); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mdown); MyVar.gtime.stop(); MyVar.gtime.removeEventListener(TimerEvent.TIMER, gtimefun); MovieClip(this.parent).gotoAndStop("cong"); } public function kup(_arg1:KeyboardEvent){ var _local2:b2Body; if (_arg1.keyCode == 32){ stage.removeEventListener(KeyboardEvent.KEY_UP, kup); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mdown); pan.Preset.removeEventListener(MouseEvent.MOUSE_DOWN, Presetfun); pan.levelSelectMc.removeEventListener(MouseEvent.MOUSE_DOWN, levelSelectMcfun); pan.solutionLink.removeEventListener(MouseEvent.MOUSE_DOWN, fsolutionfun); pan.logo.removeEventListener(MouseEvent.CLICK, goto_Bee123); _local2 = m_world.m_bodyList; while (_local2) { m_world.DestroyBody(_local2); _local2 = _local2.m_next; }; delay = setInterval(delayfun, 500); }; } function frame16(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l14b1, l14b2, l14b3, r1l14, r2l14, r3l14, r4l14, r5l14, r6l14, r7l14, r8l14, r9l14, r10l14, r11l14, r12l14, r13l14, r14l14, p1l14, p2l14, p3l14, p4l14); CArray = new Array(); i = 1; while (i <= 3) { this[("l14b" + i)].stat = false; this[("l14b" + i)].rot = this[("l14b" + i)].rotation; i++; }; l14b1.stat = true; i = 1; while (i <= 14) { this[(("r" + i) + "l14")].stat = true; this[(("r" + i) + "l14")].rot = this[(("r" + i) + "l14")].rotation; this[(("r" + i) + "l14")].buttonMode = true; i++; }; i = 1; while (i <= 4) { this[(("p" + i) + "l14")].stat = false; this[(("p" + i) + "l14")].rot = this[(("p" + i) + "l14")].rotation; i++; }; AddStaticBox((l14b1.x / m_phys_scale), (l14b1.y / m_phys_scale), (((l14b1.width - 5) / 2) / m_phys_scale), (((l14b1.height - 20) / 2) / m_phys_scale), l14b1.stat, 1); AddStaticBox((l14b2.x / m_phys_scale), (l14b2.y / m_phys_scale), ((l14b2.width / 2) / m_phys_scale), ((l14b2.height / 2) / m_phys_scale), l14b2.stat, 2); AddStaticBox((l14b3.x / m_phys_scale), (l14b3.y / m_phys_scale), ((l14b3.width / 2) / m_phys_scale), ((l14b3.height / 2) / m_phys_scale), l14b3.stat, 3); AddStaticBox((r1l14.x / m_phys_scale), (r1l14.y / m_phys_scale), ((r1l14.width / 2) / m_phys_scale), ((r1l14.height / 2) / m_phys_scale), r1l14.stat, 4); AddStaticBox((r2l14.x / m_phys_scale), (r2l14.y / m_phys_scale), ((r2l14.width / 2) / m_phys_scale), ((r2l14.height / 2) / m_phys_scale), r2l14.stat, 5); AddStaticBox((r3l14.x / m_phys_scale), (r3l14.y / m_phys_scale), ((r3l14.width / 2) / m_phys_scale), ((r3l14.height / 2) / m_phys_scale), r3l14.stat, 6); AddStaticBox((r4l14.x / m_phys_scale), (r4l14.y / m_phys_scale), ((r4l14.width / 2) / m_phys_scale), ((r4l14.height / 2) / m_phys_scale), r4l14.stat, 7); AddStaticBox((r5l14.x / m_phys_scale), (r5l14.y / m_phys_scale), ((r5l14.width / 2) / m_phys_scale), ((r5l14.height / 2) / m_phys_scale), r5l14.stat, 8); AddStaticBox((r6l14.x / m_phys_scale), (r6l14.y / m_phys_scale), ((r6l14.width / 2) / m_phys_scale), ((r6l14.height / 2) / m_phys_scale), r6l14.stat, 9); AddStaticBox((r7l14.x / m_phys_scale), (r7l14.y / m_phys_scale), ((r7l14.width / 2) / m_phys_scale), ((r7l14.height / 2) / m_phys_scale), r7l14.stat, 10); AddStaticBox((r8l14.x / m_phys_scale), (r8l14.y / m_phys_scale), ((r8l14.width / 2) / m_phys_scale), ((r8l14.height / 2) / m_phys_scale), r8l14.stat, 11); AddStaticBox((r9l14.x / m_phys_scale), (r9l14.y / m_phys_scale), ((r9l14.width / 2) / m_phys_scale), ((r9l14.height / 2) / m_phys_scale), r9l14.stat, 12); AddStaticBox((r10l14.x / m_phys_scale), (r10l14.y / m_phys_scale), ((r10l14.width / 2) / m_phys_scale), ((r10l14.height / 2) / m_phys_scale), r10l14.stat, 13); AddStaticBox((r11l14.x / m_phys_scale), (r11l14.y / m_phys_scale), ((r11l14.width / 2) / m_phys_scale), ((r11l14.height / 2) / m_phys_scale), r11l14.stat, 14); AddStaticBox((r12l14.x / m_phys_scale), (r12l14.y / m_phys_scale), ((r12l14.width / 2) / m_phys_scale), ((r12l14.height / 2) / m_phys_scale), r12l14.stat, 15); AddStaticBox((r13l14.x / m_phys_scale), (r13l14.y / m_phys_scale), ((r13l14.width / 2) / m_phys_scale), ((r13l14.height / 2) / m_phys_scale), r13l14.stat, 16); AddStaticBox((r14l14.x / m_phys_scale), (r14l14.y / m_phys_scale), ((r14l14.width / 2) / m_phys_scale), ((r14l14.height / 2) / m_phys_scale), r14l14.stat, 17); AddStaticBox((p1l14.x / m_phys_scale), (p1l14.y / m_phys_scale), ((p1l14.width / 2) / m_phys_scale), ((p1l14.height / 2) / m_phys_scale), p1l14.stat, 18); AddStaticBox((p2l14.x / m_phys_scale), (p2l14.y / m_phys_scale), ((p2l14.width / 2) / m_phys_scale), ((p2l14.height / 2) / m_phys_scale), p2l14.stat, 19); AddStaticBox((p3l14.x / m_phys_scale), (p3l14.y / m_phys_scale), ((p3l14.width / 2) / m_phys_scale), ((p3l14.height / 2) / m_phys_scale), p3l14.stat, 20); AddStaticBox((p4l14.x / m_phys_scale), (p4l14.y / m_phys_scale), ((p4l14.width / 2) / m_phys_scale), ((p4l14.height / 2) / m_phys_scale), p4l14.stat, 21); AddBasket(1); } function frame12(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeT1.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick1); beeT1.buttonMode = true; beeT1.visible = true; beeT.visible = true; basket.visible = true; basket3.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); basket2 = new BasMc(); basket2.x = basket3.x; basket2.y = basket3.y; addChild(basket2); beeCount = 1; Maxb1Count = 5; b1Count = 1; Maxb2Count = 5; b2Count = 1; BrickArray = new Array(l10b1, l10b2, l10b3, l10b4, l10b5, l10b6, r1l10, r2l10, r3l10, r4l10, r5l10, r6l10, r7l10, r8l10, r9l10, r10l10, r11l10, r12l10, r13l10, r14l10, r15l10, r16l10, r17l10, r18l10, r19l10, r20l10, r21l10, r22l10, r23l10, r24l10, r25l10, r26l10, bball10); CArray = new Array(); i = 1; while (i <= 6) { this[("l10b" + i)].stat = false; this[("l10b" + i)].rot = this[("l10b" + i)].rotation; i++; }; l10b1.stat = true; l10b2.stat = true; i = 1; while (i <= 26) { this[(("r" + i) + "l10")].stat = true; this[(("r" + i) + "l10")].rot = this[(("r" + i) + "l10")].rotation; this[(("r" + i) + "l10")].buttonMode = true; i++; }; AddStaticBox((l10b1.x / m_phys_scale), (l10b1.y / m_phys_scale), (((l10b1.width - 5) / 2) / m_phys_scale), (((l10b1.height - 20) / 2) / m_phys_scale), l10b1.stat, 1); AddStaticBox((l10b2.x / m_phys_scale), (l10b2.y / m_phys_scale), ((l10b2.width / 2) / m_phys_scale), (((l10b2.height - 20) / 2) / m_phys_scale), l10b2.stat, 2); AddStaticBox((l10b3.x / m_phys_scale), (l10b3.y / m_phys_scale), ((l10b3.width / 2) / m_phys_scale), ((l10b3.height / 2) / m_phys_scale), l10b3.stat, 3); AddStaticBox((l10b4.x / m_phys_scale), (l10b4.y / m_phys_scale), ((l10b4.width / 2) / m_phys_scale), ((l10b4.height / 2) / m_phys_scale), l10b4.stat, 4); AddStaticBox((l10b5.x / m_phys_scale), (l10b5.y / m_phys_scale), ((l10b5.width / 2) / m_phys_scale), ((l10b5.height / 2) / m_phys_scale), l10b5.stat, 5); AddStaticBox((l10b6.x / m_phys_scale), (l10b6.y / m_phys_scale), ((l10b6.width / 2) / m_phys_scale), ((l10b6.height / 2) / m_phys_scale), l10b6.stat, 6); i = 6; while (i <= 31) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddBasket(1); AddBasket(2); AddBigBall((bball10.x / m_phys_scale), (bball10.y / m_phys_scale), (bball10.width / (2 * m_phys_scale)), bball10, 5); } function frame14(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeT1.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick1); beeT1.buttonMode = true; beeCount = 1; beeT1.visible = true; beeT.visible = true; basket.visible = true; basket3.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); basket2 = new BasMc(); basket2.x = basket3.x; basket2.y = basket3.y; addChild(basket2); beeCount = 1; Maxb1Count = 5; b1Count = 1; Maxb2Count = 5; b2Count = 1; BrickArray = new Array(l13b1, l13b2, l13b3, l13b4, l13b5, l13b6, l13b7, r1l13, r2l13, r3l13, r4l13, r5l13, r6l13, r7l13, bball13); CArray = new Array(); i = 1; while (i <= 7) { this[("l13b" + i)].stat = true; this[("l13b" + i)].rot = this[("l13b" + i)].rotation; i++; }; l13b6.stat = false; l13b7.stat = false; i = 1; while (i <= 7) { this[(("r" + i) + "l13")].stat = true; this[(("r" + i) + "l13")].rot = this[(("r" + i) + "l13")].rotation; this[(("r" + i) + "l13")].buttonMode = true; i++; }; AddStaticBox((l13b1.x / m_phys_scale), (l13b1.y / m_phys_scale), (((l13b1.width - 5) / 2) / m_phys_scale), (((l13b1.height - 10) / 2) / m_phys_scale), l13b1.stat, 1); AddStaticBox((l13b2.x / m_phys_scale), (l13b2.y / m_phys_scale), ((l13b2.width / 2) / m_phys_scale), ((l13b2.height / 2) / m_phys_scale), l13b2.stat, 2); AddStaticBox((l13b3.x / m_phys_scale), (l13b3.y / m_phys_scale), ((l13b3.width / 2) / m_phys_scale), ((l13b3.height / 2) / m_phys_scale), l13b3.stat, 3); AddStaticBox((l13b4.x / m_phys_scale), (l13b4.y / m_phys_scale), ((l13b4.width / 2) / m_phys_scale), (((l13b4.height - 10) / 2) / m_phys_scale), l13b4.stat, 4); AddStaticBox((l13b5.x / m_phys_scale), (l13b5.y / m_phys_scale), ((l13b5.width / 2) / m_phys_scale), (((l13b5.height - 70) / 2) / m_phys_scale), l13b5.stat, 5); AddStaticBox((l13b6.x / m_phys_scale), (l13b6.y / m_phys_scale), ((l13b6.width / 2) / m_phys_scale), ((l13b6.height / 2) / m_phys_scale), l13b6.stat, 6); AddStaticBox((l13b7.x / m_phys_scale), (l13b7.y / m_phys_scale), ((l13b7.width / 2) / m_phys_scale), ((l13b7.height / 2) / m_phys_scale), l13b7.stat, 7); AddStaticBox((r1l13.x / m_phys_scale), (r1l13.y / m_phys_scale), ((r1l13.width / 2) / m_phys_scale), ((r1l13.height / 2) / m_phys_scale), r1l13.stat, 8); AddStaticBox((r2l13.x / m_phys_scale), (r2l13.y / m_phys_scale), ((r2l13.width / 2) / m_phys_scale), ((r2l13.height / 2) / m_phys_scale), r2l13.stat, 9); AddStaticBox((r3l13.x / m_phys_scale), (r3l13.y / m_phys_scale), ((r3l13.width / 2) / m_phys_scale), ((r3l13.height / 2) / m_phys_scale), r3l13.stat, 10); AddStaticBox((r4l13.x / m_phys_scale), (r4l13.y / m_phys_scale), ((r4l13.width / 2) / m_phys_scale), ((r4l13.height / 2) / m_phys_scale), r4l13.stat, 11); AddStaticBox((r5l13.x / m_phys_scale), (r5l13.y / m_phys_scale), ((r5l13.width / 2) / m_phys_scale), ((r5l13.height / 2) / m_phys_scale), r5l13.stat, 12); AddStaticBox((r6l13.x / m_phys_scale), (r6l13.y / m_phys_scale), ((r6l13.width / 2) / m_phys_scale), ((r6l13.height / 2) / m_phys_scale), r6l13.stat, 13); AddStaticBox((r7l13.x / m_phys_scale), (r7l13.y / m_phys_scale), ((r7l13.width / 2) / m_phys_scale), ((r7l13.height / 2) / m_phys_scale), r7l13.stat, 14); AddBasket(1); AddBasket(2); AddBigBall((bball13.x / m_phys_scale), (bball13.y / m_phys_scale), (bball13.width / (2 * m_phys_scale)), bball13, 10); } public function nextLevel(){ stage.removeEventListener(KeyboardEvent.KEY_UP, kup); beeT.removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mdown); MyVar.gtime.stop(); if (MyVar.LevelFinished < currentFrame){ MyVar.LevelFinished = currentFrame; }; MyVar.levelScore = (50000 / MyVar.gcount); store(); levelComplet.moregames.addEventListener(MouseEvent.MOUSE_DOWN, goto_Bee123); levelComplet.quit.addEventListener(MouseEvent.MOUSE_DOWN, pQfun); levelComplet.nextlevel.addEventListener(MouseEvent.MOUSE_DOWN, pnlfun); if (currentFrame != 26){ levelComplet.alpha = 0; levelComplet.x = 0; levelComplet.y = 0; levelComplet.scaleX = 0; levelComplet.scaleY = 0; levelComplet.parent.setChildIndex(levelComplet, (levelComplet.parent.numChildren - 1)); calllevel(); } else { callcong(); stage.removeEventListener(Event.ENTER_FRAME, Update); }; } function frame19(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 1; b1Count = 1; BrickArray = new Array(l17b1, l17b2, l17b3, r1l17, r2l17, r3l17, r4l17, r5l17, p1l17, p2l17, p3l17, p4l17, p5l17, l17b4, r6l17, r7l17, r8l17); CArray = new Array(); i = 1; while (i <= 4) { this[("l17b" + i)].stat = false; this[("l17b" + i)].rot = this[("l17b" + i)].rotation; i++; }; l17b1.stat = true; i = 1; while (i <= 8) { this[(("r" + i) + "l17")].stat = true; this[(("r" + i) + "l17")].rot = this[(("r" + i) + "l17")].rotation; this[(("r" + i) + "l17")].buttonMode = true; i++; }; i = 1; while (i <= 5) { this[(("p" + i) + "l17")].stat = false; this[(("p" + i) + "l17")].rot = this[(("p" + i) + "l17")].rotation; i++; }; AddStaticBox((l17b1.x / m_phys_scale), (l17b1.y / m_phys_scale), (((l17b1.width - 5) / 2) / m_phys_scale), (((l17b1.height - 20) / 2) / m_phys_scale), l17b1.stat, 1); AddStaticBox((l17b2.x / m_phys_scale), (l17b2.y / m_phys_scale), ((l17b2.width / 2) / m_phys_scale), ((l17b2.height / 2) / m_phys_scale), l17b2.stat, 2); AddStaticBox((l17b3.x / m_phys_scale), (l17b3.y / m_phys_scale), ((l17b3.width / 2) / m_phys_scale), ((l17b3.height / 2) / m_phys_scale), l17b3.stat, 3); AddStaticBox((r1l17.x / m_phys_scale), (r1l17.y / m_phys_scale), ((r1l17.width / 2) / m_phys_scale), ((r1l17.height / 2) / m_phys_scale), r1l17.stat, 4); AddStaticBox((r2l17.x / m_phys_scale), (r2l17.y / m_phys_scale), ((r2l17.width / 2) / m_phys_scale), ((r2l17.height / 2) / m_phys_scale), r2l17.stat, 5); AddStaticBox((r3l17.x / m_phys_scale), (r3l17.y / m_phys_scale), ((r3l17.width / 2) / m_phys_scale), ((r3l17.height / 2) / m_phys_scale), r3l17.stat, 6); AddStaticBox((r4l17.x / m_phys_scale), (r4l17.y / m_phys_scale), ((r4l17.width / 2) / m_phys_scale), ((r4l17.height / 2) / m_phys_scale), r4l17.stat, 7); AddStaticBox((r5l17.x / m_phys_scale), (r5l17.y / m_phys_scale), ((r5l17.width / 2) / m_phys_scale), ((r5l17.height / 2) / m_phys_scale), r5l17.stat, 8); AddStaticBox((p1l17.x / m_phys_scale), (p1l17.y / m_phys_scale), ((p1l17.width / 2) / m_phys_scale), ((p1l17.height / 2) / m_phys_scale), p1l17.stat, 9); AddStaticBox((p2l17.x / m_phys_scale), (p2l17.y / m_phys_scale), ((p2l17.width / 2) / m_phys_scale), ((p2l17.height / 2) / m_phys_scale), p2l17.stat, 10); AddStaticBox((p3l17.x / m_phys_scale), (p3l17.y / m_phys_scale), ((p3l17.width / 2) / m_phys_scale), ((p3l17.height / 2) / m_phys_scale), p3l17.stat, 11); AddStaticBox((p4l17.x / m_phys_scale), (p4l17.y / m_phys_scale), ((p4l17.width / 2) / m_phys_scale), ((p4l17.height / 2) / m_phys_scale), p4l17.stat, 12); AddStaticBox((p5l17.x / m_phys_scale), (p5l17.y / m_phys_scale), ((p5l17.width / 2) / m_phys_scale), ((p5l17.height / 2) / m_phys_scale), p5l17.stat, 13); AddStaticBox((l17b4.x / m_phys_scale), (l17b4.y / m_phys_scale), ((l17b4.width / 2) / m_phys_scale), ((l17b4.height / 2) / m_phys_scale), l17b4.stat, 14); AddStaticBox((r6l17.x / m_phys_scale), (r6l17.y / m_phys_scale), ((r6l17.width / 2) / m_phys_scale), ((r6l17.height / 2) / m_phys_scale), r6l17.stat, 15); AddStaticBox((r7l17.x / m_phys_scale), (r7l17.y / m_phys_scale), ((r7l17.width / 2) / m_phys_scale), ((r7l17.height / 2) / m_phys_scale), r7l17.stat, 16); AddStaticBox((r8l17.x / m_phys_scale), (r8l17.y / m_phys_scale), ((r8l17.width / 2) / m_phys_scale), ((r8l17.height / 2) / m_phys_scale), r8l17.stat, 17); AddBasket(1); } function frame10(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l8b1, l8b2, l8b3, l8b4, l8b5, l8b6, r1l8, r2l8, r3l8, r4l8, r5l8, r6l8, r7l8, r8l8, r9l8, r10l8, r11l8, r12l8, r13l8, r14l8, r15l8, bball8); CArray = new Array(); i = 1; while (i <= 5) { this[("l8b" + i)].stat = false; this[("l8b" + i)].rot = this[("l8b" + i)].rotation; i++; }; l8b5.stat = true; l8b6.stat = true; i = 1; while (i <= 15) { this[(("r" + i) + "l8")].stat = true; this[(("r" + i) + "l8")].rot = this[(("r" + i) + "l8")].rotation; this[(("r" + i) + "l8")].buttonMode = true; i++; }; AddStaticBox((l8b1.x / m_phys_scale), (l8b1.y / m_phys_scale), (((l8b1.width - 5) / 2) / m_phys_scale), ((l8b1.height / 2) / m_phys_scale), l8b1.stat, 1); AddStaticBox((l8b2.x / m_phys_scale), (l8b2.y / m_phys_scale), ((l8b2.width / 2) / m_phys_scale), ((l8b2.height / 2) / m_phys_scale), l8b2.stat, 2); AddStaticBox((l8b3.x / m_phys_scale), (l8b3.y / m_phys_scale), ((l8b3.width / 2) / m_phys_scale), ((l8b3.height / 2) / m_phys_scale), l8b3.stat, 3); AddStaticBox((l8b4.x / m_phys_scale), (l8b4.y / m_phys_scale), ((l8b4.width / 2) / m_phys_scale), ((l8b4.height / 2) / m_phys_scale), l8b4.stat, 4); AddStaticBox((l8b5.x / m_phys_scale), (l8b5.y / m_phys_scale), ((l8b5.width / 2) / m_phys_scale), (((l8b5.height - 20) / 2) / m_phys_scale), l8b5.stat, 5); AddStaticBox((l8b6.x / m_phys_scale), (l8b6.y / m_phys_scale), ((l8b6.width / 2) / m_phys_scale), (((l8b6.height - 20) / 2) / m_phys_scale), l8b6.stat, 6); AddStaticBox((r1l8.x / m_phys_scale), (r1l8.y / m_phys_scale), ((r1l8.width / 2) / m_phys_scale), ((r1l8.height / 2) / m_phys_scale), r1l8.stat, 7); AddStaticBox((r2l8.x / m_phys_scale), (r2l8.y / m_phys_scale), ((r2l8.width / 2) / m_phys_scale), ((r2l8.height / 2) / m_phys_scale), r2l8.stat, 8); AddStaticBox((r3l8.x / m_phys_scale), (r3l8.y / m_phys_scale), ((r3l8.width / 2) / m_phys_scale), ((r3l8.height / 2) / m_phys_scale), r3l8.stat, 9); AddStaticBox((r4l8.x / m_phys_scale), (r4l8.y / m_phys_scale), ((r4l8.width / 2) / m_phys_scale), ((r4l8.height / 2) / m_phys_scale), r4l8.stat, 10); AddStaticBox((r5l8.x / m_phys_scale), (r5l8.y / m_phys_scale), ((r5l8.width / 2) / m_phys_scale), ((r5l8.height / 2) / m_phys_scale), r5l8.stat, 11); AddStaticBox((r6l8.x / m_phys_scale), (r6l8.y / m_phys_scale), ((r6l8.width / 2) / m_phys_scale), ((r6l8.height / 2) / m_phys_scale), r6l8.stat, 12); AddStaticBox((r7l8.x / m_phys_scale), (r7l8.y / m_phys_scale), ((r7l8.width / 2) / m_phys_scale), ((r7l8.height / 2) / m_phys_scale), r7l8.stat, 13); AddStaticBox((r8l8.x / m_phys_scale), (r8l8.y / m_phys_scale), ((r8l8.width / 2) / m_phys_scale), ((r8l8.height / 2) / m_phys_scale), r8l8.stat, 14); AddStaticBox((r9l8.x / m_phys_scale), (r9l8.y / m_phys_scale), ((r9l8.width / 2) / m_phys_scale), ((r9l8.height / 2) / m_phys_scale), r9l8.stat, 15); AddStaticBox((r10l8.x / m_phys_scale), (r10l8.y / m_phys_scale), ((r10l8.width / 2) / m_phys_scale), ((r10l8.height / 2) / m_phys_scale), r10l8.stat, 16); AddStaticBox((r11l8.x / m_phys_scale), (r11l8.y / m_phys_scale), ((r11l8.width / 2) / m_phys_scale), ((r11l8.height / 2) / m_phys_scale), r11l8.stat, 17); AddStaticBox((r12l8.x / m_phys_scale), (r12l8.y / m_phys_scale), ((r12l8.width / 2) / m_phys_scale), ((r12l8.height / 2) / m_phys_scale), r12l8.stat, 18); AddStaticBox((r13l8.x / m_phys_scale), (r13l8.y / m_phys_scale), ((r13l8.width / 2) / m_phys_scale), ((r13l8.height / 2) / m_phys_scale), r13l8.stat, 19); AddStaticBox((r14l8.x / m_phys_scale), (r14l8.y / m_phys_scale), ((r14l8.width / 2) / m_phys_scale), ((r14l8.height / 2) / m_phys_scale), r14l8.stat, 20); AddStaticBox((r15l8.x / m_phys_scale), (r15l8.y / m_phys_scale), ((r15l8.width / 2) / m_phys_scale), ((r15l8.height / 2) / m_phys_scale), r15l8.stat, 21); AddBasket(1); AddBigBall((bball8.x / m_phys_scale), (bball8.y / m_phys_scale), (bball8.width / (2 * m_phys_scale)), bball8, 2); } function frame13(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeT1.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick1); beeT1.buttonMode = true; beeCount = 1; beeT1.visible = true; beeT.visible = true; basket.visible = true; basket3.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); basket2 = new BasMc(); basket2.x = basket3.x; basket2.y = basket3.y; addChild(basket2); beeCount = 1; Maxb1Count = 5; b1Count = 1; Maxb2Count = 5; b2Count = 1; BrickArray = new Array(l11b1, l11b2, l11b3, l11b4, l11b5, l11b6, r1l11, r2l11, r3l11, r4l11, r5l11, r6l11, r7l11, r8l11, r9l11, r10l11, r11l11, r12l11, r13l11, p1l11, bball11, b1ball11); CArray = new Array(); i = 1; while (i <= 6) { this[("l11b" + i)].stat = false; this[("l11b" + i)].rot = this[("l11b" + i)].rotation; i++; }; l11b5.stat = true; l11b6.stat = true; p1l11.stat = true; i = 1; while (i <= 13) { this[(("r" + i) + "l11")].stat = true; this[(("r" + i) + "l11")].rot = this[(("r" + i) + "l11")].rotation; this[(("r" + i) + "l11")].buttonMode = true; i++; }; AddStaticBox((l11b1.x / m_phys_scale), (l11b1.y / m_phys_scale), (((l11b1.width - 5) / 2) / m_phys_scale), ((l11b1.height / 2) / m_phys_scale), l11b1.stat, 1); AddStaticBox((l11b2.x / m_phys_scale), (l11b2.y / m_phys_scale), ((l11b2.width / 2) / m_phys_scale), ((l11b2.height / 2) / m_phys_scale), l11b2.stat, 2); AddStaticBox((l11b3.x / m_phys_scale), (l11b3.y / m_phys_scale), ((l11b3.width / 2) / m_phys_scale), ((l11b3.height / 2) / m_phys_scale), l11b3.stat, 3); AddStaticBox((l11b4.x / m_phys_scale), (l11b4.y / m_phys_scale), ((l11b4.width / 2) / m_phys_scale), ((l11b4.height / 2) / m_phys_scale), l11b4.stat, 4); AddStaticBox((l11b5.x / m_phys_scale), (l11b5.y / m_phys_scale), ((l11b5.width / 2) / m_phys_scale), (((l11b5.height - 20) / 2) / m_phys_scale), l11b5.stat, 5); AddStaticBox((l11b6.x / m_phys_scale), (l11b6.y / m_phys_scale), ((l11b6.width / 2) / m_phys_scale), ((l11b6.height / 2) / m_phys_scale), l11b6.stat, 6); AddStaticBox((r1l11.x / m_phys_scale), (r1l11.y / m_phys_scale), ((r1l11.width / 2) / m_phys_scale), ((r1l11.height / 2) / m_phys_scale), r1l11.stat, 7); AddStaticBox((r2l11.x / m_phys_scale), (r2l11.y / m_phys_scale), ((r2l11.width / 2) / m_phys_scale), ((r2l11.height / 2) / m_phys_scale), r2l11.stat, 8); AddStaticBox((r3l11.x / m_phys_scale), (r3l11.y / m_phys_scale), ((r3l11.width / 2) / m_phys_scale), ((r3l11.height / 2) / m_phys_scale), r3l11.stat, 9); AddStaticBox((r4l11.x / m_phys_scale), (r4l11.y / m_phys_scale), ((r4l11.width / 2) / m_phys_scale), ((r4l11.height / 2) / m_phys_scale), r4l11.stat, 10); AddStaticBox((r5l11.x / m_phys_scale), (r5l11.y / m_phys_scale), ((r5l11.width / 2) / m_phys_scale), ((r5l11.height / 2) / m_phys_scale), r5l11.stat, 11); AddStaticBox((r6l11.x / m_phys_scale), (r6l11.y / m_phys_scale), ((r6l11.width / 2) / m_phys_scale), ((r6l11.height / 2) / m_phys_scale), r6l11.stat, 12); AddStaticBox((r7l11.x / m_phys_scale), (r7l11.y / m_phys_scale), ((r7l11.width / 2) / m_phys_scale), ((r7l11.height / 2) / m_phys_scale), r7l11.stat, 13); AddStaticBox((r8l11.x / m_phys_scale), (r8l11.y / m_phys_scale), ((r8l11.width / 2) / m_phys_scale), ((r8l11.height / 2) / m_phys_scale), r8l11.stat, 14); AddStaticBox((r9l11.x / m_phys_scale), (r9l11.y / m_phys_scale), ((r9l11.width / 2) / m_phys_scale), ((r9l11.height / 2) / m_phys_scale), r9l11.stat, 15); AddStaticBox((r10l11.x / m_phys_scale), (r10l11.y / m_phys_scale), ((r10l11.width / 2) / m_phys_scale), ((r10l11.height / 2) / m_phys_scale), r10l11.stat, 16); AddStaticBox((r11l11.x / m_phys_scale), (r11l11.y / m_phys_scale), ((r11l11.width / 2) / m_phys_scale), ((r11l11.height / 2) / m_phys_scale), r11l11.stat, 17); AddStaticBox((r12l11.x / m_phys_scale), (r12l11.y / m_phys_scale), ((r12l11.width / 2) / m_phys_scale), ((r12l11.height / 2) / m_phys_scale), r12l11.stat, 18); AddStaticBox((r13l11.x / m_phys_scale), (r13l11.y / m_phys_scale), ((r13l11.width / 2) / m_phys_scale), ((r13l11.height / 2) / m_phys_scale), r13l11.stat, 19); AddStaticBox((p1l11.x / m_phys_scale), (p1l11.y / m_phys_scale), ((p1l11.width / 2) / m_phys_scale), ((p1l11.height / 2) / m_phys_scale), p1l11.stat, 20); AddBasket(1); AddBasket(2); AddBigBall((bball11.x / m_phys_scale), (bball11.y / m_phys_scale), (bball11.width / (2 * m_phys_scale)), bball11, 20); AddBigBall((b1ball11.x / m_phys_scale), (b1ball11.y / m_phys_scale), (b1ball11.width / (2 * m_phys_scale)), b1ball11, 20); } function frame15(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 1; b1Count = 1; BrickArray = new Array(l25b1, l25b2, l25b3, l25b4, r1l25, r2l25, r3l25, r4l25, r5l25, r6l25, r7l25, r8l25, r9l25, r10l25, r11l25, r12l25, r13l25, r14l25, r15l25, r16l25, r17l25, r18l25, r19l25, r20l25, r21l25, r22l25, r23l25, r24l25, r25l25, r26l25, p1l25, p2l25, bbal25); CArray = new Array(); i = 1; while (i <= 4) { this[("l25b" + i)].stat = false; this[("l25b" + i)].rot = this[("l25b" + i)].rotation; i++; }; l25b1.stat = true; i = 1; while (i <= 26) { this[(("r" + i) + "l25")].stat = true; this[(("r" + i) + "l25")].rot = this[(("r" + i) + "l25")].rotation; this[(("r" + i) + "l25")].buttonMode = true; i++; }; i = 1; while (i <= 2) { this[(("p" + i) + "l25")].stat = false; this[(("p" + i) + "l25")].rot = this[(("p" + i) + "l25")].rotation; i++; }; AddStaticBox((l25b1.x / m_phys_scale), (l25b1.y / m_phys_scale), (((l25b1.width - 5) / 2) / m_phys_scale), (((l25b1.height - 20) / 2) / m_phys_scale), l25b1.stat, 1); AddStaticBox((l25b2.x / m_phys_scale), (l25b2.y / m_phys_scale), ((l25b2.width / 2) / m_phys_scale), ((l25b2.height / 2) / m_phys_scale), l25b2.stat, 2); AddStaticBox((l25b3.x / m_phys_scale), (l25b3.y / m_phys_scale), ((l25b3.width / 2) / m_phys_scale), ((l25b3.height / 2) / m_phys_scale), l25b3.stat, 3); AddStaticBox((l25b4.x / m_phys_scale), (l25b4.y / m_phys_scale), ((l25b4.width / 2) / m_phys_scale), ((l25b4.height / 2) / m_phys_scale), l25b4.stat, 4); i = 4; while (i <= 29) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddStaticBox((p1l25.x / m_phys_scale), (p1l25.y / m_phys_scale), ((p1l25.width / 2) / m_phys_scale), ((p1l25.height / 2) / m_phys_scale), p1l25.stat, 31); AddStaticBox((p2l25.x / m_phys_scale), (p2l25.y / m_phys_scale), ((p2l25.width / 2) / m_phys_scale), ((p2l25.height / 2) / m_phys_scale), p2l25.stat, 32); AddBasket(1); AddBigBall((bbal25.x / m_phys_scale), (bbal25.y / m_phys_scale), (bbal25.width / (2 * m_phys_scale)), bbal25, 100); } function frame17(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 1; b1Count = 1; BrickArray = new Array(l15b1, l15b2, l15b3, l15b4, r1l15, r2l15, r3l15, r4l15, r5l15, r6l15, r7l15, p1l15, p2l15); CArray = new Array(); i = 1; while (i <= 4) { this[("l15b" + i)].stat = false; this[("l15b" + i)].rot = this[("l15b" + i)].rotation; i++; }; l15b1.stat = true; i = 1; while (i <= 7) { this[(("r" + i) + "l15")].stat = true; this[(("r" + i) + "l15")].rot = this[(("r" + i) + "l15")].rotation; this[(("r" + i) + "l15")].buttonMode = true; i++; }; i = 1; while (i <= 2) { this[(("p" + i) + "l15")].stat = false; this[(("p" + i) + "l15")].rot = this[(("p" + i) + "l15")].rotation; i++; }; AddStaticBox((l15b1.x / m_phys_scale), (l15b1.y / m_phys_scale), (((l15b1.width - 5) / 2) / m_phys_scale), (((l15b1.height - 20) / 2) / m_phys_scale), l15b1.stat, 1); AddStaticBox((l15b2.x / m_phys_scale), (l15b2.y / m_phys_scale), ((l15b2.width / 2) / m_phys_scale), ((l15b2.height / 2) / m_phys_scale), l15b2.stat, 2); AddStaticBox((l15b3.x / m_phys_scale), (l15b3.y / m_phys_scale), ((l15b3.width / 2) / m_phys_scale), ((l15b3.height / 2) / m_phys_scale), l15b3.stat, 3); AddStaticBox((l15b4.x / m_phys_scale), (l15b4.y / m_phys_scale), ((l15b4.width / 2) / m_phys_scale), ((l15b4.height / 2) / m_phys_scale), l15b4.stat, 4); AddStaticBox((r1l15.x / m_phys_scale), (r1l15.y / m_phys_scale), ((r1l15.width / 2) / m_phys_scale), ((r1l15.height / 2) / m_phys_scale), r1l15.stat, 5); AddStaticBox((r2l15.x / m_phys_scale), (r2l15.y / m_phys_scale), ((r2l15.width / 2) / m_phys_scale), ((r2l15.height / 2) / m_phys_scale), r2l15.stat, 6); AddStaticBox((r3l15.x / m_phys_scale), (r3l15.y / m_phys_scale), ((r3l15.width / 2) / m_phys_scale), ((r3l15.height / 2) / m_phys_scale), r3l15.stat, 7); AddStaticBox((r4l15.x / m_phys_scale), (r4l15.y / m_phys_scale), ((r4l15.width / 2) / m_phys_scale), ((r4l15.height / 2) / m_phys_scale), r4l15.stat, 8); AddStaticBox((r5l15.x / m_phys_scale), (r5l15.y / m_phys_scale), ((r5l15.width / 2) / m_phys_scale), ((r5l15.height / 2) / m_phys_scale), r5l15.stat, 9); AddStaticBox((r6l15.x / m_phys_scale), (r6l15.y / m_phys_scale), ((r6l15.width / 2) / m_phys_scale), ((r6l15.height / 2) / m_phys_scale), r6l15.stat, 10); AddStaticBox((r7l15.x / m_phys_scale), (r7l15.y / m_phys_scale), ((r7l15.width / 2) / m_phys_scale), ((r7l15.height / 2) / m_phys_scale), r7l15.stat, 11); AddStaticBox((p1l15.x / m_phys_scale), (p1l15.y / m_phys_scale), ((p1l15.width / 2) / m_phys_scale), ((p1l15.height / 2) / m_phys_scale), p1l15.stat, 12); AddStaticBox((p2l15.x / m_phys_scale), (p2l15.y / m_phys_scale), ((p2l15.width / 2) / m_phys_scale), ((p2l15.height / 2) / m_phys_scale), p2l15.stat, 13); AddBasket(1); } function frame25(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 1; b1Count = 1; BrickArray = new Array(l22b1, l22b2, l22b3, l22b4, l22b5, r1l22, r2l22, r3l22, r4l22, r5l22, r6l22, r7l22, r8l22, r9l22, r10l22, r11l22, r12l22, r13l22, r14l22, r15l22, p1l22, p2l22); CArray = new Array(); i = 1; while (i <= 5) { this[("l22b" + i)].stat = false; this[("l22b" + i)].rot = this[("l22b" + i)].rotation; i++; }; l22b1.stat = true; i = 1; while (i <= 15) { this[(("r" + i) + "l22")].stat = true; this[(("r" + i) + "l22")].rot = this[(("r" + i) + "l22")].rotation; this[(("r" + i) + "l22")].buttonMode = true; i++; }; i = 1; while (i <= 2) { this[(("p" + i) + "l22")].stat = false; this[(("p" + i) + "l22")].rot = this[(("p" + i) + "l22")].rotation; i++; }; AddStaticBox((l22b1.x / m_phys_scale), (l22b1.y / m_phys_scale), (((l22b1.width - 5) / 2) / m_phys_scale), (((l22b1.height - 20) / 2) / m_phys_scale), l22b1.stat, 1); AddStaticBox((l22b2.x / m_phys_scale), (l22b2.y / m_phys_scale), ((l22b2.width / 2) / m_phys_scale), ((l22b2.height / 2) / m_phys_scale), l22b2.stat, 2); AddStaticBox((l22b3.x / m_phys_scale), (l22b3.y / m_phys_scale), ((l22b3.width / 2) / m_phys_scale), ((l22b3.height / 2) / m_phys_scale), l22b3.stat, 3); AddStaticBox((l22b4.x / m_phys_scale), (l22b4.y / m_phys_scale), ((l22b4.width / 2) / m_phys_scale), ((l22b4.height / 2) / m_phys_scale), l22b4.stat, 4); AddStaticBox((l22b5.x / m_phys_scale), (l22b5.y / m_phys_scale), ((l22b5.width / 2) / m_phys_scale), ((l22b5.height / 2) / m_phys_scale), l22b5.stat, 5); i = 5; while (i <= 19) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddStaticBox((p1l22.x / m_phys_scale), (p1l22.y / m_phys_scale), ((p1l22.width / 2) / m_phys_scale), ((p1l22.height / 2) / m_phys_scale), p1l22.stat, 21); AddStaticBox((p2l22.x / m_phys_scale), (p2l22.y / m_phys_scale), ((p2l22.width / 2) / m_phys_scale), ((p2l22.height / 2) / m_phys_scale), p2l22.stat, 22); AddBasket(1); } function frame22(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l19b1, l19b2, l19b3, l19b4, r1l19, r2l19, r3l19, r4l19, r5l19, r6l19, r7l19, r8l19, r9l19, r10l19, r11l19, r12l19, r13l19, r14l19, r15l19, r16l19, r17l19, r18l19, r19l19, r20l19, p1l19, p2l19, p3l19, p4l19, l19b5, l19b6); CArray = new Array(); i = 1; while (i <= 6) { this[("l19b" + i)].stat = false; this[("l19b" + i)].rot = this[("l19b" + i)].rotation; i++; }; l19b1.stat = true; i = 1; while (i <= 20) { this[(("r" + i) + "l19")].stat = true; this[(("r" + i) + "l19")].rot = this[(("r" + i) + "l19")].rotation; this[(("r" + i) + "l19")].buttonMode = true; i++; }; i = 1; while (i <= 4) { this[(("p" + i) + "l19")].stat = false; this[(("p" + i) + "l19")].rot = this[(("p" + i) + "l19")].rotation; i++; }; AddStaticBox((l19b1.x / m_phys_scale), (l19b1.y / m_phys_scale), (((l19b1.width - 5) / 2) / m_phys_scale), (((l19b1.height - 20) / 2) / m_phys_scale), l19b1.stat, 1); AddStaticBox((l19b2.x / m_phys_scale), (l19b2.y / m_phys_scale), ((l19b2.width / 2) / m_phys_scale), ((l19b2.height / 2) / m_phys_scale), l19b2.stat, 2); AddStaticBox((l19b3.x / m_phys_scale), (l19b3.y / m_phys_scale), ((l19b3.width / 2) / m_phys_scale), ((l19b3.height / 2) / m_phys_scale), l19b3.stat, 3); AddStaticBox((l19b4.x / m_phys_scale), (l19b4.y / m_phys_scale), ((l19b4.width / 2) / m_phys_scale), ((l19b4.height / 2) / m_phys_scale), l19b4.stat, 4); AddStaticBox((r1l19.x / m_phys_scale), (r1l19.y / m_phys_scale), ((r1l19.width / 2) / m_phys_scale), ((r1l19.height / 2) / m_phys_scale), r1l19.stat, 5); AddStaticBox((r2l19.x / m_phys_scale), (r2l19.y / m_phys_scale), ((r2l19.width / 2) / m_phys_scale), ((r2l19.height / 2) / m_phys_scale), r2l19.stat, 6); AddStaticBox((r3l19.x / m_phys_scale), (r3l19.y / m_phys_scale), ((r3l19.width / 2) / m_phys_scale), ((r3l19.height / 2) / m_phys_scale), r3l19.stat, 7); AddStaticBox((r4l19.x / m_phys_scale), (r4l19.y / m_phys_scale), ((r4l19.width / 2) / m_phys_scale), ((r4l19.height / 2) / m_phys_scale), r4l19.stat, 8); AddStaticBox((r5l19.x / m_phys_scale), (r5l19.y / m_phys_scale), ((r5l19.width / 2) / m_phys_scale), ((r5l19.height / 2) / m_phys_scale), r5l19.stat, 9); AddStaticBox((r6l19.x / m_phys_scale), (r6l19.y / m_phys_scale), ((r6l19.width / 2) / m_phys_scale), ((r6l19.height / 2) / m_phys_scale), r6l19.stat, 10); AddStaticBox((r7l19.x / m_phys_scale), (r7l19.y / m_phys_scale), ((r7l19.width / 2) / m_phys_scale), ((r7l19.height / 2) / m_phys_scale), r7l19.stat, 11); AddStaticBox((r8l19.x / m_phys_scale), (r8l19.y / m_phys_scale), ((r8l19.width / 2) / m_phys_scale), ((r8l19.height / 2) / m_phys_scale), r8l19.stat, 12); AddStaticBox((r9l19.x / m_phys_scale), (r9l19.y / m_phys_scale), ((r9l19.width / 2) / m_phys_scale), ((r9l19.height / 2) / m_phys_scale), r9l19.stat, 13); AddStaticBox((r10l19.x / m_phys_scale), (r10l19.y / m_phys_scale), ((r10l19.width / 2) / m_phys_scale), ((r10l19.height / 2) / m_phys_scale), r10l19.stat, 14); AddStaticBox((r11l19.x / m_phys_scale), (r11l19.y / m_phys_scale), ((r11l19.width / 2) / m_phys_scale), ((r11l19.height / 2) / m_phys_scale), r11l19.stat, 15); AddStaticBox((r12l19.x / m_phys_scale), (r12l19.y / m_phys_scale), ((r12l19.width / 2) / m_phys_scale), ((r12l19.height / 2) / m_phys_scale), r12l19.stat, 16); AddStaticBox((r13l19.x / m_phys_scale), (r13l19.y / m_phys_scale), ((r13l19.width / 2) / m_phys_scale), ((r13l19.height / 2) / m_phys_scale), r13l19.stat, 17); AddStaticBox((r14l19.x / m_phys_scale), (r14l19.y / m_phys_scale), ((r14l19.width / 2) / m_phys_scale), ((r14l19.height / 2) / m_phys_scale), r14l19.stat, 18); AddStaticBox((r15l19.x / m_phys_scale), (r15l19.y / m_phys_scale), ((r15l19.width / 2) / m_phys_scale), ((r15l19.height / 2) / m_phys_scale), r15l19.stat, 19); AddStaticBox((r16l19.x / m_phys_scale), (r16l19.y / m_phys_scale), ((r16l19.width / 2) / m_phys_scale), ((r16l19.height / 2) / m_phys_scale), r16l19.stat, 20); AddStaticBox((r17l19.x / m_phys_scale), (r17l19.y / m_phys_scale), ((r17l19.width / 2) / m_phys_scale), ((r17l19.height / 2) / m_phys_scale), r17l19.stat, 21); AddStaticBox((r18l19.x / m_phys_scale), (r18l19.y / m_phys_scale), ((r18l19.width / 2) / m_phys_scale), ((r18l19.height / 2) / m_phys_scale), r18l19.stat, 22); AddStaticBox((r19l19.x / m_phys_scale), (r19l19.y / m_phys_scale), ((r19l19.width / 2) / m_phys_scale), ((r19l19.height / 2) / m_phys_scale), r19l19.stat, 23); AddStaticBox((r20l19.x / m_phys_scale), (r20l19.y / m_phys_scale), ((r20l19.width / 2) / m_phys_scale), ((r20l19.height / 2) / m_phys_scale), r20l19.stat, 24); AddStaticBox((p1l19.x / m_phys_scale), (p1l19.y / m_phys_scale), ((p1l19.width / 2) / m_phys_scale), ((p1l19.height / 2) / m_phys_scale), p1l19.stat, 25); AddStaticBox((p2l19.x / m_phys_scale), (p2l19.y / m_phys_scale), ((p2l19.width / 2) / m_phys_scale), ((p2l19.height / 2) / m_phys_scale), p2l19.stat, 26); AddStaticBox((p3l19.x / m_phys_scale), (p3l19.y / m_phys_scale), ((p3l19.width / 2) / m_phys_scale), ((p3l19.height / 2) / m_phys_scale), p3l19.stat, 27); AddStaticBox((p4l19.x / m_phys_scale), (p4l19.y / m_phys_scale), ((p4l19.width / 2) / m_phys_scale), ((p4l19.height / 2) / m_phys_scale), p4l19.stat, 28); AddStaticBox((l19b5.x / m_phys_scale), (l19b5.y / m_phys_scale), ((l19b5.width / 2) / m_phys_scale), ((l19b5.height / 2) / m_phys_scale), l19b5.stat, 29); AddStaticBox((l19b6.x / m_phys_scale), (l19b6.y / m_phys_scale), ((l19b6.width / 2) / m_phys_scale), ((l19b6.height / 2) / m_phys_scale), l19b6.stat, 30); AddBasket(1); } function frame21(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l24b1, l24b2, l24b3, l24b4, l24b5, l24b6, r1l24, r2l24, r3l24, r4l24, r5l24, r6l24, r7l24, r8l24, r9l24, r10l24, r11l24, r12l24, r13l24, r14l24, r15l24, r16l24, r17l24, r18l24, r19l24, r20l24, r21l24, r22l24, r23l24, r24l24, r25l24, b1bal24, bbal24); CArray = new Array(); i = 1; while (i <= 6) { this[("l24b" + i)].stat = false; this[("l24b" + i)].rot = this[("l24b" + i)].rotation; i++; }; l24b1.stat = true; i = 1; while (i <= 25) { this[(("r" + i) + "l24")].stat = true; this[(("r" + i) + "l24")].rot = this[(("r" + i) + "l24")].rotation; this[(("r" + i) + "l24")].buttonMode = true; i++; }; AddStaticBox((l24b1.x / m_phys_scale), (l24b1.y / m_phys_scale), (((l24b1.width - 5) / 2) / m_phys_scale), (((l24b1.height - 20) / 2) / m_phys_scale), l24b1.stat, 1); AddStaticBox((l24b2.x / m_phys_scale), (l24b2.y / m_phys_scale), ((l24b2.width / 2) / m_phys_scale), ((l24b2.height / 2) / m_phys_scale), l24b2.stat, 2); AddStaticBox((l24b3.x / m_phys_scale), (l24b3.y / m_phys_scale), ((l24b3.width / 2) / m_phys_scale), ((l24b3.height / 2) / m_phys_scale), l24b3.stat, 3); AddStaticBox((l24b4.x / m_phys_scale), (l24b4.y / m_phys_scale), ((l24b4.width / 2) / m_phys_scale), ((l24b4.height / 2) / m_phys_scale), l24b4.stat, 4); AddStaticBox((l24b5.x / m_phys_scale), (l24b5.y / m_phys_scale), ((l24b5.width / 2) / m_phys_scale), ((l24b5.height / 2) / m_phys_scale), l24b5.stat, 5); AddStaticBox((l24b6.x / m_phys_scale), (l24b6.y / m_phys_scale), ((l24b6.width / 2) / m_phys_scale), ((l24b6.height / 2) / m_phys_scale), l24b6.stat, 6); i = 6; while (i <= 30) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddBasket(1); AddBigBall((bbal24.x / m_phys_scale), (bbal24.y / m_phys_scale), (bbal24.width / (2 * m_phys_scale)), bbal24, 20); AddBigBall((b1bal24.x / m_phys_scale), (b1bal24.y / m_phys_scale), (b1bal24.width / (2 * m_phys_scale)), b1bal24, 20); } function frame11(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l9b1, l9b2, l9b3, l9b4, l9b5, l9b6, r1l9, r2l9, r3l9, r4l9, r5l9, r6l9, r7l9, r8l9, r9l9, r10l9, r11l9, r12l9, r13l9, bball9); CArray = new Array(); i = 1; while (i <= 6) { this[("l9b" + i)].stat = false; this[("l9b" + i)].rot = this[("l9b" + i)].rotation; i++; }; l9b1.stat = true; l9b2.stat = true; l9b6.stat = true; i = 1; while (i <= 13) { this[(("r" + i) + "l9")].stat = true; this[(("r" + i) + "l9")].rot = this[(("r" + i) + "l9")].rotation; this[(("r" + i) + "l9")].buttonMode = true; i++; }; AddStaticBox((l9b1.x / m_phys_scale), (l9b1.y / m_phys_scale), (((l9b1.width - 5) / 2) / m_phys_scale), (((l9b1.height - 50) / 2) / m_phys_scale), l9b1.stat, 1); AddStaticBox((l9b2.x / m_phys_scale), (l9b2.y / m_phys_scale), ((l9b2.width / 2) / m_phys_scale), (((l9b2.height - 20) / 2) / m_phys_scale), l9b2.stat, 2); AddStaticBox((l9b3.x / m_phys_scale), (l9b3.y / m_phys_scale), ((l9b3.width / 2) / m_phys_scale), ((l9b3.height / 2) / m_phys_scale), l9b3.stat, 3); AddStaticBox((l9b4.x / m_phys_scale), (l9b4.y / m_phys_scale), ((l9b4.width / 2) / m_phys_scale), ((l9b4.height / 2) / m_phys_scale), l9b4.stat, 4); AddStaticBox((l9b5.x / m_phys_scale), (l9b5.y / m_phys_scale), ((l9b5.width / 2) / m_phys_scale), (((l9b5.height - 20) / 2) / m_phys_scale), l9b5.stat, 5); AddStaticBox((l9b6.x / m_phys_scale), (l9b6.y / m_phys_scale), ((l9b6.width / 2) / m_phys_scale), (((l9b6.height - 50) / 2) / m_phys_scale), l9b6.stat, 6); AddStaticBox((r1l9.x / m_phys_scale), (r1l9.y / m_phys_scale), ((r1l9.width / 2) / m_phys_scale), ((r1l9.height / 2) / m_phys_scale), r1l9.stat, 7); AddStaticBox((r2l9.x / m_phys_scale), (r2l9.y / m_phys_scale), ((r2l9.width / 2) / m_phys_scale), ((r2l9.height / 2) / m_phys_scale), r2l9.stat, 8); AddStaticBox((r3l9.x / m_phys_scale), (r3l9.y / m_phys_scale), ((r3l9.width / 2) / m_phys_scale), ((r3l9.height / 2) / m_phys_scale), r3l9.stat, 9); AddStaticBox((r4l9.x / m_phys_scale), (r4l9.y / m_phys_scale), ((r4l9.width / 2) / m_phys_scale), ((r4l9.height / 2) / m_phys_scale), r4l9.stat, 10); AddStaticBox((r5l9.x / m_phys_scale), (r5l9.y / m_phys_scale), ((r5l9.width / 2) / m_phys_scale), ((r5l9.height / 2) / m_phys_scale), r5l9.stat, 11); AddStaticBox((r6l9.x / m_phys_scale), (r6l9.y / m_phys_scale), ((r6l9.width / 2) / m_phys_scale), ((r6l9.height / 2) / m_phys_scale), r6l9.stat, 12); AddStaticBox((r7l9.x / m_phys_scale), (r7l9.y / m_phys_scale), ((r7l9.width / 2) / m_phys_scale), ((r7l9.height / 2) / m_phys_scale), r7l9.stat, 13); AddStaticBox((r8l9.x / m_phys_scale), (r8l9.y / m_phys_scale), ((r8l9.width / 2) / m_phys_scale), ((r8l9.height / 2) / m_phys_scale), r8l9.stat, 14); AddStaticBox((r9l9.x / m_phys_scale), (r9l9.y / m_phys_scale), ((r9l9.width / 2) / m_phys_scale), ((r9l9.height / 2) / m_phys_scale), r9l9.stat, 15); AddStaticBox((r10l9.x / m_phys_scale), (r10l9.y / m_phys_scale), ((r10l9.width / 2) / m_phys_scale), ((r10l9.height / 2) / m_phys_scale), r10l9.stat, 16); AddStaticBox((r11l9.x / m_phys_scale), (r11l9.y / m_phys_scale), ((r11l9.width / 2) / m_phys_scale), ((r11l9.height / 2) / m_phys_scale), r11l9.stat, 17); AddStaticBox((r12l9.x / m_phys_scale), (r12l9.y / m_phys_scale), ((r12l9.width / 2) / m_phys_scale), ((r12l9.height / 2) / m_phys_scale), r12l9.stat, 18); AddStaticBox((r13l9.x / m_phys_scale), (r13l9.y / m_phys_scale), ((r13l9.width / 2) / m_phys_scale), ((r13l9.height / 2) / m_phys_scale), r13l9.stat, 19); AddBasket(1); AddBigBall((bball9.x / m_phys_scale), (bball9.y / m_phys_scale), (bball9.width / (2 * m_phys_scale)), bball9, 50); } function frame20(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l18b1, l18b2, l18b3, l18b4, r1l18, r2l18, r3l18, r4l18, r5l18, r6l18, r7l18, r8l18, r9l18, r10l18, r11l18, r12l18, r13l18, r14l18, r15l18, r16l18, r17l18, r18l18, r19l18, r20l18, p1l18, p2l18, p3l18); CArray = new Array(); i = 1; while (i <= 4) { this[("l18b" + i)].stat = false; this[("l18b" + i)].rot = this[("l18b" + i)].rotation; i++; }; l18b1.stat = true; i = 1; while (i <= 20) { this[(("r" + i) + "l18")].stat = true; this[(("r" + i) + "l18")].rot = this[(("r" + i) + "l18")].rotation; this[(("r" + i) + "l18")].buttonMode = true; i++; }; i = 1; while (i <= 3) { this[(("p" + i) + "l18")].stat = false; this[(("p" + i) + "l18")].rot = this[(("p" + i) + "l18")].rotation; i++; }; AddStaticBox((l18b1.x / m_phys_scale), (l18b1.y / m_phys_scale), (((l18b1.width - 5) / 2) / m_phys_scale), (((l18b1.height - 20) / 2) / m_phys_scale), l18b1.stat, 1); AddStaticBox((l18b2.x / m_phys_scale), (l18b2.y / m_phys_scale), ((l18b2.width / 2) / m_phys_scale), ((l18b2.height / 2) / m_phys_scale), l18b2.stat, 2); AddStaticBox((l18b3.x / m_phys_scale), (l18b3.y / m_phys_scale), ((l18b3.width / 2) / m_phys_scale), ((l18b3.height / 2) / m_phys_scale), l18b3.stat, 3); AddStaticBox((l18b4.x / m_phys_scale), (l18b4.y / m_phys_scale), ((l18b4.width / 2) / m_phys_scale), ((l18b4.height / 2) / m_phys_scale), l18b4.stat, 4); AddStaticBox((r1l18.x / m_phys_scale), (r1l18.y / m_phys_scale), ((r1l18.width / 2) / m_phys_scale), ((r1l18.height / 2) / m_phys_scale), r1l18.stat, 5); AddStaticBox((r2l18.x / m_phys_scale), (r2l18.y / m_phys_scale), ((r2l18.width / 2) / m_phys_scale), ((r2l18.height / 2) / m_phys_scale), r2l18.stat, 6); AddStaticBox((r3l18.x / m_phys_scale), (r3l18.y / m_phys_scale), ((r3l18.width / 2) / m_phys_scale), ((r3l18.height / 2) / m_phys_scale), r3l18.stat, 7); AddStaticBox((r4l18.x / m_phys_scale), (r4l18.y / m_phys_scale), ((r4l18.width / 2) / m_phys_scale), ((r4l18.height / 2) / m_phys_scale), r4l18.stat, 8); AddStaticBox((r5l18.x / m_phys_scale), (r5l18.y / m_phys_scale), ((r5l18.width / 2) / m_phys_scale), ((r5l18.height / 2) / m_phys_scale), r5l18.stat, 9); AddStaticBox((r6l18.x / m_phys_scale), (r6l18.y / m_phys_scale), ((r6l18.width / 2) / m_phys_scale), ((r6l18.height / 2) / m_phys_scale), r6l18.stat, 10); AddStaticBox((r7l18.x / m_phys_scale), (r7l18.y / m_phys_scale), ((r7l18.width / 2) / m_phys_scale), ((r7l18.height / 2) / m_phys_scale), r7l18.stat, 11); AddStaticBox((r8l18.x / m_phys_scale), (r8l18.y / m_phys_scale), ((r8l18.width / 2) / m_phys_scale), ((r8l18.height / 2) / m_phys_scale), r8l18.stat, 12); AddStaticBox((r9l18.x / m_phys_scale), (r9l18.y / m_phys_scale), ((r9l18.width / 2) / m_phys_scale), ((r9l18.height / 2) / m_phys_scale), r9l18.stat, 13); AddStaticBox((r10l18.x / m_phys_scale), (r10l18.y / m_phys_scale), ((r10l18.width / 2) / m_phys_scale), ((r10l18.height / 2) / m_phys_scale), r10l18.stat, 14); AddStaticBox((r11l18.x / m_phys_scale), (r11l18.y / m_phys_scale), ((r11l18.width / 2) / m_phys_scale), ((r11l18.height / 2) / m_phys_scale), r11l18.stat, 15); AddStaticBox((r12l18.x / m_phys_scale), (r12l18.y / m_phys_scale), ((r12l18.width / 2) / m_phys_scale), ((r12l18.height / 2) / m_phys_scale), r12l18.stat, 16); AddStaticBox((r13l18.x / m_phys_scale), (r13l18.y / m_phys_scale), ((r13l18.width / 2) / m_phys_scale), ((r13l18.height / 2) / m_phys_scale), r13l18.stat, 17); AddStaticBox((r14l18.x / m_phys_scale), (r14l18.y / m_phys_scale), ((r14l18.width / 2) / m_phys_scale), ((r14l18.height / 2) / m_phys_scale), r14l18.stat, 18); AddStaticBox((r15l18.x / m_phys_scale), (r15l18.y / m_phys_scale), ((r15l18.width / 2) / m_phys_scale), ((r15l18.height / 2) / m_phys_scale), r15l18.stat, 19); AddStaticBox((r16l18.x / m_phys_scale), (r16l18.y / m_phys_scale), ((r16l18.width / 2) / m_phys_scale), ((r16l18.height / 2) / m_phys_scale), r16l18.stat, 20); AddStaticBox((r17l18.x / m_phys_scale), (r17l18.y / m_phys_scale), ((r17l18.width / 2) / m_phys_scale), ((r17l18.height / 2) / m_phys_scale), r17l18.stat, 21); AddStaticBox((r18l18.x / m_phys_scale), (r18l18.y / m_phys_scale), ((r18l18.width / 2) / m_phys_scale), ((r18l18.height / 2) / m_phys_scale), r18l18.stat, 22); AddStaticBox((r19l18.x / m_phys_scale), (r19l18.y / m_phys_scale), ((r19l18.width / 2) / m_phys_scale), ((r19l18.height / 2) / m_phys_scale), r19l18.stat, 23); AddStaticBox((r20l18.x / m_phys_scale), (r20l18.y / m_phys_scale), ((r20l18.width / 2) / m_phys_scale), ((r20l18.height / 2) / m_phys_scale), r20l18.stat, 24); AddStaticBox((p1l18.x / m_phys_scale), (p1l18.y / m_phys_scale), ((p1l18.width / 2) / m_phys_scale), ((p1l18.height / 2) / m_phys_scale), p1l18.stat, 25); AddStaticBox((p2l18.x / m_phys_scale), (p2l18.y / m_phys_scale), ((p2l18.width / 2) / m_phys_scale), ((p2l18.height / 2) / m_phys_scale), p2l18.stat, 26); AddStaticBox((p3l18.x / m_phys_scale), (p3l18.y / m_phys_scale), ((p3l18.width / 2) / m_phys_scale), ((p3l18.height / 2) / m_phys_scale), p3l18.stat, 27); AddBasket(1); } function frame23(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l20b1, l20b2, l20b3, l20b4, r1l20, r2l20, r3l20, r4l20, r5l20, r6l20, r7l20, r8l20, r9l20, r10l20, r11l20, r12l20, r13l20, r14l20, r15l20, r16l20, p1l20, p2l20, l20b5); CArray = new Array(); i = 1; while (i <= 5) { this[("l20b" + i)].stat = false; this[("l20b" + i)].rot = this[("l20b" + i)].rotation; i++; }; l20b1.stat = true; i = 1; while (i <= 16) { this[(("r" + i) + "l20")].stat = true; this[(("r" + i) + "l20")].rot = this[(("r" + i) + "l20")].rotation; this[(("r" + i) + "l20")].buttonMode = true; i++; }; i = 1; while (i <= 2) { this[(("p" + i) + "l20")].stat = false; this[(("p" + i) + "l20")].rot = this[(("p" + i) + "l20")].rotation; i++; }; AddStaticBox((l20b1.x / m_phys_scale), (l20b1.y / m_phys_scale), (((l20b1.width - 5) / 2) / m_phys_scale), (((l20b1.height - 20) / 2) / m_phys_scale), l20b1.stat, 1); AddStaticBox((l20b2.x / m_phys_scale), (l20b2.y / m_phys_scale), ((l20b2.width / 2) / m_phys_scale), ((l20b2.height / 2) / m_phys_scale), l20b2.stat, 2); AddStaticBox((l20b3.x / m_phys_scale), (l20b3.y / m_phys_scale), ((l20b3.width / 2) / m_phys_scale), ((l20b3.height / 2) / m_phys_scale), l20b3.stat, 3); AddStaticBox((l20b4.x / m_phys_scale), (l20b4.y / m_phys_scale), ((l20b4.width / 2) / m_phys_scale), ((l20b4.height / 2) / m_phys_scale), l20b4.stat, 4); AddStaticBox((r1l20.x / m_phys_scale), (r1l20.y / m_phys_scale), ((r1l20.width / 2) / m_phys_scale), ((r1l20.height / 2) / m_phys_scale), r1l20.stat, 5); AddStaticBox((r2l20.x / m_phys_scale), (r2l20.y / m_phys_scale), ((r2l20.width / 2) / m_phys_scale), ((r2l20.height / 2) / m_phys_scale), r2l20.stat, 6); AddStaticBox((r3l20.x / m_phys_scale), (r3l20.y / m_phys_scale), ((r3l20.width / 2) / m_phys_scale), ((r3l20.height / 2) / m_phys_scale), r3l20.stat, 7); AddStaticBox((r4l20.x / m_phys_scale), (r4l20.y / m_phys_scale), ((r4l20.width / 2) / m_phys_scale), ((r4l20.height / 2) / m_phys_scale), r4l20.stat, 8); AddStaticBox((r5l20.x / m_phys_scale), (r5l20.y / m_phys_scale), ((r5l20.width / 2) / m_phys_scale), ((r5l20.height / 2) / m_phys_scale), r5l20.stat, 9); AddStaticBox((r6l20.x / m_phys_scale), (r6l20.y / m_phys_scale), ((r6l20.width / 2) / m_phys_scale), ((r6l20.height / 2) / m_phys_scale), r6l20.stat, 10); AddStaticBox((r7l20.x / m_phys_scale), (r7l20.y / m_phys_scale), ((r7l20.width / 2) / m_phys_scale), ((r7l20.height / 2) / m_phys_scale), r7l20.stat, 11); AddStaticBox((r8l20.x / m_phys_scale), (r8l20.y / m_phys_scale), ((r8l20.width / 2) / m_phys_scale), ((r8l20.height / 2) / m_phys_scale), r8l20.stat, 12); AddStaticBox((r9l20.x / m_phys_scale), (r9l20.y / m_phys_scale), ((r9l20.width / 2) / m_phys_scale), ((r9l20.height / 2) / m_phys_scale), r9l20.stat, 13); AddStaticBox((r10l20.x / m_phys_scale), (r10l20.y / m_phys_scale), ((r10l20.width / 2) / m_phys_scale), ((r10l20.height / 2) / m_phys_scale), r10l20.stat, 14); AddStaticBox((r11l20.x / m_phys_scale), (r11l20.y / m_phys_scale), ((r11l20.width / 2) / m_phys_scale), ((r11l20.height / 2) / m_phys_scale), r11l20.stat, 15); AddStaticBox((r12l20.x / m_phys_scale), (r12l20.y / m_phys_scale), ((r12l20.width / 2) / m_phys_scale), ((r12l20.height / 2) / m_phys_scale), r12l20.stat, 16); AddStaticBox((r13l20.x / m_phys_scale), (r13l20.y / m_phys_scale), ((r13l20.width / 2) / m_phys_scale), ((r13l20.height / 2) / m_phys_scale), r13l20.stat, 17); AddStaticBox((r14l20.x / m_phys_scale), (r14l20.y / m_phys_scale), ((r14l20.width / 2) / m_phys_scale), ((r14l20.height / 2) / m_phys_scale), r14l20.stat, 18); AddStaticBox((r15l20.x / m_phys_scale), (r15l20.y / m_phys_scale), ((r15l20.width / 2) / m_phys_scale), ((r15l20.height / 2) / m_phys_scale), r15l20.stat, 19); AddStaticBox((r16l20.x / m_phys_scale), (r16l20.y / m_phys_scale), ((r16l20.width / 2) / m_phys_scale), ((r16l20.height / 2) / m_phys_scale), r16l20.stat, 20); AddStaticBox((p1l20.x / m_phys_scale), (p1l20.y / m_phys_scale), ((p1l20.width / 2) / m_phys_scale), ((p1l20.height / 2) / m_phys_scale), p1l20.stat, 21); AddStaticBox((p2l20.x / m_phys_scale), (p2l20.y / m_phys_scale), ((p2l20.width / 2) / m_phys_scale), ((p2l20.height / 2) / m_phys_scale), p2l20.stat, 22); AddStaticBox((l20b5.x / m_phys_scale), (l20b5.y / m_phys_scale), ((l20b5.width / 2) / m_phys_scale), ((l20b5.height / 2) / m_phys_scale), l20b5.stat, 23); AddBasket(1); } function frame18(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 1; b1Count = 1; BrickArray = new Array(l16b1, l16b2, l16b3, l16b4, r1l16, r2l16, r3l16, r4l16, r5l16, r6l16, r7l16, r8l16, r9l16, r10l16, r11l16, p1l16, p2l16, p3l16, p4l16); CArray = new Array(); i = 1; while (i <= 4) { this[("l16b" + i)].stat = false; this[("l16b" + i)].rot = this[("l16b" + i)].rotation; i++; }; l16b1.stat = true; i = 1; while (i <= 11) { this[(("r" + i) + "l16")].stat = true; this[(("r" + i) + "l16")].rot = this[(("r" + i) + "l16")].rotation; this[(("r" + i) + "l16")].buttonMode = true; i++; }; i = 1; while (i <= 4) { this[(("p" + i) + "l16")].stat = false; this[(("p" + i) + "l16")].rot = this[(("p" + i) + "l16")].rotation; i++; }; AddStaticBox((l16b1.x / m_phys_scale), (l16b1.y / m_phys_scale), (((l16b1.width - 5) / 2) / m_phys_scale), (((l16b1.height - 20) / 2) / m_phys_scale), l16b1.stat, 1); AddStaticBox((l16b2.x / m_phys_scale), (l16b2.y / m_phys_scale), ((l16b2.width / 2) / m_phys_scale), ((l16b2.height / 2) / m_phys_scale), l16b2.stat, 2); AddStaticBox((l16b3.x / m_phys_scale), (l16b3.y / m_phys_scale), ((l16b3.width / 2) / m_phys_scale), ((l16b3.height / 2) / m_phys_scale), l16b3.stat, 3); AddStaticBox((l16b4.x / m_phys_scale), (l16b4.y / m_phys_scale), ((l16b4.width / 2) / m_phys_scale), ((l16b4.height / 2) / m_phys_scale), l16b4.stat, 4); AddStaticBox((r1l16.x / m_phys_scale), (r1l16.y / m_phys_scale), ((r1l16.width / 2) / m_phys_scale), ((r1l16.height / 2) / m_phys_scale), r1l16.stat, 5); AddStaticBox((r2l16.x / m_phys_scale), (r2l16.y / m_phys_scale), ((r2l16.width / 2) / m_phys_scale), ((r2l16.height / 2) / m_phys_scale), r2l16.stat, 6); AddStaticBox((r3l16.x / m_phys_scale), (r3l16.y / m_phys_scale), ((r3l16.width / 2) / m_phys_scale), ((r3l16.height / 2) / m_phys_scale), r3l16.stat, 7); AddStaticBox((r4l16.x / m_phys_scale), (r4l16.y / m_phys_scale), ((r4l16.width / 2) / m_phys_scale), ((r4l16.height / 2) / m_phys_scale), r4l16.stat, 8); AddStaticBox((r5l16.x / m_phys_scale), (r5l16.y / m_phys_scale), ((r5l16.width / 2) / m_phys_scale), ((r5l16.height / 2) / m_phys_scale), r5l16.stat, 9); AddStaticBox((r6l16.x / m_phys_scale), (r6l16.y / m_phys_scale), ((r6l16.width / 2) / m_phys_scale), ((r6l16.height / 2) / m_phys_scale), r6l16.stat, 10); AddStaticBox((r7l16.x / m_phys_scale), (r7l16.y / m_phys_scale), ((r7l16.width / 2) / m_phys_scale), ((r7l16.height / 2) / m_phys_scale), r7l16.stat, 11); AddStaticBox((r8l16.x / m_phys_scale), (r8l16.y / m_phys_scale), ((r8l16.width / 2) / m_phys_scale), ((r8l16.height / 2) / m_phys_scale), r8l16.stat, 12); AddStaticBox((r9l16.x / m_phys_scale), (r9l16.y / m_phys_scale), ((r9l16.width / 2) / m_phys_scale), ((r9l16.height / 2) / m_phys_scale), r9l16.stat, 13); AddStaticBox((r10l16.x / m_phys_scale), (r10l16.y / m_phys_scale), ((r10l16.width / 2) / m_phys_scale), ((r10l16.height / 2) / m_phys_scale), r10l16.stat, 14); AddStaticBox((r11l16.x / m_phys_scale), (r11l16.y / m_phys_scale), ((r11l16.width / 2) / m_phys_scale), ((r11l16.height / 2) / m_phys_scale), r11l16.stat, 15); AddStaticBox((p1l16.x / m_phys_scale), (p1l16.y / m_phys_scale), ((p1l16.width / 2) / m_phys_scale), ((p1l16.height / 2) / m_phys_scale), p1l16.stat, 16); AddStaticBox((p2l16.x / m_phys_scale), (p2l16.y / m_phys_scale), ((p2l16.width / 2) / m_phys_scale), ((p2l16.height / 2) / m_phys_scale), p2l16.stat, 17); AddStaticBox((p3l16.x / m_phys_scale), (p3l16.y / m_phys_scale), ((p3l16.width / 2) / m_phys_scale), ((p3l16.height / 2) / m_phys_scale), p3l16.stat, 18); AddStaticBox((p4l16.x / m_phys_scale), (p4l16.y / m_phys_scale), ((p4l16.width / 2) / m_phys_scale), ((p4l16.height / 2) / m_phys_scale), p4l16.stat, 19); AddBasket(1); } function frame27(){ stop(); basket1 = null; basket2 = null; gotoAndStop(CFrame); } function frame24(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 1; b1Count = 1; BrickArray = new Array(l21b1, l21b2, l21b3, l21b4, l21b5, r1l21, r2l21, r3l21, r4l21, r5l21, r6l21, r7l21, r8l21, r9l21, r10l21, r11l21, r12l21, r13l21, r14l21, r15l21, r16l21, r17l21, r18l21, r19l21, r20l21, r21l21, r22l21, r23l21, r24l21, r25l21, r26l21, p1l21, p2l21, bbal21); CArray = new Array(); i = 1; while (i <= 5) { this[("l21b" + i)].stat = false; this[("l21b" + i)].rot = this[("l21b" + i)].rotation; i++; }; l21b1.stat = true; i = 1; while (i <= 26) { this[(("r" + i) + "l21")].stat = true; this[(("r" + i) + "l21")].rot = this[(("r" + i) + "l21")].rotation; this[(("r" + i) + "l21")].buttonMode = true; i++; }; i = 1; while (i <= 2) { this[(("p" + i) + "l21")].stat = false; this[(("p" + i) + "l21")].rot = this[(("p" + i) + "l21")].rotation; i++; }; AddStaticBox((l21b1.x / m_phys_scale), (l21b1.y / m_phys_scale), (((l21b1.width - 5) / 2) / m_phys_scale), (((l21b1.height - 20) / 2) / m_phys_scale), l21b1.stat, 1); AddStaticBox((l21b2.x / m_phys_scale), (l21b2.y / m_phys_scale), ((l21b2.width / 2) / m_phys_scale), ((l21b2.height / 2) / m_phys_scale), l21b2.stat, 2); AddStaticBox((l21b3.x / m_phys_scale), (l21b3.y / m_phys_scale), ((l21b3.width / 2) / m_phys_scale), ((l21b3.height / 2) / m_phys_scale), l21b3.stat, 3); AddStaticBox((l21b4.x / m_phys_scale), (l21b4.y / m_phys_scale), ((l21b4.width / 2) / m_phys_scale), ((l21b4.height / 2) / m_phys_scale), l21b4.stat, 4); AddStaticBox((l21b5.x / m_phys_scale), (l21b5.y / m_phys_scale), ((l21b5.width / 2) / m_phys_scale), ((l21b5.height / 2) / m_phys_scale), l21b5.stat, 5); i = 5; while (i <= 30) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddStaticBox((p1l21.x / m_phys_scale), (p1l21.y / m_phys_scale), ((p1l21.width / 2) / m_phys_scale), ((p1l21.height / 2) / m_phys_scale), p1l21.stat, 32); AddStaticBox((p2l21.x / m_phys_scale), (p2l21.y / m_phys_scale), ((p2l21.width / 2) / m_phys_scale), ((p2l21.height / 2) / m_phys_scale), p2l21.stat, 33); AddBasket(1); AddBigBall((bbal21.x / m_phys_scale), (bbal21.y / m_phys_scale), (bbal21.width / (2 * m_phys_scale)), bbal21, 100); } function frame26(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.scaleX = 0.8; basket1.scaleY = 0.8; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 1; b1Count = 1; BrickArray = new Array(l23b1, l23b2, l23b3, l23b4, l23b5, r1l23, r2l23, r3l23, r4l23, r5l23, r6l23, r7l23, r8l23, r9l23, r10l23, r11l23, r12l23, r13l23, r14l23, r15l23, r16l23, r17l23, r18l23, r19l23, r20l23, r21l23, r22l23, r23l23, r24l23, r25l23, r26l23, r27l23, r28l23, r29l23, r30l23, r31l23, p1l23, p2l23); CArray = new Array(); i = 1; while (i <= 5) { this[("l23b" + i)].stat = false; this[("l23b" + i)].rot = this[("l23b" + i)].rotation; i++; }; l23b1.stat = true; i = 1; while (i <= 31) { this[(("r" + i) + "l23")].stat = true; this[(("r" + i) + "l23")].rot = this[(("r" + i) + "l23")].rotation; this[(("r" + i) + "l23")].buttonMode = true; i++; }; i = 1; while (i <= 2) { this[(("p" + i) + "l23")].stat = false; this[(("p" + i) + "l23")].rot = this[(("p" + i) + "l23")].rotation; i++; }; AddStaticBox((l23b1.x / m_phys_scale), (l23b1.y / m_phys_scale), (((l23b1.width - 5) / 2) / m_phys_scale), (((l23b1.height - 20) / 2) / m_phys_scale), l23b1.stat, 1); AddStaticBox((l23b2.x / m_phys_scale), (l23b2.y / m_phys_scale), ((l23b2.width / 2) / m_phys_scale), ((l23b2.height / 2) / m_phys_scale), l23b2.stat, 2); AddStaticBox((l23b3.x / m_phys_scale), (l23b3.y / m_phys_scale), ((l23b3.width / 2) / m_phys_scale), ((l23b3.height / 2) / m_phys_scale), l23b3.stat, 3); AddStaticBox((l23b4.x / m_phys_scale), (l23b4.y / m_phys_scale), ((l23b4.width / 2) / m_phys_scale), ((l23b4.height / 2) / m_phys_scale), l23b4.stat, 4); AddStaticBox((l23b5.x / m_phys_scale), (l23b5.y / m_phys_scale), ((l23b5.width / 2) / m_phys_scale), ((l23b5.height / 2) / m_phys_scale), l23b5.stat, 5); i = 5; while (i <= 35) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddStaticBox((p1l23.x / m_phys_scale), (p1l23.y / m_phys_scale), ((p1l23.width / 2) / m_phys_scale), ((p1l23.height / 2) / m_phys_scale), p1l23.stat, 37); AddStaticBox((p2l23.x / m_phys_scale), (p2l23.y / m_phys_scale), ((p2l23.width / 2) / m_phys_scale), ((p2l23.height / 2) / m_phys_scale), p2l23.stat, 38); AddBasket(1); } public function store(){ var _local1:int; MyVar.gameScore = 0; if (MyVar.LevelFinished == 26){ MyVar.LevelFinished = 25; }; MovieClip(this.parent).so.data.tLevel = MyVar.LevelFinished; MyVar.myArray[(int(pan.levelTxt.text) - 1)] = MyVar.levelScore; MyVar.myTime[(int(pan.levelTxt.text) - 1)] = MyVar.gcount; _local1 = 0; while (_local1 < MyVar.LevelFinished) { if (MyVar.myArray[_local1] != undefined){ MyVar.gameScore = (MyVar.gameScore + MyVar.myArray[_local1]); }; trace((((_local1 + 1) + " level :") + MyVar.myArray[_local1])); _local1++; }; trace((" MyVar.gameScore " + MyVar.gameScore)); pan.score.text = MyVar.gameScore.toString(); MovieClip(this.parent).so.setProperty("gogobeearr", MyVar.myArray); MovieClip(this.parent).so.setProperty("gogobeetime", MyVar.myTime); trace(MovieClip(this.parent).so.data.tlevel); } public function calllevel1(){ TweenMax.to(levelFail, 0.8, {alpha:1, scaleX:1, scaleY:1, ease:Back.easeOut}); } public function AddStaticBox(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Boolean, _arg6:int){ var _local7:b2BodyDef; var _local8:b2PolygonDef; var _local9:b2Body; _local7 = new b2BodyDef(); _local7.position.Set(_arg1, _arg2); _local8 = new b2PolygonDef(); _local8.SetAsBox(_arg3, _arg4); if (_arg6 != -1){ if (BrickArray[(_arg6 - 1)].rot != undefined){ _local7.angle = ((Math.PI / 180) * BrickArray[(_arg6 - 1)].rotation); }; }; if (_arg5){ _local8.density = 0; _local7.userData = BrickArray[(_arg6 - 1)]; } else { if (BrickArray[(_arg6 - 1)].name.substr(0, 1) == "p"){ _local8.density = 100; } else { _local8.density = 20; }; _local7.userData = BrickArray[(_arg6 - 1)]; }; _local9 = m_world.CreateBody(_local7); _local9.CreateShape(_local8); _local9.SetMassFromShapes(); } public function delayfun(){ clearInterval(delay); stage.removeEventListener(Event.ENTER_FRAME, Update); resetLevel(); pan.parent.removeChild(pan); CFrame = currentFrame; gotoAndStop(27); } public function pauseClick(_arg1:KeyboardEvent):void{ trace(_arg1.keyCode); if ((((_arg1.keyCode == 77)) && (!(MyVar.allow)))){ if (!MyVar.allow1){ MyVar.soundChannel1.stop(); MyVar.soundToggle = false; MyVar.allow1 = true; sndBtn.gotoAndStop(2); } else { MyVar.soundChannel1 = MyVar.bg.play(0, int.MAX_VALUE); MyVar.soundToggle = true; MyVar.allow1 = false; sndBtn.gotoAndStop(1); }; }; } public function gtimefun(_arg1:TimerEvent){ MyVar.gcount++; sec = (MyVar.gcount % 60); if (sec < 10){ ssec = ("0" + sec.toString()); } else { ssec = sec.toString(); }; min = (MyVar.gcount / 60); if (min < 10){ smin = ("0" + min.toString()); } else { smin = min.toString(); }; times.text = ((smin + ":") + ssec); } public function AddBasket(_arg1:int){ var _local2:b2BodyDef; var _local3:b2PolygonDef; var _local4:b2Body; storetext(); _local2 = new b2BodyDef(); if (_arg1 == 1){ _local2.position.Set((basket.x / 30), (basket.y / 30)); } else { _local2.position.Set((basket3.x / 30), (basket3.y / 30)); }; _local3 = new b2PolygonDef(); if (basket.width > 70){ _local3.SetAsOrientedBox((40 / 60), (5 / 60), new b2Vec2(0, 1.02), 0); } else { _local3.SetAsOrientedBox((40 / 60), (5 / 60), new b2Vec2(0, 0.8), 0); }; _local3.density = 100; if (_arg1 == 1){ _local2.userData = basket; } else { _local2.userData = basket3; }; _local4 = m_world.CreateBody(_local2); _local4.CreateShape(_local3); _local3 = new b2PolygonDef(); if (basket.width > 70){ _local3.SetAsOrientedBox((5 / 60), (65 / 60), new b2Vec2(-0.8, 0), 160); } else { _local3.SetAsOrientedBox((5 / 60), (55 / 60), new b2Vec2(-0.8, 0), 160); }; _local3.density = 100; _local4.CreateShape(_local3); _local3 = new b2PolygonDef(); if (basket.width > 70){ _local3.SetAsOrientedBox((5 / 60), (65 / 60), new b2Vec2(0.8, 0), -160); } else { _local3.SetAsOrientedBox((5 / 60), (55 / 60), new b2Vec2(0.8, 0), -160); }; _local3.density = 100; _local4.CreateShape(_local3); _local4.SetMassFromShapes(); } public function Presetfun(_arg1:MouseEvent){ var _local2:b2Body; stage.removeEventListener(KeyboardEvent.KEY_UP, kup); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mdown); pan.Preset.removeEventListener(MouseEvent.MOUSE_DOWN, Presetfun); pan.levelSelectMc.removeEventListener(MouseEvent.MOUSE_DOWN, levelSelectMcfun); pan.solutionLink.removeEventListener(MouseEvent.MOUSE_DOWN, fsolutionfun); pan.logo.removeEventListener(MouseEvent.CLICK, goto_Bee123); _local2 = m_world.m_bodyList; while (_local2) { if ((_local2.m_userData is Sprite)){ trace(("bb.m_userData.name\t" + _local2.m_userData.name)); } else { trace(" not sprite"); }; m_world.DestroyBody(_local2); _local2 = _local2.m_next; }; delay = setInterval(delayfun, 500); } public function playlev(){ var _local1:int; var _local2:int; stage.removeEventListener(Event.ENTER_FRAME, Update); if (currentFrame == 5){ beeT1.alpha = 0; }; basket.alpha = 0; if (basket1 != null){ basket.alpha = 0; beeT.alpha = 0; basket1.parent.removeChild(basket1); }; if (basket2 != null){ basket3.alpha = 0; basket2.parent.removeChild(basket2); }; _local1 = 0; while (_local1 < BrickArray.length) { BrickArray[_local1].parent.removeChild(BrickArray[_local1]); BrickArray.splice(_local1, 1); _local1--; _local1++; }; BrickArray = null; _local2 = 0; while (_local2 < CArray.length) { CArray[_local2].alpha = 0; CArray[_local2].parent.removeChild(CArray[_local2]); CArray.splice(_local2, 1); _local2--; _local2++; }; CArray = null; levelFail.parent.setChildIndex(levelFail, (levelFail.parent.numChildren - 1)); pan.hidepanel.y = 500; CFrame = currentFrame; basket1 = null; basket2 = null; pan.parent.removeChild(pan); gotoAndStop(27); levelFail.alpha = 0; levelFail.x = -600; levelFail.y = 0; } public function PQuitfun(_arg1:MouseEvent){ MyVar.soundChannel1.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, pauseClick); MyVar.CkCong = false; trace((MyVar.LevelFinished + "MyVar.LevelFinished")); stage.removeEventListener(KeyboardEvent.KEY_UP, kup); stage.removeEventListener(Event.ENTER_FRAME, Update); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mdown); MyVar.gtime.stop(); MyVar.gtime.removeEventListener(TimerEvent.TIMER, gtimefun); pan.parent.removeChild(pan); MovieClip(this.parent).gotoAndStop("cong"); } public function callcong(){ MyVar.soundChannel1.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, pauseClick); MyVar.LevelFinished = 25; MyVar.CkCong = true; stage.removeEventListener(KeyboardEvent.KEY_UP, kup); stage.removeEventListener(Event.ENTER_FRAME, Update); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mdown); MyVar.gtime.stop(); MyVar.gtime.removeEventListener(TimerEvent.TIMER, gtimefun); pan.parent.removeChild(pan); MovieClip(this.parent).gotoAndStop("cong"); } public function tagainfun(_arg1:MouseEvent){ var _local2:b2Body; _local2 = m_world.m_bodyList; while (_local2) { if ((_local2.m_userData is Sprite)){ trace(("bb.m_userData.name\t" + _local2.m_userData.name)); } else { trace(" not sprite"); }; m_world.DestroyBody(_local2); _local2 = _local2.m_next; }; TweenMax.to(levelFail, 1, {alpha:0, scaleX:0, scaleY:0, ease:Back.easeIn, onComplete:playlev}); } public function levelSelectMcfun(_arg1:MouseEvent):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; levels.nextlevels.addEventListener(MouseEvent.MOUSE_DOWN, levelSelectMcfun); levels.prelevels.addEventListener(MouseEvent.MOUSE_DOWN, levelSelectMcfun); if (_arg1.target.name == "nextlevels"){ levels.y = -300; levels.x = 0; } else { if (_arg1.target.name == "prelevels"){ levels.x = 0; levels.y = 300; } else { if (levels.y < 0){ MyVar.levelScore = 0; MyVar.gcount = 0; stage.removeEventListener(KeyboardEvent.KEY_UP, kup); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mdown); levels.y = 300; levels.x = 0; }; }; }; trace("level Selected Clicked"); trace(("et :" + _arg1.target.name)); _local2 = 0; while (_local2 < 25) { levels[("timelevel" + (_local2 + 1))].mouseEnabled = false; levels[("scorelevel" + (_local2 + 1))].mouseEnabled = false; levels[("level" + (_local2 + 1))].mouseChildren = false; levels[("level" + (_local2 + 1))].buttonMode = true; _local2++; }; stage.addEventListener(MouseEvent.MOUSE_DOWN, LevelSelectFUN); levels.parent.setChildIndex(levels, (levels.parent.numChildren - 1)); _local3 = 0; while (_local3 < 25) { if (_local3 < MyVar.LevelFinished){ if (MyVar.myArray[_local3] != undefined){ levels[("level" + (_local3 + 1))].buttonMode = true; _local4 = MyVar.myArray[_local3]; levels[("scorelevel" + (_local3 + 1))].text = _local4.toString(); }; } else { levels[("level" + (_local3 + 1))].gotoAndStop(2); }; if (MyVar.myTime[_local3] != undefined){ trace((" ii " + _local3)); _local5 = MyVar.myTime[_local3]; sec = (_local5 % 60); if (sec < 10){ ssec = ("0" + sec.toString()); } else { ssec = sec.toString(); }; min = (_local5 / 60); if (min < 10){ smin = ("0" + min.toString()); } else { smin = min.toString(); }; levels[("timelevel" + (_local3 + 1))].text = ((smin + ":") + ssec); }; _local3++; }; trace((levels.y + "levels.y")); } public function delayfun1(){ clearInterval(delay); stage.removeEventListener(Event.ENTER_FRAME, Update); pan.parent.removeChild(pan); resetLevel(); MyVar.gcount = 0; times.text = "00:00"; MyVar.gtime.start(); levels.y = -600; levels.x = 1000; CFrame = (selectedLevel + 1); gotoAndStop(27); } public function resetVar(){ pan.levelTxt.text = (currentFrame - 1).toString(); pan.TargetTxt.text = (("0" + "/") + Maxb1Count); if (currentFrame == 5){ pan.TargetTxt.text = ("0" + "/5"); }; pan.TargetTxt.mouseEnabled = false; pan.score.mouseEnabled = false; basket1.alpha = 1; MyVar.gtime.start(); MyVar.gcount = 0; MyVar.levelScore = 0; ReachCount = 0; store(); pan.parent.setChildIndex(pan, (pan.parent.numChildren - 1)); stage.addEventListener(KeyboardEvent.KEY_UP, kup); stage.addEventListener(Event.ENTER_FRAME, Update); stage.addEventListener(MouseEvent.MOUSE_DOWN, mdown); pan.Preset.addEventListener(MouseEvent.MOUSE_DOWN, Presetfun); pan.levelSelectMc.addEventListener(MouseEvent.MOUSE_DOWN, levelSelectMcfun); pan.solutionLink.addEventListener(MouseEvent.MOUSE_DOWN, fsolutionfun); pan.logo.addEventListener(MouseEvent.CLICK, goto_Bee123); pan.Pquit.addEventListener(MouseEvent.CLICK, PQuitfun); } public function AddBigBall(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:int){ var _local6:b2BodyDef; var _local7:b2CircleDef; _local6 = new b2BodyDef(); _local7 = new b2CircleDef(); _local7.radius = _arg3; _local7.density = _arg5; _local7.friction = 0.1; _local7.restitution = 0.5; _local6.position.Set(_arg1, _arg2); _local6.userData = _arg4; b = m_world.CreateBody(_local6); b.CreateShape(_local7); b.SetMassFromShapes(); } public function calllevel(){ pan.hidepanel.y = 275; TweenMax.to(levelComplet, 0.8, {alpha:1, scaleX:1, scaleY:1, ease:Back.easeOut}); } function frame2(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l1b1, l1b2, l1b3); CArray = new Array(); l1b1.stat = true; l1b2.stat = true; l1b3.stat = true; l1b1.rot = l1b1.rotation; l1b2.rot = l1b2.rotation; l1b3.rot = l1b3.rotation; AddStaticBox((l1b1.x / m_phys_scale), (l1b1.y / m_phys_scale), (132 / m_phys_scale), (11 / m_phys_scale), l1b1.stat, 1); AddStaticBox((l1b2.x / m_phys_scale), (l1b2.y / m_phys_scale), (60 / m_phys_scale), (11 / m_phys_scale), l1b2.stat, 2); AddStaticBox((l1b3.x / m_phys_scale), (l1b3.y / m_phys_scale), ((l1b3.width / 2) / m_phys_scale), (((l1b3.height - 10) / 2) / m_phys_scale), l1b3.stat, 3); AddBasket(1); } function frame4(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); i = 1; while (i <= 2) { this[(("r" + i) + "l2")].stat = true; this[(("r" + i) + "l2")].rot = this[(("r" + i) + "l2")].rotation; this[(("r" + i) + "l2")].buttonMode = true; i++; }; beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l2b1, l2b2, l2b3, l2b6, l2b7, r1l2, r2l2); CArray = new Array(); l2b1.stat = true; l2b2.stat = false; l2b3.stat = true; l2b6.stat = true; l2b7.stat = false; r1l2.stat = true; r2l2.stat = true; l2b1.rot = l2b1.rotation; l2b2.rot = l2b2.rotation; l2b3.rot = l2b3.rotation; l2b6.rot = l2b6.rotation; l2b7.rot = l2b7.rotation; r1l2.rot = r1l2.rotation; r2l2.rot = r2l2.rotation; AddStaticBox((l2b1.x / m_phys_scale), (l2b1.y / m_phys_scale), (115 / m_phys_scale), (10 / m_phys_scale), l2b1.stat, 1); AddStaticBox((l2b2.x / m_phys_scale), (l2b2.y / m_phys_scale), ((l2b2.width / 2) / m_phys_scale), ((l2b2.height / 2) / m_phys_scale), l2b2.stat, 2); AddStaticBox((l2b3.x / m_phys_scale), (l2b3.y / m_phys_scale), ((l2b3.width / 2) / m_phys_scale), (((l2b3.height - 10) / 2) / m_phys_scale), l2b3.stat, 3); AddStaticBox((l2b6.x / m_phys_scale), (l2b6.y / m_phys_scale), ((l2b6.width / 2) / m_phys_scale), (((l2b6.height - 10) / 2) / m_phys_scale), l2b6.stat, 4); AddStaticBox((l2b7.x / m_phys_scale), (l2b7.y / m_phys_scale), ((l2b7.width / 2) / m_phys_scale), ((l2b7.height / 2) / m_phys_scale), l2b7.stat, 5); AddStaticBox((r1l2.x / m_phys_scale), (r1l2.y / m_phys_scale), ((r1l2.width / 2) / m_phys_scale), ((r1l2.height / 2) / m_phys_scale), r1l2.stat, 6); AddStaticBox((r2l2.x / m_phys_scale), (r2l2.y / m_phys_scale), ((r2l2.width / 2) / m_phys_scale), ((r2l2.height / 2) / m_phys_scale), r2l2.stat, 7); AddBasket(1); } function frame1(){ times.mouseEnabled = false; pan.score.mouseEnabled = false; times.text = "00:00"; MyVar.gtime = new Timer(1000, 0); MyVar.gtime.addEventListener(TimerEvent.TIMER, gtimefun); MyVar.gtime.start(); if (MyVar.soundCount == 0){ if (!MyVar.allow1){ MyVar.soundChannel1 = MyVar.bg.play(0, int.MAX_VALUE); MyVar.soundToggle = true; } else { sndBtn.gotoAndStop(2); }; MyVar.soundCount++; MyVar.allow = false; }; stage.addEventListener(KeyboardEvent.KEY_UP, pauseClick); stage.addEventListener(KeyboardEvent.KEY_UP, kup); MyVar.levelScore = 0; levelNum = ""; selectedLevel = 0; stage.addEventListener(MouseEvent.MOUSE_DOWN, LevelSelectFUN); pan.solutionLink.addEventListener(MouseEvent.MOUSE_DOWN, fsolutionfun); pan.logo.addEventListener(MouseEvent.CLICK, goto_Bee123); m_phys_scale = 30; m_timestep = (1 / 30); m_iterations = 10; i = 0; j = 0; k = 0; gravity = new b2Vec2(0, 9.8); worldAABB = new b2AABB(); worldAABB.lowerBound.Set(-1000, -1000); worldAABB.upperBound.Set(1000, 1000); m_world = new b2World(worldAABB, gravity, true); stop(); CArray = new Array(); BrickArray = new Array(); CFrame = MyVar.LevelFinished; pan.levelTxt.text = MyVar.LevelFinished.toString(); store(); gotoAndStop((CFrame + 1)); } function frame5(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeT1.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick1); beeT1.buttonMode = true; beeT.visible = true; beeT1.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); i = 1; while (i <= 7) { this[(("r" + i) + "l3")].stat = true; this[(("r" + i) + "l3")].rot = this[(("r" + i) + "l3")].rotation; this[(("r" + i) + "l3")].buttonMode = true; i++; }; beeCount = 1; Maxb1Count = 3; b1Count = 1; Maxb2Count = 2; b2Count = 1; BrickArray = new Array(l3b1, l3b2, l3b3, l3b4, r1l3, r2l3, r3l3, r4l3, r5l3, r6l3, r7l3); CArray = new Array(); l3b1.stat = true; l3b2.stat = false; l3b3.stat = true; l3b4.stat = true; l3b1.rot = l3b1.rotation; l3b2.rot = l3b2.rotation; l3b3.rot = l3b3.rotation; l3b4.rot = l3b4.rotation; AddStaticBox((l3b1.x / m_phys_scale), (l3b1.y / m_phys_scale), (((l3b1.width - 10) / 2) / m_phys_scale), (((l3b1.height - 6) / 2) / m_phys_scale), l3b1.stat, 1); AddStaticBox((l3b2.x / m_phys_scale), (l3b2.y / m_phys_scale), ((l3b2.width / 2) / m_phys_scale), ((l3b2.height / 2) / m_phys_scale), l3b2.stat, 2); AddStaticBox((l3b3.x / m_phys_scale), (l3b3.y / m_phys_scale), ((l3b3.width / 2) / m_phys_scale), ((l3b3.height / 6) / m_phys_scale), l3b3.stat, 3); AddStaticBox((l3b4.x / m_phys_scale), (l3b4.y / m_phys_scale), ((l3b4.width / 2) / m_phys_scale), (((l3b4.height - 10) / 2) / m_phys_scale), l3b4.stat, 4); AddStaticBox((r1l3.x / m_phys_scale), (r1l3.y / m_phys_scale), ((r1l3.width / 2) / m_phys_scale), ((r1l3.height / 2) / m_phys_scale), r1l3.stat, 5); AddStaticBox((r2l3.x / m_phys_scale), (r2l3.y / m_phys_scale), ((r2l3.width / 2) / m_phys_scale), ((r2l3.height / 2) / m_phys_scale), r2l3.stat, 6); AddStaticBox((r3l3.x / m_phys_scale), (r3l3.y / m_phys_scale), ((r3l3.width / 2) / m_phys_scale), ((r3l3.height / 2) / m_phys_scale), r3l3.stat, 7); AddStaticBox((r4l3.x / m_phys_scale), (r4l3.y / m_phys_scale), ((r4l3.width / 2) / m_phys_scale), ((r4l3.height / 2) / m_phys_scale), r4l3.stat, 8); AddStaticBox((r5l3.x / m_phys_scale), (r5l3.y / m_phys_scale), ((r5l3.width / 2) / m_phys_scale), ((r5l3.height / 2) / m_phys_scale), r5l3.stat, 9); AddStaticBox((r6l3.x / m_phys_scale), (r6l3.y / m_phys_scale), ((r6l3.width / 2) / m_phys_scale), ((r6l3.height / 2) / m_phys_scale), r6l3.stat, 10); AddStaticBox((r7l3.x / m_phys_scale), (r7l3.y / m_phys_scale), ((r7l3.width / 2) / m_phys_scale), ((r7l3.height / 2) / m_phys_scale), r7l3.stat, 11); AddBasket(1); } function frame7(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l5b1, r1l5, r2l5, r3l5, r4l5, r5l5, r6l5, r7l5, r8l5, l5b2, l5b3, r9l5, r10l5, r11l5, r12l5, r13l5, r14l5, r15l5, r16l5); CArray = new Array(); l5b1.stat = false; l5b2.stat = false; l5b3.stat = true; i = 1; while (i <= 16) { this[(("r" + i) + "l5")].stat = true; this[(("r" + i) + "l5")].rot = this[(("r" + i) + "l5")].rotation; this[(("r" + i) + "l5")].buttonMode = true; i++; }; l5b1.rot = l5b1.rotation; l5b2.rot = l5b2.rotation; l5b3.rot = l5b3.rotation; AddStaticBox((l5b1.x / m_phys_scale), (l5b1.y / m_phys_scale), ((l5b1.width / 2) / m_phys_scale), ((l5b1.height / 2) / m_phys_scale), l5b1.stat, 1); AddStaticBox((r1l5.x / m_phys_scale), (r1l5.y / m_phys_scale), ((r1l5.width / 2) / m_phys_scale), ((r1l5.height / 2) / m_phys_scale), r1l5.stat, 2); AddStaticBox((r2l5.x / m_phys_scale), (r2l5.y / m_phys_scale), ((r2l5.width / 2) / m_phys_scale), ((r2l5.height / 2) / m_phys_scale), r2l5.stat, 3); AddStaticBox((r3l5.x / m_phys_scale), (r3l5.y / m_phys_scale), ((r3l5.width / 2) / m_phys_scale), ((r3l5.height / 2) / m_phys_scale), r3l5.stat, 4); AddStaticBox((r4l5.x / m_phys_scale), (r4l5.y / m_phys_scale), ((r4l5.width / 2) / m_phys_scale), ((r4l5.height / 2) / m_phys_scale), r4l5.stat, 5); AddStaticBox((r5l5.x / m_phys_scale), (r5l5.y / m_phys_scale), ((r5l5.width / 2) / m_phys_scale), ((r5l5.height / 2) / m_phys_scale), r5l5.stat, 6); AddStaticBox((r6l5.x / m_phys_scale), (r6l5.y / m_phys_scale), ((r6l5.width / 2) / m_phys_scale), ((r6l5.height / 2) / m_phys_scale), r6l5.stat, 7); AddStaticBox((r7l5.x / m_phys_scale), (r7l5.y / m_phys_scale), ((r7l5.width / 2) / m_phys_scale), ((r7l5.height / 2) / m_phys_scale), r7l5.stat, 8); AddStaticBox((r8l5.x / m_phys_scale), (r8l5.y / m_phys_scale), ((r8l5.width / 2) / m_phys_scale), ((r8l5.height / 2) / m_phys_scale), r8l5.stat, 9); AddStaticBox((l5b2.x / m_phys_scale), (l5b2.y / m_phys_scale), ((l5b2.width / 2) / m_phys_scale), ((l5b2.height / 2) / m_phys_scale), l5b2.stat, 10); AddStaticBox((l5b3.x / m_phys_scale), (l5b3.y / m_phys_scale), ((l5b3.width / 2) / m_phys_scale), ((l5b3.height / 2) / m_phys_scale), l5b3.stat, 11); AddStaticBox((r9l5.x / m_phys_scale), (r9l5.y / m_phys_scale), ((r9l5.width / 2) / m_phys_scale), ((r9l5.height / 2) / m_phys_scale), r9l5.stat, 12); AddStaticBox((r10l5.x / m_phys_scale), (r10l5.y / m_phys_scale), ((r10l5.width / 2) / m_phys_scale), ((r10l5.height / 2) / m_phys_scale), r10l5.stat, 13); AddStaticBox((r11l5.x / m_phys_scale), (r11l5.y / m_phys_scale), ((r11l5.width / 2) / m_phys_scale), ((r11l5.height / 2) / m_phys_scale), r11l5.stat, 14); AddStaticBox((r12l5.x / m_phys_scale), (r12l5.y / m_phys_scale), ((r12l5.width / 2) / m_phys_scale), ((r12l5.height / 2) / m_phys_scale), r12l5.stat, 15); AddStaticBox((r13l5.x / m_phys_scale), (r13l5.y / m_phys_scale), ((r13l5.width / 2) / m_phys_scale), ((r13l5.height / 2) / m_phys_scale), r13l5.stat, 16); AddStaticBox((r14l5.x / m_phys_scale), (r14l5.y / m_phys_scale), ((r14l5.width / 2) / m_phys_scale), ((r14l5.height / 2) / m_phys_scale), r14l5.stat, 17); AddStaticBox((r15l5.x / m_phys_scale), (r15l5.y / m_phys_scale), ((r15l5.width / 2) / m_phys_scale), ((r15l5.height / 2) / m_phys_scale), r15l5.stat, 18); AddStaticBox((r16l5.x / m_phys_scale), (r16l5.y / m_phys_scale), ((r16l5.width / 2) / m_phys_scale), ((r16l5.height / 2) / m_phys_scale), r16l5.stat, 19); AddBasket(1); } function frame8(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l6b1, l6b2, l6b3, l6b4, l6b5, l6b6, r1l6, r2l6, r3l6, r4l6, p1l6, bball); CArray = new Array(); p1l6.stat = false; i = 1; while (i <= 6) { this[("l6b" + i)].stat = true; this[("l6b" + i)].rot = this[("l6b" + i)].rotation; i++; }; i = 1; while (i <= 4) { this[(("r" + i) + "l6")].stat = true; this[(("r" + i) + "l6")].rot = this[(("r" + i) + "l6")].rotation; this[(("r" + i) + "l6")].buttonMode = true; i++; }; AddStaticBox((l6b1.x / m_phys_scale), (l6b1.y / m_phys_scale), (((l6b1.width - 5) / 2) / m_phys_scale), (((l6b1.height - 45) / 2) / m_phys_scale), l6b1.stat, 1); AddStaticBox((l6b2.x / m_phys_scale), (l6b2.y / m_phys_scale), ((l6b2.width / 2) / m_phys_scale), (((l6b2.height - 20) / 2) / m_phys_scale), l6b2.stat, 2); AddStaticBox((l6b3.x / m_phys_scale), (l6b3.y / m_phys_scale), ((l6b3.width / 2) / m_phys_scale), ((l6b3.height / 2) / m_phys_scale), l6b3.stat, 3); AddStaticBox((l6b4.x / m_phys_scale), (l6b4.y / m_phys_scale), ((l6b4.width / 2) / m_phys_scale), ((l6b4.height / 5) / m_phys_scale), l6b4.stat, 4); AddStaticBox((l6b5.x / m_phys_scale), (l6b5.y / m_phys_scale), ((l6b5.width / 2) / m_phys_scale), (((l6b5.height - 10) / 2) / m_phys_scale), l6b5.stat, 5); AddStaticBox((l6b6.x / m_phys_scale), (l6b6.y / m_phys_scale), ((l6b6.width / 2) / m_phys_scale), (((l6b6.height - 10) / 2) / m_phys_scale), l6b6.stat, 6); AddStaticBox((r1l6.x / m_phys_scale), (r1l6.y / m_phys_scale), ((r1l6.width / 2) / m_phys_scale), ((r1l6.height / 2) / m_phys_scale), r1l6.stat, 7); AddStaticBox((r2l6.x / m_phys_scale), (r2l6.y / m_phys_scale), (((r2l6.width - 20) / 2) / m_phys_scale), (((r2l6.height - 20) / 2) / m_phys_scale), r2l6.stat, 8); AddStaticBox((r3l6.x / m_phys_scale), (r3l6.y / m_phys_scale), (((r3l6.width - 20) / 2) / m_phys_scale), (((r3l6.height - 20) / 2) / m_phys_scale), r3l6.stat, 9); AddStaticBox((r4l6.x / m_phys_scale), (r4l6.y / m_phys_scale), (((r4l6.width - 20) / 2) / m_phys_scale), (((r4l6.height - 20) / 2) / m_phys_scale), r4l6.stat, 10); AddStaticBox((p1l6.x / m_phys_scale), (p1l6.y / m_phys_scale), ((p1l6.width / 2) / m_phys_scale), ((p1l6.height / 2) / m_phys_scale), p1l6.stat, 11); AddBasket(1); AddBigBall((bball.x / m_phys_scale), (bball.y / m_phys_scale), (bball.width / (2 * m_phys_scale)), bball, 50); } function frame9(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 1; b1Count = 1; BrickArray = new Array(l12b1, l12b2, l12b3, l12b4, l12b5, r1l12, r2l12, r3l12, r4l12, r5l12, r6l12, r7l12, r8l12, r9l12, r10l12, r11l12); CArray = new Array(); i = 1; while (i <= 5) { this[("l12b" + i)].stat = false; this[("l12b" + i)].rot = this[("l12b" + i)].rotation; i++; }; l12b1.stat = true; i = 1; while (i <= 11) { this[(("r" + i) + "l12")].stat = true; this[(("r" + i) + "l12")].rot = this[(("r" + i) + "l12")].rotation; this[(("r" + i) + "l12")].buttonMode = true; i++; }; AddStaticBox((l12b1.x / m_phys_scale), (l12b1.y / m_phys_scale), (((l12b1.width - 5) / 2) / m_phys_scale), (((l12b1.height - 10) / 2) / m_phys_scale), l12b1.stat, 1); AddStaticBox((l12b2.x / m_phys_scale), (l12b2.y / m_phys_scale), ((l12b2.width / 2) / m_phys_scale), ((l12b2.height / 2) / m_phys_scale), l12b2.stat, 2); AddStaticBox((l12b3.x / m_phys_scale), (l12b3.y / m_phys_scale), ((l12b3.width / 2) / m_phys_scale), ((l12b3.height / 2) / m_phys_scale), l12b3.stat, 3); AddStaticBox((l12b4.x / m_phys_scale), (l12b4.y / m_phys_scale), ((l12b4.width / 2) / m_phys_scale), ((l12b4.height / 2) / m_phys_scale), l12b4.stat, 4); AddStaticBox((l12b5.x / m_phys_scale), (l12b5.y / m_phys_scale), ((l12b5.width / 2) / m_phys_scale), ((l12b5.height / 2) / m_phys_scale), l12b5.stat, 5); i = 5; while (i <= 15) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddBasket(1); AddBigBall((bbal12.x / m_phys_scale), (bbal12.y / m_phys_scale), (bbal12.width / (2 * m_phys_scale)), bbal12, 100); } function frame3(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 0.5, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l7b1, l7b2, l7b3, l7b4, l7b5, r1l7, r2l7, r3l7, r4l7); CArray = new Array(); i = 1; while (i <= 5) { this[("l7b" + i)].stat = true; this[("l7b" + i)].rot = this[("l7b" + i)].rotation; i++; }; l7b5.stat = false; i = 1; while (i <= 4) { this[(("r" + i) + "l7")].stat = true; this[(("r" + i) + "l7")].rot = this[(("r" + i) + "l7")].rotation; this[(("r" + i) + "l7")].buttonMode = true; i++; }; AddStaticBox((l7b1.x / m_phys_scale), (l7b1.y / m_phys_scale), (((l7b1.width - 5) / 2) / m_phys_scale), (((l7b1.height - 125) / 2) / m_phys_scale), l7b1.stat, 1); AddStaticBox((l7b2.x / m_phys_scale), (l7b2.y / m_phys_scale), ((l7b2.width / 2) / m_phys_scale), (((l7b2.height - 20) / 2) / m_phys_scale), l7b2.stat, 2); AddStaticBox((l7b3.x / m_phys_scale), (l7b3.y / m_phys_scale), ((l7b3.width / 2) / m_phys_scale), (((l7b3.height - 20) / 2) / m_phys_scale), l7b3.stat, 3); AddStaticBox((l7b4.x / m_phys_scale), (l7b4.y / m_phys_scale), ((l7b4.width / 2) / m_phys_scale), (((l7b4.height - 20) / 2) / m_phys_scale), l7b4.stat, 4); AddStaticBox((l7b5.x / m_phys_scale), (l7b5.y / m_phys_scale), ((l7b5.width / 2) / m_phys_scale), ((l7b5.height / 2) / m_phys_scale), l7b5.stat, 5); i = 5; while (i <= 8) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddBasket(1); AddBigBall((bball7.x / m_phys_scale), (bball7.y / m_phys_scale), (bball7.width / (2 * m_phys_scale)), bball7, 50); } function frame6(){ stop(); beeT.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); beeT.buttonMode = true; beeCount = 1; beeT.visible = true; basket.visible = true; basket1 = new BasMc(); basket1.x = basket.x; basket1.y = basket.y; basket1.alpha = 0; TweenMax.to(basket1, 1, {onComplete:resetVar}); addChild(basket1); beeCount = 1; Maxb1Count = 5; b1Count = 1; BrickArray = new Array(l4b1, l4b2, l4b3, r1l4, r2l4, r3l4, r4l4, r5l4, r6l4, r7l4, r8l4, r9l4, r10l4, p1l4); CArray = new Array(); i = 1; while (i <= 3) { this[("l4b" + i)].stat = false; this[("l4b" + i)].rot = this[("l4b" + i)].rotation; i++; }; l4b1.stat = true; i = 1; while (i <= 10) { this[(("r" + i) + "l4")].stat = true; this[(("r" + i) + "l4")].rot = this[(("r" + i) + "l4")].rotation; this[(("r" + i) + "l4")].buttonMode = true; i++; }; i = 1; while (i <= 1) { this[(("p" + i) + "l4")].stat = false; this[(("p" + i) + "l4")].rot = this[(("p" + i) + "l4")].rotation; i++; }; AddStaticBox((l4b1.x / m_phys_scale), (l4b1.y / m_phys_scale), (((l4b1.width - 5) / 2) / m_phys_scale), (((l4b1.height - 10) / 2) / m_phys_scale), l4b1.stat, 1); AddStaticBox((l4b2.x / m_phys_scale), (l4b2.y / m_phys_scale), ((l4b2.width / 2) / m_phys_scale), ((l4b2.height / 2) / m_phys_scale), l4b2.stat, 2); AddStaticBox((l4b3.x / m_phys_scale), (l4b3.y / m_phys_scale), ((l4b3.width / 2) / m_phys_scale), ((l4b3.height / 2) / m_phys_scale), l4b3.stat, 3); i = 3; while (i <= 12) { AddStaticBox((BrickArray[i].x / m_phys_scale), (BrickArray[i].y / m_phys_scale), ((BrickArray[i].width / 2) / m_phys_scale), ((BrickArray[i].height / 2) / m_phys_scale), BrickArray[i].stat, (i + 1)); i++; }; AddStaticBox((p1l4.x / m_phys_scale), (p1l4.y / m_phys_scale), ((p1l4.width / 2) / m_phys_scale), ((p1l4.height / 2) / m_phys_scale), p1l4.stat, 14); AddBasket(1); } public function pnlfun(_arg1:MouseEvent){ var _local2:b2Body; _local2 = m_world.m_bodyList; while (_local2) { if ((_local2.m_userData is Sprite)){ trace(("bb.m_userData.name\t" + _local2.m_userData.name)); } else { trace(" not sprite"); }; m_world.DestroyBody(_local2); _local2 = _local2.m_next; }; TweenMax.to(levelComplet, 1, {alpha:0, scaleX:0, scaleY:0, ease:Back.easeIn, onComplete:nextlev}); } public function mouseClick1(_arg1:MouseEvent){ if (b2Count <= Maxb2Count){ beeT1.gotoAndStop(2); bee = new Bee(); bee.x = beeT1.x; bee.y = beeT1.y; addChild(bee); if (MyVar.soundToggle){ MyVar.PressSound.play(0, 1); }; bee.name = ("bee" + beeCount); beeCount++; b2Count++; CArray.push(bee); basket1.parent.setChildIndex(basket1, (basket1.parent.numChildren - 1)); if (basket2 != null){ basket2.parent.setChildIndex(basket2, (basket2.parent.numChildren - 1)); }; addCircle((beeT1.x / m_phys_scale), (beeT1.y / m_phys_scale), (bee.width / (2 * m_phys_scale)), bee); }; } public function levelfailed(){ MyVar.gtime.stop(); levelFail.moregames1.addEventListener(MouseEvent.MOUSE_DOWN, goto_Bee123); levelFail.solution.addEventListener(MouseEvent.MOUSE_DOWN, fsolutionfun); levelFail.tagain.addEventListener(MouseEvent.MOUSE_DOWN, tagainfun); levelFail.alpha = 0; levelFail.x = 0; levelFail.y = 0; levelFail.scaleX = 0; levelFail.scaleY = 0; levelFail.parent.setChildIndex(levelFail, (levelFail.parent.numChildren - 1)); pan.hidepanel.y = 275; calllevel1(); } public function addCircle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){ var _local5:b2BodyDef; var _local6:b2CircleDef; _local5 = new b2BodyDef(); _local6 = new b2CircleDef(); _local6.radius = _arg3; _local6.density = 4; _local6.friction = 0.1; _local6.restitution = 0.5; _local5.position.Set(_arg1, _arg2); _local5.userData = _arg4; b = m_world.CreateBody(_local5); b.CreateShape(_local6); b.SetMassFromShapes(); } public function Update(_arg1:Event){ var _local2:Boolean; var _local3:b2Body; if (basket != null){ if (basket.currentFrame == basketFrame){ basket.stop(); basketFrame--; }; }; _local2 = true; m_world.Step(m_timestep, m_iterations); _local3 = m_world.m_bodyList; while (_local3) { if ((_local3.m_userData is Sprite)){ _local3.m_userData.x = (_local3.GetPosition().x * 30); _local3.m_userData.y = (_local3.GetPosition().y * 30); _local3.m_userData.rotation = ((_local3.GetAngle() * 180) / Math.PI); if (_local3.m_userData.name == "basket"){ basket1.x = _local3.m_userData.x; basket1.y = _local3.m_userData.y; basket1.rotation = _local3.m_userData.rotation; }; if (_local3.m_userData.name == "basket3"){ basket2.x = _local3.m_userData.x; basket2.y = _local3.m_userData.y; basket2.rotation = _local3.m_userData.rotation; }; if (basket1 != null){ if (HitTest.complexHitTestObject(basket1.target, _local3.m_userData, 1)){ j = 0; while (j < CArray.length) { if (CArray[j].name == _local3.m_userData.name){ if (MyVar.soundToggle){ MyVar.TargetSound.play(0, 1); }; ReachCount++; if (currentFrame == 5){ basketFrame = (basket.currentFrame + (30 / 5)); pan.TargetTxt.text = (ReachCount + "/5"); } else { basketFrame = (basket.currentFrame + (30 / Maxb1Count)); pan.TargetTxt.text = ((ReachCount + "/") + Maxb1Count); }; basket.gotoAndPlay((basket.currentFrame + 1)); CArray[j].parent.removeChild(CArray[j]); CArray.splice(j, 1); j--; m_world.DestroyBody(_local3); break; }; j++; }; }; }; if (basket2 != null){ if (basket2.target.hitTestObject(_local3.m_userData)){ j = 0; while (j < CArray.length) { if (CArray[j].name == _local3.m_userData.name){ CArray[j].parent.removeChild(CArray[j]); CArray.splice(j, 1); j--; m_world.DestroyBody(_local3); break; }; j++; }; }; }; if (((bottomhit.hitTestObject(_local3.m_userData)) && (!((pan.hidepanel.y == 275))))){ j = 0; while (j < CArray.length) { if (CArray[j].name == _local3.m_userData.name){ stage.removeEventListener(KeyboardEvent.KEY_UP, kup); beeT.removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mdown); MyVar.gtime.stop(); levelfailed(); break; }; j++; }; j = 0; while (j < BrickArray.length) { if (BrickArray[j].name == _local3.m_userData.name){ BrickArray[j].parent.removeChild(BrickArray[j]); BrickArray.splice(j, 1); j--; m_world.DestroyBody(_local3); break; }; j++; }; }; }; _local3 = _local3.m_next; }; } public function goto_Bee123(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.123bee.com"), "_blank"); } public function fsolutionfun(_arg1:MouseEvent){ navigateToURL(new URLRequest("http://www.123bee.com/solution/go_go_bee/12466.html"), "_blank"); } public function storetext(){ trace("called storetext "); pan.score.text = MyVar.gameScore.toString(); pan.levelTxt.text = (currentFrame - 1).toString(); pan.TargetTxt.text = (("0" + "/") + Maxb1Count); if (currentFrame == 5){ pan.TargetTxt.text = ("0" + "/5"); }; } public function debugDraw():void{ debug_sprite = new Sprite(); addChild(debug_sprite); debug_draw = new b2DebugDraw(); debug_draw.m_sprite = debug_sprite; debug_draw.m_drawScale = 30; debug_draw.m_alpha = 1; debug_draw.m_lineThickness = 0; debug_draw.m_drawFlags = b2DebugDraw.e_shapeBit; m_world.SetDebugDraw(debug_draw); } public function nextlev(){ var _local1:int; var _local2:int; stage.removeEventListener(Event.ENTER_FRAME, Update); if (currentFrame == 5){ beeT1.alpha = 0; }; basket.alpha = 0; if (basket1 != null){ basket.alpha = 0; beeT.alpha = 0; basket1.parent.removeChild(basket1); }; if (basket2 != null){ basket3.alpha = 0; basket2.parent.removeChild(basket2); }; _local1 = 0; while (_local1 < BrickArray.length) { BrickArray[_local1].parent.removeChild(BrickArray[_local1]); BrickArray.splice(_local1, 1); _local1--; _local1++; }; BrickArray = null; _local2 = 0; while (_local2 < CArray.length) { CArray[_local2].alpha = 0; CArray[_local2].parent.removeChild(CArray[_local2]); CArray.splice(_local2, 1); _local2--; _local2++; }; CArray = null; levelComplet.parent.setChildIndex(levelComplet, (levelComplet.parent.numChildren - 1)); pan.hidepanel.y = 500; CFrame = (currentFrame + 1); basket1 = null; basket2 = null; pan.parent.removeChild(pan); gotoAndStop(27); levelComplet.alpha = 0; levelComplet.x = -600; levelComplet.y = 0; } public function mdown(_arg1:MouseEvent){ var _local2:b2Body; if (_arg1.target.name.substr(0, 1) == "r"){ _local2 = m_world.m_bodyList; while (_local2) { if ((_local2.m_userData is Sprite)){ if (_arg1.target.name == _local2.m_userData.name){ if (MyVar.soundToggle){ MyVar.ButtonSound.play(0, 1); }; _arg1.target.gotoAndPlay(2); m_world.DestroyBody(_local2); break; }; }; _local2 = _local2.m_next; }; }; } public function resetLevel(){ var _local1:int; var _local2:int; if (currentFrame == 5){ beeT1.alpha = 0; }; basket.alpha = 0; if (basket1 != null){ basket.alpha = 0; beeT.alpha = 0; basket1.parent.removeChild(basket1); }; if (basket2 != null){ basket3.alpha = 0; basket2.parent.removeChild(basket2); }; _local1 = 0; while (_local1 < BrickArray.length) { BrickArray[_local1].parent.removeChild(BrickArray[_local1]); BrickArray.splice(_local1, 1); _local1--; _local1++; }; BrickArray = null; _local2 = 0; while (_local2 < CArray.length) { CArray[_local2].alpha = 0; CArray[_local2].parent.removeChild(CArray[_local2]); CArray.splice(_local2, 1); _local2--; _local2++; }; CArray = null; } public function mouseClick(_arg1:MouseEvent){ if (b1Count <= Maxb1Count){ beeT.gotoAndStop(2); bee = new Bee(); bee.x = beeT.x; bee.y = beeT.y; addChild(bee); if (basket.width < 70){ bee.width = (beeT.width / 3); bee.height = (beeT.width / 3); }; if (MyVar.soundToggle){ MyVar.PressSound.play(0, 1); }; bee.name = ("bee" + beeCount); beeCount++; b1Count++; CArray.push(bee); basket1.parent.setChildIndex(basket1, (basket1.parent.numChildren - 1)); if (basket2 != null){ basket2.parent.setChildIndex(basket2, (basket2.parent.numChildren - 1)); }; pan.parent.setChildIndex(pan, (pan.parent.numChildren - 1)); addCircle((beeT.x / m_phys_scale), (beeT.y / m_phys_scale), (bee.width / (2 * m_phys_scale)), bee); }; } } }//package gogobee_fla
Section 110
//honeycoomcopy2_328 (gogobee_fla.honeycoomcopy2_328) package gogobee_fla { import flash.display.*; public dynamic class honeycoomcopy2_328 extends MovieClip { public function honeycoomcopy2_328(){ addFrameScript(10, frame11); } function frame11(){ stop(); MovieClip(this.parent).gotoAndStop(1); } } }//package gogobee_fla
Section 111
//levelcompleted_265 (gogobee_fla.levelcompleted_265) package gogobee_fla { import flash.display.*; public dynamic class levelcompleted_265 extends MovieClip { public var nextlevel:SimpleButton; public var quit:SimpleButton; public var moregames:SimpleButton; } }//package gogobee_fla
Section 112
//levelfailed_284 (gogobee_fla.levelfailed_284) package gogobee_fla { import flash.display.*; public dynamic class levelfailed_284 extends MovieClip { public var tagain:SimpleButton; public var solution:SimpleButton; public var moregames:SimpleButton; } }//package gogobee_fla
Section 113
//levelfd_310 (gogobee_fla.levelfd_310) package gogobee_fla { import flash.display.*; public dynamic class levelfd_310 extends MovieClip { public var moregames1:SimpleButton; public var tagain:SimpleButton; public var solution:SimpleButton; } }//package gogobee_fla
Section 114
//levels_209 (gogobee_fla.levels_209) package gogobee_fla { import flash.display.*; import flash.text.*; public dynamic class levels_209 extends MovieClip { public var scorelevel18:TextField; public var nextlevels:SimpleButton; public var timelevel2:TextField; public var timelevel3:TextField; public var timelevel5:TextField; public var timelevel6:TextField; public var timelevel8:TextField; public var scorelevel5:TextField; public var scorelevel6:TextField; public var scorelevel7:TextField; public var scorelevel8:TextField; public var scorelevel9:TextField; public var scorelevel3:TextField; public var timelevel4:TextField; public var timelevel1:TextField; public var scorelevel1:TextField; public var timelevel7:TextField; public var scorelevel4:TextField; public var level10:MovieClip; public var level11:MovieClip; public var level12:MovieClip; public var level13:MovieClip; public var level15:MovieClip; public var level16:MovieClip; public var level18:MovieClip; public var level19:MovieClip; public var level17:MovieClip; public var timelevel9:TextField; public var level14:MovieClip; public var level21:MovieClip; public var level23:MovieClip; public var level24:MovieClip; public var level25:MovieClip; public var level20:MovieClip; public var level22:MovieClip; public var scorelevel2:TextField; public var level1:MovieClip; public var level2:MovieClip; public var level3:MovieClip; public var level4:MovieClip; public var level5:MovieClip; public var level6:MovieClip; public var level7:MovieClip; public var level9:MovieClip; public var timelevel10:TextField; public var timelevel12:TextField; public var timelevel13:TextField; public var timelevel14:TextField; public var timelevel15:TextField; public var timelevel16:TextField; public var timelevel17:TextField; public var timelevel18:TextField; public var timelevel19:TextField; public var level8:MovieClip; public var timelevel11:TextField; public var timelevel20:TextField; public var timelevel22:TextField; public var timelevel25:TextField; public var timelevel21:TextField; public var timelevel23:TextField; public var timelevel24:TextField; public var scorelevel10:TextField; public var prelevels:SimpleButton; public var scorelevel12:TextField; public var scorelevel13:TextField; public var scorelevel14:TextField; public var scorelevel15:TextField; public var scorelevel16:TextField; public var scorelevel17:TextField; public var scorelevel11:TextField; public var scorelevel19:TextField; public var scorelevel20:TextField; public var scorelevel21:TextField; public var scorelevel22:TextField; public var scorelevel23:TextField; public var scorelevel24:TextField; public var scorelevel25:TextField; } }//package gogobee_fla
Section 115
//levlselecc10_226 (gogobee_fla.levlselecc10_226) package gogobee_fla { import flash.display.*; public dynamic class levlselecc10_226 extends MovieClip { public function levlselecc10_226(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 116
//levlselecc11_228 (gogobee_fla.levlselecc11_228) package gogobee_fla { import flash.display.*; public dynamic class levlselecc11_228 extends MovieClip { public function levlselecc11_228(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 117
//levlselecc12_230 (gogobee_fla.levlselecc12_230) package gogobee_fla { import flash.display.*; public dynamic class levlselecc12_230 extends MovieClip { public function levlselecc12_230(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 118
//levlselecc13_232 (gogobee_fla.levlselecc13_232) package gogobee_fla { import flash.display.*; public dynamic class levlselecc13_232 extends MovieClip { public function levlselecc13_232(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 119
//levlselecc14_234 (gogobee_fla.levlselecc14_234) package gogobee_fla { import flash.display.*; public dynamic class levlselecc14_234 extends MovieClip { public function levlselecc14_234(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 120
//levlselecc15_236 (gogobee_fla.levlselecc15_236) package gogobee_fla { import flash.display.*; public dynamic class levlselecc15_236 extends MovieClip { public function levlselecc15_236(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 121
//levlselecc16_238 (gogobee_fla.levlselecc16_238) package gogobee_fla { import flash.display.*; public dynamic class levlselecc16_238 extends MovieClip { public function levlselecc16_238(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 122
//levlselecc17_240 (gogobee_fla.levlselecc17_240) package gogobee_fla { import flash.display.*; public dynamic class levlselecc17_240 extends MovieClip { public function levlselecc17_240(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 123
//levlselecc18_242 (gogobee_fla.levlselecc18_242) package gogobee_fla { import flash.display.*; public dynamic class levlselecc18_242 extends MovieClip { public function levlselecc18_242(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 124
//levlselecc19_244 (gogobee_fla.levlselecc19_244) package gogobee_fla { import flash.display.*; public dynamic class levlselecc19_244 extends MovieClip { public function levlselecc19_244(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 125
//levlselecc20_246 (gogobee_fla.levlselecc20_246) package gogobee_fla { import flash.display.*; public dynamic class levlselecc20_246 extends MovieClip { public function levlselecc20_246(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 126
//levlselecc21_248 (gogobee_fla.levlselecc21_248) package gogobee_fla { import flash.display.*; public dynamic class levlselecc21_248 extends MovieClip { public function levlselecc21_248(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 127
//levlselecc22_250 (gogobee_fla.levlselecc22_250) package gogobee_fla { import flash.display.*; public dynamic class levlselecc22_250 extends MovieClip { public function levlselecc22_250(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 128
//levlselecc23_252 (gogobee_fla.levlselecc23_252) package gogobee_fla { import flash.display.*; public dynamic class levlselecc23_252 extends MovieClip { public function levlselecc23_252(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 129
//levlselecc24_254 (gogobee_fla.levlselecc24_254) package gogobee_fla { import flash.display.*; public dynamic class levlselecc24_254 extends MovieClip { public function levlselecc24_254(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 130
//levlselecc25_256 (gogobee_fla.levlselecc25_256) package gogobee_fla { import flash.display.*; public dynamic class levlselecc25_256 extends MovieClip { public function levlselecc25_256(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 131
//levlselecc26_258 (gogobee_fla.levlselecc26_258) package gogobee_fla { import flash.display.*; public dynamic class levlselecc26_258 extends MovieClip { public function levlselecc26_258(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 132
//levlselecc27_260 (gogobee_fla.levlselecc27_260) package gogobee_fla { import flash.display.*; public dynamic class levlselecc27_260 extends MovieClip { public function levlselecc27_260(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 133
//levlselecc3_211 (gogobee_fla.levlselecc3_211) package gogobee_fla { import flash.display.*; public dynamic class levlselecc3_211 extends MovieClip { public function levlselecc3_211(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 134
//levlselecc4_214 (gogobee_fla.levlselecc4_214) package gogobee_fla { import flash.display.*; public dynamic class levlselecc4_214 extends MovieClip { public function levlselecc4_214(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 135
//levlselecc5_216 (gogobee_fla.levlselecc5_216) package gogobee_fla { import flash.display.*; public dynamic class levlselecc5_216 extends MovieClip { public function levlselecc5_216(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 136
//levlselecc6_218 (gogobee_fla.levlselecc6_218) package gogobee_fla { import flash.display.*; public dynamic class levlselecc6_218 extends MovieClip { public function levlselecc6_218(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 137
//levlselecc7_220 (gogobee_fla.levlselecc7_220) package gogobee_fla { import flash.display.*; public dynamic class levlselecc7_220 extends MovieClip { public function levlselecc7_220(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 138
//levlselecc8_222 (gogobee_fla.levlselecc8_222) package gogobee_fla { import flash.display.*; public dynamic class levlselecc8_222 extends MovieClip { public function levlselecc8_222(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 139
//levlselecc9_224 (gogobee_fla.levlselecc9_224) package gogobee_fla { import flash.display.*; public dynamic class levlselecc9_224 extends MovieClip { public function levlselecc9_224(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 140
//loadgame_189 (gogobee_fla.loadgame_189) package gogobee_fla { import flash.display.*; public dynamic class loadgame_189 extends MovieClip { public var Playgame:SimpleButton; public function loadgame_189(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 141
//MainTimeline (gogobee_fla.MainTimeline) package gogobee_fla { import fl.controls.*; import flash.display.*; import flash.geom.*; import flash.events.*; import flash.filters.*; import fl.data.*; import flash.text.*; import flash.utils.*; import flash.media.*; import flash.net.*; import flash.ui.*; import flash.errors.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var bar:MovieClip; public var nameText:TextField; public var so:SharedObject; public var Inst:SimpleButton; public var moreGames:SimpleButton; public var gamestatus:MovieClip; public var score:int; public var contestMenu:ContextMenu; public var percentage:Number; public var fr:TextField; public var msg1:MovieClip; public var back:SimpleButton; public var tutmc:MovieClip; public var total_txt:TextField; public var dp1:DataProvider; public var cn1:Number; public var congplayagain:SimpleButton; public var cont:SimpleButton; public var scoreText1:TextField; public var Playgame:SimpleButton; public var submitScore:SimpleButton; public var load_txt:TextField; public var contextmenuItem:ContextMenuItem; public var mem:TextField; public var loadgame:MovieClip; public var logo1:SimpleButton; public var a1:ComboBox; public var arr1; public function MainTimeline(){ addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50); } public function msgHide1(_arg1:MouseEvent){ a1.alpha = 1; a1.enabled = true; msg1.visible = false; } public function gotoBee(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.123bee.com/"), "_blank"); moreGames.removeEventListener(MouseEvent.CLICK, gotoBee); } function frame10(){ stop(); Playgame.addEventListener(MouseEvent.CLICK, playgfn); Inst.addEventListener(MouseEvent.CLICK, instpfn); so = SharedObject.getLocal("gogobee"); if (so.data.tLevel != undefined){ MyVar.LevelFinished = so.data.tLevel; trace(MyVar.LevelFinished); MyVar.myArray = so.data.gogobeearr; MyVar.myTime = so.data.gogobeetime; loadgame.gotoAndStop(2); loadgame.addEventListener(MouseEvent.CLICK, loadgamefn); }; } function frame20(){ stop(); back.addEventListener(MouseEvent.CLICK, backfun); } function frame30(){ stop(); MochiBot.track(this, "00357372"); } function frame1(){ stop(); contestMenu = new ContextMenu(); contestMenu.hideBuiltInItems(); contextmenuItem = new ContextMenuItem("www.123bee.com"); contextmenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, Site); contestMenu.customItems.push(contextmenuItem); this.contextMenu = contestMenu; percentage = 0; total_txt.text = (String(100) + "%"); stage.addEventListener(Event.ENTER_FRAME, BeeMoving); logo1.addEventListener(MouseEvent.CLICK, gotoBee1231); } public function loadgamefn(_arg1:MouseEvent):void{ loadgame.removeEventListener(MouseEvent.CLICK, loadgamefn); gotoAndStop("gamepage"); } function frame40(){ stop(); if (MyVar.CkCong){ gamestatus.gotoAndStop(2); }; score = MyVar.gameScore; scoreText1.text = score.toString(); dp1 = new DataProvider(); congplayagain.addEventListener(MouseEvent.CLICK, nextplayfun); stop(); scoreText1.mouseEnabled = false; cn1 = 0; arr1 = new Array("Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Darussalam", "Bulgaria", "Burkina", "Faso", "Burma (Myanmar)", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape", "Verde", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo", "Costa Rica", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "East", "Timor", "Egypt", "Salvador", "England", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Great Britain", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea (North)", "Korea (South)", "Kosovo", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Northern Ireland", "Oman", "Pakistan", "Palau", "Palestinian", "Panama", "Papua new Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Nevis", "Lucia Vincent", "Arabia", "Scotland", "Senegal", "Serbia", "Seychelles", "Sierra", "Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad", "Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican", "Venezuela", "Vietnam", "Western Sahara*", "Wales", "Yemen", "Zaire", "Zambia", "Zimbabwe"); arr1 = arr1.sort(); dp1.addItem({label:"All Countries"}); cn1 = 0; while (cn1 < arr1.length) { dp1.addItem({label:arr1[cn1]}); cn1++; }; a1 = new ComboBox(); a1.x = 590; a1.y = 260; a1.width = 115; a1.height = 30; a1.dataProvider = dp1; addChild(a1); moreGames.addEventListener(MouseEvent.CLICK, gotoBee); nameText.text = ""; nameText.restrict = "a-z A-Z 0-9\\ ."; nameText.maxChars = 12; msg1.visible = false; submitScore.addEventListener(MouseEvent.CLICK, submitMyScore); msg1.okBtn.addEventListener(MouseEvent.CLICK, msgHide1); } function frame50(){ cont.addEventListener(MouseEvent.CLICK, contfn); } public function gotoBee1231(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.123bee.com"), "_blank"); } public function submitMyScore(_arg1:MouseEvent):void{ if (((!((nameText.text == ""))) && (!((a1.selectedItem.label == "All Countries"))))){ _arg1.target.mouseEnabled = false; ScoreSubmit.sendMyScore(nameText.text, String(a1.selectedItem.label), score, 12466, "http://www.123bee.com", (MyVar.LevelFinished + "/25")); submitScore.removeEventListener(MouseEvent.CLICK, submitMyScore); congplayagain.removeEventListener(MouseEvent.CLICK, nextplayfun); reset(); } else { a1.alpha = 0.2; a1.enabled = false; msg1.visible = true; msg1.x = 516.8; msg1.y = 280; trace(nameText.text); if (nameText.text == ""){ msg1.tex.text = "Enter your name"; } else { if (a1.selectedItem.label == "All Countries"){ msg1.tex.text = "Select your country"; }; }; }; } public function backfun(_arg1:MouseEvent):void{ gotoAndStop("start"); } public function reset():void{ a1.removeAll(); a1.editable = false; a1.parent.removeChild(a1); so.clear(); MyVar.soundPlayed = false; MyVar.soundToggle = true; MyVar.soundCount = 0; MyVar.allow1 = false; MyVar.allow = false; MyVar.gcount = 0; MyVar.myArray = new Array(); MyVar.myTime = new Array(); gotoAndStop("start"); } public function BeeMoving(_arg1:Event):void{ var _local2:Number; var _local3:Number; _local2 = loaderInfo.bytesLoaded; _local3 = loaderInfo.bytesTotal; percentage = Math.round(((_local2 / _local3) * 100)); load_txt.text = (String(percentage) + "%"); bar.maskbar.gotoAndStop(percentage); if (_local2 == _local3){ gotoAndStop("start"); stage.removeEventListener(Event.ENTER_FRAME, BeeMoving); }; } public function instpfn(_arg1:MouseEvent):void{ gotoAndStop("inst"); } public function Site(_arg1:Event):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.123bee.com"); navigateToURL(_local2, "_blank"); } public function nextplayfun(_arg1:MouseEvent):void{ a1.removeAll(); a1.editable = false; a1.parent.removeChild(a1); MyVar.gcount = 0; gotoAndStop("gamepage"); } public function contfn(_arg1:MouseEvent):void{ tutmc.stop(); gotoAndStop("gamepage"); } public function playgfn(_arg1:MouseEvent):void{ MyVar.LevelFinished = 1; MyVar.gameScore = 0; MyVar.myArray = new Array(); MyVar.myTime = new Array(); so.clear(); gotoAndStop("tut"); } } }//package gogobee_fla
Section 142
//msg5_355 (gogobee_fla.msg5_355) package gogobee_fla { import flash.display.*; import flash.text.*; public dynamic class msg5_355 extends MovieClip { public var tex:TextField; public var okBtn:SimpleButton; } }//package gogobee_fla
Section 143
//name172_170 (gogobee_fla.name172_170) package gogobee_fla { import flash.display.*; public dynamic class name172_170 extends MovieClip { public function name172_170(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 144
//name173_168 (gogobee_fla.name173_168) package gogobee_fla { import flash.display.*; public dynamic class name173_168 extends MovieClip { public var tras:MovieClip; public var maskbar:MovieClip; } }//package gogobee_fla
Section 145
//pan_294 (gogobee_fla.pan_294) package gogobee_fla { import flash.display.*; import flash.text.*; public dynamic class pan_294 extends MovieClip { public var TargetTxt:TextField; public var hidepanel:MovieClip; public var solutionLink:MovieClip; public var levelTxt:TextField; public var levelSelectMc:MovieClip; public var score:TextField; public var Pquit:MovieClip; public var logo:SimpleButton; public var Preset:MovieClip; } }//package gogobee_fla
Section 146
//stone05_329 (gogobee_fla.stone05_329) package gogobee_fla { import flash.display.*; public dynamic class stone05_329 extends MovieClip { public function stone05_329(){ addFrameScript(0, frame1, 25, frame26); } function frame1(){ stop(); } function frame26(){ stop(); } } }//package gogobee_fla
Section 147
//Symbol15_315 (gogobee_fla.Symbol15_315) package gogobee_fla { import flash.display.*; public dynamic class Symbol15_315 extends MovieClip { public function Symbol15_315(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package gogobee_fla
Section 148
//Symbol19_308 (gogobee_fla.Symbol19_308) package gogobee_fla { import flash.display.*; public dynamic class Symbol19_308 extends MovieClip { public var nextlevel:SimpleButton; public var quit:SimpleButton; public var moregames:SimpleButton; } }//package gogobee_fla
Section 149
//Back (gs.easing.Back) package gs.easing { public class Back { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2)); }; _arg1 = (_arg1 - 2); _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2)); } } }//package gs.easing
Section 150
//TweenEvent (gs.events.TweenEvent) package gs.events { import flash.events.*; public class TweenEvent extends Event { public var info:Object; public static const UPDATE:String = "update"; public static const START:String = "start"; public static const version:Number = 0.9; public static const COMPLETE:String = "complete"; public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); this.info = _arg2; } override public function clone():Event{ return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable)); } } }//package gs.events
Section 151
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin) package gs.plugins { import flash.display.*; import gs.*; public class AutoAlphaPlugin extends TweenPlugin { protected var _tweenVisible:Boolean; protected var _tween:TweenLite; protected var _visible:Boolean; protected var _target:Object; public static const VERSION:Number = 1; public static const API:Number = 1; public function AutoAlphaPlugin(){ this.propName = "autoAlpha"; this.overwriteProps = ["alpha", "visible"]; this.onComplete = onCompleteTween; } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); if (((!((_target.visible == true))) && (_tweenVisible))){ _target.visible = true; }; } public function onCompleteTween():void{ if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){ _target.visible = _visible; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _visible = Boolean(!((_arg2 == 0))); _tweenVisible = true; addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha"); return (true); } override public function killProps(_arg1:Object):void{ super.killProps(_arg1); _tweenVisible = !(Boolean(("visible" in _arg1))); } } }//package gs.plugins
Section 152
//BevelFilterPlugin (gs.plugins.BevelFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class BevelFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BevelFilterPlugin(){ this.propName = "bevelFilter"; this.overwriteProps = ["bevelFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BevelFilter; initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2)))); return (true); } } }//package gs.plugins
Section 153
//BezierPlugin (gs.plugins.BezierPlugin) package gs.plugins { import gs.*; import gs.utils.tween.*; public class BezierPlugin extends TweenPlugin { protected var _future:Object; protected var _orient:Boolean; protected var _orientData:Array; protected var _beziers:Object; protected var _target:Object; protected static const _RAD2DEG:Number = 57.2957795130823; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function BezierPlugin(){ _future = {}; super(); this.propName = "bezier"; this.overwriteProps = []; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:String; var _local4:Object; var _local5:Number; var _local6:uint; var _local7:Number; var _local8:int; var _local9:Object; var _local10:Boolean; var _local11:Number; var _local12:Number; var _local13:Array; var _local14:Number; if (_arg1 == 1){ for (_local3 in _beziers) { _local2 = (_beziers[_local3].length - 1); _target[_local3] = _beziers[_local3][_local2][2]; }; } else { for (_local3 in _beziers) { _local6 = _beziers[_local3].length; if (_arg1 < 0){ _local2 = 0; } else { if (_arg1 >= 1){ _local2 = (_local6 - 1); } else { _local2 = int((_local6 * _arg1)); }; }; _local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6); _local4 = _beziers[_local3][_local2]; if (this.round){ _local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); _local8 = ((_local7)<0) ? -1 : 1; _target[_local3] = ((((_local7 % 1) * _local8))>0.5) ? (int(_local7) + _local8) : int(_local7); } else { _target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); }; }; }; if (_orient){ _local9 = _target; _local10 = this.round; _target = _future; this.round = false; _orient = false; this.changeFactor = (_arg1 + 0.01); _target = _local9; this.round = _local10; _orient = true; _local2 = 0; while (_local2 < _orientData.length) { _local13 = _orientData[_local2]; _local14 = ((_local13[3]) || (0)); _local11 = (_future[_local13[0]] - _target[_local13[0]]); _local12 = (_future[_local13[1]] - _target[_local13[1]]); _target[_local13[2]] = ((Math.atan2(_local12, _local11) * _RAD2DEG) + _local14); _local2++; }; }; } protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{ var _local4:Object; var _local5:int; var _local6:String; _target = _arg1.target; if (_arg1.exposedVars.orientToBezier == true){ _orientData = [["x", "y", "rotation", 0]]; _orient = true; } else { if ((_arg1.exposedVars.orientToBezier is Array)){ _orientData = _arg1.exposedVars.orientToBezier; _orient = true; }; }; _local4 = {}; _local5 = 0; while (_local5 < _arg2.length) { for (_local6 in _arg2[_local5]) { if (_local4[_local6] == undefined){ _local4[_local6] = [_arg1.target[_local6]]; }; if (typeof(_arg2[_local5][_local6]) == "number"){ _local4[_local6].push(_arg2[_local5][_local6]); } else { _local4[_local6].push((_arg1.target[_local6] + Number(_arg2[_local5][_local6]))); }; }; _local5++; }; for (_local6 in _local4) { this.overwriteProps[this.overwriteProps.length] = _local6; if (_arg1.exposedVars[_local6] != undefined){ if (typeof(_arg1.exposedVars[_local6]) == "number"){ _local4[_local6].push(_arg1.exposedVars[_local6]); } else { _local4[_local6].push((_arg1.target[_local6] + Number(_arg1.exposedVars[_local6]))); }; delete _arg1.exposedVars[_local6]; _local5 = (_arg1.tweens.length - 1); while (_local5 > -1) { if (_arg1.tweens[_local5].name == _local6){ _arg1.tweens.splice(_local5, 1); }; _local5--; }; }; }; _beziers = parseBeziers(_local4, _arg3); } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), false); return (true); } override public function killProps(_arg1:Object):void{ var _local2:String; for (_local2 in _beziers) { if ((_local2 in _arg1)){ delete _beziers[_local2]; }; }; super.killProps(_arg1); } public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{ var _local3:int; var _local4:Array; var _local5:Object; var _local6:String; var _local7:Object; _local7 = {}; if (_arg2){ for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 2){ _local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]]; _local3 = 1; while (_local3 < (_local4.length - 1)) { _local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]]; _local3++; }; } else { _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; } else { for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 3){ _local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)]; _local3 = 2; while (_local3 < (_local4.length - 2)) { _local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)]; _local3++; }; _local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]]; } else { if (_local4.length == 3){ _local5[_local5.length] = [_local4[0], _local4[1], _local4[2]]; } else { if (_local4.length == 2){ _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; }; }; }; return (_local7); } } }//package gs.plugins
Section 154
//BezierThroughPlugin (gs.plugins.BezierThroughPlugin) package gs.plugins { import gs.*; public class BezierThroughPlugin extends BezierPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BezierThroughPlugin(){ this.propName = "bezierThrough"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), true); return (true); } } }//package gs.plugins
Section 155
//BlurFilterPlugin (gs.plugins.BlurFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class BlurFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BlurFilterPlugin(){ this.propName = "blurFilter"; this.overwriteProps = ["blurFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BlurFilter; initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2)))); return (true); } } }//package gs.plugins
Section 156
//ColorMatrixFilterPlugin (gs.plugins.ColorMatrixFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class ColorMatrixFilterPlugin extends FilterPlugin { protected var _matrix:Array; protected var _matrixTween:EndArrayPlugin; public static const API:Number = 1; public static const VERSION:Number = 1.01; protected static var _lumG:Number = 0.71516; protected static var _lumR:Number = 0.212671; protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; protected static var _lumB:Number = 0.072169; public function ColorMatrixFilterPlugin(){ this.propName = "colorMatrixFilter"; this.overwriteProps = ["colorMatrixFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:Object; var _local5:Array; _target = _arg1; _type = ColorMatrixFilter; _local4 = _arg2; initFilter({}, new ColorMatrixFilter(_idMatrix.slice())); _matrix = ColorMatrixFilter(_filter).matrix; _local5 = []; if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){ _local5 = _local4.matrix; } else { if (_local4.relative == true){ _local5 = _matrix.slice(); } else { _local5 = _idMatrix.slice(); }; _local5 = setBrightness(_local5, _local4.brightness); _local5 = setContrast(_local5, _local4.contrast); _local5 = setHue(_local5, _local4.hue); _local5 = setSaturation(_local5, _local4.saturation); _local5 = setThreshold(_local5, _local4.threshold); if (!isNaN(_local4.colorize)){ _local5 = colorize(_local5, _local4.colorize, _local4.amount); }; }; _matrixTween = new EndArrayPlugin(); _matrixTween.init(_matrix, _local5); return (true); } override public function set changeFactor(_arg1:Number):void{ _matrixTween.changeFactor = _arg1; ColorMatrixFilter(_filter).matrix = _matrix; super.changeFactor = _arg1; } public static function setSaturation(_arg1:Array, _arg2:Number):Array{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Array; if (isNaN(_arg2)){ return (_arg1); }; _local3 = (1 - _arg2); _local4 = (_local3 * _lumR); _local5 = (_local3 * _lumG); _local6 = (_local3 * _lumB); _local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local7, _arg1)); } public static function setHue(_arg1:Array, _arg2:Number):Array{ var _local3:Number; var _local4:Number; var _local5:Array; if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 * (Math.PI / 180)); _local3 = Math.cos(_arg2); _local4 = Math.sin(_arg2); _local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return (applyMatrix(_local5, _arg1)); } public static function setThreshold(_arg1:Array, _arg2:Number):Array{ var _local3:Array; if (isNaN(_arg2)){ return (_arg1); }; _local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function applyMatrix(_arg1:Array, _arg2:Array):Array{ var _local3:Array; var _local4:int; var _local5:int; var _local6:int; var _local7:int; if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (_arg2); }; _local3 = []; _local4 = 0; _local5 = 0; _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 5) { if (_local7 == 4){ _local5 = _arg1[(_local4 + 4)]; } else { _local5 = 0; }; _local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5); _local7++; }; _local4 = (_local4 + 5); _local6++; }; return (_local3); } public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Array; if (isNaN(_arg2)){ return (_arg1); }; if (isNaN(_arg3)){ _arg3 = 1; }; _local4 = (((_arg2 >> 16) & 0xFF) / 0xFF); _local5 = (((_arg2 >> 8) & 0xFF) / 0xFF); _local6 = ((_arg2 & 0xFF) / 0xFF); _local7 = (1 - _arg3); _local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local8, _arg1)); } public static function setBrightness(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = ((_arg2 * 100) - 100); return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1)); } public static function setContrast(_arg1:Array, _arg2:Number):Array{ var _local3:Array; if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 + 0.01); _local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } } }//package gs.plugins
Section 157
//DropShadowFilterPlugin (gs.plugins.DropShadowFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class DropShadowFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function DropShadowFilterPlugin(){ this.propName = "dropShadowFilter"; this.overwriteProps = ["dropShadowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = DropShadowFilter; initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject)); return (true); } } }//package gs.plugins
Section 158
//EndArrayPlugin (gs.plugins.EndArrayPlugin) package gs.plugins { import gs.*; import gs.utils.tween.*; public class EndArrayPlugin extends TweenPlugin { protected var _info:Array; protected var _a:Array; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function EndArrayPlugin(){ _info = []; super(); this.propName = "endArray"; this.overwriteProps = ["endArray"]; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:ArrayTweenInfo; var _local4:Number; var _local5:int; if (this.round){ _local2 = (_info.length - 1); while (_local2 > -1) { _local3 = _info[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local5 = ((_local4)<0) ? -1 : 1; _a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4); _local2--; }; } else { _local2 = (_info.length - 1); while (_local2 > -1) { _local3 = _info[_local2]; _a[_local3.index] = (_local3.start + (_local3.change * _arg1)); _local2--; }; }; } public function init(_arg1:Array, _arg2:Array):void{ var _local3:int; _a = _arg1; _local3 = (_arg2.length - 1); while (_local3 > -1) { if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){ _info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3])); }; _local3--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (false); }; init((_arg1 as Array), _arg2); return (true); } } }//package gs.plugins
Section 159
//FilterPlugin (gs.plugins.FilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; import gs.utils.tween.*; public class FilterPlugin extends TweenPlugin { protected var _index:int; protected var _filter:BitmapFilter; protected var _type:Class; protected var _remove:Boolean; protected var _target:Object; public static const VERSION:Number = 1.03; public static const API:Number = 1; override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:TweenInfo; var _local4:Array; _local4 = _target.filters; _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); _local2--; }; if (!(_local4[_index] is _type)){ _index = (_local4.length - 1); _local2 = (_local4.length - 1); while (_local2 > -1) { if ((_local4[_local2] is _type)){ _index = _local2; break; }; _local2--; }; }; _local4[_index] = _filter; _target.filters = _local4; } public function onCompleteTween():void{ var _local1:int; var _local2:Array; if (_remove){ _local2 = _target.filters; if (!(_local2[_index] is _type)){ _local1 = (_local2.length - 1); while (_local1 > -1) { if ((_local2[_local1] is _type)){ _local2.splice(_local1, 1); break; }; _local1--; }; } else { _local2.splice(_index, 1); }; _target.filters = _local2; }; } protected function initFilter(_arg1:Object, _arg2:BitmapFilter):void{ var _local3:Array; var _local4:String; var _local5:int; var _local6:HexColorsPlugin; var _local7:Object; _local3 = _target.filters; _index = -1; if (_arg1.index != null){ _index = _arg1.index; } else { _local5 = (_local3.length - 1); while (_local5 > -1) { if ((_local3[_local5] is _type)){ _index = _local5; break; }; _local5--; }; }; if ((((((_index == -1)) || ((_local3[_index] == null)))) || ((_arg1.addFilter == true)))){ _index = ((_arg1.index)!=null) ? _arg1.index : _local3.length; _local3[_index] = _arg2; _target.filters = _local3; }; _filter = _local3[_index]; _remove = Boolean((_arg1.remove == true)); if (_remove){ this.onComplete = onCompleteTween; }; _local7 = ((_arg1.isTV)==true) ? _arg1.exposedVars : _arg1; for (_local4 in _local7) { if (((((((((!((_local4 in _filter))) || ((_filter[_local4] == _local7[_local4])))) || ((_local4 == "remove")))) || ((_local4 == "index")))) || ((_local4 == "addFilter")))){ } else { if ((((((_local4 == "color")) || ((_local4 == "highlightColor")))) || ((_local4 == "shadowColor")))){ _local6 = new HexColorsPlugin(); _local6.initColor(_filter, _local4, _filter[_local4], _local7[_local4]); _tweens[_tweens.length] = new TweenInfo(_local6, "changeFactor", 0, 1, _local4, false); } else { if ((((((((_local4 == "quality")) || ((_local4 == "inner")))) || ((_local4 == "knockout")))) || ((_local4 == "hideObject")))){ _filter[_local4] = _local7[_local4]; } else { addTween(_filter, _local4, _filter[_local4], _local7[_local4], _local4); }; }; }; }; } } }//package gs.plugins
Section 160
//FramePlugin (gs.plugins.FramePlugin) package gs.plugins { import flash.display.*; import gs.*; public class FramePlugin extends TweenPlugin { public var frame:int; protected var _target:MovieClip; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function FramePlugin(){ this.propName = "frame"; this.overwriteProps = ["frame"]; this.round = true; } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.gotoAndStop(this.frame); } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; addTween(this, "frame", this.frame, _arg2, "frame"); return (true); } } }//package gs.plugins
Section 161
//GlowFilterPlugin (gs.plugins.GlowFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class GlowFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function GlowFilterPlugin(){ this.propName = "glowFilter"; this.overwriteProps = ["glowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = GlowFilter; initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout)); return (true); } } }//package gs.plugins
Section 162
//HexColorsPlugin (gs.plugins.HexColorsPlugin) package gs.plugins { import gs.*; public class HexColorsPlugin extends TweenPlugin { protected var _colors:Array; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function HexColorsPlugin(){ this.propName = "hexColors"; this.overwriteProps = []; _colors = []; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:Array; _local2 = (_colors.length - 1); while (_local2 > -1) { _local3 = _colors[_local2]; _local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7]))); _local2--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; for (_local4 in _arg2) { initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4])); }; return (true); } override public function killProps(_arg1:Object):void{ var _local2:int; _local2 = (_colors.length - 1); while (_local2 > -1) { if (_arg1[_colors[_local2][1]] != undefined){ _colors.splice(_local2, 1); }; _local2--; }; super.killProps(_arg1); } public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{ var _local5:Number; var _local6:Number; var _local7:Number; if (_arg3 != _arg4){ _local5 = (_arg3 >> 16); _local6 = ((_arg3 >> 8) & 0xFF); _local7 = (_arg3 & 0xFF); _colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)]; this.overwriteProps[this.overwriteProps.length] = _arg2; }; } } }//package gs.plugins
Section 163
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin) package gs.plugins { public class RemoveTintPlugin extends TintPlugin { public static const VERSION:Number = 1.01; public static const API:Number = 1; public function RemoveTintPlugin(){ this.propName = "removeTint"; } } }//package gs.plugins
Section 164
//RoundPropsPlugin (gs.plugins.RoundPropsPlugin) package gs.plugins { public class RoundPropsPlugin extends TweenPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function RoundPropsPlugin(){ this.propName = "roundProps"; this.overwriteProps = []; this.round = true; } public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package gs.plugins
Section 165
//ShortRotationPlugin (gs.plugins.ShortRotationPlugin) package gs.plugins { import gs.*; public class ShortRotationPlugin extends TweenPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function ShortRotationPlugin(){ this.propName = "shortRotation"; this.overwriteProps = []; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; if (typeof(_arg2) == "number"){ trace("WARNING: You appear to be using the old shortRotation syntax. Instead of passing a number, please pass an object with properties that correspond to the rotations values For example, TweenMax.to(mc, 2, {shortRotation:{rotationX:-170, rotationY:25}})"); return (false); }; for (_local4 in _arg2) { initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]); }; return (true); } public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ var _local5:Number; _local5 = ((_arg4 - _arg3) % 360); if (((_arg4 - _arg3) % 360) != (_local5 % 180)){ _local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360); }; addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package gs.plugins
Section 166
//TintPlugin (gs.plugins.TintPlugin) package gs.plugins { import flash.display.*; import flash.geom.*; import gs.*; import gs.utils.tween.*; public class TintPlugin extends TweenPlugin { protected var _ct:ColorTransform; protected var _ignoreAlpha:Boolean; protected var _target:DisplayObject; public static const VERSION:Number = 1.1; public static const API:Number = 1; protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"]; public function TintPlugin(){ this.propName = "tint"; this.overwriteProps = ["tint"]; } override public function set changeFactor(_arg1:Number):void{ var _local2:ColorTransform; updateTweens(_arg1); if (_ignoreAlpha){ _local2 = _target.transform.colorTransform; _ct.alphaMultiplier = _local2.alphaMultiplier; _ct.alphaOffset = _local2.alphaOffset; }; _target.transform.colorTransform = _ct; } public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{ var _local3:int; var _local4:String; _target = _arg1; _ct = _target.transform.colorTransform; _local3 = (_props.length - 1); while (_local3 > -1) { _local4 = _props[_local3]; if (_ct[_local4] != _arg2[_local4]){ _tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false); }; _local3--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:ColorTransform; if (!(_arg1 is DisplayObject)){ return (false); }; _local4 = new ColorTransform(); if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){ _local4.color = uint(_arg2); }; _ignoreAlpha = true; init((_arg1 as DisplayObject), _local4); return (true); } } }//package gs.plugins
Section 167
//TweenPlugin (gs.plugins.TweenPlugin) package gs.plugins { import gs.*; import gs.utils.tween.*; public class TweenPlugin { public var overwriteProps:Array; protected var _tweens:Array; public var round:Boolean; public var onComplete:Function; public var propName:String; protected var _changeFactor:Number;// = 0 public static const VERSION:Number = 1.03; public static const API:Number = 1; public function TweenPlugin(){ _tweens = []; _changeFactor = 0; super(); } protected function updateTweens(_arg1:Number):void{ var _local2:int; var _local3:TweenInfo; var _local4:Number; var _local5:int; if (this.round){ _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local5 = ((_local4)<0) ? -1 : 1; _local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4); _local2--; }; } else { _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); _local2--; }; }; } public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _changeFactor = _arg1; } protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{ var _local6:Number; if (_arg4 != null){ _local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4); if (_local6 != 0){ _tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false); }; }; } public function killProps(_arg1:Object):void{ var _local2:int; _local2 = (this.overwriteProps.length - 1); while (_local2 > -1) { if ((this.overwriteProps[_local2] in _arg1)){ this.overwriteProps.splice(_local2, 1); }; _local2--; }; _local2 = (_tweens.length - 1); while (_local2 > -1) { if ((_tweens[_local2].name in _arg1)){ _tweens.splice(_local2, 1); }; _local2--; }; } public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName); return (true); } public function get changeFactor():Number{ return (_changeFactor); } public static function activate(_arg1:Array):Boolean{ var _local2:int; var _local3:Object; _local2 = (_arg1.length - 1); while (_local2 > -1) { _local3 = new (_arg1[_local2]); TweenLite.plugins[_local3.propName] = _arg1[_local2]; _local2--; }; return (true); } } }//package gs.plugins
Section 168
//VisiblePlugin (gs.plugins.VisiblePlugin) package gs.plugins { import flash.display.*; import gs.*; public class VisiblePlugin extends TweenPlugin { protected var _tween:TweenLite; protected var _visible:Boolean; protected var _target:Object; public static const VERSION:Number = 1; public static const API:Number = 1; public function VisiblePlugin(){ this.propName = "visible"; this.overwriteProps = ["visible"]; this.onComplete = onCompleteTween; } override public function set changeFactor(_arg1:Number):void{ if (_target.visible != true){ _target.visible = true; }; } public function onCompleteTween():void{ if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){ _target.visible = _visible; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _visible = Boolean(_arg2); return (true); } } }//package gs.plugins
Section 169
//VolumePlugin (gs.plugins.VolumePlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.media.*; public class VolumePlugin extends TweenPlugin { protected var _st:SoundTransform; protected var _target:Object; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function VolumePlugin(){ this.propName = "volume"; this.overwriteProps = ["volume"]; } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.soundTransform = _st; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){ return (false); }; _target = _arg1; _st = _target.soundTransform; addTween(_st, "volume", _st.volume, _arg2, "volume"); return (true); } } }//package gs.plugins
Section 170
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo) package gs.utils.tween { public class ArrayTweenInfo { public var change:Number; public var index:uint; public var start:Number; public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){ this.index = _arg1; this.start = _arg2; this.change = _arg3; } } }//package gs.utils.tween
Section 171
//TweenInfo (gs.utils.tween.TweenInfo) package gs.utils.tween { public class TweenInfo { public var start:Number; public var name:String; public var change:Number; public var target:Object; public var property:String; public var isPlugin:Boolean; public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){ this.target = _arg1; this.property = _arg2; this.start = _arg3; this.change = _arg4; this.name = _arg5; this.isPlugin = _arg6; } } }//package gs.utils.tween
Section 172
//OverwriteManager (gs.OverwriteManager) package gs { import flash.utils.*; import gs.utils.tween.*; import flash.errors.*; public class OverwriteManager { public static const ALL:int = 1; public static const NONE:int = 0; public static const AUTO:int = 2; public static const CONCURRENT:int = 3; public static const version:Number = 3.12; public static var mode:int; public static var enabled:Boolean; public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array):void{ var _local4:int; var _local5:String; var _local6:TweenInfo; _local4 = (_arg3.length - 1); while (_local4 > -1) { _local6 = _arg3[_local4]; if ((_local6.name in _arg1)){ _arg3.splice(_local4, 1); } else { if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){ _local6.target.killProps(_arg1); if (_local6.target.overwriteProps.length == 0){ _arg3.splice(_local4, 1); }; }; }; _local4--; }; for (_local5 in _arg1) { delete _arg2[_local5]; }; } public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{ var _local3:Object; var _local4:int; var _local5:Number; var _local6:Array; var _local7:int; var _local8:TweenLite; var _local9:int; var _local10:Array; var _local11:Object; var _local12:int; var _local13:TweenInfo; var _local14:Array; _local3 = _arg1.vars; _local4 = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite); if ((((_local4 < 2)) || ((_arg2 == null)))){ return; }; _local5 = _arg1.startTime; _local6 = []; _local9 = -1; _local7 = (_arg2.length - 1); while (_local7 > -1) { _local8 = _arg2[_local7]; if (_local8 == _arg1){ _local9 = _local7; } else { if ((((((_local7 < _local9)) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){ _local6[_local6.length] = _local8; }; }; _local7--; }; if ((((_local6.length == 0)) || ((_arg1.tweens.length == 0)))){ return; }; if (_local4 == AUTO){ _local10 = _arg1.tweens; _local11 = {}; _local7 = (_local10.length - 1); while (_local7 > -1) { _local13 = _local10[_local7]; if (_local13.isPlugin){ if (_local13.name == "_MULTIPLE_"){ _local14 = _local13.target.overwriteProps; _local12 = (_local14.length - 1); while (_local12 > -1) { _local11[_local14[_local12]] = true; _local12--; }; } else { _local11[_local13.name] = true; }; _local11[_local13.target.propName] = true; } else { _local11[_local13.name] = true; }; _local7--; }; _local7 = (_local6.length - 1); while (_local7 > -1) { killVars(_local11, _local6[_local7].exposedVars, _local6[_local7].tweens); _local7--; }; } else { _local7 = (_local6.length - 1); while (_local7 > -1) { _local6[_local7].enabled = false; _local7--; }; }; } public static function init(_arg1:int=2):int{ if (TweenLite.version < 10.09){ trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com."); }; TweenLite.overwriteManager = OverwriteManager; mode = _arg1; enabled = true; return (mode); } } }//package gs
Section 173
//TweenLite (gs.TweenLite) package gs { import flash.display.*; import flash.events.*; import flash.utils.*; import gs.utils.tween.*; import gs.plugins.*; public class TweenLite { public var delay:Number; protected var _hasUpdate:Boolean; protected var _hasPlugins:Boolean; public var started:Boolean; public var initted:Boolean; public var active:Boolean; public var startTime:Number; public var target:Object; public var duration:Number; public var gc:Boolean; public var vars:Object; public var ease:Function; public var tweens:Array; public var exposedVars:Object; public var combinedTimeScale:Number; public var initTime:Number; public static const version:Number = 10.09; private static var _timer:Timer = new Timer(2000); public static var defaultEase:Function = TweenLite.easeOut; public static var plugins:Object = {}; public static var currentTime:uint; public static var masterList:Dictionary = new Dictionary(false); protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1}; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public static var timingSprite:Sprite = new Sprite(); public static var overwriteManager:Object; private static var _tlInitted:Boolean; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local4:int; super(); if (_arg1 == null){ return; }; if (!_tlInitted){ TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]); currentTime = getTimer(); timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; _timer.addEventListener("timer", killGarbage, false, 0, true); _timer.start(); _tlInitted = true; }; this.vars = _arg3; this.duration = ((_arg2) || (0.001)); this.delay = ((_arg3.delay) || (0)); this.combinedTimeScale = ((_arg3.timeScale) || (1)); this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0)))); this.target = _arg1; if (typeof(this.vars.ease) != "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; this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars; this.tweens = []; 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 (((!((_arg1 in masterList))) || ((_local4 == 1)))){ masterList[_arg1] = [this]; } else { masterList[_arg1].push(this); }; if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){ initTweenVals(); if (this.active){ render((this.startTime + 1)); } else { render(this.startTime); }; if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){ this.target.visible = this.exposedVars.visible; }; }; } public function set enabled(_arg1:Boolean):void{ var _local2:Array; var _local3:Boolean; var _local4:int; if (_arg1){ if (!(this.target in masterList)){ 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){ _local2[_local2.length] = this; }; }; }; this.gc = (_arg1) ? false : true; if (this.gc){ this.active = false; } else { this.active = this.started; }; } public function clear():void{ this.tweens = []; this.vars = (this.exposedVars = {ease:this.vars.ease}); _hasUpdate = false; } public function render(_arg1:uint):void{ var _local2:Number; var _local3:Number; var _local4:TweenInfo; var _local5:int; _local2 = ((_arg1 - this.startTime) * 0.001); 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.target[_local4.property] = (_local4.start + (_local3 * _local4.change)); _local5--; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } public function activate():void{ this.started = (this.active = 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); }; } public function get enabled():Boolean{ return ((this.gc) ? false : true); } public function initTweenVals():void{ var _local1:String; var _local2:int; var _local3:*; var _local4:TweenInfo; if (((!((this.exposedVars.timeScale == undefined))) && ((this.target is TweenLite)))){ this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false); }; for (_local1 in this.exposedVars) { if ((_local1 in _reservedProps)){ } else { if ((_local1 in plugins)){ _local3 = new (plugins[_local1]); if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){ this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false); } else { this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true); _hasPlugins = true; }; } else { this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false); }; }; }; if (this.vars.runBackwards == true){ _local2 = (this.tweens.length - 1); while (_local2 > -1) { _local4 = this.tweens[_local2]; this.tweens[_local2].start = (_local4.start + _local4.change); _local4.change = -(_local4.change); _local2--; }; }; if (this.vars.onUpdate != null){ _hasUpdate = true; }; if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){ overwriteManager.manageOverwrites(this, masterList[this.target]); }; this.initted = 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 killVars(_arg1:Object):void{ if (overwriteManager.enabled){ overwriteManager.killVars(_arg1, this.exposedVars, this.tweens); }; } public function complete(_arg1:Boolean=false):void{ var _local2:int; if (!_arg1){ if (!this.initted){ initTweenVals(); }; this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale)); render(currentTime); return; }; if (_hasPlugins){ _local2 = (this.tweens.length - 1); while (_local2 > -1) { if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){ this.tweens[_local2].target.onComplete(); }; _local2--; }; }; if (this.vars.persist != true){ this.enabled = false; }; if (this.vars.onComplete != null){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); }; } public static function updateAll(_arg1:Event=null):void{ var _local2:uint; var _local3:Dictionary; var _local4:Array; var _local5:int; var _local6:TweenLite; _local2 = (currentTime = getTimer()); _local3 = masterList; for each (_local4 in _local3) { _local5 = (_local4.length - 1); while (_local5 > -1) { _local6 = _local4[_local5]; if (_local6.active){ _local6.render(_local2); } else { if (_local6.gc){ _local4.splice(_local5, 1); } else { if (_local2 >= _local6.startTime){ _local6.activate(); _local6.render(_local2); }; }; }; _local5--; }; }; } public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{ if (_arg1 != null){ if (_arg2){ _arg1.clear(); }; _arg1.enabled = false; }; } public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{ var _local3:Array; var _local4:int; var _local5:TweenLite; if (((!((_arg1 == null))) && ((_arg1 in masterList)))){ _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 from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } protected static function killGarbage(_arg1:TimerEvent):void{ var _local2:Dictionary; var _local3:Object; _local2 = masterList; for (_local3 in _local2) { if (_local2[_local3].length == 0){ delete _local2[_local3]; }; }; } 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 to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package gs
Section 174
//TweenMax (gs.TweenMax) package gs { import flash.events.*; import flash.utils.*; import gs.utils.tween.*; import gs.plugins.*; import gs.events.*; public class TweenMax extends TweenLite implements IEventDispatcher { protected var _dispatcher:EventDispatcher; protected var _callbacks:Object; public var pauseTime:Number; protected var _repeatCount:Number; protected var _timeScale:Number; public static const version:Number = 10.1; public static var removeTween:Function = TweenLite.removeTween; private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(); ; protected static var _pausedTweens:Dictionary = new Dictionary(false); protected static var _globalTimeScale:Number = 1; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _activatedPlugins:Boolean = TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin, HexColorsPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, BevelFilterPlugin, DropShadowFilterPlugin, GlowFilterPlugin, RoundPropsPlugin, BezierPlugin, BezierThroughPlugin, ShortRotationPlugin]); public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); if (TweenLite.version < 10.09){ trace("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com."); }; if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenMax)))){ _timeScale = 1; this.combinedTimeScale = _globalTimeScale; } else { _timeScale = this.combinedTimeScale; this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale); }; if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){ this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale))); }; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ initDispatcher(); if ((((_arg2 == 0)) && ((this.delay == 0)))){ onUpdateDispatcher(); onCompleteDispatcher(); }; }; _repeatCount = 0; if (((!(isNaN(this.vars.yoyo))) || (!(isNaN(this.vars.loop))))){ this.vars.persist = true; }; if ((((this.delay == 0)) && (!((this.exposedVars.startAt == null))))){ this.exposedVars.startAt.overwrite = 0; new TweenMax(this.target, 0, this.exposedVars.startAt); }; } override public function set enabled(_arg1:Boolean):void{ if (!_arg1){ _pausedTweens[this] = null; delete _pausedTweens[this]; }; super.enabled = _arg1; if (_arg1){ this.combinedTimeScale = (_timeScale * _globalTimeScale); }; } public function set reversed(_arg1:Boolean):void{ if (this.reversed != _arg1){ reverse(); }; } override public function render(_arg1:uint):void{ var _local2:Number; var _local3:Number; var _local4:TweenInfo; var _local5:int; _local2 = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale); 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.target[_local4.property] = (_local4.start + (_local3 * _local4.change)); _local5--; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } protected function adjustStartValues():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:TweenInfo; var _local6:int; _local1 = this.progress; if (_local1 != 0){ _local2 = this.ease(_local1, 0, 1, 1); _local3 = (1 / (1 - _local2)); _local6 = (this.tweens.length - 1); while (_local6 > -1) { _local5 = this.tweens[_local6]; _local4 = (_local5.start + _local5.change); if (_local5.isPlugin){ _local5.change = ((_local4 - _local2) * _local3); } else { _local5.change = ((_local4 - _local5.target[_local5.property]) * _local3); }; _local5.start = (_local4 - _local5.change); _local6--; }; }; } public function get timeScale():Number{ return (_timeScale); } public function restart(_arg1:Boolean=false):void{ if (_arg1){ this.initTime = currentTime; this.startTime = (currentTime + (this.delay * (1000 / this.combinedTimeScale))); } else { this.startTime = currentTime; this.initTime = (currentTime - (this.delay * (1000 / this.combinedTimeScale))); }; _repeatCount = 0; if (this.target != this.vars.onComplete){ render(this.startTime); }; this.pauseTime = NaN; _pausedTweens[this] = null; delete _pausedTweens[this]; this.enabled = true; } public function get paused():Boolean{ return (!(isNaN(this.pauseTime))); } public function killProperties(_arg1:Array):void{ var _local2:Object; var _local3:int; _local2 = {}; _local3 = (_arg1.length - 1); while (_local3 > -1) { _local2[_arg1[_local3]] = true; _local3--; }; killVars(_local2); } public function resume():void{ this.enabled = true; if (!isNaN(this.pauseTime)){ this.initTime = (this.initTime + (currentTime - this.pauseTime)); this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale))); this.pauseTime = NaN; if (((!(this.started)) && ((currentTime >= this.startTime)))){ activate(); } else { this.active = this.started; }; _pausedTweens[this] = null; delete _pausedTweens[this]; }; } override public function complete(_arg1:Boolean=false):void{ if (((((!(isNaN(this.vars.yoyo))) && ((((_repeatCount < this.vars.yoyo)) || ((this.vars.yoyo == 0)))))) || (((!(isNaN(this.vars.loop))) && ((((_repeatCount < this.vars.loop)) || ((this.vars.loop == 0)))))))){ _repeatCount++; if (!isNaN(this.vars.yoyo)){ this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease; }; this.startTime = (_arg1) ? (this.startTime + (this.duration * (1000 / this.combinedTimeScale))) : currentTime; this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); } else { if (this.vars.persist == true){ pause(); }; }; super.complete(_arg1); } public function invalidate(_arg1:Boolean=true):void{ var _local2:Number; if (this.initted){ _local2 = this.progress; if (((!(_arg1)) && (!((_local2 == 0))))){ this.progress = 0; }; this.tweens = []; _hasPlugins = false; this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars; initTweenVals(); _timeScale = ((this.vars.timeScale) || (1)); this.combinedTimeScale = (_timeScale * _globalTimeScale); this.delay = ((this.vars.delay) || (0)); if (isNaN(this.pauseTime)){ this.startTime = (this.initTime + ((this.delay * 1000) / this.combinedTimeScale)); }; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ if (_dispatcher != null){ this.vars.onStart = _callbacks.onStart; this.vars.onUpdate = _callbacks.onUpdate; this.vars.onComplete = _callbacks.onComplete; _dispatcher = null; }; initDispatcher(); }; if (_local2 != 0){ if (_arg1){ adjustStartValues(); } else { this.progress = _local2; }; }; }; } public function get progress():Number{ var _local1:Number; var _local2:Number; _local1 = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime; _local2 = (((((_local1 - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale); if (_local2 > 1){ return (1); }; if (_local2 < 0){ return (0); }; return (_local2); } public function willTrigger(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.willTrigger(_arg1)); } public function dispatchEvent(_arg1:Event):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.dispatchEvent(_arg1)); } public function get reversed():Boolean{ return ((this.ease == reverseEase)); } protected function onStartDispatcher(... _args):void{ if (_callbacks.onStart != null){ _callbacks.onStart.apply(null, this.vars.onStartParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); } public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{ var _local4:Number; var _local5:int; var _local6:TweenInfo; var _local7:Object; var _local8:Object; var _local9:Array; var _local10:Boolean; var _local11:Array; var _local12:Object; _local4 = this.progress; if (this.initted){ if (!_arg3){ _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local6 = this.tweens[_local5]; if (_local6.name == _arg1){ _local6.target[_local6.property] = _local6.start; }; _local5--; }; }; _local7 = this.vars; _local8 = this.exposedVars; _local9 = this.tweens; _local10 = _hasPlugins; this.tweens = []; this.vars = (this.exposedVars = {}); this.vars[_arg1] = _arg2; initTweenVals(); if (((!((this.ease == reverseEase))) && ((_local7.ease is Function)))){ this.ease = _local7.ease; }; if (((_arg3) && (!((_local4 == 0))))){ adjustStartValues(); }; _local11 = this.tweens; this.vars = _local7; this.exposedVars = _local8; this.tweens = _local9; _local12 = {}; _local12[_arg1] = true; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local6 = this.tweens[_local5]; if (_local6.name == _arg1){ this.tweens.splice(_local5, 1); } else { if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){ _local6.target.killProps(_local12); if (_local6.target.overwriteProps.length == 0){ this.tweens.splice(_local5, 1); }; }; }; _local5--; }; this.tweens = this.tweens.concat(_local11); _hasPlugins = Boolean(((_local10) || (_hasPlugins))); }; this.vars[_arg1] = (this.exposedVars[_arg1] = _arg2); } public function set timeScale(_arg1:Number):void{ if (_arg1 < 1E-5){ _arg1 = (_timeScale = 1E-5); } else { _timeScale = _arg1; _arg1 = (_arg1 * _globalTimeScale); }; this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1))); if (this.startTime != 999999999999999){ this.startTime = (this.initTime + (this.delay * (1000 / _arg1))); }; this.combinedTimeScale = _arg1; } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher != null){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } override public function initTweenVals():void{ var _local1:int; var _local2:int; var _local3:String; var _local4:String; var _local5:Array; var _local6:Object; var _local7:TweenInfo; if (((!((this.exposedVars.startAt == null))) && (!((this.delay == 0))))){ this.exposedVars.startAt.overwrite = 0; new TweenMax(this.target, 0, this.exposedVars.startAt); }; super.initTweenVals(); if ((((this.exposedVars.roundProps is Array)) && (!((TweenLite.plugins.roundProps == null))))){ _local5 = this.exposedVars.roundProps; _local1 = (_local5.length - 1); while (_local1 > -1) { _local3 = _local5[_local1]; _local2 = (this.tweens.length - 1); while (_local2 > -1) { _local7 = this.tweens[_local2]; if (_local7.name == _local3){ if (_local7.isPlugin){ _local7.target.round = true; } else { if (_local6 == null){ _local6 = new TweenLite.plugins.roundProps(); _local6.add(_local7.target, _local3, _local7.start, _local7.change); _hasPlugins = true; this.tweens[_local2] = new TweenInfo(_local6, "changeFactor", 0, 1, _local3, true); } else { _local6.add(_local7.target, _local3, _local7.start, _local7.change); this.tweens.splice(_local2, 1); }; }; } else { if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){ _local4 = ((" " + _local7.target.overwriteProps.join(" ")) + " "); if (_local4.indexOf(((" " + _local3) + " ")) != -1){ _local7.target.round = true; }; }; }; _local2--; }; _local1--; }; }; } protected function initDispatcher():void{ var _local1:Object; var _local2:String; if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); _callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete}; if (this.vars.isTV == true){ this.vars = this.vars.clone(); } else { _local1 = {}; for (_local2 in this.vars) { _local1[_local2] = this.vars[_local2]; }; this.vars = _local1; }; this.vars.onStart = onStartDispatcher; this.vars.onComplete = onCompleteDispatcher; if ((this.vars.onStartListener is Function)){ _dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true); }; if ((this.vars.onUpdateListener is Function)){ _dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true); this.vars.onUpdate = onUpdateDispatcher; _hasUpdate = true; }; if ((this.vars.onCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true); }; }; } protected function onUpdateDispatcher(... _args):void{ if (_callbacks.onUpdate != null){ _callbacks.onUpdate.apply(null, this.vars.onUpdateParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); } public function set progress(_arg1:Number):void{ this.startTime = (currentTime - ((this.duration * _arg1) * 1000)); this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); if (!this.started){ activate(); }; render(currentTime); if (!isNaN(this.pauseTime)){ this.pauseTime = currentTime; this.startTime = 999999999999999; this.active = false; }; } public function reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{ var _local3:Number; this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease; _local3 = this.progress; if (((_arg1) && ((_local3 > 0)))){ this.startTime = (currentTime - ((((1 - _local3) * this.duration) * 1000) / this.combinedTimeScale)); this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); }; if (_arg2 != false){ if (_local3 < 1){ resume(); } else { restart(); }; }; } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (_dispatcher == null){ initDispatcher(); }; if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){ this.vars.onUpdate = onUpdateDispatcher; _hasUpdate = true; }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function set paused(_arg1:Boolean):void{ if (_arg1){ pause(); } else { resume(); }; } public function hasEventListener(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.hasEventListener(_arg1)); } public function pause():void{ if (isNaN(this.pauseTime)){ this.pauseTime = currentTime; this.startTime = 999999999999999; this.enabled = false; _pausedTweens[this] = this; }; } public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4)); } protected function onCompleteDispatcher(... _args):void{ if (_callbacks.onComplete != null){ _callbacks.onComplete.apply(null, this.vars.onCompleteParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); } public static function set globalTimeScale(_arg1:Number):void{ setGlobalTimeScale(_arg1); } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(true, _arg1, _arg2); } public static function killAllDelayedCalls(_arg1:Boolean=false):void{ killAll(_arg1, false, true); } public static function setGlobalTimeScale(_arg1:Number):void{ var _local2:Dictionary; var _local3:int; var _local4:Array; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; _local2 = masterList; _globalTimeScale = _arg1; for each (_local4 in _local2) { _local3 = (_local4.length - 1); while (_local3 > -1) { if ((_local4[_local3] is TweenMax)){ _local4[_local3].timeScale = (_local4[_local3].timeScale * 1); }; _local3--; }; }; } public static function get globalTimeScale():Number{ return (_globalTimeScale); } public static function getTweensOf(_arg1:Object):Array{ var _local2:Array; var _local3:Array; var _local4:TweenLite; var _local5:int; _local2 = masterList[_arg1]; _local3 = []; if (_local2 != null){ _local5 = (_local2.length - 1); while (_local5 > -1) { if (!_local2[_local5].gc){ _local3[_local3.length] = _local2[_local5]; }; _local5--; }; }; for each (_local4 in _pausedTweens) { if (_local4.target == _arg1){ _local3[_local3.length] = _local4; }; }; return (_local3); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{ return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0})); } public static function isTweening(_arg1:Object):Boolean{ var _local2:Array; var _local3:int; _local2 = getTweensOf(_arg1); _local3 = (_local2.length - 1); while (_local3 > -1) { if (((((_local2[_local3].active) || ((_local2[_local3].startTime == currentTime)))) && (!(_local2[_local3].gc)))){ return (true); }; _local3--; }; return (false); } public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{ var _local4:Array; var _local5:Boolean; var _local6:int; _local4 = getAllTweens(); _local6 = (_local4.length - 1); while (_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local4[_local6] is TweenMax)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){ _local4[_local6].paused = _arg1; }; _local6--; }; } public static function killAllTweens(_arg1:Boolean=false):void{ killAll(_arg1, true, false); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3.runBackwards = true; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{ var _local4:Array; var _local5:Boolean; var _local6:int; _local4 = getAllTweens(); _local6 = (_local4.length - 1); while (_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ if (_arg1){ _local4[_local6].complete(false); _local4[_local6].clear(); } else { TweenLite.removeTween(_local4[_local6], true); }; }; _local6--; }; } public static function getAllTweens():Array{ var _local1:Dictionary; var _local2:Array; var _local3:Array; var _local4:int; var _local5:TweenLite; _local1 = masterList; _local2 = []; for each (_local3 in _local1) { _local4 = (_local3.length - 1); while (_local4 > -1) { if (!_local3[_local4].gc){ _local2[_local2.length] = _local3[_local4]; }; _local4--; }; }; for each (_local5 in _pausedTweens) { _local2[_local2.length] = _local5; }; return (_local2); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(false, _arg1, _arg2); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ return (new TweenMax(_arg1, _arg2, _arg3)); } } }//package gs
Section 175
//BasMc (BasMc) package { import flash.display.*; public dynamic class BasMc extends MovieClip { public var target:MovieClip; } }//package
Section 176
//Bee (Bee) package { import flash.display.*; public dynamic class Bee extends MovieClip { } }//package
Section 177
//Bg (Bg) package { import flash.media.*; public dynamic class Bg extends Sound { } }//package
Section 178
//Buttonsound (Buttonsound) package { import flash.media.*; public dynamic class Buttonsound extends Sound { } }//package
Section 179
//CellRenderer_disabledSkin (CellRenderer_disabledSkin) package { import flash.display.*; public dynamic class CellRenderer_disabledSkin extends MovieClip { } }//package
Section 180
//CellRenderer_downSkin (CellRenderer_downSkin) package { import flash.display.*; public dynamic class CellRenderer_downSkin extends MovieClip { } }//package
Section 181
//CellRenderer_overSkin (CellRenderer_overSkin) package { import flash.display.*; public dynamic class CellRenderer_overSkin extends MovieClip { } }//package
Section 182
//CellRenderer_selectedDisabledSkin (CellRenderer_selectedDisabledSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip { } }//package
Section 183
//CellRenderer_selectedDownSkin (CellRenderer_selectedDownSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDownSkin extends MovieClip { } }//package
Section 184
//CellRenderer_selectedOverSkin (CellRenderer_selectedOverSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedOverSkin extends MovieClip { } }//package
Section 185
//CellRenderer_selectedUpSkin (CellRenderer_selectedUpSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedUpSkin extends MovieClip { } }//package
Section 186
//CellRenderer_upSkin (CellRenderer_upSkin) package { import flash.display.*; public dynamic class CellRenderer_upSkin extends MovieClip { } }//package
Section 187
//ComboBox_disabledSkin (ComboBox_disabledSkin) package { import flash.display.*; public dynamic class ComboBox_disabledSkin extends MovieClip { } }//package
Section 188
//ComboBox_downSkin (ComboBox_downSkin) package { import flash.display.*; public dynamic class ComboBox_downSkin extends MovieClip { } }//package
Section 189
//ComboBox_overSkin (ComboBox_overSkin) package { import flash.display.*; public dynamic class ComboBox_overSkin extends MovieClip { } }//package
Section 190
//ComboBox_upSkin (ComboBox_upSkin) package { import flash.display.*; public dynamic class ComboBox_upSkin extends MovieClip { } }//package
Section 191
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 192
//HitTest (HitTest) package { import flash.display.*; import flash.geom.*; public class HitTest { protected static function getDrawMatrix(_arg1:DisplayObject, _arg2:Rectangle, _arg3:Number):Matrix{ var _local4:Point; var _local5:Matrix; var _local6:Matrix; _local6 = _arg1.root.transform.concatenatedMatrix; _local4 = _arg1.localToGlobal(new Point()); _local5 = _arg1.transform.concatenatedMatrix; _local5.tx = (_local4.x - _arg2.x); _local5.ty = (_local4.y - _arg2.y); _local5.a = (_local5.a / _local6.a); _local5.d = (_local5.d / _local6.d); if (_arg3 != 1){ _local5.scale(_arg3, _arg3); }; return (_local5); } public static function complexHitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Boolean{ return (!((complexIntersectionRectangle(_arg1, _arg2, _arg3).width == 0))); } public static function complexIntersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Rectangle{ var _local4:Rectangle; var _local5:BitmapData; var _local6:Rectangle; if (_arg3 <= 0){ throw (new Error("ArgumentError: Error #5001: Invalid value for accurracy", 5001)); }; if (!_arg1.hitTestObject(_arg2)){ return (new Rectangle()); }; _local4 = intersectionRectangle(_arg1, _arg2); if (((((_local4.width * _arg3) < 1)) || (((_local4.height * _arg3) < 1)))){ return (new Rectangle()); }; _local5 = new BitmapData((_local4.width * _arg3), (_local4.height * _arg3), false, 0); _local5.draw(_arg1, HitTest.getDrawMatrix(_arg1, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF)); _local5.draw(_arg2, HitTest.getDrawMatrix(_arg2, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF), BlendMode.DIFFERENCE); _local6 = _local5.getColorBoundsRect(4294967295, 4278255615); _local5.dispose(); if (_arg3 != 1){ _local6.x = (_local6.x / _arg3); _local6.y = (_local6.y / _arg3); _local6.width = (_local6.width / _arg3); _local6.height = (_local6.height / _arg3); }; _local6.x = (_local6.x + _local4.x); _local6.y = (_local6.y + _local4.y); return (_local6); } public static function intersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject):Rectangle{ var _local3:Rectangle; var _local4:Rectangle; var _local5:Rectangle; if (((((!(_arg1.root)) || (!(_arg2.root)))) || (!(_arg1.hitTestObject(_arg2))))){ return (new Rectangle()); }; _local3 = _arg1.getBounds(_arg1.root); _local4 = _arg2.getBounds(_arg2.root); _local5 = new Rectangle(); _local5.x = Math.max(_local3.x, _local4.x); _local5.y = Math.max(_local3.y, _local4.y); _local5.width = Math.min(((_local3.x + _local3.width) - _local5.x), ((_local4.x + _local4.width) - _local5.x)); _local5.height = Math.min(((_local3.y + _local3.height) - _local5.y), ((_local4.y + _local4.height) - _local5.y)); return (_local5); } } }//package
Section 193
//List_skin (List_skin) package { import flash.display.*; public dynamic class List_skin extends MovieClip { } }//package
Section 194
//MochiBot (MochiBot) package { 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
Section 195
//MyVar (MyVar) package { import flash.utils.*; import flash.media.*; public class MyVar { public static var soundCount:int = 0; public static var soundPlayed:Boolean = false; public static var soundToggle:Boolean = true; public static var bg:Bg = new Bg(); public static var allow1:Boolean = false; public static var allow:Boolean = false; public static var CkCong:Boolean; public static var gameScore:int = 0; public static var myArray:Array = new Array(); public static var gcount:int = 0; public static var myTime:Array = new Array(); public static var ButtonSound:Buttonsound = new Buttonsound(); public static var TargetSound:Targetsound = new Targetsound(); public static var PressSound:Presssound = new Presssound(); public static var levelScore:int = 0; public static var gtime:Timer; public static var LevelFinished:int = 1; public static var soundChannel1:SoundChannel = new SoundChannel(); } }//package
Section 196
//Presssound (Presssound) package { import flash.media.*; public dynamic class Presssound extends Sound { } }//package
Section 197
//ScoreSubmit (ScoreSubmit) package { import flash.display.*; import flash.events.*; import flash.net.*; import flash.system.*; public class ScoreSubmit extends Sprite { public static function sendMyScore(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:String):void{ var receivedData:String; var processedData:String; var addressRequest:URLRequest; var dataObject:URLVariables; var addressLoader:URLLoader; var callMe:Function; var myName = _arg1; var myCountry = _arg2; var myScore = _arg3; var myGameId = _arg4; var mySite = _arg5; var myLevels = _arg6; callMe = function (_arg1:Event):void{ var _local2:Number; var _local3:Number; receivedData = _arg1.target.data; if (receivedData.match("success=0")){ } else { if (receivedData.match("success=1")){ trace(receivedData); _local2 = receivedData.indexOf("scoreid"); _local3 = receivedData.indexOf("&"); if (_local2 == 0){ processedData = receivedData.substring(_local2, _local3); } else { processedData = receivedData.substring(_local2); }; if (mySite.match("123bee")){ navigateToURL(new URLRequest(((("http://www.123bee.com/highscores?gameid=" + myGameId) + "&") + processedData))); } else { if (mySite.match("123peppy")){ navigateToURL(new URLRequest(((("http://www.123peppy.com/highscore?gameid=" + myGameId) + "&") + processedData))); }; }; }; }; }; Security.allowDomain("*"); Security.allowInsecureDomain("*"); if (mySite.match("123bee")){ addressRequest = new URLRequest("http://www.123bee.com/scores/saveScore.php"); } else { if (mySite.match("123peppy")){ addressRequest = new URLRequest("http://www.123peppy.com/score/saveScore.php"); }; }; dataObject = new URLVariables(); dataObject.fname = myName; dataObject.country = myCountry; dataObject.score = myScore; dataObject.Levels = myLevels; dataObject.gameid = myGameId; addressRequest.data = dataObject; addressLoader = new URLLoader(); addressLoader.dataFormat = URLLoaderDataFormat.VARIABLES; addressLoader.addEventListener(Event.COMPLETE, callMe); addressLoader.load(addressRequest); } } }//package
Section 198
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_disabledSkin extends MovieClip { } }//package
Section 199
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_downSkin extends MovieClip { } }//package
Section 200
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_overSkin extends MovieClip { } }//package
Section 201
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_upSkin extends MovieClip { } }//package
Section 202
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_disabledSkin extends MovieClip { } }//package
Section 203
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_downSkin extends MovieClip { } }//package
Section 204
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_overSkin extends MovieClip { } }//package
Section 205
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_upSkin extends MovieClip { } }//package
Section 206
//ScrollBar_thumbIcon (ScrollBar_thumbIcon) package { import flash.display.*; public dynamic class ScrollBar_thumbIcon extends MovieClip { } }//package
Section 207
//ScrollThumb_downSkin (ScrollThumb_downSkin) package { import flash.display.*; public dynamic class ScrollThumb_downSkin extends MovieClip { } }//package
Section 208
//ScrollThumb_overSkin (ScrollThumb_overSkin) package { import flash.display.*; public dynamic class ScrollThumb_overSkin extends MovieClip { } }//package
Section 209
//ScrollThumb_upSkin (ScrollThumb_upSkin) package { import flash.display.*; public dynamic class ScrollThumb_upSkin extends MovieClip { } }//package
Section 210
//ScrollTrack_skin (ScrollTrack_skin) package { import flash.display.*; public dynamic class ScrollTrack_skin extends MovieClip { } }//package
Section 211
//Targetsound (Targetsound) package { import flash.media.*; public dynamic class Targetsound extends Sound { } }//package
Section 212
//TextInput_disabledSkin (TextInput_disabledSkin) package { import flash.display.*; public dynamic class TextInput_disabledSkin extends MovieClip { } }//package
Section 213
//TextInput_upSkin (TextInput_upSkin) package { import flash.display.*; public dynamic class TextInput_upSkin extends MovieClip { } }//package

Library Items

Symbol 1 Sound {Targetsound}
Symbol 2 Sound {Presssound}
Symbol 3 Sound {Buttonsound}
Symbol 4 Sound {Bg}
Symbol 5 GraphicUsed by:11
Symbol 6 GraphicUsed by:10
Symbol 7 GraphicUsed by:10
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:10
Symbol 10 MovieClipUses:6 7 9Used by:11 948
Symbol 11 MovieClip {Bee}Uses:5 10
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:29 78 79
Symbol 14 MovieClip {fl.core.ComponentShim}Used by:29 48 77 78 79
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClip {focusRectSkin}Uses:15Used by:29 77 78 79
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClip {ComboBox_upSkin}Uses:17Used by:79
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip {ComboBox_disabledSkin}Uses:19Used by:79
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClip {ComboBox_overSkin}Uses:21Used by:79
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClip {ComboBox_downSkin}Uses:23Used by:79
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClip {TextInput_disabledSkin}Uses:25Used by:29
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClip {TextInput_upSkin}Uses:27Used by:29
Symbol 29 MovieClip {fl.controls.TextInput}Uses:13 14 26 28 16Used by:79
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClip {List_skin}Uses:30Used by:78
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClip {CellRenderer_upSkin}Uses:32Used by:48
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClip {CellRenderer_disabledSkin}Uses:34Used by:48
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip {CellRenderer_downSkin}Uses:36Used by:48
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip {CellRenderer_overSkin}Uses:38Used by:48
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClip {CellRenderer_selectedDisabledSkin}Uses:40Used by:48
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClip {CellRenderer_selectedDownSkin}Uses:42Used by:48
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClip {CellRenderer_selectedOverSkin}Uses:44Used by:48
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClip {CellRenderer_selectedUpSkin}Uses:46Used by:48
Symbol 48 MovieClip {fl.controls.listClasses.CellRenderer}Uses:33 14 35 37 39 41 43 45 47Used by:78
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClip {ScrollTrack_skin}Uses:49Used by:77
Symbol 51 GraphicUsed by:54
Symbol 52 GraphicUsed by:53 56 60 70
Symbol 53 MovieClipUses:52Used by:54 64 66
Symbol 54 MovieClip {ScrollArrowUp_downSkin}Uses:51 53Used by:77
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClip {ScrollArrowDown_downSkin}Uses:55 52Used by:77
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClip {ScrollThumb_downSkin}Uses:57Used by:77
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClip {ScrollArrowDown_overSkin}Uses:59 52Used by:77
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClip {ScrollThumb_overSkin}Uses:61Used by:77
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClip {ScrollArrowUp_overSkin}Uses:63 53Used by:77
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClip {ScrollArrowUp_upSkin}Uses:65 53Used by:77
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClip {ScrollThumb_upSkin}Uses:67Used by:77
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClip {ScrollArrowDown_upSkin}Uses:69 52Used by:77
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClip {ScrollArrowDown_disabledSkin}Uses:71Used by:77
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClip {ScrollArrowUp_disabledSkin}Uses:73Used by:77
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClip {ScrollBar_thumbIcon}Uses:75Used by:77
Symbol 77 MovieClip {fl.controls.ScrollBar}Uses:50 14 16 54 56 58 60 62 64 66 68 70 72 74 76Used by:78
Symbol 78 MovieClip {fl.controls.List}Uses:13 14 31 48 16 77Used by:79
Symbol 79 MovieClip {fl.controls.ComboBox}Uses:13 14 16 18 20 22 24 29 78
Symbol 80 GraphicUsed by:83
Symbol 81 GraphicUsed by:82 803 911 913 930
Symbol 82 MovieClipUses:81Used by:83
Symbol 83 MovieClip {BasMc}Uses:80 82
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:Timeline
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:86Used by:88
Symbol 88 MovieClipUses:87Used by:89
Symbol 89 MovieClipUses:88Used by:Timeline
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClipUses:90Used by:92
Symbol 92 MovieClipUses:91Used by:Timeline
Symbol 93 GraphicUsed by:94 124
Symbol 94 MovieClipUses:93Used by:Timeline
Symbol 95 GraphicUsed by:433
Symbol 96 GraphicUsed by:415
Symbol 97 GraphicUsed by:98
Symbol 98 MovieClipUses:97Used by:382 408 415
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClipUses:99Used by:103 386
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 MovieClipUses:100 102Used by:106
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:104Used by:106 386
Symbol 106 MovieClipUses:103 105Used by:415
Symbol 107 GraphicUsed by:112
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:108Used by:112
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:110Used by:112
Symbol 112 MovieClipUses:107 109 111Used by:415
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:113Used by:415
Symbol 115 GraphicUsed by:119 389
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:116Used by:118
Symbol 118 MovieClipUses:117Used by:119 389
Symbol 119 MovieClipUses:115 118Used by:415
Symbol 120 GraphicUsed by:415
Symbol 121 GraphicUsed by:136
Symbol 122 GraphicUsed by:123
Symbol 123 MovieClipUses:122Used by:136 393
Symbol 124 MovieClipUses:93Used by:136 393
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClipUses:125Used by:136
Symbol 127 GraphicUsed by:136 393
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClipUses:128Used by:136 393
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:136 393
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClipUses:132Used by:136 393
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClipUses:134Used by:136 393
Symbol 136 MovieClipUses:121 123 124 126 127 129 131 133 135Used by:137
Symbol 137 MovieClipUses:136Used by:142
Symbol 138 GraphicUsed by:141
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:139Used by:141
Symbol 141 MovieClipUses:138 140Used by:142 395
Symbol 142 MovieClipUses:137 141Used by:415
Symbol 143 GraphicUsed by:152
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClipUses:144Used by:152 163 189 199 202 205 208 210 214 218 222 226 243 265 287 291 295 299 301 305 309 317 323 329 333 337 343 347 351 366 372 397 403
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:146Used by:152 189 200 208 214 222 243 265 287 291 299 305 333 347 366 397
Symbol 148 GraphicUsed by:149
Symbol 149 MovieClipUses:148Used by:152 189 200 208 214 222 243 265 287 291 299 305 333 347 366 397
Symbol 150 GraphicUsed by:151
Symbol 151 MovieClipUses:150Used by:152 189 200 208 214 222 243 265 287 291 299 305 333 347 366 397
Symbol 152 MovieClipUses:143 145 147 149 151Used by:415
Symbol 153 GraphicUsed by:156
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClipUses:154Used by:156 193 401 407
Symbol 156 MovieClipUses:153 155Used by:415
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:415
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClipUses:159Used by:163
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClipUses:161Used by:163 189 199 202 205 208 210 214 218 222 226 295 299 301 305 309 317 323 329 333 337 343 347 351 366 372 397 403
Symbol 163 MovieClipUses:160 162 145Used by:415
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:164Used by:415
Symbol 166 GraphicUsed by:408 415
Symbol 167 GraphicUsed by:415
Symbol 168 GraphicUsed by:171
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:171
Symbol 171 MovieClipUses:168 170Used by:410 412 415
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:172Used by:410 412 415
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClipUses:174Used by:410 412 415
Symbol 176 GraphicUsed by:177
Symbol 177 MovieClipUses:176Used by:410 412 415
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:178Used by:410 412 415
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClipUses:180Used by:410 412 415
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClipUses:182Used by:410 412 415
Symbol 184 GraphicUsed by:185
Symbol 185 MovieClipUses:184Used by:410 412 415
Symbol 186 GraphicUsed by:415
Symbol 187 GraphicUsed by:415
Symbol 188 GraphicUsed by:189
Symbol 189 MovieClipUses:188 162 145 147 149 151Used by:415
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClipUses:190Used by:415
Symbol 192 GraphicUsed by:193
Symbol 193 MovieClipUses:192 155Used by:415
Symbol 194 GraphicUsed by:195
Symbol 195 MovieClipUses:194Used by:415
Symbol 196 GraphicUsed by:415
Symbol 197 GraphicUsed by:200
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:198 162 145Used by:200
Symbol 200 MovieClipUses:197 199 147 149 151Used by:415
Symbol 201 GraphicUsed by:202
Symbol 202 MovieClipUses:201 162 145Used by:415
Symbol 203 GraphicUsed by:415
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClipUses:204 162 145Used by:415
Symbol 206 GraphicUsed by:415
Symbol 207 GraphicUsed by:208
Symbol 208 MovieClipUses:207 162 145 147 149 151Used by:415
Symbol 209 GraphicUsed by:210
Symbol 210 MovieClipUses:209 162 145Used by:415
Symbol 211 GraphicUsed by:212
Symbol 212 MovieClipUses:211Used by:415
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:213 162 145 147 149 151Used by:415
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClipUses:215Used by:415
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:217 162 145Used by:415
Symbol 219 GraphicUsed by:220
Symbol 220 MovieClipUses:219Used by:415
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClipUses:221 162 145 147 149 151Used by:415
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClipUses:223Used by:415
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClipUses:225 162 145Used by:415
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClipUses:227Used by:415
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClipUses:229Used by:415
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:231Used by:415
Symbol 233 GraphicUsed by:415
Symbol 234 GraphicUsed by:415
Symbol 235 GraphicUsed by:415
Symbol 236 GraphicUsed by:415
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClipUses:237Used by:415
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239Used by:415
Symbol 241 GraphicUsed by:415
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:242 145 147 149 151Used by:415
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClipUses:244Used by:415
Symbol 246 GraphicUsed by:247
Symbol 247 MovieClipUses:246Used by:248
Symbol 248 MovieClipUses:247Used by:249
Symbol 249 MovieClipUses:248Used by:250 251
Symbol 250 MovieClipUses:249Used by:415
Symbol 251 MovieClipUses:249Used by:415
Symbol 252 GraphicUsed by:253
Symbol 253 MovieClipUses:252Used by:415
Symbol 254 GraphicUsed by:259
Symbol 255 GraphicUsed by:259
Symbol 256 GraphicUsed by:259
Symbol 257 GraphicUsed by:259
Symbol 258 GraphicUsed by:259
Symbol 259 MovieClipUses:254 255 256 257 258Used by:415
Symbol 260 GraphicUsed by:261
Symbol 261 MovieClipUses:260Used by:415
Symbol 262 GraphicUsed by:263
Symbol 263 MovieClipUses:262Used by:415
Symbol 264 GraphicUsed by:265
Symbol 265 MovieClipUses:264 145 147 149 151Used by:415
Symbol 266 GraphicUsed by:267
Symbol 267 MovieClipUses:266Used by:415
Symbol 268 GraphicUsed by:269
Symbol 269 MovieClipUses:268Used by:415
Symbol 270 GraphicUsed by:271
Symbol 271 MovieClipUses:270Used by:415
Symbol 272 GraphicUsed by:273
Symbol 273 MovieClipUses:272Used by:415
Symbol 274 GraphicUsed by:275
Symbol 275 MovieClipUses:274Used by:415
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:276Used by:415
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278Used by:415
Symbol 280 GraphicUsed by:281
Symbol 281 MovieClipUses:280Used by:415
Symbol 282 GraphicUsed by:283
Symbol 283 MovieClipUses:282Used by:415
Symbol 284 GraphicUsed by:285
Symbol 285 MovieClipUses:284Used by:415
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClipUses:286 145 147 149 151Used by:415
Symbol 288 GraphicUsed by:289
Symbol 289 MovieClipUses:288Used by:415
Symbol 290 GraphicUsed by:291
Symbol 291 MovieClipUses:290 145 147 149 151Used by:415
Symbol 292 GraphicUsed by:293
Symbol 293 MovieClipUses:292Used by:415
Symbol 294 GraphicUsed by:295
Symbol 295 MovieClipUses:294 162 145Used by:415
Symbol 296 GraphicUsed by:297
Symbol 297 MovieClipUses:296Used by:415
Symbol 298 GraphicUsed by:299
Symbol 299 MovieClipUses:298 162 145 147 149 151Used by:415
Symbol 300 GraphicUsed by:301
Symbol 301 MovieClipUses:300 162 145Used by:415
Symbol 302 GraphicUsed by:303
Symbol 303 MovieClipUses:302Used by:415
Symbol 304 GraphicUsed by:305
Symbol 305 MovieClipUses:304 162 145 147 149 151Used by:415
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClipUses:306Used by:415
Symbol 308 GraphicUsed by:309
Symbol 309 MovieClipUses:308 162 145Used by:415
Symbol 310 GraphicUsed by:311
Symbol 311 MovieClipUses:310Used by:415
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClipUses:312Used by:415
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClipUses:314Used by:415
Symbol 316 GraphicUsed by:317
Symbol 317 MovieClipUses:316 162 145Used by:415
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:318Used by:415
Symbol 320 GraphicUsed by:321
Symbol 321 MovieClipUses:320Used by:415
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClipUses:322 162 145Used by:415
Symbol 324 GraphicUsed by:325
Symbol 325 MovieClipUses:324Used by:415
Symbol 326 GraphicUsed by:327
Symbol 327 MovieClipUses:326Used by:415
Symbol 328 GraphicUsed by:329
Symbol 329 MovieClipUses:328 162 145Used by:415
Symbol 330 GraphicUsed by:331
Symbol 331 MovieClipUses:330Used by:415
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClipUses:332 162 145 147 149 151Used by:415
Symbol 334 GraphicUsed by:335
Symbol 335 MovieClipUses:334Used by:415
Symbol 336 GraphicUsed by:337
Symbol 337 MovieClipUses:336 162 145Used by:415
Symbol 338 GraphicUsed by:339
Symbol 339 MovieClipUses:338Used by:415
Symbol 340 GraphicUsed by:341
Symbol 341 MovieClipUses:340Used by:415
Symbol 342 GraphicUsed by:343
Symbol 343 MovieClipUses:342 162 145Used by:415
Symbol 344 GraphicUsed by:345
Symbol 345 MovieClipUses:344Used by:415
Symbol 346 GraphicUsed by:347
Symbol 347 MovieClipUses:346 162 145 147 149 151Used by:415
Symbol 348 GraphicUsed by:349
Symbol 349 MovieClipUses:348Used by:415
Symbol 350 GraphicUsed by:351
Symbol 351 MovieClipUses:350 162 145Used by:415
Symbol 352 GraphicUsed by:353
Symbol 353 MovieClipUses:352Used by:415
Symbol 354 GraphicUsed by:382 415
Symbol 355 GraphicUsed by:390 415
Symbol 356 GraphicUsed by:415
Symbol 357 GraphicUsed by:415
Symbol 358 GraphicUsed by:415
Symbol 359 GraphicUsed by:415
Symbol 360 GraphicUsed by:415
Symbol 361 GraphicUsed by:415
Symbol 362 GraphicUsed by:415
Symbol 363 GraphicUsed by:415
Symbol 364 GraphicUsed by:415
Symbol 365 GraphicUsed by:366
Symbol 366 MovieClipUses:365 162 145 147 149 151Used by:415
Symbol 367 GraphicUsed by:368
Symbol 368 MovieClipUses:367Used by:415
Symbol 369 GraphicUsed by:370
Symbol 370 MovieClipUses:369Used by:415
Symbol 371 GraphicUsed by:372
Symbol 372 MovieClipUses:371 162 145Used by:415
Symbol 373 GraphicUsed by:374
Symbol 374 MovieClipUses:373Used by:415
Symbol 375 GraphicUsed by:415
Symbol 376 GraphicUsed by:415
Symbol 377 GraphicUsed by:415
Symbol 378 GraphicUsed by:415
Symbol 379 GraphicUsed by:415
Symbol 380 GraphicUsed by:415
Symbol 381 GraphicUsed by:415
Symbol 382 MovieClipUses:354 98Used by:415
Symbol 383 GraphicUsed by:386
Symbol 384 GraphicUsed by:385
Symbol 385 MovieClipUses:384Used by:386
Symbol 386 MovieClipUses:383 100 385 105Used by:415
Symbol 387 GraphicUsed by:388
Symbol 388 MovieClipUses:387Used by:389 393 397 401 403 407 408 412
Symbol 389 MovieClipUses:115 118 388Used by:415
Symbol 390 MovieClipUses:355Used by:415
Symbol 391 GraphicUsed by:393
Symbol 392 GraphicUsed by:393
Symbol 393 MovieClipUses:391 123 124 127 129 131 392 133 135 388Used by:394
Symbol 394 MovieClipUses:393Used by:395
Symbol 395 MovieClipUses:394 141Used by:415
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClipUses:396 162 145 147 149 151 388Used by:415
Symbol 398 GraphicUsed by:399
Symbol 399 MovieClipUses:398Used by:415
Symbol 400 GraphicUsed by:401
Symbol 401 MovieClipUses:400 155 388Used by:415
Symbol 402 GraphicUsed by:403
Symbol 403 MovieClipUses:402 162 145 388Used by:415
Symbol 404 GraphicUsed by:405
Symbol 405 MovieClipUses:404Used by:415
Symbol 406 GraphicUsed by:407
Symbol 407 MovieClipUses:406 155 388Used by:415
Symbol 408 MovieClipUses:166 98 388Used by:415
Symbol 409 GraphicUsed by:410
Symbol 410 MovieClipUses:409 171 173 175 177 179 181 183 185Used by:415
Symbol 411 GraphicUsed by:412
Symbol 412 MovieClipUses:411 171 173 175 177 179 181 183 185 388Used by:415
Symbol 413 GraphicUsed by:415
Symbol 414 GraphicUsed by:415
Symbol 415 MovieClipUses:96 98 106 112 114 119 120 142 152 156 158 163 165 166 167 171 173 175 177 179 181 183 185 186 187 189 191 193 195 196 200 202 203 205 206 208 210 212 214 216 218 220 222 224 226 228 230 232 233 234 235 236 238 240 241 243 245 250 251 253 259 261 263 265 267 269 271 273 275 277 279 281 283 285 287 289 291 293 295 297 299 301 303 305 307 309 311 313 315 317 319 321 323 325 327 329 331 333 335 337 339 341 343 345 347 349 351 353 354 355 356 357 358 359 360 361 362 363 364 366 368 370 372 374 375 376 377 378 379 380 381 382 386 389 390 395 397 399 401 403 405 407 408 410 412 413 414Used by:416
Symbol 416 MovieClipUses:415Used by:433
Symbol 417 GraphicUsed by:432
Symbol 418 GraphicUsed by:419
Symbol 419 MovieClipUses:418Used by:424
Symbol 420 GraphicUsed by:421
Symbol 421 MovieClipUses:420Used by:424
Symbol 422 GraphicUsed by:423
Symbol 423 MovieClipUses:422Used by:424
Symbol 424 MovieClipUses:419 421 423Used by:432
Symbol 425 GraphicUsed by:426
Symbol 426 MovieClipUses:425Used by:431
Symbol 427 GraphicUsed by:428
Symbol 428 MovieClipUses:427Used by:431
Symbol 429 GraphicUsed by:430
Symbol 430 MovieClipUses:429Used by:431
Symbol 431 MovieClipUses:426 428 430Used by:432
Symbol 432 MovieClipUses:417 424 431Used by:433
Symbol 433 MovieClipUses:95 416 432Used by:Timeline
Symbol 434 GraphicUsed by:435
Symbol 435 MovieClipUses:434Used by:443
Symbol 436 ShapeTweeningUsed by:438
Symbol 437 GraphicUsed by:438
Symbol 438 MovieClip {gogobee_fla.name172_170}Uses:436 437Used by:443
Symbol 439 ShapeTweeningUsed by:442
Symbol 440 GraphicUsed by:442
Symbol 441 GraphicUsed by:442
Symbol 442 MovieClipUses:439 440 441Used by:443
Symbol 443 MovieClip {gogobee_fla.name173_168}Uses:435 438 442Used by:Timeline
Symbol 444 FontUsed by:445 446
Symbol 445 EditableTextUses:444Used by:Timeline
Symbol 446 EditableTextUses:444Used by:Timeline
Symbol 447 GraphicUsed by:448
Symbol 448 ButtonUses:447Used by:Timeline
Symbol 449 BitmapUsed by:450
Symbol 450 GraphicUses:449Used by:Timeline
Symbol 451 GraphicUsed by:452
Symbol 452 MovieClipUses:451Used by:Timeline
Symbol 453 GraphicUsed by:454 479 483 486 488 497 512 730 745 747 749 754 756 873 951
Symbol 454 MovieClipUses:453Used by:479 483 486 488 951  Timeline
Symbol 455 GraphicUsed by:456 479 483 486 488 951
Symbol 456 MovieClipUses:455Used by:479 483 486 488 951  Timeline
Symbol 457 GraphicUsed by:458 479 483 486 488 500 512 733 745 747 749 754 756 876 951
Symbol 458 MovieClipUses:457Used by:479 483 486 488 951  Timeline
Symbol 459 GraphicUsed by:460 479 483 486 488 951
Symbol 460 MovieClipUses:459Used by:479 483 486 488 951  Timeline
Symbol 461 GraphicUsed by:462 479 483 486 488 503 512 736 745 747 749 754 756 879 951
Symbol 462 MovieClipUses:461Used by:479 483 486 488 951  Timeline
Symbol 463 GraphicUsed by:464 479 483 486 488 504 512 737 745 747 749 754 756 880 951
Symbol 464 MovieClipUses:463Used by:479 483 486 488 951  Timeline
Symbol 465 GraphicUsed by:466 479 483 486 488 951
Symbol 466 MovieClipUses:465Used by:471
Symbol 467 GraphicUsed by:468 479 483 486 488 951
Symbol 468 MovieClipUses:467Used by:471
Symbol 469 GraphicUsed by:470 479 483 486 488 951
Symbol 470 MovieClipUses:469Used by:471
Symbol 471 MovieClipUses:466 468 470Used by:479 483 486 488 951  Timeline
Symbol 472 GraphicUsed by:Timeline
Symbol 473 GraphicUsed by:474
Symbol 474 MovieClipUses:473Used by:Timeline
Symbol 475 GraphicUsed by:476 479 486 488
Symbol 476 MovieClipUses:475Used by:479 486 488
Symbol 477 FontUsed by:478 480 484 485 496 527 541 546 551 556 561 566 571 576 581 586 591 596 628 633 638 643 648 653 658 663 668 673 678 683 727 746 748 753 755 865 866 899 900 901 902 903 904 905 906 907 908 912 950
Symbol 478 TextUses:477Used by:479
Symbol 479 ButtonUses:476 478 454 456 458 460 462 464 471 475 453 455 457 459 461 463 465 467 469Used by:Timeline
Symbol 480 TextUses:477Used by:483 488
Symbol 481 GraphicUsed by:482 483 951
Symbol 482 MovieClipUses:481Used by:483 951
Symbol 483 ButtonUses:480 482 454 456 458 460 462 464 471 481 453 455 457 459 461 463 465 467 469Used by:Timeline
Symbol 484 TextUses:477Used by:486
Symbol 485 TextUses:477Used by:486
Symbol 486 ButtonUses:476 484 485 454 456 458 460 462 464 471 475 453 455 457 459 461 463 465 467 469Used by:487
Symbol 487 MovieClip {gogobee_fla.loadgame_189}Uses:486Used by:Timeline
Symbol 488 ButtonUses:476 480 454 456 458 460 462 464 471 475 453 455 457 459 461 463 465 467 469Used by:Timeline
Symbol 489 BitmapUsed by:490
Symbol 490 GraphicUses:489Used by:Timeline
Symbol 491 BitmapUsed by:492 869
Symbol 492 GraphicUses:491Used by:493
Symbol 493 MovieClipUses:492Used by:Timeline
Symbol 494 GraphicUsed by:495 512
Symbol 495 MovieClipUses:494Used by:512
Symbol 496 TextUses:477Used by:512
Symbol 497 MovieClipUses:453Used by:512  Timeline
Symbol 498 GraphicUsed by:499 512
Symbol 499 MovieClipUses:498Used by:512  Timeline
Symbol 500 MovieClipUses:457Used by:512  Timeline
Symbol 501 GraphicUsed by:502 512
Symbol 502 MovieClipUses:501Used by:512  Timeline
Symbol 503 MovieClipUses:461Used by:512  Timeline
Symbol 504 MovieClipUses:463Used by:512  Timeline
Symbol 505 GraphicUsed by:506 512
Symbol 506 MovieClipUses:505Used by:511
Symbol 507 GraphicUsed by:508 512
Symbol 508 MovieClipUses:507Used by:511
Symbol 509 GraphicUsed by:510 512
Symbol 510 MovieClipUses:509Used by:511
Symbol 511 MovieClipUses:506 508 510Used by:512  Timeline
Symbol 512 ButtonUses:495 496 497 499 500 502 503 504 511 494 453 498 457 501 461 463 505 507 509Used by:Timeline
Symbol 513 GraphicUsed by:514
Symbol 514 MovieClipUses:513Used by:Timeline
Symbol 515 GraphicUsed by:516
Symbol 516 MovieClipUses:515Used by:Timeline
Symbol 517 FontUsed by:518
Symbol 518 TextUses:517Used by:Timeline
Symbol 519 GraphicUsed by:520
Symbol 520 MovieClipUses:519Used by:864
Symbol 521 BitmapUsed by:522
Symbol 522 GraphicUses:521Used by:864 949
Symbol 523 BitmapUsed by:524
Symbol 524 GraphicUses:523Used by:719
Symbol 525 GraphicUsed by:526
Symbol 526 MovieClipUses:525Used by:719
Symbol 527 TextUses:477Used by:539 540
Symbol 528 GraphicUsed by:540
Symbol 529 FontUsed by:530 531 760 774 776 778 782 786 790 793 795 796
Symbol 530 TextUses:529Used by:539 540 544 545 549 550 554 555 559 560 564 565 569 570 574 575 579 580 584 585 589 590 594 595 599 600 631 632 636 637 641 642 646 647 651 652 656 657 661 662 666 667 671 672 676 677 681 682 686 687
Symbol 531 TextUses:529Used by:539 540 544 545 549 550 554 555 559 560 564 565 569 570 574 575 579 580 584 585 589 590 594 595 599 600 631 632 636 637 641 642 646 647 651 652 656 657 661 662 666 667 671 672 676 677 681 682 686 687 804
Symbol 532 GraphicUsed by:540 545 550 555 560 565 570 575 580 585 590 595 600 632 637 642 647 652 657 662 667 672 677 682 687
Symbol 533 GraphicUsed by:534
Symbol 534 MovieClipUses:533Used by:539 540 544 545 549 550 554 555 559 560 564 565 569 570 574 575 579 580 584 585 589 590 594 595 599 600 631 632 636 637 641 642 646 647 651 652 656 657 661 662 666 667 671 672 676 677 681 682 686 687
Symbol 535 GraphicUsed by:540 545 550 555 560 565 570 575 580 585 590 595 600 632 637 642 647 652 657 662 667 672 677 682 687
Symbol 536 GraphicUsed by:539
Symbol 537 GraphicUsed by:539 544 549 554 559 564 569 574 579 584 589 594 599 631 636 641 646 651 656 661 666 671 676 681 686
Symbol 538 GraphicUsed by:539 544 549 554 559 564 569 574 579 584 589 594 599 631 636 641 646 651 656 661 666 671 676 681 686
Symbol 539 MovieClipUses:527 536 530 531 537 534 538Used by:540
Symbol 540 MovieClip {gogobee_fla.levlselecc3_211}Uses:527 528 530 531 532 534 535 539Used by:719
Symbol 541 TextUses:477Used by:544 545
Symbol 542 GraphicUsed by:545
Symbol 543 GraphicUsed by:544
Symbol 544 MovieClipUses:541 543 530 531 537 534 538Used by:545
Symbol 545 MovieClip {gogobee_fla.levlselecc4_214}Uses:541 542 530 531 532 534 535 544Used by:719
Symbol 546 TextUses:477Used by:549 550
Symbol 547 GraphicUsed by:550
Symbol 548 GraphicUsed by:549
Symbol 549 MovieClipUses:546 548 530 531 537 534 538Used by:550
Symbol 550 MovieClip {gogobee_fla.levlselecc5_216}Uses:546 547 530 531 532 534 535 549Used by:719
Symbol 551 TextUses:477Used by:554 555
Symbol 552 GraphicUsed by:555
Symbol 553 GraphicUsed by:554
Symbol 554 MovieClipUses:551 553 530 531 537 534 538Used by:555
Symbol 555 MovieClip {gogobee_fla.levlselecc6_218}Uses:551 552 530 531 532 534 535 554Used by:719
Symbol 556 TextUses:477Used by:559 560
Symbol 557 GraphicUsed by:560
Symbol 558 GraphicUsed by:559
Symbol 559 MovieClipUses:556 558 530 531 537 534 538Used by:560
Symbol 560 MovieClip {gogobee_fla.levlselecc7_220}Uses:556 557 530 531 532 534 535 559Used by:719
Symbol 561 TextUses:477Used by:564 565
Symbol 562 GraphicUsed by:565
Symbol 563 GraphicUsed by:564
Symbol 564 MovieClipUses:561 563 530 531 537 534 538Used by:565
Symbol 565 MovieClip {gogobee_fla.levlselecc8_222}Uses:561 562 530 531 532 534 535 564Used by:719
Symbol 566 TextUses:477Used by:569 570
Symbol 567 GraphicUsed by:570
Symbol 568 GraphicUsed by:569
Symbol 569 MovieClipUses:566 568 530 531 537 534 538Used by:570
Symbol 570 MovieClip {gogobee_fla.levlselecc9_224}Uses:566 567 530 531 532 534 535 569Used by:719
Symbol 571 TextUses:477Used by:574 575
Symbol 572 GraphicUsed by:575
Symbol 573 GraphicUsed by:574
Symbol 574 MovieClipUses:571 573 530 531 537 534 538Used by:575
Symbol 575 MovieClip {gogobee_fla.levlselecc10_226}Uses:571 572 530 531 532 534 535 574Used by:719
Symbol 576 TextUses:477Used by:579 580
Symbol 577 GraphicUsed by:580
Symbol 578 GraphicUsed by:579
Symbol 579 MovieClipUses:576 578 530 531 537 534 538Used by:580
Symbol 580 MovieClip {gogobee_fla.levlselecc11_228}Uses:576 577 530 531 532 534 535 579Used by:719
Symbol 581 TextUses:477Used by:584 585
Symbol 582 GraphicUsed by:585
Symbol 583 GraphicUsed by:584
Symbol 584 MovieClipUses:581 583 530 531 537 534 538Used by:585
Symbol 585 MovieClip {gogobee_fla.levlselecc12_230}Uses:581 582 530 531 532 534 535 584Used by:719
Symbol 586 TextUses:477Used by:589 590
Symbol 587 GraphicUsed by:590
Symbol 588 GraphicUsed by:589
Symbol 589 MovieClipUses:586 588 530 531 537 534 538Used by:590
Symbol 590 MovieClip {gogobee_fla.levlselecc13_232}Uses:586 587 530 531 532 534 535 589Used by:719
Symbol 591 TextUses:477Used by:594 595
Symbol 592 GraphicUsed by:595
Symbol 593 GraphicUsed by:594
Symbol 594 MovieClipUses:591 593 530 531 537 534 538Used by:595
Symbol 595 MovieClip {gogobee_fla.levlselecc14_234}Uses:591 592 530 531 532 534 535 594Used by:719
Symbol 596 TextUses:477Used by:599 600
Symbol 597 GraphicUsed by:600
Symbol 598 GraphicUsed by:599
Symbol 599 MovieClipUses:596 598 530 531 537 534 538Used by:600
Symbol 600 MovieClip {gogobee_fla.levlselecc15_236}Uses:596 597 530 531 532 534 535 599Used by:719
Symbol 601 FontUsed by:602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711
Symbol 602 EditableTextUses:601Used by:719
Symbol 603 EditableTextUses:601Used by:719
Symbol 604 EditableTextUses:601Used by:719
Symbol 605 EditableTextUses:601Used by:719
Symbol 606 EditableTextUses:601Used by:719
Symbol 607 EditableTextUses:601Used by:719
Symbol 608 EditableTextUses:601Used by:719
Symbol 609 EditableTextUses:601Used by:719
Symbol 610 EditableTextUses:601Used by:719
Symbol 611 EditableTextUses:601Used by:719
Symbol 612 EditableTextUses:601Used by:719
Symbol 613 EditableTextUses:601Used by:719
Symbol 614 EditableTextUses:601Used by:719
Symbol 615 EditableTextUses:601Used by:719
Symbol 616 EditableTextUses:601Used by:719
Symbol 617 EditableTextUses:601Used by:719
Symbol 618 EditableTextUses:601Used by:719
Symbol 619 EditableTextUses:601Used by:719
Symbol 620 EditableTextUses:601Used by:719
Symbol 621 EditableTextUses:601Used by:719
Symbol 622 EditableTextUses:601Used by:719
Symbol 623 EditableTextUses:601Used by:719
Symbol 624 EditableTextUses:601Used by:719
Symbol 625 EditableTextUses:601Used by:719
Symbol 626 EditableTextUses:601Used by:719
Symbol 627 EditableTextUses:601Used by:719
Symbol 628 TextUses:477Used by:631 632
Symbol 629 GraphicUsed by:632
Symbol 630 GraphicUsed by:631
Symbol 631 MovieClipUses:628 630 530 531 537 534 538Used by:632
Symbol 632 MovieClip {gogobee_fla.levlselecc16_238}Uses:628 629 530 531 532 534 535 631Used by:719
Symbol 633 TextUses:477Used by:636 637
Symbol 634 GraphicUsed by:637
Symbol 635 GraphicUsed by:636
Symbol 636 MovieClipUses:633 635 530 531 537 534 538Used by:637
Symbol 637 MovieClip {gogobee_fla.levlselecc17_240}Uses:633 634 530 531 532 534 535 636Used by:719
Symbol 638 TextUses:477Used by:641 642
Symbol 639 GraphicUsed by:642
Symbol 640 GraphicUsed by:641
Symbol 641 MovieClipUses:638 640 530 531 537 534 538Used by:642
Symbol 642 MovieClip {gogobee_fla.levlselecc18_242}Uses:638 639 530 531 532 534 535 641Used by:719
Symbol 643 TextUses:477Used by:646 647
Symbol 644 GraphicUsed by:647
Symbol 645 GraphicUsed by:646
Symbol 646 MovieClipUses:643 645 530 531 537 534 538Used by:647
Symbol 647 MovieClip {gogobee_fla.levlselecc19_244}Uses:643 644 530 531 532 534 535 646Used by:719
Symbol 648 TextUses:477Used by:651 652
Symbol 649 GraphicUsed by:652
Symbol 650 GraphicUsed by:651
Symbol 651 MovieClipUses:648 650 530 531 537 534 538Used by:652
Symbol 652 MovieClip {gogobee_fla.levlselecc20_246}Uses:648 649 530 531 532 534 535 651Used by:719
Symbol 653 TextUses:477Used by:656 657
Symbol 654 GraphicUsed by:657
Symbol 655 GraphicUsed by:656
Symbol 656 MovieClipUses:653 655 530 531 537 534 538Used by:657
Symbol 657 MovieClip {gogobee_fla.levlselecc21_248}Uses:653 654 530 531 532 534 535 656Used by:719
Symbol 658 TextUses:477Used by:661 662
Symbol 659 GraphicUsed by:662
Symbol 660 GraphicUsed by:661
Symbol 661 MovieClipUses:658 660 530 531 537 534 538Used by:662
Symbol 662 MovieClip {gogobee_fla.levlselecc22_250}Uses:658 659 530 531 532 534 535 661Used by:719
Symbol 663 TextUses:477Used by:666 667
Symbol 664 GraphicUsed by:667
Symbol 665 GraphicUsed by:666
Symbol 666 MovieClipUses:663 665 530 531 537 534 538Used by:667
Symbol 667 MovieClip {gogobee_fla.levlselecc23_252}Uses:663 664 530 531 532 534 535 666Used by:719
Symbol 668 TextUses:477Used by:671 672
Symbol 669 GraphicUsed by:672
Symbol 670 GraphicUsed by:671
Symbol 671 MovieClipUses:668 670 530 531 537 534 538Used by:672
Symbol 672 MovieClip {gogobee_fla.levlselecc24_254}Uses:668 669 530 531 532 534 535 671Used by:719
Symbol 673 TextUses:477Used by:676 677
Symbol 674 GraphicUsed by:677
Symbol 675 GraphicUsed by:676
Symbol 676 MovieClipUses:673 675 530 531 537 534 538Used by:677
Symbol 677 MovieClip {gogobee_fla.levlselecc25_256}Uses:673 674 530 531 532 534 535 676Used by:719
Symbol 678 TextUses:477Used by:681 682
Symbol 679 GraphicUsed by:682
Symbol 680 GraphicUsed by:681
Symbol 681 MovieClipUses:678 680 530 531 537 534 538Used by:682
Symbol 682 MovieClip {gogobee_fla.levlselecc26_258}Uses:678 679 530 531 532 534 535 681Used by:719
Symbol 683 TextUses:477Used by:686 687
Symbol 684 GraphicUsed by:687
Symbol 685 GraphicUsed by:686
Symbol 686 MovieClipUses:683 685 530 531 537 534 538Used by:687
Symbol 687 MovieClip {gogobee_fla.levlselecc27_260}Uses:683 684 530 531 532 534 535 686Used by:719
Symbol 688 EditableTextUses:601Used by:719
Symbol 689 EditableTextUses:601Used by:719
Symbol 690 EditableTextUses:601Used by:719
Symbol 691 EditableTextUses:601Used by:719
Symbol 692 EditableTextUses:601Used by:719
Symbol 693 EditableTextUses:601Used by:719
Symbol 694 EditableTextUses:601Used by:719
Symbol 695 EditableTextUses:601Used by:719
Symbol 696 EditableTextUses:601Used by:719
Symbol 697 EditableTextUses:601Used by:719
Symbol 698 EditableTextUses:601Used by:719
Symbol 699 EditableTextUses:601Used by:719
Symbol 700 EditableTextUses:601Used by:719
Symbol 701 EditableTextUses:601Used by:719
Symbol 702 EditableTextUses:601Used by:719
Symbol 703 EditableTextUses:601Used by:719
Symbol 704 EditableTextUses:601Used by:719
Symbol 705 EditableTextUses:601Used by:719
Symbol 706 EditableTextUses:601Used by:719
Symbol 707 EditableTextUses:601Used by:719
Symbol 708 EditableTextUses:601Used by:719
Symbol 709 EditableTextUses:601Used by:719
Symbol 710 EditableTextUses:601Used by:719
Symbol 711 EditableTextUses:601Used by:719
Symbol 712 GraphicUsed by:713 718 747 749 754 756
Symbol 713 MovieClipUses:712Used by:718 747 749 754 756
Symbol 714 GraphicUsed by:715 718
Symbol 715 MovieClipUses:714Used by:718
Symbol 716 GraphicUsed by:718
Symbol 717 GraphicUsed by:718
Symbol 718 ButtonUses:713 715 716 717 712 714Used by:719
Symbol 719 MovieClip {gogobee_fla.levels_209}Uses:524 526 540 545 550 555 560 565 570 575 580 585 590 595 600 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 632 637 642 647 652 657 662 667 672 677 682 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 718Used by:864
Symbol 720 GraphicUsed by:721
Symbol 721 MovieClipUses:720Used by:752
Symbol 722 GraphicUsed by:752 759
Symbol 723 GraphicUsed by:724
Symbol 724 MovieClipUses:723Used by:752 759
Symbol 725 GraphicUsed by:726 745
Symbol 726 MovieClipUses:725Used by:745
Symbol 727 TextUses:477Used by:745
Symbol 728 GraphicUsed by:729 745 747 749 754 756
Symbol 729 MovieClipUses:728Used by:745 747 749 754 756
Symbol 730 MovieClipUses:453Used by:745 747 749 754 756
Symbol 731 GraphicUsed by:732 745 747 749 754 756
Symbol 732 MovieClipUses:731Used by:745 747 749 754 756
Symbol 733 MovieClipUses:457Used by:745 747 749 754 756
Symbol 734 GraphicUsed by:735 745 747 749 754 756
Symbol 735 MovieClipUses:734Used by:745 747 749 754 756
Symbol 736 MovieClipUses:461Used by:745 747 749 754 756
Symbol 737 MovieClipUses:463Used by:745 747 749 754 756
Symbol 738 GraphicUsed by:739 745 747 749 754 756
Symbol 739 MovieClipUses:738Used by:744
Symbol 740 GraphicUsed by:741 745 747 749 754 756
Symbol 741 MovieClipUses:740Used by:744
Symbol 742 GraphicUsed by:743 745 747 749 754 756
Symbol 743 MovieClipUses:742Used by:744
Symbol 744 MovieClipUses:739 741 743Used by:745 747 749 754 756
Symbol 745 ButtonUses:726 727 729 730 732 733 735 736 737 744 725 453 731 457 734 461 463 738 740 742 728Used by:752 808
Symbol 746 TextUses:477Used by:747
Symbol 747 ButtonUses:746 713 729 730 732 733 735 736 737 744 712 453 731 457 734 461 463 738 740 742 728Used by:752 808
Symbol 748 TextUses:477Used by:749 911
Symbol 749 ButtonUses:748 713 729 730 732 733 735 736 737 744 453 731 457 734 461 463 738 740 742 712 728Used by:752 759 808 809
Symbol 750 GraphicUsed by:751
Symbol 751 MovieClipUses:750Used by:752 759 808
Symbol 752 MovieClip {gogobee_fla.levelcompleted_265}Uses:721 722 724 745 747 749 751Used by:864
Symbol 753 TextUses:477Used by:754
Symbol 754 ButtonUses:753 713 729 730 732 733 735 736 737 744 453 731 457 734 461 463 738 740 742 712 728Used by:759 809
Symbol 755 TextUses:477Used by:756
Symbol 756 ButtonUses:755 713 729 730 732 733 735 736 737 744 453 731 457 734 461 463 738 740 742 712 728Used by:759 809
Symbol 757 GraphicUsed by:758
Symbol 758 MovieClipUses:757Used by:759 809
Symbol 759 MovieClip {gogobee_fla.levelfailed_284}Uses:722 724 754 749 756 758 751Used by:864
Symbol 760 EditableTextUses:529Used by:864
Symbol 761 GraphicUsed by:763 766
Symbol 762 GraphicUsed by:763 766
Symbol 763 MovieClipUses:761 762Used by:766 769
Symbol 764 GraphicUsed by:765 766
Symbol 765 MovieClipUses:764Used by:766 769
Symbol 766 ButtonUses:763 765 761 762 764Used by:770
Symbol 767 GraphicUsed by:768
Symbol 768 MovieClipUses:767Used by:769
Symbol 769 MovieClip {gogobee_fla.ewsound_but_village_292}Uses:763 765 768Used by:770
Symbol 770 MovieClip {gogobee_fla.ewsndButton_288}Uses:766 769Used by:864
Symbol 771 GraphicUsed by:772
Symbol 772 MovieClipUses:771Used by:804 949
Symbol 773 GraphicUsed by:804
Symbol 774 TextUses:529Used by:804
Symbol 775 GraphicUsed by:804
Symbol 776 EditableTextUses:529Used by:804
Symbol 777 GraphicUsed by:780
Symbol 778 TextUses:529Used by:779
Symbol 779 ButtonUses:778Used by:780
Symbol 780 MovieClipUses:777 779Used by:804
Symbol 781 GraphicUsed by:784
Symbol 782 TextUses:529Used by:783
Symbol 783 ButtonUses:782Used by:784
Symbol 784 MovieClipUses:781 783Used by:804
Symbol 785 GraphicUsed by:788
Symbol 786 TextUses:529Used by:787
Symbol 787 ButtonUses:786Used by:788
Symbol 788 MovieClipUses:785 787Used by:804
Symbol 789 GraphicUsed by:792
Symbol 790 TextUses:529Used by:791
Symbol 791 ButtonUses:790Used by:792
Symbol 792 MovieClipUses:789 791Used by:804
Symbol 793 EditableTextUses:529Used by:804
Symbol 794 GraphicUsed by:804
Symbol 795 TextUses:529Used by:804
Symbol 796 EditableTextUses:529Used by:804
Symbol 797 GraphicUsed by:798
Symbol 798 MovieClipUses:797Used by:804
Symbol 799 GraphicUsed by:802 803
Symbol 800 GraphicUsed by:801 803
Symbol 801 MovieClipUses:800Used by:802
Symbol 802 MovieClipUses:799 801Used by:803
Symbol 803 ButtonUses:802 81 799 800Used by:804
Symbol 804 MovieClip {gogobee_fla.pan_294}Uses:772 773 774 775 531 776 780 784 788 792 793 794 795 796 798 803Used by:864
Symbol 805 BitmapUsed by:806
Symbol 806 GraphicUses:805Used by:807
Symbol 807 MovieClipUses:806Used by:808 809
Symbol 808 MovieClip {gogobee_fla.Symbol19_308}Uses:807 745 747 749 751Used by:864
Symbol 809 MovieClip {gogobee_fla.levelfd_310}Uses:807 754 749 756 758Used by:864
Symbol 810 GraphicUsed by:811
Symbol 811 MovieClipUses:810Used by:864
Symbol 812 GraphicUsed by:813
Symbol 813 MovieClipUses:812Used by:864
Symbol 814 GraphicUsed by:818 949
Symbol 815 GraphicUsed by:818 949
Symbol 816 GraphicUsed by:817
Symbol 817 MovieClipUses:816Used by:818 949
Symbol 818 MovieClip {gogobee_fla.frontv_313}Uses:814 815 817Used by:864
Symbol 819 GraphicUsed by:820
Symbol 820 MovieClipUses:819Used by:821
Symbol 821 MovieClipUses:820Used by:837 839 949
Symbol 822 GraphicUsed by:823
Symbol 823 MovieClipUses:822Used by:824
Symbol 824 MovieClipUses:823Used by:837 839 949
Symbol 825 GraphicUsed by:826
Symbol 826 MovieClipUses:825Used by:827
Symbol 827 MovieClipUses:826Used by:837 839 949
Symbol 828 GraphicUsed by:829
Symbol 829 MovieClipUses:828Used by:830
Symbol 830 MovieClipUses:829Used by:837 839 949
Symbol 831 GraphicUsed by:832
Symbol 832 MovieClipUses:831Used by:833
Symbol 833 MovieClipUses:832Used by:837 839 949
Symbol 834 GraphicUsed by:837 949
Symbol 835 GraphicUsed by:836
Symbol 836 MovieClipUses:835Used by:837 839 949
Symbol 837 MovieClipUses:821 824 827 830 833 834 836Used by:840
Symbol 838 GraphicUsed by:839 949
Symbol 839 MovieClip {gogobee_fla.honeycoomcopy2_328}Uses:821 824 827 830 838 836 833Used by:840
Symbol 840 MovieClip {gogobee_fla.Symbol15_315}Uses:837 839Used by:864
Symbol 841 GraphicUsed by:851
Symbol 842 GraphicUsed by:851 949
Symbol 843 GraphicUsed by:851 949
Symbol 844 GraphicUsed by:851 949
Symbol 845 GraphicUsed by:851 949
Symbol 846 GraphicUsed by:851 949
Symbol 847 GraphicUsed by:851 949
Symbol 848 GraphicUsed by:851 949
Symbol 849 GraphicUsed by:851 949
Symbol 850 GraphicUsed by:851 949
Symbol 851 MovieClip {gogobee_fla.stone05_329}Uses:841 842 843 844 845 846 847 848 849 850Used by:864
Symbol 852 GraphicUsed by:853
Symbol 853 MovieClipUses:852Used by:864
Symbol 854 GraphicUsed by:855
Symbol 855 MovieClipUses:854Used by:864
Symbol 856 GraphicUsed by:857
Symbol 857 MovieClipUses:856Used by:864
Symbol 858 GraphicUsed by:859
Symbol 859 MovieClipUses:858Used by:864
Symbol 860 GraphicUsed by:861
Symbol 861 MovieClipUses:860Used by:864
Symbol 862 GraphicUsed by:863
Symbol 863 MovieClipUses:862Used by:864
Symbol 864 MovieClip {gogobee_fla.gamepage_207}Uses:520 522 719 752 759 760 770 804 808 809 811 813 818 840 851 853 855 857 859 861 863Used by:Timeline
Symbol 865 EditableTextUses:477Used by:Timeline
Symbol 866 EditableTextUses:477Used by:Timeline
Symbol 867 BitmapUsed by:868
Symbol 868 GraphicUses:867Used by:Timeline
Symbol 869 GraphicUses:491Used by:870
Symbol 870 MovieClipUses:869Used by:Timeline
Symbol 871 GraphicUsed by:872
Symbol 872 MovieClipUses:871Used by:Timeline
Symbol 873 MovieClipUses:453Used by:910 911 913  Timeline
Symbol 874 GraphicUsed by:875
Symbol 875 MovieClipUses:874Used by:910 911 913  Timeline
Symbol 876 MovieClipUses:457Used by:910 911 913  Timeline
Symbol 877 GraphicUsed by:878
Symbol 878 MovieClipUses:877Used by:910 911 913  Timeline
Symbol 879 MovieClipUses:461Used by:910 911 913  Timeline
Symbol 880 MovieClipUses:463Used by:910 911 913  Timeline
Symbol 881 GraphicUsed by:882
Symbol 882 MovieClipUses:881Used by:887
Symbol 883 GraphicUsed by:884
Symbol 884 MovieClipUses:883Used by:887
Symbol 885 GraphicUsed by:886
Symbol 886 MovieClipUses:885Used by:887
Symbol 887 MovieClipUses:882 884 886Used by:910 911 913  Timeline
Symbol 888 GraphicUsed by:Timeline
Symbol 889 FontUsed by:890 892 894
Symbol 890 TextUses:889Used by:Timeline
Symbol 891 GraphicUsed by:Timeline
Symbol 892 TextUses:889Used by:Timeline
Symbol 893 GraphicUsed by:Timeline
Symbol 894 TextUses:889Used by:Timeline
Symbol 895 GraphicUsed by:Timeline
Symbol 896 GraphicUsed by:Timeline
Symbol 897 GraphicUsed by:898
Symbol 898 MovieClipUses:897Used by:910 911 913
Symbol 899 TextUses:477Used by:910
Symbol 900 TextUses:477Used by:910
Symbol 901 TextUses:477Used by:910
Symbol 902 TextUses:477Used by:910
Symbol 903 TextUses:477Used by:910
Symbol 904 TextUses:477Used by:910
Symbol 905 TextUses:477Used by:910
Symbol 906 TextUses:477Used by:910
Symbol 907 TextUses:477Used by:910
Symbol 908 TextUses:477Used by:910
Symbol 909 GraphicUsed by:910
Symbol 910 ButtonUses:898 899 900 901 902 903 904 905 906 907 908 873 875 876 878 879 880 887 909Used by:Timeline
Symbol 911 ButtonUses:748 898 873 875 876 878 879 880 887 81Used by:Timeline
Symbol 912 TextUses:477Used by:913
Symbol 913 ButtonUses:912 898 873 875 876 878 879 880 887 81Used by:Timeline
Symbol 914 GraphicUsed by:915
Symbol 915 MovieClipUses:914Used by:918
Symbol 916 GraphicUsed by:917
Symbol 917 MovieClipUses:916Used by:918
Symbol 918 MovieClip {gogobee_fla.cong19_352}Uses:915 917Used by:Timeline
Symbol 919 GraphicUsed by:920
Symbol 920 MovieClipUses:919Used by:933
Symbol 921 GraphicUsed by:922
Symbol 922 MovieClipUses:921Used by:924
Symbol 923 GraphicUsed by:924
Symbol 924 MovieClipUses:922 923Used by:933
Symbol 925 FontUsed by:926
Symbol 926 EditableTextUses:925Used by:933
Symbol 927 GraphicUsed by:930
Symbol 928 GraphicUsed by:930
Symbol 929 GraphicUsed by:930
Symbol 930 ButtonUses:81 927 928 929Used by:933
Symbol 931 FontUsed by:932
Symbol 932 TextUses:931Used by:933
Symbol 933 MovieClip {gogobee_fla.msg5_355}Uses:920 924 926 930 932Used by:Timeline
Symbol 934 FontUsed by:935 936
Symbol 935 EditableTextUses:934Used by:Timeline
Symbol 936 EditableTextUses:934Used by:Timeline
Symbol 937 GraphicUsed by:949
Symbol 938 GraphicUsed by:949
Symbol 939 GraphicUsed by:949
Symbol 940 GraphicUsed by:949
Symbol 941 GraphicUsed by:949
Symbol 942 GraphicUsed by:949
Symbol 943 GraphicUsed by:949
Symbol 944 GraphicUsed by:949
Symbol 945 GraphicUsed by:949
Symbol 946 GraphicUsed by:949
Symbol 947 GraphicUsed by:948
Symbol 948 MovieClipUses:947 10Used by:949
Symbol 949 MovieClipUses:522 937 938 772 939 940 941 942 821 824 827 830 833 834 836 943 814 944 945 842 843 844 845 846 847 848 849 850 838 946 948 815 817Used by:Timeline
Symbol 950 TextUses:477Used by:951
Symbol 951 ButtonUses:950 482 454 456 458 460 462 464 471 481 453 455 457 459 461 463 465 467 469Used by:Timeline

Instance Names

"bar"Frame 1Symbol 443 MovieClip {gogobee_fla.name173_168}
"load_txt"Frame 1Symbol 445 EditableText
"total_txt"Frame 1Symbol 446 EditableText
"logo1"Frame 1Symbol 448 Button
"Playgame"Frame 10Symbol 479 Button
"Inst"Frame 10Symbol 483 Button
"loadgame"Frame 10Symbol 487 MovieClip {gogobee_fla.loadgame_189}
"Inst"Frame 10Symbol 488 Button
"back"Frame 20Symbol 512 Button
"mem"Frame 30Symbol 865 EditableText
"fr"Frame 30Symbol 866 EditableText
"submitScore"Frame 40Symbol 910 Button
"moreGames"Frame 40Symbol 911 Button
"congplayagain"Frame 40Symbol 913 Button
"gamestatus"Frame 40Symbol 918 MovieClip {gogobee_fla.cong19_352}
"msg1"Frame 40Symbol 933 MovieClip {gogobee_fla.msg5_355}
"scoreText1"Frame 40Symbol 935 EditableText
"nameText"Frame 40Symbol 936 EditableText
"tutmc"Frame 50Symbol 949 MovieClip
"cont"Frame 50Symbol 951 Button
"target"Symbol 83 MovieClip {BasMc} Frame 1Symbol 82 MovieClip
"tras"Symbol 443 MovieClip {gogobee_fla.name173_168} Frame 1Symbol 435 MovieClip
"maskbar"Symbol 443 MovieClip {gogobee_fla.name173_168} Frame 1Symbol 438 MovieClip {gogobee_fla.name172_170}
"Playgame"Symbol 487 MovieClip {gogobee_fla.loadgame_189} Frame 2Symbol 486 Button
"level1"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 540 MovieClip {gogobee_fla.levlselecc3_211}
"level2"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 545 MovieClip {gogobee_fla.levlselecc4_214}
"level3"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 550 MovieClip {gogobee_fla.levlselecc5_216}
"level4"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 555 MovieClip {gogobee_fla.levlselecc6_218}
"level5"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 560 MovieClip {gogobee_fla.levlselecc7_220}
"level6"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 565 MovieClip {gogobee_fla.levlselecc8_222}
"level7"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 570 MovieClip {gogobee_fla.levlselecc9_224}
"level8"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 575 MovieClip {gogobee_fla.levlselecc10_226}
"level9"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 580 MovieClip {gogobee_fla.levlselecc11_228}
"level10"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 585 MovieClip {gogobee_fla.levlselecc12_230}
"level11"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 590 MovieClip {gogobee_fla.levlselecc13_232}
"level12"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 595 MovieClip {gogobee_fla.levlselecc14_234}
"level13"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 600 MovieClip {gogobee_fla.levlselecc15_236}
"timelevel1"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 602 EditableText
"scorelevel1"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 603 EditableText
"timelevel3"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 604 EditableText
"scorelevel3"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 605 EditableText
"timelevel4"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 606 EditableText
"scorelevel4"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 607 EditableText
"timelevel5"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 608 EditableText
"scorelevel5"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 609 EditableText
"timelevel6"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 610 EditableText
"scorelevel6"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 611 EditableText
"timelevel7"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 612 EditableText
"scorelevel7"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 613 EditableText
"timelevel8"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 614 EditableText
"scorelevel8"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 615 EditableText
"timelevel9"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 616 EditableText
"scorelevel9"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 617 EditableText
"timelevel10"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 618 EditableText
"scorelevel10"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 619 EditableText
"timelevel11"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 620 EditableText
"scorelevel11"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 621 EditableText
"timelevel12"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 622 EditableText
"scorelevel12"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 623 EditableText
"timelevel2"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 624 EditableText
"scorelevel2"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 625 EditableText
"timelevel13"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 626 EditableText
"scorelevel13"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 627 EditableText
"level14"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 632 MovieClip {gogobee_fla.levlselecc16_238}
"level15"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 637 MovieClip {gogobee_fla.levlselecc17_240}
"level16"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 642 MovieClip {gogobee_fla.levlselecc18_242}
"level17"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 647 MovieClip {gogobee_fla.levlselecc19_244}
"level18"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 652 MovieClip {gogobee_fla.levlselecc20_246}
"level19"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 657 MovieClip {gogobee_fla.levlselecc21_248}
"level20"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 662 MovieClip {gogobee_fla.levlselecc22_250}
"level21"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 667 MovieClip {gogobee_fla.levlselecc23_252}
"level22"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 672 MovieClip {gogobee_fla.levlselecc24_254}
"level23"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 677 MovieClip {gogobee_fla.levlselecc25_256}
"level24"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 682 MovieClip {gogobee_fla.levlselecc26_258}
"level25"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 687 MovieClip {gogobee_fla.levlselecc27_260}
"timelevel14"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 688 EditableText
"scorelevel14"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 689 EditableText
"timelevel15"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 690 EditableText
"scorelevel15"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 691 EditableText
"timelevel16"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 692 EditableText
"scorelevel16"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 693 EditableText
"timelevel17"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 694 EditableText
"scorelevel17"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 695 EditableText
"timelevel18"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 696 EditableText
"scorelevel18"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 697 EditableText
"timelevel19"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 698 EditableText
"scorelevel19"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 699 EditableText
"timelevel20"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 700 EditableText
"scorelevel20"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 701 EditableText
"timelevel21"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 702 EditableText
"scorelevel21"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 703 EditableText
"timelevel22"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 704 EditableText
"scorelevel22"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 705 EditableText
"timelevel23"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 706 EditableText
"scorelevel23"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 707 EditableText
"timelevel24"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 708 EditableText
"scorelevel24"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 709 EditableText
"timelevel25"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 710 EditableText
"scorelevel25"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 711 EditableText
"nextlevels"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 718 Button
"prelevels"Symbol 719 MovieClip {gogobee_fla.levels_209} Frame 1Symbol 718 Button
"quit"Symbol 752 MovieClip {gogobee_fla.levelcompleted_265} Frame 1Symbol 745 Button
"nextlevel"Symbol 752 MovieClip {gogobee_fla.levelcompleted_265} Frame 1Symbol 747 Button
"moregames"Symbol 752 MovieClip {gogobee_fla.levelcompleted_265} Frame 1Symbol 749 Button
"tagain"Symbol 759 MovieClip {gogobee_fla.levelfailed_284} Frame 1Symbol 754 Button
"moregames"Symbol 759 MovieClip {gogobee_fla.levelfailed_284} Frame 1Symbol 749 Button
"solution"Symbol 759 MovieClip {gogobee_fla.levelfailed_284} Frame 1Symbol 756 Button
"Line"Symbol 769 MovieClip {gogobee_fla.ewsound_but_village_292} Frame 1Symbol 768 MovieClip
"sndon"Symbol 770 MovieClip {gogobee_fla.ewsndButton_288} Frame 1Symbol 766 Button
"sndoff"Symbol 770 MovieClip {gogobee_fla.ewsndButton_288} Frame 2Symbol 769 MovieClip {gogobee_fla.ewsound_but_village_292}
"score"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 776 EditableText
"Preset"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 780 MovieClip
"Pquit"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 784 MovieClip
"levelSelectMc"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 788 MovieClip
"solutionLink"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 792 MovieClip
"levelTxt"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 793 EditableText
"TargetTxt"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 796 EditableText
"hidepanel"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 798 MovieClip
"logo"Symbol 804 MovieClip {gogobee_fla.pan_294} Frame 1Symbol 803 Button
"quit"Symbol 808 MovieClip {gogobee_fla.Symbol19_308} Frame 1Symbol 745 Button
"nextlevel"Symbol 808 MovieClip {gogobee_fla.Symbol19_308} Frame 1Symbol 747 Button
"moregames"Symbol 808 MovieClip {gogobee_fla.Symbol19_308} Frame 1Symbol 749 Button
"tagain"Symbol 809 MovieClip {gogobee_fla.levelfd_310} Frame 1Symbol 754 Button
"moregames1"Symbol 809 MovieClip {gogobee_fla.levelfd_310} Frame 1Symbol 749 Button
"solution"Symbol 809 MovieClip {gogobee_fla.levelfd_310} Frame 1Symbol 756 Button
"outer"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 1Symbol 520 MovieClip
"levels"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 1Symbol 719 MovieClip {gogobee_fla.levels_209}
"times"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 1Symbol 760 EditableText
"sndBtn"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 1Symbol 770 MovieClip {gogobee_fla.ewsndButton_288}
"pan"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 1Symbol 804 MovieClip {gogobee_fla.pan_294}
"levelComplet"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 1Symbol 808 MovieClip {gogobee_fla.Symbol19_308}
"levelFail"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 1Symbol 809 MovieClip {gogobee_fla.levelfd_310}
"bottomhit"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 1Symbol 811 MovieClip
"l1b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 2Symbol 813 MovieClip
"basket"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 2Symbol 818 MovieClip {gogobee_fla.frontv_313}
"beeT"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 2Symbol 840 MovieClip {gogobee_fla.Symbol15_315}
"l1b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 2Symbol 813 MovieClip
"l1b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 2Symbol 813 MovieClip
"l7b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 811 MovieClip
"l7b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 811 MovieClip
"l7b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 811 MovieClip
"r2l7"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l7b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 853 MovieClip
"bball7"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 855 MovieClip
"r1l7"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 851 MovieClip {gogobee_fla.stone05_329}
"beeT"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 840 MovieClip {gogobee_fla.Symbol15_315}
"l7b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 811 MovieClip
"r3l7"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l7"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 3Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l2b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 4Symbol 853 MovieClip
"l2b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 4Symbol 813 MovieClip
"r1l2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 4Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l2b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 4Symbol 813 MovieClip
"l2b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 4Symbol 813 MovieClip
"r2l2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 4Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l2b7"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 4Symbol 857 MovieClip
"r1l3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l3b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 853 MovieClip
"beeT1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 840 MovieClip {gogobee_fla.Symbol15_315}
"r2l3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l3b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 813 MovieClip
"l3b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 813 MovieClip
"l3b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 5Symbol 859 MovieClip
"l4b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 813 MovieClip
"l4b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 857 MovieClip
"p1l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 861 MovieClip
"l4b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 853 MovieClip
"r1l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 6Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l5b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 853 MovieClip
"r5l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r1l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l5b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 853 MovieClip
"r13l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r16l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l5b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 7Symbol 859 MovieClip
"l6b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 863 MovieClip
"l6b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 863 MovieClip
"l6b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 863 MovieClip
"l6b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 811 MovieClip
"l6b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 863 MovieClip
"l6b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 863 MovieClip
"p1l6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 861 MovieClip
"r1l6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 851 MovieClip {gogobee_fla.stone05_329}
"bball"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 855 MovieClip
"r4l6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 8Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l12b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 853 MovieClip
"bbal12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 855 MovieClip
"l12b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 863 MovieClip
"l12b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 853 MovieClip
"l12b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 857 MovieClip
"r1l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l12b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 853 MovieClip
"r2l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l12"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 9Symbol 851 MovieClip {gogobee_fla.stone05_329}
"basket"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 818 MovieClip {gogobee_fla.frontv_313}
"l8b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 811 MovieClip
"bball8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 855 MovieClip
"r14l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l8b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 853 MovieClip
"l8b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 853 MovieClip
"r1l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l8b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 853 MovieClip
"r9l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l8b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 853 MovieClip
"r11l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l8b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 811 MovieClip
"r4l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l8"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 10Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l9b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 853 MovieClip
"r5l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"beeT"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 840 MovieClip {gogobee_fla.Symbol15_315}
"l9b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 811 MovieClip
"l9b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 857 MovieClip
"l9b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 813 MovieClip
"r12l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r1l9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l9b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 853 MovieClip
"bball9"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 855 MovieClip
"l9b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 11Symbol 811 MovieClip
"l10b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 811 MovieClip
"r8l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"basket3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 818 MovieClip {gogobee_fla.frontv_313}
"r3l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"bball10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 855 MovieClip
"l10b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 853 MovieClip
"r4l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r1l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l10b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 853 MovieClip
"r6l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l10b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 853 MovieClip
"r7l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r17l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r16l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r18l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r19l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r20l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r21l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r22l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l10b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 811 MovieClip
"r23l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r24l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"beeT1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 840 MovieClip {gogobee_fla.Symbol15_315}
"l10b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 857 MovieClip
"r25l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r26l10"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 12Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l11b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 853 MovieClip
"r10l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l11b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 853 MovieClip
"r5l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l11b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 853 MovieClip
"p1l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 861 MovieClip
"r2l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l11b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 811 MovieClip
"beeT"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 840 MovieClip {gogobee_fla.Symbol15_315}
"basket"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 818 MovieClip {gogobee_fla.frontv_313}
"bball11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 855 MovieClip
"r9l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l11b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 853 MovieClip
"r1l11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l11b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 811 MovieClip
"b1ball11"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 13Symbol 855 MovieClip
"r2l13"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 851 MovieClip {gogobee_fla.stone05_329}
"beeT1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 840 MovieClip {gogobee_fla.Symbol15_315}
"l13b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 813 MovieClip
"r3l13"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l13"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l13b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 813 MovieClip
"l13b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 813 MovieClip
"l13b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 863 MovieClip
"l13b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 863 MovieClip
"basket3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 818 MovieClip {gogobee_fla.frontv_313}
"r5l13"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l13"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l13"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r1l13"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l13b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 857 MovieClip
"l13b7"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 853 MovieClip
"bball13"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 14Symbol 855 MovieClip
"l25b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 811 MovieClip
"r8l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l25b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 853 MovieClip
"r1l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 861 MovieClip
"p1l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 861 MovieClip
"r13l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r16l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l25b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 853 MovieClip
"l25b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 853 MovieClip
"r18l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r19l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r20l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r23l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r24l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r25l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r26l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r17l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r21l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r22l25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 851 MovieClip {gogobee_fla.stone05_329}
"bbal25"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 15Symbol 855 MovieClip
"l14b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 811 MovieClip
"l14b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 853 MovieClip
"p1l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 861 MovieClip
"r1l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l14b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 857 MovieClip
"r6l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 861 MovieClip
"r8l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p3l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 861 MovieClip
"r9l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p4l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 861 MovieClip
"r12l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l14"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 16Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l15b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 811 MovieClip
"l15b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 853 MovieClip
"l15b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 853 MovieClip
"l15b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 857 MovieClip
"r1l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 861 MovieClip
"r3l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p1l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 861 MovieClip
"r6l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l15"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 17Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l16b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 811 MovieClip
"basket"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 818 MovieClip {gogobee_fla.frontv_313}
"l16b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 853 MovieClip
"l16b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 853 MovieClip
"p4l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 861 MovieClip
"r5l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l16b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 853 MovieClip
"r1l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 861 MovieClip
"p3l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 861 MovieClip
"r4l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p1l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 861 MovieClip
"r2l16"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 18Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l17b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 811 MovieClip
"beeT"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 840 MovieClip {gogobee_fla.Symbol15_315}
"l17b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 857 MovieClip
"p3l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 861 MovieClip
"p4l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 861 MovieClip
"r3l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p1l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 861 MovieClip
"r1l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 861 MovieClip
"r2l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l17b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 853 MovieClip
"r5l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p5l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 861 MovieClip
"r4l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l17b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 853 MovieClip
"r6l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l17"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 19Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l18b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 811 MovieClip
"r4l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l18b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 853 MovieClip
"l18b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 853 MovieClip
"l18b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 857 MovieClip
"p2l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 861 MovieClip
"p1l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 861 MovieClip
"r1l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r17l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r18l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r19l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r16l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p3l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 861 MovieClip
"r20l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l18"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 20Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l24b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 811 MovieClip
"b1bal24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 855 MovieClip
"l24b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 853 MovieClip
"r18l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l24b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 857 MovieClip
"l24b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 853 MovieClip
"r8l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"bbal24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 855 MovieClip
"l24b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 853 MovieClip
"r22l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r23l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r24l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r25l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l24b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 857 MovieClip
"r1l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r16l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r17l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r19l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r21l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r20l24"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 21Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l19b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 811 MovieClip
"l19b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 853 MovieClip
"r3l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l19b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 857 MovieClip
"r4l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p1l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 861 MovieClip
"r5l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r1l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l19b6"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 853 MovieClip
"r17l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r19l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r18l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r20l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l19b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 853 MovieClip
"l19b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 853 MovieClip
"r10l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p4l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 861 MovieClip
"r11l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 861 MovieClip
"p3l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 861 MovieClip
"r6l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r16l19"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 22Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l20b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 811 MovieClip
"r1l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l20b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 857 MovieClip
"l20b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 853 MovieClip
"r7l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p1l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 861 MovieClip
"r3l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l20b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 853 MovieClip
"r11l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r16l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l20b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 853 MovieClip
"p2l20"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 23Symbol 861 MovieClip
"l21b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 811 MovieClip
"l21b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 857 MovieClip
"l21b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 853 MovieClip
"p1l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 861 MovieClip
"r5l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r8l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r9l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r17l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r18l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l21b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 853 MovieClip
"r19l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r20l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r25l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r22l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r23l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r21l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 861 MovieClip
"r16l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"bbal21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 855 MovieClip
"r12l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r24l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l21b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 853 MovieClip
"r1l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r26l21"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 24Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l22b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 811 MovieClip
"l22b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 857 MovieClip
"l22b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 853 MovieClip
"r4l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p1l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 861 MovieClip
"r1l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l22b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 853 MovieClip
"r9l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l22b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 853 MovieClip
"r10l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r11l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 861 MovieClip
"r8l22"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 25Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l23b1"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 811 MovieClip
"r1l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r2l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r4l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r7l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r5l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r6l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l23b4"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 853 MovieClip
"p1l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 861 MovieClip
"r8l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r15l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r19l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r16l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r20l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r17l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r21l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l23b5"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 853 MovieClip
"r9l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r12l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r10l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r13l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r14l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r3l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l23b3"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 853 MovieClip
"r22l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r24l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r23l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r25l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"l23b2"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 853 MovieClip
"r26l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r29l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r27l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r30l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r28l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r31l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"p2l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 861 MovieClip
"r11l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"r18l23"Symbol 864 MovieClip {gogobee_fla.gamepage_207} Frame 26Symbol 851 MovieClip {gogobee_fla.stone05_329}
"tex"Symbol 933 MovieClip {gogobee_fla.msg5_355} Frame 1Symbol 926 EditableText
"okBtn"Symbol 933 MovieClip {gogobee_fla.msg5_355} Frame 1Symbol 930 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS3.

Labels

"preloader"Frame 1
"start"Frame 10
"inst"Frame 20
"gamepage"Frame 30
"cong"Frame 40
"tut"Frame 50




http://swfchan.com/22/109377/info.shtml
Created: 14/3 -2019 12:00:39 Last modified: 14/3 -2019 12:00:39 Server time: 04/12 -2020 16:00:04