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

A
Very
Merry Christmas!


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

Flash Critical Beats.swf

This is the info page for
Flash #39778

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


Text
x

50

100

300

Instructions:
If you have ever played the game Elite Beat Agents (EBA), you probably don't have to
read this. But if you haven't, it is really easy to learn how to play.
This game is based on music. So as long as you can follow the music, you can play this
game really well. Specific notes in the music are represented by a "beat" in this game.
These "beats" look like this:
The first beat is, in my terms, a "Click". All you have to do to succeed in playing this beat
is to wait until the orange ring around the Click shrinks to its size. When it does, the
Click is ripe for clicking. (Sorry, I HAD to say that...)
The second beat there is called a "Roll" because in the original EBA, they had a ball that
rolled (except I was too lazy to replicate it >_>). A Roll is similar to a Click in the sense
that you have to click it when the orange ring around it shrinks into it. The difference,
however, is that in a roll, you then have to follow the yellow ring across the "platform"
and to the ending point. You must make sure that your mouse is over the yellow ring
throughout the rolling!
You probably have noticed the numbers in the middle of each note and wondered what
it means. Well, the number doesn't do much except keep you in track with the song, sort
of. Each time the song changes to a new section of music, the number will go back to 1
and the color of the notes would change. You don't have to worry much about this, it
doesn't mean much.
Okay. Now that you know how to play, let me explain the scoring and the losing
(muahahaha). The scoring is simple. The more accurate your clicks are, the higher the
score you'll get. You'll score 300 for a Perfect, 100 for a Great, 50 for a Good, and
nothing for a Bad or a Miss. Each one has its own color so its easy to see what you scored.
The Perfect is represented by a Gold Star. The Great is represented by a Green Star. The
Good is represented by a Blue Star. The Bad is represented by a Purple X. And lastly, the
Miss is represented by a Red X (lol, Teen Titans!).
How you lose is similar to how you lose in all other games. You run out of, what I call,
"Health". Health is lost simply by waiting. Each second, you lose a certain amount of
health. But don't worry, it's really slow. Next, you lose health by missing or getting bad
on a note. Don't worry though, you can replenish your health. Each time you score a
Great, you replenish a little. Each time you replenish a Perfect, you replenish some
more. Scoring a Good doesn't benefit your health, but it doesn't take off health either.
The difficulty settings affect the initial health. If you start at Normal, you'll start with
the default 100 health. If you choose Easy, you'll start with 1000x Normal, so it's more or
less a Sandbox option. If you choose Hard, you're in for it... You start at half the amount
that you normally would. Choose your option wisely.
Hmm... That's about it. If you actually read up to here, give yourself a high-five. You're
ready to play the game! Have fun!

While it is loading, you can
read the LONG instructions.

Instructions

START

EBA on Flash

All designated trademarks, copyrights and brands are the property of their respective owners.

Use the mouse and match the beats!
Press Enter to pause.

Difficulty Mode

Songs Available

999x

000000000

PAUSED

Continue

Restart

Quit

GAME OVER

000000000

000000000

Score:

Max Combo:

000

A

Rank:

Menu

999

999

999

999

999

ActionScript [AS3]

