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

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

puzzatales.swf

This is the info page for
Flash #78501

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


Text
Art by Spike Vallentine
Programming by Matthew Stradwick
Special Thanks
God
Jesus Christ
Titus Y.H. Chong
Christopher P. Lee

"Bite My Valentine"
Kailey Kaneshiro             Gothic Girl
Lew Lappert                         Crowd 1
Steven Scott Day                 Crowd 3
Michael Davis                      Crowd 4
Elise Wong                          Crowd 5
Trent Robertson                  Crowd 6

© 2009 Snow Snow Productions LLC

Havablast here!
(Roll over them to read more.)

Solve all 3 Scenes in a Story to win.
Solving a scene advances the story.
Stories you win will be unlocked in
"Play Movies" to view in full screen
and play seamlessly!  Which ever
Scene you solve will be unlocked in
"Custom Puzzle".

Choose from 9 varied Scenes.
10 unique Puzzle Shapes.
9 difficulties.
4 sound tracks.
And even play in Webcam Puzzle!

Watch the 3 Stories seamlessly.
"Bite My Valentine"
"Gunny Hunny Bunny"
"Sky Clowns"
They must be unlocked by beating
them in "Story Mode".

(click for details)
Art by Spike Vallentine
Programming by Matthew Stradwick
Special Thanks
God
Jesus Christ

Other games you may enjoy:
THUMB1  THUMB2  THUMB3
Play better games:
Visit SPONSOR

No webcam found.

Progress on this story has been saved.
Continue where you left off?

Menu

Solve Scenes from a Story to unlock and play.  Click the white up and down arrows
to choose settings.  9 difficulties, 9 styles, and 4 musics.  Click a scene to start.
Set up a webcam and puzzle your self together with Webcam Puzzle!
(You and your family?  Best friend?  Spouse?  Doggy?  Bunny?)

1-9

1-4

High Five!

Story Complete

Scene 1
Scene 2
Scene 3
Total

3:15


A OKAY!

Win a Story to unlock seamless and full screen viewing!
To win a Story, solve all 3 scenes from any of the 3 stories.

"Sky Clowns"
Saphon has been preparing for countless weeks to fly to the floating mountain.
Will his training be enough?

"Bite My Valentine"
A vicious monster lurks around town causing havoc.
His motives change when Valentines Day captures his interest.

"Gunny Hunny Bunny"
Two creatures in love ready to commit as Hunny Bunnies.
What a perfect story!  Or is it?

Solve all 3 Scenes in a Story to win.  Solving a scene advances the story.  Stories
you win will be unlocked in "Play Movies" to view seamlessly and in fullscreen!
Which ever Scene you solve will be unlocked in "Custom Puzzle".
WARNING:  If you skip a cut scene, it will spoil the story!

Let's fly to
the sky!

Let's go to the
floating mountain!

Give me a hand!

Help me get
this girl!

I wanna see
her again.

Let's get my
Hunny Bunny!

Make it stop!

Never trust a
sneaky bunny.

Background:

Click anywhere to continue

Round

Puzzathoughts: On

Puzzathoughts: Off

Cool!

Fun huh?

Do it again!

Keep going!

Unbelievable!

Did you see that?

Well done!

Exciting!

That was memorable!

Havablast!

Wise move.

Thank you!

You're a Puzzasaurus!

You're a Puzzamonster!

Way to go!

Hip! Hip! Hooray!

That's how!

Perfect!

Puzzatacular!

Puzzalarious!

Puzza! Puzza!

Best thing all day!

Coolest ever!

Outrageous!

Wonderful!

Gimmie your autograph!

Brilliant move!

Wasn't that awesome?

Wasn't that cool?

Marvelous!

Yeeeee Haw!

YAY!

Nice!

Click!

Snap!

I love you.

Be happy!

Have fun!

Close one!

Yum!

Yummy!

Wahoo!

Woo wee!

Wooo!

Weee!

Ha! Ha! Ha!

You're a pro!

You're a Puzzapro!

Let's bee friends!

Happiness!

Smile!

Puzzawesome!

Accident?

Mistake?

This puzzle is happy!

Time to smile!

SUPER FUN!

Amazingly fun!

Tremendous!

Unreal!

I'm speechless!

I'm flabergasted!

Surprise!

SO FAST!

Faster than lightning!

Wow.

Splendid.

That tickles!

Ouch...just joking!

Ow...just joking!

Wonderful performance!

Amazing performance!

That was true skill.

Skillfully done.

Skip

ActionScript [AS3]

