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

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

gamut.swf

This is the info page for
Flash #195219

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


Text
Y

R

B

O

G

V

YG

BG

BV

RV

RO

YO

Y

M

C

R

G

B

www.livepaintinglessons.com

Tell a Friend!

Print

STANDARD

YURMBY

Use the Gamut Mask to design
harmonious color schemes for
paintings and other imagery.
How it works: Choose a color wheel and adjust the
value and chroma to suit your painting concept. Then
choose a mask or make and save your own. When
you're done use it from the screen or print a copy on
photopaper to work from.
Why it works: Using only the colors within your mask
gives you a limited palette which creates a natural color
harmony.
Tip: Choose a predominant color first then decide on
your mask from there.
This web tool was created by Richard Robinson of
www.livepaintinglessons.com
The Gamut Mask concept was originally developed by
James Gurney of  www.jamesgurney.com

Click and Drag the color wheel to rotate it.
STANDARD Color Wheel
Yellow, Yellow Green, Green, Blue Green, Blue, Blue
Violet, Violet, Red Violet, Red, Red Orange, Orange,
Yellow Orange.
YURMBY Color Wheel
Yellow, green, cyan, blue, magenta and red (and all
their intermediaries). This color wheel combines  the
RGB with CMY color wheel and is a truer
representation of  how we perceive color .
Yurmby color wheel was created by Tobey Sanford
http://www.greatpix.com/tobey/biography.html

Value
'The lightness or darkness of a color - as if seen
through a black and white camera.'
Change the Value scale by moving the slider.
Chroma
'The amount of gray in a color. Also known as
saturation, intensity, and purity.'
Change the overall chroma by moving the slider.

Preset Masks
Click a small mask to try it.
Click and Drag the big mask to move it.

Freeform Mask
Use the scissors to cut your own mask.
Use the paintbucket to fill unwanted holes.
Click the smooth tool to smooth your mask.
Click '+' to save the current Freeform mask.
Click '-' to delete the current Freeform mask.
Printing
Printed colors appear best on photopaper.

Send this Gamut Mask to a Friend!
Just fill in the fields below - make sure the email
addresses are correct. Your information will not be
stored or used in any way other than this.

Send

Thanks!
Your message has been sent.

The server connection failed.
Your message hasn't been sent.
Please check internet connection and try again.

OK

ActionScript [AS3]