Section 1
//BaseScrollPane (fl.containers.BaseScrollPane) package fl.containers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.events.*; import fl.events.*; import flash.geom.*; public class BaseScrollPane extends UIComponent { protected var defaultLineScrollSize:Number;// = 4 protected var _maxHorizontalScrollPosition:Number;// = 0 protected var vScrollBar:Boolean; protected var disabledOverlay:Shape; protected var hScrollBar:Boolean; protected var availableWidth:Number; protected var _verticalPageScrollSize:Number;// = 0 protected var vOffset:Number;// = 0 protected var _verticalScrollBar:ScrollBar; protected var useFixedHorizontalScrolling:Boolean;// = false protected var contentWidth:Number;// = 0 protected var contentHeight:Number;// = 0 protected var _horizontalPageScrollSize:Number;// = 0 protected var background:DisplayObject; protected var _useBitmpScrolling:Boolean;// = false protected var contentPadding:Number;// = 0 protected var availableHeight:Number; protected var _horizontalScrollBar:ScrollBar; protected var contentScrollRect:Rectangle; protected var _horizontalScrollPolicy:String; protected var _verticalScrollPolicy:String; protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5}; public function BaseScrollPane(){ contentWidth = 0; contentHeight = 0; contentPadding = 0; vOffset = 0; _maxHorizontalScrollPosition = 0; _horizontalPageScrollSize = 0; _verticalPageScrollSize = 0; defaultLineScrollSize = 4; useFixedHorizontalScrolling = false; _useBitmpScrolling = false; super(); } protected function handleWheel(_arg1:MouseEvent):void{ if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){ return; }; _verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize)); setVerticalScrollPosition(_verticalScrollBar.scrollPosition); dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition)); } public function get verticalScrollPosition():Number{ return (_verticalScrollBar.scrollPosition); } protected function drawDisabledOverlay():void{ if (enabled){ if (contains(disabledOverlay)){ removeChild(disabledOverlay); }; } else { disabledOverlay.x = (disabledOverlay.y = contentPadding); disabledOverlay.width = availableWidth; disabledOverlay.height = availableHeight; disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number); addChild(disabledOverlay); }; } public function set verticalScrollPosition(_arg1:Number):void{ drawNow(); _verticalScrollBar.scrollPosition = _arg1; setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); } protected function setContentSize(_arg1:Number, _arg2:Number):void{ if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){ return; }; contentWidth = _arg1; contentHeight = _arg2; invalidate(InvalidationType.SIZE); } public function get horizontalScrollPosition():Number{ return (_horizontalScrollBar.scrollPosition); } public function get horizontalScrollBar():ScrollBar{ return (_horizontalScrollBar); } override public function set enabled(_arg1:Boolean):void{ if (enabled == _arg1){ return; }; _verticalScrollBar.enabled = _arg1; _horizontalScrollBar.enabled = _arg1; super.enabled = _arg1; } public function get verticalLineScrollSize():Number{ return (_verticalScrollBar.lineScrollSize); } public function get horizontalScrollPolicy():String{ return (_horizontalScrollPolicy); } protected function calculateAvailableSize():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; _local1 = ScrollBar.WIDTH; _local2 = (contentPadding = Number(getStyleValue("contentPadding"))); _local3 = ((height - (2 * _local2)) - vOffset); vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3))))); _local4 = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2)); _local5 = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4); hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0))))); if (hScrollBar){ _local3 = (_local3 - _local1); }; if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){ vScrollBar = true; _local4 = (_local4 - _local1); }; availableHeight = (_local3 + vOffset); availableWidth = _local4; } public function get maxVerticalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentHeight - availableHeight))); } public function set horizontalScrollPosition(_arg1:Number):void{ drawNow(); _horizontalScrollBar.scrollPosition = _arg1; setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); } public function get horizontalLineScrollSize():Number{ return (_horizontalScrollBar.lineScrollSize); } public function set verticalPageScrollSize(_arg1:Number):void{ _verticalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } public function get verticalScrollPolicy():String{ return (_verticalScrollPolicy); } protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } public function get useBitmapScrolling():Boolean{ return (_useBitmpScrolling); } protected function handleScroll(_arg1:ScrollEvent):void{ if (_arg1.target == _verticalScrollBar){ setVerticalScrollPosition(_arg1.position); } else { setHorizontalScrollPosition(_arg1.position); }; } public function set verticalLineScrollSize(_arg1:Number):void{ _verticalScrollBar.lineScrollSize = _arg1; } public function get verticalScrollBar():ScrollBar{ return (_verticalScrollBar); } protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } public function set horizontalPageScrollSize(_arg1:Number):void{ _horizontalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){ drawLayout(); }; updateChildren(); super.draw(); } public function set horizontalScrollPolicy(_arg1:String):void{ _horizontalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } override protected function configUI():void{ var _local1:Graphics; super.configUI(); contentScrollRect = new Rectangle(0, 0, 85, 85); _verticalScrollBar = new ScrollBar(); _verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _verticalScrollBar.visible = false; _verticalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_verticalScrollBar); copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); _horizontalScrollBar = new ScrollBar(); _horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL; _horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _horizontalScrollBar.visible = false; _horizontalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_horizontalScrollBar); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); disabledOverlay = new Shape(); _local1 = disabledOverlay.graphics; _local1.beginFill(0xFFFFFF); _local1.drawRect(0, 0, width, height); _local1.endFill(); addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true); } protected function calculateContentWidth():void{ } public function get verticalPageScrollSize():Number{ if (isNaN(availableHeight)){ drawNow(); }; return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize); } protected function drawLayout():void{ calculateAvailableSize(); calculateContentWidth(); background.width = width; background.height = height; if (vScrollBar){ _verticalScrollBar.visible = true; _verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding); _verticalScrollBar.y = contentPadding; _verticalScrollBar.height = availableHeight; } else { _verticalScrollBar.visible = false; }; _verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize); setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); if (hScrollBar){ _horizontalScrollBar.visible = true; _horizontalScrollBar.x = contentPadding; _horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding); _horizontalScrollBar.width = availableWidth; } else { _horizontalScrollBar.visible = false; }; _horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize); setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); drawDisabledOverlay(); } protected function drawBackground():void{ var _local1:DisplayObject; _local1 = background; background = getDisplayObjectInstance(getStyleValue("skin")); background.width = width; background.height = height; addChildAt(background, 0); if (((!((_local1 == null))) && (!((_local1 == background))))){ removeChild(_local1); }; } public function set horizontalLineScrollSize(_arg1:Number):void{ _horizontalScrollBar.lineScrollSize = _arg1; } public function get horizontalPageScrollSize():Number{ if (isNaN(availableWidth)){ drawNow(); }; return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize); } public function get maxHorizontalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentWidth - availableWidth))); } protected function setStyles():void{ copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); } protected function updateChildren():void{ _verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled); _verticalScrollBar.drawNow(); _horizontalScrollBar.drawNow(); } public function set verticalScrollPolicy(_arg1:String):void{ _verticalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } public function set useBitmapScrolling(_arg1:Boolean):void{ _useBitmpScrolling = _arg1; invalidate(InvalidationType.STATE); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition())); } } }//package fl.containers
Section 2
//ScrollPane (fl.containers.ScrollPane) package fl.containers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.net.*; import flash.system.*; import flash.ui.*; public class ScrollPane extends BaseScrollPane implements IFocusManagerComponent { protected var scrollDragHPos:Number; protected var loader:Loader; protected var yOffset:Number; protected var currentContent:Object; protected var xOffset:Number; protected var _source:Object;// = "" protected var scrollDragVPos:Number; protected var _scrollDrag:Boolean;// = false protected var contentClip:Sprite; private static var defaultStyles:Object = {upSkin:"ScrollPane_upSkin", disabledSkin:"ScrollPane_disabledSkin", focusRectSkin:null, focusRectPadding:null, contentPadding:0}; public function ScrollPane(){ _source = ""; _scrollDrag = false; super(); } public function get source():Object{ return (_source); } 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 get bytesLoaded():Number{ return (((((loader == null)) || ((loader.contentLoaderInfo == null)))) ? 0 : loader.contentLoaderInfo.bytesLoaded); } protected function doDrag(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; _local2 = (scrollDragVPos - (mouseY - yOffset)); _verticalScrollBar.setScrollPosition(_local2); setVerticalScrollPosition(_verticalScrollBar.scrollPosition, true); _local3 = (scrollDragHPos - (mouseX - xOffset)); _horizontalScrollBar.setScrollPosition(_local3); setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, true); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int; _local2 = 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; }; } 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); } public function get content():DisplayObject{ var _local1:Object; _local1 = currentContent; if ((_local1 is URLRequest)){ _local1 = loader.content; }; return ((_local1 as DisplayObject)); } public function get percentLoaded():Number{ if (loader != null){ return (Math.round(((bytesLoaded / bytesTotal) * 100))); }; return (0); } protected function endDrag(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_MOVE, doDrag); } public function update():void{ var _local1:DisplayObject; _local1 = contentClip.getChildAt(0); setContentSize(_local1.width, _local1.height); } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ var _local3:*; _local3 = contentClip.scrollRect; _local3.x = _arg1; contentClip.scrollRect = _local3; } public function refreshPane():void{ if ((_source is URLRequest)){ _source = _source.url; }; source = _source; } protected function passEvent(_arg1:Event):void{ dispatchEvent(_arg1); } protected function calculateAvailableHeight():Number{ var _local1:Number; _local1 = Number(getStyleValue("contentPadding")); return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0)); } 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); } override protected function handleScroll(_arg1:ScrollEvent):void{ passEvent(_arg1); super.handleScroll(_arg1); } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ var _local3:*; _local3 = contentClip.scrollRect; _local3.y = _arg1; contentClip.scrollRect = _local3; } protected function initLoader():void{ loader = new Loader(); 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); contentClip.addChild(loader); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES)){ drawBackground(); }; if (isInvalid(InvalidationType.STATE)){ setScrollDrag(); }; super.draw(); } override protected function configUI():void{ super.configUI(); contentClip = new Sprite(); addChild(contentClip); contentClip.scrollRect = contentScrollRect; _horizontalScrollPolicy = ScrollPolicy.AUTO; _verticalScrollPolicy = ScrollPolicy.AUTO; } public function set scrollDrag(_arg1:Boolean):void{ _scrollDrag = _arg1; invalidate(InvalidationType.STATE); } 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; }; } 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); } override protected function drawBackground():void{ var _local1:DisplayObject; _local1 = 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 get bytesTotal():Number{ return (((((loader == null)) || ((loader.contentLoaderInfo == null)))) ? 0 : loader.contentLoaderInfo.bytesTotal); } protected function onContentLoad(_arg1:Event):void{ var _local2:*; update(); _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 static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition())); } } }//package fl.containers
Section 3
//CellRenderer (fl.controls.listClasses.CellRenderer) package fl.controls.listClasses { import fl.controls.*; import flash.events.*; public class CellRenderer extends LabelButton implements ICellRenderer { protected var _data:Object; protected var _listData:ListData; private static var defaultStyles:Object = {upSkin:"CellRenderer_upSkin", downSkin:"CellRenderer_downSkin", overSkin:"CellRenderer_overSkin", disabledSkin:"CellRenderer_disabledSkin", selectedDisabledSkin:"CellRenderer_selectedDisabledSkin", selectedUpSkin:"CellRenderer_selectedUpSkin", selectedDownSkin:"CellRenderer_selectedDownSkin", selectedOverSkin:"CellRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5}; public function CellRenderer():void{ toggle = true; focusEnabled = false; } override protected function toggleSelected(_arg1:MouseEvent):void{ } override public function get selected():Boolean{ return (super.selected); } public function set listData(_arg1:ListData):void{ _listData = _arg1; label = _listData.label; setStyle("icon", _listData.icon); } override public function set selected(_arg1:Boolean):void{ super.selected = _arg1; } public function set data(_arg1:Object):void{ _data = _arg1; } public function get listData():ListData{ return (_listData); } override public function setSize(_arg1:Number, _arg2:Number):void{ super.setSize(_arg1, _arg2); } override protected function drawLayout():void{ var _local1:Number; var _local2:Number; var _local3:Number; _local1 = Number(getStyleValue("textPadding")); _local2 = 0; if (icon != null){ icon.x = _local1; icon.y = Math.round(((height - icon.height) >> 1)); _local2 = (icon.width + _local1); }; if (label.length > 0){ textField.visible = true; _local3 = Math.max(0, ((width - _local2) - (_local1 * 2))); textField.width = _local3; textField.height = (textField.textHeight + 4); textField.x = (_local2 + _local1); textField.y = Math.round(((height - textField.height) >> 1)); } else { textField.visible = false; }; background.width = width; background.height = height; } public function get data():Object{ return (_data); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls.listClasses
Section 4
//ICellRenderer (fl.controls.listClasses.ICellRenderer) package fl.controls.listClasses { public interface ICellRenderer { function setSize(_arg1:Number, _arg2:Number):void; function get listData():ListData; function get data():Object; function setMouseState(_arg1:String):void; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function set data(_arg1:Object):void; function set selected(_arg1:Boolean):void; function set listData(_arg1:ListData):void; function get selected():Boolean; } }//package fl.controls.listClasses
Section 5
//ListData (fl.controls.listClasses.ListData) package fl.controls.listClasses { import fl.core.*; public class ListData { protected var _index:uint; protected var _owner:UIComponent; protected var _label:String; protected var _icon:Object;// = null protected var _row:uint; protected var _column:uint; public function ListData(_arg1:String, _arg2:Object, _arg3:UIComponent, _arg4:uint, _arg5:uint, _arg6:uint=0){ _icon = null; super(); _label = _arg1; _icon = _arg2; _owner = _arg3; _index = _arg4; _row = _arg5; _column = _arg6; } public function get owner():UIComponent{ return (_owner); } public function get label():String{ return (_label); } public function get row():uint{ return (_row); } public function get index():uint{ return (_index); } public function get icon():Object{ return (_icon); } public function get column():uint{ return (_column); } } }//package fl.controls.listClasses
Section 6
//BaseButton (fl.controls.BaseButton) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.events.*; import flash.utils.*; public class BaseButton extends UIComponent { protected var _selected:Boolean;// = false private var unlockedMouseState:String; protected var pressTimer:Timer; protected var mouseState:String; protected var background:DisplayObject; private var _mouseStateLocked:Boolean;// = false protected var _autoRepeat:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ _selected = false; _autoRepeat = false; _mouseStateLocked = false; super(); buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function get selected():Boolean{ return (_selected); } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function drawLayout():void{ background.width = width; background.height = height; } protected function drawBackground():void{ var _local1:String; var _local2:DisplayObject; _local1 = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); _local2 = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 7
//Button (fl.controls.Button) package fl.controls { import fl.core.*; import flash.display.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var emphasizedBorder:DisplayObject; protected var _emphasized:Boolean;// = false private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function Button(){ _emphasized = false; super(); } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local1:Object; var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; _local1 = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 8
//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 9
//CheckBox (fl.controls.CheckBox) package fl.controls { import flash.display.*; public class CheckBox extends LabelButton { private static var defaultStyles:Object = {icon:null, upIcon:"CheckBox_upIcon", downIcon:"CheckBox_downIcon", overIcon:"CheckBox_overIcon", disabledIcon:"CheckBox_disabledIcon", selectedDisabledIcon:"CheckBox_selectedDisabledIcon", focusRectSkin:null, focusRectPadding:null, selectedUpIcon:"CheckBox_selectedUpIcon", selectedDownIcon:"CheckBox_selectedDownIcon", selectedOverIcon:"CheckBox_selectedOverIcon", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5}; public static var createAccessibilityImplementation:Function; override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = (background.x - _local2); uiFocusRect.y = (background.y - _local2); uiFocusRect.width = (background.width + (_local2 << 1)); uiFocusRect.height = (background.height + (_local2 << 1)); }; } override public function get autoRepeat():Boolean{ return (false); } override public function set autoRepeat(_arg1:Boolean):void{ } override public function set toggle(_arg1:Boolean):void{ throw (new Error("Warning: You cannot change a CheckBox's toggle.")); } override public function get toggle():Boolean{ return (true); } override protected function configUI():void{ var _local1:Shape; var _local2:Graphics; super.configUI(); super.toggle = true; _local1 = new Shape(); _local2 = _local1.graphics; _local2.beginFill(0, 0); _local2.drawRect(0, 0, 100, 100); _local2.endFill(); background = (_local1 as DisplayObject); addChildAt(background, 0); } override protected function drawLayout():void{ var _local1:Number; super.drawLayout(); _local1 = Number(getStyleValue("textPadding")); switch (_labelPlacement){ case ButtonLabelPlacement.RIGHT: icon.x = _local1; textField.x = (icon.x + (icon.width + _local1)); background.width = ((textField.x + textField.width) + _local1); background.height = (Math.max(textField.height, icon.height) + (_local1 * 2)); break; case ButtonLabelPlacement.LEFT: icon.x = ((width - icon.width) - _local1); textField.x = (((width - icon.width) - (_local1 * 2)) - textField.width); background.width = ((textField.width + icon.width) + (_local1 * 3)); background.height = (Math.max(textField.height, icon.height) + (_local1 * 2)); break; case ButtonLabelPlacement.TOP: case ButtonLabelPlacement.BOTTOM: background.width = (Math.max(textField.width, icon.width) + (_local1 * 2)); background.height = ((textField.height + icon.height) + (_local1 * 3)); break; }; background.x = Math.min((icon.x - _local1), (textField.x - _local1)); background.y = Math.min((icon.y - _local1), (textField.y - _local1)); } override protected function drawBackground():void{ } override protected function initializeAccessibility():void{ if (CheckBox.createAccessibilityImplementation != null){ CheckBox.createAccessibilityImplementation(this); }; } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 10
//LabelButton (fl.controls.LabelButton) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _labelPlacement:String;// = "right" protected var _toggle:Boolean;// = false protected var icon:DisplayObject; protected var oldMouseState:String; protected var mode:String;// = "center" public var textField:TextField; protected var _label:String;// = "Label" private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function LabelButton(){ _labelPlacement = ButtonLabelPlacement.RIGHT; _toggle = false; _label = "Label"; mode = "center"; super(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } public function get labelPlacement():String{ return (_labelPlacement); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } protected function setEmbedFont(){ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } public function get label():String{ return (_label); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } public function get toggle():Boolean{ return (_toggle); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function drawLayout():void{ var _local1:Number; var _local2:String; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local1 = Number(getStyleValue("textPadding")); _local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); _local3 = (textField.textWidth + 4); _local4 = (textField.textHeight + 4); _local5 = ((icon)==null) ? 0 : (icon.width + _local1); _local6 = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } protected function drawIcon():void{ var _local1:DisplayObject; var _local2:String; var _local3:Object; _local1 = icon; _local2 = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); _local3 = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } protected function drawTextFormat():void{ var _local1:Object; var _local2:TextFormat; var _local3:TextFormat; _local1 = UIComponent.getStyleDefinition(); _local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); _local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 11
//List (fl.controls.List) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import fl.managers.*; import flash.utils.*; import flash.geom.*; import flash.ui.*; public class List extends SelectableList implements IFocusManagerComponent { protected var _labelField:String;// = "label" protected var _rowHeight:Number;// = 20 protected var _cellRenderer:Object; protected var _iconField:String;// = "icon" protected var _labelFunction:Function; protected var _iconFunction:Function; private static var defaultStyles:Object = {focusRectSkin:null, focusRectPadding:null}; public static var createAccessibilityImplementation:Function; public function List(){ _rowHeight = 20; _labelField = "label"; _iconField = "icon"; super(); } public function get iconField():String{ return (_iconField); } protected function doKeySelection(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{ var _local4:Boolean; var _local5:int; var _local6:Array; var _local7:int; var _local8:int; _local4 = false; if (_arg2){ _local6 = []; _local7 = lastCaretIndex; _local8 = _arg1; if (_local7 == -1){ _local7 = ((caretIndex)!=-1) ? caretIndex : _arg1; }; if (_local7 > _local8){ _local8 = _local7; _local7 = _arg1; }; _local5 = _local7; while (_local5 <= _local8) { _local6.push(_local5); _local5++; }; selectedIndices = _local6; caretIndex = _arg1; _local4 = true; } else { selectedIndex = _arg1; caretIndex = (lastCaretIndex = _arg1); _local4 = true; }; if (_local4){ dispatchEvent(new Event(Event.CHANGE)); }; invalidate(InvalidationType.DATA); } override protected function drawList():void{ var _local1:Rectangle; var _local2:uint; var _local3:uint; var _local4:uint; var _local5:Object; var _local6:ICellRenderer; var _local7:Dictionary; var _local8:Dictionary; var _local9:Boolean; var _local10:String; var _local11:Object; var _local12:Sprite; var _local13:String; listHolder.x = (listHolder.y = contentPadding); _local1 = listHolder.scrollRect; _local1.x = _horizontalScrollPosition; _local1.y = (Math.floor(_verticalScrollPosition) % rowHeight); listHolder.scrollRect = _local1; listHolder.cacheAsBitmap = useBitmapScrolling; _local2 = Math.floor((_verticalScrollPosition / rowHeight)); _local3 = Math.min(length, ((_local2 + rowCount) + 1)); _local7 = (renderedItems = new Dictionary(true)); _local4 = _local2; while (_local4 < _local3) { _local7[_dataProvider.getItemAt(_local4)] = true; _local4++; }; _local8 = new Dictionary(true); while (activeCellRenderers.length > 0) { _local6 = (activeCellRenderers.pop() as ICellRenderer); _local5 = _local6.data; if ((((_local7[_local5] == null)) || ((invalidItems[_local5] == true)))){ availableCellRenderers.push(_local6); } else { _local8[_local5] = _local6; invalidItems[_local5] = true; }; list.removeChild((_local6 as DisplayObject)); }; invalidItems = new Dictionary(true); _local4 = _local2; while (_local4 < _local3) { _local9 = false; _local5 = _dataProvider.getItemAt(_local4); if (_local8[_local5] != null){ _local9 = true; _local6 = _local8[_local5]; delete _local8[_local5]; } else { if (availableCellRenderers.length > 0){ _local6 = (availableCellRenderers.pop() as ICellRenderer); } else { _local6 = (getDisplayObjectInstance(getStyleValue("cellRenderer")) as ICellRenderer); _local12 = (_local6 as Sprite); if (_local12 != null){ _local12.addEventListener(MouseEvent.CLICK, handleCellRendererClick, false, 0, true); _local12.addEventListener(MouseEvent.ROLL_OVER, handleCellRendererMouseEvent, false, 0, true); _local12.addEventListener(MouseEvent.ROLL_OUT, handleCellRendererMouseEvent, false, 0, true); _local12.addEventListener(Event.CHANGE, handleCellRendererChange, false, 0, true); _local12.doubleClickEnabled = true; _local12.addEventListener(MouseEvent.DOUBLE_CLICK, handleCellRendererDoubleClick, false, 0, true); if (_local12["setStyle"] != null){ for (_local13 in rendererStyles) { var _local16 = _local12; _local16["setStyle"](_local13, rendererStyles[_local13]); }; }; }; }; }; list.addChild((_local6 as Sprite)); activeCellRenderers.push(_local6); _local6.y = (rowHeight * (_local4 - _local2)); _local6.setSize((availableWidth + _maxHorizontalScrollPosition), rowHeight); _local10 = itemToLabel(_local5); _local11 = null; if (_iconFunction != null){ _local11 = _iconFunction(_local5); } else { if (_iconField != null){ _local11 = _local5[_iconField]; }; }; if (!_local9){ _local6.data = _local5; }; _local6.listData = new ListData(_local10, _local11, this, _local4, _local4, 0); _local6.selected = !((_selectedIndices.indexOf(_local4) == -1)); if ((_local6 is UIComponent)){ (_local6 as UIComponent).drawNow(); }; _local4++; }; } public function get iconFunction():Function{ return (_iconFunction); } public function set iconField(_arg1:String):void{ if (_arg1 == _iconField){ return; }; _iconField = _arg1; invalidate(InvalidationType.DATA); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int; if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.SPACE: if (caretIndex == -1){ caretIndex = 0; }; doKeySelection(caretIndex, _arg1.shiftKey, _arg1.ctrlKey); scrollToSelected(); break; default: _local2 = getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), selectedIndex); if (_local2 > -1){ selectedIndex = _local2; scrollToSelected(); }; break; }; _arg1.stopPropagation(); } override public function itemToLabel(_arg1:Object):String{ if (_labelFunction != null){ return (String(_labelFunction(_arg1))); }; return (((_arg1[_labelField])!=null) ? String(_arg1[_labelField]) : ""); } public function get labelField():String{ return (_labelField); } override protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ var _local4:int; var _local5:int; var _local6:int; _local4 = Math.max(Math.floor((calculateAvailableHeight() / rowHeight)), 1); _local5 = -1; _local6 = 0; switch (_arg1){ case Keyboard.UP: if (caretIndex > 0){ _local5 = (caretIndex - 1); }; break; case Keyboard.DOWN: if (caretIndex < (length - 1)){ _local5 = (caretIndex + 1); }; break; case Keyboard.PAGE_UP: if (caretIndex > 0){ _local5 = Math.max((caretIndex - _local4), 0); }; break; case Keyboard.PAGE_DOWN: if (caretIndex < (length - 1)){ _local5 = Math.min((caretIndex + _local4), (length - 1)); }; break; case Keyboard.HOME: if (caretIndex > 0){ _local5 = 0; }; break; case Keyboard.END: if (caretIndex < (length - 1)){ _local5 = (length - 1); }; break; }; if (_local5 >= 0){ doKeySelection(_local5, _arg2, _arg3); scrollToSelected(); }; } public function set labelField(_arg1:String):void{ if (_arg1 == _labelField){ return; }; _labelField = _arg1; invalidate(InvalidationType.DATA); } public function set rowCount(_arg1:uint):void{ var _local2:Number; var _local3:Number; _local2 = Number(getStyleValue("contentPadding")); _local3 = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0; height = (((rowHeight * _arg1) + (2 * _local2)) + _local3); } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ list.x = -(_arg1); super.setHorizontalScrollPosition(_arg1, true); } public function set iconFunction(_arg1:Function):void{ if (_iconFunction == _arg1){ return; }; _iconFunction = _arg1; invalidate(InvalidationType.DATA); } public function get labelFunction():Function{ return (_labelFunction); } override protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ invalidate(InvalidationType.SCROLL); super.setVerticalScrollPosition(_arg1, true); } protected function calculateAvailableHeight():Number{ var _local1:Number; _local1 = Number(getStyleValue("contentPadding")); return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0)); } override protected function draw():void{ var _local1:Boolean; _local1 = !((contentHeight == (rowHeight * length))); contentHeight = (rowHeight * length); if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; if (_cellRenderer != getStyleValue("cellRenderer")){ _invalidateList(); _cellRenderer = getStyleValue("cellRenderer"); }; }; if (((isInvalid(InvalidationType.SIZE, InvalidationType.STATE)) || (_local1))){ drawLayout(); }; if (isInvalid(InvalidationType.RENDERER_STYLES)){ updateRendererStyles(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.SCROLL, InvalidationType.SELECTED)){ drawList(); }; updateChildren(); validate(); } override protected function configUI():void{ useFixedHorizontalScrolling = true; _horizontalScrollPolicy = ScrollPolicy.AUTO; _verticalScrollPolicy = ScrollPolicy.AUTO; super.configUI(); } override public function get rowCount():uint{ return (Math.ceil((calculateAvailableHeight() / rowHeight))); } override protected function initializeAccessibility():void{ if (List.createAccessibilityImplementation != null){ List.createAccessibilityImplementation(this); }; } override public function scrollToIndex(_arg1:int):void{ var _local2:uint; var _local3:uint; drawNow(); _local2 = (Math.floor(((_verticalScrollPosition + availableHeight) / rowHeight)) - 1); _local3 = Math.ceil((_verticalScrollPosition / rowHeight)); if (_arg1 < _local3){ verticalScrollPosition = (_arg1 * rowHeight); } else { if (_arg1 > _local2){ verticalScrollPosition = (((_arg1 + 1) * rowHeight) - availableHeight); }; }; } public function get rowHeight():Number{ return (_rowHeight); } public function set labelFunction(_arg1:Function):void{ if (_labelFunction == _arg1){ return; }; _labelFunction = _arg1; invalidate(InvalidationType.DATA); } public function set rowHeight(_arg1:Number):void{ _rowHeight = _arg1; invalidate(InvalidationType.SIZE); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, SelectableList.getStyleDefinition())); } } }//package fl.controls
Section 12
//RadioButton (fl.controls.RadioButton) package fl.controls { import flash.display.*; import flash.events.*; import fl.managers.*; import flash.ui.*; public class RadioButton extends LabelButton implements IFocusManagerGroup { protected var _value:Object; protected var defaultGroupName:String;// = "RadioButtonGroup" protected var _group:RadioButtonGroup; private static var defaultStyles:Object = {icon:null, upIcon:"RadioButton_upIcon", downIcon:"RadioButton_downIcon", overIcon:"RadioButton_overIcon", disabledIcon:"RadioButton_disabledIcon", selectedDisabledIcon:"RadioButton_selectedDisabledIcon", selectedUpIcon:"RadioButton_selectedUpIcon", selectedDownIcon:"RadioButton_selectedDownIcon", selectedOverIcon:"RadioButton_selectedOverIcon", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5}; public static var createAccessibilityImplementation:Function; public function RadioButton(){ defaultGroupName = "RadioButtonGroup"; super(); mode = "border"; groupName = defaultGroupName; } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = (background.x - _local2); uiFocusRect.y = (background.y - _local2); uiFocusRect.width = (background.width + (_local2 * 2)); uiFocusRect.height = (background.height + (_local2 * 2)); }; } private function setThis():void{ var _local1:RadioButtonGroup; _local1 = _group; if (_local1 != null){ if (_local1.selection != this){ _local1.selection = this; }; } else { super.selected = true; }; } override public function get autoRepeat():Boolean{ return (false); } override public function set autoRepeat(_arg1:Boolean):void{ } protected function handleClick(_arg1:MouseEvent):void{ if (_group == null){ return; }; _group.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true)); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ switch (_arg1.keyCode){ case Keyboard.DOWN: setNext(!(_arg1.ctrlKey)); _arg1.stopPropagation(); break; case Keyboard.UP: setPrev(!(_arg1.ctrlKey)); _arg1.stopPropagation(); break; case Keyboard.LEFT: setPrev(!(_arg1.ctrlKey)); _arg1.stopPropagation(); break; case Keyboard.RIGHT: setNext(!(_arg1.ctrlKey)); _arg1.stopPropagation(); break; case Keyboard.SPACE: setThis(); _toggle = false; default: super.keyDownHandler(_arg1); break; }; } private function setNext(_arg1:Boolean=true):void{ var _local2:RadioButtonGroup; var _local3:IFocusManager; var _local4:int; var _local5:Number; var _local6:int; var _local7:*; _local2 = _group; if (_local2 == null){ return; }; _local3 = focusManager; if (_local3){ _local3.showFocusIndicator = true; }; _local4 = _local2.getRadioButtonIndex(this); _local5 = _local2.numRadioButtons; _local6 = _local4; if (_local4 != -1){ do { _local6++; _local6 = ((_local6)>(_local2.numRadioButtons - 1)) ? 0 : _local6; _local7 = _local2.getRadioButtonAt(_local6); if (((_local7) && (_local7.enabled))){ if (_arg1){ _local2.selection = _local7; }; _local7.setFocus(); return; }; if (((_arg1) && (!((_local2.getRadioButtonAt(_local6) == _local2.selection))))){ _local2.selection = this; }; this.drawFocus(true); } while (_local6 != _local4); }; } public function get group():RadioButtonGroup{ return (_group); } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ super.keyUpHandler(_arg1); if ((((_arg1.keyCode == Keyboard.SPACE)) && (!(_toggle)))){ _toggle = true; }; } override public function get selected():Boolean{ return (super.selected); } override public function set toggle(_arg1:Boolean):void{ throw (new Error("Warning: You cannot change a RadioButtons toggle.")); } public function set value(_arg1:Object):void{ _value = _arg1; } public function set group(_arg1:RadioButtonGroup):void{ groupName = _arg1.name; } override public function set selected(_arg1:Boolean):void{ if ((((_arg1 == false)) || (selected))){ return; }; if (_group != null){ _group.selection = this; } else { super.selected = _arg1; }; } override protected function draw():void{ super.draw(); } override public function get toggle():Boolean{ return (true); } override protected function configUI():void{ var _local1:Shape; var _local2:Graphics; super.configUI(); super.toggle = true; _local1 = new Shape(); _local2 = _local1.graphics; _local2.beginFill(0, 0); _local2.drawRect(0, 0, 100, 100); _local2.endFill(); background = (_local1 as DisplayObject); addChildAt(background, 0); addEventListener(MouseEvent.CLICK, handleClick, false, 0, true); } public function set groupName(_arg1:String):void{ if (_group != null){ _group.removeRadioButton(this); _group.removeEventListener(Event.CHANGE, handleChange); }; _group = ((_arg1)==null) ? null : RadioButtonGroup.getGroup(_arg1); if (_group != null){ _group.addRadioButton(this); _group.addEventListener(Event.CHANGE, handleChange, false, 0, true); }; } public function get value():Object{ return (_value); } override protected function drawLayout():void{ var _local1:Number; super.drawLayout(); _local1 = Number(getStyleValue("textPadding")); switch (_labelPlacement){ case ButtonLabelPlacement.RIGHT: icon.x = _local1; textField.x = (icon.x + (icon.width + _local1)); background.width = ((textField.x + textField.width) + _local1); background.height = (Math.max(textField.height, icon.height) + (_local1 * 2)); break; case ButtonLabelPlacement.LEFT: icon.x = ((width - icon.width) - _local1); textField.x = (((width - icon.width) - (_local1 * 2)) - textField.width); background.width = ((textField.width + icon.width) + (_local1 * 3)); background.height = (Math.max(textField.height, icon.height) + (_local1 * 2)); break; case ButtonLabelPlacement.TOP: case ButtonLabelPlacement.BOTTOM: background.width = (Math.max(textField.width, icon.width) + (_local1 * 2)); background.height = ((textField.height + icon.height) + (_local1 * 3)); break; }; background.x = Math.min((icon.x - _local1), (textField.x - _local1)); background.y = Math.min((icon.y - _local1), (textField.y - _local1)); } override protected function drawBackground():void{ } override protected function initializeAccessibility():void{ if (RadioButton.createAccessibilityImplementation != null){ RadioButton.createAccessibilityImplementation(this); }; } public function get groupName():String{ return (((_group)==null) ? null : _group.name); } private function setPrev(_arg1:Boolean=true):void{ var _local2:RadioButtonGroup; var _local3:IFocusManager; var _local4:int; var _local5:int; var _local6:*; _local2 = _group; if (_local2 == null){ return; }; _local3 = focusManager; if (_local3){ _local3.showFocusIndicator = true; }; _local4 = _local2.getRadioButtonIndex(this); _local5 = _local4; if (_local4 != -1){ do { --_local5; _local5 = ((_local5)==-1) ? (_local2.numRadioButtons - 1) : _local5; _local6 = _local2.getRadioButtonAt(_local5); if (((_local6) && (_local6.enabled))){ if (_arg1){ _local2.selection = _local6; }; _local6.setFocus(); return; }; if (((_arg1) && (!((_local2.getRadioButtonAt(_local5) == _local2.selection))))){ _local2.selection = this; }; this.drawFocus(true); } while (_local5 != _local4); }; } protected function handleChange(_arg1:Event):void{ super.selected = (_group.selection == this); dispatchEvent(new Event(Event.CHANGE, true)); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 13
//RadioButtonGroup (fl.controls.RadioButtonGroup) package fl.controls { import flash.events.*; public class RadioButtonGroup extends EventDispatcher { protected var _selection:RadioButton; protected var radioButtons:Array; protected var _name:String; private static var groups:Object; private static var groupCount:uint = 0; public function RadioButtonGroup(_arg1:String){ _name = _arg1; radioButtons = []; registerGroup(this); } public function getRadioButtonIndex(_arg1:RadioButton):int{ var _local2:int; var _local3:RadioButton; _local2 = 0; while (_local2 < radioButtons.length) { _local3 = (radioButtons[_local2] as RadioButton); if (_local3 == _arg1){ return (_local2); }; _local2++; }; return (-1); } public function get numRadioButtons():int{ return (radioButtons.length); } public function get name():String{ return (_name); } public function get selection():RadioButton{ return (_selection); } public function set selection(_arg1:RadioButton):void{ if ((((((_selection == _arg1)) || ((_arg1 == null)))) || ((getRadioButtonIndex(_arg1) == -1)))){ return; }; _selection = _arg1; dispatchEvent(new Event(Event.CHANGE, true)); } public function set selectedData(_arg1:Object):void{ var _local2:int; var _local3:RadioButton; _local2 = 0; while (_local2 < radioButtons.length) { _local3 = (radioButtons[_local2] as RadioButton); if (_local3.value == _arg1){ selection = _local3; return; }; _local2++; }; } public function removeRadioButton(_arg1:RadioButton):void{ var _local2:int; _local2 = getRadioButtonIndex(_arg1); if (_local2 != -1){ radioButtons.splice(_local2, 1); }; if (_selection == _arg1){ _selection = null; }; } public function addRadioButton(_arg1:RadioButton):void{ if (_arg1.groupName != name){ _arg1.groupName = name; return; }; radioButtons.push(_arg1); if (_arg1.selected){ selection = _arg1; }; } public function getRadioButtonAt(_arg1:int):RadioButton{ return (RadioButton(radioButtons[_arg1])); } public function get selectedData():Object{ var _local1:RadioButton; _local1 = _selection; return (((_local1)==null) ? null : _local1.value); } public static function getGroup(_arg1:String):RadioButtonGroup{ var _local2:RadioButtonGroup; if (groups == null){ groups = {}; }; _local2 = (groups[_arg1] as RadioButtonGroup); if (_local2 == null){ _local2 = new RadioButtonGroup(_arg1); if ((++groupCount % 20) == 0){ cleanUpGroups(); }; }; return (_local2); } private static function registerGroup(_arg1:RadioButtonGroup):void{ if (groups == null){ groups = {}; }; groups[_arg1.name] = _arg1; } private static function cleanUpGroups():void{ var _local1:String; var _local2:RadioButtonGroup; for (_local1 in groups) { _local2 = (groups[_local1] as RadioButtonGroup); if (_local2.radioButtons.length == 0){ delete groups[_local1]; }; }; } } }//package fl.controls
Section 14
//ScrollBar (fl.controls.ScrollBar) package fl.controls { import fl.core.*; import flash.events.*; import fl.events.*; public class ScrollBar extends UIComponent { private var _direction:String;// = "vertical" protected var inDrag:Boolean;// = false protected var upArrow:BaseButton; private var _pageScrollSize:Number;// = 0 protected var downArrow:BaseButton; private var _pageSize:Number;// = 10 private var thumbScrollOffset:Number; private var _maxScrollPosition:Number;// = 0 private var _scrollPosition:Number;// = 0 protected var track:BaseButton; private var _minScrollPosition:Number;// = 0 private var _lineScrollSize:Number;// = 1 protected var thumb:LabelButton; protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0}; public static const WIDTH:Number = 15; protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35}; public function ScrollBar(){ _pageSize = 10; _pageScrollSize = 0; _lineScrollSize = 1; _minScrollPosition = 0; _maxScrollPosition = 0; _scrollPosition = 0; _direction = ScrollBarDirection.VERTICAL; inDrag = false; super(); setStyles(); focusEnabled = false; } public function get minScrollPosition():Number{ return (_minScrollPosition); } public function set minScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _arg1, _maxScrollPosition); } public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{ var _local3:Number; _local3 = scrollPosition; _scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1)); if (_local3 == _scrollPosition){ return; }; if (_arg2){ dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition)); }; updateThumb(); } public function set scrollPosition(_arg1:Number):void{ setScrollPosition(_arg1, true); } public function get pageScrollSize():Number{ return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize); } public function set pageSize(_arg1:Number):void{ if (_arg1 > 0){ _pageSize = _arg1; }; } public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{ this.pageSize = _arg1; _minScrollPosition = _arg2; _maxScrollPosition = _arg3; if (_arg4 >= 0){ _pageScrollSize = _arg4; }; enabled = (_maxScrollPosition > _minScrollPosition); setScrollPosition(_scrollPosition, false); updateThumb(); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition)))))); updateThumb(); } protected function updateThumb():void{ var _local1:Number; _local1 = ((_maxScrollPosition - _minScrollPosition) + _pageSize); if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){ thumb.height = 12; thumb.visible = false; } else { thumb.height = Math.max(13, ((_pageSize / _local1) * track.height)); thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition)))); thumb.visible = enabled; }; } protected function thumbPressHandler(_arg1:MouseEvent):void{ inDrag = true; thumbScrollOffset = (mouseY - thumb.y); thumb.mouseStateLocked = true; mouseChildren = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true); } protected function thumbReleaseHandler(_arg1:MouseEvent):void{ inDrag = false; mouseChildren = true; thumb.mouseStateLocked = false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag); stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler); } public function set pageScrollSize(_arg1:Number):void{ if (_arg1 >= 0){ _pageScrollSize = _arg1; }; } protected function handleThumbDrag(_arg1:MouseEvent):void{ var _local2:Number; _local2 = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset))); setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition)); } public function set direction(_arg1:String):void{ var _local2:Boolean; if (_direction == _arg1){ return; }; _direction = _arg1; if (isLivePreview){ return; }; setScaleY(1); _local2 = (_direction == ScrollBarDirection.HORIZONTAL); if (((_local2) && (componentInspectorSetting))){ if (rotation == 90){ return; }; setScaleX(-1); rotation = -90; }; if (!componentInspectorSetting){ if (((_local2) && ((rotation == 0)))){ rotation = -90; setScaleX(-1); } else { if (((!(_local2)) && ((rotation == -90)))){ rotation = 0; setScaleX(1); }; }; }; invalidate(InvalidationType.SIZE); } public function set lineScrollSize(_arg1:Number):void{ if (_arg1 > 0){ _lineScrollSize = _arg1; }; } override public function get height():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height); } protected function scrollPressHandler(_arg1:ComponentEvent):void{ var _local2:Number; var _local3:Number; _arg1.stopImmediatePropagation(); if (_arg1.currentTarget == upArrow){ setScrollPosition((_scrollPosition - _lineScrollSize)); } else { if (_arg1.currentTarget == downArrow){ setScrollPosition((_scrollPosition + _lineScrollSize)); } else { _local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition); _local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize; if (_scrollPosition < _local2){ setScrollPosition(Math.min(_local2, (_scrollPosition + _local3))); } else { if (_scrollPosition > _local2){ setScrollPosition(Math.max(_local2, (_scrollPosition - _local3))); }; }; }; }; } public function get pageSize():Number{ return (_pageSize); } public function set maxScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _minScrollPosition, _arg1); } public function get scrollPosition():Number{ return (_scrollPosition); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ var _local1:Number; if (isInvalid(InvalidationType.SIZE)){ _local1 = super.height; downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height))); track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height)))); updateThumb(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ setStyles(); }; downArrow.drawNow(); upArrow.drawNow(); track.drawNow(); thumb.drawNow(); validate(); } override protected function configUI():void{ super.configUI(); track = new BaseButton(); track.move(0, 14); track.useHandCursor = false; track.autoRepeat = true; track.focusEnabled = false; addChild(track); thumb = new LabelButton(); thumb.label = ""; thumb.setSize(WIDTH, 15); thumb.move(0, 15); thumb.focusEnabled = false; addChild(thumb); downArrow = new BaseButton(); downArrow.setSize(WIDTH, 14); downArrow.autoRepeat = true; downArrow.focusEnabled = false; addChild(downArrow); upArrow = new BaseButton(); upArrow.setSize(WIDTH, 14); upArrow.move(0, 0); upArrow.autoRepeat = true; upArrow.focusEnabled = false; addChild(upArrow); upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true); enabled = false; } public function get direction():String{ return (_direction); } public function get lineScrollSize():Number{ return (_lineScrollSize); } override public function setSize(_arg1:Number, _arg2:Number):void{ if (_direction == ScrollBarDirection.HORIZONTAL){ super.setSize(_arg2, _arg1); } else { super.setSize(_arg1, _arg2); }; } public function get maxScrollPosition():Number{ return (_maxScrollPosition); } override public function get width():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width); } protected function setStyles():void{ copyStylesToChild(downArrow, DOWN_ARROW_STYLES); copyStylesToChild(thumb, THUMB_STYLES); copyStylesToChild(track, TRACK_STYLES); copyStylesToChild(upArrow, UP_ARROW_STYLES); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 15
//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 16
//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 17
//SelectableList (fl.controls.SelectableList) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import fl.data.*; import fl.managers.*; import fl.events.*; import flash.utils.*; import fl.containers.*; import flash.ui.*; public class SelectableList extends BaseScrollPane implements IFocusManagerComponent { protected var invalidItems:Dictionary; protected var renderedItems:Dictionary; protected var listHolder:Sprite; protected var _allowMultipleSelection:Boolean;// = false protected var lastCaretIndex:int;// = -1 protected var _selectedIndices:Array; protected var availableCellRenderers:Array; protected var list:Sprite; protected var caretIndex:int;// = -1 protected var updatedRendererStyles:Object; protected var preChangeItems:Array; protected var activeCellRenderers:Array; protected var rendererStyles:Object; protected var _verticalScrollPosition:Number; protected var _dataProvider:DataProvider; protected var _horizontalScrollPosition:Number; private var collectionItemImport:SimpleCollectionItem; protected var _selectable:Boolean;// = true private static var defaultStyles:Object = {skin:"List_skin", cellRenderer:CellRenderer, contentPadding:null, disabledAlpha:null}; public static var createAccessibilityImplementation:Function; public function SelectableList(){ _allowMultipleSelection = false; _selectable = true; caretIndex = -1; lastCaretIndex = -1; super(); activeCellRenderers = []; availableCellRenderers = []; invalidItems = new Dictionary(true); renderedItems = new Dictionary(true); _selectedIndices = []; if (dataProvider == null){ dataProvider = new DataProvider(); }; verticalScrollPolicy = ScrollPolicy.AUTO; rendererStyles = {}; updatedRendererStyles = {}; } protected function drawList():void{ } public function set allowMultipleSelection(_arg1:Boolean):void{ if (_arg1 == _allowMultipleSelection){ return; }; _allowMultipleSelection = _arg1; if (((!(_arg1)) && ((_selectedIndices.length > 1)))){ _selectedIndices = [_selectedIndices.pop()]; invalidate(InvalidationType.DATA); }; } public function sortItemsOn(_arg1:String, _arg2:Object=null){ return (_dataProvider.sortOn(_arg1, _arg2)); } public function removeItemAt(_arg1:uint):Object{ return (_dataProvider.removeItemAt(_arg1)); } public function get selectedItem():Object{ return (((_selectedIndices.length)==0) ? null : _dataProvider.getItemAt(selectedIndex)); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; }; } public function get selectable():Boolean{ return (_selectable); } public function itemToCellRenderer(_arg1:Object):ICellRenderer{ var _local2:*; var _local3:ICellRenderer; if (_arg1 != null){ for (_local2 in activeCellRenderers) { _local3 = (activeCellRenderers[_local2] as ICellRenderer); if (_local3.data == _arg1){ return (_local3); }; }; }; return (null); } public function getNextIndexAtLetter(_arg1:String, _arg2:int=-1):int{ var _local3:int; var _local4:Number; var _local5:Number; var _local6:Object; var _local7:String; if (length == 0){ return (-1); }; _arg1 = _arg1.toUpperCase(); _local3 = (length - 1); _local4 = 0; while (_local4 < _local3) { _local5 = ((_arg2 + 1) + _local4); if (_local5 > (length - 1)){ _local5 = (_local5 - length); }; _local6 = getItemAt(_local5); if (_local6 == null){ break; }; _local7 = itemToLabel(_local6); if (_local7 == null){ } else { if (_local7.charAt(0).toUpperCase() == _arg1){ return (_local5); }; }; _local4++; }; return (-1); } public function invalidateList():void{ _invalidateList(); invalidate(InvalidationType.DATA); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; list.mouseChildren = _enabled; } public function get selectedIndices():Array{ return (_selectedIndices.concat()); } public function set selectable(_arg1:Boolean):void{ if (_arg1 == _selectable){ return; }; if (!_arg1){ selectedIndices = []; }; _selectable = _arg1; } public function itemToLabel(_arg1:Object):String{ return (_arg1["label"]); } public function addItemAt(_arg1:Object, _arg2:uint):void{ _dataProvider.addItemAt(_arg1, _arg2); invalidateList(); } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ return (_dataProvider.replaceItemAt(_arg1, _arg2)); } protected function handleDataChange(_arg1:DataChangeEvent):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:uint; _local2 = _arg1.startIndex; _local3 = _arg1.endIndex; _local4 = _arg1.changeType; if (_local4 == DataChangeType.INVALIDATE_ALL){ clearSelection(); invalidateList(); } else { if (_local4 == DataChangeType.INVALIDATE){ _local5 = 0; while (_local5 < _arg1.items.length) { invalidateItem(_arg1.items[_local5]); _local5++; }; } else { if (_local4 == DataChangeType.ADD){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ _selectedIndices[_local5] = (_selectedIndices[_local5] + (_local2 - _local3)); }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ if (_selectedIndices[_local5] <= _local3){ delete _selectedIndices[_local5]; } else { _selectedIndices[_local5] = (_selectedIndices[_local5] - ((_local2 - _local3) + 1)); }; }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE_ALL){ clearSelection(); } else { if (_local4 == DataChangeType.REPLACE){ } else { selectedItems = preChangeItems; preChangeItems = null; }; }; }; }; }; }; invalidate(InvalidationType.DATA); } protected function _invalidateList():void{ availableCellRenderers = []; while (activeCellRenderers.length > 0) { list.removeChild((activeCellRenderers.pop() as DisplayObject)); }; } protected function updateRendererStyles():void{ var _local1:Array; var _local2:uint; var _local3:uint; var _local4:String; _local1 = availableCellRenderers.concat(activeCellRenderers); _local2 = _local1.length; _local3 = 0; while (_local3 < _local2) { if (_local1[_local3].setStyle == null){ } else { for (_local4 in updatedRendererStyles) { _local1[_local3].setStyle(_local4, updatedRendererStyles[_local4]); }; _local1[_local3].drawNow(); }; _local3++; }; updatedRendererStyles = {}; } public function set selectedItem(_arg1:Object):void{ var _local2:int; _local2 = _dataProvider.getItemIndex(_arg1); selectedIndex = _local2; } public function sortItems(... _args){ return (_dataProvider.sort.apply(_dataProvider, _args)); } public function removeAll():void{ _dataProvider.removeAll(); } protected function handleCellRendererChange(_arg1:Event):void{ var _local2:ICellRenderer; var _local3:uint; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; _dataProvider.invalidateItemAt(_local3); } protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; if (_arg1 == _horizontalScrollPosition){ return; }; _local3 = (_arg1 - _horizontalScrollPosition); _horizontalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.HORIZONTAL, _local3, _arg1)); }; } public function scrollToSelected():void{ scrollToIndex(selectedIndex); } public function invalidateItem(_arg1:Object):void{ if (renderedItems[_arg1] == null){ return; }; invalidItems[_arg1] = true; invalidate(InvalidationType.DATA); } protected function handleCellRendererClick(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:uint; var _local4:int; var _local5:int; var _local6:uint; if (!_enabled){ return; }; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; if (((!(dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)))) || (!(_selectable)))){ return; }; _local4 = selectedIndices.indexOf(_local3); if (!_allowMultipleSelection){ if (_local4 != -1){ return; }; _local2.selected = true; _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); } else { if (_arg1.shiftKey){ _local6 = ((_selectedIndices.length)>0) ? _selectedIndices[0] : _local3; _selectedIndices = []; if (_local6 > _local3){ _local5 = _local6; while (_local5 >= _local3) { _selectedIndices.push(_local5); _local5--; }; } else { _local5 = _local6; while (_local5 <= _local3) { _selectedIndices.push(_local5); _local5++; }; }; caretIndex = _local3; } else { if (_arg1.ctrlKey){ if (_local4 != -1){ _local2.selected = false; _selectedIndices.splice(_local4, 1); } else { _local2.selected = true; _selectedIndices.push(_local3); }; caretIndex = _local3; } else { _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); }; }; }; dispatchEvent(new Event(Event.CHANGE)); invalidate(InvalidationType.DATA); } public function get length():uint{ return (_dataProvider.length); } public function get allowMultipleSelection():Boolean{ return (_allowMultipleSelection); } protected function onPreChange(_arg1:DataChangeEvent):void{ switch (_arg1.changeType){ case DataChangeType.REMOVE: case DataChangeType.ADD: case DataChangeType.INVALIDATE: case DataChangeType.REMOVE_ALL: case DataChangeType.REPLACE: case DataChangeType.INVALIDATE_ALL: break; default: preChangeItems = selectedItems; break; }; } public function getRendererStyle(_arg1:String, _arg2:int=-1):Object{ return (rendererStyles[_arg1]); } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; if (_arg1 == _verticalScrollPosition){ return; }; _local3 = (_arg1 - _verticalScrollPosition); _verticalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _local3, _arg1)); }; } protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } public function set selectedIndices(_arg1:Array):void{ if (!_selectable){ return; }; _selectedIndices = ((_arg1)==null) ? [] : _arg1.concat(); invalidate(InvalidationType.SELECTED); } public function get selectedIndex():int{ return (((_selectedIndices.length)==0) ? -1 : _selectedIndices[(_selectedIndices.length - 1)]); } override protected function draw():void{ super.draw(); } override protected function configUI():void{ super.configUI(); listHolder = new Sprite(); addChild(listHolder); listHolder.scrollRect = contentScrollRect; list = new Sprite(); listHolder.addChild(list); } public function addItem(_arg1:Object):void{ _dataProvider.addItem(_arg1); invalidateList(); } protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:String; _local2 = (_arg1.target as ICellRenderer); _local3 = ((_arg1.type)==MouseEvent.ROLL_OVER) ? ListEvent.ITEM_ROLL_OVER : ListEvent.ITEM_ROLL_OUT; dispatchEvent(new ListEvent(_local3, false, false, _local2.listData.column, _local2.listData.row, _local2.listData.index, _local2.data)); } public function clearRendererStyle(_arg1:String, _arg2:int=-1):void{ delete rendererStyles[_arg1]; updatedRendererStyles[_arg1] = null; invalidate(InvalidationType.RENDERER_STYLES); } protected function handleCellRendererDoubleClick(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:uint; if (!_enabled){ return; }; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; dispatchEvent(new ListEvent(ListEvent.ITEM_DOUBLE_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)); } public function get rowCount():uint{ return (0); } public function isItemSelected(_arg1:Object):Boolean{ return ((selectedItems.indexOf(_arg1) > -1)); } public function set dataProvider(_arg1:DataProvider):void{ if (_dataProvider != null){ _dataProvider.removeEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange); _dataProvider.removeEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange); }; _dataProvider = _arg1; _dataProvider.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true); _dataProvider.addEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange, false, 0, true); clearSelection(); invalidateList(); } override protected function drawLayout():void{ super.drawLayout(); contentScrollRect = listHolder.scrollRect; contentScrollRect.width = availableWidth; contentScrollRect.height = availableHeight; listHolder.scrollRect = contentScrollRect; } public function getItemAt(_arg1:uint):Object{ return (_dataProvider.getItemAt(_arg1)); } override protected function initializeAccessibility():void{ if (SelectableList.createAccessibilityImplementation != null){ SelectableList.createAccessibilityImplementation(this); }; } public function scrollToIndex(_arg1:int):void{ } public function removeItem(_arg1:Object):Object{ return (_dataProvider.removeItem(_arg1)); } public function get dataProvider():DataProvider{ return (_dataProvider); } public function set maxHorizontalScrollPosition(_arg1:Number):void{ _maxHorizontalScrollPosition = _arg1; invalidate(InvalidationType.SIZE); } public function setRendererStyle(_arg1:String, _arg2:Object, _arg3:uint=0):void{ if (rendererStyles[_arg1] == _arg2){ return; }; updatedRendererStyles[_arg1] = _arg2; rendererStyles[_arg1] = _arg2; invalidate(InvalidationType.RENDERER_STYLES); } public function invalidateItemAt(_arg1:uint):void{ var _local2:Object; _local2 = _dataProvider.getItemAt(_arg1); if (_local2 != null){ invalidateItem(_local2); }; } public function set selectedItems(_arg1:Array):void{ var _local2:Array; var _local3:uint; var _local4:int; if (_arg1 == null){ selectedIndices = null; return; }; _local2 = []; _local3 = 0; while (_local3 < _arg1.length) { _local4 = _dataProvider.getItemIndex(_arg1[_local3]); if (_local4 != -1){ _local2.push(_local4); }; _local3++; }; selectedIndices = _local2; } public function clearSelection():void{ selectedIndex = -1; } override public function get maxHorizontalScrollPosition():Number{ return (_maxHorizontalScrollPosition); } public function get selectedItems():Array{ var _local1:Array; var _local2:uint; _local1 = []; _local2 = 0; while (_local2 < _selectedIndices.length) { _local1.push(_dataProvider.getItemAt(_selectedIndices[_local2])); _local2++; }; return (_local1); } public function set selectedIndex(_arg1:int):void{ selectedIndices = ((_arg1)==-1) ? null : [_arg1]; } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition())); } } }//package fl.controls
Section 18
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 19
//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 20
//UIComponent (fl.core.UIComponent) package fl.core { import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.system.*; import flash.utils.*; import flash.text.*; public class UIComponent extends Sprite { protected var _enabled:Boolean;// = true private var _mouseFocusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var _oldIMEMode:String;// = null protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var uiFocusRect:DisplayObject; protected var _width:Number; public var version:String;// = "3.0.0.15" protected var isFocused:Boolean;// = false protected var callLaterMethods:Dictionary; private var _focusEnabled:Boolean;// = true private var tempText:TextField; protected var invalidateFlag:Boolean;// = false protected var _inspector:Boolean;// = false protected var sharedStyles:Object; protected var invalidHash:Object; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var instanceStyles:Object; protected var _x:Number; protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ version = "3.0.0.15"; isLivePreview = false; invalidateFlag = false; _enabled = true; isFocused = false; _focusEnabled = true; _mouseFocusEnabled = true; _imeMode = null; _oldIMEMode = null; errorCaught = false; _inspector = false; super(); instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } private function callLaterDispatcher(_arg1:Event):void{ var _local2:Dictionary; var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; _local2 = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } override public function get scaleX():Number{ return ((width / startWidth)); } override public function get scaleY():Number{ return ((height / startHeight)); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var classDef:Object; var skin = _arg1; classDef = null; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } override public function set visible(_arg1:Boolean):void{ var _local2:String; if (super.visible == _arg1){ return; }; super.visible = _arg1; _local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } override public function set y(_arg1:Number):void{ move(_x, _arg1); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } protected function validate():void{ invalidHash = {}; } override public function get height():Number{ return (_height); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } protected function configUI():void{ var _local1:Number; var _local2:Number; var _local3:Number; isLivePreview = checkLivePreview(); _local1 = rotation; rotation = 0; _local2 = super.width; _local3 = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject; _local1 = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local2:Object; var _local3:uint; var _local4:uint; var _local5:Object; var _local6:String; _local2 = {}; _local3 = _args.length; _local4 = 0; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 21
//DataProvider (fl.data.DataProvider) package fl.data { import flash.events.*; import fl.events.*; public class DataProvider extends EventDispatcher { protected var data:Array; public function DataProvider(_arg1:Object=null){ if (_arg1 == null){ data = []; } else { data = getDataFromObject(_arg1); }; } protected function dispatchPreChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.PRE_DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } public function invalidateItemAt(_arg1:int):void{ checkIndex(_arg1, (data.length - 1)); dispatchChangeEvent(DataChangeType.INVALIDATE, [data[_arg1]], _arg1, _arg1); } public function getItemIndex(_arg1:Object):int{ return (data.indexOf(_arg1)); } protected function getDataFromObject(_arg1:Object):Array{ var _local2:Array; var _local3:Array; var _local4:uint; var _local5:Object; var _local6:XML; var _local7:XMLList; var _local8:XML; var _local9:XMLList; var _local10:XML; var _local11:XMLList; var _local12:XML; if ((_arg1 is Array)){ _local3 = (_arg1 as Array); if (_local3.length > 0){ if ((((_local3[0] is String)) || ((_local3[0] is Number)))){ _local2 = []; _local4 = 0; while (_local4 < _local3.length) { _local5 = {label:String(_local3[_local4]), data:_local3[_local4]}; _local2.push(_local5); _local4++; }; return (_local2); }; }; return (_arg1.concat()); //unresolved jump }; if ((_arg1 is DataProvider)){ return (_arg1.toArray()); }; if ((_arg1 is XML)){ _local6 = (_arg1 as XML); _local2 = []; _local7 = _local6.*; for each (_local8 in _local7) { _arg1 = {}; _local9 = _local8.attributes(); for each (_local10 in _local9) { _arg1[_local10.localName()] = _local10.toString(); }; _local11 = _local8.*; for each (_local12 in _local11) { if (_local12.hasSimpleContent()){ _arg1[_local12.localName()] = _local12.toString(); }; }; _local2.push(_arg1); }; return (_local2); //unresolved jump }; throw (new TypeError((("Error: Type Coercion failed: cannot convert " + _arg1) + " to Array or DataProvider."))); } public function removeItemAt(_arg1:uint):Object{ var _local2:Array; checkIndex(_arg1, (data.length - 1)); dispatchPreChangeEvent(DataChangeType.REMOVE, data.slice(_arg1, (_arg1 + 1)), _arg1, _arg1); _local2 = data.splice(_arg1, 1); dispatchChangeEvent(DataChangeType.REMOVE, _local2, _arg1, _arg1); return (_local2[0]); } public function addItem(_arg1:Object):void{ dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); data.push(_arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); } public function sortOn(_arg1:Object, _arg2:Object=null){ var _local3:Array; dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); _local3 = data.sortOn(_arg1, _arg2); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local3); } public function sort(... _args){ var _local2:Array; dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); _local2 = data.sort.apply(data, _args); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local2); } public function addItems(_arg1:Object):void{ addItemsAt(_arg1, data.length); } public function concat(_arg1:Object):void{ addItems(_arg1); } public function clone():DataProvider{ return (new DataProvider(data)); } public function toArray():Array{ return (data.concat()); } public function get length():uint{ return (data.length); } public function addItemAt(_arg1:Object, _arg2:uint):void{ checkIndex(_arg2, data.length); dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); data.splice(_arg2, 0, _arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); } public function getItemAt(_arg1:uint):Object{ checkIndex(_arg1, (data.length - 1)); return (data[_arg1]); } override public function toString():String{ return ((("DataProvider [" + data.join(" , ")) + "]")); } public function invalidateItem(_arg1:Object):void{ var _local2:uint; _local2 = getItemIndex(_arg1); if (_local2 == -1){ return; }; invalidateItemAt(_local2); } protected function dispatchChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } protected function checkIndex(_arg1:int, _arg2:int):void{ if ((((_arg1 > _arg2)) || ((_arg1 < 0)))){ throw (new RangeError((((("DataProvider index (" + _arg1) + ") is not in acceptable range (0 - ") + _arg2) + ")"))); }; } public function addItemsAt(_arg1:Object, _arg2:uint):void{ var _local3:Array; checkIndex(_arg2, data.length); _local3 = getDataFromObject(_arg1); dispatchPreChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); data.splice.apply(data, [_arg2, 0].concat(_local3)); dispatchChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); } public function replaceItem(_arg1:Object, _arg2:Object):Object{ var _local3:int; _local3 = getItemIndex(_arg2); if (_local3 != -1){ return (replaceItemAt(_arg1, _local3)); }; return (null); } public function removeItem(_arg1:Object):Object{ var _local2:int; _local2 = getItemIndex(_arg1); if (_local2 != -1){ return (removeItemAt(_local2)); }; return (null); } public function merge(_arg1:Object):void{ var _local2:Array; var _local3:uint; var _local4:uint; var _local5:uint; var _local6:Object; _local2 = getDataFromObject(_arg1); _local3 = _local2.length; _local4 = data.length; dispatchPreChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); _local5 = 0; while (_local5 < _local3) { _local6 = _local2[_local5]; if (getItemIndex(_local6) == -1){ data.push(_local6); }; _local5++; }; if (data.length > _local4){ dispatchChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); } else { dispatchChangeEvent(DataChangeType.ADD, [], -1, -1); }; } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ var _local3:Array; checkIndex(_arg2, (data.length - 1)); _local3 = [data[_arg2]]; dispatchPreChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); data[_arg2] = _arg1; dispatchChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); return (_local3[0]); } public function invalidate():void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, DataChangeType.INVALIDATE_ALL, data.concat(), 0, data.length)); } public function removeAll():void{ var _local1:Array; _local1 = data.concat(); dispatchPreChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); data = []; dispatchChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); } } }//package fl.data
Section 22
//SimpleCollectionItem (fl.data.SimpleCollectionItem) package fl.data { public dynamic class SimpleCollectionItem { public var label:String; public var data:String; public function toString():String{ return ((((("[SimpleCollectionItem: " + label) + ",") + data) + "]")); } } }//package fl.data
Section 23
//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 24
//DataChangeEvent (fl.events.DataChangeEvent) package fl.events { import flash.events.*; public class DataChangeEvent extends Event { protected var _items:Array; protected var _endIndex:uint; protected var _changeType:String; protected var _startIndex:uint; public static const PRE_DATA_CHANGE:String = "preDataChange"; public static const DATA_CHANGE:String = "dataChange"; public function DataChangeEvent(_arg1:String, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{ super(_arg1); _changeType = _arg2; _startIndex = _arg4; _items = _arg3; _endIndex = ((_arg5)==-1) ? _startIndex : _arg5; } public function get changeType():String{ return (_changeType); } public function get startIndex():uint{ return (_startIndex); } public function get items():Array{ return (_items); } override public function clone():Event{ return (new DataChangeEvent(type, _changeType, _items, _startIndex, _endIndex)); } override public function toString():String{ return (formatToString("DataChangeEvent", "type", "changeType", "startIndex", "endIndex", "bubbles", "cancelable")); } public function get endIndex():uint{ return (_endIndex); } } }//package fl.events
Section 25
//DataChangeType (fl.events.DataChangeType) package fl.events { public class DataChangeType { public static const ADD:String = "add"; public static const REMOVE:String = "remove"; public static const REMOVE_ALL:String = "removeAll"; public static const CHANGE:String = "change"; public static const REPLACE:String = "replace"; public static const INVALIDATE:String = "invalidate"; public static const INVALIDATE_ALL:String = "invalidateAll"; public static const SORT:String = "sort"; } }//package fl.events
Section 26
//ListEvent (fl.events.ListEvent) package fl.events { import flash.events.*; public class ListEvent extends Event { protected var _index:int; protected var _item:Object; protected var _columnIndex:int; protected var _rowIndex:int; public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick"; public static const ITEM_ROLL_OUT:String = "itemRollOut"; public static const ITEM_ROLL_OVER:String = "itemRollOver"; public static const ITEM_CLICK:String = "itemClick"; public function ListEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:Object=null){ super(_arg1, _arg2, _arg3); _rowIndex = _arg5; _columnIndex = _arg4; _index = _arg6; _item = _arg7; } public function get rowIndex():Object{ return (_rowIndex); } public function get index():int{ return (_index); } public function get item():Object{ return (_item); } public function get columnIndex():int{ return (_columnIndex); } override public function clone():Event{ return (new ListEvent(type, bubbles, cancelable, _columnIndex, _rowIndex)); } override public function toString():String{ return (formatToString("ListEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "index", "item")); } } }//package fl.events
Section 27
//ScrollEvent (fl.events.ScrollEvent) package fl.events { import flash.events.*; public class ScrollEvent extends Event { private var _position:Number; private var _direction:String; private var _delta:Number; public static const SCROLL:String = "scroll"; public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){ super(ScrollEvent.SCROLL, false, false); _direction = _arg1; _delta = _arg2; _position = _arg3; } override public function clone():Event{ return (new ScrollEvent(_direction, _delta, _position)); } public function get position():Number{ return (_position); } override public function toString():String{ return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position")); } public function get delta():Number{ return (_delta); } public function get direction():String{ return (_direction); } } }//package fl.events
Section 28
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.events.*; import flash.utils.*; import flash.text.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ activated = false; calculateCandidates = true; _showFocusIndicator = true; _defaultButtonEnabled = true; super(); focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local5:int; var _local6:int; var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; _local5 = focusableCandidates.length; _local6 = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; _local2 = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject; _local2 = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject; _local2 = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } private function tabChildrenChangeHandler(_arg1:Event):void{ var _local2:DisplayObjectContainer; if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; _local2 = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } public function getFocus():InteractiveObject{ var _local1:InteractiveObject; _local1 = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; var _local3:TextField; var _local4:SimpleButton; _local2 = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } public function set defaultButton(_arg1:Button):void{ var _local2:Button; _local2 = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } private function setFocusToNextObject(_arg1:FocusEvent):void{ var _local2:InteractiveObject; if (!hasFocusableObjects()){ return; }; _local2 = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int; var _local3:int; _local2 = focusableCandidates.length; _local3 = 0; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; var _local4:InteractiveObject; _local3 = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local3:String; var _local4:String; var _local5:int; var _local6:String; var _local7:String; var _local8:String; var _local9:DisplayObject; var _local10:DisplayObject; _local3 = ""; _local4 = ""; _local8 = "0000"; _local9 = DisplayObject(_arg1); _local10 = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local2:DisplayObject; var _local3:String; var _local4:int; var _local5:Boolean; var _local6:int; var _local7:int; var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; _local2 = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; _local4 = getIndexOfFocusedObject(_local2); _local5 = false; _local6 = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; _local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ var _local2:InteractiveObject; if (_arg1.isDefaultPrevented()){ return; }; _local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; _local2 = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; var _local3:Button; _local2 = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ var _local2:InteractiveObject; var _local3:Boolean; calculateCandidates = true; _local2 = InteractiveObject(_arg1.target); _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } } }//package fl.managers
Section 29
//IFocusManager (fl.managers.IFocusManager) package fl.managers { import fl.controls.*; import flash.display.*; public interface IFocusManager { function getFocus():InteractiveObject; function deactivate():void; function set defaultButton(_arg1:Button):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function setFocus(_arg1:InteractiveObject):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 30
//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 31
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; function get groupName():String; function get selected():Boolean; } }//package fl.managers
Section 32
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.utils.*; import flash.text.*; public class StyleManager { private var globalStyles:Object; private var classToDefaultStylesDict:Dictionary; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToInstancesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class; var _local5:Object; _local4 = getClassDef(_arg1); _local5 = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local2:StyleManager; var _local3:Class; var _local4:Object; var _local5:String; _local2 = getInstance(); _local3 = getClassDef(_arg1); _local4 = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local3:Dictionary; var _local4:Object; var _local5:UIComponent; _local3 = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local2:Dictionary; var _local3:Object; _local2 = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var inst:StyleManager; var classDef:Class; var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; inst = getInstance(); classDef = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; inst.classToStylesDict[classDef] = {}; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class; var _local4:StyleManager; var _local5:Object; _local3 = getClassDef(_arg1); _local4 = getInstance(); _local5 = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object; _local3 = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 33
//GameOverMenu_155 (game2_fla.GameOverMenu_155) package game2_fla { import flash.display.*; import flash.text.*; public dynamic class GameOverMenu_155 extends MovieClip { public var restartButton:MovieClip; public var quitButton:MovieClip; public var score:TextField; } }//package game2_fla
Section 34
//GameWinMenu_157 (game2_fla.GameWinMenu_157) package game2_fla { import flash.display.*; import flash.text.*; public dynamic class GameWinMenu_157 extends MovieClip { public var restartButton:MovieClip; public var goodS:TextField; public var greatS:TextField; public var quitButton:MovieClip; public var rankText:TextField; public var score:TextField; public var missS:TextField; public var comboText:TextField; public var perfectS:TextField; public var badS:TextField; } }//package game2_fla
Section 35
//HealthBar_150 (game2_fla.HealthBar_150) package game2_fla { import flash.display.*; public dynamic class HealthBar_150 extends MovieClip { public var bar:MovieClip; public function HealthBar_150(){ addFrameScript(0, frame1); } function frame1(){ bar.gotoAndStop(750); } } }//package game2_fla
Section 36
//InstructionsWindow_81 (game2_fla.InstructionsWindow_81) package game2_fla { import fl.controls.*; import flash.display.*; import flash.events.*; import fl.events.*; import fl.containers.*; public dynamic class InstructionsWindow_81 extends MovieClip { public var instructionsWindow:ScrollPane; public var closeButton:Button; public function InstructionsWindow_81(){ addFrameScript(0, frame1); __setProp_closeButton_InstructionsWindow_Layer1_1(); __setProp_instructionsWindow_InstructionsWindow_Layer1_1(); } function __setProp_closeButton_InstructionsWindow_Layer1_1(){ try { closeButton["componentInspectorSetting"] = true; } catch(e:Error) { }; closeButton.emphasized = false; closeButton.enabled = true; closeButton.label = "X"; closeButton.labelPlacement = "right"; closeButton.selected = false; closeButton.toggle = false; closeButton.visible = true; try { closeButton["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_instructionsWindow_InstructionsWindow_Layer1_1(){ try { instructionsWindow["componentInspectorSetting"] = true; } catch(e:Error) { }; instructionsWindow.enabled = true; instructionsWindow.horizontalLineScrollSize = 4; instructionsWindow.horizontalPageScrollSize = 0; instructionsWindow.horizontalScrollPolicy = "off"; instructionsWindow.scrollDrag = false; instructionsWindow.source = "Instructions"; instructionsWindow.verticalLineScrollSize = 4; instructionsWindow.verticalPageScrollSize = 0; instructionsWindow.verticalScrollPolicy = "on"; instructionsWindow.visible = true; try { instructionsWindow["componentInspectorSetting"] = false; } catch(e:Error) { }; } function frame1(){ closeButton.addEventListener(ComponentEvent.BUTTON_DOWN, closeButtonFunction); } public function closeButtonFunction(_arg1:Event){ this.visible = false; } } }//package game2_fla
Section 37
//loadED_76 (game2_fla.loadED_76) package game2_fla { import flash.display.*; public dynamic class loadED_76 extends MovieClip { public function loadED_76(){ addFrameScript(39, frame40); } function frame40(){ stop(); } } }//package game2_fla
Section 38
//MainTimeline (game2_fla.MainTimeline) package game2_fla { import flash.display.*; import flash.events.*; import flash.net.*; import flash.system.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public const BEVEL_FILTER; public const ALPHA_FILTER; public var spawnCol; public var ratio; public var spawnNum; public var scoreBar:TextField; public var easeFrame; public var healthbar:MovieClip; public var ba:ByteArray; public var byteA; public var sc; public var optionsArray; public var health; public var b; public var pos; public var bd; public var s; public var gameOverMenu:MovieClip; public var pauseMenu:MovieClip; public var preloader:MovieClip; public var score; public var comboMeter:TextField; public var notesContainer; public var maxHealth; public var scoreArray; public var scoreEffectContainer; public var gameWinMenu:MovieClip; public var optionsMenu:MovieClip; public var numSpawned; public var instructionsButton:MovieClip; public var globalBg; public var highestCombo; public var frame; public var lb; public var combo; public var ltl; public var instructionsWindow:MovieClip; public function MainTimeline(){ BEVEL_FILTER = new BevelFilter(); ALPHA_FILTER = new ColorTransform(1, 1, 1, 0.9); super(); addFrameScript(0, frame1, 1, frame2, 95, frame96, 115, frame116); } public function continueMouseDown(_arg1:MouseEvent){ pauseMenu.visible = false; unpause(); } public function onRootLoaderInit(_arg1:Event):void{ lb = _arg1.target.bytesLoaded; ltl = _arg1.target.bytesTotal; ratio = ((lb / ltl) * 100); } public function spawnNotesRAB(){ spawn(143.15, 65, 150); newGroup(); spawn(271.75, 154, 150); spawn(280.7, 154, 190); newGroup(); spawn(429.9, 217, 150); newGroup(); spawn(557.45, 269, 149); spawn(570.8, 270, 192); newGroup(); spawn(720.6, 326, 149); newGroup(); spawn(841.8, 387, 149); spawn(858.8, 389, 196); newGroup(); spawn(1005.3, 447, 149); newGroup(); spawn(1094.7, 448, 96); spawnRoll(1116.35, 1143.7, 403.55, 98.95, 303.15, 98.8); newGroup(); spawn(1181.95, 0xFF, 100); spawn(1252.85, 209, 99); newGroup(); spawn(1328.85, 151, 99); spawn(1375.85, 110, 148); spawn(1395.85, 150, 163); newGroup(); spawn(1468.45, 216, 162); spawn(1513.45, 260, 124); spawn(1543.45, 227, 99); newGroup(); spawn(1616.65, 295, 97); spawn(1662.95, 338, 141); spawnRoll(1692.45, 1731.45, 365.55, 95.7, 267.9, 43.2); newGroup(); spawn(1760.25, 234, 88); spawn(1807.3, 283, 131); spawn(1834.4, 248, 160); newGroup(); spawn(1902.45, 165, 163); spawn(1951.15, 121, 110); spawn(1977.05, 156, 85); newGroup(); spawn(2047.7, 0xFF, 84); spawn(2093.75, 301, 133); spawn(2122.55, 329, 163); newGroup(); spawn(2193.9, 371, 115); spawn(2234.4, 404, 59); spawn(2263.7, 366, 60); newGroup(); spawn(2338.35, 269, 62); spawn(2383.55, 237, 131); spawn(2410.7, 269, 155); newGroup(); spawn(2478.75, 359, 153); spawn(2526.8, 387, 99); spawn(2549.75, 355, 77); newGroup(); spawn(2622.5, 269, 80); spawn(2670.4, 234, 141); spawn(2699.45, 273, 156); newGroup(); spawnRoll(2737.65, 2884.4, 275.6, 116.15, 32.4, 115); newGroup(); spawn(2910.7, 29, 159); spawn(2954, 32, 218); spawn(2982, 78, 218); newGroup(); spawn(3053.65, 156, 216); spawn(3100.65, 157, 156); spawn(3122.65, 201, 156); newGroup(); spawn(3204, 281, 156); spawn(3249.2, 281, 102); spawn(3274.2, 326, 101); newGroup(); spawnRoll(3417.1, 3454.9, 164.05, 104.45, 297.8, 102.3); newGroup(); spawn(3494.35, 301, 152); spawn(3530.35, 302, 212); spawn(3558.35, 347, 211); newGroup(); spawn(3631.35, 347, 145); spawn(3681.35, 278, 150); spawn(3706.6, 277, 107); newGroup(); spawn(3768.1, 348, 107); spawn(3821.1, 416, 108); spawn(3841.1, 418, 150); newGroup(); spawn(3919.1, 343, 154); spawn(3963.1, 277, 156); spawn(3985.1, 228, 158); newGroup(); spawn(4067.8, 226, 228); spawn(4111.15, 287, 227); spawn(4128.15, 327, 227); newGroup(); spawn(4207.55, 376, 178); spawn(4249.55, 322, 140); spawn(4274.55, 289, 116); newGroup(); spawn(4351.75, 213, 117); spawn(4395.6, 158, 149); spawn(4423.6, 158, 188); newGroup(); spawn(4498.6, 210, 239); spawn(4531.6, 267, 238); spawn(4566.5, 307, 237); newGroup(); spawn(4642.9, 352, 176); spawn(4679.9, 392, 118); spawn(4709.9, 418, 83); newGroup(); spawn(4783.2, 375, 44); spawn(4830.2, 306, 46); spawn(4853.2, 264, 49); newGroup(); spawn(4930.65, 212, 100); spawn(4971.05, 153, 104); spawn(4999.05, 114, 104); newGroup(); spawn(5076.1, 116, 172); spawn(5108.15, 152, 220); spawn(5139.15, 193, 219); newGroup(); spawnRoll(5177.05, 5757.9, 198.85, 274.05, 458.05, 26.05); newGroup(); spawn(5794.4, 469, 83); spawn(5825.4, 464, 138); spawn(5864.4, 428, 200); spawn(5897.4, 378, 228); spawn(5934.4, 327, 215); spawn(5973.4, 279, 199); spawn(6006.4, 235, 168); spawn(6043.5, 245, 117); spawn(6074.45, 294, 96); spawn(6113.45, 346, 94); spawn(6152.45, 391, 127); spawn(6183.7, 397, 175); spawn(6222.7, 362, 218); spawn(6258.7, 308, 221); spawn(6296.8, 281, 168); spawn(6325.7, 228, 167); spawn(6364.7, 208, 115); spawn(6400.7, 152, 117); spawn(6437.5, 153, 167); spawn(6474.6, 194, 206); spawn(6518.6, 236, 242); spawn(6549.6, 283, 225); spawn(6582.6, 324, 197); spawn(6619.6, 324, 144); spawn(6658.6, 378, 144); spawn(6691.6, 378, 95); spawn(6724.6, 325, 95); spawn(6761.6, 269, 97); spawn(6794.6, 233, 134); spawn(6833.6, 187, 99); newGroup(); spawnRoll(6869.25, 6911.75, 211.75, 148.45, 315.25, 150.8); newGroup(); spawn(6942.9, 319, 91); spawn(6992.3, 389, 89); spawn(7009.3, 391, 131); newGroup(); spawn(7089.75, 347, 181); spawn(7133, 279, 179); spawn(7166.1, 280, 219); newGroup(); spawn(7237.65, 203, 219); spawn(7284.75, 199, 158); spawn(7303.75, 242, 158); newGroup(); spawn(7376.75, 297, 119); spawn(7417.75, 347, 158); spawn(7443.55, 349, 198); newGroup(); spawn(7516.65, 274, 199); spawn(7561.75, 206, 201); spawn(7588.65, 203, 161); newGroup(); spawn(7661.65, 276, 158); spawn(7711.65, 338, 158); spawn(7739.65, 363, 129); newGroup(); spawn(7809.65, 308, 80); spawn(7856.65, 238, 80); spawn(7873.65, 237, 124); newGroup(); spawn(7951.65, 236, 190); spawn(7995.65, 166, 190); spawn(8020.65, 148, 151); newGroup(); spawn(8091.65, 180, 89); spawn(8138.55, 247, 89); spawn(8157.5, 287, 87); newGroup(); spawn(8238.6, 346, 134); spawn(8283.6, 304, 179); spawn(8308.6, 328, 212); newGroup(); spawn(8378.6, 252, 215); spawn(8428.6, 199, 171); spawn(8453.6, 170, 141); newGroup(); spawn(8531.6, 232, 98); spawn(8574.6, 294, 97); spawn(8592.6, 336, 97); newGroup(); spawn(8673.2, 340, 170); spawn(8698.15, 280, 171); spawn(8714.15, 251, 143); spawn(8743.85, 180, 144); newGroup(); spawn(8814.4, 117, 148); spawn(8846.1, 121, 96); spawn(8862.65, 156, 75); spawn(8885.85, 205, 89); newGroup(); spawn(8960.95, 280, 90); spawn(8987.45, 328, 68); spawn(9006.1, 364, 91); spawn(9030.55, 362, 143); newGroup(); spawn(9110.35, 303, 191); spawn(9135.35, 273, 236); spawn(9149.35, 232, 239); spawn(9175.35, 203, 196); newGroup(); spawn(9250.35, 165, 147); spawn(9278.35, 210, 106); spawn(9292.35, 238, 138); spawn(9317.35, 282, 103); newGroup(); spawn(9395.35, 323, 153); spawn(9422.35, 325, 198); spawn(9439.35, 286, 199); spawn(9462.35, 287, 246); newGroup(); spawn(9537.35, 214, 248); spawn(9562.35, 244, 212); spawn(9581.35, 212, 189); spawn(9606.35, 246, 153); newGroup(); spawn(9682.35, 314, 186); spawn(9707.35, 358, 218); spawn(9726.35, 392, 243); spawn(9746.35, 430, 272); newGroup(); spawnRoll(9771.75, 10367.1, 457.65, 239.1, 189.2, 29.55); newGroup(); spawn(10505.7, 107, 126); newGroup(); spawn(10649.95, 212, 202); newGroup(); spawn(10801.2, 175, 86); newGroup(); spawnRoll(10897.45, 10947.55, 331.2, 84.9, 254.25, 91.5); newGroup(); spawn(10978.35, 0x0100, 145); spawn(11025.15, 208, 190); spawn(11044.6, 249, 205); newGroup(); spawn(11120.1, 315, 225); spawn(11166.1, 361, 190); spawn(11192.1, 392, 220); newGroup(); spawn(11265.4, 319, 225); spawn(11309.95, 261, 186); spawn(11334.95, 232, 215); newGroup(); spawn(11409.95, 174, 179); spawn(11451.95, 131, 225); spawn(11473.95, 101, 254); newGroup(); spawnRoll(11525.1, 13256.45, 27.4, 278.5, 473.9, 17.5); newGroup(); spawn(13282.7, 460, 82); spawn(13307.15, 419, 116); spawn(13323.15, 452, 143); spawn(13349.15, 415, 181); newGroup(); spawn(13428.75, 355, 221); spawn(13452.2, 315, 177); spawn(13466.2, 284, 206); spawn(13491.2, 240, 165); newGroup(); spawn(13565.1, 193, 212); spawn(13593, 154, 176); spawn(13613, 188, 149); spawn(13641, 157, 116); newGroup(); spawn(13710, 210, 83); spawn(13735, 247, 124); spawn(13758, 277, 152); spawn(13780, 321, 192); newGroup(); spawn(13857.6, 394, 194); spawn(13880.15, 394, 145); spawn(13899.8, 395, 105); spawn(13928.25, 352, 107); newGroup(); spawn(14003.75, 278, 108); spawn(14028.75, 220, 110); spawn(14045.75, 177, 110); spawn(14070.75, 114, 110); newGroup(); spawn(14143.75, 114, 184); spawn(14168.75, 176, 183); spawn(14187.75, 220, 181); spawn(14209.75, 287, 178); newGroup(); spawn(14286.3, 339, 136); spawn(14312, 391, 169); spawn(14331, 427, 193); spawn(14359, 470, 232); newGroup(); spawnRoll(14399.9, 14579.95, 426.3, 266.35, 222.55, 147.35); } public function progressHandler(_arg1:ProgressEvent){ frame = Math.round(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100)); preloader.bar.gotoAndStop(frame); } public function randomBg(){ if (Math.random() < 0.333){ globalBg = new RedAlertBigfoot(); } else { if (Math.random() < 0.5){ globalBg = new Why(); } else { globalBg = new InYourFace(); }; }; globalBg.play(); } function frame1(){ stage.quality = StageQuality.MEDIUM; instructionsWindow.visible = false; instructionsButton.stop(); instructionsButton.addEventListener(MouseEvent.MOUSE_DOWN, instructionsMouseDown); stop(); this.root.loaderInfo.addEventListener(Event.INIT, onRootLoaderInit); this.root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); this.root.loaderInfo.addEventListener(Event.COMPLETE, progressCompleteHandler); } public function enterFrameFunction(_arg1:Event){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:String; if (optionsArray["drawSpectrum"]){ drawSpectrum(); }; if (health <= 0){ gameOver(); }; if (pos < 0){ pos = (pos + 1); if (pos >= -2){ startSong(); pos = 0; }; } else { if ((((pos == ((sc.position * 60) / 1000))) && (((s.length - sc.position) < 500)))){ gameWon(); }; pos = ((sc.position * 60) / 1000); }; _local5 = 0; while (_local5 < notesContainer.numChildren) { _local2 = notesContainer.getChildAt(_local5); _local3 = (pos - _local2.position); if ((((_local3 > -100)) && ((((_local3 <= 5)) || ((((_local2.name == "Roll")) && (((pos - _local2.endPos) <= 0)))))))){ if (!_local2.clickButton.hasEventListener(MouseEvent.MOUSE_DOWN)){ if (_local2.name == "Roll"){ _local2.clickButton.addEventListener(MouseEvent.MOUSE_DOWN, rollStartFunction); } else { _local2.clickButton.addEventListener(MouseEvent.MOUSE_DOWN, clickFunction); }; }; _local2.visible = true; if ((-(_local3) + 35) < 35){ _local2.growTo.visible = false; } else { _local2.growTo.height = (-(_local3) + 35); _local2.growTo.width = (-(_local3) + 35); }; _local2.alpha = (1 + (_local3 / 100)); if (_local2.alpha > 1){ _local2.alpha = 1; }; if (_local2.name == "Roll"){ _local4 = Math.round((((pos - _local2.position) / (_local2.endPos - _local2.position)) * 1000)); _local2.rollFollow.x = (((pos - _local2.position) / (_local2.endPos - _local2.position)) * _local2.endPoint.x); _local2.rollFollow.y = (((pos - _local2.position) / (_local2.endPos - _local2.position)) * _local2.endPoint.y); if ((((_local4 >= 1)) && (!(_local2.rollFollow.visible)))){ _local2.rollFollow.addEventListener(Event.ENTER_FRAME, rollFunction); _local2.rollFollow.visible = true; }; _local2.stretch.gotoAndStop(_local4); }; } else { if ((((_local3 > 5)) && ((((((_local2.name == "Roll")) && (((pos - _local2.endPos) > 5)))) || (!((_local2.name == "Roll"))))))){ if (_local2.clickButton.hasEventListener(MouseEvent.MOUSE_DOWN)){ if (_local2.name == "Roll"){ _local2.clickButton.removeEventListener(MouseEvent.MOUSE_DOWN, rollStartFunction); _local2.rollFollow.removeEventListener(Event.ENTER_FRAME, rollFunction); } else { _local2.clickButton.removeEventListener(MouseEvent.MOUSE_DOWN, clickFunction); scoreEffect(5, _local2.x, _local2.y); combo = 0; health = (health - 4); }; }; notesContainer.setChildIndex(_local2, 0); _local2.alpha = (_local2.alpha * 0.9); if (_local2.alpha < 0.05){ _local2.visible = false; notesContainer.removeChild(_local2); }; }; }; _local5++; }; _local5 = 0; while (_local5 < scoreEffectContainer.numChildren) { _local2 = scoreEffectContainer.getChildAt(_local5); _local2.alpha = (_local2.alpha * 0.9); if (_local2.alpha < 0.05){ scoreEffectContainer.removeChild(_local2); }; _local5++; }; health = (health - 0.01); healthbar.bar.gotoAndStop(Math.round((((((health / maxHealth) * 1000) - healthbar.bar.currentFrame) / 10) + healthbar.bar.currentFrame))); if (highestCombo < combo){ highestCombo = combo; }; _local6 = score.toString(); while (_local6.length < 9) { _local6 = ("0" + _local6); }; comboMeter.text = (combo + "x"); scoreBar.text = _local6; } function frame2(){ play(); randomBg(); } public function startSong(){ SoundMixer.stopAll(); if (optionsArray["song"] == "Red Alert Bigfoot"){ s = new RedAlertBigfoot(); } else { if (optionsArray["song"] == "In Your Face"){ s = new InYourFace(); } else { s = new Why(); }; }; sc = s.play(); } public function spawnRoll(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){ var _local7:*; _local7 = new Roll(); _local7.name = "Roll"; _local7.x = _arg3; _local7.y = _arg4; _local7.endPt = new Point((_arg5 - _arg3), (_arg6 - _arg4)); _local7.position = _arg1; _local7.endPos = _arg2; _local7.stretch.changeCol.transform.colorTransform = spawnCol; _local7.changeCol.transform.colorTransform = spawnCol; _local7.endPoint.changeCol.transform.colorTransform = spawnCol; _local7.num.text = spawnNum; spawnNum++; _local7.renderRoll(); _local7.alpha = 0; notesContainer.addChild(_local7); _local7.filters = [BEVEL_FILTER]; notesContainer.setChildIndex(_local7, 0); } public function newGroup(){ spawnNum = 1; spawnCol = new ColorTransform(); spawnCol.color = (0xFFFFFF * Math.random()); } public function instructionsMouseDown(_arg1:MouseEvent){ instructionsWindow.visible = true; } public function scoreEffect(_arg1, _arg2=0, _arg3=0){ var _local4:*; if ((((_arg2 == 0)) && ((_arg3 == 0)))){ _arg2 = mouseX; _arg3 = mouseY; }; _local4 = new ScoreEffect(); _local4.gotoAndStop(_arg1); _local4.x = _arg2; _local4.y = _arg3; scoreEffectContainer.addChild(_local4); var _local5 = scoreArray; var _local6 = _arg1; var _local7 = (_local5[_local6] + 1); _local5[_local6] = _local7; } public function rollStartFunction(_arg1:MouseEvent){ if (!_arg1.currentTarget.parent.given){ _arg1.currentTarget.parent.given = true; _arg1.currentTarget.parent.giveYet = pos; applyScore(Math.abs((_arg1.currentTarget.parent.position - pos))); }; } public function startButtonMouseDown(_arg1:MouseEvent){ if (currentFrame == 116){ SoundMixer.stopAll(); if (optionsMenu.easyB.selected){ optionsArray["mode"] = "Easy"; } else { if (optionsMenu.normalB.selected){ optionsArray["mode"] = "Normal"; } else { optionsArray["mode"] = "Hard"; }; }; if (optionsMenu.drawspectrum.selected){ optionsArray["drawSpectrum"] = true; }; optionsArray["song"] = optionsMenu.songList.selectedItem.data; optionsMenu.visible = false; startGame(); }; } public function unpause(){ stage.setChildIndex(pauseMenu.parent, 0); pauseMenu.visible = false; sc = s.play(((pos * 1000) / 60)); stage.addEventListener(Event.ENTER_FRAME, enterFrameFunction); stage.addEventListener(KeyboardEvent.KEY_DOWN, pause); } public function spawnNotesW(){ spawn(0, 76, 199); spawn(78.5500000000001, 123, 198); spawn(160.1, 162, 158); spawn(236.65, 203, 111); spawn(320.65, 238, 188); spawn(395.65, 277, 126); spawn(473.65, 315, 93); spawn(552.65, 354, 54); spawn(597.4, 394, 87); newGroup(); spawn(636.4, 431, 162); spawn(714.4, 374, 163); spawn(795.95, 344, 129); spawn(878.95, 310, 96); spawn(951.95, 277, 66); spawn(1032.95, 244, 36); spawn(1110.95, 211, 84); spawn(1196.95, 173, 49); spawn(1229.95, 137, 97); spawn(1259.15, 106, 149); spawn(1273.15, 106, 149); newGroup(); spawn(1316.8, 137, 190); spawn(1396.4, 184, 134); spawn(1476.4, 230, 190); spawn(1554.5, 285, 143); spawn(1632.45, 329, 197); spawn(1714.4, 384, 145); spawn(1796.2, 435, 198); spawn(1878.55, 392, 260); newGroup(); spawn(1922.4, 365, 224); spawn(1956.4, 337, 190); spawn(2034.55, 291, 133); spawn(2120.55, 243, 190); spawn(2192.75, 197, 147); spawn(2269.4, 146, 201); spawn(2355.4, 95, 146); spawn(2436.4, 143, 95); spawn(2516.5, 217, 96); spawnRoll(2555.95, 2612.7, 284.15, 94.5, 374.2, 93.3); newGroup(); spawn(2632.7, 409, 92); spawn(2710.7, 383, 123); spawn(2795.65, 360, 152); spawn(2875.65, 334, 177); spawn(2956.65, 309, 202); spawn(3040.65, 285, 231); spawn(3118.65, 264, 263); newGroup(); spawnRoll(3195.8, 3233.45, 224.75, 263.25, 225.45, 176.05); spawn(3232.55, 226, 177); spawn(3278.2, 224, 124); spawn(3313, 0x0101, 99); spawn(3355.05, 290, 73); spawn(3393.75, 337, 72); spawn(3433.8, 317, 113); spawn(3472.4, 350, 142); spawn(3510.9, 349, 186); spawn(3557, 377, 160); spawn(3601.4, 408, 190); spawn(3631.8, 380, 225); spawn(3675.75, 337, 223); spawn(3709.55, 292, 224); spawn(3731.55, 261, 226); spawn(3753.55, 234, 227); spawn(3786.65, 206, 194); spawn(3824.45, 206, 136); newGroup(); spawn(3912, 209, 95); spawn(3951, 0x0101, 94); spawn(3992, 306, 94); newGroup(); spawn(4071, 234, 61); spawn(4113, 280, 61); spawn(4152, 326, 60); newGroup(); spawn(4228, 292, 29); spawn(4269, 251, 31); spawn(4308, 337, 29); newGroup(); spawn(4392, 305, 95); spawn(4428, 261, 97); spawn(4466.35, 217, 101); newGroup(); spawn(4514.75, 217, 151); spawn(4597.2, 269, 104); spawn(4675.2, 322, 151); spawn(4753.2, 373, 102); spawn(4831.2, 425, 152); spawn(4917.3, 382, 211); spawn(4991, 325, 169); spawn(5074, 267, 122); spawn(5117.8, 215, 124); newGroup(); spawn(5235.85, 162, 125); spawn(5356.6, 105, 125); spawn(5434.65, 106, 175); spawn(5515.15, 108, 223); spawn(5593.3, 160, 221); spawn(5671.4, 215, 221); spawn(5713, 281, 219); spawn(5735.45, 295, 218); spawn(5756.65, 345, 216); newGroup(); spawn(5786.65, 380, 187); spawn(5797.65, 380, 186); spawn(5838.2, 380, 127); spawn(5871.7, 379, 80); spawn(5896.75, 317, 83); spawn(5907.6, 317, 83); spawn(5918.25, 317, 83); spawn(5943.4, 318, 124); spawn(5956.5, 318, 124); spawn(5996.25, 269, 130); spawn(6025.4, 214, 135); spawn(6041.4, 214, 135); spawn(6064.45, 169, 139); spawn(6076.4, 169, 139); spawn(6105.45, 135, 145); spawn(6110.85, 136, 145); spawn(6159.15, 165, 182); spawn(6181.4, 207, 159); spawn(6236.3, 283, 151); spawn(6297.7, 324, 150); spawn(6334.7, 365, 148); spawn(6377.75, 405, 147); spawn(6395.3, 458, 146); newGroup(); spawn(6514.25, 405, 146); spawn(6595.6, 360, 97); spawn(6671.45, 314, 148); spawn(6754.45, 262, 96); spawn(6830.45, 218, 151); spawn(6913.45, 168, 100); spawn(6997.45, 118, 153); spawn(7075.45, 62, 102); spawn(7160, 139, 98); spawn(7234.4, 208, 94); spawn(7316.4, 286, 90); spawn(7353.55, 343, 87); spawn(7395.55, 343, 122); spawn(7470.55, 269, 125); spawn(7552.65, 218, 182); spawn(7638.65, 173, 240); newGroup(); spawn(7673.5, 169, 174); spawn(7691.65, 168, 131); spawn(7718.7, 191, 96); spawn(7738.05, 234, 95); spawn(7756.5, 276, 94); newGroup(); spawn(7834.85, 347, 90); spawn(7912.2, 387, 146); spawn(7995.2, 330, 191); spawn(8074.25, 262, 194); spawn(8157.25, 210, 248); spawn(8235.25, 160, 204); spawn(8277.9, 136, 176); newGroup(); spawn(8314.05, 87, 139); spawn(8352.25, 124, 96); spawn(8436.35, 174, 150); spawn(8511.7, 220, 95); spawn(8597.7, 267, 153); spawn(8677.2, 316, 102); spawn(8759.65, 368, 151); spawn(8840.65, 417, 92); spawn(8918.5, 470, 143); newGroup(); spawn(8986.7, 416, 190); spawn(8994.95, 416, 190); spawn(9075.4, 352, 194); spawn(9154.6, 313, 164); spawn(9192.45, 280, 195); spawn(9204.6, 280, 196); spawn(9225.4, 267, 209); spawn(9235.25, 268, 209); newGroup(); spawnRoll(9279.15, 9397, 240.05, 235.1, 249.6, 146.75); } public function drawSpectrum(){ var _local1:*; var _local2:*; var _local3:MovieClip; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:Matrix; bd.colorTransform(new Rectangle(0, 0, 500, 300), ALPHA_FILTER); _local1 = 1; _local2 = 0.5; SoundMixer.computeSpectrum(byteA, true); _local3 = new MovieClip(); _local13 = 0; while (_local13 < 0x0200) { _local5 = (((_local13 / 0x0200) * 2) * Math.PI); _local6 = (_local5 + (((_local1 / 0x0200) * 2) * Math.PI)); _local4 = byteA.readFloat(); _local7 = (_local4 * 400); _local8 = (_local7 * _local2); _local9 = Point.polar(_local7, _local5); _local10 = Point.polar(_local7, _local6); _local11 = Point.polar(_local8, _local6); _local12 = Point.polar(_local8, _local5); _local3.graphics.beginFill(Math.round((_local4 * 0xFFFF00)), 0.1); _local3.graphics.moveTo(_local9.x, _local9.y); _local3.graphics.lineTo(_local10.x, _local10.y); _local3.graphics.lineTo(_local11.x, _local11.y); _local3.graphics.lineTo(_local12.x, _local12.y); _local3.graphics.endFill(); _local13 = (_local13 + _local1); }; _local14 = new Matrix(); _local14.tx = 250; _local14.ty = 150; bd.draw(_local3, _local14); } public function gameWon(){ var _local1:*; var _local2:*; endGame(); stage.setChildIndex(gameWinMenu.parent, (stage.numChildren - 1)); gameWinMenu.visible = true; _local1 = ""; _local2 = (numSpawned * 300); if (score > ((_local2 * 8) / 9)){ _local1 = "S"; } else { if (score > ((_local2 * 3) / 4)){ _local1 = "A"; } else { if (score > ((_local2 * 2) / 3)){ _local1 = "B"; } else { if (score > ((_local2 * 1) / 2)){ _local1 = "C"; } else { if (score > ((_local2 * 1) / 4)){ _local1 = "D"; } else { if (score > ((_local2 * 1) / 8)){ _local1 = "F"; } else { _local1 = "Z..."; }; }; }; }; }; }; gameWinMenu.rankText.text = _local1; gameWinMenu.score.text = scoreBar.text; gameWinMenu.comboText.text = (highestCombo + "x"); gameWinMenu.perfectS.text = scoreArray[4]; gameWinMenu.greatS.text = scoreArray[3]; gameWinMenu.goodS.text = scoreArray[2]; gameWinMenu.badS.text = scoreArray[1]; gameWinMenu.missS.text = scoreArray[5]; } public function spawnNotesIYF(){ spawn(70.25, 263, 165); spawnRoll(102.25, 128, 220.9, 132.3, 154.9, 93.1); newGroup(); spawn(158, 100, 142); spawn(169, 128, 187); spawn(197, 175, 140); spawn(211, 200, 186); spawn(239, 244, 133); spawn(0x0100, 270, 182); spawn(286, 304, 129); spawnRoll(300, 387, 330.3, 180.9, 104.2, 114.8); newGroup(); spawn(395, 110, 144); spawn(406, 134, 194); spawn(434, 180, 141); spawn(448, 204, 193); spawn(473, 247, 138); spawnRoll(487, 612, 269.1, 191.55, 459.2, 66.1); newGroup(); spawn(625.25, 464, 112); spawn(636.7, 426, 173); spawn(671, 404, 107); spawn(685, 371, 166); spawn(707, 341, 106); spawn(724, 307, 165); spawn(752, 278, 100); spawnRoll(769, 845, 244.7, 161.35, 100.2, 102.75); newGroup(); spawn(855, 97, 172); spawn(869, 121, 221); spawn(897, 164, 252); spawn(913, 209, 237); spawn(939, 231, 202); spawnRoll(952, 1084, 235.35, 148.55, 154.7, 76.05); newGroup(); spawn(1089.85, 134, 119); spawn(1109.85, 139, 130); spawn(1133.85, 149, 142); spawn(1143.75, 159, 151); spawn(1161.85, 166, 158); spawn(1175.9, 176, 165); spawn(1184.85, 185, 167); spawn(1208.45, 233, 102); spawn(1225.45, 241, 118); spawn(1242.45, 241, 134); spawn(1259.45, 235, 149); spawn(1278.45, 228, 161); spawn(1292.45, 223, 174); spawn(1315.85, 128, 196); spawn(1343.85, 146, 206); spawn(1366.85, 164, 216); spawn(1386.85, 180, 224); spawn(1400.85, 192, 222); spawn(1443, 251, 217); spawn(1465, 263, 217); spawnRoll(1482, 1544, 279.7, 216, 195.3, 115.2); newGroup(); spawn(1554, 217, 114); spawn(1577, 230, 120); spawn(1599, 246, 125); spawn(1621, 260, 128); spawn(1643, 277, 133); spawn(1655, 293, 139); spawn(1674, 247, 193); spawn(1694, 236, 185); spawn(1713, 221, 175); spawn(1735, 204, 178); spawn(1755, 190, 186); spawn(1788, 173, 224); spawn(1811, 164, 221); spawn(1830, 150, 218); spawn(1852, 133, 219); spawn(1872, 120, 226); spawn(1883, 109, 236); spawn(1905, 91, 191); spawn(1928, 91, 179); spawnRoll(1947, 2004, 90.15, 164.9, 134.3, 69.5); newGroup(); spawn(2017, 212, 57); spawn(2042, 211, 111); spawn(2073, 211, 163); spawn(2098, 209, 215); spawn(2123, 263, 216); spawn(2156, 315, 216); spawn(2187, 365, 213); spawn(2215, 364, 163); spawn(2243, 362, 112); spawn(2268, 360, 67); spawn(2298, 311, 67); spawn(2326, 263, 70); spawn(2354, 216, 70); spawn(2382, 167, 71); spawn(2415, 167, 156); spawn(2443, 218, 156); spawn(2474, 267, 156); spawn(2504, 317, 155); spawn(2535, 368, 153); spawn(2566, 369, 104); spawn(2594, 322, 105); spawn(2624, 273, 107); spawn(2649, 223, 111); spawn(2683, 177, 113); spawn(2708, 128, 115); spawn(2733, 82, 116); spawn(2764, 83, 164); spawn(2794, 84, 215); spawn(2822, 131, 215); spawn(2853, 180, 215); spawn(2881, 233, 216); spawn(2911, 283, 216); newGroup(); spawn(2945, 382, 157); spawn(2959.85, 400, 110); spawn(2987.2, 350, 53); spawn(3001.2, 298, 50); spawn(3028, 237, 95); spawn(3042, 221, 141); spawn(3078, 241, 199); spawnRoll(3090, 3173, 290.35, 203.6, 293.7, 38.95); newGroup(); spawn(3182, 333, 39); spawn(3193, 371, 64); spawn(3221, 400, 124); spawn(3235, 415, 174); spawn(3265, 416, 248); spawnRoll(3279, 3400, 375.2, 254.45, 88.55, 130.2); newGroup(); spawn(3411.8, 164, 75); spawn(3428.8, 182, 122); spawn(3454.15, 220, 73); spawn(3468.15, 238, 122); spawn(3493.15, 275, 72); spawn(3507.15, 293, 124); spawn(3538, 332, 73); spawnRoll(3552, 3629, 350.55, 123.4, 221.1, 257.3); newGroup(); spawn(3636, 186, 229); spawn(3658, 160, 194); spawn(3683, 149, 135); spawn(3700, 147, 91); spawn(3725, 182, 45); spawnRoll(3739, 3865, 212.75, 78, 459.15, 258.35); newGroup(); spawn(3881, 428, 263); spawn(3903, 407, 262); spawn(3923, 387, 261); spawn(3951, 367, 262); spawn(3967, 348, 260); spawn(4001, 285, 250); spawn(4020, 272, 240); spawn(4040, 260, 228); spawn(4062, 246, 218); spawn(4084, 232, 208); spawn(0x1010, 208, 156); spawn(4135, 222, 146); spawn(4154, 234, 134); spawn(4182, 250, 124); spawn(4196, 265, 116); spawn(4232, 316, 78); spawn(4252, 301, 79); spawn(4271, 282, 80); spawn(4338, 218, 85); spawn(4357, 201, 87); spawn(4380, 185, 88); spawn(4413, 168, 90); spawn(4430, 150, 90); spawn(4461, 106, 117); spawn(4480, 113, 137); spawn(4500, 134, 154); spawn(4527, 152, 163); spawn(4544, 170, 167); spawn(4572, 221, 153); spawn(4594, 240, 142); spawn(4617, 0x0100, 136); spawn(4642, 273, 127); spawn(4658, 288, 118); spawn(4678, 303, 101); spawn(4697, 0xFF, 86); spawn(4717, 232, 81); spawnRoll(4742, 4790, 213.75, 77.15, 176.1, 188.75); newGroup(); spawn(4803, 157, 228); spawn(4823, 212, 232); spawn(4853, 260, 233); spawn(4881, 310, 233); spawn(4909, 358, 231); spawn(4934, 358, 186); spawn(4956, 357, 132); spawn(4984, 355, 85); spawn(5004, 307, 86); spawn(5069.25, 223, 85); spawn(5119.2, 222, 159); spawn(5175.1, 314, 161); spawn(5233.85, 314, 234); spawn(5297.05, 238, 236); spawn(5354.05, 161, 241); spawn(5415.05, 160, 172); spawn(5468.9, 90, 177); spawn(5525.6, 93, 105); spawn(5583.1, 166, 109); spawn(5644.1, 167, 181); spawn(5675.75, 237, 182); spawn(5702.1, 310, 185); spawnRoll(5728, 5960, 377.65, 187.05, 57.95, 267.4); newGroup(); spawn(5969.35, 45, 231); spawn(5980.35, 60, 178); spawn(6005.35, 118, 119); spawn(6021.35, 164, 107); spawn(6047.5, 247, 107); spawnRoll(6060.95, 6130, 277.15, 141.75, 112.95, 273.3); newGroup(); spawn(6135.45, 78, 276); spawn(6188, 77, 108); spawn(6213, 119, 111); spawn(6238, 184, 113); spawn(6255, 222, 114); spawn(6283, 280, 116); spawn(6300, 327, 118); spawn(6330, 327, 182); spawn(6344, 300, 214); spawn(6430, 121, 120); spawn(6442, 150, 167); spawn(6470, 191, 115); spawnRoll(6483, 6650, 213.7, 165.1, 270, 115.4); newGroup(); spawnRoll(6654.05, 6700, 338.8, 112.95, 430.1, 177.8); spawn(6712, 401, 213); spawn(6737, 364, 216); newGroup(); spawn(6776, 109, 87); spawn(6801, 133, 141); spawn(6823, 176, 87); spawn(6837, 205, 139); spawn(6860, 239, 82); spawn(6876, 269, 140); spawn(6907, 306, 79); spawnRoll(6921, 7000, 329.25, 135.95, 198.1, 253.7); newGroup(); spawn(7013, 168, 225); spawn(7027, 117, 192); spawn(7052, 146, 146); spawn(7066, 106, 119); spawn(7096, 132, 77); spawnRoll(7110, 7239, 174.65, 95.6, 414.45, 97.7); newGroup(); spawn(7241, 418, 147); spawn(7258, 390, 179); spawn(7283, 344, 224); spawn(7297, 294, 228); spawn(7328, 234, 207); spawn(7344, 197, 178); spawn(7375, 196, 116); spawnRoll(7386, 7465, 242.2, 117.15, 407.25, 85.3); newGroup(); spawn(7478, 460, 81); spawn(7489, 454, 141); spawn(7517, 379, 198); spawn(7531, 334, 216); spawn(7556, 262, 221); spawnRoll(7573, 7690, 213.15, 222.8, 45.7, 119.4); newGroup(); spawn(7707, 111, 94); spawn(7721, 142, 138); spawn(7748, 174, 90); spawn(7765, 208, 137); spawn(7790, 243, 88); spawn(7804, 275, 139); spawn(7835, 320, 84); spawnRoll(7852, 7930, 359.65, 138.5, 351.85, 275.35); newGroup(); spawn(7941, 296, 266); spawn(7955, 0x0101, 239); spawn(7983, 200, 195); spawn(7999, 172, 164); spawn(8027, 135, 116); spawnRoll(8038, 8160, 137.8, 72.6, 343.1, 79.75); newGroup(); spawn(8178, 337, 136); spawn(0x2000, 290, 136); spawn(8217, 240, 176); spawn(8233, 206, 205); spawn(8261, 187, 267); spawn(8275, 230, 269); spawn(8303, 287, 269); spawnRoll(8320, 8395, 322, 247.05, 392.05, 138.4); newGroup(); spawn(8403, 403, 91); spawn(8417, 363, 79); spawn(8445, 290, 81); spawn(8459, 249, 82); spawn(8490, 191, 83); spawnRoll(8504, 8622, 147, 85, 92, 153); newGroup(); spawn(8639.8, 100, 194); spawn(8656.8, 118, 206); spawn(8673.65, 137, 222); spawn(8689.1, 154, 236); spawn(8700.2, 172, 247); spawn(8719.2, 193, 249); spawn(8738.2, 210, 242); spawn(8754.2, 224, 226); spawn(8770.2, 233, 210); spawn(8789.2, 241, 192); newGroup(); spawn(8805.2, 241, 128); } public function quitMouseDown(_arg1:MouseEvent){ gameWinMenu.visible = false; gameOverMenu.visible = false; pauseMenu.visible = false; endGame(); optionsMenu.visible = true; randomBg(); } public function enterFrameCall(_arg1:Event){ if (preloader.bar.currentFrame >= 154){ instructionsButton.removeEventListener(MouseEvent.MOUSE_DOWN, instructionsMouseDown); this.removeEventListener(Event.ENTER_FRAME, enterFrameCall); this.play(); }; } public function rollFunction(_arg1:Event){ if ((pos - _arg1.currentTarget.parent.giveYet) > 24){ _arg1.currentTarget.parent.giveYet = pos; if (_arg1.currentTarget.hitTestPoint(mouseX, mouseY, true)){ applyScore(3); } else { scoreEffect(1, (_arg1.currentTarget.x + _arg1.currentTarget.parent.x), (_arg1.currentTarget.y + _arg1.currentTarget.parent.y)); health--; combo = 0; }; }; } function frame96(){ optionsArray = new Array(); optionsArray["song"] = "Red Alert Bigfoot"; optionsArray["mode"] = "Normal"; optionsArray["drawSpectrum"] = false; optionsMenu.normalB.selected = true; optionsMenu.songList.selectedIndex = 0; optionsMenu.startButton.addEventListener(MouseEvent.MOUSE_DOWN, startButtonMouseDown); } public function startGame(){ if (optionsArray["mode"] == "Easy"){ health = 100000; } else { if (optionsArray["mode"] == "Normal"){ health = 100; } else { health = 50; }; }; maxHealth = health; score = 0; combo = 0; highestCombo = 0; numSpawned = 0; scoreArray = new Array(); scoreArray[1] = 0; scoreArray[2] = 0; scoreArray[3] = 0; scoreArray[4] = 0; scoreArray[5] = 0; scoreEffectContainer = new MovieClip(); notesContainer = new MovieClip(); pos = -100; spawnNum = 1; spawnCol = new ColorTransform(); spawnCol.color = (0xFFFFFF * Math.random()); bd = new BitmapData(500, 300, true, 0); b = new Bitmap(bd); if (!stage.contains(b)){ stage.addChild(b); }; if (!stage.contains(scoreEffectContainer)){ stage.addChild(scoreEffectContainer); }; if (!stage.contains(notesContainer)){ stage.addChild(notesContainer); }; if (optionsArray["song"] == "Red Alert Bigfoot"){ spawnNotesRAB(); } else { if (optionsArray["song"] == "In Your Face"){ spawnNotesIYF(); } else { spawnNotesW(); }; }; stage.addEventListener(Event.ENTER_FRAME, enterFrameFunction); stage.addEventListener(KeyboardEvent.KEY_DOWN, pause); } public function endGame(){ if (stage.contains(b)){ stage.removeChild(b); }; if (stage.contains(scoreEffectContainer)){ stage.removeChild(scoreEffectContainer); }; if (stage.contains(notesContainer)){ stage.removeChild(notesContainer); }; SoundMixer.stopAll(); stage.removeEventListener(Event.ENTER_FRAME, enterFrameFunction); stage.removeEventListener(KeyboardEvent.KEY_DOWN, pause); } public function spawn(_arg1, _arg2, _arg3){ var _local4:*; _local4 = new Click(); _local4.x = _arg2; _local4.y = _arg3; _local4.position = _arg1; _local4.alpha = 0; _local4.changeCol.transform.colorTransform = spawnCol; _local4.num.text = spawnNum; spawnNum++; notesContainer.addChild(_local4); _local4.filters = [BEVEL_FILTER]; notesContainer.setChildIndex(_local4, 0); numSpawned++; } function frame116(){ stop(); gameWinMenu.visible = false; gameWinMenu.restartButton.addEventListener(MouseEvent.MOUSE_DOWN, restartMouseDown); gameWinMenu.quitButton.addEventListener(MouseEvent.MOUSE_DOWN, quitMouseDown); gameOverMenu.visible = false; gameOverMenu.restartButton.addEventListener(MouseEvent.MOUSE_DOWN, restartMouseDown); gameOverMenu.quitButton.addEventListener(MouseEvent.MOUSE_DOWN, quitMouseDown); pauseMenu.visible = false; pauseMenu.restartButton.addEventListener(MouseEvent.MOUSE_DOWN, restartMouseDown); pauseMenu.continueButton.addEventListener(MouseEvent.MOUSE_DOWN, continueMouseDown); pauseMenu.quitButton.addEventListener(MouseEvent.MOUSE_DOWN, quitMouseDown); s = new Sound(); ba = new ByteArray(); byteA = new ByteArray(); } public function clickFunction(_arg1:MouseEvent){ applyScore(Math.abs((_arg1.currentTarget.parent.position - pos))); _arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, clickFunction); notesContainer.removeChild(_arg1.currentTarget.parent); } public function restartMouseDown(_arg1:MouseEvent){ gameWinMenu.visible = false; gameOverMenu.visible = false; pauseMenu.visible = false; endGame(); startGame(); } public function applyScore(_arg1){ if (_arg1 >= 20){ scoreEffect(1); health--; combo = 0; } else { if (_arg1 >= 10){ scoreEffect(2); score = (score + 50); combo++; } else { if (_arg1 >= 3){ scoreEffect(3); score = (score + 100); health = (health + 0.5); combo++; } else { scoreEffect(4); score = (score + 300); health = (health + 2); combo++; }; }; }; if (health > maxHealth){ health = maxHealth; }; } public function gameOver(){ endGame(); stage.setChildIndex(gameOverMenu.parent, (stage.numChildren - 1)); gameOverMenu.visible = true; gameOverMenu.score.text = scoreBar.text; } public function progressCompleteHandler(_arg1:Event){ this.root.loaderInfo.removeEventListener(Event.INIT, onRootLoaderInit); this.root.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); this.root.loaderInfo.removeEventListener(Event.COMPLETE, progressCompleteHandler); this.addEventListener(Event.ENTER_FRAME, enterFrameCall); preloader.bar.play(); } public function pause(_arg1){ if (_arg1.keyCode == Keyboard.ENTER){ stage.setChildIndex(pauseMenu.parent, (stage.numChildren - 1)); pauseMenu.visible = true; SoundMixer.stopAll(); stage.removeEventListener(Event.ENTER_FRAME, enterFrameFunction); stage.removeEventListener(KeyboardEvent.KEY_DOWN, pause); }; } } }//package game2_fla
Section 39
//ng_Drummer_5 (game2_fla.ng_Drummer_5) package game2_fla { import flash.display.*; public dynamic class ng_Drummer_5 extends MovieClip { public function ng_Drummer_5(){ addFrameScript(140, frame141); } function frame141(){ gotoAndPlay("bb"); } } }//package game2_fla
Section 40
//ng_preloader_73 (game2_fla.ng_preloader_73) package game2_fla { import flash.display.*; import flash.events.*; public dynamic class ng_preloader_73 extends MovieClip { public var playButton:SimpleButton; public function ng_preloader_73(){ addFrameScript(129, frame130, 153, frame154); } function frame154(){ stop(); } function frame130(){ stop(); playButton.addEventListener(MouseEvent.MOUSE_DOWN, playEvent); } public function playEvent(_arg1){ play(); } } }//package game2_fla
Section 41
//NGAGPreLoader_1 (game2_fla.NGAGPreLoader_1) package game2_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class NGAGPreLoader_1 extends MovieClip { public var bar:MovieClip; public var ngButton:SimpleButton; public var agButton:SimpleButton; public function NGAGPreLoader_1(){ addFrameScript(0, frame1); } public function getURL(_arg1){ navigateToURL(new URLRequest(_arg1), "_blank"); } function frame1(){ ngButton.addEventListener(MouseEvent.MOUSE_DOWN, ngDown); agButton.addEventListener(MouseEvent.MOUSE_DOWN, agDown); } public function ngDown(_arg1){ getURL("http://www.newgrounds.com"); } public function agDown(_arg1){ getURL("http://www.armorgames.com"); } } }//package game2_fla
Section 42
//OptionsMenu_117 (game2_fla.OptionsMenu_117) package game2_fla { import fl.controls.*; import flash.display.*; import flash.events.*; import fl.data.*; public dynamic class OptionsMenu_117 extends MovieClip { public var instructionsWindow:MovieClip; public var j0; public var drawspectrum:CheckBox; public var collObj0:DataProvider; public var normalB:RadioButton; public var instructionsButton:MovieClip; public var startButton:MovieClip; public var songList:List; public var easyB:RadioButton; public var collProp0:Object; public var hardB:RadioButton; public var itemObj0:SimpleCollectionItem; public var collProps0:Array; public var i0:int; public function OptionsMenu_117(){ addFrameScript(0, frame1); __setProp_songList_OptionsMenu_Layer7_1(); __setProp_hardB_OptionsMenu_Layer7_1(); __setProp_drawspectrum_OptionsMenu_Layer7_1(); __setProp_normalB_OptionsMenu_Layer7_1(); __setProp_easyB_OptionsMenu_Layer7_1(); } public function instructionsEnterFrame(_arg1:Event){ if (instructionsButton.hitTestPoint(parent.mouseX, parent.mouseY, true)){ instructionsButton.gotoAndStop((instructionsButton.currentFrame + 1)); } else { instructionsButton.gotoAndStop((instructionsButton.currentFrame - 1)); }; } function __setProp_normalB_OptionsMenu_Layer7_1(){ try { normalB["componentInspectorSetting"] = true; } catch(e:Error) { }; normalB.enabled = true; normalB.groupName = "difficultyGroup"; normalB.label = " Normal"; normalB.labelPlacement = "right"; normalB.selected = false; normalB.value = ""; normalB.visible = true; try { normalB["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_songList_OptionsMenu_Layer7_1(){ try { songList["componentInspectorSetting"] = true; } catch(e:Error) { }; songList.allowMultipleSelection = false; collObj0 = new DataProvider(); collProps0 = [{label:"Red Alert Bigfoot (easy) by Dj-Rec0il", data:"Red Alert Bigfoot"}, {label:"Why (moderate) by n1k-mUg", data:"Why"}, {label:"In Your Face (hard) by Tatsu-Takahashi", data:"In Your Face"}]; i0 = 0; while (i0 < collProps0.length) { itemObj0 = new SimpleCollectionItem(); collProp0 = collProps0[i0]; for (j0 in collProp0) { itemObj0[j0] = collProp0[j0]; }; collObj0.addItem(itemObj0); i0++; }; songList.dataProvider = collObj0; songList.enabled = true; songList.horizontalLineScrollSize = 4; songList.horizontalPageScrollSize = 0; songList.horizontalScrollPolicy = "auto"; songList.verticalLineScrollSize = 4; songList.verticalPageScrollSize = 0; songList.verticalScrollPolicy = "auto"; songList.visible = true; try { songList["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_easyB_OptionsMenu_Layer7_1(){ try { easyB["componentInspectorSetting"] = true; } catch(e:Error) { }; easyB.enabled = true; easyB.groupName = "difficultyGroup"; easyB.label = " Easy"; easyB.labelPlacement = "right"; easyB.selected = false; easyB.value = ""; easyB.visible = true; try { easyB["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_hardB_OptionsMenu_Layer7_1(){ try { hardB["componentInspectorSetting"] = true; } catch(e:Error) { }; hardB.enabled = true; hardB.groupName = "difficultyGroup"; hardB.label = " Hard"; hardB.labelPlacement = "right"; hardB.selected = false; hardB.value = ""; hardB.visible = true; try { hardB["componentInspectorSetting"] = false; } catch(e:Error) { }; } public function enterFrameFunction(_arg1:Event){ if (startButton.hitTestPoint(parent.mouseX, parent.mouseY, true)){ startButton.gotoAndStop((startButton.currentFrame + 1)); } else { startButton.gotoAndStop((startButton.currentFrame - 1)); }; } function frame1(){ instructionsWindow.visible = false; instructionsButton.addEventListener(Event.ENTER_FRAME, instructionsEnterFrame); instructionsButton.addEventListener(MouseEvent.MOUSE_DOWN, instructionsMouseDown); startButton.addEventListener(Event.ENTER_FRAME, enterFrameFunction); } function __setProp_drawspectrum_OptionsMenu_Layer7_1(){ try { drawspectrum["componentInspectorSetting"] = true; } catch(e:Error) { }; drawspectrum.enabled = true; drawspectrum.label = "Spectrum Effect"; drawspectrum.labelPlacement = "right"; drawspectrum.selected = false; drawspectrum.visible = true; try { drawspectrum["componentInspectorSetting"] = false; } catch(e:Error) { }; } public function instructionsMouseDown(_arg1:MouseEvent){ instructionsWindow.visible = true; } } }//package game2_fla
Section 43
//PauseMenu_153 (game2_fla.PauseMenu_153) package game2_fla { import flash.display.*; public dynamic class PauseMenu_153 extends MovieClip { public var restartButton:MovieClip; public var quitButton:MovieClip; public var continueButton:MovieClip; } }//package game2_fla
Section 44
//RollEnd_168 (game2_fla.RollEnd_168) package game2_fla { import flash.display.*; public dynamic class RollEnd_168 extends MovieClip { public var changeCol:MovieClip; } }//package game2_fla
Section 45
//RollStretch_166 (game2_fla.RollStretch_166) package game2_fla { import flash.display.*; public dynamic class RollStretch_166 extends MovieClip { public var changeCol:MovieClip; } }//package game2_fla
Section 46
//Button_disabledSkin (Button_disabledSkin) package { import flash.display.*; public dynamic class Button_disabledSkin extends MovieClip { } }//package
Section 47
//Button_downSkin (Button_downSkin) package { import flash.display.*; public dynamic class Button_downSkin extends MovieClip { } }//package
Section 48
//Button_emphasizedSkin (Button_emphasizedSkin) package { import flash.display.*; public dynamic class Button_emphasizedSkin extends MovieClip { } }//package
Section 49
//Button_overSkin (Button_overSkin) package { import flash.display.*; public dynamic class Button_overSkin extends MovieClip { } }//package
Section 50
//Button_selectedDisabledSkin (Button_selectedDisabledSkin) package { import flash.display.*; public dynamic class Button_selectedDisabledSkin extends MovieClip { } }//package
Section 51
//Button_selectedDownSkin (Button_selectedDownSkin) package { import flash.display.*; public dynamic class Button_selectedDownSkin extends MovieClip { } }//package
Section 52
//Button_selectedOverSkin (Button_selectedOverSkin) package { import flash.display.*; public dynamic class Button_selectedOverSkin extends MovieClip { } }//package
Section 53
//Button_selectedUpSkin (Button_selectedUpSkin) package { import flash.display.*; public dynamic class Button_selectedUpSkin extends MovieClip { } }//package
Section 54
//Button_upSkin (Button_upSkin) package { import flash.display.*; public dynamic class Button_upSkin extends MovieClip { } }//package
Section 55
//CellRenderer_disabledSkin (CellRenderer_disabledSkin) package { import flash.display.*; public dynamic class CellRenderer_disabledSkin extends MovieClip { } }//package
Section 56
//CellRenderer_downSkin (CellRenderer_downSkin) package { import flash.display.*; public dynamic class CellRenderer_downSkin extends MovieClip { } }//package
Section 57
//CellRenderer_overSkin (CellRenderer_overSkin) package { import flash.display.*; public dynamic class CellRenderer_overSkin extends MovieClip { } }//package
Section 58
//CellRenderer_selectedDisabledSkin (CellRenderer_selectedDisabledSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip { } }//package
Section 59
//CellRenderer_selectedDownSkin (CellRenderer_selectedDownSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDownSkin extends MovieClip { } }//package
Section 60
//CellRenderer_selectedOverSkin (CellRenderer_selectedOverSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedOverSkin extends MovieClip { } }//package
Section 61
//CellRenderer_selectedUpSkin (CellRenderer_selectedUpSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedUpSkin extends MovieClip { } }//package
Section 62
//CellRenderer_upSkin (CellRenderer_upSkin) package { import flash.display.*; public dynamic class CellRenderer_upSkin extends MovieClip { } }//package
Section 63
//CheckBox_disabledIcon (CheckBox_disabledIcon) package { import flash.display.*; public dynamic class CheckBox_disabledIcon extends MovieClip { } }//package
Section 64
//CheckBox_downIcon (CheckBox_downIcon) package { import flash.display.*; public dynamic class CheckBox_downIcon extends MovieClip { } }//package
Section 65
//CheckBox_overIcon (CheckBox_overIcon) package { import flash.display.*; public dynamic class CheckBox_overIcon extends MovieClip { } }//package
Section 66
//CheckBox_selectedDisabledIcon (CheckBox_selectedDisabledIcon) package { import flash.display.*; public dynamic class CheckBox_selectedDisabledIcon extends MovieClip { } }//package
Section 67
//CheckBox_selectedDownIcon (CheckBox_selectedDownIcon) package { import flash.display.*; public dynamic class CheckBox_selectedDownIcon extends MovieClip { } }//package
Section 68
//CheckBox_selectedOverIcon (CheckBox_selectedOverIcon) package { import flash.display.*; public dynamic class CheckBox_selectedOverIcon extends MovieClip { } }//package
Section 69
//CheckBox_selectedUpIcon (CheckBox_selectedUpIcon) package { import flash.display.*; public dynamic class CheckBox_selectedUpIcon extends MovieClip { } }//package
Section 70
//CheckBox_upIcon (CheckBox_upIcon) package { import flash.display.*; public dynamic class CheckBox_upIcon extends MovieClip { } }//package
Section 71
//Click (Click) package { import flash.display.*; import flash.text.*; public dynamic class Click extends MovieClip { public var position; public var num:TextField; public var changeCol:MovieClip; public var clickButton:MovieClip; public var growTo:MovieClip; public function Click(){ addFrameScript(0, frame1); } function frame1(){ } } }//package
Section 72
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 73
//Instructions (Instructions) package { import flash.display.*; public dynamic class Instructions extends MovieClip { } }//package
Section 74
//InYourFace (InYourFace) package { import flash.media.*; public dynamic class InYourFace extends Sound { } }//package
Section 75
//List_skin (List_skin) package { import flash.display.*; public dynamic class List_skin extends MovieClip { } }//package
Section 76
//RadioButton_disabledIcon (RadioButton_disabledIcon) package { import flash.display.*; public dynamic class RadioButton_disabledIcon extends MovieClip { } }//package
Section 77
//RadioButton_downIcon (RadioButton_downIcon) package { import flash.display.*; public dynamic class RadioButton_downIcon extends MovieClip { } }//package
Section 78
//RadioButton_overIcon (RadioButton_overIcon) package { import flash.display.*; public dynamic class RadioButton_overIcon extends MovieClip { } }//package
Section 79
//RadioButton_selectedDisabledIcon (RadioButton_selectedDisabledIcon) package { import flash.display.*; public dynamic class RadioButton_selectedDisabledIcon extends MovieClip { } }//package
Section 80
//RadioButton_selectedDownIcon (RadioButton_selectedDownIcon) package { import flash.display.*; public dynamic class RadioButton_selectedDownIcon extends MovieClip { } }//package
Section 81
//RadioButton_selectedOverIcon (RadioButton_selectedOverIcon) package { import flash.display.*; public dynamic class RadioButton_selectedOverIcon extends MovieClip { } }//package
Section 82
//RadioButton_selectedUpIcon (RadioButton_selectedUpIcon) package { import flash.display.*; public dynamic class RadioButton_selectedUpIcon extends MovieClip { } }//package
Section 83
//RadioButton_upIcon (RadioButton_upIcon) package { import flash.display.*; public dynamic class RadioButton_upIcon extends MovieClip { } }//package
Section 84
//RedAlertBigfoot (RedAlertBigfoot) package { import flash.media.*; public dynamic class RedAlertBigfoot extends Sound { } }//package
Section 85
//Roll (Roll) package { import flash.display.*; import flash.events.*; import flash.net.*; import flash.system.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.xml.*; public dynamic class Roll extends MovieClip { public var stretch:MovieClip; public var giveYet; public var position; public var endPt; public var endPoint:MovieClip; public var given; public var endPos; public var rollFollow:MovieClip; public var num:TextField; public var changeCol:MovieClip; public var clickButton:MovieClip; public var growTo:MovieClip; public function Roll(){ addFrameScript(0, frame1); } public function renderRoll(){ if ((((endPoint.x == 0)) && ((endPoint.y == 0)))){ endPoint.x = endPt.x; endPoint.y = endPt.y; } else { endPt = new Point(endPoint.x, endPoint.y); }; stretch.rotation = 0; stretch.width = Point.distance(endPt, new Point(0, 0)); stretch.height = 35; stretch.rotation = ((Math.atan2(endPoint.y, endPoint.x) * 180) / Math.PI); stretch.x = 0; stretch.y = 0; rollFollow.visible = false; } function frame1(){ given = false; giveYet = 0; } } }//package
Section 86
//ScoreEffect (ScoreEffect) package { import flash.display.*; public dynamic class ScoreEffect extends MovieClip { } }//package
Section 87
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_disabledSkin extends MovieClip { } }//package
Section 88
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_downSkin extends MovieClip { } }//package
Section 89
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_overSkin extends MovieClip { } }//package
Section 90
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_upSkin extends MovieClip { } }//package
Section 91
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_disabledSkin extends MovieClip { } }//package
Section 92
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_downSkin extends MovieClip { } }//package
Section 93
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_overSkin extends MovieClip { } }//package
Section 94
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_upSkin extends MovieClip { } }//package
Section 95
//ScrollBar_thumbIcon (ScrollBar_thumbIcon) package { import flash.display.*; public dynamic class ScrollBar_thumbIcon extends MovieClip { } }//package
Section 96
//ScrollPane_disabledSkin (ScrollPane_disabledSkin) package { import flash.display.*; public dynamic class ScrollPane_disabledSkin extends MovieClip { } }//package
Section 97
//ScrollPane_upSkin (ScrollPane_upSkin) package { import flash.display.*; public dynamic class ScrollPane_upSkin extends MovieClip { } }//package
Section 98
//ScrollThumb_downSkin (ScrollThumb_downSkin) package { import flash.display.*; public dynamic class ScrollThumb_downSkin extends MovieClip { } }//package
Section 99
//ScrollThumb_overSkin (ScrollThumb_overSkin) package { import flash.display.*; public dynamic class ScrollThumb_overSkin extends MovieClip { } }//package
Section 100
//ScrollThumb_upSkin (ScrollThumb_upSkin) package { import flash.display.*; public dynamic class ScrollThumb_upSkin extends MovieClip { } }//package
Section 101
//ScrollTrack_skin (ScrollTrack_skin) package { import flash.display.*; public dynamic class ScrollTrack_skin extends MovieClip { } }//package
Section 102
//Why (Why) package { import flash.media.*; public dynamic class Why extends Sound { } }//package