Section 1
//ByteArrayAsset (mx.core.ByteArrayAsset) package mx.core { import flash.utils.*; public class ByteArrayAsset extends ByteArray implements IFlexAsset { mx_internal static const VERSION:String = "3.3.0.4852"; } }//package mx.core
Section 2
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.3.0.4852"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 3
//FlexLoader (mx.core.FlexLoader) package mx.core { import flash.display.*; import mx.utils.*; public class FlexLoader extends Loader { mx_internal static const VERSION:String = "3.3.0.4852"; public function FlexLoader(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 4
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "3.3.0.4852"; public function FlexMovieClip(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 5
//FlexShape (mx.core.FlexShape) package mx.core { import flash.display.*; import mx.utils.*; public class FlexShape extends Shape { mx_internal static const VERSION:String = "3.3.0.4852"; public function FlexShape(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 6
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.3.0.4852"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 7
//FlexVersion (mx.core.FlexVersion) package mx.core { import mx.resources.*; public class FlexVersion { public static const VERSION_2_0_1:uint = 33554433; public static const CURRENT_VERSION:uint = 50331648; public static const VERSION_3_0:uint = 50331648; public static const VERSION_2_0:uint = 33554432; public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"; public static const VERSION_ALREADY_SET:String = "versionAlreadySet"; mx_internal static const VERSION:String = "3.3.0.4852"; private static var compatibilityVersionChanged:Boolean = false; private static var _compatibilityErrorFunction:Function; private static var _compatibilityVersion:uint = 50331648; private static var compatibilityVersionRead:Boolean = false; mx_internal static function changeCompatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function set compatibilityVersion(_arg1:uint):void{ var _local2:String; if (_arg1 == _compatibilityVersion){ return; }; if (compatibilityVersionChanged){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET); }; if (compatibilityVersionRead){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ); }; _compatibilityVersion = _arg1; compatibilityVersionChanged = true; } public static function get compatibilityVersion():uint{ compatibilityVersionRead = true; return (_compatibilityVersion); } public static function set compatibilityErrorFunction(_arg1:Function):void{ _compatibilityErrorFunction = _arg1; } public static function set compatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function get compatibilityErrorFunction():Function{ return (_compatibilityErrorFunction); } public static function get compatibilityVersionString():String{ var _local1:uint = ((compatibilityVersion >> 24) & 0xFF); var _local2:uint = ((compatibilityVersion >> 16) & 0xFF); var _local3:uint = (compatibilityVersion & 0xFFFF); return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString())); } } }//package mx.core
Section 8
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 9
//IButton (mx.core.IButton) package mx.core { public interface IButton extends IUIComponent { function get emphasized():Boolean; function set emphasized(_arg1:Boolean):void; function callLater(_arg1:Function, _arg2:Array=null):void; } }//package mx.core
Section 10
//IChildList (mx.core.IChildList) package mx.core { import flash.display.*; import flash.geom.*; public interface IChildList { function get numChildren():int; function removeChild(_arg1:DisplayObject):DisplayObject; function getChildByName(_arg1:String):DisplayObject; function removeChildAt(_arg1:int):DisplayObject; function getChildIndex(_arg1:DisplayObject):int; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function getObjectsUnderPoint(_arg1:Point):Array; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function getChildAt(_arg1:int):DisplayObject; function addChild(_arg1:DisplayObject):DisplayObject; function contains(_arg1:DisplayObject):Boolean; } }//package mx.core
Section 11
//IContainer (mx.core.IContainer) package mx.core { import flash.display.*; import flash.media.*; import flash.geom.*; import mx.managers.*; import flash.text.*; public interface IContainer extends IUIComponent { function set hitArea(_arg1:Sprite):void; function swapChildrenAt(_arg1:int, _arg2:int):void; function getChildByName(_arg1:String):DisplayObject; function get doubleClickEnabled():Boolean; function get graphics():Graphics; function get useHandCursor():Boolean; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function set mouseChildren(_arg1:Boolean):void; function set creatingContentPane(_arg1:Boolean):void; function get textSnapshot():TextSnapshot; function getChildIndex(_arg1:DisplayObject):int; function set doubleClickEnabled(_arg1:Boolean):void; function getObjectsUnderPoint(_arg1:Point):Array; function get creatingContentPane():Boolean; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function get soundTransform():SoundTransform; function set useHandCursor(_arg1:Boolean):void; function get numChildren():int; function contains(_arg1:DisplayObject):Boolean; function get verticalScrollPosition():Number; function set defaultButton(_arg1:IFlexDisplayObject):void; function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void; function set horizontalScrollPosition(_arg1:Number):void; function get focusManager():IFocusManager; function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void; function set mouseEnabled(_arg1:Boolean):void; function getChildAt(_arg1:int):DisplayObject; function set soundTransform(_arg1:SoundTransform):void; function get tabChildren():Boolean; function get tabIndex():int; function set focusRect(_arg1:Object):void; function get hitArea():Sprite; function get mouseChildren():Boolean; function removeChildAt(_arg1:int):DisplayObject; function get defaultButton():IFlexDisplayObject; function stopDrag():void; function set tabEnabled(_arg1:Boolean):void; function get horizontalScrollPosition():Number; function get focusRect():Object; function get viewMetrics():EdgeMetrics; function set verticalScrollPosition(_arg1:Number):void; function get dropTarget():DisplayObject; function get mouseEnabled():Boolean; function set tabChildren(_arg1:Boolean):void; function set buttonMode(_arg1:Boolean):void; function get tabEnabled():Boolean; function get buttonMode():Boolean; function removeChild(_arg1:DisplayObject):DisplayObject; function set tabIndex(_arg1:int):void; function addChild(_arg1:DisplayObject):DisplayObject; function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean; } }//package mx.core
Section 12
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 13
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.accessibility.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 14
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { public interface IFlexModuleFactory { function create(... _args):Object; function info():Object; } }//package mx.core
Section 15
//IInvalidating (mx.core.IInvalidating) package mx.core { public interface IInvalidating { function validateNow():void; function invalidateSize():void; function invalidateDisplayList():void; function invalidateProperties():void; } }//package mx.core
Section 16
//IProgrammaticSkin (mx.core.IProgrammaticSkin) package mx.core { public interface IProgrammaticSkin { function validateNow():void; function validateDisplayList():void; } }//package mx.core
Section 17
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 18
//IRectangularBorder (mx.core.IRectangularBorder) package mx.core { import flash.geom.*; public interface IRectangularBorder extends IBorder { function get backgroundImageBounds():Rectangle; function get hasBackgroundImage():Boolean; function set backgroundImageBounds(_arg1:Rectangle):void; function layoutBackgroundImage():void; } }//package mx.core
Section 19
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 20
//ISWFBridgeGroup (mx.core.ISWFBridgeGroup) package mx.core { import flash.events.*; public interface ISWFBridgeGroup { function getChildBridgeProvider(_arg1:IEventDispatcher):ISWFBridgeProvider; function removeChildBridge(_arg1:IEventDispatcher):void; function get parentBridge():IEventDispatcher; function addChildBridge(_arg1:IEventDispatcher, _arg2:ISWFBridgeProvider):void; function set parentBridge(_arg1:IEventDispatcher):void; function containsBridge(_arg1:IEventDispatcher):Boolean; function getChildBridges():Array; } }//package mx.core
Section 21
//ISWFBridgeProvider (mx.core.ISWFBridgeProvider) package mx.core { import flash.events.*; public interface ISWFBridgeProvider { function get childAllowsParent():Boolean; function get swfBridge():IEventDispatcher; function get parentAllowsChild():Boolean; } }//package mx.core
Section 22
//IUIComponent (mx.core.IUIComponent) package mx.core { import flash.display.*; import mx.managers.*; public interface IUIComponent extends IFlexDisplayObject { function set focusPane(_arg1:Sprite):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function set isPopUp(_arg1:Boolean):void; function get explicitMinHeight():Number; function get percentWidth():Number; function get isPopUp():Boolean; function get owner():DisplayObjectContainer; function get percentHeight():Number; function get baselinePosition():Number; function owns(_arg1:DisplayObject):Boolean; function initialize():void; function get maxWidth():Number; function get minWidth():Number; function getExplicitOrMeasuredWidth():Number; function get explicitMaxWidth():Number; function get explicitMaxHeight():Number; function set percentHeight(_arg1:Number):void; function get minHeight():Number; function set percentWidth(_arg1:Number):void; function get document():Object; function get focusPane():Sprite; function getExplicitOrMeasuredHeight():Number; function set tweeningProperties(_arg1:Array):void; function set explicitWidth(_arg1:Number):void; function set measuredMinHeight(_arg1:Number):void; function get explicitMinWidth():Number; function get tweeningProperties():Array; function get maxHeight():Number; function set owner(_arg1:DisplayObjectContainer):void; function set includeInLayout(_arg1:Boolean):void; function setVisible(_arg1:Boolean, _arg2:Boolean=false):void; function parentChanged(_arg1:DisplayObjectContainer):void; function get explicitWidth():Number; function get measuredMinHeight():Number; function set measuredMinWidth(_arg1:Number):void; function set explicitHeight(_arg1:Number):void; function get includeInLayout():Boolean; function get measuredMinWidth():Number; function get explicitHeight():Number; function set systemManager(_arg1:ISystemManager):void; function set document(_arg1:Object):void; function get systemManager():ISystemManager; } }//package mx.core
Section 23
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.3.0.4852"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 24
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset) package mx.core { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.system.*; public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject { protected var initialHeight:Number;// = 0 private var loader:Loader;// = null private var initialized:Boolean;// = false protected var initialWidth:Number;// = 0 private var requestedHeight:Number; private var requestedWidth:Number; mx_internal static const VERSION:String = "3.3.0.4852"; public function MovieClipLoaderAsset(){ var _local1:LoaderContext = new LoaderContext(); _local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local1)){ _local1["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.loadBytes(movieClipData, _local1); addChild(loader); } override public function get width():Number{ if (!initialized){ return (initialWidth); }; return (super.width); } override public function set width(_arg1:Number):void{ if (!initialized){ requestedWidth = _arg1; } else { loader.width = _arg1; }; } override public function get measuredHeight():Number{ return (initialHeight); } private function completeHandler(_arg1:Event):void{ initialized = true; initialWidth = loader.width; initialHeight = loader.height; if (!isNaN(requestedWidth)){ loader.width = requestedWidth; }; if (!isNaN(requestedHeight)){ loader.height = requestedHeight; }; dispatchEvent(_arg1); } override public function set height(_arg1:Number):void{ if (!initialized){ requestedHeight = _arg1; } else { loader.height = _arg1; }; } override public function get measuredWidth():Number{ return (initialWidth); } override public function get height():Number{ if (!initialized){ return (initialHeight); }; return (super.height); } public function get movieClipData():ByteArray{ return (null); } } }//package mx.core
Section 25
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 26
//Singleton (mx.core.Singleton) package mx.core { public class Singleton { mx_internal static const VERSION:String = "3.3.0.4852"; private static var classMap:Object = {}; public static function registerClass(_arg1:String, _arg2:Class):void{ var _local3:Class = classMap[_arg1]; if (!_local3){ classMap[_arg1] = _arg2; }; } public static function getClass(_arg1:String):Class{ return (classMap[_arg1]); } public static function getInstance(_arg1:String):Object{ var _local2:Class = classMap[_arg1]; if (!_local2){ throw (new Error((("No class registered for interface '" + _arg1) + "'."))); }; return (_local2["getInstance"]()); } } }//package mx.core
Section 27
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.3.0.4852"; } }//package mx.core
Section 28
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.3.0.4852"; public function SpriteAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 29
//UIComponentGlobals (mx.core.UIComponentGlobals) package mx.core { import flash.display.*; import flash.geom.*; import mx.managers.*; public class UIComponentGlobals { mx_internal static var callLaterSuspendCount:int = 0; mx_internal static var layoutManager:ILayoutManager; mx_internal static var nextFocusObject:InteractiveObject; mx_internal static var designTime:Boolean = false; mx_internal static var tempMatrix:Matrix = new Matrix(); mx_internal static var callLaterDispatcherCount:int = 0; private static var _catchCallLaterExceptions:Boolean = false; public static function set catchCallLaterExceptions(_arg1:Boolean):void{ _catchCallLaterExceptions = _arg1; } public static function get designMode():Boolean{ return (designTime); } public static function set designMode(_arg1:Boolean):void{ designTime = _arg1; } public static function get catchCallLaterExceptions():Boolean{ return (_catchCallLaterExceptions); } } }//package mx.core
Section 30
//ModuleEvent (mx.events.ModuleEvent) package mx.events { import flash.events.*; import mx.modules.*; public class ModuleEvent extends ProgressEvent { public var errorText:String; private var _module:IModuleInfo; public static const READY:String = "ready"; public static const ERROR:String = "error"; public static const PROGRESS:String = "progress"; mx_internal static const VERSION:String = "3.3.0.4852"; public static const SETUP:String = "setup"; public static const UNLOAD:String = "unload"; public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; this._module = _arg7; } public function get module():IModuleInfo{ if (_module){ return (_module); }; return ((target as IModuleInfo)); } override public function clone():Event{ return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module)); } } }//package mx.events
Section 31
//ResourceEvent (mx.events.ResourceEvent) package mx.events { import flash.events.*; public class ResourceEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.3.0.4852"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 32
//StyleEvent (mx.events.StyleEvent) package mx.events { import flash.events.*; public class StyleEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.3.0.4852"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 33
//RectangularDropShadow (mx.graphics.RectangularDropShadow) package mx.graphics { import mx.core.*; import flash.display.*; import flash.geom.*; import mx.utils.*; import flash.filters.*; public class RectangularDropShadow { private var leftShadow:BitmapData; private var _tlRadius:Number;// = 0 private var _trRadius:Number;// = 0 private var _angle:Number;// = 45 private var topShadow:BitmapData; private var _distance:Number;// = 4 private var rightShadow:BitmapData; private var _alpha:Number;// = 0.4 private var shadow:BitmapData; private var _brRadius:Number;// = 0 private var _blRadius:Number;// = 0 private var _color:int;// = 0 private var bottomShadow:BitmapData; private var changed:Boolean;// = true mx_internal static const VERSION:String = "3.3.0.4852"; public function get blRadius():Number{ return (_blRadius); } public function set brRadius(_arg1:Number):void{ if (_brRadius != _arg1){ _brRadius = _arg1; changed = true; }; } public function set color(_arg1:int):void{ if (_color != _arg1){ _color = _arg1; changed = true; }; } public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{ var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; if (changed){ createShadowBitmaps(); changed = false; }; _arg4 = Math.ceil(_arg4); _arg5 = Math.ceil(_arg5); var _local6:int = (leftShadow) ? leftShadow.width : 0; var _local7:int = (rightShadow) ? rightShadow.width : 0; var _local8:int = (topShadow) ? topShadow.height : 0; var _local9:int = (bottomShadow) ? bottomShadow.height : 0; var _local10:int = (_local6 + _local7); var _local11:int = (_local8 + _local9); var _local12:Number = ((_arg5 + _local11) / 2); var _local13:Number = ((_arg4 + _local10) / 2); var _local14:Matrix = new Matrix(); if (((leftShadow) || (topShadow))){ _local15 = Math.min((tlRadius + _local10), _local13); _local16 = Math.min((tlRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16); _arg1.endFill(); }; if (((rightShadow) || (topShadow))){ _local17 = Math.min((trRadius + _local10), _local13); _local18 = Math.min((trRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18); _arg1.endFill(); }; if (((leftShadow) || (bottomShadow))){ _local19 = Math.min((blRadius + _local10), _local13); _local20 = Math.min((blRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20); _arg1.endFill(); }; if (((rightShadow) || (bottomShadow))){ _local21 = Math.min((brRadius + _local10), _local13); _local22 = Math.min((brRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22); _arg1.endFill(); }; if (leftShadow){ _local14.tx = (_arg2 - _local6); _local14.ty = 0; _arg1.beginBitmapFill(leftShadow, _local14); _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20)); _arg1.endFill(); }; if (rightShadow){ _local14.tx = (_arg2 + _arg4); _local14.ty = 0; _arg1.beginBitmapFill(rightShadow, _local14); _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22)); _arg1.endFill(); }; if (topShadow){ _local14.tx = 0; _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(topShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8); _arg1.endFill(); }; if (bottomShadow){ _local14.tx = 0; _local14.ty = (_arg3 + _arg5); _arg1.beginBitmapFill(bottomShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9); _arg1.endFill(); }; } public function get brRadius():Number{ return (_brRadius); } public function get angle():Number{ return (_angle); } private function createShadowBitmaps():void{ var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius)); var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius)); if ((((_local1 < 0)) || ((_local2 < 0)))){ return; }; var _local3:Shape = new FlexShape(); var _local4:Graphics = _local3.graphics; _local4.beginFill(0xFFFFFF); GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius); _local4.endFill(); var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0); _local5.draw(_local3, new Matrix()); var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha); _local6.knockout = true; var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2); var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6); var _local9:Number = (_local7.left - _local8.left); var _local10:Number = (_local8.right - _local7.right); var _local11:Number = (_local7.top - _local8.top); var _local12:Number = (_local8.bottom - _local7.bottom); shadow = new BitmapData(_local8.width, _local8.height); shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6); var _local13:Point = new Point(0, 0); var _local14:Rectangle = new Rectangle(); if (_local9 > 0){ _local14.x = 0; _local14.y = ((tlRadius + _local11) + _local12); _local14.width = _local9; _local14.height = 1; leftShadow = new BitmapData(_local9, 1); leftShadow.copyPixels(shadow, _local14, _local13); } else { leftShadow = null; }; if (_local10 > 0){ _local14.x = (shadow.width - _local10); _local14.y = ((trRadius + _local11) + _local12); _local14.width = _local10; _local14.height = 1; rightShadow = new BitmapData(_local10, 1); rightShadow.copyPixels(shadow, _local14, _local13); } else { rightShadow = null; }; if (_local11 > 0){ _local14.x = ((tlRadius + _local9) + _local10); _local14.y = 0; _local14.width = 1; _local14.height = _local11; topShadow = new BitmapData(1, _local11); topShadow.copyPixels(shadow, _local14, _local13); } else { topShadow = null; }; if (_local12 > 0){ _local14.x = ((blRadius + _local9) + _local10); _local14.y = (shadow.height - _local12); _local14.width = 1; _local14.height = _local12; bottomShadow = new BitmapData(1, _local12); bottomShadow.copyPixels(shadow, _local14, _local13); } else { bottomShadow = null; }; } public function get alpha():Number{ return (_alpha); } public function get color():int{ return (_color); } public function set angle(_arg1:Number):void{ if (_angle != _arg1){ _angle = _arg1; changed = true; }; } public function set trRadius(_arg1:Number):void{ if (_trRadius != _arg1){ _trRadius = _arg1; changed = true; }; } public function set tlRadius(_arg1:Number):void{ if (_tlRadius != _arg1){ _tlRadius = _arg1; changed = true; }; } public function get trRadius():Number{ return (_trRadius); } public function set distance(_arg1:Number):void{ if (_distance != _arg1){ _distance = _arg1; changed = true; }; } public function get distance():Number{ return (_distance); } public function get tlRadius():Number{ return (_tlRadius); } public function set alpha(_arg1:Number):void{ if (_alpha != _arg1){ _alpha = _arg1; changed = true; }; } public function set blRadius(_arg1:Number):void{ if (_blRadius != _arg1){ _blRadius = _arg1; changed = true; }; } } }//package mx.graphics
Section 34
//IFocusManager (mx.managers.IFocusManager) package mx.managers { import flash.events.*; import mx.core.*; import flash.display.*; public interface IFocusManager { function get focusPane():Sprite; function getFocus():IFocusManagerComponent; function deactivate():void; function set defaultButton(_arg1:IButton):void; function set focusPane(_arg1:Sprite):void; function set showFocusIndicator(_arg1:Boolean):void; function moveFocus(_arg1:String, _arg2:DisplayObject=null):void; function addSWFBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function removeSWFBridge(_arg1:IEventDispatcher):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent; function get nextTabIndex():int; function get defaultButton():IButton; function get showFocusIndicator():Boolean; function setFocus(_arg1:IFocusManagerComponent):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent; } }//package mx.managers
Section 35
//IFocusManagerComponent (mx.managers.IFocusManagerComponent) package mx.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 mx.managers
Section 36
//IFocusManagerContainer (mx.managers.IFocusManagerContainer) package mx.managers { import flash.events.*; import flash.display.*; public interface IFocusManagerContainer extends IEventDispatcher { function set focusManager(_arg1:IFocusManager):void; function get focusManager():IFocusManager; function get systemManager():ISystemManager; function contains(_arg1:DisplayObject):Boolean; } }//package mx.managers
Section 37
//ILayoutManager (mx.managers.ILayoutManager) package mx.managers { import flash.events.*; public interface ILayoutManager extends IEventDispatcher { function validateNow():void; function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void; function isInvalid():Boolean; function invalidateDisplayList(_arg1:ILayoutManagerClient):void; function set usePhasedInstantiation(_arg1:Boolean):void; function invalidateSize(_arg1:ILayoutManagerClient):void; function get usePhasedInstantiation():Boolean; function invalidateProperties(_arg1:ILayoutManagerClient):void; } }//package mx.managers
Section 38
//ILayoutManagerClient (mx.managers.ILayoutManagerClient) package mx.managers { import flash.events.*; public interface ILayoutManagerClient extends IEventDispatcher { function get updateCompletePendingFlag():Boolean; function set updateCompletePendingFlag(_arg1:Boolean):void; function set initialized(_arg1:Boolean):void; function validateProperties():void; function validateDisplayList():void; function get nestLevel():int; function get initialized():Boolean; function get processedDescriptors():Boolean; function validateSize(_arg1:Boolean=false):void; function set nestLevel(_arg1:int):void; function set processedDescriptors(_arg1:Boolean):void; } }//package mx.managers
Section 39
//ISystemManager (mx.managers.ISystemManager) package mx.managers { import flash.events.*; import mx.core.*; import flash.display.*; import flash.geom.*; import flash.text.*; public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory { function set focusPane(_arg1:Sprite):void; function get toolTipChildren():IChildList; function useSWFBridge():Boolean; function isFontFaceEmbedded(_arg1:TextFormat):Boolean; function deployMouseShields(_arg1:Boolean):void; function get rawChildren():IChildList; function get topLevelSystemManager():ISystemManager; function dispatchEventFromSWFBridges(_arg1:Event, _arg2:IEventDispatcher=null, _arg3:Boolean=false, _arg4:Boolean=false):void; function getSandboxRoot():DisplayObject; function get swfBridgeGroup():ISWFBridgeGroup; function removeFocusManager(_arg1:IFocusManagerContainer):void; function addChildToSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function get document():Object; function get focusPane():Sprite; function get loaderInfo():LoaderInfo; function addChildBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function getTopLevelRoot():DisplayObject; function removeChildBridge(_arg1:IEventDispatcher):void; function isDisplayObjectInABridgedApplication(_arg1:DisplayObject):Boolean; function get popUpChildren():IChildList; function get screen():Rectangle; function removeChildFromSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function getDefinitionByName(_arg1:String):Object; function activate(_arg1:IFocusManagerContainer):void; function deactivate(_arg1:IFocusManagerContainer):void; function get cursorChildren():IChildList; function set document(_arg1:Object):void; function get embeddedFontList():Object; function set numModalWindows(_arg1:int):void; function isTopLevel():Boolean; function isTopLevelRoot():Boolean; function get numModalWindows():int; function addFocusManager(_arg1:IFocusManagerContainer):void; function get stage():Stage; function getVisibleApplicationRect(_arg1:Rectangle=null):Rectangle; } }//package mx.managers
Section 40
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var changingListenersInOtherSystemManagers:Boolean; public static var bootstrapLoaderInfoURL:String; public static var showMouseCursor:Boolean; } }//package mx.managers
Section 41
//IModuleInfo (mx.modules.IModuleInfo) package mx.modules { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; public interface IModuleInfo extends IEventDispatcher { function get ready():Boolean; function get loaded():Boolean; function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void; function release():void; function get error():Boolean; function get data():Object; function publish(_arg1:IFlexModuleFactory):void; function get factory():IFlexModuleFactory; function set data(_arg1:Object):void; function get url():String; function get setup():Boolean; function unload():void; } }//package mx.modules
Section 42
//ModuleManager (mx.modules.ModuleManager) package mx.modules { import mx.core.*; public class ModuleManager { mx_internal static const VERSION:String = "3.3.0.4852"; public static function getModule(_arg1:String):IModuleInfo{ return (getSingleton().getModule(_arg1)); } private static function getSingleton():Object{ if (!ModuleManagerGlobals.managerSingleton){ ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl(); }; return (ModuleManagerGlobals.managerSingleton); } public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ return (getSingleton().getAssociatedFactory(_arg1)); } } }//package mx.modules import flash.events.*; import mx.core.*; import flash.display.*; import flash.utils.*; import flash.system.*; import mx.events.*; import flash.net.*; class ModuleInfoProxy extends EventDispatcher implements IModuleInfo { private var _data:Object; private var info:ModuleInfo; private var referenced:Boolean;// = false private function ModuleInfoProxy(_arg1:ModuleInfo){ this.info = _arg1; _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true); } public function get loaded():Boolean{ return (info.loaded); } public function release():void{ if (referenced){ info.removeReference(); referenced = false; }; } public function get error():Boolean{ return (info.error); } public function get factory():IFlexModuleFactory{ return (info.factory); } public function publish(_arg1:IFlexModuleFactory):void{ info.publish(_arg1); } public function set data(_arg1:Object):void{ _data = _arg1; } public function get ready():Boolean{ return (info.ready); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ var _local4:ModuleEvent; info.resurrect(); if (!referenced){ info.addReference(); referenced = true; }; if (info.error){ dispatchEvent(new ModuleEvent(ModuleEvent.ERROR)); } else { if (info.loaded){ if (info.setup){ dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); if (info.ready){ _local4 = new ModuleEvent(ModuleEvent.PROGRESS); _local4.bytesLoaded = info.size; _local4.bytesTotal = info.size; dispatchEvent(_local4); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); }; }; } else { info.load(_arg1, _arg2, _arg3); }; }; } private function moduleEventHandler(_arg1:ModuleEvent):void{ dispatchEvent(_arg1); } public function get url():String{ return (info.url); } public function get data():Object{ return (_data); } public function get setup():Boolean{ return (info.setup); } public function unload():void{ info.unload(); info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler); info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler); info.removeEventListener(ModuleEvent.READY, moduleEventHandler); info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler); info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler); } } class ModuleManagerImpl extends EventDispatcher { private var moduleList:Object; private function ModuleManagerImpl(){ moduleList = {}; super(); } public function getModule(_arg1:String):IModuleInfo{ var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo); if (!_local2){ _local2 = new ModuleInfo(_arg1); moduleList[_arg1] = _local2; }; return (new ModuleInfoProxy(_local2)); } public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ var m:Object; var info:ModuleInfo; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for each (m in moduleList) { info = (m as ModuleInfo); if (!info.ready){ } else { domain = info.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return (info.factory); }; } catch(error:Error) { }; }; }; return (null); } } class ModuleInfo extends EventDispatcher { private var _error:Boolean;// = false private var loader:Loader; private var factoryInfo:FactoryInfo; private var limbo:Dictionary; private var _loaded:Boolean;// = false private var _ready:Boolean;// = false private var numReferences:int;// = 0 private var _url:String; private var _setup:Boolean;// = false private function ModuleInfo(_arg1:String){ _url = _arg1; } private function clearLoader():void{ if (loader){ if (loader.contentLoaderInfo){ loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); }; try { if (loader.content){ loader.content.removeEventListener("ready", readyHandler); loader.content.removeEventListener("error", moduleErrorHandler); }; } catch(error:Error) { }; if (_loaded){ try { loader.close(); } catch(error:Error) { }; }; try { loader.unload(); } catch(error:Error) { }; loader = null; }; } public function get size():int{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0); } public function get loaded():Boolean{ return ((limbo) ? false : _loaded); } public function release():void{ if (((_ready) && (!(limbo)))){ limbo = new Dictionary(true); limbo[factoryInfo] = 1; factoryInfo = null; } else { unload(); }; } public function get error():Boolean{ return ((limbo) ? false : _error); } public function get factory():IFlexModuleFactory{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null); } public function completeHandler(_arg1:Event):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; dispatchEvent(_local2); } public function publish(_arg1:IFlexModuleFactory):void{ if (factoryInfo){ return; }; if (_url.indexOf("published://") != 0){ return; }; factoryInfo = new FactoryInfo(); factoryInfo.factory = _arg1; _loaded = true; _setup = true; _ready = true; _error = false; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS)); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function initHandler(_arg1:Event):void{ var moduleEvent:ModuleEvent; var event = _arg1; factoryInfo = new FactoryInfo(); try { factoryInfo.factory = (loader.content as IFlexModuleFactory); } catch(error:Error) { }; if (!factoryInfo.factory){ moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable); moduleEvent.bytesLoaded = 0; moduleEvent.bytesTotal = 0; moduleEvent.errorText = "SWF is not a loadable module"; dispatchEvent(moduleEvent); return; }; loader.content.addEventListener("ready", readyHandler); loader.content.addEventListener("error", moduleErrorHandler); try { factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain; } catch(error:Error) { }; _setup = true; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); } public function resurrect():void{ var _local1:Object; if (((!(factoryInfo)) && (limbo))){ for (_local1 in limbo) { factoryInfo = (_local1 as FactoryInfo); break; }; limbo = null; }; if (!factoryInfo){ if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; loader = null; _loaded = false; _setup = false; _ready = false; _error = false; }; } public function errorHandler(_arg1:ErrorEvent):void{ _error = true; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = 0; _local2.bytesTotal = 0; _local2.errorText = _arg1.text; dispatchEvent(_local2); } public function get ready():Boolean{ return ((limbo) ? false : _ready); } private function loadBytes(_arg1:ApplicationDomain, _arg2:ByteArray):void{ var _local3:LoaderContext = new LoaderContext(); _local3.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local3)){ _local3["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.loadBytes(_arg2, _local3); } public function removeReference():void{ numReferences--; if (numReferences == 0){ release(); }; } public function addReference():void{ numReferences++; } public function progressHandler(_arg1:ProgressEvent):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ if (_loaded){ return; }; _loaded = true; limbo = null; if (_arg3){ loadBytes(_arg1, _arg3); return; }; if (_url.indexOf("published://") == 0){ return; }; var _local4:URLRequest = new URLRequest(_url); var _local5:LoaderContext = new LoaderContext(); _local5.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); _local5.securityDomain = _arg2; if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){ _local5.securityDomain = SecurityDomain.currentDomain; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load(_local4, _local5); } public function get url():String{ return (_url); } public function get applicationDomain():ApplicationDomain{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null); } public function moduleErrorHandler(_arg1:Event):void{ var _local2:ModuleEvent; _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); if ((_arg1 is ModuleEvent)){ _local2 = ModuleEvent(_arg1); } else { _local2 = new ModuleEvent(ModuleEvent.ERROR); }; dispatchEvent(_local2); } public function readyHandler(_arg1:Event):void{ _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function get setup():Boolean{ return ((limbo) ? false : _setup); } public function unload():void{ clearLoader(); if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; limbo = null; factoryInfo = null; _loaded = false; _setup = false; _ready = false; _error = false; } } class FactoryInfo { public var bytesTotal:int;// = 0 public var factory:IFlexModuleFactory; public var applicationDomain:ApplicationDomain; private function FactoryInfo(){ } }
Section 43
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 44
//IResourceBundle (mx.resources.IResourceBundle) package mx.resources { public interface IResourceBundle { function get content():Object; function get locale():String; function get bundleName():String; } }//package mx.resources
Section 45
//IResourceManager (mx.resources.IResourceManager) package mx.resources { import flash.events.*; import flash.system.*; public interface IResourceManager extends IEventDispatcher { function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean; function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class; function getLocales():Array; function removeResourceBundlesForLocale(_arg1:String):void; function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle; function get localeChain():Array; function getInt(_arg1:String, _arg2:String, _arg3:String=null):int; function update():void; function set localeChain(_arg1:Array):void; function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint; function addResourceBundle(_arg1:IResourceBundle):void; function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array; function getBundleNamesForLocale(_arg1:String):Array; function removeResourceBundle(_arg1:String, _arg2:String):void; function getObject(_arg1:String, _arg2:String, _arg3:String=null); function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String; function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void; function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void; function getPreferredLocaleChain():Array; function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle; function initializeLocaleChain(_arg1:Array):void; function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number; } }//package mx.resources
Section 46
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 47
//LocaleSorter (mx.resources.LocaleSorter) package mx.resources { public class LocaleSorter { mx_internal static const VERSION:String = "3.3.0.4852"; private static function normalizeLocale(_arg1:String):String{ return (_arg1.toLowerCase().replace(/-/g, "_")); } public static function sortLocalesByPreference(_arg1:Array, _arg2:Array, _arg3:String=null, _arg4:Boolean=false):Array{ var result:Array; var hasLocale:Object; var i:int; var j:int; var k:int; var l:int; var locale:String; var plocale:LocaleID; var appLocales = _arg1; var systemPreferences = _arg2; var ultimateFallbackLocale = _arg3; var addAll = _arg4; var promote:Function = function (_arg1:String):void{ if (typeof(hasLocale[_arg1]) != "undefined"){ result.push(appLocales[hasLocale[_arg1]]); delete hasLocale[_arg1]; }; }; result = []; hasLocale = {}; var locales:Array = trimAndNormalize(appLocales); var preferenceLocales:Array = trimAndNormalize(systemPreferences); addUltimateFallbackLocale(preferenceLocales, ultimateFallbackLocale); j = 0; while (j < locales.length) { hasLocale[locales[j]] = j; j = (j + 1); }; i = 0; l = preferenceLocales.length; while (i < l) { plocale = LocaleID.fromString(preferenceLocales[i]); promote(preferenceLocales[i]); promote(plocale.toString()); while (plocale.transformToParent()) { promote(plocale.toString()); }; plocale = LocaleID.fromString(preferenceLocales[i]); j = 0; while (j < l) { locale = preferenceLocales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; j = 0; k = locales.length; while (j < k) { locale = locales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; i = (i + 1); }; if (addAll){ j = 0; k = locales.length; while (j < k) { promote(locales[j]); j = (j + 1); }; }; return (result); } private static function addUltimateFallbackLocale(_arg1:Array, _arg2:String):void{ var _local3:String; if (((!((_arg2 == null))) && (!((_arg2 == ""))))){ _local3 = normalizeLocale(_arg2); if (_arg1.indexOf(_local3) == -1){ _arg1.push(_local3); }; }; } private static function trimAndNormalize(_arg1:Array):Array{ var _local2:Array = []; var _local3:int; while (_local3 < _arg1.length) { _local2.push(normalizeLocale(_arg1[_local3])); _local3++; }; return (_local2); } } }//package mx.resources class LocaleID { private var privateLangs:Boolean;// = false private var script:String;// = "" private var variants:Array; private var privates:Array; private var extensions:Object; private var lang:String;// = "" private var region:String;// = "" private var extended_langs:Array; public static const STATE_PRIMARY_LANGUAGE:int = 0; public static const STATE_REGION:int = 3; public static const STATE_EXTENDED_LANGUAGES:int = 1; public static const STATE_EXTENSIONS:int = 5; public static const STATE_SCRIPT:int = 2; public static const STATE_VARIANTS:int = 4; public static const STATE_PRIVATES:int = 6; private function LocaleID(){ extended_langs = []; variants = []; extensions = {}; privates = []; super(); } public function equals(_arg1:LocaleID):Boolean{ return ((toString() == _arg1.toString())); } public function canonicalize():void{ var _local1:String; for (_local1 in extensions) { if (extensions.hasOwnProperty(_local1)){ if (extensions[_local1].length == 0){ delete extensions[_local1]; } else { extensions[_local1] = extensions[_local1].sort(); }; }; }; extended_langs = extended_langs.sort(); variants = variants.sort(); privates = privates.sort(); if (script == ""){ script = LocaleRegistry.getScriptByLang(lang); }; if ((((script == "")) && (!((region == ""))))){ script = LocaleRegistry.getScriptByLangAndRegion(lang, region); }; if ((((region == "")) && (!((script == ""))))){ region = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); }; } public function toString():String{ var _local2:String; var _local1:Array = [lang]; Array.prototype.push.apply(_local1, extended_langs); if (script != ""){ _local1.push(script); }; if (region != ""){ _local1.push(region); }; Array.prototype.push.apply(_local1, variants); for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1.push(_local2); Array.prototype.push.apply(_local1, extensions[_local2]); }; }; if (privates.length > 0){ _local1.push("x"); Array.prototype.push.apply(_local1, privates); }; return (_local1.join("_")); } public function isSiblingOf(_arg1:LocaleID):Boolean{ return ((((lang == _arg1.lang)) && ((script == _arg1.script)))); } public function transformToParent():Boolean{ var _local2:String; var _local3:Array; var _local4:String; if (privates.length > 0){ privates.splice((privates.length - 1), 1); return (true); }; var _local1:String; for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1 = _local2; }; }; if (_local1){ _local3 = extensions[_local1]; if (_local3.length == 1){ delete extensions[_local1]; return (true); }; _local3.splice((_local3.length - 1), 1); return (true); }; if (variants.length > 0){ variants.splice((variants.length - 1), 1); return (true); }; if (script != ""){ if (LocaleRegistry.getScriptByLang(lang) != ""){ script = ""; return (true); }; if (region == ""){ _local4 = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); if (_local4 != ""){ region = _local4; script = ""; return (true); }; }; }; if (region != ""){ if (!(((script == "")) && ((LocaleRegistry.getScriptByLang(lang) == "")))){ region = ""; return (true); }; }; if (extended_langs.length > 0){ extended_langs.splice((extended_langs.length - 1), 1); return (true); }; return (false); } public static function fromString(_arg1:String):LocaleID{ var _local5:Array; var _local8:String; var _local9:int; var _local10:String; var _local2:LocaleID = new (LocaleID); var _local3:int = STATE_PRIMARY_LANGUAGE; var _local4:Array = _arg1.replace(/-/g, "_").split("_"); var _local6:int; var _local7:int = _local4.length; while (_local6 < _local7) { _local8 = _local4[_local6].toLowerCase(); if (_local3 == STATE_PRIMARY_LANGUAGE){ if (_local8 == "x"){ _local2.privateLangs = true; } else { if (_local8 == "i"){ _local2.lang = (_local2.lang + "i-"); } else { _local2.lang = (_local2.lang + _local8); _local3 = STATE_EXTENDED_LANGUAGES; }; }; } else { _local9 = _local8.length; if (_local9 == 0){ } else { _local10 = _local8.charAt(0).toLowerCase(); if ((((_local3 <= STATE_EXTENDED_LANGUAGES)) && ((_local9 == 3)))){ _local2.extended_langs.push(_local8); if (_local2.extended_langs.length == 3){ _local3 = STATE_SCRIPT; }; } else { if ((((_local3 <= STATE_SCRIPT)) && ((_local9 == 4)))){ _local2.script = _local8; _local3 = STATE_REGION; } else { if ((((_local3 <= STATE_REGION)) && ((((_local9 == 2)) || ((_local9 == 3)))))){ _local2.region = _local8; _local3 = STATE_VARIANTS; } else { if ((((_local3 <= STATE_VARIANTS)) && ((((((((_local10 >= "a")) && ((_local10 <= "z")))) && ((_local9 >= 5)))) || ((((((_local10 >= "0")) && ((_local10 <= "9")))) && ((_local9 >= 4)))))))){ _local2.variants.push(_local8); _local3 = STATE_VARIANTS; } else { if ((((_local3 < STATE_PRIVATES)) && ((_local9 == 1)))){ if (_local8 == "x"){ _local3 = STATE_PRIVATES; _local5 = _local2.privates; } else { _local3 = STATE_EXTENSIONS; _local5 = ((_local2.extensions[_local8]) || ([])); _local2.extensions[_local8] = _local5; }; } else { if (_local3 >= STATE_EXTENSIONS){ _local5.push(_local8); }; }; }; }; }; }; }; }; _local6++; }; _local2.canonicalize(); return (_local2); } } class LocaleRegistry { private static const SCRIPT_ID_BY_LANG:Object = {ab:5, af:1, am:2, ar:3, as:4, ay:1, be:5, bg:5, bn:4, bs:1, ca:1, ch:1, cs:1, cy:1, da:1, de:1, dv:6, dz:7, el:8, en:1, eo:1, es:1, et:1, eu:1, fa:3, fi:1, fj:1, fo:1, fr:1, frr:1, fy:1, ga:1, gl:1, gn:1, gu:9, gv:1, he:10, hi:11, hr:1, ht:1, hu:1, hy:12, id:1, in:1, is:1, it:1, iw:10, ja:13, ka:14, kk:5, kl:1, km:15, kn:16, ko:17, la:1, lb:1, ln:1, lo:18, lt:1, lv:1, mg:1, mh:1, mk:5, ml:19, mo:1, mr:11, ms:1, mt:1, my:20, na:1, nb:1, nd:1, ne:11, nl:1, nn:1, no:1, nr:1, ny:1, om:1, or:21, pa:22, pl:1, ps:3, pt:1, qu:1, rn:1, ro:1, ru:5, rw:1, sg:1, si:23, sk:1, sl:1, sm:1, so:1, sq:1, ss:1, st:1, sv:1, sw:1, ta:24, te:25, th:26, ti:2, tl:1, tn:1, to:1, tr:1, ts:1, uk:5, ur:3, ve:1, vi:1, wo:1, xh:1, yi:10, zu:1, cpe:1, dsb:1, frs:1, gsw:1, hsb:1, kok:11, mai:11, men:1, nds:1, niu:1, nqo:27, nso:1, son:1, tem:1, tkl:1, tmh:1, tpi:1, tvl:1, zbl:28}; private static const SCRIPTS:Array = ["", "latn", "ethi", "arab", "beng", "cyrl", "thaa", "tibt", "grek", "gujr", "hebr", "deva", "armn", "jpan", "geor", "khmr", "knda", "kore", "laoo", "mlym", "mymr", "orya", "guru", "sinh", "taml", "telu", "thai", "nkoo", "blis", "hans", "hant", "mong", "syrc"]; private static const DEFAULT_REGION_BY_LANG_AND_SCRIPT:Object = {bg:{5:"bg"}, ca:{1:"es"}, zh:{30:"tw", 29:"cn"}, cs:{1:"cz"}, da:{1:"dk"}, de:{1:"de"}, el:{8:"gr"}, en:{1:"us"}, es:{1:"es"}, fi:{1:"fi"}, fr:{1:"fr"}, he:{10:"il"}, hu:{1:"hu"}, is:{1:"is"}, it:{1:"it"}, ja:{13:"jp"}, ko:{17:"kr"}, nl:{1:"nl"}, nb:{1:"no"}, pl:{1:"pl"}, pt:{1:"br"}, ro:{1:"ro"}, ru:{5:"ru"}, hr:{1:"hr"}, sk:{1:"sk"}, sq:{1:"al"}, sv:{1:"se"}, th:{26:"th"}, tr:{1:"tr"}, ur:{3:"pk"}, id:{1:"id"}, uk:{5:"ua"}, be:{5:"by"}, sl:{1:"si"}, et:{1:"ee"}, lv:{1:"lv"}, lt:{1:"lt"}, fa:{3:"ir"}, vi:{1:"vn"}, hy:{12:"am"}, az:{1:"az", 5:"az"}, eu:{1:"es"}, mk:{5:"mk"}, af:{1:"za"}, ka:{14:"ge"}, fo:{1:"fo"}, hi:{11:"in"}, ms:{1:"my"}, kk:{5:"kz"}, ky:{5:"kg"}, sw:{1:"ke"}, uz:{1:"uz", 5:"uz"}, tt:{5:"ru"}, pa:{22:"in"}, gu:{9:"in"}, ta:{24:"in"}, te:{25:"in"}, kn:{16:"in"}, mr:{11:"in"}, sa:{11:"in"}, mn:{5:"mn"}, gl:{1:"es"}, kok:{11:"in"}, syr:{32:"sy"}, dv:{6:"mv"}, nn:{1:"no"}, sr:{1:"cs", 5:"cs"}, cy:{1:"gb"}, mi:{1:"nz"}, mt:{1:"mt"}, quz:{1:"bo"}, tn:{1:"za"}, xh:{1:"za"}, zu:{1:"za"}, nso:{1:"za"}, se:{1:"no"}, smj:{1:"no"}, sma:{1:"no"}, sms:{1:"fi"}, smn:{1:"fi"}, bs:{1:"ba"}}; private static const SCRIPT_BY_ID:Object = {latn:1, ethi:2, arab:3, beng:4, cyrl:5, thaa:6, tibt:7, grek:8, gujr:9, hebr:10, deva:11, armn:12, jpan:13, geor:14, khmr:15, knda:16, kore:17, laoo:18, mlym:19, mymr:20, orya:21, guru:22, sinh:23, taml:24, telu:25, thai:26, nkoo:27, blis:28, hans:29, hant:30, mong:31, syrc:32}; private static const SCRIPT_ID_BY_LANG_AND_REGION:Object = {zh:{cn:29, sg:29, tw:30, hk:30, mo:30}, mn:{cn:31, sg:5}, pa:{pk:3, in:22}, ha:{gh:1, ne:1}}; private function LocaleRegistry(){ } public static function getScriptByLangAndRegion(_arg1:String, _arg2:String):String{ var _local3:Object = SCRIPT_ID_BY_LANG_AND_REGION[_arg1]; if (_local3 == null){ return (""); }; var _local4:Object = _local3[_arg2]; if (_local4 == null){ return (""); }; return (SCRIPTS[int(_local4)].toLowerCase()); } public static function getScriptByLang(_arg1:String):String{ var _local2:Object = SCRIPT_ID_BY_LANG[_arg1]; if (_local2 == null){ return (""); }; return (SCRIPTS[int(_local2)].toLowerCase()); } public static function getDefaultRegionForLangAndScript(_arg1:String, _arg2:String):String{ var _local3:Object = DEFAULT_REGION_BY_LANG_AND_SCRIPT[_arg1]; var _local4:Object = SCRIPT_BY_ID[_arg2]; if ((((_local3 == null)) || ((_local4 == null)))){ return (""); }; return (((_local3[int(_local4)]) || (""))); } }
Section 48
//ResourceBundle (mx.resources.ResourceBundle) package mx.resources { import mx.core.*; import flash.system.*; import mx.utils.*; public class ResourceBundle implements IResourceBundle { mx_internal var _locale:String; private var _content:Object; mx_internal var _bundleName:String; mx_internal static const VERSION:String = "3.3.0.4852"; mx_internal static var backupApplicationDomain:ApplicationDomain; mx_internal static var locale:String; public function ResourceBundle(_arg1:String=null, _arg2:String=null){ _content = {}; super(); mx_internal::_locale = _arg1; mx_internal::_bundleName = _arg2; _content = getContent(); } protected function getContent():Object{ return ({}); } public function getString(_arg1:String):String{ return (String(_getObject(_arg1))); } public function get content():Object{ return (_content); } public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{ var _local3:String = _getObject(_arg1).toLowerCase(); if (_local3 == "false"){ return (false); }; if (_local3 == "true"){ return (true); }; return (_arg2); } public function getStringArray(_arg1:String):Array{ var _local2:Array = _getObject(_arg1).split(","); var _local3:int = _local2.length; var _local4:int; while (_local4 < _local3) { _local2[_local4] = StringUtil.trim(_local2[_local4]); _local4++; }; return (_local2); } public function getObject(_arg1:String):Object{ return (_getObject(_arg1)); } private function _getObject(_arg1:String):Object{ var _local2:Object = content[_arg1]; if (!_local2){ throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName))); }; return (_local2); } public function get locale():String{ return (mx_internal::_locale); } public function get bundleName():String{ return (mx_internal::_bundleName); } public function getNumber(_arg1:String):Number{ return (Number(_getObject(_arg1))); } private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{ var _local3:Class; if (_arg2.hasDefinition(_arg1)){ _local3 = (_arg2.getDefinition(_arg1) as Class); }; return (_local3); } public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{ var _local3:String; var _local4:Class; var _local5:Object; var _local6:ResourceBundle; if (!_arg2){ _arg2 = ApplicationDomain.currentDomain; }; _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties"); _local4 = getClassByName(_local3, _arg2); if (!_local4){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, _arg2); }; if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, _arg2); }; if (((!(_local4)) && (mx_internal::backupApplicationDomain))){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); }; }; if (_local4){ _local5 = new (_local4); if ((_local5 is ResourceBundle)){ _local6 = ResourceBundle(_local5); return (_local6); }; }; throw (new Error(("Could not find resource bundle " + _arg1))); } } }//package mx.resources
Section 49
//ResourceManager (mx.resources.ResourceManager) package mx.resources { import mx.core.*; public class ResourceManager { mx_internal static const VERSION:String = "3.3.0.4852"; private static var implClassDependency:ResourceManagerImpl; private static var instance:IResourceManager; public static function getInstance():IResourceManager{ if (!instance){ try { instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager")); } catch(e:Error) { instance = new ResourceManagerImpl(); }; }; return (instance); } } }//package mx.resources
Section 50
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.utils.*; public class ResourceManagerImpl extends EventDispatcher implements IResourceManager { private var resourceModules:Object; private var initializedForNonFrameworkApp:Boolean;// = false private var localeMap:Object; private var _localeChain:Array; mx_internal static const VERSION:String = "3.3.0.4852"; private static var instance:IResourceManager; public function ResourceManagerImpl(){ localeMap = {}; resourceModules = {}; super(); } public function get localeChain():Array{ return (_localeChain); } public function set localeChain(_arg1:Array):void{ _localeChain = _arg1; update(); } public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; var _local6:Array = String(_local5).split(","); var _local7:int = _local6.length; var _local8:int; while (_local8 < _local7) { _local6[_local8] = StringUtil.trim(_local6[_local8]); _local8++; }; return (_local6); } mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{ var _local4:String; var _local5:String = _arg3; var _local6:int = _arg3.indexOf(":"); if (_local6 != -1){ _local4 = _arg3.substring(0, _local6); _local5 = _arg3.substring((_local6 + 1)); }; if (getResourceBundle(_arg2, _arg3)){ return; }; var _local7 = (((_arg2 + "$") + _local5) + "_properties"); if (_local4 != null){ _local7 = ((_local4 + ".") + _local7); }; var _local8:Class; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; if (!_local8){ _local7 = _arg3; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ _local7 = (_arg3 + "_properties"); if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'."))); }; var _local9:ResourceBundle = ResourceBundle(new (_local8)); _local9.mx_internal::_locale = _arg2; _local9.mx_internal::_bundleName = _arg3; addResourceBundle(_local9); } public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{ var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4); if (!_local5){ return (null); }; var _local6:String = String(_local5.content[_arg2]); if (_arg3){ _local6 = StringUtil.substitute(_local6, _arg3); }; return (_local6); } public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var moduleInfo:IModuleInfo; var resourceEventDispatcher:ResourceEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var updateFlag = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; moduleInfo = ModuleManager.getModule(url); resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:* = _arg1.module.factory.create(); resourceModules[_arg1.module.url].resourceModule = _local2; if (updateFlag){ update(); }; }; moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:ResourceEvent; var _local2:String = ("Unable to load resource module from " + url); if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){ _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; resourceEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); moduleInfo.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (resourceEventDispatcher); } public function getLocales():Array{ var _local2:String; var _local1:Array = []; for (_local2 in localeMap) { _local1.push(_local2); }; return (_local1); } public function removeResourceBundlesForLocale(_arg1:String):void{ delete localeMap[_arg1]; } public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{ var _local3:Object = localeMap[_arg1]; if (!_local3){ return (null); }; return (_local3[_arg2]); } private function dumpResourceModule(_arg1):void{ var _local2:ResourceBundle; var _local3:String; for each (_local2 in _arg1.resourceBundles) { trace(_local2.locale, _local2.bundleName); for (_local3 in _local2.content) { }; }; } public function addResourceBundle(_arg1:IResourceBundle):void{ var _local2:String = _arg1.locale; var _local3:String = _arg1.bundleName; if (!localeMap[_local2]){ localeMap[_local2] = {}; }; localeMap[_local2][_local3] = _arg1; } public function getObject(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (undefined); }; return (_local4.content[_arg2]); } public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (int(_local5)); } private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{ supportNonFrameworkApps(); return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2)); } private function supportNonFrameworkApps():void{ if (initializedForNonFrameworkApp){ return; }; initializedForNonFrameworkApp = true; if (getLocales().length > 0){ return; }; var _local1:ApplicationDomain = ApplicationDomain.currentDomain; if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){ return; }; var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo")); var _local3:Array = _local2.compiledLocales; var _local4:Array = _local2.compiledResourceBundleNames; installCompiledResourceBundles(_local1, _local3, _local4); localeChain = _local3; } public function getBundleNamesForLocale(_arg1:String):Array{ var _local3:String; var _local2:Array = []; for (_local3 in localeMap[_arg1]) { _local2.push(_local3); }; return (_local2); } public function getPreferredLocaleChain():Array{ return (LocaleSorter.sortLocalesByPreference(getLocales(), getSystemPreferredLocales(), null, true)); } public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (NaN); }; var _local5:* = _local4.content[_arg2]; return (Number(_local5)); } public function update():void{ dispatchEvent(new Event(Event.CHANGE)); } public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; return ((_local5 as Class)); } public function removeResourceBundle(_arg1:String, _arg2:String):void{ delete localeMap[_arg1][_arg2]; if (getBundleNamesForLocale(_arg1).length == 0){ delete localeMap[_arg1]; }; } public function initializeLocaleChain(_arg1:Array):void{ localeChain = LocaleSorter.sortLocalesByPreference(_arg1, getSystemPreferredLocales(), null, true); } public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{ var _local5:String; var _local6:Object; var _local7:ResourceBundle; if (!_localeChain){ return (null); }; var _local3:int = _localeChain.length; var _local4:int; while (_local4 < _local3) { _local5 = localeChain[_local4]; _local6 = localeMap[_local5]; if (!_local6){ } else { _local7 = _local6[_arg1]; if (!_local7){ } else { if ((_arg2 in _local7.content)){ return (_local7); }; }; }; _local4++; }; return (null); } public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (uint(_local5)); } private function getSystemPreferredLocales():Array{ var _local1:Array; if (Capabilities["languages"]){ _local1 = Capabilities["languages"]; } else { _local1 = [Capabilities.language]; }; return (_local1); } public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{ var _local7:String; var _local8:int; var _local9:String; var _local4:int = (_arg2) ? _arg2.length : 0; var _local5:int = (_arg3) ? _arg3.length : 0; var _local6:int; while (_local6 < _local4) { _local7 = _arg2[_local6]; _local8 = 0; while (_local8 < _local5) { _local9 = _arg3[_local8]; mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9); _local8++; }; _local6++; }; } public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (false); }; var _local5:* = _local4.content[_arg2]; return ((String(_local5).toLowerCase() == "true")); } public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{ throw (new Error("unloadResourceModule() is not yet implemented.")); } public static function getInstance():IResourceManager{ if (!instance){ instance = new (ResourceManagerImpl); }; return (instance); } } }//package mx.resources import flash.events.*; import mx.modules.*; import mx.events.*; class ResourceModuleInfo { public var resourceModule:IResourceModule; public var errorHandler:Function; public var readyHandler:Function; public var moduleInfo:IModuleInfo; private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.moduleInfo = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } } class ResourceEventDispatcher extends EventDispatcher { private function ResourceEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } }
Section 51
//HaloBorder (mx.skins.halo.HaloBorder) package mx.skins.halo { import mx.core.*; import flash.display.*; import mx.styles.*; import mx.skins.*; import mx.graphics.*; import mx.utils.*; public class HaloBorder extends RectangularBorder { mx_internal var radiusObj:Object; mx_internal var backgroundHole:Object; mx_internal var radius:Number; mx_internal var bRoundedCorners:Boolean; mx_internal var backgroundColor:Object; private var dropShadow:RectangularDropShadow; protected var _borderMetrics:EdgeMetrics; mx_internal var backgroundAlphaName:String; mx_internal static const VERSION:String = "3.3.0.4852"; private static var BORDER_WIDTHS:Object = {none:0, solid:1, inset:2, outset:2, alert:3, dropdown:2, menuBorder:1, comboNonEdit:2}; public function HaloBorder(){ BORDER_WIDTHS["default"] = 3; } override public function styleChanged(_arg1:String):void{ if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){ _borderMetrics = null; }; invalidateDisplayList(); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ if (((isNaN(_arg1)) || (isNaN(_arg2)))){ return; }; super.updateDisplayList(_arg1, _arg2); backgroundColor = getBackgroundColor(); bRoundedCorners = false; backgroundAlphaName = "backgroundAlpha"; backgroundHole = null; radius = 0; radiusObj = null; drawBorder(_arg1, _arg2); drawBackground(_arg1, _arg2); } mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{ var _local5:Number; var _local6:uint; var _local7:uint; var _local8:String; var _local9:Number; var _local10:uint; var _local11:Boolean; var _local12:uint; var _local13:Array; var _local14:Array; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:uint; var _local19:Boolean; var _local20:Object; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Object; var _local27:Number; var _local28:Number; var _local29:IContainer; var _local30:EdgeMetrics; var _local31:Boolean; var _local32:Number; var _local33:Array; var _local34:uint; var _local35:Boolean; var _local36:Number; var _local3:String = getStyle("borderStyle"); var _local4:Array = getStyle("highlightAlphas"); var _local21:Boolean; var _local26:Graphics = graphics; _local26.clear(); if (_local3){ switch (_local3){ case "none": break; case "inset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, 25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25)); break; case "outset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, -25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25)); break; case "alert": case "default": if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _local27 = getStyle("backgroundAlpha"); _local5 = getStyle("borderAlpha"); backgroundAlphaName = "borderAlpha"; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local28 = (bRoundedCorners) ? radius : 0; drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28); if (!bRoundedCorners){ radiusObj = {}; }; _local29 = (parent as IContainer); if (_local29){ _local30 = _local29.viewMetrics; backgroundHole = {x:_local30.left, y:_local30.top, w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)), h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)), r:0}; if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){ if (_local27 != _local5){ drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0); }; _local26.beginFill(Number(backgroundColor), _local27); _local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h); _local26.endFill(); }; }; backgroundColor = getStyle("borderColor"); }; break; case "dropdown": _local12 = getStyle("dropdownBorderColor"); drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, 5068126, 1); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); if (!isNaN(_local12)){ drawRoundRect(0, 0, (_arg1 + 1), _arg2, {tl:4, tr:0, br:0, bl:4}, _local12, 0.5); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); }; backgroundColor = null; break; case "menuBorder": _local7 = getStyle("borderColor"); drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1); drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0); break; case "comboNonEdit": break; case "controlBar": if ((((_arg1 == 0)) || ((_arg2 == 0)))){ backgroundColor = null; break; }; _local14 = getStyle("footerColors"); _local31 = !((_local14 == null)); _local32 = getStyle("borderAlpha"); if (_local31){ _local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32); _local26.moveTo(0, 0); _local26.lineTo(_arg1, 0); _local26.lineStyle(0, 0, 0); if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){ radius = IStyleClient(parent.parent).getStyle("cornerRadius"); _local32 = IStyleClient(parent.parent).getStyle("borderAlpha"); }; if (isNaN(radius)){ radius = 0; }; if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){ radius = 0; }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {tl:0, tr:0, bl:(radius - 1), br:(radius - 1)}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; }; backgroundColor = null; break; case "applicationControlBar": _local13 = getStyle("fillColors"); _local5 = getStyle("backgroundAlpha"); _local4 = getStyle("highlightAlphas"); _local33 = getStyle("fillAlphas"); _local11 = getStyle("docked"); _local34 = uint(backgroundColor); radius = getStyle("cornerRadius"); if (!radius){ radius = 0; }; drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius); if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {tl:radius, tr:radius, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1))); drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {x:0, y:2, w:_arg1, h:(_arg2 - 2), r:{tl:radius, tr:radius, bl:0, br:0}}); backgroundColor = null; break; default: _local7 = getStyle("borderColor"); _local9 = getStyle("borderThickness"); _local8 = getStyle("borderSides"); _local35 = true; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local36 = Math.max((radius - _local9), 0); _local20 = {x:_local9, y:_local9, w:(_arg1 - (_local9 * 2)), h:(_arg2 - (_local9 * 2)), r:_local36}; if (!bRoundedCorners){ radiusObj = {tl:radius, tr:radius, bl:0, br:0}; _local20.r = {tl:_local36, tr:_local36, bl:0, br:0}; }; if (_local8 != "left top right bottom"){ _local20.r = {tl:_local36, tr:_local36, bl:(bRoundedCorners) ? _local36 : 0, br:(bRoundedCorners) ? _local36 : 0}; radiusObj = {tl:radius, tr:radius, bl:(bRoundedCorners) ? radius : 0, br:(bRoundedCorners) ? radius : 0}; _local8 = _local8.toLowerCase(); if (_local8.indexOf("left") == -1){ _local20.x = 0; _local20.w = (_local20.w + _local9); _local20.r.tl = 0; _local20.r.bl = 0; radiusObj.tl = 0; radiusObj.bl = 0; _local35 = false; }; if (_local8.indexOf("top") == -1){ _local20.y = 0; _local20.h = (_local20.h + _local9); _local20.r.tl = 0; _local20.r.tr = 0; radiusObj.tl = 0; radiusObj.tr = 0; _local35 = false; }; if (_local8.indexOf("right") == -1){ _local20.w = (_local20.w + _local9); _local20.r.tr = 0; _local20.r.br = 0; radiusObj.tr = 0; radiusObj.br = 0; _local35 = false; }; if (_local8.indexOf("bottom") == -1){ _local20.h = (_local20.h + _local9); _local20.r.bl = 0; _local20.r.br = 0; radiusObj.bl = 0; radiusObj.br = 0; _local35 = false; }; }; if ((((radius == 0)) && (_local35))){ drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0); _local26.beginFill(_local7); _local26.drawRect(0, 0, _arg1, _arg2); _local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9))); _local26.endFill(); } else { if (radiusObj){ drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl); drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20); radiusObj.tl = Math.max((radius - _local9), 0); radiusObj.tr = Math.max((radius - _local9), 0); radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; } else { drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius); drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20); radius = Math.max((getStyle("cornerRadius") - _local9), 0); }; }; }; }; } mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{ var _local4:Number; var _local5:Number; var _local6:EdgeMetrics; var _local7:Graphics; var _local8:Number; var _local9:Number; var _local10:Array; var _local11:Number; if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){ _local4 = Number(backgroundColor); _local5 = 1; _local6 = getBackgroundColorMetrics(); _local7 = graphics; if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){ _local5 = 0; _local4 = 0xFFFFFF; } else { _local5 = getStyle(backgroundAlphaName); }; if (((!((radius == 0))) || (backgroundHole))){ _local8 = _local6.bottom; if (radiusObj){ _local9 = (bRoundedCorners) ? radius : 0; radiusObj = {tl:radius, tr:radius, bl:_local9, br:_local9}; drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); } else { drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); }; } else { _local7.beginFill(_local4, _local5); _local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top)); _local7.endFill(); }; }; var _local3:String = getStyle("borderStyle"); if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){ _local10 = getStyle("highlightAlphas"); _local11 = (_local10) ? _local10[0] : 0.3; drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local11, null, GradientType.LINEAR, null, {x:0, y:1, w:_arg1, h:(_arg2 - 1), r:{tl:radius, tr:radius, bl:0, br:0}}); }; } mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{ var _local11:Number; var _local12:Boolean; if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){ return; }; var _local9:Number = getStyle("shadowDistance"); var _local10:String = getStyle("shadowDirection"); if (getStyle("borderStyle") == "applicationControlBar"){ _local12 = getStyle("docked"); _local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10); _local9 = Math.abs(_local9); } else { _local11 = getDropShadowAngle(_local9, _local10); _local9 = (Math.abs(_local9) + 2); }; if (!dropShadow){ dropShadow = new RectangularDropShadow(); }; dropShadow.distance = _local9; dropShadow.angle = _local11; dropShadow.color = getStyle("dropShadowColor"); dropShadow.alpha = 0.4; dropShadow.tlRadius = _arg5; dropShadow.trRadius = _arg6; dropShadow.blRadius = _arg8; dropShadow.brRadius = _arg7; dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4); } mx_internal function getBackgroundColor():Object{ var _local2:Object; var _local1:IUIComponent = (parent as IUIComponent); if (((_local1) && (!(_local1.enabled)))){ _local2 = getStyle("backgroundDisabledColor"); if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){ return (_local2); }; }; return (getStyle("backgroundColor")); } mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:Number = width; var _local8:Number = height; drawDropShadow(0, 0, width, height, 0, 0, 0, 0); var _local9:Graphics = graphics; _local9.beginFill(_arg1); _local9.drawRect(0, 0, _local7, _local8); _local9.drawRect(1, 0, (_local7 - 2), _local8); _local9.endFill(); _local9.beginFill(_arg2); _local9.drawRect(1, 0, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg3); _local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg4); _local9.drawRect(1, 1, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg5); _local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg6); _local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4)); _local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4)); _local9.endFill(); } mx_internal function getBackgroundColorMetrics():EdgeMetrics{ return (borderMetrics); } mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{ if (_arg2 == "left"){ return (((_arg1 >= 0)) ? 135 : 225); //unresolved jump }; if (_arg2 == "right"){ return (((_arg1 >= 0)) ? 45 : 315); //unresolved jump }; return (((_arg1 >= 0)) ? 90 : 270); } override public function get borderMetrics():EdgeMetrics{ var _local1:Number; var _local3:String; if (_borderMetrics){ return (_borderMetrics); }; var _local2:String = getStyle("borderStyle"); if ((((_local2 == "default")) || ((_local2 == "alert")))){ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _borderMetrics = new EdgeMetrics(0, 0, 0, 0); } else { return (EdgeMetrics.EMPTY); }; } else { if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){ _borderMetrics = new EdgeMetrics(1, 1, 1, 1); } else { if (_local2 == "solid"){ _local1 = getStyle("borderThickness"); if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); _local3 = getStyle("borderSides"); if (_local3 != "left top right bottom"){ if (_local3.indexOf("left") == -1){ _borderMetrics.left = 0; }; if (_local3.indexOf("top") == -1){ _borderMetrics.top = 0; }; if (_local3.indexOf("right") == -1){ _borderMetrics.right = 0; }; if (_local3.indexOf("bottom") == -1){ _borderMetrics.bottom = 0; }; }; } else { _local1 = BORDER_WIDTHS[_local2]; if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); }; }; }; return (_borderMetrics); } } }//package mx.skins.halo
Section 52
//HaloFocusRect (mx.skins.halo.HaloFocusRect) package mx.skins.halo { import flash.display.*; import mx.styles.*; import mx.skins.*; import mx.utils.*; public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient { private var _focusColor:Number; mx_internal static const VERSION:String = "3.3.0.4852"; public function get inheritingStyles():Object{ return (styleName.inheritingStyles); } public function set inheritingStyles(_arg1:Object):void{ } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ } public function registerEffects(_arg1:Array):void{ } public function regenerateStyleCache(_arg1:Boolean):void{ } public function get styleDeclaration():CSSStyleDeclaration{ return (CSSStyleDeclaration(styleName)); } public function getClassStyleDeclarations():Array{ return ([]); } public function get className():String{ return ("HaloFocusRect"); } public function clearStyle(_arg1:String):void{ if (_arg1 == "focusColor"){ _focusColor = NaN; }; } public function setStyle(_arg1:String, _arg2):void{ if (_arg1 == "focusColor"){ _focusColor = _arg2; }; } public function set nonInheritingStyles(_arg1:Object):void{ } public function get nonInheritingStyles():Object{ return (styleName.nonInheritingStyles); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; super.updateDisplayList(_arg1, _arg2); var _local3:String = getStyle("focusBlendMode"); var _local4:Number = getStyle("focusAlpha"); var _local5:Number = getStyle("focusColor"); var _local6:Number = getStyle("cornerRadius"); var _local7:Number = getStyle("focusThickness"); var _local8:String = getStyle("focusRoundedCorners"); var _local9:Number = getStyle("themeColor"); var _local10:Number = _local5; if (isNaN(_local10)){ _local10 = _local9; }; var _local11:Graphics = graphics; _local11.clear(); if (_local3){ blendMode = _local3; }; if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){ _local12 = 0; _local13 = 0; _local14 = 0; _local15 = 0; _local16 = (_local6 + _local7); if (_local8.indexOf("tl") >= 0){ _local12 = _local16; }; if (_local8.indexOf("tr") >= 0){ _local14 = _local16; }; if (_local8.indexOf("bl") >= 0){ _local13 = _local16; }; if (_local8.indexOf("br") >= 0){ _local15 = _local16; }; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); _local16 = (_local6 + (_local7 / 2)); _local12 = (_local12) ? _local16 : 0; _local14 = (_local14) ? _local16 : 0; _local13 = (_local13) ? _local16 : 0; _local15 = (_local15) ? _local16 : 0; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); } else { _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2); _local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2); _local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); }; } override public function getStyle(_arg1:String){ return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1)); } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ } } }//package mx.skins.halo
Section 53
//ListDropIndicator (mx.skins.halo.ListDropIndicator) package mx.skins.halo { import flash.display.*; import mx.skins.*; public class ListDropIndicator extends ProgrammaticSkin { public var direction:String;// = "horizontal" mx_internal static const VERSION:String = "3.3.0.4852"; override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ super.updateDisplayList(_arg1, _arg2); var _local3:Graphics = graphics; _local3.clear(); _local3.lineStyle(2, 2831164); if (direction == "horizontal"){ _local3.moveTo(0, 0); _local3.lineTo(_arg1, 0); } else { _local3.moveTo(0, 0); _local3.lineTo(0, _arg2); }; } } }//package mx.skins.halo
Section 54
//Border (mx.skins.Border) package mx.skins { import mx.core.*; public class Border extends ProgrammaticSkin implements IBorder { mx_internal static const VERSION:String = "3.3.0.4852"; public function get borderMetrics():EdgeMetrics{ return (EdgeMetrics.EMPTY); } } }//package mx.skins
Section 55
//ProgrammaticSkin (mx.skins.ProgrammaticSkin) package mx.skins { import mx.core.*; import flash.display.*; import mx.styles.*; import flash.geom.*; import mx.managers.*; import mx.utils.*; public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin { private var _initialized:Boolean;// = false private var _height:Number; private var invalidateDisplayListFlag:Boolean;// = false private var _styleName:IStyleClient; private var _nestLevel:int;// = 0 private var _processedDescriptors:Boolean;// = false private var _updateCompletePendingFlag:Boolean;// = true private var _width:Number; mx_internal static const VERSION:String = "3.3.0.4852"; private static var tempMatrix:Matrix = new Matrix(); public function ProgrammaticSkin(){ _width = measuredWidth; _height = measuredHeight; } public function getStyle(_arg1:String){ return ((_styleName) ? _styleName.getStyle(_arg1) : null); } protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ } public function get nestLevel():int{ return (_nestLevel); } public function set nestLevel(_arg1:int):void{ _nestLevel = _arg1; invalidateDisplayList(); } override public function get height():Number{ return (_height); } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90)); } public function validateSize(_arg1:Boolean=false):void{ } public function invalidateDisplayList():void{ if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){ invalidateDisplayListFlag = true; UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0)); } override public function set height(_arg1:Number):void{ _height = _arg1; invalidateDisplayList(); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; } public function validateDisplayList():void{ invalidateDisplayListFlag = false; updateDisplayList(width, height); } public function get measuredWidth():Number{ return (0); } override public function set width(_arg1:Number):void{ _width = _arg1; invalidateDisplayList(); } public function get measuredHeight():Number{ return (0); } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; } protected function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Matrix=null, _arg9:String="linear", _arg10:Array=null, _arg11:Object=null):void{ var _local13:Number; var _local14:Array; var _local15:Object; var _local12:Graphics = graphics; if ((((_arg3 == 0)) || ((_arg4 == 0)))){ return; }; if (_arg6 !== null){ if ((_arg6 is uint)){ _local12.beginFill(uint(_arg6), Number(_arg7)); } else { if ((_arg6 is Array)){ _local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7]; if (!_arg10){ _arg10 = [0, 0xFF]; }; _local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8); }; }; }; if (!_arg5){ _local12.drawRect(_arg1, _arg2, _arg3, _arg4); } else { if ((_arg5 is Number)){ _local13 = (Number(_arg5) * 2); _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br); }; }; if (_arg11){ _local15 = _arg11.r; if ((_local15 is Number)){ _local13 = (Number(_local15) * 2); _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br); }; }; if (_arg6 !== null){ _local12.endFill(); }; } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } public function set styleName(_arg1:Object):void{ if (_styleName != _arg1){ _styleName = (_arg1 as IStyleClient); invalidateDisplayList(); }; } public function setActualSize(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_width != _arg1){ _width = _arg1; _local3 = true; }; if (_height != _arg2){ _height = _arg2; _local3 = true; }; if (_local3){ invalidateDisplayList(); }; } public function styleChanged(_arg1:String):void{ invalidateDisplayList(); } override public function get width():Number{ return (_width); } public function invalidateProperties():void{ } public function get initialized():Boolean{ return (_initialized); } protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{ tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2); return (tempMatrix); } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get styleName():Object{ return (_styleName); } public function validateNow():void{ if (invalidateDisplayListFlag){ validateDisplayList(); }; } public function invalidateSize():void{ } public function validateProperties():void{ } } }//package mx.skins
Section 56
//RectangularBorder (mx.skins.RectangularBorder) package mx.skins { import flash.events.*; import mx.core.*; import flash.display.*; import flash.utils.*; import mx.styles.*; import flash.system.*; import flash.geom.*; import mx.resources.*; import flash.net.*; public class RectangularBorder extends Border implements IRectangularBorder { private var backgroundImage:DisplayObject; private var backgroundImageHeight:Number; private var _backgroundImageBounds:Rectangle; private var backgroundImageStyle:Object; private var backgroundImageWidth:Number; private var resourceManager:IResourceManager; mx_internal static const VERSION:String = "3.3.0.4852"; public function RectangularBorder(){ resourceManager = ResourceManager.getInstance(); super(); addEventListener(Event.REMOVED, removedHandler); } public function layoutBackgroundImage():void{ var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; var _local14:Number; var _local15:Graphics; var _local1:DisplayObject = parent; var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics; var _local3 = !((getStyle("backgroundAttachment") == "fixed")); if (_backgroundImageBounds){ _local4 = _backgroundImageBounds.width; _local5 = _backgroundImageBounds.height; } else { _local4 = ((width - _local2.left) - _local2.right); _local5 = ((height - _local2.top) - _local2.bottom); }; var _local6:Number = getBackgroundSize(); if (isNaN(_local6)){ _local7 = 1; _local8 = 1; } else { _local14 = (_local6 * 0.01); _local7 = ((_local14 * _local4) / backgroundImageWidth); _local8 = ((_local14 * _local5) / backgroundImageHeight); }; backgroundImage.scaleX = _local7; backgroundImage.scaleY = _local8; var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7)))); var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8)))); backgroundImage.x = _local2.left; backgroundImage.y = _local2.top; var _local11:Shape = Shape(backgroundImage.mask); _local11.x = _local2.left; _local11.y = _local2.top; if (((_local3) && ((_local1 is IContainer)))){ _local9 = (_local9 - IContainer(_local1).horizontalScrollPosition); _local10 = (_local10 - IContainer(_local1).verticalScrollPosition); }; backgroundImage.alpha = getStyle("backgroundAlpha"); backgroundImage.x = (backgroundImage.x + _local9); backgroundImage.y = (backgroundImage.y + _local10); var _local12:Number = ((width - _local2.left) - _local2.right); var _local13:Number = ((height - _local2.top) - _local2.bottom); if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){ _local15 = _local11.graphics; _local15.clear(); _local15.beginFill(0xFFFFFF); _local15.drawRect(0, 0, _local12, _local13); _local15.endFill(); }; } public function set backgroundImageBounds(_arg1:Rectangle):void{ _backgroundImageBounds = _arg1; invalidateDisplayList(); } private function getBackgroundSize():Number{ var _local3:int; var _local1:Number = NaN; var _local2:Object = getStyle("backgroundSize"); if (((_local2) && ((_local2 is String)))){ _local3 = _local2.indexOf("%"); if (_local3 != -1){ _local1 = Number(_local2.substr(0, _local3)); }; }; return (_local1); } private function removedHandler(_arg1:Event):void{ var _local2:IChildList; if (backgroundImage){ _local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); _local2.removeChild(backgroundImage.mask); _local2.removeChild(backgroundImage); backgroundImage = null; }; } private function initBackgroundImage(_arg1:DisplayObject):void{ backgroundImage = _arg1; if ((_arg1 is Loader)){ backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width; backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height; } else { backgroundImageWidth = backgroundImage.width; backgroundImageHeight = backgroundImage.height; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleName = styleName; }; }; var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); var _local3:Shape = new FlexShape(); _local3.name = "backgroundMask"; _local3.x = 0; _local3.y = 0; _local2.addChild(_local3); var _local4:int = _local2.getChildIndex(this); _local2.addChildAt(backgroundImage, (_local4 + 1)); backgroundImage.mask = _local3; } public function get backgroundImageBounds():Rectangle{ return (_backgroundImageBounds); } public function get hasBackgroundImage():Boolean{ return (!((backgroundImage == null))); } private function completeEventHandler(_arg1:Event):void{ if (!parent){ return; }; var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); layoutBackgroundImage(); dispatchEvent(_arg1.clone()); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var message:String; var unscaledWidth = _arg1; var unscaledHeight = _arg2; if (!parent){ return; }; var newStyle:Object = getStyle("backgroundImage"); if (newStyle != backgroundImageStyle){ removedHandler(null); backgroundImageStyle = newStyle; if (((newStyle) && ((newStyle as Class)))){ cls = Class(newStyle); initBackgroundImage(new (cls)); } else { if (((newStyle) && ((newStyle is String)))){ try { cls = Class(getDefinitionByName(String(newStyle))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new FlexLoader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler); loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(newStyle)), loaderContext); }; } else { if (newStyle){ message = resourceManager.getString("skins", "notLoaded", [newStyle]); throw (new Error(message)); }; }; }; }; if (backgroundImage){ layoutBackgroundImage(); }; } private function errorEventHandler(_arg1:Event):void{ } } }//package mx.skins
Section 57
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration) package mx.styles { import flash.events.*; import mx.core.*; import flash.display.*; import flash.utils.*; import mx.managers.*; public class CSSStyleDeclaration extends EventDispatcher { mx_internal var effects:Array; protected var overrides:Object; public var defaultFactory:Function; public var factory:Function; mx_internal var selectorRefCount:int;// = 0 private var styleManager:IStyleManager2; private var clones:Dictionary; mx_internal static const VERSION:String = "3.3.0.4852"; private static const NOT_A_COLOR:uint = 4294967295; private static const FILTERMAP_PROP:String = "__reserved__filterMap"; public function CSSStyleDeclaration(_arg1:String=null){ clones = new Dictionary(true); super(); if (_arg1){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); styleManager.setStyleDeclaration(_arg1, this, false); }; } mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{ var p:String; var emptyObjectFactory:Function; var filteredChain:Object; var filterObjectFactory:Function; var i:String; var chain = _arg1; var target = _arg2; var filterMap = _arg3; var nodeAddedToChain:Boolean; var originalChain:Object = chain; if (filterMap){ chain = {}; }; if (defaultFactory != null){ defaultFactory.prototype = chain; chain = new defaultFactory(); nodeAddedToChain = true; }; if (factory != null){ factory.prototype = chain; chain = new factory(); nodeAddedToChain = true; }; if (overrides){ if ((((defaultFactory == null)) && ((factory == null)))){ emptyObjectFactory = function ():void{ }; emptyObjectFactory.prototype = chain; chain = new (emptyObjectFactory); nodeAddedToChain = true; }; for (p in overrides) { if (overrides[p] === undefined){ delete chain[p]; } else { chain[p] = overrides[p]; }; }; }; if (filterMap){ if (nodeAddedToChain){ filteredChain = {}; filterObjectFactory = function ():void{ }; filterObjectFactory.prototype = originalChain; filteredChain = new (filterObjectFactory); for (i in chain) { if (filterMap[i] != null){ filteredChain[filterMap[i]] = chain[i]; }; }; chain = filteredChain; chain[FILTERMAP_PROP] = filterMap; } else { chain = originalChain; }; }; if (nodeAddedToChain){ clones[chain] = 1; }; return (chain); } public function getStyle(_arg1:String){ var _local2:*; var _local3:*; if (overrides){ if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){ return (undefined); }; _local3 = overrides[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (factory != null){ factory.prototype = {}; _local2 = new factory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (defaultFactory != null){ defaultFactory.prototype = {}; _local2 = new defaultFactory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; return (undefined); } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function setStyle(_arg1:String, _arg2):void{ var _local7:int; var _local8:Object; var _local3:Object = getStyle(_arg1); var _local4:Boolean; if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){ _local4 = true; }; if (_arg2 !== undefined){ setStyle(_arg1, _arg2); } else { if (_arg2 == _local3){ return; }; setStyle(_arg1, _arg2); }; var _local5:Array = SystemManagerGlobals.topLevelSystemManagers; var _local6:int = _local5.length; if (_local4){ _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.regenerateStyleCache(true); _local7++; }; }; _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.notifyStyleChangeInChildren(_arg1, true); _local7++; }; } private function clearStyleAttr(_arg1:String):void{ var _local2:*; if (!overrides){ overrides = {}; }; overrides[_arg1] = undefined; for (_local2 in clones) { delete _local2[_arg1]; }; } mx_internal function createProtoChainRoot():Object{ var _local1:Object = {}; if (defaultFactory != null){ defaultFactory.prototype = _local1; _local1 = new defaultFactory(); }; if (factory != null){ factory.prototype = _local1; _local1 = new factory(); }; clones[_local1] = 1; return (_local1); } mx_internal function clearOverride(_arg1:String):void{ if (((overrides) && (overrides[_arg1]))){ delete overrides[_arg1]; }; } mx_internal function setStyle(_arg1:String, _arg2):void{ var _local3:Object; var _local4:*; var _local5:Number; var _local6:Object; if (_arg2 === undefined){ clearStyleAttr(_arg1); return; }; if ((_arg2 is String)){ if (!styleManager){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); }; _local5 = styleManager.getColorName(_arg2); if (_local5 != NOT_A_COLOR){ _arg2 = _local5; }; }; if (defaultFactory != null){ _local3 = new defaultFactory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if (factory != null){ _local3 = new factory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if ((((defaultFactory == null)) && ((factory == null)))){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; }; for (_local4 in clones) { _local6 = _local4[FILTERMAP_PROP]; if (_local6){ if (_local6[_arg1] != null){ _local4[_local6[_arg1]] = _arg2; }; } else { _local4[_arg1] = _arg2; }; }; } } }//package mx.styles
Section 58
//ISimpleStyleClient (mx.styles.ISimpleStyleClient) package mx.styles { public interface ISimpleStyleClient { function set styleName(_arg1:Object):void; function styleChanged(_arg1:String):void; function get styleName():Object; } }//package mx.styles
Section 59
//IStyleClient (mx.styles.IStyleClient) package mx.styles { public interface IStyleClient extends ISimpleStyleClient { function regenerateStyleCache(_arg1:Boolean):void; function get className():String; function clearStyle(_arg1:String):void; function getClassStyleDeclarations():Array; function get inheritingStyles():Object; function set nonInheritingStyles(_arg1:Object):void; function setStyle(_arg1:String, _arg2):void; function get styleDeclaration():CSSStyleDeclaration; function set styleDeclaration(_arg1:CSSStyleDeclaration):void; function get nonInheritingStyles():Object; function set inheritingStyles(_arg1:Object):void; function getStyle(_arg1:String); function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void; function registerEffects(_arg1:Array):void; } }//package mx.styles
Section 60
//IStyleManager (mx.styles.IStyleManager) package mx.styles { import flash.events.*; public interface IStyleManager { function isColorName(_arg1:String):Boolean; function registerParentDisplayListInvalidatingStyle(_arg1:String):void; function registerInheritingStyle(_arg1:String):void; function set stylesRoot(_arg1:Object):void; function get typeSelectorCache():Object; function styleDeclarationsChanged():void; function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void; function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean; function isSizeInvalidatingStyle(_arg1:String):Boolean; function get inheritingStyles():Object; function isValidStyleValue(_arg1):Boolean; function isParentSizeInvalidatingStyle(_arg1:String):Boolean; function getColorName(_arg1:Object):uint; function set typeSelectorCache(_arg1:Object):void; function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void; function getColorNames(_arg1:Array):void; function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher; function isInheritingStyle(_arg1:String):Boolean; function set inheritingStyles(_arg1:Object):void; function get stylesRoot():Object; function initProtoChainRoots():void; function registerColorName(_arg1:String, _arg2:uint):void; function registerParentSizeInvalidatingStyle(_arg1:String):void; function registerSizeInvalidatingStyle(_arg1:String):void; function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void; function isInheritingTextFormatStyle(_arg1:String):Boolean; function getStyleDeclaration(_arg1:String):CSSStyleDeclaration; } }//package mx.styles
Section 61
//IStyleManager2 (mx.styles.IStyleManager2) package mx.styles { import flash.events.*; import flash.system.*; public interface IStyleManager2 extends IStyleManager { function get selectors():Array; function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; } }//package mx.styles
Section 62
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 63
//StyleManager (mx.styles.StyleManager) package mx.styles { import flash.events.*; import mx.core.*; import flash.system.*; public class StyleManager { mx_internal static const VERSION:String = "3.3.0.4852"; public static const NOT_A_COLOR:uint = 4294967295; private static var _impl:IStyleManager2; private static var implClassDependency:StyleManagerImpl; public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentSizeInvalidatingStyle(_arg1)); } public static function registerInheritingStyle(_arg1:String):void{ impl.registerInheritingStyle(_arg1); } mx_internal static function set stylesRoot(_arg1:Object):void{ impl.stylesRoot = _arg1; } mx_internal static function get inheritingStyles():Object{ return (impl.inheritingStyles); } mx_internal static function styleDeclarationsChanged():void{ impl.styleDeclarationsChanged(); } public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ impl.setStyleDeclaration(_arg1, _arg2, _arg3); } public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ impl.registerParentDisplayListInvalidatingStyle(_arg1); } mx_internal static function get typeSelectorCache():Object{ return (impl.typeSelectorCache); } mx_internal static function set inheritingStyles(_arg1:Object):void{ impl.inheritingStyles = _arg1; } public static function isColorName(_arg1:String):Boolean{ return (impl.isColorName(_arg1)); } public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentDisplayListInvalidatingStyle(_arg1)); } public static function isSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isSizeInvalidatingStyle(_arg1)); } public static function getColorName(_arg1:Object):uint{ return (impl.getColorName(_arg1)); } mx_internal static function set typeSelectorCache(_arg1:Object):void{ impl.typeSelectorCache = _arg1; } public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ impl.unloadStyleDeclarations(_arg1, _arg2); } public static function getColorNames(_arg1:Array):void{ impl.getColorNames(_arg1); } public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{ return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5)); } private static function get impl():IStyleManager2{ if (!_impl){ _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2")); }; return (_impl); } public static function isValidStyleValue(_arg1):Boolean{ return (impl.isValidStyleValue(_arg1)); } mx_internal static function get stylesRoot():Object{ return (impl.stylesRoot); } public static function isInheritingStyle(_arg1:String):Boolean{ return (impl.isInheritingStyle(_arg1)); } mx_internal static function initProtoChainRoots():void{ impl.initProtoChainRoots(); } public static function registerParentSizeInvalidatingStyle(_arg1:String):void{ impl.registerParentSizeInvalidatingStyle(_arg1); } public static function get selectors():Array{ return (impl.selectors); } public static function registerSizeInvalidatingStyle(_arg1:String):void{ impl.registerSizeInvalidatingStyle(_arg1); } public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ impl.clearStyleDeclaration(_arg1, _arg2); } public static function registerColorName(_arg1:String, _arg2:uint):void{ impl.registerColorName(_arg1, _arg2); } public static function isInheritingTextFormatStyle(_arg1:String):Boolean{ return (impl.isInheritingTextFormatStyle(_arg1)); } public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ return (impl.getStyleDeclaration(_arg1)); } } }//package mx.styles
Section 64
//StyleManagerImpl (mx.styles.StyleManagerImpl) package mx.styles { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.resources.*; import mx.managers.*; public class StyleManagerImpl implements IStyleManager2 { private var _stylesRoot:Object; private var _selectors:Object; private var styleModules:Object; private var _inheritingStyles:Object; private var resourceManager:IResourceManager; private var _typeSelectorCache:Object; mx_internal static const VERSION:String = "3.3.0.4852"; private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193}; private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true}; private static var instance:IStyleManager2; private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true}; public function StyleManagerImpl(){ _selectors = {}; styleModules = {}; resourceManager = ResourceManager.getInstance(); _inheritingStyles = {}; _typeSelectorCache = {}; super(); } public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ _arg2.selectorRefCount++; _selectors[_arg1] = _arg2; typeSelectorCache = {}; if (_arg3){ styleDeclarationsChanged(); }; } public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ parentDisplayListInvalidatingStyles[_arg1] = true; } public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ var _local2:int; if (_arg1.charAt(0) != "."){ _local2 = _arg1.lastIndexOf("."); if (_local2 != -1){ _arg1 = _arg1.substr((_local2 + 1)); }; }; return (_selectors[_arg1]); } public function set typeSelectorCache(_arg1:Object):void{ _typeSelectorCache = _arg1; } public function isColorName(_arg1:String):Boolean{ return (!((colorNames[_arg1.toLowerCase()] === undefined))); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getColorNames(_arg1:Array):void{ var _local4:uint; if (!_arg1){ return; }; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){ _local4 = getColorName(_arg1[_local3]); if (_local4 != StyleManager.NOT_A_COLOR){ _arg1[_local3] = _local4; }; }; _local3++; }; } public function isInheritingTextFormatStyle(_arg1:String):Boolean{ return ((inheritingTextFormatStyles[_arg1] == true)); } public function registerParentSizeInvalidatingStyle(_arg1:String):void{ parentSizeInvalidatingStyles[_arg1] = true; } public function registerColorName(_arg1:String, _arg2:uint):void{ colorNames[_arg1.toLowerCase()] = _arg2; } public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return ((parentSizeInvalidatingStyles[_arg1] == true)); } public function registerInheritingStyle(_arg1:String):void{ inheritingStyles[_arg1] = true; } public function set stylesRoot(_arg1:Object):void{ _stylesRoot = _arg1; } public function get typeSelectorCache():Object{ return (_typeSelectorCache); } public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return ((parentDisplayListInvalidatingStyles[_arg1] == true)); } public function isSizeInvalidatingStyle(_arg1:String):Boolean{ return ((sizeInvalidatingStyles[_arg1] == true)); } public function styleDeclarationsChanged():void{ var _local4:Object; var _local1:Array = SystemManagerGlobals.topLevelSystemManagers; var _local2:int = _local1.length; var _local3:int; while (_local3 < _local2) { _local4 = _local1[_local3]; _local4.regenerateStyleCache(true); _local4.notifyStyleChangeInChildren(null, true); _local3++; }; } public function isValidStyleValue(_arg1):Boolean{ return (!((_arg1 === undefined))); } public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{ return (loadStyleDeclarations2(_arg1, _arg2)); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ var _local4:IModuleInfo; var _local3:StyleModuleInfo = styleModules[_arg1]; if (_local3){ _local3.styleModule.unload(); _local4 = _local3.module; _local4.unload(); _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler); _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler); styleModules[_arg1] = null; }; if (_arg2){ styleDeclarationsChanged(); }; } public function getColorName(_arg1:Object):uint{ var _local2:Number; var _local3:*; if ((_arg1 is String)){ if (_arg1.charAt(0) == "#"){ _local2 = Number(("0x" + _arg1.slice(1))); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){ _local2 = Number(_arg1); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; _local3 = colorNames[_arg1.toLowerCase()]; if (_local3 === undefined){ return (StyleManager.NOT_A_COLOR); }; return (uint(_local3)); }; return (uint(_arg1)); } public function isInheritingStyle(_arg1:String):Boolean{ return ((inheritingStyles[_arg1] == true)); } public function get stylesRoot():Object{ return (_stylesRoot); } public function initProtoChainRoots():void{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ delete _inheritingStyles["textDecoration"]; delete _inheritingStyles["leading"]; }; if (!stylesRoot){ stylesRoot = _selectors["global"].addStyleToProtoChain({}, null); }; } public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var module:IModuleInfo; var styleEventDispatcher:StyleEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var update = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; module = ModuleManager.getModule(url); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create()); styleModules[_arg1.module.url].styleModule = _local2; if (update){ styleDeclarationsChanged(); }; }; module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); styleEventDispatcher = new StyleEventDispatcher(module); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:StyleEvent; var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]); if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){ _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; styleEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); module.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (styleEventDispatcher); } public function registerSizeInvalidatingStyle(_arg1:String):void{ sizeInvalidatingStyles[_arg1] = true; } public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1); if (((_local3) && ((_local3.selectorRefCount > 0)))){ _local3.selectorRefCount--; }; delete _selectors[_arg1]; if (_arg2){ styleDeclarationsChanged(); }; } public function get selectors():Array{ var _local2:String; var _local1:Array = []; for (_local2 in _selectors) { _local1.push(_local2); }; return (_local1); } public static function getInstance():IStyleManager2{ if (!instance){ instance = new (StyleManagerImpl); }; return (instance); } } }//package mx.styles import flash.events.*; import mx.modules.*; import mx.events.*; class StyleEventDispatcher extends EventDispatcher { private function StyleEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } } class StyleModuleInfo { public var errorHandler:Function; public var readyHandler:Function; public var module:IModuleInfo; public var styleModule:IStyleModule; private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.module = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } }
Section 65
//ColorUtil (mx.utils.ColorUtil) package mx.utils { public class ColorUtil { mx_internal static const VERSION:String = "3.3.0.4852"; public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{ var _local3:Number; var _local4:Number; var _local5:Number; if (_arg2 == 0){ return (_arg1); }; if (_arg2 < 0){ _arg2 = ((100 + _arg2) / 100); _local3 = (((_arg1 >> 16) & 0xFF) * _arg2); _local4 = (((_arg1 >> 8) & 0xFF) * _arg2); _local5 = ((_arg1 & 0xFF) * _arg2); } else { _arg2 = (_arg2 / 100); _local3 = ((_arg1 >> 16) & 0xFF); _local4 = ((_arg1 >> 8) & 0xFF); _local5 = (_arg1 & 0xFF); _local3 = (_local3 + ((0xFF - _local3) * _arg2)); _local4 = (_local4 + ((0xFF - _local4) * _arg2)); _local5 = (_local5 + ((0xFF - _local5) * _arg2)); _local3 = Math.min(_local3, 0xFF); _local4 = Math.min(_local4, 0xFF); _local5 = Math.min(_local5, 0xFF); }; return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{ var _local3:Number = ((_arg1 >> 16) & 0xFF); var _local4:Number = ((_arg1 >> 8) & 0xFF); var _local5:Number = (_arg1 & 0xFF); var _local6:Number = ((_arg2 >> 16) & 0xFF); var _local7:Number = ((_arg2 >> 8) & 0xFF); var _local8:Number = (_arg2 & 0xFF); return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF))); } public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{ var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0); var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0); var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0); return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } } }//package mx.utils
Section 66
//GraphicsUtil (mx.utils.GraphicsUtil) package mx.utils { import flash.display.*; public class GraphicsUtil { mx_internal static const VERSION:String = "3.3.0.4852"; public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:Number = (_arg2 + _arg4); var _local11:Number = (_arg3 + _arg5); var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2); _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12; _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12; _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12; _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12; var _local13:Number = (_arg9 * 0.292893218813453); var _local14:Number = (_arg9 * 0.585786437626905); _arg1.moveTo(_local10, (_local11 - _arg9)); _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13)); _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11); _local13 = (_arg8 * 0.292893218813453); _local14 = (_arg8 * 0.585786437626905); _arg1.lineTo((_arg2 + _arg8), _local11); _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13)); _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8)); _local13 = (_arg6 * 0.292893218813453); _local14 = (_arg6 * 0.585786437626905); _arg1.lineTo(_arg2, (_arg3 + _arg6)); _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13)); _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3); _local13 = (_arg7 * 0.292893218813453); _local14 = (_arg7 * 0.585786437626905); _arg1.lineTo((_local10 - _arg7), _arg3); _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13)); _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7)); _arg1.lineTo(_local10, (_local11 - _arg9)); } } }//package mx.utils
Section 67
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.3.0.4852"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var result:String; var o:DisplayObject; var s:String; var indices:Array; var displayObject = _arg1; try { o = displayObject; while (o != null) { if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){ break; }; s = o.name; if ((o is IRepeaterClient)){ indices = IRepeaterClient(o).instanceIndices; if (indices){ s = (s + (("[" + indices.join("][")) + "]")); }; }; result = ((result == null)) ? s : ((s + ".") + result); o = o.parent; }; } catch(e:SecurityError) { }; return (result); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 68
//StringUtil (mx.utils.StringUtil) package mx.utils { public class StringUtil { mx_internal static const VERSION:String = "3.3.0.4852"; public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; while (isWhitespace(_arg1.charAt(_local2))) { _local2++; }; var _local3:int = (_arg1.length - 1); while (isWhitespace(_arg1.charAt(_local3))) { _local3--; }; if (_local3 >= _local2){ return (_arg1.slice(_local2, (_local3 + 1))); }; return (""); } public static function isWhitespace(_arg1:String):Boolean{ switch (_arg1){ case " ": case "\t": case "\r": case "\n": case "\f": return (true); default: return (false); }; } public static function substitute(_arg1:String, ... _args):String{ var _local4:Array; if (_arg1 == null){ return (""); }; var _local3:uint = _args.length; if ((((_local3 == 1)) && ((_args[0] is Array)))){ _local4 = (_args[0] as Array); _local3 = _local4.length; } else { _local4 = _args; }; var _local5:int; while (_local5 < _local3) { _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]); _local5++; }; return (_arg1); } public static function trimArrayElements(_arg1:String, _arg2:String):String{ var _local3:Array; var _local4:int; var _local5:int; if (((!((_arg1 == ""))) && (!((_arg1 == null))))){ _local3 = _arg1.split(_arg2); _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local3[_local5] = StringUtil.trim(_local3[_local5]); _local5++; }; if (_local4 > 0){ _arg1 = _local3.join(_arg2); }; }; return (_arg1); } } }//package mx.utils
Section 69
//_activeButtonStyleStyle (_activeButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 70
//_activeTabStyleStyle (_activeTabStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeTabStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeTabStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 71
//_alertButtonStyleStyle (_alertButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _alertButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".alertButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 734012; }; }; } } }//package
Section 72
//_comboDropdownStyle (_comboDropdownStyle) package { import mx.core.*; import mx.styles.*; public class _comboDropdownStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboDropdown", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.shadowDirection = "center"; this.fontWeight = "normal"; this.dropShadowEnabled = true; this.leading = 0; this.backgroundColor = 0xFFFFFF; this.shadowDistance = 1; this.cornerRadius = 0; this.borderThickness = 0; this.paddingLeft = 5; this.paddingRight = 5; }; }; } } }//package
Section 73
//_dataGridStylesStyle (_dataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _dataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 74
//_dateFieldPopupStyle (_dateFieldPopupStyle) package { import mx.core.*; import mx.styles.*; public class _dateFieldPopupStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dateFieldPopup", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.borderThickness = 0; }; }; } } }//package
Section 75
//_errorTipStyle (_errorTipStyle) package { import mx.core.*; import mx.styles.*; public class _errorTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".errorTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.borderStyle = "errorTipRight"; this.paddingTop = 4; this.borderColor = 13510953; this.color = 0xFFFFFF; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 76
//_globalStyle (_globalStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _globalStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("global", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fillColor = 0xFFFFFF; this.kerning = false; this.iconColor = 0x111111; this.textRollOverColor = 2831164; this.horizontalAlign = "left"; this.shadowCapColor = 14015965; this.backgroundAlpha = 1; this.filled = true; this.textDecoration = "none"; this.roundedBottomCorners = true; this.fontThickness = 0; this.focusBlendMode = "normal"; this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE]; this.horizontalGap = 8; this.borderCapColor = 9542041; this.buttonColor = 7305079; this.indentation = 17; this.selectionDisabledColor = 0xDDDDDD; this.closeDuration = 250; this.embedFonts = false; this.paddingTop = 0; this.letterSpacing = 0; this.focusAlpha = 0.4; this.bevel = true; this.fontSize = 10; this.shadowColor = 0xEEEEEE; this.borderAlpha = 1; this.paddingLeft = 0; this.fontWeight = "normal"; this.indicatorGap = 14; this.focusSkin = HaloFocusRect; this.dropShadowEnabled = false; this.leading = 2; this.borderSkin = HaloBorder; this.fontSharpness = 0; this.modalTransparencyDuration = 100; this.borderThickness = 1; this.backgroundSize = "auto"; this.borderStyle = "inset"; this.borderColor = 12040892; this.fontAntiAliasType = "advanced"; this.errorColor = 0xFF0000; this.shadowDistance = 2; this.horizontalGridLineColor = 0xF7F7F7; this.stroked = false; this.modalTransparencyColor = 0xDDDDDD; this.cornerRadius = 0; this.verticalAlign = "top"; this.textIndent = 0; this.fillAlphas = [0.6, 0.4, 0.75, 0.65]; this.verticalGridLineColor = 14015965; this.themeColor = 40447; this.version = "3.0.0"; this.shadowDirection = "center"; this.modalTransparency = 0.5; this.repeatInterval = 35; this.openDuration = 250; this.textAlign = "left"; this.fontFamily = "Verdana"; this.textSelectedColor = 2831164; this.paddingBottom = 0; this.strokeWidth = 1; this.fontGridFitType = "pixel"; this.horizontalGridLines = false; this.useRollOver = true; this.verticalGridLines = true; this.repeatDelay = 500; this.fontStyle = "normal"; this.dropShadowColor = 0; this.focusThickness = 2; this.verticalGap = 6; this.disabledColor = 11187123; this.paddingRight = 0; this.focusRoundedCorners = "tl tr bl br"; this.borderSides = "left top right bottom"; this.disabledIconColor = 0x999999; this.modalTransparencyBlur = 3; this.color = 734012; this.selectionDuration = 250; this.highlightAlphas = [0.3, 0]; }; }; } } }//package
Section 77
//_headerDateTextStyle (_headerDateTextStyle) package { import mx.core.*; import mx.styles.*; public class _headerDateTextStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDateText", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 78
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle) package { import mx.core.*; import mx.styles.*; public class _headerDragProxyStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 79
//_linkButtonStyleStyle (_linkButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _linkButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".linkButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 2; }; }; } } }//package
Section 80
//_MenuStyle (_MenuStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _MenuStyle { private static var _embed_css_Assets_swf_MenuRadioDisabled_1128727227:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1128727227; private static var _embed_css_Assets_swf_MenuBranchEnabled_310232707:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_310232707; private static var _embed_css_Assets_swf_MenuBranchDisabled_1462790030:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1462790030; private static var _embed_css_Assets_swf_MenuCheckDisabled_17866362:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_17866362; private static var _embed_css_Assets_swf_MenuRadioEnabled_557814778:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_557814778; private static var _embed_css_Assets_swf_MenuSeparator_420729159:Class = _MenuStyle__embed_css_Assets_swf_MenuSeparator_420729159; private static var _embed_css_Assets_swf_MenuCheckEnabled_1556264293:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1556264293; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Menu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Menu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.radioIcon = _embed_css_Assets_swf_MenuRadioEnabled_557814778; this.borderStyle = "menuBorder"; this.paddingTop = 1; this.rightIconGap = 15; this.branchIcon = _embed_css_Assets_swf_MenuBranchEnabled_310232707; this.checkDisabledIcon = _embed_css_Assets_swf_MenuCheckDisabled_17866362; this.verticalAlign = "middle"; this.paddingLeft = 1; this.paddingRight = 0; this.checkIcon = _embed_css_Assets_swf_MenuCheckEnabled_1556264293; this.radioDisabledIcon = _embed_css_Assets_swf_MenuRadioDisabled_1128727227; this.dropShadowEnabled = true; this.branchDisabledIcon = _embed_css_Assets_swf_MenuBranchDisabled_1462790030; this.dropIndicatorSkin = ListDropIndicator; this.separatorSkin = _embed_css_Assets_swf_MenuSeparator_420729159; this.horizontalGap = 6; this.leftIconGap = 18; this.paddingBottom = 1; }; }; } } }//package
Section 81
//_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1462790030 (_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1462790030) package { import mx.core.*; import flash.display.*; public class _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1462790030 extends SpriteAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var wait:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var unlock1full:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var lock11:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 82
//_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_310232707 (_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_310232707) package { import mx.core.*; import flash.display.*; public class _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_310232707 extends SpriteAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var wait:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var unlock1full:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var lock11:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 83
//_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_17866362 (_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_17866362) package { import mx.core.*; import flash.display.*; public class _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_17866362 extends SpriteAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var wait:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var unlock1full:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var lock11:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 84
//_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1556264293 (_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1556264293) package { import mx.core.*; import flash.display.*; public class _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1556264293 extends SpriteAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var wait:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var unlock1full:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var lock11:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 85
//_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1128727227 (_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1128727227) package { import mx.core.*; import flash.display.*; public class _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1128727227 extends SpriteAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var wait:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var unlock1full:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var lock11:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 86
//_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_557814778 (_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_557814778) package { import mx.core.*; import flash.display.*; public class _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_557814778 extends SpriteAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var wait:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var unlock1full:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var lock11:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 87
//_MenuStyle__embed_css_Assets_swf_MenuSeparator_420729159 (_MenuStyle__embed_css_Assets_swf_MenuSeparator_420729159) package { import mx.core.*; import flash.display.*; public class _MenuStyle__embed_css_Assets_swf_MenuSeparator_420729159 extends SpriteAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var wait:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var unlock1full:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var lock11:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 88
//_opaquePanelStyle (_opaquePanelStyle) package { import mx.core.*; import mx.styles.*; public class _opaquePanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".opaquePanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderColor = 0xFFFFFF; this.backgroundColor = 0xFFFFFF; this.headerColors = [0xE7E7E7, 0xD9D9D9]; this.footerColors = [0xE7E7E7, 0xC7C7C7]; this.borderAlpha = 1; }; }; } } }//package
Section 89
//_plainStyle (_plainStyle) package { import mx.core.*; import mx.styles.*; public class _plainStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".plain", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 0; this.backgroundColor = 0xFFFFFF; this.backgroundImage = ""; this.horizontalAlign = "left"; this.paddingLeft = 0; this.paddingBottom = 0; this.paddingRight = 0; }; }; } } }//package
Section 90
//_popUpMenuStyle (_popUpMenuStyle) package { import mx.core.*; import mx.styles.*; public class _popUpMenuStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".popUpMenu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "normal"; this.textAlign = "left"; }; }; } } }//package
Section 91
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle) package { import mx.core.*; import mx.styles.*; public class _richTextEditorTextAreaStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 92
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle) package { import mx.core.*; import mx.styles.*; public class _swatchPanelTextFieldStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "inset"; this.borderColor = 14015965; this.highlightColor = 12897484; this.backgroundColor = 0xFFFFFF; this.shadowCapColor = 14015965; this.shadowColor = 14015965; this.paddingLeft = 5; this.buttonColor = 7305079; this.borderCapColor = 9542041; this.paddingRight = 5; }; }; } } }//package
Section 93
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaHScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 94
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaVScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 95
//_todayStyleStyle (_todayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _todayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".todayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0xFFFFFF; this.textAlign = "center"; }; }; } } }//package
Section 96
//_weekDayStyleStyle (_weekDayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _weekDayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".weekDayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 97
//_windowStatusStyle (_windowStatusStyle) package { import mx.core.*; import mx.styles.*; public class _windowStatusStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStatus", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0x666666; }; }; } } }//package
Section 98
//_windowStylesStyle (_windowStylesStyle) package { import mx.core.*; import mx.styles.*; public class _windowStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 99
//CachedPuzzle (CachedPuzzle) package { import flash.events.*; import flash.display.*; import flash.media.*; import flash.geom.*; public class CachedPuzzle extends Puzzle { protected var loaded:Boolean;// = false protected var playButton:PlayButton; protected var totalFrames:int; protected var loadBar:LoadBar; protected var bitmapDisplay:Bitmap; protected var source:MovieClip; protected var firstFrame:int; protected var frames:Array; protected var bitmap:Bitmap; protected var currentFrame:int;// = 1 protected var lastFrame:int; protected var loadProgress:int;// = 0 public function CachedPuzzle(_arg1:String, _arg2:MovieClip, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int, _arg9:Sprite, _arg10:Array=null, _arg11:Sound=null, _arg12:Boolean=false){ super(_arg1, _arg2, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12); this.firstFrame = _arg3; this.lastFrame = _arg4; totalFrames = ((_arg4 - _arg3) + 1); source = _arg2; frames = []; bitmapDisplay = new Bitmap(null, "auto", true); bitmapDisplay.x = ((650 - _arg5) * 0.5); bitmapDisplay.y = 75; addChildAt(bitmapDisplay, 0); loadBar = new LoadBar(); loadBar.progress = 0; loadBar.x = 325; loadBar.y = 330; addChild(loadBar); loadStep(); addEventListener(Event.ENTER_FRAME, loadStep); } override protected function draw():void{ if (loaded){ currentFrame = ((currentFrame + 1) % frames.length); render(frames[currentFrame]); } else { loadBar.progress = (loadProgress / totalFrames); }; } protected function loadStep(_arg1:Event=null):void{ var _local2:Matrix = new Matrix(source.scaleX, 0, 0, source.scaleY); source.gotoAndStop((firstFrame + loadProgress)); var _local3:BitmapData = new BitmapData(w, h, false, 0); _local3.draw(source, _local2); frames.push(_local3); bitmapDisplay.bitmapData = _local3; loadProgress++; if (loadProgress >= totalFrames){ if (loadBar.parent){ loadBar.parent.removeChild(loadBar); }; removeEventListener(Event.ENTER_FRAME, loadStep); playButton = new PlayButton(); playButton.x = loadBar.x; playButton.y = loadBar.y; addChild(playButton); playButton.addEventListener(MouseEvent.CLICK, playClick); return; }; } override public function dispose():void{ var _local1:BitmapData; super.dispose(); while (frames.length > 0) { _local1 = frames.pop(); _local1.dispose(); }; removeEventListener(Event.ENTER_FRAME, loadStep); } override protected function cutPuzzle():void{ if (loaded){ super.cutPuzzle(); }; } protected function playClick(_arg1:MouseEvent):void{ playButton.removeEventListener(MouseEvent.CLICK, playClick); playButton.dispose(); if (playButton.parent){ playButton.parent.removeChild(playButton); }; currentFrame = 1; loaded = true; cutPuzzle(); if (bitmapDisplay.parent == this){ removeChild(bitmapDisplay); }; } } }//package
Section 100
//Cheer (Cheer) package { import flash.display.*; public class Cheer extends MovieClip { private static var last:int = 0; public function Cheer(){ var _local1:MovieClip = (getChildAt(0) as MovieClip); if (!_local1){ return; }; _local1.gotoAndStop((int((Math.random() * _local1.totalFrames)) + 1)); addFrameScript((totalFrames - 1), remove); } public function remove():void{ stop(); if (parent){ parent.removeChild(this); }; } } }//package
Section 101
//CongratulationsPopup (CongratulationsPopup) package { import flash.text.*; public class CongratulationsPopup extends MenuScreen { public var timesField:TextField; public var storyField:TextField; public var reportField:TextField; public function CongratulationsPopup(_arg1:Object){ var _local2:String; var _local3:int; super(); gotoAndStop(_arg1.frame); if (_arg1.frame == "Story"){ switch (_arg1.story){ case 1: default: _local2 = "Sky Clowns"; break; case 2: _local2 = "Bite My Valentine"; break; case 3: _local2 = "Gunny Hunny Bunny"; break; }; storyField.text = ("You completed " + _local2); timesField.text = ""; _local3 = 1; while (_local3 <= 3) { timesField.appendText(timeString(_arg1.times[_local3])); if (_arg1.times[_local3] <= _arg1.bestTimes[_local3]){ timesField.appendText(" * New record!"); }; timesField.appendText("\n"); _local3++; }; timesField.appendText(timeString(_arg1.storyTime)); if (_arg1.storyTime <= _arg1.bestStoryTime){ timesField.appendText(" * New record!"); }; } else { reportField.text = ((((("You completed " + _arg1.name) + " on difficulty ") + _arg1.difficulty) + " in ") + timeString(_arg1.time)); }; } protected function timeString(_arg1:Number):String{ var _local2:int = Math.ceil((_arg1 / 1000)); var _local3:String = ("" + (_local2 % 60)); while (_local3.length < 2) { _local3 = ("0" + _local3); }; return (((("" + int((_local2 / 60))) + ":") + _local3)); } } }//package
Section 102
//Credits (Credits) package { public class Credits extends MenuScreen { } }//package
Section 103
//CustomMenu (CustomMenu) package { import flash.events.*; import flash.display.*; import flash.text.*; public class CustomMenu extends MenuScreen { public var musicDownButton:Sprite; public var button22:Sprite; public var styleDownButton:Sprite; public var difficultyUpButton:Sprite; public var lock11:Sprite; public var block21:Sprite; public var webcamButton:Sprite; public var block23:Sprite; public var difficultyDownButton:Sprite; public var button32:Sprite; public var lock12:Sprite; public var block22:Sprite; public var button31:Sprite; protected var buttons:Array; public var lock13:Sprite; public var lock22:Sprite; public var block32:Sprite; public var block33:Sprite; public var lock21:Sprite; public var block31:Sprite; public var lock23:Sprite; public var button33:Sprite; protected var style:int; protected var difficulty:int; protected var music:int; public var styleField:TextField; public var lock32:Sprite; public var lock33:Sprite; public var lock31:Sprite; public var button11:Sprite; public var button12:Sprite; public var musicField:TextField; public var button13:Sprite; public var block11:Sprite; public var block12:Sprite; public var block13:Sprite; public var button21:Sprite; public var musicUpButton:Sprite; public var button23:Sprite; protected var selectors:Array; public var styleUpButton:Sprite; public var difficultyField:TextField; public function CustomMenu(){ var _local2:Sprite; var _local3:int; var _local4:Sprite; var _local5:Sprite; var _local6:Sprite; super(); difficulty = 5; style = 0; music = (Math.random() * 4); updateDifficultyField(); updateStyleField(); updateMusicField(); buttons = []; var _local1 = 1; while (_local1 <= 3) { _local3 = 1; while (_local3 <= 3) { _local4 = (getChildByName(((("button" + _local1) + "") + _local3)) as Sprite); _local5 = (getChildByName(((("lock" + _local1) + "") + _local3)) as Sprite); _local6 = (getChildByName(((("block" + _local1) + "") + _local3)) as Sprite); if (Main.getUnlocked(_local1, _local3)){ removeChild(_local5); removeChild(_local6); buttons.push(_local4); _local4.buttonMode = true; _local4.addEventListener(MouseEvent.CLICK, playLevelClick); addSoundButton(_local4, false); }; _local3++; }; _local1++; }; selectors = [musicUpButton, musicDownButton, styleUpButton, styleDownButton, difficultyUpButton, difficultyDownButton]; for each (_local2 in selectors) { _local2.buttonMode = true; _local2.addEventListener(MouseEvent.CLICK, selectorClick); addSoundButton(_local2, false); }; webcamButton.buttonMode = true; webcamButton.addEventListener(MouseEvent.CLICK, webcamClick); } override public function dispose():void{ var _local1:Sprite; var _local2:Sprite; super.dispose(); for each (_local1 in buttons) { _local1.removeEventListener(MouseEvent.CLICK, playLevelClick); }; for each (_local2 in selectors) { _local2.removeEventListener(MouseEvent.CLICK, selectorClick); }; webcamButton.removeEventListener(MouseEvent.CLICK, webcamClick); } protected function updateMusicField():void{ musicField.text = ("" + (music + 1)); Sounds.startMusic(Sounds.MUSIC[music]); } protected function playLevelClick(_arg1:MouseEvent):void{ dispatchEvent(new LevelEvent(LevelEvent.PLAY, false, false, parseInt(_arg1.target.name.charAt(6)), parseInt(_arg1.target.name.charAt(7)), difficulty, Style.STYLES[style], Sounds.MUSIC[music])); } protected function updateStyleField():void{ styleField.text = Style.STYLES[style].name; } protected function webcamClick(_arg1:MouseEvent):void{ dispatchEvent(new LevelEvent(LevelEvent.WEBCAM, false, false, 0, 0, difficulty, Style.STYLES[style], Sounds.MUSIC[music])); } protected function selectorClick(_arg1:MouseEvent):void{ switch (_arg1.target){ case difficultyDownButton: difficulty = Math.max(3, (difficulty - 1)); updateDifficultyField(); break; case difficultyUpButton: difficulty = Math.min(10, (difficulty + 1)); updateDifficultyField(); break; case styleDownButton: style = (((style - 1) + Style.STYLES.length) % Style.STYLES.length); updateStyleField(); break; case styleUpButton: style = ((style + 1) % Style.STYLES.length); updateStyleField(); break; case musicDownButton: music = (((music - 1) + 4) % 4); updateMusicField(); break; case musicUpButton: music = ((music + 1) % 4); updateMusicField(); break; }; } protected function updateDifficultyField():void{ difficultyField.text = ("" + difficulty); } } }//package
Section 104
//en_US$core_properties (en_US$core_properties) package { import mx.resources.*; public class en_US$core_properties extends ResourceBundle { public function en_US$core_properties(){ super("en_US", "core"); } override protected function getContent():Object{ var _local1:Object = {multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).", truncationIndicator:"...", notExecuting:"Repeater is not executing.", versionAlreadyRead:"Compatibility version has already been read.", multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).", viewSource:"View Source", badFile:"File does not exist.", stateUndefined:"Undefined state '{0}'.", versionAlreadySet:"Compatibility version has already been set."}; return (_local1); } } }//package
Section 105
//en_US$skins_properties (en_US$skins_properties) package { import mx.resources.*; public class en_US$skins_properties extends ResourceBundle { public function en_US$skins_properties(){ super("en_US", "skins"); } override protected function getContent():Object{ var _local1:Object = {notLoaded:"Unable to load '{0}'."}; return (_local1); } } }//package
Section 106
//en_US$styles_properties (en_US$styles_properties) package { import mx.resources.*; public class en_US$styles_properties extends ResourceBundle { public function en_US$styles_properties(){ super("en_US", "styles"); } override protected function getContent():Object{ var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."}; return (_local1); } } }//package
Section 107
//Factory (Factory) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.ui.*; public class Factory extends MovieClip { protected var playButton:PlayButton; protected var ngAd:Sprite; protected var loadBar:LoadBar; protected static var TitleBackground:Class = Factory_TitleBackground; public static var title:Sprite; protected static var Title:Class = Factory_Title; public static var titleBackground:Sprite; protected static var NewgroundsAd:Class = Factory_NewgroundsAd; public function Factory(){ stop(); titleBackground = new TitleBackground(); addChild(titleBackground); title = new Title(); addChild(title); loadBar = new LoadBar(); loadBar.progress = 0; loadBar.x = 325; loadBar.y = 430; addChild(loadBar); ngAd = (new NewgroundsAd() as Sprite); ngAd.x = 325; ngAd.y = 265; addChild(ngAd); var _local1:ContextMenu = new ContextMenu(); _local1.hideBuiltInItems(); this.contextMenu = _local1; addEventListener(Event.ENTER_FRAME, onEnterFrame); } private function finishedLoading():void{ removeEventListener(Event.ENTER_FRAME, onEnterFrame); if (((loadBar) && (loadBar.parent))){ loadBar.parent.removeChild(loadBar); }; loadBar = null; playButton = new PlayButton(); playButton.addEventListener(MouseEvent.CLICK, begin); playButton.x = 325; playButton.y = 430; addChild(playButton); } private function onEnterFrame(_arg1:Event):void{ loadBar.progress = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal); if (framesLoaded == totalFrames){ finishedLoading(); }; } protected function begin(_arg1:MouseEvent):void{ var _local3:Object; playButton.removeEventListener(MouseEvent.CLICK, begin); playButton.dispose(); if (playButton.parent){ playButton.parent.removeChild(playButton); }; nextFrame(); var _local2:Class = (getDefinitionByName("Main") as Class); if (_local2){ _local3 = new (_local2); addChild((_local3 as DisplayObject)); }; } } }//package
Section 108
//Factory_NewgroundsAd (Factory_NewgroundsAd) package { import mx.core.*; import flash.utils.*; public class Factory_NewgroundsAd extends MovieClipLoaderAsset { public var dataClass:Class; private static var bytes:ByteArray = null; public function Factory_NewgroundsAd(){ dataClass = Factory_NewgroundsAd_dataClass; super(); initialWidth = (11000 / 20); initialHeight = (8000 / 20); } override public function get movieClipData():ByteArray{ if (bytes == null){ bytes = ByteArray(new dataClass()); }; return (bytes); } } }//package
Section 109
//Factory_NewgroundsAd_dataClass (Factory_NewgroundsAd_dataClass) package { import mx.core.*; public class Factory_NewgroundsAd_dataClass extends ByteArrayAsset { } }//package
Section 110
//Factory_Title (Factory_Title) package { import flash.display.*; import mx.core.*; public class Factory_Title extends SpriteAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 111
//Factory_TitleBackground (Factory_TitleBackground) package { import flash.display.*; import mx.core.*; public class Factory_TitleBackground extends SpriteAsset { public var levelAnimation:DisplayObject; public var scroll1:DisplayObject; public var scroll2:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var shadow:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 112
//LevelEvent (LevelEvent) package { import flash.events.*; import flash.media.*; public class LevelEvent extends Event { public var level:int; public var music:Sound; public var time:Number; public var style:Style; public var story:int; public var difficulty:int; public static const PLAY:String = "Play"; public static const LEVEL_COMPLETE:String = "Level Complete"; public static const CLOSE:String = "Close"; public static const STORY_COMPLETE:String = "Story Complete"; public static const WEBCAM:String = "Webcam"; public function LevelEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=0, _arg5:int=0, _arg6:int=5, _arg7:Style=null, _arg8:Sound=null, _arg9:Number=0){ super(_arg1, _arg2, _arg3); this.story = _arg4; this.level = _arg5; this.difficulty = _arg6; this.style = _arg7; this.music = _arg8; this.time = _arg9; } override public function toString():String{ return (formatToString("LevelEvent", "type", "bubbles", "cancelable", "eventPhase", "story", "level", "difficulty", "style", "music", "time")); } override public function clone():Event{ return (new LevelEvent(type, bubbles, cancelable, story, level, difficulty, style, music, time)); } } }//package
Section 113
//LoadBar (LoadBar) package { import flash.display.*; public class LoadBar extends Sprite { public var bar:Sprite; public var wait:Sprite; public function set progress(_arg1:Number):void{ bar.scaleX = _arg1; wait.visible = (_arg1 < 1); } } }//package
Section 114
//Main (Main) package { import flash.events.*; import flash.display.*; import flash.media.*; import flash.geom.*; import flash.net.*; public class Main extends Sprite { protected var animation:MovieClip; protected var customPuzzle:Puzzle; protected var volumeBar:Sprite; protected var volumeSlider:Sprite; protected var soundButton:MovieClip; protected var titleBackground:Sprite; protected var popup:MenuScreen; protected var report:Object; protected var menuControls:Sprite; protected var musicButton:MovieClip; protected var movie:MoviePlayer; protected var backgroundLayer:Sprite; protected var title:Sprite; protected var volumeShadow:Sprite; protected var kongregate; protected var contentLayer:Sprite; protected var menuButton:Sprite; protected var story:Story; protected var controlBar:Sprite; protected var currentMenu:MenuScreen; protected static var SoundButton:Class = Main_SoundButton; protected static var bestTimes:Array; protected static var sharedObject:SharedObject; protected static var stage:Stage; protected static var times:Array; protected static var quality:String; protected static var MenuButton:Class = Main_MenuButton; protected static var storiesBeaten:Array; protected static var MenuControls:Class = Main_MenuControls; protected static var MusicButton:Class = Main_MusicButton; protected static var storyTimes:Array; protected static var qualityButton:MovieClip; protected static var Animation:Class = Main_Animation; protected static var qualityLocked:Boolean = false; protected static var QualityButton:Class = Main_QualityButton; protected static var levelsUnlocked:Array; protected static var VolumeSlider:Class = Main_VolumeSlider; protected static var bestDifficulty:int; public function Main(){ var _local1:MovieClip = (new Animation() as MovieClip); var _local2:Loader = (_local1.getChildAt(0) as Loader); _local2.contentLoaderInfo.addEventListener(Event.COMPLETE, init); sharedObject = SharedObject.getLocal("Puzzles"); if (sharedObject.data.music == undefined){ sharedObject.data.music = true; }; if (sharedObject.data.sound == undefined){ sharedObject.data.sound = true; }; if (sharedObject.data.volume == undefined){ sharedObject.data.volume = 0.75; }; if (sharedObject.data.showCheers == undefined){ sharedObject.data.showCheers = true; }; if (sharedObject.data.backgroundColor == undefined){ sharedObject.data.backgroundColor = 0; }; if (sharedObject.data.levelsUnlocked == undefined){ sharedObject.data.levelsUnlocked = []; }; if (sharedObject.data.storiesBeaten == undefined){ sharedObject.data.storiesBeaten = []; }; if (sharedObject.data.bestDifficulty == undefined){ sharedObject.data.bestDifficulty = []; }; if (sharedObject.data.times == undefined){ sharedObject.data.times = [null, [], [], []]; }; if (sharedObject.data.bestTimes == undefined){ sharedObject.data.bestTimes = [null, [], [], []]; }; if (sharedObject.data.storyTimes == undefined){ sharedObject.data.storyTimes = []; }; levelsUnlocked = sharedObject.data.levelsUnlocked; storiesBeaten = sharedObject.data.storiesBeaten; bestDifficulty = sharedObject.data.bestDifficulty; times = sharedObject.data.times; bestTimes = sharedObject.data.bestTimes; storyTimes = sharedObject.data.storyTimes; } protected function storyLevelComplete(_arg1:LevelEvent):void{ var _local2:int = _arg1.story; var _local3:int = _arg1.level; setUnlocked(_local2, _local3, true); if (((!(bestTimes[_local2][_local3])) || ((times[_local2][_local3] < bestTimes[_local2][_local3])))){ bestTimes[_local2][_local3] = times[_local2][_local3]; }; sharedObject.flush(); } protected function storyClose(_arg1:LevelEvent):void{ if (!story){ return; }; closeStory(); showMainMenu(); } protected function volumeMove(_arg1:MouseEvent):void{ var _local2:Number = Math.max(0, Math.min(1, (volumeBar.mouseX / volumeShadow.width))); sharedObject.data.volume = _local2; updateVolume(); } protected function continueStory(_arg1:MenuEvent):void{ closePopup(); beginStory(_arg1.story, false); } protected function init(_arg1:Event):void{ Main.stage = this.stage; var _local2:LoaderInfo = (_arg1.target as LoaderInfo); animation = (_local2.content as MovieClip); animation.stop(); _local2.removeEventListener(Event.COMPLETE, init); var _local3:Object = LoaderInfo(root.loaderInfo).parameters; var _local4:String = ((_local3.api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf")); var _local5:URLRequest = new URLRequest(_local4); var _local6:Loader = new Loader(); _local6.contentLoaderInfo.addEventListener(Event.COMPLETE, kongLoadComplete); _local6.load(_local5); this.addChild(_local6); titleBackground = Factory.titleBackground; title = Factory.title; backgroundLayer = new Sprite(); addChild(backgroundLayer); contentLayer = new Sprite(); addChild(contentLayer); menuButton = (new MenuButton() as Sprite); menuButton.addEventListener(MouseEvent.CLICK, menuClick); menuButton.buttonMode = true; menuButton.x = 650; menuButton.y = 20; qualityButton = (new QualityButton() as MovieClip); qualityButton.addEventListener(MouseEvent.CLICK, qualityClick); qualityButton.buttonMode = true; qualityButton.x = 0; qualityButton.y = 20; qualityButton.stop(); setQuality("high"); musicButton = (new MusicButton() as MovieClip); musicButton.addEventListener(MouseEvent.CLICK, musicClick); musicButton.buttonMode = true; musicButton.x = 20; musicButton.y = 20; updateMusic(); soundButton = (new SoundButton() as MovieClip); soundButton.addEventListener(MouseEvent.CLICK, soundClick); soundButton.buttonMode = true; soundButton.x = 40; soundButton.y = 20; updateSound(); volumeSlider = (new VolumeSlider() as Sprite); volumeSlider.addEventListener(MouseEvent.MOUSE_DOWN, volumeDown); volumeSlider.buttonMode = true; volumeSlider.x = 60; volumeSlider.y = 20; volumeBar = (volumeSlider.getChildByName("bar") as Sprite); volumeShadow = (volumeSlider.getChildByName("shadow") as Sprite); updateVolume(); menuControls = new MenuControls(); menuControls.x = 8; menuControls.y = 442; controlBar = new Sprite(); controlBar.y = 450; controlBar.graphics.beginFill(0); controlBar.graphics.drawRect(0, 0, 650, 20); controlBar.graphics.endFill(); switchToMenuControls(); showMainMenu(); } protected function closePopup(_arg1:Event=null):void{ if (!popup){ return; }; popup.dispose(); if (popup.parent){ popup.parent.removeChild(popup); }; popup = null; } protected function puzzleComplete(_arg1:LevelEvent):void{ if (!customPuzzle){ return; }; if (customPuzzle.difficulty > bestDifficulty){ bestDifficulty = customPuzzle.difficulty; submitStats(); }; report = {}; report.frame = "Custom"; report.name = customPuzzle.name; report.difficulty = customPuzzle.difficulty; report.time = _arg1.time; } protected function closeMovie():void{ if (!movie){ return; }; movie.dispose(); if (movie.parent){ movie.parent.removeChild(movie); }; movie = null; } protected function showMoviesMenu(_arg1:Event=null):void{ restoreFrameRate(); closeCurrentMenu(); addBackground(); switchToMenuControls(); currentMenu = new MoviesMenu(); currentMenu.addEventListener(LevelEvent.PLAY, playMovie); currentMenu.addEventListener(MenuEvent.BACK, showMainMenu); contentLayer.addChild(currentMenu); } protected function switchToMenuControls():void{ if (controlBar.parent){ controlBar.parent.removeChild(controlBar); }; menuControls.addChild(qualityButton); menuControls.addChild(musicButton); menuControls.addChild(soundButton); menuControls.addChild(volumeSlider); addChild(menuControls); } protected function switchToControlBar():void{ if (menuControls.parent){ menuControls.parent.removeChild(menuControls); }; controlBar.addChild(qualityButton); controlBar.addChild(musicButton); controlBar.addChild(soundButton); controlBar.addChild(volumeSlider); addChild(controlBar); } protected function closeCustomPuzzle():void{ if (!customPuzzle){ return; }; contentLayer.removeChild(customPuzzle); customPuzzle.removeEventListener(LevelEvent.LEVEL_COMPLETE, puzzleComplete); customPuzzle.removeEventListener(LevelEvent.CLOSE, puzzleClose); customPuzzle.dispose(); customPuzzle = null; } protected function playStory(_arg1:LevelEvent):void{ if (times[_arg1.story].length == 4){ while (times[_arg1.story].length > 1) { times[_arg1.story].pop(); }; }; if (times[_arg1.story].length <= 1){ beginStory(_arg1.story, true); } else { popup = new StoryPopup(_arg1.story); popup.addEventListener(MenuEvent.BACK, closePopup); popup.addEventListener(MenuEvent.CONTINUE, continueStory); popup.addEventListener(MenuEvent.RESTART, restartStory); addChild(popup); }; } protected function restartStory(_arg1:MenuEvent):void{ closePopup(); beginStory(_arg1.story, true); } protected function addBackground():void{ if (!titleBackground){ return; }; backgroundLayer.addChild(titleBackground); var _local1:MovieClip = (titleBackground.getChildByName("scroll1") as MovieClip); if (_local1){ _local1.play(); }; var _local2:MovieClip = (titleBackground.getChildByName("scroll2") as MovieClip); if (_local2){ _local2.play(); }; } protected function customPuzzleClick(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.CLICK, customPuzzleClick); if (!customPuzzle){ return; }; closeCustomPuzzle(); showCustomMenu(); } protected function soundClick(_arg1:MouseEvent):void{ sharedObject.data.sound = !(sharedObject.data.sound); updateSound(); sharedObject.flush(); } protected function checkKong():void{ if (((kongregate) && (!(kongregate.connected)))){ kongregate.services.connect(); }; } protected function updateSound():void{ Sounds.soundsOn = sharedObject.data.sound; if (sharedObject.data.sound){ soundButton.gotoAndStop("On"); animation.soundTransform = new SoundTransform(1, 0); } else { soundButton.gotoAndStop("Off"); animation.soundTransform = new SoundTransform(0, 0); }; } protected function playLevel(_arg1:LevelEvent):void{ var _local2:int; var _local3:int; var _local6:FrameLabel; var _local7:String; closeCurrentMenu(); switchToControlBar(); checkKong(); animation.gotoAndStop(1, ("Scene " + _arg1.story)); var _local4 = 1; var _local5 = 1; for each (_local6 in animation.currentScene.labels) { if (_local6.name.substr(0, 5).toLowerCase() == "first"){ if (_local6.name.charAt(6) == String(_arg1.level)){ _local4 = _local6.frame; }; } else { if (_local6.name.substr(0, 4).toLowerCase() == "last"){ if (_local6.name.charAt(5) == String(_arg1.level)){ _local5 = _local6.frame; }; }; }; }; _local5 = Math.max(_local4, _local5); switch (_arg1.story){ case 1: _local7 = "Sky Clowns"; break; case 2: _local7 = "Bite My Valentine"; break; case 3: _local7 = "Gunny Hunny Bunny"; break; }; _local7 = (_local7 + (" scene " + _arg1.level)); var _local8:Number = 0.5; animation.scaleX = (animation.scaleY = _local8); customPuzzle = new CachedPuzzle(_local7, animation, _local4, _local5, (650 * _local8), (450 * _local8), _arg1.difficulty, (((_arg1.story - 1) * 3) + _arg1.level), controlBar, [_arg1.style], _arg1.music); customPuzzle.addEventListener(LevelEvent.LEVEL_COMPLETE, puzzleComplete); customPuzzle.addEventListener(LevelEvent.CLOSE, puzzleClose); contentLayer.addChild(customPuzzle); controlBar.addChild(menuButton); } protected function movieFinished(_arg1:Event):void{ closeMovie(); showMoviesMenu(); } protected function updateVolume():void{ var _local1:Number = sharedObject.data.volume; volumeBar.scrollRect = new Rectangle(0, 0, (volumeShadow.width * _local1), volumeShadow.height); Sounds.masterVolume = _local1; } protected function showCustomMenu(_arg1:Event=null):void{ restoreFrameRate(); closeCurrentMenu(); addBackground(); switchToMenuControls(); currentMenu = new CustomMenu(); currentMenu.addEventListener(LevelEvent.PLAY, playLevel); currentMenu.addEventListener(LevelEvent.WEBCAM, playWebcam); currentMenu.addEventListener(MenuEvent.BACK, showMainMenu); contentLayer.addChild(currentMenu); checkReport(); } protected function storyComplete(_arg1:LevelEvent):void{ if (!story){ return; }; var _local2:Number = ((times[_arg1.story][1] + times[_arg1.story][2]) + times[_arg1.story][3]); if (((!(storyTimes[_arg1.story])) || ((_local2 < storyTimes[_arg1.story])))){ storyTimes[_arg1.story] = _local2; }; storiesBeaten[_arg1.story] = true; sharedObject.flush(); submitStats(); report = {}; report.frame = "Story"; report.story = _arg1.story; report.times = times[_arg1.story].concat(); report.bestTimes = bestTimes[_arg1.story].concat(); report.storyTime = _local2; report.bestStoryTime = storyTimes[_arg1.story]; } protected function playWebcam(_arg1:LevelEvent):void{ var _local2:Number = 400; var _local3:Number = 300; var _local4:Camera = Camera.getCamera(); if (!_local4){ popup = new NoWebcamPopup(); addChild(popup); popup.addEventListener(MenuEvent.BACK, closePopup); return; }; closeCurrentMenu(); switchToControlBar(); Sounds.stopMusic(); checkKong(); var _local5:Sprite = new Sprite(); _local5.graphics.beginFill(0x303030); _local5.graphics.drawRect(0, 0, _local2, _local3); _local5.graphics.endFill(); var _local6:Video = new Video(_local2, _local3); _local4.setMode(_local2, _local3, 30); _local6.attachCamera(_local4); _local5.addChild(_local6); customPuzzle = new Puzzle("Webcam Puzzle", _local5, _local2, _local3, _arg1.difficulty, 0, controlBar, [_arg1.style], _arg1.music); customPuzzle.addEventListener(LevelEvent.LEVEL_COMPLETE, puzzleComplete); customPuzzle.addEventListener(LevelEvent.CLOSE, puzzleClose); contentLayer.addChild(customPuzzle); controlBar.addChild(menuButton); } protected function qualityClick(_arg1:MouseEvent):void{ switch (quality.toLowerCase()){ case "high": setQuality("medium"); break; case "medium": setQuality("low"); break; case "low": setQuality("high"); break; }; } protected function removeBackground():void{ if (!titleBackground){ return; }; if (titleBackground.parent){ titleBackground.parent.removeChild(titleBackground); }; var _local1:MovieClip = (titleBackground.getChildByName("scroll1") as MovieClip); if (_local1){ _local1.stop(); }; var _local2:MovieClip = (titleBackground.getChildByName("scroll2") as MovieClip); if (_local2){ _local2.stop(); }; } protected function beginStory(_arg1:int, _arg2:Boolean):void{ closeCurrentMenu(); closePopup(); switchToControlBar(); Sounds.stopMusic(); checkKong(); if (_arg2){ while (times[_arg1].length > 1) { times[_arg1].pop(); }; }; story = new Story(_arg1, animation, controlBar, times[_arg1]); contentLayer.addChild(story); story.addEventListener(LevelEvent.STORY_COMPLETE, storyComplete); story.addEventListener(LevelEvent.LEVEL_COMPLETE, storyLevelComplete); story.addEventListener(LevelEvent.CLOSE, storyClose); controlBar.addChild(menuButton); } protected function showMainMenu(_arg1:Event=null):void{ restoreFrameRate(); closeCurrentMenu(); closePopup(); addBackground(); switchToMenuControls(); backgroundLayer.addChild(title); Sounds.startMusic(Sounds.THEME_SONG); checkKong(); currentMenu = new Menu(); currentMenu.addEventListener(MenuEvent.STORY, showStoryMenu); currentMenu.addEventListener(MenuEvent.CUSTOM, showCustomMenu); currentMenu.addEventListener(MenuEvent.MOVIES, showMoviesMenu); currentMenu.addEventListener(MenuEvent.CREDITS, showCredits); contentLayer.addChild(currentMenu); if (menuButton.parent){ menuButton.parent.removeChild(menuButton); }; checkReport(); } protected function checkReport():void{ if (report){ popup = new CongratulationsPopup(report); popup.addEventListener(MenuEvent.BACK, closePopup); addChild(popup); report = null; }; } protected function showCredits(_arg1:Event=null):void{ restoreFrameRate(); closeCurrentMenu(); addBackground(); switchToMenuControls(); backgroundLayer.addChild(title); currentMenu = new Credits(); currentMenu.addEventListener(MenuEvent.BACK, showMainMenu); addChild(currentMenu); } protected function closeCurrentMenu():void{ if (!currentMenu){ return; }; removeBackground(); if (title.parent){ title.parent.removeChild(title); }; currentMenu.removeEventListener(MenuEvent.STORY, showStoryMenu); currentMenu.removeEventListener(MenuEvent.CUSTOM, showCustomMenu); currentMenu.removeEventListener(MenuEvent.MOVIES, showMoviesMenu); currentMenu.removeEventListener(MenuEvent.CREDITS, showCredits); currentMenu.removeEventListener(MenuEvent.BACK, showMainMenu); currentMenu.removeEventListener(LevelEvent.PLAY, playMovie); currentMenu.removeEventListener(LevelEvent.PLAY, playStory); currentMenu.removeEventListener(LevelEvent.PLAY, playLevel); currentMenu.removeEventListener(LevelEvent.WEBCAM, playWebcam); if (currentMenu.parent){ currentMenu.parent.removeChild(currentMenu); }; currentMenu.dispose(); currentMenu = null; } protected function puzzleClose(_arg1:LevelEvent):void{ stage.addEventListener(MouseEvent.CLICK, customPuzzleClick); } protected function playMovie(_arg1:LevelEvent):void{ closeCurrentMenu(); switchToControlBar(); Sounds.stopMusic(); closeMovie(); movie = new MoviePlayer(animation, _arg1.story); movie.addEventListener(MenuEvent.BACK, movieFinished); contentLayer.addChild(movie); controlBar.addChild(menuButton); } protected function closeStory():void{ if (!story){ return; }; contentLayer.removeChild(story); story.removeEventListener(LevelEvent.STORY_COMPLETE, storyComplete); story.removeEventListener(LevelEvent.LEVEL_COMPLETE, storyLevelComplete); story.removeEventListener(LevelEvent.CLOSE, storyClose); story.dispose(); story = null; } protected function submitStats():void{ if (!kongregate){ return; }; var _local1:int; var _local2 = 1; while (_local2 <= 3) { if (storiesBeaten[_local2]){ _local1++; }; _local2++; }; kongregate.stats.submit("Stories", _local1); kongregate.stats.submit("Difficulty", bestDifficulty); if (storyTimes[1]){ kongregate.stats.submit("Time: Sky Clowns", storyTimes[1]); }; if (storyTimes[2]){ kongregate.stats.submit("Time: Bite My Valentine", storyTimes[2]); }; if (storyTimes[3]){ kongregate.stats.submit("Time: Gunny Hunny Bunny", storyTimes[3]); }; } protected function menuClick(_arg1:MouseEvent):void{ animation.stop(); closeStory(); closeCustomPuzzle(); closeMovie(); closeCurrentMenu(); showMainMenu(); } protected function updateMusic():void{ Sounds.musicOn = sharedObject.data.music; if (sharedObject.data.music){ musicButton.gotoAndStop("On"); } else { musicButton.gotoAndStop("Off"); }; } protected function volumeUp(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_MOVE, volumeMove); stage.removeEventListener(MouseEvent.MOUSE_UP, volumeUp); sharedObject.flush(); } protected function musicClick(_arg1:MouseEvent):void{ sharedObject.data.music = !(sharedObject.data.music); updateMusic(); sharedObject.flush(); } protected function volumeDown(_arg1:MouseEvent):void{ stage.addEventListener(MouseEvent.MOUSE_MOVE, volumeMove); stage.addEventListener(MouseEvent.MOUSE_UP, volumeUp); volumeMove(_arg1); } protected function showStoryMenu(_arg1:Event=null):void{ restoreFrameRate(); closeCurrentMenu(); addBackground(); switchToMenuControls(); currentMenu = new StoryMenu(); currentMenu.addEventListener(LevelEvent.PLAY, playStory); currentMenu.addEventListener(MenuEvent.BACK, showMainMenu); contentLayer.addChild(currentMenu); } protected function kongLoadComplete(_arg1:Event):void{ var event = _arg1; try { if (!event.target.content){ return; }; kongregate = event.target.content; kongregate.services.connect(); submitStats(); } catch(e:Error) { }; } public static function setFrameRate(_arg1:int):void{ if (_arg1){ stage.frameRate = _arg1; }; } public static function revertQuality():void{ setQuality(quality); } public static function set showCheers(_arg1:Boolean):void{ sharedObject.data.showCheers = _arg1; } public static function lockQuality():void{ qualityLocked = true; } public static function getUnlocked(_arg1:int, _arg2:int):Boolean{ return (levelsUnlocked[(((_arg1 - 1) * 3) + _arg2)]); } public static function tempQuality(_arg1:String):void{ if (!qualityLocked){ stage.quality = _arg1; }; } public static function get backgroundColor():int{ return (sharedObject.data.backgroundColor); } public static function get showCheers():Boolean{ return (sharedObject.data.showCheers); } public static function setUnlocked(_arg1:int, _arg2:int, _arg3:Boolean):void{ levelsUnlocked[(((_arg1 - 1) * 3) + _arg2)] = _arg3; sharedObject.flush(); } public static function restoreFrameRate():void{ stage.frameRate = 29; } public static function unlockQuality():void{ qualityLocked = false; } public static function set backgroundColor(_arg1:int):void{ sharedObject.data.backgroundColor = _arg1; } public static function setQuality(_arg1:String):void{ quality = _arg1; if (!qualityLocked){ stage.quality = _arg1; }; qualityButton.gotoAndStop(_arg1.toLowerCase()); } } }//package
Section 115
//Main_Animation (Main_Animation) package { import mx.core.*; import flash.utils.*; public class Main_Animation extends MovieClipLoaderAsset { public var dataClass:Class; private static var bytes:ByteArray = null; public function Main_Animation(){ dataClass = Main_Animation_dataClass; super(); initialWidth = (13000 / 20); initialHeight = (9000 / 20); } override public function get movieClipData():ByteArray{ if (bytes == null){ bytes = ByteArray(new dataClass()); }; return (bytes); } } }//package
Section 116
//Main_Animation_dataClass (Main_Animation_dataClass) package { import mx.core.*; public class Main_Animation_dataClass extends ByteArrayAsset { } }//package
Section 117
//Main_MenuButton (Main_MenuButton) package { import mx.core.*; public class Main_MenuButton extends SpriteAsset { } }//package
Section 118
//Main_MenuControls (Main_MenuControls) package { import mx.core.*; public class Main_MenuControls extends SpriteAsset { } }//package
Section 119
//Main_MusicButton (Main_MusicButton) package { import mx.core.*; public class Main_MusicButton extends MovieClipAsset { } }//package
Section 120
//Main_QualityButton (Main_QualityButton) package { import mx.core.*; public class Main_QualityButton extends MovieClipAsset { } }//package
Section 121
//Main_SoundButton (Main_SoundButton) package { import mx.core.*; import flash.display.*; public class Main_SoundButton extends MovieClipAsset { public var shadow:DisplayObject; public var bar:DisplayObject; } }//package
Section 122
//Main_VolumeSlider (Main_VolumeSlider) package { import mx.core.*; import flash.display.*; public class Main_VolumeSlider extends SpriteAsset { public var shadow:DisplayObject; public var bar:DisplayObject; } }//package
Section 123
//Menu (Menu) package { import flash.events.*; import flash.display.*; public class Menu extends MenuScreen { protected var buttons:Array; public var storyBackground:MovieClip; protected var backgrounds:Array; public var storyButton:Sprite; public var customButton:Sprite; public var captions:MovieClip; public var moviesBackground:MovieClip; public var moviesButton:Sprite; public var creditsBackground:MovieClip; public var creditsButton:Sprite; public var customBackground:MovieClip; public function Menu(){ var _local1:Sprite; var _local2:MovieClip; super(); captions.stop(); buttons = [storyButton, customButton, moviesButton, creditsButton]; for each (_local1 in buttons) { _local1.buttonMode = true; _local1.addEventListener(MouseEvent.CLICK, buttonClick); _local1.addEventListener(MouseEvent.ROLL_OVER, buttonRollOver); _local1.addEventListener(MouseEvent.ROLL_OUT, buttonRollOut); addSoundButton(_local1); }; backgrounds = [storyBackground, customBackground, moviesBackground, creditsBackground]; for each (_local2 in backgrounds) { _local2.stop(); _local2.addFrameScript((_local2.totalFrames - 1), _local2.stop); }; } protected function buttonRollOver(_arg1:MouseEvent):void{ switch (_arg1.target){ case storyButton: rollOver(storyBackground, 2); break; case customButton: rollOver(customBackground, 3); break; case moviesButton: rollOver(moviesBackground, 4); break; case creditsButton: rollOver(creditsBackground, 5); break; }; } protected function buttonRollOut(_arg1:MouseEvent):void{ switch (_arg1.target){ case storyButton: rollOut(storyBackground); break; case customButton: rollOut(customBackground); break; case moviesButton: rollOut(moviesBackground); break; case creditsButton: rollOut(creditsBackground); break; }; } override public function dispose():void{ var _local1:Sprite; for each (_local1 in buttons) { _local1.removeEventListener(MouseEvent.CLICK, buttonClick); _local1.removeEventListener(MouseEvent.ROLL_OVER, buttonRollOver); _local1.removeEventListener(MouseEvent.ROLL_OUT, buttonRollOut); }; super.dispose(); } protected function rollOut(_arg1:MovieClip):void{ if (_arg1){ _arg1.gotoAndStop(1); }; captions.gotoAndStop(1); } protected function rollOver(_arg1:MovieClip, _arg2:Object):void{ if (_arg1){ _arg1.gotoAndPlay(1); }; captions.gotoAndStop(_arg2); } protected function buttonClick(_arg1:MouseEvent):void{ switch (_arg1.target){ case storyButton: dispatchEvent(new MenuEvent(MenuEvent.STORY)); break; case customButton: dispatchEvent(new MenuEvent(MenuEvent.CUSTOM)); break; case moviesButton: dispatchEvent(new MenuEvent(MenuEvent.MOVIES)); break; case creditsButton: dispatchEvent(new MenuEvent(MenuEvent.CREDITS)); break; }; } } }//package
Section 124
//MenuEvent (MenuEvent) package { import flash.events.*; public class MenuEvent extends Event { public var story:int; public static var MOVIES:String = "Movies"; public static var BACK:String = "Back"; public static var RESTART:String = "Restart"; public static var CUSTOM:String = "Custom"; public static var STORY:String = "Story"; public static var CONTINUE:String = "Continue"; public static var CREDITS:String = "Credits"; public function MenuEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=0){ super(_arg1, _arg2, _arg3); this.story = _arg4; } override public function clone():Event{ return (new MenuEvent(type, bubbles, cancelable, story)); } override public function toString():String{ return (formatToString("MenuEvent", "type", "bubbles", "cancelable", "eventPhase", "story")); } } }//package
Section 125
//MenuScreen (MenuScreen) package { import flash.events.*; import flash.display.*; public class MenuScreen extends MovieClip { public var backButton:Sprite; private var soundButtons:Array; public var backBackground:MovieClip; public function MenuScreen(){ soundButtons = []; if (((backButton) && (backBackground))){ backBackground.stop(); backBackground.addFrameScript((backBackground.totalFrames - 1), backBackground.stop); backButton.buttonMode = true; backButton.addEventListener(MouseEvent.CLICK, backClick); backButton.addEventListener(MouseEvent.ROLL_OVER, backRollOver); backButton.addEventListener(MouseEvent.ROLL_OUT, backRollOut); addSoundButton(backButton); }; } protected function addSoundButton(_arg1:Sprite, _arg2:Boolean=true):void{ if (!_arg1){ return; }; soundButtons.push(_arg1); _arg1.addEventListener(MouseEvent.CLICK, playClickSound); if (_arg2){ _arg1.addEventListener(MouseEvent.ROLL_OVER, playRollOverSound); }; } protected function backClick(_arg1:MouseEvent):void{ dispatchEvent(new MenuEvent(MenuEvent.BACK)); } protected function backRollOut(_arg1:MouseEvent):void{ backBackground.gotoAndStop(1); } protected function playRollOverSound(_arg1:MouseEvent):void{ Sounds.play(Sounds.CONNECT, 3); } protected function backRollOver(_arg1:MouseEvent):void{ backBackground.gotoAndPlay(1); } protected function playClickSound(_arg1:MouseEvent):void{ Sounds.play(Sounds.WIN, 1.5); } public function dispose():void{ var _local1:Sprite; for each (_local1 in soundButtons) { _local1.removeEventListener(MouseEvent.CLICK, playClickSound); _local1.removeEventListener(MouseEvent.ROLL_OVER, playRollOverSound); }; if (backButton){ backButton.removeEventListener(MouseEvent.CLICK, backClick); backButton.removeEventListener(MouseEvent.ROLL_OVER, backRollOver); backButton.removeEventListener(MouseEvent.ROLL_OUT, backRollOut); }; } } }//package
Section 126
//MoviePlayer (MoviePlayer) package { import flash.events.*; import flash.display.*; public class MoviePlayer extends Sprite { protected var animation:MovieClip; public function MoviePlayer(_arg1:MovieClip, _arg2:int){ this.animation = _arg1; _arg1.scaleX = (_arg1.scaleY = 1); addChild(_arg1); _arg1.gotoAndPlay(1, ("Scene " + _arg2)); addEventListener(Event.ENTER_FRAME, enterFrame); } protected function enterFrame(_arg1:Event):void{ var _local2:Scene = animation.currentScene; if (animation.currentFrame == _local2.numFrames){ animation.stop(); animation.dispatchEvent(new MenuEvent(MenuEvent.BACK)); }; } public function dispose():void{ if (animation.parent == this){ removeChild(animation); animation.stop(); }; removeEventListener(Event.ENTER_FRAME, enterFrame); } } }//package
Section 127
//MoviesMenu (MoviesMenu) package { import flash.events.*; import flash.display.*; public class MoviesMenu extends MenuScreen { public var buttons:Array; public var unlock21:MovieClip; public var block1:MovieClip; public var unlock23:MovieClip; public var block2:MovieClip; public var block3:MovieClip; public var unlock22:MovieClip; public var unlock31:MovieClip; public var unlock32:MovieClip; public var unlock11:MovieClip; public var unlock12:MovieClip; public var unlock13:MovieClip; public var lock2:MovieClip; public var lock3:MovieClip; public var captionsBackground:MovieClip; public var unlock33:MovieClip; public var lock1:MovieClip; public var story1Button:Sprite; public var story2Button:Sprite; public var story3Button:Sprite; public var captions:MovieClip; public function MoviesMenu(){ var _local1:MovieClip; var _local3:MovieClip; var _local4:Boolean; var _local5:int; var _local6:Boolean; super(); buttons = []; var _local2 = 1; while (_local2 <= 3) { _local4 = true; _local5 = 1; while (_local5 <= 3) { _local1 = (getChildByName(((("unlock" + _local2) + "") + _local5)) as MovieClip); _local6 = Main.getUnlocked(_local2, _local5); if (_local6){ _local1.gotoAndStop(2); } else { _local1.gotoAndStop(1); _local4 = false; }; _local5++; }; if (_local4){ _local1 = (getChildByName(("lock" + _local2)) as MovieClip); _local1.visible = !(_local4); _local1 = (getChildByName(("block" + _local2)) as MovieClip); _local1.visible = !(_local4); switch (_local2){ case 1: buttons.push(story1Button); break; case 2: buttons.push(story2Button); break; case 3: buttons.push(story3Button); break; }; }; _local2++; }; for each (_local3 in buttons) { _local3.buttonMode = true; _local3.addEventListener(MouseEvent.CLICK, buttonClick); _local3.addEventListener(MouseEvent.ROLL_OVER, buttonRollOver); _local3.addEventListener(MouseEvent.ROLL_OUT, buttonRollOut); addSoundButton(_local3); }; captions.visible = false; captionsBackground.gotoAndStop(1); captionsBackground.addFrameScript((captionsBackground.totalFrames - 12), showCaptions); captionsBackground.addFrameScript((captionsBackground.totalFrames - 1), captionsBackground.stop); } protected function buttonRollOver(_arg1:MouseEvent):void{ switch (_arg1.target){ case story1Button: popCaption(1); break; case story2Button: popCaption(2); break; case story3Button: popCaption(3); break; }; } override public function dispose():void{ var _local1:MovieClip; for each (_local1 in buttons) { _local1.removeEventListener(MouseEvent.CLICK, buttonClick); _local1.removeEventListener(MouseEvent.ROLL_OVER, buttonRollOver); _local1.removeEventListener(MouseEvent.ROLL_OUT, buttonRollOut); }; super.dispose(); } protected function showCaptions():void{ captions.visible = true; } protected function popCaption(_arg1:int):void{ captionsBackground.gotoAndPlay(1); captions.gotoAndStop(_arg1); captions.visible = false; } protected function buttonClick(_arg1:MouseEvent):void{ switch (_arg1.target){ case story1Button: dispatchEvent(new LevelEvent(LevelEvent.PLAY, false, false, 1)); break; case story2Button: dispatchEvent(new LevelEvent(LevelEvent.PLAY, false, false, 2)); break; case story3Button: dispatchEvent(new LevelEvent(LevelEvent.PLAY, false, false, 3)); break; }; } protected function hideCaptions():void{ captionsBackground.gotoAndStop(1); captions.visible = false; } protected function buttonRollOut(_arg1:MouseEvent):void{ hideCaptions(); } } }//package
Section 128
//NoWebcamPopup (NoWebcamPopup) package { public class NoWebcamPopup extends MenuScreen { } }//package
Section 129
//PlayButton (PlayButton) package { import flash.events.*; import flash.display.*; public class PlayButton extends MovieClip { public function PlayButton(){ buttonMode = true; stop(); addFrameScript((totalFrames - 1), stop); addEventListener(MouseEvent.ROLL_OVER, playRollOver); addEventListener(MouseEvent.ROLL_OUT, playRollOut); } protected function playRollOut(_arg1:MouseEvent):void{ gotoAndStop(1); } protected function playRollOver(_arg1:MouseEvent):void{ gotoAndPlay(1); } public function dispose():void{ removeEventListener(MouseEvent.ROLL_OVER, playRollOver); removeEventListener(MouseEvent.ROLL_OUT, playRollOut); } } }//package
Section 130
//Puzzle (Puzzle) package { import flash.events.*; import flash.display.*; import flash.media.*; import flash.geom.*; import flash.text.*; public class Puzzle extends Sprite { protected var backgroundButton:Sprite; protected var pieceLayer:Sprite; protected var styleDownButton:Sprite; protected var previewPiece:Sprite; protected var styleSelect:Sprite; protected var workSpace:Rectangle; protected var cheersButton:MovieClip; protected var yPieces:int; protected var clickAnywhere:Sprite; protected var instructions:Sprite; protected var loadFrame:int;// = 0 protected var topLeft:PuzzlePiece; protected var timeField:TextField; protected var style:Style; public var difficulty:int; protected var tray:Rectangle; protected var display:DisplayObject; protected var puzzleLoad:Sprite; protected var pieces:Array; protected var styleField:TextField; protected var canvasDisplay:Bitmap; protected var time:Number; protected var startTime:Number; protected var canvas:BitmapData; protected var xPieces:int; protected var winTime:int;// = 0 protected var styles:Array; protected var cut:Boolean;// = false protected var maxSnap:Number;// = 6 protected var dragOffset:Point; protected var h:int; protected var currentPiece:PuzzlePiece; protected var controlBar:Sprite; protected var w:int; protected var field:Rectangle; protected var styleUpButton:Sprite; protected static const WIN_TIME:int = 60; protected static var BackgroundButton:Class = Puzzle_BackgroundButton; protected static var ClickAnywhere:Class = Puzzle_ClickAnywhere; protected static var PuzzleLoad:Class = Puzzle_PuzzleLoad; protected static var SolveInstructions:Class = Puzzle_SolveInstructions; protected static var StyleSelect:Class = Puzzle_StyleSelect; protected static var TimeDisplay:Class = Puzzle_TimeDisplay; protected static var CheersButton:Class = Puzzle_CheersButton; public function Puzzle(_arg1:String, _arg2:DisplayObject, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:Sprite, _arg8:Array=null, _arg9:Sound=null, _arg10:Boolean=false){ var _local12:MovieClip; var _local13:MovieClip; super(); this.name = _arg1; this.display = _arg2; this.w = _arg3; this.h = _arg4; canvas = new BitmapData(_arg3, _arg4, false, 0); this.difficulty = _arg5; if (!_arg9){ _arg9 = Sounds.getRandomSong(); }; Sounds.startMusic(_arg9); this.controlBar = _arg7; backgroundButton = (new BackgroundButton() as Sprite); backgroundButton.buttonMode = true; backgroundButton.x = (650 / 2); backgroundButton.y = 20; _arg7.addChild(backgroundButton); updateBackgroundButton(); backgroundButton.addEventListener(MouseEvent.CLICK, backgroundButtonClick); cheersButton = (new CheersButton() as MovieClip); cheersButton.buttonMode = true; cheersButton.x = (650 / 2); cheersButton.y = 20; _arg7.addChild(cheersButton); updateCheersButton(); cheersButton.addEventListener(MouseEvent.CLICK, cheersButtonClick); clickAnywhere = (new ClickAnywhere() as Sprite); clickAnywhere.x = ((650 - clickAnywhere.width) / 2); clickAnywhere.y = 20; xPieces = _arg5; yPieces = Math.round(((_arg5 / _arg3) * _arg4)); var _local11:Number = 0.15; maxSnap = Math.min(((_arg3 / xPieces) * _local11), ((_arg4 / yPieces) * _local11)); workSpace = new Rectangle(0, 0, 650, 450); field = new Rectangle(0, 0, 500, 450); tray = new Rectangle(0, 0, 150, 400); pieceLayer = new Sprite(); addChild(pieceLayer); if (_arg10){ instructions = new SolveInstructions(); addChild(instructions); }; if (_arg8){ this.styles = _arg8; style = _arg8[0]; if (_arg8.length > 1){ styleSelect = new StyleSelect(); addChild(styleSelect); styleUpButton = (styleSelect.getChildByName("upButton") as Sprite); styleDownButton = (styleSelect.getChildByName("downButton") as Sprite); styleField = (styleSelect.getChildByName("styleField") as TextField); styleUpButton.buttonMode = true; styleDownButton.buttonMode = true; styleUpButton.addEventListener(MouseEvent.CLICK, prevStyle); styleDownButton.addEventListener(MouseEvent.CLICK, nextStyle); updateStyleField(); }; }; cutPuzzle(); this.loadFrame = _arg6; if (_arg6){ puzzleLoad = new PuzzleLoad(); addChild(puzzleLoad); _local12 = (puzzleLoad.getChildByName("title") as MovieClip); _local12.gotoAndStop(_arg6); _local13 = (puzzleLoad.getChildByName("levelAnimation") as MovieClip); _local13.gotoAndStop(_arg6); _local13.cacheAsBitmap = true; }; addEventListener(Event.ADDED_TO_STAGE, addedToStage); } protected function updateCheersButton():void{ if (Main.showCheers){ cheersButton.gotoAndStop("On"); } else { cheersButton.gotoAndStop("Off"); }; } protected function cheersButtonClick(_arg1:MouseEvent):void{ Main.showCheers = !(Main.showCheers); updateCheersButton(); } protected function getPieceUnder(_arg1:Number, _arg2:Number):PuzzlePiece{ var _local4:PuzzlePiece; var _local5:uint; if (!cut){ return (null); }; var _local3:int = (pieces.length - 1); while (_local3 >= 0) { _local4 = pieces[_local3]; _local5 = _local4.bitmapData.getPixel32((_arg1 - _local4.x), (_arg2 - _local4.y)); if ((_local5 & 4278190080) != 0){ return (_local4); }; _local3--; }; return (null); } protected function render(_arg1:IBitmapDrawable):void{ var _local2:PuzzlePiece; canvas.fillRect(canvas.rect, 0); canvas.draw(_arg1); for each (_local2 in pieces) { _local2.draw(canvas); }; } protected function mouseMove(_arg1:MouseEvent):void{ var _local2:Point; var _local3:PuzzlePiece; if (currentPiece){ if (workSpace.contains(mouseX, mouseY)){ currentPiece.x = (mouseX - dragOffset.x); currentPiece.y = (mouseY - dragOffset.y); _local2 = currentPiece.error; for each (_local3 in currentPiece.connected) { _local3.error = _local2; }; stage.invalidate(); } else { drop(); }; }; } public function dispose():void{ var _local1:PuzzlePiece; Main.restoreFrameRate(); Main.unlockQuality(); Main.revertQuality(); removeEventListener(Event.ADDED_TO_STAGE, addedToStage); removeEventListener(Event.ENTER_FRAME, enterFrame); removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown); if (stage){ removeEventListener(MouseEvent.MOUSE_UP, mouseUp); }; if (stage){ removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove); }; if (pieces){ while (pieces.length > 0) { _local1 = pieces.pop(); _local1.dispose(); }; }; canvas.dispose(); if (clickAnywhere.parent){ clickAnywhere.parent.removeChild(clickAnywhere); }; if (puzzleLoad){ if (puzzleLoad.parent){ puzzleLoad.parent.removeChild(puzzleLoad); }; puzzleLoad = null; }; if (styleSelect){ if (styleSelect.parent){ styleSelect.parent.removeChild(styleSelect); }; styleUpButton.removeEventListener(MouseEvent.CLICK, prevStyle); styleDownButton.removeEventListener(MouseEvent.CLICK, nextStyle); }; backgroundButton.removeEventListener(MouseEvent.CLICK, backgroundButtonClick); if (backgroundButton.parent){ backgroundButton.parent.removeChild(backgroundButton); }; cheersButton.removeEventListener(MouseEvent.CLICK, cheersButtonClick); if (cheersButton.parent){ cheersButton.parent.removeChild(cheersButton); }; } protected function mouseUp(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUp); drop(); } protected function showPieces():void{ var _local1:PuzzlePiece; var _local2:Sprite; Main.unlockQuality(); Main.revertQuality(); for each (_local1 in pieces) { pieceLayer.addChild(_local1); }; _local2 = new TimeDisplay(); timeField = (_local2.getChildByName("timeField") as TextField); _local2.x = 650; addChild(_local2); startTime = new Date().getTime(); updateTime(); } protected function addedToStage(_arg1:Event):void{ addEventListener(Event.ENTER_FRAME, enterFrame); addEventListener(MouseEvent.MOUSE_DOWN, mouseDown); stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove); } protected function nextStyle(_arg1:MouseEvent):void{ var _local2:int = styles.indexOf(style); _local2 = ((_local2 + 1) % styles.length); style = styles[_local2]; updateStyleField(); } protected function enterFrame(_arg1:Event):void{ var _local2:PuzzlePiece; draw(); if (winTime){ winTime++; if (winTime < WIN_TIME){ canvasDisplay.alpha = (winTime / WIN_TIME); } else { if (winTime == WIN_TIME){ for each (_local2 in pieces) { if (_local2.parent){ _local2.parent.removeChild(_local2); }; }; } else { checkClose(); winTime = (WIN_TIME + 1); }; }; } else { if (startTime){ updateTime(); }; }; } protected function cutPuzzle():void{ var _local1:int; var _local2:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:int; var _local12:int; var _local13:PuzzlePiece; if (styleSelect){ if (styleSelect.parent){ styleSelect.parent.removeChild(styleSelect); }; styleUpButton.removeEventListener(MouseEvent.CLICK, prevStyle); styleDownButton.removeEventListener(MouseEvent.CLICK, nextStyle); if (previewPiece.parent){ previewPiece.parent.removeChild(previewPiece); }; }; if ((((loadFrame == 6)) || ((loadFrame == 5)))){ Main.setFrameRate(20); }; Main.tempQuality("high"); PuzzlePiece.setStyle(style); pieces = new Array(); var _local3:Array = new Array(); _local1 = 0; while (_local1 < xPieces) { _local3[_local1] = new Array(); _local2 = 0; while (_local2 < yPieces) { _local5 = Math.round(((_local1 * w) / xPieces)); _local6 = Math.round(((_local2 * h) / yPieces)); _local7 = (Math.round((((_local1 + 1) * w) / xPieces)) - _local5); _local8 = (Math.round((((_local2 + 1) * h) / yPieces)) - _local6); _local9 = 0; _local10 = 0; _local11 = 0; _local12 = 0; if (_local1 > 0){ _local11 = _local3[(_local1 - 1)][_local2].rightEdge; }; if (_local1 < (xPieces - 1)){ _local12 = PuzzlePiece.randomEdge(); }; if (_local2 > 0){ _local9 = _local3[_local1][(_local2 - 1)].bottomEdge; }; if (_local2 < (yPieces - 1)){ _local10 = PuzzlePiece.randomEdge(); }; _local13 = new PuzzlePiece(_local5, _local6, _local7, _local8, _local11, _local9, _local12, _local10); _local3[_local1][_local2] = _local13; pieces.push(_local13); placePiece(_local13, _local7, _local8); _local2++; }; _local1++; }; topLeft = pieces[0]; _local1 = 0; while (_local1 < xPieces) { _local2 = 0; while (_local2 < (yPieces - 1)) { _local3[_local1][_local2].neighbours.push(_local3[_local1][(_local2 + 1)]); _local3[_local1][(_local2 + 1)].neighbours.push(_local3[_local1][_local2]); _local2++; }; _local1++; }; _local1 = 0; while (_local1 < (xPieces - 1)) { _local2 = 0; while (_local2 < yPieces) { _local3[_local1][_local2].neighbours.push(_local3[(_local1 + 1)][_local2]); _local3[(_local1 + 1)][_local2].neighbours.push(_local3[_local1][_local2]); _local2++; }; _local1++; }; var _local4:Array = pieces; pieces = new Array(); while (_local4.length) { _local1 = int((Math.random() * _local4.length)); pieces.push(_local4[_local1]); _local4.splice(_local1, 1); }; Main.revertQuality(); Main.lockQuality(); cut = true; showPieces(); if (puzzleLoad){ if (puzzleLoad.parent){ puzzleLoad.parent.removeChild(puzzleLoad); }; puzzleLoad = null; }; if (instructions){ if (instructions.parent){ instructions.parent.removeChild(instructions); }; }; } protected function bringToFront(_arg1:PuzzlePiece):void{ var _local2:int = pieces.indexOf(_arg1); if (_local2 < 0){ return; }; pieces.splice(_local2, 1); pieces.push(_arg1); if (((_arg1) && (_arg1.parent))){ _arg1.parent.setChildIndex(_arg1, (_arg1.parent.numChildren - 1)); }; } protected function prevStyle(_arg1:MouseEvent):void{ var _local2:int = styles.indexOf(style); _local2 = (((_local2 - 1) + styles.length) % styles.length); style = styles[_local2]; updateStyleField(); } protected function placePiece(_arg1:PuzzlePiece, _arg2:int, _arg3:int):void{ var _local4:Number = 15; var _local5:Number = Math.random(); if (_local5 > 0.4){ _arg1.x = ((workSpace.x + _local4) + int((Math.random() * ((100 - _arg2) - (_local4 * 2))))); _arg1.y = ((workSpace.y + _local4) + int((Math.random() * ((workSpace.height - _arg3) - (_local4 * 2))))); if (Math.random() < 0.5){ _arg1.x = (_arg1.x + (650 - 100)); }; } else { _arg1.x = ((workSpace.x + _local4) + int((Math.random() * ((workSpace.width - _arg2) - (_local4 * 2))))); _arg1.y = ((workSpace.y + _local4) + int((Math.random() * ((100 - _arg3) - (_local4 * 2))))); }; } protected function draw():void{ render(display); } protected function checkClose():void{ dispatchEvent(new LevelEvent(LevelEvent.CLOSE)); controlBar.addChild(clickAnywhere); } protected function backgroundButtonClick(_arg1:MouseEvent):void{ Main.backgroundColor = ((Main.backgroundColor + 1) % 3); updateBackgroundButton(); } protected function pickup():void{ drop(); currentPiece = getPieceUnder(mouseX, mouseY); if (currentPiece){ dragOffset = new Point((mouseX - currentPiece.x), (mouseY - currentPiece.y)); bringToFront(currentPiece); }; } protected function updateTime():void{ time = (new Date().getTime() - startTime); var _local1:int = Math.ceil((time / 1000)); var _local2:String = ("" + (_local1 % 60)); while (_local2.length < 2) { _local2 = ("0" + _local2); }; timeField.text = ((("" + int((_local1 / 60))) + ":") + _local2); } protected function endGame():void{ Sounds.play(Sounds.WIN, 1.5); removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown); backgroundButton.removeEventListener(MouseEvent.CLICK, backgroundButtonClick); if (backgroundButton.parent){ backgroundButton.parent.removeChild(backgroundButton); }; cheersButton.removeEventListener(MouseEvent.CLICK, cheersButtonClick); if (cheersButton.parent){ cheersButton.parent.removeChild(cheersButton); }; canvasDisplay = new Bitmap(canvas, "auto", true); addChildAt(canvasDisplay, 0); canvasDisplay.alpha = 0; canvasDisplay.x = topLeft.error.x; canvasDisplay.y = topLeft.error.y; winTime = 1; updateTime(); dispatchEvent(new LevelEvent(LevelEvent.LEVEL_COMPLETE, false, false, 0, 0, 0, null, null, time)); Main.restoreFrameRate(); } protected function drop():void{ var _local1:PuzzlePiece; var _local2:PuzzlePiece; var _local3:int; var _local4:Point; var _local9:Boolean; var _local10:Point; var _local11:Object; var _local12:Cheer; if (!currentPiece){ return; }; var _local5:Point = currentPiece.error; var _local6:Array = currentPiece.connected; var _local7:Array = _local6.concat(); var _local8:Array = []; for each (_local1 in _local7) { for each (_local2 in _local1.neighbours) { if (_local7.indexOf(_local2) >= 0){ } else { if (_local2.error.subtract(_local5).length <= maxSnap){ _local8.push({p:_local1, n:_local2}); if ((_local6.indexOf(_local2) < 0)){ if (!_local4){ _local4 = _local2.error; }; _local6 = _local6.concat(_local2.connected); }; }; }; }; }; _local9 = false; if (_local6.length > _local7.length){ for each (_local1 in _local6) { _local1.error = _local4; _local1.connected = _local6; bringToFront(_local1); }; bringToFront(currentPiece); _local9 = true; }; if (((Main.showCheers) && ((_local8.length > 0)))){ _local10 = new Point(0, 0); for each (_local11 in _local8) { _local1 = _local11.p; _local2 = _local11.n; _local10.x = (_local10.x + ((((_local1.x + (_local1.width / 2)) + _local2.x) + (_local2.width / 2)) / 2)); _local10.y = (_local10.y + ((((_local1.y + (_local1.height / 2)) + _local2.y) + (_local2.height / 2)) / 2)); }; _local10.x = (_local10.x / _local8.length); _local10.y = (_local10.y / _local8.length); _local12 = new Cheer(); _local12.x = _local10.x; _local12.y = _local10.y; addChild(_local12); }; currentPiece = null; if (_local6.length == pieces.length){ endGame(); } else { if (_local9){ Sounds.play(Sounds.CONNECT, 3); }; }; } protected function updateBackgroundButton():void{ var _local1:uint; switch (Main.backgroundColor){ case 0: default: _local1 = 0; break; case 1: _local1 = 0x606060; break; case 2: _local1 = 0xA0A0A0; break; }; var _local2:Graphics = backgroundButton.graphics; _local2.clear(); var _local3:Rectangle = backgroundButton.getBounds(backgroundButton); _local2.beginFill(0); _local2.drawRect(_local3.x, _local3.y, (_local3.width + 15), _local3.height); _local2.endFill(); _local2.beginFill(_local1); _local2.lineStyle(0, 0xFFFFFF); _local2.drawRect((_local3.right + 3), (_local3.bottom - 14), 11, 11); _local2.endFill(); _local2 = graphics; _local2.clear(); _local2.beginFill(_local1); _local2.drawRect(0, 0, 650, 450); _local2.endFill(); } protected function updateStyleField():void{ PuzzlePiece.setStyle(style); if (((previewPiece) && (previewPiece.parent))){ previewPiece.parent.removeChild(previewPiece); }; previewPiece = PuzzlePiece.previewPiece(50, 40); previewPiece.x = 300; previewPiece.y = 405; addChild(previewPiece); styleField.text = style.name; } protected function mouseDown(_arg1:MouseEvent):void{ stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp); pickup(); } } }//package
Section 131
//Puzzle_BackgroundButton (Puzzle_BackgroundButton) package { import mx.core.*; import flash.display.*; public class Puzzle_BackgroundButton extends SpriteAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 132
//Puzzle_CheersButton (Puzzle_CheersButton) package { import mx.core.*; import flash.display.*; public class Puzzle_CheersButton extends MovieClipAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; } }//package
Section 133
//Puzzle_ClickAnywhere (Puzzle_ClickAnywhere) package { import mx.core.*; import flash.display.*; public class Puzzle_ClickAnywhere extends SpriteAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; } }//package
Section 134
//Puzzle_PuzzleLoad (Puzzle_PuzzleLoad) package { import mx.core.*; import flash.display.*; public class Puzzle_PuzzleLoad extends SpriteAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; } }//package
Section 135
//Puzzle_SolveInstructions (Puzzle_SolveInstructions) package { import mx.core.*; import flash.display.*; public class Puzzle_SolveInstructions extends SpriteAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 136
//Puzzle_StyleSelect (Puzzle_StyleSelect) package { import mx.core.*; import flash.display.*; public class Puzzle_StyleSelect extends SpriteAsset { public var shadow:DisplayObject; public var downButton:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; } }//package
Section 137
//Puzzle_TimeDisplay (Puzzle_TimeDisplay) package { import mx.core.*; import flash.display.*; public class Puzzle_TimeDisplay extends SpriteAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 138
//PuzzlePiece (PuzzlePiece) package { import flash.display.*; import flash.geom.*; import flash.filters.*; public class PuzzlePiece extends Bitmap { public var rightEdge:int; public var connected:Array; protected var drawRect:Rectangle; public var bottomEdge:int; public var xOffset:int;// = 0 public var yOffset:int;// = 0 public var leftEdge:int; public var solvedY:Number; public var neighbours:Array; public var topEdge:int; public var solvedX:Number; protected var stencil:BitmapData; protected static var zeroPoint:Point = new Point(0, 0); protected static var cutout:Sprite; protected static var edgesB:MovieClip; protected static var edgesL:MovieClip; protected static var edgesR:MovieClip; protected static var edges:Sprite; protected static var edgesT:MovieClip; public function PuzzlePiece(_arg1:int, _arg2:Number, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int){ this.solvedX = _arg1; this.solvedY = _arg2; leftEdge = _arg5; topEdge = _arg6; rightEdge = _arg7; bottomEdge = _arg8; neighbours = new Array(); connected = [this]; edgesL.gotoAndStop((_arg5 + 1)); edgesR.gotoAndStop((_arg7 + 1)); edgesT.gotoAndStop((_arg6 + 1)); edgesB.gotoAndStop((_arg8 + 1)); edges.scaleX = (_arg3 / 100); edges.scaleY = (_arg4 / 100); var _local9:Rectangle = edges.getBounds(cutout); _local9.inflate(4, 4); xOffset = _local9.x; yOffset = _local9.y; _arg3 = Math.ceil(_local9.width); _arg4 = Math.ceil(_local9.height); var _local10:Number = (500 / _arg3); var _local11:BitmapData = new BitmapData((_arg3 * _local10), (_arg4 * _local10), true, 4294967295); var _local12:Matrix = new Matrix(_local10, 0, 0, _local10, (-(xOffset) * _local10), (-(yOffset) * _local10)); _local11.draw(cutout, _local12); _local11.threshold(_local11, _local11.rect, zeroPoint, "<", 4294967295, 0); _local11.floodFill(0, 0, 0); _local11.applyFilter(_local11, _local11.rect, zeroPoint, new GlowFilter(4294967295, 1, 2, 2, 3, 1, false)); stencil = new BitmapData(_arg3, _arg4, true, 0); stencil.draw(_local11, new Matrix((1 / _local10), 0, 0, (1 / _local10))); var _local13:Matrix = new Matrix(1, 0, 0, 1, -(xOffset), -(yOffset)); stencil.draw(cutout, _local13, new ColorTransform(1, 1, 1, 0.2)); stencil.copyChannel(stencil, stencil.rect, zeroPoint, BitmapDataChannel.RED, BitmapDataChannel.ALPHA); var _local14 = 6; if (_arg5 == 0){ stencil.fillRect(new Rectangle(0, 0, _local14, stencil.height), 0); }; if (_arg7 == 0){ stencil.fillRect(new Rectangle(((stencil.width - 1) - _local14), 0, _local14, stencil.height), 0); }; if (_arg6 == 0){ stencil.fillRect(new Rectangle(0, 0, stencil.width, _local14), 0); }; if (_arg8 == 0){ stencil.fillRect(new Rectangle(0, ((stencil.height - 1) - _local14), stencil.width, _local14), 0); }; _local11.dispose(); super(new BitmapData(stencil.width, stencil.height), "auto", true); x = (_arg1 + xOffset); y = (_arg2 + yOffset); drawRect = new Rectangle(x, y, _arg3, _arg4); } public function draw(_arg1:BitmapData):void{ bitmapData.fillRect(bitmapData.rect, 0); bitmapData.copyPixels(_arg1, drawRect, zeroPoint, stencil); } public function get error():Point{ return (new Point((x - (solvedX + xOffset)), (y - (solvedY + yOffset)))); } public function dispose():void{ bitmapData.dispose(); } public function set error(_arg1:Point):void{ x = (_arg1.x + (solvedX + xOffset)); y = (_arg1.y + (solvedY + yOffset)); } public static function randomEdge():int{ return ((1 + int(((Math.random() * edgesL.totalFrames) - 1)))); } public static function previewPiece(_arg1:Number, _arg2:Number):Sprite{ edgesL.gotoAndStop(styleWrap((Math.random() * (edgesL.totalFrames - 2)))); edgesR.gotoAndStop(styleWrap((Math.random() * (edgesL.totalFrames - 2)))); edgesT.gotoAndStop(styleWrap((Math.random() * (edgesL.totalFrames - 2)))); edgesB.gotoAndStop(styleWrap((Math.random() * (edgesL.totalFrames - 2)))); var _local3:BitmapData = new BitmapData(_arg1, _arg2, true, 0); edges.scaleX = (edges.scaleX * (_arg1 / edges.width)); edges.scaleY = (edges.scaleY * (_arg2 / edges.height)); var _local4:Rectangle = edges.getBounds(cutout); _local3.draw(cutout, new Matrix(1, 0, 0, 1, -(_local4.x), -(_local4.y)), new ColorTransform(0, 0, 0, 1, 0xFF, 0xFF, 0xFF, 0)); var _local5:Sprite = new Sprite(); _local5.addChild(new Bitmap(_local3)); return (_local5); } private static function styleWrap(_arg1:int):int{ return (((((_arg1 + edgesL.totalFrames) - 2) % (edgesL.totalFrames - 1)) + 2)); } public static function setStyle(_arg1:Style):void{ var _local2:Class; _local2 = _arg1.EdgeLines; edgesL = (new (_local2) as MovieClip); edgesR = (new (_local2) as MovieClip); edgesT = (new (_local2) as MovieClip); edgesB = (new (_local2) as MovieClip); edgesR.x = 100; edgesB.y = 100; edgesT.rotation = -90; edgesB.rotation = -90; edges = new Sprite(); edges.addChild(edgesL); edges.addChild(edgesR); edges.addChild(edgesT); edges.addChild(edgesB); cutout = new Sprite(); cutout.addChild(edges); } } }//package
Section 139
//Sounds (Sounds) package { import flash.media.*; public class Sounds { public static const MUSIC:Array = [THEME_SONG, SAD_SONG, MONSTER_HUNTERS_SONG, DEAR_FRIENDS_SONG]; public static var WIN:Sound = (new WIN_CLASS() as Sound); protected static var THEME_SONG_CLASS:Class = Sounds_THEME_SONG_CLASS; public static var SAD_SONG:Sound = (new SAD_SONG_CLASS() as Sound); public static var CONNECT:Sound = (new CONNECT_CLASS() as Sound); public static var DEAR_FRIENDS_SONG:Sound = (new DEAR_FRIENDS_SONG_CLASS() as Sound); protected static var WIN_CLASS:Class = Sounds_WIN_CLASS; protected static var SAD_SONG_CLASS:Class = Sounds_SAD_SONG_CLASS; protected static var musicChannel:SoundChannel; protected static var CONNECT_CLASS:Class = Sounds_CONNECT_CLASS; protected static var DEAR_FRIENDS_SONG_CLASS:Class = Sounds_DEAR_FRIENDS_SONG_CLASS; public static var MONSTER_HUNTERS_SONG:Sound = (new MONSTER_HUNTERS_SONG_CLASS() as Sound); private static var _soundsOn:Boolean = true; public static var THEME_SONG:Sound = (new THEME_SONG_CLASS() as Sound); private static var _musicOn:Boolean = true; protected static var music:Sound; protected static var lastRandom:Sound; private static var _masterVolume:Number = 1; protected static var MONSTER_HUNTERS_SONG_CLASS:Class = Sounds_MONSTER_HUNTERS_SONG_CLASS; public static function set masterVolume(_arg1:Number):void{ _masterVolume = _arg1; SoundMixer.soundTransform = new SoundTransform(_arg1, 0); } public static function set soundsOn(_arg1:Boolean):void{ _soundsOn = _arg1; } public static function set musicOn(_arg1:Boolean):void{ _musicOn = _arg1; if (musicChannel){ if (_arg1){ musicChannel.soundTransform = SoundMixer.soundTransform; } else { musicChannel.soundTransform = new SoundTransform(0, 0); }; }; } public static function get soundsOn():Boolean{ return (_soundsOn); } public static function stopMusic():void{ if (musicChannel){ musicChannel.stop(); }; music = null; } public static function get masterVolume():Number{ return (_masterVolume); } public static function play(_arg1:Sound, _arg2:Number):void{ if (!soundsOn){ return; }; var _local3:SoundChannel = _arg1.play(); if (_local3){ _local3.soundTransform = new SoundTransform(SoundMixer.soundTransform.volume, _arg2); }; } public static function get musicOn():Boolean{ return (_musicOn); } public static function startMusic(_arg1:Sound):void{ if (_arg1 == music){ return; }; stopMusic(); if (!_arg1){ return; }; musicChannel = _arg1.play(0, int.MAX_VALUE); if (musicChannel){ music = _arg1; if (musicOn){ musicChannel.soundTransform = SoundMixer.soundTransform; } else { musicChannel.soundTransform = new SoundTransform(0, 0); }; }; } public static function getRandomSong():Sound{ var _local1:Sound = lastRandom; while (_local1 == lastRandom) { _local1 = MUSIC[int((Math.random() * MUSIC.length))]; }; lastRandom = _local1; return (_local1); } } }//package
Section 140
//Sounds_CONNECT_CLASS (Sounds_CONNECT_CLASS) package { import mx.core.*; import flash.display.*; public class Sounds_CONNECT_CLASS extends SoundAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 141
//Sounds_DEAR_FRIENDS_SONG_CLASS (Sounds_DEAR_FRIENDS_SONG_CLASS) package { import mx.core.*; import flash.display.*; public class Sounds_DEAR_FRIENDS_SONG_CLASS extends SoundAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 142
//Sounds_MONSTER_HUNTERS_SONG_CLASS (Sounds_MONSTER_HUNTERS_SONG_CLASS) package { import mx.core.*; import flash.display.*; public class Sounds_MONSTER_HUNTERS_SONG_CLASS extends SoundAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 143
//Sounds_SAD_SONG_CLASS (Sounds_SAD_SONG_CLASS) package { import mx.core.*; import flash.display.*; public class Sounds_SAD_SONG_CLASS extends SoundAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 144
//Sounds_THEME_SONG_CLASS (Sounds_THEME_SONG_CLASS) package { import mx.core.*; import flash.display.*; public class Sounds_THEME_SONG_CLASS extends SoundAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 145
//Sounds_WIN_CLASS (Sounds_WIN_CLASS) package { import mx.core.*; import flash.display.*; public class Sounds_WIN_CLASS extends SoundAsset { public var shadow:DisplayObject; public var styleField:DisplayObject; public var bar:DisplayObject; public var upButton:DisplayObject; public var levelAnimation:DisplayObject; public var downButton:DisplayObject; public var title:DisplayObject; public var timeField:DisplayObject; } }//package
Section 146
//Story (Story) package { import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; public class Story extends Sprite { protected var first1:int; protected var first3:int; protected var animation:MovieClip; protected var times:Array; protected var first2:int; protected var state:int;// = 0 protected var skipButton:Sprite; protected var last1:int; protected var last2:int; protected var last3:int; protected var storyNumber:int; protected var start:int; protected var end:int; protected var controlBar:Sprite; protected var puzzle:Puzzle; protected static const LEVEL_STYLES:Array = [{styles:[Style.ROUND], music:Sounds.DEAR_FRIENDS_SONG}, {styles:[Style.GLASS, Style.ROUND], music:Sounds.DEAR_FRIENDS_SONG}, {styles:[Style.CLAWS, Style.GLASS, Style.ROUND], music:Sounds.MONSTER_HUNTERS_SONG}, {styles:[Style.ROUND], music:Sounds.THEME_SONG}, {styles:[Style.GLASS, Style.ROUND], music:Sounds.MONSTER_HUNTERS_SONG}, {styles:[Style.CLAWS, Style.GLASS, Style.ROUND], music:Sounds.SAD_SONG}, {styles:[Style.ROUND], music:Sounds.MONSTER_HUNTERS_SONG}, {styles:[Style.GLASS, Style.ROUND], music:Sounds.SAD_SONG}, {styles:[Style.CLAWS, Style.GLASS, Style.ROUND], music:Sounds.DEAR_FRIENDS_SONG}]; protected static var SkipButton:Class = Story_SkipButton; public function Story(_arg1:int, _arg2:MovieClip, _arg3:Sprite, _arg4:Array){ var _local7:FrameLabel; var _local8:DisplayObject; super(); this.storyNumber = _arg1; this.animation = _arg2; this.controlBar = _arg3; this.times = ((_arg4) || (new Array())); skipButton = (new SkipButton() as Sprite); skipButton.addEventListener(MouseEvent.CLICK, skipClick); skipButton.buttonMode = true; skipButton.x = 616; skipButton.y = 20; var _local5:Sprite = new Sprite(); var _local6:int = (skipButton.numChildren - 1); while (_local6 >= 0) { _local8 = skipButton.getChildAt(_local6); if ((_local8 is StaticText)){ _local5.addChild(_local8); break; }; _local6--; }; skipButton.addChild(_local5); skipButton.hitArea = _local5; _arg2.gotoAndStop(1, ("Scene " + _arg1)); start = 1; end = _arg2.currentScene.numFrames; for each (_local7 in _arg2.currentScene.labels) { if (_local7.name.substr(0, 5).toLowerCase() == "first"){ switch (_local7.name.charAt(6)){ case "1": first1 = _local7.frame; break; case "2": first2 = _local7.frame; break; case "3": first3 = _local7.frame; break; }; } else { if (_local7.name.substr(0, 4).toLowerCase() == "last"){ switch (_local7.name.charAt(5)){ case "1": last1 = _local7.frame; break; case "2": last2 = _local7.frame; break; case "3": last3 = _local7.frame; break; }; }; }; }; if (_arg4.length < 1){ _arg4[0] = null; }; if (_arg4.length > 3){ while (_arg4.length > 1) { _arg4.pop(); }; }; state = _arg4.length; playAnimation(); } protected function stopAnimation():void{ if (skipButton.parent){ skipButton.parent.removeChild(skipButton); }; removeEventListener(Event.ENTER_FRAME, enterFrame); animation.stop(); if (animation.parent == this){ removeChild(animation); }; } protected function skipClick(_arg1:MouseEvent):void{ switch (state){ case 1: case 2: case 3: playLevel(state); break; case 4: win(); break; }; } protected function puzzleComplete(_arg1:LevelEvent):void{ if (!puzzle){ return; }; times[state] = _arg1.time; dispatchEvent(new LevelEvent(LevelEvent.LEVEL_COMPLETE, false, false, storyNumber, state)); if (state == 3){ dispatchEvent(new LevelEvent(LevelEvent.STORY_COMPLETE, false, false, storyNumber)); }; } protected function puzzleClose(_arg1:LevelEvent):void{ if (!puzzle){ return; }; stage.addEventListener(MouseEvent.CLICK, puzzleClick); } public function dispose():void{ if (puzzle){ puzzle.dispose(); removeChild(puzzle); puzzle.removeEventListener(Event.COMPLETE, puzzleComplete); puzzle.removeEventListener(Event.CLOSE, puzzleClose); puzzle = null; }; if (stage){ stage.removeEventListener(MouseEvent.CLICK, puzzleClick); }; skipButton.removeEventListener(MouseEvent.CLICK, skipClick); if (skipButton.parent){ skipButton.parent.removeChild(skipButton); }; removeEventListener(Event.ENTER_FRAME, enterFrame); } public function win():void{ stopAnimation(); dispatchEvent(new LevelEvent(LevelEvent.CLOSE)); } protected function playAnimation():void{ var _local1 = 1; switch (state){ default: _local1 = 1; break; case 2: _local1 = (first1 + 1); break; case 3: _local1 = (first2 + 1); break; case 4: _local1 = (first3 + 1); break; }; Sounds.stopMusic(); animation.scaleX = (animation.scaleY = 1); animation.x = (animation.y = 0); addChildAt(animation, 0); animation.gotoAndPlay(_local1); addEventListener(Event.ENTER_FRAME, enterFrame); if (state <= 3){ controlBar.addChild(skipButton); }; } protected function enterFrame(_arg1:Event):void{ switch (animation.currentFrame){ case first1: playLevel(1); break; case first2: playLevel(2); break; case first3: playLevel(3); break; case end: win(); break; }; } protected function playLevel(_arg1:int):void{ var _local2:int; var _local3:int; stopAnimation(); switch (_arg1){ case 1: _local2 = first1; _local3 = last1; break; case 2: _local2 = first2; _local3 = last2; break; case 3: _local2 = first3; _local3 = last3; break; }; var _local4:int = ((((storyNumber - 1) * 3) + _arg1) - 1); var _local5:Sound = LEVEL_STYLES[_local4].music; var _local6:int = (3 + (_arg1 * 1)); var _local7:Number = 0.5; animation.scaleX = (animation.scaleY = _local7); puzzle = new CachedPuzzle("", animation, _local2, _local3, (650 * _local7), (450 * _local7), _local6, (((storyNumber - 1) * 3) + _arg1), controlBar, [Style.STRAIGHT], _local5, true); puzzle.addEventListener(LevelEvent.LEVEL_COMPLETE, puzzleComplete); puzzle.addEventListener(LevelEvent.CLOSE, puzzleClose); addChildAt(puzzle, 0); } protected function puzzleClick(_arg1:MouseEvent):void{ if (!puzzle){ return; }; stage.removeEventListener(MouseEvent.CLICK, puzzleClick); puzzle.dispose(); removeChild(puzzle); puzzle.removeEventListener(Event.COMPLETE, puzzleComplete); puzzle.removeEventListener(Event.CLOSE, puzzleClose); puzzle = null; state++; playAnimation(); } } }//package
Section 147
//Story_SkipButton (Story_SkipButton) package { import mx.core.*; import flash.display.*; public class Story_SkipButton extends SpriteAsset { public var shadow:DisplayObject; public var bar:DisplayObject; } }//package
Section 148
//StoryMenu (StoryMenu) package { import flash.events.*; import flash.display.*; public class StoryMenu extends MenuScreen { public var buttons:Array; public var unlock21:MovieClip; public var unlock22:MovieClip; public var unlock23:MovieClip; public var captions:MovieClip; public var unlock1full:MovieClip; public var captionsBackground:MovieClip; public var unlock31:MovieClip; public var unlock32:MovieClip; public var unlock11:MovieClip; public var unlock12:MovieClip; public var unlock13:MovieClip; public var unlock33:MovieClip; public var story1Button:Sprite; public var story2Button:Sprite; public var story3Button:Sprite; public var unlock2full:MovieClip; public var unlock3full:MovieClip; public function StoryMenu(){ var _local1:MovieClip; var _local3:MovieClip; var _local4:Boolean; var _local5:int; var _local6:Boolean; super(); var _local2 = 1; while (_local2 <= 3) { _local4 = true; _local5 = 1; while (_local5 <= 3) { _local1 = (getChildByName(((("unlock" + _local2) + "") + _local5)) as MovieClip); _local6 = Main.getUnlocked(_local2, _local5); if (_local6){ _local1.gotoAndStop(2); } else { _local1.gotoAndStop(1); _local4 = false; }; _local5++; }; _local1 = (getChildByName((("unlock" + _local2) + "full")) as MovieClip); _local1.visible = _local4; _local2++; }; buttons = [story1Button, story2Button, story3Button]; for each (_local3 in buttons) { _local3.buttonMode = true; _local3.addEventListener(MouseEvent.CLICK, buttonClick); _local3.addEventListener(MouseEvent.ROLL_OVER, buttonRollOver); _local3.addEventListener(MouseEvent.ROLL_OUT, buttonRollOut); addSoundButton(_local3); }; captions.visible = false; captionsBackground.gotoAndStop(1); captionsBackground.addFrameScript((captionsBackground.totalFrames - 12), showCaptions); captionsBackground.addFrameScript((captionsBackground.totalFrames - 1), captionsBackground.stop); } protected function hideCaptions():void{ captionsBackground.gotoAndStop(1); captions.visible = false; } protected function buttonClick(_arg1:MouseEvent):void{ switch (_arg1.target){ case story1Button: dispatchEvent(new LevelEvent(LevelEvent.PLAY, false, false, 1)); break; case story2Button: dispatchEvent(new LevelEvent(LevelEvent.PLAY, false, false, 2)); break; case story3Button: dispatchEvent(new LevelEvent(LevelEvent.PLAY, false, false, 3)); break; }; } protected function buttonRollOver(_arg1:MouseEvent):void{ switch (_arg1.target){ case story1Button: popCaption(1); break; case story2Button: popCaption(2); break; case story3Button: popCaption(3); break; }; } protected function popCaption(_arg1:int):void{ captionsBackground.gotoAndPlay(1); captions.gotoAndStop(_arg1); captions.visible = false; } override public function dispose():void{ var _local1:MovieClip; for each (_local1 in buttons) { _local1.removeEventListener(MouseEvent.CLICK, buttonClick); _local1.removeEventListener(MouseEvent.ROLL_OVER, buttonRollOver); _local1.removeEventListener(MouseEvent.ROLL_OUT, buttonRollOut); }; super.dispose(); } protected function showCaptions():void{ captions.visible = true; } protected function buttonRollOut(_arg1:MouseEvent):void{ hideCaptions(); } } }//package
Section 149
//StoryPopup (StoryPopup) package { import flash.events.*; import flash.display.*; public class StoryPopup extends MenuScreen { public var buttons:Array; public var backgrounds:Array; public var restartButton:Sprite; public var continueBackground:MovieClip; public var continueButton:Sprite; public var story:int; public var restartBackground:MovieClip; public function StoryPopup(_arg1:int){ var _local2:MovieClip; var _local3:Sprite; super(); this.story = _arg1; buttons = [continueButton, restartButton]; backgrounds = [continueBackground, restartBackground]; for each (_local2 in backgrounds) { _local2.stop(); _local2.addFrameScript((_local2.totalFrames - 1), _local2.stop); }; for each (_local3 in buttons) { _local3.buttonMode = true; _local3.addEventListener(MouseEvent.CLICK, buttonClick); _local3.addEventListener(MouseEvent.ROLL_OVER, buttonRollOver); _local3.addEventListener(MouseEvent.ROLL_OUT, buttonRollOut); addSoundButton(_local3); }; } protected function buttonRollOver(_arg1:MouseEvent):void{ switch (_arg1.target){ case continueButton: continueBackground.gotoAndPlay(1); break; case restartButton: restartBackground.gotoAndPlay(1); break; }; } protected function buttonRollOut(_arg1:MouseEvent):void{ switch (_arg1.target){ case continueButton: continueBackground.gotoAndStop(1); break; case restartButton: restartBackground.gotoAndStop(1); break; }; } protected function buttonClick(_arg1:MouseEvent):void{ switch (_arg1.target){ case continueButton: dispatchEvent(new MenuEvent(MenuEvent.CONTINUE, false, false, story)); break; case restartButton: dispatchEvent(new MenuEvent(MenuEvent.RESTART, false, false, story)); break; }; } override public function dispose():void{ var _local1:Sprite; for each (_local1 in buttons) { _local1.removeEventListener(MouseEvent.CLICK, buttonClick); _local1.removeEventListener(MouseEvent.ROLL_OVER, buttonRollOver); _local1.removeEventListener(MouseEvent.ROLL_OUT, buttonRollOut); }; super.dispose(); } } }//package
Section 150
//Style (Style) package { public class Style { public var EdgeLines:Class; public var name:String; public static const BARS:Style = new Style("Bars", EdgeLines4); ; public static const CLAWS:Style = new Style("Claws", EdgeLines3); ; public static const SWIRL:Style = new Style("Swirl", EdgeLines7); ; public static const GLASS:Style = new Style("Glass", EdgeLines2); ; public static const HIGHFIVE:Style = new Style("High Five!", EdgeLines10); ; public static const ROUND:Style = new Style("Round", EdgeLines1); ; public static const CRAZY:Style = new Style("Crazy!", EdgeLines9); ; public static const LOVE:Style = new Style("Love", EdgeLines11); ; public static const STYLES:Array = [STRAIGHT, ROUND, GLASS, CLAWS, BARS, KEYS, SWIRL, CRAZY, HIGHFIVE, LOVE]; public static const STRAIGHT:Style = new Style("Straight", EdgeLines0); ; public static const KEYS:Style = new Style("Keys", EdgeLines5); ; protected static var EdgeLines10:Class = Style_EdgeLines10; protected static var EdgeLines11:Class = Style_EdgeLines11; protected static var EdgeLines0:Class = Style_EdgeLines0; protected static var EdgeLines1:Class = Style_EdgeLines1; protected static var EdgeLines2:Class = Style_EdgeLines2; protected static var EdgeLines3:Class = Style_EdgeLines3; protected static var EdgeLines4:Class = Style_EdgeLines4; protected static var EdgeLines5:Class = Style_EdgeLines5; protected static var EdgeLines7:Class = Style_EdgeLines7; protected static var EdgeLines9:Class = Style_EdgeLines9; public function Style(_arg1:String, _arg2:Class){ this.name = _arg1; this.EdgeLines = _arg2; } public static function findStyle(_arg1:String):Style{ var _local2:Style; for each (_local2 in STYLES) { if (_arg1 == _local2.name){ return (_local2); }; }; return (null); } } }//package
Section 151
//Style_EdgeLines0 (Style_EdgeLines0) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines0 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 152
//Style_EdgeLines1 (Style_EdgeLines1) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines1 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 153
//Style_EdgeLines10 (Style_EdgeLines10) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines10 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 154
//Style_EdgeLines11 (Style_EdgeLines11) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines11 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 155
//Style_EdgeLines2 (Style_EdgeLines2) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines2 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 156
//Style_EdgeLines3 (Style_EdgeLines3) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines3 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 157
//Style_EdgeLines4 (Style_EdgeLines4) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines4 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 158
//Style_EdgeLines5 (Style_EdgeLines5) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines5 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 159
//Style_EdgeLines7 (Style_EdgeLines7) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines7 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package
Section 160
//Style_EdgeLines9 (Style_EdgeLines9) package { import mx.core.*; import flash.display.*; public class Style_EdgeLines9 extends MovieClipAsset { public var backButton:DisplayObject; public var button22:DisplayObject; public var storyBackground:DisplayObject; public var scroll1:DisplayObject; public var storyField:DisplayObject; public var styleDownButton:DisplayObject; public var webcamButton:DisplayObject; public var button31:DisplayObject; public var button33:DisplayObject; public var bar:DisplayObject; public var scroll2:DisplayObject; public var button32:DisplayObject; public var customButton:DisplayObject; public var shadow:DisplayObject; public var restartButton:DisplayObject; public var reportField:DisplayObject; public var timeField:DisplayObject; public var story1Button:DisplayObject; public var continueBackground:DisplayObject; public var block1:DisplayObject; public var block2:DisplayObject; public var block3:DisplayObject; public var captions:DisplayObject; public var timesField:DisplayObject; public var moviesButton:DisplayObject; public var title:DisplayObject; public var captionsBackground:DisplayObject; public var unlock11:DisplayObject; public var unlock12:DisplayObject; public var unlock13:DisplayObject; public var levelAnimation:DisplayObject; public var creditsBackground:DisplayObject; public var creditsButton:DisplayObject; public var block11:DisplayObject; public var block12:DisplayObject; public var block13:DisplayObject; public var downButton:DisplayObject; public var backBackground:DisplayObject; public var story2Button:DisplayObject; public var lock3:DisplayObject; public var musicDownButton:DisplayObject; public var unlock1full:DisplayObject; public var unlock3full:DisplayObject; public var customBackground:DisplayObject; public var unlock21:DisplayObject; public var unlock22:DisplayObject; public var unlock23:DisplayObject; public var storyButton:DisplayObject; public var lock2:DisplayObject; public var lock11:DisplayObject; public var styleUpButton:DisplayObject; public var block23:DisplayObject; public var difficultyUpButton:DisplayObject; public var block21:DisplayObject; public var lock12:DisplayObject; public var block22:DisplayObject; public var restartBackground:DisplayObject; public var difficultyDownButton:DisplayObject; public var lock1:DisplayObject; public var unlock32:DisplayObject; public var unlock33:DisplayObject; public var lock13:DisplayObject; public var unlock31:DisplayObject; public var block31:DisplayObject; public var block32:DisplayObject; public var upButton:DisplayObject; public var story3Button:DisplayObject; public var lock21:DisplayObject; public var lock22:DisplayObject; public var lock23:DisplayObject; public var block33:DisplayObject; public var continueButton:DisplayObject; public var styleField:DisplayObject; public var lock32:DisplayObject; public var lock33:DisplayObject; public var lock31:DisplayObject; public var moviesBackground:DisplayObject; public var button11:DisplayObject; public var button12:DisplayObject; public var button13:DisplayObject; public var musicField:DisplayObject; public var button21:DisplayObject; public var button23:DisplayObject; public var musicUpButton:DisplayObject; public var unlock2full:DisplayObject; public var difficultyField:DisplayObject; } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:3
Symbol 3 MovieClip {Factory_Title} [Title]Uses:2
Symbol 4 GraphicUsed by:41 98
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:7 8
Symbol 7 MovieClipUses:6Used by:8
Symbol 8 MovieClipUses:7 6Used by:41
Symbol 9 GraphicUsed by:37
Symbol 10 GraphicUsed by:12 352
Symbol 11 GraphicUsed by:12 352
Symbol 12 MovieClipUses:10 11Used by:37
Symbol 13 GraphicUsed by:37
Symbol 14 GraphicUsed by:37
Symbol 15 GraphicUsed by:37
Symbol 16 GraphicUsed by:37
Symbol 17 GraphicUsed by:37
Symbol 18 GraphicUsed by:37
Symbol 19 GraphicUsed by:37
Symbol 20 GraphicUsed by:37
Symbol 21 GraphicUsed by:37
Symbol 22 GraphicUsed by:37
Symbol 23 GraphicUsed by:37
Symbol 24 GraphicUsed by:37 352
Symbol 25 GraphicUsed by:37
Symbol 26 GraphicUsed by:37
Symbol 27 GraphicUsed by:37
Symbol 28 GraphicUsed by:37
Symbol 29 GraphicUsed by:37
Symbol 30 GraphicUsed by:37
Symbol 31 GraphicUsed by:37
Symbol 32 GraphicUsed by:37
Symbol 33 GraphicUsed by:37
Symbol 34 GraphicUsed by:37
Symbol 35 GraphicUsed by:37
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:9 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36Used by:38
Symbol 38 MovieClipUses:37Used by:41
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:41
Symbol 41 MovieClip {Factory_TitleBackground} [TitleBackground]Uses:4 8 38 40
Symbol 42 GraphicUsed by:49
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:43Used by:49
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:45Used by:49
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClipUses:47Used by:49
Symbol 49 MovieClip {LoadBar} [LoadBar]Uses:42 44 46 48
Symbol 50 GraphicUsed by:53
Symbol 51 GraphicUsed by:53
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClip {PlayButton} [PlayButton]Uses:50 51 52
Symbol 54 BinaryData {Factory_NewgroundsAd_dataClass}
Symbol 55 MovieClip {Main_Animation}
Symbol 56 GraphicUsed by:76
Symbol 57 GraphicUsed by:59
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:57 58Used by:76 100 110 118 234 248 280 295 300
Symbol 60 GraphicUsed by:62 76 124
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:60 61Used by:76 100 110 118 234 248 295 300
Symbol 63 GraphicUsed by:69
Symbol 64 FontUsed by:66 67 68 88 90 91 92 112 127 138 139 140 244 245 279 282 283 284 297
Symbol 65 FontUsed by:66 67 87 88 90 91 92 93 109 127 238 242 243 297 318 320 324 331 333 339 347 351 360
Symbol 66 TextUses:64 65Used by:69
Symbol 67 TextUses:65 64Used by:69
Symbol 68 TextUses:64Used by:69
Symbol 69 MovieClipUses:63 66 67 68Used by:76
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:70Used by:76 100
Symbol 72 GraphicUsed by:73
Symbol 73 MovieClipUses:72Used by:76 110 118 234 295 300
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:74Used by:76 100 110 118 234 248 295 300
Symbol 76 MovieClip {Credits} [Credits]Uses:56 59 60 62 69 71 73 75
Symbol 77 GraphicUsed by:79
Symbol 78 GraphicUsed by:79 123
Symbol 79 MovieClip {Main_SoundButton} [SoundButton]Uses:77 78
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:80Used by:100 295
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:100 300
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:100 234
Symbol 86 GraphicUsed by:94
Symbol 87 TextUses:65Used by:94
Symbol 88 TextUses:64 65Used by:89
Symbol 89 MovieClipUses:88Used by:94
Symbol 90 TextUses:64 65Used by:94
Symbol 91 TextUses:64 65Used by:94
Symbol 92 TextUses:64 65Used by:94
Symbol 93 TextUses:65Used by:94
Symbol 94 MovieClipUses:86 87 89 90 91 92 93Used by:100
Symbol 95 GraphicUsed by:97
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClipUses:95 96Used by:98 144
Symbol 98 MovieClipUses:4 97Used by:99
Symbol 99 MovieClipUses:98Used by:100
Symbol 100 MovieClip {Menu} [MainMenu]Uses:62 59 81 71 83 85 94 75 99
Symbol 101 GraphicUsed by:105 237
Symbol 102 GraphicUsed by:105
Symbol 103 GraphicUsed by:105
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClip {Main_QualityButton} [QualityButton]Uses:101 102 103 104
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:110 118 248
Symbol 108 GraphicUsed by:110
Symbol 109 TextUses:65Used by:110
Symbol 110 MovieClip {NoWebcamPopup} [NoWebcam]Uses:107 59 108 109 62 73 75
Symbol 111 GraphicUsed by:118
Symbol 112 TextUses:64Used by:113
Symbol 113 MovieClipUses:112Used by:118
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:114Used by:118
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:116Used by:118
Symbol 118 MovieClip {StoryPopup} [StoryPopup]Uses:107 111 59 62 113 73 115 117 75
Symbol 119 FontUsed by:120 355 357 362 363 365 448
Symbol 120 TextUses:119Used by:121
Symbol 121 MovieClip {Main_MenuButton} [MenuButton]Uses:120
Symbol 122 GraphicUsed by:123
Symbol 123 MovieClip {Main_MusicButton} [MusicButton]Uses:122 78
Symbol 124 MovieClip {Main_MenuControls} [MenuControls]Uses:60
Symbol 125 GraphicUsed by:234
Symbol 126 GraphicUsed by:234 295 300
Symbol 127 TextUses:64 65Used by:234
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClipUses:128Used by:234 353
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:234 353
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClipUses:132Used by:234 353
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClipUses:134Used by:234
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:136Used by:234 361
Symbol 138 EditableTextUses:64Used by:234
Symbol 139 EditableTextUses:64Used by:234
Symbol 140 EditableTextUses:64Used by:234
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:141Used by:234
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClipUses:143 97Used by:234
Symbol 145 GraphicUsed by:153
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:146Used by:153 184 189
Symbol 148 GraphicUsed by:153
Symbol 149 GraphicUsed by:153
Symbol 150 GraphicUsed by:153
Symbol 151 GraphicUsed by:153
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClipUses:145 147 148 149 150 151 152Used by:234
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClipUses:154Used by:234
Symbol 156 GraphicUsed by:164
Symbol 157 GraphicUsed by:164
Symbol 158 GraphicUsed by:164
Symbol 159 GraphicUsed by:164
Symbol 160 GraphicUsed by:164
Symbol 161 GraphicUsed by:164
Symbol 162 GraphicUsed by:164
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClipUses:156 157 158 159 160 161 162 163Used by:234
Symbol 165 GraphicUsed by:173
Symbol 166 GraphicUsed by:173
Symbol 167 GraphicUsed by:173
Symbol 168 GraphicUsed by:173
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:173
Symbol 171 GraphicUsed by:173
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:165 166 167 168 170 171 172Used by:234
Symbol 174 GraphicUsed by:234
Symbol 175 GraphicUsed by:184
Symbol 176 GraphicUsed by:184
Symbol 177 GraphicUsed by:184
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:178Used by:184 189
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClipUses:180Used by:184
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClipUses:182Used by:184
Symbol 184 MovieClipUses:175 176 177 179 181 147 183Used by:234
Symbol 185 GraphicUsed by:189
Symbol 186 GraphicUsed by:189
Symbol 187 GraphicUsed by:188
Symbol 188 MovieClipUses:187Used by:189
Symbol 189 MovieClipUses:185 186 179 188 147Used by:234
Symbol 190 GraphicUsed by:209
Symbol 191 GraphicUsed by:209
Symbol 192 GraphicUsed by:209 221
Symbol 193 GraphicUsed by:209 221
Symbol 194 GraphicUsed by:209 221
Symbol 195 GraphicUsed by:209
Symbol 196 GraphicUsed by:209
Symbol 197 GraphicUsed by:209
Symbol 198 GraphicUsed by:209
Symbol 199 GraphicUsed by:209
Symbol 200 GraphicUsed by:209
Symbol 201 GraphicUsed by:209
Symbol 202 GraphicUsed by:209
Symbol 203 GraphicUsed by:209 221 266
Symbol 204 GraphicUsed by:209
Symbol 205 GraphicUsed by:209
Symbol 206 GraphicUsed by:209
Symbol 207 GraphicUsed by:208
Symbol 208 MovieClipUses:207Used by:209
Symbol 209 MovieClipUses:190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 208Used by:234
Symbol 210 GraphicUsed by:221
Symbol 211 GraphicUsed by:221
Symbol 212 GraphicUsed by:221
Symbol 213 GraphicUsed by:221
Symbol 214 GraphicUsed by:221
Symbol 215 GraphicUsed by:221
Symbol 216 GraphicUsed by:221
Symbol 217 GraphicUsed by:221
Symbol 218 GraphicUsed by:221
Symbol 219 GraphicUsed by:221
Symbol 220 GraphicUsed by:221
Symbol 221 MovieClipUses:210 211 192 193 194 212 213 214 215 216 217 203 218 219 220Used by:234
Symbol 222 GraphicUsed by:229
Symbol 223 GraphicUsed by:229
Symbol 224 GraphicUsed by:229
Symbol 225 GraphicUsed by:229 266
Symbol 226 GraphicUsed by:229
Symbol 227 GraphicUsed by:229
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClipUses:222 223 224 225 226 227 228Used by:234
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:230Used by:234
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClipUses:232Used by:234 295
Symbol 234 MovieClip {CustomMenu} [CustomMenu]Uses:59 125 126 62 127 129 131 133 135 137 138 139 140 85 73 75 142 144 153 155 164 173 174 184 189 209 221 229 231 233
Symbol 235 GraphicUsed by:236
Symbol 236 MovieClipUses:235Used by:237
Symbol 237 MovieClip {Main_VolumeSlider} [VolumeSlider]Uses:101 236
Symbol 238 EditableTextUses:65Used by:248
Symbol 239 GraphicUsed by:248
Symbol 240 GraphicUsed by:241
Symbol 241 MovieClipUses:240Used by:248
Symbol 242 EditableTextUses:65Used by:248
Symbol 243 TextUses:65Used by:248
Symbol 244 EditableTextUses:64Used by:248
Symbol 245 TextUses:64Used by:246
Symbol 246 MovieClipUses:245Used by:248
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClip {CongratulationsPopup} [Congratulations]Uses:107 59 238 239 241 242 243 244 62 246 75 247
Symbol 249 GraphicUsed by:295
Symbol 250 GraphicUsed by:252
Symbol 251 GraphicUsed by:252
Symbol 252 MovieClipUses:250 251Used by:295 300
Symbol 253 GraphicUsed by:266
Symbol 254 GraphicUsed by:266
Symbol 255 GraphicUsed by:266
Symbol 256 GraphicUsed by:266
Symbol 257 GraphicUsed by:266
Symbol 258 GraphicUsed by:266
Symbol 259 GraphicUsed by:266
Symbol 260 GraphicUsed by:266
Symbol 261 GraphicUsed by:266
Symbol 262 GraphicUsed by:266
Symbol 263 GraphicUsed by:266
Symbol 264 GraphicUsed by:266
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClipUses:253 225 203 254 255 256 257 258 259 260 261 262 263 264 265Used by:295 300
Symbol 267 GraphicUsed by:295 300
Symbol 268 GraphicUsed by:295 300
Symbol 269 GraphicUsed by:295 300
Symbol 270 GraphicUsed by:295 300
Symbol 271 GraphicUsed by:274
Symbol 272 GraphicUsed by:274
Symbol 273 GraphicUsed by:274
Symbol 274 MovieClipUses:271 272 273Used by:295 300
Symbol 275 GraphicUsed by:276
Symbol 276 MovieClipUses:275Used by:295 300
Symbol 277 GraphicUsed by:278
Symbol 278 MovieClipUses:277Used by:295 300
Symbol 279 TextUses:64Used by:295
Symbol 280 MovieClipUses:59Used by:295 300
Symbol 281 FontUsed by:282 283 284 297
Symbol 282 TextUses:281 64Used by:285
Symbol 283 TextUses:281 64Used by:285
Symbol 284 TextUses:281 64Used by:285
Symbol 285 MovieClipUses:282 283 284Used by:295 300
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClipUses:286Used by:295
Symbol 288 GraphicUsed by:289
Symbol 289 MovieClipUses:288Used by:295
Symbol 290 GraphicUsed by:291
Symbol 291 MovieClipUses:290Used by:295
Symbol 292 GraphicUsed by:294
Symbol 293 GraphicUsed by:294
Symbol 294 MovieClipUses:292 293Used by:295 300
Symbol 295 MovieClip {MoviesMenu} [MoviesMenu]Uses:59 249 126 62 252 266 267 268 269 270 274 276 278 279 81 73 280 285 287 289 291 233 294 75
Symbol 296 GraphicUsed by:300
Symbol 297 TextUses:64 65 281Used by:300
Symbol 298 GraphicUsed by:299
Symbol 299 MovieClipUses:298Used by:300
Symbol 300 MovieClip {StoryMenu} [StoryMenu]Uses:296 59 126 62 252 266 267 268 269 270 274 276 278 297 294 299 83 73 280 285 75
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_17866362} [MenuCheckDisabled]Uses:301
Symbol 303 GraphicUsed by:304
Symbol 304 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_310232707} [MenuBranchEnabled]Uses:303
Symbol 305 GraphicUsed by:306
Symbol 306 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1462790030} [MenuBranchDisabled]Uses:305
Symbol 307 GraphicUsed by:308
Symbol 308 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1556264293} [MenuCheckEnabled]Uses:307
Symbol 309 GraphicUsed by:310
Symbol 310 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_557814778} [MenuRadioEnabled]Uses:309
Symbol 311 GraphicUsed by:312
Symbol 312 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1128727227} [MenuRadioDisabled]Uses:311
Symbol 313 GraphicUsed by:314
Symbol 314 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuSeparator_420729159} [MenuSeparator]Uses:313
Symbol 315 GraphicUsed by:316
Symbol 316 MovieClipUses:315Used by:352
Symbol 317 GraphicUsed by:352
Symbol 318 TextUses:65Used by:352
Symbol 319 GraphicUsed by:352
Symbol 320 TextUses:65Used by:352
Symbol 321 GraphicUsed by:352
Symbol 322 GraphicUsed by:352
Symbol 323 GraphicUsed by:352
Symbol 324 TextUses:65Used by:352
Symbol 325 GraphicUsed by:352
Symbol 326 GraphicUsed by:352
Symbol 327 GraphicUsed by:352
Symbol 328 GraphicUsed by:352
Symbol 329 GraphicUsed by:352
Symbol 330 GraphicUsed by:352
Symbol 331 TextUses:65Used by:352
Symbol 332 GraphicUsed by:352
Symbol 333 TextUses:65Used by:352
Symbol 334 GraphicUsed by:352
Symbol 335 GraphicUsed by:352
Symbol 336 GraphicUsed by:352
Symbol 337 GraphicUsed by:352
Symbol 338 GraphicUsed by:352
Symbol 339 TextUses:65Used by:352
Symbol 340 GraphicUsed by:352
Symbol 341 GraphicUsed by:352
Symbol 342 GraphicUsed by:352
Symbol 343 GraphicUsed by:345
Symbol 344 GraphicUsed by:345
Symbol 345 MovieClipUses:343 344Used by:352
Symbol 346 GraphicUsed by:352
Symbol 347 TextUses:65Used by:352
Symbol 348 GraphicUsed by:352
Symbol 349 GraphicUsed by:352
Symbol 350 GraphicUsed by:352
Symbol 351 TextUses:65Used by:352
Symbol 352 MovieClipUses:316 317 318 319 320 10 11 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 24 336 337 338 339 340 341 342 345 346 347 348 349 350 351Used by:354
Symbol 353 MovieClipUses:133 129 131Used by:354
Symbol 354 MovieClip {Puzzle_PuzzleLoad} [PuzzleLoad]Uses:352 353
Symbol 355 TextUses:119Used by:356
Symbol 356 MovieClip {Puzzle_BackgroundButton} [BackgroundButton]Uses:355
Symbol 357 TextUses:119Used by:358
Symbol 358 MovieClip {Puzzle_ClickAnywhere} [ClickAnywhere]Uses:357
Symbol 359 GraphicUsed by:361
Symbol 360 EditableTextUses:65Used by:361
Symbol 361 MovieClip {Puzzle_StyleSelect} [StyleSelect]Uses:359 137 360
Symbol 362 TextUses:119Used by:364
Symbol 363 TextUses:119Used by:364
Symbol 364 MovieClip {Puzzle_CheersButton} [CheersButton]Uses:362 363
Symbol 365 EditableTextUses:119Used by:366
Symbol 366 MovieClip {Puzzle_TimeDisplay} [TimeDisplay]Uses:365
Symbol 367 FontUsed by:368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
Symbol 368 TextUses:367Used by:442
Symbol 369 TextUses:367Used by:442
Symbol 370 TextUses:367Used by:442
Symbol 371 TextUses:367Used by:442
Symbol 372 TextUses:367Used by:442
Symbol 373 TextUses:367Used by:442
Symbol 374 TextUses:367Used by:442
Symbol 375 TextUses:367Used by:442
Symbol 376 TextUses:367Used by:442
Symbol 377 TextUses:367Used by:442
Symbol 378 TextUses:367Used by:442
Symbol 379 TextUses:367Used by:442
Symbol 380 TextUses:367Used by:442
Symbol 381 TextUses:367Used by:442
Symbol 382 TextUses:367Used by:442
Symbol 383 TextUses:367Used by:442
Symbol 384 TextUses:367Used by:442
Symbol 385 TextUses:367Used by:442
Symbol 386 TextUses:367Used by:442
Symbol 387 TextUses:367Used by:442
Symbol 388 TextUses:367Used by:442
Symbol 389 TextUses:367Used by:442
Symbol 390 TextUses:367Used by:442
Symbol 391 TextUses:367Used by:442
Symbol 392 TextUses:367Used by:442
Symbol 393 TextUses:367Used by:442
Symbol 394 TextUses:367Used by:442
Symbol 395 TextUses:367Used by:442
Symbol 396 TextUses:367Used by:442
Symbol 397 TextUses:367Used by:442
Symbol 398 TextUses:367Used by:442
Symbol 399 TextUses:367Used by:442
Symbol 400 TextUses:367Used by:442
Symbol 401 TextUses:367Used by:442
Symbol 402 TextUses:367Used by:442
Symbol 403 TextUses:367Used by:442
Symbol 404 TextUses:367Used by:442
Symbol 405 TextUses:367Used by:442
Symbol 406 TextUses:367Used by:442
Symbol 407 TextUses:367Used by:442
Symbol 408 TextUses:367Used by:442
Symbol 409 TextUses:367Used by:442
Symbol 410 TextUses:367Used by:442
Symbol 411 TextUses:367Used by:442
Symbol 412 TextUses:367Used by:442
Symbol 413 TextUses:367Used by:442
Symbol 414 TextUses:367Used by:442
Symbol 415 TextUses:367Used by:442
Symbol 416 TextUses:367Used by:442
Symbol 417 TextUses:367Used by:442
Symbol 418 TextUses:367Used by:442
Symbol 419 TextUses:367Used by:442
Symbol 420 TextUses:367Used by:442
Symbol 421 TextUses:367Used by:442
Symbol 422 TextUses:367Used by:442
Symbol 423 TextUses:367Used by:442
Symbol 424 TextUses:367Used by:442
Symbol 425 TextUses:367Used by:442
Symbol 426 TextUses:367Used by:442
Symbol 427 TextUses:367Used by:442
Symbol 428 TextUses:367Used by:442
Symbol 429 TextUses:367Used by:442
Symbol 430 TextUses:367Used by:442
Symbol 431 TextUses:367Used by:442
Symbol 432 TextUses:367Used by:442
Symbol 433 TextUses:367Used by:442
Symbol 434 TextUses:367Used by:442
Symbol 435 TextUses:367Used by:442
Symbol 436 TextUses:367Used by:442
Symbol 437 TextUses:367Used by:442
Symbol 438 TextUses:367Used by:442
Symbol 439 TextUses:367Used by:442
Symbol 440 TextUses:367Used by:442
Symbol 441 TextUses:367Used by:442
Symbol 442 MovieClipUses:368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441Used by:443
Symbol 443 MovieClip {Cheer} [Cheer]Uses:442
Symbol 444 GraphicUsed by:445
Symbol 445 MovieClipUses:444Used by:446
Symbol 446 MovieClip {Puzzle_SolveInstructions} [SolveInstructions]Uses:445
Symbol 447 GraphicUsed by:449
Symbol 448 TextUses:119Used by:449
Symbol 449 MovieClip {Story_SkipButton} [SkipButton]Uses:447 448
Symbol 450 Sound {Sounds_DEAR_FRIENDS_SONG_CLASS} [DearFriends]
Symbol 451 Sound {Sounds_WIN_CLASS} [starselect]
Symbol 452 Sound {Sounds_THEME_SONG_CLASS} [ThemeSong]
Symbol 453 Sound {Sounds_CONNECT_CLASS} [starhover]
Symbol 454 Sound {Sounds_MONSTER_HUNTERS_SONG_CLASS} [MonsterHunters]
Symbol 455 Sound {Sounds_SAD_SONG_CLASS} [Sad]
Symbol 456 GraphicUsed by:461
Symbol 457 GraphicUsed by:461
Symbol 458 GraphicUsed by:461
Symbol 459 GraphicUsed by:461
Symbol 460 GraphicUsed by:461
Symbol 461 MovieClip {Style_EdgeLines5} [EdgeLines5]Uses:456 457 458 459 460
Symbol 462 GraphicUsed by:467
Symbol 463 GraphicUsed by:467
Symbol 464 GraphicUsed by:467
Symbol 465 GraphicUsed by:467
Symbol 466 GraphicUsed by:467
Symbol 467 MovieClip {Style_EdgeLines4} [EdgeLines4]Uses:462 463 464 465 466
Symbol 468 GraphicUsed by:477
Symbol 469 GraphicUsed by:477
Symbol 470 GraphicUsed by:477
Symbol 471 GraphicUsed by:477
Symbol 472 GraphicUsed by:477
Symbol 473 GraphicUsed by:477
Symbol 474 GraphicUsed by:477
Symbol 475 GraphicUsed by:477
Symbol 476 GraphicUsed by:477
Symbol 477 MovieClip {Style_EdgeLines7} [EdgeLines7]Uses:468 469 470 471 472 473 474 475 476
Symbol 478 GraphicUsed by:484
Symbol 479 GraphicUsed by:484
Symbol 480 GraphicUsed by:484
Symbol 481 GraphicUsed by:484
Symbol 482 GraphicUsed by:484
Symbol 483 GraphicUsed by:484
Symbol 484 MovieClip {Style_EdgeLines9} [EdgeLines9]Uses:478 479 480 481 482 483
Symbol 485 GraphicUsed by:489
Symbol 486 GraphicUsed by:489
Symbol 487 GraphicUsed by:489
Symbol 488 GraphicUsed by:489
Symbol 489 MovieClip {Style_EdgeLines2} [EdgeLines2]Uses:485 486 487 488
Symbol 490 GraphicUsed by:493
Symbol 491 GraphicUsed by:493
Symbol 492 GraphicUsed by:493
Symbol 493 MovieClip {Style_EdgeLines11} [EdgeLines11]Uses:490 491 492
Symbol 494 GraphicUsed by:499
Symbol 495 GraphicUsed by:499
Symbol 496 GraphicUsed by:499
Symbol 497 GraphicUsed by:499
Symbol 498 GraphicUsed by:499
Symbol 499 MovieClip {Style_EdgeLines3} [EdgeLines3]Uses:494 495 496 497 498
Symbol 500 GraphicUsed by:502
Symbol 501 GraphicUsed by:502
Symbol 502 MovieClip {Style_EdgeLines0} [EdgeLines0]Uses:500 501
Symbol 503 GraphicUsed by:509
Symbol 504 GraphicUsed by:509
Symbol 505 GraphicUsed by:509
Symbol 506 GraphicUsed by:509
Symbol 507 GraphicUsed by:509
Symbol 508 GraphicUsed by:509
Symbol 509 MovieClip {Style_EdgeLines1} [EdgeLines1]Uses:503 504 505 506 507 508
Symbol 510 GraphicUsed by:515
Symbol 511 GraphicUsed by:515
Symbol 512 GraphicUsed by:515
Symbol 513 GraphicUsed by:515
Symbol 514 GraphicUsed by:515
Symbol 515 MovieClip {Style_EdgeLines10} [EdgeLines10]Uses:510 511 512 513 514
Symbol 516 BinaryData {Main_Animation_dataClass}

