Section 1
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import flash.utils.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var _selected:Boolean;// = false
private var unlockedMouseState:String;
protected var pressTimer:Timer;
protected var mouseState:String;
protected var background:DisplayObject;
private var _mouseStateLocked:Boolean;// = false
protected var _autoRepeat:Boolean;// = false
private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35};
public function BaseButton(){
_selected = false;
_autoRepeat = false;
_mouseStateLocked = false;
super();
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
protected function endPress():void{
pressTimer.reset();
}
public function set mouseStateLocked(_arg1:Boolean):void{
_mouseStateLocked = _arg1;
if (_arg1 == false){
setMouseState(unlockedMouseState);
} else {
unlockedMouseState = mouseState;
};
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function get selected():Boolean{
return (_selected);
}
protected function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_DOWN){
setMouseState("down");
startPress();
} else {
if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){
setMouseState("over");
endPress();
} else {
if (_arg1.type == MouseEvent.ROLL_OUT){
setMouseState("up");
endPress();
};
};
};
}
public function setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
protected function buttonDown(_arg1:TimerEvent):void{
if (!_autoRepeat){
endPress();
return;
};
if (pressTimer.currentCount == 1){
pressTimer.delay = Number(getStyleValue("repeatInterval"));
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
public function set selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function setupMouseEvents():void{
addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true);
}
protected function drawLayout():void{
background.width = width;
background.height = height;
}
protected function drawBackground():void{
var _local1:String;
var _local2:DisplayObject;
_local1 = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
_local2 = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 2
//Button (fl.controls.Button)
package fl.controls {
import flash.display.*;
import fl.core.*;
import fl.managers.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var emphasizedBorder:DisplayObject;
protected var _emphasized:Boolean;// = false
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function Button(){
_emphasized = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
var _local3:*;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("emphasizedPadding"));
if ((((_local2 < 0)) || (!(_emphasized)))){
_local2 = 0;
};
_local3 = getStyleValue("focusRectPadding");
_local3 = ((_local3)==null) ? 2 : _local3;
_local3 = (_local3 + _local2);
uiFocusRect.x = -(_local3);
uiFocusRect.y = -(_local3);
uiFocusRect.width = (width + (_local3 * 2));
uiFocusRect.height = (height + (_local3 * 2));
};
}
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
public function get emphasized():Boolean{
return (_emphasized);
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
protected function drawEmphasized():void{
var _local1:Object;
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
_local1 = getStyleValue("emphasizedSkin");
if (_local1 != null){
emphasizedBorder = getDisplayObjectInstance(_local1);
};
if (emphasizedBorder != null){
addChildAt(emphasizedBorder, 0);
_local2 = Number(getStyleValue("emphasizedPadding"));
emphasizedBorder.x = (emphasizedBorder.y = -(_local2));
emphasizedBorder.width = (width + (_local2 * 2));
emphasizedBorder.height = (height + (_local2 * 2));
};
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 3
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement)
package fl.controls {
public class ButtonLabelPlacement {
public static const TOP:String = "top";
public static const LEFT:String = "left";
public static const BOTTOM:String = "bottom";
public static const RIGHT:String = "right";
}
}//package fl.controls
Section 4
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
protected var _labelPlacement:String;// = "right"
protected var _toggle:Boolean;// = false
protected var icon:DisplayObject;
protected var oldMouseState:String;
protected var mode:String;// = "center"
public var textField:TextField;
protected var _label:String;// = "Label"
private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function LabelButton(){
_labelPlacement = ButtonLabelPlacement.RIGHT;
_toggle = false;
_label = "Label";
mode = "center";
super();
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
public function get labelPlacement():String{
return (_labelPlacement);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
setMouseState(oldMouseState);
oldMouseState = null;
endPress();
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set toggle(_arg1:Boolean):void{
if (((!(_arg1)) && (super.selected))){
selected = false;
};
_toggle = _arg1;
if (_toggle){
addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true);
} else {
removeEventListener(MouseEvent.CLICK, toggleSelected);
};
invalidate(InvalidationType.STATE);
}
public function get label():String{
return (_label);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
override protected function draw():void{
if (textField.text != _label){
label = _label;
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
drawIcon();
drawTextFormat();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
public function get toggle():Boolean{
return (_toggle);
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
_local3 = (textField.textWidth + 4);
_local4 = (textField.textHeight + 4);
_local5 = ((icon)==null) ? 0 : (icon.width + _local1);
_local6 = ((icon)==null) ? 0 : (icon.height + _local1);
textField.visible = (label.length > 0);
if (icon != null){
icon.x = Math.round(((width - icon.width) / 2));
icon.y = Math.round(((height - icon.height) / 2));
};
if (textField.visible == false){
textField.width = 0;
textField.height = 0;
} else {
if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){
_local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1))));
if ((height - 2) > _local4){
_local8 = _local4;
} else {
_local8 = (height - 2);
};
_local3 = _local7;
textField.width = _local3;
_local4 = _local8;
textField.height = _local4;
textField.x = Math.round(((width - _local3) / 2));
textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0));
if (icon != null){
icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1));
};
} else {
_local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1))));
_local3 = _local7;
textField.width = _local3;
textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0));
textField.y = Math.round(((height - textField.height) / 2));
if (icon != null){
icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1));
};
};
};
super.drawLayout();
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
protected function drawIcon():void{
var _local1:DisplayObject;
var _local2:String;
var _local3:Object;
_local1 = icon;
_local2 = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
_local3 = getStyleValue(_local2);
if (_local3 == null){
_local3 = getStyleValue("icon");
};
if (_local3 != null){
icon = getDisplayObjectInstance(_local3);
};
if (icon != null){
addChildAt(icon, 1);
};
if (((!((_local1 == null))) && (!((_local1 == icon))))){
removeChild(_local1);
};
}
public function set label(_arg1:String):void{
_label = _arg1;
if (textField.text != _label){
textField.text = _label;
dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE));
};
invalidate(InvalidationType.SIZE);
invalidate(InvalidationType.STYLES);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 5
//RadioButton (fl.controls.RadioButton)
package fl.controls {
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import flash.ui.*;
public class RadioButton extends LabelButton implements IFocusManagerGroup {
protected var _value:Object;
protected var defaultGroupName:String;// = "RadioButtonGroup"
protected var _group:RadioButtonGroup;
private static var defaultStyles:Object = {icon:null, upIcon:"RadioButton_upIcon", downIcon:"RadioButton_downIcon", overIcon:"RadioButton_overIcon", disabledIcon:"RadioButton_disabledIcon", selectedDisabledIcon:"RadioButton_selectedDisabledIcon", selectedUpIcon:"RadioButton_selectedUpIcon", selectedDownIcon:"RadioButton_selectedDownIcon", selectedOverIcon:"RadioButton_selectedOverIcon", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5};
public static var createAccessibilityImplementation:Function;
public function RadioButton(){
defaultGroupName = "RadioButtonGroup";
super();
mode = "border";
groupName = defaultGroupName;
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = (background.x - _local2);
uiFocusRect.y = (background.y - _local2);
uiFocusRect.width = (background.width + (_local2 * 2));
uiFocusRect.height = (background.height + (_local2 * 2));
};
}
private function setThis():void{
var _local1:RadioButtonGroup;
_local1 = _group;
if (_local1 != null){
if (_local1.selection != this){
_local1.selection = this;
};
} else {
super.selected = true;
};
}
override public function get autoRepeat():Boolean{
return (false);
}
override public function set autoRepeat(_arg1:Boolean):void{
}
protected function handleClick(_arg1:MouseEvent):void{
if (_group == null){
return;
};
_group.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true));
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case Keyboard.DOWN:
setNext(!(_arg1.ctrlKey));
_arg1.stopPropagation();
break;
case Keyboard.UP:
setPrev(!(_arg1.ctrlKey));
_arg1.stopPropagation();
break;
case Keyboard.LEFT:
setPrev(!(_arg1.ctrlKey));
_arg1.stopPropagation();
break;
case Keyboard.RIGHT:
setNext(!(_arg1.ctrlKey));
_arg1.stopPropagation();
break;
case Keyboard.SPACE:
setThis();
_toggle = false;
default:
super.keyDownHandler(_arg1);
break;
};
}
private function setNext(_arg1:Boolean=true):void{
var _local2:RadioButtonGroup;
var _local3:IFocusManager;
var _local4:int;
var _local5:Number;
var _local6:int;
var _local7:*;
_local2 = _group;
if (_local2 == null){
return;
};
_local3 = focusManager;
if (_local3){
_local3.showFocusIndicator = true;
};
_local4 = _local2.getRadioButtonIndex(this);
_local5 = _local2.numRadioButtons;
_local6 = _local4;
if (_local4 != -1){
do {
_local6++;
_local6 = ((_local6)>(_local2.numRadioButtons - 1)) ? 0 : _local6;
_local7 = _local2.getRadioButtonAt(_local6);
if (((_local7) && (_local7.enabled))){
if (_arg1){
_local2.selection = _local7;
};
_local7.setFocus();
return;
};
if (((_arg1) && (!((_local2.getRadioButtonAt(_local6) == _local2.selection))))){
_local2.selection = this;
};
this.drawFocus(true);
} while (_local6 != _local4);
};
}
public function get group():RadioButtonGroup{
return (_group);
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
super.keyUpHandler(_arg1);
if ((((_arg1.keyCode == Keyboard.SPACE)) && (!(_toggle)))){
_toggle = true;
};
}
override public function get selected():Boolean{
return (super.selected);
}
override public function set toggle(_arg1:Boolean):void{
throw (new Error("Warning: You cannot change a RadioButtons toggle."));
}
public function set value(_arg1:Object):void{
_value = _arg1;
}
public function set group(_arg1:RadioButtonGroup):void{
groupName = _arg1.name;
}
override public function set selected(_arg1:Boolean):void{
if ((((_arg1 == false)) || (selected))){
return;
};
if (_group != null){
_group.selection = this;
} else {
super.selected = _arg1;
};
}
override protected function draw():void{
super.draw();
}
override public function get toggle():Boolean{
return (true);
}
override protected function configUI():void{
var _local1:Shape;
var _local2:Graphics;
super.configUI();
super.toggle = true;
_local1 = new Shape();
_local2 = _local1.graphics;
_local2.beginFill(0, 0);
_local2.drawRect(0, 0, 100, 100);
_local2.endFill();
background = (_local1 as DisplayObject);
addChildAt(background, 0);
addEventListener(MouseEvent.CLICK, handleClick, false, 0, true);
}
public function set groupName(_arg1:String):void{
if (_group != null){
_group.removeRadioButton(this);
_group.removeEventListener(Event.CHANGE, handleChange);
};
_group = ((_arg1)==null) ? null : RadioButtonGroup.getGroup(_arg1);
if (_group != null){
_group.addRadioButton(this);
_group.addEventListener(Event.CHANGE, handleChange, false, 0, true);
};
}
public function get value():Object{
return (_value);
}
override protected function drawLayout():void{
var _local1:Number;
super.drawLayout();
_local1 = Number(getStyleValue("textPadding"));
switch (_labelPlacement){
case ButtonLabelPlacement.RIGHT:
icon.x = _local1;
textField.x = (icon.x + (icon.width + _local1));
background.width = ((textField.x + textField.width) + _local1);
background.height = (Math.max(textField.height, icon.height) + (_local1 * 2));
break;
case ButtonLabelPlacement.LEFT:
icon.x = ((width - icon.width) - _local1);
textField.x = (((width - icon.width) - (_local1 * 2)) - textField.width);
background.width = ((textField.width + icon.width) + (_local1 * 3));
background.height = (Math.max(textField.height, icon.height) + (_local1 * 2));
break;
case ButtonLabelPlacement.TOP:
case ButtonLabelPlacement.BOTTOM:
background.width = (Math.max(textField.width, icon.width) + (_local1 * 2));
background.height = ((textField.height + icon.height) + (_local1 * 3));
break;
};
background.x = Math.min((icon.x - _local1), (textField.x - _local1));
background.y = Math.min((icon.y - _local1), (textField.y - _local1));
}
override protected function drawBackground():void{
}
override protected function initializeAccessibility():void{
if (RadioButton.createAccessibilityImplementation != null){
RadioButton.createAccessibilityImplementation(this);
};
}
public function get groupName():String{
return (((_group)==null) ? null : _group.name);
}
private function setPrev(_arg1:Boolean=true):void{
var _local2:RadioButtonGroup;
var _local3:IFocusManager;
var _local4:int;
var _local5:int;
var _local6:*;
_local2 = _group;
if (_local2 == null){
return;
};
_local3 = focusManager;
if (_local3){
_local3.showFocusIndicator = true;
};
_local4 = _local2.getRadioButtonIndex(this);
_local5 = _local4;
if (_local4 != -1){
do {
--_local5;
_local5 = ((_local5)==-1) ? (_local2.numRadioButtons - 1) : _local5;
_local6 = _local2.getRadioButtonAt(_local5);
if (((_local6) && (_local6.enabled))){
if (_arg1){
_local2.selection = _local6;
};
_local6.setFocus();
return;
};
if (((_arg1) && (!((_local2.getRadioButtonAt(_local5) == _local2.selection))))){
_local2.selection = this;
};
this.drawFocus(true);
} while (_local5 != _local4);
};
}
protected function handleChange(_arg1:Event):void{
super.selected = (_group.selection == this);
dispatchEvent(new Event(Event.CHANGE, true));
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 6
//RadioButtonGroup (fl.controls.RadioButtonGroup)
package fl.controls {
import flash.events.*;
public class RadioButtonGroup extends EventDispatcher {
protected var _selection:RadioButton;
protected var radioButtons:Array;
protected var _name:String;
private static var groups:Object;
private static var groupCount:uint = 0;
public function RadioButtonGroup(_arg1:String){
_name = _arg1;
radioButtons = [];
registerGroup(this);
}
public function getRadioButtonIndex(_arg1:RadioButton):int{
var _local2:int;
var _local3:RadioButton;
_local2 = 0;
while (_local2 < radioButtons.length) {
_local3 = (radioButtons[_local2] as RadioButton);
if (_local3 == _arg1){
return (_local2);
};
_local2++;
};
return (-1);
}
public function get numRadioButtons():int{
return (radioButtons.length);
}
public function get name():String{
return (_name);
}
public function get selection():RadioButton{
return (_selection);
}
public function set selection(_arg1:RadioButton):void{
if ((((((_selection == _arg1)) || ((_arg1 == null)))) || ((getRadioButtonIndex(_arg1) == -1)))){
return;
};
_selection = _arg1;
dispatchEvent(new Event(Event.CHANGE, true));
}
public function set selectedData(_arg1:Object):void{
var _local2:int;
var _local3:RadioButton;
_local2 = 0;
while (_local2 < radioButtons.length) {
_local3 = (radioButtons[_local2] as RadioButton);
if (_local3.value == _arg1){
selection = _local3;
return;
};
_local2++;
};
}
public function removeRadioButton(_arg1:RadioButton):void{
var _local2:int;
_local2 = getRadioButtonIndex(_arg1);
if (_local2 != -1){
radioButtons.splice(_local2, 1);
};
if (_selection == _arg1){
_selection = null;
};
}
public function addRadioButton(_arg1:RadioButton):void{
if (_arg1.groupName != name){
_arg1.groupName = name;
return;
};
radioButtons.push(_arg1);
if (_arg1.selected){
selection = _arg1;
};
}
public function getRadioButtonAt(_arg1:int):RadioButton{
return (RadioButton(radioButtons[_arg1]));
}
public function get selectedData():Object{
var _local1:RadioButton;
_local1 = _selection;
return (((_local1)==null) ? null : _local1.value);
}
public static function getGroup(_arg1:String):RadioButtonGroup{
var _local2:RadioButtonGroup;
if (groups == null){
groups = {};
};
_local2 = (groups[_arg1] as RadioButtonGroup);
if (_local2 == null){
_local2 = new RadioButtonGroup(_arg1);
if ((++groupCount % 20) == 0){
cleanUpGroups();
};
};
return (_local2);
}
private static function registerGroup(_arg1:RadioButtonGroup):void{
if (groups == null){
groups = {};
};
groups[_arg1.name] = _arg1;
}
private static function cleanUpGroups():void{
var _local1:String;
var _local2:RadioButtonGroup;
for (_local1 in groups) {
_local2 = (groups[_local1] as RadioButtonGroup);
if (_local2.radioButtons.length == 0){
delete groups[_local1];
};
};
}
}
}//package fl.controls
Section 7
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 8
//InvalidationType (fl.core.InvalidationType)
package fl.core {
public class InvalidationType {
public static const SIZE:String = "size";
public static const ALL:String = "all";
public static const DATA:String = "data";
public static const SCROLL:String = "scroll";
public static const STATE:String = "state";
public static const STYLES:String = "styles";
public static const SELECTED:String = "selected";
public static const RENDERER_STYLES:String = "rendererStyles";
}
}//package fl.core
Section 9
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import flash.utils.*;
import fl.events.*;
import flash.text.*;
import flash.system.*;
public class UIComponent extends Sprite {
protected var _enabled:Boolean;// = true
private var _mouseFocusEnabled:Boolean;// = true
protected var startHeight:Number;
protected var _height:Number;
protected var _oldIMEMode:String;// = null
protected var startWidth:Number;
public var focusTarget:IFocusManagerComponent;
protected var errorCaught:Boolean;// = false
protected var uiFocusRect:DisplayObject;
protected var _width:Number;
public var version:String;// = "3.0.0.15"
protected var isFocused:Boolean;// = false
protected var callLaterMethods:Dictionary;
private var _focusEnabled:Boolean;// = true
private var tempText:TextField;
protected var invalidateFlag:Boolean;// = false
protected var _inspector:Boolean;// = false
protected var sharedStyles:Object;
protected var invalidHash:Object;
protected var isLivePreview:Boolean;// = false
protected var _imeMode:String;// = null
protected var instanceStyles:Object;
protected var _x:Number;
protected var _y:Number;
public static var inCallLaterPhase:Boolean = false;
private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)};
public static var createAccessibilityImplementation:Function;
private static var focusManagers:Dictionary = new Dictionary(false);
public function UIComponent(){
version = "3.0.0.15";
isLivePreview = false;
invalidateFlag = false;
_enabled = true;
isFocused = false;
_focusEnabled = true;
_mouseFocusEnabled = true;
_imeMode = null;
_oldIMEMode = null;
errorCaught = false;
_inspector = false;
super();
instanceStyles = {};
sharedStyles = {};
invalidHash = {};
callLaterMethods = new Dictionary();
StyleManager.registerInstance(this);
configUI();
invalidate(InvalidationType.ALL);
tabEnabled = (this is IFocusManagerComponent);
focusRect = false;
if (tabEnabled){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
initializeFocusManager();
addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true);
}
public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
isFocused = _arg1;
if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){
removeChild(uiFocusRect);
uiFocusRect = null;
};
if (_arg1){
uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite);
if (uiFocusRect == null){
return;
};
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = -(_local2);
uiFocusRect.y = -(_local2);
uiFocusRect.width = (width + (_local2 * 2));
uiFocusRect.height = (height + (_local2 * 2));
addChildAt(uiFocusRect, 0);
};
}
private function callLaterDispatcher(_arg1:Event):void{
var _local2:Dictionary;
var _local3:Object;
if (_arg1.type == Event.ADDED_TO_STAGE){
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
};
_arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher);
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
inCallLaterPhase = true;
_local2 = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
private function addedHandler(_arg1:Event):void{
removeEventListener("addedToStage", addedHandler);
initializeFocusManager();
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
override public function get scaleX():Number{
return ((width / startWidth));
}
override public function get scaleY():Number{
return ((height / startHeight));
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus((_arg1.target as DisplayObject))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
isFocused = true;
};
};
}
public function setStyle(_arg1:String, _arg2:Object):void{
if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
instanceStyles[_arg1] = _arg2;
invalidate(InvalidationType.STYLES);
}
override public function get visible():Boolean{
return (super.visible);
}
public function get componentInspectorSetting():Boolean{
return (_inspector);
}
override public function get x():Number{
return ((isNaN(_x)) ? super.x : _x);
}
override public function get y():Number{
return ((isNaN(_y)) ? super.y : _y);
}
protected function setIMEMode(_arg1:Boolean){
var enabled = _arg1;
if (_imeMode != null){
if (enabled){
IME.enabled = true;
_oldIMEMode = IME.conversionMode;
try {
if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _imeMode;
};
errorCaught = false;
} catch(e:Error) {
errorCaught = true;
throw (new Error(("IME mode not supported: " + _imeMode)));
};
} else {
if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _oldIMEMode;
};
IME.enabled = false;
};
};
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSharedStyle(_arg1:String, _arg2:Object):void{
if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
sharedStyles[_arg1] = _arg2;
if (instanceStyles[_arg1] == null){
invalidate(InvalidationType.STYLES);
};
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
override public function set scaleX(_arg1:Number):void{
setSize((startWidth * _arg1), height);
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
override public function set scaleY(_arg1:Number):void{
setSize(width, (startHeight * _arg1));
}
protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{
var classDef:Object;
var skin = _arg1;
classDef = null;
if ((skin is Class)){
return ((new (skin) as DisplayObject));
};
if ((skin is DisplayObject)){
(skin as DisplayObject).x = 0;
(skin as DisplayObject).y = 0;
return ((skin as DisplayObject));
};
try {
classDef = getDefinitionByName(skin.toString());
} catch(e:Error) {
try {
classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object);
} catch(e:Error) {
};
};
if (classDef == null){
return (null);
};
return ((new (classDef) as DisplayObject));
}
protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{
var _local3:String;
for (_local3 in _arg2) {
_arg1.setStyle(_local3, getStyleValue(_arg2[_local3]));
};
}
protected function beforeComponentParameters():void{
}
protected function callLater(_arg1:Function):void{
if (inCallLaterPhase){
return;
};
callLaterMethods[_arg1] = true;
if (stage != null){
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
protected function createFocusManager():void{
if (focusManagers[stage] == null){
focusManagers[stage] = new FocusManager(stage);
};
}
override public function set visible(_arg1:Boolean):void{
var _local2:String;
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
_local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
protected function hookAccessibility(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, hookAccessibility);
initializeAccessibility();
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_inspector = _arg1;
if (_inspector){
beforeComponentParameters();
} else {
afterComponentParameters();
};
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
public function drawNow():void{
draw();
}
override public function set y(_arg1:Number):void{
move(_x, _arg1);
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus((_arg1.target as DisplayObject))){
drawFocus(false);
isFocused = false;
};
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
public function getFocus():InteractiveObject{
if (stage){
return (stage.focus);
};
return (null);
}
protected function validate():void{
invalidHash = {};
}
override public function get height():Number{
return (_height);
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
public function get enabled():Boolean{
return (_enabled);
}
protected function getScaleX():Number{
return (super.scaleX);
}
protected function getScaleY():Number{
return (super.scaleY);
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
protected function afterComponentParameters():void{
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
protected function configUI():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
isLivePreview = checkLivePreview();
_local1 = rotation;
rotation = 0;
_local2 = super.width;
_local3 = super.height;
var _local4 = 1;
super.scaleY = _local4;
super.scaleX = _local4;
setSize(_local2, _local3);
move(super.x, super.y);
rotation = _local1;
startWidth = _local2;
startHeight = _local3;
if (numChildren > 0){
removeChildAt(0);
};
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
protected function setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
private function initializeFocusManager():void{
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
};
}
public function set focusManager(_arg1:IFocusManager):void{
UIComponent.focusManagers[this] = _arg1;
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function get focusManager():IFocusManager{
var _local1:DisplayObject;
_local1 = this;
while (_local1) {
if (UIComponent.focusManagers[_local1] != null){
return (IFocusManager(UIComponent.focusManagers[_local1]));
};
_local1 = _local1.parent;
};
return (null);
}
override public function get width():Number{
return (_width);
}
public function move(_arg1:Number, _arg2:Number):void{
_x = _arg1;
_y = _arg2;
super.x = Math.round(_arg1);
super.y = Math.round(_arg2);
dispatchEvent(new ComponentEvent(ComponentEvent.MOVE));
}
public function validateNow():void{
invalidate(InvalidationType.ALL, false);
draw();
}
public function getStyle(_arg1:String):Object{
return (instanceStyles[_arg1]);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local2:Object;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:String;
_local2 = {};
_local3 = _args.length;
_local4 = 0;
while (_local4 < _local3) {
_local5 = _args[_local4];
for (_local6 in _local5) {
if (_local2[_local6] != null){
} else {
_local2[_local6] = _args[_local4][_local6];
};
};
_local4++;
};
return (_local2);
}
}
}//package fl.core
Section 10
//ComponentEvent (fl.events.ComponentEvent)
package fl.events {
import flash.events.*;
public class ComponentEvent extends Event {
public static const HIDE:String = "hide";
public static const BUTTON_DOWN:String = "buttonDown";
public static const MOVE:String = "move";
public static const RESIZE:String = "resize";
public static const ENTER:String = "enter";
public static const LABEL_CHANGE:String = "labelChange";
public static const SHOW:String = "show";
public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("ComponentEvent", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new ComponentEvent(type, bubbles, cancelable));
}
}
}//package fl.events
Section 11
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
import fl.core.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Dictionary;
private var _showFocusIndicator:Boolean;// = true
private var defButton:Button;
private var focusableCandidates:Array;
private var _form:DisplayObjectContainer;
private var _defaultButtonEnabled:Boolean;// = true
private var activated:Boolean;// = false
private var _defaultButton:Button;
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var lastAction:String;
public function FocusManager(_arg1:DisplayObjectContainer){
activated = false;
calculateCandidates = true;
_showFocusIndicator = true;
_defaultButtonEnabled = true;
super();
focusableObjects = new Dictionary(true);
if (_arg1 != null){
_form = _arg1;
addFocusables(DisplayObject(_arg1));
_arg1.addEventListener(Event.ADDED, addedHandler);
_arg1.addEventListener(Event.REMOVED, removedHandler);
activate();
};
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local5:int;
var _local6:int;
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
_local5 = focusableCandidates.length;
_local6 = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
public function set form(_arg1:DisplayObjectContainer):void{
_form = _arg1;
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var io:InteractiveObject;
var doc:DisplayObjectContainer;
var i:int;
var child:DisplayObject;
var o = _arg1;
var skipTopLevel = _arg2;
if (!skipTopLevel){
if ((o is IFocusManagerComponent)){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects[o] = true;
calculateCandidates = true;
};
o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
} else {
if ((o is InteractiveObject)){
io = (o as InteractiveObject);
if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){
focusableObjects[io] = true;
calculateCandidates = true;
};
io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){
i = 0;
while (i < doc.numChildren) {
try {
child = doc.getChildAt(i);
if (child != null){
addFocusables(doc.getChildAt(i));
};
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
return (_arg1.getChildIndex(_arg2));
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
_local2 = (_arg1.target as InteractiveObject);
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var _local2:InteractiveObject;
_local2 = _arg1;
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
};
return (_local2);
}
private function sortFocusableObjectsTabIndex():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){
focusableCandidates.push(_local2);
};
};
focusableCandidates.sort(sortByTabIndex);
}
private function removeFocusables(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:DisplayObject;
if ((_arg1 is DisplayObjectContainer)){
_arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
_arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
for (_local2 in focusableObjects) {
_local3 = DisplayObject(_local2);
if (DisplayObjectContainer(_arg1).contains(_local3)){
if (_local3 == lastFocus){
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local2];
calculateCandidates = true;
};
};
};
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject;
_local2 = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
while (_arg1 != InteractiveObject(form)) {
if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
if (_arg1 == null){
break;
};
};
return (null);
}
private function tabChildrenChangeHandler(_arg1:Event):void{
var _local2:DisplayObjectContainer;
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
_local2 = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject;
_local1 = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
var _local3:TextField;
var _local4:SimpleButton;
_local2 = DisplayObject(form).parent;
while (_arg1 != _local2) {
if ((_arg1 is UIComponent)){
if (!UIComponent(_arg1).enabled){
return (false);
};
} else {
if ((_arg1 is TextField)){
_local3 = TextField(_arg1);
if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){
return (false);
};
} else {
if ((_arg1 is SimpleButton)){
_local4 = SimpleButton(_arg1);
if (!_local4.enabled){
return (false);
};
};
};
};
if (!_arg1.visible){
return (false);
};
_arg1 = _arg1.parent;
};
return (true);
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button;
_local2 = (_arg1) ? Button(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
if (!hasFocusableObjects()){
return;
};
_local2 = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_local2);
};
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
private function sortFocusableObjects():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local2);
};
focusableCandidates.sort(sortByDepth);
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
showFocusIndicator = true;
if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local2:int;
var _local3:int;
_local2 = focusableCandidates.length;
_local3 = 0;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
public function hideFocus():void{
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local3:DisplayObject;
var _local4:InteractiveObject;
_local3 = DisplayObject(_arg1.target);
if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){
if (_local3 == lastFocus){
IFocusManagerComponent(lastFocus).drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local3];
calculateCandidates = true;
} else {
if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){
_local4 = (_local3 as InteractiveObject);
if (_local4){
if (_local4 == lastFocus){
lastFocus = null;
};
delete focusableObjects[_local4];
calculateCandidates = true;
};
_local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
};
};
removeFocusables(_local3);
}
private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:String;
var _local7:String;
var _local8:String;
var _local9:DisplayObject;
var _local10:DisplayObject;
_local3 = "";
_local4 = "";
_local8 = "0000";
_local9 = DisplayObject(_arg1);
_local10 = DisplayObject(_arg2);
while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) {
_local5 = getChildIndex(_local9.parent, _local9);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local3 = (_local7 + _local3);
_local9 = _local9.parent;
};
while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) {
_local5 = getChildIndex(_local10.parent, _local10);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local4 = (_local7 + _local4);
_local10 = _local10.parent;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0);
}
public function get defaultButton():Button{
return (_defaultButton);
}
private function activateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
if (lastFocus){
if ((lastFocus is IFocusManagerComponent)){
IFocusManagerComponent(lastFocus).setFocus();
} else {
form.stage.focus = lastFocus;
};
};
lastAction = "ACTIVATE";
}
public function showFocus():void{
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{
var _local2:DisplayObject;
var _local3:String;
var _local4:int;
var _local5:Boolean;
var _local6:int;
var _local7:int;
var _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
_local2 = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
_local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
_local4 = getIndexOfFocusedObject(_local2);
_local5 = false;
_local6 = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
_local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
var _local2:InteractiveObject;
if (_arg1.isDefaultPrevented()){
return;
};
_local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(_local2);
};
lastAction = "MOUSEDOWN";
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
_local2 = _arg1.parent;
while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) {
if (!_local2.tabChildren){
return (false);
};
_local2 = _local2.parent;
};
return (true);
}
public function get nextTabIndex():int{
return (0);
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
sendDefaultButtonEvent();
};
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
var _local3:Button;
_local2 = InteractiveObject(_arg1.target);
if (form.contains(_local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is Button)){
_local3 = Button(lastFocus);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
private function tabEnabledChangeHandler(_arg1:Event):void{
var _local2:InteractiveObject;
var _local3:Boolean;
calculateCandidates = true;
_local2 = InteractiveObject(_arg1.target);
_local3 = (focusableObjects[_local2] == true);
if (_local2.tabEnabled){
if (((!(_local3)) && (isTabVisible(_local2)))){
if (!(_local2 is IFocusManagerComponent)){
_local2.focusRect = false;
};
focusableObjects[_local2] = true;
};
} else {
if (_local3){
delete focusableObjects[_local2];
};
};
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
public function get form():DisplayObjectContainer{
return (_form);
}
private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{
return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function activate():void{
if (activated){
return;
};
form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function deactivate():void{
form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler);
form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.removeEventListener(Event.ACTIVATE, activateHandler);
form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
}
}//package fl.managers
Section 12
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
public interface IFocusManager {
function getFocus():InteractiveObject;
function deactivate():void;
function set defaultButton(_arg1:Button):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function get nextTabIndex():int;
function get defaultButton():Button;
function get showFocusIndicator():Boolean;
function setFocus(_arg1:InteractiveObject):void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function hideFocus():void;
function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
}
}//package fl.managers
Section 13
//IFocusManagerComponent (fl.managers.IFocusManagerComponent)
package fl.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package fl.managers
Section 14
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
function get groupName():String;
function get selected():Boolean;
}
}//package fl.managers
Section 15
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import fl.core.*;
import flash.utils.*;
import flash.text.*;
public class StyleManager {
private var globalStyles:Object;
private var classToDefaultStylesDict:Dictionary;
private var styleToClassesHash:Object;
private var classToStylesDict:Dictionary;
private var classToInstancesDict:Dictionary;
private static var _instance:StyleManager;
public function StyleManager(){
styleToClassesHash = {};
classToInstancesDict = new Dictionary(true);
classToStylesDict = new Dictionary(true);
classToDefaultStylesDict = new Dictionary(true);
globalStyles = UIComponent.getStyleDefinition();
}
public static function clearComponentStyle(_arg1:Object, _arg2:String):void{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){
delete _local4[_arg2];
invalidateComponentStyle(_local3, _arg2);
};
}
private static function getClassDef(_arg1:Object):Class{
var component = _arg1;
if ((component is Class)){
return ((component as Class));
};
try {
return ((getDefinitionByName(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
if ((component is UIComponent)){
try {
return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
};
};
};
return (null);
}
public static function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Class;
var _local5:Object;
_local4 = getClassDef(_arg1);
_local5 = getInstance().classToStylesDict[_local4];
if (_local5 == null){
_local5 = (getInstance().classToStylesDict[_local4] = {});
};
if (_local5 == _arg3){
return;
};
_local5[_arg2] = _arg3;
invalidateComponentStyle(_local4, _arg2);
}
private static function setSharedStyles(_arg1:UIComponent):void{
var _local2:StyleManager;
var _local3:Class;
var _local4:Object;
var _local5:String;
_local2 = getInstance();
_local3 = getClassDef(_arg1);
_local4 = _local2.classToDefaultStylesDict[_local3];
for (_local5 in _local4) {
_arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5));
};
}
public static function getComponentStyle(_arg1:Object, _arg2:String):Object{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
return (((_local4)==null) ? null : _local4[_arg2]);
}
private static function getInstance(){
if (_instance == null){
_instance = new (StyleManager);
};
return (_instance);
}
private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{
var _local3:Dictionary;
var _local4:Object;
var _local5:UIComponent;
_local3 = getInstance().classToInstancesDict[_arg1];
if (_local3 == null){
return;
};
for (_local4 in _local3) {
_local5 = (_local4 as UIComponent);
if (_local5 == null){
} else {
_local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2));
};
};
}
private static function invalidateStyle(_arg1:String):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
public static function registerInstance(_arg1:UIComponent):void{
var inst:StyleManager;
var classDef:Class;
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
inst = getInstance();
classDef = getClassDef(instance);
if (classDef == null){
return;
};
if (inst.classToInstancesDict[classDef] == null){
inst.classToInstancesDict[classDef] = new Dictionary(true);
target = classDef;
while (defaultStyles == null) {
if (target["getStyleDefinition"] != null){
defaultStyles = target["getStyleDefinition"]();
break;
};
try {
target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class);
} catch(err:Error) {
try {
target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class);
} catch(e:Error) {
defaultStyles = UIComponent.getStyleDefinition();
break;
};
};
};
styleToClasses = inst.styleToClassesHash;
for (n in defaultStyles) {
if (styleToClasses[n] == null){
styleToClasses[n] = new Dictionary(true);
};
styleToClasses[n][classDef] = true;
};
inst.classToDefaultStylesDict[classDef] = defaultStyles;
inst.classToStylesDict[classDef] = {};
};
inst.classToInstancesDict[classDef][instance] = true;
setSharedStyles(instance);
}
public static function getStyle(_arg1:String):Object{
return (getInstance().globalStyles[_arg1]);
}
private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{
var _local3:Class;
var _local4:StyleManager;
var _local5:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance();
_local5 = _local4.classToStylesDict[_local3][_arg2];
if (_local5 != null){
return (_local5);
};
_local5 = _local4.globalStyles[_arg2];
if (_local5 != null){
return (_local5);
};
return (_local4.classToDefaultStylesDict[_local3][_arg2]);
}
public static function setStyle(_arg1:String, _arg2:Object):void{
var _local3:Object;
_local3 = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
}
}//package fl.managers
Section 16
//descriptionbox1_26 (GMEmulatorRU_fla.descriptionbox1_26)
package GMEmulatorRU_fla {
import flash.display.*;
import flash.text.*;
public dynamic class descriptionbox1_26 extends MovieClip {
public var done:SimpleButton;
public var help2:SimpleButton;
public var newlistboxes:MovieClip;
public var descriptionfield:TextField;
public function descriptionbox1_26(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package GMEmulatorRU_fla
Section 17
//MainTimeline (GMEmulatorRU_fla.MainTimeline)
package GMEmulatorRU_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var npcpagefield:TextField;
public var logfield:TextField;
public var rollresultfield:TextField;
public var fade:MovieClip;
public var tempinfo;
public var questionprobability;
public var rollfield:TextField;
public var pc1:TextField;
public var pc2:TextField;
public var pc3:TextField;
public var pc4:TextField;
public var pc5:TextField;
public var pc6:TextField;
public var pc7:TextField;
public var pc8:TextField;
public var questionbox1:MovieClip;
public var rollcount;
public var reset1:SimpleButton;
public var rolllabelfield:TextField;
public var npcforward:SimpleButton;
public var newscene1:MovieClip;
public var newscene2:MovieClip;
public var questionfield:TextField;
public var ask1:SimpleButton;
public var slider:MovieClip;
public var questioncount;
public var probabilitytext;
public var threadpagefield:TextField;
public var help1:SimpleButton;
public var asktype:MovieClip;
public var pcpagefield:TextField;
public var help:MovieClip;
public var npcback:SimpleButton;
public var roll1:SimpleButton;
public var pcback:SimpleButton;
public var eventbox1:MovieClip;
public var questionroll;
public var thread1:TextField;
public var thread2:TextField;
public var thread3:TextField;
public var thread4:TextField;
public var thread5:TextField;
public var thread6:TextField;
public var thread7:TextField;
public var thread8:TextField;
public var npc1:TextField;
public var npc2:TextField;
public var pcforward:SimpleButton;
public var npc4:TextField;
public var npc5:TextField;
public var npc6:TextField;
public var npc7:TextField;
public var npc8:TextField;
public var npc3:TextField;
public var chaosfield:TextField;
public var threadforward:SimpleButton;
public var currentpage;
public var sliderbar:SimpleButton;
public var savedinfo;
public var endscene1:SimpleButton;
public var descriptionbox1:MovieClip;
public var firstscene1:MovieClip;
public var firstscene2:MovieClip;
public var firstscene3:MovieClip;
public var probabilityfield:TextField;
public var threadback:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1);
__setTab_pc1_Scene1_fields_0();
__setTab_questionfield_Scene1_fields_0();
__setTab_pc2_Scene1_fields_0();
__setTab_pc3_Scene1_fields_0();
__setTab_pc4_Scene1_fields_0();
__setTab_pc5_Scene1_fields_0();
__setTab_pc6_Scene1_fields_0();
__setTab_pc7_Scene1_fields_0();
__setTab_pc8_Scene1_fields_0();
__setTab_npc1_Scene1_fields_0();
__setTab_npc2_Scene1_fields_0();
__setTab_npc3_Scene1_fields_0();
__setTab_npc4_Scene1_fields_0();
__setTab_npc5_Scene1_fields_0();
__setTab_npc6_Scene1_fields_0();
__setTab_npc7_Scene1_fields_0();
__setTab_npc8_Scene1_fields_0();
__setTab_thread1_Scene1_fields_0();
__setTab_thread3_Scene1_fields_0();
__setTab_thread4_Scene1_fields_0();
__setTab_thread5_Scene1_fields_0();
__setTab_thread6_Scene1_fields_0();
__setTab_thread7_Scene1_fields_0();
__setTab_thread8_Scene1_fields_0();
__setTab_thread2_Scene1_fields_0();
__setTab_rolllabelfield_Scene1_fields_0();
__setTab_rollfield_Scene1_fields_0();
__setTab_rollresultfield_Scene1_fields_0();
}
public function firstscenestart(){
savedinfo.data.insetup = true;
fade.visible = true;
fade.alpha = 1;
firstscene1.visible = true;
firstscene1.continue1.addEventListener(MouseEvent.CLICK, firstscene2click);
firstscene1.skip1.addEventListener(MouseEvent.CLICK, firstsceneskip);
}
public function sliderrelease(_arg1:MouseEvent):void{
_arg1.target.stage.removeEventListener(MouseEvent.MOUSE_UP, sliderrelease);
_arg1.target.stage.removeEventListener(MouseEvent.MOUSE_MOVE, slidermove);
slider.stopDrag();
questionprobability = (1 - ((slider.x - 631) / 315));
probabilityfield.text = probabilitytext[Math.floor(((1 - ((slider.x - 631) / 315)) * 9))];
}
public function firstscene3click(_arg1:MouseEvent){
firstscene2.continue1.removeEventListener(MouseEvent.CLICK, firstscene3click);
firstscene2.visible = false;
firstscene3.visible = true;
firstscene3.continue1.addEventListener(MouseEvent.CLICK, firstscenedone);
}
function __setTab_npc1_Scene1_fields_0(){
npc1.tabIndex = 9;
}
function __setTab_npc2_Scene1_fields_0(){
npc2.tabIndex = 10;
}
function __setTab_npc3_Scene1_fields_0(){
npc3.tabIndex = 11;
}
function __setTab_npc4_Scene1_fields_0(){
npc4.tabIndex = 12;
}
function __setTab_npc5_Scene1_fields_0(){
npc5.tabIndex = 13;
}
function __setTab_npc6_Scene1_fields_0(){
npc6.tabIndex = 14;
}
public function questiondoneclick(_arg1:MouseEvent):void{
addnewlistitems("questionbox1");
addnewlistitems("descriptionbox1");
questionbox1.visible = false;
descriptionbox1.visible = false;
enablebuttons();
trace(("questionroll: " + questionroll));
trace(("chaos: " + (savedinfo.data.chaos * 0.1)));
if (questionroll <= (savedinfo.data.chaos * 0.1)){
if (Math.random() <= 0.1){
randomevent();
};
};
}
function __setTab_npc8_Scene1_fields_0(){
npc8.tabIndex = 16;
}
public function waitforunfocus(_arg1:KeyboardEvent):void{
trace(("waitforunfoucs:" + stage.focus.name));
stage.removeEventListener(KeyboardEvent.KEY_DOWN, waitforunfocus);
stage.focus.addEventListener(FocusEvent.FOCUS_OUT, savefield);
}
function __setTab_npc7_Scene1_fields_0(){
npc7.tabIndex = 15;
}
public function slidermove(_arg1:MouseEvent):void{
probabilityfield.text = probabilitytext[Math.floor(((1 - ((slider.x - 631) / 315)) * 9))];
}
public function threadbackclick(_arg1:MouseEvent):void{
var _local2 = currentpage;
var _local3 = 2;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
if (currentpage[2] == 0){
threadback.visible = false;
};
threadpagefield.text = ("Page " + String((currentpage[2] + 1)));
refreshlists();
}
public function randrange(_arg1:int, _arg2:int):int{
return ((Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1));
}
public function helpdone(_arg1:MouseEvent){
help.visible = false;
help.helpbox2.abouttab.removeEventListener(MouseEvent.CLICK, abouttabclick);
help.helpbox1.howtoplaytab.removeEventListener(MouseEvent.CLICK, howtoplaytabclick);
}
function frame1(){
eventbox1.visible = false;
descriptionbox1.visible = false;
questionbox1.visible = false;
firstscene1.visible = false;
firstscene2.visible = false;
firstscene3.visible = false;
newscene1.visible = false;
newscene2.visible = false;
fade.visible = false;
pcback.visible = false;
npcback.visible = false;
threadback.visible = false;
help.visible = false;
reset1.addEventListener(MouseEvent.CLICK, reset);
ask1.addEventListener(MouseEvent.CLICK, askclick);
asktype.askyesno1.addEventListener(MouseEvent.CLICK, askyesnoclick);
asktype.askdetail1.addEventListener(MouseEvent.CLICK, askdetailclick);
questionbox1.done.addEventListener(MouseEvent.CLICK, questiondoneclick);
descriptionbox1.done.addEventListener(MouseEvent.CLICK, questiondoneclick);
eventbox1.done.addEventListener(MouseEvent.CLICK, eventdoneclick);
help.helpbox1.done.addEventListener(MouseEvent.CLICK, helpdone);
help.helpbox2.done.addEventListener(MouseEvent.CLICK, helpdone);
slider.addEventListener(MouseEvent.MOUSE_DOWN, sliderclick);
sliderbar.addEventListener(MouseEvent.MOUSE_DOWN, sliderclick);
roll1.addEventListener(MouseEvent.CLICK, rollclick);
endscene1.addEventListener(MouseEvent.CLICK, endscene);
pcback.addEventListener(MouseEvent.CLICK, pcbackclick);
pcforward.addEventListener(MouseEvent.CLICK, pcforwardclick);
npcback.addEventListener(MouseEvent.CLICK, npcbackclick);
npcforward.addEventListener(MouseEvent.CLICK, npcforwardclick);
threadback.addEventListener(MouseEvent.CLICK, threadbackclick);
threadforward.addEventListener(MouseEvent.CLICK, threadforwardclick);
help1.addEventListener(MouseEvent.CLICK, helpclick);
firstscene1.help2.addEventListener(MouseEvent.CLICK, helpclick);
firstscene2.help2.addEventListener(MouseEvent.CLICK, helpclick);
firstscene3.help2.addEventListener(MouseEvent.CLICK, helpclick);
newscene1.help2.addEventListener(MouseEvent.CLICK, helpclick);
newscene2.help2.addEventListener(MouseEvent.CLICK, helpclick);
questionbox1.help2.addEventListener(MouseEvent.CLICK, helpclick);
eventbox1.help2.addEventListener(MouseEvent.CLICK, helpclick);
stage.addEventListener(KeyboardEvent.KEY_DOWN, waitforunfocus);
questionprobability = (1 - ((slider.x - 631) / 315));
probabilitytext = new Array("Impossible", "No Way", "Very Unlikely", "Unlikely", "50/50 or Unsure", "Likely", "Very Likely", "A Sure Thing", "Has To Be");
probabilityfield.text = probabilitytext[Math.floor((questionprobability * 9))];
questioncount = 0;
rollcount = 0;
currentpage = new Array(0, 0, 0);
savedinfo = SharedObject.getLocal("GMEmulatorSavedInfo");
if (((!(savedinfo.data.lists)) || (savedinfo.data.insetup))){
tempinfo = savedinfo;
reset(null);
savedinfo = tempinfo;
};
refreshlists();
askyesnoclick(null);
}
public function newscenecancel(_arg1:MouseEvent){
newscene1.continue1.removeEventListener(MouseEvent.CLICK, newscene2click);
newscene1.cancel1.removeEventListener(MouseEvent.CLICK, newscenecancel);
newscene1.visible = false;
newscene1.description1.text = "";
enablebuttons();
}
public function pcbackclick(_arg1:MouseEvent):void{
var _local2 = currentpage;
var _local3:int;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
if (currentpage[0] == 0){
pcback.visible = false;
};
pcpagefield.text = ("Page " + String((currentpage[0] + 1)));
refreshlists();
}
function __setTab_rolllabelfield_Scene1_fields_0(){
rolllabelfield.tabIndex = 27;
}
function __setTab_thread1_Scene1_fields_0(){
thread1.tabIndex = 17;
}
function __setTab_thread2_Scene1_fields_0(){
thread2.tabIndex = 18;
}
function __setTab_thread4_Scene1_fields_0(){
thread4.tabIndex = 20;
}
function __setTab_thread5_Scene1_fields_0(){
thread5.tabIndex = 21;
}
function __setTab_thread6_Scene1_fields_0(){
thread6.tabIndex = 22;
}
function __setTab_thread7_Scene1_fields_0(){
thread7.tabIndex = 23;
}
function __setTab_thread8_Scene1_fields_0(){
thread8.tabIndex = 24;
}
public function randomthread():String{
var _local1:* = new Array();
var _local2:* = 1;
while (_local2 < (savedinfo.data.lists[2].length + 1)) {
if (savedinfo.data.lists[2][_local2] != ""){
if (savedinfo.data.lists[2][_local2]){
_local1.push(savedinfo.data.lists[2][_local2]);
};
};
_local2++;
};
if (_local1.length == 0){
_local1 = new Array("Celebrating Past Victories", "Finding something to do");
};
return (_local1[randrange(0, (_local1.length - 1))]);
}
public function endscene(_arg1:MouseEvent){
disablebuttons();
newscene1.lesschaotic.visible = true;
newscene1.lesschaoticdown.visible = false;
newscene1.morechaotic.visible = false;
newscene1.morechaoticdown.visible = true;
newscene1.visible = true;
newscene1.morechaotic.addEventListener(MouseEvent.MOUSE_DOWN, morechaotic);
newscene1.lesschaotic.addEventListener(MouseEvent.MOUSE_DOWN, lesschaotic);
newscene1.continue1.addEventListener(MouseEvent.CLICK, newscene2click);
newscene1.cancel1.addEventListener(MouseEvent.CLICK, newscenecancel);
}
public function howtoplaytabclick(_arg1:MouseEvent){
help.helpbox2.abouttab.enabled = true;
help.helpbox1.howtoplaytab.enabled = false;
help.setChildIndex(help.helpbox1, 0);
help.setChildIndex(help.helpbox2, 1);
}
public function newscene2click(_arg1:MouseEvent){
newscene1.continue1.removeEventListener(MouseEvent.CLICK, newscene2click);
newscene1.cancel1.removeEventListener(MouseEvent.CLICK, newscenecancel);
newscene1.visible = false;
enablebuttons();
savedinfo.data.scenecount++;
if (newscene1.morechaoticdown.visible == true){
if (savedinfo.data.chaos < 9){
savedinfo.data.chaos++;
};
};
if (newscene1.lesschaoticdown.visible == true){
if (savedinfo.data.chaos > 1){
savedinfo.data.chaos--;
};
};
chaosfield.text = savedinfo.data.chaos;
if (Math.random() <= (savedinfo.data.chaos * 0.1)){
if (Math.random() <= 0.5){
logfield.text = ((((("\nScene #" + savedinfo.data.scenecount) + ": \n") + newscene1.description1.text) + "\n\n") + logfield.text);
savedinfo.data.logfield = logfield.text;
newscene1.description1.text = "";
randomevent();
} else {
scenealtered();
};
} else {
trace(("noalteration: " + newscene1.description1.text));
logfield.text = ((((("\nScene #" + savedinfo.data.scenecount) + ": \n") + newscene1.description1.text) + "\n\n") + logfield.text);
savedinfo.data.logfield = logfield.text;
newscene1.description1.text = "";
};
}
public function lesschaotic(_arg1:MouseEvent){
newscene1.lesschaotic.visible = false;
newscene1.lesschaoticdown.visible = true;
newscene1.morechaotic.visible = true;
newscene1.morechaoticdown.visible = false;
}
public function enablebuttons(){
fade.visible = false;
}
public function askclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:TextFormat;
var _local20:*;
disablebuttons();
questioncount++;
questionroll = Math.random();
if (savedinfo.data.asktype == 0){
_local2 = questionprobability;
_local3 = (((savedinfo.data.chaos * 0.1) + _local2) - 0.5);
_local4 = questionroll;
_local5 = (Math.ceil((Math.ceil((_local3 - _local4)) / 2)) + 1);
if ((((_local4 <= (_local3 / 5))) && (((_local3 - _local4) >= 0)))){
_local5 = 4;
};
if (((((1 - _local4) <= ((1 - _local3) / 5))) && (((_local3 - _local4) < 0)))){
_local5 = 3;
};
_local6 = new Array("NO", "YES", "EXCEPTIONAL NO", "EXCEPTIONAL YES");
questionbox1.gotoAndStop(_local5);
if ((((_local5 == 4)) && ((randrange(1, 3000) == 1)))){
questionbox1.gotoAndStop(5);
};
questionbox1.visible = true;
if (questionfield.text == ""){
_local7 = ("#" + questioncount);
} else {
_local7 = questionfield.text;
questionfield.text = "";
};
logfield.text = ((((("Q: " + _local7) + " ") + _local6[(_local5 - 1)]) + "\n") + logfield.text);
savedinfo.data.logfield = logfield.text;
} else {
_local8 = new Array("A [[Certain Amount]] of", "A [[Surprising Amount]] of", "A [[Surprising Lack]] of", "A [[Small Amount]] of", "A [[Large Amount]] of", "A [[Future]] of", "A [[History]] of", "An [[Uncertain Amount]] of", "[[Entirely Normal]]", "[[Truly Bizarre]]", "[[Somewhat Ambiguous]]", "A [[Rough Likeness]] of", "An [[Incredible Display]] of", "[[Various Examples]] of", "[[Disturbing]]", "[[Helpful]]", "[[Fascinating]]", "A [[Small, Notable Example]] of", "[[Pleasant]]", "[[Horrifying]]", "[[Slightly Odd]]", "A [[Revelation]] regarding", "A [[Complete Lack]] of", "[[Terrifying]]", "A [[Mystery]] involving", "A [[Sudden Change]] involving", "[[Faint Traces]] of", "[[Utterly Beautiful]]", "An [[Incorrect Assumption]] about", "[[Plenty]] of", "An [[Insufficient Amount]] of", "[[Somewhat Hilarious]]", "Something that [[Brings Back Memories]] of", "[[Oddly Stereotypical]]", "The [[Exact Opposite]] of", "Something that [[Informs You]] about", "[[False]]", "[[Evil]]", "[[Genuinely Good]]", "[[Primitive]]", "[[Advanced]]", "[[Ironic]]");
_local9 = new Array(" [[Familiarity]]", " [[Strangeness]]", " [[Frivolity]]", " [[Severity]]", " [[Oldness]]", " [[Newness]]", " [[Friendliness]]", " [[Hostility]]", " [[Immensity]]", " [[Literacy]]", " [[Eccentricity]]", " [[Entertainment]]", " [[Hilarity]]", " [[Respectability]]", " [[Obsessions]]", " [[Love]]", " [[Hate]]", " [[Beauty]]", " [[Grotesqueness]]", " [[Creation]]", " [[Destruction]]", " [[Innovation]]", " [[Ruin]]", " [[Danger]]", " [[Stupidity]]", " [[Competence]]", " [[Technology]]", " [[Spirituality]]", " [[Nature]]", " [[Authority]]", " [[Excitement]]", " [[Dullness]]", " [[Sexuality]]", " [[Decoration]]", " [[Athletics]]", " [[Freedom]]", " [[Insanity]]", " [[Violence]]", " [[Compassion]]", " [[Care]]", " [[Irony]]", " [[Hope]]", " [[Insight]]", " [[Intelligence]]", " [[Masculinity]]", " [[Femininity]]", " [[Grandiosity]]", " [[Humility]]", " [[Starkness]]", " [[Expansiveness]]", " [[Splendor]]", " [[Squalor]]", " [[Dignity]]", " [[Laziness]]", " [[Perilousness]]", " [[Exposure]]", " [[Fortune]]", " [[Armament]]", " [[Defence]]");
_local10 = randrange(0, (_local8.length - 1));
_local11 = randrange(0, (_local9.length - 1));
_local12 = randomplayer();
_local13 = randomnpc();
_local14 = randomthread();
_local15 = "";
_local16 = (("The Answer involves\n" + _local8[_local10]) + _local9[_local11]);
if (randrange(0, 2) == 0){
switch (randrange(1, 3)){
case 1:
_local16 = (_local16 + ((", which might affect [[" + _local12) + "]]."));
_local15 = (", " + _local12);
break;
case 2:
_local16 = (_local16 + ((", and might also involve [[" + _local13) + "]]."));
_local15 = (", " + _local13);
break;
case 3:
_local16 = (_local16 + ((", and could affect the thread '[[" + _local14) + "]]'."));
_local15 = (", " + _local14);
break;
};
} else {
_local16 = (_local16 + ".");
};
_local17 = new Array(new Array(0, 0), new Array(0, 0), new Array(0, 0), new Array(0, 0), new Array(0, 0));
_local18 = 0;
while (_local18 < 5) {
_local17[_local18][0] = _local16.indexOf("[[");
_local16 = _local16.replace("[[", "");
_local17[_local18][1] = _local16.indexOf("]]");
_local16 = _local16.replace("]]", "");
_local18++;
};
_local19 = new TextFormat();
_local19.bold = true;
descriptionbox1.descriptionfield.text = _local16;
descriptionbox1.descriptionfield.wordWrap = true;
_local18 = 0;
while (_local18 < 5) {
if (_local17[_local18][1] > 0){
descriptionbox1.descriptionfield.setTextFormat(_local19, _local17[_local18][0], _local17[_local18][1]);
};
_local18++;
};
if (questionfield.text == ""){
_local7 = ("#" + questioncount);
} else {
_local7 = questionfield.text;
questionfield.text = "";
};
_local20 = (((((("Q: " + _local7) + " ") + _local8[_local10]) + _local9[_local11]) + _local15) + "\n");
_local20 = _local20.replace("]]", "");
_local20 = _local20.replace("[[", "");
_local20 = _local20.replace("]]", "");
_local20 = _local20.replace("[[", "");
logfield.text = (_local20 + logfield.text);
savedinfo.data.logfield = logfield.text;
descriptionbox1.visible = true;
disablebuttons();
};
}
function __setTab_rollfield_Scene1_fields_0(){
rollfield.tabIndex = 26;
}
function __setTab_thread3_Scene1_fields_0(){
thread3.tabIndex = 19;
}
public function askyesnoclick(_arg1:MouseEvent):void{
asktype.askyesno1.visible = false;
asktype.askdetail1.visible = true;
asktype.askyesno1down.visible = true;
asktype.askdetail1down.visible = false;
savedinfo.data.asktype = 0;
}
public function helpclick(_arg1:MouseEvent){
help.visible = true;
abouttabclick(null);
help.helpbox2.abouttab.addEventListener(MouseEvent.CLICK, abouttabclick);
help.helpbox1.howtoplaytab.addEventListener(MouseEvent.CLICK, howtoplaytabclick);
}
public function threadforwardclick(_arg1:MouseEvent):void{
var _local2 = currentpage;
var _local3 = 2;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
threadback.visible = true;
threadpagefield.text = ("Page " + String((currentpage[2] + 1)));
refreshlists();
}
function __setTab_questionfield_Scene1_fields_0(){
questionfield.tabIndex = 25;
}
public function scenealtered(){
newscene2.visible = true;
disablebuttons();
if (Math.random() <= 0.5){
newscene2.alterationtext.text = "Something is unexpectly Positive.";
} else {
newscene2.alterationtext.text = "Something is unexpectly Negative.";
};
var _local1:TextFormat = new TextFormat();
_local1.bold = true;
newscene2.alterationtext.setTextFormat(_local1, 24, 32);
newscene2.continue1.addEventListener(MouseEvent.CLICK, newscene2done);
}
public function rollclick(_arg1:MouseEvent):void{
var _local2:*;
rollcount++;
rollresultfield.text = String(Math.ceil((Math.random() * int(rollfield.text))));
if (rolllabelfield.text == ""){
_local2 = ("#" + rollcount);
} else {
_local2 = rolllabelfield.text;
rolllabelfield.text = "";
};
logfield.text = ((((((("R: " + _local2) + ": ") + rollresultfield.text) + "/") + rollfield.text) + "\n") + logfield.text);
savedinfo.data.logfield = logfield.text;
}
public function randomnpc():String{
var _local1:* = new Array();
var _local2:* = 1;
while (_local2 < (savedinfo.data.lists[1].length + 1)) {
if (savedinfo.data.lists[1][_local2] != ""){
if (savedinfo.data.lists[1][_local2]){
_local1.push(savedinfo.data.lists[1][_local2]);
};
};
_local2++;
};
if (_local1.length == 0){
_local1 = new Array("A Random Passerby", "Your Mother", "The Main Antognist");
};
return (_local1[randrange(0, (_local1.length - 1))]);
}
public function sliderclick(_arg1:MouseEvent):void{
slider.startDrag(true, new Rectangle(661, 395, 0xFF, 0));
_arg1.target.stage.addEventListener(MouseEvent.MOUSE_UP, sliderrelease);
_arg1.target.stage.addEventListener(MouseEvent.MOUSE_MOVE, slidermove);
}
public function npcforwardclick(_arg1:MouseEvent):void{
var _local2 = currentpage;
var _local3 = 1;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
npcback.visible = true;
npcpagefield.text = ("Page " + String((currentpage[1] + 1)));
refreshlists();
}
public function pcforwardclick(_arg1:MouseEvent):void{
var _local2 = currentpage;
var _local3:int;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
pcback.visible = true;
pcpagefield.text = ("Page " + String((currentpage[0] + 1)));
refreshlists();
}
public function newscene2done(_arg1:MouseEvent){
newscene2.continue1.removeEventListener(MouseEvent.CLICK, newscene2done);
newscene2.visible = false;
enablebuttons();
addnewlistitems("newscene2");
if (!newscene2.description1.text){
if (newscene1.description1.text){
newscene2.description1.text = newscene1.description1.text;
};
if (firstscene3.description1.text){
newscene2.description1.text = firstscene3.description1.text;
};
};
logfield.text = ((((((("\nScene #" + savedinfo.data.scenecount) + " (") + newscene2.alterationtext.text.slice(24, 32)) + " Alteration): \n") + newscene2.description1.text) + "\n\n") + logfield.text);
savedinfo.data.logfield = logfield.text;
newscene2.description1.text = "";
}
public function firstsceneskip(_arg1:MouseEvent){
savedinfo.data.insetup = false;
firstscene1.continue1.removeEventListener(MouseEvent.CLICK, firstscene2click);
firstscene1.skip1.removeEventListener(MouseEvent.CLICK, firstsceneskip);
firstscene1.visible = false;
fade.alpha = 0.2;
fade.visible = false;
}
public function firstscenedone(_arg1:MouseEvent){
firstscene3.continue1.removeEventListener(MouseEvent.CLICK, firstscenedone);
firstscene3.visible = false;
savedinfo.data.insetup = false;
fade.alpha = 0.2;
fade.visible = false;
if (Math.random() <= (savedinfo.data.chaos * 0.1)){
if (Math.random() <= 0.5){
logfield.text = ((((("\nScene #" + savedinfo.data.scenecount) + ": \n") + firstscene3.description1.text) + "\n\n") + logfield.text);
savedinfo.data.logfield = logfield.text;
firstscene3.description1.text = "";
randomevent();
} else {
scenealtered();
};
} else {
logfield.text = ((((("\nScene #" + savedinfo.data.scenecount) + ": \n") + firstscene3.description1.text) + "\n\n") + logfield.text);
savedinfo.data.logfield = logfield.text;
firstscene3.description1.text = "";
};
refreshlists();
}
public function npcbackclick(_arg1:MouseEvent):void{
var _local2 = currentpage;
var _local3 = 1;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
if (currentpage[1] == 0){
npcback.visible = false;
};
npcpagefield.text = ("Page " + String((currentpage[1] + 1)));
refreshlists();
}
public function morechaotic(_arg1:MouseEvent){
newscene1.lesschaotic.visible = true;
newscene1.lesschaoticdown.visible = false;
newscene1.morechaotic.visible = false;
newscene1.morechaoticdown.visible = true;
}
public function randomplayer():String{
var _local1:* = new Array();
var _local2:* = 1;
while (_local2 < (savedinfo.data.lists[0].length + 1)) {
if (savedinfo.data.lists[0][_local2] != ""){
if (savedinfo.data.lists[0][_local2]){
_local1.push(savedinfo.data.lists[0][_local2]);
};
};
_local2++;
};
if (_local1.length == 0){
_local1.push("You");
};
return (_local1[randrange(0, (_local1.length - 1))]);
}
public function firstscene2click(_arg1:MouseEvent){
firstscene1.continue1.removeEventListener(MouseEvent.CLICK, firstscene2click);
firstscene1.visible = false;
firstscene2.visible = true;
firstscene2.continue1.addEventListener(MouseEvent.CLICK, firstscene3click);
}
public function addnewlistitems(_arg1:String){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local2:* = 1;
while (_local2 < 5) {
_local3 = getChildByName(_arg1);
_local4 = _local3.newlistboxes.getChildByName(("nnpc" + _local2));
if (_local4.text){
_local5 = 1;
while (_local5 < savedinfo.data.lists[1].length) {
if (!savedinfo.data.lists[1][_local5]){
savedinfo.data.lists[1][_local5] = _local4.text;
_local4.text = "";
break;
};
_local5++;
};
if (_local4.text){
trace(savedinfo.data.lists[1][0]);
savedinfo.data.lists[1][0] = 1;
savedinfo.data.lists[1].push(_local4.text);
_local4.text = "";
};
refreshlists();
};
_local2++;
};
_local2 = 1;
while (_local2 < 3) {
_local3 = getChildByName(_arg1);
_local6 = _local3.newlistboxes.getChildByName(("nthread" + _local2));
if (_local6.text != ""){
_local5 = 1;
while (_local5 < savedinfo.data.lists[2].length) {
if (!savedinfo.data.lists[2][_local5]){
savedinfo.data.lists[2][_local5] = _local6.text;
_local6.text = "";
break;
};
_local5++;
};
if (_local6.text){
trace(("data:" + savedinfo.data.lists[2][0]));
savedinfo.data.lists[2].push(_local6.text);
_local6.text = "";
};
refreshlists();
};
_local2++;
};
}
public function addtolist(_arg1:String, _arg2:int){
var _local6:*;
var _local3:* = new Array("pc", "npc", "thread");
var _local4:* = new Array(8, 8, 8);
var _local5:* = 1;
while (_local5 < (_local4[_arg2] + 1)) {
_local6 = getChildByName((_local3[_arg2] + _local5));
if (_local6.text == ""){
_local6.text = _arg1;
break;
};
_local5++;
};
}
function __setTab_rollresultfield_Scene1_fields_0(){
rollresultfield.tabIndex = 26;
}
public function reset(_arg1:MouseEvent):void{
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
savedinfo.clear();
var _local2:* = new Array("pc", "npc", "thread");
var _local3:* = new Array(8, 8, 8);
var _local4:* = 0;
while (_local4 < 3) {
_local5 = 1;
while (_local5 < (_local3[_local4] + 1)) {
_local6 = getChildByName((_local2[_local4] + _local5));
_local6.text = "";
_local5++;
};
_local4++;
};
_local5 = 1;
while (_local5 < 9) {
_local6 = firstscene1.getChildByName(("pc" + _local5));
_local6.text = "";
_local7 = firstscene2.getChildByName(("npc" + _local5));
_local7.text = "";
_local5++;
};
_local5 = 1;
while (_local5 < 5) {
_local8 = firstscene2.getChildByName(("thread" + _local5));
_local8.text = "";
_local5++;
};
firstscene3.description1.text = "";
newscene2.description1.text = "";
logfield.text = "";
questionfield.text = "";
rollfield.text = "100";
rolllabelfield.text = "";
rollresultfield.text = "100";
currentpage = new Array(0, 0, 0);
pcback.visible = false;
npcback.visible = false;
threadback.visible = false;
pcpagefield.text = "Page 1";
npcpagefield.text = "Page 1";
threadpagefield.text = "Page 1";
slider.x = 750;
questionprobability = (1 - ((slider.x - 631) / 315));
probabilityfield.text = probabilitytext[Math.floor((questionprobability * 9))];
questioncount = 0;
rollcount = 0;
savedinfo.data.lists = new Array(new Array(1, ""), new Array(1, ""), new Array(1, ""), new Array(1, ""), new Array(1, ""));
savedinfo.data.scenecount = 1;
savedinfo.data.chaos = 5;
firstscenestart();
}
public function disablebuttons(){
fade.visible = true;
}
public function refreshlists(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_local1 = new Array("pc", "npc", "thread");
_local2 = new Array(8, 8, 8);
_local3 = 0;
while (_local3 < 3) {
_local4 = 1;
while (_local4 < (_local2[_local3] + 1)) {
_local5 = getChildByName((_local1[_local3] + _local4));
_local6 = (_local4 + (currentpage[_local3] * _local2[_local3]));
if (savedinfo.data.lists[_local3][_local6]){
_local5.text = savedinfo.data.lists[_local3][_local6];
} else {
_local5.text = "";
};
_local4++;
};
_local3++;
};
if (savedinfo.data.logfield){
logfield.text = savedinfo.data.logfield;
};
if (savedinfo.data.insetup){
_local1 = new Array("pc", "npc", "thread");
_local7 = new Array("firstscene1", "firstscene2", "firstscene2");
_local2 = new Array(8, 8, 4);
_local3 = 0;
while (_local3 < 3) {
_local4 = 1;
while (_local4 < (_local2[_local3] + 1)) {
_local8 = getChildByName(_local7[_local3]);
_local9 = _local8.getChildByName((_local1[_local3] + _local4));
if (savedinfo.data.lists[_local3][_local4]){
_local9.text = savedinfo.data.lists[_local3][_local4];
} else {
_local9.text = "";
};
_local4++;
};
_local3++;
};
};
chaosfield.text = String(savedinfo.data.chaos);
}
public function savefield(_arg1:FocusEvent):void{
var _local2:*;
if (_arg1.target.name.slice(0, 2) == "pc"){
_local2 = (int(_arg1.target.name.slice(2)) + (currentpage[0] * 8));
savedinfo.data.lists[0][_local2] = _arg1.target.text;
if (_arg1.target.text == ""){
savedinfo.data.lists[0][_local2] = undefined;
};
};
if (_arg1.target.name.slice(0, 3) == "npc"){
_local2 = (int(_arg1.target.name.slice(3)) + (currentpage[1] * 8));
savedinfo.data.lists[1][_local2] = _arg1.target.text;
if (_arg1.target.text == ""){
savedinfo.data.lists[1][_local2] = undefined;
};
};
if (_arg1.target.name.slice(0, 6) == "thread"){
_local2 = (int(_arg1.target.name.slice(6)) + (currentpage[2] * 8));
savedinfo.data.lists[2][_local2] = _arg1.target.text;
if (_arg1.target.text == ""){
savedinfo.data.lists[2][_local2] = undefined;
};
};
if (_arg1.target.name.slice(0, 5) == "chaos"){
savedinfo.data.chaos = int(chaosfield.text);
if (savedinfo.data.chaos < 1){
savedinfo.data.chaos = 1;
};
if (savedinfo.data.chaos > 9){
savedinfo.data.chaos = 9;
};
chaosfield.text = savedinfo.data.chaos;
trace(("chaoschange: " + savedinfo.data.chaos));
};
if (_arg1.target.name == "rollfield"){
if (int(rollfield.text) < 2){
rollfield.text = "2";
};
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, waitforunfocus);
}
public function abouttabclick(_arg1:MouseEvent){
help.helpbox2.abouttab.enabled = false;
help.helpbox1.howtoplaytab.enabled = true;
help.setChildIndex(help.helpbox1, 1);
help.setChildIndex(help.helpbox2, 0);
}
public function randomevent(){
var _local1:* = new Array("Something happens [[Elsewhere]], involving \n", "An [[Action]] is taken by [[/npc/]], involving \n", "A [[New Character]] is introduced, and is involved with \n", "[[Progress]] is made to the thread [['/thread/']], involving ", "A [[Setback]] to the thread [['/thread/']] occurs, involving ", "[['/thread/']] is [[Resolved]] as a result of ", "Something [[Positive]] happens to [[/pc/]], involving \n", "Something [[Negative]] happens to [[/pc/]], involving \n", "Something of [[Ambiguous]] significance occurs, involving \n", "Something [[Positive]] happens to [[/npc/]], involving \n", "Something [[Negative]] happens to [[/npc/]], involving \n");
var _local2:* = new Array("the [[Attainment]] of", "the [[Beginning]] of", "the [[Neglect]] of", "a [[Fight]] over", "the [[Recruitment]] of", "a [[Triumph]] of", "the [[Defeat]] of", "a [[Violation]] of", "the [[Opposition]] of", "[[Malice]] regarding", "the [[Communication]] of", "the [[Persecution]] of", "An [[Increase]] of", "a [[Decrease]] of", "the [[Abandonment]] of", "the [[Gratification]] of", "an [[Inquiry]] about", "the [[Antagonizing]] of", "the [[Movement]] of", "a [[Waste]] of", "a [[Truce]] about", "the [[Release]] of ", "the [[Befriending]] of", "the [[Judgment]] of", "the [[Desertion]] of", "the [[Domination]] of", "[[Procrastination]] over", "the [[Praise]] of", "the [[Separation]] of", "the [[Taking]] of", "the [[Breaking]] of", "the [[Healing]] of", "a [[Delay]] of", "the [[Stopping]] of", "a [[Lie]] about", "the [[Return]] of", "the [[Imitation]] of", "a [[Struggle]] for", "the [[Informing]] of", "the [[Bestowing]] of", "the [[Postponement]] of", "the [[Exposing]] of", "a [[Haggle]] over", "the [[Imprisonment]] of", "the [[Release]] of", "a [[Celebration]] of", "a [[Development]] of", "the [[Travel]] of", "the [[Blocking]] of", "the [[Harm]] of", "the [[Debasement]] of", "the [[Overindulgence]] of", "the [[Adjournment]] of", "[[Adversity]] amid", "the [[Killing]] of", "the [[Disruption]] of", "the [[Usurpation]] of", "the [[Creation]] of", "a [[Betrayal]] of", "an [[Agreement]] about", "an [[Abuse]] of", "the [[Oppression]] of", "an [[Inspection]] of", "an [[Ambush]] and", "the [[Spying]] of", "an [[Attachment]] to", "the [[Carrying]] of", "the [[Opening]] of", "[[Carelessness]] and", "the [[Ruination]] of", "the [[Extravagance]] of", "a [[Trick]] regarding", "the [[Arrival]] of", "a [[Proposition]] regarding", "a [[Division]] of", "a [[Refusal]] of", "the [[Mistrust]] of", "a [[Deception]] regarding", "the [[Cruelty]] of", "[[Intolerance]] of", "the [[Trust]] of", "[[Excitement]] regarding", "the [[Activity]] of", "the [[Assistance]] of", "the [[Care]] of", "the [[Negligence]] of", "a [[Passion]] for", "the [[Hard Work]] of", "the [[Control]] of", "the [[Attraction]] of", "a [[Failure]] of", "the [[Pursuit]] of", "the [[Vengeance]] of", "[[Proceedings]] regarding", "a [[Dispute]] over", "the [[Punishment]] of", "[[Guidance]] regarding", "the [[Transformation]] of", "the [[Overthrow]] of", "the [[Oppression]] of", "a [[Change]] of", "the [[Revelation]] of");
var _local3:* = new Array(" [[Goals]]", " [[Dreams]]", " the [[Environment]]", " the [[Outside]]", " the [[Inside]]", " [[Reality]]", " [[Allies]]", " [[Enemies]]", " [[Evil]]", " [[Good]]", " [[Emotions]]", " [[Opposition]]", " [[War]]", " [[Peace]]", " the [[Innocent]]", " [[Love]]", " the [[Spiritual]]", " the [[intellectual]]", " [[New ideas]]", " [[Joy]]", " [[Messages]]", " [[Energy]]", " [[Balance]]", " [[Tension]]", " [[Friendship]]", " the [[Physical]]", " a [[Project]]", " [[Pleasures]]", " [[Pain]]", " [[Possessions]]", " [[Benefits]]", " [[Plans]]", " [[Lies]]", " [[Expectations]]", " [[Legal Matters]]", " [[Bureaucracy]]", " [[Business]]", " a [[Path]]", " [[News]]", " [[Exterior Factors]]", " [[Advice]]", " a [[Plot]]", " [[Competition]]", " a [[Prison]]", " an [[Illness]]", " [[Food]]", " [[Attention]]", " [[Success]]", " [[Failure]]", " [[Travel]]", " [[Jealousy]]", " a [[Dispute]]", " [[Home]]", " an [[Investment]]", " [[Suffering]]", " [[Wishes]]", " [[Tactics]]", " a [[Stalemate]]", " [[Randomness]]", " [[Misfortune]]", " [[Death]]", " a [[Disruption]]", " [[Power]]", " a [[Burden]]", " [[Intrigues]]", " [[Fears]]", " an [[Ambush]]", " a [[Rumor]]", " [[Wounds]]", " [[Extravagance]]", " a [[Representative]]", " [[Adversities]]", " [[Opulence]]", " [[Liberty]]", " the [[Military]]", " the [[Mundane]]", " [[Trials]]", " the [[Masses]]", " a [[Vehicle]]", " [[Art]]", " [[Victory]]", " a [[Dispute]]", " [[Riches]]", " the [[Status Quo]]", " [[Technology]]", " [[Hope]]", " [[Magic]]", " [[Illusions]]", " [[Portals]]", " [[Danger]]", " [[Weapons]]", " [[Animals]]", " [[Weather]]", " [[Elements]]", " [[Nature]]", " [[The public]]", " [[Leadership]]", " [[Fame]]", " [[Anger]]", " [[Information]]", " a [[Hero]]", " a [[World]]", " a [[Kitty]]");
var _local4:* = randrange(0, (_local1.length - 1));
var _local5:* = randrange(0, (_local2.length - 1));
var _local6:* = randrange(0, (_local2.length - 1));
var _local7:* = randomplayer();
var _local8:* = randomnpc();
var _local9:* = randomthread();
trace(_local7);
trace(_local8);
trace(_local9);
var _local10:* = ((_local1[_local4] + _local2[_local5]) + _local3[_local6]);
_local10 = _local10.replace("/pc/", _local7);
_local10 = _local10.replace("/npc/", _local8);
_local10 = _local10.replace("/thread/", _local9);
var _local11:* = new Array(new Array(0, 0), new Array(0, 0), new Array(0, 0), new Array(0, 0), new Array(0, 0));
var _local12:* = 0;
while (_local12 < 5) {
_local11[_local12][0] = _local10.indexOf("[[");
_local10 = _local10.replace("[[", "");
_local11[_local12][1] = _local10.indexOf("]]");
_local10 = _local10.replace("]]", "");
_local12++;
};
var _local13:TextFormat = new TextFormat();
_local13.bold = true;
eventbox1.eventfield.text = _local10;
eventbox1.eventfield.wordWrap = true;
_local12 = 0;
while (_local12 < 5) {
if (_local11[_local12][1] > 0){
eventbox1.eventfield.setTextFormat(_local13, _local11[_local12][0], _local11[_local12][1]);
};
_local12++;
};
var _local14:* = new Array("Remote Event:", "Action by /npc/:", "New NPC:", "Progress on '/thread/':", "Setback to '/thread/':", "Resolution of '/thread/':", "Positive for /pc/:", "Negative for /pc/:", "Ambiguous Significance:", "Positive for /npc/:", "Negative for /npc/:");
var _local15:* = ((((("E: " + _local14[_local4]) + " ") + _local2[_local5]) + _local3[_local6]) + "\n");
_local15 = _local15.replace("]]", "");
_local15 = _local15.replace("[[", "");
_local15 = _local15.replace("]]", "");
_local15 = _local15.replace("[[", "");
_local15 = _local15.replace("/pc/", _local7);
_local15 = _local15.replace("/npc/", _local8);
_local15 = _local15.replace("/thread/", _local9);
logfield.text = (_local15 + logfield.text);
savedinfo.data.logfield = logfield.text;
eventbox1.visible = true;
disablebuttons();
}
function __setTab_pc2_Scene1_fields_0(){
pc2.tabIndex = 2;
}
function __setTab_pc3_Scene1_fields_0(){
pc3.tabIndex = 3;
}
function __setTab_pc4_Scene1_fields_0(){
pc4.tabIndex = 4;
}
function __setTab_pc5_Scene1_fields_0(){
pc5.tabIndex = 5;
}
function __setTab_pc6_Scene1_fields_0(){
pc6.tabIndex = 6;
}
function __setTab_pc7_Scene1_fields_0(){
pc7.tabIndex = 7;
}
function __setTab_pc8_Scene1_fields_0(){
pc8.tabIndex = 8;
}
public function askdetailclick(_arg1:MouseEvent):void{
asktype.askyesno1.visible = true;
asktype.askdetail1.visible = false;
asktype.askyesno1down.visible = false;
asktype.askdetail1down.visible = true;
savedinfo.data.asktype = 1;
}
function __setTab_pc1_Scene1_fields_0(){
pc1.tabIndex = 1;
}
public function eventdoneclick(_arg1:MouseEvent):void{
addnewlistitems("eventbox1");
eventbox1.visible = false;
enablebuttons();
}
}
}//package GMEmulatorRU_fla
Section 18
//newlistboxes_21 (GMEmulatorRU_fla.newlistboxes_21)
package GMEmulatorRU_fla {
import flash.display.*;
import flash.text.*;
public dynamic class newlistboxes_21 extends MovieClip {
public var nnpc3:TextField;
public var nnpc4:TextField;
public var nthread1:TextField;
public var nthread2:TextField;
public var nnpc1:TextField;
public var nnpc2:TextField;
public function newlistboxes_21(){
__setTab_nnpc1_newlistboxes_Layer1_0();
__setTab_nnpc2_newlistboxes_Layer1_0();
__setTab_nnpc3_newlistboxes_Layer1_0();
__setTab_nnpc4_newlistboxes_Layer1_0();
__setTab_nthread1_newlistboxes_Layer1_0();
__setTab_nthread2_newlistboxes_Layer1_0();
}
function __setTab_nthread2_newlistboxes_Layer1_0(){
nthread2.tabIndex = 33;
}
function __setTab_nnpc1_newlistboxes_Layer1_0(){
nnpc1.tabIndex = 28;
}
function __setTab_nnpc2_newlistboxes_Layer1_0(){
nnpc2.tabIndex = 29;
}
function __setTab_nnpc3_newlistboxes_Layer1_0(){
nnpc3.tabIndex = 30;
}
function __setTab_nnpc4_newlistboxes_Layer1_0(){
nnpc4.tabIndex = 31;
}
function __setTab_nthread1_newlistboxes_Layer1_0(){
nthread1.tabIndex = 32;
}
}
}//package GMEmulatorRU_fla
Section 19
//questionbox1_19 (GMEmulatorRU_fla.questionbox1_19)
package GMEmulatorRU_fla {
import flash.display.*;
public dynamic class questionbox1_19 extends MovieClip {
public var help2:SimpleButton;
public var done:SimpleButton;
public var newlistboxes:MovieClip;
public function questionbox1_19(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame4(){
stop();
}
function frame3(){
stop();
}
}
}//package GMEmulatorRU_fla
Section 20
//scenebox1_27 (GMEmulatorRU_fla.scenebox1_27)
package GMEmulatorRU_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scenebox1_27 extends MovieClip {
public var help2:SimpleButton;
public var skip1:SimpleButton;
public var pc1:TextField;
public var pc2:TextField;
public var pc3:TextField;
public var pc4:TextField;
public var pc5:TextField;
public var pc6:TextField;
public var pc7:TextField;
public var pc8:TextField;
public var eventfield:TextField;
public var continue1:SimpleButton;
public function scenebox1_27(){
__setTab_pc1_scenebox1_Layer2_0();
__setTab_pc2_scenebox1_Layer2_0();
__setTab_pc3_scenebox1_Layer2_0();
__setTab_pc4_scenebox1_Layer2_0();
__setTab_pc5_scenebox1_Layer2_0();
__setTab_pc6_scenebox1_Layer2_0();
__setTab_pc7_scenebox1_Layer2_0();
__setTab_pc8_scenebox1_Layer2_0();
}
function __setTab_pc8_scenebox1_Layer2_0(){
pc8.tabIndex = 41;
}
function __setTab_pc4_scenebox1_Layer2_0(){
pc4.tabIndex = 37;
}
function __setTab_pc2_scenebox1_Layer2_0(){
pc2.tabIndex = 35;
}
function __setTab_pc6_scenebox1_Layer2_0(){
pc6.tabIndex = 39;
}
function __setTab_pc7_scenebox1_Layer2_0(){
pc7.tabIndex = 40;
}
function __setTab_pc5_scenebox1_Layer2_0(){
pc5.tabIndex = 38;
}
function __setTab_pc1_scenebox1_Layer2_0(){
pc1.tabIndex = 34;
}
function __setTab_pc3_scenebox1_Layer2_0(){
pc3.tabIndex = 36;
}
}
}//package GMEmulatorRU_fla
Section 21
//scenebox2_30 (GMEmulatorRU_fla.scenebox2_30)
package GMEmulatorRU_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scenebox2_30 extends MovieClip {
public var help2:SimpleButton;
public var eventfield:TextField;
public var thread2:TextField;
public var thread3:TextField;
public var continue1:SimpleButton;
public var npc1:TextField;
public var thread4:TextField;
public var npc3:TextField;
public var npc4:TextField;
public var npc5:TextField;
public var npc6:TextField;
public var npc7:TextField;
public var npc8:TextField;
public var npc2:TextField;
public var thread1:TextField;
public function scenebox2_30(){
__setTab_npc1_scenebox2_Layer1_0();
__setTab_npc2_scenebox2_Layer1_0();
__setTab_npc3_scenebox2_Layer1_0();
__setTab_npc4_scenebox2_Layer1_0();
__setTab_npc5_scenebox2_Layer1_0();
__setTab_npc6_scenebox2_Layer1_0();
__setTab_npc7_scenebox2_Layer1_0();
__setTab_npc8_scenebox2_Layer1_0();
__setTab_thread1_scenebox2_Layer1_0();
__setTab_thread2_scenebox2_Layer1_0();
__setTab_thread3_scenebox2_Layer1_0();
__setTab_thread4_scenebox2_Layer1_0();
}
function __setTab_npc1_scenebox2_Layer1_0(){
npc1.tabIndex = 42;
}
function __setTab_npc2_scenebox2_Layer1_0(){
npc2.tabIndex = 43;
}
function __setTab_thread2_scenebox2_Layer1_0(){
thread2.tabIndex = 51;
}
function __setTab_npc8_scenebox2_Layer1_0(){
npc8.tabIndex = 49;
}
function __setTab_npc7_scenebox2_Layer1_0(){
npc7.tabIndex = 48;
}
function __setTab_npc5_scenebox2_Layer1_0(){
npc5.tabIndex = 46;
}
function __setTab_npc3_scenebox2_Layer1_0(){
npc3.tabIndex = 44;
}
function __setTab_thread3_scenebox2_Layer1_0(){
thread3.tabIndex = 52;
}
function __setTab_thread1_scenebox2_Layer1_0(){
thread1.tabIndex = 50;
}
function __setTab_npc6_scenebox2_Layer1_0(){
npc6.tabIndex = 47;
}
function __setTab_npc4_scenebox2_Layer1_0(){
npc4.tabIndex = 45;
}
function __setTab_thread4_scenebox2_Layer1_0(){
thread4.tabIndex = 53;
}
}
}//package GMEmulatorRU_fla
Section 22
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
}
}//package
Section 23
//RadioButton_disabledIcon (RadioButton_disabledIcon)
package {
import flash.display.*;
public dynamic class RadioButton_disabledIcon extends MovieClip {
}
}//package
Section 24
//RadioButton_downIcon (RadioButton_downIcon)
package {
import flash.display.*;
public dynamic class RadioButton_downIcon extends MovieClip {
}
}//package
Section 25
//RadioButton_overIcon (RadioButton_overIcon)
package {
import flash.display.*;
public dynamic class RadioButton_overIcon extends MovieClip {
}
}//package
Section 26
//RadioButton_selectedDisabledIcon (RadioButton_selectedDisabledIcon)
package {
import flash.display.*;
public dynamic class RadioButton_selectedDisabledIcon extends MovieClip {
}
}//package
Section 27
//RadioButton_selectedDownIcon (RadioButton_selectedDownIcon)
package {
import flash.display.*;
public dynamic class RadioButton_selectedDownIcon extends MovieClip {
}
}//package
Section 28
//RadioButton_selectedOverIcon (RadioButton_selectedOverIcon)
package {
import flash.display.*;
public dynamic class RadioButton_selectedOverIcon extends MovieClip {
}
}//package
Section 29
//RadioButton_selectedUpIcon (RadioButton_selectedUpIcon)
package {
import flash.display.*;
public dynamic class RadioButton_selectedUpIcon extends MovieClip {
}
}//package
Section 30
//RadioButton_upIcon (RadioButton_upIcon)
package {
import flash.display.*;
public dynamic class RadioButton_upIcon extends MovieClip {
}
}//package