Library Items

Symbol 1 GraphicUsed by:2 362 364
Symbol 2 MovieClipUses:1Used by:5
Symbol 3 ShapeTweeningUsed by:5
Symbol 4 GraphicUsed by:5 436
Symbol 5 MovieClip {game2_fla.RollStretch_166}Uses:2 3 4Used by:19
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:10 19 22
Symbol 8 FontUsed by:9 13 14 21
Symbol 9 TextUses:8Used by:10
Symbol 10 MovieClip {game2_fla.RollEnd_168}Uses:7 9Used by:19
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:19 22
Symbol 13 EditableTextUses:8Used by:19
Symbol 14 EditableTextUses:8Used by:19
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:15Used by:19
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:19 22
Symbol 19 MovieClip {Roll}Uses:5 10 12 7 13 14 16 18
Symbol 20 GraphicUsed by:22
Symbol 21 EditableTextUses:8Used by:22
Symbol 22 MovieClip {Click}Uses:20 12 7 21 18
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:32 454
Symbol 25 GraphicUsed by:32 454
Symbol 26 FontUsed by:27 29 31
Symbol 27 TextUses:26Used by:32 454
Symbol 28 GraphicUsed by:32 454
Symbol 29 TextUses:26Used by:32 454
Symbol 30 GraphicUsed by:32 454
Symbol 31 TextUses:26Used by:32 454
Symbol 32 MovieClip {ScoreEffect}Uses:24 25 27 28 29 30 31
Symbol 33 GraphicUsed by:37
Symbol 34 FontUsed by:35 381
Symbol 35 TextUses:34Used by:37
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip {Instructions}Uses:33 35 36
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:38Used by:58 107 123 142 149
Symbol 40 MovieClip {fl.core.ComponentShim}Used by:58 77 106 107 123 142 149
Symbol 41 GraphicUsed by:42 51
Symbol 42 MovieClip {CheckBox_upIcon}Uses:41Used by:58
Symbol 43 GraphicUsed by:44 52
Symbol 44 MovieClip {CheckBox_overIcon}Uses:43Used by:58
Symbol 45 GraphicUsed by:46 53
Symbol 46 MovieClip {CheckBox_downIcon}Uses:45Used by:58
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClip {CheckBox_disabledIcon}Uses:47Used by:58
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:51 52 53 55
Symbol 51 MovieClip {CheckBox_selectedUpIcon}Uses:41 50Used by:58
Symbol 52 MovieClip {CheckBox_selectedOverIcon}Uses:43 50Used by:58
Symbol 53 MovieClip {CheckBox_selectedDownIcon}Uses:45 50Used by:58
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClip {CheckBox_selectedDisabledIcon}Uses:54 50Used by:58
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClip {focusRectSkin}Uses:56Used by:58 106 107 123 142
Symbol 58 MovieClip {fl.controls.CheckBox}Uses:39 40 42 44 46 48 51 52 53 55 57Used by:416
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClip {List_skin}Uses:59Used by:107
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClip {CellRenderer_upSkin}Uses:61Used by:77
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClip {CellRenderer_disabledSkin}Uses:63Used by:77
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClip {CellRenderer_downSkin}Uses:65Used by:77
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClip {CellRenderer_overSkin}Uses:67Used by:77
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClip {CellRenderer_selectedDisabledSkin}Uses:69Used by:77
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClip {CellRenderer_selectedDownSkin}Uses:71Used by:77
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClip {CellRenderer_selectedOverSkin}Uses:73Used by:77
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClip {CellRenderer_selectedUpSkin}Uses:75Used by:77
Symbol 77 MovieClip {fl.controls.listClasses.CellRenderer}Uses:62 40 64 66 68 70 72 74 76Used by:107
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClip {ScrollTrack_skin}Uses:78Used by:106
Symbol 80 GraphicUsed by:83
Symbol 81 GraphicUsed by:82 85 89 99
Symbol 82 MovieClipUses:81Used by:83 93 95
Symbol 83 MovieClip {ScrollArrowUp_downSkin}Uses:80 82Used by:106
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClip {ScrollArrowDown_downSkin}Uses:84 81Used by:106
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClip {ScrollThumb_downSkin}Uses:86Used by:106
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClip {ScrollArrowDown_overSkin}Uses:88 81Used by:106
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClip {ScrollThumb_overSkin}Uses:90Used by:106
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClip {ScrollArrowUp_overSkin}Uses:92 82Used by:106
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClip {ScrollArrowUp_upSkin}Uses:94 82Used by:106
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClip {ScrollThumb_upSkin}Uses:96Used by:106
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClip {ScrollArrowDown_upSkin}Uses:98 81Used by:106
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClip {ScrollArrowDown_disabledSkin}Uses:100Used by:106
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClip {ScrollArrowUp_disabledSkin}Uses:102Used by:106
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClip {ScrollBar_thumbIcon}Uses:104Used by:106
Symbol 106 MovieClip {fl.controls.ScrollBar}Uses:79 40 57 83 85 87 89 91 93 95 97 99 101 103 105Used by:107 149
Symbol 107 MovieClip {fl.controls.List}Uses:39 40 60 77 57 106Used by:416
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClip {RadioButton_upIcon}Uses:108Used by:123
Symbol 110 GraphicUsed by:111 120
Symbol 111 MovieClip {RadioButton_overIcon}Uses:110Used by:123
Symbol 112 GraphicUsed by:113 121
Symbol 113 MovieClip {RadioButton_downIcon}Uses:112Used by:123
Symbol 114 GraphicUsed by:115 122
Symbol 115 MovieClip {RadioButton_disabledIcon}Uses:114Used by:123
Symbol 116 GraphicUsed by:119
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClipUses:117Used by:119 120 121 122
Symbol 119 MovieClip {RadioButton_selectedUpIcon}Uses:116 118Used by:123
Symbol 120 MovieClip {RadioButton_selectedOverIcon}Uses:110 118Used by:123
Symbol 121 MovieClip {RadioButton_selectedDownIcon}Uses:112 118Used by:123
Symbol 122 MovieClip {RadioButton_selectedDisabledIcon}Uses:114 118Used by:123
Symbol 123 MovieClip {fl.controls.RadioButton}Uses:39 40 109 111 113 115 119 120 121 122 57Used by:416
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClip {Button_disabledSkin}Uses:124Used by:142
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClip {Button_downSkin}Uses:126Used by:142
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClip {Button_emphasizedSkin}Uses:128Used by:142
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClip {Button_overSkin}Uses:130Used by:142
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClip {Button_selectedDisabledSkin}Uses:132Used by:142
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClip {Button_selectedDownSkin}Uses:134Used by:142
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClip {Button_selectedOverSkin}Uses:136Used by:142
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClip {Button_selectedUpSkin}Uses:138Used by:142
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClip {Button_upSkin}Uses:140Used by:142
Symbol 142 MovieClip {fl.controls.Button}Uses:39 40 125 127 129 131 133 135 137 139 141 57Used by:388
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClipUses:143Used by:147 148
Symbol 145 GraphicUsed by:146
Symbol 146 MovieClipUses:145Used by:147 148
Symbol 147 MovieClip {ScrollPane_disabledSkin}Uses:144 146Used by:149
Symbol 148 MovieClip {ScrollPane_upSkin}Uses:144 146Used by:149
Symbol 149 MovieClip {fl.containers.ScrollPane}Uses:39 40 147 148 106Used by:388
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:152
Symbol 152 MovieClipUses:151Used by:293
Symbol 153 GraphicUsed by:154
Symbol 154 MovieClipUses:153Used by:236
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:236
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:236
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClipUses:159Used by:236
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClipUses:161Used by:236
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClipUses:163Used by:236
Symbol 165 GraphicUsed by:166
Symbol 166 MovieClipUses:165Used by:236
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:167Used by:236
Symbol 169 GraphicUsed by:236
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClipUses:170Used by:236
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:172Used by:236
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClipUses:174Used by:236
Symbol 176 GraphicUsed by:177
Symbol 177 MovieClipUses:176Used by:236
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:178Used by:236
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClipUses:180Used by:236
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClipUses:182Used by:236
Symbol 184 GraphicUsed by:185
Symbol 185 MovieClipUses:184Used by:236
Symbol 186 GraphicUsed by:187
Symbol 187 MovieClipUses:186Used by:236
Symbol 188 GraphicUsed by:189
Symbol 189 MovieClipUses:188Used by:236
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClipUses:190Used by:236
Symbol 192 GraphicUsed by:193
Symbol 193 MovieClipUses:192Used by:236
Symbol 194 GraphicUsed by:195
Symbol 195 MovieClipUses:194Used by:236
Symbol 196 GraphicUsed by:197
Symbol 197 MovieClipUses:196Used by:236
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:198Used by:236
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200Used by:236
Symbol 202 GraphicUsed by:203
Symbol 203 MovieClipUses:202Used by:236
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClipUses:204Used by:236
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClipUses:206Used by:236
Symbol 208 GraphicUsed by:209
Symbol 209 MovieClipUses:208Used by:236
Symbol 210 GraphicUsed by:211
Symbol 211 MovieClipUses:210Used by:236
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClipUses:212Used by:236
Symbol 214 GraphicUsed by:215
Symbol 215 MovieClipUses:214Used by:236
Symbol 216 GraphicUsed by:236
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:217Used by:236
Symbol 219 GraphicUsed by:220
Symbol 220 MovieClipUses:219Used by:236
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClipUses:221Used by:236
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClipUses:223Used by:236
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClipUses:225Used by:236
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClipUses:227Used by:236
Symbol 229 GraphicUsed by:235
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:230Used by:235
Symbol 232 GraphicUsed by:235
Symbol 233 GraphicUsed by:235
Symbol 234 GraphicUsed by:235
Symbol 235 MovieClipUses:229 231 232 233 234Used by:236
Symbol 236 MovieClip {game2_fla.ng_Drummer_5}Uses:154 156 158 160 162 164 166 168 169 171 173 175 177 179 181 183 185 187 189 191 193 195 197 199 201 203 205 207 209 211 213 215 216 218 220 222 224 226 228 235Used by:293
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClipUses:237Used by:290
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239Used by:290
Symbol 241 GraphicUsed by:242
Symbol 242 MovieClipUses:241Used by:290
Symbol 243 GraphicUsed by:244
Symbol 244 MovieClipUses:243Used by:290
Symbol 245 GraphicUsed by:246
Symbol 246 MovieClipUses:245Used by:259
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClipUses:247Used by:259
Symbol 249 GraphicUsed by:250
Symbol 250 MovieClipUses:249Used by:259
Symbol 251 GraphicUsed by:256
Symbol 252 GraphicUsed by:256
Symbol 253 GraphicUsed by:256
Symbol 254 GraphicUsed by:256
Symbol 255 GraphicUsed by:256
Symbol 256 MovieClipUses:251 252 253 254 255Used by:259
Symbol 257 GraphicUsed by:258
Symbol 258 MovieClipUses:257Used by:259
Symbol 259 MovieClipUses:246 248 250 256 258Used by:290
Symbol 260 GraphicUsed by:261
Symbol 261 MovieClipUses:260Used by:290
Symbol 262 GraphicUsed by:263
Symbol 263 MovieClipUses:262Used by:290
Symbol 264 GraphicUsed by:265
Symbol 265 MovieClipUses:264Used by:290
Symbol 266 GraphicUsed by:267
Symbol 267 MovieClipUses:266Used by:290
Symbol 268 GraphicUsed by:276
Symbol 269 GraphicUsed by:276
Symbol 270 GraphicUsed by:276
Symbol 271 GraphicUsed by:276
Symbol 272 GraphicUsed by:276
Symbol 273 GraphicUsed by:276
Symbol 274 GraphicUsed by:276
Symbol 275 GraphicUsed by:276
Symbol 276 MovieClipUses:268 269 270 271 272 273 274 275Used by:290
Symbol 277 GraphicUsed by:278
Symbol 278 MovieClipUses:277Used by:290
Symbol 279 GraphicUsed by:287
Symbol 280 GraphicUsed by:281
Symbol 281 MovieClipUses:280Used by:287
Symbol 282 GraphicUsed by:283
Symbol 283 MovieClipUses:282Used by:287
Symbol 284 GraphicUsed by:285
Symbol 285 MovieClipUses:284Used by:287
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClipUses:279 281 283 285 286Used by:290
Symbol 288 GraphicUsed by:289
Symbol 289 MovieClipUses:288Used by:290
Symbol 290 MovieClipUses:238 240 242 244 259 261 263 265 267 276 278 287 289Used by:291
Symbol 291 MovieClipUses:290Used by:293
Symbol 292 GraphicUsed by:293
Symbol 293 MovieClipUses:152 236 291 292Used by:294
Symbol 294 MovieClipUses:293Used by:380
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:295Used by:297 298
Symbol 297 MovieClipUses:296Used by:298
Symbol 298 ButtonUses:297 296Used by:380
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:345 346
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:345
Symbol 303 BitmapUsed by:304
Symbol 304 GraphicUses:303Used by:345
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:345
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:345
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:345
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:345
Symbol 313 BitmapUsed by:314
Symbol 314 GraphicUses:313Used by:345
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:345
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:345
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:345
Symbol 321 BitmapUsed by:322
Symbol 322 GraphicUses:321Used by:345
Symbol 323 BitmapUsed by:324
Symbol 324 GraphicUses:323Used by:345
Symbol 325 BitmapUsed by:326
Symbol 326 GraphicUses:325Used by:345
Symbol 327 BitmapUsed by:328
Symbol 328 GraphicUses:327Used by:345
Symbol 329 BitmapUsed by:330
Symbol 330 GraphicUses:329Used by:345
Symbol 331 BitmapUsed by:332
Symbol 332 GraphicUses:331Used by:345
Symbol 333 BitmapUsed by:334
Symbol 334 GraphicUses:333Used by:345
Symbol 335 BitmapUsed by:336
Symbol 336 GraphicUses:335Used by:345
Symbol 337 BitmapUsed by:338
Symbol 338 GraphicUses:337Used by:345
Symbol 339 BitmapUsed by:340
Symbol 340 GraphicUses:339Used by:345
Symbol 341 BitmapUsed by:342
Symbol 342 GraphicUses:341Used by:345
Symbol 343 BitmapUsed by:344
Symbol 344 GraphicUses:343Used by:345
Symbol 345 MovieClipUses:300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344Used by:346
Symbol 346 ButtonUses:345 300Used by:380
Symbol 347 GraphicUsed by:348
Symbol 348 MovieClipUses:347Used by:380
Symbol 349 GraphicUsed by:379
Symbol 350 GraphicUsed by:379
Symbol 351 GraphicUsed by:353
Symbol 352 GraphicUsed by:353
Symbol 353 MovieClipUses:351 352Used by:379
Symbol 354 GraphicUsed by:379
Symbol 355 GraphicUsed by:379
Symbol 356 GraphicUsed by:362 364
Symbol 357 GraphicUsed by:362 364
Symbol 358 GraphicUsed by:362 364
Symbol 359 GraphicUsed by:362 364
Symbol 360 GraphicUsed by:362 364
Symbol 361 GraphicUsed by:362 364
Symbol 362 MovieClipUses:356 357 358 359 1 360 361Used by:379
Symbol 363 GraphicUsed by:364
Symbol 364 MovieClip {game2_fla.loadED_76}Uses:356 357 358 359 1 360 361 363Used by:379
Symbol 365 ShapeTweeningUsed by:379
Symbol 366 GraphicUsed by:379
Symbol 367 GraphicUsed by:379
Symbol 368 GraphicUsed by:376
Symbol 369 GraphicUsed by:376
Symbol 370 GraphicUsed by:376
Symbol 371 GraphicUsed by:376
Symbol 372 GraphicUsed by:376
Symbol 373 GraphicUsed by:375 376
Symbol 374 GraphicUsed by:375
Symbol 375 MovieClipUses:373 374Used by:376
Symbol 376 ButtonUses:368 369 370 371 372 375 373Used by:379
Symbol 377 GraphicUsed by:378
Symbol 378 MovieClipUses:377Used by:379
Symbol 379 MovieClip {game2_fla.ng_preloader_73}Uses:349 350 353 354 355 362 364 365 366 367 376 378Used by:380
Symbol 380 MovieClip {game2_fla.NGAGPreLoader_1}Uses:294 298 346 348 379Used by:Timeline
Symbol 381 TextUses:34Used by:Timeline
Symbol 382 ShapeTweeningUsed by:387
Symbol 383 GraphicUsed by:387
Symbol 384 FontUsed by:385 403 406 431 432 433 435 438 440 442 443 444 445 446 447 448 449 450 451 452 453
Symbol 385 TextUses:384Used by:387
Symbol 386 GraphicUsed by:387
Symbol 387 MovieClipUses:382 383 385 386Used by:416  Timeline
Symbol 388 MovieClip {game2_fla.InstructionsWindow_81}Uses:149 142Used by:416  Timeline
Symbol 389 GraphicUsed by:Timeline
Symbol 390 GraphicUsed by:395
Symbol 391 GraphicUsed by:394
Symbol 392 GraphicUsed by:393
Symbol 393 MovieClipUses:392Used by:394
Symbol 394 MovieClipUses:391 393Used by:395
Symbol 395 MovieClipUses:390 394Used by:Timeline
Symbol 396 Sound {RedAlertBigfoot}Used by:Timeline
Symbol 397 Sound {Why}Used by:Timeline
Symbol 398 Sound {InYourFace}Used by:Timeline
Symbol 399 BitmapUsed by:400
Symbol 400 GraphicUses:399Used by:416 454  Timeline
Symbol 401 ShapeTweeningUsed by:405
Symbol 402 GraphicUsed by:405
Symbol 403 TextUses:384Used by:405
Symbol 404 GraphicUsed by:405
Symbol 405 MovieClipUses:401 402 403 404Used by:416
Symbol 406 TextUses:384Used by:416
Symbol 407 FontUsed by:408
Symbol 408 TextUses:407Used by:416
Symbol 409 BitmapUsed by:410
Symbol 410 GraphicUses:409Used by:416
Symbol 411 GraphicUsed by:416
Symbol 412 FontUsed by:413 414 415
Symbol 413 TextUses:412Used by:416
Symbol 414 TextUses:412Used by:416
Symbol 415 TextUses:412Used by:416
Symbol 416 MovieClip {game2_fla.OptionsMenu_117}Uses:400 405 406 408 410 387 411 413 414 123 415 107 58 388Used by:Timeline
Symbol 417 ShapeTweeningUsed by:Timeline
Symbol 418 GraphicUsed by:434 439  Timeline
Symbol 419 FontUsed by:420
Symbol 420 EditableTextUses:419Used by:Timeline
Symbol 421 FontUsed by:422
Symbol 422 EditableTextUses:421Used by:Timeline
Symbol 423 GraphicUsed by:424
Symbol 424 MovieClipUses:423Used by:430
Symbol 425 GraphicUsed by:429
Symbol 426 ShapeTweeningUsed by:429
Symbol 427 GraphicUsed by:429
Symbol 428 GraphicUsed by:429
Symbol 429 MovieClipUses:425 426 427 428Used by:430
Symbol 430 MovieClip {game2_fla.HealthBar_150}Uses:424 429Used by:Timeline
Symbol 431 TextUses:384Used by:436
Symbol 432 TextUses:384Used by:436
Symbol 433 TextUses:384Used by:436 441 454
Symbol 434 MovieClipUses:418Used by:436
Symbol 435 TextUses:384Used by:436 441
Symbol 436 MovieClip {game2_fla.PauseMenu_153}Uses:4 431 432 433 434 435Used by:Timeline
Symbol 437 GraphicUsed by:441
Symbol 438 TextUses:384Used by:441
Symbol 439 MovieClipUses:418Used by:441 454
Symbol 440 EditableTextUses:384Used by:441
Symbol 441 MovieClip {game2_fla.GameOverMenu_155}Uses:437 438 435 439 433 440Used by:Timeline
Symbol 442 EditableTextUses:384Used by:454
Symbol 443 TextUses:384Used by:454
Symbol 444 TextUses:384Used by:454
Symbol 445 EditableTextUses:384Used by:454
Symbol 446 EditableTextUses:384Used by:454
Symbol 447 TextUses:384Used by:454
Symbol 448 TextUses:384Used by:454
Symbol 449 EditableTextUses:384Used by:454
Symbol 450 EditableTextUses:384Used by:454
Symbol 451 EditableTextUses:384Used by:454
Symbol 452 EditableTextUses:384Used by:454
Symbol 453 EditableTextUses:384Used by:454
Symbol 454 MovieClip {game2_fla.GameWinMenu_157}Uses:400 442 443 444 445 446 447 433 439 448 24 25 27 28 29 30 31 449 450 451 452 453Used by:Timeline