Instance Names

"scroll2"Symbol 41 MovieClip {Factory_TitleBackground} [TitleBackground] Frame 1Symbol 8 MovieClip
"scroll1"Symbol 41 MovieClip {Factory_TitleBackground} [TitleBackground] Frame 1Symbol 38 MovieClip
"bar"Symbol 49 MovieClip {LoadBar} [LoadBar] Frame 1Symbol 44 MovieClip
"wait"Symbol 49 MovieClip {LoadBar} [LoadBar] Frame 1Symbol 48 MovieClip
"backBackground"Symbol 76 MovieClip {Credits} [Credits] Frame 1Symbol 62 MovieClip
"backButton"Symbol 76 MovieClip {Credits} [Credits] Frame 1Symbol 75 MovieClip
"moviesBackground"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 62 MovieClip
"customBackground"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 62 MovieClip
"storyBackground"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 62 MovieClip
"creditsBackground"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 62 MovieClip
"captions"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 94 MovieClip
"storyButton"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 75 MovieClip
"customButton"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 75 MovieClip
"moviesButton"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 75 MovieClip
"creditsButton"Symbol 100 MovieClip {Menu} [MainMenu] Frame 1Symbol 75 MovieClip
"backBackground"Symbol 110 MovieClip {NoWebcamPopup} [NoWebcam] Frame 1Symbol 62 MovieClip
"backButton"Symbol 110 MovieClip {NoWebcamPopup} [NoWebcam] Frame 1Symbol 75 MovieClip
"backBackground"Symbol 118 MovieClip {StoryPopup} [StoryPopup] Frame 1Symbol 62 MovieClip
"restartBackground"Symbol 118 MovieClip {StoryPopup} [StoryPopup] Frame 1Symbol 62 MovieClip
"continueBackground"Symbol 118 MovieClip {StoryPopup} [StoryPopup] Frame 1Symbol 62 MovieClip
"backButton"Symbol 118 MovieClip {StoryPopup} [StoryPopup] Frame 1Symbol 75 MovieClip
"restartButton"Symbol 118 MovieClip {StoryPopup} [StoryPopup] Frame 1Symbol 75 MovieClip
"continueButton"Symbol 118 MovieClip {StoryPopup} [StoryPopup] Frame 1Symbol 75 MovieClip
"backBackground"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 62 MovieClip
"difficultyUpButton"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 137 MovieClip
"difficultyDownButton"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 137 MovieClip
"styleUpButton"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 137 MovieClip
"styleDownButton"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 137 MovieClip
"musicUpButton"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 137 MovieClip
"musicDownButton"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 137 MovieClip
"difficultyField"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 138 EditableText
"musicField"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 139 EditableText
"styleField"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 140 EditableText
"backButton"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"webcamButton"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 144 MovieClip
"button21"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"button22"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"button23"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"button11"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"button12"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"button13"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"button31"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"button32"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"button33"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 75 MovieClip
"block21"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"block22"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"block23"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"block11"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"block12"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"block13"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"block33"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"block32"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"block31"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 231 MovieClip
"lock21"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"lock22"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"lock23"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"lock11"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"lock12"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"lock13"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"lock33"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"lock32"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"lock31"Symbol 234 MovieClip {CustomMenu} [CustomMenu] Frame 1Symbol 233 MovieClip
"shadow"Symbol 237 MovieClip {Main_VolumeSlider} [VolumeSlider] Frame 1Symbol 236 MovieClip
"bar"Symbol 237 MovieClip {Main_VolumeSlider} [VolumeSlider] Frame 1Symbol 236 MovieClip
"reportField"Symbol 248 MovieClip {CongratulationsPopup} [Congratulations] Frame 1Symbol 238 EditableText
"storyField"Symbol 248 MovieClip {CongratulationsPopup} [Congratulations] Frame 1Symbol 242 EditableText
"timesField"Symbol 248 MovieClip {CongratulationsPopup} [Congratulations] Frame 1Symbol 244 EditableText
"backBackground"Symbol 248 MovieClip {CongratulationsPopup} [Congratulations] Frame 1Symbol 62 MovieClip
"backButton"Symbol 248 MovieClip {CongratulationsPopup} [Congratulations] Frame 1Symbol 75 MovieClip
"backBackground"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 62 MovieClip
"captionsBackground"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 280 MovieClip
"captions"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 285 MovieClip
"block2"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 287 MovieClip
"block3"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 289 MovieClip
"block1"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 291 MovieClip
"lock2"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 233 MovieClip
"lock3"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 233 MovieClip
"lock1"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 233 MovieClip
"unlock21"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"unlock22"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"unlock23"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"unlock31"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"unlock32"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"unlock33"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"unlock11"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"unlock12"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"unlock13"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 294 MovieClip
"story3Button"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 75 MovieClip
"story2Button"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 75 MovieClip
"story1Button"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 75 MovieClip
"backButton"Symbol 295 MovieClip {MoviesMenu} [MoviesMenu] Frame 1Symbol 75 MovieClip
"backBackground"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 62 MovieClip
"unlock21"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock22"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock23"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock31"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock32"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock33"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock11"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock12"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock13"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 294 MovieClip
"unlock2full"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 299 MovieClip
"unlock3full"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 299 MovieClip
"unlock1full"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 299 MovieClip
"captionsBackground"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 280 MovieClip
"captions"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 285 MovieClip
"story3Button"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 75 MovieClip
"story2Button"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 75 MovieClip
"story1Button"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 75 MovieClip
"backButton"Symbol 300 MovieClip {StoryMenu} [StoryMenu] Frame 1Symbol 75 MovieClip
"levelAnimation"Symbol 354 MovieClip {Puzzle_PuzzleLoad} [PuzzleLoad] Frame 1Symbol 352 MovieClip
"title"Symbol 354 MovieClip {Puzzle_PuzzleLoad} [PuzzleLoad] Frame 1Symbol 353 MovieClip
"upButton"Symbol 361 MovieClip {Puzzle_StyleSelect} [StyleSelect] Frame 1Symbol 137 MovieClip
"downButton"Symbol 361 MovieClip {Puzzle_StyleSelect} [StyleSelect] Frame 1Symbol 137 MovieClip
"styleField"Symbol 361 MovieClip {Puzzle_StyleSelect} [StyleSelect] Frame 1Symbol 360 EditableText
"timeField"Symbol 366 MovieClip {Puzzle_TimeDisplay} [TimeDisplay] Frame 1Symbol 365 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1457 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 3 as "Title"
ExportAssets (56)Timeline Frame 1Symbol 41 as "TitleBackground"
ExportAssets (56)Timeline Frame 1Symbol 49 as "LoadBar"
ExportAssets (56)Timeline Frame 1Symbol 53 as "PlayButton"
ExportAssets (56)Timeline Frame 2Symbol 76 as "Credits"
ExportAssets (56)Timeline Frame 2Symbol 79 as "SoundButton"
ExportAssets (56)Timeline Frame 2Symbol 100 as "MainMenu"
ExportAssets (56)Timeline Frame 2Symbol 105 as "QualityButton"
ExportAssets (56)Timeline Frame 2Symbol 110 as "NoWebcam"
ExportAssets (56)Timeline Frame 2Symbol 118 as "StoryPopup"
ExportAssets (56)Timeline Frame 2Symbol 121 as "MenuButton"
ExportAssets (56)Timeline Frame 2Symbol 123 as "MusicButton"
ExportAssets (56)Timeline Frame 2Symbol 124 as "MenuControls"
ExportAssets (56)Timeline Frame 2Symbol 234 as "CustomMenu"
ExportAssets (56)Timeline Frame 2Symbol 237 as "VolumeSlider"
ExportAssets (56)Timeline Frame 2Symbol 248 as "Congratulations"
ExportAssets (56)Timeline Frame 2Symbol 295 as "MoviesMenu"
ExportAssets (56)Timeline Frame 2Symbol 300 as "StoryMenu"
ExportAssets (56)Timeline Frame 2Symbol 302 as "MenuCheckDisabled"
ExportAssets (56)Timeline Frame 2Symbol 304 as "MenuBranchEnabled"
ExportAssets (56)Timeline Frame 2Symbol 306 as "MenuBranchDisabled"
ExportAssets (56)Timeline Frame 2Symbol 308 as "MenuCheckEnabled"
ExportAssets (56)Timeline Frame 2Symbol 310 as "MenuRadioEnabled"
ExportAssets (56)Timeline Frame 2Symbol 312 as "MenuRadioDisabled"
ExportAssets (56)Timeline Frame 2Symbol 314 as "MenuSeparator"
ExportAssets (56)Timeline Frame 2Symbol 354 as "PuzzleLoad"
ExportAssets (56)Timeline Frame 2Symbol 356 as "BackgroundButton"
ExportAssets (56)Timeline Frame 2Symbol 358 as "ClickAnywhere"
ExportAssets (56)Timeline Frame 2Symbol 361 as "StyleSelect"
ExportAssets (56)Timeline Frame 2Symbol 364 as "CheersButton"
ExportAssets (56)Timeline Frame 2Symbol 366 as "TimeDisplay"
ExportAssets (56)Timeline Frame 2Symbol 443 as "Cheer"
ExportAssets (56)Timeline Frame 2Symbol 446 as "SolveInstructions"
ExportAssets (56)Timeline Frame 2Symbol 449 as "SkipButton"
ExportAssets (56)Timeline Frame 2Symbol 450 as "DearFriends"
ExportAssets (56)Timeline Frame 2Symbol 451 as "starselect"
ExportAssets (56)Timeline Frame 2Symbol 452 as "ThemeSong"
ExportAssets (56)Timeline Frame 2Symbol 453 as "starhover"
ExportAssets (56)Timeline Frame 2Symbol 454 as "MonsterHunters"
ExportAssets (56)Timeline Frame 2Symbol 455 as "Sad"
ExportAssets (56)Timeline Frame 2Symbol 461 as "EdgeLines5"
ExportAssets (56)Timeline Frame 2Symbol 467 as "EdgeLines4"
ExportAssets (56)Timeline Frame 2Symbol 477 as "EdgeLines7"
ExportAssets (56)Timeline Frame 2Symbol 484 as "EdgeLines9"
ExportAssets (56)Timeline Frame 2Symbol 489 as "EdgeLines2"
ExportAssets (56)Timeline Frame 2Symbol 493 as "EdgeLines11"
ExportAssets (56)Timeline Frame 2Symbol 499 as "EdgeLines3"
ExportAssets (56)Timeline Frame 2Symbol 502 as "EdgeLines0"
ExportAssets (56)Timeline Frame 2Symbol 509 as "EdgeLines1"
ExportAssets (56)Timeline Frame 2Symbol 515 as "EdgeLines10"
SerialNumber (41)Timeline Frame 1

