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

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

my-solar-system.swf

This is the info page for
Flash #95486

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


Text
Michael Dubson
2006

1 A.U.

3224

PhET

2

3

4

number of bodies

Checkbox

Start

Start

Start

Stop

Stop

Stop

Reset

Reset

Reset

System centered

Show Traces

accurate

fast

Show Grid

Tape measure

Help

Help

Help

Distances, masses, and times are in arbitrary units.  Invent your own!

Keep masses less than a few thousand or risk strange results.

For current position and velocity, press Stop and mouse over the body.

When "System Centered" is checked,  the system's center-of-mass motion is removed.

This simulation uses a fixed-timestep velocity-Verlet algorithm to integrate trajectories:

Copyright Project PhET and the Univerisity of Colorado at Boulder.

Unlike Runge-Kutta, the Verlet algorithm conserves energy in oscillatory systems,  producing stable orbits. As with any fixed-timestep algorithm, Verlet produces unphysical results when bodies get too close and the resulting accelerations are too large. To prevent this, bodies that get too close are fused in a momentum-conserving collision.

x
n+1
=  x
n
+  v
n
Dt  +  (1/2) a
n
Dt
2
v
n+1
=  v
n
+  (1/2)(a
n+1
+ a
n
) Dt

Make your own solar system by dragging bodies and the "V" symbol (V for velocity)
or by typing into the Initial Setting table.

My Solar System orbit simulator

Back

Back

Back

v x =

323

v y =

323

y =

323

x =

323

mass =

323

ActionScript [AS1/AS2]

Frame 1
function initialize() { var _local2 = new Model(); var _local3 = new TrajectoryView(_local2); var _local4 = new InitialView(_local2); var _local6 = new ControlPanelView(_local2, _local3, _local4); _global.style.setStyle("backgroundColor", "0x0022FF"); _global.style.setStyle("color", "0xFFFFFF"); var _local5 = new edu.colorado.phet.flashcommon.FlashCommon(edu.colorado.phet.flashcommon.CommonButtons.LOCATION_UPPER_LEFT); } _level0.backupSimName = "my-solar-system"; stop(); var countryCode; var simStrings = (new edu.colorado.phet.flashcommon.SimStrings("my-solar-system-strings", countryCode)); this.onEnterFrame = function () { trace("Loading XML."); if (simStrings.isLoaded()) { this.initialize(); this.onEnterFrame = null; } }; stop();
Symbol 28 MovieClip [tapeMeasureHolder] Frame 1
function myRound(x, N) { var _local2 = Math.round(Math.log(x) / 2.303) + 1; var _local1 = Math.pow(10, _local2 - N); if (x == 0) { return(0); } return(Math.round(x / _local1) * _local1); } stop(); var me = this; var f = 1; var NMag = 0; updateReadout = function () { var _local1 = me.tapeMeasure_mc.tapeLength_mc._width; var _local2 = _local1 / f; me.tape_txt.text = Math.round(_local2); }; updateReadout(); this.tapeMeasure_mc.tapeBody_mc.onPress = function () { me.startDrag(false, 10, 10, Stage.width, Stage.height); me.updateReadout(); this.onMouseMove = function () { updateAfterEvent(); }; }; this.tapeMeasure_mc.tapeBody_mc.onRelease = function () { me.stopDrag(); this.onMouseMove = undefined; }; this.tapeMeasure_mc.tapeBody_mc.onReleaseOutside = function () { me.stopDrag(); this.onMouseMove = undefined; }; this.tapeMeasure_mc.tapeEnd_mc.onPress = function () { this.onMouseMove = function () { var _local4 = _root._xmouse - me._x; var _local3 = _root._ymouse - me._y; var _local2 = Math.sqrt((_local4 * _local4) + (_local3 * _local3)); var _local5 = (Math.atan2(_local3, _local4) * 180) / Math.PI; if (_local2 >= 0) { me._visible = false; me.tapeMeasure_mc._rotation = 0; me.tapeMeasure_mc.tapeEnd_mc._x = _local2; me.tapeMeasure_mc.tapeLength_mc._width = _local2; me.tapeMeasure_mc._rotation = _local5; me._visible = true; me.updateReadout(); } }; }; this.tapeMeasure_mc.tapeEnd_mc.onRelease = function () { this.onMouseMove = undefined; }; this.tapeMeasure_mc.tapeEnd_mc.onReleaseOutside = function () { this.onMouseMove = undefined; };
Symbol 34 MovieClip Frame 1
var buttonNumber; stop();
Symbol 39 MovieClip [numBodiesRadioGroup] Frame 1
function init(initialButton) { var _local3 = 1; while (_local3 <= this.numButtons) { this["radio" + _local3].gotoAndStop("notSelected"); this["radio" + _local3].buttonNumber = _local3; this["radio" + _local3].onPress = function () { var _local2 = 1; while (_local2 <= this._parent.numButtons) { this._parent["radio" + _local2].gotoAndStop("notSelected"); _local2++; } this.gotoAndStop("selected"); if (this.buttonNumber == 1) { thisGroup.model.setN(2); } else if (this.buttonNumber == 2) { thisGroup.model.setN(3); } else if (this.buttonNumber == 3) { thisGroup.model.setN(4); } }; _local3++; } this["radio" + initialButton].gotoAndStop("selected"); } function selectButton(nbrBodies) { var _local2 = 1; while (_local2 <= this.numButtons) { this["radio" + _local2].gotoAndStop("notSelected"); _local2++; } var _local3 = nbrBodies - 1; this["radio" + _local3].gotoAndStop("selected"); } var numButtons = 3; var model; var thisGroup = this; init(1); stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
stop();
Symbol 44 MovieClip [myCheckBox] Frame 1
function toggle() { if (checkState) { checkState = false; this.box_mc.gotoAndStop("unchecked"); } else { checkState = true; this.box_mc.gotoAndStop("checked"); } } var checkState = false; this.box_mc.onPress = function () { this._parent.toggle(); }; stop();
Symbol 58 MovieClip [bodyWithArrow] Frame 1
Symbol 59 MovieClip [fullBody] Frame 1
function updateModelPosition() { this.model.setInitPosOfBodyI(this.nLabel - 1, this.pos); } function updateModelVelocity() { this.model.setInitVelOfBodyI(this.nLabel - 1, this.vel); } function setArrow(vel) { var _local3 = vel.x; var _local2 = -vel.y; this.arrowX = _local3; this.arrowY = _local2; this.arrowLength = Math.sqrt((_local3 * _local3) + (_local2 * _local2)); this.arrowAngle = (Math.atan2(_local2, _local3) * 180) / this.pi; this.arrowBody_mc._rotation = 0; this.arrowBody_mc._width = arrowLength; this.arrowBody_mc._height = 10 + (arrowLength / 15); this.arrowBody_mc._rotation = arrowAngle; this.headHandle_mc._x = _local3; this.headHandle_mc._y = _local2; } function setBodySize(pixDia) { this.disk_mc._width = (this.disk_mc._height = pixDia); } function setBodyPosition(pos) { var _local3 = pos.x; var _local2 = pos.y; this._x = _local3; this._y = _local2; this.bodyX = _local3; this.bodyY = _local2; this.pos.x = bodyX - (stageW / 2); this.pos.y = -(bodyY - (stageH / 2)); } var thisClip = this; var model; var nLabel; var bodyX; var bodyY; var pos = new Vector(); var vel = new Vector(); var stageW = Util.STAGEW; var stageH = Util.STAGEH; var arrowLength; var arrowAngle; var arrowX; var arrowY; var pi = Math.PI; this.disk_mc.onPress = function () { this._parent.startDrag(false); this._parent.onMouseMove = function () { this.bodyX = this._x; this.bodyY = this._y; this.pos.x = bodyX - (stageW / 2); this.pos.y = -(bodyY - (stageH / 2)); this.updateModelPosition(); updateAfterEvent(); }; }; this.disk_mc.onRelease = function () { this._parent.updateModelPosition(); this._parent.stopDrag(); this._parent.onMouseMove = undefined; }; this.disk_mc.onReleaseOutside = this.disk_mc.onRelease; this.headHandle_mc.onPress = function () { this.startDrag(false); this.onMouseMove = function () { var _local3 = this._x; var _local2 = -this._y; thisClip.vel.x = _local3; thisClip.vel.y = _local2; thisClip.updateModelVelocity(); thisClip.setArrow(thisClip.vel); updateAfterEvent(); }; }; this.headHandle_mc.onRelease = function () { thisClip.updateModelVelocity(); this.stopDrag(); this.onMouseMove = undefined; }; this.headHandle_mc.onReleaseOutside = this.headHandle_mc.onRelease; stop();
Symbol 67 MovieClip Frame 1
var buttonLabel; if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 67 MovieClip Frame 2
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 67 MovieClip Frame 3
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop(); stop();
Symbol 73 MovieClip Frame 1
var buttonLabel; if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 73 MovieClip Frame 2
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 73 MovieClip Frame 3
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 78 MovieClip Frame 1
var buttonLabel; if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 78 MovieClip Frame 2
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 78 MovieClip Frame 3
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 81 MovieClip Frame 1
function toggle() { if (checkState) { checkState = false; this.box_mc.gotoAndStop("unchecked"); thisClip.model.wantCMMotionRemoved = false; thisClip.model.addCMMotion(); } else { checkState = true; this.box_mc.gotoAndStop("checked"); thisClip.model.wantCMMotionRemoved = true; thisClip.model.removeCMMotion(); } } var checkState = true; var thisClip = this; var model; this.box_mc.onPress = function () { this._parent.toggle(); }; stop();
Symbol 83 MovieClip Frame 1
function toggle() { if (checkState) { checkState = false; this.box_mc.gotoAndStop("unchecked"); thisClip.trajectoryView.clearTraces(); } else { checkState = true; this.box_mc.gotoAndStop("checked"); thisClip.trajectoryView.resetTraces(); } } var checkState = true; var trajectoryView; var thisClip = this; this.box_mc.onPress = function () { this._parent.toggle(); }; stop();
Symbol 90 MovieClip Frame 1
function setSpeed() { this.model.setSpeed(this.knobPosition); } this.xInit = this._x; this.range = this._width * 0.98; this.xMax = sliderScale_mc._width - 1; this.xMin = 0; var knobPosition; var previousPosition; var model; knob_mc.onPress = function () { this.active = true; knob_mc._x = Math.round(this._parent._xmouse / 20) * 20; knobPosition = Math.round((knob_mc._x / this.xMax) * 10); previousPositon = knobPosition; }; knob_mc.onRelease = function () { this.active = false; }; knob_mc.onReleaseOutside = function () { this.active = false; }; this.onMouseMove = function () { if (knob_mc.active) { knob_mc._x = Math.round(this._xmouse / 20) * 20; if (knob_mc._x > this.xMax) { knob_mc._x = this.xMax; } if (knob_mc._x < this.xMin) { knob_mc._x = this.xMin; } knobPosition = Math.round((knob_mc._x / this.xMax) * 10); if (knobPosition > 10) { knobPosition = 10; } if (knobPosition < 0) { knobPosition = 0; } if (knobPosition != lastPosition) { lastPosition = knobPosition; setSpeed(); } updateAfterEvent(); } };
Symbol 92 MovieClip Frame 1
function toggle() { if (checkState) { checkState = false; this.box_mc.gotoAndStop("unchecked"); thisClip.trajectoryView.setGridVisibility(false); } else { checkState = true; this.box_mc.gotoAndStop("checked"); thisClip.trajectoryView.setGridVisibility(true); } } var checkState = false; var trajectoryView; var thisClip = this; this.box_mc.gotoAndStop("unchecked"); this.box_mc.onPress = function () { this._parent.toggle(); }; stop();
Symbol 94 MovieClip Frame 1
function toggle() { if (checkState) { checkState = false; this.box_mc.gotoAndStop("unchecked"); _root.tapeMeasureHolder_mc._visible = false; } else { checkState = true; this.box_mc.gotoAndStop("checked"); _root.tapeMeasureHolder_mc._visible = true; } } var checkState = false; this.box_mc.gotoAndStop("unchecked"); var initialView; this.box_mc.onPress = function () { this._parent.toggle(); }; stop();
Symbol 100 MovieClip [helpButton] Frame 1
var buttonLabel; if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; trace("boo"); if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 100 MovieClip [helpButton] Frame 2
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 100 MovieClip [helpButton] Frame 3
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop(); stop();
Symbol 108 MovieClip [Defaults] Frame 1
#initclip 308 Object.registerClass("Defaults", mx.skins.halo.Defaults); #endinitclip
Symbol 109 MovieClip [UIObjectExtensions] Frame 1
#initclip 309 Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions); #endinitclip
Symbol 110 MovieClip [UIObject] Frame 1
#initclip 310 Object.registerClass("UIObject", mx.core.UIObject); #endinitclip stop();
Symbol 113 Button
on (keyPress "<Tab>") { this.tabHandler(); }
Symbol 114 MovieClip Frame 1
#initclip 311 Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } #endinitclip
Symbol 115 MovieClip [FocusRect] Frame 1
#initclip 312 Object.registerClass("FocusRect", mx.skins.halo.FocusRect); #endinitclip
Symbol 116 MovieClip [FocusManager] Frame 1
#initclip 313 Object.registerClass("FocusManager", mx.managers.FocusManager); #endinitclip stop();
Symbol 117 MovieClip [UIComponentExtensions] Frame 1
#initclip 314 Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions); #endinitclip
Symbol 118 MovieClip [UIComponent] Frame 1
#initclip 315 Object.registerClass("UIComponent", mx.core.UIComponent); #endinitclip stop();
Symbol 120 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 122 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 125 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 127 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 130 MovieClip [SimpleButton] Frame 1
#initclip 316 Object.registerClass("SimpleButton", mx.controls.SimpleButton); #endinitclip stop();
Symbol 133 MovieClip [Border] Frame 1
#initclip 317 Object.registerClass("Border", mx.skins.Border); #endinitclip stop();
Symbol 134 MovieClip [RectBorder] Frame 1
#initclip 318 mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass("RectBorder", mx.skins.halo.RectBorder); #endinitclip stop();
Symbol 135 MovieClip [TextInput] Frame 1
#initclip 319 Object.registerClass("TextInput", mx.controls.TextInput); #endinitclip stop();
Symbol 136 MovieClip [ComboBase] Frame 1
#initclip 320 mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype); Object.registerClass("ComboBase", mx.controls.ComboBase); #endinitclip stop();
Instance of Symbol 130 MovieClip [SimpleButton] in Symbol 136 MovieClip [ComboBase] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 135 MovieClip [TextInput] in Symbol 136 MovieClip [ComboBase] Frame 2
//component parameters onClipEvent (initialize) { editable = true; password = false; text = ""; maxChars = null; restrict = "null"; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 137 MovieClip [DataProvider] Frame 1
#initclip 321 Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider); #endinitclip stop();
Symbol 138 MovieClip [DataSelector] Frame 1
#initclip 322 Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector); #endinitclip stop();
Symbol 139 MovieClip [SelectableRow] Frame 1
#initclip 323 Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow); #endinitclip stop();
Symbol 140 MovieClip [ButtonSkin] Frame 1
#initclip 324 Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin); #endinitclip
Symbol 141 MovieClip [Button] Frame 1
#initclip 325 Object.registerClass("Button", mx.controls.Button); #endinitclip stop();
Instance of Symbol 130 MovieClip [SimpleButton] in Symbol 141 MovieClip [Button] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 142 MovieClip [CustomBorder] Frame 1
#initclip 326 Object.registerClass("CustomBorder", mx.skins.CustomBorder); mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder); #endinitclip
Symbol 154 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 156 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 167 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 169 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 176 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 197 MovieClip [BtnDownArrow] Frame 1
#initclip 327 Object.registerClass("BtnDownArrow", mx.controls.SimpleButton); #endinitclip
Symbol 198 MovieClip [BtnUpArrow] Frame 1
#initclip 328 Object.registerClass("BtnUpArrow", mx.controls.SimpleButton); #endinitclip
Symbol 200 MovieClip [HScrollBar] Frame 1
#initclip 329 Object.registerClass("HScrollBar", mx.controls.HScrollBar); #endinitclip stop();
Instance of Symbol 141 MovieClip [Button] in Symbol 200 MovieClip [HScrollBar] Frame 2
//component parameters onClipEvent (initialize) { icon = ""; label = "Button"; labelPlacement = "right"; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 130 MovieClip [SimpleButton] in Symbol 200 MovieClip [HScrollBar] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 201 MovieClip [VScrollBar] Frame 1
#initclip 330 Object.registerClass("VScrollBar", mx.controls.VScrollBar); #endinitclip stop();
Instance of Symbol 141 MovieClip [Button] in Symbol 201 MovieClip [VScrollBar] Frame 2
//component parameters onClipEvent (initialize) { icon = ""; label = "Button"; labelPlacement = "right"; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 130 MovieClip [SimpleButton] in Symbol 201 MovieClip [VScrollBar] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 202 MovieClip [View] Frame 1
#initclip 331 Object.registerClass("View", mx.core.View); #endinitclip stop();
Symbol 203 MovieClip [ScrollView] Frame 1
#initclip 332 Object.registerClass("ScrollView", mx.core.ScrollView); #endinitclip stop();
Instance of Symbol 200 MovieClip [HScrollBar] in Symbol 203 MovieClip [ScrollView] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 201 MovieClip [VScrollBar] in Symbol 203 MovieClip [ScrollView] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 204 MovieClip [ScrollSelectList] Frame 1
#initclip 333 Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList); #endinitclip stop();
Symbol 205 MovieClip [List] Frame 1
#initclip 334 Object.registerClass("List", mx.controls.List); #endinitclip stop();
Symbol 211 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 335 Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton); #endinitclip
Symbol 213 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 216 MovieClip [ComboAssets] Frame 1
#initclip 336 mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp"; mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown"; mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver"; mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled"; mx.controls.ComboBox.prototype.wrapDownArrowButton = false; mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid"; mx.controls.ComboBox.prototype.adjustFocusRect = function () { var _local2 = this.getStyle("themeColor"); if (_local2 == undefined) { _local2 = 8453965 /* 0x80FF4D */; } var _local3 = this._parent.focus_mc; _local3.setSize(this.width + 4, this.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2); _local3.move(this.x - 2, this.y - 2); }; #endinitclip
Symbol 217 MovieClip [ComboBox] Frame 1
#initclip 337 Object.registerClass("ComboBox", mx.controls.ComboBox); #endinitclip stop();
Instance of Symbol 205 MovieClip [List] in Symbol 217 MovieClip [ComboBox] Frame 2
//component parameters onClipEvent (initialize) { multipleSelection = false; rowHeight = 20; }
Instance of Symbol 217 MovieClip [ComboBox] "myComboBox" in Symbol 255 MovieClip [controlPanel] Frame 1
//component parameters onClipEvent (construct) { editable = false; labels = []; labels[0] = "Select Preset"; labels[1] = "Sun and planet"; labels[2] = "Sun, planet, moon"; labels[3] = "Sun, planet, comet"; labels[4] = "Binary star, planet"; labels[5] = "Trojan asteroids"; labels[6] = "Four star ballet"; labels[7] = "Slingshot"; labels[8] = "Double slingshot"; labels[9] = "Hyperbolics"; labels[10] = "Ellipses"; labels[11] = "Double double"; rowCount = 5; restrict = ""; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 258 MovieClip [explosion] Frame 20
stop();
Symbol 281 MovieClip Frame 1
var buttonLabel; if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 281 MovieClip Frame 2
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 281 MovieClip Frame 3
if (((buttonLabel != undefined) && (buttonLabel != "")) && (buttonLabel != "keyNotFound")) { this.label_txt.text = buttonLabel; } var mTextField = this.label_txt; var mTextFormat = mTextField.getTextFormat(); var alignment = "center"; if ((mTextField.textWidth + 2) >= mTextField._width) { var ratio = ((1.15 * mTextField.textWidth) / mTextField._width); var initialHeight = mTextField._height; mTextFormat.size = Math.round(mTextFormat.size / ratio); mTextField.setTextFormat(mTextFormat); mTextField.autoSize = alignment; var finalHeight = mTextField._height; mTextField._y = mTextField._y + ((initialHeight - finalHeight) / 2); } stop();
Symbol 297 MovieClip [__Packages.Observable] Frame 0
class Observable { var observers; function Observable () { observers = new Array(); } function addObserver(obj) { var _local2 = 0; while (_local2 < observers.length) { if (observers[_local2] == obj) { return(false); } _local2++; } observers.push(obj); return(true); } function removeObserver(obj) { var _local2 = 0; while (_local2 < observers.length) { if (observers[_local2] == obj) { observers.splice(_local2, 1); return(true); } _local2++; } return(false); } function notifyObservers() { var _local2 = 0; while (_local2 < observers.length) { observers[_local2].update(); _local2++; } } function clearAllObservers() { observers = new Array(); } }
Symbol 298 MovieClip [__Packages.Model] Frame 0
class Model extends Observable { var G, time, maxAccel, timeStep, nbrStepsPerFrame, stepTimes, nbrStepsPerFrame_arr, velCM, integrationOn, steppingForward, RKintegrationOn, resettingN, cmMotionRemoved, wantCMMotionRemoved, collisionJustOccurred, initialView, trajectoryView, bodies, N, forces, intervalID; function Model () { super(); G = 10000; time = 0; maxAccel = 0; timeStep = 0.009; nbrStepsPerFrame = 4; stepTimes = new Array(0.0005, 0.00075, 0.0011, 0.0017, 0.0025, 0.004, 0.006, 0.01, 0.015, 0.025, 0.04); nbrStepsPerFrame_arr = new Array(25, 20, 16, 12, 10, 8, 6, 5, 4, 3, 2); velCM = new Vector(0, 0); setN(2); integrationOn = false; steppingForward = false; RKintegrationOn = false; resettingN = false; cmMotionRemoved = false; wantCMMotionRemoved = true; collisionJustOccurred = false; } function registerView(view) { super.addObserver(view); } function registerInitialView(view) { initialView = view; } function registerTrajectoryView(view) { trajectoryView = view; } function setN(N) { stopIntegration(); resettingN = true; _root.controlPanel_mc.myComboBox.selectedIndex = 0; bodies = new Array(N); this.N = bodies.length; setInitialBodies(); forces = new Array(this.N); var _local4 = 0; while (_local4 < this.N) { forces[_local4] = new Array(this.N); forces[_local4][_local4] = new Vector(0, 0); _local4++; } setForcesAndAccels(); reset(); setVelCM(); super.notifyObservers(); resettingN = false; } function getN() { return(N); } function setForcesAndAccels() { var _local4 = 0; while (_local4 < N) { var _local2 = _local4 + 1; while (_local2 < N) { forces[_local4][_local2] = getForce(_local4, _local2); forces[_local2][_local4] = new Vector(-forces[_local4][_local2].x, -forces[_local4][_local2].y); _local2++; } _local4++; } var _local3 = 0; while (_local3 < N) { bodies[_local3].acc.x = 0; bodies[_local3].acc.y = 0; var _local7 = bodies[_local3].mass; var _local5 = 0; while (_local5 < N) { bodies[_local3].acc.x = bodies[_local3].acc.x + (forces[_local3][_local5].x / _local7); bodies[_local3].acc.y = bodies[_local3].acc.y + (forces[_local3][_local5].y / _local7); var _local6 = bodies[_local3].acc.getMagnitude(); if (_local6 > maxAccel) { maxAccel = _local6; if ((maxAccel * timeStep) > 150) { collisionJustOccurred = true; } } _local5++; } _local3++; } } function getForce(i, j) { var _local6 = bodies[i]; var _local5 = bodies[j]; var _local9 = (G * _local6.mass) * _local5.mass; var _local4 = _local5.pos.x - _local6.pos.x; var _local2 = _local5.pos.y - _local6.pos.y; var _local7 = (_local4 * _local4) + (_local2 * _local2); var _local10 = Math.sqrt(_local7); var _local3 = new Vector(0, 0); var _local8 = _local9 / (_local7 * _local10); _local3.x = _local8 * _local4; _local3.y = _local8 * _local2; return(_local3); } function getDistance(i, j) { var _local5 = bodies[i]; var _local4 = bodies[j]; var _local3 = _local4.pos.x - _local5.pos.x; var _local2 = _local4.pos.y - _local5.pos.y; var _local6 = (_local3 * _local3) + (_local2 * _local2); var _local7 = Math.sqrt(_local6); return(_local7); } function collideBodies(i, j) { stopIntegration(); var _local2 = bodies[i]; var _local3 = bodies[j]; var _local5 = _local2.mass + _local3.mass; var _local14 = (1 / _local5) * ((_local2.mass * _local2.vel.x) + (_local3.mass * _local3.vel.x)); var _local13 = (1 / _local5) * ((_local2.mass * _local2.vel.y) + (_local3.mass * _local3.vel.y)); var _local11 = new Vector(_local14, _local13); var _local12 = (1 / _local5) * ((_local2.mass * _local2.pos.x) + (_local3.mass * _local3.pos.x)); var _local10 = (1 / _local5) * ((_local2.mass * _local2.pos.y) + (_local3.mass * _local3.pos.y)); var _local8 = new Vector(_local12, _local10); var _local9 = Math.max(_local2.mass, _local3.mass); var _local7; var _local6; var _local4; if (_local9 == _local2.mass) { _local7 = j; _local6 = _local2; _local4 = _local3; } else { _local7 = i; _local6 = _local3; _local4 = _local2; } _local6.mass = _local5; _local6.pos = _local8; _local6.vel = _local11; _local4.setCollisionMass(0); _local4.pos.setComponents(3000, 0); _local4.vel.setComponents(10, 0); _local4.preAcc.setComponents(0, 0); setForcesAndAccels(); trajectoryView.hideBody(_local7); trajectoryView.showExplosion(_local8); maxAccel = 0; startIntegration(); } function removeBody(i) { bodies.splice(i, 1); N = bodies.length; } function getIndicesOfClosestBodies() { var _local6 = 10000; var _local5 = new Array(3); var _local3 = 0; while (_local3 < N) { var _local2 = _local3 + 1; while (_local2 < N) { var _local4 = getDistance(_local3, _local2); if (_local4 < _local6) { _local6 = _local4; _local5[0] = _local3; _local5[1] = _local2; _local5[2] = _local6; } _local2++; } _local3++; } return(_local5); } function setVelCM() { var _local3 = 0; var _local5 = 0; var _local4 = 0; var _local2 = 0; while (_local2 < N) { _local3 = _local3 + bodies[_local2].mass; _local5 = _local5 + (bodies[_local2].mass * bodies[_local2].initVel.x); _local4 = _local4 + (bodies[_local2].mass * bodies[_local2].initVel.y); _local2++; } velCM.x = _local5 / _local3; velCM.y = _local4 / _local3; } function startIntegration() { if (!integrationOn) { integrationOn = true; initialView.setTextFieldType("dynamic"); makeFirstStep(); intervalID = setInterval(this, "stepForwardNTimes", 10, nbrStepsPerFrame); } } function stopIntegration() { if (integrationOn && (!steppingForward)) { clearInterval(intervalID); integrationOn = false; } } function reset() { clearInterval(intervalID); var _local3 = 0; while (_local3 < N) { bodies[_local3].mass = bodies[_local3].initMass; bodies[_local3].pos = bodies[_local3].initPos.duplicateVector(); bodies[_local3].vel = bodies[_local3].initVel.duplicateVector(); _local3++; } trajectoryView.showAllBodies(); maxAccel = 0; time = 0; initialView.setElapsedTime(time); cmMotionRemoved = false; integrationOn = false; initialView.setTextFieldType("input"); steppingForward = false; super.notifyObservers(); } function setSpeed(speedSetting) { switch (speedSetting) { case 0 : shiftSpeed(0); break; case 1 : shiftSpeed(1); break; case 2 : shiftSpeed(2); break; case 3 : shiftSpeed(3); break; case 4 : shiftSpeed(4); break; case 5 : shiftSpeed(5); break; case 6 : shiftSpeed(6); break; case 7 : shiftSpeed(7); break; case 8 : shiftSpeed(8); break; case 9 : shiftSpeed(9); break; case 10 : shiftSpeed(10); } } function shiftSpeed(index) { if (integrationOn) { stopIntegration(); maxAccel = 0; timeStep = stepTimes[index]; nbrStepsPerFrame = nbrStepsPerFrame_arr[index]; startIntegration(); } else { maxAccel = 0; timeStep = stepTimes[index]; nbrStepsPerFrame = nbrStepsPerFrame_arr[index]; } if (index == 10) { _quality = "LOW"; } else { _quality = "HIGH"; } } function makeFirstStep() { setForcesAndAccels(); var _local2 = timeStep; time = time + _local2; if (wantCMMotionRemoved && (!cmMotionRemoved)) { removeCMMotion(); } } function stepForward() { steppingForward = true; var _local4 = timeStep; var _local3 = 0; while (_local3 < N) { var _local2 = bodies[_local3].pos; var _local8 = _local2.duplicateVector(); var _local5 = bodies[_local3].prePos; var _local7 = bodies[_local3].vel; var _local6 = bodies[_local3].acc; time = time + _local4; _local2.x = ((2 * _local2.x) - _local5.x) + ((_local6.x * _local4) * _local4); _local2.y = ((2 * _local2.y) - _local5.y) + ((_local6.y * _local4) * _local4); _local7.x = (_local2.x - _local5.x) / (2 * _local4); _local7.y = (_local2.y - _local5.y) / (2 * _local4); bodies[_local3].prePos = _local8; _local3++; } setForcesAndAccels(); steppingForward = false; } function stepForwardVelocityVerlet() { steppingForward = true; var _local3 = timeStep; time = time + _local3; var _local4 = 0; while (_local4 < N) { var _local5 = bodies[_local4].pos; var _local6 = bodies[_local4].vel; var _local7 = bodies[_local4].acc; var _local9 = _local7.duplicateVector(); _local5.x = (_local5.x + (_local6.x * _local3)) + (((0.5 * _local7.x) * _local3) * _local3); _local5.y = (_local5.y + (_local6.y * _local3)) + (((0.5 * _local7.y) * _local3) * _local3); bodies[_local4].preAcc = _local9; _local4++; } setForcesAndAccels(); _local4 = 0; while (_local4 < N) { var _local6 = bodies[_local4].vel; var _local7 = bodies[_local4].acc; var _local8 = bodies[_local4].preAcc; _local6.x = _local6.x + ((0.5 * (_local7.x + _local8.x)) * _local3); _local6.y = _local6.y + ((0.5 * (_local7.y + _local8.y)) * _local3); _local4++; } steppingForward = false; if (collisionJustOccurred) { var _local10 = getIndicesOfClosestBodies(); collideBodies(_local10[0], _local10[1]); super.notifyObservers(); collisionJustOccurred = false; } } function stepForwardRK() { var _local3 = timeStep; var _local4 = N; var _local9 = new Array(_local4); var _local6 = new Array(_local4); var _local8 = new Array(_local4); var _local5 = new Array(_local4); var _local7 = new Array(_local4); var _local10 = new Array(_local4); var _local11 = new Array(_local4); var _local12 = new Array(_local4); var _local2 = 0; while (_local2 < _local4) { bodies[_local2].posCopy = bodies[_local2].pos.duplicateVector(); _local9[_local2] = bodies[_local2].acc.multiply(_local3); _local6[_local2] = bodies[_local2].vel.multiply(_local3); bodies[_local2].pos = bodies[_local2].posCopy.addTo(_local6[_local2].multiply(0.5)); _local2++; } setForcesAndAccels(); _local2 = 0; while (_local2 < _local4) { _local8[_local2] = bodies[_local2].acc.multiply(_local3); _local5[_local2] = bodies[_local2].vel.addTo(_local9[_local2].multiply(0.5)).multiply(_local3); bodies[_local2].pos = bodies[_local2].posCopy.addTo(_local5[_local2].multiply(0.5)); _local2++; } setForcesAndAccels(); _local2 = 0; while (_local2 < _local4) { _local7[_local2] = bodies[_local2].acc.multiply(_local3); _local10[_local2] = bodies[_local2].vel.addTo(_local8[_local2].multiply(0.5)).multiply(_local3); bodies[_local2].pos = bodies[_local2].posCopy.addTo(_local10[_local2]); _local2++; } setForcesAndAccels(); _local2 = 0; while (_local2 < _local4) { _local11[_local2] = bodies[_local2].acc.multiply(_local3); _local12[_local2] = bodies[_local2].vel.addTo(_local7[_local2]).multiply(_local3); _local2++; } _local2 = 0; while (_local2 < _local4) { bodies[_local2].pos = bodies[_local2].posCopy.addTo(_local6[_local2].multiply(0.166666666666667)); bodies[_local2].pos = bodies[_local2].pos.addTo(_local5[_local2].multiply(0.333333333333333)); bodies[_local2].pos = bodies[_local2].pos.addTo(_local10[_local2].multiply(0.333333333333333)); bodies[_local2].pos = bodies[_local2].pos.addTo(_local12[_local2].multiply(0.166666666666667)); bodies[_local2].vel = bodies[_local2].vel.addTo(_local9[_local2].multiply(0.166666666666667)); bodies[_local2].vel = bodies[_local2].vel.addTo(_local8[_local2].multiply(0.333333333333333)); bodies[_local2].vel = bodies[_local2].vel.addTo(_local7[_local2].multiply(0.333333333333333)); bodies[_local2].vel = bodies[_local2].vel.addTo(_local11[_local2].multiply(0.166666666666667)); _local2++; } setForcesAndAccels(); } function stepForwardNTimes(Nsteps) { var _local3 = 1; while (_local3 <= Nsteps) { stepForwardVelocityVerlet(); _local3++; } initialView.setElapsedTime(time); super.notifyObservers(); updateAfterEvent(); } function removeCMMotion() { if (!cmMotionRemoved) { var _local3 = 0; while (_local3 < N) { var _local2 = bodies[_local3].vel; _local2.x = _local2.x - velCM.x; _local2.y = _local2.y - velCM.y; _local3++; } cmMotionRemoved = true; } } function addCMMotion() { if (cmMotionRemoved) { var _local3 = 0; while (_local3 < N) { var _local2 = bodies[_local3].vel; _local2.x = _local2.x + velCM.x; _local2.y = _local2.y + velCM.y; _local3++; } cmMotionRemoved = false; } } function getTotalEnergy() { var _local15 = new Array(3); var _local16 = 0; var _local14 = 0; var _local12 = 0; var _local11; var _local10; var _local13; var _local2; var _local4; var _local7 = 0; while (_local7 < N) { _local2 = bodies[_local7]; _local11 = _local2.vel.x; _local10 = _local2.vel.y; _local13 = (_local11 * _local11) + (_local10 * _local10); _local14 = _local14 + ((0.5 * _local2.mass) * _local13); var _local3 = _local7 + 1; while (_local3 < N) { _local4 = bodies[_local3]; var _local8 = (G * _local2.mass) * _local4.mass; var _local6 = _local4.pos.x - _local2.pos.x; var _local5 = _local4.pos.y - _local2.pos.y; var _local9 = Math.sqrt((_local6 * _local6) + (_local5 * _local5)); _local12 = _local12 + ((-_local8) / _local9); _local3++; } _local7++; } _local16 = _local14 + _local12; _local15 = [_local14, _local12, _local16]; return(_local15); } function traceCurrentVelCM() { var _local6 = new Vector(0, 0); var _local3 = 0; var _local5 = 0; var _local4 = 0; var _local2 = 0; while (_local2 < N) { _local3 = _local3 + bodies[_local2].mass; _local5 = _local5 + (bodies[_local2].mass * bodies[_local2].vel.x); _local4 = _local4 + (bodies[_local2].mass * bodies[_local2].vel.y); _local2++; } _local6.x = velCM.x + (_local5 / _local3); _local6.y = velCM.y + (_local4 / _local3); } function getInitPosOfBodyI(i) { return(bodies[i].initPos); } function setInitPosOfBodyI(i, pos) { _root.controlPanel_mc.myComboBox.selectedIndex = 0; bodies[i].initPos = pos; bodies[i].pos = pos.duplicateVector(); super.notifyObservers(); } function getInitVelOfBodyI(i) { return(bodies[i].initVel); } function setInitVelOfBodyI(i, vel) { _root.controlPanel_mc.myComboBox.selectedIndex = 0; bodies[i].initVel = vel; bodies[i].vel = vel.duplicateVector(); setVelCM(); super.notifyObservers(); } function getPosOfBodyI(i) { return(bodies[i].pos); } function getVelOfBodyI(i) { return(bodies[i].vel); } function getMassOfBodyI(i) { return(bodies[i].mass); } function setMassOfBodyI(i, mass) { _root.controlPanel_mc.myComboBox.selectedIndex = 0; if (cmMotionRemoved) { addCMMotion(); bodies[i].setMass(mass); setVelCM(); removeCMMotion(); } else { bodies[i].setMass(mass); setVelCM(); } super.notifyObservers(); } function setInitialBodies() { var _local7 = new Body(200, new Vector(0, 0), new Vector(0, -1)); var _local6 = new Body(10, new Vector(142, 0), new Vector(0, 140)); var _local5 = new Body(0, new Vector(166, 0), new Vector(0, 74)); var _local4 = new Body(0, new Vector(-84, 0), new Vector(0, -133)); var _local3 = [_local7, _local6, _local5, _local4]; var _local2 = 0; while (_local2 < N) { bodies[_local2] = _local3[_local2]; _local2++; } } function setInitialConfig(configNbr) { stopIntegration(); resettingN = true; var _local5; var _local4; var _local6; var _local8; var _local7; if (configNbr == 1) { _local5 = new Body(200, new Vector(0, 0), new Vector(0, 0)); _local4 = new Body(10, new Vector(150, 0), new Vector(0, 120)); _local7 = new Array(_local5, _local4); } else if (configNbr == 2) { _local5 = new Body(200, new Vector(0, 0), new Vector(0, 0)); _local4 = new Body(10, new Vector(160, 0), new Vector(0, 120)); _local6 = new Body(0, new Vector(140, 0), new Vector(0, 53)); _local7 = new Array(_local5, _local4, _local6); } else if (configNbr == 3) { _local5 = new Body(200, new Vector(0, 0), new Vector(0, 0)); _local4 = new Body(1, new Vector(150, 0), new Vector(0, 120)); _local6 = new Body(0, new Vector(-220, 130), new Vector(-15, -28)); _local7 = new Array(_local5, _local4, _local6); } else if (configNbr == 4) { _local5 = new Body(150, new Vector(-100, 0), new Vector(0, -60)); _local4 = new Body(120, new Vector(100, 0), new Vector(0, 50)); _local6 = new Body(0, new Vector(-50, 0), new Vector(0, 120)); _local7 = new Array(_local5, _local4, _local6); } else if (configNbr == 5) { _local5 = new Body(200, new Vector(0, 0), new Vector(0, 0)); _local4 = new Body(5, new Vector(150, 0), new Vector(0, 119)); _local6 = new Body(0, new Vector(75, -130), new Vector(103, 60)); _local8 = new Body(0, new Vector(75, 130), new Vector(-103, 60)); _local7 = new Array(_local5, _local4, _local6, _local8); } else if (configNbr == 6) { _local5 = new Body(120, new Vector(-100, 100), new Vector(-50, -50)); _local4 = new Body(120, new Vector(100, 100), new Vector(-50, 50)); _local6 = new Body(120, new Vector(100, -100), new Vector(50, 50)); _local8 = new Body(120, new Vector(-100, -100), new Vector(50, -50)); _local7 = new Array(_local5, _local4, _local6, _local8); } else if (configNbr == 7) { _local5 = new Body(200, new Vector(1, 0), new Vector(0, -1)); _local4 = new Body(10, new Vector(131, 55), new Vector(-55, 115)); _local6 = new Body(0, new Vector(-6, -128), new Vector(83, 0)); _local7 = new Array(_local5, _local4, _local6); } else if (configNbr == 8) { _local5 = new Body(200, new Vector(0, 0), new Vector(0, -1)); _local4 = new Body(5, new Vector(0, -112), new Vector(134, 0)); _local6 = new Body(4, new Vector(186, -5), new Vector(1, 111)); _local8 = new Body(0, new Vector(70, 72), new Vector(-47, 63)); _local7 = new Array(_local5, _local4, _local6, _local8); } else if (configNbr == 9) { _local5 = new Body(250, new Vector(-50, -25), new Vector(0, 0)); _local4 = new Body(0, new Vector(300, 50), new Vector(-120, 0)); _local6 = new Body(0, new Vector(300, 120), new Vector(-120, 0)); _local8 = new Body(0, new Vector(300, 190), new Vector(-120, 0)); _local7 = new Array(_local5, _local4, _local6, _local8); } else if (configNbr == 10) { _local5 = new Body(250, new Vector(-200, 0), new Vector(0, 0)); _local4 = new Body(0, new Vector(-115, 0), new Vector(0, 151)); _local6 = new Body(0, new Vector(50, 0), new Vector(0, 60)); _local8 = new Body(0, new Vector(220, 0), new Vector(0, 37)); _local7 = new Array(_local5, _local4, _local6, _local8); } else if (configNbr == 11) { _local5 = new Body(60, new Vector(-115, -3), new Vector(0, -154)); _local4 = new Body(70, new Vector(102, 0), new Vector(1, 150)); _local6 = new Body(55, new Vector(-77, -2), new Vector(-1, 42)); _local8 = new Body(62, new Vector(135, 0), new Vector(-1, -52)); _local7 = new Array(_local5, _local4, _local6, _local8); } N = _local7.length; bodies = new Array(N); var _local3 = 0; while (_local3 < N) { bodies[_local3] = _local7[_local3]; _local3++; } forces = new Array(N); _local3 = 0; while (_local3 < N) { forces[_local3] = new Array(N); forces[_local3][_local3] = new Vector(0, 0); _local3++; } setForcesAndAccels(); reset(); setVelCM(); super.notifyObservers(); resettingN = false; } function getRand(size) { return(((Math.random() * 2) * size) - size); } function showPositions() { var _local2 = 0; while (_local2 < N) { trace((((("body" + (_local2 + 1)) + " x:") + bodies[_local2].pos.x) + " y:") + bodies[_local2].pos.y); _local2++; } } function showPosArray() { var _local3 = 0; while (_local3 < N) { var _local2 = 0; while (_local2 < bodies[_local3].acc_arr.length) { trace((((("body" + (_local3 + 1)) + " pos_arr[") + _local2) + "].x = ") + bodies[_local3].pos_arr[_local2].x); _local2++; } _local3++; } } }
Symbol 299 MovieClip [__Packages.Vector] Frame 0
class Vector { var x, y; function Vector (x, y) { this.x = x; this.y = y; } function setComponents(x, y) { this.x = x; this.y = y; } function duplicateVector() { var _local2 = new Vector(x, y); return(_local2); } function getMagnitude() { var _local2 = Math.sqrt((x * x) + (y * y)); return(_local2); } function addTo(vector) { var _local2 = new Vector(x + vector.x, y + vector.y); return(_local2); } function multiply(factor) { var _local2 = new Vector(x * factor, y * factor); return(_local2); } }
Symbol 300 MovieClip [__Packages.Body] Frame 0
class Body { var initMass, initPos, initVel, mass, pos, vel, prePos, acc, preAcc, pos_arr, acc_arr; function Body (initMass, initPos, initVel) { this.initMass = Math.max(initMass, 0.001); this.initPos = initPos; this.initVel = initVel; mass = this.initMass; pos = this.initPos.duplicateVector(); vel = this.initVel.duplicateVector(); prePos = new Vector(0, 0); acc = new Vector(0, 0); preAcc = new Vector(0, 0); pos_arr = new Array(6); acc_arr = new Array(6); } function setMass(mass) { initMass = Math.max(mass, 1E-6); this.mass = initMass; } function setPos(pos) { this.pos = pos.duplicateVector(); initPos = pos.duplicateVector(); } function setVel(vel) { this.vel = vel.duplicateVector(); initVel = vel.duplicateVector(); } function setMassPosVel(mass, pos, vel) { setMass(mass); setPos(pos); setVel(vel); } function setCollisionMass(mass) { this.mass = Math.max(mass, 1E-6); } function duplicateBody() { var _local2 = new Body(mass, initPos, initVel); return(_local2); } }
Symbol 301 MovieClip [__Packages.Util] Frame 0
class Util { function Util () { } static function setXYPosition(myClip, xPos, yPos) { myClip._x = xPos; myClip._y = yPos; } static function myRandNbr(max) { var _local1 = Math.floor((max + 1) * Math.random()); return(_local1); } static function makeParentClipDraggable(myClip, updateOnMove, xMin, xMax, yMin, yMax) { myClip.onPress = function () { this._parent.startDrag(false, xMin, yMin, xMax, yMax); this.onMouseMove = function () { updateOnMove(); updateAfterEvent(); }; }; myClip.onRelease = function () { this._parent.stopDrag(); this.onMouseMove = undefined; }; myClip.onReleaseOutside = myClip.onRelease; } static function makeClipDraggable(myClip, updateOnMove, xMin, xMax, yMin, yMax) { myClip.onPress = function () { this.startDrag(false, xMin, yMin, xMax, yMax); this.onMouseMove = function () { updateOnMove(); updateAfterEvent(); }; }; myClip.onRelease = function () { this.stopDrag(); this.onMouseMove = undefined; }; myClip.onReleaseOutside = myClip.onRelease; } static function getNextDepth() { DEPTH = DEPTH + 1; return(DEPTH); } static var STAGEH = Stage.height; static var STAGEW = Stage.width; static var ORIGINSCREENX = 0.5 * Stage.width; static var ORIGINSCREENY = 0.4 * Stage.height; static var DEPTH = 0; static var TRACECOLORS = new Array(16777028, 16729343, 4521983, 4521796); static var BODYCOLORS = new Array(16776960, 16711935, 65535, 65280); }
Symbol 302 MovieClip [__Packages.TrajectoryView] Frame 0
class TrajectoryView { var model, stageW, stageH, originScreenX, originScreenY, lineWidth, viewHolder_mc, tracesOn, explosion_mc, isVisible; function TrajectoryView (model) { this.model = model; this.model.registerView(this); this.model.registerTrajectoryView(this); stageW = Util.STAGEW; stageH = Util.STAGEH; originScreenX = Util.ORIGINSCREENX; originScreenY = Util.ORIGINSCREENY; lineWidth = 2; _root.createEmptyMovieClip("trajectoryHolder_mc", Util.getNextDepth()); drawBackgroundGrid(); setGridVisibility(false); viewHolder_mc = _root.trajectoryHolder_mc; setVisibility(true); tracesOn = true; initialize(); } function initialize() { clearBodies(); var thisModel = model; var _local16 = this; var _local4 = 1; while (_local4 <= model.getN()) { _root.trajectoryHolder_mc.createEmptyMovieClip("orbit" + _local4, _root.trajectoryHolder_mc.getNextHighestDepth()); _root.trajectoryHolder_mc.attachMovie("currentBody", "body" + _local4, _root.trajectoryHolder_mc.getNextHighestDepth()); var _local3 = _root.trajectoryHolder_mc["body" + _local4]; var _local7 = _root.trajectoryHolder_mc["orbit" + _local4]; var _local6 = _local4 - 1; var _local14 = model.getMassOfBodyI(_local6); setMassOfClip(_local3, _local14); var _local9 = new Color(_local3.disk_mc); _local9.setRGB(Util.BODYCOLORS[_local6]); var _local8 = model.getInitPosOfBodyI(_local6); _local3._x = _local8.x + originScreenX; _local3._y = (-_local8.y) + originScreenY; _local7.clear(); _local7.lineStyle(lineWidth, Util.TRACECOLORS[_local6], 100); _local7.moveTo(_local3._x, _local3._y); _local3.onRollOver = function () { var _local4 = Number(this._name.charAt(this._name.length - 1)); var _local9 = thisModel.bodies[_local4 - 1].mass; var _local6 = thisModel.bodies[_local4 - 1].pos.x; var _local5 = thisModel.bodies[_local4 - 1].pos.y; var _local8 = thisModel.bodies[_local4 - 1].vel.x; var _local7 = thisModel.bodies[_local4 - 1].vel.y; var _local3 = _root.trajectoryHolder_mc.specWindow_mc; _local3.mass_txt.text = _local9; _local3.x_txt.text = Math.round(10 * _local6) / 10; _local3.y_txt.text = Math.round(10 * _local5) / 10; _local3.vx_txt.text = Math.round(10 * _local8) / 10; _local3.vy_txt.text = Math.round(10 * _local7) / 10; _local3._visible = true; }; _local3.onRollOut = function () { var _local2 = _root.trajectoryHolder_mc.specWindow_mc; _local2._visible = false; }; _local4++; } _root.trajectoryHolder_mc.attachMovie("explosion", "explosion_mc", _root.trajectoryHolder_mc.getNextHighestDepth()); _root.trajectoryHolder_mc.attachMovie("specWindow", "specWindow_mc", _root.trajectoryHolder_mc.getNextHighestDepth()); var _local15 = _root.trajectoryHolder_mc.specWindow_mc; _local15._visible = false; _local15._x = 0.7 * stageW; _local15._y = 0.98 * stageH; explosion_mc = _root.trajectoryHolder_mc.explosion_mc; explosion_mc.gotoAndStop("finish"); } function drawBackgroundGrid() { _root.createEmptyMovieClip("grid_mc", Util.getNextDepth()); var _local6 = _root.grid_mc; var _local9 = 8; var _local8 = 6; var _local3 = stageW / _local9; var _local11 = 4; var _local12 = _local3 / _local11; var _local13 = Util.ORIGINSCREENX; var _local7 = Util.ORIGINSCREENY; var _local10 = 5592456 /* 0x555588 */; _local6.lineStyle(1, _local10); var _local4 = ((-_local8) / 2) - 1; while (_local4 <= ((_local8 / 2) + 1)) { _local6.moveTo(-_local3, _local7 + (_local4 * _local3)); _local6.lineTo(stageW + _local3, _local7 + (_local4 * _local3)); _local4++; } var _local5 = -1; while (_local5 <= (_local9 + 1)) { _local6.moveTo(_local5 * _local3, -1.6 * _local3); _local6.lineTo(_local5 * _local3, stageH + (1.6 * _local3)); _local5++; } } function setGridVisibility(trueOrFalse) { _root.grid_mc._visible = trueOrFalse; } function setVisibility(trueOrFalse) { viewHolder_mc._visible = trueOrFalse; isVisible = trueOrFalse; } function clearBodies() { for (var _local2 in _root.trajectoryHolder_mc) { _root.trajectoryHolder_mc[_local2].removeMovieClip(); } } function clearTraces() { tracesOn = false; var _local2 = 1; while (_local2 <= model.getN()) { viewHolder_mc["orbit" + _local2].clear(); _local2++; } } function resetTraces() { tracesOn = true; var _local2 = 1; while (_local2 <= model.getN()) { viewHolder_mc["orbit" + _local2].clear(); viewHolder_mc["orbit" + _local2].lineStyle(lineWidth, Util.TRACECOLORS[_local2 - 1], 100); var _local3 = model.getPosOfBodyI(_local2 - 1); var _local5 = _local3.x + originScreenX; var _local4 = (-_local3.y) + originScreenY; viewHolder_mc["orbit" + _local2].moveTo(_local5, _local4); _local2++; } } function setMassOfClip(clip, mass) { clip._width = (clip._height = (2.5 * Math.pow(mass, 0.333333333333333)) + 6); } function hideBody(indexToHide) { var _local2 = indexToHide + 1; _root.trajectoryHolder_mc["body" + _local2]._visible = false; _root.trajectoryHolder_mc["orbit" + _local2].moveTo(10000, 0); } function showExplosion(position) { explosion_mc._x = position.x + originScreenX; explosion_mc._y = (-position.y) + originScreenY; explosion_mc.gotoAndPlay("start"); } function showAllBodies() { var _local3 = 1; while (_local3 <= model.getN()) { _root.trajectoryHolder_mc["body" + _local3]._visible = true; _root.trajectoryHolder_mc["orbit" + _local3]._visible = true; _local3++; } } function update() { if (model.resettingN) { initialize(); } var _local4 = 1; while (_local4 <= model.getN()) { var _local3 = _root.trajectoryHolder_mc["body" + _local4]; if ((!model.integrationOn) || (model.collisionJustOccurred)) { var _local7 = model.getMassOfBodyI(_local4 - 1); setMassOfClip(_local3, _local7); } var _local6 = model.getPosOfBodyI(_local4 - 1); _local3._x = _local6.x + originScreenX; _local3._y = (-_local6.y) + originScreenY; var _local5 = _root.trajectoryHolder_mc["orbit" + _local4]; if (tracesOn && (model.integrationOn)) { _local5.lineTo(_local3._x, _local3._y); } else { _local5.clear(); _local5.lineStyle(lineWidth, Util.TRACECOLORS[_local4 - 1], 100); _local5.moveTo(_local3._x, _local3._y); } _local4++; } } }
Symbol 303 MovieClip [__Packages.InitialView] Frame 0
class InitialView { var model, stageW, stageH, maxNbrBodies, myFieldListener, updateNeeded, bodyClips, myTextFormat; function InitialView (model) { this.model = model; this.model.registerView(this); this.model.registerInitialView(this); stageW = Util.STAGEW; stageH = Util.STAGEH; maxNbrBodies = 4; myFieldListener = new Object(); myFieldListener.model = model; myFieldListener.onChanged = textChanged; setTextFormat(); initialize(); } function initialize() { updateNeeded = true; _root.attachMovie("phetLogo", "phetLogo_mc", Util.getNextDepth()); var logoW = _root.phetLogo_mc._width; var logoH = _root.phetLogo_mc._height; Util.setXYPosition(_root.phetLogo_mc, stageW - (1 * logoW), stageH - (0.5 * logoH)); _root.createEmptyMovieClip("bodyHolder_mc", Util.getNextDepth()); _root.createEmptyMovieClip("textHolder_mc", Util.getNextDepth()); _root.createEmptyMovieClip("labelHolder_mc", Util.getNextDepth()); _root.createEmptyMovieClip("timeHolder_mc", Util.getNextDepth()); _root.attachMovie("tapeMeasureHolder", "tapeMeasureHolder_mc", Util.getNextDepth()); Util.setXYPosition(_root.tapeMeasureHolder_mc, stageW * 0.2, stageH * 0.5); _root.tapeMeasureHolder_mc._visible = false; var bodyHolder = _root.bodyHolder_mc; var maxN = maxNbrBodies; var N = model.getN(); initializeBodies(); var tWidth = 35; var lWidth = 50; var tHeight = 18; var leftMarginT = (0.3 * stageW); var leftMarginL = (0.3 * stageW); var spacing = (tWidth + 5); var vertSpacing = (1.25 * tHeight); var topMargin = (stageH - (5 * vertSpacing)); _root.attachMovie("numBodiesRadioGroup", "radioGroup_mc", Util.getNextDepth()); Util.setXYPosition(_root.radioGroup_mc, leftMarginL - (1.7 * spacing), topMargin + (2.35 * vertSpacing)); _root.radioGroup_mc.model = model; var j = 1; while (j <= maxN) { with (_root.textHolder_mc) { createTextField("mass" + j, 10 * j, leftMarginT, topMargin + (j * vertSpacing), tWidth, tHeight); createTextField("x" + j, (10 * j) + 1, leftMarginT + spacing, topMargin + (j * vertSpacing), tWidth, tHeight); createTextField("y" + j, (10 * j) + 2, leftMarginT + (2 * spacing), topMargin + (j * vertSpacing), tWidth, tHeight); createTextField("vx" + j, (10 * j) + 3, leftMarginT + (3 * spacing), topMargin + (j * vertSpacing), tWidth, tHeight); createTextField("vy" + j, (10 * j) + 4, leftMarginT + (4 * spacing), topMargin + (j * vertSpacing), tWidth, tHeight); } with (_root.labelHolder_mc) { createTextField("body " + j, 100 * j, leftMarginL - (1.2 * spacing), topMargin + (j * vertSpacing), lWidth, tHeight); } j++; } with (_root.labelHolder_mc) { createTextField("position", (100 * maxN) + 1, leftMarginL + (1.2 * spacing), topMargin - (0.35 * vertSpacing), 1.4 * lWidth, tHeight); createTextField("velocity", (100 * maxN) + 2, leftMarginL + (3.2 * spacing), topMargin - (0.35 * vertSpacing), 1.4 * lWidth, tHeight); createTextField("mass", (100 * maxN) + 3, leftMarginL + (0 * spacing), topMargin + (0.3 * vertSpacing), tWidth, tHeight); createTextField("x", (100 * maxN) + 4, leftMarginL + (1 * spacing), topMargin + (0.3 * vertSpacing), tWidth, tHeight); createTextField("y", (100 * maxN) + 5, leftMarginL + (2 * spacing), topMargin + (0.3 * vertSpacing), tWidth, tHeight); createTextField("x ", (100 * maxN) + 6, leftMarginL + (3 * spacing), topMargin + (0.3 * vertSpacing), tWidth, tHeight); createTextField("y ", (100 * maxN) + 7, leftMarginL + (4 * spacing), topMargin + (0.3 * vertSpacing), tWidth, tHeight); createTextField("Initial Settings:", (100 * maxN) + 8, leftMarginL - (3.5 * spacing), topMargin - (0.3 * vertSpacing), 3 * lWidth, 1.5 * tHeight); } _root.timeHolder_mc.createTextField("timeEquals", 10, leftMarginL + (5.6 * spacing), topMargin + (1 * vertSpacing), tWidth + (1 * spacing), tHeight + 5); _root.timeHolder_mc.createTextField("elapsedTime", 20, leftMarginL + (7.5 * spacing), topMargin + (1 * vertSpacing), tWidth + 5, tHeight + 5); for (var txtField in _root.textHolder_mc) { formatField(_root.textHolder_mc[txtField]); } for (var txtField in _root.labelHolder_mc) { formatLabel(_root.labelHolder_mc[txtField]); } var boldFormat = new TextFormat("Arial", 15, 16776960); boldFormat.bold = true; _root.labelHolder_mc["Initial Settings:"].setTextFormat(boldFormat); formatTime(); resetAllFields(); } function initializeBodies() { for (var _local7 in _root.bodyHolder_mc) { _root.bodyHolder_mc[_local7].removeMovieClip(); } var _local3 = 0; while (_local3 < bodyClips.length) { delete bodyClips[_local3]; _local3++; } var _local6 = model.getN(); bodyClips = new Array(_local6); var _local4 = 1; while (_local4 <= _local6) { _local3 = _local4 - 1; bodyClips[_local3] = new BodyClip(_local4, "body" + _local3, _root.bodyHolder_mc, model); var _local5 = new Color(bodyClips[_local3].clip_mc.disk_mc.diskBody_mc.diskBodySolid_mc); _local5.setRGB(Util.BODYCOLORS[_local3]); bodyClips[_local3].update(); _local4++; } } function resetAllFields() { var _local8 = model.getN(); var _local3 = 1; while (_local3 <= _local8) { var _local5 = _local3 - 1; _root.textHolder_mc["mass" + _local3].text = String(model.getMassOfBodyI(_local5)); var _local6 = model.getInitPosOfBodyI(_local5); var _local7 = model.getInitVelOfBodyI(_local5); _root.textHolder_mc["x" + _local3].text = String(_local6.x); _root.textHolder_mc["y" + _local3].text = String(_local6.y); _root.textHolder_mc["vx" + _local3].text = String(_local7.x); _root.textHolder_mc["vy" + _local3].text = String(_local7.y); _local3++; } for (var _local10 in _root.textHolder_mc) { var _local4 = _root.textHolder_mc[_local10]; var _local9 = _local4._name.charAt(_local4._name.length - 1); if (_local9 <= _local8) { _local4._visible = true; } else { _local4._visible = false; } } while (_local3 <= 4) { if (_local3 <= model.getN()) { _root.labelHolder_mc["body " + _local3]._visible = true; } else { _root.labelHolder_mc["body " + _local3]._visible = false; } _local3++; } for (var _local10 in _root.labelHolder_mc) { var _local4 = _root.labelHolder_mc[_local10]; var _local9 = _local4._name.charAt(_local4._name.length - 1); if (_local9 <= _local8) { _local4._visible = true; } else { _local4._visible = false; } } _root.timeHolder_mc.timeEquals.text = "time ="; _root.timeHolder_mc.elapsedTime.text = "0"; } function setTextFormat() { myTextFormat = new TextFormat("Arial", 12, 0); myTextFormat.align = "right"; } function setTextFieldType(currentType) { for (var _local4 in _root.textHolder_mc) { var _local2 = _root.textHolder_mc[_local4]; _local2.type = currentType; if (currentType == "input") { _local2.selectable = true; } else { _local2.selectable = false; } } } function setTextAndLabelAlpha(alpha) { for (var _local4 in _root.textHolder_mc) { var _local2 = _root.textHolder_mc[_local4]; _local2._alpha = alpha; } for (var _local4 in _root.labelHolder_mc) { var _local2 = _root.labelHolder_mc[_local4]; _local2._alpha = alpha; } } function formatField(field) { field.setNewTextFormat(myTextFormat); var _local3 = field._name.charAt(field._name.length - 1); var _local4 = field._name.charAt(0); field.border = true; field.embedFonts = true; field.type = "input"; if (_local4 == "m") { field.restrict = "0-9."; } else { field.restrict = "0-9.\\-"; } field.background = true; field.addListener(myFieldListener); if (_local3 == "1") { field.backgroundColor = Util.TRACECOLORS[0]; } if (_local3 == "2") { field.backgroundColor = Util.TRACECOLORS[1]; } if (_local3 == "3") { field.backgroundColor = Util.TRACECOLORS[2]; } if (_local3 == "4") { field.backgroundColor = Util.TRACECOLORS[3]; } } function formatLabel(field) { var _local2 = new TextFormat("Arial", 12, 13421772); _local2.align = "center"; field.setNewTextFormat(_local2); field.text = field._name; field.selectable = false; } function formatTime() { var _local2 = new TextFormat("Arial", 13, 13421772); _local2.align = "right"; _local2.bold = true; var _local3 = _root.timeHolder_mc.timeEquals; _local3.setNewTextFormat(_local2); _local2.align = "right"; _local3.text = _local3._name; _local3.selectable = false; var _local4 = new TextFormat("Arial", 14, 13421772); _local4.align = "left"; _local4.bold = true; var _local5 = _root.timeHolder_mc.elapsedTime; _local5.setNewTextFormat(_local4); _local5.selectable = false; } function setElapsedTime(time) { var _local2 = Math.round(time * 10) / 10; if (Math.round(time) != _local2) { _root.timeHolder_mc.elapsedTime.text = String(_local2); } else { _root.timeHolder_mc.elapsedTime.text = String(_local2) + ".0"; } } function updateTextFields() { var _local4 = _root.textHolder_mc; var _local7; var _local3 = 1; while (_local3 <= model.getN()) { var _local5 = model.getInitPosOfBodyI(_local3 - 1); var _local6 = model.getInitVelOfBodyI(_local3 - 1); _local4["x" + _local3].text = Math.round(_local5.x); _local4["y" + _local3].text = Math.round(_local5.y); _local4["vx" + _local3].text = Math.round(_local6.x); _local4["vy" + _local3].text = Math.round(_local6.y); _local3++; } } function textChanged(tfObject) { var _local5 = tfObject._name; var _local3 = Number(_local5.charAt(_local5.length - 1)); if ((tfObject.text != "-") && (tfObject.text != "")) { var _local4 = _local5.charAt(0); var _local13 = Number(_root.textHolder_mc["mass" + _local3].text); var _local11 = Number(_root.textHolder_mc["x" + _local3].text); var _local10 = Number(_root.textHolder_mc["y" + _local3].text); var _local7 = Number(_root.textHolder_mc["vx" + _local3].text); var _local14 = Number(_root.textHolder_mc["vy" + _local3].text); var _local8 = new Vector(_local11, _local10); var _local9 = new Vector(_local7, _local14); var _local6 = _local3 - 1; updateNeeded = false; if (_local4 == "m") { model.setMassOfBodyI(_local6, _local13); updateNeeded = true; } else if ((_local4 == "x") || (_local4 == "y")) { model.setInitPosOfBodyI(_local6, _local8); updateNeeded = true; } else if (_local4 == "v") { model.setInitVelOfBodyI(_local6, _local9); updateNeeded = true; } else { trace(("ERROR:type of text field is unrecognized. type is " + _local4) + "."); } } } function test() { trace("mass of body 2:" + model.getMassOfBodyI(1)); } function update() { if (model.resettingN) { initializeBodies(); resetAllFields(); } if ((!model.integrationOn) && (updateNeeded)) { updateTextFields(); } } }
Symbol 304 MovieClip [__Packages.BodyClip] Frame 0
class BodyClip { var nLabel, model, bodyX, bodyY, pos, vel, mass, clip_mc, updateNeeded, arrowX, arrowY, arrowLength, arrowAngle; function BodyClip (nLabel, name, target, model) { this.nLabel = nLabel; this.model = model; this.model.registerView(this); var _local2 = this.nLabel - 1; bodyX = 0; bodyY = 0; pos = this.model.getInitPosOfBodyI(_local2); vel = this.model.getInitVelOfBodyI(_local2); mass = this.model.getMassOfBodyI(_local2); clip_mc = target.attachMovie("bodyWithArrow", name, target.getNextHighestDepth()); updateNeeded = true; makeClipDraggable(); } function makeClipDraggable() { var obj = this; var clip = clip_mc; var _local4 = Util.STAGEH; var _local5 = Util.STAGEW; var originX = Util.ORIGINSCREENX; var originY = Util.ORIGINSCREENY; clip.disk_mc.onPress = function () { clip.startDrag(false); obj.updateNeeded = false; clip.onMouseMove = function () { obj.bodyX = clip._x; obj.bodyY = clip._y; obj.pos.x = obj.bodyX - originX; obj.pos.y = -(obj.bodyY - originY); obj.updateModelPosition(); updateAfterEvent(); }; }; clip.disk_mc.onRelease = function () { obj.updateModelPosition(); clip.stopDrag(); obj.updateNeeded = true; clip.onMouseMove = undefined; }; clip.disk_mc.onReleaseOutside = clip.disk_mc.onRelease; clip.headHandle_mc.onPress = function () { this.startDrag(false); this.onMouseMove = function () { var _local3 = this._x; var _local2 = -this._y; obj.vel.x = _local3; obj.vel.y = _local2; obj.updateModelVelocity(); updateAfterEvent(); }; }; clip.headHandle_mc.onRelease = function () { obj.updateModelVelocity(); this.stopDrag(); this.onMouseMove = undefined; }; clip.headHandle_mc.onReleaseOutside = clip.headHandle_mc.onRelease; } function updateModelPosition() { model.setInitPosOfBodyI(nLabel - 1, pos); } function updateModelVelocity() { model.setInitVelOfBodyI(nLabel - 1, vel); } function setBodySize(pixDia) { clip_mc.disk_mc.diskBody_mc._width = (clip_mc.disk_mc.diskBody_mc._height = pixDia); } function update() { if (model.integrationOn) { clip_mc._visible = false; } else { clip_mc._visible = true; } if (clip_mc._visible && (updateNeeded)) { var _local4 = nLabel - 1; pos = model.getInitPosOfBodyI(_local4); vel = model.getInitVelOfBodyI(_local4); mass = model.getMassOfBodyI(_local4); setBodySize((2.5 * Math.pow(mass, 0.333333333333333)) + 6); bodyX = pos.x + Util.ORIGINSCREENX; bodyY = (-pos.y) + Util.ORIGINSCREENY; clip_mc._x = bodyX; clip_mc._y = bodyY; var _local3 = vel.x; var _local2 = -vel.y; arrowX = _local3; arrowY = _local2; arrowLength = Math.sqrt((_local3 * _local3) + (_local2 * _local2)); arrowAngle = (Math.atan2(_local2, _local3) * 180) / pi; clip_mc.arrowBody_mc._rotation = 0; clip_mc.arrowBody_mc._width = arrowLength; clip_mc.arrowBody_mc._height = 10 + (arrowLength / 50); clip_mc.arrowBody_mc._rotation = arrowAngle; clip_mc.headHandle_mc._x = _local3; clip_mc.headHandle_mc._y = _local2; } } var pi = Math.PI; }
Symbol 305 MovieClip [__Packages.edu.colorado.phet.flashcommon.CommonButtons] Frame 0
class edu.colorado.phet.flashcommon.CommonButtons { var common; function CommonButtons (position) { common = _level0.common; org.aswing.ASWingUtils.getRootMovieClip(); org.aswing.FocusManager.disableTraversal(); var _local2 = new org.aswing.JWindow(_level0); _level0.commonWindow = _local2; _local2.getContentPane().setLayout(new org.aswing.FlowLayout(org.aswing.FlowLayout.LEFT, 0, 0)); var _local5 = new org.aswing.JButton(common.strings.get("About...", "About...")); _level0.aboutButton = _local5; _local5.setSize(_local5.getPreferredSize()); _local5.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, aboutButtonClicked)); _local2.getContentPane().append(_local5); if (!common.fromPhetWebsite()) { var _local4 = new org.aswing.JButton(common.strings.get("Preferences", "Preferences...")); _level0.preferencesButton = _local4; _local4.setSize(_local4.getPreferredSize()); _local4.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, preferencesButtonClicked)); _local2.getContentPane().append(_local4); } var _local3 = 0; var _local6 = 0; switch (position) { case LOCATION_UPPER_LEFT : _local3 = 0; _local6 = 0; break; case LOCATION_UPPER_RIGHT : _local3 = Stage.width - _local2.getContentPane().getPreferredSize().width; _local6 = 0; break; case LOCATION_LOWER_LEFT : _local3 = 0; _local6 = Stage.height - _local2.getContentPane().getPreferredSize().height; break; case LOCATION_LOWER_RIGHT : _local3 = Stage.width - _local2.getContentPane().getPreferredSize().width; _local6 = Stage.height - _local2.getContentPane().getPreferredSize().height; } _local2.setBounds(_local3, _local6, _local2.getContentPane().getPreferredSize().width, _local2.getContentPane().getPreferredSize().height); _local2.show(); common.tabHandler.insertControl(_level0.aboutButton.trigger_mc, 0); common.tabHandler.registerButton(_level0.aboutButton.trigger_mc); common.tabHandler.insertControl(_level0.preferencesButton.trigger_mc, 1); common.tabHandler.registerButton(_level0.preferencesButton.trigger_mc); } function debug(str) { _level0.debug(str); } function aboutButtonClicked(src) { edu.colorado.phet.flashcommon.CommonDialog.openAboutDialog(); } function preferencesButtonClicked(src) { edu.colorado.phet.flashcommon.CommonDialog.openPreferencesDialog(); } static function padButtonAdd(button, container) { var _local1 = new org.aswing.JPanel(new org.aswing.CenterLayout()); button.setMargin(new org.aswing.Insets(0, 10, 0, 10)); _local1.append(button); container.append(_local1); } static var LOCATION_UPPER_LEFT = "upper-left"; static var LOCATION_UPPER_RIGHT = "upper-right"; static var LOCATION_LOWER_LEFT = "lower-left"; static var LOCATION_LOWER_RIGHT = "lower-right"; }
Symbol 306 MovieClip [__Packages.edu.colorado.phet.flashcommon.FlashCommon] Frame 0
class edu.colorado.phet.flashcommon.FlashCommon { static var LINK_STYLE_SHEET; var backgroundColor, commonPosition, strings, keyboardHandler, statistics, preferences, inspector, updateHandler, commonButtons; function FlashCommon (position) { initDebug(); _level0.common = this; if (((!hasFlashVars()) && (fromPhetWebsite())) && (_level0.backupSimName)) { redirect(((("http://phet.colorado.edu/sims/" + _level0.backupSimName) + "/") + _level0.backupSimName) + "_en.html"); } Key.addListener(this); backgroundColor = org.aswing.ASColor.getASColor(230, 230, 230); LINK_STYLE_SHEET = new TextField.StyleSheet(); LINK_STYLE_SHEET.parseCSS(DISPLAY_CSS); _level0.highContrastFunction = defaultHighContrastFunction; _level0.highContrast = false; System.security.allowDomain("phet.colorado.edu"); debug("Debugging information:\n"); debug("FlashCommon initializing\n"); debug(((("Running " + getSimName()) + " ") + getFullVersionString()) + newline); commonPosition = position; strings = new edu.colorado.phet.flashcommon.CommonStrings(); keyboardHandler = new edu.colorado.phet.flashcommon.KeyboardHandler(); statistics = new edu.colorado.phet.flashcommon.Statistics(); preferences = new edu.colorado.phet.flashcommon.Preferences(); if (getDev()) { inspector = new edu.colorado.phet.flashcommon.Inspector(); } } function initDebug() { if (debugging) { var _local3 = 50; _root.createTextField("debugs", 104384, _local3, _local3, Stage.width - (2 * _local3), Stage.height - (2 * _local3)); var _local4 = _root.debugs.getTextFormat(); _local4.font = "Arial"; _root.debugs.setTextFormat(_local4); _root.debugs._visible = false; _root.debugs.background = true; _root.debugs.wordWrap = true; _root.debugs.multiline = true; _root.debugs.border = true; _level0.debug = function (str) { _root.debugs.text = _root.debugs.text + str; _root.debugs.scroll = _root.debugs.scroll + 100; _root.debugs.html = true; }; } else { _level0.debug = function (str) { }; _root.debugs._visible = false; } } function debug(str) { _level0.debug(str); } function postAgreement() { updateHandler = new edu.colorado.phet.flashcommon.UpdateHandler(); statistics.sendSessionStart(); commonButtons = new edu.colorado.phet.flashcommon.CommonButtons(commonPosition); } function fromPhetWebsite() { var _local2 = new LocalConnection().domain(); var _local3 = (((_local2 == "phet.colorado.edu") || (_local2 == "phet.colorado.edu.")) || (_local2 == "phet.colorado")) || (_local2 == "phet"); return(_local3 || (fromDevWebsite())); } function fromDevWebsite() { var _local1 = new LocalConnection().domain(); return(_local1 == "www.colorado.edu"); } function fromFullInstallation() { return(((!fromPhetWebsite()) && (!isPlaceholder(_level0.installationTimestamp))) && (null_replace(_level0.installationTimestamp) != NULLVAL)); } function fromStandaloneJar() { return(_level0.simDeployment == "standalone-jar"); } function isPlaceholder(str) { return((str.substr(0, 2) == "@@") && (str.substr(-2, 2) == "@@")); } function onKeyDown() { if (!getDev()) { return(undefined); } if (((Key.getCode() == 33) || (Key.getCode() == 121)) && (Key.isDown(16))) { _level0.debugs._visible = !_level0.debugs._visible; } if ((Key.getCode() == 120) && (Key.isDown(16))) { updateHandler.simUpdatesAvailable(5, 10, 0, 0, 0); } if ((Key.getCode() == 36) && (Key.isDown(16))) { updateHandler.installationUpdatesAvailable(1234567890, 0, 0); } if ((Key.getCode() == 37) && (Key.isDown(16))) { updateHandler.showUpdateError(); } if ((Key.getCode() == 38) && (Key.isDown(16))) { updateHandler.showSimUpToDate(); } if ((Key.getCode() == 40) && (Key.isDown(16))) { updateHandler.showInstallationUpToDate(); } } function zeroPadVersion(versionMajor, versionMinor, versionDev) { var _local1 = ""; _local1 = _local1 + (String(versionMajor) + "."); _local1 = _local1 + ((versionMinor > 9) ? (String(versionMinor)) : ("0" + String(versionMinor))); if ((versionDev != null) && (versionDev != undefined)) { _local1 = _local1 + ("." + ((versionDev > 9) ? (String(versionDev)) : ("0" + String(versionDev)))); } return(_local1); } function getShortVersionString() { return(zeroPadVersion(getVersionMajor(), getVersionMinor())); } function getVersionString() { return(zeroPadVersion(getVersionMajor(), getVersionMinor(), getVersionDev())); } function getFullVersionString() { return(((getVersionString() + " (") + String(getVersionRevision())) + ")"); } function simWebsiteURL() { return(((("http://phet.colorado.edu/services/sim-website-redirect.php?project=" + getSimProject()) + "&sim=") + getSimName()) + "&request_version=1"); } function getLocale() { var _local2 = getLanguage(); if (getCountry() != NULLVAL) { _local2 = _local2 + ("_" + getCountry()); } return(_local2); } function null_replace(val) { if ((val === undefined) || (val === null)) { return(NULLVAL); } return(val); } function getSimProject() { return(_level0.simName); } function getSimName() { return(_level0.simName); } function getLanguage() { return(_level0.languageCode); } function getCountry() { return(null_replace(_level0.countryCode)); } function getVersionMajor() { return(parseInt(_level0.versionMajor)); } function getVersionMinor() { return(parseInt(_level0.versionMinor)); } function getVersionDev() { return(parseInt(_level0.versionDev)); } function getVersionRevision() { return(parseInt(_level0.versionRevision)); } function getSimXML() { return(_level0.internationalization); } function getCommonXML() { return(_level0.commonStrings); } function getDeployment() { if (fromFullInstallation()) { return("phet-installation"); } if (fromDevWebsite()) { return("phet-development-website"); } return(_level0.simDeployment); } function getDev() { if ((_level0.simDev == "false") || (_level0.simDev == "0")) { return(false); } return(true); } function getDistributionTag() { if (isPlaceholder(_level0.simDistributionTag) || (null_replace(_level0.simDistributionTag) == NULLVAL)) { return(null); } return(_level0.simDistributionTag); } function getInstallationTimestamp() { if ((null_replace(_level0.installationTimestamp) == NULLVAL) || (isPlaceholder(_level0.installationTimestamp))) { return(null); } return(parseInt(_level0.installationTimestamp)); } function getInstallerCreationTimestamp() { if ((null_replace(_level0.installerCreationTimestamp) == NULLVAL) || (isPlaceholder(_level0.installerCreationTimestamp))) { return(null); } return(parseInt(_level0.installerCreationTimestamp)); } function getVersionTimestamp() { if (null_replace(_level0.versionTimestamp) == NULLVAL) { return(null); } return(parseInt(_level0.versionTimestamp)); } function getBGColor() { return(parseInt(_level0.bgcolor)); } function getAgreementVersion() { return(parseInt(_level0.agreementVersion)); } function getAgreementText() { var _local2 = stripNewlines(edu.colorado.phet.flashcommon.SoftwareAgreement.agreementText); return(stringReplace(_local2, "href=\"", "href=\"asfunction:_level0.common.openExternalLink,")); } function getCreditsText() { return(strings.format(_level0.creditsText, [strings.get("SoftwareDevelopment", "Software Development"), strings.get("DesignTeam", "Design Team"), strings.get("LeadDesign", "Lead Design"), strings.get("Interviews", "Interviews")])); } function getSimTitle() { if (_level0.simTitle == undefined) { return(getSimName()); } return(_level0.simTitle); } static function dateString(date) { var _local3 = new String(date.getYear() + 1900); var _local2 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"][date.getMonth()]; return((((_local2 + " ") + String(date.getDate())) + ", ") + _local3); } static function dateOfSeconds(seconds) { return(new Date(seconds * 1000)); } static function dateOfMilliseconds(milliseconds) { return(new Date(milliseconds)); } function hasFlashVars() { return((!(_level0.languageCode === undefined)) && (!(_level0.simName === undefined))); } function prepareTranslatedTextField(field) { var _local3 = field.getTextFormat(); if (getLanguage() == "en") { field.setTextFormat(_local3); } else if (field.embedFonts == false) { field.setTextFormat(_local3); } else { field.embedFonts = false; field.setTextFormat(_local3); } fixLocaleFont(field); } function stripNewlines(str) { var _local3 = ""; var _local1 = 0; while (_local1 < str.length) { if ((str.charCodeAt(_local1) == 10) || (str.charCodeAt(_local1) == 13)) { } else { _local3 = _local3 + str.charAt(_local1); } _local1++; } return(_local3); } function stringReplace(str, pattern, replacement) { var _local4 = ""; var _local1 = str; while (_local1.indexOf(pattern) != -1) { var _local2 = _local1.indexOf(pattern); _local4 = _local4 + _local1.slice(0, _local2); _local4 = _local4 + replacement; _local1 = _local1.substring(_local2 + pattern.length); } _local4 = _local4 + _local1; return(_local4); } function openExternalLink(str) { getURL (str, "_blank"); } function redirect(str) { getURL (str, "_self"); } function defaultHighContrastFunction(contrast) { _level0.highContrast = contrast; _level0.debug(("Contrast changing to: " + contrast) + newline); if (contrast) { var _local1 = 3; var _local4 = 64; var _local2 = _local4 - (128 * _local1); _level0.transform.colorTransform = new flash.geom.ColorTransform(_local1, _local1, _local1, 1, _local2, _local2, _local2, 1); } else { _level0.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); } } function existingSystemFont(preferredFonts) { var _local3 = TextField.getFontList(); for (var _local6 in preferredFonts) { var _local1 = preferredFonts[_local6]; for (var _local4 in _local3) { var _local2 = _local3[_local4]; if (_local1 == _local2) { _level0.debug(("Found good system font: " + _local1) + newline); return(_local1); } } _level0.debug(("Could not find: " + _local1) + newline); } return(undefined); } function getOverrideFont() { if (getLocale() == "km") { if (cachedOverrideFont == null) { var _local2 = ["Khmer OS", "MoolBoran", "Limon"]; var _local3 = existingSystemFont(_local2); cachedOverrideFont = _local3; } return(cachedOverrideFont); } return(undefined); } function fixLocaleFont(field) { var _local2 = getOverrideFont(); if (_local2) { var _local3 = field.getTextFormat(); _local3.font = _local2; field.setTextFormat(_local3); } } static var NULLVAL = "null"; var debugging = true; static var DISPLAY_CSS = (("a:link{color:#0000FF;font-weight:bold;}" + "a:visited{color:#0000FF;font-weight:bold;}") + "a:hover{color:#0000FF;text-decoration:underline;font-weight:bold;}") + "a:active{color:#0000FF;font-weight:bold;}"; var cachedOverrideFont = null; }
Symbol 307 MovieClip [__Packages.org.aswing.ASColor] Frame 0
class org.aswing.ASColor { var rgb, alpha; function ASColor (color, alpha) { setRGB(color); setAlpha(alpha); } function setRGB(rgb) { if (rgb == null) { this.rgb = black.getRGB(); } else { this.rgb = rgb; } } function setAlpha(alpha) { if (alpha == null) { this.alpha = 100; } else { this.alpha = Math.min(100, Math.max(0, alpha)); } } function getAlpha() { return(alpha); } function getRGB() { return(rgb); } function getRed() { return((rgb & 16711680) >> 16); } function getGreen() { return((rgb & 65280) >> 8); } function getBlue() { return(rgb & 255); } function darker(factor) { if (factor == undefined) { factor = FACTOR; } var _local4 = getRed(); var _local5 = getGreen(); var _local3 = getBlue(); return(getASColor(_local4 * factor, _local5 * factor, _local3 * factor, alpha)); } function brighter(factor) { if (factor == undefined) { factor = FACTOR; } var _local4 = getRed(); var _local5 = getGreen(); var _local3 = getBlue(); var _local2 = Math.floor(1 / (1 - factor)); if (((_local4 == 0) && (_local5 == 0)) && (_local3 == 0)) { return(getASColor(_local2, _local2, _local2, alpha)); } if ((_local4 > 0) && (_local4 < _local2)) { _local4 = _local2; } if ((_local5 > 0) && (_local5 < _local2)) { _local5 = _local2; } if ((_local3 > 0) && (_local3 < _local2)) { _local3 = _local2; } return(getASColor(_local4 / factor, _local5 / factor, _local3 / factor, alpha)); } static function getASColor(r, g, b, a) { return(new org.aswing.ASColor(getRGBWith(r, g, b), a)); } static function getRGBWith(rr, gg, bb) { var _local2 = Math.round(rr); var _local3 = Math.round(gg); var _local1 = Math.round(bb); if (_local2 < 0) { _local2 = 0; } else if (_local2 > 255) { _local2 = 255; } if (_local3 < 0) { _local3 = 0; } else if (_local3 > 255) { _local3 = 255; } if (_local1 < 0) { _local1 = 0; } else if (_local1 > 255) { _local1 = 255; } var _local4 = ((_local2 << 16) + (_local3 << 8)) + _local1; return(_local4); } function toString() { return(((("ASColor(rgb:" + rgb.toString(16)) + ", alpha:") + alpha) + ")"); } function equals(o) { var _local2 = org.aswing.ASColor(o); if (_local2 != null) { return((_local2.alpha === alpha) && (_local2.rgb === rgb)); } return(false); } static function get WHITE() { return(white); } static function get LIGHT_GRAY() { return(lightGray); } static function get GRAY() { return(gray); } static function get DARK_GRAY() { return(darkGray); } static function get BLACK() { return(black); } static function get RED() { return(red); } static function get PINK() { return(pink); } static function get ORANGE() { return(orange); } static function get HALO_ORANGE() { return(haloOrange); } static function get YELLOW() { return(yellow); } static function get GREEN() { return(green); } static function get HALO_GREEN() { return(haloGreen); } static function get MAGENTA() { return(magenta); } static function get CYAN() { return(cyan); } static function get BLUE() { return(blue); } static function get HALO_BLUE() { return(haloBlue); } static var FACTOR = 0.7; static var white = new org.aswing.ASColor(16777215); static var lightGray = new org.aswing.ASColor(12632256); static var gray = new org.aswing.ASColor(8421504); static var darkGray = new org.aswing.ASColor(4210752); static var black = new org.aswing.ASColor(0); static var red = new org.aswing.ASColor(16711680); static var pink = new org.aswing.ASColor(16756655); static var orange = new org.aswing.ASColor(16762880); static var haloOrange = new org.aswing.ASColor(16761344); static var yellow = new org.aswing.ASColor(16776960); static var green = new org.aswing.ASColor(65280); static var haloGreen = new org.aswing.ASColor(8453965); static var magenta = new org.aswing.ASColor(16711935); static var cyan = new org.aswing.ASColor(65535); static var blue = new org.aswing.ASColor(255); static var haloBlue = new org.aswing.ASColor(2881013); }
Symbol 308 MovieClip [__Packages.edu.colorado.phet.flashcommon.CommonStrings] Frame 0
class edu.colorado.phet.flashcommon.CommonStrings { var common, xml; function CommonStrings () { common = _level0.common; common.strings = this; xml = new XML(); xml.ignoreWhite = true; xml.parseXML(common.getCommonXML()); } function debug(str) { _level0.debug(str); } function get(key, defaultString, formatArray) { var _local4 = "keyNotFound"; var _local5 = xml.firstChild.childNodes; var _local3 = null; var _local2 = 0; while (_local2 < _local5.length) { _local3 = XMLNode(_local5[_local2]); if (_local3.attributes.key == key) { _local4 = _local3.attributes.value; if (_local4 != null) { break; } } _local2++; } if (((_local4 == "keyNotFound") || (_local4 == null)) && (defaultString != undefined)) { _local4 = defaultString; debug(("WARNING CommonStrings: cannot find common string for '" + key) + "', using default instead.\n"); } if (formatArray != undefined) { return(format(_local4, formatArray)); } return(_local4); } function format(pattern, args) { var _local3 = ""; var _local7 = pattern.length; var _local1 = 0; while (_local1 < _local7) { var _local4 = pattern.charAt(_local1); if (((_local4 == "\\") && (_local1 < (_local7 - 1))) && ((pattern.charAt(_local1 + 1) == "{") || (pattern.charAt(_local1 + 1) == "}"))) { _local1++; _local3 = _local3 + pattern.charAt(_local1); } else if (((_local4 == "\\") && (_local1 < (_local7 - 1))) && (pattern.charAt(_local1 + 1) == "\\")) { _local1++; _local3 = _local3 + "\\"; } else if (_local4 == "{") { var _local5 = pattern.indexOf("}", _local1); if (_local5 == -1) { _local3 = _local3 + pattern.charAt(_local1); } else { var _local6 = new Number(pattern.substring(_local1 + 1, _local5)); var _local8 = args[_local6]; if (_local8 != undefined) { _local3 = _local3 + args[_local6]; _local1 = _local5; } else { _local3 = _local3 + pattern.charAt(_local1); } } } else { _local3 = _local3 + pattern.charAt(_local1); } _local1++; } return(_local3); } }
Symbol 309 MovieClip [__Packages.edu.colorado.phet.flashcommon.Preferences] Frame 0
class edu.colorado.phet.flashcommon.Preferences { var common, FIELD_SKIPPED_REVISION, FIELD_ASK_LATER, FIELD_VISITS_SINCE, FIELD_VISITS_EVER, sharedObject; function Preferences () { common = _level0.common; _level0.preferences = this; common.preferences = this; load(); FIELD_SKIPPED_REVISION = common.getSimName() + "_skippedRevision"; FIELD_ASK_LATER = common.getSimName() + "_askLater"; FIELD_VISITS_SINCE = common.getSimName() + "_visitsSince"; FIELD_VISITS_EVER = common.getSimName() + "_visitsEver"; if (sharedObject.data.exists && ((!sharedObject.data.dataVersion) || (sharedObject.data.dataVersion != CURRENT_PREF_VERSION))) { debug("Preferences: DEVELOPMENT: resetting shared object, new information to be stored\n"); reset(); } Key.addListener(this); if (!sharedObject.data.exists) { debug("Preferences do not exist! Creating, and filling with defaults.\n"); sharedObject.data.exists = true; sharedObject.data.allowStatistics = true; sharedObject.data.checkForUpdates = true; sharedObject.data.dataVersion = CURRENT_PREF_VERSION; sharedObject.data[FIELD_INSTALLATION_ASK_LATER] = 0; sharedObject.data.userPreferencesFileCreationTime = new Date().valueOf(); sharedObject.data.userTotalSessions = 0; sharedObject.data.latestPrivacyAgreementVersion = 0; } else { debug("Found preferences\n"); } if (userAllowsStatistics()) { incrementVisit(); } initUpdateInfo(); save(); for (var _local2 in sharedObject.data) { debug((((" pref: " + _local2) + " = ") + String(sharedObject.data[_local2])) + newline); } if ((!isPrivacyOK()) && (!common.fromPhetWebsite())) { _level0.privacyDialog = new edu.colorado.phet.flashcommon.PrivacyDialog(); } else { common.postAgreement(); } unload(); } function debug(str) { _level0.debug(str); } function load() { sharedObject = SharedObject.getLocal("phetPrefs", "/"); } function unload() { delete sharedObject; } function isPrivacyOK() { return(common.getAgreementVersion() <= sharedObject.data.latestPrivacyAgreementVersion); } function agreeToPrivacy() { load(); sharedObject.data.latestPrivacyAgreementVersion = common.getAgreementVersion(); save(); unload(); } function userAllowsStatistics() { return(sharedObject.data.allowStatistics); } function areStatisticsMessagesAllowed() { if (common.fromPhetWebsite()) { debug("From PhET website: no statistics allowed\n"); return(false); } return(userAllowsStatistics()); } function userAllowsUpdates() { return(sharedObject.data.checkForUpdates); } function areUpdatesAllowed() { if (common.fromPhetWebsite()) { debug("From PhET website: no updates allowed (or needed)\n"); return(false); } load(); var _local2 = userAllowsUpdates(); unload(); return(_local2); } function getSkippedRevision() { load(); var _local2 = sharedObject.data[FIELD_SKIPPED_REVISION]; unload(); return(_local2); } function setSkippedRevision(revision) { load(); sharedObject.data[FIELD_SKIPPED_REVISION] = revision; save(); unload(); } function setSimAskLater(days) { load(); var _local2 = new Date().valueOf() + ((((days * 24) * 60) * 60) * 1000); sharedObject.data[FIELD_ASK_LATER] = _local2; debug(("Preferences: sim ask later set to " + edu.colorado.phet.flashcommon.FlashCommon.dateString(edu.colorado.phet.flashcommon.FlashCommon.dateOfMilliseconds(_local2))) + newline); save(); unload(); } function setInstallationAskLater(days) { load(); var _local2 = new Date().valueOf() + ((((days * 24) * 60) * 60) * 1000); sharedObject.data[FIELD_INSTALLATION_ASK_LATER] = _local2; debug(("Preferences: installation ask later set to " + edu.colorado.phet.flashcommon.FlashCommon.dateString(edu.colorado.phet.flashcommon.FlashCommon.dateOfMilliseconds(_local2))) + newline); save(); unload(); } function setPrivacy(checkForUpdates, allowStatistics) { load(); sharedObject.data.allowStatistics = allowStatistics; sharedObject.data.checkForUpdates = checkForUpdates; debug(("setting statistics to " + allowStatistics.toString()) + newline); debug(("setting updates to " + checkForUpdates.toString()) + newline); save(); unload(); } function reset() { debug("Preferences: resetting\n"); sharedObject.clear(); } function save() { debug("Preferences: Saving shared object\n"); sharedObject.flush(); } function incrementVisit() { debug("Preferences: Incrementing number of visits\n"); sharedObject.data.userTotalSessions = sharedObject.data.userTotalSessions + 1; if (sharedObject.data.hasOwnProperty(FIELD_VISITS_EVER)) { sharedObject.data[FIELD_VISITS_EVER] = sharedObject.data[FIELD_VISITS_EVER] + 1; } else { sharedObject.data[FIELD_VISITS_EVER] = 1; } if (sharedObject.data.hasOwnProperty(FIELD_VISITS_SINCE)) { sharedObject.data[FIELD_VISITS_SINCE] = sharedObject.data[FIELD_VISITS_SINCE] + 1; } else { sharedObject.data[FIELD_VISITS_SINCE] = 1; } } function initUpdateInfo() { if (!sharedObject.data.hasOwnProperty(FIELD_SKIPPED_REVISION)) { sharedObject.data[FIELD_SKIPPED_REVISION] = 0; } if (!sharedObject.data.hasOwnProperty(FIELD_ASK_LATER)) { sharedObject.data[FIELD_ASK_LATER] = 0; } } function resetSince() { _level0.debug("Preferences: resetting visits since\n"); load(); sharedObject.data[FIELD_VISITS_SINCE] = 0; save(); unload(); } function visitsEver() { return(sharedObject.data[FIELD_VISITS_EVER]); } function visitsSince() { return(sharedObject.data[FIELD_VISITS_SINCE]); } function getUserTime() { return(sharedObject.data.userPreferencesFileCreationTime); } function getUserTotalSessions() { return(sharedObject.data.userTotalSessions); } function simAskLaterElapsed() { load(); var _local2 = sharedObject.data[FIELD_ASK_LATER]; unload(); return(new Date().valueOf() - _local2); } function installationAskLaterElapsed() { load(); var _local2 = sharedObject.data[FIELD_INSTALLATION_ASK_LATER]; unload(); return(new Date().valueOf() - _local2); } function onKeyDown() { if (!common.getDev()) { return(undefined); } if ((Key.getCode() == 119) && (Key.isDown(16))) { debug("Preferences: Manually resetting shared data\n"); load(); reset(); unload(); } } static var CURRENT_PREF_VERSION = 1.35; static var FIELD_INSTALLATION_ASK_LATER = "installationAskLater"; }
Symbol 310 MovieClip [__Packages.edu.colorado.phet.flashcommon.PrivacyDialog] Frame 0
class edu.colorado.phet.flashcommon.PrivacyDialog { var common, canceled, backgroundMC, textArea; function PrivacyDialog () { common = _level0.common; _level0.privacyDialog = this; org.aswing.ASWingUtils.getRootMovieClip(); canceled = false; backgroundMC = _root.createEmptyMovieClip("backgroundMC", _root.getNextHighestDepth() + 25467); backgroundMC.beginFill(_level0.bgColor, 50); backgroundMC.moveTo(-5000, -5000); backgroundMC.lineTo(5000, -5000); backgroundMC.lineTo(5000, 5000); backgroundMC.lineTo(-5000, 5000); backgroundMC.endFill(); backgroundMC.useHandCursor = false; backgroundMC.onRelease = function () { }; var _local3 = new org.aswing.JFrame(_level0, common.strings.get("SoftwareAgreement", "Software Agreement")); _local3.setClosable(false); _local3.setResizable(false); _level0.privacyWindow = _local3; _local3.setBackground(common.backgroundColor); _local3.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local5 = ""; var _local4 = ""; _local4 = _local4 + "In all PhET simulations, we collect a minimal amount of anonymous <a href='{0}'>information</a> "; _local4 = _local4 + "each time the simulation starts (e.g., simulation version, operating system). "; _local4 = _local4 + "You can disable the sending of this information at any time via the Preferences button."; _local5 = _local5 + common.strings.get("PrivacyMessage1", _local4, ["asfunction:_level0.privacyDialog.infoClicked,"]); _local5 = _local5 + "\n\n"; _local4 = "By clicking \"Agree and Continue\", you agree to PhET's Software Agreement, "; _local4 = "including our privacy policy, for this and every PhET simulation you run. "; _local4 = "(For details, <a href='{0}'>click here</a>)."; _local5 = _local5 + common.strings.get("PrivacyMessage2", _local4, ["asfunction:_level0.privacyDialog.detailsClicked,"]); var _local6 = new TextField.StyleSheet(); _local6.parseCSS((("a:link{color:#0000FF;font-weight:bold;}" + "a:visited{color:#0000FF;font-weight:bold;}") + "a:hover{color:#0000FF;text-decoration:underline;font-weight:bold;}") + "a:active{color:#0000FF;font-weight:bold;}"); textArea = new org.aswing.JTextArea(_local5, 0, 30); textArea.setHtml(true); textArea.setEditable(false); textArea.setCSS(_local6); textArea.setWordWrap(true); textArea.setWidth(300); textArea.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 0, 5))); textArea.setBackground(common.backgroundColor); _local3.getContentPane().append(textArea); _local3.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local7 = new org.aswing.JPanel(new org.aswing.BoxLayout()); var _local8 = new org.aswing.JButton(common.strings.get("AcceptContinue", "Accept and Continue")); _local8.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, continueClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(_local8, _local7); _local3.getContentPane().append(_local7); _local3.getContentPane().append(new org.aswing.JSpacer(5, 5)); _local3.setSize(_local3.getPreferredSize()); _local3.setLocation((Stage.width - _local3.getWidth()) / 2, (Stage.height - _local3.getHeight()) / 2); _local3.show(); Key.addListener(this); } function debug(str) { _level0.debug(str); } function continueClicked(src) { common.preferences.agreeToPrivacy(); _level0.privacyWindow.setVisible(false); backgroundMC.clear(); backgroundMC.removeMovieClip(); common.postAgreement(); } function infoClicked() { edu.colorado.phet.flashcommon.CommonDialog.openStatisticsDetailsDialog(); } function detailsClicked() { edu.colorado.phet.flashcommon.CommonDialog.openAgreementDialog(); } function onKeyDown() { if ((Key.getCode() == 32) || (Key.getCode() == 13)) { continueClicked(null); Key.removeListener(this); } } }
Symbol 311 MovieClip [__Packages.org.aswing.IEventDispatcher] Frame 0
interface org.aswing.IEventDispatcher { }
Symbol 312 MovieClip [__Packages.org.aswing.EventDispatcher] Frame 0
class org.aswing.EventDispatcher implements org.aswing.IEventDispatcher { var listeners, dispatchingEnabled; function EventDispatcher () { listeners = new Array(); dispatchingEnabled = true; } static function createEventListener(eventTypeOrLis, func, obj) { if (func != undefined) { var _local1 = new Object(); var _local2 = org.aswing.util.StringUtils.castString(eventTypeOrLis); if (obj != undefined) { _local1[_local2] = org.aswing.util.Delegate.create(obj, func); } else { _local1[_local2] = func; } return(_local1); } return(eventTypeOrLis); } function setEventDispatchingEnabled(e) { dispatchingEnabled = e; } function isEventDispatchingEnabled() { return(dispatchingEnabled); } function addEventListener(eventTypeOrLis, func, obj) { var _local2 = createEventListener(eventTypeOrLis, func, obj); listeners.push(_local2); return(_local2); } function removeEventListener(listener) { org.aswing.util.ArrayUtils.removeFromArray(listeners, listener); } function dispatchEvent(name, event) { if (dispatchingEnabled) { var _local4; if (event == undefined) { event = org.aswing.Event(name); _local4 = event.getType(); } else { _local4 = String(name); } var _local5 = listeners.length; if (_local5 > 0) { var _local2 = -1; while (_local2++ , _local2 < _local5) { listeners[_local2][_local4].apply(listeners[_local2], event.getArguments()); } } } } function fireActionEvent() { dispatchEvent(ON_ACT, new org.aswing.Event(this, ON_ACT, arguments)); } function createEventObj(type) { return(new org.aswing.Event(this, type, arguments.slice(1))); } static var ON_ACT = "onActionPerformed"; }
Symbol 313 MovieClip [__Packages.org.aswing.util.StringUtils] Frame 0
class org.aswing.util.StringUtils { function StringUtils () { } static function isString(value) { if (value == undefined) { return(false); } return((typeof(value) == "string") || (value instanceof String)); } static function castString(str) { if (str == undefined) { return(str); } if (typeof(str) == "string") { return(String(str)); } if (str instanceof String) { return(str.toString()); } return(null); } static function replace(targetString, oldString, newString) { return(targetString.split(oldString).join(newString)); } static function trimAll(targetString) { return(replace(targetString, " ", "")); } static function trimLeft(targetString) { var _local4 = 0; var _local2 = ""; var _local1 = 0; while (_local1 < targetString.length) { _local2 = targetString.charAt(_local1); if (_local2 != " ") { _local4 = _local1; break; } _local1++; } return(targetString.substr(_local4)); } static function trimRight(targetString) { var _local4 = targetString.length - 1; var _local3 = ""; var _local1 = targetString.length - 1; while (_local1 >= 0) { _local3 = targetString.charAt(_local1); if (_local3 != " ") { _local4 = _local1; break; } _local1--; } return(targetString.substring(0, _local4 + 1)); } static function trimOuter(targetString) { return(trimLeft(trimRight(targetString))); } static function getCharsArray(targetString, hasBlankSpace) { var _local1 = targetString; if (hasBlankSpace == false) { _local1 = trimAll(targetString); } return(_local1.split("")); } static function startsWith(targetString, subString) { return(targetString.indexOf(subString) == 0); } static function endsWith(targetString, subString) { return(targetString.lastIndexOf(subString) == (targetString.length - subString.length)); } }
Symbol 314 MovieClip [__Packages.org.aswing.util.Delegate] Frame 0
class org.aswing.util.Delegate { var func; function Delegate (f) { func = f; } static function create(obj, func) { var _local3 = new Array(); var _local2 = 2; while (_local2 < arguments.length) { _local3[_local2 - 2] = arguments[_local2]; _local2++; } return(createWithArgs(obj, func, _local3)); } static function createWithArgs(obj, func, args) { var _local2 = function () { var _local3 = arguments.callee.target; var _local4 = arguments.callee.func; var _local2 = arguments.concat(arguments.callee.args); return(_local4.apply(_local3, _local2)); }; _local2.target = obj; _local2.func = func; _local2.args = args; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }
Symbol 315 MovieClip [__Packages.org.aswing.util.ArrayUtils] Frame 0
class org.aswing.util.ArrayUtils { function ArrayUtils () { } static function each(arr, operation) { var _local1 = 0; while (_local1 < arr.length) { operation(arr[_local1]); _local1++; } } static function setSize(arr, size) { if (size < 0) { size = 0; } if (size == arr.length) { return(undefined); } if (size > arr.length) { arr[size - 1] = undefined; } else { arr.splice(size); } } static function removeFromArray(arr, obj) { var _local1 = 0; while (_local1 < arr.length) { if (arr[_local1] == obj) { arr.splice(_local1, 1); return(_local1); } _local1++; } return(-1); } static function removeAllFromArray(arr, obj) { var _local1 = 0; while (_local1 < arr.length) { if (arr[_local1] == obj) { arr.splice(_local1, 1); _local1--; } _local1++; } } static function removeAllBehindSomeIndex(array, index) { if (index <= 0) { array.splice(0, array.length); return(undefined); } var _local3 = array.length; var _local1 = index + 1; while (_local1 < _local3) { array.pop(); _local1++; } } static function indexInArray(arr, obj) { var _local1 = 0; while (_local1 < arr.length) { if (arr[_local1] == obj) { return(_local1); } _local1++; } return(-1); } static function cloneArray(arr) { return(arr.concat()); } }
Symbol 316 MovieClip [__Packages.org.aswing.Event] Frame 0
class org.aswing.Event { var _source, _type, _argumets; function Event (source, type, additionalParams) { _source = source; _type = type; _argumets = [_source].concat(additionalParams); } function getType() { return(_type); } function getSource() { return(_source); } function getArguments() { return(_argumets); } }
Symbol 317 MovieClip [__Packages.org.aswing.Component] Frame 0
class org.aswing.Component extends org.aswing.EventDispatcher { static var keyListener, mouseListener, pressingComponent, pressingPoint; var bounds, clipBounds, enabled, visible, clipMasked, displayable, valid, alpha, useHandCursor, triggerEnabled, alignmentX, alignmentY, lastClickTime, clickCount, focusTraversalKeys, fontValidated, toolTipText, dragEnabled, dropTrigger, antiBlurring, cachePreferSizes, id, uiProperties, opaque, focusable, border, font, background, foreground, awmlID, awmlNamespace, awmlIndex, name, ui, root_mc, parent, dispatchEvent, createEventObj, trigger_mc, target_mc, clip_mc, cachedMaximumSize, cachedMinimumSize, cachedPreferredSize, clientProperty, minimumSize, maximumSize, preferredSize, dragAcceptableInitiator, constraints, _lastClickPoint; function Component () { super(); setName("Component"); bounds = new org.aswing.geom.Rectangle(0, 0, 0, 0); clipBounds = null; enabled = true; visible = true; clipMasked = true; displayable = false; valid = false; alpha = 100; useHandCursor = false; triggerEnabled = true; alignmentX = 0; alignmentY = 0; lastClickTime = 0; clickCount = 0; focusTraversalKeys = null; fontValidated = false; toolTipText = null; dragEnabled = false; dropTrigger = false; antiBlurring = null; cachePreferSizes = null; if (idCounter < org.aswing.util.MathUtils.STRING_REPRESENTABLE_MAX) { id = idCounter + ""; idCounter++; } else { id = new Object(); } initSingletonListeners(); uiProperties = new Object(); uiProperties.opaque = false; uiProperties.focusable = true; opaque = undefined; focusable = undefined; border = undefined; font = org.aswing.plaf.ASFontUIResource.createResourceFont(org.aswing.ASFont.getASFont()); background = org.aswing.plaf.ASColorUIResource.createResourceColor(org.aswing.ASColor.__get__WHITE()); foreground = org.aswing.plaf.ASColorUIResource.createResourceColor(org.aswing.ASColor.__get__BLACK()); } static function get creater() { return(org.aswing.ElementCreater.getInstance()); } static function initSingletonListeners() { if (keyListener == undefined) { keyListener = {onKeyDown:org.aswing.util.Delegate.create(org.aswing.Component, ____onKeyDown__), onKeyUp:org.aswing.util.Delegate.create(org.aswing.Component, ____onKeyUp__)}; Key.addListener(keyListener); } if (mouseListener == undefined) { mouseListener = {onMouseWheel:org.aswing.util.Delegate.create(org.aswing.Component, ____onMouseWheel__), onMouseMove:org.aswing.util.Delegate.create(org.aswing.Component, ____onMouseMove__), onMouseUp:org.aswing.util.Delegate.create(org.aswing.Component, ____onMouseUp__)}; Mouse.addListener(mouseListener); } } static function ____onMouseWheel__(delta) { var _local1 = org.aswing.FocusManager.getCurrentManager().getFocusOwner(); if (_local1.isShowing()) { _local1.fireMouseWheelEvent(delta); } } static function ____onMouseMove__() { if ((pressingComponent != null) && (pressingPoint != null)) { var _local2 = pressingComponent.getMousePosition(); if (_local2.distance(pressingPoint) > 1) { var _local1 = pressingComponent; while ((_local1 != null) && (!_local1.isDragEnabled())) { _local1 = _local1.getParent(); } if (_local1 != null) { _local1.fireDragRecognizedEvent(pressingComponent); } pressingComponent = null; pressingPoint = null; } } } static function ____onMouseUp__() { pressingPoint = null; pressingComponent = null; } static function ____onKeyDown__() { if (org.aswing.FocusManager.isTraversalEnabled()) { var _local1 = org.aswing.FocusManager.getCurrentManager().getFocusOwner(); if (_local1.isShowing()) { _local1.fireKeyDownEvent(); } } } static function ____onKeyUp__() { if (org.aswing.FocusManager.isTraversalEnabled()) { var _local1 = org.aswing.FocusManager.getCurrentManager().getFocusOwner(); if (_local1.isShowing()) { _local1.fireKeyUpEvent(); } } } function getID() { return(id); } function setAwmlID(id) { awmlID = id; } function getAwmlID() { return(awmlID); } function setAwmlNamespace(namespace) { awmlNamespace = namespace; } function getAwmlNamespace() { return(awmlNamespace); } function setAwmlIndex(index) { awmlIndex = index; } function getAwmlIndex() { return(awmlIndex); } function getUIClassID() { return("ComponentUI"); } function setName(name) { this.name = name; } function getName() { return(name); } function updateUI() { } function setUI(newUI) { if (ui != null) { ui.uninstallUI(this); } ui = newUI; if (ui != null) { ui.installUI(this); if (isDisplayable()) { ui.create(this); } } revalidate(); repaint(); } function getDefaultBasicUIClass() { return(null); } function setUIProperty(name, value) { uiProperties[name] = value; } function getUIProperty(name) { return(uiProperties[name]); } static function setDefaultAntiBlurring(b) { defaultAntiBlurring = b; } static function isDefaultAntiBlurring() { return(defaultAntiBlurring); } function setAntiBlurring(b) { if (antiBlurring != b) { antiBlurring = b; revalidate(); repaint(); } } function isAntiBlurring() { return(((antiBlurring != null) ? (antiBlurring) : (isDefaultAntiBlurring()))); } function print(printJob, printArea, options) { var _local2 = root_mc + ""; if (printArea == null) { printArea = {xMin:0, xMax:getWidth(), yMin:0, yMax:getHeight()}; } return(printJob.addPage(_local2, printArea, options)); } function addTo(parent) { this.parent = parent; root_mc = parent.createChildMC(name); if (root_mc != undefined) { root_mc[PATH_TO_OWNER_COMPONENT] = this; root_mc._x = bounds.x; root_mc._y = bounds.y; create(); initialize(); displayable = true; org.aswing.ASWingUtils.addDisplayableComponent(this); repaint(); revalidate(); dispatchEvent(createEventObj(ON_CREATED)); } } function removeFromContainer() { if (parent != null) { parent.remove(this); parent = null; } else { destroy(); } } function destroy() { if (root_mc != null) { var _local2 = root_mc._parent; root_mc.unloadMovie(); root_mc.removeMovieClip(); delete _local2[root_mc._name]; root_mc = null; displayable = false; dispatchEvent(createEventObj(ON_DESTROY)); } org.aswing.ASWingUtils.removeDisplayableComponent(this); } function getParent() { return(parent); } function initActive() { var _local2 = trigger_mc; if (_local2 != null) { _local2.onRollOver = org.aswing.util.Delegate.create(this, ____onRollOver); _local2.onRollOut = org.aswing.util.Delegate.create(this, ____onRollOut); _local2.onPress = org.aswing.util.Delegate.create(this, ____onPress); _local2.onRelease = org.aswing.util.Delegate.create(this, ____onRelease); _local2.onReleaseOutside = org.aswing.util.Delegate.create(this, ____onReleaseOutside); _local2.onDragOver = org.aswing.util.Delegate.create(this, ____onDragOver); _local2.onDragOut = org.aswing.util.Delegate.create(this, ____onDragOut); _local2.enabled = enabled; } _local2._visible = triggerEnabled; _local2.useHandCursor = useHandCursor; } function setBorder(b) { if (!(border === b)) { uninstallBorderWhenNextPaint(border); border = b; repaint(); revalidate(); } } function getBorder() { return(border); } function getInsets() { if (border == null) { return(new org.aswing.Insets()); } return(border.getBorderInsets(this, getSize().getBounds())); } function create() { trigger_mc = creater.createMC(root_mc, "trigger_mc"); target_mc = creater.createMC(root_mc, "target_mc"); clip_mc = creater.createMC(root_mc, "clip_mc"); ui.create(this); } function initialize() { var _local2 = new org.aswing.graphics.Graphics(trigger_mc); _local2.fillRectangle(new org.aswing.graphics.SolidBrush(0, 0), 0, 0, 1, 1); _local2 = new org.aswing.graphics.Graphics(clip_mc); _local2.fillRectangle(new org.aswing.graphics.SolidBrush(0, 100), 0, 0, 1, 1); target_mc.setMask(clip_mc); initActive(); setEnabled(enabled); setClipMasked(clipMasked); root_mc._visible = isVisible(); root_mc._alpha = getAlpha(); } function paint(b) { target_mc.clear(); var _local2 = new org.aswing.graphics.Graphics(target_mc); ui.paint(this, _local2, b); if (border != null) { border.paintBorder(this, _local2, getInsets().getOutsideBounds(b)); } dispatchEvent(createEventObj(ON_PAINT)); } function getGraphics() { return(new org.aswing.graphics.Graphics(target_mc)); } function getFocusGraphics() { var _local2 = getFocusMC(); if (_local2 == undefined) { _local2 = creater.createMCWithName(root_mc, FOCUS_MC_NAME); } _local2.clear(); return(new org.aswing.graphics.Graphics(_local2)); } function clearFocusGraphicsByUI() { ui.clearFocus(this); } function clearFocusGraphics() { getFocusMC().removeMovieClip(); } function getFocusMC() { return(root_mc[FOCUS_MC_NAME]); } function repaint() { org.aswing.RepaintManager.getInstance().addRepaintComponent(this); } function getPaintBounds() { return(getInsets().getInsideBounds(getPaintBoundsInRoot())); } function paintImmediately() { if (isDisplayable() && (isVisible())) { var _local2 = getPaintBoundsInRoot(); layoutClipAndTrigger(_local2); paint(getInsets().getInsideBounds(_local2)); } } function layoutClipAndTrigger(paintBounds) { if (paintBounds == undefined) { paintBounds = getPaintBoundsInRoot(); } else { paintBounds = paintBounds.clone(); } if (clipBounds != null) { paintBounds.x = Math.max(paintBounds.x, clipBounds.x); paintBounds.y = Math.max(paintBounds.y, clipBounds.y); paintBounds.width = Math.min(paintBounds.width, clipBounds.width); paintBounds.height = Math.min(paintBounds.height, clipBounds.height); } clip_mc._x = paintBounds.x; clip_mc._y = paintBounds.y; clip_mc._width = Math.min(getWidth(), paintBounds.width); clip_mc._height = Math.min(getHeight(), paintBounds.height); trigger_mc._x = paintBounds.x; trigger_mc._y = paintBounds.y; trigger_mc._width = clip_mc._width; trigger_mc._height = clip_mc._height; } function setClipBounds(x, y, width, height) { var _local2 = false; if ((x == null) && (clipBounds != null)) { clipBounds = null; _local2 = true; } else { var _local3 = new org.aswing.geom.Rectangle(x, y, width, height); if (!_local3.equals(clipBounds)) { clipBounds = _local3; _local2 = true; } } if (_local2) { layoutClipAndTrigger(); } } function getClipBounds() { if (clipBounds == null) { return(null); } return(clipBounds.clone()); } function setClipSize(width, height) { var _local2 = new org.aswing.geom.Dimension(width, height); clip_mc._width = Math.min(getWidth(), _local2.width); clip_mc._height = Math.min(getHeight(), _local2.height); } function getPaintBoundsInRoot() { var _local5 = getMinimumSize(); var _local4 = getMaximumSize(); var _local3 = getSize(); var _local2 = new org.aswing.geom.Rectangle(0, 0, _local3.width, _local3.height); if (_local3.width > _local4.width) { _local2.width = _local4.width; _local2.x = (_local3.width - _local2.width) * getAlignmentX(); } if (_local3.height > _local4.height) { _local2.height = _local4.height; _local2.y = (_local3.height - _local2.height) * getAlignmentY(); } if (_local2.width < _local5.width) { _local2.width = _local5.width; } if (_local2.height < _local5.height) { _local2.height = _local5.height; } if (isAntiBlurring()) { org.aswing.util.MathUtils.roundRectangle(_local2); } return(_local2); } function size() { repaint(); invalidate(); } function revalidate() { invalidate(); org.aswing.RepaintManager.getInstance().addInvalidComponent(this); } function revalidateIfNecessary() { org.aswing.RepaintManager.getInstance().addInvalidComponent(this); } function invalidate() { valid = false; cachedMaximumSize = null; cachedMinimumSize = null; cachedPreferredSize = null; if ((parent != null) && (parent.isValid())) { parent.invalidate(); } } function validate() { if (!valid) { doLayout(); valid = true; } } function isValidateRoot() { return(false); } function isValid() { return(valid); } function doLayout() { if (isDisplayable()) { validateLocation(); root_mc._visible = visible; } } function setClipMasked(m) { clipMasked = m; clip_mc._visible = clipMasked; if (clipMasked) { target_mc.setMask(clip_mc); } else { target_mc.setMask(null); } } function isClipMasked() { return(clipMasked); } function setVisible(v) { if (v != visible) { visible = v; if (v) { dispatchEvent(createEventObj(ON_SHOWN)); } else { dispatchEvent(createEventObj(ON_HIDDEN)); } if (visible) { repaint(); } revalidate(); } } function isVisible() { return(visible); } function isDisplayable() { if (displayable && (!org.aswing.util.MCUtils.isMovieClipExist(root_mc))) { trace(("/w/ " + this) + " Logic Error, root_mc is not exist but the component is still displayable, you forgot call destroy method!"); return(false); } return(displayable); } function setFont(newFont) { if (font != newFont) { font = newFont; setFontValidated(false); repaint(); revalidate(); } } function isFontValidated() { return(fontValidated); } function setFontValidated(b) { fontValidated = b; } function getFont() { if (font != null) { return(font); } return(((parent != null) ? (parent.getFont()) : (font))); } function setBackground(c) { if (background != c) { background = c; repaint(); } } function getBackground() { if (background != null) { return(background); } return(((parent != null) ? (parent.getBackground()) : (background))); } function setForeground(c) { if (foreground != c) { foreground = c; repaint(); } } function getForeground() { if (foreground != null) { return(foreground); } return(((parent != null) ? (parent.getForeground()) : (foreground))); } function setOpaque(b) { if (opaque != b) { opaque = b; repaint(); } } function isOpaque() { if (opaque === undefined) { return(uiProperties.opaque == true); } return(opaque); } function setAlpha(alpha) { this.alpha = alpha; root_mc._alpha = alpha; } function getAlpha() { return(alpha); } function setBounds() { var _local3 = new org.aswing.geom.Rectangle(arguments[0], arguments[1], arguments[2], arguments[3]); setLocation(_local3.x, _local3.y); setSize(_local3.width, _local3.height); } function setBoundsImmediately() { var _local3 = new org.aswing.geom.Rectangle(arguments[0], arguments[1], arguments[2], arguments[3]); if ((_local3.width != bounds.width) || (_local3.height != bounds.height)) { setLocation(_local3.x, _local3.y); setSize(_local3.width, _local3.height); } else { setLocationImmediately(_local3.x, _local3.y); } } function getBounds(b) { if (b != undefined) { b.setRect(bounds); return(b); } return(new org.aswing.geom.Rectangle(bounds.x, bounds.y, bounds.width, bounds.height)); } function setLocation() { var _local3 = new org.aswing.geom.Point(arguments[0], arguments[1]); var _local4 = new org.aswing.geom.Point(bounds.x, bounds.y); if (!_local3.equals(_local4)) { bounds.setLocation(_local3); dispatchEvent(createEventObj(ON_MOVED, _local4, _local3)); invalidate(); } } function setLocationImmediately() { var _local3 = new org.aswing.geom.Point(arguments[0], arguments[1]); var _local4 = new org.aswing.geom.Point(bounds.x, bounds.y); if (!_local3.equals(_local4)) { bounds.setLocation(_local3); dispatchEvent(createEventObj(ON_MOVED, _local4, _local3)); validateLocation(); } } function validateLocation() { if (isDisplayable()) { if (isAntiBlurring()) { if (getParent() instanceof org.aswing.MCPanel) { org.aswing.util.MCUtils.pixelSnapMovieClip(root_mc, bounds.x, bounds.y); } else { root_mc._x = Math.round(bounds.x); root_mc._y = Math.round(bounds.y); } } else { root_mc._x = bounds.x; root_mc._y = bounds.y; } } } function setGlobalLocation() { var _local3 = new org.aswing.geom.Point(arguments[0], arguments[1]); root_mc._parent.globalToLocal(_local3); if (root_mc._parent == null) { trace("root_mc._parent == null : " + this); } setLocation(_local3); } function setGlobalLocationImmediately() { var _local3 = new org.aswing.geom.Point(arguments[0], arguments[1]); root_mc._parent.globalToLocal(_local3); if (root_mc._parent == null) { trace("root_mc._parent == null : " + this); } setLocationImmediately(_local3); } function getLocation(p) { if (p != undefined) { p.setLocation(bounds.x, bounds.y); return(p); } return(new org.aswing.geom.Point(bounds.x, bounds.y)); } function getGlobalLocation(p) { var _local2 = new org.aswing.geom.Point(bounds.x, bounds.y); root_mc._parent.localToGlobal(_local2); if (p != undefined) { p.setLocation(_local2); return(p); } return(_local2); } function setSize() { var _local3 = new org.aswing.geom.Dimension(arguments[0], arguments[1]); _local3.width = Math.max(0, _local3.width); _local3.height = Math.max(0, _local3.height); var _local4 = new org.aswing.geom.Dimension(bounds.width, bounds.height); if (!_local3.equals(_local4)) { bounds.setSize(_local3); size(); dispatchEvent(createEventObj(ON_RESIZED, _local4, _local3)); } } function getSize(s) { if (s != undefined) { s.setSize(bounds.width, bounds.height); return(s); } return(new org.aswing.geom.Dimension(bounds.width, bounds.height)); } function setWidth(width) { setSize(width, getHeight()); } function setHeight(height) { setSize(getWidth(), height); } function getWidth() { return(bounds.width); } function getHeight() { return(bounds.height); } function setX(x) { setLocation(x, getY()); } function setY(y) { setLocation(getX(), y); } function getX() { return(bounds.x); } function getY() { return(bounds.y); } function setToolTipText(t) { toolTipText = t; if (t == null) { org.aswing.overflow.JSharedToolTip.getSharedInstance().unregisterComponent(this); } else { org.aswing.overflow.JSharedToolTip.getSharedInstance().registerComponent(this); } } function getToolTipText() { return(toolTipText); } function setAlignmentX(ax) { if (alignmentX != ax) { alignmentX = ax; repaint(); } } function setAlignmentY(ay) { if (alignmentY != ay) { alignmentY = ay; repaint(); } } function getAlignmentX() { return(alignmentX); } function getAlignmentY() { return(alignmentY); } function getClientProperty(key) { return(clientProperty.get(key)); } function putClientProperty(key, value) { if (clientProperty == undefined) { clientProperty = new org.aswing.util.HashMap(); } clientProperty.put(key, value); } function countMinimumSize() { if (ui != null) { return(ui.getMinimumSize(this)); } return(getInsets().getOutsideSize(new org.aswing.geom.Dimension(0, 0))); } function countMaximumSize() { if (ui != null) { return(ui.getMaximumSize(this)); } return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } function countPreferredSize() { if (ui != null) { return(ui.getPreferredSize(this)); } return(getSize()); } static function setDefaultCachePreferSizes(b) { defaultCashePresSizes = b; } static function isDefaultCachePreferSizes() { return(defaultCashePresSizes); } function setCachePreferSizes(b) { cachePreferSizes = b; if (!isCachePreferSizes()) { cachedMaximumSize = null; cachedMinimumSize = null; cachedPreferredSize = null; } } function isCachePreferSizes() { return(((cachePreferSizes != null) ? (cachePreferSizes) : (isDefaultCachePreferSizes()))); } function getMinimumSize() { if (minimumSize != null) { return(minimumSize.clone()); } if (isCachePreferSizes() && (cachedMinimumSize != null)) { return(cachedMinimumSize.clone()); } if (isCachePreferSizes()) { cachedMinimumSize = countMinimumSize(); return(cachedMinimumSize.clone()); } return(countMinimumSize()); } function getMaximumSize() { if (maximumSize != null) { return(maximumSize.clone()); } if (isCachePreferSizes() && (cachedMaximumSize != null)) { return(cachedMaximumSize.clone()); } if (isCachePreferSizes()) { cachedMaximumSize = countMaximumSize(); return(cachedMaximumSize.clone()); } return(countMaximumSize()); } function getPreferredSize() { if (preferredSize != null) { return(preferredSize.clone()); } if (isCachePreferSizes() && (cachedPreferredSize != null)) { return(cachedPreferredSize.clone()); } if (isCachePreferSizes()) { cachedPreferredSize = countPreferredSize(); return(cachedPreferredSize.clone()); } return(countPreferredSize()); } function setMinimumSize() { if (arguments[0] == null) { minimumSize = null; } else if (arguments[1] != null) { minimumSize = new org.aswing.geom.Dimension(arguments[0], arguments[1]); } else { minimumSize = new org.aswing.geom.Dimension(arguments[0].width, arguments[0].height); } } function setMaximumSize() { if (arguments[0] == null) { maximumSize = null; } else if (arguments[1] != null) { maximumSize = new org.aswing.geom.Dimension(arguments[0], arguments[1]); } else { maximumSize = new org.aswing.geom.Dimension(arguments[0].width, arguments[0].height); } } function setPreferredSize() { if (arguments[0] == null) { preferredSize = null; } else if (arguments[1] != null) { preferredSize = new org.aswing.geom.Dimension(arguments[0], arguments[1]); } else { preferredSize = new org.aswing.geom.Dimension(arguments[0].width, arguments[0].height); } } function getPreferredWidth() { return(getPreferredSize().width); } function setPreferredWidth(preferredWidth) { setPreferredSize(preferredWidth, getPreferredHeight()); } function getPreferredHeight() { return(getPreferredSize().height); } function setPreferredHeight(preferredHeight) { setPreferredSize(getPreferredWidth(), preferredHeight); } function getMaximumWidth() { return(getMaximumSize().width); } function setMaximumWidth(maximumWidth) { setMaximumSize(maximumWidth, getMaximumHeight()); } function getMaximumHeight() { return(getMaximumSize().height); } function setMaximumHeight(maximumHeight) { setMaximumSize(getMaximumWidth(), maximumHeight); } function getMinimumWidth() { return(getMinimumSize().width); } function setMinimumWidth(minimumWidth) { setMinimumSize(minimumWidth, getMinimumHeight()); } function getMinimumHeight() { return(getMinimumSize().height); } function setMinimumHeight(minimumHeight) { setMinimumSize(getMinimumWidth(), minimumHeight); } function setEnabled(b) { trigger_mc.enabled = b; if (enabled != b) { enabled = b; repaint(); } } function isEnabled() { return(enabled); } function setTriggerEnabled(b) { triggerEnabled = b; trigger_mc._visible = b; } function isTriggerEnabled() { return(triggerEnabled); } function setUseHandCursor(b) { useHandCursor = b; trigger_mc.useHandCursor = b; } function isUseHandCursor() { return(useHandCursor); } function setDragEnabled(b) { dragEnabled = b; } function isDragEnabled() { return(dragEnabled); } function setDropTrigger(b) { dropTrigger = b; } function isDropTrigger() { return(dropTrigger); } function createMovieClipOnRoot(nameStart, depth) { return(creater.createMC(root_mc, nameStart, depth)); } function createMovieClip(nameStart, depth) { return(creater.createMC(target_mc, nameStart, depth)); } function attachMovieClip(linkage, nameStart, depth) { return(creater.attachMC(target_mc, linkage, nameStart, depth)); } function createTextField(nameStart, depth) { return(creater.createTF(target_mc, nameStart, depth)); } function getRootAncestorMovieClip() { var _local2 = root_mc; var _local3 = org.aswing.ASWingUtils.getRootMovieClip(); while ((_local2._parent != null) && (_local2 != _local3)) { _local2 = _local2._parent; } return(_local2); } function getComponentRootAncestorMovieClip() { var _local3 = org.aswing.ASWingUtils.getAncestorComponent(this); var _local2 = _local3.root_mc; return(_local2); } function getDepth() { return(root_mc.getDepth()); } function swapDepths(target) { root_mc.swapDepths(target); } function bringToTopDepth() { org.aswing.util.DepthManager.bringToTop(root_mc); } function bringToBottomDepth() { org.aswing.util.DepthManager.bringToBottom(root_mc); } function hitTest(x, y, shapeFlag) { return(clip_mc.hitTest(x, y, shapeFlag)); } function hitTestMouse() { var _local3 = _level0; if (!org.aswing.util.MCUtils.isMovieClipExist(_local3)) { trace("level0 not exists"); _local3 = _root; } return(clip_mc.hitTest(_level0._xmouse, _level0._ymouse)); } function getMousePosition() { return(new org.aswing.geom.Point(root_mc._xmouse, root_mc._ymouse)); } function globalToComponent(p) { var _local2 = new org.aswing.geom.Point(p.x, p.y); root_mc.globalToLocal(_local2); return(_local2); } function componentToGlobal(p) { var _local2 = new org.aswing.geom.Point(p.x, p.y); root_mc.localToGlobal(_local2); return(_local2); } function getFocusCycleRootAncestor() { var _local2 = getParent(); while ((_local2 != null) && (!_local2.isFocusCycleRoot())) { _local2 = _local2.getParent(); } return(_local2); } function isFocusCycleRootOfContainer(container) { var _local2 = getFocusCycleRootAncestor(); return(_local2 == container); } function isShowing() { if (isDisplayable() && (isVisible())) { if (parent == null) { return(true); } return(parent.isShowing()); } return(false); } function isFocusOwner() { return(org.aswing.FocusManager.getCurrentManager().getFocusOwner() == this); } function requestFocus() { if (isShowing() && (isFocusable())) { var _local2 = org.aswing.FocusManager.getCurrentManager().getFocusOwner(); if (_local2 != this) { if (canChangeFocusFromComponent(_local2)) { org.aswing.FocusManager.getCurrentManager().setFocusOwner(this); _local2.__onFocusLost(); __onFocusGained(); activeWindowOwner(); return(true); } } } return(false); } function canChangeFocusFromComponent(currentFocusOwner) { var _local2 = org.aswing.FocusManager.getCurrentManager().getActiveWindow(); var _local3 = org.aswing.ASWingUtils.getWindowAncestor(this); if (((_local3 != _local2) && (this != _local3)) && ((_local2 != null) && (_local2.isModal()))) { return(true); } return(true); } function activeWindowOwner() { var _local2 = org.aswing.ASWingUtils.getWindowAncestor(this); if (_local2 != null) { _local2.setActive(true); } } function transferFocus() { return(transferFocusWithDirection(1)); } function transferFocusBackward() { return(transferFocusWithDirection(-1)); } function transferFocusWithDirection(dir) { var _local2 = getFocusCycleRootAncestor(); var _local3 = this; while ((_local2 != null) && (!((_local2.isShowing() && (_local2.isFocusable())) && (_local2.isEnabled())))) { _local3 = _local2; _local2 = _local3.getFocusCycleRootAncestor(); } if (_local2 != null) { var _local5 = _local2.getFocusTraversalPolicy(); var _local4; if (dir < 0) { _local4 = _local5.getComponentBefore(_local2, _local3); } else { _local4 = _local5.getComponentAfter(_local2, _local3); } if (_local4 == null) { _local4 = _local5.getDefaultComponent(_local2); } if (_local4 != null) { var _local6 = _local4.requestFocus(); return(_local6); } } return(false); } function transferFocusUpCycle() { var _local2; _local2 = getFocusCycleRootAncestor(); while ((_local2 != null) && (!((_local2.isShowing() && (_local2.isFocusable())) && (_local2.isEnabled())))) { _local2 = _local2.getFocusCycleRootAncestor(); } if (_local2 != null) { var _local5 = _local2.getFocusCycleRootAncestor(); org.aswing.FocusManager.getCurrentManager().setCurrentFocusCycleRoot(((_local5 != null) ? (_local5) : (_local2))); _local2.requestFocus(); } else { var _local3 = ((this instanceof org.aswing.Container) ? (org.aswing.Container(this)) : (getParent())); while ((_local3 != null) && (!(_local3 instanceof org.aswing.JWindow))) { _local3 = _local3.getParent(); } if (_local3 != null) { var _local4 = _local3.getFocusTraversalPolicy().getDefaultComponent(_local3); if (_local4 != null) { org.aswing.FocusManager.getCurrentManager().setCurrentFocusCycleRoot(_local3); _local4.requestFocus(); } } } } function getFocusTraversalKeys(id) { var _local2 = focusTraversalKeys[id]; if (_local2 == null) { var _local3 = getParent(); if (_local3 != null) { _local2 = _local3.getFocusTraversalKeys(id); } else { _local2 = org.aswing.FocusManager.getCurrentManager().getDefaultFocusTraversalKeys(id); } } else { _local2 = _local2.concat(); } return(_local2); } function setFocusTraversalKeys(id, keys) { if (focusTraversalKeys == null) { focusTraversalKeys = new Array(); var _local2 = 0; while (_local2 < org.aswing.FocusManager.TRAVERSAL_KEY_LENGTH) { focusTraversalKeys.push(null); _local2++; } } if ((id >= 0) && (id < org.aswing.FocusManager.TRAVERSAL_KEY_LENGTH)) { focusTraversalKeys[id] = keys.concat(); } } function isFocusable() { if (focusable === undefined) { return(uiProperties.focusable == true); } return(focusable); } function setFocusable(focusable) { this.focusable = focusable; } function addDragAcceptableInitiator(com) { if (dragAcceptableInitiator == null) { dragAcceptableInitiator = new org.aswing.util.HashMap(); } dragAcceptableInitiator.put(com.getID(), true); } function removeDragAcceptableInitiator(com) { if (dragAcceptableInitiator != null) { dragAcceptableInitiator.remove(com.getID()); } } function isDragAcceptableInitiator(com) { if (dragAcceptableInitiator != null) { return(dragAcceptableInitiator.containsKey(com.getID())); } return(false); } function toString() { return((("Component - " + name) + " mc:") + root_mc); } function uninstallBorderWhenNextPaint(border) { org.aswing.overflow.ComponentDecorator.removeBorderWhenNextPaint(this, border); } function uninstallIconWhenNextPaint(icon) { org.aswing.overflow.ComponentDecorator.removeIconWhenNextPaint(this, icon); } function setConstraints(constraints) { this.constraints = constraints; } function getConstraints() { return(constraints); } static function getOwnerComponent(mc) { do { var _local2 = org.aswing.Component(mc[PATH_TO_OWNER_COMPONENT]); if (_local2 != null) { return(_local2); } mc = mc._parent; } while (mc != null); return(null); } function fireStateChanged() { dispatchEvent(createEventObj(ON_STATE_CHANGED)); } function fireKeyDownEvent() { dispatchEvent(createEventObj(ON_KEY_DOWN)); } function fireKeyUpEvent() { dispatchEvent(createEventObj(ON_KEY_UP)); } function fireMouseWheelEvent(delta) { dispatchEvent(createEventObj(ON_MOUSE_WHEEL, delta)); } function fireDragRecognizedEvent(touchedChild) { dispatchEvent(createEventObj(ON_DRAG_RECOGNIZED, touchedChild)); } function fireDragEnterEvent(dragInitiator, sourceData, mousePos) { dispatchEvent(createEventObj(ON_DRAG_ENTER, dragInitiator, sourceData, mousePos)); } function fireDragOverringEvent(dragInitiator, sourceData, mousePos) { dispatchEvent(createEventObj(ON_DRAG_OVERRING, dragInitiator, sourceData, mousePos)); } function fireDragExitEvent(dragInitiator, sourceData, mousePos) { dispatchEvent(createEventObj(ON_DRAG_EXIT, dragInitiator, sourceData, mousePos)); } function fireDragDropEvent(dragInitiator, sourceData, mousePos) { dispatchEvent(createEventObj(ON_DRAG_DROP, dragInitiator, sourceData, mousePos)); } function supplyOnPress() { __onPress(); } function click() { ____onRollOver(); ____onPress(); ____onRelease(); ____onRollOut(); } function __onPress() { pressingPoint = getMousePosition(); pressingComponent = this; parent.__onChildPressed(this); dispatchEvent(createEventObj(ON_PRESS)); requestFocus(); } function __onRelease() { dispatchEvent(createEventObj(ON_RELEASE)); } function __onReleaseOutside() { dispatchEvent(createEventObj(ON_RELEASEOUTSIDE)); } function __onRollOver() { dispatchEvent(createEventObj(ON_ROLLOVER)); } function __onRollOut() { dispatchEvent(createEventObj(ON_ROLLOUT)); } function __onDragOver() { dispatchEvent(createEventObj(ON_DRAGOVER)); } function __onDragOut() { dispatchEvent(createEventObj(ON_DRAGOUT)); } function __onClick() { var _local2 = getTimer(); var _local3 = getMousePosition(); if (_local3.equals(_lastClickPoint) && ((_local2 - lastClickTime) < MAX_CLICK_INTERVAL)) { clickCount++; } else { clickCount = 1; } lastClickTime = _local2; dispatchEvent(createEventObj(ON_CLICKED, clickCount)); _lastClickPoint = _local3; } function __onFocusGained() { if (isFocusOwner() && (org.aswing.FocusManager.getCurrentManager().isTraversing())) { ui.paintFocus(this, getFocusGraphics()); } __onFocusGainedExtraFix(); dispatchEvent(createEventObj(ON_FOCUS_GAINED)); } function __onFocusLost() { clearFocusGraphicsByUI(); dispatchEvent(createEventObj(ON_FOCUS_LOST)); } function getInternalFocusObj() { return(clip_mc); } function __onFocusGainedExtraFix() { org.aswing.FocusManager.getCurrentManager().receiveFocus(getInternalFocusObj()); } function ____onPress() { __onPress(); } function ____onRelease() { __onRelease(); __onClick(); } function ____onReleaseOutside() { __onReleaseOutside(); } function ____onRollOver() { __onRollOver(); } function ____onRollOut() { __onRollOut(); } function ____onDragOver() { __onDragOver(); } function ____onDragOut() { __onDragOut(); } static var ON_CREATED = "onCreated"; static var ON_DESTROY = "onDestroy"; static var ON_PAINT = "onPaint"; static var ON_SHOWN = "onShown"; static var ON_HIDDEN = "onHidden"; static var ON_MOVED = "onMoved"; static var ON_RESIZED = "onResized"; static var ON_DRAG_RECOGNIZED = "onDragRecognized"; static var ON_DRAG_ENTER = "onDragEnter"; static var ON_DRAG_OVERRING = "onDragOverring"; static var ON_DRAG_EXIT = "onDragExit"; static var ON_DRAG_DROP = "onDragDrop"; static var ON_STATE_CHANGED = "onStateChanged"; static var ON_PRESS = "onPress"; static var ON_RELEASE = "onRelease"; static var ON_RELEASEOUTSIDE = "onReleaseOutSide"; static var ON_ROLLOVER = "onRollOver"; static var ON_ROLLOUT = "onRollOut"; static var ON_DRAGOVER = "onDragOver"; static var ON_DRAGOUT = "onDragOut"; static var ON_CLICKED = "onClicked"; static var ON_FOCUS_GAINED = "onFocusGained"; static var ON_FOCUS_LOST = "onFocusLost"; static var ON_KEY_DOWN = "onKeyDown"; static var ON_KEY_UP = "onKeyUp"; static var ON_MOUSE_WHEEL = "onMouseWheel"; static var MAX_CLICK_INTERVAL = 400; static var PATH_TO_OWNER_COMPONENT = "_aswing_p_t_o_c_"; static var idCounter = 0; static var defaultAntiBlurring = true; static var defaultCashePresSizes = true; static var FOCUS_MC_NAME = "asw_focus_des_mc"; }
Symbol 318 MovieClip [__Packages.org.aswing.ElementCreater] Frame 0
class org.aswing.ElementCreater { static var _instance; function ElementCreater () { } static function getInstance() { if (_instance == undefined) { _instance = new org.aswing.ElementCreater(); } return(_instance); } function createMC(position_mc, nameStart, depth) { return(createMCWithName(position_mc, getAvailableName(position_mc, nameStart), depth)); } function createMCWithName(position_mc, name, depth) { if (depth == undefined) { depth = org.aswing.util.DepthManager.getNextAvailableDepth(position_mc); } var _local2 = position_mc.createEmptyMovieClip(name, depth); initObjectParams(_local2, _defaultMovieClip); return(_local2); } function attachMC(position_mc, linkage, nameStart, depth) { return(attachMCWithName(position_mc, linkage, getAvailableName(position_mc, nameStart), depth)); } function attachMCWithName(position_mc, linkage, name, depth) { if (depth == undefined) { depth = org.aswing.util.DepthManager.getNextAvailableDepth(position_mc); } var _local2 = position_mc.attachMovie(linkage, name, depth); initObjectParams(_local2, _defaultMovieClip); return(_local2); } function createTF(position_mc, nameStart, depth) { return(createTFWithName(position_mc, getAvailableName(position_mc, nameStart), depth)); } function createTFWithName(position_mc, name, depth) { if (depth == undefined) { depth = org.aswing.util.DepthManager.getNextAvailableDepth(position_mc); } position_mc.createTextField(name, depth, 0, 0, 0, 0); var _local2 = position_mc[name]; initObjectParams(_local2, _defaultTextField); return(_local2); } function getAvailableName(position_mc, nameStart) { if (nameStart == undefined) { nameStart = _prefix; } while (_nextHandle < org.aswing.util.MathUtils.STRING_REPRESENTABLE_MAX) { var _local2 = nameStart + (_nextHandle++); if (!org.aswing.util.MCUtils.isMovieClipExist(position_mc[_local2])) { return(_local2); } } _nextHandle = -1; while (_nextHandle > org.aswing.util.MathUtils.STRING_REPRESENTABLE_MIN) { var _local2 = nameStart + (_nextHandle--); if (!org.aswing.util.MCUtils.isMovieClipExist(position_mc[_local2])) { return(_local2); } } trace("there_is_not_any_number_available_for_naming"); return(nameStart + "_there_is_not_any_number_available_for_naming"); } function initObjectParams(target_obj, params_obj) { if (params_obj == undefined) { return(undefined); } for (var _local3 in params_obj) { target_obj[_local3] = params_obj[_local3]; } } var _prefix = "aswing_e_"; var _nextHandle = 0; var _defaultMovieClip = {tabEnabled:false, _focusrect:false, useHandCursor:false}; var _defaultTextField = {tabEnabled:false, autoSize:"left", embedFonts:false, selectable:false, textColor:734012, antiAliasType:"advanced"}; }
Symbol 319 MovieClip [__Packages.org.aswing.util.DepthManager] Frame 0
class org.aswing.util.DepthManager { function DepthManager () { } static function bringToBottom(mc, exceptMC) { var _local7 = mc._parent; if (_local7 == null) { return(undefined); } if (mc.getDepth() == MIN_DEPTH) { return(undefined); } var _local8 = ((exceptMC == undefined) ? (MIN_DEPTH) : (exceptMC.getDepth() + 1)); if (_local7.getInstanceAtDepth(_local8) == undefined) { mc.swapDepths(_local8); return(undefined); } var _local2 = createMCSequenced(_local7); if (mc == _local2[0]) { return(undefined); } if ((mc == _local2[1]) && (exceptMC == _local2[0])) { return(undefined); } if ((exceptMC != undefined) && (exceptMC != _local2[0])) { trace("The exceptMC is not at the bottom currently!"); throw new Error("The exceptMC is not at the bottom currently!"); } var _local5 = ((exceptMC == undefined) ? 0 : 1); var _local3 = mc; var _local1 = _local5; while (_local2[_local1] != mc) { _local3.swapDepths(_local2[_local1]); _local3 = _local2[_local1]; _local1++; } } static function bringToTop(mc) { var _local6 = mc._parent; if (_local6 == null) { return(undefined); } var _local5 = _local6.getNextHighestDepth(); if (mc.getDepth() == (_local5 - 1)) { return(undefined); } if (_local5 < MAX_DEPTH) { mc.swapDepths(_local5); return(undefined); } var _local2 = createMCSequenced(_local6); if (mc == _local2[_local2.length - 1]) { return(undefined); } var _local3 = mc; var _local1 = _local2.length - 1; while (_local2[_local1] != mc) { _local3.swapDepths(_local2[_local1]); _local3 = _local2[_local1]; _local1--; } } static function isTop(mc) { var _local1 = mc._parent; if (_local1 == null) { return(true); } var _local2 = _local1.getNextHighestDepth(); return(mc.getDepth() == (_local2 - 1)); } static function isBottom(mc, exceptMC) { var _local4 = mc._parent; if (_local4 == null) { return(true); } var _local3 = mc.getDepth(); if (_local3 == MIN_DEPTH) { return(true); } var _local1 = MIN_DEPTH; while (_local1 < _local3) { var _local2 = _local4.getInstanceAtDepth(_local1); if ((_local2 != undefined) && (_local2 != exceptMC)) { return(false); } _local1++; } return(true); } static function isJustBelow(mc, aboveMC) { var _local3 = mc._parent; if (_local3 == null) { return(false); } if (aboveMC._parent != _local3) { return(false); } if (mc.getDepth() >= aboveMC.getDepth()) { return(false); } var _local1 = aboveMC.getDepth() - 1; while (_local1 >= MIN_DEPTH) { var _local2 = _local3.getInstanceAtDepth(_local1); if (_local2 != null) { if (_local2 == mc) { return(true); } return(false); } _local1--; } return(false); } static function isJustAbove(mc, belowMC) { return(isJustBelow(belowMC, mc)); } static function getNextAvailableDepth(mc) { var _local3 = mc.getNextHighestDepth(); if ((_local3 >= MIN_DEPTH) && (_local3 < MAX_DEPTH)) { return(_local3); } var _local1 = 0; while (_local1 < MAX_DEPTH) { if (mc.getInstanceAtDepth(_local1) == undefined) { return(_local1); } _local1++; } trace("Warnning : There is no any available depth in " + mc); return(-1); } static function createMCSequenced(parent) { var _local2 = new Array(); for (var _local3 in parent) { if (org.aswing.util.ObjectUtils.isMovieClip(parent[_local3])) { _local2.push(parent[_local3]); } } _local2.sort(depthComparator); return(_local2); } static function depthComparator(a, b) { if (a.getDepth() > b.getDepth()) { return(1); } return(-1); } static var MAX_DEPTH = 1048575; static var MIN_DEPTH = 0; }
Symbol 320 MovieClip [__Packages.org.aswing.util.ObjectUtils] Frame 0
class org.aswing.util.ObjectUtils { function ObjectUtils () { } static function baseClone(existObject) { if (existObject instanceof Object) { var _local2 = new Object(); for (var _local3 in existObject) { if (existObject[_local3] instanceof Object) { _local2[_local3] = new Object(); _local2[_local3] = baseClone(existObject[_local3]); } else { _local2[_local3] = existObject[_local3]; } } return(_local2); } return(existObject); } static function isString(value) { return((typeof(value) == "string") || (value instanceof String)); } static function isNumber(value) { return((typeof(value) == "number") || (value instanceof Number)); } static function isBoolean(value) { return((typeof(value) == "boolean") || (value instanceof Boolean)); } static function isFunction(value) { return((typeof(value) == "function") || (value instanceof Function)); } static function isMovieClip(value) { return((typeof(value) == "movieclip") || (value instanceof MovieClip)); } }
Symbol 321 MovieClip [__Packages.org.aswing.util.MathUtils] Frame 0
class org.aswing.util.MathUtils { function MathUtils () { } static function roundRectangle(r) { r.x = Math.round(r.x); r.y = Math.round(r.y); r.width = Math.round(r.width); r.height = Math.round(r.height); return(r); } static function roundRectanglePos(r) { r.x = Math.round(r.x); r.y = Math.round(r.y); return(r); } static function roundRectangleSize(r) { r.width = Math.round(r.width); r.height = Math.round(r.height); return(r); } static function roundSize(s) { s.width = Math.round(s.width); s.height = Math.round(s.height); return(s); } static function roundPoint(p) { p.x = Math.round(p.x); p.y = Math.round(p.y); return(p); } static function max() { var _local3 = arguments[0]; var _local2 = 1; while (_local2 < arguments.length) { if (_local3 < arguments[_local2]) { _local3 = arguments[_local2]; } _local2++; } return(_local3); } static function min() { var _local3 = arguments[0]; var _local2 = 1; while (_local2 < arguments.length) { if (_local3 > arguments[_local2]) { _local3 = arguments[_local2]; } _local2++; } return(_local3); } static function getSign(n) { return(((n > 0) ? 1 : (((n < 0) ? -1 : 0)))); } static function isTendToZero(n) { return(Math.abs(n) < 1E-8); } static var STRING_REPRESENTABLE_MAX = 999999999999999; static var STRING_REPRESENTABLE_MIN = -999999999999999; }
Symbol 322 MovieClip [__Packages.org.aswing.geom.Rectangle] Frame 0
class org.aswing.geom.Rectangle { var x, y, width, height; function Rectangle (x, y, width, height) { setRect(x, y, width, height); } function setRect(x, y, width, height) { if (x instanceof org.aswing.geom.Rectangle) { this.x = x.x; this.y = x.y; this.width = x.width; this.height = x.height; } else { if (x == undefined) { x = 0; } if (y == undefined) { y = 0; } if (width == undefined) { width = 0; } if (height == undefined) { height = 0; } this.x = x; this.y = y; this.width = width; this.height = height; } } function setLocation(x, y) { if (x instanceof org.aswing.geom.Point) { this.x = x.x; this.y = x.y; } else { this.x = x; this.y = y; } } function setSize(width, height) { if (width instanceof org.aswing.geom.Dimension) { this.width = width.width; this.height = width.height; } else { this.width = width; this.height = height; } } function getSize() { return(new org.aswing.geom.Dimension(width, height)); } function getLocation() { return(new org.aswing.geom.Point(x, y)); } function union(r) { var _local4 = Math.min(x, r.x); var _local6 = Math.max(x + width, r.x + r.width); var _local3 = Math.min(y, r.y); var _local5 = Math.max(y + height, r.y + r.height); return(new org.aswing.geom.Rectangle(_local4, _local3, _local6 - _local4, _local5 - _local3)); } function grow(h, v) { x = x - h; y = y - v; width = width + (h * 2); height = height + (v * 2); } function move(dx, dy) { if (dx == undefined) { dx = 0; } if (dy == undefined) { dy = 0; } x = x + dx; y = y + dy; } function resize(dwidth, dheight) { if (dwidth == undefined) { dwidth = 0; } if (dheight == undefined) { dheight = 0; } width = width + dwidth; height = height + dheight; } function leftTop() { return(new org.aswing.geom.Point(x, y)); } function rightTop() { return(new org.aswing.geom.Point(x + width, y)); } function leftBottom() { return(new org.aswing.geom.Point(x, y + height)); } function rightBottom() { return(new org.aswing.geom.Point(x + width, y + height)); } function containsPoint(p) { if ((((p.x < x) || (p.y < y)) || (p.x > (x + width))) || (p.y > (y + height))) { return(false); } return(true); } function equals(o) { var _local2 = org.aswing.geom.Rectangle(o); return((((x === _local2.x) && (y === _local2.y)) && (width === _local2.width)) && (height === _local2.height)); } function clone() { return(new org.aswing.geom.Rectangle(x, y, width, height)); } function toString() { return(((((((("Rectangle(x:" + x) + ",y:") + y) + ", width:") + width) + ",height:") + height) + ")"); } }
Symbol 323 MovieClip [__Packages.org.aswing.geom.Point] Frame 0
class org.aswing.geom.Point { function Point (x, y) { setLocation(x, y); } function setLocation(x, y) { if (x instanceof org.aswing.geom.Point) { this.x = x.x; this.y = x.y; } else { if (x == undefined) { x = 0; } if (y == undefined) { y = 0; } this.x = x; this.y = y; } } function move(dx, dy) { x = x + dx; y = y + dy; return(this); } function moveRadians(angle, distance) { x = x + (Math.cos(angle) * distance); y = y + (Math.sin(angle) * distance); return(this); } function nextPoint(angle, distance) { return(new org.aswing.geom.Point(x + (Math.cos(angle) * distance), y + (Math.sin(angle) * distance))); } function distanceSq(tx, ty) { var _local3; var _local2; if (tx instanceof org.aswing.geom.Point) { _local3 = tx.x; _local2 = tx.y; } else { _local3 = tx; _local2 = ty; } return(((x - _local3) * (x - _local3)) + ((y - _local2) * (y - _local2))); } function distance(tx, ty) { return(Math.sqrt(distanceSq(tx, ty))); } function equals(o) { var _local2 = org.aswing.geom.Point(o); return((x === _local2.x) && (y === _local2.y)); } function clone() { return(new org.aswing.geom.Point(x, y)); } function toString() { return(((("Point(" + x) + ",") + y) + ")"); } var x = 0; var y = 0; }
Symbol 324 MovieClip [__Packages.org.aswing.geom.Dimension] Frame 0
class org.aswing.geom.Dimension { var width, height; function Dimension (width, height) { setSize(width, height); } function setSize(width, height) { if (width instanceof org.aswing.geom.Dimension) { this.width = width.width; this.height = width.height; } else { if (width == undefined) { width = 0; } if (height == undefined) { height = 0; } this.width = width; this.height = height; } } function increase(s) { width = width + s.width; height = height + s.height; return(this); } function increaseSize(s) { return(new org.aswing.geom.Dimension(width + s.width, height + s.height)); } function decrease(s) { width = width - s.width; height = height - s.height; return(this); } function decreaseSize(s) { return(new org.aswing.geom.Dimension(width - s.width, height - s.height)); } function change(d, h) { width = width + d; h = ((h == undefined) ? (d) : (h)); height = height + h; return(this); } function changedSize(d, h) { var _local2 = new org.aswing.geom.Dimension(width, height); return(_local2.change(d, h)); } function combine(width, height) { if (width instanceof org.aswing.geom.Dimension) { this.width = Math.max(this.width, width.width); this.height = Math.max(this.height, width.height); } else { if (width != undefined) { this.width = Math.max(this.width, width); } if (height != undefined) { this.height = Math.max(this.height, height); } } return(this); } function combineSize(width, height) { return(clone().combine(width, height)); } function intersect(width, height) { if (width instanceof org.aswing.geom.Dimension) { this.width = Math.min(this.width, width.width); this.height = Math.min(this.height, width.height); } else { if (width != undefined) { this.width = Math.min(this.width, width); } if (height != undefined) { this.height = Math.min(this.height, height); } } return(this); } function intersectSize(width, height) { return(clone().intersect(width, height)); } function getBounds(x, y) { var _local3 = new org.aswing.geom.Point(x, y); var _local2 = new org.aswing.geom.Rectangle(); _local2.setLocation(_local3); _local2.setSize(width, height); return(_local2); } function equals(o) { var _local2 = org.aswing.geom.Dimension(o); return((width === _local2.width) && (height === _local2.height)); } function clone() { return(new org.aswing.geom.Dimension(width, height)); } function toString() { return(((("Dimension(" + width) + ",") + height) + ")"); } }
Symbol 325 MovieClip [__Packages.org.aswing.util.MCUtils] Frame 0
class org.aswing.util.MCUtils { function MCUtils () { } static function locationTrans(fromMC, toMC, p) { if (p == undefined) { p = new org.aswing.geom.Point(); } fromMC.localToGlobal(p); toMC.globalToLocal(p); return(p); } static function isMovieClipExist(mc) { return((mc != undefined) && (mc._totalframes != undefined)); } static function isTextFieldExist(tf) { return((tf != undefined) && (tf._height != undefined)); } static function pixelSnapMovieClip(mc, x, y) { pixelSnap(mc, x, y); } static function pixelSnapTextField(tf, x, y) { pixelSnap(tf, x, y); } static function pixelSnap(symbol, x, y) { var _local1 = new org.aswing.geom.Point(0, 0); symbol._parent.localToGlobal(_local1); symbol._x = (Math.round(x) + Math.floor(_local1.x)) - _local1.x; symbol._y = (Math.round(y) + Math.floor(_local1.y)) - _local1.y; } }
Symbol 326 MovieClip [__Packages.org.aswing.plaf.ComponentUI] Frame 0
class org.aswing.plaf.ComponentUI { function ComponentUI () { } static function fillRectBackGround(c, g, b) { var _local2 = ((c.getBackground() == null) ? (org.aswing.ASColor.__get__WHITE()) : (c.getBackground())); g.fillRectangle(new org.aswing.graphics.SolidBrush(_local2), b.x, b.y, b.width, b.height); } function installUI(c) { } function uninstallUI(c) { } function create(c) { } function paint(c, g, b) { paintBackGround(c, g, b); paintFocusIfItsFocusOwner(c); } function paintFocus(c, g) { var _local2 = c.getSize(); g.drawRectangle(new org.aswing.graphics.Pen(getDefaultFocusColorInner(), 1), 0.5, 0.5, _local2.width - 1, _local2.height - 1); g.drawRectangle(new org.aswing.graphics.Pen(getDefaultFocusColorOutter(), 1), 1.5, 1.5, _local2.width - 3, _local2.height - 3); } function getDefaultFocusColorInner() { return(org.aswing.UIManager.getColor("focusInner")); } function getDefaultFocusColorOutter() { return(org.aswing.UIManager.getColor("focusOutter")); } function clearFocus(c) { c.clearFocusGraphics(); } function paintFocusIfItsFocusOwner(c) { if (c.isFocusOwner() && (org.aswing.FocusManager.getCurrentManager().isTraversing())) { paintFocus(c, c.getFocusGraphics()); } } function paintBackGround(c, g, b) { if (c.isOpaque()) { fillBackGround(c, g, b); } } function fillBackGround(c, g, b) { fillRectBackGround(c, g, b); } function getPreferredSize(c) { return(null); } function getMinimumSize(c) { return(getPreferredSize(c)); } function getMaximumSize(c) { return(getPreferredSize(c)); } }
Symbol 327 MovieClip [__Packages.org.aswing.graphics.Graphics] Frame 0
class org.aswing.graphics.Graphics { var target_mc, brush; function Graphics (target_mc) { this.target_mc = target_mc; } function setTarget(target_mc) { this.target_mc = target_mc; } function dispose() { target_mc = null; } function startPen(p) { p.setTo(target_mc); } function endPen() { target_mc.lineStyle(); target_mc.moveTo(0, 0); } function startBrush(b) { brush = b; b.beginFill(target_mc); } function endBrush() { brush.endFill(target_mc); target_mc.moveTo(0, 0); } function clear() { if (target_mc != undefined) { target_mc.clear(); } } function drawLine(p, x1, y1, x2, y2) { startPen(p); line(x1, y1, x2, y2); endPen(); } function drawPolyline(p, points) { startPen(p); polyline(points); endPen(); } function fillPolyline(b, points) { startBrush(b); polyline(points); endBrush(); } function drawPolygon(p, points) { startPen(p); polygon(points); endPen(); } function fillPolygon(b, points) { startBrush(b); polygon(points); endBrush(); } function fillPolygonRing(b, points1, points2) { startBrush(b); polygon(points1); polygon(points2); endBrush(); } function drawRectangle(pen, x, y, w, h) { startPen(pen); rectangle(x, y, w, h); endPen(); } function fillRectangle(brush, x, y, width, height) { startBrush(brush); rectangle(x, y, width, height); endBrush(); } function fillRectangleRing(brush, cx, cy, w1, h1, w2, h2) { startBrush(brush); rectangle(cx - (w1 / 2), cy - (h1 / 2), w1, h1); rectangle(cx - (w2 / 2), cy - (h2 / 2), w2, h2); endBrush(); } function fillRectangleRingWithThickness(brush, x, y, w, h, t) { startBrush(brush); rectangle(x, y, w, h); rectangle(x + t, y + t, w - (t * 2), h - (t * 2)); endBrush(); } function drawCircle(p, cx, cy, radius) { startPen(p); circle(cx, cy, radius); endPen(); } function fillCircle(b, cx, cy, radius) { startBrush(b); circle(cx, cy, radius); endBrush(); } function fillCircleRing(b, cx, cy, r1, r2) { startBrush(b); circle(cx, cy, r1); circle(cx, cy, r2); endBrush(); } function fillCircleRingWithThickness(b, cx, cy, r, t) { startBrush(b); circle(cx, cy, r); r = r - t; circle(cx, cy, r); endBrush(); } function drawEllipse(p, x, y, width, height) { startPen(p); ellipse(x, y, width, height); endPen(); } function fillEllipse(b, x, y, width, height) { startBrush(b); ellipse(x, y, width, height); endBrush(); } function fillEllipseRing(brush, cx, cy, w1, h1, w2, h2) { startBrush(brush); ellipse(cx - (w1 / 2), cy - (h1 / 2), w1, h1); ellipse(cx - (w2 / 2), cy - (h2 / 2), w2, h2); endBrush(); } function fillEllipseRingWithThickness(brush, x, y, w, h, t) { startBrush(brush); ellipse(x, y, w, h); ellipse(x + t, y + t, w - (t * 2), h - (t * 2)); endBrush(); } function drawRoundRect(pen, x, y, width, height, radius, trR, blR, brR) { startPen(pen); roundRect(x, y, width, height, radius, trR, blR, brR); endPen(); } function fillRoundRect(brush, x, y, width, height, radius, trR, blR, brR) { startBrush(brush); roundRect(x, y, width, height, radius, trR, blR, brR); endBrush(); } function fillRoundRectRing(brush, cx, cy, w1, h1, r1, w2, h2, r2) { startBrush(brush); roundRect(cx - (w1 / 2), cy - (h1 / 2), w1, h1, r1); roundRect(cx - (w2 / 2), cy - (h2 / 2), w2, h2, r2); endBrush(); } function fillRoundRectRingWithThickness(brush, x, y, w, h, r, t, ir) { startBrush(brush); roundRect(x, y, w, h, r); if (ir == undefined) { ir = r - t; } roundRect(x + t, y + t, w - (t * 2), h - (t * 2), ir); endBrush(); } function beginFill(brush) { startBrush(brush); } function endFill() { endBrush(); target_mc.moveTo(0, 0); } function beginDraw(pen) { startPen(pen); } function endDraw() { endPen(); target_mc.moveTo(0, 0); } function moveTo(x, y) { target_mc.moveTo(x, y); } function curveTo(controlX, controlY, anchorX, anchorY) { target_mc.curveTo(controlX, controlY, anchorX, anchorY); } function lineTo(x, y) { target_mc.lineTo(x, y); } function line(x1, y1, x2, y2) { target_mc.moveTo(x1, y1); target_mc.lineTo(x2, y2); } function polygon(points) { if (points.length > 1) { polyline(points); target_mc.lineTo(points[0].x, points[0].y); } } function polyline(points) { if (points.length > 1) { target_mc.moveTo(points[0].x, points[0].y); var _local2 = 1; while (_local2 < points.length) { target_mc.lineTo(points[_local2].x, points[_local2].y); _local2++; } } } function rectangle(x, y, width, height) { target_mc.moveTo(x, y); target_mc.lineTo(x + width, y); target_mc.lineTo(x + width, y + height); target_mc.lineTo(x, y + height); target_mc.lineTo(x, y); } function ellipse(x, y, width, height) { var _local9 = Math.PI; var _local4 = width / 2; var _local5 = height / 2; var _local3 = x + _local4; var _local2 = y + _local5; var _local6 = Math.tan(_local9 / 8); var _local8 = Math.cos(_local9 / 4); var _local7 = Math.sin(_local9 / 4); target_mc.moveTo(_local4 + _local3, 0 + _local2); target_mc.curveTo(_local4 + _local3, (_local5 * _local6) + _local2, (_local4 * _local8) + _local3, (_local5 * _local7) + _local2); target_mc.curveTo((_local4 * _local6) + _local3, _local5 + _local2, 0 + _local3, _local5 + _local2); target_mc.curveTo(((-_local4) * _local6) + _local3, _local5 + _local2, ((-_local4) * _local8) + _local3, (_local5 * _local7) + _local2); target_mc.curveTo((-_local4) + _local3, (_local5 * _local6) + _local2, (-_local4) + _local3, 0 + _local2); target_mc.curveTo((-_local4) + _local3, ((-_local5) * _local6) + _local2, ((-_local4) * _local8) + _local3, ((-_local5) * _local7) + _local2); target_mc.curveTo(((-_local4) * _local6) + _local3, (-_local5) + _local2, 0 + _local3, (-_local5) + _local2); target_mc.curveTo((_local4 * _local6) + _local3, (-_local5) + _local2, (_local4 * _local8) + _local3, ((-_local5) * _local7) + _local2); target_mc.curveTo(_local4 + _local3, ((-_local5) * _local6) + _local2, _local4 + _local3, 0 + _local2); } function circle(cx, cy, r) { ellipse(cx - r, cy - r, r * 2, r * 2); } function roundRect(x, y, width, height, radius, trR, blR, brR) { var _local9 = radius; if (trR == undefined) { trR = radius; } if (blR == undefined) { blR = radius; } if (brR == undefined) { brR = radius; } target_mc.moveTo(x + blR, y + height); target_mc.lineTo((x + width) - brR, y + height); target_mc.curveTo(x + width, y + height, x + width, (y + height) - blR); target_mc.lineTo(x + width, y + trR); target_mc.curveTo(x + width, y, (x + width) - trR, y); target_mc.lineTo(x + _local9, y); target_mc.curveTo(x, y, x, y + _local9); target_mc.lineTo(x, (y + height) - blR); target_mc.curveTo(x, y + height, x + blR, y + height); } function wedge(radius, x, y, angle, rot) { target_mc.moveTo(0, 0); target_mc.lineTo(radius, 0); var _local10 = Math.floor(angle / 30); var _local11 = angle - (_local10 * 30); var _local6 = 0.268; var _local4; var _local5; var _local8; var _local7; var _local9 = 0; var _local2 = 0; while (_local2 < _local10) { _local4 = radius * Math.cos(((_local2 + 1) * 30) * (Math.PI/180)); _local5 = radius * Math.sin(((_local2 + 1) * 30) * (Math.PI/180)); _local8 = _local4 + ((radius * _local6) * Math.cos((((_local2 + 1) * 30) - 90) * (Math.PI/180))); _local7 = _local5 + ((radius * _local6) * Math.sin((((_local2 + 1) * 30) - 90) * (Math.PI/180))); target_mc.curveTo(_local8, _local7, _local4, _local5); _local9 = _local2 + 1; _local2++; } if (_local11 > 0) { _local6 = Math.tan((_local11 / 2) * (Math.PI/180)); _local4 = radius * Math.cos(((_local9 * 30) + _local11) * (Math.PI/180)); _local5 = radius * Math.sin(((_local9 * 30) + _local11) * (Math.PI/180)); _local8 = _local4 + ((radius * _local6) * Math.cos((((_local9 * 30) + _local11) - 90) * (Math.PI/180))); _local7 = _local5 + ((radius * _local6) * Math.sin((((_local9 * 30) + _local11) - 90) * (Math.PI/180))); target_mc.curveTo(_local8, _local7, _local4, _local5); } target_mc.lineTo(0, 0); target_mc._rotation = rot; target_mc._x = x; target_mc._y = y; } }
Symbol 328 MovieClip [__Packages.org.aswing.graphics.Brush] Frame 0
interface org.aswing.graphics.Brush { }
Symbol 329 MovieClip [__Packages.org.aswing.graphics.Pen] Frame 0
class org.aswing.graphics.Pen { var _thickness, _color, _alpha; function Pen (color, thickness, alpha) { if (color instanceof org.aswing.ASColor) { _thickness = ((thickness == undefined) ? 0 : (thickness)); setASColor(org.aswing.ASColor(color)); } else { _color = ((color == undefined) ? (org.aswing.ASColor.__get__BLACK().getRGB()) : (Number(color))); _thickness = ((thickness == undefined) ? 0 : (thickness)); _alpha = ((alpha == undefined) ? 100 : (Number(alpha))); } } function getColor() { return(_color); } function setColor(color) { _color = color; } function getThickness() { return(_thickness); } function setThickness(thickness) { _thickness = thickness; } function getAlpha() { return(_alpha); } function setAlpha(alpha) { _alpha = alpha; } function setTo(target) { target.lineStyle(_thickness, _color, _alpha); } function setASColor(color) { if (color != null) { _color = color.getRGB(); _alpha = color.getAlpha(); } } function getASColor() { return(new org.aswing.ASColor(_color, _alpha)); } }
Symbol 330 MovieClip [__Packages.org.aswing.graphics.SolidBrush] Frame 0
class org.aswing.graphics.SolidBrush implements org.aswing.graphics.Brush { var color, alpha; function SolidBrush (color, alpha) { if (color instanceof org.aswing.ASColor) { setASColor(org.aswing.ASColor(color)); } else { this.color = ((color == undefined) ? (org.aswing.ASColor.__get__BLACK().getRGB()) : (Number(color))); this.alpha = ((alpha == undefined) ? 100 : (Number(alpha))); } } function getColor() { return(color); } function setColor(color) { if (color != null) { this.color = color; } } function setAlpha(alpha) { if (alpha != null) { this.alpha = alpha; } } function getAlpha() { return(alpha); } function beginFill(target) { target.beginFill(color, alpha); } function endFill(target) { target.endFill(); } function setASColor(color) { if (color != null) { this.color = color.getRGB(); alpha = color.getAlpha(); } } }
Symbol 331 MovieClip [__Packages.org.aswing.UIManager] Frame 0
class org.aswing.UIManager { static var lookAndFeel, lookAndFeelDefaults; function UIManager () { } static function setLookAndFeel(laf) { lookAndFeel = laf; setLookAndFeelDefaults(laf.getDefaults()); } static function getLookAndFeel() { checkLookAndFeel(); return(lookAndFeel); } static function getDefaults() { return(getLookAndFeelDefaults()); } static function getLookAndFeelDefaults() { checkLookAndFeel(); return(lookAndFeelDefaults); } static function setLookAndFeelDefaults(d) { lookAndFeelDefaults = d; } static function checkLookAndFeel() { if (lookAndFeel == null) { setLookAndFeel(new org.aswing.plaf.asw.ASWingLookAndFeel()); } } static function get(key) { return(getDefaults().get(key)); } static function getUI(target) { return(getDefaults().getUI(target)); } static function getBoolean(key) { return(getDefaults().getBoolean(key)); } static function getNumber(key) { return(getDefaults().getNumber(key)); } static function getBorder(key) { return(getDefaults().getBorder(key)); } static function getColor(key) { return(getDefaults().getColor(key)); } static function getFont(key) { return(getDefaults().getFont(key)); } static function getIcon(key) { return(getDefaults().getIcon(key)); } static function getInsets(key) { return(getDefaults().getInsets(key)); } static function getInstance(key, args) { return(getDefaults().getInstance(key)); } }
Symbol 332 MovieClip [__Packages.org.aswing.util.HashMap] Frame 0
class org.aswing.util.HashMap { var length, content, keyContent, noneStringKeys, noneStringMapedValues; function HashMap () { length = 0; content = new Object(); keyContent = new Object(); noneStringKeys = new Array(); noneStringMapedValues = new Array(); } function size() { return(length); } function isEmpty() { return(length == 0); } function keys() { var _local4 = new Array(length); var _local3 = 0; for (var _local2 in keyContent) { _local4[_local3] = keyContent[_local2]; _local3++; } var _local2 = 0; while (_local2 < noneStringKeys.length) { _local4[_local3 + _local2] = noneStringKeys[_local2]; _local2++; } return(_local4); } function values() { var _local4 = new Array(length); var _local3 = 0; for (var _local2 in content) { _local4[_local3] = content[_local2]; _local3++; } var _local2 = 0; while (_local2 < noneStringMapedValues.length) { _local4[_local3 + _local2] = noneStringMapedValues[_local2]; _local2++; } return(_local4); } function isStringKey(key) { return((typeof(key) == "string") || (key instanceof String)); } function indexOfKey(key) { var _local2 = 0; while (_local2 < noneStringKeys.length) { if (key === noneStringKeys[_local2]) { return(_local2); } _local2++; } return(-1); } function indexOfValue(value) { var _local2 = 0; while (_local2 < noneStringMapedValues.length) { if (value === noneStringMapedValues[_local2]) { return(_local2); } _local2++; } return(-1); } function containsValue(value) { for (var _local3 in content) { if (content[_local3] === value) { return(true); } } if (indexOfValue(value) >= 0) { return(true); } return(false); } function containsKey(key) { if (isStringKey(key)) { if (content[key] != undefined) { return(true); } } else if (indexOfKey(key) >= 0) { return(true); } return(false); } function get(key) { if (isStringKey(key)) { var _local2 = content[key]; if (!(_local2 === undefined)) { return(_local2); } } else { var _local3 = indexOfKey(key); if (_local3 >= 0) { return(noneStringMapedValues[_local3]); } } return(null); } function put(key, value) { if (key == undefined) { trace("cannot put a value with undefined or null key!"); return(undefined); } var _local3 = containsKey(key); if (!_local3) { length++; } var _local6 = get(key); if (isStringKey(key)) { content[key] = value; keyContent[key] = key; } else if (!_local3) { noneStringKeys.push(key); noneStringMapedValues.push(value); } else { var _local4 = indexOfKey(key); noneStringKeys[_local4] = key; noneStringMapedValues[_local4] = value; } return(_local6); } function remove(key) { var _local5 = containsKey(key); if (!_local5) { return(null); } var _local4; if (isStringKey(key)) { _local4 = content[key]; delete content[key]; delete keyContent[key]; } else { var _local3 = indexOfKey(key); _local4 = noneStringMapedValues[_local3]; noneStringKeys.splice(_local3, 1); noneStringMapedValues.splice(_local3, 1); } length--; return(_local4); } function putArray(Arr, key) { var _local2 = 0; while (_local2 < Arr.length) { put(key + _local2, Arr[_local2]); _local2++; } } function clear() { length = 0; content = new Object(); keyContent = new Object(); noneStringKeys = new Array(); noneStringMapedValues = new Array(); } function clone() { var _local3 = new org.aswing.util.HashMap(); for (var _local2 in content) { _local3.put(keyContent[_local2], content[_local2]); } var _local2 = 0; while (_local2 < noneStringKeys.length) { _local3.put(noneStringKeys[_local2], noneStringMapedValues[_local2]); _local2++; } return(_local3); } function toString() { var _local3 = keys(); var _local5 = values(); var _local4 = "HashMap Content:\n"; var _local2 = 0; while (_local2 < _local3.length) { _local4 = _local4 + (((_local3[_local2] + " -> ") + _local5[_local2]) + newline); _local2++; } return(_local4); } }
Symbol 333 MovieClip [__Packages.org.aswing.UIDefaults] Frame 0
class org.aswing.UIDefaults extends org.aswing.util.HashMap { var get; function UIDefaults () { super(); } function put(key, value) { var _local2 = ((value == null) ? (super.remove(key)) : (super.put(key, value))); return(_local2); } function putDefaults(keyValueList) { var _local2 = 0; while (_local2 < keyValueList.length) { var _local3 = keyValueList[_local2 + 1]; if (_local3 == null) { super.remove(keyValueList[_local2]); } else { super.put(keyValueList[_local2], _local3); } _local2 = _local2 + 2; } } function getUI(target) { var _local2 = org.aswing.plaf.ComponentUI(getInstance(target.getUIClassID())); if (_local2 == null) { _local2 = org.aswing.plaf.ComponentUI(getCreateInstance(target.getDefaultBasicUIClass())); } return(_local2); } function getBoolean(key) { return(eval (key) == true); } function getNumber(key) { return(eval (key)); } function getBorder(key) { var _local2 = org.aswing.border.Border(getInstance(key)); if (_local2 == null) { _local2 = undefined; } return(_local2); } function getIcon(key) { var _local2 = org.aswing.Icon(getInstance(key)); if (_local2 == null) { _local2 = undefined; } return(_local2); } function getColor(key) { var _local2 = org.aswing.ASColor(getInstance(key)); if (_local2 == null) { _local2 = undefined; } return(_local2); } function getFont(key) { var _local2 = org.aswing.ASFont(getInstance(key)); if (_local2 == null) { _local2 = undefined; } return(_local2); } function getInsets(key) { var _local2 = org.aswing.Insets(getInstance(key)); if (_local2 == null) { _local2 = undefined; } return(_local2); } function getConstructor(key) { return(Function(get(key))); } function getInstance(key, args) { var _local2 = get(key); if (_local2 instanceof Function) { return(getCreateInstance(Function(_local2), args)); } return(_local2); } function getCreateInstance(constructor, args) { var _local1 = constructor[CREATE_METHOD_NAME].apply(null, args); if (_local1 == null) { _local1 = new constructor[undefined](); } return(_local1); } static var CREATE_METHOD_NAME = "createInstance"; }
Symbol 334 MovieClip [__Packages.org.aswing.border.Border] Frame 0
interface org.aswing.border.Border { }
Symbol 335 MovieClip [__Packages.org.aswing.Insets] Frame 0
class org.aswing.Insets { var top, left, bottom, right; function Insets (top, left, bottom, right) { if (top == undefined) { top = 0; } if (left == undefined) { left = 0; } if (bottom == undefined) { bottom = 0; } if (right == undefined) { right = 0; } this.top = top; this.left = left; this.bottom = bottom; this.right = right; } static function createIdentic(edge) { return(new org.aswing.Insets(edge, edge, edge, edge)); } function addInsets(insets) { top = top + insets.top; left = left + insets.left; bottom = bottom + insets.bottom; right = right + insets.right; return(this); } function getMarginWidth() { return(left + right); } function getMarginHeight() { return(top + bottom); } function getInsideBounds(bounds) { var _local2 = new org.aswing.geom.Rectangle(bounds); _local2.x = _local2.x + left; _local2.y = _local2.y + top; _local2.width = _local2.width - (left + right); _local2.height = _local2.height - (top + bottom); return(_local2); } function getOutsideBounds(bounds) { var _local2 = new org.aswing.geom.Rectangle(bounds); _local2.x = _local2.x - left; _local2.y = _local2.y - top; _local2.width = _local2.width + (left + right); _local2.height = _local2.height + (top + bottom); return(_local2); } function getOutsideSize(size) { var _local2 = new org.aswing.geom.Dimension(size); _local2.width = _local2.width + (left + right); _local2.height = _local2.height + (top + bottom); return(_local2); } function getInsideSize(size) { var _local2 = new org.aswing.geom.Dimension(size); _local2.width = _local2.width - (left + right); _local2.height = _local2.height - (top + bottom); return(_local2); } function equals(o) { var _local2 = org.aswing.Insets(o); if (_local2 == null) { return(false); } return((((_local2.bottom == bottom) && (_local2.left == left)) && (_local2.right == right)) && (_local2.top == top)); } function toString() { return(((((((("Insets(top:" + top) + ", left:") + left) + ", bottom:") + bottom) + ", right:") + right) + ")"); } }
Symbol 336 MovieClip [__Packages.org.aswing.Icon] Frame 0
interface org.aswing.Icon { }
Symbol 337 MovieClip [__Packages.org.aswing.ASFont] Frame 0
class org.aswing.ASFont { var asTF, fontName, fontSize, fontBold, fontItalic, fontUnderline, embedFonts; function ASFont (_name, _size, _bold, _italic, _underline, _embedFonts) { setName(_name); setSize(_size); setBold(_bold); setItalic(_italic); setUnderline(_underline); setEmbedFonts(_embedFonts); asTF = org.aswing.ASTextFormat.getEmptyASTextFormat(); asTF.setASFont(this); } static function getASFont(_name, _size) { return(new org.aswing.ASFont(_name, _size, false, false, false, false)); } static function getASFontFromASTextFormat(ASTF) { return(ASTF.getASFont()); } function setName(_name) { if (_name == null) { fontName = DEFAULT_NAME; } else { fontName = _name; } } function getName() { return(fontName); } function setSize(_size) { if (_size == null) { fontSize = DEFAULT_SIZE; } else { fontSize = _size; } } function getSize() { return(fontSize); } function setBold(_bold) { fontBold = _bold; if (fontBold == null) { fontBold = false; } } function getBold() { return(fontBold); } function setItalic(_italic) { fontItalic = _italic; if (fontItalic == null) { fontItalic = false; } } function getItalic() { return(fontItalic); } function setUnderline(_underline) { fontUnderline = _underline; if (fontUnderline == null) { fontUnderline = false; } } function getUnderline() { return(fontUnderline); } function setEmbedFonts(b) { if (b == undefined) { b = false; } embedFonts = b; } function getEmbedFonts() { return(embedFonts); } function getFeatures() { var _local2 = new org.aswing.util.HashMap(); _local2.put("bold", getBold()); _local2.put("italic", getItalic()); _local2.put("underline", getUnderline()); _local2.put("embedFonts", getEmbedFonts()); return(_local2); } function getASTextFormat() { return(asTF); } function toString() { return(((((((((((("ASFont[name:" + fontName) + ", size:") + fontSize) + ", bold:") + fontBold) + ", italic:") + fontItalic) + ", underline:") + fontUnderline) + ", embedFonts:") + embedFonts) + "]"); } static var DEFAULT_NAME = "Tahoma"; static var DEFAULT_SIZE = 11; }
Symbol 338 MovieClip [__Packages.org.aswing.ASTextFormat] Frame 0
class org.aswing.ASTextFormat { var _name, _size, _bold, _italic, _underline, _align, _blockIndent, _indent, _bullet, _color, _leftMargin, _rightMargin, _embedFonts; function ASTextFormat () { } static function get DEFAULT_COLOR() { return(org.aswing.ASColor.__get__BLACK().getRGB()); } static function getEmptyASTextFormat() { return(new org.aswing.ASTextFormat()); } static function getDefaultASTextFormat() { var _local1 = new org.aswing.ASTextFormat(); _local1.setName(DEFAULT_NAME); _local1.setSize(DEFAULT_SIZE); _local1.setColor(DEFAULT_COLOR); _local1.setBold(DEFAULT_BOLD); _local1.setItalic(DEFAULT_ITALIC); _local1.setUnderline(DEFAULT_UNDERLINE); _local1.setEmbedFonts(DEFAULT_EMBEDFONTS); _local1.setAlign(DEFAULT_ALIGN); _local1.setBlockIndent(DEFAULT_BLOCKINDENT); _local1.setIndent(DEFAULT_INDENT); _local1.setLeftMargin(DEFAULT_LEFTMARGIN); _local1.setRightMargin(DEFAULT_RIGHTMARGIN); return(_local1); } static function getASTextFormatWithName(name) { var _local1 = new org.aswing.ASTextFormat(); _local1.setName(name); return(_local1); } static function getASTextFormatWithNameSize(name, size) { var _local1 = new org.aswing.ASTextFormat(); _local1.setName(name); _local1.setSize(size); return(_local1); } static function getASTextFormatWithNameColor(name, color) { var _local1 = new org.aswing.ASTextFormat(); _local1.setName(name); _local1.setColor(color); return(_local1); } static function getASTextFormatWithNameSizeColor(name, size, color) { var _local1 = new org.aswing.ASTextFormat(); _local1.setName(name); _local1.setSize(size); _local1.setColor(color); return(_local1); } static function getASTextFormatWithASFont(font) { var _local1 = new org.aswing.ASTextFormat(); _local1.setASFont(font); return(_local1); } static function getASTextFormatWithTextFormat(tf) { var _local2 = new org.aswing.ASTextFormat(); _local2.setName(((tf.font != null) ? (tf.font) : (DEFAULT_NAME))); _local2.setSize(((tf.size != null) ? (tf.size) : (DEFAULT_SIZE))); _local2.setBold(((tf.bold != null) ? (tf.bold) : (DEFAULT_BOLD))); _local2.setItalic(((tf.italic != null) ? (tf.italic) : (DEFAULT_ITALIC))); _local2.setUnderline(((tf.underline != null) ? (tf.underline) : (DEFAULT_UNDERLINE))); switch (tf.align) { case "left" : _local2.setAlign(LEFT); break; case "center" : _local2.setAlign(CENTER); break; case "right" : _local2.setAlign(RIGHT); break; default : _local2.setAlign(DEFAULT_ALIGN); } _local2.setBlockIndent(((tf.blockIndent != null) ? (tf.blockIndent) : (DEFAULT_BLOCKINDENT))); _local2.setIndent(((tf.indent != null) ? (tf.indent) : (DEFAULT_INDENT))); _local2.setBullet(((tf.bullet != null) ? (tf.bullet) : (DEFAULT_BULLET))); _local2.setColor(((tf.color != null) ? (tf.color) : (DEFAULT_COLOR))); _local2.setLeftMargin(((tf.leftMargin != null) ? (tf.leftMargin) : (DEFAULT_LEFTMARGIN))); _local2.setRightMargin(((tf.rightMargin != null) ? (tf.rightMargin) : (DEFAULT_RIGHTMARGIN))); return(_local2); } static function getTextFormatWithASTextFormat(tf) { return(tf.getTextFormat()); } function getTextFormat() { var _local2 = new TextFormat(); _local2.font = DEFAULT_NAME; _local2.size = DEFAULT_SIZE; _local2.bold = DEFAULT_BOLD; _local2.italic = DEFAULT_ITALIC; _local2.underline = DEFAULT_UNDERLINE; switch (DEFAULT_ALIGN) { case LEFT : _local2.align = "left"; break; case CENTER : _local2.align = "center"; break; case RIGHT : _local2.align = "right"; break; default : _local2.align = "left"; } _local2.blockIndent = DEFAULT_BLOCKINDENT; _local2.indent = DEFAULT_INDENT; _local2.bullet = DEFAULT_BULLET; _local2.color = DEFAULT_COLOR; _local2.leftMargin = DEFAULT_LEFTMARGIN; _local2.rightMargin = DEFAULT_RIGHTMARGIN; if (_name != null) { _local2.font = _name; } if (_size != null) { _local2.size = _size; } if (_bold != null) { _local2.bold = _bold; } if (_italic != null) { _local2.italic = _italic; } if (_underline != null) { _local2.underline = _underline; } if (_align != null) { switch (_align) { case LEFT : _local2.align = "left"; break; case CENTER : _local2.align = "center"; break; case RIGHT : _local2.align = "right"; break; default : _local2.align = "left"; } } if (_blockIndent != null) { _local2.blockIndent = _blockIndent; } if (_indent != null) { _local2.indent = _indent; } if (_bullet != null) { _local2.bullet = _bullet; } if (_color != null) { _local2.color = _color; } if (_leftMargin != null) { _local2.leftMargin = _leftMargin; } if (_rightMargin != null) { _local2.rightMargin = _rightMargin; } return(_local2); } function setName(newName) { _name = newName; } function getName() { return(_name); } function setSize(newSize) { _size = newSize; } function getSize() { return(_size); } function setBold(newBold) { _bold = newBold; } function getBold() { return(_bold); } function setItalic(newItalic) { _italic = newItalic; } function getItalic() { return(_italic); } function setUnderline(newUnderline) { _underline = newUnderline; } function getUnderline() { return(_underline); } function setAlign(newAlign) { _align = newAlign; } function getAlign() { return(_align); } function setBlockIndent(newBlockIndent) { _blockIndent = newBlockIndent; } function getBlockIndent() { return(_blockIndent); } function setIndent(newIndent) { _indent = newIndent; } function getIndent() { return(_indent); } function setBullet(newBullet) { _bullet = newBullet; } function getBullet() { return(_bullet); } function setColor(newColor) { _color = newColor; } function getColor() { return(_color); } function setLeftMargin(newLeftMargin) { _leftMargin = newLeftMargin; } function getLeftMargin() { return(_leftMargin); } function setRightMargin(newRightMargin) { _rightMargin = newRightMargin; } function getRightMargin() { return(_rightMargin); } function setEmbedFonts(b) { if (b == undefined) { b = DEFAULT_EMBEDFONTS; } _embedFonts = b; } function getEmbedFonts() { return(_embedFonts); } function getTextExtent(text, wrapWidth) { var _local3 = getTextFormat(); var _local2; if (wrapWidth != null) { _local2 = _local3.getTextExtent(text, wrapWidth); } else { _local2 = _local3.getTextExtent(text); } return(new org.aswing.ASTextExtent(_local2.width, _local2.height, _local2.ascent, _local2.descent, _local2.textFieldWidth, _local2.textFieldHeight)); } function setASFont(font) { setName(font.getName()); setSize(font.getSize()); setBold(font.getBold()); setItalic(font.getItalic()); setUnderline(font.getUnderline()); setEmbedFonts(font.getEmbedFonts()); } function getASFont() { return(new org.aswing.ASFont(getName(), getSize(), getBold(), getItalic(), getUnderline(), getEmbedFonts())); } function applyToText(text) { text.setTextFormat(getTextFormat()); text.embedFonts = getEmbedFonts(); } function applyToPartOfText(text, begin, end) { text.setTextFormat(begin, end, getTextFormat()); text.embedFonts = getEmbedFonts(); } function applyToOneOfText(text, index) { text.setTextFormat(index, getTextFormat()); text.embedFonts = getEmbedFonts(); } function applyToTextCurrentAndNew(text) { var _local2 = getTextFormat(); text.setTextFormat(_local2); text.setNewTextFormat(_local2); text.embedFonts = getEmbedFonts(); } function applyToTextForNew(text) { text.setNewTextFormat(getTextFormat()); text.embedFonts = getEmbedFonts(); } function clone() { var _local2 = new org.aswing.ASTextFormat(); _local2._align = _align; _local2._blockIndent = _blockIndent; _local2._bold = _bold; _local2._bullet = _bullet; _local2._color = _color; _local2._indent = _indent; _local2._italic = _italic; _local2._leftMargin = _leftMargin; _local2._name = _name; _local2._rightMargin = _rightMargin; _local2._size = _size; _local2._underline = _underline; _local2._embedFonts = _embedFonts; return(_local2); } function toString() { return("ASTextFormat"); } static var LEFT = -1; static var CENTER = 0; static var RIGHT = 1; static var DEFAULT_NAME = "Tahoma"; static var DEFAULT_SIZE = 12; static var DEFAULT_BOLD = false; static var DEFAULT_ITALIC = false; static var DEFAULT_UNDERLINE = false; static var DEFAULT_EMBEDFONTS = false; static var DEFAULT_ALIGN = LEFT; static var DEFAULT_BLOCKINDENT = 0; static var DEFAULT_INDENT = 0; static var DEFAULT_BULLET = false; static var DEFAULT_LEFTMARGIN = 0; static var DEFAULT_RIGHTMARGIN = 0; }
Symbol 339 MovieClip [__Packages.org.aswing.ASTextExtent] Frame 0
class org.aswing.ASTextExtent { var width, height, ascent, descent, textFieldWidth, textFieldHeight; function ASTextExtent (width, height, ascent, descent, textFieldWidth, textFieldHeight) { this.width = width; this.height = height; this.ascent = ascent; this.descent = descent; this.textFieldWidth = textFieldWidth; this.textFieldHeight = textFieldHeight; } function getWidth() { return(width); } function getHeight() { return(height); } function getAscent() { return(ascent); } function getDescent() { return(descent); } function getTextFieldWidth() { return(textFieldWidth); } function getTextFieldHeight() { return(textFieldHeight); } function toString() { var _local2 = ((((((((((("ASTextExtent[width:" + width) + ", height:") + height) + ", ascent:") + ascent) + ", descent:") + descent) + ", textFieldWidth:") + textFieldWidth) + ", textFieldHeight:") + textFieldHeight) + "]"; return(_local2); } }
Symbol 340 MovieClip [__Packages.org.aswing.LookAndFeel] Frame 0
class org.aswing.LookAndFeel { function LookAndFeel () { } function getDefaults() { return(null); } static function installBasicProperties(c, componentUIPrefix) { c.setUIProperty("opaque", org.aswing.UIManager.get(componentUIPrefix + "opaque")); c.setUIProperty("focusable", org.aswing.UIManager.get(componentUIPrefix + "focusable")); } static function installColors(c, defaultBgName, defaultFgName) { var _local3 = c.getBackground(); if ((_local3 === undefined) || (_local3 instanceof org.aswing.plaf.UIResource)) { c.setBackground(org.aswing.UIManager.getColor(defaultBgName)); } var _local2 = c.getForeground(); if ((_local2 === undefined) || (_local2 instanceof org.aswing.plaf.UIResource)) { c.setForeground(org.aswing.UIManager.getColor(defaultFgName)); } } static function installFont(c, defaultFontName) { var _local1 = c.getFont(); if ((_local1 === undefined) || (_local1 instanceof org.aswing.plaf.UIResource)) { c.setFont(org.aswing.UIManager.getFont(defaultFontName)); } } static function installColorsAndFont(c, defaultBgName, defaultFgName, defaultFontName) { installColors(c, defaultBgName, defaultFgName); installFont(c, defaultFontName); } static function installBorder(c, defaultBorderName) { var _local1 = c.getBorder(); if ((_local1 === undefined) || (_local1 instanceof org.aswing.plaf.UIResource)) { c.setBorder(org.aswing.UIManager.getBorder(defaultBorderName)); } } static function uninstallBorder(c) { if (c.getBorder() instanceof org.aswing.plaf.UIResource) { c.setBorder(undefined); } } }
Symbol 341 MovieClip [__Packages.org.aswing.plaf.UIResource] Frame 0
interface org.aswing.plaf.UIResource { }
Symbol 342 MovieClip [__Packages.org.aswing.plaf.basic.BasicLookAndFeel] Frame 0
class org.aswing.plaf.basic.BasicLookAndFeel extends org.aswing.LookAndFeel { function BasicLookAndFeel () { super(); } function getDefaults() { var _local2 = new org.aswing.UIDefaults(); initClassDefaults(_local2); initSystemColorDefaults(_local2); initSystemFontDefaults(_local2); initComponentDefaults(_local2); return(_local2); } function initClassDefaults(table) { var _local1 = []; table.putDefaults(_local1); } function initSystemColorDefaults(table) { var _local2 = ["activeCaption", 14737632, "activeCaptionText", 0, "activeCaptionBorder", 12632256, "inactiveCaption", 8421504, "inactiveCaptionText", 6710886, "inactiveCaptionBorder", 12632256, "window", 13421772, "windowBorder", 0, "windowText", 0, "menu", 13421772, "menuText", 0, "text", 12632256, "textText", 0, "textHighlight", 128, "textHighlightText", 16777215, "textInactiveText", 8421504, "control", 16053492, "controlText", 0, "controlHighlight", 15658734, "controlLtHighlight", 6710886, "controlShadow", 13092805, "controlDkShadow", 6710886, "scrollbar", 14737632]; var _local1 = 0; while (_local1 < _local2.length) { table.put(_local2[_local1], new org.aswing.plaf.ASColorUIResource(_local2[_local1 + 1])); _local1 = _local1 + 2; } table.put("focusInner", new org.aswing.plaf.ASColorUIResource(4259648, 30)); table.put("focusOutter", new org.aswing.plaf.ASColorUIResource(4259648, 50)); } function initSystemFontDefaults(table) { var _local1 = ["systemFont", new org.aswing.plaf.ASFontUIResource("Tahoma", 11), "menuFont", new org.aswing.plaf.ASFontUIResource("Tahoma", 11), "controlFont", new org.aswing.plaf.ASFontUIResource("Tahoma", 11), "windowFont", new org.aswing.plaf.ASFontUIResource("Tahoma", 11)]; table.putDefaults(_local1); } function initComponentDefaults(table) { var _local2 = ["Button.background", new org.aswing.plaf.ASColorUIResource(15198181), "Button.foreground", table.get("controlText"), "Button.opaque", true, "Button.focusable", true, "Button.shadow", table.getColor("controlShadow"), "Button.darkShadow", table.getColor("controlDkShadow"), "Button.light", table.getColor("controlHighlight"), "Button.highlight", table.getColor("controlLtHighlight"), "Button.font", table.getFont("controlFont"), "Button.border", org.aswing.plaf.basic.border.ButtonBorder, "Button.margin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0), "Button.textShiftOffset", 1]; table.putDefaults(_local2); _local2 = ["ToggleButton.background", table.get("control"), "ToggleButton.foreground", table.get("controlText"), "ToggleButton.opaque", true, "ToggleButton.focusable", true, "ToggleButton.shadow", table.getColor("controlShadow"), "ToggleButton.darkShadow", table.getColor("controlDkShadow"), "ToggleButton.light", table.getColor("controlHighlight"), "ToggleButton.highlight", table.getColor("controlLtHighlight"), "ToggleButton.font", table.getFont("controlFont"), "ToggleButton.border", org.aswing.plaf.basic.border.ButtonBorder, "ToggleButton.margin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0), "ToggleButton.textShiftOffset", 1]; table.putDefaults(_local2); _local2 = ["RadioButton.background", table.get("control"), "RadioButton.foreground", table.get("controlText"), "RadioButton.opaque", false, "RadioButton.focusable", true, "RadioButton.shadow", table.getColor("controlShadow"), "RadioButton.darkShadow", table.getColor("controlDkShadow"), "RadioButton.light", table.getColor("controlHighlight"), "RadioButton.highlight", table.getColor("controlLtHighlight"), "RadioButton.font", table.getFont("controlFont"), "RadioButton.icon", org.aswing.plaf.basic.icon.RadioButtonIcon, "RadioButton.margin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0), "RadioButton.textShiftOffset", 1]; table.putDefaults(_local2); _local2 = ["CheckBox.background", table.get("control"), "CheckBox.foreground", table.get("controlText"), "CheckBox.opaque", false, "CheckBox.focusable", true, "CheckBox.shadow", table.getColor("controlShadow"), "CheckBox.darkShadow", table.getColor("controlDkShadow"), "CheckBox.light", table.getColor("controlHighlight"), "CheckBox.highlight", table.getColor("controlLtHighlight"), "CheckBox.font", table.getFont("controlFont"), "CheckBox.icon", org.aswing.plaf.basic.icon.CheckBoxIcon, "CheckBox.margin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0), "CheckBox.textShiftOffset", 1]; table.putDefaults(_local2); _local2 = ["Accordion.background", table.get("window"), "Accordion.foreground", table.get("windowText"), "Accordion.opaque", false, "Accordion.focusable", true, "Accordion.motionSpeed", 50, "Accordion.tabMargin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0)]; table.putDefaults(_local2); _local2 = ["TabbedPane.background", new org.aswing.plaf.ASColorUIResource(15198181), "TabbedPane.foreground", table.get("controlText"), "TabbedPane.opaque", false, "TabbedPane.focusable", true, "TabbedPane.shadow", new org.aswing.plaf.ASColorUIResource(8947848), "TabbedPane.darkShadow", new org.aswing.plaf.ASColorUIResource(4473924), "TabbedPane.light", table.getColor("controlHighlight"), "TabbedPane.highlight", new org.aswing.plaf.ASColorUIResource(16777215), "TabbedPane.arrowShadowColor", new org.aswing.plaf.ASColorUIResource(0), "TabbedPane.arrowLightColor", new org.aswing.plaf.ASColorUIResource(4473924), "TabbedPane.font", table.getFont("controlFont"), "TabbedPane.border", null, "TabbedPane.tabMargin", new org.aswing.plaf.InsetsUIResource(1, 1, 1, 1), "TabbedPane.baseLineThickness", 8, "TabbedPane.maxTabWidth", 1000]; table.putDefaults(_local2); _local2 = ["ScrollBar.background", new org.aswing.plaf.ASColorUIResource(13684944), "ScrollBar.foreground", table.get("controlText"), "ScrollBar.opaque", true, "ScrollBar.focusable", true, "ScrollBar.shadow", table.getColor("controlShadow"), "ScrollBar.darkShadow", table.getColor("controlDkShadow"), "ScrollBar.light", table.getColor("controlHighlight"), "ScrollBar.highlight", table.getColor("controlLtHighlight"), "ScrollBar.font", table.getFont("controlFont"), "ScrollBar.border", undefined, "ScrollBar.thumb", table.get("control"), "ScrollBar.thumbShadow", table.get("controlShadow"), "ScrollBar.thumbDarkShadow", table.get("controlDkShadow"), "ScrollBar.thumbHighlight", table.get("controlHighlight"), "ScrollBar.thumbLightHighlight", table.get("controlLtHighlight"), "ScrollBar.arrowShadowColor", new org.aswing.plaf.ASColorUIResource(0), "ScrollBar.arrowLightColor", new org.aswing.plaf.ASColorUIResource(4473924)]; table.putDefaults(_local2); _local2 = ["ScrollPane.darkShadow", table.getColor("controlDkShadow"), "ScrollPane.opaque", false, "ScrollPane.focusable", true]; table.putDefaults(_local2); _local2 = ["Viewport.border", undefined, "Viewport.opaque", false, "Viewport.focusable", false, "Viewport.background", table.get("window"), "Viewport.foreground", table.get("windowText")]; table.putDefaults(_local2); _local2 = ["Panel.background", table.get("window"), "Panel.foreground", table.get("windowText"), "Panel.opaque", false, "Panel.focusable", false]; table.putDefaults(_local2); _local2 = ["Window.background", table.get("window"), "Window.foreground", table.get("windowText"), "Window.opaque", true, "Window.focusable", true, "Window.modalColor", new org.aswing.plaf.ASColorUIResource(13092805, 30), "Window.contentPaneBorder", undefined]; table.putDefaults(_local2); _local2 = ["Frame.background", table.get("window"), "Frame.foreground", table.get("windowText"), "Frame.opaque", true, "Frame.focusable", true, "Frame.activeCaption", table.get("activeCaption"), "Frame.activeCaptionText", table.get("activeCaptionText"), "Frame.activeCaptionBorder", table.get("activeCaptionBorder"), "Frame.inactiveCaption", table.get("inactiveCaption"), "Frame.inactiveCaptionText", table.get("inactiveCaptionText"), "Frame.inactiveCaptionBorder", table.get("inactiveCaptionBorder"), "Frame.resizeArrow", table.get("inactiveCaption"), "Frame.resizeArrowLight", table.get("window"), "Frame.resizeArrowDark", table.get("activeCaptionText"), "Frame.titleBarUI", org.aswing.plaf.basic.frame.TitleBarUI, "Frame.resizer", org.aswing.plaf.basic.frame.FrameResizer, "Frame.font", table.get("windowFont"), "Frame.border", org.aswing.plaf.basic.border.FrameBorder, "Frame.icon", org.aswing.plaf.basic.frame.TitleIcon, "Frame.iconifiedIcon", org.aswing.plaf.basic.icon.FrameIconifiedIcon, "Frame.normalIcon", org.aswing.plaf.basic.icon.FrameNormalIcon, "Frame.maximizeIcon", org.aswing.plaf.basic.icon.FrameMaximizeIcon, "Frame.closeIcon", org.aswing.plaf.basic.icon.FrameCloseIcon]; table.putDefaults(_local2); _local2 = ["Label.background", new org.aswing.plaf.ASColorUIResource(15198181), "Label.foreground", table.get("controlText"), "Label.opaque", false, "Label.focusable", false, "Label.font", table.getFont("controlFont"), "Label.border", undefined]; table.putDefaults(_local2); _local2 = ["ToolTip.background", new org.aswing.plaf.ASColorUIResource(16777173), "ToolTip.foreground", table.get("controlText"), "ToolTip.opaque", true, "ToolTip.focusable", false, "ToolTip.borderColor", table.get("controlText"), "ToolTip.font", table.getFont("controlFont"), "ToolTip.border", org.aswing.plaf.basic.border.ToolTipBorder]; table.putDefaults(_local2); _local2 = ["List.font", table.getFont("controlFont"), "List.background", table.get("control"), "List.foreground", table.get("controlText"), "List.opaque", false, "List.focusable", true, "List.selectionBackground", new org.aswing.plaf.ASColorUIResource(4473924), "List.selectionForeground", table.get("control"), "List.border", undefined]; table.putDefaults(_local2); _local2 = ["TextField.background", new org.aswing.plaf.ASColorUIResource(15987699), "TextField.foreground", new org.aswing.plaf.ASColorUIResource(0), "TextField.opaque", true, "TextField.focusable", true, "TextField.shadow", new org.aswing.plaf.ASColorUIResource(10066329), "TextField.darkShadow", new org.aswing.plaf.ASColorUIResource(14474973), "TextField.light", new org.aswing.plaf.ASColorUIResource(14474973), "TextField.highlight", new org.aswing.plaf.ASColorUIResource(6710886), "TextField.font", table.getFont("controlFont"), "TextField.border", org.aswing.plaf.basic.border.TextFieldBorder]; table.putDefaults(_local2); _local2 = ["TextArea.background", new org.aswing.plaf.ASColorUIResource(15987699), "TextArea.foreground", new org.aswing.plaf.ASColorUIResource(0), "TextArea.opaque", true, "TextArea.focusable", true, "TextArea.shadow", new org.aswing.plaf.ASColorUIResource(10066329), "TextArea.darkShadow", new org.aswing.plaf.ASColorUIResource(14474973), "TextArea.light", new org.aswing.plaf.ASColorUIResource(14474973), "TextArea.highlight", new org.aswing.plaf.ASColorUIResource(6710886), "TextArea.font", table.getFont("controlFont"), "TextArea.border", org.aswing.plaf.basic.border.TextAreaBorder]; table.putDefaults(_local2); _local2 = ["ToolBar.background", table.get("window"), "ToolBar.foreground", table.get("windowText"), "ToolBar.opaque", true, "ToolBar.focusable", false]; table.putDefaults(_local2); _local2 = ["ComboBox.background", table.get("control"), "ComboBox.foreground", table.get("controlText"), "ComboBox.opaque", true, "ComboBox.focusable", false, "ComboBox.font", table.getFont("controlFont"), "ComboBox.shadow", table.getColor("controlShadow"), "ComboBox.darkShadow", table.getColor("controlDkShadow"), "ComboBox.light", table.getColor("controlHighlight"), "ComboBox.highlight", table.getColor("controlLtHighlight"), "ComboBox.border", org.aswing.plaf.basic.border.ComboBoxBorder, "ComboBox.arrowShadowColor", new org.aswing.plaf.ASColorUIResource(0), "ComboBox.arrowLightColor", new org.aswing.plaf.ASColorUIResource(4473924)]; table.putDefaults(_local2); _local2 = ["Separator.background", undefined, "Separator.foreground", undefined, "Separator.opaque", false, "Separator.focusable", false]; table.putDefaults(_local2); _local2 = ["Spacer.background", table.get("window"), "Spacer.foreground", table.get("window"), "Spacer.opaque", false, "Spacer.focusable", false]; table.putDefaults(_local2); _local2 = ["ProgressBar.background", table.get("window"), "ProgressBar.foreground", table.get("windowText"), "ProgressBar.opaque", false, "ProgressBar.focusable", false, "ProgressBar.font", new org.aswing.plaf.ASFontUIResource("Tahoma", 9), "ProgressBar.border", org.aswing.plaf.basic.border.ProgressBarBorder, "ProgressBar.icon", org.aswing.plaf.basic.icon.ProgressBarIcon, "ProgressBar.progressColor", new org.aswing.plaf.ASColorUIResource(3368652)]; table.putDefaults(_local2); _local2 = ["Table.background", table.get("control"), "Table.foreground", table.get("controlText"), "Table.opaque", true, "Table.focusable", true, "Table.font", table.getFont("controlFont"), "Table.selectionBackground", new org.aswing.plaf.ASColorUIResource(6710886), "Table.selectionForeground", table.get("control"), "Table.gridColor", new org.aswing.plaf.ASColorUIResource(4473924), "Table.border", undefined]; table.putDefaults(_local2); _local2 = ["TableHeader.background", new org.aswing.plaf.ASColorUIResource(15198181), "TableHeader.foreground", table.get("controlText"), "TableHeader.font", table.getFont("controlFont"), "TableHeader.opaque", false, "TableHeader.focusable", true, "TableHeader.gridColor", new org.aswing.plaf.ASColorUIResource(4473924), "TableHeader.border", undefined, "TableHeader.cellBorder", org.aswing.plaf.basic.border.TableHeaderCellBorder]; table.putDefaults(_local2); _local2 = ["Slider.background", new org.aswing.plaf.ASColorUIResource(13684944), "Slider.foreground", table.get("controlText"), "Slider.opaque", false, "Slider.focusable", true, "Slider.shadow", table.getColor("controlShadow"), "Slider.darkShadow", table.getColor("controlDkShadow"), "Slider.light", table.getColor("controlHighlight"), "Slider.highlight", table.getColor("controlLtHighlight"), "Slider.font", table.getFont("controlFont"), "Slider.border", undefined, "Slider.tickColor", table.get("controlDkShadow"), "Slider.progressColor", new org.aswing.plaf.ASColorUIResource(12895470), "Slider.thumb", table.get("control"), "Slider.thumbShadow", table.get("controlShadow"), "Slider.thumbDarkShadow", table.get("controlDkShadow"), "Slider.thumbHighlight", table.get("controlHighlight"), "Slider.thumbLightHighlight", table.get("controlLtHighlight")]; table.putDefaults(_local2); _local2 = ["Adjuster.background", new org.aswing.plaf.ASColorUIResource(13684944), "Adjuster.foreground", table.get("controlText"), "Adjuster.opaque", false, "Adjuster.focusable", false, "Adjuster.shadow", table.getColor("controlShadow"), "Adjuster.darkShadow", table.getColor("controlDkShadow"), "Adjuster.light", table.getColor("controlHighlight"), "Adjuster.highlight", table.getColor("controlLtHighlight"), "Adjuster.font", table.getFont("controlFont"), "Adjuster.border", undefined, "Adjuster.tickColor", table.get("controlDkShadow"), "Adjuster.progressColor", new org.aswing.plaf.ASColorUIResource(12895470), "Adjuster.thumb", table.get("control"), "Adjuster.thumbShadow", table.get("controlShadow"), "Adjuster.thumbDarkShadow", table.get("controlDkShadow"), "Adjuster.thumbHighlight", table.get("controlHighlight"), "Adjuster.thumbLightHighlight", table.get("controlLtHighlight"), "Adjuster.arrowShadowColor", new org.aswing.plaf.ASColorUIResource(0), "Adjuster.arrowLightColor", new org.aswing.plaf.ASColorUIResource(4473924)]; table.putDefaults(_local2); _local2 = ["ColorSwatches.background", new org.aswing.plaf.ASColorUIResource(15658734), "ColorSwatches.foreground", table.get("controlText"), "ColorSwatches.opaque", false, "ColorSwatches.focusable", false, "ColorSwatches.font", table.getFont("controlFont"), "ColorSwatches.border", undefined]; table.putDefaults(_local2); _local2 = ["ColorMixer.background", new org.aswing.plaf.ASColorUIResource(15658734), "ColorMixer.foreground", table.get("controlText"), "ColorMixer.opaque", false, "ColorMixer.focusable", false, "ColorMixer.font", table.getFont("controlFont"), "ColorMixer.border", undefined]; table.putDefaults(_local2); _local2 = ["ColorChooser.background", table.get("window"), "ColorChooser.foreground", table.get("controlText"), "ColorChooser.opaque", false, "ColorChooser.focusable", false, "ColorChooser.font", table.getFont("controlFont"), "ColorChooser.border", org.aswing.plaf.basic.border.ColorChooserBorder]; table.putDefaults(_local2); _local2 = ["Tree.background", table.get("control"), "Tree.foreground", table.get("controlText"), "Tree.opaque", true, "Tree.focusable", true, "Tree.font", table.getFont("controlFont"), "Tree.selectionBackground", new org.aswing.plaf.ASColorUIResource(6710886), "Tree.selectionForeground", table.get("control"), "Tree.border", undefined]; table.putDefaults(_local2); _local2 = ["MenuItem.background", table.get("menu"), "MenuItem.foreground", table.get("menuText"), "MenuItem.opaque", false, "MenuItem.focusable", false, "MenuItem.font", table.getFont("menuFont"), "MenuItem.selectionBackground", new org.aswing.plaf.ASColorUIResource(6710886), "MenuItem.selectionForeground", table.get("menu"), "MenuItem.disabledForeground", new org.aswing.plaf.ASColorUIResource(8947848), "MenuItem.acceleratorFont", table.getFont("menuFont"), "MenuItem.acceleratorForeground", table.get("menuText"), "MenuItem.acceleratorSelectionForeground", table.get("menu"), "MenuItem.border", undefined, "MenuItem.arrowIcon", org.aswing.plaf.basic.icon.MenuItemArrowIcon, "MenuItem.checkIcon", org.aswing.plaf.basic.icon.MenuItemCheckIcon, "MenuItem.margin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0)]; table.putDefaults(_local2); _local2 = ["CheckBoxMenuItem.background", table.get("menu"), "CheckBoxMenuItem.foreground", table.get("menuText"), "CheckBoxMenuItem.opaque", false, "CheckBoxMenuItem.focusable", false, "CheckBoxMenuItem.font", table.getFont("menuFont"), "CheckBoxMenuItem.selectionBackground", new org.aswing.plaf.ASColorUIResource(6710886), "CheckBoxMenuItem.selectionForeground", table.get("menu"), "CheckBoxMenuItem.disabledForeground", new org.aswing.plaf.ASColorUIResource(8947848), "CheckBoxMenuItem.acceleratorFont", table.getFont("menuFont"), "CheckBoxMenuItem.acceleratorForeground", table.get("menuText"), "CheckBoxMenuItem.acceleratorSelectionForeground", table.get("menu"), "CheckBoxMenuItem.border", undefined, "CheckBoxMenuItem.arrowIcon", org.aswing.plaf.basic.icon.MenuItemArrowIcon, "CheckBoxMenuItem.checkIcon", org.aswing.plaf.basic.icon.CheckBoxMenuItemCheckIcon, "CheckBoxMenuItem.margin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0)]; table.putDefaults(_local2); _local2 = ["RadioButtonMenuItem.background", table.get("menu"), "RadioButtonMenuItem.foreground", table.get("menuText"), "RadioButtonMenuItem.opaque", false, "RadioButtonMenuItem.focusable", false, "RadioButtonMenuItem.font", table.getFont("menuFont"), "RadioButtonMenuItem.selectionBackground", new org.aswing.plaf.ASColorUIResource(6710886), "RadioButtonMenuItem.selectionForeground", table.get("menu"), "RadioButtonMenuItem.disabledForeground", new org.aswing.plaf.ASColorUIResource(8947848), "RadioButtonMenuItem.acceleratorFont", table.getFont("menuFont"), "RadioButtonMenuItem.acceleratorForeground", table.get("menuText"), "RadioButtonMenuItem.acceleratorSelectionForeground", table.get("menu"), "RadioButtonMenuItem.border", undefined, "RadioButtonMenuItem.arrowIcon", org.aswing.plaf.basic.icon.MenuItemArrowIcon, "RadioButtonMenuItem.checkIcon", org.aswing.plaf.basic.icon.RadioButtonMenuItemCheckIcon, "RadioButtonMenuItem.margin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0)]; table.putDefaults(_local2); _local2 = ["Menu.background", table.get("menu"), "Menu.foreground", table.get("menuText"), "Menu.opaque", false, "Menu.focusable", false, "Menu.font", table.getFont("menuFont"), "Menu.selectionBackground", new org.aswing.plaf.ASColorUIResource(6710886), "Menu.selectionForeground", table.get("menu"), "Menu.disabledForeground", new org.aswing.plaf.ASColorUIResource(8947848), "Menu.acceleratorFont", table.getFont("menuFont"), "Menu.acceleratorForeground", table.get("menuText"), "Menu.acceleratorSelectionForeground", table.get("menu"), "Menu.border", undefined, "Menu.arrowIcon", org.aswing.plaf.basic.icon.MenuArrowIcon, "Menu.checkIcon", org.aswing.plaf.basic.icon.MenuCheckIcon, "Menu.margin", new org.aswing.plaf.InsetsUIResource(0, 0, 0, 0), "Menu.useMenuBarBackgroundForTopLevel", true, "Menu.menuPopupOffsetX", 0, "Menu.menuPopupOffsetY", 0, "Menu.submenuPopupOffsetX", 0, "Menu.submenuPopupOffsetY", 0]; table.putDefaults(_local2); _local2 = ["PopupMenu.background", table.get("menu"), "PopupMenu.foreground", table.get("menuText"), "PopupMenu.opaque", true, "PopupMenu.focusable", false, "PopupMenu.font", table.getFont("menuFont"), "PopupMenu.border", org.aswing.plaf.basic.border.PopupMenuBorder]; table.putDefaults(_local2); _local2 = ["MenuBar.background", table.get("menu"), "MenuBar.foreground", table.get("menuText"), "MenuBar.opaque", false, "MenuBar.focusable", true, "MenuBar.font", table.getFont("menuFont"), "MenuBar.border", undefined]; table.putDefaults(_local2); _local2 = ["SplitPane.background", table.get("window"), "SplitPane.foreground", table.get("controlDkShadow"), "SplitPane.opaque", false, "SplitPane.focusable", true, "SplitPane.font", table.getFont("windowFont"), "SplitPane.border", undefined, "SplitPane.presentDragColor", new org.aswing.plaf.ASColorUIResource(0, 40)]; table.putDefaults(_local2); } }
Symbol 343 MovieClip [__Packages.org.aswing.plaf.ASColorUIResource] Frame 0
class org.aswing.plaf.ASColorUIResource extends org.aswing.ASColor implements org.aswing.plaf.UIResource { function ASColorUIResource (rgb, alpha) { super(rgb, alpha); } static function createResourceColor(color) { return(new org.aswing.plaf.ASColorUIResource(color.getRGB(), color.getAlpha())); } }
Symbol 344 MovieClip [__Packages.org.aswing.plaf.ASFontUIResource] Frame 0
class org.aswing.plaf.ASFontUIResource extends org.aswing.ASFont implements org.aswing.plaf.UIResource { function ASFontUIResource (_name, _size, _bold, _italic, _underline, _embedFonts) { super(_name, _size, _bold, _italic, _underline, _embedFonts); } static function createResourceFont(font) { return(new org.aswing.plaf.ASFontUIResource(font.getName(), font.getSize(), font.getBold(), font.getItalic(), font.getUnderline(), font.getEmbedFonts())); } }
Symbol 345 MovieClip [__Packages.org.aswing.plaf.basic.border.ButtonBorder] Frame 0
class org.aswing.plaf.basic.border.ButtonBorder implements org.aswing.border.Border, org.aswing.plaf.UIResource { static var instance; var shadow, darkShadow, highlight, lightHighlight; function ButtonBorder () { super(); reloadColors(); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.border.ButtonBorder(); } else { instance.reloadColors(); } return(instance); } function reloadColors() { var _local2 = org.aswing.UIManager.getLookAndFeelDefaults(); shadow = _local2.getColor("Button.shadow"); darkShadow = _local2.getColor("Button.darkShadow"); highlight = _local2.getColor("Button.light"); lightHighlight = _local2.getColor("Button.highlight"); } function paintBorder(c, g, bounds) { var _local3 = false; if (c instanceof org.aswing.AbstractButton) { var _local2 = org.aswing.AbstractButton(c).getModel(); _local3 = _local2.isPressed() || (_local2.isSelected()); } org.aswing.plaf.basic.BasicGraphicsUtils.drawBezel(g, bounds, _local3, shadow, darkShadow, highlight, lightHighlight); } function getBorderInsets(c, bounds) { return(new org.aswing.Insets(2, 2, 2, 2)); } function uninstallBorder(c) { } }
Symbol 346 MovieClip [__Packages.org.aswing.ASWingConstants] Frame 0
class org.aswing.ASWingConstants { function ASWingConstants () { } static var NONE = -1; static var CENTER = 0; static var TOP = 1; static var LEFT = 2; static var BOTTOM = 3; static var RIGHT = 4; static var NORTH = 1; static var NORTH_EAST = 2; static var EAST = 3; static var SOUTH_EAST = 4; static var SOUTH = 5; static var SOUTH_WEST = 6; static var WEST = 7; static var NORTH_WEST = 8; static var HORIZONTAL = 0; static var VERTICAL = 1; }
Symbol 347 MovieClip [__Packages.org.aswing.AbstractButton] Frame 0
class org.aswing.AbstractButton extends org.aswing.Component { var setName, paintBorder, rolloverEnabled, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, iconTextGap, model, modelStateListener, modelSelectionListener, revalidate, repaint, fireStateChanged, dispatchEvent, createEventObj, ui, addEventListener, action, removeEventListener, defaultMargin, margin, text, defaultIcon, uninstallIconWhenNextPaint, invalidate, pressedIcon, selectedIcon, rolloverIcon, rolloverSelectedIcon, disabledIcon, isEnabled, disabledSelectedIcon, fireActionEvent; function AbstractButton (text, icon) { super(); if (text instanceof org.aswing.Icon) { icon = org.aswing.Icon(text); text = null; } setName("AbstractButton"); paintBorder = true; rolloverEnabled = false; verticalAlignment = CENTER; horizontalAlignment = CENTER; verticalTextPosition = CENTER; horizontalTextPosition = RIGHT; iconTextGap = 2; setText(text); setIcon(icon); } function getModel() { return(model); } function setModel(newModel) { var _local2 = getModel(); if (_local2 != null) { _local2.removeEventListener(modelStateListener); _local2.removeEventListener(modelSelectionListener); modelStateListener = null; modelSelectionListener = null; } model = newModel; if (newModel != null) { modelStateListener = newModel.addChangeListener(__onModelStateChanged, this); modelSelectionListener = newModel.addSelectionListener(__onModelSelectionChanged, this); } if (newModel != _local2) { revalidate(); repaint(); } } function __onModelStateChanged() { fireStateChanged(); } function __onModelSelectionChanged() { dispatchEvent(createEventObj(ON_SELECTION_CHANGED)); } function getUI() { return(org.aswing.plaf.ButtonUI(ui)); } function setUI(ui) { super.setUI(ui); } function updateUI() { } function addActionListener(fuc, obj) { return(addEventListener(org.aswing.EventDispatcher.ON_ACT, fuc, obj)); } function addSelectionListener(func, obj) { return(addEventListener(ON_SELECTION_CHANGED, func, obj)); } function setAction(ac) { if (action != ac) { removeEventListener(action); action = ac; addEventListener(action); } } function getAction() { return(action); } function setEnabled(b) { if ((!b) && (model.isRollOver())) { model.setRollOver(false); } super.setEnabled(b); model.setEnabled(b); } function isSelected() { return(model.isSelected()); } function setSelected(b) { model.setSelected(b); } function setRollOverEnabled(b) { if (rolloverEnabled != b) { rolloverEnabled = b; repaint(); } } function isRollOverEnabled() { return(rolloverEnabled); } function setMargin(m) { if (m instanceof org.aswing.plaf.UIResource) { defaultMargin = m; } if ((m == null) && (defaultMargin != null)) { m = defaultMargin; } var _local3 = margin; margin = m; if ((_local3 == null) || (!m.equals(_local3))) { revalidate(); } } function getMargin() { var _local2 = margin; if (margin == null) { _local2 = defaultMargin; } if ((_local2 == null) || (_local2 instanceof org.aswing.plaf.UIResource)) { return(new org.aswing.plaf.InsetsUIResource(_local2.top, _local2.left, _local2.bottom, _local2.right)); } return(new org.aswing.Insets(_local2.top, _local2.left, _local2.bottom, _local2.right)); } function setContent(text, icon) { if (this.text != text) { this.text = text; } if (defaultIcon != icon) { uninstallIconWhenNextPaint(defaultIcon); defaultIcon = icon; } repaint(); invalidate(); } function setText(text) { if (this.text != text) { this.text = text; repaint(); invalidate(); } } function getText() { return(text); } function setIcon(defaultIcon) { if (this.defaultIcon != defaultIcon) { uninstallIconWhenNextPaint(this.defaultIcon); this.defaultIcon = defaultIcon; repaint(); invalidate(); } } function getIcon() { return(defaultIcon); } function getPressedIcon() { return(pressedIcon); } function setPressedIcon(pressedIcon) { var _local2 = this.pressedIcon; this.pressedIcon = pressedIcon; if (pressedIcon != _local2) { uninstallIconWhenNextPaint(_local2); if (getModel().isPressed()) { repaint(); } } } function getSelectedIcon() { return(selectedIcon); } function setSelectedIcon(selectedIcon) { var _local2 = this.selectedIcon; this.selectedIcon = selectedIcon; if (selectedIcon != _local2) { uninstallIconWhenNextPaint(_local2); if (isSelected()) { repaint(); } } } function getRollOverIcon() { return(rolloverIcon); } function setRollOverIcon(rolloverIcon) { var _local2 = this.rolloverIcon; this.rolloverIcon = rolloverIcon; setRollOverEnabled(true); if (rolloverIcon != _local2) { uninstallIconWhenNextPaint(_local2); if (getModel().isRollOver()) { repaint(); } } } function getRollOverSelectedIcon() { return(rolloverSelectedIcon); } function setRollOverSelectedIcon(rolloverSelectedIcon) { var _local2 = this.rolloverSelectedIcon; this.rolloverSelectedIcon = rolloverSelectedIcon; setRollOverEnabled(true); if (rolloverSelectedIcon != _local2) { uninstallIconWhenNextPaint(_local2); if (isSelected()) { repaint(); } } } function getDisabledIcon() { if (disabledIcon == null) { if (defaultIcon != null) { return(new org.aswing.overflow.GrayFilteredIcon(defaultIcon)); } } return(disabledIcon); } function setDisabledIcon(disabledIcon) { var _local2 = this.disabledIcon; this.disabledIcon = disabledIcon; if (disabledIcon != _local2) { uninstallIconWhenNextPaint(_local2); if (!isEnabled()) { repaint(); } } } function getDisabledSelectedIcon() { if (disabledSelectedIcon == null) { if (selectedIcon != null) { disabledSelectedIcon = new org.aswing.overflow.GrayFilteredIcon(selectedIcon); } else { return(getDisabledIcon()); } } return(disabledSelectedIcon); } function setDisabledSelectedIcon(disabledSelectedIcon) { var _local2 = this.disabledSelectedIcon; this.disabledSelectedIcon = disabledSelectedIcon; if (disabledSelectedIcon != _local2) { uninstallIconWhenNextPaint(_local2); if ((!isEnabled()) && (isSelected())) { repaint(); revalidate(); } } } function getVerticalAlignment() { return(verticalAlignment); } function setVerticalAlignment(alignment) { if (alignment == verticalAlignment) { return(undefined); } verticalAlignment = alignment; repaint(); } function getHorizontalAlignment() { return(horizontalAlignment); } function setHorizontalAlignment(alignment) { if (alignment == horizontalAlignment) { return(undefined); } horizontalAlignment = alignment; repaint(); } function getVerticalTextPosition() { return(verticalTextPosition); } function setVerticalTextPosition(textPosition) { if (textPosition == verticalTextPosition) { return(undefined); } verticalTextPosition = textPosition; repaint(); revalidate(); } function getHorizontalTextPosition() { return(horizontalTextPosition); } function setHorizontalTextPosition(textPosition) { if (textPosition == horizontalTextPosition) { return(undefined); } horizontalTextPosition = textPosition; repaint(); revalidate(); } function getIconTextGap() { return(iconTextGap); } function setIconTextGap(iconTextGap) { var _local2 = this.iconTextGap; this.iconTextGap = iconTextGap; if (iconTextGap != _local2) { revalidate(); repaint(); } } function __onPress() { getModel().setPressed(true); super.__onPress(); } function __onRelease() { getModel().setReleased(true); super.__onRelease(); fireActionEvent(); } function __onReleaseOutside() { getModel().setRollOver(false); getModel().setReleased(true); super.__onReleaseOutside(); } function __onRollOver() { getModel().setRollOver(true); super.__onRollOver(); } function __onRollOut() { getModel().setRollOver(false); super.__onRollOut(); } static var ON_STATE_CHANGED = "onStateChanged"; static var ON_SELECTION_CHANGED = "onSelectionChanged"; static var CENTER = org.aswing.ASWingConstants.CENTER; static var TOP = org.aswing.ASWingConstants.TOP; static var LEFT = org.aswing.ASWingConstants.LEFT; static var BOTTOM = org.aswing.ASWingConstants.BOTTOM; static var RIGHT = org.aswing.ASWingConstants.RIGHT; static var HORIZONTAL = org.aswing.ASWingConstants.HORIZONTAL; static var VERTICAL = org.aswing.ASWingConstants.VERTICAL; }
Symbol 348 MovieClip [__Packages.org.aswing.ButtonModel] Frame 0
interface org.aswing.ButtonModel extends org.aswing.IEventDispatcher { }
Symbol 349 MovieClip [__Packages.org.aswing.ButtonGroup] Frame 0
class org.aswing.ButtonGroup { var buttons; function ButtonGroup () { buttons = new Array(); } function append(b) { if (b == null) { return(undefined); } buttons.push(b); if (b.isSelected()) { if (selection == null) { selection = b.getModel(); } else { b.setSelected(false); } } b.getModel().setGroup(this); } function remove(b) { if (b == null) { return(undefined); } org.aswing.util.ArrayUtils.removeFromArray(buttons, b); if (b.getModel() == selection) { selection = null; } b.getModel().setGroup(null); } function contains(b) { var _local2 = 0; while (_local2 < buttons.length) { if (buttons[_local2] == b) { return(true); } _local2++; } return(false); } function getElements() { return(org.aswing.util.ArrayUtils.cloneArray(buttons)); } function getSelection() { return(selection); } function setSelected(m, b) { if (m != null) { if (b && (m != selection)) { var _local3 = selection; selection = m; if (_local3 != null) { _local3.setSelected(false); } m.setSelected(true); } else if (((!b) && (m == selection)) && (selection.isAllowUnselectAllInGroup())) { selection = null; } } } function isSelected(m) { return(m == selection); } function getButtonCount() { return(buttons.length); } var selection = null; }
Symbol 350 MovieClip [__Packages.org.aswing.Action] Frame 0
interface org.aswing.Action { }
Symbol 351 MovieClip [__Packages.org.aswing.plaf.ButtonUI] Frame 0
class org.aswing.plaf.ButtonUI extends org.aswing.plaf.ComponentUI { function ButtonUI () { super(); } }
Symbol 352 MovieClip [__Packages.org.aswing.plaf.InsetsUIResource] Frame 0
class org.aswing.plaf.InsetsUIResource extends org.aswing.Insets implements org.aswing.plaf.UIResource { function InsetsUIResource (top, left, bottom, right) { super(top, left, bottom, right); } }
Symbol 353 MovieClip [__Packages.org.aswing.overflow.ComponentDecorator] Frame 0
class org.aswing.overflow.ComponentDecorator { var mcMap, tfMap; function ComponentDecorator () { mcMap = new org.aswing.util.HashMap(); tfMap = new org.aswing.util.HashMap(); } static function get creater() { return(org.aswing.ElementCreater.getInstance()); } static function removeIconWhenNextPaint(com, icon) { var _local1 = new Object(); _local1[org.aswing.Component.ON_PAINT] = org.aswing.util.Delegate.create(org.aswing.overflow.ComponentDecorator, _removeIcon, icon, _local1); com.addEventListener(_local1); } static function _removeIcon(source, icon, listener) { var _local1 = source; icon.uninstallIcon(_local1); _local1.removeEventListener(listener); } static function removeBorderWhenNextPaint(com, border) { var _local1 = new Object(); _local1[org.aswing.Component.ON_PAINT] = org.aswing.util.Delegate.create(org.aswing.overflow.ComponentDecorator, _removeBorder, border, _local1); com.addEventListener(_local1); } static function _removeBorder(source, border, listener) { var _local1 = source; border.uninstallBorder(_local1); _local1.removeEventListener(listener); } function createDecorateMC(c) { var _local2 = c.createMovieClip("decorator"); if (org.aswing.util.MCUtils.isMovieClipExist(_local2)) { mcMap.put(c.getID(), _local2); return(_local2); } return(null); } function createDecorateTextField(c) { var _local2 = c.createTextField("decor_txt"); if (org.aswing.util.MCUtils.isTextFieldExist(_local2)) { tfMap.put(c.getID(), _local2); return(_local2); } return(null); } function attachDecrateMC(c, linkage) { var _local2 = c.attachMovieClip(linkage, "deco_att"); if (org.aswing.util.MCUtils.isMovieClipExist(_local2)) { mcMap.put(c.getID(), _local2); return(_local2); } return(null); } function getCreateDecorateMC(c) { var _local2 = getDecorateMC(c); if (!org.aswing.util.MCUtils.isMovieClipExist(_local2)) { return(createDecorateMC(c)); } return(_local2); } function getCreateDecorateTextField(c) { var _local2 = getDecorateTextField(c); if ((_local2 == null) || (_local2.toString() == null)) { return(createDecorateTextField(c)); } return(_local2); } function getAttachDecorateMC(c, linkage) { var _local2 = getDecorateMC(c); if (!org.aswing.util.MCUtils.isMovieClipExist(_local2)) { return(attachDecrateMC(c, linkage)); } return(_local2); } function getDecorateMC(c) { return(MovieClip(mcMap.get(c.getID()))); } function getDecorateTextField(c) { return(TextField(tfMap.get(c.getID()))); } function removeDecorateMC(c) { var _local2 = MovieClip(mcMap.remove(c.getID())); _local2.unloadMovie(); _local2.removeMovieClip(); } function removeDecorateTextField(c) { var _local2 = TextField(tfMap.remove(c.getID())); _local2.unloadMovie(); _local2.removeMovieClip(); } function uninstallDecorate(com) { uninstallDecorateExtra(com); removeDecorateMC(com); removeDecorateTextField(com); } function uninstallDecorateExtra(com) { } }
Symbol 354 MovieClip [__Packages.org.aswing.overflow.GrayFilteredIcon] Frame 0
class org.aswing.overflow.GrayFilteredIcon extends org.aswing.overflow.ComponentDecorator implements org.aswing.Icon { var icon, filterTranform, getCreateDecorateMC, removeDecorateMC; function GrayFilteredIcon (icon, gray) { super(); this.icon = icon; if (gray == undefined) { gray = DEFAULT_GRAY; } filterTranform = {ra:gray, rb:0, ga:gray, gb:0, ba:gray, bb:0, aa:gray, ab:0}; } function getIconWidth() { return(icon.getIconWidth()); } function getIconHeight() { return(icon.getIconHeight()); } function createDecorateMC(c) { var _local3 = super.createDecorateMC(c); var _local4 = new Color(_local3); _local4.setTransform(filterTranform); return(_local3); } function paintIcon(com, g, x, y) { var _local2 = getCreateDecorateMC(com); _local2.clear(); var _local3 = new org.aswing.graphics.Graphics(_local2); icon.paintIcon(com, _local3, x, y); } function uninstallIcon(com) { icon.uninstallIcon(com); removeDecorateMC(com); } static var DEFAULT_GRAY = 50; }
Symbol 355 MovieClip [__Packages.org.aswing.plaf.basic.BasicGraphicsUtils] Frame 0
class org.aswing.plaf.basic.BasicGraphicsUtils { function BasicGraphicsUtils () { } static function drawUpperedBezel(g, r, shadow, darkShadow, highlight, lightHighlight) { var _local3 = r.x; var _local2 = r.y; var _local5 = r.width; var _local4 = r.height; var _local1 = new org.aswing.graphics.SolidBrush(darkShadow, 100); g.fillRectangleRingWithThickness(_local1, _local3, _local2, _local5, _local4, 1); _local1.setASColor(lightHighlight); g.fillRectangleRingWithThickness(_local1, _local3, _local2, _local5 - 1, _local4 - 1, 1); _local1.setASColor(highlight); g.fillRectangleRingWithThickness(_local1, _local3 + 1, _local2 + 1, _local5 - 2, _local4 - 2, 1); _local1.setASColor(shadow); g.fillRectangle(_local1, (_local3 + _local5) - 2, _local2 + 1, 1, _local4 - 2); g.fillRectangle(_local1, _local3 + 1, (_local2 + _local4) - 2, _local5 - 2, 1); } static function drawLoweredBezel(g, r, shadow, darkShadow, highlight, lightHighlight) { var _local3 = r.x; var _local2 = r.y; var _local5 = r.width; var _local4 = r.height; var _local1 = new org.aswing.graphics.SolidBrush(darkShadow, 100); g.fillRectangleRingWithThickness(_local1, _local3, _local2, _local5, _local4, 1); _local1.setASColor(darkShadow); g.fillRectangleRingWithThickness(_local1, _local3, _local2, _local5 - 1, _local4 - 1, 1); _local1.setASColor(highlight); g.fillRectangleRingWithThickness(_local1, _local3 + 1, _local2 + 1, _local5 - 2, _local4 - 2, 1); _local1.setASColor(highlight); g.fillRectangle(_local1, (_local3 + _local5) - 2, _local2 + 1, 1, _local4 - 2); g.fillRectangle(_local1, _local3 + 1, (_local2 + _local4) - 2, _local5 - 2, 1); } static function drawBezel(g, r, isPressed, shadow, darkShadow, highlight, lightHighlight) { if (isPressed) { drawLoweredBezel(g, r, shadow, darkShadow, highlight, lightHighlight); } else { drawUpperedBezel(g, r, shadow, darkShadow, highlight, lightHighlight); } } static function paintBezel(g, r, isPressed, shadow, darkShadow, highlight, lightHighlight) { if (isPressed) { paintLoweredBevel(g, r, shadow, darkShadow, highlight, lightHighlight); } else { paintRaisedBevel(g, r, shadow, darkShadow, highlight, lightHighlight); } } static function paintRaisedBevel(g, r, shadow, darkShadow, highlight, lightHighlight) { var _local4 = r.height - 1; var _local5 = r.width - 1; var _local2 = r.x + 0.5; var _local1 = r.y + 0.5; var _local3 = new org.aswing.graphics.AdvancedPen(lightHighlight, 1, undefined, "normal", "square", "miter"); g.drawLine(_local3, _local2, _local1, _local2, (_local1 + _local4) - 2); g.drawLine(_local3, _local2 + 1, _local1, (_local2 + _local5) - 2, _local1); _local3.setASColor(highlight); g.drawLine(_local3, _local2 + 1, _local1 + 1, _local2 + 1, (_local1 + _local4) - 3); g.drawLine(_local3, _local2 + 2, _local1 + 1, (_local2 + _local5) - 3, _local1 + 1); _local3.setASColor(darkShadow); g.drawLine(_local3, _local2, (_local1 + _local4) - 1, (_local2 + _local5) - 1, (_local1 + _local4) - 1); g.drawLine(_local3, (_local2 + _local5) - 1, _local1, (_local2 + _local5) - 1, (_local1 + _local4) - 2); _local3.setASColor(shadow); g.drawLine(_local3, _local2 + 1, (_local1 + _local4) - 2, (_local2 + _local5) - 2, (_local1 + _local4) - 2); g.drawLine(_local3, (_local2 + _local5) - 2, _local1 + 1, (_local2 + _local5) - 2, (_local1 + _local4) - 3); } static function paintLoweredBevel(g, r, shadow, darkShadow, highlight, lightHighlight) { var _local4 = r.height - 1; var _local5 = r.width - 1; var _local2 = r.x + 0.5; var _local1 = r.y + 0.5; var _local3 = new org.aswing.graphics.AdvancedPen(shadow, 1, undefined, "normal", "square", "miter"); g.drawLine(_local3, _local2, _local1, _local2, (_local1 + _local4) - 1); g.drawLine(_local3, _local2 + 1, _local1, (_local2 + _local5) - 1, _local1); _local3.setASColor(darkShadow); g.drawLine(_local3, _local2 + 1, _local1 + 1, _local2 + 1, (_local1 + _local4) - 2); g.drawLine(_local3, _local2 + 2, _local1 + 1, (_local2 + _local5) - 2, _local1 + 1); _local3.setASColor(lightHighlight); g.drawLine(_local3, _local2 + 1, (_local1 + _local4) - 1, (_local2 + _local5) - 1, (_local1 + _local4) - 1); g.drawLine(_local3, (_local2 + _local5) - 1, _local1 + 1, (_local2 + _local5) - 1, (_local1 + _local4) - 2); _local3.setASColor(highlight); g.drawLine(_local3, _local2 + 2, (_local1 + _local4) - 2, (_local2 + _local5) - 2, (_local1 + _local4) - 2); g.drawLine(_local3, (_local2 + _local5) - 2, _local1 + 2, (_local2 + _local5) - 2, (_local1 + _local4) - 3); } }
Symbol 356 MovieClip [__Packages.org.aswing.graphics.AdvancedPen] Frame 0
class org.aswing.graphics.AdvancedPen extends org.aswing.graphics.Pen { var pixelHinting, noScale, capsStyle, jointStyle, miterLimit, _thickness, _color, _alpha; function AdvancedPen (color, thickness, pixelHinting, noScale, capsStyle, jointStyle, miterLimit) { super(color, thickness); this.pixelHinting = pixelHinting; this.noScale = noScale; this.capsStyle = capsStyle; this.jointStyle = jointStyle; this.miterLimit = miterLimit; } function setTo(target) { target.lineStyle(_thickness, _color, _alpha, pixelHinting, noScale, capsStyle, jointStyle, miterLimit); } function getNoScale() { return(noScale); } function setNoScale(noScale) { this.noScale = noScale; } function getPixelHinting() { return(pixelHinting); } function setPixelHinting(pixelHinting) { this.pixelHinting = pixelHinting; } function getCapsStyle() { return(capsStyle); } function setCapsStyle(capsStyle) { this.capsStyle = capsStyle; } function getMiterLimit() { return(miterLimit); } function setMiterLimit(miterLimit) { this.miterLimit = miterLimit; } function getJointStyle() { return(jointStyle); } function setJointStyle(jointStyle) { this.jointStyle = jointStyle; } }
Symbol 357 MovieClip [__Packages.org.aswing.plaf.basic.icon.RadioButtonIcon] Frame 0
class org.aswing.plaf.basic.icon.RadioButtonIcon implements org.aswing.Icon, org.aswing.plaf.UIResource { static var instance; var shadow, darkShadow, highlight, lightHighlight; function RadioButtonIcon () { super(); reloadColors(); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.icon.RadioButtonIcon(); } else { instance.reloadColors(); } return(instance); } function reloadColors() { var _local2 = org.aswing.UIManager.getLookAndFeelDefaults(); shadow = _local2.getColor("RadioButton.shadow"); darkShadow = _local2.getColor("RadioButton.darkShadow"); highlight = _local2.getColor("RadioButton.light"); lightHighlight = _local2.getColor("RadioButton.highlight"); } function getIconWidth() { return(13); } function getIconHeight() { return(13); } function paintIcon(com, g, x, y) { var _local6 = org.aswing.JRadioButton(com); var _local5 = _local6.getModel(); var _local15 = _local5.isSelected(); var _local7 = darkShadow; var _local20 = highlight; var _local8 = shadow; var _local9 = _local6.getForeground(); if (!_local5.isEnabled()) { _local8 = _local6.getBackground(); _local20 = _local8; _local7 = _local20; _local9 = darkShadow; } else if (_local5.isPressed()) { _local7 = shadow; _local8 = darkShadow; } var _local12 = getIconWidth(); var _local10 = getIconHeight(); var _local17 = x + (_local12 / 2); var _local16 = y + (_local10 / 2); var _local4 = _local12 / 2; var _local3 = _local10 / 2; var _local2 = new org.aswing.graphics.SolidBrush(darkShadow); g.fillEllipse(_local2, x, y, _local12, _local10); _local2.setASColor(highlight); g.fillEllipse(_local2, x + 1, y + 1, _local12 - 2, _local10 - 2); var _local19 = [14474200, 16777215]; var _local13 = [100, 100]; var _local23 = [0, 255]; var _local14 = {matrixType:"box", x:x + 2, y:y + 2, w:_local12 - 3, h:_local10 - 3, r:(Math.PI/4)}; var _local18 = new org.aswing.graphics.GradientBrush(org.aswing.graphics.GradientBrush.LINEAR, _local19, _local13, _local23, _local14); g.fillEllipse(_local18, x + 2, y + 2, _local12 - 4, _local10 - 4); if (_local15) { _local4 = _local12 / 5; _local3 = _local10 / 5; _local2 = new org.aswing.graphics.SolidBrush(_local9); g.fillEllipse(_local2, _local17 - _local4, _local16 - _local3, _local4 * 2, _local3 * 2); } } function uninstallIcon(com) { } }
Symbol 358 MovieClip [__Packages.org.aswing.overflow.JToggleButton] Frame 0
class org.aswing.overflow.JToggleButton extends org.aswing.AbstractButton { var setName, setModel, setUI; function JToggleButton (text, icon) { super(text, icon); setName("JToggleButton"); setModel(new org.aswing.overflow.ToggleButtonModel()); updateUI(); } function updateUI() { setUI(org.aswing.plaf.ButtonUI(org.aswing.UIManager.getUI(this))); } function getUIClassID() { return("ToggleButtonUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.asw.ASWingToggleButtonUI); } }
Symbol 359 MovieClip [__Packages.org.aswing.DefaultButtonModel] Frame 0
class org.aswing.DefaultButtonModel extends org.aswing.EventDispatcher implements org.aswing.ButtonModel { var enabled, rollOver, pressed, released, selected, allowUnselectAllInGroup, group, addEventListener, dispatchEvent, createEventObj; function DefaultButtonModel () { super(); enabled = true; rollOver = false; pressed = false; released = false; selected = false; allowUnselectAllInGroup = true; } function isPressed() { return(pressed); } function isReleased() { return(released); } function isSelected() { return(selected); } function isEnabled() { return(enabled); } function isRollOver() { return(rollOver); } function setReleased(b) { if ((released == b) || (!isEnabled())) { return(undefined); } released = b; if (released) { pressed = false; } fireStateChanged(); } function setEnabled(b) { if (enabled == b) { return(undefined); } enabled = b; if (!b) { pressed = false; } fireStateChanged(); } function setSelected(b) { if (selected == b) { return(undefined); } selected = b; fireStateChanged(); fireSelectionChanged(); } function setPressed(b) { if ((pressed == b) || (!isEnabled())) { return(undefined); } pressed = b; if (pressed) { released = false; } fireStateChanged(); } function setRollOver(b) { if ((rollOver == b) || (!isEnabled())) { return(undefined); } rollOver = b; fireStateChanged(); } function setGroup(group) { this.group = group; } function getGroup() { return(group); } function setAllowUnselectAllInGroup(allow) { allowUnselectAllInGroup = allow; } function isAllowUnselectAllInGroup() { return(allowUnselectAllInGroup); } function addChangeListener(func, obj) { return(addEventListener(org.aswing.AbstractButton.ON_STATE_CHANGED, func, obj)); } function addSelectionListener(func, obj) { return(addEventListener(org.aswing.AbstractButton.ON_SELECTION_CHANGED, func, obj)); } function fireStateChanged() { dispatchEvent(createEventObj(org.aswing.AbstractButton.ON_STATE_CHANGED)); } function fireSelectionChanged() { dispatchEvent(createEventObj(org.aswing.AbstractButton.ON_SELECTION_CHANGED)); } function toString() { return("org.aswing.DefaultButtonModel[]"); } }
Symbol 360 MovieClip [__Packages.org.aswing.overflow.ToggleButtonModel] Frame 0
class org.aswing.overflow.ToggleButtonModel extends org.aswing.DefaultButtonModel { var getGroup, released, isEnabled, isRollOver, isSelected, pressed, fireStateChanged; function ToggleButtonModel () { super(); } function setSelected(b) { var _local3 = getGroup(); if (_local3 != null) { _local3.setSelected(this, b); b = _local3.isSelected(this); } super.setSelected(b); } function setReleased(b) { if ((released == b) || (!isEnabled())) { return(undefined); } if (b && (isRollOver())) { setSelected(!isSelected()); } released = b; if (released) { pressed = false; } fireStateChanged(); } }
Symbol 361 MovieClip [__Packages.org.aswing.plaf.basic.BasicButtonUI] Frame 0
class org.aswing.plaf.basic.BasicButtonUI extends org.aswing.plaf.ButtonUI { static var buttonUI, viewRect, textRect, iconRect; var shiftOffset, defaultTextShiftOffset, defaults_initialized, listenerMap, lastPaintedIconMap, topTextFieldMap, bottomTextFieldMap; function BasicButtonUI () { super(); shiftOffset = 0; defaultTextShiftOffset = 0; defaults_initialized = false; listenerMap = new org.aswing.util.HashMap(); lastPaintedIconMap = new org.aswing.util.HashMap(); topTextFieldMap = new org.aswing.util.HashMap(); bottomTextFieldMap = new org.aswing.util.HashMap(); checkRectsForCountLayout(); } static function createInstance(c) { if (buttonUI == null) { buttonUI = new org.aswing.plaf.basic.BasicButtonUI(); } return(buttonUI); } function getPropertyPrefix() { return(propertyPrefix); } function installUI(c) { var _local2 = org.aswing.AbstractButton(c); installDefaults(_local2); installListeners(_local2); } function installDefaults(b) { var _local2 = getPropertyPrefix(); if (!defaults_initialized) { defaultTextShiftOffset = org.aswing.UIManager.getNumber(_local2 + "textShiftOffset"); defaults_initialized = true; } if ((b.getMargin() === undefined) || (b.getMargin() instanceof org.aswing.plaf.UIResource)) { b.setMargin(org.aswing.UIManager.getInsets(_local2 + "margin")); } org.aswing.LookAndFeel.installColorsAndFont(b, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBorder(b, _local2 + "border"); org.aswing.LookAndFeel.installBasicProperties(b, _local2); setTextShiftOffset(); } function installListeners(b) { var _local2 = createButtonListener(b); if (_local2 != null) { listenerMap.put(b.getID(), _local2); b.addEventListener(_local2); } } function createButtonListener(b) { var _local2 = new Object(); _local2[org.aswing.AbstractButton.ON_STATE_CHANGED] = org.aswing.util.Delegate.create(this, __onStateChanged); _local2[org.aswing.AbstractButton.ON_KEY_DOWN] = org.aswing.util.Delegate.create(this, __onKeyDown); _local2[org.aswing.AbstractButton.ON_KEY_UP] = org.aswing.util.Delegate.create(this, __onKeyUp); return(_local2); } function __onStateChanged(source) { source.paintImmediately(); } function __onKeyDown(source) { if (!source.isEnabled()) { return(undefined); } var _local1 = source; var _local2 = _local1.getModel(); if ((Key.getCode() == 32) && (!(_local2.isRollOver() && (_local2.isPressed())))) { org.aswing.FocusManager.getCurrentManager().setTraversing(true); _local1.getModel().setRollOver(true); _local1.getModel().setPressed(true); } } function __onKeyUp(source) { if (!source.isEnabled()) { return(undefined); } var _local1 = source; if (Key.getCode() == 32) { org.aswing.FocusManager.getCurrentManager().setTraversing(true); _local1.getModel().setReleased(true); _local1.fireActionEvent(); _local1.getModel().setRollOver(false); } } function uninstallUI(c) { var _local3 = org.aswing.AbstractButton(c); uninstallDefaults(_local3); uninstallListeners(_local3); removeMCs(_local3); listenerMap.remove(c.getID()); lastPaintedIconMap.remove(c.getID()); topTextFieldMap.remove(c.getID()); bottomTextFieldMap.remove(c.getID()); } function uninstallDefaults(b) { org.aswing.LookAndFeel.uninstallBorder(b); defaults_initialized = false; } function uninstallListeners(b) { b.removeEventListener(listenerMap.remove(b.getID())); } function removeMCs(c) { getTopTextField(c).removeTextField(); getBottomTextField(c).removeTextField(); } function create(c) { var _local3 = c.createTextField("t_text"); var _local4 = c.createTextField("b_text"); topTextFieldMap.put(c.getID(), _local3); bottomTextFieldMap.put(c.getID(), _local4); c.setFontValidated(false); } function getTopTextField(c) { return(TextField(topTextFieldMap.get(c.getID()))); } function getBottomTextField(c) { return(TextField(bottomTextFieldMap.get(c.getID()))); } static function checkRectsForCountLayout() { if (viewRect == null) { viewRect = new org.aswing.geom.Rectangle(); textRect = new org.aswing.geom.Rectangle(); iconRect = new org.aswing.geom.Rectangle(); } } function paint(c, g, r) { super.paint(c, g, r); var _local3 = org.aswing.AbstractButton(c); var _local5 = _local3.getMargin(); if (_local5 != null) { r = _local5.getInsideBounds(r); } viewRect.setRect(r); textRect.x = (textRect.y = (textRect.width = (textRect.height = 0))); iconRect.x = (iconRect.y = (iconRect.width = (iconRect.height = 0))); var _local4 = org.aswing.ASWingUtils.layoutCompoundLabel(c.getFont(), _local3.getText(), _local3.getIcon(), _local3.getVerticalAlignment(), _local3.getHorizontalAlignment(), _local3.getVerticalTextPosition(), _local3.getHorizontalTextPosition(), viewRect, iconRect, textRect, ((_local3.getText() == null) ? 0 : (_local3.getIconTextGap()))); paintIcon(_local3, g, iconRect); if ((_local4 != null) && (_local4 != "")) { if (_local3.getModel().isPressed()) { textRect.x = textRect.x + getTextShiftOffset(); textRect.y = textRect.y + getTextShiftOffset(); } paintText(_local3, textRect, _local4); } else { getTopTextField(_local3).text = ""; getBottomTextField(_local3).text = ""; } } function paintText(b, textRect, text) { var _local6 = b.getModel(); var _local3 = b.getFont(); if (_local6.isEnabled()) { paintTextField(b, textRect, getTopTextField(b), text, _local3, b.getForeground()); getBottomTextField(b)._visible = false; } else { getBottomTextField(b)._visible = true; paintTextField(b, textRect, getTopTextField(b), text, _local3, b.getBackground().darker()); var _local4 = new org.aswing.geom.Rectangle(textRect); _local4.x++; _local4.y++; b.setFontValidated(false); paintTextField(b, _local4, getBottomTextField(b), text, _local3, b.getBackground().brighter()); } } function paintTextField(b, tRect, textField, text, font, color) { if (textField.text != text) { textField.text = text; } if (!b.isFontValidated()) { org.aswing.ASWingUtils.applyTextFont(textField, font); b.setFontValidated(true); } org.aswing.ASWingUtils.applyTextColor(textField, color); textField._x = tRect.x; textField._y = tRect.y; } function paintIcon(b, g, iconRect) { var _local4 = b.getModel(); var _local5 = b.getIcon(); var _local3 = null; if (_local5 == null) { unistallLastPaintIcon(b, _local5); return(undefined); } if (!_local4.isEnabled()) { if (_local4.isSelected()) { _local3 = b.getDisabledSelectedIcon(); } else { _local3 = b.getDisabledIcon(); } } else if (_local4.isPressed()) { _local3 = b.getPressedIcon(); if (_local3 != null) { } } else if (_local4.isRollOver() && (b.isRollOverEnabled())) { if (_local4.isSelected()) { _local3 = b.getRollOverSelectedIcon(); } else { _local3 = b.getRollOverIcon(); } } else if (_local4.isSelected()) { _local3 = b.getSelectedIcon(); } if (_local3 != null) { _local5 = _local3; } unistallLastPaintIcon(b, _local5); if (_local4.isPressed()) { _local5.paintIcon(b, g, iconRect.x + getTextShiftOffset(), iconRect.y + getTextShiftOffset()); } else { _local5.paintIcon(b, g, iconRect.x, iconRect.y); } setJustPaintedIcon(b, _local5); } function paintBackGround(com, g, b) { super.paintBackGround(com, g, b); } function unistallLastPaintIcon(b, currentIcon) { var _local2 = org.aswing.Icon(lastPaintedIconMap.get(b.getID())); if (_local2 != currentIcon) { _local2.uninstallIcon(b); } } function setJustPaintedIcon(b, ic) { lastPaintedIconMap.put(b.getID(), ic); } function clearTextShiftOffset() { shiftOffset = 0; } function setTextShiftOffset() { shiftOffset = defaultTextShiftOffset; } function getTextShiftOffset() { return(shiftOffset); } function getButtonPreferredSize(b, icon, text) { viewRect.setRect(0, 0, 100000, 100000); textRect.x = (textRect.y = (textRect.width = (textRect.height = 0))); iconRect.x = (iconRect.y = (iconRect.width = (iconRect.height = 0))); org.aswing.ASWingUtils.layoutCompoundLabel(b.getFont(), text, icon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRect, ((b.getText() == null) ? 0 : (b.getIconTextGap()))); var _local2; if (icon == null) { _local2 = textRect.getSize(); } else if ((b.getText() == null) || (b.getText() == "")) { _local2 = iconRect.getSize(); } else { var _local3 = iconRect.union(textRect); _local2 = _local3.getSize(); } _local2 = b.getInsets().getOutsideSize(_local2); if (b.getMargin() != null) { _local2 = b.getMargin().getOutsideSize(_local2); } return(_local2); } function getButtonMinimumSize(b, icon, text) { var _local1 = b.getInsets().getOutsideSize(); if (b.getMargin() != null) { _local1 = b.getMargin().getOutsideSize(_local1); } return(_local1); } function getPreferredSize(c) { var _local2 = org.aswing.AbstractButton(c); var _local4 = _local2.getIcon(); var _local3 = _local2.getText(); return(getButtonPreferredSize(_local2, _local4, _local3)); } function getMinimumSize(c) { var _local2 = org.aswing.AbstractButton(c); var _local4 = _local2.getIcon(); var _local3 = _local2.getText(); return(getButtonMinimumSize(_local2, _local4, _local3)); } function getMaximumSize(c) { return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } static var propertyPrefix = "Button."; }
Symbol 362 MovieClip [__Packages.org.aswing.FocusManager] Frame 0
class org.aswing.FocusManager { static var keyListener, mouseListener, lastFocusRecivedComponentObject, instance, focusOwner, oldFocusOwner, activeWindow, currentFocusCycleRoot; var traversing, defaultPolicy, defaultFocusTraversalKeys, focusFrontHolderMC, focusBackHolderMC; function FocusManager () { traversing = false; defaultPolicy = new org.aswing.DefaultFocusTraversalPolicy(); defaultFocusTraversalKeys = [[9], [16, 9], [], []]; if (keyListener == undefined) { keyListener = {onKeyDown:org.aswing.util.Delegate.create(org.aswing.FocusManager, __onKeyDown)}; if (traversalEnabled) { Key.addListener(keyListener); } } if (mouseListener == undefined) { mouseListener = {onMouseDown:org.aswing.util.Delegate.create(org.aswing.FocusManager, __onMouseDown)}; Mouse.addListener(mouseListener); } Key.removeListener(keyListener); Mouse.removeListener(mouseListener); focusFrontHolderMC = _root.createEmptyMovieClip("aswing_focusFrontHolderMC", org.aswing.util.DepthManager.getNextAvailableDepth(_root)); focusFrontHolderMC.onPress = function () { }; focusFrontHolderMC.tabEnabled = true; focusBackHolderMC = _root.createEmptyMovieClip("aswing_focusBackHolderMC", org.aswing.util.DepthManager.getNextAvailableDepth(_root)); focusBackHolderMC.onPress = function () { }; focusBackHolderMC.tabEnabled = true; } function receiveFocus(obj) { lastFocusRecivedComponentObject.tabEnabled = false; obj.tabEnabled = true; if (justSystemTabDirection == 0) { if (eval (Selection.getFocus()) != obj) { } } else if (justSystemTabDirection < 0) { } lastFocusRecivedComponentObject = obj; var dir = justSystemTabDirection; justSystemTabDirection = 0; return(dir); } static function __onMouseDown() { instance.__noticeWhenMouseDown(); } static function __onKeyDown() { if (Key.isDown(9)) { if (Key.isDown(16)) { justSystemTabDirection = -1; } else { justSystemTabDirection = 1; } } else { justSystemTabDirection = 0; } var _local1 = instance.getFocusOwner(); var _local3 = _local1.getFocusTraversalKeys(FORWARD_TRAVERSAL_KEYS); var _local4 = _local1.getFocusTraversalKeys(BACKWARD_TRAVERSAL_KEYS); var _local5 = _local1.getFocusTraversalKeys(UP_CYCLE_TRAVERSAL_KEYS); var _local2 = _local1.getFocusTraversalKeys(DOWN_CYCLE_TRAVERSAL_KEYS); if (isDownAll(_local5)) { instance.setTraversing(true); instance.upFocusCycle(); } else if (isDownAll(_local2)) { instance.setTraversing(true); instance.downFocusCycle(); } else if (isDownAll(_local4)) { instance.setTraversing(true); instance.focusPrevious(); } else if (isDownAll(_local3)) { instance.setTraversing(true); instance.focusNext(); } } static function isDownAll(keys) { if ((keys.length <= 0) || (keys == null)) { return(false); } var _local1 = 0; while (_local1 < keys.length) { if (!Key.isDown(keys[_local1])) { return(false); } _local1++; } return(true); } function __noticeWhenMouseDown() { traversing = false; getFocusOwner().clearFocusGraphicsByUI(); } function isTraversing() { return(traversing); } function setTraversing(b) { traversing = b; } static function disableTraversal() { Key.removeListener(keyListener); traversalEnabled = false; } static function enableTraversal() { Key.removeListener(keyListener); Key.addListener(keyListener); traversalEnabled = true; } static function isTraversalEnabled() { return(traversalEnabled); } static function getCurrentManager() { if (instance == null) { instance = new org.aswing.FocusManager(); } return(instance); } static function setCurrentManager(newManager) { if (newManager == null) { newManager = new org.aswing.FocusManager(); } instance = newManager; } static function getFocusedComponent() { return(focusOwner); } static function getPreviousFocusedComponent() { return(oldFocusOwner); } function getFocusOwner() { return(focusOwner); } function setFocusOwner(newFocusOwner) { var _local4 = false; if ((newFocusOwner == null) || (newFocusOwner.isFocusable())) { oldFocusOwner = getFocusOwner(); focusOwner = newFocusOwner; if ((newFocusOwner != null) && ((getCurrentFocusCycleRoot() == null) || (!newFocusOwner.isFocusCycleRootOfContainer(getCurrentFocusCycleRoot())))) { var _local3 = newFocusOwner.getFocusCycleRootAncestor(); if ((_local3 == null) && (newFocusOwner instanceof org.aswing.JWindow)) { _local3 = org.aswing.Container(newFocusOwner); } if (_local3 != null) { setCurrentFocusCycleRoot(_local3); } } } } function getActiveWindow() { return(activeWindow); } function setActiveWindow(newActiveWindow) { activeWindow = newActiveWindow; } function getCurrentFocusCycleRoot() { return(currentFocusCycleRoot); } function setCurrentFocusCycleRoot(root) { currentFocusCycleRoot = root; } function focusNextOfComponent(aComponent) { if (aComponent != null) { aComponent.transferFocus(); } } function focusPreviousOfComponent(aComponent) { if (aComponent != null) { aComponent.transferFocusBackward(); } } function upFocusCycleOfComponent(aComponent) { if (aComponent != null) { aComponent.transferFocusUpCycle(); } } function downFocusCycleOfContainer(aContainer) { if ((aContainer != null) && (aContainer.isFocusCycleRoot())) { aContainer.transferFocusDownCycle(); } } function focusNext() { focusNextOfComponent(getFocusOwner()); } function focusPrevious() { focusPreviousOfComponent(getFocusOwner()); } function upFocusCycle() { upFocusCycleOfComponent(getFocusOwner()); } function downFocusCycle() { var _local2 = getFocusOwner(); if (_local2 instanceof org.aswing.Container) { downFocusCycleOfContainer(org.aswing.Container(_local2)); } } function getDefaultFocusTraversalPolicy() { return(defaultPolicy); } function setDefaultFocusTraversalPolicy(newDefaultPolicy) { if (newDefaultPolicy != null) { defaultPolicy = newDefaultPolicy; } } function getDefaultFocusTraversalKeys(id) { return(defaultFocusTraversalKeys[id].concat()); } function setDefaultFocusTraversalKeys(id, keys) { if ((id >= 0) && (id < TRAVERSAL_KEY_LENGTH)) { defaultFocusTraversalKeys[id] = keys.concat(); } } static var FORWARD_TRAVERSAL_KEYS = 0; static var BACKWARD_TRAVERSAL_KEYS = 1; static var UP_CYCLE_TRAVERSAL_KEYS = 2; static var DOWN_CYCLE_TRAVERSAL_KEYS = 3; static var TRAVERSAL_KEY_LENGTH = DOWN_CYCLE_TRAVERSAL_KEYS + 1; static var ASWING_TAB_INDEX_START = 10000; static var ASWING_TAB_INDEX_END = 20000; static var traversalEnabled = false; static var justSystemTabDirection = 0; }
Symbol 363 MovieClip [__Packages.org.aswing.Container] Frame 0
class org.aswing.Container extends org.aswing.Component { var setName, children, layout, focusCycleRoot, focusTraversalPolicyProvider, revalidate, valid, displayable, isVisible, target_mc, dispatchEvent, createEventObj, focusTraversalPolicy, getFocusCycleRootAncestor, ui, parent; function Container () { super(); setName("Container"); children = new Array(); layout = new org.aswing.EmptyLayout(); focusCycleRoot = false; focusTraversalPolicyProvider = false; } function setLayout(layout) { this.layout = layout; revalidate(); } function getLayout() { return(layout); } function invalidate() { layout.invalidateLayout(this); super.invalidate(); } function validate() { if (!valid) { doLayout(); var _local2 = 0; while (_local2 < children.length) { children[_local2].validate(); _local2++; } valid = true; } } function doLayout() { super.doLayout(); if (displayable && (isVisible())) { layout.layoutContainer(this); } } function addTo(parent) { super.addTo(parent); if (displayable) { var _local3 = 0; while (_local3 < children.length) { children[_local3].addTo(this); _local3++; } } } function destroy() { var _local3 = 0; while (_local3 < children.length) { children[_local3].destroy(); _local3++; } super.destroy(); } function createChildMC(nameStart) { return(org.aswing.Component.__get__creater().createMC(target_mc, nameStart)); } function append(com, constraints) { insert(-1, com, constraints); } function insert(i, com, constraints) { if (i > getComponentCount()) { trace("illegal component position when insert comp to container"); throw new Error("illegal component position when insert comp to container"); } if (com instanceof org.aswing.Container) { var _local2 = this; while (_local2 != null) { if (_local2 == com) { trace("adding container's parent to itself"); throw new Error("adding container's parent to itself"); } _local2 = _local2.getParent(); } } if (com.getParent() != null) { com.removeFromContainer(); } com.addTo(this); if (i < 0) { children.push(com); } else { children.splice(i, 0, com); } layout.addLayoutComponent(com, ((constraints == undefined) ? (com.getConstraints()) : (constraints))); dispatchEvent(createEventObj(ON_COM_ADDED, com)); if (valid) { invalidate(); } } function remove(com) { var _local2 = getIndex(com); if (_local2 >= 0) { return(removeAt(_local2)); } return(null); } function removeAt(i) { if (i < 0) { return(null); } var _local2 = children[i]; if (_local2 != null) { layout.removeLayoutComponent(_local2); children.splice(i, 1); dispatchEvent(createEventObj(ON_COM_REMOVED, _local2)); _local2.destroy(); _local2.parent = null; if (valid) { invalidate(); } } return(_local2); } function removeAll() { while (children.length > 0) { removeAt(children.length - 1); } } function contains(com) { return(getIndex(com) >= 0); } function getComponent(index) { return(children[index]); } function getIndex(com) { var _local2 = 0; while (_local2 < children.length) { if (com == children[_local2]) { return(_local2); } _local2++; } return(-1); } function getComponentCount() { return(children.length); } function isAncestorOf(c) { var _local2 = c.getParent(); if ((c == null) || (_local2 == null)) { return(false); } while (_local2 != null) { if (_local2 == this) { return(true); } _local2 = _local2.getParent(); } return(false); } function setFocusCycleRoot(focusCycleRoot) { this.focusCycleRoot = focusCycleRoot; } function isFocusCycleRoot() { return(focusCycleRoot); } function isFocusCycleRootOfContainer(container) { if (isFocusCycleRoot() && (container == this)) { return(true); } return(super.isFocusCycleRootOfContainer(container)); } function setFocusTraversalPolicy(policy) { focusTraversalPolicy = policy; } function getFocusTraversalPolicy() { if ((!isFocusTraversalPolicyProvider()) && (!isFocusCycleRoot())) { return(null); } var _local2 = focusTraversalPolicy; if (_local2 != null) { return(_local2); } var _local3 = getFocusCycleRootAncestor(); if (_local3 != null) { return(_local3.getFocusTraversalPolicy()); } return(org.aswing.FocusManager.getCurrentManager().getDefaultFocusTraversalPolicy()); } function isFocusTraversalPolicySet() { return(focusTraversalPolicy != null); } function setFocusTraversalPolicyProvider(provider) { focusTraversalPolicyProvider = provider; } function isFocusTraversalPolicyProvider() { return(focusTraversalPolicyProvider); } function transferFocusDownCycle() { if (isFocusCycleRoot()) { org.aswing.FocusManager.getCurrentManager().setCurrentFocusCycleRoot(this); var _local2 = getFocusTraversalPolicy().getDefaultComponent(this); if (_local2 != null) { _local2.requestFocus(); } } } function findTraversalRoot() { var _local3 = org.aswing.FocusManager.getCurrentManager().getCurrentFocusCycleRoot(); var _local2; if (_local3 == this) { _local2 = this; } else { _local2 = getFocusCycleRootAncestor(); if (_local2 == null) { _local2 = this; } } if (_local2 != _local3) { org.aswing.FocusManager.getCurrentManager().setCurrentFocusCycleRoot(_local2); } return(_local2); } function transferFocus() { if (isFocusCycleRoot()) { var _local3 = findTraversalRoot(); var _local5 = this; var _local4; while (((_local3 != null) && ((_local4 = _local3.getFocusCycleRootAncestor()) != null)) && (!((_local3.isShowing() && (_local3.isFocusable())) && (_local3.isEnabled())))) { _local5 = _local3; _local3 = _local4; } if (_local3 != null) { var _local7 = _local3.getFocusTraversalPolicy(); var _local6; _local6 = _local7.getComponentAfter(_local3, _local5); if (_local6 == null) { _local6 = _local7.getDefaultComponent(_local3); } if (_local6 != null) { return(_local6.requestFocus()); } } return(false); } return(super.transferFocus()); } function transferFocusBackward() { if (isFocusCycleRoot()) { var _local3 = findTraversalRoot(); var _local4 = this; while ((_local3 != null) && (!((_local3.isShowing() && (_local3.isFocusable())) && (_local3.isEnabled())))) { _local4 = _local3; _local3 = _local4.getFocusCycleRootAncestor(); } if (_local3 != null) { var _local6 = _local3.getFocusTraversalPolicy(); var _local5; _local5 = _local6.getComponentBefore(_local3, _local4); if (_local5 == null) { _local5 = _local6.getDefaultComponent(_local3); } if (_local5 != null) { return(_local5.requestFocus()); } } return(false); } return(super.transferFocusBackward()); } function countMinimumSize() { var _local3 = null; if (ui != null) { _local3 = ui.getMinimumSize(this); } if (_local3 == null) { _local3 = layout.minimumLayoutSize(this); } if (_local3 == null) { _local3 = super.countMinimumSize(); } return(_local3); } function countMaximumSize() { var _local3 = null; if (ui != null) { _local3 = ui.getMaximumSize(this); } if (_local3 == null) { _local3 = layout.maximumLayoutSize(this); } if (_local3 == null) { _local3 = super.countMaximumSize(); } return(_local3); } function countPreferredSize() { var _local3 = null; if (ui != null) { _local3 = ui.getPreferredSize(this); } if (_local3 == null) { _local3 = layout.preferredLayoutSize(this); } if (_local3 == null) { _local3 = super.countPreferredSize(); } return(_local3); } function __onChildPressed(child) { parent.__onChildPressed(child); } static var ON_COM_ADDED = "onComponentAdded"; static var ON_COM_REMOVED = "onComponentRemoved"; }
Symbol 364 MovieClip [__Packages.org.aswing.LayoutManager] Frame 0
interface org.aswing.LayoutManager { }
Symbol 365 MovieClip [__Packages.org.aswing.FocusTraversalPolicy] Frame 0
interface org.aswing.FocusTraversalPolicy { }
Symbol 366 MovieClip [__Packages.org.aswing.EmptyLayout] Frame 0
class org.aswing.EmptyLayout implements org.aswing.LayoutManager { function EmptyLayout () { } function addLayoutComponent(comp, constraints) { } function removeLayoutComponent(comp) { } function preferredLayoutSize(target) { return(target.getSize()); } function minimumLayoutSize(target) { return(new org.aswing.geom.Dimension(0, 0)); } function maximumLayoutSize(target) { return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } function layoutContainer(target) { } function getLayoutAlignmentX(target) { return(0); } function getLayoutAlignmentY(target) { return(0); } function invalidateLayout(target) { } }
Symbol 367 MovieClip [__Packages.org.aswing.overflow.JPopup] Frame 0
class org.aswing.overflow.JPopup extends org.aswing.Container { static var popups; var setName, owner, modal, visible, layout, lastLAF, addEventListener, listenerToOwner, stageResizeListener, getParent, isDisplayable, modalMC, root_mc, dispatchEvent, createEventObj, parent, removeFromContainer, ground_mc, setSize, getPreferredSize, displayable, getX, getY, isVisible, mouseMoveListener, bounds, focusCycleRoot, getFocusTraversalPolicy; function JPopup (owner, modal) { super(); setName("JPopup"); this.owner = ((owner == undefined) ? (org.aswing.ASWingUtils.getRootMovieClip()) : (owner)); this.modal = ((modal == undefined) ? false : (modal)); visible = false; layout = new org.aswing.BorderLayout(); lastLAF = org.aswing.UIManager.getLookAndFeel(); addEventListener(org.aswing.Component.ON_MOVED, __resetModalMCOnMouseMoved, this); listenerToOwner = new Object(); stageResizeListener = org.aswing.EventDispatcher.createEventListener("onResize", onStageResized, this); } function isValidateRoot() { return(getParent() != null); } function getOwner() { return(owner); } function getPopupOwner() { return(org.aswing.overflow.JPopup(owner)); } function changeOwner(owner) { if (this.owner != owner) { if (isDisplayable()) { return(false); } this.owner = owner; } return(true); } function setModal(m) { if (modal != m) { modal = m; modalMC._visible = modal; } } function isModal() { return(modal); } function show() { setVisible(true); } function setVisible(v) { if ((v != visible) || (v && (!org.aswing.util.MCUtils.isMovieClipExist(root_mc)))) { super.setVisible(v); if (v) { if (!isDisplayable()) { createPopupContents(); } resetModalMC(); Stage.addListener(stageResizeListener); dispatchEvent(createEventObj(ON_WINDOW_OPENED)); } else { Stage.removeListener(stageResizeListener); dispatchEvent(createEventObj(ON_WINDOW_CLOSED)); } } if (v) { toFront(); } } function renderAtBackground() { setVisible(true); root_mc._visible = false; } function hide() { setVisible(false); } function dispose() { if (isDisplayable()) { visible = false; getPopupsVector().remove(this); getPopupOwner().removeEventListener(listenerToOwner); var _local4 = getOwnedPopups(); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = org.aswing.overflow.JPopup(_local4[_local2]); _local3.dispose(); _local2++; } disposeProcess(); var _local5 = parent; removeFromContainer(); _local5.destroy(); ground_mc.unloadMovie(); ground_mc.removeMovieClip(); ground_mc = null; Stage.removeListener(stageResizeListener); dispatchEvent(createEventObj(ON_WINDOW_CLOSED)); } } function disposeProcess() { } function pack() { setSize(getPreferredSize()); } function toBack() { if (displayable && (visible)) { if (!org.aswing.util.DepthManager.isBottom(ground_mc, getOwnerRootMC())) { org.aswing.util.DepthManager.bringToBottom(ground_mc, getOwnerRootMC()); } } } function toFront() { if (displayable && (visible)) { if (!org.aswing.util.DepthManager.isTop(ground_mc)) { org.aswing.util.DepthManager.bringToTop(ground_mc); } } } function getOwnedPopups() { return(getOwnedPopupsWithOwner(this)); } static function getPopupsVector() { if (popups == undefined) { popups = new org.aswing.util.Vector(); } return(popups); } static function getPopups() { return(getPopupsVector().toArray()); } static function getOwnedPopupsWithOwner(owner) { var _local3 = new Array(); var _local1 = 0; while (_local1 < getPopupsVector().size()) { var _local2 = org.aswing.overflow.JPopup(getPopupsVector().get(_local1)); if (_local2.getOwner() === owner) { _local3.push(_local2); } _local1++; } return(_local3); } function getPopupAncestorMC() { var _local2 = this; while (_local2.getPopupOwner() != null) { _local2 = _local2.getPopupOwner(); } return(MovieClip(_local2.getOwner())); } function getModalMC() { return(modalMC); } function resetModalMC() { if (!isModal()) { modalMC._y = Number.MAX_VALUE; modalMC._visible = false; return(undefined); } modalMC._visible = true; var _local2 = org.aswing.ASWingUtils.getVisibleMaximizedBounds(ground_mc); modalMC._width = Stage.width + 200; modalMC._height = Stage.height + 200; modalMC._x = (_local2.x - getX()) - 100; modalMC._y = (_local2.y - getY()) - 100; } function __resetModalMCOnMouseMoved() { resetModalMC(); } function initialize() { super.initialize(); ground_mc._visible = isVisible(); } function doLayout() { super.doLayout(); ground_mc._visible = isVisible(); } function getDepth() { return(ground_mc.getDepth()); } function swapDepths(target) { ground_mc.swapDepths(target); } function startDrag() { if (mouseMoveListener == null) { mouseMoveListener = new Object(); mouseMoveListener.onMouseMove = org.aswing.util.Delegate.create(this, __onDrag); } root_mc.startDrag(false); Mouse.removeListener(mouseMoveListener); Mouse.addListener(mouseMoveListener); } function __onDrag() { var _local3 = new org.aswing.geom.Point(bounds.x, bounds.y); bounds.x = root_mc._x; bounds.y = root_mc._y; var _local2 = bounds.getLocation(); if (!_local2.equals(_local3)) { dispatchEvent(createEventObj(org.aswing.Component.ON_MOVED, _local3, _local2)); updateAfterEvent(); } } function stopDrag() { root_mc.stopDrag(); Mouse.removeListener(mouseMoveListener); __onDrag(); } function setFocusCycleRoot(focusCycleRoot) { this.focusCycleRoot = true; } function isFocusCycleRoot() { return(true); } function getFocusCycleRootAncestor() { return(null); } function focusAtThisPopup() { var _local4 = org.aswing.FocusManager.getCurrentManager().getFocusOwner(); var _local3 = org.aswing.ASWingUtils.getPopupAncestor(_local4); if (_local3 != this) { var _local2 = getFocusTraversalPolicy().getDefaultComponent(this); if (_local2 != null) { _local2.requestFocus(); } } } function createMCForOwnedPopup() { return(org.aswing.Component.__get__creater().createMC(ground_mc, "ground_mc")); } function getOwnerRootMC() { return(getPopupOwner().root_mc); } function createPopupContents() { if (org.aswing.util.ObjectUtils.isMovieClip(owner)) { var _local4 = MovieClip(owner); ground_mc = org.aswing.Component.__get__creater().createMC(_local4, "ground_mc"); } else if (owner instanceof org.aswing.overflow.JPopup) { var _local2 = org.aswing.overflow.JPopup(owner); _local2.show(); ground_mc = _local2.createMCForOwnedPopup(); _local2.addEventListener(listenerToOwner); } else { trace((this + " JPopup's owner is not a mc or JPopup, owner is : ") + owner); throw new Error((this + " JPopup's owner is not a mc or JPopup, owner is : ") + owner); } if (lastLAF != org.aswing.UIManager.getLookAndFeel()) { org.aswing.ASWingUtils.updateComponentTreeUI(this); lastLAF = org.aswing.UIManager.getLookAndFeel(); } var _local3 = new org.aswing.MCPanel(ground_mc, 10000, 10000); _local3.append(this); } function create() { if (getPopupsVector().contains(this)) { getPopupsVector().remove(this); } getPopupsVector().append(this); createModalMC(); super.create(); } function createModalMC() { modalMC = org.aswing.Component.__get__creater().createMC(root_mc, "modal_mc"); modalMC.tabEnabled = false; modalMC.onPress = null; modalMC.onRelease = null; modalMC._visible = modal; modalMC.clear(); var _local2 = new org.aswing.ASColor(0, 0); var _local3 = new org.aswing.graphics.Graphics(modalMC); _local3.fillRectangle(new org.aswing.graphics.SolidBrush(_local2), 0, 0, 1, 1); } function onStageResized() { resetModalMC(); } static var ON_WINDOW_OPENED = "onWindowOpened"; static var ON_WINDOW_CLOSED = "onWindowClosed"; static var ON_WINDOW_CLOSING = "onWindowClosing"; }
Symbol 368 MovieClip [__Packages.org.aswing.util.List] Frame 0
interface org.aswing.util.List { }
Symbol 369 MovieClip [__Packages.org.aswing.util.Vector] Frame 0
class org.aswing.util.Vector implements org.aswing.util.List { var _elements; function Vector (arr) { _elements = ((arr != undefined) ? (arr) : (new Array())); } function each(operation) { var _local2 = 0; while (_local2 < _elements.length) { operation(_elements[_local2]); _local2++; } } function eachWithout(obj, operation) { var _local2 = 0; while (_local2 < _elements.length) { if (_elements[_local2] != obj) { operation(_elements[_local2]); } _local2++; } } function get(i) { return(_elements[i]); } function elementAt(i) { return(eval (i)); } function append(obj, index) { if (index == undefined) { _elements.push(obj); } else { _elements.splice(index, 0, obj); } } function appendAll(arr, index) { if ((arr == null) || (arr.length <= 0)) { return(undefined); } if ((index == undefined) || (index == _elements.length)) { _elements = _elements.concat(arr); } else if (index == 0) { _elements = arr.concat(_elements); } else { var _local4 = _elements.splice(index); _elements = _elements.concat(arr); _elements = _elements.concat(_local4); } } function replaceAt(index, obj) { if ((index < 0) || (index >= size())) { return(undefined); } var _local3 = _elements[index]; _elements[index] = obj; return(_local3); } function removeAt(index) { if ((index < 0) || (index >= size())) { return(undefined); } var _local3 = _elements[index]; _elements.splice(index, 1); return(_local3); } function remove(obj) { var _local2 = indexOf(obj); if (_local2 >= 0) { return(removeAt(_local2)); } return(undefined); } function removeRange(fromIndex, toIndex) { fromIndex = Math.max(0, fromIndex); toIndex = Math.min(toIndex, _elements.length - 1); if (fromIndex > toIndex) { return([]); } return(_elements.splice(fromIndex, (toIndex - fromIndex) + 1)); } function indexOf(obj) { var _local2 = 0; while (_local2 < _elements.length) { if (_elements[_local2] == obj) { return(_local2); } _local2++; } return(-1); } function appendList(list, index) { appendAll(list.toArray(), index); } function pop() { if (size() > 0) { return(_elements.pop()); } return(undefined); } function shift() { if (size() > 0) { return(_elements.shift()); } return(undefined); } function lastIndexOf(obj) { var _local2 = _elements.length - 1; while (_local2 >= 0) { if (_elements[_local2] == obj) { return(_local2); } _local2--; } return(-1); } function contains(obj) { return(indexOf(obj) >= 0); } function first() { return(_elements[0]); } function last() { return(_elements[_elements.length - 1]); } function size() { return(_elements.length); } function setElementAt(index, element) { replaceAt(index, element); } function getSize() { return(size()); } function clear() { if (!isEmpty()) { _elements.splice(0); _elements = new Array(); } } function clone(Void) { var _local3 = new org.aswing.util.Vector(); var _local2 = 0; while (_local2 < _elements.length) { _local3.append(_elements[_local2]); _local2++; } return(_local3); } function isEmpty() { if (_elements.length > 0) { return(false); } return(true); } function toArray() { return(_elements.concat()); } function subArray(startIndex, length) { return(_elements.slice(startIndex, Math.min(startIndex + length, size()))); } function sort(compare, options) { return(_elements.sort(compare, options)); } function sortOn(key, options) { return(_elements.sortOn(key, options)); } function toString(Void) { return("Vector : " + _elements.toString()); } static var CASEINSENSITIVE = 1; static var DESCENDING = 2; static var UNIQUESORT = 4; static var RETURNINDEXEDARRAY = 8; static var NUMERIC = 16; }
Symbol 370 MovieClip [__Packages.org.aswing.ASWingUtils] Frame 0
class org.aswing.ASWingUtils { static var displayableComponents, ROOT; function ASWingUtils () { } static function getScreenCenterPosition() { var _local1 = getVisibleMaximizedBounds(); return(new org.aswing.geom.Point(_local1.x + (_local1.width / 2), _local1.y + (_local1.height / 2))); } static function getVisibleMaximizedBounds(mc) { var _local4 = Stage.width; var _local5 = Stage.height; var _local6 = Stage.align; var _local3 = _local4 - initialStageWidth; var _local2 = _local5 - initialStageHeight; var _local1 = new org.aswing.geom.Rectangle(0, 0, _local4, _local5); if (mc != undefined) { mc.globalToLocal(_local1); } switch (_local6) { case "T" : _local1.x = _local1.x - (_local3 / 2); break; case "B" : _local1.x = _local1.x - (_local3 / 2); _local1.y = _local1.y - _local2; break; case "L" : _local1.y = _local1.y - (_local2 / 2); break; case "R" : _local1.x = _local1.x - _local3; _local1.y = _local1.y - (_local2 / 2); break; case "LT" : case "TL" : break; case "RT" : case "TR" : _local1.x = _local1.x - _local3; break; case "LB" : case "BL" : _local1.y = _local1.y - _local2; break; case "RB" : case "BR" : _local1.x = _local1.x - _local3; _local1.y = _local1.y - _local2; break; default : _local1.x = _local1.x - (_local3 / 2); _local1.y = _local1.y - (_local2 / 2); } _local1.x = Math.ceil(_local1.x); _local1.y = Math.ceil(_local1.y); _local1.width = Math.floor(_local1.width); _local1.height = Math.floor(_local1.height); return(_local1); } static function addDisplayableComponent(com) { if (displayableComponents == undefined) { displayableComponents = new org.aswing.util.HashMap(); } displayableComponents.put(com.getID(), com); } static function removeDisplayableComponent(com) { displayableComponents.remove(com.getID(), com); } static function getDisplayableComponent(id) { return(displayableComponents.get(id)); } static function setRootMovieClip(root) { ROOT = root; } static function getRootMovieClip() { if (ROOT == undefined) { return(_root); } return(ROOT); } static function createPaneToHold(com, layout, constraints) { var _local1 = new org.aswing.JPanel(layout); _local1.setOpaque(false); _local1.append(com, constraints); return(_local1); } static function getWindowAncestor(c) { while (c != null) { if (c instanceof org.aswing.JWindow) { return(org.aswing.JWindow(c)); } c = c.getParent(); } return(null); } static function getPopupAncestor(c) { while (c != null) { if (c instanceof org.aswing.overflow.JPopup) { return(org.aswing.overflow.JPopup(c)); } c = c.getParent(); } return(null); } static function getOwnerAncestor(c) { var _local1 = getPopupAncestor(c); if (_local1 == null) { return(c.getComponentRootAncestorMovieClip()); } return(_local1); } static function getAncestorComponent(c) { while (c != null) { if (c instanceof org.aswing.MCPanel) { return(org.aswing.Container(c)); } c = c.getParent(); } return(null); } static function updateAllComponentUI() { var _local2 = org.aswing.MCPanel.getMCPanels(); var _local3 = _local2.length; var _local1 = 0; while (_local1 < _local3) { updateComponentTreeUI(org.aswing.MCPanel(_local2[_local1])); _local1++; } } static function updateComponentTreeUI(com) { var _local1 = getRoot(com); updateChildrenUI(_local1); } static function updateChildrenUI(c) { c.updateUI(); if (c instanceof org.aswing.Container) { var _local2 = org.aswing.Container(c); var _local1 = _local2.getComponentCount() - 1; while (_local1 >= 0) { updateChildrenUI(_local2.getComponent(_local1)); _local1--; } } } static function getRoot(c) { var _local2 = 10000; while ((c.getParent() != null) && (_local2 > 0)) { c = c.getParent(); _local2--; } return(c); } static function boundsTextField(tf, r) { tf._x = r.x; tf._y = r.y; tf._width = r.width; tf._height = r.height; } static function applyTextFontAndColor(text, font, color) { var _local1 = font.getASTextFormat(); applyTextFormatAndColor(text, _local1, color); } static function applyTextFont(text, font) { font.getASTextFormat().applyToTextCurrentAndNew(text); } static function applyTextFormat(text, textFormat) { textFormat.applyToTextCurrentAndNew(text); } static function applyTextColor(text, color) { if (text.textColor != color.getRGB()) { text.textColor = color.getRGB(); } if (text._alpha != color.getAlpha()) { text._alpha = color.getAlpha(); } } static function applyTextFormatAndColor(text, textFormat, color) { applyTextFormat(text, textFormat); applyTextColor(text, color); } static function layoutCompoundLabel(f, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap) { if (icon != null) { iconR.width = icon.getIconWidth(); iconR.height = icon.getIconHeight(); } else { iconR.width = (iconR.height = 0); } var _local14 = f.getASTextFormat(); var _local10 = (text == null) || (text == ""); if (_local10) { textR.width = (textR.height = 0); } else { var _local15 = _local14.getTextExtent(text); textR.width = Math.ceil(_local15.getTextFieldWidth()); textR.height = Math.ceil(_local15.getTextFieldHeight()); } var _local6 = ((_local10 || (icon == null)) ? 0 : (textIconGap)); if (!_local10) { var _local11; if (horizontalTextPosition == CENTER) { _local11 = viewR.width; } else { _local11 = viewR.width - (iconR.width + _local6); } if (textR.width > _local11) { text = layoutTextWidth(text, textR, _local11, _local14); } } if (verticalTextPosition == TOP) { if (horizontalTextPosition != CENTER) { textR.y = 0; } else { textR.y = -(textR.height + _local6); } } else if (verticalTextPosition == CENTER) { textR.y = (iconR.height / 2) - (textR.height / 2); } else if (horizontalTextPosition != CENTER) { textR.y = iconR.height - textR.height; } else { textR.y = iconR.height + _local6; } if (horizontalTextPosition == LEFT) { textR.x = -(textR.width + _local6); } else if (horizontalTextPosition == CENTER) { textR.x = (iconR.width / 2) - (textR.width / 2); } else { textR.x = iconR.width + _local6; } var _local9 = Math.min(iconR.x, textR.x); var _local16 = Math.max(iconR.x + iconR.width, textR.x + textR.width) - _local9; var _local8 = Math.min(iconR.y, textR.y); var _local13 = Math.max(iconR.y + iconR.height, textR.y + textR.height) - _local8; var _local5 = 0; var _local4 = 0; if (verticalAlignment == TOP) { _local4 = viewR.y - _local8; } else if (verticalAlignment == CENTER) { _local4 = (viewR.y + (viewR.height / 2)) - (_local8 + (_local13 / 2)); } else { _local4 = (viewR.y + viewR.height) - (_local8 + _local13); } if (horizontalAlignment == LEFT) { _local5 = viewR.x - _local9; } else if (horizontalAlignment == RIGHT) { _local5 = (viewR.x + viewR.width) - (_local9 + _local16); } else { _local5 = (viewR.x + (viewR.width / 2)) - (_local9 + (_local16 / 2)); } textR.x = textR.x + _local5; textR.y = textR.y + _local4; iconR.x = iconR.x + _local5; iconR.y = iconR.y + _local4; return(text); } static function charWidth(atf, ch) { return(atf.getTextExtent(ch).getWidth()); } static function computeStringWidth(atf, str) { return(atf.getTextExtent(str).getTextFieldWidth()); } static function computeStringHeight(atf, str) { return(atf.getTextExtent(str).getTextFieldHeight()); } static function layoutTextWidth(text, textR, availTextWidth, tf) { if (textR.width <= availTextWidth) { return(text); } var _local8 = "..."; var _local12 = Math.round(computeStringWidth(tf, _local8)); if (_local12 > availTextWidth) { _local12 = Math.round(computeStringWidth(tf, "..")); if (_local12 > availTextWidth) { text = "."; textR.width = Math.round(computeStringWidth(tf, ".")); if (textR.width > availTextWidth) { textR.width = 0; text = ""; } } else { text = ".."; textR.width = _local12; } return(text); } var _local14; var _local9 = _local12; var _local13 = text.length; var _local2 = 0; var _local10 = _local13; while (_local2 < _local10) { var _local4 = _local2 + Math.floor((_local10 - _local2) / 2); var _local3 = text.substring(0, _local4); var _local1 = Math.ceil(_local9 + computeStringWidth(tf, _local3)); if ((_local2 == (_local4 - 1)) && (_local2 > 0)) { if (_local1 > availTextWidth) { _local3 = text.substring(0, _local2); textR.width = Math.ceil(_local9 + computeStringWidth(tf, text.substring(0, _local2))); } else { textR.width = _local1; } return(_local3 + _local8); } if (_local4 <= 1) { if (_local1 <= availTextWidth) { textR.width = _local1; return(_local3 + _local8); } textR.width = _local9; return(_local8); } if (_local1 < availTextWidth) { _local2 = _local4; } else if (_local1 > availTextWidth) { _local10 = _local4; } else { text = _local3 + _local8; textR.width = _local1; return(text); } } textR.width = _local9; return(""); } static function layoutText(f, text, verticalAlignment, horizontalAlignment, viewR, textR) { var _local4 = f.getASTextFormat(); var _local5 = (text == null) || (text == ""); if (_local5) { textR.width = (textR.height = 0); } else { var _local6 = _local4.getTextExtent(text); textR.width = Math.ceil(_local6.getTextFieldWidth()); textR.height = Math.ceil(_local6.getTextFieldHeight()); } if (!_local5) { var _local7 = viewR.width; if (textR.width > _local7) { text = layoutTextWidth(text, textR, _local7, _local4); } } if (horizontalAlignment == CENTER) { textR.x = viewR.x + ((viewR.width - textR.width) / 2); } else if (horizontalAlignment == RIGHT) { textR.x = viewR.x + (viewR.width - textR.width); } else { textR.x = viewR.x; } if (verticalAlignment == CENTER) { textR.y = viewR.y + ((viewR.height - textR.height) / 2); } else if (verticalAlignment == BOTTOM) { textR.y = viewR.y + (viewR.height - textR.height); } else { textR.y = viewR.y; } return(text); } static function fixContainerInheritance(instance) { var _local1 = instance; while (_local1.__proto__.__proto__ != null) { if (_local1.__proto__ instanceof org.aswing.Container) { return(undefined); } _local1 = _local1.__proto__; } _local1.__proto__ = org.aswing.Container.prototype; } static var CENTER = org.aswing.ASWingConstants.CENTER; static var TOP = org.aswing.ASWingConstants.TOP; static var LEFT = org.aswing.ASWingConstants.LEFT; static var BOTTOM = org.aswing.ASWingConstants.BOTTOM; static var RIGHT = org.aswing.ASWingConstants.RIGHT; static var HORIZONTAL = org.aswing.ASWingConstants.HORIZONTAL; static var VERTICAL = org.aswing.ASWingConstants.VERTICAL; static var initialStageWidth = Stage.width; static var initialStageHeight = Stage.height; }
Symbol 371 MovieClip [__Packages.org.aswing.JPanel] Frame 0
class org.aswing.JPanel extends org.aswing.Container { var setName, layout; function JPanel (layout) { super(); setName("JPanel"); if (layout == undefined) { layout = new org.aswing.FlowLayout(); } this.layout = layout; updateUI(); } function updateUI() { setUI(org.aswing.plaf.PanelUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("PanelUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.asw.ASWingPanelUI); } }
Symbol 372 MovieClip [__Packages.org.aswing.FlowLayout] Frame 0
class org.aswing.FlowLayout extends org.aswing.EmptyLayout { var hgap, vgap, align; function FlowLayout (align, hgap, vgap) { super(); if (align == undefined) { align = LEFT; } if (hgap == undefined) { hgap = 5; } if (vgap == undefined) { vgap = 5; } this.hgap = hgap; this.vgap = vgap; setAlignment(align); } function getAlignment() { return(align); } function setAlignment(align) { this.align = align; } function getHgap() { return(hgap); } function setHgap(hgap) { this.hgap = hgap; } function getVgap() { return(vgap); } function setVgap(vgap) { this.vgap = vgap; } function preferredLayoutSize(target) { var _local3 = new org.aswing.geom.Dimension(0, 0); var _local8 = target.getComponentCount(); var _local6 = 0; var _local2 = 0; while (_local2 < _local8) { var _local5 = target.getComponent(_local2); if (_local5.isVisible()) { var _local4 = _local5.getPreferredSize(); _local3.height = Math.max(_local3.height, _local4.height); if (_local6 > 0) { _local3.width = _local3.width + hgap; } _local3.width = _local3.width + _local4.width; _local6++; } _local2++; } var _local9 = target.getInsets(); _local3.width = _local3.width + ((_local9.left + _local9.right) + (hgap * 2)); _local3.height = _local3.height + ((_local9.top + _local9.bottom) + (vgap * 2)); return(_local3); } function minimumLayoutSize(target) { return(target.getInsets().getOutsideSize()); } function moveComponents(target, x, y, width, height, rowStart, rowEnd, ltr) { switch (align) { case LEFT : x = x + (ltr ? 0 : (width)); break; case CENTER : x = x + (width / 2); break; case RIGHT : x = x + (ltr ? (width) : 0); } var _local4 = rowStart; while (_local4 < rowEnd) { var _local3 = target.getComponent(_local4); var _local2 = _local3.getSize(); var _local6 = target.getSize(); if (_local3.isVisible()) { if (ltr) { _local3.setLocation(x, y + ((height - _local2.height) / 2)); } else { _local3.setLocation((_local6.width - x) - _local2.width, y + ((height - _local2.height) / 2)); } x = x + (_local2.width + hgap); } _local4++; } } function layoutContainer(target) { var _local11 = target.getInsets(); var _local14 = target.getSize(); var _local8 = _local14.width - ((_local11.left + _local11.right) + (hgap * 2)); var _local12 = target.getComponentCount(); var _local3 = 0; var _local9 = _local11.top + vgap; var _local5 = 0; var _local10 = 0; var _local13 = true; var _local4 = 0; while (_local4 < _local12) { var _local6 = target.getComponent(_local4); if (_local6.isVisible()) { var _local2 = _local6.getPreferredSize(); _local6.setSize(_local2.width, _local2.height); if ((_local3 == 0) || ((_local3 + _local2.width) <= _local8)) { if (_local3 > 0) { _local3 = _local3 + hgap; } _local3 = _local3 + _local2.width; _local5 = Math.max(_local5, _local2.height); } else { moveComponents(target, _local11.left + hgap, _local9, _local8 - _local3, _local5, _local10, _local4, _local13); _local3 = _local2.width; _local9 = _local9 + (vgap + _local5); _local5 = _local2.height; _local10 = _local4; } } _local4++; } moveComponents(target, _local11.left + hgap, _local9, _local8 - _local3, _local5, _local10, _local12, _local13); } function toString() { var _local2 = ""; switch (align) { case LEFT : _local2 = ",align=left"; break; case CENTER : _local2 = ",align=center"; break; case RIGHT : _local2 = ",align=right"; } return((((("FlowLayout[hgap=" + hgap) + ",vgap=") + vgap) + _local2) + "]"); } static var LEFT = 0; static var CENTER = 1; static var RIGHT = 2; }
Symbol 373 MovieClip [__Packages.org.aswing.plaf.PanelUI] Frame 0
class org.aswing.plaf.PanelUI extends org.aswing.plaf.ComponentUI { function PanelUI () { super(); } }
Symbol 374 MovieClip [__Packages.org.aswing.plaf.basic.BasicPanelUI] Frame 0
class org.aswing.plaf.basic.BasicPanelUI extends org.aswing.plaf.PanelUI { static var panelUI; function BasicPanelUI () { super(); } static function createInstance(c) { if (panelUI == null) { panelUI = new org.aswing.plaf.basic.BasicPanelUI(); } return(panelUI); } function installUI(c) { var _local2 = org.aswing.JPanel(c); installDefaults(_local2); } function uninstallUI(c) { var _local2 = org.aswing.JPanel(c); uninstallDefaults(_local2); } function installDefaults(p) { var _local1 = "Panel."; org.aswing.LookAndFeel.installColorsAndFont(p, _local1 + "background", _local1 + "foreground", _local1 + "font"); org.aswing.LookAndFeel.installBorder(p, "Panel.border"); org.aswing.LookAndFeel.installBasicProperties(p, _local1); } function uninstallDefaults(p) { org.aswing.LookAndFeel.uninstallBorder(p); } }
Symbol 375 MovieClip [__Packages.org.aswing.plaf.asw.ASWingPanelUI] Frame 0
class org.aswing.plaf.asw.ASWingPanelUI extends org.aswing.plaf.basic.BasicPanelUI { static var asWingPanelUI; function ASWingPanelUI () { super(); } static function createInstance(c) { if (asWingPanelUI == null) { asWingPanelUI = new org.aswing.plaf.asw.ASWingPanelUI(); } return(asWingPanelUI); } }
Symbol 376 MovieClip [__Packages.org.aswing.MCPanel] Frame 0
class org.aswing.MCPanel extends org.aswing.Container { static var mcpanels; var setName, root_mc, bounds, displayable, setLayout, setFocusable, getComponentCount, getX, getY, setLocation, focusCycleRoot; function MCPanel (panelMC, width, height) { super(); setName("MCPanel"); root_mc = panelMC; bounds = new org.aswing.geom.Rectangle(panelMC._x, panelMC._y, ((width == undefined) ? (panelMC._width) : (width)), ((height == undefined) ? (panelMC._height) : (height))); displayable = true; setLayout(new org.aswing.EmptyLayout()); if (mcpanels == undefined) { mcpanels = new Array(); } setFocusable(true); } static function getMCPanels() { if (mcpanels == undefined) { mcpanels = new Array(); } var _local3 = mcpanels.length; var _local1 = 0; while (_local1 < _local3) { var _local2 = org.aswing.MCPanel(mcpanels[_local1]); if (!_local2.isLiving()) { mcpanels.splice(_local1, 1); _local1--; _local3--; } _local1++; } return(org.aswing.util.ArrayUtils.cloneArray(mcpanels)); } function insert(i, com, constraints) { var _local3 = isLiving(); super.insert(i, com, constraints); if (isLiving() && (!_local3)) { mcpanels.push(this); } } function removeAt(i) { var _local3 = super.removeAt(i); if (!isLiving()) { org.aswing.util.ArrayUtils.removeAllFromArray(mcpanels, this); } return(_local3); } function isLiving() { return(org.aswing.util.MCUtils.isMovieClipExist(root_mc) && (getComponentCount() > 0)); } function setBorder(b) { trace("Can not set a Border to MCPanel"); throw new Error("Can not set a Border to MCPanel"); } function getInsets() { return(new org.aswing.Insets()); } function getPanelMC() { return(root_mc); } function isValidateRoot() { return(true); } function addTo(parent) { trace("Cannot add a MCPanel to a Container"); throw new Error("Cannot add a MCPanel to a Container"); } function createChildMC(nameStart) { return(org.aswing.Component.__get__creater().createMC(root_mc, nameStart)); } function destroy() { super.destroy(); org.aswing.util.ArrayUtils.removeFromArray(mcpanels, this); } function removeFromContainer() { super.removeFromContainer(); } function setGlobalLocation() { var _local3 = new org.aswing.geom.Point(); root_mc.localToGlobal(_local3); _local3.move(-getX(), -getY()); var _local4 = new org.aswing.geom.Point(arguments[0], arguments[1]); _local4.move(_local3.x, _local3.y); setLocation(_local4); } function getGlobalLocation(p) { var _local2 = new org.aswing.geom.Point(); root_mc.localToGlobal(_local2); if (p != undefined) { p.setLocation(_local2); return(p); } return(_local2); } function setFocusCycleRoot(focusCycleRoot) { this.focusCycleRoot = true; } function isFocusCycleRoot() { return(true); } function getFocusCycleRootAncestor() { return(null); } function getFocusGraphics() { return(null); } function create() { } function paint(b) { } }
Symbol 377 MovieClip [__Packages.org.aswing.BorderLayout] Frame 0
class org.aswing.BorderLayout extends org.aswing.EmptyLayout { var hgap, vgap, strategy, defaultConstraints, center, north, south, east, west, firstLine, lastLine, firstItem, lastItem; function BorderLayout (hgap, vgap, strategy) { super(); if (hgap == undefined) { hgap = 0; } if (vgap == undefined) { vgap = 0; } if (strategy == undefined) { strategy = STRATEGY_HORIZONTAL; } this.hgap = hgap; this.vgap = vgap; this.strategy = strategy; defaultConstraints = CENTER; } function setDefaultConstraints(constraints) { defaultConstraints = constraints.toString(); } function getHgap() { return(hgap); } function setHgap(hgap) { this.hgap = hgap; } function getVgap() { return(vgap); } function setVgap(vgap) { this.vgap = vgap; } function setStrategy(strategy) { this.strategy = strategy; } function getStrategy() { return(strategy); } function addLayoutComponent(comp, constraints) { addLayoutComponentByAlign(constraints.toString(), comp); } function addLayoutComponentByAlign(name, comp) { if (name == null) { name = defaultConstraints; } if (CENTER == name) { center = comp; } else if (NORTH == name) { north = comp; } else if (SOUTH == name) { south = comp; } else if (EAST == name) { east = comp; } else if (WEST == name) { west = comp; } else if (BEFORE_FIRST_LINE == name) { firstLine = comp; } else if (AFTER_LAST_LINE == name) { lastLine = comp; } else if (BEFORE_LINE_BEGINS == name) { firstItem = comp; } else if (AFTER_LINE_ENDS == name) { lastItem = comp; } else { center = comp; } } function removeLayoutComponent(comp) { if (comp == center) { center = null; } else if (comp == north) { north = null; } else if (comp == south) { south = null; } else if (comp == east) { east = null; } else if (comp == west) { west = null; } if (comp == firstLine) { firstLine = null; } else if (comp == lastLine) { lastLine = null; } else if (comp == firstItem) { firstItem = null; } else if (comp == lastItem) { lastItem = null; } } function minimumLayoutSize(target) { return(target.getInsets().getOutsideSize()); } function preferredLayoutSize(target) { var _local2 = new org.aswing.geom.Dimension(0, 0); var _local5 = true; var _local4 = null; var _local3; if (strategy == STRATEGY_HORIZONTAL) { _local4 = getChild(EAST, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = _local2.width + (_local3.width + hgap); _local2.height = Math.max(_local3.height, _local2.height); } _local4 = getChild(WEST, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = _local2.width + (_local3.width + hgap); _local2.height = Math.max(_local3.height, _local2.height); } _local4 = getChild(CENTER, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = _local2.width + _local3.width; _local2.height = Math.max(_local3.height, _local2.height); } _local4 = getChild(NORTH, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = Math.max(_local3.width, _local2.width); _local2.height = _local2.height + (_local3.height + vgap); } _local4 = getChild(SOUTH, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = Math.max(_local3.width, _local2.width); _local2.height = _local2.height + (_local3.height + vgap); } } else { _local4 = getChild(NORTH, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = _local2.width + (_local3.width + hgap); _local2.height = Math.max(_local3.height, _local2.height); } _local4 = getChild(SOUTH, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = _local2.width + (_local3.width + hgap); _local2.height = Math.max(_local3.height, _local2.height); } _local4 = getChild(CENTER, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = Math.max(_local3.width, _local2.width); _local2.height = _local2.height + _local3.height; } _local4 = getChild(WEST, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = Math.max(_local3.width, _local2.width); _local2.height = _local2.height + (_local3.height + vgap); } _local4 = getChild(WEST, _local5); if (_local4 != null) { _local3 = _local4.getPreferredSize(); _local2.width = Math.max(_local3.width, _local2.width); _local2.height = _local2.height + (_local3.height + vgap); } } var _local6 = target.getInsets(); _local2.width = _local2.width + (_local6.left + _local6.right); _local2.height = _local2.height + (_local6.top + _local6.bottom); return(_local2); } function getLayoutAlignmentX(target) { return(0.5); } function getLayoutAlignmentY(target) { return(0.5); } function layoutContainer(target) { var _local10 = target.getSize(); var _local9 = target.getInsets(); var _local4 = _local9.top; var _local6 = _local10.height - _local9.bottom; var _local5 = _local9.left; var _local7 = _local10.width - _local9.right; var _local8 = true; var _local2 = null; var _local3; if (strategy == STRATEGY_HORIZONTAL) { _local2 = getChild(NORTH, _local8); if (_local2 != null) { _local3 = _local2.getPreferredSize(); _local2.setBounds(_local5, _local4, _local7 - _local5, _local3.height); _local4 = _local4 + (_local3.height + vgap); } _local2 = getChild(SOUTH, _local8); if (_local2 != null) { _local3 = _local2.getPreferredSize(); _local2.setBounds(_local5, _local6 - _local3.height, _local7 - _local5, _local3.height); _local6 = _local6 - (_local3.height + vgap); } _local2 = getChild(EAST, _local8); if (_local2 != null) { _local3 = _local2.getPreferredSize(); _local2.setBounds(_local7 - _local3.width, _local4, _local3.width, _local6 - _local4); _local7 = _local7 - (_local3.width + hgap); } _local2 = getChild(WEST, _local8); if (_local2 != null) { _local3 = _local2.getPreferredSize(); _local2.setBounds(_local5, _local4, _local3.width, _local6 - _local4); _local5 = _local5 + (_local3.width + hgap); } _local2 = getChild(CENTER, _local8); if (_local2 != null) { _local2.setBounds(_local5, _local4, _local7 - _local5, _local6 - _local4); } } else { _local2 = getChild(EAST, _local8); if (_local2 != null) { _local3 = _local2.getPreferredSize(); _local2.setBounds(_local7 - _local3.width, _local4, _local3.width, _local6 - _local4); _local7 = _local7 - (_local3.width + hgap); } _local2 = getChild(WEST, _local8); if (_local2 != null) { _local3 = _local2.getPreferredSize(); _local2.setBounds(_local5, _local4, _local3.width, _local6 - _local4); _local5 = _local5 + (_local3.width + hgap); } _local2 = getChild(NORTH, _local8); if (_local2 != null) { _local3 = _local2.getPreferredSize(); _local2.setBounds(_local5, _local4, _local7 - _local5, _local3.height); _local4 = _local4 + (_local3.height + vgap); } _local2 = getChild(SOUTH, _local8); if (_local2 != null) { _local3 = _local2.getPreferredSize(); _local2.setBounds(_local5, _local6 - _local3.height, _local7 - _local5, _local3.height); _local6 = _local6 - (_local3.height + vgap); } _local2 = getChild(CENTER, _local8); if (_local2 != null) { _local2.setBounds(_local5, _local4, _local7 - _local5, _local6 - _local4); } } } function getChild(key, ltr) { var _local2 = null; if (key == NORTH) { _local2 = ((firstLine != null) ? (firstLine) : (north)); } else if (key == SOUTH) { _local2 = ((lastLine != null) ? (lastLine) : (south)); } else if (key == WEST) { _local2 = (ltr ? (firstItem) : (lastItem)); if (_local2 == null) { _local2 = west; } } else if (key == EAST) { _local2 = (ltr ? (lastItem) : (firstItem)); if (_local2 == null) { _local2 = east; } } else if (key == CENTER) { _local2 = center; } if ((_local2 != null) && (!_local2.isVisible())) { _local2 = null; } return(_local2); } function toString() { return(((("BorderLayout[hgap=" + hgap) + ",vgap=") + vgap) + "]"); } static var STRATEGY_HORIZONTAL = 0; static var STRATEGY_VERTICAL = 1; static var NORTH = "North"; static var SOUTH = "South"; static var EAST = "East"; static var WEST = "West"; static var CENTER = "Center"; static var BEFORE_FIRST_LINE = "First"; static var AFTER_LAST_LINE = "Last"; static var BEFORE_LINE_BEGINS = "Before"; static var AFTER_LINE_ENDS = "After"; static var PAGE_START = BEFORE_FIRST_LINE; static var PAGE_END = AFTER_LAST_LINE; static var LINE_START = BEFORE_LINE_BEGINS; static var LINE_END = AFTER_LINE_ENDS; }
Symbol 378 MovieClip [__Packages.org.aswing.JWindow] Frame 0
class org.aswing.JWindow extends org.aswing.overflow.JPopup { var setName, actived, keymap, layout, listenerToOwner, displayable, isVisible, getMinimumSize, getWidth, getHeight, setSize, revalidate, contentPane, append, owner, getPopupAncestorMC, visibleWhenOwnerIconing, ground_mc, lootActiveFrom, dispatchEvent, createEventObj, getFocusTraversalPolicy, toFront; function JWindow (owner, modal) { super(owner, modal); setName("JWindow"); actived = false; keymap = new org.aswing.KeyMap(); layout = new org.aswing.WindowLayout(); listenerToOwner[ON_WINDOW_ICONIFIED] = org.aswing.util.Delegate.create(this, __ownerIconified); listenerToOwner[ON_WINDOW_RESTORED] = org.aswing.util.Delegate.create(this, __ownerRestored); listenerToOwner[ON_WINDOW_MAXIMIZED] = listenerToOwner[ON_WINDOW_RESTORED]; updateUI(); } function updateUI() { setUI(org.aswing.plaf.WindowUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("WindowUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicWindowUI); } function setLayout(layout) { if (layout instanceof org.aswing.WindowLayout) { var _local3 = org.aswing.WindowLayout(this.layout); super.setLayout(layout); if (_local3 != null) { if (_local3.getTitleBar() != null) { layout.addLayoutComponent(_local3.getTitleBar(), org.aswing.WindowLayout.TITLE); } if (_local3.getContentPane() != null) { layout.addLayoutComponent(_local3.getContentPane(), org.aswing.WindowLayout.CONTENT); } } } else { trace(this + " Can not set a non-WindowLayout Layout to JWindow"); throw new Error(this + " Can not set a non-WindowLayout Layout to JWindow"); } } function paintImmediately() { if (displayable && (isVisible())) { var _local3 = getMinimumSize(); var _local4 = new org.aswing.geom.Dimension(Math.max(getWidth(), _local3.width), Math.max(getHeight(), _local3.height)); setSize(_local4); super.paintImmediately(); revalidate(); } else { super.paintImmediately(); } } function getContentPane() { if (contentPane == null) { var _local2 = new org.aswing.Container(); _local2.setFocusable(false); _local2.setLayout(new org.aswing.BorderLayout()); setContentPaneImp(_local2); } return(contentPane); } function setContentPane(cp) { if (cp != contentPane) { if (cp == null) { trace(this + " Can not set null to be JWindow's contentPane!"); throw new Error(this + " Can not set null to be JWindow's contentPane!"); } else { setContentPaneImp(cp); } } } function setContentPaneImp(cp) { contentPane.removeFromContainer(); contentPane = cp; append(contentPane, org.aswing.WindowLayout.CONTENT); } function getKeyMap() { return(keymap); } function getWindowOwner() { return(org.aswing.JWindow(owner)); } function getOwnedWindows() { return(getOwnedWindowsWithOwner(this)); } function setVisible(v) { super.setVisible(v); if (v) { setActive(true); } else { lostActiveAction(); } } function disposeProcess() { lostActiveAction(); } function isActive() { return(actived); } function setActive(b) { if (actived != b) { if (b) { active(); } else { deactive(); } } } function getWindowAncestorMC() { return(getPopupAncestorMC()); } static function getWindows() { var _local3 = org.aswing.overflow.JPopup.getPopupsVector(); var _local4 = new Array(); var _local1 = 0; while (_local1 < _local3.size()) { var _local2 = _local3.get(_local1); if (_local2 instanceof org.aswing.JWindow) { _local4.push(_local2); } _local1++; } return(_local4); } static function getOwnedWindowsWithOwner(owner) { var _local3 = new Array(); var _local1 = 0; while (_local1 < org.aswing.overflow.JPopup.getPopupsVector().size()) { var _local2 = org.aswing.overflow.JPopup(org.aswing.overflow.JPopup.getPopupsVector().get(_local1)); if ((_local2 instanceof org.aswing.JWindow) && (_local2.getOwner() === owner)) { _local3.push(_local2); } _local1++; } return(_local3); } function __ownerIconified() { visibleWhenOwnerIconing = isVisible(); if (visibleWhenOwnerIconing) { lostActiveAction(); ground_mc._visible = false; } } function __ownerRestored() { if (visibleWhenOwnerIconing) { ground_mc._visible = true; } } function lostActiveAction() { if (isActive()) { deactive(); if ((getLootActiveFrom() != null) && (getLootActiveFrom().isShowing())) { getLootActiveFrom().active(); } } setLootActiveFrom(null); } function getLootActiveFrom() { return(lootActiveFrom); } function setLootActiveFrom(activeOwner) { if (activeOwner.getLootActiveFrom() == this) { activeOwner.lootActiveFrom = lootActiveFrom; } lootActiveFrom = activeOwner; } function active() { actived = true; org.aswing.KeyboardManager.getInstance().registerKeyMap(getKeyMap()); var _local4 = org.aswing.overflow.JPopup.getPopupsVector(); var _local3 = 0; while (_local3 < _local4.size()) { var _local2 = org.aswing.JWindow(_local4.get(_local3)); if ((_local2 != null) && (_local2 != this)) { if (_local2.isActive()) { _local2.deactive(); setLootActiveFrom(_local2); } } _local3++; } org.aswing.FocusManager.getCurrentManager().setActiveWindow(this); focusAtThisWindow(); dispatchEvent(createEventObj(ON_WINDOW_ACTIVATED)); } function deactive() { actived = false; org.aswing.KeyboardManager.getInstance().unregisterKeyMap(getKeyMap()); org.aswing.FocusManager.getCurrentManager().setActiveWindow(null); dispatchEvent(createEventObj(ON_WINDOW_DEACTIVATED)); } function focusAtThisWindow() { var _local3 = org.aswing.FocusManager.getCurrentManager().getFocusOwner(); var _local4 = org.aswing.ASWingUtils.getWindowAncestor(_local3); if (_local4 != this) { var _local2 = getFocusTraversalPolicy().getInitialComponent(this); if (_local2 != null) { _local2.requestFocus(); } } } function __onPress() { super.__onPress(); __activeWhenClicked(); } function __onChildPressed(child) { super.__onChildPressed(child); __activeWhenClicked(); } function __activeWhenClicked() { getWindowOwner().toFront(); if (!isActive()) { toFront(); active(); } } static var ON_WINDOW_ACTIVATED = "onWindowActived"; static var ON_WINDOW_DEACTIVATED = "onWindowDeactived"; static var ON_WINDOW_ICONIFIED = "onWindowIconified"; static var ON_WINDOW_RESTORED = "onWindowRestored"; static var ON_WINDOW_MAXIMIZED = "onWindowMaximized"; }
Symbol 379 MovieClip [__Packages.org.aswing.KeyMap] Frame 0
class org.aswing.KeyMap { var map; function KeyMap () { map = new org.aswing.util.HashMap(); } function registerKeyAction(key, func, contex) { if (contex != undefined) { func = org.aswing.util.Delegate.create(contex, func); } map.put(getCodec(key), {key:key, func:func}); } function unregisterKeyAction(key) { map.remove(getCodec(key)); } function getKeyAction(key) { return(getKeyActionWithCodec(getCodec(key))); } function getKeyActionWithCodec(codec) { return(map.get(codec).func); } function fireKeyAction(keySequence) { var _local2 = getCodecWithKeySequence(keySequence); var _local3 = getKeyActionWithCodec(_local2); _local3(); } function containsKey(key) { return(map.containsKey(getCodec(key))); } static function getCodec(key) { return(getCodecWithKeySequence(key.getCodeSequence())); } static function getCodecWithKeySequence(keySequence) { return(keySequence.join("|")); } }
Symbol 380 MovieClip [__Packages.org.aswing.KeyType] Frame 0
interface org.aswing.KeyType { }
Symbol 381 MovieClip [__Packages.org.aswing.WindowLayout] Frame 0
class org.aswing.WindowLayout extends org.aswing.EmptyLayout { var titleBar, contentPane; function WindowLayout () { super(); } function addLayoutComponent(comp, constraints) { if (constraints == TITLE) { titleBar = comp; } else if (constraints == CONTENT) { contentPane = comp; } else { trace("ERROR When add component to JFrame, constraints must be TITLE or CONTENT : " + constraints); throw new Error("ERROR When add component to JFrame, constraints must be TITLE or CONTENT : " + constraints); } } function getTitleBar() { return(titleBar); } function getContentPane() { return(contentPane); } function removeLayoutComponent(comp) { if (comp == titleBar) { titleBar = null; } else if (comp == contentPane) { contentPane = null; } } function minimumLayoutSize(target) { var _local3 = target.getInsets(); var _local2 = _local3.getOutsideSize(); if (titleBar != null) { _local2.increase(titleBar.getMinimumSize()); } return(_local2); } function preferredLayoutSize(target) { var _local5 = target.getInsets(); var _local4 = _local5.getOutsideSize(); var _local3; var _local2; if (titleBar != null) { _local3 = titleBar.getPreferredSize(); } else { _local3 = new org.aswing.geom.Dimension(0, 0); } if (contentPane != null) { _local2 = contentPane.getPreferredSize(); } else { _local2 = new org.aswing.geom.Dimension(0, 0); } _local4.increase(new org.aswing.geom.Dimension(Math.max(_local3.width, _local2.width), _local3.height + _local2.height)); return(_local4); } function layoutContainer(target) { var _local5 = target.getSize(); var _local4 = target.getInsets(); var _local2 = _local4.getInsideBounds(_local5.getBounds()); var _local3; if (titleBar != null) { _local3 = titleBar.getPreferredSize(); titleBar.setBounds(_local2.x, _local2.y, _local2.width, _local3.height); _local2.y = _local2.y + _local3.height; _local2.height = _local2.height - _local3.height; } if (contentPane != null) { contentPane.setBounds(_local2.x, _local2.y, _local2.width, _local2.height); } } function toString() { return("WindowLayout[]"); } static var TITLE = "Title"; static var CONTENT = "Content"; }
Symbol 382 MovieClip [__Packages.org.aswing.plaf.WindowUI] Frame 0
class org.aswing.plaf.WindowUI extends org.aswing.plaf.ComponentUI { function WindowUI () { super(); } }
Symbol 383 MovieClip [__Packages.org.aswing.plaf.basic.BasicWindowUI] Frame 0
class org.aswing.plaf.basic.BasicWindowUI extends org.aswing.plaf.WindowUI { static var windowUI; var contentPaneBorder; function BasicWindowUI () { super(); contentPaneBorder = org.aswing.UIManager.getBorder("Window.contentPaneBorder"); } static function createInstance(c) { if (windowUI == null) { windowUI = new org.aswing.plaf.basic.BasicWindowUI(); } return(windowUI); } function installUI(c) { var _local2 = org.aswing.JWindow(c); installDefaults(_local2); } function uninstallUI(c) { var _local2 = org.aswing.JWindow(c); uninstallDefaults(_local2); } function installDefaults(p) { var _local2 = "Window."; org.aswing.LookAndFeel.installColorsAndFont(p, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBorder(p, "Window.border"); org.aswing.LookAndFeel.installBasicProperties(p, _local2); var _local4 = p.getContentPane().getBorder(); if ((_local4 === undefined) || (_local4 instanceof org.aswing.plaf.UIResource)) { p.getContentPane().setBorder(contentPaneBorder); } } function create(c) { var _local2 = org.aswing.JWindow(c); var _local1 = org.aswing.UIManager.getColor("Window.modalColor"); var _local3 = _local2.getModalMC(); _local3.clear(); if (_local1 == null) { _local1 = new org.aswing.ASColor(0, 0); } var _local4 = new org.aswing.graphics.Graphics(_local3); _local4.fillRectangle(new org.aswing.graphics.SolidBrush(_local1), 0, 0, 1, 1); _local2.resetModalMC(); } function uninstallDefaults(p) { org.aswing.LookAndFeel.uninstallBorder(p); } }
Symbol 384 MovieClip [__Packages.org.aswing.KeyboardManager] Frame 0
class org.aswing.KeyboardManager { static var instance; var keymaps, keySequence, selfKeyMap, checkMissedUpTimer; function KeyboardManager () { keymaps = new org.aswing.util.Vector(); keySequence = new org.aswing.util.Vector(); selfKeyMap = new org.aswing.KeyMap(); registerKeyMap(selfKeyMap); Key.addListener({onKeyDown:org.aswing.util.Delegate.create(this, ____onKeyDown), onKeyUp:org.aswing.util.Delegate.create(this, ____onKeyUp)}); checkMissedUpTimer = new org.aswing.util.Timer(100, true); checkMissedUpTimer.addActionListener(__checkMissedUp, this); } static function getInstance() { if (instance == null) { instance = new org.aswing.KeyboardManager(); } return(instance); } function registerKeyMap(keyMap) { if (!keymaps.contains(keyMap)) { keymaps.append(keyMap); } } function unregisterKeyMap(keyMap) { keymaps.remove(keyMap); } function registerKeyAction(key, func, contex) { selfKeyMap.registerKeyAction(key, func, contex); } function unregisterKeyAction(key) { selfKeyMap.unregisterKeyAction(key); } function __onKeyDown() { var _local5 = Key.getCode(); if (!keySequence.contains(_local5)) { keySequence.append(_local5); } var _local4 = keymaps.size(); var _local2 = 0; while (_local2 < _local4) { var _local3 = org.aswing.KeyMap(keymaps.get(_local2)); _local3.fireKeyAction(keySequence.toArray()); _local2++; } if (!checkMissedUpTimer.isRunning()) { checkMissedUpTimer.start(); } } function __onKeyUp() { var _local2 = Key.getCode(); keySequence.remove(_local2); if (keySequence.isEmpty()) { checkMissedUpTimer.stop(); } } function __checkMissedUp() { var _local2 = keySequence.size() - 1; while (_local2 >= 0) { if (!Key.isDown(keySequence.get(_local2))) { keySequence.removeAt(_local2); } _local2--; } if (keySequence.isEmpty()) { checkMissedUpTimer.stop(); } } function ____onKeyDown() { __onKeyDown(); } function ____onKeyUp() { __onKeyUp(); } }
Symbol 385 MovieClip [__Packages.org.aswing.util.AbstractImpulser] Frame 0
class org.aswing.util.AbstractImpulser extends org.aswing.EventDispatcher { var delay, initialDelay, repeats, isInitalFire, addEventListener; function AbstractImpulser (delay, repeats) { super(); if ((delay == undefined) || (delay <= 0)) { trace("Delay must > 0! when create a Impulser"); throw new Error("Delay must > 0! when create a Impulser"); } this.delay = delay; initialDelay = undefined; this.repeats = repeats != false; isInitalFire = true; } function addActionListener(func, obj) { return(addEventListener(org.aswing.EventDispatcher.ON_ACT, func, obj)); } function setDelay(delay) { if ((delay == undefined) || (delay <= 0)) { trace("Impulser should be specified delay>0! Error delay = " + delay); throw new Error("Impulser should be specified delay>0! Error delay = " + delay); } this.delay = delay; } function getDelay() { return(delay); } function setInitialDelay(initialDelay) { if ((initialDelay == undefined) || (initialDelay <= 0)) { trace("Impulser should be specified initialDelay>0! Error initialDelay = " + initialDelay); throw new Error("Impulser should be specified initialDelay>0! Error initialDelay = " + initialDelay); } this.initialDelay = initialDelay; } function getInitialDelay() { if (initialDelay == undefined) { return(delay); } return(initialDelay); } function setRepeats(flag) { repeats = flag; } function isRepeats() { return(repeats); } }
Symbol 386 MovieClip [__Packages.org.aswing.util.Impulser] Frame 0
interface org.aswing.util.Impulser { }
Symbol 387 MovieClip [__Packages.org.aswing.util.Timer] Frame 0
class org.aswing.util.Timer extends org.aswing.util.AbstractImpulser implements org.aswing.util.Impulser { var intervalID, isInitalFire, getInitialDelay, repeats, getDelay, fireActionEvent; function Timer (delay, repeats) { super(delay, repeats); intervalID = null; } function start() { isInitalFire = true; clearInterval(intervalID); intervalID = setInterval(this, "fireActionPerformed", getInitialDelay()); } function isRunning() { return(intervalID != null); } function stop() { clearInterval(intervalID); intervalID = null; } function restart() { stop(); start(); } function fireActionPerformed() { if (isInitalFire) { isInitalFire = false; if (repeats) { clearInterval(intervalID); intervalID = setInterval(this, "fireActionPerformed", getDelay()); } else { stop(); } } fireActionEvent(); } }
Symbol 388 MovieClip [__Packages.org.aswing.ContainerOrderFocusTraversalPolicy] Frame 0
class org.aswing.ContainerOrderFocusTraversalPolicy implements org.aswing.FocusTraversalPolicy { static var found; var implicitDownCycleTraversal; function ContainerOrderFocusTraversalPolicy () { if (found == undefined) { found = {value:false}; } implicitDownCycleTraversal = true; } function getComponentAfter(aContainer, aComponent) { checkContainerComponent(aContainer, aComponent); found.value = false; var _local2 = findComponentAfter(aContainer, aComponent, found); if (_local2 != null) { return(_local2); } if (found.value) { _local2 = getFirstComponent(aContainer); return(_local2); } return(null); } function getComponentBefore(aContainer, aComponent) { checkContainerComponent(aContainer, aComponent); found.value = false; var _local2 = findComponentBefore(aContainer, aComponent, found); if (_local2 != null) { return(_local2); } if (found.value) { return(getLastComponent(aContainer)); } return(null); } function getFirstComponent(aContainer) { if (aContainer == null) { trace("aContainer cannot be null"); throw new Error("aContainer cannot be null"); } if (!(aContainer.isVisible() && (aContainer.isDisplayable()))) { return(null); } if (accept(aContainer)) { return(aContainer); } var _local8 = aContainer.getComponentCount(); var _local5 = 0; while (_local5 < _local8) { var _local2 = aContainer.getComponent(_local5); if ((_local2 instanceof org.aswing.Container) && (!org.aswing.Container(_local2).isFocusCycleRoot())) { var _local3 = null; var _local4 = org.aswing.Container(_local2); if (_local4.isFocusTraversalPolicyProvider()) { var _local6 = _local4.getFocusTraversalPolicy(); _local3 = _local6.getDefaultComponent(_local4); } else { _local3 = getFirstComponent(org.aswing.Container(_local2)); } if (_local3 != null) { return(_local3); } } else if (accept(_local2)) { return(_local2); } _local5++; } return(null); } function getLastComponent(aContainer) { if (aContainer == null) { trace("aContainer cannot be null"); throw new Error("aContainer cannot be null"); } if (!(aContainer.isVisible() && (aContainer.isDisplayable()))) { return(null); } var _local5 = aContainer.getComponentCount() - 1; while (_local5 >= 0) { var _local2 = aContainer.getComponent(_local5); if ((_local2 instanceof org.aswing.Container) && (!org.aswing.Container(_local2).isFocusCycleRoot())) { var _local3 = null; var _local4 = org.aswing.Container(_local2); if (_local4.isFocusTraversalPolicyProvider()) { var _local6 = _local4.getFocusTraversalPolicy(); _local3 = _local6.getLastComponent(_local4); } else { _local3 = getLastComponent(org.aswing.Container(_local2)); } if (_local3 != null) { return(_local3); } } else if (accept(_local2)) { return(_local2); } _local5--; } if (accept(aContainer)) { return(aContainer); } return(null); } function getDefaultComponent(aContainer) { return(getFirstComponent(aContainer)); } function getInitialComponent(window) { var _local2 = getDefaultComponent(window); if ((_local2 == null) && (window.isFocusable())) { _local2 = window; } return(_local2); } function setImplicitDownCycleTraversal(implicitDownCycleTraversal) { this.implicitDownCycleTraversal = implicitDownCycleTraversal; } function getImplicitDownCycleTraversal() { return(implicitDownCycleTraversal); } function findComponentAfter(aContainer, aComponent, found) { if (!(aContainer.isVisible() && (aContainer.isDisplayable()))) { return(null); } if (found.value) { if (accept(aContainer)) { return(aContainer); } } else if (aContainer == aComponent) { found.value = true; } var _local10 = aContainer.getComponentCount(); var _local5 = 0; while (_local5 < _local10) { var _local2 = aContainer.getComponent(_local5); if ((_local2 instanceof org.aswing.Container) && (!org.aswing.Container(_local2).isFocusCycleRoot())) { var _local7 = null; if (org.aswing.Container(_local2).isFocusTraversalPolicyProvider()) { var _local8 = org.aswing.Container(_local2); var _local6 = _local8.getFocusTraversalPolicy(); if (found.value) { _local7 = _local6.getDefaultComponent(_local8); } else { found.value = _local8.isAncestorOf(aComponent); if (found.value) { if (aComponent == _local6.getLastComponent(_local8)) { _local7 = null; } else { _local7 = _local6.getComponentAfter(_local8, aComponent); } } } } else { _local7 = findComponentAfter(org.aswing.Container(_local2), aComponent, found); } if (_local7 != null) { return(_local7); } } else if (found.value) { if (accept(_local2)) { return(_local2); } } else if (_local2 == aComponent) { found.value = true; } if (((found.value && (getImplicitDownCycleTraversal())) && (_local2 instanceof org.aswing.Container)) && (org.aswing.Container(_local2).isFocusCycleRoot())) { var _local8 = org.aswing.Container(_local2); var _local7 = _local8.getFocusTraversalPolicy().getDefaultComponent(_local8); if (_local7 != null) { return(_local7); } } _local5++; } return(null); } function findComponentBefore(aContainer, aComponent, found) { if (!(aContainer.isVisible() && (aContainer.isDisplayable()))) { return(null); } var _local7 = aContainer.getComponentCount() - 1; while (_local7 >= 0) { var _local2 = aContainer.getComponent(_local7); if (_local2 == aComponent) { found.value = true; } else if ((_local2 instanceof org.aswing.Container) && (!org.aswing.Container(_local2).isFocusCycleRoot())) { var _local3 = null; if (org.aswing.Container(_local2).isFocusTraversalPolicyProvider()) { var _local4 = org.aswing.Container(_local2); var _local8 = _local4.getFocusTraversalPolicy(); if (found.value) { _local3 = _local8.getLastComponent(_local4); } else { found.value = _local4.isAncestorOf(aComponent); if (found.value) { if (aComponent == _local8.getFirstComponent(_local4)) { _local3 = null; } else { _local3 = _local8.getComponentBefore(_local4, aComponent); } } } } else { _local3 = findComponentBefore(org.aswing.Container(_local2), aComponent, found); } if (_local3 != null) { return(_local3); } } else if (found.value) { if (accept(_local2)) { return(_local2); } } _local7--; } if (found.value) { if (accept(aContainer)) { return(aContainer); } } else if (aContainer == aComponent) { found.value = true; } return(null); } function checkContainerComponent(aContainer, aComponent) { if ((aContainer == null) || (aComponent == null)) { trace(aContainer + " and aComponent cannot be null"); throw new Error("aContainer and aComponent cannot be null"); } else if ((!aContainer.isFocusTraversalPolicyProvider()) && (!aContainer.isFocusCycleRoot())) { trace(aContainer + " should be focus cycle root or focus traversal policy provider"); throw new Error("aContainer should be focus cycle root or focus traversal policy provider"); } else if (aContainer.isFocusCycleRoot() && (!aComponent.isFocusCycleRootOfContainer(aContainer))) { trace("aContainer is not a focus cycle root of aComponent"); throw new Error("aContainer is not a focus cycle root of aComponent"); } } function accept(aComponent) { if (!(((aComponent.isVisible() && (aComponent.isDisplayable())) && (aComponent.isFocusable())) && (aComponent.isEnabled()))) { return(false); } return(true); } }
Symbol 389 MovieClip [__Packages.org.aswing.DefaultFocusTraversalPolicy] Frame 0
class org.aswing.DefaultFocusTraversalPolicy extends org.aswing.ContainerOrderFocusTraversalPolicy { function DefaultFocusTraversalPolicy () { super(); } }
Symbol 390 MovieClip [__Packages.org.aswing.plaf.basic.BasicToggleButtonUI] Frame 0
class org.aswing.plaf.basic.BasicToggleButtonUI extends org.aswing.plaf.basic.BasicButtonUI { static var toggleButtonUI; var unistallLastPaintIcon, setJustPaintedIcon; function BasicToggleButtonUI () { super(); } static function createInstance(c) { if (toggleButtonUI == null) { toggleButtonUI = new org.aswing.plaf.basic.BasicToggleButtonUI(); } return(toggleButtonUI); } function getPropertyPrefix() { return(propertyPrefix); } function getTextShiftOffset() { return(0); } function paintIcon(b, g, iconRect) { var _local4 = b.getModel(); var _local2 = b.getIcon(); if (!_local4.isEnabled()) { if (_local4.isSelected()) { _local2 = b.getDisabledSelectedIcon(); } else { _local2 = b.getDisabledIcon(); } } else if (_local4.isPressed()) { _local2 = b.getPressedIcon(); if (_local2 == null) { _local2 = b.getSelectedIcon(); } } else if (_local4.isSelected()) { if (b.isRollOverEnabled() && (_local4.isRollOver())) { _local2 = b.getRollOverSelectedIcon(); if (_local2 == null) { _local2 = b.getSelectedIcon(); } } else { _local2 = b.getSelectedIcon(); } } else if (b.isRollOverEnabled() && (_local4.isRollOver())) { _local2 = b.getRollOverIcon(); } if (_local2 == null) { _local2 = b.getIcon(); } unistallLastPaintIcon(b, _local2); _local2.paintIcon(b, g, iconRect.x, iconRect.y); setJustPaintedIcon(b, _local2); } function paintBackGround(com, g, b) { super.paintBackGround(com, g, b); } static var propertyPrefix = "ToggleButton."; }
Symbol 391 MovieClip [__Packages.org.aswing.plaf.asw.ASWingToggleButtonUI] Frame 0
class org.aswing.plaf.asw.ASWingToggleButtonUI extends org.aswing.plaf.basic.BasicToggleButtonUI { static var asWingToggleButtonUI; function ASWingToggleButtonUI () { super(); } static function createInstance(c) { if (asWingToggleButtonUI == null) { asWingToggleButtonUI = new org.aswing.plaf.asw.ASWingToggleButtonUI(); } return(asWingToggleButtonUI); } function paintBackGround(com, g, b) { if (com.isOpaque()) { var _local1 = org.aswing.AbstractButton(com); if (_local1.getModel().isSelected() || (_local1.getModel().isPressed())) { g.fillRectangle(new org.aswing.graphics.SolidBrush(com.getBackground().darker(0.9)), b.x, b.y, b.width, b.height); } else { org.aswing.plaf.asw.ASWingButtonUI.paintASWingLAFButtonBackGround(_local1, g, b); } } } }
Symbol 392 MovieClip [__Packages.org.aswing.plaf.asw.ASWingButtonUI] Frame 0
class org.aswing.plaf.asw.ASWingButtonUI extends org.aswing.plaf.basic.BasicButtonUI { static var asWingButtonUI; function ASWingButtonUI () { super(); } static function createInstance(c) { if (asWingButtonUI == null) { asWingButtonUI = new org.aswing.plaf.asw.ASWingButtonUI(); } return(asWingButtonUI); } function paintBackGround(com, g, b) { var _local1 = org.aswing.AbstractButton(com); paintASWingLAFButtonBackGround(_local1, g, b); } static function paintASWingLAFButtonBackGround(c, g, b) { var _local3 = ((c.getBackground() == null) ? (org.aswing.ASColor.__get__WHITE()) : (c.getBackground())); if (c.isOpaque()) { if (c.getModel().isPressed() || (c.getModel().isSelected())) { g.fillRectangle(new org.aswing.graphics.SolidBrush(_local3), b.x, b.y, b.width, b.height); return(undefined); } org.aswing.plaf.asw.ASWingGraphicsUtils.drawControlBackground(g, b, _local3, (Math.PI/2)); } } }
Symbol 393 MovieClip [__Packages.org.aswing.plaf.asw.ASWingGraphicsUtils] Frame 0
class org.aswing.plaf.asw.ASWingGraphicsUtils { function ASWingGraphicsUtils () { } static function drawControlBackground(g, b, bgColor, direction) { g.fillRectangle(new org.aswing.graphics.SolidBrush(bgColor), b.x, b.y, b.width, b.height); var _local8 = b.x; var _local6 = b.y; var _local9 = b.width; var _local7 = b.height; var _local5 = [16777215, 16777215]; var _local3 = [75, 0]; var _local10 = [0, 100]; var _local4 = {matrixType:"box", x:_local8, y:_local6, w:_local9, h:_local7, r:direction}; var _local2 = new org.aswing.graphics.GradientBrush(org.aswing.graphics.GradientBrush.LINEAR, _local5, _local3, _local10, _local4); g.fillRectangle(_local2, _local8, _local6, _local9, _local7); } static function fillGradientRect(g, b, c1, c2, direction, ratios) { var _local8 = b.x; var _local6 = b.y; var _local10 = b.width; var _local7 = b.height; var _local5 = [c1.getRGB(), c2.getRGB()]; var _local3 = [c1.getAlpha(), c2.getAlpha()]; if (ratios == undefined) { ratios = [0, 255]; } var _local4 = {matrixType:"box", x:_local8, y:_local6, w:_local10, h:_local7, r:direction}; var _local2 = new org.aswing.graphics.GradientBrush(org.aswing.graphics.GradientBrush.LINEAR, _local5, _local3, ratios, _local4); g.fillRectangle(_local2, _local8, _local6, _local10, _local7); } }
Symbol 394 MovieClip [__Packages.org.aswing.graphics.GradientBrush] Frame 0
class org.aswing.graphics.GradientBrush implements org.aswing.graphics.Brush { var fillType, colors, alphas, ratios, matrix; function GradientBrush (fillType, colors, alphas, ratios, matrix) { this.fillType = fillType; this.colors = colors; this.alphas = alphas; this.ratios = ratios; this.matrix = matrix; } static function createMatrix(x, y, width, height, direction) { return({matrixType:"box", x:x, y:y, w:width, h:height, r:direction}); } function getFillType() { return(fillType); } function setFillType(t) { fillType = t; } function getColors() { return(colors); } function setColors(cs) { colors = cs; } function getAlphas() { return(alphas); } function setAlphas(as) { alphas = as; } function getRatios() { return(ratios); } function setRatios(rs) { ratios = rs; } function getMatrix() { return(matrix); } function setMatrix(m) { matrix = m; } function beginFill(target) { target.beginGradientFill(fillType, colors, alphas, ratios, matrix); } function endFill(target) { target.endFill(); } static var LINEAR = "linear"; static var RADIAL = "radial"; }
Symbol 395 MovieClip [__Packages.org.aswing.JRadioButton] Frame 0
class org.aswing.JRadioButton extends org.aswing.overflow.JToggleButton { var setName, setModel; function JRadioButton (text, icon) { super(text, icon); setName("JRadioButton"); setModel(new org.aswing.RadioButtonModel()); } function getUIClassID() { return("RadioButtonUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.asw.ASWingRadioButtonUI); } }
Symbol 396 MovieClip [__Packages.org.aswing.RadioButtonModel] Frame 0
class org.aswing.RadioButtonModel extends org.aswing.overflow.ToggleButtonModel { var allowUnselectAllInGroup; function RadioButtonModel () { super(); allowUnselectAllInGroup = false; } }
Symbol 397 MovieClip [__Packages.org.aswing.plaf.basic.BasicRadioButtonUI] Frame 0
class org.aswing.plaf.basic.BasicRadioButtonUI extends org.aswing.plaf.basic.BasicToggleButtonUI { static var radioButtonUI, viewRect, textRect, iconRect; var defaults_radiobutton_initialized, defaultIcon, paintFocusIfItsFocusOwner, unistallLastPaintIcon, setJustPaintedIcon, paintText, getTopTextField, getBottomTextField, fillBackGround, getButtonPreferredSize, getButtonMinimumSize; function BasicRadioButtonUI () { super(); defaults_radiobutton_initialized = false; checkRectsForCountLayout(); } static function createInstance(c) { if (radioButtonUI == null) { radioButtonUI = new org.aswing.plaf.basic.BasicRadioButtonUI(); } return(radioButtonUI); } function getPropertyPrefix() { return(propertyPrefix); } function installDefaults(b) { super.installDefaults(b); if (!defaults_radiobutton_initialized) { defaultIcon = org.aswing.UIManager.getIcon(getPropertyPrefix() + "icon"); defaults_radiobutton_initialized = true; } org.aswing.LookAndFeel.installBasicProperties(b, getPropertyPrefix()); } function uninstallDefaults(b) { super.uninstallDefaults(b); defaults_radiobutton_initialized = false; } function getDefaultIcon() { return(defaultIcon); } static function checkRectsForCountLayout() { if (viewRect == null) { viewRect = new org.aswing.geom.Rectangle(); textRect = new org.aswing.geom.Rectangle(); iconRect = new org.aswing.geom.Rectangle(); } } function paint(c, g, r) { var _local2 = org.aswing.AbstractButton(c); var _local4 = _local2.getModel(); paintBackGround(_local2, g, r); paintFocusIfItsFocusOwner(c); var _local6 = _local2.getMargin(); if (_local6 != null) { r = _local6.getInsideBounds(r); } viewRect.setRect(r); textRect.x = (textRect.y = (textRect.width = (textRect.height = 0))); iconRect.x = (iconRect.y = (iconRect.width = (iconRect.height = 0))); var _local3 = _local2.getIcon(); var _local5 = org.aswing.ASWingUtils.layoutCompoundLabel(c.getFont(), _local2.getText(), ((_local3 != null) ? (_local3) : (getDefaultIcon())), _local2.getVerticalAlignment(), _local2.getHorizontalAlignment(), _local2.getVerticalTextPosition(), _local2.getHorizontalTextPosition(), viewRect, iconRect, textRect, ((_local2.getText() == null) ? 0 : (_local2.getIconTextGap()))); if (_local3 != null) { if (!_local4.isEnabled()) { if (_local4.isSelected()) { _local3 = _local2.getDisabledSelectedIcon(); } else { _local3 = _local2.getDisabledIcon(); } } else if (_local4.isPressed()) { _local3 = _local2.getPressedIcon(); if (_local3 == null) { _local3 = _local2.getSelectedIcon(); } } else if (_local4.isSelected()) { if (_local2.isRollOverEnabled() && (_local4.isRollOver())) { _local3 = _local2.getRollOverSelectedIcon(); if (_local3 == null) { _local3 = _local2.getSelectedIcon(); } } else { _local3 = _local2.getSelectedIcon(); } } else if (_local2.isRollOverEnabled() && (_local4.isRollOver())) { _local3 = _local2.getRollOverIcon(); } if (_local3 == null) { _local3 = _local2.getIcon(); } } else { _local3 = getDefaultIcon(); } unistallLastPaintIcon(_local2, _local3); _local3.paintIcon(_local2, g, iconRect.x, iconRect.y); setJustPaintedIcon(_local2, _local3); if ((_local5 != null) && (_local5 != "")) { paintText(_local2, textRect, _local5); } else { getTopTextField(_local2).text = ""; getBottomTextField(_local2).text = ""; } } function paintBackGround(c, g, b) { if (c.isOpaque()) { fillBackGround(c, g, b); } } function getPreferredSize(c) { var _local2 = org.aswing.AbstractButton(c); var _local3 = _local2.getIcon(); if (_local3 == null) { _local3 = getDefaultIcon(); } var _local4 = _local2.getText(); return(getButtonPreferredSize(_local2, _local3, _local4)); } function getMinimumSize(c) { var _local2 = org.aswing.AbstractButton(c); var _local3 = _local2.getIcon(); if (_local3 == null) { _local3 = getDefaultIcon(); } var _local4 = _local2.getText(); return(getButtonMinimumSize(_local2, _local3, _local4)); } static var propertyPrefix = "RadioButton."; }
Symbol 398 MovieClip [__Packages.org.aswing.plaf.asw.ASWingRadioButtonUI] Frame 0
class org.aswing.plaf.asw.ASWingRadioButtonUI extends org.aswing.plaf.basic.BasicRadioButtonUI { static var asWingRadioButtonUI; function ASWingRadioButtonUI () { super(); } static function createInstance(c) { if (asWingRadioButtonUI == null) { asWingRadioButtonUI = new org.aswing.plaf.asw.ASWingRadioButtonUI(); } return(asWingRadioButtonUI); } }
Symbol 399 MovieClip [__Packages.org.aswing.plaf.basic.icon.CheckBoxIcon] Frame 0
class org.aswing.plaf.basic.icon.CheckBoxIcon implements org.aswing.Icon, org.aswing.plaf.UIResource { static var instance; var shadow, darkShadow, highlight, lightHighlight; function CheckBoxIcon () { super(); reloadColors(); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.icon.CheckBoxIcon(); } else { instance.reloadColors(); } return(instance); } function reloadColors() { var _local2 = org.aswing.UIManager.getLookAndFeelDefaults(); shadow = _local2.getColor("CheckBox.shadow"); darkShadow = _local2.getColor("CheckBox.darkShadow"); highlight = _local2.getColor("CheckBox.light"); lightHighlight = _local2.getColor("CheckBox.highlight"); } function getIconWidth() { return(13); } function getIconHeight() { return(13); } function paintIcon(com, g, x, y) { var _local8 = org.aswing.JCheckBox(com); var _local7 = _local8.getModel(); var _local16 = _local7.isSelected(); var _local10 = darkShadow; var _local19 = darkShadow; var _local12 = shadow; var _local13 = _local8.getForeground(); if (!_local7.isEnabled()) { _local12 = _local8.getBackground(); _local19 = _local12; _local10 = _local19; _local13 = darkShadow; } else if (_local7.isPressed()) { _local10 = shadow; _local12 = darkShadow; } var _local2 = getIconWidth(); var _local5 = getIconHeight(); var _local4 = x + (_local2 / 2); var _local3 = y + (_local5 / 2); var _local26 = _local2 / 2; var _local24 = _local5 / 2; var _local6 = new org.aswing.graphics.SolidBrush(darkShadow); g.fillRectangle(_local6, x, y, _local2, _local5); _local6.setASColor(highlight); g.fillRectangle(_local6, x + 1, y + 1, _local2 - 2, _local5 - 2); var _local18 = [14474200, 16777215]; var _local14 = [100, 100]; var _local22 = [0, 255]; var _local15 = {matrixType:"box", x:x + 2, y:y + 2, w:_local2 - 3, h:_local5 - 3, r:(Math.PI/4)}; var _local17 = new org.aswing.graphics.GradientBrush(org.aswing.graphics.GradientBrush.LINEAR, _local18, _local14, _local22, _local15); g.fillRectangle(_local17, x + 2, y + 2, _local2 - 4, _local5 - 4); if (_local16) { var _local11 = new org.aswing.graphics.Pen(_local13, 2); g.drawLine(_local11, (_local4 - (_local2 / 2)) + 3, _local3, _local4 - ((_local2 / 2) / 3), (_local3 + (_local5 / 2)) - 3); g.drawLine(_local11, _local4 - ((_local2 / 2) / 3), (_local3 + (_local5 / 2)) - 1, _local4 + (_local2 / 2), (_local3 - (_local5 / 2)) + 1); } } function uninstallIcon(com) { } }
Symbol 400 MovieClip [__Packages.org.aswing.JCheckBox] Frame 0
class org.aswing.JCheckBox extends org.aswing.overflow.JToggleButton { var setName; function JCheckBox (text, icon) { super(text, icon); setName("JCheckBox"); } function getUIClassID() { return("CheckBoxUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.asw.ASWingCheckBoxUI); } }
Symbol 401 MovieClip [__Packages.org.aswing.plaf.basic.BasicCheckBoxUI] Frame 0
class org.aswing.plaf.basic.BasicCheckBoxUI extends org.aswing.plaf.basic.BasicRadioButtonUI { static var checkBoxUI; function BasicCheckBoxUI () { super(); } static function createInstance(c) { if (checkBoxUI == null) { checkBoxUI = new org.aswing.plaf.basic.BasicCheckBoxUI(); } return(checkBoxUI); } function getPropertyPrefix() { return(propertyPrefix); } static var propertyPrefix = "CheckBox."; }
Symbol 402 MovieClip [__Packages.org.aswing.plaf.asw.ASWingCheckBoxUI] Frame 0
class org.aswing.plaf.asw.ASWingCheckBoxUI extends org.aswing.plaf.basic.BasicCheckBoxUI { static var asWingCheckBoxUI; function ASWingCheckBoxUI () { super(); } static function createInstance(c) { if (asWingCheckBoxUI == null) { asWingCheckBoxUI = new org.aswing.plaf.asw.ASWingCheckBoxUI(); } return(asWingCheckBoxUI); } }
Symbol 403 MovieClip [__Packages.org.aswing.plaf.basic.frame.TitleBarUI] Frame 0
class org.aswing.plaf.basic.frame.TitleBarUI extends org.aswing.plaf.ComponentUI { static var viewRect, textRect, iconRect; var stateChangeSize, stateChangeLocation, lastNormalStateBounds, titleBar, frame, defaultIcon, activeColor, activeTextColor, inactiveColor, inactiveTextColor, activeBorderColor, inactiveBorderColor, iconifiedIcon, normalIcon, maximizeIcon, closeIcon, iconifiedButton, resizeButton, closeButton, stateChangedListener, sizeChangedListener, locationChangedListener, stageChangedListener, activeListener, unactiveListener, titleTextField; function TitleBarUI () { super(); stateChangeSize = false; stateChangeLocation = false; lastNormalStateBounds = new org.aswing.geom.Rectangle(); checkRectsForCountLayout(); } function installUI(c) { titleBar = org.aswing.plaf.basic.frame.FrameTitleBar(c); titleBar.setFocusable(false); frame = titleBar.getFrame(); installDefaults(); installComponents(); installListeners(); } function installDefaults() { titleBar.setLayout(org.aswing.plaf.basic.frame.TitleBarLayout.createInstance()); defaultIcon = org.aswing.UIManager.getIcon("Frame.icon"); activeColor = org.aswing.UIManager.getColor("Frame.activeCaption"); activeTextColor = org.aswing.UIManager.getColor("Frame.activeCaptionText"); inactiveColor = org.aswing.UIManager.getColor("Frame.inactiveCaption"); inactiveTextColor = org.aswing.UIManager.getColor("Frame.inactiveCaptionText"); activeBorderColor = org.aswing.UIManager.getColor("Frame.activeCaptionBorder"); inactiveBorderColor = org.aswing.UIManager.getColor("Frame.inactiveCaptionBorder"); iconifiedIcon = org.aswing.UIManager.getIcon("Frame.iconifiedIcon"); normalIcon = org.aswing.UIManager.getIcon("Frame.normalIcon"); maximizeIcon = org.aswing.UIManager.getIcon("Frame.maximizeIcon"); closeIcon = org.aswing.UIManager.getIcon("Frame.closeIcon"); titleBar.setBackground(activeColor); titleBar.setForeground(activeTextColor); titleBar.setOpaque(true); } function installComponents() { iconifiedButton = new org.aswing.JButton(null, iconifiedIcon); resizeButton = new org.aswing.JButton(null, maximizeIcon); closeButton = new org.aswing.JButton(null, closeIcon); titleBar.append(iconifiedButton); titleBar.append(resizeButton); titleBar.append(closeButton); iconifiedButton.addActionListener(__iconifiedPressed, this); resizeButton.addActionListener(__resizePressed, this); closeButton.addActionListener(__closePressed, this); } function installListeners() { stateChangedListener = frame.addEventListener(org.aswing.JFrame.ON_STATE_CHANGED, __stateChanged, this); sizeChangedListener = frame.addEventListener(org.aswing.Component.ON_RESIZED, __sizeChanged, this); locationChangedListener = frame.addEventListener(org.aswing.Component.ON_MOVED, __frameMoved, this); stageChangedListener = new Object(); stageChangedListener.onResize = org.aswing.util.Delegate.create(this, __stageChanged); activeListener = frame.addEventListener(org.aswing.JWindow.ON_WINDOW_ACTIVATED, __frameActived, this); unactiveListener = frame.addEventListener(org.aswing.JWindow.ON_WINDOW_DEACTIVATED, __frameUnactived, this); } function uninstallUI(c) { uninstallDefaults(); uninstallComponents(); uninstallListeners(); titleTextField.removeTextField(); } function uninstallDefaults() { } function uninstallComponents() { titleBar.remove(iconifiedButton); titleBar.remove(resizeButton); titleBar.remove(closeButton); } function uninstallListeners() { frame.removeEventListener(stateChangedListener); frame.removeEventListener(sizeChangedListener); frame.removeEventListener(locationChangedListener); Stage.removeListener(stageChangedListener); frame.removeEventListener(activeListener); frame.removeEventListener(unactiveListener); } function create(c) { titleTextField = c.createTextField("titleText"); adjustButtons(); adjustResizerEnable(); if (frame.getState() == org.aswing.JFrame.NORMAL) { lastNormalStateBounds.setRect(frame.getBounds()); } } function __frameActived() { titleBar.repaint(); } function __frameUnactived() { titleBar.repaint(); } function __stageChanged() { if (Stage.scaleMode != "noScale") { return(undefined); } if (isMaximized()) { setSizeToFixMaxmimized(); frame.revalidateIfNecessary(); } } function __iconifiedPressed() { frame.setState(org.aswing.JFrame.ICONIFIED); } function __resizePressed() { if (isNormalIcon()) { frame.setState(org.aswing.JFrame.NORMAL); } else { frame.setState(org.aswing.JFrame.MAXIMIZED); } } function __closePressed() { frame.closeReleased(); } function __frameMoved() { if (stateChangeLocation) { stateChangeLocation = false; } else { lastNormalStateBounds.setLocation(frame.getLocation()); } } function __sizeChanged() { if (stateChangeSize || (frame.getState() == org.aswing.JFrame.ICONIFIED)) { stateChangeSize = false; } else { lastNormalStateBounds.setSize(frame.getSize()); } } function __stateChanged() { var _local2 = frame.getState(); if (((((_local2 != org.aswing.JFrame.ICONIFIED) && (_local2 != org.aswing.JFrame.NORMAL)) && (_local2 != org.aswing.JFrame.MAXIMIZED_HORIZ)) && (_local2 != org.aswing.JFrame.MAXIMIZED_VERT)) && (_local2 != org.aswing.JFrame.MAXIMIZED)) { _local2 = org.aswing.JFrame.NORMAL; } if (_local2 == org.aswing.JFrame.ICONIFIED) { iconifiedButton.setVisible(false); switchResizeIcon(); var _local3 = titleBar.getMinimumSize(); stateChangeSize = true; frame.setSize(frame.getInsets().getOutsideSize(_local3)); stateChangeSize = false; Stage.removeListener(stageChangedListener); } else if (_local2 == org.aswing.JFrame.NORMAL) { stateChangeSize = true; frame.setBounds(lastNormalStateBounds); stateChangeSize = false; if (isNeedToViewIconifiedButton()) { iconifiedButton.setVisible(true); } switchToMaximizButton(); Stage.removeListener(stageChangedListener); } else { setSizeToFixMaxmimized(); } frame.revalidateIfNecessary(); } function setSizeToFixMaxmimized() { var _local4 = frame.getState(); var _local3 = frame.getMaximizedBounds(); var _local2 = frame.getBounds(); if ((_local4 & org.aswing.JFrame.MAXIMIZED_HORIZ) == org.aswing.JFrame.MAXIMIZED_HORIZ) { _local2.x = _local3.x; _local2.width = _local3.width; } if ((_local4 & org.aswing.JFrame.MAXIMIZED_VERT) == org.aswing.JFrame.MAXIMIZED_VERT) { _local2.y = _local3.y; _local2.height = _local3.height; } stateChangeSize = true; stateChangeLocation = true; frame.setBounds(_local2); stateChangeSize = false; stateChangeLocation = false; if (isNeedToViewIconifiedButton()) { iconifiedButton.setVisible(true); } switchToNormalButton(); Stage.addListener(stageChangedListener); } function isNormalIcon() { return(resizeButton.getIcon() == normalIcon); } function switchResizeIcon() { if (isNormalIcon()) { switchToMaximizButton(); } else { switchToNormalButton(); } } function switchToMaximizButton() { resizeButton.setIcon(maximizeIcon); } function switchToNormalButton() { resizeButton.setIcon(normalIcon); } static function checkRectsForCountLayout() { if (viewRect == null) { viewRect = new org.aswing.geom.Rectangle(); textRect = new org.aswing.geom.Rectangle(); iconRect = new org.aswing.geom.Rectangle(); } } function paint(c, g, r) { super.paint(c, g, r); var _local3 = frame.getIcon(); if (_local3 == null) { _local3 = defaultIcon; } _local3.uninstallIcon(c); viewRect.setRect(r); var _local8 = org.aswing.plaf.basic.frame.TitleBarLayout(titleBar.getLayout()); var _local5 = 0; var _local4 = 0; if (iconifiedButton.isVisible()) { _local4++; _local5 = _local5 + iconifiedButton.getWidth(); } if (resizeButton.isVisible()) { _local4++; _local5 = _local5 + resizeButton.getWidth(); } if (closeButton.isVisible()) { _local4++; _local5 = _local5 + closeButton.getWidth(); } viewRect.width = viewRect.width - (_local5 + (Math.max(0, _local4 - 1) * _local8.getHorizontalGap())); textRect.x = (textRect.y = (textRect.width = (textRect.height = 0))); iconRect.x = (iconRect.y = (iconRect.width = (iconRect.height = 0))); var _local6 = org.aswing.ASWingUtils.layoutCompoundLabel(c.getFont(), frame.getTitle(), _local3, org.aswing.ASWingConstants.CENTER, org.aswing.ASWingConstants.LEFT, org.aswing.ASWingConstants.CENTER, org.aswing.ASWingConstants.RIGHT, viewRect, iconRect, textRect, ((frame.getTitle() == null) ? 0 : (ICON_TEXT_GAP))); if (_local3 != null) { _local3.paintIcon(c, g, iconRect.x, iconRect.y); } if ((_local6 != null) && (_local6 != "")) { titleTextField.text = _local6; org.aswing.ASWingUtils.applyTextFontAndColor(titleTextField, frame.getFont(), (frame.isActive() ? (activeTextColor) : (inactiveTextColor))); titleTextField._x = textRect.x; titleTextField._y = textRect.y; } adjustButtons(); adjustResizerEnable(); } function isMaximized() { var _local2 = frame.getState(); return(((_local2 & org.aswing.JFrame.MAXIMIZED_HORIZ) == org.aswing.JFrame.MAXIMIZED_HORIZ) || ((_local2 & org.aswing.JFrame.MAXIMIZED_VERT) == org.aswing.JFrame.MAXIMIZED_VERT)); } function isNeedToViewIconifiedButton() { return(frame.isResizable() && (frame.getState() != org.aswing.JFrame.ICONIFIED)); } function isNeedToViewResizeButton() { return(frame.isResizable()); } function isNeedToViewCloseButton() { return(frame.isClosable()); } function adjustButtons() { iconifiedButton.setVisible(isNeedToViewIconifiedButton()); resizeButton.setVisible(isNeedToViewResizeButton()); closeButton.setVisible(isNeedToViewCloseButton()); } function adjustResizerEnable() { frame.getResizer().setEnabled(frame.isResizable() && (frame.getState() == org.aswing.JFrame.NORMAL)); } static var ICON_TEXT_GAP = 2; }
Symbol 404 MovieClip [__Packages.org.aswing.plaf.basic.frame.FrameTitleBar] Frame 0
class org.aswing.plaf.basic.frame.FrameTitleBar extends org.aswing.Container { var setName, frame; function FrameTitleBar (frame) { super(); setName("FrameTitleBar"); this.frame = frame; } function setLayout(l) { if (l instanceof org.aswing.plaf.basic.frame.TitleBarLayout) { super.setLayout(l); } else { trace("FrameTitleBar just can accept FrameTitleBar!"); throw new Error("FrameTitleBar just can accept FrameTitleBar!"); } } function getFrame() { return(frame); } function updateUI() { setUI(org.aswing.UIManager.getUI(this)); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("Frame.titleBarUI"); } }
Symbol 405 MovieClip [__Packages.org.aswing.JFrame] Frame 0
class org.aswing.JFrame extends org.aswing.JWindow { var title, state, defaultCloseOperation, dragable, resizable, closable, setName, updateUINow, setUI, repaint, revalidate, getLayout, icon, maximizedBounds, root_mc, fireStateChanged, dispatchEvent, createEventObj, resizer, dragDirectly, hide, dispose; function JFrame (owner, title, modal) { super((org.aswing.util.StringUtils.isString(title) ? (owner) : ((org.aswing.util.StringUtils.isString(owner) ? undefined : (owner)))), (org.aswing.util.StringUtils.isString(title) ? (modal) : (title))); if (org.aswing.util.StringUtils.isString(title)) { this.title = org.aswing.util.StringUtils.castString(title); } else if (org.aswing.util.StringUtils.isString(owner)) { this.title = org.aswing.util.StringUtils.castString(owner); } state = NORMAL; defaultCloseOperation = HIDE_ON_CLOSE; dragable = true; resizable = true; closable = true; setName("JFrame"); updateUINow = true; updateUI(); } function updateUI() { if (updateUINow) { setUI(org.aswing.plaf.WindowUI(org.aswing.UIManager.getUI(this))); } } function getUIClassID() { return("FrameUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.asw.ASWingFrameUI); } function setTitle(t) { if (title != t) { title = t; repaint(); revalidate(); org.aswing.WindowLayout(getLayout()).getTitleBar().repaint(); } } function getTitle() { return(title); } function setIcon(ico) { if (icon != ico) { icon = ico; repaint(); revalidate(); } } function getIcon() { return(icon); } function setResizable(b) { if (resizable != b) { resizable = b; getResizer().setEnabled(b); repaint(); revalidate(); } } function isResizable() { return(resizable); } function setDragable(b) { if (dragable != b) { dragable = b; repaint(); revalidate(); } } function isDragable() { return(dragable); } function setClosable(b) { if (closable != b) { closable = b; repaint(); revalidate(); } } function isClosable() { return(closable); } function pack() { if (getState() == NORMAL) { super.pack(); } } function getMaximizedBounds() { if (maximizedBounds == null) { return(org.aswing.ASWingUtils.getVisibleMaximizedBounds(root_mc._parent)); } return(new org.aswing.geom.Rectangle(maximizedBounds)); } function setMaximizedBounds(b) { if (b != null) { maximizedBounds = new org.aswing.geom.Rectangle(b); revalidate(); } else { maximizedBounds = null; } } function setDefaultCloseOperation(operation) { if (((operation != DO_NOTHING_ON_CLOSE) && (operation != HIDE_ON_CLOSE)) && (operation != DISPOSE_ON_CLOSE)) { operation = HIDE_ON_CLOSE; } defaultCloseOperation = operation; } function getDefaultCloseOperation() { return(defaultCloseOperation); } function setState(s) { if (state != s) { state = s; fireStateChanged(); if (state == ICONIFIED) { dispatchEvent(org.aswing.JWindow.ON_WINDOW_ICONIFIED, createEventObj(org.aswing.JWindow.ON_WINDOW_ICONIFIED)); } else if ((state & (MAXIMIZED_HORIZ == MAXIMIZED_HORIZ)) || (state & (MAXIMIZED_VERT == MAXIMIZED_VERT))) { dispatchEvent(org.aswing.JWindow.ON_WINDOW_MAXIMIZED, createEventObj(org.aswing.JWindow.ON_WINDOW_MAXIMIZED)); } else { dispatchEvent(org.aswing.JWindow.ON_WINDOW_RESTORED, createEventObj(org.aswing.JWindow.ON_WINDOW_RESTORED)); } return(undefined); } } function getState() { return(state); } function setResizer(r) { if ((r != resizer) && (r != null)) { resizer = r; org.aswing.resizer.ResizerController.init(this, r); r.setEnabled(isResizable()); } } function getResizer() { return(resizer); } function setResizeDirectly(b) { resizer.setResizeDirectly(b); } function isResizeDirectly() { return(resizer.isResizeDirectly()); } function setDragDirectly(b) { dragDirectly = b; } function isDragDirectly() { return(dragDirectly); } function closeReleased() { dispatchEvent(org.aswing.overflow.JPopup.ON_WINDOW_CLOSING, createEventObj(org.aswing.overflow.JPopup.ON_WINDOW_CLOSING)); tryToClose(); } function tryToClose() { if (defaultCloseOperation == HIDE_ON_CLOSE) { hide(); } else if (defaultCloseOperation == DISPOSE_ON_CLOSE) { dispose(); } } static var ON_STATE_CHANGED = "onStateChanged"; static var ON_ABILITY_CHANGED = "onAbilityChanged"; static var NORMAL = 0; static var ICONIFIED = 2; static var MAXIMIZED_HORIZ = 4; static var MAXIMIZED_VERT = 8; static var MAXIMIZED = 12; static var DO_NOTHING_ON_CLOSE = 0; static var HIDE_ON_CLOSE = 1; static var DISPOSE_ON_CLOSE = 2; }
Symbol 406 MovieClip [__Packages.org.aswing.resizer.Resizer] Frame 0
interface org.aswing.resizer.Resizer { }
Symbol 407 MovieClip [__Packages.org.aswing.plaf.basic.BasicFrameUI] Frame 0
class org.aswing.plaf.basic.BasicFrameUI extends org.aswing.plaf.basic.BasicWindowUI { var frame, resizeArrowColor, resizeArrowLightColor, resizeArrowDarkColor, titleBar, titleBarListener, mouseMoveListener, frameListener, boundsMC, startPos; function BasicFrameUI () { super(); } function installUI(c) { frame = org.aswing.JFrame(c); installDefaults(); installComponents(); installListeners(); } function installDefaults() { super.installDefaults(frame); var _local3 = "Frame."; org.aswing.LookAndFeel.installColorsAndFont(frame, _local3 + "background", _local3 + "foreground", _local3 + "font"); org.aswing.LookAndFeel.installBorder(frame, _local3 + "border"); resizeArrowColor = org.aswing.UIManager.getColor("Frame.resizeArrow"); resizeArrowLightColor = org.aswing.UIManager.getColor("Frame.resizeArrowLight"); resizeArrowDarkColor = org.aswing.UIManager.getColor("Frame.resizeArrowDark"); } function installComponents() { titleBar = createTitleBar(); frame.insert(0, titleBar, org.aswing.WindowLayout.TITLE); if ((frame.getResizer() == null) || (frame.getResizer() instanceof org.aswing.plaf.UIResource)) { var _local2 = org.aswing.resizer.Resizer(org.aswing.UIManager.getInstance("Frame.resizer")); frame.setResizer(_local2); } } function installListeners() { var _local2 = new Object(); _local2[org.aswing.Component.ON_PRESS] = org.aswing.util.Delegate.create(this, __onTitleBarPress); _local2[org.aswing.Component.ON_RELEASE] = org.aswing.util.Delegate.create(this, __onTitleBarRelease); _local2[org.aswing.Component.ON_RELEASEOUTSIDE] = _local2[org.aswing.Component.ON_RELEASE]; _local2[org.aswing.Component.ON_CLICKED] = org.aswing.util.Delegate.create(this, __onTitleBarClick); titleBarListener = _local2; titleBar.addEventListener(titleBarListener); mouseMoveListener = new Object(); mouseMoveListener.onMouseMove = org.aswing.util.Delegate.create(this, __onMouseMove); frameListener = new Object(); frameListener[org.aswing.JFrame.ON_WINDOW_ACTIVATED] = org.aswing.util.Delegate.create(frame, frame.repaint); frameListener[org.aswing.JFrame.ON_WINDOW_DEACTIVATED] = frameListener[org.aswing.JFrame.ON_WINDOW_ACTIVATED]; frame.addEventListener(frameListener); } function uninstallUI(c) { var _local2 = org.aswing.JFrame(c); uninstallDefaults(); uninstallComponents(); uninstallListeners(); boundsMC.unloadMovie(); boundsMC.removeMovieClip(); } function uninstallDefaults() { org.aswing.LookAndFeel.uninstallBorder(frame); } function uninstallComponents() { titleBar.setUI(null); frame.remove(titleBar); } function uninstallListeners() { titleBar.removeEventListener(titleBarListener); frame.removeEventListener(frameListener); titleBarListener = null; frameListener = null; } function create(c) { super.create(c); boundsMC = frame.createMovieClipOnRoot("drag_mc"); } function createTitleBar() { var _local2 = new org.aswing.plaf.basic.frame.FrameTitleBar(frame); _local2.updateUI(); return(_local2); } function isMaximizedFrame() { var _local2 = frame.getState(); return(((_local2 & org.aswing.JFrame.MAXIMIZED_HORIZ) == org.aswing.JFrame.MAXIMIZED_HORIZ) || ((_local2 & org.aswing.JFrame.MAXIMIZED_VERT) == org.aswing.JFrame.MAXIMIZED_VERT)); } function __onTitleBarPress() { if (frame.isDragable() && (!isMaximizedFrame())) { if (frame.isDragDirectly()) { frame.startDrag(); } else { startPos = frame.getMousePosition(); Mouse.addListener(mouseMoveListener); } } } function __onTitleBarRelease() { frame.stopDrag(); Mouse.removeListener(mouseMoveListener); if (frame.isDragable() && (!isMaximizedFrame())) { var _local3 = representMoveBounds(); boundsMC.clear(); boundsMC._visible = false; var _local2 = frame.getLocation(); _local2.move(_local3.x, _local3.y); _local2.x = Math.round(_local2.x); _local2.y = Math.round(_local2.y); frame.setLocation(_local2); frame.validate(); } } function __onTitleBarClick(source, clickCount) { if (clickCount == 2) { if (frame.isResizable()) { var _local2 = frame.getState(); if (((_local2 & (org.aswing.JFrame.MAXIMIZED_HORIZ == org.aswing.JFrame.MAXIMIZED_HORIZ)) || (_local2 & (org.aswing.JFrame.MAXIMIZED_VERT == org.aswing.JFrame.MAXIMIZED_VERT))) || (_local2 & (org.aswing.JFrame.ICONIFIED == org.aswing.JFrame.ICONIFIED))) { frame.setState(org.aswing.JFrame.NORMAL); } else { frame.setState(org.aswing.JFrame.MAXIMIZED); } } } } function representMoveBounds() { boundsMC._visible = true; var _local12 = frame.getMousePosition(); var _local2 = frame.getBounds(); _local2.x = _local12.x - startPos.x; _local2.y = _local12.y - startPos.y; var _local3 = titleBar.getHeight(); var _local4 = frame.getMaximizedBounds(); _local4.x = _local4.x - frame.getX(); _local4.y = _local4.y - frame.getY(); var _local5 = _local4.leftTop(); var _local11 = _local4.rightTop(); var _local13 = _local4.leftBottom(); if (_local2.x < ((_local5.x - _local2.width) + _local3)) { _local2.x = (_local5.x - _local2.width) + _local3; } if (_local2.x > (_local11.x - _local3)) { _local2.x = _local11.x - _local3; } if (_local2.y < _local5.y) { _local2.y = _local5.y; } if (_local2.y > (_local13.y - _local3)) { _local2.y = _local13.y - _local3; } var _local8 = _local2.x; var _local6 = _local2.y; var _local10 = _local2.width; var _local7 = _local2.height; var _local9 = new org.aswing.graphics.Graphics(boundsMC); boundsMC.clear(); _local9.drawRectangle(new org.aswing.graphics.Pen(resizeArrowLightColor, 1), _local8 - 1, _local6 - 1, _local10 + 2, _local7 + 2); _local9.drawRectangle(new org.aswing.graphics.Pen(resizeArrowColor, 1), _local8, _local6, _local10, _local7); _local9.drawRectangle(new org.aswing.graphics.Pen(resizeArrowDarkColor, 1), _local8 + 1, _local6 + 1, _local10 - 2, _local7 - 2); updateAfterEvent(); return(_local2.leftTop()); } function __onMouseMove() { representMoveBounds(); } }
Symbol 408 MovieClip [__Packages.org.aswing.plaf.asw.ASWingFrameUI] Frame 0
class org.aswing.plaf.asw.ASWingFrameUI extends org.aswing.plaf.basic.BasicFrameUI { function ASWingFrameUI () { super(); } }
Symbol 409 MovieClip [__Packages.org.aswing.resizer.ResizerController] Frame 0
class org.aswing.resizer.ResizerController { var _component, _resizable, _resizer, _resizableDirectly; function ResizerController (comp, resizer) { if (!comp) { throw new Error("illegal component when insert to ResizerContainer"); } else if (!_map.containsKey(comp.getID())) { _registerComponent(comp, resizer); } } static function getController(comp) { if (_map.containsKey(comp.getID())) { return(_map.get(comp.getID())); } return(null); } static function isUnderResizerControl(comp) { return(_map.containsKey(comp.getID())); } static function init(comp, resizer) { if (_map.containsKey(comp.getID())) { var _local1 = _map.get(comp.getID()); if (resizer != undefined) { _local1.setResizer(resizer); } return(_local1); } return(new org.aswing.resizer.ResizerController(comp, resizer)); } static function remove(comp) { if (_map.containsKey(comp.getID())) { var _local1 = _map.remove(comp.getID()); _local1._destroy(); } } function getComponent() { return(_component); } function isResizable() { return(_resizable); } function setResizable(b) { if (_resizable != b) { _resizable = b; _resizer.setEnabled(isResizable()); } } function getResizer() { return(_resizer); } function setResizer(r) { if ((r != _resizer) && (r != null)) { _destroyResizer(); _resizer = r; _initResizer(); } } function isResizeDirectly() { return(_resizableDirectly); } function setResizeDirectly(b) { _resizableDirectly = b; _resizer.setResizeDirectly(b); } function _registerComponent(comp, resizer) { _component = comp; _map.put(comp.getID(), this); _resizable = true; _resizableDirectly = false; if (resizer == undefined) { resizer = new org.aswing.resizer.DefaultResizer(); } setResizer(resizer); } function _initResizer() { _resizer.setOwner(getComponent()); _resizer.setEnabled(isResizable()); _resizer.setResizeDirectly(isResizeDirectly()); } function _destroyResizer() { _resizer.destroy(); _resizer = null; } function _destroy() { _destroyResizer(); _component = null; } static var _map = new org.aswing.util.HashMap(); }
Symbol 410 MovieClip [__Packages.org.aswing.resizer.DefaultResizer] Frame 0
class org.aswing.resizer.DefaultResizer implements org.aswing.resizer.Resizer, org.aswing.plaf.UIResource { var enabled, resizeDirectly, startX, startY, resizeArrowColor, resizeArrowLightColor, resizeArrowDarkColor, com, listener, resizeArrowMC, boundsMC, resizeMC, lastRepresentedBounds, topResizeMC, leftResizeMC, rightResizeMC, bottomResizeMC, topLeftResizeMC, topRightResizeMC, bottomLeftResizeMC, bottomRightResizeMC; function DefaultResizer () { enabled = true; resizeDirectly = false; startX = 0; startY = 0; resizeArrowColor = new org.aswing.ASColor(8421504); resizeArrowLightColor = new org.aswing.ASColor(13421772); resizeArrowDarkColor = new org.aswing.ASColor(0); } function setResizeArrowColor(c) { resizeArrowColor = c; } function setResizeArrowLightColor(c) { resizeArrowLightColor = c; } function setResizeArrowDarkColor(c) { resizeArrowDarkColor = c; } function setOwner(c) { com.removeEventListener(listener); com = c; listener = new Object(); listener[org.aswing.Component.ON_PAINT] = org.aswing.util.Delegate.create(this, locate); listener[org.aswing.Component.ON_CREATED] = org.aswing.util.Delegate.create(this, __ownerCreated); com.addEventListener(listener); if (com.isDisplayable()) { __ownerCreated(); } } function __ownerCreated() { createResizeMCs(); } function setResizeDirectly(r) { resizeDirectly = r; } function isResizeDirectly() { return(resizeDirectly); } function setArrowRotation(r) { resizeArrowMC._rotation = r; } function hideArrow() { resizeArrowMC._visible = false; } function showArrowToMousePos() { resizeArrowMC._visible = true; resizeArrowMC._x = resizeArrowMC._parent._xmouse; resizeArrowMC._y = resizeArrowMC._parent._ymouse; } function startDragArrow() { resizeArrowMC.startDrag(true); } function stopDragArrow() { resizeArrowMC.stopDrag(); } function startResize(strategy) { if (!resizeDirectly) { boundsMC._visible = true; representRect(com.getBounds()); } startX = resizeMC._xmouse; startY = resizeMC._ymouse; } function resizing(strategy) { var _local2 = strategy.getBounds(com, resizeMC._xmouse - startX, resizeMC._ymouse - startY); if (resizeDirectly) { com.setBounds(_local2); com.validate(); updateAfterEvent(); startX = resizeMC._xmouse; startY = resizeMC._ymouse; } else { representRect(_local2); } } function finishResize(strategy) { if (!resizeDirectly) { com.setBounds(lastRepresentedBounds); boundsMC._visible = false; com.revalidate(); } } function representRect(bounds) { if (!resizeDirectly) { var _local8 = com.getLocation(); var _local5 = bounds.x - _local8.x; var _local3 = bounds.y - _local8.y; var _local7 = bounds.width; var _local4 = bounds.height; var _local6 = new org.aswing.graphics.Graphics(boundsMC); boundsMC.clear(); _local6.drawRectangle(new org.aswing.graphics.Pen(resizeArrowLightColor), _local5 - 1, _local3 - 1, _local7 + 2, _local4 + 2); _local6.drawRectangle(new org.aswing.graphics.Pen(resizeArrowColor), _local5, _local3, _local7, _local4); _local6.drawRectangle(new org.aswing.graphics.Pen(resizeArrowDarkColor), _local5 + 1, _local3 + 1, _local7 - 2, _local4 - 2); lastRepresentedBounds = bounds; } } function createResizeMCs() { var _local2 = RESIZE_MC_WIDTH; var _local5 = org.aswing.ElementCreater.getInstance(); resizeMC.removeMovieClip(); resizeMC = com.createMovieClipOnRoot(); resizeArrowMC = _local5.createMC(resizeMC, "resizeArrowMC"); var _local6 = 1; var _local7 = [{x:(-_local2) * 2, y:0}, {x:-_local2, y:-_local2}, {x:-_local2, y:-_local6}, {x:_local2, y:-_local6}, {x:_local2, y:-_local2}, {x:_local2 * 2, y:0}, {x:_local2, y:_local2}, {x:_local2, y:_local6}, {x:-_local2, y:_local6}, {x:-_local2, y:_local2}]; var _local3; _local3 = new org.aswing.graphics.Graphics(resizeArrowMC); _local3.drawPolygon(new org.aswing.graphics.Pen(resizeArrowColor.getRGB(), 4, 40), _local7); _local3.fillPolygon(new org.aswing.graphics.SolidBrush(resizeArrowLightColor), _local7); _local3.drawPolygon(new org.aswing.graphics.Pen(resizeArrowDarkColor, 1), _local7); resizeArrowMC._visible = false; boundsMC = _local5.createMC(resizeMC, "boundsMC"); boundsMC._visible = false; topResizeMC = _local5.createMC(resizeMC, "topResizeMC"); leftResizeMC = _local5.createMC(resizeMC, "leftResizeMC"); rightResizeMC = _local5.createMC(resizeMC, "rightResizeMC"); bottomResizeMC = _local5.createMC(resizeMC, "bottomResizeMC"); topLeftResizeMC = _local5.createMC(resizeMC, "topLeftResizeMC"); topRightResizeMC = _local5.createMC(resizeMC, "topRightResizeMC"); bottomLeftResizeMC = _local5.createMC(resizeMC, "bottomLeftResizeMC"); bottomRightResizeMC = _local5.createMC(resizeMC, "bottomRightResizeMC"); org.aswing.resizer.DefaultResizeBarHandler.createHandler(this, topResizeMC, 90, createResizeStrategy(0, -1)); org.aswing.resizer.DefaultResizeBarHandler.createHandler(this, leftResizeMC, 0, createResizeStrategy(-1, 0)); org.aswing.resizer.DefaultResizeBarHandler.createHandler(this, rightResizeMC, 0, createResizeStrategy(1, 0)); org.aswing.resizer.DefaultResizeBarHandler.createHandler(this, bottomResizeMC, 90, createResizeStrategy(0, 1)); org.aswing.resizer.DefaultResizeBarHandler.createHandler(this, topLeftResizeMC, 45, createResizeStrategy(-1, -1)); org.aswing.resizer.DefaultResizeBarHandler.createHandler(this, topRightResizeMC, -45, createResizeStrategy(1, -1)); org.aswing.resizer.DefaultResizeBarHandler.createHandler(this, bottomLeftResizeMC, -45, createResizeStrategy(-1, 1)); org.aswing.resizer.DefaultResizeBarHandler.createHandler(this, bottomRightResizeMC, 45, createResizeStrategy(1, 1)); var _local4 = new org.aswing.graphics.SolidBrush(new org.aswing.ASColor(0, 0)); _local3 = new org.aswing.graphics.Graphics(topResizeMC); _local3.fillRectangle(_local4, 0, 0, _local2, _local2); _local3 = new org.aswing.graphics.Graphics(leftResizeMC); _local3.fillRectangle(_local4, 0, 0, _local2, _local2); _local3 = new org.aswing.graphics.Graphics(rightResizeMC); _local3.fillRectangle(_local4, -_local2, 0, _local2, _local2); _local3 = new org.aswing.graphics.Graphics(bottomResizeMC); _local3.fillRectangle(_local4, 0, -_local2, _local2, _local2); _local3 = new org.aswing.graphics.Graphics(topLeftResizeMC); _local3.fillRectangle(_local4, 0, 0, _local2 * 2, _local2); _local3.fillRectangle(_local4, 0, 0, _local2, _local2 * 2); _local3 = new org.aswing.graphics.Graphics(topRightResizeMC); _local3.fillRectangle(_local4, (-_local2) * 2, 0, _local2 * 2, _local2); _local3.fillRectangle(_local4, -_local2, 0, _local2, _local2 * 2); _local3 = new org.aswing.graphics.Graphics(bottomLeftResizeMC); _local3.fillRectangle(_local4, 0, -_local2, _local2 * 2, _local2); _local3.fillRectangle(_local4, 0, (-_local2) * 2, _local2, _local2 * 2); _local3 = new org.aswing.graphics.Graphics(bottomRightResizeMC); _local3.fillRectangle(_local4, (-_local2) * 2, -_local2, _local2 * 2, _local2); _local3.fillRectangle(_local4, -_local2, (-_local2) * 2, _local2, _local2 * 2); resizeMC._visible = enabled; } function createResizeStrategy(wSign, hSign) { return(new org.aswing.resizer.ResizeStrategyImp(wSign, hSign)); } function setEnabled(e) { enabled = e; resizeMC._visible = enabled; } function isEnabled() { return(enabled); } function destroy() { com.removeEventListener(listener); com = null; resizeMC.removeMovieClip(); resizeMC = null; } function locate() { var _local4 = com.getWidth(); var _local3 = com.getHeight(); var _local2 = RESIZE_MC_WIDTH; topResizeMC._width = Math.max(0, _local4 - (_local2 * 2)); topResizeMC._x = _local2; topResizeMC._y = 0; leftResizeMC._height = Math.max(0, _local3 - (_local2 * 2)); leftResizeMC._x = 0; leftResizeMC._y = _local2; rightResizeMC._height = Math.max(0, _local3 - (_local2 * 2)); rightResizeMC._x = _local4; rightResizeMC._y = _local2; bottomResizeMC._width = Math.max(0, _local4 - (_local2 * 2)); bottomResizeMC._x = _local2; bottomResizeMC._y = _local3; topLeftResizeMC._x = 0; topLeftResizeMC._y = 0; topRightResizeMC._x = _local4; topRightResizeMC._y = 0; bottomLeftResizeMC._x = 0; bottomLeftResizeMC._y = _local3; bottomRightResizeMC._x = _local4; bottomRightResizeMC._y = _local3; } static var RESIZE_MC_WIDTH = 4; }
Symbol 411 MovieClip [__Packages.org.aswing.resizer.ResizeStrategy] Frame 0
interface org.aswing.resizer.ResizeStrategy { }
Symbol 412 MovieClip [__Packages.org.aswing.resizer.DefaultResizeBarHandler] Frame 0
class org.aswing.resizer.DefaultResizeBarHandler { var resizer, mc, arrowRotation, strategy; function DefaultResizeBarHandler (resizer, barMC, arrowRotation, strategy) { this.resizer = resizer; mc = barMC; this.arrowRotation = arrowRotation; this.strategy = strategy; handle(); } static function createHandler(resizer, barMC, arrowRotation, strategy) { return(new org.aswing.resizer.DefaultResizeBarHandler(resizer, barMC, arrowRotation, strategy)); } function handle() { mc.onRollOver = org.aswing.util.Delegate.create(this, __onRollOver); mc.onRollOut = org.aswing.util.Delegate.create(this, __onRollOut); mc.onPress = org.aswing.util.Delegate.create(this, __onPress); mc.onRelease = org.aswing.util.Delegate.create(this, __onRelease); mc.onReleaseOutside = org.aswing.util.Delegate.create(this, __onReleaseOutside); } function __onRollOver() { showArrowToMousePos(); mc.onMouseMove = org.aswing.util.Delegate.create(this, showArrowToMousePos); } function __onRollOut() { mc.onMouseMove = undefined; resizer.hideArrow(); } function __onPress() { resizer.startDragArrow(); startResize(); mc.onMouseMove = org.aswing.util.Delegate.create(this, resizing); } function __onRelease() { resizer.stopDragArrow(); mc.onMouseMove = undefined; finishResize(); } function __onReleaseOutside() { __onRelease(); resizer.hideArrow(); } function showArrowToMousePos() { resizer.setArrowRotation(arrowRotation); resizer.showArrowToMousePos(arrowRotation); } function startResize() { resizer.startResize(strategy); } function resizing() { resizer.resizing(strategy); } function finishResize() { resizer.finishResize(strategy); } }
Symbol 413 MovieClip [__Packages.org.aswing.resizer.ResizeStrategyImp] Frame 0
class org.aswing.resizer.ResizeStrategyImp implements org.aswing.resizer.ResizeStrategy { var wSign, hSign; function ResizeStrategyImp (wSign, hSign) { this.wSign = wSign; this.hSign = hSign; } function getBounds(com, movedX, movedY) { var _local2 = com.getBounds(); var _local8 = com.getMinimumSize(); var _local5 = com.getMaximumSize(); if (_local8 == undefined) { _local8 = new org.aswing.geom.Dimension(0, 0); } if (_local5 == undefined) { _local5 = new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE); } var _local7; var _local6; var _local3; var _local4; if (wSign == 0) { _local3 = _local2.width; } else { _local3 = _local2.width + (wSign * movedX); _local3 = Math.min(_local5.width, Math.max(_local8.width, _local3)); } if (wSign < 0) { _local7 = _local2.x + (_local2.width - _local3); } else { _local7 = _local2.x; } if (hSign == 0) { _local4 = _local2.height; } else { _local4 = _local2.height + (hSign * movedY); _local4 = Math.min(_local5.height, Math.max(_local8.height, _local4)); } if (hSign < 0) { _local6 = _local2.y + (_local2.height - _local4); } else { _local6 = _local2.y; } _local7 = Math.round(_local7); _local6 = Math.round(_local6); _local3 = Math.round(_local3); _local4 = Math.round(_local4); return(new org.aswing.geom.Rectangle(_local7, _local6, _local3, _local4)); } }
Symbol 414 MovieClip [__Packages.org.aswing.plaf.basic.frame.TitleBarLayout] Frame 0
class org.aswing.plaf.basic.frame.TitleBarLayout extends org.aswing.FlowLayout { static var instance; var getHgap, hgap, vgap; function TitleBarLayout () { super(org.aswing.FlowLayout.RIGHT, 4, 4); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.frame.TitleBarLayout(); } return(instance); } function getHorizontalGap() { return(getHgap()); } function fitSize(size) { size.change(ICON_TITLE_WIDTH, 0); size.height = Math.max(size.height, ICON_TITLE_HEIGHT); return(size); } function preferredLayoutSize(target) { var _local3 = new org.aswing.geom.Dimension(0, 0); var _local8 = target.getComponentCount(); var _local6 = 0; var _local2 = 0; while (_local2 < _local8) { var _local5 = target.getComponent(_local2); var _local4 = _local5.getPreferredSize(); _local3.height = Math.max(_local3.height, _local4.height); if (_local5.isVisible()) { if (_local6 > 0) { _local3.width = _local3.width + hgap; } _local3.width = _local3.width + _local4.width; _local6++; } _local2++; } var _local9 = target.getInsets(); _local3.width = _local3.width + ((_local9.left + _local9.right) + (hgap * 2)); _local3.height = _local3.height + ((_local9.top + _local9.bottom) + (vgap * 2)); return(fitSize(_local3)); } function minimumLayoutSize(target) { return(preferredLayoutSize(target)); } static var ICON_TITLE_WIDTH = 50; static var ICON_TITLE_HEIGHT = 20; }
Symbol 415 MovieClip [__Packages.org.aswing.JButton] Frame 0
class org.aswing.JButton extends org.aswing.AbstractButton { var setName, setModel, setUI; function JButton (text, icon) { super(text, icon); setName("JButton"); setModel(new org.aswing.DefaultButtonModel()); updateUI(); } function updateUI() { setUI(org.aswing.plaf.ButtonUI(org.aswing.UIManager.getUI(this))); } function getUIClassID() { return("ButtonUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.asw.ASWingButtonUI); } }
Symbol 416 MovieClip [__Packages.org.aswing.plaf.basic.frame.FrameResizer] Frame 0
class org.aswing.plaf.basic.frame.FrameResizer extends org.aswing.resizer.DefaultResizer { var setResizeArrowColor, setResizeArrowLightColor, setResizeArrowDarkColor; function FrameResizer () { super(); setResizeArrowColor(org.aswing.UIManager.getColor("Frame.resizeArrow")); setResizeArrowLightColor(org.aswing.UIManager.getColor("Frame.resizeArrowLight")); setResizeArrowDarkColor(org.aswing.UIManager.getColor("Frame.resizeArrowDark")); } }
Symbol 417 MovieClip [__Packages.org.aswing.plaf.basic.border.FrameBorder] Frame 0
class org.aswing.plaf.basic.border.FrameBorder implements org.aswing.border.Border, org.aswing.plaf.UIResource { var activeColor, inactiveColor; function FrameBorder () { activeColor = org.aswing.UIManager.getColor("Frame.activeCaptionBorder"); inactiveColor = org.aswing.UIManager.getColor("Frame.inactiveCaptionBorder"); } function paintBorder(c, g, bounds) { var _local5 = org.aswing.JFrame(c); var _local4 = (_local5.isActive() ? (activeColor) : (inactiveColor)); g.beginFill(new org.aswing.graphics.SolidBrush(new org.aswing.ASColor(_local4.getRGB(), 40))); g.roundRect(bounds.x, bounds.y + BAR, bounds.width, bounds.height - BAR, 4, 4, 0, 0); g.rectangle(bounds.x + BAR, (bounds.y + BAR) + 1, bounds.height - (BAR * 2), (bounds.height - BAR) - 2); g.endFill(); g.beginFill(new org.aswing.graphics.SolidBrush(_local4)); g.roundRect(bounds.x + BAR, bounds.y, bounds.width - (BAR * 2), bounds.height - BAR, 5, 5, 0, 0); g.roundRect((bounds.x + BAR) + 1, bounds.y + 1, (bounds.width - (BAR * 2)) - 2, (bounds.height - BAR) - 2, 5, 5, 0, 0); g.endFill(); g.beginFill(new org.aswing.graphics.SolidBrush(_local4.brighter(0.9))); g.roundRect((bounds.x + BAR) + 1, bounds.y + 1, (bounds.width - (BAR * 2)) - 2, (bounds.height - BAR) - 2, 5, 5, 0, 0); g.roundRect((bounds.x + BAR) + 2, bounds.y + 2, (bounds.width - (BAR * 2)) - 4, (bounds.height - BAR) - 4, 4, 4, 0, 0); g.endFill(); } function getBorderInsets(c, bounds) { return(new org.aswing.Insets(2, BAR + 2, BAR + 2, BAR + 2)); } function uninstallBorder(c) { } static var BAR = 2; }
Symbol 418 MovieClip [__Packages.org.aswing.plaf.basic.frame.TitleIcon] Frame 0
class org.aswing.plaf.basic.frame.TitleIcon implements org.aswing.Icon, org.aswing.plaf.UIResource { static var instance; function TitleIcon () { } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.frame.TitleIcon(); } return(instance); } function getIconWidth() { return(width + 2); } function getIconHeight() { return(height); } function paintIcon(com, g, x, y) { var _local8 = org.aswing.UIManager.getColor("Frame.activeCaptionBorder"); var _local9 = new org.aswing.ASColor(16777215); x = x + 2; var _local4 = width / 4; var _local5 = (2 * height) / 3; var _local6 = width / 2; var _local7 = height; var _local10 = width; var _local1 = new Array(); _local1.push(new org.aswing.geom.Point(x, y)); _local1.push(new org.aswing.geom.Point(x + _local4, y + _local7)); _local1.push(new org.aswing.geom.Point(x + _local6, y + _local5)); _local1.push(new org.aswing.geom.Point(x + (_local4 * 3), y + _local7)); _local1.push(new org.aswing.geom.Point(x + _local10, y)); _local1.push(new org.aswing.geom.Point(x + _local6, y + _local5)); g.drawPolygon(new org.aswing.graphics.Pen(_local8, 2), _local1); g.fillPolygon(new org.aswing.graphics.SolidBrush(_local9), _local1); } function uninstallIcon(com) { } static var width = 16; static var height = 12; }
Symbol 419 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameIcon] Frame 0
class org.aswing.plaf.basic.icon.FrameIcon implements org.aswing.Icon, org.aswing.plaf.UIResource { var width, height, color; function FrameIcon (width) { this.width = width; height = width; color = org.aswing.UIManager.getColor("Frame.activeCaptionText"); } function getColor() { return(color); } function getIconWidth() { return(width); } function getIconHeight() { return(height); } function paintIcon(com, g, x, y) { } function uninstallIcon(com) { } static var DEFAULT_ICON_WIDTH = 13; }
Symbol 420 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameIconifiedIcon] Frame 0
class org.aswing.plaf.basic.icon.FrameIconifiedIcon extends org.aswing.plaf.basic.icon.FrameIcon { var width, getColor; function FrameIconifiedIcon () { super(org.aswing.plaf.basic.icon.FrameIcon.DEFAULT_ICON_WIDTH); } function paintIcon(com, g, x, y) { var _local3 = width / 2; var _local2 = _local3 / 3; g.fillRectangle(new org.aswing.graphics.SolidBrush(getColor()), x + _local2, (y + _local3) + _local2, _local3, _local2); } }
Symbol 421 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameNormalIcon] Frame 0
class org.aswing.plaf.basic.icon.FrameNormalIcon extends org.aswing.plaf.basic.icon.FrameIcon { var width, getColor; function FrameNormalIcon () { super(org.aswing.plaf.basic.icon.FrameIcon.DEFAULT_ICON_WIDTH); } function paintIcon(com, g, x, y) { var _local2 = width / 2; var _local4 = new org.aswing.graphics.SolidBrush(getColor()); g.beginFill(_local4); g.rectangle((x + (_local2 / 2)) + 1, (y + (_local2 / 4)) + 0.5, _local2, _local2); g.rectangle(((x + (_local2 / 2)) + 0.5) + 1, ((y + (_local2 / 4)) + 1.5) + 0.5, _local2 - 1, _local2 - 2); g.endFill(); g.beginFill(_local4); g.rectangle(x + (_local2 / 4), (y + (_local2 / 2)) + 1.5, _local2, _local2); g.rectangle((x + (_local2 / 4)) + 0.5, ((y + (_local2 / 2)) + 1.5) + 1.5, _local2 - 1, _local2 - 2); g.endFill(); } }
Symbol 422 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameMaximizeIcon] Frame 0
class org.aswing.plaf.basic.icon.FrameMaximizeIcon extends org.aswing.plaf.basic.icon.FrameIcon { var width, getColor; function FrameMaximizeIcon () { super(org.aswing.plaf.basic.icon.FrameIcon.DEFAULT_ICON_WIDTH); } function paintIcon(com, g, x, y) { var _local2 = width / 1.5; var _local4 = new org.aswing.graphics.SolidBrush(getColor()); g.beginFill(_local4); g.rectangle(x + (_local2 / 4), y + (_local2 / 4), _local2, _local2); g.rectangle((x + (_local2 / 4)) + 1, (y + (_local2 / 4)) + 2, _local2 - 2, _local2 - 3); g.endFill(); } }
Symbol 423 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameCloseIcon] Frame 0
class org.aswing.plaf.basic.icon.FrameCloseIcon extends org.aswing.plaf.basic.icon.FrameIcon { var width, getColor; function FrameCloseIcon () { super(org.aswing.plaf.basic.icon.FrameIcon.DEFAULT_ICON_WIDTH); } function paintIcon(com, g, x, y) { var _local2 = width / 2; g.drawLine(new org.aswing.graphics.Pen(getColor(), _local2 / 3), x + ((width - _local2) / 2), y + ((width - _local2) / 2), x + ((width + _local2) / 2), y + ((width + _local2) / 2)); g.drawLine(new org.aswing.graphics.Pen(getColor(), _local2 / 3), x + ((width - _local2) / 2), y + ((width + _local2) / 2), x + ((width + _local2) / 2), y + ((width - _local2) / 2)); } }
Symbol 424 MovieClip [__Packages.org.aswing.border.DecorateBorder] Frame 0
class org.aswing.border.DecorateBorder implements org.aswing.border.Border { var interior; function DecorateBorder (interior) { this.interior = interior; } function setInterior(interior) { this.interior = interior; } function getInterior(Void) { return(interior); } function paintBorderImp(com, g, bounds) { } function uninstallBorderImp(com) { } function getBorderInsetsImp(c, bounds) { return(new org.aswing.Insets()); } function paintBorder(c, g, bounds) { paintBorderImp(c, g, bounds); if (getInterior() != null) { var _local4 = getBorderInsetsImp(c, bounds).getInsideBounds(bounds); getInterior().paintBorder(c, g, _local4); } } function uninstallBorder(c) { uninstallBorderImp(c); if (getInterior() != null) { getInterior().uninstallBorder(c); } } function getBorderInsets(c, bounds) { var _local2 = getBorderInsetsImp(c, bounds); if (getInterior() != null) { var _local3 = _local2.getInsideBounds(bounds); _local2.addInsets(getInterior().getBorderInsets(c, _local3)); } return(_local2); } }
Symbol 425 MovieClip [__Packages.org.aswing.border.LineBorder] Frame 0
class org.aswing.border.LineBorder extends org.aswing.border.DecorateBorder { var color, thickness, round; function LineBorder (interior, color, thickness, round) { super(interior); this.color = ((color == undefined) ? (org.aswing.ASColor.__get__BLACK()) : (color)); this.thickness = ((thickness == undefined) ? 1 : (thickness)); this.round = ((round == undefined) ? 0 : (round)); this.round = Math.max(0, this.round); } function paintBorderImp(c, g, b) { var _local3 = thickness; if (round <= 0) { g.drawRectangle(new org.aswing.graphics.Pen(color, thickness), b.x + (_local3 / 2), b.y + (_local3 / 2), b.width - _local3, b.height - _local3); } else { g.fillRoundRectRingWithThickness(new org.aswing.graphics.SolidBrush(color), b.x, b.y, b.width, b.height, round, _local3); } } function getBorderInsetsImp(c, bounds) { var _local2 = Math.ceil((thickness + round) - (round * 0.707106781186547)); return(new org.aswing.Insets(_local2, _local2, _local2, _local2)); } function getColor() { return(color); } function setColor(color) { this.color = color; } function getThickness() { return(thickness); } function setThickness(thickness) { this.thickness = thickness; } function getRound() { return(round); } function setRound(round) { this.round = round; } }
Symbol 426 MovieClip [__Packages.org.aswing.plaf.basic.border.ToolTipBorder] Frame 0
class org.aswing.plaf.basic.border.ToolTipBorder extends org.aswing.border.LineBorder implements org.aswing.plaf.UIResource { static var instance; function ToolTipBorder (color) { super(null, color, 1); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.border.ToolTipBorder(org.aswing.UIManager.getColor("ToolTip.borderColor")); } return(instance); } }
Symbol 427 MovieClip [__Packages.org.aswing.plaf.basic.border.TextBorder] Frame 0
class org.aswing.plaf.basic.border.TextBorder implements org.aswing.border.Border, org.aswing.plaf.UIResource { var shadow, darkShadow, highlight, lightHighlight; function TextBorder (shadow, darkShadow, light, highlight) { var _local2 = org.aswing.UIManager.getLookAndFeelDefaults(); this.shadow = shadow; this.darkShadow = darkShadow; this.highlight = highlight; lightHighlight = light; } function paintBorder(c, g, r) { var _local3 = r.x; var _local2 = r.y; var _local6 = r.width; var _local5 = r.height; var _local7 = org.aswing.JTextComponent(c); if (_local7.isEditable() && (_local7.isEnabled())) { g.drawRectangle(new org.aswing.graphics.Pen(highlight, 1), _local3 + 0.5, _local2 + 0.5, _local6 - 1, _local5 - 1); } g.drawRectangle(new org.aswing.graphics.Pen(lightHighlight, 1), _local3 + 1.5, _local2 + 1.5, _local6 - 3, _local5 - 3); } function getBorderInsets(c, bounds) { return(new org.aswing.Insets(2, 2, 2, 2)); } function uninstallBorder(c) { } }
Symbol 428 MovieClip [__Packages.org.aswing.plaf.basic.border.TextFieldBorder] Frame 0
class org.aswing.plaf.basic.border.TextFieldBorder extends org.aswing.plaf.basic.border.TextBorder { static var instance; function TextFieldBorder (shadow, darkShadow, light, highlight) { super(shadow, darkShadow, light, highlight); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.border.TextFieldBorder(org.aswing.UIManager.getColor("TextField.shadow"), org.aswing.UIManager.getColor("TextField.darkShadow"), org.aswing.UIManager.getColor("TextField.light"), org.aswing.UIManager.getColor("TextField.highlight")); } return(instance); } }
Symbol 429 MovieClip [__Packages.org.aswing.plaf.basic.border.TextAreaBorder] Frame 0
class org.aswing.plaf.basic.border.TextAreaBorder extends org.aswing.plaf.basic.border.TextBorder { static var instance; function TextAreaBorder (shadow, darkShadow, light, lighlight) { super(shadow, darkShadow, light, lighlight); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.border.TextAreaBorder(org.aswing.UIManager.getColor("TextArea.shadow"), org.aswing.UIManager.getColor("TextArea.darkShadow"), org.aswing.UIManager.getColor("TextArea.light"), org.aswing.UIManager.getColor("TextArea.highlight")); } return(instance); } }
Symbol 430 MovieClip [__Packages.org.aswing.border.BevelBorder] Frame 0
class org.aswing.border.BevelBorder extends org.aswing.border.DecorateBorder { var bevelType, highlightOuter, highlightInner, shadowOuter, shadowInner, thickness; function BevelBorder (interior, bevelType, highlightOuterColor, highlightInnerColor, shadowOuterColor, shadowInnerColor, thickness) { super(interior); this.bevelType = bevelType; if ((highlightInnerColor != undefined) && (shadowOuterColor == undefined)) { highlightOuter = highlightOuterColor.brighter(); highlightInner = highlightOuterColor; shadowOuter = shadowOuterColor; shadowInner = shadowOuterColor.brighter(); } else { highlightOuter = highlightOuterColor; highlightInner = highlightInnerColor; shadowOuter = shadowOuterColor; shadowInner = shadowInnerColor; } if (thickness == undefined) { thickness = 2; } this.thickness = thickness; } function paintBorderImp(c, g, b) { if (bevelType == RAISED) { paintRaisedBevel(c, g, b.x, b.y, b.width, b.height); } else { paintLoweredBevel(c, g, b.x, b.y, b.width, b.height); } } function getBorderInsetsImp(c, bounds) { return(new org.aswing.Insets(thickness, thickness, thickness, thickness)); } function setThickness(t) { thickness = t; } function getThickness() { return(thickness); } function getHighlightOuterColorWith(c) { var _local2 = getHighlightOuterColor(); if (_local2 == undefined) { _local2 = c.getBackground().brighter().brighter(); } return(_local2); } function getHighlightInnerColorWith(c) { var _local2 = getHighlightInnerColor(); if (_local2 == undefined) { _local2 = c.getBackground().brighter(); } return(_local2); } function getShadowInnerColorWith(c) { var _local2 = getShadowInnerColor(); if (_local2 == undefined) { _local2 = c.getBackground().darker(); } return(_local2); } function getShadowOuterColorWith(c) { var _local2 = getShadowOuterColor(); if (_local2 == undefined) { _local2 = c.getBackground().darker().darker(); } return(_local2); } function setHighlightOuterColor(color) { highlightOuter = color; } function getHighlightOuterColor() { return(highlightOuter); } function setHighlightInnerColor(color) { highlightInner = color; } function getHighlightInnerColor() { return(highlightInner); } function setShadowInnerColor(color) { shadowInner = color; } function getShadowInnerColor() { return(shadowInner); } function setShadowOuterColor(color) { shadowOuter = color; } function getShadowOuterColor() { return(shadowOuter); } function setBevelType(bevelType) { this.bevelType = bevelType; } function getBevelType() { return(bevelType); } function paintRaisedBevel(c, g, x, y, width, height) { var _local6 = height; var _local7 = width; var _local2 = thickness / 2; x = x + (_local2 / 2); y = y + (_local2 / 2); _local7 = _local7 - _local2; _local6 = _local6 - _local2; var _local5 = new org.aswing.graphics.AdvancedPen(getHighlightOuterColorWith(c), _local2, undefined, "normal", "square", "miter"); g.drawLine(_local5, x, y, x, (y + _local6) - (1 * _local2)); g.drawLine(_local5, x + (1 * _local2), y, (x + _local7) - (1 * _local2), y); _local5.setASColor(getHighlightInnerColorWith(c)); g.drawLine(_local5, x + (1 * _local2), y + (1 * _local2), x + (1 * _local2), (y + _local6) - (2 * _local2)); g.drawLine(_local5, x + (2 * _local2), y + (1 * _local2), (x + _local7) - (2 * _local2), y + (1 * _local2)); _local5.setASColor(getShadowOuterColorWith(c)); g.drawLine(_local5, x, (y + _local6) - (0 * _local2), (x + _local7) - (0 * _local2), (y + _local6) - (0 * _local2)); g.drawLine(_local5, (x + _local7) - (0 * _local2), y, (x + _local7) - (0 * _local2), (y + _local6) - (1 * _local2)); _local5.setASColor(getShadowInnerColorWith(c)); g.drawLine(_local5, x + (1 * _local2), (y + _local6) - (1 * _local2), (x + _local7) - (1 * _local2), (y + _local6) - (1 * _local2)); g.drawLine(_local5, (x + _local7) - (1 * _local2), y + (1 * _local2), (x + _local7) - (1 * _local2), (y + _local6) - (2 * _local2)); } function paintLoweredBevel(c, g, x, y, width, height) { var _local6 = height; var _local7 = width; var _local2 = thickness / 2; x = x + (_local2 / 2); y = y + (_local2 / 2); _local7 = _local7 - _local2; _local6 = _local6 - _local2; var _local5 = new org.aswing.graphics.AdvancedPen(getShadowInnerColorWith(c), _local2, undefined, "normal", "square", "miter"); g.drawLine(_local5, x, y, x, (y + _local6) - (1 * _local2)); g.drawLine(_local5, x + (1 * _local2), y, (x + _local7) - (1 * _local2), y); _local5.setASColor(getShadowOuterColorWith(c)); g.drawLine(_local5, x + (1 * _local2), y + (1 * _local2), x + (1 * _local2), (y + _local6) - (2 * _local2)); g.drawLine(_local5, x + (2 * _local2), y + (1 * _local2), (x + _local7) - (2 * _local2), y + (1 * _local2)); _local5.setASColor(getHighlightOuterColorWith(c)); g.drawLine(_local5, x, (y + _local6) - (0 * _local2), (x + _local7) - (0 * _local2), (y + _local6) - (0 * _local2)); g.drawLine(_local5, (x + _local7) - (0 * _local2), y, (x + _local7) - (0 * _local2), (y + _local6) - (1 * _local2)); _local5.setASColor(getHighlightInnerColorWith(c)); g.drawLine(_local5, x + (1 * _local2), (y + _local6) - (1 * _local2), (x + _local7) - (1 * _local2), (y + _local6) - (1 * _local2)); g.drawLine(_local5, (x + _local7) - (1 * _local2), y + (1 * _local2), (x + _local7) - (1 * _local2), (y + _local6) - (2 * _local2)); } static var RAISED = 0; static var LOWERED = 1; }
Symbol 431 MovieClip [__Packages.org.aswing.plaf.basic.border.ComboBoxBorder] Frame 0
class org.aswing.plaf.basic.border.ComboBoxBorder extends org.aswing.border.BevelBorder implements org.aswing.plaf.UIResource { static var instance; var bevelType; function ComboBoxBorder () { super(null, org.aswing.border.BevelBorder.LOWERED, org.aswing.UIManager.getColor("ComboBox.light"), org.aswing.UIManager.getColor("ComboBox.highlight"), org.aswing.UIManager.getColor("ComboBox.darkShadow"), org.aswing.UIManager.getColor("ComboBox.shadow")); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.border.ComboBoxBorder(); } return(instance); } function paintBorderImp(c, g, b) { var _local3 = org.aswing.JComboBox(c); if (_local3.isEditable()) { bevelType = org.aswing.border.BevelBorder.LOWERED; } else { bevelType = org.aswing.border.BevelBorder.RAISED; } super.paintBorderImp(c, g, b); } }
Symbol 432 MovieClip [__Packages.org.aswing.JComboBox] Frame 0
class org.aswing.JComboBox extends org.aswing.Container { var setName, maximumRowCount, editable, editor, ui, addEventListener, popupList, getFont, editorLisenter, remove, append, revalidate, isEnabled, repaint, getComponentCount, getComponent, fireActionEvent; function JComboBox (listData) { super(); setName("JComboBox"); maximumRowCount = 7; editable = false; setEditor(new org.aswing.DefaultComboBoxEditor()); if (listData != undefined) { if (listData instanceof org.aswing.ListModel) { setModel(org.aswing.ListModel(listData)); } else { var _local4 = listData; if (_local4 instanceof Array) { setListData(_local4); } else { setListData(null); } } } updateUI(); } function setUI(ui) { super.setUI(ui); } function updateUI() { getPopupList().updateUI(); editor.getEditorComponent().updateUI(); setUI(org.aswing.plaf.ComboBoxUI(org.aswing.UIManager.getUI(this))); } function getUIClassID() { return("ComboBoxUI"); } function getUI() { return(org.aswing.plaf.ComboBoxUI(ui)); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicComboBoxUI); } function addActionListener(func, obj) { return(addEventListener(org.aswing.EventDispatcher.ON_ACT, func, obj)); } function getPopupList() { if (popupList == null) { popupList = new org.aswing.overflow.JList(); popupList.setFont(getFont()); } return(popupList); } function setMaximumRowCount(count) { maximumRowCount = count; } function getMaximumRowCount() { return(maximumRowCount); } function getListCellFactory() { return(getPopupList().getCellFactory()); } function setListCellFactory(newFactory) { getPopupList().setCellFactory(newFactory); } function setEditor(anEditor) { if (anEditor == null) { return(undefined); } var _local2 = editor; if (_local2 != null) { _local2.removeEventListener(editorLisenter); remove(_local2.getEditorComponent()); } editor = anEditor; editor.setEditable(isEditable()); append(editor.getEditorComponent()); editor.getEditorComponent().setFont(getFont()); editorLisenter = editor.addActionListener(__editorActed, this); revalidate(); } function getEditor() { return(editor); } function setFont(newFont) { super.setFont(newFont); getPopupList().setFont(newFont); getEditor().getEditorComponent().setFont(newFont); } function setEditable(aFlag) { editable = aFlag; getEditor().setEditable(aFlag); } function isEditable() { return(editable); } function setEnabled(b) { if (b != isEnabled()) { repaint(); } super.setEnabled(b); var _local3 = 0; while (_local3 < getComponentCount()) { var _local4 = getComponent(_local3); if (_local4 == getEditor().getEditorComponent()) { getEditor().setEditable(b && (isEditable())); } else { _local4.setEnabled(b); } _local3++; } } function setListData(ld) { getPopupList().setListData(ld); } function setModel(m) { getPopupList().setModel(m); } function getModel() { return(getPopupList().getModel()); } function showPopup() { setPopupVisible(true); } function hidePopup() { setPopupVisible(false); } function setPopupVisible(v) { getUI().setPopupVisible(this, v); } function isPopupVisible() { return(getUI().isPopupVisible(this)); } function setSelectedItem(anObject) { getEditor().setValue(anObject); var _local2 = indexInModel(anObject); if (_local2 >= 0) { getPopupList().setSelectedIndex(_local2); getPopupList().ensureIndexIsVisible(_local2); } getEditor().selectAll(); fireActionEvent(); } function getSelectedItem() { return(getEditor().getValue()); } function setSelectedIndex(anIndex) { var _local3 = getModel().getSize(); if ((anIndex < 0) || (anIndex >= _local3)) { getEditor().setValue(null); } else { getEditor().setValue(getModel().getElementAt(anIndex)); getPopupList().setSelectedIndex(anIndex); getPopupList().ensureIndexIsVisible(anIndex); } fireActionEvent(); } function getSelectedIndex() { return(indexInModel(getEditor().getValue())); } function getItemCount() { return(getModel().getSize()); } function getItemAt(index) { return(getModel().getElementAt(index)); } function __editorActed() { setSelectedItem(getEditor().getValue()); } function indexInModel(value) { var _local3 = getModel(); var _local4 = _local3.getSize(); var _local2 = 0; while (_local2 < _local4) { if (_local3.getElementAt(_local2) == value) { return(_local2); } _local2++; } return(-1); } }
Symbol 433 MovieClip [__Packages.org.aswing.ComboBoxEditor] Frame 0
interface org.aswing.ComboBoxEditor extends org.aswing.IEventDispatcher { }
Symbol 434 MovieClip [__Packages.org.aswing.ChildrenMaskedContainer] Frame 0
class org.aswing.ChildrenMaskedContainer extends org.aswing.Container { var children_mc, target_mc, children_mask_mc, clipMasked, clip_mc; function ChildrenMaskedContainer () { super(); } function create() { super.create(); children_mc = org.aswing.Component.__get__creater().createMC(target_mc, "children_mc"); children_mask_mc = org.aswing.Component.__get__creater().createMC(target_mc, "children_mask_mc"); } function initialize() { super.initialize(); var _local3 = new org.aswing.graphics.Graphics(children_mask_mc); _local3.fillRectangle(new org.aswing.graphics.SolidBrush(0, 100), 0, 0, 1, 1); children_mc.setMask(children_mask_mc); setClipMasked(clipMasked); } function paint(b) { children_mask_mc._x = b.x; children_mask_mc._y = b.y; children_mask_mc._width = b.width; children_mask_mc._height = b.height; super.paint(b); } function clearChildrenGraphics() { children_mc.clear(); } function getChildrenGraphics() { return(new org.aswing.graphics.Graphics(children_mc)); } function createChildMC(nameStart) { return(org.aswing.Component.__get__creater().createMC(children_mc, nameStart)); } function setClipMasked(m) { clipMasked = m; clip_mc._visible = clipMasked; children_mask_mc._visible = clipMasked; if (clipMasked) { target_mc.setMask(clip_mc); children_mc.setMask(children_mask_mc); } else { target_mc.setMask(null); children_mc.setMask(null); } } }
Symbol 435 MovieClip [__Packages.org.aswing.Viewportable] Frame 0
interface org.aswing.Viewportable extends org.aswing.IEventDispatcher { }
Symbol 436 MovieClip [__Packages.org.aswing.event.ListDataListener] Frame 0
interface org.aswing.event.ListDataListener { }
Symbol 437 MovieClip [__Packages.org.aswing.event.ListDataEvent] Frame 0
class org.aswing.event.ListDataEvent extends org.aswing.Event { var index0, index1, removedItems; function ListDataEvent (source, type, index0, index1, removedItems) { super(source, type); this.index0 = index0; this.index1 = index1; this.removedItems = removedItems.concat(); } function getType() { return(super.getType()); } function getIndex0() { return(index0); } function getIndex1() { return(index1); } function getRemovedItems() { return(removedItems.concat()); } function toString() { return(((((("ListDataEvent[type=" + getType()) + ",index0=") + index0) + ",index1=") + index1) + "]"); } static var CONTENTS_CHANGED = "CONTENTS_CHANGED"; static var INTERVAL_ADDED = "INTERVAL_ADDED"; static var INTERVAL_REMOVED = "INTERVAL_REMOVED"; }
Symbol 438 MovieClip [__Packages.org.aswing.ListSelectionModel] Frame 0
interface org.aswing.ListSelectionModel extends org.aswing.IEventDispatcher { }
Symbol 439 MovieClip [__Packages.org.aswing.DefaultListSelectionModel] Frame 0
class org.aswing.DefaultListSelectionModel extends org.aswing.EventDispatcher implements org.aswing.ListSelectionModel { var value, minIndex, maxIndex, anchorIndex, leadIndex, selectionMode, addEventListener, dispatchEvent, createEventObj; function DefaultListSelectionModel () { super(); value = []; minIndex = MAX; maxIndex = MIN; anchorIndex = -1; leadIndex = -1; selectionMode = MULTIPLE_SELECTION; } function setSelectionInterval(index0, index1) { if ((index0 < 0) || (index1 < 0)) { return(undefined); } if (getSelectionMode() == SINGLE_SELECTION) { index0 = index1; } updateLeadAnchorIndices(index0, index1); var _local4 = Math.min(index0, index1); var _local3 = Math.max(index0, index1); var _local5 = false; if ((_local4 == minIndex) && (_local3 == maxIndex)) { var _local2 = _local4; while (_local2 <= _local3) { if (value[_local2] != true) { _local5 = true; break; } _local2++; } } else { _local5 = true; } if (_local5) { minIndex = _local4; maxIndex = _local3; clearSelectionImp(); var _local2 = minIndex; while (_local2 <= maxIndex) { value[_local2] = true; _local2++; } fireListSelectionEvent(_local4, _local3); } } function addSelectionInterval(index0, index1) { if ((index0 < 0) || (index1 < 0)) { return(undefined); } if (getSelectionMode() == SINGLE_SELECTION) { setSelectionInterval(index0, index1); return(undefined); } updateLeadAnchorIndices(index0, index1); var _local4 = Math.min(index0, index1); var _local3 = Math.max(index0, index1); var _local5 = false; var _local2 = _local4; while (_local2 <= _local3) { if (value[_local2] != true) { value[_local2] = true; _local5 = true; } _local2++; } minIndex = Math.min(_local4, minIndex); maxIndex = Math.max(_local3, maxIndex); if (_local5) { fireListSelectionEvent(_local4, _local3); } } function removeSelectionInterval(index0, index1) { if ((index0 < 0) || (index1 < 0)) { return(undefined); } var _local4 = Math.min(index0, index1); var _local3 = Math.max(index0, index1); _local4 = Math.max(_local4, minIndex); _local3 = Math.min(_local3, maxIndex); if (_local4 > _local3) { return(undefined); } updateLeadAnchorIndices(index0, index1); if ((_local4 == minIndex) && (_local3 == maxIndex)) { clearSelection(); return(undefined); } if ((_local4 > minIndex) && (_local3 < maxIndex)) { } else if ((_local4 > minIndex) && (_local3 == maxIndex)) { maxIndex = _local4 - 1; } else { minIndex = _local3 + 1; } var _local2 = _local4; while (_local2 <= _local3) { value[_local2] = undefined; _local2++; } fireListSelectionEvent(_local4, _local3); } function getMinSelectionIndex() { if (isSelectionEmpty()) { return(-1); } return(minIndex); } function getMaxSelectionIndex() { return(maxIndex); } function isSelectedIndex(index) { return(value[index] == true); } function updateLeadAnchorIndices(anchor, lead) { anchorIndex = anchor; leadIndex = lead; } function getAnchorSelectionIndex() { return(anchorIndex); } function setAnchorSelectionIndex(index) { anchorIndex = index; } function getLeadSelectionIndex() { return(leadIndex); } function setLeadSelectionIndex(index) { leadIndex = index; } function clearSelection() { if (!isSelectionEmpty()) { var _local2 = maxIndex; minIndex = MAX; maxIndex = MIN; clearSelectionImp(); fireListSelectionEvent(0, _local2); } } function clearSelectionImp() { value = []; } function isSelectionEmpty() { return(minIndex > maxIndex); } function insertIndexInterval(index, length, before) { var _local2 = (before ? (index) : (index + 1)); var _local9 = (_local2 + length) - 1; var _local6 = false; if (isSelectionEmpty()) { } else if (minIndex >= _local2) { minIndex = minIndex + length; maxIndex = maxIndex + length; _local6 = true; } else if (maxIndex < _local2) { } else if ((_local2 > minIndex) && (_local2 <= maxIndex)) { maxIndex = maxIndex + length; _local6 = true; } if (_local6) { if (_local2 == 0) { value = new Array(length).concat(value); } else { var _local10 = value.splice(_local2); value = value.concat(new Array(length)).concat(_local10); } } var _local4 = leadIndex; if ((_local4 > index) || (before && (_local4 == index))) { _local4 = leadIndex + length; } var _local5 = anchorIndex; if ((_local5 > index) || (before && (_local5 == index))) { _local5 = anchorIndex + length; } if ((_local4 != leadIndex) || (_local5 != anchorIndex)) { updateLeadAnchorIndices(_local5, _local4); } if (_local6) { fireListSelectionEvent(_local2, _local9 + length); } } function removeIndexInterval(index0, index1) { var _local3 = Math.min(index0, index1); var _local5 = Math.max(index0, index1); var _local4 = (_local5 - _local3) + 1; var _local8 = true; if (isSelectionEmpty()) { _local8 = false; } else if ((minIndex >= _local3) && (maxIndex <= _local5)) { minIndex = MAX; maxIndex = MIN; clearSelectionImp(); } else if (maxIndex < _local3) { value.splice(_local3, _local4); } else if (minIndex > _local5) { value.splice(_local3, _local4); minIndex = minIndex - _local4; maxIndex = maxIndex - _local4; } else if (((minIndex < _local3) && (maxIndex >= _local3)) && (maxIndex <= _local5)) { value.splice(_local3, _local4); var _local2 = _local3 - 1; while (_local2 >= minIndex) { maxIndex = _local2; if (value[_local2] == true) { break; } _local2--; } } else if ((minIndex >= _local3) && (maxIndex > _local5)) { value.splice(_local3, _local4); maxIndex = maxIndex - _local4; var _local2 = _local3 - 1; while (_local2 <= maxIndex) { minIndex = _local2; if (value[_local2] == true) { break; } _local2++; } } else if ((minIndex < _local3) && (maxIndex > _local5)) { value.splice(_local3, _local4); maxIndex = maxIndex - _local4; } else { _local8 = false; } var _local6 = leadIndex; if ((_local6 == 0) && (_local3 == 0)) { } else if (_local6 > _local5) { _local6 = leadIndex - _local4; } else if (_local6 >= _local3) { _local6 = _local3 - 1; } var _local7 = anchorIndex; if ((_local7 == 0) && (_local3 == 0)) { } else if (_local7 > _local5) { _local7 = anchorIndex - _local4; } else if (_local7 >= _local3) { _local7 = _local3 - 1; } if ((_local6 != leadIndex) || (_local7 != anchorIndex)) { updateLeadAnchorIndices(_local7, _local6); } if (_local8) { fireListSelectionEvent(_local3, _local5 + _local4); } } function setSelectionMode(selectionMode) { this.selectionMode = selectionMode; } function getSelectionMode() { return(selectionMode); } function addListSelectionListener(func, obj) { return(addEventListener(ON_SELECTION_CHANGED, func, obj)); } function fireListSelectionEvent(firstIndex, lastIndex) { dispatchEvent(createEventObj(ON_SELECTION_CHANGED, firstIndex, lastIndex)); } function toString() { return("DefaultListSelectionModel[]"); } static var SINGLE_SELECTION = 0; static var MULTIPLE_SELECTION = 1; static var ON_SELECTION_CHANGED = "onSelectionChanged"; static var MIN = -1; static var MAX = Number.MAX_VALUE; }
Symbol 440 MovieClip [__Packages.org.aswing.dnd.DropMotion] Frame 0
interface org.aswing.dnd.DropMotion { }
Symbol 441 MovieClip [__Packages.org.aswing.dnd.DirectlyRemoveMotion] Frame 0
class org.aswing.dnd.DirectlyRemoveMotion implements org.aswing.dnd.DropMotion { function DirectlyRemoveMotion () { } function startMotionAndLaterRemove(dragInitiator, dragMC) { dragMC.removeMovieClip(); } }
Symbol 442 MovieClip [__Packages.org.aswing.dnd.RejectedMotion] Frame 0
class org.aswing.dnd.RejectedMotion implements org.aswing.dnd.DropMotion { var timer, dragMC, initiatorPos; function RejectedMotion () { timer = new org.aswing.util.EnterFrameImpulser(1); timer.addActionListener(__enterFrame, this); } function startNewMotion(dragInitiator, dragMC) { this.dragMC = dragMC; initiatorPos = dragInitiator.getGlobalLocation(); if (initiatorPos == null) { initiatorPos = new org.aswing.geom.Point(); } timer.start(); } function startMotionAndLaterRemove(dragInitiator, dragMC) { var _local1 = new org.aswing.dnd.RejectedMotion(); _local1.startNewMotion(dragInitiator, dragMC); } function __enterFrame() { if (!org.aswing.util.MCUtils.isMovieClipExist(dragMC)) { timer.stop(); return(undefined); } var _local3 = 0.25; var _local2 = new org.aswing.geom.Point(dragMC._x, dragMC._y); dragMC._parent.localToGlobal(_local2); _local2.x = _local2.x + ((initiatorPos.x - _local2.x) * _local3); _local2.y = _local2.y + ((initiatorPos.y - _local2.y) * _local3); if (_local2.distance(initiatorPos) < 1) { dragMC.removeMovieClip(); timer.stop(); return(undefined); } dragMC._parent.globalToLocal(_local2); dragMC._alpha = dragMC._alpha + ((4 - dragMC._alpha) * _local3); dragMC._x = _local2.x; dragMC._y = _local2.y; } }
Symbol 443 MovieClip [__Packages.org.aswing.util.EnterFrameImpulser] Frame 0
class org.aswing.util.EnterFrameImpulser extends org.aswing.util.AbstractImpulser implements org.aswing.util.Impulser { var isInitalFire, tickCount, listener, getInitialDelay, repeats, fireActionEvent, getDelay; function EnterFrameImpulser (delay, repeats) { super(delay, repeats); } function start() { isInitalFire = true; tickCount = 0; listener = org.aswing.util.EnterFrameEventDispatcher.addEventListener(onEnterFrame, this); } function isRunning() { return(listener != null); } function stop() { org.aswing.util.EnterFrameEventDispatcher.removeEventListener(listener); delete listener; listener = null; } function restart() { stop(); start(); } function onEnterFrame() { if (isInitalFire && (tickCount >= getInitialDelay())) { isInitalFire = false; if (repeats) { tickCount = 0; } else { stop(); } fireActionEvent(); } else if ((!isInitalFire) && (tickCount >= getDelay())) { fireActionEvent(); tickCount = 0; } tickCount++; } }
Symbol 444 MovieClip [__Packages.org.aswing.util.EnterFrameEventDispatcher] Frame 0
class org.aswing.util.EnterFrameEventDispatcher { static var instance; var dispatcher, tickerMC; function EnterFrameEventDispatcher () { dispatcher = new org.aswing.EventDispatcher(); if (tickerMC == null) { tickerMC = org.aswing.ElementCreater.getInstance().createMC(_root); tickerMC.onEnterFrame = org.aswing.util.Delegate.create(this, onEnterFrame); } } static function getInstance() { if (instance == null) { instance = new org.aswing.util.EnterFrameEventDispatcher(); } return(instance); } static function addEventListener(funcOrLis, obj) { return(((funcOrLis instanceof Function) ? (getInstance().dispatcher.addEventListener(ON_ENTER_FRAME, funcOrLis, obj)) : (getInstance().dispatcher.addEventListener(funcOrLis)))); } static function removeEventListener(listener) { getInstance().dispatcher.removeEventListener(listener); } function onEnterFrame() { dispatcher.dispatchEvent(new org.aswing.Event(org.aswing.util.EnterFrameEventDispatcher, ON_ENTER_FRAME)); } static var ON_ENTER_FRAME = "onEnterFrame"; }
Symbol 445 MovieClip [__Packages.org.aswing.dnd.DragManager] Frame 0
class org.aswing.dnd.DragManager { static var s_dragInitiator, s_sourceData, s_dragImage, s_dragListener, dragProxyMC, mouseOffset, enteredComponent, dropMotion; function DragManager () { } static function startDrag(dragInitiator, sourceData, dragImage, dragListener) { if (s_isDragging) { trace("/e/The last dragging action is not finished, can't start a new one!"); throw new Error("/The last dragging action is not finished, can't start a new one!"); return(undefined); } if (dragImage == undefined) { dragImage = new org.aswing.dnd.DefaultDragImage(dragInitiator); } s_isDragging = true; s_dragInitiator = dragInitiator; s_sourceData = sourceData; s_dragImage = dragImage; s_dragListener = dragListener; if (s_dragListener != null) { addDragListener(s_dragListener); } var _local2 = dragInitiator.getRootAncestorMovieClip(); dragProxyMC.removeMovieClip(); dragProxyMC = org.aswing.ElementCreater.getInstance().createMCWithName(_local2, "_aswing_drag_image_"); var _local5 = dragInitiator.getGlobalLocation(); var _local1 = _local5.clone(); _local2.globalToLocal(_local1); dragProxyMC._x = _local1.x; dragProxyMC._y = _local1.y; dragImage.setCanvas(dragProxyMC); mouseOffset = new org.aswing.geom.Point(_local2._xmouse - _local1.x, _local2._ymouse - _local1.y); fireDragStartEvent(s_dragInitiator, s_sourceData, _local5); enteredComponent = null; dragProxyMC.startDrag(false); dragProxyMC.stopDrag(); s_dragImage.switchToRejectImage(); onMouseMove(); Mouse.removeListener(org.aswing.dnd.DragManager); Mouse.addListener(org.aswing.dnd.DragManager); } static function addDragListener(lis) { listeners.push(lis); } static function removeDragListener(lis) { org.aswing.util.ArrayUtils.removeFromArray(listeners, lis); } static function setDropMotion(motion) { if (motion == null) { motion = DEFAULT_DROP_MOTION; } dropMotion = motion; } static function getCurrentDragImage() { return(s_dragImage); } static function getCurrentDropTarget() { return(getDropTarget(dragProxyMC)); } static function getCurrentDropTargetMovieClip() { return(getDropTargetMovieClip(dragProxyMC)); } static function getCurrentDropTargetComponent() { return(getDropTargetComponent(dragProxyMC)); } static function getCurrentDropTargetDropTriggerComponent() { return(getDropTargetDropTriggerComponent(dragProxyMC)); } static function getDropTarget(draggingMC) { if (draggingMC == null) { return(null); } draggingMC.startDrag(false); var target = eval (draggingMC._droptarget); draggingMC.stopDrag(); return(target); } static function getDropTargetMovieClip(draggingMC) { var _local1 = getDropTarget(draggingMC); if (_local1 == null) { return(null); } if (org.aswing.util.ObjectUtils.isMovieClip(_local1)) { return(_local1); } return(_local1._parent); } static function getDropTargetComponent(draggingMC) { var _local1 = getDropTargetMovieClip(draggingMC); if (_local1 != null) { return(org.aswing.Component.getOwnerComponent(_local1)); } return(null); } static function getDropTargetDropTriggerComponent(draggingMC) { var _local1 = getDropTargetComponent(draggingMC); while ((_local1 != null) && (!_local1.isDropTrigger())) { _local1 = _local1.getParent(); } return(_local1); } static function onMouseMove() { var _local1 = moveDragingImageAndReturnGlobalPos(); var _local2 = getCurrentDropTargetDropTriggerComponent(); if (_local2 != enteredComponent) { if (enteredComponent != null) { s_dragImage.switchToRejectImage(); fireDragExitEvent(s_dragInitiator, s_sourceData, _local1, enteredComponent); enteredComponent.fireDragExitEvent(s_dragInitiator, s_sourceData, _local1); } if (_local2 != null) { if (_local2.isDragAcceptableInitiator(s_dragInitiator)) { s_dragImage.switchToAcceptImage(); } fireDragEnterEvent(s_dragInitiator, s_sourceData, _local1, _local2); _local2.fireDragEnterEvent(s_dragInitiator, s_sourceData, _local1); } enteredComponent = _local2; } else if (enteredComponent != null) { fireDragOverringEvent(s_dragInitiator, s_sourceData, _local1, enteredComponent); enteredComponent.fireDragOverringEvent(s_dragInitiator, s_sourceData, _local1); } } static function onMouseUp() { drop(); } static function onMouseDown() { drop(); } static function drop() { var _local1 = moveDragingImageAndReturnGlobalPos(); var _local2 = getDropTargetDropTriggerComponent(dragProxyMC); Mouse.removeListener(org.aswing.dnd.DragManager); s_isDragging = false; if (enteredComponent != null) { setDropMotion(DEFAULT_DROP_MOTION); } else { setDropMotion(DEFAULT_REJECT_DROP_MOTION); } fireDragDropEvent(s_dragInitiator, s_sourceData, _local1, enteredComponent); dropMotion.startMotionAndLaterRemove(s_dragInitiator, dragProxyMC); if (enteredComponent != null) { enteredComponent.fireDragDropEvent(s_dragInitiator, s_sourceData, _local1); } if (s_dragListener != null) { removeDragListener(s_dragListener); } s_dragImage = null; dragProxyMC = null; s_dragListener = null; s_sourceData = null; enteredComponent = null; } static function moveDragingImageAndReturnGlobalPos() { var _local1 = new org.aswing.geom.Point(dragProxyMC._parent._xmouse - mouseOffset.x, dragProxyMC._parent._ymouse - mouseOffset.y); dragProxyMC._x = _local1.x; dragProxyMC._y = _local1.y; dragProxyMC._parent.localToGlobal(_local1); return(_local1); } static function fireDragStartEvent(dragInitiator, sourceData, pos) { var _local1 = 0; while (_local1 < listeners.length) { var _local2 = org.aswing.dnd.DragListener(listeners[_local1]); _local2.onDragStart(dragInitiator, sourceData, pos); _local1++; } } static function fireDragEnterEvent(dragInitiator, sourceData, pos, targetComponent) { var _local1 = 0; while (_local1 < listeners.length) { var _local2 = org.aswing.dnd.DragListener(listeners[_local1]); _local2.onDragEnter(dragInitiator, sourceData, pos, targetComponent); _local1++; } } static function fireDragOverringEvent(dragInitiator, sourceData, pos, targetComponent) { var _local1 = 0; while (_local1 < listeners.length) { var _local2 = org.aswing.dnd.DragListener(listeners[_local1]); _local2.onDragOverring(dragInitiator, sourceData, pos, targetComponent); _local1++; } } static function fireDragExitEvent(dragInitiator, sourceData, pos, targetComponent) { var _local1 = 0; while (_local1 < listeners.length) { var _local2 = org.aswing.dnd.DragListener(listeners[_local1]); _local2.onDragExit(dragInitiator, sourceData, pos, targetComponent); _local1++; } } static function fireDragDropEvent(dragInitiator, sourceData, pos, targetComponent) { var _local1 = 0; while (_local1 < listeners.length) { var _local2 = org.aswing.dnd.DragListener(listeners[_local1]); _local2.onDragDrop(dragInitiator, sourceData, pos, targetComponent); _local1++; } } static var TYPE_NONE = 0; static var TYPE_MOVE = 1; static var TYPE_COPY = 2; static var DEFAULT_DROP_MOTION = new org.aswing.dnd.DirectlyRemoveMotion(); static var DEFAULT_REJECT_DROP_MOTION = new org.aswing.dnd.RejectedMotion(); static var s_isDragging = false; static var listeners = new Array(); }
Symbol 446 MovieClip [__Packages.org.aswing.dnd.DragListener] Frame 0
interface org.aswing.dnd.DragListener { }
Symbol 447 MovieClip [__Packages.org.aswing.dnd.SourceData] Frame 0
class org.aswing.dnd.SourceData { var name, data; function SourceData (name, data) { this.name = name; this.data = data; } function getName() { return(name); } function getData() { return(data); } }
Symbol 448 MovieClip [__Packages.org.aswing.dnd.DraggingImage] Frame 0
interface org.aswing.dnd.DraggingImage { }
Symbol 449 MovieClip [__Packages.org.aswing.dnd.DefaultDragImage] Frame 0
class org.aswing.dnd.DefaultDragImage implements org.aswing.dnd.DraggingImage { var initiator, x, y, target; function DefaultDragImage (dragInitiator) { initiator = dragInitiator; x = 0; y = 0; } function getImageWidth() { return(initiator.getWidth()); } function getImageHeight() { return(initiator.getHeight()); } function setCanvas(target) { this.target = target; } function switchToAcceptImage() { target.clear(); var _local4 = getImageWidth(); var _local2 = getImageHeight(); var _local3 = new org.aswing.graphics.Graphics(target); _local3.drawRectangle(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__GRAY()), x, y, _local4, _local2); } function switchToRejectImage() { target.clear(); var _local5 = getImageWidth(); var _local4 = getImageHeight(); var _local2 = Math.min(_local5, _local4) - 2; var _local3 = new org.aswing.graphics.Graphics(target); _local3.drawLine(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__RED(), 2), x + 1, y + 1, (x + 1) + _local2, (y + 1) + _local2); _local3.drawLine(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__RED(), 2), (x + 1) + _local2, y + 1, x + 1, (y + 1) + _local2); _local3.drawRectangle(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__GRAY()), x, y, _local5, _local4); } }
Symbol 450 MovieClip [__Packages.org.aswing.overflow.JList] Frame 0
class org.aswing.overflow.JList extends org.aswing.ChildrenMaskedContainer implements org.aswing.Viewportable, org.aswing.LayoutManager, org.aswing.event.ListDataListener { var setName, layout, viewPosition, selectionListener, firstVisibleIndex, lastVisibleIndex, visibleRowCount, visibleCellWidth, preferredWidthWhenNoCount, tracksWidth, viewWidth, viewHeight, maxWidthCell, cellPrefferSizes, comToCellMap, cells, model, autoDragAndDropType, cellFactory, selectionModel, addEventListener, selectionForeground, repaint, selectionBackground, revalidate, isEnabled, getComponentCount, getComponent, dndListener, removeEventListener, setDropTrigger, setDragEnabled, append, itemHandler, remove, getWidth, verticalUnitIncrement, verticalBlockIncrement, horizontalUnitIncrement, horizontalBlockIncrement, fireStateChanged, setSize, getInsets, getSize, valid, dispatchEvent, createEventObj, parent, requestFocus, getMousePosition, dndInsertPosition, isDragAcceptableInitiator, dndAutoScrollTimer, dnd_line_mc, createMovieClip, getHeight; function JList (listData, cellFactory) { super(); setName("JList"); layout = this; viewPosition = new org.aswing.geom.Point(0, 0); selectionListener = new Object(); selectionListener[ON_SELECTION_CHANGED] = org.aswing.util.Delegate.create(this, __selectionListener); setSelectionModel(new org.aswing.DefaultListSelectionModel()); firstVisibleIndex = 0; lastVisibleIndex = 0; firstVisibleIndexOffset = 0; lastVisibleIndexOffset = 0; visibleRowCount = -1; visibleCellWidth = -1; preferredWidthWhenNoCount = 20; tracksWidth = false; viewWidth = 0; viewHeight = 0; maxWidthCell = null; cellPrefferSizes = new org.aswing.util.HashMap(); comToCellMap = new org.aswing.util.HashMap(); cells = new org.aswing.util.Vector(); model = null; autoDragAndDropType = DND_NONE; initItemHandler(); if (cellFactory == undefined) { cellFactory = new org.aswing.DefaultListCellFactory(true); } this.cellFactory = cellFactory; if (listData instanceof org.aswing.ListModel) { setModel(org.aswing.ListModel(listData)); } else { var _local3 = listData; if (_local3 instanceof Array) { setListData(_local3); } else { setListData(null); } } updateUI(); } function updateUI() { var _local2 = 0; while (_local2 < cells.size()) { var _local3 = org.aswing.ListCell(cells.get(_local2)); _local3.getCellComponent().updateUI(); _local2++; } setUI(org.aswing.plaf.ListUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("ListUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicListUI); } function setLayout(layout) { trace("Can not set layout to JList, its layout is itself"); throw new Error("Can not set layout to JList, its layout is itself"); } function setListData(ld) { var _local2 = new org.aswing.VectorListModel(ld); setModel(_local2); } function setModel(m) { if (m == null) { return(undefined); } if (m != model) { model.removeListDataListener(this); model = m; model.addListDataListener(this); updateListView(); } } function getModel() { return(model); } function setSelectionModel(m) { if ((m != null) && (m != selectionModel)) { selectionModel.removeEventListener(selectionListener); selectionModel = m; selectionModel.addEventListener(selectionListener); } } function getSelectionModel() { return(selectionModel); } function getCellFactory() { return(cellFactory); } function setCellFactory(newFactory) { cellFactory = newFactory; removeAllCells(); updateListView(); } function addSelectionListener(func, obj) { return(addEventListener(ON_SELECTION_CHANGED, func, obj)); } function getPreferredCellWidthWhenNoCount() { return(preferredWidthWhenNoCount); } function setPreferredCellWidthWhenNoCount(preferredWidthWhenNoCount) { this.preferredWidthWhenNoCount = preferredWidthWhenNoCount; } function updateListView() { createCells(); validateCells(); } function clearSelection() { getSelectionModel().clearSelection(); } function setSelectionMode(sm) { getSelectionModel().setSelectionMode(sm); } function getSelectionMode() { return(getSelectionModel().getSelectionMode()); } function getSelectionForeground() { return(selectionForeground); } function setSelectionForeground(selectionForeground) { var _local2 = this.selectionForeground; this.selectionForeground = selectionForeground; if (!selectionForeground.equals(_local2)) { repaint(); validateCells(); } } function getSelectionBackground() { return(selectionBackground); } function setSelectionBackground(selectionBackground) { var _local2 = this.selectionBackground; this.selectionBackground = selectionBackground; if (!selectionBackground.equals(_local2)) { repaint(); validateCells(); } } function getAnchorSelectionIndex() { return(getSelectionModel().getAnchorSelectionIndex()); } function getLeadSelectionIndex() { return(getSelectionModel().getLeadSelectionIndex()); } function setSelectionInterval(index0, index1) { getSelectionModel().setSelectionInterval(index0, index1); } function addSelectionInterval(index0, index1) { getSelectionModel().addSelectionInterval(index0, index1); } function removeSelectionInterval(index0, index1) { getSelectionModel().removeSelectionInterval(index0, index1); } function selectAll() { setSelectionInterval(0, getModel().getSize() - 1); } function getSelectedIndex() { return(getSelectionModel().getMinSelectionIndex()); } function isSelectionEmpty() { return(getSelectionModel().isSelectionEmpty()); } function getSelectedIndices() { var _local4 = new Array(); var _local3 = getSelectionModel(); var _local6 = _local3.getMinSelectionIndex(); var _local5 = _local3.getMaxSelectionIndex(); if (((_local6 < 0) || (_local5 < 0)) || (isSelectionEmpty())) { return(_local4); } var _local2 = _local6; while (_local2 <= _local5) { if (_local3.isSelectedIndex(_local2)) { _local4.push(_local2); } _local2++; } return(_local4); } function isSelectedIndex(index) { return(getSelectionModel().isSelectedIndex(index)); } function getSelectedValue() { var _local2 = getSelectedIndex(); if (_local2 < 0) { return(null); } return(model.getElementAt(_local2)); } function getSelectedValues() { var _local4 = new Array(); var _local3 = getSelectionModel(); var _local6 = _local3.getMinSelectionIndex(); var _local5 = _local3.getMaxSelectionIndex(); if (((_local6 < 0) || (_local5 < 0)) || (isSelectionEmpty())) { return(_local4); } var _local7 = getModel(); var _local2 = _local6; while (_local2 <= _local5) { if (_local3.isSelectedIndex(_local2)) { _local4.push(_local7.getElementAt(_local2)); } _local2++; } return(_local4); } function setSelectedIndex(index) { if (index >= getModel().getSize()) { return(undefined); } getSelectionModel().setSelectionInterval(index, index); } function setSelectedIndices(indices) { var _local4 = getSelectionModel(); _local4.clearSelection(); var _local5 = getModel().getSize(); var _local2 = 0; while (_local2 < indices.length) { if (indices[_local2] < _local5) { _local4.addSelectionInterval(indices[_local2], indices[_local2]); } _local2++; } } function setSelectedValue(value) { var _local3 = model.getSize(); var _local2 = 0; while (_local2 < _local3) { if (model.getElementAt(_local2) == value) { setSelectedIndex(_local2); return(undefined); } _local2++; } setSelectedIndex(-1); } function setSelectedValues(values) { var _local5 = getSelectionModel(); _local5.clearSelection(); var _local6 = getModel().getSize(); var _local3 = 0; while (_local3 < values.length) { var _local2 = 0; while (_local2 < _local6) { if (values[_local3] == getModel().getElementAt(_local2)) { _local5.addSelectionInterval(_local2, _local2); break; } _local2++; } _local3++; } } function ensureIndexIsVisible(index) { if (index <= getFirstVisibleIndex()) { setFirstVisibleIndex(index); } else if (index >= getLastVisibleIndex()) { setLastVisibleIndex(index); } } function getFirstVisibleIndex() { return(firstVisibleIndex); } function setFirstVisibleIndex(index) { var _local8 = getCellFactory(); var _local10 = getModel(); var _local7 = getViewPosition(); if (_local8.isAllCellHasSameHeight() || (_local8.isShareCells())) { _local7.y = index * _local8.getCellHeight(); } else { var _local6 = Math.min(cells.getSize() - 1, index); var _local5 = 0; var _local2 = 0; while (_local2 < _local6) { var _local4 = org.aswing.ListCell(cells.get(_local2)); var _local3 = getCachedCellPreferSize(_local4); if (_local3 == null) { _local3 = _local4.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local2) + ", value = ") + _local4.getCellValue()); } _local5 = _local5 + _local3.height; _local2++; } _local7.y = _local5; } _local7.y = Math.max(0, Math.min(getViewMaxPos().y, _local7.y)); setViewPosition(_local7); } function getLastVisibleIndex() { return(lastVisibleIndex); } function setLastVisibleIndex(index) { var _local8 = getCellFactory(); var _local10 = getModel(); var _local7 = getViewPosition(); if (_local8.isAllCellHasSameHeight() || (_local8.isShareCells())) { _local7.y = ((index + 1) * _local8.getCellHeight()) - getExtentSize().height; } else { var _local6 = Math.min(cells.getSize(), index + 2); var _local5 = 0; var _local2 = 0; while (_local2 < _local6) { var _local4 = org.aswing.ListCell(cells.get(_local2)); var _local3 = getCachedCellPreferSize(_local4); if (_local3 == null) { _local3 = _local4.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local2) + ", value = ") + _local4.getCellValue()); } _local5 = _local5 + _local3.height; _local2++; } _local7.y = _local5 - getExtentSize().height; } _local7.y = Math.max(0, Math.min(getViewMaxPos().y, _local7.y)); setViewPosition(_local7); } function getVisibleRowCount() { return(visibleRowCount); } function setVisibleRowCount(c) { if (c != visibleRowCount) { visibleRowCount = c; revalidate(); } } function getVisibleCellWidth() { return(visibleCellWidth); } function setVisibleCellWidth(w) { if (w != visibleCellWidth) { visibleCellWidth = w; revalidate(); } } function setTracksWidth(b) { if (b != tracksWidth) { tracksWidth = b; } } function isTracksWidth() { return(tracksWidth); } function scrollToBottomLeft() { setViewPosition(new org.aswing.geom.Point(0, Number.MAX_VALUE)); } function scrollToBottomRight() { setViewPosition(new org.aswing.geom.Point(Number.MAX_VALUE, Number.MAX_VALUE)); } function scrollToTopLeft() { setViewPosition(new org.aswing.geom.Point(0, 0)); } function scrollToTopRight() { setViewPosition(new org.aswing.geom.Point(Number.MAX_VALUE, 0)); } function setEnabled(b) { if (b != isEnabled()) { var _local6 = getComponentCount(); var _local3 = _local6 - 1; while (_local3 >= 0) { var _local4 = getComponent(_local3); _local4.setEnabled(b); _local3--; } repaint(); } super.setEnabled(b); } function setAutoDragAndDropType(type) { autoDragAndDropType = type; if (dndListener == null) { dndListener = new Object(); dndListener[org.aswing.Component.ON_DRAG_RECOGNIZED] = org.aswing.util.Delegate.create(this, ____onDragRecognized); dndListener[org.aswing.Component.ON_DRAG_ENTER] = org.aswing.util.Delegate.create(this, ____onDragEnter); dndListener[org.aswing.Component.ON_DRAG_OVERRING] = org.aswing.util.Delegate.create(this, ____onDragOverring); dndListener[org.aswing.Component.ON_DRAG_EXIT] = org.aswing.util.Delegate.create(this, ____onDragExit); dndListener[org.aswing.Component.ON_DRAG_DROP] = org.aswing.util.Delegate.create(this, ____onDragDrop); } removeEventListener(dndListener); if (isAutoDragAndDropAllown()) { setDropTrigger(true); setDragEnabled(true); addEventListener(dndListener); } else { setDropTrigger(false); setDragEnabled(false); } } function getAutoDragAndDropType() { return(autoDragAndDropType); } function isAutoDragAndDropAllown() { return((autoDragAndDropType == DND_MOVE) || (autoDragAndDropType == DND_COPY)); } function isAutoDnDInitiatorAllown() { if (!isAutoDragAndDropAllown()) { return(false); } if (!isMutableModel()) { return(autoDragAndDropType == DND_COPY); } return(true); } function isAutoDnDDropTargetAllown() { return(isAutoDragAndDropAllown() && (isMutableModel())); } function addCellToContainer(cell) { cell.getCellComponent().setFocusable(false); append(cell.getCellComponent()); comToCellMap.put(cell.getCellComponent().getID(), cell); cell.getCellComponent().addEventListener(itemHandler); } function removeCellFromeContainer(cell) { remove(cell.getCellComponent()); comToCellMap.remove(cell.getCellComponent().getID()); cell.getCellComponent().removeEventListener(itemHandler); } function checkCreateCellsWhenShareCells() { createCellsWhenShareCells(); } function createCellsWhenShareCells() { var _local7 = getCellFactory().getCellHeight(); var _local6 = Math.floor(getExtentSize().height / _local7) + 2; viewWidth = getPreferredCellWidthWhenNoCount(); viewHeight = getModel().getSize() * _local7; if (cells.getSize() == _local6) { return(undefined); } var _local9 = getWidth(); if (cells.getSize() < _local6) { var _local5 = _local6 - cells.getSize(); var _local2 = 0; while (_local2 < _local5) { var _local3 = createNewCell(); addCellToContainer(_local3); cells.append(_local3); _local2++; } } else if (cells.getSize() > _local6) { var _local8 = _local6; var _local4 = cells.removeRange(_local8, cells.getSize() - 1); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = org.aswing.ListCell(_local4[_local2]); removeCellFromeContainer(_local3); _local2++; } } } function createCellsWhenNotShareCells() { var _local13 = getCellFactory(); var _local6 = getModel(); var _local5 = 0; var _local7 = 0; var _local8 = _local13.isAllCellHasSameHeight(); var _local10 = _local6.getSize(); var _local11 = cells.getSize(); cellPrefferSizes.clear(); var _local12 = Math.min(_local10, _local11); var _local4 = 0; while (_local4 < _local12) { var _local3 = org.aswing.ListCell(cells.get(_local4)); _local3.setCellValue(_local6.getElementAt(_local4)); var _local2 = _local3.getCellComponent().getPreferredSize(); cellPrefferSizes.put(_local3.getCellComponent().getID(), _local2); if (_local2.width > _local5) { _local5 = _local2.width; maxWidthCell = _local3; } if (!_local8) { _local7 = _local7 + _local2.height; } _local4++; } if (_local10 > _local11) { _local4 = _local11; while (_local4 < _local10) { var _local3 = createNewCell(); cells.append(_local3); _local3.setCellValue(_local6.getElementAt(_local4)); addCellToContainer(_local3); var _local2 = _local3.getCellComponent().getPreferredSize(); cellPrefferSizes.put(_local3.getCellComponent().getID(), _local2); if (_local2.width > _local5) { _local5 = _local2.width; maxWidthCell = _local3; } if (!_local8) { _local7 = _local7 + _local2.height; } _local4++; } } else if (_local10 < _local11) { var _local9 = cells.removeRange(_local10, _local11 - 1); _local4 = 0; while (_local4 < _local9.length) { var _local3 = org.aswing.ListCell(_local9[_local4]); _local3.getCellComponent().removeFromContainer(); removeCellFromeContainer(_local3); cellPrefferSizes.remove(_local3.getCellComponent().getID()); _local4++; } } if (_local8) { _local7 = _local6.getSize() * _local13.getCellHeight(); } viewWidth = _local5; viewHeight = _local7; } function createNewCell() { return(getCellFactory().createNewCell()); } function createCells() { if (getCellFactory().isShareCells()) { createCellsWhenShareCells(); } else { createCellsWhenNotShareCells(); } } function removeAllCells() { var _local2 = 0; while (_local2 < cells.getSize()) { var _local3 = org.aswing.ListCell(cells.get(_local2)); _local3.getCellComponent().removeFromContainer(); _local2++; } cells.clear(); } function validateCells() { revalidate(); } function getVerticalUnitIncrement() { if (verticalUnitIncrement != undefined) { return(verticalUnitIncrement); } if (getCellFactory().isAllCellHasSameHeight()) { return(getCellFactory().getCellHeight()); } return(1); } function getVerticalBlockIncrement() { if (verticalBlockIncrement != undefined) { return(verticalBlockIncrement); } if (getCellFactory().isAllCellHasSameHeight()) { return(getExtentSize().height - getCellFactory().getCellHeight()); } return(getExtentSize().height - 10); } function getHorizontalUnitIncrement() { if (horizontalUnitIncrement == undefined) { return(1); } return(horizontalUnitIncrement); } function getHorizontalBlockIncrement() { if (horizontalBlockIncrement == undefined) { return(getExtentSize().width - 1); } return(horizontalBlockIncrement); } function setVerticalUnitIncrement(increment) { if (verticalUnitIncrement != increment) { verticalUnitIncrement = increment; fireStateChanged(); } } function setVerticalBlockIncrement(increment) { if (verticalBlockIncrement != increment) { verticalBlockIncrement = increment; fireStateChanged(); } } function setHorizontalUnitIncrement(increment) { if (horizontalUnitIncrement != increment) { horizontalUnitIncrement = increment; fireStateChanged(); } } function setHorizontalBlockIncrement(increment) { if (horizontalBlockIncrement != increment) { horizontalBlockIncrement = increment; fireStateChanged(); } } function setViewportTestSize(s) { setSize(s); } function getExtentSize() { return(getInsets().getInsideSize(getSize())); } function getViewSize() { var _local2 = (isTracksWidth() ? (getExtentSize().width) : (viewWidth)); return(new org.aswing.geom.Dimension(_local2, viewHeight)); } function getViewPosition() { return(new org.aswing.geom.Point(viewPosition.x, viewPosition.y)); } function setViewPosition(p) { restrictionViewPos(p); if (!viewPosition.equals(p)) { viewPosition.setLocation(p); fireStateChanged(); valid = false; org.aswing.RepaintManager.getInstance().addInvalidRootComponent(this); } } function scrollRectToVisible(contentRect) { setViewPosition(new org.aswing.geom.Point(contentRect.x, contentRect.y)); } function restrictionViewPos(p) { var _local3 = getViewMaxPos(); p.x = Math.max(0, Math.min(_local3.x, p.x)); p.y = Math.max(0, Math.min(_local3.y, p.y)); return(p); } function getViewMaxPos() { var _local4 = getExtentSize(); var _local3 = getViewSize(); var _local2 = new org.aswing.geom.Point(_local3.width - _local4.width, _local3.height - _local4.height); if (_local2.x < 0) { _local2.x = 0; } if (_local2.y < 0) { _local2.y = 0; } return(_local2); } function addChangeListener(func, obj) { return(addEventListener(ON_STATE_CHANGED, func, obj)); } function getViewportPane() { return(this); } function addLayoutComponent(comp, constraints) { } function removeLayoutComponent(comp) { } function preferredLayoutSize(target) { var _local2 = getViewSize(); var _local5 = getVisibleRowCount(); if (_local5 > 0) { var _local3 = 20; if (getCellFactory().isAllCellHasSameHeight()) { _local3 = getCellFactory().getCellHeight(); } _local2.height = _local5 * _local3; } var _local4 = getVisibleCellWidth(); if (_local4 > 0) { _local2.width = _local4; } return(getInsets().getOutsideSize(_local2)); } function minimumLayoutSize(target) { return(getInsets().getOutsideSize()); } function maximumLayoutSize(target) { return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } function layoutContainer(target) { var _local2 = getCellFactory(); if (_local2.isShareCells()) { layoutWhenShareCells(); } else if (_local2.isAllCellHasSameHeight()) { layoutWhenNotShareCellsAndSameHeight(); } else { layoutWhenNotShareCellsAndNotSameHeight(); } } function layoutWhenShareCells() { checkCreateCellsWhenShareCells(); var _local17 = getCellFactory(); var _local9 = getModel(); var _local14 = getInsets().getInsideBounds(getSize().getBounds()); var _local11 = _local14.width; restrictionViewPos(viewPosition); var _local18 = Math.round(viewPosition.x); var _local15 = Math.round(viewPosition.y); var _local7 = _local17.getCellHeight(); var _local8 = Math.floor(_local15 / _local7); var _local16 = (_local8 * _local7) - _local15; var _local13 = _local9.getSize(); var _local12 = _local14.x - _local18; var _local6 = _local14.y + _local16; var _local10 = _local14.y + _local14.height; var _local3 = 0; while (_local3 < cells.getSize()) { var _local5 = org.aswing.ListCell(cells.get(_local3)); var _local2 = _local8 + _local3; var _local4 = _local5.getCellComponent(); if (_local2 < _local13) { _local5.setCellValue(_local9.getElementAt(_local2)); _local4.setVisible(true); _local4.setBoundsImmediately(_local12, _local6, _local11, _local7); if (_local6 < _local10) { lastVisibleIndex = _local2; } _local6 = _local6 + _local7; _local5.setListCellStatus(this, isSelectedIndex(_local2), _local2); } else { _local4.setVisible(false); } _local3++; } firstVisibleIndex = _local8; } function layoutWhenNotShareCellsAndSameHeight() { var _local20 = getCellFactory(); var _local19 = getModel(); var _local11 = getInsets().getInsideBounds(getSize().getBounds()); var _local13 = Math.max(_local11.width, viewWidth); restrictionViewPos(viewPosition); var _local21 = Math.round(viewPosition.x); var _local16 = Math.round(viewPosition.y); var _local8 = _local20.getCellHeight(); var _local9 = Math.floor(_local16 / _local8); var _local17 = _local19.getSize(); var _local10 = ((_local9 + Math.floor(_local11.height / _local8)) + 2) - 1; if (_local10 >= _local17) { _local10 = _local17 - 1; } var _local18 = (_local9 * _local8) - _local16; var _local14 = _local11.x - _local21; var _local6 = _local11.y + _local18; var _local12 = _local11.y + _local11.height; var _local2 = firstVisibleIndex + firstVisibleIndexOffset; while (_local2 < _local9) { org.aswing.ListCell(cells.get(_local2)).getCellComponent().setVisible(false); _local2++; } var _local15 = lastVisibleIndex + lastVisibleIndexOffset; _local2 = _local10 + 1; while (_local2 <= _local15) { org.aswing.ListCell(cells.get(_local2)).getCellComponent().setVisible(false); _local2++; } _local2 = _local9; while (_local2 <= _local10) { var _local3 = org.aswing.ListCell(cells.get(_local2)); var _local5 = _local3.getCellComponent(); _local5.setVisible(true); var _local4 = getCachedCellPreferSize(_local3); if (_local4 == null) { _local4 = _local3.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local2) + ", value = ") + _local3.getCellValue()); } var _local7 = (isTracksWidth() ? (_local11.width) : (Math.max(_local13, _local4.width))); _local5.setBoundsImmediately(_local14, _local6, _local7, _local8); if (_local6 < _local12) { lastVisibleIndex = _local2; } _local6 = _local6 + _local8; _local3.setListCellStatus(this, isSelectedIndex(_local2), _local2); _local2++; } firstVisibleIndex = _local9; firstVisibleIndexOffset = (lastVisibleIndexOffset = 0); } function getCachedCellPreferSize(cell) { return(org.aswing.geom.Dimension(cellPrefferSizes.get(cell.getCellComponent().getID()))); } function layoutWhenNotShareCellsAndNotSameHeight() { var _local22 = getCellFactory(); var _local20 = getModel(); var _local14 = getInsets().getInsideBounds(getSize().getBounds()); var _local17 = Math.max(_local14.width, viewWidth); restrictionViewPos(viewPosition); var _local21 = Math.round(viewPosition.x); var _local13 = Math.round(viewPosition.y); var _local7 = 0; var _local12 = cells.getSize(); var _local8 = 0; var _local15 = 0; var _local4 = 0; while (_local4 < _local12) { var _local3 = org.aswing.ListCell(cells.get(_local4)); var _local2 = getCachedCellPreferSize(_local3); if (_local2 == null) { _local2 = _local3.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local4) + ", value = ") + _local3.getCellValue()); } _local8 = _local8 + _local2.height; if (_local8 >= _local13) { _local7 = _local4; _local15 = -(_local2.height - (_local8 - _local13)); break; } _local4++; } var _local23 = _local20.getSize(); var _local18 = _local14.x - _local21; var _local5 = _local14.y + _local15; var _local10 = _local14.y + _local14.height; var _local16 = -1; var _local11 = _local7; _local4 = _local7; while (_local4 < _local12) { var _local3 = org.aswing.ListCell(cells.get(_local4)); var _local6 = _local3.getCellComponent(); var _local2 = getCachedCellPreferSize(_local3); if (_local2 == null) { _local2 = _local3.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local4) + ", value = ") + _local3.getCellValue()); } _local3.setListCellStatus(this, isSelectedIndex(_local4), _local4); _local6.setVisible(true); var _local9 = (isTracksWidth() ? (_local14.width) : (Math.max(_local17, _local2.width))); _local6.setBoundsImmediately(_local18, _local5, _local9, _local2.height); if (_local5 < _local10) { _local16 = _local4; } _local5 = _local5 + _local2.height; _local11 = _local4; if (_local5 >= _local10) { break; } _local4++; } _local4 = firstVisibleIndex + firstVisibleIndexOffset; while (_local4 < _local7) { org.aswing.ListCell(cells.get(_local4)).getCellComponent().setVisible(false); _local4++; } var _local19 = lastVisibleIndex + lastVisibleIndexOffset; _local4 = _local11 + 1; while (_local4 <= _local19) { org.aswing.ListCell(cells.get(_local4)).getCellComponent().setVisible(false); _local4++; } lastVisibleIndex = _local16; firstVisibleIndex = _local7; firstVisibleIndexOffset = (lastVisibleIndexOffset = 0); } function getLayoutAlignmentX(target) { return(0); } function getLayoutAlignmentY(target) { return(0); } function invalidateLayout(target) { } function intervalAdded(e) { var _local11 = getCellFactory(); var _local9 = getModel(); var _local5 = viewWidth; var _local8 = viewHeight; var _local10 = _local11.isAllCellHasSameHeight(); var _local6 = e.getIndex0(); var _local7 = e.getIndex1(); _local6 = Math.min(_local6, _local7); _local7 = Math.max(_local6, _local7); if (_local11.isShareCells()) { _local5 = getPreferredCellWidthWhenNoCount(); _local8 = _local9.getSize() * _local11.getCellHeight(); } else { var _local4 = _local6; while (_local4 <= _local7) { var _local2 = createNewCell(); cells.append(_local2, _local4); _local2.setCellValue(_local9.getElementAt(_local4)); addCellToContainer(_local2); var _local3 = _local2.getCellComponent().getPreferredSize(); _local2.getCellComponent().setVisible(false); cellPrefferSizes.put(_local2.getCellComponent().getID(), _local3); if (_local3.width > _local5) { _local5 = _local3.width; maxWidthCell = _local2; } _local5 = Math.max(_local5, _local3.width); if (!_local10) { _local8 = _local8 + _local3.height; } _local4++; } if (_local10) { _local8 = _local9.getSize() * _local11.getCellHeight(); } if (_local6 > (lastVisibleIndex + lastVisibleIndexOffset)) { } else if (_local6 >= (firstVisibleIndex + firstVisibleIndexOffset)) { lastVisibleIndexOffset = lastVisibleIndexOffset + ((_local7 - _local6) + 1); } else if (_local6 < (firstVisibleIndex + firstVisibleIndexOffset)) { firstVisibleIndexOffset = firstVisibleIndexOffset + ((lastVisibleIndexOffset = (_local7 - _local6) + 1)); } } viewWidth = _local5; viewHeight = _local8; getSelectionModel().insertIndexInterval(_local6, (_local7 - _local6) + 1, true); revalidate(); } function intervalRemoved(e) { var _local11 = getCellFactory(); var _local12 = getModel(); var _local6 = viewWidth; var _local8 = viewHeight; var _local9 = _local11.isAllCellHasSameHeight(); var _local5 = e.getIndex0(); var _local7 = e.getIndex1(); _local5 = Math.min(_local5, _local7); _local7 = Math.max(_local5, _local7); if (_local11.isShareCells()) { _local6 = getPreferredCellWidthWhenNoCount(); _local8 = _local12.getSize() * _local11.getCellHeight(); } else { var _local10 = false; var _local4 = _local5; while (_local4 <= _local7) { var _local3 = org.aswing.ListCell(cells.get(_local4)); if (_local3 == maxWidthCell) { _local10 = true; } if (!_local9) { var _local2 = getCachedCellPreferSize(_local3); if (_local2 == null) { _local2 = _local3.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local4) + ", value = ") + _local3.getCellValue()); } _local8 = _local8 - _local2.height; } removeCellFromeContainer(_local3); cellPrefferSizes.remove(_local3.getCellComponent().getID()); _local4++; } cells.removeRange(_local5, _local7); if (_local9) { _local8 = _local12.getSize() * _local11.getCellHeight(); } if (_local10) { _local6 = 0; _local4 = cells.getSize() - 1; while (_local4 >= 0) { var _local3 = org.aswing.ListCell(cells.get(_local4)); var _local2 = getCachedCellPreferSize(_local3); if (_local2 == null) { _local2 = _local3.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local4) + ", value = ") + _local3.getCellValue()); } if (_local2.width > _local6) { _local6 = _local2.width; maxWidthCell = _local3; } _local4--; } } if (_local5 > (lastVisibleIndex + lastVisibleIndexOffset)) { } else if (_local5 >= (firstVisibleIndex + firstVisibleIndexOffset)) { lastVisibleIndexOffset = lastVisibleIndexOffset - ((_local7 - _local5) + 1); } else if (_local5 < (firstVisibleIndex + firstVisibleIndexOffset)) { firstVisibleIndexOffset = firstVisibleIndexOffset - ((lastVisibleIndexOffset = (_local7 - _local5) + 1)); } } viewWidth = _local6; viewHeight = _local8; getSelectionModel().removeIndexInterval(_local5, _local7); revalidate(); } function contentsChanged(e) { var _local13 = getCellFactory(); var _local12 = getModel(); var _local6 = viewWidth; var _local7 = viewHeight; var _local14 = _local13.isAllCellHasSameHeight(); var _local11 = e.getIndex0(); var _local10 = e.getIndex1(); _local11 = Math.min(_local11, _local10); _local10 = Math.max(_local11, _local10); if (_local13.isShareCells()) { _local6 = getPreferredCellWidthWhenNoCount(); _local7 = _local12.getSize() * _local13.getCellHeight(); } else { var _local9 = false; var _local4 = _local11; while (_local4 <= _local10) { var _local8 = _local12.getElementAt(_local4); var _local3 = org.aswing.ListCell(cells.get(_local4)); var _local2 = getCachedCellPreferSize(_local3); if (_local2 == null) { _local2 = _local3.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local4) + ", value = ") + _local3.getCellValue()); } if (_local3 == maxWidthCell) { _local7 = _local7 - _local2.height; _local3.setCellValue(_local8); var _local5 = _local3.getCellComponent().getPreferredSize(); cellPrefferSizes.put(_local3.getCellComponent().getID(), _local5); if (_local5.width < _local2.width) { _local9 = true; } else { _local6 = _local5.width; } _local7 = _local7 + _local5.height; } else { _local7 = _local7 - _local2.height; _local3.setCellValue(_local8); var _local5 = _local3.getCellComponent().getPreferredSize(); cellPrefferSizes.put(_local3.getCellComponent().getID(), _local5); _local7 = _local7 + _local5.height; if (!_local9) { if (_local5.width > _local6) { maxWidthCell = _local3; _local6 = _local5.width; } } } _local4++; } if (_local14) { _local7 = _local12.getSize() * _local13.getCellHeight(); } if (_local9 || (maxWidthCell == null)) { _local6 = 0; _local4 = cells.getSize() - 1; while (_local4 >= 0) { var _local3 = org.aswing.ListCell(cells.get(_local4)); var _local2 = getCachedCellPreferSize(_local3); if (_local2 == null) { _local2 = _local3.getCellComponent().getPreferredSize(); trace((("Warnning : cell size not cached index = " + _local4) + ", value = ") + _local3.getCellValue()); } if (_local2.width > _local6) { _local6 = _local2.width; maxWidthCell = _local3; } _local4--; } } } viewWidth = _local6; viewHeight = _local7; revalidate(); } function __selectionListener(source, firstIndex, lastIndex) { dispatchEvent(createEventObj(ON_SELECTION_CHANGED, firstIndex, lastIndex)); revalidate(); } function initItemHandler() { itemHandler = new Object(); itemHandler[org.aswing.Component.ON_PRESS] = org.aswing.util.Delegate.create(this, ____onItemPress); itemHandler[org.aswing.Component.ON_RELEASE] = org.aswing.util.Delegate.create(this, ____onItemRelease); itemHandler[org.aswing.Component.ON_RELEASEOUTSIDE] = org.aswing.util.Delegate.create(this, ____onItemReleaseOutside); itemHandler[org.aswing.Component.ON_ROLLOVER] = org.aswing.util.Delegate.create(this, ____onItemRollOver); itemHandler[org.aswing.Component.ON_ROLLOUT] = org.aswing.util.Delegate.create(this, ____onItemRollOut); itemHandler[org.aswing.Component.ON_CLICKED] = org.aswing.util.Delegate.create(this, ____onItemClicked); } function createItemEventObj(source, type) { var _local2 = getCellByCellComponent(source); var _local3 = createEventObj(type, _local2.getCellValue(), _local2); return(_local3); } function getItemIndexByCellComponent(item) { var _local2 = comToCellMap.get(item.getID()); return(getItemIndexByCell(_local2)); } function getItemIndexByCell(cell) { if (getCellFactory().isShareCells()) { return(firstVisibleIndex + cells.indexOf(cell)); } return(cells.indexOf(cell)); } function getCellByCellComponent(item) { return(org.aswing.ListCell(comToCellMap.get(item.getID()))); } function getCellByIndex(index) { if (getCellFactory().isShareCells()) { return(org.aswing.ListCell(cells.get(index - firstVisibleIndex))); } return(org.aswing.ListCell(cells.get(index))); } function __onItemPress(source) { dispatchEvent(createItemEventObj(source, ON_ITEM_PRESS)); parent.__onChildPressed(this); requestFocus(); } function __onItemRelease(source) { dispatchEvent(createItemEventObj(source, ON_ITEM_RELEASE)); } function __onItemReleaseOutside(source) { dispatchEvent(createItemEventObj(source, ON_ITEM_RELEASEOUTSIDE)); } function __onItemRollOver(source) { dispatchEvent(createItemEventObj(source, ON_ITEM_ROLLOVER)); } function __onItemRollOut(source) { dispatchEvent(createItemEventObj(source, ON_ITEM_ROLLOUT)); } function __onItemClicked(source, clickCount) { var _local2 = getCellByCellComponent(source); var _local3 = createEventObj(ON_ITEM_CLICKED, _local2.getCellValue(), _local2, clickCount); dispatchEvent(_local3); } function ____onItemPress(source) { __onItemPress(source); } function ____onItemRelease(source) { __onItemRelease(source); } function ____onItemReleaseOutside(source) { __onItemReleaseOutside(source); } function ____onItemRollOver(source) { __onItemRollOver(source); } function ____onItemRollOut(source) { __onItemRollOut(source); } function ____onItemClicked(source, clickCount) { __onItemClicked(source, clickCount); } function __onDragRecognized(dragInitiator, touchedChild) { if (isAutoDnDInitiatorAllown()) { var _local8 = getSelectedIndices(); var _local9 = new org.aswing.dnd.ListSourceData("ListSourceData", _local8); var _local7 = getFirstVisibleIndex(); var _local6 = getLastVisibleIndex(); var _local4 = getMousePosition(); var _local2 = new org.aswing.geom.Rectangle(); var _local5 = _local4.y; var _local3 = _local7; while (_local3 <= _local6) { _local2 = getCellByIndex(_local3).getCellComponent().getBounds(_local2); if (_local4.y < (_local2.y + _local2.height)) { _local5 = _local2.y; break; } _local3++; } org.aswing.dnd.DragManager.startDrag(this, _local9, new org.aswing.dnd.ListDragImage(this, _local5)); } } function __onDragEnter(source, dragInitiator, sourceData, mousePos) { dndInsertPosition = -1; if (!(isAcceptableListSourceData(dragInitiator, sourceData) && (isAutoDnDDropTargetAllown()))) { org.aswing.dnd.DragManager.getCurrentDragImage().switchToRejectImage(); } else { org.aswing.dnd.DragManager.getCurrentDragImage().switchToAcceptImage(); checkStartDnDAutoScroll(); } } function __onDragOverring(source, dragInitiator, sourceData, mousePos) { if (isAcceptableListSourceData(dragInitiator, sourceData) && (isAutoDnDDropTargetAllown())) { checkStartDnDAutoScroll(); drawInsertLine(); } } function __onDragExit(source, dragInitiator, sourceData, mousePos) { checkStopDnDAutoScroll(); } function __onDragDrop(source, dragInitiator, sourceData, mousePos) { checkStopDnDAutoScroll(); if (isAcceptableListSourceData(dragInitiator, sourceData) && (isAutoDnDDropTargetAllown())) { if (dndInsertPosition >= 0) { var _local2 = org.aswing.dnd.ListSourceData(sourceData).getItemIndices(); if (((_local2 == null) || (_local2.length == null)) || (_local2.length <= 0)) { return(undefined); } var _local7 = org.aswing.overflow.JList(dragInitiator); var _local5 = new Array(_local2.length); var _local3 = 0; while (_local3 < _local2.length) { _local5[_local3] = _local7.getModel().getElementAt(_local2[_local3]); _local3++; } var _local9 = 0; if (_local7.getAutoDragAndDropType() == DND_MOVE) { var _local8 = org.aswing.MutableListModel(_local7.getModel()); var _local10 = _local8 == getModel(); _local3 = 0; while (_local3 < _local2.length) { var _local4 = _local2[_local3]; _local8.removeElementAt(_local4 - _local3); if (_local10 && (_local4 < dndInsertPosition)) { _local9++; } _local3++; } } var _local6 = dndInsertPosition - _local9; var _local11 = org.aswing.MutableListModel(getModel()); _local3 = 0; while (_local3 < _local5.length) { _local11.insertElementAt(_local5[_local3], _local6); _local6++; _local3++; } return(undefined); } } org.aswing.dnd.DragManager.setDropMotion(org.aswing.dnd.DragManager.DEFAULT_REJECT_DROP_MOTION); } function isAcceptableListSourceData(dragInitiator, sd) { return((sd instanceof org.aswing.dnd.ListSourceData) && (isDragAcceptableInitiator(dragInitiator))); } function isMutableModel() { return(getModel() instanceof org.aswing.MutableListModel); } function checkStartDnDAutoScroll() { if (dndAutoScrollTimer == null) { dndAutoScrollTimer = new org.aswing.util.Timer(200); dndAutoScrollTimer.addActionListener(__dndAutoScroll, this); } if (!dndAutoScrollTimer.isRunning()) { dndAutoScrollTimer.start(); } if (!org.aswing.util.MCUtils.isMovieClipExist(dnd_line_mc)) { dnd_line_mc = createMovieClip("line_mc"); } } function checkStopDnDAutoScroll() { if (dndAutoScrollTimer != null) { dndAutoScrollTimer.stop(); } if (dnd_line_mc != null) { dnd_line_mc.removeMovieClip(); dnd_line_mc = null; } } function __dndAutoScroll() { var _local3 = getCellByIndex(getLastVisibleIndex()).getCellComponent().getBounds(); var _local5 = getCellByIndex(getFirstVisibleIndex()).getCellComponent().getBounds(); var _local2 = getViewPosition(); var _local4 = getMousePosition(); var _local6 = getInsets(); if (_local4.y < (_local6.top + (_local5.height / 2))) { _local2.y = _local2.y - _local5.height; setViewPosition(_local2); drawInsertLine(); } else if (_local4.y > ((getHeight() - _local6.bottom) - (_local3.height / 2))) { _local2.y = _local2.y + _local3.height; setViewPosition(_local2); drawInsertLine(); } } function drawInsertLine() { var _local8 = getFirstVisibleIndex(); var _local6 = getLastVisibleIndex(); var _local7 = getMousePosition(); var _local2 = new org.aswing.geom.Rectangle(); var _local4 = -1; var _local5; var _local3 = _local8; while (_local3 <= _local6) { _local2 = getCellByIndex(_local3).getCellComponent().getBounds(_local2); if (_local7.y < (_local2.y + (_local2.height / 2))) { _local4 = _local3; _local5 = _local2.y; break; } _local3++; } if (_local4 < 0) { _local2 = getCellByIndex(_local6).getCellComponent().getBounds(_local2); _local4 = _local6 + 1; _local5 = _local2.y + _local2.height; } dndInsertPosition = _local4; dnd_line_mc.clear(); var _local11 = new org.aswing.graphics.Graphics(dnd_line_mc); var _local10 = new org.aswing.graphics.Pen(0, 2, 70); var _local9 = getInsets(); _local11.drawLine(_local10, _local9.left + 1, _local5, (getWidth() - _local9.right) - 1, _local5); } function ____onDragRecognized(dragInitiator, touchedChild) { __onDragRecognized(dragInitiator, touchedChild); } function ____onDragEnter(source, dragInitiator, sourceData, mousePos) { __onDragEnter(source, dragInitiator, sourceData, mousePos); } function ____onDragOverring(source, dragInitiator, sourceData, mousePos) { __onDragOverring(source, dragInitiator, sourceData, mousePos); } function ____onDragExit(source, dragInitiator, sourceData, mousePos) { __onDragExit(source, dragInitiator, sourceData, mousePos); } function ____onDragDrop(source, dragInitiator, sourceData, mousePos) { __onDragDrop(source, dragInitiator, sourceData, mousePos); } static var ON_STATE_CHANGED = "onStateChanged"; static var ON_SELECTION_CHANGED = org.aswing.DefaultListSelectionModel.ON_SELECTION_CHANGED; static var ON_LIST_SCROLL = "onListScroll"; static var ON_ITEM_PRESS = "onItemPress"; static var ON_ITEM_RELEASE = "onItemRelease"; static var ON_ITEM_RELEASEOUTSIDE = "onItemReleaseOutSide"; static var ON_ITEM_ROLLOVER = "onItemRollOver"; static var ON_ITEM_ROLLOUT = "onItemRollOut"; static var ON_ITEM_CLICKED = "onItemClicked"; static var SINGLE_SELECTION = org.aswing.DefaultListSelectionModel.SINGLE_SELECTION; static var MULTIPLE_SELECTION = org.aswing.DefaultListSelectionModel.MULTIPLE_SELECTION; static var DND_NONE = org.aswing.dnd.DragManager.TYPE_NONE; static var DND_MOVE = org.aswing.dnd.DragManager.TYPE_MOVE; static var DND_COPY = org.aswing.dnd.DragManager.TYPE_COPY; var firstVisibleIndexOffset = 0; var lastVisibleIndexOffset = 0; }
Symbol 451 MovieClip [__Packages.org.aswing.Cell] Frame 0
interface org.aswing.Cell { }
Symbol 452 MovieClip [__Packages.org.aswing.ListCell] Frame 0
interface org.aswing.ListCell extends org.aswing.Cell { }
Symbol 453 MovieClip [__Packages.org.aswing.ListCellFactory] Frame 0
interface org.aswing.ListCellFactory { }
Symbol 454 MovieClip [__Packages.org.aswing.ListModel] Frame 0
interface org.aswing.ListModel { }
Symbol 455 MovieClip [__Packages.org.aswing.DefaultListCellFactory] Frame 0
class org.aswing.DefaultListCellFactory implements org.aswing.ListCellFactory { var shareCelles, sameHeight, cellHeight; function DefaultListCellFactory (shareCelles, sameHeight) { if (shareCelles == undefined) { shareCelles = true; } if (sameHeight == undefined) { sameHeight = true; } this.shareCelles = shareCelles; this.sameHeight = sameHeight; cellHeight = -1; } function createNewCell() { return(new org.aswing.DefaultListCell()); } function isAllCellHasSameHeight() { return(sameHeight); } function isShareCells() { return(shareCelles); } function getCellHeight() { if (cellHeight < 0) { var _local2 = createNewCell(); _local2.setCellValue("JjHhWpqQ1@|"); cellHeight = _local2.getCellComponent().getPreferredSize().height; } return(cellHeight); } }
Symbol 456 MovieClip [__Packages.org.aswing.AbstractListCell] Frame 0
class org.aswing.AbstractListCell implements org.aswing.ListCell { var value; function AbstractListCell () { } function setListCellStatus(list, isSelected, index) { var _local2 = getCellComponent(); if (isSelected) { _local2.setBackground(list.getSelectionBackground()); _local2.setForeground(list.getSelectionForeground()); } else { _local2.setBackground(list.getBackground()); _local2.setForeground(list.getForeground()); } _local2.setFont(list.getFont()); } function setCellValue(value) { this.value = value; } function getCellValue() { return(value); } function getCellComponent() { trace("Subclass should override this method"); throw new Error("Subclass should override this method"); return(null); } }
Symbol 457 MovieClip [__Packages.org.aswing.DefaultListCell] Frame 0
class org.aswing.DefaultListCell extends org.aswing.AbstractListCell { static var sharedToolTip; var value, jlabel; function DefaultListCell () { super(); if (sharedToolTip == null) { sharedToolTip = new org.aswing.overflow.JSharedToolTip(); sharedToolTip.setOffsetsRelatedToMouse(false); sharedToolTip.setOffsets(new org.aswing.geom.Point(0, 0)); } } function setCellValue(value) { this.value = value; getJLabel().setText(value.toString()); __resized(); } function getCellComponent() { return(getJLabel()); } function getJLabel() { if (jlabel == null) { jlabel = new org.aswing.JLabel(); jlabel.setHorizontalAlignment(org.aswing.JLabel.LEFT); jlabel.setOpaque(true); jlabel.setFocusable(false); jlabel.addEventListener(org.aswing.Component.ON_RESIZED, __resized, this); } return(jlabel); } function __resized() { if (getJLabel().getWidth() < getJLabel().getPreferredWidth()) { getJLabel().setToolTipText(value.toString()); org.aswing.overflow.JSharedToolTip.getSharedInstance().unregisterComponent(getJLabel()); sharedToolTip.registerComponent(getJLabel()); } else { getJLabel().setToolTipText(null); sharedToolTip.unregisterComponent(getJLabel()); } } }
Symbol 458 MovieClip [__Packages.org.aswing.JLabel] Frame 0
class org.aswing.JLabel extends org.aswing.Component { var setName, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, iconTextGap, icon, text, uninstallIconWhenNextPaint, repaint, invalidate, disabledIcon, isEnabled, revalidate; function JLabel (text, icon, horizontalAlignment) { super(); setName("JLabel"); verticalAlignment = CENTER; this.horizontalAlignment = CENTER; verticalTextPosition = CENTER; horizontalTextPosition = RIGHT; iconTextGap = 4; if ((text == null) && (icon != null)) { this.icon = org.aswing.Icon(icon); if (horizontalAlignment != undefined) { this.horizontalAlignment = horizontalAlignment; } } else if (horizontalAlignment != undefined) { this.horizontalAlignment = horizontalAlignment; this.text = org.aswing.util.StringUtils.castString(text); this.icon = org.aswing.Icon(icon); } else if (text instanceof org.aswing.Icon) { this.text = null; this.icon = org.aswing.Icon(text); if (icon != undefined) { this.horizontalAlignment = Number(icon); } } else { this.text = org.aswing.util.StringUtils.castString(text); if (icon != undefined) { if (icon instanceof org.aswing.Icon) { this.icon = org.aswing.Icon(icon); } else { this.horizontalAlignment = Number(icon); } } } updateUI(); } function updateUI() { setUI(org.aswing.plaf.LabelUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("LabelUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicLabelUI); } function setContent(text, icon) { if (this.text != text) { this.text = text; } if (this.icon != icon) { uninstallIconWhenNextPaint(this.icon); this.icon = icon; } repaint(); invalidate(); } function setText(text) { if (this.text != text) { this.text = text; repaint(); invalidate(); } } function getText() { return(text); } function setIcon(icon) { if (this.icon != icon) { uninstallIconWhenNextPaint(this.icon); this.icon = icon; repaint(); invalidate(); } } function getIcon() { return(icon); } function getDisabledIcon() { if (disabledIcon == null) { if (icon != null) { disabledIcon = new org.aswing.overflow.GrayFilteredIcon(icon); } } return(disabledIcon); } function setDisabledIcon(disabledIcon) { var _local2 = this.disabledIcon; this.disabledIcon = disabledIcon; if (disabledIcon != _local2) { uninstallIconWhenNextPaint(_local2); if (!isEnabled()) { repaint(); invalidate(); } } } function getVerticalAlignment() { return(verticalAlignment); } function setVerticalAlignment(alignment) { if (alignment == verticalAlignment) { return(undefined); } verticalAlignment = alignment; repaint(); } function getHorizontalAlignment() { return(horizontalAlignment); } function setHorizontalAlignment(alignment) { if (alignment == horizontalAlignment) { return(undefined); } horizontalAlignment = alignment; repaint(); } function getVerticalTextPosition() { return(verticalTextPosition); } function setVerticalTextPosition(textPosition) { if (textPosition == verticalTextPosition) { return(undefined); } verticalTextPosition = textPosition; repaint(); } function getHorizontalTextPosition() { return(horizontalTextPosition); } function setHorizontalTextPosition(textPosition) { if (textPosition == horizontalTextPosition) { return(undefined); } horizontalTextPosition = textPosition; repaint(); } function getIconTextGap() { return(iconTextGap); } function setIconTextGap(iconTextGap) { var _local2 = this.iconTextGap; this.iconTextGap = iconTextGap; if (iconTextGap != _local2) { revalidate(); repaint(); } } static var CENTER = org.aswing.ASWingConstants.CENTER; static var TOP = org.aswing.ASWingConstants.TOP; static var LEFT = org.aswing.ASWingConstants.LEFT; static var BOTTOM = org.aswing.ASWingConstants.BOTTOM; static var RIGHT = org.aswing.ASWingConstants.RIGHT; static var HORIZONTAL = org.aswing.ASWingConstants.HORIZONTAL; static var VERTICAL = org.aswing.ASWingConstants.VERTICAL; }
Symbol 459 MovieClip [__Packages.org.aswing.plaf.LabelUI] Frame 0
class org.aswing.plaf.LabelUI extends org.aswing.plaf.ComponentUI { function LabelUI () { super(); } }
Symbol 460 MovieClip [__Packages.org.aswing.plaf.basic.BasicLabelUI] Frame 0
class org.aswing.plaf.basic.BasicLabelUI extends org.aswing.plaf.LabelUI { static var labelUI, viewRect, textRect, iconRect; var lastPaintedIconMap, topTextFieldMap, bottomTextFieldMap; function BasicLabelUI () { super(); lastPaintedIconMap = new org.aswing.util.HashMap(); topTextFieldMap = new org.aswing.util.HashMap(); bottomTextFieldMap = new org.aswing.util.HashMap(); checkRectsForCountLayout(); } static function createInstance(c) { if (labelUI == null) { labelUI = new org.aswing.plaf.basic.BasicLabelUI(); } return(labelUI); } function getPropertyPrefix() { return(propertyPrefix); } function installUI(c) { var _local2 = org.aswing.JLabel(c); installDefaults(_local2); installListeners(_local2); } function installDefaults(b) { var _local2 = getPropertyPrefix(); org.aswing.LookAndFeel.installColorsAndFont(b, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBorder(b, _local2 + "border"); org.aswing.LookAndFeel.installBasicProperties(b, _local2); } function installListeners(b) { } function uninstallUI(c) { var _local2 = org.aswing.JLabel(c); uninstallDefaults(_local2); uninstallListeners(_local2); removeMCs(_local2); lastPaintedIconMap.remove(c.getID()); topTextFieldMap.remove(c.getID()); bottomTextFieldMap.remove(c.getID()); } function uninstallDefaults(b) { org.aswing.LookAndFeel.uninstallBorder(b); } function uninstallListeners(b) { } function removeMCs(c) { getTopTextField(c).removeTextField(); getBottomTextField(c).removeTextField(); } function create(c) { var _local3 = c.createTextField("t_text"); var _local4 = c.createTextField("b_text"); topTextFieldMap.put(c.getID(), _local3); bottomTextFieldMap.put(c.getID(), _local4); c.setFontValidated(false); } function getTopTextField(c) { return(TextField(topTextFieldMap.get(c.getID()))); } function getBottomTextField(c) { return(TextField(bottomTextFieldMap.get(c.getID()))); } static function checkRectsForCountLayout() { if (viewRect == null) { viewRect = new org.aswing.geom.Rectangle(); textRect = new org.aswing.geom.Rectangle(); iconRect = new org.aswing.geom.Rectangle(); } } function paint(c, g, r) { super.paint(c, g, r); var _local3 = org.aswing.JLabel(c); viewRect.setRect(r); textRect.x = (textRect.y = (textRect.width = (textRect.height = 0))); iconRect.x = (iconRect.y = (iconRect.width = (iconRect.height = 0))); var _local4 = org.aswing.ASWingUtils.layoutCompoundLabel(c.getFont(), _local3.getText(), _local3.getIcon(), _local3.getVerticalAlignment(), _local3.getHorizontalAlignment(), _local3.getVerticalTextPosition(), _local3.getHorizontalTextPosition(), viewRect, iconRect, textRect, ((_local3.getText() == null) ? 0 : (_local3.getIconTextGap()))); paintIcon(_local3, g, iconRect); if ((_local4 != null) && (_local4 != "")) { paintText(_local3, textRect, _local4); } else { getTopTextField(_local3).text = ""; getBottomTextField(_local3).text = ""; } } function paintText(b, textRect, text) { var _local3 = b.getFont(); if (b.isEnabled()) { paintTextField(b, textRect, getTopTextField(b), text, _local3, b.getForeground()); getBottomTextField(b)._visible = false; } else { getBottomTextField(b)._visible = true; paintTextField(b, textRect, getTopTextField(b), text, _local3, b.getBackground().darker()); var _local4 = new org.aswing.geom.Rectangle(textRect); _local4.x++; _local4.y++; b.setFontValidated(false); paintTextField(b, _local4, getBottomTextField(b), text, _local3, b.getBackground().brighter()); } } function paintTextField(b, tRect, textField, text, font, color) { if (textField.text != text) { textField.text = text; } if (!b.isFontValidated()) { org.aswing.ASWingUtils.applyTextFont(textField, font); b.setFontValidated(true); } org.aswing.ASWingUtils.applyTextColor(textField, color); textField._x = tRect.x; textField._y = tRect.y; } function paintIcon(b, g, iconRect) { var _local3 = b.getIcon(); if (_local3 == null) { unistallLastPaintIcon(b, _local3); return(undefined); } if (!b.isEnabled()) { if (b.getDisabledIcon() != null) { _local3 = b.getDisabledIcon(); } } unistallLastPaintIcon(b, _local3); _local3.paintIcon(b, g, iconRect.x, iconRect.y); setJustPaintedIcon(b, _local3); } function unistallLastPaintIcon(b, currentIcon) { var _local2 = org.aswing.Icon(lastPaintedIconMap.get(b.getID())); if (_local2 != currentIcon) { _local2.uninstallIcon(b); } } function setJustPaintedIcon(b, ic) { lastPaintedIconMap.put(b.getID(), ic); } function getLabelPreferredSize(b, icon, text) { viewRect.setRect(0, 0, 100000, 100000); textRect.x = (textRect.y = (textRect.width = (textRect.height = 0))); iconRect.x = (iconRect.y = (iconRect.width = (iconRect.height = 0))); org.aswing.ASWingUtils.layoutCompoundLabel(b.getFont(), text, icon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRect, ((b.getText() == null) ? 0 : (b.getIconTextGap()))); var _local3 = iconRect.union(textRect); var _local2 = _local3.getSize(); _local2 = b.getInsets().getOutsideSize(_local2); return(_local2); } function getPreferredSize(c) { var _local2 = org.aswing.JLabel(c); var _local4 = _local2.getIcon(); var _local3 = _local2.getText(); return(getLabelPreferredSize(_local2, _local4, _local3)); } function getMinimumSize(c) { return(new org.aswing.geom.Dimension(0, 0)); } function getMaximumSize(c) { return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } static var propertyPrefix = "Label."; }
Symbol 461 MovieClip [__Packages.org.aswing.JToolTip] Frame 0
class org.aswing.JToolTip extends org.aswing.Container { var setName, offsets, offsetsRelatedToMouse, waitThenPopupEnabled, compListener, mouseMovedListener, timer, setTriggerEnabled, comp, dispatchEvent, createEventObj, tipText, mcPane, root_mc, isShowing, getPreferredSize, setGlobalLocation, setSize, removeFromContainer, repaint, revalidate; function JToolTip () { super(); setName("JToolTip"); offsets = new org.aswing.geom.Point(4, 20); offsetsRelatedToMouse = true; waitThenPopupEnabled = true; compListener = new Object(); compListener[org.aswing.Component.ON_ROLLOVER] = org.aswing.util.Delegate.create(this, ____compRollOver); compListener[org.aswing.Component.ON_ROLLOUT] = org.aswing.util.Delegate.create(this, ____compRollOut); compListener[org.aswing.Component.ON_HIDDEN] = compListener[org.aswing.Component.ON_ROLLOUT]; compListener[org.aswing.Component.ON_DESTROY] = compListener[org.aswing.Component.ON_ROLLOUT]; compListener[org.aswing.Component.ON_PRESS] = compListener[org.aswing.Component.ON_ROLLOUT]; mouseMovedListener = new Object(); mouseMovedListener.onMouseMove = org.aswing.util.Delegate.create(this, __onMouseMoved); timer = new org.aswing.util.Timer(Number.POSITIVE_INFINITY); timer.setRepeats(false); timer.setInitialDelay(WAIT_TIME); timer.addActionListener(__timeOnAction, this); setTriggerEnabled(false); updateUI(); } function startWaitToPopup() { if ((getTimer() - last_tip_dropped_time) < FAST_OCCUR_TIME) { timer.setInitialDelay(FAST_OCCUR_TIME); } else { timer.setInitialDelay(WAIT_TIME); } timer.restart(); Mouse.addListener(mouseMovedListener); } function stopWaitToPopup() { timer.stop(); Mouse.removeListener(mouseMovedListener); last_tip_dropped_time = getTimer(); } function setWaitThenPopupEnabled(b) { waitThenPopupEnabled = b; } function isWaitThenPopupEnabled() { return(waitThenPopupEnabled); } function __compRollOver(source) { if ((source == comp) && (isWaitThenPopupEnabled())) { startWaitToPopup(); } } function __compRollOut(source) { if ((source == comp) && (isWaitThenPopupEnabled())) { disposeToolTip(); } } function __onMouseMoved() { if (timer.isRunning()) { timer.restart(); } } function __timeOnAction() { timer.stop(); dispatchEvent(createEventObj(ON_TIP_SHOWING)); disposeToolTip(); viewToolTip(); } function viewToolTip() { if (tipText == null) { return(undefined); } if ((mcPane == null) || (!mcPane.contains(this))) { mcPane = new org.aswing.MCPanel(getTargetComponent().getRootAncestorMovieClip(), 10000, 10000); mcPane.setLayout(new org.aswing.EmptyLayout()); mcPane.append(this); } var _local3 = mcPane.getPanelMC(); var _local2 = new org.aswing.geom.Point(); if (offsetsRelatedToMouse) { _local2.setLocation(_local3._xmouse, _local3._ymouse); _local3.localToGlobal(_local2); } else { _local2 = getTargetComponent().getGlobalLocation(); } moveLocationRelatedTo(_local2); org.aswing.util.DepthManager.bringToTop(root_mc); } function moveLocationRelatedTo(globalPos) { if (!isShowing()) { return(undefined); } globalPos = new org.aswing.geom.Point(globalPos); globalPos.move(offsets.x, offsets.y); var _local4 = getPreferredSize(); var _local3 = org.aswing.ASWingUtils.getVisibleMaximizedBounds(root_mc._parent); if ((globalPos.x + _local4.width) > (_local3.x + _local3.width)) { globalPos.x = (_local3.x + _local3.width) - _local4.width; } if ((globalPos.y + _local4.height) > (_local3.y + _local3.height)) { globalPos.y = (_local3.y + _local3.height) - _local4.height; } if (globalPos.x < _local3.x) { globalPos.x = _local3.x; } if (globalPos.y < _local3.y) { globalPos.y = _local3.y; } globalPos.x = Math.round(globalPos.x); globalPos.y = Math.round(globalPos.y); setGlobalLocation(globalPos); setSize(_local4); } function showToolTip() { viewToolTip(); } function disposeToolTip() { stopWaitToPopup(); removeFromContainer(); } function updateUI() { setUI(org.aswing.plaf.ToolTipUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("ToolTipUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicToolTipUI); } function setTipText(t) { if (t != tipText) { tipText = t; dispatchEvent(createEventObj(ON_TIP_TEXT_CHANGED)); if (t == null) { disposeToolTip(); } else if (isShowing()) { setSize(getPreferredSize()); repaint(); revalidate(); } } } function getTipText() { return(tipText); } function setTargetComponent(c) { if (c != comp) { comp.removeEventListener(compListener); comp = c; comp.addEventListener(compListener); } } function getTargetComponent() { return(comp); } function setOffsets(o) { offsets.setLocation(o); } function getOffsets() { return(new org.aswing.geom.Point(offsets)); } function setOffsetsRelatedToMouse(b) { offsetsRelatedToMouse = b; } function isOffsetsRelatedToMouse() { return(offsetsRelatedToMouse); } function ____compRollOver(source) { __compRollOver(source); } function ____compRollOut(source) { __compRollOut(source); } static var ON_TIP_TEXT_CHANGED = "onTipTextChanged"; static var ON_TIP_SHOWING = "onTipShowing"; static var WAIT_TIME = 600; static var FAST_OCCUR_TIME = 50; static var last_tip_dropped_time = 0; }
Symbol 462 MovieClip [__Packages.org.aswing.plaf.ToolTipUI] Frame 0
class org.aswing.plaf.ToolTipUI extends org.aswing.plaf.ComponentUI { function ToolTipUI () { super(); } }
Symbol 463 MovieClip [__Packages.org.aswing.plaf.basic.BasicToolTipUI] Frame 0
class org.aswing.plaf.basic.BasicToolTipUI extends org.aswing.plaf.ToolTipUI { static var toolTipUI; var labels, tipListeners; function BasicToolTipUI () { super(); labels = new org.aswing.util.HashMap(); tipListeners = new org.aswing.util.HashMap(); } static function createInstance(c) { if (toolTipUI == null) { toolTipUI = new org.aswing.plaf.basic.BasicToolTipUI(); } return(toolTipUI); } function installUI(c) { var _local2 = org.aswing.JToolTip(c); installDefaults(_local2); initallComponents(_local2); installListeners(_local2); } function installDefaults(b) { var _local1 = "ToolTip."; org.aswing.LookAndFeel.installColorsAndFont(b, _local1 + "background", _local1 + "foreground", _local1 + "font"); org.aswing.LookAndFeel.installBorder(b, _local1 + "border"); org.aswing.LookAndFeel.installBasicProperties(b, _local1); } function getLabel(c) { return(org.aswing.JLabel(labels.get(c.getID()))); } function initallComponents(b) { b.setLayout(new org.aswing.BorderLayout()); var _local2 = new org.aswing.JLabel(b.getTipText()); _local2.setTriggerEnabled(false); _local2.setFont(null); b.append(_local2, org.aswing.BorderLayout.CENTER); labels.put(b.getID(), _local2); } function installListeners(b) { var _local2 = b.addEventListener(org.aswing.JToolTip.ON_TIP_TEXT_CHANGED, __tipTextChanged, this); tipListeners.put(b.getID(), _local2); } function __tipTextChanged(toolTip) { getLabel(toolTip).setText(toolTip.getTipText()); } function uninstallUI(c) { var _local2 = org.aswing.JToolTip(c); uninstallDefaults(_local2); uninstallListeners(_local2); uninstallComponents(_local2); } function uninstallDefaults(b) { org.aswing.LookAndFeel.uninstallBorder(b); } function uninstallComponents(b) { var _local2 = org.aswing.JLabel(labels.remove(b.getID())); b.remove(_local2); } function uninstallListeners(b) { b.removeEventListener(tipListeners.remove(b.getID())); } }
Symbol 464 MovieClip [__Packages.org.aswing.overflow.JSharedToolTip] Frame 0
class org.aswing.overflow.JSharedToolTip extends org.aswing.JToolTip { static var sharedInstance; var setName, compListener, setTipText, disposeToolTip, targetedComponent, isWaitThenPopupEnabled, startWaitToPopup; function JSharedToolTip () { super(); setName("JSharedToolTip"); } static function getSharedInstance() { if (sharedInstance == undefined) { sharedInstance = new org.aswing.overflow.JSharedToolTip(); } return(sharedInstance); } function registerComponent(c) { c.removeEventListener(compListener); c.addEventListener(compListener); if (getTargetComponent() == c) { setTipText(c.getToolTipText()); } } function unregisterComponent(c) { c.removeEventListener(compListener); if (getTargetComponent() == c) { disposeToolTip(); targetedComponent = null; } } function setTargetComponent(c) { registerComponent(c); } function getTargetComponent() { return(targetedComponent); } function __compRollOver(source) { if ((source.getToolTipText() != null) && (isWaitThenPopupEnabled())) { targetedComponent = source; setTipText(targetedComponent.getToolTipText()); startWaitToPopup(); } } function __compRollOut(source) { if ((source == targetedComponent) && (isWaitThenPopupEnabled())) { disposeToolTip(); targetedComponent = null; } } }
Symbol 465 MovieClip [__Packages.org.aswing.plaf.ListUI] Frame 0
class org.aswing.plaf.ListUI extends org.aswing.plaf.ComponentUI { function ListUI () { super(); } }
Symbol 466 MovieClip [__Packages.org.aswing.plaf.basic.BasicListUI] Frame 0
class org.aswing.plaf.basic.BasicListUI extends org.aswing.plaf.ListUI { var list, listListener, paintFocusedCell, paintFocusedIndex, pressedIndex, pressedCtrl, pressedShift, doSelectionWhenRelease; function BasicListUI () { super(); } function installUI(c) { list = org.aswing.overflow.JList(c); installDefaults(list); installListeners(list); } function installDefaults(c) { var _local2 = "List."; org.aswing.LookAndFeel.installColorsAndFont(c, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBorder(c, "List.border"); org.aswing.LookAndFeel.installBasicProperties(c, _local2); var _local4 = list.getSelectionBackground(); if ((_local4 === undefined) || (_local4 instanceof org.aswing.plaf.UIResource)) { list.setSelectionBackground(org.aswing.UIManager.getColor("List.selectionBackground")); } var _local3 = list.getSelectionForeground(); if ((_local3 === undefined) || (_local3 instanceof org.aswing.plaf.UIResource)) { list.setSelectionForeground(org.aswing.UIManager.getColor("List.selectionForeground")); } } function installListeners(c) { listListener = new Object(); listListener[org.aswing.overflow.JList.ON_ITEM_PRESS] = org.aswing.util.Delegate.create(this, __onItemPress); listListener[org.aswing.overflow.JList.ON_ITEM_RELEASE] = org.aswing.util.Delegate.create(this, __onItemRelease); listListener[org.aswing.overflow.JList.ON_KEY_DOWN] = org.aswing.util.Delegate.create(this, __onKeyDown); listListener[org.aswing.overflow.JList.ON_FOCUS_LOST] = org.aswing.util.Delegate.create(this, __onFocusLost); listListener[org.aswing.overflow.JList.ON_SELECTION_CHANGED] = org.aswing.util.Delegate.create(this, __onSelectionChanged); listListener[org.aswing.overflow.JList.ON_MOUSE_WHEEL] = org.aswing.util.Delegate.create(this, __onMouseWheel); list.addEventListener(listListener); } function uninstallUI(c) { var _local2 = org.aswing.overflow.JList(c); uninstallDefaults(_local2); uninstallListeners(_local2); } function uninstallDefaults(p) { org.aswing.LookAndFeel.uninstallBorder(p); } function uninstallListeners(p) { list.removeEventListener(listListener); } function paintFocus(c, g) { super.paintFocus(c, g); paintCurrentCellFocus(); } function clearFocus(c) { super.clearFocus(c); clearCellFocusGraphics(); } function paintCurrentCellFocus() { paintCellFocus(paintFocusedCell.getCellComponent()); } function paintCellFocusWithIndex(index) { clearCellFocusGraphics(); if ((index < 0) || (index >= list.getModel().getSize())) { return(undefined); } paintFocusedCell = list.getCellByIndex(index); paintFocusedIndex = index; if (list.isFocusOwner() && (org.aswing.FocusManager.getCurrentManager().isTraversing())) { paintCellFocus(paintFocusedCell.getCellComponent()); } } function paintCellFocus(cellComponent) { super.paintFocus(cellComponent, cellComponent.getFocusGraphics()); } function clearCellFocusGraphics() { paintFocusedCell.getCellComponent().clearFocusGraphics(); } function getIntervalSelectionKey() { return(16); } function getAdditionSelectionKey() { return(17); } function __onMouseWheel(source, delta) { if (!list.isEnabled()) { return(undefined); } var _local2 = list.getViewPosition(); _local2.y = _local2.y - (delta * list.getVerticalUnitIncrement()); list.setViewPosition(_local2); } function __onFocusLost() { clearCellFocusGraphics(); } function __onKeyDown() { if (!list.isEnabled()) { return(undefined); } var _local3 = Key.getCode(); var _local4 = 0; if (((_local3 == 38) || (_local3 == 40)) || (_local3 == 32)) { org.aswing.FocusManager.getCurrentManager().setTraversing(true); } if (_local3 == 38) { _local4 = -1; } else if (_local3 == 40) { _local4 = 1; } if (paintFocusedIndex == undefined) { paintFocusedIndex = list.getSelectedIndex(); } if (paintFocusedIndex < -1) { paintFocusedIndex = -1; } else if (paintFocusedIndex > list.getModel().getSize()) { paintFocusedIndex = list.getModel().getSize(); } var _local2 = paintFocusedIndex + _local4; if (_local3 == 36) { _local2 = 0; } else if (_local3 == 35) { _local2 = list.getModel().getSize() - 1; } if ((_local2 < 0) || (_local2 >= list.getModel().getSize())) { return(undefined); } if ((_local4 != 0) || ((_local3 == 36) || (_local3 == 35))) { if (Key.isDown(getIntervalSelectionKey())) { var _local5 = list.getAnchorSelectionIndex(); if (_local5 < 0) { _local5 = _local2; } list.setSelectionInterval(_local5, _local2); } else if (Key.isDown(getAdditionSelectionKey())) { } else { list.setSelectionInterval(_local2, _local2); } paintCellFocusWithIndex(_local2); list.ensureIndexIsVisible(_local2); } else if (_local3 == 32) { list.addSelectionInterval(_local2, _local2); paintCellFocusWithIndex(_local2); list.ensureIndexIsVisible(_local2); } } function __onSelectionChanged() { paintCellFocusWithIndex(list.getLeadSelectionIndex()); } function __onItemPress(source, value, cell) { var _local2 = list.getItemIndexByCell(cell); pressedIndex = _local2; pressedCtrl = Key.isDown(getAdditionSelectionKey()); pressedShift = Key.isDown(getIntervalSelectionKey()); doSelectionWhenRelease = false; if (list.getSelectionMode() == org.aswing.overflow.JList.MULTIPLE_SELECTION) { if (list.isSelectedIndex(_local2)) { doSelectionWhenRelease = true; } else { doSelection(); } } else { list.setSelectionInterval(_local2, _local2); } } function doSelection() { var _local2 = pressedIndex; if (pressedShift) { var _local3 = list.getAnchorSelectionIndex(); if (_local3 < 0) { _local3 = _local2; } list.setSelectionInterval(_local3, _local2); } else if (pressedCtrl) { if (!list.isSelectedIndex(_local2)) { list.addSelectionInterval(_local2, _local2); } else { list.removeSelectionInterval(_local2, _local2); } } else { list.setSelectionInterval(_local2, _local2); } } function __onItemRelease(source, value, cell) { if (doSelectionWhenRelease) { doSelection(); doSelectionWhenRelease = false; } } }
Symbol 467 MovieClip [__Packages.org.aswing.AbstractListModel] Frame 0
class org.aswing.AbstractListModel { var listeners; function AbstractListModel () { listeners = new Array(); } function addListDataListener(l) { listeners.push(l); } function removeListDataListener(l) { org.aswing.util.ArrayUtils.removeFromArray(listeners, l); } function fireContentsChanged(target, index0, index1, removedItems) { var _local4 = new org.aswing.event.ListDataEvent(target, org.aswing.event.ListDataEvent.CONTENTS_CHANGED, index0, index1, removedItems); var _local2 = listeners.length - 1; while (_local2 >= 0) { var _local3 = org.aswing.event.ListDataListener(listeners[_local2]); _local3.contentsChanged(_local4); _local2--; } } function fireIntervalAdded(target, index0, index1) { var _local4 = new org.aswing.event.ListDataEvent(target, org.aswing.event.ListDataEvent.INTERVAL_ADDED, index0, index1, []); var _local2 = listeners.length - 1; while (_local2 >= 0) { var _local3 = org.aswing.event.ListDataListener(listeners[_local2]); _local3.intervalAdded(_local4); _local2--; } } function fireIntervalRemoved(target, index0, index1, removedItems) { var _local4 = new org.aswing.event.ListDataEvent(target, org.aswing.event.ListDataEvent.INTERVAL_REMOVED, index0, index1, removedItems); var _local2 = listeners.length - 1; while (_local2 >= 0) { var _local3 = org.aswing.event.ListDataListener(listeners[_local2]); _local3.intervalRemoved(_local4); _local2--; } } }
Symbol 468 MovieClip [__Packages.org.aswing.MutableListModel] Frame 0
interface org.aswing.MutableListModel extends org.aswing.ListModel { }
Symbol 469 MovieClip [__Packages.org.aswing.VectorListModel] Frame 0
class org.aswing.VectorListModel extends org.aswing.AbstractListModel implements org.aswing.MutableListModel, org.aswing.util.List { var array, fireIntervalAdded, fireContentsChanged, fireIntervalRemoved; function VectorListModel (array) { super(); if (array == undefined) { this.array = new Array(); } else { this.array = array; } } function get(i) { return(array[i]); } function getElementAt(i) { return(eval (i)); } function append(obj, index) { if (index == undefined) { index = array.length; array.push(obj); } else { array.splice(index, 0, obj); } fireIntervalAdded(this, index, index); } function replaceAt(index, element) { if ((index < 0) || (index >= size())) { return(null); } var _local3 = array[index]; array[index] = element; fireContentsChanged(this, index, index, [_local3]); return(_local3); } function appendAll(arr, index) { if ((arr == undefined) || (arr.length <= 0)) { return(undefined); } if (index == undefined) { index = array.length; } if (index == 0) { array = arr.concat(array); } else if (index == array.length) { array = array.concat(arr); } else { var _local4 = array.splice(index); array = array.concat(arr); array = array.concat(_local4); } fireIntervalAdded(this, index, (index + arr.length) - 1); } function valueChanged(obj) { valueChangedAt(indexOf(obj)); } function valueChangedAt(index) { if ((index >= 0) && (index < array.length)) { fireContentsChanged(this, index, index, []); } } function valueChangedRange(from, to) { fireContentsChanged(this, from, to, []); } function removeAt(index) { if ((index < 0) || (index >= size())) { return(null); } var _local3 = array[index]; array.splice(index, 1); fireIntervalRemoved(this, index, index, [_local3]); return(_local3); } function remove(obj) { var _local2 = indexOf(obj); if (_local2 >= 0) { return(removeAt(_local2)); } return(null); } function removeRange(fromIndex, toIndex) { if (array.length > 0) { fromIndex = Math.max(0, fromIndex); toIndex = Math.min(toIndex, array.length - 1); if (fromIndex > toIndex) { return([]); } var _local4 = array.splice(fromIndex, (toIndex - fromIndex) + 1); fireIntervalRemoved(this, fromIndex, toIndex, _local4); return(_local4); } return([]); } function removeElementAt(index) { removeAt(index); } function insertElementAt(item, index) { append(item, index); } function indexOf(obj) { var _local2 = 0; while (_local2 < array.length) { if (array[_local2] == obj) { return(_local2); } _local2++; } return(-1); } function contains(obj) { return(indexOf(obj) >= 0); } function appendList(list, index) { appendAll(list.toArray(), index); } function pop() { if (size() > 0) { return(removeAt(size() - 1)); } return(undefined); } function shift() { if (size() > 0) { return(removeAt(0)); } return(undefined); } function first() { return(array[0]); } function last() { return(array[array.length - 1]); } function size() { return(array.length); } function isEmpty() { return(array.length <= 0); } function getSize() { return(size()); } function clear() { var _local2 = size() - 1; if (_local2 >= 0) { var _local3 = toArray(); array.splice(0); fireIntervalRemoved(this, 0, _local2, _local3); } } function toArray() { return(array.concat()); } function subArray(startIndex, length) { if ((size() == 0) || (length <= 0)) { return(new Array()); } return(array.slice(startIndex, Math.min(startIndex + length, size()))); } function sort(compare, options) { var _local2 = array.sort(compare, options); fireContentsChanged(this, 0, array.length - 1, []); return(_local2); } function sortOn(key, options) { var _local2 = array.sortOn(key, options); fireContentsChanged(this, 0, array.length - 1, []); return(_local2); } function toString() { return("VectorListModel : " + array.toString()); } }
Symbol 470 MovieClip [__Packages.org.aswing.RepaintManager] Frame 0
class org.aswing.RepaintManager extends org.aswing.EventDispatcher { static var instance; var repaintQueue, validateQueue, afterNextTimeFuncs, beforeNextTimeFuncs, dispatchEvent, createEventObj; function RepaintManager () { super(); org.aswing.util.EnterFrameEventDispatcher.addEventListener(tick, this); repaintQueue = new org.aswing.util.HashMap(); validateQueue = new org.aswing.util.HashMap(); afterNextTimeFuncs = new Array(); beforeNextTimeFuncs = new Array(); } static function getInstance() { if (instance == null) { instance = new org.aswing.RepaintManager(); } return(instance); } function addCallAfterNextPaintTime(func) { afterNextTimeFuncs.push(func); } function addCallBeforeNextPaintTime(func) { beforeNextTimeFuncs.push(func); } function addRepaintComponent(com) { repaintQueue.put(com.getID(), com); } function addInvalidComponent(com) { var _local2 = getValidateRootComponent(com); if (_local2 != null) { validateQueue.put(_local2.getID(), _local2); } } function addInvalidRootComponent(com) { validateQueue.put(com.getID(), com); } function getValidateRootComponent(com) { var _local2 = null; var _local1 = com; while (_local1 != null) { if (_local1.isValidateRoot()) { _local2 = _local1; break; } _local1 = _local1.getParent(); } var _local4 = null; _local1 = _local2; while (_local1 != null) { if (!_local1.isVisible()) { } _local1 = _local1.getParent(); } return(_local2); } function tick() { var _local2; var _local3; dispatchEvent(createEventObj(ON_BEFORE_PAINT)); var _local7 = beforeNextTimeFuncs; beforeNextTimeFuncs = new Array(); _local3 = _local7.length; _local2 = -1; while (_local2++ , _local2 < _local3) { _local7[_local2](); } var _local5 = validateQueue.values(); validateQueue.clear(); _local3 = _local5.length; _local2 = -1; if (_local3 > 0) { } while (_local2++ , _local2 < _local3) { var _local4 = org.aswing.Component(_local5[_local2]); _local4.validate(); } var _local8 = repaintQueue.values(); repaintQueue.clear(); _local3 = _local8.length; _local2 = -1; while (_local2++ , _local2 < _local3) { var _local4 = org.aswing.Component(_local8[_local2]); _local4.paintImmediately(); } var _local6 = afterNextTimeFuncs; afterNextTimeFuncs = new Array(); _local3 = _local6.length; _local2 = -1; while (_local2++ , _local2 < _local3) { _local6[_local2](); } dispatchEvent(createEventObj(ON_AFTER_PAINT)); } static var ON_BEFORE_PAINT = "onBeforePaint"; static var ON_AFTER_PAINT = "onAfterPaint"; }
Symbol 471 MovieClip [__Packages.org.aswing.dnd.ListSourceData] Frame 0
class org.aswing.dnd.ListSourceData extends org.aswing.dnd.SourceData { var itemIndices; function ListSourceData (name, itemIndices) { super(name, itemIndices); this.itemIndices = itemIndices; } function getItemIndices() { return(itemIndices); } static var DEFAULT_LIST_AUTO_DRAG_DATA_NAME = "DEFAULT_LIST_AUTO_DRAG_DATA_NAME"; }
Symbol 472 MovieClip [__Packages.org.aswing.dnd.ListDragImage] Frame 0
class org.aswing.dnd.ListDragImage implements org.aswing.dnd.DraggingImage { var height, width, number, x, y, target, textField; function ListDragImage (list, offsetY) { height = list.getCellFactory().getCellHeight(); if (height == null) { height = 18; } width = list.getInsets().getInsideSize(list.getSize()).width - 10; number = list.getSelectedIndices().length; x = 0; y = offsetY; } function setCanvas(target) { this.target = target; textField.removeTextField(); textField = org.aswing.ElementCreater.getInstance().createTF(target, "n_of_draging_text"); } function switchToAcceptImage() { target.clear(); drawItems(new org.aswing.graphics.Graphics(target), true); } function switchToRejectImage() { target.clear(); drawItems(new org.aswing.graphics.Graphics(target), false); } function drawItems(g, allow) { var _local4 = width; var _local3 = height; var _local2 = Math.min(_local4, _local3) - 2; if (!allow) { g.drawLine(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__RED(), 2), x + 1, y + 1, (x + 1) + _local2, (y + 1) + _local2); g.drawLine(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__RED(), 2), (x + 1) + _local2, y + 1, x + 1, (y + 1) + _local2); } textField._visible = false; if (number > 1) { if (number > 2) { g.drawRectangle(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__GRAY()), x + 4, y + 4, _local4 - 3, _local3 - 2); textField._visible = true; textField._x = (x + width) + 2; textField._y = y; textField.text = number + ""; } g.drawRectangle(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__GRAY()), x + 2, y + 2, _local4 - 1, _local3 - 1); } g.drawRectangle(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__GRAY()), x, y, _local4, _local3); } }
Symbol 473 MovieClip [__Packages.org.aswing.DefaultComboBoxEditor] Frame 0
class org.aswing.DefaultComboBoxEditor extends org.aswing.EventDispatcher implements org.aswing.ComboBoxEditor { var value, addEventListener, textField, dispatchEvent, createEventObj; function DefaultComboBoxEditor () { super(); value = null; } function addActionListener(func, obj) { return(addEventListener(ON_ACT, func, obj)); } function setEditable(b) { getTextField().setEditable(b); getTextField().setEnabled(b); getTextField().setFocusable(b); } function isEditable() { return(getTextField().isEditable()); } function getEditorComponent() { return(getTextField()); } function setValue(v) { getTextField().setText(v.toString()); value = v; } function getValue() { return(value); } function selectAll() { getTextField().selectAll(); getTextField().requestFocus(); } function toString() { return("DefaultComboBoxEditor[]"); } function getTextField() { if (textField == null) { textField = new org.aswing.JTextField(null, 1); textField.setBorder(null); textField.setForeground(org.aswing.UIManager.getColor("ComboBox.foreground")); textField.setTriggerEnabled(false); textField.setOpaque(false); initHandler(); } return(textField); } function initHandler() { textField.addActionListener(__textFieldActed, this); textField.addEventListener(org.aswing.Component.ON_FOCUS_LOST, __grapValueFormText, this); } function __grapValueFormText() { value = getTextField().getText(); } function __textFieldActed() { __grapValueFormText(); dispatchEvent(createEventObj(ON_ACT)); } static var ON_ACT = org.aswing.EventDispatcher.ON_ACT; }
Symbol 474 MovieClip [__Packages.org.aswing.JTextField] Frame 0
class org.aswing.JTextField extends org.aswing.JTextComponent { var setName, text, addEventListener, setUI, columns, displayable, revalidate, getColumnWidth, getWidthMargin, getHeightMargin, getRowHeight, getInsets, getTextFieldAutoSizedSize, fireActionEvent; function JTextField (text, columns) { super(); setName("JTextField"); this.text = ((text == undefined) ? "" : (text)); setColumns(columns); updateUI(); addEventListener(org.aswing.Component.ON_KEY_DOWN, __fireActionIfEnterKeyDown, this); } function updateUI() { setUI(org.aswing.plaf.TextUI(org.aswing.UIManager.getUI(this))); } function getUIClassID() { return("TextFieldUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicTextFieldUI); } function setColumns(columns) { if (columns == undefined) { columns = 0; } if (columns < 0) { columns = 0; } if (this.columns != columns) { this.columns = columns; if (displayable) { revalidate(); } } } function getColumns() { return(columns); } function isAutoSize() { return(columns == 0); } function addActionListener(fuc, obj) { return(addEventListener(org.aswing.EventDispatcher.ON_ACT, fuc, obj)); } function countPreferredSize() { if (columns > 0) { var _local3 = getColumnWidth(); var _local4 = (_local3 * columns) + getWidthMargin(); var _local5 = getRowHeight() + getHeightMargin(); var _local2 = new org.aswing.geom.Dimension(_local4, _local5); return(getInsets().getOutsideSize(_local2)); } return(getInsets().getOutsideSize(getTextFieldAutoSizedSize())); } function __fireActionIfEnterKeyDown() { if (Key.getCode() == 13) { fireActionEvent(); } } }
Symbol 475 MovieClip [__Packages.org.aswing.plaf.TextUI] Frame 0
class org.aswing.plaf.TextUI extends org.aswing.plaf.ComponentUI { function TextUI () { super(); } }
Symbol 476 MovieClip [__Packages.org.aswing.plaf.basic.BasicTextComponentUI] Frame 0
class org.aswing.plaf.basic.BasicTextComponentUI extends org.aswing.plaf.TextUI { function BasicTextComponentUI () { super(); } function getPropertyPrefix() { return(""); } function installUI(c) { super.installUI(c); var _local3 = org.aswing.JTextComponent(c); installDefaults(_local3); installListeners(_local3); } function installDefaults(b) { var _local2 = getPropertyPrefix(); org.aswing.LookAndFeel.installColorsAndFont(b, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBorder(b, _local2 + "border"); org.aswing.LookAndFeel.installBasicProperties(b, getPropertyPrefix()); } function installListeners(b) { } function uninstallUI(c) { super.uninstallUI(c); var _local3 = org.aswing.JTextComponent(c); uninstallDefaults(_local3); uninstallListeners(_local3); } function uninstallDefaults(b) { org.aswing.LookAndFeel.uninstallBorder(b); } function uninstallListeners(b) { } function paint(c, g, r) { super.paint(c, g, r); } function getMinimumSize(c) { return(c.getInsets().getOutsideSize()); } function getMaximumSize(c) { return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } }
Symbol 477 MovieClip [__Packages.org.aswing.plaf.basic.BasicTextFieldUI] Frame 0
class org.aswing.plaf.basic.BasicTextFieldUI extends org.aswing.plaf.basic.BasicTextComponentUI { static var textUI; var highlight, shadow; function BasicTextFieldUI () { super(); highlight = org.aswing.UIManager.getColor("TextField.highlight"); shadow = org.aswing.UIManager.getColor("TextField.shadow"); } static function createInstance(c) { if (textUI == null) { textUI = new org.aswing.plaf.basic.BasicTextFieldUI(); } return(textUI); } function getPropertyPrefix() { return("TextField."); } function paintBackGround(c, g, r) { if (c.isOpaque() && (c.isEnabled())) { var _local8 = r.x; var _local6 = r.y; var _local9 = r.width; var _local7 = r.height; g.fillRectangle(new org.aswing.graphics.SolidBrush(c.getBackground()), _local8, _local6, _local9, _local7); var _local5 = [16250871, c.getBackground().getRGB()]; var _local3 = [50, 0]; var _local10 = [0, 100]; var _local4 = {matrixType:"box", x:_local8, y:_local6, w:_local9, h:_local7, r:(Math.PI/2)}; var _local2 = new org.aswing.graphics.GradientBrush(org.aswing.graphics.GradientBrush.LINEAR, _local5, _local3, _local10, _local4); g.fillRectangle(_local2, _local8, _local6, _local9, _local7); } } function getPreferredSize(c) { return(null); } }
Symbol 478 MovieClip [__Packages.org.aswing.plaf.ComboBoxUI] Frame 0
class org.aswing.plaf.ComboBoxUI extends org.aswing.plaf.ComponentUI { function ComboBoxUI () { super(); } function setPopupVisible(c, v) { } function isPopupVisible(c) { return(false); } function isFocusTraversable(c) { return(false); } }
Symbol 479 MovieClip [__Packages.org.aswing.plaf.basic.BasicComboBoxUI] Frame 0
class org.aswing.plaf.basic.BasicComboBoxUI extends org.aswing.plaf.ComboBoxUI implements org.aswing.LayoutManager { var box, arrowShadowColor, arrowLightColor, dropDownButton, oldRequestFocusMethod, dropDownListener, mouseListener, listListener, boxListener, popupTimer, containerListener, editorListener, scollPane, mcPane, maskMC, moveDir, popupDestinationY; function BasicComboBoxUI () { super(); } function installUI(c) { box = org.aswing.JComboBox(c); installDefaults(); installComponents(); installListeners(); } function uninstallUI(c) { box = org.aswing.JComboBox(c); uninstallDefaults(); uninstallComponents(); uninstallListeners(); } function installDefaults() { var _local2 = "ComboBox."; org.aswing.LookAndFeel.installBorder(box, _local2 + "border"); org.aswing.LookAndFeel.installColorsAndFont(box, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBasicProperties(box, _local2); arrowShadowColor = org.aswing.UIManager.getColor("ComboBox.arrowShadowColor"); arrowLightColor = org.aswing.UIManager.getColor("ComboBox.arrowLightColor"); box.setLayout(this); } function uninstallDefaults() { org.aswing.LookAndFeel.uninstallBorder(box); } function installComponents() { dropDownButton = createDropDownButton(); box.append(dropDownButton); oldRequestFocusMethod = box.requestFocus; box.requestFocus = org.aswing.util.Delegate.create(this, __requestFocus); } function uninstallComponents() { box.remove(dropDownButton); box.requestFocus = oldRequestFocusMethod; } function installListeners() { dropDownListener = new Object(); dropDownListener[org.aswing.Component.ON_ACT] = org.aswing.util.Delegate.create(this, __onDropDownPressed); dropDownListener[org.aswing.Component.ON_PRESS] = org.aswing.util.Delegate.create(this, __onDropDownPressed); dropDownListener[org.aswing.Component.ON_KEY_DOWN] = org.aswing.util.Delegate.create(this, __onKeyDownFromEditor); dropDownButton.addEventListener(dropDownListener); mouseListener = {onMouseDown:org.aswing.util.Delegate.create(this, __onMouseDown)}; listListener = new Object(); listListener[org.aswing.overflow.JList.ON_ITEM_RELEASE] = (listListener[org.aswing.overflow.JList.ON_ITEM_RELEASEOUTSIDE] = org.aswing.util.Delegate.create(this, __listItemReleased)); listListener[org.aswing.overflow.JList.ON_KEY_DOWN] = org.aswing.util.Delegate.create(this, __onKeyDownFromList); getPopupList().addEventListener(listListener); boxListener = box.addEventListener(org.aswing.Component.ON_PRESS, __onDropDownPressed, this); popupTimer = new org.aswing.util.Timer(40); popupTimer.addActionListener(__movePopup, this); containerListener = new Object(); containerListener[org.aswing.Container.ON_COM_ADDED] = org.aswing.util.Delegate.create(this, __onChildAdded); containerListener[org.aswing.Container.ON_COM_REMOVED] = org.aswing.util.Delegate.create(this, __onChildRemoved); box.addEventListener(containerListener); editorListener = new Object(); editorListener[org.aswing.Component.ON_KEY_DOWN] = org.aswing.util.Delegate.create(this, __onKeyDownFromEditor); if (box.getEditor().getEditorComponent() != undefined) { box.getEditor().getEditorComponent().addEventListener(editorListener); } } function uninstallListeners() { dropDownButton.removeEventListener(dropDownListener); getPopupList().removeEventListener(listListener); box.removeEventListener(boxListener); popupTimer.stop(); popupTimer = null; } function paintBackGround(c, g, b) { if (c.isOpaque()) { var _local2; _local2 = ((c.getBackground() == null) ? (org.aswing.ASColor.__get__WHITE()) : (c.getBackground())); if (!box.isEnabled()) { _local2 = _local2.darker(); } g.fillRectangle(new org.aswing.graphics.SolidBrush(_local2), b.x, b.y, b.width, b.height); } } function __requestFocus() { } function createDropDownButton() { var _local2 = new org.aswing.JButton(new org.aswing.plaf.basic.icon.ArrowIcon((Math.PI/2), 8, box.getBackground(), arrowLightColor, arrowShadowColor, box.getBackground())); _local2.setPreferredSize(16, 16); return(_local2); } function getScollPane() { if (scollPane == null) { scollPane = new org.aswing.JScrollPane(getPopupList()); scollPane.setBorder(new org.aswing.border.LineBorder()); scollPane.setOpaque(true); } return(scollPane); } function getPopupList() { return(box.getPopupList()); } function viewPopup() { var _local4 = getScollPane(); if ((mcPane == null) || (!mcPane.contains(_local4))) { mcPane = new org.aswing.MCPanel(box.getComponentRootAncestorMovieClip(), 10000, 10000); mcPane.append(_local4); var _local9 = mcPane.getPanelMC(); var _local8 = box.getWidth(); var _local6; if (box.getListCellFactory().isAllCellHasSameHeight()) { _local6 = box.getListCellFactory().getCellHeight(); } else { _local6 = box.getPreferredSize().height; } var _local2 = Math.min(box.getItemCount(), box.getMaximumRowCount()) * _local6; var _local3 = getScollPane().getInsets(); _local2 = _local2 + (_local3.top + _local3.bottom); _local3 = getPopupList().getInsets(); _local2 = _local2 + (_local3.top + _local3.bottom); _local4.setSize(_local8, _local2); var _local5 = startMoveToView(_local2); Mouse.removeListener(mouseListener); Mouse.addListener(mouseListener); dropDownButton.setTriggerEnabled(false); box.setTriggerEnabled(false); var _local10 = _local4; var _local7 = MovieClip(_local10.root_mc); maskMC = org.aswing.ElementCreater.getInstance().createMC(_local9, "comb_pop_mask"); if (_local7 != undefined) { var _local11 = new org.aswing.graphics.Graphics(maskMC); maskMC._parent.globalToLocal(_local5); _local11.fillRectangle(new org.aswing.graphics.SolidBrush(0), _local5.x, _local5.y, _local8, _local2); _local7.setMask(maskMC); getPopupList().requestFocus(); } else { trace("Mask popup list failed!"); maskMC.removeMovieClip(); maskMC = null; } } } function hidePopup() { mcPane.remove(getScollPane()); maskMC.unloadMovie(); maskMC.removeMovieClip(); maskMC = null; Mouse.removeListener(mouseListener); dropDownButton.setTriggerEnabled(true); box.setTriggerEnabled(true); popupTimer.stop(); returnFocusFromListToCombobox(); } function startMoveToView(height) { var _local7 = getScollPane(); var _local3 = height; var _local2 = box.componentToGlobal(new org.aswing.geom.Point(0, box.getHeight())); var _local4 = new org.aswing.geom.Point(_local2.x, (_local2.y - box.getHeight()) - _local3); var _local6 = org.aswing.ASWingUtils.getVisibleMaximizedBounds(); var _local5 = ((_local6.y + _local6.height) - _local2.y) - _local3; var _local9 = _local4.y - _local6.y; var _local8; if ((_local5 > 0) || (((_local5 < 0) && (_local9 < 0)) && (_local5 > _local9))) { moveDir = 1; popupDestinationY = _local2.y; _local7.setGlobalLocation(_local2.x, popupDestinationY - _local3); _local8 = _local2; } else { moveDir = -1; popupDestinationY = _local4.y; _local7.setGlobalLocation(_local4.x, popupDestinationY + _local3); _local8 = _local4; } popupTimer.restart(); return(new org.aswing.geom.Point(_local8)); } function setComboBoxValueFromListSelection() { var _local2 = getPopupList().getSelectedValue(); box.setSelectedItem(_local2); } function __movePopup() { var _local4 = getScollPane(); var _local5 = _local4.getHeight(); var _local7 = 10; var _local6 = 3; var _local2 = 50; if (_local5 < (_local2 * _local6)) { _local2 = Math.ceil(_local5 / _local6); } else if (_local5 > (_local2 * _local7)) { _local2 = Math.ceil(_local5 / _local7); } var _local3 = _local4.getGlobalLocation(); if (Math.abs(popupDestinationY - _local3.y) < _local2) { _local3.y = popupDestinationY; _local4.setGlobalLocation(_local3); popupTimer.stop(); getPopupList().ensureIndexIsVisible(getPopupList().getSelectedIndex()); getPopupList().requestFocus(); } else if (moveDir > 0) { _local3.y = _local3.y + _local2; _local4.setGlobalLocation(_local3); } else { _local3.y = _local3.y - _local2; _local4.setGlobalLocation(_local3); } _local4.revalidate(); updateAfterEvent(); } function __listItemReleased() { hidePopup(); setComboBoxValueFromListSelection(); } function __onDropDownPressed() { if (!isPopupVisible(box)) { setPopupVisible(box, true); } } function __onMouseDown() { if (popupTimer.isRunning() || (!getScollPane().hitTestMouse())) { hidePopup(); } } function __onChildAdded(source, com) { if (com == box.getEditor().getEditorComponent()) { com.addEventListener(editorListener); } } function __onChildRemoved(source, com) { if (com == box.getEditor().getEditorComponent()) { com.removeEventListener(editorListener); } } function __onKeyDownFromEditor() { if (!box.isEnabled()) { return(undefined); } if (Key.getCode() == 40) { org.aswing.FocusManager.getCurrentManager().setTraversing(true); setPopupVisible(box, true); } } function __onKeyDownFromList() { if (Key.getCode() == 13) { setPopupVisible(box, false); setComboBoxValueFromListSelection(); } else if ((Key.getCode() == 8) || (Key.getCode() == 27)) { setPopupVisible(box, false); getPopupList().setSelectedValue(box.getSelectedItem()); } } function returnFocusFromListToCombobox() { if (dropDownButton.hitTestMouse()) { dropDownButton.requestFocus(); if (dropDownButton.isFocusOwner()) { return(undefined); } } var _local2 = box.getEditor().getEditorComponent(); if (_local2.isEnabled()) { _local2.requestFocus(); if (_local2.isFocusOwner()) { return(undefined); } } dropDownButton.requestFocus(); if (!dropDownButton.isFocusOwner()) { box.transferFocus(); } } function setPopupVisible(c, v) { if (v) { viewPopup(); } else { hidePopup(); } } function isPopupVisible(c) { return(getScollPane().isShowing()); } function isFocusTraversable(c) { return(false); } function addLayoutComponent(comp, constraints) { } function removeLayoutComponent(comp) { } function preferredLayoutSize(target) { var _local4 = box.getInsets(); var _local5 = getPopupList().getPreferredSize(); var _local6 = _local5.width; var _local3 = box.getEditor().getEditorComponent().getPreferredSize().height; var _local2 = dropDownButton.getPreferredSize(); _local2.width = _local2.width + _local6; if (_local3 > _local2.height) { _local2.height = _local3; } return(_local4.getOutsideSize(_local2)); } function minimumLayoutSize(target) { return(box.getInsets().getOutsideSize(dropDownButton.getPreferredSize())); } function maximumLayoutSize(target) { return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } function layoutContainer(target) { var _local3 = target.getSize(); var _local2 = target.getInsets(); var _local5 = _local2.top; var _local9 = _local3.height - _local2.bottom; var _local8 = _local2.left; var _local7 = _local3.width - _local2.right; var _local6 = (_local3.height - _local2.top) - _local2.bottom; var _local4 = dropDownButton.getPreferredSize(); dropDownButton.setSize(_local4.width, _local6); dropDownButton.setLocation(_local7 - _local4.width, _local5); box.getEditor().getEditorComponent().setLocation(_local8, _local5); box.getEditor().getEditorComponent().setSize(((_local3.width - _local2.left) - _local2.right) - _local4.width, _local6); } function getLayoutAlignmentX(target) { return(0.5); } function getLayoutAlignmentY(target) { return(0.5); } function invalidateLayout(target) { } }
Symbol 480 MovieClip [__Packages.org.aswing.JScrollPane] Frame 0
class org.aswing.JScrollPane extends org.aswing.Container { var setName, vsbPolicy, hsbPolicy, scrollbarListener, viewport, remove, revalidate, dispatchEvent, createEventObj, addEventListener, hScrollBar, vScrollBar; function JScrollPane (viewOrViewport, vsbPolicy, hsbPolicy) { super(); setName("JScrollPane"); if (vsbPolicy == undefined) { vsbPolicy = SCROLLBAR_AS_NEEDED; } if (hsbPolicy == undefined) { hsbPolicy = SCROLLBAR_AS_NEEDED; } this.vsbPolicy = vsbPolicy; this.hsbPolicy = hsbPolicy; scrollbarListener = new Object(); scrollbarListener[org.aswing.JScrollBar.ON_ADJUSTMENT_VALUE_CHANGED] = org.aswing.util.Delegate.create(this, __onBarScroll); setVerticalScrollBar(new org.aswing.JScrollBar(org.aswing.JScrollBar.VERTICAL)); setHorizontalScrollBar(new org.aswing.JScrollBar(org.aswing.JScrollBar.HORIZONTAL)); if (viewOrViewport != null) { setView(viewOrViewport); } else { setViewport(new org.aswing.overflow.JViewport()); } setLayout(new org.aswing.ScrollPaneLayout()); updateUI(); } function updateUI() { setUI(org.aswing.plaf.ScrollPaneUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("ScrollPaneUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicScrollPaneUI); } function setLayout(layout) { if (layout instanceof org.aswing.ScrollPaneLayout) { super.setLayout(layout); } else { trace("Only on set ScrollPaneLayout to JScrollPane"); throw new Error("Only on set ScrollPaneLayout to JScrollPane"); } } function isValidateRoot() { return(true); } function setView(viewOrViewport) { if (viewOrViewport instanceof org.aswing.Viewportable) { setViewport(org.aswing.Viewportable(viewOrViewport)); } else if (viewOrViewport instanceof org.aswing.Component) { setViewportView(org.aswing.Component(viewOrViewport)); } } function setViewportView(view) { var _local2 = org.aswing.overflow.JViewport(getViewport()); if (_local2 != null) { _local2.setView(view); } else { setViewport(new org.aswing.overflow.JViewport(view)); } } function getViewportView() { var _local2 = org.aswing.overflow.JViewport(getViewport()); if (_local2 != null) { return(_local2.getView()); } return(null); } function setViewport(vp) { if (viewport != vp) { var _local5 = viewport; var _local3 = vp; if (viewport != null) { remove(viewport.getViewportPane()); } viewport = vp; if (viewport != null) { super.insert(-1, viewport.getViewportPane()); } revalidate(); dispatchEvent(createEventObj(ON_VIEWPORT_CHANGED, _local5, _local3)); } } function getViewport() { return(viewport); } function getVisibleRect() { return(new org.aswing.geom.Rectangle(getHorizontalScrollBar().getValue(), getVerticalScrollBar().getValue(), getHorizontalScrollBar().getVisibleAmount(), getVerticalScrollBar().getVisibleAmount())); } function addAdjustmentListener(func, obj) { return(addEventListener(ON_ADJUSTMENT_VALUE_CHANGED, func, obj)); } function __onBarScroll(scrollBar) { dispatchEvent(createEventObj(ON_ADJUSTMENT_VALUE_CHANGED, scrollBar)); } function setHorizontalScrollBar(horizontalScrollBar) { if (hScrollBar != horizontalScrollBar) { hScrollBar.removeEventListener(scrollbarListener); remove(hScrollBar); hScrollBar = horizontalScrollBar; hScrollBar.setName("HorizontalScrollBar"); super.insert(-1, hScrollBar); hScrollBar.addEventListener(scrollbarListener); revalidate(); } } function getHorizontalScrollBar() { return(hScrollBar); } function setHorizontalScrollBarPolicy(policy) { hsbPolicy = ((policy == undefined) ? (SCROLLBAR_AS_NEEDED) : (policy)); } function getHorizontalScrollBarPolicy() { return(hsbPolicy); } function setVerticalScrollBar(verticalScrollBar) { if (vScrollBar != verticalScrollBar) { vScrollBar.removeEventListener(scrollbarListener); remove(vScrollBar); vScrollBar = verticalScrollBar; vScrollBar.setName("verticalScrollBar"); super.insert(-1, vScrollBar); vScrollBar.addEventListener(scrollbarListener); revalidate(); } } function getVerticalScrollBar() { return(vScrollBar); } function setVerticalScrollBarPolicy(policy) { vsbPolicy = ((policy == undefined) ? (SCROLLBAR_AS_NEEDED) : (policy)); } function getVerticalScrollBarPolicy() { return(vsbPolicy); } function append(com, constraints) { trace("Can not add comp to JScrollPane"); throw new Error("Can not add comp to JScrollPane"); } function insert(i, com, constraints) { trace("Can not add comp to JScrollPane"); throw new Error("Can not add comp to JScrollPane"); } static var ON_ADJUSTMENT_VALUE_CHANGED = "onAdjustmentValueChanged"; static var ON_VIEWPORT_CHANGED = "onViewportChanged"; static var SCROLLBAR_AS_NEEDED = 0; static var SCROLLBAR_NEVER = 1; static var SCROLLBAR_ALWAYS = 2; }
Symbol 481 MovieClip [__Packages.org.aswing.JScrollBar] Frame 0
class org.aswing.JScrollBar extends org.aswing.Container { var unitIncrement, blockIncrement, model, ui, orientation, revalidate, modelListener, addEventListener, dispatchEvent, createEventObj, isEnabled, repaint, children; function JScrollBar (orientation, value, extent, min, max) { super(); if (value == undefined) { value = 0; } if (extent == undefined) { extent = 10; } if (min == undefined) { min = 0; } if (max == undefined) { max = 100; } if (orientation == undefined) { orientation = VERTICAL; } unitIncrement = 1; blockIncrement = ((extent == 0) ? 10 : (extent)); setOrientation(orientation); model = new org.aswing.DefaultBoundedRangeModel(value, extent, min, max); addListenerToModel(); updateUI(); } function setUI(ui) { super.setUI(ui); } function getUI() { return(org.aswing.plaf.ScrollBarUI(ui)); } function updateUI() { setUI(org.aswing.plaf.ScrollBarUI(org.aswing.UIManager.getUI(this))); } function getUIClassID() { return("ScrollBarUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.asw.ASWingScrollBarUI); } function getOrientation() { return(orientation); } function setOrientation(orientation) { var _local2 = this.orientation; this.orientation = orientation; if (orientation != _local2) { revalidate(); } } function getModel() { return(model); } function setModel(newModel) { var _local2 = model; if (model != null) { model.removeEventListener(modelListener); } model = newModel; if (model != null) { addListenerToModel(); } } function addListenerToModel() { modelListener = model.addChangeListener(__onModelStateChanged, this); } function __onModelStateChanged(event) { fireAdjustmentValueChanged(); } function setUnitIncrement(unitIncrement) { this.unitIncrement = unitIncrement; } function getUnitIncrement() { return(unitIncrement); } function setBlockIncrement(blockIncrement) { this.blockIncrement = blockIncrement; } function getBlockIncrement() { return(blockIncrement); } function getValue() { return(getModel().getValue()); } function setValue(value) { var _local2 = getModel(); _local2.setValue(value); } function getVisibleAmount() { return(getModel().getExtent()); } function setVisibleAmount(extent) { getModel().setExtent(extent); } function getMinimum() { return(getModel().getMinimum()); } function setMinimum(minimum) { getModel().setMinimum(minimum); } function getMaximum() { return(getModel().getMaximum()); } function setMaximum(maximum) { getModel().setMaximum(maximum); } function getValueIsAdjusting() { return(getModel().getValueIsAdjusting()); } function setValueIsAdjusting(b) { var _local2 = getModel(); _local2.setValueIsAdjusting(b); } function setValues(newValue, newExtent, newMin, newMax) { var _local2 = getModel(); _local2.setRangeProperties(newValue, newExtent, newMin, newMax, _local2.getValueIsAdjusting()); } function addAdjustmentListener(func, obj) { return(addEventListener(ON_ADJUSTMENT_VALUE_CHANGED, func, obj)); } function fireAdjustmentValueChanged() { dispatchEvent(createEventObj(ON_ADJUSTMENT_VALUE_CHANGED)); } function setEnabled(b) { if (b != isEnabled()) { repaint(); } super.setEnabled(b); var _local3 = 0; while (_local3 < children.length) { children[_local3].setEnabled(b); _local3++; } } static var HORIZONTAL = org.aswing.ASWingConstants.HORIZONTAL; static var VERTICAL = org.aswing.ASWingConstants.VERTICAL; static var ON_ADJUSTMENT_VALUE_CHANGED = "onAdjustmentValueChanged"; }
Symbol 482 MovieClip [__Packages.org.aswing.BoundedRangeModel] Frame 0
interface org.aswing.BoundedRangeModel extends org.aswing.IEventDispatcher { }
Symbol 483 MovieClip [__Packages.org.aswing.DefaultBoundedRangeModel] Frame 0
class org.aswing.DefaultBoundedRangeModel extends org.aswing.EventDispatcher implements org.aswing.BoundedRangeModel { var isAdjusting, value, extent, min, max, addEventListener, dispatchEvent, createEventObj; function DefaultBoundedRangeModel (value, extent, min, max) { super(); if (value == undefined) { value = 0; } if (extent == undefined) { extent = 0; } if (min == undefined) { min = 0; } if (max == undefined) { max = 100; } isAdjusting = false; if ((((max >= min) && (value >= min)) && ((value + extent) >= value)) && ((value + extent) <= max)) { this.value = value; this.extent = extent; this.min = min; this.max = max; } else { trace("invalid range properties when construct ort.aswing.DefaultBoundedRangeModel"); throw new Error("invalid range properties"); } } function getValue() { return(value); } function getExtent() { return(extent); } function getMinimum() { return(min); } function getMaximum() { return(max); } function setValue(n) { n = Math.min(n, max - extent); var _local2 = Math.max(n, min); setRangeProperties(_local2, extent, min, max, isAdjusting); } function setExtent(n) { var _local2 = Math.max(0, n); if ((value + _local2) > max) { _local2 = max - value; } setRangeProperties(value, _local2, min, max, isAdjusting); } function setMinimum(n) { var _local3 = Math.max(n, max); var _local2 = Math.max(n, value); var _local4 = Math.min(_local3 - _local2, extent); setRangeProperties(_local2, _local4, n, _local3, isAdjusting); } function setMaximum(n) { var _local4 = Math.min(n, min); var _local2 = Math.min(n - _local4, extent); var _local5 = Math.min(n - _local2, value); setRangeProperties(_local5, _local2, _local4, n, isAdjusting); } function setValueIsAdjusting(b) { setRangeProperties(value, extent, min, max, b); } function getValueIsAdjusting() { return(isAdjusting); } function setRangeProperties(newValue, newExtent, newMin, newMax, adjusting) { if (newMin > newMax) { newMin = newMax; } if (newValue > newMax) { newMax = newValue; } if (newValue < newMin) { newMin = newValue; } if ((newExtent + newValue) > newMax) { newExtent = newMax - newValue; } if (newExtent < 0) { newExtent = 0; } var _local6 = ((((newValue != value) || (newExtent != extent)) || (newMin != min)) || (newMax != max)) || (adjusting != isAdjusting); if (_local6) { value = newValue; extent = newExtent; min = newMin; max = newMax; isAdjusting = adjusting; fireStateChanged(); } } function addChangeListener(func, obj) { return(addEventListener(org.aswing.Component.ON_STATE_CHANGED, func, obj)); } function fireStateChanged() { dispatchEvent(createEventObj(org.aswing.Component.ON_STATE_CHANGED)); } function toString() { var _local2 = (((((((((((("value=" + getValue()) + ", ") + "extent=") + getExtent()) + ", ") + "min=") + getMinimum()) + ", ") + "max=") + getMaximum()) + ", ") + "adj=") + getValueIsAdjusting(); return(("org.aswing.DefaultBoundedRangeModel[" + _local2) + "]"); } }
Symbol 484 MovieClip [__Packages.org.aswing.plaf.ScrollBarUI] Frame 0
class org.aswing.plaf.ScrollBarUI extends org.aswing.plaf.ComponentUI { function ScrollBarUI () { super(); } }
Symbol 485 MovieClip [__Packages.org.aswing.plaf.basic.BasicScrollBarUI] Frame 0
class org.aswing.plaf.basic.BasicScrollBarUI extends org.aswing.plaf.ScrollBarUI implements org.aswing.LayoutManager { var scrollBarWidth, minimumThumbLength, thumbRect, isDragging, offset, scrollIncrement, scrollTimer, scrollbar, thumbHighlightColor, thumbLightHighlightColor, thumbLightShadowColor, thumbDarkShadowColor, thumbColor, arrowShadowColor, arrowLightColor, leftIcon, rightIcon, upIcon, downIcon, incrButton, decrButton, adjusterListener, incrButtonListener, decrButtonListener, blockListener, keyListener, mouseListener, thumMC, scrollContinueDestination; function BasicScrollBarUI () { super(); scrollBarWidth = 16; minimumThumbLength = 9; thumbRect = new org.aswing.geom.Rectangle(); isDragging = false; offset = 0; scrollIncrement = 0; scrollTimer = new org.aswing.util.Timer(scrollSpeedThrottle); scrollTimer.setInitialDelay(initialScrollSpeedThrottle); scrollTimer.addActionListener(__scrollTimerPerformed, this); } function installUI(c) { scrollbar = org.aswing.JScrollBar(c); installDefaults(); installComponents(); installListeners(); } function uninstallUI(c) { scrollbar = org.aswing.JScrollBar(c); uninstallDefaults(); uninstallComponents(); uninstallListeners(); removeMCs(c); scrollTimer.stop(); } function installDefaults() { configureScrollBarColors(); scrollbar.setLayout(this); org.aswing.LookAndFeel.installBasicProperties(scrollbar, "ScrollBar."); org.aswing.LookAndFeel.installBorder(scrollbar, "ScrollBar.border"); } function configureScrollBarColors() { org.aswing.LookAndFeel.installColorsAndFont(scrollbar, "ScrollBar.background", "ScrollBar.foreground", "ScrollBar.font"); thumbHighlightColor = org.aswing.UIManager.getColor("ScrollBar.thumbHighlight"); thumbLightHighlightColor = org.aswing.UIManager.getColor("ScrollBar.thumbLightHighlight"); thumbLightShadowColor = org.aswing.UIManager.getColor("ScrollBar.thumbShadow"); thumbDarkShadowColor = org.aswing.UIManager.getColor("ScrollBar.thumbDarkShadow"); thumbColor = org.aswing.UIManager.getColor("ScrollBar.thumb"); arrowShadowColor = org.aswing.UIManager.getColor("ScrollBar.arrowShadowColor"); arrowLightColor = org.aswing.UIManager.getColor("ScrollBar.arrowLightColor"); } function createArrowIcon(direction) { var _local2 = new org.aswing.plaf.basic.icon.ArrowIcon(direction, scrollBarWidth / 2, thumbColor, arrowLightColor, arrowShadowColor, thumbHighlightColor); return(_local2); } function createIcons() { leftIcon = createArrowIcon(Math.PI); rightIcon = createArrowIcon(0); upIcon = createArrowIcon(-1.5707963267949); downIcon = createArrowIcon((Math.PI/2)); } function createArrowButton() { var _local1 = new org.aswing.JButton(); return(_local1); } function setButtonIcons() { if (isVertical()) { incrButton.setIcon(downIcon); decrButton.setIcon(upIcon); } else { incrButton.setIcon(rightIcon); decrButton.setIcon(leftIcon); } } function uninstallDefaults() { org.aswing.LookAndFeel.uninstallBorder(scrollbar); scrollbar.setLayout(null); } function installComponents() { createIcons(); incrButton = createArrowButton(); decrButton = createArrowButton(); setButtonIcons(); incrButton.setFocusable(false); decrButton.setFocusable(false); scrollbar.append(incrButton); scrollbar.append(decrButton); scrollbar.setEnabled(scrollbar.isEnabled()); } function uninstallComponents() { scrollbar.remove(incrButton); scrollbar.remove(decrButton); } function installListeners() { adjusterListener = scrollbar.addAdjustmentListener(__adjustChanged, this); incrButtonListener = new Object(); incrButtonListener[org.aswing.Component.ON_PRESS] = org.aswing.util.Delegate.create(this, __incrButtonPress); incrButtonListener[org.aswing.Component.ON_RELEASE] = org.aswing.util.Delegate.create(this, __incrButtonReleased); incrButtonListener[org.aswing.Component.ON_RELEASEOUTSIDE] = incrButtonListener[org.aswing.Component.ON_RELEASE]; incrButton.addEventListener(incrButtonListener); decrButtonListener = new Object(); decrButtonListener[org.aswing.Component.ON_PRESS] = org.aswing.util.Delegate.create(this, __decrButtonPress); decrButtonListener[org.aswing.Component.ON_RELEASE] = org.aswing.util.Delegate.create(this, __decrButtonReleased); decrButtonListener[org.aswing.Component.ON_RELEASEOUTSIDE] = decrButtonListener[org.aswing.Component.ON_RELEASE]; decrButton.addEventListener(decrButtonListener); blockListener = new Object(); blockListener[org.aswing.Component.ON_PRESS] = org.aswing.util.Delegate.create(this, __trackPress); blockListener[org.aswing.Component.ON_RELEASE] = org.aswing.util.Delegate.create(this, __trackReleased); blockListener[org.aswing.Component.ON_RELEASEOUTSIDE] = blockListener[org.aswing.Component.ON_RELEASE]; scrollbar.addEventListener(blockListener); keyListener = scrollbar.addEventListener(org.aswing.Component.ON_KEY_DOWN, __onKeyDown, this); mouseListener = scrollbar.addEventListener(org.aswing.Component.ON_MOUSE_WHEEL, __onMouseWheel, this); } function uninstallListeners() { scrollbar.removeEventListener(adjusterListener); scrollbar.removeEventListener(incrButtonListener); scrollbar.removeEventListener(decrButtonListener); scrollbar.removeEventListener(blockListener); scrollbar.removeEventListener(keyListener); scrollbar.removeEventListener(mouseListener); } function createButtonListener() { var _local1 = new Object(); return(_local1); } function removeMCs(c) { thumMC.removeMovieClip(); } function create(c) { thumMC = c.createMovieClip("ui"); thumMC.onPress = org.aswing.util.Delegate.create(this, __startDragThumb); thumMC.onRelease = (thumMC.onReleaseOutside = org.aswing.util.Delegate.create(this, __stopDragThumb)); thumbRect.setRect(0, 0, 0, 0); } function isVertical() { return(scrollbar.getOrientation() == org.aswing.JScrollBar.VERTICAL); } function getThumbRect() { return(new org.aswing.geom.Rectangle(thumbRect)); } function __onKeyDown() { if (!scrollbar.isEnabled()) { return(undefined); } var _local2 = Key.getCode(); if ((_local2 == 38) || (_local2 == 37)) { scrollByIncrement(-scrollbar.getUnitIncrement()); } else if ((_local2 == 40) || (_local2 == 39)) { scrollByIncrement(scrollbar.getUnitIncrement()); } else if (_local2 == 33) { scrollByIncrement(-scrollbar.getBlockIncrement()); } else if (_local2 == 34) { scrollByIncrement(scrollbar.getBlockIncrement()); } else if (_local2 == 36) { scrollbar.setValue(scrollbar.getMinimum()); } else if (_local2 == 35) { scrollbar.setValue(scrollbar.getMaximum() - scrollbar.getVisibleAmount()); } } function __onMouseWheel(source, delta) { if (!scrollbar.isEnabled()) { return(undefined); } scrollByIncrement((-delta) * scrollbar.getUnitIncrement()); } function __scrollTimerPerformed() { var _local3 = scrollbar.getValue() + scrollIncrement; var _local2 = false; if (scrollIncrement > 0) { if (_local3 >= scrollContinueDestination) { _local2 = true; } } else if (_local3 <= scrollContinueDestination) { _local2 = true; } if (_local2) { scrollbar.setValue(scrollContinueDestination); scrollTimer.stop(); } else { scrollByIncrement(scrollIncrement); } } function __adjustChanged() { if (!isDragging) { paintAndLocateThumb(scrollbar.getPaintBounds()); } } function __incrButtonPress() { scrollbar.requestFocus(); scrollIncrement = scrollbar.getUnitIncrement(); scrollByIncrement(scrollIncrement); scrollContinueDestination = scrollbar.getMaximum() - scrollbar.getVisibleAmount(); scrollTimer.restart(); } function __incrButtonReleased() { scrollTimer.stop(); } function __decrButtonPress() { scrollbar.requestFocus(); scrollIncrement = -scrollbar.getUnitIncrement(); scrollByIncrement(scrollIncrement); scrollContinueDestination = scrollbar.getMinimum(); scrollTimer.restart(); } function __decrButtonReleased() { scrollTimer.stop(); } function __trackPress() { var _local4 = scrollbar.getMousePosition(); var _local3 = false; var _local2 = getThumbRect(); if (isVertical()) { var _local5 = _local4.y; _local4.y = _local4.y - (_local2.height / 2); if (_local5 < _local2.y) { _local3 = true; } else if (_local5 > (_local2.y + _local2.height)) { _local3 = true; } } else { var _local5 = _local4.x; _local4.x = _local4.x - (_local2.width / 2); if (_local5 < _local2.x) { _local3 = true; } else if (_local5 > (_local2.x + _local2.width)) { _local3 = true; } } if (_local3) { scrollContinueDestination = getValueWithPosition(_local4); if (scrollContinueDestination > scrollbar.getValue()) { scrollIncrement = scrollbar.getBlockIncrement(); } else { scrollIncrement = -scrollbar.getBlockIncrement(); } scrollByIncrement(scrollIncrement); scrollTimer.restart(); } } function __trackReleased() { scrollTimer.stop(); } function scrollByIncrement(increment) { scrollbar.setValue(scrollbar.getValue() + increment); } function __startDragThumb() { scrollbar.supplyOnPress(); if (!scrollbar.isEnabled()) { return(undefined); } scrollbar.setValueIsAdjusting(true); var _local2 = scrollbar.getMousePosition(); var _local5 = _local2.x; var _local4 = _local2.y; var _local3 = getThumbRect(); if (isVertical()) { offset = _local4 - _local3.y; } else { offset = _local5 - _local3.x; } isDragging = true; __startHandleDrag(); paintThumb(thumMC, thumbRect.getSize(), isDragging); } function __stopDragThumb() { if (!scrollbar.isEnabled()) { return(undefined); } if (isDragging) { scrollThumbToCurrentMousePosition(); } offset = 0; scrollbar.setValueIsAdjusting(false); isDragging = false; __stopHandleDrag(); paintThumb(thumMC, thumbRect.getSize(), isDragging); } function __startHandleDrag() { thumMC.onMouseMove = org.aswing.util.Delegate.create(this, __onMoveThumb); } function __stopHandleDrag() { thumMC.onMouseMove = undefined; delete thumMC.onMouseMove; } function __onMoveThumb() { if (!scrollbar.isEnabled()) { return(undefined); } scrollThumbToCurrentMousePosition(); } function scrollThumbToCurrentMousePosition() { var _local6 = scrollbar.getMousePosition(); var _local8 = _local6.x; var _local7 = _local6.y; var _local2 = getThumbRect(); var _local4; var _local5; var _local3; if (isVertical()) { _local4 = decrButton.getY() + decrButton.getHeight(); _local5 = incrButton.getY() - _local2.height; _local3 = Math.min(_local5, Math.max(_local4, _local7 - offset)); setThumbRect(_local2.x, _local3, _local2.width, _local2.height); } else { _local4 = decrButton.getX() + decrButton.getWidth(); _local5 = incrButton.getX() - _local2.width; _local3 = Math.min(_local5, Math.max(_local4, _local8 - offset)); setThumbRect(_local3, _local2.y, _local2.width, _local2.height); } var _local9 = getValueWithThumbMaxMinPos(_local4, _local5, _local3); scrollbar.setValue(_local9); updateAfterEvent(); } function getValueWithPosition(point) { var _local7 = point.x; var _local6 = point.y; var _local3 = getThumbRect(); var _local4; var _local5; var _local2; if (isVertical()) { _local4 = decrButton.getY() + decrButton.getHeight(); _local5 = incrButton.getY() - _local3.height; _local2 = _local6; } else { _local4 = decrButton.getX() + decrButton.getWidth(); _local5 = incrButton.getX() - _local3.width; _local2 = _local7; } return(getValueWithThumbMaxMinPos(_local4, _local5, _local2)); } function getValueWithThumbMaxMinPos(thumbMin, thumbMax, thumbPos) { var _local2 = scrollbar.getModel(); var _local3; if (thumbPos >= thumbMax) { _local3 = _local2.getMaximum() - _local2.getExtent(); } else { var _local8 = _local2.getMaximum() - _local2.getExtent(); var _local6 = _local8 - _local2.getMinimum(); var _local5 = thumbPos - thumbMin; var _local7 = thumbMax - thumbMin; var _local4 = (_local5 / _local7) * _local6; _local3 = _local4 + _local2.getMinimum(); } return(_local3); } function paint(c, g, b) { super.paint(c, g, b); paintAndLocateThumb(b); } function paintAndLocateThumb(b) { if (!scrollbar.isEnabled()) { if (isVertical()) { if (incrButton.isEnabled()) { trace("Logic Wrong : Scrollbar range is not enabled, but its button enabled "); } } thumMC._visible = false; return(undefined); } thumMC._visible = true; var _local8 = scrollbar.getMinimum(); var _local5 = scrollbar.getVisibleAmount(); var _local2 = scrollbar.getMaximum() - _local8; var _local9 = scrollbar.getValue(); if (_local2 <= 0) { if (_local2 < 0) { trace((((("Logic Wrong : Scrollbar range = " + _local2) + ", max=") + scrollbar.getMaximum()) + ", min=") + _local8); } thumMC._visible = false; return(undefined); } var _local4; var _local3; if (isVertical()) { _local4 = (b.height - incrButton.getHeight()) - decrButton.getHeight(); _local3 = Math.floor(_local4 * (_local5 / _local2)); } else { _local4 = (b.width - incrButton.getWidth()) - decrButton.getWidth(); _local3 = Math.floor(_local4 * (_local5 / _local2)); } if (_local4 > minimumThumbLength) { _local3 = Math.max(_local3, minimumThumbLength); } else { thumMC._visible = false; return(undefined); } var _local10 = _local4 - _local3; var _local7; if ((_local2 - _local5) == 0) { _local7 = 0; } else { _local7 = Math.round(_local10 * ((_local9 - _local8) / (_local2 - _local5))); } if (isVertical()) { setThumbRect(b.x, (_local7 + b.y) + decrButton.getHeight(), scrollBarWidth, _local3); } else { setThumbRect((_local7 + b.x) + decrButton.getWidth(), b.y, _local3, scrollBarWidth); } } function setThumbRect(x, y, w, h) { if (!org.aswing.util.MCUtils.isMovieClipExist(thumMC)) { return(undefined); } var _local3 = thumbRect.width; var _local2 = thumbRect.height; thumbRect.setRect(x, y, w, h); if ((w != _local3) || (h != _local2)) { paintThumb(thumMC, thumbRect.getSize(), isDragging); } thumMC._x = x; thumMC._y = y; } function paintThumb(thumMC, size, isPressed) { var _local7 = size.width; var _local6 = size.height; thumMC.clear(); var _local2 = new org.aswing.graphics.Graphics(thumMC); var _local8 = new org.aswing.graphics.SolidBrush(thumbDarkShadowColor); _local2.fillRectangle(_local8, 0, 0, _local7, _local6); _local8.setASColor(thumbColor); _local2.fillRectangle(_local8, 1, 1, _local7 - 2, _local6 - 2); var _local3 = new org.aswing.graphics.Pen(thumbDarkShadowColor, 0); if (isVertical()) { var _local4 = _local6 / 2; _local2.drawLine(_local3, 3, _local4, _local7 - 3, _local4); _local2.drawLine(_local3, 3, _local4 + 2, _local7 - 3, _local4 + 2); _local2.drawLine(_local3, 3, _local4 - 2, _local7 - 3, _local4 - 2); } else { var _local5 = _local7 / 2; _local2.drawLine(_local3, _local5, 3, _local5, _local6 - 3); _local2.drawLine(_local3, _local5 + 2, 3, _local5 + 2, _local6 - 3); _local2.drawLine(_local3, _local5 - 2, 3, _local5 - 2, _local6 - 3); } } function getPreferredSize(c) { return(preferredLayoutSize(org.aswing.Container(c))); } function getMaximumSize(c) { return(maximumLayoutSize(org.aswing.Container(c))); } function getMinimumSize(c) { return(getPreferredSize(c)); } function layoutVScrollbar(sb) { var _local2 = sb.getPaintBounds(); var _local3 = scrollBarWidth; decrButton.setBounds(_local2.x, _local2.y, _local3, _local3); incrButton.setBounds(_local2.x, (_local2.y + _local2.height) - _local3, _local3, _local3); } function layoutHScrollbar(sb) { var _local2 = sb.getPaintBounds(); var _local3 = scrollBarWidth; decrButton.setBounds(_local2.x, _local2.y, _local3, _local3); incrButton.setBounds((_local2.x + _local2.width) - _local3, _local2.y, _local3, _local3); } function layoutContainer(target) { if (isDragging) { return(undefined); } if (target == scrollbar) { setButtonIcons(); if (isVertical()) { layoutVScrollbar(scrollbar); } else { layoutHScrollbar(scrollbar); } } else { trace("BasicScrollBarUI just can be JScrollBar's Layout : " + target); } } function preferredLayoutSize(target) { if (target == scrollbar) { var _local3; var _local2; if (isVertical()) { _local3 = scrollBarWidth; _local2 = scrollBarWidth * 2; } else { _local3 = scrollBarWidth * 2; _local2 = scrollBarWidth; } return(scrollbar.getInsets().getOutsideSize(new org.aswing.geom.Dimension(_local3, _local2))); } trace("BasicScrollBarUI just can be JScrollBar's Layout : " + target); throw new Error("BasicScrollBarUI just can be JScrollBar's Layout : " + target); } function maximumLayoutSize(target) { if (target == scrollbar) { var _local3; var _local2; if (isVertical()) { _local3 = scrollBarWidth; _local2 = Number.MAX_VALUE; } else { _local3 = Number.MAX_VALUE; _local2 = scrollBarWidth; } return(scrollbar.getInsets().getOutsideSize(new org.aswing.geom.Dimension(_local3, _local2))); } trace("BasicScrollBarUI just can be JScrollBar's Layout : " + target); throw new Error("BasicScrollBarUI just can be JScrollBar's Layout : " + target); } function minimumLayoutSize(target) { return(preferredLayoutSize(target)); } function getLayoutAlignmentX(target) { return(0); } function getLayoutAlignmentY(target) { return(0); } function addLayoutComponent(comp, constraints) { } function removeLayoutComponent(comp) { } function invalidateLayout(target) { } static var scrollSpeedThrottle = 60; static var initialScrollSpeedThrottle = 500; }
Symbol 486 MovieClip [__Packages.org.aswing.plaf.basic.icon.ArrowIcon] Frame 0
class org.aswing.plaf.basic.icon.ArrowIcon implements org.aswing.Icon, org.aswing.plaf.UIResource { var arrow, width, height, background, shadow, darkShadow, highlight; function ArrowIcon (arrow, size, background, shadow, darkShadow, highlight) { this.arrow = arrow; width = size; height = size; this.background = background; this.shadow = shadow; this.darkShadow = darkShadow; this.highlight = highlight; } function getIconWidth() { return(width); } function getIconHeight() { return(height); } function paintIcon(com, g, x, y) { var _local4 = new org.aswing.geom.Point(com.getWidth() / 2, com.getHeight() / 2); var _local2 = width; var _local6 = new Array(); _local6.push(_local4.nextPoint(arrow, (_local2 / 2) / 2)); var _local3 = _local4.nextPoint(arrow + Math.PI, (_local2 / 2) / 2); _local6.push(_local3.nextPoint(arrow - (Math.PI/2), _local2 / 2)); _local6.push(_local3.nextPoint(arrow + (Math.PI/2), _local2 / 2)); var _local5 = new Array(); _local5.push(_local4.nextPoint(arrow, ((_local2 / 2) / 2) - 1)); _local3 = _local4.nextPoint(arrow + Math.PI, ((_local2 / 2) / 2) - 1); _local5.push(_local3.nextPoint(arrow - (Math.PI/2), (_local2 / 2) - 2)); _local5.push(_local3.nextPoint(arrow + (Math.PI/2), (_local2 / 2) - 2)); g.fillPolygon(new org.aswing.graphics.SolidBrush(darkShadow), _local6); g.fillPolygon(new org.aswing.graphics.SolidBrush(shadow), _local5); } function uninstallIcon(com) { } }
Symbol 487 MovieClip [__Packages.org.aswing.plaf.asw.ASWingScrollBarUI] Frame 0
class org.aswing.plaf.asw.ASWingScrollBarUI extends org.aswing.plaf.basic.BasicScrollBarUI { var thumbColor, isVertical, thumbLightShadowColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightHighlightColor; function ASWingScrollBarUI () { super(); } function paintThumb(thumMC, size, isPressed) { var _local8 = size.width; var _local7 = size.height; thumMC.clear(); var _local2 = new org.aswing.graphics.Graphics(thumMC); var _local6 = new org.aswing.geom.Rectangle(0, 0, _local8, _local7); if (isPressed) { _local2.fillRectangle(new org.aswing.graphics.SolidBrush(thumbColor), _local6.x, _local6.y, _local6.width, _local6.height); } else { org.aswing.plaf.asw.ASWingGraphicsUtils.drawControlBackground(_local2, _local6, thumbColor, (isVertical() ? 0 : (Math.PI/2))); } org.aswing.plaf.basic.BasicGraphicsUtils.drawBezel(_local2, _local6, isPressed, thumbLightShadowColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightHighlightColor); var _local3 = new org.aswing.graphics.Pen(thumbDarkShadowColor, 0); if (isVertical()) { var _local4 = _local7 / 2; _local2.drawLine(_local3, 4, _local4, _local8 - 4, _local4); _local2.drawLine(_local3, 4, _local4 + 2, _local8 - 4, _local4 + 2); _local2.drawLine(_local3, 4, _local4 - 2, _local8 - 4, _local4 - 2); } else { var _local5 = _local8 / 2; _local2.drawLine(_local3, _local5, 4, _local5, _local7 - 4); _local2.drawLine(_local3, _local5 + 2, 4, _local5 + 2, _local7 - 4); _local2.drawLine(_local3, _local5 - 2, 4, _local5 - 2, _local7 - 4); } } }
Symbol 488 MovieClip [__Packages.org.aswing.overflow.JViewport] Frame 0
class org.aswing.overflow.JViewport extends org.aswing.Container implements org.aswing.Viewportable { var setName, tracksWidth, tracksHeight, verticalAlignment, horizontalAlignment, revalidate, view, removeAll, fireStateChanged, verticalUnitIncrement, verticalBlockIncrement, horizontalUnitIncrement, horizontalBlockIncrement, setSize, getInsets, getSize, addEventListener; function JViewport (view, tracksWidth, tracksHeight) { super(); setName("JViewport"); this.tracksWidth = ((tracksWidth == undefined) ? false : (tracksWidth)); this.tracksHeight = ((tracksHeight == undefined) ? false : (tracksHeight)); verticalAlignment = CENTER; horizontalAlignment = CENTER; if (view != undefined) { setView(view); } setLayout(new org.aswing.overflow.ViewportLayout()); updateUI(); } function updateUI() { setUI(org.aswing.plaf.ViewportUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("ViewportUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicViewportUI); } function setLayout(layout) { if (layout instanceof org.aswing.overflow.ViewportLayout) { super.setLayout(layout); } else { trace(this + " Only on set ViewportLayout to JViewport"); throw new Error(this + " Only on set ViewportLayout to JViewport"); } } function setTracksWidth(b) { if (b != tracksWidth) { tracksWidth = b; revalidate(); } } function isTracksWidth() { var _local2 = view; if (_local2.isTracksViewportWidth != undefined) { return(_local2.isTracksViewportWidth()); } return(tracksWidth); } function setTracksHeight(b) { if (tracksHeight != b) { tracksHeight = b; revalidate(); } } function isTracksHeight() { var _local2 = view; if (_local2.isTracksViewportHeight != undefined) { return(_local2.isTracksViewportHeight()); } return(tracksHeight); } function getVerticalAlignment() { return(verticalAlignment); } function setVerticalAlignment(alignment) { if (alignment == verticalAlignment) { return(undefined); } verticalAlignment = alignment; setViewPosition(getViewPosition()); } function getHorizontalAlignment() { return(horizontalAlignment); } function setHorizontalAlignment(alignment) { if (alignment == horizontalAlignment) { return(undefined); } horizontalAlignment = alignment; setViewPosition(getViewPosition()); } function setView(view) { if (this.view != view) { this.view = view; removeAll(); if (view != null) { super.insert(-1, view); } fireStateChanged(); } } function getView() { return(view); } function setVerticalUnitIncrement(increment) { if (verticalUnitIncrement != increment) { verticalUnitIncrement = increment; fireStateChanged(); } } function setVerticalBlockIncrement(increment) { if (verticalBlockIncrement != increment) { verticalBlockIncrement = increment; fireStateChanged(); } } function setHorizontalUnitIncrement(increment) { if (horizontalUnitIncrement != increment) { horizontalUnitIncrement = increment; fireStateChanged(); } } function setHorizontalBlockIncrement(increment) { if (horizontalBlockIncrement != increment) { horizontalBlockIncrement = increment; fireStateChanged(); } } function append(com, constraints) { setView(com); } function insert(i, com, constraints) { setView(com); } function getVerticalUnitIncrement() { if (verticalUnitIncrement != undefined) { return(verticalUnitIncrement); } return(1); } function getVerticalBlockIncrement() { if (verticalBlockIncrement != undefined) { return(verticalBlockIncrement); } return(getExtentSize().height - 1); } function getHorizontalUnitIncrement() { if (horizontalUnitIncrement != undefined) { return(horizontalUnitIncrement); } return(1); } function getHorizontalBlockIncrement() { if (horizontalBlockIncrement != undefined) { return(horizontalBlockIncrement); } return(getExtentSize().width - 1); } function setViewportTestSize(s) { setSize(s); } function getExtentSize() { return(getInsets().getInsideSize(getSize())); } function getViewSize() { if (view == null) { return(new org.aswing.geom.Dimension()); } if (isTracksWidth() && (isTracksHeight())) { return(getExtentSize()); } var _local2 = view.getPreferredSize(); var _local3 = getExtentSize(); if (isTracksWidth()) { _local2.width = _local3.width; } else if (isTracksHeight()) { _local2.height = _local3.height; } return(_local2); } function getViewPosition() { if (view != null) { var _local2 = view.getLocation(); var _local3 = getInsets().getInsideBounds(getSize().getBounds()); _local2.x = _local3.x - _local2.x; _local2.y = _local3.y - _local2.y; return(_local2); } return(null); } function setViewPosition(p) { restrictionViewPos(p); if (!p.equals(getViewPosition())) { var _local2 = getInsets().getInsideBounds(getSize().getBounds()); view.setLocationImmediately(_local2.x - p.x, _local2.y - p.y); fireStateChanged(); } } function scrollRectToVisible(contentRect) { setViewPosition(new org.aswing.geom.Point(contentRect.x, contentRect.y)); } function scrollVertical(delta) { setViewPosition(getViewPosition().move(0, delta)); } function scrollHorizontal(delta) { setViewPosition(getViewPosition().move(delta, 0)); } function scrollToBottomLeft() { setViewPosition(new org.aswing.geom.Point(0, Number.MAX_VALUE)); } function scrollToBottomRight() { setViewPosition(new org.aswing.geom.Point(Number.MAX_VALUE, Number.MAX_VALUE)); } function scrollToTopLeft() { setViewPosition(new org.aswing.geom.Point(0, 0)); } function scrollToTopRight() { setViewPosition(new org.aswing.geom.Point(Number.MAX_VALUE, 0)); } function restrictionViewPos(p) { var _local4 = getExtentSize(); var _local3 = getViewSize(); if (_local4.width < _local3.width) { p.x = Math.max(0, Math.min(_local3.width - _local4.width, p.x)); } else if (_local4.width > _local3.width) { if (horizontalAlignment == CENTER) { p.x = (-(_local4.width - _local3.width)) / 2; } else if (horizontalAlignment == RIGHT) { p.x = -(_local4.width - _local3.width); } else { p.x = 0; } } else { p.x = 0; } if (_local4.height < _local3.height) { p.y = Math.max(0, Math.min(_local3.height - _local4.height, p.y)); } else if (_local4.height > _local3.height) { if (verticalAlignment == CENTER) { p.y = (-(_local4.height - _local3.height)) / 2; } else if (verticalAlignment == BOTTOM) { p.y = -(_local4.height - _local3.height); } else { p.y = 0; } } else { p.y = 0; } return(p); } function toViewCoordinatesSize(size) { return(new org.aswing.geom.Dimension(size.width, size.height)); } function toViewCoordinatesLocation(p) { return(new org.aswing.geom.Point(p.x, p.y)); } function toScreenCoordinatesSize(size) { return(new org.aswing.geom.Dimension(size.width, size.height)); } function toScreenCoordinatesLocation(p) { return(new org.aswing.geom.Point(p.x, p.y)); } function addChangeListener(func, obj) { return(addEventListener(org.aswing.Component.ON_STATE_CHANGED, func, obj)); } function getViewportPane() { return(this); } static var ON_STATE_CHANGED = "onStateChanged"; static var CENTER = org.aswing.ASWingConstants.CENTER; static var TOP = org.aswing.ASWingConstants.TOP; static var LEFT = org.aswing.ASWingConstants.LEFT; static var BOTTOM = org.aswing.ASWingConstants.BOTTOM; static var RIGHT = org.aswing.ASWingConstants.RIGHT; }
Symbol 489 MovieClip [__Packages.org.aswing.overflow.ViewportLayout] Frame 0
class org.aswing.overflow.ViewportLayout extends org.aswing.EmptyLayout { function ViewportLayout () { super(); } function preferredLayoutSize(parent) { var _local1 = org.aswing.overflow.JViewport(parent); var _local2 = null; if (_local1.getView() != null) { _local2 = _local1.getView().getPreferredSize(); } else { _local2 = new org.aswing.geom.Dimension(0, 0); } return(_local1.getViewportPane().getInsets().getOutsideSize(_local2)); } function layoutContainer(parent) { var _local1 = org.aswing.overflow.JViewport(parent); var _local6 = _local1.getView(); if (_local6 == null) { return(undefined); } var _local5 = _local1.getInsets(); var _local7 = _local1.getSize(); var _local3 = _local1.toScreenCoordinatesSize(_local1.getExtentSize()); var _local8 = new org.aswing.geom.Rectangle(_local5.left, _local5.top, _local3.width, _local3.height); var _local4 = _local1.getViewSize(); var _local2 = _local1.toScreenCoordinatesLocation(_local1.getViewPosition()); _local2.x = Math.round(_local2.x); _local2.y = Math.round(_local2.y); if ((_local2.x + _local3.width) > _local4.width) { _local2.x = Math.max(0, _local4.width - _local3.width); } if ((_local2.y + _local3.height) > _local4.height) { _local2.y = Math.max(0, _local4.height - _local3.height); } _local1.setViewPosition(_local1.toViewCoordinatesLocation(_local2)); _local6.setSize(_local4); } }
Symbol 490 MovieClip [__Packages.org.aswing.plaf.ViewportUI] Frame 0
class org.aswing.plaf.ViewportUI extends org.aswing.plaf.ComponentUI { function ViewportUI () { super(); } }
Symbol 491 MovieClip [__Packages.org.aswing.plaf.basic.BasicViewportUI] Frame 0
class org.aswing.plaf.basic.BasicViewportUI extends org.aswing.plaf.ViewportUI { static var viewportUI; function BasicViewportUI () { super(); } static function createInstance(c) { if (viewportUI == null) { viewportUI = new org.aswing.plaf.basic.BasicViewportUI(); } return(viewportUI); } function installUI(c) { var _local2 = org.aswing.overflow.JViewport(c); installDefaults(_local2); } function uninstallUI(c) { var _local2 = org.aswing.overflow.JViewport(c); uninstallDefaults(_local2); } function installDefaults(p) { var _local1 = "Viewport."; org.aswing.LookAndFeel.installColorsAndFont(p, _local1 + "background", _local1 + "foreground", _local1 + "font"); org.aswing.LookAndFeel.installBorder(p, "Viewport.border"); org.aswing.LookAndFeel.installBasicProperties(p, _local1); } function uninstallDefaults(p) { org.aswing.LookAndFeel.uninstallBorder(p); } }
Symbol 492 MovieClip [__Packages.org.aswing.ScrollPaneLayout] Frame 0
class org.aswing.ScrollPaneLayout extends org.aswing.EmptyLayout { var style; function ScrollPaneLayout (style) { super(); this.style = ((style == undefined) ? (BOTTOM_RIGHT) : (style)); } function minimumLayoutSize(target) { if (target instanceof org.aswing.JScrollPane) { var _local4 = org.aswing.JScrollPane(target); var _local3 = getScrollBarsSize(_local4); var _local6 = _local4.getInsets(); _local3 = _local3.increase(_local6.getOutsideSize()); var _local8 = _local4.getVerticalScrollBar(); var _local5 = _local4.getViewport(); if (_local5 != null) { _local6 = _local5.getViewportPane().getInsets(); _local3.increase(_local6.getOutsideSize()); _local3.increase(_local5.getViewportPane().getMinimumSize()); } return(_local3); } super.minimumLayoutSize(target); } function getScrollBarsSize(scrollPane) { var _local2 = scrollPane.getVerticalScrollBar(); var _local4 = scrollPane.getHorizontalScrollBar(); var _local1 = new org.aswing.geom.Dimension(); if ((_local2 != null) && (scrollPane.getVerticalScrollBarPolicy() == org.aswing.JScrollPane.SCROLLBAR_ALWAYS)) { _local1.increase(_local2.getPreferredSize()); } if ((_local4 != null) && (scrollPane.getHorizontalScrollBarPolicy() == org.aswing.JScrollPane.SCROLLBAR_ALWAYS)) { _local1.increase(_local2.getPreferredSize()); } return(_local1); } function preferredLayoutSize(target) { if (target instanceof org.aswing.JScrollPane) { var _local4 = org.aswing.JScrollPane(target); var _local7 = _local4.getInsets(); var _local3 = _local7.getOutsideSize(); _local3.increase(getScrollBarsSize(_local4)); var _local5 = _local4.getViewport(); if (_local5 != null) { _local3.increase(_local5.getViewportPane().getPreferredSize()); } return(_local3); } return(super.preferredLayoutSize(target)); } function layoutContainer(target) { if (target instanceof org.aswing.JScrollPane) { var _local8 = org.aswing.JScrollPane(target); var _local5 = _local8.getViewport(); var _local7 = _local8.getVerticalScrollBar(); var _local3 = _local8.getHorizontalScrollBar(); var _local24 = _local8.getSize(); var _local23 = _local8.getInsets(); var _local2 = _local23.getInsideBounds(_local24.getBounds()); var _local22 = _local7.getPreferredSize(); var _local18 = _local3.getPreferredSize(); var _local15; var _local12; var _local13; var _local6; var _local11; var _local16; var _local14; var _local4; var _local25 = _local5.getViewportPane(); var _local17 = 0; var _local21 = 0; if (_local8.getHorizontalScrollBarPolicy() == org.aswing.JScrollPane.SCROLLBAR_ALWAYS) { _local21 = _local18.height; } if (_local8.getVerticalScrollBarPolicy() == org.aswing.JScrollPane.SCROLLBAR_ALWAYS) { _local17 = _local22.width; } _local5.setViewportTestSize(new org.aswing.geom.Dimension(_local2.width - _local17, _local2.height - _local21)); var _local10 = _local5.getExtentSize(); var _local9 = _local5.getViewSize(); _local6 = _local22.width; _local4 = _local18.height; if (_local8.getHorizontalScrollBarPolicy() == org.aswing.JScrollPane.SCROLLBAR_NEVER) { _local3.setVisible(false); _local4 = 0; } else if (_local9.width <= _local10.width) { if (_local3.isEnabled()) { _local3.setEnabled(false); } if (_local8.getHorizontalScrollBarPolicy() != org.aswing.JScrollPane.SCROLLBAR_ALWAYS) { _local3.setVisible(false); _local4 = 0; } else { _local3.setVisible(true); } } else { _local3.setVisible(true); if (!_local3.isEnabled()) { _local3.setEnabled(true); } } if (_local4 != _local21) { _local5.setViewportTestSize(new org.aswing.geom.Dimension(_local2.width, _local2.height - _local4)); _local10 = _local5.getExtentSize(); _local9 = _local5.getViewSize(); } if (_local8.getVerticalScrollBarPolicy() == org.aswing.JScrollPane.SCROLLBAR_NEVER) { _local7.setVisible(false); _local6 = 0; } else if (_local9.height <= _local10.height) { _local7.setEnabled(false); if (_local8.getVerticalScrollBarPolicy() != org.aswing.JScrollPane.SCROLLBAR_ALWAYS) { _local7.setVisible(false); _local6 = 0; } else { _local7.setVisible(true); } } else { _local7.setVisible(true); if (!_local7.isEnabled()) { _local7.setEnabled(true); } } if (_local6 != _local17) { _local5.setViewportTestSize(new org.aswing.geom.Dimension(_local2.width - _local6, _local2.height - _local4)); _local10 = _local5.getExtentSize(); _local9 = _local5.getViewSize(); } if ((_local9.width > _local10.width) && (_local8.getHorizontalScrollBarPolicy() == org.aswing.JScrollPane.SCROLLBAR_AS_NEEDED)) { if (!_local3.isVisible()) { _local3.setEnabled(true); _local3.setVisible(true); _local4 = _local18.height; _local5.setViewportTestSize(new org.aswing.geom.Dimension(_local2.width - _local6, _local2.height - _local4)); _local10 = _local5.getExtentSize(); _local9 = _local5.getViewSize(); } } var _local20 = _local2.x; var _local19 = _local2.y; if (style == TOP_LEFT) { _local15 = _local2.x; _local12 = _local2.y + _local4; _local13 = _local2.height - _local4; _local11 = _local2.x + _local6; _local16 = _local2.y; _local14 = _local2.width - _local6; _local19 = _local19 + _local4; _local20 = _local20 + _local6; } else if (style == TOP_RIGHT) { _local15 = (_local2.x + _local2.width) - _local6; _local12 = _local2.y + _local4; _local13 = _local2.height - _local4; _local11 = _local2.x; _local16 = _local2.y; _local14 = _local2.width - _local6; _local19 = _local19 + _local4; } else if (style == BOTTOM_LEFT) { _local15 = _local2.x; _local12 = _local2.y; _local13 = _local2.height - _local4; _local11 = _local2.x + _local6; _local16 = (_local2.y + _local2.height) - _local4; _local14 = _local2.width - _local6; _local20 = _local20 + _local6; } else { _local15 = (_local2.x + _local2.width) - _local6; _local12 = _local2.y; _local13 = _local2.height - _local4; _local11 = _local2.x; _local16 = (_local2.y + _local2.height) - _local4; _local14 = _local2.width - _local6; } if (_local7.isVisible()) { _local7.setBounds(_local15, _local12, _local6, _local13); } if (_local3.isVisible()) { _local3.setBounds(_local11, _local16, _local14, _local4); } _local25.setBounds(_local20, _local19, _local2.width - _local6, _local2.height - _local4); if (_local3.isVisible()) { _local3.setValues(Math.max(Math.min(_local3.getValue(), _local9.width - _local10.width), 0), _local10.width, 0, _local9.width); _local3.setUnitIncrement(_local5.getHorizontalUnitIncrement()); _local3.setBlockIncrement(_local5.getHorizontalBlockIncrement()); } if (_local7.isVisible()) { _local7.setValues(Math.max(Math.min(_local7.getValue(), _local9.height - _local10.height), 0), _local10.height, 0, _local9.height); _local7.setUnitIncrement(_local5.getVerticalUnitIncrement()); _local7.setBlockIncrement(_local5.getVerticalBlockIncrement()); } } } static var TOP_LEFT = 3; static var TOP_RIGHT = 2; static var BOTTOM_LEFT = 1; static var BOTTOM_RIGHT = 0; }
Symbol 493 MovieClip [__Packages.org.aswing.plaf.ScrollPaneUI] Frame 0
class org.aswing.plaf.ScrollPaneUI extends org.aswing.plaf.ComponentUI { function ScrollPaneUI () { super(); } }
Symbol 494 MovieClip [__Packages.org.aswing.plaf.basic.BasicScrollPaneUI] Frame 0
class org.aswing.plaf.basic.BasicScrollPaneUI extends org.aswing.plaf.ScrollPaneUI { var scrollPane, scrollPaneListener, adjusterListener, viewportChangedListener, viewportStateChangeListener, lastViewport; function BasicScrollPaneUI () { super(); } function installUI(c) { scrollPane = org.aswing.JScrollPane(c); installDefaults(); installComponents(); installListeners(); } function uninstallUI(c) { scrollPane = org.aswing.JScrollPane(c); uninstallDefaults(); uninstallComponents(); uninstallListeners(); } function installDefaults() { org.aswing.LookAndFeel.installBasicProperties(scrollPane, "ScrollPane.border"); org.aswing.LookAndFeel.installBorder(scrollPane, "ScrollPane.border"); } function uninstallDefaults() { org.aswing.LookAndFeel.uninstallBorder(scrollPane); } function installComponents() { } function uninstallComponents() { } function installListeners() { scrollPaneListener = scrollPane.addEventListener(org.aswing.Container.ON_COM_ADDED, __comAdded, this); adjusterListener = scrollPane.addAdjustmentListener(__adjustChanged, this); viewportChangedListener = scrollPane.addEventListener(org.aswing.JScrollPane.ON_VIEWPORT_CHANGED, __viewportChanged, this); __viewportChanged(); } function uninstallListeners() { scrollPane.removeEventListener(scrollPaneListener); scrollPane.removeEventListener(adjusterListener); scrollPane.removeEventListener(viewportChangedListener); scrollPane.getViewport().removeEventListener(viewportStateChangeListener); } function syncScrollPaneWithViewport() { var _local2 = scrollPane.getViewport(); var _local4 = scrollPane.getVerticalScrollBar(); var _local5 = scrollPane.getHorizontalScrollBar(); if (_local2 != null) { var _local3 = _local2.getExtentSize(); if ((_local3.width <= 0) || (_local3.height <= 0)) { return(undefined); } var _local7 = _local2.getViewSize(); var _local8 = _local2.getViewPosition(); if (_local4 != null) { var _local6 = _local3.height; var _local9 = _local7.height; var _local10 = Math.max(0, Math.min(_local8.y, _local9 - _local6)); _local4.setValues(_local10, _local6, 0, _local9); _local4.setUnitIncrement(_local2.getVerticalUnitIncrement()); _local4.setBlockIncrement(_local2.getVerticalBlockIncrement()); } if (_local5 != null) { var _local6 = _local3.width; var _local9 = _local7.width; var _local10 = Math.max(0, Math.min(_local8.x, _local9 - _local6)); _local5.setValues(_local10, _local6, 0, _local9); _local5.setUnitIncrement(_local2.getHorizontalUnitIncrement()); _local5.setBlockIncrement(_local2.getHorizontalBlockIncrement()); } } } function __viewportChanged() { lastViewport.removeEventListener(viewportStateChangeListener); lastViewport = scrollPane.getViewport(); viewportStateChangeListener = lastViewport.addChangeListener(__viewportStateChanged, this); } function __viewportStateChanged() { syncScrollPaneWithViewport(); } function __comAdded(source, child) { var _local2 = scrollPane.getViewport().getViewportPane(); if (child == _local2) { _local2.removeEventListener(viewportStateChangeListener); _local2.addEventListener(viewportStateChangeListener); syncScrollPaneWithViewport(); } } function __adjustChanged() { var _local2 = scrollPane.getViewport(); _local2.scrollRectToVisible(scrollPane.getVisibleRect()); } }
Symbol 495 MovieClip [__Packages.org.aswing.plaf.basic.border.ProgressBarBorder] Frame 0
class org.aswing.plaf.basic.border.ProgressBarBorder extends org.aswing.border.LineBorder implements org.aswing.plaf.UIResource { static var instance; function ProgressBarBorder () { super(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(1, 1, 1, 1)), org.aswing.UIManager.getColor("ProgressBar.foreground")); } static function createInstance() { if (instance == null) { instance = new org.aswing.plaf.basic.border.ProgressBarBorder(); } return(instance); } }
Symbol 496 MovieClip [__Packages.org.aswing.border.EmptyBorder] Frame 0
class org.aswing.border.EmptyBorder extends org.aswing.border.DecorateBorder { var insets; function EmptyBorder (interior, insets) { super(interior); this.insets = new org.aswing.Insets(); this.insets.addInsets(insets); } function getBorderInsetsImp(c, bounds) { return(getInsets()); } function getInsets() { return(new org.aswing.Insets(insets.top, insets.left, insets.bottom, insets.right)); } function setInsets(insets) { this.insets = new org.aswing.Insets(insets.top, insets.left, insets.bottom, insets.right); } }
Symbol 497 MovieClip [__Packages.org.aswing.plaf.basic.icon.ProgressBarIcon] Frame 0
class org.aswing.plaf.basic.icon.ProgressBarIcon implements org.aswing.Icon, org.aswing.plaf.UIResource { var indeterminatePercent, color; function ProgressBarIcon () { indeterminatePercent = 0; color = org.aswing.UIManager.getColor("ProgressBar.progressColor"); } function getIconWidth() { return(0); } function getIconHeight() { return(0); } function paintIcon(com, g, x, y) { var _local9 = org.aswing.overflow.JProgressBar(com); if (_local9 == null) { return(undefined); } var _local10; if (_local9.isIndeterminate()) { _local10 = indeterminatePercent; indeterminatePercent = indeterminatePercent + 0.1; if (indeterminatePercent > 1) { indeterminatePercent = 0; } } else { _local10 = _local9.getPercentComplete(); } var _local4 = com.getPaintBounds(); var _local2 = new org.aswing.geom.Rectangle(_local4); var _local3 = 5; var _local6 = 1; g.beginFill(new org.aswing.graphics.SolidBrush(color)); if (_local9.getOrientation() == org.aswing.overflow.JProgressBar.VERTICAL) { _local2.height = _local3; var _local7 = (_local4.y + _local4.height) - (_local4.height * _local10); _local2.y = (_local4.y + _local4.height) - _local3; while (_local2.y >= _local7) { g.rectangle(_local2.x, _local2.y, _local2.width, _local2.height); _local2.y = _local2.y - (_local3 + _local6); } if ((_local2.y < _local7) && ((_local2.y + _local3) > _local7)) { _local2.height = _local3 - (_local7 - _local2.y); _local2.y = _local7; g.rectangle(_local2.x, _local2.y, _local2.width, _local2.height); } } else { _local2.width = _local3; var _local8 = _local4.x + (_local4.width * _local10); while (_local2.x <= (_local8 - _local3)) { g.rectangle(_local2.x, _local2.y, _local2.width, _local2.height); _local2.x = _local2.x + (_local3 + _local6); } _local2.width = _local8 - _local2.x; if (_local2.width > 0) { g.rectangle(_local2.x, _local2.y, _local2.width, _local2.height); } } g.endFill(); } function uninstallIcon(com) { } }
Symbol 498 MovieClip [__Packages.org.aswing.overflow.JProgressBar] Frame 0
class org.aswing.overflow.JProgressBar extends org.aswing.Component { var setName, orientation, model, indeterminate, string, icon, indeterminatePaintTimer, addEventListener, modelListener, uninstallIconWhenNextPaint, repaint, revalidate, fireStateChanged, isDisplayable; function JProgressBar (orient, min, max) { super(); setName("ProgressBar"); if (orient == undefined) { orient = HORIZONTAL; } if (min == undefined) { min = 0; } if (max == undefined) { max = 100; } orientation = orient; model = new org.aswing.DefaultBoundedRangeModel(min, 0, min, max); addListenerToModel(); indeterminate = false; string = null; icon = undefined; indeterminatePaintTimer = new org.aswing.util.Timer(50); indeterminatePaintTimer.addActionListener(__indeterminateInterval, this); addEventListener(org.aswing.Component.ON_CREATED, __validateIndeterminateIntervalIfNecessary, this); addEventListener(org.aswing.Component.ON_DESTROY, __validateIndeterminateIntervalIfNecessary, this); updateUI(); } function updateUI() { setUI(org.aswing.plaf.ProgressBarUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("ProgressBarUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicProgressBarUI); } function getModel() { return(model); } function setModel(newModel) { var _local2 = model; if (model != null) { model.removeEventListener(modelListener); } model = newModel; if (model != null) { model.setExtent(0); addListenerToModel(); } } function getIcon() { return(icon); } function setIcon(icon) { if (this.icon != icon) { if (this.icon != null) { uninstallIconWhenNextPaint(this.icon); } this.icon = icon; repaint(); } } function getString() { return(string); } function setString(s) { if (string != s) { string = s; repaint(); } } function getOrientation() { return(orientation); } function setOrientation(newOrientation) { if ((newOrientation != HORIZONTAL) && (newOrientation != VERTICAL)) { newOrientation = HORIZONTAL; } if (orientation != newOrientation) { orientation = newOrientation; revalidate(); repaint(); } } function getPercentComplete() { var _local2 = model.getMaximum() - model.getMinimum(); var _local3 = model.getValue(); var _local4 = (_local3 - model.getMinimum()) / _local2; return(_local4); } function getValue() { return(getModel().getValue()); } function getMinimum() { return(getModel().getMinimum()); } function getMaximum() { return(getModel().getMaximum()); } function setValue(n) { getModel().setValue(n); } function setMinimum(n) { getModel().setMinimum(n); } function setMaximum(n) { getModel().setMaximum(n); } function setIndeterminate(newValue) { indeterminate = newValue; __validateIndeterminateIntervalIfNecessary(); } function isIndeterminate() { return(indeterminate); } function addChangeListener(func, obj) { return(addEventListener(ON_STATE_CHANGED, func, obj)); } function addListenerToModel() { modelListener = model.addChangeListener(__onModelStateChanged, this); } function __onModelStateChanged() { fireStateChanged(); } function __indeterminateInterval() { repaint(); } function __validateIndeterminateIntervalIfNecessary() { if (isDisplayable() && (isIndeterminate())) { if (!indeterminatePaintTimer.isRunning()) { indeterminatePaintTimer.start(); } } else if (indeterminatePaintTimer.isRunning()) { indeterminatePaintTimer.stop(); } } static var ON_STATE_CHANGED = org.aswing.Component.ON_STATE_CHANGED; static var HORIZONTAL = org.aswing.ASWingConstants.HORIZONTAL; static var VERTICAL = org.aswing.ASWingConstants.VERTICAL; }
Symbol 499 MovieClip [__Packages.org.aswing.plaf.ProgressBarUI] Frame 0
class org.aswing.plaf.ProgressBarUI extends org.aswing.plaf.ComponentUI { function ProgressBarUI () { super(); } }
Symbol 500 MovieClip [__Packages.org.aswing.plaf.basic.BasicProgressBarUI] Frame 0
class org.aswing.plaf.basic.BasicProgressBarUI extends org.aswing.plaf.ProgressBarUI { var stringText, stateListener; function BasicProgressBarUI () { super(); } function installUI(c) { installDefaults(org.aswing.overflow.JProgressBar(c)); installListeners(org.aswing.overflow.JProgressBar(c)); } function uninstallUI(c) { uninstallDefaults(org.aswing.overflow.JProgressBar(c)); uninstallListeners(org.aswing.overflow.JProgressBar(c)); stringText.removeTextField(); } function installDefaults(s) { org.aswing.LookAndFeel.installColorsAndFont(s, "ProgressBar.background", "ProgressBar.foreground", "ProgressBar.font"); org.aswing.LookAndFeel.installBasicProperties(s, "ProgressBar."); org.aswing.LookAndFeel.installBorder(s, "ProgressBar.border"); if ((s.getIcon() === undefined) || (s.getIcon() instanceof org.aswing.plaf.UIResource)) { s.setIcon(org.aswing.UIManager.getIcon("ProgressBar.icon")); } } function uninstallDefaults(s) { org.aswing.LookAndFeel.uninstallBorder(s); if (s.getIcon() instanceof org.aswing.plaf.UIResource) { s.setIcon(undefined); } } function installListeners(s) { stateListener = s.addChangeListener(__stateChanged, this); } function uninstallListeners(s) { s.removeEventListener(stateListener); } function create(c) { stringText = c.createTextField("p_text"); } function __stateChanged(source) { source.repaint(); } function paint(c, g, b) { super.paint(c, g, b); var _local4 = org.aswing.overflow.JProgressBar(c); _local4.getIcon().paintIcon(c, g, b.x, b.y); if ((_local4.getString() != null) && (_local4.getString().length > 0)) { stringText.text = _local4.getString(); org.aswing.ASWingUtils.applyTextFontAndColor(stringText, _local4.getFont(), _local4.getForeground()); if (_local4.getOrientation() == org.aswing.overflow.JProgressBar.VERTICAL) { stringText._rotation = -90; stringText._x = Math.round(b.x + ((b.width - stringText._width) / 2)); stringText._y = Math.round((b.y + ((b.height - stringText._height) / 2)) + stringText._height); } else { stringText._rotation = 0; stringText._x = Math.round(b.x + ((b.width - stringText._width) / 2)); stringText._y = Math.round(b.y + ((b.height - stringText._height) / 2)); } } else { stringText.text = ""; } } function getPreferredSize(c) { var _local3 = org.aswing.overflow.JProgressBar(c); var _local2; if (_local3.getOrientation() == org.aswing.overflow.JProgressBar.VERTICAL) { _local2 = getPreferredInnerVertical(); } else { _local2 = getPreferredInnerHorizontal(); } if (_local3.getString() != null) { var _local4 = c.getFont().getASTextFormat().getTextExtent(_local3.getString()); if (_local3.getOrientation() == org.aswing.overflow.JProgressBar.VERTICAL) { _local2.width = Math.max(_local2.width, _local4.getTextFieldHeight()); _local2.height = Math.max(_local2.height, _local4.getTextFieldWidth()); } else { _local2.width = Math.max(_local2.width, _local4.getTextFieldWidth()); _local2.height = Math.max(_local2.height, _local4.getTextFieldHeight()); } } return(_local3.getInsets().getOutsideSize(_local2)); } function getMaximumSize(c) { return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } function getMinimumSize(c) { return(c.getInsets().getOutsideSize(new org.aswing.geom.Dimension(1, 1))); } function getPreferredInnerHorizontal() { return(new org.aswing.geom.Dimension(80, 12)); } function getPreferredInnerVertical() { return(new org.aswing.geom.Dimension(12, 80)); } }
Symbol 501 MovieClip [__Packages.org.aswing.plaf.basic.border.TableHeaderCellBorder] Frame 0
class org.aswing.plaf.basic.border.TableHeaderCellBorder extends org.aswing.border.BevelBorder implements org.aswing.plaf.UIResource { function TableHeaderCellBorder () { super(null, org.aswing.border.BevelBorder.RAISED); } }
Symbol 502 MovieClip [__Packages.org.aswing.plaf.basic.border.ColorChooserBorder] Frame 0
class org.aswing.plaf.basic.border.ColorChooserBorder extends org.aswing.border.EmptyBorder implements org.aswing.plaf.UIResource { function ColorChooserBorder () { super(null, new org.aswing.Insets(6, 6, 6, 6)); } }
Symbol 503 MovieClip [__Packages.org.aswing.plaf.basic.icon.SolidArrowIcon] Frame 0
class org.aswing.plaf.basic.icon.SolidArrowIcon implements org.aswing.Icon, org.aswing.plaf.UIResource { var arrow, width, height, color; function SolidArrowIcon (arrow, size, color) { this.arrow = arrow; width = size; height = size; this.color = color; } function getIconWidth() { return(width); } function getIconHeight() { return(height); } function setArrow(arrow) { this.arrow = arrow; } function paintIcon(com, g, x, y) { var _local5 = new org.aswing.geom.Point(x + (width / 2), y + (height / 2)); var _local3 = width; var _local2 = new Array(); _local2.push(_local5.nextPoint(arrow, (_local3 / 2) / 2)); var _local4 = _local5.nextPoint(arrow + Math.PI, (_local3 / 2) / 2); _local2.push(_local4.nextPoint(arrow - (Math.PI/2), _local3 / 2)); _local2.push(_local4.nextPoint(arrow + (Math.PI/2), _local3 / 2)); g.fillPolygon(new org.aswing.graphics.SolidBrush(color), _local2); } function uninstallIcon(com) { } }
Symbol 504 MovieClip [__Packages.org.aswing.plaf.basic.icon.MenuArrowIcon] Frame 0
class org.aswing.plaf.basic.icon.MenuArrowIcon extends org.aswing.plaf.basic.icon.SolidArrowIcon implements org.aswing.plaf.UIResource { function MenuArrowIcon () { super(0, 8, org.aswing.ASColor.__get__BLACK()); } }
Symbol 505 MovieClip [__Packages.org.aswing.plaf.basic.icon.MenuItemArrowIcon] Frame 0
class org.aswing.plaf.basic.icon.MenuItemArrowIcon extends org.aswing.plaf.basic.icon.MenuArrowIcon { function MenuItemArrowIcon () { super(); } function paintIcon(com, g, x, y) { } }
Symbol 506 MovieClip [__Packages.org.aswing.plaf.basic.icon.MenuCheckIcon] Frame 0
class org.aswing.plaf.basic.icon.MenuCheckIcon implements org.aswing.Icon, org.aswing.plaf.UIResource { function MenuCheckIcon () { } function getIconWidth() { return(8); } function getIconHeight() { return(8); } function paintIcon(com, g, x, y) { } function uninstallIcon(com) { } }
Symbol 507 MovieClip [__Packages.org.aswing.plaf.basic.icon.MenuItemCheckIcon] Frame 0
class org.aswing.plaf.basic.icon.MenuItemCheckIcon extends org.aswing.plaf.basic.icon.MenuCheckIcon { function MenuItemCheckIcon () { super(); } }
Symbol 508 MovieClip [__Packages.org.aswing.plaf.basic.icon.CheckBoxMenuItemCheckIcon] Frame 0
class org.aswing.plaf.basic.icon.CheckBoxMenuItemCheckIcon extends org.aswing.plaf.basic.icon.MenuCheckIcon { function CheckBoxMenuItemCheckIcon () { super(); } function paintIcon(com, g, x, y) { var _local2 = org.aswing.overflow.JMenuItem(com); if (_local2.isSelected()) { g.beginDraw(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__BLACK(), 2)); g.moveTo(x, y + 4); g.lineTo(x + 3, y + 7); g.lineTo(x + 7, y + 2); g.endDraw(); } } }
Symbol 509 MovieClip [__Packages.org.aswing.MenuElement] Frame 0
interface org.aswing.MenuElement { }
Symbol 510 MovieClip [__Packages.org.aswing.overflow.JMenuItem] Frame 0
class org.aswing.overflow.JMenuItem extends org.aswing.AbstractButton implements org.aswing.MenuElement { var setName, setModel, menuInUse, accelerator, ui, revalidate, repaint, setFocusable, click, getModel; function JMenuItem (text, icon) { super(text, icon); setName("JMenuItem"); setModel(new org.aswing.DefaultButtonModel()); initFocusability(); menuInUse = false; accelerator = null; updateUI(); } function updateUI() { setUI(org.aswing.plaf.MenuItemUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("MenuItemUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicMenuItemUI); } function getUI() { return(org.aswing.plaf.MenuItemUI(ui)); } function setAccelerator(acc) { if (accelerator != acc) { accelerator = acc; revalidate(); repaint(); } } function getAccelerator() { return(accelerator); } function initFocusability() { setFocusable(false); } function getWindowOwner() { var _local2 = this; do { _local2 = _local2.getParent(); if (_local2 instanceof org.aswing.overflow.JPopupMenu) { _local2 = org.aswing.overflow.JPopupMenu(_local2).getInvoker(); } if (_local2 instanceof org.aswing.JWindow) { return(org.aswing.JWindow(_local2)); } } while (_local2 != null); return(null); } function inUseChanged() { var _local2 = getAccelerator(); if (_local2 != null) { var _local3 = getWindowOwner().getKeyMap(); if (_local3 != null) { if (isInUse()) { _local3.registerKeyAction(_local2, __acceleratorAction, this); } else { _local3.unregisterKeyAction(_local2); } } } } function __acceleratorAction() { click(); } function setInUse(b) { if (menuInUse != b) { menuInUse = b; inUseChanged(); } } function isInUse() { return(menuInUse); } function menuSelectionChanged(isIncluded) { getModel().setRollOver(isIncluded); } function getSubElements() { return([]); } function getMenuComponent() { return(this); } function processKeyEvent(code) { getUI().processKeyEvent(code); } }
Symbol 511 MovieClip [__Packages.org.aswing.plaf.MenuItemUI] Frame 0
class org.aswing.plaf.MenuItemUI extends org.aswing.plaf.ButtonUI { function MenuItemUI () { super(); } function processKeyEvent(code) { } }
Symbol 512 MovieClip [__Packages.org.aswing.plaf.basic.BasicMenuItemUI] Frame 0
class org.aswing.plaf.basic.BasicMenuItemUI extends org.aswing.plaf.MenuItemUI { static var viewRect, iconRect, textRect, acceleratorRect, checkIconRect, arrowIconRect, zeroRect, r; var menuItem, textField, accelTextField, selectionBackground, selectionForeground, disabledForeground, acceleratorForeground, acceleratorSelectionForeground, acceleratorFont, arrowIcon, checkIcon, defaultTextIconGap, menuItemLis, lastPaintedCheckIcon, lastPaintedArrowIcon, lastPaintedIcon; function BasicMenuItemUI () { super(); } function installUI(c) { menuItem = org.aswing.overflow.JMenuItem(c); installDefaults(); installListeners(); } function uninstallUI(c) { menuItem = org.aswing.overflow.JMenuItem(c); uninstallDefaults(); uninstallListeners(); textField.removeTextField(); accelTextField.removeTextField(); textField = null; accelTextField = null; } function getPropertyPrefix() { return("MenuItem"); } function installDefaults() { menuItem.setHorizontalAlignment(org.aswing.AbstractButton.LEFT); menuItem.setVerticalAlignment(org.aswing.AbstractButton.CENTER); var _local2 = getPropertyPrefix() + "."; org.aswing.LookAndFeel.installColorsAndFont(menuItem, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBorder(menuItem, _local2 + "border"); org.aswing.LookAndFeel.installBasicProperties(menuItem, _local2); selectionBackground = org.aswing.UIManager.getColor(_local2 + "selectionBackground"); selectionForeground = org.aswing.UIManager.getColor(_local2 + "selectionForeground"); disabledForeground = org.aswing.UIManager.getColor(_local2 + "disabledForeground"); acceleratorForeground = org.aswing.UIManager.getColor(_local2 + "acceleratorForeground"); acceleratorSelectionForeground = org.aswing.UIManager.getColor(_local2 + "acceleratorSelectionForeground"); acceleratorFont = org.aswing.UIManager.getFont(_local2 + "acceleratorFont"); if ((menuItem.getMargin() === undefined) || (menuItem.getMargin() instanceof org.aswing.plaf.UIResource)) { menuItem.setMargin(org.aswing.UIManager.getInsets(_local2 + "margin")); } arrowIcon = org.aswing.UIManager.getIcon(_local2 + "arrowIcon"); checkIcon = org.aswing.UIManager.getIcon(_local2 + "checkIcon"); defaultTextIconGap = 4; } function installListeners() { menuItemLis = new Object(); menuItemLis[org.aswing.overflow.JMenuItem.ON_ROLLOVER] = org.aswing.util.Delegate.create(this, ____menuItemRollOver); menuItemLis[org.aswing.overflow.JMenuItem.ON_ROLLOUT] = org.aswing.util.Delegate.create(this, ____menuItemRollOut); menuItemLis[org.aswing.overflow.JMenuItem.ON_RELEASEOUTSIDE] = menuItemLis[org.aswing.overflow.JMenuItem.ON_ROLLOUT]; menuItemLis[org.aswing.overflow.JMenuItem.ON_ACT] = org.aswing.util.Delegate.create(this, ____menuItemAct); menuItemLis[org.aswing.overflow.JMenuItem.ON_STATE_CHANGED] = org.aswing.util.Delegate.create(this, __menuStateChanged); menuItem.addEventListener(menuItemLis); } function uninstallDefaults() { org.aswing.LookAndFeel.uninstallBorder(menuItem); } function uninstallListeners() { menuItem.removeEventListener(menuItemLis); menuItemLis = null; } function processKeyEvent(code) { var _local3 = org.aswing.MenuSelectionManager.defaultManager(); var _local2 = _local3.getSelectedPath(); if (_local2[_local2.length - 1] != menuItem) { return(undefined); } if (_local3.isEnterKey(code)) { menuItem.click(); return(undefined); } if ((_local2.length > 1) && (_local2[_local2.length - 1] == menuItem)) { if (_local3.isPageNavKey(code)) { _local2.pop(); _local3.setSelectedPath(_local2); org.aswing.MenuElement(_local2[_local2.length - 1]).processKeyEvent(code); } else if (_local3.isItemNavKey(code)) { _local2.pop(); if (_local3.isPrevItemKey(code)) { _local2.push(_local3.prevSubElement(org.aswing.MenuElement(_local2[_local2.length - 1]), menuItem)); } else { _local2.push(_local3.nextSubElement(org.aswing.MenuElement(_local2[_local2.length - 1]), menuItem)); } _local3.setSelectedPath(_local2); } } } function __menuItemRollOver() { org.aswing.MenuSelectionManager.defaultManager().setSelectedPath(getPath()); menuItem.repaint(); } function __menuItemRollOut() { var _local2 = org.aswing.MenuSelectionManager.defaultManager().getSelectedPath(); if ((_local2.length > 1) && (_local2[_local2.length - 1] == menuItem)) { _local2.pop(); org.aswing.MenuSelectionManager.defaultManager().setSelectedPath(_local2); } menuItem.repaint(); } function __menuItemAct() { org.aswing.MenuSelectionManager.defaultManager().clearSelectedPath(); menuItem.repaint(); } function __menuStateChanged() { menuItem.repaint(); } function ____menuItemRollOver() { __menuItemRollOver(); } function ____menuItemRollOut() { __menuItemRollOut(); } function ____menuItemAct() { __menuItemAct(); } function isMenu() { return(false); } function isTopMenu() { return(false); } function shouldPaintSelected() { return(menuItem.getModel().isRollOver()); } function getPath() { var _local7 = org.aswing.MenuSelectionManager.defaultManager(); var _local3 = _local7.getSelectedPath(); var _local5; var _local6 = _local3.length; if (_local6 == 0) { return([]); } var _local4 = menuItem.getParent(); if (org.aswing.MenuElement(_local3[_local6 - 1]).getMenuComponent() == _local4) { _local5 = _local3.concat(); _local5.push(menuItem); } else { var _local2; _local2 = _local3.length - 1; while (_local2 >= 0) { if (org.aswing.MenuElement(_local3[_local2]).getMenuComponent() == _local4) { break; } _local2--; } _local5 = _local3.slice(0, _local2 + 1); _local5.push(menuItem); } return(_local5); } function create(c) { textField = c.createTextField("txt"); accelTextField = c.createTextField("acctxt"); c.setFontValidated(false); } function paint(c, g, b) { var _local2 = org.aswing.overflow.JMenuItem(c); paintMenuItem(_local2, g, b, checkIcon, arrowIcon, selectionBackground, selectionForeground, defaultTextIconGap); } function paintMenuItem(b, g, r, checkIcon, arrowIcon, background, foreground, defaultTextIconGap) { var _local6 = b.getModel(); resetRects(); viewRect.setRect(r); var _local11 = b.getFont(); var _local4 = getAcceleratorText(b); var _local7 = layoutMenuItem(_local11, b.getText(), acceleratorFont, _local4, b.getIcon(), checkIcon, arrowIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRect, acceleratorRect, checkIconRect, arrowIconRect, ((b.getText() == null) ? 0 : (defaultTextIconGap)), defaultTextIconGap); paintMenuBackground(b, g, r, background); var _local12 = shouldPaintSelected(); paintCheckIcon(b, (useCheckAndArrow() ? (checkIcon) : null), g, checkIconRect.x, checkIconRect.y); var _local3 = null; if (b.getIcon() != null) { if (!_local6.isEnabled()) { _local3 = b.getDisabledIcon(); } else if (_local6.isPressed() && (_local6.isRollOver())) { _local3 = b.getPressedIcon(); if (_local3 == null) { _local3 = b.getIcon(); } } else { _local3 = b.getIcon(); } } paintIcon(b, _local3, g, iconRect.x, iconRect.y); if ((_local7 != null) && (_local7 != "")) { var _local5 = b.getForeground(); if (_local12) { _local5 = selectionForeground; } if (!b.isEnabled()) { if (disabledForeground != null) { _local5 = disabledForeground; } else { _local5 = b.getBackground().brighter(); } } textField._visible = true; paintTextField(b, textRect, textField, _local7, _local11, _local5, true); } else { textField._visible = false; } if ((_local4 != null) && (_local4 != "")) { var _local10 = 0; var _local14 = menuItem.getParent(); if (_local14 != null) { var _local15 = _local14; var _local9 = _local15.getClientProperty(MAX_ACC_WIDTH); if (_local9 == null) { _local9 = acceleratorRect.width; } _local10 = _local9 - acceleratorRect.width; } var _local8 = new org.aswing.geom.Rectangle(); _local8.x = acceleratorRect.x - _local10; _local8.y = acceleratorRect.y; var _local5 = acceleratorForeground; if (!_local6.isEnabled()) { if (disabledForeground != null) { _local5 = disabledForeground; } else { _local5 = b.getBackground().brighter(); } } else if (_local12) { _local5 = acceleratorSelectionForeground; } accelTextField._visible = true; paintTextField(b, _local8, accelTextField, _local4, acceleratorFont, _local5, false); } else { accelTextField._visible = false; } paintArrowIcon(b, (useCheckAndArrow() ? (arrowIcon) : null), g, arrowIconRect.x, arrowIconRect.y); } function paintCheckIcon(b, icon, g, x, y) { if (lastPaintedCheckIcon != icon) { if (lastPaintedCheckIcon != null) { lastPaintedCheckIcon.uninstallIcon(b); } lastPaintedCheckIcon = icon; } icon.paintIcon(b, g, x, y); } function paintArrowIcon(b, icon, g, x, y) { if (lastPaintedArrowIcon != icon) { if (lastPaintedArrowIcon != null) { lastPaintedArrowIcon.uninstallIcon(b); } lastPaintedArrowIcon = icon; } icon.paintIcon(b, g, x, y); } function paintIcon(b, icon, g, x, y) { if (lastPaintedIcon != icon) { if (lastPaintedIcon != null) { lastPaintedIcon.uninstallIcon(b); } lastPaintedIcon = icon; } icon.paintIcon(b, g, x, y); } function paintMenuBackground(menuItem, g, r, bgColor) { var _local5 = menuItem.getModel(); var _local3 = bgColor; if (menuItem.isOpaque()) { if (!shouldPaintSelected()) { _local3 = menuItem.getBackground(); } g.fillRectangle(new org.aswing.graphics.SolidBrush(_local3), r.x, r.y, r.width, r.height); } else if (shouldPaintSelected()) { g.fillRectangle(new org.aswing.graphics.SolidBrush(_local3), r.x, r.y, r.width, r.height); } } function paintTextField(b, tRect, textField, text, font, color, validateFont) { if (textField.text != text) { textField.text = text; } if (validateFont && (!b.isFontValidated())) { org.aswing.ASWingUtils.applyTextFont(textField, font); b.setFontValidated(true); } org.aswing.ASWingUtils.applyTextColor(textField, color); textField._x = tRect.x; textField._y = tRect.y; } function resetRects() { if (zeroRect == null) { zeroRect = new org.aswing.geom.Rectangle(0, 0, 0, 0); iconRect = new org.aswing.geom.Rectangle(); textRect = new org.aswing.geom.Rectangle(); acceleratorRect = new org.aswing.geom.Rectangle(); checkIconRect = new org.aswing.geom.Rectangle(); arrowIconRect = new org.aswing.geom.Rectangle(); viewRect = new org.aswing.geom.Rectangle(0, 0, Number.MAX_VALUE, Number.MAX_VALUE); r = new org.aswing.geom.Rectangle(); } iconRect.setRect(zeroRect); textRect.setRect(zeroRect); acceleratorRect.setRect(zeroRect); checkIconRect.setRect(zeroRect); arrowIconRect.setRect(zeroRect); viewRect.setRect(0, 0, 100000, 100000); r.setRect(zeroRect); } function getPreferredMenuItemSize(b, checkIcon, arrowIcon, defaultTextIconGap) { var _local14 = b.getIcon(); var _local7 = b.getText(); var _local12 = getAcceleratorText(b); var _local13 = b.getFont(); resetRects(); layoutMenuItem(_local13, _local7, acceleratorFont, _local12, _local14, checkIcon, arrowIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRect, acceleratorRect, checkIconRect, arrowIconRect, ((_local7 == null) ? 0 : (defaultTextIconGap)), defaultTextIconGap); r = textRect.union(iconRect); var _local11 = menuItem.getParent(); if ((_local11 != null) && (!isTopMenu())) { var _local4 = _local11; var _local10 = _local4.getClientProperty(MAX_TEXT_WIDTH); var _local8 = _local4.getClientProperty(MAX_ACC_WIDTH); var _local9 = ((_local10 != null) ? (_local10) : 0); var _local6 = ((_local8 != null) ? (_local8) : 0); if (r.width < _local9) { r.width = _local9; } else { _local4.putClientProperty(MAX_TEXT_WIDTH, r.width); } if (acceleratorRect.width > _local6) { _local6 = acceleratorRect.width; _local4.putClientProperty(MAX_ACC_WIDTH, acceleratorRect.width); } r.width = r.width + _local6; r.width = r.width + defaultTextIconGap; } if (useCheckAndArrow()) { r.width = r.width + checkIconRect.width; r.width = r.width + defaultTextIconGap; r.width = r.width + defaultTextIconGap; r.width = r.width + arrowIconRect.width; } r.width = r.width + (2 * defaultTextIconGap); var _local3 = b.getInsets(); if (_local3 != null) { r.width = r.width + (_local3.left + _local3.right); r.height = r.height + (_local3.top + _local3.bottom); } r.width = Math.ceil(r.width); r.height = Math.ceil(r.height); if ((r.width % 2) == 0) { r.width++; } if ((r.height % 2) == 0) { r.height++; } return(r.getSize()); } function getAcceleratorText(b) { if (b.getAccelerator() == null) { return(""); } return(b.getAccelerator().getDescription()); } function layoutMenuItem(font, text, accelFont, acceleratorText, icon, checkIcon, arrowIcon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewRect, iconRect, textRect, acceleratorRect, checkIconRect, arrowIconRect, textIconGap, menuItemGap) { org.aswing.ASWingUtils.layoutCompoundLabel(font, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewRect, iconRect, textRect, textIconGap); if ((acceleratorText == null) || (acceleratorText == "")) { acceleratorRect.width = (acceleratorRect.height = 0); acceleratorText = ""; } else { var _local9 = accelFont.getASTextFormat().getTextExtent(acceleratorText); acceleratorRect.width = Math.ceil(_local9.getTextFieldWidth()); acceleratorRect.height = Math.ceil(_local9.getTextFieldHeight()); } if (useCheckAndArrow()) { if (checkIcon != null) { checkIconRect.width = Math.ceil(checkIcon.getIconWidth()); checkIconRect.height = Math.ceil(checkIcon.getIconHeight()); } else { checkIconRect.width = (checkIconRect.height = 0); } if (arrowIcon != null) { arrowIconRect.width = Math.ceil(arrowIcon.getIconWidth()); arrowIconRect.height = Math.ceil(arrowIcon.getIconHeight()); } else { arrowIconRect.width = (arrowIconRect.height = 0); } } var _local4 = iconRect.union(textRect); textRect.x = textRect.x + menuItemGap; iconRect.x = iconRect.x + menuItemGap; acceleratorRect.x = (((viewRect.x + viewRect.width) - arrowIconRect.width) - (menuItemGap * 2)) - acceleratorRect.width; if (useCheckAndArrow()) { checkIconRect.x = viewRect.x + menuItemGap; textRect.x = textRect.x + (menuItemGap + checkIconRect.width); iconRect.x = iconRect.x + (menuItemGap + checkIconRect.width); arrowIconRect.x = ((viewRect.x + viewRect.width) - menuItemGap) - arrowIconRect.width; } acceleratorRect.y = (_local4.y + Math.floor(_local4.height / 2)) - Math.floor(acceleratorRect.height / 2); if (useCheckAndArrow()) { arrowIconRect.y = (_local4.y + Math.floor(_local4.height / 2)) - Math.floor(arrowIconRect.height / 2); checkIconRect.y = (_local4.y + Math.floor(_local4.height / 2)) - Math.floor(checkIconRect.height / 2); } return(text); } function useCheckAndArrow() { return(!isTopMenu()); } function getPreferredSize(c) { var _local2 = org.aswing.overflow.JMenuItem(c); return(getPreferredMenuItemSize(_local2, checkIcon, arrowIcon, defaultTextIconGap)); } function getMinimumSize(c) { var _local2 = menuItem.getInsets().getOutsideSize(); if (menuItem.getMargin() != null) { _local2 = menuItem.getMargin().getOutsideSize(_local2); } return(_local2); } function getMaximumSize(c) { return(new org.aswing.geom.Dimension(Number.MAX_VALUE, Number.MAX_VALUE)); } static var MAX_TEXT_WIDTH = "maxTextWidth"; static var MAX_ACC_WIDTH = "maxAccWidth"; }
Symbol 513 MovieClip [__Packages.org.aswing.MenuSelectionManager] Frame 0
class org.aswing.MenuSelectionManager extends org.aswing.EventDispatcher { static var instance; var selection, keyListener, keyListenerWorking, addEventListener, dispatchEvent, createEventObj; function MenuSelectionManager () { super(); selection = new org.aswing.util.Vector(); keyListener = new Object(); keyListener.onKeyDown = org.aswing.util.Delegate.create(this, __onMSMKeyDown); keyListenerWorking = false; } static function defaultManager() { if (instance == null) { instance = new org.aswing.MenuSelectionManager(); } return(instance); } static function setDefaultManager(m) { instance = m; } function setSelectedPath(path) { var _local2; var _local5; var _local8 = selection.size(); var _local6 = 0; if (path == null) { path = new Array(); } _local2 = 0; _local5 = path.length; while (_local2 < _local5) { if ((_local2 < _local8) && (selection.get(_local2) == path[_local2])) { _local6++; } else { break; } _local2++; } _local2 = _local8 - 1; while (_local2 >= _local6) { var _local7 = org.aswing.MenuElement(selection.get(_local2)); selection.removeAt(_local2); _local7.menuSelectionChanged(false); _local2--; } _local2 = _local6; _local5 = path.length; while (_local2 < _local5) { var _local3 = org.aswing.MenuElement(path[_local2]); if (_local3 != null) { selection.append(_local3); _local3.menuSelectionChanged(true); } _local2++; } if ((_local6 < (path.length - 1)) || (_local8 != path.length)) { fireStateChanged(); } if (selection.size() == 0) { if (keyListenerWorking) { Key.removeListener(keyListener); keyListenerWorking = false; } } else if (!keyListenerWorking) { Key.addListener(keyListener); keyListenerWorking = true; } } function addChangeListener(func, obj) { return(addEventListener(ON_STATE_CHANGED, func, obj)); } function getSelectedPath() { return(selection.toArray()); } function clearSelectedPath() { if (selection.size() > 0) { setSelectedPath(null); } } function isComponentPartOfCurrentMenu(c) { if (selection.size() > 0) { var _local2 = org.aswing.MenuElement(selection.get(0)); return(isComponentPartOfMenu(_local2, c)); } return(false); } function isNavigatingKey(code) { return(isPageNavKey(code) || (isItemNavKey(code))); } function isPageNavKey(code) { return(isPrevPageKey(code) || (isNextPageKey(code))); } function isItemNavKey(code) { return(isPrevItemKey(code) || (isNextItemKey(code))); } function isPrevPageKey(code) { return(code == 37); } function isPrevItemKey(code) { return(code == 38); } function isNextPageKey(code) { return(code == 39); } function isNextItemKey(code) { return(code == 40); } function isEnterKey(code) { return(code == 13); } function isEscKey(code) { return((code == 9) || (code == 27)); } function nextSubElement(parent, sub) { return(besideSubElement(parent, sub, 1)); } function prevSubElement(parent, sub) { return(besideSubElement(parent, sub, -1)); } function besideSubElement(parent, sub, dir) { if ((parent == null) || (sub == null)) { return(null); } var _local2 = parent.getSubElements(); var _local1 = org.aswing.util.ArrayUtils.indexInArray(_local2, sub); if (_local1 < 0) { return(null); } _local1 = _local1 + dir; if (_local1 >= _local2.length) { _local1 = 0; } else if (_local1 < 0) { _local1 = _local2.length - 1; } return(org.aswing.MenuElement(_local2[_local1])); } function isComponentPartOfMenu(root, c) { var _local4; var _local2; var _local5; if (root == null) { return(false); } if (root.getMenuComponent() == c) { return(true); } _local4 = root.getSubElements(); _local2 = 0; _local5 = _local4.length; while (_local2 < _local5) { var _local3 = org.aswing.MenuElement(_local4[_local2]); if ((_local3 != null) && (isComponentPartOfMenu(_local3, c))) { return(true); } _local2++; } return(false); } function fireStateChanged() { dispatchEvent(createEventObj(ON_STATE_CHANGED)); } function __onMSMKeyDown() { if (selection.size() == 0) { return(undefined); } var _local2 = Key.getCode(); if (isEscKey(_local2)) { setSelectedPath(null); return(undefined); } var _local3 = org.aswing.MenuElement(selection.last()); _local3.processKeyEvent(Key.getCode()); } static var ON_STATE_CHANGED = "onStateChanged"; }
Symbol 514 MovieClip [__Packages.org.aswing.overflow.JPopupMenu] Frame 0
class org.aswing.overflow.JPopupMenu extends org.aswing.Container implements org.aswing.MenuElement { static var popupMenuMouseLis, showingMenuPopups, popupLis; var setName, menuInUse, layout, popup, childLis, addEventListener, ui, append, selectionModel, getIndex, invoker, getComponentCount, getComponent; function JPopupMenu () { super(); setName("JPopupMenu"); menuInUse = false; if (popupMenuMouseLis == null) { popupMenuMouseLis = {onMouseDown:org.aswing.util.Delegate.create(org.aswing.overflow.JPopupMenu, __popupMenuMouseDown)}; Mouse.addListener(popupMenuMouseLis); showingMenuPopups = new Array(); popupLis = new Object(); popupLis[org.aswing.overflow.JPopup.ON_WINDOW_OPENED] = org.aswing.util.Delegate.create(org.aswing.overflow.JPopupMenu, __popupShown); popupLis[org.aswing.overflow.JPopup.ON_WINDOW_CLOSED] = org.aswing.util.Delegate.create(org.aswing.overflow.JPopupMenu, __popupClosed); } layout = undefined; setSelectionModel(new org.aswing.DefaultSingleSelectionModel()); popup = new org.aswing.overflow.JPopup(); popup.setLayout(new org.aswing.WindowLayout()); popup.append(this, org.aswing.WindowLayout.CONTENT); popup.addEventListener(popupLis); childLis = new Object(); childLis[org.aswing.Container.ON_COM_ADDED] = org.aswing.util.Delegate.create(this, __popMenuChildAdd); childLis[org.aswing.Container.ON_COM_REMOVED] = org.aswing.util.Delegate.create(this, __popMenuChildRemove); addEventListener(childLis); updateUI(); } function updateUI() { setUI(org.aswing.plaf.PopupMenuUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("PopupMenuUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicPopupMenuUI); } function getUI() { return(org.aswing.plaf.PopupMenuUI(ui)); } function addMenuItem(s) { var _local2 = new org.aswing.overflow.JMenuItem(s); append(_local2); return(_local2); } function getSelectionModel() { return(selectionModel); } function setSelectionModel(model) { selectionModel = model; } function setSelected(sel) { var _local3 = getSelectionModel(); var _local2 = getIndex(sel); _local3.setSelectedIndex(_local2); } function isSelected() { return(selectionModel.isSelected()); } function setVisible(b) { if (b == isVisible()) { return(undefined); } if (b == false) { getSelectionModel().clearSelection(); } else if (isPopupMenu()) { var _local2 = getSubElements(); if (_local2.length > 0) { var _local4 = [this, _local2[0]]; org.aswing.MenuSelectionManager.defaultManager().setSelectedPath(_local4); } else { org.aswing.MenuSelectionManager.defaultManager().setSelectedPath([this]); } } popup.changeOwner(org.aswing.ASWingUtils.getOwnerAncestor(invoker)); if (b) { popup.setVisible(true); if (isPopupMenu()) { setInUse(true); } } else { popup.dispose(); if (isPopupMenu()) { setInUse(false); } } } function isVisible() { return(popup.isVisible()); } function getInvoker() { return(invoker); } function setInvoker(invoker) { var _local2 = this.invoker; this.invoker = invoker; popup.changeOwner(org.aswing.ASWingUtils.getOwnerAncestor(invoker)); } function show(invoker, x, y) { setInvoker(invoker); var _local2 = invoker.getGlobalLocation(); if (_local2 == null) { _local2 = new org.aswing.geom.Point(x, y); } else { _local2.move(x, y); } pack(); setVisible(true); adjustPopupLocationToFitScreen(_local2); popup.setGlobalLocation(_local2); } function pack() { popup.pack(); } function dispose() { popup.dispose(); if (isPopupMenu()) { setInUse(false); } } function getRootPopupMenu() { var _local2 = this; while (((((_local2 != null) && (_local2.isPopupMenu() != true)) && (_local2.getInvoker() != null)) && (_local2.getInvoker().getParent() != null)) && (_local2.getInvoker().getParent() instanceof org.aswing.overflow.JPopupMenu)) { _local2 = org.aswing.overflow.JPopupMenu(_local2.getInvoker().getParent()); } return(_local2); } function isSubPopupMenu(popupMenu) { var _local7 = getComponentCount(); var _local2 = 0; while (_local2 < _local7) { var _local4 = getComponent(_local2); if (_local4 instanceof org.aswing.overflow.JMenu) { var _local5 = org.aswing.overflow.JMenu(_local4); var _local3 = _local5.getPopupMenu(); if (_local3 == popupMenu) { return(true); } if (_local3.isSubPopupMenu(popupMenu)) { return(true); } } _local2++; } return(false); } function isPopupMenu() { return((invoker != null) && (!(invoker instanceof org.aswing.overflow.JMenu))); } function adjustPopupLocationToFitScreen(gp) { var _local3 = org.aswing.ASWingUtils.getVisibleMaximizedBounds(); if ((gp.x + popup.getWidth()) > (_local3.x + _local3.width)) { gp.x = gp.x - popup.getWidth(); } if (gp.x < _local3.x) { gp.x = _local3.x; } if ((gp.y + popup.getHeight()) > (_local3.y + _local3.height)) { gp.y = gp.y - popup.getHeight(); } if (gp.y < _local3.y) { gp.y = _local3.y; } return(gp); } function __popMenuChildAdd(source, child) { if (child instanceof org.aswing.MenuElement) { org.aswing.MenuElement(child).setInUse(isInUse()); } } function __popMenuChildRemove(source, child) { if (child instanceof org.aswing.MenuElement) { org.aswing.MenuElement(child).setInUse(false); } } function menuSelectionChanged(isIncluded) { if (invoker instanceof org.aswing.overflow.JMenu) { var _local2 = org.aswing.overflow.JMenu(invoker); if (isIncluded) { _local2.setPopupMenuVisible(true); } else { _local2.setPopupMenuVisible(false); } } if (isPopupMenu() && (!isIncluded)) { setVisible(false); } } function getSubElements() { var _local4 = new Array(); var _local2 = 0; while (_local2 < getComponentCount()) { var _local3 = getComponent(_local2); if (_local3 instanceof org.aswing.MenuElement) { _local4.push(_local3); } _local2++; } return(_local4); } function getMenuComponent() { return(this); } function processKeyEvent(code) { getUI().processKeyEvent(code); } function setInUse(b) { if (menuInUse != b) { menuInUse = b; var _local4 = getSubElements(); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = org.aswing.MenuElement(_local4[_local2]); _local3.setInUse(b); _local2++; } } } function isInUse() { return(menuInUse); } static function __popupMenuMouseDown() { var _local4 = false; var _local3 = showingMenuPopups; var _local5 = _local3.length > 0; var _local1 = 0; while (_local1 < _local3.length) { var _local2 = org.aswing.overflow.JPopup(_local3[_local1]); if (_local2.hitTestMouse()) { _local4 = true; break; } _local1++; } if (_local5 && (!_local4)) { org.aswing.MenuSelectionManager.defaultManager().clearSelectedPath(); } } function __popupShown(source) { showingMenuPopups.push(source); } function __popupClosed(source) { org.aswing.util.ArrayUtils.removeFromArray(showingMenuPopups, source); } }
Symbol 515 MovieClip [__Packages.org.aswing.SingleSelectionModel] Frame 0
interface org.aswing.SingleSelectionModel extends org.aswing.IEventDispatcher { }
Symbol 516 MovieClip [__Packages.org.aswing.DefaultSingleSelectionModel] Frame 0
class org.aswing.DefaultSingleSelectionModel extends org.aswing.EventDispatcher implements org.aswing.SingleSelectionModel { var index, addEventListener, dispatchEvent, createEventObj; function DefaultSingleSelectionModel () { super(); index = -1; } function getSelectedIndex() { return(index); } function setSelectedIndex(index) { if (this.index != index) { this.index = index; fireChangeEvent(); } } function clearSelection() { setSelectedIndex(-1); } function isSelected() { return(getSelectedIndex() != -1); } function addChangeListener(func, obj) { return(addEventListener(org.aswing.Component.ON_STATE_CHANGED, func, obj)); } function fireChangeEvent() { dispatchEvent(createEventObj(org.aswing.Component.ON_STATE_CHANGED)); } }
Symbol 517 MovieClip [__Packages.org.aswing.plaf.PopupMenuUI] Frame 0
class org.aswing.plaf.PopupMenuUI extends org.aswing.plaf.ComponentUI { function PopupMenuUI () { super(); } function processKeyEvent(code) { } }
Symbol 518 MovieClip [__Packages.org.aswing.plaf.basic.BasicPopupMenuUI] Frame 0
class org.aswing.plaf.basic.BasicPopupMenuUI extends org.aswing.plaf.PopupMenuUI { var popupMenu; function BasicPopupMenuUI () { super(); } function installUI(c) { popupMenu = org.aswing.overflow.JPopupMenu(c); installDefaults(); installListeners(); } function uninstallUI(c) { popupMenu = org.aswing.overflow.JPopupMenu(c); uninstallDefaults(); uninstallListeners(); } function installDefaults() { var _local2 = "PopupMenu."; org.aswing.LookAndFeel.installColorsAndFont(popupMenu, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBorder(popupMenu, _local2 + "border"); org.aswing.LookAndFeel.installBasicProperties(popupMenu, _local2); var _local3 = popupMenu.getLayout(); if ((_local3 == null) || (_local3 instanceof org.aswing.plaf.UIResource)) { popupMenu.setLayout(new org.aswing.plaf.basic.DefaultMenuLayout(org.aswing.SoftBoxLayout.Y_AXIS)); } } function installListeners() { } function uninstallDefaults() { org.aswing.LookAndFeel.uninstallBorder(popupMenu); } function uninstallListeners() { } function processKeyEvent(code) { var _local3 = org.aswing.MenuSelectionManager.defaultManager(); var _local2 = _local3.getSelectedPath(); if (_local2[_local2.length - 1] != popupMenu) { return(undefined); } if (_local3.isPrevPageKey(code)) { if (_local2.length > 2) { _local2.pop(); } if ((_local2.length == 2) && (!(_local2[0] instanceof org.aswing.overflow.JPopupMenu))) { var _local4 = org.aswing.MenuElement(_local2[0]); var _local8 = _local3.prevSubElement(_local4, org.aswing.MenuElement(_local2[1])); _local2.pop(); _local2.push(_local8); if (_local8.getSubElements().length > 0) { var _local7 = org.aswing.MenuElement(_local8.getSubElements()[0]); _local2.push(_local7); if (_local7.getSubElements().length > 0) { _local2.push(_local7.getSubElements()[0]); } } } else { var _local5 = popupMenu.getSubElements(); if (_local5.length > 0) { _local2.push(_local5[_local5.length - 1]); } } _local3.setSelectedPath(_local2); } else if (_local3.isNextPageKey(code)) { var _local4 = org.aswing.MenuElement(_local2[0]); if ((_local4.getSubElements().length > 1) && (!(_local4 instanceof org.aswing.overflow.JPopupMenu))) { var _local9 = _local3.nextSubElement(_local4, org.aswing.MenuElement(_local2[1])); _local2 = [_local4]; _local2.push(_local9); if (_local9.getSubElements().length > 0) { var _local6 = org.aswing.MenuElement(_local9.getSubElements()[0]); _local2.push(_local6); if (_local6.getSubElements().length > 0) { _local2.push(_local6.getSubElements()[0]); } } } else { var _local5 = popupMenu.getSubElements(); if (_local5.length > 0) { _local2.push(_local5[0]); } } _local3.setSelectedPath(_local2); } else if (_local3.isNextItemKey(code)) { var _local5 = popupMenu.getSubElements(); if (_local5.length > 0) { if (_local3.isPrevItemKey(code)) { _local2.push(_local5[_local5.length - 1]); } else { _local2.push(_local5[0]); } } _local3.setSelectedPath(_local2); } } static function getFirstPopup() { var _local4 = org.aswing.MenuSelectionManager.defaultManager(); var _local2 = _local4.getSelectedPath(); var _local3 = null; var _local1 = 0; while ((_local3 == null) && (_local1 < _local2.length)) { if (_local2[_local1] instanceof org.aswing.overflow.JPopupMenu) { _local3 = _local2[_local1]; } _local1++; } return(_local3); } static function getLastPopup() { var _local4 = org.aswing.MenuSelectionManager.defaultManager(); var _local2 = _local4.getSelectedPath(); var _local3 = null; var _local1 = _local2.length - 1; while ((_local3 == null) && (_local1 >= 0)) { if (_local2[_local1] instanceof org.aswing.overflow.JPopupMenu) { _local3 = _local2[_local1]; } _local1--; } return(_local3); } }
Symbol 519 MovieClip [__Packages.org.aswing.SoftBoxLayout] Frame 0
class org.aswing.SoftBoxLayout extends org.aswing.EmptyLayout { var axis, gap, align; function SoftBoxLayout (axis, gap, align) { super(); setAxis(axis); setGap(gap); setAlign(align); } function setAxis(axis) { this.axis = ((axis == undefined) ? (X_AXIS) : (axis)); } function getAxis() { return(axis); } function setGap(gap) { this.gap = ((gap == undefined) ? 0 : (gap)); } function getGap() { return(gap); } function setAlign(align) { this.align = ((align == undefined) ? (LEFT) : (align)); } function getAlign() { return(align); } function preferredLayoutSize(target) { var _local11 = target.getComponentCount(); var _local12 = target.getInsets(); var _local6 = 0; var _local7 = 0; var _local9 = 0; var _local8 = 0; var _local3 = 0; while (_local3 < _local11) { var _local4 = target.getComponent(_local3); if (_local4.isVisible()) { var _local2 = _local4.getPreferredSize(); _local6 = Math.max(_local6, _local2.width); _local7 = Math.max(_local7, _local2.height); var _local5 = ((_local3 > 0) ? (gap) : 0); _local9 = _local9 + (_local2.width + _local5); _local8 = _local8 + (_local2.height + _local5); } _local3++; } if (axis == Y_AXIS) { _local7 = _local8; } else { _local6 = _local9; } var _local13 = new org.aswing.geom.Dimension(_local6, _local7); return(_local12.getOutsideSize(_local13)); } function minimumLayoutSize(target) { return(target.getInsets().getOutsideSize()); } function layoutContainer(target) { var _local10 = target.getComponentCount(); var _local14 = target.getSize(); var _local12 = target.getInsets(); var _local11 = _local12.getInsideBounds(_local14.getBounds()); var _local8 = _local11.height; var _local9 = _local11.width; var _local3 = _local11.x; var _local2 = _local11.y; if ((align == RIGHT) || (align == BOTTOM)) { if (axis == Y_AXIS) { _local2 = _local2 + _local8; } else { _local3 = _local3 + _local9; } var _local6 = _local10 - 1; while (_local6 >= 0) { var _local4 = target.getComponent(_local6); if (_local4.isVisible()) { var _local5 = _local4.getPreferredSize(); if (axis == Y_AXIS) { _local2 = _local2 - _local5.height; _local4.setBounds(_local3, _local2, _local9, _local5.height); _local2 = _local2 - gap; } else { _local3 = _local3 - _local5.width; _local4.setBounds(_local3, _local2, _local5.width, _local8); _local3 = _local3 - gap; } } _local6--; } } else { if (align == CENTER) { var _local13 = _local12.getInsideSize(target.getPreferredSize()); if (axis == Y_AXIS) { _local2 = Math.round(_local2 + ((_local8 - _local13.height) / 2)); } else { _local3 = Math.round(_local3 + ((_local9 - _local13.width) / 2)); } } var _local6 = 0; while (_local6 < _local10) { var _local4 = target.getComponent(_local6); if (_local4.isVisible()) { var _local5 = _local4.getPreferredSize(); if (axis == Y_AXIS) { _local4.setBounds(_local3, _local2, _local9, _local5.height); _local2 = _local2 + (_local5.height + gap); } else { _local4.setBounds(_local3, _local2, _local5.width, _local8); _local3 = _local3 + (_local5.width + gap); } } _local6++; } } } function getLayoutAlignmentX(target) { return(0.5); } function getLayoutAlignmentY(target) { return(0.5); } static var X_AXIS = 0; static var Y_AXIS = 1; static var LEFT = org.aswing.ASWingConstants.LEFT; static var CENTER = org.aswing.ASWingConstants.CENTER; static var RIGHT = org.aswing.ASWingConstants.RIGHT; static var TOP = org.aswing.ASWingConstants.TOP; static var BOTTOM = org.aswing.ASWingConstants.BOTTOM; }
Symbol 520 MovieClip [__Packages.org.aswing.plaf.basic.DefaultMenuLayout] Frame 0
class org.aswing.plaf.basic.DefaultMenuLayout extends org.aswing.SoftBoxLayout implements org.aswing.plaf.UIResource { function DefaultMenuLayout (axis, gap, align) { super(axis, gap, align); } }
Symbol 521 MovieClip [__Packages.org.aswing.overflow.JMenu] Frame 0
class org.aswing.overflow.JMenu extends org.aswing.overflow.JMenuItem { var setName, delay, menuInUse, menuLis, addEventListener, popupMenu, getParent, isEnabled, isShowing, getWidth, getHeight, inUseChanged, setSelected; function JMenu (text, icon) { super(text, icon); setName("JMenu"); delay = 200; menuInUse = false; menuLis = new Object(); menuLis[org.aswing.Component.ON_DESTROY] = org.aswing.util.Delegate.create(this, __menuDestroied); menuLis[org.aswing.Component.ON_CREATED] = org.aswing.util.Delegate.create(this, __menuCreated); addEventListener(menuLis); } function updateUI() { setUI(org.aswing.plaf.MenuItemUI(org.aswing.UIManager.getUI(this))); if (popupMenu != null) { popupMenu.updateUI(); } } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("MenuUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicMenuUI); } function isTopLevelMenu() { if (!(getParent() instanceof org.aswing.overflow.JPopupMenu)) { return(true); } return(false); } function isMenuComponent(c) { if (c == null) { return(false); } if (c == this) { return(true); } if (c == popupMenu) { return(true); } var _local6 = getComponentCount(); var _local2 = 0; while (_local2 < _local6) { var _local3 = getComponent(_local2); if (_local3 == c) { return(true); } if (_local3 instanceof org.aswing.overflow.JMenu) { var _local4 = org.aswing.overflow.JMenu(_local3); if (_local4.isMenuComponent(c)) { return(true); } } _local2++; } return(false); } function getPopupMenu() { ensurePopupMenuCreated(); return(popupMenu); } function addMenuItem(s) { var _local2 = new org.aswing.overflow.JMenuItem(s); append(_local2); return(_local2); } function append(c) { getPopupMenu().append(c, undefined); } function insert(i, c) { getPopupMenu().insert(i, c, undefined); } function getComponentCount() { if (popupMenu != null) { return(popupMenu.getComponentCount()); } return(0); } function getComponent(index) { if (popupMenu != null) { return(popupMenu.getComponent(index)); } return(null); } function remove(c) { if (popupMenu != null) { return(popupMenu.remove(c)); } return(null); } function removeAt(i) { if (popupMenu != null) { return(popupMenu.removeAt(i)); } return(null); } function removeAll() { if (popupMenu != null) { popupMenu.removeAll(); } } function getDelay() { return(delay); } function setDelay(d) { if (d < 0) { trace("/e/Delay must be a positive integer, ignored."); return(undefined); } delay = d; } function isPopupMenuVisible() { return((popupMenu != null) && (popupMenu.isVisible())); } function setPopupMenuVisible(b) { var _local4 = isPopupMenuVisible(); if ((b != _local4) && (isEnabled() || (!b))) { ensurePopupMenuCreated(); if ((b == true) && (isShowing())) { var _local2 = getPopupMenuOrigin(); getPopupMenu().show(this, _local2.x, _local2.y); } else { getPopupMenu().setVisible(false); } } } function ensurePopupMenuCreated() { if (popupMenu == null) { popupMenu = new org.aswing.overflow.JPopupMenu(); popupMenu.setInvoker(this); } } function getPopupMenuOrigin() { var _local2; if (getParent() instanceof org.aswing.overflow.JPopupMenu) { _local2 = new org.aswing.geom.Point(getWidth(), 0); _local2.x = _local2.x + getUIPropertyNumber("Menu.submenuPopupOffsetX"); _local2.y = _local2.y + getUIPropertyNumber("Menu.submenuPopupOffsetY"); } else { _local2 = new org.aswing.geom.Point(0, getHeight()); _local2.x = _local2.x + getUIPropertyNumber("Menu.menuPopupOffsetX"); _local2.y = _local2.y + getUIPropertyNumber("Menu.menuPopupOffsetY"); } return(_local2); } function getUIPropertyNumber(name) { var _local1 = org.aswing.UIManager.getNumber(name); if (_local1 == null) { _local1 = 0; } return(_local1); } function __menuDestroied() { if ((popupMenu != null) && (popupMenu.isVisible())) { popupMenu.dispose(); } } function __menuCreated() { } function setInUse(b) { if (menuInUse != b) { menuInUse = b; if (b) { ensurePopupMenuCreated(); } var _local4 = getSubElements(); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = org.aswing.MenuElement(_local4[_local2]); _local3.setInUse(b); _local2++; } inUseChanged(); } } function menuSelectionChanged(isIncluded) { setSelected(isIncluded); } function getSubElements() { if (popupMenu == null) { return([]); } return([popupMenu]); } function getMenuComponent() { return(this); } }
Symbol 522 MovieClip [__Packages.org.aswing.plaf.basic.BasicMenuUI] Frame 0
class org.aswing.plaf.basic.BasicMenuUI extends org.aswing.plaf.basic.BasicMenuItemUI { var menuItem, menuLis, getPath, postTimer; function BasicMenuUI () { super(); } function getPropertyPrefix() { return("Menu"); } function installDefaults() { super.installDefaults(); updateDefaultBackgroundColor(); } function uninstallDefaults() { menuItem.getModel().setRollOver(false); menuItem.setSelected(false); super.uninstallDefaults(); } function installListeners() { super.installListeners(); menuLis = new Object(); menuLis[org.aswing.overflow.JMenu.ON_SELECTION_CHANGED] = org.aswing.util.Delegate.create(this, __menuSelectionChanged); menuItem.addEventListener(menuLis); } function uninstallListeners() { super.uninstallListeners(); menuItem.removeEventListener(menuLis); menuLis = null; } function getMenu() { return(org.aswing.overflow.JMenu(menuItem)); } function updateDefaultBackgroundColor() { if (!org.aswing.UIManager.getBoolean("Menu.useMenuBarBackgroundForTopLevel")) { return(undefined); } var _local2 = getMenu(); if (_local2.getBackground() instanceof org.aswing.plaf.UIResource) { if (_local2.isTopLevelMenu()) { _local2.setBackground(org.aswing.UIManager.getColor("MenuBar.background")); } else { _local2.setBackground(org.aswing.UIManager.getColor(getPropertyPrefix() + ".background")); } } } function isMenu() { return(true); } function isTopMenu() { return(getMenu().isTopLevelMenu()); } function shouldPaintSelected() { return(menuItem.getModel().isRollOver() || (menuItem.isSelected())); } function processKeyEvent(code) { var _local5 = org.aswing.MenuSelectionManager.defaultManager(); if (_local5.isNextPageKey(code)) { var _local3 = _local5.getSelectedPath(); if (_local3[_local3.length - 1] == menuItem) { var _local4 = getMenu().getPopupMenu(); _local3.push(_local4); if (_local4.getSubElements().length > 0) { _local3.push(_local4.getSubElements()[0]); } _local5.setSelectedPath(_local3); } } else { super.processKeyEvent(code); } } function __menuSelectionChanged() { menuItem.repaint(); } function __menuItemRollOver() { var _local2 = getMenu(); var _local4 = org.aswing.MenuSelectionManager.defaultManager(); var _local3 = _local4.getSelectedPath(); if (!_local2.isTopLevelMenu()) { if (!((_local3.length > 0) && (_local3[_local3.length - 1] == _local2.getPopupMenu()))) { if (_local2.getDelay() <= 0) { appendPath(getPath(), _local2.getPopupMenu()); } else { _local4.setSelectedPath(getPath()); setupPostTimer(_local2); } } } else if ((_local3.length > 0) && (_local3[0] == _local2.getParent())) { _local4.setSelectedPath([_local2.getParent(), _local2, _local2.getPopupMenu()]); } menuItem.repaint(); } function __menuItemRollOut() { super.__menuItemRollOut(); } function __menuItemAct() { var _local2 = getMenu(); var _local3 = _local2.getParent(); if ((_local3 != null) && (_local3 instanceof org.aswing.overflow.JMenuBar)) { var _local4 = [_local3, _local2, _local2.getPopupMenu()]; org.aswing.MenuSelectionManager.defaultManager().setSelectedPath(_local4); } menuItem.repaint(); } function __postTimerAct() { var _local3 = getMenu(); var _local2 = org.aswing.MenuSelectionManager.defaultManager().getSelectedPath(); if ((_local2.length > 0) && (_local2[_local2.length - 1] == _local3)) { appendPath(_local2, _local3.getPopupMenu()); } } function appendPath(path, end) { path.push(end); org.aswing.MenuSelectionManager.defaultManager().setSelectedPath(path); } function setupPostTimer(menu) { if (postTimer == null) { postTimer = new org.aswing.util.Timer(menu.getDelay(), false); postTimer.addActionListener(__postTimerAct, this); } postTimer.restart(); } }
Symbol 523 MovieClip [__Packages.org.aswing.overflow.JMenuBar] Frame 0
class org.aswing.overflow.JMenuBar extends org.aswing.Container implements org.aswing.MenuElement { var layout, menuInUse, menuBarLis, addEventListener, ui, append, getComponent, selectionModel, getIndex, getComponentCount; function JMenuBar () { super(); setSelectionModel(new org.aswing.DefaultSingleSelectionModel()); layout = undefined; menuInUse = false; menuBarLis = new Object(); menuBarLis[org.aswing.Component.ON_DESTROY] = org.aswing.util.Delegate.create(this, __menuBarDestroied); menuBarLis[org.aswing.Component.ON_CREATED] = org.aswing.util.Delegate.create(this, __menuBarCreated); menuBarLis[org.aswing.Container.ON_COM_ADDED] = org.aswing.util.Delegate.create(this, __menuBarChildAdd); menuBarLis[org.aswing.Container.ON_COM_REMOVED] = org.aswing.util.Delegate.create(this, __menuBarChildRemove); addEventListener(menuBarLis); updateUI(); } function updateUI() { setUI(org.aswing.plaf.MenuBarUI(org.aswing.UIManager.getUI(this))); } function setUI(newUI) { super.setUI(newUI); } function getUIClassID() { return("MenuBarUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicMenuBarUI); } function getUI() { return(org.aswing.plaf.MenuBarUI(ui)); } function addMenu(menu) { append(menu); return(menu); } function getMenu(index) { var _local2 = getComponent(index); if (_local2 instanceof org.aswing.overflow.JMenu) { return(org.aswing.overflow.JMenu(_local2)); } return(null); } function getSelectionModel() { return(selectionModel); } function setSelectionModel(model) { selectionModel = model; } function setSelected(sel) { var _local3 = getSelectionModel(); var _local2 = getIndex(sel); _local3.setSelectedIndex(_local2); } function isSelected() { return(selectionModel.isSelected()); } function menuSelectionChanged(isIncluded) { } function __menuBarDestroied() { setInUse(false); } function __menuBarCreated() { setInUse(true); } function __menuBarChildAdd(source, child) { if (child instanceof org.aswing.MenuElement) { org.aswing.MenuElement(child).setInUse(isInUse()); } } function __menuBarChildRemove(source, child) { if (child instanceof org.aswing.MenuElement) { org.aswing.MenuElement(child).setInUse(false); } } function getSubElements() { var _local4 = new Array(); var _local2 = 0; while (_local2 < getComponentCount()) { var _local3 = getComponent(_local2); if (_local3 instanceof org.aswing.MenuElement) { _local4.push(_local3); } _local2++; } return(_local4); } function getMenuComponent() { return(this); } function processKeyEvent(code) { getUI().processKeyEvent(code); } function setInUse(b) { if (menuInUse != b) { menuInUse = b; var _local4 = getSubElements(); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = org.aswing.MenuElement(_local4[_local2]); _local3.setInUse(b); _local2++; } } } function isInUse() { return(menuInUse); } }
Symbol 524 MovieClip [__Packages.org.aswing.plaf.MenuBarUI] Frame 0
class org.aswing.plaf.MenuBarUI extends org.aswing.plaf.ComponentUI { function MenuBarUI () { super(); } function processKeyEvent(code) { } }
Symbol 525 MovieClip [__Packages.org.aswing.plaf.basic.BasicMenuBarUI] Frame 0
class org.aswing.plaf.basic.BasicMenuBarUI extends org.aswing.plaf.MenuBarUI { var menuBar, menuSelectionLis, menuBarLis; function BasicMenuBarUI () { super(); } function installUI(c) { menuBar = org.aswing.overflow.JMenuBar(c); installDefaults(); installListeners(); } function uninstallUI(c) { menuBar = org.aswing.overflow.JMenuBar(c); uninstallDefaults(); uninstallListeners(); } function installDefaults() { var _local2 = "MenuBar."; org.aswing.LookAndFeel.installColorsAndFont(menuBar, _local2 + "background", _local2 + "foreground", _local2 + "font"); org.aswing.LookAndFeel.installBorder(menuBar, _local2 + "border"); org.aswing.LookAndFeel.installBasicProperties(menuBar, _local2); var _local3 = menuBar.getLayout(); if ((_local3 == null) || (_local3 instanceof org.aswing.plaf.UIResource)) { menuBar.setLayout(new org.aswing.plaf.basic.DefaultMenuLayout(org.aswing.SoftBoxLayout.X_AXIS)); } } function installListeners() { menuSelectionLis = new Object(); menuSelectionLis[org.aswing.overflow.JMenu.ON_SELECTION_CHANGED] = org.aswing.util.Delegate.create(this, __menuSelectionChanged); var _local2 = 0; while (_local2 < menuBar.getComponentCount()) { var _local3 = menuBar.getMenu(_local2); if (_local3 != null) { _local3.addEventListener(menuSelectionLis); } _local2++; } menuBarLis = new Object(); menuBarLis[org.aswing.overflow.JMenuBar.ON_COM_ADDED] = org.aswing.util.Delegate.create(this, __childAdded); menuBarLis[org.aswing.overflow.JMenuBar.ON_COM_REMOVED] = org.aswing.util.Delegate.create(this, __childRemoved); menuBarLis[org.aswing.overflow.JMenuBar.ON_FOCUS_GAINED] = org.aswing.util.Delegate.create(this, __barFocusGained); menuBarLis[org.aswing.overflow.JMenuBar.ON_KEY_DOWN] = org.aswing.util.Delegate.create(this, __barKeyDown); menuBar.addEventListener(menuBarLis); } function uninstallDefaults() { org.aswing.LookAndFeel.uninstallBorder(menuBar); } function uninstallListeners() { menuBar.removeEventListener(menuBarLis); var _local2 = 0; while (_local2 < menuBar.getComponentCount()) { var _local3 = menuBar.getMenu(_local2); if (_local3 != null) { _local3.removeEventListener(menuSelectionLis); } _local2++; } menuBarLis = null; menuSelectionLis = null; } function processKeyEvent(code) { var _local4 = org.aswing.MenuSelectionManager.defaultManager(); if (_local4.isNavigatingKey(code)) { var _local3 = menuBar.getSubElements(); var _local2 = [menuBar]; if (_local3.length > 0) { if (_local4.isNextItemKey(code) || (_local4.isNextPageKey(code))) { _local2.push(_local3[0]); } else { _local2.push(_local3[_local3.length - 1]); } var _local5 = org.aswing.MenuElement(_local2[1]); if (_local5.getSubElements().length > 0) { _local2.push(_local5.getSubElements()[0]); } _local4.setSelectedPath(_local2); } } } function __barKeyDown() { if (org.aswing.MenuSelectionManager.defaultManager().getSelectedPath().length == 0) { processKeyEvent(Key.getCode()); } } function __menuSelectionChanged() { var _local2 = 0; while (_local2 < menuBar.getComponentCount()) { var _local3 = menuBar.getMenu(_local2); if ((_local3 != null) && (_local3.isSelected())) { menuBar.getSelectionModel().setSelectedIndex(_local2); break; } _local2++; } } function __barFocusGained() { org.aswing.MenuSelectionManager.defaultManager().setSelectedPath([menuBar]); } function __childAdded(source, child) { if (child instanceof org.aswing.overflow.JMenu) { child.addEventListener(menuSelectionLis); } } function __childRemoved(source, child) { if (child instanceof org.aswing.overflow.JMenu) { child.removeEventListener(menuSelectionLis); } } }
Symbol 526 MovieClip [__Packages.org.aswing.plaf.basic.icon.RadioButtonMenuItemCheckIcon] Frame 0
class org.aswing.plaf.basic.icon.RadioButtonMenuItemCheckIcon extends org.aswing.plaf.basic.icon.MenuCheckIcon { function RadioButtonMenuItemCheckIcon () { super(); } function paintIcon(com, g, x, y) { var _local1 = org.aswing.overflow.JMenuItem(com); if (_local1.isSelected()) { g.fillCircle(new org.aswing.graphics.SolidBrush(org.aswing.ASColor.__get__BLACK()), x + 4, y + 5, 3, 3); } } }
Symbol 527 MovieClip [__Packages.org.aswing.plaf.basic.border.PopupMenuBorder] Frame 0
class org.aswing.plaf.basic.border.PopupMenuBorder extends org.aswing.border.BevelBorder implements org.aswing.plaf.UIResource { function PopupMenuBorder () { super(null, org.aswing.border.BevelBorder.RAISED); } }
Symbol 528 MovieClip [__Packages.org.aswing.plaf.asw.ASWingLookAndFeel] Frame 0
class org.aswing.plaf.asw.ASWingLookAndFeel extends org.aswing.plaf.basic.BasicLookAndFeel { function ASWingLookAndFeel () { super(); } function initClassDefaults(table) { super.initClassDefaults(table); var _local2 = []; table.putDefaults(_local2); } function initComponentDefaults(table) { super.initComponentDefaults(table); var _local4 = new org.aswing.plaf.ASColorUIResource(15198181); var _local2 = ["Button.background", _local4, "Button.border", org.aswing.plaf.asw.border.ButtonBorder]; table.putDefaults(_local2); _local2 = ["ToggleButton.border", org.aswing.plaf.asw.border.ButtonBorder]; table.putDefaults(_local2); _local2 = ["RadioButton.icon", org.aswing.plaf.basic.icon.RadioButtonIcon]; table.putDefaults(_local2); _local2 = ["CheckBox.icon", org.aswing.plaf.basic.icon.CheckBoxIcon]; table.putDefaults(_local2); _local2 = ["ScrollBar.thumb", _local4]; table.putDefaults(_local2); _local2 = ["Frame.activeCaption", new org.aswing.plaf.ASColorUIResource(16250871), "Frame.activeCaptionText", table.get("activeCaptionText"), "Frame.activeCaptionBorder", new org.aswing.plaf.ASColorUIResource(12632256), "Frame.inactiveCaption", new org.aswing.plaf.ASColorUIResource(15198183), "Frame.inactiveCaptionText", table.get("inactiveCaptionText"), "Frame.inactiveCaptionBorder", new org.aswing.plaf.ASColorUIResource(8947848), "Frame.titleBarUI", org.aswing.plaf.asw.frame.ASWingTitleBarUI, "Frame.border", org.aswing.plaf.asw.border.FrameBorder]; table.putDefaults(_local2); _local2 = ["TabbedPane.shadow", table.getColor("controlShadow"), "TabbedPane.darkShadow", table.getColor("controlDkShadow"), "TabbedPane.light", table.getColor("controlHighlight"), "TabbedPane.highlight", table.getColor("controlLtHighlight")]; table.putDefaults(_local2); _local2 = ["TableHeader.background", _local4, "TableHeader.opaque", true, "TableHeader.cellBorder", org.aswing.plaf.asw.border.TableHeaderCellBorder]; table.putDefaults(_local2); _local2 = ["Slider.thumb", _local4]; table.putDefaults(_local2); } }
Symbol 529 MovieClip [__Packages.org.aswing.plaf.asw.border.ButtonBorder] Frame 0
class org.aswing.plaf.asw.border.ButtonBorder extends org.aswing.plaf.basic.border.ButtonBorder { static var aswInstance; function ButtonBorder () { super(); } static function createInstance() { if (aswInstance == null) { aswInstance = new org.aswing.plaf.asw.border.ButtonBorder(); } else { aswInstance.reloadColors(); } return(aswInstance); } }
Symbol 530 MovieClip [__Packages.org.aswing.plaf.asw.frame.ASWingTitleBarUI] Frame 0
class org.aswing.plaf.asw.frame.ASWingTitleBarUI extends org.aswing.plaf.basic.frame.TitleBarUI { var frame, activeColor, inactiveColor, activeBorderColor; function ASWingTitleBarUI () { super(); } function paintBackGround(com, g, b) { if (!com.isOpaque()) { return(undefined); } var _local9 = b.x; var _local8 = b.y; var _local11 = b.width; var _local4 = b.height; var _local2; if (frame.isActive()) { _local2 = [activeColor.darker(0.9).getRGB(), activeColor.getRGB()]; } else { _local2 = [inactiveColor.darker(0.9).getRGB(), inactiveColor.getRGB()]; } var _local6 = [100, 100]; var _local10 = [75, 255]; var _local7 = {matrixType:"box", x:_local9, y:_local8, w:_local11, h:_local4, r:(Math.PI/2)}; var _local5 = new org.aswing.graphics.GradientBrush(org.aswing.graphics.GradientBrush.LINEAR, _local2, _local6, _local10, _local7); g.fillRoundRect(_local5, _local9, _local8, _local11, _local4, 4, 4, 0, 0); if (frame.isActive()) { _local2 = [activeColor.getRGB(), activeColor.getRGB()]; } else { _local2 = [inactiveColor.getRGB(), inactiveColor.getRGB()]; } _local6 = [80, 0]; _local10 = [0, 100]; _local7 = {matrixType:"box", x:_local9, y:_local8, w:b.width, h:b.height, r:(Math.PI/2)}; _local5 = new org.aswing.graphics.GradientBrush(org.aswing.graphics.GradientBrush.LINEAR, _local2, _local6, _local10, _local7); g.fillRoundRect(_local5, _local9, _local8, _local11, _local4 - (_local4 / 4), 4, 4, 0, 0); var _local13 = new org.aswing.graphics.Pen(activeBorderColor); g.drawLine(_local13, _local9, (_local8 + _local4) - 1, _local9 + _local11, (_local8 + _local4) - 1); } }
Symbol 531 MovieClip [__Packages.org.aswing.plaf.asw.border.FrameBorder] Frame 0
class org.aswing.plaf.asw.border.FrameBorder implements org.aswing.border.Border, org.aswing.plaf.UIResource { var activeColor, inactiveColor; function FrameBorder () { activeColor = org.aswing.UIManager.getColor("Frame.activeCaptionBorder"); inactiveColor = org.aswing.UIManager.getColor("Frame.inactiveCaptionBorder"); } function paintBorder(c, g, b) { var _local5 = org.aswing.JFrame(c); var _local3 = (_local5.isActive() ? (activeColor) : (inactiveColor)); g.drawRoundRect(new org.aswing.graphics.Pen(_local3, 1), b.x + 0.5, b.y + 0.5, b.width - 1, b.height - 1, GLASS + 4); g.drawRoundRect(new org.aswing.graphics.Pen(org.aswing.ASColor.__get__WHITE(), 1), b.x + 1.5, b.y + 1.5, b.width - 3, b.height - 3, GLASS + 3); g.fillRoundRectRingWithThickness(new org.aswing.graphics.SolidBrush(_local3.getRGB(), 20), b.x + 2, b.y + 2, b.width - 4, b.height - 4, GLASS + 2, GLASS, GLASS + 1); g.drawRoundRect(new org.aswing.graphics.Pen(_local3, 1), (b.x + 2.5) + GLASS, (b.y + 2.5) + GLASS, (b.width - 5) - (GLASS * 2), (b.height - 5) - (GLASS * 2), GLASS, GLASS, 0, 0); } function getBorderInsets(c, bounds) { var _local1 = GLASS + 3; return(new org.aswing.Insets(_local1, _local1, _local1, _local1)); } function uninstallBorder(c) { } static var GLASS = 4; }
Symbol 532 MovieClip [__Packages.org.aswing.plaf.asw.border.TableHeaderCellBorder] Frame 0
class org.aswing.plaf.asw.border.TableHeaderCellBorder implements org.aswing.border.Border, org.aswing.plaf.UIResource { static var aswInstance; var shadow, darkShadow, highlight, lightHighlight; function TableHeaderCellBorder () { super(); reloadColors(); } static function createInstance() { if (aswInstance == null) { aswInstance = new org.aswing.plaf.asw.border.TableHeaderCellBorder(); } else { aswInstance.reloadColors(); } return(aswInstance); } function reloadColors() { var _local2 = org.aswing.UIManager.getLookAndFeelDefaults(); shadow = _local2.getColor("Button.shadow"); darkShadow = _local2.getColor("Button.darkShadow"); highlight = _local2.getColor("Button.light"); lightHighlight = _local2.getColor("Button.highlight"); } function paintBorder(c, g, b) { var _local3 = new org.aswing.graphics.Pen(darkShadow, 1); g.drawLine(_local3, (b.x + b.width) - 0.5, b.y + 4, (b.x + b.width) - 0.5, Math.max((b.y + b.height) - 2, b.y + 4)); g.fillRectangle(new org.aswing.graphics.SolidBrush(darkShadow), b.x, (b.y + b.height) - 1, b.width, 1); } function uninstallBorder(c) { } function getBorderInsets(c, bounds) { return(new org.aswing.Insets(0, 0, 1, 1)); } }
Symbol 533 MovieClip [__Packages.org.aswing.JTextComponent] Frame 0
class org.aswing.JTextComponent extends org.aswing.Component { static var mouseRecordListener; var setName, textFormat, font, text, columnRowCounted, autoSizedToCountPrefferedSize, html, password, maxChars, restrict, editable, condenseWhite, regainTextFocusEnabled, isTextRollOver, lastBeginIndex, lastEndIndex, lastCaretIndex, keyRecordListener, textListener, ui, repaint, dispatchEvent, createEventObj, revalidate, getPaintBounds, isEnabled, textField, getFont, createTextField, getForeground, isDisplayable, css, isFocusOwner, requestFocus, moustUpListenerForRegainFocus, columnWidth, rowHeight, widthMargin, heightMargin, autoSizedSize, listeners, mouseMoveListenerForRolls, trigger_mc, ____onRollOver, ____onRollOut, root_mc; function JTextComponent () { super(); setName("JTextComponent"); textFormat = org.aswing.ASTextFormat.getASTextFormatWithASFont(font); text = ""; columnRowCounted = false; autoSizedToCountPrefferedSize = false; html = false; password = false; maxChars = null; restrict = null; editable = true; condenseWhite = false; regainTextFocusEnabled = null; isTextRollOver = false; lastBeginIndex = 0; lastEndIndex = 0; lastCaretIndex = 0; keyRecordListener = new Object(); keyRecordListener[org.aswing.Component.ON_KEY_DOWN] = org.aswing.util.Delegate.create(this, __recordSelectionWhenKeyDown); addEventListener(keyRecordListener); if (mouseRecordListener == undefined) { mouseRecordListener = new Object(); mouseRecordListener.onMouseDown = org.aswing.util.Delegate.create(org.aswing.JTextComponent, __recordSelectionWhenMouseDown); Mouse.addListener(mouseRecordListener); } textListener = new Object(); textListener.onChanged = org.aswing.util.Delegate.create(this, ____uiTextChanged); textListener.onScroller = org.aswing.util.Delegate.create(this, ____uiTextScrolled); } function __recordSelectionWhenKeyDown() { recordSelection(); } static function __recordSelectionWhenMouseDown() { var _local1 = org.aswing.FocusManager.getCurrentManager().getFocusOwner(); if (_local1 instanceof org.aswing.JTextComponent) { var _local2 = org.aswing.JTextComponent(_local1); _local2.recordSelection(); } } function recordSelection() { lastBeginIndex = Selection.getBeginIndex(); lastEndIndex = Selection.getEndIndex(); lastCaretIndex = Selection.getCaretIndex(); } function getUI() { return(org.aswing.plaf.TextUI(ui)); } function setUI(ui) { super.setUI(ui); } function updateUI() { } function addChangeListener(func, obj) { return(addEventListener(ON_TEXT_CHANGED, func, obj)); } function addEventListener(eventTypeOrLis, func, obj) { var _local3 = super.addEventListener(eventTypeOrLis, func, obj); checkRolls(); return(_local3); } function removeEventListener(listener) { super.removeEventListener(listener); checkRolls(); } function setText(t) { if (t == null) { t = ""; } if (t != text) { text = t; invalidateTextFieldAutoSizeToCountPrefferedSize(); if (getTextField() != null) { if (isHtml()) { getTextField().styleSheet = getCSS(); getTextField().htmlText = text; } else { getTextField().text = text; } } else { repaint(); dispatchEvent(ON_TEXT_CHANGED, createEventObj(ON_TEXT_CHANGED)); } if (isAutoSize()) { revalidate(); } } } function getText() { return(text); } function setCaretIndex(caretIndex) { lastCaretIndex = caretIndex; setSelection(caretIndex, caretIndex); } function setSelection(startIndex, endIndex) { lastBeginIndex = startIndex; lastEndIndex = endIndex; if (isTextFieldFocused()) { Selection.setSelection(lastBeginIndex, lastEndIndex); } } function selectAll() { lastCaretIndex = getText().length; setSelection(0, getText().length); getTextField().hscroll = getTextField().maxhscroll; } function getCaretIndex() { return(lastCaretIndex); } function getSelectionStart() { return(lastBeginIndex); } function getSelectionEnd() { return(lastEndIndex); } function appendText(t) { setText(text + t); } function insertText(t, position) { if (position <= 0) { setText(t + text); } else { setText((text.substr(0, position) + t) + text.substr(position)); } } function setHtml(enabled) { if (html != enabled) { html = enabled; invalidateTextFieldAutoSizeToCountPrefferedSize(); if (getTextField() != null) { applyPropertiesToText(getTextField(), false); applyBoundsToText(getTextField(), getPaintBounds()); } else { repaint(); } revalidate(); } } function isHtml() { return(html); } function setPasswordField(p) { if (password != p) { password = p; if (getTextField() != null) { getTextField().password = p; } repaint(); } } function isPasswordField() { return(password); } function setMaxChars(count) { if (maxChars != count) { maxChars = count; if (getTextField() != null) { getTextField().maxChars = count; } repaint(); revalidate(); } } function getMaxChars() { return(maxChars); } function setRestrict(r) { if (!(restrict === r)) { restrict = r; if (getTextField() != null) { getTextField().restrict = r; } repaint(); revalidate(); } } function getRestrict() { return(restrict); } function setCondenseWhite(b) { if (condenseWhite != b) { condenseWhite = b; if (getTextField() != null) { getTextField().condenseWhite = b; } repaint(); revalidate(); } } function isCondenseWhite() { return(condenseWhite); } function setEnabled(enabled) { var _local3 = isEnabled(); super.setEnabled(enabled); if (_local3 != enabled) { if (getTextField() != null) { getTextField().selectable = enabled; } repaint(); } } function setEditable(editable) { if (this.editable != editable) { this.editable = editable; if (getTextField() != null) { getTextField().type = (editable ? "input" : "dynamic"); } repaint(); } } function isEditable() { return(editable); } function getTextLength() { return(getText().length); } function isTextFieldFocused() { return(eval (Selection.getFocus()) == textField); } function isRegainTextFocusEnabled() { return(((regainTextFocusEnabled != null) ? (regainTextFocusEnabled) : (isDefaultRegainTextFocusEnabled()))); } function setRegainTextFocusEnabled(b) { regainTextFocusEnabled = b; } static function isDefaultRegainTextFocusEnabled() { return(defaultRegainTextFocusEnabled); } static function setDefaultRegainTextFocusEnabled(b) { defaultRegainTextFocusEnabled = b; } function setTextFormat(tf) { var _local2 = tf.clone(); setFont(_local2.getASFont()); invalidateColumnRowSize(); textFormat = _local2; } function setFont(f) { if (getFont() != f) { invalidateColumnRowSize(); invalidateTextFieldAutoSizeToCountPrefferedSize(); super.setFont(f); textFormat.setASFont(f); } } function getTextFormat() { return(textFormat.clone()); } function create() { super.create(); textField = createTextField("textField"); textField.addListener(textListener); textField.onSetFocus = org.aswing.util.Delegate.create(this, ____uiTextSetFocus); textField.onKillFocus = org.aswing.util.Delegate.create(this, ____uiTextKilledFocus); applyPropertiesToText(textField, false); applyBoundsToText(textField, getPaintBounds()); var _local3 = textField; if (isHtml()) { textField.styleSheet = getCSS(); textField.htmlText = text; } else { textField.text = text; } textField.background = false; } function paint(b) { super.paint(b); var _local3 = textField; applyPropertiesToText(_local3, false); applyBoundsToText(_local3, b); } function applyPropertiesToText(t, autoSize) { applyPropertiesToTextExceptTextAndFormat(t, autoSize); if (isHtml()) { if (t.htmlText != text) { t.styleSheet = getCSS(); t.htmlText = ((text == null) ? "" : (text)); } } else { if (t.text != text) { t.text = ((text == null) ? "" : (text)); } org.aswing.ASWingUtils.applyTextFormatAndColor(t, textFormat, getForeground()); } } function applyPropertiesToTextExceptTextAndFormat(t, autoSize) { t.autoSize = autoSize; t.wordWrap = isWordWrap(); if (isWordWrap()) { t._width = getWordWrapWidth(); } t.background = false; t.border = false; t.type = (isEditable() ? "input" : "dynamic"); t.selectable = isEnabled(); t.maxChars = getMaxChars(); t.html = isHtml(); t.restrict = getRestrict(); t.condenseWhite = isCondenseWhite(); t.password = isPasswordField(); t.multiline = isMultiline(); } function applyBoundsToText(t, b) { t._x = b.x; t._y = b.y; t._width = b.width; t._height = b.height; } function getTextField() { if (isDisplayable()) { return(textField); } return(null); } function isMultiline() { return(false); } function isWordWrap() { return(false); } function getWordWrapWidth() { return(0); } function getCSS() { return(css); } function setCSS(css) { this.css = css; if (isHtml()) { repaint(); revalidate(); } } function getInternalFocusObj() { return(getTextField()); } function retrieveTextFromTextField() { if (isHtml()) { text = getTextField().htmlText; } else { text = getTextField().text; } } function __uiTextChanged() { retrieveTextFromTextField(); if (!isMultiline()) { if ((Key.getCode() == 17) || (Key.getCode() == 13)) { var _local2 = 0; while (_local2 < text.length) { if (text.charCodeAt(_local2) == 13) { text = text.substring(0, _local2) + text.substring(_local2 + 1); if (isHtml()) { getTextField().htmlText = text; } else { getTextField().text = text; } return(undefined); } _local2++; } } } invalidateTextFieldAutoSizeToCountPrefferedSize(); dispatchEvent(ON_TEXT_CHANGED, createEventObj(ON_TEXT_CHANGED)); } function __uiTextScrolled() { dispatchEvent(ON_TEXT_SCROLLED, createEventObj(ON_TEXT_SCROLLED)); } function __uiTextSetFocus(oldFocus) { if (!isFocusOwner()) { requestFocus(); } } function __uiTextKilledFocus(newFocus) { if (isRegainTextFocusEnabled() && (isFocusOwner())) { Mouse.removeListener(moustUpListenerForRegainFocus); moustUpListenerForRegainFocus = {onMouseUp:org.aswing.util.Delegate.create(this, __nextMouseUped)}; Mouse.addListener(moustUpListenerForRegainFocus); } } function __nextMouseUped() { Mouse.removeListener(moustUpListenerForRegainFocus); if (isFocusOwner()) { startWaitToResumeTheSelectionNextTime(); } } function startWaitToResumeTheSelectionNextTime() { org.aswing.RepaintManager.getInstance().addCallAfterNextPaintTime(org.aswing.util.Delegate.create(this, __resumeTheSelectionAtNextTime)); } function __resumeTheSelectionAtNextTime() { if (isFocusOwner()) { resumeTheSelection(); } } function resumeTheSelection() { } function ____uiTextChanged() { __uiTextChanged(); } function ____uiTextScrolled() { __uiTextScrolled(); } function ____uiTextSetFocus(oldFocus) { __uiTextSetFocus(oldFocus); } function ____uiTextKilledFocus(newFocus) { __uiTextKilledFocus(newFocus); } function countPreferredSize() { trace("Subclass of JTextComponent need implement this method : countPreferredSize!"); throw new Error("Subclass of JTextComponent need implement this method : countPreferredSize!"); return(null); } function getColumnWidth() { if (!columnRowCounted) { countColumnRowSize(); } return(columnWidth); } function getRowHeight() { if (!columnRowCounted) { countColumnRowSize(); } return(rowHeight); } function getWidthMargin() { if (!columnRowCounted) { countColumnRowSize(); } return(widthMargin); } function getHeightMargin() { if (!columnRowCounted) { countColumnRowSize(); } return(heightMargin); } function isAutoSize() { return(true); } function countColumnRowSize() { var _local2 = textFormat.getTextExtent("mmmmm"); columnWidth = _local2.getWidth() / 5; rowHeight = _local2.getHeight(); widthMargin = _local2.getTextFieldWidth() - _local2.getWidth(); heightMargin = _local2.getTextFieldHeight() - _local2.getHeight(); columnRowCounted = true; } function getTextFieldAutoSizedSize() { if (!autoSizedToCountPrefferedSize) { countAutoSizedSize(); autoSizedToCountPrefferedSize = true; } return(autoSizedSize); } function countAutoSizedSize() { var _local3 = org.aswing.Component.__get__creater().createTF(_root, "tempText"); applyPropertiesToText(_local3, true); autoSizedSize = new org.aswing.geom.Dimension(_local3._width + 4, _local3._height + 10); _local3.removeTextField(); delete _root[_local3._name]; } function invalidateColumnRowSize() { columnRowCounted = false; } function invalidateTextFieldAutoSizeToCountPrefferedSize() { autoSizedToCountPrefferedSize = false; } function checkRolls() { var _local2 = 0; while (_local2 < listeners.length) { if ((listeners[_local2][org.aswing.Component.ON_ROLLOVER] != undefined) || (listeners[_local2][org.aswing.Component.ON_ROLLOUT] != undefined)) { setListenRolls(true); return(undefined); } _local2++; } setListenRolls(false); } function setListenRolls(b) { if (b && (mouseMoveListenerForRolls == null)) { mouseMoveListenerForRolls = new Object(); mouseMoveListenerForRolls.onMouseMove = org.aswing.util.Delegate.create(this, __mouseMoveForRolls); Mouse.addListener(mouseMoveListenerForRolls); trigger_mc.onRollOver = undefined; trigger_mc.onRollOut = undefined; } else if ((mouseMoveListenerForRolls != null) && (!b)) { Mouse.removeListener(mouseMoveListenerForRolls); trigger_mc.onRollOver = org.aswing.util.Delegate.create(this, ____onRollOver); trigger_mc.onRollOut = org.aswing.util.Delegate.create(this, ____onRollOut); mouseMoveListenerForRolls = null; } } function initActive() { super.initActive(); if (mouseMoveListenerForRolls != null) { trigger_mc.onRollOver = undefined; trigger_mc.onRollOut = undefined; } } function __mouseMoveForRolls() { var _local2 = root_mc; if (_local2 == null) { return(undefined); } var _local4 = _local2._parent._xmouse; var _local3 = _local2._parent._ymouse; if ((((_local4 >= _local2._x) && (_local4 <= (_local2._x + _local2._width))) && (_local3 >= _local2._y)) && (_local3 <= (_local2._y + _local2._height))) { if (!isTextRollOver) { ____onRollOver(); isTextRollOver = true; } } else if (isTextRollOver) { ____onRollOut(); isTextRollOver = false; } } static var ON_TEXT_SCROLLED = "onTextScrolled"; static var ON_TEXT_CHANGED = "onTextChanged"; static var defaultRegainTextFocusEnabled = true; }
Symbol 534 MovieClip [__Packages.org.aswing.JTextArea] Frame 0
class org.aswing.JTextArea extends org.aswing.JTextComponent implements org.aswing.Viewportable { var setName, text, viewPos, wordWrap, multiline, viewportSizeTesting, setUI, getTextField, repaint, invalidateTextFieldAutoSizeToCountPrefferedSize, revalidate, columns, displayable, rows, applyPropertiesToText, applyBoundsToText, getPaintBounds, isHtml, getCSS, getWidthMargin, getColumnWidth, getHeightMargin, getRowHeight, getTextFieldAutoSizedSize, getInsets, getInternalFocusObj, needResumeSelection, startWaitToResumeTheSelectionNextTime, fireStateChanged, addEventListener, verticalUnitIncrement, verticalBlockIncrement, horizontalUnitIncrement, horizontalBlockIncrement, setSize, getHeight; function JTextArea (text, rows, columns) { super(); setName("JTextArea"); this.text = ((text == undefined) ? "" : (text)); viewPos = new org.aswing.geom.Point(); setRows(rows); setColumns(columns); wordWrap = false; multiline = true; viewportSizeTesting = false; updateUI(); } function updateUI() { setUI(org.aswing.plaf.TextUI(org.aswing.UIManager.getUI(this))); } function getUIClassID() { return("TextAreaUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicTextAreaUI); } function setWordWrap(wrap) { if (wordWrap != wrap) { wordWrap = wrap; if (getTextField() != null) { getTextField().wordWrap = wrap; } else { repaint(); } invalidateTextFieldAutoSizeToCountPrefferedSize(); revalidate(); } } function isWordWrap() { return(wordWrap); } function setColumns(columns) { if (columns == undefined) { columns = 0; } if (columns < 0) { columns = 0; } if (this.columns != columns) { this.columns = columns; if (isWordWrap()) { invalidateTextFieldAutoSizeToCountPrefferedSize(); } if (displayable) { revalidate(); } } } function getColumns() { return(columns); } function setRows(rows) { if (rows == undefined) { rows = 0; } if (rows < 0) { rows = 0; } if (this.rows != rows) { this.rows = rows; if (isWordWrap()) { invalidateTextFieldAutoSizeToCountPrefferedSize(); } if (displayable) { revalidate(); } } } function getRows() { return(rows); } function size() { super.size(); if (isWordWrap()) { } if (getTextField() != null) { applyPropertiesToText(getTextField(), false); applyBoundsToText(getTextField(), getPaintBounds()); var _local3 = getTextField(); if (isHtml()) { _local3.styleSheet = getCSS(); _local3.htmlText = text; } else { _local3.text = text; } _local3.background = false; } } function isAutoSize() { return((columns == 0) || (rows == 0)); } function countPreferredSize() { var _local2; if ((columns > 0) && (rows > 0)) { var _local3 = (getColumnWidth() * columns) + getWidthMargin(); var _local4 = (getRowHeight() * rows) + getHeightMargin(); _local2 = new org.aswing.geom.Dimension(_local3, _local4); } else if ((rows <= 0) && (columns <= 0)) { _local2 = getTextFieldAutoSizedSize(); } else if (rows > 0) { _local2 = getTextFieldAutoSizedSize(); _local2.height = (getRowHeight() * rows) + getHeightMargin(); } else { _local2 = getTextFieldAutoSizedSize(); } return(getInsets().getOutsideSize(_local2)); } function getWordWrapWidth() { if (columns > 0) { return((getColumnWidth() * columns) + getWidthMargin()); } return(getPaintBounds().width); } function setMultiline(b) { if (multiline != b) { multiline = b; if (getTextField() != null) { getTextField().multiline = b; } else { repaint(); } revalidate(); } } function isMultiline() { return(multiline); } function __onFocusGainedExtraFix() { if (org.aswing.FocusManager.getCurrentManager().receiveFocus(getInternalFocusObj()) != 0) { needResumeSelection = true; } else { needResumeSelection = false; } } function __uiTextSetFocus(oldFocus) { super.__uiTextSetFocus(oldFocus); if (needResumeSelection == true) { startWaitToResumeTheSelectionNextTime(); needResumeSelection = false; } } function __uiTextChanged() { if (viewportSizeTesting) { return(undefined); } super.__uiTextChanged(); revalidate(); } function __uiTextScrolled() { if (viewportSizeTesting) { return(undefined); } var _local4 = getTextField(); var _local3 = new org.aswing.geom.Point(_local4.hscroll, _local4.scroll - 1); var _local5 = (Math.abs(viewPos.y - _local3.y) >= 1) || (Math.abs(viewPos.x - _local3.x) >= 1); if (_local5) { viewPos.setLocation(_local3); fireStateChanged(); } super.__uiTextScrolled(); } function addChangeListener(func, obj) { return(addEventListener(ON_STATE_CHANGED, func, obj)); } function getVerticalUnitIncrement() { if (verticalUnitIncrement == undefined) { return(1); } return(verticalUnitIncrement); } function getVerticalBlockIncrement() { if (verticalBlockIncrement == undefined) { return(10); } return(verticalBlockIncrement); } function getHorizontalUnitIncrement() { if (horizontalUnitIncrement == undefined) { return(getColumnWidth()); } return(horizontalUnitIncrement); } function getHorizontalBlockIncrement() { if (horizontalBlockIncrement == undefined) { return(getColumnWidth() * 10); } return(horizontalBlockIncrement); } function setVerticalUnitIncrement(increment) { if (verticalUnitIncrement != increment) { verticalUnitIncrement = increment; fireStateChanged(); } } function setVerticalBlockIncrement(increment) { if (verticalBlockIncrement != increment) { verticalBlockIncrement = increment; fireStateChanged(); } } function setHorizontalUnitIncrement(increment) { if (horizontalUnitIncrement != increment) { horizontalUnitIncrement = increment; fireStateChanged(); } } function setHorizontalBlockIncrement(increment) { if (horizontalBlockIncrement != increment) { horizontalBlockIncrement = increment; fireStateChanged(); } } function setViewportTestSize(s) { viewportSizeTesting = true; setSize(s); validateScroll(); viewportSizeTesting = false; } function getExtentSize() { var _local2 = getTextField(); if (_local2 == null) { return(new org.aswing.geom.Dimension(1, 1)); } var _local4; var _local6; _local4 = _local2._width; var _local7 = _local2.bottomScroll; var _local5 = _local2.scroll; var _local3 = (_local7 - _local5) + 1; _local6 = _local3; return(new org.aswing.geom.Dimension(_local4, _local6)); } function getViewSize() { var _local2 = getTextField(); if (_local2 == null) { return(new org.aswing.geom.Dimension(0, 0)); } var _local3; var _local10; if (isWordWrap()) { _local3 = _local2._width; _local2.hscroll = 0; } else if ((_local2.textWidth + 5) > _local2._width) { _local3 = _local2._width + _local2.maxhscroll; } else { _local3 = _local2._width; _local2.hscroll = 0; _local2.background = false; } var _local8 = _local2.bottomScroll; var _local7 = _local2.maxscroll; var _local6 = _local2.scroll; var _local4 = (_local8 - _local6) + 1; var _local9 = _local7 + _local4; var _local5 = 1; _local10 = _local9 - _local5; return(new org.aswing.geom.Dimension(_local3, _local10)); } function getViewPosition() { return(new org.aswing.geom.Point(viewPos)); } function setViewPosition(p) { restrictionViewPos(p); if (!viewPos.equals(p)) { viewPos.setLocation(p); validateScroll(); fireStateChanged(); } } function validateScroll() { var _local4 = Math.round(viewPos.x); var _local3 = Math.round(viewPos.y) + 1; var _local2 = getTextField(); if (_local2.hscroll != _local4) { _local2.hscroll = _local4; } if (_local2.scroll != _local3) { _local2.scroll = _local3; } _local2.background = false; } function getVisibleRows() { if (getTextField() != null) { return(getExtentSize().height); } return(Math.floor(getHeight() / getRowHeight())); } function scrollRectToVisible(contentRect) { setViewPosition(new org.aswing.geom.Point(contentRect.x, contentRect.y)); } function scrollToBottomLeft() { setViewPosition(new org.aswing.geom.Point(0, Number.MAX_VALUE)); } function scrollToBottomRight() { setViewPosition(new org.aswing.geom.Point(Number.MAX_VALUE, Number.MAX_VALUE)); } function scrollToTopLeft() { setViewPosition(new org.aswing.geom.Point(0, 0)); } function scrollToTopRight() { setViewPosition(new org.aswing.geom.Point(Number.MAX_VALUE, 0)); } function restrictionViewPos(p) { var _local3 = getViewMaxPos(); p.x = Math.max(0, Math.min(_local3.x, p.x)); p.y = Math.max(0, Math.min(_local3.y, p.y)); return(p); } function getViewMaxPos() { var _local4 = getExtentSize(); var _local3 = getViewSize(); var _local2 = new org.aswing.geom.Point(_local3.width - _local4.width, _local3.height - _local4.height); if (_local2.x < 0) { _local2.x = 0; } if (_local2.y < 0) { _local2.y = 0; } return(_local2); } function getViewportPane() { return(this); } static var ON_STATE_CHANGED = "onStateChanged"; }
Symbol 535 MovieClip [__Packages.org.aswing.plaf.basic.BasicTextAreaUI] Frame 0
class org.aswing.plaf.basic.BasicTextAreaUI extends org.aswing.plaf.basic.BasicTextComponentUI { static var textUI; var highlight, shadow; function BasicTextAreaUI () { super(); highlight = org.aswing.UIManager.getColor("TextArea.highlight"); shadow = org.aswing.UIManager.getColor("TextArea.shadow"); } static function createInstance(c) { if (textUI == null) { textUI = new org.aswing.plaf.basic.BasicTextAreaUI(); } return(textUI); } function getPropertyPrefix() { return("TextArea."); } function paint(c, g, r) { super.paint(c, g, r); } function paintBackGround(c, g, r) { if (c.isOpaque() && (c.isEnabled())) { var _local8 = r.x; var _local6 = r.y; var _local9 = r.width; var _local7 = r.height; g.fillRectangle(new org.aswing.graphics.SolidBrush(c.getBackground()), _local8, _local6, _local9, _local7); var _local5 = [c.getBackground().getRGB(), c.getBackground().getRGB()]; var _local3 = [50, 0]; var _local10 = [0, 100]; var _local4 = {matrixType:"box", x:_local8, y:_local6, w:_local9, h:_local7, r:(Math.PI/2)}; var _local2 = new org.aswing.graphics.GradientBrush(org.aswing.graphics.GradientBrush.LINEAR, _local5, _local3, _local10, _local4); g.fillRectangle(_local2, _local8, _local6, _local9, _local7); } } function getPreferredSize(c) { return(null); } }
Symbol 536 MovieClip [__Packages.org.aswing.JSpacer] Frame 0
class org.aswing.JSpacer extends org.aswing.Component { var setPreferredSize, ui; function JSpacer () { super(); setPreferredSize(arguments[0], arguments[1]); updateUI(); } function getUI() { return(org.aswing.plaf.SpacerUI(ui)); } function setUI(ui) { super.setUI(ui); } function updateUI() { setUI(org.aswing.plaf.SpacerUI(org.aswing.UIManager.getUI(this))); } function getUIClassID() { return("SpacerUI"); } function getDefaultBasicUIClass() { return(org.aswing.plaf.basic.BasicSpacerUI); } static function createHorizontalSpacer(width) { if (width == undefined) { width = 4; } var _local1 = new org.aswing.JSpacer(); _local1.setPreferredSize(width, 0); _local1.setMaximumSize(width, Number.MAX_VALUE); return(_local1); } static function createVerticalSpacer(height) { if (height == undefined) { height = 4; } var _local1 = new org.aswing.JSpacer(); _local1.setPreferredSize(0, height); _local1.setMaximumSize(Number.MAX_VALUE, height); return(_local1); } static function createSolidSpacer(width, height) { if (width == undefined) { width = 4; } if (height == undefined) { height = 4; } var _local1 = new org.aswing.JSpacer(); _local1.setPreferredSize(width, height); return(_local1); } }
Symbol 537 MovieClip [__Packages.org.aswing.plaf.SpacerUI] Frame 0
class org.aswing.plaf.SpacerUI extends org.aswing.plaf.ComponentUI { function SpacerUI () { super(); } }
Symbol 538 MovieClip [__Packages.org.aswing.plaf.basic.BasicSpacerUI] Frame 0
class org.aswing.plaf.basic.BasicSpacerUI extends org.aswing.plaf.SpacerUI { static var basicSpacerUI; function BasicSpacerUI () { super(); } static function createInstance(c) { if (basicSpacerUI == null) { basicSpacerUI = new org.aswing.plaf.basic.BasicSpacerUI(); } return(basicSpacerUI); } function installUI(c) { installDefaults(org.aswing.JSpacer(c)); installListeners(org.aswing.JSpacer(c)); } function uninstallUI(c) { uninstallDefaults(org.aswing.JSpacer(c)); uninstallListeners(org.aswing.JSpacer(c)); } function installDefaults(s) { org.aswing.LookAndFeel.installColors(s, "Spacer.background", "Spacer.foreground"); org.aswing.LookAndFeel.installBasicProperties(s, "Spacer."); org.aswing.LookAndFeel.installBorder(s, "Spacer.border"); } function uninstallDefaults(s) { org.aswing.LookAndFeel.uninstallBorder(s); } function installListeners(s) { } function uninstallListeners(s) { } function getPreferredSize(c) { return(c.getInsets().getOutsideSize(new org.aswing.geom.Dimension(0, 0))); } }
Symbol 539 MovieClip [__Packages.org.aswing.BoxLayout] Frame 0
class org.aswing.BoxLayout extends org.aswing.EmptyLayout { var axis, gap; function BoxLayout (axis, gap) { super(); setAxis(axis); setGap(gap); } function setAxis(axis) { this.axis = ((axis == undefined) ? (X_AXIS) : (axis)); } function getAxis() { return(axis); } function setGap(gap) { this.gap = ((gap == undefined) ? 0 : (gap)); } function getGap() { return(gap); } function preferredLayoutSize(target) { var _local9 = target.getComponentCount(); var _local10 = target.getInsets(); var _local5 = 0; var _local6 = 0; var _local7 = 0; var _local2 = 0; while (_local2 < _local9) { var _local3 = target.getComponent(_local2); if (_local3.isVisible()) { var _local4 = _local3.getPreferredSize(); _local5 = Math.max(_local5, _local4.width); _local6 = Math.max(_local6, _local4.height); _local7++; } _local2++; } if (axis == Y_AXIS) { _local6 = _local6 * _local7; if (_local7 > 0) { _local6 = _local6 + ((_local7 - 1) * gap); } } else { _local5 = _local5 * _local7; if (_local7 > 0) { _local5 = _local5 + ((_local7 - 1) * gap); } } var _local11 = new org.aswing.geom.Dimension(_local5, _local6); return(_local10.getOutsideSize(_local11)); } function minimumLayoutSize(target) { return(target.getInsets().getOutsideSize()); } function maximumLayoutSize(target) { var _local9 = target.getComponentCount(); var _local10 = target.getInsets(); var _local5 = 0; var _local6 = 0; var _local7 = 0; var _local2 = 0; while (_local2 < _local9) { var _local3 = target.getComponent(_local2); if (_local3.isVisible()) { var _local4 = _local3.getMaximumSize(); _local5 = Math.max(_local5, _local4.width); _local6 = Math.max(_local6, _local4.height); _local7++; } _local2++; } if (axis == Y_AXIS) { _local6 = _local6 * _local7; if (_local7 > 0) { _local6 = _local6 + ((_local7 - 1) * gap); } } else { _local5 = _local5 * _local7; if (_local7 > 0) { _local5 = _local5 + ((_local7 - 1) * gap); } } var _local11 = new org.aswing.geom.Dimension(_local5, _local6); return(_local10.getOutsideSize(_local11)); } function layoutContainer(target) { var _local5 = target.getComponentCount(); var _local8 = 0; var _local2 = 0; while (_local2 < _local5) { var _local3 = target.getComponent(_local2); if (_local3.isVisible()) { _local8++; } _local2++; } var _local15 = target.getSize(); var _local14 = target.getInsets(); var _local11 = _local14.getInsideBounds(_local15.getBounds()); var _local9; var _local10; if (axis == Y_AXIS) { _local9 = Math.floor((_local11.height - ((_local8 - 1) * gap)) / _local8); _local10 = _local11.width; } else { _local9 = _local11.height; _local10 = Math.floor((_local11.width - ((_local8 - 1) * gap)) / _local8); } var _local7 = _local11.x; var _local6 = _local11.y; var _local12 = ((axis == Y_AXIS) ? 0 : (_local10 + gap)); var _local13 = ((axis == Y_AXIS) ? (_local9 + gap) : 0); _local2 = 0; while (_local2 < _local5) { var _local3 = target.getComponent(_local2); if (_local3.isVisible()) { _local3.setBounds(_local7, _local6, _local10, _local9); _local7 = _local7 + _local12; _local6 = _local6 + _local13; } _local2++; } } function getLayoutAlignmentX(target) { return(0.5); } function getLayoutAlignmentY(target) { return(0.5); } static var X_AXIS = 0; static var Y_AXIS = 1; }
Symbol 540 MovieClip [__Packages.edu.colorado.phet.flashcommon.CommonDialog] Frame 0
class edu.colorado.phet.flashcommon.CommonDialog { var prefix, common, window, tabHandler; function CommonDialog (dialogPrefix, dialogTitle) { prefix = dialogPrefix; common = _level0.common; _level0[prefix + "Dialog"] = this; window = new org.aswing.JFrame(_level0, dialogTitle); window.setResizable(false); _level0[prefix + "Window"] = window; window.setBackground(common.backgroundColor); tabHandler = new edu.colorado.phet.flashcommon.TabHandler(false); window.addEventListener(org.aswing.overflow.JPopup.ON_WINDOW_CLOSING, org.aswing.util.Delegate.create(this, closeClicked)); window.addEventListener(org.aswing.Component.ON_FOCUS_GAINED, org.aswing.util.Delegate.create(this, windowClicked)); } function debug(str) { _level0.debug(str); } function displayMe() { window.setSize(window.getPreferredSize()); window.setLocation((Stage.width - window.getWidth()) / 2, (Stage.height - window.getHeight()) / 2); window.show(); setupTabHandler(); common.keyboardHandler.addTabHandler(tabHandler); common.keyboardHandler.setTabHandler(tabHandler); } function setupTabHandler() { throw new Error("This should be overridden"); } function manualClose() { window.hide(); onClose(); } function manualOpen() { tabHandler.reset(); window.show(); onOpen(); } function closeClicked(src) { onClose(); } function windowClicked(src) { debug("Focus changed!!!"); tabHandler.giveMeFocus(); } function onClose() { _level0.keyboardHandler.removeTabHandler(tabHandler); } function onOpen() { _level0.keyboardHandler.addTabHandler(tabHandler); _level0.keyboardHandler.setTabHandler(tabHandler); } static function openAboutDialog() { if (_level0.aboutWindow) { _level0.aboutDialog.manualOpen(); } else { new edu.colorado.phet.flashcommon.AboutDialog(); } } static function openAgreementDialog() { if (_level0.agreementWindow) { _level0.agreementDialog.manualOpen(); } else { new edu.colorado.phet.flashcommon.AgreementDialog(); } } static function openCreditsDialog() { if (_level0.creditsWindow) { _level0.creditsDialog.manualOpen(); } else { new edu.colorado.phet.flashcommon.CreditsDialog(); } } static function openMessageDialog(title, message, ok) { new edu.colorado.phet.flashcommon.MessageDialog(title, message, ok); } static function openPreferencesDialog() { if (_level0.preferencesWindow) { _level0.preferencesDialog.manualOpen(); } else { new edu.colorado.phet.flashcommon.PreferencesDialog(); } } static function openStatisticsDetailsDialog() { if (_level0.statisticsDetailsWindow) { _level0.statisticsDetailsDialog.manualOpen(); } else { new edu.colorado.phet.flashcommon.StatisticsDetailsDialog(); } } static function openUpdateInstallationDetailsDialog() { if (_level0.updateInstallationDetailsWindow) { _level0.updateInstallationDetailsDialog.manualOpen(); } else { new edu.colorado.phet.flashcommon.UpdateInstallationDetailsDialog(); } } static function openUpdateInstallationDialog(installerTimestamp, installerAskLaterDays) { if (_level0.updateInstallationWindow) { _level0.updateInstallationDialog.manualOpen(); } else { new edu.colorado.phet.flashcommon.UpdateInstallationDialog(installerTimestamp, installerAskLaterDays); } } static function openUpdateSimDialog(versionMajor, versionMinor, versionDev, versionRevision, simAskLaterDays) { if (_level0.updateSimWindow) { _level0.updateSimDialog.manualOpen(); } else { new edu.colorado.phet.flashcommon.UpdateSimDialog(versionMajor, versionMinor, versionDev, versionRevision, simAskLaterDays); } } }
Symbol 541 MovieClip [__Packages.edu.colorado.phet.flashcommon.TabHandler] Frame 0
class edu.colorado.phet.flashcommon.TabHandler { static var dummyText; var debugMain, handlerId, common, active, entries, currentIndex, lastHighlight; function TabHandler (main) { debugMain = main; handlerId = handlerCount++; common = _level0.common; if (main) { _level0.tabHandler = this; common.tabHandler = this; } if (handlerId == 0) { _root.tabIndex = 1; _root.tabEnabled = false; MovieClip.prototype.tabEnabled = false; dummyText = _root.createTextField("dummyTxt", 9092, 0, 0, 0, 0); dummyText._visible = false; dummyText.type = "input"; dummyText.tabIndex = 3524534 /* 0x35C7B6 */; dummyText.tabEnabled = false; } active = false; entries = new Array(); currentIndex = -1; } function debug(str) { _level0.debug(str); } function currentEntry() { return(entries[currentIndex]); } function currentControl() { return(entries[currentIndex].control); } function insertEntry(entry, idx) { entries.splice(idx, 0, entry); if (currentIndex >= idx) { currentIndex++; } } function addEntry(entry) { insertEntry(entry, entries.length); } function addAsWingButton(obj) { addEntry(edu.colorado.phet.flashcommon.TabEntry.createASwingEntry(obj)); registerButton(obj.trigger_mc); } function addAsWingCheckBox(obj) { addEntry(edu.colorado.phet.flashcommon.TabEntry.createASwingEntry(obj)); registerButton(obj.trigger_mc); } function insertControl(obj, idx, highlight) { entries.splice(idx, 0, new edu.colorado.phet.flashcommon.TabEntry(obj, highlight)); if (currentIndex >= idx) { currentIndex++; } } function addControl(obj, highlight) { insertControl(obj, entries.length, highlight); } function findIndex(obj) { var _local2 = 0; while (_local2 < entries.length) { if (entries[_local2].control == obj) { return(_local2); } _local2++; } return(-1); } function findEntryIndex(entry) { var _local2 = 0; while (_local2 < entries.length) { if (entries[_local2] == entry) { return(_local2); } _local2++; } return(-1); } function removeControl(obj) { var _local2 = findIndex(obj); if (_local2 == -1) { return(undefined); } if (currentIndex == _local2) { if (entries.length > 1) { next(); } else { removeFocus(currentEntry()); reset(); } } entries.splice(_local2, 1); if (currentIndex >= _local2) { currentIndex--; } } function removeEntry(entry) { removeControl(entry.control); } function registerKey(obj, key, callback) { var _local2 = findIndex(obj); if (_local2 == -1) { debug("WARNING TabHandler: registerKey object is not found\n"); return(undefined); } entries[_local2].keys[key] = callback; } function registerButton(obj) { var _local2 = findIndex(obj); if (_local2 == -1) { return(undefined); } entries[_local2].buttonlike = true; } function onKeyDown() { if (_level0.aswing_focusFrontHolderMC) { _level0.aswing_focusFrontHolderMC.removeMovieClip(); } if ((Key.getCode() == 9) || (Key.getCode() == 106)) { if (Key.isDown(16)) { previous(); } else { next(); } } else if (active) { currentEntry().onKeyDown(Key.getCode()); } if (Key.getCode() == 27) { onEscape(); } } function onKeyUp() { currentEntry().onKeyUp(Key.getCode()); } function addFocus(entry) { _level0.debug(("TabHandler AddFocus() " + toString()) + newline); Selection.setFocus(entry.control); entry.control.addFocus(); var _local4; switch (entry.highlight) { case HIGHLIGHT_NONE : break; case HIGHLIGHT_GLOBAL : if (!(lastHighlight._parent === undefined)) { _level0.debug("WARNING: TabHandler addFocus encountered already existing lastHighlight\n"); _level0.debug("Depth: " + String(lastHighlight._depth)); lastHighlight.removeMovieClip(); _level0.debug("!!!\n"); } var _local7 = _root.getNextHighestDepth(); if (_local7 > 50000) { _local7 = _local7 - 724; } lastHighlight = _root.createEmptyMovieClip("lastHighlight", _local7); if (typeof(entry.control) == "movieclip") { _local4 = entry.control.getBounds(_root); } else if (typeof(entry.control) == "object") { _local4 = new Object(); var _local8 = entry.control._parent; var _local5 = {x:entry.control._x, y:entry.control._y}; _local8.localToGlobal(_local5); _local4.xMin = _local5.x; _local4.yMin = _local5.y; _local5 = {x:entry.control._x + entry.control._width, y:entry.control._y + entry.control._height}; _local8.localToGlobal(_local5); _local4.xMax = _local5.x; _local4.yMax = _local5.y; } entry.drawHighlights(lastHighlight, _local4); break; case HIGHLIGHT_LOCAL : var _local6 = MovieClip(entry.getHighlightObject()); lastHighlight = _local6.createEmptyMovieClip("lastHighlight", _local6.getNextHighestDepth()); _local4 = _local6.getBounds(_local6); entry.drawHighlights(lastHighlight, _local4); } } function removeFocus(entry) { _level0.debug(("TabHandler removeFocus() " + toString()) + newline); entry.control.removeFocus(); Selection.setFocus(dummyText); if (entry.highlight != HIGHLIGHT_NONE) { lastHighlight.removeMovieClip(); } } function setFocus(obj) { if (obj == currentControl()) { return(undefined); } var _local2 = findIndex(obj); if (_local2 == -1) { return(undefined); } if (active) { removeFocus(currentEntry()); } currentIndex = _local2; if (active) { addFocus(currentEntry()); } } function next() { if (active) { removeFocus(currentEntry()); } if (entries.length > 0) { active = true; currentIndex = (currentIndex + 1) % entries.length; addFocus(currentEntry()); } } function previous() { if (active) { removeFocus(currentEntry()); } if (entries.length > 0) { active = true; currentIndex = ((currentIndex - 1) + entries.length) % entries.length; addFocus(currentEntry()); } } function reset() { active = false; currentIndex = -1; } function onEscape() { if (active) { active = false; removeFocus(currentEntry()); } } function onAddFocus() { _level0.debug(("TabHandler onAddFocus() " + toString()) + newline); if ((entries.length > 0) && (active)) { active = true; addFocus(currentEntry()); } } function onRemoveFocus() { _level0.debug(("TabHandler onRemoveFocus() " + toString()) + newline); if (active) { removeFocus(currentEntry()); } } function giveMeFocus() { _level0.keyboardHandler.setTabHandler(this); } function aswingButtonPressed(src) { giveMeFocus(); } function toString() { return((((("#" + String(handlerId)) + " active:") + String(active)) + " entries:") + String(entries.length)); } static var HIGHLIGHT_NONE = "none"; static var HIGHLIGHT_GLOBAL = "global"; static var HIGHLIGHT_LOCAL = "local"; static var handlerCount = 0; }
Symbol 542 MovieClip [__Packages.edu.colorado.phet.flashcommon.TabEntry] Frame 0
class edu.colorado.phet.flashcommon.TabEntry { var control, highlight, highlightObject, keys, buttonlike, keyups, manualBounds; function TabEntry (obj, high, highobj) { control = obj; highlight = high; highlightObject = highobj; if (highlight == undefined) { highlight = edu.colorado.phet.flashcommon.TabHandler.HIGHLIGHT_GLOBAL; } keys = new Object(); buttonlike = false; } static function createASwingEntry(obj) { return(new edu.colorado.phet.flashcommon.TabEntry(obj.trigger_mc, edu.colorado.phet.flashcommon.TabHandler.HIGHLIGHT_LOCAL, obj.root_mc)); } function getHighlightObject() { if (highlightObject) { return(highlightObject); } return(control); } function onKeyDown(keyCode) { var _local2 = keys[keyCode]; if (_local2 != undefined) { _local2(); } if (buttonlike && ((keyCode == 32) || (keyCode == 13))) { control.onPress(); } } function onKeyUp(keyCode) { var _local2 = keyups[keyCode]; if (_local2 != undefined) { _local2(); } if (buttonlike && ((keyCode == 32) || (keyCode == 13))) { control.onRelease(); } } function drawHighlights(high, bounds) { var _local3 = bounds.xMin + highlightInset; var _local5 = bounds.xMax - highlightInset; var _local4 = bounds.yMin + highlightInset; var _local6 = bounds.yMax - highlightInset; if (manualBounds) { _local3 = manualBounds.left; _local5 = manualBounds.right; _local4 = manualBounds.top; _local6 = manualBounds.bottom; } high.lineStyle(highlightWidth, highlightColor); high.moveTo(_local3, _local4); high.lineTo(_local5, _local4); high.lineTo(_local5, _local6); high.lineTo(_local3, _local6); high.lineTo(_local3, _local4); } function toString() { var _local2 = ""; _local2 = _local2 + "\tTabEntry\n"; _local2 = _local2 + (("\t\t" + String(control)) + newline); _local2 = _local2 + (("\t\t" + ((highlight == edu.colorado.phet.flashcommon.TabHandler.HIGHLIGHT_NONE) ? "no highlight" : (((highlight == edu.colorado.phet.flashcommon.TabHandler.HIGHLIGHT_GLOBAL) ? "global highlight" : "local highlight")))) + newline); _local2 = _local2 + "\t\t"; for (var _local3 in keys) { _local2 = _local2 + (_local3 + " "); } _local2 = _local2 + newline; _local2 = _local2 + (("\t\tbuttonlike: " + String(buttonlike)) + newline); return(_local2); } var highlightWidth = 2; var highlightInset = 1; var highlightColor = 255; }
Symbol 543 MovieClip [__Packages.edu.colorado.phet.flashcommon.AboutDialog] Frame 0
class edu.colorado.phet.flashcommon.AboutDialog extends edu.colorado.phet.flashcommon.CommonDialog { var window, common, agreementButton, creditsButton, okButton, displayMe, tabHandler, manualClose; function AboutDialog () { super("about", _level0.common.strings.get("AboutSim", "About {0}", [_level0.common.getSimTitle()])); window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local3 = ""; _local3 = _local3 + "<b>PhET Interactive Simulations</b>\n"; _local3 = _local3 + "Copyright \u00A9 2004-2009 University of Colorado.\n"; _local3 = _local3 + "Some rights reserved.\n"; _local3 = _local3 + "Visit <a href='asfunction:_level0.common.openExternalLink,http://phet.colorado.edu'>http://phet.colorado.edu</a>\n\n"; _local3 = _local3 + (("<b><font size='16'>" + common.getSimTitle()) + "</font></b>\n"); _local3 = _local3 + (((common.strings.get("Version", "Version") + ": ") + common.getFullVersionString()) + newline); _local3 = _local3 + (((common.strings.get("BuildDate", "Build Date") + ": ") + edu.colorado.phet.flashcommon.FlashCommon.dateString(edu.colorado.phet.flashcommon.FlashCommon.dateOfSeconds(common.getVersionTimestamp()))) + newline); if ((common.getDistributionTag() != null) || (common.getSimName() == "flash-common-strings")) { _local3 = _local3 + (((common.strings.get("Distribution", "Distribution") + ": ") + String(common.getDistributionTag())) + newline); } _local3 = _local3 + newline; _local3 = _local3 + (((common.strings.get("FlashVersion", "Flash Version") + ": ") + System.capabilities.version) + newline); _local3 = _local3 + (((common.strings.get("OSVersion", "OS Version") + ": ") + System.capabilities.os) + newline); var _local4 = new org.aswing.JTextArea(_local3); _local4.setHtml(true); _local4.setEditable(false); _local4.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); _local4.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 5, 5))); _local4.setBackground(common.backgroundColor); _local4.setWidth(250); window.getContentPane().append(_local4); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local5 = new org.aswing.JPanel(new org.aswing.FlowLayout()); _local3 = common.strings.get("SoftwareAgreement", "Software Agreement"); if (common.getLocale() == "ar") { _local3 = "..." + _local3; } else { _local3 = _local3 + "..."; } agreementButton = new org.aswing.JButton(_local3); agreementButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, agreementClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(agreementButton, _local5); _local3 = common.strings.get("Credits", "Credits"); if (common.getLocale() == "ar") { _local3 = "..." + _local3; } else { _local3 = _local3 + "..."; } creditsButton = new org.aswing.JButton(_local3); creditsButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, creditsClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(creditsButton, _local5); okButton = new org.aswing.JButton(common.strings.get("OK", "OK")); okButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, okClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(okButton, _local5); var _local6 = new org.aswing.JPanel(new org.aswing.CenterLayout()); _local6.append(_local5); window.getContentPane().append(_local6); displayMe(); } function setupTabHandler() { tabHandler.addAsWingButton(agreementButton); tabHandler.addAsWingButton(creditsButton); tabHandler.addAsWingButton(okButton); } function agreementClicked(src) { edu.colorado.phet.flashcommon.CommonDialog.openAgreementDialog(); } function okClicked(src) { manualClose(); } function creditsClicked(src) { edu.colorado.phet.flashcommon.CommonDialog.openCreditsDialog(); } }
Symbol 544 MovieClip [__Packages.org.aswing.CenterLayout] Frame 0
class org.aswing.CenterLayout extends org.aswing.EmptyLayout { function CenterLayout () { super(); } function preferredLayoutSize(target) { return(((target.getComponentCount() > 0) ? (target.getInsets().getOutsideSize(target.getComponent(0).getPreferredSize())) : (target.getInsets().getOutsideSize()))); } function layoutContainer(target) { if (target.getComponentCount() > 0) { var _local7 = target.getSize(); var _local6 = target.getInsets(); var _local1 = _local6.getInsideBounds(_local7.getBounds()); var _local4 = target.getComponent(0); var _local2 = _local4.getPreferredSize(); var _local3 = new org.aswing.geom.Rectangle(); _local3.setLocation(_local1.getLocation()); _local3.setSize(_local1.getSize().intersect(_local2)); if (_local1.width > _local2.width) { _local3.x = _local3.x + ((_local1.width - _local2.width) / 2); } if (_local1.height > _local2.height) { _local3.y = _local3.y + ((_local1.height - _local2.height) / 2); } _local4.setBounds(_local3); } } }
Symbol 545 MovieClip [__Packages.edu.colorado.phet.flashcommon.AgreementDialog] Frame 0
class edu.colorado.phet.flashcommon.AgreementDialog extends edu.colorado.phet.flashcommon.CommonDialog { var window, common, textArea, agreementScroll, closeButton, displayMe, tabHandler, manualClose; function AgreementDialog () { super("agreement", _level0.common.strings.get("PhetSoftwareAgreement", "PhET Software Agreement")); window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local3 = ""; var _local6 = ""; _local3 = _local3 + common.getAgreementText(); _local3 = _local3 + "\n\n"; textArea = new org.aswing.JTextArea(_local3, 0, 40); textArea.setHtml(true); textArea.setEditable(false); textArea.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); textArea.setWordWrap(true); textArea.setWidth(400); textArea.setBackground(common.backgroundColor); textArea.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 0, 5))); agreementScroll = new org.aswing.JScrollPane(textArea, org.aswing.JScrollPane.SCROLLBAR_AS_NEEDED, org.aswing.JScrollPane.SCROLLBAR_AS_NEEDED); agreementScroll.setPreferredSize(400, 300); agreementScroll.setBorder(new org.aswing.border.EmptyBorder(new org.aswing.border.LineBorder(null, org.aswing.ASColor.__get__GRAY(), 1, 0), new org.aswing.Insets(5, 5, 5, 5))); window.getContentPane().append(agreementScroll); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local5 = new org.aswing.JPanel(new org.aswing.BoxLayout()); closeButton = new org.aswing.JButton(common.strings.get("Close", "Close")); closeButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, closeClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(closeButton, _local5); var _local4 = new org.aswing.JPanel(new org.aswing.CenterLayout()); _local4.append(_local5); window.getContentPane().append(_local4); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); displayMe(); } function setupTabHandler() { var _local2 = new edu.colorado.phet.flashcommon.TabEntry(textArea.trigger_mc, edu.colorado.phet.flashcommon.TabHandler.HIGHLIGHT_LOCAL, agreementScroll.getVerticalScrollBar().target_mc); tabHandler.addEntry(_local2); tabHandler.registerKey(textArea.trigger_mc, 34, function () { _level0.agreementDialog.scroll(10); }); tabHandler.registerKey(textArea.trigger_mc, 33, function () { _level0.agreementDialog.scroll(-10); }); tabHandler.registerKey(textArea.trigger_mc, 38, function () { _level0.agreementDialog.scroll(-2); }); tabHandler.registerKey(textArea.trigger_mc, 40, function () { _level0.agreementDialog.scroll(2); }); tabHandler.addAsWingButton(closeButton); } function scroll(amount) { var _local2 = agreementScroll.getViewport(); _local2.setViewPosition(_local2.getViewPosition().move(0, amount)); } function closeClicked(src) { manualClose(); } }
Symbol 546 MovieClip [__Packages.edu.colorado.phet.flashcommon.CreditsDialog] Frame 0
class edu.colorado.phet.flashcommon.CreditsDialog extends edu.colorado.phet.flashcommon.CommonDialog { var window, common, textArea, textScroll, closeButton, displayMe, tabHandler, manualClose; function CreditsDialog () { super("credits", _level0.common.strings.get("Credits", "Credits")); window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local3 = ""; var _local6 = ""; _local3 = _local3 + (("<font size='17'>" + common.strings.get("PhetDevelopmentTeam", "PhET Development Team ")) + "</font>\n"); _local3 = _local3 + common.getCreditsText(); _local3 = _local3 + "\n\n"; _local3 = _local3 + (("<font size='17'>" + common.strings.get("LicenseLibraries", "Used Library Licensing Information:")) + "</font>\n"); var _local5 = "For AsWing A2:\n2005-2006(c) AsWing.org.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3) Neither the name AsWing.org nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL\nTHE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\nOF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR\nTORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."; _local3 = _local3 + _local5; textArea = new org.aswing.JTextArea(_local3, 0, 40); textArea.setHtml(true); textArea.setEditable(false); textArea.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); textArea.setWordWrap(true); textArea.setWidth(400); textArea.setBackground(common.backgroundColor); textArea.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 0, 5))); textScroll = new org.aswing.JScrollPane(textArea, org.aswing.JScrollPane.SCROLLBAR_AS_NEEDED, org.aswing.JScrollPane.SCROLLBAR_AS_NEEDED); textScroll.setPreferredSize(400, 300); textScroll.setBorder(new org.aswing.border.EmptyBorder(new org.aswing.border.LineBorder(null, org.aswing.ASColor.__get__GRAY(), 1, 0), new org.aswing.Insets(5, 5, 5, 5))); window.getContentPane().append(textScroll); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local4 = new org.aswing.JPanel(new org.aswing.BoxLayout()); closeButton = new org.aswing.JButton(common.strings.get("Close", "Close")); closeButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, closeClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(closeButton, _local4); window.getContentPane().append(_local4); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); displayMe(); } function setupTabHandler() { var _local2 = new edu.colorado.phet.flashcommon.TabEntry(textArea.trigger_mc, edu.colorado.phet.flashcommon.TabHandler.HIGHLIGHT_LOCAL, textScroll.getVerticalScrollBar().target_mc); tabHandler.addEntry(_local2); tabHandler.registerKey(textArea.trigger_mc, 34, function () { _level0.creditsDialog.scroll(10); }); tabHandler.registerKey(textArea.trigger_mc, 33, function () { _level0.creditsDialog.scroll(-10); }); tabHandler.registerKey(textArea.trigger_mc, 38, function () { _level0.creditsDialog.scroll(-2); }); tabHandler.registerKey(textArea.trigger_mc, 40, function () { _level0.creditsDialog.scroll(2); }); tabHandler.addAsWingButton(closeButton); } function scroll(amount) { var _local2 = textScroll.getViewport(); _local2.setViewPosition(_local2.getViewPosition().move(0, amount)); } function closeClicked(src) { manualClose(); } }
Symbol 547 MovieClip [__Packages.edu.colorado.phet.flashcommon.MessageDialog] Frame 0
class edu.colorado.phet.flashcommon.MessageDialog extends edu.colorado.phet.flashcommon.CommonDialog { var window, common, okButton, displayMe, tabHandler, manualClose; function MessageDialog (title, message, ok) { super("message" + String(Math.round(Math.random() * 50000)), title); window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local6 = message; var _local3 = new org.aswing.JTextArea(_local6, 0, 40); _local3.setHtml(true); _local3.setEditable(false); _local3.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); _local3.setWordWrap(true); _local3.setWidth(400); _local3.setBackground(common.backgroundColor); _local3.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 0, 5))); window.getContentPane().append(_local3); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local5 = new org.aswing.JPanel(new org.aswing.BoxLayout()); if (ok) { okButton = new org.aswing.JButton(common.strings.get("OK", "OK")); } else { okButton = new org.aswing.JButton(common.strings.get("Close", "Close")); } okButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, closeClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(okButton, _local5); var _local4 = new org.aswing.JPanel(new org.aswing.CenterLayout()); _local4.append(_local5); window.getContentPane().append(_local4); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); displayMe(); } function setupTabHandler() { tabHandler.addAsWingButton(okButton); } function closeClicked(src) { manualClose(); } }
Symbol 548 MovieClip [__Packages.edu.colorado.phet.flashcommon.PreferencesDialog] Frame 0
class edu.colorado.phet.flashcommon.PreferencesDialog extends edu.colorado.phet.flashcommon.CommonDialog { var common, updateState, statisticsState, highContrastState, window, updatesCheck, updatesSimButton, updatesInstallationButton, statisticsCheck, detailsButton, highContrastCheck, okButton, cancelButton, displayMe, tabHandler, onClose, debug, manualClose; function PreferencesDialog () { super("preferences", _level0.common.strings.get("PhETPreferences", "PhET Preferences")); common.preferences.load(); updateState = false; statisticsState = false; highContrastState = false; window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local6 = new org.aswing.JPanel(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); _local6.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 5, 5))); var _local4 = new org.aswing.JPanel(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); _local4.setName(common.strings.get("Updates", "Updates")); _local4.setBorder(new org.aswing.border.TitledBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 5, 5)), common.strings.get("Updates", "Updates"))); updatesCheck = new org.aswing.JCheckBox(common.strings.get("CheckUpdates", "Automatically check for updates")); updatesCheck.addEventListener(org.aswing.Component.ON_CLICKED, org.aswing.util.Delegate.create(this, updateToggle)); if (updateState != common.preferences.userAllowsUpdates()) { updatesCheck.click(); } _local4.append(updatesCheck); _local4.append(new org.aswing.JSpacer(5, 5)); updatesSimButton = new org.aswing.JButton(common.strings.get("CheckSimUpdates", "Check for simulation update...")); updatesSimButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, updatesSimClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(updatesSimButton, _local4); if (common.fromFullInstallation()) { _local4.append(new org.aswing.JSpacer(5, 5)); updatesInstallationButton = new org.aswing.JButton(common.strings.get("CheckInstallationUpdates", "Check for PhET Offline Website Installer update...")); updatesInstallationButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, updatesInstallationClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(updatesInstallationButton, _local4); } _local4.append(new org.aswing.JSpacer(5, 5)); var _local3 = new org.aswing.JPanel(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); _local3.setName(common.strings.get("Privacy", "Privacy")); _local3.setBorder(new org.aswing.border.TitledBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 5, 5)), common.strings.get("Privacy", "Privacy"))); var _local10 = ""; var _local8 = "<a href='{0}'>PhET</a> is made freely available through grants which "; _local8 = _local8 + "require us to collect a minimal amount of anonymous information to help document the amount of use "; _local8 = _local8 + "of PhET sims and to better serve our users' update needs."; _local10 = _local10 + common.strings.get("PrivacyRequirement", _local8, ["asfunction:_level0.common.openExternalLink,http://phet.colorado.edu"]); var _local5 = new org.aswing.JTextArea(_local10, 0, 20); _local5.setHtml(true); _local5.setEditable(false); _local5.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); _local5.setWordWrap(true); _local5.setWidth(50); _local5.setBackground(common.backgroundColor); var _local12 = org.aswing.ASTextFormat.getDefaultASTextFormat(); _local12.setAlign(org.aswing.ASTextFormat.CENTER); _local5.setTextFormat(_local12); _local3.append(_local5); _local3.append(new org.aswing.JSpacer(5, 5)); statisticsCheck = new org.aswing.JCheckBox(common.strings.get("AllowMessages", "Allow sending of information to PhET")); statisticsCheck.addEventListener(org.aswing.Component.ON_CLICKED, org.aswing.util.Delegate.create(this, statisticsToggle)); if (statisticsState != _level0.preferences.userAllowsStatistics()) { statisticsCheck.click(); } _local3.append(statisticsCheck); _local3.append(new org.aswing.JSpacer(5, 5)); detailsButton = new org.aswing.JButton(common.strings.get("Details", "Details") + "..."); detailsButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, detailsClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(detailsButton, _local3); _local3.append(new org.aswing.JSpacer(5, 5)); var _local7 = new org.aswing.JPanel(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); _local7.append(new org.aswing.JSpacer(5, 5)); highContrastCheck = new org.aswing.JCheckBox(common.strings.get("HighContrast", "High Contrast Colors")); highContrastCheck.addEventListener(org.aswing.Component.ON_CLICKED, org.aswing.util.Delegate.create(this, highContrastToggle)); if (_level0.highContrast) { highContrastCheck.click(); } _local7.append(highContrastCheck); _local7.append(new org.aswing.JSpacer(5, 5)); _local6.append(_local4); _local6.append(_local3); _local6.append(_local7); window.getContentPane().append(_local6); var _local9 = new org.aswing.JPanel(new org.aswing.BoxLayout()); okButton = new org.aswing.JButton(common.strings.get("OK", "OK")); okButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, okClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(okButton, _local9); cancelButton = new org.aswing.JButton(common.strings.get("Cancel", "Cancel")); cancelButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, cancelClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(cancelButton, _local9); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local11 = new org.aswing.JPanel(new org.aswing.CenterLayout()); _local11.append(_local9); window.getContentPane().append(_local11); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); displayMe(); _level0.preferences.unload(); } function setupTabHandler() { tabHandler.addAsWingCheckBox(updatesCheck); tabHandler.addAsWingButton(updatesSimButton); if (updatesInstallationButton) { tabHandler.addAsWingButton(updatesInstallationButton); } tabHandler.addAsWingCheckBox(statisticsCheck); tabHandler.addAsWingButton(detailsButton); tabHandler.addAsWingCheckBox(highContrastCheck); tabHandler.addAsWingButton(okButton); tabHandler.addAsWingButton(cancelButton); } function reCheck() { _level0.preferences.load(); if (updateState != _level0.preferences.userAllowsUpdates()) { updatesCheck.click(); } if (statisticsState != _level0.preferences.userAllowsStatistics()) { statisticsCheck.click(); } if (highContrastState != _level0.highContrast) { highContrastCheck.click(); } common.preferences.unload(); } function closeClicked(src) { onClose(); } function updateToggle(src) { _level0.preferencesDialog.updateState = !_level0.preferencesDialog.updateState; updatesCheck.setSelected(_level0.preferencesDialog.updateState); debug(("updateState toggled to " + _level0.preferencesDialog.updateState.toString()) + newline); } function statisticsToggle(src) { _level0.preferencesDialog.statisticsState = !_level0.preferencesDialog.statisticsState; statisticsCheck.setSelected(_level0.preferencesDialog.statisticsState); debug(("statisticsState toggled to " + _level0.preferencesDialog.statisticsState.toString()) + newline); } function highContrastToggle(src) { highContrastState = !highContrastState; highContrastCheck.setSelected(highContrastState); debug(("highContrastState toggled to " + highContrastState.toString()) + newline); } function updatesSimClicked(src) { common.updateHandler.manualCheckSim(); } function updatesInstallationClicked(src) { common.updateHandler.manualCheckInstallation(); } function detailsClicked(src) { edu.colorado.phet.flashcommon.CommonDialog.openStatisticsDetailsDialog(); } function agreementClicked(src) { edu.colorado.phet.flashcommon.CommonDialog.openAgreementDialog(); } function cancelClicked(src) { manualClose(); } function okClicked(src) { common.preferences.setPrivacy(_level0.preferencesDialog.updateState, _level0.preferencesDialog.statisticsState); if (highContrastState != _level0.highContrast) { _level0.highContrastFunction(highContrastState); } manualClose(); } function manualOpen() { super.manualOpen(); reCheck(); } }
Symbol 549 MovieClip [__Packages.org.aswing.border.TitledBorder] Frame 0
class org.aswing.border.TitledBorder extends org.aswing.border.DecorateBorder { var title, position, align, edge, round, font, color, lineColor, lineLightColor, lineThickness, beveled, textFields, textFieldExtent; function TitledBorder (interior, title, position, align, edge, round) { super(interior); this.title = title; this.position = ((position == undefined) ? (TOP) : (position)); this.align = ((align == undefined) ? (CENTER) : (align)); this.edge = ((edge == undefined) ? 0 : (edge)); this.round = ((round == undefined) ? 0 : (round)); font = DEFAULT_FONT; color = DEFAULT_COLOR; lineColor = DEFAULT_LINE_COLOR; lineLightColor = DEFAULT_LINE_LIGHT_COLOR; lineThickness = DEFAULT_LINE_THICKNESS; beveled = true; textFields = new org.aswing.util.HashMap(); textFieldExtent = font.getASTextFormat().getTextExtent(title); } static function get DEFAULT_FONT() { return(org.aswing.UIManager.getFont("systemFont")); } static function get DEFAULT_COLOR() { return(org.aswing.ASColor.__get__BLACK()); } static function get DEFAULT_LINE_COLOR() { return(org.aswing.ASColor.__get__GRAY()); } static function get DEFAULT_LINE_LIGHT_COLOR() { return(org.aswing.ASColor.__get__WHITE()); } function paintBorderImp(c, g, bounds) { var _local9 = TextField(textFields.get(c.getID())); if (_local9 == null) { _local9 = c.createTextField("titleBorder"); if (_local9 != null) { textFields.put(c.getID(), _local9); } } if (_local9 == null) { return(undefined); } var _local19 = Math.ceil(textFieldExtent.getTextFieldHeight()); var _local5 = bounds.x + (lineThickness * 0.5); var _local3 = bounds.y + (lineThickness * 0.5); if (position == TOP) { _local3 = _local3 + (_local19 / 2); } var _local13 = bounds.width - lineThickness; var _local12 = (bounds.height - lineThickness) - (_local19 / 2); if (beveled) { _local13 = _local13 - lineThickness; _local12 = _local12 - lineThickness; } var _local6 = _local5 + _local13; var _local4 = _local3 + _local12; var _local8 = new org.aswing.geom.Rectangle(); var _local14 = new org.aswing.geom.Rectangle(bounds); var _local16 = title; var _local17 = position; var _local18 = align; var _local10 = new org.aswing.graphics.Pen(lineColor, lineThickness); if (round <= 0) { if (bounds.width <= (edge * 2)) { g.drawRectangle(_local10, _local5, _local3, _local13, _local12); if (beveled) { _local10.setASColor(lineLightColor); g.beginDraw(_local10); g.moveTo(_local5 + lineThickness, _local4 - lineThickness); g.lineTo(_local5 + lineThickness, _local3 + lineThickness); g.lineTo(_local6 - lineThickness, _local3 + lineThickness); g.moveTo(_local6 + lineThickness, _local3); g.lineTo(_local6 + lineThickness, _local4 + lineThickness); g.lineTo(_local5, _local4 + lineThickness); } _local9.text = ""; } else { _local14.x = _local14.x + edge; _local14.width = _local14.width - (edge * 2); _local16 = org.aswing.ASWingUtils.layoutText(font, _local16, _local17, _local18, _local14, _local8); g.beginDraw(_local10); if (position == TOP) { g.moveTo(_local8.x - GAP, _local3); g.lineTo(_local5, _local3); g.lineTo(_local5, _local4); g.lineTo(_local6, _local4); g.lineTo(_local6, _local3); g.lineTo((_local8.x + _local8.width) + GAP, _local3); } else { g.moveTo(_local8.x - GAP, _local4); g.lineTo(_local5, _local4); g.lineTo(_local5, _local3); g.lineTo(_local6, _local3); g.lineTo(_local6, _local4); g.lineTo((_local8.x + _local8.width) + GAP, _local4); } g.endDraw(); if (beveled) { _local10.setASColor(lineLightColor); g.beginDraw(_local10); if (position == TOP) { g.moveTo(_local8.x - GAP, _local3 + lineThickness); g.lineTo(_local5 + lineThickness, _local3 + lineThickness); g.lineTo(_local5 + lineThickness, _local4 - lineThickness); g.moveTo(_local5, _local4 + lineThickness); g.lineTo(_local6 + lineThickness, _local4 + lineThickness); g.lineTo(_local6 + lineThickness, _local3); g.moveTo(_local6 - lineThickness, _local3 + lineThickness); g.lineTo((_local8.x + _local8.width) + GAP, _local3 + lineThickness); } else { g.moveTo(_local8.x - GAP, _local4 + lineThickness); g.lineTo(_local5, _local4 + lineThickness); g.moveTo(_local5 + lineThickness, _local4 - lineThickness); g.lineTo(_local5 + lineThickness, _local3 + lineThickness); g.lineTo(_local6 - lineThickness, _local3 + lineThickness); g.moveTo(_local6 + lineThickness, _local3); g.lineTo(_local6 + lineThickness, _local4 + lineThickness); g.lineTo((_local8.x + _local8.width) + GAP, _local4 + lineThickness); } g.endDraw(); } } } else if (bounds.width <= ((edge * 2) + (round * 2))) { if (beveled) { g.drawRoundRect(new org.aswing.graphics.Pen(lineLightColor, lineThickness), _local5 + lineThickness, _local3 + lineThickness, _local13, _local12, Math.min(round, Math.min(_local13 / 2, _local12 / 2))); } g.drawRoundRect(_local10, _local5, _local3, _local13, _local12, Math.min(round, Math.min(_local13 / 2, _local12 / 2))); _local9.text = ""; } else { _local14.x = _local14.x + (edge + round); _local14.width = _local14.width - ((edge + round) * 2); _local16 = org.aswing.ASWingUtils.layoutText(font, _local16, _local17, _local18, _local14, _local8); var _local7 = round; if (beveled) { _local10.setASColor(lineLightColor); g.beginDraw(_local10); var _local11 = lineThickness; _local5 = _local5 + _local11; _local6 = _local6 + _local11; _local3 = _local3 + _local11; _local4 = _local4 + _local11; if (position == TOP) { g.moveTo(_local8.x - GAP, _local3); g.lineTo(_local5 + _local7, _local3); g.curveTo(_local5, _local3, _local5, _local3 + _local7); g.lineTo(_local5, _local4 - _local7); g.curveTo(_local5, _local4, _local5 + _local7, _local4); g.lineTo(_local6 - _local7, _local4); g.curveTo(_local6, _local4, _local6, _local4 - _local7); g.lineTo(_local6, _local3 + _local7); g.curveTo(_local6, _local3, _local6 - _local7, _local3); g.lineTo((_local8.x + _local8.width) + GAP, _local3); } else { g.moveTo((_local8.x + _local8.width) + GAP, _local4); g.lineTo(_local6 - _local7, _local4); g.curveTo(_local6, _local4, _local6, _local4 - _local7); g.lineTo(_local6, _local3 + _local7); g.curveTo(_local6, _local3, _local6 - _local7, _local3); g.lineTo(_local5 + _local7, _local3); g.curveTo(_local5, _local3, _local5, _local3 + _local7); g.lineTo(_local5, _local4 - _local7); g.curveTo(_local5, _local4, _local5 + _local7, _local4); g.lineTo(_local8.x - GAP, _local4); } g.endDraw(); _local5 = _local5 - _local11; _local6 = _local6 - _local11; _local3 = _local3 - _local11; _local4 = _local4 - _local11; } _local10.setASColor(lineColor); g.beginDraw(_local10); if (position == TOP) { g.moveTo(_local8.x - GAP, _local3); g.lineTo(_local5 + _local7, _local3); g.curveTo(_local5, _local3, _local5, _local3 + _local7); g.lineTo(_local5, _local4 - _local7); g.curveTo(_local5, _local4, _local5 + _local7, _local4); g.lineTo(_local6 - _local7, _local4); g.curveTo(_local6, _local4, _local6, _local4 - _local7); g.lineTo(_local6, _local3 + _local7); g.curveTo(_local6, _local3, _local6 - _local7, _local3); g.lineTo((_local8.x + _local8.width) + GAP, _local3); } else { g.moveTo((_local8.x + _local8.width) + GAP, _local4); g.lineTo(_local6 - _local7, _local4); g.curveTo(_local6, _local4, _local6, _local4 - _local7); g.lineTo(_local6, _local3 + _local7); g.curveTo(_local6, _local3, _local6 - _local7, _local3); g.lineTo(_local5 + _local7, _local3); g.curveTo(_local5, _local3, _local5, _local3 + _local7); g.lineTo(_local5, _local4 - _local7); g.curveTo(_local5, _local4, _local5 + _local7, _local4); g.lineTo(_local8.x - GAP, _local4); } g.endDraw(); } _local9.text = _local16; org.aswing.ASWingUtils.applyTextFontAndColor(_local9, font, color); _local9._x = _local8.x; _local9._y = _local8.y; } function getBorderInsetsImp(c, bounds) { var _local2 = Math.ceil(((lineThickness * 2) + round) - (round * 0.707106781186547)); var _local3 = new org.aswing.Insets(_local2, _local2, _local2, _local2); if (position == BOTTOM) { _local3.bottom = _local3.bottom + Math.ceil(textFieldExtent.getTextFieldHeight()); } else { _local3.top = _local3.top + Math.ceil(textFieldExtent.getTextFieldHeight()); } return(_local3); } function uninstallBorderImp(com) { var _local2 = TextField(textFields.remove(com.getID())); _local2.removeTextField(); } function getFont() { return(font); } function setFont(font) { if (this.font != font) { if (font == null) { font = DEFAULT_FONT; } this.font = font; textFieldExtent = font.getASTextFormat().getTextExtent(title); } } function getLineColor() { return(lineColor); } function setLineColor(lineColor) { this.lineColor = lineColor; } function getLineLightColor() { return(lineLightColor); } function setLineLightColor(lineLightColor) { this.lineLightColor = lineLightColor; } function isBeveled() { return(beveled); } function setBeveled(b) { beveled = b; } function getEdge() { return(edge); } function setEdge(edge) { this.edge = edge; } function getTitle() { return(title); } function setTitle(title) { if (this.title != title) { this.title = title; textFieldExtent = font.getASTextFormat().getTextExtent(title); } } function getRound() { return(round); } function setRound(round) { this.round = round; } function getColor() { return(color); } function setColor(color) { this.color = color; } function getAlign() { return(align); } function setAlign(align) { this.align = align; } function getPosition() { return(position); } function setPosition(position) { this.position = position; } function getLineThickness() { return(lineThickness); } function setLineThickness(lineThickness) { this.lineThickness = lineThickness; } static var DEFAULT_LINE_THICKNESS = 1; static var TOP = org.aswing.ASWingConstants.TOP; static var BOTTOM = org.aswing.ASWingConstants.BOTTOM; static var CENTER = org.aswing.ASWingConstants.CENTER; static var LEFT = org.aswing.ASWingConstants.LEFT; static var RIGHT = org.aswing.ASWingConstants.RIGHT; static var GAP = 1; }
Symbol 550 MovieClip [__Packages.edu.colorado.phet.flashcommon.StatisticsDetailsDialog] Frame 0
class edu.colorado.phet.flashcommon.StatisticsDetailsDialog extends edu.colorado.phet.flashcommon.CommonDialog { var window, common, textArea, detailsScroll, okButton, displayMe, tabHandler, manualClose; function StatisticsDetailsDialog () { super("statisticsDetails", _level0.common.strings.get("PrivacyDetails", "Privacy Details")); window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local3 = ""; _local3 = _local3 + (common.strings.get("SentInformation", "The information shown below will be sent to PhET when the simulation starts.") + "\n\n"); _local3 = _local3 + "<font size=\"12\">"; _local3 = _local3 + common.statistics.sessionStartMessage(true); _local3 = _local3 + "</font>"; textArea = new org.aswing.JTextArea(_local3, 0, 40); textArea.setHtml(true); textArea.setEditable(false); textArea.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); textArea.setWordWrap(true); textArea.setWidth(300); textArea.setBackground(common.backgroundColor); textArea.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 5, 5))); detailsScroll = new org.aswing.JScrollPane(textArea, org.aswing.JScrollPane.SCROLLBAR_AS_NEEDED, org.aswing.JScrollPane.SCROLLBAR_AS_NEEDED); detailsScroll.setPreferredSize(400, 300); detailsScroll.setBorder(new org.aswing.border.EmptyBorder(new org.aswing.border.LineBorder(null, org.aswing.ASColor.__get__GRAY(), 1, 0), new org.aswing.Insets(5, 5, 5, 5))); window.getContentPane().append(detailsScroll); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local4 = new org.aswing.JPanel(new org.aswing.BoxLayout()); okButton = new org.aswing.JButton(common.strings.get("OK", "OK")); okButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, okClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(okButton, _local4); window.getContentPane().append(_local4); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); displayMe(); } function setupTabHandler() { var _local2 = new edu.colorado.phet.flashcommon.TabEntry(textArea.trigger_mc, edu.colorado.phet.flashcommon.TabHandler.HIGHLIGHT_LOCAL, detailsScroll.getVerticalScrollBar().target_mc); tabHandler.addEntry(_local2); tabHandler.registerKey(textArea.trigger_mc, 34, function () { _level0.statisticsDetailsDialog.scroll(10); }); tabHandler.registerKey(textArea.trigger_mc, 33, function () { _level0.statisticsDetailsDialog.scroll(-10); }); tabHandler.registerKey(textArea.trigger_mc, 38, function () { _level0.statisticsDetailsDialog.scroll(-2); }); tabHandler.registerKey(textArea.trigger_mc, 40, function () { _level0.statisticsDetailsDialog.scroll(2); }); tabHandler.addAsWingButton(okButton); } function scroll(amount) { var _local2 = detailsScroll.getViewport(); _local2.setViewPosition(_local2.getViewPosition().move(0, amount)); } function okClicked(src) { manualClose(); } }
Symbol 551 MovieClip [__Packages.edu.colorado.phet.flashcommon.UpdateInstallationDetailsDialog] Frame 0
class edu.colorado.phet.flashcommon.UpdateInstallationDetailsDialog extends edu.colorado.phet.flashcommon.CommonDialog { var window, common, okButton, displayMe, tabHandler, manualClose; function UpdateInstallationDetailsDialog () { super("updateInstallationDetails", _level0.common.strings.get("NewVersionAvailable", "New Version Available")); window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local4 = ""; _local4 = _local4 + (common.strings.get("InstallerInfo1", "Keeping your PhET Offline Website Installation up-to-date ensures that you have access to the newest PhET simulations and supplemental materials.") + "\n\n"); _local4 = _local4 + common.strings.get("InstallerInfo2", "If you choose to get the newest version, a web browser will open to the PhET website, where you can download the PhET Offline Website Installer."); var _local3 = new org.aswing.JTextArea(_local4, 0, 0); _local3.setHtml(true); _local3.setEditable(false); _local3.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); _local3.setMultiline(true); _local3.setBackground(common.backgroundColor); _local3.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 5, 5))); _local3.setWidth(250); _local3.setWordWrap(true); window.getContentPane().append(_local3); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local6 = new org.aswing.JPanel(new org.aswing.FlowLayout()); okButton = new org.aswing.JButton(common.strings.get("Close", "Close")); okButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, closeClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(okButton, _local6); var _local5 = new org.aswing.JPanel(new org.aswing.CenterLayout()); _local5.append(_local6); window.getContentPane().append(_local5); displayMe(); } function setupTabHandler() { tabHandler.addAsWingButton(okButton); } function closeClicked(src) { manualClose(); } }
Symbol 552 MovieClip [__Packages.edu.colorado.phet.flashcommon.UpdateInstallationDialog] Frame 0
class edu.colorado.phet.flashcommon.UpdateInstallationDialog extends edu.colorado.phet.flashcommon.CommonDialog { var newInstallerTimestamp, newInstallerAskLaterDays, window, common, yesButton, askLaterButton, tellMoreButton, displayMe, tabHandler, manualClose; function UpdateInstallationDialog (installerTimestamp, installerAskLaterDays) { super("updateInstallation", _level0.common.strings.get("NewVersionAvailable", "New Version Available")); newInstallerTimestamp = installerTimestamp; newInstallerAskLaterDays = installerAskLaterDays; window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local4 = ""; _local4 = _local4 + (common.strings.get("InstallationDated", "Your PhET Offline Website Installation is dated {0}.", [edu.colorado.phet.flashcommon.FlashCommon.dateString(edu.colorado.phet.flashcommon.FlashCommon.dateOfSeconds(common.getInstallerCreationTimestamp()))]) + newline); _local4 = _local4 + (common.strings.get("InstallationNewer", "A newer version is available, dated {0}.", [edu.colorado.phet.flashcommon.FlashCommon.dateString(edu.colorado.phet.flashcommon.FlashCommon.dateOfSeconds(newInstallerTimestamp))]) + newline); _local4 = _local4 + newline; _local4 = _local4 + common.strings.get("InstallerAsk", "Would you like to get the latest PhET Offline Website Installer?"); var _local3 = new org.aswing.JTextArea(_local4, 0, 0); _local3.setHtml(true); _local3.setEditable(false); _local3.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); _local3.setWordWrap(true); _local3.setMultiline(true); _local3.setBackground(common.backgroundColor); _local3.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 5, 5))); _local3.setWidth(350); window.getContentPane().append(_local3); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local5 = new org.aswing.JPanel(new org.aswing.FlowLayout()); yesButton = new org.aswing.JButton(common.strings.get("Yes!", "Yes!")); yesButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, yesClicked)); yesButton.setForeground(org.aswing.ASColor.__get__BLUE()); yesButton.setFont(new org.aswing.ASFont(org.aswing.ASFont.DEFAULT_NAME, org.aswing.ASFont.DEFAULT_SIZE + 2, true, false, false)); yesButton.setUseHandCursor(true); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(yesButton, _local5); askLaterButton = new org.aswing.JButton(common.strings.get("AskLater", "Ask me later")); askLaterButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, askLaterClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(askLaterButton, _local5); tellMoreButton = new org.aswing.JButton(common.strings.get("TellMore", "Tell me more...")); tellMoreButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, tellMoreClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(tellMoreButton, _local5); var _local6 = new org.aswing.JPanel(new org.aswing.CenterLayout()); _local6.append(_local5); window.getContentPane().append(_local6); displayMe(); } function setupTabHandler() { tabHandler.addAsWingButton(yesButton); tabHandler.addAsWingButton(askLaterButton); tabHandler.addAsWingButton(tellMoreButton); } function onClose() { super.onClose(); common.updateHandler.handleResponse(); } function yesClicked(src) { common.openExternalLink("http://phet.colorado.edu/get_phet/full_install.php"); } function askLaterClicked(src) { manualClose(); common.preferences.setInstallationAskLater(newInstallerAskLaterDays); common.updateHandler.handleResponse(); } function tellMoreClicked(src) { edu.colorado.phet.flashcommon.CommonDialog.openUpdateInstallationDetailsDialog(); } }
Symbol 553 MovieClip [__Packages.edu.colorado.phet.flashcommon.UpdateSimDialog] Frame 0
class edu.colorado.phet.flashcommon.UpdateSimDialog extends edu.colorado.phet.flashcommon.CommonDialog { var newMajorVersion, newMinorVersion, newSimAskLaterDays, newRevision, window, common, tryButton, askLaterButton, skipButton, displayMe, tabHandler, manualClose; function UpdateSimDialog (versionMajor, versionMinor, versionDev, versionRevision, simAskLaterDays) { super("updateSim", _level0.common.strings.get("NewVersionAvailable", "New Version Available")); newMajorVersion = versionMajor; newMinorVersion = versionMinor; newSimAskLaterDays = simAskLaterDays; newRevision = versionRevision; window.getContentPane().setLayout(new org.aswing.SoftBoxLayout(org.aswing.SoftBoxLayout.Y_AXIS)); var _local3 = ""; _local3 = _local3 + (common.strings.get("CurrentVersionIs", "Your current version of {0} is {1}.", [("<b>" + common.getSimTitle()) + "</b>", common.getShortVersionString()]) + newline); _local3 = _local3 + (common.strings.get("NewerVersionIs", "A newer version {0} is available.", [("(" + common.zeroPadVersion(versionMajor, versionMinor)) + ")"]) + newline); var _local8 = ("<p align='center'><font color='#880000'>" + common.strings.get("NotUpdateSim", "This simulation cannot be updated automatically.")) + "</font></p>"; _local3 = _local3 + newline; if ((common.fromFullInstallation() && ((common.updateHandler.simTimestamp + 7200) < common.updateHandler.installerTimestamp)) || (common.getSimName() == "flash-common-strings")) { _local3 = _local3 + _local8; _local3 = _local3 + newline; var _local6 = "To download a new installation containing the latest simulation, "; _local6 = _local6 + "please visit the <a href='{0}'>PhET installation page</a> for more information."; _local3 = _local3 + common.strings.get("PhETInstallation", _local6, ["asfunction:_level0.common.openExternalLink,http://phet.colorado.edu/get_phet/full_install.php"]); _local3 = _local3 + newline; } else { _local3 = _local3 + _local8; } _local3 = _local3 + newline; _local3 = _local3 + common.strings.get("UpdateOptionsAvailable", "Update options are available under <i>Preferences</i>."); var _local4 = new org.aswing.JTextArea(_local3, 0, 30); _local4.setHtml(true); _local4.setEditable(false); _local4.setCSS(edu.colorado.phet.flashcommon.FlashCommon.LINK_STYLE_SHEET); _local4.setWordWrap(true); _local4.setWidth(200); _local4.setBackground(common.backgroundColor); _local4.setBorder(new org.aswing.border.EmptyBorder(null, new org.aswing.Insets(5, 5, 5, 5))); window.getContentPane().append(_local4); window.getContentPane().append(new org.aswing.JSpacer(5, 5)); var _local5 = new org.aswing.JPanel(new org.aswing.FlowLayout()); tryButton = new org.aswing.JButton(common.strings.get("TryNow", "Try it now")); tryButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, tryClicked)); tryButton.setForeground(org.aswing.ASColor.__get__BLUE()); tryButton.setFont(new org.aswing.ASFont(org.aswing.ASFont.DEFAULT_NAME, org.aswing.ASFont.DEFAULT_SIZE + 2, true, false, false)); tryButton.setUseHandCursor(true); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(tryButton, _local5); askLaterButton = new org.aswing.JButton(common.strings.get("AskLater", "Ask me later")); askLaterButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, askLaterClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(askLaterButton, _local5); skipButton = new org.aswing.JButton(common.strings.get("PrivacySkip", "Skip this update")); skipButton.addEventListener(org.aswing.Component.ON_RELEASE, org.aswing.util.Delegate.create(this, skipClicked)); edu.colorado.phet.flashcommon.CommonButtons.padButtonAdd(skipButton, _local5); var _local7 = new org.aswing.JPanel(new org.aswing.CenterLayout()); _local7.append(_local5); window.getContentPane().append(_local7); displayMe(); } function setupTabHandler() { tabHandler.addAsWingButton(tryButton); tabHandler.addAsWingButton(askLaterButton); tabHandler.addAsWingButton(skipButton); } function askLaterClicked(src) { common.preferences.setSkippedRevision(0); common.preferences.setSimAskLater(newSimAskLaterDays); manualClose(); } function skipClicked(src) { common.preferences.setSkippedRevision(newRevision); manualClose(); } function tryClicked(src) { common.openExternalLink(common.simWebsiteURL()); } }
Symbol 554 MovieClip [__Packages.edu.colorado.phet.flashcommon.UpdateHandler] Frame 0
class edu.colorado.phet.flashcommon.UpdateHandler { var common, manual, receivedSimResponse, receivedInstallationResponse, installerRecommend, installerTimestamp, installerAskLaterDays, versionRevision, versionMajor, versionMinor, simTimestamp, versionDev, simAskLaterDays; function UpdateHandler () { common = _level0.common; manual = false; receivedSimResponse = false; receivedInstallationResponse = false; _level0.updateHandler = this; common.updateHandler = this; if (!common.preferences.areUpdatesAllowed()) { debug("UpdateHandler: not checking for updates (Preferences.areUpdatesAllowed() = false)\n"); } else { sendStartupQuery(startupQueryString(true, true)); } } function debug(str) { _level0.debug(str); } function startupQueryString(checkSim, checkInstallation) { if (!(checkSim || (checkInstallation && (common.fromFullInstallation())))) { return(undefined); } var _local2 = "<?xml version=\"1.0\"?>"; _local2 = _local2 + "<phet_info>"; if (checkSim) { _local2 = _local2 + (((((("<sim_version request_version=\"" + SIM_REQUEST_VERSION) + "\" project=\"") + common.getSimProject()) + "\" sim=\"") + common.getSimName()) + "\" />"); } if (checkInstallation && (common.fromFullInstallation())) { _local2 = _local2 + (((("<phet_installer_update request_version=\"" + INSTALLER_REQUEST_VERSION) + "\" timestamp_seconds=\"") + String(common.getInstallationTimestamp())) + "\" />"); } _local2 = _local2 + "</phet_info>"; _level0.debug(("UpdateHandler (2): Startup query:\n" + _local2) + newline); return(_local2); } function sendStartupQuery(query) { if (query === undefined) { return(undefined); } if (!common.hasFlashVars()) { debug("UpdateHandler: could not find flash vars, will not check for updates\n"); return(undefined); } System.security.allowDomain("phet.colorado.edu"); var xml = new XML(); xml.ignoreWhite = true; xml.onLoad = function (success) { if (success) { _level0.debug("UpdateHandler (2): reply successfully received\n"); _level0.debug(String(xml) + newline); _level0.debugXML = xml; hand.receivedSimResponse = false; hand.receivedInstallationResponse = false; if (xml.childNodes[0].attributes.success != "true") { _level0.debug("WARNING UpdateHandler: phet_info_response failure\n"); hand.showUpdateError(); return(undefined); } var _local3 = xml.childNodes[0].childNodes; var hand = _level0.updateHandler; for (var _local4 in _local3) { var _local2 = _local3[_local4]; var _local1 = _local2.attributes; if (_local2.nodeName == "sim_version_response") { _level0.debug("UpdateHandler (2): received sim_version_response\n"); if (_local1.success != "true") { _level0.debug("WARNING UpdateHandler: sim_version_response failure\n"); hand.showUpdateError(); continue; } if (_local1.project != hand.common.getSimProject()) { _level0.debug("WARNING UpdateHandler (2): Project does not match\n"); } if (_local1.sim != hand.common.getSimName()) { _level0.debug("WARNING UpdateHandler (2): Name does not match\n"); } hand.receivedSimResponse = true; hand.versionMajor = parseInt(_local1.version_major); hand.versionMinor = parseInt(_local1.version_minor); hand.versionDev = parseInt(_local1.version_dev); hand.versionRevision = parseInt(_local1.version_revision); hand.simTimestamp = parseInt(_local1.version_timestamp); hand.simAskLaterDays = parseInt(_local1.ask_me_later_duration_days); hand.debug((((" latest: " + hand.common.zeroPadVersion(hand.versionMajor, hand.versionMinor, hand.versionDev)) + " (") + String(hand.versionRevision)) + ")\n"); } else if (_local2.nodeName == "phet_installer_update_response") { _level0.debug("UpdateHandler (2): received phet_installer_update_response\n"); if (_local1.success != "true") { _level0.debug("WARNING UpdateHandler: phet_installer_update_response failure\n"); hand.showUpdateError(); continue; } hand.receivedInstallationResponse = true; hand.installerRecommend = _local1.recommend_update == "true"; hand.installerTimestamp = parseInt(_local1.timestamp_seconds); hand.installerAskLaterDays = parseInt(_local1.ask_me_later_duration_days); } else { _level0.debug(("WARNING UpdateHandler (2): unknown child: " + _local2.nodeName) + newline); _level0.debugLastUnknownChild = _local2; } } hand.handleResponse(); } else { _level0.debug("WARNING: UpdateHandler (2): Failure to obtain latest version information\n"); hand.showUpdateError(); } }; var _local6 = new XML(query); _local6.addRequestHeader("Content-type", "text/xml"); _local6.sendAndLoad("http://phet.colorado.edu/services/phet-info", xml); } function manualCheckSim() { debug("UpdateHandler: checking manually for sim"); manual = true; sendStartupQuery(startupQueryString(true, false)); } function manualCheckInstallation() { debug("UpdateHandler: checking manually for installation"); manual = true; sendStartupQuery(startupQueryString(false, true)); } function handleResponse() { var _local2 = false; if (receivedInstallationResponse && (common.fromFullInstallation())) { receivedInstallationResponse = false; if (installerRecommend) { if ((!manual) && (common.preferences.installationAskLaterElapsed() < 0)) { _level0.debug(("UpdateHandler: used selected ask later, installation time elapsed = " + String(common.preferences.installationAskLaterElapsed())) + newline); } else { _local2 = true; installationUpdatesAvailable(installerTimestamp, installerAskLaterDays); } } else { if (manual) { showInstallationUpToDate(); return(undefined); } handleResponse(); } } if (receivedSimResponse && (!_local2)) { receivedSimResponse = false; if (versionRevision == common.getVersionRevision()) { _level0.debug("UpdateHandler: running latest version\n"); if (manual) { showSimUpToDate(); } } else if (versionRevision < common.getVersionRevision()) { _level0.debug("WARNING UpdateHandler: running a more recent version than on the production website.\n"); if (manual) { showSimUpToDate(); } } else if ((versionMajor == undefined) || (versionMinor == undefined)) { _level0.debug("WARNING UpdateHandler: received undefined version information!\n"); if (manual) { showUpdateError(); } } else if ((!manual) && (versionRevision == common.preferences.getSkippedRevision())) { _level0.debug("UpdateHandler: used selected to skip this update\n"); } else if ((!manual) && (common.preferences.simAskLaterElapsed() < 0)) { _level0.debug(("UpdateHandler: used selected ask later, sim time elapsed = " + String(common.preferences.simAskLaterElapsed())) + newline); } else { if (common.fromFullInstallation() && ((simTimestamp + 1800) > installerTimestamp)) { _level0.debug("UpdateHandler: installer might not contain the most recent sim\n"); } simUpdatesAvailable(versionMajor, versionMinor, versionDev, versionRevision, simAskLaterDays); } } } function simUpdatesAvailable(versionMajor, versionMinor, versionDev, versionRevision, simAskLaterDays) { debug("UpdateHandler: Sim Updates Available (dialog)!\n"); edu.colorado.phet.flashcommon.CommonDialog.openUpdateSimDialog(versionMajor, versionMinor, versionDev, versionRevision, simAskLaterDays); } function installationUpdatesAvailable(installerTimestamp, installerAskLaterDays) { debug("UpdateHandler: Installation Updates Available (dialog)!\n"); edu.colorado.phet.flashcommon.CommonDialog.openUpdateInstallationDialog(installerTimestamp, installerAskLaterDays); } function showUpdateError() { if (!manual) { return(undefined); } var _local2 = ""; _local2 = _local2 + (common.strings.get("VersionError1", "An error was encountered while trying to obtain version information.") + newline); _local2 = _local2 + common.strings.get("VersionError2", "Please try again later, or visit <a href='{0}'>http://phet.colorado.edu</a>", ["asfunction:_level0.common.openExternalLink,http://phet.colorado.edu"]); edu.colorado.phet.flashcommon.CommonDialog.openMessageDialog(common.strings.get("Error", "Error"), _local2, false); } function showSimUpToDate() { if (!manual) { return(undefined); } var _local2 = ""; _local2 = _local2 + common.strings.get("MostCurrentVersion", "You have the most current version ({0}) of {1}.", [common.getVersionString(), common.getSimTitle()]); edu.colorado.phet.flashcommon.CommonDialog.openMessageDialog(common.strings.get("UpToDate", "Up To Date"), _local2, true); } function showInstallationUpToDate() { if (!manual) { return(undefined); } var _local2 = ""; _local2 = _local2 + common.strings.get("MostCurrentVersion", "You have the most current version ({0}) of {1}.", [edu.colorado.phet.flashcommon.FlashCommon.dateString(edu.colorado.phet.flashcommon.FlashCommon.dateOfSeconds(common.getInstallerCreationTimestamp())), "PhET Offline Website Installer"]); edu.colorado.phet.flashcommon.CommonDialog.openMessageDialog(common.strings.get("UpToDate", "Up To Date"), _local2, true); } static var SIM_REQUEST_VERSION = "1"; static var INSTALLER_REQUEST_VERSION = "1"; }
Symbol 555 MovieClip [__Packages.edu.colorado.phet.flashcommon.Statistics] Frame 0
class edu.colorado.phet.flashcommon.Statistics { var messageError, common; function Statistics () { messageError = false; common = _level0.common; _level0.statistics = this; common.statistics = this; } function debug(str) { _level0.debug(str); } function fieldTranslate(field) { var _local4 = common.strings.get("StatisticsField-" + field, field); if (_local4 != field) { return(_local4); } debug(("WARNING Statistics: could not translate " + field) + newline); var _local3 = {message_type:"Message type", message_version:"Message version", sim_type:"Simulation type", sim_project:"Project name", sim_name:"Simulation name", sim_major_version:"Simulation version (major)", sim_minor_version:"Simulation version (minor)", sim_dev_version:"Simulation version (dev)", sim_revision:"Simulation version (revision)", sim_version_timestamp:"Simulation version (timestamp)", sim_distribution_tag:"Simulation version (distribution)", sim_locale_language:"Language", sim_locale_country:"Country", sim_deployment:"Deployment type", sim_dev:"Is this a developer version?", sim_total_sessions:"Total number of times this simulation has been run", sim_sessions_since:"Number of times this simulation has been run since last online", host_flash_os:"Operating system and name", host_flash_version:"Flash Player version", host_locale_language:"Host language", host_flash_time_offset:"Timezone", host_flash_accessibility:"Using an accessible device?", host_flash_domain:"Simulation domain", user_preference_file_creation_time:"Preferences file creation time", user_total_sessions:"Total number of times all simulations have been run", user_installation_timestamp:"PhET installation timestamp"}; if (_local3[field] != undefined) { return(_local3[field]); } debug(("WARNING Statistics: could not find default for " + field) + newline); return(field); } function fieldFormat(field, val, humanReadable) { if (humanReadable) { return((fieldTranslate(field) + " ") + unescape(messageEscape(val) + newline)); } return(((field + " = '") + messageEscape(val)) + "' \n"); } function sessionStartMessage(humanReadable) { var _local2 = ""; common.preferences.load(); _local2 = _local2 + fieldFormat("message_type", "session", humanReadable); _local2 = _local2 + fieldFormat("message_version", "0", humanReadable); _local2 = _local2 + fieldFormat("sim_type", "flash", humanReadable); _local2 = _local2 + fieldFormat("sim_project", common.getSimProject(), humanReadable); _local2 = _local2 + fieldFormat("sim_name", common.getSimName(), humanReadable); _local2 = _local2 + fieldFormat("sim_major_version", common.getVersionMajor(), humanReadable); _local2 = _local2 + fieldFormat("sim_minor_version", common.getVersionMinor(), humanReadable); _local2 = _local2 + fieldFormat("sim_dev_version", common.getVersionDev(), humanReadable); _local2 = _local2 + fieldFormat("sim_revision", common.getVersionRevision(), humanReadable); _local2 = _local2 + fieldFormat("sim_version_timestamp", common.getVersionTimestamp(), humanReadable); _local2 = _local2 + fieldFormat("sim_locale_language", common.getLanguage(), humanReadable); _local2 = _local2 + fieldFormat("sim_locale_country", common.getCountry(), humanReadable); _local2 = _local2 + fieldFormat("sim_sessions_since", common.preferences.visitsSince(), humanReadable); _local2 = _local2 + fieldFormat("sim_total_sessions", common.preferences.visitsEver(), humanReadable); _local2 = _local2 + fieldFormat("sim_deployment", common.getDeployment(), humanReadable); _local2 = _local2 + fieldFormat("sim_distribution_tag", common.getDistributionTag(), humanReadable); _local2 = _local2 + fieldFormat("sim_dev", String(common.getDev()), humanReadable); _local2 = _local2 + fieldFormat("host_flash_os", System.capabilities.os, humanReadable); _local2 = _local2 + fieldFormat("host_flash_version", System.capabilities.version, humanReadable); _local2 = _local2 + fieldFormat("host_locale_language", System.capabilities.language, humanReadable); _local2 = _local2 + fieldFormat("host_flash_time_offset", String(new Date().getTimezoneOffset()), humanReadable); _local2 = _local2 + fieldFormat("host_flash_accessibility", String(System.capabilities.hasAccessibility), humanReadable); _local2 = _local2 + fieldFormat("host_flash_domain", new LocalConnection().domain(), humanReadable); _local2 = _local2 + fieldFormat("user_preference_file_creation_time", common.preferences.getUserTime(), humanReadable); _local2 = _local2 + fieldFormat("user_installation_timestamp", common.getInstallationTimestamp(), humanReadable); _local2 = _local2 + fieldFormat("user_total_sessions", common.preferences.getUserTotalSessions(), humanReadable); common.preferences.unload(); return(_local2); } function sendSessionStart() { common.preferences.load(); if (!common.preferences.areStatisticsMessagesAllowed()) { debug("Statistics: cannot send session start message: statistics messages disabled\n"); common.preferences.unload(); return(undefined); } if (!common.preferences.isPrivacyOK()) { debug("Statistics: cannot send session start message: have not accepted agreement yet\n"); common.preferences.unload(); return(undefined); } if (!common.hasFlashVars()) { debug("Statistics: flash vars were not detected, will not send message\n"); common.preferences.unload(); return(undefined); } common.preferences.unload(); debug("Statistics: sending session start message\n"); var _local3 = ("<?xml version=\"1.0\"?><submit_message><statistics_message " + sessionStartMessage(false)) + " /></submit_message>"; var _local2 = new XML(_local3); _local2.addRequestHeader("Content-type", "text/xml"); sendXML(_local2); } function sendXML(xml) { if (messageError) { return(undefined); } xml.contentType = "text/xml"; var reply = new XML(); _level0.statisticsReply = reply; reply.ignoreWhite = true; reply.onLoad = function (success) { if (success) { _level0.debug("Statistics: message received:\n"); _level0.debug(reply.toString() + newline); var _local3 = false; var _local5 = reply.childNodes[0]; if (_local5.attributes.success == "true") { var _local2 = _local5.childNodes; for (var _local4 in _local2) { var _local1 = _local2[_local4]; if (_local1.nodeName == "statistics_message_response") { if (_local1.attributes.success == "true") { _level0.debug("Statistics: statistics_message_response found\n"); _local3 = true; } else { _level0.debug("Statistics: statistics_message_response FAILURE\n"); } } } } else { _level0.debug("Statistics: phet_info_response FAILURE\n"); } if (_local3) { _level0.debug("Statistics: Message Handshake Successful\n"); _level0.common.preferences.resetSince(); } else { _level0.debug("WARNING: Statistics: Message Handshake Failure\n"); } } else { _level0.debug("Statistics: message error!\n"); } }; xml.sendAndLoad("http://phet.colorado.edu/statistics/submit_message.php", reply); } function messageEscape(val) { var _local3; if (typeof(val) == "string") { _local3 = val; } else if (typeof(val) == "number") { _local3 = String(val); } else { if (typeof(val) == "null") { return(edu.colorado.phet.flashcommon.FlashCommon.NULLVAL); } debug(((("WARNING: Statistics.messageEscape invalid type: " + typeof(val)) + " = ") + String(val)) + newline); _local3 = String(val); } if (((_local3 == null) || (_local3 == undefined)) || (common.isPlaceholder(_local3))) { return(edu.colorado.phet.flashcommon.FlashCommon.NULLVAL); } return(escape(_local3)); } }
Symbol 556 MovieClip [__Packages.edu.colorado.phet.flashcommon.KeyboardHandler] Frame 0
class edu.colorado.phet.flashcommon.KeyboardHandler { var common, tabHandlers, mainTabHandler, currentIndex; function KeyboardHandler () { common = _level0.common; tabHandlers = new Array(); mainTabHandler = new edu.colorado.phet.flashcommon.TabHandler(true); tabHandlers.push(mainTabHandler); currentIndex = 0; _level0.keyboardHandler = this; Key.addListener(this); } function debug(str) { _level0.debug(str); } function getCurrentTabHandler() { return(tabHandlers[currentIndex]); } function getTabHandlerIndex(handler) { var _local2 = 0; while (_local2 < tabHandlers.length) { if (tabHandlers[_local2] == handler) { return(_local2); } _local2++; } return(-1); } function addTabHandler(handler) { _level0.debug(("KeyboardHandler addTabHandler( " + handler.toString()) + " )\n"); tabHandlers.push(handler); } function removeTabHandler(handler) { _level0.debug(("KeyboardHandler removeTabHandler( " + handler.toString()) + " )\n"); var _local2 = getTabHandlerIndex(handler); if (_local2 == -1) { return(undefined); } var _local3 = getCurrentTabHandler() == handler; if (_local3) { handler.onRemoveFocus(); } tabHandlers.splice(_local2, 1); if (currentIndex >= _local2) { currentIndex--; } if (_local3) { getCurrentTabHandler().onAddFocus(); } } function setTabHandler(newHandler) { _level0.debug(("KeyboardHandler setTabHandler( " + newHandler.toString()) + " )\n"); if (newHandler == getCurrentTabHandler()) { return(undefined); } getCurrentTabHandler().onRemoveFocus(); var _local3 = getTabHandlerIndex(newHandler); if (_local3 == -1) { addTabHandler(newHandler); _local3 = getTabHandlerIndex(newHandler); } currentIndex = _local3; newHandler.onAddFocus(); } function onKeyDown() { getCurrentTabHandler().onKeyDown(); } function onKeyUp() { getCurrentTabHandler().onKeyUp(); } }
Symbol 557 MovieClip [__Packages.edu.colorado.phet.flashcommon.Inspector] Frame 0
class edu.colorado.phet.flashcommon.Inspector { var mc, common, hits, inputText; function Inspector () { mc = _level0.createEmptyMovieClip("inspector", 105849); common = _level0.common; Key.addListener(this); _level0.inspector = this; _level0.inspect = inspect; _level0.upLevel = upLevel; mc._x = 150; mc.beginFill(16777215); mc._alpha = 50; mc.moveTo(0, 0); mc.lineTo(200, 0); mc.lineTo(200, 50); mc.lineTo(0, 50); mc.endFill(); mc._visible = false; hits = mc.createEmptyMovieClip("hits", 0); hits.beginFill(16777215); hits.moveTo(0, 40); hits.lineTo(200, 40); hits.lineTo(200, 50); hits.lineTo(0, 50); hits.endFill(); hits.onPress = function () { var _local1; if (_level0.inspector.inputText.text == "") { _local1 = _level0; } else { var _local15 = _level0.inspector.inputText.text; var _local5 = _local15.split("."); _local1 = _level0; var _local3 = 0; while (_local3 < _local5.length) { _local1 = _local1[_local5[_local3]]; _local3++; } } var _local6 = ""; _local6 = _local6 + "<font size=\"8\" color=\"#000000\">"; _local6 = _local6 + (("At: <font color=\"#00bb00\">_level0." + _level0.inspector.inputText.text) + "</font>\n"); if (_level0.inspector.inputText.text != "") { _local6 = _local6 + "<font color=\"#FF0000\"><a href=\"asfunction:_level0.upLevel,boo\">... (up one level)</a></font>\n"; } _local6 = _local6 + newline; var _local7 = ""; var _local11 = ""; var _local9 = ""; var _local4 = ""; var _local8 = ""; var _local13 = ""; var _local12 = ""; var _local10 = ""; for (var _local14 in _local1) { var _local2 = typeof(_local1[_local14]); if (_local2 == "object") { if (TextField.prototype.isPrototypeOf(_local1[_local14])) { _local2 = "textfield"; } if (Button.prototype.isPrototypeOf(_local1[_local14])) { _local2 = "button"; } if (Array.prototype.isPrototypeOf(_local1[_local14])) { _local2 = "array"; } } switch (_local2) { case "movieclip" : _local7 = _local7 + (((((((((("<a href=\"asfunction:_level0.inspect," + _local14) + "\">") + _local14) + " : <font color=\"#aa00aa\">") + typeof(_local1[_local14])) + "</font></a> [") + _level0.inspector.countChildren(_local1, _local14)) + "] ") + String(_local1[_local14])) + newline); break; case "button" : _local11 = _local11 + (((((((("<a href=\"asfunction:_level0.inspect," + _local14) + "\">") + _local14) + " : <font color=\"#777700\">") + "button") + "</font></a> [") + _level0.inspector.countChildren(_local1, _local14)) + "]\n"); break; case "textfield" : _local9 = _local9 + (((((((("<a href=\"asfunction:_level0.inspect," + _local14) + "\">") + _local14) + " : <font color=\"#aa0000\">") + "textfield") + "</font></a> [") + _level0.inspector.countChildren(_local1, _local14)) + "]\n"); break; case "array" : _local4 = _local4 + (((((((("<a href=\"asfunction:_level0.inspect," + _local14) + "\">") + _local14) + " : <font color=\"#00aa66\">") + "array") + "</font></a> [") + _level0.inspector.countChildren(_local1, _local14)) + "]\n"); break; case "object" : _local4 = _local4 + (((((((("<a href=\"asfunction:_level0.inspect," + _local14) + "\">") + _local14) + " : <font color=\"#0000aa\">") + typeof(_local1[_local14])) + "</font></a> [") + _level0.inspector.countChildren(_local1, _local14)) + "]\n"); break; case "string" : _local8 = _local8 + (((((_local14 + " : ") + typeof(_local1[_local14])) + " = <font color=\"#006600\">\"") + _level0.inspector.fixString(_local1[_local14])) + "\"</font>\n"); break; case "boolean" : _local13 = _local13 + (((((_local14 + " : ") + typeof(_local1[_local14])) + " = ") + String(_local1[_local14])) + newline); break; case "number" : _local12 = _local12 + (((((_local14 + " : ") + typeof(_local1[_local14])) + " = <font color=\"#004477\">") + String(_local1[_local14])) + "</font>\n"); break; default : _local10 = _local10 + (((_local14 + " : ") + typeof(_local1[_local14])) + newline); } } _local6 = _local6 + (((((((_local7 + _local11) + _local9) + _local4) + _local12) + _local13) + _local8) + _local10); _local6 = _local6 + "</font>"; _level0.debugs.htmlText = _local6; }; inputText = mc.createTextField("inputText", mc.getNextHighestDepth(), 0, 0, 200, 40); inputText.type = "input"; inputText.border = true; } function debug(str) { _level0.debug(str); } function onKeyDown() { if (!common.getDev()) { return(undefined); } if (((Key.getCode() == 34) || (Key.getCode() == 122)) && (Key.isDown(16))) { _level0.inspector.hits.onPress(); } } function fixString(str) { var _local2 = ""; var _local1 = 0; while (_local1 < str.length) { switch (str.charAt(_local1)) { case "<" : _local2 = _local2 + "&lt;"; break; case ">" : _local2 = _local2 + "&gt;"; break; default : _local2 = _local2 + str.charAt(_local1); } _local1++; } return(_local2); } function countChildren(ob, str) { var _local1 = 0; for (var _local4 in ob[str]) { _local1 = _local1 + 1; } return(String(_local1)); } function upLevel(toss) { var _local4 = _level0.inspector.inputText.text; var _local3 = _local4.split("."); var _local2 = ""; var _local1 = 0; while (_local1 < (_local3.length - 1)) { if (_local1 > 0) { _local2 = _local2 + "."; } _local2 = _local2 + _local3[_local1]; _local1++; } _level0.inspector.inputText.text = _local2; _level0.inspector.hits.onPress(); } function inspect(str) { if (_level0.inspector.inputText.text == "") { _level0.inspector.inputText.text = str; } else { _level0.inspector.inputText.text = _level0.inspector.inputText.text + ("." + str); } _level0.inspector.hits.onPress(); } }
Symbol 558 MovieClip [__Packages.edu.colorado.phet.flashcommon.SoftwareAgreement] Frame 0
class edu.colorado.phet.flashcommon.SoftwareAgreement { function SoftwareAgreement () { } static var agreementText = "<p align=\"center\"><font size=\"12pt\" style=\"font-size:14\"><b>PhET SOFTWARE AGREEMENT</b></font><br><font size=\"10pt\" style=\"font-size:12\">University of Colorado</font></p><br><font size=\"10pt\" style=\"font-size:12\">In this document:<br>&nbsp;&nbsp;I.&nbsp;&nbsp;Software License Options<br>&nbsp;&nbsp;&nbsp;&nbsp;A.&nbsp;&nbsp;Option A: Creative Commons - Attribution (executables only)<br>&nbsp;&nbsp;&nbsp;&nbsp;B.&nbsp;&nbsp;Option B: Creative Commons - GNU GPL (executables and source code).<br>&nbsp;&nbsp;&nbsp;&nbsp;C.&nbsp;&nbsp;Attribution<br>&nbsp;&nbsp;&nbsp;&nbsp;D.&nbsp;&nbsp;Donations<br>&nbsp;&nbsp;&nbsp;&nbsp;E.&nbsp;&nbsp;Third Party Software Credits<br>&nbsp;&nbsp;&nbsp;&nbsp;F.&nbsp;&nbsp;Alternative Licensing Options<br>&nbsp;&nbsp;II.&nbsp;&nbsp;Privacy Policy<br>&nbsp;&nbsp;&nbsp;&nbsp;A.&nbsp;&nbsp;Commitment to Individual Privacy<br>&nbsp;&nbsp;&nbsp;&nbsp;B.&nbsp;&nbsp;Information Collected<br>&nbsp;&nbsp;&nbsp;&nbsp;C.&nbsp;&nbsp;Information Security<br>&nbsp;&nbsp;&nbsp;&nbsp;D.&nbsp;&nbsp;Information Sharing<br>&nbsp;&nbsp;&nbsp;&nbsp;E.&nbsp;&nbsp;Colorado Open Records Act<br>&nbsp;&nbsp;&nbsp;&nbsp;F.&nbsp;&nbsp;Setting User Preferences<br>&nbsp;&nbsp;III.&nbsp;&nbsp;Disclaimer<br>&nbsp;&nbsp;IV.&nbsp;&nbsp;Contact Us<br>&nbsp;&nbsp;V.&nbsp;&nbsp;Appendix A: Creative Commons Attribution 3.0 License (full text) <br>&nbsp;&nbsp;VI.&nbsp;&nbsp;Appendix B: GNU General Public License (full text) <br><br><font size=\"12pt\" style=\"font-size:14\"><b><u>I. SOFTWARE LICENSE OPTIONS</u></b></font><br><br>The PhET Interactive Simulations Project at the University of Colorado (PhET) distributes these simulations under the Creative Commons-Attribution 3.0 license and the Creative Commons GNU General Public License as detailed below. The user is responsible for choosing which of the two licensing options will govern their use of these simulations.<br><br>Both license options require attributing the work to:<br>PhET Interactive Simulations<br>University of Colorado<br><a href=\"http://phet.colorado.edu\">http://phet.colorado.edu</a>.<br><br>If your use includes redistribution of the simulations, please let us know! This type of information is very useful when writing proposals for future funding.<br><br>Please consider contributing a tax-deductible donation to PhET to help keep the project going.<br><br>Contact PhET at <a href=\"mailto:phethelp@colorado.edu\">phethelp@colorado.edu</a>.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>A. <u>OPTION A: CREATIVE COMMONS - ATTRIBUTION</u></b></font><br><br>The <b>executable</b> versions of all simulations by <a href=\"http://phet.colorado.edu\">PhET Interactive Simulations, University of Colorado</a> (the *.jar files, the *.jnlp files, the *.swf files) are licensed under a <a href=\"http://creativecommons.org/licenses/by/3.0/us/\">Creative Commons Attribution 3.0 United States License</a>, with the exception of the following simulations which are only released under CC - GNU GPL: <br>Band Structure Simulation<br>Double Wells and Covalent Bonds Simulation<br>Quantum Bound States Simulation<br>Quantum Tunneling and Wave Packets Simulation<br>and any additional simulations listed at <a href=\"http://phet.colorado.edu/about/licensing.php\">http://phet.colorado.edu/about/licensing.php</a>.<br><br>The full text of the Creative Commons Attribution license appears in Section V Appendix A.<br><br><table><tr><td width=\"88\"><img src=\"image001.gif\" alt=\"Creative Commons Attribution License Logo\"></img></td></tr></table><br><i>What does this mean?</i><br>The interactive simulations developed by PhET Interactive Simulations (with exceptions listed above) may be freely used and/or redistributed by third parties (e.g. students, educators, school districts, museums, publishers, vendors, etc.). Non-commercial or commercial use is allowed. All uses require attribution of the work as described in the ATTRIBUTION section.<br>Parties wishing to modify the source code must use Option B.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>B. <u>OPTION B: CREATIVE COMMONS - GNU GENERAL PUBLIC LICENSE</u></b></font><br><br>The <b>source code</b> and <b>executable</b> versions of all simulations by <a href=\"http://phet.colorado.edu\">PhET Interactive Simulations, University of Colorado</a> are licensed under a <a href=\"http://creativecommons.org/licenses/GPL/2.0/\">Creative Commons GNU General Public License</a>.<br><br>The full text of the GNU General Public License appears in Section VI Appendix B.<br><br><table><tr><td width=\"88\"><img src=\"image002.gif\" alt=\"Creative Commons GNU GPL Logo\"></img></td></tr></table><br><i>What does this mean?</i><br>The interactive simulations developed by PhET Interactive Simulations may be freely used and/or redistributed by third parties (e.g. students, educators, school districts, museums, publishers, vendors, etc.). Non-commercial or commercial use is allowed. All uses require attribution of the work as described in the ATTRIBUTION section.<br>In addition, the source code for all PhET simulations is available for use and/or modification. For directions about how to access the source code, go to: <a href=\"http://phet.colorado.edu/about/source-code.php\">http://phet.colorado.edu/about/source-code.php</a>. Anyone can have access to the source code and make modifications. The source code for any changes someone makes to the software must, in turn, be made publicly available by the party that makes the changes.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>C. <u>ATTRIBUTION</u></b></font><br><br>Both license options require attributing the work to:<br>PhET Interactive Simulations<br>University of Colorado<br><a href=\"http://phet.colorado.edu\">http://phet.colorado.edu</a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>D. <u>DONATIONS</u></b></font><br><br>PhET needs ongoing donations and grant funding in order to support the project, continue the development of new simulations, and maintain existing simulations.<br><br>If you find these simulations useful, and especially if your use is commercial, please consider contributing a tax-deductible donation to PhET to help keep the project going. For more information, email <a href=\"mailto:phethelp@colorado.edu\">phethelp@colorado.edu</a> or visit <a href=\"http://phet.colorado.edu/contribute/index.php\">http://phet.colorado.edu/contribute/index.php</a>.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>E. <u>THIRD PARTY SOFTWARE CREDITS</u></b></font><br><br>PhET's simulations use third-party software. A complete list of third-party software used, the developers, and the associated licenses is available from within each simulation. In Java, from the Help -> About menu, choose the Credits button. In Flash, open the dialog using the About button, and then choose the credits button.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>F. <u>ALTERNATIVE LICENSING OPTIONS</u></b></font><br><br>Permissions beyond the scope of this license may be available at <a href=\"http://phet.colorado.edu\">http://phet.colorado.edu</a>, or by contacting us at <a href=\"mailto:phethelp@colorado.edu\">phethelp@colorado.edu</a>.<br><br><font size=\"12pt\" style=\"font-size:14\"><b><u>II. PRIVACY POLICY</u></b></font><br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>A. <u>COMMITMENT TO INDIVIDUAL PRIVACY</u></b></font><br><br>The University of Colorado and the PhET Project are committed to the protection of individual privacy, and ensuring the confidentiality of information provided by its employees, students, visitors, and resource users.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>B. <u>INFORMATION COLLECTED</u></b></font><br><br>In order to document the amount of use of PhET simulations and to provide the best services to our users, PhET collects a minimal amount of non-personally identifying information upon each simulation start-up (e.g. sim version, operating system, java version, ...).<br><br>When the simulation is launched online from http://phet.colorado.edu, information is collected via standard website statistics services.<br><br>When the simulation is launched from another source (e.g. a downloaded simulation file), a small message is sent to PhET as the simulation starts up. You can disable sending this information (see USER PREFERENCES below).<br><br>A complete list of the information sent to PhET is available in the simulations. For Java simulations, go to Files->Preferences, select the Privacy tab, and click on the \"information\" link. For Flash simulations, go to the Preferences button and click on the \"information\" link in the Privacy section.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>C. <u>INFORMATION SECURITY</u></b></font><br><br>The PhET Project has in place appropriate security measures to protect against the unauthorized use or access of its data. Such measures include internal review of data collection, storage, and processing practices and security measures, as well as physical security measures to guard against unauthorized access to systems where data is stored.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>D. <u>INFORMATION SHARING</u></b></font><br><br>Access to information collected through the use of PhET simulations is limited to those employees, contractors, and agents who need to know that information in order to operate, develop, or improve our services. The PhET Project may report a summary of this information (in aggregate) to other organizations and individuals for grant reporting purposes, or in published articles to document PhET's wide-spread use. No personally-identifying information is collected nor distributed. The PhET Project requires third parties to whom it discloses information to protect the information in accordance with this policy and applicable law. In addition, the PhET Project may disclose information to third parties when such disclosure is required or permitted by law.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>E. <u>COLORADO OPEN RECORDS ACT</u></b></font><br><br>The University of Colorado and the PhET project are subject to the Colorado Open Records Act, C.R.S. &#167; 24-72-101 <i>et seq.</i> The Colorado Open Records Act requires that all records maintained by the University and the PhET Project be available for public inspection except as otherwise provided by law. Non-personal identifying information collected by the PhET Project may be subject to public inspection and copying unless protected by state or federal law.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"12pt\" style=\"font-size:14\"><b>F. <u>SETTING USER PREFERENCES</u></b></font><br><br>For simulations launched online from http://phet.colorado.edu, no preferences options are available because the simulation sends no start-up message to PhET.<br><br>When launching PhET simulations from any other location (e.g. a downloaded offline version), users may choose to disable the feature which sends the information message to the PhET Project.<br><br>Instructions for Java simulations: From the File->Preferences menu, choose the Privacy tab and uncheck the box in front of \"Allow sending of information to PhET.\" Users will still be able to receive notices of updates, but in this case, no information is sent to the PhET Project. To disallow updates, uncheck 'Automatically check for updates' in the Updates tab.<br><br>Instructions for Flash simulations: Open the dialog using the Preferences button. Uncheck the box in front of \"Allow sending of information to PhET\" in the Privacy section. Users will still be able to receive notices of updates, but in this case, no information is sent to the PhET Project. To disallow updates, uncheck 'Automatically check for updates' in the Updates section.<br><br><font size=\"12pt\" style=\"font-size:14\"><b><u>III. DISCLAIMER</u></b></font><br><br>This software and the information contained therein is provided as a public service, with the understanding that neither the University of Colorado nor the PhET project makes any warranties, either express or implied, concerning the accuracy, completeness, reliability, or suitability of this software and information.<br><br>By using this software, you assume all risks associated with such use, including but not limited to the risk of any damage to your computer, software, or data.\u00C2\u00A0 In no event shall the University or the PhET project be liable for any direct, indirect, punitive, special, incidental, or consequential damages (including, without limitation, lost revenues or profits or lost or damaged data) arising from your use of this software.<br><br><font size=\"12pt\" style=\"font-size:14\"><b><u>IV. CONTACT US</u></b></font><br><br>Please send comments, questions, or concerns regarding this software agreement to <a href=\"mailto:phethelp@colorado.edu\">phethelp@colorado.edu</a>.<br><br><br><br><font size=\"12pt\" style=\"font-size:14\"><b><u>V. APPENDIX A: CREATIVE COMMONS - ATTRIBUTION 3.0 LICENSE (full text)</u></b></font><br><br>CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN \"AS-IS\" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE (\"CCPL\" OR \"LICENSE\"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.<br><br>License<br><br>1. Definitions<br>&nbsp;&nbsp;a. \"Collective Work\" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with one or more other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License.<br>&nbsp;&nbsp;b. \"Derivative Work\" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image (\"synching\") will be considered a Derivative Work for the purpose of this License.<br>&nbsp;&nbsp;c. \"Licensor\" means the individual, individuals, entity or entities that offers the Work under the terms of this License.<br>&nbsp;&nbsp;d. \"Original Author\" means the individual, individuals, entity or entities who created the Work.<br>&nbsp;&nbsp;e. \"Work\" means the copyrightable work of authorship offered under the terms of this License.<br>&nbsp;&nbsp;f. \"You\" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.<br><br>2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws.<br><br>3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:<br>&nbsp;&nbsp;a. to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works;<br>&nbsp;&nbsp;b. to create and reproduce Derivative Works provided that any such Derivative Work, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked \"The original work was translated from English to Spanish,\" or a modification could indicate \"The original work has been modified.\";;<br>&nbsp;&nbsp;c. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works;<br>&nbsp;&nbsp;d. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works.<br>&nbsp;&nbsp;e. For the avoidance of doubt, where the Work is a musical composition:<br>&nbsp;&nbsp;&nbsp;&nbsp;i. Performance Royalties Under Blanket Licenses. Licensor waives the exclusive right to collect, whether individually or, in the event that Licensor is a member of a performance rights society (e.g. ASCAP, BMI, SESAC), via that society, royalties for the public performance or public digital performance (e.g. webcast) of the Work.<br>&nbsp;&nbsp;&nbsp;&nbsp;ii. Mechanical Rights and Statutory Royalties. Licensor waives the exclusive right to collect, whether individually or via a music rights agency or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work (\"cover version\") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions).<br>&nbsp;&nbsp;f. Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor waives the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions).<br><br>The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved.<br><br>4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:<br>&nbsp;&nbsp;a. You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of a recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. When You distribute, publicly display, publicly perform, or publicly digitally perform the Work, You may not impose any technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any credit as required by Section 4(b), as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any credit as required by Section 4(b), as requested.<br>&nbsp;&nbsp;b. If You distribute, publicly display, publicly perform, or publicly digitally perform the Work (as defined in Section 1 above) or any Derivative Works (as defined in Section 1 above) or Collective Works (as defined in Section 1 above), You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or (ii) if the Original Author and/or Licensor designate another party or parties (e.g. a sponsor institute, publishing entity, journal) for attribution (\"Attribution Parties\") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and, consistent with Section 3(b) in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., \"French translation of the Work by Original Author,\" or \"Screenplay based on original Work by Original Author\"). The credit required by this Section 4(b) may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear, if a credit for all contributing authors of the Derivative Work or Collective Work appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.<br><br>5. Representations, Warranties and Disclaimer<br>UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND ONLY TO THE EXTENT OF ANY RIGHTS HELD IN THE LICENSED WORK BY THE LICENSOR. THE LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MARKETABILITY, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.<br><br>6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.<br><br>7. Termination<br>&nbsp;&nbsp;a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works (as defined in Section 1 above) or Collective Works (as defined in Section 1 above) from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.<br>&nbsp;&nbsp;b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.<br><br>8. Miscellaneous<br>&nbsp;&nbsp;a. Each time You distribute or publicly digitally perform the Work (as defined in Section 1 above) or a Collective Work (as defined in Section 1 above), the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.<br>&nbsp;&nbsp;b. Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.<br>&nbsp;&nbsp;c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.<br>&nbsp;&nbsp;d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.<br>&nbsp;&nbsp;e. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.<br><br><br>Creative Commons Notice: Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.<br>Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark \"Creative Commons\" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License.<br>Creative Commons may be contacted at http://creativecommons.org/.<br><br><br><font size=\"12pt\" style=\"font-size:14\"><b><u>VI. APPENDIX B: GNU GENERAL PUBLIC LICENSE (full text)</u></b></font><br><br>GNU GENERAL PUBLIC LICENSE<br>Version 2, June 1991<br><br>Copyright (C) 1989, 1991 Free Software Foundation, Inc.<br>51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA<br>Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.<br><br>Preamble<br>The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.<br><br>When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.<br><br>To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.<br><br>For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.<br><br>We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.<br><br>Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.<br><br>Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.<br><br>The precise terms and conditions for copying, distribution and modification follow.<br><br><br>GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION<br><br>0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The \"Program\", below, refers to any such program or work, and a \"work based on the Program\" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term \"modification\".) Each licensee is addressed as \"you\".<br>Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.<br><br>1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.<br>You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.<br><br>2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:<br>a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.<br>b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.<br>c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)<br>These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.<br>Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.<br>In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.<br><br>3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:<br>a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,<br>b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,<br>c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)<br>The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.<br>If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.<br><br>4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.<br><br>5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.<br><br>6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.<br><br>7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.<br>If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.<br>It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.<br>This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.<br><br>8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.<br><br>9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.<br>Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and \"any later version\", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.<br><br>10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.<br><br><br>NO WARRANTY<br><br>11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.<br><br>12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.<br><br>END OF TERMS AND CONDITIONS<br><br><br>How to Apply These Terms to Your New Programs<br><br>If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.<br>To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the \"copyright\" line and a pointer to where the full notice is found.<br><br>\"<i>one line to give the program's name and a brief idea of what it does.</i><br>Copyright (C) -year- -name of author-<br>This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.<br>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<br>You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\"<br><br>Also add information on how to contact you by electronic and paper mail.<br><br>If the program is interactive, make it output a short notice like thiswhen it starts in an interactive mode:<br><br>\"Gnomovision version 69, Copyright (C) year name of author<br>Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.<br>This is free software, and you are welcome to redistribute it<br>under certain conditions; type 'show c' for details.\"<br><br>The hypothetical commands 'show w' and 'show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than 'show w' and 'show c'; they could even be mouse-clicks or menu items--whatever suits your program.<br><br>You should also get your employer (if you work as a programmer) or your school, if any, to sign a \"copyright disclaimer\" for the program, if necessary. Here is a sample; alter the names:<br><br>\"Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.<br>signature of Ty Coon, 1 April 1989<br>Ty Coon, President of Vice\"<br><br>This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser GeneralPublic License instead of this License.</font>"; }
Symbol 559 MovieClip [__Packages.ControlPanelView] Frame 0
class ControlPanelView { var model, trajectoryView, initialView, stageW, stageH, controlPanel_mc, intID; function ControlPanelView (model, trajectoryView, initialView) { this.model = model; this.trajectoryView = trajectoryView; this.initialView = initialView; stageW = Util.STAGEW; stageH = Util.STAGEH; initialize(); } function initialize() { _root.attachMovie("controlPanel", "controlPanel_mc", Util.getNextDepth()); controlPanel_mc = _root.controlPanel_mc; var _local4 = controlPanel_mc._width; var _local3 = controlPanel_mc._height; Util.setXYPosition(controlPanel_mc, stageW - (1.15 * _local4), stageH - (1.15 * _local3)); _root.attachMovie("infoPage", "infoPage_mc", Util.getNextDepth()); Util.setXYPosition(_root.infoPage_mc, stageW * 0.5, stageH * 0.5); _root.infoPage_mc._visible = false; var myView = this; controlPanel_mc.startButton_mc.onPress = function () { myView.model.startIntegration(); myView.initialView.setTextAndLabelAlpha(60); }; controlPanel_mc.stopButton_mc.onPress = function () { myView.model.stopIntegration(); }; controlPanel_mc.resetButton_mc.onPress = function () { myView.model.reset(); myView.initialView.setTextAndLabelAlpha(100); }; controlPanel_mc.helpButton_mc.onPress = function () { _root.infoPage_mc._visible = true; }; _root.infoPage_mc.backButton_mc.onPress = function () { _root.infoPage_mc._visible = false; }; controlPanel_mc.trackCM_cb.model = model; controlPanel_mc.slider_mc.model = model; controlPanel_mc.showTraces_cb.trajectoryView = trajectoryView; controlPanel_mc.showGrid_cb.trajectoryView = trajectoryView; controlPanel_mc.tapeMeasure_cb.initialView = initialView; intID = setInterval(this, "waitForComponent", 10); } function waitForComponent() { if (_root.controlPanel_mc.myComboBox.length != undefined) { initializeComponents(); clearInterval(intID); } } function initializeComponents() { var _local3 = new Object(); var myModel = model; var _local5 = this; _local3.change = function (evt) { var _local2 = evt.target.selectedIndex; if (_local2 != 0) { myModel.setInitialConfig(evt.target.selectedIndex); _root.radioGroup_mc.selectButton(myModel.getN()); } }; _root.controlPanel_mc.myComboBox.addEventListener("change", _local3); var _local6 = new Internationalizer(_root.simStrings); _root.controlPanel_mc.myComboBox.selectedIndex = 0; } function update() { } }
Symbol 560 MovieClip [__Packages.Internationalizer] Frame 0
class Internationalizer { var simStrings; function Internationalizer (simStrings) { this.simStrings = simStrings; initialize(); } function initialize() { setListComponentLabel(_root.controlPanel_mc.myComboBox, 0, "selectPreset"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 1, "sunAndPlanet"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 2, "sunPlanetMoon"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 3, "sunPlanetComet"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 4, "binaryStarPlanet"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 5, "trojanAsteroids"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 6, "fourStarBallet"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 7, "slingshot"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 8, "doubleSlingshot"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 9, "hyperbolics"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 10, "ellipses"); setListComponentLabel(_root.controlPanel_mc.myComboBox, 11, "doubleDouble"); _level0.controlPanel_mc.startButton_mc.buttonLabel = simStrings.get("start"); _root.controlPanel_mc.startButton_mc.gotoAndPlay(1); _level0.controlPanel_mc.stopButton_mc.buttonLabel = simStrings.get("stop"); _root.controlPanel_mc.stopButton_mc.gotoAndPlay(1); _level0.controlPanel_mc.resetButton_mc.buttonLabel = simStrings.get("reset"); _root.controlPanel_mc.resetButton_mc.gotoAndPlay(1); setString(_root.controlPanel_mc.trackCM_cb.label_txt, "systemCentered", "left"); setString(_root.controlPanel_mc.showTraces_cb.label_txt, "showTraces", "left"); setString(_root.controlPanel_mc.showGrid_cb.label_txt, "showGrid", "left"); setString(_root.controlPanel_mc.tapeMeasure_cb.label_txt, "tapeMeasure", "left"); setString(_root.controlPanel_mc.slider_mc.leftLabel_txt, "accurate", "left"); setString(_root.controlPanel_mc.slider_mc.rightLabel_txt, "fast", "right"); _level0.controlPanel_mc.helpButton_mc.buttonLabel = simStrings.get("help"); _root.controlPanel_mc.helpButton_mc.gotoAndPlay(1); setString(_root.labelHolder_mc["Initial Settings:"], "initialSettings", "center"); setString(_root.labelHolder_mc.position, "position", "right"); setString(_root.labelHolder_mc.velocity, "velocity", "right"); setString(_root.labelHolder_mc.mass, "mass", "right"); setString(_root.labelHolder_mc.x, "xPos", "center"); setString(_root.labelHolder_mc.y, "yPos", "center"); setString(_root.labelHolder_mc["x "], "xVel", "center"); setString(_root.labelHolder_mc["y "], "yVel", "center"); setString(_root.radioGroup_mc.label_txt, "numberOfBodies", "right"); setString(_root.labelHolder_mc["body 1"], "body1", "right"); setString(_root.labelHolder_mc["body 2"], "body2", "right"); setString(_root.labelHolder_mc["body 3"], "body3", "right"); setString(_root.labelHolder_mc["body 4"], "body4", "right"); setString(_root.timeHolder_mc.timeEquals, "timeEquals", "right"); _level0.infoPage_mc.backButton_mc.buttonLabel = simStrings.get("back"); _level0.infoPage_mc.backButton_mc.gotoAndPlay(1); setString(_root.trajectoryHolder_mc.specWindow_mc.massEquals_txt, "massEquals", "right"); setString(_root.trajectoryHolder_mc.specWindow_mc.xEquals_txt, "xEquals", "right"); setString(_root.trajectoryHolder_mc.specWindow_mc.yEquals_txt, "yEquals", "right"); setString(_root.trajectoryHolder_mc.specWindow_mc.vXEquals_txt, "vXEquals", "right"); setString(_root.trajectoryHolder_mc.specWindow_mc.vYEquals_txt, "vYEquals", "right"); setString(_root.infoPage_mc.help0_txt, "help0", "left"); setString(_root.infoPage_mc.help1_txt, "help1", "left"); setString(_root.infoPage_mc.help2_txt, "help2", "left"); setString(_root.infoPage_mc.help3_txt, "help3", "left"); setString(_root.infoPage_mc.help4_txt, "help4", "left"); setString(_root.infoPage_mc.help5_txt, "help5", "left"); setString(_root.infoPage_mc.help6_txt, "help6", "left"); coverStaticString(_root.infoPage_mc.help7_txt, "help7", "left"); setString(_root.infoPage_mc.help8_txt, "help8", "left"); setString(_root.infoPage_mc.help9_txt, "help9", "left"); } function setString(field, key, alignment) { var _local5 = simStrings.get(key); var _local7 = field.getTextFormat(); if ((_local5 == "keyNotFound") || (_local5 == "")) { } else { if (field.html) { field.htmlText = _local5; } else { var _local3 = _local5.split("\\n"); if (_local3.length > 1) { var _local4 = ""; var _local2 = 0; while (_local2 < _local3.length) { _local4 = _local4 + (_local3[_local2] + newline); _local2++; } _local5 = _local4; } field.text = _local5; } _level0.common.prepareTranslatedTextField(field); resizeText(field, alignment); } } function setComponentLabel(myComponent, key) { var _local2 = simStrings.get(key); if ((_local2 == "keyNotFound") || (_local2 == "")) { } else { myComponent.label = _local2; } } function setListComponentLabel(myComponent, itemNbr, key) { var _local2 = simStrings.get(key); if ((_local2 == "keyNotFound") || (_local2 == "")) { } else { myComponent.replaceItemAt(itemNbr, _local2); } } function coverStaticString(field, key, alignment) { var _local5 = simStrings.get(key); if ((_local5 == "keyNotFound") || (_local5 == "")) { } else { if (field.html) { field.htmlText = _local5; } else { var _local3 = _local5.split("\\n"); if (_local3.length > 1) { var _local4 = ""; var _local2 = 0; while (_local2 < _local3.length) { _local4 = _local4 + (_local3[_local2] + newline); _local2++; } _local5 = _local4; } field.background = true; field.backgroundColor = 16777062 /* 0xFFFF66 */; field.text = _local5; trace("static cover text: " + field.text); } resizeText(field, alignment); } } function resizeText(txtField, alignment) { var _local1 = txtField; var _local2 = txtField.getTextFormat(); if ((_local1.textWidth + 2) >= _local1._width) { trace(("name: " + _local1._name) + " text resized "); var _local3 = (1.15 * _local1.textWidth) / _local1._width; var _local4 = _local1._height; trace((((((_local1.text + " too long by factor of ") + _local3) + " Initial height is ") + _local1._height) + " Initial y is ") + _local1._y); _local2.size = Math.round(_local2.size / _local3); _local1.setTextFormat(_local2); trace("New font size is " + _local1.getTextFormat().size); _local1.autoSize = alignment; var _local6 = _local1._height; _local1._y = _local1._y + ((_local4 - _local6) / 2); } } }
Symbol 561 MovieClip [__Packages.edu.colorado.phet.flashcommon.SimStrings] Frame 0
class edu.colorado.phet.flashcommon.SimStrings { function SimStrings (basename, locale) { mBasename = basename; mLocale = locale; if (mLocale == null) { mLocale = getSystemLocale(); } mDocument = new XML(); mDocument.ignoreWhite = true; mDocument.parseXML(_level0.internationalization); } function get(key) { var _local4 = "keyNotFound"; var _local5 = mDocument.firstChild.childNodes; var _local3 = null; var _local2 = 0; while (_local2 < _local5.length) { _local3 = XMLNode(_local5[_local2]); if (_local3.attributes.key == key) { _local4 = _local3.attributes.value; if (_local4 != null) { break; } } _local2++; } return(_local4); } function getLocale() { return(mLocale); } function setLocale(locale) { mLocale = locale; load(); } function getBasename() { return(mBasename); } function setBasename(basename) { mBasename = basename; load(); } function getFilename() { return(((mBasename + "_") + mLocale) + SUFFIX); } function load() { var _local4 = getFilename(); mDocument = new XML(); mDocument.ignoreWhite = true; mDocument.onLoad = function (success) { var _local3 = this.status; if (!success) { trace("Unable to load XML file."); } else { if (_local3 == 0) { return(undefined); } trace("XML was loaded successfully, but contains parsing errors."); var _local2; switch (_local3) { case -2 : _local2 = "A CDATA section was not properly terminated."; break; case -3 : _local2 = "The XML declaration was not properly terminated."; break; case -4 : _local2 = "The DOCTYPE declaration was not properly terminated."; break; case -5 : _local2 = "A comment was not properly terminated."; break; case -6 : _local2 = "An XML element was malformed."; break; case -7 : _local2 = "Out of memory."; break; case -8 : _local2 = "An attribute value was not properly terminated."; break; case -9 : _local2 = "A start-tag was not matched with an end-tag."; break; case -10 : _local2 = "An end-tag was encountered without a matching start-tag."; break; default : _local2 = "An unknown error has occurred."; } trace(((("status: " + _local3) + " (") + _local2) + ")"); } }; mDocument.load(_local4); } function isLoaded() { return(true); } function getStatus() { return(mDocument.status); } function getSystemLocale() { return(System.capabilities.language); } static var SUFFIX = ".xml"; var mBasename = null; var mLocale = null; var mDocument = null; }
Symbol 101 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip { var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled; function UIObject () { super(); constructObject(); } function get width() { return(_width); } function get height() { return(_height); } function get left() { return(_x); } function get x() { return(_x); } function get top() { return(_y); } function get y() { return(_y); } function get right() { return(_parent.width - (_x + width)); } function get bottom() { return(_parent.height - (_y + height)); } function getMinHeight(Void) { return(_minHeight); } function setMinHeight(h) { _minHeight = h; } function get minHeight() { return(getMinHeight()); } function set minHeight(h) { setMinHeight(h); //return(minHeight); } function getMinWidth(Void) { return(_minWidth); } function setMinWidth(w) { _minWidth = w; } function get minWidth() { return(getMinWidth()); } function set minWidth(w) { setMinWidth(w); //return(minWidth); } function setVisible(x, noEvent) { if (x != _visible) { _visible = x; if (noEvent != true) { dispatchEvent({type:(x ? "reveal" : "hide")}); } } } function get visible() { return(_visible); } function set visible(x) { setVisible(x, false); //return(visible); } function get scaleX() { return(_xscale); } function set scaleX(x) { _xscale = x; //return(scaleX); } function get scaleY() { return(_yscale); } function set scaleY(y) { _yscale = y; //return(scaleY); } function doLater(obj, fn) { if (methodTable == undefined) { methodTable = new Array(); } methodTable.push({obj:obj, fn:fn}); onEnterFrame = doLaterDispatcher; } function doLaterDispatcher(Void) { delete onEnterFrame; if (invalidateFlag) { redraw(); } var _local3 = methodTable; methodTable = new Array(); if (_local3.length > 0) { var _local2; while (_local2 = _local3.shift() , _local2 != undefined) { _local2.obj[_local2.fn](); } } } function cancelAllDoLaters(Void) { delete onEnterFrame; methodTable = new Array(); } function invalidate(Void) { invalidateFlag = true; onEnterFrame = doLaterDispatcher; } function invalidateStyle(Void) { invalidate(); } function redraw(bAlways) { if (invalidateFlag || (bAlways)) { invalidateFlag = false; var _local2; for (_local2 in tfList) { tfList[_local2].draw(); } draw(); dispatchEvent({type:"draw"}); } } function draw(Void) { } function move(x, y, noEvent) { var _local3 = _x; var _local2 = _y; _x = x; _y = y; if (noEvent != true) { dispatchEvent({type:"move", oldX:_local3, oldY:_local2}); } } function setSize(w, h, noEvent) { var _local2 = __width; var _local3 = __height; __width = w; __height = h; size(); if (noEvent != true) { dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3}); } } function size(Void) { _width = __width; _height = __height; } function drawRect(x1, y1, x2, y2) { moveTo(x1, y1); lineTo(x2, y1); lineTo(x2, y2); lineTo(x1, y2); lineTo(x1, y1); } function createLabel(name, depth, text) { createTextField(name, depth, 0, 0, 0, 0); var _local2 = this[name]; _local2._color = textColorList; _local2._visible = false; _local2.__text = text; if (tfList == undefined) { tfList = new Object(); } tfList[name] = _local2; _local2.invalidateStyle(); invalidate(); _local2.styleName = this; return(_local2); } function createObject(linkageName, id, depth, initobj) { return(attachMovie(linkageName, id, depth, initobj)); } function createClassObject(className, id, depth, initobj) { var _local3 = className.symbolName == undefined; if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className); } var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj); if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return(_local4); } function createEmptyObject(id, depth) { return(createClassObject(mx.core.UIObject, id, depth)); } function destroyObject(id) { var _local2 = this[id]; if (_local2.getDepth() < 0) { var _local4 = buildDepthTable(); var _local5 = findNextAvailableDepth(0, _local4, "up"); var _local3 = _local5; _local2.swapDepths(_local3); } _local2.removeMovieClip(); delete this[id]; } function getSkinIDName(tag) { return(idNames[tag]); } function setSkin(tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return(createObject(linkageName, getSkinIDName(tag), tag, initObj)); } function createSkin(tag) { var _local2 = getSkinIDName(tag); createEmptyObject(_local2, tag); return(this[_local2]); } function createChildren(Void) { } function _createChildren(Void) { createChildren(); childrenCreated = true; } function constructObject(Void) { if (_name == undefined) { return(undefined); } init(); _createChildren(); createAccessibilityImplementation(); _endInit(); if (validateNow) { redraw(true); } else { invalidate(); } } function initFromClipParameters(Void) { var _local4 = false; var _local2; for (_local2 in clipParameters) { if (hasOwnProperty(_local2)) { _local4 = true; this["def_" + _local2] = this[_local2]; delete this[_local2]; } } if (_local4) { for (_local2 in clipParameters) { var _local3 = this["def_" + _local2]; if (_local3 != undefined) { this[_local2] = _local3; } } } } function init(Void) { __width = _width; __height = _height; if (initProperties == undefined) { initFromClipParameters(); } else { initProperties(); } if (_global.cascadingStyles == true) { stylecache = new Object(); } } function getClassStyleDeclaration(Void) { var _local4 = this; var _local3 = className; while (_local3 != undefined) { if (ignoreClassStyleDeclaration[_local3] == undefined) { if (_global.styles[_local3] != undefined) { return(_global.styles[_local3]); } } _local4 = _local4.__proto__; _local3 = _local4.className; } } function setColor(color) { } function __getTextFormat(tf, bAll) { var _local8 = stylecache.tf; if (_local8 != undefined) { var _local3; for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { tf[_local3] = _local8[_local3]; } } } return(false); } var _local6 = false; for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { var _local5 = _tf[_local3]; if (_local5 != undefined) { tf[_local3] = _local5; } else if ((_local3 == "font") && (fontFamily != undefined)) { tf[_local3] = fontFamily; } else if ((_local3 == "size") && (fontSize != undefined)) { tf[_local3] = fontSize; } else if ((_local3 == "color") && (color != undefined)) { tf[_local3] = color; } else if ((_local3 == "leftMargin") && (marginLeft != undefined)) { tf[_local3] = marginLeft; } else if ((_local3 == "rightMargin") && (marginRight != undefined)) { tf[_local3] = marginRight; } else if ((_local3 == "italic") && (fontStyle != undefined)) { tf[_local3] = fontStyle == _local3; } else if ((_local3 == "bold") && (fontWeight != undefined)) { tf[_local3] = fontWeight == _local3; } else if ((_local3 == "align") && (textAlign != undefined)) { tf[_local3] = textAlign; } else if ((_local3 == "indent") && (textIndent != undefined)) { tf[_local3] = textIndent; } else if ((_local3 == "underline") && (textDecoration != undefined)) { tf[_local3] = textDecoration == _local3; } else if ((_local3 == "embedFonts") && (embedFonts != undefined)) { tf[_local3] = embedFonts; } else { _local6 = true; } } } } if (_local6) { var _local9 = styleName; if (_local9 != undefined) { if (typeof(_local9) != "string") { _local6 = _local9.__getTextFormat(tf, true, this); } else if (_global.styles[_local9] != undefined) { _local6 = _global.styles[_local9].__getTextFormat(tf, true, this); } } } if (_local6) { var _local10 = getClassStyleDeclaration(); if (_local10 != undefined) { _local6 = _local10.__getTextFormat(tf, true, this); } } if (_local6) { if (_global.cascadingStyles) { if (_parent != undefined) { _local6 = _parent.__getTextFormat(tf, false); } } } if (_local6) { _local6 = _global.style.__getTextFormat(tf, true, this); } return(_local6); } function _getTextFormat(Void) { var _local2 = stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); __getTextFormat(_local2, true); stylecache.tf = _local2; if (enabled == false) { var _local3 = getStyle("disabledColor"); _local2.color = _local3; } return(_local2); } function getStyleName(Void) { var _local2 = styleName; if (_local2 != undefined) { if (typeof(_local2) != "string") { return(_local2.getStyleName()); } return(_local2); } if (_parent != undefined) { return(_parent.getStyleName()); } return(undefined); } function getStyle(styleProp) { var _local3; _global.getStyleCounter++; if (this[styleProp] != undefined) { return(this[styleProp]); } var _local6 = styleName; if (_local6 != undefined) { if (typeof(_local6) != "string") { _local3 = _local6.getStyle(styleProp); } else { var _local7 = _global.styles[_local6]; _local3 = _local7.getStyle(styleProp); } } if (_local3 != undefined) { return(_local3); } var _local7 = getClassStyleDeclaration(); if (_local7 != undefined) { _local3 = _local7[styleProp]; } if (_local3 != undefined) { return(_local3); } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) { var _local5 = stylecache; if (_local5 != undefined) { if (_local5[styleProp] != undefined) { return(_local5[styleProp]); } } if (_parent != undefined) { _local3 = _parent.getStyle(styleProp); } else { _local3 = _global.style[styleProp]; } if (_local5 != undefined) { _local5[styleProp] = _local3; } return(_local3); } } if (_local3 == undefined) { _local3 = _global.style[styleProp]; } return(_local3); } static function mergeClipParameters(o, p) { for (var _local3 in p) { o[_local3] = p[_local3]; } return(true); } static var symbolName = "UIObject"; static var symbolOwner = mx.core.UIObject; static var version = "2.0.2.126"; static var textColorList = {color:1, disabledColor:1}; var invalidateFlag = false; var lineWidth = 1; var lineColor = 0; var tabEnabled = false; var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1}; }
Symbol 102 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject { var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled; function UIComponent () { super(); } function get width() { return(__width); } function get height() { return(__height); } function setVisible(x, noEvent) { super.setVisible(x, noEvent); } function enabledChanged(id, oldValue, newValue) { setEnabled(newValue); invalidate(); delete stylecache.tf; return(newValue); } function setEnabled(enabled) { invalidate(); } function getFocus() { var selFocus = Selection.getFocus(); return(((selFocus === null) ? null : (eval (selFocus)))); } function setFocus() { Selection.setFocus(this); } function getFocusManager() { var _local2 = this; while (_local2 != undefined) { if (_local2.focusManager != undefined) { return(_local2.focusManager); } _local2 = _local2._parent; } return(undefined); } function onKillFocus(newFocus) { removeEventListener("keyDown", this); removeEventListener("keyUp", this); dispatchEvent({type:"focusOut"}); drawFocus(false); } function onSetFocus(oldFocus) { addEventListener("keyDown", this); addEventListener("keyUp", this); dispatchEvent({type:"focusIn"}); if (getFocusManager().bDrawFocus != false) { drawFocus(true); } } function findFocusInChildren(o) { if (o.focusTextField != undefined) { return(o.focusTextField); } if (o.tabEnabled == true) { return(o); } return(undefined); } function findFocusFromObject(o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return(undefined); } if (o._parent.tabEnabled == true) { o = o._parent; } else if (o._parent.tabChildren) { o = findFocusInChildren(o._parent); } else { o = findFocusFromObject(o._parent); } } return(o); } function pressFocus() { var _local3 = findFocusFromObject(this); var _local2 = getFocus(); if (_local3 != _local2) { _local2.drawFocus(false); if (getFocusManager().bDrawFocus != false) { _local3.drawFocus(true); } } } function releaseFocus() { var _local2 = findFocusFromObject(this); if (_local2 != getFocus()) { _local2.setFocus(); } } function isParent(o) { while (o != undefined) { if (o == this) { return(true); } o = o._parent; } return(false); } function size() { } function init() { super.init(); _xscale = 100; _yscale = 100; _focusrect = _global.useFocusRect == false; watch("enabled", enabledChanged); if (enabled == false) { setEnabled(false); } } function dispatchValueChangedEvent(value) { dispatchEvent({type:"valueChanged", value:value}); } static var symbolName = "UIComponent"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.126"; static var kStretch = 5000; var focusEnabled = true; var tabEnabled = true; var origBorderStyles = {themeColor:16711680}; var clipParameters = {}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); }
Symbol 103 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object { var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows; function DataSelector () { super(); } static function Initialize(obj) { var _local3 = mixinProps; var _local4 = _local3.length; obj = obj.prototype; var _local1 = 0; while (_local1 < _local4) { obj[_local3[_local1]] = mixins[_local3[_local1]]; _local1++; } mixins.createProp(obj, "dataProvider", true); mixins.createProp(obj, "length", false); mixins.createProp(obj, "value", false); mixins.createProp(obj, "selectedIndex", true); mixins.createProp(obj, "selectedIndices", true); mixins.createProp(obj, "selectedItems", false); mixins.createProp(obj, "selectedItem", true); return(true); } function createProp(obj, propName, setter) { var p = (propName.charAt(0).toUpperCase() + propName.substr(1)); var _local2 = null; var _local4 = function (Void) { return(this["get" + p]()); }; if (setter) { _local2 = function (val) { this["set" + p](val); }; } obj.addProperty(propName, _local4, _local2); } function setDataProvider(dP) { if (__vPosition != 0) { setVPosition(0); } clearSelected(); __dataProvider.removeEventListener(this); __dataProvider = dP; dP.addEventListener("modelChanged", this); dP.addView(this); modelChanged({eventName:"updateAll"}); } function getDataProvider(Void) { return(__dataProvider); } function addItemAt(index, label, data) { if ((index < 0) || (!enabled)) { return(undefined); } var _local2 = __dataProvider; if (_local2 == undefined) { _local2 = (__dataProvider = new Array()); _local2.addEventListener("modelChanged", this); index = 0; } if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) { _local2.addItemAt(index, label); } else { _local2.addItemAt(index, {label:label, data:data}); } } function addItem(label, data) { addItemAt(__dataProvider.length, label, data); } function removeItemAt(index) { return(__dataProvider.removeItemAt(index)); } function removeAll(Void) { __dataProvider.removeAll(); } function replaceItemAt(index, newLabel, newData) { if (typeof(newLabel) == "object") { __dataProvider.replaceItemAt(index, newLabel); } else { __dataProvider.replaceItemAt(index, {label:newLabel, data:newData}); } } function sortItemsBy(fieldName, order) { lastSelID = __dataProvider.getItemID(lastSelected); __dataProvider.sortItemsBy(fieldName, order); } function sortItems(compareFunc, order) { lastSelID = __dataProvider.getItemID(lastSelected); __dataProvider.sortItems(compareFunc, order); } function getLength(Void) { return(__dataProvider.length); } function getItemAt(index) { return(__dataProvider.getItemAt(index)); } function modelChanged(eventObj) { var _local3 = eventObj.firstItem; var _local6 = eventObj.lastItem; var _local7 = eventObj.eventName; if (_local7 == undefined) { _local7 = eventObj.event; _local3 = eventObj.firstRow; _local6 = eventObj.lastRow; if (_local7 == "addRows") { _local7 = (eventObj.eventName = "addItems"); } else if (_local7 == "deleteRows") { _local7 = (eventObj.eventName = "removeItems"); } else if (_local7 == "updateRows") { _local7 = (eventObj.eventName = "updateItems"); } } if (_local7 == "addItems") { for (var _local2 in selected) { var _local5 = selected[_local2]; if ((_local5 != undefined) && (_local5 >= _local3)) { selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1); } } } else if (_local7 == "removeItems") { if (__dataProvider.length == 0) { delete selected; } else { var _local9 = eventObj.removedIDs; var _local10 = _local9.length; var _local2 = 0; while (_local2 < _local10) { var _local4 = _local9[_local2]; if (selected[_local4] != undefined) { delete selected[_local4]; } _local2++; } for (_local2 in selected) { if (selected[_local2] >= _local3) { selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1); } } } } else if (_local7 == "sort") { if (typeof(__dataProvider.getItemAt(0)) != "object") { delete selected; } else { var _local10 = __dataProvider.length; var _local2 = 0; while (_local2 < _local10) { if (isSelected(_local2)) { var _local4 = __dataProvider.getItemID(_local2); if (_local4 == lastSelID) { lastSelected = _local2; } selected[_local4] = _local2; } _local2++; } } } else if (_local7 == "filterModel") { setVPosition(0); } invUpdateControl = true; invalidate(); } function getValue(Void) { var _local2 = getSelectedItem(); if (typeof(_local2) != "object") { return(_local2); } return(((_local2.data == undefined) ? (_local2.label) : (_local2.data))); } function getSelectedIndex(Void) { for (var _local3 in selected) { var _local2 = selected[_local3]; if (_local2 != undefined) { return(_local2); } } } function setSelectedIndex(index) { if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) { delete selected; selectItem(index, true); lastSelected = index; invUpdateControl = true; invalidate(); } else if (index == undefined) { clearSelected(); } } function getSelectedIndices(Void) { var _local2 = new Array(); for (var _local3 in selected) { _local2.push(selected[_local3]); } _local2.reverse(); return(((_local2.length > 0) ? (_local2) : undefined)); } function setSelectedIndices(indexArray) { if (multipleSelection != true) { return(undefined); } delete selected; var _local3 = 0; while (_local3 < indexArray.length) { var _local2 = indexArray[_local3]; if ((_local2 >= 0) && (_local2 < __dataProvider.length)) { selectItem(_local2, true); } _local3++; } invUpdateControl = true; updateControl(); } function getSelectedItems(Void) { var _local3 = getSelectedIndices(); var _local4 = new Array(); var _local2 = 0; while (_local2 < _local3.length) { _local4.push(getItemAt(_local3[_local2])); _local2++; } return(((_local4.length > 0) ? (_local4) : undefined)); } function getSelectedItem(Void) { return(__dataProvider.getItemAt(getSelectedIndex())); } function selectItem(index, selectedFlag) { if (selected == undefined) { selected = new Object(); } var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(undefined); } if (selectedFlag && (!isSelected(index))) { selected[_local2] = index; } else if (!selectedFlag) { delete selected[_local2]; } } function isSelected(index) { var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(false); } return(selected[_local2] != undefined); } function clearSelected(transition) { var _local3 = 0; for (var _local4 in selected) { var _local2 = selected[_local4]; if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) { rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0)); } _local3++; } delete selected; } static var mixins = new mx.controls.listclasses.DataSelector(); static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"]; }
Symbol 104 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent { var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent; function ComboBase () { super(); getValue = _getValue; } function init() { super.init(); tabEnabled = !_editable; tabChildren = _editable; boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function createChildren() { var _local3 = new Object(); _local3.styleName = this; if (downArrow_mc == undefined) { _local3.falseUpSkin = downArrowUpName; _local3.falseOverSkin = downArrowOverName; _local3.falseDownSkin = downArrowDownName; _local3.falseDisabledSkin = downArrowDisabledName; _local3.validateNow = true; _local3.tabEnabled = false; createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3); downArrow_mc.buttonDownHandler = onDownArrow; downArrow_mc.useHandCursor = false; downArrow_mc.onPressWas = downArrow_mc.onPress; downArrow_mc.onPress = function () { this.trackAsMenuWas = this.trackAsMenu; this.trackAsMenu = true; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onPressWas(); }; downArrow_mc.onDragOutWas = downArrow_mc.onDragOut; downArrow_mc.onDragOut = function () { this.trackAsMenuWas = this.trackAsMenu; this.trackAsMenu = false; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onDragOutWas(); }; downArrow_mc.onDragOverWas = downArrow_mc.onDragOver; downArrow_mc.onDragOver = function () { this.trackAsMenu = this.trackAsMenuWas; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onDragOverWas(); }; } if (border_mc == undefined) { _local3.tabEnabled = false; createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3); border_mc.move(0, 0); __border = border_mc; } _local3.borderStyle = "none"; _local3.readOnly = !_editable; _local3.tabEnabled = _editable; if (text_mc == undefined) { createClassObject(mx.controls.TextInput, "text_mc", 18, _local3); text_mc.move(0, 0); text_mc.addEnterEvents(); text_mc.enterHandler = _enterHandler; text_mc.changeHandler = _changeHandler; text_mc.oldOnSetFocus = text_mc.onSetFocus; text_mc.onSetFocus = function () { this.oldOnSetFocus(); this._parent.onSetFocus(); }; text_mc.__set__restrict("^\x1B"); text_mc.oldOnKillFocus = text_mc.onKillFocus; text_mc.onKillFocus = function (n) { this.oldOnKillFocus(n); this._parent.onKillFocus(n); }; text_mc.drawFocus = function (b) { this._parent.drawFocus(b); }; delete text_mc.borderStyle; } focusTextField = text_mc; text_mc.owner = this; layoutChildren(__width, __height); } function onKillFocus() { super.onKillFocus(); Key.removeListener(text_mc); getFocusManager().defaultPushButtonEnabled = true; } function onSetFocus() { super.onSetFocus(); getFocusManager().defaultPushButtonEnabled = false; Key.addListener(text_mc); } function setFocus() { if (_editable) { Selection.setFocus(text_mc); } else { Selection.setFocus(this); } } function setSize(w, h, noEvent) { super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent); } function setEnabled(enabledFlag) { super.setEnabled(enabledFlag); downArrow_mc.enabled = enabledFlag; text_mc.enabled = enabledFlag; } function setEditable(e) { _editable = e; if (wrapDownArrowButton == false) { if (e) { border_mc.borderStyle = "inset"; text_mc.borderStyle = "inset"; symbolName = "ComboBox"; invalidateStyle(); } else { border_mc.borderStyle = "comboNonEdit"; text_mc.borderStyle = "dropDown"; symbolName = "DropDown"; invalidateStyle(); } } tabEnabled = !e; tabChildren = e; text_mc.tabEnabled = e; if (e) { delete text_mc.onPress; delete text_mc.onRelease; delete text_mc.onReleaseOutside; delete text_mc.onDragOut; delete text_mc.onDragOver; delete text_mc.onRollOver; delete text_mc.onRollOut; } else { text_mc.onPress = function () { this._parent.downArrow_mc.onPress(); }; text_mc.onRelease = function () { this._parent.downArrow_mc.onRelease(); }; text_mc.onReleaseOutside = function () { this._parent.downArrow_mc.onReleaseOutside(); }; text_mc.onDragOut = function () { this._parent.downArrow_mc.onDragOut(); }; text_mc.onDragOver = function () { this._parent.downArrow_mc.onDragOver(); }; text_mc.onRollOver = function () { this._parent.downArrow_mc.onRollOver(); }; text_mc.onRollOut = function () { this._parent.downArrow_mc.onRollOut(); }; text_mc.useHandCursor = false; } } function get editable() { return(_editable); } function set editable(e) { setEditable(e); //return(editable); } function _getValue() { return((_editable ? (text_mc.getText()) : (DSgetValue()))); } function draw() { downArrow_mc.draw(); border_mc.draw(); } function size() { layoutChildren(__width, __height); } function setTheme(t) { downArrowUpName = (t + "downArrow") + "Up_mc"; downArrowDownName = (t + "downArrow") + "Down_mc"; downArrowDisabledName = (t + "downArrow") + "Disabled_mc"; } function get text() { return(text_mc.getText()); } function set text(t) { setText(t); //return(text); } function setText(t) { text_mc.setText(t); } function get textField() { return(text_mc); } function get restrict() { return(text_mc.__get__restrict()); } function set restrict(w) { text_mc.__set__restrict(w); //return(restrict); } function invalidateStyle() { downArrow_mc.invalidateStyle(); text_mc.invalidateStyle(); border_mc.invalidateStyle(); } function layoutChildren(w, h) { if (downArrow_mc == undefined) { return(undefined); } if (wrapDownArrowButton) { var _local2 = border_mc.__get__borderMetrics(); downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom); downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top); border_mc.setSize(w, h); text_mc.setSize(w - downArrow_mc._width, h); } else { downArrow_mc.move(w - downArrow_mc._width, 0); border_mc.setSize(w - downArrow_mc.width, h); text_mc.setSize(w - downArrow_mc._width, h); downArrow_mc._height = height; } } function _changeHandler(obj) { } function _enterHandler(obj) { var _local2 = _parent; obj.target = _local2; _local2.dispatchEvent(obj); } function get tabIndex() { return(text_mc.__get__tabIndex()); } function set tabIndex(w) { text_mc.__set__tabIndex(w); //return(tabIndex); } static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase); static var symbolName = "ComboBase"; static var symbolOwner = mx.controls.ComboBase; static var version = "2.0.2.126"; var _editable = false; var downArrowUpName = "ScrollDownArrowUp"; var downArrowDownName = "ScrollDownArrowDown"; var downArrowOverName = "ScrollDownArrowOver"; var downArrowDisabledName = "ScrollDownArrowDisabled"; var wrapDownArrowButton = true; var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue; var multipleSelection = false; }
Symbol 105 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase { var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent; function ComboBox () { super(); } function init() { super.init(); } function createChildren() { super.createChildren(); __set__editable(editable); if (__labels.length > 0) { var _local6 = new Array(); var _local3 = 0; while (_local3 < labels.length) { _local6.addItem({label:labels[_local3], data:data[_local3]}); _local3++; } setDataProvider(_local6); } dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width))); if (!_editable) { selectedIndex = 0; } initializing = false; } function onKillFocus(n) { if (_showingDropdown && (n != null)) { displayDropdown(false); } super.onKillFocus(); } function getDropdown() { if (initializing) { return(undefined); } if (!hasDropdown()) { var _local3 = new Object(); _local3.styleName = this; if (dropdownBorderStyle != undefined) { _local3.borderStyle = dropdownBorderStyle; } _local3._visible = false; __dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true); __dropdown.scroller.mask.removeMovieClip(); if (dataProvider == undefined) { dataProvider = new Array(); } __dropdown.setDataProvider(dataProvider); __dropdown.selectMultiple = false; __dropdown.rowCount = __rowCount; __dropdown.selectedIndex = selectedIndex; __dropdown.vScrollPolicy = "auto"; __dropdown.labelField = __labelField; __dropdown.labelFunction = __labelFunction; __dropdown.owner = this; __dropdown.changeHandler = _changeHandler; __dropdown.scrollHandler = _scrollHandler; __dropdown.itemRollOverHandler = _itemRollOverHandler; __dropdown.itemRollOutHandler = _itemRollOutHandler; __dropdown.resizeHandler = _resizeHandler; __dropdown.mouseDownOutsideHandler = function (eventObj) { var _local3 = this.owner; var _local4 = new Object(); _local4.x = _local3._root._xmouse; _local4.y = _local3._root._ymouse; _local3._root.localToGlobal(_local4); if (_local3.hitTest(_local4.x, _local4.y, false)) { } else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) { } else { _local3.displayDropdown(false); } }; __dropdown.onTweenUpdate = function (v) { this._y = v; }; __dropdown.setSize(__dropdownWidth, __dropdown.height); createObject("BoundingBox", "mask", 20); mask._y = border_mc.height; mask._width = __dropdownWidth; mask._height = __dropdown.height; mask._visible = false; __dropdown.setMask(mask); } return(__dropdown); } function setSize(w, h, noEvent) { super.setSize(w, h, noEvent); __dropdownWidth = w; __dropdown.rowHeight = h; __dropdown.setSize(__dropdownWidth, __dropdown.height); } function setEditable(e) { super.setEditable(e); if (e) { text_mc.setText(""); } else { text_mc.setText(selectedLabel); } } function get labels() { return(__labels); } function set labels(lbls) { __labels = lbls; setDataProvider(lbls); //return(labels); } function getLabelField() { return(__labelField); } function get labelField() { return(getLabelField()); } function setLabelField(s) { __dropdown.labelField = (__labelField = s); text_mc.setText(selectedLabel); } function set labelField(s) { setLabelField(s); //return(labelField); } function getLabelFunction() { return(__labelFunction); } function get labelFunction() { return(getLabelFunction()); } function set labelFunction(f) { __dropdown.labelFunction = (__labelFunction = f); text_mc.setText(selectedLabel); //return(labelFunction); } function setSelectedItem(v) { super.setSelectedItem(v); __dropdown.selectedItem = v; text_mc.setText(selectedLabel); } function setSelectedIndex(v) { super.setSelectedIndex(v); __dropdown.selectedIndex = v; if (v != undefined) { text_mc.setText(selectedLabel); } dispatchValueChangedEvent(getValue()); } function setRowCount(count) { if (isNaN(count)) { return(undefined); } __rowCount = count; __dropdown.setRowCount(count); } function get rowCount() { return(Math.max(1, Math.min(length, __rowCount))); } function set rowCount(v) { setRowCount(v); //return(rowCount); } function setDropdownWidth(w) { __dropdownWidth = w; __dropdown.setSize(w, __dropdown.height); } function get dropdownWidth() { return(__dropdownWidth); } function set dropdownWidth(v) { setDropdownWidth(v); //return(dropdownWidth); } function get dropdown() { return(getDropdown()); } function setDataProvider(dp) { super.setDataProvider(dp); __dropdown.setDataProvider(dp); if (!_editable) { selectedIndex = 0; } } function open() { displayDropdown(true); } function close() { displayDropdown(false); } function get selectedLabel() { var _local2 = selectedItem; if (_local2 == undefined) { return(""); } if (labelFunction != undefined) { return(labelFunction(_local2)); } if (typeof(_local2) != "object") { return(_local2); } if (_local2[labelField] != undefined) { return(_local2[labelField]); } if (_local2.label != undefined) { return(_local2.label); } var _local3 = " "; for (var _local4 in _local2) { if (_local4 != "__ID__") { _local3 = (_local2[_local4] + ", ") + _local3; } } _local3 = _local3.substring(0, _local3.length - 3); return(_local3); } function hasDropdown() { return((__dropdown != undefined) && (__dropdown.valueOf() != undefined)); } function tweenEndShow(value) { _y = value; isPressed = true; owner.dispatchEvent({type:"open", target:owner}); } function tweenEndHide(value) { _y = value; __set__visible(false); owner.dispatchEvent({type:"close", target:owner}); } function displayDropdown(show) { if (show == _showingDropdown) { return(undefined); } var _local3 = new Object(); _local3.x = 0; _local3.y = height; localToGlobal(_local3); if (show) { __selectedIndexOnDropdown = selectedIndex; __initialSelectedIndexOnDropdown = selectedIndex; getDropdown(); var _local2 = __dropdown; _local2.isPressed = true; _local2.rowCount = rowCount; _local2.visible = show; _local2._parent.globalToLocal(_local3); _local2.onTweenEnd = tweenEndShow; var _local5; var _local8; if ((_local3.y + _local2.height) > Stage.height) { _local5 = _local3.y - __get__height(); _local8 = _local5 - _local2.height; mask._y = -_local2.height; } else { _local5 = _local3.y - _local2.height; _local8 = _local3.y; mask._y = border_mc.height; } var _local6 = _local2.selectedIndex; if (_local6 == undefined) { _local6 = 0; } var _local4 = _local2.vPosition; _local4 = _local6 - 1; _local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount); _local2.vPosition = _local4; _local2.move(_local3.x, _local5); _local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration")); } else { __dropdown._parent.globalToLocal(_local3); delete __dropdown.dragScrolling; __dropdown.onTweenEnd = tweenEndHide; __dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration")); if (__initialSelectedIndexOnDropdown != selectedIndex) { dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex); } } var _local9 = getStyle("openEasing"); if (_local9 != undefined) { __dropdown.tween.easingEquation = _local9; } _showingDropdown = show; } function onDownArrow() { _parent.displayDropdown(!_parent._showingDropdown); } function keyDown(e) { if (e.ctrlKey && (e.code == 40)) { displayDropdown(true); } else if (e.ctrlKey && (e.code == 38)) { displayDropdown(false); dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex); } else if (e.code == 27) { displayDropdown(false); } else if (e.code == 13) { if (_showingDropdown) { selectedIndex = __dropdown.selectedIndex; displayDropdown(false); } } else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) { selectedIndex = 0 + selectedIndex; bInKeyDown = true; var _local3 = dropdown; _local3.keyDown(e); bInKeyDown = false; selectedIndex = __dropdown.selectedIndex; } } function invalidateStyle(styleProp) { __dropdown.invalidateStyle(styleProp); super.invalidateStyle(styleProp); } function changeTextStyleInChildren(styleProp) { if (dropdown.stylecache != undefined) { delete dropdown.stylecache[styleProp]; delete dropdown.stylecache.tf; } __dropdown.changeTextStyleInChildren(styleProp); super.changeTextStyleInChildren(styleProp); } function changeColorStyleInChildren(sheetName, styleProp, newValue) { if (dropdown.stylecache != undefined) { delete dropdown.stylecache[styleProp]; delete dropdown.stylecache.tf; } __dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue); super.changeColorStyleInChildren(sheetName, styleProp, newValue); } function notifyStyleChangeInChildren(sheetName, styleProp, newValue) { if (dropdown.stylecache != undefined) { delete dropdown.stylecache[styleProp]; delete dropdown.stylecache.tf; } __dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue); super.notifyStyleChangeInChildren(sheetName, styleProp, newValue); } function onUnload() { __dropdown.removeMovieClip(); } function _resizeHandler() { var _local2 = owner; _local2.mask._width = width; _local2.mask._height = height; } function _changeHandler(obj) { var _local2 = owner; var _local3 = _local2.selectedIndex; obj.target = _local2; if (this == owner.text_mc) { _local2.selectedIndex = undefined; _local2.dispatchChangeEvent(obj, -1, -2); } else { _local2.selectedIndex = selectedIndex; if (!_local2._showingDropdown) { _local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex); } else if (!_local2.bInKeyDown) { _local2.displayDropdown(false); } } } function _scrollHandler(obj) { var _local2 = owner; obj.target = _local2; _local2.dispatchEvent(obj); } function _itemRollOverHandler(obj) { var _local2 = owner; obj.target = _local2; _local2.dispatchEvent(obj); } function _itemRollOutHandler(obj) { var _local2 = owner; obj.target = _local2; _local2.dispatchEvent(obj); } function modelChanged(eventObj) { super.modelChanged(eventObj); if (0 == __dataProvider.length) { text_mc.setText(""); delete selected; } else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) { selectedIndex = 0; } } function dispatchChangeEvent(obj, prevValue, newValue) { var _local2; if (prevValue != newValue) { if ((obj != undefined) && (obj.type == "change")) { _local2 = obj; } else { _local2 = {type:"change"}; } dispatchEvent(_local2); } } static var symbolName = "ComboBox"; static var symbolOwner = mx.controls.ComboBox; static var version = "2.0.2.126"; var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters); var className = "ComboBox"; var _showingDropdown = false; var __rowCount = 5; var dropdownBorderStyle = undefined; var initializing = true; var __labelField = "label"; var bInKeyDown = false; }
Symbol 218 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip { var _visible, _x, _y, _width, _height; function SkinElement () { super(); } static function registerElement(name, className) { Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className))); _global.skinRegistry[name] = true; } function __set__visible(visible) { _visible = visible; } function move(x, y) { _x = x; _y = y; } function setSize(w, h) { _width = w; _height = h; } }
Symbol 219 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles { function CSSTextStyles () { } static function addTextStyles(o, bColor) { o.addProperty("textAlign", function () { return(this._tf.align); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty("fontWeight", function () { return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == "bold"; }); if (bColor) { o.addProperty("color", function () { return(this._tf.color); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty("fontFamily", function () { return(this._tf.font); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty("textIndent", function () { return(this._tf.indent); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty("fontStyle", function () { return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == "italic"; }); o.addProperty("marginLeft", function () { return(this._tf.leftMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty("marginRight", function () { return(this._tf.rightMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty("fontSize", function () { return(this._tf.size); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty("textDecoration", function () { return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == "underline"; }); o.addProperty("embedFonts", function () { return(this._tf.embedFonts); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); } }
Symbol 220 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager { function StyleManager () { } static function registerInheritingStyle(styleName) { inheritingStyles[styleName] = true; } static function isInheritingStyle(styleName) { return(inheritingStyles[styleName] == true); } static function registerColorStyle(styleName) { colorStyles[styleName] = true; } static function isColorStyle(styleName) { return(colorStyles[styleName] == true); } static function registerColorName(colorName, colorValue) { colorNames[colorName] = colorValue; } static function isColorName(colorName) { return(colorNames[colorName] != undefined); } static function getColorName(colorName) { return(colorNames[colorName]); } static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true}; static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true}; static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344}; static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false}; static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true}; }
Symbol 221 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration { var _tf; function CSSStyleDeclaration () { } function __getTextFormat(tf, bAll) { var _local5 = false; if (_tf != undefined) { var _local2; for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) { if (tf[_local2] == undefined) { var _local3 = _tf[_local2]; if (_local3 != undefined) { tf[_local2] = _local3; } else { _local5 = true; } } } } } else { _local5 = true; } return(_local5); } function getStyle(styleProp) { var _local2 = this[styleProp]; var _local3 = mx.styles.StyleManager.getColorName(_local2); return(((_local3 == undefined) ? (_local2) : (_local3))); } static function classConstruct() { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return(true); } static var classConstructed = classConstruct(); static var CSSTextStylesDependency = mx.styles.CSSTextStyles; }
Symbol 222 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject { function Border () { super(); } function init(Void) { super.init(); } static var symbolName = "Border"; static var symbolOwner = mx.skins.Border; var className = "Border"; var tagBorder = 0; var idNames = new Array("border_mc"); }
Symbol 223 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border { var __width, __height, offset, __borderMetrics; function RectBorder () { super(); } function get width() { return(__width); } function get height() { return(__height); } function init(Void) { super.init(); } function draw(Void) { size(); } function getBorderMetrics(Void) { var _local2 = offset; if (__borderMetrics == undefined) { __borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2}; } else { __borderMetrics.left = _local2; __borderMetrics.top = _local2; __borderMetrics.right = _local2; __borderMetrics.bottom = _local2; } return(__borderMetrics); } function get borderMetrics() { return(getBorderMetrics()); } function drawBorder(Void) { } function size(Void) { drawBorder(); } function setColor(Void) { drawBorder(); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.RectBorder; static var version = "2.0.2.126"; var className = "RectBorder"; var borderStyleName = "borderStyle"; var borderColorName = "borderColor"; var shadowColorName = "shadowColor"; var highlightColorName = "highlightColor"; var buttonColorName = "buttonColor"; var backgroundColorName = "backgroundColor"; }
Symbol 224 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent { var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled; function TextInput () { super(); } function addEventListener(event, handler) { if (event == "enter") { addEnterEvents(); } super.addEventListener(event, handler); } function enterOnKeyDown() { if (Key.getAscii() == 13) { owner.dispatchEvent({type:"enter"}); } } function addEnterEvents() { if (enterListener == undefined) { enterListener = new Object(); enterListener.owner = this; enterListener.onKeyDown = enterOnKeyDown; } } function init(Void) { super.init(); label.styleName = this; tabChildren = true; tabEnabled = false; focusTextField = label; _color = mx.core.UIObject.textColorList; label.onSetFocus = function () { this._parent.onSetFocus(); }; label.onKillFocus = function (n) { this._parent.onKillFocus(n); }; label.drawFocus = function (b) { this._parent.drawFocus(b); }; label.onChanged = onLabelChanged; } function setFocus() { Selection.setFocus(label); } function onLabelChanged(Void) { _parent.dispatchEvent({type:"change"}); _parent.dispatchValueChangedEvent(text); } function createChildren(Void) { super.createChildren(); if (border_mc == undefined) { createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this}); } border_mc.swapDepths(label); label.autoSize = "none"; } function get html() { return(getHtml()); } function set html(value) { setHtml(value); //return(html); } function getHtml() { return(label.html); } function setHtml(value) { if (value != label.html) { label.html = value; } } function get text() { return(getText()); } function set text(t) { setText(t); //return(text); } function getText() { if (initializing) { return(initText); } if (label.html == true) { return(label.htmlText); } return(label.text); } function setText(t) { if (initializing) { initText = t; } else { var _local2 = label; if (_local2.html == true) { _local2.htmlText = t; } else { _local2.text = t; } } dispatchValueChangedEvent(t); } function size(Void) { border_mc.setSize(__get__width(), __get__height()); var _local2 = border_mc.__get__borderMetrics(); var _local6 = _local2.left + _local2.right; var _local3 = _local2.top + _local2.bottom; var _local5 = _local2.left; var _local4 = _local2.top; tfx = _local5; tfy = _local4; tfw = __get__width() - _local6; tfh = __get__height() - _local3; label.move(tfx, tfy); label.setSize(tfw, tfh + 1); } function setEnabled(enable) { label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic"); label.selectable = enable; var _local2 = getStyle((enable ? "color" : "disabledColor")); if (_local2 == undefined) { _local2 = (enable ? 0 : 8947848); } setColor(_local2); } function setColor(col) { label.textColor = col; } function onKillFocus(newFocus) { if (enterListener != undefined) { Key.removeListener(enterListener); } if (bind != undefined) { updateModel(text); } super.onKillFocus(newFocus); } function onSetFocus(oldFocus) { var f = Selection.getFocus(); var o = eval (f); if (o != label) { Selection.setFocus(label); return(undefined); } if (enterListener != undefined) { Key.addListener(enterListener); } super.onSetFocus(oldFocus); } function draw(Void) { var _local2 = label; var _local4 = getText(); if (initializing) { initializing = false; delete initText; } var _local3 = _getTextFormat(); _local2.embedFonts = _local3.embedFonts == true; if (_local3 != undefined) { _local2.setTextFormat(_local3); _local2.setNewTextFormat(_local3); } _local2.multiline = false; _local2.wordWrap = false; if (_local2.html == true) { _local2.setTextFormat(_local3); _local2.htmlText = _local4; } else { _local2.text = _local4; } _local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic"); size(); } function setEditable(s) { __editable = s; label.type = (s ? "input" : "dynamic"); } function get maxChars() { return(label.maxChars); } function set maxChars(w) { label.maxChars = w; //return(maxChars); } function get length() { return(label.length); } function get restrict() { return(label.restrict); } function set restrict(w) { label.restrict = ((w == "") ? null : (w)); //return(restrict); } function get hPosition() { return(label.hscroll); } function set hPosition(w) { label.hscroll = w; //return(hPosition); } function get maxHPosition() { return(label.maxhscroll); } function get editable() { return(__editable); } function set editable(w) { setEditable(w); //return(editable); } function get password() { return(label.password); } function set password(w) { label.password = w; //return(password); } function get tabIndex() { return(label.tabIndex); } function set tabIndex(w) { label.tabIndex = w; //return(tabIndex); } function set _accProps(val) { label._accProps = val; //return(_accProps); } function get _accProps() { return(label._accProps); } static var symbolName = "TextInput"; static var symbolOwner = mx.controls.TextInput; static var version = "2.0.2.126"; var className = "TextInput"; var initializing = true; var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); var _maxWidth = mx.core.UIComponent.kStretch; var __editable = true; var initText = ""; }
Symbol 225 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent { static var emphasizedStyleDeclaration; var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle; function SimpleButton () { super(); } function init(Void) { super.init(); if (preset == undefined) { boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } useHandCursor = false; } function createChildren(Void) { if (preset != undefined) { var _local2 = this[idNames[preset]]; this[refNames[preset]] = _local2; skinName = _local2; if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } initializing = false; } else if (__state == true) { setStateVar(true); } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } } } function setIcon(tag, linkageName) { return(setSkin(tag + 8, linkageName)); } function changeIcon(tag, linkageName) { linkLength = linkageName.length; var _local2 = stateNames[tag] + "Icon"; this[_local2] = linkageName; this[idNames[tag + 8]] = _local2; setStateVar(getState()); } function changeSkin(tag, linkageName) { var _local2 = stateNames[tag] + "Skin"; this[_local2] = linkageName; this[idNames[tag]] = _local2; setStateVar(getState()); } function viewIcon(varName) { var _local4 = varName + "Icon"; var _local3 = this[_local4]; if (typeof(_local3) == "string") { var _local5 = _local3; if (__emphasized) { if (this[_local3 + "Emphasized"].length > 0) { _local3 = _local3 + "Emphasized"; } } if (this[_local3].length == 0) { return(undefined); } _local3 = setIcon(tagMap[_local5], this[_local3]); if ((_local3 == undefined) && (_global.isLivePreview)) { _local3 = setIcon(0, "ButtonIcon"); } this[_local4] = _local3; } iconName._visible = false; iconName = _local3; iconName._visible = true; } function removeIcons() { var _local3 = 0; while (_local3 < 2) { var _local2 = 8; while (_local2 < 16) { destroyObject(idNames[_local2]); this[stateNames[_local2 - 8] + "Icon"] = ""; _local2++; } _local3++; } refresh(); } function setSkin(tag, linkageName, initobj) { var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this}))); calcSize(tag, _local3); return(_local3); } function calcSize(Void) { __width = _width; __height = _height; } function viewSkin(varName, initObj) { var _local3 = varName + "Skin"; var _local2 = this[_local3]; if (typeof(_local2) == "string") { var _local4 = _local2; if (__emphasized) { if (this[_local2 + "Emphasized"].length > 0) { _local2 = _local2 + "Emphasized"; } } if (this[_local2].length == 0) { return(undefined); } _local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this}))); this[_local3] = _local2; } skinName._visible = false; skinName = _local2; skinName._visible = true; } function showEmphasized(e) { if (e && (!__emphatic)) { if (emphasizedStyleDeclaration != undefined) { __emphaticStyleName = styleName; styleName = emphasizedStyleDeclaration; } __emphatic = true; } else { if (__emphatic) { styleName = __emphaticStyleName; } __emphatic = false; } } function refresh(Void) { var _local2 = getState(); if (enabled == false) { viewIcon("disabled"); viewSkin("disabled"); } else { viewSkin(phase); viewIcon(phase); } setView(phase == "down"); iconName.enabled = enabled; } function setView(offset) { if (iconName == undefined) { return(undefined); } var _local2 = (offset ? (btnOffset) : 0); iconName._x = ((__width - iconName._width) / 2) + _local2; iconName._y = ((__height - iconName._height) / 2) + _local2; } function setStateVar(state) { if (state) { if (trueOverSkin.length == 0) { rolloverSkin = tus; } else { rolloverSkin = trs; } if (trueOverIcon.length == 0) { rolloverIcon = tui; } else { rolloverIcon = tri; } upSkin = tus; downSkin = tds; disabledSkin = dts; upIcon = tui; downIcon = tdi; disabledIcon = dti; } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } else { rolloverSkin = frs; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } else { rolloverIcon = fri; } upSkin = fus; downSkin = fds; disabledSkin = dfs; upIcon = fui; downIcon = fdi; disabledIcon = dfi; } __state = state; } function setState(state) { if (state != __state) { setStateVar(state); invalidate(); } } function size(Void) { refresh(); } function draw(Void) { if (initializing) { initializing = false; skinName.visible = true; iconName.visible = true; } size(); } function getState(Void) { return(__state); } function setToggle(val) { __toggle = val; if (__toggle == false) { setState(false); } } function getToggle(Void) { return(__toggle); } function set toggle(val) { setToggle(val); //return(toggle); } function get toggle() { return(getToggle()); } function set value(val) { setSelected(val); //return(value); } function get value() { return(getSelected()); } function set selected(val) { setSelected(val); //return(selected); } function get selected() { return(getSelected()); } function setSelected(val) { if (__toggle) { setState(val); } else { setState((initializing ? (val) : (__state))); } } function getSelected() { return(__state); } function setEnabled(val) { if (enabled != val) { super.setEnabled(val); invalidate(); } } function onPress(Void) { pressFocus(); phase = "down"; refresh(); dispatchEvent({type:"buttonDown"}); if (autoRepeat) { interval = setInterval(this, "onPressDelay", getStyle("repeatDelay")); } } function onPressDelay(Void) { dispatchEvent({type:"buttonDown"}); if (autoRepeat) { clearInterval(interval); interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval")); } } function onPressRepeat(Void) { dispatchEvent({type:"buttonDown"}); updateAfterEvent(); } function onRelease(Void) { releaseFocus(); phase = "rollover"; if (interval != undefined) { clearInterval(interval); delete interval; } if (getToggle()) { setState(!getState()); } else { refresh(); } dispatchEvent({type:"click"}); } function onDragOut(Void) { phase = "up"; refresh(); dispatchEvent({type:"buttonDragOut"}); } function onDragOver(Void) { if (phase != "up") { onPress(); return(undefined); } phase = "down"; refresh(); } function onReleaseOutside(Void) { releaseFocus(); phase = "up"; if (interval != undefined) { clearInterval(interval); delete interval; } } function onRollOver(Void) { phase = "rollover"; refresh(); } function onRollOut(Void) { phase = "up"; refresh(); } function getLabel(Void) { return(fui.text); } function setLabel(val) { if (typeof(fui) == "string") { createLabel("fui", 8, val); fui.styleName = this; } else { fui.text = val; } var _local4 = fui._getTextFormat(); var _local2 = _local4.getTextExtent2(val); fui._width = _local2.width + 5; fui._height = _local2.height + 5; iconName = fui; setView(__state); } function get emphasized() { return(__emphasized); } function set emphasized(val) { __emphasized = val; var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]] = stateNames[_local2] + "Skin"; if (typeof(this[idNames[_local2 + 8]]) == "movieclip") { this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon"; } _local2++; } showEmphasized(__emphasized); setStateVar(__state); invalidateStyle(); //return(emphasized); } function keyDown(e) { if (e.code == 32) { onPress(); } } function keyUp(e) { if (e.code == 32) { onRelease(); } } function onKillFocus(newFocus) { super.onKillFocus(); if (phase != "up") { phase = "up"; refresh(); } } static var symbolName = "SimpleButton"; static var symbolOwner = mx.controls.SimpleButton; static var version = "2.0.2.126"; var className = "SimpleButton"; var style3dInset = 4; var btnOffset = 1; var __toggle = false; var __state = false; var __emphasized = false; var __emphatic = false; static var falseUp = 0; static var falseDown = 1; static var falseOver = 2; static var falseDisabled = 3; static var trueUp = 4; static var trueDown = 5; static var trueOver = 6; static var trueDisabled = 7; var falseUpSkin = "SimpleButtonUp"; var falseDownSkin = "SimpleButtonIn"; var falseOverSkin = ""; var falseDisabledSkin = "SimpleButtonUp"; var trueUpSkin = "SimpleButtonIn"; var trueDownSkin = ""; var trueOverSkin = ""; var trueDisabledSkin = "SimpleButtonIn"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var phase = "up"; var fui = "falseUpIcon"; var fus = "falseUpSkin"; var fdi = "falseDownIcon"; var fds = "falseDownSkin"; var frs = "falseOverSkin"; var fri = "falseOverIcon"; var dfi = "falseDisabledIcon"; var dfs = "falseDisabledSkin"; var tui = "trueUpIcon"; var tus = "trueUpSkin"; var tdi = "trueDownIcon"; var tds = "trueDownSkin"; var trs = "trueOverSkin"; var tri = "trueOverIcon"; var dts = "trueDisabledSkin"; var dti = "trueDisabledIcon"; var rolloverSkin = mx.controls.SimpleButton.prototype.frs; var rolloverIcon = mx.controls.SimpleButton.prototype.fri; var upSkin = mx.controls.SimpleButton.prototype.fus; var downSkin = mx.controls.SimpleButton.prototype.fds; var disabledSkin = mx.controls.SimpleButton.prototype.dfs; var upIcon = mx.controls.SimpleButton.prototype.fui; var downIcon = mx.controls.SimpleButton.prototype.fdi; var disabledIcon = mx.controls.SimpleButton.prototype.dfi; var initializing = true; var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"]; var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"]; var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"]; var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7}; }
Symbol 226 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager { var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth; function DepthManager () { MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = createChildAtDepth; MovieClip.prototype.setDepthTo = setDepthTo; MovieClip.prototype.setDepthAbove = setDepthAbove; MovieClip.prototype.setDepthBelow = setDepthBelow; MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth; MovieClip.prototype.shuffleDepths = shuffleDepths; MovieClip.prototype.getDepthByFlag = getDepthByFlag; MovieClip.prototype.buildDepthTable = buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1); _global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1); _global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1); _global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1); } static function sortFunction(a, b) { if (a.getDepth() > b.getDepth()) { return(1); } return(-1); } static function test(depth) { if (depth == reservedDepth) { return(false); } return(true); } static function createClassObjectAtDepth(className, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createClassChildAtDepth(className, kTopmost, initObj); break; case kTooltip : _local1 = holder.createClassChildAtDepth(className, kTop, initObj); break; } return(_local1); } static function createObjectAtDepth(linkageName, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj); break; case kTooltip : _local1 = holder.createChildAtDepth(linkageName, kTop, initObj); break; } return(_local1); } function createClassChildAtDepth(className, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function createChildAtDepth(linkageName, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function setDepthTo(depthFlag) { var _local2 = _parent.buildDepthTable(); var _local3 = _parent.getDepthByFlag(depthFlag, _local2); if (_local2[_local3] != undefined) { shuffleDepths(this, _local3, _local2, undefined); } else { swapDepths(_local3); } if (depthFlag == kTopmost) { _topmost = true; } else { delete _topmost; } } function setDepthAbove(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local2 = targetInstance.getDepth() + 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local2] != undefined) && (getDepth() < _local2)) { _local2 = _local2 - 1; } if (_local2 > highestDepth) { _local2 = highestDepth; } if (_local2 == highestDepth) { _parent.shuffleDepths(this, _local2, _local3, "down"); } else if (_local3[_local2] != undefined) { _parent.shuffleDepths(this, _local2, _local3, undefined); } else { swapDepths(_local2); } } function setDepthBelow(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local6 = targetInstance.getDepth() - 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local6] != undefined) && (getDepth() > _local6)) { _local6 = _local6 + 1; } var _local4 = lowestDepth + numberOfAuthortimeLayers; var _local5; for (_local5 in _local3) { var _local2 = _local3[_local5]; if (_local2._parent != undefined) { _local4 = Math.min(_local4, _local2.getDepth()); } } if (_local6 < _local4) { _local6 = _local4; } if (_local6 == _local4) { _parent.shuffleDepths(this, _local6, _local3, "up"); } else if (_local3[_local6] != undefined) { _parent.shuffleDepths(this, _local6, _local3, undefined); } else { swapDepths(_local6); } } function findNextAvailableDepth(targetDepth, depthTable, direction) { var _local5 = lowestDepth + numberOfAuthortimeLayers; if (targetDepth < _local5) { targetDepth = _local5; } if (depthTable[targetDepth] == undefined) { return(targetDepth); } var _local2 = targetDepth; var _local1 = targetDepth; if (direction == "down") { while (depthTable[_local1] != undefined) { _local1--; } return(_local1); } while (depthTable[_local2] != undefined) { _local2++; } return(_local2); } function shuffleDepths(subject, targetDepth, depthTable, direction) { var _local9 = lowestDepth + numberOfAuthortimeLayers; var _local8 = _local9; var _local5; for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local9 = Math.min(_local9, _local7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = "up"; } else { direction = "down"; } } var _local1 = new Array(); for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local1.push(_local7); } } _local1.sort(sortFunction); if (direction == "up") { var _local3; var _local11; do { if (_local1.length <= 0) { break; } _local3 = _local1.pop(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } _local11 = subject.getDepth(); _local3 = _local1.pop(); var _local4 = _local3.getDepth(); if (_local11 > (_local4 + 1)) { if (_local4 >= 0) { subject.swapDepths(_local4 + 1); } else if ((_local11 > _local8) && (_local4 < _local8)) { subject.swapDepths(_local8); } } subject.swapDepths(_local3); } while (_local4 != targetDepth); } else if (direction == "down") { var _local3; do { if (_local1.length <= 0) { break; } _local3 = _local1.shift(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } var _local11 = _local3.getDepth(); _local3 = _local1.shift(); var _local4 = _local3.getDepth(); if ((_local11 < (_local4 - 1)) && (_local4 > 0)) { subject.swapDepths(_local4 - 1); } subject.swapDepths(_local3); } while (_local4 != targetDepth); } } function getDepthByFlag(depthFlag, depthTable) { var _local2 = 0; if ((depthFlag == kTop) || (depthFlag == kNotopmost)) { var _local5 = 0; var _local7 = false; var _local8; for (_local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { if (!_local9._topmost) { _local2 = Math.max(_local2, _local9.getDepth()); } else if (!_local7) { _local5 = _local9.getDepth(); _local7 = true; } else { _local5 = Math.min(_local5, _local9.getDepth()); } } } } _local2 = _local2 + 20; if (_local7) { if (_local2 >= _local5) { _local2 = _local5 - 1; } } } else if (depthFlag == kBottom) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.min(_local2, _local9.getDepth()); } } } _local2 = _local2 - 20; } else if (depthFlag == kTopmost) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.max(_local2, _local9.getDepth()); } } } _local2 = _local2 + 100; } if (_local2 >= highestDepth) { _local2 = highestDepth; } var _local6 = lowestDepth + numberOfAuthortimeLayers; for (var _local9 in depthTable) { var _local4 = depthTable[_local9]; if (_local4._parent != undefined) { _local6 = Math.min(_local6, _local4.getDepth()); } } if (_local2 <= _local6) { _local2 = _local6; } return(_local2); } function buildDepthTable(Void) { var _local5 = new Array(); var _local4; for (_local4 in this) { var _local2 = this[_local4]; var _local3 = typeof(_local2); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) { if (_local2._parent == this) { _local5[_local2.getDepth()] = _local2; } } } return(_local5); } static var reservedDepth = 1048575; static var highestDepth = 1048574; static var lowestDepth = -16383; static var numberOfAuthortimeLayers = 383; static var kCursor = 101; static var kTooltip = 102; static var kTop = 201; static var kBottom = 202; static var kTopmost = 203; static var kNotopmost = 204; static var holder = _root.createEmptyMovieClip("reserved", reservedDepth); static var __depthManager = new mx.managers.DepthManager(); }
Symbol 227 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 228 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager { static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent; function SystemManager () { } static function init(Void) { if (_initialized == false) { _initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); _xAddEventListener = addEventListener; addEventListener = __addEventListener; _xRemoveEventListener = removeEventListener; removeEventListener = __removeEventListener; } } static function addFocusManager(f) { form = f; f.focusManager.activate(); } static function removeFocusManager(f) { } static function onMouseDown(Void) { var _local1 = form; _local1.focusManager._onMouseDown(); } static function onResize(Void) { var _local7 = Stage.width; var _local6 = Stage.height; var _local9 = _global.origWidth; var _local8 = _global.origHeight; var _local3 = Stage.align; var _local5 = (_local9 - _local7) / 2; var _local4 = (_local8 - _local6) / 2; if (_local3 == "T") { _local4 = 0; } else if (_local3 == "B") { _local4 = _local8 - _local6; } else if (_local3 == "L") { _local5 = 0; } else if (_local3 == "R") { _local5 = _local9 - _local7; } else if (_local3 == "LT") { _local4 = 0; _local5 = 0; } else if (_local3 == "TR") { _local4 = 0; _local5 = _local9 - _local7; } else if (_local3 == "LB") { _local4 = _local8 - _local6; _local5 = 0; } else if (_local3 == "RB") { _local4 = _local8 - _local6; _local5 = _local9 - _local7; } if (__screen == undefined) { __screen = new Object(); } __screen.x = _local5; __screen.y = _local4; __screen.width = _local7; __screen.height = _local6; _root.focusManager.relocate(); dispatchEvent({type:"resize"}); } static function get screen() { init(); if (__screen == undefined) { onResize(); } return(__screen); } static var _initialized = false; static var idleFrames = 0; static var isMouseDown = false; static var forms = new Array(); }
Symbol 229 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager { var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner; function PopUpManager () { } static function createModalWindow(parent, o, broadcastOutsideEvents) { var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost); _local2.setDepthBelow(o); o.modalID = _local2._name; _local2._alpha = _global.style.modalTransparency; _local2.tabEnabled = false; if (broadcastOutsideEvents) { _local2.onPress = mixins.onPress; } else { _local2.onPress = mixins.nullFunction; } _local2.onRelease = mixins.nullFunction; _local2.resize = mixins.resize; mx.managers.SystemManager.init(); mx.managers.SystemManager.addEventListener("resize", _local2); _local2.resize(); _local2.useHandCursor = false; _local2.popUp = o; o.modalWindow = _local2; o.deletePopUp = mixins.deletePopUp; o.setVisible = mixins.setVisible; o.getVisible = mixins.getVisible; o.addProperty("visible", o.getVisible, o.setVisible); } static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) { if (mixins == undefined) { mixins = new mx.managers.PopUpManager(); } if (broadcastOutsideEvents == undefined) { broadcastOutsideEvents = false; } var _local5 = parent._root; if (_local5 == undefined) { _local5 = _root; } while (parent != _local5) { parent = parent._parent; } initobj.popUp = true; var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj); var _local2 = _root; var _local6 = _local2.focusManager != undefined; while (_local2._parent != undefined) { _local2 = _local2._parent._root; if (_local2.focusManager != undefined) { _local6 = true; break; } } if (_local6) { _local4.createObject("FocusManager", "focusManager", -1); if (_local4._visible == false) { mx.managers.SystemManager.deactivate(_local4); } } if (modal) { createModalWindow(parent, _local4, broadcastOutsideEvents); } else { if (broadcastOutsideEvents) { _local4.mouseListener = new Object(); _local4.mouseListener.owner = _local4; _local4.mouseListener.onMouseDown = mixins.onMouseDown; Mouse.addListener(_local4.mouseListener); } _local4.deletePopUp = mixins.deletePopUp; } return(_local4); } function onPress(Void) { var _local3 = popUp._root; if (_local3 == undefined) { _local3 = _root; } if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) { return(undefined); } popUp.dispatchEvent({type:"mouseDownOutside"}); } function nullFunction(Void) { } function resize(Void) { var _local2 = mx.managers.SystemManager.__get__screen(); setSize(_local2.width, _local2.height); move(_local2.x, _local2.y); } function deletePopUp(Void) { if (modalWindow != undefined) { _parent.destroyObject(modalWindow._name); } _parent.destroyObject(_name); } function setVisible(v, noEvent) { super.setVisible(v, noEvent); modalWindow._visible = v; } function getVisible(Void) { return(_visible); } function onMouseDown(Void) { var _local3 = owner._root; if (_local3 == undefined) { _local3 = _root; } var _local4 = new Object(); _local4.x = _local3._xmouse; _local4.y = _local3._ymouse; _local3.localToGlobal(_local4); if (owner.hitTest(_local4.x, _local4.y, false)) { } else { owner.mouseDownOutsideHandler(owner); } } static var version = "2.0.2.126"; static var mixins = undefined; }
Symbol 230 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent { var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater; function View () { super(); } function init() { super.init(); tabChildren = true; tabEnabled = false; boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function size() { border_mc.move(0, 0); border_mc.setSize(__get__width(), __get__height()); doLayout(); } function draw() { size(); } function get numChildren() { var _local3 = childNameBase; var _local2 = 0; while (true) { if (this[_local3 + _local2] == undefined) { return(_local2); } _local2++; } } function get tabIndex() { return((tabEnabled ? (__tabIndex) : undefined)); } function addLayoutObject(object) { } function createChild(className, instanceName, initProps) { if (depth == undefined) { depth = 1; } var _local2; if (typeof(className) == "string") { _local2 = createObject(className, instanceName, depth++, initProps); } else { _local2 = createClassObject(className, instanceName, depth++, initProps); } if (_local2 == undefined) { _local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps); } else { this[childNameBase + numChildren] = _local2; _local2._complete = true; childLoaded(_local2); } addLayoutObject(_local2); return(_local2); } function getChildAt(childIndex) { return(this[childNameBase + childIndex]); } function destroyChildAt(childIndex) { if (!((childIndex >= 0) && (childIndex < numChildren))) { return(undefined); } var _local4 = childNameBase + childIndex; var _local6 = numChildren; var _local3; for (_local3 in this) { if (_local3 == _local4) { _local4 = ""; destroyObject(_local3); break; } } var _local2 = Number(childIndex); while (_local2 < (_local6 - 1)) { this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)]; _local2++; } delete this[childNameBase + (_local6 - 1)]; depth--; } function initLayout() { if (!hasBeenLayedOut) { doLayout(); } } function doLayout() { hasBeenLayedOut = true; } function createChildren() { if (border_mc == undefined) { border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this}); } doLater(this, "initLayout"); } function convertToUIObject(obj) { } function childLoaded(obj) { convertToUIObject(obj); } static function extension() { mx.core.ExternalContent.enableExternalContent(); } static var symbolName = "View"; static var symbolOwner = mx.core.View; static var version = "2.0.2.126"; var className = "View"; static var childNameBase = "_child"; var hasBeenLayedOut = false; var _loadExternalClass = "UIComponent"; }
Symbol 231 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher { var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener; function UIEventDispatcher () { super(); } static function addKeyEvents(obj) { if (obj.keyHandler == undefined) { var _local1 = (obj.keyHandler = new Object()); _local1.owner = obj; _local1.onKeyDown = _fEventDispatcher.onKeyDown; _local1.onKeyUp = _fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); } static function removeKeyEvents(obj) { Key.removeListener(obj.keyHandler); } static function addLoadEvents(obj) { if (obj.onLoad == undefined) { obj.onLoad = _fEventDispatcher.onLoad; obj.onUnload = _fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, "onLoad"); } } } static function removeLoadEvents(obj) { delete obj.onLoad; delete obj.onUnload; } static function initialize(obj) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = _fEventDispatcher.__addEventListener; obj.__origAddEventListener = _fEventDispatcher.addEventListener; obj.removeEventListener = _fEventDispatcher.removeEventListener; obj.dispatchEvent = _fEventDispatcher.dispatchEvent; obj.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(mx.events.EventDispatcher, eventObj); dispatchQueue(this, eventObj); } function onKeyDown(Void) { owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onKeyUp(Void) { owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onLoad(Void) { if (__sentLoadEvent != true) { dispatchEvent({type:"load"}); } __sentLoadEvent = true; } function onUnload(Void) { dispatchEvent({type:"unload"}); } function __addEventListener(event, handler) { __origAddEventListener(event, handler); var _local3 = lowLevelEvents; for (var _local5 in _local3) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local2 = _local3[_local5][0]; mx.events.UIEventDispatcher[_local2](this); } } } function removeEventListener(event, handler) { var _local6 = "__q_" + event; mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler); if (this[_local6].length == 0) { var _local2 = lowLevelEvents; for (var _local5 in _local2) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local3 = _local2[_local5][1]; mx.events.UIEventDispatcher[_local2[_local5][1]](this); } } } } static var keyEvents = {keyDown:1, keyUp:1}; static var loadEvents = {load:1, unload:1}; static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]}; static var _fEventDispatcher = undefined; }
Symbol 232 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent { var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded; function ExternalContent () { } function loadExternal(url, placeholderClassName, instanceName, depth, initProps) { var _local2; _local2 = createObject(placeholderClassName, instanceName, depth, initProps); this[mx.core.View.childNameBase + numChildren] = _local2; if (prepList == undefined) { prepList = new Object(); } prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps}; prepareToLoadMovie(_local2); return(_local2); } function prepareToLoadMovie(obj) { obj.unloadMovie(); doLater(this, "waitForUnload"); } function waitForUnload() { var _local3; for (_local3 in prepList) { var _local2 = prepList[_local3]; if (_local2.obj.getBytesTotal() == 0) { if (loadList == undefined) { loadList = new Object(); } loadList[_local3] = _local2; _local2.obj.loadMovie(_local2.url); delete prepList[_local3]; doLater(this, "checkLoadProgress"); } else { doLater(this, "waitForUnload"); } } } function checkLoadProgress() { var _local8 = false; var _local3; for (_local3 in loadList) { var _local2 = loadList[_local3]; _local2.loaded = _local2.obj.getBytesLoaded(); _local2.total = _local2.obj.getBytesTotal(); if (_local2.total > 0) { _local2.obj._visible = false; dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total}); if (_local2.loaded == _local2.total) { if (loadedList == undefined) { loadedList = new Object(); } loadedList[_local3] = _local2; delete loadList[_local3]; doLater(this, "contentLoaded"); } } else if (_local2.total == -1) { if (_local2.failedOnce != undefined) { _local2.failedOnce++; if (_local2.failedOnce > 3) { dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total}); delete loadList[_local3]; } } else { _local2.failedOnce = 0; } } _local8 = true; } if (_local8) { doLater(this, "checkLoadProgress"); } } function contentLoaded() { var _local4; for (_local4 in loadedList) { var _local2 = loadedList[_local4]; _local2.obj._visible = true; _local2.obj._complete = true; var _local3; for (_local3 in _local2.initProps) { _local2.obj[_local3] = _local2.initProps[_local3]; } childLoaded(_local2.obj); dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total}); delete loadedList[_local4]; } } function convertToUIObject(obj) { if (obj.setSize == undefined) { var _local2 = mx.core.UIObject.prototype; obj.addProperty("width", _local2.__get__width, null); obj.addProperty("height", _local2.__get__height, null); obj.addProperty("left", _local2.__get__left, null); obj.addProperty("x", _local2.__get__x, null); obj.addProperty("top", _local2.__get__top, null); obj.addProperty("y", _local2.__get__y, null); obj.addProperty("right", _local2.__get__right, null); obj.addProperty("bottom", _local2.__get__bottom, null); obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible); obj.move = mx.core.UIObject.prototype.move; obj.setSize = mx.core.UIObject.prototype.setSize; obj.size = mx.core.UIObject.prototype.size; mx.events.UIEventDispatcher.initialize(obj); } } static function enableExternalContent() { } static function classConstruct() { var _local1 = mx.core.View.prototype; var _local2 = mx.core.ExternalContent.prototype; _local1.loadExternal = _local2.loadExternal; _local1.prepareToLoadMovie = _local2.prepareToLoadMovie; _local1.waitForUnload = _local2.waitForUnload; _local1.checkLoadProgress = _local2.checkLoadProgress; _local1.contentLoaded = _local2.contentLoaded; _local1.convertToUIObject = _local2.convertToUIObject; return(true); } static var classConstructed = classConstruct(); static var ViewDependency = mx.core.View; }
Symbol 233 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border { var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc; function CustomBorder () { super(); } function get width() { return(__width); } function get height() { return(__height); } function init(Void) { super.init(); } function createChildren(Void) { } function draw(Void) { if (l_mc == undefined) { var _local2 = setSkin(tagL, leftSkin); if (horizontal) { minHeight = l_mc._height; minWidth = l_mc._width; } else { minHeight = l_mc._height; minWidth = l_mc._width; } } if (m_mc == undefined) { setSkin(tagM, middleSkin); if (horizontal) { minHeight = m_mc._height; minWidth = minWidth + m_mc._width; } else { minHeight = minHeight + m_mc._height; minWidth = m_mc._width; } } if (r_mc == undefined) { setSkin(tagR, rightSkin); if (horizontal) { minHeight = r_mc._height; minWidth = minWidth + r_mc._width; } else { minHeight = minHeight + r_mc._height; minWidth = r_mc._width; } } size(); } function size(Void) { l_mc.move(0, 0); if (horizontal) { r_mc.move(width - r_mc.width, 0); m_mc.move(l_mc.width, 0); m_mc.setSize(r_mc.x - m_mc.x, m_mc.height); } else { r_mc.move(0, height - r_mc.height, 0); m_mc.move(0, l_mc.height); m_mc.setSize(m_mc.width, r_mc.y - m_mc.y); } } static var symbolName = "CustomBorder"; static var symbolOwner = mx.skins.CustomBorder; static var version = "2.0.2.126"; var className = "CustomBorder"; static var tagL = 0; static var tagM = 1; static var tagR = 2; var idNames = new Array("l_mc", "m_mc", "r_mc"); var leftSkin = "F3PieceLeft"; var middleSkin = "F3PieceMiddle"; var rightSkin = "F3PieceRight"; var horizontal = true; }
Symbol 234 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder { var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height; function ScrollThumb () { super(); } function createChildren(Void) { super.createChildren(); useHandCursor = false; } function setRange(_ymin, _ymax, _datamin, _datamax) { ymin = _ymin; ymax = _ymax; datamin = _datamin; datamax = _datamax; } function dragThumb(Void) { scrollMove = _ymouse - lastY; scrollMove = scrollMove + _y; if (scrollMove < ymin) { scrollMove = ymin; } else if (scrollMove > ymax) { scrollMove = ymax; } _parent.isScrolling = true; _y = scrollMove; var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin; _parent.scrollPosition = _local2; _parent.dispatchScrollEvent("ThumbTrack"); updateAfterEvent(); } function stopDragThumb(Void) { _parent.isScrolling = false; _parent.dispatchScrollEvent("ThumbPosition"); _parent.dispatchScrollChangedEvent(); delete onMouseMove; } function onPress(Void) { _parent.pressFocus(); lastY = _ymouse; onMouseMove = dragThumb; super.onPress(); } function onRelease(Void) { _parent.releaseFocus(); stopDragThumb(); super.onRelease(); } function onReleaseOutside(Void) { _parent.releaseFocus(); stopDragThumb(); super.onReleaseOutside(); } function draw() { super.draw(); if (grip_mc == undefined) { setSkin(3, gripSkin); } } function size() { super.size(); grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2); } static var symbolOwner = mx.skins.CustomBorder.symbolOwner; var className = "ScrollThumb"; var btnOffset = 0; var horizontal = false; var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc"); }
Symbol 235 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent { var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse; function ScrollBar () { super(); } function get scrollPosition() { return(_scrollPosition); } function set scrollPosition(pos) { _scrollPosition = pos; if (isScrolling != true) { pos = Math.min(pos, maxPos); pos = Math.max(pos, minPos); var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top; scrollThumb_mc.move(0, _local3); } //return(scrollPosition); } function get pageScrollSize() { return(largeScroll); } function set pageScrollSize(lScroll) { largeScroll = lScroll; //return(pageScrollSize); } function set lineScrollSize(sScroll) { smallScroll = sScroll; //return(lineScrollSize); } function get lineScrollSize() { return(smallScroll); } function get virtualHeight() { return(__height); } function init(Void) { super.init(); _scrollPosition = 0; tabEnabled = false; focusEnabled = false; boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function createChildren(Void) { if (scrollTrack_mc == undefined) { setSkin(skinIDTrack, scrollTrackName); } scrollTrack_mc.visible = false; var _local3 = new Object(); _local3.enabled = false; _local3.preset = mx.controls.SimpleButton.falseDisabled; _local3.initProperties = 0; _local3.autoRepeat = true; _local3.tabEnabled = false; var _local2; if (upArrow_mc == undefined) { _local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3); } _local2.buttonDownHandler = onUpArrow; _local2.clickHandler = onScrollChanged; _minHeight = _local2.height; _minWidth = _local2.width; if (downArrow_mc == undefined) { _local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3); } _local2.buttonDownHandler = onDownArrow; _local2.clickHandler = onScrollChanged; _minHeight = _minHeight + _local2.height; } function createButton(linkageName, id, skinID, o) { if (skinID == skinIDUpArrow) { o.falseUpSkin = upArrowUpName; o.falseDownSkin = upArrowDownName; o.falseOverSkin = upArrowOverName; } else { o.falseUpSkin = downArrowUpName; o.falseDownSkin = downArrowDownName; o.falseOverSkin = downArrowOverName; } var _local3 = createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return(_local3); } function createThumb(Void) { var _local2 = new Object(); _local2.validateNow = true; _local2.tabEnabled = false; _local2.leftSkin = thumbTopName; _local2.middleSkin = thumbMiddleName; _local2.rightSkin = thumbBottomName; _local2.gripSkin = thumbGripName; createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2); } function setScrollProperties(pSize, mnPos, mxPos, ls) { var _local4; var _local2 = scrollTrack_mc; pageSize = pSize; largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize)); minPos = Math.max(mnPos, 0); maxPos = Math.max(mxPos, 0); _scrollPosition = Math.max(minPos, _scrollPosition); _scrollPosition = Math.min(maxPos, _scrollPosition); if (((maxPos - minPos) > 0) && (enabled)) { var _local5 = _scrollPosition; if (!initializing) { upArrow_mc.enabled = true; downArrow_mc.enabled = true; } _local2.onPress = (_local2.onDragOver = startTrackScroller); _local2.onRelease = releaseScrolling; _local2.onDragOut = (_local2.stopScrolling = stopScrolling); _local2.onReleaseOutside = releaseScrolling; _local2.useHandCursor = false; if (scrollThumb_mc == undefined) { createThumb(); } var _local3 = scrollThumb_mc; if (scrollTrackOverName.length > 0) { _local2.onRollOver = trackOver; _local2.onRollOut = trackOut; } _local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height; if (_local4 < _local3.minHeight) { if (_local2.height < _local3.minHeight) { _local3.__set__visible(false); } else { _local4 = _local3.minHeight; _local3.__set__visible(true); _local3.setSize(_minWidth, _local3.minHeight + 0); } } else { _local3.__set__visible(true); _local3.setSize(_minWidth, _local4); } _local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos); _local5 = Math.min(_local5, maxPos); scrollPosition = (Math.max(_local5, minPos)); } else { scrollThumb_mc.__set__visible(false); if (!initializing) { upArrow_mc.enabled = false; downArrow_mc.enabled = false; } delete _local2.onPress; delete _local2.onDragOver; delete _local2.onRelease; delete _local2.onDragOut; delete _local2.onRollOver; delete _local2.onRollOut; delete _local2.onReleaseOutside; } if (initializing) { scrollThumb_mc.__set__visible(false); } } function setEnabled(enabledFlag) { super.setEnabled(enabledFlag); setScrollProperties(pageSize, minPos, maxPos, largeScroll); } function draw(Void) { if (initializing) { initializing = false; scrollTrack_mc.visible = true; upArrow_mc.__set__visible(true); downArrow_mc.__set__visible(true); } size(); } function size(Void) { if (_height == 1) { return(undefined); } if (upArrow_mc == undefined) { return(undefined); } var _local3 = upArrow_mc.__get__height(); var _local2 = downArrow_mc.__get__height(); upArrow_mc.move(0, 0); var _local4 = scrollTrack_mc; _local4._y = _local3; _local4._height = (virtualHeight - _local3) - _local2; downArrow_mc.move(0, virtualHeight - _local2); setScrollProperties(pageSize, minPos, maxPos, largeScroll); } function dispatchScrollEvent(detail) { dispatchEvent({type:"scroll", detail:detail}); } function isScrollBarKey(k) { if (k == 36) { if (scrollPosition != 0) { scrollPosition = (0); dispatchScrollEvent(minMode); } return(true); } if (k == 35) { if (scrollPosition < maxPos) { scrollPosition = (maxPos); dispatchScrollEvent(maxMode); } return(true); } return(false); } function scrollIt(inc, mode) { var _local3 = smallScroll; if (inc != "Line") { _local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll)); } var _local2 = _scrollPosition + (mode * _local3); if (_local2 > maxPos) { _local2 = maxPos; } else if (_local2 < minPos) { _local2 = minPos; } if (scrollPosition != _local2) { scrollPosition = (_local2); var _local4 = ((mode < 0) ? (minusMode) : (plusMode)); dispatchScrollEvent(inc + _local4); } } function startTrackScroller(Void) { _parent.pressFocus(); if (_parent.scrollTrackDownName.length > 0) { if (_parent.scrollTrackDown_mc == undefined) { _parent.setSkin(skinIDTrackDown, scrollTrackDownName); } else { _parent.scrollTrackDown_mc.visible = true; } } _parent.trackScroller(); _parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1); } function scrollInterval(inc, mode) { clearInterval(scrolling); if (inc == "Page") { trackScroller(); } else { scrollIt(inc, mode); } scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode); } function trackScroller(Void) { if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) { scrollIt("Page", 1); } else if (scrollThumb_mc._y > _ymouse) { scrollIt("Page", -1); } } function dispatchScrollChangedEvent(Void) { dispatchEvent({type:"scrollChanged"}); } function stopScrolling(Void) { clearInterval(_parent.scrolling); _parent.scrollTrackDown_mc.visible = false; } function releaseScrolling(Void) { _parent.releaseFocus(); stopScrolling(); _parent.dispatchScrollChangedEvent(); } function trackOver(Void) { if (_parent.scrollTrackOverName.length > 0) { if (_parent.scrollTrackOver_mc == undefined) { _parent.setSkin(skinIDTrackOver, scrollTrackOverName); } else { _parent.scrollTrackOver_mc.visible = true; } } } function trackOut(Void) { _parent.scrollTrackOver_mc.visible = false; } function onUpArrow(Void) { _parent.scrollIt("Line", -1); } function onDownArrow(Void) { _parent.scrollIt("Line", 1); } function onScrollChanged(Void) { _parent.dispatchScrollChangedEvent(); } static var symbolOwner = mx.core.UIComponent; var className = "ScrollBar"; var minPos = 0; var maxPos = 0; var pageSize = 0; var largeScroll = 0; var smallScroll = 1; var _scrollPosition = 0; var scrollTrackName = "ScrollTrack"; var scrollTrackOverName = ""; var scrollTrackDownName = ""; var upArrowName = "BtnUpArrow"; var upArrowUpName = "ScrollUpArrowUp"; var upArrowOverName = "ScrollUpArrowOver"; var upArrowDownName = "ScrollUpArrowDown"; var downArrowName = "BtnDownArrow"; var downArrowUpName = "ScrollDownArrowUp"; var downArrowOverName = "ScrollDownArrowOver"; var downArrowDownName = "ScrollDownArrowDown"; var thumbTopName = "ScrollThumbTopUp"; var thumbMiddleName = "ScrollThumbMiddleUp"; var thumbBottomName = "ScrollThumbBottomUp"; var thumbGripName = "ScrollThumbGripUp"; static var skinIDTrack = 0; static var skinIDTrackOver = 1; static var skinIDTrackDown = 2; static var skinIDUpArrow = 3; static var skinIDDownArrow = 4; static var skinIDThumb = 5; var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc"); var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); var initializing = true; }
Symbol 236 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View { var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent; function ScrollView () { super(); } function getHScrollPolicy(Void) { return(__hScrollPolicy); } function setHScrollPolicy(policy) { __hScrollPolicy = policy.toLowerCase(); if (__width == undefined) { return(undefined); } setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding); } function get hScrollPolicy() { return(getHScrollPolicy()); } function set hScrollPolicy(policy) { setHScrollPolicy(policy); //return(hScrollPolicy); } function getVScrollPolicy(Void) { return(__vScrollPolicy); } function setVScrollPolicy(policy) { __vScrollPolicy = policy.toLowerCase(); if (__width == undefined) { return(undefined); } setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding); } function get vScrollPolicy() { return(getVScrollPolicy()); } function set vScrollPolicy(policy) { setVScrollPolicy(policy); //return(vScrollPolicy); } function get hPosition() { return(getHPosition()); } function set hPosition(pos) { setHPosition(pos); //return(hPosition); } function getHPosition(Void) { return(__hPosition); } function setHPosition(pos) { hScroller.__set__scrollPosition(pos); __hPosition = pos; } function get vPosition() { return(getVPosition()); } function set vPosition(pos) { setVPosition(pos); //return(vPosition); } function getVPosition(Void) { return(__vPosition); } function setVPosition(pos) { vScroller.__set__scrollPosition(pos); __vPosition = pos; } function get maxVPosition() { var _local2 = vScroller.maxPos; return(((_local2 == undefined) ? 0 : (_local2))); } function get maxHPosition() { return(getMaxHPosition()); } function set maxHPosition(pos) { setMaxHPosition(pos); //return(maxHPosition); } function getMaxHPosition(Void) { if (__maxHPosition != undefined) { return(__maxHPosition); } var _local2 = hScroller.maxPos; return(((_local2 == undefined) ? 0 : (_local2))); } function setMaxHPosition(pos) { __maxHPosition = pos; } function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) { var _local3 = getViewMetrics(); if (hPadding == undefined) { hPadding = 0; } if (wPadding == undefined) { wPadding = 0; } propsInited = true; delete scrollAreaChanged; heightPadding = hPadding; widthPadding = wPadding; if (colWidth == 0) { colWidth = 1; } if (rwHeight == 0) { rwHeight = 1; } var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth); if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) { if ((hScroller == undefined) || (specialHScrollCase)) { delete specialHScrollCase; hScroller = createObject("HScrollBar", "hSB", 1001); hScroller.__set__lineScrollSize(20); hScroller.scrollHandler = scrollProxy; hScroller.__set__scrollPosition(__hPosition); scrollAreaChanged = true; } if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) { hScroller.setScrollProperties(_local5, 0, colCount - _local5); viewableColumns = _local5; numberOfCols = colCount; columnWidth = colWidth; } } else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) { hScroller.removeMovieClip(); delete hScroller; scrollAreaChanged = true; } if (heightPadding == undefined) { heightPadding = 0; } var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight); var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0; if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) { if (vScroller == undefined) { vScroller = createObject("VScrollBar", "vSB", 1002); vScroller.scrollHandler = scrollProxy; vScroller.__set__scrollPosition(__vPosition); scrollAreaChanged = true; rowH = 0; } if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) { vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8); viewableRows = _local4; rowC = rwCount; rowH = rwHeight; oldRndUp = _local8; } } else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) { vScroller.removeMovieClip(); delete vScroller; scrollAreaChanged = true; } numberOfCols = colCount; columnWidth = colWidth; if (scrollAreaChanged) { doLayout(); var _local2 = __viewMetrics; var _local12 = ((owner != undefined) ? (owner) : this); _local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom); } if (!enabled) { setEnabled(false); } } function getViewMetrics(Void) { var _local2 = __viewMetrics; var _local3 = border_mc.__get__borderMetrics(); _local2.left = _local3.left; _local2.right = _local3.right; if (vScroller != undefined) { _local2.right = _local2.right + vScroller.minWidth; } _local2.top = _local3.top; if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) { hScroller = createObject("FHScrollBar", "hSB", 1001); specialHScrollCase = true; } _local2.bottom = _local3.bottom; if (hScroller != undefined) { _local2.bottom = _local2.bottom + hScroller.minHeight; } return(_local2); } function doLayout(Void) { var _local10 = __get__width(); var _local8 = __get__height(); delete invLayout; var _local3 = (__viewMetrics = getViewMetrics()); var _local2 = _local3.left; var _local9 = _local3.right; var _local5 = _local3.top; var _local11 = _local3.bottom; var _local7 = hScroller; var _local6 = vScroller; _local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0); _local7.move(_local2, _local8 - _local11); _local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11); _local6.move(_local10 - _local9, _local5); var _local4 = mask_mc; _local4._width = (_local10 - _local2) - _local9; _local4._height = (_local8 - _local5) - _local11; _local4._x = _local2; _local4._y = _local5; } function createChild(id, name, props) { var _local2 = super.createChild(id, name, props); return(_local2); } function init(Void) { super.init(); __viewMetrics = new Object(); if (_global.__SVMouseWheelManager == undefined) { var _local4 = (_global.__SVMouseWheelManager = new Object()); _local4.onMouseWheel = __onMouseWheel; Mouse.addListener(_local4); } } function __onMouseWheel(delta, scrollTarget) { var _local4 = scrollTarget; var _local1; while (_local4 != undefined) { if (_local4 instanceof mx.core.ScrollView) { _local1 = _local4; } _local4 = _local4._parent; } if (_local1 != undefined) { _local4 = ((delta <= 0) ? 1 : -1); var _local2 = _local1.vScroller.lineScrollSize; if (_local2 == undefined) { _local2 = 0; } _local2 = Math.max(Math.abs(delta), _local2); var _local3 = _local1.vPosition + (_local2 * _local4); _local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition)); _local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition}); } } function createChildren(Void) { super.createChildren(); if (mask_mc == undefined) { mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH); } mask_mc._visible = false; } function invalidate(Void) { super.invalidate(); } function draw(Void) { size(); } function size(Void) { super.size(); } function scrollProxy(docObj) { _parent.onScroll(docObj); } function onScroll(docObj) { var _local3 = docObj.target; var _local2 = _local3.scrollPosition; if (_local3 == vScroller) { var _local4 = "vertical"; var _local5 = "__vPosition"; } else { var _local4 = "horizontal"; var _local5 = "__hPosition"; } this[_local5] = _local2; dispatchEvent({type:"scroll", direction:_local4, position:_local2}); } function setEnabled(v) { vScroller.enabled = (hScroller.enabled = v); } function childLoaded(obj) { super.childLoaded(obj); obj.setMask(mask_mc); } static var symbolName = "ScrollView"; static var symbolOwner = mx.core.ScrollView; static var version = "2.0.2.126"; var className = "ScrollView"; var __vScrollPolicy = "auto"; var __hScrollPolicy = "off"; var __vPosition = 0; var __hPosition = 0; var numberOfCols = 0; var rowC = 0; var columnWidth = 1; var rowH = 0; var heightPadding = 0; var widthPadding = 0; var MASK_DEPTH = 10000; }
Symbol 237 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object { var length, splice, dispatchEvent, sortOn, reverse, sort; function DataProvider (obj) { super(); } static function Initialize(obj) { var _local4 = mixinProps; var _local6 = _local4.length; obj = obj.prototype; var _local3 = 0; while (_local3 < _local6) { obj[_local4[_local3]] = mixins[_local4[_local3]]; _global.ASSetPropFlags(obj, _local4[_local3], 1); _local3++; } mx.events.EventDispatcher.initialize(obj); _global.ASSetPropFlags(obj, "addEventListener", 1); _global.ASSetPropFlags(obj, "removeEventListener", 1); _global.ASSetPropFlags(obj, "dispatchEvent", 1); _global.ASSetPropFlags(obj, "dispatchQueue", 1); Object.prototype.LargestID = 0; Object.prototype.getID = function () { if (this.__ID__ == undefined) { this.__ID__ = Object.prototype.LargestID++; _global.ASSetPropFlags(this, "__ID__", 1); } return(this.__ID__); }; _global.ASSetPropFlags(Object.prototype, "LargestID", 1); _global.ASSetPropFlags(Object.prototype, "getID", 1); return(true); } function addItemAt(index, value) { if (index < length) { splice(index, 0, value); } else if (index > length) { trace("Cannot add an item past the end of the DataProvider"); return(undefined); } this[index] = value; updateViews("addItems", index, index); } function addItem(value) { addItemAt(length, value); } function addItemsAt(index, newItems) { index = Math.min(length, index); newItems.unshift(index, 0); splice.apply(this, newItems); newItems.splice(0, 2); updateViews("addItems", index, (index + newItems.length) - 1); } function removeItemsAt(index, len) { var _local3 = new Array(); var _local2 = 0; while (_local2 < len) { _local3.push(getItemID(index + _local2)); _local2++; } var _local6 = splice(index, len); dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3}); } function removeItemAt(index) { var _local2 = this[index]; removeItemsAt(index, 1); return(_local2); } function removeAll(Void) { splice(0); updateViews("removeItems", 0, length - 1); } function replaceItemAt(index, itemObj) { if ((index < 0) || (index >= length)) { return(undefined); } var _local3 = getItemID(index); this[index] = itemObj; this[index].__ID__ = _local3; updateViews("updateItems", index, index); } function getItemAt(index) { return(this[index]); } function getItemID(index) { var _local2 = this[index]; if ((typeof(_local2) != "object") && (_local2 != undefined)) { return(index); } return(_local2.getID()); } function sortItemsBy(fieldName, order) { if (typeof(order) == "string") { sortOn(fieldName); if (order.toUpperCase() == "DESC") { reverse(); } } else { sortOn(fieldName, order); } updateViews("sort"); } function sortItems(compareFunc, optionFlags) { sort(compareFunc, optionFlags); updateViews("sort"); } function editField(index, fieldName, newData) { this[index][fieldName] = newData; dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName}); } function getEditingData(index, fieldName) { return(this[index][fieldName]); } function updateViews(event, first, last) { dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last}); } static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"]; static var evtDipatcher = mx.events.EventDispatcher; static var mixins = new mx.controls.listclasses.DataProvider(); }
Symbol 238 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView { var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc; function ScrollSelectList () { super(); } function layoutContent(x, y, w, h) { delete invLayoutContent; var _local4 = Math.ceil(h / __rowHeight); roundUp = (h % __rowHeight) != 0; var _local12 = _local4 - __rowCount; if (_local12 < 0) { var _local3 = _local4; while (_local3 < __rowCount) { rows[_local3].removeMovieClip(); delete rows[_local3]; _local3++; } topRowZ = topRowZ + _local12; } else if (_local12 > 0) { if (rows == undefined) { rows = new Array(); } var _local3 = __rowCount; while (_local3 < _local4) { var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3})); _local2._x = x; _local2._y = Math.round((_local3 * __rowHeight) + y); _local2.setSize(w, __rowHeight); _local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3)); _local2.lastY = _local2._y; _local3++; } } if (w != tW) { var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4)); var _local3 = 0; while (_local3 < _local11) { rows[_local3].setSize(w, __rowHeight); _local3++; } } if ((layoutX != x) || (layoutY != y)) { var _local3 = 0; while (_local3 < _local4) { rows[_local3]._x = x; rows[_local3]._y = Math.round((_local3 * __rowHeight) + y); _local3++; } } __rowCount = _local4; layoutX = x; layoutY = y; tW = w; tH = h; } function getRowHeight(Void) { return(__rowHeight); } function setRowHeight(v) { __rowHeight = v; invRowHeight = true; invalidate(); } function get rowHeight() { return(getRowHeight()); } function set rowHeight(w) { setRowHeight(w); //return(rowHeight); } function setRowCount(v) { __rowCount = v; } function getRowCount(Void) { var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount)); return(_local2); } function get rowCount() { return(getRowCount()); } function set rowCount(w) { setRowCount(w); //return(rowCount); } function setEnabled(v) { super.setEnabled(v); invUpdateControl = true; invalidate(); } function setCellRenderer(cR) { __cellRenderer = cR; var _local2 = 0; while (_local2 < rows.length) { rows[_local2].setCellRenderer(true); _local2++; } invUpdateControl = true; invalidate(); } function set cellRenderer(cR) { setCellRenderer(cR); //return(cellRenderer); } function get cellRenderer() { return(__cellRenderer); } function set labelField(field) { setLabelField(field); //return(labelField); } function setLabelField(field) { __labelField = field; invUpdateControl = true; invalidate(); } function get labelField() { return(__labelField); } function set labelFunction(func) { setLabelFunction(func); //return(labelFunction); } function setLabelFunction(func) { __labelFunction = func; invUpdateControl = true; invalidate(); } function get labelFunction() { return(__labelFunction); } function set iconField(field) { setIconField(field); //return(iconField); } function setIconField(field) { __iconField = field; invUpdateControl = true; invalidate(); } function get iconField() { return(__iconField); } function set iconFunction(func) { setIconFunction(func); //return(iconFunction); } function setIconFunction(func) { __iconFunction = func; invUpdateControl = true; invalidate(); } function get iconFunction() { return(__iconFunction); } function setVPosition(pos) { if (pos < 0) { return(undefined); } if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) { return(undefined); } var _local8 = pos - __vPosition; if (_local8 == 0) { return(undefined); } __vPosition = pos; var _local10 = _local8 > 0; _local8 = Math.abs(_local8); if (_local8 >= __rowCount) { updateControl(); } else { var _local4 = new Array(); var _local9 = __rowCount - _local8; var _local12 = _local8 * __rowHeight; var _local11 = _local9 * __rowHeight; var _local6 = (_local10 ? 1 : -1); var _local3 = 0; while (_local3 < __rowCount) { if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) { rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11); var _local5 = _local3 + (_local6 * _local9); var _local7 = __vPosition + _local5; _local4[_local5] = rows[_local3]; _local4[_local5].rowIndex = _local5; _local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false); } else { rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12); var _local5 = _local3 - (_local6 * _local8); _local4[_local5] = rows[_local3]; _local4[_local5].rowIndex = _local5; } _local3++; } rows = _local4; _local3 = 0; while (_local3 < __rowCount) { rows[_local3].swapDepths(baseRowZ + _local3); _local3++; } } lastPosition = pos; super.setVPosition(pos); } function setPropertiesAt(index, obj) { var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(undefined); } if (propertyTable == undefined) { propertyTable = new Object(); } propertyTable[_local2] = obj; rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index)); } function getPropertiesAt(index) { var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(undefined); } return(propertyTable[_local2]); } function getPropertiesOf(obj) { var _local2 = obj.getID(); if (_local2 == undefined) { return(undefined); } return(propertyTable[_local2]); } function getStyle(styleProp) { var _local2 = super.getStyle(styleProp); var _local3 = mx.styles.StyleManager.colorNames[_local2]; if (_local3 != undefined) { _local2 = _local3; } return(_local2); } function updateControl(Void) { var _local2 = 0; while (_local2 < __rowCount) { rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition)); _local2++; } delete invUpdateControl; } function getStateAt(index) { return((isSelected(index) ? "selected" : "normal")); } function selectRow(rowIndex, transition, allowChangeEvent) { if (!selectable) { return(undefined); } var _local3 = __vPosition + rowIndex; var _local8 = __dataProvider.getItemAt(_local3); var _local5 = rows[rowIndex]; if (_local8 == undefined) { return(undefined); } if (transition == undefined) { transition = true; } if (allowChangeEvent == undefined) { allowChangeEvent = wasKeySelected; } changeFlag = true; if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) { clearSelected(transition); selectItem(_local3, true); lastSelected = _local3; _local5.drawRow(_local5.item, getStateAt(_local3), transition); } else if (Key.isDown(16) && (multipleSelection)) { if (lastSelected == undefined) { lastSelected = _local3; } var _local4 = ((lastSelected < _local3) ? 1 : -1); clearSelected(false); var _local2 = lastSelected; while (_local2 != _local3) { selectItem(_local2, true); if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) { rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false); } _local2 = _local2 + _local4; } selectItem(_local3, true); _local5.drawRow(_local5.item, "selected", transition); } else if (Key.isDown(17)) { var _local7 = isSelected(_local3); if ((!multipleSelection) || (wasKeySelected)) { clearSelected(transition); } if (!((!multipleSelection) && (_local7))) { selectItem(_local3, !_local7); var _local9 = ((!_local7) ? "selected" : "normal"); _local5.drawRow(_local5.item, _local9, transition); } lastSelected = _local3; } if (allowChangeEvent) { dispatchEvent({type:"change"}); } delete wasKeySelected; } function dragScroll(Void) { clearInterval(dragScrolling); if (_ymouse < 0) { setVPosition(__vPosition - 1); selectRow(0, false); var _local2 = Math.min((-_ymouse) - 30, 0); scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval; dragScrolling = setInterval(this, "dragScroll", scrollInterval); dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition}); } else if (_ymouse > __height) { var _local3 = __vPosition; setVPosition(__vPosition + 1); if (_local3 != __vPosition) { selectRow((__rowCount - 1) - roundUp, false); } var _local2 = Math.min((_ymouse - __height) - 30, 0); scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval; dragScrolling = setInterval(this, "dragScroll", scrollInterval); dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition}); } else { dragScrolling = setInterval(this, "dragScroll", 15); } updateAfterEvent(); } function __onMouseUp(Void) { clearInterval(dragScrolling); delete dragScrolling; delete dragScrolling; delete isPressed; delete onMouseUp; if (!selectable) { return(undefined); } if (changeFlag) { dispatchEvent({type:"change"}); } delete changeFlag; } function moveSelBy(incr) { if (!selectable) { setVPosition(__vPosition + incr); return(undefined); } var _local3 = getSelectedIndex(); if (_local3 == undefined) { _local3 = -1; } var _local2 = _local3 + incr; _local2 = Math.max(0, _local2); _local2 = Math.min(getLength() - 1, _local2); if (_local2 == _local3) { return(undefined); } if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) { setVPosition(_local3); } if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) { setVPosition(__vPosition + incr); } wasKeySelected = true; selectRow(_local2 - __vPosition, false); } function keyDown(e) { if (selectable) { if (findInputText()) { return(undefined); } } if (e.code == 40) { moveSelBy(1); } else if (e.code == 38) { moveSelBy(-1); } else if (e.code == 34) { if (selectable) { var _local3 = getSelectedIndex(); if (_local3 == undefined) { _local3 = 0; } setVPosition(_local3); } moveSelBy((__rowCount - 1) - roundUp); } else if (e.code == 33) { if (selectable) { var _local3 = getSelectedIndex(); if (_local3 == undefined) { _local3 = 0; } setVPosition(_local3); } moveSelBy((1 - __rowCount) + roundUp); } else if (e.code == 36) { moveSelBy(-__dataProvider.length); } else if (e.code == 35) { moveSelBy(__dataProvider.length); } } function findInputText(Void) { var _local2 = Key.getAscii(); if ((_local2 >= 33) && (_local2 <= 126)) { findString(String.fromCharCode(_local2)); return(true); } } function findString(str) { if (__dataProvider.length == 0) { return(undefined); } var _local4 = getSelectedIndex(); if (_local4 == undefined) { _local4 = 0; } var _local6 = 0; var _local3 = _local4 + 1; while (_local3 != _local4) { var _local2 = __dataProvider.getItemAt(_local3); if (_local2 instanceof XMLNode) { _local2 = _local2.attributes[__labelField]; } else if (typeof(_local2) != "string") { _local2 = String(_local2[__labelField]); } _local2 = _local2.substring(0, str.length); if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) { _local6 = _local3 - _local4; break; } if (_local3 >= (getLength() - 1)) { _local3 = -1; } _local3++; } if (_local6 != 0) { moveSelBy(_local6); } } function onRowPress(rowIndex) { if (!enabled) { return(undefined); } isPressed = true; dragScrolling = setInterval(this, "dragScroll", 15); onMouseUp = __onMouseUp; if (!selectable) { return(undefined); } selectRow(rowIndex); } function onRowRelease(rowIndex) { } function onRowRollOver(rowIndex) { if (!enabled) { return(undefined); } var _local2 = rows[rowIndex].item; if (getStyle("useRollOver") && (_local2 != undefined)) { rows[rowIndex].drawRow(_local2, "highlighted", false); } dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition}); } function onRowRollOut(rowIndex) { if (!enabled) { return(undefined); } if (getStyle("useRollOver")) { rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false); } dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition}); } function onRowDragOver(rowIndex) { if (((!enabled) || (isPressed != true)) || (!selectable)) { return(undefined); } if (dropEnabled) { } else if (dragScrolling) { selectRow(rowIndex, false); } else { onMouseUp = __onMouseUp; onRowPress(rowIndex); } } function onRowDragOut(rowIndex) { if (!enabled) { return(undefined); } if (dragEnabled) { } else { onRowRollOut(rowIndex); } } function init(Void) { super.init(); tabEnabled = true; tabChildren = false; if (__dataProvider == undefined) { __dataProvider = new Array(); __dataProvider.addEventListener("modelChanged", this); } baseRowZ = (topRowZ = 10); } function createChildren(Void) { super.createChildren(); listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH); invLayoutContent = true; invalidate(); } function draw(Void) { if (invRowHeight) { delete invRowHeight; __rowCount = 0; listContent.removeMovieClip(); listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH); } if (invUpdateControl) { updateControl(); } border_mc.draw(); } function invalidateStyle(propName) { if (isRowStyle[propName]) { invUpdateControl = true; invalidate(); } else { var _local3 = 0; while (_local3 < __rowCount) { rows[_local3].invalidateStyle(propName); _local3++; } } super.invalidateStyle(propName); } static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList); static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array); var CONTENTDEPTH = 100; var __hPosition = 0; var __rowRenderer = "SelectableRow"; var __rowHeight = 22; var __rowCount = 0; var __labelField = "label"; var minScrollInterval = 30; var dropEnabled = false; var dragEnabled = false; var className = "ScrollSelectList"; var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true}; var roundUp = 0; var selectable = true; var multipleSelection = false; }
Symbol 239 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList { var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth; function List () { super(); } function setEnabled(v) { super.setEnabled(v); border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor"); border_mc.invalidate(); } function get labels() { return(__labels); } function set labels(lbls) { __labels = lbls; setDataProvider(lbls); //return(labels); } function setVPosition(pos) { pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos); pos = Math.max(0, pos); super.setVPosition(pos); } function setHPosition(pos) { pos = Math.max(Math.min(__maxHPosition, pos), 0); super.setHPosition(pos); hScroll(pos); } function setMaxHPosition(pos) { __maxHPosition = pos; invScrollProps = true; invalidate(); } function setHScrollPolicy(policy) { if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) { return(undefined); } super.setHScrollPolicy(policy); if (policy == "off") { setHPosition(0); setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition)); } } function setRowCount(rC) { if (isNaN(rC)) { return(undefined); } var _local2 = getViewMetrics(); setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom); } function layoutContent(x, y, tW, tH, dW, dH) { totalWidth = tW; totalHeight = tH; displayWidth = dW; var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW)); super.layoutContent(x, y, _local4, dH); } function modelChanged(eventObj) { super.modelChanged(eventObj); var _local3 = eventObj.eventName; if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) { invScrollProps = true; invalidate("invScrollProps"); } } function onScroll(eventObj) { var _local3 = eventObj.target; if (_local3 == vScroller) { setVPosition(_local3.scrollPosition); } else { hScroll(_local3.scrollPosition); } super.onScroll(eventObj); } function hScroll(pos) { __hPosition = pos; listContent._x = -pos; } function init(Void) { super.init(); if (labels.length > 0) { var _local6 = new Array(); var _local3 = 0; while (_local3 < labels.length) { _local6.addItem({label:labels[_local3], data:data[_local3]}); _local3++; } setDataProvider(_local6); } __maxHPosition = 0; } function createChildren(Void) { super.createChildren(); listContent.setMask(mask_mc); border_mc.move(0, 0); border_mc.setSize(__width, __height); } function getRowCount(Void) { var _local2 = getViewMetrics(); return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount))); } function size(Void) { super.size(); configureScrolling(); var _local3 = getViewMetrics(); layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom); } function draw(Void) { if (invRowHeight) { invScrollProps = true; super.draw(); listContent.setMask(mask_mc); invLayoutContent = true; } if (invScrollProps) { configureScrolling(); delete invScrollProps; } if (invLayoutContent) { var _local3 = getViewMetrics(); layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom); } super.draw(); } function configureScrolling(Void) { var _local2 = __dataProvider.length; if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) { setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition))); } var _local3 = getViewMetrics(); var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right)); if (_local2 == undefined) { _local2 = 0; } setScrollProperties(_local4, 1, _local2, __rowHeight); if (oldVWidth != _local4) { invLayoutContent = true; } oldVWidth = _local4; } static var symbolOwner = mx.controls.List; static var symbolName = "List"; var className = "List"; static var version = "2.0.2.126"; var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1}; var scrollDepth = 1; var __vScrollPolicy = "on"; var autoHScrollAble = false; }
Symbol 240 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object { static var IntervalToken; var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID; function Tween (listenerObj, init, end, dur) { super(); if (listenerObj == undefined) { return; } if (typeof(init) != "number") { arrayMode = true; } listener = listenerObj; initVal = init; endVal = end; if (dur != undefined) { duration = dur; } startTime = getTimer(); if (duration == 0) { endTween(); } else { AddTween(this); } } static function AddTween(tween) { tween.ID = ActiveTweens.length; ActiveTweens.push(tween); if (IntervalToken == undefined) { Dispatcher.DispatchTweens = DispatchTweens; IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval); } } static function RemoveTweenAt(index) { var _local2 = ActiveTweens; if (((index >= _local2.length) || (index < 0)) || (index == undefined)) { return(undefined); } _local2.splice(index, 1); var _local4 = _local2.length; var _local1 = index; while (_local1 < _local4) { _local2[_local1].ID--; _local1++; } if (_local4 == 0) { clearInterval(IntervalToken); delete IntervalToken; } } static function DispatchTweens(Void) { var _local2 = ActiveTweens; var _local3 = _local2.length; var _local1 = 0; while (_local1 < _local3) { _local2[_local1].doInterval(); _local1++; } updateAfterEvent(); } function doInterval() { var _local2 = getTimer() - startTime; var _local3 = getCurVal(_local2); if (_local2 >= duration) { endTween(); } else if (updateFunc != undefined) { listener[updateFunc](_local3); } else { listener.onTweenUpdate(_local3); } } function getCurVal(curTime) { if (arrayMode) { var _local3 = new Array(); var _local2 = 0; while (_local2 < initVal.length) { _local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration); _local2++; } return(_local3); } return(easingEquation(curTime, initVal, endVal - initVal, duration)); } function endTween() { if (endFunc != undefined) { listener[endFunc](endVal); } else { listener.onTweenEnd(endVal); } RemoveTweenAt(ID); } function setTweenHandlers(update, end) { updateFunc = update; endFunc = end; } function easingEquation(t, b, c, d) { return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b); } static var ActiveTweens = new Array(); static var Interval = 10; static var Dispatcher = new Object(); var duration = 3000; }
Symbol 241 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement { var getStyle, _color, onEnterFrame; function ColoredSkinElement () { } function setColor(c) { if (c != undefined) { var _local2 = new Color(this); _local2.setRGB(c); } } function draw(Void) { setColor(getStyle(_color)); onEnterFrame = undefined; } function invalidateStyle(Void) { onEnterFrame = draw; } static function setColorStyle(p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mixins.setColor; p.invalidateStyle = mixins.invalidateStyle; p.draw = mixins.draw; p.setColor(p.getStyle(colorStyle)); } static var mixins = new mx.skins.ColoredSkinElement(); }
Symbol 242 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions { function UIObjectExtensions () { } static function addGeometry(tf, ui) { tf.addProperty("width", ui.__get__width, null); tf.addProperty("height", ui.__get__height, null); tf.addProperty("left", ui.__get__left, null); tf.addProperty("x", ui.__get__x, null); tf.addProperty("top", ui.__get__top, null); tf.addProperty("y", ui.__get__y, null); tf.addProperty("right", ui.__get__right, null); tf.addProperty("bottom", ui.__get__bottom, null); tf.addProperty("visible", ui.__get__visible, ui.__set__visible); } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; var _local6 = mx.core.UIObject.prototype; var _local9 = mx.skins.SkinElement.prototype; addGeometry(_local9, _local6); mx.events.UIEventDispatcher.initialize(_local6); var _local13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(_local6); var _local5 = MovieClip.prototype; _local5.getTopLevel = _local6.getTopLevel; _local5.createLabel = _local6.createLabel; _local5.createObject = _local6.createObject; _local5.createClassObject = _local6.createClassObject; _local5.createEmptyObject = _local6.createEmptyObject; _local5.destroyObject = _local6.destroyObject; _global.ASSetPropFlags(_local5, "getTopLevel", 1); _global.ASSetPropFlags(_local5, "createLabel", 1); _global.ASSetPropFlags(_local5, "createObject", 1); _global.ASSetPropFlags(_local5, "createClassObject", 1); _global.ASSetPropFlags(_local5, "createEmptyObject", 1); _global.ASSetPropFlags(_local5, "destroyObject", 1); _local5.__getTextFormat = _local6.__getTextFormat; _local5._getTextFormat = _local6._getTextFormat; _local5.getStyleName = _local6.getStyleName; _local5.getStyle = _local6.getStyle; _global.ASSetPropFlags(_local5, "__getTextFormat", 1); _global.ASSetPropFlags(_local5, "_getTextFormat", 1); _global.ASSetPropFlags(_local5, "getStyleName", 1); _global.ASSetPropFlags(_local5, "getStyle", 1); var _local7 = TextField.prototype; addGeometry(_local7, _local6); _local7.addProperty("enabled", function () { return(this.__enabled); }, function (x) { this.__enabled = x; this.invalidateStyle(); }); _local7.move = _local9.move; _local7.setSize = _local9.setSize; _local7.invalidateStyle = function () { this.invalidateFlag = true; }; _local7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var _local2 = this._getTextFormat(); this.setTextFormat(_local2); this.setNewTextFormat(_local2); this.embedFonts = _local2.embedFonts == true; if (this.__text != undefined) { if (this.text == "") { this.text = this.__text; } delete this.__text; } this._visible = true; } }; _local7.setColor = function (color) { this.textColor = color; }; _local7.getStyle = _local5.getStyle; _local7.__getTextFormat = _local6.__getTextFormat; _local7.setValue = function (v) { this.text = v; }; _local7.getValue = function () { return(this.text); }; _local7.addProperty("value", function () { return(this.getValue()); }, function (v) { this.setValue(v); }); _local7._getTextFormat = function () { var _local2 = this.stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); this.__getTextFormat(_local2); this.stylecache.tf = _local2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var _local4 = this.getTextFormat(); this.enabledColor = _local4.color; } var _local3 = this.getStyle("disabledColor"); _local2.color = _local3; } else if (this.enabledColor != undefined) { if (_local2.color == undefined) { _local2.color = this.enabledColor; } } return(_local2); }; _local7.getPreferredWidth = function () { this.draw(); return(this.textWidth + 4); }; _local7.getPreferredHeight = function () { this.draw(); return(this.textHeight + 4); }; TextFormat.prototype.getTextExtent2 = function (s) { var _local3 = _root._getTextExtent; if (_local3 == undefined) { _root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100); _local3 = _root._getTextExtent; _local3._visible = false; } _root._getTextExtent.text = s; var _local4 = this.align; this.align = "left"; _root._getTextExtent.setTextFormat(this); this.align = _local4; return({width:_local3.textWidth, height:_local3.textHeight}); }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var _local4 = _root; while (_local4._parent != undefined) { _local4 = _local4._parent; } _local4.addProperty("width", function () { return(Stage.width); }, null); _local4.addProperty("height", function () { return(Stage.height); }, null); _global.ASSetPropFlags(_local4, "width", 1); _global.ASSetPropFlags(_local4, "height", 1); return(true); } static var bExtended = false; static var UIObjectExtended = Extensions(); static var UIObjectDependency = mx.core.UIObject; static var SkinElementDependency = mx.skins.SkinElement; static var CSSTextStylesDependency = mx.styles.CSSTextStyles; static var UIEventDispatcherDependency = mx.events.UIEventDispatcher; }
Symbol 243 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults { var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill; function Defaults () { } static function setThemeDefaults() { var _local2 = _global.style; _local2.themeColor = 8453965 /* 0x80FF4D */; _local2.disabledColor = 8684164 /* 0x848284 */; _local2.modalTransparency = 0; _local2.filled = true; _local2.stroked = true; _local2.strokeWidth = 1; _local2.strokeColor = 0; _local2.fillColor = 16777215 /* 0xFFFFFF */; _local2.repeatInterval = 35; _local2.repeatDelay = 500; _local2.fontFamily = "_sans"; _local2.fontSize = 12; _local2.selectionColor = 13500353 /* 0xCDFFC1 */; _local2.rollOverColor = 14942166 /* 0xE3FFD6 */; _local2.useRollOver = true; _local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDuration = 200; _local2.openDuration = 250; _local2.borderStyle = "inset"; _local2.color = 734012 /* 0x0B333C */; _local2.textSelectedColor = 24371; _local2.textRollOverColor = 2831164 /* 0x2B333C */; _local2.textDisabledColor = 16777215 /* 0xFFFFFF */; _local2.vGridLines = true; _local2.hGridLines = false; _local2.vGridLineColor = 6710886 /* 0x666666 */; _local2.hGridLineColor = 6710886 /* 0x666666 */; _local2.headerColor = 15395562 /* 0xEAEAEA */; _local2.indentation = 17; _local2.folderOpenIcon = "TreeFolderOpen"; _local2.folderClosedIcon = "TreeFolderClosed"; _local2.defaultLeafIcon = "TreeNodeIcon"; _local2.disclosureOpenIcon = "TreeDisclosureOpen"; _local2.disclosureClosedIcon = "TreeDisclosureClosed"; _local2.popupDuration = 150; _local2.todayColor = 6710886 /* 0x666666 */; _local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration()); _local2.backgroundColor = 16777215 /* 0xFFFFFF */; _local2.borderColor = 13290186 /* 0xCACACA */; _local2.borderStyle = "inset"; _local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration()); _local2.borderStyle = "inset"; _local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration()); _local2.textAlign = "center"; _local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration()); _local2.borderColor = 14015965 /* 0xD5DDDD */; _local2.buttonColor = 7305079 /* 0x6F7777 */; _local2.shadowColor = 15658734 /* 0xEEEEEE */; _local2.highlightColor = 12897484 /* 0xC4CCCC */; _local2.shadowCapColor = 14015965 /* 0xD5DDDD */; _local2.borderCapColor = 9542041 /* 0x919999 */; var _local4 = new Object(); _local4.borderColor = 16711680 /* 0xFF0000 */; _local4.buttonColor = 16711680 /* 0xFF0000 */; _local4.shadowColor = 16711680 /* 0xFF0000 */; _local4.highlightColor = 16711680 /* 0xFF0000 */; _local4.shadowCapColor = 16711680 /* 0xFF0000 */; _local4.borderCapColor = 16711680 /* 0xFF0000 */; mx.core.UIComponent.prototype.origBorderStyles = _local4; var _local3; _local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration()); _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderStyle = "inset"; _global.styles.TextArea = _global.styles.TextInput; _local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "default"; _local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "alert"; _local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "inset"; _local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "none"; _local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration()); _local3.color = 11187123 /* 0xAAB3B3 */; _local3.fontWeight = "bold"; _local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = "11"; _local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "solid"; _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderColor = 9081738 /* 0x8A938A */; _local3.headerHeight = 22; _local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1))); _local3.verticalGap = -1; _local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration()); _local3.borderColor = 9542041 /* 0x919999 */; _local3.headerColor = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 10; _local3.textAlign = "right"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = 11; _local3.textAlign = "center"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration()); _local3.color = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 12; _local3.fontWeight = "bold"; _local3.textAlign = "center"; } function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof(r) == "object") { var _local18 = r.br; var _local16 = r.bl; var _local15 = r.tl; var _local10 = r.tr; } else { var _local10 = r; var _local15 = _local10; var _local16 = _local15; var _local18 = _local16; } if (typeof(c) == "object") { if (typeof(alpha) != "object") { var _local9 = [alpha, alpha]; } else { var _local9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var _local14 = h * 0.7; if (typeof(rot) != "object") { var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */}; } else { var _local11 = rot; } if (gradient == "radial") { beginGradientFill("radial", c, _local9, ratios, _local11); } else { beginGradientFill("linear", c, _local9, ratios, _local11); } } else if (c != undefined) { beginFill(c, alpha); } r = _local18; var _local13 = r - (r * 0.707106781186547); var _local12 = r - (r * 0.414213562373095); moveTo(x + w, (y + h) - r); lineTo(x + w, (y + h) - r); curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13); curveTo((x + w) - _local12, y + h, (x + w) - r, y + h); r = _local16; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x + r, y + h); curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13); curveTo(x, (y + h) - _local12, x, (y + h) - r); r = _local15; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x, y + r); curveTo(x, y + _local12, x + _local13, y + _local13); curveTo(x + _local12, y, x + r, y); r = _local10; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo((x + w) - r, y); curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13); curveTo(x + w, y + _local12, x + w, y + r); lineTo(x + w, (y + h) - r); if (c != undefined) { endFill(); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; static var UIObjectDependency = mx.core.UIObject; }
Symbol 244 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent { var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject; function FocusManager () { super(); } function get defaultPushButton() { return(__defaultPushButton); } function set defaultPushButton(x) { if (x != __defaultPushButton) { __defaultPushButton.__set__emphasized(false); __defaultPushButton = x; defPushButton = x; x.__set__emphasized(true); } //return(defaultPushButton); } function getMaxTabIndex(o) { var _local3 = 0; var _local6; for (_local6 in o) { var _local2 = o[_local6]; if (_local2._parent == o) { if (_local2.tabIndex != undefined) { if (_local2.tabIndex > _local3) { _local3 = _local2.tabIndex; } } if (_local2.tabChildren == true) { var _local4 = getMaxTabIndex(_local2); if (_local4 > _local3) { _local3 = _local4; } } } } return(_local3); } function getNextTabIndex(Void) { return(getMaxTabIndex(form) + 1); } function get nextTabIndex() { return(getNextTabIndex()); } function relocate(Void) { var _local2 = mx.managers.SystemManager.__get__screen(); move(_local2.x - 1, _local2.y - 1); } function init(Void) { super.init(); tabEnabled = false; _width = (_height = 1); _x = (_y = -1); _alpha = 0; _parent.focusManager = this; _parent.tabChildren = true; _parent.tabEnabled = false; form = _parent; _parent.addEventListener("hide", this); _parent.addEventListener("reveal", this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(form); tabCapture.tabIndex = 0; watch("enabled", enabledChanged); Selection.addListener(this); lastMouse = new Object(); _global.ASSetPropFlags(_parent, "focusManager", 1); _global.ASSetPropFlags(_parent, "tabChildren", 1); _global.ASSetPropFlags(_parent, "tabEnabled", 1); } function enabledChanged(id, oldValue, newValue) { _visible = newValue; return(newValue); } function activate(Void) { Key.addListener(this); activated = (_visible = true); if (lastFocus != undefined) { bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { doLater(this, "restoreFocus"); } } } function deactivate(Void) { Key.removeListener(this); activated = (_visible = false); var _local2 = getSelectionFocus(); var _local3 = getActualFocus(_local2); if (isOurFocus(_local3)) { lastSelFocus = _local2; lastFocus = _local3; } cancelAllDoLaters(); } function isOurFocus(o) { if (o.focusManager == this) { return(true); } while (o != undefined) { if (o.focusManager != undefined) { return(false); } if (o._parent == _parent) { return(true); } o = o._parent; } return(false); } function onSetFocus(o, n) { if (n == null) { if (activated) { bNeedFocus = true; } } else { var _local2 = getFocus(); if (isOurFocus(_local2)) { bNeedFocus = false; lastFocus = _local2; lastSelFocus = n; } } } function restoreFocus(Void) { var _local2 = lastSelFocus.hscroll; if (_local2 != undefined) { var _local5 = lastSelFocus.scroll; var _local4 = lastSelFocus.background; } lastFocus.setFocus(); var _local3 = Selection; Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex); if (_local2 != undefined) { lastSelFocus.scroll = _local5; lastSelFocus.hscroll = _local2; lastSelFocus.background = _local4; } } function onUnload(Void) { mx.managers.SystemManager.removeFocusManager(form); } function setFocus(o) { if (o == null) { Selection.setFocus(null); } else if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } function getActualFocus(o) { var _local1 = o._parent; while (_local1 != undefined) { if (_local1.focusTextField != undefined) { while (_local1.focusTextField != undefined) { o = _local1; _local1 = _local1._parent; if (_local1 == undefined) { return(undefined); } if (_local1.focusTextField == undefined) { return(o); } } } if (_local1.tabEnabled != true) { return(o); } o = _local1; _local1 = o._parent; } return(undefined); } function getSelectionFocus() { var m = Selection.getFocus(); var o = eval (m); return(o); } function getFocus(Void) { var _local2 = getSelectionFocus(); return(getActualFocus(_local2)); } function walkTree(p, index, groupName, dir, lookup, firstChild) { var _local5 = true; var _local11; for (_local11 in p) { var _local2 = p[_local11]; if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_local2 != _lastTarget) { if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) { continue; } if ((_local2 instanceof TextField) && (_local2.selectable == false)) { continue; } if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) { if (firstChild) { _firstNode = _local2; firstChild = false; } } if (_nextIsNext == true) { if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) { _nextNode = _local2; } } if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) { if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) { } else { _lastx = _local2; } } } else { _prevNode = _lastx; _needPrev = false; _nextIsNext = true; } if (_local2.tabIndex != undefined) { if (_local2.tabIndex == index) { if (_foundList[_local2._name] == undefined) { if (_needPrev) { _prevObj = _local2; _needPrev = false; } _nextObj = _local2; } } if (dir && (_local2.tabIndex > index)) { if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) { _nextObj = _local2; } } else if ((!dir) && (_local2.tabIndex < index)) { if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) { _prevObj = _local2; } } if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) { _firstObj = _local2; } if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) { _lastObj = _local2; } } if (_local2.tabChildren) { getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) { if (_local2 == _lastTarget) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_prevNode == undefined) { var _local3 = _lastx; var _local7 = false; while (_local3 != undefined) { if (_local3 == _local2) { _local7 = true; break; } _local3 = _local3._parent; } if (_local7 == false) { _prevNode = _lastx; } } _needPrev = false; if (_nextNode == undefined) { _nextIsNext = true; } } else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } } _lastNode = _lastx; if (lookup) { if (p._parent != undefined) { if (p != _parent) { if ((_prevNode == undefined) && (dir)) { _needPrev = true; } else if ((_nextNode == undefined) && (!dir)) { _nextIsNext = false; } _lastTarget = _lastTarget._parent; getTabCandidate(p._parent, index, groupName, dir, true); } } } } function getTabCandidate(o, index, groupName, dir, firstChild) { var _local2; var _local3 = true; if (o == _parent) { _local2 = o; _local3 = false; } else { _local2 = o._parent; if (_local2 == undefined) { _local2 = o; _local3 = false; } } walkTree(_local2, index, groupName, dir, _local3, firstChild); } function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) { walkTree(o, index, groupName, dir, false, firstChild); } function getFocusManagerFromObject(o) { while (o != undefined) { if (o.focusManager != undefined) { return(o.focusManager); } o = o._parent; } return(undefined); } function tabHandler(Void) { bDrawFocus = true; var _local5 = getSelectionFocus(); var _local4 = getActualFocus(_local5); if (_local4 != _local5) { _local5 = _local4; } if (getFocusManagerFromObject(_local5) != this) { _local5 == undefined; } if (_local5 == undefined) { _local5 = form; } else if (_local5.tabIndex != undefined) { if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) { _foundList = new Object(); _foundList.tabIndex = _local5.tabIndex; } _foundList[_local5._name] = _local5; } var _local3 = Key.isDown(16) != true; _searchKey = getTimer(); _needPrev = true; _nextIsNext = false; _lastx = undefined; _firstNode = undefined; _lastNode = undefined; _nextNode = undefined; _prevNode = undefined; _firstObj = undefined; _lastObj = undefined; _nextObj = undefined; _prevObj = undefined; _lastTarget = _local5; var _local6 = _local5; getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true); var _local2; if (_local3) { if (_nextObj != undefined) { _local2 = _nextObj; } else { _local2 = _firstObj; } } else if (_prevObj != undefined) { _local2 = _prevObj; } else { _local2 = _lastObj; } if (_local2.tabIndex != _local5.tabIndex) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; _foundList[_local2._name] = _local2; } else { if (_foundList == undefined) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; } _foundList[_local2._name] = _local2; } if (_local2 == undefined) { if (_local3 == false) { if (_nextNode != undefined) { _local2 = _nextNode; } else { _local2 = _firstNode; } } else if ((_prevNode == undefined) || (_local5 == form)) { _local2 = _lastNode; } else { _local2 = _prevNode; } } if (_local2 == undefined) { return(undefined); } lastTabFocus = _local2; setFocus(_local2); if (_local2.emphasized != undefined) { if (defPushButton != undefined) { _local5 = defPushButton; defPushButton = _local2; _local5.emphasized = false; _local2.emphasized = true; } } else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) { _local5 = defPushButton; defPushButton = __defaultPushButton; _local5.emphasized = false; __defaultPushButton.__set__emphasized(true); } } function onKeyDown(Void) { mx.managers.SystemManager.idleFrames = 0; if (defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (defaultPushButton != undefined) { doLater(this, "sendDefaultPushButtonEvent"); } } } } function sendDefaultPushButtonEvent(Void) { defPushButton.dispatchEvent({type:"click"}); } function getMousedComponentFromChildren(x, y, o) { for (var _local7 in o) { var _local2 = o[_local7]; if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) { _local2._searchKey = _searchKey; if (_local2.hitTest(x, y, true)) { if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) { return(_local2); } var _local3 = getMousedComponentFromChildren(x, y, _local2); if (_local3 != undefined) { return(_local3); } return(_local2); } } } return(undefined); } function mouseActivate(Void) { if (!bNeedFocus) { return(undefined); } _searchKey = getTimer(); var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form); if (_local2 instanceof mx.core.UIComponent) { return(undefined); } _local2 = findFocusFromObject(_local2); if (_local2 == lastFocus) { return(undefined); } if (_local2 == undefined) { doLater(this, "restoreFocus"); return(undefined); } var _local3 = _local2.hscroll; if (_local3 != undefined) { var _local6 = _local2.scroll; var _local5 = _local2.background; } setFocus(_local2); var _local4 = Selection; Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex); if (_local3 != undefined) { _local2.scroll = _local6; _local2.hscroll = _local3; _local2.background = _local5; } } function _onMouseDown(Void) { bDrawFocus = false; if (lastFocus != undefined) { lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var _local3 = Selection; _local3.lastBeginIndex = Selection.getBeginIndex(); _local3.lastEndIndex = Selection.getEndIndex(); lastMouse.x = _root._xmouse; lastMouse.y = _root._ymouse; _root.localToGlobal(lastMouse); } function onMouseUp(Void) { if (_visible) { doLater(this, "mouseActivate"); } } function handleEvent(e) { if (e.type == "reveal") { mx.managers.SystemManager.activate(form); } else { mx.managers.SystemManager.deactivate(form); } } static function enableFocusManagement() { if (!initialized) { initialized = true; Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } } } static var symbolName = "FocusManager"; static var symbolOwner = mx.managers.FocusManager; static var version = "2.0.2.126"; var className = "FocusManager"; var bNeedFocus = false; var bDrawFocus = false; var defaultPushButtonEnabled = true; var activated = true; static var initialized = false; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 245 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement { var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible; function FocusRect () { super(); boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function draw(o) { o.adjustFocusRect(); } function setSize(w, h, r, a, rectCol) { _xscale = (_yscale = 100); clear(); if (typeof(r) == "object") { r.br = ((r.br > 2) ? (r.br - 2) : 0); r.bl = ((r.bl > 2) ? (r.bl - 2) : 0); r.tr = ((r.tr > 2) ? (r.tr - 2) : 0); r.tl = ((r.tl > 2) ? (r.tl - 2) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); r.br = ((r.br > 1) ? (r.br + 1) : 0); r.bl = ((r.bl > 1) ? (r.bl + 1) : 0); r.tr = ((r.tr > 1) ? (r.tr + 1) : 0); r.tl = ((r.tl > 1) ? (r.tl + 1) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(1, 1, w - 2, h - 2, r); r.br = ((r.br > 1) ? (r.br - 1) : 0); r.bl = ((r.bl > 1) ? (r.bl - 1) : 0); r.tr = ((r.tr > 1) ? (r.tr - 1) : 0); r.tl = ((r.tl > 1) ? (r.tl - 1) : 0); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); } else { var _local5; if (r != 0) { _local5 = r - 2; } else { _local5 = 0; } beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); beginFill(rectCol, a * 0.3); if (r != 0) { _local5 = r - 2; r = r - 1; } else { _local5 = 0; r = 0; } drawRoundRect(1, 1, w - 2, h - 2, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); } } function handleEvent(e) { if (e.type == "unload") { _visible = true; } else if (e.type == "resize") { e.target.adjustFocusRect(); } else if (e.type == "move") { e.target.adjustFocusRect(); } } static function classConstruct() { mx.core.UIComponent.prototype.drawFocus = function (focused) { var _local2 = this._parent.focus_mc; if (!focused) { _local2._visible = false; this.removeEventListener("unload", _local2); this.removeEventListener("move", _local2); this.removeEventListener("resize", _local2); } else { if (_local2 == undefined) { _local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop); _local2.tabEnabled = false; this._parent.focus_mc = _local2; } else { _local2._visible = true; } _local2.draw(this); if (_local2.getDepth() < this.getDepth()) { _local2.setDepthAbove(this); } this.addEventListener("unload", _local2); this.addEventListener("move", _local2); this.addEventListener("resize", _local2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var _local2 = this.getStyle("themeColor"); if (_local2 == undefined) { _local2 = 8453965 /* 0x80FF4D */; } var _local3 = this._parent.focus_mc; _local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2); _local3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var DefaultsDependency = mx.skins.halo.Defaults; static var UIComponentDependency = mx.core.UIComponent; }
Symbol 246 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows { function OverlappedWindows () { } static function checkIdle(Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({type:"idle"}); } else { mx.managers.SystemManager.idleFrames++; } } static function __addEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); } static function __removeEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } } static function onMouseDown(Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var _local5 = _root; var _local3; var _local8 = _root._xmouse; var _local7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var _local6 = mx.managers.SystemManager.forms.length; var _local4; _local4 = 0; while (_local4 < _local6) { var _local2 = mx.managers.SystemManager.forms[_local4]; if (_local2._visible) { if (_local2.hitTest(_local8, _local7)) { if (_local3 == undefined) { _local3 = _local2.getDepth(); _local5 = _local2; } else if (_local3 < _local2.getDepth()) { _local3 = _local2.getDepth(); _local5 = _local2; } } } _local4++; } if (_local5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(_local5); } } } var _local9 = mx.managers.SystemManager.form; _local9.focusManager._onMouseDown(); } static function onMouseMove(Void) { mx.managers.SystemManager.idleFrames = 0; } static function onMouseUp(Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; } static function activate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) { var _local1 = mx.managers.SystemManager.form; _local1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); } static function deactivate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) { var _local5 = mx.managers.SystemManager.form; _local5.focusManager.deactivate(); var _local3 = mx.managers.SystemManager.forms.length; var _local1; var _local2; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { _local1 = _local1 + 1; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } mx.managers.SystemManager.form = _local2; break; } if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } _local5 = mx.managers.SystemManager.form; _local5.focusManager.activate(); } } } static function addFocusManager(f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); } static function removeFocusManager(f) { var _local3 = mx.managers.SystemManager.forms.length; var _local1; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(_local1, 1); return(undefined); } _local1++; } } static function enableOverlappedWindows() { if (!initialized) { initialized = true; mx.managers.SystemManager.checkIdle = checkIdle; mx.managers.SystemManager.__addEventListener = __addEventListener; mx.managers.SystemManager.__removeEventListener = __removeEventListener; mx.managers.SystemManager.onMouseDown = onMouseDown; mx.managers.SystemManager.onMouseMove = onMouseMove; mx.managers.SystemManager.onMouseUp = onMouseUp; mx.managers.SystemManager.activate = activate; mx.managers.SystemManager.deactivate = deactivate; mx.managers.SystemManager.addFocusManager = addFocusManager; mx.managers.SystemManager.removeFocusManager = removeFocusManager; } } static var initialized = false; static var SystemManagerDependency = mx.managers.SystemManager; }
Symbol 247 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle { var styleName, stylecache, _color, setColor, invalidateStyle; function CSSSetStyle () { } function _setStyle(styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == "color") { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } } _level0.changeTextStyleInChildren(styleProp); return(undefined); } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local7 = mx.styles.StyleManager.colorNames.haloBlue; var _local6 = mx.styles.StyleManager.colorNames.haloGreen; var _local8 = mx.styles.StyleManager.colorNames.haloOrange; var _local4 = {}; _local4[_local7] = 12188666 /* 0xB9FBFA */; _local4[_local6] = 13500353 /* 0xCDFFC1 */; _local4[_local8] = 16766319 /* 0xFFD56F */; var _local5 = {}; _local5[_local7] = 13958653 /* 0xD4FDFD */; _local5[_local6] = 14942166 /* 0xE3FFD6 */; _local5[_local8] = 16772787 /* 0xFFEEB3 */; var _local9 = _local4[newValue]; var _local10 = _local5[newValue]; if (_local9 == undefined) { _local9 = newValue; } if (_local10 == undefined) { _local10 = newValue; } setStyle("selectionColor", _local9); setStyle("rollOverColor", _local10); } _level0.changeColorStyleInChildren(styleName, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } _level0.notifyStyleChangeInChildren(styleName, styleProp, newValue); } } function changeTextStyleInChildren(styleProp) { var _local4 = getTimer(); var _local5; for (_local5 in this) { var _local2 = this[_local5]; if (_local2._parent == this) { if (_local2.searchKey != _local4) { if (_local2.stylecache != undefined) { delete _local2.stylecache.tf; delete _local2.stylecache[styleProp]; } _local2.invalidateStyle(styleProp); _local2.changeTextStyleInChildren(styleProp); _local2.searchKey = _local4; } } } } function changeColorStyleInChildren(sheetName, colorStyle, newValue) { var _local6 = getTimer(); var _local7; for (_local7 in this) { var _local2 = this[_local7]; if (_local2._parent == this) { if (_local2.searchKey != _local6) { if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) { if (_local2.stylecache != undefined) { delete _local2.stylecache[colorStyle]; } if (typeof(_local2._color) == "string") { if (_local2._color == colorStyle) { var _local4 = _local2.getStyle(colorStyle); if (colorStyle == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = _local4; } } _local2.setColor(_local4); } } else if (_local2._color[colorStyle] != undefined) { if (typeof(_local2) != "movieclip") { _local2._parent.invalidateStyle(); } else { _local2.invalidateStyle(colorStyle); } } } _local2.changeColorStyleInChildren(sheetName, colorStyle, newValue); _local2.searchKey = _local6; } } } } function notifyStyleChangeInChildren(sheetName, styleProp, newValue) { var _local5 = getTimer(); var _local6; for (_local6 in this) { var _local2 = this[_local6]; if (_local2._parent == this) { if (_local2.searchKey != _local5) { if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) { if (_local2.stylecache != undefined) { delete _local2.stylecache[styleProp]; delete _local2.stylecache.tf; } delete _local2.enabledColor; _local2.invalidateStyle(styleProp); } _local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); _local2.searchKey = _local5; } } } } function setStyle(styleProp, newValue) { if (stylecache != undefined) { delete stylecache[styleProp]; delete stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local10 = mx.styles.StyleManager.colorNames.haloBlue; var _local9 = mx.styles.StyleManager.colorNames.haloGreen; var _local11 = mx.styles.StyleManager.colorNames.haloOrange; var _local6 = {}; _local6[_local10] = 12188666 /* 0xB9FBFA */; _local6[_local9] = 13500353 /* 0xCDFFC1 */; _local6[_local11] = 16766319 /* 0xFFD56F */; var _local7 = {}; _local7[_local10] = 13958653 /* 0xD4FDFD */; _local7[_local9] = 14942166 /* 0xE3FFD6 */; _local7[_local11] = 16772787 /* 0xFFEEB3 */; var _local12 = _local6[newValue]; var _local13 = _local7[newValue]; if (_local12 == undefined) { _local12 = newValue; } if (_local13 == undefined) { _local13 = newValue; } setStyle("selectionColor", _local12); setStyle("rollOverColor", _local13); } if (typeof(_color) == "string") { if (_color == styleProp) { if (styleProp == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = newValue; } } setColor(newValue); } } else if (_color[styleProp] != undefined) { invalidateStyle(styleProp); } changeColorStyleInChildren(undefined, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) { var _local8; var _local5 = newValue; if (styleProp == "styleName") { _local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5)); _local5 = _local8.themeColor; if (_local5 != undefined) { _local8.rollOverColor = (_local8.selectionColor = _local5); } } notifyStyleChangeInChildren(undefined, styleProp, newValue); } } static function enableRunTimeCSS() { } static function classConstruct() { var _local2 = MovieClip.prototype; var _local3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle; _local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren; _local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren; _local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren; _local2.setStyle = _local3.setStyle; _global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1); _global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1); _global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1); _global.ASSetPropFlags(_local2, "setStyle", 1); var _local4 = TextField.prototype; _local4.setStyle = _local2.setStyle; _local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; }
Symbol 248 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions { function UIComponentExtensions () { } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if (this.getFocusManager().bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); } static var bExtended = false; static var UIComponentExtended = Extensions(); static var UIComponentDependency = mx.core.UIComponent; static var FocusManagerDependency = mx.managers.FocusManager; static var OverlappedWindowsDependency = mx.managers.OverlappedWindows; }
Symbol 249 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder { var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill; function RectBorder () { super(); } function init(Void) { borderWidths.default = 3; super.init(); } function getBorderMetrics(Void) { if (offset == undefined) { var _local3 = getStyle(borderStyleName); offset = borderWidths[_local3]; } if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) { __borderMetrics = {left:3, top:1, right:3, bottom:3}; return(__borderMetrics); } return(super.getBorderMetrics()); } function drawBorder(Void) { var _local6 = _global.styles[className]; if (_local6 == undefined) { _local6 = _global.styles.RectBorder; } var _local5 = getStyle(borderStyleName); var _local7 = getStyle(borderColorName); if (_local7 == undefined) { _local7 = _local6[borderColorName]; } var _local8 = getStyle(backgroundColorName); if (_local8 == undefined) { _local8 = _local6[backgroundColorName]; } var _local16 = getStyle("backgroundImage"); if (_local5 != "none") { var _local14 = getStyle(shadowColorName); if (_local14 == undefined) { _local14 = _local6[shadowColorName]; } var _local13 = getStyle(highlightColorName); if (_local13 == undefined) { _local13 = _local6[highlightColorName]; } var _local12 = getStyle(buttonColorName); if (_local12 == undefined) { _local12 = _local6[buttonColorName]; } var _local11 = getStyle(borderCapColorName); if (_local11 == undefined) { _local11 = _local6[borderCapColorName]; } var _local10 = getStyle(shadowCapColorName); if (_local10 == undefined) { _local10 = _local6[shadowCapColorName]; } } offset = borderWidths[_local5]; var _local9 = offset; var _local3 = __get__width(); var _local4 = __get__height(); clear(); _color = undefined; if (_local5 == "none") { } else if (_local5 == "inset") { _color = colorList; draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10); } else if (_local5 == "outset") { _color = colorList; draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10); } else if (_local5 == "alert") { var _local15 = getStyle("themeColor"); drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100); } else if (_local5 == "default") { drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial"); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100); } else if (_local5 == "dropDown") { drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear"); drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100); } else if (_local5 == "menuBorder") { var _local15 = getStyle("themeColor"); drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10); drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear"); drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50); drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100); } else if (_local5 == "comboNonEdit") { } else { beginFill(_local7); drawRect(0, 0, _local3, _local4); drawRect(1, 1, _local3 - 1, _local4 - 1); endFill(); _color = borderColorName; } if (_local8 != undefined) { beginFill(_local8); drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9); endFill(); } } function draw3dBorder(c1, c2, c3, c4, c5, c6) { var _local3 = __get__width(); var _local2 = __get__height(); beginFill(c1); drawRect(0, 0, _local3, _local2); drawRect(1, 0, _local3 - 1, _local2); endFill(); beginFill(c2); drawRect(1, 0, _local3 - 1, 1); endFill(); beginFill(c3); drawRect(1, _local2 - 1, _local3 - 1, _local2); endFill(); beginFill(c4); drawRect(1, 1, _local3 - 1, 2); endFill(); beginFill(c5); drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1); endFill(); beginFill(c6); drawRect(1, 2, _local3 - 1, _local2 - 2); drawRect(2, 2, _local3 - 2, _local2 - 2); endFill(); } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return(true); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.halo.RectBorder; static var version = "2.0.2.126"; var borderCapColorName = "borderCapColor"; var shadowCapColorName = "shadowCapColor"; var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0}; var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2}; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 250 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent { var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner; function SelectableRow () { super(); } function setValue(itmObj, state) { var _local7 = __height; var _local2 = cell; var _local5 = owner; var _local8 = itemToString(itmObj); if (_local2.getValue() != _local8) { _local2.setValue(_local8, itmObj, state); } var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon; if (_local4 == undefined) { _local4 = _local5.__iconFunction(itmObj); if (_local4 == undefined) { _local4 = itmObj[_local5.__iconField]; if (_local4 == undefined) { _local4 = _local5.getStyle("defaultIcon"); } } } var _local3 = icon_mc; if ((_local4 != undefined) && (itmObj != undefined)) { _local3 = createObject(_local4, "icon_mc", 20); _local3._x = 2; _local3._y = (_local7 - _local3._height) / 2; _local2._x = 4 + _local3._width; } else { _local3.removeMovieClip(); _local2._x = 2; } var _local9 = ((_local3 == undefined) ? 0 : (_local3._width)); _local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight())); _local2._y = (_local7 - _local2._height) / 2; } function size(Void) { var _local3 = backGround; var _local2 = cell; var _local4 = __height; var _local5 = __width; var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width)); _local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight())); _local2._y = (_local4 - _local2._height) / 2; icon_mc._y = (_local4 - icon_mc._height) / 2; _local3._x = 0; _local3._width = _local5; _local3._height = _local4; drawRowFill(_local3, normalColor); drawRowFill(highlight, highlightColor); } function setCellRenderer(forceSizing) { var _local3 = owner.__cellRenderer; var _local4; if (cell != undefined) { _local4 = cell._x; cell.removeMovieClip(); cell.removeTextField(); } var _local2; if (_local3 == undefined) { _local2 = (cell = createLabel("cll", 0, {styleName:this})); _local2.styleName = owner; _local2.selectable = false; _local2.tabEnabled = false; _local2.background = false; _local2.border = false; } else if (typeof(_local3) == "string") { _local2 = (cell = createObject(_local3, "cll", 0, {styleName:this})); } else { _local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this})); } _local2.owner = this; _local2.listOwner = owner; _local2.getCellIndex = getCellIndex; _local2.getDataLabel = getDataLabel; if (_local4 != undefined) { _local2._x = _local4; } if (forceSizing) { size(); } } function getCellIndex(Void) { return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition}); } function getDataLabel() { return(listOwner.labelField); } function init(Void) { super.init(); tabEnabled = false; } function createChildren(Void) { setCellRenderer(false); setupBG(); setState(state, false); } function drawRow(itmObj, state, transition) { item = itmObj; setState(state, transition); setValue(itmObj, state, transition); } function itemToString(itmObj) { if (itmObj == undefined) { return(" "); } var _local2 = owner.__labelFunction(itmObj); if (_local2 == undefined) { _local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField])); if (_local2 == undefined) { _local2 = " "; if (typeof(itmObj) == "object") { for (var _local4 in itmObj) { if (_local4 != "__ID__") { _local2 = (itmObj[_local4] + ", ") + _local2; } } _local2 = _local2.substring(0, _local2.length - 2); } else { _local2 = itmObj; } } } return(_local2); } function setupBG(Void) { var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH)); drawRowFill(_local2, normalColor); highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10); _local2.owner = this; _local2.grandOwner = owner; _local2.onPress = bGOnPress; _local2.onRelease = bGOnRelease; _local2.onRollOver = bGOnRollOver; _local2.onRollOut = bGOnRollOut; _local2.onDragOver = bGOnDragOver; _local2.onDragOut = bGOnDragOut; _local2.useHandCursor = false; _local2.trackAsMenu = true; _local2.drawRect = drawRect; highlight.drawRect = drawRect; } function drawRowFill(mc, newClr) { mc.clear(); mc.beginFill(newClr); mc.drawRect(1, 0, __width, __height); mc.endFill(); mc._width = __width; mc._height = __height; } function setState(newState, transition) { var _local2 = highlight; var _local8 = backGround; var _local4 = __height; var _local3 = owner; if (!_local3.enabled) { if ((newState == "selected") || (state == "selected")) { highlightColor = _local3.getStyle("selectionDisabledColor"); drawRowFill(_local2, highlightColor); _local2._visible = true; _local2._y = 0; _local2._height = _local4; } else { _local2._visible = false; normalColor = _local3.getStyle("backgroundDisabledColor"); drawRowFill(_local8, normalColor); } cell.__enabled = false; cell.setColor(_local3.getStyle("disabledColor")); } else { cell.__enabled = true; if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) { isChangedToSelected = true; return(undefined); } var _local6 = _local3.getStyle("selectionDuration"); var _local7 = 0; if (isChangedToSelected && (newState == "selected")) { transition = false; } var _local10 = transition && (_local6 != 0); if (newState == "normal") { _local7 = _local3.getStyle("color"); normalColor = getNormalColor(); drawRowFill(_local8, normalColor); if (_local10) { _local6 = _local6 / 2; _local2._height = _local4; _local2._width = __width; _local2._y = 0; bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5); } else { _local2._visible = false; } delete isChangedToSelected; } else { highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor")); drawRowFill(_local2, highlightColor); _local2._visible = true; _local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor")); if (_local10) { _local2._height = _local4 * 0.5; _local2._y = (_local4 - _local2._height) / 2; bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5); var _local9 = _local3.getStyle("selectionEasing"); if (_local9 != undefined) { bGTween.easingEquation = _local9; } } else { _local2._y = 0; _local2._height = _local4; } } cell.setColor(_local7); } state = newState; } function onTweenUpdate(val) { highlight._height = val; highlight._y = (__height - val) / 2; } function onTweenEnd(val) { onTweenUpdate(val); highlight._visible = state != "normal"; } function getNormalColor(Void) { var _local3; var _local2 = owner; if (!owner.enabled) { _local3 = _local2.getStyle("backgroundDisabledColor"); } else { var _local5 = rowIndex + _local2.__vPosition; if (rowIndex == undefined) { _local3 = _local2.getPropertiesOf(item).backgroundColor; } else { _local3 = _local2.getPropertiesAt(_local5).backgroundColor; } if (_local3 == undefined) { var _local4 = _local2.getStyle("alternatingRowColors"); if (_local4 == undefined) { _local3 = _local2.getStyle("backgroundColor"); } else { _local3 = _local4[_local5 % _local4.length]; } } } return(_local3); } function invalidateStyle(propName) { cell.invalidateStyle(propName); super.invalidateStyle(propName); } function bGOnPress(Void) { grandOwner.pressFocus(); grandOwner.onRowPress(owner.rowIndex); } function bGOnRelease(Void) { grandOwner.releaseFocus(); grandOwner.onRowRelease(owner.rowIndex); } function bGOnRollOver(Void) { grandOwner.onRowRollOver(owner.rowIndex); } function bGOnRollOut(Void) { grandOwner.onRowRollOut(owner.rowIndex); } function bGOnDragOver(Void) { grandOwner.onRowDragOver(owner.rowIndex); } function bGOnDragOut(Void) { grandOwner.onRowDragOut(owner.rowIndex); } static var LOWEST_DEPTH = -16384; var state = "normal"; var disabledColor = 15263976; var normalColor = 16777215; }
Symbol 251 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar { var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt; function HScrollBar () { super(); } function getMinWidth(Void) { return(_minHeight); } function getMinHeight(Void) { return(_minWidth); } function init(Void) { super.init(); _xscale = -100; _rotation = -90; } function get virtualHeight() { return(__width); } function isScrollBarKey(k) { if (k == 37) { scrollIt("Line", -1); return(true); } if (k == 39) { scrollIt("Line", 1); return(true); } return(super.isScrollBarKey(k)); } static var symbolName = "HScrollBar"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.126"; var className = "HScrollBar"; var minusMode = "Left"; var plusMode = "Right"; var minMode = "AtLeft"; var maxMode = "AtRight"; }
Symbol 252 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton { var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject; function Button () { super(); } function init(Void) { super.init(); } function draw() { if (initializing) { labelPath.visible = true; } super.draw(); if (initIcon != undefined) { _setIcon(initIcon); } delete initIcon; } function onRelease(Void) { super.onRelease(); } function createChildren(Void) { super.createChildren(); } function setSkin(tag, linkageName, initobj) { return(super.setSkin(tag, linkageName, initobj)); } function viewSkin(varName) { var _local3 = (getState() ? "true" : "false"); _local3 = _local3 + (enabled ? (phase) : "disabled"); super.viewSkin(varName, {styleName:this, borderStyle:_local3}); } function invalidateStyle(c) { labelPath.invalidateStyle(c); super.invalidateStyle(c); } function setColor(c) { var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]].redraw(true); _local2++; } } function setEnabled(enable) { labelPath.enabled = enable; super.setEnabled(enable); } function calcSize(tag, ref) { if ((__width == undefined) || (__height == undefined)) { return(undefined); } if (tag < 7) { ref.setSize(__width, __height, true); } } function size(Void) { setState(getState()); setHitArea(__width, __height); var _local3 = 0; while (_local3 < 8) { var _local4 = idNames[_local3]; if (typeof(this[_local4]) == "movieclip") { this[_local4].setSize(__width, __height, true); } _local3++; } super.size(); } function set labelPlacement(val) { __labelPlacement = val; invalidate(); //return(labelPlacement); } function get labelPlacement() { return(__labelPlacement); } function getLabelPlacement(Void) { return(__labelPlacement); } function setLabelPlacement(val) { __labelPlacement = val; invalidate(); } function getBtnOffset(Void) { if (getState()) { var _local2 = btnOffset; } else if (phase == "down") { var _local2 = btnOffset; } else { var _local2 = 0; } return(_local2); } function setView(offset) { var _local16 = (offset ? (btnOffset) : 0); var _local12 = getLabelPlacement(); var _local7 = 0; var _local6 = 0; var _local9 = 0; var _local8 = 0; var _local5 = 0; var _local4 = 0; var _local3 = labelPath; var _local2 = iconName; var _local15 = _local3.textWidth; var _local14 = _local3.textHeight; var _local10 = (__width - borderW) - borderW; var _local11 = (__height - borderW) - borderW; if (_local2 != undefined) { _local7 = _local2._width; _local6 = _local2._height; } if ((_local12 == "left") || (_local12 == "right")) { if (_local3 != undefined) { _local9 = Math.min(_local10 - _local7, _local15 + 5); _local3._width = _local9; _local8 = Math.min(_local11, _local14 + 5); _local3._height = _local8; } if (_local12 == "right") { _local5 = _local7; if (centerContent) { _local5 = _local5 + (((_local10 - _local9) - _local7) / 2); } _local2._x = _local5 - _local7; } else { _local5 = (_local10 - _local9) - _local7; if (centerContent) { _local5 = _local5 / 2; } _local2._x = _local5 + _local9; } _local4 = 0; _local2._y = _local4; if (centerContent) { _local2._y = (_local11 - _local6) / 2; _local4 = (_local11 - _local8) / 2; } if (!centerContent) { _local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2); } } else { if (_local3 != undefined) { _local9 = Math.min(_local10, _local15 + 5); _local3._width = _local9; _local8 = Math.min(_local11 - _local6, _local14 + 5); _local3._height = _local8; } _local5 = (_local10 - _local9) / 2; _local2._x = (_local10 - _local7) / 2; if (_local12 == "top") { _local4 = (_local11 - _local8) - _local6; if (centerContent) { _local4 = _local4 / 2; } _local2._y = _local4 + _local8; } else { _local4 = _local6; if (centerContent) { _local4 = _local4 + (((_local11 - _local8) - _local6) / 2); } _local2._y = _local4 - _local6; } } var _local13 = borderW + _local16; _local3._x = _local5 + _local13; _local3._y = _local4 + _local13; _local2._x = _local2._x + _local13; _local2._y = _local2._y + _local13; } function set label(lbl) { setLabel(lbl); //return(label); } function setLabel(label) { if (label == "") { labelPath.removeTextField(); refresh(); return(undefined); } if (labelPath == undefined) { var _local2 = createLabel("labelPath", 200, label); _local2._width = _local2.textWidth + 5; _local2._height = _local2.textHeight + 5; if (initializing) { _local2.visible = false; } } else { delete labelPath.__text; labelPath.text = label; refresh(); } } function getLabel(Void) { return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text))); } function get label() { return(getLabel()); } function _getIcon(Void) { return(_iconLinkageName); } function get icon() { if (initializing) { return(initIcon); } return(_iconLinkageName); } function _setIcon(linkage) { if (initializing) { if (linkage == "") { return(undefined); } initIcon = linkage; } else { if (linkage == "") { removeIcons(); return(undefined); } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); _iconLinkageName = linkage; refresh(); } } function set icon(linkage) { _setIcon(linkage); //return(icon); } function setHitArea(w, h) { if (hitArea_mc == undefined) { createEmptyObject("hitArea_mc", 100); } var _local2 = hitArea_mc; _local2.clear(); _local2.beginFill(16711680); _local2.drawRect(0, 0, w, h); _local2.endFill(); _local2.setVisible(false); } static var symbolName = "Button"; static var symbolOwner = mx.controls.Button; var className = "Button"; static var version = "2.0.2.126"; var btnOffset = 0; var _color = "buttonColor"; var __label = "default value"; var __labelPlacement = "right"; var falseUpSkin = "ButtonSkin"; var falseDownSkin = "ButtonSkin"; var falseOverSkin = "ButtonSkin"; var falseDisabledSkin = "ButtonSkin"; var trueUpSkin = "ButtonSkin"; var trueDownSkin = "ButtonSkin"; var trueOverSkin = "ButtonSkin"; var trueDisabledSkin = "ButtonSkin"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); var centerContent = true; var borderW = 1; }
Symbol 253 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder { var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y; function ButtonSkin () { super(); } function init() { super.init(); } function size() { drawHaloRect(__get__width(), __get__height()); } function drawHaloRect(w, h) { var _local6 = getStyle("borderStyle"); var _local4 = getStyle("themeColor"); var _local5 = _parent.emphasized; clear(); switch (_local6) { case "falseup" : if (_local5) { drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { drawRoundRect(0, 0, w, h, 5, 9542041, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial"); drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial"); drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case "falsedown" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20); break; case "falserollover" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case "falsedisabled" : drawRoundRect(0, 0, w, h, 5, 13159628, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case "trueup" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case "truedown" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20); break; case "truerollover" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case "truedisabled" : drawRoundRect(0, 0, w, h, 5, 13159628, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return(true); } static var symbolName = "ButtonSkin"; static var symbolOwner = mx.skins.halo.ButtonSkin; var className = "ButtonSkin"; var backgroundColorName = "buttonColor"; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 254 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar { var scrollIt; function VScrollBar () { super(); } function init(Void) { super.init(); } function isScrollBarKey(k) { if (k == 38) { scrollIt("Line", -1); return(true); } if (k == 40) { scrollIt("Line", 1); return(true); } if (k == 33) { scrollIt("Page", -1); return(true); } if (k == 34) { scrollIt("Page", 1); return(true); } return(super.isScrollBarKey(k)); } static var symbolName = "VScrollBar"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.126"; var className = "VScrollBar"; var minusMode = "Up"; var plusMode = "Down"; var minMode = "AtTop"; var maxMode = "AtBottom"; }

Library Items

Symbol 1 Font [Arial]Used by:13 63 70 72 74 86 87 97 263 264 265 266 267 268 269 271 272 273 278 280 286 287 289 291 292 293 294 295
Symbol 2 GraphicUsed by:15 282
Symbol 3 GraphicUsed by:15 282
Symbol 4 GraphicUsed by:15 282
Symbol 5 GraphicUsed by:15 282
Symbol 6 GraphicUsed by:15 282
Symbol 7 GraphicUsed by:15 282
Symbol 8 GraphicUsed by:15 282
Symbol 9 GraphicUsed by:15 282
Symbol 10 GraphicUsed by:15 282
Symbol 11 GraphicUsed by:15 282
Symbol 12 GraphicUsed by:15 282
Symbol 13 TextUses:1Used by:14
Symbol 14 MovieClipUses:13Used by:15 282
Symbol 15 MovieClip [phetNASALogoSmall]Uses:2 3 4 5 6 7 8 9 10 11 12 14
Symbol 16 GraphicUsed by:19
Symbol 17 FontUsed by:18 20 35 36 37 38
Symbol 18 EditableTextUses:17Used by:19
Symbol 19 MovieClip [scaleRuler]Uses:16 18
Symbol 20 EditableTextUses:17Used by:28
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:27
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:27
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClipUses:25Used by:27
Symbol 27 MovieClip [tapeMeasure]Uses:22 24 26Used by:28
Symbol 28 MovieClip [tapeMeasureHolder]Uses:20 27
Symbol 29 FontUsed by:30 40
Symbol 30 EditableTextUses:29Used by:31
Symbol 31 MovieClip [phetLogo]Uses:30
Symbol 32 GraphicUsed by:34
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:32 33Used by:39
Symbol 35 EditableTextUses:17Used by:39
Symbol 36 EditableTextUses:17Used by:39
Symbol 37 EditableTextUses:17Used by:39
Symbol 38 EditableTextUses:17Used by:39
Symbol 39 MovieClip [numBodiesRadioGroup]Uses:34 35 36 37 38
Symbol 40 EditableTextUses:29Used by:44
Symbol 41 GraphicUsed by:43
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:41 42Used by:44 81 83 92 94
Symbol 44 MovieClip [myCheckBox]Uses:40 43
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:45Used by:48
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClipUses:46 47Used by:58 59
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:58 59
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:51Used by:57
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:56
Symbol 55 GraphicUsed by:56 285
Symbol 56 MovieClipUses:54 55Used by:57
Symbol 57 MovieClipUses:52 56Used by:58 59
Symbol 58 MovieClip [bodyWithArrow]Uses:48 50 57
Symbol 59 MovieClip [fullBody]Uses:48 57 50
Symbol 60 GraphicUsed by:255
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:67 100
Symbol 63 EditableTextUses:1Used by:67
Symbol 64 FontUsed by:65 66 71 75 77 98 99 279
Symbol 65 EditableTextUses:64Used by:67
Symbol 66 EditableTextUses:64Used by:67
Symbol 67 MovieClipUses:62 63 65 66Used by:255
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:73 78
Symbol 70 EditableTextUses:1Used by:73
Symbol 71 EditableTextUses:64Used by:73
Symbol 72 EditableTextUses:1Used by:73
Symbol 73 MovieClipUses:69 70 71 72Used by:255
Symbol 74 EditableTextUses:1Used by:78
Symbol 75 EditableTextUses:64Used by:78
Symbol 76 GraphicUsed by:78
Symbol 77 EditableTextUses:64Used by:78
Symbol 78 MovieClipUses:69 74 75 76 77Used by:255
Symbol 79 FontUsed by:80 82 91 93 288 290
Symbol 80 EditableTextUses:79Used by:81
Symbol 81 MovieClipUses:80 43Used by:255
Symbol 82 EditableTextUses:79Used by:83
Symbol 83 MovieClipUses:82 43Used by:255
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:90
Symbol 86 EditableTextUses:1Used by:90
Symbol 87 EditableTextUses:1Used by:90
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:90
Symbol 90 MovieClipUses:85 86 87 89Used by:255
Symbol 91 EditableTextUses:79Used by:92
Symbol 92 MovieClipUses:91 43Used by:255
Symbol 93 EditableTextUses:79Used by:94
Symbol 94 MovieClipUses:93 43Used by:255
Symbol 95 GraphicUsed by:96
Symbol 96 MovieClipUses:95Used by:100
Symbol 97 EditableTextUses:1Used by:100
Symbol 98 EditableTextUses:64Used by:100
Symbol 99 EditableTextUses:64Used by:100
Symbol 100 MovieClip [helpButton]Uses:96 97 62 98 99Used by:255
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClip [BoundingBox]Uses:106Used by:115 130 136 139 141 200 201 202 203 204 205 217
Symbol 108 MovieClip [Defaults]Used by:110
Symbol 109 MovieClip [UIObjectExtensions]Used by:110
Symbol 110 MovieClip [UIObject]Uses:108 109Used by:116 118 133
Symbol 111 GraphicUsed by:113
Symbol 112 GraphicUsed by:113
Symbol 113 ButtonUses:111 112Used by:116
Symbol 114 MovieClipUsed by:116
Symbol 115 MovieClip [FocusRect]Uses:107Used by:116
Symbol 116 MovieClip [FocusManager]Uses:113 114 115 110Used by:118
Symbol 117 MovieClip [UIComponentExtensions]Used by:118
Symbol 118 MovieClip [UIComponent]Uses:110 116 117Used by:130 135 136 139 202
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClip [BrdrShdw]Uses:119Used by:123 128 129
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClip [BrdrFace]Uses:121Used by:123 128 129
Symbol 123 MovieClip [SimpleButtonDown]Uses:120 122Used by:130
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClip [BrdrBlk]Uses:124Used by:128 129
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClip [BrdrHilght]Uses:126Used by:128 129
Symbol 128 MovieClip [SimpleButtonIn]Uses:125 127 120 122Used by:130
Symbol 129 MovieClip [SimpleButtonUp]Uses:125 122 120 127Used by:130
Symbol 130 MovieClip [SimpleButton]Uses:107 123 128 129 118Used by:136 141 200 201
Symbol 131 FontUsed by:132
Symbol 132 EditableTextUses:131Used by:135
Symbol 133 MovieClip [Border]Uses:110Used by:134 141
Symbol 134 MovieClip [RectBorder]Uses:133Used by:135 141 202
Symbol 135 MovieClip [TextInput]Uses:132 134 118Used by:136
Symbol 136 MovieClip [ComboBase]Uses:107 118 130 135Used by:217
Symbol 137 MovieClip [DataProvider]Used by:204
Symbol 138 MovieClip [DataSelector]Used by:204
Symbol 139 MovieClip [SelectableRow]Uses:118 107Used by:204
Symbol 140 MovieClip [ButtonSkin]Used by:141
Symbol 141 MovieClip [Button]Uses:107 130 133 134 140Used by:200 201
Symbol 142 MovieClip [CustomBorder]Used by:200 201
Symbol 143 GraphicUsed by:145 181 182 183 186 187 192
Symbol 144 GraphicUsed by:145 181 182 186 187 192
Symbol 145 MovieClip [ScrollTrack]Uses:143 144Used by:152 157 158 159 193 194 195 196 197 198
Symbol 146 GraphicUsed by:152 157 158 159 193 194 195 196
Symbol 147 GraphicUsed by:152 157 158 159 193 194 195 196
Symbol 148 GraphicUsed by:152 157 158 159 193 194 195 196
Symbol 149 GraphicUsed by:152 157 158 159 193 194 195 196
Symbol 150 GraphicUsed by:152 157 158 159 193 194 195 196 210 214 215
Symbol 151 GraphicUsed by:152 157 158 159
Symbol 152 MovieClip [ScrollDownArrowDisabled]Uses:145 146 147 148 149 150 151Used by:199
Symbol 153 GraphicUsed by:154
Symbol 154 MovieClip [ScrollThemeColor1]Uses:153Used by:157 158 194 195
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClip [ScrollThemeColor2]Uses:155Used by:157 194
Symbol 157 MovieClip [ScrollDownArrowDown]Uses:145 146 154 147 148 149 150 156 151Used by:199
Symbol 158 MovieClip [ScrollDownArrowOver]Uses:145 146 154 147 148 149 150 151Used by:199
Symbol 159 MovieClip [ScrollDownArrowUp]Uses:145 146 147 148 149 150 151Used by:199
Symbol 160 GraphicUsed by:165 170 171 172 188 189 190 191
Symbol 161 GraphicUsed by:165 170 171 172 188 189 190 191
Symbol 162 GraphicUsed by:165 170 171 172 188 189 190 191
Symbol 163 GraphicUsed by:165 170 171 172 188 189 190 191
Symbol 164 GraphicUsed by:165 170 171 172 188 189 190 191
Symbol 165 MovieClip [ScrollThumbBottomDisabled]Uses:160 161 162 163 164Used by:199
Symbol 166 GraphicUsed by:167
Symbol 167 MovieClip [ThumbThemeColor1]Uses:166Used by:170 171 189 190
Symbol 168 GraphicUsed by:169
Symbol 169 MovieClip [ThumbThemeColor3]Uses:168Used by:170 189
Symbol 170 MovieClip [ScrollThumbBottomDown]Uses:160 167 161 162 163 169 164Used by:199
Symbol 171 MovieClip [ScrollThumbBottomOver]Uses:160 167 161 162 163 164Used by:199
Symbol 172 MovieClip [ScrollThumbBottomUp]Uses:160 161 162 163 164Used by:199
Symbol 173 GraphicUsed by:174 177 178 179
Symbol 174 MovieClip [ScrollThumbGripDisabled]Uses:173Used by:199
Symbol 175 GraphicUsed by:176
Symbol 176 MovieClip [ThumbThemeColor2]Uses:175Used by:177 178 181 182 186
Symbol 177 MovieClip [ScrollThumbGripDown]Uses:176 173Used by:199
Symbol 178 MovieClip [ScrollThumbGripOver]Uses:176 173Used by:199
Symbol 179 MovieClip [ScrollThumbGripUp]Uses:173Used by:199
Symbol 180 GraphicUsed by:181 182 186 187
Symbol 181 MovieClip [ScrollThumbMiddleDisabled]Uses:143 180 176 144Used by:199
Symbol 182 MovieClip [ScrollThumbMiddleDown]Uses:143 176 180 144Used by:199
Symbol 183 MovieClipUses:143Used by:186
Symbol 184 GraphicUsed by:185 193 194 195 196
Symbol 185 MovieClipUses:184Used by:186
Symbol 186 MovieClip [ScrollThumbMiddleOver]Uses:143 176 180 183 185 144Used by:199
Symbol 187 MovieClip [ScrollThumbMiddleUp]Uses:143 180 144Used by:199
Symbol 188 MovieClip [ScrollThumbTopDisabled]Uses:160 161 162 163 164Used by:199
Symbol 189 MovieClip [ScrollThumbTopDown]Uses:160 167 161 162 163 169 164Used by:199
Symbol 190 MovieClip [ScrollThumbTopOver]Uses:160 167 161 162 163 164Used by:199
Symbol 191 MovieClip [ScrollThumbTopUp]Uses:160 161 162 163 164Used by:199
Symbol 192 MovieClip [ScrollTrackDisabled]Uses:143 144Used by:199
Symbol 193 MovieClip [ScrollUpArrowDisabled]Uses:145 146 147 148 149 150 184Used by:199
Symbol 194 MovieClip [ScrollUpArrowDown]Uses:145 146 154 147 148 149 150 156 184Used by:199
Symbol 195 MovieClip [ScrollUpArrowOver]Uses:145 146 154 147 148 184 149 150Used by:199
Symbol 196 MovieClip [ScrollUpArrowUp]Uses:145 146 147 148 149 150 184Used by:199
Symbol 197 MovieClip [BtnDownArrow]Uses:145Used by:199
Symbol 198 MovieClip [BtnUpArrow]Uses:145Used by:199
Symbol 199 MovieClip [ScrollBarAssets]Uses:152 157 158 159 165 170 171 172 174 177 178 179 181 182 186 187 188 189 190 191 192 193 194 195 196 197 198Used by:200 201
Symbol 200 MovieClip [HScrollBar]Uses:107 141 130 142 199Used by:203
Symbol 201 MovieClip [VScrollBar]Uses:107 141 130 142 199Used by:203
Symbol 202 MovieClip [View]Uses:107 118 134Used by:203
Symbol 203 MovieClip [ScrollView]Uses:107 200 201 202Used by:204
Symbol 204 MovieClip [ScrollSelectList]Uses:107 137 138 139 203Used by:205
Symbol 205 MovieClip [List]Uses:107 204Used by:217
Symbol 206 GraphicUsed by:210 214 215
Symbol 207 GraphicUsed by:208
Symbol 208 MovieClipUses:207Used by:210 214 215
Symbol 209 GraphicUsed by:210 214 215
Symbol 210 MovieClip [ComboDownArrowUp]Uses:206 208 209 150Used by:211 216
Symbol 211 MovieClip [ComboDownArrowDisabled]Uses:210Used by:216
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClip [ComboThemeColor1]Uses:212Used by:214 215
Symbol 214 MovieClip [ComboDownArrowDown]Uses:206 213 208 209 150Used by:216
Symbol 215 MovieClip [ComboDownArrowOver]Uses:206 213 208 209 150Used by:216
Symbol 216 MovieClip [ComboAssets]Uses:211 214 215 210Used by:217
Symbol 217 MovieClip [ComboBox]Uses:107 136 205 216Used by:255
Symbol 255 MovieClip [controlPanel]Uses:60 67 73 78 81 83 90 92 94 100 217
Symbol 256 GraphicUsed by:257
Symbol 257 MovieClipUses:256Used by:258
Symbol 258 MovieClip [explosion]Uses:257
Symbol 259 GraphicUsed by:260
Symbol 260 MovieClipUses:259Used by:282
Symbol 261 GraphicUsed by:262
Symbol 262 MovieClipUses:261Used by:282
Symbol 263 EditableTextUses:1Used by:282
Symbol 264 EditableTextUses:1Used by:282
Symbol 265 EditableTextUses:1Used by:282
Symbol 266 EditableTextUses:1Used by:282
Symbol 267 EditableTextUses:1Used by:282
Symbol 268 EditableTextUses:1Used by:282
Symbol 269 EditableTextUses:1Used by:282
Symbol 270 FontUsed by:271
Symbol 271 TextUses:1 270Used by:282
Symbol 272 EditableTextUses:1Used by:282
Symbol 273 EditableTextUses:1Used by:282
Symbol 274 FontUsed by:275
Symbol 275 EditableTextUses:274Used by:282
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:276Used by:281
Symbol 278 EditableTextUses:1Used by:281
Symbol 279 EditableTextUses:64Used by:281
Symbol 280 EditableTextUses:1Used by:281
Symbol 281 MovieClipUses:277 278 279 280Used by:282
Symbol 282 MovieClip [infoPage]Uses:260 262 263 264 265 266 267 268 269 271 272 273 2 3 4 5 6 7 8 9 10 11 12 14 275 281
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClipUses:283Used by:285
Symbol 285 MovieClip [currentBody]Uses:284 55
Symbol 286 EditableTextUses:1Used by:296
Symbol 287 EditableTextUses:1Used by:296
Symbol 288 EditableTextUses:79Used by:296
Symbol 289 EditableTextUses:1Used by:296
Symbol 290 EditableTextUses:79Used by:296
Symbol 291 EditableTextUses:1Used by:296
Symbol 292 EditableTextUses:1Used by:296
Symbol 293 EditableTextUses:1Used by:296
Symbol 294 EditableTextUses:1Used by:296
Symbol 295 EditableTextUses:1Used by:296
Symbol 296 MovieClip [specWindow]Uses:286 287 288 289 290 291 292 293 294 295
Symbol 297 MovieClip [__Packages.Observable]
Symbol 298 MovieClip [__Packages.Model]
Symbol 299 MovieClip [__Packages.Vector]
Symbol 300 MovieClip [__Packages.Body]
Symbol 301 MovieClip [__Packages.Util]
Symbol 302 MovieClip [__Packages.TrajectoryView]
Symbol 303 MovieClip [__Packages.InitialView]
Symbol 304 MovieClip [__Packages.BodyClip]
Symbol 305 MovieClip [__Packages.edu.colorado.phet.flashcommon.CommonButtons]
Symbol 306 MovieClip [__Packages.edu.colorado.phet.flashcommon.FlashCommon]
Symbol 307 MovieClip [__Packages.org.aswing.ASColor]
Symbol 308 MovieClip [__Packages.edu.colorado.phet.flashcommon.CommonStrings]
Symbol 309 MovieClip [__Packages.edu.colorado.phet.flashcommon.Preferences]
Symbol 310 MovieClip [__Packages.edu.colorado.phet.flashcommon.PrivacyDialog]
Symbol 311 MovieClip [__Packages.org.aswing.IEventDispatcher]
Symbol 312 MovieClip [__Packages.org.aswing.EventDispatcher]
Symbol 313 MovieClip [__Packages.org.aswing.util.StringUtils]
Symbol 314 MovieClip [__Packages.org.aswing.util.Delegate]
Symbol 315 MovieClip [__Packages.org.aswing.util.ArrayUtils]
Symbol 316 MovieClip [__Packages.org.aswing.Event]
Symbol 317 MovieClip [__Packages.org.aswing.Component]
Symbol 318 MovieClip [__Packages.org.aswing.ElementCreater]
Symbol 319 MovieClip [__Packages.org.aswing.util.DepthManager]
Symbol 320 MovieClip [__Packages.org.aswing.util.ObjectUtils]
Symbol 321 MovieClip [__Packages.org.aswing.util.MathUtils]
Symbol 322 MovieClip [__Packages.org.aswing.geom.Rectangle]
Symbol 323 MovieClip [__Packages.org.aswing.geom.Point]
Symbol 324 MovieClip [__Packages.org.aswing.geom.Dimension]
Symbol 325 MovieClip [__Packages.org.aswing.util.MCUtils]
Symbol 326 MovieClip [__Packages.org.aswing.plaf.ComponentUI]
Symbol 327 MovieClip [__Packages.org.aswing.graphics.Graphics]
Symbol 328 MovieClip [__Packages.org.aswing.graphics.Brush]
Symbol 329 MovieClip [__Packages.org.aswing.graphics.Pen]
Symbol 330 MovieClip [__Packages.org.aswing.graphics.SolidBrush]
Symbol 331 MovieClip [__Packages.org.aswing.UIManager]
Symbol 332 MovieClip [__Packages.org.aswing.util.HashMap]
Symbol 333 MovieClip [__Packages.org.aswing.UIDefaults]
Symbol 334 MovieClip [__Packages.org.aswing.border.Border]
Symbol 335 MovieClip [__Packages.org.aswing.Insets]
Symbol 336 MovieClip [__Packages.org.aswing.Icon]
Symbol 337 MovieClip [__Packages.org.aswing.ASFont]
Symbol 338 MovieClip [__Packages.org.aswing.ASTextFormat]
Symbol 339 MovieClip [__Packages.org.aswing.ASTextExtent]
Symbol 340 MovieClip [__Packages.org.aswing.LookAndFeel]
Symbol 341 MovieClip [__Packages.org.aswing.plaf.UIResource]
Symbol 342 MovieClip [__Packages.org.aswing.plaf.basic.BasicLookAndFeel]
Symbol 343 MovieClip [__Packages.org.aswing.plaf.ASColorUIResource]
Symbol 344 MovieClip [__Packages.org.aswing.plaf.ASFontUIResource]
Symbol 345 MovieClip [__Packages.org.aswing.plaf.basic.border.ButtonBorder]
Symbol 346 MovieClip [__Packages.org.aswing.ASWingConstants]
Symbol 347 MovieClip [__Packages.org.aswing.AbstractButton]
Symbol 348 MovieClip [__Packages.org.aswing.ButtonModel]
Symbol 349 MovieClip [__Packages.org.aswing.ButtonGroup]
Symbol 350 MovieClip [__Packages.org.aswing.Action]
Symbol 351 MovieClip [__Packages.org.aswing.plaf.ButtonUI]
Symbol 352 MovieClip [__Packages.org.aswing.plaf.InsetsUIResource]
Symbol 353 MovieClip [__Packages.org.aswing.overflow.ComponentDecorator]
Symbol 354 MovieClip [__Packages.org.aswing.overflow.GrayFilteredIcon]
Symbol 355 MovieClip [__Packages.org.aswing.plaf.basic.BasicGraphicsUtils]
Symbol 356 MovieClip [__Packages.org.aswing.graphics.AdvancedPen]
Symbol 357 MovieClip [__Packages.org.aswing.plaf.basic.icon.RadioButtonIcon]
Symbol 358 MovieClip [__Packages.org.aswing.overflow.JToggleButton]
Symbol 359 MovieClip [__Packages.org.aswing.DefaultButtonModel]
Symbol 360 MovieClip [__Packages.org.aswing.overflow.ToggleButtonModel]
Symbol 361 MovieClip [__Packages.org.aswing.plaf.basic.BasicButtonUI]
Symbol 362 MovieClip [__Packages.org.aswing.FocusManager]
Symbol 363 MovieClip [__Packages.org.aswing.Container]
Symbol 364 MovieClip [__Packages.org.aswing.LayoutManager]
Symbol 365 MovieClip [__Packages.org.aswing.FocusTraversalPolicy]
Symbol 366 MovieClip [__Packages.org.aswing.EmptyLayout]
Symbol 367 MovieClip [__Packages.org.aswing.overflow.JPopup]
Symbol 368 MovieClip [__Packages.org.aswing.util.List]
Symbol 369 MovieClip [__Packages.org.aswing.util.Vector]
Symbol 370 MovieClip [__Packages.org.aswing.ASWingUtils]
Symbol 371 MovieClip [__Packages.org.aswing.JPanel]
Symbol 372 MovieClip [__Packages.org.aswing.FlowLayout]
Symbol 373 MovieClip [__Packages.org.aswing.plaf.PanelUI]
Symbol 374 MovieClip [__Packages.org.aswing.plaf.basic.BasicPanelUI]
Symbol 375 MovieClip [__Packages.org.aswing.plaf.asw.ASWingPanelUI]
Symbol 376 MovieClip [__Packages.org.aswing.MCPanel]
Symbol 377 MovieClip [__Packages.org.aswing.BorderLayout]
Symbol 378 MovieClip [__Packages.org.aswing.JWindow]
Symbol 379 MovieClip [__Packages.org.aswing.KeyMap]
Symbol 380 MovieClip [__Packages.org.aswing.KeyType]
Symbol 381 MovieClip [__Packages.org.aswing.WindowLayout]
Symbol 382 MovieClip [__Packages.org.aswing.plaf.WindowUI]
Symbol 383 MovieClip [__Packages.org.aswing.plaf.basic.BasicWindowUI]
Symbol 384 MovieClip [__Packages.org.aswing.KeyboardManager]
Symbol 385 MovieClip [__Packages.org.aswing.util.AbstractImpulser]
Symbol 386 MovieClip [__Packages.org.aswing.util.Impulser]
Symbol 387 MovieClip [__Packages.org.aswing.util.Timer]
Symbol 388 MovieClip [__Packages.org.aswing.ContainerOrderFocusTraversalPolicy]
Symbol 389 MovieClip [__Packages.org.aswing.DefaultFocusTraversalPolicy]
Symbol 390 MovieClip [__Packages.org.aswing.plaf.basic.BasicToggleButtonUI]
Symbol 391 MovieClip [__Packages.org.aswing.plaf.asw.ASWingToggleButtonUI]
Symbol 392 MovieClip [__Packages.org.aswing.plaf.asw.ASWingButtonUI]
Symbol 393 MovieClip [__Packages.org.aswing.plaf.asw.ASWingGraphicsUtils]
Symbol 394 MovieClip [__Packages.org.aswing.graphics.GradientBrush]
Symbol 395 MovieClip [__Packages.org.aswing.JRadioButton]
Symbol 396 MovieClip [__Packages.org.aswing.RadioButtonModel]
Symbol 397 MovieClip [__Packages.org.aswing.plaf.basic.BasicRadioButtonUI]
Symbol 398 MovieClip [__Packages.org.aswing.plaf.asw.ASWingRadioButtonUI]
Symbol 399 MovieClip [__Packages.org.aswing.plaf.basic.icon.CheckBoxIcon]
Symbol 400 MovieClip [__Packages.org.aswing.JCheckBox]
Symbol 401 MovieClip [__Packages.org.aswing.plaf.basic.BasicCheckBoxUI]
Symbol 402 MovieClip [__Packages.org.aswing.plaf.asw.ASWingCheckBoxUI]
Symbol 403 MovieClip [__Packages.org.aswing.plaf.basic.frame.TitleBarUI]
Symbol 404 MovieClip [__Packages.org.aswing.plaf.basic.frame.FrameTitleBar]
Symbol 405 MovieClip [__Packages.org.aswing.JFrame]
Symbol 406 MovieClip [__Packages.org.aswing.resizer.Resizer]
Symbol 407 MovieClip [__Packages.org.aswing.plaf.basic.BasicFrameUI]
Symbol 408 MovieClip [__Packages.org.aswing.plaf.asw.ASWingFrameUI]
Symbol 409 MovieClip [__Packages.org.aswing.resizer.ResizerController]
Symbol 410 MovieClip [__Packages.org.aswing.resizer.DefaultResizer]
Symbol 411 MovieClip [__Packages.org.aswing.resizer.ResizeStrategy]
Symbol 412 MovieClip [__Packages.org.aswing.resizer.DefaultResizeBarHandler]
Symbol 413 MovieClip [__Packages.org.aswing.resizer.ResizeStrategyImp]
Symbol 414 MovieClip [__Packages.org.aswing.plaf.basic.frame.TitleBarLayout]
Symbol 415 MovieClip [__Packages.org.aswing.JButton]
Symbol 416 MovieClip [__Packages.org.aswing.plaf.basic.frame.FrameResizer]
Symbol 417 MovieClip [__Packages.org.aswing.plaf.basic.border.FrameBorder]
Symbol 418 MovieClip [__Packages.org.aswing.plaf.basic.frame.TitleIcon]
Symbol 419 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameIcon]
Symbol 420 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameIconifiedIcon]
Symbol 421 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameNormalIcon]
Symbol 422 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameMaximizeIcon]
Symbol 423 MovieClip [__Packages.org.aswing.plaf.basic.icon.FrameCloseIcon]
Symbol 424 MovieClip [__Packages.org.aswing.border.DecorateBorder]
Symbol 425 MovieClip [__Packages.org.aswing.border.LineBorder]
Symbol 426 MovieClip [__Packages.org.aswing.plaf.basic.border.ToolTipBorder]
Symbol 427 MovieClip [__Packages.org.aswing.plaf.basic.border.TextBorder]
Symbol 428 MovieClip [__Packages.org.aswing.plaf.basic.border.TextFieldBorder]
Symbol 429 MovieClip [__Packages.org.aswing.plaf.basic.border.TextAreaBorder]
Symbol 430 MovieClip [__Packages.org.aswing.border.BevelBorder]
Symbol 431 MovieClip [__Packages.org.aswing.plaf.basic.border.ComboBoxBorder]
Symbol 432 MovieClip [__Packages.org.aswing.JComboBox]
Symbol 433 MovieClip [__Packages.org.aswing.ComboBoxEditor]
Symbol 434 MovieClip [__Packages.org.aswing.ChildrenMaskedContainer]
Symbol 435 MovieClip [__Packages.org.aswing.Viewportable]
Symbol 436 MovieClip [__Packages.org.aswing.event.ListDataListener]
Symbol 437 MovieClip [__Packages.org.aswing.event.ListDataEvent]
Symbol 438 MovieClip [__Packages.org.aswing.ListSelectionModel]
Symbol 439 MovieClip [__Packages.org.aswing.DefaultListSelectionModel]
Symbol 440 MovieClip [__Packages.org.aswing.dnd.DropMotion]
Symbol 441 MovieClip [__Packages.org.aswing.dnd.DirectlyRemoveMotion]
Symbol 442 MovieClip [__Packages.org.aswing.dnd.RejectedMotion]
Symbol 443 MovieClip [__Packages.org.aswing.util.EnterFrameImpulser]
Symbol 444 MovieClip [__Packages.org.aswing.util.EnterFrameEventDispatcher]
Symbol 445 MovieClip [__Packages.org.aswing.dnd.DragManager]
Symbol 446 MovieClip [__Packages.org.aswing.dnd.DragListener]
Symbol 447 MovieClip [__Packages.org.aswing.dnd.SourceData]
Symbol 448 MovieClip [__Packages.org.aswing.dnd.DraggingImage]
Symbol 449 MovieClip [__Packages.org.aswing.dnd.DefaultDragImage]
Symbol 450 MovieClip [__Packages.org.aswing.overflow.JList]
Symbol 451 MovieClip [__Packages.org.aswing.Cell]
Symbol 452 MovieClip [__Packages.org.aswing.ListCell]
Symbol 453 MovieClip [__Packages.org.aswing.ListCellFactory]
Symbol 454 MovieClip [__Packages.org.aswing.ListModel]
Symbol 455 MovieClip [__Packages.org.aswing.DefaultListCellFactory]
Symbol 456 MovieClip [__Packages.org.aswing.AbstractListCell]
Symbol 457 MovieClip [__Packages.org.aswing.DefaultListCell]
Symbol 458 MovieClip [__Packages.org.aswing.JLabel]
Symbol 459 MovieClip [__Packages.org.aswing.plaf.LabelUI]
Symbol 460 MovieClip [__Packages.org.aswing.plaf.basic.BasicLabelUI]
Symbol 461 MovieClip [__Packages.org.aswing.JToolTip]
Symbol 462 MovieClip [__Packages.org.aswing.plaf.ToolTipUI]
Symbol 463 MovieClip [__Packages.org.aswing.plaf.basic.BasicToolTipUI]
Symbol 464 MovieClip [__Packages.org.aswing.overflow.JSharedToolTip]
Symbol 465 MovieClip [__Packages.org.aswing.plaf.ListUI]
Symbol 466 MovieClip [__Packages.org.aswing.plaf.basic.BasicListUI]
Symbol 467 MovieClip [__Packages.org.aswing.AbstractListModel]
Symbol 468 MovieClip [__Packages.org.aswing.MutableListModel]
Symbol 469 MovieClip [__Packages.org.aswing.VectorListModel]
Symbol 470 MovieClip [__Packages.org.aswing.RepaintManager]
Symbol 471 MovieClip [__Packages.org.aswing.dnd.ListSourceData]
Symbol 472 MovieClip [__Packages.org.aswing.dnd.ListDragImage]
Symbol 473 MovieClip [__Packages.org.aswing.DefaultComboBoxEditor]
Symbol 474 MovieClip [__Packages.org.aswing.JTextField]
Symbol 475 MovieClip [__Packages.org.aswing.plaf.TextUI]
Symbol 476 MovieClip [__Packages.org.aswing.plaf.basic.BasicTextComponentUI]
Symbol 477 MovieClip [__Packages.org.aswing.plaf.basic.BasicTextFieldUI]
Symbol 478 MovieClip [__Packages.org.aswing.plaf.ComboBoxUI]
Symbol 479 MovieClip [__Packages.org.aswing.plaf.basic.BasicComboBoxUI]
Symbol 480 MovieClip [__Packages.org.aswing.JScrollPane]
Symbol 481 MovieClip [__Packages.org.aswing.JScrollBar]
Symbol 482 MovieClip [__Packages.org.aswing.BoundedRangeModel]
Symbol 483 MovieClip [__Packages.org.aswing.DefaultBoundedRangeModel]
Symbol 484 MovieClip [__Packages.org.aswing.plaf.ScrollBarUI]
Symbol 485 MovieClip [__Packages.org.aswing.plaf.basic.BasicScrollBarUI]
Symbol 486 MovieClip [__Packages.org.aswing.plaf.basic.icon.ArrowIcon]
Symbol 487 MovieClip [__Packages.org.aswing.plaf.asw.ASWingScrollBarUI]
Symbol 488 MovieClip [__Packages.org.aswing.overflow.JViewport]
Symbol 489 MovieClip [__Packages.org.aswing.overflow.ViewportLayout]
Symbol 490 MovieClip [__Packages.org.aswing.plaf.ViewportUI]
Symbol 491 MovieClip [__Packages.org.aswing.plaf.basic.BasicViewportUI]
Symbol 492 MovieClip [__Packages.org.aswing.ScrollPaneLayout]
Symbol 493 MovieClip [__Packages.org.aswing.plaf.ScrollPaneUI]
Symbol 494 MovieClip [__Packages.org.aswing.plaf.basic.BasicScrollPaneUI]
Symbol 495 MovieClip [__Packages.org.aswing.plaf.basic.border.ProgressBarBorder]
Symbol 496 MovieClip [__Packages.org.aswing.border.EmptyBorder]
Symbol 497 MovieClip [__Packages.org.aswing.plaf.basic.icon.ProgressBarIcon]
Symbol 498 MovieClip [__Packages.org.aswing.overflow.JProgressBar]
Symbol 499 MovieClip [__Packages.org.aswing.plaf.ProgressBarUI]
Symbol 500 MovieClip [__Packages.org.aswing.plaf.basic.BasicProgressBarUI]
Symbol 501 MovieClip [__Packages.org.aswing.plaf.basic.border.TableHeaderCellBorder]
Symbol 502 MovieClip [__Packages.org.aswing.plaf.basic.border.ColorChooserBorder]
Symbol 503 MovieClip [__Packages.org.aswing.plaf.basic.icon.SolidArrowIcon]
Symbol 504 MovieClip [__Packages.org.aswing.plaf.basic.icon.MenuArrowIcon]
Symbol 505 MovieClip [__Packages.org.aswing.plaf.basic.icon.MenuItemArrowIcon]
Symbol 506 MovieClip [__Packages.org.aswing.plaf.basic.icon.MenuCheckIcon]
Symbol 507 MovieClip [__Packages.org.aswing.plaf.basic.icon.MenuItemCheckIcon]
Symbol 508 MovieClip [__Packages.org.aswing.plaf.basic.icon.CheckBoxMenuItemCheckIcon]
Symbol 509 MovieClip [__Packages.org.aswing.MenuElement]
Symbol 510 MovieClip [__Packages.org.aswing.overflow.JMenuItem]
Symbol 511 MovieClip [__Packages.org.aswing.plaf.MenuItemUI]
Symbol 512 MovieClip [__Packages.org.aswing.plaf.basic.BasicMenuItemUI]
Symbol 513 MovieClip [__Packages.org.aswing.MenuSelectionManager]
Symbol 514 MovieClip [__Packages.org.aswing.overflow.JPopupMenu]
Symbol 515 MovieClip [__Packages.org.aswing.SingleSelectionModel]
Symbol 516 MovieClip [__Packages.org.aswing.DefaultSingleSelectionModel]
Symbol 517 MovieClip [__Packages.org.aswing.plaf.PopupMenuUI]
Symbol 518 MovieClip [__Packages.org.aswing.plaf.basic.BasicPopupMenuUI]
Symbol 519 MovieClip [__Packages.org.aswing.SoftBoxLayout]
Symbol 520 MovieClip [__Packages.org.aswing.plaf.basic.DefaultMenuLayout]
Symbol 521 MovieClip [__Packages.org.aswing.overflow.JMenu]
Symbol 522 MovieClip [__Packages.org.aswing.plaf.basic.BasicMenuUI]
Symbol 523 MovieClip [__Packages.org.aswing.overflow.JMenuBar]
Symbol 524 MovieClip [__Packages.org.aswing.plaf.MenuBarUI]
Symbol 525 MovieClip [__Packages.org.aswing.plaf.basic.BasicMenuBarUI]
Symbol 526 MovieClip [__Packages.org.aswing.plaf.basic.icon.RadioButtonMenuItemCheckIcon]
Symbol 527 MovieClip [__Packages.org.aswing.plaf.basic.border.PopupMenuBorder]
Symbol 528 MovieClip [__Packages.org.aswing.plaf.asw.ASWingLookAndFeel]
Symbol 529 MovieClip [__Packages.org.aswing.plaf.asw.border.ButtonBorder]
Symbol 530 MovieClip [__Packages.org.aswing.plaf.asw.frame.ASWingTitleBarUI]
Symbol 531 MovieClip [__Packages.org.aswing.plaf.asw.border.FrameBorder]
Symbol 532 MovieClip [__Packages.org.aswing.plaf.asw.border.TableHeaderCellBorder]
Symbol 533 MovieClip [__Packages.org.aswing.JTextComponent]
Symbol 534 MovieClip [__Packages.org.aswing.JTextArea]
Symbol 535 MovieClip [__Packages.org.aswing.plaf.basic.BasicTextAreaUI]
Symbol 536 MovieClip [__Packages.org.aswing.JSpacer]
Symbol 537 MovieClip [__Packages.org.aswing.plaf.SpacerUI]
Symbol 538 MovieClip [__Packages.org.aswing.plaf.basic.BasicSpacerUI]
Symbol 539 MovieClip [__Packages.org.aswing.BoxLayout]
Symbol 540 MovieClip [__Packages.edu.colorado.phet.flashcommon.CommonDialog]
Symbol 541 MovieClip [__Packages.edu.colorado.phet.flashcommon.TabHandler]
Symbol 542 MovieClip [__Packages.edu.colorado.phet.flashcommon.TabEntry]
Symbol 543 MovieClip [__Packages.edu.colorado.phet.flashcommon.AboutDialog]
Symbol 544 MovieClip [__Packages.org.aswing.CenterLayout]
Symbol 545 MovieClip [__Packages.edu.colorado.phet.flashcommon.AgreementDialog]
Symbol 546 MovieClip [__Packages.edu.colorado.phet.flashcommon.CreditsDialog]
Symbol 547 MovieClip [__Packages.edu.colorado.phet.flashcommon.MessageDialog]
Symbol 548 MovieClip [__Packages.edu.colorado.phet.flashcommon.PreferencesDialog]
Symbol 549 MovieClip [__Packages.org.aswing.border.TitledBorder]
Symbol 550 MovieClip [__Packages.edu.colorado.phet.flashcommon.StatisticsDetailsDialog]
Symbol 551 MovieClip [__Packages.edu.colorado.phet.flashcommon.UpdateInstallationDetailsDialog]
Symbol 552 MovieClip [__Packages.edu.colorado.phet.flashcommon.UpdateInstallationDialog]
Symbol 553 MovieClip [__Packages.edu.colorado.phet.flashcommon.UpdateSimDialog]
Symbol 554 MovieClip [__Packages.edu.colorado.phet.flashcommon.UpdateHandler]
Symbol 555 MovieClip [__Packages.edu.colorado.phet.flashcommon.Statistics]
Symbol 556 MovieClip [__Packages.edu.colorado.phet.flashcommon.KeyboardHandler]
Symbol 557 MovieClip [__Packages.edu.colorado.phet.flashcommon.Inspector]
Symbol 558 MovieClip [__Packages.edu.colorado.phet.flashcommon.SoftwareAgreement]
Symbol 559 MovieClip [__Packages.ControlPanelView]
Symbol 560 MovieClip [__Packages.Internationalizer]
Symbol 561 MovieClip [__Packages.edu.colorado.phet.flashcommon.SimStrings]
Symbol 101 MovieClip [__Packages.mx.core.UIObject]
Symbol 102 MovieClip [__Packages.mx.core.UIComponent]
Symbol 103 MovieClip [__Packages.mx.controls.listclasses.DataSelector]
Symbol 104 MovieClip [__Packages.mx.controls.ComboBase]
Symbol 105 MovieClip [__Packages.mx.controls.ComboBox]
Symbol 218 MovieClip [__Packages.mx.skins.SkinElement]
Symbol 219 MovieClip [__Packages.mx.styles.CSSTextStyles]
Symbol 220 MovieClip [__Packages.mx.styles.StyleManager]
Symbol 221 MovieClip [__Packages.mx.styles.CSSStyleDeclaration]
Symbol 222 MovieClip [__Packages.mx.skins.Border]
Symbol 223 MovieClip [__Packages.mx.skins.RectBorder]
Symbol 224 MovieClip [__Packages.mx.controls.TextInput]
Symbol 225 MovieClip [__Packages.mx.controls.SimpleButton]
Symbol 226 MovieClip [__Packages.mx.managers.DepthManager]
Symbol 227 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 228 MovieClip [__Packages.mx.managers.SystemManager]
Symbol 229 MovieClip [__Packages.mx.managers.PopUpManager]
Symbol 230 MovieClip [__Packages.mx.core.View]
Symbol 231 MovieClip [__Packages.mx.events.UIEventDispatcher]
Symbol 232 MovieClip [__Packages.mx.core.ExternalContent]
Symbol 233 MovieClip [__Packages.mx.skins.CustomBorder]
Symbol 234 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb]
Symbol 235 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar]
Symbol 236 MovieClip [__Packages.mx.core.ScrollView]
Symbol 237 MovieClip [__Packages.mx.controls.listclasses.DataProvider]
Symbol 238 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList]
Symbol 239 MovieClip [__Packages.mx.controls.List]
Symbol 240 MovieClip [__Packages.mx.effects.Tween]
Symbol 241 MovieClip [__Packages.mx.skins.ColoredSkinElement]
Symbol 242 MovieClip [__Packages.mx.core.ext.UIObjectExtensions]
Symbol 243 MovieClip [__Packages.mx.skins.halo.Defaults]
Symbol 244 MovieClip [__Packages.mx.managers.FocusManager]
Symbol 245 MovieClip [__Packages.mx.skins.halo.FocusRect]
Symbol 246 MovieClip [__Packages.mx.managers.OverlappedWindows]
Symbol 247 MovieClip [__Packages.mx.styles.CSSSetStyle]
Symbol 248 MovieClip [__Packages.mx.core.ext.UIComponentExtensions]
Symbol 249 MovieClip [__Packages.mx.skins.halo.RectBorder]
Symbol 250 MovieClip [__Packages.mx.controls.listclasses.SelectableRow]
Symbol 251 MovieClip [__Packages.mx.controls.HScrollBar]
Symbol 252 MovieClip [__Packages.mx.controls.Button]
Symbol 253 MovieClip [__Packages.mx.skins.halo.ButtonSkin]
Symbol 254 MovieClip [__Packages.mx.controls.VScrollBar]

Instance Names

"tapeLength_mc"Symbol 27 MovieClip [tapeMeasure] Frame 1Symbol 22 MovieClip
"tapeBody_mc"Symbol 27 MovieClip [tapeMeasure] Frame 1Symbol 24 MovieClip
"tapeEnd_mc"Symbol 27 MovieClip [tapeMeasure] Frame 1Symbol 26 MovieClip
"tape_txt"Symbol 28 MovieClip [tapeMeasureHolder] Frame 1Symbol 20 EditableText
"tapeMeasure_mc"Symbol 28 MovieClip [tapeMeasureHolder] Frame 1Symbol 27 MovieClip [tapeMeasure]
"radio1"Symbol 39 MovieClip [numBodiesRadioGroup] Frame 1Symbol 34 MovieClip
"radio2"Symbol 39 MovieClip [numBodiesRadioGroup] Frame 1Symbol 34 MovieClip
"radio3"Symbol 39 MovieClip [numBodiesRadioGroup] Frame 1Symbol 34 MovieClip
"label_txt"Symbol 39 MovieClip [numBodiesRadioGroup] Frame 1Symbol 38 EditableText
"box_mc"Symbol 44 MovieClip [myCheckBox] Frame 1Symbol 43 MovieClip
"diskBodySolid_mc"Symbol 56 MovieClip Frame 1Symbol 54 MovieClip
"diskBody_mc"Symbol 57 MovieClip Frame 1Symbol 56 MovieClip
"headHandle_mc"Symbol 58 MovieClip [bodyWithArrow] Frame 1Symbol 48 MovieClip
"arrowBody_mc"Symbol 58 MovieClip [bodyWithArrow] Frame 1Symbol 50 MovieClip
"disk_mc"Symbol 58 MovieClip [bodyWithArrow] Frame 1Symbol 57 MovieClip
"headHandle_mc"Symbol 59 MovieClip [fullBody] Frame 1Symbol 48 MovieClip
"disk_mc"Symbol 59 MovieClip [fullBody] Frame 1Symbol 57 MovieClip
"arrowBody_mc"Symbol 59 MovieClip [fullBody] Frame 1Symbol 50 MovieClip
"label_txt"Symbol 67 MovieClip Frame 1Symbol 63 EditableText
"label_txt"Symbol 67 MovieClip Frame 2Symbol 65 EditableText
"label_txt"Symbol 67 MovieClip Frame 3Symbol 66 EditableText
"label_txt"Symbol 73 MovieClip Frame 1Symbol 70 EditableText
"label_txt"Symbol 73 MovieClip Frame 2Symbol 71 EditableText
"label_txt"Symbol 73 MovieClip Frame 3Symbol 72 EditableText
"label_txt"Symbol 78 MovieClip Frame 1Symbol 74 EditableText
"label_txt"Symbol 78 MovieClip Frame 2Symbol 75 EditableText
"label_txt"Symbol 78 MovieClip Frame 3Symbol 77 EditableText
"label_txt"Symbol 81 MovieClip Frame 1Symbol 80 EditableText
"box_mc"Symbol 81 MovieClip Frame 1Symbol 43 MovieClip
"label_txt"Symbol 83 MovieClip Frame 1Symbol 82 EditableText
"box_mc"Symbol 83 MovieClip Frame 1Symbol 43 MovieClip
"sliderScale_mc"Symbol 90 MovieClip Frame 1Symbol 85 MovieClip
"leftLabel_txt"Symbol 90 MovieClip Frame 1Symbol 86 EditableText
"rightLabel_txt"Symbol 90 MovieClip Frame 1Symbol 87 EditableText
"knob_mc"Symbol 90 MovieClip Frame 1Symbol 89 MovieClip
"label_txt"Symbol 92 MovieClip Frame 1Symbol 91 EditableText
"box_mc"Symbol 92 MovieClip Frame 1Symbol 43 MovieClip
"label_txt"Symbol 94 MovieClip Frame 1Symbol 93 EditableText
"box_mc"Symbol 94 MovieClip Frame 1Symbol 43 MovieClip
"label_txt"Symbol 100 MovieClip [helpButton] Frame 1Symbol 97 EditableText
"label_txt"Symbol 100 MovieClip [helpButton] Frame 2Symbol 98 EditableText
"label_txt"Symbol 100 MovieClip [helpButton] Frame 3Symbol 99 EditableText
"boundingBox_mc"Symbol 115 MovieClip [FocusRect] Frame 1Symbol 107 MovieClip [BoundingBox]
"tabCapture"Symbol 116 MovieClip [FocusManager] Frame 1Symbol 113 Button
"b"Symbol 123 MovieClip [SimpleButtonDown] Frame 1Symbol 120 MovieClip [BrdrShdw]
"face"Symbol 123 MovieClip [SimpleButtonDown] Frame 1Symbol 122 MovieClip [BrdrFace]
"b"Symbol 128 MovieClip [SimpleButtonIn] Frame 1Symbol 125 MovieClip [BrdrBlk]
"it"Symbol 128 MovieClip [SimpleButtonIn] Frame 1Symbol 127 MovieClip [BrdrHilght]
"g"Symbol 128 MovieClip [SimpleButtonIn] Frame 1Symbol 120 MovieClip [BrdrShdw]
"face"Symbol 128 MovieClip [SimpleButtonIn] Frame 1Symbol 122 MovieClip [BrdrFace]
"ob"Symbol 129 MovieClip [SimpleButtonUp] Frame 1Symbol 125 MovieClip [BrdrBlk]
"ol"Symbol 129 MovieClip [SimpleButtonUp] Frame 1Symbol 122 MovieClip [BrdrFace]
"ib"Symbol 129 MovieClip [SimpleButtonUp] Frame 1Symbol 120 MovieClip [BrdrShdw]
"il"Symbol 129 MovieClip [SimpleButtonUp] Frame 1Symbol 127 MovieClip [BrdrHilght]
"face"Symbol 129 MovieClip [SimpleButtonUp] Frame 1Symbol 122 MovieClip [BrdrFace]
"boundingBox_mc"Symbol 130 MovieClip [SimpleButton] Frame 1Symbol 107 MovieClip [BoundingBox]
"label"Symbol 135 MovieClip [TextInput] Frame 1Symbol 132 EditableText
"boundingBox_mc"Symbol 136 MovieClip [ComboBase] Frame 1Symbol 107 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 141 MovieClip [Button] Frame 1Symbol 107 MovieClip [BoundingBox]
"dfs"Symbol 197 MovieClip [BtnDownArrow] Frame 1Symbol 145 MovieClip [ScrollTrack]
"dfs"Symbol 198 MovieClip [BtnUpArrow] Frame 1Symbol 145 MovieClip [ScrollTrack]
"boundingBox_mc"Symbol 200 MovieClip [HScrollBar] Frame 1Symbol 107 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 201 MovieClip [VScrollBar] Frame 1Symbol 107 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 202 MovieClip [View] Frame 1Symbol 107 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 203 MovieClip [ScrollView] Frame 1Symbol 107 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 205 MovieClip [List] Frame 1Symbol 107 MovieClip [BoundingBox]
"dfs"Symbol 211 MovieClip [ComboDownArrowDisabled] Frame 1Symbol 210 MovieClip [ComboDownArrowUp]
"boundingBox_mc"Symbol 217 MovieClip [ComboBox] Frame 1Symbol 107 MovieClip [BoundingBox]
"startButton_mc"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 67 MovieClip
"stopButton_mc"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 73 MovieClip
"resetButton_mc"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 78 MovieClip
"trackCM_cb"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 81 MovieClip
"showTraces_cb"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 83 MovieClip
"slider_mc"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 90 MovieClip
"showGrid_cb"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 92 MovieClip
"tapeMeasure_cb"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 94 MovieClip
"helpButton_mc"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 100 MovieClip [helpButton]
"myComboBox"Symbol 255 MovieClip [controlPanel] Frame 1Symbol 217 MovieClip [ComboBox]
"label_txt"Symbol 281 MovieClip Frame 1Symbol 278 EditableText
"label_txt"Symbol 281 MovieClip Frame 2Symbol 279 EditableText
"label_txt"Symbol 281 MovieClip Frame 3Symbol 280 EditableText
"help2_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 263 EditableText
"help3_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 264 EditableText
"help4_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 265 EditableText
"help5_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 266 EditableText
"help6_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 267 EditableText
"help9_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 268 EditableText
"help8_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 269 EditableText
"help7_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 272 EditableText
"help1_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 273 EditableText
"help0_txt"Symbol 282 MovieClip [infoPage] Frame 1Symbol 275 EditableText
"backButton_mc"Symbol 282 MovieClip [infoPage] Frame 1Symbol 281 MovieClip
"disk_mc"Symbol 285 MovieClip [currentBody] Frame 1Symbol 284 MovieClip
"vXEquals_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 286 EditableText
"vx_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 287 EditableText
"vYEquals_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 288 EditableText
"vy_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 289 EditableText
"yEquals_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 290 EditableText
"y_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 291 EditableText
"xEquals_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 292 EditableText
"x_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 293 EditableText
"massEquals_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 294 EditableText
"mass_txt"Symbol 296 MovieClip [specWindow] Frame 1Symbol 295 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "Arial"
ExportAssets (56)Timeline Frame 1Symbol 15 as "phetNASALogoSmall"
ExportAssets (56)Timeline Frame 1Symbol 19 as "scaleRuler"
ExportAssets (56)Timeline Frame 1Symbol 27 as "tapeMeasure"
ExportAssets (56)Timeline Frame 1Symbol 28 as "tapeMeasureHolder"
ExportAssets (56)Timeline Frame 1Symbol 31 as "phetLogo"
ExportAssets (56)Timeline Frame 1Symbol 39 as "numBodiesRadioGroup"
ExportAssets (56)Timeline Frame 1Symbol 44 as "myCheckBox"
ExportAssets (56)Timeline Frame 1Symbol 58 as "bodyWithArrow"
ExportAssets (56)Timeline Frame 1Symbol 59 as "fullBody"
ExportAssets (56)Timeline Frame 1Symbol 100 as "helpButton"
ExportAssets (56)Timeline Frame 1Symbol 107 as "BoundingBox"
ExportAssets (56)Timeline Frame 1Symbol 108 as "Defaults"
ExportAssets (56)Timeline Frame 1Symbol 109 as "UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 110 as "UIObject"
ExportAssets (56)Timeline Frame 1Symbol 115 as "FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 116 as "FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 117 as "UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 118 as "UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 120 as "BrdrShdw"
ExportAssets (56)Timeline Frame 1Symbol 122 as "BrdrFace"
ExportAssets (56)Timeline Frame 1Symbol 123 as "SimpleButtonDown"
ExportAssets (56)Timeline Frame 1Symbol 125 as "BrdrBlk"
ExportAssets (56)Timeline Frame 1Symbol 127 as "BrdrHilght"
ExportAssets (56)Timeline Frame 1Symbol 128 as "SimpleButtonIn"
ExportAssets (56)Timeline Frame 1Symbol 129 as "SimpleButtonUp"
ExportAssets (56)Timeline Frame 1Symbol 130 as "SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 133 as "Border"
ExportAssets (56)Timeline Frame 1Symbol 134 as "RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 135 as "TextInput"
ExportAssets (56)Timeline Frame 1Symbol 136 as "ComboBase"
ExportAssets (56)Timeline Frame 1Symbol 137 as "DataProvider"
ExportAssets (56)Timeline Frame 1Symbol 138 as "DataSelector"
ExportAssets (56)Timeline Frame 1Symbol 139 as "SelectableRow"
ExportAssets (56)Timeline Frame 1Symbol 140 as "ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 141 as "Button"
ExportAssets (56)Timeline Frame 1Symbol 142 as "CustomBorder"
ExportAssets (56)Timeline Frame 1Symbol 145 as "ScrollTrack"
ExportAssets (56)Timeline Frame 1Symbol 152 as "ScrollDownArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 154 as "ScrollThemeColor1"
ExportAssets (56)Timeline Frame 1Symbol 156 as "ScrollThemeColor2"
ExportAssets (56)Timeline Frame 1Symbol 157 as "ScrollDownArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 158 as "ScrollDownArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 159 as "ScrollDownArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 165 as "ScrollThumbBottomDisabled"
ExportAssets (56)Timeline Frame 1Symbol 167 as "ThumbThemeColor1"
ExportAssets (56)Timeline Frame 1Symbol 169 as "ThumbThemeColor3"
ExportAssets (56)Timeline Frame 1Symbol 170 as "ScrollThumbBottomDown"
ExportAssets (56)Timeline Frame 1Symbol 171 as "ScrollThumbBottomOver"
ExportAssets (56)Timeline Frame 1Symbol 172 as "ScrollThumbBottomUp"
ExportAssets (56)Timeline Frame 1Symbol 174 as "ScrollThumbGripDisabled"
ExportAssets (56)Timeline Frame 1Symbol 176 as "ThumbThemeColor2"
ExportAssets (56)Timeline Frame 1Symbol 177 as "ScrollThumbGripDown"
ExportAssets (56)Timeline Frame 1Symbol 178 as "ScrollThumbGripOver"
ExportAssets (56)Timeline Frame 1Symbol 179 as "ScrollThumbGripUp"
ExportAssets (56)Timeline Frame 1Symbol 181 as "ScrollThumbMiddleDisabled"
ExportAssets (56)Timeline Frame 1Symbol 182 as "ScrollThumbMiddleDown"
ExportAssets (56)Timeline Frame 1Symbol 186 as "ScrollThumbMiddleOver"
ExportAssets (56)Timeline Frame 1Symbol 187 as "ScrollThumbMiddleUp"
ExportAssets (56)Timeline Frame 1Symbol 188 as "ScrollThumbTopDisabled"
ExportAssets (56)Timeline Frame 1Symbol 189 as "ScrollThumbTopDown"
ExportAssets (56)Timeline Frame 1Symbol 190 as "ScrollThumbTopOver"
ExportAssets (56)Timeline Frame 1Symbol 191 as "ScrollThumbTopUp"
ExportAssets (56)Timeline Frame 1Symbol 192 as "ScrollTrackDisabled"
ExportAssets (56)Timeline Frame 1Symbol 193 as "ScrollUpArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 194 as "ScrollUpArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 195 as "ScrollUpArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 196 as "ScrollUpArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 197 as "BtnDownArrow"
ExportAssets (56)Timeline Frame 1Symbol 198 as "BtnUpArrow"
ExportAssets (56)Timeline Frame 1Symbol 199 as "ScrollBarAssets"
ExportAssets (56)Timeline Frame 1Symbol 200 as "HScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 201 as "VScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 202 as "View"
ExportAssets (56)Timeline Frame 1Symbol 203 as "ScrollView"
ExportAssets (56)Timeline Frame 1Symbol 204 as "ScrollSelectList"
ExportAssets (56)Timeline Frame 1Symbol 205 as "List"
ExportAssets (56)Timeline Frame 1Symbol 210 as "ComboDownArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 211 as "ComboDownArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 213 as "ComboThemeColor1"
ExportAssets (56)Timeline Frame 1Symbol 214 as "ComboDownArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 215 as "ComboDownArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 216 as "ComboAssets"
ExportAssets (56)Timeline Frame 1Symbol 217 as "ComboBox"
ExportAssets (56)Timeline Frame 1Symbol 255 as "controlPanel"
ExportAssets (56)Timeline Frame 1Symbol 258 as "explosion"
ExportAssets (56)Timeline Frame 1Symbol 282 as "infoPage"
ExportAssets (56)Timeline Frame 1Symbol 285 as "currentBody"
ExportAssets (56)Timeline Frame 1Symbol 296 as "specWindow"
ExportAssets (56)Timeline Frame 1Symbol 297 as "__Packages.Observable"
ExportAssets (56)Timeline Frame 1Symbol 298 as "__Packages.Model"
ExportAssets (56)Timeline Frame 1Symbol 299 as "__Packages.Vector"
ExportAssets (56)Timeline Frame 1Symbol 300 as "__Packages.Body"
ExportAssets (56)Timeline Frame 1Symbol 301 as "__Packages.Util"
ExportAssets (56)Timeline Frame 1Symbol 302 as "__Packages.TrajectoryView"
ExportAssets (56)Timeline Frame 1Symbol 303 as "__Packages.InitialView"
ExportAssets (56)Timeline Frame 1Symbol 304 as "__Packages.BodyClip"
ExportAssets (56)Timeline Frame 1Symbol 305 as "__Packages.edu.colorado.phet.flashcommon.CommonButtons"
ExportAssets (56)Timeline Frame 1Symbol 306 as "__Packages.edu.colorado.phet.flashcommon.FlashCommon"
ExportAssets (56)Timeline Frame 1Symbol 307 as "__Packages.org.aswing.ASColor"
ExportAssets (56)Timeline Frame 1Symbol 308 as "__Packages.edu.colorado.phet.flashcommon.CommonStrings"
ExportAssets (56)Timeline Frame 1Symbol 309 as "__Packages.edu.colorado.phet.flashcommon.Preferences"
ExportAssets (56)Timeline Frame 1Symbol 310 as "__Packages.edu.colorado.phet.flashcommon.PrivacyDialog"
ExportAssets (56)Timeline Frame 1Symbol 311 as "__Packages.org.aswing.IEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 312 as "__Packages.org.aswing.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 313 as "__Packages.org.aswing.util.StringUtils"
ExportAssets (56)Timeline Frame 1Symbol 314 as "__Packages.org.aswing.util.Delegate"
ExportAssets (56)Timeline Frame 1Symbol 315 as "__Packages.org.aswing.util.ArrayUtils"
ExportAssets (56)Timeline Frame 1Symbol 316 as "__Packages.org.aswing.Event"
ExportAssets (56)Timeline Frame 1Symbol 317 as "__Packages.org.aswing.Component"
ExportAssets (56)Timeline Frame 1Symbol 318 as "__Packages.org.aswing.ElementCreater"
ExportAssets (56)Timeline Frame 1Symbol 319 as "__Packages.org.aswing.util.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 320 as "__Packages.org.aswing.util.ObjectUtils"
ExportAssets (56)Timeline Frame 1Symbol 321 as "__Packages.org.aswing.util.MathUtils"
ExportAssets (56)Timeline Frame 1Symbol 322 as "__Packages.org.aswing.geom.Rectangle"
ExportAssets (56)Timeline Frame 1Symbol 323 as "__Packages.org.aswing.geom.Point"
ExportAssets (56)Timeline Frame 1Symbol 324 as "__Packages.org.aswing.geom.Dimension"
ExportAssets (56)Timeline Frame 1Symbol 325 as "__Packages.org.aswing.util.MCUtils"
ExportAssets (56)Timeline Frame 1Symbol 326 as "__Packages.org.aswing.plaf.ComponentUI"
ExportAssets (56)Timeline Frame 1Symbol 327 as "__Packages.org.aswing.graphics.Graphics"
ExportAssets (56)Timeline Frame 1Symbol 328 as "__Packages.org.aswing.graphics.Brush"
ExportAssets (56)Timeline Frame 1Symbol 329 as "__Packages.org.aswing.graphics.Pen"
ExportAssets (56)Timeline Frame 1Symbol 330 as "__Packages.org.aswing.graphics.SolidBrush"
ExportAssets (56)Timeline Frame 1Symbol 331 as "__Packages.org.aswing.UIManager"
ExportAssets (56)Timeline Frame 1Symbol 332 as "__Packages.org.aswing.util.HashMap"
ExportAssets (56)Timeline Frame 1Symbol 333 as "__Packages.org.aswing.UIDefaults"
ExportAssets (56)Timeline Frame 1Symbol 334 as "__Packages.org.aswing.border.Border"
ExportAssets (56)Timeline Frame 1Symbol 335 as "__Packages.org.aswing.Insets"
ExportAssets (56)Timeline Frame 1Symbol 336 as "__Packages.org.aswing.Icon"
ExportAssets (56)Timeline Frame 1Symbol 337 as "__Packages.org.aswing.ASFont"
ExportAssets (56)Timeline Frame 1Symbol 338 as "__Packages.org.aswing.ASTextFormat"
ExportAssets (56)Timeline Frame 1Symbol 339 as "__Packages.org.aswing.ASTextExtent"
ExportAssets (56)Timeline Frame 1Symbol 340 as "__Packages.org.aswing.LookAndFeel"
ExportAssets (56)Timeline Frame 1Symbol 341 as "__Packages.org.aswing.plaf.UIResource"
ExportAssets (56)Timeline Frame 1Symbol 342 as "__Packages.org.aswing.plaf.basic.BasicLookAndFeel"
ExportAssets (56)Timeline Frame 1Symbol 343 as "__Packages.org.aswing.plaf.ASColorUIResource"
ExportAssets (56)Timeline Frame 1Symbol 344 as "__Packages.org.aswing.plaf.ASFontUIResource"
ExportAssets (56)Timeline Frame 1Symbol 345 as "__Packages.org.aswing.plaf.basic.border.ButtonBorder"
ExportAssets (56)Timeline Frame 1Symbol 346 as "__Packages.org.aswing.ASWingConstants"
ExportAssets (56)Timeline Frame 1Symbol 347 as "__Packages.org.aswing.AbstractButton"
ExportAssets (56)Timeline Frame 1Symbol 348 as "__Packages.org.aswing.ButtonModel"
ExportAssets (56)Timeline Frame 1Symbol 349 as "__Packages.org.aswing.ButtonGroup"
ExportAssets (56)Timeline Frame 1Symbol 350 as "__Packages.org.aswing.Action"
ExportAssets (56)Timeline Frame 1Symbol 351 as "__Packages.org.aswing.plaf.ButtonUI"
ExportAssets (56)Timeline Frame 1Symbol 352 as "__Packages.org.aswing.plaf.InsetsUIResource"
ExportAssets (56)Timeline Frame 1Symbol 353 as "__Packages.org.aswing.overflow.ComponentDecorator"
ExportAssets (56)Timeline Frame 1Symbol 354 as "__Packages.org.aswing.overflow.GrayFilteredIcon"
ExportAssets (56)Timeline Frame 1Symbol 355 as "__Packages.org.aswing.plaf.basic.BasicGraphicsUtils"
ExportAssets (56)Timeline Frame 1Symbol 356 as "__Packages.org.aswing.graphics.AdvancedPen"
ExportAssets (56)Timeline Frame 1Symbol 357 as "__Packages.org.aswing.plaf.basic.icon.RadioButtonIcon"
ExportAssets (56)Timeline Frame 1Symbol 358 as "__Packages.org.aswing.overflow.JToggleButton"
ExportAssets (56)Timeline Frame 1Symbol 359 as "__Packages.org.aswing.DefaultButtonModel"
ExportAssets (56)Timeline Frame 1Symbol 360 as "__Packages.org.aswing.overflow.ToggleButtonModel"
ExportAssets (56)Timeline Frame 1Symbol 361 as "__Packages.org.aswing.plaf.basic.BasicButtonUI"
ExportAssets (56)Timeline Frame 1Symbol 362 as "__Packages.org.aswing.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 363 as "__Packages.org.aswing.Container"
ExportAssets (56)Timeline Frame 1Symbol 364 as "__Packages.org.aswing.LayoutManager"
ExportAssets (56)Timeline Frame 1Symbol 365 as "__Packages.org.aswing.FocusTraversalPolicy"
ExportAssets (56)Timeline Frame 1Symbol 366 as "__Packages.org.aswing.EmptyLayout"
ExportAssets (56)Timeline Frame 1Symbol 367 as "__Packages.org.aswing.overflow.JPopup"
ExportAssets (56)Timeline Frame 1Symbol 368 as "__Packages.org.aswing.util.List"
ExportAssets (56)Timeline Frame 1Symbol 369 as "__Packages.org.aswing.util.Vector"
ExportAssets (56)Timeline Frame 1Symbol 370 as "__Packages.org.aswing.ASWingUtils"
ExportAssets (56)Timeline Frame 1Symbol 371 as "__Packages.org.aswing.JPanel"
ExportAssets (56)Timeline Frame 1Symbol 372 as "__Packages.org.aswing.FlowLayout"
ExportAssets (56)Timeline Frame 1Symbol 373 as "__Packages.org.aswing.plaf.PanelUI"
ExportAssets (56)Timeline Frame 1Symbol 374 as "__Packages.org.aswing.plaf.basic.BasicPanelUI"
ExportAssets (56)Timeline Frame 1Symbol 375 as "__Packages.org.aswing.plaf.asw.ASWingPanelUI"
ExportAssets (56)Timeline Frame 1Symbol 376 as "__Packages.org.aswing.MCPanel"
ExportAssets (56)Timeline Frame 1Symbol 377 as "__Packages.org.aswing.BorderLayout"
ExportAssets (56)Timeline Frame 1Symbol 378 as "__Packages.org.aswing.JWindow"
ExportAssets (56)Timeline Frame 1Symbol 379 as "__Packages.org.aswing.KeyMap"
ExportAssets (56)Timeline Frame 1Symbol 380 as "__Packages.org.aswing.KeyType"
ExportAssets (56)Timeline Frame 1Symbol 381 as "__Packages.org.aswing.WindowLayout"
ExportAssets (56)Timeline Frame 1Symbol 382 as "__Packages.org.aswing.plaf.WindowUI"
ExportAssets (56)Timeline Frame 1Symbol 383 as "__Packages.org.aswing.plaf.basic.BasicWindowUI"
ExportAssets (56)Timeline Frame 1Symbol 384 as "__Packages.org.aswing.KeyboardManager"
ExportAssets (56)Timeline Frame 1Symbol 385 as "__Packages.org.aswing.util.AbstractImpulser"
ExportAssets (56)Timeline Frame 1Symbol 386 as "__Packages.org.aswing.util.Impulser"
ExportAssets (56)Timeline Frame 1Symbol 387 as "__Packages.org.aswing.util.Timer"
ExportAssets (56)Timeline Frame 1Symbol 388 as "__Packages.org.aswing.ContainerOrderFocusTraversalPolicy"
ExportAssets (56)Timeline Frame 1Symbol 389 as "__Packages.org.aswing.DefaultFocusTraversalPolicy"
ExportAssets (56)Timeline Frame 1Symbol 390 as "__Packages.org.aswing.plaf.basic.BasicToggleButtonUI"
ExportAssets (56)Timeline Frame 1Symbol 391 as "__Packages.org.aswing.plaf.asw.ASWingToggleButtonUI"
ExportAssets (56)Timeline Frame 1Symbol 392 as "__Packages.org.aswing.plaf.asw.ASWingButtonUI"
ExportAssets (56)Timeline Frame 1Symbol 393 as "__Packages.org.aswing.plaf.asw.ASWingGraphicsUtils"
ExportAssets (56)Timeline Frame 1Symbol 394 as "__Packages.org.aswing.graphics.GradientBrush"
ExportAssets (56)Timeline Frame 1Symbol 395 as "__Packages.org.aswing.JRadioButton"
ExportAssets (56)Timeline Frame 1Symbol 396 as "__Packages.org.aswing.RadioButtonModel"
ExportAssets (56)Timeline Frame 1Symbol 397 as "__Packages.org.aswing.plaf.basic.BasicRadioButtonUI"
ExportAssets (56)Timeline Frame 1Symbol 398 as "__Packages.org.aswing.plaf.asw.ASWingRadioButtonUI"
ExportAssets (56)Timeline Frame 1Symbol 399 as "__Packages.org.aswing.plaf.basic.icon.CheckBoxIcon"
ExportAssets (56)Timeline Frame 1Symbol 400 as "__Packages.org.aswing.JCheckBox"
ExportAssets (56)Timeline Frame 1Symbol 401 as "__Packages.org.aswing.plaf.basic.BasicCheckBoxUI"
ExportAssets (56)Timeline Frame 1Symbol 402 as "__Packages.org.aswing.plaf.asw.ASWingCheckBoxUI"
ExportAssets (56)Timeline Frame 1Symbol 403 as "__Packages.org.aswing.plaf.basic.frame.TitleBarUI"
ExportAssets (56)Timeline Frame 1Symbol 404 as "__Packages.org.aswing.plaf.basic.frame.FrameTitleBar"
ExportAssets (56)Timeline Frame 1Symbol 405 as "__Packages.org.aswing.JFrame"
ExportAssets (56)Timeline Frame 1Symbol 406 as "__Packages.org.aswing.resizer.Resizer"
ExportAssets (56)Timeline Frame 1Symbol 407 as "__Packages.org.aswing.plaf.basic.BasicFrameUI"
ExportAssets (56)Timeline Frame 1Symbol 408 as "__Packages.org.aswing.plaf.asw.ASWingFrameUI"
ExportAssets (56)Timeline Frame 1Symbol 409 as "__Packages.org.aswing.resizer.ResizerController"
ExportAssets (56)Timeline Frame 1Symbol 410 as "__Packages.org.aswing.resizer.DefaultResizer"
ExportAssets (56)Timeline Frame 1Symbol 411 as "__Packages.org.aswing.resizer.ResizeStrategy"
ExportAssets (56)Timeline Frame 1Symbol 412 as "__Packages.org.aswing.resizer.DefaultResizeBarHandler"
ExportAssets (56)Timeline Frame 1Symbol 413 as "__Packages.org.aswing.resizer.ResizeStrategyImp"
ExportAssets (56)Timeline Frame 1Symbol 414 as "__Packages.org.aswing.plaf.basic.frame.TitleBarLayout"
ExportAssets (56)Timeline Frame 1Symbol 415 as "__Packages.org.aswing.JButton"
ExportAssets (56)Timeline Frame 1Symbol 416 as "__Packages.org.aswing.plaf.basic.frame.FrameResizer"
ExportAssets (56)Timeline Frame 1Symbol 417 as "__Packages.org.aswing.plaf.basic.border.FrameBorder"
ExportAssets (56)Timeline Frame 1Symbol 418 as "__Packages.org.aswing.plaf.basic.frame.TitleIcon"
ExportAssets (56)Timeline Frame 1Symbol 419 as "__Packages.org.aswing.plaf.basic.icon.FrameIcon"
ExportAssets (56)Timeline Frame 1Symbol 420 as "__Packages.org.aswing.plaf.basic.icon.FrameIconifiedIcon"
ExportAssets (56)Timeline Frame 1Symbol 421 as "__Packages.org.aswing.plaf.basic.icon.FrameNormalIcon"
ExportAssets (56)Timeline Frame 1Symbol 422 as "__Packages.org.aswing.plaf.basic.icon.FrameMaximizeIcon"
ExportAssets (56)Timeline Frame 1Symbol 423 as "__Packages.org.aswing.plaf.basic.icon.FrameCloseIcon"
ExportAssets (56)Timeline Frame 1Symbol 424 as "__Packages.org.aswing.border.DecorateBorder"
ExportAssets (56)Timeline Frame 1Symbol 425 as "__Packages.org.aswing.border.LineBorder"
ExportAssets (56)Timeline Frame 1Symbol 426 as "__Packages.org.aswing.plaf.basic.border.ToolTipBorder"
ExportAssets (56)Timeline Frame 1Symbol 427 as "__Packages.org.aswing.plaf.basic.border.TextBorder"
ExportAssets (56)Timeline Frame 1Symbol 428 as "__Packages.org.aswing.plaf.basic.border.TextFieldBorder"
ExportAssets (56)Timeline Frame 1Symbol 429 as "__Packages.org.aswing.plaf.basic.border.TextAreaBorder"
ExportAssets (56)Timeline Frame 1Symbol 430 as "__Packages.org.aswing.border.BevelBorder"
ExportAssets (56)Timeline Frame 1Symbol 431 as "__Packages.org.aswing.plaf.basic.border.ComboBoxBorder"
ExportAssets (56)Timeline Frame 1Symbol 432 as "__Packages.org.aswing.JComboBox"
ExportAssets (56)Timeline Frame 1Symbol 433 as "__Packages.org.aswing.ComboBoxEditor"
ExportAssets (56)Timeline Frame 1Symbol 434 as "__Packages.org.aswing.ChildrenMaskedContainer"
ExportAssets (56)Timeline Frame 1Symbol 435 as "__Packages.org.aswing.Viewportable"
ExportAssets (56)Timeline Frame 1Symbol 436 as "__Packages.org.aswing.event.ListDataListener"
ExportAssets (56)Timeline Frame 1Symbol 437 as "__Packages.org.aswing.event.ListDataEvent"
ExportAssets (56)Timeline Frame 1Symbol 438 as "__Packages.org.aswing.ListSelectionModel"
ExportAssets (56)Timeline Frame 1Symbol 439 as "__Packages.org.aswing.DefaultListSelectionModel"
ExportAssets (56)Timeline Frame 1Symbol 440 as "__Packages.org.aswing.dnd.DropMotion"
ExportAssets (56)Timeline Frame 1Symbol 441 as "__Packages.org.aswing.dnd.DirectlyRemoveMotion"
ExportAssets (56)Timeline Frame 1Symbol 442 as "__Packages.org.aswing.dnd.RejectedMotion"
ExportAssets (56)Timeline Frame 1Symbol 443 as "__Packages.org.aswing.util.EnterFrameImpulser"
ExportAssets (56)Timeline Frame 1Symbol 444 as "__Packages.org.aswing.util.EnterFrameEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 445 as "__Packages.org.aswing.dnd.DragManager"
ExportAssets (56)Timeline Frame 1Symbol 446 as "__Packages.org.aswing.dnd.DragListener"
ExportAssets (56)Timeline Frame 1Symbol 447 as "__Packages.org.aswing.dnd.SourceData"
ExportAssets (56)Timeline Frame 1Symbol 448 as "__Packages.org.aswing.dnd.DraggingImage"
ExportAssets (56)Timeline Frame 1Symbol 449 as "__Packages.org.aswing.dnd.DefaultDragImage"
ExportAssets (56)Timeline Frame 1Symbol 450 as "__Packages.org.aswing.overflow.JList"
ExportAssets (56)Timeline Frame 1Symbol 451 as "__Packages.org.aswing.Cell"
ExportAssets (56)Timeline Frame 1Symbol 452 as "__Packages.org.aswing.ListCell"
ExportAssets (56)Timeline Frame 1Symbol 453 as "__Packages.org.aswing.ListCellFactory"
ExportAssets (56)Timeline Frame 1Symbol 454 as "__Packages.org.aswing.ListModel"
ExportAssets (56)Timeline Frame 1Symbol 455 as "__Packages.org.aswing.DefaultListCellFactory"
ExportAssets (56)Timeline Frame 1Symbol 456 as "__Packages.org.aswing.AbstractListCell"
ExportAssets (56)Timeline Frame 1Symbol 457 as "__Packages.org.aswing.DefaultListCell"
ExportAssets (56)Timeline Frame 1Symbol 458 as "__Packages.org.aswing.JLabel"
ExportAssets (56)Timeline Frame 1Symbol 459 as "__Packages.org.aswing.plaf.LabelUI"
ExportAssets (56)Timeline Frame 1Symbol 460 as "__Packages.org.aswing.plaf.basic.BasicLabelUI"
ExportAssets (56)Timeline Frame 1Symbol 461 as "__Packages.org.aswing.JToolTip"
ExportAssets (56)Timeline Frame 1Symbol 462 as "__Packages.org.aswing.plaf.ToolTipUI"
ExportAssets (56)Timeline Frame 1Symbol 463 as "__Packages.org.aswing.plaf.basic.BasicToolTipUI"
ExportAssets (56)Timeline Frame 1Symbol 464 as "__Packages.org.aswing.overflow.JSharedToolTip"
ExportAssets (56)Timeline Frame 1Symbol 465 as "__Packages.org.aswing.plaf.ListUI"
ExportAssets (56)Timeline Frame 1Symbol 466 as "__Packages.org.aswing.plaf.basic.BasicListUI"
ExportAssets (56)Timeline Frame 1Symbol 467 as "__Packages.org.aswing.AbstractListModel"
ExportAssets (56)Timeline Frame 1Symbol 468 as "__Packages.org.aswing.MutableListModel"
ExportAssets (56)Timeline Frame 1Symbol 469 as "__Packages.org.aswing.VectorListModel"
ExportAssets (56)Timeline Frame 1Symbol 470 as "__Packages.org.aswing.RepaintManager"
ExportAssets (56)Timeline Frame 1Symbol 471 as "__Packages.org.aswing.dnd.ListSourceData"
ExportAssets (56)Timeline Frame 1Symbol 472 as "__Packages.org.aswing.dnd.ListDragImage"
ExportAssets (56)Timeline Frame 1Symbol 473 as "__Packages.org.aswing.DefaultComboBoxEditor"
ExportAssets (56)Timeline Frame 1Symbol 474 as "__Packages.org.aswing.JTextField"
ExportAssets (56)Timeline Frame 1Symbol 475 as "__Packages.org.aswing.plaf.TextUI"
ExportAssets (56)Timeline Frame 1Symbol 476 as "__Packages.org.aswing.plaf.basic.BasicTextComponentUI"
ExportAssets (56)Timeline Frame 1Symbol 477 as "__Packages.org.aswing.plaf.basic.BasicTextFieldUI"
ExportAssets (56)Timeline Frame 1Symbol 478 as "__Packages.org.aswing.plaf.ComboBoxUI"
ExportAssets (56)Timeline Frame 1Symbol 479 as "__Packages.org.aswing.plaf.basic.BasicComboBoxUI"
ExportAssets (56)Timeline Frame 1Symbol 480 as "__Packages.org.aswing.JScrollPane"
ExportAssets (56)Timeline Frame 1Symbol 481 as "__Packages.org.aswing.JScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 482 as "__Packages.org.aswing.BoundedRangeModel"
ExportAssets (56)Timeline Frame 1Symbol 483 as "__Packages.org.aswing.DefaultBoundedRangeModel"
ExportAssets (56)Timeline Frame 1Symbol 484 as "__Packages.org.aswing.plaf.ScrollBarUI"
ExportAssets (56)Timeline Frame 1Symbol 485 as "__Packages.org.aswing.plaf.basic.BasicScrollBarUI"
ExportAssets (56)Timeline Frame 1Symbol 486 as "__Packages.org.aswing.plaf.basic.icon.ArrowIcon"
ExportAssets (56)Timeline Frame 1Symbol 487 as "__Packages.org.aswing.plaf.asw.ASWingScrollBarUI"
ExportAssets (56)Timeline Frame 1Symbol 488 as "__Packages.org.aswing.overflow.JViewport"
ExportAssets (56)Timeline Frame 1Symbol 489 as "__Packages.org.aswing.overflow.ViewportLayout"
ExportAssets (56)Timeline Frame 1Symbol 490 as "__Packages.org.aswing.plaf.ViewportUI"
ExportAssets (56)Timeline Frame 1Symbol 491 as "__Packages.org.aswing.plaf.basic.BasicViewportUI"
ExportAssets (56)Timeline Frame 1Symbol 492 as "__Packages.org.aswing.ScrollPaneLayout"
ExportAssets (56)Timeline Frame 1Symbol 493 as "__Packages.org.aswing.plaf.ScrollPaneUI"
ExportAssets (56)Timeline Frame 1Symbol 494 as "__Packages.org.aswing.plaf.basic.BasicScrollPaneUI"
ExportAssets (56)Timeline Frame 1Symbol 495 as "__Packages.org.aswing.plaf.basic.border.ProgressBarBorder"
ExportAssets (56)Timeline Frame 1Symbol 496 as "__Packages.org.aswing.border.EmptyBorder"
ExportAssets (56)Timeline Frame 1Symbol 497 as "__Packages.org.aswing.plaf.basic.icon.ProgressBarIcon"
ExportAssets (56)Timeline Frame 1Symbol 498 as "__Packages.org.aswing.overflow.JProgressBar"
ExportAssets (56)Timeline Frame 1Symbol 499 as "__Packages.org.aswing.plaf.ProgressBarUI"
ExportAssets (56)Timeline Frame 1Symbol 500 as "__Packages.org.aswing.plaf.basic.BasicProgressBarUI"
ExportAssets (56)Timeline Frame 1Symbol 501 as "__Packages.org.aswing.plaf.basic.border.TableHeaderCellBorder"
ExportAssets (56)Timeline Frame 1Symbol 502 as "__Packages.org.aswing.plaf.basic.border.ColorChooserBorder"
ExportAssets (56)Timeline Frame 1Symbol 503 as "__Packages.org.aswing.plaf.basic.icon.SolidArrowIcon"
ExportAssets (56)Timeline Frame 1Symbol 504 as "__Packages.org.aswing.plaf.basic.icon.MenuArrowIcon"
ExportAssets (56)Timeline Frame 1Symbol 505 as "__Packages.org.aswing.plaf.basic.icon.MenuItemArrowIcon"
ExportAssets (56)Timeline Frame 1Symbol 506 as "__Packages.org.aswing.plaf.basic.icon.MenuCheckIcon"
ExportAssets (56)Timeline Frame 1Symbol 507 as "__Packages.org.aswing.plaf.basic.icon.MenuItemCheckIcon"
ExportAssets (56)Timeline Frame 1Symbol 508 as "__Packages.org.aswing.plaf.basic.icon.CheckBoxMenuItemCheckIcon"
ExportAssets (56)Timeline Frame 1Symbol 509 as "__Packages.org.aswing.MenuElement"
ExportAssets (56)Timeline Frame 1Symbol 510 as "__Packages.org.aswing.overflow.JMenuItem"
ExportAssets (56)Timeline Frame 1Symbol 511 as "__Packages.org.aswing.plaf.MenuItemUI"
ExportAssets (56)Timeline Frame 1Symbol 512 as "__Packages.org.aswing.plaf.basic.BasicMenuItemUI"
ExportAssets (56)Timeline Frame 1Symbol 513 as "__Packages.org.aswing.MenuSelectionManager"
ExportAssets (56)Timeline Frame 1Symbol 514 as "__Packages.org.aswing.overflow.JPopupMenu"
ExportAssets (56)Timeline Frame 1Symbol 515 as "__Packages.org.aswing.SingleSelectionModel"
ExportAssets (56)Timeline Frame 1Symbol 516 as "__Packages.org.aswing.DefaultSingleSelectionModel"
ExportAssets (56)Timeline Frame 1Symbol 517 as "__Packages.org.aswing.plaf.PopupMenuUI"
ExportAssets (56)Timeline Frame 1Symbol 518 as "__Packages.org.aswing.plaf.basic.BasicPopupMenuUI"
ExportAssets (56)Timeline Frame 1Symbol 519 as "__Packages.org.aswing.SoftBoxLayout"
ExportAssets (56)Timeline Frame 1Symbol 520 as "__Packages.org.aswing.plaf.basic.DefaultMenuLayout"
ExportAssets (56)Timeline Frame 1Symbol 521 as "__Packages.org.aswing.overflow.JMenu"
ExportAssets (56)Timeline Frame 1Symbol 522 as "__Packages.org.aswing.plaf.basic.BasicMenuUI"
ExportAssets (56)Timeline Frame 1Symbol 523 as "__Packages.org.aswing.overflow.JMenuBar"
ExportAssets (56)Timeline Frame 1Symbol 524 as "__Packages.org.aswing.plaf.MenuBarUI"
ExportAssets (56)Timeline Frame 1Symbol 525 as "__Packages.org.aswing.plaf.basic.BasicMenuBarUI"
ExportAssets (56)Timeline Frame 1Symbol 526 as "__Packages.org.aswing.plaf.basic.icon.RadioButtonMenuItemCheckIcon"
ExportAssets (56)Timeline Frame 1Symbol 527 as "__Packages.org.aswing.plaf.basic.border.PopupMenuBorder"
ExportAssets (56)Timeline Frame 1Symbol 528 as "__Packages.org.aswing.plaf.asw.ASWingLookAndFeel"
ExportAssets (56)Timeline Frame 1Symbol 529 as "__Packages.org.aswing.plaf.asw.border.ButtonBorder"
ExportAssets (56)Timeline Frame 1Symbol 530 as "__Packages.org.aswing.plaf.asw.frame.ASWingTitleBarUI"
ExportAssets (56)Timeline Frame 1Symbol 531 as "__Packages.org.aswing.plaf.asw.border.FrameBorder"
ExportAssets (56)Timeline Frame 1Symbol 532 as "__Packages.org.aswing.plaf.asw.border.TableHeaderCellBorder"
ExportAssets (56)Timeline Frame 1Symbol 533 as "__Packages.org.aswing.JTextComponent"
ExportAssets (56)Timeline Frame 1Symbol 534 as "__Packages.org.aswing.JTextArea"
ExportAssets (56)Timeline Frame 1Symbol 535 as "__Packages.org.aswing.plaf.basic.BasicTextAreaUI"
ExportAssets (56)Timeline Frame 1Symbol 536 as "__Packages.org.aswing.JSpacer"
ExportAssets (56)Timeline Frame 1Symbol 537 as "__Packages.org.aswing.plaf.SpacerUI"
ExportAssets (56)Timeline Frame 1Symbol 538 as "__Packages.org.aswing.plaf.basic.BasicSpacerUI"
ExportAssets (56)Timeline Frame 1Symbol 539 as "__Packages.org.aswing.BoxLayout"
ExportAssets (56)Timeline Frame 1Symbol 540 as "__Packages.edu.colorado.phet.flashcommon.CommonDialog"
ExportAssets (56)Timeline Frame 1Symbol 541 as "__Packages.edu.colorado.phet.flashcommon.TabHandler"
ExportAssets (56)Timeline Frame 1Symbol 542 as "__Packages.edu.colorado.phet.flashcommon.TabEntry"
ExportAssets (56)Timeline Frame 1Symbol 543 as "__Packages.edu.colorado.phet.flashcommon.AboutDialog"
ExportAssets (56)Timeline Frame 1Symbol 544 as "__Packages.org.aswing.CenterLayout"
ExportAssets (56)Timeline Frame 1Symbol 545 as "__Packages.edu.colorado.phet.flashcommon.AgreementDialog"
ExportAssets (56)Timeline Frame 1Symbol 546 as "__Packages.edu.colorado.phet.flashcommon.CreditsDialog"
ExportAssets (56)Timeline Frame 1Symbol 547 as "__Packages.edu.colorado.phet.flashcommon.MessageDialog"
ExportAssets (56)Timeline Frame 1Symbol 548 as "__Packages.edu.colorado.phet.flashcommon.PreferencesDialog"
ExportAssets (56)Timeline Frame 1Symbol 549 as "__Packages.org.aswing.border.TitledBorder"
ExportAssets (56)Timeline Frame 1Symbol 550 as "__Packages.edu.colorado.phet.flashcommon.StatisticsDetailsDialog"
ExportAssets (56)Timeline Frame 1Symbol 551 as "__Packages.edu.colorado.phet.flashcommon.UpdateInstallationDetailsDialog"
ExportAssets (56)Timeline Frame 1Symbol 552 as "__Packages.edu.colorado.phet.flashcommon.UpdateInstallationDialog"
ExportAssets (56)Timeline Frame 1Symbol 553 as "__Packages.edu.colorado.phet.flashcommon.UpdateSimDialog"
ExportAssets (56)Timeline Frame 1Symbol 554 as "__Packages.edu.colorado.phet.flashcommon.UpdateHandler"
ExportAssets (56)Timeline Frame 1Symbol 555 as "__Packages.edu.colorado.phet.flashcommon.Statistics"
ExportAssets (56)Timeline Frame 1Symbol 556 as "__Packages.edu.colorado.phet.flashcommon.KeyboardHandler"
ExportAssets (56)Timeline Frame 1Symbol 557 as "__Packages.edu.colorado.phet.flashcommon.Inspector"
ExportAssets (56)Timeline Frame 1Symbol 558 as "__Packages.edu.colorado.phet.flashcommon.SoftwareAgreement"
ExportAssets (56)Timeline Frame 1Symbol 559 as "__Packages.ControlPanelView"
ExportAssets (56)Timeline Frame 1Symbol 560 as "__Packages.Internationalizer"
ExportAssets (56)Timeline Frame 1Symbol 561 as "__Packages.edu.colorado.phet.flashcommon.SimStrings"
ExportAssets (56)Timeline Frame 1Symbol 101 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 102 as "__Packages.mx.core.UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 103 as "__Packages.mx.controls.listclasses.DataSelector"
ExportAssets (56)Timeline Frame 1Symbol 104 as "__Packages.mx.controls.ComboBase"
ExportAssets (56)Timeline Frame 1Symbol 105 as "__Packages.mx.controls.ComboBox"
ExportAssets (56)Timeline Frame 1Symbol 218 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 219 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 220 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 221 as "__Packages.mx.styles.CSSStyleDeclaration"
ExportAssets (56)Timeline Frame 1Symbol 222 as "__Packages.mx.skins.Border"
ExportAssets (56)Timeline Frame 1Symbol 223 as "__Packages.mx.skins.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 224 as "__Packages.mx.controls.TextInput"
ExportAssets (56)Timeline Frame 1Symbol 225 as "__Packages.mx.controls.SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 226 as "__Packages.mx.managers.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 227 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 228 as "__Packages.mx.managers.SystemManager"
ExportAssets (56)Timeline Frame 1Symbol 229 as "__Packages.mx.managers.PopUpManager"
ExportAssets (56)Timeline Frame 1Symbol 230 as "__Packages.mx.core.View"
ExportAssets (56)Timeline Frame 1Symbol 231 as "__Packages.mx.events.UIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 232 as "__Packages.mx.core.ExternalContent"
ExportAssets (56)Timeline Frame 1Symbol 233 as "__Packages.mx.skins.CustomBorder"
ExportAssets (56)Timeline Frame 1Symbol 234 as "__Packages.mx.controls.scrollClasses.ScrollThumb"
ExportAssets (56)Timeline Frame 1Symbol 235 as "__Packages.mx.controls.scrollClasses.ScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 236 as "__Packages.mx.core.ScrollView"
ExportAssets (56)Timeline Frame 1Symbol 237 as "__Packages.mx.controls.listclasses.DataProvider"
ExportAssets (56)Timeline Frame 1Symbol 238 as "__Packages.mx.controls.listclasses.ScrollSelectList"
ExportAssets (56)Timeline Frame 1Symbol 239 as "__Packages.mx.controls.List"
ExportAssets (56)Timeline Frame 1Symbol 240 as "__Packages.mx.effects.Tween"
ExportAssets (56)Timeline Frame 1Symbol 241 as "__Packages.mx.skins.ColoredSkinElement"
ExportAssets (56)Timeline Frame 1Symbol 242 as "__Packages.mx.core.ext.UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 243 as "__Packages.mx.skins.halo.Defaults"
ExportAssets (56)Timeline Frame 1Symbol 244 as "__Packages.mx.managers.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 245 as "__Packages.mx.skins.halo.FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 246 as "__Packages.mx.managers.OverlappedWindows"
ExportAssets (56)Timeline Frame 1Symbol 247 as "__Packages.mx.styles.CSSSetStyle"
ExportAssets (56)Timeline Frame 1Symbol 248 as "__Packages.mx.core.ext.UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 249 as "__Packages.mx.skins.halo.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 250 as "__Packages.mx.controls.listclasses.SelectableRow"
ExportAssets (56)Timeline Frame 1Symbol 251 as "__Packages.mx.controls.HScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 252 as "__Packages.mx.controls.Button"
ExportAssets (56)Timeline Frame 1Symbol 253 as "__Packages.mx.skins.halo.ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 254 as "__Packages.mx.controls.VScrollBar"

Labels

"selected"Symbol 34 MovieClip Frame 1
"notSelected"Symbol 34 MovieClip Frame 2
"checked"Symbol 43 MovieClip Frame 1
"unchecked"Symbol 43 MovieClip Frame 2
"_up"Symbol 67 MovieClip Frame 1
"_over"Symbol 67 MovieClip Frame 2
"_down"Symbol 67 MovieClip Frame 3
"_up"Symbol 73 MovieClip Frame 1
"_over"Symbol 73 MovieClip Frame 2
"_down"Symbol 73 MovieClip Frame 3
"_up"Symbol 78 MovieClip Frame 1
"_over"Symbol 78 MovieClip Frame 2
"_down"Symbol 78 MovieClip Frame 3
"_up"Symbol 100 MovieClip [helpButton] Frame 1
"_over"Symbol 100 MovieClip [helpButton] Frame 2
"_down"Symbol 100 MovieClip [helpButton] Frame 3
"start"Symbol 258 MovieClip [explosion] Frame 1
"finish"Symbol 258 MovieClip [explosion] Frame 20
"_up"Symbol 281 MovieClip Frame 1
"_over"Symbol 281 MovieClip Frame 2
"_down"Symbol 281 MovieClip Frame 3




http://swfchan.com/20/95486/info.shtml
Created: 24/3 -2019 16:00:21 Last modified: 24/3 -2019 16:00:21 Server time: 25/04 -2024 21:58:10