Section 1
//Control (com.romedia.Control) package com.romedia { import flash.display.*; import flash.events.*; import com.util.caurina.transitions.*; import fl.motion.*; import flash.geom.*; import com.util.*; import flash.utils.*; import flash.text.*; import flash.net.*; public class Control extends Sprite { private const default_mask:uint = 0; public var linkBTN:SimpleButton; public var drawFreeformBTN_MC:MovieClip; public var tellafriendBTN:SimpleButton; public var info1MC:MovieClip; public var mask3BTN:MovieClip; public var customMaskScreenMC:MovieClip; public var mask15BTN:MovieClip; public var help4BTN:SimpleButton; public var standardBTN:colorwheel_standard; public var mask10BTN:MovieClip; public var mask9BTN:MovieClip; public var printBTN:SimpleButton; public var mask4BTN:MovieClip; public var smoothFreeformBTN:button_smooth; public var mask16BTN:MovieClip; public var yurmbyBTN:MovieClip; public var fullscreenBTN:SimpleButton; public var cutFreeformBTN_MC:MovieClip; public var help5BTN:SimpleButton; private var customMaskNo:int; public var mask11BTN:MovieClip; public var valueSliderMC:Slider; public var chromaSliderMC:Slider; public var mask5BTN:MovieClip; public var mask17BTN:MovieClip; private var drawToolState:Boolean; public var smoothFreeformBTN_MC:MovieClip; public var mask0BTN:MovieClip; public var mask12BTN:MovieClip; private var customMaskArr:Array; public var info5MC:MovieClip; public var drawFreeformBTN:SimpleButton; public var mask6BTN:MovieClip; public var help1BTN:SimpleButton; public var sendMailMC:MovieClip; public var removeBTN:SimpleButton; public var mask18BTN:MovieClip; public var mask1BTN:MovieClip; public var info4MC:MovieClip; public var cutFreeformBTN:button_scissors; public var mask13BTN:MovieClip; public var help2BTN:SimpleButton; public var mask7BTN:MovieClip; public var info3MC:MovieClip; public var mask19BTN:MovieClip; private var activeCustomMask:int; public var mask2BTN:MovieClip; private var cutToolState:Boolean; public var mask14BTN:MovieClip; private var smoothToolState:Boolean; public var info2MC:MovieClip; private var activeDefaultMask:int; public var help3BTN:SimpleButton; public var mask8BTN:MovieClip; public var addBTN:SimpleButton; private function selectCustomMaskEvent(_arg1:MouseEvent){ var _local2:MovieClip; var _local3:Object; deselectDefaultMasks(); deselectCustomMasks(); setDrawState(false); setCutState(false); setSmoothState(false); _local2 = (_arg1.target as MovieClip); selectMask(_local2); activeCustomMask = _local2.id; _local3 = new Object(); _local3.sender_name = "control"; _local3.receiver_name = "gamut"; _local3.subject = "set_custom_mask"; _local3.custom_mask_id = _local2.custom_mask_id; this.dispatchEvent(new ObjectEvent("ServantEvent", _local3, true)); } private function selectMask(_arg1:MovieClip):void{ var _local2:Color; _local2 = new Color(); _local2.setTint(0x666666, 0.5); _arg1.transform.colorTransform = _local2; if (_arg1.backMC != undefined){ _arg1.backMC.visible = false; }; } private function setBTNState(_arg1, _arg2:Boolean){ if (!_arg2){ _arg1.alpha = 1; this[(_arg1.name + "_MC")].alpha = 0; } else { _arg1.alpha = 0; this[(_arg1.name + "_MC")].alpha = 1; }; } private function activateYurmbyFunc(_arg1:MouseEvent):void{ activateYurmbyF(); } private function drawFunc(_arg1:MouseEvent):void{ deselectDefaultMasks(); deselectCustomMasks(); setCutState(false); setSmoothState(false); setDrawState(!(drawToolState)); } private function cutFunc(_arg1:MouseEvent):void{ deselectDefaultMasks(); deselectCustomMasks(); setDrawState(false); setSmoothState(false); setCutState(!(cutToolState)); } private function selectDefaultMask(_arg1:uint):void{ var _local2:MovieClip; var _local3:Object; deselectDefaultMasks(); deselectCustomMasks(); selectMask(this[(("mask" + _arg1) + "BTN")]); activeDefaultMask = _arg1; _local3 = new Object(); _local3.sender_name = "control"; _local3.receiver_name = "gamut"; _local3.subject = "set_default_mask"; _local3.id = _arg1; this.dispatchEvent(new ObjectEvent("ServantEvent", _local3, true)); } private function startFunc():void{ } private function onSendMailError(_arg1:Event):void{ this.sendMailMC.setConnectionMsg(false); } private function hideSendMailEvent(_arg1:MouseEvent){ var _local2:MovieClip; _local2 = this.sendMailMC; Tweener.removeTweens(_local2, {alpha:1, time:0.4, transition:"easeOutQuad"}); _local2.alpha = 0; _local2.visible = false; } private function setChromaFunc(_arg1:Number):void{ var _local2:Object; _local2 = new Object(); _local2.sender_name = "control"; _local2.receiver_name = "gamut"; _local2.subject = "change_chroma_opacity"; _local2.value = _arg1; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); } private function mouseOff(_arg1:Event){ this.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseOn); } private function showSendMailEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; hideSendMailEvent(new MouseEvent("hideSendMail")); _local2 = this.sendMailMC; _local2.alpha = 0; _local2.visible = true; Tweener.addTween(_local2, {alpha:1, time:0.4, transition:"easeOutQuad"}); } private function activateYurmbyF():void{ var _local1:Object; _local1 = new Object(); _local1.sender_name = "control"; _local1.receiver_name = "gamut"; _local1.subject = "activate_yurmby_state"; this.dispatchEvent(new ObjectEvent("ServantEvent", _local1, true)); } private function deselectDefaultMasks():void{ var _local1:int; var _local2:MovieClip; var _local3:Color; activeDefaultMask = -1; _local1 = 0; while (_local1 < 20) { _local2 = this[(("mask" + _local1) + "BTN")]; _local3 = new Color(); _local3.setTint(0x666666, 0); _local2.transform.colorTransform = _local3; _local1++; }; } private function sendMailFunc(_arg1:String, _arg2:String, _arg3:String, _arg4:String):void{ var _local5:URLRequest; var _local6:URLVariables; var _local7:URLLoader; _local5 = new URLRequest("php/tellafriend.php"); _local5.method = URLRequestMethod.POST; _local6 = new URLVariables(); _local6.p1 = _arg1; _local6.p2 = _arg2; _local6.p3 = _arg3; _local6.p4 = _arg4; _local5.data = _local6; _local7 = new URLLoader(_local5); _local7.addEventListener(Event.COMPLETE, onSendMailComplete); _local7.addEventListener(IOErrorEvent.IO_ERROR, onSendMailError); _local7.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSendMailError); _local7.dataFormat = URLLoaderDataFormat.VARIABLES; _local7.load(_local5); } private function closeSendMailFunc():void{ hideSendMailEvent(new MouseEvent("closeSendMail")); } private function selectDefaultMaskEvent(_arg1:MouseEvent){ deselectCustomMasks(); setDrawState(false); setCutState(false); setSmoothState(false); selectDefaultMask((_arg1.target as MovieClip).ID); } public function init(){ var _local1:Object; this.addEventListener("MasterEvent", masterEvent); initComponent(); _local1 = new Object(); _local1.sender_name = "control"; _local1.receiver_name = "main"; _local1.subject = "init_complete"; this.dispatchEvent(new ObjectEvent("ServantEvent", _local1, true)); } private function printFunc(_arg1:MouseEvent):void{ var _local2:Object; _local2 = new Object(); _local2.sender_name = "control"; _local2.receiver_name = "gamut"; _local2.subject = "print"; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); } private function deselectCustomMasks():void{ var _local1:int; var _local2:MovieClip; var _local3:Color; activeCustomMask = -1; _local1 = 0; while (_local1 < this.customMaskScreenMC.numChildren) { _local2 = (this.customMaskScreenMC.getChildAt(_local1) as MovieClip); if (String(_local2.name).indexOf("dummy") != -1){ } else { _local3 = new Color(); _local3.setTint(0x666666, 0); _local2.transform.colorTransform = _local3; if (_local2.backMC != undefined){ _local2.backMC.visible = true; }; }; _local1++; }; } private function controlFullscreen(_arg1:MouseEvent):void{ if (stage.displayState == StageDisplayState.NORMAL){ stage.displayState = StageDisplayState.FULL_SCREEN; } else { stage.displayState = StageDisplayState.NORMAL; }; } private function gotoWebPage(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.livepaintinglessons.com/colour.php"); navigateToURL(_local2, "_blank"); } private function masterEvent(_arg1:ObjectEvent):void{ var _local2:Object; _local2 = _arg1.data; if (_local2.receiver_name != "control"){ return; }; switch (_local2.subject){ case "start": startFunc(); break; case "send_custom_mask": addCustomMask(_local2.maskThumb, _local2.custom_mask_id); break; }; } private function mouseOn(_arg1:MouseEvent){ this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseOn); } private function setDrawState(_arg1:Boolean){ var _local2:Object; if (_arg1 == drawToolState){ return; }; drawToolState = _arg1; setBTNState(drawFreeformBTN, drawToolState); _local2 = new Object(); _local2.sender_name = "control"; _local2.receiver_name = "gamut"; _local2.subject = "change_draw_tool_state"; _local2.state = drawToolState; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); } private function activateStandardF():void{ var _local1:Object; _local1 = new Object(); _local1.sender_name = "control"; _local1.receiver_name = "gamut"; _local1.subject = "activate_standard_state"; this.dispatchEvent(new ObjectEvent("ServantEvent", _local1, true)); } private function removeCustomMaskEvent(_arg1:MouseEvent):void{ setCutState(false); setDrawState(false); setSmoothState(false); removeCustomMask(); deselectDefaultMasks(); deselectCustomMasks(); } private function addCustomMask(_arg1:DisplayObject, _arg2:Number):void{ var _local3:MovieClip; var _local4:MovieClip; var _local5:MovieClip; deselectDefaultMasks(); deselectCustomMasks(); _local3 = new EmptyMask(); _local4 = addCenteredImage(_arg1, (_local3.maskMC.width * 4), (_local3.maskMC.height * 4)); _local4.x = (_local3.maskMC.width * 2); _local4.y = (_local3.maskMC.height * 2); _local3.screenMC.addChild(_local4); _local5 = this.customMaskScreenMC[(("dummy" + customMaskNo) + "MC")]; _local3.scaleX = 0.053; _local3.scaleY = 0.053; _local3.x = _local5.x; _local3.y = _local5.y; _local3.custom_mask_id = _arg2; _local3.id = customMaskNo; _local3.mouseChildren = false; _local3.addEventListener(MouseEvent.CLICK, selectCustomMaskEvent); this.customMaskScreenMC.addChild(_local3); customMaskArr.push(_local3); customMaskNo++; } private function smoothFunc(_arg1:MouseEvent):void{ deselectDefaultMasks(); deselectCustomMasks(); setCutState(false); setDrawState(false); setSmoothState(!(smoothToolState)); } private function setValueFunc(_arg1:Number):void{ var _local2:Object; _local2 = new Object(); _local2.sender_name = "control"; _local2.receiver_name = "gamut"; _local2.subject = "change_value_tint"; _local2.value = _arg1; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); } private function removeCustomMask(){ var _local1:int; var _local2:MovieClip; var _local3:MovieClip; var _local4:*; var _local5:*; if (activeCustomMask == -1){ return; }; if (customMaskNo == 0){ return; }; _local1 = 0; while (_local1 < this.customMaskScreenMC.numChildren) { _local2 = (this.customMaskScreenMC.getChildAt(_local1) as MovieClip); if (String(_local2.name).indexOf("dummy") != -1){ } else { if (_local2.id != activeCustomMask){ } else { break; }; }; _local1++; }; if (_local2 == null){ return; }; this.customMaskScreenMC.removeChild(_local2); _local1 = 0; while (_local1 < customMaskArr.length) { if (customMaskArr[_local1].id == _local2.id){ break; }; _local1++; }; customMaskArr.splice(_local1, 1); customMaskNo--; _local1 = 0; while (_local1 < customMaskArr.length) { _local4 = customMaskArr[_local1]; _local5 = Math.floor((Math.random() * customMaskArr.length)); customMaskArr[_local1] = customMaskArr[_local5]; customMaskArr[_local5] = _local4; _local1++; }; _local1 = 0; while (_local1 < customMaskArr.length) { _local2 = customMaskArr[_local1]; _local3 = this.customMaskScreenMC[(("dummy" + _local1) + "MC")]; _local2.x = _local3.x; _local2.y = _local3.y; _local1++; }; } private function hideHelp(_arg1:MouseEvent):void{ var _local2:int; var _local3:*; _local2 = 1; while (_local2 <= 5) { _local3 = this[(("info" + _local2) + "MC")]; Tweener.removeTweens(_local3, {alpha:1, time:0.4, transition:"easeOutQuad"}); _local3.visible = false; _local3.alpha = 0; _local3 = this[(("help" + _local2) + "BTN")]; if (_local2 == 1){ _local3.alpha = 0.7; } else { _local3.alpha = 1; }; _local2++; }; } private function activateStandardFunc(_arg1:MouseEvent):void{ activateStandardF(); } private function addCustomMaskEvent(_arg1:MouseEvent):void{ var _local2:Object; setCutState(false); setDrawState(false); setSmoothState(false); deselectDefaultMasks(); deselectCustomMasks(); if (customMaskNo >= 8){ return; }; _local2 = new Object(); _local2.sender_name = "control"; _local2.receiver_name = "gamut"; _local2.subject = "return_custom_mask"; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); } private function onSendMailComplete(_arg1:Event):void{ var _local2:URLLoader; var _local3:URLVariables; _local2 = URLLoader(_arg1.target); _local3 = new URLVariables(_local2.data); if (String(_local3.ok) == "1"){ this.sendMailMC.setConnectionMsg(true); } else { this.sendMailMC.setConnectionMsg(false); }; } private function setSmoothState(_arg1:Boolean){ var _local2:Object; if (_arg1 == smoothToolState){ return; }; smoothToolState = _arg1; setBTNState(smoothFreeformBTN, smoothToolState); _local2 = new Object(); _local2.sender_name = "control"; _local2.receiver_name = "gamut"; _local2.subject = "change_smooth_tool_state"; _local2.state = smoothToolState; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); } private function initComponent():void{ var _local1:int; var _local2:Object; var _local3:MovieClip; var _local4:MovieClip; customMaskNo = 0; activeDefaultMask = -1; activeCustomMask = -1; customMaskArr = new Array(); sendMailMC.visible = false; sendMailMC.initFunc(sendMailFunc, closeSendMailFunc); this.stage.addEventListener(Event.MOUSE_LEAVE, mouseOff); this.fullscreenBTN.addEventListener(MouseEvent.CLICK, controlFullscreen); this.linkBTN.addEventListener(MouseEvent.CLICK, gotoWebPage); this.tellafriendBTN.addEventListener(MouseEvent.CLICK, showSendMailEvent); this.printBTN.addEventListener(MouseEvent.CLICK, printFunc); this.yurmbyBTN.useHandCursor = true; this.yurmbyBTN.buttonMode = true; this.yurmbyBTN.addEventListener(MouseEvent.CLICK, activateYurmbyFunc); this.standardBTN.useHandCursor = true; this.standardBTN.buttonMode = true; this.standardBTN.addEventListener(MouseEvent.CLICK, activateStandardFunc); this.valueSliderMC.init("value"); this.valueSliderMC.registerSliderPosFunc(setValueFunc); this.valueSliderMC.setSliderPosition(0.5); this.chromaSliderMC.init("chroma"); this.chromaSliderMC.registerSliderPosFunc(setChromaFunc); this.chromaSliderMC.setSliderPosition(0); this.cutFreeformBTN.addEventListener(MouseEvent.CLICK, cutFunc); this.drawFreeformBTN.addEventListener(MouseEvent.CLICK, drawFunc); this.smoothFreeformBTN.addEventListener(MouseEvent.CLICK, smoothFunc); this.addBTN.addEventListener(MouseEvent.CLICK, addCustomMaskEvent); this.removeBTN.addEventListener(MouseEvent.CLICK, removeCustomMaskEvent); _local1 = 1; while (_local1 <= 5) { _local2 = this[(("help" + _local1) + "BTN")]; _local2.addEventListener(MouseEvent.CLICK, showHelp); _local3 = this[(("info" + _local1) + "MC")]; _local3.closeBTN.addEventListener(MouseEvent.CLICK, hideHelp); _local3.addBTNListeners(); _local3.visible = false; _local1++; }; _local1 = 0; while (_local1 < 20) { _local4 = this[(("mask" + _local1) + "BTN")]; _local4.ID = _local1; _local4.useHandCursor = true; _local4.buttonMode = true; _local4.addEventListener(MouseEvent.CLICK, selectDefaultMaskEvent); _local1++; }; selectDefaultMask(default_mask); activateStandardF(); } private function showHelp(_arg1:MouseEvent):void{ var _local2:String; var _local3:int; var _local4:*; var _local5:*; _local2 = String(_arg1.target.name).charAt(4); hideSendMailEvent(new MouseEvent("hideSendMail")); _local3 = 1; while (_local3 <= 5) { _local4 = this[(("info" + _local3) + "MC")]; Tweener.removeTweens(_local4, {alpha:1, time:0.4, transition:"easeOutQuad"}); _local4.visible = false; _local4.alpha = 0; if (_local3 != Number(_local2)){ _local5 = this[(("help" + _local3) + "BTN")]; _local5.alpha = 0; Tweener.removeTweens(_local5, {alpha:0, time:0.4, transition:"easeOutQuad"}); }; _local3++; }; _local4 = this[(("info" + _local2) + "MC")]; _local4.visible = true; _local4.alpha = 0; Tweener.addTween(_local4, {alpha:1, time:0.4, transition:"easeOutQuad"}); _local5 = this[(("help" + _local2) + "BTN")]; _local5.alpha = 1; Tweener.removeTweens(_local5, {alpha:0, time:0.4, transition:"easeOutQuad"}); } private function setCutState(_arg1:Boolean):void{ var _local2:Object; if (_arg1 == cutToolState){ return; }; cutToolState = _arg1; setBTNState(cutFreeformBTN, cutToolState); _local2 = new Object(); _local2.sender_name = "control"; _local2.receiver_name = "gamut"; _local2.subject = "change_cut_tool_state"; _local2.state = cutToolState; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); } public static function addCenteredImage(_arg1:DisplayObject, _arg2, _arg3):MovieClip{ var _local4:*; var _local5:*; var _local6:*; var _local7:Number; _local4 = new MovieClip(); _local5 = _arg1.width; _local6 = _arg1.height; _local7 = (_local5 / _local6); if (_local5 > _arg2){ _local5 = _arg2; _local6 = (_local5 / _local7); }; if (_local6 > _arg3){ _local6 = _arg3; _local5 = (_local7 * _local6); }; _arg1.width = _local5; _arg1.height = _local6; _arg1.x = ((-(_local5) / 2) - 200); _arg1.y = ((-(_local6) / 2) - 200); _local4.addChild(_arg1); return (_local4); } } }//package com.romedia
Section 2
//Gamut (com.romedia.Gamut) package com.romedia { import flash.display.*; import flash.events.*; import com.util.caurina.transitions.*; import fl.motion.*; import flash.geom.*; import com.util.*; import flash.utils.*; import flash.text.*; import flash.ui.*; import fl.transitions.easing.*; import flash.printing.*; public class Gamut extends Sprite { private const maskChildX:Number = 307; private const maskChildY:Number = 307; public var yurmbyMC:MovieClip; private var drawToolState:Boolean; public var standardMC:colorwheel_standard; private var standardOriginalDegree:Number; private var mouseCutCursor:MovieClip; private var customMaskArr:Array; private var mouseFillCursor:MovieClip; private var mouseCursor:MovieClip; private var backMaskChild:Sprite; private var maskChild:Sprite; public var maskMaskMC:MovieClip; public var chromaMC:MovieClip; private var cutToolState:Boolean; public var valueMC:MovieClip; private var smoothToolState:Boolean; private var customMaskID:uint; public function Gamut(){ mouseCursor = new MovieClip(); mouseFillCursor = new PencilMC(); mouseCutCursor = new ScissorsMC(); super(); } private function loadingCompleteEvent(_arg1:Event):void{ var _local2:Object; _local2 = new Object(); _local2.sender_name = "gamut"; _local2.receiver_name = "main"; _local2.subject = "init_complete"; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); } private function setDefaultMask(_arg1:int):void{ setMask(_arg1); } public function init(){ this.addEventListener("LoadingComplete", loadingCompleteEvent); this.addEventListener("MasterEvent", masterEvent); this.stage.addEventListener(Event.MOUSE_LEAVE, mouseLeaveEvent); this.parent.parent.addChild(mouseCursor); mouseCursor.visible = false; initMaskMC(); initStandardYurmbyMC(); this.dispatchEvent(new Event("LoadingComplete")); } private function initFreeDrawMask(_arg1:Boolean):void{ var _local2:MovieClip; if (_arg1 == true){ Mouse.hide(); removeChildren(mouseCursor); mouseCursor.addChild(mouseCutCursor); mouseCursor.x = mouseX; mouseCursor.y = mouseY; mouseCursor.visible = true; stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseCursorMove); _local2 = new MovieClip(); _local2.customMaskArr = new Array(); _local2.graphics.beginFill(0xFFFFFF, 0.85); _local2.graphics.drawRect(-635, -635, 1260, 1260); _local2.graphics.endFill(); removeChildren(maskChild); maskChild.x = maskChildX; maskChild.y = maskChildY; maskChild.addChild(_local2); maskChild.mask = maskMaskMC; maskChild.removeEventListener(MouseEvent.MOUSE_DOWN, maskChildDownEvent); maskChild.addEventListener(MouseEvent.MOUSE_DOWN, freeMaskDownEvent); maskChild.addEventListener(MouseEvent.MOUSE_UP, freeMaskUpEvent); } else { Mouse.show(); removeChildren(mouseCursor); mouseCursor.visible = false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseCursorMove); maskChild.removeEventListener(MouseEvent.MOUSE_DOWN, freeMaskDownEvent); maskChild.removeEventListener(MouseEvent.MOUSE_UP, freeMaskUpEvent); maskChild.addEventListener(MouseEvent.MOUSE_DOWN, maskChildDownEvent); stage.addEventListener(MouseEvent.MOUSE_UP, maskChildUpEvent); }; } private function maskChildUpEvent(_arg1:Event):void{ maskChild.stopDrag(); } private function manageCutFreeformTool(_arg1:Boolean):void{ if (cutToolState == _arg1){ return; }; cutToolState = _arg1; initFreeDrawMask(cutToolState); } private function initStandardYurmbyMC():void{ stage.addEventListener(MouseEvent.MOUSE_UP, standard_yurmbyMCUpEvent); } private function getCustomMask():void{ var _local1:MovieClip; var _local2:Object; var _local3:MovieClip; if (maskChild.numChildren == 1){ _local1 = drawMaskObject((maskChild.getChildAt(0) as MovieClip)); _local2 = new Object(); _local2.sender_name = "gamut"; _local2.receiver_name = "control"; _local2.subject = "send_custom_mask"; _local2.custom_mask_id = customMaskID; _local2.maskThumb = _local1; this.dispatchEvent(new ObjectEvent("ServantEvent", _local2, true)); _local3 = drawMaskObject((maskChild.getChildAt(0) as MovieClip)); _local2 = new Object(); _local2.maskID = customMaskID; _local2.myMask = _local3; customMaskArr.push(_local2); customMaskID++; }; } private function freeMaskUpEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; var _local3:Object; var _local4:Array; _local2 = (_arg1.currentTarget.getChildAt(0) as MovieClip); _local2.removeEventListener(MouseEvent.MOUSE_MOVE, freeMaskMoveEvent); _local2.graphics.lineTo(_local2.firstX, _local2.firstY); _local3 = new Object(); _local3.cx = _local2.firstX; _local3.cy = _local2.firstY; _local3.action = "lineto"; _local4 = _local2.customMaskArr[(_local2.customMaskArr.length - 1)]; _local4.push(_local3); removeChildren(_local2); removeChildren(maskChild); _local2 = drawMaskObject(_local2); maskChild.addChild(_local2); } private function manageValueTint(_arg1:Number):void{ var _local2:Color; _local2 = new Color(); _local2.setTint(0xFFFFFF, (1 - _arg1)); valueMC.transform.colorTransform = _local2; } private function standard_yurmbyMCDragEvent(_arg1:Event):void{ var _local2:MovieClip; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; _local2 = (_arg1.currentTarget as MovieClip); if (isNaN(standardOriginalDegree)){ _local5 = Math.atan2((mouseY - _local2.y), (mouseX - _local2.x)); _local6 = ((-(Math.round((((_local5 * 180) / Math.PI) * 100))) / 100) + _local2.rotation); standardOriginalDegree = _local6; }; _local3 = Math.atan2((mouseY - _local2.y), (mouseX - _local2.x)); _local4 = (Math.round((((_local3 * 180) / Math.PI) * 100)) / 100); _local2.rotation = (standardOriginalDegree + _local4); } private function initFillMask(_arg1:Boolean):void{ var _local2:uint; var _local3:uint; var _local4:MovieClip; var _local5:MovieClip; var _local6:Array; _local4 = (maskChild.getChildAt(0) as MovieClip); if ((((_arg1 == true)) && (_local4.customMaskArr))){ Mouse.hide(); removeChildren(mouseCursor); mouseCursor.addChild(mouseFillCursor); mouseCursor.x = mouseX; mouseCursor.y = mouseY; mouseCursor.visible = true; stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseCursorMove); backMaskChild = new Sprite(); backMaskChild.graphics.beginFill(0xFFFFFF, 0); backMaskChild.graphics.drawRect(-635, -635, 1260, 1260); backMaskChild.graphics.endFill(); backMaskChild.x = maskChildX; backMaskChild.y = maskChildY; this.addChild(backMaskChild); _local2 = 0; while (_local2 < _local4.customMaskArr.length) { _local5 = new MovieClip(); _local5.id = _local2; _local5.mark_erase = false; _local5.dataArr = _local4.customMaskArr[_local2]; _local5.graphics.beginFill(0, 0); _local3 = 0; while (_local3 < _local5.dataArr.length) { if (_local5.dataArr[_local3].action == "move"){ _local5.graphics.moveTo(_local5.dataArr[_local3].cx, _local5.dataArr[_local3].cy); } else { _local5.graphics.lineTo(_local5.dataArr[_local3].cx, _local5.dataArr[_local3].cy); }; _local3++; }; _local5.graphics.endFill(); _local5.addEventListener(MouseEvent.CLICK, fillMaskClickEvent); backMaskChild.addChild(_local5); _local2++; }; }; if ((((_arg1 == false)) && (_local4.customMaskArr))){ Mouse.show(); removeChildren(mouseCursor); mouseCursor.visible = false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseCursorMove); if (backMaskChild){ removeChildren(backMaskChild); this.removeChild(backMaskChild); backMaskChild = null; }; }; } private function manageSmoothFreeformTool(_arg1:Boolean):void{ if (smoothToolState == _arg1){ return; }; smoothToolState = _arg1; initSmoothState(smoothToolState); } private function activateYurmbyState(){ Tweener.removeTweens(yurmbyMC, {alpha:1, time:0.3, transition:"easeOutQuad"}); Tweener.addTween(yurmbyMC, {alpha:1, time:0.3, transition:"easeOutQuad"}); yurmbyMC.addEventListener(MouseEvent.MOUSE_DOWN, standard_yurmbyMCDownEvent); yurmbyMC.mouseChildren = true; yurmbyMC.mouseEnabled = true; standardMC.removeEventListener(MouseEvent.MOUSE_DOWN, standard_yurmbyMCDownEvent); standardMC.mouseChildren = false; standardMC.mouseEnabled = false; } private function manageChromaOpacity(_arg1:Number):void{ chromaMC.alpha = _arg1; } private function masterEvent(_arg1:ObjectEvent):void{ var _local2:Object; _local2 = _arg1.data; if (_local2.receiver_name != "gamut"){ return; }; switch (_local2.subject){ case "start": startFunc(); break; case "print": printFunc(); break; case "activate_yurmby_state": activateYurmbyState(); break; case "activate_standard_state": activateStandardState(); break; case "change_value_tint": manageValueTint(_local2.value); break; case "change_chroma_opacity": manageChromaOpacity(_local2.value); break; case "change_cut_tool_state": manageCutFreeformTool(_local2.state); break; case "change_draw_tool_state": manageDrawFreeformTool(_local2.state); break; case "change_smooth_tool_state": manageSmoothFreeformTool(_local2.state); break; case "set_default_mask": setDefaultMask(_local2.id); break; case "return_custom_mask": getCustomMask(); break; case "set_custom_mask": setCustomMask(_local2.custom_mask_id); break; }; } private function initSmoothState(_arg1:Boolean):void{ var _local2:uint; var _local3:uint; var _local4:MovieClip; var _local5:MovieClip; _local4 = (maskChild.getChildAt(0) as MovieClip); if ((((_arg1 == true)) && (_local4.customMaskArr))){ if (backMaskChild){ this.removeChild(backMaskChild); }; backMaskChild = new Sprite(); backMaskChild.graphics.beginFill(0xFFFFFF, 0); backMaskChild.graphics.drawRect(-635, -635, 1260, 1260); backMaskChild.graphics.endFill(); backMaskChild.x = maskChildX; backMaskChild.y = maskChildY; this.addChild(backMaskChild); _local2 = 0; while (_local2 < _local4.customMaskArr.length) { _local5 = new MovieClip(); _local5.id = _local2; _local5.dataArr = _local4.customMaskArr[_local2]; _local5.graphics.beginFill(0x9900, 1); _local3 = 0; while (_local3 < _local5.dataArr.length) { if (_local5.dataArr[_local3].action == "move"){ _local5.graphics.moveTo(_local5.dataArr[_local3].cx, _local5.dataArr[_local3].cy); } else { _local5.graphics.lineTo(_local5.dataArr[_local3].cx, _local5.dataArr[_local3].cy); }; _local3++; }; _local5.graphics.endFill(); _local5.addEventListener(MouseEvent.CLICK, smoothClickEvent); _local5.addEventListener(MouseEvent.MOUSE_OVER, smoothOverEvent); _local5.addEventListener(MouseEvent.MOUSE_OUT, smoothOutEvent); _local5.useHandCursor = true; _local5.buttonMode = true; _local5.alpha = 0; backMaskChild.addChild(_local5); _local2++; }; } else { if (backMaskChild){ removeChildren(backMaskChild); this.removeChild(backMaskChild); backMaskChild = null; }; }; } private function maskChildDownEvent(_arg1:Event):void{ var _local2:Rectangle; maskChild.x = maskChildX; maskChild.y = maskChildY; _local2 = new Rectangle(-99, -110, 824, 835); maskChild.startDrag(false, _local2); } private function fillMaskClickEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; var _local3:MovieClip; var _local4:uint; var _local5:uint; var _local6:Array; var _local7:Array; _local2 = (_arg1.currentTarget as MovieClip); _local3 = (maskChild.getChildAt(0) as MovieClip); if (_local2.mark_erase == false){ _local4 = 0; while (_local4 < backMaskChild.numChildren) { if (_local4 == _local2.id){ _local2.mark_erase = true; break; }; _local4++; }; _local7 = new Array(); _local4 = 0; while (_local4 < backMaskChild.numChildren) { _local2 = (backMaskChild.getChildAt(_local4) as MovieClip); if (_local2.mark_erase == false){ _local7.push(_local2.dataArr); }; _local4++; }; _local3.customMaskArr = _local7; removeChildren(_local3); removeChildren(maskChild); _local3 = drawMaskObject(_local3); maskChild.addChild(_local3); }; } private function printFunc():void{ var _local1:PrintJob; var _local2:PrintJobOptions; var _local3:Rectangle; var _local4:Boolean; _local1 = new PrintJob(); _local2 = new PrintJobOptions(); _local2.printAsBitmap = true; _local3 = new Rectangle(0, 0, 2000, 1600); _local4 = _local1.start(); if (_local4){ _local1.addPage(this, _local3, _local2, 1); _local1.send(); }; } private function setMask(_arg1:uint, _arg2:MovieClip=null):void{ var _local3:MovieClip; var _local4:uint; var _local5:Class; var _local6:MovieClip; removeChildren(maskChild); maskChild.x = maskChildX; maskChild.y = maskChildY; if (_arg2 == null){ _local3 = new MovieClip(); _local3.graphics.beginFill(0, 0); _local3.graphics.drawRect(-635, -635, 1260, 1260); _local3.graphics.endFill(); maskChild.addChild(_local3); _local4 = (_arg1 + 1); _local5 = (getDefinitionByName(("mask" + _local4)) as Class); _local6 = (new (_local5) as MovieClip); maskChild.addChild(_local6); } else { maskChild.addChild(_arg2); }; maskChild.mask = maskMaskMC; maskChild.removeEventListener(MouseEvent.MOUSE_DOWN, freeMaskDownEvent); maskChild.removeEventListener(MouseEvent.MOUSE_UP, freeMaskUpEvent); maskChild.addEventListener(MouseEvent.MOUSE_DOWN, maskChildDownEvent); stage.addEventListener(MouseEvent.MOUSE_UP, maskChildUpEvent); } private function smoothOverEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); _local2.alpha = 0.5; } private function startFunc():void{ } private function freeMaskDownEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; var _local3:Number; var _local4:Number; var _local5:Array; var _local6:Object; _local2 = (_arg1.currentTarget.getChildAt(0) as MovieClip); _local2.addEventListener(MouseEvent.MOUSE_MOVE, freeMaskMoveEvent); _local2.graphics.lineStyle(0, 0x999999, 1); _local3 = _local2.mouseX; _local4 = _local2.mouseY; _local2.firstX = _local3; _local2.firstY = _local4; _local2.lastX = _local3; _local2.lastY = _local4; _local2.graphics.moveTo(_local2.lastX, _local2.lastY); _local5 = new Array(); _local6 = new Object(); _local6.cx = _local3; _local6.cy = _local4; _local6.action = "move"; _local5.push(_local6); _local2.customMaskArr.push(_local5); } private function smoothFill(_arg1:MovieClip):void{ var _local2:uint; var _local3:uint; var _local4:Array; var _local5:Array; var _local6:Object; var _local7:uint; var _local8:MovieClip; var _local9:Array; var _local10:MovieClip; _local4 = _arg1.dataArr; _local7 = 5; _local8 = (maskChild.getChildAt(0) as MovieClip); _local2 = 0; while (_local2 < _local7) { _local5 = new Array(); _local3 = 0; while (_local3 < (_local4.length - 1)) { _local6 = new Object(); if (_local3 == 0){ _local6.action = "move"; } else { _local6.action = "lineto"; }; _local6.cx = ((_local4[_local3].cx + _local4[(_local3 + 1)].cx) / 2); _local6.cy = ((_local4[_local3].cy + _local4[(_local3 + 1)].cy) / 2); _local5.push(_local6); _local3++; }; _local6 = new Object(); _local6.action = "lineto"; _local6.cx = ((_local4[0].cx + _local4[1].cx) / 2); _local6.cy = ((_local4[0].cy + _local4[1].cy) / 2); _local5.push(_local6); _local4 = _local5; _local2++; }; _arg1.dataArr = _local5; _arg1.graphics.clear(); _arg1.graphics.beginFill(0x9900, 1); _local3 = 0; while (_local3 < _arg1.dataArr.length) { if (_arg1.dataArr[_local3].action == "move"){ _arg1.graphics.moveTo(_arg1.dataArr[_local3].cx, _arg1.dataArr[_local3].cy); } else { _arg1.graphics.lineTo(_arg1.dataArr[_local3].cx, _arg1.dataArr[_local3].cy); }; _local3++; }; _local9 = new Array(); _local2 = 0; while (_local2 < backMaskChild.numChildren) { _local10 = (backMaskChild.getChildAt(_local2) as MovieClip); _local9.push(_local10.dataArr); _local2++; }; _local8.customMaskArr = _local9; removeChildren(_local8); removeChildren(maskChild); _local8 = drawMaskObject(_local8); maskChild.addChild(_local8); } private function standard_yurmbyMCDownEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); standardOriginalDegree = NaN; _local2.addEventListener(Event.ENTER_FRAME, standard_yurmbyMCDragEvent); } private function activateStandardState(){ Tweener.removeTweens(yurmbyMC, {alpha:1, time:0.3, transition:"easeOutQuad"}); Tweener.addTween(yurmbyMC, {alpha:0, time:0.3, transition:"easeOutQuad"}); standardMC.alpha = 0; Tweener.removeTweens(standardMC, {alpha:1, time:0.3, transition:"easeOutQuad"}); Tweener.addTween(standardMC, {alpha:1, time:0.3, transition:"easeOutQuad"}); standardMC.addEventListener(MouseEvent.MOUSE_DOWN, standard_yurmbyMCDownEvent); standardMC.mouseChildren = true; standardMC.mouseEnabled = true; yurmbyMC.removeEventListener(MouseEvent.MOUSE_DOWN, standard_yurmbyMCDownEvent); yurmbyMC.mouseChildren = false; yurmbyMC.mouseEnabled = false; } private function standard_yurmbyMCUpEvent(_arg1:MouseEvent):void{ standardMC.removeEventListener(Event.ENTER_FRAME, standard_yurmbyMCDragEvent); yurmbyMC.removeEventListener(Event.ENTER_FRAME, standard_yurmbyMCDragEvent); standardOriginalDegree = NaN; } private function mouseLeaveEvent(_arg1:Event){ this.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseOnEvent); } private function freeMaskMoveEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Object; var _local7:Array; _local2 = (_arg1.currentTarget as MovieClip); _local3 = _local2.mouseX; _local4 = _local2.mouseY; _local5 = 20; if ((_local3 - _local2.lastX) > _local5){ _local3 = (_local2.lastX + _local5); } else { if ((_local3 - _local2.lastX) < -(_local5)){ _local3 = (_local2.lastX - _local5); }; }; if ((_local4 - _local2.lastY) > _local5){ _local4 = (_local2.lastY + _local5); } else { if ((_local4 - _local2.lastY) < -(_local5)){ _local4 = (_local2.lastY - _local5); }; }; _local2.lastX = _local3; _local2.lastY = _local4; _local2.graphics.lineTo(_local2.lastX, _local2.lastY); _local6 = new Object(); _local6.cx = _local3; _local6.cy = _local4; _local6.action = "lineto"; _local7 = _local2.customMaskArr[(_local2.customMaskArr.length - 1)]; _local7.push(_local6); } private function smoothClickEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); smoothFill(_local2); } private function initMaskMC():void{ customMaskArr = new Array(); customMaskID = 1000; maskChild = new Sprite(); maskChild.x = maskChildX; maskChild.y = maskChildY; this.addChild(maskChild); } private function smoothOutEvent(_arg1:MouseEvent):void{ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); _local2.alpha = 0; } private function removeChildren(_arg1:DisplayObjectContainer):void{ if (_arg1){ while (_arg1.numChildren > 0) { _arg1.removeChildAt(0); }; }; } public function drawMaskObject(_arg1:MovieClip):MovieClip{ var _local2:MovieClip; var _local3:uint; var _local4:uint; var _local5:Array; var _local6:Sprite; var _local7:MovieClip; _local2 = new MovieClip(); _local2.customMaskArr = _arg1.customMaskArr; _local2.graphics.clear(); _local2.graphics.beginFill(0xFFFFFF, 0.85); _local2.graphics.drawRect(-635, -635, 1260, 1260); _local2.graphics.endFill(); _local5 = new Array(); _local6 = new Sprite(); _local3 = 0; while (_local3 < _local2.customMaskArr.length) { _local5 = _local2.customMaskArr[_local3]; _local7 = new MovieClip(); _local7.graphics.beginFill(0, 1); _local4 = 0; while (_local4 < _local5.length) { if (_local5[_local4].action == "move"){ _local7.graphics.moveTo(_local5[_local4].cx, _local5[_local4].cy); } else { _local7.graphics.lineTo(_local5[_local4].cx, _local5[_local4].cy); }; _local4++; }; _local7.graphics.endFill(); _local6.addChild(_local7); _local3++; }; _local2.addChild(_local6); _local2.blendMode = BlendMode.LAYER; _local6.blendMode = BlendMode.ERASE; return (_local2); } private function mouseOnEvent(_arg1:MouseEvent){ this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseOnEvent); } private function mouseCursorMove(_arg1:MouseEvent){ mouseCursor.x = mouseX; mouseCursor.y = mouseY; } private function manageDrawFreeformTool(_arg1:Boolean):void{ if (drawToolState == _arg1){ return; }; drawToolState = _arg1; initFillMask(drawToolState); } private function setCustomMask(_arg1:int){ var _local2:uint; var _local3:Object; _local2 = 0; while (_local2 < customMaskArr.length) { _local3 = customMaskArr[_local2]; if (Number(_local3.maskID) == Number(_arg1)){ setMask(_local3.maskID, _local3.myMask); break; }; _local2++; }; } } }//package com.romedia
Section 3
//Main (com.romedia.Main) package com.romedia { import flash.display.*; import flash.events.*; import com.util.caurina.transitions.*; import flash.geom.*; import com.util.*; import flash.utils.*; import flash.text.*; import flash.net.*; import flash.external.*; import flash.system.*; public class Main extends Sprite { private var control:Control; private var initCompNo:int; private var gamut:Gamut; private var mainStage:Sprite; private function servantEvent(_arg1:ObjectEvent):void{ var _local2:Object; var _local3:Object; _local2 = _arg1.data; switch (_local2.receiver_name){ case "main": switch (_local2.sender_name){ case "control": switch (_local2.subject){ case "init_complete": verifyCompleteState(); break; }; break; case "gamut": switch (_local2.subject){ case "init_complete": verifyCompleteState(); break; }; break; }; break; case "control": control.dispatchEvent(new ObjectEvent("MasterEvent", _local2)); break; case "gamut": gamut.dispatchEvent(new ObjectEvent("MasterEvent", _local2)); break; }; } public function init():void{ initCompNo = 0; this.addEventListener("ServantEvent", servantEvent); mainStage = new Sprite(); this.addChild(mainStage); gamut = new Gamut(); gamut.visible = false; mainStage.addChild(gamut); gamut.init(); control = new Control(); control.visible = false; mainStage.addChild(control); control.init(); } private function verifyCompleteState():void{ var _local1:Object; initCompNo++; if (initCompNo == 2){ initCompNo = 0; _local1 = new Object(); _local1.sender_name = "main"; _local1.receiver_name = "gamut"; _local1.subject = "start"; gamut.dispatchEvent(new ObjectEvent("MasterEvent", _local1)); gamut.visible = true; _local1.receiver_name = "control"; control.dispatchEvent(new ObjectEvent("MasterEvent", _local1)); control.visible = true; }; } } }//package com.romedia
Section 4
//Slider (com.romedia.Slider) package com.romedia { import flash.display.*; import flash.events.*; import com.util.caurina.transitions.*; import flash.geom.*; import com.util.*; import flash.text.*; public class Slider extends Sprite { private var DRAG:Boolean; public var sliderMC:slider_button; public var chromaMC:MovieClip; private var sendSliderPositionFunc:Function; public var valueMC:MovieClip; public function init(_arg1:String):void{ var _local2:*; _local2 = 0; while (_local2 < this.numChildren) { this.getChildAt(_local2).visible = false; _local2++; }; this[(_arg1 + "MC")].visible = true; this.sliderMC.visible = true; this.sliderMC.buttonMode = true; this.sliderMC.useHandCursor = true; this.sliderMC.addEventListener(MouseEvent.MOUSE_DOWN, startSlide); this.sliderMC.addEventListener(Event.MOUSE_LEAVE, stopSlide); this.stage.addEventListener(Event.MOUSE_LEAVE, mouseOff); } private function getSliderPosition():void{ if (this.sendSliderPositionFunc != null){ this.sendSliderPositionFunc((Math.round(((this.sliderMC.x / this.valueMC.width) * 100)) / 100)); }; } public function setSliderPosition(_arg1:Number){ if (_arg1 < 0){ _arg1 = 0; }; if (_arg1 > 1){ _arg1 = 1; }; sliderMC.x = (this.valueMC.width * _arg1); getSliderPosition(); } public function registerSliderPosFunc(_arg1:Function):void{ this.sendSliderPositionFunc = _arg1; } private function mouseOn(_arg1:MouseEvent){ this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseOn); } private function startSlide(_arg1:MouseEvent):void{ DRAG = true; stage.addEventListener(MouseEvent.MOUSE_UP, stopSlide); this.sliderMC.startDrag(true, new Rectangle(0, 13.2, this.valueMC.width, 0)); } private function mouseOff(_arg1:Event){ this.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseOn); stopSlide(new MouseEvent("a")); } private function stopSlide(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_UP, stopSlide); stopDrag(); if (DRAG){ getSliderPosition(); }; DRAG = false; } } }//package com.romedia
Section 5
//AuxFunctions (com.util.caurina.transitions.AuxFunctions) package com.util.caurina.transitions { public class AuxFunctions { public static function getObjectLength(_arg1:Object):uint{ var _local2:uint; var _local3:String; _local2 = 0; for (_local3 in _arg1) { _local2++; }; return (_local2); } public static function isInArray(_arg1:String, _arg2:Array):Boolean{ var _local3:uint; var _local4:uint; _local3 = _arg2.length; _local4 = 0; while (_local4 < _local3) { if (_arg2[_local4] == _arg1){ return (true); }; _local4++; }; return (false); } public static function numberToG(_arg1:Number):Number{ return (((_arg1 & 0xFF00) >> 8)); } public static function numberToB(_arg1:Number):Number{ return ((_arg1 & 0xFF)); } public static function numberToR(_arg1:Number):Number{ return (((_arg1 & 0xFF0000) >> 16)); } } }//package com.util.caurina.transitions
Section 6
//Equations (com.util.caurina.transitions.Equations) package com.util.caurina.transitions { public class Equations { public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); if (_arg1 < (1 / 2.75)){ return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2)); }; if (_arg1 < (2 / 2.75)){ _arg1 = (_arg1 - (1.5 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2)); }; if (_arg1 < (2.5 / 2.75)){ _arg1 = (_arg1 - (2.25 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2)); }; _arg1 = (_arg1 - (2.625 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2)); } public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 == 2){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * (0.3 * 1.5)); }; if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5))); }; if (_arg1 < 1){ --_arg1; return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2)); }; --_arg1; return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) * 0.5) + _arg3) + _arg2)); } public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2)); }; --_arg1; return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2)); } public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2)); }; return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2)); } public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN):Number{ if (!_arg5){ _arg5 = 1.70158; }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2)); }; _arg1 = (_arg1 - 2); _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2)); } public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4)); }; return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4)); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN):Number{ if (!_arg5){ _arg5 = 1.70158; }; _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2)); } public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2)); } public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN):Number{ if (!_arg5){ _arg5 = 1.70158; }; _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2)); } public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4)); }; return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4)); } public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4)); }; return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4)); } public static function init():void{ Tweener.registerTransition("easenone", easeNone); Tweener.registerTransition("linear", easeNone); Tweener.registerTransition("easeinquad", easeInQuad); Tweener.registerTransition("easeoutquad", easeOutQuad); Tweener.registerTransition("easeinoutquad", easeInOutQuad); Tweener.registerTransition("easeoutinquad", easeOutInQuad); Tweener.registerTransition("easeincubic", easeInCubic); Tweener.registerTransition("easeoutcubic", easeOutCubic); Tweener.registerTransition("easeinoutcubic", easeInOutCubic); Tweener.registerTransition("easeoutincubic", easeOutInCubic); Tweener.registerTransition("easeinquart", easeInQuart); Tweener.registerTransition("easeoutquart", easeOutQuart); Tweener.registerTransition("easeinoutquart", easeInOutQuart); Tweener.registerTransition("easeoutinquart", easeOutInQuart); Tweener.registerTransition("easeinquint", easeInQuint); Tweener.registerTransition("easeoutquint", easeOutQuint); Tweener.registerTransition("easeinoutquint", easeInOutQuint); Tweener.registerTransition("easeoutinquint", easeOutInQuint); Tweener.registerTransition("easeinsine", easeInSine); Tweener.registerTransition("easeoutsine", easeOutSine); Tweener.registerTransition("easeinoutsine", easeInOutSine); Tweener.registerTransition("easeoutinsine", easeOutInSine); Tweener.registerTransition("easeincirc", easeInCirc); Tweener.registerTransition("easeoutcirc", easeOutCirc); Tweener.registerTransition("easeinoutcirc", easeInOutCirc); Tweener.registerTransition("easeoutincirc", easeOutInCirc); Tweener.registerTransition("easeinexpo", easeInExpo); Tweener.registerTransition("easeoutexpo", easeOutExpo); Tweener.registerTransition("easeinoutexpo", easeInOutExpo); Tweener.registerTransition("easeoutinexpo", easeOutInExpo); Tweener.registerTransition("easeinelastic", easeInElastic); Tweener.registerTransition("easeoutelastic", easeOutElastic); Tweener.registerTransition("easeinoutelastic", easeInOutElastic); Tweener.registerTransition("easeoutinelastic", easeOutInElastic); Tweener.registerTransition("easeinback", easeInBack); Tweener.registerTransition("easeoutback", easeOutBack); Tweener.registerTransition("easeinoutback", easeInOutBack); Tweener.registerTransition("easeoutinback", easeOutInBack); Tweener.registerTransition("easeinbounce", easeInBounce); Tweener.registerTransition("easeoutbounce", easeOutBounce); Tweener.registerTransition("easeinoutbounce", easeInOutBounce); Tweener.registerTransition("easeoutinbounce", easeOutInBounce); } public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (((_arg1)==_arg4) ? (_arg2 + _arg3) : ((_arg3 * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2)); } public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (((_arg1)==0) ? _arg2 : ((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2)); } public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2)); } public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((_arg3 * _arg1) * _arg1) + _arg2)); } public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2)); } public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4)); }; return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4)); } public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2)); } public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2)); } public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2)); } public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5, _arg6)); }; return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5, _arg6)); } public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * 0.3); }; if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5))); }; --_arg1; return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2)); } public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4)); }; return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4)); } public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2)); } public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); } public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4)); }; return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4)); } public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 == 0){ return (_arg2); }; if (_arg1 == _arg4){ return ((_arg2 + _arg3)); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2)); }; --_arg1; return ((((_arg3 / 2) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2)); } public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * 0.3); }; if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5))); }; return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) + _arg3) + _arg2)); } public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2)); } public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4)); }; return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4)); } public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4)); }; return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4)); } } }//package com.util.caurina.transitions
Section 7
//PropertyInfoObj (com.util.caurina.transitions.PropertyInfoObj) package com.util.caurina.transitions { public class PropertyInfoObj { public var modifierParameters:Array; public var valueComplete:Number; public var modifierFunction:Function; public var hasModifier:Boolean; public var valueStart:Number; public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Function, _arg4:Array){ valueStart = _arg1; valueComplete = _arg2; hasModifier = Boolean(_arg3); modifierFunction = _arg3; modifierParameters = _arg4; } public function toString():String{ var _local1:String; _local1 = "\n[PropertyInfoObj "; _local1 = (_local1 + ("valueStart:" + String(valueStart))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("valueComplete:" + String(valueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierFunction:" + String(modifierFunction))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierParameters:" + String(modifierParameters))); _local1 = (_local1 + "]\n"); return (_local1); } public function clone():PropertyInfoObj{ var _local1:PropertyInfoObj; _local1 = new PropertyInfoObj(valueStart, valueComplete, modifierFunction, modifierParameters); return (_local1); } } }//package com.util.caurina.transitions
Section 8
//SpecialPropertiesDefault (com.util.caurina.transitions.SpecialPropertiesDefault) package com.util.caurina.transitions { import flash.filters.*; import flash.geom.*; import flash.media.*; public class SpecialPropertiesDefault { public static function _sound_volume_get(_arg1:Object):Number{ return (_arg1.soundTransform.volume); } public static function _color_splitter(_arg1):Array{ var _local2:Array; _local2 = new Array(); if (_arg1 == null){ _local2.push({name:"_color_ra", value:1}); _local2.push({name:"_color_rb", value:0}); _local2.push({name:"_color_ga", value:1}); _local2.push({name:"_color_gb", value:0}); _local2.push({name:"_color_ba", value:1}); _local2.push({name:"_color_bb", value:0}); } else { _local2.push({name:"_color_ra", value:0}); _local2.push({name:"_color_rb", value:AuxFunctions.numberToR(_arg1)}); _local2.push({name:"_color_ga", value:0}); _local2.push({name:"_color_gb", value:AuxFunctions.numberToG(_arg1)}); _local2.push({name:"_color_ba", value:0}); _local2.push({name:"_color_bb", value:AuxFunctions.numberToB(_arg1)}); }; return (_local2); } public static function frame_get(_arg1:Object):Number{ return (_arg1.currentFrame); } public static function _sound_pan_get(_arg1:Object):Number{ return (_arg1.soundTransform.pan); } public static function _color_property_get(_arg1:Object, _arg2:Array):Number{ return (_arg1.transform.colorTransform[_arg2[0]]); } public static function _sound_volume_set(_arg1:Object, _arg2:Number):void{ var _local3:SoundTransform; _local3 = _arg1.soundTransform; _local3.volume = _arg2; _arg1.soundTransform = _local3; } public static function _autoAlpha_get(_arg1:Object):Number{ return (_arg1.alpha); } public static function _filter_splitter(_arg1:BitmapFilter):Array{ var _local2:Array; _local2 = new Array(); if ((_arg1 is BlurFilter)){ _local2.push({name:"_blur_blurX", value:BlurFilter(_arg1).blurX}); _local2.push({name:"_blur_blurY", value:BlurFilter(_arg1).blurY}); _local2.push({name:"_blur_quality", value:BlurFilter(_arg1).quality}); //unresolved jump }; return (_local2); } public static function init():void{ Tweener.registerSpecialProperty("_frame", frame_get, frame_set); Tweener.registerSpecialProperty("_sound_volume", _sound_volume_get, _sound_volume_set); Tweener.registerSpecialProperty("_sound_pan", _sound_pan_get, _sound_pan_set); Tweener.registerSpecialProperty("_color_ra", _color_property_get, _color_property_set, ["redMultiplier"]); Tweener.registerSpecialProperty("_color_rb", _color_property_get, _color_property_set, ["redOffset"]); Tweener.registerSpecialProperty("_color_ga", _color_property_get, _color_property_set, ["greenMultiplier"]); Tweener.registerSpecialProperty("_color_gb", _color_property_get, _color_property_set, ["greenOffset"]); Tweener.registerSpecialProperty("_color_ba", _color_property_get, _color_property_set, ["blueMultiplier"]); Tweener.registerSpecialProperty("_color_bb", _color_property_get, _color_property_set, ["blueOffset"]); Tweener.registerSpecialProperty("_color_aa", _color_property_get, _color_property_set, ["alphaMultiplier"]); Tweener.registerSpecialProperty("_color_ab", _color_property_get, _color_property_set, ["alphaOffset"]); Tweener.registerSpecialProperty("_autoAlpha", _autoAlpha_get, _autoAlpha_set); Tweener.registerSpecialPropertySplitter("_color", _color_splitter); Tweener.registerSpecialPropertySplitter("_colorTransform", _colorTransform_splitter); Tweener.registerSpecialProperty("_blur_blurX", _filter_property_get, _filter_property_set, [BlurFilter, "blurX"]); Tweener.registerSpecialProperty("_blur_blurY", _filter_property_get, _filter_property_set, [BlurFilter, "blurY"]); Tweener.registerSpecialProperty("_blur_quality", _filter_property_get, _filter_property_set, [BlurFilter, "quality"]); Tweener.registerSpecialPropertySplitter("_filter", _filter_splitter); Tweener.registerSpecialPropertyModifier("_bezier", _bezier_modifier, _bezier_get); } public static function _sound_pan_set(_arg1:Object, _arg2:Number):void{ var _local3:SoundTransform; _local3 = _arg1.soundTransform; _local3.pan = _arg2; _arg1.soundTransform = _local3; } public static function _color_property_set(_arg1:Object, _arg2:Number, _arg3:Array):void{ var _local4:ColorTransform; _local4 = _arg1.transform.colorTransform; _local4[_arg3[0]] = _arg2; _arg1.transform.colorTransform = _local4; } public static function _filter_property_get(_arg1:Object, _arg2:Array):Number{ var _local3:Array; var _local4:uint; var _local5:Object; var _local6:String; var _local7:Object; _local3 = _arg1.filters; _local5 = _arg2[0]; _local6 = _arg2[1]; _local4 = 0; while (_local4 < _local3.length) { if ((((_local3[_local4] is BlurFilter)) && ((_local5 == BlurFilter)))){ return (_local3[_local4][_local6]); }; _local4++; }; switch (_local5){ case BlurFilter: _local7 = {blurX:0, blurY:0, quality:NaN}; break; }; return (_local7[_local6]); } public static function _bezier_get(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array):Number{ var _local5:uint; var _local6:Number; var _local7:Number; var _local8:Number; if (_arg4.length == 1){ return ((_arg1 + (_arg3 * (((2 * (1 - _arg3)) * (_arg4[0] - _arg1)) + (_arg3 * (_arg2 - _arg1)))))); }; _local5 = Math.floor((_arg3 * _arg4.length)); _local6 = ((_arg3 - (_local5 * (1 / _arg4.length))) * _arg4.length); if (_local5 == 0){ _local7 = _arg1; _local8 = ((_arg4[0] + _arg4[1]) / 2); } else { if (_local5 == (_arg4.length - 1)){ _local7 = ((_arg4[(_local5 - 1)] + _arg4[_local5]) / 2); _local8 = _arg2; } else { _local7 = ((_arg4[(_local5 - 1)] + _arg4[_local5]) / 2); _local8 = ((_arg4[_local5] + _arg4[(_local5 + 1)]) / 2); }; }; return ((_local7 + (_local6 * (((2 * (1 - _local6)) * (_arg4[_local5] - _local7)) + (_local6 * (_local8 - _local7)))))); } public static function frame_set(_arg1:Object, _arg2:Number):void{ _arg1.gotoAndStop(Math.round(_arg2)); } public static function _filter_property_set(_arg1:Object, _arg2:Number, _arg3:Array):void{ var _local4:Array; var _local5:uint; var _local6:Object; var _local7:String; var _local8:BitmapFilter; _local4 = _arg1.filters; _local6 = _arg3[0]; _local7 = _arg3[1]; _local5 = 0; while (_local5 < _local4.length) { if ((((_local4[_local5] is BlurFilter)) && ((_local6 == BlurFilter)))){ _local4[_local5][_local7] = _arg2; _arg1.filters = _local4; return; }; _local5++; }; if (_local4 == null){ _local4 = new Array(); }; switch (_local6){ case BlurFilter: _local8 = new BlurFilter(0, 0); break; }; _local8[_local7] = _arg2; _local4.push(_local8); _arg1.filters = _local4; } public static function _autoAlpha_set(_arg1:Object, _arg2:Number):void{ _arg1.alpha = _arg2; _arg1.visible = (_arg2 > 0); } public static function _colorTransform_splitter(_arg1):Array{ var _local2:Array; _local2 = new Array(); if (_arg1 == null){ _local2.push({name:"_color_ra", value:1}); _local2.push({name:"_color_rb", value:0}); _local2.push({name:"_color_ga", value:1}); _local2.push({name:"_color_gb", value:0}); _local2.push({name:"_color_ba", value:1}); _local2.push({name:"_color_bb", value:0}); } else { if (_arg1.ra != undefined){ _local2.push({name:"_color_ra", value:_arg1.ra}); }; if (_arg1.rb != undefined){ _local2.push({name:"_color_rb", value:_arg1.rb}); }; if (_arg1.ga != undefined){ _local2.push({name:"_color_ba", value:_arg1.ba}); }; if (_arg1.gb != undefined){ _local2.push({name:"_color_bb", value:_arg1.bb}); }; if (_arg1.ba != undefined){ _local2.push({name:"_color_ga", value:_arg1.ga}); }; if (_arg1.bb != undefined){ _local2.push({name:"_color_gb", value:_arg1.gb}); }; if (_arg1.aa != undefined){ _local2.push({name:"_color_aa", value:_arg1.aa}); }; if (_arg1.ab != undefined){ _local2.push({name:"_color_ab", value:_arg1.ab}); }; }; return (_local2); } public static function _bezier_modifier(_arg1):Array{ var _local2:Array; var _local3:Array; var _local4:uint; var _local5:String; var _local6:Object; _local2 = []; if ((_arg1 is Array)){ _local3 = _arg1; } else { _local3 = [_arg1]; }; _local6 = {}; _local4 = 0; while (_local4 < _local3.length) { for (_local5 in _local3[_local4]) { if (_local6[_local5] == undefined){ _local6[_local5] = []; }; _local6[_local5].push(_local3[_local4][_local5]); }; _local4++; }; for (_local5 in _local6) { _local2.push({name:_local5, parameters:_local6[_local5]}); }; return (_local2); } } }//package com.util.caurina.transitions
Section 9
//SpecialProperty (com.util.caurina.transitions.SpecialProperty) package com.util.caurina.transitions { public class SpecialProperty { public var parameters:Array; public var getValue:Function; public var setValue:Function; public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null){ getValue = _arg1; setValue = _arg2; parameters = _arg3; } public function toString():String{ var _local1:String; _local1 = ""; _local1 = (_local1 + "[SpecialProperty "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("setValue:" + String(setValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + "]"); return (_local1); } } }//package com.util.caurina.transitions
Section 10
//SpecialPropertyModifier (com.util.caurina.transitions.SpecialPropertyModifier) package com.util.caurina.transitions { public class SpecialPropertyModifier { public var getValue:Function; public var modifyValues:Function; public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){ modifyValues = _arg1; getValue = _arg2; } public function toString():String{ var _local1:String; _local1 = ""; _local1 = (_local1 + "[SpecialPropertyModifier "); _local1 = (_local1 + ("modifyValues:" + String(modifyValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + "]"); return (_local1); } } }//package com.util.caurina.transitions
Section 11
//SpecialPropertySplitter (com.util.caurina.transitions.SpecialPropertySplitter) package com.util.caurina.transitions { public class SpecialPropertySplitter { public var splitValues:Function; public function SpecialPropertySplitter(_arg1:Function){ splitValues = _arg1; } public function toString():String{ var _local1:String; _local1 = ""; _local1 = (_local1 + "[SpecialPropertySplitter "); _local1 = (_local1 + ("splitValues:" + String(splitValues))); _local1 = (_local1 + "]"); return (_local1); } } }//package com.util.caurina.transitions
Section 12
//Tweener (com.util.caurina.transitions.Tweener) package com.util.caurina.transitions { import flash.display.*; import flash.events.*; import flash.utils.*; public class Tweener { private static var _timeScale:Number = 1; private static var _specialPropertySplitterList:Object; private static var _engineExists:Boolean = false; private static var _specialPropertyModifierList:Object; private static var _currentTime:Number; private static var _tweenList:Array; private static var _specialPropertyList:Object; private static var _transitionList:Object; private static var _inited:Boolean = false; private static var __tweener_controller__:MovieClip; public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{ var _local4:SpecialPropertyModifier; if (!_inited){ init(); }; _local4 = new SpecialPropertyModifier(_arg2, _arg3); _specialPropertyModifierList[_arg1] = _local4; } public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null):void{ var _local5:SpecialProperty; if (!_inited){ init(); }; _local5 = new SpecialProperty(_arg2, _arg3, _arg4); _specialPropertyList[_arg1] = _local5; } public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local4:Array; var _local5:Number; var _local6:Number; var _local7:Object; var _local8:Number; var _local9:Number; var _local10:Function; var _local11:TweenListObj; var _local12:Number; var _local13:String; if ((((arguments.length < 2)) || ((arguments[0] == undefined)))){ return (false); }; _local4 = new Array(); if ((arguments[0] is Array)){ _local5 = 0; while (_local5 < arguments[0].length) { _local4.push(arguments[0][_local5]); _local5++; }; } else { _local5 = 0; while (_local5 < (arguments.length - 1)) { _local4.push(arguments[_local5]); _local5++; }; }; _local7 = arguments[(arguments.length - 1)]; if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; _local8 = (isNaN(_local7.time)) ? 0 : _local7.time; _local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay; if (typeof(_local7.transition) == "string"){ _local13 = _local7.transition.toLowerCase(); _local10 = _transitionList[_local13]; } else { _local10 = _local7.transition; }; if (!Boolean(_local10)){ _local10 = _transitionList["easeoutexpo"]; }; _local5 = 0; while (_local5 < _local4.length) { _local11 = new TweenListObj(_local4[_local5], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), (_local7.useFrames == true), _local10); _local11.properties = null; _local11.onStart = _local7.onStart; _local11.onUpdate = _local7.onUpdate; _local11.onComplete = _local7.onComplete; _local11.onOverwrite = _local7.onOverwrite; _local11.onStartParams = _local7.onStartParams; _local11.onUpdateParams = _local7.onUpdateParams; _local11.onCompleteParams = _local7.onCompleteParams; _local11.onOverwriteParams = _local7.onOverwriteParams; _local11.isCaller = true; _local11.count = _local7.count; _local11.waitFrames = _local7.waitFrames; _tweenList.push(_local11); if ((((_local8 == 0)) && ((_local9 == 0)))){ _local12 = (_tweenList.length - 1); updateTweenByIndex(_local12); removeTweenByIndex(_local12); }; _local5++; }; return (true); } public static function init(_arg1=null):void{ _inited = true; _transitionList = new Object(); Equations.init(); _specialPropertyList = new Object(); _specialPropertyModifierList = new Object(); _specialPropertySplitterList = new Object(); SpecialPropertiesDefault.init(); } private static function updateTweens():Boolean{ var _local1:int; if (_tweenList.length == 0){ return (false); }; _local1 = 0; while (_local1 < _tweenList.length) { if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){ if (!updateTweenByIndex(_local1)){ removeTweenByIndex(_local1); }; if (_tweenList[_local1] == null){ removeTweenByIndex(_local1, true); _local1--; }; }; _local1++; }; return (true); } public static function removeTweens(_arg1:Object, ... _args):Boolean{ var _local3:Array; var _local4:uint; _local3 = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(removeTweenByIndex, _arg1, _local3)); } public static function pauseAllTweens():Boolean{ var _local1:Boolean; var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local1 = false; _local2 = 0; while (_local2 < _tweenList.length) { pauseTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function splitTweens(_arg1:Number, _arg2:Array):uint{ var _local3:TweenListObj; var _local4:TweenListObj; var _local5:uint; var _local6:String; var _local7:Boolean; _local3 = _tweenList[_arg1]; _local4 = _local3.clone(false); _local5 = 0; while (_local5 < _arg2.length) { _local6 = _arg2[_local5]; if (Boolean(_local3.properties[_local6])){ _local3.properties[_local6] = undefined; delete _local3.properties[_local6]; }; _local5++; }; for (_local6 in _local4.properties) { _local7 = false; _local5 = 0; while (_local5 < _arg2.length) { if (_arg2[_local5] == _local6){ _local7 = true; break; }; _local5++; }; if (!_local7){ _local4.properties[_local6] = undefined; delete _local4.properties[_local6]; }; }; _tweenList.push(_local4); return ((_tweenList.length - 1)); } public static function resumeTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj; _local2 = _tweenList[_arg1]; if ((((_local2 == null)) || (!(_local2.isPaused)))){ return (false); }; _local2.timeStart = (_local2.timeStart + (_currentTime - _local2.timePaused)); _local2.timeComplete = (_local2.timeComplete + (_currentTime - _local2.timePaused)); _local2.timePaused = undefined; _local2.isPaused = false; return (true); } public static function debug_getList():String{ var _local1:String; var _local2:uint; var _local3:uint; _local1 = ""; _local2 = 0; while (_local2 < _tweenList.length) { _local1 = (_local1 + (("[" + _local2) + "] ::\n")); _local3 = 0; while (_local3 < _tweenList[_local2].properties.length) { _local1 = (_local1 + ((((" " + _tweenList[_local2].properties[_local3].name) + " -> ") + _tweenList[_local2].properties[_local3].valueComplete) + "\n")); _local3++; }; _local2++; }; return (_local1); } public static function getVersion():String{ return ("AS3 1.25.53"); } public static function onEnterFrame(_arg1:Event):void{ var _local2:Boolean; updateTime(); _local2 = false; _local2 = updateTweens(); if (!_local2){ stopEngine(); }; } public static function updateTime():void{ _currentTime = getTimer(); } private static function updateTweenByIndex(_arg1:Number):Boolean{ var tTweening:TweenListObj; var isOver:Boolean; var mustUpdate:Boolean; var nv:Number; var t:Number; var b:Number; var c:Number; var d:Number; var pName:String; var tScope:Object; var tProperty:Object; var pv:Number; var i = _arg1; tTweening = _tweenList[i]; if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){ return (false); }; isOver = false; if (_currentTime >= tTweening.timeStart){ tScope = tTweening.scope; if (tTweening.isCaller){ do { t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1)); b = tTweening.timeStart; c = (tTweening.timeComplete - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d); } while (!(_currentTime >= nv)); } else { mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates))); if (_currentTime >= tTweening.timeComplete){ isOver = true; mustUpdate = true; }; if (!tTweening.hasStarted){ if (Boolean(tTweening.onStart)){ try { tTweening.onStart.apply(tScope, tTweening.onStartParams); } catch(e:Error) { }; }; for (pName in tTweening.properties) { pv = getPropertyValue(tScope, pName); tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv; }; mustUpdate = true; tTweening.hasStarted = true; }; if (mustUpdate){ for (pName in tTweening.properties) { tProperty = tTweening.properties[pName]; if (isOver){ nv = tProperty.valueComplete; } else { if (tProperty.hasModifier){ t = (_currentTime - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, 0, 1, d); nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters); } else { t = (_currentTime - tTweening.timeStart); b = tProperty.valueStart; c = (tProperty.valueComplete - tProperty.valueStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d); }; }; if (tTweening.rounded){ nv = Math.round(nv); }; setPropertyValue(tScope, pName, nv); }; tTweening.updatesSkipped = 0; if (Boolean(tTweening.onUpdate)){ try { tTweening.onUpdate.apply(tScope, tTweening.onUpdateParams); } catch(e:Error) { }; }; } else { tTweening.updatesSkipped++; }; }; if (((isOver) && (Boolean(tTweening.onComplete)))){ try { tTweening.onComplete.apply(tScope, tTweening.onCompleteParams); } catch(e:Error) { }; }; return (!(isOver)); }; return (true); } public static function setTimeScale(_arg1:Number):void{ var _local2:Number; if (isNaN(_arg1)){ _arg1 = 1; }; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; if (_arg1 != _timeScale){ _local2 = 0; while (_local2 < _tweenList.length) { _tweenList[_local2].timeStart = (_currentTime - (((_currentTime - _tweenList[_local2].timeStart) * _timeScale) / _arg1)); _tweenList[_local2].timeComplete = (_currentTime - (((_currentTime - _tweenList[_local2].timeComplete) * _timeScale) / _arg1)); if (_tweenList[_local2].timePaused != undefined){ _tweenList[_local2].timePaused = (_currentTime - (((_currentTime - _tweenList[_local2].timePaused) * _timeScale) / _arg1)); }; _local2++; }; _timeScale = _arg1; }; } public static function resumeAllTweens():Boolean{ var _local1:Boolean; var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local1 = false; _local2 = 0; while (_local2 < _tweenList.length) { resumeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } private static function startEngine():void{ _engineExists = true; _tweenList = new Array(); __tweener_controller__ = new MovieClip(); __tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); updateTime(); } public static function removeAllTweens():Boolean{ var _local1:Boolean; var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local1 = false; _local2 = 0; while (_local2 < _tweenList.length) { removeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local4:Array; var _local5:Number; var _local6:Number; var _local7:String; var _local8:String; var _local9:Object; var _local10:Number; var _local11:Number; var _local12:Array; var _local13:Object; var _local14:Object; var _local15:Function; var _local16:Object; var _local17:TweenListObj; var _local18:Number; var _local19:Array; var _local20:Array; var _local21:String; if ((((arguments.length < 2)) || ((arguments[0] == undefined)))){ return (false); }; _local4 = new Array(); if ((arguments[0] is Array)){ _local5 = 0; while (_local5 < arguments[0].length) { _local4.push(arguments[0][_local5]); _local5++; }; } else { _local5 = 0; while (_local5 < (arguments.length - 1)) { _local4.push(arguments[_local5]); _local5++; }; }; _local9 = arguments[(arguments.length - 1)]; if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; _local10 = (isNaN(_local9.time)) ? 0 : _local9.time; _local11 = (isNaN(_local9.delay)) ? 0 : _local9.delay; _local12 = new Array(); _local13 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true}; _local14 = new Object(); for (_local7 in _local9) { if (!_local13[_local7]){ if (_specialPropertySplitterList[_local7]){ _local19 = _specialPropertySplitterList[_local7].splitValues(_local9[_local7]); _local5 = 0; while (_local5 < _local19.length) { _local12[_local19[_local5].name] = {valueStart:undefined, valueComplete:_local19[_local5].value}; _local5++; }; } else { if (_specialPropertyModifierList[_local7] != undefined){ _local20 = _specialPropertyModifierList[_local7].modifyValues(_local9[_local7]); _local5 = 0; while (_local5 < _local20.length) { _local14[_local20[_local5].name] = {modifierParameters:_local20[_local5].parameters, modifierFunction:_specialPropertyModifierList[_local7].getValue}; _local5++; }; } else { _local12[_local7] = {valueStart:undefined, valueComplete:_local9[_local7]}; }; }; }; }; for (_local7 in _local14) { if (_local12[_local7] != undefined){ _local12[_local7].modifierParameters = _local14[_local7].modifierParameters; _local12[_local7].modifierFunction = _local14[_local7].modifierFunction; }; }; if (typeof(_local9.transition) == "string"){ _local21 = _local9.transition.toLowerCase(); _local15 = _transitionList[_local21]; } else { _local15 = _local9.transition; }; if (!Boolean(_local15)){ _local15 = _transitionList["easeoutexpo"]; }; _local5 = 0; while (_local5 < _local4.length) { _local16 = new Object(); for (_local7 in _local12) { _local16[_local7] = new PropertyInfoObj(_local12[_local7].valueStart, _local12[_local7].valueComplete, _local12[_local7].modifierFunction, _local12[_local7].modifierParameters); }; _local17 = new TweenListObj(_local4[_local5], (_currentTime + ((_local11 * 1000) / _timeScale)), (_currentTime + (((_local11 * 1000) + (_local10 * 1000)) / _timeScale)), (_local9.useFrames == true), _local15); _local17.properties = _local16; _local17.onStart = _local9.onStart; _local17.onUpdate = _local9.onUpdate; _local17.onComplete = _local9.onComplete; _local17.onOverwrite = _local9.onOverwrite; _local17.onStartParams = _local9.onStartParams; _local17.onUpdateParams = _local9.onUpdateParams; _local17.onCompleteParams = _local9.onCompleteParams; _local17.onOverwriteParams = _local9.onOverwriteParams; _local17.rounded = _local9.rounded; _local17.skipUpdates = _local9.skipUpdates; removeTweensByTime(_local17.scope, _local17.properties, _local17.timeStart, _local17.timeComplete); _tweenList.push(_local17); if ((((_local10 == 0)) && ((_local11 == 0)))){ _local18 = (_tweenList.length - 1); updateTweenByIndex(_local18); removeTweenByIndex(_local18); }; _local5++; }; return (true); } public static function registerTransition(_arg1:String, _arg2:Function):void{ if (!_inited){ init(); }; _transitionList[_arg1] = _arg2; } private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{ var _local4:Boolean; var _local5:uint; var _local6:Array; var _local7:uint; var _local8:uint; var _local9:uint; _local4 = false; if (!Boolean(_tweenList)){ return (false); }; _local5 = 0; while (_local5 < _tweenList.length) { if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){ if (_arg3.length == 0){ _arg1(_local5); _local4 = true; } else { _local6 = new Array(); _local7 = 0; while (_local7 < _arg3.length) { if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){ _local6.push(_arg3[_local7]); }; _local7++; }; if (_local6.length > 0){ _local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties); if (_local8 == _local6.length){ _arg1(_local5); _local4 = true; } else { _local9 = splitTweens(_local5, _local6); _arg1(_local9); _local4 = true; }; }; }; }; _local5++; }; return (_local4); } public static function getTweens(_arg1:Object):Array{ var _local2:uint; var _local3:String; var _local4:Array; _local4 = new Array(); _local2 = 0; while (_local2 < _tweenList.length) { if (_tweenList[_local2].scope == _arg1){ for (_local3 in _tweenList[_local2].properties) { _local4.push(_local3); }; }; _local2++; }; return (_local4); } private static function setPropertyValue(_arg1:Object, _arg2:String, _arg3:Number):void{ if (_specialPropertyList[_arg2] != undefined){ if (Boolean(_specialPropertyList[_arg2].parameters)){ _specialPropertyList[_arg2].setValue(_arg1, _arg3, _specialPropertyList[_arg2].parameters); } else { _specialPropertyList[_arg2].setValue(_arg1, _arg3); }; } else { _arg1[_arg2] = _arg3; }; } private static function getPropertyValue(_arg1:Object, _arg2:String):Number{ if (_specialPropertyList[_arg2] != undefined){ if (Boolean(_specialPropertyList[_arg2].parameters)){ return (_specialPropertyList[_arg2].getValue(_arg1, _specialPropertyList[_arg2].parameters)); }; return (_specialPropertyList[_arg2].getValue(_arg1)); } else { }; return (!NULL!); } public static function isTweening(_arg1:Object):Boolean{ var _local2:uint; _local2 = 0; while (_local2 < _tweenList.length) { if (_tweenList[_local2].scope == _arg1){ return (true); }; _local2++; }; return (false); } public static function getTweenCount(_arg1:Object):Number{ var _local2:uint; var _local3:Number; _local3 = 0; _local2 = 0; while (_local2 < _tweenList.length) { if (_tweenList[_local2].scope == _arg1){ _local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties)); }; _local2++; }; return (_local3); } private static function stopEngine():void{ _engineExists = false; _tweenList = null; _currentTime = 0; __tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); __tweener_controller__ = null; } public static function pauseTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj; _local2 = _tweenList[_arg1]; if ((((_local2 == null)) || (_local2.isPaused))){ return (false); }; _local2.timePaused = _currentTime; _local2.isPaused = true; return (true); } public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{ var removed:Boolean; var removedLocally:Boolean; var i:uint; var tl:uint; var pName:String; var p_scope = _arg1; var p_properties = _arg2; var p_timeStart = _arg3; var p_timeComplete = _arg4; removed = false; tl = _tweenList.length; i = 0; while (i < tl) { if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){ if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){ removedLocally = false; for (pName in _tweenList[i].properties) { if (Boolean(p_properties[pName])){ if (Boolean(_tweenList[i].onOverwrite)){ try { _tweenList[i].onOverwrite.apply(_tweenList[i].scope, _tweenList[i].onOverwriteParams); } catch(e:Error) { }; }; _tweenList[i].properties[pName] = undefined; delete _tweenList[i].properties[pName]; removedLocally = true; removed = true; }; }; if (removedLocally){ if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){ removeTweenByIndex(i); }; }; }; }; i = (i + 1); }; return (removed); } public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function):void{ var _local3:SpecialPropertySplitter; if (!_inited){ init(); }; _local3 = new SpecialPropertySplitter(_arg2); _specialPropertySplitterList[_arg1] = _local3; } public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{ _tweenList[_arg1] = null; if (_arg2){ _tweenList.splice(_arg1, 1); }; return (true); } public static function resumeTweens(_arg1:Object, ... _args):Boolean{ var _local3:Array; var _local4:uint; _local3 = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(resumeTweenByIndex, _arg1, _local3)); } public static function pauseTweens(_arg1:Object, ... _args):Boolean{ var _local3:Array; var _local4:uint; _local3 = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(pauseTweenByIndex, _arg1, _local3)); } } }//package com.util.caurina.transitions
Section 13
//TweenListObj (com.util.caurina.transitions.TweenListObj) package com.util.caurina.transitions { public class TweenListObj { public var onUpdate:Function; public var useFrames:Boolean; public var hasStarted:Boolean; public var onOverwriteParams:Array; public var timeStart:Number; public var count:Number; public var auxProperties:Object; public var timeComplete:Number; public var onStartParams:Array; public var rounded:Boolean; public var updatesSkipped:Number; public var onUpdateParams:Array; public var onComplete:Function; public var properties:Object; public var onStart:Function; public var skipUpdates:Number; public var scope:Object; public var isCaller:Boolean; public var timePaused:Number; public var transition:Function; public var onCompleteParams:Array; public var timesCalled:Number; public var onOverwrite:Function; public var isPaused:Boolean; public var waitFrames:Boolean; public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function){ scope = _arg1; timeStart = _arg2; timeComplete = _arg3; useFrames = _arg4; transition = _arg5; auxProperties = new Object(); properties = new Object(); isPaused = false; timePaused = undefined; isCaller = false; updatesSkipped = 0; timesCalled = 0; skipUpdates = 0; hasStarted = false; } public function clone(_arg1:Boolean):TweenListObj{ var _local2:TweenListObj; var _local3:String; _local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition); _local2.properties = new Array(); for (_local3 in properties) { _local2.properties[_local3] = properties[_local3].clone(); }; _local2.skipUpdates = skipUpdates; _local2.updatesSkipped = updatesSkipped; if (!_arg1){ _local2.onStart = onStart; _local2.onUpdate = onUpdate; _local2.onComplete = onComplete; _local2.onOverwrite = onOverwrite; _local2.onStartParams = onStartParams; _local2.onUpdateParams = onUpdateParams; _local2.onCompleteParams = onCompleteParams; _local2.onOverwriteParams = onOverwriteParams; }; _local2.rounded = rounded; _local2.isPaused = isPaused; _local2.timePaused = timePaused; _local2.isCaller = isCaller; _local2.count = count; _local2.timesCalled = timesCalled; _local2.waitFrames = waitFrames; _local2.hasStarted = hasStarted; return (_local2); } public function toString():String{ var _local1:String; var _local2:uint; _local1 = "\n[TweenListObj "; _local1 = (_local1 + ("scope:" + String(scope))); _local1 = (_local1 + ", properties:"); _local2 = 0; while (_local2 < properties.length) { if (_local2 > 0){ _local1 = (_local1 + ","); }; _local1 = (_local1 + ("[name:" + properties[_local2].name)); _local1 = (_local1 + (",valueStart:" + properties[_local2].valueStart)); _local1 = (_local1 + (",valueComplete:" + properties[_local2].valueComplete)); _local1 = (_local1 + "]"); _local2++; }; _local1 = (_local1 + (", timeStart:" + String(timeStart))); _local1 = (_local1 + (", timeComplete:" + String(timeComplete))); _local1 = (_local1 + (", useFrames:" + String(useFrames))); _local1 = (_local1 + (", transition:" + String(transition))); if (skipUpdates){ _local1 = (_local1 + (", skipUpdates:" + String(skipUpdates))); }; if (updatesSkipped){ _local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped))); }; if (Boolean(onStart)){ _local1 = (_local1 + (", onStart:" + String(onStart))); }; if (Boolean(onUpdate)){ _local1 = (_local1 + (", onUpdate:" + String(onUpdate))); }; if (Boolean(onComplete)){ _local1 = (_local1 + (", onComplete:" + String(onComplete))); }; if (Boolean(onOverwrite)){ _local1 = (_local1 + (", onOverwrite:" + String(onOverwrite))); }; if (onStartParams){ _local1 = (_local1 + (", onStartParams:" + String(onStartParams))); }; if (onUpdateParams){ _local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams))); }; if (onCompleteParams){ _local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams))); }; if (onOverwriteParams){ _local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams))); }; if (rounded){ _local1 = (_local1 + (", rounded:" + String(rounded))); }; if (isPaused){ _local1 = (_local1 + (", isPaused:" + String(isPaused))); }; if (timePaused){ _local1 = (_local1 + (", timePaused:" + String(timePaused))); }; if (isCaller){ _local1 = (_local1 + (", isCaller:" + String(isCaller))); }; if (count){ _local1 = (_local1 + (", count:" + String(count))); }; if (timesCalled){ _local1 = (_local1 + (", timesCalled:" + String(timesCalled))); }; if (waitFrames){ _local1 = (_local1 + (", waitFrames:" + String(waitFrames))); }; if (hasStarted){ _local1 = (_local1 + (", hasStarted:" + String(hasStarted))); }; _local1 = (_local1 + "]\n"); return (_local1); } } }//package com.util.caurina.transitions
Section 14
//ObjectEvent (com.util.ObjectEvent) package com.util { import flash.events.*; public class ObjectEvent extends Event { public var data:Object; public function ObjectEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){ this.data = _arg2; super(_arg1, _arg3, _arg4); } } }//package com.util
Section 15
//BaseButton (fl.controls.BaseButton) package fl.controls { import flash.display.*; import flash.events.*; import fl.core.*; import flash.utils.*; import fl.events.*; public class BaseButton extends UIComponent { protected var _selected:Boolean;// = false private var unlockedMouseState:String; protected var pressTimer:Timer; protected var mouseState:String; protected var background:DisplayObject; private var _mouseStateLocked:Boolean;// = false protected var _autoRepeat:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ _selected = false; _autoRepeat = false; _mouseStateLocked = false; super(); buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function get selected():Boolean{ return (_selected); } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function drawLayout():void{ background.width = width; background.height = height; } protected function drawBackground():void{ var _local1:String; var _local2:DisplayObject; _local1 = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); _local2 = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 16
//Button (fl.controls.Button) package fl.controls { import flash.display.*; import fl.core.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var emphasizedBorder:DisplayObject; protected var _emphasized:Boolean;// = false private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function Button(){ _emphasized = false; super(); } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local1:Object; var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; _local1 = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 17
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement) package fl.controls { public class ButtonLabelPlacement { public static const TOP:String = "top"; public static const LEFT:String = "left"; public static const BOTTOM:String = "bottom"; public static const RIGHT:String = "right"; } }//package fl.controls
Section 18
//LabelButton (fl.controls.LabelButton) package fl.controls { import flash.display.*; import flash.events.*; import fl.core.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _labelPlacement:String;// = "right" protected var _toggle:Boolean;// = false protected var icon:DisplayObject; protected var oldMouseState:String; protected var mode:String;// = "center" public var textField:TextField; protected var _label:String;// = "Label" private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function LabelButton(){ _labelPlacement = ButtonLabelPlacement.RIGHT; _toggle = false; _label = "Label"; mode = "center"; super(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } public function get labelPlacement():String{ return (_labelPlacement); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } protected function setEmbedFont(){ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } public function get label():String{ return (_label); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } public function get toggle():Boolean{ return (_toggle); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function drawLayout():void{ var _local1:Number; var _local2:String; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local1 = Number(getStyleValue("textPadding")); _local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); _local3 = (textField.textWidth + 4); _local4 = (textField.textHeight + 4); _local5 = ((icon)==null) ? 0 : (icon.width + _local1); _local6 = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } protected function drawIcon():void{ var _local1:DisplayObject; var _local2:String; var _local3:Object; _local1 = icon; _local2 = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); _local3 = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } protected function drawTextFormat():void{ var _local1:Object; var _local2:TextFormat; var _local3:TextFormat; _local1 = UIComponent.getStyleDefinition(); _local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); _local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 19
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 20
//InvalidationType (fl.core.InvalidationType) package fl.core { public class InvalidationType { public static const SIZE:String = "size"; public static const ALL:String = "all"; public static const DATA:String = "data"; public static const SCROLL:String = "scroll"; public static const STATE:String = "state"; public static const STYLES:String = "styles"; public static const SELECTED:String = "selected"; public static const RENDERER_STYLES:String = "rendererStyles"; } }//package fl.core
Section 21
//UIComponent (fl.core.UIComponent) package fl.core { import flash.display.*; import flash.events.*; import fl.managers.*; import flash.utils.*; import fl.events.*; import flash.text.*; import flash.system.*; public class UIComponent extends Sprite { protected var _enabled:Boolean;// = true private var _mouseFocusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var _oldIMEMode:String;// = null protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var uiFocusRect:DisplayObject; protected var _width:Number; public var version:String;// = "3.0.0.15" protected var isFocused:Boolean;// = false protected var callLaterMethods:Dictionary; private var _focusEnabled:Boolean;// = true private var tempText:TextField; protected var invalidateFlag:Boolean;// = false protected var _inspector:Boolean;// = false protected var sharedStyles:Object; protected var invalidHash:Object; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var instanceStyles:Object; protected var _x:Number; protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ version = "3.0.0.15"; isLivePreview = false; invalidateFlag = false; _enabled = true; isFocused = false; _focusEnabled = true; _mouseFocusEnabled = true; _imeMode = null; _oldIMEMode = null; errorCaught = false; _inspector = false; super(); instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } private function callLaterDispatcher(_arg1:Event):void{ var _local2:Dictionary; var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; _local2 = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } override public function get scaleX():Number{ return ((width / startWidth)); } override public function get scaleY():Number{ return ((height / startHeight)); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var classDef:Object; var skin = _arg1; classDef = null; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } override public function set visible(_arg1:Boolean):void{ var _local2:String; if (super.visible == _arg1){ return; }; super.visible = _arg1; _local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } override public function set y(_arg1:Number):void{ move(_x, _arg1); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } protected function validate():void{ invalidHash = {}; } override public function get height():Number{ return (_height); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } protected function configUI():void{ var _local1:Number; var _local2:Number; var _local3:Number; isLivePreview = checkLivePreview(); _local1 = rotation; rotation = 0; _local2 = super.width; _local3 = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject; _local1 = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local2:Object; var _local3:uint; var _local4:uint; var _local5:Object; var _local6:String; _local2 = {}; _local3 = _args.length; _local4 = 0; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 22
//ComponentEvent (fl.events.ComponentEvent) package fl.events { import flash.events.*; public class ComponentEvent extends Event { public static const HIDE:String = "hide"; public static const BUTTON_DOWN:String = "buttonDown"; public static const MOVE:String = "move"; public static const RESIZE:String = "resize"; public static const ENTER:String = "enter"; public static const LABEL_CHANGE:String = "labelChange"; public static const SHOW:String = "show"; public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function toString():String{ return (formatToString("ComponentEvent", "type", "bubbles", "cancelable")); } override public function clone():Event{ return (new ComponentEvent(type, bubbles, cancelable)); } } }//package fl.events
Section 23
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.controls.*; import flash.display.*; import flash.events.*; import fl.core.*; import flash.utils.*; import flash.text.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ activated = false; calculateCandidates = true; _showFocusIndicator = true; _defaultButtonEnabled = true; super(); focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local5:int; var _local6:int; var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; _local5 = focusableCandidates.length; _local6 = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; _local2 = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject; _local2 = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject; _local2 = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } private function tabChildrenChangeHandler(_arg1:Event):void{ var _local2:DisplayObjectContainer; if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; _local2 = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } public function getFocus():InteractiveObject{ var _local1:InteractiveObject; _local1 = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; var _local3:TextField; var _local4:SimpleButton; _local2 = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } public function set defaultButton(_arg1:Button):void{ var _local2:Button; _local2 = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } private function setFocusToNextObject(_arg1:FocusEvent):void{ var _local2:InteractiveObject; if (!hasFocusableObjects()){ return; }; _local2 = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int; var _local3:int; _local2 = focusableCandidates.length; _local3 = 0; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; var _local4:InteractiveObject; _local3 = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local3:String; var _local4:String; var _local5:int; var _local6:String; var _local7:String; var _local8:String; var _local9:DisplayObject; var _local10:DisplayObject; _local3 = ""; _local4 = ""; _local8 = "0000"; _local9 = DisplayObject(_arg1); _local10 = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local2:DisplayObject; var _local3:String; var _local4:int; var _local5:Boolean; var _local6:int; var _local7:int; var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; _local2 = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; _local4 = getIndexOfFocusedObject(_local2); _local5 = false; _local6 = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; _local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ var _local2:InteractiveObject; if (_arg1.isDefaultPrevented()){ return; }; _local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; _local2 = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; var _local3:Button; _local2 = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ var _local2:InteractiveObject; var _local3:Boolean; calculateCandidates = true; _local2 = InteractiveObject(_arg1.target); _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } } }//package fl.managers
Section 24
//IFocusManager (fl.managers.IFocusManager) package fl.managers { import fl.controls.*; import flash.display.*; public interface IFocusManager { function getFocus():InteractiveObject; function deactivate():void; function set defaultButton(_arg1:Button):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function setFocus(_arg1:InteractiveObject):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 25
//IFocusManagerComponent (fl.managers.IFocusManagerComponent) package fl.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package fl.managers
Section 26
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; function get groupName():String; function get selected():Boolean; } }//package fl.managers
Section 27
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.utils.*; import flash.text.*; public class StyleManager { private var globalStyles:Object; private var classToDefaultStylesDict:Dictionary; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToInstancesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class; var _local5:Object; _local4 = getClassDef(_arg1); _local5 = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local2:StyleManager; var _local3:Class; var _local4:Object; var _local5:String; _local2 = getInstance(); _local3 = getClassDef(_arg1); _local4 = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local3:Dictionary; var _local4:Object; var _local5:UIComponent; _local3 = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local2:Dictionary; var _local3:Object; _local2 = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var inst:StyleManager; var classDef:Class; var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; inst = getInstance(); classDef = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; inst.classToStylesDict[classDef] = {}; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class; var _local4:StyleManager; var _local5:Object; _local3 = getClassDef(_arg1); _local4 = getInstance(); _local5 = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object; _local3 = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 28
//Color (fl.motion.Color) package fl.motion { import flash.display.*; import flash.geom.*; public class Color extends ColorTransform { private var _tintMultiplier:Number;// = 0 private var _tintColor:Number;// = 0 public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){ _tintColor = 0; _tintMultiplier = 0; super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8); } public function setTint(_arg1:uint, _arg2:Number):void{ var _local3:uint; var _local4:uint; var _local5:uint; this._tintColor = _arg1; this._tintMultiplier = _arg2; this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2))); _local3 = ((_arg1 >> 16) & 0xFF); _local4 = ((_arg1 >> 8) & 0xFF); _local5 = (_arg1 & 0xFF); this.redOffset = Math.round((_local3 * _arg2)); this.greenOffset = Math.round((_local4 * _arg2)); this.blueOffset = Math.round((_local5 * _arg2)); } public function set tintColor(_arg1:uint):void{ this.setTint(_arg1, this.tintMultiplier); } public function get brightness():Number{ return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1)); } private function deriveTintColor():uint{ var _local1:Number; var _local2:uint; var _local3:uint; var _local4:uint; var _local5:uint; _local1 = (1 / this.tintMultiplier); _local2 = Math.round((this.redOffset * _local1)); _local3 = Math.round((this.greenOffset * _local1)); _local4 = Math.round((this.blueOffset * _local1)); _local5 = (((_local2 << 16) | (_local3 << 8)) | _local4); return (_local5); } public function get tintMultiplier():Number{ return (this._tintMultiplier); } public function get tintColor():uint{ return (this._tintColor); } public function set brightness(_arg1:Number):void{ var _local2:Number; var _local3:Number; if (_arg1 > 1){ _arg1 = 1; } else { if (_arg1 < -1){ _arg1 = -1; }; }; _local2 = (1 - Math.abs(_arg1)); _local3 = 0; if (_arg1 > 0){ _local3 = (_arg1 * 0xFF); }; this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2)); this.redOffset = (this.greenOffset = (this.blueOffset = _local3)); } public function set tintMultiplier(_arg1:Number):void{ this.setTint(this.tintColor, _arg1); } private function parseXML(_arg1:XML=null):Color{ var _local2:XML; var _local3:XML; var _local4:String; var _local5:uint; if (!_arg1){ return (this); }; _local2 = _arg1.elements()[0]; if (!_local2){ return (this); }; for each (_local3 in _local2.attributes()) { _local4 = _local3.localName(); if (_local4 == "tintColor"){ _local5 = (Number(_local3.toString()) as uint); this.tintColor = _local5; } else { this[_local4] = Number(_local3.toString()); }; }; return (this); } public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{ var _local4:Number; var _local5:uint; var _local6:uint; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:uint; var _local11:uint; var _local12:uint; var _local13:uint; var _local14:uint; var _local15:uint; var _local16:uint; var _local17:uint; _local4 = (1 - _arg3); _local5 = ((_arg1 >> 24) & 0xFF); _local6 = ((_arg1 >> 16) & 0xFF); _local7 = ((_arg1 >> 8) & 0xFF); _local8 = (_arg1 & 0xFF); _local9 = ((_arg2 >> 24) & 0xFF); _local10 = ((_arg2 >> 16) & 0xFF); _local11 = ((_arg2 >> 8) & 0xFF); _local12 = (_arg2 & 0xFF); _local13 = ((_local5 * _local4) + (_local9 * _arg3)); _local14 = ((_local6 * _local4) + (_local10 * _arg3)); _local15 = ((_local7 * _local4) + (_local11 * _arg3)); _local16 = ((_local8 * _local4) + (_local12 * _arg3)); _local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16); return (_local17); } public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{ var _local4:Number; var _local5:ColorTransform; _local4 = (1 - _arg3); _local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3))); return (_local5); } public static function fromXML(_arg1:XML):Color{ return (Color(new (Color).parseXML(_arg1))); } } }//package fl.motion
Section 29
//customMaskScreenMC_19 (gamut_fla.customMaskScreenMC_19) package gamut_fla { import flash.display.*; public dynamic class customMaskScreenMC_19 extends MovieClip { public var dummy5MC:MovieClip; public var dummy0MC:MovieClip; public var dummy4MC:MovieClip; public var dummy3MC:MovieClip; public var dummy7MC:MovieClip; public var dummy2MC:MovieClip; public var dummy6MC:MovieClip; public var dummy1MC:MovieClip; } }//package gamut_fla
Section 30
//info1_57 (gamut_fla.info1_57) package gamut_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class info1_57 extends MovieClip { public var closeBTN:SimpleButton; public var link1BTN:SimpleButton; public var link2BTN:SimpleButton; public function info1_57(){ addFrameScript(0, frame1); } function frame1(){ } public function addBTNListeners():void{ link1BTN.addEventListener(MouseEvent.CLICK, gotoLink1); link2BTN.addEventListener(MouseEvent.CLICK, gotoLink2); } public function gotoLink1(_arg1:Event):void{ gotoLink("http://www.livepaintinglessons.com", "_blank"); } public function gotoLink2(_arg1:Event):void{ gotoLink("http://www.jamesgurney.com", "_blank"); } public function gotoLink(_arg1:String, _arg2:String):void{ var _local3:URLRequest; _local3 = new URLRequest(_arg1); navigateToURL(_local3, _arg2); } } }//package gamut_fla
Section 31
//info2_62 (gamut_fla.info2_62) package gamut_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class info2_62 extends MovieClip { public var closeBTN:SimpleButton; public var link1BTN:SimpleButton; public function info2_62(){ addFrameScript(0, frame1); } function frame1(){ } public function addBTNListeners():void{ link1BTN.addEventListener(MouseEvent.CLICK, gotoLink1); } public function gotoLink1(_arg1:Event):void{ gotoLink("http://www.greatpix.com/tobey/biography.html", "_blank"); } public function gotoLink(_arg1:String, _arg2:String):void{ var _local3:URLRequest; _local3 = new URLRequest(_arg1); navigateToURL(_local3, _arg2); } } }//package gamut_fla
Section 32
//info3_64 (gamut_fla.info3_64) package gamut_fla { import flash.display.*; import flash.net.*; public dynamic class info3_64 extends MovieClip { public var closeBTN:SimpleButton; public function info3_64(){ addFrameScript(0, frame1); } function frame1(){ } public function addBTNListeners():void{ } public function gotoLink(_arg1:String, _arg2:String):void{ var _local3:URLRequest; _local3 = new URLRequest(_arg1); navigateToURL(_local3, _arg2); } } }//package gamut_fla
Section 33
//info4_65 (gamut_fla.info4_65) package gamut_fla { import flash.display.*; import flash.net.*; public dynamic class info4_65 extends MovieClip { public var closeBTN:SimpleButton; public function info4_65(){ addFrameScript(0, frame1); } function frame1(){ } public function addBTNListeners():void{ } public function gotoLink(_arg1:String, _arg2:String):void{ var _local3:URLRequest; _local3 = new URLRequest(_arg1); navigateToURL(_local3, _arg2); } } }//package gamut_fla
Section 34
//info5_66 (gamut_fla.info5_66) package gamut_fla { import flash.display.*; import flash.net.*; public dynamic class info5_66 extends MovieClip { public var closeBTN:SimpleButton; public function info5_66(){ addFrameScript(0, frame1); } function frame1(){ } public function addBTNListeners():void{ } public function gotoLink(_arg1:String, _arg2:String):void{ var _local3:URLRequest; _local3 = new URLRequest(_arg1); navigateToURL(_local3, _arg2); } } }//package gamut_fla
Section 35
//loadingMC_2 (gamut_fla.loadingMC_2) package gamut_fla { import flash.display.*; public dynamic class loadingMC_2 extends MovieClip { public function loadingMC_2(){ addFrameScript(99, frame100); } function frame100(){ stop(); } } }//package gamut_fla
Section 36
//MainTimeline (gamut_fla.MainTimeline) package gamut_fla { import flash.display.*; import flash.events.*; import com.romedia.*; public dynamic class MainTimeline extends MovieClip { public var MainMC:Main; public var loadingMC:MovieClip; public function MainTimeline(){ addFrameScript(0, frame1, 1, frame2, 2, frame3); } public function appLoadProgressEvent(_arg1:ProgressEvent):void{ var _local2:Number; _local2 = Math.round(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100)); loadingMC.gotoAndStop(_local2); } function frame3(){ stop(); MainMC.init(); } function frame1(){ stop(); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, appLoadProgressEvent); this.loaderInfo.addEventListener(Event.COMPLETE, appLoadCompleteEvent); } function frame2(){ play(); } public function appLoadCompleteEvent(_arg1:Event):void{ this.removeChildAt(0); this.removeEventListener(ProgressEvent.PROGRESS, appLoadProgressEvent); this.nextFrame(); } } }//package gamut_fla
Section 37
//msgMC_70 (gamut_fla.msgMC_70) package gamut_fla { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.geom.*; import flash.utils.*; import flash.text.*; import flash.media.*; import flash.ui.*; import flash.net.*; import flash.printing.*; import flash.external.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.xml.*; public dynamic class msgMC_70 extends MovieClip { public var insucessMC:MovieClip; public var sucessMC:MovieClip; public var okBTN:MovieClip; public function msgMC_70(){ addFrameScript(0, frame1); } public function initFunc(_arg1:Function):void{ this.closeFunc = _arg1; } function frame1(){ okBTN.buttonMode = true; okBTN.useHandCursor = true; okBTN.addEventListener(MouseEvent.CLICK, this.localCloseFunc); } public function localCloseFunc(_arg1:Event):void{ if (this.closeFunc != null){ this.closeFunc(); }; } } }//package gamut_fla
Section 38
//sendmailMC_67 (gamut_fla.sendmailMC_67) package gamut_fla { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.geom.*; import flash.utils.*; import flash.text.*; import flash.media.*; import flash.ui.*; import flash.net.*; import flash.printing.*; import flash.external.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.xml.*; public dynamic class sendmailMC_67 extends MovieClip { public var inputsMC:MovieClip; public var closeBTN:SimpleButton; public var msgMC:MovieClip; public function sendmailMC_67(){ addFrameScript(0, frame1); } public function initFunc(_arg1:Function, _arg2:Function):void{ this.inputsMC.initFunc(_arg1); this.closeFunc = _arg2; this.msgMC.initFunc(this.localCloseFunc); this.inputsMC.visible = true; this.msgMC.visible = false; } public function localCloseFuncEvent(_arg1:MouseEvent):void{ this.localCloseFunc(); } function frame1(){ closeBTN.addEventListener(MouseEvent.CLICK, localCloseFuncEvent); closeBTN.useHandCursor = true; } public function setConnectionMsg(_arg1:Boolean):void{ this.inputsMC.visible = false; if (_arg1){ this.msgMC.sucessMC.alpha = 1; this.msgMC.insucessMC.alpha = 0; } else { this.msgMC.sucessMC.alpha = 0; this.msgMC.insucessMC.alpha = 1; }; this.msgMC.visible = true; this.msgMC.alpha = 1; } public function localCloseFunc():void{ msgMC.visible = false; inputsMC.visible = true; if (this.closeFunc != null){ this.closeFunc(); }; } } }//package gamut_fla
Section 39
//tellafriend_68 (gamut_fla.tellafriend_68) package gamut_fla { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.geom.*; import flash.utils.*; import flash.text.*; import flash.media.*; import flash.ui.*; import flash.net.*; import flash.printing.*; import flash.external.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.xml.*; public dynamic class tellafriend_68 extends MovieClip { public var emailStr:String; public var emailTF:TextField; public var nameTF:TextField; public var friendNameTF:TextField; public var friendNameStr:String; public var friendEmailTF:TextField; public var nameStr:String; public var friendEmailStr:String; public var sendBTN:MovieClip; public function tellafriend_68(){ addFrameScript(0, frame1); } public function nameFocusOut(_arg1:Event):void{ if (nameTF.text == ""){ nameTF.text = nameStr; }; } public function nameFocusIn(_arg1:Event):void{ if (nameTF.text == nameStr){ nameTF.text = ""; }; } public function friendEmailFocusOut(_arg1:Event):void{ if (friendEmailTF.text == ""){ friendEmailTF.text = friendEmailStr; }; } public function initFunc(_arg1:Function):void{ nameStr = "Your first name"; emailStr = "Your email address"; friendNameStr = "Friend's first name"; friendEmailStr = "Friend's email address"; nameTF.text = nameStr; emailTF.text = emailStr; friendNameTF.text = friendNameStr; friendEmailTF.text = friendEmailStr; sendBTN.alpha = 0.5; this.sendMail = _arg1; } public function emailFocusOut(_arg1:Event):void{ if (emailTF.text == ""){ emailTF.text = emailStr; }; } function frame1(){ nameTF.tabIndex = 1; emailTF.tabIndex = 2; friendNameTF.tabIndex = 3; friendEmailTF.tabIndex = 4; sendBTN.tabIndex = 5; nameTF.addEventListener("change", inputChanged); nameTF.addEventListener("focusIn", nameFocusIn); nameTF.addEventListener("focusOut", nameFocusOut); emailTF.addEventListener("change", inputChanged); emailTF.addEventListener("focusIn", emailFocusIn); emailTF.addEventListener("focusOut", emailFocusOut); friendNameTF.addEventListener("change", inputChanged); friendNameTF.addEventListener("focusIn", friendNameFocusIn); friendNameTF.addEventListener("focusOut", friendNameFocusOut); friendEmailTF.addEventListener("change", inputChanged); friendEmailTF.addEventListener("focusIn", friendEmailFocusIn); friendEmailTF.addEventListener("focusOut", friendEmailFocusOut); } public function inputChanged(_arg1:Event){ if (((((((((((((((!((nameTF.text == ""))) && (!((nameTF.text == nameStr))))) && (!((emailTF.text == ""))))) && (!((emailTF.text == emailStr))))) && (!((friendNameTF.text == ""))))) && (!((friendNameTF.text == friendNameStr))))) && (!((friendEmailTF.text == ""))))) && (!((friendEmailTF.text == friendEmailStr))))){ if (((verifyEmail(emailTF.text)) && (verifyEmail(friendEmailTF.text)))){ sendBTN.alpha = 1; sendBTN.buttonMode = true; sendBTN.addEventListener(MouseEvent.CLICK, localSendMailFunc); } else { sendBTN.alpha = 0.5; sendBTN.buttonMode = false; sendBTN.removeEventListener(MouseEvent.CLICK, localSendMailFunc); }; } else { sendBTN.alpha = 0.5; sendBTN.buttonMode = false; sendBTN.removeEventListener(MouseEvent.CLICK, localSendMailFunc); }; } public function friendEmailFocusIn(_arg1:Event):void{ if (friendEmailTF.text == friendEmailStr){ friendEmailTF.text = ""; }; } public function friendNameFocusIn(_arg1:Event):void{ if (friendNameTF.text == friendNameStr){ friendNameTF.text = ""; }; } public function verifyEmail(_arg1:String):Boolean{ var _local2:*; var _local3:*; var _local4:int; _local2 = _arg1.indexOf("@"); if (_local2 < 1){ return (false); }; _local3 = _arg1.indexOf(".", (_local2 + 2)); if (_local3 < 0){ return (false); }; _local4 = (_arg1.length - 1); if ((_local4 - _local3) < 2){ return (false); }; return (true); } public function localSendMailFunc(_arg1:MouseEvent):void{ if (this.sendMail != null){ this.sendMail(nameTF.text, emailTF.text, friendNameTF.text, friendEmailTF.text); }; } public function friendNameFocusOut(_arg1:Event):void{ if (friendNameTF.text == ""){ friendNameTF.text = friendNameStr; }; } public function emailFocusIn(_arg1:Event):void{ if (emailTF.text == emailStr){ emailTF.text = ""; }; } } }//package gamut_fla
Section 40
//Button_disabledSkin (Button_disabledSkin) package { import flash.display.*; public dynamic class Button_disabledSkin extends MovieClip { } }//package
Section 41
//Button_downSkin (Button_downSkin) package { import flash.display.*; public dynamic class Button_downSkin extends MovieClip { } }//package
Section 42
//Button_emphasizedSkin (Button_emphasizedSkin) package { import flash.display.*; public dynamic class Button_emphasizedSkin extends MovieClip { } }//package
Section 43
//Button_overSkin (Button_overSkin) package { import flash.display.*; public dynamic class Button_overSkin extends MovieClip { } }//package
Section 44
//button_scissors (button_scissors) package { import flash.display.*; public dynamic class button_scissors extends SimpleButton { } }//package
Section 45
//Button_selectedDisabledSkin (Button_selectedDisabledSkin) package { import flash.display.*; public dynamic class Button_selectedDisabledSkin extends MovieClip { } }//package
Section 46
//Button_selectedDownSkin (Button_selectedDownSkin) package { import flash.display.*; public dynamic class Button_selectedDownSkin extends MovieClip { } }//package
Section 47
//Button_selectedOverSkin (Button_selectedOverSkin) package { import flash.display.*; public dynamic class Button_selectedOverSkin extends MovieClip { } }//package
Section 48
//Button_selectedUpSkin (Button_selectedUpSkin) package { import flash.display.*; public dynamic class Button_selectedUpSkin extends MovieClip { } }//package
Section 49
//button_smooth (button_smooth) package { import flash.display.*; public dynamic class button_smooth extends SimpleButton { } }//package
Section 50
//Button_upSkin (Button_upSkin) package { import flash.display.*; public dynamic class Button_upSkin extends MovieClip { } }//package
Section 51
//colorwheel_standard (colorwheel_standard) package { import flash.display.*; public dynamic class colorwheel_standard extends MovieClip { } }//package
Section 52
//EmptyMask (EmptyMask) package { import flash.display.*; public dynamic class EmptyMask extends MovieClip { public var screenMC:MovieClip; public var maskMC:MovieClip; public var backMC:MovieClip; } }//package
Section 53
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 54
//mask1 (mask1) package { import flash.display.*; public dynamic class mask1 extends MovieClip { } }//package
Section 55
//mask10 (mask10) package { import flash.display.*; public dynamic class mask10 extends MovieClip { } }//package
Section 56
//mask11 (mask11) package { import flash.display.*; public dynamic class mask11 extends MovieClip { } }//package
Section 57
//mask12 (mask12) package { import flash.display.*; public dynamic class mask12 extends MovieClip { } }//package
Section 58
//mask13 (mask13) package { import flash.display.*; public dynamic class mask13 extends MovieClip { } }//package
Section 59
//mask14 (mask14) package { import flash.display.*; public dynamic class mask14 extends MovieClip { } }//package
Section 60
//mask15 (mask15) package { import flash.display.*; public dynamic class mask15 extends MovieClip { } }//package
Section 61
//mask16 (mask16) package { import flash.display.*; public dynamic class mask16 extends MovieClip { } }//package
Section 62
//mask17 (mask17) package { import flash.display.*; public dynamic class mask17 extends MovieClip { } }//package
Section 63
//mask18 (mask18) package { import flash.display.*; public dynamic class mask18 extends MovieClip { } }//package
Section 64
//mask19 (mask19) package { import flash.display.*; public dynamic class mask19 extends MovieClip { } }//package
Section 65
//mask2 (mask2) package { import flash.display.*; public dynamic class mask2 extends MovieClip { } }//package
Section 66
//mask20 (mask20) package { import flash.display.*; public dynamic class mask20 extends MovieClip { } }//package
Section 67
//mask3 (mask3) package { import flash.display.*; public dynamic class mask3 extends MovieClip { } }//package
Section 68
//mask4 (mask4) package { import flash.display.*; public dynamic class mask4 extends MovieClip { } }//package
Section 69
//mask5 (mask5) package { import flash.display.*; public dynamic class mask5 extends MovieClip { } }//package
Section 70
//mask6 (mask6) package { import flash.display.*; public dynamic class mask6 extends MovieClip { } }//package
Section 71
//mask7 (mask7) package { import flash.display.*; public dynamic class mask7 extends MovieClip { } }//package
Section 72
//mask8 (mask8) package { import flash.display.*; public dynamic class mask8 extends MovieClip { } }//package
Section 73
//mask9 (mask9) package { import flash.display.*; public dynamic class mask9 extends MovieClip { } }//package
Section 74
//PencilMC (PencilMC) package { import flash.display.*; public dynamic class PencilMC extends MovieClip { } }//package
Section 75
//ScissorsMC (ScissorsMC) package { import flash.display.*; public dynamic class ScissorsMC extends MovieClip { } }//package
Section 76
//slider_button (slider_button) package { import flash.display.*; public dynamic class slider_button extends MovieClip { } }//package
Section 77
//Symbol 1 (Symbol 1) package { import flash.display.*; public dynamic class Symbol 1 extends MovieClip { } }//package

Library Items

Symbol 1 MovieClip {mask1}
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClip {mask12}Uses:2
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClip {mask11}Uses:4
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip {mask10}Uses:6
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip {mask9}Uses:8
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip {mask17}Uses:10
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip {mask13}Uses:12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip {mask8}Uses:14
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip {mask7}Uses:16
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClip {mask6}Uses:18
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClip {mask5}Uses:20
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClip {mask4}Uses:22
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip {mask3}Uses:24
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClip {mask2}Uses:26
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClip {mask14}Uses:28
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClip {mask15}Uses:30
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClip {mask16}Uses:32
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClip {mask18}Uses:34
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip {mask19}Uses:36
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip {mask20}Uses:38
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:40Used by:63
Symbol 42 MovieClip {fl.core.ComponentShim}Used by:63
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClip {Button_disabledSkin}Uses:43Used by:63
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClip {Button_downSkin}Uses:45Used by:63
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClip {Button_emphasizedSkin}Uses:47Used by:63
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClip {Button_overSkin}Uses:49Used by:63
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClip {Button_selectedDisabledSkin}Uses:51Used by:63
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClip {Button_selectedDownSkin}Uses:53Used by:63
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClip {Button_selectedOverSkin}Uses:55Used by:63
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClip {Button_selectedUpSkin}Uses:57Used by:63
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClip {Button_upSkin}Uses:59Used by:63
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClip {focusRectSkin}Uses:61Used by:63
Symbol 63 MovieClip {fl.controls.Button}Uses:41 42 44 46 48 50 52 54 56 58 60 62
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClipUses:64Used by:66 80
Symbol 66 MovieClip {Symbol 1}Uses:65
Symbol 67 GraphicUsed by:74
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:74
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:70Used by:74
Symbol 72 MovieClipUsed by:74
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClip {EmptyMask}Uses:67 69 71 72 73Used by:Timeline
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClip {slider_button}Uses:75Used by:80
Symbol 77 BitmapUsed by:78
Symbol 78 GraphicUses:77Used by:79
Symbol 79 MovieClipUses:78Used by:80
Symbol 80 MovieClip {com.romedia.Slider}Uses:79 65 76Used by:253
Symbol 81 GraphicUsed by:82 84 87 137 151 153 154
Symbol 82 MovieClipUses:81Used by:84 87 137 147 149 150 151 153 154
Symbol 83 GraphicUsed by:84 150
Symbol 84 Button {button_smooth}Uses:82 83 81Used by:253
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClip {ScissorsMC}Uses:85Used by:87 147
Symbol 87 Button {button_scissors}Uses:82 86 81Used by:253
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:90 151
Symbol 90 MovieClip {PencilMC}Uses:89Used by:149
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:106
Symbol 93 FontUsed by:94 95 96 97 98 99 100 101 102 103 104 105 118 119 120 121 122 123 134 140 142 205 220 227 230 233 236 238 239 240 241 244 246 248 250
Symbol 94 TextUses:93Used by:106
Symbol 95 TextUses:93Used by:106
Symbol 96 TextUses:93Used by:106
Symbol 97 TextUses:93Used by:106
Symbol 98 TextUses:93Used by:106
Symbol 99 TextUses:93Used by:106
Symbol 100 TextUses:93Used by:106
Symbol 101 TextUses:93Used by:106
Symbol 102 TextUses:93Used by:106
Symbol 103 TextUses:93Used by:106
Symbol 104 TextUses:93Used by:106
Symbol 105 TextUses:93Used by:106
Symbol 106 MovieClip {colorwheel_standard}Uses:92 94 95 96 97 98 99 100 101 102 103 104 105Used by:131 253
Symbol 107 GraphicUsed by:214 224  Timeline
Symbol 108 GraphicUsed by:111
Symbol 109 GraphicUsed by:111 253
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClip {com.romedia.Main}Uses:108 109 110Used by:Timeline
Symbol 112 GraphicUsed by:116
Symbol 113 GraphicUsed by:114 154
Symbol 114 MovieClipUses:113Used by:116
Symbol 115 GraphicUsed by:116
Symbol 116 MovieClip {gamut_fla.loadingMC_2}Uses:112 114 115Used by:Timeline
Symbol 117 GraphicUsed by:124
Symbol 118 TextUses:93Used by:124
Symbol 119 TextUses:93Used by:124
Symbol 120 TextUses:93Used by:124
Symbol 121 TextUses:93Used by:124
Symbol 122 TextUses:93Used by:124
Symbol 123 TextUses:93Used by:124
Symbol 124 MovieClipUses:117 118 119 120 121 122 123Used by:131 253
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClipUses:125Used by:131
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:127Used by:131
Symbol 129 GraphicUsed by:130
Symbol 130 MovieClipUses:129Used by:131
Symbol 131 MovieClip {com.romedia.Gamut}Uses:106 124 126 128 130Used by:Timeline
Symbol 132 GraphicUsed by:133 135
Symbol 133 MovieClipUses:132Used by:135
Symbol 134 TextUses:93Used by:135
Symbol 135 ButtonUses:133 134 132Used by:253
Symbol 136 GraphicUsed by:137
Symbol 137 ButtonUses:82 136 81Used by:253
Symbol 138 GraphicUsed by:139 141 143
Symbol 139 MovieClipUses:138Used by:141 143
Symbol 140 TextUses:93Used by:141
Symbol 141 ButtonUses:139 140 138Used by:253
Symbol 142 TextUses:93Used by:143
Symbol 143 ButtonUses:139 142 138Used by:253
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClipUses:144Used by:146
Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19}Uses:145Used by:253
Symbol 147 MovieClipUses:82 86Used by:253
Symbol 148 GraphicUsed by:149
Symbol 149 MovieClipUses:148 82 90Used by:253
Symbol 150 MovieClipUses:82 83Used by:253
Symbol 151 ButtonUses:82 89 81Used by:253
Symbol 152 GraphicUsed by:153
Symbol 153 ButtonUses:82 152 81Used by:253
Symbol 154 ButtonUses:82 113 81Used by:253
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:253  Timeline
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:253  Timeline
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClipUses:159Used by:253  Timeline
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClipUses:161Used by:253  Timeline
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClipUses:163Used by:253  Timeline
Symbol 165 GraphicUsed by:166
Symbol 166 MovieClipUses:165Used by:253  Timeline
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:167Used by:253  Timeline
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:253  Timeline
Symbol 171 GraphicUsed by:172
Symbol 172 MovieClipUses:171Used by:253  Timeline
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:253  Timeline
Symbol 175 GraphicUsed by:176
Symbol 176 MovieClipUses:175Used by:253  Timeline
Symbol 177 GraphicUsed by:178
Symbol 178 MovieClipUses:177Used by:253  Timeline
Symbol 179 GraphicUsed by:180
Symbol 180 MovieClipUses:179Used by:253  Timeline
Symbol 181 GraphicUsed by:182
Symbol 182 MovieClipUses:181Used by:253  Timeline
Symbol 183 GraphicUsed by:184
Symbol 184 MovieClipUses:183Used by:253  Timeline
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClipUses:185Used by:253  Timeline
Symbol 187 GraphicUsed by:188
Symbol 188 MovieClipUses:187Used by:253  Timeline
Symbol 189 GraphicUsed by:190
Symbol 190 MovieClipUses:189Used by:253  Timeline
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:191Used by:253  Timeline
Symbol 193 GraphicUsed by:194
Symbol 194 MovieClipUses:193Used by:253  Timeline
Symbol 195 FontUsed by:196 197
Symbol 196 TextUses:195Used by:253
Symbol 197 TextUses:195Used by:253
Symbol 198 GraphicUsed by:200
Symbol 199 GraphicUsed by:200
Symbol 200 ButtonUses:198 199Used by:253
Symbol 201 GraphicUsed by:202 252
Symbol 202 MovieClipUses:201Used by:218 225 228 231 234
Symbol 203 GraphicUsed by:218
Symbol 204 FontUsed by:205 220 227 230 233 236 246
Symbol 205 TextUses:204 93Used by:218
Symbol 206 GraphicUsed by:210
Symbol 207 GraphicUsed by:210
Symbol 208 GraphicUsed by:210
Symbol 209 GraphicUsed by:210
Symbol 210 ButtonUses:206 207 208 209Used by:218
Symbol 211 GraphicUsed by:214
Symbol 212 GraphicUsed by:214
Symbol 213 GraphicUsed by:214
Symbol 214 ButtonUses:211 212 213 107Used by:218
Symbol 215 GraphicUsed by:217
Symbol 216 GraphicUsed by:217
Symbol 217 ButtonUses:215 216Used by:218 225 228 231 234 252
Symbol 218 MovieClip {gamut_fla.info1_57}Uses:202 203 205 210 214 217Used by:253
Symbol 219 GraphicUsed by:225
Symbol 220 TextUses:204 93Used by:225
Symbol 221 GraphicUsed by:224
Symbol 222 GraphicUsed by:224
Symbol 223 GraphicUsed by:224
Symbol 224 ButtonUses:221 222 223 107Used by:225
Symbol 225 MovieClip {gamut_fla.info2_62}Uses:202 219 220 224 217Used by:253
Symbol 226 GraphicUsed by:228
Symbol 227 TextUses:204 93Used by:228
Symbol 228 MovieClip {gamut_fla.info3_64}Uses:202 226 227 217Used by:253
Symbol 229 GraphicUsed by:231
Symbol 230 TextUses:204 93Used by:231
Symbol 231 MovieClip {gamut_fla.info4_65}Uses:202 229 230 217Used by:253
Symbol 232 GraphicUsed by:234
Symbol 233 TextUses:204 93Used by:234
Symbol 234 MovieClip {gamut_fla.info5_66}Uses:202 232 233 217Used by:253
Symbol 235 GraphicUsed by:252
Symbol 236 TextUses:204 93Used by:245
Symbol 237 GraphicUsed by:245
Symbol 238 EditableTextUses:93Used by:245
Symbol 239 EditableTextUses:93Used by:245
Symbol 240 EditableTextUses:93Used by:245
Symbol 241 EditableTextUses:93Used by:245
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:242Used by:245 251
Symbol 244 TextUses:93Used by:245
Symbol 245 MovieClip {gamut_fla.tellafriend_68}Uses:236 237 238 239 240 241 243 244Used by:252
Symbol 246 TextUses:204 93Used by:247
Symbol 247 MovieClipUses:246Used by:251
Symbol 248 TextUses:93Used by:249
Symbol 249 MovieClipUses:248Used by:251
Symbol 250 TextUses:93Used by:251
Symbol 251 MovieClip {gamut_fla.msgMC_70}Uses:247 249 243 250Used by:252
Symbol 252 MovieClip {gamut_fla.sendmailMC_67}Uses:201 235 245 251 217Used by:253
Symbol 253 MovieClip {com.romedia.Control}Uses:109 135 137 141 143 146 147 149 150 87 151 153 154 84 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 80 196 106 124 197 200 218 225 228 231 234 252Used by:Timeline