Labels

"Factory"Frame 1
"Main"Frame 2
"On"Symbol 79 MovieClip {Main_SoundButton} [SoundButton] Frame 1
"Off"Symbol 79 MovieClip {Main_SoundButton} [SoundButton] Frame 2
"high"Symbol 105 MovieClip {Main_QualityButton} [QualityButton] Frame 1
"medium"Symbol 105 MovieClip {Main_QualityButton} [QualityButton] Frame 2
"low"Symbol 105 MovieClip {Main_QualityButton} [QualityButton] Frame 3
"On"Symbol 123 MovieClip {Main_MusicButton} [MusicButton] Frame 1
"Off"Symbol 123 MovieClip {Main_MusicButton} [MusicButton] Frame 2
"Story"Symbol 248 MovieClip {CongratulationsPopup} [Congratulations] Frame 1
"Custom"Symbol 248 MovieClip {CongratulationsPopup} [Congratulations] Frame 2
"On"Symbol 364 MovieClip {Puzzle_CheersButton} [CheersButton] Frame 1
"Off"Symbol 364 MovieClip {Puzzle_CheersButton} [CheersButton] Frame 2




http://swfchan.com/16/78501/info.shtml
Created: 3/4 -2019 14:14:28 Last modified: 3/4 -2019 14:14:28 Server time: 03/05 -2024 13:54:29