Instance Names

"preloader"Frame 1Symbol 380 MovieClip {game2_fla.NGAGPreLoader_1}
"instructionsButton"Frame 1Symbol 387 MovieClip
"instructionsWindow"Frame 1Symbol 388 MovieClip {game2_fla.InstructionsWindow_81}
"optionsMenu"Frame 96Symbol 416 MovieClip {game2_fla.OptionsMenu_117}
"comboMeter"Frame 116Symbol 420 EditableText
"scoreBar"Frame 116Symbol 422 EditableText
"healthbar"Frame 116Symbol 430 MovieClip {game2_fla.HealthBar_150}
"pauseMenu"Frame 116Symbol 436 MovieClip {game2_fla.PauseMenu_153}
"gameOverMenu"Frame 116Symbol 441 MovieClip {game2_fla.GameOverMenu_155}
"gameWinMenu"Frame 116Symbol 454 MovieClip {game2_fla.GameWinMenu_157}
"changeCol"Symbol 5 MovieClip {game2_fla.RollStretch_166} Frame 1Symbol 2 MovieClip
"changeCol"Symbol 10 MovieClip {game2_fla.RollEnd_168} Frame 1Symbol 7 MovieClip
"stretch"Symbol 19 MovieClip {Roll} Frame 1Symbol 5 MovieClip {game2_fla.RollStretch_166}
"endPoint"Symbol 19 MovieClip {Roll} Frame 1Symbol 10 MovieClip {game2_fla.RollEnd_168}
"growTo"Symbol 19 MovieClip {Roll} Frame 1Symbol 12 MovieClip
"changeCol"Symbol 19 MovieClip {Roll} Frame 1Symbol 7 MovieClip
"num"Symbol 19 MovieClip {Roll} Frame 1Symbol 13 EditableText
"num"Symbol 19 MovieClip {Roll} Frame 1Symbol 14 EditableText
"rollFollow"Symbol 19 MovieClip {Roll} Frame 1Symbol 16 MovieClip
"clickButton"Symbol 19 MovieClip {Roll} Frame 1Symbol 18 MovieClip
"growTo"Symbol 22 MovieClip {Click} Frame 1Symbol 12 MovieClip
"changeCol"Symbol 22 MovieClip {Click} Frame 1Symbol 7 MovieClip
"num"Symbol 22 MovieClip {Click} Frame 1Symbol 21 EditableText
"clickButton"Symbol 22 MovieClip {Click} Frame 1Symbol 18 MovieClip
"playButton"Symbol 379 MovieClip {game2_fla.ng_preloader_73} Frame 128Symbol 376 Button
"agButton"Symbol 380 MovieClip {game2_fla.NGAGPreLoader_1} Frame 1Symbol 298 Button
"ngButton"Symbol 380 MovieClip {game2_fla.NGAGPreLoader_1} Frame 1Symbol 346 Button
"bar"Symbol 380 MovieClip {game2_fla.NGAGPreLoader_1} Frame 1Symbol 379 MovieClip {game2_fla.ng_preloader_73}
"instructionsWindow"Symbol 388 MovieClip {game2_fla.InstructionsWindow_81} Frame 1Symbol 149 MovieClip {fl.containers.ScrollPane}
"closeButton"Symbol 388 MovieClip {game2_fla.InstructionsWindow_81} Frame 1Symbol 142 MovieClip {fl.controls.Button}
"startButton"Symbol 416 MovieClip {game2_fla.OptionsMenu_117} Frame 1Symbol 405 MovieClip
"instructionsButton"Symbol 416 MovieClip {game2_fla.OptionsMenu_117} Frame 1Symbol 387 MovieClip
"hardB"Symbol 416 MovieClip {game2_fla.OptionsMenu_117} Frame 1Symbol 123 MovieClip {fl.controls.RadioButton}
"normalB"Symbol 416 MovieClip {game2_fla.OptionsMenu_117} Frame 1Symbol 123 MovieClip {fl.controls.RadioButton}
"easyB"Symbol 416 MovieClip {game2_fla.OptionsMenu_117} Frame 1Symbol 123 MovieClip {fl.controls.RadioButton}
"songList"Symbol 416 MovieClip {game2_fla.OptionsMenu_117} Frame 1Symbol 107 MovieClip {fl.controls.List}
"drawspectrum"Symbol 416 MovieClip {game2_fla.OptionsMenu_117} Frame 1Symbol 58 MovieClip {fl.controls.CheckBox}
"instructionsWindow"Symbol 416 MovieClip {game2_fla.OptionsMenu_117} Frame 1Symbol 388 MovieClip {game2_fla.InstructionsWindow_81}
"bar"Symbol 430 MovieClip {game2_fla.HealthBar_150} Frame 1Symbol 429 MovieClip
"restartButton"Symbol 436 MovieClip {game2_fla.PauseMenu_153} Frame 1Symbol 434 MovieClip
"continueButton"Symbol 436 MovieClip {game2_fla.PauseMenu_153} Frame 1Symbol 434 MovieClip
"quitButton"Symbol 436 MovieClip {game2_fla.PauseMenu_153} Frame 1Symbol 434 MovieClip
"quitButton"Symbol 441 MovieClip {game2_fla.GameOverMenu_155} Frame 1Symbol 439 MovieClip
"restartButton"Symbol 441 MovieClip {game2_fla.GameOverMenu_155} Frame 1Symbol 439 MovieClip
"score"Symbol 441 MovieClip {game2_fla.GameOverMenu_155} Frame 1Symbol 440 EditableText
"score"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 442 EditableText
"comboText"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 445 EditableText
"rankText"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 446 EditableText
"restartButton"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 439 MovieClip
"quitButton"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 439 MovieClip
"perfectS"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 449 EditableText
"greatS"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 450 EditableText
"goodS"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 451 EditableText
"badS"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 452 EditableText
"missS"Symbol 454 MovieClip {game2_fla.GameWinMenu_157} Frame 1Symbol 453 EditableText

Special Tags

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

Labels

"bb"Symbol 236 MovieClip {game2_fla.ng_Drummer_5} Frame 46
"loaded"Symbol 379 MovieClip {game2_fla.ng_preloader_73} Frame 101
"play_button"Symbol 379 MovieClip {game2_fla.ng_preloader_73} Frame 130
"play"Symbol 379 MovieClip {game2_fla.ng_preloader_73} Frame 154




http://swfchan.com/8/39778/info.shtml
Created: 11/5 -2019 22:52:59 Last modified: 11/5 -2019 22:52:59 Server time: 23/12 -2024 01:03:59