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

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

Bipole.swf

This is the info page for
Flash #60565

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


Text
<p align="center"><font face="DilleniaUPC" size="14" color="#27277a" letterSpacing="0.000000" kerning="1"><b>light</b></font></p>

<p align="center"><font face="arial" size="16" color="#b01f64" letterSpacing="0.000000" kerning="1"><b>bcdehgdch</b></font></p>

Loading

<p align="center"><font face="DilleniaUPC" size="60" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>

%

Level Failed

Press 'R' to Restart

Well done

Press SPACE to continue

<p align="left"></p>

<p align="center"><font face="DilleniaUPC" size="30" color="#000000" letterSpacing="0.000000" kerning="1"><b> </b></font></p>

www.flashkit.com
www.free-loops.com
www.a1freesoundeffects.com
www.pachd.com
www.GRSites.com

SOUND

Tomas

Thomas Theisens

Submit Highscore

Close

Close

TOTAL TIME

PLAYER NAME

SUBMIT HIGHSCORE

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

<p align="left"><font face="DilleniaUPC" size="22" color="#000000" letterSpacing="0.000000" kerning="1"><b>#3</b></font></p>

<p align="left"><font face="DilleniaUPC" size="22" color="#000000" letterSpacing="0.000000" kerning="1"><b>00:00</b></font></p>

Play full version at:

Options

MUSIC

SOUND

QUALITY:

low

medium

high

Start Game

Level Properties

Rotate

magnets?

Press 'R' to reset

Press ‘SPACE’ to lock

change polarity

ActionScript [AS3]

Section 1
//CarPosHold_anim_99 (Bipole_backgrounds_interfaces_light_fla.CarPosHold_anim_99) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class CarPosHold_anim_99 extends MovieClip { public function CarPosHold_anim_99(){ addFrameScript(3, frame4); } function frame4(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 2
//CharNegDeath_anim_106 (Bipole_backgrounds_interfaces_light_fla.CharNegDeath_anim_106) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class CharNegDeath_anim_106 extends MovieClip { public function CharNegDeath_anim_106(){ addFrameScript(9, frame10); } function frame10(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 3
//CharNegJoining_anim_105 (Bipole_backgrounds_interfaces_light_fla.CharNegJoining_anim_105) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class CharNegJoining_anim_105 extends MovieClip { public function CharNegJoining_anim_105(){ addFrameScript(6, frame7); } function frame7(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 4
//CharPosDeath_anim_102 (Bipole_backgrounds_interfaces_light_fla.CharPosDeath_anim_102) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class CharPosDeath_anim_102 extends MovieClip { public function CharPosDeath_anim_102(){ addFrameScript(11, frame12); } function frame12(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 5
//CharPosJoining_anim_101 (Bipole_backgrounds_interfaces_light_fla.CharPosJoining_anim_101) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class CharPosJoining_anim_101 extends MovieClip { public function CharPosJoining_anim_101(){ addFrameScript(9, frame10); } function frame10(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 6
//CloseButton_73 (Bipole_backgrounds_interfaces_light_fla.CloseButton_73) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class CloseButton_73 extends MovieClip { public var hit:MovieClip; } }//package Bipole_backgrounds_interfaces_light_fla
Section 7
//LevelbarObj_159 (Bipole_backgrounds_interfaces_light_fla.LevelbarObj_159) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; import flash.text.*; public dynamic class LevelbarObj_159 extends MovieClip { public var levelbar_txt:TextField; } }//package Bipole_backgrounds_interfaces_light_fla
Section 8
//Logo_anim_56 (Bipole_backgrounds_interfaces_light_fla.Logo_anim_56) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class Logo_anim_56 extends MovieClip { public function Logo_anim_56(){ addFrameScript(100, frame101); } function frame101(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 9
//MusicSound_btn_87 (Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class MusicSound_btn_87 extends MovieClip { public var icon:MovieClip; } }//package Bipole_backgrounds_interfaces_light_fla
Section 10
//optionsscreen_86 (Bipole_backgrounds_interfaces_light_fla.optionsscreen_86) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class optionsscreen_86 extends MovieClip { public var sound:MovieClip; public var music:MovieClip; public var closebutton:MovieClip; public var quality:MovieClip; } }//package Bipole_backgrounds_interfaces_light_fla
Section 11
//Quality_btn_96 (Bipole_backgrounds_interfaces_light_fla.Quality_btn_96) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class Quality_btn_96 extends MovieClip { public var icon:MovieClip; } }//package Bipole_backgrounds_interfaces_light_fla
Section 12
//QualitySound_btn_95 (Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class QualitySound_btn_95 extends MovieClip { public var icon:MovieClip; } }//package Bipole_backgrounds_interfaces_light_fla
Section 13
//splodgyLogoBig_blue_66 (Bipole_backgrounds_interfaces_light_fla.splodgyLogoBig_blue_66) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class splodgyLogoBig_blue_66 extends MovieClip { public function splodgyLogoBig_blue_66(){ addFrameScript(34, frame35); } function frame35(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 14
//splodgyLogoBig_red_67 (Bipole_backgrounds_interfaces_light_fla.splodgyLogoBig_red_67) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class splodgyLogoBig_red_67 extends MovieClip { public function splodgyLogoBig_red_67(){ addFrameScript(34, frame35); } function frame35(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 15
//splodgyLogoSmall_blue_65 (Bipole_backgrounds_interfaces_light_fla.splodgyLogoSmall_blue_65) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class splodgyLogoSmall_blue_65 extends MovieClip { public function splodgyLogoSmall_blue_65(){ addFrameScript(32, frame33); } function frame33(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 16
//splodgyLogoSmall_red_64 (Bipole_backgrounds_interfaces_light_fla.splodgyLogoSmall_red_64) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; public dynamic class splodgyLogoSmall_red_64 extends MovieClip { public function splodgyLogoSmall_red_64(){ addFrameScript(32, frame33); } function frame33(){ stop(); } } }//package Bipole_backgrounds_interfaces_light_fla
Section 17
//textboxes_77 (Bipole_backgrounds_interfaces_light_fla.textboxes_77) package Bipole_backgrounds_interfaces_light_fla { import flash.display.*; import flash.text.*; public dynamic class textboxes_77 extends MovieClip { public var inputname:TextField; public var time:TextField; } }//package Bipole_backgrounds_interfaces_light_fla
Section 18
//b2CircleDef (Box2D.Collision.Shapes.b2CircleDef) package Box2D.Collision.Shapes { import Box2D.Common.Math.*; public class b2CircleDef extends b2ShapeDef { public var radius:Number; public var localPosition:b2Vec2; public function b2CircleDef(){ localPosition = new b2Vec2(0, 0); super(); type = b2Shape.e_circleShape; radius = 1; } } }//package Box2D.Collision.Shapes
Section 19
//b2CircleShape (Box2D.Collision.Shapes.b2CircleShape) package Box2D.Collision.Shapes { import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Common.*; public class b2CircleShape extends b2Shape { public var m_localPosition:b2Vec2; public var m_radius:Number; public function b2CircleShape(_arg1:b2ShapeDef){ m_localPosition = new b2Vec2(); super(_arg1); var _local2:b2CircleDef = (_arg1 as b2CircleDef); m_type = e_circleShape; m_localPosition.SetV(_local2.localPosition); m_radius = _local2.radius; } override public function TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{ var _local10:Number; var _local6:b2Mat22 = _arg1.R; var _local7:Number = (_arg1.position.x + ((_local6.col1.x * m_localPosition.x) + (_local6.col2.x * m_localPosition.y))); var _local8:Number = (_arg1.position.y + ((_local6.col1.y * m_localPosition.x) + (_local6.col2.y * m_localPosition.y))); var _local9:Number = (_arg4.p1.x - _local7); _local10 = (_arg4.p1.y - _local8); var _local11:Number = (((_local9 * _local9) + (_local10 * _local10)) - (m_radius * m_radius)); if (_local11 < 0){ return (false); }; var _local12:Number = (_arg4.p2.x - _arg4.p1.x); var _local13:Number = (_arg4.p2.y - _arg4.p1.y); var _local14:Number = ((_local9 * _local12) + (_local10 * _local13)); var _local15:Number = ((_local12 * _local12) + (_local13 * _local13)); var _local16:Number = ((_local14 * _local14) - (_local15 * _local11)); if ((((_local16 < 0)) || ((_local15 < Number.MIN_VALUE)))){ return (false); }; var _local17:Number = -((_local14 + Math.sqrt(_local16))); if ((((0 <= _local17)) && ((_local17 <= (_arg5 * _local15))))){ _local17 = (_local17 / _local15); _arg2[0] = _local17; _arg3.x = (_local9 + (_local17 * _local12)); _arg3.y = (_local10 + (_local17 * _local13)); _arg3.Normalize(); return (true); }; return (false); } public function GetLocalPosition():b2Vec2{ return (m_localPosition); } public function GetRadius():Number{ return (m_radius); } override public function ComputeSweptAABB(_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{ var _local4:b2Mat22; _local4 = _arg2.R; var _local5:Number = (_arg2.position.x + ((_local4.col1.x * m_localPosition.x) + (_local4.col2.x * m_localPosition.y))); var _local6:Number = (_arg2.position.y + ((_local4.col1.y * m_localPosition.x) + (_local4.col2.y * m_localPosition.y))); _local4 = _arg3.R; var _local7:Number = (_arg3.position.x + ((_local4.col1.x * m_localPosition.x) + (_local4.col2.x * m_localPosition.y))); var _local8:Number = (_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)); } 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 UpdateSweepRadius(_arg1:b2Vec2):void{ var _local2:Number = (m_localPosition.x - _arg1.x); var _local3:Number = (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 = _arg2.R; var _local4:Number = (_arg2.position.x + ((_local3.col1.x * m_localPosition.x) + (_local3.col2.x * m_localPosition.y))); var _local5:Number = (_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)); } override public function TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{ var _local3:b2Mat22 = _arg1.R; var _local4:Number = (_arg1.position.x + ((_local3.col1.x * m_localPosition.x) + (_local3.col2.x * m_localPosition.y))); var _local5:Number = (_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))); } } }//package Box2D.Collision.Shapes
Section 20
//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 Copy():b2FilterData{ var _local1:b2FilterData = new b2FilterData(); _local1.categoryBits = categoryBits; _local1.maskBits = maskBits; _local1.groupIndex = groupIndex; return (_local1); } } }//package Box2D.Collision.Shapes
Section 21
//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(){ center = new b2Vec2(0, 0); super(); } } }//package Box2D.Collision.Shapes
Section 22
//b2PolygonDef (Box2D.Collision.Shapes.b2PolygonDef) package Box2D.Collision.Shapes { import Box2D.Common.Math.*; import Box2D.Common.*; public class b2PolygonDef extends b2ShapeDef { public var vertices:Array; public var vertexCount:int; private static var s_mat:b2Mat22 = new b2Mat22(); public function b2PolygonDef(){ vertices = new Array(b2Settings.b2_maxPolygonVertices); super(); type = b2Shape.e_polygonShape; vertexCount = 0; var _local1:int; 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 23
//b2PolygonShape (Box2D.Collision.Shapes.b2PolygonShape) package Box2D.Collision.Shapes { import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Common.*; public class b2PolygonShape extends b2Shape { public var m_coreVertices:Array; public var m_vertices:Array; private var s_supportVec:b2Vec2; public var m_centroid:b2Vec2; public var m_normals:Array; public var m_obb:b2OBB; 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 _local3:int; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; 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; var _local2:b2PolygonDef = (_arg1 as b2PolygonDef); m_vertexCount = _local2.vertexCount; var _local4:int = _local3; var _local5:int = _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 ComputeSweptAABB(_arg1:b2AABB, _arg2:b2XForm, _arg3:b2XForm):void{ var _local4:b2AABB = s_sweptAABB1; var _local5:b2AABB = 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 GetCoreVertices():Array{ return (m_coreVertices); } public function GetCentroid():b2Vec2{ return (m_centroid); } 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 TestSegment(_arg1:b2XForm, _arg2:Array, _arg3:b2Vec2, _arg4:b2Segment, _arg5:Number):Boolean{ var _local8:Number; var _local9:Number; var _local10:b2Mat22; var _local11:b2Vec2; var _local20:Number; var _local21:Number; var _local6:Number = 0; var _local7:Number = _arg5; _local8 = (_arg4.p1.x - _arg1.position.x); _local9 = (_arg4.p1.y - _arg1.position.y); _local10 = _arg1.R; var _local12:Number = ((_local8 * _local10.col1.x) + (_local9 * _local10.col1.y)); var _local13:Number = ((_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; var _local14:Number = ((_local8 * _local10.col1.x) + (_local9 * _local10.col1.y)); var _local15:Number = ((_local8 * _local10.col2.x) + (_local9 * _local10.col2.y)); var _local16:Number = (_local14 - _local12); var _local17:Number = (_local15 - _local13); var _local18 = -1; var _local19:int; 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); } override public function ComputeMass(_arg1:b2MassData):void{ var _local10:b2Vec2; var _local11:b2Vec2; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local2:Number = 0; var _local3:Number = 0; var _local4:Number = 0; var _local5:Number = 0; var _local6:Number = 0; var _local7:Number = 0; var _local8:Number = (1 / 3); var _local9:int; while (_local9 < 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 GetNormals():Array{ return (m_normals); } public function Support(_arg1:b2XForm, _arg2:Number, _arg3:Number):b2Vec2{ var _local4:b2Vec2; var _local5:b2Mat22; var _local11:Number; _local5 = _arg1.R; var _local6:Number = ((_arg2 * _local5.col1.x) + (_arg3 * _local5.col1.y)); var _local7:Number = ((_arg2 * _local5.col2.x) + (_arg3 * _local5.col2.y)); var _local8:int; _local4 = m_coreVertices[0]; var _local9:Number = ((_local4.x * _local6) + (_local4.y * _local7)); var _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 ComputeAABB(_arg1:b2AABB, _arg2:b2XForm):void{ var _local3:b2Mat22; var _local4:b2Vec2; var _local5:b2Mat22 = 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(); var _local6:b2Mat22 = _local5; _local4 = m_obb.extents; var _local7:Number = ((_local6.col1.x * _local4.x) + (_local6.col2.x * _local4.y)); var _local8:Number = ((_local6.col1.y * _local4.x) + (_local6.col2.y * _local4.y)); _local3 = _arg2.R; _local4 = m_obb.center; var _local9:Number = (_arg2.position.x + ((_local3.col1.x * _local4.x) + (_local3.col2.x * _local4.y))); var _local10:Number = (_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)); } override public function UpdateSweepRadius(_arg1:b2Vec2):void{ var _local2:b2Vec2; var _local4:Number; var _local5:Number; m_sweepRadius = 0; var _local3:int; 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 TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{ var _local3:b2Vec2; var _local10:Number; var _local4:b2Mat22 = _arg1.R; var _local5:Number = (_arg2.x - _arg1.position.x); var _local6:Number = (_arg2.y - _arg1.position.y); var _local7:Number = ((_local5 * _local4.col1.x) + (_local6 * _local4.col1.y)); var _local8:Number = ((_local5 * _local4.col2.x) + (_local6 * _local4.col2.y)); var _local9:int; 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 static function ComputeCentroid(_arg1:Array, _arg2:int):b2Vec2{ var _local3:b2Vec2; var _local7:Number; var _local9:b2Vec2; var _local10:b2Vec2; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; _local3 = new b2Vec2(); var _local4:Number = 0; var _local5:Number = 0; var _local6:Number = 0; _local7 = (1 / 3); var _local8:int; while (_local8 < _arg2) { _local9 = _arg1[_local8]; _local10 = (((_local8 + 1) < _arg2)) ? _arg1[int((_local8 + 1))] : _arg1[0]; _local11 = (_local9.x - _local5); _local12 = (_local9.y - _local6); _local13 = (_local10.x - _local5); _local14 = (_local10.y - _local6); _local15 = ((_local11 * _local14) - (_local12 * _local13)); _local16 = (0.5 * _local15); _local4 = (_local4 + _local16); _local3.x = (_local3.x + ((_local16 * _local7) * ((_local5 + _local9.x) + _local10.x))); _local3.y = (_local3.y + ((_local16 * _local7) * ((_local6 + _local9.y) + _local10.y))); _local8++; }; _local3.x = (_local3.x * (1 / _local4)); _local3.y = (_local3.y * (1 / _local4)); return (_local3); } public static function ComputeOBB(_arg1:b2OBB, _arg2:Array, _arg3:int):void{ var _local4:int; var _local7:b2Vec2; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:int; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:b2Mat22; var _local5:Array = new Array((b2Settings.b2_maxPolygonVertices + 1)); _local4 = 0; while (_local4 < _arg3) { _local5[_local4] = _arg2[_local4]; _local4++; }; _local5[_arg3] = _local5[0]; var _local6:Number = Number.MAX_VALUE; _local4 = 1; while (_local4 <= _arg3) { _local7 = _local5[int((_local4 - 1))]; _local8 = (_local5[_local4].x - _local7.x); _local9 = (_local5[_local4].y - _local7.y); _local10 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (_local8 / _local10); _local9 = (_local9 / _local10); _local11 = -(_local9); _local12 = _local8; _local13 = Number.MAX_VALUE; _local14 = Number.MAX_VALUE; _local15 = -(Number.MAX_VALUE); _local16 = -(Number.MAX_VALUE); _local17 = 0; while (_local17 < _arg3) { _local19 = (_local5[_local17].x - _local7.x); _local20 = (_local5[_local17].y - _local7.y); _local21 = ((_local8 * _local19) + (_local9 * _local20)); _local22 = ((_local11 * _local19) + (_local12 * _local20)); if (_local21 < _local13){ _local13 = _local21; }; if (_local22 < _local14){ _local14 = _local22; }; if (_local21 > _local15){ _local15 = _local21; }; if (_local22 > _local16){ _local16 = _local22; }; _local17++; }; _local18 = ((_local15 - _local13) * (_local16 - _local14)); if (_local18 < (0.95 * _local6)){ _local6 = _local18; _arg1.R.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 24
//b2Shape (Box2D.Collision.Shapes.b2Shape) package Box2D.Collision.Shapes { import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; public class b2Shape { public var m_next: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_isSensor:Boolean; public var m_restitution:Number; public var m_userData; 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 SetUserData(_arg1):void{ m_userData = _arg1; } 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{ if (m_proxyId == b2Pair.b2_nullProxy){ return; }; _arg1.DestroyProxy(m_proxyId); var _local3:b2AABB = s_resetAABB; ComputeAABB(_local3, _arg2); var _local4:Boolean = _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{ if (m_proxyId == b2Pair.b2_nullProxy){ return (false); }; var _local4:b2AABB = 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 = s_proxyAABB; ComputeAABB(_local3, _arg2); var _local4:Boolean = _arg1.InRange(_local3); if (_local4){ m_proxyId = _arg1.CreateProxy(_local3, this); } else { m_proxyId = b2Pair.b2_nullProxy; }; } public function TestPoint(_arg1:b2XForm, _arg2:b2Vec2):Boolean{ return (false); } 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 25
//b2ShapeDef (Box2D.Collision.Shapes.b2ShapeDef) package Box2D.Collision.Shapes { public class b2ShapeDef { public var friction:Number;// = 0.2 public var isSensor:Boolean;// = false public var density:Number;// = 0 public var restitution:Number;// = 0 public var userData;// = null public var filter:b2FilterData; public var type:int; public function b2ShapeDef(){ type = b2Shape.e_unknownShape; filter = new b2FilterData(); super(); } } }//package Box2D.Collision.Shapes
Section 26
//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 = (upperBound.x - lowerBound.x); var _local2:Number = (upperBound.y - lowerBound.y); var _local3:Boolean = (((_local1 >= 0)) && ((_local2 >= 0))); _local3 = ((((_local3) && (lowerBound.IsValid()))) && (upperBound.IsValid())); return (_local3); } } }//package Box2D.Collision
Section 27
//b2Bound (Box2D.Collision.b2Bound) package Box2D.Collision { public class b2Bound { public var value:uint; public var proxyId:uint; public var stabbingCount:uint; public function Swap(_arg1:b2Bound):void{ var _local2:uint = value; var _local3:uint = proxyId; var _local4:uint = stabbingCount; value = _arg1.value; proxyId = _arg1.proxyId; stabbingCount = _arg1.stabbingCount; _arg1.value = _local2; _arg1.proxyId = _local3; _arg1.stabbingCount = _local4; } public function IsLower():Boolean{ return (((value & 1) == 0)); } public function IsUpper():Boolean{ return (((value & 1) == 1)); } } }//package Box2D.Collision
Section 28
//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 29
//b2BroadPhase (Box2D.Collision.b2BroadPhase) package Box2D.Collision { import Box2D.Common.Math.*; import Box2D.Common.*; public class b2BroadPhase { public var m_bounds:Array; public var m_quantizationFactor:b2Vec2; public var m_worldAABB:b2AABB; public var m_freeProxy:uint; public var m_proxyCount:int; public var m_proxyPool:Array; public var m_queryResultCount:int; public var m_pairManager:b2PairManager; public var m_timeStamp:uint; public var m_queryResults:Array; public static const b2_nullEdge:uint = 0xFFFF; public static const b2_invalid:uint = 0xFFFF; public static var s_validate:Boolean = false; public function b2BroadPhase(_arg1:b2AABB, _arg2:b2PairCallback){ var _local3:int; var _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++; }; var _local4:Number = (_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 _local6:uint; var _local7:uint; var _local12:b2Proxy; var _local4:Array = new Array(); var _local5:Array = new Array(); ComputeBounds(_local4, _local5, _arg1); var _local8:Array = [_local6]; var _local9:Array = [_local7]; Query(_local8, _local9, _local4[0], _local5[0], m_bounds[0], (2 * m_proxyCount), 0); Query(_local8, _local9, _local4[1], _local5[1], m_bounds[1], (2 * m_proxyCount), 1); var _local10:int; var _local11:int; while ((((_local11 < m_queryResultCount)) && ((_local10 < _arg3)))) { _local12 = m_proxyPool[m_queryResults[_local11]]; _arg2[_local11] = _local12.userData; _local11++; _local10++; }; m_queryResultCount = 0; IncrementTimeStamp(); return (_local10); } public function Commit():void{ m_pairManager.Commit(); } public function GetProxy(_arg1:int):b2Proxy{ var _local2:b2Proxy = 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 _local10:b2Bound; var _local12:int; var _local13:int; var _local14:b2Proxy; var _local8:uint = BinarySearch(_arg5, _arg6, _arg3); var _local9:uint = BinarySearch(_arg5, _arg6, _arg4); var _local11:uint = _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 _local4:Array; var _local5:b2Bound; var _local6:b2Bound; var _local3:int; 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 = _arg3.lowerBound.x; var _local5:Number = _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); var _local6:Number = _arg3.upperBound.x; var _local7:Number = _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 _local11:Array; var _local12:uint; var _local13:uint; var _local14:Array; var _local15:Array; var _local16:Array; var _local17:int; var _local18:int; var _local19:b2Bound; var _local20:b2Bound; var _local21:b2Bound; var _local22:int; var _local23:b2Proxy; var _local5:uint = m_freeProxy; _local4 = m_proxyPool[_local5]; m_freeProxy = _local4.GetNext(); _local4.overlapCount = 0; _local4.userData = _arg2; var _local6:uint = (2 * m_proxyCount); var _local7:Array = new Array(); var _local8:Array = new Array(); ComputeBounds(_local7, _local8, _arg1); var _local9:int; 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++; var _local10:int; 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 _local8:Array; var _local9:uint; var _local10:uint; var _local11:uint; var _local12:uint; var _local13:Array; var _local14:int; var _local15:int; var _local16:int; var _local17:uint; var _local18:int; var _local19:b2Proxy; var _local4:b2Proxy = m_proxyPool[_arg1]; var _local5:int = (2 * m_proxyCount); var _local6:int; 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++; }; var _local7:int; 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 _local4:Array; var _local5:b2Bound; var _local3:int; 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 _local6:b2Bound; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:b2Bound; var _local5:int; 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 = 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 _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; }; var _local12:uint = (2 * m_proxyCount); var _local13:b2Proxy = m_proxyPool[_arg1]; var _local14:b2BoundValues = new b2BoundValues(); ComputeBounds(_local14.lowerValues, _local14.upperValues, _arg2); var _local15:b2BoundValues = 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 _local6:int; var _local7:b2Bound; var _local4:int; var _local5:int = (_arg2 - 1); while (_local4 <= _local5) { _local6 = ((_local4 + _local5) / 2); _local7 = _arg1[_local6]; if (_local7.value > _arg3){ _local5 = (_local6 - 1); } else { if (_local7.value < _arg3){ _local4 = (_local6 + 1); } else { return (uint(_local6)); }; }; }; return (uint(_local4)); } } }//package Box2D.Collision
Section 30
//b2BufferedPair (Box2D.Collision.b2BufferedPair) package Box2D.Collision { public class b2BufferedPair { public var proxyId1:uint; public var proxyId2:uint; } }//package Box2D.Collision
Section 31
//b2Collision (Box2D.Collision.b2Collision) package Box2D.Collision { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Common.*; public class b2Collision { public static const b2_nullFeature:uint = 0xFF; private static var b2CollidePolyTempVec:b2Vec2 = new b2Vec2(); public static function EdgeSeparation(_arg1:b2PolygonShape, _arg2:b2XForm, _arg3:int, _arg4:b2PolygonShape, _arg5:b2XForm):Number{ var _local11:b2Mat22; var _local12:b2Vec2; var _local25:Number; var _local6:int = _arg1.m_vertexCount; var _local7:Array = _arg1.m_vertices; var _local8:Array = _arg1.m_normals; var _local9:int = _arg4.m_vertexCount; var _local10:Array = _arg4.m_vertices; _local11 = _arg2.R; _local12 = _local8[_arg3]; var _local13:Number = ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y)); var _local14:Number = ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y)); _local11 = _arg5.R; var _local15:Number = ((_local11.col1.x * _local13) + (_local11.col1.y * _local14)); var _local16:Number = ((_local11.col2.x * _local13) + (_local11.col2.y * _local14)); var _local17:int; var _local18:Number = Number.MAX_VALUE; var _local19:int; while (_local19 < _local9) { _local12 = _local10[_local19]; _local25 = ((_local12.x * _local15) + (_local12.y * _local16)); if (_local25 < _local18){ _local18 = _local25; _local17 = _local19; }; _local19++; }; _local12 = _local7[_arg3]; _local11 = _arg2.R; var _local20:Number = (_arg2.position.x + ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y))); var _local21:Number = (_arg2.position.y + ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y))); _local12 = _local10[_local17]; _local11 = _arg5.R; var _local22:Number = (_arg5.position.x + ((_local11.col1.x * _local12.x) + (_local11.col2.x * _local12.y))); var _local23:Number = (_arg5.position.y + ((_local11.col1.y * _local12.x) + (_local11.col2.y * _local12.y))); _local22 = (_local22 - _local20); _local23 = (_local23 - _local21); var _local24:Number = ((_local22 * _local13) + (_local23 * _local14)); return (_local24); } public static function b2TestOverlap(_arg1:b2AABB, _arg2:b2AABB):Boolean{ var _local3:b2Vec2 = _arg2.lowerBound; var _local4:b2Vec2 = _arg1.upperBound; var _local5:Number = (_local3.x - _local4.x); var _local6:Number = (_local3.y - _local4.y); _local3 = _arg1.lowerBound; _local4 = _arg2.upperBound; var _local7:Number = (_local3.x - _local4.x); var _local8:Number = (_local3.y - _local4.y); if ((((_local5 > 0)) || ((_local6 > 0)))){ return (false); }; if ((((_local7 > 0)) || ((_local8 > 0)))){ return (false); }; return (true); } public static function FindIncidentEdge(_arg1:Array, _arg2:b2PolygonShape, _arg3:b2XForm, _arg4:int, _arg5:b2PolygonShape, _arg6:b2XForm):void{ var _local12:b2Mat22; var _local13:b2Vec2; var _local20:ClipVertex; var _local23:Number; var _local7:int = _arg2.m_vertexCount; var _local8:Array = _arg2.m_normals; var _local9:int = _arg5.m_vertexCount; var _local10:Array = _arg5.m_vertices; var _local11:Array = _arg5.m_normals; _local12 = _arg3.R; _local13 = _local8[_arg4]; var _local14:Number = ((_local12.col1.x * _local13.x) + (_local12.col2.x * _local13.y)); var _local15:Number = ((_local12.col1.y * _local13.x) + (_local12.col2.y * _local13.y)); _local12 = _arg6.R; var _local16:Number = ((_local12.col1.x * _local14) + (_local12.col1.y * _local15)); _local15 = ((_local12.col2.x * _local14) + (_local12.col2.y * _local15)); _local14 = _local16; var _local17:int; var _local18:Number = Number.MAX_VALUE; var _local19:int; while (_local19 < _local9) { _local13 = _local11[_local19]; _local23 = ((_local14 * _local13.x) + (_local15 * _local13.y)); if (_local23 < _local18){ _local18 = _local23; _local17 = _local19; }; _local19++; }; var _local21:int = _local17; var _local22:int = (((_local21 + 1) < _local9)) ? (_local21 + 1) : 0; _local20 = _arg1[0]; _local13 = _local10[_local21]; _local12 = _arg6.R; _local20.v.x = (_arg6.position.x + ((_local12.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 _local13:b2PolygonShape; var _local14:b2PolygonShape; var _local17:int; var _local18:uint; var _local34:int; var _local37:b2Vec2; var _local38:Number; var _local39:b2ManifoldPoint; _arg1.pointCount = 0; var _local7:int; var _local8:Array = [_local7]; var _local9:Number = FindMaxSeparation(_local8, _arg2, _arg3, _arg4, _arg5); _local7 = _local8[0]; if (_local9 > 0){ return; }; var _local10:int; var _local11:Array = [_local10]; var _local12:Number = FindMaxSeparation(_local11, _arg4, _arg5, _arg2, _arg3); _local10 = _local11[0]; if (_local12 > 0){ return; }; var _local15:b2XForm = new b2XForm(); var _local16:b2XForm = new b2XForm(); var _local19:Number = 0.98; var _local20:Number = 0.001; if (_local12 > ((_local19 * _local9) + _local20)){ _local13 = _arg4; _local14 = _arg2; _local15.Set(_arg5); _local16.Set(_arg3); _local17 = _local10; _local18 = 1; } else { _local13 = _arg2; _local14 = _arg4; _local15.Set(_arg3); _local16.Set(_arg5); _local17 = _local7; _local18 = 0; }; var _local21:Array = [new ClipVertex(), new ClipVertex()]; FindIncidentEdge(_local21, _local13, _local15, _local17, _local14, _local16); var _local22:int = _local13.m_vertexCount; var _local23:Array = _local13.m_vertices; var _local24:b2Vec2 = _local23[_local17]; var _local25:b2Vec2 = _local24.Copy(); if ((_local17 + 1) < _local22){ _local24 = _local23[int((_local17 + 1))]; _local37 = _local24.Copy(); } else { _local24 = _local23[0]; _local37 = _local24.Copy(); }; var _local26:b2Vec2 = b2Math.SubtractVV(_local37, _local25); var _local27:b2Vec2 = b2Math.b2MulMV(_local15.R, b2Math.SubtractVV(_local37, _local25)); _local27.Normalize(); var _local28:b2Vec2 = b2Math.b2CrossVF(_local27, 1); _local25 = b2Math.b2MulX(_local15, _local25); _local37 = b2Math.b2MulX(_local15, _local37); var _local29:Number = b2Math.b2Dot(_local28, _local25); var _local30:Number = -(b2Math.b2Dot(_local27, _local25)); var _local31:Number = b2Math.b2Dot(_local27, _local37); var _local32:Array = [new ClipVertex(), new ClipVertex()]; var _local33:Array = [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(); var _local35:int; var _local36:int; 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 _local8:b2Vec2; var _local9:b2Mat22; var _local22:int; var _local23:Number; var _local24:int; var _local25:Number; var _local6:int = _arg2.m_vertexCount; var _local7:Array = _arg2.m_normals; _local9 = _arg5.R; _local8 = _arg4.m_centroid; var _local10:Number = (_arg5.position.x + ((_local9.col1.x * _local8.x) + (_local9.col2.x * _local8.y))); var _local11:Number = (_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)))); var _local12:Number = ((_local10 * _arg3.R.col1.x) + (_local11 * _arg3.R.col1.y)); var _local13:Number = ((_local10 * _arg3.R.col2.x) + (_local11 * _arg3.R.col2.y)); var _local14:int; var _local15:Number = -(Number.MAX_VALUE); var _local16:int; while (_local16 < _local6) { _local8 = _local7[_local16]; _local25 = ((_local8.x * _local12) + (_local8.y * _local13)); if (_local25 > _local15){ _local15 = _local25; _local14 = _local16; }; _local16++; }; var _local17:Number = EdgeSeparation(_arg2, _arg3, _local14, _arg4, _arg5); if (_local17 > 0){ return (_local17); }; var _local18:int = (((_local14 - 1) >= 0)) ? (_local14 - 1) : (_local6 - 1); var _local19:Number = EdgeSeparation(_arg2, _arg3, _local18, _arg4, _arg5); if (_local19 > 0){ return (_local19); }; var _local20:int = (((_local14 + 1) < _local6)) ? (_local14 + 1) : 0; var _local21:Number = 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 _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); var _local10:Number = (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 _local18:Number; var _local24:Number; var _local25:Number; _arg1.pointCount = 0; _local6 = _arg3.R; _local7 = _arg2.m_localPosition; var _local8:Number = (_arg3.position.x + ((_local6.col1.x * _local7.x) + (_local6.col2.x * _local7.y))); var _local9:Number = (_arg3.position.y + ((_local6.col1.y * _local7.x) + (_local6.col2.y * _local7.y))); _local6 = _arg5.R; _local7 = _arg4.m_localPosition; var _local10:Number = (_arg5.position.x + ((_local6.col1.x * _local7.x) + (_local6.col2.x * _local7.y))); var _local11:Number = (_arg5.position.y + ((_local6.col1.y * _local7.x) + (_local6.col2.y * _local7.y))); var _local12:Number = (_local10 - _local8); var _local13:Number = (_local11 - _local9); var _local14:Number = ((_local12 * _local12) + (_local13 * _local13)); var _local15:Number = _arg2.m_radius; var _local16:Number = _arg4.m_radius; var _local17:Number = (_local15 + _local16); if (_local14 > (_local17 * _local17)){ return; }; if (_local14 < Number.MIN_VALUE){ _local18 = -(_local17); _arg1.normal.Set(0, 1); } else { _local24 = Math.sqrt(_local14); _local18 = (_local24 - _local17); _local25 = (1 / _local24); _arg1.normal.x = (_local25 * _local12); _arg1.normal.y = (_local25 * _local13); }; _arg1.pointCount = 1; var _local19:b2ManifoldPoint = _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)); var _local20:Number = (0.5 * (_local8 + _local10)); var _local21:Number = (0.5 * (_local9 + _local11)); var _local22:Number = (_local20 - _arg3.position.x); var _local23:Number = (_local21 - _arg3.position.y); _local19.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 _local17:Number; var _local32:Number; var _local33:Number; var _local34:Number; _arg1.pointCount = 0; _local12 = _arg5.R; _local11 = _arg4.m_localPosition; var _local13:Number = (_arg5.position.x + ((_local12.col1.x * _local11.x) + (_local12.col2.x * _local11.y))); var _local14:Number = (_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; var _local15:Number = ((_local7 * _local12.col1.x) + (_local8 * _local12.col1.y)); var _local16:Number = ((_local7 * _local12.col2.x) + (_local8 * _local12.col2.y)); var _local18:int; var _local19:Number = -(Number.MAX_VALUE); var _local20:Number = _arg4.m_radius; var _local21:int = _arg2.m_vertexCount; var _local22:Array = _arg2.m_vertices; var _local23:Array = _arg2.m_normals; var _local24:int; while (_local24 < _local21) { _local11 = _local22[_local24]; _local7 = (_local15 - _local11.x); _local8 = (_local16 - _local11.y); _local11 = _local23[_local24]; _local34 = ((_local11.x * _local7) + (_local11.y * _local8)); if (_local34 > _local20){ return; }; if (_local34 > _local19){ _local19 = _local34; _local18 = _local24; }; _local24++; }; if (_local19 < Number.MIN_VALUE){ _arg1.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; }; var _local25:int = _local18; var _local26:int = (((_local25 + 1) < _local21)) ? (_local25 + 1) : 0; _local11 = _local22[_local25]; var _local27:b2Vec2 = _local22[_local26]; var _local28:Number = (_local27.x - _local11.x); var _local29:Number = (_local27.y - _local11.y); var _local30:Number = Math.sqrt(((_local28 * _local28) + (_local29 * _local29))); _local28 = (_local28 / _local30); _local29 = (_local29 / _local30); _local7 = (_local15 - _local11.x); _local8 = (_local16 - _local11.y); var _local31:Number = ((_local7 * _local28) + (_local8 * _local29)); _local6 = _arg1.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 32
//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 = new b2ContactID(); _local1.key = key; return (_local1); } 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); } public function get key():uint{ return (_key); } } }//package Box2D.Collision
Section 33
//b2ContactPoint (Box2D.Collision.b2ContactPoint) package Box2D.Collision { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; public class b2ContactPoint { public var friction:Number; 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 velocity:b2Vec2; public function b2ContactPoint(){ position = new b2Vec2(); velocity = new b2Vec2(); normal = new b2Vec2(); id = new b2ContactID(); super(); } } }//package Box2D.Collision
Section 34
//b2Distance (Box2D.Collision.b2Distance) package Box2D.Collision { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Common.*; public class b2Distance { private static var s_p2s:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()]; private static var s_p1s:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()]; private static var s_points:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2()]; private static var gPoint:b2Point = new b2Point(); public static var g_GJK_Iterations:int = 0; public static function InPoints(_arg1:b2Vec2, _arg2:Array, _arg3:int):Boolean{ var _local6:b2Vec2; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local4:Number = (100 * Number.MIN_VALUE); var _local5:int; while (_local5 < _arg3) { _local6 = _arg2[_local5]; _local7 = Math.abs((_arg1.x - _local6.x)); _local8 = Math.abs((_arg1.y - _local6.y)); _local9 = Math.max(Math.abs(_arg1.x), Math.abs(_local6.x)); _local10 = Math.max(Math.abs(_arg1.y), Math.abs(_local6.y)); if ((((_local7 < (_local4 * (_local9 + 1)))) && ((_local8 < (_local4 * (_local10 + 1)))))){ return (true); }; _local5++; }; return (false); } public static function DistanceGeneric(_arg1:b2Vec2, _arg2:b2Vec2, _arg3, _arg4:b2XForm, _arg5, _arg6:b2XForm):Number{ var _local7:b2Vec2; var _local15:Number; var _local16:Number; var _local17:b2Vec2; var _local18:b2Vec2; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:int; var _local8:Array = s_p1s; var _local9:Array = s_p2s; var _local10:Array = s_points; var _local11:int; _arg1.SetV(_arg3.GetFirstVertex(_arg4)); _arg2.SetV(_arg5.GetFirstVertex(_arg6)); var _local12:Number = 0; var _local13 = 20; var _local14:int; while (_local14 < _local13) { _local15 = (_arg2.x - _arg1.x); _local16 = (_arg2.y - _arg1.y); _local17 = _arg3.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 _local19:Number; var _local20:Number; _local7 = _arg4.R; _local8 = _arg3.m_localPosition; var _local9:Number = (_arg4.position.x + ((_local7.col1.x * _local8.x) + (_local7.col2.x * _local8.y))); var _local10:Number = (_arg4.position.y + ((_local7.col1.y * _local8.x) + (_local7.col2.y * _local8.y))); _local7 = _arg6.R; _local8 = _arg5.m_localPosition; var _local11:Number = (_arg6.position.x + ((_local7.col1.x * _local8.x) + (_local7.col2.x * _local8.y))); var _local12:Number = (_arg6.position.y + ((_local7.col1.y * _local8.x) + (_local7.col2.y * _local8.y))); var _local13:Number = (_local11 - _local9); var _local14:Number = (_local12 - _local10); var _local15:Number = ((_local13 * _local13) + (_local14 * _local14)); var _local16:Number = (_arg3.m_radius - b2Settings.b2_toiSlop); var _local17:Number = (_arg5.m_radius - b2Settings.b2_toiSlop); var _local18:Number = (_local16 + _local17); if (_local15 > (_local18 * _local18)){ _local19 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14))); _local13 = (_local13 / _local19); _local14 = (_local14 / _local19); _local20 = (_local19 - _local18); _arg1.x = (_local9 + (_local16 * _local13)); _arg1.y = (_local10 + (_local16 * _local14)); _arg2.x = (_local11 - (_local17 * _local13)); _arg2.y = (_local12 - (_local17 * _local14)); return (_local20); }; if (_local15 > (Number.MIN_VALUE * Number.MIN_VALUE)){ _local19 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14))); _local13 = (_local13 / _local19); _local14 = (_local14 / _local19); _arg1.x = (_local9 + (_local16 * _local13)); _arg1.y = (_local10 + (_local16 * _local14)); _arg2.x = _arg1.x; _arg2.y = _arg1.y; return (0); }; _arg1.x = _local9; _arg1.y = _local10; _arg2.x = _arg1.x; _arg2.y = _arg1.y; return (0); } public static function 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 _local35:Number; _local6 = _arg5[0]; _local7 = _arg5[1]; _local8 = _arg5[2]; _local9 = _arg3[0]; _local10 = _arg3[1]; _local11 = _arg3[2]; _local12 = _arg4[0]; _local13 = _arg4[1]; var _local14:b2Vec2 = _arg4[2]; var _local15:Number = _local6.x; var _local16:Number = _local6.y; var _local17:Number = _local7.x; var _local18:Number = _local7.y; var _local19:Number = _local8.x; var _local20:Number = _local8.y; var _local21:Number = (_local17 - _local15); var _local22:Number = (_local18 - _local16); var _local23:Number = (_local19 - _local15); var _local24:Number = (_local20 - _local16); var _local25:Number = (_local19 - _local17); var _local26:Number = (_local20 - _local18); var _local27:Number = -(((_local15 * _local21) + (_local16 * _local22))); var _local28:Number = ((_local17 * _local21) + (_local18 * _local22)); var _local29:Number = -(((_local15 * _local23) + (_local16 * _local24))); var _local30:Number = ((_local19 * _local23) + (_local20 * _local24)); var _local31:Number = -(((_local17 * _local25) + (_local18 * _local26))); var _local32:Number = ((_local19 * _local25) + (_local20 * _local26)); if ((((_local30 <= 0)) && ((_local32 <= 0)))){ _arg1.SetV(_local11); _arg2.SetV(_local14); _local9.SetV(_local11); _local12.SetV(_local14); _local6.SetV(_local8); return (1); }; var _local33:Number = ((_local21 * _local24) - (_local22 * _local23)); var _local34:Number = (_local33 * ((_local15 * _local18) - (_local16 * _local17))); var _local36:Number = (_local33 * ((_local17 * _local20) - (_local18 * _local19))); if ((((((((_local36 <= 0)) && ((_local31 >= 0)))) && ((_local32 >= 0)))) && (((_local31 + _local32) > 0)))){ _local35 = (_local31 / (_local31 + _local32)); _arg1.x = (_local10.x + (_local35 * (_local11.x - _local10.x))); _arg1.y = (_local10.y + (_local35 * (_local11.y - _local10.y))); _arg2.x = (_local13.x + (_local35 * (_local14.x - _local13.x))); _arg2.y = (_local13.y + (_local35 * (_local14.y - _local13.y))); _local9.SetV(_local11); _local12.SetV(_local14); _local6.SetV(_local8); return (2); }; var _local37:Number = (_local33 * ((_local19 * _local16) - (_local20 * _local15))); if ((((((((_local37 <= 0)) && ((_local29 >= 0)))) && ((_local30 >= 0)))) && (((_local29 + _local30) > 0)))){ _local35 = (_local29 / (_local29 + _local30)); _arg1.x = (_local9.x + (_local35 * (_local11.x - _local9.x))); _arg1.y = (_local9.y + (_local35 * (_local11.y - _local9.y))); _arg2.x = (_local12.x + (_local35 * (_local14.x - _local12.x))); _arg2.y = (_local12.y + (_local35 * (_local14.y - _local12.y))); _local10.SetV(_local11); _local13.SetV(_local14); _local7.SetV(_local8); return (2); }; var _local38:Number = ((_local36 + _local37) + _local34); _local38 = (1 / _local38); var _local39:Number = (_local36 * _local38); var _local40:Number = (_local37 * _local38); var _local41:Number = ((1 - _local39) - _local40); _arg1.x = (((_local39 * _local9.x) + (_local40 * _local10.x)) + (_local41 * _local11.x)); _arg1.y = (((_local39 * _local9.y) + (_local40 * _local10.y)) + (_local41 * _local11.y)); _arg2.x = (((_local39 * _local12.x) + (_local40 * _local13.x)) + (_local41 * _local14.x)); _arg2.y = (((_local39 * _local12.y) + (_local40 * _local13.y)) + (_local41 * _local14.y)); return (3); } public static function DistancePC(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2PolygonShape, _arg4:b2XForm, _arg5:b2CircleShape, _arg6:b2XForm):Number{ var _local7:b2Mat22; var _local8:b2Vec2; var _local12:Number; var _local13:Number; var _local14:Number; var _local9:b2Point = 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))); var _local10:Number = DistanceGeneric(_arg1, _arg2, _arg3, _arg4, _local9, b2Math.b2XForm_identity); var _local11:Number = (_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 = _arg3.m_type; var _local8:int = _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 _local9:b2Vec2; var _local10:b2Vec2; var _local11:b2Vec2; var _local17:Number; var _local6:b2Vec2 = _arg5[0]; var _local7:b2Vec2 = _arg5[1]; var _local8:b2Vec2 = _arg3[0]; _local9 = _arg3[1]; _local10 = _arg4[0]; _local11 = _arg4[1]; var _local12:Number = -(_local7.x); var _local13:Number = -(_local7.y); var _local14:Number = (_local6.x - _local7.x); var _local15:Number = (_local6.y - _local7.y); var _local16:Number = Math.sqrt(((_local14 * _local14) + (_local15 * _local15))); _local14 = (_local14 / _local16); _local15 = (_local15 / _local16); _local17 = ((_local12 * _local14) + (_local13 * _local15)); if ((((_local17 <= 0)) || ((_local16 < Number.MIN_VALUE)))){ _arg1.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 35
//b2Manifold (Box2D.Collision.b2Manifold) package Box2D.Collision { import Box2D.Common.Math.*; import Box2D.Common.*; public class b2Manifold { public var pointCount:int;// = 0 public var normal:b2Vec2; public var points:Array; public function b2Manifold(){ points = new Array(b2Settings.b2_maxManifoldPoints); var _local1:int; while (_local1 < b2Settings.b2_maxManifoldPoints) { points[_local1] = new b2ManifoldPoint(); _local1++; }; normal = new b2Vec2(); } public function Set(_arg1:b2Manifold):void{ pointCount = _arg1.pointCount; var _local2:int; 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; while (_local1 < b2Settings.b2_maxManifoldPoints) { (points[_local1] as b2ManifoldPoint).Reset(); _local1++; }; normal.SetZero(); pointCount = 0; } } }//package Box2D.Collision
Section 36
//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 37
//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 38
//b2Pair (Box2D.Collision.b2Pair) package Box2D.Collision { public class b2Pair { public var proxyId1:uint; public var userData;// = null 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 = 0xFFFF; public static var e_pairBuffered:uint = 1; public static var b2_nullProxy:uint = 0xFFFF; public static var b2_tableCapacity:int = 4096; 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 39
//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 40
//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_hashTable:Array; public var m_callback:b2PairCallback; public var m_pairs:Array; public var m_pairBufferCount:int; 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 = 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 _local4:uint; if (_arg1 > _arg2){ _local4 = _arg1; _arg1 = _arg2; _arg2 = _local4; }; var _local3:uint = (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 _local5:b2Pair; var _local6:b2Proxy; var _local7:b2Proxy; var _local3:int; var _local4:Array = 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 = 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 _local7:uint; var _local8:uint; var _local9:*; if (_arg1 > _arg2){ _local7 = _arg1; _arg1 = _arg2; _arg2 = _local7; }; var _local4:uint = (Hash(_arg1, _arg2) & b2Pair.b2_tableMask); var _local5:uint = m_hashTable[_local4]; var _local6:b2Pair; 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 = 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 _local6:uint; if (_arg1 > _arg2){ _local6 = _arg1; _arg1 = _arg2; _arg2 = _local6; }; var _local3:uint = (Hash(_arg1, _arg2) & b2Pair.b2_tableMask); var _local4 = FindHash(_arg1, _arg2, _local3); if (_local4 != null){ return (_local4); }; var _local5:uint = 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 = (((_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 41
//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 42
//b2Proxy (Box2D.Collision.b2Proxy) package Box2D.Collision { public class b2Proxy { public var overlapCount:uint; public var userData;// = null public var lowerBounds:Array; public var upperBounds:Array; public var timeStamp:uint; public function b2Proxy(){ lowerBounds = [uint(0), uint(0)]; upperBounds = [uint(0), uint(0)]; super(); } public function GetNext():uint{ return (lowerBounds[0]); } public function IsValid():Boolean{ return (!((overlapCount == b2BroadPhase.b2_invalid))); } public function SetNext(_arg1:uint):void{ lowerBounds[0] = (_arg1 & 0xFFFF); } } }//package Box2D.Collision
Section 43
//b2Segment (Box2D.Collision.b2Segment) package Box2D.Collision { import Box2D.Common.Math.*; import Box2D.Common.*; public class b2Segment { public var p1:b2Vec2; public var p2:b2Vec2; public function b2Segment(){ p1 = new b2Vec2(); p2 = new b2Vec2(); super(); } public function TestSegment(_arg1:Array, _arg2:b2Vec2, _arg3:b2Segment, _arg4:Number):Boolean{ var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local5:b2Vec2 = _arg3.p1; var _local6:Number = (_arg3.p2.x - _local5.x); var _local7:Number = (_arg3.p2.y - _local5.y); var _local8:Number = (p2.x - p1.x); var _local9:Number = (p2.y - p1.y); var _local10:Number = _local9; var _local11:Number = -(_local8); var _local12:Number = (100 * Number.MIN_VALUE); var _local13:Number = -(((_local6 * _local10) + (_local7 * _local11))); if (_local13 > _local12){ _local14 = (_local5.x - 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 44
//b2TimeOfImpact (Box2D.Collision.b2TimeOfImpact) package Box2D.Collision { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Common.*; public class b2TimeOfImpact { public static var s_xf1:b2XForm = new b2XForm(); public static var s_xf2:b2XForm = new b2XForm(); public static var s_p1:b2Vec2 = new b2Vec2(); public static var s_p2:b2Vec2 = new b2Vec2(); public static function TimeOfImpact(_arg1:b2Shape, _arg2:b2Sweep, _arg3:b2Shape, _arg4:b2Sweep):Number{ var _local5:Number; var _local6:Number; var _local25:Number; var _local26:b2XForm; var _local27:b2XForm; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local7:Number = _arg1.m_sweepRadius; var _local8:Number = _arg3.m_sweepRadius; var _local9:Number = _arg2.t0; var _local10:Number = (_arg2.c.x - _arg2.c0.x); var _local11:Number = (_arg2.c.y - _arg2.c0.y); var _local12:Number = (_arg4.c.x - _arg4.c0.x); var _local13:Number = (_arg4.c.y - _arg4.c0.y); var _local14:Number = (_arg2.a - _arg2.a0); var _local15:Number = (_arg4.a - _arg4.a0); var _local16:Number = 0; var _local17:b2Vec2 = s_p1; var _local18:b2Vec2 = s_p2; var _local19 = 20; var _local20:int; var _local21:Number = 0; var _local22:Number = 0; var _local23:Number = 0; var _local24:Number = 0; while (true) { _local25 = (((1 - _local16) * _local9) + _local16); _local26 = 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 45
//ClipVertex (Box2D.Collision.ClipVertex) package Box2D.Collision { import Box2D.Common.Math.*; public class ClipVertex { public var id:b2ContactID; public var v:b2Vec2; public function ClipVertex(){ v = new b2Vec2(); id = new b2ContactID(); super(); } } }//package Box2D.Collision
Section 46
//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 get incidentVertex():int{ return (_incidentVertex); } public function set flip(_arg1:int):void{ _flip = _arg1; _m_id._key = ((_m_id._key & 0xFFFFFF) | ((_flip << 24) & 4278190080)); } public function set incidentEdge(_arg1:int):void{ _incidentEdge = _arg1; _m_id._key = ((_m_id._key & 4294902015) | ((_incidentEdge << 8) & 0xFF00)); } } }//package Box2D.Collision
Section 47
//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 SetVV(_arg1:b2Vec2, _arg2:b2Vec2):void{ col1.SetV(_arg1); col2.SetV(_arg2); } public function Set(_arg1:Number):void{ var _local2:Number; _local2 = Math.cos(_arg1); var _local3:Number = Math.sin(_arg1); col1.x = _local2; col2.x = -(_local3); col1.y = _local3; col2.y = _local2; } public function SetZero():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 _local4:Number; var _local6:Number; _local2 = col1.x; var _local3:Number = col2.x; _local4 = col1.y; var _local5:Number = col2.y; _local6 = ((_local2 * _local5) - (_local3 * _local4)); _local6 = (1 / _local6); _arg1.col1.x = (_local6 * _local5); _arg1.col2.x = (-(_local6) * _local3); _arg1.col1.y = (-(_local6) * _local4); _arg1.col2.y = (_local6 * _local2); return (_arg1); } public function GetAngle():Number{ return (Math.atan2(col1.y, col1.x)); } public function Solve(_arg1:b2Vec2, _arg2:Number, _arg3:Number):b2Vec2{ var _local4:Number = col1.x; var _local5:Number = col2.x; var _local6:Number = col1.y; var _local7:Number = col2.y; var _local8:Number = ((_local4 * _local7) - (_local5 * _local6)); _local8 = (1 / _local8); _arg1.x = (_local8 * ((_local7 * _arg2) - (_local5 * _arg3))); _arg1.y = (_local8 * ((_local4 * _arg3) - (_local6 * _arg2))); return (_arg1); } } }//package Box2D.Common.Math
Section 48
//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 = new b2Vec2((_arg2 * _arg1.y), (-(_arg2) * _arg1.x)); return (_local3); } public static function AddVV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{ var _local3:b2Vec2 = new b2Vec2((_arg1.x + _arg2.x), (_arg1.y + _arg2.y)); return (_local3); } public static function b2IsValid(_arg1:Number):Boolean{ return (isFinite(_arg1)); } public static function b2MinV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{ var _local3:b2Vec2 = new b2Vec2(b2Min(_arg1.x, _arg2.x), b2Min(_arg1.y, _arg2.y)); return (_local3); } public static function 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 = (_arg1.x - _arg2.x); var _local4:Number = (_arg1.y - _arg2.y); return (((_local3 * _local3) + (_local4 * _local4))); } public static function b2Swap(_arg1:Array, _arg2:Array):void{ var _local3:* = _arg1[0]; _arg1[0] = _arg2[0]; _arg2[0] = _local3; } public static function b2AbsM(_arg1:b2Mat22):b2Mat22{ var _local2:b2Mat22 = new b2Mat22(0, b2AbsV(_arg1.col1), b2AbsV(_arg1.col2)); return (_local2); } public static function SubtractVV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{ var _local3:b2Vec2 = new b2Vec2((_arg1.x - _arg2.x), (_arg1.y - _arg2.y)); return (_local3); } public static function 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 = new b2Vec2(b2Abs(_arg1.x), b2Abs(_arg1.y)); return (_local2); } public static function MulFV(_arg1:Number, _arg2:b2Vec2):b2Vec2{ var _local3:b2Vec2 = new b2Vec2((_arg1 * _arg2.x), (_arg1 * _arg2.y)); return (_local3); } public static function 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 = new b2Vec2((-(_arg1) * _arg2.y), (_arg1 * _arg2.x)); return (_local3); } public static function AddMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{ var _local3:b2Mat22 = new b2Mat22(0, AddVV(_arg1.col1, _arg2.col1), AddVV(_arg1.col2, _arg2.col2)); return (_local3); } public static function b2Distance(_arg1:b2Vec2, _arg2:b2Vec2):Number{ var _local3:Number = (_arg1.x - _arg2.x); var _local4:Number = (_arg1.y - _arg2.y); return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4)))); } public static function b2MulTMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{ var _local3:b2Vec2 = new b2Vec2(b2Dot(_arg1.col1, _arg2.col1), b2Dot(_arg1.col2, _arg2.col1)); var _local4:b2Vec2 = new b2Vec2(b2Dot(_arg1.col1, _arg2.col2), b2Dot(_arg1.col2, _arg2.col2)); var _local5:b2Mat22 = new b2Mat22(0, _local3, _local4); return (_local5); } public static function b2MaxV(_arg1:b2Vec2, _arg2:b2Vec2):b2Vec2{ var _local3:b2Vec2 = new b2Vec2(b2Max(_arg1.x, _arg2.x), b2Max(_arg1.y, _arg2.y)); return (_local3); } public static function b2IsPowerOfTwo(_arg1:uint):Boolean{ var _local2:Boolean = (((_arg1 > 0)) && (((_arg1 & (_arg1 - 1)) == 0))); return (_local2); } public static function b2ClampV(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Vec2):b2Vec2{ return (b2MaxV(_arg2, b2MinV(_arg1, _arg3))); } public static function b2RandomRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number = Math.random(); _local3 = (((_arg2 - _arg1) * _local3) + _arg1); return (_local3); } public static function b2MulTMV(_arg1:b2Mat22, _arg2:b2Vec2):b2Vec2{ var _local3:b2Vec2 = new b2Vec2(b2Dot(_arg2, _arg1.col1), b2Dot(_arg2, _arg1.col2)); return (_local3); } public static function b2Min(_arg1:Number, _arg2:Number):Number{ return (((_arg1 < _arg2)) ? _arg1 : _arg2); } public static function b2Random():Number{ return (((Math.random() * 2) - 1)); } public static function b2MulMM(_arg1:b2Mat22, _arg2:b2Mat22):b2Mat22{ var _local3:b2Mat22 = new b2Mat22(0, b2MulMV(_arg1, _arg2.col1), b2MulMV(_arg1, _arg2.col2)); return (_local3); } public static function b2NextPowerOfTwo(_arg1:uint):uint{ _arg1 = (_arg1 | ((_arg1 >> 1) & 2147483647)); _arg1 = (_arg1 | ((_arg1 >> 2) & 1073741823)); _arg1 = (_arg1 | ((_arg1 >> 4) & 268435455)); _arg1 = (_arg1 | ((_arg1 >> 8) & 0xFFFFFF)); _arg1 = (_arg1 | ((_arg1 >> 16) & 0xFFFF)); return ((_arg1 + 1)); } public static function b2Max(_arg1:Number, _arg2:Number):Number{ return (((_arg1 > _arg2)) ? _arg1 : _arg2); } public static function b2MulMV(_arg1:b2Mat22, _arg2:b2Vec2):b2Vec2{ var _local3:b2Vec2 = new b2Vec2(((_arg1.col1.x * _arg2.x) + (_arg1.col2.x * _arg2.y)), ((_arg1.col1.y * _arg2.x) + (_arg1.col2.y * _arg2.y))); return (_local3); } } }//package Box2D.Common.Math
Section 49
//b2Sweep (Box2D.Common.Math.b2Sweep) package Box2D.Common.Math { public class b2Sweep { public var localCenter:b2Vec2; public var a:Number; public var c:b2Vec2; public var a0:Number; public var c0:b2Vec2; 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 _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); }; var _local3:b2Mat22 = _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 50
//b2Vec2 (Box2D.Common.Math.b2Vec2) package Box2D.Common.Math { public class b2Vec2 { public var y:Number; public var x:Number; public function b2Vec2(_arg1:Number=0, _arg2:Number=0):void{ x = _arg1; y = _arg2; } public function Add(_arg1:b2Vec2):void{ x = (x + _arg1.x); y = (y + _arg1.y); } 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 MulM(_arg1:b2Mat22):void{ var _local2:Number = x; x = ((_arg1.col1.x * _local2) + (_arg1.col2.x * y)); y = ((_arg1.col1.y * _local2) + (_arg1.col2.y * y)); } public function SetZero():void{ x = 0; y = 0; } public function MinV(_arg1:b2Vec2):void{ x = ((x < _arg1.x)) ? x : _arg1.x; y = ((y < _arg1.y)) ? y : _arg1.y; } public function Normalize():Number{ var _local1:Number = Math.sqrt(((x * x) + (y * y))); if (_local1 < Number.MIN_VALUE){ return (0); }; var _local2:Number = (1 / _local1); x = (x * _local2); y = (y * _local2); return (_local1); } public function CrossVF(_arg1:Number):void{ var _local2:Number = x; x = (_arg1 * y); y = (-(_arg1) * _local2); } 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 CrossFV(_arg1:Number):void{ var _local2:Number = x; x = (-(_arg1) * y); y = (_arg1 * _local2); } public function Abs():void{ if (x < 0){ x = -(x); }; if (y < 0){ y = -(y); }; } public function Subtract(_arg1:b2Vec2):void{ x = (x - _arg1.x); y = (y - _arg1.y); } public function Copy():b2Vec2{ return (new b2Vec2(x, y)); } public function MulTM(_arg1:b2Mat22):void{ var _local2:Number = b2Math.b2Dot(this, _arg1.col1); y = b2Math.b2Dot(this, _arg1.col2); x = _local2; } public function IsValid():Boolean{ return (((b2Math.b2IsValid(x)) && (b2Math.b2IsValid(y)))); } public static function Make(_arg1:Number, _arg2:Number):b2Vec2{ return (new b2Vec2(_arg1, _arg2)); } } }//package Box2D.Common.Math
Section 51
//b2XForm (Box2D.Common.Math.b2XForm) package Box2D.Common.Math { public class b2XForm { public var position:b2Vec2; public var R:b2Mat22; public function b2XForm(_arg1:b2Vec2=null, _arg2:b2Mat22=null):void{ position = new b2Vec2(); R = new b2Mat22(); super(); if (_arg1){ position.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 52
//b2Color (Box2D.Common.b2Color) package Box2D.Common { import Box2D.Common.Math.*; public class b2Color { private var _r:uint;// = 0 private var _g:uint;// = 0 private var _b:uint;// = 0 public function b2Color(_arg1:Number, _arg2:Number, _arg3:Number){ _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 set b(_arg1:Number):void{ _b = uint((0xFF * b2Math.b2Clamp(_arg1, 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 g(_arg1:Number):void{ _g = uint((0xFF * b2Math.b2Clamp(_arg1, 0, 1))); } } }//package Box2D.Common
Section 53
//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 54
//b2CircleContact (Box2D.Dynamics.Contacts.b2CircleContact) package Box2D.Dynamics.Contacts { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Common.*; public class b2CircleContact extends b2Contact { private var m_manifolds:Array; public var m_manifold:b2Manifold; private var m0:b2Manifold; private static const s_evalCP:b2ContactPoint = new b2ContactPoint(); public function b2CircleContact(_arg1:b2Shape, _arg2:b2Shape){ m_manifolds = [new b2Manifold()]; m0 = new b2Manifold(); super(_arg1, _arg2); m_manifold = m_manifolds[0]; m_manifold.pointCount = 0; var _local3:b2ManifoldPoint = m_manifold.points[0]; _local3.normalImpulse = 0; _local3.tangentImpulse = 0; } override public function Evaluate(_arg1:b2ContactListener):void{ var _local2:b2Vec2; var _local3:b2Vec2; var _local4:b2ManifoldPoint; var _local8:b2ManifoldPoint; var _local5:b2Body = m_shape1.m_body; var _local6:b2Body = 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); var _local7:b2ContactPoint = 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); }; }; } override public function GetManifolds():Array{ return (m_manifolds); } 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 55
//b2Contact (Box2D.Dynamics.Contacts.b2Contact) package Box2D.Dynamics.Contacts { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Common.*; public class b2Contact { public var m_shape1:b2Shape; public var m_shape2:b2Shape; public var m_prev:b2Contact; public var m_toi:Number; public var m_next:b2Contact; public var m_friction:Number; public var m_manifoldCount:int; public var m_node1:b2ContactEdge; public var m_node2:b2ContactEdge; public var m_restitution:Number; public var m_flags:uint; public static var e_toiFlag:uint = 8; public static var e_nonSolidFlag:uint = 1; public static var e_slowFlag:uint = 2; public static var e_islandFlag:uint = 4; public static var s_registers:Array; public static var s_initialized:Boolean = false; public function b2Contact(_arg1:b2Shape=null, _arg2:b2Shape=null){ m_node1 = new b2ContactEdge(); m_node2 = new b2ContactEdge(); super(); m_flags = 0; if (((!(_arg1)) || (!(_arg2)))){ m_shape1 = null; m_shape2 = null; return; }; if (((_arg1.IsSensor()) || (_arg2.IsSensor()))){ m_flags = (m_flags | e_nonSolidFlag); }; m_shape1 = _arg1; m_shape2 = _arg2; m_manifoldCount = 0; m_friction = Math.sqrt((m_shape1.m_friction * m_shape2.m_friction)); m_restitution = b2Math.b2Max(m_shape1.m_restitution, m_shape2.m_restitution); m_prev = null; m_next = null; m_node1.contact = null; m_node1.prev = null; m_node1.next = null; m_node1.other = null; m_node2.contact = null; m_node2.prev = null; m_node2.next = null; m_node2.other = null; } public function IsSolid():Boolean{ return (((m_flags & e_nonSolidFlag) == 0)); } public function GetShape1():b2Shape{ return (m_shape1); } public function GetShape2():b2Shape{ return (m_shape2); } public function GetNext():b2Contact{ return (m_next); } public function GetManifoldCount():int{ return (m_manifoldCount); } public function GetManifolds():Array{ return (null); } public function Update(_arg1:b2ContactListener):void{ var _local2:int = m_manifoldCount; Evaluate(_arg1); var _local3:int = m_manifoldCount; var _local4:b2Body = m_shape1.m_body; var _local5:b2Body = 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 _local2:int; s_registers = new Array(b2Shape.e_shapeTypeCount); var _local1:int; while (_local1 < b2Shape.e_shapeTypeCount) { s_registers[_local1] = new Array(b2Shape.e_shapeTypeCount); _local2 = 0; while (_local2 < b2Shape.e_shapeTypeCount) { s_registers[_local1][_local2] = new b2ContactRegister(); _local2++; }; _local1++; }; AddType(b2CircleContact.Create, b2CircleContact.Destroy, b2Shape.e_circleShape, b2Shape.e_circleShape); AddType(b2PolyAndCircleContact.Create, b2PolyAndCircleContact.Destroy, b2Shape.e_polygonShape, b2Shape.e_circleShape); AddType(b2PolygonContact.Create, b2PolygonContact.Destroy, b2Shape.e_polygonShape, b2Shape.e_polygonShape); } public static function Destroy(_arg1:b2Contact, _arg2):void{ if (_arg1.m_manifoldCount > 0){ _arg1.m_shape1.m_body.WakeUp(); _arg1.m_shape2.m_body.WakeUp(); }; var _local3:int = _arg1.m_shape1.m_type; var _local4:int = _arg1.m_shape2.m_type; var _local5:b2ContactRegister = s_registers[_local3][_local4]; var _local6:Function = _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 _local8:b2Contact; var _local9:int; var _local10:b2Manifold; if (s_initialized == false){ InitializeRegisters(); s_initialized = true; }; var _local4:int = _arg1.m_type; var _local5:int = _arg2.m_type; var _local6:b2ContactRegister = s_registers[_local4][_local5]; var _local7:Function = _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 56
//b2ContactConstraint (Box2D.Dynamics.Contacts.b2ContactConstraint) package Box2D.Dynamics.Contacts { import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Common.*; public class b2ContactConstraint { public var points:Array; public var normal:b2Vec2; public var restitution:Number; public var body1:b2Body; public var manifold:b2Manifold; public var body2:b2Body; public var friction:Number; public var pointCount:int; public function b2ContactConstraint(){ normal = new b2Vec2(); super(); points = new Array(b2Settings.b2_maxManifoldPoints); var _local1:int; while (_local1 < b2Settings.b2_maxManifoldPoints) { points[_local1] = new b2ContactConstraintPoint(); _local1++; }; } } }//package Box2D.Dynamics.Contacts
Section 57
//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 tangentMass:Number; public var equalizedMass: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 58
//b2ContactEdge (Box2D.Dynamics.Contacts.b2ContactEdge) package Box2D.Dynamics.Contacts { import Box2D.Dynamics.*; public class b2ContactEdge { public var other:b2Body; public var prev:b2ContactEdge; public var contact:b2Contact; public var next:b2ContactEdge; } }//package Box2D.Dynamics.Contacts
Section 59
//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 60
//b2ContactResult (Box2D.Dynamics.Contacts.b2ContactResult) package Box2D.Dynamics.Contacts { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Collision.*; public class b2ContactResult { public var position:b2Vec2; public var shape1:b2Shape; public var shape2:b2Shape; public var normalImpulse:Number; public var normal:b2Vec2; 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 61
//b2ContactSolver (Box2D.Dynamics.Contacts.b2ContactSolver) package Box2D.Dynamics.Contacts { import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Common.*; public class b2ContactSolver { public var m_constraintCount:int; public var m_constraints:Array; public var m_allocator; public var m_step:b2TimeStep; public function b2ContactSolver(_arg1:b2TimeStep, _arg2:Array, _arg3:int, _arg4){ var _local5:b2Contact; var _local6:int; var _local7:b2Vec2; var _local8:b2Mat22; var _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++; }; var _local9:int; _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 _local6:b2ContactConstraint; var _local7:b2Body; var _local8:b2Body; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:int; var _local19:int; var _local20:b2ContactConstraintPoint; var _local21:Number; var _local22:Number; var _local23:b2ContactConstraintPoint; var _local5:int; while (_local5 < 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 _local3:b2Mat22; var _local4:b2Vec2; var _local6:b2ContactConstraint; var _local7:b2Body; var _local8:b2Body; var _local9:b2Vec2; var _local10:Number; var _local11:b2Vec2; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:int; var _local20:int; var _local21:b2ContactConstraintPoint; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:Number; var _local38:Number; var _local2:Number = 0; var _local5:int; while (_local5 < 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 _local20:b2ContactConstraint; var _local21:b2Body; var _local22:b2Body; var _local23:Number; var _local24:Number; var _local25:b2Vec2; var _local26:b2Vec2; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:int; var _local38:Number; var _local19:int; while (_local19 < 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 _local2:b2ContactConstraint; var _local3:b2Manifold; var _local4:int; var _local5:b2ManifoldPoint; var _local6:b2ContactConstraintPoint; var _local1:int; while (_local1 < m_constraintCount) { _local2 = m_constraints[_local1]; _local3 = _local2.manifold; _local4 = 0; while (_local4 < _local2.pointCount) { _local5 = _local3.points[_local4]; _local6 = _local2.points[_local4]; _local5.normalImpulse = _local6.normalImpulse; _local5.tangentImpulse = _local6.tangentImpulse; _local4++; }; _local1++; }; } } }//package Box2D.Dynamics.Contacts
Section 62
//b2NullContact (Box2D.Dynamics.Contacts.b2NullContact) package Box2D.Dynamics.Contacts { import Box2D.Dynamics.*; public class b2NullContact extends b2Contact { override public function Evaluate(_arg1:b2ContactListener):void{ } override public function GetManifolds():Array{ return (null); } } }//package Box2D.Dynamics.Contacts
Section 63
//b2PolyAndCircleContact (Box2D.Dynamics.Contacts.b2PolyAndCircleContact) package Box2D.Dynamics.Contacts { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Common.*; public class b2PolyAndCircleContact extends b2Contact { private var m_manifolds:Array; public var m_manifold:b2Manifold; private var m0:b2Manifold; private static const s_evalCP:b2ContactPoint = new b2ContactPoint(); public function b2PolyAndCircleContact(_arg1:b2Shape, _arg2:b2Shape){ 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; var _local3:b2ManifoldPoint = m_manifold.points[0]; _local3.normalImpulse = 0; _local3.tangentImpulse = 0; } override public function Evaluate(_arg1:b2ContactListener):void{ var _local2:int; var _local3:b2Vec2; var _local4:b2Vec2; var _local5:b2ManifoldPoint; var _local10:b2ManifoldPoint; var _local11:Boolean; var _local12:uint; var _local13:int; var _local6:b2Body = m_shape1.m_body; var _local7:b2Body = 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); var _local8:Array = [false, false]; var _local9:b2ContactPoint = 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++; }; } override public function GetManifolds():Array{ return (m_manifolds); } 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 64
//b2PolygonContact (Box2D.Dynamics.Contacts.b2PolygonContact) package Box2D.Dynamics.Contacts { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Common.*; public class b2PolygonContact extends b2Contact { private var m_manifolds:Array; private var m0:b2Manifold; public var m_manifold:b2Manifold; private static const s_evalCP:b2ContactPoint = new b2ContactPoint(); public function b2PolygonContact(_arg1:b2Shape, _arg2:b2Shape):void{ m0 = new b2Manifold(); m_manifolds = [new b2Manifold()]; super(_arg1, _arg2); m_manifold = m_manifolds[0]; m_manifold.pointCount = 0; } override public function Evaluate(_arg1:b2ContactListener):void{ var _local2:b2Vec2; var _local3:b2Vec2; var _local4:b2ManifoldPoint; var _local7:b2ContactPoint; var _local8:int; var _local10:b2ManifoldPoint; var _local11:Boolean; var _local12:uint; var _local13:int; var _local5:b2Body = m_shape1.m_body; var _local6:b2Body = 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); var _local9:Array = [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++; }; } override public function GetManifolds():Array{ return (m_manifolds); } 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 65
//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_localAnchor1:b2Vec2; public var m_localAnchor2:b2Vec2; public var m_bias:Number; public var m_gamma:Number; public var m_u:b2Vec2; public var m_mass:Number; public var m_impulse:Number; public var m_dampingRatio:Number; public var m_frequencyHz: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 InitVelocityConstraints(_arg1:b2TimeStep):void{ var _local2:b2Mat22; var _local3:Number; var _local4:b2Body; var _local5:b2Body; var _local6:Number; var _local8:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; 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); var _local7:Number = (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); var _local9:Number = (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); var _local10:Number = 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(); }; var _local11:Number = ((_local6 * m_u.y) - (_local7 * m_u.x)); var _local12:Number = ((_local8 * m_u.y) - (_local9 * m_u.x)); var _local13:Number = (((_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 GetReactionForce():b2Vec2{ var _local1:b2Vec2 = new b2Vec2(); _local1.SetV(m_u); _local1.Multiply((m_inv_dt * m_impulse)); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local1:b2Mat22; if (m_frequencyHz > 0){ return (true); }; var _local2:b2Body = m_body1; var _local3:b2Body = m_body2; _local1 = _local2.m_xf.R; var _local4:Number = (m_localAnchor1.x - _local2.m_sweep.localCenter.x); var _local5:Number = (m_localAnchor1.y - _local2.m_sweep.localCenter.y); var _local6:Number = ((_local1.col1.x * _local4) + (_local1.col2.x * _local5)); _local5 = ((_local1.col1.y * _local4) + (_local1.col2.y * _local5)); _local4 = _local6; _local1 = _local3.m_xf.R; var _local7:Number = (m_localAnchor2.x - _local3.m_sweep.localCenter.x); var _local8:Number = (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; var _local9:Number = (((_local3.m_sweep.c.x + _local7) - _local2.m_sweep.c.x) - _local4); var _local10:Number = (((_local3.m_sweep.c.y + _local8) - _local2.m_sweep.c.y) - _local5); var _local11:Number = Math.sqrt(((_local9 * _local9) + (_local10 * _local10))); _local9 = (_local9 / _local11); _local10 = (_local10 / _local11); var _local12:Number = (_local11 - m_length); _local12 = b2Math.b2Clamp(_local12, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection); var _local13:Number = (-(m_mass) * _local12); m_u.Set(_local9, _local10); var _local14:Number = (_local13 * m_u.x); var _local15:Number = (_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 SolveVelocityConstraints(_arg1:b2TimeStep):void{ var _local2:b2Mat22; var _local3:b2Body = m_body1; var _local4:b2Body = m_body2; _local2 = _local3.m_xf.R; var _local5:Number = (m_localAnchor1.x - _local3.m_sweep.localCenter.x); var _local6:Number = (m_localAnchor1.y - _local3.m_sweep.localCenter.y); var _local7:Number = ((_local2.col1.x * _local5) + (_local2.col2.x * _local6)); _local6 = ((_local2.col1.y * _local5) + (_local2.col2.y * _local6)); _local5 = _local7; _local2 = _local4.m_xf.R; var _local8:Number = (m_localAnchor2.x - _local4.m_sweep.localCenter.x); var _local9:Number = (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; var _local10:Number = (_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local6)); var _local11:Number = (_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local5)); var _local12:Number = (_local4.m_linearVelocity.x + (-(_local4.m_angularVelocity) * _local9)); var _local13:Number = (_local4.m_linearVelocity.y + (_local4.m_angularVelocity * _local8)); var _local14:Number = ((m_u.x * (_local12 - _local10)) + (m_u.y * (_local13 - _local11))); var _local15:Number = (-(m_mass) * ((_local14 + m_bias) + (m_gamma * m_impulse))); m_impulse = (m_impulse + _local15); var _local16:Number = (_local15 * m_u.x); var _local17:Number = (_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 66
//b2DistanceJointDef (Box2D.Dynamics.Joints.b2DistanceJointDef) package Box2D.Dynamics.Joints { import Box2D.Common.Math.*; import Box2D.Dynamics.*; public class b2DistanceJointDef extends b2JointDef { public var localAnchor1:b2Vec2; public var length:Number; public var dampingRatio:Number; public var localAnchor2:b2Vec2; public var frequencyHz:Number; 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{ body1 = _arg1; body2 = _arg2; localAnchor1.SetV(body1.GetLocalPoint(_arg3)); localAnchor2.SetV(body2.GetLocalPoint(_arg4)); var _local5:Number = (_arg4.x - _arg3.x); var _local6:Number = (_arg4.y - _arg3.y); length = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); frequencyHz = 0; dampingRatio = 0; } } }//package Box2D.Dynamics.Joints
Section 67
//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_ground2:b2Body; 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_revolute2:b2RevoluteJoint; public var m_force:Number; public var m_mass:Number; public var m_prismatic2:b2PrismaticJoint; public var m_ground1:b2Body; public var m_revolute1:b2RevoluteJoint; public var m_prismatic1:b2PrismaticJoint; public var m_constant:Number; public var m_J:b2Jacobian; public function b2GearJoint(_arg1:b2GearJointDef){ var _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); var _local2:int = _arg1.joint1.m_type; var _local3:int = _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 InitVelocityConstraints(_arg1:b2TimeStep):void{ var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:b2Mat22; var _local11:b2Vec2; var _local12:Number; var _local13:Number; var _local15:Number; var _local2:b2Body = m_ground1; var _local3:b2Body = m_ground2; var _local4:b2Body = m_body1; var _local5:b2Body = m_body2; var _local14:Number = 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 = m_body2.m_xf.R; var _local2:Number = (m_localAnchor1.x - m_body2.m_sweep.localCenter.x); var _local3:Number = (m_localAnchor1.y - m_body2.m_sweep.localCenter.y); var _local4:Number = ((_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); } override public function GetReactionForce():b2Vec2{ var _local1:b2Vec2 = new b2Vec2((m_force * m_J.linear2.x), (m_force * m_J.linear2.y)); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local4:Number; var _local5:Number; var _local1:Number = 0; var _local2:b2Body = m_body1; var _local3:b2Body = m_body2; if (m_revolute1){ _local4 = m_revolute1.GetJointAngle(); } else { _local4 = m_prismatic1.GetJointTranslation(); }; if (m_revolute2){ _local5 = m_revolute2.GetJointAngle(); } else { _local5 = m_prismatic2.GetJointTranslation(); }; var _local6:Number = (m_constant - (_local4 + (m_ratio * _local5))); var _local7:Number = (-(m_mass) * _local6); _local2.m_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)); } public function GetRatio():Number{ return (m_ratio); } override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{ var _local2:b2Body = m_body1; var _local3:b2Body = m_body2; var _local4:Number = m_J.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity); var _local5:Number = ((-(_arg1.inv_dt) * m_mass) * _local4); m_force = (m_force + _local5); var _local6:Number = (_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 68
//b2GearJointDef (Box2D.Dynamics.Joints.b2GearJointDef) package Box2D.Dynamics.Joints { public class b2GearJointDef extends b2JointDef { public var joint1:b2Joint; public var joint2:b2Joint; public var ratio:Number; public function b2GearJointDef(){ type = b2Joint.e_gearJoint; joint1 = null; joint2 = null; ratio = 1; } } }//package Box2D.Dynamics.Joints
Section 69
//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 angular1:Number; public var angular2:Number; public function b2Jacobian(){ linear1 = new b2Vec2(); linear2 = new b2Vec2(); super(); } public function Set(_arg1:b2Vec2, _arg2:Number, _arg3:b2Vec2, _arg4:Number):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 70
//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 GetBody2():b2Body{ return (m_body2); } public function GetAnchor1():b2Vec2{ return (null); } public function GetAnchor2():b2Vec2{ return (null); } public function GetNext():b2Joint{ return (m_next); } public function GetType():int{ return (m_type); } public function InitVelocityConstraints(_arg1:b2TimeStep):void{ } 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; 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 71
//b2JointDef (Box2D.Dynamics.Joints.b2JointDef) package Box2D.Dynamics.Joints { import Box2D.Dynamics.*; public class b2JointDef { public var body2:b2Body; public var type:int; public var userData; public var collideConnected:Boolean; public var body1:b2Body; public function b2JointDef(){ type = b2Joint.e_unknownJoint; userData = null; body1 = null; body2 = null; collideConnected = false; } } }//package Box2D.Dynamics.Joints
Section 72
//b2JointEdge (Box2D.Dynamics.Joints.b2JointEdge) package Box2D.Dynamics.Joints { import Box2D.Dynamics.*; public class b2JointEdge { public var other:b2Body; public var next:b2JointEdge; public var prev:b2JointEdge; public var joint:b2Joint; } }//package Box2D.Dynamics.Joints
Section 73
//b2MouseJoint (Box2D.Dynamics.Joints.b2MouseJoint) package Box2D.Dynamics.Joints { import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Common.*; public class b2MouseJoint extends b2Joint { private var K1:b2Mat22; private var K:b2Mat22; public var m_beta:Number; public var m_mass:b2Mat22; private var K2:b2Mat22; public var m_target:b2Vec2; public var m_gamma:Number; public var m_impulse:b2Vec2; public var m_C:b2Vec2; public var m_localAnchor:b2Vec2; public var m_maxForce:Number; public function b2MouseJoint(_arg1:b2MouseJointDef){ var _local3:Number; K = new b2Mat22(); K1 = new b2Mat22(); K2 = new b2Mat22(); m_localAnchor = new b2Vec2(); m_target = new b2Vec2(); m_impulse = new b2Vec2(); m_mass = new b2Mat22(); m_C = new b2Vec2(); super(_arg1); m_target.SetV(_arg1.target); var _local2:Number = (m_target.x - m_body2.m_xf.position.x); _local3 = (m_target.y - m_body2.m_xf.position.y); var _local4:b2Mat22 = 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(); var _local5:Number = m_body2.m_mass; var _local6:Number = ((2 * b2Settings.b2_pi) * _arg1.frequencyHz); var _local7:Number = (((2 * _local5) * _arg1.dampingRatio) * _local6); var _local8:Number = ((_arg1.timeStep * _local5) * (_local6 * _local6)); m_gamma = (1 / (_local7 + _local8)); m_beta = (_local8 / (_local7 + _local8)); } public function SetTarget(_arg1:b2Vec2):void{ if (m_body2.IsSleeping()){ m_body2.WakeUp(); }; m_target = _arg1; } override public function GetAnchor2():b2Vec2{ return (m_body2.GetWorldPoint(m_localAnchor)); } override public function InitVelocityConstraints(_arg1:b2TimeStep):void{ var _local2:b2Body; var _local3:b2Mat22; var _local4:Number; var _local5:Number; var _local7:Number; var _local8: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); var _local6:Number = ((_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); var _local9:Number = (_arg1.dt * m_impulse.x); var _local10:Number = (_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 GetAnchor1():b2Vec2{ return (m_target); } override public function GetReactionTorque():Number{ return (0); } override public function GetReactionForce():b2Vec2{ return (m_impulse); } override public function SolvePositionConstraints():Boolean{ return (true); } override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{ var _local3:b2Mat22; var _local4:Number; var _local5:Number; var _local2:b2Body = m_body2; _local3 = _local2.m_xf.R; var _local6:Number = (m_localAnchor.x - _local2.m_sweep.localCenter.x); var _local7:Number = (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; var _local8:Number = (_local2.m_linearVelocity.x + (-(_local2.m_angularVelocity) * _local7)); var _local9:Number = (_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)); var _local10:Number = (-(_arg1.inv_dt) * ((_local3.col1.x * _local4) + (_local3.col2.x * _local5))); var _local11:Number = (-(_arg1.inv_dt) * ((_local3.col1.y * _local4) + (_local3.col2.y * _local5))); var _local12:Number = m_impulse.x; var _local13:Number = m_impulse.y; m_impulse.x = (m_impulse.x + _local10); m_impulse.y = (m_impulse.y + _local11); var _local14:Number = m_impulse.Length(); if (_local14 > m_maxForce){ m_impulse.Multiply((m_maxForce / _local14)); }; _local10 = (m_impulse.x - _local12); _local11 = (m_impulse.y - _local13); var _local15:Number = (_arg1.dt * _local10); var _local16:Number = (_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 74
//b2MouseJointDef (Box2D.Dynamics.Joints.b2MouseJointDef) package Box2D.Dynamics.Joints { import Box2D.Common.Math.*; public class b2MouseJointDef extends b2JointDef { public var timeStep:Number; public var target:b2Vec2; public var maxForce:Number; public var dampingRatio:Number; public var frequencyHz:Number; public function b2MouseJointDef(){ target = new b2Vec2(); super(); type = b2Joint.e_mouseJoint; maxForce = 0; frequencyHz = 5; dampingRatio = 0.7; timeStep = (1 / 60); } } }//package Box2D.Dynamics.Joints
Section 75
//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_lowerTranslation:Number; public var m_localXAxis1:b2Vec2; public var m_refAngle:Number; public var m_torque:Number; public var m_motorForce:Number; public var m_enableLimit:Boolean; public var m_angularMass:Number; public var m_maxMotorForce:Number; public var m_localYAxis1:b2Vec2; public var m_force:Number; public var m_motorMass:Number; public var m_upperTranslation:Number; public var m_localAnchor1:b2Vec2; public var m_localAnchor2:b2Vec2; public var m_limitState:int; public var m_linearMass:Number; public var m_motorJacobian:b2Jacobian; public var m_limitPositionImpulse:Number; public var m_motorSpeed:Number; public var m_enableMotor:Boolean; public var m_linearJacobian:b2Jacobian; public function b2PrismaticJoint(_arg1:b2PrismaticJointDef){ var _local2:b2Mat22; var _local3:Number; var _local4:Number; m_localAnchor1 = new b2Vec2(); m_localAnchor2 = new b2Vec2(); m_localXAxis1 = new b2Vec2(); m_localYAxis1 = new b2Vec2(); m_linearJacobian = new b2Jacobian(); m_motorJacobian = new b2Jacobian(); super(_arg1); 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 SolveVelocityConstraints(_arg1:b2TimeStep):void{ var _local8:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local2:b2Body = m_body1; var _local3:b2Body = m_body2; var _local4:Number = _local2.m_invMass; var _local5:Number = _local3.m_invMass; var _local6:Number = _local2.m_invI; var _local7:Number = _local3.m_invI; var _local9:Number = m_linearJacobian.Compute(_local2.m_linearVelocity, _local2.m_angularVelocity, _local3.m_linearVelocity, _local3.m_angularVelocity); var _local10:Number = ((-(_arg1.inv_dt) * m_linearMass) * _local9); m_force = (m_force + _local10); var _local11:Number = (_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)); var _local12:Number = (_local3.m_angularVelocity - _local2.m_angularVelocity); var _local13:Number = ((-(_arg1.inv_dt) * m_angularMass) * _local12); m_torque = (m_torque + _local13); var _local14:Number = (_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)); }; } override public function GetAnchor1():b2Vec2{ return (m_body1.GetWorldPoint(m_localAnchor1)); } override public function GetAnchor2():b2Vec2{ return (m_body2.GetWorldPoint(m_localAnchor2)); } public function GetUpperLimit():Number{ return (m_upperTranslation); } public function GetLowerLimit():Number{ return (m_lowerTranslation); } public function EnableMotor(_arg1:Boolean):void{ m_enableMotor = _arg1; } public function GetJointTranslation():Number{ var _local3:b2Mat22; var _local1:b2Body = m_body1; var _local2:b2Body = m_body2; var _local4:b2Vec2 = _local1.GetWorldPoint(m_localAnchor1); var _local5:b2Vec2 = _local2.GetWorldPoint(m_localAnchor2); var _local6:Number = (_local5.x - _local4.x); var _local7:Number = (_local5.y - _local4.y); var _local8:b2Vec2 = _local1.GetWorldVector(m_localXAxis1); var _local9:Number = ((_local8.x * _local6) + (_local8.y * _local7)); return (_local9); } public function GetMotorSpeed():Number{ return (m_motorSpeed); } override public function GetReactionForce():b2Vec2{ var _local1:b2Mat22 = m_body1.m_xf.R; var _local2:Number = (m_limitForce * ((_local1.col1.x * m_localXAxis1.x) + (_local1.col2.x * m_localXAxis1.y))); var _local3:Number = (m_limitForce * ((_local1.col1.y * m_localXAxis1.x) + (_local1.col2.y * m_localXAxis1.y))); var _local4:Number = (m_force * ((_local1.col1.x * m_localYAxis1.x) + (_local1.col2.x * m_localYAxis1.y))); var _local5:Number = (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 _local9:b2Mat22; var _local10:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local3:b2Body = m_body1; var _local4:b2Body = m_body2; var _local5:Number = _local3.m_invMass; var _local6:Number = _local4.m_invMass; var _local7:Number = _local3.m_invI; var _local8:Number = _local4.m_invI; _local9 = _local3.m_xf.R; var _local11:Number = (m_localAnchor1.x - _local3.m_sweep.localCenter.x); var _local12:Number = (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; var _local13:Number = (m_localAnchor2.x - _local4.m_sweep.localCenter.x); var _local14:Number = (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; var _local15:Number = (_local3.m_sweep.c.x + _local11); var _local16:Number = (_local3.m_sweep.c.y + _local12); var _local17:Number = (_local4.m_sweep.c.x + _local13); var _local18:Number = (_local4.m_sweep.c.y + _local14); var _local19:Number = (_local17 - _local15); var _local20:Number = (_local18 - _local16); _local9 = _local3.m_xf.R; var _local21:Number = ((_local9.col1.x * m_localYAxis1.x) + (_local9.col2.x * m_localYAxis1.y)); var _local22:Number = ((_local9.col1.y * m_localYAxis1.x) + (_local9.col2.y * m_localYAxis1.y)); var _local23:Number = ((_local21 * _local19) + (_local22 * _local20)); _local23 = b2Math.b2Clamp(_local23, -(b2Settings.b2_maxLinearCorrection), b2Settings.b2_maxLinearCorrection); var _local24:Number = (-(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)); var _local25:Number = b2Math.b2Abs(_local23); var _local26:Number = ((_local4.m_sweep.a - _local3.m_sweep.a) - m_refAngle); _local26 = b2Math.b2Clamp(_local26, -(b2Settings.b2_maxAngularCorrection), b2Settings.b2_maxAngularCorrection); var _local27:Number = (-(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(); var _local28:Number = 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 SetMotorSpeed(_arg1:Number):void{ m_motorSpeed = _arg1; } public function GetJointSpeed():Number{ var _local3:b2Mat22; var _local1:b2Body = m_body1; var _local2:b2Body = m_body2; _local3 = _local1.m_xf.R; var _local4:Number = (m_localAnchor1.x - _local1.m_sweep.localCenter.x); var _local5:Number = (m_localAnchor1.y - _local1.m_sweep.localCenter.y); var _local6:Number = ((_local3.col1.x * _local4) + (_local3.col2.x * _local5)); _local5 = ((_local3.col1.y * _local4) + (_local3.col2.y * _local5)); _local4 = _local6; _local3 = _local2.m_xf.R; var _local7:Number = (m_localAnchor2.x - _local2.m_sweep.localCenter.x); var _local8:Number = (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; var _local9:Number = (_local1.m_sweep.c.x + _local4); var _local10:Number = (_local1.m_sweep.c.y + _local5); var _local11:Number = (_local2.m_sweep.c.x + _local7); var _local12:Number = (_local2.m_sweep.c.y + _local8); var _local13:Number = (_local11 - _local9); var _local14:Number = (_local12 - _local10); var _local15:b2Vec2 = _local1.GetWorldVector(m_localXAxis1); var _local16:b2Vec2 = _local1.m_linearVelocity; var _local17:b2Vec2 = _local2.m_linearVelocity; var _local18:Number = _local1.m_angularVelocity; var _local19:Number = _local2.m_angularVelocity; var _local20:Number = (((_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); } override public function InitVelocityConstraints(_arg1:b2TimeStep):void{ var _local4:b2Mat22; var _local5:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local2:b2Body = m_body1; var _local3:b2Body = m_body2; _local4 = _local2.m_xf.R; var _local6:Number = (m_localAnchor1.x - _local2.m_sweep.localCenter.x); var _local7:Number = (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; var _local8:Number = (m_localAnchor2.x - _local3.m_sweep.localCenter.x); var _local9:Number = (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; var _local10:Number = _local2.m_invMass; var _local11:Number = _local3.m_invMass; var _local12:Number = _local2.m_invI; var _local13:Number = _local3.m_invI; _local4 = _local2.m_xf.R; var _local14:Number = ((_local4.col1.x * m_localYAxis1.x) + (_local4.col2.x * m_localYAxis1.y)); var _local15:Number = ((_local4.col1.y * m_localYAxis1.x) + (_local4.col2.y * m_localYAxis1.y)); var _local16:Number = ((_local3.m_sweep.c.x + _local8) - _local2.m_sweep.c.x); var _local17:Number = ((_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 EnableLimit(_arg1:Boolean):void{ m_enableLimit = _arg1; } public function SetMaxMotorForce(_arg1:Number):void{ m_maxMotorForce = _arg1; } override public function GetReactionTorque():Number{ return (m_torque); } public function IsLimitEnabled():Boolean{ return (m_enableLimit); } public function IsMotorEnabled():Boolean{ return (m_enableMotor); } public function SetLimits(_arg1:Number, _arg2:Number):void{ m_lowerTranslation = _arg1; m_upperTranslation = _arg2; } } }//package Box2D.Dynamics.Joints
Section 76
//b2PrismaticJointDef (Box2D.Dynamics.Joints.b2PrismaticJointDef) package Box2D.Dynamics.Joints { import Box2D.Common.Math.*; import Box2D.Dynamics.*; public class b2PrismaticJointDef extends b2JointDef { public var motorSpeed:Number; public var localAxis1:b2Vec2; public var referenceAngle:Number; public var upperTranslation:Number; public var localAnchor1:b2Vec2; public var localAnchor2:b2Vec2; public var enableLimit:Boolean; public var enableMotor:Boolean; public var maxMotorForce:Number; 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 77
//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_limitState1:int; public var m_limitState2:int; public var m_ground:b2Body; public var m_maxLength2:Number; public var m_maxLength1:Number; public var m_limitPositionImpulse1:Number; public var m_limitPositionImpulse2:Number; public var m_force:Number; public var m_constant:Number; public var m_positionImpulse: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_limitMass1:Number; public var m_limitMass2:Number; public var m_pulleyMass:Number; public var m_u1:b2Vec2; public var m_limitForce1:Number; public var m_limitForce2:Number; public var m_u2:b2Vec2; 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 = 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 = m_u2.Copy(); _local1.Multiply(m_force); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local3:b2Mat22; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local1:b2Body = m_body1; var _local2:b2Body = m_body2; var _local4:Number = (m_ground.m_xf.position.x + m_groundAnchor1.x); var _local5:Number = (m_ground.m_xf.position.y + m_groundAnchor1.y); var _local6:Number = (m_ground.m_xf.position.x + m_groundAnchor2.x); var _local7:Number = (m_ground.m_xf.position.y + m_groundAnchor2.y); var _local23:Number = 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 _local4:b2Mat22; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local2:b2Body = m_body1; var _local3:b2Body = m_body2; _local4 = _local2.m_xf.R; var _local5:Number = (m_localAnchor1.x - _local2.m_sweep.localCenter.x); var _local6:Number = (m_localAnchor1.y - _local2.m_sweep.localCenter.y); var _local7:Number = ((_local4.col1.x * _local5) + (_local4.col2.x * _local6)); _local6 = ((_local4.col1.y * _local5) + (_local4.col2.y * _local6)); _local5 = _local7; _local4 = _local3.m_xf.R; var _local8:Number = (m_localAnchor2.x - _local3.m_sweep.localCenter.x); var _local9:Number = (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; var _local10:Number = (_local2.m_sweep.c.x + _local5); var _local11:Number = (_local2.m_sweep.c.y + _local6); var _local12:Number = (_local3.m_sweep.c.x + _local8); var _local13:Number = (_local3.m_sweep.c.y + _local9); var _local14:Number = (m_ground.m_xf.position.x + m_groundAnchor1.x); var _local15:Number = (m_ground.m_xf.position.y + m_groundAnchor1.y); var _local16:Number = (m_ground.m_xf.position.x + m_groundAnchor2.x); var _local17:Number = (m_ground.m_xf.position.y + m_groundAnchor2.y); m_u1.Set((_local10 - _local14), (_local11 - _local15)); m_u2.Set((_local12 - _local16), (_local13 - _local17)); var _local18:Number = m_u1.Length(); var _local19:Number = 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(); }; var _local20:Number = ((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; }; var _local21:Number = ((_local5 * m_u1.y) - (_local6 * m_u1.x)); var _local22:Number = ((_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); } override public function SolveVelocityConstraints(_arg1:b2TimeStep):void{ var _local4:b2Mat22; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local2:b2Body = m_body1; var _local3:b2Body = m_body2; _local4 = _local2.m_xf.R; var _local5:Number = (m_localAnchor1.x - _local2.m_sweep.localCenter.x); var _local6:Number = (m_localAnchor1.y - _local2.m_sweep.localCenter.y); var _local7:Number = ((_local4.col1.x * _local5) + (_local4.col2.x * _local6)); _local6 = ((_local4.col1.y * _local5) + (_local4.col2.y * _local6)); _local5 = _local7; _local4 = _local3.m_xf.R; var _local8:Number = (m_localAnchor2.x - _local3.m_sweep.localCenter.x); var _local9:Number = (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 = m_body1.GetWorldPoint(m_localAnchor1); var _local2:Number = (m_ground.m_xf.position.x + m_groundAnchor1.x); var _local3:Number = (m_ground.m_xf.position.y + m_groundAnchor1.y); var _local4:Number = (_local1.x - _local2); var _local5:Number = (_local1.y - _local3); return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5)))); } public function GetLength2():Number{ var _local1:b2Vec2 = m_body2.GetWorldPoint(m_localAnchor2); var _local2:Number = (m_ground.m_xf.position.x + m_groundAnchor2.x); var _local3:Number = (m_ground.m_xf.position.y + m_groundAnchor2.y); var _local4:Number = (_local1.x - _local2); var _local5:Number = (_local1.y - _local3); return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5)))); } public function GetGroundAnchor1():b2Vec2{ var _local1:b2Vec2 = m_ground.m_xf.position.Copy(); _local1.Add(m_groundAnchor1); return (_local1); } } }//package Box2D.Dynamics.Joints
Section 78
//b2PulleyJointDef (Box2D.Dynamics.Joints.b2PulleyJointDef) package Box2D.Dynamics.Joints { import Box2D.Common.Math.*; import Box2D.Dynamics.*; public class b2PulleyJointDef extends b2JointDef { public var maxLength1:Number; public var maxLength2:Number; public var length1:Number; public var localAnchor1:b2Vec2; public var localAnchor2:b2Vec2; public var groundAnchor1:b2Vec2; public var groundAnchor2:b2Vec2; public var ratio:Number; public var length2:Number; 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{ body1 = _arg1; body2 = _arg2; groundAnchor1.SetV(_arg3); groundAnchor2.SetV(_arg4); localAnchor1 = body1.GetLocalPoint(_arg5); localAnchor2 = body2.GetLocalPoint(_arg6); var _local8:Number = (_arg5.x - _arg3.x); var _local9:Number = (_arg5.y - _arg3.y); length1 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); var _local10:Number = (_arg6.x - _arg4.x); var _local11:Number = (_arg6.y - _arg4.y); length2 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); ratio = _arg7; var _local12:Number = (length1 + (ratio * length2)); maxLength1 = (_local12 - (ratio * b2PulleyJoint.b2_minPulleyLength)); maxLength2 = ((_local12 - b2PulleyJoint.b2_minPulleyLength) / ratio); } } }//package Box2D.Dynamics.Joints
Section 79
//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_pivotMass:b2Mat22; public var m_motorForce:Number; 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_enableMotor:Boolean; public var m_referenceAngle:Number; public var m_limitPositionImpulse:Number; public var m_motorSpeed:Number; public var m_upperAngle:Number; public var m_lowerAngle:Number; public var m_maxMotorTorque:Number; public 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 SolveVelocityConstraints(_arg1:b2TimeStep):void{ var _local4:b2Mat22; var _local5:Number; var _local10:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local2:b2Body = m_body1; var _local3:b2Body = m_body2; _local4 = _local2.m_xf.R; var _local6:Number = (m_localAnchor1.x - _local2.m_sweep.localCenter.x); var _local7:Number = (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; var _local8:Number = (m_localAnchor2.x - _local3.m_sweep.localCenter.x); var _local9:Number = (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; var _local11:Number = (((_local3.m_linearVelocity.x + (-(_local3.m_angularVelocity) * _local9)) - _local2.m_linearVelocity.x) - (-(_local2.m_angularVelocity) * _local7)); var _local12:Number = (((_local3.m_linearVelocity.y + (_local3.m_angularVelocity * _local8)) - _local2.m_linearVelocity.y) - (_local2.m_angularVelocity * _local6)); var _local13:Number = (-(_arg1.inv_dt) * ((m_pivotMass.col1.x * _local11) + (m_pivotMass.col2.x * _local12))); var _local14:Number = (-(_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); var _local15:Number = (_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)); }; } override public function GetAnchor1():b2Vec2{ return (m_body1.GetWorldPoint(m_localAnchor1)); } override public function GetAnchor2():b2Vec2{ return (m_body2.GetWorldPoint(m_localAnchor2)); } public function GetUpperLimit():Number{ return (m_upperAngle); } public function GetLowerLimit():Number{ return (m_lowerAngle); } public function EnableMotor(_arg1:Boolean):void{ m_enableMotor = _arg1; } 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 _local6:b2Mat22; var _local25:Number; var _local26:Number; var _local3:b2Body = m_body1; var _local4:b2Body = m_body2; var _local5:Number = 0; _local6 = _local3.m_xf.R; var _local7:Number = (m_localAnchor1.x - _local3.m_sweep.localCenter.x); var _local8:Number = (m_localAnchor1.y - _local3.m_sweep.localCenter.y); var _local9:Number = ((_local6.col1.x * _local7) + (_local6.col2.x * _local8)); _local8 = ((_local6.col1.y * _local7) + (_local6.col2.y * _local8)); _local7 = _local9; _local6 = _local4.m_xf.R; var _local10:Number = (m_localAnchor2.x - _local4.m_sweep.localCenter.x); var _local11:Number = (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; var _local12:Number = (_local3.m_sweep.c.x + _local7); var _local13:Number = (_local3.m_sweep.c.y + _local8); var _local14:Number = (_local4.m_sweep.c.x + _local10); var _local15:Number = (_local4.m_sweep.c.y + _local11); var _local16:Number = (_local14 - _local12); var _local17:Number = (_local15 - _local13); _local5 = Math.sqrt(((_local16 * _local16) + (_local17 * _local17))); var _local18:Number = _local3.m_invMass; var _local19:Number = _local4.m_invMass; var _local20:Number = _local3.m_invI; var _local21:Number = _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)); var _local22:Number = tImpulse.x; var _local23:Number = 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(); var _local24:Number = 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 SetMotorSpeed(_arg1:Number):void{ m_motorSpeed = _arg1; } public function GetJointSpeed():Number{ return ((m_body2.m_angularVelocity - m_body1.m_angularVelocity)); } 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)); } public function GetMotorTorque():Number{ return (m_motorForce); } override public function InitVelocityConstraints(_arg1:b2TimeStep):void{ var _local2:b2Body; var _local3:b2Body; var _local4:b2Mat22; var _local5:Number; var _local7:Number; var _local14:Number; _local2 = m_body1; _local3 = m_body2; _local4 = _local2.m_xf.R; var _local6:Number = (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; var _local8:Number = (m_localAnchor2.x - _local3.m_sweep.localCenter.x); var _local9:Number = (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; var _local10:Number = _local2.m_invMass; var _local11:Number = _local3.m_invMass; var _local12:Number = _local2.m_invI; var _local13:Number = _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; } override public function GetReactionTorque():Number{ return (m_limitForce); } public function IsLimitEnabled():Boolean{ return (m_enableLimit); } public function IsMotorEnabled():Boolean{ return (m_enableMotor); } public function SetLimits(_arg1:Number, _arg2:Number):void{ m_lowerAngle = _arg1; m_upperAngle = _arg2; } } }//package Box2D.Dynamics.Joints
Section 80
//b2RevoluteJointDef (Box2D.Dynamics.Joints.b2RevoluteJointDef) package Box2D.Dynamics.Joints { import Box2D.Common.Math.*; import Box2D.Dynamics.*; public class b2RevoluteJointDef extends b2JointDef { public var upperAngle:Number; public var enableMotor:Boolean; public var referenceAngle:Number; public var motorSpeed:Number; public var localAnchor1:b2Vec2; public var localAnchor2:b2Vec2; public var enableLimit:Boolean; public var lowerAngle:Number; public var maxMotorTorque:Number; 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 81
//b2Body (Box2D.Dynamics.b2Body) package Box2D.Dynamics { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Dynamics.Joints.*; import Box2D.Dynamics.Contacts.*; public class b2Body { public var m_next:b2Body; public var m_xf:b2XForm; 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_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_shapeCount:int; public var m_angularDamping:Number; public var m_invI:Number; public var m_linearVelocity:b2Vec2; public var m_sleepTime:Number; 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){ 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); var _local3:b2Mat22 = m_xf.R; var _local4:b2Vec2 = 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{ m_xf.R.Set(m_sweep.a); var _local1:b2Mat22 = m_xf.R; var _local2:b2Vec2 = 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; if (m_world.m_lock == true){ return; }; m_mass = 0; m_invMass = 0; m_I = 0; m_invI = 0; var _local2:Number = 0; var _local3:Number = 0; var _local4:b2MassData = 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); var _local5:b2Mat22 = m_xf.R; var _local6:b2Vec2 = 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; }; var _local7:int = 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 _local7:Boolean; if (m_world.m_lock == true){ return (true); }; if (IsFrozen()){ return (false); }; m_xf.R.Set(_arg2); m_xf.position.SetV(_arg1); var _local4:b2Mat22 = m_xf.R; var _local5:b2Vec2 = 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); var _local6:Boolean; _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 _local4:b2Shape; var _local1:b2XForm = s_xf1; _local1.R.Set(m_sweep.a0); var _local2:b2Mat22 = _local1.R; var _local3:b2Vec2 = 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))); var _local5:Boolean; _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 GetLinearVelocityFromLocalPoint(_arg1:b2Vec2):b2Vec2{ var _local2:b2Mat22 = m_xf.R; var _local3:b2Vec2 = 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 GetNext():b2Body{ return (m_next); } public function GetMass():Number{ return (m_mass); } 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 GetAngularVelocity():Number{ return (m_angularVelocity); } public function SetAngularVelocity(_arg1:Number):void{ m_angularVelocity = _arg1; } public function SetMass(_arg1:b2MassData):void{ var _local2:b2Shape; 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); var _local3:b2Mat22 = m_xf.R; var _local4:b2Vec2 = 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; }; var _local5:int = 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 = 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{ if (m_world.m_lock == true){ return; }; _arg1.DestroyProxy(m_world.m_broadPhase); var _local2:b2Shape = m_shapeList; var _local3:b2Shape; var _local4:Boolean; 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 = m_xf.R; var _local3:b2Vec2 = 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 82
//b2BodyDef (Box2D.Dynamics.b2BodyDef) package Box2D.Dynamics { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; public class b2BodyDef { public var angularDamping:Number; public var angle:Number; public var isSleeping:Boolean; public var position:b2Vec2; public var isBullet:Boolean; public var allowSleep:Boolean; public var userData; public var fixedRotation:Boolean; 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 83
//b2BoundaryListener (Box2D.Dynamics.b2BoundaryListener) package Box2D.Dynamics { public class b2BoundaryListener { public function Violation(_arg1:b2Body):void{ } } }//package Box2D.Dynamics
Section 84
//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 = _arg1.GetFilterData(); var _local4:b2FilterData = _arg2.GetFilterData(); if ((((_local3.groupIndex == _local4.groupIndex)) && (!((_local3.groupIndex == 0))))){ return ((_local3.groupIndex > 0)); }; var _local5:Boolean = ((!(((_local3.maskBits & _local4.categoryBits) == 0))) && (!(((_local3.categoryBits & _local4.maskBits) == 0)))); return (_local5); } } }//package Box2D.Dynamics
Section 85
//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 86
//b2ContactManager (Box2D.Dynamics.b2ContactManager) package Box2D.Dynamics { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.Contacts.*; import Box2D.Common.*; 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 PairRemoved(_arg1, _arg2, _arg3):void{ if (_arg3 == null){ return; }; var _local4:b2Contact = (_arg3 as b2Contact); if (_local4 == m_nullContact){ return; }; Destroy(_local4); } public function Destroy(_arg1:b2Contact):void{ var _local7:b2Body; var _local8:b2Body; var _local9:Array; var _local10:b2ContactPoint; var _local11:int; var _local12:b2Manifold; var _local13:int; var _local14:b2ManifoldPoint; var _local15:b2Vec2; var _local16:b2Vec2; var _local2:b2Shape = _arg1.m_shape1; var _local3:b2Shape = _arg1.m_shape2; var _local4:int = _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; }; var _local5:b2Body = _local2.m_body; var _local6:b2Body = _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--; } override public function PairAdded(_arg1, _arg2){ var _local3:b2Shape = (_arg1 as b2Shape); var _local4:b2Shape = (_arg2 as b2Shape); var _local5:b2Body = _local3.m_body; var _local6:b2Body = _local4.m_body; if (((_local5.IsStatic()) && (_local6.IsStatic()))){ return (m_nullContact); }; if (_local3.m_body == _local4.m_body){ return (m_nullContact); }; if (_local6.IsConnected(_local5)){ return (m_nullContact); }; if (((!((m_world.m_contactFilter == null))) && ((m_world.m_contactFilter.ShouldCollide(_local3, _local4) == false)))){ return (m_nullContact); }; var _local7:b2Contact = 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); } public function Collide():void{ var _local2:b2Body; var _local3:b2Body; var _local1:b2Contact = 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 87
//b2DebugDraw (Box2D.Dynamics.b2DebugDraw) package Box2D.Dynamics { import flash.display.*; import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Collision.*; import Box2D.Dynamics.Contacts.*; import Box2D.Common.*; public class b2DebugDraw { public var m_xformScale:Number;// = 1 public var m_fillAlpha:Number;// = 1 public var m_alpha:Number;// = 1 public var m_drawFlags:uint; public var m_lineThickness:Number;// = 1 public var m_drawScale:Number;// = 1 public var m_sprite:Sprite; 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_drawFlags = 0; } public function ClearFlags(_arg1:uint):void{ m_drawFlags = (m_drawFlags & ~(_arg1)); } 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 DrawSolidPolygon(_arg1:Array, _arg2:int, _arg3:b2Color):void{ 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); var _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 DrawPolygon(_arg1:Array, _arg2:int, _arg3:b2Color):void{ m_sprite.graphics.lineStyle(m_lineThickness, _arg3.color, m_alpha); m_sprite.graphics.moveTo((_arg1[0].x * m_drawScale), (_arg1[0].y * m_drawScale)); var _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)); } 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 GetFlags():uint{ return (m_drawFlags); } 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)); } } }//package Box2D.Dynamics
Section 88
//b2DestructionListener (Box2D.Dynamics.b2DestructionListener) package Box2D.Dynamics { import Box2D.Collision.Shapes.*; import Box2D.Dynamics.Joints.*; public class b2DestructionListener { public function SayGoodbyeShape(_arg1:b2Shape):void{ } public function SayGoodbyeJoint(_arg1:b2Joint):void{ } } }//package Box2D.Dynamics
Section 89
//b2Island (Box2D.Dynamics.b2Island) package Box2D.Dynamics { import Box2D.Common.Math.*; import Box2D.Dynamics.Joints.*; import Box2D.Collision.*; import Box2D.Dynamics.Contacts.*; import Box2D.Common.*; public class b2Island { public var m_listener:b2ContactListener; public var m_positionIterationCount:int; public var m_bodyCapacity:int; public var m_bodies:Array; public var m_joints:Array; public var m_jointCapacity:int; public var m_contactCount:int; public var m_contacts:Array; public var m_contactCapacity:int; public var m_jointCount:int; public var m_allocator; public var m_bodyCount:int; 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 _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; }; var _local4:int; 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 AddContact(_arg1:b2Contact):void{ var _local2 = m_contactCount++; m_contacts[_local2] = _arg1; } public function Solve(_arg1:b2TimeStep, _arg2:b2Vec2, _arg3:Boolean, _arg4:Boolean):void{ var _local5:int; var _local6:b2Body; var _local7:b2Joint; var _local9:int; var _local10:Boolean; var _local11:Boolean; var _local12:Boolean; var _local13:Number; var _local14:Number; var _local15:Number; _local5 = 0; while (_local5 < 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++; }; var _local8:b2ContactSolver = 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 Clear():void{ m_bodyCount = 0; m_contactCount = 0; m_jointCount = 0; } public function SolveTOI(_arg1:b2TimeStep):void{ var _local2:int; var _local5:b2Body; var _local6:Boolean; var _local3:b2ContactSolver = 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++; }; var _local4:Number = 0.75; _local2 = 0; while (_local2 < _arg1.maxIterations) { _local6 = _local3.SolvePositionConstraints(_local4); if (_local6){ break; }; _local2++; }; Report(_local3.m_constraints); } } }//package Box2D.Dynamics
Section 90
//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 91
//b2World (Box2D.Dynamics.b2World) package Box2D.Dynamics { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Dynamics.Joints.*; import Box2D.Collision.*; import Box2D.Dynamics.Contacts.*; import Box2D.Common.*; 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){ 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); var _local4:b2BodyDef = new b2BodyDef(); m_groundBody = CreateBody(_local4); } public function DrawJoint(_arg1:b2Joint):void{ var _local11:b2PulleyJoint; var _local12:b2Vec2; var _local13:b2Vec2; var _local2:b2Body = _arg1.m_body1; var _local3:b2Body = _arg1.m_body2; var _local4:b2XForm = _local2.m_xf; var _local5:b2XForm = _local3.m_xf; var _local6:b2Vec2 = _local4.position; var _local7:b2Vec2 = _local5.position; var _local8:b2Vec2 = _arg1.GetAnchor1(); var _local9:b2Vec2 = _arg1.GetAnchor2(); var _local10:b2Color = 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 _local2:int; var _local3:b2Body; var _local4:b2Shape; var _local5:b2Joint; var _local6:b2BroadPhase; var _local11:b2XForm; var _local15:Boolean; var _local16:uint; var _local17:b2Pair; var _local18:b2Proxy; var _local19:b2Proxy; var _local20:b2Vec2; var _local21:b2Vec2; var _local22:b2Proxy; var _local23:b2PolygonShape; var _local24:b2OBB; var _local25:b2Vec2; var _local26:b2Mat22; var _local27:b2Vec2; var _local28:Number; if (m_debugDraw == null){ return; }; m_debugDraw.m_sprite.graphics.clear(); var _local1:uint = m_debugDraw.GetFlags(); var _local7:b2Vec2 = new b2Vec2(); var _local8:b2Vec2 = new b2Vec2(); var _local9:b2Vec2 = new b2Vec2(); var _local10:b2Color = new b2Color(0, 0, 0); var _local12:b2AABB = new b2AABB(); var _local13:b2AABB = new b2AABB(); var _local14:Array = [new b2Vec2(), new b2Vec2(), new b2Vec2(), new b2Vec2()]; if ((_local1 & b2DebugDraw.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.1, 0.1, 0.1), _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 _local4:b2JointEdge; var _local5:b2Shape; if (m_lock == true){ return; }; var _local2:b2JointEdge = _arg1.m_jointList; while (_local2) { _local4 = _local2; _local2 = _local2.next; if (m_destructionListener){ m_destructionListener.SayGoodbyeJoint(_local4.joint); }; DestroyJoint(_local4.joint); }; var _local3:b2Shape = _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 _local6:b2CircleShape; var _local7:b2Vec2; var _local8:Number; var _local9:b2Vec2; var _local10:int; var _local11:b2PolygonShape; var _local12:int; var _local13:Array; var _local14:Array; var _local15:Array; var _local5:b2Color = 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 _local9:int; var _local10:int; var _local11:b2Body; var _local12:b2ContactEdge; var _local13:b2JointEdge; var _local14:Boolean; m_positionIterationCount = 0; var _local3:b2Island = 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; }; var _local4:b2Contact = m_contactList; while (_local4) { _local4.m_flags = (_local4.m_flags & ~(b2Contact.e_islandFlag)); _local4 = _local4.m_next; }; var _local5:b2Joint = m_jointList; while (_local5) { _local5.m_islandFlag = false; _local5 = _local5.m_next; }; var _local6:int = m_bodyCount; var _local7:Array = new Array(_local6); var _local8:b2Body = 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 = new Array(_arg3); var _local5:int = m_broadPhase.QueryAABB(_arg1, _local4, _arg3); var _local6:int; 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 _local11:b2Contact; var _local12:b2Contact; var _local13:Number; var _local14:b2Body; var _local15:int; var _local16:b2TimeStep; var _local17:int; var _local18:Number; var _local19:Number; var _local20:b2Body; var _local21:Boolean; var _local8:b2Island = new b2Island(m_bodyCount, b2Settings.b2_maxTOIContactsPerIsland, 0, m_stackAllocator, m_contactListener); var _local9:int = m_bodyCount; var _local10:Array = 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 GetBodyList():b2Body{ return (m_bodyList); } public function GetPairCount():int{ return (m_broadPhase.m_pairManager.m_pairCount); } public function Validate():void{ m_broadPhase.Validate(); } 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 _local3:b2Body; var _local4:b2Shape; var _local2:b2Joint = b2Joint.Create(_arg1, m_blockAllocator); _local2.m_prev = null; _local2.m_next = m_jointList; if (m_jointList){ m_jointList.m_prev = _local2; }; m_jointList = _local2; m_jointCount++; _local2.m_node1.joint = _local2; _local2.m_node1.other = _local2.m_body2; _local2.m_node1.prev = null; _local2.m_node1.next = _local2.m_body1.m_jointList; if (_local2.m_body1.m_jointList){ _local2.m_body1.m_jointList.prev = _local2.m_node1; }; _local2.m_body1.m_jointList = _local2.m_node1; _local2.m_node2.joint = _local2; _local2.m_node2.other = _local2.m_body1; _local2.m_node2.prev = null; _local2.m_node2.next = _local2.m_body2.m_jointList; if (_local2.m_body2.m_jointList){ _local2.m_body2.m_jointList.prev = _local2.m_node2; }; _local2.m_body2.m_jointList = _local2.m_node2; if (_arg1.collideConnected == false){ _local3 = ((_arg1.body1.m_shapeCount < _arg1.body2.m_shapeCount)) ? _arg1.body1 : _arg1.body2; _local4 = _local3.m_shapeList; while (_local4) { _local4.RefilterProxy(m_broadPhase, _local3.m_xf); _local4 = _local4.m_next; }; }; return (_local2); } public function DestroyJoint(_arg1:b2Joint):void{ var _local5:b2Body; var _local6:b2Shape; var _local2:Boolean = _arg1.m_collideConnected; if (_arg1.m_prev){ _arg1.m_prev.m_next = _arg1.m_next; }; if (_arg1.m_next){ _arg1.m_next.m_prev = _arg1.m_prev; }; if (_arg1 == m_jointList){ m_jointList = _arg1.m_next; }; var _local3:b2Body = _arg1.m_body1; var _local4:b2Body = _arg1.m_body2; _local3.WakeUp(); _local4.WakeUp(); if (_arg1.m_node1.prev){ _arg1.m_node1.prev.next = _arg1.m_node1.next; }; if (_arg1.m_node1.next){ _arg1.m_node1.next.prev = _arg1.m_node1.prev; }; if (_arg1.m_node1 == _local3.m_jointList){ _local3.m_jointList = _arg1.m_node1.next; }; _arg1.m_node1.prev = null; _arg1.m_node1.next = null; if (_arg1.m_node2.prev){ _arg1.m_node2.prev.next = _arg1.m_node2.next; }; if (_arg1.m_node2.next){ _arg1.m_node2.next.prev = _arg1.m_node2.prev; }; if (_arg1.m_node2 == _local4.m_jointList){ _local4.m_jointList = _arg1.m_node2.next; }; _arg1.m_node2.prev = null; _arg1.m_node2.next = null; b2Joint.Destroy(_arg1, m_blockAllocator); m_jointCount--; if (_local2 == false){ _local5 = ((_local3.m_shapeCount < _local4.m_shapeCount)) ? _local3 : _local4; _local6 = _local5.m_shapeList; while (_local6) { _local6.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{ if (m_lock == true){ return (null); }; var _local2:b2Body = new b2Body(_arg1, this); _local2.m_prev = null; _local2.m_next = m_bodyList; if (m_bodyList){ m_bodyList.m_prev = _local2; }; m_bodyList = _local2; m_bodyCount++; return (_local2); } public function SetBoundaryListener(_arg1:b2BoundaryListener):void{ m_boundaryListener = _arg1; } public function SetDestructionListener(_arg1:b2DestructionListener):void{ m_destructionListener = _arg1; } public function Step(_arg1:Number, _arg2:int):void{ m_lock = true; var _local3:b2TimeStep = 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 92
//CampaignInfo (com.google.analytics.campaign.CampaignInfo) package com.google.analytics.campaign { import com.google.analytics.utils.*; public class CampaignInfo { private var _new:Boolean; private var _empty:Boolean; public function CampaignInfo(_arg1:Boolean=true, _arg2:Boolean=false){ _empty = _arg1; _new = _arg2; } public function toURLString():String{ var _local1:Variables = toVariables(); return (_local1.toString()); } public function isNew():Boolean{ return (_new); } public function get utmcn():String{ return ("1"); } public function isEmpty():Boolean{ return (_empty); } public function toVariables():Variables{ var _local1:Variables = new Variables(); _local1.URIencode = true; if (((!(isEmpty())) && (isNew()))){ _local1.utmcn = utmcn; }; if (((!(isEmpty())) && (!(isNew())))){ _local1.utmcr = utmcr; }; return (_local1); } public function get utmcr():String{ return ("1"); } } }//package com.google.analytics.campaign
Section 93
//CampaignKey (com.google.analytics.campaign.CampaignKey) package com.google.analytics.campaign { public class CampaignKey { public var UCMD:String;// = "utm_medium" public var UCID:String;// = "utm_id" public var UCTR:String;// = "utm_term" public var UCSR:String;// = "utm_source" public var UCNO:String;// = "utm_nooverride" public var UCCN:String;// = "utm_campaign" public var UGCLID:String;// = "gclid" public var UCCT:String;// = "utm_content" } }//package com.google.analytics.campaign
Section 94
//CampaignManager (com.google.analytics.campaign.CampaignManager) package com.google.analytics.campaign { import com.google.analytics.core.*; import com.google.analytics.v4.*; import com.google.analytics.debug.*; import com.google.analytics.utils.*; public class CampaignManager { private var _config:Configuration; private var _domainHash:Number; private var _debug:DebugConfiguration; private var _timeStamp:Number; private var _referrer:String; private var _buffer:Buffer; public static const trackingDelimiter:String = "|"; public function CampaignManager(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Number, _arg5:String, _arg6:Number){ _config = _arg1; _debug = _arg2; _buffer = _arg3; _domainHash = _arg4; _referrer = _arg5; _timeStamp = _arg6; } public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{ var _local4:CampaignTracker; var _local8:CampaignTracker; var _local9:int; var _local3:CampaignInfo = new CampaignInfo(); var _local5:Boolean; var _local6:Boolean; var _local7:int; if (((_config.allowLinker) && (_buffer.isGenuine()))){ if (!_buffer.hasUTMZ()){ return (_local3); }; }; _local4 = getTrackerFromSearchString(_arg1); if (isValid(_local4)){ _local6 = hasNoOverride(_arg1); if (((_local6) && (!(_buffer.hasUTMZ())))){ return (_local3); }; }; if (!isValid(_local4)){ _local4 = getOrganicCampaign(); if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){ return (_local3); }; }; if (((!(isValid(_local4))) && (_arg2))){ _local4 = getReferrerCampaign(); if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){ return (_local3); }; }; if (!isValid(_local4)){ if (((!(_buffer.hasUTMZ())) && (_arg2))){ _local4 = getDirectCampaign(); }; }; if (!isValid(_local4)){ return (_local3); }; if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){ _local8 = new CampaignTracker(); _local8.fromTrackerString(_buffer.utmz.campaignTracking); _local5 = (_local8.toTrackerString() == _local4.toTrackerString()); _local7 = _buffer.utmz.responseCount; }; if (((!(_local5)) || (_arg2))){ _local9 = _buffer.utma.sessionCount; _local7++; if (_local9 == 0){ _local9 = 1; }; _buffer.utmz.domainHash = _domainHash; _buffer.utmz.campaignCreation = _timeStamp; _buffer.utmz.campaignSessions = _local9; _buffer.utmz.responseCount = _local7; _buffer.utmz.campaignTracking = _local4.toTrackerString(); _debug.info(_buffer.utmz.toString(), VisualDebugMode.geek); _local3 = new CampaignInfo(false, true); } else { _local3 = new CampaignInfo(false, false); }; return (_local3); } public function hasNoOverride(_arg1:String):Boolean{ var _local2:CampaignKey = _config.campaignKey; if (_arg1 == ""){ return (false); }; var _local3:Variables = new Variables(_arg1); var _local4 = ""; if (_local3.hasOwnProperty(_local2.UCNO)){ _local4 = _local3[_local2.UCNO]; switch (_local4){ case "1": return (true); case "": case "0": default: return (false); }; }; return (false); } public function getTrackerFromSearchString(_arg1:String):CampaignTracker{ var _local2:CampaignTracker = getOrganicCampaign(); var _local3:CampaignTracker = new CampaignTracker(); var _local4:CampaignKey = _config.campaignKey; if (_arg1 == ""){ return (_local3); }; var _local5:Variables = new Variables(_arg1); if (_local5.hasOwnProperty(_local4.UCID)){ _local3.id = _local5[_local4.UCID]; }; if (_local5.hasOwnProperty(_local4.UCSR)){ _local3.source = _local5[_local4.UCSR]; }; if (_local5.hasOwnProperty(_local4.UGCLID)){ _local3.clickId = _local5[_local4.UGCLID]; }; if (_local5.hasOwnProperty(_local4.UCCN)){ _local3.name = _local5[_local4.UCCN]; } else { _local3.name = "(not set)"; }; if (_local5.hasOwnProperty(_local4.UCMD)){ _local3.medium = _local5[_local4.UCMD]; } else { _local3.medium = "(not set)"; }; if (_local5.hasOwnProperty(_local4.UCTR)){ _local3.term = _local5[_local4.UCTR]; } else { if (((_local2) && (!((_local2.term == ""))))){ _local3.term = _local2.term; }; }; if (_local5.hasOwnProperty(_local4.UCCT)){ _local3.content = _local5[_local4.UCCT]; }; return (_local3); } public function getOrganicCampaign():CampaignTracker{ var _local1:CampaignTracker; var _local4:Array; var _local5:OrganicReferrer; var _local6:String; if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){ return (_local1); }; var _local2:URL = new URL(_referrer); var _local3 = ""; if (_local2.hostName != ""){ if (_local2.hostName.indexOf(".") > -1){ _local4 = _local2.hostName.split("."); switch (_local4.length){ case 2: _local3 = _local4[0]; break; case 3: _local3 = _local4[1]; break; }; }; }; if (_config.organic.match(_local3)){ _local5 = _config.organic.getReferrerByName(_local3); _local6 = _config.organic.getKeywordValue(_local5, _local2.search); _local1 = new CampaignTracker(); _local1.source = _local5.engine; _local1.name = "(organic)"; _local1.medium = "organic"; _local1.term = _local6; }; return (_local1); } public function getDirectCampaign():CampaignTracker{ var _local1:CampaignTracker = new CampaignTracker(); _local1.source = "(direct)"; _local1.name = "(direct)"; _local1.medium = "(none)"; return (_local1); } public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{ if (((_arg1) && ((_arg1.medium == "organic")))){ return (_config.organic.isIgnoredKeyword(_arg1.term)); }; return (false); } public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{ if (((_arg1) && ((_arg1.medium == "referral")))){ return (_config.organic.isIgnoredReferral(_arg1.source)); }; return (false); } public function isValid(_arg1:CampaignTracker):Boolean{ if (((_arg1) && (_arg1.isValid()))){ return (true); }; return (false); } public function getReferrerCampaign():CampaignTracker{ var _local1:CampaignTracker; if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){ return (_local1); }; var _local2:URL = new URL(_referrer); var _local3:String = _local2.hostName; var _local4:String = _local2.path; if (_local3.indexOf("www.") == 0){ _local3 = _local3.substr(4); }; _local1 = new CampaignTracker(); _local1.source = _local3; _local1.name = "(referral)"; _local1.medium = "referral"; _local1.content = _local4; return (_local1); } public static function isInvalidReferrer(_arg1:String):Boolean{ var _local2:URL; if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){ return (true); }; if (_arg1.indexOf("://") > -1){ _local2 = new URL(_arg1); if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){ return (true); }; }; return (false); } public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{ var _local3:URL = new URL(_arg1); if (_local3.hostName.indexOf(_arg2.google) > -1){ if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){ if (_local3.path == ("/" + _arg2.googleCsePath)){ return (true); }; }; }; return (false); } } }//package com.google.analytics.campaign
Section 95
//CampaignTracker (com.google.analytics.campaign.CampaignTracker) package com.google.analytics.campaign { import com.google.analytics.utils.*; public class CampaignTracker { public var content:String; public var source:String; public var clickId:String; public var name:String; public var term:String; public var medium:String; public var id:String; public function CampaignTracker(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:String="", _arg5:String="", _arg6:String="", _arg7:String=""){ this.id = _arg1; this.source = _arg2; this.clickId = _arg3; this.name = _arg4; this.medium = _arg5; this.term = _arg6; this.content = _arg7; } public function isValid():Boolean{ if (((((!((id == ""))) || (!((source == ""))))) || (!((clickId == ""))))){ return (true); }; return (false); } public function toTrackerString():String{ var _local1:Array = []; _addIfNotEmpty(_local1, "utmcsr=", source); _addIfNotEmpty(_local1, "utmccn=", name); _addIfNotEmpty(_local1, "utmcmd=", medium); _addIfNotEmpty(_local1, "utmctr=", term); _addIfNotEmpty(_local1, "utmcct=", content); _addIfNotEmpty(_local1, "utmcid=", id); _addIfNotEmpty(_local1, "utmgclid=", clickId); return (_local1.join(CampaignManager.trackingDelimiter)); } private function _addIfNotEmpty(_arg1:Array, _arg2:String, _arg3:String):void{ if (_arg3 != ""){ _arg3 = _arg3.split("+").join("%20"); _arg3 = _arg3.split(" ").join("%20"); _arg1.push((_arg2 + _arg3)); }; } public function fromTrackerString(_arg1:String):void{ var _local2:String = _arg1.split(CampaignManager.trackingDelimiter).join("&"); var _local3:Variables = new Variables(_local2); if (_local3.hasOwnProperty("utmcid")){ this.id = _local3["utmcid"]; }; if (_local3.hasOwnProperty("utmcsr")){ this.source = _local3["utmcsr"]; }; if (_local3.hasOwnProperty("utmccn")){ this.name = _local3["utmccn"]; }; if (_local3.hasOwnProperty("utmcmd")){ this.medium = _local3["utmcmd"]; }; if (_local3.hasOwnProperty("utmctr")){ this.term = _local3["utmctr"]; }; if (_local3.hasOwnProperty("utmcct")){ this.content = _local3["utmcct"]; }; if (_local3.hasOwnProperty("utmgclid")){ this.clickId = _local3["utmgclid"]; }; } } }//package com.google.analytics.campaign
Section 96
//BrowserInfo (com.google.analytics.core.BrowserInfo) package com.google.analytics.core { import com.google.analytics.v4.*; import com.google.analytics.utils.*; public class BrowserInfo { private var _config:Configuration; private var _info:Environment; public function BrowserInfo(_arg1:Configuration, _arg2:Environment){ _config = _arg1; _info = _arg2; } public function get utmul():String{ return (_info.language.toLowerCase()); } public function get utmje():String{ return ("0"); } public function toURLString():String{ var _local1:Variables = toVariables(); return (_local1.toString()); } public function get utmsr():String{ return (((_info.screenWidth + "x") + _info.screenHeight)); } public function get utmfl():String{ var _local1:Version; if (_config.detectFlash){ _local1 = _info.flashVersion; return (((((_local1.major + ".") + _local1.minor) + " r") + _local1.build)); }; return ("-"); } public function get utmcs():String{ return (_info.languageEncoding); } public function toVariables():Variables{ var _local1:Variables = new Variables(); _local1.URIencode = true; _local1.utmcs = utmcs; _local1.utmsr = utmsr; _local1.utmsc = utmsc; _local1.utmul = utmul; _local1.utmje = utmje; _local1.utmfl = utmfl; return (_local1); } public function get utmsc():String{ return ((_info.screenColorDepth + "-bit")); } } }//package com.google.analytics.core
Section 97
//Buffer (com.google.analytics.core.Buffer) package com.google.analytics.core { import flash.events.*; import com.google.analytics.v4.*; import com.google.analytics.debug.*; import flash.net.*; import com.google.analytics.data.*; public dynamic class Buffer { private var _SO:SharedObject; private var _OBJ:Object; private var _utma:UTMA; private var _utmb:UTMB; private var _utmc:UTMC; private var _debug:DebugConfiguration; private var _utmk:UTMK; private var _config:Configuration; private var _utmv:UTMV; private var _utmz:UTMZ; private var _volatile:Boolean; public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){ var _local5:Boolean; var _local6:String; super(); _config = _arg1; _debug = _arg2; UTMB.defaultTimespan = _config.sessionTimeout; UTMZ.defaultTimespan = _config.conversionTimeout; if (!_arg3){ _SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath); _local5 = false; if (_SO.data.utma){ if (!hasUTMA()){ _createUMTA(); }; _utma.fromSharedObject(_SO.data.utma); if (_debug.verbose){ _debug.info(("found: " + _utma.toString(true)), VisualDebugMode.geek); }; if (_utma.isExpired()){ if (_debug.verbose){ _debug.warning("UTMA has expired", VisualDebugMode.advanced); }; _clearUTMA(); _local5 = true; }; }; if (_SO.data.utmb){ if (!hasUTMB()){ _createUMTB(); }; _utmb.fromSharedObject(_SO.data.utmb); if (_debug.verbose){ _debug.info(("found: " + _utmb.toString(true)), VisualDebugMode.geek); }; if (_utmb.isExpired()){ if (_debug.verbose){ _debug.warning("UTMB has expired", VisualDebugMode.advanced); }; _clearUTMB(); _local5 = true; }; }; if (_SO.data.utmc){ delete _SO.data.utmc; _local5 = true; }; if (_SO.data.utmk){ if (!hasUTMK()){ _createUMTK(); }; _utmk.fromSharedObject(_SO.data.utmk); if (_debug.verbose){ _debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek); }; }; if (_SO.data.utmv){ if (!hasUTMV()){ _createUMTV(); }; _utmv.fromSharedObject(_SO.data.utmv); if (_debug.verbose){ _debug.info(("found: " + _utmv.toString(true)), VisualDebugMode.geek); }; if (_utmv.isExpired()){ if (_debug.verbose){ _debug.warning("UTMV has expired", VisualDebugMode.advanced); }; _clearUTMV(); _local5 = true; }; }; if (_SO.data.utmz){ if (!hasUTMZ()){ _createUMTZ(); }; _utmz.fromSharedObject(_SO.data.utmz); if (_debug.verbose){ _debug.info(("found: " + _utmz.toString(true)), VisualDebugMode.geek); }; if (_utmz.isExpired()){ if (_debug.verbose){ _debug.warning("UTMZ has expired", VisualDebugMode.advanced); }; _clearUTMZ(); _local5 = true; }; }; if (_local5){ save(); }; } else { _OBJ = new Object(); if (_arg4){ for (_local6 in _arg4) { _OBJ[_local6] = _arg4[_local6]; }; }; }; _volatile = _arg3; } public function clearCookies():void{ utma.reset(); utmb.reset(); utmc.reset(); utmz.reset(); utmv.reset(); utmk.reset(); } public function save():void{ var flushStatus:String; if (!isVolatile()){ flushStatus = null; try { flushStatus = _SO.flush(); } catch(e:Error) { _debug.warning("Error...Could not write SharedObject to disk"); }; switch (flushStatus){ case SharedObjectFlushStatus.PENDING: _debug.info("Requesting permission to save object..."); _SO.addEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus); break; case SharedObjectFlushStatus.FLUSHED: _debug.info("Value flushed to disk."); break; }; }; } public function get utmv():UTMV{ if (!hasUTMV()){ _createUMTV(); }; return (_utmv); } public function get utmz():UTMZ{ if (!hasUTMZ()){ _createUMTZ(); }; return (_utmz); } public function hasUTMA():Boolean{ if (_utma){ return (true); }; return (false); } public function hasUTMB():Boolean{ if (_utmb){ return (true); }; return (false); } public function hasUTMC():Boolean{ if (_utmc){ return (true); }; return (false); } public function isGenuine():Boolean{ if (!hasUTMK()){ return (true); }; return ((utmk.hash == generateCookiesHash())); } public function resetCurrentSession():void{ _clearUTMB(); _clearUTMC(); save(); } public function hasUTMK():Boolean{ if (_utmk){ return (true); }; return (false); } public function generateCookiesHash():Number{ var _local1 = ""; _local1 = (_local1 + utma.valueOf()); _local1 = (_local1 + utmb.valueOf()); _local1 = (_local1 + utmc.valueOf()); _local1 = (_local1 + utmz.valueOf()); _local1 = (_local1 + utmv.valueOf()); return (Utils.generateHash(_local1)); } private function _createUMTB():void{ _utmb = new UTMB(); _utmb.proxy = this; } private function _createUMTC():void{ _utmc = new UTMC(); } private function _createUMTA():void{ _utma = new UTMA(); _utma.proxy = this; } public function hasUTMV():Boolean{ if (_utmv){ return (true); }; return (false); } private function _createUMTK():void{ _utmk = new UTMK(); _utmk.proxy = this; } public function hasUTMZ():Boolean{ if (_utmz){ return (true); }; return (false); } private function _createUMTV():void{ _utmv = new UTMV(); _utmv.proxy = this; } private function _onFlushStatus(_arg1:NetStatusEvent):void{ _debug.info("User closed permission dialog..."); switch (_arg1.info.code){ case "SharedObject.Flush.Success": _debug.info("User granted permission -- value saved."); break; case "SharedObject.Flush.Failed": _debug.info("User denied permission -- value not saved."); break; }; _SO.removeEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus); } private function _createUMTZ():void{ _utmz = new UTMZ(); _utmz.proxy = this; } public function updateUTMA(_arg1:Number):void{ if (_debug.verbose){ _debug.info((("updateUTMA( " + _arg1) + " )"), VisualDebugMode.advanced); }; if (!utma.isEmpty()){ if (isNaN(utma.sessionCount)){ utma.sessionCount = 1; } else { utma.sessionCount = (utma.sessionCount + 1); }; utma.lastTime = utma.currentTime; utma.currentTime = _arg1; }; } private function _clearUTMA():void{ _utma = null; if (!isVolatile()){ _SO.data.utma = null; delete _SO.data.utma; }; } private function _clearUTMC():void{ _utmc = null; } private function _clearUTMB():void{ _utmb = null; if (!isVolatile()){ _SO.data.utmb = null; delete _SO.data.utmb; }; } public function update(_arg1:String, _arg2):void{ if (isVolatile()){ _OBJ[_arg1] = _arg2; } else { _SO.data[_arg1] = _arg2; }; } private function _clearUTMZ():void{ _utmz = null; if (!isVolatile()){ _SO.data.utmz = null; delete _SO.data.utmz; }; } private function _clearUTMV():void{ _utmv = null; if (!isVolatile()){ _SO.data.utmv = null; delete _SO.data.utmv; }; } public function isVolatile():Boolean{ return (_volatile); } public function get utma():UTMA{ if (!hasUTMA()){ _createUMTA(); }; return (_utma); } public function get utmb():UTMB{ if (!hasUTMB()){ _createUMTB(); }; return (_utmb); } public function get utmc():UTMC{ if (!hasUTMC()){ _createUMTC(); }; return (_utmc); } public function get utmk():UTMK{ if (!hasUTMK()){ _createUMTK(); }; return (_utmk); } } }//package com.google.analytics.core
Section 98
//DocumentInfo (com.google.analytics.core.DocumentInfo) package com.google.analytics.core { import com.google.analytics.v4.*; import com.google.analytics.external.*; import com.google.analytics.utils.*; public class DocumentInfo { private var _pageURL:String; private var _utmr:String; private var _config:Configuration; private var _adSense:AdSenseGlobals; private var _info:Environment; public function DocumentInfo(_arg1:Configuration, _arg2:Environment, _arg3:String, _arg4:String=null, _arg5:AdSenseGlobals=null){ _config = _arg1; _info = _arg2; _utmr = _arg3; _pageURL = _arg4; _adSense = _arg5; } public function get utmr():String{ if (!_utmr){ return ("-"); }; return (_utmr); } public function toURLString():String{ var _local1:Variables = toVariables(); return (_local1.toString()); } private function _renderPageURL(_arg1:String=""):String{ var _local2:String = _info.locationPath; var _local3:String = _info.locationSearch; if (((!(_arg1)) || ((_arg1 == "")))){ _arg1 = (_local2 + unescape(_local3)); }; return (_arg1); } public function get utmp():String{ return (_renderPageURL(_pageURL)); } public function get utmhid():String{ return (String(_generateHitId())); } private function _generateHitId():Number{ var _local1:Number; if (((_adSense.hid) && (!((_adSense.hid == ""))))){ _local1 = Number(_adSense.hid); } else { _local1 = Math.round((Math.random() * 2147483647)); _adSense.hid = String(_local1); }; return (_local1); } public function toVariables():Variables{ var _local1:Variables = new Variables(); _local1.URIencode = true; if (((_config.detectTitle) && (!((utmdt == ""))))){ _local1.utmdt = utmdt; }; _local1.utmhid = utmhid; _local1.utmr = utmr; _local1.utmp = utmp; return (_local1); } public function get utmdt():String{ return (_info.documentTitle); } } }//package com.google.analytics.core
Section 99
//Domain (com.google.analytics.core.Domain) package com.google.analytics.core { import com.google.analytics.debug.*; public class Domain { private var _mode:DomainNameMode; private var _debug:DebugConfiguration; private var _name:String; public function Domain(_arg1:DomainNameMode=null, _arg2:String="", _arg3:DebugConfiguration=null){ _debug = _arg3; if (_arg1 == null){ _arg1 = DomainNameMode.auto; }; _mode = _arg1; if (_arg1 == DomainNameMode.custom){ this.name = _arg2; } else { _name = _arg2; }; } public function get mode():DomainNameMode{ return (_mode); } public function set mode(_arg1:DomainNameMode):void{ _mode = _arg1; if (_mode == DomainNameMode.none){ _name = ""; }; } public function get name():String{ return (_name); } public function set name(_arg1:String):void{ if (((!((_arg1.charAt(0) == "."))) && (_debug))){ _debug.warning(("missing leading period \".\", cookie will only be accessible on " + _arg1), VisualDebugMode.geek); }; _name = _arg1; } } }//package com.google.analytics.core
Section 100
//DomainNameMode (com.google.analytics.core.DomainNameMode) package com.google.analytics.core { public class DomainNameMode { private var _value:int; private var _name:String; public static const custom:DomainNameMode = new DomainNameMode(2, "custom"); ; public static const none:DomainNameMode = new DomainNameMode(0, "none"); ; public static const auto:DomainNameMode = new DomainNameMode(1, "auto"); ; public function DomainNameMode(_arg1:int=0, _arg2:String=""){ _value = _arg1; _name = _arg2; } public function valueOf():int{ return (_value); } public function toString():String{ return (_name); } } }//package com.google.analytics.core
Section 101
//EventInfo (com.google.analytics.core.EventInfo) package com.google.analytics.core { import com.google.analytics.data.*; import com.google.analytics.utils.*; public class EventInfo { private var _ext10:X10; private var _isEventHit:Boolean; private var _x10:X10; public function EventInfo(_arg1:Boolean, _arg2:X10, _arg3:X10=null){ _isEventHit = _arg1; _x10 = _arg2; _ext10 = _arg3; } public function toURLString():String{ var _local1:Variables = toVariables(); return (_local1.toString()); } public function get utmt():String{ return ("event"); } public function get utme():String{ return (_x10.renderMergedUrlString(_ext10)); } public function toVariables():Variables{ var _local1:Variables = new Variables(); _local1.URIencode = true; if (_isEventHit){ _local1.utmt = utmt; }; _local1.utme = utme; return (_local1); } } }//package com.google.analytics.core
Section 102
//EventTracker (com.google.analytics.core.EventTracker) package com.google.analytics.core { import com.google.analytics.v4.*; public class EventTracker { private var _parent:GoogleAnalyticsAPI; public var name:String; public function EventTracker(_arg1:String, _arg2:GoogleAnalyticsAPI){ this.name = _arg1; _parent = _arg2; } public function trackEvent(_arg1:String, _arg2:String=null, _arg3:Number=NaN):Boolean{ return (_parent.trackEvent(name, _arg1, _arg2, _arg3)); } } }//package com.google.analytics.core
Section 103
//ga_internal (com.google.analytics.core.ga_internal) package com.google.analytics.core { public namespace ga_internal; }//package com.google.analytics.core
Section 104
//GIFRequest (com.google.analytics.core.GIFRequest) package com.google.analytics.core { import flash.events.*; import flash.display.*; import com.google.analytics.v4.*; import com.google.analytics.debug.*; import flash.net.*; import com.google.analytics.utils.*; import flash.system.*; public class GIFRequest { private var _info:Environment; private var _count:int; private var _utmac:String; private var _alertcount:int; private var _debug:DebugConfiguration; private var _lastRequest:URLRequest; private var _buffer:Buffer; private var _config:Configuration; private var _requests:Array; public function GIFRequest(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Environment){ _config = _arg1; _debug = _arg2; _buffer = _arg3; _info = _arg4; _count = 0; _alertcount = 0; _requests = []; } public function get utmn():String{ return ((Utils.generate32bitRandom() as String)); } public function onIOError(_arg1:IOErrorEvent):void{ var _local2:String = _lastRequest.url; var _local3:String = String((_requests.length - 1)); var _local4 = (("Gif Request #" + _local3) + " failed"); if (_debug.GIFRequests){ if (!_debug.verbose){ if (_local2.indexOf("?") > -1){ _local2 = _local2.split("?")[0]; }; _local2 = _shortenURL(_local2); }; if (int(_debug.mode) > int(VisualDebugMode.basic)){ _local4 = (_local4 + ((" \"" + _local2) + "\" does not exists or is unreachable")); }; _debug.failure(_local4); } else { _debug.warning(_local4); }; _removeListeners(_arg1.target); } public function send(_arg1:String, _arg2:Variables=null, _arg3:Boolean=false, _arg4:Boolean=false):void{ var _local5:String; var _local6:URLRequest; var _local7:URLRequest; _utmac = _arg1; if (!_arg2){ _arg2 = new Variables(); }; _arg2.URIencode = false; _arg2.pre = ["utmwv", "utmn", "utmhn", "utmt", "utme", "utmcs", "utmsr", "utmsc", "utmul", "utmje", "utmfl", "utmdt", "utmhid", "utmr", "utmp"]; _arg2.post = ["utmcc"]; if (_debug.verbose){ _debug.info(((("tracking: " + _buffer.utmb.trackCount) + "/") + _config.trackingLimitPerSession), VisualDebugMode.geek); }; if ((((_buffer.utmb.trackCount < _config.trackingLimitPerSession)) || (_arg3))){ if (_arg4){ updateToken(); }; if (((((_arg3) || (!(_arg4)))) || ((_buffer.utmb.token >= 1)))){ if (((!(_arg3)) && (_arg4))){ _buffer.utmb.token = (_buffer.utmb.token - 1); }; _buffer.utmb.trackCount = (_buffer.utmb.trackCount + 1); if (_debug.verbose){ _debug.info(_buffer.utmb.toString(), VisualDebugMode.geek); }; _arg2.utmwv = utmwv; _arg2.utmn = Utils.generate32bitRandom(); if (_info.domainName != ""){ _arg2.utmhn = _info.domainName; }; if (_config.sampleRate < 1){ _arg2.utmsp = (_config.sampleRate * 100); }; if ((((_config.serverMode == ServerOperationMode.local)) || ((_config.serverMode == ServerOperationMode.both)))){ _local5 = _info.locationSWFPath; if (_local5.lastIndexOf("/") > 0){ _local5 = _local5.substring(0, _local5.lastIndexOf("/")); }; _local6 = new URLRequest(); if (_config.localGIFpath.indexOf("http") == 0){ _local6.url = _config.localGIFpath; } else { _local6.url = (_local5 + _config.localGIFpath); }; _local6.url = (_local6.url + ("?" + _arg2.toString())); if (((_debug.active) && (_debug.GIFRequests))){ _debugSend(_local6); } else { sendRequest(_local6); }; }; if ((((_config.serverMode == ServerOperationMode.remote)) || ((_config.serverMode == ServerOperationMode.both)))){ _local7 = new URLRequest(); if (_info.protocol == Protocols.HTTPS){ _local7.url = _config.secureRemoteGIFpath; } else { if (_info.protocol == Protocols.HTTP){ _local7.url = _config.remoteGIFpath; } else { _local7.url = _config.remoteGIFpath; }; }; _arg2.utmac = utmac; _arg2.utmcc = encodeURIComponent(utmcc); _local7.url = (_local7.url + ("?" + _arg2.toString())); if (((_debug.active) && (_debug.GIFRequests))){ _debugSend(_local7); } else { sendRequest(_local7); }; }; }; }; } public function onSecurityError(_arg1:SecurityErrorEvent):void{ if (_debug.GIFRequests){ _debug.failure(_arg1.text); }; } public function get utmsp():String{ return (((_config.sampleRate * 100) as String)); } public function get utmcc():String{ var _local1:Array = []; if (_buffer.hasUTMA()){ _local1.push((_buffer.utma.toURLString() + ";")); }; if (_buffer.hasUTMZ()){ _local1.push((_buffer.utmz.toURLString() + ";")); }; if (_buffer.hasUTMV()){ _local1.push((_buffer.utmv.toURLString() + ";")); }; return (_local1.join("+")); } public function get utmac():String{ return (_utmac); } public function get utmwv():String{ return (_config.version); } public function sendRequest(_arg1:URLRequest):void{ var request = _arg1; var loader:Loader = new Loader(); loader.name = String(_count++); var context:LoaderContext = new LoaderContext(false); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); _lastRequest = request; _requests[loader.name] = new RequestObject(request); try { loader.load(request, context); } catch(e:Error) { _debug.failure("\"Loader.load()\" could not instanciate Gif Request"); }; } private function _removeListeners(_arg1:Object):void{ _arg1.removeEventListener(IOErrorEvent.IO_ERROR, onIOError); _arg1.removeEventListener(Event.COMPLETE, onComplete); } public function updateToken():void{ var _local2:Number; var _local1:Number = new Date().getTime(); _local2 = ((_local1 - _buffer.utmb.lastTime) * (_config.tokenRate / 1000)); if (_debug.verbose){ _debug.info(("tokenDelta: " + _local2), VisualDebugMode.geek); }; if (_local2 >= 1){ _buffer.utmb.token = Math.min(Math.floor((_buffer.utmb.token + _local2)), _config.bucketCapacity); _buffer.utmb.lastTime = _local1; if (_debug.verbose){ _debug.info(_buffer.utmb.toString(), VisualDebugMode.geek); }; }; } public function get utmhn():String{ return (_info.domainName); } private function _shortenURL(_arg1:String):String{ var _local2:Array; if (_arg1.length > 60){ _local2 = _arg1.split("/"); while (_arg1.length > 60) { _local2.shift(); _arg1 = ("../" + _local2.join("/")); }; }; return (_arg1); } private function _debugSend(_arg1:URLRequest):void{ var _local3:String; var _local2 = ""; switch (_debug.mode){ case VisualDebugMode.geek: _local2 = ((("Gif Request #" + _alertcount) + ":\n") + _arg1.url); break; case VisualDebugMode.advanced: _local3 = _arg1.url; if (_local3.indexOf("?") > -1){ _local3 = _local3.split("?")[0]; }; _local3 = _shortenURL(_local3); _local2 = (((("Send Gif Request #" + _alertcount) + ":\n") + _local3) + " ?"); break; case VisualDebugMode.basic: default: _local2 = (((("Send " + _config.serverMode.toString()) + " Gif Request #") + _alertcount) + " ?"); }; _debug.alertGifRequest(_local2, _arg1, this); _alertcount++; } public function onComplete(_arg1:Event):void{ var _local2:String = _arg1.target.loader.name; _requests[_local2].complete(); var _local3 = (("Gif Request #" + _local2) + " sent"); var _local4:String = _requests[_local2].request.url; if (_debug.GIFRequests){ if (!_debug.verbose){ if (_local4.indexOf("?") > -1){ _local4 = _local4.split("?")[0]; }; _local4 = _shortenURL(_local4); }; if (int(_debug.mode) > int(VisualDebugMode.basic)){ _local3 = (_local3 + ((" to \"" + _local4) + "\"")); }; _debug.success(_local3); } else { _debug.info(_local3); }; _removeListeners(_arg1.target); } } }//package com.google.analytics.core
Section 105
//IdleTimer (com.google.analytics.core.IdleTimer) package com.google.analytics.core { import flash.events.*; import flash.display.*; import flash.utils.*; import com.google.analytics.v4.*; import com.google.analytics.debug.*; public class IdleTimer { private var _stage:Stage; private var _loop:Timer; private var _lastMove:int; private var _inactivity:Number; private var _debug:DebugConfiguration; private var _session:Timer; private var _buffer:Buffer; public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){ var _local5:Number = _arg1.idleLoop; var _local6:Number = _arg1.idleTimeout; var _local7:Number = _arg1.sessionTimeout; _loop = new Timer((_local5 * 1000)); _session = new Timer((_local7 * 1000), 1); _debug = _arg2; _stage = _arg3.stage; _buffer = _arg4; _lastMove = getTimer(); _inactivity = (_local6 * 1000); _loop.addEventListener(TimerEvent.TIMER, checkForIdle); _session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession); _stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove); _debug.info(((((("delay: " + _local5) + "sec , inactivity: ") + _local6) + "sec, sessionTimeout: ") + _local7), VisualDebugMode.geek); _loop.start(); } private function onMouseMove(_arg1:MouseEvent):void{ _lastMove = getTimer(); if (_session.running){ _debug.info("session timer reset", VisualDebugMode.geek); _session.reset(); }; } public function endSession(_arg1:TimerEvent):void{ _session.removeEventListener(TimerEvent.TIMER_COMPLETE, endSession); _debug.info("session timer end session", VisualDebugMode.geek); _session.reset(); _buffer.resetCurrentSession(); _debug.info(_buffer.utmb.toString(), VisualDebugMode.geek); _debug.info(_buffer.utmc.toString(), VisualDebugMode.geek); _session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession); } public function checkForIdle(_arg1:TimerEvent):void{ var _local2:int = getTimer(); if ((_local2 - _lastMove) >= _inactivity){ if (!_session.running){ _debug.info("session timer start", VisualDebugMode.geek); _session.start(); }; }; } } }//package com.google.analytics.core
Section 106
//Organic (com.google.analytics.core.Organic) package com.google.analytics.core { import com.google.analytics.utils.*; public class Organic { private var _sourcesCache:Array; private var _sourcesEngine:Array; private var _ignoredKeywords:Array; private var _ignoredReferralsCache:Object; private var _ignoredReferrals:Array; private var _ignoredKeywordsCache:Object; private var _sources:Array; public static var throwErrors:Boolean = false; public function Organic(){ _sources = []; _sourcesCache = []; _sourcesEngine = []; _ignoredReferrals = []; _ignoredReferralsCache = {}; _ignoredKeywords = []; _ignoredKeywordsCache = {}; } public function isIgnoredKeyword(_arg1:String):Boolean{ if (_ignoredKeywordsCache.hasOwnProperty(_arg1)){ return (true); }; return (false); } public function getKeywordValue(_arg1:OrganicReferrer, _arg2:String):String{ var _local3:String = _arg1.keyword; return (getKeywordValueFromPath(_local3, _arg2)); } public function isIgnoredReferral(_arg1:String):Boolean{ if (_ignoredReferralsCache.hasOwnProperty(_arg1)){ return (true); }; return (false); } public function clear():void{ clearEngines(); clearIgnoredReferrals(); clearIgnoredKeywords(); } public function get count():int{ return (_sources.length); } public function get ignoredKeywordsCount():int{ return (_ignoredKeywords.length); } public function match(_arg1:String):Boolean{ if (_arg1 == ""){ return (false); }; _arg1 = _arg1.toLowerCase(); if (_sourcesEngine[_arg1] != undefined){ return (true); }; return (false); } public function clearIgnoredKeywords():void{ _ignoredKeywords = []; _ignoredKeywordsCache = {}; } public function addSource(_arg1:String, _arg2:String):void{ var _local3:OrganicReferrer = new OrganicReferrer(_arg1, _arg2); if (_sourcesCache[_local3.toString()] == undefined){ _sources.push(_local3); _sourcesCache[_local3.toString()] = (_sources.length - 1); if (_sourcesEngine[_local3.engine] == undefined){ _sourcesEngine[_local3.engine] = [(_sources.length - 1)]; } else { _sourcesEngine[_local3.engine].push((_sources.length - 1)); }; } else { if (throwErrors){ throw (new Error((_local3.toString() + " already exists, we don't add it."))); }; }; } public function clearEngines():void{ _sources = []; _sourcesCache = []; _sourcesEngine = []; } public function get ignoredReferralsCount():int{ return (_ignoredReferrals.length); } public function addIgnoredReferral(_arg1:String):void{ if (_ignoredReferralsCache[_arg1] == undefined){ _ignoredReferrals.push(_arg1); _ignoredReferralsCache[_arg1] = (_ignoredReferrals.length - 1); } else { if (throwErrors){ throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it."))); }; }; } public function clearIgnoredReferrals():void{ _ignoredReferrals = []; _ignoredReferralsCache = {}; } public function getReferrerByName(_arg1:String):OrganicReferrer{ var _local2:int; if (match(_arg1)){ _local2 = _sourcesEngine[_arg1][0]; return (_sources[_local2]); }; return (null); } public function addIgnoredKeyword(_arg1:String):void{ if (_ignoredKeywordsCache[_arg1] == undefined){ _ignoredKeywords.push(_arg1); _ignoredKeywordsCache[_arg1] = (_ignoredKeywords.length - 1); } else { if (throwErrors){ throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it."))); }; }; } public function get sources():Array{ return (_sources); } public static function getKeywordValueFromPath(_arg1:String, _arg2:String):String{ var _local3:String; var _local4:Variables; if (_arg2.indexOf((_arg1 + "=")) > -1){ if (_arg2.charAt(0) == "?"){ _arg2 = _arg2.substr(1); }; _arg2 = _arg2.split("+").join("%20"); _local4 = new Variables(_arg2); _local3 = _local4[_arg1]; }; return (_local3); } } }//package com.google.analytics.core
Section 107
//OrganicReferrer (com.google.analytics.core.OrganicReferrer) package com.google.analytics.core { public class OrganicReferrer { private var _engine:String; private var _keyword:String; public function OrganicReferrer(_arg1:String, _arg2:String){ this.engine = _arg1; this.keyword = _arg2; } public function get keyword():String{ return (_keyword); } public function get engine():String{ return (_engine); } public function set engine(_arg1:String):void{ _engine = _arg1.toLowerCase(); } public function toString():String{ return (((engine + "?") + keyword)); } public function set keyword(_arg1:String):void{ _keyword = _arg1.toLowerCase(); } } }//package com.google.analytics.core
Section 108
//RequestObject (com.google.analytics.core.RequestObject) package com.google.analytics.core { import flash.utils.*; import flash.net.*; public class RequestObject { public var start:int; public var end:int; public var request:URLRequest; public function RequestObject(_arg1:URLRequest){ start = getTimer(); this.request = _arg1; } public function hasCompleted():Boolean{ return ((end > 0)); } public function toString():String{ var _local1:Array = []; _local1.push((("duration: " + duration) + "ms")); _local1.push(("url: " + request.url)); return ((("{ " + _local1.join(", ")) + " }")); } public function complete():void{ end = getTimer(); } public function get duration():int{ if (!hasCompleted()){ return (0); }; return ((end - start)); } } }//package com.google.analytics.core
Section 109
//ServerOperationMode (com.google.analytics.core.ServerOperationMode) package com.google.analytics.core { public class ServerOperationMode { private var _value:int; private var _name:String; public static const both:ServerOperationMode = new ServerOperationMode(2, "both"); ; public static const remote:ServerOperationMode = new ServerOperationMode(1, "remote"); ; public static const local:ServerOperationMode = new ServerOperationMode(0, "local"); ; public function ServerOperationMode(_arg1:int=0, _arg2:String=""){ _value = _arg1; _name = _arg2; } public function valueOf():int{ return (_value); } public function toString():String{ return (_name); } } }//package com.google.analytics.core
Section 110
//TrackerCache (com.google.analytics.core.TrackerCache) package com.google.analytics.core { import com.google.analytics.v4.*; import flash.errors.*; public class TrackerCache implements GoogleAnalyticsAPI { public var tracker:GoogleAnalyticsAPI; private var _ar:Array; public static var CACHE_THROW_ERROR:Boolean; public function TrackerCache(_arg1:GoogleAnalyticsAPI=null){ this.tracker = _arg1; _ar = []; } public function size():uint{ return (_ar.length); } public function flush():void{ var _local1:Object; var _local2:String; var _local3:Array; var _local4:int; var _local5:int; if (tracker == null){ return; }; if (size() > 0){ _local4 = _ar.length; while (_local5 < _local4) { _local1 = _ar.shift(); _local2 = (_local1.name as String); _local3 = (_local1.args as Array); if (((!((_local2 == null))) && ((_local2 in tracker)))){ (tracker[_local2] as Function).apply(tracker, _local3); }; _local5++; }; }; } public function enqueue(_arg1:String, ... _args):Boolean{ if (_arg1 == null){ return (false); }; _ar.push({name:_arg1, args:_args}); return (true); } public function link(_arg1:String, _arg2:Boolean=false):void{ enqueue("link", _arg1, _arg2); } public function addOrganic(_arg1:String, _arg2:String):void{ enqueue("addOrganic", _arg1, _arg2); } public function setAllowLinker(_arg1:Boolean):void{ enqueue("setAllowLinker", _arg1); } public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{ enqueue("trackEvent", _arg1, _arg2, _arg3, _arg4); return (true); } public function getClientInfo():Boolean{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getClientInfo' method for the moment.")); }; return (false); } public function trackTrans():void{ enqueue("trackTrans"); } public function trackPageview(_arg1:String=""):void{ enqueue("trackPageview", _arg1); } public function setClientInfo(_arg1:Boolean):void{ enqueue("setClientInfo", _arg1); } public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{ enqueue("linkByPost", _arg1, _arg2); } public function setCookieTimeout(_arg1:int):void{ enqueue("setCookieTimeout", _arg1); } public function isEmpty():Boolean{ return ((_ar.length == 0)); } public function getDetectTitle():Boolean{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectTitle' method for the moment.")); }; return (false); } public function resetSession():void{ enqueue("resetSession"); } public function setDetectFlash(_arg1:Boolean):void{ enqueue("setDetectFlash", _arg1); } public function clear():void{ _ar = []; } public function setCampNameKey(_arg1:String):void{ enqueue("setCampNameKey", _arg1); } public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{ enqueue("addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } public function createEventTracker(_arg1:String):EventTracker{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'createEventTracker' method for the moment.")); }; return (null); } public function setVar(_arg1:String):void{ enqueue("setVar", _arg1); } public function clearIgnoredOrganic():void{ enqueue("clearIgnoredOrganic"); } public function setDomainName(_arg1:String):void{ enqueue("setDomainName", _arg1); } public function setCampSourceKey(_arg1:String):void{ enqueue("setCampSourceKey", _arg1); } public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'addTrans' method for the moment.")); }; return (null); } public function setCampContentKey(_arg1:String):void{ enqueue("setCampContentKey", _arg1); } public function setLocalServerMode():void{ enqueue("setLocalServerMode"); } public function getLocalGifPath():String{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getLocalGifPath' method for the moment.")); }; return (""); } public function setAllowAnchor(_arg1:Boolean):void{ enqueue("setAllowAnchor", _arg1); } public function clearIgnoredRef():void{ enqueue("clearIgnoredRef"); } public function setLocalGifPath(_arg1:String):void{ enqueue("setLocalGifPath", _arg1); } public function getVersion():String{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getVersion' method for the moment.")); }; return (""); } public function setCookiePath(_arg1:String):void{ enqueue("setCookiePath", _arg1); } public function setSampleRate(_arg1:Number):void{ enqueue("setSampleRate", _arg1); } public function setDetectTitle(_arg1:Boolean):void{ enqueue("setDetectTitle", _arg1); } public function setAllowHash(_arg1:Boolean):void{ enqueue("setAllowHash", _arg1); } public function addIgnoredOrganic(_arg1:String):void{ enqueue("addIgnoredOrganic", _arg1); } public function setCampNOKey(_arg1:String):void{ enqueue("setCampNOKey", _arg1); } public function getServiceMode():ServerOperationMode{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getServiceMode' method for the moment.")); }; return (null); } public function setLocalRemoteServerMode():void{ enqueue("setLocalRemoteServerMode"); } public function cookiePathCopy(_arg1:String):void{ enqueue("cookiePathCopy", _arg1); } public function getDetectFlash():Boolean{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectFlash' method for the moment.")); }; return (false); } public function setCampaignTrack(_arg1:Boolean):void{ enqueue("setCampaignTrack", _arg1); } public function clearOrganic():void{ enqueue("clearOrganic"); } public function setCampTermKey(_arg1:String):void{ enqueue("setCampTermKey", _arg1); } public function addIgnoredRef(_arg1:String):void{ enqueue("addIgnoredRef", _arg1); } public function setCampMediumKey(_arg1:String):void{ enqueue("setCampMediumKey", _arg1); } public function setSessionTimeout(_arg1:int):void{ enqueue("setSessionTimeout", _arg1); } public function setRemoteServerMode():void{ enqueue("setRemoteServerMode"); } public function element(){ return (_ar[0]); } public function getAccount():String{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getAccount' method for the moment.")); }; return (""); } } }//package com.google.analytics.core
Section 111
//TrackerMode (com.google.analytics.core.TrackerMode) package com.google.analytics.core { public class TrackerMode { public static const BRIDGE:String = "Bridge"; public static const AS3:String = "AS3"; } }//package com.google.analytics.core
Section 112
//Utils (com.google.analytics.core.Utils) package com.google.analytics.core { public class Utils { public static function trim(_arg1:String, _arg2:Boolean=false):String{ var _local5:int; var _local6:int; var _local7:int; if (_arg1 == ""){ return (""); }; var _local3:Array = [" ", "\n", "\r", "\t"]; var _local4:String = _arg1; if (_arg2){ _local5 = 0; while ((((_local5 < _local3.length)) && ((_local4.indexOf(_local3[_local5]) > -1)))) { _local4 = _local4.split(_local3[_local5]).join(""); _local5++; }; } else { _local6 = 0; while ((((_local6 < _local4.length)) && ((_local3.indexOf(_local4.charAt(_local6)) > -1)))) { _local6++; }; _local4 = _local4.substr(_local6); _local7 = (_local4.length - 1); while ((((_local7 >= 0)) && ((_local3.indexOf(_local4.charAt(_local7)) > -1)))) { _local7--; }; _local4 = _local4.substring(0, (_local7 + 1)); }; return (_local4); } public static function generateHash(_arg1:String):int{ var _local4:int; var _local5:int; var _local2 = 1; var _local3:int; if (((!((_arg1 == null))) && (!((_arg1 == ""))))){ _local2 = 0; _local4 = (_arg1.length - 1); while (_local4 >= 0) { _local5 = _arg1.charCodeAt(_local4); _local2 = ((((_local2 << 6) & 268435455) + _local5) + (_local5 << 14)); _local3 = (_local2 & 266338304); if (_local3 != 0){ _local2 = (_local2 ^ (_local3 >> 21)); }; _local4--; }; }; return (_local2); } public static function generate32bitRandom():int{ return (Math.round((Math.random() * 2147483647))); } public static function validateAccount(_arg1:String):Boolean{ var _local2:RegExp = /^UA-[0-9]*-[0-9]*$/; return (_local2.test(_arg1)); } } }//package com.google.analytics.core
Section 113
//Cookie (com.google.analytics.data.Cookie) package com.google.analytics.data { public interface Cookie { function fromSharedObject(_arg1:Object):void; function toURLString():String; function get creation():Date; function toSharedObject():Object; function isExpired():Boolean; function set creation(_arg1:Date):void; function set expiration(_arg1:Date):void; function get expiration():Date; } }//package com.google.analytics.data
Section 114
//UTMA (com.google.analytics.data.UTMA) package com.google.analytics.data { import com.google.analytics.utils.*; public class UTMA extends UTMCookie { private var _sessionId:Number; private var _domainHash:Number; private var _firstTime:Number; private var _currentTime:Number; private var _lastTime:Number; private var _sessionCount:Number; public function UTMA(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:Number=NaN, _arg6:Number=NaN){ super("utma", "__utma", ["domainHash", "sessionId", "firstTime", "lastTime", "currentTime", "sessionCount"], (Timespan.twoyears * 1000)); this.domainHash = _arg1; this.sessionId = _arg2; this.firstTime = _arg3; this.lastTime = _arg4; this.currentTime = _arg5; this.sessionCount = _arg6; } public function get lastTime():Number{ return (_lastTime); } public function set lastTime(_arg1:Number):void{ _lastTime = _arg1; update(); } public function set currentTime(_arg1:Number):void{ _currentTime = _arg1; update(); } public function get sessionId():Number{ return (_sessionId); } public function get sessionCount():Number{ return (_sessionCount); } public function get firstTime():Number{ return (_firstTime); } public function get currentTime():Number{ return (_currentTime); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function set sessionId(_arg1:Number):void{ _sessionId = _arg1; update(); } public function set sessionCount(_arg1:Number):void{ _sessionCount = _arg1; update(); } public function get domainHash():Number{ return (_domainHash); } public function set firstTime(_arg1:Number):void{ _firstTime = _arg1; update(); } } }//package com.google.analytics.data
Section 115
//UTMB (com.google.analytics.data.UTMB) package com.google.analytics.data { import com.google.analytics.utils.*; public class UTMB extends UTMCookie { private var _trackCount:Number; private var _lastTime:Number; private var _domainHash:Number; private var _token:Number; public static var defaultTimespan:Number = Timespan.thirtyminutes; public function UTMB(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN){ super("utmb", "__utmb", ["domainHash", "trackCount", "token", "lastTime"], (defaultTimespan * 1000)); this.domainHash = _arg1; this.trackCount = _arg2; this.token = _arg3; this.lastTime = _arg4; } public function set token(_arg1:Number):void{ _token = _arg1; update(); } public function set trackCount(_arg1:Number):void{ _trackCount = _arg1; update(); } public function get lastTime():Number{ return (_lastTime); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function set lastTime(_arg1:Number):void{ _lastTime = _arg1; update(); } public function get domainHash():Number{ return (_domainHash); } public function get token():Number{ return (_token); } public function get trackCount():Number{ return (_trackCount); } } }//package com.google.analytics.data
Section 116
//UTMC (com.google.analytics.data.UTMC) package com.google.analytics.data { public class UTMC extends UTMCookie { private var _domainHash:Number; public function UTMC(_arg1:Number=NaN){ super("utmc", "__utmc", ["domainHash"]); this.domainHash = _arg1; } public function get domainHash():Number{ return (_domainHash); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } } }//package com.google.analytics.data
Section 117
//UTMCookie (com.google.analytics.data.UTMCookie) package com.google.analytics.data { import com.google.analytics.core.*; public class UTMCookie implements Cookie { protected var inURL:String; protected var name:String; private var _creation:Date; private var _expiration:Date; public var proxy:Buffer; protected var fields:Array; private var _timespan:Number; public function UTMCookie(_arg1:String, _arg2:String, _arg3:Array, _arg4:Number=0){ this.name = _arg1; this.inURL = _arg2; this.fields = _arg3; _timestamp(_arg4); } public function isEmpty():Boolean{ var _local2:String; var _local1:int; var _local3:int; while (_local3 < fields.length) { _local2 = fields[_local3]; if ((((this[_local2] is Number)) && (isNaN(this[_local2])))){ _local1++; } else { if ((((this[_local2] is String)) && ((this[_local2] == "")))){ _local1++; }; }; _local3++; }; if (_local1 == fields.length){ return (true); }; return (false); } public function resetTimestamp(_arg1:Number=NaN):void{ if (!isNaN(_arg1)){ _timespan = _arg1; }; _creation = null; _expiration = null; _timestamp(_timespan); } protected function update():void{ resetTimestamp(); if (proxy){ proxy.update(name, toSharedObject()); }; } public function reset():void{ var _local1:String; var _local2:int; while (_local2 < fields.length) { _local1 = fields[_local2]; if ((this[_local1] is Number)){ this[_local1] = NaN; } else { if ((this[_local1] is String)){ this[_local1] = ""; }; }; _local2++; }; resetTimestamp(); update(); } public function fromSharedObject(_arg1:Object):void{ var _local2:String; var _local3:int = fields.length; var _local4:int; while (_local4 < _local3) { _local2 = fields[_local4]; if (_arg1[_local2]){ this[_local2] = _arg1[_local2]; }; _local4++; }; if (_arg1.creation){ this.creation = _arg1.creation; }; if (_arg1.expiration){ this.expiration = _arg1.expiration; }; } private function _timestamp(_arg1:Number):void{ creation = new Date(); _timespan = _arg1; if (_arg1 > 0){ expiration = new Date((creation.valueOf() + _arg1)); }; } public function isExpired():Boolean{ var _local1:Date = new Date(); var _local2:Number = (expiration.valueOf() - _local1.valueOf()); if (_local2 <= 0){ return (true); }; return (false); } public function set expiration(_arg1:Date):void{ _expiration = _arg1; } public function get creation():Date{ return (_creation); } public function valueOf():String{ var _local2:String; var _local3:*; var _local1:Array = []; var _local4:int; while (_local4 < fields.length) { _local2 = fields[_local4]; _local3 = this[_local2]; if ((_local3 is String)){ if (_local3 == ""){ _local3 = "-"; _local1.push(_local3); } else { _local1.push(_local3); }; } else { if ((_local3 is Number)){ if (_local3 == 0){ _local1.push(_local3); } else { if (isNaN(_local3)){ _local3 = "-"; _local1.push(_local3); } else { _local1.push(_local3); }; }; }; }; _local4++; }; return (("" + _local1.join("."))); } public function toURLString():String{ return (((inURL + "=") + valueOf())); } public function get expiration():Date{ if (_expiration){ return (_expiration); }; return (new Date((new Date().valueOf() + 1000))); } public function toSharedObject():Object{ var _local2:String; var _local3:*; var _local1:Object = {}; var _local4:int; for (;_local4 < fields.length;_local4++) { _local2 = fields[_local4]; _local3 = this[_local2]; if ((_local3 is String)){ _local1[_local2] = _local3; } else { if (_local3 == 0){ _local1[_local2] = _local3; } else { if (isNaN(_local3)){ continue; } else { _local1[_local2] = _local3; }; }; }; }; _local1.creation = creation; _local1.expiration = expiration; return (_local1); } public function toString(_arg1:Boolean=false):String{ var _local3:String; var _local4:*; var _local2:Array = []; var _local5:int = fields.length; var _local6:int; for (;_local6 < _local5;_local6++) { _local3 = fields[_local6]; _local4 = this[_local3]; if ((_local4 is String)){ _local2.push((((_local3 + ": \"") + _local4) + "\"")); } else { if (_local4 == 0){ _local2.push(((_local3 + ": ") + _local4)); } else { if (isNaN(_local4)){ continue; } else { _local2.push(((_local3 + ": ") + _local4)); }; }; }; }; var _local7 = (((name.toUpperCase() + " {") + _local2.join(", ")) + "}"); if (_arg1){ _local7 = (_local7 + (((" creation:" + creation) + ", expiration:") + expiration)); }; return (_local7); } public function set creation(_arg1:Date):void{ _creation = _arg1; } } }//package com.google.analytics.data
Section 118
//UTMK (com.google.analytics.data.UTMK) package com.google.analytics.data { public class UTMK extends UTMCookie { private var _hash:Number; public function UTMK(_arg1:Number=NaN){ super("utmk", "__utmk", ["hash"]); this.hash = _arg1; } public function set hash(_arg1:Number):void{ _hash = _arg1; update(); } public function get hash():Number{ return (_hash); } } }//package com.google.analytics.data
Section 119
//UTMV (com.google.analytics.data.UTMV) package com.google.analytics.data { import com.google.analytics.utils.*; public class UTMV extends UTMCookie { private var _domainHash:Number; private var _value:String; public function UTMV(_arg1:Number=NaN, _arg2:String=""){ super("utmv", "__utmv", ["domainHash", "value"], (Timespan.twoyears * 1000)); this.domainHash = _arg1; this.value = _arg2; } override public function toURLString():String{ return (((inURL + "=") + encodeURI(valueOf()))); } public function get value():String{ return (_value); } public function get domainHash():Number{ return (_domainHash); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function set value(_arg1:String):void{ _value = _arg1; update(); } } }//package com.google.analytics.data
Section 120
//UTMZ (com.google.analytics.data.UTMZ) package com.google.analytics.data { import com.google.analytics.utils.*; public class UTMZ extends UTMCookie { private var _campaignTracking:String; private var _campaignCreation:Number; private var _responseCount:Number; private var _domainHash:Number; private var _campaignSessions:Number; public static var defaultTimespan:Number = Timespan.sixmonths; public function UTMZ(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:String=""){ super("utmz", "__utmz", ["domainHash", "campaignCreation", "campaignSessions", "responseCount", "campaignTracking"], (defaultTimespan * 1000)); this.domainHash = _arg1; this.campaignCreation = _arg2; this.campaignSessions = _arg3; this.responseCount = _arg4; this.campaignTracking = _arg5; } public function set responseCount(_arg1:Number):void{ _responseCount = _arg1; update(); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function set campaignCreation(_arg1:Number):void{ _campaignCreation = _arg1; update(); } public function get campaignTracking():String{ return (_campaignTracking); } public function get campaignSessions():Number{ return (_campaignSessions); } public function get domainHash():Number{ return (_domainHash); } public function get responseCount():Number{ return (_responseCount); } public function get campaignCreation():Number{ return (_campaignCreation); } public function set campaignSessions(_arg1:Number):void{ _campaignSessions = _arg1; update(); } public function set campaignTracking(_arg1:String):void{ _campaignTracking = _arg1; update(); } } }//package com.google.analytics.data
Section 121
//X10 (com.google.analytics.data.X10) package com.google.analytics.data { public class X10 { private var _delimEnd:String;// = ")" private var _minimum:int; private var _delimSet:String;// = "*" private var _escapeChar:String;// = "'" private var _delimBegin:String;// = "(" private var _delimNumValue:String;// = "!" private var _key:String;// = "k" private var _set:Array; private var _hasData:int; private var _escapeCharMap:Object; private var _projectData:Object; private var _value:String;// = "v" public function X10(){ _set = [_key, _value]; super(); _projectData = {}; _escapeCharMap = {}; _escapeCharMap[_escapeChar] = "'0"; _escapeCharMap[_delimEnd] = "'1"; _escapeCharMap[_delimSet] = "'2"; _escapeCharMap[_delimNumValue] = "'3"; _minimum = 1; } private function _setInternal(_arg1:Number, _arg2:String, _arg3:Number, _arg4:String):void{ if (!hasProject(_arg1)){ _projectData[_arg1] = {}; }; if (_projectData[_arg1][_arg2] == undefined){ _projectData[_arg1][_arg2] = []; }; _projectData[_arg1][_arg2][_arg3] = _arg4; _hasData = (_hasData + 1); } private function _renderProject(_arg1:Object):String{ var _local4:int; var _local5:Array; var _local2 = ""; var _local3:Boolean; var _local6:int = _set.length; _local4 = 0; while (_local4 < _local6) { _local5 = _arg1[_set[_local4]]; if (_local5){ if (_local3){ _local2 = (_local2 + _set[_local4]); }; _local2 = (_local2 + _renderDataType(_local5)); _local3 = false; } else { _local3 = true; }; _local4++; }; return (_local2); } public function hasProject(_arg1:Number):Boolean{ return (_projectData[_arg1]); } public function clearKey(_arg1:Number):void{ _clearInternal(_arg1, _key); } private function _renderDataType(_arg1:Array):String{ var _local3:String; var _local4:int; var _local2:Array = []; _local4 = 0; while (_local4 < _arg1.length) { if (_arg1[_local4] != undefined){ _local3 = ""; if (((!((_local4 == _minimum))) && ((_arg1[(_local4 - 1)] == undefined)))){ _local3 = (_local3 + _local4.toString()); _local3 = (_local3 + _delimNumValue); }; _local3 = (_local3 + _escapeExtensibleValue(_arg1[_local4])); _local2.push(_local3); }; _local4++; }; return (((_delimBegin + _local2.join(_delimSet)) + _delimEnd)); } public function getKey(_arg1:Number, _arg2:Number):String{ return ((_getInternal(_arg1, _key, _arg2) as String)); } public function hasData():Boolean{ return ((_hasData > 0)); } public function renderMergedUrlString(_arg1:X10=null):String{ var _local3:String; if (!_arg1){ return (renderUrlString()); }; var _local2:Array = [_arg1.renderUrlString()]; for (_local3 in _projectData) { if (((hasProject(Number(_local3))) && (!(_arg1.hasProject(Number(_local3)))))){ _local2.push((_local3 + _renderProject(_projectData[_local3]))); }; }; return (_local2.join("")); } public function setValue(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{ if (((((!((Math.round(_arg3) == _arg3))) || (isNaN(_arg3)))) || ((_arg3 == Infinity)))){ return (false); }; _setInternal(_arg1, _value, _arg2, _arg3.toString()); return (true); } public function renderUrlString():String{ var _local2:String; var _local1:Array = []; for (_local2 in _projectData) { if (hasProject(Number(_local2))){ _local1.push((_local2 + _renderProject(_projectData[_local2]))); }; }; return (_local1.join("")); } private function _getInternal(_arg1:Number, _arg2:String, _arg3:Number):Object{ if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){ return (_projectData[_arg1][_arg2][_arg3]); }; return (undefined); } public function setKey(_arg1:Number, _arg2:Number, _arg3:String):Boolean{ _setInternal(_arg1, _key, _arg2, _arg3); return (true); } public function clearValue(_arg1:Number):void{ _clearInternal(_arg1, _value); } private function _clearInternal(_arg1:Number, _arg2:String):void{ var _local3:Boolean; var _local4:int; var _local5:int; if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){ _projectData[_arg1][_arg2] = undefined; _local3 = true; _local5 = _set.length; _local4 = 0; while (_local4 < _local5) { if (_projectData[_arg1][_set[_local4]] != undefined){ _local3 = false; break; }; _local4++; }; if (_local3){ _projectData[_arg1] = undefined; _hasData = (_hasData - 1); }; }; } public function getValue(_arg1:Number, _arg2:Number){ var _local3:* = _getInternal(_arg1, _value, _arg2); if (_local3 == null){ return (null); }; return (Number(_local3)); } private function _escapeExtensibleValue(_arg1:String):String{ var _local3:int; var _local4:String; var _local5:String; var _local2 = ""; _local3 = 0; while (_local3 < _arg1.length) { _local4 = _arg1.charAt(_local3); _local5 = _escapeCharMap[_local4]; if (_local5){ _local2 = (_local2 + _local5); } else { _local2 = (_local2 + _local4); }; _local3++; }; return (_local2); } } }//package com.google.analytics.data
Section 122
//_Style (com.google.analytics.debug._Style) package com.google.analytics.debug { import flash.net.*; import flash.text.*; public class _Style { public var failureColor:uint; public var borderColor:uint; public var backgroundColor:uint; private var _sheet:StyleSheet; public var roundedCorner:uint; public var warningColor:uint; public var infoColor:uint; public var alertColor:uint; public var successColor:uint; private var _loader:URLLoader; private var _defaultSheet:String; public function _Style(){ _sheet = new StyleSheet(); _loader = new URLLoader(); _init(); } private function _parseSheet(_arg1:String):void{ _sheet.parseCSS(_arg1); } public function get sheet():StyleSheet{ return (_sheet); } private function _init():void{ _defaultSheet = ""; _defaultSheet = (_defaultSheet + "a{text-decoration: underline;}\n"); _defaultSheet = (_defaultSheet + ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n"); _defaultSheet = (_defaultSheet + ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + "\n"); roundedCorner = 6; backgroundColor = 0xCCCCCC; borderColor = 0x555555; infoColor = 16777113; alertColor = 0xFFCC00; warningColor = 0xCC0000; successColor = 0xFF00; failureColor = 0xFF0000; _parseSheet(_defaultSheet); } } }//package com.google.analytics.debug
Section 123
//Alert (com.google.analytics.debug.Alert) package com.google.analytics.debug { import flash.events.*; public class Alert extends Label { public var autoClose:Boolean;// = true public var actionOnNextLine:Boolean;// = true private var _actions:Array; public function Alert(_arg1:String, _arg2:Array, _arg3:String="uiAlert", _arg4:uint=0, _arg5:Align=null, _arg6:Boolean=false, _arg7:Boolean=true){ if (_arg4 == 0){ _arg4 = Style.alertColor; }; if (_arg5 == null){ _arg5 = Align.center; }; super(_arg1, _arg3, _arg4, _arg5, _arg6); this.selectable = true; super.mouseChildren = true; this.buttonMode = true; this.mouseEnabled = true; this.useHandCursor = true; this.actionOnNextLine = _arg7; _actions = []; var _local8:int; while (_local8 < _arg2.length) { _arg2[_local8].container = this; _actions.push(_arg2[_local8]); _local8++; }; } private function _defineActions():void{ var _local3:AlertAction; var _local1 = ""; if (actionOnNextLine){ _local1 = (_local1 + "\n"); } else { _local1 = (_local1 + " |"); }; _local1 = (_local1 + " "); var _local2:Array = []; var _local4:int; while (_local4 < _actions.length) { _local3 = _actions[_local4]; _local2.push((((("<a href=\"event:" + _local3.activator) + "\">") + _local3.name) + "</a>")); _local4++; }; _local1 = (_local1 + _local2.join(" | ")); appendText(_local1, "uiAlertAction"); } protected function isValidAction(_arg1:String):Boolean{ var _local2:int; while (_local2 < _actions.length) { if (_arg1 == _actions[_local2].activator){ return (true); }; _local2++; }; return (false); } override protected function layout():void{ super.layout(); _defineActions(); } protected function getAction(_arg1:String):AlertAction{ var _local2:int; while (_local2 < _actions.length) { if (_arg1 == _actions[_local2].activator){ return (_actions[_local2]); }; _local2++; }; return (null); } protected function spaces(_arg1:int):String{ var _local2 = ""; var _local3 = " "; var _local4:int; while (_local4 < (_arg1 + 1)) { _local2 = (_local2 + _local3); _local4++; }; return (_local2); } override public function onLink(_arg1:TextEvent):void{ var _local2:AlertAction; if (isValidAction(_arg1.text)){ _local2 = getAction(_arg1.text); if (_local2){ _local2.execute(); }; }; if (autoClose){ close(); }; } public function close():void{ if (parent != null){ parent.removeChild(this); }; } } }//package com.google.analytics.debug
Section 124
//AlertAction (com.google.analytics.debug.AlertAction) package com.google.analytics.debug { public class AlertAction { public var container:Alert; private var _callback; public var activator:String; public var name:String; public function AlertAction(_arg1:String, _arg2:String, _arg3){ this.name = _arg1; this.activator = _arg2; _callback = _arg3; } public function execute():void{ if (_callback){ if ((_callback is Function)){ (_callback as Function)(); } else { if ((_callback is String)){ var _local1 = container; _local1[_callback](); }; }; }; } } }//package com.google.analytics.debug
Section 125
//Align (com.google.analytics.debug.Align) package com.google.analytics.debug { public class Align { private var _value:int; private var _name:String; public static const bottomRight:Align = new Align(18, "bottomRight"); ; public static const right:Align = new Align(16, "right"); ; public static const left:Align = new Align(32, "left"); ; public static const topRight:Align = new Align(17, "topRight"); ; public static const bottom:Align = new Align(2, "bottom"); ; public static const bottomLeft:Align = new Align(34, "bottomLeft"); ; public static const topLeft:Align = new Align(33, "topLeft"); ; public static const center:Align = new Align(0x0100, "center"); ; public static const none:Align = new Align(0, "none"); ; public static const top:Align = new Align(1, "top"); ; public function Align(_arg1:int=0, _arg2:String=""){ _value = _arg1; _name = _arg2; } public function valueOf():int{ return (_value); } public function toString():String{ return (_name); } } }//package com.google.analytics.debug
Section 126
//Background (com.google.analytics.debug.Background) package com.google.analytics.debug { import flash.display.*; public class Background { public static function drawRounded(_arg1, _arg2:Graphics, _arg3:uint=0, _arg4:uint=0):void{ var _local5:uint; var _local6:uint; var _local7:uint = Style.roundedCorner; if ((((_arg3 > 0)) && ((_arg4 > 0)))){ _local5 = _arg3; _local6 = _arg4; } else { _local5 = _arg1.width; _local6 = _arg1.height; }; if (((_arg1.stickToEdge) && (!((_arg1.alignement == Align.none))))){ switch (_arg1.alignement){ case Align.top: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, _local7); break; case Align.topLeft: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, 0, _local7); break; case Align.topRight: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, 0); break; case Align.bottom: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, _local7, 0, 0); break; case Align.bottomLeft: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, 0); break; case Align.bottomRight: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, 0, 0); break; case Align.left: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, _local7); break; case Align.right: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, _local7, 0); break; case Align.center: _arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7); break; }; } else { _arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7); }; } } }//package com.google.analytics.debug
Section 127
//Debug (com.google.analytics.debug.Debug) package com.google.analytics.debug { import flash.events.*; import flash.ui.*; public class Debug extends Label { private var _lines:Array; private var _preferredForcedWidth:uint;// = 540 private var _linediff:int;// = 0 public var maxLines:uint;// = 16 public static var count:uint = 0; public function Debug(_arg1:uint=0, _arg2:Align=null, _arg3:Boolean=false){ if (_arg2 == null){ _arg2 = Align.bottom; }; super("", "uiLabel", _arg1, _arg2, _arg3); this.name = ("Debug" + count++); _lines = []; selectable = true; addEventListener(KeyboardEvent.KEY_DOWN, onKey); } public function writeBold(_arg1:String):void{ write(_arg1, true); } private function _getLinesToDisplay(_arg1:int=0):Array{ var _local2:Array; var _local3:uint; var _local4:uint; if ((_lines.length - 1) > maxLines){ if ((_linediff <= 0)){ _linediff = (_linediff + _arg1); } else { if ((((_linediff > 0)) && ((_arg1 < 0)))){ _linediff = (_linediff + _arg1); }; }; _local3 = ((_lines.length - maxLines) + _linediff); _local4 = (_local3 + maxLines); _local2 = _lines.slice(_local3, _local4); } else { _local2 = _lines; }; return (_local2); } private function onKey(_arg1:KeyboardEvent=null):void{ var _local2:Array; switch (_arg1.keyCode){ case Keyboard.DOWN: _local2 = _getLinesToDisplay(1); break; case Keyboard.UP: _local2 = _getLinesToDisplay(-1); break; default: _local2 = null; }; if (_local2 == null){ return; }; text = _local2.join("\n"); } override public function get forcedWidth():uint{ if (this.parent){ if (UISprite(this.parent).forcedWidth > _preferredForcedWidth){ return (_preferredForcedWidth); }; return (UISprite(this.parent).forcedWidth); //unresolved jump }; return (super.forcedWidth); } public function write(_arg1:String, _arg2:Boolean=false):void{ var _local3:Array; if (_arg1.indexOf("") > -1){ _local3 = _arg1.split("\n"); } else { _local3 = [_arg1]; }; var _local4 = ""; var _local5 = ""; if (_arg2){ _local4 = "<b>"; _local5 = "</b>"; }; var _local6:int; while (_local6 < _local3.length) { _lines.push(((_local4 + _local3[_local6]) + _local5)); _local6++; }; var _local7:Array = _getLinesToDisplay(); text = _local7.join("\n"); } public function close():void{ dispose(); } override protected function dispose():void{ removeEventListener(KeyboardEvent.KEY_DOWN, onKey); super.dispose(); } } }//package com.google.analytics.debug
Section 128
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration) package com.google.analytics.debug { import flash.utils.*; import com.google.analytics.core.*; import flash.net.*; import flash.ui.*; public class DebugConfiguration { public var showHideKey:Number; private var _mode:VisualDebugMode; private var _verbose:Boolean;// = false public var destroyKey:Number; public var GIFRequests:Boolean;// = false public var showInfos:Boolean;// = true public var infoTimeout:Number;// = 1000 public var minimizedOnStart:Boolean;// = false private var _active:Boolean;// = false public var traceOutput:Boolean;// = false public var layout:ILayout; public var warningTimeout:Number;// = 1500 public var javascript:Boolean;// = false public var showWarnings:Boolean;// = true private var _visualInitialized:Boolean;// = false public function DebugConfiguration(){ _mode = VisualDebugMode.basic; showHideKey = Keyboard.SPACE; destroyKey = Keyboard.BACKSPACE; super(); } public function get verbose():Boolean{ return (_verbose); } public function set verbose(_arg1:Boolean):void{ _verbose = _arg1; } public function set mode(_arg1):void{ if ((_arg1 is String)){ switch (_arg1){ case "geek": _arg1 = VisualDebugMode.geek; break; case "advanced": _arg1 = VisualDebugMode.advanced; break; case "basic": default: _arg1 = VisualDebugMode.basic; }; }; _mode = _arg1; } public function success(_arg1:String):void{ if (layout){ layout.createSuccessAlert(_arg1); }; if (traceOutput){ trace((("[+] " + _arg1) + " !!")); }; } public function get active():Boolean{ return (_active); } private function _initializeVisual():void{ if (layout){ layout.init(); _visualInitialized = true; }; } private function _destroyVisual():void{ if (((layout) && (_visualInitialized))){ layout.destroy(); }; } public function warning(_arg1:String, _arg2:VisualDebugMode=null):void{ if (_filter(_arg2)){ return; }; if (((layout) && (showWarnings))){ layout.createWarning(_arg1); }; if (traceOutput){ trace((("## " + _arg1) + " ##")); }; } private function _filter(_arg1:VisualDebugMode=null):Boolean{ return (((_arg1) && ((int(_arg1) >= int(this.mode))))); } public function failure(_arg1:String):void{ if (layout){ layout.createFailureAlert(_arg1); }; if (traceOutput){ trace((("[-] " + _arg1) + " !!")); }; } public function get mode(){ return (_mode); } public function set active(_arg1:Boolean):void{ _active = _arg1; if (_active){ _initializeVisual(); } else { _destroyVisual(); }; } protected function trace(_arg1:String):void{ var _local7:Array; var _local8:int; var _local2:Array = []; var _local3 = ""; var _local4 = ""; if (this.mode == VisualDebugMode.geek){ _local3 = (getTimer() + " - "); _local4 = (new Array(_local3.length).join(" ") + " "); }; if (_arg1.indexOf("\n") > -1){ _local7 = _arg1.split("\n"); _local8 = 0; while (_local8 < _local7.length) { if (_local7[_local8] == ""){ } else { if (_local8 == 0){ _local2.push((_local3 + _local7[_local8])); } else { _local2.push((_local4 + _local7[_local8])); }; }; _local8++; }; } else { _local2.push((_local3 + _arg1)); }; var _local5:int = _local2.length; var _local6:int; while (_local6 < _local5) { trace(_local2[_local6]); _local6++; }; } public function alert(_arg1:String):void{ if (layout){ layout.createAlert(_arg1); }; if (traceOutput){ trace((("!! " + _arg1) + " !!")); }; } public function info(_arg1:String, _arg2:VisualDebugMode=null):void{ if (_filter(_arg2)){ return; }; if (((layout) && (showInfos))){ layout.createInfo(_arg1); }; if (traceOutput){ trace(_arg1); }; } public function alertGifRequest(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{ if (layout){ layout.createGIFRequestAlert(_arg1, _arg2, _arg3); }; if (traceOutput){ trace(((">> " + _arg1) + " <<")); }; } } }//package com.google.analytics.debug
Section 129
//FailureAlert (com.google.analytics.debug.FailureAlert) package com.google.analytics.debug { public class FailureAlert extends Alert { public function FailureAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){ var _local4:Align = Align.bottomLeft; var _local5:Boolean; var _local6:Boolean; if (_arg1.verbose){ _arg2 = ((("<u><span class=\"uiAlertTitle\">Failure</span>" + spaces(18)) + "</u>\n\n") + _arg2); _local4 = Align.center; _local5 = false; _local6 = true; }; super(_arg2, _arg3, "uiFailure", Style.failureColor, _local4, _local5, _local6); } } }//package com.google.analytics.debug
Section 130
//GIFRequestAlert (com.google.analytics.debug.GIFRequestAlert) package com.google.analytics.debug { public class GIFRequestAlert extends Alert { public function GIFRequestAlert(_arg1:String, _arg2:Array){ super(_arg1, _arg2); } } }//package com.google.analytics.debug
Section 131
//ILayout (com.google.analytics.debug.ILayout) package com.google.analytics.debug { import flash.display.*; import com.google.analytics.core.*; import flash.net.*; public interface ILayout { function createAlert(_arg1:String):void; function addToStage(_arg1:DisplayObject):void; function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void; function createWarning(_arg1:String):void; function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void; function createInfo(_arg1:String):void; function createFailureAlert(_arg1:String):void; function addToPanel(_arg1:String, _arg2:DisplayObject):void; function init():void; function createSuccessAlert(_arg1:String):void; function createVisualDebug():void; function destroy():void; function bringToFront(_arg1:DisplayObject):void; function isAvailable():Boolean; } }//package com.google.analytics.debug
Section 132
//Info (com.google.analytics.debug.Info) package com.google.analytics.debug { import flash.events.*; import flash.utils.*; public class Info extends Label { private var _timer:Timer; public function Info(_arg1:String="", _arg2:uint=3000){ super(_arg1, "uiInfo", Style.infoColor, Align.top, true); if (_arg2 > 0){ _timer = new Timer(_arg2, 1); _timer.start(); _timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true); }; } public function close():void{ if (parent != null){ parent.removeChild(this); }; } override public function onLink(_arg1:TextEvent):void{ switch (_arg1.text){ case "hide": close(); break; }; } public function onComplete(_arg1:TimerEvent):void{ close(); } } }//package com.google.analytics.debug
Section 133
//Label (com.google.analytics.debug.Label) package com.google.analytics.debug { import flash.events.*; import flash.display.*; import flash.text.*; public class Label extends UISprite { private var _color:uint; private var _background:Shape; private var _textField:TextField; public var stickToEdge:Boolean; private var _text:String; protected var selectable:Boolean; private var _tag:String; public static var count:uint = 0; public function Label(_arg1:String="", _arg2:String="uiLabel", _arg3:uint=0, _arg4:Align=null, _arg5:Boolean=false){ this.name = ("Label" + count++); selectable = false; _background = new Shape(); _textField = new TextField(); _text = _arg1; _tag = _arg2; if (_arg4 == null){ _arg4 = Align.none; }; this.alignement = _arg4; this.stickToEdge = _arg5; if (_arg3 == 0){ _arg3 = Style.backgroundColor; }; _color = _arg3; _textField.addEventListener(TextEvent.LINK, onLink); } public function get tag():String{ return (_tag); } private function _draw():void{ var _local1:Graphics = _background.graphics; _local1.clear(); _local1.beginFill(_color); var _local2:uint = _textField.width; var _local3:uint = _textField.height; if (forcedWidth > 0){ _local2 = forcedWidth; }; Background.drawRounded(this, _local1, _local2, _local3); _local1.endFill(); } public function get text():String{ return (_textField.text); } public function appendText(_arg1:String, _arg2:String=""):void{ if (_arg1 == ""){ return; }; if (_arg2 == ""){ _arg2 = tag; }; _textField.htmlText = (_textField.htmlText + (((("<span class=\"" + _arg2) + "\">") + _arg1) + "</span>")); _text = (_text + _arg1); _draw(); resize(); } public function set text(_arg1:String):void{ if (_arg1 == ""){ _arg1 = _text; }; _textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>"); _text = _arg1; _draw(); resize(); } override protected function layout():void{ _textField.type = TextFieldType.DYNAMIC; _textField.autoSize = TextFieldAutoSize.LEFT; _textField.background = false; _textField.selectable = selectable; _textField.multiline = true; _textField.styleSheet = Style.sheet; this.text = _text; addChild(_background); addChild(_textField); } public function set tag(_arg1:String):void{ _tag = _arg1; text = ""; } public function onLink(_arg1:TextEvent):void{ } override protected function dispose():void{ _textField.removeEventListener(TextEvent.LINK, onLink); super.dispose(); } } }//package com.google.analytics.debug
Section 134
//Layout (com.google.analytics.debug.Layout) package com.google.analytics.debug { import flash.events.*; import flash.display.*; import com.google.analytics.core.*; import flash.net.*; import com.google.analytics.*; public class Layout implements ILayout { private var _display:DisplayObject; private var _infoQueue:Array; private var _maxCharPerLine:int;// = 85 private var _hasInfo:Boolean; private var _warningQueue:Array; private var _hasDebug:Boolean; private var _hasWarning:Boolean; private var _mainPanel:Panel; private var _GRAlertQueue:Array; private var _debug:DebugConfiguration; public var visualDebug:Debug; private var _hasGRAlert:Boolean; public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){ _display = _arg2; _debug = _arg1; _hasWarning = false; _hasInfo = false; _hasDebug = false; _hasGRAlert = false; _warningQueue = []; _infoQueue = []; _GRAlertQueue = []; } private function onKey(_arg1:KeyboardEvent=null):void{ switch (_arg1.keyCode){ case _debug.showHideKey: _mainPanel.visible = !(_mainPanel.visible); break; case _debug.destroyKey: destroy(); break; }; } public function createWarning(_arg1:String):void{ if (((_hasWarning) || (!(isAvailable())))){ _warningQueue.push(_arg1); return; }; _arg1 = _filterMaxChars(_arg1); _hasWarning = true; var _local2:Warning = new Warning(_arg1, _debug.warningTimeout); addToPanel("analytics", _local2); _local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearWarning, false, 0, true); if (_hasDebug){ visualDebug.writeBold(_arg1); }; } public function bringToFront(_arg1:DisplayObject):void{ _display.stage.setChildIndex(_arg1, (_display.stage.numChildren - 1)); } public function createFailureAlert(_arg1:String):void{ var _local2:AlertAction; if (_debug.verbose){ _arg1 = _filterMaxChars(_arg1); _local2 = new AlertAction("Close", "close", "close"); } else { _local2 = new AlertAction("X", "close", "close"); }; var _local3:Alert = new FailureAlert(_debug, _arg1, [_local2]); addToPanel("analytics", _local3); if (_hasDebug){ if (_debug.verbose){ _arg1 = _arg1.split("\n").join(""); _arg1 = _filterMaxChars(_arg1, 66); }; visualDebug.writeBold(_arg1); }; } public function init():void{ var _local1 = 10; var _local2:uint = (_display.stage.stageWidth - (_local1 * 2)); var _local3:uint = (_display.stage.stageHeight - (_local1 * 2)); var _local4:Panel = new Panel("analytics", _local2, _local3); _local4.alignement = Align.top; _local4.stickToEdge = false; _local4.title = ("Google Analytics v" + GATracker.version); _mainPanel = _local4; addToStage(_local4); bringToFront(_local4); if (_debug.minimizedOnStart){ _mainPanel.onToggle(); }; createVisualDebug(); _display.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey, false, 0, true); } public function addToPanel(_arg1:String, _arg2:DisplayObject):void{ var _local4:Panel; var _local3:DisplayObject = _display.stage.getChildByName(_arg1); if (_local3){ _local4 = (_local3 as Panel); _local4.addData(_arg2); } else { trace((("panel \"" + _arg1) + "\" not found")); }; } private function _clearInfo(_arg1:Event):void{ _hasInfo = false; if (_infoQueue.length > 0){ createInfo(_infoQueue.shift()); }; } private function _filterMaxChars(_arg1:String, _arg2:int=0):String{ var _local6:String; var _local3 = "\n"; var _local4:Array = []; var _local5:Array = _arg1.split(_local3); if (_arg2 == 0){ _arg2 = _maxCharPerLine; }; var _local7:int; while (_local7 < _local5.length) { _local6 = _local5[_local7]; while (_local6.length > _arg2) { _local4.push(_local6.substr(0, _arg2)); _local6 = _local6.substring(_arg2); }; _local4.push(_local6); _local7++; }; return (_local4.join(_local3)); } private function _clearGRAlert(_arg1:Event):void{ _hasGRAlert = false; if (_GRAlertQueue.length > 0){ createGIFRequestAlert.apply(this, _GRAlertQueue.shift()); }; } public function createSuccessAlert(_arg1:String):void{ var _local2:AlertAction; if (_debug.verbose){ _arg1 = _filterMaxChars(_arg1); _local2 = new AlertAction("Close", "close", "close"); } else { _local2 = new AlertAction("X", "close", "close"); }; var _local3:Alert = new SuccessAlert(_debug, _arg1, [_local2]); addToPanel("analytics", _local3); if (_hasDebug){ if (_debug.verbose){ _arg1 = _arg1.split("\n").join(""); _arg1 = _filterMaxChars(_arg1, 66); }; visualDebug.writeBold(_arg1); }; } public function isAvailable():Boolean{ return (!((_display.stage == null))); } public function createAlert(_arg1:String):void{ _arg1 = _filterMaxChars(_arg1); var _local2:Alert = new Alert(_arg1, [new AlertAction("Close", "close", "close")]); addToPanel("analytics", _local2); if (_hasDebug){ visualDebug.writeBold(_arg1); }; } public function createInfo(_arg1:String):void{ if (((_hasInfo) || (!(isAvailable())))){ _infoQueue.push(_arg1); return; }; _arg1 = _filterMaxChars(_arg1); _hasInfo = true; var _local2:Info = new Info(_arg1, _debug.infoTimeout); addToPanel("analytics", _local2); _local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearInfo, false, 0, true); if (_hasDebug){ visualDebug.write(_arg1); }; } public function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{ var message = _arg1; var request = _arg2; var ref = _arg3; if (_hasGRAlert){ _GRAlertQueue.push([message, request, ref]); return; }; _hasGRAlert = true; var f:Function = function ():void{ ref.sendRequest(request); }; message = _filterMaxChars(message); var gra:GIFRequestAlert = new GIFRequestAlert(message, [new AlertAction("OK", "ok", f), new AlertAction("Cancel", "cancel", "close")]); addToPanel("analytics", gra); gra.addEventListener(Event.REMOVED_FROM_STAGE, _clearGRAlert, false, 0, true); if (_hasDebug){ if (_debug.verbose){ message = message.split("\n").join(""); message = _filterMaxChars(message, 66); }; visualDebug.write(message); }; } public function createVisualDebug():void{ if (!visualDebug){ visualDebug = new Debug(); visualDebug.alignement = Align.bottom; visualDebug.stickToEdge = true; addToPanel("analytics", visualDebug); _hasDebug = true; }; } public function addToStage(_arg1:DisplayObject):void{ _display.stage.addChild(_arg1); } private function _clearWarning(_arg1:Event):void{ _hasWarning = false; if (_warningQueue.length > 0){ createWarning(_warningQueue.shift()); }; } public function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void{ var _local4:Panel = new Panel(_arg1, _arg2, _arg3); _local4.alignement = Align.center; _local4.stickToEdge = false; addToStage(_local4); bringToFront(_local4); } public function destroy():void{ _mainPanel.close(); _debug.layout = null; } } }//package com.google.analytics.debug
Section 135
//Margin (com.google.analytics.debug.Margin) package com.google.analytics.debug { public class Margin { public var top:int; public var left:int; public var bottom:int; public var right:int; public function Margin(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0){ this.top = _arg1; this.bottom = _arg2; this.left = _arg3; this.right = _arg4; } } }//package com.google.analytics.debug
Section 136
//Panel (com.google.analytics.debug.Panel) package com.google.analytics.debug { import flash.events.*; import flash.display.*; public class Panel extends UISprite { private var _savedH:uint; private var _data:UISprite; private var _mask:Sprite; private var _background:Shape; private var _savedW:uint; private var _stickToEdge:Boolean; private var _border:Shape; private var _borderColor:uint; protected var baseAlpha:Number; private var _backgroundColor:uint; private var _title:Label; private var _colapsed:Boolean; private var _name:String; public function Panel(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint=0, _arg5:uint=0, _arg6:Number=0.3, _arg7:Align=null, _arg8:Boolean=false){ _name = _arg1; this.name = _arg1; this.mouseEnabled = false; _colapsed = false; forcedWidth = _arg2; forcedHeight = _arg3; this.baseAlpha = _arg6; _background = new Shape(); _data = new UISprite(); _data.forcedWidth = _arg2; _data.forcedHeight = _arg3; _data.mouseEnabled = false; _title = new Label(_arg1, "uiLabel", 0xFFFFFF, Align.topLeft, _arg8); _title.buttonMode = true; _title.margin.top = 0.6; _title.margin.left = 0.6; _title.addEventListener(MouseEvent.CLICK, onToggle); _title.mouseChildren = false; _border = new Shape(); _mask = new Sprite(); _mask.useHandCursor = false; _mask.mouseEnabled = false; _mask.mouseChildren = false; if (_arg7 == null){ _arg7 = Align.none; }; this.alignement = _arg7; this.stickToEdge = _arg8; if (_arg4 == 0){ _arg4 = Style.backgroundColor; }; _backgroundColor = _arg4; if (_arg5 == 0){ _arg5 = Style.borderColor; }; _borderColor = _arg5; } public function get stickToEdge():Boolean{ return (_stickToEdge); } public function onToggle(_arg1:MouseEvent=null):void{ if (_colapsed){ _data.visible = true; } else { _data.visible = false; }; _colapsed = !(_colapsed); _update(); resize(); } public function set stickToEdge(_arg1:Boolean):void{ _stickToEdge = _arg1; _title.stickToEdge = _arg1; } override protected function dispose():void{ _title.removeEventListener(MouseEvent.CLICK, onToggle); super.dispose(); } private function _draw():void{ var _local1:uint; var _local2:uint; if (((_savedW) && (_savedH))){ forcedWidth = _savedW; forcedHeight = _savedH; }; if (!_colapsed){ _local1 = forcedWidth; _local2 = forcedHeight; } else { _local1 = _title.width; _local2 = _title.height; _savedW = forcedWidth; _savedH = forcedHeight; forcedWidth = _local1; forcedHeight = _local2; }; var _local3:Graphics = _background.graphics; _local3.clear(); _local3.beginFill(_backgroundColor); Background.drawRounded(this, _local3, _local1, _local2); _local3.endFill(); var _local4:Graphics = _data.graphics; _local4.clear(); _local4.beginFill(_backgroundColor, 0); Background.drawRounded(this, _local4, _local1, _local2); _local4.endFill(); var _local5:Graphics = _border.graphics; _local5.clear(); _local5.lineStyle(0.1, _borderColor); Background.drawRounded(this, _local5, _local1, _local2); _local5.endFill(); var _local6:Graphics = _mask.graphics; _local6.clear(); _local6.beginFill(_backgroundColor); Background.drawRounded(this, _local6, (_local1 + 1), (_local2 + 1)); _local6.endFill(); } public function get title():String{ return (_title.text); } private function _update():void{ _draw(); if (baseAlpha < 1){ _background.alpha = baseAlpha; _border.alpha = baseAlpha; }; } public function addData(_arg1:DisplayObject):void{ _data.addChild(_arg1); } override protected function layout():void{ _update(); addChild(_background); addChild(_data); addChild(_title); addChild(_border); addChild(_mask); mask = _mask; } public function set title(_arg1:String):void{ _title.text = _arg1; } public function close():void{ dispose(); if (parent != null){ parent.removeChild(this); }; } } }//package com.google.analytics.debug
Section 137
//Style (com.google.analytics.debug.Style) package com.google.analytics.debug { public const Style:_Style = new _Style(); }//package com.google.analytics.debug
Section 138
//SuccessAlert (com.google.analytics.debug.SuccessAlert) package com.google.analytics.debug { public class SuccessAlert extends Alert { public function SuccessAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){ var _local4:Align = Align.bottomLeft; var _local5:Boolean; var _local6:Boolean; if (_arg1.verbose){ _arg2 = ((("<u><span class=\"uiAlertTitle\">Success</span>" + spaces(18)) + "</u>\n\n") + _arg2); _local4 = Align.center; _local5 = false; _local6 = true; }; super(_arg2, _arg3, "uiSuccess", Style.successColor, _local4, _local5, _local6); } } }//package com.google.analytics.debug
Section 139
//UISprite (com.google.analytics.debug.UISprite) package com.google.analytics.debug { import flash.events.*; import flash.display.*; public class UISprite extends Sprite { private var _forcedWidth:uint; public var margin:Margin; protected var alignTarget:DisplayObject; protected var listenResize:Boolean; public var alignement:Align; private var _forcedHeight:uint; public function UISprite(_arg1:DisplayObject=null){ listenResize = false; alignement = Align.none; this.alignTarget = _arg1; margin = new Margin(); addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage); addEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage); } public function get forcedHeight():uint{ if (_forcedHeight){ return (_forcedHeight); }; return (height); } private function _onAddedToStage(_arg1:Event):void{ layout(); resize(); } protected function dispose():void{ var _local1:DisplayObject; var _local2:int; while (_local2 < numChildren) { _local1 = getChildAt(_local2); if (_local1){ removeChild(_local1); }; _local2++; }; } public function set forcedHeight(_arg1:uint):void{ _forcedHeight = _arg1; } public function set forcedWidth(_arg1:uint):void{ _forcedWidth = _arg1; } protected function layout():void{ } public function get forcedWidth():uint{ if (_forcedWidth){ return (_forcedWidth); }; return (width); } public function alignTo(_arg1:Align, _arg2:DisplayObject=null):void{ var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint; var _local7:UISprite; if (_arg2 == null){ if ((parent is Stage)){ _arg2 = this.stage; } else { _arg2 = parent; }; }; if (_arg2 == this.stage){ if (this.stage == null){ return; }; _local3 = this.stage.stageHeight; _local4 = this.stage.stageWidth; _local5 = 0; _local6 = 0; } else { _local7 = (_arg2 as UISprite); if (_local7.forcedHeight){ _local3 = _local7.forcedHeight; } else { _local3 = _local7.height; }; if (_local7.forcedWidth){ _local4 = _local7.forcedWidth; } else { _local4 = _local7.width; }; _local5 = 0; _local6 = 0; }; switch (_arg1){ case Align.top: x = ((_local4 / 2) - (forcedWidth / 2)); y = (_local6 + margin.top); break; case Align.bottom: x = ((_local4 / 2) - (forcedWidth / 2)); y = (((_local6 + _local3) - forcedHeight) - margin.bottom); break; case Align.left: x = (_local5 + margin.left); y = ((_local3 / 2) - (forcedHeight / 2)); break; case Align.right: x = (((_local5 + _local4) - forcedWidth) - margin.right); y = ((_local3 / 2) - (forcedHeight / 2)); break; case Align.center: x = ((_local4 / 2) - (forcedWidth / 2)); y = ((_local3 / 2) - (forcedHeight / 2)); break; case Align.topLeft: x = (_local5 + margin.left); y = (_local6 + margin.top); break; case Align.topRight: x = (((_local5 + _local4) - forcedWidth) - margin.right); y = (_local6 + margin.top); break; case Align.bottomLeft: x = (_local5 + margin.left); y = (((_local6 + _local3) - forcedHeight) - margin.bottom); break; case Align.bottomRight: x = (((_local5 + _local4) - forcedWidth) - margin.right); y = (((_local6 + _local3) - forcedHeight) - margin.bottom); break; }; if (((!(listenResize)) && (!((_arg1 == Align.none))))){ _arg2.addEventListener(Event.RESIZE, onResize, false, 0, true); listenResize = true; }; this.alignement = _arg1; this.alignTarget = _arg2; } private function _onRemovedFromStage(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage); removeEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage); dispose(); } public function resize():void{ if (alignement != Align.none){ alignTo(alignement, alignTarget); }; } protected function onResize(_arg1:Event):void{ resize(); } } }//package com.google.analytics.debug
Section 140
//Warning (com.google.analytics.debug.Warning) package com.google.analytics.debug { import flash.events.*; import flash.utils.*; public class Warning extends Label { private var _timer:Timer; public function Warning(_arg1:String="", _arg2:uint=3000){ super(_arg1, "uiWarning", Style.warningColor, Align.top, false); margin.top = 32; if (_arg2 > 0){ _timer = new Timer(_arg2, 1); _timer.start(); _timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true); }; } public function close():void{ if (parent != null){ parent.removeChild(this); }; } override public function onLink(_arg1:TextEvent):void{ switch (_arg1.text){ case "hide": close(); break; }; } public function onComplete(_arg1:TimerEvent):void{ close(); } } }//package com.google.analytics.debug
Section 141
//VisualDebugMode (com.google.analytics.debug.VisualDebugMode) package com.google.analytics.debug { public class VisualDebugMode { private var _value:int; private var _name:String; public static const advanced:VisualDebugMode = new VisualDebugMode(1, "advanced"); ; public static const geek:VisualDebugMode = new VisualDebugMode(2, "geek"); ; public static const basic:VisualDebugMode = new VisualDebugMode(0, "basic"); ; public function VisualDebugMode(_arg1:int=0, _arg2:String=""){ _value = _arg1; _name = _arg2; } public function valueOf():int{ return (_value); } public function toString():String{ return (_name); } } }//package com.google.analytics.debug
Section 142
//AnalyticsEvent (com.google.analytics.events.AnalyticsEvent) package com.google.analytics.events { import flash.events.*; import com.google.analytics.*; public class AnalyticsEvent extends Event { public var tracker:AnalyticsTracker; public static const READY:String = "ready"; public function AnalyticsEvent(_arg1:String, _arg2:AnalyticsTracker, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); this.tracker = _arg2; } override public function clone():Event{ return (new AnalyticsEvent(type, tracker, bubbles, cancelable)); } } }//package com.google.analytics.events
Section 143
//AdSenseGlobals (com.google.analytics.external.AdSenseGlobals) package com.google.analytics.external { import com.google.analytics.debug.*; public class AdSenseGlobals extends JavascriptProxy { private var _gaGlobalVerified:Boolean;// = false public static var gaGlobal_js:XML = <script> <![CDATA[ function() { try { gaGlobal } catch(e) { gaGlobal = {} ; } } ]]> </script> ; public function AdSenseGlobals(_arg1:DebugConfiguration){ super(_arg1); } public function set vid(_arg1:String):void{ if (!isAvailable()){ return; }; _verify(); setProperty("gaGlobal.vid", _arg1); } public function get hid():String{ if (!isAvailable()){ return (null); }; _verify(); return (getProperty("gaGlobal.hid")); } public function set hid(_arg1:String):void{ if (!isAvailable()){ return; }; _verify(); setProperty("gaGlobal.hid", _arg1); } public function get dh():String{ if (!isAvailable()){ return (null); }; _verify(); return (getProperty("gaGlobal.dh")); } public function get sid():String{ if (!isAvailable()){ return (null); }; _verify(); return (getProperty("gaGlobal.sid")); } public function get vid():String{ if (!isAvailable()){ return (null); }; _verify(); return (getProperty("gaGlobal.vid")); } private function _verify():void{ if (!_gaGlobalVerified){ executeBlock(gaGlobal_js); _gaGlobalVerified = true; }; } public function set sid(_arg1:String):void{ if (!isAvailable()){ return; }; _verify(); setProperty("gaGlobal.sid", _arg1); } public function get gaGlobal():Object{ if (!isAvailable()){ return (null); }; _verify(); return (getProperty("gaGlobal")); } } }//package com.google.analytics.external
Section 144
//HTMLDOM (com.google.analytics.external.HTMLDOM) package com.google.analytics.external { import com.google.analytics.debug.*; public class HTMLDOM extends JavascriptProxy { private var _referrer:String; private var _language:String; private var _host:String; private var _pathname:String; private var _location:String; private var _search:String; private var _characterSet:String; private var _title:String; private var _protocol:String; private var _colorDepth:String; public static var cache_properties_js:XML = <script> <![CDATA[ function() { var obj = {}; obj.host = document.location.host; obj.language = navigator.language ? navigator.language : navigator.browserLanguage; obj.characterSet = document.characterSet ? document.characterSet : document.charset; obj.colorDepth = window.screen.colorDepth; obj.location = document.location.toString(); obj.pathname = document.location.pathname; obj.protocol = document.location.protocol; obj.search = document.location.search; obj.referrer = document.referrer; obj.title = document.title; return obj; } ]]> </script> ; public function HTMLDOM(_arg1:DebugConfiguration){ super(_arg1); } public function get search():String{ if (_search){ return (_search); }; if (!isAvailable()){ return (null); }; _search = getProperty("document.location.search"); return (_search); } public function get location():String{ if (_location){ return (_location); }; if (!isAvailable()){ return (null); }; _location = getPropertyString("document.location"); return (_location); } public function get pathname():String{ if (_pathname){ return (_pathname); }; if (!isAvailable()){ return (null); }; _pathname = getProperty("document.location.pathname"); return (_pathname); } public function cacheProperties():void{ if (!isAvailable()){ return; }; var _local1:Object = call(cache_properties_js); if (_local1){ _host = _local1.host; _language = _local1.language; _characterSet = _local1.characterSet; _colorDepth = _local1.colorDepth; _location = _local1.location; _pathname = _local1.pathname; _protocol = _local1.protocol; _search = _local1.search; _referrer = _local1.referrer; _title = _local1.title; }; } public function get language():String{ if (_language){ return (_language); }; if (!isAvailable()){ return (null); }; var _local1:String = getProperty("navigator.language"); if (_local1 == null){ _local1 = getProperty("navigator.browserLanguage"); }; _language = _local1; return (_language); } public function get colorDepth():String{ if (_colorDepth){ return (_colorDepth); }; if (!isAvailable()){ return (null); }; _colorDepth = getProperty("window.screen.colorDepth"); return (_colorDepth); } public function get referrer():String{ if (_referrer){ return (_referrer); }; if (!isAvailable()){ return (null); }; _referrer = getProperty("document.referrer"); return (_referrer); } public function get protocol():String{ if (_protocol){ return (_protocol); }; if (!isAvailable()){ return (null); }; _protocol = getProperty("document.location.protocol"); return (_protocol); } public function get host():String{ if (_host){ return (_host); }; if (!isAvailable()){ return (null); }; _host = getProperty("document.location.host"); return (_host); } public function get characterSet():String{ if (_characterSet){ return (_characterSet); }; if (!isAvailable()){ return (null); }; var _local1:String = getProperty("document.characterSet"); if (_local1 == null){ _local1 = getProperty("document.charset"); }; _characterSet = _local1; return (_characterSet); } public function get title():String{ if (_title){ return (_title); }; if (!isAvailable()){ return (null); }; _title = getProperty("document.title"); return (_title); } } }//package com.google.analytics.external
Section 145
//JavascriptProxy (com.google.analytics.external.JavascriptProxy) package com.google.analytics.external { import com.google.analytics.debug.*; import flash.external.*; import flash.system.*; public class JavascriptProxy { private var _notAvailableWarning:Boolean;// = true private var _debug:DebugConfiguration; public static var setProperty_js:XML = <script> <![CDATA[ function( path , value ) { var paths; var prop; if( path.indexOf(".") > 0 ) { paths = path.split("."); prop = paths.pop() ; } else { paths = []; prop = path; } var target = window ; var len = paths.length ; for( var i = 0 ; i < len ; i++ ) { target = target[ paths[i] ] ; } target[ prop ] = value ; } ]]> </script> ; public static var hasProperty_js:XML = <script> <![CDATA[ function( path ) { var paths; if( path.indexOf(".") > 0 ) { paths = path.split("."); } else { paths = [path]; } var target = window ; var len = paths.length ; for( var i = 0 ; i < len ; i++ ) { target = target[ paths[i] ] ; } if( target ) { return true; } else { return false; } } ]]> </script> ; public static var setPropertyRef_js:XML = <script> <![CDATA[ function( path , target ) { var paths; var prop; if( path.indexOf(".") > 0 ) { paths = path.split("."); prop = paths.pop() ; } else { paths = []; prop = path; } alert( "paths:"+paths.length+", prop:"+prop ); var targets; var name; if( target.indexOf(".") > 0 ) { targets = target.split("."); name = targets.pop(); } else { targets = []; name = target; } alert( "targets:"+targets.length+", name:"+name ); var root = window; var len = paths.length; for( var i = 0 ; i < len ; i++ ) { root = root[ paths[i] ] ; } var ref = window; var depth = targets.length; for( var j = 0 ; j < depth ; j++ ) { ref = ref[ targets[j] ] ; } root[ prop ] = ref[name] ; } ]]> </script> ; public function JavascriptProxy(_arg1:DebugConfiguration){ _debug = _arg1; } public function getProperty(_arg1:String){ return (call((_arg1 + ".valueOf"))); } public function hasProperty(_arg1:String):Boolean{ return (call(hasProperty_js, _arg1)); } public function setProperty(_arg1:String, _arg2):void{ call(setProperty_js, _arg1, _arg2); } public function executeBlock(_arg1:String):void{ var data = _arg1; if (isAvailable()){ try { ExternalInterface.call(data); } catch(e:SecurityError) { if (_debug.javascript){ _debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML."); }; } catch(e:Error) { if (_debug.javascript){ _debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message)); }; }; }; } public function getPropertyString(_arg1:String):String{ return (call((_arg1 + ".toString"))); } public function setPropertyByReference(_arg1:String, _arg2:String):void{ call(setPropertyRef_js, _arg1, _arg2); } public function call(_arg1:String, ... _args){ var output:String; var functionName = _arg1; var args = _args; if (isAvailable()){ try { if (((_debug.javascript) && (_debug.verbose))){ output = ""; output = ("Flash->JS: " + functionName); output = (output + "( "); if (args.length > 0){ output = (output + args.join(",")); }; output = (output + " )"); _debug.info(output); }; args.unshift(functionName); return (ExternalInterface.call.apply(ExternalInterface, args)); } catch(e:SecurityError) { if (_debug.javascript){ _debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML."); }; } catch(e:Error) { if (_debug.javascript){ _debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message)); }; }; }; return (null); } public function isAvailable():Boolean{ var _local1:Boolean = ExternalInterface.available; if (((_local1) && ((Capabilities.playerType == "External")))){ _local1 = false; }; if (((((!(_local1)) && (_debug.javascript))) && (_notAvailableWarning))){ _debug.warning("ExternalInterface is not available."); _notAvailableWarning = false; }; return (_local1); } } }//package com.google.analytics.external
Section 146
//Environment (com.google.analytics.utils.Environment) package com.google.analytics.utils { import com.google.analytics.debug.*; import com.google.analytics.external.*; import flash.system.*; public class Environment { private var _dom:HTMLDOM; private var _appName:String; private var _debug:DebugConfiguration; private var _appVersion:Version; private var _url:String; private var _protocol:Protocols; private var _userAgent:UserAgent; public function Environment(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:DebugConfiguration=null, _arg5:HTMLDOM=null){ var _local6:Version; super(); if (_arg2 == ""){ if (isAIR()){ _arg2 = "AIR"; } else { _arg2 = "Flash"; }; }; if (_arg3 == ""){ _local6 = flashVersion; } else { _local6 = Version.fromString(_arg3); }; _url = _arg1; _appName = _arg2; _appVersion = _local6; _debug = _arg4; _dom = _arg5; } public function isAIR():Boolean{ return ((((playerType == "Desktop")) && ((Security.sandboxType.toString() == "application")))); } public function get screenWidth():Number{ return (Capabilities.screenResolutionX); } public function get playerType():String{ return (Capabilities.playerType); } public function get locationSearch():String{ var _local1:String = _dom.search; if (_local1){ return (_local1); }; return (""); } public function get protocol():Protocols{ if (!_protocol){ _findProtocol(); }; return (_protocol); } public function get flashVersion():Version{ var _local1:Version = Version.fromString(Capabilities.version.split(" ")[1], ","); return (_local1); } public function get userAgent():UserAgent{ if (!_userAgent){ _userAgent = new UserAgent(this, appName, appVersion.toString(4)); }; return (_userAgent); } public function get languageEncoding():String{ var _local1:String; if (System.useCodePage){ _local1 = _dom.characterSet; if (_local1){ return (_local1); }; return ("-"); }; return ("UTF-8"); } public function get appName():String{ return (_appName); } public function get screenColorDepth():String{ var _local1:String; switch (Capabilities.screenColor){ case "bw": _local1 = "1"; break; case "gray": _local1 = "2"; break; case "color": default: _local1 = "24"; }; var _local2:String = _dom.colorDepth; if (_local2){ _local1 = _local2; }; return (_local1); } private function _findProtocol():void{ var _local4:String; var _local5:String; var _local1:Protocols = Protocols.none; if (_url != ""){ _local4 = _url.toLowerCase(); _local5 = _local4.substr(0, 5); switch (_local5){ case "file:": _local1 = Protocols.file; break; case "http:": _local1 = Protocols.HTTP; break; case "https": if (_local4.charAt(5) == ":"){ _local1 = Protocols.HTTPS; }; break; default: _protocol = Protocols.none; }; }; var _local2:String = _dom.protocol; var _local3:String = (_local1.toString() + ":").toLowerCase(); if (((((_local2) && (!((_local2 == _local3))))) && (_debug))){ _debug.warning(((("Protocol mismatch: SWF=" + _local3) + ", DOM=") + _local2)); }; _protocol = _local1; } public function get locationSWFPath():String{ return (_url); } public function get platform():String{ var _local1:String = Capabilities.manufacturer; return (_local1.split("Adobe ")[1]); } public function get operatingSystem():String{ return (Capabilities.os); } public function set appName(_arg1:String):void{ _appName = _arg1; userAgent.applicationProduct = _arg1; } function set url(_arg1:String):void{ _url = _arg1; } public function get referrer():String{ var _local1:String = _dom.referrer; if (_local1){ return (_local1); }; if (protocol == Protocols.file){ return ("localhost"); }; return (""); } public function isInHTML():Boolean{ return ((Capabilities.playerType == "PlugIn")); } public function get language():String{ var _local1:String = _dom.language; var _local2:String = Capabilities.language; if (_local1){ if ((((_local1.length > _local2.length)) && ((_local1.substr(0, _local2.length) == _local2)))){ _local2 = _local1; }; }; return (_local2); } public function get domainName():String{ var _local1:String; var _local2:String; var _local3:int; if ((((protocol == Protocols.HTTP)) || ((protocol == Protocols.HTTPS)))){ _local1 = _url.toLowerCase(); if (protocol == Protocols.HTTP){ _local2 = _local1.split("http://").join(""); } else { if (protocol == Protocols.HTTPS){ _local2 = _local1.split("https://").join(""); }; }; _local3 = _local2.indexOf("/"); if (_local3 > -1){ _local2 = _local2.substring(0, _local3); }; return (_local2); }; if (protocol == Protocols.file){ return ("localhost"); }; return (""); } public function set userAgent(_arg1:UserAgent):void{ _userAgent = _arg1; } public function set appVersion(_arg1:Version):void{ _appVersion = _arg1; userAgent.applicationVersion = _arg1.toString(4); } public function get screenHeight():Number{ return (Capabilities.screenResolutionY); } public function get locationPath():String{ var _local1:String = _dom.pathname; if (_local1){ return (_local1); }; return (""); } public function get documentTitle():String{ var _local1:String = _dom.title; if (_local1){ return (_local1); }; return (""); } public function get appVersion():Version{ return (_appVersion); } } }//package com.google.analytics.utils
Section 147
//Protocols (com.google.analytics.utils.Protocols) package com.google.analytics.utils { public class Protocols { private var _value:int; private var _name:String; public static const none:Protocols = new Protocols(0, "none"); ; public static const HTTPS:Protocols = new Protocols(3, "HTTPS"); ; public static const file:Protocols = new Protocols(1, "file"); ; public static const HTTP:Protocols = new Protocols(2, "HTTP"); ; public function Protocols(_arg1:int=0, _arg2:String=""){ _value = _arg1; _name = _arg2; } public function valueOf():int{ return (_value); } public function toString():String{ return (_name); } } }//package com.google.analytics.utils
Section 148
//Timespan (com.google.analytics.utils.Timespan) package com.google.analytics.utils { public class Timespan { public static var sixmonths:Number = 15768000; public static var twoyears:Number = 63072000; public static var thirtyminutes:Number = 1800; } }//package com.google.analytics.utils
Section 149
//URL (com.google.analytics.utils.URL) package com.google.analytics.utils { public class URL { private var _url:String; public function URL(_arg1:String=""){ _url = _arg1.toLowerCase(); } public function get domain():String{ var _local1:Array; if (((!((hostName == ""))) && ((hostName.indexOf(".") > -1)))){ _local1 = hostName.split("."); switch (_local1.length){ case 2: return (hostName); case 3: if (_local1[1] == "co"){ return (hostName); }; _local1.shift(); return (_local1.join(".")); case 4: _local1.shift(); return (_local1.join(".")); }; }; return (""); } public function get path():String{ var _local1:String = _url; if (_local1.indexOf("://") > -1){ _local1 = _local1.split("://")[1]; }; if (_local1.indexOf(hostName) == 0){ _local1 = _local1.substr(hostName.length); }; if (_local1.indexOf("?") > -1){ _local1 = _local1.split("?")[0]; }; if (_local1.charAt(0) != "/"){ _local1 = ("/" + _local1); }; return (_local1); } public function get protocol():Protocols{ var _local1:String = _url.split("://")[0]; switch (_local1){ case "file": return (Protocols.file); case "http": return (Protocols.HTTP); case "https": return (Protocols.HTTPS); default: return (Protocols.none); }; } public function get hostName():String{ var _local1:String = _url; if (_local1.indexOf("://") > -1){ _local1 = _local1.split("://")[1]; }; if (_local1.indexOf("/") > -1){ _local1 = _local1.split("/")[0]; }; if (_local1.indexOf("?") > -1){ _local1 = _local1.split("?")[0]; }; if ((((protocol == Protocols.file)) || ((protocol == Protocols.none)))){ return (""); }; return (_local1); } public function get subDomain():String{ if (((!((domain == ""))) && (!((domain == hostName))))){ return (hostName.split(("." + domain)).join("")); }; return (""); } public function get search():String{ var _local1:String = _url; if (_local1.indexOf("://") > -1){ _local1 = _local1.split("://")[1]; }; if (_local1.indexOf(hostName) == 0){ _local1 = _local1.substr(hostName.length); }; if (_local1.indexOf("?") > -1){ _local1 = _local1.split("?")[1]; } else { _local1 = ""; }; return (_local1); } } }//package com.google.analytics.utils
Section 150
//UserAgent (com.google.analytics.utils.UserAgent) package com.google.analytics.utils { import com.google.analytics.core.*; import flash.system.*; public class UserAgent { private var _localInfo:Environment; private var _applicationProduct:String; private var _version:Version; public static var minimal:Boolean = false; public function UserAgent(_arg1:Environment, _arg2:String="", _arg3:String=""){ _localInfo = _arg1; applicationProduct = _arg2; _version = Version.fromString(_arg3); } public function get tamarinProductToken():String{ if (UserAgent.minimal){ return (""); }; if (System.vmVersion){ return (("Tamarin/" + Utils.trim(System.vmVersion, true))); }; return (""); } public function get applicationVersion():String{ return (_version.toString(2)); } public function get vendorProductToken():String{ var _local1 = ""; if (_localInfo.isAIR()){ _local1 = (_local1 + "AIR"); } else { _local1 = (_local1 + "FlashPlayer"); }; _local1 = (_local1 + "/"); _local1 = (_local1 + _version.toString(3)); return (_local1); } public function toString():String{ var _local1 = ""; _local1 = (_local1 + applicationProductToken); if (applicationComment != ""){ _local1 = (_local1 + (" " + applicationComment)); }; if (tamarinProductToken != ""){ _local1 = (_local1 + (" " + tamarinProductToken)); }; if (vendorProductToken != ""){ _local1 = (_local1 + (" " + vendorProductToken)); }; return (_local1); } public function get applicationComment():String{ var _local1:Array = []; _local1.push(_localInfo.platform); _local1.push(_localInfo.playerType); if (!UserAgent.minimal){ _local1.push(_localInfo.operatingSystem); _local1.push(_localInfo.language); }; if (Capabilities.isDebugger){ _local1.push("DEBUG"); }; if (_local1.length > 0){ return ((("(" + _local1.join("; ")) + ")")); }; return (""); } public function set applicationVersion(_arg1:String):void{ _version = Version.fromString(_arg1); } public function get applicationProductToken():String{ var _local1:String = applicationProduct; if (applicationVersion != ""){ _local1 = (_local1 + ("/" + applicationVersion)); }; return (_local1); } public function set applicationProduct(_arg1:String):void{ _applicationProduct = _arg1; } public function get applicationProduct():String{ return (_applicationProduct); } } }//package com.google.analytics.utils
Section 151
//Variables (com.google.analytics.utils.Variables) package com.google.analytics.utils { import flash.net.*; public dynamic class Variables { public var post:Array; public var URIencode:Boolean; public var pre:Array; public var sort:Boolean;// = true public function Variables(_arg1:String=null, _arg2:Array=null, _arg3:Array=null){ pre = []; post = []; super(); if (_arg1){ decode(_arg1); }; if (_arg2){ this.pre = _arg2; }; if (_arg3){ this.post = _arg3; }; } private function _join(_arg1:Variables):void{ var _local2:String; if (!_arg1){ return; }; for (_local2 in _arg1) { this[_local2] = _arg1[_local2]; }; } public function join(... _args):void{ var _local2:int = _args.length; var _local3:int; while (_local3 < _local2) { if (!(_args[_local3] is Variables)){ } else { _join(_args[_local3]); }; _local3++; }; } public function toString():String{ var _local2:String; var _local3:String; var _local4:String; var _local5:int; var _local6:int; var _local7:String; var _local8:String; var _local1:Array = []; for (_local3 in this) { _local2 = this[_local3]; if (URIencode){ _local2 = encodeURI(_local2); }; _local1.push(((_local3 + "=") + _local2)); }; if (sort){ _local1.sort(); }; if (pre.length > 0){ pre.reverse(); _local5 = 0; while (_local5 < pre.length) { _local7 = pre[_local5]; _local6 = 0; while (_local6 < _local1.length) { _local4 = _local1[_local6]; if (_local4.indexOf(_local7) == 0){ _local1.unshift(_local1.splice(_local6, 1)[0]); }; _local6++; }; _local5++; }; pre.reverse(); }; if (post.length > 0){ _local5 = 0; while (_local5 < post.length) { _local8 = post[_local5]; _local6 = 0; while (_local6 < _local1.length) { _local4 = _local1[_local6]; if (_local4.indexOf(_local8) == 0){ _local1.push(_local1.splice(_local6, 1)[0]); }; _local6++; }; _local5++; }; }; return (_local1.join("&")); } public function decode(_arg1:String):void{ var _local2:Array; var _local3:String; var _local4:String; var _local5:String; var _local6:Array; if (_arg1 == ""){ return; }; if (_arg1.indexOf("&") > -1){ _local2 = _arg1.split("&"); } else { _local2 = [_arg1]; }; var _local7:int; while (_local7 < _local2.length) { _local3 = _local2[_local7]; if (_local3.indexOf("=") > -1){ _local6 = _local3.split("="); _local4 = _local6[0]; _local5 = decodeURI(_local6[1]); this[_local4] = _local5; }; _local7++; }; } public function toURLVariables():URLVariables{ var _local2:String; var _local1:URLVariables = new URLVariables(); for (_local2 in this) { _local1[_local2] = this[_local2]; }; return (_local1); } } }//package com.google.analytics.utils
Section 152
//Version (com.google.analytics.utils.Version) package com.google.analytics.utils { public class Version { private var _revision:uint; private var _maxBuild:uint;// = 0xFF private var _maxMinor:uint;// = 15 private var _maxMajor:uint;// = 15 private var _separator:String;// = "." private var _maxRevision:uint;// = 0xFFFF private var _build:uint; private var _major:uint; private var _minor:uint; public function Version(_arg1:uint=0, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0){ var _local5:Version; super(); if ((((((((_arg1 > _maxMajor)) && ((_arg2 == 0)))) && ((_arg3 == 0)))) && ((_arg4 == 0)))){ _local5 = Version.fromNumber(_arg1); _arg1 = _local5.major; _arg2 = _local5.minor; _arg3 = _local5.build; _arg4 = _local5.revision; }; this.major = _arg1; this.minor = _arg2; this.build = _arg3; this.revision = _arg4; } public function toString(_arg1:int=0):String{ var _local2:Array; if ((((_arg1 <= 0)) || ((_arg1 > 4)))){ _arg1 = getFields(); }; switch (_arg1){ case 1: _local2 = [major]; break; case 2: _local2 = [major, minor]; break; case 3: _local2 = [major, minor, build]; break; case 4: default: _local2 = [major, minor, build, revision]; }; return (_local2.join(_separator)); } public function set revision(_arg1:uint):void{ _revision = Math.min(_arg1, _maxRevision); } public function get revision():uint{ return (_revision); } public function set build(_arg1:uint):void{ _build = Math.min(_arg1, _maxBuild); } public function set minor(_arg1:uint):void{ _minor = Math.min(_arg1, _maxMinor); } public function get build():uint{ return (_build); } public function set major(_arg1:uint):void{ _major = Math.min(_arg1, _maxMajor); } public function get minor():uint{ return (_minor); } private function getFields():int{ var _local1 = 4; if (revision == 0){ _local1--; }; if ((((_local1 == 3)) && ((build == 0)))){ _local1--; }; if ((((_local1 == 2)) && ((minor == 0)))){ _local1--; }; return (_local1); } public function valueOf():uint{ return (((((major << 28) | (minor << 24)) | (build << 16)) | revision)); } public function get major():uint{ return (_major); } public function equals(_arg1):Boolean{ if (!(_arg1 is Version)){ return (false); }; if ((((((((_arg1.major == major)) && ((_arg1.minor == minor)))) && ((_arg1.build == build)))) && ((_arg1.revision == revision)))){ return (true); }; return (false); } public static function fromString(_arg1:String="", _arg2:String="."):Version{ var _local4:Array; var _local3:Version = new (Version); if ((((_arg1 == "")) || ((_arg1 == null)))){ return (_local3); }; if (_arg1.indexOf(_arg2) > -1){ _local4 = _arg1.split(_arg2); _local3.major = parseInt(_local4[0]); _local3.minor = parseInt(_local4[1]); _local3.build = parseInt(_local4[2]); _local3.revision = parseInt(_local4[3]); } else { _local3.major = parseInt(_arg1); }; return (_local3); } public static function fromNumber(_arg1:Number=0):Version{ var _local2:Version = new (Version); if (((((((((((isNaN(_arg1)) || ((_arg1 == 0)))) || ((_arg1 < 0)))) || ((_arg1 == Number.MAX_VALUE)))) || ((_arg1 == Number.POSITIVE_INFINITY)))) || ((_arg1 == Number.NEGATIVE_INFINITY)))){ return (_local2); }; _local2.major = (_arg1 >>> 28); _local2.minor = ((_arg1 & 251658240) >>> 24); _local2.build = ((_arg1 & 0xFF0000) >>> 16); _local2.revision = (_arg1 & 0xFFFF); return (_local2); } } }//package com.google.analytics.utils
Section 153
//Bridge (com.google.analytics.v4.Bridge) package com.google.analytics.v4 { import com.google.analytics.core.*; import com.google.analytics.debug.*; import com.google.analytics.external.*; public class Bridge implements GoogleAnalyticsAPI { private var _debug:DebugConfiguration; private var _proxy:JavascriptProxy; private var _jsContainer:String;// = "_GATracker" private var _hasGATracker:Boolean;// = false private var _account:String; private static var _linkTrackingObject_js:XML = <script> <![CDATA[ function( container , target ) { var targets ; var name ; if( target.indexOf(".") > 0 ) { targets = target.split("."); name = targets.pop(); } else { targets = []; name = target; } var ref = window; var depth = targets.length; for( var j = 0 ; j < depth ; j++ ) { ref = ref[ targets[j] ] ; } window[container][target] = ref[name] ; } ]]> </script> ; private static var _createTrackingObject_js:XML = <script> <![CDATA[ function( acct ) { _GATracker[acct] = _gat._getTracker(acct); } ]]> </script> ; private static var _injectTrackingObject_js:XML = <script> <![CDATA[ function() { try { _GATracker } catch(e) { _GATracker = {}; } } ]]> </script> ; private static var _checkGAJS_js:XML = <script> <![CDATA[ function() { if( _gat && _gat._getTracker ) { return true; } return false; } ]]> </script> ; private static var _checkValidTrackingObject_js:XML = <script> <![CDATA[ function(acct) { if( _GATracker[acct] && (_GATracker[acct]._getAccount) ) { return true ; } else { return false; } } ]]> </script> ; public function Bridge(_arg1:String, _arg2:DebugConfiguration, _arg3:JavascriptProxy){ var _local4:String; var _local5:String; var _local6:String; super(); _account = _arg1; _debug = _arg2; _proxy = _arg3; if (!_checkGAJS()){ _local4 = ""; _local4 = (_local4 + "ga.js not found, be sure to check if\n"); _local4 = (_local4 + "<script src=\"http://www.google-analytics.com/ga.js\"></script>\n"); _local4 = (_local4 + "is included in the HTML."); _debug.warning(_local4); throw (new Error(_local4)); }; if (!_hasGATracker){ if (((_debug.javascript) && (_debug.verbose))){ _local5 = ""; _local5 = (_local5 + "The Google Analytics tracking code was not found on the container page\n"); _local5 = (_local5 + "we create it"); _debug.info(_local5, VisualDebugMode.advanced); }; _injectTrackingObject(); }; if (Utils.validateAccount(_arg1)){ _createTrackingObject(_arg1); } else { if (_checkTrackingObject(_arg1)){ _linkTrackingObject(_arg1); } else { _local6 = ""; _local6 = (_local6 + (("JS Object \"" + _arg1) + "\" doesn't exist in DOM\n")); _local6 = (_local6 + "Bridge object not created."); _debug.warning(_local6); throw (new Error(_local6)); }; }; } public function link(_arg1:String, _arg2:Boolean=false):void{ _debug.info((((("link( " + _arg1) + ", ") + _arg2) + " )")); _call("_link", _arg1, _arg2); } public function addOrganic(_arg1:String, _arg2:String):void{ _debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )")); _call("_addOrganic", _arg1); } public function setAllowLinker(_arg1:Boolean):void{ _debug.info((("setAllowLinker( " + _arg1) + " )")); _call("_setAllowLinker", _arg1); } private function _linkTrackingObject(_arg1:String):void{ _proxy.call(_linkTrackingObject_js, _jsContainer, _arg1); } public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{ var _local5 = 2; if (((_arg3) && (!((_arg3 == ""))))){ _local5 = 3; }; if ((((_local5 == 3)) && (!(isNaN(_arg4))))){ _local5 = 4; }; switch (_local5){ case 4: _debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )")); return (_call("_trackEvent", _arg1, _arg2, _arg3, _arg4)); case 3: _debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )")); return (_call("_trackEvent", _arg1, _arg2, _arg3)); case 2: default: _debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )")); return (_call("_trackEvent", _arg1, _arg2)); }; } public function setClientInfo(_arg1:Boolean):void{ _debug.info((("setClientInfo( " + _arg1) + " )")); _call("_setClientInfo", _arg1); } public function trackTrans():void{ _debug.info("trackTrans()"); _call("_trackTrans"); } public function setCookieTimeout(_arg1:int):void{ _debug.info((("setCookieTimeout( " + _arg1) + " )")); _call("_setCookieTimeout", _arg1); } public function trackPageview(_arg1:String=""):void{ _debug.info((("trackPageview( " + _arg1) + " )")); _call("_trackPageview", _arg1); } public function getClientInfo():Boolean{ _debug.info("getClientInfo()"); return (_call("_getClientInfo")); } private function _checkValidTrackingObject(_arg1:String):Boolean{ return (_proxy.call(_checkValidTrackingObject_js, _arg1)); } private function _checkGAJS():Boolean{ return (_proxy.call(_checkGAJS_js)); } public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{ _debug.warning((((("linkByPost( " + _arg1) + ", ") + _arg2) + " ) not implemented")); } private function _call(_arg1:String, ... _args){ _args.unshift(((((("window." + _jsContainer) + "[\"") + _account) + "\"].") + _arg1)); return (_proxy.call.apply(_proxy, _args)); } public function hasGAJS():Boolean{ return (_checkGAJS()); } private function _checkTrackingObject(_arg1:String):Boolean{ var _local2:Boolean = _proxy.hasProperty(_arg1); var _local3:Boolean = _proxy.hasProperty((_arg1 + "._getAccount")); return (((_local2) && (_local3))); } public function resetSession():void{ _debug.warning("resetSession() not implemented"); } public function getDetectTitle():Boolean{ _debug.info("getDetectTitle()"); return (_call("_getDetectTitle")); } public function setCampNameKey(_arg1:String):void{ _debug.info((("setCampNameKey( " + _arg1) + " )")); _call("_setCampNameKey", _arg1); } public function setDetectFlash(_arg1:Boolean):void{ _debug.info((("setDetectFlash( " + _arg1) + " )")); _call("_setDetectFlash", _arg1); } public function createEventTracker(_arg1:String):EventTracker{ _debug.info((("createEventTracker( " + _arg1) + " )")); return (new EventTracker(_arg1, this)); } public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{ _debug.info((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " )")); _call("_addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } public function clearIgnoredOrganic():void{ _debug.info("clearIgnoredOrganic()"); _call("_clearIgnoreOrganic"); } public function setVar(_arg1:String):void{ _debug.info((("setVar( " + _arg1) + " )")); _call("_setVar", _arg1); } public function setDomainName(_arg1:String):void{ _debug.info((("setDomainName( " + _arg1) + " )")); _call("_setDomainName", _arg1); } public function hasTrackingAccount(_arg1:String):Boolean{ if (Utils.validateAccount(_arg1)){ return (_checkValidTrackingObject(_arg1)); }; return (_checkTrackingObject(_arg1)); } public function setCampSourceKey(_arg1:String):void{ _debug.info((("setCampSourceKey( " + _arg1) + " )")); _call("_setCampSourceKey", _arg1); } public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{ _debug.info((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " )")); _call("_addTrans", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8); return (null); } public function setCampContentKey(_arg1:String):void{ _debug.info((("setCampContentKey( " + _arg1) + " )")); _call("_setCampContentKey", _arg1); } public function setLocalServerMode():void{ _debug.info("setLocalServerMode()"); _call("_setLocalServerMode"); } public function getLocalGifPath():String{ _debug.info("getLocalGifPath()"); return (_call("_getLocalGifPath")); } public function clearIgnoredRef():void{ _debug.info("clearIgnoredRef()"); _call("_clearIgnoreRef"); } public function setAllowAnchor(_arg1:Boolean):void{ _debug.info((("setAllowAnchor( " + _arg1) + " )")); _call("_setAllowAnchor", _arg1); } public function setLocalGifPath(_arg1:String):void{ _debug.info((("setLocalGifPath( " + _arg1) + " )")); _call("_setLocalGifPath", _arg1); } public function getVersion():String{ _debug.info("getVersion()"); return (_call("_getVersion")); } private function _injectTrackingObject():void{ _proxy.executeBlock(_injectTrackingObject_js); _hasGATracker = true; } public function setCookiePath(_arg1:String):void{ _debug.info((("setCookiePath( " + _arg1) + " )")); _call("_setCookiePath", _arg1); } public function setSampleRate(_arg1:Number):void{ _debug.info((("setSampleRate( " + _arg1) + " )")); _call("_setSampleRate", _arg1); } public function setAllowHash(_arg1:Boolean):void{ _debug.info((("setAllowHash( " + _arg1) + " )")); _call("_setAllowHash", _arg1); } public function addIgnoredOrganic(_arg1:String):void{ _debug.info((("addIgnoredOrganic( " + _arg1) + " )")); _call("_addIgnoredOrganic", _arg1); } public function setCampNOKey(_arg1:String):void{ _debug.info((("setCampNOKey( " + _arg1) + " )")); _call("_setCampNOKey", _arg1); } public function cookiePathCopy(_arg1:String):void{ _debug.info((("cookiePathCopy( " + _arg1) + " )")); _call("_cookiePathCopy", _arg1); } public function setLocalRemoteServerMode():void{ _debug.info("setLocalRemoteServerMode()"); _call("_setLocalRemoteServerMode"); } public function getServiceMode():ServerOperationMode{ _debug.info("getServiceMode()"); return (_call("_getServiceMode")); } public function setDetectTitle(_arg1:Boolean):void{ _debug.info((("setDetectTitle( " + _arg1) + " )")); _call("_setDetectTitle", _arg1); } private function _createTrackingObject(_arg1:String):void{ _proxy.call(_createTrackingObject_js, _arg1); } public function setCampaignTrack(_arg1:Boolean):void{ _debug.info((("setCampaignTrack( " + _arg1) + " )")); _call("_setCampaignTrack", _arg1); } public function clearOrganic():void{ _debug.info("clearOrganic()"); _call("_clearOrganic"); } public function setCampTermKey(_arg1:String):void{ _debug.info((("setCampTermKey( " + _arg1) + " )")); _call("_setCampTermKey", _arg1); } public function getDetectFlash():Boolean{ _debug.info("getDetectFlash()"); return (_call("_getDetectFlash")); } public function setCampMediumKey(_arg1:String):void{ _debug.info((("setCampMediumKey( " + _arg1) + " )")); _call("_setCampMediumKey", _arg1); } public function addIgnoredRef(_arg1:String):void{ _debug.info((("addIgnoredRef( " + _arg1) + " )")); _call("_addIgnoredRef", _arg1); } public function setSessionTimeout(_arg1:int):void{ _debug.info((("setSessionTimeout( " + _arg1) + " )")); _call("_setSessionTimeout", _arg1); } public function setRemoteServerMode():void{ _debug.info("setRemoteServerMode()"); _call("_setRemoteServerMode"); } public function getAccount():String{ _debug.info("getAccount()"); return (_call("_getAccount")); } } }//package com.google.analytics.v4
Section 154
//Configuration (com.google.analytics.v4.Configuration) package com.google.analytics.v4 { import com.google.analytics.core.*; import com.google.analytics.debug.*; import com.google.analytics.utils.*; import com.google.analytics.campaign.*; public class Configuration { public var serverMode:ServerOperationMode; public var detectFlash:Boolean;// = true public var hasSiteOverlay:Boolean;// = false public var allowLocalTracking:Boolean;// = true public var secureRemoteGIFpath:String;// = "https://ssl.google-analytics.com/__utm.gif" private var _version:String;// = "4.3as" public var allowDomainHash:Boolean;// = true public var detectClientInfo:Boolean;// = true public var idleLoop:Number;// = 30 public var isTrackOutboundSubdomains:Boolean;// = false public var cookiePath:String;// = "/" public var transactionFieldDelim:String;// = "|" private var _organic:Organic; private var _cookieName:String;// = "analytics" public var campaignKey:CampaignKey; public var google:String;// = "google" public var googleCsePath:String;// = "cse" public var bucketCapacity:Number;// = 10 private var _sampleRate:Number;// = 1 public var remoteGIFpath:String;// = "http://www.google-analytics.com/__utm.gif" public var googleSearchParam:String;// = "q" public var allowLinker:Boolean;// = false public var maxOutboundLinkExamined:Number;// = 1000 private var _debug:DebugConfiguration; public var allowAnchor:Boolean;// = false private var _domain:Domain; private var _trackingLimitPerSession:int;// = 500 public var tokenCliff:int;// = 10 public var sessionTimeout:Number; public var idleTimeout:Number;// = 60 public var campaignTracking:Boolean;// = true public var domainName:String;// = "" public var detectTitle:Boolean;// = true public var tokenRate:Number;// = 0.2 public var conversionTimeout:Number; public var localGIFpath:String;// = "/__utm.gif" public function Configuration(_arg1:DebugConfiguration=null){ _organic = new Organic(); conversionTimeout = Timespan.sixmonths; sessionTimeout = Timespan.thirtyminutes; campaignKey = new CampaignKey(); serverMode = ServerOperationMode.remote; super(); _debug = _arg1; _domain = new Domain(DomainNameMode.auto, "", _debug); serverMode = ServerOperationMode.remote; _initOrganicSources(); } public function get organic():Organic{ return (_organic); } public function get cookieName():String{ return (_cookieName); } public function get trackingLimitPerSession():int{ return (_trackingLimitPerSession); } private function _initOrganicSources():void{ addOrganicSource(google, googleSearchParam); addOrganicSource("yahoo", "p"); addOrganicSource("msn", "q"); addOrganicSource("aol", "query"); addOrganicSource("aol", "encquery"); addOrganicSource("lycos", "query"); addOrganicSource("ask", "q"); addOrganicSource("altavista", "q"); addOrganicSource("netscape", "query"); addOrganicSource("cnn", "query"); addOrganicSource("looksmart", "qt"); addOrganicSource("about", "terms"); addOrganicSource("mamma", "query"); addOrganicSource("alltheweb", "q"); addOrganicSource("gigablast", "q"); addOrganicSource("voila", "rdata"); addOrganicSource("virgilio", "qs"); addOrganicSource("live", "q"); addOrganicSource("baidu", "wd"); addOrganicSource("alice", "qs"); addOrganicSource("yandex", "text"); addOrganicSource("najdi", "q"); addOrganicSource("aol", "q"); addOrganicSource("club-internet", "q"); addOrganicSource("mama", "query"); addOrganicSource("seznam", "q"); addOrganicSource("search", "q"); addOrganicSource("wp", "szukaj"); addOrganicSource("onet", "qt"); addOrganicSource("netsprint", "q"); addOrganicSource("google.interia", "q"); addOrganicSource("szukacz", "q"); addOrganicSource("yam", "k"); addOrganicSource("pchome", "q"); addOrganicSource("kvasir", "searchExpr"); addOrganicSource("sesam", "q"); addOrganicSource("ozu", "q"); addOrganicSource("terra", "query"); addOrganicSource("nostrum", "query"); addOrganicSource("mynet", "q"); addOrganicSource("ekolay", "q"); addOrganicSource("search.ilse", "search_for"); } public function get sampleRate():Number{ return (_sampleRate); } public function addOrganicSource(_arg1:String, _arg2:String):void{ var engine = _arg1; var keyword = _arg2; try { _organic.addSource(engine, keyword); } catch(e:Error) { if (((_debug) && (_debug.active))){ _debug.warning(e.message); }; }; } public function get domain():Domain{ return (_domain); } public function set sampleRate(_arg1:Number):void{ if (_arg1 <= 0){ _arg1 = 0.1; }; if (_arg1 > 1){ _arg1 = 1; }; _arg1 = Number(_arg1.toFixed(2)); _sampleRate = _arg1; } public function get version():String{ return (_version); } } }//package com.google.analytics.v4
Section 155
//GoogleAnalyticsAPI (com.google.analytics.v4.GoogleAnalyticsAPI) package com.google.analytics.v4 { import com.google.analytics.core.*; public interface GoogleAnalyticsAPI { function setCampSourceKey(_arg1:String):void; function getServiceMode():ServerOperationMode; function resetSession():void; function setLocalServerMode():void; function setCampContentKey(_arg1:String):void; function addOrganic(_arg1:String, _arg2:String):void; function setDetectFlash(_arg1:Boolean):void; function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object; function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean; function setCampTermKey(_arg1:String):void; function setCampNameKey(_arg1:String):void; function addIgnoredOrganic(_arg1:String):void; function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void; function setAllowLinker(_arg1:Boolean):void; function getClientInfo():Boolean; function getDetectFlash():Boolean; function setCampaignTrack(_arg1:Boolean):void; function createEventTracker(_arg1:String):EventTracker; function setCookieTimeout(_arg1:int):void; function setAllowAnchor(_arg1:Boolean):void; function trackTrans():void; function clearOrganic():void; function trackPageview(_arg1:String=""):void; function setLocalGifPath(_arg1:String):void; function getVersion():String; function getLocalGifPath():String; function setVar(_arg1:String):void; function clearIgnoredOrganic():void; function setCampMediumKey(_arg1:String):void; function addIgnoredRef(_arg1:String):void; function setClientInfo(_arg1:Boolean):void; function setCookiePath(_arg1:String):void; function setSampleRate(_arg1:Number):void; function setSessionTimeout(_arg1:int):void; function setRemoteServerMode():void; function clearIgnoredRef():void; function setDomainName(_arg1:String):void; function setDetectTitle(_arg1:Boolean):void; function setAllowHash(_arg1:Boolean):void; function getAccount():String; function linkByPost(_arg1:Object, _arg2:Boolean=false):void; function link(_arg1:String, _arg2:Boolean=false):void; function setCampNOKey(_arg1:String):void; function setLocalRemoteServerMode():void; function cookiePathCopy(_arg1:String):void; function getDetectTitle():Boolean; } }//package com.google.analytics.v4
Section 156
//Tracker (com.google.analytics.v4.Tracker) package com.google.analytics.v4 { import com.google.analytics.core.*; import com.google.analytics.debug.*; import com.google.analytics.data.*; import com.google.analytics.external.*; import com.google.analytics.utils.*; import com.google.analytics.campaign.*; public class Tracker implements GoogleAnalyticsAPI { private const EVENT_TRACKER_LABEL_KEY_NUM:int = 3; private const EVENT_TRACKER_VALUE_VALUE_NUM:int = 1; private const EVENT_TRACKER_PROJECT_ID:int = 5; private const EVENT_TRACKER_OBJECT_NAME_KEY_NUM:int = 1; private const EVENT_TRACKER_TYPE_KEY_NUM:int = 2; private var _adSense:AdSenseGlobals; private var _eventTracker:X10; private var _noSessionInformation:Boolean;// = false private var _browserInfo:BrowserInfo; private var _debug:DebugConfiguration; private var _isNewVisitor:Boolean;// = false private var _buffer:Buffer; private var _config:Configuration; private var _x10Module:X10; private var _campaign:CampaignManager; private var _formatedReferrer:String; private var _timeStamp:Number; private var _info:Environment; private var _domainHash:Number; private var _campaignInfo:CampaignInfo; private var _gifRequest:GIFRequest; private var _hasInitData:Boolean;// = false private var _account:String; public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals){ var _local8:String; super(); _account = _arg1; _config = _arg2; _debug = _arg3; _info = _arg4; _buffer = _arg5; _gifRequest = _arg6; _adSense = _arg7; if (!Utils.validateAccount(_arg1)){ _local8 = (("Account \"" + _arg1) + "\" is not valid."); _debug.warning(_local8); throw (new Error(_local8)); }; _initData(); } private function _doTracking():Boolean{ if (((((!((_info.protocol == Protocols.file))) && (!((_info.protocol == Protocols.none))))) && (_isNotGoogleSearch()))){ return (true); }; if (_config.allowLocalTracking){ return (true); }; return (false); } public function addOrganic(_arg1:String, _arg2:String):void{ _debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )")); _config.organic.addSource(_arg1, _arg2); } public function setAllowLinker(_arg1:Boolean):void{ _config.allowLinker = _arg1; _debug.info((("setAllowLinker( " + _config.allowLinker) + " )")); } public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{ var _local5:Boolean; var _local6 = 2; if (((!((_arg1 == ""))) && (!((_arg2 == ""))))){ _eventTracker.clearKey(EVENT_TRACKER_PROJECT_ID); _eventTracker.clearValue(EVENT_TRACKER_PROJECT_ID); _local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_OBJECT_NAME_KEY_NUM, _arg1); _local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_TYPE_KEY_NUM, _arg2); if (((_arg3) && (!((_arg3 == ""))))){ _local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_LABEL_KEY_NUM, _arg3); _local6 = 3; if (!isNaN(_arg4)){ _local5 = _eventTracker.setValue(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_VALUE_VALUE_NUM, _arg4); _local6 = 4; }; }; if (_local5){ _debug.info(((("valid event tracking call\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek); _sendXEvent(_eventTracker); }; } else { _debug.warning(((("event tracking call is not valid, failed!\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek); _local5 = false; }; switch (_local6){ case 4: _debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )")); break; case 3: _debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )")); break; case 2: default: _debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )")); }; return (_local5); } public function trackPageview(_arg1:String=""):void{ _debug.info((("trackPageview( " + _arg1) + " )")); if (_doTracking()){ _initData(); _trackMetrics(_arg1); _noSessionInformation = false; } else { _debug.warning((("trackPageview( " + _arg1) + " ) failed")); }; } public function setCookieTimeout(_arg1:int):void{ _config.conversionTimeout = _arg1; _debug.info((("setCookieTimeout( " + _config.conversionTimeout) + " )")); } public function trackTrans():void{ _debug.warning("trackTrans() not implemented"); } public function setClientInfo(_arg1:Boolean):void{ _config.detectClientInfo = _arg1; _debug.info((("setClientInfo( " + _config.detectClientInfo) + " )")); } public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{ _debug.warning((("linkByPost( " + [_arg1, _arg2].join(", ")) + " ) not implemented")); } private function _initData():void{ var _local1:String; var _local2:String; if (!_hasInitData){ _updateDomainName(); _domainHash = _getDomainHash(); _timeStamp = Math.round((new Date().getTime() / 1000)); if (_debug.verbose){ _local1 = ""; _local1 = (_local1 + "_initData 0"); _local1 = (_local1 + ("\ndomain name: " + _config.domainName)); _local1 = (_local1 + ("\ndomain hash: " + _domainHash)); _local1 = (_local1 + (((("\ntimestamp: " + _timeStamp) + " (") + new Date((_timeStamp * 1000))) + ")")); _debug.info(_local1, VisualDebugMode.geek); }; }; if (_doTracking()){ _handleCookie(); }; if (!_hasInitData){ if (_doTracking()){ _formatedReferrer = _formatReferrer(); _browserInfo = new BrowserInfo(_config, _info); _debug.info(("browserInfo: " + _browserInfo.toURLString()), VisualDebugMode.advanced); if (_config.campaignTracking){ _campaign = new CampaignManager(_config, _debug, _buffer, _domainHash, _formatedReferrer, _timeStamp); _campaignInfo = _campaign.getCampaignInformation(_info.locationSearch, _noSessionInformation); _debug.info(("campaignInfo: " + _campaignInfo.toURLString()), VisualDebugMode.advanced); }; }; _x10Module = new X10(); _eventTracker = new X10(); _hasInitData = true; }; if (_config.hasSiteOverlay){ _debug.warning("Site Overlay is not supported"); }; if (_debug.verbose){ _local2 = ""; _local2 = (_local2 + "_initData (misc)"); _local2 = (_local2 + ("\nflash version: " + _info.flashVersion.toString(4))); _local2 = (_local2 + ("\nprotocol: " + _info.protocol)); _local2 = (_local2 + (("\ndefault domain name (auto): \"" + _info.domainName) + "\"")); _local2 = (_local2 + ("\nlanguage: " + _info.language)); _local2 = (_local2 + ("\ndomain hash: " + _getDomainHash())); _local2 = (_local2 + ("\nuser-agent: " + _info.userAgent)); _debug.info(_local2, VisualDebugMode.geek); }; } public function getDetectTitle():Boolean{ _debug.info("getDetectTitle()"); return (_config.detectTitle); } public function resetSession():void{ _debug.info("resetSession()"); _buffer.resetCurrentSession(); } public function getClientInfo():Boolean{ _debug.info("getClientInfo()"); return (_config.detectClientInfo); } private function _sendXEvent(_arg1:X10=null):void{ var _local2:Variables; var _local3:EventInfo; var _local4:Variables; var _local5:Variables; _initData(); if (_takeSample()){ _local2 = new Variables(); _local2.URIencode = true; _local3 = new EventInfo(true, _x10Module, _arg1); _local4 = _local3.toVariables(); _local5 = _renderMetricsSearchVariables(); _local2.join(_local4, _local5); _gifRequest.send(_account, _local2, false, true); }; } public function setDetectFlash(_arg1:Boolean):void{ _config.detectFlash = _arg1; _debug.info((("setDetectFlash( " + _config.detectFlash) + " )")); } public function setCampNameKey(_arg1:String):void{ _config.campaignKey.UCCN = _arg1; var _local2 = (("setCampNameKey( " + _config.campaignKey.UCCN) + " )"); if (_debug.mode == VisualDebugMode.geek){ _debug.info((_local2 + " [UCCN]")); } else { _debug.info(_local2); }; } private function _formatReferrer():String{ var _local2:String; var _local3:URL; var _local4:URL; var _local1:String = _info.referrer; if ((((_local1 == "")) || ((_local1 == "localhost")))){ _local1 = "-"; } else { _local2 = _info.domainName; _local3 = new URL(_local1); _local4 = new URL(("http://" + _local2)); if (_local3.hostName == _local2){ return ("-"); }; if (_local4.domain == _local3.domain){ if (_local4.subDomain != _local3.subDomain){ _local1 = "0"; }; }; if ((((_local1.charAt(0) == "[")) && (_local1.charAt((_local1.length - 1))))){ _local1 = "-"; }; }; _debug.info(("formated referrer: " + _local1), VisualDebugMode.advanced); return (_local1); } private function _visitCode():Number{ if (_debug.verbose){ _debug.info(("visitCode: " + _buffer.utma.sessionId), VisualDebugMode.geek); }; return (_buffer.utma.sessionId); } public function createEventTracker(_arg1:String):EventTracker{ _debug.info((("createEventTracker( " + _arg1) + " )")); return (new EventTracker(_arg1, this)); } public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{ _debug.warning((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " ) not implemented")); } public function clearIgnoredOrganic():void{ _debug.info("clearIgnoredOrganic()"); _config.organic.clearIgnoredKeywords(); } public function setVar(_arg1:String):void{ var _local2:Variables; if (((!((_arg1 == ""))) && (_isNotGoogleSearch()))){ _initData(); _buffer.utmv.domainHash = _domainHash; _buffer.utmv.value = _arg1; if (_debug.verbose){ _debug.info(_buffer.utmv.toString(), VisualDebugMode.geek); }; _debug.info((("setVar( " + _arg1) + " )")); if (_takeSample()){ _local2 = new Variables(); _local2.utmt = "var"; _gifRequest.send(_account, _local2); }; } else { _debug.warning((("setVar \"" + _arg1) + "\" is ignored")); }; } public function setDomainName(_arg1:String):void{ if (_arg1 == "auto"){ _config.domain.mode = DomainNameMode.auto; } else { if (_arg1 == "none"){ _config.domain.mode = DomainNameMode.none; } else { _config.domain.mode = DomainNameMode.custom; _config.domain.name = _arg1; }; }; _updateDomainName(); _debug.info((("setDomainName( " + _config.domainName) + " )")); } private function _updateDomainName():void{ var _local1:String; if (_config.domain.mode == DomainNameMode.auto){ _local1 = _info.domainName; if (_local1.substring(0, 4) == "www."){ _local1 = _local1.substring(4); }; _config.domain.name = _local1; }; _config.domainName = _config.domain.name.toLowerCase(); _debug.info(("domain name: " + _config.domainName), VisualDebugMode.advanced); } public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{ _debug.warning((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " ) not implemented")); return (null); } private function _renderMetricsSearchVariables(_arg1:String=""):Variables{ var _local4:Variables; var _local2:Variables = new Variables(); _local2.URIencode = true; var _local3:DocumentInfo = new DocumentInfo(_config, _info, _formatedReferrer, _arg1, _adSense); _debug.info(("docInfo: " + _local3.toURLString()), VisualDebugMode.geek); if (_config.campaignTracking){ _local4 = _campaignInfo.toVariables(); }; var _local5:Variables = _browserInfo.toVariables(); _local2.join(_local3.toVariables(), _local5, _local4); return (_local2); } public function setCampContentKey(_arg1:String):void{ _config.campaignKey.UCCT = _arg1; var _local2 = (("setCampContentKey( " + _config.campaignKey.UCCT) + " )"); if (_debug.mode == VisualDebugMode.geek){ _debug.info((_local2 + " [UCCT]")); } else { _debug.info(_local2); }; } private function _handleCookie():void{ var _local1:String; var _local2:String; var _local3:Array; var _local4:String; if (_config.allowLinker){ }; if (((_buffer.hasUTMA()) && (!(_buffer.utma.isEmpty())))){ if (((!(_buffer.hasUTMB())) || (!(_buffer.hasUTMC())))){ _buffer.updateUTMA(_timeStamp); _noSessionInformation = true; }; if (_debug.verbose){ _debug.info(("from cookie " + _buffer.utma.toString()), VisualDebugMode.geek); }; } else { _debug.info("create a new utma", VisualDebugMode.advanced); _buffer.utma.domainHash = _domainHash; _buffer.utma.sessionId = _getUniqueSessionId(); _buffer.utma.firstTime = _timeStamp; _buffer.utma.lastTime = _timeStamp; _buffer.utma.currentTime = _timeStamp; _buffer.utma.sessionCount = 1; if (_debug.verbose){ _debug.info(_buffer.utma.toString(), VisualDebugMode.geek); }; _noSessionInformation = true; _isNewVisitor = true; }; if (((_adSense.gaGlobal) && ((_adSense.dh == String(_domainHash))))){ if (_adSense.sid){ _buffer.utma.currentTime = Number(_adSense.sid); if (_debug.verbose){ _local1 = ""; _local1 = (_local1 + "AdSense sid found\n"); _local1 = (_local1 + (((("Override currentTime(" + _buffer.utma.currentTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")")); _debug.info(_local1, VisualDebugMode.geek); }; }; if (_isNewVisitor){ if (_adSense.sid){ _buffer.utma.lastTime = Number(_adSense.sid); if (_debug.verbose){ _local2 = ""; _local2 = (_local2 + "AdSense sid found (new visitor)\n"); _local2 = (_local2 + (((("Override lastTime(" + _buffer.utma.lastTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")")); _debug.info(_local2, VisualDebugMode.geek); }; }; if (_adSense.vid){ _local3 = _adSense.vid.split("."); _buffer.utma.sessionId = Number(_local3[0]); _buffer.utma.firstTime = Number(_local3[1]); if (_debug.verbose){ _local4 = ""; _local4 = (_local4 + "AdSense vid found (new visitor)\n"); _local4 = (_local4 + (((("Override sessionId(" + _buffer.utma.sessionId) + ") from AdSense vid(") + Number(_local3[0])) + ")\n")); _local4 = (_local4 + (((("Override firstTime(" + _buffer.utma.firstTime) + ") from AdSense vid(") + Number(_local3[1])) + ")")); _debug.info(_local4, VisualDebugMode.geek); }; }; if (_debug.verbose){ _debug.info(("AdSense modified : " + _buffer.utma.toString()), VisualDebugMode.geek); }; }; }; _buffer.utmb.domainHash = _domainHash; if (isNaN(_buffer.utmb.trackCount)){ _buffer.utmb.trackCount = 0; }; if (isNaN(_buffer.utmb.token)){ _buffer.utmb.token = _config.tokenCliff; }; if (isNaN(_buffer.utmb.lastTime)){ _buffer.utmb.lastTime = _buffer.utma.currentTime; }; _buffer.utmc.domainHash = _domainHash; if (_debug.verbose){ _debug.info(_buffer.utmb.toString(), VisualDebugMode.advanced); _debug.info(_buffer.utmc.toString(), VisualDebugMode.advanced); }; } public function setLocalServerMode():void{ _config.serverMode = ServerOperationMode.local; _debug.info("setLocalServerMode()"); } public function clearIgnoredRef():void{ _debug.info("clearIgnoredRef()"); _config.organic.clearIgnoredReferrals(); } public function setCampSourceKey(_arg1:String):void{ _config.campaignKey.UCSR = _arg1; var _local2 = (("setCampSourceKey( " + _config.campaignKey.UCSR) + " )"); if (_debug.mode == VisualDebugMode.geek){ _debug.info((_local2 + " [UCSR]")); } else { _debug.info(_local2); }; } public function getLocalGifPath():String{ _debug.info("getLocalGifPath()"); return (_config.localGIFpath); } public function setLocalGifPath(_arg1:String):void{ _config.localGIFpath = _arg1; _debug.info((("setLocalGifPath( " + _config.localGIFpath) + " )")); } public function getVersion():String{ _debug.info("getVersion()"); return (_config.version); } public function setAllowAnchor(_arg1:Boolean):void{ _config.allowAnchor = _arg1; _debug.info((("setAllowAnchor( " + _config.allowAnchor) + " )")); } private function _isNotGoogleSearch():Boolean{ var _local1:String = _config.domainName; var _local2 = (_local1.indexOf("www.google.") < 0); var _local3 = (_local1.indexOf(".google.") < 0); var _local4 = (_local1.indexOf("google.") < 0); var _local5 = (_local1.indexOf("google.org") > -1); return (((((((((_local2) || (_local3))) || (_local4))) || (!((_config.cookiePath == "/"))))) || (_local5))); } public function setSampleRate(_arg1:Number):void{ if (_arg1 < 0){ _debug.warning("sample rate can not be negative, ignoring value."); } else { _config.sampleRate = _arg1; }; _debug.info((("setSampleRate( " + _config.sampleRate) + " )")); } private function _takeSample():Boolean{ if (_debug.verbose){ _debug.info((((("takeSample: (" + (_visitCode() % 10000)) + ") < (") + (_config.sampleRate * 10000)) + ")"), VisualDebugMode.geek); }; return (((_visitCode() % 10000) < (_config.sampleRate * 10000))); } public function setCookiePath(_arg1:String):void{ _config.cookiePath = _arg1; _debug.info((("setCookiePath( " + _config.cookiePath) + " )")); } public function setAllowHash(_arg1:Boolean):void{ _config.allowDomainHash = _arg1; _debug.info((("setAllowHash( " + _config.allowDomainHash) + " )")); } private function _generateUserDataHash():Number{ var _local1 = ""; _local1 = (_local1 + _info.appName); _local1 = (_local1 + _info.appVersion); _local1 = (_local1 + _info.language); _local1 = (_local1 + _info.platform); _local1 = (_local1 + _info.userAgent.toString()); _local1 = (_local1 + (((_info.screenWidth + "x") + _info.screenHeight) + _info.screenColorDepth)); _local1 = (_local1 + _info.referrer); return (Utils.generateHash(_local1)); } public function setCampNOKey(_arg1:String):void{ _config.campaignKey.UCNO = _arg1; var _local2 = (("setCampNOKey( " + _config.campaignKey.UCNO) + " )"); if (_debug.mode == VisualDebugMode.geek){ _debug.info((_local2 + " [UCNO]")); } else { _debug.info(_local2); }; } public function addIgnoredOrganic(_arg1:String):void{ _debug.info((("addIgnoredOrganic( " + _arg1) + " )")); _config.organic.addIgnoredKeyword(_arg1); } public function setLocalRemoteServerMode():void{ _config.serverMode = ServerOperationMode.both; _debug.info("setLocalRemoteServerMode()"); } public function cookiePathCopy(_arg1:String):void{ _debug.warning((("cookiePathCopy( " + _arg1) + " ) not implemented")); } public function setDetectTitle(_arg1:Boolean):void{ _config.detectTitle = _arg1; _debug.info((("setDetectTitle( " + _config.detectTitle) + " )")); } public function setCampTermKey(_arg1:String):void{ _config.campaignKey.UCTR = _arg1; var _local2 = (("setCampTermKey( " + _config.campaignKey.UCTR) + " )"); if (_debug.mode == VisualDebugMode.geek){ _debug.info((_local2 + " [UCTR]")); } else { _debug.info(_local2); }; } public function getServiceMode():ServerOperationMode{ _debug.info("getServiceMode()"); return (_config.serverMode); } private function _trackMetrics(_arg1:String=""):void{ var _local2:Variables; var _local3:Variables; var _local4:Variables; var _local5:EventInfo; if (_takeSample()){ _local2 = new Variables(); _local2.URIencode = true; if (((_x10Module) && (_x10Module.hasData()))){ _local5 = new EventInfo(false, _x10Module); _local3 = _local5.toVariables(); }; _local4 = _renderMetricsSearchVariables(_arg1); _local2.join(_local3, _local4); _gifRequest.send(_account, _local2); }; } public function setCampaignTrack(_arg1:Boolean):void{ _config.campaignTracking = _arg1; _debug.info((("setCampaignTrack( " + _config.campaignTracking) + " )")); } public function addIgnoredRef(_arg1:String):void{ _debug.info((("addIgnoredRef( " + _arg1) + " )")); _config.organic.addIgnoredReferral(_arg1); } public function clearOrganic():void{ _debug.info("clearOrganic()"); _config.organic.clearEngines(); } public function getDetectFlash():Boolean{ _debug.info("getDetectFlash()"); return (_config.detectFlash); } public function setCampMediumKey(_arg1:String):void{ _config.campaignKey.UCMD = _arg1; var _local2 = (("setCampMediumKey( " + _config.campaignKey.UCMD) + " )"); if (_debug.mode == VisualDebugMode.geek){ _debug.info((_local2 + " [UCMD]")); } else { _debug.info(_local2); }; } private function _getUniqueSessionId():Number{ var _local1:Number = ((Utils.generate32bitRandom() ^ _generateUserDataHash()) * 2147483647); _debug.info(("Session ID: " + _local1), VisualDebugMode.geek); return (_local1); } private function _getDomainHash():Number{ if (((((!(_config.domainName)) || ((_config.domainName == "")))) || ((_config.domain.mode == DomainNameMode.none)))){ _config.domainName = ""; return (1); }; _updateDomainName(); if (_config.allowDomainHash){ return (Utils.generateHash(_config.domainName)); }; return (1); } public function setSessionTimeout(_arg1:int):void{ _config.sessionTimeout = _arg1; _debug.info((("setSessionTimeout( " + _config.sessionTimeout) + " )")); } public function getAccount():String{ _debug.info("getAccount()"); return (_account); } public function link(_arg1:String, _arg2:Boolean=false):void{ _debug.warning((("link( " + [_arg1, _arg2].join(", ")) + " ) not implemented")); } public function setRemoteServerMode():void{ _config.serverMode = ServerOperationMode.remote; _debug.info("setRemoteServerMode()"); } } }//package com.google.analytics.v4
Section 157
//AnalyticsTracker (com.google.analytics.AnalyticsTracker) package com.google.analytics { import flash.events.*; import com.google.analytics.v4.*; import com.google.analytics.debug.*; public interface AnalyticsTracker extends GoogleAnalyticsAPI, IEventDispatcher { function set account(_arg1:String):void; function get config():Configuration; function get mode():String; function set config(_arg1:Configuration):void; function set mode(_arg1:String):void; function set debug(_arg1:DebugConfiguration):void; function get visualDebug():Boolean; function get account():String; function set visualDebug(_arg1:Boolean):void; function isReady():Boolean; function get debug():DebugConfiguration; } }//package com.google.analytics
Section 158
//API (com.google.analytics.API) package com.google.analytics { import com.google.analytics.utils.*; public class API { public static var version:Version = new Version(); version.major = 1; version.minor = 0; version.build = 1; version.revision = "$Rev: 319 $ ".split(" ")[1]; } }//package com.google.analytics
Section 159
//GATracker (com.google.analytics.GATracker) package com.google.analytics { import flash.events.*; import flash.display.*; import com.google.analytics.core.*; import com.google.analytics.v4.*; import com.google.analytics.debug.*; import com.google.analytics.external.*; import com.google.analytics.utils.*; import com.google.analytics.events.*; public class GATracker implements AnalyticsTracker { private var _adSense:AdSenseGlobals; private var _env:Environment; private var _visualDebug:Boolean; private var _idleTimer:IdleTimer; private var _debug:DebugConfiguration; private var _buffer:Buffer; private var _config:Configuration; private var _mode:String; private var _display:DisplayObject; private var _jsproxy:JavascriptProxy; private var _dom:HTMLDOM; private var _eventDispatcher:EventDispatcher; private var _ready:Boolean;// = false private var _gifRequest:GIFRequest; private var _account:String; private var _tracker:GoogleAnalyticsAPI; public static var version:Version = API.version; public static var autobuild:Boolean = true; public function GATracker(_arg1:DisplayObject, _arg2:String, _arg3:String="AS3", _arg4:Boolean=false, _arg5:Configuration=null, _arg6:DebugConfiguration=null){ _display = _arg1; _eventDispatcher = new EventDispatcher(this); _tracker = new TrackerCache(); this.account = _arg2; this.mode = _arg3; this.visualDebug = _arg4; if (!_arg6){ this.debug = new DebugConfiguration(); }; if (!_arg5){ this.config = new Configuration(_arg6); }; if (autobuild){ _factory(); }; } public function link(_arg1:String, _arg2:Boolean=false):void{ _tracker.link(_arg1, _arg2); } public function addOrganic(_arg1:String, _arg2:String):void{ _tracker.addOrganic(_arg1, _arg2); } public function setAllowLinker(_arg1:Boolean):void{ _tracker.setAllowLinker(_arg1); } public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{ return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4)); } public function setCookieTimeout(_arg1:int):void{ _tracker.setCookieTimeout(_arg1); } public function trackTrans():void{ _tracker.trackTrans(); } public function getClientInfo():Boolean{ return (_tracker.getClientInfo()); } public function trackPageview(_arg1:String=""):void{ _tracker.trackPageview(_arg1); } public function setClientInfo(_arg1:Boolean):void{ _tracker.setClientInfo(_arg1); } public function get account():String{ return (_account); } public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{ _tracker.linkByPost(_arg1, _arg2); } public function getDetectTitle():Boolean{ return (_tracker.getDetectTitle()); } public function dispatchEvent(_arg1:Event):Boolean{ return (_eventDispatcher.dispatchEvent(_arg1)); } public function get config():Configuration{ return (_config); } public function set mode(_arg1:String):void{ _mode = _arg1; } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ _eventDispatcher.removeEventListener(_arg1, _arg2, _arg3); } public function setDetectFlash(_arg1:Boolean):void{ _tracker.setDetectFlash(_arg1); } public function resetSession():void{ _tracker.resetSession(); } public function setCampNameKey(_arg1:String):void{ _tracker.setCampNameKey(_arg1); } public function get debug():DebugConfiguration{ return (_debug); } public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{ _tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } private function _bridgeFactory():GoogleAnalyticsAPI{ debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account)); return (new Bridge(account, _debug, _jsproxy)); } public function clearIgnoredOrganic():void{ _tracker.clearIgnoredOrganic(); } public function set account(_arg1:String):void{ _account = _arg1; } public function setVar(_arg1:String):void{ _tracker.setVar(_arg1); } public function build():void{ if (!isReady()){ _factory(); }; } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ _eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function setDomainName(_arg1:String):void{ _tracker.setDomainName(_arg1); } public function createEventTracker(_arg1:String):EventTracker{ return (_tracker.createEventTracker(_arg1)); } public function setCampSourceKey(_arg1:String):void{ _tracker.setCampSourceKey(_arg1); } public function set config(_arg1:Configuration):void{ _config = _arg1; } public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{ return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8)); } public function setCampContentKey(_arg1:String):void{ _tracker.setCampContentKey(_arg1); } public function willTrigger(_arg1:String):Boolean{ return (_eventDispatcher.willTrigger(_arg1)); } public function setLocalServerMode():void{ _tracker.setLocalServerMode(); } public function getLocalGifPath():String{ return (_tracker.getLocalGifPath()); } public function setAllowAnchor(_arg1:Boolean):void{ _tracker.setAllowAnchor(_arg1); } public function clearIgnoredRef():void{ _tracker.clearIgnoredRef(); } public function isReady():Boolean{ return (_ready); } public function get mode():String{ return (_mode); } public function set debug(_arg1:DebugConfiguration):void{ _debug = _arg1; } public function setLocalGifPath(_arg1:String):void{ _tracker.setLocalGifPath(_arg1); } public function getVersion():String{ return (_tracker.getVersion()); } public function setSampleRate(_arg1:Number):void{ _tracker.setSampleRate(_arg1); } public function setCookiePath(_arg1:String):void{ _tracker.setCookiePath(_arg1); } public function setAllowHash(_arg1:Boolean):void{ _tracker.setAllowHash(_arg1); } public function addIgnoredOrganic(_arg1:String):void{ _tracker.addIgnoredOrganic(_arg1); } public function setLocalRemoteServerMode():void{ _tracker.setLocalRemoteServerMode(); } public function cookiePathCopy(_arg1:String):void{ _tracker.cookiePathCopy(_arg1); } private function _factory():void{ var _local1:GoogleAnalyticsAPI; _jsproxy = new JavascriptProxy(debug); if (visualDebug){ debug.layout = new Layout(debug, _display); debug.active = visualDebug; }; var _local2:TrackerCache = (_tracker as TrackerCache); switch (mode){ case TrackerMode.BRIDGE: _local1 = _bridgeFactory(); break; case TrackerMode.AS3: default: _local1 = _trackerFactory(); }; if (!_local2.isEmpty()){ _local2.tracker = _local1; _local2.flush(); }; _tracker = _local1; _ready = true; dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this)); } public function setCampTermKey(_arg1:String):void{ _tracker.setCampTermKey(_arg1); } private function _trackerFactory():GoogleAnalyticsAPI{ debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account)); _adSense = new AdSenseGlobals(debug); _dom = new HTMLDOM(debug); _dom.cacheProperties(); _env = new Environment("", "", "", debug, _dom); _buffer = new Buffer(config, debug, false); _gifRequest = new GIFRequest(config, debug, _buffer, _env); _idleTimer = new IdleTimer(config, debug, _display, _buffer); _env.url = _display.stage.loaderInfo.url; return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense)); } public function setCampNOKey(_arg1:String):void{ _tracker.setCampNOKey(_arg1); } public function setDetectTitle(_arg1:Boolean):void{ _tracker.setDetectTitle(_arg1); } public function getServiceMode():ServerOperationMode{ return (_tracker.getServiceMode()); } public function clearOrganic():void{ _tracker.clearOrganic(); } public function setCampaignTrack(_arg1:Boolean):void{ _tracker.setCampaignTrack(_arg1); } public function addIgnoredRef(_arg1:String):void{ _tracker.addIgnoredRef(_arg1); } public function set visualDebug(_arg1:Boolean):void{ _visualDebug = _arg1; } public function setCampMediumKey(_arg1:String):void{ _tracker.setCampMediumKey(_arg1); } public function getDetectFlash():Boolean{ return (_tracker.getDetectFlash()); } public function get visualDebug():Boolean{ return (_visualDebug); } public function hasEventListener(_arg1:String):Boolean{ return (_eventDispatcher.hasEventListener(_arg1)); } public function getAccount():String{ return (_tracker.getAccount()); } public function setSessionTimeout(_arg1:int):void{ _tracker.setSessionTimeout(_arg1); } public function setRemoteServerMode():void{ _tracker.setRemoteServerMode(); } } var _local1:* = ServerOperationMode; return (_local1); }//package com.google.analytics
Section 160
//Linear (fl.motion.easing.Linear) package fl.motion.easing { public class Linear { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } } }//package fl.motion.easing
Section 161
//bg1 (gfx.BG.bg1) package gfx.BG { import flash.display.*; public dynamic class bg1 extends MovieClip { } }//package gfx.BG
Section 162
//bg2 (gfx.BG.bg2) package gfx.BG { import flash.display.*; public dynamic class bg2 extends MovieClip { } }//package gfx.BG
Section 163
//bg3 (gfx.BG.bg3) package gfx.BG { import flash.display.*; public dynamic class bg3 extends MovieClip { } }//package gfx.BG
Section 164
//bg4 (gfx.BG.bg4) package gfx.BG { import flash.display.*; public dynamic class bg4 extends MovieClip { } }//package gfx.BG
Section 165
//bg5 (gfx.BG.bg5) package gfx.BG { import flash.display.*; public dynamic class bg5 extends MovieClip { } }//package gfx.BG
Section 166
//bg6 (gfx.BG.bg6) package gfx.BG { import flash.display.*; public dynamic class bg6 extends MovieClip { } }//package gfx.BG
Section 167
//InGamescreen (gfx.Menu.InGamescreen) package gfx.Menu { import flash.display.*; public dynamic class InGamescreen extends MovieClip { public var home_btn:MovieClip; public var background:MovieClip; public var options_btn:MovieClip; public var highscore_btn:MovieClip; public var lvl_select_btn:MovieClip; public var brandingbutton:SimpleButton; } }//package gfx.Menu
Section 168
//LevelComplete (gfx.Menu.LevelComplete) package gfx.Menu { import flash.display.*; public dynamic class LevelComplete extends MovieClip { } }//package gfx.Menu
Section 169
//LevelFailed (gfx.Menu.LevelFailed) package gfx.Menu { import flash.display.*; public dynamic class LevelFailed extends MovieClip { } }//package gfx.Menu
Section 170
//StartButton (gfx.Menu.StartButton) package gfx.Menu { import flash.display.*; public dynamic class StartButton extends MovieClip { public var hit:MovieClip; } }//package gfx.Menu
Section 171
//CharNeg (gfx.CharNeg) package gfx { import flash.display.*; public dynamic class CharNeg extends MovieClip { } }//package gfx
Section 172
//CharPos (gfx.CharPos) package gfx { import flash.display.*; public dynamic class CharPos extends MovieClip { } }//package gfx
Section 173
//HighScores (gfx.HighScores) package gfx { import flash.display.*; import flash.text.*; public dynamic class HighScores extends MovieClip { public var score1:TextField; public var score5:TextField; public var score6:TextField; public var score10:TextField; public var score2:TextField; public var score3:TextField; public var score7:TextField; public var score8:TextField; public var score4:TextField; public var score9:TextField; } }//package gfx
Section 174
//JoiningFlash (gfx.JoiningFlash) package gfx { import flash.display.*; public dynamic class JoiningFlash extends MovieClip { public function JoiningFlash(){ addFrameScript(15, frame16); } function frame16(){ stop(); } } }//package gfx
Section 175
//LevelBarAnim (gfx.LevelBarAnim) package gfx { import flash.display.*; public dynamic class LevelBarAnim extends MovieClip { public var levelbar:MovieClip; } }//package gfx
Section 176
//LevelSelectionButton (gfx.LevelSelectionButton) package gfx { import flash.display.*; import flash.text.*; public dynamic class LevelSelectionButton extends MovieClip { public var levelnumber:TextField; public var time:TextField; } }//package gfx
Section 177
//MagnetNeg (gfx.MagnetNeg) package gfx { import flash.display.*; public dynamic class MagnetNeg extends MovieClip { public var inner:MovieClip; public var outer:MovieClip; } }//package gfx
Section 178
//MagnetPos (gfx.MagnetPos) package gfx { import flash.display.*; public dynamic class MagnetPos extends MovieClip { public var inner:MovieClip; public var outer:MovieClip; } }//package gfx
Section 179
//mainMenu (gfx.mainMenu) package gfx { import flash.display.*; import gfx.Menu.*; public dynamic class mainMenu extends MovieClip { public var anim:MovieClip; public var start_btn:StartButton; } }//package gfx
Section 180
//OptionsScreen (gfx.OptionsScreen) package gfx { import flash.display.*; public dynamic class OptionsScreen extends MovieClip { public var optionsscreen:MovieClip; } }//package gfx
Section 181
//PreloaderScreen_mc (gfx.PreloaderScreen_mc) package gfx { import flash.display.*; import flash.text.*; public dynamic class PreloaderScreen_mc extends MovieClip { public var loadingbar:MovieClip; public var loadingtext:TextField; public var brandingbutton:SimpleButton; } }//package gfx
Section 182
//Sitelock (gfx.Sitelock) package gfx { import flash.display.*; public dynamic class Sitelock extends MovieClip { } }//package gfx
Section 183
//SkinDetector (gfx.SkinDetector) package gfx { import flash.display.*; import flash.text.*; public dynamic class SkinDetector extends MovieClip { public var version:TextField; public var inputname:TextField; } }//package gfx
Section 184
//SubmitHighscore (gfx.SubmitHighscore) package gfx { import flash.display.*; public dynamic class SubmitHighscore extends MovieClip { public var closebutton:MovieClip; public var textboxes:MovieClip; public var submit_btn:MovieClip; } }//package gfx
Section 185
//Switch (gfx.Switch) package gfx { import flash.display.*; public dynamic class Switch extends MovieClip { } }//package gfx
Section 186
//TutorialText1 (gfx.TutorialText1) package gfx { import flash.display.*; public dynamic class TutorialText1 extends MovieClip { } }//package gfx
Section 187
//TutorialText2 (gfx.TutorialText2) package gfx { import flash.display.*; public dynamic class TutorialText2 extends MovieClip { } }//package gfx
Section 188
//TutorialText3 (gfx.TutorialText3) package gfx { import flash.display.*; public dynamic class TutorialText3 extends MovieClip { } }//package gfx
Section 189
//TutorialText4 (gfx.TutorialText4) package gfx { import flash.display.*; public dynamic class TutorialText4 extends MovieClip { } }//package gfx
Section 190
//TutorialText5 (gfx.TutorialText5) package gfx { import flash.display.*; public dynamic class TutorialText5 extends MovieClip { } }//package gfx
Section 191
//bigdeathwheel (koen.bigdeathwheel) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class bigdeathwheel extends iBody { public var __id866_:iRectangle; public var __id865_:triangle; public var __id863_:iRectangle; public var __id860_:iRectangle; public var __id864_:triangle; public function bigdeathwheel(){ __setProp_s2_koen(); __setProp___id860__koen(); __setProp___id863__koen(); __setProp___id864__koen(); __setProp___id865__koen(); __setProp___id866__koen(); } function __setProp___id860__koen(){ try { __id860_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id860_.deathZone = false; __id860_.deathZoneBlink = true; __id860_.density = 1; __id860_.sensor = false; __id860_.transparent = false; try { __id860_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id863__koen(){ try { __id863_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id863_.deathZone = false; __id863_.deathZoneBlink = true; __id863_.density = 1; __id863_.sensor = false; __id863_.transparent = false; try { __id863_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id864__koen(){ try { __id864_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id864_.deathZone = true; __id864_.deathZoneBlink = false; __id864_.density = 0; __id864_.sensor = false; __id864_.transparent = false; try { __id864_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s2_koen(){ try { s2["componentInspectorSetting"] = true; } catch(e:Error) { }; s2.deathZone = false; s2.deathZoneBlink = true; s2.density = 1; s2.sensor = false; s2.transparent = false; try { s2["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id865__koen(){ try { __id865_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id865_.deathZone = true; __id865_.deathZoneBlink = false; __id865_.density = 0; __id865_.sensor = false; __id865_.transparent = false; try { __id865_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id866__koen(){ try { __id866_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id866_.deathZone = false; __id866_.deathZoneBlink = true; __id866_.density = 1; __id866_.sensor = false; __id866_.transparent = false; try { __id866_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 192
//bigwheel (koen.bigwheel) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class bigwheel extends iBody { public var __id875_:iRectangle; public var __id872_:iRectangle; public var __id869_:iRectangle; public function bigwheel(){ __setProp_s2_koen(); __setProp___id869__koen(); __setProp___id872__koen(); __setProp___id875__koen(); } function __setProp_s2_koen(){ try { s2["componentInspectorSetting"] = true; } catch(e:Error) { }; s2.deathZone = false; s2.deathZoneBlink = true; s2.density = 1; s2.sensor = false; s2.transparent = false; try { s2["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id869__koen(){ try { __id869_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id869_.deathZone = false; __id869_.deathZoneBlink = true; __id869_.density = 1; __id869_.sensor = false; __id869_.transparent = false; try { __id869_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id872__koen(){ try { __id872_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id872_.deathZone = false; __id872_.deathZoneBlink = true; __id872_.density = 1; __id872_.sensor = false; __id872_.transparent = false; try { __id872_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id875__koen(){ try { __id875_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id875_.deathZone = false; __id875_.deathZoneBlink = true; __id875_.density = 1; __id875_.sensor = false; __id875_.transparent = false; try { __id875_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 193
//block (koen.block) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class block extends iBody { public function block(){ __setProp_s3_koen(); __setProp_s3_koen_1(); __setProp_s3_koen_2(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s3_koen_1(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s3_koen_2(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 194
//creditblock (koen.creditblock) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class creditblock extends iBody { public function creditblock(){ __setProp_s3_koen(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = false; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 195
//deathball (koen.deathball) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class deathball extends iBody { public function deathball(){ __setProp_s1_koen(); } function __setProp_s1_koen(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = true; s1.deathZoneBlink = false; s1.density = 0.4; s1.sensor = false; s1.transparent = false; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 196
//deathballcopy (koen.deathballcopy) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class deathballcopy extends iBody { public function deathballcopy(){ __setProp_s1_koen(); } function __setProp_s1_koen(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = true; s1.deathZoneBlink = false; s1.density = 0.4; s1.sensor = false; s1.transparent = false; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 197
//deathblock (koen.deathblock) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class deathblock extends iBody { public var __id835_:triangle; public var __id823_:triangle; public var __id839_:iRectangle; public var __id815_:triangle; public var __id819_:triangle; public var __id831_:triangle; public var __id828_:triangle; public var __id816_:triangle; public var __id836_:triangle; public var __id824_:triangle; public var __id832_:triangle; public var __id820_:triangle; public var __id840_:iRectangle; public var __id829_:triangle; public var __id817_:triangle; public var __id825_:triangle; public var __id833_:triangle; public var __id821_:triangle; public var __id837_:triangle; public var __id818_:triangle; public var __id838_:triangle; public var __id826_:triangle; public var __id834_:triangle; public var __id822_:triangle; public var __id830_:triangle; public var __id827_:triangle; public function deathblock(){ __setProp___id815__koen(); __setProp___id816__koen(); __setProp___id817__koen(); __setProp___id818__koen(); __setProp___id819__koen(); __setProp___id820__koen(); __setProp___id821__koen(); __setProp___id822__koen(); __setProp___id823__koen(); __setProp___id824__koen(); __setProp___id825__koen(); __setProp___id826__koen(); __setProp___id827__koen(); __setProp___id828__koen(); __setProp___id829__koen(); __setProp___id830__koen(); __setProp___id831__koen(); __setProp___id832__koen(); __setProp___id833__koen(); __setProp___id834__koen(); __setProp___id835__koen(); __setProp___id836__koen(); __setProp___id837__koen(); __setProp___id838__koen(); __setProp___id839__koen(); __setProp___id840__koen(); } function __setProp___id817__koen(){ try { __id817_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id817_.deathZone = true; __id817_.deathZoneBlink = false; __id817_.density = 1; __id817_.sensor = false; __id817_.transparent = false; try { __id817_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id819__koen(){ try { __id819_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id819_.deathZone = true; __id819_.deathZoneBlink = false; __id819_.density = 1; __id819_.sensor = false; __id819_.transparent = false; try { __id819_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id824__koen(){ try { __id824_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id824_.deathZone = true; __id824_.deathZoneBlink = false; __id824_.density = 1; __id824_.sensor = false; __id824_.transparent = false; try { __id824_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id820__koen(){ try { __id820_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id820_.deathZone = true; __id820_.deathZoneBlink = false; __id820_.density = 1; __id820_.sensor = false; __id820_.transparent = false; try { __id820_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id828__koen(){ try { __id828_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id828_.deathZone = true; __id828_.deathZoneBlink = false; __id828_.density = 1; __id828_.sensor = false; __id828_.transparent = false; try { __id828_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id822__koen(){ try { __id822_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id822_.deathZone = true; __id822_.deathZoneBlink = false; __id822_.density = 1; __id822_.sensor = false; __id822_.transparent = false; try { __id822_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id826__koen(){ try { __id826_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id826_.deathZone = true; __id826_.deathZoneBlink = false; __id826_.density = 1; __id826_.sensor = false; __id826_.transparent = false; try { __id826_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id831__koen(){ try { __id831_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id831_.deathZone = true; __id831_.deathZoneBlink = false; __id831_.density = 1; __id831_.sensor = false; __id831_.transparent = false; try { __id831_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id833__koen(){ try { __id833_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id833_.deathZone = true; __id833_.deathZoneBlink = false; __id833_.density = 1; __id833_.sensor = false; __id833_.transparent = false; try { __id833_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id835__koen(){ try { __id835_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id835_.deathZone = true; __id835_.deathZoneBlink = false; __id835_.density = 1; __id835_.sensor = false; __id835_.transparent = false; try { __id835_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id837__koen(){ try { __id837_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id837_.deathZone = true; __id837_.deathZoneBlink = false; __id837_.density = 1; __id837_.sensor = false; __id837_.transparent = false; try { __id837_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id816__koen(){ try { __id816_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id816_.deathZone = true; __id816_.deathZoneBlink = false; __id816_.density = 1; __id816_.sensor = false; __id816_.transparent = false; try { __id816_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id818__koen(){ try { __id818_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id818_.deathZone = true; __id818_.deathZoneBlink = false; __id818_.density = 1; __id818_.sensor = false; __id818_.transparent = false; try { __id818_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id839__koen(){ try { __id839_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id839_.deathZone = true; __id839_.deathZoneBlink = true; __id839_.density = 0; __id839_.sensor = false; __id839_.transparent = true; try { __id839_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id821__koen(){ try { __id821_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id821_.deathZone = true; __id821_.deathZoneBlink = false; __id821_.density = 1; __id821_.sensor = false; __id821_.transparent = false; try { __id821_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id823__koen(){ try { __id823_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id823_.deathZone = true; __id823_.deathZoneBlink = false; __id823_.density = 1; __id823_.sensor = false; __id823_.transparent = false; try { __id823_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id825__koen(){ try { __id825_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id825_.deathZone = true; __id825_.deathZoneBlink = false; __id825_.density = 1; __id825_.sensor = false; __id825_.transparent = false; try { __id825_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id827__koen(){ try { __id827_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id827_.deathZone = true; __id827_.deathZoneBlink = false; __id827_.density = 1; __id827_.sensor = false; __id827_.transparent = false; try { __id827_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id829__koen(){ try { __id829_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id829_.deathZone = true; __id829_.deathZoneBlink = false; __id829_.density = 1; __id829_.sensor = false; __id829_.transparent = false; try { __id829_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id840__koen(){ try { __id840_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id840_.deathZone = true; __id840_.deathZoneBlink = true; __id840_.density = 0; __id840_.sensor = false; __id840_.transparent = true; try { __id840_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id830__koen(){ try { __id830_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id830_.deathZone = true; __id830_.deathZoneBlink = false; __id830_.density = 1; __id830_.sensor = false; __id830_.transparent = false; try { __id830_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id832__koen(){ try { __id832_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id832_.deathZone = true; __id832_.deathZoneBlink = false; __id832_.density = 1; __id832_.sensor = false; __id832_.transparent = false; try { __id832_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id834__koen(){ try { __id834_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id834_.deathZone = true; __id834_.deathZoneBlink = false; __id834_.density = 1; __id834_.sensor = false; __id834_.transparent = false; try { __id834_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id836__koen(){ try { __id836_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id836_.deathZone = true; __id836_.deathZoneBlink = false; __id836_.density = 1; __id836_.sensor = false; __id836_.transparent = false; try { __id836_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id838__koen(){ try { __id838_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id838_.deathZone = true; __id838_.deathZoneBlink = false; __id838_.density = 1; __id838_.sensor = false; __id838_.transparent = false; try { __id838_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id815__koen(){ try { __id815_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id815_.deathZone = true; __id815_.deathZoneBlink = false; __id815_.density = 1; __id815_.sensor = false; __id815_.transparent = false; try { __id815_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 198
//GGJ4door (koen.GGJ4door) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class GGJ4door extends iBody { public function GGJ4door(){ __setProp_s3_koen(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 199
//lever (koen.lever) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class lever extends iBody { public var __id842_:triangle; public var __id841_:iRectangle; public function lever(){ __setProp___id841__koen(); __setProp___id842__koen(); } function __setProp___id841__koen(){ try { __id841_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id841_.deathZone = false; __id841_.deathZoneBlink = true; __id841_.density = 1; __id841_.sensor = false; __id841_.transparent = false; try { __id841_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id842__koen(){ try { __id842_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id842_.deathZone = false; __id842_.deathZoneBlink = true; __id842_.density = 3; __id842_.sensor = false; __id842_.transparent = false; try { __id842_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 200
//lid (koen.lid) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class lid extends iBody { public var __id845_:iRectangle; public var __id844_:iRectangle; public var __id843_:iRectangle; public function lid(){ __setProp___id843__koen(); __setProp___id844__koen(); __setProp___id845__koen(); } function __setProp___id844__koen(){ try { __id844_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id844_.deathZone = true; __id844_.deathZoneBlink = true; __id844_.density = 1; __id844_.sensor = false; __id844_.transparent = false; try { __id844_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id845__koen(){ try { __id845_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id845_.deathZone = false; __id845_.deathZoneBlink = true; __id845_.density = 1; __id845_.sensor = false; __id845_.transparent = false; try { __id845_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id843__koen(){ try { __id843_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id843_.deathZone = false; __id843_.deathZoneBlink = true; __id843_.density = 1; __id843_.sensor = false; __id843_.transparent = false; try { __id843_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 201
//mainmenubody (koen.mainmenubody) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class mainmenubody extends iBody { public function mainmenubody(){ __setProp_s3_koen(); __setProp_s2_koen(); __setProp_s1_koen(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s2_koen(){ try { s2["componentInspectorSetting"] = true; } catch(e:Error) { }; s2.deathZone = false; s2.deathZoneBlink = true; s2.density = 1; s2.sensor = false; s2.transparent = false; try { s2["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s1_koen(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = false; s1.deathZoneBlink = true; s1.density = 1; s1.sensor = false; s1.transparent = false; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 202
//new1Balk (koen.new1Balk) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new1Balk extends iBody { public function new1Balk(){ __setProp_s3_koen(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 203
//new1Block (koen.new1Block) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new1Block extends iBody { public function new1Block(){ __setProp_s3_koen(); __setProp_s3_koen_1(); __setProp_s3_koen_2(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s3_koen_1(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s3_koen_2(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 204
//new2Block (koen.new2Block) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new2Block extends iBody { public function new2Block(){ __setProp_s3_koen(); __setProp_s3_koen_1(); __setProp_s3_koen_2(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 2; s3.sensor = false; s3.transparent = true; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s3_koen_1(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 2; s3.sensor = false; s3.transparent = true; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s3_koen_2(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 2; s3.sensor = false; s3.transparent = true; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 205
//new4chain (koen.new4chain) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new4chain extends iBody { public var __id855_:iRectangle; public function new4chain(){ __setProp___id855__koen(); } function __setProp___id855__koen(){ try { __id855_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id855_.deathZone = false; __id855_.deathZoneBlink = true; __id855_.density = 1; __id855_.sensor = false; __id855_.transparent = true; try { __id855_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 206
//new4chainstart (koen.new4chainstart) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new4chainstart extends iBody { public var __id850_:iRectangle; public var __id849_:iCircle; public var __id848_:iRectangle; public var __id847_:iCircle; public function new4chainstart(){ __setProp___id847__koen(); __setProp___id848__koen(); __setProp___id849__koen(); __setProp___id850__koen(); } function __setProp___id850__koen(){ try { __id850_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id850_.deathZone = false; __id850_.deathZoneBlink = true; __id850_.density = 1; __id850_.sensor = false; __id850_.transparent = false; try { __id850_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id847__koen(){ try { __id847_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id847_.deathZone = false; __id847_.deathZoneBlink = true; __id847_.density = 0.1; __id847_.sensor = false; __id847_.transparent = false; try { __id847_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id848__koen(){ try { __id848_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id848_.deathZone = false; __id848_.deathZoneBlink = true; __id848_.density = 1; __id848_.sensor = false; __id848_.transparent = false; try { __id848_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id849__koen(){ try { __id849_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id849_.deathZone = false; __id849_.deathZoneBlink = true; __id849_.density = 0.1; __id849_.sensor = false; __id849_.transparent = false; try { __id849_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 207
//new9door (koen.new9door) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new9door extends iBody { public function new9door(){ __setProp_s3_koen(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 208
//square (koen.square) package koen { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class square extends iBody { public function square(){ __setProp_s3_koen(); } function __setProp_s3_koen(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package koen
Section 209
//triangle (koen.triangle) package koen { import spill.bipole.editor.*; public dynamic class triangle extends iPolygon { } }//package koen
Section 210
//creditsblock (lars.creditsblock) package lars { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class creditsblock extends iBody { public var __id368_:iCircle; public var __id367_:iCircle; public var __id366_:iCircle; public var __id365_:iCircle; public function creditsblock(){ __setProp_s3_lars(); __setProp___id365__lars(); __setProp___id366__lars(); __setProp___id367__lars(); __setProp___id368__lars(); } function __setProp___id365__lars(){ try { __id365_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id365_.deathZone = false; __id365_.deathZoneBlink = true; __id365_.density = 1; __id365_.sensor = false; __id365_.transparent = false; try { __id365_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id366__lars(){ try { __id366_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id366_.deathZone = false; __id366_.deathZoneBlink = true; __id366_.density = 1; __id366_.sensor = false; __id366_.transparent = false; try { __id366_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id367__lars(){ try { __id367_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id367_.deathZone = false; __id367_.deathZoneBlink = true; __id367_.density = 1; __id367_.sensor = false; __id367_.transparent = false; try { __id367_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id368__lars(){ try { __id368_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id368_.deathZone = false; __id368_.deathZoneBlink = true; __id368_.density = 1; __id368_.sensor = false; __id368_.transparent = false; try { __id368_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s3_lars(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = false; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package lars
Section 211
//ComeTogetherSound (sfx.ComeTogetherSound) package sfx { import flash.media.*; public dynamic class ComeTogetherSound extends Sound { } }//package sfx
Section 212
//ContactSound (sfx.ContactSound) package sfx { import flash.media.*; public dynamic class ContactSound extends Sound { } }//package sfx
Section 213
//DeathSound (sfx.DeathSound) package sfx { import flash.media.*; public dynamic class DeathSound extends Sound { } }//package sfx
Section 214
//InGameMusic (sfx.InGameMusic) package sfx { import flash.media.*; public dynamic class InGameMusic extends Sound { } }//package sfx
Section 215
//MagnetOffSound (sfx.MagnetOffSound) package sfx { import flash.media.*; public dynamic class MagnetOffSound extends Sound { } }//package sfx
Section 216
//MagnetOnSound (sfx.MagnetOnSound) package sfx { import flash.media.*; public dynamic class MagnetOnSound extends Sound { } }//package sfx
Section 217
//MenuMusic (sfx.MenuMusic) package sfx { import flash.media.*; public dynamic class MenuMusic extends Sound { } }//package sfx
Section 218
//PolaritySwitchSound (sfx.PolaritySwitchSound) package sfx { import flash.media.*; public dynamic class PolaritySwitchSound extends Sound { } }//package sfx
Section 219
//StartLevelSound (sfx.StartLevelSound) package sfx { import flash.media.*; public dynamic class StartLevelSound extends Sound { } }//package sfx
Section 220
//SwitchSound (sfx.SwitchSound) package sfx { import flash.media.*; public dynamic class SwitchSound extends Sound { } }//package sfx
Section 221
//creditsblock (spil.creditsblock) package spil { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class creditsblock extends iBody { public function creditsblock(){ __setProp_s3_spil(); } function __setProp_s3_spil(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = false; s3.density = 1; s3.sensor = false; s3.transparent = true; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spil
Section 222
//QualityControl (spill.bipole.controls.QualityControl) package spill.bipole.controls { import flash.events.*; import flash.display.*; import spill.bipole.data.*; import spill.bipole.utils.*; public class QualityControl extends Sprite { private var mc:MovieClip; public function QualityControl(_arg1:MovieClip){ mc = _arg1; Utils.initButton(mc, clicked); mc.icon.gotoAndStop(Data.quality); } private function clicked(_arg1:Event):void{ if (Data.quality == "high"){ Data.quality = "low"; } else { if (Data.quality == "medium"){ Data.quality = "high"; } else { Data.quality = "medium"; }; }; mc.icon.gotoAndStop(Data.quality); mc.stage.quality = Data.quality; } } }//package spill.bipole.controls
Section 223
//VolumeControl (spill.bipole.controls.VolumeControl) package spill.bipole.controls { import flash.events.*; import flash.display.*; import spill.bipole.data.*; import spill.bipole.utils.*; public class VolumeControl extends Sprite { private var prop:String; private var mc:MovieClip; public function VolumeControl(_arg1:MovieClip, _arg2:String){ mc = _arg1; Utils.initButton(mc, clicked); prop = _arg2; mc.icon.gotoAndStop((Data[prop] + 1)); } private function clicked(_arg1:Event):void{ var _local2 = Data; var _local3 = prop; var _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; Data[prop] = (Data[prop] % 4); mc.icon.gotoAndStop((Data[prop] + 1)); } } }//package spill.bipole.controls
Section 224
//Analytics (spill.bipole.data.Analytics) package spill.bipole.data { import flash.display.*; import com.google.analytics.*; public class Analytics { private static var enabled:Boolean = true; private static var mainScreenVisited:Boolean = false; private static var account:String = "UA-6695967-1"; private static var tracker:AnalyticsTracker; private static var gameCompleted:Boolean = false; private static var fastTimeAchieved:Boolean = false; private static var gameName:String = "Bipole"; public static function gameCompletedEvent():void{ if (((!(gameCompleted)) && (enabled))){ gameCompleted = true; tracker.trackEvent(gameName, "all levels completed", "per session", 0); }; } public static function mainScreenEvent():void{ if (((!(mainScreenVisited)) && (enabled))){ mainScreenVisited = true; tracker.trackEvent(gameName, "mainscreen viewed", "per session", 0); }; } public static function initialize(_arg1:DisplayObject, _arg2:Boolean=false):void{ if (enabled){ tracker = new GATracker(_arg1, account, "AS3", _arg2); }; } public static function fastTimeAchievedEvent():void{ if (((!(fastTimeAchieved)) && (enabled))){ fastTimeAchieved = true; tracker.trackEvent(gameName, "under 11 minutes", "per session", 0); }; } } }//package spill.bipole.data
Section 225
//Data (spill.bipole.data.Data) package spill.bipole.data { import flash.net.*; import spill.bipole.engine.*; import spill.bipole.sound.*; import spill.localisation.*; public class Data { private static const totalScores:int = 10; private static var names:Array = ["Tomas", "Lars", "Koen", "Mike", "Harmen", "Tirza", "Micheal", "Thomas", "Kim", "Niels"]; private static var times:Array = [1000000, 2000000, 3000000, 0x3D0900, 5000000, 6000000, 7000000, 0x7A1200, 9000000, 10000000]; private static var reset:Boolean = false; private static var debug:Boolean = false; private static var version:Number = 0.994; private static var contents:Object; private static var so:SharedObject; private static var settings:Object; private static function unlockNext2():void{ var _local4:LevelData; var _local1:int; var _local2:Boolean = SpilGame.isExternal; var _local3:int; while (_local3 < Levels.totalLevels) { if (((_local2) && ((_local3 == 20)))){ return; }; _local4 = contents.levels[_local3]; if (!_local4.unlocked){ _local4.unlocked = true; var _temp1 = _local1; _local1 = (_local1 + 1); if (_temp1){ return; }; }; _local3++; }; } public static function get soundVolume():Number{ return (contents.settings.soundVolume); } public static function getLevel(_arg1:int):LevelData{ return (contents.levels[_arg1]); } public static function initialize():void{ try { so = SharedObject.getLocal(("Bipole2v" + version), "/"); } catch(e:Error) { trace(("Error getting cookie " + e.message)); }; trace("after error"); if (((((((((!(so)) || (!(so.data.version)))) || ((so.data.version < version)))) || (!(so.data.contents)))) || (reset))){ createContents(); } else { loadContents(); }; } public static function set soundVolume(_arg1:Number):void{ SoundFX.volume = (_arg1 / 3); contents.settings.soundVolume = _arg1; } public static function isGameComplete():Boolean{ var _local2:LevelData; var _local1:int; while (_local1 < Levels.totalLevels) { _local2 = contents.levels[_local1]; if (!_local2.complete){ return (false); }; _local1++; }; Analytics.gameCompletedEvent(); return (true); } public static function set quality(_arg1:String):void{ contents.settings.quality = _arg1; } public static function getScores():Array{ return (contents.scores); } public static function get musicVolume():Number{ return (contents.settings.musicVolume); } private static function loadContents():void{ contents = so.data.contents; settings = contents.settings; soundVolume = soundVolume; musicVolume = musicVolume; } public static function submitScore(_arg1:int, _arg2:String):int{ var _local4:HighscoreData; var _local5:HighscoreData; var _local3:int; while (_local3 < totalScores) { _local4 = contents.scores[_local3]; if (_arg1 < _local4.time){ _local5 = new HighscoreData(); _local5.name = _arg2; _local5.time = _arg1; contents.scores.splice(_local3, 0, _local5); contents.scores.pop(); return (_local3); }; _local3++; }; return (totalScores); } public static function levelCompleted(_arg1:int, _arg2:uint):void{ var _local3:LevelData = getLevel(_arg1); if (!_local3.complete){ _local3.complete = true; unlockNext2(); }; if (_arg2 < _local3.bestTime){ _local3.bestTime = _arg2; }; isGameComplete(); } private static function createContents():void{ var _local2:HighscoreData; contents = new Object(); contents.settings = {soundVolume:3, musicVolume:3, quality:"medium"}; contents.levels = new Array(); var _local1:int; while (_local1 < Levels.totalLevels) { contents.levels[_local1] = new LevelData(); if (debug){ contents.levels[_local1].unlocked = true; }; _local1++; }; contents.levels[0].unlocked = true; contents.scores = new Array(); _local1 = 0; while (_local1 < totalScores) { _local2 = new HighscoreData(); _local2.name = names[_local1]; _local2.time = times[_local1]; contents.scores[_local1] = _local2; _local1++; }; if (so){ so.data.version = version; so.data.contents = contents; }; } public static function getTotalTime():int{ var _local3:LevelData; var _local1:int; var _local2:int; while (_local2 < Levels.totalLevels) { _local3 = contents.levels[_local2]; _local1 = (_local1 + _local3.bestTime); _local2++; }; if (_local1 < ((11 * 60) * 1000)){ Analytics.fastTimeAchievedEvent(); }; return (_local1); } public static function set musicVolume(_arg1:Number):void{ Music.volume = (_arg1 / 3); contents.settings.musicVolume = _arg1; } public static function get quality():String{ return (contents.settings.quality); } registerClassAlias("spill.bipole.data.LevelData", LevelData); registerClassAlias("spill.bipole.data.HighscoreData", HighscoreData); } }//package spill.bipole.data
Section 226
//HighscoreData (spill.bipole.data.HighscoreData) package spill.bipole.data { import flash.utils.*; public class HighscoreData implements IExternalizable { public var name:String; public var time:int; public function HighscoreData():void{ } public function readExternal(_arg1:IDataInput):void{ name = _arg1.readUTF(); time = _arg1.readInt(); } public function writeExternal(_arg1:IDataOutput):void{ _arg1.writeUTF(name); _arg1.writeInt(time); } } }//package spill.bipole.data
Section 227
//LevelData (spill.bipole.data.LevelData) package spill.bipole.data { import flash.utils.*; public class LevelData implements IExternalizable { public var bestTime:int;// = 200000 public var unlocked:Boolean;// = false public var complete:Boolean;// = false public function readExternal(_arg1:IDataInput):void{ unlocked = _arg1.readBoolean(); complete = _arg1.readBoolean(); bestTime = _arg1.readInt(); } public function writeExternal(_arg1:IDataOutput):void{ _arg1.writeBoolean(unlocked); _arg1.writeBoolean(complete); _arg1.writeInt(bestTime); } } }//package spill.bipole.data
Section 228
//beam (spill.bipole.editor.skins.beam) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class beam extends iSkin { } }//package spill.bipole.editor.skins
Section 229
//bolt (spill.bipole.editor.skins.bolt) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class bolt extends iSkin { } }//package spill.bipole.editor.skins
Section 230
//boltangles (spill.bipole.editor.skins.boltangles) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class boltangles extends iSkin { } }//package spill.bipole.editor.skins
Section 231
//box (spill.bipole.editor.skins.box) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class box extends iSkin { } }//package spill.bipole.editor.skins
Section 232
//circleAngledHole (spill.bipole.editor.skins.circleAngledHole) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class circleAngledHole extends iSkin { } }//package spill.bipole.editor.skins
Section 233
//circlesmall (spill.bipole.editor.skins.circlesmall) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class circlesmall extends iSkin { } }//package spill.bipole.editor.skins
Section 234
//circlespot (spill.bipole.editor.skins.circlespot) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class circlespot extends iSkin { } }//package spill.bipole.editor.skins
Section 235
//skull (spill.bipole.editor.skins.skull) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class skull extends iSkin { } }//package spill.bipole.editor.skins
Section 236
//triangle (spill.bipole.editor.skins.triangle) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class triangle extends iSkin { } }//package spill.bipole.editor.skins
Section 237
//wheel (spill.bipole.editor.skins.wheel) package spill.bipole.editor.skins { import spill.bipole.editor.*; public dynamic class wheel extends iSkin { } }//package spill.bipole.editor.skins
Section 238
//iBody (spill.bipole.editor.iBody) package spill.bipole.editor { import flash.display.*; public class iBody extends MovieClip { public var s3:iRectangle; public var disableSkinning:Boolean;// = false public var isBullet:Boolean;// = false public var fixedRotation:Boolean;// = false public var s1:iCircle; public var s2:iCircle; } }//package spill.bipole.editor
Section 239
//iCircle (spill.bipole.editor.iCircle) package spill.bipole.editor { public class iCircle extends iShape { } }//package spill.bipole.editor
Section 240
//iLevelDescriptor (spill.bipole.editor.iLevelDescriptor) package spill.bipole.editor { import flash.display.*; public class iLevelDescriptor extends MovieClip { public var angularDamping:Number;// = 0.1 public var friction:Number;// = 0.1 public var nodeForce:Number;// = 4 public var restitution:Number;// = 0.5 public var gravity:Number;// = 10 public var linearDamping:Number;// = 0.1 } }//package spill.bipole.editor
Section 241
//iMagnet (spill.bipole.editor.iMagnet) package spill.bipole.editor { import flash.display.*; public class iMagnet extends MovieClip { public var state:Boolean;// = true public var force:Number;// = 10 public var inner:MovieClip; public var type:String;// = "positive" public var outer:MovieClip; } }//package spill.bipole.editor
Section 242
//iNode (spill.bipole.editor.iNode) package spill.bipole.editor { import flash.display.*; public class iNode extends MovieClip { public var maxSpeed:Number;// = 5 public var placeholder:MovieClip; public var type:String;// = "positive" public var force:Number;// = 10 public var range:Number;// = 100 } }//package spill.bipole.editor
Section 243
//iPolygon (spill.bipole.editor.iPolygon) package spill.bipole.editor { public class iPolygon extends iShape { } }//package spill.bipole.editor
Section 244
//iPolyNode (spill.bipole.editor.iPolyNode) package spill.bipole.editor { import flash.display.*; public class iPolyNode extends MovieClip { } }//package spill.bipole.editor
Section 245
//iRectangle (spill.bipole.editor.iRectangle) package spill.bipole.editor { public class iRectangle extends iShape { } }//package spill.bipole.editor
Section 246
//iRevoluteJoint (spill.bipole.editor.iRevoluteJoint) package spill.bipole.editor { import flash.display.*; public class iRevoluteJoint extends MovieClip { public var motorSpeed:Number;// = 0 public var collideConnected:Boolean;// = false public var body1:String;// = "" public var body2:String;// = "" public var placeholder:MovieClip; public var motor:Boolean;// = false public var upperLimit:Number;// = 60 public var lowerLimit:Number;// = -60 public var limit:Boolean;// = false public var motorForce:Number;// = 0 public var transparent:Boolean;// = true } }//package spill.bipole.editor
Section 247
//iShape (spill.bipole.editor.iShape) package spill.bipole.editor { import flash.display.*; public class iShape extends MovieClip { public var transparent:Boolean;// = false public var deathZone:Boolean;// = false public var density:Number;// = 0 public var sensor:Boolean;// = false public var deathZoneBlink:Boolean;// = true } }//package spill.bipole.editor
Section 248
//iSkin (spill.bipole.editor.iSkin) package spill.bipole.editor { import flash.display.*; public class iSkin extends MovieClip { } }//package spill.bipole.editor
Section 249
//iSwitch (spill.bipole.editor.iSwitch) package spill.bipole.editor { import flash.display.*; public class iSwitch extends MovieClip { public var placeholder:MovieClip; public var switchOnce:Boolean;// = false public var magnets:String;// = "" public var type:String;// = "state" } }//package spill.bipole.editor
Section 250
//LevelController (spill.bipole.engine.controllers.LevelController) package spill.bipole.engine.controllers { import flash.events.*; import spill.physics.*; import Box2D.Collision.*; import spill.bipole.engine.parts.*; import spill.bipole.engine.*; public class LevelController extends spElement { private var bodiesByName:Object; private var groundBody:spBody; private var nodesToKill:Object; public function LevelController(){ bodiesByName = new Object(); groundBody = new spBody(); nodesToKill = new Object(); super(); filter.categoryBits = Engine.levelBit; filter.maskBits = (filter.maskBits & ~(Engine.magnetBit)); addBody(groundBody); } override public function addBody(_arg1:spBody):void{ if (_arg1.name){ bodiesByName[_arg1.name] = _arg1; }; super.addBody(_arg1); } override protected function addToWorld(_arg1:spWorld):void{ _arg1.addEventListener("afterStep", renderBodies, false, 0, true); } public function addGroundShape(_arg1:Shape):void{ _arg1.density = 0; groundBody.addShape(_arg1); } public function getBodyByName(_arg1:String):Body{ return (bodiesByName[_arg1]); } private function renderBodies(_arg1:Event):void{ var _local2:spBody; var _local3:Node; for each (_local2 in _bodies) { if ((_local2 is Body)){ Body(_local2).render(); }; }; for each (_local3 in nodesToKill) { _local3.die(); }; nodesToKill = new Object(); } override public function onAddContact(_arg1:b2ContactPoint, _arg2:spShape, _arg3:spShape):void{ var _local4:Shape; if ((_arg2 is Shape)){ _local4 = Shape(_arg2); if (((_local4.deathZone) && ((_arg3.parent is Node)))){ nodesToKill[_arg3.parent.id] = _arg3.parent; }; }; } } }//package spill.bipole.engine.controllers
Section 251
//MagnetController (spill.bipole.engine.controllers.MagnetController) package spill.bipole.engine.controllers { import spill.physics.*; import Box2D.Common.Math.*; import Box2D.Collision.*; import spill.bipole.engine.parts.*; import spill.bipole.engine.*; import spill.bipole.sound.*; public class MagnetController extends spElement { private var switches:Array; private var maxForce:Number;// = 200 private var magnets:Object; private var mainBody:spBody; public function MagnetController():void{ mainBody = new spBody(); magnets = new Object(); switches = new Array(); super(); filter.categoryBits = Engine.magnetBit; filter.maskBits = (filter.maskBits & ~(Engine.levelBit)); filter.groupIndex = -1; addBody(mainBody); useGlobalDensity = false; density = 0; } public function addMagnet(_arg1:Magnet):void{ mainBody.addShape(_arg1); if (_arg1.name){ magnets[_arg1.name] = _arg1; }; } public function removeMagnet(_arg1:Magnet):void{ mainBody.removeShape(_arg1); if (_arg1.name){ delete magnets[_arg1.name]; }; } public function init():void{ var _local1:Switch; for each (_local1 in switches) { _local1.initialise(); }; } public function getMagnetByName(_arg1:String):Magnet{ return (magnets[_arg1]); } override public function onPersistContact(_arg1:b2ContactPoint, _arg2:spShape, _arg3:spShape):void{ var _local4:Magnet; var _local5:Node; var _local6:b2Vec2; var _local7:Number; var _local8:Number; if ((_arg2 is Magnet)){ _local4 = Magnet(_arg2); if (((_local4.state) && ((_arg3.parent is Node)))){ _local5 = Node(_arg3.parent); _local6 = _local5.position.Copy(); _local6.Subtract(_local4.position); _local7 = _local6.Length(); if ((((_local7 < _local5.radius)) && (!((_local5.polarity == _local4.polarity))))){ _local5.polarity = !(_local5.polarity); SoundFX.playSound(Sounds.polaritySwitchSound, 1, 2); }; _local8 = ((_local5.polarity == _local4.polarity)) ? 1 : -1; _local6.Normalize(); _local6.Multiply((1 / _local7)); _local6.Multiply(_local8); _local6.Multiply(_local4.power); if (_local6.LengthSquared() > (maxForce * maxForce)){ _local6.Normalize(); _local6.Multiply(maxForce); }; _local5.ref.ApplyForce(_local6, _local5.position); }; } else { if ((_arg2 is Switch)){ Switch(_arg2).switchActivated(); }; }; } public function addSwitch(_arg1:Switch):void{ mainBody.addShape(_arg1); switches.push(_arg1); } } }//package spill.bipole.engine.controllers
Section 252
//NodeController (spill.bipole.engine.controllers.NodeController) package spill.bipole.engine.controllers { import flash.events.*; import flash.display.*; import flash.utils.*; import spill.physics.*; import Box2D.Common.Math.*; import spill.bipole.engine.parts.*; import spill.bipole.engine.*; import spill.bipole.sound.*; public class NodeController extends spElement { public var nodeForce:Number;// = 4 private var locked:Boolean;// = false private var nodesToRemove:Array; private var nodes:Array; public function NodeController(){ nodes = new Array(); nodesToRemove = new Array(); super(); } public function killNode(_arg1:Node):void{ setTimeout(levelFailed, 1000); } private function levelFailed():void{ dispatchEvent(new Event("levelFailed")); } public function addNode(_arg1:Node):void{ nodes.push(_arg1); addBody(_arg1); } public function removeNode(_arg1:Node):void{ nodes.splice(nodes.indexOf(_arg1), 1); removeBody(_arg1); } private function removeNodes():void{ var _local1:Array = nodesToRemove.shift(); removeNode(_local1[0]); removeNode(_local1[1]); _local1[2].stop(); _local1[2].parent.removeChild(_local1[2]); if (!nodes.length){ dispatchEvent(new Event("levelComplete")); }; } override protected function addToWorld(_arg1:spWorld):void{ _arg1.addEventListener("afterStep", renderNodes, false, 0, true); } private function renderNodes(_arg1:Event):void{ var _local2:Node; var _local3:Node; var _local5:Number; var _local8:int; var _local9:b2Vec2; var _local10:MovieClip; var _local4:b2Vec2 = new b2Vec2(); var _local6:Array = nodes.concat(); var _local7:int; while ((((_local7 < (_local6.length - 1))) && (!(locked)))) { _local8 = (_local7 + 1); while (_local8 < _local6.length) { _local2 = _local6[_local7]; _local3 = _local6[_local8]; if (((_local2.alive) && (_local3.alive))){ _local4.SetV(_local2.position); _local4.Subtract(_local3.position); _local5 = _local4.Length(); if ((((_local5 < (_local2.radius + _local3.radius))) && (!((_local2.polarity == _local3.polarity))))){ _local2.join(); _local3.join(); if (Skins.enabled){ _local9 = _local2.position.Copy(); _local9.Add(_local3.position); _local9.Multiply((Engine.drawScale / 2)); _local10 = new Skins.joiningSkin(); new Skins.joiningSkin().addFrameScript((_local10.totalFrames - 1), removeNodes); _local10.x = _local9.x; _local10.y = _local9.y; Engine.instance.display.addChild(_local10); nodesToRemove.push([_local2, _local3, _local10]); SoundFX.playSound(Sounds.comeTogetherSound); } else { removeNode(_local2); removeNode(_local3); _local2.remove(); _local3.remove(); if (!nodes.length){ dispatchEvent(new Event("levelComplete")); }; }; } else { _local4.Normalize(); _local4.Multiply((nodeForce / _local5)); if (_local2.polarity == _local3.polarity){ _local2.ref.ApplyForce(_local4, _local2.position); _local4.Multiply(-1); _local3.ref.ApplyForce(_local4, _local3.position); } else { _local3.ref.ApplyForce(_local4, _local3.position); _local4.Multiply(-1); _local2.ref.ApplyForce(_local4, _local2.position); }; }; }; _local8++; }; _local7++; }; _local5 = nodes.length; _local7 = 0; while (_local7 < _local5) { nodes[_local7].render(); _local7++; }; } public function toggleLock():void{ var _local1:Node; locked = !(locked); for each (_local1 in nodes) { _local1.locked = locked; }; } } }//package spill.bipole.engine.controllers
Section 253
//Body (spill.bipole.engine.parts.Body) package spill.bipole.engine.parts { import flash.display.*; import spill.physics.*; import spill.bipole.editor.*; import spill.bipole.engine.*; public class Body extends spBody { private var idef:iBody; public function Body(_arg1:iBody){ idef = _arg1; name = idef.name; copyProps(); findShapes(); } private function copyProps():void{ def.fixedRotation = idef.fixedRotation; def.isBullet = idef.isBullet; position.x = (idef.x / Engine.drawScale); position.y = (idef.y / Engine.drawScale); angle = (idef.rotation * (Math.PI / 180)); } private function findShapes():void{ var _local3:MovieClip; var _local1:int = idef.numChildren; var _local2:int; while (_local2 < _local1) { if ((idef.getChildAt(_local2) is MovieClip)){ _local3 = MovieClip(idef.getChildAt(_local2)); if ((_local3 is iCircle)){ addShape(new Circle(iCircle(_local3), idef.scaleX, idef.scaleY)); } else { if ((_local3 is iRectangle)){ addShape(new Rectangle(iRectangle(_local3), idef.scaleX, idef.scaleY)); } else { if ((_local3 is iPolygon)){ addShape(new Polygon(iPolygon(_local3), idef.scaleX, idef.scaleY)); }; }; }; }; _local2++; }; } public function render():void{ idef.x = (position.x * Engine.drawScale); idef.y = (position.y * Engine.drawScale); var _local1:Number = (angle * (180 / Math.PI)); while (_local1 > 3600) { _local1 = (_local1 - 3600); }; while (_local1 < -3600) { _local1 = (_local1 + 3600); }; idef.rotation = _local1; } } }//package spill.bipole.engine.parts
Section 254
//Boundary (spill.bipole.engine.parts.Boundary) package spill.bipole.engine.parts { import spill.physics.*; import spill.bipole.engine.*; import spill.physics.shapes.*; public class Boundary extends spBody { public function Boundary(){ createBounds(); useParentDensity = false; density = 0; } private function createBounds():void{ var _local5:Number; var _local6:Number; var _local7:Number; var _local8:spShape; var _local1:Number = 40; var _local2:Number = 1; var _local3:Number = ((250 / Engine.drawScale) + _local2); var _local4:int; while (_local4 < _local1) { _local5 = (((Math.PI * 2) / _local1) * _local4); _local6 = (Math.sin(_local5) * _local3); _local7 = (Math.cos(_local5) * _local3); _local8 = new spRectangle(((_local3 * Math.PI) / _local1), _local2, _local6, _local7, -(_local5)); addShape(_local8); _local4++; }; } } }//package spill.bipole.engine.parts
Section 255
//Circle (spill.bipole.engine.parts.Circle) package spill.bipole.engine.parts { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import spill.bipole.editor.*; import spill.bipole.engine.*; public class Circle extends Shape { public function Circle(_arg1:iCircle, _arg2:Number=1, _arg3:Number=1){ var _local6:b2CircleDef; if (_arg1.scaleX != _arg1.scaleY){ trace("WARNING: circles may only use restricted scaling"); }; if (Math.round((_arg2 * 100)) != Math.round((_arg3 * 100))){ trace("WARNING: bodies containing circles may only use restricted scaling"); }; var _local4:Number = (((_arg1.scaleX * 50) * _arg2) / Engine.drawScale); var _local5:b2Vec2 = new b2Vec2(_arg1.x, _arg1.y); _local5.Multiply((_arg2 / Engine.drawScale)); _local6 = new b2CircleDef(); _local6.radius = _local4; _local6.localPosition = _local5; super(_local6, _arg1); } } }//package spill.bipole.engine.parts
Section 256
//Magnet (spill.bipole.engine.parts.Magnet) package spill.bipole.engine.parts { import flash.display.*; import spill.physics.*; import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import spill.bipole.editor.*; import spill.bipole.engine.*; import flash.geom.*; public class Magnet extends spShape { private var idef:iMagnet; public var power:Number; public var name:String; private var _polarity:Boolean;// = false private var scale:Number; private var _state:Boolean;// = true public var radius:Number; public var position:b2Vec2; private var skin:MovieClip; public function Magnet(_arg1:iMagnet){ idef = _arg1; name = idef.name; power = idef.force; scale = idef.scaleX; radius = ((50 * idef.scaleX) / Engine.drawScale); polarity = (idef.type == "positive"); position = new b2Vec2((idef.x / Engine.drawScale), (idef.y / Engine.drawScale)); state = idef.state; var _local2:b2CircleDef = new b2CircleDef(); _local2.radius = radius; _local2.isSensor = true; _local2.localPosition = position.Copy(); super(_local2); skinInit(); } public function get state():Boolean{ return (_state); } public function toggleState():void{ state = !(_state); } public function set polarity(_arg1:Boolean):void{ _polarity = _arg1; setPolaritySkin(); } public function set state(_arg1:Boolean):void{ _state = _arg1; setStateSkin(); } private function setPolaritySkin():void{ var _local1:ColorTransform; if (Skins.enabled){ if (skin){ idef.removeChild(skin); }; if (_polarity){ skin = new (Skins.magnetPositiveSkin); } else { skin = new (Skins.magnetNegativeSkin); }; skin.stop(); idef.scaleX = (idef.scaleY = 1); idef.addChild(skin); skin.outer.scaleX = (skin.outer.scaleY = scale); if (scale < 1){ skin.inner.scaleX = (skin.inner.scaleY = scale); }; } else { if (_polarity){ _local1 = new ColorTransform(0, 0, 0, 1, 0xFF, 0, 0, 0); } else { _local1 = new ColorTransform(0, 0, 0, 1, 0, 0, 0xFF, 0); }; idef.transform.colorTransform = _local1; }; setStateSkin(); } public function togglePolarity():void{ polarity = !(_polarity); } private function setStateSkin():void{ if (Skins.enabled){ skin.outer.visible = _state; skin.inner.gotoAndStop((_state) ? "on" : "off"); } else { idef.outer.visible = state; }; } private function skinInit():void{ if (Skins.enabled){ idef.removeChild(idef.inner); idef.removeChild(idef.outer); }; setPolaritySkin(); } public function get polarity():Boolean{ return (_polarity); } } }//package spill.bipole.engine.parts
Section 257
//Node (spill.bipole.engine.parts.Node) package spill.bipole.engine.parts { import flash.display.*; import spill.physics.*; import spill.bipole.editor.*; import spill.bipole.engine.*; import spill.bipole.sound.*; import spill.bipole.engine.controllers.*; import spill.physics.shapes.*; import flash.geom.*; public class Node extends spBody { private var maxSpeed:Number;// = 4 public var alive:Boolean;// = true private var _polarity:Boolean;// = false public var radius:Number; private var _locked:Boolean;// = false private var nodeRadius:Number;// = 16 private var idef:iNode; private var skin:MovieClip; public function Node(_arg1:iNode){ idef = _arg1; useParentDensity = false; density = 1; useParentFriction = false; friction = 0.5; maxSpeed = idef.maxSpeed; polarity = (idef.type == "positive"); position.x = (idef.x / Engine.drawScale); position.y = (idef.y / Engine.drawScale); radius = ((idef.scaleX * nodeRadius) / Engine.drawScale); var _local2:spCircle = new spCircle(radius, 0, 0); addShape(_local2); skinInit(); } public function die():void{ if (!alive){ return; }; NodeController(parent).killNode(this); setDeathSkin(); SoundFX.playSound(Sounds.deathSound); alive = false; } private function setLockedSkin():void{ if (Skins.enabled){ if (locked){ skin.gotoAndStop("hold"); } else { skin.gotoAndStop("blink"); }; }; } public function remove():void{ idef.parent.removeChild(idef); } public function get locked():Boolean{ return (_locked); } private function setJoiningSkin():void{ if (Skins.enabled){ skin.gotoAndStop("joining"); }; } public function set locked(_arg1:Boolean):void{ if (!alive){ return; }; _locked = _arg1; density = (_arg1) ? 0 : 1; linearVelocity.Set(0, 0); angularVelocity = 0; setLockedSkin(); } public function render():void{ idef.x = (position.x * Engine.drawScale); idef.y = (position.y * Engine.drawScale); var _local1:Number = (angle * (180 / Math.PI)); while (_local1 > 3600) { _local1 = (_local1 - 3600); }; while (_local1 < -3600) { _local1 = (_local1 + 3600); }; idef.rotation = _local1; var _local2:Number = linearVelocity.Length(); if (_local2 > maxSpeed){ linearVelocity.Normalize(); linearVelocity.Multiply(maxSpeed); }; } public function set polarity(_arg1:Boolean):void{ if (!alive){ return; }; _polarity = _arg1; setPolaritySkin(); } private function setPolaritySkin():void{ var _local1:ColorTransform; if (!Skins.enabled){ if (_polarity){ _local1 = new ColorTransform(0, 0, 0, 1, 0xFF, 0, 0, 0); } else { _local1 = new ColorTransform(0, 0, 0, 1, 0, 0, 0xFF, 0); }; idef.transform.colorTransform = _local1; } else { if (skin){ idef.removeChild(skin); }; if (_polarity){ skin = new Skins.nodePositiveSkin(); } else { skin = new Skins.nodeNegativeSkin(); }; skin.stop(); idef.addChild(skin); setLockedSkin(); }; } public function join():void{ setJoiningSkin(); alive = false; } private function skinInit():void{ if (Skins.enabled){ idef.removeChild(idef.placeholder); }; setPolaritySkin(); } public function get polarity():Boolean{ return (_polarity); } private function setDeathSkin():void{ if (Skins.enabled){ skin.gotoAndStop("death"); }; } } }//package spill.bipole.engine.parts
Section 258
//Polygon (spill.bipole.engine.parts.Polygon) package spill.bipole.engine.parts { import flash.display.*; import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import spill.bipole.editor.*; import spill.bipole.engine.*; public class Polygon extends Shape { private var idef:iPolygon; public function Polygon(_arg1:iPolygon, _arg2:Number=1, _arg3:Number=1){ idef = _arg1; var _local4:b2PolygonDef = createShape(_arg2, _arg3); super(_local4, idef); } private function createShape(_arg1:Number, _arg2:Number):b2PolygonDef{ var _local5:b2Vec2; var _local6:Array; var _local9:DisplayObject; var _local10:b2Vec2; var _local3:int; var _local4:b2PolygonDef = new b2PolygonDef(); _local5 = new b2Vec2(idef.x, idef.y); _local6 = new Array(); _local5.x = (_local5.x * _arg1); _local5.y = (_local5.y * _arg2); _local5.Multiply((1 / Engine.drawScale)); var _local7:int = idef.numChildren; var _local8:int = (_local7 - 1); while (_local8 >= 0) { _local9 = idef.getChildAt(_local8); if ((_local9 is iPolyNode)){ if (_local3 == 8){ trace("WARNING: Polygons may container no more than 8 vertexes"); break; }; _local10 = new b2Vec2((_local9.x * idef.scaleX), (_local9.y * idef.scaleY)); _local10.Multiply((1 / Engine.drawScale)); _local10.MulM(new b2Mat22((idef.rotation * (Math.PI / 180)))); _local6[_local3] = _local10; _local3++; idef.removeChild(_local9); }; _local8--; }; _local4.vertexCount = _local3; _local6.sort(sortOnAngle); _local8 = 0; while (_local8 < _local3) { _local6[_local8].x = (_local6[_local8].x * _arg1); _local6[_local8].y = (_local6[_local8].y * _arg2); _local6[_local8].Add(_local5); _local4.vertices[_local8] = _local6[_local8]; _local8++; }; return (_local4); } private function sortOnAngle(_arg1:b2Vec2, _arg2:b2Vec2):Number{ var _local3:Number = Math.atan2(_arg1.y, _arg1.x); _local3 = ((_local3 < 0)) ? (_local3 + (Math.PI * 2)) : _local3; var _local4:Number = Math.atan2(_arg2.y, _arg2.x); _local4 = ((_local4 < 0)) ? (_local4 + (Math.PI * 2)) : _local4; return (((_local3 < _local4)) ? -1 : 1); } } }//package spill.bipole.engine.parts
Section 259
//Rectangle (spill.bipole.engine.parts.Rectangle) package spill.bipole.engine.parts { import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import spill.bipole.editor.*; import spill.bipole.engine.*; public class Rectangle extends Shape { public function Rectangle(_arg1:iRectangle, _arg2:Number=1, _arg3:Number=1){ var _local4:Number = ((_arg1.scaleX * 50) / Engine.drawScale); var _local5:Number = ((_arg1.scaleY * 50) / Engine.drawScale); var _local6:Number = (_arg1.rotation * (Math.PI / 180)); var _local7:b2Vec2 = new b2Vec2((_arg1.x * _arg2), (_arg1.y * _arg3)); _local7.Multiply((1 / Engine.drawScale)); var _local8:b2PolygonDef = new b2PolygonDef(); _local8.SetAsOrientedBox(_local4, _local5, new b2Vec2(0, 0), _local6); var _local9:int; while (_local9 < 4) { _local8.vertices[_local9].x = (_local8.vertices[_local9].x * _arg2); _local8.vertices[_local9].y = (_local8.vertices[_local9].y * _arg3); _local8.vertices[_local9].Add(_local7); _local9++; }; super(_local8, _arg1); } } }//package spill.bipole.engine.parts
Section 260
//RevoluteJoint (spill.bipole.engine.parts.RevoluteJoint) package spill.bipole.engine.parts { import spill.physics.*; import Box2D.Common.Math.*; import spill.bipole.editor.*; import spill.bipole.engine.*; import spill.bipole.engine.controllers.*; import spill.physics.joints.*; public class RevoluteJoint extends spRevoluteJoint { private var idef:iRevoluteJoint; public function RevoluteJoint(_arg1:iRevoluteJoint){ idef = _arg1; idef.visible = !(idef.transparent); var _local2:b2Vec2 = new b2Vec2((idef.x / Engine.drawScale), (idef.y / Engine.drawScale)); super(null, null, _local2); def.collideConnected = idef.collideConnected; def.enableMotor = idef.motor; def.motorSpeed = idef.motorSpeed; def.maxMotorTorque = idef.motorForce; def.enableLimit = idef.limit; def.upperAngle = idef.upperLimit; def.lowerAngle = idef.lowerLimit; } override protected function initialise(_arg1:spWorld):void{ body1 = LevelController(parent).getBodyByName(idef.body1); body2 = LevelController(parent).getBodyByName(idef.body2); super.initialise(_arg1); } } }//package spill.bipole.engine.parts
Section 261
//Shape (spill.bipole.engine.parts.Shape) package spill.bipole.engine.parts { import flash.events.*; import spill.physics.*; import Box2D.Collision.Shapes.*; import spill.bipole.editor.*; import spill.bipole.engine.*; import flash.geom.*; public class Shape extends spShape { public var deathZone:Boolean;// = false private var b1:Number; private var g2:Number; private var dir:Number;// = 1 private var r2:Number; private var b2:Number; private var g1:Number; private var pos:Number;// = 0 private var len:Number;// = 10 private var idef:iShape; private var r1:Number; public function Shape(_arg1:b2ShapeDef, _arg2:iShape){ super(_arg1); idef = _arg2; useParentDensity = false; useParentFilter = false; density = idef.density; _arg1.isSensor = idef.sensor; deathZone = idef.deathZone; idef.visible = !(idef.transparent); filter.categoryBits = Engine.levelBit; filter.maskBits = (filter.maskBits & ~(Engine.magnetBit)); if (deathZone){ if (idef.deathZoneBlink){ r1 = ((Skins.deathZoneColor1 & 0xFF0000) >> 16); r2 = ((Skins.deathZoneColor2 & 0xFF0000) >> 16); g1 = ((Skins.deathZoneColor1 & 0xFF00) >> 8); g2 = ((Skins.deathZoneColor2 & 0xFF00) >> 8); b1 = (Skins.deathZoneColor1 & 0xFF); b2 = (Skins.deathZoneColor2 & 0xFF); idef.addEventListener(Event.ENTER_FRAME, deathZoneBlink, false, 0, true); deathZoneBlink(); } else { Skins.setSkinColor(idef, Skins.deathZoneColor1); }; }; } private function deathZoneBlink(_arg1:Event=null):void{ pos = (pos + dir); var _local2:Number = (pos / len); var _local3:int = Math.round((r1 + ((r2 - r1) * _local2))); var _local4:int = Math.round((g1 + ((g2 - g1) * _local2))); var _local5:int = Math.round((b1 + ((b2 - b1) * _local2))); if ((((pos == 0)) || ((pos == len)))){ dir = (dir * -1); }; idef.transform.colorTransform = new ColorTransform(0, 0, 0, 1, _local3, _local4, _local5, 0); } } }//package spill.bipole.engine.parts
Section 262
//Switch (spill.bipole.engine.parts.Switch) package spill.bipole.engine.parts { import flash.display.*; import flash.utils.*; import spill.physics.*; import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import spill.bipole.editor.*; import spill.bipole.engine.*; import spill.bipole.sound.*; import spill.bipole.engine.controllers.*; public class Switch extends spShape { private var type:Boolean; private var skin:MovieClip; private var defaultWidth:Number;// = 30 private var defaultHeight:Number;// = 40 private var magnets:Array; private var hasSwitched:Boolean;// = false private var state:Boolean;// = false private var switchOnce:Boolean; public var lastSwitchTime:Number;// = 0 private var switchDelay:Number;// = 2000 private var idef:iSwitch; public function Switch(_arg1:iSwitch){ idef = _arg1; magnets = new Array(); var _local2:Number = (((defaultWidth * idef.scaleX) * 0.5) / Engine.drawScale); var _local3:Number = (((defaultHeight * idef.scaleY) * 0.5) / Engine.drawScale); var _local4:Number = (idef.rotation * (Math.PI / 180)); var _local5:b2Vec2 = new b2Vec2((idef.x / Engine.drawScale), (idef.y / Engine.drawScale)); var _local6:b2PolygonDef = new b2PolygonDef(); _local6.SetAsOrientedBox(_local2, _local3, _local5, _local4); _local6.isSensor = true; type = (idef.type == "state"); switchOnce = idef.switchOnce; super(_local6); initSkin(); } private function setStateSkin():void{ if (Skins.enabled){ skin.gotoAndStop((state) ? "on" : "off"); }; } private function initSkin():void{ if (Skins.enabled){ idef.removeChild(idef.placeholder); skin = new (Skins.switchSkin); idef.addChild(skin); setStateSkin(); }; } public function initialise():void{ var _local4:Magnet; var _local1:MagnetController = MagnetController(parent.parent); var _local2:Array = idef.magnets.replace(" ", "").split(","); var _local3:int; while (_local3 < _local2.length) { _local4 = _local1.getMagnetByName(_local2[_local3]); if (_local4){ magnets.push(_local4); } else { trace((("Magnet '" + _local2[_local3]) + "' not found for use with a switch")); }; _local3++; }; } public function switchActivated():void{ var _local1:Boolean; var _local2:int; var _local3:Magnet; if (((switchOnce) && (hasSwitched))){ return; }; if ((getTimer() - lastSwitchTime) > switchDelay){ _local2 = 0; while (_local2 < magnets.length) { _local3 = Magnet(magnets[_local2]); if (type){ _local3.toggleState(); _local1 = _local3.state; } else { _local3.togglePolarity(); }; _local2++; }; if (Skins.enabled){ if (type){ SoundFX.playSound((_local1) ? Sounds.magnetOnSound : Sounds.magnetOffSound); } else { SoundFX.playSound(Sounds.polaritySwitchSound); }; SoundFX.playSound(Sounds.switchSound); }; lastSwitchTime = getTimer(); state = !(state); setStateSkin(); if (switchOnce){ hasSwitched = true; idef.alpha = 0.5; }; }; } } }//package spill.bipole.engine.parts
Section 263
//Display (spill.bipole.engine.Display) package spill.bipole.engine { import flash.display.*; import spill.physics.*; public class Display extends spDisplay { public var debug:Sprite; public var level:Sprite; public var background:Sprite; public function Display(_arg1:spWorld){ background = new Sprite(); level = new Sprite(); debug = new Sprite(); super(_arg1); drawScale = Engine.drawScale; addChild(background); addChild(level); addChild(debug); debug.visible = false; dbgDraw.m_fillAlpha = 0.1; debugLayer = debug; } } }//package spill.bipole.engine
Section 264
//Engine (spill.bipole.engine.Engine) package spill.bipole.engine { import flash.events.*; import flash.display.*; import flash.utils.*; import spill.physics.*; import Box2D.Common.Math.*; import spill.bipole.editor.*; import spill.bipole.engine.parts.*; import spill.bipole.engine.controllers.*; import flash.geom.*; import flash.ui.*; public class Engine extends MovieClip { public var world:spWorld; private var leftKeyDown:Boolean;// = false private var iLevel:Sprite; private var magnetController:MagnetController; private var rotateSpeed:Number;// = 0.4 private var demoMode:Boolean; private var background:Sprite; private var levelEnd:Boolean;// = false private var levelController:LevelController; public var display:Display; private var nodeController:NodeController; public var debugDrawing:Boolean;// = false private var gravity:Number;// = 10 private var startTime:int; private var levelComplete:Boolean; private var tutorial:Sprite; public var levelNum:int; private var rightKeyDown:Boolean;// = false private var rotationSpeed:Number;// = 0 private var autoStart:Boolean; public var levelTime:int; public static const magnetBit:uint = 2; public static const characterBit:uint = 1; public static const levelBit:uint = 4; public static const drawScale:Number = 50; public static var skinned:Boolean = false; public static var instance:Engine; public function Engine(_arg1:Sprite, _arg2:Sprite=null, _arg3:Boolean=true, _arg4:Boolean=false, _arg5:Sprite=null){ var _local6:int; var _local7:int; super(); iLevel = _arg1; background = _arg2; autoStart = _arg3; demoMode = _arg4; tutorial = _arg5; instance = this; world = new spWorld(); world.ref.m_allowSleep = false; world.iterations = 5; world.ref.SetContinuousPhysics(false); display = new Display(world); display.drawScale = drawScale; display.mouseChildren = false; display.debugDrawEnabled = debugDrawing; display.level.addChild(iLevel); if (background){ _local6 = background.numChildren; _local7 = 0; while (_local7 < _local6) { background.getChildAt(_local7).filters = []; background.getChildAt(_local7).transform.colorTransform = new ColorTransform(); _local7++; }; display.background.addChild(background); }; addChild(display); world.display = display; if (tutorial){ addChild(tutorial); }; levelController = new LevelController(); magnetController = new MagnetController(); nodeController = new NodeController(); levelController.addBody(new Boundary()); world.addElement(levelController); world.addElement(magnetController); world.addElement(nodeController); loadLevel(); addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); addEventListener(Event.REMOVED_FROM_STAGE, destroy, false, 0, true); } public function init(_arg1:Event=null):void{ removeEventListener(Event.ADDED_TO_STAGE, init, false); if (!demoMode){ nodeController.addEventListener("levelComplete", levelCompleted, false, 0, true); nodeController.addEventListener("levelFailed", levelFailed, false, 0, true); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown, false, 0, true); stage.addEventListener(KeyboardEvent.KEY_UP, keyUp, false, 0, true); } else { rightKeyDown = true; rotateSpeed = 0.15; }; world.addEventListener("afterStep", afterStep, false, 0, true); if (autoStart){ world.start(); }; if (stage){ stage.focus = stage; }; } private function keyDown(_arg1:KeyboardEvent):void{ if (levelEnd){ if ((((_arg1.keyCode == Keyboard.SPACE)) && (levelComplete))){ dispatchEvent(new Event("nextLevel")); } else { if (_arg1.keyCode == 82){ dispatchEvent(new Event("restartLevel")); }; }; } else { if (_arg1.keyCode == Keyboard.LEFT){ leftKeyDown = true; } else { if (_arg1.keyCode == Keyboard.RIGHT){ rightKeyDown = true; } else { if (_arg1.keyCode == Keyboard.SPACE){ nodeController.toggleLock(); }; }; }; }; } private function levelCompleted(_arg1:Event):void{ if (levelEnd){ return; }; levelEnd = true; levelComplete = true; rightKeyDown = false; leftKeyDown = false; levelTime = (getTimer() - startTime); trace(("level time = " + levelTime)); if (Skins.enabled){ addChild(new Skins.levelCompleteScreen()); }; dispatchEvent(new Event("levelCompleted")); } private function loadLevel():void{ var _local1:iLevelDescriptor; var _local4:DisplayObject; var _local2:int = iLevel.numChildren; var _local3:int; while (_local3 < _local2) { _local4 = iLevel.getChildAt(_local3); if ((_local4 is iBody)){ levelController.addBody(new Body(iBody(_local4))); Skins.setSkinType(_local4, true); } else { if ((_local4 is iRevoluteJoint)){ levelController.addJoint(new RevoluteJoint(iRevoluteJoint(_local4))); } else { if ((_local4 is iMagnet)){ magnetController.addMagnet(new Magnet(iMagnet(_local4))); } else { if ((_local4 is iNode)){ nodeController.addNode(new Node(iNode(_local4))); } else { if ((_local4 is iSwitch)){ magnetController.addSwitch(new Switch(iSwitch(_local4))); } else { if ((_local4 is iShape)){ if ((_local4 is iCircle)){ levelController.addGroundShape(new Circle(iCircle(_local4))); } else { if ((_local4 is iRectangle)){ levelController.addGroundShape(new Rectangle(iRectangle(_local4))); } else { if ((_local4 is iPolygon)){ levelController.addGroundShape(new Polygon(iPolygon(_local4))); }; }; }; Skins.setSkinType(_local4, false); } else { if ((_local4 is iSkin)){ Skins.setSkinType(_local4, false); } else { if ((_local4 is iLevelDescriptor)){ _local1 = iLevelDescriptor(_local4); world.gravity.y = _local1.gravity; world.globalRestitution = _local1.restitution; world.globalFriction = _local1.friction; world.globalLinearDamping = 0.05; nodeController.nodeForce = _local1.nodeForce; }; }; }; }; }; }; }; }; _local3++; }; if (_local1){ iLevel.removeChild(_local1); }; magnetController.init(); trace(world.globalLinearDamping); } private function afterStep(_arg1:Event):void{ var _local7:spBody; var _local8:Object; var _local2:Number = rotationSpeed; if (leftKeyDown){ rotationSpeed = (rotationSpeed - rotateSpeed); }; if (rightKeyDown){ rotationSpeed = (rotationSpeed + rotateSpeed); }; rotationSpeed = (rotationSpeed * 0.9); display.rotation = (display.rotation + rotationSpeed); display.background.rotation = (display.background.rotation - (rotationSpeed * 0.5)); var _local3:Number = (display.rotation * (Math.PI / 180)); world.gravity.x = (Math.sin(_local3) * gravity); world.gravity.y = (Math.cos(_local3) * gravity); var _local4:b2Mat22 = new b2Mat22((-(rotationSpeed) * (Math.PI / 180))); var _local5:Number = ((rotationSpeed - _local2) * (Math.PI / 180)); var _local6:Object = levelController.getBodies(); for each (_local7 in _local6) { if (_local7.ref.IsDynamic()){ _local7.linearVelocity.MulM(_local4); _local7.angularVelocity = (_local7.angularVelocity - _local5); }; }; _local8 = nodeController.getBodies(); for each (_local7 in _local8) { if (_local7.ref.IsDynamic()){ _local7.linearVelocity.MulM(_local4); _local7.angularVelocity = (_local7.angularVelocity - _local5); }; }; } private function keyUp(_arg1:KeyboardEvent):void{ if (!levelEnd){ if (_arg1.keyCode == Keyboard.LEFT){ leftKeyDown = false; } else { if (_arg1.keyCode == Keyboard.RIGHT){ rightKeyDown = false; } else { if (_arg1.keyCode == 82){ dispatchEvent(new Event("restartLevel")); }; }; }; }; } private function levelFailed(_arg1:Event):void{ if (levelEnd){ return; }; levelEnd = true; levelComplete = false; rightKeyDown = false; leftKeyDown = false; if (Skins.enabled){ addChild(new Skins.levelFailedScreen()); }; } public function stopEngine():void{ if (world.running){ world.stop(); }; } public function start():void{ trace("start Timer"); startTime = getTimer(); world.start(); } private function disableKeyboard():void{ stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown, false); stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp, false); } private function destroy(_arg1:Event):void{ disableKeyboard(); world.removeEventListener("afterStep", afterStep, false); stopEngine(); world.destroy(); } } }//package spill.bipole.engine
Section 265
//Levels (spill.bipole.engine.Levels) package spill.bipole.engine { import flash.display.*; import gfx.*; import gfx.BG.*; import stuart.*; import spill.bipole.levels.*; import thomas.*; public class Levels { private static var tutorials:Array = [TutorialText1, TutorialText2, TutorialText3, TutorialText4, TutorialText5]; private static var backgrounds:Array = [bg1, bg2, bg3, bg4, bg5, bg6]; private static var levels:Array = [Tutorial1, Tutorial2, level1, Tutorial3, level3, Tutorial4, Tutorial6, Tutorial5, level2, GGJ9, level5, new1, level7, new2, level10, level11, new10, level12, level13, ExampleLevel6, new9, new4, level14, ExampleLevel5, level15, new6, ExampleLevel4, level8, new5, level9, new7, new3, ExampleLevel3, level4, new8]; public static function get totalLevels():int{ return (levels.length); } public static function getBackground(_arg1:int):Sprite{ return (new (backgrounds[(_arg1 % backgrounds.length)])); } public static function getTutorial(_arg1:int):Sprite{ var _local2:Class = tutorials[_arg1]; return (((_local2 is Class)) ? new (_local2) : null); } public static function getLevel(_arg1:int):Sprite{ return (new (levels[_arg1])); } } }//package spill.bipole.engine
Section 266
//Skins (spill.bipole.engine.Skins) package spill.bipole.engine { import flash.display.*; import flash.geom.*; public class Skins { public static var enabled:Boolean = false; public static var backgroundSkins:Array; public static var levelCompleteScreen:Class; public static var deathZoneColor1:uint = 0x660000; public static var deathZoneColor2:uint = 0xFFFFFF; public static var switchSkin:Class; public static var staticBodyColor:uint = 0; public static var joiningSkin:Class; public static var fadeOutColor:uint = 595489; public static var isDarkSkin:Boolean; public static var magnetPositiveSkin:Class; public static var magnetNegativeSkin:Class; public static var backgroundColor:uint = 595489; public static var levelFailedScreen:Class; public static var dynamicBodyColor:uint = 0x333333; public static var skinDetector:Class; public static var nodeNegativeSkin:Class; public static var nodePositiveSkin:Class; public static function setSkinType(_arg1:DisplayObject, _arg2:Boolean):void{ var _local3:uint = (_arg2) ? Skins.dynamicBodyColor : Skins.staticBodyColor; setSkinColor(_arg1, _local3); } public static function detectSkinType():void{ var _local1:MovieClip = new skinDetector(); isDarkSkin = (_local1.version.text == "dark"); trace(("isDarkSkin = " + isDarkSkin)); } public static function setSkinColor(_arg1:DisplayObject, _arg2:uint):void{ var _local3:uint; var _local4:uint; var _local5:uint; var _local6:ColorTransform; if (_arg2){ _local3 = ((_arg2 & 0xFF0000) >> 16); _local4 = ((_arg2 & 0xFF00) >> 8); _local5 = (_arg2 & 0xFF); _local6 = new ColorTransform(1, 1, 1, 1, _local3, _local4, _local5, 0); if (_arg1.transform.colorTransform){ _local6.concat(_arg1.transform.colorTransform); }; _arg1.transform.colorTransform = _local6; }; } } }//package spill.bipole.engine
Section 267
//Sounds (spill.bipole.engine.Sounds) package spill.bipole.engine { public class Sounds { public static var magnetOnSound:Class; public static var magnetOffSound:Class; public static var polaritySwitchSound:Class; public static var startLevelSound:Class; public static var contactSound:Class; public static var comeTogetherSound:Class; public static var deathSound:Class; public static var switchSound:Class; } }//package spill.bipole.engine
Section 268
//GGJ9 (spill.bipole.levels.GGJ9) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class GGJ9 extends MovieClip { public var __id362_:iNode; public var __id361_:iLevelDescriptor; public function GGJ9(){ __setProp___id361__koen(); __setProp___id362__koen(); } function __setProp___id361__koen(){ try { __id361_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id361_.angularDamping = 0.1; __id361_.friction = 1; __id361_.gravity = 10; __id361_.linearDamping = 0.1; __id361_.nodeForce = 5; __id361_.restitution = 0; try { __id361_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id362__koen(){ try { __id362_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id362_.force = 10; __id362_.type = "negative"; __id362_.range = 100; try { __id362_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 269
//mainmenu (spill.bipole.levels.mainmenu) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class mainmenu extends MovieClip { public var gear1:bigwheel; public var gear2:bigwheel; public var magnet1:iMagnet; public var magnet2:iMagnet; public var magnet3:iMagnet; public var magnet4:iMagnet; public var __id394_:iSwitch; public var __id393_:iSwitch; public var __id408_:iRevoluteJoint; public var __id409_:iRevoluteJoint; public function mainmenu(){ __setProp_magnet2_koen(); __setProp_magnet1_koen(); __setProp___id393__koen(); __setProp___id394__koen(); __setProp___id408__koen(); __setProp___id409__koen(); } function __setProp___id409__koen(){ try { __id409_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id409_.body1 = "gear2"; __id409_.body2 = ""; __id409_.collideConnected = false; __id409_.limit = false; __id409_.lowerLimit = -60; __id409_.upperLimit = 60; __id409_.motor = false; __id409_.motorForce = 0; __id409_.motorSpeed = 0; __id409_.transparent = true; try { __id409_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id408__koen(){ try { __id408_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id408_.body1 = "gear1"; __id408_.body2 = ""; __id408_.collideConnected = false; __id408_.limit = false; __id408_.lowerLimit = -60; __id408_.upperLimit = 60; __id408_.motor = false; __id408_.motorForce = 0; __id408_.motorSpeed = 0; __id408_.transparent = true; try { __id408_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet2_koen(){ try { magnet2["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet2.force = 10; magnet2.type = "negative"; magnet2.state = true; try { magnet2["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id393__koen(){ try { __id393_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id393_.magnets = "magnet1,magnet2"; __id393_.switchOnce = false; __id393_.type = "polarity"; try { __id393_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id394__koen(){ try { __id394_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id394_.magnets = "magnet1,magnet2,magnet3,magnet4"; __id394_.switchOnce = false; __id394_.type = "polarity"; try { __id394_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet1_koen(){ try { magnet1["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet1.force = 10; magnet1.type = "negative"; magnet1.state = true; try { magnet1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 270
//new1 (spill.bipole.levels.new1) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new1 extends MovieClip { public var __id626_:iLevelDescriptor; public var __id627_:iNode; public function new1(){ __setProp___id626__koen(); __setProp___id627__koen(); } function __setProp___id626__koen(){ try { __id626_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id626_.angularDamping = 0.1; __id626_.friction = 1; __id626_.gravity = 10; __id626_.linearDamping = 0.1; __id626_.nodeForce = 3; __id626_.restitution = 0; try { __id626_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id627__koen(){ try { __id627_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id627_.force = 10; __id627_.type = "negative"; __id627_.range = 100; try { __id627_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 271
//new10 (spill.bipole.levels.new10) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new10 extends MovieClip { public var __id447_:iRectangle; public var __id435_:iRectangle; public var __id423_:iRectangle; public var __id411_:iRectangle; public var magnet2:iMagnet; public var __id451_:iRectangle; public var __id448_:iRectangle; public var __id436_:iRectangle; public var __id424_:iRectangle; public var __id412_:iRectangle; public var __id452_:iRectangle; public var __id440_:iRectangle; public var wheel1:bigwheel; public var __id449_:iRectangle; public var __id437_:iRectangle; public var __id425_:iRevoluteJoint; public var __id413_:iRectangle; public var __id441_:iRectangle; public var __id438_:iSwitch; public var __id414_:iRectangle; public var __id442_:iRectangle; public var __id430_:iRectangle; public var magnet:iMagnet; public var __id427_:iRectangle; public var __id443_:iRectangle; public var __id415_:iRectangle; public var lever:lever; public var __id431_:iRectangle; public var __id439_:iSwitch; public var __id416_:iRectangle; public var __id444_:iRectangle; public var __id432_:iRectangle; public var __id420_:iRevoluteJoint; public var __id429_:iRectangle; public var __id417_:iRectangle; public var __id445_:iRectangle; public var __id433_:iRectangle; public var __id418_:iRectangle; public var __id446_:iRectangle; public var __id434_:iRectangle; public var __id450_:iRectangle; public var __id419_:iLevelDescriptor; public function new10(){ __setProp___id411__koen(); __setProp___id412__koen(); __setProp___id413__koen(); __setProp___id414__koen(); __setProp___id415__koen(); __setProp___id416__koen(); __setProp___id417__koen(); __setProp___id418__koen(); __setProp___id419__koen(); __setProp___id420__koen(); __setProp___id423__koen(); __setProp___id424__koen(); __setProp___id425__koen(); __setProp___id427__koen(); __setProp___id429__koen(); __setProp___id430__koen(); __setProp___id431__koen(); __setProp___id432__koen(); __setProp___id433__koen(); __setProp___id434__koen(); __setProp___id435__koen(); __setProp___id436__koen(); __setProp___id437__koen(); __setProp___id438__koen(); __setProp___id439__koen(); __setProp___id440__koen(); __setProp___id441__koen(); __setProp___id442__koen(); __setProp___id443__koen(); __setProp___id444__koen(); __setProp___id445__koen(); __setProp___id446__koen(); __setProp___id447__koen(); __setProp___id448__koen(); __setProp___id449__koen(); __setProp___id450__koen(); __setProp___id451__koen(); __setProp___id452__koen(); } function __setProp___id443__koen(){ try { __id443_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id443_.deathZone = false; __id443_.deathZoneBlink = true; __id443_.density = 0; __id443_.sensor = false; __id443_.transparent = true; try { __id443_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id447__koen(){ try { __id447_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id447_.deathZone = false; __id447_.deathZoneBlink = true; __id447_.density = 0; __id447_.sensor = false; __id447_.transparent = true; try { __id447_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id450__koen(){ try { __id450_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id450_.deathZone = false; __id450_.deathZoneBlink = true; __id450_.density = 0; __id450_.sensor = false; __id450_.transparent = true; try { __id450_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id433__koen(){ try { __id433_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id433_.deathZone = false; __id433_.deathZoneBlink = true; __id433_.density = 0; __id433_.sensor = false; __id433_.transparent = true; try { __id433_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id412__koen(){ try { __id412_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id412_.deathZone = false; __id412_.deathZoneBlink = true; __id412_.density = 0; __id412_.sensor = false; __id412_.transparent = true; try { __id412_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id437__koen(){ try { __id437_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id437_.deathZone = false; __id437_.deathZoneBlink = true; __id437_.density = 0; __id437_.sensor = false; __id437_.transparent = true; try { __id437_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id416__koen(){ try { __id416_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id416_.deathZone = false; __id416_.deathZoneBlink = true; __id416_.density = 0; __id416_.sensor = false; __id416_.transparent = true; try { __id416_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id423__koen(){ try { __id423_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id423_.deathZone = false; __id423_.deathZoneBlink = true; __id423_.density = 0; __id423_.sensor = false; __id423_.transparent = true; try { __id423_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id440__koen(){ try { __id440_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id440_.deathZone = false; __id440_.deathZoneBlink = true; __id440_.density = 0; __id440_.sensor = false; __id440_.transparent = true; try { __id440_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id427__koen(){ try { __id427_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id427_.deathZone = false; __id427_.deathZoneBlink = true; __id427_.density = 0; __id427_.sensor = false; __id427_.transparent = true; try { __id427_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id444__koen(){ try { __id444_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id444_.deathZone = false; __id444_.deathZoneBlink = true; __id444_.density = 0; __id444_.sensor = false; __id444_.transparent = true; try { __id444_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id448__koen(){ try { __id448_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id448_.deathZone = false; __id448_.deathZoneBlink = true; __id448_.density = 0; __id448_.sensor = false; __id448_.transparent = true; try { __id448_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id434__koen(){ try { __id434_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id434_.deathZone = false; __id434_.deathZoneBlink = true; __id434_.density = 0; __id434_.sensor = false; __id434_.transparent = true; try { __id434_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id413__koen(){ try { __id413_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id413_.deathZone = false; __id413_.deathZoneBlink = true; __id413_.density = 0; __id413_.sensor = false; __id413_.transparent = true; try { __id413_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id451__koen(){ try { __id451_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id451_.deathZone = false; __id451_.deathZoneBlink = true; __id451_.density = 0; __id451_.sensor = false; __id451_.transparent = true; try { __id451_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id430__koen(){ try { __id430_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id430_.deathZone = false; __id430_.deathZoneBlink = true; __id430_.density = 0; __id430_.sensor = false; __id430_.transparent = true; try { __id430_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id438__koen(){ try { __id438_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id438_.magnets = "magnet"; __id438_.switchOnce = false; __id438_.type = "state"; try { __id438_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id417__koen(){ try { __id417_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id417_.deathZone = false; __id417_.deathZoneBlink = true; __id417_.density = 0; __id417_.sensor = false; __id417_.transparent = true; try { __id417_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id445__koen(){ try { __id445_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id445_.deathZone = false; __id445_.deathZoneBlink = true; __id445_.density = 0; __id445_.sensor = false; __id445_.transparent = true; try { __id445_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id424__koen(){ try { __id424_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id424_.deathZone = false; __id424_.deathZoneBlink = true; __id424_.density = 0; __id424_.sensor = false; __id424_.transparent = true; try { __id424_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id441__koen(){ try { __id441_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id441_.deathZone = false; __id441_.deathZoneBlink = true; __id441_.density = 0; __id441_.sensor = false; __id441_.transparent = true; try { __id441_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id420__koen(){ try { __id420_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id420_.body1 = "wheel1"; __id420_.body2 = ""; __id420_.collideConnected = false; __id420_.limit = false; __id420_.lowerLimit = -60; __id420_.upperLimit = 60; __id420_.motor = true; __id420_.motorForce = 15; __id420_.motorSpeed = 10; __id420_.transparent = true; try { __id420_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id449__koen(){ try { __id449_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id449_.deathZone = false; __id449_.deathZoneBlink = true; __id449_.density = 0; __id449_.sensor = false; __id449_.transparent = true; try { __id449_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id452__koen(){ try { __id452_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id452_.deathZone = false; __id452_.deathZoneBlink = true; __id452_.density = 0; __id452_.sensor = false; __id452_.transparent = true; try { __id452_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id431__koen(){ try { __id431_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id431_.deathZone = false; __id431_.deathZoneBlink = true; __id431_.density = 0; __id431_.sensor = false; __id431_.transparent = true; try { __id431_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id435__koen(){ try { __id435_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id435_.deathZone = false; __id435_.deathZoneBlink = true; __id435_.density = 0; __id435_.sensor = false; __id435_.transparent = true; try { __id435_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id414__koen(){ try { __id414_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id414_.deathZone = false; __id414_.deathZoneBlink = true; __id414_.density = 0; __id414_.sensor = false; __id414_.transparent = true; try { __id414_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id439__koen(){ try { __id439_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id439_.magnets = "magnet2"; __id439_.switchOnce = false; __id439_.type = "polarity"; try { __id439_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id418__koen(){ try { __id418_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id418_.deathZone = false; __id418_.deathZoneBlink = true; __id418_.density = 0; __id418_.sensor = false; __id418_.transparent = true; try { __id418_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id446__koen(){ try { __id446_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id446_.deathZone = false; __id446_.deathZoneBlink = true; __id446_.density = 0; __id446_.sensor = false; __id446_.transparent = true; try { __id446_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id425__koen(){ try { __id425_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id425_.body1 = "lever"; __id425_.body2 = ""; __id425_.collideConnected = false; __id425_.limit = false; __id425_.lowerLimit = -60; __id425_.upperLimit = 60; __id425_.motor = false; __id425_.motorForce = 0; __id425_.motorSpeed = 0; __id425_.transparent = true; try { __id425_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id442__koen(){ try { __id442_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id442_.deathZone = false; __id442_.deathZoneBlink = true; __id442_.density = 0; __id442_.sensor = false; __id442_.transparent = true; try { __id442_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id429__koen(){ try { __id429_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id429_.deathZone = false; __id429_.deathZoneBlink = true; __id429_.density = 0; __id429_.sensor = false; __id429_.transparent = true; try { __id429_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id411__koen(){ try { __id411_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id411_.deathZone = false; __id411_.deathZoneBlink = true; __id411_.density = 0; __id411_.sensor = false; __id411_.transparent = true; try { __id411_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id436__koen(){ try { __id436_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id436_.deathZone = false; __id436_.deathZoneBlink = true; __id436_.density = 0; __id436_.sensor = false; __id436_.transparent = true; try { __id436_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id415__koen(){ try { __id415_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id415_.deathZone = false; __id415_.deathZoneBlink = true; __id415_.density = 0; __id415_.sensor = false; __id415_.transparent = true; try { __id415_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id432__koen(){ try { __id432_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id432_.deathZone = false; __id432_.deathZoneBlink = true; __id432_.density = 0; __id432_.sensor = false; __id432_.transparent = true; try { __id432_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id419__koen(){ try { __id419_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id419_.angularDamping = 0; __id419_.friction = 0.1; __id419_.gravity = 10; __id419_.linearDamping = 0; __id419_.nodeForce = 1; __id419_.restitution = 0; try { __id419_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 272
//new2 (spill.bipole.levels.new2) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new2 extends MovieClip { public var __id625_:iRectangle; public var __id624_:iRectangle; public var __id622_:iRectangle; public var __id620_:iNode; public var __id619_:iLevelDescriptor; public function new2(){ __setProp___id619__koen(); __setProp___id620__koen(); __setProp___id622__koen(); __setProp___id624__koen(); __setProp___id625__koen(); } function __setProp___id622__koen(){ try { __id622_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id622_.deathZone = false; __id622_.deathZoneBlink = true; __id622_.density = 0; __id622_.sensor = false; __id622_.transparent = true; try { __id622_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id624__koen(){ try { __id624_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id624_.deathZone = false; __id624_.deathZoneBlink = true; __id624_.density = 0; __id624_.sensor = false; __id624_.transparent = true; try { __id624_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id625__koen(){ try { __id625_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id625_.deathZone = false; __id625_.deathZoneBlink = true; __id625_.density = 0; __id625_.sensor = false; __id625_.transparent = true; try { __id625_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id620__koen(){ try { __id620_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id620_.force = 10; __id620_.type = "negative"; __id620_.range = 100; try { __id620_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id619__koen(){ try { __id619_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id619_.angularDamping = 0.1; __id619_.friction = 0.5; __id619_.gravity = 10; __id619_.linearDamping = 0.1; __id619_.nodeForce = 13; __id619_.restitution = 0; try { __id619_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 273
//new3 (spill.bipole.levels.new3) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new3 extends MovieClip { public var __id618_:iSwitch; public var __id606_:iLevelDescriptor; public var __id616_:iSwitch; public var magnet01:iMagnet; public var magnet02:iMagnet; public var magnet03:iMagnet; public var magnet04:iMagnet; public var magnet05:iMagnet; public var magnet06:iMagnet; public var __id617_:iSwitch; public function new3(){ __setProp___id606__koen(); __setProp_magnet01_koen(); __setProp___id616__koen(); __setProp___id617__koen(); __setProp_magnet02_koen(); __setProp___id618__koen(); } function __setProp_magnet02_koen(){ try { magnet02["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet02.force = 40; magnet02.type = "positive"; magnet02.state = false; try { magnet02["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id606__koen(){ try { __id606_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id606_.angularDamping = 0.1; __id606_.friction = 0.5; __id606_.gravity = 10; __id606_.linearDamping = 0.1; __id606_.nodeForce = 1; __id606_.restitution = 0; try { __id606_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet01_koen(){ try { magnet01["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet01.force = 30; magnet01.type = "negative"; magnet01.state = true; try { magnet01["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id616__koen(){ try { __id616_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id616_.magnets = "magnet01"; __id616_.switchOnce = false; __id616_.type = "state"; try { __id616_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id617__koen(){ try { __id617_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id617_.magnets = "magnet02"; __id617_.switchOnce = false; __id617_.type = "state"; try { __id617_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id618__koen(){ try { __id618_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id618_.magnets = "magnet03,magnet04,magnet05,magnet06"; __id618_.switchOnce = false; __id618_.type = "polarity"; try { __id618_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 274
//new4 (spill.bipole.levels.new4) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new4 extends MovieClip { public var link06:new4chain; public var __id601_:iRevoluteJoint; public var link04:new4chain; public var __id596_:iNode; public var link02:new4chain; public var __id592_:iRevoluteJoint; public var __id602_:iRectangle; public var __id593_:iRevoluteJoint; public var __id598_:iRectangle; public var __id594_:iRevoluteJoint; public var __id604_:iRectangle; public var __id600_:iRevoluteJoint; public var __id599_:iRevoluteJoint; public var __id595_:iRevoluteJoint; public var __id591_:iLevelDescriptor; public var deathball:deathball; public var link01:new4chainstart; public var link03:new4chain; public var link05:new4chain; public function new4(){ __setProp___id591__koen(); __setProp___id592__koen(); __setProp___id593__koen(); __setProp___id594__koen(); __setProp___id595__koen(); __setProp___id596__koen(); __setProp___id598__koen(); __setProp___id599__koen(); __setProp___id600__koen(); __setProp___id601__koen(); __setProp___id602__koen(); __setProp___id604__koen(); } function __setProp___id601__koen(){ try { __id601_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id601_.body1 = "link05"; __id601_.body2 = "link06"; __id601_.collideConnected = false; __id601_.limit = false; __id601_.lowerLimit = -60; __id601_.upperLimit = 60; __id601_.motor = false; __id601_.motorForce = 0; __id601_.motorSpeed = 0; __id601_.transparent = true; try { __id601_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id592__koen(){ try { __id592_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id592_.body1 = "link01"; __id592_.body2 = ""; __id592_.collideConnected = false; __id592_.limit = false; __id592_.lowerLimit = -60; __id592_.upperLimit = 60; __id592_.motor = false; __id592_.motorForce = 0; __id592_.motorSpeed = 0; __id592_.transparent = true; try { __id592_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id594__koen(){ try { __id594_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id594_.body1 = "link02"; __id594_.body2 = "link03"; __id594_.collideConnected = false; __id594_.limit = false; __id594_.lowerLimit = -60; __id594_.upperLimit = 60; __id594_.motor = false; __id594_.motorForce = 0; __id594_.motorSpeed = 0; __id594_.transparent = true; try { __id594_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id596__koen(){ try { __id596_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id596_.force = 10; __id596_.type = "negative"; __id596_.range = 100; try { __id596_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id598__koen(){ try { __id598_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id598_.deathZone = false; __id598_.deathZoneBlink = true; __id598_.density = 0; __id598_.sensor = false; __id598_.transparent = true; try { __id598_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id600__koen(){ try { __id600_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id600_.body1 = "link04"; __id600_.body2 = "link05"; __id600_.collideConnected = false; __id600_.limit = false; __id600_.lowerLimit = -60; __id600_.upperLimit = 60; __id600_.motor = false; __id600_.motorForce = 0; __id600_.motorSpeed = 0; __id600_.transparent = true; try { __id600_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id602__koen(){ try { __id602_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id602_.deathZone = false; __id602_.deathZoneBlink = true; __id602_.density = 0; __id602_.sensor = false; __id602_.transparent = true; try { __id602_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id604__koen(){ try { __id604_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id604_.deathZone = false; __id604_.deathZoneBlink = true; __id604_.density = 0; __id604_.sensor = false; __id604_.transparent = true; try { __id604_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id593__koen(){ try { __id593_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id593_.body1 = "link01"; __id593_.body2 = "link02"; __id593_.collideConnected = false; __id593_.limit = false; __id593_.lowerLimit = -60; __id593_.upperLimit = 60; __id593_.motor = false; __id593_.motorForce = 0; __id593_.motorSpeed = 0; __id593_.transparent = true; try { __id593_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id591__koen(){ try { __id591_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id591_.angularDamping = 0.1; __id591_.friction = 0.01; __id591_.gravity = 10; __id591_.linearDamping = 0.01; __id591_.nodeForce = 4; __id591_.restitution = 0.5; try { __id591_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id595__koen(){ try { __id595_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id595_.body1 = "link06"; __id595_.body2 = "deathball"; __id595_.collideConnected = false; __id595_.limit = false; __id595_.lowerLimit = -60; __id595_.upperLimit = 60; __id595_.motor = false; __id595_.motorForce = 0; __id595_.motorSpeed = 0; __id595_.transparent = true; try { __id595_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id599__koen(){ try { __id599_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id599_.body1 = "link03"; __id599_.body2 = "link04"; __id599_.collideConnected = false; __id599_.limit = false; __id599_.lowerLimit = -60; __id599_.upperLimit = 60; __id599_.motor = false; __id599_.motorForce = 0; __id599_.motorSpeed = 0; __id599_.transparent = true; try { __id599_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 275
//new5 (spill.bipole.levels.new5) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new5 extends MovieClip { public var gear1:bigdeathwheel; public var __id582_:iSwitch; public var __id581_:iNode; public var __id580_:iRevoluteJoint; public var obstacle:iMagnet; public function new5(){ __setProp___id580__koen(); __setProp___id581__koen(); __setProp___id582__koen(); } function __setProp___id580__koen(){ try { __id580_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id580_.body1 = "gear1"; __id580_.body2 = ""; __id580_.collideConnected = false; __id580_.limit = false; __id580_.lowerLimit = -60; __id580_.upperLimit = 60; __id580_.motor = true; __id580_.motorForce = 10; __id580_.motorSpeed = 1; __id580_.transparent = true; try { __id580_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id581__koen(){ try { __id581_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id581_.force = 10; __id581_.type = "negative"; __id581_.range = 100; try { __id581_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id582__koen(){ try { __id582_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id582_.magnets = "obstacle"; __id582_.switchOnce = false; __id582_.type = "state"; try { __id582_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 276
//new6 (spill.bipole.levels.new6) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new6 extends MovieClip { public var lid:lid; public var __id550_:iRevoluteJoint; public var __id551_:iNode; public var __id542_:iLevelDescriptor; public function new6(){ __setProp___id542__koen(); __setProp___id550__koen(); __setProp___id551__koen(); } function __setProp___id550__koen(){ try { __id550_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id550_.body1 = "lid"; __id550_.body2 = ""; __id550_.collideConnected = false; __id550_.limit = false; __id550_.lowerLimit = -60; __id550_.upperLimit = 60; __id550_.motor = false; __id550_.motorForce = 0; __id550_.motorSpeed = 0; __id550_.transparent = true; try { __id550_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id551__koen(){ try { __id551_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id551_.force = 10; __id551_.type = "negative"; __id551_.range = 100; try { __id551_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id542__koen(){ try { __id542_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id542_.angularDamping = 0.1; __id542_.friction = 0.1; __id542_.gravity = 10; __id542_.linearDamping = 0.1; __id542_.nodeForce = 2; __id542_.restitution = 0.5; try { __id542_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 277
//new7 (spill.bipole.levels.new7) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new7 extends MovieClip { public var __id530_:iNode; public var __id508_:iLevelDescriptor; public function new7(){ __setProp___id508__koen(); __setProp___id530__koen(); } function __setProp___id508__koen(){ try { __id508_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id508_.angularDamping = 0.1; __id508_.friction = 0.1; __id508_.gravity = 10; __id508_.linearDamping = 0.1; __id508_.nodeForce = 2; __id508_.restitution = 0.5; try { __id508_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id530__koen(){ try { __id530_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id530_.force = 10; __id530_.type = "negative"; __id530_.range = 100; try { __id530_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 278
//new8 (spill.bipole.levels.new8) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new8 extends MovieClip { public var __id504_:iNode; public var __id499_:iRevoluteJoint; public var __id487_:iRevoluteJoint; public var __id491_:iRevoluteJoint; public var __id475_:iRevoluteJoint; public var chain3start:new4chainstart; public var chain3link1:new4chain; public var chain3link2:new4chain; public var chain3link3:new4chain; public var chain3link4:new4chain; public var chain3link5:new4chain; public var chain3link6:new4chain; public var chain3link7:new4chain; public var __id488_:iRevoluteJoint; public var __id480_:iRevoluteJoint; public var __id505_:iNode; public var __id492_:iRevoluteJoint; public var __id490_:iRevoluteJoint; public var __id476_:iRevoluteJoint; public var __id506_:iRevoluteJoint; public var __id489_:iRevoluteJoint; public var __id477_:iRevoluteJoint; public var __id481_:iRevoluteJoint; public var __id493_:iRevoluteJoint; public var __id478_:iRevoluteJoint; public var __id466_:iLevelDescriptor; public var __id494_:iRevoluteJoint; public var __id482_:iRevoluteJoint; public var __id470_:iRevoluteJoint; public var chain2start:new4chainstart; public var __id479_:iRevoluteJoint; public var __id500_:iRevoluteJoint; public var chain2link2:new4chain; public var chain2link4:new4chain; public var __id495_:iRevoluteJoint; public var chain2link6:new4chain; public var __id471_:iRevoluteJoint; public var chain2link3:new4chain; public var chain2link1:new4chain; public var __id467_:iRevoluteJoint; public var chain2link5:new4chain; public var __id483_:iRevoluteJoint; public var __id468_:iRevoluteJoint; public var __id496_:iRevoluteJoint; public var __id484_:iRevoluteJoint; public var chain2link7:new4chain; public var chain4start:new4chainstart; public var __id472_:iRevoluteJoint; public var __id501_:iRevoluteJoint; public var __id469_:iRevoluteJoint; public var chain4link2:new4chain; public var chain4link3:new4chain; public var chain4link4:new4chain; public var __id497_:iRevoluteJoint; public var __id485_:iRevoluteJoint; public var chain4link1:new4chain; public var chain4link5:new4chain; public var __id473_:iRevoluteJoint; public var chain1start:new4chainstart; public var __id502_:iNode; public var chain1link1:new4chain; public var __id486_:iRevoluteJoint; public var chain1link3:new4chain; public var chain1link4:new4chain; public var chain1link5:new4chain; public var chain1link6:new4chain; public var chain1link7:new4chain; public var __id498_:iRevoluteJoint; public var chain1link2:new4chain; public var __id474_:iRevoluteJoint; public var __id503_:iNode; public var chain4link6:new4chain; public var chain4link7:new4chain; public var bigball:deathballcopy; public function new8(){ __setProp___id466__koen(); __setProp___id467__koen(); __setProp___id468__koen(); __setProp___id469__koen(); __setProp___id470__koen(); __setProp___id471__koen(); __setProp___id472__koen(); __setProp___id473__koen(); __setProp___id474__koen(); __setProp___id475__koen(); __setProp___id476__koen(); __setProp___id477__koen(); __setProp___id478__koen(); __setProp___id479__koen(); __setProp___id480__koen(); __setProp___id481__koen(); __setProp___id482__koen(); __setProp___id483__koen(); __setProp___id484__koen(); __setProp___id485__koen(); __setProp___id486__koen(); __setProp___id487__koen(); __setProp___id488__koen(); __setProp___id489__koen(); __setProp___id490__koen(); __setProp___id491__koen(); __setProp___id492__koen(); __setProp___id493__koen(); __setProp___id494__koen(); __setProp___id495__koen(); __setProp___id496__koen(); __setProp___id497__koen(); __setProp___id498__koen(); __setProp___id499__koen(); __setProp___id500__koen(); __setProp___id501__koen(); __setProp___id502__koen(); __setProp___id503__koen(); __setProp___id504__koen(); __setProp___id505__koen(); __setProp___id506__koen(); } function __setProp___id495__koen(){ try { __id495_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id495_.body1 = "chain4link6"; __id495_.body2 = "chain4link7"; __id495_.collideConnected = false; __id495_.limit = false; __id495_.lowerLimit = -60; __id495_.upperLimit = 60; __id495_.motor = false; __id495_.motorForce = 0; __id495_.motorSpeed = 0; __id495_.transparent = true; try { __id495_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id481__koen(){ try { __id481_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id481_.body1 = "chain3link1"; __id481_.body2 = "chain3link2"; __id481_.collideConnected = false; __id481_.limit = false; __id481_.lowerLimit = -60; __id481_.upperLimit = 60; __id481_.motor = false; __id481_.motorForce = 0; __id481_.motorSpeed = 0; __id481_.transparent = true; try { __id481_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id485__koen(){ try { __id485_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id485_.body1 = "chain2link6"; __id485_.body2 = "chain2link7"; __id485_.collideConnected = false; __id485_.limit = false; __id485_.lowerLimit = -60; __id485_.upperLimit = 60; __id485_.motor = false; __id485_.motorForce = 0; __id485_.motorSpeed = 0; __id485_.transparent = true; try { __id485_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id489__koen(){ try { __id489_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id489_.body1 = "chain3link6"; __id489_.body2 = "chain3link5"; __id489_.collideConnected = false; __id489_.limit = false; __id489_.lowerLimit = -60; __id489_.upperLimit = 60; __id489_.motor = false; __id489_.motorForce = 0; __id489_.motorSpeed = 0; __id489_.transparent = true; try { __id489_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id505__koen(){ try { __id505_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id505_.force = 10; __id505_.type = "negative"; __id505_.range = 100; try { __id505_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id492__koen(){ try { __id492_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id492_.body1 = "chain4link3"; __id492_.body2 = "chain4link4"; __id492_.collideConnected = false; __id492_.limit = false; __id492_.lowerLimit = -60; __id492_.upperLimit = 60; __id492_.motor = false; __id492_.motorForce = 0; __id492_.motorSpeed = 0; __id492_.transparent = true; try { __id492_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id468__koen(){ try { __id468_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id468_.body1 = "chain2start"; __id468_.body2 = "chain2link1"; __id468_.collideConnected = false; __id468_.limit = false; __id468_.lowerLimit = -60; __id468_.upperLimit = 60; __id468_.motor = false; __id468_.motorForce = 0; __id468_.motorSpeed = 0; __id468_.transparent = true; try { __id468_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id475__koen(){ try { __id475_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id475_.body1 = "chain1start"; __id475_.body2 = ""; __id475_.collideConnected = false; __id475_.limit = false; __id475_.lowerLimit = -60; __id475_.upperLimit = 60; __id475_.motor = false; __id475_.motorForce = 0; __id475_.motorSpeed = 0; __id475_.transparent = true; try { __id475_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id501__koen(){ try { __id501_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id501_.body1 = "chain1link3"; __id501_.body2 = "chain1link4"; __id501_.collideConnected = false; __id501_.limit = false; __id501_.lowerLimit = -60; __id501_.upperLimit = 60; __id501_.motor = false; __id501_.motorForce = 0; __id501_.motorSpeed = 0; __id501_.transparent = true; try { __id501_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id479__koen(){ try { __id479_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id479_.body1 = "chain3start"; __id479_.body2 = ""; __id479_.collideConnected = false; __id479_.limit = false; __id479_.lowerLimit = -60; __id479_.upperLimit = 60; __id479_.motor = false; __id479_.motorForce = 0; __id479_.motorSpeed = 0; __id479_.transparent = true; try { __id479_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id471__koen(){ try { __id471_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id471_.body1 = "chain2link3"; __id471_.body2 = "chain2link4"; __id471_.collideConnected = false; __id471_.limit = false; __id471_.lowerLimit = -60; __id471_.upperLimit = 60; __id471_.motor = false; __id471_.motorForce = 0; __id471_.motorSpeed = 0; __id471_.transparent = true; try { __id471_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id496__koen(){ try { __id496_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id496_.body1 = "bigball"; __id496_.body2 = "chain4link7"; __id496_.collideConnected = false; __id496_.limit = false; __id496_.lowerLimit = -60; __id496_.upperLimit = 60; __id496_.motor = false; __id496_.motorForce = 0; __id496_.motorSpeed = 0; __id496_.transparent = true; try { __id496_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id504__koen(){ try { __id504_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id504_.force = 10; __id504_.type = "negative"; __id504_.range = 100; try { __id504_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id486__koen(){ try { __id486_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id486_.body1 = "bigball"; __id486_.body2 = "chain2link7"; __id486_.collideConnected = false; __id486_.limit = false; __id486_.lowerLimit = -60; __id486_.upperLimit = 60; __id486_.motor = false; __id486_.motorForce = 0; __id486_.motorSpeed = 0; __id486_.transparent = true; try { __id486_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id506__koen(){ try { __id506_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id506_.body1 = "chain4start"; __id506_.body2 = ""; __id506_.collideConnected = false; __id506_.limit = false; __id506_.lowerLimit = -60; __id506_.upperLimit = 60; __id506_.motor = false; __id506_.motorForce = 0; __id506_.motorSpeed = 0; __id506_.transparent = true; try { __id506_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id469__koen(){ try { __id469_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id469_.body1 = "chain2link1"; __id469_.body2 = "chain2link2"; __id469_.collideConnected = false; __id469_.limit = false; __id469_.lowerLimit = -60; __id469_.upperLimit = 60; __id469_.motor = false; __id469_.motorForce = 0; __id469_.motorSpeed = 0; __id469_.transparent = true; try { __id469_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id482__koen(){ try { __id482_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id482_.body1 = "chain3link2"; __id482_.body2 = "chain3link3"; __id482_.collideConnected = false; __id482_.limit = false; __id482_.lowerLimit = -60; __id482_.upperLimit = 60; __id482_.motor = false; __id482_.motorForce = 0; __id482_.motorSpeed = 0; __id482_.transparent = true; try { __id482_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id497__koen(){ try { __id497_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id497_.body1 = "chain1link4"; __id497_.body2 = "chain1link5"; __id497_.collideConnected = false; __id497_.limit = false; __id497_.lowerLimit = -60; __id497_.upperLimit = 60; __id497_.motor = false; __id497_.motorForce = 0; __id497_.motorSpeed = 0; __id497_.transparent = true; try { __id497_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id472__koen(){ try { __id472_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id472_.body1 = "chain4start"; __id472_.body2 = "chain4link1"; __id472_.collideConnected = false; __id472_.limit = false; __id472_.lowerLimit = -60; __id472_.upperLimit = 60; __id472_.motor = false; __id472_.motorForce = 0; __id472_.motorSpeed = 0; __id472_.transparent = true; try { __id472_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id476__koen(){ try { __id476_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id476_.body1 = "chain1start"; __id476_.body2 = "chain1link1"; __id476_.collideConnected = false; __id476_.limit = false; __id476_.lowerLimit = -60; __id476_.upperLimit = 60; __id476_.motor = false; __id476_.motorForce = 0; __id476_.motorSpeed = 0; __id476_.transparent = true; try { __id476_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id493__koen(){ try { __id493_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id493_.body1 = "chain4link4"; __id493_.body2 = "chain4link5"; __id493_.collideConnected = false; __id493_.limit = false; __id493_.lowerLimit = -60; __id493_.upperLimit = 60; __id493_.motor = false; __id493_.motorForce = 0; __id493_.motorSpeed = 0; __id493_.transparent = true; try { __id493_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id502__koen(){ try { __id502_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id502_.force = 10; __id502_.type = "negative"; __id502_.range = 100; try { __id502_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id483__koen(){ try { __id483_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id483_.body1 = "chain2link4"; __id483_.body2 = "chain2link5"; __id483_.collideConnected = false; __id483_.limit = false; __id483_.lowerLimit = -60; __id483_.upperLimit = 60; __id483_.motor = false; __id483_.motorForce = 0; __id483_.motorSpeed = 0; __id483_.transparent = true; try { __id483_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id503__koen(){ try { __id503_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id503_.force = 10; __id503_.type = "negative"; __id503_.range = 100; try { __id503_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id494__koen(){ try { __id494_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id494_.body1 = "chain4link6"; __id494_.body2 = "chain4link5"; __id494_.collideConnected = false; __id494_.limit = false; __id494_.lowerLimit = -60; __id494_.upperLimit = 60; __id494_.motor = false; __id494_.motorForce = 0; __id494_.motorSpeed = 0; __id494_.transparent = true; try { __id494_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id473__koen(){ try { __id473_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id473_.body1 = "chain4link1"; __id473_.body2 = "chain4link2"; __id473_.collideConnected = false; __id473_.limit = false; __id473_.lowerLimit = -60; __id473_.upperLimit = 60; __id473_.motor = false; __id473_.motorForce = 0; __id473_.motorSpeed = 0; __id473_.transparent = true; try { __id473_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id487__koen(){ try { __id487_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id487_.body1 = "chain3link3"; __id487_.body2 = "chain3link4"; __id487_.collideConnected = false; __id487_.limit = false; __id487_.lowerLimit = -60; __id487_.upperLimit = 60; __id487_.motor = false; __id487_.motorForce = 0; __id487_.motorSpeed = 0; __id487_.transparent = true; try { __id487_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id466__koen(){ try { __id466_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id466_.angularDamping = 0.1; __id466_.friction = 0.1; __id466_.gravity = 10; __id466_.linearDamping = 0.1; __id466_.nodeForce = 1; __id466_.restitution = 0.5; try { __id466_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id498__koen(){ try { __id498_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id498_.body1 = "chain1link6"; __id498_.body2 = "chain1link5"; __id498_.collideConnected = false; __id498_.limit = false; __id498_.lowerLimit = -60; __id498_.upperLimit = 60; __id498_.motor = false; __id498_.motorForce = 0; __id498_.motorSpeed = 0; __id498_.transparent = true; try { __id498_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id477__koen(){ try { __id477_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id477_.body1 = "chain1link1"; __id477_.body2 = "chain1link2"; __id477_.collideConnected = false; __id477_.limit = false; __id477_.lowerLimit = -60; __id477_.upperLimit = 60; __id477_.motor = false; __id477_.motorForce = 0; __id477_.motorSpeed = 0; __id477_.transparent = true; try { __id477_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id467__koen(){ try { __id467_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id467_.body1 = "chain2start"; __id467_.body2 = ""; __id467_.collideConnected = false; __id467_.limit = false; __id467_.lowerLimit = -60; __id467_.upperLimit = 60; __id467_.motor = false; __id467_.motorForce = 0; __id467_.motorSpeed = 0; __id467_.transparent = true; try { __id467_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id480__koen(){ try { __id480_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id480_.body1 = "chain3start"; __id480_.body2 = "chain3link1"; __id480_.collideConnected = false; __id480_.limit = false; __id480_.lowerLimit = -60; __id480_.upperLimit = 60; __id480_.motor = false; __id480_.motorForce = 0; __id480_.motorSpeed = 0; __id480_.transparent = true; try { __id480_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id490__koen(){ try { __id490_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id490_.body1 = "chain3link6"; __id490_.body2 = "chain3link7"; __id490_.collideConnected = false; __id490_.limit = false; __id490_.lowerLimit = -60; __id490_.upperLimit = 60; __id490_.motor = false; __id490_.motorForce = 0; __id490_.motorSpeed = 0; __id490_.transparent = true; try { __id490_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id484__koen(){ try { __id484_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id484_.body1 = "chain2link6"; __id484_.body2 = "chain2link5"; __id484_.collideConnected = false; __id484_.limit = false; __id484_.lowerLimit = -60; __id484_.upperLimit = 60; __id484_.motor = false; __id484_.motorForce = 0; __id484_.motorSpeed = 0; __id484_.transparent = true; try { __id484_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id488__koen(){ try { __id488_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id488_.body1 = "chain3link4"; __id488_.body2 = "chain3link5"; __id488_.collideConnected = false; __id488_.limit = false; __id488_.lowerLimit = -60; __id488_.upperLimit = 60; __id488_.motor = false; __id488_.motorForce = 0; __id488_.motorSpeed = 0; __id488_.transparent = true; try { __id488_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id470__koen(){ try { __id470_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id470_.body1 = "chain2link2"; __id470_.body2 = "chain2link3"; __id470_.collideConnected = false; __id470_.limit = false; __id470_.lowerLimit = -60; __id470_.upperLimit = 60; __id470_.motor = false; __id470_.motorForce = 0; __id470_.motorSpeed = 0; __id470_.transparent = true; try { __id470_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id491__koen(){ try { __id491_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id491_.body1 = "bigball"; __id491_.body2 = "chain3link7"; __id491_.collideConnected = false; __id491_.limit = false; __id491_.lowerLimit = -60; __id491_.upperLimit = 60; __id491_.motor = false; __id491_.motorForce = 0; __id491_.motorSpeed = 0; __id491_.transparent = true; try { __id491_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id474__koen(){ try { __id474_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id474_.body1 = "chain4link2"; __id474_.body2 = "chain4link3"; __id474_.collideConnected = false; __id474_.limit = false; __id474_.lowerLimit = -60; __id474_.upperLimit = 60; __id474_.motor = false; __id474_.motorForce = 0; __id474_.motorSpeed = 0; __id474_.transparent = true; try { __id474_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id500__koen(){ try { __id500_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id500_.body1 = "bigball"; __id500_.body2 = "chain1link7"; __id500_.collideConnected = false; __id500_.limit = false; __id500_.lowerLimit = -60; __id500_.upperLimit = 60; __id500_.motor = false; __id500_.motorForce = 0; __id500_.motorSpeed = 0; __id500_.transparent = true; try { __id500_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id499__koen(){ try { __id499_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id499_.body1 = "chain1link6"; __id499_.body2 = "chain1link7"; __id499_.collideConnected = false; __id499_.limit = false; __id499_.lowerLimit = -60; __id499_.upperLimit = 60; __id499_.motor = false; __id499_.motorForce = 0; __id499_.motorSpeed = 0; __id499_.transparent = true; try { __id499_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id478__koen(){ try { __id478_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id478_.body1 = "chain1link2"; __id478_.body2 = "chain1link3"; __id478_.collideConnected = false; __id478_.limit = false; __id478_.lowerLimit = -60; __id478_.upperLimit = 60; __id478_.motor = false; __id478_.motorForce = 0; __id478_.motorSpeed = 0; __id478_.transparent = true; try { __id478_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 279
//new9 (spill.bipole.levels.new9) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class new9 extends MovieClip { public var __id459_:iNode; public var __id454_:iLevelDescriptor; public var magnet:iMagnet; public var __id461_:iRevoluteJoint; public var __id460_:iSwitch; public var door:new9door; public function new9(){ __setProp___id454__koen(); __setProp_magnet_koen(); __setProp___id459__koen(); __setProp___id460__koen(); __setProp___id461__koen(); } function __setProp___id460__koen(){ try { __id460_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id460_.magnets = "magnet"; __id460_.switchOnce = false; __id460_.type = "state"; try { __id460_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet_koen(){ try { magnet["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet.force = 20; magnet.type = "positive"; magnet.state = true; try { magnet["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id459__koen(){ try { __id459_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id459_.force = 10; __id459_.type = "negative"; __id459_.range = 100; try { __id459_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id454__koen(){ try { __id454_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id454_.angularDamping = 0.1; __id454_.friction = 0.1; __id454_.gravity = 10; __id454_.linearDamping = 0.1; __id454_.nodeForce = 3; __id454_.restitution = 0.5; try { __id454_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id461__koen(){ try { __id461_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id461_.body1 = "door"; __id461_.body2 = ""; __id461_.collideConnected = false; __id461_.limit = false; __id461_.lowerLimit = -60; __id461_.upperLimit = 60; __id461_.motor = false; __id461_.motorForce = 0; __id461_.motorSpeed = 0; __id461_.transparent = true; try { __id461_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 280
//Tutorial1 (spill.bipole.levels.Tutorial1) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class Tutorial1 extends MovieClip { public var __id709_:iNode; public var __id706_:iLevelDescriptor; public function Tutorial1(){ __setProp___id706__koen(); __setProp___id709__koen(); } function __setProp___id706__koen(){ try { __id706_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id706_.angularDamping = 0.1; __id706_.friction = 0.5; __id706_.gravity = 10; __id706_.linearDamping = 0.1; __id706_.nodeForce = 10; __id706_.restitution = 0; try { __id706_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id709__koen(){ try { __id709_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id709_.force = 10; __id709_.type = "negative"; __id709_.range = 100; try { __id709_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 281
//Tutorial2 (spill.bipole.levels.Tutorial2) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class Tutorial2 extends MovieClip { public var __id703_:iNode; public var __id700_:iLevelDescriptor; public var __id705_:iMagnet; public function Tutorial2(){ __setProp___id700__koen(); __setProp___id703__koen(); __setProp___id705__koen(); } function __setProp___id703__koen(){ try { __id703_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id703_.force = 10; __id703_.type = "negative"; __id703_.range = 100; try { __id703_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id705__koen(){ try { __id705_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id705_.force = 10; __id705_.type = "negative"; __id705_.state = true; try { __id705_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id700__koen(){ try { __id700_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id700_.angularDamping = 0.1; __id700_.friction = 0.5; __id700_.gravity = 10; __id700_.linearDamping = 0.1; __id700_.nodeForce = 10; __id700_.restitution = 0; try { __id700_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 282
//Tutorial3 (spill.bipole.levels.Tutorial3) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class Tutorial3 extends MovieClip { public var __id689_:triangle; public var __id697_:triangle; public var __id685_:triangle; public var __id673_:iNode; public var __id693_:triangle; public var __id681_:triangle; public var __id677_:triangle; public var __id678_:triangle; public var __id698_:triangle; public var __id694_:triangle; public var __id682_:triangle; public var __id690_:triangle; public var __id679_:triangle; public var __id687_:triangle; public var __id695_:triangle; public var __id683_:triangle; public var __id691_:triangle; public var __id671_:iLevelDescriptor; public var __id688_:triangle; public var __id676_:triangle; public var __id696_:triangle; public var __id684_:triangle; public var __id672_:iNode; public var __id692_:triangle; public var __id680_:triangle; public function Tutorial3(){ __setProp___id671__koen(); __setProp___id672__koen(); __setProp___id673__koen(); __setProp___id676__koen(); __setProp___id677__koen(); __setProp___id678__koen(); __setProp___id679__koen(); __setProp___id680__koen(); __setProp___id681__koen(); __setProp___id682__koen(); __setProp___id683__koen(); __setProp___id684__koen(); __setProp___id685__koen(); __setProp___id687__koen(); __setProp___id688__koen(); __setProp___id689__koen(); __setProp___id690__koen(); __setProp___id691__koen(); __setProp___id692__koen(); __setProp___id693__koen(); __setProp___id694__koen(); __setProp___id695__koen(); __setProp___id696__koen(); __setProp___id697__koen(); __setProp___id698__koen(); } function __setProp___id693__koen(){ try { __id693_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id693_.deathZone = true; __id693_.deathZoneBlink = true; __id693_.density = 0; __id693_.sensor = false; __id693_.transparent = false; try { __id693_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id683__koen(){ try { __id683_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id683_.deathZone = true; __id683_.deathZoneBlink = true; __id683_.density = 0; __id683_.sensor = false; __id683_.transparent = false; try { __id683_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id685__koen(){ try { __id685_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id685_.deathZone = true; __id685_.deathZoneBlink = true; __id685_.density = 0; __id685_.sensor = false; __id685_.transparent = false; try { __id685_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id687__koen(){ try { __id687_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id687_.deathZone = true; __id687_.deathZoneBlink = true; __id687_.density = 0; __id687_.sensor = false; __id687_.transparent = false; try { __id687_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id689__koen(){ try { __id689_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id689_.deathZone = true; __id689_.deathZoneBlink = true; __id689_.density = 0; __id689_.sensor = false; __id689_.transparent = false; try { __id689_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id681__koen(){ try { __id681_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id681_.deathZone = true; __id681_.deathZoneBlink = true; __id681_.density = 0; __id681_.sensor = false; __id681_.transparent = false; try { __id681_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id692__koen(){ try { __id692_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id692_.deathZone = true; __id692_.deathZoneBlink = true; __id692_.density = 0; __id692_.sensor = false; __id692_.transparent = false; try { __id692_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id671__koen(){ try { __id671_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id671_.angularDamping = 0.1; __id671_.friction = 0.5; __id671_.gravity = 10; __id671_.linearDamping = 0.1; __id671_.nodeForce = 1; __id671_.restitution = 0; try { __id671_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id696__koen(){ try { __id696_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id696_.deathZone = true; __id696_.deathZoneBlink = true; __id696_.density = 0; __id696_.sensor = false; __id696_.transparent = false; try { __id696_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id690__koen(){ try { __id690_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id690_.deathZone = true; __id690_.deathZoneBlink = true; __id690_.density = 0; __id690_.sensor = false; __id690_.transparent = false; try { __id690_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id677__koen(){ try { __id677_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id677_.deathZone = true; __id677_.deathZoneBlink = true; __id677_.density = 0; __id677_.sensor = false; __id677_.transparent = false; try { __id677_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id679__koen(){ try { __id679_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id679_.deathZone = true; __id679_.deathZoneBlink = true; __id679_.density = 0; __id679_.sensor = false; __id679_.transparent = false; try { __id679_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id673__koen(){ try { __id673_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id673_.force = 2; __id673_.type = "negative"; __id673_.range = 100; try { __id673_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id698__koen(){ try { __id698_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id698_.deathZone = true; __id698_.deathZoneBlink = true; __id698_.density = 0; __id698_.sensor = false; __id698_.transparent = false; try { __id698_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id694__koen(){ try { __id694_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id694_.deathZone = true; __id694_.deathZoneBlink = true; __id694_.density = 0; __id694_.sensor = false; __id694_.transparent = false; try { __id694_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id680__koen(){ try { __id680_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id680_.deathZone = true; __id680_.deathZoneBlink = true; __id680_.density = 0; __id680_.sensor = false; __id680_.transparent = false; try { __id680_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id688__koen(){ try { __id688_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id688_.deathZone = true; __id688_.deathZoneBlink = true; __id688_.density = 0; __id688_.sensor = false; __id688_.transparent = false; try { __id688_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id682__koen(){ try { __id682_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id682_.deathZone = true; __id682_.deathZoneBlink = true; __id682_.density = 0; __id682_.sensor = false; __id682_.transparent = false; try { __id682_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id691__koen(){ try { __id691_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id691_.deathZone = true; __id691_.deathZoneBlink = true; __id691_.density = 0; __id691_.sensor = false; __id691_.transparent = false; try { __id691_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id695__koen(){ try { __id695_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id695_.deathZone = true; __id695_.deathZoneBlink = true; __id695_.density = 0; __id695_.sensor = false; __id695_.transparent = false; try { __id695_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id676__koen(){ try { __id676_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id676_.deathZone = true; __id676_.deathZoneBlink = true; __id676_.density = 0; __id676_.sensor = false; __id676_.transparent = false; try { __id676_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id678__koen(){ try { __id678_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id678_.deathZone = true; __id678_.deathZoneBlink = true; __id678_.density = 0; __id678_.sensor = false; __id678_.transparent = false; try { __id678_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id672__koen(){ try { __id672_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id672_.force = 2; __id672_.type = "positive"; __id672_.range = 100; try { __id672_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id697__koen(){ try { __id697_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id697_.deathZone = true; __id697_.deathZoneBlink = true; __id697_.density = 0; __id697_.sensor = false; __id697_.transparent = false; try { __id697_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id684__koen(){ try { __id684_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id684_.deathZone = true; __id684_.deathZoneBlink = true; __id684_.density = 0; __id684_.sensor = false; __id684_.transparent = false; try { __id684_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 283
//Tutorial4 (spill.bipole.levels.Tutorial4) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class Tutorial4 extends MovieClip { public var __id659_:iLevelDescriptor; public var __id669_:iSwitch; public var magnet1:iMagnet; public var __id661_:iNode; public var __id660_:iNode; public var __id670_:iRevoluteJoint; public var door:GGJ4door; public function Tutorial4(){ __setProp___id659__koen(); __setProp___id660__koen(); __setProp___id661__koen(); __setProp___id669__koen(); __setProp___id670__koen(); } function __setProp___id660__koen(){ try { __id660_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id660_.force = 2; __id660_.type = "positive"; __id660_.range = 100; try { __id660_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id661__koen(){ try { __id661_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id661_.force = 2; __id661_.type = "negative"; __id661_.range = 100; try { __id661_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id669__koen(){ try { __id669_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id669_.magnets = "magnet1"; __id669_.switchOnce = false; __id669_.type = "state"; try { __id669_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id659__koen(){ try { __id659_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id659_.angularDamping = 0.1; __id659_.friction = 0.5; __id659_.gravity = 10; __id659_.linearDamping = 0.1; __id659_.nodeForce = 1; __id659_.restitution = 0; try { __id659_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id670__koen(){ try { __id670_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id670_.body1 = "door"; __id670_.body2 = ""; __id670_.collideConnected = false; __id670_.limit = false; __id670_.lowerLimit = -60; __id670_.upperLimit = 60; __id670_.motor = false; __id670_.motorForce = 0; __id670_.motorSpeed = 0; __id670_.transparent = true; try { __id670_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 284
//Tutorial5 (spill.bipole.levels.Tutorial5) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class Tutorial5 extends MovieClip { public var __id657_:iMagnet; public var __id655_:iNode; public var __id651_:iLevelDescriptor; public function Tutorial5(){ __setProp___id651__koen(); __setProp___id655__koen(); __setProp___id657__koen(); } function __setProp___id657__koen(){ try { __id657_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id657_.force = 5; __id657_.type = "positive"; __id657_.state = true; try { __id657_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id651__koen(){ try { __id651_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id651_.angularDamping = 0.1; __id651_.friction = 0.5; __id651_.gravity = 10; __id651_.linearDamping = 0.1; __id651_.nodeForce = 1; __id651_.restitution = 0; try { __id651_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id655__koen(){ try { __id655_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id655_.force = 10; __id655_.type = "negative"; __id655_.range = 100; try { __id655_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 285
//Tutorial6 (spill.bipole.levels.Tutorial6) package spill.bipole.levels { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class Tutorial6 extends MovieClip { public var __id645_:iCircle; public var __id633_:iRectangle; public var __id641_:iRectangle; public var __id638_:iNode; public var __id646_:iCircle; public var __id634_:iRectangle; public var __id642_:iRectangle; public var __id650_:iCircle; public var __id647_:iCircle; public var __id635_:iRectangle; public var __id643_:iRectangle; public var __id631_:iLevelDescriptor; public var __id639_:iRectangle; public var __id648_:iCircle; public var __id644_:iCircle; public var __id632_:iRectangle; public var __id649_:iCircle; public function Tutorial6(){ __setProp___id631__koen(); __setProp___id632__koen(); __setProp___id633__koen(); __setProp___id634__koen(); __setProp___id635__koen(); __setProp___id638__koen(); __setProp___id639__koen(); __setProp___id641__koen(); __setProp___id642__koen(); __setProp___id643__koen(); __setProp___id644__koen(); __setProp___id645__koen(); __setProp___id646__koen(); __setProp___id647__koen(); __setProp___id648__koen(); __setProp___id649__koen(); __setProp___id650__koen(); } function __setProp___id643__koen(){ try { __id643_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id643_.deathZone = true; __id643_.deathZoneBlink = true; __id643_.density = 0; __id643_.sensor = false; __id643_.transparent = false; try { __id643_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id645__koen(){ try { __id645_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id645_.deathZone = true; __id645_.deathZoneBlink = true; __id645_.density = 0; __id645_.sensor = false; __id645_.transparent = false; try { __id645_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id647__koen(){ try { __id647_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id647_.deathZone = true; __id647_.deathZoneBlink = true; __id647_.density = 0; __id647_.sensor = false; __id647_.transparent = false; try { __id647_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id641__koen(){ try { __id641_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id641_.deathZone = true; __id641_.deathZoneBlink = true; __id641_.density = 0; __id641_.sensor = false; __id641_.transparent = false; try { __id641_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id649__koen(){ try { __id649_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id649_.deathZone = true; __id649_.deathZoneBlink = true; __id649_.density = 0; __id649_.sensor = false; __id649_.transparent = false; try { __id649_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id631__koen(){ try { __id631_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id631_.angularDamping = 0.1; __id631_.friction = 0.5; __id631_.gravity = 10; __id631_.linearDamping = 0.1; __id631_.nodeForce = 1; __id631_.restitution = 0; try { __id631_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id633__koen(){ try { __id633_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id633_.deathZone = true; __id633_.deathZoneBlink = true; __id633_.density = 0; __id633_.sensor = false; __id633_.transparent = false; try { __id633_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id635__koen(){ try { __id635_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id635_.deathZone = true; __id635_.deathZoneBlink = true; __id635_.density = 0; __id635_.sensor = false; __id635_.transparent = false; try { __id635_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id639__koen(){ try { __id639_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id639_.deathZone = true; __id639_.deathZoneBlink = true; __id639_.density = 0; __id639_.sensor = false; __id639_.transparent = false; try { __id639_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id650__koen(){ try { __id650_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id650_.deathZone = true; __id650_.deathZoneBlink = true; __id650_.density = 0; __id650_.sensor = false; __id650_.transparent = false; try { __id650_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id644__koen(){ try { __id644_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id644_.deathZone = true; __id644_.deathZoneBlink = true; __id644_.density = 0; __id644_.sensor = false; __id644_.transparent = false; try { __id644_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id646__koen(){ try { __id646_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id646_.deathZone = true; __id646_.deathZoneBlink = true; __id646_.density = 0; __id646_.sensor = false; __id646_.transparent = false; try { __id646_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id642__koen(){ try { __id642_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id642_.deathZone = true; __id642_.deathZoneBlink = true; __id642_.density = 0; __id642_.sensor = false; __id642_.transparent = false; try { __id642_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id648__koen(){ try { __id648_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id648_.deathZone = true; __id648_.deathZoneBlink = true; __id648_.density = 0; __id648_.sensor = false; __id648_.transparent = false; try { __id648_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id632__koen(){ try { __id632_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id632_.deathZone = true; __id632_.deathZoneBlink = true; __id632_.density = 0; __id632_.sensor = false; __id632_.transparent = false; try { __id632_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id634__koen(){ try { __id634_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id634_.deathZone = true; __id634_.deathZoneBlink = true; __id634_.density = 0; __id634_.sensor = false; __id634_.transparent = false; try { __id634_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id638__koen(){ try { __id638_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id638_.force = 10; __id638_.type = "negative"; __id638_.range = 100; try { __id638_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package spill.bipole.levels
Section 286
//GameCompleteScreen (spill.bipole.screens.GameCompleteScreen) package spill.bipole.screens { import flash.display.*; import spill.bipole.engine.*; import stuart.*; public class GameCompleteScreen extends MovieClip implements IGameScreen { private var demoLevel:Engine; public function GameCompleteScreen(){ demoLevel = new Engine(new CreditsLevel(), Levels.getBackground(1), false, true); demoLevel.init(); addChild(demoLevel); } public function start():void{ demoLevel.start(); } public function destroy():void{ demoLevel.stopEngine(); } } }//package spill.bipole.screens
Section 287
//HighScoreScreen (spill.bipole.screens.HighScoreScreen) package spill.bipole.screens { import flash.events.*; import flash.display.*; import spill.bipole.data.*; import flash.text.*; import gfx.*; import spill.bipole.utils.*; import gfx.BG.*; public class HighScoreScreen extends MovieClip implements IGameScreen { private var rotateSpeed:Number;// = 0.5 private var bg:Sprite; private var mc:HighScores; public function HighScoreScreen(){ var _local3:HighscoreData; var _local4:TextField; super(); mc = new HighScores(); addChild(mc); bg = new bg1(); mc.addChildAt(bg, 0); var _local1:Array = Data.getScores(); var _local2:int; while (_local2 < _local1.length) { _local3 = _local1[_local2]; _local4 = mc[("score" + (_local2 + 1))]; _local4.embedFonts = true; _local4.selectable = false; _local4.antiAliasType = AntiAliasType.NORMAL; _local4.text = (((((_local2 + 1) + ". ") + _local3.name) + " : ") + Utils.formatTime(_local3.time)); _local2++; }; } public function destroy():void{ removeEventListener(Event.ENTER_FRAME, rotate, false); } public function start():void{ addEventListener(Event.ENTER_FRAME, rotate, false, 0, true); } private function rotate(_arg1:Event):void{ mc.rotation = (mc.rotation + rotateSpeed); bg.rotation = (bg.rotation + rotateSpeed); } } }//package spill.bipole.screens
Section 288
//IGameScreen (spill.bipole.screens.IGameScreen) package spill.bipole.screens { public interface IGameScreen { function destroy():void; function start():void; } }//package spill.bipole.screens
Section 289
//LevelSelectionScreen (spill.bipole.screens.LevelSelectionScreen) package spill.bipole.screens { import flash.events.*; import flash.display.*; import spill.bipole.data.*; import flash.net.*; import flash.text.*; import spill.bipole.engine.*; import gfx.*; import spill.bipole.utils.*; import spill.localisation.*; import gfx.BG.*; import flash.geom.*; import flash.filters.*; public class LevelSelectionScreen extends MovieClip implements IGameScreen { private var numPerRow:int;// = 4 private var bg:Sprite; private var itemWidth:Number;// = 90 private var offsetY:Number;// = -140 private var itemHeight:Number;// = 30 private var offsetX:Number;// = -180 private var totalTimeText:TextField; public function LevelSelectionScreen(){ var _local6:int; var _local7:LevelSelectionButton; var _local8:LevelData; var _local9:Sitelock; super(); var _local1:Boolean = SpilGame.isExternal; bg = new bg4(); addChild(bg); totalTimeText = new TextField(); totalTimeText.defaultTextFormat = new TextFormat("DilleniaUPC", 60, 0, false, false, false, null, null, "center"); totalTimeText.text = Utils.formatTime(Data.getTotalTime()); totalTimeText.width = 300; totalTimeText.selectable = false; totalTimeText.embedFonts = true; totalTimeText.antiAliasType = AntiAliasType.ADVANCED; totalTimeText.x = -150; totalTimeText.y = 150; totalTimeText.filters = [new GlowFilter(0xFFFFFF, 1, 4, 4, 6)]; addChild(totalTimeText); var _local2:TextField = new TextField(); _local2.defaultTextFormat = new TextFormat("DilleniaUPC", 60, 0, false, false, false, null, null, "center"); _local2.text = "Select Level"; _local2.width = 300; _local2.selectable = false; _local2.embedFonts = true; _local2.antiAliasType = AntiAliasType.ADVANCED; _local2.x = -150; _local2.y = -230; _local2.filters = [new GlowFilter(0xFFFFFF, 1, 4, 4, 6)]; addChild(_local2); var _local3:int = Math.ceil((Levels.totalLevels / numPerRow)); var _local4:int; var _local5:int; while (_local5 < _local3) { _local6 = 0; while (_local6 < numPerRow) { _local7 = new LevelSelectionButton(); _local7.x = ((_local6 * itemWidth) + offsetX); _local7.y = ((_local5 * itemHeight) + offsetY); _local7.levelnumber.text = ("#" + (_local4 + 1)); _local8 = Data.getLevel(_local4); _local7.levelnumber.selectable = false; _local7.levelnumber.embedFonts = true; _local7.levelnumber.antiAliasType = AntiAliasType.ADVANCED; _local7.time.selectable = false; _local7.time.embedFonts = true; _local7.time.antiAliasType = AntiAliasType.ADVANCED; if (((_local8.unlocked) && ((((_local4 < 20)) || (!(_local1)))))){ _local7.level = _local4; if (_local8.complete){ _local7.time.text = Utils.formatTime(_local8.bestTime); _local7.transform.colorTransform = new ColorTransform(1, 1, 1, 1, -20, 0, -20, 0); } else { _local7.time.text = "---"; }; Utils.initButton(_local7, levelClicked); } else { _local7.gotoAndStop("_locked"); _local7.time.text = ""; }; addChild(_local7); _local4++; if (_local4 == Levels.totalLevels){ break; }; _local6++; }; _local5++; }; if (_local1){ _local9 = new Sitelock(); _local9.y = 72; _local9.x = -7; _local9.scaleY = 1.05; _local9.addEventListener(MouseEvent.CLICK, siteLockClicked, false, 0, true); _local9.mouseChildren = false; _local9.useHandCursor = true; _local9.mouseEnabled = true; _local9.buttonMode = true; addChild(_local9); }; } public function destroy():void{ removeEventListener(Event.ENTER_FRAME, enterFrame, false); } private function siteLockClicked(_arg1:Event):void{ var _local2:String = SpilGame.getSendToFriendLink().replace("send_to_friend", "site_lock_restrict"); navigateToURL(new URLRequest(_local2), "_blank"); } public function start():void{ addEventListener(Event.ENTER_FRAME, enterFrame, false, 0, true); } private function levelClicked(_arg1:Event):void{ Main.instance.startGame(MovieClip(_arg1.currentTarget).level); } private function enterFrame(_arg1:Event):void{ bg.rotation = (bg.rotation + 0.5); } } }//package spill.bipole.screens
Section 290
//MainScreen (spill.bipole.screens.MainScreen) package spill.bipole.screens { import flash.events.*; import flash.display.*; import spill.bipole.data.*; import spill.bipole.engine.*; import gfx.*; import spill.bipole.utils.*; import spill.bipole.levels.*; public class MainScreen extends MovieClip implements IGameScreen { private var demoLevel:Engine; private var mc:mainMenu; public function MainScreen(){ Analytics.mainScreenEvent(); demoLevel = new Engine(new mainmenu(), Levels.getBackground(10), false, true); demoLevel.init(); addChild(demoLevel); mc = new mainMenu(); addChild(mc); mc.anim.stop(); mc.cacheAsBitmap = true; cacheAsBitmap = true; Utils.initButton(mc.start_btn, startGame); } private function startGame(_arg1:Event):void{ Main.instance.startGame(); } public function destroy():void{ demoLevel.stopEngine(); } public function start():void{ demoLevel.start(); mc.anim.play(); } } }//package spill.bipole.screens
Section 291
//OptionScreen (spill.bipole.screens.OptionScreen) package spill.bipole.screens { import flash.events.*; import flash.display.*; import gfx.*; import spill.bipole.utils.*; import spill.bipole.controls.*; public class OptionScreen extends MovieClip { private var qualityControl:QualityControl; private var mc:OptionsScreen; private var musicControl:VolumeControl; private var soundControl:VolumeControl; public function OptionScreen(){ mc = new OptionsScreen(); addChild(mc); x = 260; y = 260; Utils.initButton(mc.optionsscreen.closebutton, close); soundControl = new VolumeControl(mc.optionsscreen.sound, "soundVolume"); musicControl = new VolumeControl(mc.optionsscreen.music, "musicVolume"); qualityControl = new QualityControl(mc.optionsscreen.quality); } private function close(_arg1:Event):void{ Main(parent).hideOptions(); } } }//package spill.bipole.screens
Section 292
//PreloaderScreen (spill.bipole.screens.PreloaderScreen) package spill.bipole.screens { import flash.events.*; import flash.display.*; import spill.localisation.*; import gfx.*; import flash.net.*; public class PreloaderScreen extends Sprite { private var mc:PreloaderScreen_mc; private var ldrInfo:LoaderInfo; public function PreloaderScreen(_arg1:LoaderInfo){ ldrInfo = _arg1; mc = new PreloaderScreen_mc(); addChild(mc); x = 260; y = 260; mc.brandingbutton.addEventListener(MouseEvent.CLICK, brandingButtonClicked); addEventListener(Event.ENTER_FRAME, updateLoader, false, 0, true); } private function brandingButtonClicked(_arg1:Event):void{ var _local2:String = SpilGame.getMoreGamesLink("Preloader"); navigateToURL(new URLRequest(_local2), "_blank"); } private function updateLoader(_arg1:Event):void{ var _local2:Number = (ldrInfo.bytesLoaded / ldrInfo.bytesTotal); var _local3:int = Math.round((mc.loadingbar.totalFrames * _local2)); mc.loadingbar.gotoAndStop(_local3); mc.loadingtext.text = (Math.round((_local2 * 100)) + "%"); } } }//package spill.bipole.screens
Section 293
//SubmitScoreScreen (spill.bipole.screens.SubmitScoreScreen) package spill.bipole.screens { import flash.events.*; import flash.display.*; import spill.bipole.data.*; import flash.text.*; import gfx.*; import spill.bipole.utils.*; import flash.ui.*; public class SubmitScoreScreen extends Sprite { private var mc:SubmitHighscore; public function SubmitScoreScreen(){ mc = new SubmitHighscore(); addChild(mc); x = 260; y = 260; Utils.initButton(mc.closebutton, closeMe); Utils.initButton(mc.submit_btn, submitScore); mc.textboxes.inputname.type = TextFieldType.INPUT; mc.textboxes.inputname.embedFonts = false; mc.textboxes.inputname.text = "Your Name"; mc.textboxes.inputname.multiline = false; mc.textboxes.inputname.antiAliasType = AntiAliasType.ADVANCED; mc.textboxes.inputname.addEventListener(KeyboardEvent.KEY_DOWN, textFieldKeyDown, false, 0, true); mc.textboxes.inputname.maxChars = 12; mc.textboxes.time.embedFonts = false; mc.textboxes.time.type = TextFieldType.DYNAMIC; mc.textboxes.time.selectable = false; mc.textboxes.time.antiAliasType = AntiAliasType.ADVANCED; mc.textboxes.time.text = Utils.formatTime(Data.getTotalTime()); trace(Utils.formatTime(Data.getTotalTime())); trace(mc.textboxes.time.text); addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true); } private function added(_arg1:Event):void{ } private function textFieldKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ submitScore(); }; } private function closeMe(_arg1:Event):void{ Main(parent).hideSubmitScreen(); } private function submitScore(_arg1:Event=null):void{ Data.submitScore(Data.getTotalTime(), mc.textboxes.inputname.text); Main(parent).goHighScores(); } } }//package spill.bipole.screens
Section 294
//Music (spill.bipole.sound.Music) package spill.bipole.sound { import flash.events.*; import flash.display.*; import flash.media.*; import sfx.*; public class Music { public static const TEST:Object = {fadeInStart:0, fadeInTime:5, fadeOutStart:1, fadeOutTime:5}; public static const NO_FADE:Object = {fadeInStart:1, fadeInTime:0, fadeOutStart:0, fadeOutTime:0}; public static const FADE_IN_OUT:Object = {fadeInStart:0.5, fadeInTime:1, fadeOutStart:1, fadeOutTime:0.5}; public static const FADE_IN:Object = {fadeInStart:0, fadeInTime:1, fadeOutStart:0, fadeOutTime:0}; public static const FADE_OUT:Object = {fadeInStart:1, fadeInTime:0, fadeOutStart:1, fadeOutTime:1}; private static const frameRate:Number = 30; private static var isFading:Boolean = false; private static var songs:Object = {menuMusic:MenuMusic, gameMusic:InGameMusic}; private static var enterFrameDispatcher:MovieClip = new MovieClip(); private static var lastChannel:SoundChannel; private static var currentFade:Object; private static var currentSound:Sound; private static var lastSound:Sound; private static var currentSong:String; private static var paused:Boolean; public static var _volume:Number = 1; private static var pausePosition:Number; private static var currentChannel:SoundChannel; private static var lastSong:String; private static var currentTransform:SoundTransform; private static var lastTransform:SoundTransform; private static var _mute:Number = 1; public static function get volume():Number{ return (_volume); } public static function get mute():Boolean{ return (!(Boolean(_mute))); } private static function doFade(_arg1:Event):void{ var _local2:Boolean; var _local3:Boolean; if (((((lastSong) && (lastTransform))) && (lastChannel))){ lastTransform.volume = (lastTransform.volume - (volume / (frameRate * currentFade.fadeOutTime))); if (lastTransform.volume <= 0){ lastTransform.volume = 0; lastChannel.stop(); _local2 = true; } else { lastChannel.soundTransform = lastTransform; }; } else { _local2 = true; }; if (((((currentSong) && (currentTransform))) && (currentChannel))){ currentTransform.volume = (currentTransform.volume + (volume / (frameRate * currentFade.fadeInTime))); if (currentTransform.volume >= (volume * _mute)){ currentTransform.volume = (volume * _mute); _local3 = true; }; currentChannel.soundTransform = currentTransform; } else { _local3 = true; }; if (((_local2) && (_local3))){ enterFrameDispatcher.removeEventListener(Event.ENTER_FRAME, doFade); isFading = false; }; } public static function resume():void{ if (!paused){ return; }; paused = false; currentChannel = currentSound.play((pausePosition % currentSound.length), 1, currentTransform); if (currentChannel){ currentChannel.addEventListener(Event.SOUND_COMPLETE, loopSong, false, 0, true); }; } public static function set mute(_arg1:Boolean):void{ _mute = (_arg1) ? 0 : 1; if (((currentTransform) && (currentChannel))){ currentTransform.volume = (_mute * volume); currentChannel.soundTransform = currentTransform; }; } public static function set volume(_arg1:Number):void{ _volume = _arg1; if (((currentTransform) && (currentChannel))){ currentTransform.volume = (_mute * _volume); currentChannel.soundTransform = currentTransform; }; } public static function stopSong(_arg1:Object=null):void{ playSong(null, false, _arg1); } private static function loopSong(_arg1:Event):void{ currentChannel = currentSound.play(0, 100, currentTransform); } public static function playSong(_arg1:String=null, _arg2:Boolean=true, _arg3:Object=null, _arg4:Boolean=false):void{ if ((((currentSong == _arg1)) && (!(_arg4)))){ return; }; if (((isFading) && (lastChannel))){ lastChannel.stop(); }; currentFade = (_arg3) ? _arg3 : FADE_IN_OUT; pausePosition = 0; trace(("playing song: " + _arg1)); if (currentSong != null){ lastSong = currentSong; lastSound = currentSound; lastTransform = currentTransform; lastChannel = currentChannel; if (lastTransform){ lastTransform.volume = ((currentFade.fadeOutStart * volume) * _mute); }; }; currentSong = _arg1; if (songs[_arg1] != null){ currentSound = new (songs[_arg1]); currentChannel = currentSound.play(0, (_arg2) ? 100 : 1); currentTransform = new SoundTransform(); currentTransform.volume = ((currentFade.fadeInStart * volume) * _mute); if (currentChannel){ currentChannel.soundTransform = currentTransform; }; }; enterFrameDispatcher.addEventListener(Event.ENTER_FRAME, doFade); isFading = true; paused = false; } public static function pause():void{ paused = true; pausePosition = currentChannel.position; currentChannel.stop(); } } }//package spill.bipole.sound
Section 295
//SoundFX (spill.bipole.sound.SoundFX) package spill.bipole.sound { import flash.events.*; import flash.utils.*; import flash.media.*; public class SoundFX { private static var soundDict:Dictionary = new Dictionary(); private static var _mute:Boolean = false; private static var channelDict:Dictionary = new Dictionary(); public static var volume:Number = 1; public static function get mute():Boolean{ return (_mute); } public static function set mute(_arg1:Boolean):void{ _mute = _arg1; } public static function resetCounters():void{ channelDict = new Dictionary(); soundDict = new Dictionary(); } private static function soundComplete(_arg1:Event):void{ var _local2:Class = channelDict[_arg1.currentTarget]; var _local3 = soundDict; var _local4 = _local2; var _local5 = (_local3[_local4] - 1); _local3[_local4] = _local5; delete channelDict[_arg1.currentTarget]; } public static function playSound(_arg1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=3):SoundChannel{ if ((_arg1 is Array)){ _arg1 = _arg1[Math.floor((Math.random() * _arg1.length))]; }; if (!(_arg1 is Class)){ return (null); }; if (soundDict[_arg1] >= _arg4){ return (null); }; var _local5:Sound = new (_arg1); var _local6:SoundChannel = _local5.play(0, _arg2); if (!_local6){ return (null); }; var _local7:SoundTransform = new SoundTransform((_mute) ? 0 : (volume * _arg3)); _local6.soundTransform = _local7; channelDict[_local6] = _arg1; if (!soundDict[_arg1]){ soundDict[_arg1] = 0; }; var _local8 = soundDict; var _local9 = _arg1; var _local10 = (_local8[_local9] + 1); _local8[_local9] = _local10; _local6.addEventListener(Event.SOUND_COMPLETE, soundComplete); return (_local6); } } }//package spill.bipole.sound
Section 296
//Utils (spill.bipole.utils.Utils) package spill.bipole.utils { import flash.events.*; import flash.display.*; import flash.net.*; import spill.localisation.*; public class Utils { public static function initButton(_arg1:MovieClip, _arg2:Function=null):void{ _arg1.buttonMode = true; _arg1.mouseChildren = false; _arg1.stop(); _arg1.addEventListener(MouseEvent.ROLL_OVER, buttonRollOver, false, 0, true); _arg1.addEventListener(MouseEvent.CLICK, buttonClicked, false, 0, true); if (_arg1.hit){ _arg1.hitArea = _arg1.hit; _arg1.hit.visible = false; }; if ((_arg2 is Function)){ _arg1.addEventListener(MouseEvent.CLICK, _arg2, false, 0, true); }; } private static function pad(_arg1:int):String{ if (_arg1 < 10){ return (("0" + _arg1)); }; return (_arg1.toString()); } public static function formatTime(_arg1:int):String{ var _local2:Number = Math.ceil((_arg1 / 1000)); var _local3:int = Math.floor((_local2 / 3600)); var _local4:int = (Math.floor((_local2 / 60)) - (_local3 * 60)); var _local5:int = (_local2 % 60); if (_local3 > 0){ return (((((_local3 + ":") + pad(_local4)) + ":") + pad(_local5))); }; return (((pad(_local4) + ":") + pad(_local5))); } private static function buttonClicked(_arg1:MouseEvent):void{ } private static function buttonRollOver(_arg1:MouseEvent):void{ } private static function brandingClicked(_arg1:Event):void{ var _local2:String = SpilGame.getMoreGamesLink(MovieClip(_arg1.currentTarget).term); navigateToURL(new URLRequest(_local2), "_blank"); } public static function initBrandinButton(_arg1:MovieClip, _arg2:String):void{ _arg1.addEventListener(MouseEvent.CLICK, brandingClicked, false, 0, true); _arg1.term = _arg2; } } }//package spill.bipole.utils
Section 297
//Game (spill.bipole.Game) package spill.bipole { import flash.events.*; import flash.display.*; import spill.bipole.data.*; import flash.text.*; import spill.bipole.engine.*; import gfx.*; import spill.localisation.*; import gfx.BG.*; import koen.*; public class Game extends Sprite { private var engine:Engine; public var currentLevel:int; private var transitioning:Boolean;// = false private var levelAnim:LevelBarAnim; private var firstTimeComplete:Boolean;// = false public static var instance:Game; public function Game(){ instance = this; } private function started():void{ transitioning = false; addLevelAnim(); engine.start(); } private function levelCompleted(_arg1:Event):void{ var _local2:Boolean = Data.isGameComplete(); Data.levelCompleted(currentLevel, engine.levelTime); if (!_local2){ if (Data.isGameComplete()){ firstTimeComplete = true; }; }; } public function start():void{ engine.start(); } public function playLevel(_arg1:int):void{ if (engine){ removeListeners(); engine.stopEngine(); }; if ((((_arg1 >= 20)) && (SpilGame.isExternal))){ Main.instance.goLevelSelection(); return; }; var _local2:Sprite = Levels.getBackground(_arg1); var _local3:Sprite = Levels.getLevel(Math.min(_arg1, (Levels.totalLevels - 1))); var _local4:Sprite = Levels.getTutorial(_arg1); engine = new Engine(_local3, _local2, false, false, _local4); engine.levelNum = _arg1; engine.debugDrawing = false; engine.addEventListener("restartLevel", restartLevel, false, 0, true); engine.addEventListener("nextLevel", nextLevel, false, 0, true); engine.addEventListener("levelCompleted", levelCompleted, false, 0, true); currentLevel = _arg1; Main.instance.goScreen(engine, started); transitioning = true; } private function removeLevelAnim():void{ if (levelAnim){ engine.removeChild(levelAnim); levelAnim.stop(); levelAnim = null; }; } private function addLevelAnim():void{ levelAnim = new LevelBarAnim(); levelAnim.levelbar.levelbar_txt.embedFonts = true; levelAnim.levelbar.levelbar_txt.antiAliasType = AntiAliasType.ADVANCED; levelAnim.levelbar.levelbar_txt.text = ("Level " + (currentLevel + 1)); levelAnim.addFrameScript((levelAnim.totalFrames - 1), removeLevelAnim); levelAnim.play(); engine.addChild(levelAnim); } private function nextLevel(_arg1:Event):void{ if (transitioning){ return; }; removeLevelAnim(); if (firstTimeComplete){ Main.instance.goGameComplete(); Analytics.gameCompletedEvent(); } else { if (currentLevel == (Levels.totalLevels - 1)){ Main.instance.goGameComplete(); Analytics.gameCompletedEvent(); } else { playLevel(++currentLevel); }; }; } public function removeListeners():void{ engine.removeEventListener("restartLevel", restartLevel, false); engine.removeEventListener("nextLevel", nextLevel, false); engine.removeEventListener("levelCompleted", levelCompleted, false); } private function restartLevel(_arg1:Event):void{ if (transitioning){ return; }; removeLevelAnim(); playLevel(currentLevel); } } }//package spill.bipole
Section 298
//Brand (spill.localisation.Brand) package spill.localisation { public class Brand { public var domain:String; public var useGoogleAnalitics:Boolean;// = true public var emailPage:String; public var name:String; public var site_id:uint; public var isExternal:Boolean;// = false public var id:Number; public var hostingDomain:String;// = "" public var preferedLanguage:String;// = "" public var moreLink:String;// = "/" public var hasSendToFriendLink:Boolean;// = true public var portalGroup:uint; public var emailLink:String;// = "/game/" private static const topLevelDoubles:String = (((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,"); public function Brand(){ moreLink = "/"; emailLink = "/game/"; useGoogleAnalitics = true; hasSendToFriendLink = true; preferedLanguage = ""; isExternal = false; hostingDomain = ""; super(); } private function get utm_source():String{ return (("utm_source=brandedgames_" + (isExternal) ? "external" : "internal")); } public function getMoreGamesLink(_arg1:String, _arg2:Boolean, _arg3:String="", _arg4:String=""):String{ var _local5:String; _local5 = ("http://" + domain); _local5 = (_local5 + moreLink); if (useGoogleAnalitics){ _local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg2) ? "external" : "internal")); _local5 = (_local5 + ("&utm_campaign=" + _arg1)); _arg3 = stripSubDomain(_arg3); trace(_arg3); if (_arg3 == "localhost"){ _arg3 = "offline_play"; }; _local5 = (_local5 + ("&utm_source=" + _arg3)); if (((!((_arg4 == ""))) && (!((_arg4 == null))))){ _local5 = (_local5 + ("&utm_content=" + _arg4)); }; }; return (_local5); } private function get utm_campaign():String{ if (isExternal){ return (("utm_campaign=" + hostingDomain)); }; return (""); } public function get backgroundColor():uint{ return (PortalGroup.backgroundColors[portalGroup]); } private function get utm_term():String{ return ("utm_term="); } public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{ var _local5:String; if (!hasSendToFriendLink){ return (getMoreGamesLink(_arg1, _arg3)); }; _local5 = ("http://" + domain); _local5 = (_local5 + (emailLink + _arg2)); if (useGoogleAnalitics){ _local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal")); _local5 = (_local5 + ("&utm_campaign=" + _arg1)); _arg4 = stripSubDomain(_arg4); if (_arg4 == "localhost"){ _arg4 = "offline_play"; }; _local5 = (_local5 + ("&utm_source=" + _arg4)); _local5 = (_local5 + "&utm_content=send_to_friend"); }; return (_local5); } private static function stripSubDomain(_arg1:String):String{ var _local2:Array; if (!_arg1){ return (""); }; _local2 = _arg1.split("."); if (_local2.length <= 2){ return (_arg1); }; _local2 = _local2.reverse(); if (topLevelDoubles.indexOf((((_local2[1] + ".") + _local2[0]) + ",")) > 0){ return (((((_local2[2] + ".") + _local2[1]) + ".") + _local2[0])); }; return (((_local2[1] + ".") + _local2[0])); } } }//package spill.localisation
Section 299
//BrandingLogo (spill.localisation.BrandingLogo) package spill.localisation { import flash.events.*; import flash.display.*; public class BrandingLogo extends MovieClip { public function BrandingLogo(){ addFrameScript(0, frame1); super(); stop(); mouseEnabled = false; mouseChildren = false; addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true); addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true); if (stage){ added(); }; } private function added(_arg1:Event=null):void{ SpilGame.addEventListener("brandingChanged", brandingChanged, false, 0, true); brandingChanged(); } private function brandingChanged(_arg1:Event=null):void{ if (SpilGame.currentBranding){ gotoAndStop(SpilGame.currentBranding.domain); }; } function frame1(){ stop(); } private function removed(_arg1:Event):void{ SpilGame.removeEventListener("brandingChanged", brandingChanged); } } }//package spill.localisation
Section 300
//Brandings (spill.localisation.Brandings) package spill.localisation { public class Brandings { private static var brands_by_id:Object = new Object(); private static var brands_by_domain:Object = new Object(); public static function getBrandByID(_arg1:Number):Brand{ return (brands_by_id[_arg1]); } public static function getBrandsArray():Array{ var _local1:Array; var _local2:Brand; _local1 = new Array(); for each (_local2 in brands_by_domain) { _local1.push(_local2); }; return (_local1); } private static function addBrand(_arg1:Brand):Brand{ if (brands_by_domain[_arg1.domain]){ trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain)); } else { brands_by_domain[_arg1.domain] = _arg1; }; if (brands_by_id[_arg1.site_id]){ trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id)); } else { brands_by_id[_arg1.site_id] = _arg1; }; return (_arg1); } public static function initialize():void{ var _local1:Brand; _local1 = new Brand(); _local1.site_id = 79; _local1.domain = "www.agame.com"; _local1.preferedLanguage = "en_us"; _local1.portalGroup = PortalGroup.TWEEN; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 88; _local1.domain = "www.gamesgames.com"; _local1.preferedLanguage = "en_us"; _local1.portalGroup = PortalGroup.FAMILY; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 90; _local1.domain = "www.girlsgogames.com"; _local1.preferedLanguage = "en_us"; _local1.portalGroup = PortalGroup.GIRL; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 45; _local1.domain = "www.a10.com"; _local1.preferedLanguage = "en_us"; _local1.portalGroup = PortalGroup.TEEN; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 92; _local1.domain = "www.games.co.uk"; _local1.preferedLanguage = "en_uk"; _local1.portalGroup = PortalGroup.FAMILY; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 107; _local1.domain = "www.mygames.co.uk"; _local1.preferedLanguage = "en_uk"; _local1.portalGroup = PortalGroup.TWEEN; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 102; _local1.domain = "www.girlsgogames.co.uk"; _local1.preferedLanguage = "en_uk"; _local1.portalGroup = PortalGroup.GIRL; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 2; _local1.domain = "www.game.com.cn"; _local1.moreLink = "/moregames/"; _local1.preferedLanguage = "cn"; _local1.portalGroup = PortalGroup.NONE; _local1.useGoogleAnalitics = false; _local1.hasSendToFriendLink = false; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 25; _local1.domain = "www.spel.nl"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "nl"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 1; _local1.domain = "www.spelletjes.nl"; _local1.emailLink = "/spel/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "nl"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 93; _local1.domain = "www.girlsgogames.nl"; _local1.emailLink = "/spel/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "nl"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 12; _local1.domain = "www.jeu.fr"; _local1.emailLink = "/jeu/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "fr"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 95; _local1.domain = "www.girlsgogames.fr"; _local1.emailLink = "/jeu/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "fr"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 11; _local1.domain = "www.jeux.fr"; _local1.emailLink = "/jeu/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "fr"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 26; _local1.domain = "www.spielen.com"; _local1.emailLink = "/spiel/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "de"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 94; _local1.domain = "www.girlsgogames.de"; _local1.emailLink = "/spiel/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "de"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 5; _local1.domain = "www.jetztspielen.de"; _local1.emailLink = "/spiel/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "de"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 109; _local1.domain = "www.minigry.pl"; _local1.emailLink = "/gra/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "pl"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 16; _local1.domain = "www.gry.pl"; _local1.emailLink = "/gra/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "pl"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 98; _local1.domain = "www.girlsgogames.pl"; _local1.emailLink = "/gra/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "pl"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 108; _local1.domain = "www.spel.se"; _local1.emailLink = "/spel_/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "se"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 100; _local1.domain = "www.girlsgogames.se"; _local1.emailLink = "/spel_/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "se"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 44; _local1.domain = "www.spela.se"; _local1.emailLink = "/spel_/"; _local1.preferedLanguage = "se"; _local1.portalGroup = PortalGroup.FAMILY; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 106; _local1.domain = "www.giocaregratis.it"; _local1.emailLink = "/gioco/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "it"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 15; _local1.domain = "www.gioco.it"; _local1.emailLink = "/gioco/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "it"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 99; _local1.domain = "www.girlsgogames.it"; _local1.emailLink = "/gioco/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "it"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 97; _local1.domain = "www.zapjuegos.com"; _local1.emailLink = "/juego/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "es"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 86; _local1.domain = "www.juegos.com"; _local1.emailLink = "/juego/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "es"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 96; _local1.domain = "www.juegosdechicas.com"; _local1.emailLink = "/juego/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "es"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 122; _local1.domain = "www.girlsgogames.es"; _local1.emailLink = "/juego/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "es"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 91; _local1.domain = "www.clickjogos.com"; _local1.emailLink = "/jogo/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "br"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 101; _local1.domain = "www.girlsgogames.com.br"; _local1.emailLink = "/jogo/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "br"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 50; _local1.domain = "www.ojogos.com.br"; _local1.emailLink = "/jogo/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "br"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 55; _local1.domain = "www.games.co.id"; _local1.emailLink = "/permainanme/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "id"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 105; _local1.domain = "www.flashgames.ru"; _local1.emailLink = "/igra/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "ru"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 104; _local1.domain = "www.girlsgogames.ru"; _local1.emailLink = "/igra/"; _local1.portalGroup = PortalGroup.GIRL; _local1.preferedLanguage = "ru"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 103; _local1.domain = "www.ourgames.ru"; _local1.emailLink = "/igra/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "ru"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 24; _local1.domain = "www.game.co.in"; _local1.emailLink = "/game/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "in"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 87; _local1.domain = "www.ojogos.pt"; _local1.emailLink = "/jogo/"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = "pt"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 120; _local1.domain = "www.egames.jp"; _local1.emailLink = "/game/"; _local1.portalGroup = PortalGroup.TWEEN; _local1.preferedLanguage = "jp"; addBrand(_local1); _local1 = new Brand(); _local1.site_id = 0; _local1.domain = "gamedev.dev.spilgames.com"; _local1.portalGroup = PortalGroup.FAMILY; _local1.preferedLanguage = null; addBrand(_local1); } public static function getBrandByDomain(_arg1:String):Brand{ return (brands_by_domain[_arg1]); } public static function hasDomain(_arg1:String):Boolean{ return (!((brands_by_domain[_arg1] == null))); } } }//package spill.localisation
Section 301
//Language (spill.localisation.Language) package spill.localisation { public class Language { public var name:String; public var forceFont:String;// = null public var id:uint; public var portal_groups:Array; public var textLanguage:String; public var bwcId:int; public var embedFonts:Boolean;// = true public var displayName:String;// = "" public var dname:String; public function Language(_arg1:String, _arg2:String=null){ embedFonts = true; forceFont = null; displayName = ""; super(); name = _arg1; dname = _arg2; portal_groups = new Array(); } public function get p_teen():String{ return (portal_groups[PortalGroup.TEEN]); } public function get p_family():String{ return (portal_groups[PortalGroup.FAMILY]); } public function set p_teen(_arg1:String):void{ portal_groups[PortalGroup.TEEN] = _arg1; } public function get p_tween():String{ return (portal_groups[PortalGroup.TWEEN]); } public function get p_girl():String{ return (portal_groups[PortalGroup.GIRL]); } public function set p_family(_arg1:String):void{ portal_groups[PortalGroup.FAMILY] = _arg1; } public function set p_girl(_arg1:String):void{ portal_groups[PortalGroup.GIRL] = _arg1; } public function get displayAcronim():String{ return ((dname) ? dname : name); } public function set p_tween(_arg1:String):void{ portal_groups[PortalGroup.TWEEN] = _arg1; } } }//package spill.localisation
Section 302
//Languages (spill.localisation.Languages) package spill.localisation { public class Languages { public static var languages:Object = new Object(); private static var _init:Boolean = false; public static function initialize():void{ var _local1:Language; if (_init){ return; }; _init = true; _local1 = new Language("nl"); _local1.displayName = "Nederlands"; _local1.p_family = "www.spelletjes.nl"; _local1.p_tween = "www.spel.nl"; _local1.p_girl = "www.girlsgogames.nl"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 3; addLanguage(_local1); _local1 = new Language("es"); _local1.displayName = "Español"; _local1.p_family = "www.juegos.com"; _local1.p_tween = "www.zapjuegos.com"; _local1.p_girl = "www.girlsgogames.es"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 9; addLanguage(_local1); _local1 = new Language("pl"); _local1.displayName = "Polski"; _local1.p_family = "www.gry.pl"; _local1.p_tween = "www.minigry.pl"; _local1.p_girl = "www.girlsgogames.pl"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 6; addLanguage(_local1); _local1 = new Language("fr"); _local1.displayName = "Français"; _local1.p_family = "www.jeux.fr"; _local1.p_tween = "www.jeu.fr"; _local1.p_girl = "www.girlsgogames.fr"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 4; addLanguage(_local1); _local1 = new Language("en_us", "us"); _local1.displayName = "English (US)"; _local1.p_family = "www.gamesgames.com"; _local1.p_tween = "www.agame.com"; _local1.p_girl = "www.girlsgogames.com"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 1; addLanguage(_local1); addReference(_local1, "en"); _local1 = new Language("id"); _local1.displayName = "Bahasa Ind."; _local1.p_family = "www.games.co.id"; _local1.p_tween = "www.games.co.id"; _local1.p_girl = "www.games.co.id"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 11; addLanguage(_local1); _local1 = new Language("ru"); _local1.displayName = "Русский язык"; _local1.p_family = "www.ourgames.ru"; _local1.p_tween = "www.flashgames.ru"; _local1.p_girl = "www.girlsgogames.ru"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 12; addLanguage(_local1); _local1 = new Language("se"); _local1.displayName = "Svenska"; _local1.p_family = "www.spela.se"; _local1.p_tween = "www.spel.se"; _local1.p_girl = "www.girlsgogames.se"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 7; addLanguage(_local1); addReference(_local1, "sv"); _local1 = new Language("it"); _local1.displayName = "Italiano"; _local1.p_family = "www.gioco.it"; _local1.p_tween = "www.giocaregratis.it"; _local1.p_girl = "www.girlsgogames.it"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 8; addLanguage(_local1); _local1 = new Language("en_uk", "uk"); _local1.displayName = "English (UK)"; _local1.p_family = "www.games.co.uk"; _local1.p_tween = "www.mygames.co.uk"; _local1.p_girl = "www.girlsgogames.co.uk"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 13; addLanguage(_local1); _local1 = new Language("cn"); _local1.displayName = "中文"; _local1.p_family = "www.game.com.cn"; _local1.p_tween = "www.game.com.cn"; _local1.p_girl = "www.game.com.cn"; _local1.p_teen = "www.game.com.cn"; _local1.bwcId = 2; _local1.embedFonts = false; _local1.forceFont = "_sans"; addLanguage(_local1); addReference(_local1, "zh-CN"); addReference(_local1, "zh-TW"); _local1 = new Language("pt"); _local1.displayName = "Português"; _local1.p_family = "www.ojogos.pt"; _local1.p_tween = "www.ojogos.pt"; _local1.p_girl = "www.ojogos.pt"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 17; addLanguage(_local1); _local1 = new Language("in"); _local1.displayName = "India"; _local1.p_family = "www.game.co.in"; _local1.p_tween = "www.game.co.in"; _local1.p_girl = "www.game.co.in"; _local1.p_teen = "www.a10.com"; _local1.textLanguage = "en_uk"; _local1.bwcId = 14; addLanguage(_local1); _local1 = new Language("de"); _local1.displayName = "Deutsch"; _local1.p_family = "www.jetztspielen.de"; _local1.p_tween = "www.spielen.com"; _local1.p_girl = "www.girlsgogames.de"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 5; addLanguage(_local1); _local1 = new Language("br"); _local1.displayName = "PortuguêsBR"; _local1.p_family = "www.ojogos.com.br"; _local1.p_tween = "www.clickjogos.com"; _local1.p_girl = "www.girlsgogames.com.br"; _local1.p_teen = "www.a10.com"; _local1.bwcId = 10; addLanguage(_local1); _local1 = new Language("jp"); _local1.displayName = "日本語"; _local1.p_family = "www.egames.jp"; _local1.p_tween = "www.egames.jp"; _local1.p_girl = "www.egames.jp"; _local1.p_teen = "www.a10.com"; _local1.embedFonts = false; _local1.forceFont = "_sans"; _local1.bwcId = 19; addLanguage(_local1); addReference(_local1, "ja"); } public static function getLanguagesArray():Array{ var _local1:Array; var _local2:Object; var _local3:Language; _local1 = new Array(); _local2 = new Object(); for each (_local3 in languages) { if (!_local2[_local3.name]){ _local1.push(_local3); _local2[_local3.name] = true; }; }; return (_local1); } public static function getLanguage(_arg1:String):Language{ return (languages[_arg1]); } private static function addLanguage(_arg1:Language):void{ languages[_arg1.name] = _arg1; } private static function addReference(_arg1:Language, _arg2:String):void{ languages[_arg2] = _arg1; } public static function getLanguageByOldID(_arg1:int):Language{ var _local2:Language; for each (_local2 in languages) { if (_local2.bwcId == _arg1){ return (_local2); }; }; return (null); } } }//package spill.localisation
Section 303
//PortalGroup (spill.localisation.PortalGroup) package spill.localisation { public class PortalGroup { public static const FAMILY:uint = 0; public static const TWEEN:uint = 1; public static const NONE:uint = 4; public static const TEEN:uint = 3; public static const GIRL:uint = 2; public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF]; } }//package spill.localisation
Section 304
//spil_internal (spill.localisation.spil_internal) package spill.localisation { public namespace spil_internal = "spill.localisation"; }//package spill.localisation
Section 305
//SpilGame (spill.localisation.SpilGame) package spill.localisation { import flash.events.*; import flash.display.*; import flash.text.*; import flash.ui.*; import flash.net.*; import flash.system.*; import flash.external.*; public class SpilGame { private static const cookiePath:String = "/"; private static const cookieLanguageVar:String = "savedLang"; public static const LANGUAGE_CHANGED:String = "languageChanged"; private static const cookieName:String = "spilgames_language_v100"; public static const BRANDING_CHANGED:String = "brandingChanged"; private static var strings:Object = new Object(); public static var currentBranding:Brand; private static var contexMenuItem:ContextMenuItem; spil_internal static var gameName:String; spil_internal static var debugEmbedDomain:String = ""; spil_internal static var debugHostDomain:String = ""; private static var localDomains:Object = new Object(); spil_internal static var emailPage:String; private static var eventDispatcher:EventDispatcher; private static var _init:Boolean = false; public static var currentLanguage:Language; spil_internal static var portalGroup:uint; public static function getSpilCompanyLink():String{ if (currentLanguage.name == "cn"){ return ("http://www.game.com.cn/downloads/"); }; return ("http://www.gameportal.net"); } public static function getString(_arg1:String):String{ var _local2:Object; _local2 = strings[_arg1]; if (_local2){ if (currentLanguage.textLanguage){ return (_local2[currentLanguage.textLanguage]); }; return (_local2[currentLanguage.name]); //unresolved jump }; return (""); } public static function traceAllBrands():void{ trace(outputAllBrands()); } public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite):void{ if (_init){ trace("ERROR: LocalisationManager already initialised"); return; }; _init = true; localDomains["localhost"] = true; localDomains["www8.agame.com"] = true; localDomains["gamedev.dev.spilgames.com"] = true; Brandings.initialize(); Languages.initialize(); initContexMenu(_arg4); gameName = _arg1.replace(" ", "_"); portalGroup = _arg2; emailPage = _arg3; chooseLanguage(); setBrandingFromLanguage(); } public static function get isExternal():Boolean{ return (((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))); } private static function initContexMenu(_arg1:Sprite):void{ contexMenuItem = new ContextMenuItem(""); _arg1.contextMenu = new ContextMenu(); _arg1.contextMenu.customItems.push(contexMenuItem); contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked); } private static function replaceFn():String{ var _local2:String; _local2 = SpilGame.getString(arguments[1]); if (((!(_local2)) || ((_local2 == "")))){ return ((("{" + arguments[1]) + "}")); }; return (_local2); } private static function contexMenuClicked(_arg1:ContextMenuEvent):void{ navigateToURL(new URLRequest(getMoreGamesLink("Contex_Menu"))); } public static function initTextField(_arg1:TextField):void{ var _local2:TextFormat; trace(_arg1.text); _arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn); trace(_arg1.text); _arg1.embedFonts = currentLanguage.embedFonts; if (currentLanguage.forceFont != ""){ _local2 = new TextFormat(); _local2.font = currentLanguage.forceFont; _arg1.setTextFormat(_local2); }; } spil_internal static function get hostingDomain():String{ var _local1:LocalConnection; if (debugHostDomain != ""){ return (debugHostDomain); }; _local1 = new LocalConnection(); return (_local1.domain); } spil_internal static function chooseLanguage():void{ if (cookieLanguage != null){ currentLanguage = cookieLanguage; } else { if (isExternal){ currentLanguage = systemLanguage; } else { currentLanguage = portalLanguage; if (!currentLanguage){ currentLanguage = systemLanguage; }; }; }; if (!currentLanguage){ trace("Unable to determine language, using 'English US'"); currentLanguage = Languages.getLanguage("en_us"); }; TextFieldFit.embedFonts = currentLanguage.embedFonts; TextFieldFit.forceFont = currentLanguage.forceFont; dispatchEvent(new Event(LANGUAGE_CHANGED)); } public static function importXMLv2(_arg1:XML):void{ var _local2:XML; var _local3:Object; var _local4:XML; for each (_local2 in _arg1.children()) { _local3 = (strings[_local2.attribute("identifier")] = new Object()); for each (_local4 in _local2.children()) { if (_local4.children().length() > 0){ _local3[_local4.name()] = _local4.children()[0].toString(); } else { _local3[_local4.name()] = ""; }; }; }; } spil_internal static function changeLanguage(_arg1:String):void{ var _local2:Language; _local2 = Languages.getLanguage(_arg1); if (!_local2){ trace("ERROR: Supplied language string does not have a matching language"); } else { cookieLanguage = _local2; currentLanguage = _local2; }; TextFieldFit.embedFonts = currentLanguage.embedFonts; TextFieldFit.forceFont = currentLanguage.forceFont; setBrandingFromLanguage(); dispatchEvent(new Event(LANGUAGE_CHANGED)); } public static function getSendToFriendLink():String{ return (currentBranding.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain)); } public static function importXML(_arg1:XML):void{ var _local2:XML; var _local3:Object; var _local4:XML; for each (_local2 in _arg1.children()) { _local3 = (strings[_local2.identifier] = new Object()); for each (_local4 in _local2.children()) { _local3[_local4.name()] = _local4.children()[0].toString(); }; }; } spil_internal static function get systemLanguage():Language{ return (Languages.getLanguage(Capabilities.language)); } spil_internal static function set cookieLanguage(_arg1:Language):void{ var _local2:SharedObject; _local2 = SharedObject.getLocal(cookieName, cookiePath); if (_arg1 == null){ _local2.data[cookieLanguageVar] = null; } else { _local2.data[cookieLanguageVar] = _arg1.name; }; _local2.flush(); } spil_internal static function dispatchEvent(_arg1:Event):void{ if (!eventDispatcher){ eventDispatcher = new EventDispatcher(); }; eventDispatcher.dispatchEvent(_arg1); } private static function getDomain(_arg1:String):String{ var _local2:String; var _local3:uint; if (_arg1.indexOf("file") == 0){ return ("offline_play"); }; _local2 = new String(); _local3 = 7; while (_local3 < _arg1.length) { if (_arg1.charAt(_local3) == "/"){ break; }; _local2 = (_local2 + _arg1.charAt(_local3)); _local3++; }; if (_local2 == "localhost"){ _local2 = "offline_play"; }; return (_local2); } spil_internal static function setBrandingFromLanguage():void{ var _local1:Brand; var _local2:uint; if (!isExternal){ _local1 = Brandings.getBrandByDomain(embedDomain); if (_local1){ if (currentLanguage.name == _local1.preferedLanguage){ currentBranding = _local1; } else { _local2 = 0; if (_local1.portalGroup == PortalGroup.NONE){ _local2 = portalGroup; } else { _local2 = _local1.portalGroup; }; currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[_local2]); }; } else { currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]); }; } else { currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]); }; if ((!(currentBranding) is Brand)){ currentBranding = Brandings.getBrandByDomain("www.agame.com"); }; contexMenuItem.caption = ("More Games: " + currentBranding.domain); dispatchEvent(new Event(BRANDING_CHANGED)); } public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (!eventDispatcher){ eventDispatcher = new EventDispatcher(); }; eventDispatcher.removeEventListener(_arg1, _arg2, _arg3); } public static function outputAllBrands():String{ var _local1:Array; var _local2:String; var _local3:Brand; _local1 = Brandings.getBrandsArray(); _local2 = ""; for each (_local3 in _local1) { _local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n")); }; return (_local2); } public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (!eventDispatcher){ eventDispatcher = new EventDispatcher(); }; eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public static function getMoreGamesLink(_arg1:String=""):String{ var _local2:String; _local2 = (embedDomain) ? embedDomain : hostingDomain; return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1)); } spil_internal static function get cookieLanguage():Language{ var _local1:SharedObject; var _local2:String; _local1 = SharedObject.getLocal(cookieName, cookiePath); _local2 = String(_local1.data[cookieLanguageVar]); return (Languages.getLanguage(_local2)); } private static function get portalLanguage():Language{ var _local1:Brand; var _local2:String; var _local3:Language; if (isExternal){ return (null); }; if (!embedDomain){ return (null); }; _local1 = Brandings.getBrandByDomain(embedDomain); if (!_local1){ return (null); }; _local2 = _local1.preferedLanguage; if (!_local2){ return (null); }; _local3 = Languages.getLanguage(_local2); if (!_local3){ return (null); }; return (_local3); } spil_internal static function get embedDomain():String{ var loc:String; if (debugEmbedDomain != ""){ return (debugEmbedDomain); }; if (ExternalInterface.available){ try { loc = ExternalInterface.call("window.location.href.toString"); if (((!((loc == ""))) && (!((loc == null))))){ trace(("embed domain = " + getDomain(loc))); return (getDomain(loc)); }; } catch(e:SecurityError) { trace(("Security Error connecting to external interface, error = " + e)); } catch(e:Error) { trace(("Error connecting to external interface, error = " + e)); }; }; return (null); } } }//package spill.localisation
Section 306
//TextFieldFit (spill.localisation.TextFieldFit) package spill.localisation { import flash.events.*; import flash.display.*; import flash.text.*; import flash.filters.*; public class TextFieldFit extends MovieClip { protected var _text:String;// = "default" protected var _textSize:Number;// = 12 protected var _embedFonts:Boolean;// = true protected var _glowColor:uint;// = 0 private var h:Number; protected var _antiAliasType:String;// = "advanced" private var w:Number; protected var _useGlowFilter:Boolean;// = false protected var _hAlign:String;// = "left" protected var _textColor:uint;// = 0 protected var _glowStrength:Number;// = 5 protected var _glowBlur:Number;// = 3 private var field:TextField; protected var _gridFitType:String;// = "pixel" protected var _glowQuality:Number;// = 1 private var debugBounding:Sprite; protected var _disableWordwrap:Boolean;// = false protected var _multiline:Boolean;// = false protected var _font:String;// = "" protected var _underline:Boolean;// = false protected var _vAlign:String;// = "top" protected var _italic:Boolean;// = false protected var _bold:Boolean;// = false private var sizeChanged:Boolean;// = true private var embeddedFonts:Array; protected var _selectable:Boolean;// = false private var format:TextFormat; private var valid:Boolean;// = true private static const gutter:Number = 2; spil_internal static var embedFonts:Boolean = true; spil_internal static var forceAAType:String = null; spil_internal static var forceFont:String = null; public static var alwaysCheckWidth:Boolean = false; public function TextFieldFit(){ var _local1:Number; var _local2:Number; sizeChanged = true; valid = true; _text = "default"; _textColor = 0; _textSize = 12; _multiline = false; _disableWordwrap = false; _hAlign = "left"; _vAlign = "top"; _bold = false; _underline = false; _italic = false; _selectable = false; _font = ""; _embedFonts = true; _antiAliasType = "advanced"; _gridFitType = "pixel"; _useGlowFilter = false; _glowBlur = 3; _glowColor = 0; _glowStrength = 5; _glowQuality = 1; super(); _local1 = width; _local2 = height; if (numChildren > 0){ removeChildAt(0); }; if (!field){ field = new TextField(); addChild(field); }; field.border = false; field.background = false; field.type = TextFieldType.DYNAMIC; mouseEnabled = false; mouseChildren = false; format = new TextFormat(); embeddedFonts = Font.enumerateFonts(false); setSize(_local1, _local2); validate(); if (stage){ addEventListener(Event.RENDER, init); stage.invalidate(); } else { init(); }; } private function resizeText(_arg1:Boolean=false):void{ if (!doesTextFit()){ format.size = Object((Number(format.size) - 1)); if (format.size <= 3){ trace("WARNING: Text resised to 3px, either an error occured or the text just wont fit"); return; }; field.setTextFormat(format); resizeText(true); } else { if (_arg1 == false){ while (doesTextFit()) { if (format.size <= textSize){ format.size = Object((Number(format.size) + 1)); field.setTextFormat(format); if (!doesTextFit()){ format.size = Object((Number(format.size) - 1)); field.setTextFormat(format); break; }; } else { break; }; }; }; }; } public function get italic():Boolean{ return (_italic); } public function get textColor():uint{ return (_textColor); } public function get vAlign():String{ return (_vAlign); } public function get useGlowFilter():Boolean{ return (_useGlowFilter); } public function get selectable():Boolean{ return (_selectable); } public function set italic(_arg1:Boolean):void{ _italic = _arg1; invalidate(); } public function set text(_arg1:String):void{ _text = _arg1; invalidate(); } public function set vAlign(_arg1:String):void{ _vAlign = _arg1; invalidate(); } public function get font():String{ return (_font); } public function set textColor(_arg1:uint):void{ _textColor = _arg1; invalidate(); } public function get antiAliasType():String{ return (_antiAliasType); } public function get bold():Boolean{ return (_bold); } public function set useGlowFilter(_arg1:Boolean):void{ _useGlowFilter = _arg1; invalidate(); } public function set font(_arg1:String):void{ _font = _arg1; invalidate(); } public function set selectable(_arg1:Boolean):void{ _selectable = _arg1; invalidate(); } public function get multiline():Boolean{ return (_multiline); } public function set disableWordwrap(_arg1:Boolean):void{ _disableWordwrap = _arg1; invalidate(); } public function get glowQuality():Number{ return (_glowQuality); } public function get embedFonts():Boolean{ return (_embedFonts); } public function get gridFitType():String{ return (_gridFitType); } public function get underline():Boolean{ return (_underline); } public function get textSize():Number{ return (_textSize); } public function set antiAliasType(_arg1:String):void{ _antiAliasType = _arg1; invalidate(); } protected function updateProperties():void{ var _local1:Boolean; var _local2:Font; field.text = _text; field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline; field.wordWrap = ((field.multiline) && (!(_disableWordwrap))); field.selectable = _selectable; field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType; field.gridFitType = _gridFitType; embeddedFonts = Font.enumerateFonts(false); if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){ _local1 = false; for each (_local2 in embeddedFonts) { if (_font == _local2.fontName){ _local1 = true; break; }; }; field.embedFonts = _local1; if (!_local1){ trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text)); }; } else { field.embedFonts = false; }; if (TextFieldFit.forceFont){ format.font = TextFieldFit.forceFont; } else { if (_font != ""){ format.font = _font; }; }; if (sizeChanged){ format.size = _textSize; }; format.color = _textColor; format.align = _hAlign; format.bold = _bold; format.italic = _italic; format.underline = _underline; format.leftMargin = 0; format.rightMargin = 0; field.setTextFormat(format); if (_useGlowFilter){ filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)]; } else { filters = []; }; } private function doesTextFit():Boolean{ if (((((field.textHeight + (gutter * 2)) > h)) || (((((field.textWidth + (gutter * 2)) > w)) && (((!(field.multiline)) || (alwaysCheckWidth))))))){ return (false); }; return (true); } public function get glowStrength():Number{ return (_glowStrength); } public function set hAlign(_arg1:String):void{ _hAlign = _arg1; invalidate(); } private function init(_arg1:Event=null):void{ removeEventListener(Event.RENDER, init); updateProperties(); layoutText(); } public function set bold(_arg1:Boolean):void{ _bold = _arg1; invalidate(); } private function validate(_arg1:Event=null):void{ updateProperties(); layoutText(); removeEventListener(Event.ENTER_FRAME, validate); valid = true; } public function get text():String{ return (_text); } public function set glowBlur(_arg1:Number):void{ _glowBlur = _arg1; invalidate(); } private function invalidate():void{ if (valid){ addEventListener(Event.ENTER_FRAME, validate); if (stage){ stage.invalidate(); }; valid = false; }; } public function set embedFonts(_arg1:Boolean):void{ _embedFonts = _arg1; invalidate(); } public function set multiline(_arg1:Boolean):void{ _multiline = _arg1; invalidate(); } public function get disableWordwrap():Boolean{ return (_disableWordwrap); } public function set glowQuality(_arg1:Number):void{ _glowQuality = _arg1; invalidate(); } private function layoutText():void{ resizeText(); field.height = (field.textHeight + (gutter * 2)); if (vAlign == "top"){ field.y = 0; } else { if (vAlign == "middle"){ field.y = ((h - field.height) / 2); } else { if (vAlign == "bottom"){ field.y = (h - field.height); }; }; }; } public function get hAlign():String{ return (_hAlign); } public function setSize(_arg1:Number, _arg2:Number):void{ w = _arg1; h = _arg2; scaleX = (scaleY = 1); field.width = w; field.height = h; invalidate(); } public function set gridFitType(_arg1:String):void{ _gridFitType = _arg1; invalidate(); } public function set underline(_arg1:Boolean):void{ _underline = _arg1; invalidate(); } public function get glowBlur():Number{ return (_glowBlur); } public function set textSize(_arg1:Number):void{ _textSize = _arg1; sizeChanged = true; invalidate(); } public function set glowColor(_arg1:uint):void{ _glowColor = _arg1; invalidate(); } public function get glowColor():uint{ return (_glowColor); } public function set glowStrength(_arg1:Number):void{ _glowStrength = _arg1; invalidate(); } } }//package spill.localisation
Section 307
//spWorldEvent (spill.physics.events.spWorldEvent) package spill.physics.events { import flash.events.*; import spill.physics.*; public class spWorldEvent extends Event { public var world:spWorld; public var timeStep:Number; public var element:spElement; public static const BEFORE_STEP_PHYSICS:String = "beforeStepPhysics"; public static const AFTER_STEP_PHYSICS:String = "afterStepPhysics"; public static const ELEMENT_ADDED:String = "elementAdded"; public static const ELEMENT_REMOVED:String = "elementRemoved"; public function spWorldEvent(_arg1:String, _arg2:spWorld, _arg3:Number=0.033333, _arg4:spElement=null){ super(_arg1); world = _arg2; timeStep = _arg3; element = _arg4; } } }//package spill.physics.events
Section 308
//spRevoluteJoint (spill.physics.joints.spRevoluteJoint) package spill.physics.joints { import spill.physics.*; import Box2D.Common.Math.*; import Box2D.Dynamics.Joints.*; public class spRevoluteJoint extends spJoint { protected var body1:spBody; protected var body2:spBody; protected var anchor:b2Vec2; public function spRevoluteJoint(_arg1:spBody, _arg2:spBody, _arg3:b2Vec2){ def = new b2RevoluteJointDef(); def.userData = this; body1 = _arg1; body2 = _arg2; anchor = _arg3; } public function set upperAngle(_arg1:Number):void{ def.upperAngle = _arg1; } public function set lowerAngle(_arg1:Number):void{ def.lowerAngle = _arg1; } public function get def():b2RevoluteJointDef{ return ((_def as b2RevoluteJointDef)); } public function set def(_arg1:b2RevoluteJointDef):void{ _def = _arg1; } public function get lowerAngle():Number{ return (def.lowerAngle); } override protected function initialise(_arg1:spWorld):void{ def.Initialize(body1.ref, (body2) ? body2.ref : _arg1.ref.GetGroundBody(), anchor); } public function get upperAngle():Number{ return (def.upperAngle); } } }//package spill.physics.joints
Section 309
//spCircle (spill.physics.shapes.spCircle) package spill.physics.shapes { import flash.display.*; import spill.physics.*; import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; public class spCircle extends spShape { public function spCircle(_arg1:Number=1, _arg2:Number=0, _arg3:Number=0){ var _local4:b2CircleDef = new b2CircleDef(); _local4.radius = _arg1; _local4.localPosition.Set(_arg2, _arg3); super(_local4); } public function get radius():Number{ return (b2CircleDef(def).radius); } public function get localPosition():b2Vec2{ return (b2CircleDef(def).localPosition); } public function set localPosition(_arg1:b2Vec2):void{ b2CircleDef(def).localPosition = _arg1; if (active){ $shapeChanged(); }; } public function set radius(_arg1:Number):void{ b2CircleDef(def).radius = _arg1; if (active){ $shapeChanged(); }; } public function drawShape(_arg1:Sprite, _arg2:Number, _arg3:b2Vec2=null):void{ var _local4:b2Vec2; _local4 = (_local4) ? _local4 : new b2Vec2(); _local4.Add(localPosition); _arg1.graphics.drawCircle((_local4.x * _arg2), (_local4.y * _arg2), (radius * _arg2)); } } }//package spill.physics.shapes
Section 310
//spRectangle (spill.physics.shapes.spRectangle) package spill.physics.shapes { import flash.display.*; import spill.physics.*; import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; public class spRectangle extends spShape { private var _height:Number;// = 1 private var _width:Number;// = 1 public function spRectangle(_arg1:Number=1, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){ var _local6:b2PolygonDef = new b2PolygonDef(); var _local7:b2Vec2 = new b2Vec2(); _local7.Set(_arg3, _arg4); _local6.SetAsOrientedBox(_arg1, _arg2, _local7, _arg5); super(_local6); } public function drawShape(_arg1:Sprite, _arg2:Number, _arg3:b2Vec2=null):void{ _arg3 = (_arg3) ? _arg3 : new b2Vec2(); var _local4:Array = b2PolygonDef(def).vertices; _arg1.graphics.moveTo((_local4[_local4.length].x + _arg3.x), (_local4[_local4.length].y + _arg3.y)); var _local5:int; while (_local5 < _local4.length) { _arg1.graphics.lineTo((_local4[_local5].x + _arg3.x), (_local4[_local5].y + _arg3.y)); _local5++; }; } } }//package spill.physics.shapes
Section 311
//sp_internal (spill.physics.sp_internal) package spill.physics { public namespace sp_internal = "spill.physics"; }//package spill.physics
Section 312
//spBody (spill.physics.spBody) package spill.physics { import flash.events.*; import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Dynamics.*; public class spBody extends EventDispatcher { public var name:String;// = "" public var useParentLinearDamping:Boolean; public var draggable:Boolean;// = true private var _shapes:Object; private var _world:spWorld; public var useParentDensity:Boolean; public var useParentRestitution:Boolean; private var _filter:b2FilterData; private var _angularVelocity:Number;// = 0 private var _active:Boolean;// = false public var mouseForceMultiplier:Number;// = 1 private var _density:Number;// = 1 private var _restitution:Number;// = 0.5 private var _linearDamping:Number;// = 0.1 public var useParentAngularDamping:Boolean; public var useParentFriction:Boolean; private var _id:Number;// = 0 private var _linearVelocity:b2Vec2; private var _def:b2BodyDef; sp_internal var _parent:spElement; private var _ref:b2Body; private var _friction:Number;// = 0.5 private var _angularDamping:Number;// = 0.1 public var useParentFilter:Boolean; private static var _idCounter:Number = 0; public function spBody(){ useParentFriction = spSettings.inheritProps; useParentRestitution = spSettings.inheritProps; useParentDensity = spSettings.inheritProps; useParentLinearDamping = spSettings.inheritProps; useParentAngularDamping = spSettings.inheritProps; useParentFilter = spSettings.inheritProps; _shapes = new Object(); super(); _id = _idCounter++; _def = new b2BodyDef(); _def.userData = this; _linearVelocity = new b2Vec2(); _linearVelocity.Set(0, 0); _filter = new b2FilterData(); } public function addShape(_arg1:spShape):void{ if (_shapes[_arg1.id] == null){ _shapes[_arg1.id] = _arg1; if (_active){ $addShape(_arg1); _ref.SetMassFromShapes(); }; } else { trace("WARNING: Attempted to add duplicate shape to body"); }; } public function get def():b2BodyDef{ return (_def); } public function get active():Boolean{ return (_active); } public function set angularDamping(_arg1:Number):void{ _def.angularDamping = _arg1; if (_active){ _ref.m_angularDamping = _arg1; }; } public function get linearDamping():Number{ return (_def.linearDamping); } public function set isBullet(_arg1:Boolean):void{ _def.isBullet = _arg1; if (_active){ _ref.SetBullet(_arg1); }; } function $addToWorld(_arg1:spWorld):void{ var _local2:spShape; if (!_active){ _world = _arg1; _ref = _arg1.ref.CreateBody(def); _active = true; for each (_local2 in _shapes) { $addShape(_local2); }; _ref.SetMassFromShapes(); _ref.m_linearVelocity = _linearVelocity; _ref.m_angularVelocity = _angularVelocity; } else { trace(("WARNING: attempted to add an already active body to world : " + this)); }; } private function $addShape(_arg1:spShape):void{ $setShapeProps(_arg1); _arg1.$addToBody(this); } public function get parent():spElement{ return (_parent); } public function get position():b2Vec2{ if (_active){ return (_ref.GetPosition()); }; return (_def.position); } private function $setShapeProps(_arg1:spShape):void{ if (_arg1.useParentDensity){ _arg1.density = _density; }; if (_arg1.useParentFriction){ _arg1.friction = _friction; }; if (_arg1.useParentRestitution){ _arg1.restitution = _restitution; }; if (_arg1.useParentFilter){ _arg1.filter = _filter.Copy(); }; } public function get id():Number{ return (_id); } public function set linearVelocity(_arg1:b2Vec2):void{ _linearVelocity = _arg1; if (_active){ ref.m_linearVelocity = _arg1; }; } public function set angularVelocity(_arg1:Number):void{ _angularVelocity = _arg1; if (_active){ _ref.m_angularVelocity = _arg1; }; } function $removeFromWorld(_arg1:spWorld):void{ var _local2:spShape; if (_active){ _arg1.ref.DestroyBody(_ref); for each (_local2 in _shapes) { _local2.$bodyDestroyed(); }; _def.position = _ref.GetPosition(); _def.angle = _ref.GetAngle(); _linearVelocity = _ref.GetLinearVelocity(); _angularVelocity = _ref.GetAngularVelocity(); _ref = null; _active = false; dispatchEvent(new Event("bodyDestroyed")); } else { trace(("WARNING: attempted to remove inactive body from world : " + this)); }; } public function set angle(_arg1:Number):void{ var _local2:spWorld; if (_active){ _local2 = _world; $removeFromWorld(_local2); _def.angle = _arg1; $addToWorld(_local2); } else { _def.angle = _arg1; }; } public function get isBullet():Boolean{ return (_def.isBullet); } public function get linearVelocity():b2Vec2{ if (_active){ return (ref.m_linearVelocity); }; return (_linearVelocity); } public function set density(_arg1:Number):void{ var _local2:spShape; _density = _arg1; if (_active){ for each (_local2 in _shapes) { if (_local2.useParentDensity){ _local2.density = _arg1; }; }; _ref.SetMassFromShapes(); }; } public function get angle():Number{ if (_active){ return (_ref.GetAngle()); }; return (_def.angle); } public function get angularDamping():Number{ return (_def.angularDamping); } public function set restitution(_arg1:Number):void{ var _local2:spShape; _restitution = _arg1; if (_active){ for each (_local2 in _shapes) { if (_local2.useParentRestitution){ _local2.restitution = _arg1; }; }; }; } public function set linearDamping(_arg1:Number):void{ _def.linearDamping = _arg1; if (_active){ _ref.m_linearDamping = _arg1; }; } public function set parent(_arg1:spElement):void{ _parent = _arg1; } public function get angularVelocity():Number{ if (_active){ return (ref.m_angularVelocity); }; return (_angularVelocity); } public function get ref():b2Body{ if (_active){ return (_ref); }; trace("WARNING: Attempted to access a reference of a non active body"); return (null); } public function get density():Number{ return (_density); } public function get restitution():Number{ return (_restitution); } public function getShapes():Boolean{ return (_shapes.concat()); } public function set filter(_arg1:b2FilterData):void{ var _local2:spShape; _filter = _arg1; for each (_local2 in _shapes) { if (_local2.useParentFilter){ _local2.filter = _arg1; }; }; } public function refilter():void{ var _local1:spShape; if (_active){ for each (_local1 in _shapes) { if (_local1.useParentFilter){ _local1.filter = filter; }; _world.ref.Refilter(_local1.ref); }; }; } public function get filter():b2FilterData{ return (_filter); } public function get friction():Number{ return (_friction); } public function set friction(_arg1:Number):void{ var _local2:spShape; _friction = _arg1; if (_active){ for each (_local2 in _shapes) { if (_local2.useParentFriction){ _local2.friction = _arg1; }; }; }; } public function removeShape(_arg1:spShape):void{ _arg1.$removeFromBody(this); delete _shapes[_arg1.id]; if (_active){ _ref.SetMassFromShapes(); }; } public function set position(_arg1:b2Vec2):void{ var _local2:spWorld; if (_active){ _local2 = _world; $removeFromWorld(_local2); _def.position = _arg1; $addToWorld(_local2); } else { _def.position = _arg1; }; } } }//package spill.physics
Section 313
//spCollisionListener (spill.physics.spCollisionListener) package spill.physics { import Box2D.Dynamics.*; import Box2D.Collision.*; import Box2D.Dynamics.Contacts.*; public class spCollisionListener extends b2ContactListener { public var minImpulse:Number;// = 50 override public function Add(_arg1:b2ContactPoint):void{ var _local2:spShape = spShape(_arg1.shape1.GetUserData()); var _local3:spShape = spShape(_arg1.shape2.GetUserData()); _local2.parent.parent.onAddContact(_arg1, _local2, _local3); _local3.parent.parent.onAddContact(_arg1, _local3, _local2); } override public function Persist(_arg1:b2ContactPoint):void{ var _local2:spShape = spShape(_arg1.shape1.GetUserData()); var _local3:spShape = spShape(_arg1.shape2.GetUserData()); _local2.parent.parent.onPersistContact(_arg1, _local2, _local3); _local3.parent.parent.onPersistContact(_arg1, _local3, _local2); } override public function Remove(_arg1:b2ContactPoint):void{ var _local2:spShape = spShape(_arg1.shape1.GetUserData()); var _local3:spShape = spShape(_arg1.shape2.GetUserData()); _local2.parent.parent.onRemoveContact(_arg1, _local2, _local3); _local3.parent.parent.onRemoveContact(_arg1, _local3, _local2); } override public function Result(_arg1:b2ContactResult):void{ var _local2:spShape = spShape(_arg1.shape1.GetUserData()); var _local3:spShape = spShape(_arg1.shape2.GetUserData()); _local2.parent.parent.onResultContact(_arg1, _local2, _local3); _local3.parent.parent.onResultContact(_arg1, _local3, _local2); } } }//package spill.physics
Section 314
//spDestructionListener (spill.physics.spDestructionListener) package spill.physics { import Box2D.Collision.Shapes.*; import Box2D.Dynamics.*; import Box2D.Dynamics.Joints.*; public class spDestructionListener extends b2DestructionListener { override public function SayGoodbyeShape(_arg1:b2Shape):void{ } override public function SayGoodbyeJoint(_arg1:b2Joint):void{ _arg1.GetUserData().$destroyed(); } } }//package spill.physics
Section 315
//spDisplay (spill.physics.spDisplay) package spill.physics { import flash.events.*; import flash.display.*; import Box2D.Dynamics.*; import spill.physics.events.*; public dynamic class spDisplay extends MovieClip { public var drawScale:Number;// = 20 private var _debugDrawEnabled:Boolean;// = true public var dbgDraw:b2DebugDraw; public var world:spWorld; public function spDisplay(_arg1:spWorld){ world = _arg1; world.addEventListener("renderWorld", render, false, 0, true); world.addEventListener(spWorldEvent.ELEMENT_ADDED, elementAdded, false, 0, true); world.addEventListener(spWorldEvent.ELEMENT_REMOVED, elementRemoved, false, 0, true); dbgDraw = new b2DebugDraw(); dbgDraw.m_sprite = this; dbgDraw.m_drawScale = drawScale; dbgDraw.m_fillAlpha = 0; dbgDraw.m_lineThickness = 0.1; dbgDraw.m_drawFlags = 3; } public function destroy():void{ world.removeEventListener("renderWorld", render, false); world.removeEventListener(spWorldEvent.ELEMENT_ADDED, elementAdded, false); world.removeEventListener(spWorldEvent.ELEMENT_REMOVED, elementRemoved, false); world = null; dbgDraw = null; } public function set debugLayer(_arg1:Sprite):void{ dbgDraw.m_sprite = _arg1; } public function get debugDrawEnabled():Boolean{ return (_debugDrawEnabled); } public function elementRemoved(_arg1:spWorldEvent):void{ _arg1.element.$removeFromDisplay(this); } public function set debugDrawEnabled(_arg1:Boolean):void{ _debugDrawEnabled = _arg1; if (_arg1){ world.ref.SetDebugDraw(dbgDraw); dbgDraw.m_drawScale = drawScale; } else { world.ref.SetDebugDraw(null); dbgDraw.m_sprite.graphics.clear(); }; dbgDraw.m_sprite.visible = _arg1; } public function render(_arg1:Event):void{ dispatchEvent(new spWorldEvent("renderWorld", world, world.timeStep, null)); } public function elementAdded(_arg1:spWorldEvent):void{ _arg1.element.$addToDisplay(this); } } }//package spill.physics
Section 316
//spElement (spill.physics.spElement) package spill.physics { import flash.events.*; import Box2D.Collision.Shapes.*; import Box2D.Collision.*; import Box2D.Dynamics.Contacts.*; public class spElement extends EventDispatcher { public var useGlobalRestitution:Boolean; public var name:String;// = "" private var _world:spWorld; private var _initialized:Boolean;// = false private var _filter:b2FilterData; private var _linearDamping:Number;// = 0.1 public var useGlobalFriction:Boolean; private var _active:Boolean;// = false private var _density:Number;// = 1 private var _restitution:Number;// = 0.5 private var _id:int; public var type:String;// = "" public var useGlobalLinearDamping:Boolean; private var _joints:Object; private var _friction:Number;// = 0.5 private var _angularDamping:Number;// = 0.1 private var _numBodies:Number;// = 0 public var useGlobalAngularDamping:Boolean; protected var _bodies:Object; public var useGlobalDensity:Boolean; private static var _idCounter:int = 0; public function spElement(){ useGlobalFriction = spSettings.inheritProps; useGlobalRestitution = spSettings.inheritProps; useGlobalDensity = spSettings.inheritProps; useGlobalLinearDamping = spSettings.inheritProps; useGlobalAngularDamping = spSettings.inheritProps; _bodies = new Object(); _joints = new Object(); super(); _id = _idCounter++; _filter = new b2FilterData(); } public function get friction():Number{ return (_friction); } protected function stop():void{ } public function set friction(_arg1:Number):void{ var _local2:spBody; _friction = _arg1; if (_active){ for each (_local2 in _bodies) { if (_local2.useParentFriction){ _local2.friction = _arg1; }; }; }; } public function onAddContact(_arg1:b2ContactPoint, _arg2:spShape, _arg3:spShape):void{ } public function get active():Boolean{ return (_active); } public function set angularDamping(_arg1:Number):void{ var _local2:spBody; _angularDamping = _arg1; if (_active){ for each (_local2 in _bodies) { if (_local2.useParentAngularDamping){ _local2.angularDamping = _arg1; }; }; }; } public function get world():spWorld{ return (_world); } protected function removeFromDisplay(_arg1:spDisplay):void{ } final sp_internal function $addToWorld(_arg1:spWorld):void{ var _local2:spBody; var _local3:spJoint; if (!_active){ _world = _arg1; if (!_initialized){ initialize(); _initialized = false; }; for each (_local2 in _bodies) { $setBodyProps(_local2); _local2.$addToWorld(world); }; for each (_local3 in _joints) { _local3.$addToWorld(world); }; _active = true; addToWorld(_arg1); } else { trace(("WARNING: attempted to add an already active element to world : " + this)); }; } public function get id():Number{ return (_id); } public function get linearDamping():Number{ return (_linearDamping); } protected function initialize():void{ } public function mouseRelease(_arg1:spBody):void{ } protected function addToDisplay(_arg1:spDisplay):void{ } sp_internal function $stop():void{ stop(); } public function getBodies():Object{ return (_bodies); } public function getJoints():Object{ return (_joints); } final sp_internal function $removeFromWorld(_arg1:spWorld):void{ var _local2:spBody; var _local3:spJoint; if (_active){ for each (_local2 in _bodies) { _local2.$removeFromWorld(_arg1); }; for each (_local3 in _joints) { _local3.$removeFromWorld(_arg1); }; _world = null; _active = false; removeFromWorld(_arg1); } else { trace(("WARNING: attempted to remove inactive element from world : " + this)); }; } public function removeBody(_arg1:spBody):void{ if (_bodies[_arg1.id] == null){ trace((((("WARNING: attempted to remove body " + _arg1) + " from ") + this) + " that is not part of the Element")); } else { _numBodies--; if (_active){ _arg1.$removeFromWorld(world); }; delete _bodies[_arg1.id]; _arg1._parent = null; }; } public function get angularDamping():Number{ return (_angularDamping); } public function set linearDamping(_arg1:Number):void{ var _local2:spBody; _linearDamping = _arg1; if (_active){ for each (_local2 in _bodies) { if (_local2.useParentLinearDamping){ _local2.linearDamping = _arg1; }; }; }; } sp_internal function $start():void{ start(); } private function $setBodyProps(_arg1:spBody):void{ if (_arg1.useParentFriction){ _arg1.friction = _friction; }; if (_arg1.useParentRestitution){ _arg1.restitution = _restitution; }; if (_arg1.useParentDensity){ _arg1.density = _density; }; if (_arg1.useParentLinearDamping){ _arg1.linearDamping = _linearDamping; }; if (_arg1.useParentAngularDamping){ _arg1.angularDamping = _angularDamping; }; if (_arg1.useParentFilter){ _arg1.filter = _filter.Copy(); }; } sp_internal function $addToDisplay(_arg1:spDisplay):void{ addToDisplay(_arg1); } public function set density(_arg1:Number):void{ var _local2:spBody; _density = _arg1; if (_active){ for each (_local2 in _bodies) { if (_local2.useParentDensity){ _local2.density = _arg1; }; }; }; } public function set restitution(_arg1:Number):void{ var _local2:spBody; _restitution = _arg1; if (_active){ for each (_local2 in _bodies) { if (_local2.useParentRestitution){ _local2.restitution = _arg1; }; }; }; } public function onRemoveContact(_arg1:b2ContactPoint, _arg2:spShape, _arg3:spShape):void{ } protected function start():void{ } public function addBody(_arg1:spBody):void{ if (_bodies[_arg1.id] != null){ trace(((("WARNING: attempted to add a duplicate body " + _arg1) + " to ") + this)); } else { _numBodies++; _bodies[_arg1.id] = _arg1; _arg1.parent = this; $setBodyProps(_arg1); if (_active){ _arg1.$addToWorld(world); }; }; } protected function removeFromWorld(_arg1:spWorld):void{ } public function get density():Number{ return (_density); } public function addJoint(_arg1:spJoint):void{ _arg1._parent = this; _joints[_arg1.id] = _arg1; if (_active){ _arg1.$addToWorld(world); }; } public function refilter():void{ var _local1:spBody; if (_active){ for each (_local1 in _bodies) { if (_local1.useParentFilter){ _local1.filter = filter; }; _local1.refilter(); }; }; } public function removeJoint(_arg1:spJoint):void{ _arg1._parent = null; if (_joints[_arg1.id] == null){ trace((((("WARNING: attempted to remove joint " + _arg1) + " from ") + this) + " that is not part of the Element")); } else { delete _joints[_arg1.id]; if (_active){ _arg1.$removeFromWorld(world); }; }; } sp_internal function $removeFromDisplay(_arg1:spDisplay):void{ removeFromDisplay(_arg1); } public function get restitution():Number{ return (_restitution); } public function onPersistContact(_arg1:b2ContactPoint, _arg2:spShape, _arg3:spShape):void{ } public function get numBodies():Number{ return (_numBodies); } protected function addToWorld(_arg1:spWorld):void{ } public function set filter(_arg1:b2FilterData):void{ var _local2:spBody; _filter = _arg1; for each (_local2 in _bodies) { if (_local2.useParentFilter){ _local2.filter = _arg1; }; }; } public function onResultContact(_arg1:b2ContactResult, _arg2:spShape, _arg3:spShape):void{ } public function mouseDrag(_arg1:spBody):void{ } public function destroy():void{ var _local1:spBody; var _local2:spJoint; for each (_local1 in _bodies) { removeBody(_local1); }; for each (_local2 in _joints) { removeJoint(_local2); }; _bodies = null; _joints = null; } public function get filter():b2FilterData{ return (_filter); } } }//package spill.physics
Section 317
//spJoint (spill.physics.spJoint) package spill.physics { import Box2D.Dynamics.Joints.*; public class spJoint { private var _active:Boolean;// = false protected var _def:b2JointDef; sp_internal var _parent:spElement; private var _ref:b2Joint; protected var world:spWorld; private var _id:Number; private static var _idCounter:Number = 0; public function spJoint():void{ _id = _idCounter++; } function $removeFromWorld(_arg1:spWorld):void{ if (_active){ _arg1.ref.DestroyJoint(_ref); _active = false; }; _parent = null; removeFromWorld(_arg1); } function $addToWorld(_arg1:spWorld):void{ if (_active){ trace(("WARNING: attempted to add an already active joint to world : " + this)); } else { world = _arg1; _active = true; initialise(world); _def.userData = this; _ref = world.ref.CreateJoint(_def); addToWorld(world); }; } public function get id():Number{ return (_id); } public function get ref():b2Joint{ return (_ref); } protected function removeFromWorld(_arg1:spWorld):void{ } public function get active():Boolean{ return (_active); } public function get parent():spElement{ return (_parent); } public function $destroyed():void{ _active = false; _parent.removeJoint(this); } protected function addToWorld(_arg1:spWorld):void{ } protected function initialise(_arg1:spWorld):void{ } } }//package spill.physics
Section 318
//spSettings (spill.physics.spSettings) package spill.physics { import flash.display.*; public final class spSettings { public static var inheritProps:Boolean = true; public static function stopChildren(_arg1:MovieClip):void{ var _local3:MovieClip; _arg1.stop(); trace("stop", _arg1, _arg1.name); var _local2:int; while (_local2 < _arg1.numChildren) { if ((_arg1.getChildAt(_local2) is MovieClip)){ _local3 = MovieClip(_arg1.getChildAt(_local2)); _local3.stop(); stopChildren(_local3); }; _local2++; }; } public static function playChildren(_arg1:MovieClip):void{ var _local3:MovieClip; _arg1.play(); var _local2:int; while (_local2 < _arg1.numChildren) { if ((_arg1.getChildAt(_local2) is MovieClip)){ _local3 = MovieClip(_arg1.getChildAt(_local2)); _local3.play(); playChildren(_local3); }; _local2++; }; } public static function playMovieClip(_arg1:MovieClip, _arg2:Number):void{ if (!_arg1.$_init){ _arg1.$_init = true; _arg1.playheadPosition = _arg1.currentFrame; _arg1.stop(); }; _arg1.playheadPosition = (_arg1.playheadPosition + (30 * _arg2)); if (_arg1.playheadPosition > _arg1.totalFrames){ _arg1.playheadPosition = (_arg1.playheadPosition - _arg1.totalFrames); }; _arg1.gotoAndStop(Math.ceil(_arg1.playheadPosition)); } } }//package spill.physics
Section 319
//spShape (spill.physics.spShape) package spill.physics { import Box2D.Collision.Shapes.*; public class spShape { private var _def:b2ShapeDef; private var _parent:spBody; private var _ref:b2Shape; public var useParentDensity:Boolean; public var useParentRestitution:Boolean; private var _filter:b2FilterData; private var _friction:Number;// = 0.5 private var _active:Boolean;// = false public var useParentFilter:Boolean; private var _restitution:Number;// = 0.5 private var _density:Number;// = 1 public var useParentFriction:Boolean; private var _id:Number; private static var _idCounter:Number = 0; public function spShape(_arg1:b2ShapeDef=null){ useParentFriction = spSettings.inheritProps; useParentRestitution = spSettings.inheritProps; useParentDensity = spSettings.inheritProps; useParentFilter = spSettings.inheritProps; super(); _id = _idCounter++; if (_arg1 != null){ setDefinition(_arg1); }; _filter = new b2FilterData(); } function $bodyDestroyed():void{ _active = false; _parent = null; _ref = null; } public function set friction(_arg1:Number):void{ _def.friction = _arg1; _friction = _arg1; if (_active){ _ref.m_friction = _arg1; }; } public function get def():b2ShapeDef{ return (_def); } public function get active():Boolean{ return (_active); } public function set density(_arg1:Number):void{ _def.density = _arg1; _density = _arg1; if (_active){ _ref.m_density = _arg1; }; } public function get ref():b2Shape{ return (_ref); } public function setDefinition(_arg1:b2ShapeDef):void{ if (!_active){ _def = _arg1; _def.userData = this; } else { trace("WARNING: Attempted to set shape definition of an already active shape"); }; } function $addToBody(_arg1:spBody):void{ if (!_active){ if (_def != null){ _def.friction = _friction; _def.restitution = _restitution; _def.density = _density; _def.filter = _filter; _ref = _arg1.ref.CreateShape(_def); _active = true; _parent = _arg1; } else { trace("WARNING: Attempted to add shape without a definition to body."); }; } else { trace("WARNING: Attempted to add an already active shape to a body."); }; } public function set restitution(_arg1:Number):void{ _restitution = _arg1; _def.restitution = _arg1; if (_active){ _ref.m_restitution = _arg1; }; } public function get friction():Number{ return (_friction); } public function get id():Number{ return (_id); } public function get parent():spBody{ return (_parent); } public function get density():Number{ return (_density); } public function get restitution():Number{ return (_restitution); } protected function $shapeChanged():void{ var _local1:spBody; if (_active){ _local1 = _parent; $removeFromBody(_local1); $addToBody(_local1); _local1.ref.SetMassFromShapes(); }; } public function get filter():b2FilterData{ return (_filter); } function $removeFromBody(_arg1:spBody):void{ if (_active){ _arg1.ref.DestroyShape(_ref); _active = false; _parent = null; _ref = null; } else { trace("WARNING: Attempted to remove a non active shape from a body."); }; } public function set filter(_arg1:b2FilterData):void{ _def.filter = _arg1; _filter = _arg1; if (_active){ _ref.m_filter = _arg1; }; } } }//package spill.physics
Section 320
//spWorld (spill.physics.spWorld) package spill.physics { import flash.events.*; import flash.utils.*; import Box2D.Collision.Shapes.*; import Box2D.Common.Math.*; import Box2D.Dynamics.*; import Box2D.Dynamics.Joints.*; import Box2D.Collision.*; import spill.physics.events.*; public class spWorld extends EventDispatcher { public var ref:b2World; private var _globalAngularDamping:Number;// = 0 public var iterations:int;// = 10 public var timeStep:Number;// = 0.0333333333333333 public var running:Boolean;// = false public var calcTime:Number;// = 0 private var timer:Timer; private var _globalDensity:Number;// = 1 private var _globalRestitution:Number;// = 0 public var display:spDisplay; private var fpsCounter:Number;// = 0 public var worldScale:Number;// = 20 private var _globalFriction:Number;// = 0.5 private var calcCounter:Number;// = 0 public var frameRate:Number;// = 0 public var elements:Object; private var _globalLinearDamping:Number;// = 0 public function spWorld():void{ elements = new Object(); super(); var _local1:b2AABB = new b2AABB(); _local1.lowerBound.Set(-100, -100); _local1.upperBound.Set(100, 100); ref = new b2World(_local1, new b2Vec2(0, 10), true); timer = new Timer(1000); timer.addEventListener(TimerEvent.TIMER, fpsCounterEvent, false, 0, true); ref.SetContactListener(new spCollisionListener()); ref.SetDestructionListener(new spDestructionListener()); } public function set globalFriction(_arg1:Number):void{ var _local2:spElement; _globalFriction = _arg1; for each (_local2 in elements) { if (_local2.useGlobalFriction){ _local2.friction = _arg1; }; }; } public function stop():void{ var _local1:spElement; if (running){ display.removeEventListener(Event.ENTER_FRAME, update); running = false; timer.stop(); for each (_local1 in elements) { _local1.$stop(); }; } else { trace("WARNING: Attempted to stop world that was not running."); }; } public function set globalLinearDamping(_arg1:Number):void{ var _local2:spElement; _globalLinearDamping = _arg1; for each (_local2 in elements) { if (_local2.useGlobalLinearDamping){ _local2.linearDamping = _arg1; }; }; } public function set globalAngularDamping(_arg1:Number):void{ var _local2:spElement; _globalAngularDamping = _arg1; for each (_local2 in elements) { if (_local2.useGlobalAngularDamping){ _local2.angularDamping = _arg1; }; }; } private function fpsCounterEvent(_arg1:TimerEvent):void{ frameRate = fpsCounter; calcTime = Math.round((calcCounter / frameRate)); calcCounter = 0; fpsCounter = 0; } public function set globalRestitution(_arg1:Number):void{ var _local2:spElement; _globalRestitution = _arg1; for each (_local2 in elements) { if (_local2.useGlobalRestitution){ _local2.restitution = _arg1; }; }; } public function set globalDensity(_arg1:Number):void{ var _local2:spElement; _globalDensity = _arg1; for each (_local2 in elements) { if (_local2.useGlobalDensity){ _local2.density = _arg1; }; }; } private function _setElementProps(_arg1:spElement):void{ if (_arg1.useGlobalFriction){ _arg1.friction = _globalFriction; }; if (_arg1.useGlobalRestitution){ _arg1.restitution = _globalRestitution; }; if (_arg1.useGlobalDensity){ _arg1.density = _globalDensity; }; if (_arg1.useGlobalLinearDamping){ _arg1.linearDamping = _globalLinearDamping; }; if (_arg1.useGlobalAngularDamping){ _arg1.angularDamping = _globalAngularDamping; }; } public function addElement(_arg1:spElement):void{ if (elements[_arg1.id] == null){ elements[_arg1.id] = _arg1; _setElementProps(_arg1); _arg1.$addToWorld(this); dispatchEvent(new spWorldEvent("elementAdded", this, timeStep, _arg1)); } else { trace(((("WARNING: attempted to add a duplicate element " + _arg1) + " to ") + this)); }; } public function set gravity(_arg1:b2Vec2):void{ ref.m_gravity = _arg1; } public function get globalLinearDamping():Number{ return (_globalLinearDamping); } public function get globalFriction():Number{ return (_globalFriction); } public function testSegment(_arg1:b2Vec2, _arg2:b2Vec2, _arg3:b2Vec2=null, _arg4:Array=null):Number{ var _local8:b2Segment; var _local9:Number; var _local10:Array; var _local11:int; var _local12:b2Shape; var _local13:b2XForm; var _local14:b2Vec2; var _local5:b2AABB = new b2AABB(); _local5.lowerBound.x = (Math.min(_arg1.x, _arg2.x) - 1E-5); _local5.lowerBound.y = (Math.min(_arg1.y, _arg2.y) - 1E-5); _local5.upperBound.x = (Math.max(_arg1.x, _arg2.x) + 1E-5); _local5.upperBound.y = (Math.max(_arg1.y, _arg2.y) + 1E-5); var _local6:Array = new Array(); var _local7:int = ref.Query(_local5, _local6, 20); if (_local7 > 0){ if (!_arg3){ _arg3 = new b2Vec2(); }; if (!_arg4){ _arg4 = new Array(); }; _local8 = new b2Segment(); _local8.p1 = _arg1; _local8.p2 = _arg2; _local9 = 1; _local10 = new Array(); _local11 = 0; while (_local11 < _local6.length) { _local12 = b2Shape(_local6[_local11]); _local13 = _local12.GetBody().GetXForm(); _local14 = new b2Vec2(); if (_local12.TestSegment(_local13, _local10, _local14, _local8, 1)){ if (_local10[0] < _local9){ _local9 = _local10[0]; _arg4[0] = spShape(_local12.GetUserData()); _arg3.Set(_local14.x, _local14.y); }; }; _local11++; }; if (_local9 >= 1){ return (-1); }; return (_local9); }; return (-1); } public function get globalAngularDamping():Number{ return (_globalAngularDamping); } public function get globalRestitution():Number{ return (_globalRestitution); } public function get globalDensity():Number{ return (_globalDensity); } public function reset():void{ var _local1:spElement; for each (_local1 in elements) { removeElement(_local1); }; } private function update(_arg1:Event):void{ fpsCounter++; var _local2:Number = getTimer(); dispatchEvent(new spWorldEvent("beforeStep", this, timeStep)); ref.Step(timeStep, iterations); dispatchEvent(new spWorldEvent("afterStep", this, timeStep)); dispatchEvent(new spWorldEvent("renderWorld", this, timeStep)); calcCounter = (calcCounter + (getTimer() - _local2)); } public function get gravity():b2Vec2{ return (ref.m_gravity); } public function removeElement(_arg1:spElement):void{ if (elements[_arg1.id] != null){ delete elements[_arg1.id]; _arg1.$removeFromWorld(this); dispatchEvent(new spWorldEvent("elementRemoved", this, timeStep, _arg1)); } else { trace(((("WARNING: attempted to remove non existent element " + _arg1) + " from ") + this)); }; } public function start():void{ var _local1:spElement; if (!running){ display.addEventListener(Event.ENTER_FRAME, update, false, 0, true); running = true; timer.start(); for each (_local1 in elements) { _local1.$start(); }; } else { trace("WARNING: Attempted to start an already running world."); }; } public function getBodyAtPoint(_arg1:b2Vec2, _arg2:Boolean=false, _arg3:Boolean=true):b2Body{ var _local10:b2Shape; var _local11:Boolean; var _local4:b2AABB = new b2AABB(); _local4.lowerBound.Set((_arg1.x - 0.001), (_arg1.y - 0.001)); _local4.upperBound.Set((_arg1.x + 0.001), (_arg1.y + 0.001)); var _local5 = 10; var _local6:Array = new Array(); var _local7:int = ref.Query(_local4, _local6, _local5); var _local8:b2Body; var _local9:int; while (_local9 < _local7) { if ((((_local6[_local9].GetBody().IsStatic() == false)) || (_arg2))){ if (((_local6[_local9].GetBody().GetUserData().draggable) || (_arg3))){ _local10 = (_local6[_local9] as b2Shape); _local11 = (_local6[_local9] as b2Shape).TestPoint(_local10.GetBody().GetXForm(), _arg1); if (_local11){ _local8 = _local10.GetBody(); break; }; }; }; _local9++; }; return (_local8); } public function getElements(_arg1:String=""):Object{ return (elements); } public function destroy():void{ var _local1:spElement; for each (_local1 in elements) { _local1.destroy(); removeElement(_local1); }; if (running){ stop(); }; timer.removeEventListener(TimerEvent.TIMER, fpsCounterEvent, false); elements = null; display = null; ref = null; timer = null; } } }//package spill.physics
Section 321
//ball2 (stuart.ball2) package stuart { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class ball2 extends iBody { public function ball2(){ __setProp_s1_stuart(); } function __setProp_s1_stuart(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = false; s1.deathZoneBlink = false; s1.density = 0.4; s1.sensor = false; s1.transparent = false; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package stuart
Section 322
//creditsblock (stuart.creditsblock) package stuart { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class creditsblock extends iBody { public function creditsblock(){ __setProp_s3_stuart(); } function __setProp_s3_stuart(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = false; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package stuart
Section 323
//CreditsLevel (stuart.CreditsLevel) package stuart { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import flash.net.*; import flash.text.*; import koen.*; import tomas.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class CreditsLevel extends MovieClip { public var __id388_:box2dblock; public var __id387_:creditsblock; public var __id385_:creditblock; public var __id384_:SoundCreditsBlock; public var __id386_:creditblock; public function CreditsLevel(){ __setProp___id384__stuart(); __setProp___id385__stuart(); __setProp___id386__stuart(); __setProp___id387__stuart(); __setProp___id388__stuart(); } function __setProp___id384__stuart(){ try { __id384_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id384_.isBullet = false; __id384_.disableSkinning = true; __id384_.fixedRotation = false; try { __id384_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id387__stuart(){ try { __id387_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id387_.isBullet = false; __id387_.disableSkinning = true; __id387_.fixedRotation = false; try { __id387_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id388__stuart(){ try { __id388_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id388_.isBullet = false; __id388_.disableSkinning = true; __id388_.fixedRotation = false; try { __id388_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id385__stuart(){ try { __id385_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id385_.isBullet = false; __id385_.disableSkinning = true; __id385_.fixedRotation = false; try { __id385_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id386__stuart(){ try { __id386_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id386_.isBullet = false; __id386_.disableSkinning = true; __id386_.fixedRotation = false; try { __id386_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package stuart
Section 324
//ExampleLevel3 (stuart.ExampleLevel3) package stuart { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class ExampleLevel3 extends MovieClip { public var mag3:iMagnet; public var mag4:iMagnet; public var mag6:iMagnet; public var mag8:iMagnet; public var __id796_:iNode; public var __id782_:iSwitch; public var __id780_:iSwitch; public var __id784_:iSwitch; public var mag5:iMagnet; public var mag7:iMagnet; public var mag1:iMagnet; public var __id779_:iSwitch; public var __id777_:iLevelDescriptor; public var __id783_:iSwitch; public var __id781_:iSwitch; public var mag2:iMagnet; public function ExampleLevel3(){ __setProp___id777__stuart(); __setProp___id779__stuart(); __setProp___id780__stuart(); __setProp___id781__stuart(); __setProp___id782__stuart(); __setProp___id783__stuart(); __setProp___id784__stuart(); __setProp___id796__stuart(); __setProp_mag6_stuart(); __setProp_mag2_stuart(); __setProp_mag1_stuart(); __setProp_mag3_stuart(); __setProp_mag4_stuart(); __setProp_mag5_stuart(); __setProp_mag7_stuart(); __setProp_mag8_stuart(); } function __setProp_mag7_stuart(){ try { mag7["componentInspectorSetting"] = true; } catch(e:Error) { }; mag7.force = 5; mag7.type = "positive"; mag7.state = true; try { mag7["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id777__stuart(){ try { __id777_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id777_.angularDamping = 0.1; __id777_.friction = 0.5; __id777_.gravity = 10; __id777_.linearDamping = 0.1; __id777_.nodeForce = 1; __id777_.restitution = 0; try { __id777_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_mag5_stuart(){ try { mag5["componentInspectorSetting"] = true; } catch(e:Error) { }; mag5.force = 5; mag5.type = "negative"; mag5.state = false; try { mag5["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_mag3_stuart(){ try { mag3["componentInspectorSetting"] = true; } catch(e:Error) { }; mag3.force = 40; mag3.type = "positive"; mag3.state = true; try { mag3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id796__stuart(){ try { __id796_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id796_.force = 10; __id796_.type = "negative"; __id796_.range = 100; try { __id796_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id779__stuart(){ try { __id779_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id779_.magnets = "mag1, mag2,mag7"; __id779_.switchOnce = true; __id779_.type = "state"; try { __id779_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_mag1_stuart(){ try { mag1["componentInspectorSetting"] = true; } catch(e:Error) { }; mag1.force = 40; mag1.type = "negative"; mag1.state = true; try { mag1["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id780__stuart(){ try { __id780_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id780_.magnets = "mag4"; __id780_.switchOnce = true; __id780_.type = "polarity"; try { __id780_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id782__stuart(){ try { __id782_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id782_.magnets = "mag4, mag5"; __id782_.switchOnce = true; __id782_.type = "state"; try { __id782_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id783__stuart(){ try { __id783_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id783_.magnets = "mag6"; __id783_.switchOnce = true; __id783_.type = "state"; try { __id783_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id784__stuart(){ try { __id784_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id784_.magnets = "mag8"; __id784_.switchOnce = true; __id784_.type = "state"; try { __id784_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_mag8_stuart(){ try { mag8["componentInspectorSetting"] = true; } catch(e:Error) { }; mag8.force = 30; mag8.type = "positive"; mag8.state = true; try { mag8["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id781__stuart(){ try { __id781_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id781_.magnets = "mag3"; __id781_.switchOnce = true; __id781_.type = "state"; try { __id781_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_mag4_stuart(){ try { mag4["componentInspectorSetting"] = true; } catch(e:Error) { }; mag4.force = 5; mag4.type = "positive"; mag4.state = false; try { mag4["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_mag2_stuart(){ try { mag2["componentInspectorSetting"] = true; } catch(e:Error) { }; mag2.force = 40; mag2.type = "positive"; mag2.state = true; try { mag2["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_mag6_stuart(){ try { mag6["componentInspectorSetting"] = true; } catch(e:Error) { }; mag6.force = 30; mag6.type = "positive"; mag6.state = true; try { mag6["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package stuart
Section 325
//ExampleLevel4 (stuart.ExampleLevel4) package stuart { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class ExampleLevel4 extends MovieClip { public var link06:new4chain; public var link07:new4chain; public var __id766_:iRevoluteJoint; public var link04:new4chain; public var __id774_:iRevoluteJoint; public var __id770_:iNode; public var link08:new4chain; public var deathball2:ball2; public var __id767_:iRevoluteJoint; public var __id775_:iRevoluteJoint; public var __id771_:iRevoluteJoint; public var __id768_:iRevoluteJoint; public var __id772_:iRevoluteJoint; public var __id769_:iNode; public var __id765_:iLevelDescriptor; public var __id773_:iRevoluteJoint; public var deathball:ball2; public var link02:new4chain; public var link03:new4chain; public var link05:new4chain; public function ExampleLevel4(){ __setProp___id765__stuart(); __setProp___id766__stuart(); __setProp___id767__stuart(); __setProp___id768__stuart(); __setProp___id769__stuart(); __setProp___id770__stuart(); __setProp___id771__stuart(); __setProp___id772__stuart(); __setProp___id773__stuart(); __setProp___id774__stuart(); __setProp___id775__stuart(); } function __setProp___id765__stuart(){ try { __id765_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id765_.angularDamping = 0.1; __id765_.friction = 0.1; __id765_.gravity = 10; __id765_.linearDamping = 0.1; __id765_.nodeForce = 30; __id765_.restitution = 0.1; try { __id765_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id766__stuart(){ try { __id766_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id766_.body1 = "link02"; __id766_.body2 = "deathball2"; __id766_.collideConnected = false; __id766_.limit = false; __id766_.lowerLimit = -60; __id766_.upperLimit = 60; __id766_.motor = false; __id766_.motorForce = 0; __id766_.motorSpeed = 0; __id766_.transparent = true; try { __id766_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id767__stuart(){ try { __id767_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id767_.body1 = "link02"; __id767_.body2 = "link08"; __id767_.collideConnected = false; __id767_.limit = false; __id767_.lowerLimit = -60; __id767_.upperLimit = 60; __id767_.motor = false; __id767_.motorForce = 0; __id767_.motorSpeed = 0; __id767_.transparent = true; try { __id767_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id768__stuart(){ try { __id768_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id768_.body1 = "link08"; __id768_.body2 = "link07"; __id768_.collideConnected = false; __id768_.limit = false; __id768_.lowerLimit = -60; __id768_.upperLimit = 60; __id768_.motor = false; __id768_.motorForce = 0; __id768_.motorSpeed = 0; __id768_.transparent = true; try { __id768_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id769__stuart(){ try { __id769_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id769_.force = 10; __id769_.type = "negative"; __id769_.range = 100; try { __id769_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id771__stuart(){ try { __id771_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id771_.body1 = "link07"; __id771_.body2 = "link03"; __id771_.collideConnected = false; __id771_.limit = false; __id771_.lowerLimit = -60; __id771_.upperLimit = 60; __id771_.motor = false; __id771_.motorForce = 0; __id771_.motorSpeed = 0; __id771_.transparent = true; try { __id771_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id772__stuart(){ try { __id772_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id772_.body1 = "link06"; __id772_.body2 = "deathball"; __id772_.collideConnected = false; __id772_.limit = false; __id772_.lowerLimit = -60; __id772_.upperLimit = 60; __id772_.motor = false; __id772_.motorForce = 0; __id772_.motorSpeed = 0; __id772_.transparent = true; try { __id772_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id773__stuart(){ try { __id773_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id773_.body1 = "link03"; __id773_.body2 = "link04"; __id773_.collideConnected = false; __id773_.limit = false; __id773_.lowerLimit = -60; __id773_.upperLimit = 60; __id773_.motor = false; __id773_.motorForce = 0; __id773_.motorSpeed = 0; __id773_.transparent = true; try { __id773_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id770__stuart(){ try { __id770_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id770_.force = 10; __id770_.type = "negative"; __id770_.range = 100; try { __id770_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id774__stuart(){ try { __id774_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id774_.body1 = "link04"; __id774_.body2 = "link05"; __id774_.collideConnected = false; __id774_.limit = false; __id774_.lowerLimit = -60; __id774_.upperLimit = 60; __id774_.motor = false; __id774_.motorForce = 0; __id774_.motorSpeed = 0; __id774_.transparent = true; try { __id774_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id775__stuart(){ try { __id775_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id775_.body1 = "link05"; __id775_.body2 = "link06"; __id775_.collideConnected = false; __id775_.limit = false; __id775_.lowerLimit = -60; __id775_.upperLimit = 60; __id775_.motor = false; __id775_.motorForce = 0; __id775_.motorSpeed = 0; __id775_.transparent = true; try { __id775_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package stuart
Section 326
//ExampleLevel5 (stuart.ExampleLevel5) package stuart { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import koen.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class ExampleLevel5 extends MovieClip { public var __id744_:iNode; public var __id752_:iNode; public var __id740_:iNode; public var __id750_:iNode; public var __id760_:iRevoluteJoint; public var mag:iMagnet; public var __id737_:iLevelDescriptor; public var __id745_:iNode; public var __id755_:iSwitch; public var door:new9door; public function ExampleLevel5(){ __setProp___id737__stuart(); __setProp___id740__stuart(); __setProp___id744__stuart(); __setProp___id745__stuart(); __setProp___id750__stuart(); __setProp___id752__stuart(); __setProp___id755__stuart(); __setProp_mag_stuart(); __setProp___id760__stuart(); } function __setProp___id755__stuart(){ try { __id755_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id755_.magnets = "mag"; __id755_.switchOnce = false; __id755_.type = "state"; try { __id755_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id750__stuart(){ try { __id750_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id750_.force = 10; __id750_.type = "negative"; __id750_.range = 100; try { __id750_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id737__stuart(){ try { __id737_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id737_.angularDamping = 0.1; __id737_.friction = 0.05; __id737_.gravity = 10; __id737_.linearDamping = 0; __id737_.nodeForce = 6; __id737_.restitution = 0.1; try { __id737_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id752__stuart(){ try { __id752_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id752_.force = 10; __id752_.type = "negative"; __id752_.range = 100; try { __id752_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_mag_stuart(){ try { mag["componentInspectorSetting"] = true; } catch(e:Error) { }; mag.force = 20; mag.type = "positive"; mag.state = true; try { mag["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id740__stuart(){ try { __id740_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id740_.force = 10; __id740_.type = "negative"; __id740_.range = 100; try { __id740_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id744__stuart(){ try { __id744_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id744_.force = 10; __id744_.type = "negative"; __id744_.range = 100; try { __id744_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id745__stuart(){ try { __id745_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id745_.force = 10; __id745_.type = "negative"; __id745_.range = 100; try { __id745_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id760__stuart(){ try { __id760_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id760_.body1 = "door"; __id760_.body2 = ""; __id760_.collideConnected = false; __id760_.limit = false; __id760_.lowerLimit = -60; __id760_.upperLimit = 60; __id760_.motor = false; __id760_.motorForce = 0; __id760_.motorSpeed = 0; __id760_.transparent = true; try { __id760_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package stuart
Section 327
//ExampleLevel6 (stuart.ExampleLevel6) package stuart { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class ExampleLevel6 extends MovieClip { public var __id722_:iRectangle; public var __id710_:iLevelDescriptor; public var __id730_:iNode; public var __id719_:iNode; public var __id717_:iRectangle; public var __id725_:iNode; public var __id711_:iNode; public var __id731_:iNode; public var __id728_:iNode; public var __id716_:iNode; public function ExampleLevel6(){ __setProp___id710__stuart(); __setProp___id711__stuart(); __setProp___id716__stuart(); __setProp___id717__stuart(); __setProp___id719__stuart(); __setProp___id722__stuart(); __setProp___id725__stuart(); __setProp___id728__stuart(); __setProp___id730__stuart(); __setProp___id731__stuart(); } function __setProp___id730__stuart(){ try { __id730_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id730_.force = 10; __id730_.type = "negative"; __id730_.range = 100; try { __id730_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id731__stuart(){ try { __id731_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id731_.force = 10; __id731_.type = "negative"; __id731_.range = 100; try { __id731_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id710__stuart(){ try { __id710_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id710_.angularDamping = 0.1; __id710_.friction = 0.05; __id710_.gravity = 10; __id710_.linearDamping = 0.1; __id710_.nodeForce = 4; __id710_.restitution = 0; try { __id710_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id711__stuart(){ try { __id711_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id711_.force = 10; __id711_.type = "negative"; __id711_.range = 100; try { __id711_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id716__stuart(){ try { __id716_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id716_.force = 10; __id716_.type = "negative"; __id716_.range = 100; try { __id716_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id717__stuart(){ try { __id717_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id717_.deathZone = true; __id717_.deathZoneBlink = true; __id717_.density = 0; __id717_.sensor = false; __id717_.transparent = false; try { __id717_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id719__stuart(){ try { __id719_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id719_.force = 10; __id719_.type = "negative"; __id719_.range = 100; try { __id719_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id722__stuart(){ try { __id722_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id722_.deathZone = true; __id722_.deathZoneBlink = true; __id722_.density = 0; __id722_.sensor = false; __id722_.transparent = false; try { __id722_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id725__stuart(){ try { __id725_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id725_.force = 10; __id725_.type = "negative"; __id725_.range = 100; try { __id725_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id728__stuart(){ try { __id728_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id728_.force = 10; __id728_.type = "negative"; __id728_.range = 100; try { __id728_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package stuart
Section 328
//spin (thomas.lev4.spin) package thomas.lev4 { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class spin extends iBody { public function spin(){ __setProp_s3_thomas(); __setProp_s1_thomas(); } function __setProp_s3_thomas(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s1_thomas(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = false; s1.deathZoneBlink = true; s1.density = 1; s1.sensor = false; s1.transparent = false; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas.lev4
Section 329
//carbody1 (thomas.carbody1) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class carbody1 extends iBody { public function carbody1(){ __setProp_s3_thomas(); __setProp_s1_thomas(); __setProp_s1_thomas_1(); } function __setProp_s3_thomas(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s1_thomas(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = false; s1.deathZoneBlink = true; s1.density = 1; s1.sensor = false; s1.transparent = false; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s1_thomas_1(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = false; s1.deathZoneBlink = true; s1.density = 1; s1.sensor = false; s1.transparent = false; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 330
//lev4ball (thomas.lev4ball) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class lev4ball extends iBody { public function lev4ball(){ __setProp_s1_thomas(); } function __setProp_s1_thomas(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = false; s1.deathZoneBlink = true; s1.density = 1; s1.sensor = false; s1.transparent = true; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 331
//lev4spin2 (thomas.lev4spin2) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class lev4spin2 extends iBody { public function lev4spin2(){ __setProp_s3_thomas(); __setProp_s1_thomas(); } function __setProp_s3_thomas(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s1_thomas(){ try { s1["componentInspectorSetting"] = true; } catch(e:Error) { }; s1.deathZone = false; s1.deathZoneBlink = true; s1.density = 1; s1.sensor = false; s1.transparent = false; try { s1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 332
//level1 (thomas.level1) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level1 extends MovieClip { public var __id348_:iMagnet; public var __id347_:iMagnet; public var __id346_:iRectangle; public var __id344_:iNode; public var __id343_:iLevelDescriptor; public function level1(){ __setProp___id343__thomas(); __setProp___id344__thomas(); __setProp___id346__thomas(); __setProp___id347__thomas(); __setProp___id348__thomas(); } function __setProp___id343__thomas(){ try { __id343_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id343_.angularDamping = 0; __id343_.friction = 0.1; __id343_.gravity = 10; __id343_.linearDamping = 0; __id343_.nodeForce = 4; __id343_.restitution = 0.1; try { __id343_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id344__thomas(){ try { __id344_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id344_.force = 10; __id344_.type = "negative"; __id344_.range = 100; try { __id344_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id346__thomas(){ try { __id346_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id346_.deathZone = false; __id346_.deathZoneBlink = true; __id346_.density = 0; __id346_.sensor = false; __id346_.transparent = true; try { __id346_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id347__thomas(){ try { __id347_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id347_.force = 30; __id347_.type = "positive"; __id347_.state = true; try { __id347_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id348__thomas(){ try { __id348_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id348_.force = 30; __id348_.type = "negative"; __id348_.state = true; try { __id348_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 333
//level10 (thomas.level10) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level10 extends MovieClip { public var __id259_:iMagnet; public var __id245_:iLevelDescriptor; public var __id250_:iNode; public var __id261_:iNode; public function level10(){ __setProp___id245__thomas(); __setProp___id250__thomas(); __setProp___id259__thomas(); __setProp___id261__thomas(); } function __setProp___id245__thomas(){ try { __id245_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id245_.angularDamping = 0; __id245_.friction = 0.8; __id245_.gravity = 5; __id245_.linearDamping = 0; __id245_.nodeForce = 7; __id245_.restitution = 0.3; try { __id245_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id250__thomas(){ try { __id250_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id250_.force = 10; __id250_.type = "negative"; __id250_.range = 100; try { __id250_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id259__thomas(){ try { __id259_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id259_.force = 10; __id259_.type = "negative"; __id259_.state = true; try { __id259_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id261__thomas(){ try { __id261_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id261_.force = 10; __id261_.type = "negative"; __id261_.range = 100; try { __id261_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 334
//level11 (thomas.level11) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level11 extends MovieClip { public var __id238_:iNode; public var __id236_:iMagnet; public var __id234_:iNode; public var __id233_:iLevelDescriptor; public function level11(){ __setProp___id233__thomas(); __setProp___id234__thomas(); __setProp___id236__thomas(); __setProp___id238__thomas(); } function __setProp___id233__thomas(){ try { __id233_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id233_.angularDamping = 0; __id233_.friction = 0.8; __id233_.gravity = 5; __id233_.linearDamping = 0; __id233_.nodeForce = 7; __id233_.restitution = 0.3; try { __id233_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id234__thomas(){ try { __id234_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id234_.force = 10; __id234_.type = "negative"; __id234_.range = 100; try { __id234_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id236__thomas(){ try { __id236_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id236_.force = 10; __id236_.type = "negative"; __id236_.state = true; try { __id236_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id238__thomas(){ try { __id238_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id238_.force = 10; __id238_.type = "negative"; __id238_.range = 100; try { __id238_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 335
//level12 (thomas.level12) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level12 extends MovieClip { public var magnet1:iMagnet; public var magnet2:iMagnet; public var __id221_:iLevelDescriptor; public var magnet4:iMagnet; public var magnet5:iMagnet; public var magnet6:iMagnet; public var magnet3:iMagnet; public var __id231_:iSwitch; public var __id223_:iNode; public var __id232_:iRectangle; public function level12(){ __setProp___id221__thomas(); __setProp___id223__thomas(); __setProp_magnet5_thomas(); __setProp_magnet3_thomas(); __setProp_magnet2_thomas(); __setProp_magnet6_thomas(); __setProp_magnet4_thomas(); __setProp___id231__thomas(); __setProp_magnet1_thomas(); __setProp___id232__thomas(); } function __setProp___id221__thomas(){ try { __id221_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id221_.angularDamping = 1; __id221_.friction = 1; __id221_.gravity = 5; __id221_.linearDamping = 1; __id221_.nodeForce = 8; __id221_.restitution = 0.3; try { __id221_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id223__thomas(){ try { __id223_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id223_.force = 10; __id223_.type = "negative"; __id223_.range = 100; try { __id223_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet4_thomas(){ try { magnet4["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet4.force = 5; magnet4.type = "positive"; magnet4.state = true; try { magnet4["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet2_thomas(){ try { magnet2["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet2.force = 20; magnet2.type = "positive"; magnet2.state = true; try { magnet2["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet6_thomas(){ try { magnet6["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet6.force = 5; magnet6.type = "positive"; magnet6.state = true; try { magnet6["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id231__thomas(){ try { __id231_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id231_.magnets = "magnet1,magnet2, magnet3,magnet4,magnet5,magnet6"; __id231_.switchOnce = false; __id231_.type = "state"; try { __id231_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id232__thomas(){ try { __id232_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id232_.deathZone = false; __id232_.deathZoneBlink = true; __id232_.density = 0; __id232_.sensor = false; __id232_.transparent = true; try { __id232_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet5_thomas(){ try { magnet5["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet5.force = 5; magnet5.type = "positive"; magnet5.state = true; try { magnet5["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet3_thomas(){ try { magnet3["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet3.force = 5; magnet3.type = "positive"; magnet3.state = true; try { magnet3["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet1_thomas(){ try { magnet1["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet1.force = 20; magnet1.type = "negative"; magnet1.state = false; try { magnet1["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 336
//level13 (thomas.level13) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level13 extends MovieClip { public var __id149_:iNode; public var __id157_:iSwitch; public var __id148_:iLevelDescriptor; public var magnet1:iMagnet; public var __id152_:iNode; public function level13(){ __setProp___id148__thomas(); __setProp___id149__thomas(); __setProp___id152__thomas(); __setProp_magnet1_thomas(); __setProp___id157__thomas(); } function __setProp___id157__thomas(){ try { __id157_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id157_.magnets = "magnet1"; __id157_.switchOnce = false; __id157_.type = "state"; try { __id157_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id149__thomas(){ try { __id149_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id149_.force = 10; __id149_.type = "negative"; __id149_.range = 100; try { __id149_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id148__thomas(){ try { __id148_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id148_.angularDamping = 1; __id148_.friction = 0.8; __id148_.gravity = 5; __id148_.linearDamping = 1; __id148_.nodeForce = 3; __id148_.restitution = 0.3; try { __id148_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_magnet1_thomas(){ try { magnet1["componentInspectorSetting"] = true; } catch(e:Error) { }; magnet1.force = 20; magnet1.type = "positive"; magnet1.state = true; try { magnet1["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id152__thomas(){ try { __id152_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id152_.force = 10; __id152_.type = "negative"; __id152_.range = 100; try { __id152_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 337
//level14 (thomas.level14) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level14 extends MovieClip { public var __id179_:iMagnet; public var __id165_:iNode; public var __id163_:iLevelDescriptor; public function level14(){ __setProp___id163__thomas(); __setProp___id165__thomas(); __setProp___id179__thomas(); } function __setProp___id179__thomas(){ try { __id179_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id179_.force = 10; __id179_.type = "negative"; __id179_.state = true; try { __id179_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id163__thomas(){ try { __id163_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id163_.angularDamping = 1; __id163_.friction = 0.1; __id163_.gravity = 5; __id163_.linearDamping = 1; __id163_.nodeForce = 3; __id163_.restitution = 0.3; try { __id163_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id165__thomas(){ try { __id165_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id165_.force = 10; __id165_.type = "negative"; __id165_.range = 100; try { __id165_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 338
//level15 (thomas.level15) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level15 extends MovieClip { public var __id217_:iCircle; public var __id209_:iMagnet; public var __id219_:iCircle; public var __id198_:iNode; public var __id218_:iCircle; public var __id220_:iCircle; public var __id183_:iNode; public var __id181_:iLevelDescriptor; public function level15(){ __setProp___id181__thomas(); __setProp___id183__thomas(); __setProp___id198__thomas(); __setProp___id209__thomas(); __setProp___id217__thomas(); __setProp___id218__thomas(); __setProp___id219__thomas(); __setProp___id220__thomas(); } function __setProp___id209__thomas(){ try { __id209_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id209_.force = 10; __id209_.type = "negative"; __id209_.state = true; try { __id209_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id198__thomas(){ try { __id198_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id198_.force = 10; __id198_.type = "negative"; __id198_.range = 100; try { __id198_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id217__thomas(){ try { __id217_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id217_.deathZone = false; __id217_.deathZoneBlink = true; __id217_.density = 0; __id217_.sensor = false; __id217_.transparent = true; try { __id217_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id218__thomas(){ try { __id218_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id218_.deathZone = false; __id218_.deathZoneBlink = true; __id218_.density = 0; __id218_.sensor = false; __id218_.transparent = true; try { __id218_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id219__thomas(){ try { __id219_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id219_.deathZone = false; __id219_.deathZoneBlink = true; __id219_.density = 0; __id219_.sensor = false; __id219_.transparent = true; try { __id219_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id181__thomas(){ try { __id181_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id181_.angularDamping = 1; __id181_.friction = 0.1; __id181_.gravity = 5; __id181_.linearDamping = 1; __id181_.nodeForce = 8; __id181_.restitution = 0.3; try { __id181_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id183__thomas(){ try { __id183_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id183_.force = 10; __id183_.type = "negative"; __id183_.range = 100; try { __id183_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id220__thomas(){ try { __id220_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id220_.deathZone = false; __id220_.deathZoneBlink = true; __id220_.density = 0; __id220_.sensor = false; __id220_.transparent = true; try { __id220_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 339
//level2 (thomas.level2) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level2 extends MovieClip { public var __id336_:iMagnet; public var __id334_:iMagnet; public var __id342_:iRectangle; public var __id340_:iRectangle; public var __id330_:iLevelDescriptor; public var __id339_:iNode; public var __id335_:iMagnet; public var __id333_:iMagnet; public var __id331_:iNode; public var __id341_:iRectangle; public function level2(){ __setProp___id330__thomas(); __setProp___id331__thomas(); __setProp___id333__thomas(); __setProp___id334__thomas(); __setProp___id335__thomas(); __setProp___id336__thomas(); __setProp___id339__thomas(); __setProp___id340__thomas(); __setProp___id341__thomas(); __setProp___id342__thomas(); } function __setProp___id342__thomas(){ try { __id342_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id342_.deathZone = false; __id342_.deathZoneBlink = true; __id342_.density = 0; __id342_.sensor = false; __id342_.transparent = true; try { __id342_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id330__thomas(){ try { __id330_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id330_.angularDamping = 0; __id330_.friction = 0.5; __id330_.gravity = 2; __id330_.linearDamping = 0; __id330_.nodeForce = 8; __id330_.restitution = 0.1; try { __id330_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id331__thomas(){ try { __id331_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id331_.force = 10; __id331_.type = "negative"; __id331_.range = 100; try { __id331_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id333__thomas(){ try { __id333_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id333_.force = 30; __id333_.type = "negative"; __id333_.state = true; try { __id333_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id334__thomas(){ try { __id334_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id334_.force = 30; __id334_.type = "positive"; __id334_.state = true; try { __id334_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id335__thomas(){ try { __id335_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id335_.force = 30; __id335_.type = "negative"; __id335_.state = true; try { __id335_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id339__thomas(){ try { __id339_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id339_.force = 10; __id339_.type = "negative"; __id339_.range = 100; try { __id339_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id336__thomas(){ try { __id336_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id336_.force = 30; __id336_.type = "positive"; __id336_.state = true; try { __id336_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id340__thomas(){ try { __id340_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id340_.deathZone = false; __id340_.deathZoneBlink = true; __id340_.density = 0; __id340_.sensor = false; __id340_.transparent = true; try { __id340_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id341__thomas(){ try { __id341_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id341_.deathZone = false; __id341_.deathZoneBlink = true; __id341_.density = 0; __id341_.sensor = false; __id341_.transparent = true; try { __id341_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 340
//level3 (thomas.level3) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level3 extends MovieClip { public var __id329_:iRectangle; public var __id328_:iRectangle; public var __id327_:iRectangle; public var __id326_:iMagnet; public var __id325_:iRectangle; public var __id323_:iNode; public var __id322_:iLevelDescriptor; public function level3(){ __setProp___id322__thomas(); __setProp___id323__thomas(); __setProp___id325__thomas(); __setProp___id326__thomas(); __setProp___id327__thomas(); __setProp___id328__thomas(); __setProp___id329__thomas(); } function __setProp___id325__thomas(){ try { __id325_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id325_.deathZone = false; __id325_.deathZoneBlink = true; __id325_.density = 0; __id325_.sensor = false; __id325_.transparent = true; try { __id325_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id323__thomas(){ try { __id323_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id323_.force = 10; __id323_.type = "negative"; __id323_.range = 100; try { __id323_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id328__thomas(){ try { __id328_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id328_.deathZone = false; __id328_.deathZoneBlink = true; __id328_.density = 0; __id328_.sensor = false; __id328_.transparent = true; try { __id328_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id329__thomas(){ try { __id329_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id329_.deathZone = false; __id329_.deathZoneBlink = true; __id329_.density = 0; __id329_.sensor = false; __id329_.transparent = true; try { __id329_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id322__thomas(){ try { __id322_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id322_.angularDamping = 0; __id322_.friction = 0.1; __id322_.gravity = 8; __id322_.linearDamping = 0; __id322_.nodeForce = 4.5; __id322_.restitution = 0.1; try { __id322_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id326__thomas(){ try { __id326_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id326_.force = 30; __id326_.type = "negative"; __id326_.state = true; try { __id326_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id327__thomas(){ try { __id327_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id327_.deathZone = false; __id327_.deathZoneBlink = true; __id327_.density = 0; __id327_.sensor = false; __id327_.transparent = true; try { __id327_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 341
//level4 (thomas.level4) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import thomas.lev4.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level4 extends MovieClip { public var __id136_:iRevoluteJoint; public var __id144_:iRevoluteJoint; public var __id132_:iLevelDescriptor; public var __id137_:iRevoluteJoint; public var __id145_:iRevoluteJoint; public var __id133_:iRevoluteJoint; public var A:spin; public var B:spin; public var C:spin; public var D:spin; public var E:spin; public var F:spin; public var __id146_:iRevoluteJoint; public var H:spin; public var I:spin; public var __id138_:iRevoluteJoint; public var G:lev4spin2; public var __id134_:iRevoluteJoint; public var __id139_:iNode; public var __id147_:iRevoluteJoint; public var __id135_:iRevoluteJoint; public var ball:lev4ball; public function level4(){ __setProp___id132__thomas(); __setProp___id133__thomas(); __setProp___id134__thomas(); __setProp___id135__thomas(); __setProp___id136__thomas(); __setProp___id137__thomas(); __setProp___id138__thomas(); __setProp___id139__thomas(); __setProp___id144__thomas(); __setProp___id145__thomas(); __setProp___id146__thomas(); __setProp___id147__thomas(); } function __setProp___id132__thomas(){ try { __id132_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id132_.angularDamping = 0; __id132_.friction = 0.1; __id132_.gravity = 10; __id132_.linearDamping = 0; __id132_.nodeForce = 12; __id132_.restitution = 0.05; try { __id132_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id133__thomas(){ try { __id133_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id133_.body1 = "A"; __id133_.body2 = ""; __id133_.collideConnected = false; __id133_.limit = false; __id133_.lowerLimit = -60; __id133_.upperLimit = 60; __id133_.motor = false; __id133_.motorForce = 0; __id133_.motorSpeed = 0; __id133_.transparent = true; try { __id133_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id134__thomas(){ try { __id134_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id134_.body1 = "A"; __id134_.body2 = "B"; __id134_.collideConnected = false; __id134_.limit = false; __id134_.lowerLimit = -60; __id134_.upperLimit = 60; __id134_.motor = false; __id134_.motorForce = 0; __id134_.motorSpeed = 0; __id134_.transparent = true; try { __id134_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id135__thomas(){ try { __id135_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id135_.body1 = "B"; __id135_.body2 = "C"; __id135_.collideConnected = false; __id135_.limit = false; __id135_.lowerLimit = -60; __id135_.upperLimit = 60; __id135_.motor = false; __id135_.motorForce = 0; __id135_.motorSpeed = 0; __id135_.transparent = true; try { __id135_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id136__thomas(){ try { __id136_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id136_.body1 = "C"; __id136_.body2 = "D"; __id136_.collideConnected = false; __id136_.limit = false; __id136_.lowerLimit = -60; __id136_.upperLimit = 60; __id136_.motor = false; __id136_.motorForce = 0; __id136_.motorSpeed = 0; __id136_.transparent = true; try { __id136_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id137__thomas(){ try { __id137_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id137_.body1 = "D"; __id137_.body2 = "E"; __id137_.collideConnected = false; __id137_.limit = false; __id137_.lowerLimit = -60; __id137_.upperLimit = 60; __id137_.motor = false; __id137_.motorForce = 0; __id137_.motorSpeed = 0; __id137_.transparent = true; try { __id137_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id139__thomas(){ try { __id139_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id139_.force = 10; __id139_.type = "negative"; __id139_.range = 100; try { __id139_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id138__thomas(){ try { __id138_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id138_.body1 = "E"; __id138_.body2 = "F"; __id138_.collideConnected = false; __id138_.limit = false; __id138_.lowerLimit = -60; __id138_.upperLimit = 60; __id138_.motor = false; __id138_.motorForce = 0; __id138_.motorSpeed = 0; __id138_.transparent = true; try { __id138_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id144__thomas(){ try { __id144_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id144_.body1 = "F"; __id144_.body2 = "G"; __id144_.collideConnected = false; __id144_.limit = false; __id144_.lowerLimit = -60; __id144_.upperLimit = 60; __id144_.motor = false; __id144_.motorForce = 0; __id144_.motorSpeed = 0; __id144_.transparent = true; try { __id144_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id146__thomas(){ try { __id146_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id146_.body1 = "I"; __id146_.body2 = "ball"; __id146_.collideConnected = false; __id146_.limit = false; __id146_.lowerLimit = -60; __id146_.upperLimit = 60; __id146_.motor = false; __id146_.motorForce = 0; __id146_.motorSpeed = 0; __id146_.transparent = true; try { __id146_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id145__thomas(){ try { __id145_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id145_.body1 = "G"; __id145_.body2 = "H"; __id145_.collideConnected = false; __id145_.limit = false; __id145_.lowerLimit = -60; __id145_.upperLimit = 60; __id145_.motor = false; __id145_.motorForce = 0; __id145_.motorSpeed = 0; __id145_.transparent = true; try { __id145_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id147__thomas(){ try { __id147_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id147_.body1 = "H"; __id147_.body2 = "I"; __id147_.collideConnected = false; __id147_.limit = false; __id147_.lowerLimit = -60; __id147_.upperLimit = 60; __id147_.motor = false; __id147_.motorForce = 0; __id147_.motorSpeed = 0; __id147_.transparent = true; try { __id147_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 342
//level5 (thomas.level5) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level5 extends MovieClip { public var magnet1:iMagnet; public var magnet2:iMagnet; public var magnet3:iMagnet; public var __id60_:triangle; public var __id96_:triangle; public var __id84_:triangle; public var __id100_:triangle; public var __id29_:iRectangle; public var __id17_:iRectangle; public var __id72_:triangle; public var __id97_:triangle; public var __id85_:triangle; public var __id73_:triangle; public var __id61_:triangle; public var __id101_:triangle; public var wheel1:wheel; public var wheel2:wheel; public var __id18_:iRectangle; public var __id98_:triangle; public var __id74_:triangle; public var __id62_:triangle; public var __id50_:triangle; public var __id86_:triangle; public var __id19_:iRectangle; public var __id99_:triangle; public var __id87_:triangle; public var __id75_:triangle; public var __id63_:triangle; public var __id51_:triangle; public var __id0_:iLevelDescriptor; public var __id88_:triangle; public var __id76_:triangle; public var __id52_:triangle; public var __id40_:triangle; public var __id64_:triangle; public var __id89_:triangle; public var __id77_:triangle; public var __id65_:triangle; public var __id53_:triangle; public var __id41_:triangle; public var __id2_:iRectangle; public var __id78_:triangle; public var __id54_:triangle; public var __id42_:triangle; public var __id3_:iSwitch; public var __id66_:triangle; public var __id30_:triangle; public var __id79_:triangle; public var __id67_:triangle; public var __id55_:triangle; public var __id43_:triangle; public var __id4_:iNode; public var __id31_:triangle; public var __id68_:triangle; public var __id56_:triangle; public var __id32_:triangle; public var __id44_:triangle; public var __id20_:iRectangle; public var __id69_:triangle; public var __id57_:triangle; public var __id45_:triangle; public var __id6_:iSwitch; public var __id21_:iRectangle; public var __id33_:triangle; public var __id58_:triangle; public var __id34_:triangle; public var __id10_:iRevoluteJoint; public var __id46_:triangle; public var __id22_:iRectangle; public var __id90_:triangle; public var __id7_:iSwitch; public var __id59_:triangle; public var __id47_:triangle; public var __id35_:triangle; public var __id23_:iRectangle; public var __id11_:iRevoluteJoint; public var __id91_:triangle; public var __id9_:iMagnet; public var __id24_:iRectangle; public var __id12_:iRectangle; public var __id48_:triangle; public var __id92_:triangle; public var __id36_:triangle; public var __id80_:triangle; public var __id49_:triangle; public var __id37_:triangle; public var __id25_:iRectangle; public var body:carbody1; public var __id13_:iRectangle; public var __id93_:triangle; public var __id81_:triangle; public var __id38_:triangle; public var __id26_:iRectangle; public var __id14_:iRectangle; public var __id94_:triangle; public var __id70_:triangle; public var __id82_:triangle; public var __id39_:triangle; public var __id27_:iRectangle; public var __id15_:iRectangle; public var __id95_:triangle; public var __id83_:triangle; public var __id71_:triangle; public var __id28_:iRectangle; public var __id16_:iRectangle; public function level5(){ __setProp___id0__thomas(); __setProp___id2__thomas(); __setProp___id3__thomas(); __setProp___id4__thomas(); __setProp___id6__thomas(); __setProp___id7__thomas(); __setProp___id9__thomas(); __setProp___id10__thomas(); __setProp___id11__thomas(); __setProp___id12__thomas(); __setProp___id13__thomas(); __setProp___id14__thomas(); __setProp___id15__thomas(); __setProp___id16__thomas(); __setProp___id17__thomas(); __setProp___id18__thomas(); __setProp___id19__thomas(); __setProp___id20__thomas(); __setProp___id21__thomas(); __setProp___id22__thomas(); __setProp___id23__thomas(); __setProp___id24__thomas(); __setProp___id25__thomas(); __setProp___id26__thomas(); __setProp___id27__thomas(); __setProp___id28__thomas(); __setProp___id29__thomas(); __setProp___id30__thomas(); __setProp___id31__thomas(); __setProp___id32__thomas(); __setProp___id33__thomas(); __setProp___id34__thomas(); __setProp___id35__thomas(); __setProp___id36__thomas(); __setProp___id37__thomas(); __setProp___id38__thomas(); __setProp___id39__thomas(); __setProp___id40__thomas(); __setProp___id41__thomas(); __setProp___id42__thomas(); __setProp___id43__thomas(); __setProp___id44__thomas(); __setProp___id45__thomas(); __setProp___id46__thomas(); __setProp___id47__thomas(); __setProp___id48__thomas(); __setProp___id49__thomas(); __setProp___id50__thomas(); __setProp___id51__thomas(); __setProp___id52__thomas(); __setProp___id53__thomas(); __setProp___id54__thomas(); __setProp___id55__thomas(); __setProp___id56__thomas(); __setProp___id57__thomas(); __setProp___id58__thomas(); __setProp___id59__thomas(); __setProp___id60__thomas(); __setProp___id61__thomas(); __setProp___id62__thomas(); __setProp___id63__thomas(); __setProp___id64__thomas(); __setProp___id65__thomas(); __setProp___id66__thomas(); __setProp___id67__thomas(); __setProp___id68__thomas(); __setProp___id69__thomas(); __setProp___id70__thomas(); __setProp___id71__thomas(); __setProp___id72__thomas(); __setProp___id73__thomas(); __setProp___id74__thomas(); __setProp___id75__thomas(); __setProp___id76__thomas(); __setProp___id77__thomas(); __setProp___id78__thomas(); __setProp___id79__thomas(); __setProp___id80__thomas(); __setProp___id81__thomas(); __setProp___id82__thomas(); __setProp___id83__thomas(); __setProp___id84__thomas(); __setProp___id85__thomas(); __setProp___id86__thomas(); __setProp___id87__thomas(); __setProp___id88__thomas(); __setProp___id89__thomas(); __setProp___id90__thomas(); __setProp___id91__thomas(); __setProp___id92__thomas(); __setProp___id93__thomas(); __setProp___id94__thomas(); __setProp___id95__thomas(); __setProp___id96__thomas(); __setProp___id97__thomas(); __setProp___id98__thomas(); __setProp___id99__thomas(); __setProp___id100__thomas(); __setProp___id101__thomas(); } function __setProp___id36__thomas(){ try { __id36_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id36_.deathZone = true; __id36_.deathZoneBlink = true; __id36_.density = 0; __id36_.sensor = true; __id36_.transparent = false; try { __id36_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id38__thomas(){ try { __id38_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id38_.deathZone = true; __id38_.deathZoneBlink = true; __id38_.density = 0; __id38_.sensor = true; __id38_.transparent = false; try { __id38_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id45__thomas(){ try { __id45_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id45_.deathZone = true; __id45_.deathZoneBlink = true; __id45_.density = 0; __id45_.sensor = true; __id45_.transparent = false; try { __id45_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id47__thomas(){ try { __id47_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id47_.deathZone = true; __id47_.deathZoneBlink = true; __id47_.density = 0; __id47_.sensor = true; __id47_.transparent = false; try { __id47_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id41__thomas(){ try { __id41_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id41_.deathZone = true; __id41_.deathZoneBlink = true; __id41_.density = 0; __id41_.sensor = true; __id41_.transparent = false; try { __id41_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id49__thomas(){ try { __id49_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id49_.deathZone = true; __id49_.deathZoneBlink = true; __id49_.density = 0; __id49_.sensor = true; __id49_.transparent = false; try { __id49_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id43__thomas(){ try { __id43_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id43_.deathZone = true; __id43_.deathZoneBlink = true; __id43_.density = 0; __id43_.sensor = true; __id43_.transparent = false; try { __id43_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id50__thomas(){ try { __id50_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id50_.deathZone = true; __id50_.deathZoneBlink = true; __id50_.density = 0; __id50_.sensor = true; __id50_.transparent = false; try { __id50_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id54__thomas(){ try { __id54_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id54_.deathZone = true; __id54_.deathZoneBlink = true; __id54_.density = 0; __id54_.sensor = true; __id54_.transparent = false; try { __id54_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id56__thomas(){ try { __id56_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id56_.deathZone = true; __id56_.deathZoneBlink = true; __id56_.density = 0; __id56_.sensor = true; __id56_.transparent = false; try { __id56_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id58__thomas(){ try { __id58_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id58_.deathZone = true; __id58_.deathZoneBlink = true; __id58_.density = 0; __id58_.sensor = true; __id58_.transparent = false; try { __id58_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id61__thomas(){ try { __id61_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id61_.deathZone = true; __id61_.deathZoneBlink = true; __id61_.density = 0; __id61_.sensor = true; __id61_.transparent = false; try { __id61_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id63__thomas(){ try { __id63_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id63_.deathZone = true; __id63_.deathZoneBlink = true; __id63_.density = 0; __id63_.sensor = true; __id63_.transparent = false; try { __id63_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id52__thomas(){ try { __id52_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id52_.deathZone = true; __id52_.deathZoneBlink = true; __id52_.density = 0; __id52_.sensor = true; __id52_.transparent = false; try { __id52_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id67__thomas(){ try { __id67_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id67_.deathZone = true; __id67_.deathZoneBlink = true; __id67_.density = 0; __id67_.sensor = true; __id67_.transparent = false; try { __id67_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id65__thomas(){ try { __id65_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id65_.deathZone = true; __id65_.deathZoneBlink = true; __id65_.density = 0; __id65_.sensor = true; __id65_.transparent = false; try { __id65_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id69__thomas(){ try { __id69_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id69_.deathZone = true; __id69_.deathZoneBlink = true; __id69_.density = 0; __id69_.sensor = true; __id69_.transparent = false; try { __id69_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id70__thomas(){ try { __id70_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id70_.deathZone = true; __id70_.deathZoneBlink = true; __id70_.density = 0; __id70_.sensor = true; __id70_.transparent = false; try { __id70_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id72__thomas(){ try { __id72_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id72_.deathZone = true; __id72_.deathZoneBlink = true; __id72_.density = 0; __id72_.sensor = true; __id72_.transparent = false; try { __id72_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id74__thomas(){ try { __id74_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id74_.deathZone = true; __id74_.deathZoneBlink = true; __id74_.density = 0; __id74_.sensor = true; __id74_.transparent = false; try { __id74_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id76__thomas(){ try { __id76_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id76_.deathZone = true; __id76_.deathZoneBlink = true; __id76_.density = 0; __id76_.sensor = true; __id76_.transparent = false; try { __id76_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id78__thomas(){ try { __id78_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id78_.deathZone = true; __id78_.deathZoneBlink = true; __id78_.density = 0; __id78_.sensor = true; __id78_.transparent = false; try { __id78_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id83__thomas(){ try { __id83_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id83_.deathZone = true; __id83_.deathZoneBlink = true; __id83_.density = 0; __id83_.sensor = true; __id83_.transparent = false; try { __id83_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id85__thomas(){ try { __id85_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id85_.deathZone = true; __id85_.deathZoneBlink = true; __id85_.density = 0; __id85_.sensor = true; __id85_.transparent = false; try { __id85_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id87__thomas(){ try { __id87_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id87_.deathZone = true; __id87_.deathZoneBlink = true; __id87_.density = 0; __id87_.sensor = true; __id87_.transparent = false; try { __id87_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id81__thomas(){ try { __id81_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id81_.deathZone = true; __id81_.deathZoneBlink = true; __id81_.density = 0; __id81_.sensor = true; __id81_.transparent = false; try { __id81_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id89__thomas(){ try { __id89_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id89_.deathZone = true; __id89_.deathZoneBlink = true; __id89_.density = 0; __id89_.sensor = true; __id89_.transparent = false; try { __id89_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id90__thomas(){ try { __id90_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id90_.deathZone = true; __id90_.deathZoneBlink = true; __id90_.density = 0; __id90_.sensor = true; __id90_.transparent = false; try { __id90_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id92__thomas(){ try { __id92_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id92_.deathZone = true; __id92_.deathZoneBlink = true; __id92_.density = 0; __id92_.sensor = true; __id92_.transparent = false; try { __id92_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id94__thomas(){ try { __id94_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id94_.deathZone = true; __id94_.deathZoneBlink = true; __id94_.density = 0; __id94_.sensor = true; __id94_.transparent = false; try { __id94_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id96__thomas(){ try { __id96_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id96_.deathZone = true; __id96_.deathZoneBlink = true; __id96_.density = 0; __id96_.sensor = true; __id96_.transparent = false; try { __id96_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id11__thomas(){ try { __id11_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id11_.body1 = "wheel1"; __id11_.body2 = "body"; __id11_.collideConnected = false; __id11_.limit = false; __id11_.lowerLimit = -60; __id11_.upperLimit = 60; __id11_.motor = true; __id11_.motorForce = 500; __id11_.motorSpeed = 6; __id11_.transparent = true; try { __id11_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id13__thomas(){ try { __id13_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id13_.deathZone = true; __id13_.deathZoneBlink = true; __id13_.density = 0; __id13_.sensor = false; __id13_.transparent = true; try { __id13_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id15__thomas(){ try { __id15_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id15_.deathZone = true; __id15_.deathZoneBlink = true; __id15_.density = 0; __id15_.sensor = false; __id15_.transparent = true; try { __id15_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id0__thomas(){ try { __id0_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id0_.angularDamping = 5; __id0_.friction = 1; __id0_.gravity = 10; __id0_.linearDamping = 0; __id0_.nodeForce = 4; __id0_.restitution = 0.1; try { __id0_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id2__thomas(){ try { __id2_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id2_.deathZone = true; __id2_.deathZoneBlink = true; __id2_.density = 0; __id2_.sensor = false; __id2_.transparent = true; try { __id2_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id4__thomas(){ try { __id4_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id4_.force = 10; __id4_.type = "negative"; __id4_.range = 100; try { __id4_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id17__thomas(){ try { __id17_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id17_.deathZone = true; __id17_.deathZoneBlink = true; __id17_.density = 0; __id17_.sensor = false; __id17_.transparent = true; try { __id17_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id19__thomas(){ try { __id19_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id19_.deathZone = true; __id19_.deathZoneBlink = true; __id19_.density = 0; __id19_.sensor = false; __id19_.transparent = true; try { __id19_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id98__thomas(){ try { __id98_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id98_.deathZone = true; __id98_.deathZoneBlink = true; __id98_.density = 0; __id98_.sensor = true; __id98_.transparent = false; try { __id98_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id24__thomas(){ try { __id24_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id24_.deathZone = true; __id24_.deathZoneBlink = true; __id24_.density = 0; __id24_.sensor = false; __id24_.transparent = true; try { __id24_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id6__thomas(){ try { __id6_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id6_.magnets = "magnet2"; __id6_.switchOnce = false; __id6_.type = "state"; try { __id6_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id20__thomas(){ try { __id20_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id20_.deathZone = true; __id20_.deathZoneBlink = true; __id20_.density = 0; __id20_.sensor = false; __id20_.transparent = true; try { __id20_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id28__thomas(){ try { __id28_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id28_.deathZone = true; __id28_.deathZoneBlink = true; __id28_.density = 0; __id28_.sensor = false; __id28_.transparent = true; try { __id28_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id22__thomas(){ try { __id22_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id22_.deathZone = true; __id22_.deathZoneBlink = true; __id22_.density = 0; __id22_.sensor = false; __id22_.transparent = true; try { __id22_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id26__thomas(){ try { __id26_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id26_.deathZone = true; __id26_.deathZoneBlink = true; __id26_.density = 0; __id26_.sensor = false; __id26_.transparent = true; try { __id26_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id31__thomas(){ try { __id31_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id31_.deathZone = true; __id31_.deathZoneBlink = true; __id31_.density = 0; __id31_.sensor = true; __id31_.transparent = false; try { __id31_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id33__thomas(){ try { __id33_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id33_.deathZone = true; __id33_.deathZoneBlink = true; __id33_.density = 0; __id33_.sensor = true; __id33_.transparent = false; try { __id33_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id35__thomas(){ try { __id35_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id35_.deathZone = true; __id35_.deathZoneBlink = true; __id35_.density = 0; __id35_.sensor = true; __id35_.transparent = false; try { __id35_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id37__thomas(){ try { __id37_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id37_.deathZone = true; __id37_.deathZoneBlink = true; __id37_.density = 0; __id37_.sensor = true; __id37_.transparent = false; try { __id37_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id39__thomas(){ try { __id39_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id39_.deathZone = true; __id39_.deathZoneBlink = true; __id39_.density = 0; __id39_.sensor = true; __id39_.transparent = false; try { __id39_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id100__thomas(){ try { __id100_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id100_.deathZone = true; __id100_.deathZoneBlink = true; __id100_.density = 0; __id100_.sensor = true; __id100_.transparent = false; try { __id100_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id40__thomas(){ try { __id40_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id40_.deathZone = true; __id40_.deathZoneBlink = true; __id40_.density = 0; __id40_.sensor = true; __id40_.transparent = false; try { __id40_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id42__thomas(){ try { __id42_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id42_.deathZone = true; __id42_.deathZoneBlink = true; __id42_.density = 0; __id42_.sensor = true; __id42_.transparent = false; try { __id42_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id44__thomas(){ try { __id44_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id44_.deathZone = true; __id44_.deathZoneBlink = true; __id44_.density = 0; __id44_.sensor = true; __id44_.transparent = false; try { __id44_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id46__thomas(){ try { __id46_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id46_.deathZone = true; __id46_.deathZoneBlink = true; __id46_.density = 0; __id46_.sensor = true; __id46_.transparent = false; try { __id46_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id48__thomas(){ try { __id48_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id48_.deathZone = true; __id48_.deathZoneBlink = true; __id48_.density = 0; __id48_.sensor = true; __id48_.transparent = false; try { __id48_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id51__thomas(){ try { __id51_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id51_.deathZone = true; __id51_.deathZoneBlink = true; __id51_.density = 0; __id51_.sensor = true; __id51_.transparent = false; try { __id51_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id53__thomas(){ try { __id53_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id53_.deathZone = true; __id53_.deathZoneBlink = true; __id53_.density = 0; __id53_.sensor = true; __id53_.transparent = false; try { __id53_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id55__thomas(){ try { __id55_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id55_.deathZone = true; __id55_.deathZoneBlink = true; __id55_.density = 0; __id55_.sensor = true; __id55_.transparent = false; try { __id55_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id57__thomas(){ try { __id57_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id57_.deathZone = true; __id57_.deathZoneBlink = true; __id57_.density = 0; __id57_.sensor = true; __id57_.transparent = false; try { __id57_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id59__thomas(){ try { __id59_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id59_.deathZone = true; __id59_.deathZoneBlink = true; __id59_.density = 0; __id59_.sensor = true; __id59_.transparent = false; try { __id59_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id62__thomas(){ try { __id62_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id62_.deathZone = true; __id62_.deathZoneBlink = true; __id62_.density = 0; __id62_.sensor = true; __id62_.transparent = false; try { __id62_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id64__thomas(){ try { __id64_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id64_.deathZone = true; __id64_.deathZoneBlink = true; __id64_.density = 0; __id64_.sensor = true; __id64_.transparent = false; try { __id64_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id66__thomas(){ try { __id66_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id66_.deathZone = true; __id66_.deathZoneBlink = true; __id66_.density = 0; __id66_.sensor = true; __id66_.transparent = false; try { __id66_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id60__thomas(){ try { __id60_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id60_.deathZone = true; __id60_.deathZoneBlink = true; __id60_.density = 0; __id60_.sensor = true; __id60_.transparent = false; try { __id60_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id68__thomas(){ try { __id68_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id68_.deathZone = true; __id68_.deathZoneBlink = true; __id68_.density = 0; __id68_.sensor = true; __id68_.transparent = false; try { __id68_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id71__thomas(){ try { __id71_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id71_.deathZone = true; __id71_.deathZoneBlink = true; __id71_.density = 0; __id71_.sensor = true; __id71_.transparent = false; try { __id71_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id73__thomas(){ try { __id73_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id73_.deathZone = true; __id73_.deathZoneBlink = true; __id73_.density = 0; __id73_.sensor = true; __id73_.transparent = false; try { __id73_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id75__thomas(){ try { __id75_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id75_.deathZone = true; __id75_.deathZoneBlink = true; __id75_.density = 0; __id75_.sensor = true; __id75_.transparent = false; try { __id75_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id77__thomas(){ try { __id77_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id77_.deathZone = true; __id77_.deathZoneBlink = true; __id77_.density = 0; __id77_.sensor = true; __id77_.transparent = false; try { __id77_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id79__thomas(){ try { __id79_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id79_.deathZone = true; __id79_.deathZoneBlink = true; __id79_.density = 0; __id79_.sensor = true; __id79_.transparent = false; try { __id79_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id80__thomas(){ try { __id80_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id80_.deathZone = true; __id80_.deathZoneBlink = true; __id80_.density = 0; __id80_.sensor = true; __id80_.transparent = false; try { __id80_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id86__thomas(){ try { __id86_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id86_.deathZone = true; __id86_.deathZoneBlink = true; __id86_.density = 0; __id86_.sensor = true; __id86_.transparent = false; try { __id86_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id88__thomas(){ try { __id88_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id88_.deathZone = true; __id88_.deathZoneBlink = true; __id88_.density = 0; __id88_.sensor = true; __id88_.transparent = false; try { __id88_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id82__thomas(){ try { __id82_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id82_.deathZone = true; __id82_.deathZoneBlink = true; __id82_.density = 0; __id82_.sensor = true; __id82_.transparent = false; try { __id82_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id84__thomas(){ try { __id84_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id84_.deathZone = true; __id84_.deathZoneBlink = true; __id84_.density = 0; __id84_.sensor = true; __id84_.transparent = false; try { __id84_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id91__thomas(){ try { __id91_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id91_.deathZone = true; __id91_.deathZoneBlink = true; __id91_.density = 0; __id91_.sensor = true; __id91_.transparent = false; try { __id91_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id93__thomas(){ try { __id93_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id93_.deathZone = true; __id93_.deathZoneBlink = true; __id93_.density = 0; __id93_.sensor = true; __id93_.transparent = false; try { __id93_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id95__thomas(){ try { __id95_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id95_.deathZone = true; __id95_.deathZoneBlink = true; __id95_.density = 0; __id95_.sensor = true; __id95_.transparent = false; try { __id95_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id97__thomas(){ try { __id97_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id97_.deathZone = true; __id97_.deathZoneBlink = true; __id97_.density = 0; __id97_.sensor = true; __id97_.transparent = false; try { __id97_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id10__thomas(){ try { __id10_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id10_.body1 = "wheel2"; __id10_.body2 = "body"; __id10_.collideConnected = false; __id10_.limit = false; __id10_.lowerLimit = -60; __id10_.upperLimit = 60; __id10_.motor = true; __id10_.motorForce = 500; __id10_.motorSpeed = 6; __id10_.transparent = true; try { __id10_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id99__thomas(){ try { __id99_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id99_.deathZone = true; __id99_.deathZoneBlink = true; __id99_.density = 0; __id99_.sensor = true; __id99_.transparent = false; try { __id99_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id12__thomas(){ try { __id12_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id12_.deathZone = true; __id12_.deathZoneBlink = true; __id12_.density = 0; __id12_.sensor = false; __id12_.transparent = true; try { __id12_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id3__thomas(){ try { __id3_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id3_.magnets = "magnet1"; __id3_.switchOnce = false; __id3_.type = "state"; try { __id3_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id14__thomas(){ try { __id14_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id14_.deathZone = true; __id14_.deathZoneBlink = true; __id14_.density = 0; __id14_.sensor = false; __id14_.transparent = true; try { __id14_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id16__thomas(){ try { __id16_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id16_.deathZone = true; __id16_.deathZoneBlink = true; __id16_.density = 0; __id16_.sensor = false; __id16_.transparent = true; try { __id16_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id7__thomas(){ try { __id7_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id7_.magnets = "magnet3"; __id7_.switchOnce = false; __id7_.type = "state"; try { __id7_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id9__thomas(){ try { __id9_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id9_.force = 10; __id9_.type = "negative"; __id9_.state = true; try { __id9_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id18__thomas(){ try { __id18_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id18_.deathZone = true; __id18_.deathZoneBlink = true; __id18_.density = 0; __id18_.sensor = false; __id18_.transparent = true; try { __id18_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id101__thomas(){ try { __id101_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id101_.deathZone = true; __id101_.deathZoneBlink = true; __id101_.density = 0; __id101_.sensor = true; __id101_.transparent = false; try { __id101_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id23__thomas(){ try { __id23_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id23_.deathZone = true; __id23_.deathZoneBlink = true; __id23_.density = 0; __id23_.sensor = false; __id23_.transparent = true; try { __id23_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id25__thomas(){ try { __id25_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id25_.deathZone = true; __id25_.deathZoneBlink = true; __id25_.density = 0; __id25_.sensor = false; __id25_.transparent = true; try { __id25_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id27__thomas(){ try { __id27_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id27_.deathZone = true; __id27_.deathZoneBlink = true; __id27_.density = 0; __id27_.sensor = false; __id27_.transparent = true; try { __id27_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id21__thomas(){ try { __id21_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id21_.deathZone = true; __id21_.deathZoneBlink = true; __id21_.density = 0; __id21_.sensor = false; __id21_.transparent = true; try { __id21_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id29__thomas(){ try { __id29_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id29_.deathZone = true; __id29_.deathZoneBlink = true; __id29_.density = 0; __id29_.sensor = false; __id29_.transparent = true; try { __id29_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id30__thomas(){ try { __id30_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id30_.deathZone = true; __id30_.deathZoneBlink = true; __id30_.density = 0; __id30_.sensor = true; __id30_.transparent = false; try { __id30_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id32__thomas(){ try { __id32_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id32_.deathZone = true; __id32_.deathZoneBlink = true; __id32_.density = 0; __id32_.sensor = true; __id32_.transparent = false; try { __id32_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id34__thomas(){ try { __id34_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id34_.deathZone = true; __id34_.deathZoneBlink = true; __id34_.density = 0; __id34_.sensor = true; __id34_.transparent = false; try { __id34_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 343
//level7 (thomas.level7) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level7 extends MovieClip { public var __id108_:iRevoluteJoint; public var __id124_:iRevoluteJoint; public var __id112_:iRevoluteJoint; public var __id109_:iRevoluteJoint; public var __id113_:iRevoluteJoint; public var __id126_:iNode; public var __id102_:iLevelDescriptor; public var __id130_:iRevoluteJoint; public var __id114_:iRevoluteJoint; public var a:spinner; public var b:spinner; public var c:spinner; public var d:spinner; public var __id115_:iRevoluteJoint; public var f:spinner; public var g:spinner; public var h:spinner; public var i:spinner; public var j:spinner; public var k:spinner; public var l:spinner; public var m:spinner; public var o:spinner; public var p:spinner; public var q:spinner; public var r:spinner; public var s:spinner; public var t:spinner; public var __id103_:iNode; public var w:spinner; public var __id131_:iRevoluteJoint; public var __id127_:iNode; public var e:spinner; public var z:spinner; public var __id128_:iNode; public var __id120_:iRevoluteJoint; public var __id116_:iRevoluteJoint; public var __id129_:iNode; public var __id117_:iRevoluteJoint; public var __id105_:iNode; public var __id121_:iRevoluteJoint; public var __id122_:iRevoluteJoint; public var __id118_:iRevoluteJoint; public var __id106_:iRevoluteJoint; public var __id110_:iRevoluteJoint; public var __id123_:iRevoluteJoint; public var __id119_:iRevoluteJoint; public var __id107_:iRevoluteJoint; public var __id111_:iRevoluteJoint; public function level7(){ __setProp___id102__thomas(); __setProp___id103__thomas(); __setProp___id105__thomas(); __setProp___id106__thomas(); __setProp___id107__thomas(); __setProp___id108__thomas(); __setProp___id109__thomas(); __setProp___id110__thomas(); __setProp___id111__thomas(); __setProp___id112__thomas(); __setProp___id113__thomas(); __setProp___id114__thomas(); __setProp___id115__thomas(); __setProp___id116__thomas(); __setProp___id117__thomas(); __setProp___id118__thomas(); __setProp___id119__thomas(); __setProp___id120__thomas(); __setProp___id121__thomas(); __setProp___id122__thomas(); __setProp___id123__thomas(); __setProp___id124__thomas(); __setProp___id126__thomas(); __setProp___id127__thomas(); __setProp___id128__thomas(); __setProp___id129__thomas(); __setProp___id130__thomas(); __setProp___id131__thomas(); } function __setProp___id122__thomas(){ try { __id122_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id122_.body1 = "f"; __id122_.body2 = ""; __id122_.collideConnected = false; __id122_.limit = false; __id122_.lowerLimit = -60; __id122_.upperLimit = 60; __id122_.motor = false; __id122_.motorForce = 0; __id122_.motorSpeed = 0; __id122_.transparent = true; try { __id122_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id126__thomas(){ try { __id126_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id126_.force = 10; __id126_.type = "negative"; __id126_.range = 100; try { __id126_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id127__thomas(){ try { __id127_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id127_.force = 10; __id127_.type = "negative"; __id127_.range = 100; try { __id127_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id124__thomas(){ try { __id124_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id124_.body1 = "b"; __id124_.body2 = ""; __id124_.collideConnected = false; __id124_.limit = false; __id124_.lowerLimit = -60; __id124_.upperLimit = 60; __id124_.motor = false; __id124_.motorForce = 0; __id124_.motorSpeed = 0; __id124_.transparent = true; try { __id124_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id128__thomas(){ try { __id128_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id128_.force = 10; __id128_.type = "negative"; __id128_.range = 100; try { __id128_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id121__thomas(){ try { __id121_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id121_.body1 = "e"; __id121_.body2 = ""; __id121_.collideConnected = false; __id121_.limit = false; __id121_.lowerLimit = -60; __id121_.upperLimit = 60; __id121_.motor = false; __id121_.motorForce = 0; __id121_.motorSpeed = 0; __id121_.transparent = true; try { __id121_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id123__thomas(){ try { __id123_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id123_.body1 = "c"; __id123_.body2 = ""; __id123_.collideConnected = false; __id123_.limit = false; __id123_.lowerLimit = -60; __id123_.upperLimit = 60; __id123_.motor = false; __id123_.motorForce = 0; __id123_.motorSpeed = 0; __id123_.transparent = true; try { __id123_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id130__thomas(){ try { __id130_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id130_.body1 = "z"; __id130_.body2 = ""; __id130_.collideConnected = false; __id130_.limit = false; __id130_.lowerLimit = -60; __id130_.upperLimit = 60; __id130_.motor = false; __id130_.motorForce = 0; __id130_.motorSpeed = 0; __id130_.transparent = true; try { __id130_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id131__thomas(){ try { __id131_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id131_.body1 = "w"; __id131_.body2 = ""; __id131_.collideConnected = false; __id131_.limit = false; __id131_.lowerLimit = -60; __id131_.upperLimit = 60; __id131_.motor = false; __id131_.motorForce = 0; __id131_.motorSpeed = 0; __id131_.transparent = true; try { __id131_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id129__thomas(){ try { __id129_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id129_.force = 10; __id129_.type = "negative"; __id129_.range = 100; try { __id129_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id102__thomas(){ try { __id102_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id102_.angularDamping = 0; __id102_.friction = 0.5; __id102_.gravity = 10; __id102_.linearDamping = 0; __id102_.nodeForce = 5; __id102_.restitution = 0.1; try { __id102_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id103__thomas(){ try { __id103_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id103_.force = 10; __id103_.type = "negative"; __id103_.range = 100; try { __id103_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id105__thomas(){ try { __id105_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id105_.force = 10; __id105_.type = "negative"; __id105_.range = 100; try { __id105_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id106__thomas(){ try { __id106_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id106_.body1 = "a"; __id106_.body2 = ""; __id106_.collideConnected = false; __id106_.limit = false; __id106_.lowerLimit = -60; __id106_.upperLimit = 60; __id106_.motor = false; __id106_.motorForce = 0; __id106_.motorSpeed = 0; __id106_.transparent = true; try { __id106_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id107__thomas(){ try { __id107_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id107_.body1 = "o"; __id107_.body2 = ""; __id107_.collideConnected = false; __id107_.limit = false; __id107_.lowerLimit = -60; __id107_.upperLimit = 60; __id107_.motor = false; __id107_.motorForce = 0; __id107_.motorSpeed = 0; __id107_.transparent = true; try { __id107_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id110__thomas(){ try { __id110_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id110_.body1 = "l"; __id110_.body2 = ""; __id110_.collideConnected = false; __id110_.limit = false; __id110_.lowerLimit = -60; __id110_.upperLimit = 60; __id110_.motor = false; __id110_.motorForce = 0; __id110_.motorSpeed = 0; __id110_.transparent = true; try { __id110_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id114__thomas(){ try { __id114_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id114_.body1 = "q"; __id114_.body2 = ""; __id114_.collideConnected = false; __id114_.limit = false; __id114_.lowerLimit = -60; __id114_.upperLimit = 60; __id114_.motor = false; __id114_.motorForce = 0; __id114_.motorSpeed = 0; __id114_.transparent = true; try { __id114_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id116__thomas(){ try { __id116_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id116_.body1 = "j"; __id116_.body2 = ""; __id116_.collideConnected = false; __id116_.limit = false; __id116_.lowerLimit = -60; __id116_.upperLimit = 60; __id116_.motor = false; __id116_.motorForce = 200; __id116_.motorSpeed = 5; __id116_.transparent = true; try { __id116_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id111__thomas(){ try { __id111_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id111_.body1 = "r"; __id111_.body2 = ""; __id111_.collideConnected = false; __id111_.limit = false; __id111_.lowerLimit = -60; __id111_.upperLimit = 60; __id111_.motor = false; __id111_.motorForce = 0; __id111_.motorSpeed = 0; __id111_.transparent = true; try { __id111_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id117__thomas(){ try { __id117_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id117_.body1 = "g"; __id117_.body2 = ""; __id117_.collideConnected = false; __id117_.limit = false; __id117_.lowerLimit = -60; __id117_.upperLimit = 60; __id117_.motor = false; __id117_.motorForce = 0; __id117_.motorSpeed = 0; __id117_.transparent = true; try { __id117_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id115__thomas(){ try { __id115_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id115_.body1 = "k"; __id115_.body2 = ""; __id115_.collideConnected = false; __id115_.limit = false; __id115_.lowerLimit = -60; __id115_.upperLimit = 60; __id115_.motor = false; __id115_.motorForce = 0; __id115_.motorSpeed = 0; __id115_.transparent = true; try { __id115_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id108__thomas(){ try { __id108_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id108_.body1 = "p"; __id108_.body2 = ""; __id108_.collideConnected = false; __id108_.limit = false; __id108_.lowerLimit = -60; __id108_.upperLimit = 60; __id108_.motor = false; __id108_.motorForce = 0; __id108_.motorSpeed = 0; __id108_.transparent = true; try { __id108_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id109__thomas(){ try { __id109_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id109_.body1 = "m"; __id109_.body2 = ""; __id109_.collideConnected = false; __id109_.limit = false; __id109_.lowerLimit = -60; __id109_.upperLimit = 60; __id109_.motor = false; __id109_.motorForce = 0; __id109_.motorSpeed = 0; __id109_.transparent = true; try { __id109_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id119__thomas(){ try { __id119_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id119_.body1 = "i"; __id119_.body2 = ""; __id119_.collideConnected = false; __id119_.limit = false; __id119_.lowerLimit = -60; __id119_.upperLimit = 60; __id119_.motor = false; __id119_.motorForce = 0; __id119_.motorSpeed = 0; __id119_.transparent = true; try { __id119_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id112__thomas(){ try { __id112_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id112_.body1 = "s"; __id112_.body2 = ""; __id112_.collideConnected = false; __id112_.limit = false; __id112_.lowerLimit = -60; __id112_.upperLimit = 60; __id112_.motor = false; __id112_.motorForce = 0; __id112_.motorSpeed = 0; __id112_.transparent = true; try { __id112_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id113__thomas(){ try { __id113_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id113_.body1 = "t"; __id113_.body2 = ""; __id113_.collideConnected = false; __id113_.limit = false; __id113_.lowerLimit = -60; __id113_.upperLimit = 60; __id113_.motor = false; __id113_.motorForce = 0; __id113_.motorSpeed = 0; __id113_.transparent = true; try { __id113_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id120__thomas(){ try { __id120_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id120_.body1 = "d"; __id120_.body2 = ""; __id120_.collideConnected = false; __id120_.limit = false; __id120_.lowerLimit = -60; __id120_.upperLimit = 60; __id120_.motor = false; __id120_.motorForce = 0; __id120_.motorSpeed = 0; __id120_.transparent = true; try { __id120_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id118__thomas(){ try { __id118_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id118_.body1 = "h"; __id118_.body2 = ""; __id118_.collideConnected = false; __id118_.limit = false; __id118_.lowerLimit = -60; __id118_.upperLimit = 60; __id118_.motor = false; __id118_.motorForce = 0; __id118_.motorSpeed = 0; __id118_.transparent = true; try { __id118_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 344
//level8 (thomas.level8) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level8 extends MovieClip { public var __id317_:iMagnet; public var __id316_:iNode; public var __id315_:iLevelDescriptor; public var __id320_:iMagnet; public function level8(){ __setProp___id315__thomas(); __setProp___id316__thomas(); __setProp___id317__thomas(); __setProp___id320__thomas(); } function __setProp___id320__thomas(){ try { __id320_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id320_.force = 8; __id320_.type = "negative"; __id320_.state = true; try { __id320_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id316__thomas(){ try { __id316_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id316_.force = 10; __id316_.type = "negative"; __id316_.range = 100; try { __id316_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id317__thomas(){ try { __id317_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id317_.force = 8; __id317_.type = "positive"; __id317_.state = true; try { __id317_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id315__thomas(){ try { __id315_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id315_.angularDamping = 0; __id315_.friction = 0.1; __id315_.gravity = 8; __id315_.linearDamping = 0; __id315_.nodeForce = 1.8; __id315_.restitution = 0.3; try { __id315_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 345
//level9 (thomas.level9) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class level9 extends MovieClip { public var __id314_:triangle; public var __id302_:triangle; public var __id297_:triangle; public var __id285_:triangle; public var __id303_:triangle; public var __id298_:triangle; public var __id286_:triangle; public var __id290_:triangle; public var __id304_:triangle; public var __id299_:triangle; public var __id287_:triangle; public var __id275_:iNode; public var __id291_:triangle; public var __id305_:triangle; public var __id288_:triangle; public var __id292_:triangle; public var __id306_:triangle; public var __id289_:triangle; public var __id277_:iNode; public var __id293_:triangle; public var __id310_:triangle; public var __id307_:triangle; public var __id294_:triangle; public var __id282_:iMagnet; public var __id270_:iLevelDescriptor; public var __id311_:triangle; public var __id308_:triangle; public var __id312_:triangle; public var __id300_:triangle; public var __id283_:triangle; public var __id295_:triangle; public var __id309_:triangle; public var __id301_:triangle; public var __id296_:triangle; public var __id284_:triangle; public var __id313_:triangle; public function level9(){ __setProp___id270__thomas(); __setProp___id275__thomas(); __setProp___id277__thomas(); __setProp___id282__thomas(); __setProp___id283__thomas(); __setProp___id284__thomas(); __setProp___id285__thomas(); __setProp___id286__thomas(); __setProp___id287__thomas(); __setProp___id288__thomas(); __setProp___id289__thomas(); __setProp___id290__thomas(); __setProp___id291__thomas(); __setProp___id292__thomas(); __setProp___id293__thomas(); __setProp___id294__thomas(); __setProp___id295__thomas(); __setProp___id296__thomas(); __setProp___id297__thomas(); __setProp___id298__thomas(); __setProp___id299__thomas(); __setProp___id300__thomas(); __setProp___id301__thomas(); __setProp___id302__thomas(); __setProp___id303__thomas(); __setProp___id304__thomas(); __setProp___id305__thomas(); __setProp___id306__thomas(); __setProp___id307__thomas(); __setProp___id308__thomas(); __setProp___id309__thomas(); __setProp___id310__thomas(); __setProp___id311__thomas(); __setProp___id312__thomas(); __setProp___id313__thomas(); __setProp___id314__thomas(); } function __setProp___id300__thomas(){ try { __id300_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id300_.deathZone = true; __id300_.deathZoneBlink = false; __id300_.density = 0; __id300_.sensor = false; __id300_.transparent = false; try { __id300_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id302__thomas(){ try { __id302_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id302_.deathZone = true; __id302_.deathZoneBlink = false; __id302_.density = 0; __id302_.sensor = false; __id302_.transparent = false; try { __id302_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id303__thomas(){ try { __id303_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id303_.deathZone = true; __id303_.deathZoneBlink = false; __id303_.density = 0; __id303_.sensor = false; __id303_.transparent = false; try { __id303_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id304__thomas(){ try { __id304_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id304_.deathZone = true; __id304_.deathZoneBlink = false; __id304_.density = 0; __id304_.sensor = false; __id304_.transparent = false; try { __id304_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id305__thomas(){ try { __id305_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id305_.deathZone = true; __id305_.deathZoneBlink = false; __id305_.density = 0; __id305_.sensor = false; __id305_.transparent = false; try { __id305_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id309__thomas(){ try { __id309_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id309_.deathZone = true; __id309_.deathZoneBlink = false; __id309_.density = 0; __id309_.sensor = false; __id309_.transparent = false; try { __id309_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id308__thomas(){ try { __id308_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id308_.deathZone = true; __id308_.deathZoneBlink = false; __id308_.density = 0; __id308_.sensor = false; __id308_.transparent = false; try { __id308_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id306__thomas(){ try { __id306_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id306_.deathZone = true; __id306_.deathZoneBlink = false; __id306_.density = 0; __id306_.sensor = false; __id306_.transparent = false; try { __id306_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id307__thomas(){ try { __id307_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id307_.deathZone = true; __id307_.deathZoneBlink = false; __id307_.density = 0; __id307_.sensor = false; __id307_.transparent = false; try { __id307_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id301__thomas(){ try { __id301_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id301_.deathZone = true; __id301_.deathZoneBlink = false; __id301_.density = 0; __id301_.sensor = false; __id301_.transparent = false; try { __id301_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id275__thomas(){ try { __id275_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id275_.force = 10; __id275_.type = "negative"; __id275_.range = 100; try { __id275_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id270__thomas(){ try { __id270_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id270_.angularDamping = 0; __id270_.friction = 0.8; __id270_.gravity = 5; __id270_.linearDamping = 0; __id270_.nodeForce = 7; __id270_.restitution = 0.1; try { __id270_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id312__thomas(){ try { __id312_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id312_.deathZone = true; __id312_.deathZoneBlink = false; __id312_.density = 0; __id312_.sensor = false; __id312_.transparent = false; try { __id312_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id313__thomas(){ try { __id313_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id313_.deathZone = true; __id313_.deathZoneBlink = false; __id313_.density = 0; __id313_.sensor = false; __id313_.transparent = false; try { __id313_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id314__thomas(){ try { __id314_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id314_.deathZone = true; __id314_.deathZoneBlink = false; __id314_.density = 0; __id314_.sensor = false; __id314_.transparent = false; try { __id314_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id277__thomas(){ try { __id277_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id277_.force = 10; __id277_.type = "negative"; __id277_.range = 100; try { __id277_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id311__thomas(){ try { __id311_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id311_.deathZone = true; __id311_.deathZoneBlink = false; __id311_.density = 0; __id311_.sensor = false; __id311_.transparent = false; try { __id311_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id310__thomas(){ try { __id310_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id310_.deathZone = true; __id310_.deathZoneBlink = false; __id310_.density = 0; __id310_.sensor = false; __id310_.transparent = false; try { __id310_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id282__thomas(){ try { __id282_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id282_.force = 10; __id282_.type = "negative"; __id282_.state = true; try { __id282_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id283__thomas(){ try { __id283_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id283_.deathZone = true; __id283_.deathZoneBlink = false; __id283_.density = 0; __id283_.sensor = false; __id283_.transparent = false; try { __id283_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id284__thomas(){ try { __id284_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id284_.deathZone = true; __id284_.deathZoneBlink = false; __id284_.density = 0; __id284_.sensor = false; __id284_.transparent = false; try { __id284_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id285__thomas(){ try { __id285_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id285_.deathZone = true; __id285_.deathZoneBlink = false; __id285_.density = 0; __id285_.sensor = false; __id285_.transparent = false; try { __id285_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id286__thomas(){ try { __id286_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id286_.deathZone = true; __id286_.deathZoneBlink = false; __id286_.density = 0; __id286_.sensor = false; __id286_.transparent = false; try { __id286_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id287__thomas(){ try { __id287_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id287_.deathZone = true; __id287_.deathZoneBlink = false; __id287_.density = 0; __id287_.sensor = false; __id287_.transparent = false; try { __id287_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id289__thomas(){ try { __id289_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id289_.deathZone = true; __id289_.deathZoneBlink = false; __id289_.density = 0; __id289_.sensor = false; __id289_.transparent = false; try { __id289_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id288__thomas(){ try { __id288_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id288_.deathZone = true; __id288_.deathZoneBlink = false; __id288_.density = 0; __id288_.sensor = false; __id288_.transparent = false; try { __id288_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id293__thomas(){ try { __id293_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id293_.deathZone = true; __id293_.deathZoneBlink = false; __id293_.density = 0; __id293_.sensor = false; __id293_.transparent = false; try { __id293_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id294__thomas(){ try { __id294_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id294_.deathZone = true; __id294_.deathZoneBlink = false; __id294_.density = 0; __id294_.sensor = false; __id294_.transparent = false; try { __id294_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id295__thomas(){ try { __id295_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id295_.deathZone = true; __id295_.deathZoneBlink = false; __id295_.density = 0; __id295_.sensor = false; __id295_.transparent = false; try { __id295_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id296__thomas(){ try { __id296_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id296_.deathZone = true; __id296_.deathZoneBlink = false; __id296_.density = 0; __id296_.sensor = false; __id296_.transparent = false; try { __id296_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id297__thomas(){ try { __id297_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id297_.deathZone = true; __id297_.deathZoneBlink = false; __id297_.density = 0; __id297_.sensor = false; __id297_.transparent = false; try { __id297_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id292__thomas(){ try { __id292_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id292_.deathZone = true; __id292_.deathZoneBlink = false; __id292_.density = 0; __id292_.sensor = false; __id292_.transparent = false; try { __id292_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id291__thomas(){ try { __id291_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id291_.deathZone = true; __id291_.deathZoneBlink = false; __id291_.density = 0; __id291_.sensor = false; __id291_.transparent = false; try { __id291_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id290__thomas(){ try { __id290_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id290_.deathZone = true; __id290_.deathZoneBlink = false; __id290_.density = 0; __id290_.sensor = false; __id290_.transparent = false; try { __id290_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id298__thomas(){ try { __id298_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id298_.deathZone = true; __id298_.deathZoneBlink = false; __id298_.density = 0; __id298_.sensor = false; __id298_.transparent = false; try { __id298_["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id299__thomas(){ try { __id299_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id299_.deathZone = true; __id299_.deathZoneBlink = false; __id299_.density = 0; __id299_.sensor = false; __id299_.transparent = false; try { __id299_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 346
//pistolwhip (thomas.pistolwhip) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class pistolwhip extends iBody { public function pistolwhip(){ __setProp_s3_thomas(); } function __setProp_s3_thomas(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 347
//spinner (thomas.spinner) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class spinner extends iBody { public function spinner(){ __setProp_s3_thomas(); } function __setProp_s3_thomas(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 348
//thing (thomas.thing) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class thing extends iBody { public function thing(){ __setProp_s3_thomas(); } function __setProp_s3_thomas(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 349
//thing2 (thomas.thing2) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class thing2 extends iBody { public function thing2(){ __setProp_s3_thomas(); } function __setProp_s3_thomas(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 350
//triangle (thomas.triangle) package thomas { import spill.bipole.editor.*; public dynamic class triangle extends iPolygon { } }//package thomas
Section 351
//wheel (thomas.wheel) package thomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class wheel extends iBody { public function wheel(){ __setProp_s2_thomas(); } function __setProp_s2_thomas(){ try { s2["componentInspectorSetting"] = true; } catch(e:Error) { }; s2.deathZone = false; s2.deathZoneBlink = true; s2.density = 1; s2.sensor = false; s2.transparent = false; try { s2["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package thomas
Section 352
//creditblock (tomas.creditblock) package tomas { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class creditblock extends iBody { public function creditblock(){ __setProp_s3_tomas(); } function __setProp_s3_tomas(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = false; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package tomas
Section 353
//Bipole2 (Bipole2) package { import flash.events.*; import flash.display.*; import spill.bipole.screens.*; import gfx.*; import spill.bipole.engine.*; import flash.ui.*; import flash.geom.*; import flash.utils.*; public class Bipole2 extends MovieClip { private var preloader:PreloaderScreen; public function Bipole2(){ Skins.skinDetector = SkinDetector; Skins.detectSkinType(); stage.frameRate = 33; stage.stageFocusRect = false; stage.quality = StageQuality.MEDIUM; stage.scaleMode = StageScaleMode.SHOW_ALL; scrollRect = new Rectangle(0, 0, 520, 580); trace(("Bipole constructor, bytesLoaded = " + this.loaderInfo.bytesLoaded)); addEventListener(Event.ENTER_FRAME, checkFrame); preloader = new PreloaderScreen(loaderInfo); addChild(preloader); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown); stage.focus = stage; } private function keyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ trace(findFilters(this)); }; } private function findFilters(_arg1:DisplayObject, _arg2:String=""):String{ var _local4:DisplayObjectContainer; var _local5:int; var _local3 = ""; _arg2 = (_arg2 + " "); if ((((_arg1.filters.length > 0)) || (_arg1.cacheAsBitmap))){ _local3 = (((((((_arg2 + "**** found filter ") + _arg1) + " ") + _arg1.name) + " ") + _arg1.filters) + "\n"); } else { _local3 = (((((_arg2 + "----") + _arg1) + " ") + _arg1.name) + "\n"); }; if ((_arg1 is DisplayObjectContainer)){ _local4 = DisplayObjectContainer(_arg1); _local5 = 0; while (_local5 < _local4.numChildren) { if ((_local4.getChildAt(_local5) is DisplayObject)){ _local3 = (_local3 + findFilters(_local4.getChildAt(_local5), _arg2)); }; _local5++; }; }; return (_local3); } private function checkFrame(_arg1:Event):void{ if (currentFrame == totalFrames){ removeChild(preloader); removeEventListener(Event.ENTER_FRAME, checkFrame); startup(); }; } private function startup():void{ stop(); var _local1:Class = (getDefinitionByName("Main") as Class); addChild((new (_local1) as DisplayObject)); } } }//package
Section 354
//box2dblock (box2dblock) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class box2dblock extends iBody { public function box2dblock(){ __setProp_s3_box2dblock_Layer3_0(); } function __setProp_s3_box2dblock_Layer3_0(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = false; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package
Section 355
//iBodycopy (iBodycopy) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class iBodycopy extends iBody { public function iBodycopy(){ __setProp_s2_iBodycopy_Shapes_0(); } function __setProp_s2_iBodycopy_Shapes_0(){ try { s2["componentInspectorSetting"] = true; } catch(e:Error) { }; s2.deathZone = false; s2.deathZoneBlink = true; s2.density = 10; s2.sensor = false; s2.transparent = false; try { s2["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package
Section 356
//Main (Main) package { import flash.events.*; import flash.display.*; import spill.bipole.data.*; import flash.utils.*; import flash.net.*; import gfx.Menu.*; import spill.bipole.screens.*; import spill.bipole.*; import spill.bipole.engine.*; import sfx.*; import gfx.*; import fl.motion.easing.*; import spill.bipole.utils.*; import spill.bipole.sound.*; import spill.localisation.*; import flash.geom.*; import flash.filters.*; public class Main extends MovieClip { private var bmp:Bitmap; private var currentLoc:String; private var content:Sprite; private var bmd:BitmapData; private var mc:InGamescreen; private var easingTime:int;// = 20 private var scoreScreen:SubmitScoreScreen; private var easingFunction:Function; private var optionsScreen:OptionScreen; private var tweenPosition:Number; private var fc:int; private var nextScreen:MovieClip; private var currentScreen:MovieClip; private var ft:int; private var fade_b:Number; private var callBack:Function; private var blur:Number;// = 10 private var transitioning:Boolean;// = false private var fade_r:Number; private var fade_g:Number; private var game:Game; public static var instance:Main; public function Main(){ var _local3:ColorTransform; easingFunction = Linear.easeNone; super(); instance = this; Data.initialize(); setSkins(); setSounds(); var _local1:int = (Skins.isDarkSkin) ? PortalGroup.TWEEN : PortalGroup.FAMILY; SpilGame.initialize("Bipole", _local1, "Bipole", this); if (!Skins.isDarkSkin){ if (!SpilGame.isExternal){ Skins.backgroundColor = SpilGame.currentBranding.backgroundColor; Skins.fadeOutColor = Skins.backgroundColor; }; }; var _local2:Sprite = new Sprite(); _local2.graphics.beginFill(Skins.backgroundColor); _local2.graphics.drawRect(10, 10, 500, 500); _local2.graphics.endFill(); addChild(_local2); game = new Game(); content = new Sprite(); content.x = 260; content.y = 260; content.name = "content"; addChild(content); mc = new InGamescreen(); mc.cacheAsBitmap = true; if (!Skins.isDarkSkin){ if (!SpilGame.isExternal){ _local3 = new ColorTransform(); _local3.color = Skins.fadeOutColor; mc.background.transform.colorTransform = _local3; }; }; addChild(mc); Utils.initButton(mc.highscore_btn, goHighScores); Utils.initButton(mc.home_btn, goMain); Utils.initButton(mc.lvl_select_btn, goLevelSelection); Utils.initButton(mc.options_btn, showOptions); mc.brandingbutton.addEventListener(MouseEvent.CLICK, brandingButtonClicked); addEventListener(Event.ADDED_TO_STAGE, added); } private function added(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, added); stage.quality = Data.quality; Analytics.initialize(parent, false); goMain(); } public function hideSubmitScreen():void{ if (scoreScreen){ removeChild(scoreScreen); scoreScreen = null; }; } private function transOut(_arg1:Event=null):void{ fc++; tweenPosition = (tweenPosition + (1 / easingTime)); var _local2:Number = easingFunction(tweenPosition, 0, 1, 1); if (tweenPosition > 1){ trace(("fps for first transition = " + Math.round((fc * (1000 / (getTimer() - ft)))))); removeEventListener(Event.ENTER_FRAME, transOut); content.removeChild(bmp); bmd.dispose(); bmd = null; bmp = null; currentScreen = nextScreen; startTransitionIn(); } else { content.transform.colorTransform = new ColorTransform((1 - _local2), (1 - _local2), (1 - _local2), 1, Math.round((_local2 * fade_r)), Math.round((_local2 * fade_g)), Math.round((_local2 * fade_b)), 0); bmd.applyFilter(bmd, bmd.rect, new Point(0, 0), new BlurFilter(5, 5)); }; } private function transIn(_arg1:Event=null):void{ var _local3:BlurFilter; fc++; tweenPosition = (tweenPosition + (1 / easingTime)); var _local2:Number = easingFunction(tweenPosition, 0, 1, 1); if (tweenPosition > 1){ trace(("fps for second transition = " + Math.round((fc * (1000 / (getTimer() - ft)))))); removeEventListener(Event.ENTER_FRAME, transIn); content.removeChild(bmp); bmp.bitmapData.dispose(); bmp = null; content.addChild(currentScreen); content.filters = null; content.transform.colorTransform = new ColorTransform(); transitioning = false; if (callBack != null){ callBack(); callBack = null; }; if ((currentScreen is IGameScreen)){ IGameScreen(currentScreen).start(); }; trace(("mc = " + content.numChildren)); } else { content.transform.colorTransform = new ColorTransform(_local2, _local2, _local2, 1, Math.round(((1 - _local2) * fade_r)), Math.round(((1 - _local2) * fade_g)), Math.round(((1 - _local2) * fade_b)), 0); _local3 = new BlurFilter(((1 - _local2) * blur), ((1 - _local2) * blur)); content.filters = [_local3]; }; } public function canSwitch(_arg1:String):Boolean{ if (currentLoc == _arg1){ return (false); }; if (transitioning){ return (false); }; currentLoc = _arg1; return (true); } public function goMain(_arg1:Event=null):void{ if (!canSwitch("Main")){ return; }; Music.playSong("menuMusic"); goScreen(new MainScreen()); } private function setSounds():void{ Sounds.comeTogetherSound = ComeTogetherSound; Sounds.deathSound = DeathSound; Sounds.contactSound = ContactSound; Sounds.magnetOnSound = MagnetOnSound; Sounds.magnetOffSound = MagnetOffSound; Sounds.polaritySwitchSound = PolaritySwitchSound; Sounds.switchSound = SwitchSound; Sounds.startLevelSound = StartLevelSound; } public function showSubmitScreen(_arg1:Event=null):void{ if (!scoreScreen){ scoreScreen = new SubmitScoreScreen(); addChild(scoreScreen); }; } public function goGameComplete(_arg1:Event=null):void{ if (!canSwitch("GameComplete")){ return; }; Music.playSong("menuMusic"); goScreen(new GameCompleteScreen()); showSubmitScreen(); } private function brandingButtonClicked(_arg1:Event):void{ var _local2:String = SpilGame.getMoreGamesLink(currentLoc); navigateToURL(new URLRequest(_local2), "_blank"); } private function setSkins():void{ Skins.nodeNegativeSkin = CharNeg; Skins.nodePositiveSkin = CharPos; Skins.magnetPositiveSkin = MagnetPos; Skins.magnetNegativeSkin = MagnetNeg; Skins.switchSkin = Switch; Skins.joiningSkin = JoiningFlash; Skins.levelCompleteScreen = LevelComplete; Skins.levelFailedScreen = LevelFailed; Skins.enabled = true; Skins.detectSkinType(); } private function startTransitionIn():void{ addEventListener(Event.ENTER_FRAME, transIn); tweenPosition = 0; transitioning = true; bmp = convertToBitmap(currentScreen); content.addChild(bmp); transIn(); ft = getTimer(); fc = 0; } private function convertToBitmap(_arg1:Sprite):Bitmap{ var _local2:Rectangle = currentScreen.getBounds(_arg1); _local2.inflate(10, 10); if (_local2.left < -250){ _local2.left = -250; }; if (_local2.right > 250){ _local2.right = 250; }; if (_local2.top < -250){ _local2.top = -250; }; if (_local2.bottom > 250){ _local2.bottom = 250; }; var _local3:BitmapData = new BitmapData(_local2.width, _local2.height, false, Skins.fadeOutColor); var _local4:Matrix = new Matrix(); _local4.translate(-(_local2.left), -(_local2.top)); _local3.draw(_arg1, _local4); var _local5:Bitmap = new Bitmap(_local3); _local5.x = _local2.left; _local5.y = _local2.top; return (_local5); } public function showOptions(_arg1:Event=null):void{ if (!optionsScreen){ optionsScreen = new OptionScreen(); addChild(optionsScreen); }; } public function goHighScores(_arg1:Event=null):void{ if (!canSwitch("HighScores")){ return; }; Music.playSong("menuMusic"); goScreen(new HighScoreScreen()); } public function goLevelSelection(_arg1:Event=null):void{ if (!canSwitch("LevelSelection")){ return; }; Music.playSong("menuMusic"); goScreen(new LevelSelectionScreen()); } public function startGame(_arg1:int=0):void{ if (!canSwitch("Game")){ return; }; Music.playSong("gameMusic"); game.playLevel(_arg1); } private function startTransitionOut():void{ if ((currentScreen is IGameScreen)){ IGameScreen(currentScreen).destroy(); }; bmp = convertToBitmap(currentScreen); bmd = bmp.bitmapData; content.removeChild(currentScreen); content.addChild(bmp); tweenPosition = 0; addEventListener(Event.ENTER_FRAME, transOut); transitioning = true; transOut(); } public function goScreen(_arg1:MovieClip, _arg2:Function=null):void{ hideOptions(); hideSubmitScreen(); nextScreen = _arg1; callBack = _arg2; fade_r = ((Skins.fadeOutColor & 0xFF0000) >> 16); fade_g = ((Skins.fadeOutColor & 0xFF00) >> 8); fade_b = (Skins.fadeOutColor & 0xFF); if (currentScreen){ startTransitionOut(); } else { currentScreen = _arg1; startTransitionIn(); }; ft = getTimer(); fc = 0; } public function hideOptions():void{ if (optionsScreen){ removeChild(optionsScreen); optionsScreen = null; }; } } }//package
Section 357
//SoundCreditsBlock (SoundCreditsBlock) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class SoundCreditsBlock extends iBody { public var __id879_:iRectangle; public function SoundCreditsBlock(){ __setProp___id879__SoundCreditsBlock_Layer1_0(); } function __setProp___id879__SoundCreditsBlock_Layer1_0(){ try { __id879_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id879_.deathZone = false; __id879_.deathZoneBlink = true; __id879_.density = 1; __id879_.sensor = false; __id879_.transparent = false; try { __id879_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package
Section 358
//thomascreditblock (thomascreditblock) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import spill.bipole.editor.*; import flash.net.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class thomascreditblock extends iBody { public function thomascreditblock(){ __setProp_s3_thomascreditblock_Shapes_0(); __setProp_s2_thomascreditblock_Shapes_0(); __setProp_s2_thomascreditblock_Shapes_0_1(); } function __setProp_s2_thomascreditblock_Shapes_0(){ try { s2["componentInspectorSetting"] = true; } catch(e:Error) { }; s2.deathZone = false; s2.deathZoneBlink = true; s2.density = 1; s2.sensor = false; s2.transparent = false; try { s2["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s2_thomascreditblock_Shapes_0_1(){ try { s2["componentInspectorSetting"] = true; } catch(e:Error) { }; s2.deathZone = false; s2.deathZoneBlink = true; s2.density = 1; s2.sensor = false; s2.transparent = false; try { s2["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_s3_thomascreditblock_Shapes_0(){ try { s3["componentInspectorSetting"] = true; } catch(e:Error) { }; s3.deathZone = false; s3.deathZoneBlink = true; s3.density = 1; s3.sensor = false; s3.transparent = false; try { s3["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package

Library Items

Symbol 1 FontUsed by:2 38 41 42 157 158 241 242 253 294 297 300 303 304 306 313 314 321 329 332 344 346 347 348 349 418 458 508 529 542 561
Symbol 2 EditableTextUses:1 248Used by:5
Symbol 3 FontUsed by:4 309
Symbol 4 EditableTextUses:3 425Used by:5 310
Symbol 5 MovieClip {gfx.SkinDetector} [gfx.SkinDetector]Uses:2 4
Symbol 6 GraphicUsed by:14
Symbol 7 GraphicUsed by:14
Symbol 8 GraphicUsed by:14
Symbol 9 GraphicUsed by:14
Symbol 10 GraphicUsed by:14
Symbol 11 GraphicUsed by:14
Symbol 12 GraphicUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:6 7 8 9 10 11 12 13Used by:45
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:15Used by:37
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:37
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:37
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:37
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:37
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClipUses:25Used by:37
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:37
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:37
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:37
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:33Used by:37
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:35Used by:37
Symbol 37 MovieClipUses:16 18 20 22 24 26 28 30 32 34 36Used by:45
Symbol 38 TextUses:1Used by:45
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:45
Symbol 41 EditableTextUses:1Used by:45
Symbol 42 TextUses:1Used by:45
Symbol 43 GraphicUsed by:44
Symbol 44 ButtonUses:43Used by:45 149
Symbol 45 MovieClip {gfx.PreloaderScreen_mc} [gfx.PreloaderScreen_mc]Uses:14 37 38 40 41 42 44
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46Used by:149
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:48Used by:52
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:52
Symbol 52 MovieClipUses:49 51Used by:149
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:57
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClipUses:55Used by:57
Symbol 57 MovieClipUses:54 56Used by:149
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:62
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:60Used by:62
Symbol 62 MovieClipUses:59 61Used by:149
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:63Used by:67
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:65Used by:67
Symbol 67 MovieClipUses:64 66Used by:149
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:148
Symbol 70 GraphicUsed by:81
Symbol 71 GraphicUsed by:81
Symbol 72 GraphicUsed by:81
Symbol 73 GraphicUsed by:81
Symbol 74 GraphicUsed by:81
Symbol 75 GraphicUsed by:81
Symbol 76 GraphicUsed by:81
Symbol 77 GraphicUsed by:81
Symbol 78 GraphicUsed by:81
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:79Used by:81
Symbol 81 MovieClipUses:70 71 72 73 74 75 76 77 78 80Used by:148
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:148
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:148
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:86Used by:148
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:148
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClipUses:90Used by:148
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:92Used by:148
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94Used by:148
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClipUses:96Used by:148
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:98Used by:148
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClipUses:100Used by:148
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClipUses:102Used by:148
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:104Used by:148
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:148
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:108Used by:148
Symbol 110 GraphicUsed by:113
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:111Used by:113 127
Symbol 113 MovieClipUses:110 112Used by:148
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:114Used by:148
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:116Used by:148
Symbol 118 GraphicUsed by:119
Symbol 119 MovieClipUses:118Used by:148
Symbol 120 GraphicUsed by:121
Symbol 121 MovieClipUses:120Used by:148
Symbol 122 GraphicUsed by:123
Symbol 123 MovieClipUses:122Used by:148
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClipUses:124Used by:148
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClipUses:126 112Used by:148
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClipUses:128Used by:148
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:148
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClipUses:132Used by:148
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClipUses:134Used by:148
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:136Used by:148
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:138Used by:148
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:140Used by:148
Symbol 142 GraphicUsed by:143
Symbol 143 MovieClipUses:142Used by:148
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClipUses:144Used by:148
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:146Used by:148
Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo]Uses:69 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147Used by:149 322
Symbol 149 MovieClip {gfx.Menu.InGamescreen} [gfx.Menu.InGamescreen]Uses:47 52 57 62 67 148 44
Symbol 150 Sound {sfx.ContactSound} [sfx.ContactSound]
Symbol 151 Sound {sfx.StartLevelSound} [sfx.StartLevelSound]
Symbol 152 Sound {sfx.MagnetOnSound} [sfx.MagnetOnSound]
Symbol 153 Sound {sfx.ComeTogetherSound} [sfx.ComeTogetherSound]
Symbol 154 Sound {sfx.MagnetOffSound} [sfx.MagnetOffSound]
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:159 243
Symbol 157 TextUses:1Used by:159
Symbol 158 TextUses:1Used by:159
Symbol 159 MovieClip {gfx.Menu.LevelFailed} [gfx.Menu.LevelFailed]Uses:156 157 158
Symbol 160 GraphicUsed by:181
Symbol 161 GraphicUsed by:164
Symbol 162 GraphicUsed by:164
Symbol 163 GraphicUsed by:164 171
Symbol 164 MovieClipUses:161 162 163Used by:181
Symbol 165 GraphicUsed by:181
Symbol 166 GraphicUsed by:171
Symbol 167 GraphicUsed by:171
Symbol 168 GraphicUsed by:171
Symbol 169 GraphicUsed by:171
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClip {Bipole_backgrounds_interfaces_light_fla.CharNegJoining_anim_105} [Bipole_backgrounds_interfaces_light_fla.CharNegJoining_anim_105]Uses:163 166 167 168 169 170Used by:181
Symbol 172 GraphicUsed by:180
Symbol 173 GraphicUsed by:180
Symbol 174 GraphicUsed by:180
Symbol 175 GraphicUsed by:180
Symbol 176 GraphicUsed by:180
Symbol 177 GraphicUsed by:180
Symbol 178 GraphicUsed by:180
Symbol 179 GraphicUsed by:180
Symbol 180 MovieClip {Bipole_backgrounds_interfaces_light_fla.CharNegDeath_anim_106} [Bipole_backgrounds_interfaces_light_fla.CharNegDeath_anim_106]Uses:172 173 174 175 176 177 178 179Used by:181
Symbol 181 MovieClip {gfx.CharNeg} [gfx.CharNeg]Uses:160 164 165 171 180
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClipUses:182Used by:184
Symbol 184 MovieClipUses:183Used by:193
Symbol 185 GraphicUsed by:191
Symbol 186 GraphicUsed by:191 192
Symbol 187 GraphicUsed by:191
Symbol 188 GraphicUsed by:191
Symbol 189 GraphicUsed by:191
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClipUses:185 186 187 188 189 190Used by:192
Symbol 192 MovieClipUses:191 186Used by:193
Symbol 193 MovieClip {gfx.MagnetNeg} [gfx.MagnetNeg]Uses:184 192
Symbol 194 Sound {sfx.PolaritySwitchSound} [sfx.PolaritySwitchSound]
Symbol 195 GraphicUsed by:196
Symbol 196 MovieClipUses:195Used by:197
Symbol 197 MovieClip {gfx.JoiningFlash} [gfx.JoiningFlash]Uses:196
Symbol 198 Sound {sfx.SwitchSound} [sfx.SwitchSound]
Symbol 199 GraphicUsed by:200
Symbol 200 MovieClipUses:199Used by:205
Symbol 201 GraphicUsed by:202
Symbol 202 MovieClipUses:201Used by:205
Symbol 203 GraphicUsed by:204
Symbol 204 MovieClipUses:203Used by:205
Symbol 205 MovieClip {gfx.Switch} [gfx.Switch]Uses:200 202 204
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClipUses:206Used by:208
Symbol 208 MovieClipUses:207Used by:216
Symbol 209 GraphicUsed by:214
Symbol 210 GraphicUsed by:214 215
Symbol 211 GraphicUsed by:214
Symbol 212 GraphicUsed by:214
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:209 210 211 212 213Used by:215
Symbol 215 MovieClipUses:214 210Used by:216
Symbol 216 MovieClip {gfx.MagnetPos} [gfx.MagnetPos]Uses:208 215
Symbol 217 GraphicUsed by:219
Symbol 218 GraphicUsed by:219
Symbol 219 MovieClip {Bipole_backgrounds_interfaces_light_fla.CarPosHold_anim_99} [Bipole_backgrounds_interfaces_light_fla.CarPosHold_anim_99]Uses:217 218Used by:240
Symbol 220 GraphicUsed by:222
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClipUses:220 221Used by:240
Symbol 223 GraphicUsed by:232 239
Symbol 224 GraphicUsed by:232
Symbol 225 GraphicUsed by:232
Symbol 226 GraphicUsed by:232
Symbol 227 GraphicUsed by:232
Symbol 228 GraphicUsed by:232
Symbol 229 GraphicUsed by:232
Symbol 230 GraphicUsed by:232
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClip {Bipole_backgrounds_interfaces_light_fla.CharPosJoining_anim_101} [Bipole_backgrounds_interfaces_light_fla.CharPosJoining_anim_101]Uses:223 224 225 226 227 228 229 230 231Used by:240
Symbol 233 GraphicUsed by:239
Symbol 234 GraphicUsed by:239
Symbol 235 GraphicUsed by:239
Symbol 236 GraphicUsed by:239
Symbol 237 GraphicUsed by:239
Symbol 238 GraphicUsed by:239
Symbol 239 MovieClip {Bipole_backgrounds_interfaces_light_fla.CharPosDeath_anim_102} [Bipole_backgrounds_interfaces_light_fla.CharPosDeath_anim_102]Uses:223 233 234 235 236 237 238Used by:240
Symbol 240 MovieClip {gfx.CharPos} [gfx.CharPos]Uses:219 222 232 239
Symbol 241 TextUses:1Used by:243
Symbol 242 TextUses:1Used by:243
Symbol 243 MovieClip {gfx.Menu.LevelComplete} [gfx.Menu.LevelComplete]Uses:156 241 242
Symbol 244 Sound {sfx.DeathSound} [sfx.DeathSound]
Symbol 245 GraphicUsed by:246
Symbol 246 MovieClipUses:245Used by:247
Symbol 247 MovieClip {gfx.BG.bg1} [gfx.BG.bg1]Uses:246
Symbol 248 FontUsed by:2 249
Symbol 249 EditableTextUses:248Used by:250
Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores]Uses:249
Symbol 251 GraphicUsed by:252
Symbol 252 MovieClipUses:251Used by:254
Symbol 253 EditableTextUses:1Used by:254
Symbol 254 MovieClip {Bipole_backgrounds_interfaces_light_fla.LevelbarObj_159} [Bipole_backgrounds_interfaces_light_fla.LevelbarObj_159]Uses:252 253Used by:255
Symbol 255 MovieClip {gfx.LevelBarAnim} [gfx.LevelBarAnim]Uses:254
Symbol 256 GraphicUsed by:257
Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]Uses:256Used by:264 267 271 274 277 285 288 291 292 441 447 451 453 463 466 467 474 475 476 477 480 488 490 491 492 493 494 496 497 502 511 514 515 516 517 518 519 520 521 523 525 527 532 533 537 540 547 551 552 554 555 556 557 558 559 564 565 566 567 568 569 570 571
Symbol 258 GraphicUsed by:259
Symbol 259 MovieClip {spill.bipole.editor.skins.bolt} [spill.bipole.editor.skins.bolt]Uses:258Used by:292 453 475 476 491 533 537 564 566
Symbol 260 FontUsed by:261
Symbol 261 TextUses:260Used by:264
Symbol 262 FontUsed by:263 270
Symbol 263 TextUses:262Used by:264
Symbol 264 MovieClip {SoundCreditsBlock} [SoundCreditsBlock]Uses:257 261 263Used by:292
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:267
Symbol 267 MovieClip {koen.creditblock} [koen.creditblock]Uses:257 266Used by:292
Symbol 268 BitmapUsed by:269
Symbol 269 GraphicUses:268Used by:271
Symbol 270 TextUses:262Used by:271
Symbol 271 MovieClip {tomas.creditblock} [tomas.creditblock]Uses:257 269 270Used by:292
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:272Used by:274
Symbol 274 MovieClip {stuart.creditsblock} [stuart.creditsblock]Uses:257 273Used by:292
Symbol 275 BitmapUsed by:276
Symbol 276 GraphicUses:275Used by:277
Symbol 277 MovieClip {box2dblock} [box2dblock]Uses:257 276Used by:292
Symbol 278 GraphicUsed by:285
Symbol 279 GraphicUsed by:280
Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]Uses:279Used by:285 288 441 447 477 483 488 503 505 512 516 520 521 522 537 538 547 551 554 557 569
Symbol 281 FontUsed by:282
Symbol 282 TextUses:281Used by:285
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClip {spill.bipole.editor.skins.circlesmall} [spill.bipole.editor.skins.circlesmall]Uses:283Used by:285 463 467 477 480 491 493 502 511 515 522 537 538 551 552 567 570
Symbol 285 MovieClip {thomascreditblock} [thomascreditblock]Uses:278 257 280 282 284Used by:292
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClipUses:286Used by:288
Symbol 288 MovieClip {lars.creditsblock} [lars.creditsblock]Uses:257 280 287Used by:292
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:291
Symbol 291 MovieClip {spil.creditsblock} [spil.creditsblock]Uses:257 290Used by:292
Symbol 292 MovieClip {stuart.CreditsLevel} [stuart.CreditsLevel]Uses:257 259 264 267 271 274 277 285 288 291
Symbol 293 GraphicUsed by:311
Symbol 294 TextUses:1Used by:311
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClipUses:295Used by:301
Symbol 297 TextUses:1Used by:301
Symbol 298 GraphicUsed by:299
Symbol 299 MovieClipUses:298Used by:301
Symbol 300 TextUses:1Used by:301
Symbol 301 MovieClip {Bipole_backgrounds_interfaces_light_fla.CloseButton_73} [Bipole_backgrounds_interfaces_light_fla.CloseButton_73]Uses:296 297 299 300Used by:311 352
Symbol 302 GraphicUsed by:311
Symbol 303 TextUses:1Used by:311
Symbol 304 TextUses:1Used by:311
Symbol 305 GraphicUsed by:308
Symbol 306 TextUses:1Used by:308
Symbol 307 GraphicUsed by:308
Symbol 308 MovieClipUses:305 306 307Used by:311
Symbol 309 EditableTextUses:3Used by:310
Symbol 310 MovieClip {Bipole_backgrounds_interfaces_light_fla.textboxes_77} [Bipole_backgrounds_interfaces_light_fla.textboxes_77]Uses:4 309Used by:311
Symbol 311 MovieClip {gfx.SubmitHighscore} [gfx.SubmitHighscore]Uses:293 294 301 302 303 304 308 310
Symbol 312 GraphicUsed by:319
Symbol 313 EditableTextUses:1Used by:319
Symbol 314 EditableTextUses:1Used by:319
Symbol 315 GraphicUsed by:319
Symbol 316 GraphicUsed by:319
Symbol 317 GraphicUsed by:318
Symbol 318 MovieClipUses:317Used by:319
Symbol 319 MovieClip {gfx.LevelSelectionButton} [gfx.LevelSelectionButton]Uses:312 313 314 315 316 318
Symbol 320 GraphicUsed by:322
Symbol 321 TextUses:1Used by:322
Symbol 322 MovieClip {gfx.Sitelock} [gfx.Sitelock]Uses:320 321 148
Symbol 323 GraphicUsed by:324
Symbol 324 MovieClipUses:323Used by:325
Symbol 325 MovieClip {gfx.BG.bg4} [gfx.BG.bg4]Uses:324
Symbol 326 Sound {sfx.MenuMusic} [sfx.MenuMusic]
Symbol 327 Sound {sfx.InGameMusic} [sfx.InGameMusic]
Symbol 328 GraphicUsed by:352
Symbol 329 TextUses:1Used by:352
Symbol 330 GraphicUsed by:331
Symbol 331 MovieClipUses:330Used by:343 345 351
Symbol 332 TextUses:1Used by:343
Symbol 333 GraphicUsed by:334
Symbol 334 MovieClipUses:333Used by:340
Symbol 335 GraphicUsed by:336
Symbol 336 MovieClipUses:335Used by:340
Symbol 337 GraphicUsed by:338 339
Symbol 338 MovieClipUses:337Used by:340
Symbol 339 MovieClipUses:337Used by:340
Symbol 340 MovieClipUses:334 336 338 339Used by:343 345
Symbol 341 GraphicUsed by:342
Symbol 342 MovieClipUses:341Used by:343 345 351
Symbol 343 MovieClip {Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87} [Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87]Uses:331 332 340 342Used by:352
Symbol 344 TextUses:1Used by:345
Symbol 345 MovieClip {Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95} [Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95]Uses:331 344 340 342Used by:352
Symbol 346 TextUses:1Used by:350
Symbol 347 TextUses:1Used by:350
Symbol 348 TextUses:1Used by:350
Symbol 349 TextUses:1Used by:350
Symbol 350 MovieClipUses:346 347 348 349Used by:351
Symbol 351 MovieClip {Bipole_backgrounds_interfaces_light_fla.Quality_btn_96} [Bipole_backgrounds_interfaces_light_fla.Quality_btn_96]Uses:331 350 342Used by:352
Symbol 352 MovieClip {Bipole_backgrounds_interfaces_light_fla.optionsscreen_86} [Bipole_backgrounds_interfaces_light_fla.optionsscreen_86]Uses:328 329 343 345 351 301Used by:353
Symbol 353 MovieClip {gfx.OptionsScreen} [gfx.OptionsScreen]Uses:352
Symbol 354 GraphicUsed by:416
Symbol 355 GraphicUsed by:416
Symbol 356 GraphicUsed by:416
Symbol 357 GraphicUsed by:416
Symbol 358 GraphicUsed by:416
Symbol 359 GraphicUsed by:416
Symbol 360 GraphicUsed by:416
Symbol 361 GraphicUsed by:416
Symbol 362 GraphicUsed by:416
Symbol 363 GraphicUsed by:416
Symbol 364 GraphicUsed by:416
Symbol 365 GraphicUsed by:416
Symbol 366 GraphicUsed by:416
Symbol 367 GraphicUsed by:416
Symbol 368 GraphicUsed by:369
Symbol 369 MovieClipUses:368Used by:416
Symbol 370 GraphicUsed by:371
Symbol 371 MovieClipUses:370Used by:416
Symbol 372 GraphicUsed by:373
Symbol 373 MovieClipUses:372Used by:416
Symbol 374 GraphicUsed by:375
Symbol 375 MovieClipUses:374Used by:416
Symbol 376 GraphicUsed by:377
Symbol 377 MovieClipUses:376Used by:416
Symbol 378 GraphicUsed by:379
Symbol 379 MovieClipUses:378Used by:416
Symbol 380 GraphicUsed by:381
Symbol 381 MovieClipUses:380Used by:416
Symbol 382 GraphicUsed by:389
Symbol 383 GraphicUsed by:389
Symbol 384 GraphicUsed by:389
Symbol 385 GraphicUsed by:389
Symbol 386 GraphicUsed by:389
Symbol 387 GraphicUsed by:389
Symbol 388 GraphicUsed by:389
Symbol 389 MovieClip {Bipole_backgrounds_interfaces_light_fla.splodgyLogoSmall_red_64} [Bipole_backgrounds_interfaces_light_fla.splodgyLogoSmall_red_64]Uses:382 383 384 385 386 387 388Used by:416
Symbol 390 GraphicUsed by:397
Symbol 391 GraphicUsed by:397
Symbol 392 GraphicUsed by:397
Symbol 393 GraphicUsed by:397
Symbol 394 GraphicUsed by:397
Symbol 395 GraphicUsed by:397
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClip {Bipole_backgrounds_interfaces_light_fla.splodgyLogoSmall_blue_65} [Bipole_backgrounds_interfaces_light_fla.splodgyLogoSmall_blue_65]Uses:390 391 392 393 394 395 396Used by:416
Symbol 398 GraphicUsed by:406
Symbol 399 GraphicUsed by:406
Symbol 400 GraphicUsed by:406
Symbol 401 GraphicUsed by:406
Symbol 402 GraphicUsed by:406
Symbol 403 GraphicUsed by:406
Symbol 404 GraphicUsed by:406
Symbol 405 GraphicUsed by:406
Symbol 406 MovieClip {Bipole_backgrounds_interfaces_light_fla.splodgyLogoBig_blue_66} [Bipole_backgrounds_interfaces_light_fla.splodgyLogoBig_blue_66]Uses:398 399 400 401 402 403 404 405Used by:416
Symbol 407 GraphicUsed by:415
Symbol 408 GraphicUsed by:415
Symbol 409 GraphicUsed by:415
Symbol 410 GraphicUsed by:415
Symbol 411 GraphicUsed by:415
Symbol 412 GraphicUsed by:415
Symbol 413 GraphicUsed by:415
Symbol 414 GraphicUsed by:415
Symbol 415 MovieClip {Bipole_backgrounds_interfaces_light_fla.splodgyLogoBig_red_67} [Bipole_backgrounds_interfaces_light_fla.splodgyLogoBig_red_67]Uses:407 408 409 410 411 412 413 414Used by:416
Symbol 416 MovieClip {Bipole_backgrounds_interfaces_light_fla.Logo_anim_56} [Bipole_backgrounds_interfaces_light_fla.Logo_anim_56]Uses:354 355 356 357 358 359 360 361 362 363 364 365 366 367 369 371 373 375 377 379 381 389 397 406 415Used by:423
Symbol 417 GraphicUsed by:419
Symbol 418 TextUses:1Used by:419
Symbol 419 MovieClipUses:417 418Used by:422
Symbol 420 GraphicUsed by:421
Symbol 421 MovieClipUses:420Used by:422
Symbol 422 MovieClip {gfx.Menu.StartButton} [gfx.Menu.StartButton]Uses:419 421Used by:423
Symbol 423 MovieClip {gfx.mainMenu} [gfx.mainMenu]Uses:416 422
Symbol 424 GraphicUsed by:427
Symbol 425 FontUsed by:4 426
Symbol 426 TextUses:425Used by:427
Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]Uses:424 426Used by:451 453 463 467 475 476 488 491 493 494 496 498 502 504 506 511 514 515 517 518 519 523 527 534 540 547 551 552 556 557 559 564 565 567 569 571
Symbol 428 GraphicUsed by:429
Symbol 429 MovieClipUses:428Used by:430
Symbol 430 MovieClipUses:429Used by:434
Symbol 431 GraphicUsed by:432
Symbol 432 MovieClipUses:431Used by:433
Symbol 433 MovieClipUses:432Used by:434
Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]Uses:430 433Used by:451 453 463 467 475 476 491 494 496 504 506 511 514 515 517 527 540 547 552 556 559 564 567 569 571
Symbol 435 GraphicUsed by:436
Symbol 436 MovieClipUses:435Used by:437
Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]Uses:436Used by:451 463 475 491 496 514 517 527 540 547 556
Symbol 438 GraphicUsed by:439
Symbol 439 MovieClipUses:438Used by:440
Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]Uses:439Used by:451 453 463 467 475 476 488 491 493 494 496 498 502 504 506 511 514 515 517 518 519 523 527 534 540 547 551 552 556 557 559 564 565 567 569 571
Symbol 441 MovieClip {koen.mainmenubody} [koen.mainmenubody]Uses:257 280Used by:451
Symbol 442 GraphicUsed by:443
Symbol 443 MovieClip {spill.bipole.editor.skins.triangle} [spill.bipole.editor.skins.triangle]Uses:442Used by:446 452 483 491 505 511 567
Symbol 444 GraphicUsed by:445
Symbol 445 MovieClip {spill.bipole.editor.iPolyNode} [spill.bipole.editor.iPolyNode]Uses:444Used by:446 452
Symbol 446 MovieClip {koen.triangle} [koen.triangle]Uses:443 445Used by:447 505 519 525 554 555
Symbol 447 MovieClip {koen.bigwheel} [koen.bigwheel]Uses:280 257 446Used by:451 527
Symbol 448 GraphicUsed by:449
Symbol 449 MovieClipUses:448Used by:450
Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]Uses:449Used by:451 488 491 493 504 506 517 523 527 540 547 556 559
Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu]Uses:427 434 437 440 257 441 447 450
Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]Uses:445 443Used by:453 540
Symbol 453 MovieClip {thomas.level9} [thomas.level9]Uses:427 440 257 259 434 452
Symbol 454 GraphicUsed by:455
Symbol 455 MovieClipUses:454Used by:456
Symbol 456 MovieClip {gfx.BG.bg5} [gfx.BG.bg5]Uses:455
Symbol 457 GraphicUsed by:459
Symbol 458 TextUses:1Used by:459
Symbol 459 MovieClipUses:457 458Used by:460
Symbol 460 MovieClip {gfx.TutorialText1} [gfx.TutorialText1]Uses:459
Symbol 461 GraphicUsed by:463
Symbol 462 GraphicUsed by:463
Symbol 463 MovieClip {thomas.level12} [thomas.level12]Uses:461 427 462 440 434 257 284 437
Symbol 464 GraphicUsed by:465
Symbol 465 MovieClip {spill.bipole.editor.skins.circleAngledHole} [spill.bipole.editor.skins.circleAngledHole]Uses:464Used by:467 496 515 517 527 547 551 567 569 571
Symbol 466 MovieClip {thomas.thing2} [thomas.thing2]Uses:257Used by:467 514
Symbol 467 MovieClip {thomas.level14} [thomas.level14]Uses:427 440 257 465 466 434 284
Symbol 468 GraphicUsed by:469
Symbol 469 MovieClipUses:468Used by:470
Symbol 470 MovieClip {gfx.BG.bg2} [gfx.BG.bg2]Uses:469
Symbol 471 GraphicUsed by:475
Symbol 472 GraphicUsed by:473
Symbol 473 MovieClip {spill.bipole.editor.skins.boltangles} [spill.bipole.editor.skins.boltangles]Uses:472Used by:474 477 494 497 512 518 519 523 525 527 532 538 552 571
Symbol 474 MovieClip {koen.new2Block} [koen.new2Block]Uses:257 473Used by:475 518 527
Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3]Uses:427 471 440 474 257 434 437 259
Symbol 476 MovieClip {thomas.level8} [thomas.level8]Uses:427 440 434 257 259
Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart]Uses:280 257 284 473Used by:488 506
Symbol 478 GraphicUsed by:479
Symbol 479 MovieClipUses:478Used by:480
Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]Uses:479 284 257Used by:488 504 506
Symbol 481 GraphicUsed by:482
Symbol 482 MovieClip {spill.bipole.editor.skins.skull} [spill.bipole.editor.skins.skull]Uses:481Used by:483 505 555 557
Symbol 483 MovieClip {koen.deathball} [koen.deathball]Uses:280 443 482Used by:488 551
Symbol 484 GraphicUsed by:485
Symbol 485 MovieClip {spill.bipole.editor.skins.beam} [spill.bipole.editor.skins.beam]Uses:484Used by:488 494 515 518 547 552 559
Symbol 486 GraphicUsed by:487
Symbol 487 MovieClip {spill.bipole.editor.skins.circlespot} [spill.bipole.editor.skins.circlespot]Uses:486Used by:488 493 512 516 520 521 525 547 556 558 568 569
Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4]Uses:477 427 480 450 483 440 257 280 485 487
Symbol 489 GraphicUsed by:491
Symbol 490 MovieClip {koen.GGJ4door} [koen.GGJ4door]Uses:257Used by:491
Symbol 491 MovieClip {spill.bipole.levels.Tutorial4} [spill.bipole.levels.Tutorial4]Uses:489 427 443 440 434 257 437 259 490 450 284
Symbol 492 MovieClip {koen.lid} [koen.lid]Uses:257Used by:493
Symbol 493 MovieClip {spill.bipole.levels.new6} [spill.bipole.levels.new6]Uses:427 257 440 492 450 487 284
Symbol 494 MovieClip {thomas.level1} [thomas.level1]Uses:427 473 440 257 434 485
Symbol 495 GraphicUsed by:496
Symbol 496 MovieClip {thomas.level13} [thomas.level13]Uses:427 495 440 434 257 437 465
Symbol 497 MovieClip {koen.square} [koen.square]Uses:257 473Used by:498
Symbol 498 MovieClip {spill.bipole.levels.GGJ9} [spill.bipole.levels.GGJ9]Uses:427 440 497
Symbol 499 GraphicUsed by:500
Symbol 500 MovieClipUses:499Used by:501
Symbol 501 MovieClip {gfx.BG.bg6} [gfx.BG.bg6]Uses:500
Symbol 502 MovieClip {spill.bipole.levels.Tutorial1} [spill.bipole.levels.Tutorial1]Uses:427 257 284 440
Symbol 503 MovieClip {stuart.ball2} [stuart.ball2]Uses:280Used by:504
Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4]Uses:427 480 503 450 440 434
Symbol 505 MovieClip {koen.deathballcopy} [koen.deathballcopy]Uses:280 443 482 446Used by:506
Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8]Uses:434 427 477 450 480 505 440
Symbol 507 GraphicUsed by:509
Symbol 508 TextUses:1Used by:509
Symbol 509 MovieClipUses:507 508Used by:510
Symbol 510 MovieClip {gfx.TutorialText2} [gfx.TutorialText2]Uses:509
Symbol 511 MovieClip {spill.bipole.levels.Tutorial2} [spill.bipole.levels.Tutorial2]Uses:427 257 284 443 440 434
Symbol 512 MovieClip {iBodycopy} [iBodycopy]Uses:280 487 473Used by:514
Symbol 513 GraphicUsed by:514
Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3]Uses:427 512 437 513 257 466 440 434
Symbol 515 MovieClip {thomas.level3} [thomas.level3]Uses:427 440 257 434 485 465 284
Symbol 516 MovieClip {koen.new9door} [koen.new9door]Uses:257 487 280Used by:517 547
Symbol 517 MovieClip {spill.bipole.levels.new9} [spill.bipole.levels.new9]Uses:427 257 440 434 437 516 450 465
Symbol 518 MovieClip {spill.bipole.levels.new2} [spill.bipole.levels.new2]Uses:427 440 257 474 485 473
Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3]Uses:427 440 257 446 473
Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]Uses:257 280 487Used by:523
Symbol 521 MovieClip {thomas.lev4spin2} [thomas.lev4spin2]Uses:257 280 487Used by:523
Symbol 522 MovieClip {thomas.lev4ball} [thomas.lev4ball]Uses:280 284Used by:523
Symbol 523 MovieClip {thomas.level4} [thomas.level4]Uses:427 520 450 440 257 521 522 473
Symbol 524 GraphicUsed by:527
Symbol 525 MovieClip {koen.lever} [koen.lever]Uses:257 446 487 473Used by:527
Symbol 526 GraphicUsed by:527
Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10]Uses:524 257 427 447 450 440 525 434 474 437 473 526 465
Symbol 528 GraphicUsed by:530
Symbol 529 TextUses:1Used by:530
Symbol 530 MovieClipUses:528 529Used by:531
Symbol 531 MovieClip {gfx.TutorialText5} [gfx.TutorialText5]Uses:530
Symbol 532 MovieClip {koen.new1Balk} [koen.new1Balk]Uses:257 473Used by:534
Symbol 533 MovieClip {koen.new1Block} [koen.new1Block]Uses:257 259Used by:534
Symbol 534 MovieClip {spill.bipole.levels.new1} [spill.bipole.levels.new1]Uses:427 440 532 533
Symbol 535 GraphicUsed by:536
Symbol 536 MovieClip {spill.bipole.editor.skins.box} [spill.bipole.editor.skins.box]Uses:535Used by:537 555
Symbol 537 MovieClip {thomas.carbody1} [thomas.carbody1]Uses:257 280 284 536 259Used by:540
Symbol 538 MovieClip {thomas.wheel} [thomas.wheel]Uses:280 473 284Used by:540
Symbol 539 GraphicUsed by:540
Symbol 540 MovieClip {thomas.level5} [thomas.level5]Uses:427 440 257 437 434 537 538 450 452 539
Symbol 541 GraphicUsed by:543
Symbol 542 TextUses:1Used by:543
Symbol 543 MovieClipUses:541 542Used by:544
Symbol 544 MovieClip {gfx.TutorialText4} [gfx.TutorialText4]Uses:543
Symbol 545 GraphicUsed by:546
Symbol 546 MovieClip {spill.bipole.editor.skins.wheel} [spill.bipole.editor.skins.wheel]Uses:545Used by:547
Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5]Uses:427 280 440 257 437 434 516 450 465 546 487 485
Symbol 548 GraphicUsed by:549
Symbol 549 MovieClipUses:548Used by:550
Symbol 550 MovieClip {gfx.BG.bg3} [gfx.BG.bg3]Uses:549
Symbol 551 MovieClip {spill.bipole.levels.new7} [spill.bipole.levels.new7]Uses:257 427 280 483 465 284 440
Symbol 552 MovieClip {thomas.level2} [thomas.level2]Uses:427 440 434 485 257 284 473
Symbol 553 GraphicUsed by:556
Symbol 554 MovieClip {koen.bigdeathwheel} [koen.bigdeathwheel]Uses:280 257 446Used by:556
Symbol 555 MovieClip {koen.deathblock} [koen.deathblock]Uses:536 446 482 257Used by:556
Symbol 556 MovieClip {spill.bipole.levels.new5} [spill.bipole.levels.new5]Uses:553 257 554 427 450 440 437 434 555 487
Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6]Uses:427 257 440 482 280
Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]Uses:257 487Used by:559
Symbol 559 MovieClip {thomas.level7} [thomas.level7]Uses:427 440 558 257 485 450 434
Symbol 560 GraphicUsed by:562
Symbol 561 TextUses:1Used by:562
Symbol 562 MovieClipUses:560 561Used by:563
Symbol 563 MovieClip {gfx.TutorialText3} [gfx.TutorialText3]Uses:562
Symbol 564 MovieClip {thomas.level10} [thomas.level10]Uses:427 257 440 259 434
Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6]Uses:427 440 257
Symbol 566 MovieClip {koen.block} [koen.block]Uses:257 259Used by:567
Symbol 567 MovieClip {spill.bipole.levels.Tutorial5} [spill.bipole.levels.Tutorial5]Uses:427 257 440 434 566 284 443 465
Symbol 568 MovieClip {thomas.pistolwhip} [thomas.pistolwhip]Uses:257 487Used by:569
Symbol 569 MovieClip {thomas.level15} [thomas.level15]Uses:427 257 440 487 568 434 280 465
Symbol 570 MovieClip {thomas.thing} [thomas.thing]Uses:257 284Used by:571
Symbol 571 MovieClip {thomas.level11} [thomas.level11]Uses:427 440 434 257 570 473 465

Instance Names

"version"Symbol 5 MovieClip {gfx.SkinDetector} [gfx.SkinDetector] Frame 1Symbol 2 EditableText
"inputname"Symbol 5 MovieClip {gfx.SkinDetector} [gfx.SkinDetector] Frame 1Symbol 4 EditableText
"loadingbar"Symbol 45 MovieClip {gfx.PreloaderScreen_mc} [gfx.PreloaderScreen_mc] Frame 1Symbol 37 MovieClip
"loadingtext"Symbol 45 MovieClip {gfx.PreloaderScreen_mc} [gfx.PreloaderScreen_mc] Frame 1Symbol 41 EditableText
"brandingbutton"Symbol 45 MovieClip {gfx.PreloaderScreen_mc} [gfx.PreloaderScreen_mc] Frame 1Symbol 44 Button
"background"Symbol 149 MovieClip {gfx.Menu.InGamescreen} [gfx.Menu.InGamescreen] Frame 1Symbol 47 MovieClip
"lvl_select_btn"Symbol 149 MovieClip {gfx.Menu.InGamescreen} [gfx.Menu.InGamescreen] Frame 1Symbol 52 MovieClip
"highscore_btn"Symbol 149 MovieClip {gfx.Menu.InGamescreen} [gfx.Menu.InGamescreen] Frame 1Symbol 57 MovieClip
"options_btn"Symbol 149 MovieClip {gfx.Menu.InGamescreen} [gfx.Menu.InGamescreen] Frame 1Symbol 62 MovieClip
"home_btn"Symbol 149 MovieClip {gfx.Menu.InGamescreen} [gfx.Menu.InGamescreen] Frame 1Symbol 67 MovieClip
"brandingbutton"Symbol 149 MovieClip {gfx.Menu.InGamescreen} [gfx.Menu.InGamescreen] Frame 1Symbol 44 Button
"outer"Symbol 193 MovieClip {gfx.MagnetNeg} [gfx.MagnetNeg] Frame 1Symbol 184 MovieClip
"inner"Symbol 193 MovieClip {gfx.MagnetNeg} [gfx.MagnetNeg] Frame 1Symbol 192 MovieClip
"outer"Symbol 216 MovieClip {gfx.MagnetPos} [gfx.MagnetPos] Frame 1Symbol 208 MovieClip
"inner"Symbol 216 MovieClip {gfx.MagnetPos} [gfx.MagnetPos] Frame 1Symbol 215 MovieClip
"score1"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score2"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score3"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score4"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score5"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score6"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score7"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score8"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score9"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"score10"Symbol 250 MovieClip {gfx.HighScores} [gfx.HighScores] Frame 1Symbol 249 EditableText
"levelbar_txt"Symbol 254 MovieClip {Bipole_backgrounds_interfaces_light_fla.LevelbarObj_159} [Bipole_backgrounds_interfaces_light_fla.LevelbarObj_159] Frame 1Symbol 253 EditableText
"levelbar"Symbol 255 MovieClip {gfx.LevelBarAnim} [gfx.LevelBarAnim] Frame 1Symbol 254 MovieClip {Bipole_backgrounds_interfaces_light_fla.LevelbarObj_159} [Bipole_backgrounds_interfaces_light_fla.LevelbarObj_159]
"__id879_"Symbol 264 MovieClip {SoundCreditsBlock} [SoundCreditsBlock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 267 MovieClip {koen.creditblock} [koen.creditblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 271 MovieClip {tomas.creditblock} [tomas.creditblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 274 MovieClip {stuart.creditsblock} [stuart.creditsblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 277 MovieClip {box2dblock} [box2dblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 285 MovieClip {thomascreditblock} [thomascreditblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s2"Symbol 285 MovieClip {thomascreditblock} [thomascreditblock] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s2"Symbol 285 MovieClip {thomascreditblock} [thomascreditblock] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s3"Symbol 288 MovieClip {lars.creditsblock} [lars.creditsblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id365_"Symbol 288 MovieClip {lars.creditsblock} [lars.creditsblock] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id366_"Symbol 288 MovieClip {lars.creditsblock} [lars.creditsblock] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id367_"Symbol 288 MovieClip {lars.creditsblock} [lars.creditsblock] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id368_"Symbol 288 MovieClip {lars.creditsblock} [lars.creditsblock] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s3"Symbol 291 MovieClip {spil.creditsblock} [spil.creditsblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id384_"Symbol 292 MovieClip {stuart.CreditsLevel} [stuart.CreditsLevel] Frame 1Symbol 264 MovieClip {SoundCreditsBlock} [SoundCreditsBlock]
"__id385_"Symbol 292 MovieClip {stuart.CreditsLevel} [stuart.CreditsLevel] Frame 1Symbol 267 MovieClip {koen.creditblock} [koen.creditblock]
"__id386_"Symbol 292 MovieClip {stuart.CreditsLevel} [stuart.CreditsLevel] Frame 1Symbol 271 MovieClip {tomas.creditblock} [tomas.creditblock]
"__id387_"Symbol 292 MovieClip {stuart.CreditsLevel} [stuart.CreditsLevel] Frame 1Symbol 274 MovieClip {stuart.creditsblock} [stuart.creditsblock]
"__id388_"Symbol 292 MovieClip {stuart.CreditsLevel} [stuart.CreditsLevel] Frame 1Symbol 277 MovieClip {box2dblock} [box2dblock]
"hit"Symbol 301 MovieClip {Bipole_backgrounds_interfaces_light_fla.CloseButton_73} [Bipole_backgrounds_interfaces_light_fla.CloseButton_73] Frame 1Symbol 296 MovieClip
"inputname"Symbol 310 MovieClip {Bipole_backgrounds_interfaces_light_fla.textboxes_77} [Bipole_backgrounds_interfaces_light_fla.textboxes_77] Frame 1Symbol 4 EditableText
"time"Symbol 310 MovieClip {Bipole_backgrounds_interfaces_light_fla.textboxes_77} [Bipole_backgrounds_interfaces_light_fla.textboxes_77] Frame 1Symbol 309 EditableText
"closebutton"Symbol 311 MovieClip {gfx.SubmitHighscore} [gfx.SubmitHighscore] Frame 1Symbol 301 MovieClip {Bipole_backgrounds_interfaces_light_fla.CloseButton_73} [Bipole_backgrounds_interfaces_light_fla.CloseButton_73]
"submit_btn"Symbol 311 MovieClip {gfx.SubmitHighscore} [gfx.SubmitHighscore] Frame 1Symbol 308 MovieClip
"textboxes"Symbol 311 MovieClip {gfx.SubmitHighscore} [gfx.SubmitHighscore] Frame 1Symbol 310 MovieClip {Bipole_backgrounds_interfaces_light_fla.textboxes_77} [Bipole_backgrounds_interfaces_light_fla.textboxes_77]
"levelnumber"Symbol 319 MovieClip {gfx.LevelSelectionButton} [gfx.LevelSelectionButton] Frame 1Symbol 313 EditableText
"time"Symbol 319 MovieClip {gfx.LevelSelectionButton} [gfx.LevelSelectionButton] Frame 1Symbol 314 EditableText
"icon"Symbol 343 MovieClip {Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87} [Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87] Frame 1Symbol 340 MovieClip
"icon"Symbol 345 MovieClip {Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95} [Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95] Frame 1Symbol 340 MovieClip
"icon"Symbol 351 MovieClip {Bipole_backgrounds_interfaces_light_fla.Quality_btn_96} [Bipole_backgrounds_interfaces_light_fla.Quality_btn_96] Frame 1Symbol 350 MovieClip
"music"Symbol 352 MovieClip {Bipole_backgrounds_interfaces_light_fla.optionsscreen_86} [Bipole_backgrounds_interfaces_light_fla.optionsscreen_86] Frame 1Symbol 343 MovieClip {Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87} [Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87]
"sound"Symbol 352 MovieClip {Bipole_backgrounds_interfaces_light_fla.optionsscreen_86} [Bipole_backgrounds_interfaces_light_fla.optionsscreen_86] Frame 1Symbol 345 MovieClip {Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95} [Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95]
"quality"Symbol 352 MovieClip {Bipole_backgrounds_interfaces_light_fla.optionsscreen_86} [Bipole_backgrounds_interfaces_light_fla.optionsscreen_86] Frame 1Symbol 351 MovieClip {Bipole_backgrounds_interfaces_light_fla.Quality_btn_96} [Bipole_backgrounds_interfaces_light_fla.Quality_btn_96]
"closebutton"Symbol 352 MovieClip {Bipole_backgrounds_interfaces_light_fla.optionsscreen_86} [Bipole_backgrounds_interfaces_light_fla.optionsscreen_86] Frame 1Symbol 301 MovieClip {Bipole_backgrounds_interfaces_light_fla.CloseButton_73} [Bipole_backgrounds_interfaces_light_fla.CloseButton_73]
"optionsscreen"Symbol 353 MovieClip {gfx.OptionsScreen} [gfx.OptionsScreen] Frame 1Symbol 352 MovieClip {Bipole_backgrounds_interfaces_light_fla.optionsscreen_86} [Bipole_backgrounds_interfaces_light_fla.optionsscreen_86]
"hit"Symbol 422 MovieClip {gfx.Menu.StartButton} [gfx.Menu.StartButton] Frame 1Symbol 421 MovieClip
"anim"Symbol 423 MovieClip {gfx.mainMenu} [gfx.mainMenu] Frame 1Symbol 416 MovieClip {Bipole_backgrounds_interfaces_light_fla.Logo_anim_56} [Bipole_backgrounds_interfaces_light_fla.Logo_anim_56]
"start_btn"Symbol 423 MovieClip {gfx.mainMenu} [gfx.mainMenu] Frame 1Symbol 422 MovieClip {gfx.Menu.StartButton} [gfx.Menu.StartButton]
"placeholder"Symbol 430 MovieClip Frame 1Symbol 429 MovieClip
"placeholder"Symbol 433 MovieClip Frame 1Symbol 432 MovieClip
"inner"Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet] Frame 1Symbol 430 MovieClip
"outer"Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet] Frame 1Symbol 433 MovieClip
"placeholder"Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch] Frame 1Symbol 436 MovieClip
"placeholder"Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode] Frame 1Symbol 439 MovieClip
"s3"Symbol 441 MovieClip {koen.mainmenubody} [koen.mainmenubody] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s2"Symbol 441 MovieClip {koen.mainmenubody} [koen.mainmenubody] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s1"Symbol 441 MovieClip {koen.mainmenubody} [koen.mainmenubody] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s2"Symbol 447 MovieClip {koen.bigwheel} [koen.bigwheel] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id869_"Symbol 447 MovieClip {koen.bigwheel} [koen.bigwheel] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id872_"Symbol 447 MovieClip {koen.bigwheel} [koen.bigwheel] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id875_"Symbol 447 MovieClip {koen.bigwheel} [koen.bigwheel] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"placeholder"Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint] Frame 1Symbol 449 MovieClip
"magnet2"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet1"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id393_"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id394_"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"magnet4"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet3"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"gear1"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 447 MovieClip {koen.bigwheel} [koen.bigwheel]
"__id408_"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"gear2"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 447 MovieClip {koen.bigwheel} [koen.bigwheel]
"__id409_"Symbol 451 MovieClip {spill.bipole.levels.mainmenu} [spill.bipole.levels.mainmenu] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id270_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id275_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id277_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id282_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id283_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id284_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id285_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id286_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id287_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id288_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id289_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id290_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id291_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id292_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id293_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id294_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id295_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id296_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id297_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id298_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id299_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id300_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id301_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id302_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id303_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id304_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id305_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id306_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id307_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id308_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id309_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id310_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id311_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id312_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id313_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id314_"Symbol 453 MovieClip {thomas.level9} [thomas.level9] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id221_"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id223_"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"magnet5"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet3"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet2"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet6"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet4"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id231_"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"magnet1"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id232_"Symbol 463 MovieClip {thomas.level12} [thomas.level12] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 466 MovieClip {thomas.thing2} [thomas.thing2] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id163_"Symbol 467 MovieClip {thomas.level14} [thomas.level14] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id165_"Symbol 467 MovieClip {thomas.level14} [thomas.level14] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id179_"Symbol 467 MovieClip {thomas.level14} [thomas.level14] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"s3"Symbol 474 MovieClip {koen.new2Block} [koen.new2Block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 474 MovieClip {koen.new2Block} [koen.new2Block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 474 MovieClip {koen.new2Block} [koen.new2Block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id606_"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"magnet01"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id616_"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id617_"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"magnet02"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet06"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet05"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet03"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet04"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id618_"Symbol 475 MovieClip {spill.bipole.levels.new3} [spill.bipole.levels.new3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id315_"Symbol 476 MovieClip {thomas.level8} [thomas.level8] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id316_"Symbol 476 MovieClip {thomas.level8} [thomas.level8] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id317_"Symbol 476 MovieClip {thomas.level8} [thomas.level8] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id320_"Symbol 476 MovieClip {thomas.level8} [thomas.level8] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id847_"Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id848_"Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id849_"Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id850_"Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id855_"Symbol 480 MovieClip {koen.new4chain} [koen.new4chain] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s1"Symbol 483 MovieClip {koen.deathball} [koen.deathball] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"link01"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart]
"__id591_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"link02"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"link03"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"link06"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id592_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id593_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id594_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"deathball"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 483 MovieClip {koen.deathball} [koen.deathball]
"__id595_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id596_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id598_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"link04"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"link05"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id599_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id600_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id601_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id602_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id604_"Symbol 488 MovieClip {spill.bipole.levels.new4} [spill.bipole.levels.new4] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 490 MovieClip {koen.GGJ4door} [koen.GGJ4door] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id659_"Symbol 491 MovieClip {spill.bipole.levels.Tutorial4} [spill.bipole.levels.Tutorial4] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id660_"Symbol 491 MovieClip {spill.bipole.levels.Tutorial4} [spill.bipole.levels.Tutorial4] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id661_"Symbol 491 MovieClip {spill.bipole.levels.Tutorial4} [spill.bipole.levels.Tutorial4] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"magnet1"Symbol 491 MovieClip {spill.bipole.levels.Tutorial4} [spill.bipole.levels.Tutorial4] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id669_"Symbol 491 MovieClip {spill.bipole.levels.Tutorial4} [spill.bipole.levels.Tutorial4] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"door"Symbol 491 MovieClip {spill.bipole.levels.Tutorial4} [spill.bipole.levels.Tutorial4] Frame 1Symbol 490 MovieClip {koen.GGJ4door} [koen.GGJ4door]
"__id670_"Symbol 491 MovieClip {spill.bipole.levels.Tutorial4} [spill.bipole.levels.Tutorial4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id843_"Symbol 492 MovieClip {koen.lid} [koen.lid] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id844_"Symbol 492 MovieClip {koen.lid} [koen.lid] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id845_"Symbol 492 MovieClip {koen.lid} [koen.lid] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id542_"Symbol 493 MovieClip {spill.bipole.levels.new6} [spill.bipole.levels.new6] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"lid"Symbol 493 MovieClip {spill.bipole.levels.new6} [spill.bipole.levels.new6] Frame 1Symbol 492 MovieClip {koen.lid} [koen.lid]
"__id550_"Symbol 493 MovieClip {spill.bipole.levels.new6} [spill.bipole.levels.new6] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id551_"Symbol 493 MovieClip {spill.bipole.levels.new6} [spill.bipole.levels.new6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id343_"Symbol 494 MovieClip {thomas.level1} [thomas.level1] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id344_"Symbol 494 MovieClip {thomas.level1} [thomas.level1] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id346_"Symbol 494 MovieClip {thomas.level1} [thomas.level1] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id347_"Symbol 494 MovieClip {thomas.level1} [thomas.level1] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id348_"Symbol 494 MovieClip {thomas.level1} [thomas.level1] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id148_"Symbol 496 MovieClip {thomas.level13} [thomas.level13] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id149_"Symbol 496 MovieClip {thomas.level13} [thomas.level13] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id152_"Symbol 496 MovieClip {thomas.level13} [thomas.level13] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"magnet1"Symbol 496 MovieClip {thomas.level13} [thomas.level13] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id157_"Symbol 496 MovieClip {thomas.level13} [thomas.level13] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"s3"Symbol 497 MovieClip {koen.square} [koen.square] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id361_"Symbol 498 MovieClip {spill.bipole.levels.GGJ9} [spill.bipole.levels.GGJ9] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id362_"Symbol 498 MovieClip {spill.bipole.levels.GGJ9} [spill.bipole.levels.GGJ9] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id706_"Symbol 502 MovieClip {spill.bipole.levels.Tutorial1} [spill.bipole.levels.Tutorial1] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id709_"Symbol 502 MovieClip {spill.bipole.levels.Tutorial1} [spill.bipole.levels.Tutorial1] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"s1"Symbol 503 MovieClip {stuart.ball2} [stuart.ball2] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id765_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"link07"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"link02"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"deathball2"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 503 MovieClip {stuart.ball2} [stuart.ball2]
"__id766_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"link08"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id767_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id768_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id769_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id770_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"link03"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"link06"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id771_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"deathball"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 503 MovieClip {stuart.ball2} [stuart.ball2]
"__id772_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"link04"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"link05"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id773_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id774_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id775_"Symbol 504 MovieClip {stuart.ExampleLevel4} [stuart.ExampleLevel4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"s1"Symbol 505 MovieClip {koen.deathballcopy} [koen.deathballcopy] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id466_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"chain2start"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart]
"__id467_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain2link1"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id468_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain2link2"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id469_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain2link3"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id470_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain2link4"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id471_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain4start"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart]
"chain4link1"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id472_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain4link2"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id473_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain4link3"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id474_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain1start"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart]
"__id475_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain1link1"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id476_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain1link2"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id477_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain1link3"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id478_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain3start"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 477 MovieClip {koen.new4chainstart} [koen.new4chainstart]
"__id479_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain3link1"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id480_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain3link2"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id481_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain3link3"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id482_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"bigball"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 505 MovieClip {koen.deathballcopy} [koen.deathballcopy]
"chain2link5"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain2link6"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain2link7"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id483_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id484_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id485_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id486_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain3link4"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id487_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain3link5"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain3link6"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain3link7"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id488_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id489_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id490_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id491_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain4link4"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id492_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain4link5"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain4link6"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain4link7"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id493_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id494_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id495_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id496_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"chain1link4"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain1link5"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain1link6"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"chain1link7"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 480 MovieClip {koen.new4chain} [koen.new4chain]
"__id497_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id498_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id499_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id500_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id501_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id502_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id503_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id504_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id505_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id506_"Symbol 506 MovieClip {spill.bipole.levels.new8} [spill.bipole.levels.new8] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id700_"Symbol 511 MovieClip {spill.bipole.levels.Tutorial2} [spill.bipole.levels.Tutorial2] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id703_"Symbol 511 MovieClip {spill.bipole.levels.Tutorial2} [spill.bipole.levels.Tutorial2] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id705_"Symbol 511 MovieClip {spill.bipole.levels.Tutorial2} [spill.bipole.levels.Tutorial2] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"s2"Symbol 512 MovieClip {iBodycopy} [iBodycopy] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id777_"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id779_"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id780_"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id781_"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id782_"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id783_"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id784_"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id796_"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"mag6"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"mag2"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"mag1"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"mag3"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"mag4"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"mag5"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"mag7"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"mag8"Symbol 514 MovieClip {stuart.ExampleLevel3} [stuart.ExampleLevel3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id322_"Symbol 515 MovieClip {thomas.level3} [thomas.level3] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id323_"Symbol 515 MovieClip {thomas.level3} [thomas.level3] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id325_"Symbol 515 MovieClip {thomas.level3} [thomas.level3] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id326_"Symbol 515 MovieClip {thomas.level3} [thomas.level3] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id327_"Symbol 515 MovieClip {thomas.level3} [thomas.level3] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id328_"Symbol 515 MovieClip {thomas.level3} [thomas.level3] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id329_"Symbol 515 MovieClip {thomas.level3} [thomas.level3] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 516 MovieClip {koen.new9door} [koen.new9door] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id454_"Symbol 517 MovieClip {spill.bipole.levels.new9} [spill.bipole.levels.new9] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"magnet"Symbol 517 MovieClip {spill.bipole.levels.new9} [spill.bipole.levels.new9] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id459_"Symbol 517 MovieClip {spill.bipole.levels.new9} [spill.bipole.levels.new9] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id460_"Symbol 517 MovieClip {spill.bipole.levels.new9} [spill.bipole.levels.new9] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"door"Symbol 517 MovieClip {spill.bipole.levels.new9} [spill.bipole.levels.new9] Frame 1Symbol 516 MovieClip {koen.new9door} [koen.new9door]
"__id461_"Symbol 517 MovieClip {spill.bipole.levels.new9} [spill.bipole.levels.new9] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id619_"Symbol 518 MovieClip {spill.bipole.levels.new2} [spill.bipole.levels.new2] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id620_"Symbol 518 MovieClip {spill.bipole.levels.new2} [spill.bipole.levels.new2] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id622_"Symbol 518 MovieClip {spill.bipole.levels.new2} [spill.bipole.levels.new2] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id624_"Symbol 518 MovieClip {spill.bipole.levels.new2} [spill.bipole.levels.new2] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id625_"Symbol 518 MovieClip {spill.bipole.levels.new2} [spill.bipole.levels.new2] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id671_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id672_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id673_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id676_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id677_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id678_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id679_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id680_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id681_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id682_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id683_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id684_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id685_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id687_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id688_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id689_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id690_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id691_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id692_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id693_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id694_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id695_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id696_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id697_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id698_"Symbol 519 MovieClip {spill.bipole.levels.Tutorial3} [spill.bipole.levels.Tutorial3] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"s3"Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s1"Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s3"Symbol 521 MovieClip {thomas.lev4spin2} [thomas.lev4spin2] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s1"Symbol 521 MovieClip {thomas.lev4spin2} [thomas.lev4spin2] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s1"Symbol 522 MovieClip {thomas.lev4ball} [thomas.lev4ball] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id132_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"A"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]
"B"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]
"C"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]
"__id133_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id134_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id135_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"D"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]
"E"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]
"F"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]
"__id136_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id137_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id138_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id139_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"G"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 521 MovieClip {thomas.lev4spin2} [thomas.lev4spin2]
"H"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]
"I"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 520 MovieClip {thomas.lev4.spin} [thomas.lev4.spin]
"ball"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 522 MovieClip {thomas.lev4ball} [thomas.lev4ball]
"__id144_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id145_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id146_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id147_"Symbol 523 MovieClip {thomas.level4} [thomas.level4] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id841_"Symbol 525 MovieClip {koen.lever} [koen.lever] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id842_"Symbol 525 MovieClip {koen.lever} [koen.lever] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id411_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id412_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id413_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id414_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id415_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id416_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id417_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id418_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id419_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"wheel1"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 447 MovieClip {koen.bigwheel} [koen.bigwheel]
"__id420_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id423_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id424_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"lever"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 525 MovieClip {koen.lever} [koen.lever]
"__id425_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id427_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"magnet"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id429_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id430_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id431_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id432_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id433_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"magnet2"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id434_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id435_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id436_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id437_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id438_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id439_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id440_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id441_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id442_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id443_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id444_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id445_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id446_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id447_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id448_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id449_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id450_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id451_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id452_"Symbol 527 MovieClip {spill.bipole.levels.new10} [spill.bipole.levels.new10] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 532 MovieClip {koen.new1Balk} [koen.new1Balk] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 533 MovieClip {koen.new1Block} [koen.new1Block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 533 MovieClip {koen.new1Block} [koen.new1Block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 533 MovieClip {koen.new1Block} [koen.new1Block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id626_"Symbol 534 MovieClip {spill.bipole.levels.new1} [spill.bipole.levels.new1] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id627_"Symbol 534 MovieClip {spill.bipole.levels.new1} [spill.bipole.levels.new1] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"s3"Symbol 537 MovieClip {thomas.carbody1} [thomas.carbody1] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s1"Symbol 537 MovieClip {thomas.carbody1} [thomas.carbody1] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s1"Symbol 537 MovieClip {thomas.carbody1} [thomas.carbody1] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s2"Symbol 538 MovieClip {thomas.wheel} [thomas.wheel] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id0_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id2_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id3_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id4_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id6_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id7_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"__id9_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet1"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet2"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"magnet3"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"body"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 537 MovieClip {thomas.carbody1} [thomas.carbody1]
"wheel1"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 538 MovieClip {thomas.wheel} [thomas.wheel]
"wheel2"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 538 MovieClip {thomas.wheel} [thomas.wheel]
"__id10_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id11_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id12_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id13_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id14_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id15_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id16_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id17_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id18_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id19_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id20_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id21_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id22_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id23_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id24_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id25_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id26_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id27_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id28_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id29_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id30_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id31_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id32_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id33_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id34_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id35_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id36_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id37_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id38_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id39_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id40_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id41_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id42_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id43_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id44_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id45_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id46_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id47_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id48_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id49_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id50_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id51_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id52_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id53_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id54_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id55_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id56_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id57_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id58_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id59_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id60_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id61_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id62_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id63_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id64_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id65_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id66_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id67_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id68_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id69_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id70_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id71_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id72_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id73_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id74_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id75_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id76_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id77_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id78_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id79_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id80_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id81_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id82_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id83_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id84_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id85_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id86_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id87_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id88_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id89_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id90_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id91_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id92_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id93_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id94_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id95_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id96_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id97_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id98_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id99_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id100_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id101_"Symbol 540 MovieClip {thomas.level5} [thomas.level5] Frame 1Symbol 452 MovieClip {thomas.triangle} [thomas.triangle]
"__id737_"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id740_"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id744_"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id745_"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id750_"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id752_"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id755_"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"mag"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"door"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 516 MovieClip {koen.new9door} [koen.new9door]
"__id760_"Symbol 547 MovieClip {stuart.ExampleLevel5} [stuart.ExampleLevel5] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id508_"Symbol 551 MovieClip {spill.bipole.levels.new7} [spill.bipole.levels.new7] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id530_"Symbol 551 MovieClip {spill.bipole.levels.new7} [spill.bipole.levels.new7] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id330_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id331_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id333_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id334_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id335_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id336_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id339_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id340_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id341_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id342_"Symbol 552 MovieClip {thomas.level2} [thomas.level2] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s2"Symbol 554 MovieClip {koen.bigdeathwheel} [koen.bigdeathwheel] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id860_"Symbol 554 MovieClip {koen.bigdeathwheel} [koen.bigdeathwheel] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id863_"Symbol 554 MovieClip {koen.bigdeathwheel} [koen.bigdeathwheel] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id864_"Symbol 554 MovieClip {koen.bigdeathwheel} [koen.bigdeathwheel] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id865_"Symbol 554 MovieClip {koen.bigdeathwheel} [koen.bigdeathwheel] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id866_"Symbol 554 MovieClip {koen.bigdeathwheel} [koen.bigdeathwheel] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id815_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id816_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id817_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id818_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id819_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id820_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id821_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id822_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id823_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id824_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id825_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id826_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id827_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id828_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id829_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id830_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id831_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id832_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id833_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id834_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id835_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id836_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id837_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id838_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 446 MovieClip {koen.triangle} [koen.triangle]
"__id839_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id840_"Symbol 555 MovieClip {koen.deathblock} [koen.deathblock] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"gear1"Symbol 556 MovieClip {spill.bipole.levels.new5} [spill.bipole.levels.new5] Frame 1Symbol 554 MovieClip {koen.bigdeathwheel} [koen.bigdeathwheel]
"__id580_"Symbol 556 MovieClip {spill.bipole.levels.new5} [spill.bipole.levels.new5] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id581_"Symbol 556 MovieClip {spill.bipole.levels.new5} [spill.bipole.levels.new5] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id582_"Symbol 556 MovieClip {spill.bipole.levels.new5} [spill.bipole.levels.new5] Frame 1Symbol 437 MovieClip {spill.bipole.editor.iSwitch} [spill.bipole.editor.iSwitch]
"obstacle"Symbol 556 MovieClip {spill.bipole.levels.new5} [spill.bipole.levels.new5] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id631_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id632_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id633_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id634_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id635_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id638_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id639_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id641_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id642_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id643_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id644_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id645_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id646_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id647_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id648_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id649_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id650_"Symbol 557 MovieClip {spill.bipole.levels.Tutorial6} [spill.bipole.levels.Tutorial6] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s3"Symbol 558 MovieClip {thomas.spinner} [thomas.spinner] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id102_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id103_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"l"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"m"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"p"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"o"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"q"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"k"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"s"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"r"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"t"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"b"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"a"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"e"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"d"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"f"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"c"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"h"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"g"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"i"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"j"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"__id105_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id106_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id107_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id108_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id109_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id110_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id111_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id112_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id113_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id114_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id115_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id116_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id117_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id118_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id119_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id120_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id121_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id122_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id123_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id124_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id126_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id127_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id128_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id129_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"z"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"__id130_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"w"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 558 MovieClip {thomas.spinner} [thomas.spinner]
"__id131_"Symbol 559 MovieClip {thomas.level7} [thomas.level7] Frame 1Symbol 450 MovieClip {spill.bipole.editor.iRevoluteJoint} [spill.bipole.editor.iRevoluteJoint]
"__id245_"Symbol 564 MovieClip {thomas.level10} [thomas.level10] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id250_"Symbol 564 MovieClip {thomas.level10} [thomas.level10] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id259_"Symbol 564 MovieClip {thomas.level10} [thomas.level10] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id261_"Symbol 564 MovieClip {thomas.level10} [thomas.level10] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id710_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id711_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id716_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id717_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id719_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id722_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id725_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id728_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id730_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id731_"Symbol 565 MovieClip {stuart.ExampleLevel6} [stuart.ExampleLevel6] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"s3"Symbol 566 MovieClip {koen.block} [koen.block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 566 MovieClip {koen.block} [koen.block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"s3"Symbol 566 MovieClip {koen.block} [koen.block] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id651_"Symbol 567 MovieClip {spill.bipole.levels.Tutorial5} [spill.bipole.levels.Tutorial5] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id655_"Symbol 567 MovieClip {spill.bipole.levels.Tutorial5} [spill.bipole.levels.Tutorial5] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id657_"Symbol 567 MovieClip {spill.bipole.levels.Tutorial5} [spill.bipole.levels.Tutorial5] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"s3"Symbol 568 MovieClip {thomas.pistolwhip} [thomas.pistolwhip] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id181_"Symbol 569 MovieClip {thomas.level15} [thomas.level15] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id183_"Symbol 569 MovieClip {thomas.level15} [thomas.level15] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id198_"Symbol 569 MovieClip {thomas.level15} [thomas.level15] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id209_"Symbol 569 MovieClip {thomas.level15} [thomas.level15] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id217_"Symbol 569 MovieClip {thomas.level15} [thomas.level15] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id218_"Symbol 569 MovieClip {thomas.level15} [thomas.level15] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id219_"Symbol 569 MovieClip {thomas.level15} [thomas.level15] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"__id220_"Symbol 569 MovieClip {thomas.level15} [thomas.level15] Frame 1Symbol 280 MovieClip {spill.bipole.editor.iCircle} [spill.bipole.editor.iCircle]
"s3"Symbol 570 MovieClip {thomas.thing} [thomas.thing] Frame 1Symbol 257 MovieClip {spill.bipole.editor.iRectangle} [spill.bipole.editor.iRectangle]
"__id233_"Symbol 571 MovieClip {thomas.level11} [thomas.level11] Frame 1Symbol 427 MovieClip {spill.bipole.editor.iLevelDescriptor} [spill.bipole.editor.iLevelDescriptor]
"__id234_"Symbol 571 MovieClip {thomas.level11} [thomas.level11] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]
"__id236_"Symbol 571 MovieClip {thomas.level11} [thomas.level11] Frame 1Symbol 434 MovieClip {spill.bipole.editor.iMagnet} [spill.bipole.editor.iMagnet]
"__id238_"Symbol 571 MovieClip {thomas.level11} [thomas.level11] Frame 1Symbol 440 MovieClip {spill.bipole.editor.iNode} [spill.bipole.editor.iNode]

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1458 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 5 as "gfx.SkinDetector"
ExportAssets (56)Timeline Frame 1Symbol 45 as "gfx.PreloaderScreen_mc"
ExportAssets (56)Timeline Frame 2Symbol 149 as "gfx.Menu.InGamescreen"
ExportAssets (56)Timeline Frame 2Symbol 150 as "sfx.ContactSound"
ExportAssets (56)Timeline Frame 2Symbol 151 as "sfx.StartLevelSound"
ExportAssets (56)Timeline Frame 2Symbol 152 as "sfx.MagnetOnSound"
ExportAssets (56)Timeline Frame 2Symbol 153 as "sfx.ComeTogetherSound"
ExportAssets (56)Timeline Frame 2Symbol 154 as "sfx.MagnetOffSound"
ExportAssets (56)Timeline Frame 2Symbol 159 as "gfx.Menu.LevelFailed"
ExportAssets (56)Timeline Frame 2Symbol 181 as "gfx.CharNeg"
ExportAssets (56)Timeline Frame 2Symbol 193 as "gfx.MagnetNeg"
ExportAssets (56)Timeline Frame 2Symbol 194 as "sfx.PolaritySwitchSound"
ExportAssets (56)Timeline Frame 2Symbol 197 as "gfx.JoiningFlash"
ExportAssets (56)Timeline Frame 2Symbol 198 as "sfx.SwitchSound"
ExportAssets (56)Timeline Frame 2Symbol 205 as "gfx.Switch"
ExportAssets (56)Timeline Frame 2Symbol 216 as "gfx.MagnetPos"
ExportAssets (56)Timeline Frame 2Symbol 240 as "gfx.CharPos"
ExportAssets (56)Timeline Frame 2Symbol 243 as "gfx.Menu.LevelComplete"
ExportAssets (56)Timeline Frame 2Symbol 244 as "sfx.DeathSound"
ExportAssets (56)Timeline Frame 2Symbol 148 as "spill.localisation.BrandingLogo"
ExportAssets (56)Timeline Frame 2Symbol 247 as "gfx.BG.bg1"
ExportAssets (56)Timeline Frame 2Symbol 250 as "gfx.HighScores"
ExportAssets (56)Timeline Frame 2Symbol 180 as "Bipole_backgrounds_interfaces_light_fla.CharNegDeath_anim_106"
ExportAssets (56)Timeline Frame 2Symbol 171 as "Bipole_backgrounds_interfaces_light_fla.CharNegJoining_anim_105"
ExportAssets (56)Timeline Frame 2Symbol 255 as "gfx.LevelBarAnim"
ExportAssets (56)Timeline Frame 2Symbol 292 as "stuart.CreditsLevel"
ExportAssets (56)Timeline Frame 2Symbol 311 as "gfx.SubmitHighscore"
ExportAssets (56)Timeline Frame 2Symbol 319 as "gfx.LevelSelectionButton"
ExportAssets (56)Timeline Frame 2Symbol 322 as "gfx.Sitelock"
ExportAssets (56)Timeline Frame 2Symbol 325 as "gfx.BG.bg4"
ExportAssets (56)Timeline Frame 2Symbol 326 as "sfx.MenuMusic"
ExportAssets (56)Timeline Frame 2Symbol 327 as "sfx.InGameMusic"
ExportAssets (56)Timeline Frame 2Symbol 239 as "Bipole_backgrounds_interfaces_light_fla.CharPosDeath_anim_102"
ExportAssets (56)Timeline Frame 2Symbol 232 as "Bipole_backgrounds_interfaces_light_fla.CharPosJoining_anim_101"
ExportAssets (56)Timeline Frame 2Symbol 219 as "Bipole_backgrounds_interfaces_light_fla.CarPosHold_anim_99"
ExportAssets (56)Timeline Frame 2Symbol 353 as "gfx.OptionsScreen"
ExportAssets (56)Timeline Frame 2Symbol 423 as "gfx.mainMenu"
ExportAssets (56)Timeline Frame 2Symbol 451 as "spill.bipole.levels.mainmenu"
ExportAssets (56)Timeline Frame 2Symbol 280 as "spill.bipole.editor.iCircle"
ExportAssets (56)Timeline Frame 2Symbol 427 as "spill.bipole.editor.iLevelDescriptor"
ExportAssets (56)Timeline Frame 2Symbol 434 as "spill.bipole.editor.iMagnet"
ExportAssets (56)Timeline Frame 2Symbol 450 as "spill.bipole.editor.iRevoluteJoint"
ExportAssets (56)Timeline Frame 2Symbol 440 as "spill.bipole.editor.iNode"
ExportAssets (56)Timeline Frame 2Symbol 257 as "spill.bipole.editor.iRectangle"
ExportAssets (56)Timeline Frame 2Symbol 437 as "spill.bipole.editor.iSwitch"
ExportAssets (56)Timeline Frame 2Symbol 453 as "thomas.level9"
ExportAssets (56)Timeline Frame 2Symbol 456 as "gfx.BG.bg5"
ExportAssets (56)Timeline Frame 2Symbol 460 as "gfx.TutorialText1"
ExportAssets (56)Timeline Frame 2Symbol 463 as "thomas.level12"
ExportAssets (56)Timeline Frame 2Symbol 467 as "thomas.level14"
ExportAssets (56)Timeline Frame 2Symbol 470 as "gfx.BG.bg2"
ExportAssets (56)Timeline Frame 2Symbol 475 as "spill.bipole.levels.new3"
ExportAssets (56)Timeline Frame 2Symbol 476 as "thomas.level8"
ExportAssets (56)Timeline Frame 2Symbol 488 as "spill.bipole.levels.new4"
ExportAssets (56)Timeline Frame 2Symbol 491 as "spill.bipole.levels.Tutorial4"
ExportAssets (56)Timeline Frame 2Symbol 493 as "spill.bipole.levels.new6"
ExportAssets (56)Timeline Frame 2Symbol 494 as "thomas.level1"
ExportAssets (56)Timeline Frame 2Symbol 496 as "thomas.level13"
ExportAssets (56)Timeline Frame 2Symbol 498 as "spill.bipole.levels.GGJ9"
ExportAssets (56)Timeline Frame 2Symbol 501 as "gfx.BG.bg6"
ExportAssets (56)Timeline Frame 2Symbol 502 as "spill.bipole.levels.Tutorial1"
ExportAssets (56)Timeline Frame 2Symbol 504 as "stuart.ExampleLevel4"
ExportAssets (56)Timeline Frame 2Symbol 506 as "spill.bipole.levels.new8"
ExportAssets (56)Timeline Frame 2Symbol 510 as "gfx.TutorialText2"
ExportAssets (56)Timeline Frame 2Symbol 511 as "spill.bipole.levels.Tutorial2"
ExportAssets (56)Timeline Frame 2Symbol 514 as "stuart.ExampleLevel3"
ExportAssets (56)Timeline Frame 2Symbol 515 as "thomas.level3"
ExportAssets (56)Timeline Frame 2Symbol 517 as "spill.bipole.levels.new9"
ExportAssets (56)Timeline Frame 2Symbol 518 as "spill.bipole.levels.new2"
ExportAssets (56)Timeline Frame 2Symbol 519 as "spill.bipole.levels.Tutorial3"
ExportAssets (56)Timeline Frame 2Symbol 523 as "thomas.level4"
ExportAssets (56)Timeline Frame 2Symbol 527 as "spill.bipole.levels.new10"
ExportAssets (56)Timeline Frame 2Symbol 531 as "gfx.TutorialText5"
ExportAssets (56)Timeline Frame 2Symbol 534 as "spill.bipole.levels.new1"
ExportAssets (56)Timeline Frame 2Symbol 540 as "thomas.level5"
ExportAssets (56)Timeline Frame 2Symbol 544 as "gfx.TutorialText4"
ExportAssets (56)Timeline Frame 2Symbol 547 as "stuart.ExampleLevel5"
ExportAssets (56)Timeline Frame 2Symbol 550 as "gfx.BG.bg3"
ExportAssets (56)Timeline Frame 2Symbol 551 as "spill.bipole.levels.new7"
ExportAssets (56)Timeline Frame 2Symbol 552 as "thomas.level2"
ExportAssets (56)Timeline Frame 2Symbol 556 as "spill.bipole.levels.new5"
ExportAssets (56)Timeline Frame 2Symbol 557 as "spill.bipole.levels.Tutorial6"
ExportAssets (56)Timeline Frame 2Symbol 559 as "thomas.level7"
ExportAssets (56)Timeline Frame 2Symbol 563 as "gfx.TutorialText3"
ExportAssets (56)Timeline Frame 2Symbol 564 as "thomas.level10"
ExportAssets (56)Timeline Frame 2Symbol 565 as "stuart.ExampleLevel6"
ExportAssets (56)Timeline Frame 2Symbol 567 as "spill.bipole.levels.Tutorial5"
ExportAssets (56)Timeline Frame 2Symbol 569 as "thomas.level15"
ExportAssets (56)Timeline Frame 2Symbol 571 as "thomas.level11"
ExportAssets (56)Timeline Frame 2Symbol 254 as "Bipole_backgrounds_interfaces_light_fla.LevelbarObj_159"
ExportAssets (56)Timeline Frame 2Symbol 274 as "stuart.creditsblock"
ExportAssets (56)Timeline Frame 2Symbol 288 as "lars.creditsblock"
ExportAssets (56)Timeline Frame 2Symbol 271 as "tomas.creditblock"
ExportAssets (56)Timeline Frame 2Symbol 264 as "SoundCreditsBlock"
ExportAssets (56)Timeline Frame 2Symbol 267 as "koen.creditblock"
ExportAssets (56)Timeline Frame 2Symbol 259 as "spill.bipole.editor.skins.bolt"
ExportAssets (56)Timeline Frame 2Symbol 277 as "box2dblock"
ExportAssets (56)Timeline Frame 2Symbol 291 as "spil.creditsblock"
ExportAssets (56)Timeline Frame 2Symbol 285 as "thomascreditblock"
ExportAssets (56)Timeline Frame 2Symbol 301 as "Bipole_backgrounds_interfaces_light_fla.CloseButton_73"
ExportAssets (56)Timeline Frame 2Symbol 310 as "Bipole_backgrounds_interfaces_light_fla.textboxes_77"
ExportAssets (56)Timeline Frame 2Symbol 352 as "Bipole_backgrounds_interfaces_light_fla.optionsscreen_86"
ExportAssets (56)Timeline Frame 2Symbol 422 as "gfx.Menu.StartButton"
ExportAssets (56)Timeline Frame 2Symbol 416 as "Bipole_backgrounds_interfaces_light_fla.Logo_anim_56"
ExportAssets (56)Timeline Frame 2Symbol 441 as "koen.mainmenubody"
ExportAssets (56)Timeline Frame 2Symbol 447 as "koen.bigwheel"
ExportAssets (56)Timeline Frame 2Symbol 445 as "spill.bipole.editor.iPolyNode"
ExportAssets (56)Timeline Frame 2Symbol 452 as "thomas.triangle"
ExportAssets (56)Timeline Frame 2Symbol 284 as "spill.bipole.editor.skins.circlesmall"
ExportAssets (56)Timeline Frame 2Symbol 465 as "spill.bipole.editor.skins.circleAngledHole"
ExportAssets (56)Timeline Frame 2Symbol 466 as "thomas.thing2"
ExportAssets (56)Timeline Frame 2Symbol 474 as "koen.new2Block"
ExportAssets (56)Timeline Frame 2Symbol 480 as "koen.new4chain"
ExportAssets (56)Timeline Frame 2Symbol 477 as "koen.new4chainstart"
ExportAssets (56)Timeline Frame 2Symbol 485 as "spill.bipole.editor.skins.beam"
ExportAssets (56)Timeline Frame 2Symbol 483 as "koen.deathball"
ExportAssets (56)Timeline Frame 2Symbol 487 as "spill.bipole.editor.skins.circlespot"
ExportAssets (56)Timeline Frame 2Symbol 443 as "spill.bipole.editor.skins.triangle"
ExportAssets (56)Timeline Frame 2Symbol 490 as "koen.GGJ4door"
ExportAssets (56)Timeline Frame 2Symbol 492 as "koen.lid"
ExportAssets (56)Timeline Frame 2Symbol 473 as "spill.bipole.editor.skins.boltangles"
ExportAssets (56)Timeline Frame 2Symbol 497 as "koen.square"
ExportAssets (56)Timeline Frame 2Symbol 503 as "stuart.ball2"
ExportAssets (56)Timeline Frame 2Symbol 505 as "koen.deathballcopy"
ExportAssets (56)Timeline Frame 2Symbol 512 as "iBodycopy"
ExportAssets (56)Timeline Frame 2Symbol 516 as "koen.new9door"
ExportAssets (56)Timeline Frame 2Symbol 446 as "koen.triangle"
ExportAssets (56)Timeline Frame 2Symbol 521 as "thomas.lev4spin2"
ExportAssets (56)Timeline Frame 2Symbol 520 as "thomas.lev4.spin"
ExportAssets (56)Timeline Frame 2Symbol 522 as "thomas.lev4ball"
ExportAssets (56)Timeline Frame 2Symbol 525 as "koen.lever"
ExportAssets (56)Timeline Frame 2Symbol 532 as "koen.new1Balk"
ExportAssets (56)Timeline Frame 2Symbol 533 as "koen.new1Block"
ExportAssets (56)Timeline Frame 2Symbol 537 as "thomas.carbody1"
ExportAssets (56)Timeline Frame 2Symbol 538 as "thomas.wheel"
ExportAssets (56)Timeline Frame 2Symbol 546 as "spill.bipole.editor.skins.wheel"
ExportAssets (56)Timeline Frame 2Symbol 554 as "koen.bigdeathwheel"
ExportAssets (56)Timeline Frame 2Symbol 555 as "koen.deathblock"
ExportAssets (56)Timeline Frame 2Symbol 482 as "spill.bipole.editor.skins.skull"
ExportAssets (56)Timeline Frame 2Symbol 558 as "thomas.spinner"
ExportAssets (56)Timeline Frame 2Symbol 566 as "koen.block"
ExportAssets (56)Timeline Frame 2Symbol 568 as "thomas.pistolwhip"
ExportAssets (56)Timeline Frame 2Symbol 570 as "thomas.thing"
ExportAssets (56)Timeline Frame 2Symbol 351 as "Bipole_backgrounds_interfaces_light_fla.Quality_btn_96"
ExportAssets (56)Timeline Frame 2Symbol 343 as "Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87"
ExportAssets (56)Timeline Frame 2Symbol 345 as "Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95"
ExportAssets (56)Timeline Frame 2Symbol 389 as "Bipole_backgrounds_interfaces_light_fla.splodgyLogoSmall_red_64"
ExportAssets (56)Timeline Frame 2Symbol 415 as "Bipole_backgrounds_interfaces_light_fla.splodgyLogoBig_red_67"
ExportAssets (56)Timeline Frame 2Symbol 397 as "Bipole_backgrounds_interfaces_light_fla.splodgyLogoSmall_blue_65"
ExportAssets (56)Timeline Frame 2Symbol 406 as "Bipole_backgrounds_interfaces_light_fla.splodgyLogoBig_blue_66"
ExportAssets (56)Timeline Frame 2Symbol 536 as "spill.bipole.editor.skins.box"
SerialNumber (41)Timeline Frame 1

Labels

"Bipole2"Frame 1
"start"Frame 2
"_up"Symbol 52 MovieClip Frame 1
"_over"Symbol 52 MovieClip Frame 10
"_down"Symbol 52 MovieClip Frame 20
"_hit"Symbol 52 MovieClip Frame 30
"_up"Symbol 57 MovieClip Frame 1
"_over"Symbol 57 MovieClip Frame 10
"_down"Symbol 57 MovieClip Frame 20
"_hit"Symbol 57 MovieClip Frame 30
"_up"Symbol 62 MovieClip Frame 1
"_over"Symbol 62 MovieClip Frame 10
"_down"Symbol 62 MovieClip Frame 20
"_hit"Symbol 62 MovieClip Frame 30
"_up"Symbol 67 MovieClip Frame 1
"_over"Symbol 67 MovieClip Frame 10
"_down"Symbol 67 MovieClip Frame 20
"_hit"Symbol 67 MovieClip Frame 30
"www.agame.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 1
"www.game.com.cn"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 2
"www.zapjuegos.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 3
"www.spel.nl"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 4
"www.jeu.fr"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 5
"www.spielen.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 6
"www.clickjogos.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 7
"www.giocaregratis.it"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 8
"www.spel.se"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 9
"www.mygames.co.uk"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 10
"www.flashgames.ru"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 11
"www.game.co.in"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 12
"www.games.co.id"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 13
"www.minigry.pl"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 14
"www.asoyun.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 15
"www.game.com.my"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 16
"www.gamesgames.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 17
"www.spelletjes.nl"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 18
"www.jeux.fr"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 19
"www.jetztspielen.de"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 20
"www.gry.pl"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 21
"www.spela.se"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 22
"www.gioco.it"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 23
"www.juegos.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 24
"www.ojogos.com.br"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 25
"www.ourgames.ru"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 26
"www.games.co.uk"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 27
"www.oyunlar123.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 28
"www.girlsgogames.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 29
"www.girlsgogames.nl"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 30
"www.girlsgogames.fr"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 31
"www.girlsgogames.es"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 32
"www.girlsgogames.de"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 33
"www.girlsgogames.pl"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 34
"www.girlsgogames.se"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 35
"www.girlsgogames.it"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 36
"www.juegosdechicas.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 37
"www.girlsgogames.co.uk"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 38
"www.girlsgogames.com.br"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 39
"www.girlsgogames.ru"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 40
"www.girlsgogames.in"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 41
"www.girlsgogamestr.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 42
"www.ojogos.pt"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 43
"www.laro.com.ph"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 44
"www.egames.jp"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 45
"www.a10.com"Symbol 148 MovieClip {spill.localisation.BrandingLogo} [spill.localisation.BrandingLogo] Frame 46
"hold"Symbol 181 MovieClip {gfx.CharNeg} [gfx.CharNeg] Frame 1
"happy"Symbol 181 MovieClip {gfx.CharNeg} [gfx.CharNeg] Frame 2
"blink"Symbol 181 MovieClip {gfx.CharNeg} [gfx.CharNeg] Frame 3
"joining"Symbol 181 MovieClip {gfx.CharNeg} [gfx.CharNeg] Frame 4
"death"Symbol 181 MovieClip {gfx.CharNeg} [gfx.CharNeg] Frame 5
"on"Symbol 192 MovieClip Frame 1
"off"Symbol 192 MovieClip Frame 2
"off"Symbol 205 MovieClip {gfx.Switch} [gfx.Switch] Frame 1
"on"Symbol 205 MovieClip {gfx.Switch} [gfx.Switch] Frame 2
"on"Symbol 215 MovieClip Frame 1
"off"Symbol 215 MovieClip Frame 2
"hold"Symbol 240 MovieClip {gfx.CharPos} [gfx.CharPos] Frame 1
"blink"Symbol 240 MovieClip {gfx.CharPos} [gfx.CharPos] Frame 2
"joining"Symbol 240 MovieClip {gfx.CharPos} [gfx.CharPos] Frame 3
"death"Symbol 240 MovieClip {gfx.CharPos} [gfx.CharPos] Frame 4
"_up"Symbol 301 MovieClip {Bipole_backgrounds_interfaces_light_fla.CloseButton_73} [Bipole_backgrounds_interfaces_light_fla.CloseButton_73] Frame 1
"_over"Symbol 301 MovieClip {Bipole_backgrounds_interfaces_light_fla.CloseButton_73} [Bipole_backgrounds_interfaces_light_fla.CloseButton_73] Frame 10
"_down"Symbol 301 MovieClip {Bipole_backgrounds_interfaces_light_fla.CloseButton_73} [Bipole_backgrounds_interfaces_light_fla.CloseButton_73] Frame 20
"_hit"Symbol 301 MovieClip {Bipole_backgrounds_interfaces_light_fla.CloseButton_73} [Bipole_backgrounds_interfaces_light_fla.CloseButton_73] Frame 30
"_up"Symbol 308 MovieClip Frame 1
"_over"Symbol 308 MovieClip Frame 10
"_down"Symbol 308 MovieClip Frame 20
"_hit"Symbol 308 MovieClip Frame 30
"_up"Symbol 319 MovieClip {gfx.LevelSelectionButton} [gfx.LevelSelectionButton] Frame 1
"_over"Symbol 319 MovieClip {gfx.LevelSelectionButton} [gfx.LevelSelectionButton] Frame 10
"_down"Symbol 319 MovieClip {gfx.LevelSelectionButton} [gfx.LevelSelectionButton] Frame 20
"_locked"Symbol 319 MovieClip {gfx.LevelSelectionButton} [gfx.LevelSelectionButton] Frame 30
"mute"Symbol 340 MovieClip Frame 1
"low"Symbol 340 MovieClip Frame 2
"medium"Symbol 340 MovieClip Frame 3
"high"Symbol 340 MovieClip Frame 4
"_up"Symbol 343 MovieClip {Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87} [Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87] Frame 1
"_over"Symbol 343 MovieClip {Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87} [Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87] Frame 10
"_down"Symbol 343 MovieClip {Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87} [Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87] Frame 20
"_hit"Symbol 343 MovieClip {Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87} [Bipole_backgrounds_interfaces_light_fla.MusicSound_btn_87] Frame 30
"_up"Symbol 345 MovieClip {Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95} [Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95] Frame 1
"_over"Symbol 345 MovieClip {Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95} [Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95] Frame 10
"_down"Symbol 345 MovieClip {Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95} [Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95] Frame 20
"_hit"Symbol 345 MovieClip {Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95} [Bipole_backgrounds_interfaces_light_fla.QualitySound_btn_95] Frame 30
"low"Symbol 350 MovieClip Frame 1
"medium"Symbol 350 MovieClip Frame 2
"high"Symbol 350 MovieClip Frame 3
"_up"Symbol 351 MovieClip {Bipole_backgrounds_interfaces_light_fla.Quality_btn_96} [Bipole_backgrounds_interfaces_light_fla.Quality_btn_96] Frame 1
"_over"Symbol 351 MovieClip {Bipole_backgrounds_interfaces_light_fla.Quality_btn_96} [Bipole_backgrounds_interfaces_light_fla.Quality_btn_96] Frame 10
"_down"Symbol 351 MovieClip {Bipole_backgrounds_interfaces_light_fla.Quality_btn_96} [Bipole_backgrounds_interfaces_light_fla.Quality_btn_96] Frame 20
"_hit"Symbol 351 MovieClip {Bipole_backgrounds_interfaces_light_fla.Quality_btn_96} [Bipole_backgrounds_interfaces_light_fla.Quality_btn_96] Frame 30
"_up"Symbol 422 MovieClip {gfx.Menu.StartButton} [gfx.Menu.StartButton] Frame 1
"_over"Symbol 422 MovieClip {gfx.Menu.StartButton} [gfx.Menu.StartButton] Frame 15
"_down"Symbol 422 MovieClip {gfx.Menu.StartButton} [gfx.Menu.StartButton] Frame 30
"_hit"Symbol 422 MovieClip {gfx.Menu.StartButton} [gfx.Menu.StartButton] Frame 45




http://swfchan.com/13/60565/info.shtml
Created: 16/4 -2019 03:56:43 Last modified: 16/4 -2019 03:56:43 Server time: 15/05 -2024 12:52:51