Section 1
//BaseScrollPane (fl.containers.BaseScrollPane)
package fl.containers {
import flash.display.*;
import flash.events.*;
import fl.core.*;
import fl.controls.*;
import flash.geom.*;
import fl.events.*;
public class BaseScrollPane extends UIComponent {
protected var contentHeight:Number;// = 0
protected var _horizontalScrollBar:ScrollBar;
protected var _horizontalPageScrollSize:Number;// = 0
protected var _verticalPageScrollSize:Number;// = 0
protected var _maxHorizontalScrollPosition:Number;// = 0
protected var defaultLineScrollSize:Number;// = 4
protected var vOffset:Number;// = 0
protected var contentScrollRect:Rectangle;
protected var background:DisplayObject;
protected var _verticalScrollBar:ScrollBar;
protected var disabledOverlay:Shape;
protected var vScrollBar:Boolean;
protected var _horizontalScrollPolicy:String;
protected var useFixedHorizontalScrolling:Boolean;// = false
protected var contentWidth:Number;// = 0
protected var availableHeight:Number;
protected var _verticalScrollPolicy:String;
protected var contentPadding:Number;// = 0
protected var _useBitmpScrolling:Boolean;// = false
protected var availableWidth:Number;
protected var hScrollBar:Boolean;
protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5};
override public function set enabled(_arg1:Boolean):void{
if (enabled == _arg1){
return;
};
_verticalScrollBar.enabled = _arg1;
_horizontalScrollBar.enabled = _arg1;
super.enabled = _arg1;
}
public function set useBitmapScrolling(_arg1:Boolean):void{
_useBitmpScrolling = _arg1;
invalidate(InvalidationType.STATE);
}
public function set horizontalLineScrollSize(_arg1:Number):void{
_horizontalScrollBar.lineScrollSize = _arg1;
}
protected function drawLayout():void{
calculateAvailableSize();
calculateContentWidth();
background.width = width;
background.height = height;
if (vScrollBar){
_verticalScrollBar.visible = true;
_verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding);
_verticalScrollBar.y = contentPadding;
_verticalScrollBar.height = availableHeight;
} else {
_verticalScrollBar.visible = false;
};
_verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize);
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
if (hScrollBar){
_horizontalScrollBar.visible = true;
_horizontalScrollBar.x = contentPadding;
_horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding);
_horizontalScrollBar.width = availableWidth;
} else {
_horizontalScrollBar.visible = false;
};
_horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize);
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
drawDisabledOverlay();
}
protected function handleWheel(_arg1:MouseEvent):void{
if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){
return;
};
_verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize));
setVerticalScrollPosition(_verticalScrollBar.scrollPosition);
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition));
}
protected function handleScroll(_arg1:ScrollEvent):void{
if (_arg1.target == _verticalScrollBar){
setVerticalScrollPosition(_arg1.position);
} else {
setHorizontalScrollPosition(_arg1.position);
};
}
public function get verticalLineScrollSize():Number{
return (_verticalScrollBar.lineScrollSize);
}
protected function drawBackground():void{
var _local1:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue("skin"));
background.width = width;
background.height = height;
addChildAt(background, 0);
if (((!((_local1 == null))) && (!((_local1 == background))))){
removeChild(_local1);
};
}
protected function calculateAvailableSize():void{
var _local1:Number = ScrollBar.WIDTH;
var _local2:Number = (contentPadding = Number(getStyleValue("contentPadding")));
var _local3:Number = ((height - (2 * _local2)) - vOffset);
vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3)))));
var _local4:Number = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2));
var _local5:Number = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4);
hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0)))));
if (hScrollBar){
_local3 = (_local3 - _local1);
};
if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){
vScrollBar = true;
_local4 = (_local4 - _local1);
};
availableHeight = (_local3 + vOffset);
availableWidth = _local4;
}
public function get verticalScrollPosition():Number{
return (_verticalScrollBar.scrollPosition);
}
public function get horizontalScrollPolicy():String{
return (_horizontalScrollPolicy);
}
protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
public function get horizontalPageScrollSize():Number{
if (isNaN(availableWidth)){
drawNow();
};
return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize);
}
public function set horizontalScrollPosition(_arg1:Number):void{
drawNow();
_horizontalScrollBar.scrollPosition = _arg1;
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
}
public function set verticalLineScrollSize(_arg1:Number):void{
_verticalScrollBar.lineScrollSize = _arg1;
}
public function get maxVerticalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentHeight - availableHeight)));
}
public function set horizontalPageScrollSize(_arg1:Number):void{
_horizontalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES)){
setStyles();
drawBackground();
if (contentPadding != getStyleValue("contentPadding")){
invalidate(InvalidationType.SIZE, false);
};
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){
drawLayout();
};
updateChildren();
super.draw();
}
public function get horizontalScrollBar():ScrollBar{
return (_horizontalScrollBar);
}
protected function calculateContentWidth():void{
}
public function set horizontalScrollPolicy(_arg1:String):void{
_horizontalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
override protected function configUI():void{
super.configUI();
contentScrollRect = new Rectangle(0, 0, 85, 85);
_verticalScrollBar = new ScrollBar();
_verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_verticalScrollBar.visible = false;
_verticalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_verticalScrollBar);
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
_horizontalScrollBar = new ScrollBar();
_horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL;
_horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_horizontalScrollBar.visible = false;
_horizontalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_horizontalScrollBar);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
disabledOverlay = new Shape();
var _local1:Graphics = disabledOverlay.graphics;
_local1.beginFill(0xFFFFFF);
_local1.drawRect(0, 0, width, height);
_local1.endFill();
addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true);
}
protected function drawDisabledOverlay():void{
if (enabled){
if (contains(disabledOverlay)){
removeChild(disabledOverlay);
};
} else {
disabledOverlay.x = (disabledOverlay.y = contentPadding);
disabledOverlay.width = availableWidth;
disabledOverlay.height = availableHeight;
disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number);
addChild(disabledOverlay);
};
}
public function get horizontalScrollPosition():Number{
return (_horizontalScrollBar.scrollPosition);
}
public function get verticalScrollBar():ScrollBar{
return (_verticalScrollBar);
}
public function get horizontalLineScrollSize():Number{
return (_horizontalScrollBar.lineScrollSize);
}
public function set verticalScrollPosition(_arg1:Number):void{
drawNow();
_verticalScrollBar.scrollPosition = _arg1;
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
}
protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
protected function setStyles():void{
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
}
public function set verticalPageScrollSize(_arg1:Number):void{
_verticalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
protected function setContentSize(_arg1:Number, _arg2:Number):void{
if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){
return;
};
contentWidth = _arg1;
contentHeight = _arg2;
invalidate(InvalidationType.SIZE);
}
public function set verticalScrollPolicy(_arg1:String):void{
_verticalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get maxHorizontalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentWidth - availableWidth)));
}
protected function updateChildren():void{
_verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled);
_verticalScrollBar.drawNow();
_horizontalScrollBar.drawNow();
}
public function get verticalPageScrollSize():Number{
if (isNaN(availableHeight)){
drawNow();
};
return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize);
}
public function get verticalScrollPolicy():String{
return (_verticalScrollPolicy);
}
public function get useBitmapScrolling():Boolean{
return (_useBitmpScrolling);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.containers
Section 2
//ScrollPane (fl.containers.ScrollPane)
package fl.containers {
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.core.*;
import fl.controls.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import fl.events.*;
public class ScrollPane extends BaseScrollPane implements IFocusManagerComponent {
protected var scrollDragHPos:Number;
protected var loader:Loader;
protected var xOffset:Number;
protected var _source:Object;// = ""
protected var scrollDragVPos:Number;
protected var _scrollDrag:Boolean;// = false
protected var currentContent:Object;
protected var contentClip:Sprite;
protected var yOffset:Number;
private static var defaultStyles:Object = {upSkin:"ScrollPane_upSkin", disabledSkin:"ScrollPane_disabledSkin", focusRectSkin:null, focusRectPadding:null, contentPadding:0};
protected function clearContent():void{
if (contentClip.numChildren == 0){
return;
};
contentClip.removeChildAt(0);
currentContent = null;
if (loader != null){
try {
loader.close();
} catch(e) {
};
try {
loader.unload();
} catch(e) {
};
loader = null;
};
}
protected function passEvent(_arg1:Event):void{
dispatchEvent(_arg1);
}
protected function calculateAvailableHeight():Number{
var _local1:Number = Number(getStyleValue("contentPadding"));
return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0));
}
override protected function drawLayout():void{
super.drawLayout();
contentScrollRect = contentClip.scrollRect;
contentScrollRect.width = availableWidth;
contentScrollRect.height = availableHeight;
contentClip.cacheAsBitmap = useBitmapScrolling;
contentClip.scrollRect = contentScrollRect;
contentClip.x = (contentClip.y = contentPadding);
}
public function get bytesTotal():Number{
return (((((loader == null)) || ((loader.contentLoaderInfo == null)))) ? 0 : loader.contentLoaderInfo.bytesTotal);
}
public function get source():Object{
return (_source);
}
override protected function handleScroll(_arg1:ScrollEvent):void{
passEvent(_arg1);
super.handleScroll(_arg1);
}
protected function onContentLoad(_arg1:Event):void{
update();
var _local2:* = calculateAvailableHeight();
calculateAvailableSize();
horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), availableWidth);
verticalScrollBar.setScrollProperties(_local2, 0, (contentHeight - _local2), _local2);
passEvent(_arg1);
}
public function get scrollDrag():Boolean{
return (_scrollDrag);
}
protected function setScrollDrag():void{
if (_scrollDrag){
contentClip.addEventListener(MouseEvent.MOUSE_DOWN, doStartDrag, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, endDrag, false, 0, true);
} else {
contentClip.removeEventListener(MouseEvent.MOUSE_DOWN, doStartDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, endDrag);
removeEventListener(MouseEvent.MOUSE_MOVE, doDrag);
};
contentClip.buttonMode = _scrollDrag;
}
public function get percentLoaded():Number{
if (loader != null){
return (Math.round(((bytesLoaded / bytesTotal) * 100)));
};
return (0);
}
override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:* = contentClip.scrollRect;
_local3.y = _arg1;
contentClip.scrollRect = _local3;
}
protected function endDrag(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, doDrag);
}
override protected function drawBackground():void{
var _local1:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue((enabled) ? "upSkin" : "disabledSkin"));
background.width = width;
background.height = height;
addChildAt(background, 0);
if (((!((_local1 == null))) && (!((_local1 == background))))){
removeChild(_local1);
};
}
public function set source(_arg1:Object):void{
var _local2:*;
clearContent();
if (isLivePreview){
return;
};
_source = _arg1;
if ((((_source == "")) || ((_source == null)))){
return;
};
currentContent = getDisplayObjectInstance(_arg1);
if (currentContent != null){
_local2 = contentClip.addChild((currentContent as DisplayObject));
dispatchEvent(new Event(Event.INIT));
update();
} else {
load(new URLRequest(_source.toString()));
};
}
public function set scrollDrag(_arg1:Boolean):void{
_scrollDrag = _arg1;
invalidate(InvalidationType.STATE);
}
protected function initLoader():void{
loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleError, false, 0, true);
loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleError, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.OPEN, passEvent, false, 0, true);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, passEvent, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onContentLoad, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.INIT, passEvent, false, 0, true);
loader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, passEvent, false, 0, true);
contentClip.addChild(loader);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES)){
drawBackground();
};
if (isInvalid(InvalidationType.STATE)){
setScrollDrag();
};
super.draw();
}
protected function clearLoadEvents():void{
loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleError);
loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, handleError);
loader.contentLoaderInfo.removeEventListener(Event.OPEN, passEvent);
loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, passEvent);
loader.contentLoaderInfo.removeEventListener(HTTPStatusEvent.HTTP_STATUS, passEvent);
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onContentLoad);
}
protected function handleError(_arg1:Event):void{
passEvent(_arg1);
clearLoadEvents();
loader.contentLoaderInfo.removeEventListener(Event.INIT, handleInit);
}
public function get bytesLoaded():Number{
return (((((loader == null)) || ((loader.contentLoaderInfo == null)))) ? 0 : loader.contentLoaderInfo.bytesLoaded);
}
override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:* = contentClip.scrollRect;
_local3.x = _arg1;
contentClip.scrollRect = _local3;
}
override protected function configUI():void{
super.configUI();
contentClip = new Sprite();
addChild(contentClip);
contentClip.scrollRect = contentScrollRect;
_horizontalScrollPolicy = ScrollPolicy.AUTO;
_verticalScrollPolicy = ScrollPolicy.AUTO;
}
protected function handleInit(_arg1:Event):void{
loader.contentLoaderInfo.removeEventListener(Event.INIT, handleInit);
passEvent(_arg1);
invalidate(InvalidationType.SIZE);
}
public function update():void{
var _local1:DisplayObject = contentClip.getChildAt(0);
setContentSize(_local1.width, _local1.height);
}
public function refreshPane():void{
if ((_source is URLRequest)){
_source = _source.url;
};
source = _source;
}
public function load(_arg1:URLRequest, _arg2:LoaderContext=null):void{
if (_arg2 == null){
_arg2 = new LoaderContext(false, ApplicationDomain.currentDomain);
};
clearContent();
initLoader();
currentContent = (_source = _arg1);
loader.load(_arg1, _arg2);
}
protected function doStartDrag(_arg1:MouseEvent):void{
if (!enabled){
return;
};
xOffset = mouseX;
yOffset = mouseY;
scrollDragHPos = horizontalScrollPosition;
scrollDragVPos = verticalScrollPosition;
stage.addEventListener(MouseEvent.MOUSE_MOVE, doDrag, false, 0, true);
}
protected function doDrag(_arg1:MouseEvent):void{
var _local2:* = (scrollDragVPos - (mouseY - yOffset));
_verticalScrollBar.setScrollPosition(_local2);
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, true);
var _local3:* = (scrollDragHPos - (mouseX - xOffset));
_horizontalScrollBar.setScrollPosition(_local3);
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, true);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local2:int = calculateAvailableHeight();
switch (_arg1.keyCode){
case Keyboard.DOWN:
verticalScrollPosition++;
break;
case Keyboard.UP:
verticalScrollPosition--;
break;
case Keyboard.RIGHT:
horizontalScrollPosition++;
break;
case Keyboard.LEFT:
horizontalScrollPosition--;
break;
case Keyboard.END:
verticalScrollPosition = maxVerticalScrollPosition;
break;
case Keyboard.HOME:
verticalScrollPosition = 0;
break;
case Keyboard.PAGE_UP:
verticalScrollPosition = (verticalScrollPosition - _local2);
break;
case Keyboard.PAGE_DOWN:
verticalScrollPosition = (verticalScrollPosition + _local2);
break;
};
}
public function get content():DisplayObject{
var _local1:Object = currentContent;
if ((_local1 is URLRequest)){
_local1 = loader.content;
};
return ((_local1 as DisplayObject));
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition()));
}
}
}//package fl.containers
Section 3
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import flash.display.*;
import flash.events.*;
import fl.core.*;
import flash.utils.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var pressTimer:Timer;
protected var _autoRepeat:Boolean;// = false
protected var _selected:Boolean;// = false
protected var background:DisplayObject;
private var unlockedMouseState:String;
protected var mouseState:String;
private var _mouseStateLocked: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(){
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
override public function get enabled():Boolean{
return (super.enabled);
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
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 drawLayout():void{
background.width = width;
background.height = height;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
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();
};
};
};
}
protected function drawBackground():void{
var _local1:String = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
var _local2:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
public function get selected():Boolean{
return (_selected);
}
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 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 selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
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 setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 4
//Button (fl.controls.Button)
package fl.controls {
import flash.display.*;
import fl.managers.*;
import fl.core.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var _emphasized:Boolean;// = false
protected var emphasizedBorder:DisplayObject;
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
protected function drawEmphasized():void{
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
var _local1:Object = 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 function get emphasized():Boolean{
return (_emphasized);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
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 static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 5
//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 6
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.core.*;
import flash.text.*;
import flash.ui.*;
import fl.events.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
protected var _toggle:Boolean;// = false
public var textField:TextField;
protected var mode:String;// = "center"
protected var _labelPlacement:String;// = "right"
protected var oldMouseState:String;
protected var _label:String;// = "Label"
protected var icon:DisplayObject;
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;
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();
}
override protected function drawLayout():void{
var _local7:Number;
var _local8:Number;
var _local1:Number = Number(getStyleValue("textPadding"));
var _local2:String = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
var _local3:Number = (textField.textWidth + 4);
var _local4:Number = (textField.textHeight + 4);
var _local5:Number = ((icon)==null) ? 0 : (icon.width + _local1);
var _local6:Number = ((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();
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
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));
};
}
public function get labelPlacement():String{
return (_labelPlacement);
}
public function get toggle():Boolean{
return (_toggle);
}
protected function setEmbedFont(){
var _local1:Object = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
protected function drawIcon():void{
var _local1:DisplayObject = icon;
var _local2:String = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
var _local3:Object = 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);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
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);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
protected function drawTextFormat():void{
var _local1:Object = UIComponent.getStyleDefinition();
var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
public function get label():String{
return (_label);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 7
//ScrollBar (fl.controls.ScrollBar)
package fl.controls {
import flash.events.*;
import fl.core.*;
import fl.events.*;
public class ScrollBar extends UIComponent {
private var _direction:String;// = "vertical"
private var _minScrollPosition:Number;// = 0
private var _pageSize:Number;// = 10
private var _maxScrollPosition:Number;// = 0
protected var downArrow:BaseButton;
private var _lineScrollSize:Number;// = 1
protected var upArrow:BaseButton;
private var _scrollPosition:Number;// = 0
private var thumbScrollOffset:Number;
protected var track:BaseButton;
protected var thumb:LabelButton;
protected var inDrag:Boolean;// = false
private var _pageScrollSize:Number;// = 0
protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0};
public static const WIDTH:Number = 15;
protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35};
public function ScrollBar(){
setStyles();
focusEnabled = false;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition))))));
updateThumb();
}
override public function setSize(_arg1:Number, _arg2:Number):void{
if (_direction == ScrollBarDirection.HORIZONTAL){
super.setSize(_arg2, _arg1);
} else {
super.setSize(_arg1, _arg2);
};
}
public function set lineScrollSize(_arg1:Number):void{
if (_arg1 > 0){
_lineScrollSize = _arg1;
};
}
public function get minScrollPosition():Number{
return (_minScrollPosition);
}
protected function updateThumb():void{
var _local1:Number = ((_maxScrollPosition - _minScrollPosition) + _pageSize);
if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){
thumb.height = 12;
thumb.visible = false;
} else {
thumb.height = Math.max(13, ((_pageSize / _local1) * track.height));
thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition))));
thumb.visible = enabled;
};
}
public function set minScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _arg1, _maxScrollPosition);
}
public function get lineScrollSize():Number{
return (_lineScrollSize);
}
public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{
var _local3:Number = scrollPosition;
_scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1));
if (_local3 == _scrollPosition){
return;
};
if (_arg2){
dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition));
};
updateThumb();
}
public function get maxScrollPosition():Number{
return (_maxScrollPosition);
}
public function get scrollPosition():Number{
return (_scrollPosition);
}
override public function get height():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height);
}
public function get pageSize():Number{
return (_pageSize);
}
public function set maxScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _minScrollPosition, _arg1);
}
protected function thumbReleaseHandler(_arg1:MouseEvent):void{
inDrag = false;
mouseChildren = true;
thumb.mouseStateLocked = false;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler);
}
public function set pageScrollSize(_arg1:Number):void{
if (_arg1 >= 0){
_pageScrollSize = _arg1;
};
}
public function set scrollPosition(_arg1:Number):void{
setScrollPosition(_arg1, true);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
var _local1:Number;
if (isInvalid(InvalidationType.SIZE)){
_local1 = super.height;
downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height)));
track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height))));
updateThumb();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
setStyles();
};
downArrow.drawNow();
upArrow.drawNow();
track.drawNow();
thumb.drawNow();
validate();
}
override public function get width():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width);
}
override protected function configUI():void{
super.configUI();
track = new BaseButton();
track.move(0, 14);
track.useHandCursor = false;
track.autoRepeat = true;
track.focusEnabled = false;
addChild(track);
thumb = new LabelButton();
thumb.label = "";
thumb.setSize(WIDTH, 15);
thumb.move(0, 15);
thumb.focusEnabled = false;
addChild(thumb);
downArrow = new BaseButton();
downArrow.setSize(WIDTH, 14);
downArrow.autoRepeat = true;
downArrow.focusEnabled = false;
addChild(downArrow);
upArrow = new BaseButton();
upArrow.setSize(WIDTH, 14);
upArrow.move(0, 0);
upArrow.autoRepeat = true;
upArrow.focusEnabled = false;
addChild(upArrow);
upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true);
enabled = false;
}
public function set pageSize(_arg1:Number):void{
if (_arg1 > 0){
_pageSize = _arg1;
};
}
public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
this.pageSize = _arg1;
_minScrollPosition = _arg2;
_maxScrollPosition = _arg3;
if (_arg4 >= 0){
_pageScrollSize = _arg4;
};
enabled = (_maxScrollPosition > _minScrollPosition);
setScrollPosition(_scrollPosition, false);
updateThumb();
}
public function get pageScrollSize():Number{
return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize);
}
protected function handleThumbDrag(_arg1:MouseEvent):void{
var _local2:Number = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset)));
setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition));
}
protected function setStyles():void{
copyStylesToChild(downArrow, DOWN_ARROW_STYLES);
copyStylesToChild(thumb, THUMB_STYLES);
copyStylesToChild(track, TRACK_STYLES);
copyStylesToChild(upArrow, UP_ARROW_STYLES);
}
protected function scrollPressHandler(_arg1:ComponentEvent):void{
var _local2:Number;
var _local3:Number;
_arg1.stopImmediatePropagation();
if (_arg1.currentTarget == upArrow){
setScrollPosition((_scrollPosition - _lineScrollSize));
} else {
if (_arg1.currentTarget == downArrow){
setScrollPosition((_scrollPosition + _lineScrollSize));
} else {
_local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition);
_local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize;
if (_scrollPosition < _local2){
setScrollPosition(Math.min(_local2, (_scrollPosition + _local3)));
} else {
if (_scrollPosition > _local2){
setScrollPosition(Math.max(_local2, (_scrollPosition - _local3)));
};
};
};
};
}
protected function thumbPressHandler(_arg1:MouseEvent):void{
inDrag = true;
thumbScrollOffset = (mouseY - thumb.y);
thumb.mouseStateLocked = true;
mouseChildren = false;
stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true);
}
public function set direction(_arg1:String):void{
if (_direction == _arg1){
return;
};
_direction = _arg1;
if (isLivePreview){
return;
};
setScaleY(1);
var _local2 = (_direction == ScrollBarDirection.HORIZONTAL);
if (((_local2) && (componentInspectorSetting))){
if (rotation == 90){
return;
};
setScaleX(-1);
rotation = -90;
};
if (!componentInspectorSetting){
if (((_local2) && ((rotation == 0)))){
rotation = -90;
setScaleX(-1);
} else {
if (((!(_local2)) && ((rotation == -90)))){
rotation = 0;
setScaleX(1);
};
};
};
invalidate(InvalidationType.SIZE);
}
public function get direction():String{
return (_direction);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 8
//ScrollBarDirection (fl.controls.ScrollBarDirection)
package fl.controls {
public class ScrollBarDirection {
public static const HORIZONTAL:String = "horizontal";
public static const VERTICAL:String = "vertical";
}
}//package fl.controls
Section 9
//ScrollPolicy (fl.controls.ScrollPolicy)
package fl.controls {
public class ScrollPolicy {
public static const OFF:String = "off";
public static const ON:String = "on";
public static const AUTO:String = "auto";
}
}//package fl.controls
Section 10
//TextInput (fl.controls.TextInput)
package fl.controls {
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.core.*;
import flash.text.*;
import flash.ui.*;
import fl.events.*;
public class TextInput extends UIComponent implements IFocusManagerComponent {
protected var _html:Boolean;// = false
protected var background:DisplayObject;
protected var _savedHTML:String;
protected var _editable:Boolean;// = true
public var textField:TextField;
private static var defaultStyles:Object = {upSkin:"TextInput_upSkin", disabledSkin:"TextInput_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:0, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function set alwaysShowSelection(_arg1:Boolean):void{
textField.alwaysShowSelection = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
updateTextFieldType();
}
public function get imeMode():String{
return (_imeMode);
}
protected function handleChange(_arg1:Event):void{
_arg1.stopPropagation();
dispatchEvent(new Event(Event.CHANGE, true));
}
public function set imeMode(_arg1:String):void{
_imeMode = _arg1;
}
protected function setEmbedFont(){
var _local1:Object = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
protected function drawLayout():void{
var _local1:Number = Number(getStyleValue("textPadding"));
if (background != null){
background.width = width;
background.height = height;
};
textField.width = (width - (2 * _local1));
textField.height = (height - (2 * _local1));
textField.x = (textField.y = _local1);
}
public function set condenseWhite(_arg1:Boolean):void{
textField.condenseWhite = _arg1;
}
public function get textWidth():Number{
return (textField.textWidth);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
super.focusOutHandler(_arg1);
if (editable){
setIMEMode(false);
};
}
override public function setFocus():void{
stage.focus = textField;
}
public function set displayAsPassword(_arg1:Boolean):void{
textField.displayAsPassword = _arg1;
}
protected function drawBackground():void{
var _local1:DisplayObject = background;
var _local2:String = (enabled) ? "upSkin" : "disabledSkin";
background = getDisplayObjectInstance(getStyleValue(_local2));
if (background == null){
return;
};
addChildAt(background, 0);
if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){
removeChild(_local1);
};
}
public function get text():String{
return (textField.text);
}
public function set maxChars(_arg1:int):void{
textField.maxChars = _arg1;
}
public function set horizontalScrollPosition(_arg1:int):void{
textField.scrollH = _arg1;
}
override protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((((_arg1 == textField)) || (super.isOurFocus(_arg1))));
}
public function get textHeight():Number{
return (textField.textHeight);
}
public function get restrict():String{
return (textField.restrict);
}
public function get alwaysShowSelection():Boolean{
return (textField.alwaysShowSelection);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
var _local1:Object;
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawTextFormat();
drawBackground();
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
updateTextFieldType();
}
public function setSelection(_arg1:int, _arg2:int):void{
textField.setSelection(_arg1, _arg2);
}
public function get condenseWhite():Boolean{
return (textField.condenseWhite);
}
public function get displayAsPassword():Boolean{
return (textField.displayAsPassword);
}
public function get selectionBeginIndex():int{
return (textField.selectionBeginIndex);
}
override protected function configUI():void{
super.configUI();
tabChildren = true;
textField = new TextField();
addChild(textField);
updateTextFieldType();
textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true);
textField.addEventListener(Event.CHANGE, handleChange, false, 0, true);
textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true);
}
public function get maxChars():int{
return (textField.maxChars);
}
public function set text(_arg1:String):void{
textField.text = _arg1;
_html = false;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
}
protected function updateTextFieldType():void{
textField.type = (((enabled) && (editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC;
textField.selectable = enabled;
}
protected function handleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true));
};
}
public function get horizontalScrollPosition():int{
return (textField.scrollH);
}
public function get selectionEndIndex():int{
return (textField.selectionEndIndex);
}
public function get editable():Boolean{
return (_editable);
}
public function get maxHorizontalScrollPosition():int{
return (textField.maxScrollH);
}
public function appendText(_arg1:String):void{
textField.appendText(_arg1);
}
protected function drawTextFormat():void{
var _local1:Object = UIComponent.getStyleDefinition();
var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
if (_html){
textField.htmlText = _savedHTML;
};
}
public function get length():int{
return (textField.length);
}
public function set htmlText(_arg1:String):void{
if (_arg1 == ""){
text = "";
return;
};
_html = true;
_savedHTML = _arg1;
textField.htmlText = _arg1;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
}
protected function handleTextInput(_arg1:TextEvent):void{
_arg1.stopPropagation();
dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text));
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
textField.restrict = _arg1;
}
public function getLineMetrics(_arg1:int):TextLineMetrics{
return (textField.getLineMetrics(_arg1));
}
override public function drawFocus(_arg1:Boolean):void{
if (focusTarget != null){
focusTarget.drawFocus(_arg1);
return;
};
super.drawFocus(_arg1);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
if (_arg1.target == this){
stage.focus = textField;
};
var _local2:IFocusManager = focusManager;
if (((editable) && (_local2))){
_local2.showFocusIndicator = true;
if (((textField.selectable) && ((textField.selectionBeginIndex == textField.selectionBeginIndex)))){
setSelection(0, textField.length);
};
};
super.focusInHandler(_arg1);
if (editable){
setIMEMode(true);
};
}
public function get htmlText():String{
return (textField.htmlText);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 11
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 12
//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 13
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
import fl.events.*;
public class UIComponent extends Sprite {
protected var _x:Number;
protected var _enabled:Boolean;// = true
protected var callLaterMethods:Dictionary;
private var _mouseFocusEnabled:Boolean;// = true
private var tempText:TextField;
private var _focusEnabled:Boolean;// = true
protected var startHeight:Number;
protected var _height:Number;
protected var invalidateFlag:Boolean;// = false
protected var _oldIMEMode:String;// = null
protected var _inspector:Boolean;// = false
protected var startWidth:Number;
public var focusTarget:IFocusManagerComponent;
protected var errorCaught:Boolean;// = false
protected var invalidHash:Object;
protected var sharedStyles:Object;
protected var uiFocusRect:DisplayObject;
protected var isLivePreview:Boolean;// = false
protected var _imeMode:String;// = null
protected var _width:Number;
protected var instanceStyles:Object;
public var version:String;// = "3.0.0.16"
protected var isFocused:Boolean;// = false
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(){
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 getStyle(_arg1:String):Object{
return (instanceStyles[_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"));
}
private function callLaterDispatcher(_arg1:Event):void{
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;
var _local2:Dictionary = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
protected function validate():void{
invalidHash = {};
}
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);
}
override public function get height():Number{
return (_height);
}
private function addedHandler(_arg1:Event):void{
removeEventListener("addedToStage", addedHandler);
initializeFocusManager();
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
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{
}
override public function get scaleY():Number{
return ((height / startHeight));
}
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;
};
};
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
protected function configUI():void{
isLivePreview = checkLivePreview();
var _local1:Number = rotation;
rotation = 0;
var _local2:Number = super.width;
var _local3:Number = 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 setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
override public function get scaleX():Number{
return ((width / startWidth));
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
private function initializeFocusManager():void{
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
};
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
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 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);
}
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 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);
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
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);
};
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
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 skin = _arg1;
var classDef:Object;
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 initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function get focusManager():IFocusManager{
var _local1:DisplayObject = 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);
}
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);
};
}
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();
}
override public function set visible(_arg1:Boolean):void{
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
var _local2:String = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
protected function createFocusManager():void{
if (focusManagers[stage] == null){
focusManagers[stage] = new FocusManager(stage);
};
}
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 y(_arg1:Number):void{
move(_x, _arg1);
}
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);
};
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
public function drawNow():void{
draw();
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local5:Object;
var _local6:String;
var _local2:Object = {};
var _local3:uint = _args.length;
var _local4:uint;
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 14
//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 15
//ScrollEvent (fl.events.ScrollEvent)
package fl.events {
import flash.events.*;
public class ScrollEvent extends Event {
private var _direction:String;
private var _position:Number;
private var _delta:Number;
public static const SCROLL:String = "scroll";
public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){
super(ScrollEvent.SCROLL, false, false);
_direction = _arg1;
_delta = _arg2;
_position = _arg3;
}
public function get position():Number{
return (_position);
}
public function get direction():String{
return (_direction);
}
public function get delta():Number{
return (_delta);
}
override public function toString():String{
return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position"));
}
override public function clone():Event{
return (new ScrollEvent(_direction, _delta, _position));
}
}
}//package fl.events
Section 16
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import flash.display.*;
import flash.events.*;
import fl.core.*;
import flash.text.*;
import fl.controls.*;
import flash.utils.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Dictionary;
private var _showFocusIndicator:Boolean;// = true
private var defButton:Button;
private var focusableCandidates:Array;
private var _form:DisplayObjectContainer;
private var _defaultButtonEnabled:Boolean;// = true
private var activated:Boolean;// = false
private var _defaultButton:Button;
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var lastAction:String;
public function FocusManager(_arg1:DisplayObjectContainer){
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 _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
var _local5:int = focusableCandidates.length;
var _local6:int = _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);
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
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));
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var _local2:InteractiveObject = _arg1;
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
};
return (_local2);
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject = (_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);
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
if (!hasFocusableObjects()){
return;
};
var _local2:InteractiveObject = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_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 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);
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local3:TextField;
var _local4:SimpleButton;
var _local2:DisplayObjectContainer = 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);
}
private function tabChildrenChangeHandler(_arg1:Event):void{
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
var _local2:DisplayObjectContainer = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button = (_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 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 = focusableCandidates.length;
var _local3:int;
_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 _local4:InteractiveObject;
var _local3:DisplayObject = 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 _local5:int;
var _local6:String;
var _local7:String;
var _local3 = "";
var _local4 = "";
var _local8 = "0000";
var _local9:DisplayObject = DisplayObject(_arg1);
var _local10:DisplayObject = 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 = 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 _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
var _local2:DisplayObject = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
var _local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
var _local4:int = getIndexOfFocusedObject(_local2);
var _local5:Boolean;
var _local6:int = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
var _local7:int = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if (_arg1.isDefaultPrevented()){
return;
};
var _local2:InteractiveObject = 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 = _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 _local3:Button;
var _local2:InteractiveObject = 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{
calculateCandidates = true;
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
var _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 get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
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;
}
}
}//package fl.managers
Section 17
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import flash.display.*;
import fl.controls.*;
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 findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function get nextTabIndex():int;
function get defaultButton():Button;
function get showFocusIndicator():Boolean;
function hideFocus():void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function setFocus(_arg1:InteractiveObject):void;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
}
}//package fl.managers
Section 18
//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 19
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function get groupName():String;
function get selected():Boolean;
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
}
}//package fl.managers
Section 20
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import fl.core.*;
import flash.text.*;
import flash.utils.*;
public class StyleManager {
private var classToInstancesDict:Dictionary;
private var globalStyles:Object;
private var styleToClassesHash:Object;
private var classToStylesDict:Dictionary;
private var classToDefaultStylesDict: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 = getClassDef(_arg1);
var _local4:Object = 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 = getClassDef(_arg1);
var _local5:Object = 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 _local5:String;
var _local2:StyleManager = getInstance();
var _local3:Class = getClassDef(_arg1);
var _local4:Object = _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 = getClassDef(_arg1);
var _local4:Object = 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 _local4:Object;
var _local5:UIComponent;
var _local3:Dictionary = 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 _local3:Object;
var _local2:Dictionary = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
public static function registerInstance(_arg1:UIComponent):void{
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
var inst:StyleManager = getInstance();
var classDef:Class = 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;
if (inst.classToStylesDict[classDef] == null){
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 = getClassDef(_arg1);
var _local4:StyleManager = getInstance();
var _local5:Object = _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 = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
}
}//package fl.managers
Section 21
//achieveBG_33 (smashout_fla.achieveBG_33)
package smashout_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class achieveBG_33 extends MovieClip {
public function achieveBG_33(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((!NULL! is !NULL!) & !NULL!);
if (_local1){
super();
if (_local1){
addFrameScript(0, frame1);
};
};
}
function frame1(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((((//unresolved nextvalue or nextname - null) / !NULL!) - 1) + !NULL!);
if (!_local2){
stop();
};
}
}
}//package smashout_fla
Section 22
//button2_28 (smashout_fla.button2_28)
package smashout_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class button2_28 extends MovieClip {
public var bText:TextField;
public function button2_28(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((-(((false + 1) >> !NULL!)) + !NULL!) & !NULL!);
//unresolved jump
if (((((((//unresolved nextvalue or nextname + _local3) + !NULL!) === !NULL!) + !NULL!)) || (_local1))){
super();
//unresolved if
};
addFrameScript(0, frame1);
}
function frame1(){
var _local1:Boolean;
//unresolved jump
var _local2:Number;
_local2 = (!NULL! | !NULL!);
if (!((_local2) && (_local2))){
stop();
};
}
}
}//package smashout_fla
Section 23
//endSmileys_27 (smashout_fla.endSmileys_27)
package smashout_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class endSmileys_27 extends MovieClip {
public function endSmileys_27(){
//unresolved jump
var _local1 = (//unresolved nextvalue or nextname instanceof );
!ERROR! if (_local1){
//unresolved jump
;
//unresolved nextvalue or nextname;
};
if (!_local1){
super();
//unresolved jump
if (!!NULL!){
!NULL!;
};
if (!NULL!){
addFrameScript(0, frame1);
};
};
}
function frame1(){
var _local1:Boolean;
//unresolved jump
var _local3:Boolean;
var _local2 = ((!NULL! | (!NULL! - !NULL!)) as !NULL!);
if (!_local2){
stop();
};
}
}
}//package smashout_fla
Section 24
//mcHolder_3 (smashout_fla.mcHolder_3)
package smashout_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class mcHolder_3 extends MovieClip {
public function mcHolder_3(){
//unresolved jump
var _local1 = (((true === false) >> !NULL!) << !NULL!);
!ERROR! //unresolved jump
if (-((this + 1))){
super();
//unresolved if
};
addFrameScript(0, frame1);
}
function frame1(){
var _local1:Boolean;
//unresolved jump
var _local2:Object = ((false >= ) > !NULL!);
if (((_local1) || (_local2))){
stop();
};
}
}
}//package smashout_fla
Section 25
//thing_48 (smashout_fla.thing_48)
package smashout_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class thing_48 extends MovieClip {
public function thing_48(){
var _local1:Boolean;
//unresolved jump
var _local2 = (??hasnext
- 1);
//unresolved jump
if (!(_local3)){
super();
//unresolved if
};
addFrameScript(0, frame1);
}
function frame1(){
//unresolved jump
var _local1 = -(((true as ??hasnext
) | !NULL!));
!ERROR! if (((_local2) || (_local2))){
stop();
};
}
}
}//package smashout_fla
Section 26
//achieve (achieve)
package {
import flash.display.*;
import flash.text.*;
public dynamic class achieve extends MovieClip {
public var a1:TextField;
public var a2:TextField;
public var bg:MovieClip;
public var achieveimage:MovieClip;
public function achieve(){
var _local1:Boolean;
//unresolved jump
var _local3:Boolean;
var _local2 = (null ^ (_local2 + 1));
if (((_local1) || (_local2))){
super();
};
}
}
}//package
Section 27
//achieveList (achieveList)
package {
import flash.display.*;
public dynamic class achieveList extends MovieClip {
public var a33:achieve;
public var a34:achieve;
public var a35:achieve;
public var a37:achieve;
public var a39:achieve;
public var a36:achieve;
public var a38:achieve;
public var a32:achieve;
public var a31:achieve;
public var a40:achieve;
public var a41:achieve;
public var a42:achieve;
public var a43:achieve;
public var a44:achieve;
public var a45:achieve;
public var a46:achieve;
public var a47:achieve;
public var a11:achieve;
public var a13:achieve;
public var a16:achieve;
public var a17:achieve;
public var a19:achieve;
public var a18:achieve;
public var a12:achieve;
public var a14:achieve;
public var a15:achieve;
public var a10:achieve;
public var a20:achieve;
public var a22:achieve;
public var a24:achieve;
public var a25:achieve;
public var a26:achieve;
public var a27:achieve;
public var a28:achieve;
public var a29:achieve;
public var a23:achieve;
public var a1:achieve;
public var a2:achieve;
public var a3:achieve;
public var a4:achieve;
public var a5:achieve;
public var a6:achieve;
public var a7:achieve;
public var a8:achieve;
public var a21:achieve;
public var a30:achieve;
public var a9:achieve;
public function achieveList(){
//unresolved jump
var _local1 = //unresolved nextvalue or nextname;
!ERROR! if (((_local2) || (this))){
super();
};
}
}
}//package
Section 28
//achieveS (achieveS)
package {
import flash.media.*;
public dynamic class achieveS extends Sound {
public function achieveS(){
//unresolved jump
var _local1 = (true - ~((false as (true + 1))));
!ERROR! if (_local2){
super();
};
}
}
}//package
Section 29
//alien (alien)
package {
import flash.display.*;
public dynamic class alien extends MovieClip {
public function alien(){
var _local1:Boolean;
//unresolved jump
var _local2 = (!NULL! >> !NULL!);
if (((_local1) || (this))){
super();
};
}
}
}//package
Section 30
//alienS (alienS)
package {
import flash.media.*;
public dynamic class alienS extends Sound {
public function alienS(){
var _local1:Boolean;
//unresolved jump
var _local2 = //unresolved nextvalue or nextname;
if (!_local2){
super();
};
}
}
}//package
Section 31
//alienSmall (alienSmall)
package {
import flash.display.*;
public dynamic class alienSmall extends MovieClip {
public function alienSmall(){
var _local1:Boolean;
//unresolved jump
var _local2 = _local2;
if (((_local1) || (this))){
super();
};
}
}
}//package
Section 32
//awesomeS (awesomeS)
package {
import flash.media.*;
public dynamic class awesomeS extends Sound {
public function awesomeS(){
//unresolved jump
var _local1 = //unresolved nextvalue or nextname;
!ERROR! if (((_local2) || (_local1))){
super();
};
}
}
}//package
Section 33
//bbuttonS (bbuttonS)
package {
import flash.media.*;
public dynamic class bbuttonS extends Sound {
public function bbuttonS(){
//unresolved jump
var _local1 = (false > ((true is false) + 1));
!ERROR! if (!_local1){
super();
};
}
}
}//package
Section 34
//bg (bg)
package {
import flash.display.*;
public dynamic class bg extends MovieClip {
public function bg(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((??hasnext
< !NULL!) is !NULL!);
if (((_local1) || (_local2))){
super();
};
}
}
}//package
Section 35
//boss (boss)
package {
import flash.display.*;
public dynamic class boss extends MovieClip {
public function boss(){
var _local1:Boolean;
//unresolved jump
var _local2 = _local3;
if (!((_local2) && (_local1))){
super();
};
}
}
}//package
Section 36
//button (button)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class button extends MovieClip {
public var bText:TextField;
public function button(){
var _local1:Boolean;
//unresolved jump
var _local2 = !(((//unresolved nextvalue or nextname + !NULL!) <= !NULL!));
//unresolved jump
if (((((((_local1 - 1) | !NULL!) + !NULL!) >>> !NULL!) + !NULL!) + 1)){
super();
//unresolved if
};
addFrameScript(0, frame1);
}
function frame1(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((((-(false) <= !NULL!) % !NULL!) >>> !NULL!) - 1);
if (((_local1) || (_local1))){
stop();
};
}
}
}//package
Section 37
//button3 (button3)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class button3 extends MovieClip {
public var bText:TextField;
public function button3(){
//unresolved jump
var _local3:Boolean;
var _local1 = (((-(!NULL!) + 1) - 1) & !NULL!);
!ERROR! //unresolved jump
if ((() || (_local2))){
super();
if (!_local1){
addFrameScript(0, frame1);
};
};
}
function frame1(){
//unresolved jump
var _local2 = (false <= undefined);
var _local1:String = true;
_local2 = !NULL!;
if (_local2){
stop();
};
}
}
}//package
Section 38
//changer (changer)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class changer extends MovieClip {
public function changer(){
var _local1:Boolean;
//unresolved jump
!ERROR! if (_local1){
super();
if (!_local2){
addFrameScript(0, frame1);
};
};
}
function frame1(){
//unresolved jump
var _local1 = //unresolved nextvalue or nextname;
!ERROR! if (_local2){
stop();
};
}
}
}//package
Section 39
//clickS (clickS)
package {
import flash.media.*;
public dynamic class clickS extends Sound {
public function clickS(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((false >= this) + (false >= this)) + 1);
if (!_local2){
super();
};
}
}
}//package
Section 40
//comboText (comboText)
package {
import flash.display.*;
import flash.text.*;
public dynamic class comboText extends MovieClip {
public var Text:TextField;
public function comboText(){
//unresolved jump
var _local1 = (-(((true is (false + 1)) - true)) | !NULL!);
!ERROR! if (!_local1){
super();
};
}
}
}//package
Section 41
//cool (cool)
package {
import flash.display.*;
public dynamic class cool extends MovieClip {
public function cool(){
var _local1:Boolean;
//unresolved jump
var _local2 = (!NULL! << !NULL!);
if (((_local1) || (this))){
super();
};
}
}
}//package
Section 42
//Credits (Credits)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.errors.*;
import flash.filters.*;
import flash.accessibility.*;
public dynamic class Credits extends MovieClip {
public function Credits(){
var _local1:Boolean;
//unresolved jump
var _local3 = ??getglobalscope
;
!ERROR! if (_local1){
super();
//unresolved if
};
addFrameScript(0, frame1);
}
function frame1(){
var _local1:Boolean;
//unresolved jump
var _local2 = (-((false ^ NaN)) * !NULL!);
if (_local1){
stop();
};
}
}
}//package
Section 43
//CreditsMenu (CreditsMenu)
package {
import flash.display.*;
public dynamic class CreditsMenu extends MovieClip {
public function CreditsMenu(){
//unresolved jump
var _local1 = -(!NULL!);
!ERROR! if (!((_local1) && (this))){
super();
};
}
}
}//package
Section 44
//dep (dep)
package {
import flash.display.*;
public dynamic class dep extends MovieClip {
public function dep(){
//unresolved jump
var _local1 = //unresolved nextvalue or nextname;
!ERROR! if (_local2){
super();
};
}
}
}//package
Section 45
//emptyMC (emptyMC)
package {
import flash.display.*;
public dynamic class emptyMC extends MovieClip {
public function emptyMC(){
var _local1:Boolean;
//unresolved jump
var _local2:* = ((false / !NULL!) % !NULL!);
if (_local1){
super();
};
}
}
}//package
Section 46
//endLevelMC (endLevelMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class endLevelMC extends MovieClip {
public var t4:TextField;
public var t5:TextField;
public var t6:TextField;
public var smiley:MovieClip;
public var subScore:MovieClip;
public var t18:TextField;
public var t1:TextField;
public var t2:TextField;
public var t3:TextField;
public function endLevelMC(){
//unresolved jump
var _local1 = ((true + (false >> _local3)) < ~(arguments));
!ERROR! if (_local2){
super();
};
}
}
}//package
Section 47
//exploS (exploS)
package {
import flash.media.*;
public dynamic class exploS extends Sound {
public function exploS(){
//unresolved jump
var _local3 = typeof(((((true >> false) * !NULL!) | !NULL!) & !NULL!));
!ERROR! !ERROR! if (((_local2) || (_local1))){
super();
};
}
}
}//package
Section 48
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
public function focusRectSkin(){
//unresolved jump
var _local3:int = (false << false);
!ERROR! !ERROR! if (_local2){
super();
};
}
}
}//package
Section 49
//FreezeBlue (FreezeBlue)
package {
import flash.display.*;
public dynamic class FreezeBlue extends MovieClip {
public function FreezeBlue(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((((false - !NULL!) == (false + 1)) ^ !NULL!) - 1);
if (!_local2){
super();
};
}
}
}//package
Section 50
//fx (fx)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class fx extends MovieClip {
var FX:SoundChannel;
var s:Number;// = 0
var Pause:Boolean;// = false
var sound:Sound;
public function fx(_arg1){
var _local2:Boolean;
//unresolved jump
_local2 = false;
_local2++;
var _local3 = (((!NULL! * !NULL!) - !NULL!) * !NULL!);
//unresolved jump
_local2--;
_local2 = (_local2 >> !NULL!);
if (((!NULL! + !NULL!) + !NULL!)){
super();
if (((_local2) || (_local2))){
sound = new (_arg1);
};
};
}
public function Play(){
var _local3:Boolean;
//unresolved jump
var _local2 = -(false);
_local3++;
_local2++;
var _local4 = ((!NULL! - !NULL!) is !NULL!);
if (!_local4){
//unresolved if
//unresolved if
//unresolved if
if (!_local4){
//unresolved jump
_local3++;
_local3++;
( + 1).FX = sound.play();
//unresolved if
};
};
FX.addEventListener(Event.SOUND_COMPLETE, fin1);
if (!_local4){
_local2 = (s + 1);
if (!_local3){
//unresolved jump
_local2++;
_local3++;
_local3--;
_local2;
};
if (_local3){
s = _local2;
};
};
}
private function fin1(_arg1:Event){
var _local4:Boolean;
//unresolved jump
var _local3:Boolean;
_local3 = !NULL!;
var _local5:int = (false - 1);
if (((_local4) || (this))){
//unresolved jump
_local2++;
_local3 = ((//unresolved nextvalue or nextname + ).s - 1);
if (!((_local5) && (this))){
_local2.s = _local3;
//unresolved jump
_local2++;
_local2--;
_local4++;
_local3 = !NULL!;
};
//unresolved if
};
FX.removeEventListener(Event.SOUND_COMPLETE, fin1);
}
}
}//package
Section 51
//GameLoop (GameLoop)
package {
import flash.ui.*;
public class GameLoop {
var happyHero:Array;
var level:Number;// = 0
var enKilled:Number;// = 0
var endSection:Boolean;// = false
var specialText:Array;
var smallHeight:Number;// = 9
var freezeMe:Boolean;// = false
var score:Number;// = 0
var overallKills:Number;// = 0
var smileyShow:Array;
var seeds:Array;
var Width:Number;// = 0
var smileys;
var endTimer:Number;
var breakNeeded:Boolean;// = false
var currentCombo:Number;// = 0
var smileyOn:Number;// = 0
var removedText:Boolean;// = true
var levelArray:Array;
var gamesWon:Number;// = 0
var main;
var smileysKilled:Array;
var topCombo:Number;// = 0
var tempTime;// = 0
var Height:Number;// = 0
var endTimer2:Number;// = 0
var levelTexts:Array;
var gameHighTempScore:Number;// = 0
var smileyID:Number;// = 0
var gameState:Number;// = 0
var textSpecial:Array;
var killedArray:Array;
var youLost:Number;// = 0
var hittests:hitTests;
var levelScore:Number;// = 0
var smileyHeight:Number;// = 50
var tempEnKilled:Number;// = 0
var comboTime:Number;// = 0
var gameBoss:Array;
public function GameLoop(_arg1){
//unresolved jump
arguments++;
_local2++;
var _local2 = ((true * false) - !NULL!);
!ERROR! seeds = new Array();
if (!_local2){
smileysKilled = new Array();
//unresolved if
smileyShow = new Array();
specialText = new Array();
killedArray = new Array();
gameBoss = [0, 0, 0, 0];
//unresolved if
};
happyHero = [0];
if (!_local2){
//unresolved jump
_local2--;
_local2--;
_local2--;
};
levelArray = [3, 5, 0, 0, 0, 2, 0, 0, 0];
if (_local3){
if (!_local2){
};
levelTexts = ["Hello there, welcome to smiley showdown!", "", "Click and move the mouse to put the smiley in position", "Then click again to explode as many smiley's as you can!"];
//unresolved if
smileys = new Array();
if (!((_local2) && (_local3))){
//unresolved jump
_local2--;
_local2--;
_local2++;
super();
main = _arg1;
};
};
hittests = new hitTests();
}
function winLevel(){
//unresolved jump
var _local1:Boolean;
var _local2 = (true << NaN);
killedArray = [];
main.addScores();
if (!((_local1) && (this))){
main.endlevelmc.t1.text = ("0/" + levelArray[level][0]);
//unresolved jump
~(this).t6.text = "click to skip...";
main.endlevelmc.t18.text = "Smileys Collected:";
main.Texts.alpha = 0;
if (_local2){
gameState = 3;
//unresolved if
endTimer = 100;
};
//unresolved jump
((??hasnext
- ??hasnext
) * !NULL!).smileyOn = (true + null);
};
tempEnKilled = 0;
if (!_local1){
endSection = false;
};
}
function eraseLevel(){
var _local2:Boolean;
//unresolved jump
_local2--;
_local2++;
var _local3 = _local3;
var _local1:Number = 0;
while (_local1 < smileys.length) {
smileys.splice(_local1, 1);
main.deleteSprite(_local1, 0);
//unresolved if
//unresolved if
//unresolved if
_local1--;
//unresolved if
//unresolved if
_local1++;
};
//unresolved jump
_local2--;
_local2--;
_local1 = ((((false | ) * !NULL!) as 0) === !NULL!);
for (;_local1 < seeds.length;//unresolved if
, //unresolved if
, (_local1 = !NULL!)) {
seeds.splice(_local1, 1);
if (!_local3){
main.deleteSprite(_local1, 2);
};
//unresolved if
//unresolved if
_local1--;
//unresolved if
//unresolved if
};
}
function checkSmileysKilled(){
var _local2:Boolean;
//unresolved jump
_local2 = false;
!ERROR! switch (overallKills){
case 1:
main.newNotif(25);
//unresolved if
break;
main.newNotif(26);
//unresolved if
break;
case 3:
main.newNotif(27);
break;
case 100:
main.newNotif(28);
//unresolved if
break;
case 200:
main.newNotif(29);
//unresolved if
break;
case 1000:
main.newNotif(30);
break;
case //unresolved nextvalue or nextname:
main.newNotif(31);
break;
};
}
function comboNew(_arg1, _arg2, _arg3){
var _local8:Boolean;
//unresolved jump
_arg2 = false;
!ERROR! var _local6 = (!NULL! == !NULL!);
!ERROR! _local5 = null;
var _local4:Number = 0;
while (_local4 < killedArray.length) {
if (killedArray[_local4] == _arg3){
if (((_local8) || (this))){
return;
//unresolved if
};
};
//unresolved if
if (_local8){
//unresolved if
};
_local4++;
//unresolved if
};
_local5 = [100, _arg1, _arg2, 1, 10, 0];
specialText.push(_local5);
main.specText(100, 0);
killedArray.push(_arg3);
if (comboTime < 1000){
//unresolved if
var _local7 = (currentCombo + 1);
if (!_local9){
currentCombo = _local7;
};
_local5 = [currentCombo, _arg1, _arg2, 1, 10, 1];
//unresolved if
specialText.push(_local5);
main.specText(currentCombo, 1);
if (currentCombo > topCombo){
//unresolved if
topCombo = currentCombo;
};
comboTime = 0;
//unresolved jump
_arg3 = true;
_local6 = _arg3;
_arg2--;
//unresolved if
} else {
removedText = false;
if (_local8){
currentCombo = 1;
};
comboTime = 0;
};
switch (topCombo){
main.newNotif(32);
//unresolved if
break;
case 10:
main.newNotif(33);
break;
main.newNotif(34);
break;
case 40:
main.newNotif(35);
//unresolved if
break;
case 50:
main.newNotif(36);
break;
case 60:
main.newNotif(37);
//unresolved if
break;
};
}
function continueGame(){
//unresolved jump
_local3++;
var _local3 = _local3;
_local2++;
_local3 = (true ^ (false + 1));
!ERROR! if (!((_local3) && (arguments))){
deleteSText();
if (!_local3){
smileysKilled = [];
};
score = (score + levelScore);
//unresolved if
score = (score + topCombo);
smileyID = 0;
if (!_local3){
enKilled = 0;
};
};
tempEnKilled = 0;
if (!((_local3) && (this))){
gameState = 0;
if (_local4){
levelScore = 0;
//unresolved if
};
//unresolved if
if (!((_local3) && (_local3))){
var _local2 = (level + 1);
if (!_local3){
level = _local2;
};
main.saveGame(level, score, youLost, overallKills, gamesWon, main.achievesGot);
};
};
eraseLevel();
if (((_local4) || (this))){
initLevel();
//unresolved jump
eraseLevel();
//unresolved jump
_local3++;
_local3++;
//unresolved if
main.BG.gotoAndStop(33);
};
_local2 = (gamesWon + 1);
if (((_local4) || (_local3))){
gamesWon = _local2;
};
switch (gamesWon){
main.newNotif(42);
//unresolved if
break;
main.newNotif(43);
//unresolved if
break;
main.newNotif(44);
//unresolved if
break;
main.newNotif(45);
break;
};
//unresolved jump
_local3 = gamesWon;
_local3 = (youLost < overallKills);
main.saveGame(0, !NULL!, !NULL!, !NULL!, !NULL!, !NULL!);
level = 0;
main.submitScore();
main.gameState = 2;
}
function deleteSText(){
var _local2:Boolean;
//unresolved jump
_local2++;
var _local3 = -(!NULL!);
var _local1:Number = 0;
for (;_local1 < specialText.length;if (!NULL!){
!NULL!;
}, //unresolved if
) {
specialText.splice(_local1, 1);
//unresolved if
main.deleteText2(_local1);
//unresolved jump
_local2++;
_local2--;
if (!_local3){
//unresolved if
_local1--;
//unresolved if
};
if (_local2){
};
continue;
_local3;
_local2--;
_local2--;
_local2--;
};
}
function fastTrackEnding(){
//unresolved jump
var _temp1 = ((false < _local2) - 1);
var _local2:Boolean;
var _local3 = _temp1;
if (((_local3) || (arguments))){
main.scoreSound.Play();
//unresolved if
main.endlevelmc.t18.text = "";
//unresolved if
main.endlevelmc.subScore.visible = true;
//unresolved if
};
main.endlevelmc.subScore.bText.text = "Submit Score";
if (!((_local2) && (_local2))){
breakNeeded = true;
};
var _local1:Number = 0;
for (;_local1 < smileyShow.length;(_local1 = true)) {
smileyShow.splice(_local1, 1);
main.deleteSprite(_local1, 4);
if (_local3){
//unresolved if
//unresolved if
_local1--;
//unresolved if
};
//unresolved if
continue;
_local2 = (true << (_local1 + 1));
_local2--;
_local2++;
};
endSection = true;
gameState = 5;
main.endlevelmc.t1.text = ((enKilled + "/") + levelArray[level][0]);
if (!_local2){
if (enKilled > levelArray[level][0]){
main.endlevelmc.smiley.gotoAndStop(2);
};
main.endlevelmc.t2.text = ("Level Score: " + (levelScore * 100));
//unresolved if
main.endlevelmc.t3.text = (("+ Biggest Combo: " + topCombo) + " x 100");
main.endlevelmc.t4.text = ("+ Total Score: " + (score * 100));
//unresolved if
main.endlevelmc.t5.text = ("= " + (((levelScore + score) + topCombo) * 100));
main.endlevelmc.t6.text = "click to continue...";
//unresolved if
};
checkScore();
//unresolved jump
_local2--;
_local2++;
_local2--;
if (_local3){
gameHighTempScore = ((levelScore + score) + topCombo);
};
}
function checkSmileyList(){
//unresolved jump
var _local3 = (false * (null ^ (true + 1)));
var _local1:Boolean;
!ERROR! if (((_local2) || (this))){
if (smileysKilled.length > 1){
//unresolved if
if (!_local1){
if ((smileysKilled[(smileysKilled.length - 1)] == 4)){
(smileysKilled[(smileysKilled.length - 1)] == 4);
};
if ((smileysKilled[(smileysKilled.length - 1)] == 4)){
//unresolved if
main.newNotif(8);
};
//unresolved if
//unresolved if
};
if ((smileysKilled[(smileysKilled.length - 1)] == 4)){
(smileysKilled[(smileysKilled.length - 1)] == 4);
};
if ((smileysKilled[(smileysKilled.length - 1)] == 4)){
main.newNotif(9);
};
if ((((smileysKilled[(smileysKilled.length - 1)] == 2)) && ((smileysKilled[(smileysKilled.length - 2)] == 4)))){
//unresolved if
main.newNotif(10);
//unresolved if
};
//unresolved if
if ((((smileysKilled[(smileysKilled.length - 1)] == 1)) && ((smileysKilled[(smileysKilled.length - 2)] == 2)))){
if (!_local1){
main.newNotif(11);
};
};
//unresolved if
if ((((smileysKilled[(smileysKilled.length - 1)] == 5)) && ((smileysKilled[(smileysKilled.length - 2)] == 2)))){
//unresolved if
main.newNotif(12);
};
};
//unresolved if
//unresolved if
//unresolved if
if ((smileysKilled[(smileysKilled.length - 1)] == 1)){
//unresolved if
(smileysKilled[(smileysKilled.length - 1)] == 1);
//unresolved if
//unresolved jump
_local3 = (!NULL! >>> !NULL!);
//unresolved if
};
//unresolved if
if ((smileysKilled[(smileysKilled.length - 1)] == 1)){
(smileysKilled[(smileysKilled.length - 1)] == 1);
//unresolved if
//unresolved if
};
if ((smileysKilled[(smileysKilled.length - 1)] == 1)){
main.newNotif(13);
};
//unresolved if
if ((smileysKilled[(smileysKilled.length - 1)] == 1)){
//unresolved if
(smileysKilled[(smileysKilled.length - 1)] == 1);
//unresolved if
};
//unresolved if
//unresolved if
//unresolved if
(smileysKilled[(smileysKilled.length - 1)] == 1);
};
if (_local2){
if ((smileysKilled[(smileysKilled.length - 3)] == 1)){
main.newNotif(14);
};
//unresolved if
if ((smileysKilled[(smileysKilled.length - 1)] == 1)){
//unresolved if
(smileysKilled[(smileysKilled.length - 1)] == 1);
};
if (((_local2) || (_local1))){
if ((smileysKilled[(smileysKilled.length - 1)] == 1)){
(smileysKilled[(smileysKilled.length - 1)] == 1);
//unresolved if
};
if ((smileysKilled[(smileysKilled.length - 1)] == 1)){
main.newNotif(15);
//unresolved if
};
};
};
if ((smileysKilled[(smileysKilled.length - 3)] == 1)){
//unresolved if
main.newNotif(16);
};
if ((((smileysKilled[(smileysKilled.length - 1)] == 6)) && ((smileysKilled[(smileysKilled.length - 2)] == 5)))){
if (_local2){
(((smileysKilled[(smileysKilled.length - 1)] == 6)) && ((smileysKilled[(smileysKilled.length - 2)] == 5)));
//unresolved jump
};
};
if ((((smileysKilled[(smileysKilled.length - 1)] == 6)) && ((smileysKilled[(smileysKilled.length - 2)] == 5)))){
main.newNotif(17);
};
}
function BOOM(_arg1, _arg2, _arg3, _arg4){
//unresolved jump
_arg4--;
_arg2++;
_arg3++;
var _local8 = (false + -(_arg2));
var _local9:Boolean;
var _local7:Array;
var _local5:Number = _arg3.length;
var _local6:Number = 0;
for (;_local6 < _local5;!NULL!, if (_arg3){
}, (_local6 = !NULL!)) {
_local7 = [0, 0, 0, 0, 0, 0, 0];
_local7[1] = _arg1;
_local7[2] = _arg2;
if (!((_local8) && (_arg2))){
_local7[4] = _arg3[_local6][0];
_local7[5] = _arg3[_local6][1];
_local7[0] = _arg4;
if (!((_local8) && (_arg2))){
if (!((_local8) && (_arg1))){
if (!(_arg4 == 4)){
if (_local8){
//unresolved jump
_local6++;
_arg2 = ((_arg4 == 4) - _local8);
_arg1;
};
//unresolved if
(_arg4 == 4);
//unresolved if
//unresolved if
};
};
//unresolved if
//unresolved if
};
(_arg4 == 4);
if ((_arg4 == 8)){
//unresolved if
_local7[6] = _arg3[_local6][2];
};
seeds.push(_local7);
if (_local7[0] == 2){
if (!((_local8) && (_arg1))){
main.createSprite(2, 1);
//unresolved if
};
} else {
main.createSprite(2, 0);
};
};
//unresolved if
//unresolved if
continue;
_local7--;
_arg4--;
};
}
function Update(_arg1){
var _local17:Boolean;
//unresolved jump
var _local6 = ((false >= !NULL!) / !NULL!);
_local17 = !NULL!;
_local4++;
!ERROR! var _local2:Number;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
_local6 = NaN;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Boolean;
var _local11:Number;
var _local12:Array;
var _local13:Number;
if (!((_local18) && (_arg1))){
//unresolved if
//unresolved if
};
tempTime = (tempTime + _arg1);
if (_local17){
comboTime = (comboTime + _arg1);
if (_local17){
_local2 = 0;
};
};
for (;_local2 < smileys.length;//unresolved if
, _local2++, //unresolved if
) {
//unresolved if
if ((smileys[_local2][0] == 2)){
//unresolved if
(smileys[_local2][0] == 2);
//unresolved if
};
if ((smileys[_local2][0] == 2)){
BOOM((smileys[_local2][3] + (smileys[_local2][5] / 2)), (smileys[_local2][4] + (smileys[_local2][5] / 2)), [[1, 1, smileys[_local2][7]]], smileys[_local2][0]);
smileys[_local2][7] = (smileys[_local2][7] + 25);
//unresolved if
if (smileys[_local2][7] > 360){
smileysKilled.push(smileys[_local2][0]);
checkSmileyList();
var _local15 = (levelScore + 1);
if (!_local18){
levelScore = _local15;
};
_local15 = (enKilled + 1);
if (_local17){
enKilled = _local15;
};
//unresolved if
_local15 = (overallKills + 1);
if (!_local18){
overallKills = _local15;
};
checkSmileysKilled();
//unresolved if
smileys.splice(_local2, 1);
//unresolved if
main.deleteSprite(_local2, 0);
//unresolved if
//unresolved if
//unresolved if
_local2--;
//unresolved if
continue;
};
} else {
if (((_local17) || (this))){
//unresolved if
//unresolved if
};
_local4 = (smileys[_local2][0] == 3);
//unresolved if
//unresolved if
//unresolved if
_local5 = 0;
//unresolved if
_local3 = 0;
while (_local3 < smileys.length) {
if (smileys[_local2][7] == smileys[_local3][8]){
//unresolved if
if (!((_local18) && (_local3))){
//unresolved if
//unresolved if
};
_local5 = _local2;
_local4 = true;
//unresolved jump
};
//unresolved if
_local3++;
};
//unresolved if
if (!_local4){
//unresolved if
if (smileys.length == 1){
_local15 = (enKilled + 1);
if (!((_local18) && (_local2))){
enKilled = _local15;
};
_local15 = (overallKills + 1);
if (!_local18){
overallKills = _local15;
};
if (!_local18){
checkSmileysKilled();
//unresolved if
smileysKilled.push(smileys[_local2][0]);
};
checkSmileyList();
smileys.splice(_local2, 1);
//unresolved if
main.deleteSprite(_local2, 0);
//unresolved if
//unresolved if
//unresolved if
_local2--;
//unresolved if
//unresolved jump
};
//unresolved if
_local6 = 50000;
//unresolved if
_local3 = 0;
//unresolved if
while (_local3 < smileys.length) {
if (smileys[_local2][8] != smileys[_local3][8]){
//unresolved if
if (Math.sqrt((Math.pow((smileys[_local3][4] - smileys[_local2][4]), 2) + Math.pow((smileys[_local3][3] - smileys[_local2][4]), 2))) < _local6){
smileys[_local2][7] = smileys[_local3][8];
//unresolved if
_local6 = Math.sqrt((Math.pow((smileys[_local3][4] - smileys[_local2][4]), 2) + Math.pow((smileys[_local3][3] - smileys[_local2][3]), 2)));
};
};
//unresolved if
_local3++;
//unresolved if
};
} else {
//unresolved if
_local7 = Math.atan2((smileys[_local5][3] - smileys[_local2][3]), (smileys[_local5][4] - smileys[_local2][4]));
//unresolved if
smileys[_local2][3] = (smileys[_local2][3] + (Math.sin(_local7) * 9));
if (!_local18){
smileys[_local2][4] = (smileys[_local2][4] + (Math.cos(_local7) * 9));
//unresolved if
//unresolved if
//unresolved if
if (smileys[_local5][0] == 7){
smileys[_local5][0] = smileys[_local5][1];
};
smileysKilled.push(smileys[_local2][0]);
checkSmileyList();
_local15 = (levelScore + 1);
if (!((_local18) && (this))){
levelScore = _local15;
};
//unresolved if
comboNew((smileys[_local5][3] + (smileys[_local5][5] / 2)), (smileys[_local5][4] + (smileys[_local5][5] / 2)), smileys[_local5][8]);
//unresolved if
if (((!((smileys[_local5][0] == 2))) && (!((smileys[_local5][0] == 3))))){
//unresolved if
((!((smileys[_local5][0] == 2))) && (!((smileys[_local5][0] == 3))));
//unresolved if
};
if (((!((smileys[_local5][0] == 2))) && (!((smileys[_local5][0] == 3))))){
//unresolved if
enKilled = (enKilled + 2);
//unresolved if
checkBOOM(smileys[_local5][0], (smileys[_local5][3] + (smileys[_local5][5] / 2)), (smileys[_local5][4] + (smileys[_local5][5] / 2)));
//unresolved if
smileysKilled.push(smileys[_local5][0]);
//unresolved if
checkSmileyList();
//unresolved if
smileys.splice(_local5, 1);
//unresolved if
main.deleteSprite(_local5, 0);
//unresolved if
if (_local5 < _local2){
//unresolved if
//unresolved if
_local2--;
};
smileys.splice(_local2, 1);
main.deleteSprite(_local2, 0);
//unresolved if
//unresolved jump
//unresolved jump
};
//unresolved jump
main.alienSound.Play();
//unresolved if
smileys[_local5][1] = 1;
_local15 = (enKilled + 1);
if (_local17){
enKilled = _local15;
};
//unresolved if
_local15 = (overallKills + 1);
if (!((_local18) && (_local2))){
overallKills = _local15;
};
//unresolved if
checkSmileysKilled();
};
smileys.splice(_local2, 1);
main.deleteSprite(_local2, 0);
//unresolved if
//unresolved if
_local2--;
//unresolved if
//unresolved jump
main.scarySound.Play();
//unresolved if
smileys[_local5][1] = 1;
//unresolved if
_local15 = (enKilled + 1);
if (_local17){
enKilled = _local15;
};
_local15 = (overallKills + 1);
if (!_local18){
overallKills = _local15;
};
//unresolved if
checkSmileysKilled();
if (!((_local18) && (this))){
smileys.splice(_local2, 1);
main.deleteSprite(_local2, 0);
//unresolved if
//unresolved if
if (_local17){
_local2--;
//unresolved if
//unresolved jump
smileysKilled.push(smileys[_local5][0]);
checkSmileyList();
_local15 = (enKilled + 1);
if (_local17){
enKilled = _local15;
};
_local15 = (overallKills + 1);
if (_local17){
overallKills = _local15;
};
//unresolved if
checkSmileysKilled();
smileys.splice(_local5, 1);
main.deleteSprite(_local5, 0);
//unresolved if
//unresolved if
//unresolved if
};
_local2--;
smileys.splice(_local2, 1);
//unresolved if
main.deleteSprite(_local2, 0);
main.createSprite(3, 0);
//unresolved if
freezeMe = true;
//unresolved if
breakNeeded = true;
//unresolved if
Mouse.hide();
//unresolved if
//unresolved if
//unresolved if
_local2--;
//unresolved if
//unresolved jump
//unresolved jump
var _local14 = smileys[_local5][0];
if (!((_local18) && (_local2))){
//unresolved if
//unresolved if
};
//unresolved jump
//unexpected switch
};
//unresolved jump
};
//unresolved jump
if (smileys[_local2][0] == 7){
if (tempTime > 1000){
switch (!NULL!){
smileys[_local2][1] = 0;
break;
smileys[_local2][1] = 1;
break;
smileys[_local2][1] = 2;
//unresolved if
break;
smileys[_local2][1] = 3;
break;
smileys[_local2][1] = 4;
//unresolved if
break;
smileys[_local2][1] = 5;
//unresolved if
break;
smileys[_local2][1] = 6;
break;
};
main.sprites[_local2].gotoAndStop((smileys[_local2][1] + 1));
};
};
switch (smileys[_local2][2]){
smileys[_local2][3] = (smileys[_local2][3] + 6);
if (smileys[_local2][3] >= Width){
smileys[_local2][3] = (0 - smileys[_local2][5]);
};
//unresolved jump
smileys[_local2][3] = (smileys[_local2][3] - 6);
//unresolved if
if (smileys[_local2][3] <= (0 - smileys[_local2][5])){
smileys[_local2][3] = Width;
};
//unresolved jump
smileys[_local2][4] = (smileys[_local2][4] + 6);
//unresolved if
if (smileys[_local2][4] >= Height){
smileys[_local2][4] = (0 - smileys[_local2][5]);
};
//unresolved jump
smileys[_local2][4] = (smileys[_local2][4] - 6);
//unresolved if
if (smileys[_local2][4] <= (0 - smileys[_local2][5])){
//unresolved if
smileys[_local2][4] = Height;
};
//unresolved jump
};
//unresolved if
};
//unresolved if
_local3 = 0;
for (;_local3 < seeds.length;//unresolved if
, _local3++) {
if (hittests.circleHitTest(seeds[_local3][1], seeds[_local3][2], smallHeight, (smileys[_local2][3] + (smileys[_local2][5] / 2)), (smileys[_local2][4] + (smileys[_local2][5] / 2)), (smileys[_local2][5] / 2))){
//unresolved if
if (smileys[_local2][0] == 7){
smileys[_local2][0] = smileys[_local2][1];
};
comboNew((smileys[_local2][3] + (smileys[_local2][5] / 2)), (smileys[_local2][4] + (smileys[_local2][5] / 2)), smileys[_local2][8]);
if (((_local17) || (_arg1))){
};
//unresolved if
if (!((smileys[_local2][0] == 2))){
!((smileys[_local2][0] == 2));
};
if (!((smileys[_local2][0] == 2))){
_local15 = (enKilled + 1);
if (!_local18){
enKilled = _local15;
};
_local15 = (overallKills + 1);
if (!_local18){
overallKills = _local15;
};
checkSmileysKilled();
checkBOOM(smileys[_local2][0], (smileys[_local2][3] + (smileys[_local2][5] / 2)), (smileys[_local2][4] + (smileys[_local2][5] / 2)));
//unresolved if
smileysKilled.push(smileys[_local2][0]);
checkSmileyList();
smileys.splice(_local2, 1);
main.deleteSprite(_local2, 0);
//unresolved if
_local2--;
//unresolved if
//unresolved jump
} else {
switch (smileys[_local2][0]){
main.alienSound.Play();
smileys[_local2][1] = 1;
continue;
main.scarySound.Play();
smileys[_local2][1] = 1;
//unresolved if
continue;
smileysKilled.push(smileys[_local2][0]);
checkSmileyList();
//unresolved if
smileys.splice(_local2, 1);
//unresolved if
main.deleteSprite(_local2, 0);
//unresolved if
main.createSprite(3, 0);
//unresolved if
freezeMe = true;
breakNeeded = true;
//unresolved if
Mouse.hide();
//unresolved if
_local2--;
continue;
};
//unresolved if
};
};
};
//unresolved if
};
if (!((_local18) && (_local2))){
if (tempTime > 1000){
tempTime = 0;
};
if (!_local18){
//unresolved if
_local2 = 0;
//unresolved if
for (;_local2 < seeds.length;//unresolved if
, //unresolved if
, _local2++) {
switch (seeds[_local2][0]){
seeds[_local2][1] = (seeds[_local2][1] + (seeds[_local2][4] * 8));
seeds[_local2][2] = (seeds[_local2][2] + (seeds[_local2][5] * 8));
//unresolved if
//unresolved jump
seeds[_local2][1] = (seeds[_local2][1] + (seeds[_local2][4] * 8));
seeds[_local2][2] = (seeds[_local2][2] + (seeds[_local2][5] * 8));
//unresolved jump
seeds[_local2][1] = (seeds[_local2][1] + ((Math.sin(((seeds[_local2][6] * Math.PI) / 180)) * seeds[_local2][4]) * 8));
//unresolved if
seeds[_local2][2] = (seeds[_local2][2] + ((Math.cos(((seeds[_local2][6] * Math.PI) / 180)) * seeds[_local2][5]) * 8));
//unresolved jump
seeds[_local2][1] = (seeds[_local2][1] + ((Math.round(Math.sin(((seeds[_local2][6] * Math.PI) / 180))) * seeds[_local2][4]) * 8));
seeds[_local2][2] = (seeds[_local2][2] + ((Math.round(Math.cos(((seeds[_local2][6] * Math.PI) / 180))) * seeds[_local2][4]) * 8));
//unresolved if
//unresolved jump
//unresolved jump
_local8++;
_local11 = ~(8);
seeds[_local2][1] = (seeds[_local2][1] + ((Math.sin(((seeds[_local2][6] * Math.PI) / 180)) * seeds[_local2][4]) * _local15));
seeds[_local2][2] = (seeds[_local2][2] + ((Math.cos(((seeds[_local2][6] * Math.PI) / 180)) * seeds[_local2][5]) * 8));
//unresolved if
//unresolved jump
};
//unresolved if
if (seeds[_local2][1] > (Width + smallHeight)){
//unresolved if
seeds.splice(_local2, 1);
//unresolved if
main.deleteSprite(_local2, 2);
//unresolved if
//unresolved if
_local2--;
//unresolved if
} else {
if (seeds[_local2][2] > (Height + smallHeight)){
seeds.splice(_local2, 1);
main.deleteSprite(_local2, 2);
//unresolved if
//unresolved if
//unresolved if
_local2--;
//unresolved if
} else {
if (seeds[_local2][1] < (0 - smallHeight)){
//unresolved if
seeds.splice(_local2, 1);
main.deleteSprite(_local2, 2);
//unresolved if
//unresolved if
_local2--;
} else {
if (seeds[_local2][2] < (0 - smallHeight)){
//unresolved if
seeds.splice(_local2, 1);
main.deleteSprite(_local2, 2);
if (!((_local18) && (this))){
//unresolved if
_local2--;
};
continue;
};
};
};
};
};
if (((_local17) || (this))){
if (comboTime >= 1000){
if (!removedText){
removedText = true;
//unresolved if
if (currentCombo >= 5){
//unresolved if
_local9 = 0;
_local9 = Math.floor((Math.random() * 10));
//unresolved if
textSpecial = [_local9, (Width / 2), 150, 1, 10, 0];
//unresolved if
specialText.push(textSpecial);
//unresolved if
main.specText(_local9, 0);
//unresolved if
};
//unresolved if
if (!_local18){
_local8 = 0;
//unresolved jump
if (specialText[_local8][5] == 1){
specialText[_local8][5] = 2;
//unresolved if
};
};
//unresolved if
_local8 = 0;
//unresolved if
//unresolved if
//unresolved if
};
};
if (gameState == 0){
//unresolved if
if ((main.mouseX > 5.5)){
//unresolved if
(main.mouseX > 5.5);
//unresolved if
//unresolved if
};
//unresolved if
if ((main.mouseX > 5.5)){
//unresolved if
(main.mouseX > 5.5);
};
//unresolved if
if ((main.mouseX > 5.5)){
//unresolved if
(main.mouseX > 5.5);
};
if ((main.mouseX > 5.5)){
//unresolved if
main.intromc.bMenu.gotoAndStop(2);
//unresolved if
} else {
main.intromc.bMenu.gotoAndStop(1);
};
if (!breakNeeded){
if (main.mouseH.mouse){
//unresolved if
//unresolved if
//unresolved if
if ((main.mouseX > 5.5)){
(main.mouseX > 5.5);
//unresolved if
//unresolved if
};
if ((((((main.mouseX > 5.5)) && ((main.mouseX < 180.5)))) && ((main.mouseY < 48.5)))){
//unresolved if
deleteSText();
//unresolved if
smileysKilled = [];
//unresolved if
score = 0;
topCombo = 0;
smileyID = 0;
//unresolved if
enKilled = 0;
tempEnKilled = 0;
gameState = 0;
//unresolved if
levelScore = 0;
eraseLevel();
//unresolved if
Mouse.show();
//unresolved if
main.setMainMenu();
main.closeBG();
//unresolved if
return;
};
main.removeIntro();
main.Texts.alpha = 1;
//unresolved if
gameState = 1;
//unresolved if
main.createSprite(1, null);
//unresolved if
Mouse.hide();
//unresolved if
breakNeeded = true;
//unresolved if
};
};
};
//unresolved if
//unresolved if
//unresolved if
//unresolved if
main.Cool.x = (main.mouseX - (smileyHeight / 2));
main.Cool.y = (main.mouseY - (smileyHeight / 2));
//unresolved if
//unresolved if
main.normSound.Play();
main.deleteSprite(0, 1);
//unresolved if
BOOM(main.mouseX, main.mouseY, [[1, 0], [-1, 0], [0, 1], [0, -1]], 0);
//unresolved if
};
gameState = 2;
//unresolved if
Mouse.show();
if (gameState == 2){
//unresolved if
main.Texts.t1.text = ("Score: " + ((score + levelScore) * 100));
//unresolved if
main.Texts.t3.text = ((("Killed: " + enKilled) + "/") + levelArray[level][0]);
if (seeds.length == 0){
//unresolved if
_local10 = true;
//unresolved if
_local2 = 0;
while (_local2 < smileys.length) {
//unresolved if
if ((smileys[_local2][1] == 1)){
(smileys[_local2][1] == 1);
//unresolved if
};
if ((smileys[_local2][1] == 1)){
//unresolved if
//unresolved if
_local10 = false;
break;
};
_local2++;
};
//unresolved if
if (_local10){
deleteSText();
if (levelArray[level][0] <= enKilled){
//unresolved if
gameState = 3;
winLevel();
} else {
_local15 = (youLost + 1);
if (!_local18){
youLost = _local15;
};
switch (!NULL!){
main.newNotif(38);
break;
main.newNotif(39);
break;
main.newNotif(40);
break;
};
resetLevel();
};
};
};
};
//unresolved if
//unresolved if
//unresolved if
//unresolved if
//unresolved if
//unresolved if
if (_local17){
_local11 = 10;
//unresolved if
//unresolved if
};
_local11 = 10;
//unresolved if
endTimer2 = 5;
//unresolved jump
if (smileysKilled.length < 40){
//unresolved if
//unresolved if
_local11 = 30;
endTimer2 = 4;
//unresolved if
//unresolved jump
};
//unresolved if
//unresolved if
//unresolved if
};
if (_local17){
_local11 = 0;
endTimer2 = 3;
//unresolved if
if (!_local18){
_local12 = [0, -40, 290, _local11, 0];
if (((_local17) || (_local3))){
smileyShow.push(_local12);
//unresolved if
main.createSprite(4, smileysKilled[smileyOn]);
//unresolved if
};
endTimer = 0;
if (((_local17) || (_local2))){
_local15 = (smileyOn + 1);
if (((_local17) || (this))){
smileyOn = _local15;
};
};
//unresolved jump
if (smileyShow.length == 0){
main.endlevelmc.t6.text = "";
endSection = true;
endTimer = 0;
main.endlevelmc.t18.text = "";
gameState = 4;
};
_local2 = 0;
//unresolved jump
smileyShow[_local2][1] = (smileyShow[_local2][1] + smileyShow[_local2][3]);
//unresolved if
//unresolved if
//unresolved if
smileyShow[_local2][4] = 1;
//unresolved if
_local15 = (tempEnKilled + 1);
if (((_local17) || (_arg1))){
tempEnKilled = _local15;
};
//unresolved if
main.endlevelmc.t1.text = ((tempEnKilled + "/") + levelArray[level][0]);
//unresolved if
};
if (!((_local18) && (_arg1))){
_local13 = 0;
//unresolved if
if ((tempEnKilled - 1) == levelArray[level][0]){
//unresolved if
main.endlevelmc.smiley.gotoAndStop(2);
//unresolved if
};
//unresolved if
};
_local13 = 0;
textSpecial = [_local13, (Width / 2), 250, 1, 10, 0];
specialText.push(textSpecial);
main.specText(_local13, 0);
if (smileyShow[_local2][1] > Width){
//unresolved if
smileyShow.splice(_local2, 1);
main.deleteSprite(_local2, 4);
//unresolved if
//unresolved jump
};
};
_local2 = 0;
//unresolved if
_local15 = (endTimer + 1);
if (((_local17) || (_local3))){
endTimer = _local15;
};
//unresolved if
if (main.mouseH.mouse){
fastTrackEnding();
};
if (gameState == 4){
switch (endTimer){
breakNeeded = true;
//unresolved if
main.endlevelmc.t2.text = ("Level Score: " + (levelScore * 100));
//unresolved if
break;
main.endlevelmc.t3.text = (("+ Biggest Combo: " + topCombo) + " x 100");
break;
main.endlevelmc.t4.text = ("+ Total Score: " + (score * 100));
//unresolved if
break;
main.endlevelmc.t5.text = ("= " + (((levelScore + score) + topCombo) * 100));
main.endlevelmc.t6.text = "click to continue...";
checkScore();
main.endlevelmc.subScore.visible = true;
main.endlevelmc.subScore.bText.text = "Submit Score";
gameHighTempScore = ((levelScore + score) + topCombo);
//unresolved if
gameState = 5;
//unresolved if
break;
};
_local15 = (endTimer + 1);
if (!_local18){
endTimer = _local15;
};
//unresolved if
};
//unresolved if
//unresolved if
if ((((main.mouseX > 433)) && ((main.mouseY > 234)))){
//unresolved if
(((main.mouseX > 433)) && ((main.mouseY > 234)));
};
//unresolved if
if ((((main.mouseX > 433)) && ((main.mouseY > 234)))){
//unresolved if
(((main.mouseX > 433)) && ((main.mouseY > 234)));
//unresolved if
};
if ((((main.mouseX > 433)) && ((main.mouseY > 234)))){
main.endlevelmc.subScore.gotoAndStop(2);
//unresolved if
} else {
main.endlevelmc.subScore.gotoAndStop(1);
//unresolved if
};
//unresolved if
//unresolved if
//unresolved if
if ((main.mouseX > 433)){
//unresolved if
(main.mouseX > 433);
//unresolved if
};
//unresolved if
if ((((main.mouseX > 433)) && ((main.mouseX < 608)))){
//unresolved if
(((main.mouseX > 433)) && ((main.mouseX < 608)));
//unresolved if
};
//unresolved if
//unresolved if
//unresolved if
main.endlevelmc.subScore.visible = false;
//unresolved if
main.endlevelmc.visible = false;
//unresolved if
main.createScores();
};
gameState = 77;
breakNeeded = true;
if (_local17){
//unresolved jump
main.removeScores();
if (!((_local18) && (_local2))){
main.endlevelmc.smiley.gotoAndStop(1);
main.endlevelmc.t1.text = "";
main.endlevelmc.t2.text = "";
//unresolved if
main.endlevelmc.t3.text = "";
main.endlevelmc.t4.text = "";
main.endlevelmc.t5.text = "";
main.endlevelmc.t5.text = "";
//unresolved if
main.clickSound.Play();
//unresolved if
continueGame();
breakNeeded = true;
};
//unresolved jump
main.removeScores();
//unresolved if
main.endlevelmc.smiley.gotoAndStop(1);
main.endlevelmc.t1.text = "";
main.endlevelmc.t2.text = "";
//unresolved if
main.endlevelmc.t3.text = "";
//unresolved if
main.endlevelmc.t4.text = "";
main.endlevelmc.t5.text = "";
main.endlevelmc.t5.text = "";
main.clickSound.Play();
//unresolved if
continueGame();
//unresolved if
breakNeeded = true;
//unresolved if
if (gameBoss[0] == 0){
if (gameBoss[2] < 150){
//unresolved if
gameBoss[2] = (gameBoss[2] + 5);
} else {
gameBoss[0] = 1;
//unresolved if
};
};
if (((_local17) || (_local3))){
//unresolved if
//unresolved if
};
(gameBoss[0] > 0);
if ((gameBoss[0] <= 29)){
//unresolved if
_local14 = gameBoss;
_local15 = 0;
var _local16 = (_local14[_local15] + 1);
if (_local17){
_local14[_local15] = _local16;
};
//unresolved if
};
if (gameBoss[0] == 30){
if (gameBoss[1] < 550){
gameBoss[1] = (gameBoss[1] + 5);
} else {
gameBoss[0] = 31;
};
};
happyHero[0] = (happyHero[0] - 5);
//unresolved if
};
happyHero[0] = Height;
if (_local17){
//unresolved if
//unresolved if
};
happyHero[0] = Height;
gameBoss[3] = (gameBoss[3] + 5);
if (gameBoss[3] != 40){
main.normSound.Play();
BOOM((gameBoss[1] - 20), gameBoss[2], [[1, 1, Math.round((Math.random() * 360))]], 4);
//unresolved if
BOOM((gameBoss[1] - 20), gameBoss[2], [[1, 1, Math.round((Math.random() * 360))]], 4);
BOOM((gameBoss[1] - 20), gameBoss[2], [[1, 1, Math.round((Math.random() * 360))]], 4);
//unresolved if
} else {
BOOM((gameBoss[1] - 20), gameBoss[2], [[1, 1, 10], [1, 1, 20], [1, 1, 30], [1, 1, 40], [1, 1, 50], [1, 1, 60], [1, 1, 70], [1, 1, 80], [1, 1, 90], [1, 1, 100], [1, 1, 110], [1, 1, 120], [1, 1, 130], [1, 1, 140], [1, 1, 150], [1, 1, 160], [1, 1, 170], [1, 1, 180], [1, 1, 190], [1, 1, 200], [1, 1, 210], [1, 1, 220], [1, 1, 230], [1, 1, 240], [1, 1, 250], [1, 1, 260], [1, 1, 270], [1, 1, 280], [1, 1, 290], [1, 1, 300], [1, 1, 310], [1, 1, 320], [1, 1, 330], [1, 1, 340], [1, 1, 350], [1, 1, 360]], 8);
main.saveGame(0, score, youLost, overallKills, gamesWon, main.achievesGot);
//unresolved if
main.deleteCreditSpecials();
};
//unresolved jump
main.Cool.x = (main.mouseX - (smileyHeight / 2));
main.Cool.y = (main.mouseY - (smileyHeight / 2));
if (!breakNeeded){
if (((_local17) || (_local2))){
//unresolved if
main.normSound.Play();
//unresolved if
};
main.deleteSprite(0, 3);
BOOM(main.mouseX, main.mouseY, [[1, 0], [-1, 0], [0, 1], [0, -1]], 0);
//unresolved if
Mouse.show();
_local15 = (enKilled + 1);
if (((_local17) || (_local3))){
enKilled = _local15;
};
_local15 = (overallKills + 1);
if (!((_local18) && (_local2))){
overallKills = _local15;
};
//unresolved if
checkSmileysKilled();
freezeMe = false;
};
if (((breakNeeded) && (!(main.mouseH.mouse)))){
breakNeeded = false;
};
}
function initLevel(){
var _local14:Boolean;
//unresolved jump
_local5++;
var _local15 = (typeof(//unresolved nextvalue or nextname) - 1);
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local11:Array;
if (!((_local15) && (_local1))){
gameState = 0;
main.BG.gotoAndStop((level + 1));
if (!((_local15) && (_local3))){
_local1 = (((((((levelArray[level][1] + levelArray[level][2]) + levelArray[level][3]) + levelArray[level][4]) + levelArray[level][5]) + levelArray[level][6]) + levelArray[level][7]) + levelArray[level][8]);
//unresolved if
};
_local2 = (((((((levelArray[level][1] + levelArray[level][2]) + levelArray[level][3]) + levelArray[level][4]) + levelArray[level][5]) + levelArray[level][6]) + levelArray[level][7]) + levelArray[level][8]);
//unresolved if
_local3 = levelArray[level][2];
_local4 = levelArray[level][3];
_local5 = levelArray[level][4];
_local6 = levelArray[level][5];
//unresolved if
_local7 = levelArray[level][6];
_local8 = levelArray[level][7];
_local9 = levelArray[level][8];
//unresolved if
//unresolved if
//unresolved if
};
main.newNotif(0);
if (_local14){
if (_local6 > 0){
main.newNotif(1);
//unresolved if
};
if (_local3 > 0){
main.newNotif(2);
//unresolved if
};
if (_local4 > 0){
if (!_local15){
main.newNotif(3);
};
};
if (!_local15){
if (_local5 > 0){
main.newNotif(4);
//unresolved if
};
//unresolved if
//unresolved if
};
if (_local5 > 0){
//unresolved if
main.newNotif(6);
//unresolved if
};
if (((_local14) || (_local3))){
if (_local8 > 0){
main.newNotif(5);
};
//unresolved if
};
};
if (_local6 > 0){
if (_local14){
main.newNotif(7);
};
};
var _local10:Number = 0;
while (//unresolved if
, _local10 < _local1) {
//unresolved if
_local11 = [0, 0, 0, 0, 0, 0, 5, 0, 0];
if (((_local14) || (_local1))){
smileys.push(_local11);
if (!((_local15) && (_local1))){
if (_local14){
//unresolved if
};
};
};
};
if (_local14){
//unresolved if
_local10 = 0;
if (!_local15){
//unresolved jump
smileys[_local10][8] = smileyID;
//unresolved if
var _local13 = (smileyID + 1);
if (((_local14) || (_local1))){
smileyID = _local13;
};
//unresolved if
if (_local2 > 0){
//unresolved if
//unresolved if
_local2--;
smileys[_local10][5] = smileyHeight;
//unresolved if
main.createSprite(0, 0);
//unresolved jump
};
if (!_local15){
//unresolved if
if (_local3 > 0){
smileys[_local10][0] = 1;
//unresolved if
smileys[_local10][5] = smileyHeight;
main.createSprite(0, 1);
if (!((_local15) && (_local2))){
//unresolved if
};
//unresolved jump
};
//unresolved if
//unresolved if
//unresolved if
smileys[_local10][0] = 2;
//unresolved if
smileys[_local10][5] = smileyHeight;
//unresolved if
main.createSprite(0, 2);
};
//unresolved if
_local4 = (_local3 - 1);
//unresolved if
//unresolved jump
if (_local5 > 0){
smileys[_local10][0] = 3;
smileys[_local10][5] = smileyHeight;
//unresolved if
smileys[_local10][7] = -1;
//unresolved if
main.createSprite(0, 3);
//unresolved if
_local5--;
//unresolved if
//unresolved jump
};
//unresolved if
if (_local6 > 0){
//unresolved if
smileys[_local10][0] = 4;
//unresolved if
smileys[_local10][5] = smileyHeight;
//unresolved if
main.createSprite(0, 4);
//unresolved if
_local6--;
//unresolved jump
};
if (_local14){
if (_local7 > 0){
smileys[_local10][0] = 5;
smileys[_local10][5] = smileyHeight;
main.createSprite(0, 5);
//unresolved if
//unresolved if
_local7--;
//unresolved if
//unresolved jump
//unresolved jump
_local10++;
_local12--;
_local7++;
};
//unresolved if
};
//unresolved if
smileys[_local10][0] = 6;
//unresolved if
};
smileys[_local10][5] = smileyHeight;
//unresolved if
main.createSprite(0, 6);
//unresolved if
//unresolved if
//unresolved if
_local8--;
//unresolved if
//unresolved jump
//unresolved if
//unresolved if
//unresolved jump
smileys[_local10][1] = 0;
//unresolved jump
smileys[_local10][1] = 1;
if (!((_local15) && (_local3))){
//unresolved jump
smileys[_local10][1] = 2;
//unresolved jump
smileys[_local10][1] = 3;
};
//unresolved jump
smileys[_local10][1] = 4;
};
//unresolved jump
smileys[_local10][1] = 5;
//unresolved jump
smileys[_local10][1] = 6;
//unresolved jump
//unresolved jump
var _local12 = Math.round((Math.random() * 6));
if (!((_local15) && (_local3))){
if (0 === _local12){
//unresolved jump
};
};
if (0 === _local12){
} else {
if (2 === _local12){
//unresolved if
} else {
if (((_local14) || (_local3))){
if (3 === _local12){
//unresolved jump
};
//unresolved if
};
if (3 === _local12){
} else {
if (5 === _local12){
//unresolved if
} else {
if (6 === _local12){
//unresolved if
} else {
//unresolved jump
//unresolved jump
};
};
};
};
};
if (_local14){
//unexpected switch
smileys[_local10][5] = smileyHeight;
if (!_local15){
smileys[_local10][0] = 7;
//unresolved if
main.createSprite(0, 7);
main.sprites[_local10].gotoAndStop(smileys[_local10][1]);
};
//unresolved if
//unresolved if
_local9--;
smileys[_local10][2] = Math.round((Math.random() * 3));
//unresolved jump
smileys[_local10][3] = ((0 - (smileys[_local10][5] / 2)) - ((Math.random() * Width) / 2));
smileys[_local10][4] = (Math.random() * (Height - smileys[_local10][5]));
//unresolved jump
smileys[_local10][3] = ((Width + (smileys[_local10][5] / 2)) + ((Math.random() * Width) / 2));
//unresolved if
smileys[_local10][4] = (Math.random() * (Height - smileys[_local10][5]));
//unresolved jump
smileys[_local10][4] = ((0 - (smileys[_local10][5] / 2)) - (int((Math.random() * Height)) / 2));
//unresolved if
smileys[_local10][3] = (Math.random() * (Width - smileys[_local10][5]));
//unresolved jump
smileys[_local10][4] = ((Height + (smileys[_local10][5] / 2)) + ((Math.random() * Height) / 2));
//unresolved if
smileys[_local10][3] = (Math.random() * (Width - smileys[_local10][5]));
//unresolved if
//unresolved jump
//unresolved jump
_local12 = smileys[_local10][2];
if (((_local14) || (_local3))){
//unresolved if
if (0 === _local12){
//unresolved if
//unresolved jump
};
//unresolved if
//unresolved if
};
if (!_local15){
//unresolved jump
};
if (1 === _local12){
//unresolved if
//unresolved if
} else {
if (3 === _local12){
} else {
//unresolved jump
//unresolved jump
};
};
};
//unexpected switch
if (_local14){
};
if (!((_local15) && (_local1))){
//unresolved if
main.addIntro();
main.intromc.bMenu.bText.text = "menu";
//unresolved if
};
main.intromc.t1.text = ("Level " + (level + 1));
if (!_local15){
main.intromc.t2.text = levelTexts[level][0];
//unresolved if
main.intromc.t3.text = levelTexts[level][1];
if (_local14){
main.intromc.t4.text = levelTexts[level][2];
};
main.intromc.t5.text = levelTexts[level][3];
//unresolved if
main.removeText();
};
main.addText();
main.Texts.alpha = 0;
if (_local14){
main.Texts.t2.text = ("Level " + (level + 1));
main.Texts.t1.text = ("Score: " + (score * 100));
};
//unresolved jump
_local2 = main.Texts;
_local4--;
_local12--;
(!NULL! - 1).t3.text = ("Killed: 0/" + levelArray[level][0]);
}
function checkScore(){
var _local2:Boolean;
//unresolved jump
_local2 = false;
var _local3 = ((((!NULL! / !NULL!) <= !NULL!) instanceof _local2) <= !NULL!);
var _local1:Number = ((levelScore + score) + topCombo);
if (_local2){
//unresolved if
if ((_local1 * 100) >= 1000){
main.newNotif(18);
};
//unresolved if
if ((_local1 * 100) >= 10000){
//unresolved if
main.newNotif(19);
};
//unresolved if
//unresolved if
};
if (_local1 >= 100){
//unresolved if
main.newNotif(20);
//unresolved if
};
if (((_local2) || (_local3))){
};
if (_local1 >= 100){
main.newNotif(21);
//unresolved if
};
if (_local2){
if (!((_local3) && (_local2))){
//unresolved if
if ((_local1 * 100) >= 100000){
main.newNotif(22);
};
//unresolved if
};
//unresolved if
if ((_local1 * 100) >= 110000){
main.newNotif(23);
};
if (((_local2) || (((_local1 & (_local2 instanceof _local3)) / !NULL!)))){
};
};
if (_local1 >= 130000){
main.newNotif(24);
};
}
function checkBOOM(_arg1, _arg2, _arg3){
//unresolved jump
var _temp1 = _local6;
var _local6 = _arg2;
_local6 = ((true - false) <= (_temp1 + 1));
!ERROR! if (((_local7) || (_arg2))){
var _local5 = (levelScore + 1);
if (((_local7) || (this))){
levelScore = _local5;
};
};
switch (undefined){
main.normSound.Play();
BOOM(_arg2, _arg3, [[1, 0], [-1, 0], [0, 1], [0, -1]], _arg1);
break;
main.sadSound.Play();
switch (Math.round((Math.random() * 3))){
case 1:
BOOM(_arg2, _arg3, [[1, 0]], _arg1);
//unresolved jump
BOOM(_arg2, _arg3, [[-1, 0]], _arg1);
//unresolved if
//unresolved jump
BOOM(_arg2, _arg3, [[0, 1]], _arg1);
//unresolved if
//unresolved jump
BOOM(_arg2, _arg3, [[0, -1]], _arg1);
//unresolved jump
};
//unresolved if
break;
main.awesomeSound.Play();
BOOM(_arg2, _arg3, [[1.5, 1.5, 0], [1, 1, 45], [1.5, 1.5, 90], [1, 1, 135], [1.5, 1.5, 180], [1, 1, 225], [1.5, 1.5, 270], [1, 1, 315]], _arg1);
//unresolved if
break;
case _arg2:
main.ghostSound.Play();
break;
};
}
function resetLevel(){
//unresolved jump
var _local1 = ((!NULL! > !NULL!) ^ !NULL!);
!ERROR! if (!_local1){
deleteSText();
if (!_local1){
killedArray = [];
};
smileysKilled = [];
//unresolved jump
smileyID = 0;
enKilled = 0;
gameState = 0;
levelScore = 0;
tempEnKilled = 0;
if (_local2){
//unresolved jump
var _local3:*;
gameState = 0;
//unresolved if
eraseLevel();
};
};
initLevel();
}
}
}//package
Section 52
//ghost (ghost)
package {
import flash.display.*;
public dynamic class ghost extends MovieClip {
public function ghost(){
var _local1:Boolean;
//unresolved jump
var _local2:* = (!(_local1) + 1);
if (_local1){
super();
};
}
}
}//package
Section 53
//ghostS (ghostS)
package {
import flash.media.*;
public dynamic class ghostS extends Sound {
public function ghostS(){
//unresolved jump
var _local1 = ((true < false) as arguments);
!ERROR! if (!_local1){
super();
};
}
}
}//package
Section 54
//happy (happy)
package {
import flash.display.*;
public dynamic class happy extends MovieClip {
public function happy(){
var _local1:Boolean;
//unresolved jump
var _local2 = _local1;
if (!((_local2) && (_local1))){
super();
};
}
}
}//package
Section 55
//happyS (happyS)
package {
import flash.media.*;
public dynamic class happyS extends Sound {
public function happyS(){
//unresolved jump
var _local1 = (typeof((_local2 - 1)) % ??getglobalscope
);
var _local2:Boolean;
if (_local2){
super();
};
}
}
}//package
Section 56
//highScoreMC (highScoreMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class highScoreMC extends MovieClip {
public var b2:button;
public var b1:button;
public var scoreText:TextField;
public function highScoreMC(){
var _local1:Boolean;
//unresolved jump
var _local3 = this;
var _local2 = (this - 1);
if (((_local1) || (this))){
super();
};
}
}
}//package
Section 57
//highScoreMC2 (highScoreMC2)
package {
import flash.display.*;
import flash.text.*;
public dynamic class highScoreMC2 extends MovieClip {
public var b2:MovieClip;
public var b1:MovieClip;
public var scoreText:TextField;
public function highScoreMC2(){
//unresolved jump
var _local1 = ((false + 1) >= ~((NaN | _local2)));
var _local2:Boolean;
if (((_local2) || (_local1))){
super();
};
}
}
}//package
Section 58
//hitTests (hitTests)
package {
public class hitTests {
public function hitTests(){
var _local1:Boolean;
//unresolved jump
!ERROR! if (_local1){
super();
};
}
function circleHitTest(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
//unresolved jump
_arg6++;
arguments--;
_arg4++;
_arg5--;
var _local10 = (false - _arg1);
var _local11:Boolean;
if (_local11){
};
var _local7 = (_arg4 - _arg1);
if (!_local10){
};
var _local8 = (_arg5 - _arg2);
var _local9:Number = (_arg3 + _arg6);
if (((_local11) || (_arg2))){
if (!_local10){
if (_local11){
//unresolved jump
_arg3 = (??hasnext
== !NULL!);
//unresolved if
//unresolved if
};
//unresolved if
//unresolved if
};
if (_local11){
};
if (_local7 < _local9){
if (_local11){
//unresolved jump
_arg3++;
true;
_local10++;
//unresolved if
return ((_local9 * !NULL!));
};
};
};
return (false);
}
}
}//package
Section 59
//introMC (introMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class introMC extends MovieClip {
public var t4:TextField;
public var bMenu:MovieClip;
public var t5:TextField;
public var t1:TextField;
public var t2:TextField;
public var t3:TextField;
public function introMC(){
//unresolved jump
var _local1 = (true == (false % false));
if (!((_local1) && (_local1))){
super();
};
}
}
}//package
Section 60
//main (main)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import fl.controls.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
import fl.containers.*;
public class main extends MovieClip {
var intromc:introMC;
var smileyShow:Array;
var b1:button;
var b2:button;
var b3:button3;
var b4:button;
var b5:button;
var b6:button;
var b7:button;
var creditsMenu:MovieClip;
public var introMovie:MovieClip;
var achieveText:Array;
var highscoreMC2:MovieClip;
var tiItem:TextInput;
var seeds:Array;
var creditsDone:Boolean;// = false
var achieveSound:fx;
var mouseH:mouseHandle;
var BG:bg;
var beforeClick:Boolean;// = false
var notifs:Array;
var sprites:Array;
public var Background:MovieClip;
var clickSound:fx;
var Cool:Sprite;
var awesomeSound:fx;
var mcMain:Object;
var achievelist:achieveList;
var sPane:ScrollPane;
var gameBoss:Sprite;
var alienSound:fx;
var specialText:Array;
var exploSound:fx;
var freezeBlue:Sprite;
var oldTime:Number;// = 0
var achievesNeeded:Array;
var credits:MovieClip;
var breakNeeded:Boolean;// = false
var scoreSound:fx;
public var loadBG:MovieClip;
public var logo:MovieClip;
var menu2:Sprite;
var mainMenu:mainmenu;
var gLoop:GameLoop;
var gameState:Number;// = 0
var ghostSound:fx;
var Texts:texts;
public var seedMC:MovieClip;
var soundState:Boolean;// = true
var normSound:fx;
var highscoreMC:MovieClip;
var mainSound:soundtrack;
var scarySound:fx;
var sadSound:fx;
var endlevelmc:endLevelMC;
var startMenu:startmenu;
var achievesGot:Array;
var happyHero:Sprite;
public function main(){
//unresolved jump
var _local1 = (((true % (false + 1)) << ??getglobalscope
) - !NULL!);
var _local2 = _local1;
sprites = new Array();
seeds = new Array();
smileyShow = new Array();
specialText = new Array();
achievesGot = new Array();
achievesNeeded = new Array();
if (!((_local1) && (this))){
notifs = new Array();
//unresolved if
};
mainMenu = new mainmenu();
if (_local2){
sPane = new ScrollPane();
//unresolved if
if (!((_local1) && (_local2))){
//unresolved jump
};
achieveText = ["You've seen the", "normal class!"];
//unresolved if
super();
//unresolved if
};
addFrameScript(0, frame1, 1, frame2, 2, frame3);
if (_local1){
//unresolved jump
(((_local1 + 1) > !NULL!) >= _local2);
};
if (!_local1){
this.addEventListener(Event.ENTER_FRAME, loadGameMain);
};
}
function addAchieves(){
//unresolved jump
_local2--;
var _local2 = (true instanceof false);
var _temp1 = _local2;
_local2 = false;
var _local3 = _temp1;
addChild(menu2);
if (((_local3) || (_local3))){
addChild(b1);
//unresolved if
b1.x = 105;
if (((_local3) || (this))){
b1.y = 370;
if (!((_local2) && (_local3))){
b1.bText.text = "Back";
//unresolved if
};
};
};
sPane.width = 650;
sPane.height = 250;
if (!((_local2) && (_local2))){
sPane.y = 90;
addChild(sPane);
sPane.source = "emptyMC";
mcMain = sPane.content;
};
var _local1:Number = 1;
for (;//unresolved if
, _local1 <= 47;3.gotoAndStop(!NULL!), //unresolved if
, _local1++, //unresolved if
) {
achievelist.getChildByName(("a" + _local1)).a1.text = "???";
achievelist.getChildByName(("a" + _local1)).a2.text = "";
achievelist.getChildByName(("a" + _local1)).achieveimage.gotoAndStop(_local1);
continue;
_local2--;
_local2--;
_local2++;
};
_local1 = 0;
if (!_local2){
while (_local1 < achievesGot.length) {
achievelist.getChildByName(("a" + (achievesGot[_local1] + 1))).a1.text = achieveText[achievesGot[_local1]][0];
achievelist.getChildByName(("a" + (achievesGot[_local1] + 1))).a2.text = achieveText[achievesGot[_local1]][1];
achievelist.getChildByName(("a" + (achievesGot[_local1] + 1))).achieveimage.gotoAndStop((achievesGot[_local1] + 1));
achievelist.getChildByName(("a" + (achievesGot[_local1] + 1))).bg.gotoAndStop(2);
//unresolved if
//unresolved if
_local1++;
//unresolved if
continue;
_local2++;
_local2 = !NULL!;
_local2--;
};
};
mcMain.addChild(achievelist);
sPane.update();
}
function loopHandler(_arg1:Event){
//unresolved jump
arguments--;
_local2--;
_local3--;
_local3--;
var _local4 = this;
switch (gameState){
case 0:
if (mouseH.mouse == true){
//unresolved if
removeStartMenu();
//unresolved if
setMainMenu();
};
//unresolved jump
gLoop.Update((getTimer() - oldTime));
//unresolved if
//unresolved jump
gLoop.Update((getTimer() - oldTime));
updateCredits();
//unresolved if
//unresolved jump
case 4:
checkMenu();
//unresolved if
//unresolved jump
checkCredits();
//unresolved jump
case 6:
//unresolved jump
_local3++;
_local3.checkAchieves();
//unresolved if
//unresolved jump
};
if (((_local4) || (_local2))){
updateSprites();
//unresolved jump
_local3++;
_local2++;
_local3++;
_local3--;
//unresolved if
};
updateAchieves();
if (_local4){
oldTime = getTimer();
};
}
function saveGame(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
//unresolved jump
_arg6--;
arguments--;
_arg2 = false;
var _local8 = //unresolved nextvalue or nextname;
!ERROR! var _local7:SharedObject = SharedObject.getLocal("summerSmashout");
_local7.data.Level = _arg1;
if (_local9){
_local7.data.Score = _arg2;
//unresolved jump
_arg3 = null;
_arg2++;
_arg2++;
_local7.data.YouLost = _arg3;
if (((_local9) || (_arg1))){
_local7.data.OverallKills = _arg4;
//unresolved if
//unresolved jump
_local8--;
_local8 = _arg5;
_local7--;
_arg5 = _local7.data;
(((!NULL! & !NULL!) == !NULL!) | null).GamesWon = !NULL!;
//unresolved if
_local7.data.achievesGot = _arg6;
};
_local7.flush();
};
}
function sponsor(_arg1:MouseEvent){
//unresolved jump
_local2++;
_local2++;
var _local3 = ((true + false) + !NULL!);
!ERROR! //unresolved jump
_local2--;
_local3--;
var _local2:URLRequest = new URLRequest("http://www.timekillgames.com/");
if (_local4){
navigateToURL(_local2, "_blank");
};
}
function closeScores(_arg1:MouseEvent){
var _local2:Boolean;
//unresolved jump
_local2--;
_local2--;
var _local3 = //unresolved nextvalue or nextname;
if (((_local2) || (_arg1))){
highscoreMC2.b1.visible = true;
highscoreMC2.b1.removeEventListener(MouseEvent.MOUSE_DOWN, subScore2);
};
highscoreMC2.b2.removeEventListener(MouseEvent.MOUSE_DOWN, closeScores);
//unresolved jump
_local2--;
_local2++;
if ((((((_local2 & !NULL!) + 1) <= _local2)) || (_local3))){
removeChild(tiItem);
//unresolved if
removeChild(highscoreMC2);
//unresolved if
};
endlevelmc.visible = true;
endlevelmc.subScore.visible = false;
if (!((_local3) && (_local2))){
gLoop.gameState = 5;
gLoop.breakNeeded = true;
};
}
function closeBG(){
//unresolved jump
var _local1:Number = (??getglobalscope
== !NULL!);
!ERROR! //unresolved jump
var _local3:Boolean;
if (!((_local1) && (this))){
Background.removeChild(BG);
};
}
function setMainMenu(){
//unresolved jump
var _local1 = (-(??hasnext
) + 1);
!ERROR! breakNeeded = true;
gameState = 4;
addChild(mainMenu);
if (!_local1){
mainMenu.logo.buttonMode = true;
mainMenu.logo.addEventListener(MouseEvent.MOUSE_DOWN, sponsor);
if (gLoop.level == 0){
b2.alpha = 0.5;
//unresolved if
};
b1.x = 325;
b2.x = 325;
//unresolved if
b3.x = 325;
b4.x = 325;
b5.x = 325;
b6.x = 105;
b7.x = 325;
b3.addEventListener(MouseEvent.MOUSE_DOWN, sponsorLink1);
//unresolved if
b7.addEventListener(MouseEvent.MOUSE_DOWN, sponsorLink2);
b1.y = 100;
b2.y = 150;
if (((_local2) || (this))){
b3.y = 200;
b4.y = 250;
//unresolved jump
//unresolved if
b5.y = 300;
b6.y = 370;
//unresolved if
b7.y = 350;
//unresolved if
b1.bText.text = "New Game";
b2.bText.text = "Continue";
//unresolved if
b3.bText.text = "Games for your site";
b4.bText.text = "Achievements";
b5.bText.text = "Credits";
//unresolved if
b6.bText.text = "Sound: ON";
};
//unresolved jump
b6.bText.text = "Sound: OFF";
//unresolved if
b7.bText.text = "Hi Scores";
//unresolved if
};
addChild(b1);
if (!((_local1) && (this))){
addChild(b2);
addChild(b3);
addChild(b4);
if (_local2){
addChild(b5);
addChild(b6);
//unresolved jump
if (((((!(//unresolved nextvalue or nextname) * ) ^ !NULL!)) || (_local1))){
addChild(b7);
};
};
};
}
function subScore2(_arg1:MouseEvent){
//unresolved jump
var _local3 = (true + false);
var _local4 = ((!NULL! + 1) == !NULL!);
!ERROR! var _local2:URLVariables;
_local3 = null;
if (_local5){
//unresolved if
};
_local2 = new URLVariables();
if (!_local4){
_local2.E8D606CCA0344e8e9B242E3742BE6ECE_SMILEY = "S_Smashout";
if (!((_local4) && (_arg1))){
_local2.ThePlayersNameInfo_Smiley = tiItem.text;
//unresolved jump
_local2++;
_local3++;
_local3++;
if (!_local4){
_local2.TheHighScoreInfo_Smiley = (gLoop.gameHighTempScore * 100);
};
};
};
_local3 = new URLRequest("http://www.timekillgames.com/HiScores/SubmitScore.aspx");
if (!_local4){
_local3.method = URLRequestMethod.POST;
if (_local5){
_local3.contentType = "application/x-www-form-urlencoded";
//unresolved if
_local3.data = _local2;
if (!_local4){
//unresolved jump
_local3--;
_local4++;
_local3.navigateToURL(_local3, "_blank");
//unresolved if
};
};
};
highscoreMC2.b1.visible = false;
}
function createScores(){
//unresolved jump
_local2++;
_local2--;
_local2++;
var _local2 = _local2;
var _local3:Boolean;
if (_local3){
addChild(highscoreMC2);
if (((_local3) || (this))){
highscoreMC2.b1.addEventListener(MouseEvent.MOUSE_DOWN, subScore2);
if (!_local2){
highscoreMC2.b2.addEventListener(MouseEvent.MOUSE_DOWN, closeScores);
//unresolved if
};
};
highscoreMC2.b1.bText.text = "Submit Score";
if (!((_local2) && (_local3))){
//unresolved jump
_local2++;
_local2++;
_local2++;
_local2--;
highscoreMC2.b2.bText.text = ~("Back");
};
};
var _local1:TextFormat = new TextFormat();
_local1.size = 25;
if (((_local3) || (_local2))){
_local1.font = "Arial";
tiItem.x = 232;
if (((_local3) || (this))){
tiItem.y = 184;
if (!_local2){
tiItem.width = 182;
tiItem.height = 30;
};
tiItem.setStyle("textFormat", _local1);
if (_local3){
addChild(tiItem);
//unresolved if
};
};
highscoreMC2.scoreText.text = (gLoop.gameHighTempScore * 100);
};
}
function updateAchieves(){
var _local6:Boolean;
//unresolved jump
_local3--;
var _local7 = ((false / _local3) == ??getglobalscope
);
var _local2:Number;
var _local1:Number = 0;
for (;//unresolved if
, _local1 < notifs.length;(!NULL![!NULL!][0].visible = false), (notifs[_local1][2] = 0), //unresolved if
, //unresolved if
, _local1++, //unresolved if
) {
//unresolved if
//unresolved if
if (((this.numChildren - 1) - _local1) > getChildIndex(notifs[_local1][0])){
addChild(notifs[_local1][0]);
//unresolved if
};
if (notifs[_local1][0].x < 10){
notifs[_local1][0].x = (notifs[_local1][0].x + 5);
//unresolved if
} else {
if (notifs[_local1][2] >= 120){
notifs[_local1][0].alpha = (notifs[_local1][0].alpha - 0.05);
//unresolved if
if (notifs[_local1][0].alpha <= 0){
notifs[_local1][1] = 1;
//unresolved if
};
};
};
var _local3 = notifs[_local1];
var _local4 = 2;
var _local5 = (_local3[_local4] + 1);
if (((_local6) || (_local3))){
_local3[_local4] = _local5;
};
//unresolved if
//unresolved if
notifs[_local1][0].alpha = 1;
continue;
_local6--;
_local5--;
_local6--;
};
if (_local6){
//unresolved if
_local1 = 0;
//unresolved jump
};
if (!_local7){
_local2 = 0;
//unresolved jump
//unresolved if
achieveSound.Play();
//unresolved if
addChild(notifs[_local2][0]);
notifs[_local2][0].x = -200;
notifs[_local2][0].a1.text = achieveText[achievesNeeded[_local1]][0];
notifs[_local2][0].a2.text = achieveText[achievesNeeded[_local1]][1];
notifs[_local2][1] = 0;
notifs[_local2][0].visible = true;
notifs[_local2][0].achieveimage.gotoAndStop((achievesNeeded[_local1] + 1));
achievesNeeded.splice(_local1, 1);
};
if (!((_local7) && (_local1))){
_local1 = (0 - 1);
//unresolved jump
_local2++;
//unresolved if
};
//unresolved if
if (((_local6) || (_temp1))){
_local1++;
};
//unresolved if
}
function addScores(){
var _local1:Boolean;
//unresolved jump
var _local2:Boolean;
//unresolved jump
var _temp1 = ((((false > _local3) >>> !NULL!) - !NULL!) < !NULL!);
var _local3 = _local1;
if (!-((((_temp1 - _local3) + !NULL!) + 1))){
!NULL!;
};
if (!NULL!){
addChild(endlevelmc);
//unresolved if
};
endlevelmc.subScore.visible = false;
}
function addIntro(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((??hasnext
>= !NULL!) + !NULL!) < !NULL!);
if (!((_local2) && (_local1))){
addChild(intromc);
};
}
function subScore(_arg1:MouseEvent){
//unresolved jump
_local4++;
var _local4 = (arguments - null);
var _local5 = (true == (false + 1));
var _local2:URLVariables;
var _local3:URLRequest;
if (!((_local4) && (_local3))){
//unresolved if
};
_local2 = new URLVariables();
if (!_local4){
_local2.E8D606CCA0344e8e9B242E3742BE6ECE_SMILEY = "S_Smashout";
//unresolved if
};
_local2.ThePlayersNameInfo_Smiley = tiItem.text;
if (_local4){
//unresolved jump
(((!NULL! * !NULL!) & !NULL!) as !NULL!);
};
if (!_local4){
_local2.TheHighScoreInfo_Smiley = (gLoop.score * 100);
};
_local3 = new URLRequest("http://www.timekillgames.com/HiScores/SubmitScore.aspx");
if (!((_local4) && (_local3))){
_local3.method = URLRequestMethod.POST;
if (_local5){
_local3.contentType = "application/x-www-form-urlencoded";
if (_local5){
_local3.data = _local2;
if (!_local4){
navigateToURL(_local3, "_blank");
//unresolved jump
_local2--;
_local2--;
if (_local4){
_local4;
};
//unresolved if
};
};
};
highscoreMC.b1.visible = false;
};
}
function removeIntro(){
//unresolved jump
var _local1 = (((_local3 < null) === undefined) + 1);
var _local2:Boolean;
//unresolved jump
if (((_local2) || (this))){
removeChild(intromc);
};
}
function submitScore(){
var _local2:Boolean;
//unresolved jump
_local2--;
_local2--;
if (!_local3){
addChild(highscoreMC);
if (!((_local3) && (arguments))){
highscoreMC.b1.addEventListener(MouseEvent.MOUSE_DOWN, subScore);
if (!((_local3) && (this))){
highscoreMC.b2.addEventListener(MouseEvent.MOUSE_DOWN, bringCredits);
//unresolved if
};
};
//unresolved jump
_local2 = ((highscoreMC.b1.bText < "Submit Score") + 1);
!NULL!.text = ((false + ) >= !NULL!);
if (_local2){
highscoreMC.b2.bText.text = "Continue";
};
};
var _local1:TextFormat = new TextFormat();
_local1.size = 25;
if (_local2){
_local1.font = "Arial";
};
tiItem.x = 225;
tiItem.y = 184;
tiItem.width = 182;
tiItem.height = 30;
if (_local2){
tiItem.setStyle("textFormat", _local1);
//unresolved if
//unresolved jump
((_local2 + _local2) + ).addChild(tiItem);
};
highscoreMC.scoreText.text = (gLoop.score * 100);
}
function removeMainMenu(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((false * this) < !NULL!) is !NULL!);
mainMenu.logo.removeEventListener(MouseEvent.MOUSE_DOWN, sponsor);
if (_local1){
b3.removeEventListener(MouseEvent.MOUSE_DOWN, sponsorLink1);
if (!_local2){
b7.removeEventListener(MouseEvent.MOUSE_DOWN, sponsorLink2);
//unresolved if
removeChild(mainMenu);
//unresolved if
removeChild(b1);
if (_local1){
removeChild(b2);
//unresolved if
};
};
removeChild(b3);
if (!_local2){
removeChild(b4);
removeChild(b5);
//unresolved jump
};
};
removeChild(b6);
removeChild(b7);
b2.alpha = 1;
}
function deleteSprite(_arg1, _arg2){
var _local4:Boolean;
//unresolved jump
_arg2++;
var _local5 = ( * _arg2);
switch (_local3){
removeChild(sprites[_arg1]);
sprites.splice(_arg1, 1);
break;
removeChild(Cool);
//unresolved if
break;
seedMC.removeChild(seeds[_arg1]);
seeds.splice(_arg1, 1);
break;
removeChild(freezeBlue);
//unresolved if
removeChild(Cool);
break;
case 4:
removeChild(smileyShow[_arg1]);
smileyShow.splice(_arg1, 1);
break;
};
}
function frame1(){
//unresolved jump
var _local1 = (((true == false) + !NULL!) ^ undefined);
!ERROR! if (_local2){
stop();
};
}
function checkAchieves(){
var _local1:Boolean;
//unresolved jump
var _local3:int = (false >>> );
var _local2:uint = (!NULL! === !NULL!);
if (((_local1) || (_local2))){
if (!_local2){
//unresolved if
//unresolved if
};
(mouseX > (b1.x - 88));
//unresolved if
//unresolved if
//unresolved if
if ((mouseY > (b1.y - 22))){
(mouseY > (b1.y - 22));
//unresolved jump
((b1.y + 22) - 1);
};
//unresolved if
//unresolved if
};
b1.gotoAndStop(2);
if (mouseH.mouse){
if (!_local2){
mouseH.mouse;
};
};
if (mouseH.mouse){
//unresolved if
b1.gotoAndStop(1);
//unresolved if
removeAchieves();
clickSound.Play();
//unresolved if
setMainMenu();
//unresolved if
};
//unresolved jump
//unresolved jump
this.gotoAndStop(??getglobalscope
);
//unresolved jump
b1.gotoAndStop(1);
beforeClick = mouseH.mouse;
}
function addText(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((!((((false + 1) <= !NULL!) + !NULL!)) >= !NULL!) < !NULL!);
if (_local1){
//unresolved jump
undefined.addEventListener(-(false), sponsor);
//unresolved if
//unresolved jump
Texts.webLink.buttonMode = true;
//unresolved if
};
addChild(Texts);
}
function checkCredits(){
//unresolved jump
(true * (false + NaN));
var _local1 = -(!NULL!);
!ERROR! if (((_local2) || (_local2))){
//unresolved if
//unresolved if
};
(mouseX > (b1.x - 88));
if (!_local1){
//unresolved if
//unresolved if
};
if (_local2){
if ((mouseY > (b1.y - 22))){
(mouseY > (b1.y - 22));
//unresolved jump
var _local3:Boolean;
//unresolved if
};
//unresolved if
b1.gotoAndStop(2);
};
if ((((mouseY > (b1.y - 22))) && (!(beforeClick)))){
b1.gotoAndStop(1);
//unresolved if
removeCredits();
setMainMenu();
clickSound.Play();
//unresolved if
};
//unresolved jump
b1.gotoAndStop(1);
//unresolved jump
b1.gotoAndStop(1);
//unresolved jump
if (((((!NULL! + !NULL!) < !NULL!) * !NULL!) < !NULL!)){
!NULL!;
};
if (!!NULL!){
beforeClick = mouseH.mouse;
};
}
function startGame(){
//unresolved jump
var _local1 = (!NULL! / !NULL!);
!ERROR! if (((_local2) || (true))){
gameState = 1;
if (((_local2) || (_local2))){
makeBG();
//unresolved if
};
};
gLoop.initLevel();
}
function frame3(){
var _local1:Boolean;
//unresolved jump
var _local2 = ??getglobalscope
;
if (!_local2){
stop();
};
}
function newNotif(_arg1){
//unresolved jump
var _local2 = arguments;
var _local4:Number = (true < (false - 1));
!ERROR! _local2 = false;
var _local3:Number = 0;
for (;_local3 < achievesGot.length;if (!NULL!){
if (((_local5) || (this))){
//unresolved if
};
}, (_local3 = !NULL!), //unresolved if
) {
if (achievesGot[_local3] == _arg1){
//unresolved if
//unresolved if
_local2 = true;
};
continue;
_local4--;
};
if (!_local2){
achievesNeeded.push(_arg1);
//unresolved jump
_local4--;
_local2--;
_local3++;
if (!((typeof(_local4)) && (_local3))){
achievesGot.push(_arg1);
};
};
}
function removeCredits(){
//unresolved jump
var _local1:String = (//unresolved nextvalue or nextname >>> arguments);
!ERROR! if (!_local1){
//unresolved jump
undefined.removeChild(mainMenu);
if (_local2){
removeChild(creditsMenu);
//unresolved jump
//unresolved if
};
removeChild(b1);
};
}
function sponsorLink2(_arg1:MouseEvent){
//unresolved jump
arguments--;
var _local2 = (true | false);
_local3++;
!ERROR! !ERROR! //unresolved jump
_local3--;
_local2++;
_local2--;
_local2 = new (( % !NULL!) instanceof ( % !NULL!)).URLRequest("http://www.timekillgames.com/HiScores/SmileySmashoutHiScores.aspx");
if (((_local4) || (_local2))){
navigateToURL(_local2, "_blank");
};
}
function checkMenu(){
//unresolved jump
var _local1:String = //unresolved nextvalue or nextname;
!ERROR! if (_local2){
if (!_local1){
if ((mouseX > (b1.x - 88))){
(mouseX > (b1.x - 88));
//unresolved if
//unresolved if
};
//unresolved if
//unresolved if
if ((((mouseY > (b1.y - 22))) && ((mouseY < (b1.y + 22))))){
if (((mouseH.mouse) && (!(beforeClick)))){
//unresolved if
if (!breakNeeded){
removeMainMenu();
saveGame(0, 0, gLoop.youLost, gLoop.overallKills, gLoop.gamesWon, achievesGot);
loadGame();
gameState = 0;
gLoop.breakNeeded = true;
startGame();
clickSound.Play();
};
};
b1.gotoAndStop(2);
} else {
b1.gotoAndStop(1);
};
//unresolved if
//unresolved if
//unresolved if
};
if ((mouseX > (b1.x - 88))){
(mouseX > (b1.x - 88));
};
if ((mouseX > (b1.x - 88))){
if (!breakNeeded){
if (b2.alpha == 1){
loadGame();
gLoop.breakNeeded = true;
gameState = 0;
removeMainMenu();
startGame();
clickSound.Play();
};
};
};
if (b2.alpha == 1){
//unresolved if
b2.gotoAndStop(2);
};
//unresolved jump
b2.gotoAndStop(1);
if ((mouseY > (b3.y - 22))){
//unresolved if
(mouseY > (b3.y - 22));
//unresolved if
};
if ((mouseY > (b3.y - 22))){
//unresolved if
//unresolved if
//unresolved if
if (mouseH.mouse){
mouseH.mouse;
//unresolved if
};
if (mouseH.mouse){
if (!breakNeeded){
//unresolved if
};
};
b3.gotoAndStop(2);
//unresolved if
} else {
b3.gotoAndStop(1);
//unresolved if
};
if (_local2){
if ((mouseY > (b4.y - 22))){
//unresolved if
(mouseY > (b4.y - 22));
//unresolved if
};
if ((mouseY > (b4.y - 22))){
//unresolved if
if (mouseH.mouse){
//unresolved if
mouseH.mouse;
//unresolved if
//unresolved if
};
if (mouseH.mouse){
if (!breakNeeded){
removeMainMenu();
//unresolved if
addAchieves();
//unresolved if
gameState = 6;
//unresolved if
clickSound.Play();
//unresolved if
};
};
b4.gotoAndStop(2);
} else {
b4.gotoAndStop(1);
//unresolved if
};
//unresolved jump
};
if ((((mouseY > (b4.y - 22))) && ((mouseY < (b5.y + 22))))){
//unresolved if
if (((mouseH.mouse) && (!(beforeClick)))){
if (!breakNeeded){
removeMainMenu();
addCredits();
gameState = 5;
//unresolved if
clickSound.Play();
};
};
b5.gotoAndStop(2);
} else {
b5.gotoAndStop(1);
};
if ((((mouseY > (b7.y - 22))) && ((mouseY < (b7.y + 22))))){
//unresolved if
if (mouseH.mouse){
mouseH.mouse;
//unresolved if
};
if (mouseH.mouse){
if (!breakNeeded){
};
};
b7.gotoAndStop(2);
//unresolved if
} else {
b7.gotoAndStop(1);
};
//unresolved jump
b1.gotoAndStop(1);
b2.gotoAndStop(1);
b3.gotoAndStop(1);
if (((_local2) || (this))){
b4.gotoAndStop(1);
//unresolved if
b5.gotoAndStop(1);
b7.gotoAndStop(1);
//unresolved if
if ((mouseX > (b6.x - 88))){
//unresolved if
(mouseX > (b6.x - 88));
//unresolved if
};
//unresolved if
//unresolved if
if (((_local2) || (this))){
if ((mouseY > (b6.y - 22))){
(mouseY > (b6.y - 22));
//unresolved if
};
//unresolved if
//unresolved if
b6.gotoAndStop(2);
//unresolved if
//unresolved if
};
//unresolved if
(mouseY > (b6.y - 22));
};
//unresolved if
//unresolved if
b6.gotoAndStop(2);
//unresolved if
b6.bText.text = "Sound: OFF";
mainSound.stopSound();
//unresolved if
normSound.Pause = true;
//unresolved if
awesomeSound.Pause = true;
sadSound.Pause = true;
alienSound.Pause = true;
if (!_local1){
ghostSound.Pause = true;
scarySound.Pause = true;
};
scoreSound.Pause = true;
if (!_local1){
clickSound.Pause = true;
//unresolved if
};
achieveSound.Pause = true;
};
exploSound.Pause = true;
soundState = false;
//unresolved jump
b6.bText.text = "Sound: ON";
normSound.Pause = false;
awesomeSound.Pause = false;
sadSound.Pause = false;
alienSound.Pause = false;
ghostSound.Pause = false;
scarySound.Pause = false;
scoreSound.Pause = false;
if (_local2){
clickSound.Pause = false;
//unresolved if
achieveSound.Pause = false;
exploSound.Pause = false;
mainSound.playSound();
soundState = true;
//unresolved if
//unresolved jump
b6.gotoAndStop(1);
//unresolved jump
b6.gotoAndStop(1);
//unresolved if
};
beforeClick = mouseH.mouse;
if (((_local2) || (_local2))){
//unresolved if
};
breakNeeded = false;
}
function updateSprites(){
//unresolved jump
_local2++;
_local2--;
_local2--;
var _local2 = _local2;
var _local3 = (true < false);
if (gameState == 3){
if (!_local2){
gameBoss.x = gLoop.gameBoss[1];
};
gameBoss.y = gLoop.gameBoss[2];
happyHero.x = mouseX;
happyHero.y = (gLoop.happyHero[0] + 25);
gameBoss.rotation = (gameBoss.rotation + gLoop.gameBoss[3]);
};
var _local1:Number = 0;
while (//unresolved if
, _local1 < gLoop.smileys.length) {
sprites[_local1].x = gLoop.smileys[_local1][3];
sprites[_local1].y = gLoop.smileys[_local1][4];
//unresolved if
_local1++;
};
if (((_local3) || (_local2))){
//unresolved if
_local1 = 0;
if (!((_local2) && (_local1))){
//unresolved jump
seeds[_local1].x = gLoop.seeds[_local1][1];
seeds[_local1].y = gLoop.seeds[_local1][2];
if (!gLoop.freezeMe){
seeds[_local1].rotation = (seeds[_local1].rotation + 5);
};
_local1++;
};
//unresolved if
//unresolved if
if (((_local3) || (_local2))){
_local1 = 0;
//unresolved if
while (_local1 < gLoop.smileyShow.length) {
smileyShow[_local1].x = gLoop.smileyShow[_local1][1];
smileyShow[_local1].y = gLoop.smileyShow[_local1][2];
//unresolved if
_local1++;
};
};
};
_local1 = 0;
for (;_local1 < gLoop.specialText.length;_local1++) {
specialText[_local1].x = gLoop.specialText[_local1][1];
specialText[_local1].y = gLoop.specialText[_local1][2];
if (gLoop.specialText[_local1][5] == 0){
gLoop.specialText[_local1][2] = (gLoop.specialText[_local1][2] - gLoop.specialText[_local1][4]);
};
if (!((_local2) && (_local1))){
//unresolved if
//unresolved if
};
(gLoop.specialText[_local1][5] == 0);
if ((gLoop.specialText[_local1][5] == 2)){
gLoop.specialText[_local1][3] = (gLoop.specialText[_local1][3] - 0.04);
if (gLoop.specialText[_local1][3] < 0){
deleteText(_local1);
break;
};
specialText[_local1].alpha = gLoop.specialText[_local1][3];
//unresolved if
continue;
_local2--;
};
};
}
function deleteText(_arg1){
var _local2:Boolean;
//unresolved jump
_local2--;
_local2++;
var _local3 = _local2;
if (_local2){
//unresolved jump
_local2++;
_local2 = ( % specialText[_arg1]);
_local2--;
_local2 = (((false - !NULL!) * !NULL!) % !NULL!);
!NULL!.removeChild(!NULL!);
//unresolved if
};
//unresolved jump
_local2 = _arg1;
_local2--;
(((((false - !NULL!) * !NULL!) % !NULL!) ^ -(specialText)) * !NULL!).splice(1, !NULL!);
if (!_local3){
gLoop.specialText.splice(_arg1, 1);
};
}
function deleteCreditSpecials(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((false === !NULL!) + !NULL!) % !NULL!);
_local2 = (??getglobalscope
== !NULL!);
if (((_local1) || (_local2))){
creditsDone = true;
if (!_local2){
removeChild(gameBoss);
//unresolved jump
//unresolved if
};
removeChild(happyHero);
//unresolved if
};
newNotif(41);
//unresolved jump
if (!((false) && (this))){
gLoop.gameState = 7;
};
}
function updateCredits(){
var _local1:Boolean;
//unresolved jump
var _local2:Object = ((//unresolved nextvalue or nextname <= null) >>> !NULL!);
if (credits.currentFrame == 970){
gameBoss.rotation = 0;
//unresolved jump
(typeof((~((gLoop & !NULL!)) <= !NULL!)) | !NULL!).eraseLevel();
Mouse.show();
gameState = 0;
Background.removeChild(credits);
if (!creditsDone){
//unresolved jump
(((( * !NULL!) - 1) < !NULL!) instanceof !NULL!).removeChild(gameBoss);
removeChild(happyHero);
//unresolved if
};
setFirstMenu();
};
}
function frame2(){
//unresolved jump
!ERROR! !ERROR! if (!((_local1) && (this))){
stop();
};
}
function sponsorLink1(_arg1:MouseEvent){
var _local3:Boolean;
//unresolved jump
arguments--;
var _local4 = _local3;
//unresolved jump
_local3--;
var _local2:URLRequest = new URLRequest("http://www.timekillgames.com/FreeGamesForYourWebsite/FreeGamesForWebmasters.aspx");
if (!_local4){
navigateToURL(_local2, "_blank");
};
}
function specText(_arg1, _arg2){
//unresolved jump
var _local5 = ((((true as false) == !NULL!) >> !NULL!) + null);
!ERROR! var _local3:Sprite;
switch ((_local4)-1){
switch (_arg1){
case 0:
_local3 = new t0();
//unresolved if
//unresolved jump
_local3 = new t1();
//unresolved jump
_local3 = new t2();
//unresolved jump
_local3 = new t3();
//unresolved jump
_local3 = new t4();
//unresolved jump
_local3 = new t5();
//unresolved jump
_local3 = new t6();
//unresolved jump
_local3 = new t7();
//unresolved jump
_local3 = new t8();
//unresolved jump
_local3 = new t9();
//unresolved jump
_local3 = new p1();
//unresolved jump
_local3 = new p100();
//unresolved jump
};
//unresolved if
_local3.x = -200;
if (((_local6) || (_arg1))){
_local3.y = -200;
//unresolved if
};
specialText.push(_local3);
if (_local6){
addChild(specialText[(specialText.length - 1)]);
};
break;
_local3 = new comboText();
if (!((_local5) && (_arg2))){
_local3.x = -200;
//unresolved if
_local3.y = -200;
//unresolved if
};
specialText.push(_local3);
if (!((_local5) && (_arg2))){
specialText[(specialText.length - 1)].Text.text = ("x" + _arg1);
//unresolved if
};
addChild(specialText[(specialText.length - 1)]);
break;
};
}
function bringCredits(_arg1:MouseEvent){
//unresolved jump
arguments--;
_local2--;
_local2--;
var _local2 = ??hasnext
;
var _local3:Boolean;
highscoreMC.b1.visible = true;
highscoreMC.b1.removeEventListener(MouseEvent.MOUSE_DOWN, subScore);
highscoreMC.b2.removeEventListener(MouseEvent.MOUSE_DOWN, bringCredits);
removeChild(tiItem);
removeChild(highscoreMC);
if (_local3){
creditsDone = false;
//unresolved if
Mouse.hide();
};
//unresolved jump
0;
_local2++;
0.gameBoss = [(650 / 2), -80, false, _local2];
gLoop.happyHero = [400];
if (!((_local2) && (_arg1))){
gLoop.gameState = 6;
};
gameState = 3;
if (((_local3) || (_local2))){
closeBG();
};
Background.addChild(credits);
addChild(gameBoss);
if (!((_local2) && (_local2))){
//unresolved jump
_local2--;
((gLoop + gameBoss) >= !NULL!).x = (650 / 2);
credits.play();
};
addChild(happyHero);
}
function removeStartMenu(){
var _local1:Boolean;
//unresolved jump
var _local2:Boolean;
_local2 = ~(_local2);
if (!((_local2) && ())){
startMenu.logo.removeEventListener(MouseEvent.MOUSE_DOWN, sponsor);
//unresolved jump
//unresolved if
};
removeChild(startMenu);
}
function deleteText2(_arg1){
var _local2:Boolean;
//unresolved jump
_local2++;
_local2 = false;
var _local3 = (!NULL! <= _local2);
//unresolved jump
_local2++;
if (!_local3){
removeChild(specialText[_arg1]);
//unresolved if
};
specialText.splice(_arg1, 1);
}
function initStuff(){
var _local3:Boolean;
//unresolved jump
_local3++;
_local2++;
var _local4 = (//unresolved nextvalue or nextname & !NULL!);
var _local1:Sprite;
Cool = new cool();
freezeBlue = new FreezeBlue();
if (!((_local4) && (_local2))){
BG = new bg();
intromc = new introMC();
if (!((_local4) && (_local1))){
endlevelmc = new endLevelMC();
//unresolved if
};
};
Texts = new texts();
if (!_local4){
addChild(Texts);
};
var _local2:Number = 0;
while (_local2 < 4) {
_local1 = new achieve();
if (_local3){
notifs[_local2] = new Array();
if (_local3){
notifs[_local2][0] = _local1;
//unresolved if
notifs[_local2][0].visible = false;
notifs[_local2][1] = 1;
//unresolved if
notifs[_local2][0].y = ((stage.stageHeight - 70) - (_local2 * 70));
//unresolved if
};
notifs[_local2][2] = 0;
if (!_local4){
addChild(notifs[_local2][0]);
if (((_local3) || (this))){
if (!((_local4) && (_local1))){
};
};
};
};
};
//unresolved jump
_local2--;
false.normSound = new fx(happyS);
awesomeSound = new fx(awesomeS);
sadSound = new fx(sadS);
if (_local3){
alienSound = new fx(alienS);
if (!_local4){
ghostSound = new fx(ghostS);
scarySound = new fx(scaryS);
//unresolved if
scoreSound = new fx(scoreS);
//unresolved if
};
achieveSound = new fx(achieveS);
exploSound = new fx(exploS);
if (!_local4){
clickSound = new fx(clickS);
//unresolved if
mainSound = new soundtrack(theme);
};
achievelist = new achieveList();
if (_local3){
credits = new Credits();
startMenu = new startmenu();
};
creditsMenu = new CreditsMenu();
gameBoss = new boss();
};
happyHero = new happy();
if (((_local3) || (_local1))){
b1 = new button();
//unresolved if
b2 = new button();
};
b3 = new button3();
if (!_local4){
b4 = new button();
b5 = new button();
//unresolved if
};
b6 = new button();
b7 = new button();
tiItem = new TextInput();
//unresolved jump
_local3 = ( >>> new highScoreMC());
-(!NULL!).highscoreMC = !NULL!;
highscoreMC2 = new highScoreMC2();
menu2 = new MenuTwo();
}
function removeScores(){
var _local1:Boolean;
//unresolved jump
var _local2:Boolean = !((((false is !NULL!) - 1) & !NULL!));
if (_local1){
removeChild(endlevelmc);
};
}
function addCredits(){
//unresolved jump
var _local1:String = _local3;
var _local2 = ((true * (false + )) >= !NULL!);
if (_local2){
//unresolved jump
(((//unresolved nextvalue or nextname * !NULL!) + 1) * _local1).addChild(!NULL!);
addChild(creditsMenu);
};
addChild(b1);
//unresolved jump
(((??hasnext
< !NULL!) ^ !NULL!) is !NULL!).x = 105;
b1.y = 370;
b1.bText.text = "Back";
}
function loadGameMain(_arg1:Event){
//unresolved jump
_local4++;
var _local2 = (((true == false) > !NULL!) - 1);
!ERROR! !ERROR! _local2 = null;
var _local3:String;
if (this.loaderInfo.bytesTotal == this.loaderInfo.bytesLoaded){
if (this.currentFrame == 2){
if (this.introMovie.currentFrame == 1){
//unresolved if
this.introMovie.nextFrame();
//unresolved if
};
if (this.introMovie.currentFrame < 204){
this.introMovie.nextFrame();
} else {
this.gotoAndStop(3);
//unresolved if
};
};
if (this.currentFrame == 3){
//unresolved if
this.removeEventListener(Event.ENTER_FRAME, loadGameMain);
//unresolved if
_local2 = "flashgamelicense.com";
if (((_local5) || (this))){
_local3 = this.root.loaderInfo.url.split("/")[2];
if (!_local4){
whenLoaded();
//unresolved if
};
return;
};
};
this.gotoAndStop(2);
} else {
//unresolved jump
_local4++;
(this.loaderInfo.bytesLoaded / this.loaderInfo);
_local2--;
((((this.loadBG.lText.lTextText / ("Loading... " + 1).bytesTotal) * 100).round(!NULL!) + !NULL!) + "%").text = !NULL!;
};
}
function makeBG(){
var _local1:Boolean;
//unresolved jump
var _local3:Boolean;
var _local2 = (( + !NULL!) instanceof undefined);
if (_local1){
Background.addChild(BG);
};
}
function removeText(){
var _local1:Boolean;
//unresolved jump
var _local2 = (!NULL! + !NULL!);
if (!_local2){
//unresolved jump
((!NULL! >> (!NULL! / !NULL!)) + 1).webLink.removeEventListener(MouseEvent.MOUSE_UP, sponsor);
//unresolved jump
if (!((((((_local2 | !NULL!) >> !NULL!) + !NULL!) + !NULL!)) && (this))){
removeChild(Texts);
};
};
}
function whenLoaded(){
var _local1:Boolean;
//unresolved jump
var _local2:Boolean;
if (((_local1) || (_local1))){
initStuff();
};
mouseH = new mouseHandle(this);
if (((_local1) || ((_local3 < ((_local1 >= (_local1 + 1)) is ))))){
gLoop = new GameLoop(this);
if (!((_local2) && (this))){
gLoop.Width = stage.stageWidth;
gLoop.Height = stage.stageHeight;
//unresolved jump
addEventListener(((undefined + 1) ^ Event.ENTER_FRAME), loopHandler);
setFirstMenu();
};
loadGame();
this.gotoAndStop(3);
};
}
function createSprite(_arg1, _arg2){
//unresolved jump
arguments--;
_arg2--;
_local4++;
var _local5 = (arguments >> );
var _local6:Boolean;
var _local3:Sprite;
if (_local6){
//unresolved if
//unresolved if
//unresolved if
(_arg1 == 0);
//unresolved if
};
if ((_arg1 == 2)){
};
switch (_arg1){
switch (_arg2){
case 0:
_local3 = new Norm();
//unresolved jump
_local3 = new dep();
//unresolved jump
_local3 = new alien();
//unresolved jump
_local3 = new vamp();
//unresolved jump
_local3 = new happy();
//unresolved jump
_local3 = new cool();
//unresolved jump
_local3 = new ghost();
//unresolved jump
_local3 = new changer();
//unresolved jump
};
//unresolved if
sprites.push(_local3);
//unresolved if
addChild(sprites[(sprites.length - 1)]);
break;
Cool.x = (mouseX - (gLoop.smileyHeight / 2));
if (!_local5){
Cool.y = (mouseY - (gLoop.smileyHeight / 2));
if (!_local5){
addChild(Cool);
};
};
break;
switch (_arg2){
_local3 = new shocked();
seeds.push(_local3);
//unresolved if
seedMC.addChild(seeds[(seeds.length - 1)]);
//unresolved if
break;
_local3 = new alienSmall();
if (_local6){
seeds.push(_local3);
//unresolved if
};
seedMC.addChild(seeds[(seeds.length - 1)]);
break;
};
break;
addChild(freezeBlue);
Cool.x = (mouseX - (gLoop.smileyHeight / 2));
Cool.y = (mouseY - (gLoop.smileyHeight / 2));
addChild(Cool);
//unresolved if
break;
switch (_arg2){
_local3 = new Norm();
//unresolved if
break;
_local3 = new dep();
break;
_local3 = new alien();
break;
_local3 = new vamp();
break;
_local3 = new happy();
break;
_local3 = new cool();
break;
_local3 = new ghost();
break;
_local3 = new changer();
break;
};
smileyShow.push(_local3);
if (_local6){
addChild(smileyShow[(smileyShow.length - 1)]);
};
break;
};
}
function setFirstMenu(){
//unresolved jump
var _local1 = (((true is undefined) / !NULL!) - !NULL!);
!ERROR! if (_local2){
gameState = 0;
//unresolved jump
_local2 = NaN;
if (!((_local1) && (this))){
//unresolved jump
(((( >>> startMenu) | undefined) + 1) - 1).addChild(_local2);
//unresolved if
};
startMenu.logo.addEventListener(MouseEvent.MOUSE_DOWN, sponsor);
};
}
function removeAchieves(){
//unresolved jump
var _local1 = ((_local2 >>> false) - 1);
var _local2 = ((true - false) - 1);
if (!_local1){
removeChild(menu2);
if (_local1){
//unresolved jump
undefined;
};
if (!_local1){
removeChild(b1);
//unresolved if
};
};
mcMain.removeChild(achievelist);
//unresolved jump
if (!(((false <= (undefined >> _local2))) && (_local1))){
removeChild(sPane);
};
}
function loadGame(){
//unresolved jump
_local2++;
_local2--;
_local2--;
_local2++;
var _local2 = _local2;
var _local3 = (true * false);
var _local1:SharedObject = SharedObject.getLocal("summerSmashout");
if (_local1.data.Level != undefined){
gLoop.level = _local1.data.Level;
//unresolved jump
_local2 = _local1.data;
_local2--;
((gLoop == !NULL!) instanceof !NULL!).Score.score = !NULL!;
gLoop.youLost = _local1.data.YouLost;
gLoop.overallKills = _local1.data.OverallKills;
if (!((_local2) && (_local3))){
//unresolved jump
_local2--;
_local2++;
_local2++;
_local2++;
gLoop.gamesWon = (_local1.data >>> _local2).GamesWon;
if (_local3){
achievesGot = _local1.data.achievesGot;
};
};
};
}
}
}//package
Section 61
//mainmenu (mainmenu)
package {
import flash.display.*;
public dynamic class mainmenu extends MovieClip {
public var logo:MovieClip;
public function mainmenu(){
var _local1:Boolean;
//unresolved jump
var _local2:*;
if (!_local2){
super();
};
}
}
}//package
Section 62
//MenuTwo (MenuTwo)
package {
import flash.display.*;
public dynamic class MenuTwo extends MovieClip {
public function MenuTwo(){
//unresolved jump
!ERROR! !ERROR! !ERROR! if (!((_local1) && (_local2))){
super();
};
}
}
}//package
Section 63
//mouseHandle (mouseHandle)
package {
import flash.display.*;
import flash.events.*;
public class mouseHandle extends Sprite {
var mouse:Boolean;// = false
public function mouseHandle(_arg1){
var _local2:Boolean;
//unresolved jump
_local2++;
_local2++;
var _local3 = _local2;
if (_local2){
super();
//unresolved jump
_local2++;
_local2++;
var _temp1 = _local2;
_local2 = (_local3 > _local3);
if (_temp1){
~(false);
};
//unresolved if
//unresolved jump
_local2++;
_local2++;
mouseIsDown.addEventListener(this, ??hasnext
);
//unresolved if
};
_arg1.stage.addEventListener(MouseEvent.MOUSE_UP, mouseIsUp);
}
function mouseIsUp(_arg1:MouseEvent){
var _local2:Boolean;
//unresolved jump
_local2--;
var _local3:int = false;
if (_local2){
mouse = false;
};
}
function mouseIsDown(_arg1:MouseEvent){
//unresolved jump
_local2++;
_local2--;
_local2++;
var _local2:Boolean;
var _local3:Boolean;
if (!_local2){
mouse = true;
};
}
}
}//package
Section 64
//Norm (Norm)
package {
import flash.display.*;
public dynamic class Norm extends MovieClip {
public function Norm(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((((false - 1) / !NULL!) - _local3) >> !NULL!);
if (_local1){
super();
};
}
}
}//package
Section 65
//p1 (p1)
package {
import flash.display.*;
public dynamic class p1 extends MovieClip {
public function p1(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((false + !NULL!) * !NULL!) % !NULL!);
if (!_local2){
super();
};
}
}
}//package
Section 66
//p100 (p100)
package {
import flash.display.*;
public dynamic class p100 extends MovieClip {
public function p100(){
var _local1:Boolean;
//unresolved jump
var _local2 = //unresolved nextvalue or nextname;
if (((_local1) || (_local2))){
super();
};
}
}
}//package
Section 67
//sadS (sadS)
package {
import flash.media.*;
public dynamic class sadS extends Sound {
public function sadS(){
//unresolved jump
var _local1 = !(!NULL!);
!ERROR! if (!_local1){
super();
};
}
}
}//package
Section 68
//scaryS (scaryS)
package {
import flash.media.*;
public dynamic class scaryS extends Sound {
public function scaryS(){
//unresolved jump
var _local1 = (typeof((true as false)) is !NULL!);
!ERROR! if (_local2){
super();
};
}
}
}//package
Section 69
//scoreS (scoreS)
package {
import flash.media.*;
public dynamic class scoreS extends Sound {
public function scoreS(){
//unresolved jump
var _local1 = (//unresolved nextvalue or nextname - !NULL!);
!ERROR! if (((_local2) || (_local1))){
super();
};
}
}
}//package
Section 70
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_disabledSkin extends MovieClip {
public function ScrollArrowDown_disabledSkin(){
//unresolved jump
var _local1:Number;
var _local2 = ??hasnext
;
if (_local2){
super();
};
}
}
}//package
Section 71
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_downSkin extends MovieClip {
public function ScrollArrowDown_downSkin(){
var _local1:Boolean;
//unresolved jump
var _local2 = ??hasnext
;
if (((_local1) || (_local2))){
super();
};
}
}
}//package
Section 72
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_overSkin extends MovieClip {
public function ScrollArrowDown_overSkin(){
//unresolved jump
var _local1 = (!(??hasnext
) - null);
!ERROR! if (!_local1){
super();
};
}
}
}//package
Section 73
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_upSkin extends MovieClip {
public function ScrollArrowDown_upSkin(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((-(-(false)) === !NULL!) - ??getglobalscope
) + !NULL!);
if (!((_local2) && (this))){
super();
};
}
}
}//package
Section 74
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_disabledSkin extends MovieClip {
public function ScrollArrowUp_disabledSkin(){
var _local1:Boolean;
//unresolved jump
var _local2:uint = true;
if (!_local2){
super();
};
}
}
}//package
Section 75
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_downSkin extends MovieClip {
public function ScrollArrowUp_downSkin(){
var _local1:Boolean;
//unresolved jump
var _local2 = (false & (null - true));
if (_local1){
super();
};
}
}
}//package
Section 76
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_overSkin extends MovieClip {
public function ScrollArrowUp_overSkin(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((false instanceof ) instanceof _local2) << !NULL!);
if (_local1){
super();
};
}
}
}//package
Section 77
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_upSkin extends MovieClip {
public function ScrollArrowUp_upSkin(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((false === !NULL!) >> !NULL!) & !NULL!);
_local2 = (!NULL! > !NULL!);
if (!_local2){
super();
};
}
}
}//package
Section 78
//ScrollBar_thumbIcon (ScrollBar_thumbIcon)
package {
import flash.display.*;
public dynamic class ScrollBar_thumbIcon extends MovieClip {
public function ScrollBar_thumbIcon(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((((!((false & !NULL!)) instanceof !NULL!) as !NULL!) / !NULL!) < !NULL!);
if (((_local1) || (_local1))){
super();
};
}
}
}//package
Section 79
//ScrollPane_disabledSkin (ScrollPane_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollPane_disabledSkin extends MovieClip {
public function ScrollPane_disabledSkin(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((((false <= !NULL!) as !NULL!) - 1) + ( + 1));
if (((_local1) || (_local1))){
super();
};
}
}
}//package
Section 80
//ScrollPane_upSkin (ScrollPane_upSkin)
package {
import flash.display.*;
public dynamic class ScrollPane_upSkin extends MovieClip {
public function ScrollPane_upSkin(){
//unresolved jump
var _local1 = ((false - 1) - null);
var _local2:Boolean;
if (!_local1){
super();
};
}
}
}//package
Section 81
//ScrollThumb_downSkin (ScrollThumb_downSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_downSkin extends MovieClip {
public function ScrollThumb_downSkin(){
var _local1:Boolean;
//unresolved jump
var _local2:Boolean;
_local2 = NaN;
if (!((_local2) && (this))){
super();
};
}
}
}//package
Section 82
//ScrollThumb_overSkin (ScrollThumb_overSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_overSkin extends MovieClip {
public function ScrollThumb_overSkin(){
var _local1:Boolean;
//unresolved jump
var _local2 = (//unresolved nextvalue or nextname > _local2);
if (!_local2){
super();
};
}
}
}//package
Section 83
//ScrollThumb_upSkin (ScrollThumb_upSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_upSkin extends MovieClip {
public function ScrollThumb_upSkin(){
var _local1:Boolean;
//unresolved jump
!ERROR! _local2 = ((//unresolved nextvalue or nextname <= !NULL!) >>> !NULL!);
if (!_local2){
super();
};
}
}
}//package
Section 84
//ScrollTrack_skin (ScrollTrack_skin)
package {
import flash.display.*;
public dynamic class ScrollTrack_skin extends MovieClip {
public function ScrollTrack_skin(){
//unresolved jump
var _local2:Boolean;
var _local1 = (((true * (false - 1)) === !NULL!) % !NULL!);
_local2 = !NULL!;
if (!_local1){
super();
};
}
}
}//package
Section 85
//scrolS (scrolS)
package {
import flash.media.*;
public dynamic class scrolS extends Sound {
public function scrolS(){
var _local1:Boolean;
//unresolved jump
(false is !NULL!);
!ERROR! var _local2 = ((undefined < !NULL!) + 1);
if (!_local2){
super();
};
}
}
}//package
Section 86
//shocked (shocked)
package {
import flash.display.*;
public dynamic class shocked extends MovieClip {
public function shocked(){
var _local1:Boolean;
//unresolved jump
var _local2 = null;
if (!_local2){
super();
};
}
}
}//package
Section 87
//soundtrack (soundtrack)
package {
import flash.display.*;
import flash.media.*;
public class soundtrack extends MovieClip {
var FX:SoundChannel;
var s:Number;// = 0
var sound:Sound;
public function soundtrack(_arg1){
var _local2:Boolean;
//unresolved jump
_local2--;
_local2 = false;
_local2--;
_local2--;
var _local3 = _local2;
if (!_local3){
//unresolved jump
_local2--;
_local2--;
_local2++;
super();
//unresolved if
//unresolved jump
_local2++;
~((( === typeof(new (_arg1))) > !NULL!)).sound = ;
//unresolved if
};
FX = sound.play(0, 99999);
}
function playSound(){
var _local1:Boolean;
//unresolved jump
var _local2 = this;
if (!_local2){
FX = sound.play(0, 99999);
};
}
function stopSound(){
//unresolved jump
(true * !(false));
var _local1 = ((!NULL! + !NULL!) * !NULL!);
!ERROR! if (!((_local1) && (_local2))){
FX.stop();
};
}
}
}//package
Section 88
//startmenu (startmenu)
package {
import flash.display.*;
public dynamic class startmenu extends MovieClip {
public var logo:MovieClip;
public function startmenu(){
//unresolved jump
var _local1 = (false | ((null - 1) >= true));
var _local2:Boolean;
if (((_local2) || (this))){
super();
};
}
}
}//package
Section 89
//t0 (t0)
package {
import flash.display.*;
public dynamic class t0 extends MovieClip {
public function t0(){
//unresolved jump
var _local1 = ~((((true < (false + 1)) + !NULL!) + 1));
!ERROR! if (!((_local1) && (_local2))){
super();
};
}
}
}//package
Section 90
//t1 (t1)
package {
import flash.display.*;
public dynamic class t1 extends MovieClip {
public function t1(){
//unresolved jump
true;
var _local1 = ((((false as !NULL!) - !NULL!) + !NULL!) >> !NULL!);
!ERROR! if (!((_local1) && (this))){
super();
};
}
}
}//package
Section 91
//t2 (t2)
package {
import flash.display.*;
public dynamic class t2 extends MovieClip {
public function t2(){
//unresolved jump
var _local1 = (!NULL! < ((true as (false - 1)) <= !NULL!));
!ERROR! if (!((_local1) && (_local1))){
super();
};
}
}
}//package
Section 92
//t3 (t3)
package {
import flash.display.*;
public dynamic class t3 extends MovieClip {
public function t3(){
//unresolved jump
var _local1 = (//unresolved nextvalue or nextname ^ !NULL!);
!ERROR! if (!((_local1) && (this))){
super();
};
}
}
}//package
Section 93
//t4 (t4)
package {
import flash.display.*;
public dynamic class t4 extends MovieClip {
public function t4(){
//unresolved jump
var _temp1 = arguments;
var _local1 = (undefined - 1);
var _local2 = _temp1;
if (!((_local1) && (this))){
super();
};
}
}
}//package
Section 94
//t5 (t5)
package {
import flash.display.*;
public dynamic class t5 extends MovieClip {
public function t5(){
//unresolved jump
var _local1:String = (~(((true - false) is !NULL!)) instanceof !NULL!);
!ERROR! if (_local2){
super();
};
}
}
}//package
Section 95
//t6 (t6)
package {
import flash.display.*;
public dynamic class t6 extends MovieClip {
public function t6(){
//unresolved jump
var _local1 = ??getglobalscope
;
var _local2 = (??hasnext
instanceof !NULL!);
if (((_local2) || (_local1))){
super();
};
}
}
}//package
Section 96
//t7 (t7)
package {
import flash.display.*;
public dynamic class t7 extends MovieClip {
public function t7(){
//unresolved jump
var _local1 = (true - ((false + 1) / null));
!ERROR! if (!((_local1) && (_local2))){
super();
};
}
}
}//package
Section 97
//t8 (t8)
package {
import flash.display.*;
public dynamic class t8 extends MovieClip {
public function t8(){
var _local1:Boolean;
//unresolved jump
(((false as !NULL!) - 1) | !NULL!);
var _local2 = (NaN * !NULL!);
if (_local1){
super();
};
}
}
}//package
Section 98
//t9 (t9)
package {
import flash.display.*;
public dynamic class t9 extends MovieClip {
public function t9(){
//unresolved jump
var _local3 = (-(~(//unresolved nextvalue or nextname)) - 1);
!ERROR! !ERROR! if (!_local1){
super();
};
}
}
}//package
Section 99
//TextInput_disabledSkin (TextInput_disabledSkin)
package {
import flash.display.*;
public dynamic class TextInput_disabledSkin extends MovieClip {
public function TextInput_disabledSkin(){
//unresolved jump
var _local2 = (false - 1);
var _local1 = (true ^ !NULL!);
_local2 = !NULL!;
if (!((_local1) && (this))){
super();
};
}
}
}//package
Section 100
//TextInput_upSkin (TextInput_upSkin)
package {
import flash.display.*;
public dynamic class TextInput_upSkin extends MovieClip {
public function TextInput_upSkin(){
var _local1:Boolean;
//unresolved jump
!ERROR! if (!_local2){
super();
};
}
}
}//package
Section 101
//texts (texts)
package {
import flash.display.*;
import flash.text.*;
public dynamic class texts extends MovieClip {
public var t2:TextField;
public var webLink:MovieClip;
public var t1:TextField;
public var t3:TextField;
public function texts(){
var _local1:Boolean;
//unresolved jump
var _local2 = ??getglobalscope
;
if (_local1){
super();
};
}
}
}//package
Section 102
//theme (theme)
package {
import flash.media.*;
public dynamic class theme extends Sound {
public function theme(){
//unresolved jump
var _local1 = !((!NULL! / !NULL!));
!ERROR! if (!((_local1) && (_local2))){
super();
};
}
}
}//package
Section 103
//vamp (vamp)
package {
import flash.display.*;
public dynamic class vamp extends MovieClip {
public function vamp(){
var _local1:Boolean;
//unresolved jump
var _local2 = (((//unresolved nextvalue or nextname + !NULL!) <= !NULL!) & !NULL!);
if (((_local1) || (this))){
super();
};
}
}
}//package