Instance Names

"MainMC"Frame 1Symbol 111 MovieClip {com.romedia.Main}
"loadingMC"Frame 1Symbol 116 MovieClip {gamut_fla.loadingMC_2}
"backMC"Symbol 74 MovieClip {EmptyMask} Frame 1Symbol 69 MovieClip
"maskMC"Symbol 74 MovieClip {EmptyMask} Frame 1Symbol 71 MovieClip
"screenMC"Symbol 74 MovieClip {EmptyMask} Frame 1Symbol 72 MovieClip
"chromaMC"Symbol 80 MovieClip {com.romedia.Slider} Frame 1Symbol 79 MovieClip
"valueMC"Symbol 80 MovieClip {com.romedia.Slider} Frame 1Symbol 65 MovieClip
"sliderMC"Symbol 80 MovieClip {com.romedia.Slider} Frame 1Symbol 76 MovieClip {slider_button}
"standardMC"Symbol 131 MovieClip {com.romedia.Gamut} Frame 1Symbol 106 MovieClip {colorwheel_standard}
"yurmbyMC"Symbol 131 MovieClip {com.romedia.Gamut} Frame 1Symbol 124 MovieClip
"chromaMC"Symbol 131 MovieClip {com.romedia.Gamut} Frame 1Symbol 126 MovieClip
"valueMC"Symbol 131 MovieClip {com.romedia.Gamut} Frame 1Symbol 128 MovieClip
"maskMaskMC"Symbol 131 MovieClip {com.romedia.Gamut} Frame 1Symbol 130 MovieClip
"dummy0MC"Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19} Frame 1Symbol 145 MovieClip
"dummy4MC"Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19} Frame 1Symbol 145 MovieClip
"dummy1MC"Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19} Frame 1Symbol 145 MovieClip
"dummy5MC"Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19} Frame 1Symbol 145 MovieClip
"dummy2MC"Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19} Frame 1Symbol 145 MovieClip
"dummy6MC"Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19} Frame 1Symbol 145 MovieClip
"dummy3MC"Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19} Frame 1Symbol 145 MovieClip
"dummy7MC"Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19} Frame 1Symbol 145 MovieClip
"link1BTN"Symbol 218 MovieClip {gamut_fla.info1_57} Frame 1Symbol 210 Button
"link2BTN"Symbol 218 MovieClip {gamut_fla.info1_57} Frame 1Symbol 214 Button
"closeBTN"Symbol 218 MovieClip {gamut_fla.info1_57} Frame 1Symbol 217 Button
"link1BTN"Symbol 225 MovieClip {gamut_fla.info2_62} Frame 1Symbol 224 Button
"closeBTN"Symbol 225 MovieClip {gamut_fla.info2_62} Frame 1Symbol 217 Button
"closeBTN"Symbol 228 MovieClip {gamut_fla.info3_64} Frame 1Symbol 217 Button
"closeBTN"Symbol 231 MovieClip {gamut_fla.info4_65} Frame 1Symbol 217 Button
"closeBTN"Symbol 234 MovieClip {gamut_fla.info5_66} Frame 1Symbol 217 Button
"nameTF"Symbol 245 MovieClip {gamut_fla.tellafriend_68} Frame 1Symbol 238 EditableText
"emailTF"Symbol 245 MovieClip {gamut_fla.tellafriend_68} Frame 1Symbol 239 EditableText
"friendNameTF"Symbol 245 MovieClip {gamut_fla.tellafriend_68} Frame 1Symbol 240 EditableText
"friendEmailTF"Symbol 245 MovieClip {gamut_fla.tellafriend_68} Frame 1Symbol 241 EditableText
"sendBTN"Symbol 245 MovieClip {gamut_fla.tellafriend_68} Frame 1Symbol 243 MovieClip
"sucessMC"Symbol 251 MovieClip {gamut_fla.msgMC_70} Frame 1Symbol 247 MovieClip
"insucessMC"Symbol 251 MovieClip {gamut_fla.msgMC_70} Frame 1Symbol 249 MovieClip
"okBTN"Symbol 251 MovieClip {gamut_fla.msgMC_70} Frame 1Symbol 243 MovieClip
"inputsMC"Symbol 252 MovieClip {gamut_fla.sendmailMC_67} Frame 1Symbol 245 MovieClip {gamut_fla.tellafriend_68}
"msgMC"Symbol 252 MovieClip {gamut_fla.sendmailMC_67} Frame 1Symbol 251 MovieClip {gamut_fla.msgMC_70}
"closeBTN"Symbol 252 MovieClip {gamut_fla.sendmailMC_67} Frame 1Symbol 217 Button
"linkBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 135 Button
"fullscreenBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 137 Button
"tellafriendBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 141 Button
"printBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 143 Button
"customMaskScreenMC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 146 MovieClip {gamut_fla.customMaskScreenMC_19}
"cutFreeformBTN_MC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 147 MovieClip
"drawFreeformBTN_MC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 149 MovieClip
"smoothFreeformBTN_MC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 150 MovieClip
"cutFreeformBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 87 Button {button_scissors}
"drawFreeformBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 151 Button
"addBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 153 Button
"removeBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 154 Button
"smoothFreeformBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 84 Button {button_smooth}
"mask19BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 156 MovieClip
"mask18BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 158 MovieClip
"mask17BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 160 MovieClip
"mask15BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 162 MovieClip
"mask14BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 164 MovieClip
"mask13BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 166 MovieClip
"mask1BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 168 MovieClip
"mask2BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 170 MovieClip
"mask3BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 172 MovieClip
"mask4BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 174 MovieClip
"mask5BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 176 MovieClip
"mask6BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 178 MovieClip
"mask7BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 180 MovieClip
"mask12BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 182 MovieClip
"mask16BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 184 MovieClip
"mask8BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 186 MovieClip
"mask9BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 188 MovieClip
"mask10BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 190 MovieClip
"mask11BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 192 MovieClip
"mask0BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 194 MovieClip
"chromaSliderMC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 80 MovieClip {com.romedia.Slider}
"valueSliderMC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 80 MovieClip {com.romedia.Slider}
"standardBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 106 MovieClip {colorwheel_standard}
"yurmbyBTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 124 MovieClip
"help4BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 200 Button
"help5BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 200 Button
"help3BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 200 Button
"help2BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 200 Button
"help1BTN"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 200 Button
"info1MC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 218 MovieClip {gamut_fla.info1_57}
"info2MC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 225 MovieClip {gamut_fla.info2_62}
"info3MC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 228 MovieClip {gamut_fla.info3_64}
"info4MC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 231 MovieClip {gamut_fla.info4_65}
"info5MC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 234 MovieClip {gamut_fla.info5_66}
"sendMailMC"Symbol 253 MovieClip {com.romedia.Control} Frame 1Symbol 252 MovieClip {gamut_fla.sendmailMC_67}

Special Tags

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




http://swfchan.com/40/195219/info.shtml
Created: 14/10 -2018 02:28:53 Last modified: 14/10 -2018 02:28:53 Server time: 14/11 -2024 06:37:32