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

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

chinese-chef.swf

This is the info page for
Flash #109838

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


Text
Cargando

Loading

Chargement

Carregando

-

+

<p align="center"><font face="Karate" size="24" color="#ff0000" letterSpacing="2.000000" kerning="1">0</font></p>

<p align="center"><font face="Karate" size="24" color="#ff0000" letterSpacing="2.000000" kerning="1">0:00</font></p>

<p align="left"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">tIempo</font></p>

<p align="left"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">puntos</font></p>

<p align="left"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">nivel</font></p>

<p align="center"><font face="Karate" size="30" color="#ff0000" letterSpacing="2.000000" kerning="1">1</font></p>

<p align="center"><font face="Katana" size="17" color="#ff0000" letterSpacing="0.000000" kerning="1">pausa</font></p>

<p align="center"><font face="Katana" size="18" color="#ff0000" letterSpacing="0.000000" kerning="1">play</font></p>

<p align="center"><font face="Karate" size="40" color="#ff00cc" letterSpacing="0.000000" kerning="1">Jugar</font></p>

<p align="center"><font face="Karate" size="40" color="#ff99ff" letterSpacing="0.000000" kerning="1">Jugar</font></p>

<p align="center"><font face="Karate" size="29" color="#ff00cc" letterSpacing="0.000000" kerning="1">Mas juegos</font></p>

<p align="center"><font face="Karate" size="29" color="#ff00cc" letterSpacing="0.000000" kerning="1">Mas juegos</font></p>

<p align="center"><font face="Karate" size="29" color="#ff00cc" letterSpacing="0.000000" kerning="1">Descargar</font></p><p align="center"><font face="Karate" size="29" color="#ff00cc" letterSpacing="0.000000" kerning="1">juego</font></p>

<p align="center"><font face="Karate" size="29" color="#ff00cc" letterSpacing="0.000000" kerning="1">Descargar</font></p><p align="center"><font face="Karate" size="29" color="#ff00cc" letterSpacing="0.000000" kerning="1">juego</font></p>

<p align="center"><font face="Karate" size="40" color="#ff00cc" letterSpacing="0.000000" kerning="1">Top 10</font></p>

<p align="center"><font face="Karate" size="40" color="#ff00cc" letterSpacing="0.000000" kerning="1">Top 10</font></p>

<p align="center"><font face="Katana" size="70" color="#ff0000" letterSpacing="2.000000" kerning="1">17</font></p>

<p align="center"><font face="Katana" size="70" color="#ff0000" letterSpacing="0.000000" kerning="1">NiVEL </font></p>

<p align="center"><font face="Katana" size="70" color="#ff0000" letterSpacing="0.000000" kerning="1">compleTO </font></p>

<p align="center"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">Felicitaciones !!</font></p>

<p align="center"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">has ganado</font></p>

<p align="center"><font face="Katana" size="28" color="#ff0000" letterSpacing="0.000000" kerning="1">escribe tu nick</font></p>

<p align="center"><font face="Katana" size="35" color="#ff0000" letterSpacing="0.000000" kerning="1">comenzar de nuevo</font></p>

<p align="center"><font face="Katana" size="35" color="#ff00cc" letterSpacing="0.000000" kerning="1">comenzar de nuevo</font></p>

<p align="center"><font face="Katana" size="42" color="#ff0000" letterSpacing="0.000000" kerning="1">Enviar puntaje</font></p>

<p align="center"><font face="Katana" size="42" color="#ff00cc" letterSpacing="0.000000" kerning="1">Enviar puntaje</font></p>

<p align="center"><font face="Katana" size="35" color="#ff0000" letterSpacing="0.000000" kerning="1">Mas juegos</font></p>

<p align="center"><font face="Katana" size="35" color="#ff00cc" letterSpacing="0.000000" kerning="1">Mas juegos</font></p>

<p align="left"><font face="Katana" size="18" color="#ff0000" letterSpacing="0.000000" kerning="1"></font></p>

<p align="center"><font face="Katana" size="35" color="#ff0000" letterSpacing="0.000000" kerning="1">OK 10</font></p>

<p align="left"><font face="Katana" size="18" color="#ff0000" letterSpacing="0.000000" kerning="1">nickname</font></p>

<p align="center"><font face="Katana" size="18" color="#ff0000" letterSpacing="0.000000" kerning="1">puntaje</font></p>

<p align="center"><font face="Katana" size="50" color="#ff0000" letterSpacing="0.000000" kerning="1">cerrar</font></p>

<p align="center"><font face="Katana" size="50" color="#ff0000" letterSpacing="0.000000" kerning="1">Cerrar</font></p>

<p align="center"><font face="Katana" size="70" color="#ff0000" letterSpacing="2.000000" kerning="1">17</font></p>

<p align="center"><font face="Katana" size="70" color="#ff0000" letterSpacing="0.000000" kerning="1">NiVEL </font></p>

<p align="right"><font face="Katana" size="25" color="#ff0000" letterSpacing="0.000000" kerning="1">you have </font></p>

<p align="left"><font face="Katana" size="25" color="#ff0000" letterSpacing="0.000000" kerning="1">segundos para completar el nivel </font></p>

<p align="center"><font face="Katana" size="25" color="#ff0000" letterSpacing="0.000000" kerning="1">240</font></p>

<p align="center"><font face="Katana" size="35" color="#ff0000" letterSpacing="0.000000" kerning="1">NIVEL cOMPLETO</font></p>

<p align="center"><font face="Katana" size="25" color="#ff0000" letterSpacing="0.000000" kerning="1">haz clic para continuar</font></p>

<p align="center"><font face="Katana" size="28" color="#ff0000" letterSpacing="0.000000" kerning="1">puntos</font></p>

<p align="center"><font face="Katana" size="28" color="#ff0000" letterSpacing="0.000000" kerning="1">Tiempo</font></p>

<p align="center"><font face="Katana" size="25" color="#ff0000" letterSpacing="0.000000" kerning="1">total puntaje</font></p>

<p align="center"><font face="Karate" size="24" color="#ff0000" letterSpacing="2.000000" kerning="1">0</font></p>

<p align="center"><font face="Karate" size="24" color="#ff0000" letterSpacing="2.000000" kerning="1">00:00</font></p>

<p align="center"><font face="Karate" size="23" color="#ff0000" letterSpacing="2.000000" kerning="1">0</font></p>

<p align="center"><font face="Katana" size="36" color="#ff0000" letterSpacing="0.000000" kerning="1">instrucciones</font></p>

<p align="center"><font face="Katana" size="20" color="#ff0000" letterSpacing="0.000000" kerning="1">You must use your </font></p><p align="center"><font face="Katana" size="20" color="#ff0000" letterSpacing="0.000000" kerning="1">memory and find the pairs of ingredients by clicking the boxes</font></p>

<p align="center"><font face="Katana" size="50" color="#ff0000" letterSpacing="0.000000" kerning="1">Jugar</font></p>

<p align="center"><font face="Katana" size="50" color="#ff99ff" letterSpacing="0.000000" kerning="1">Jugar</font></p>

<p align="center"><font face="Katana" size="20" color="#ff0000" letterSpacing="0.000000" kerning="1"> before the end time of each level.</font></p>

<p align="center"><font face="Katana" size="60" color="#ff0000" letterSpacing="0.000000" kerning="1">¿Continuar?</font></p>

<p align="center"><font face="Katana" size="90" color="#ff0000" letterSpacing="0.000000" kerning="1">10</font></p>

<p align="center"><font face="Katana" size="20" color="#ff0000" letterSpacing="0.000000" kerning="1">(you have</font></p>

<p align="center"><font face="Katana" size="20" color="#ff0000" letterSpacing="0.000000" kerning="1">continues)</font></p>

<p align="center"><font face="Katana" size="20" color="#ff0000" letterSpacing="0.000000" kerning="1">2</font></p>

<p align="center"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">Se ha terminado tu tiempo</font></p>

<p align="center"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">haz clic para continuar</font></p>

<p align="center"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">haz clic para continuar</font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">Não conseguiu pontuação suficiente </font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">para entrar en el</font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">TOP 10</font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">TOP 10</font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">TOP 10</font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">TOP 10</font></p>

<p align="center"><font face="Katana" size="35" color="#ff0000" letterSpacing="0.000000" kerning="1">Descargar juego</font></p>

<p align="center"><font face="Katana" size="35" color="#ff0000" letterSpacing="0.000000" kerning="1">Descargar juego</font></p>

<p align="center"><font face="Katana" size="100" color="#ff0000" letterSpacing="0.000000" kerning="1">GAME OVER</font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">Tu puntaje: </font></p>

<p align="center"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="center"><font face="Katana" size="80" color="#ff0000" letterSpacing="0.000000" kerning="1">Pausa</font></p>

<p align="center"><font face="Katana" size="100" color="#ff0000" letterSpacing="0.000000" kerning="1">GAME OVER</font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">Não conseguiu pontuação suficiente </font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">para entrar en el</font></p>

<p align="center"><font face="Katana" size="24" color="#ff0000" letterSpacing="0.000000" kerning="1">Votre score: </font></p>

<p align="left"><font face="Katana" size="30" color="#ff0000" letterSpacing="0.000000" kerning="1">0</font></p>

ActionScript [AS3]

Section 1
//CargadorPrincipal (cargador.CargadorPrincipal) package cargador { import flash.events.*; import flash.display.*; import eventos.*; import utiles.*; public class CargadorPrincipal extends Sprite { private var mostrandoCargador:Boolean; public var selectorSprite:Sprite; private var selectorI:SelectorIdioma; private var fSalida:Function; private var cargadorI:MonitorCarga; private var loader:LoaderInfo; private var segundosPasados:Number;// = 0 private var reloj:Reloj; private var tiempoMinimo:Number;// = 0 private var porcentajeCargado:Number;// = 0 private var cargado:Number; private var porcentajeTiempo:Number;// = 0 public var cargadorSprite:Sprite; private function pasaSegundo(){ segundosPasados++; porcentajeTiempo = (segundosPasados / tiempoMinimo); } public function setea(_arg1:Number, _arg2:Function){ trace("CargadorPrincipal"); removeChild(cargadorSprite); tiempoMinimo = _arg1; loader = parent.loaderInfo; fSalida = _arg2; cargadorI = (cargadorSprite as MonitorCarga); selectorI = (selectorSprite as SelectorIdioma); loader.addEventListener(ProgressEvent.PROGRESS, avanza); selectorSprite.addEventListener(EventoIdioma.SELECCIONADO, ponerIdioma); } private function avanza(_arg1:ProgressEvent){ porcentajeCargado = (loader.bytesLoaded / loader.bytesTotal); } private function terminoAnimacionCargador(_arg1:Event){ deconstructor(); fSalida(); fSalida = null; } public function deconstructor(){ cargadorSprite.removeEventListener(Termina.TERMINA, terminoAnimacionCargador); removeEventListener(Event.ENTER_FRAME, avanzaFrame); trace("CargadorPrincipal::deconstuctor"); loader = null; reloj.deconstructor(); reloj = null; removeChild(cargadorSprite); cargadorI.deconstructor(); selectorI.deconstructor(); cargadorSprite = null; selectorSprite = null; cargadorI = null; selectorI = null; } private function avanzaFrame(_arg1:Event){ var _local2:Number = Math.min(porcentajeCargado, porcentajeTiempo); if (_local2 >= 1){ cargadorSprite.addEventListener(Termina.TERMINA, terminoAnimacionCargador); cargadorI.avanza(_local2); } else { cargadorI.avanza(_local2); }; } private function ponerIdioma(_arg1:EventoIdioma){ trace("CargadorPrincipal::ponerIdioma"); Traductor.cambiar(_arg1.idioma); cargadorI.arranca(); addEventListener(Event.ENTER_FRAME, avanzaFrame); reloj = new Reloj(50, pasaSegundo); addChild(cargadorSprite); removeChild(selectorSprite); } } }//package cargador
Section 2
//EventoIdioma (cargador.EventoIdioma) package cargador { import flash.events.*; public class EventoIdioma extends Event { private var _idioma:int; public static const SELECCIONADO:String = "seleccionado"; public function EventoIdioma(_arg1:String, _arg2:int=1){ super(_arg1); _idioma = _arg2; } public function get idioma():int{ return (_idioma); } override public function clone():Event{ return (new EventoIdioma(type, _idioma)); } } }//package cargador
Section 3
//MonitorCarga (cargador.MonitorCarga) package cargador { public interface MonitorCarga { function deconstructor():void; function avanza(_arg1:Number); function despacharEventoTermina():void; function arranca():void; } }//package cargador
Section 4
//SelectorIdioma (cargador.SelectorIdioma) package cargador { public interface SelectorIdioma { function deconstructor():void; function despacharEventoIdioma(_arg1:int):void; } }//package cargador
Section 5
//EventoExtra (eventos.EventoExtra) package eventos { import flash.events.*; public class EventoExtra extends Event { private var _extra:Object; public static const ACCION_TERMINADA:String = "accionTerminada"; public function EventoExtra(_arg1:String, _arg2:Object=null){ super(_arg1); if (_arg2){ _extra = _arg2; } else { new Object(); }; } public function get extra():Object{ return (_extra); } } }//package eventos
Section 6
//Termina (eventos.Termina) package eventos { import flash.events.*; public class Termina extends Event { public static const TERMINA:String = "termina"; public function Termina(){ super("termina"); } override public function clone():Event{ return (new Termina()); } } }//package eventos
Section 7
//BaseScrollPane (fl.containers.BaseScrollPane) package fl.containers { import fl.core.*; import flash.events.*; import fl.controls.*; import flash.display.*; import flash.geom.*; import fl.events.*; public class BaseScrollPane extends UIComponent { protected var contentHeight:Number;// = 0 protected var _horizontalScrollBar:ScrollBar; protected var _horizontalPageScrollSize:Number;// = 0 protected var _verticalPageScrollSize:Number;// = 0 protected var _maxHorizontalScrollPosition:Number;// = 0 protected var defaultLineScrollSize:Number;// = 4 protected var vOffset:Number;// = 0 protected var contentScrollRect:Rectangle; protected var background:DisplayObject; protected var _verticalScrollBar:ScrollBar; protected var disabledOverlay:Shape; protected var vScrollBar:Boolean; protected var _horizontalScrollPolicy:String; protected var useFixedHorizontalScrolling:Boolean;// = false protected var contentWidth:Number;// = 0 protected var availableHeight:Number; protected var _verticalScrollPolicy:String; protected var contentPadding:Number;// = 0 protected var _useBitmpScrolling:Boolean;// = false protected var availableWidth:Number; protected var hScrollBar:Boolean; protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5}; override public function set enabled(_arg1:Boolean):void{ if (enabled == _arg1){ return; }; _verticalScrollBar.enabled = _arg1; _horizontalScrollBar.enabled = _arg1; super.enabled = _arg1; } public function set useBitmapScrolling(_arg1:Boolean):void{ _useBitmpScrolling = _arg1; invalidate(InvalidationType.STATE); } public function set horizontalLineScrollSize(_arg1:Number):void{ _horizontalScrollBar.lineScrollSize = _arg1; } protected function drawLayout():void{ calculateAvailableSize(); calculateContentWidth(); background.width = width; background.height = height; if (vScrollBar){ _verticalScrollBar.visible = true; _verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding); _verticalScrollBar.y = contentPadding; _verticalScrollBar.height = availableHeight; } else { _verticalScrollBar.visible = false; }; _verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize); setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); if (hScrollBar){ _horizontalScrollBar.visible = true; _horizontalScrollBar.x = contentPadding; _horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding); _horizontalScrollBar.width = availableWidth; } else { _horizontalScrollBar.visible = false; }; _horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize); setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); drawDisabledOverlay(); } protected function handleWheel(_arg1:MouseEvent):void{ if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){ return; }; _verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize)); setVerticalScrollPosition(_verticalScrollBar.scrollPosition); dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition)); } protected function handleScroll(_arg1:ScrollEvent):void{ if (_arg1.target == _verticalScrollBar){ setVerticalScrollPosition(_arg1.position); } else { setHorizontalScrollPosition(_arg1.position); }; } public function get verticalLineScrollSize():Number{ return (_verticalScrollBar.lineScrollSize); } protected function drawBackground():void{ var _local1:DisplayObject = background; background = getDisplayObjectInstance(getStyleValue("skin")); background.width = width; background.height = height; addChildAt(background, 0); if (((!((_local1 == null))) && (!((_local1 == background))))){ removeChild(_local1); }; } protected function calculateAvailableSize():void{ var _local1:Number = ScrollBar.WIDTH; var _local2:Number = (contentPadding = Number(getStyleValue("contentPadding"))); var _local3:Number = ((height - (2 * _local2)) - vOffset); vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3))))); var _local4:Number = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2)); var _local5:Number = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4); hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0))))); if (hScrollBar){ _local3 = (_local3 - _local1); }; if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){ vScrollBar = true; _local4 = (_local4 - _local1); }; availableHeight = (_local3 + vOffset); availableWidth = _local4; } public function get verticalScrollPosition():Number{ return (_verticalScrollBar.scrollPosition); } public function get horizontalScrollPolicy():String{ return (_horizontalScrollPolicy); } protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } public function get horizontalPageScrollSize():Number{ if (isNaN(availableWidth)){ drawNow(); }; return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize); } public function set horizontalScrollPosition(_arg1:Number):void{ drawNow(); _horizontalScrollBar.scrollPosition = _arg1; setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); } public function set verticalLineScrollSize(_arg1:Number):void{ _verticalScrollBar.lineScrollSize = _arg1; } public function get maxVerticalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentHeight - availableHeight))); } public function set horizontalPageScrollSize(_arg1:Number):void{ _horizontalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){ drawLayout(); }; updateChildren(); super.draw(); } public function get horizontalScrollBar():ScrollBar{ return (_horizontalScrollBar); } protected function calculateContentWidth():void{ } public function set horizontalScrollPolicy(_arg1:String):void{ _horizontalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } override protected function configUI():void{ super.configUI(); contentScrollRect = new Rectangle(0, 0, 85, 85); _verticalScrollBar = new ScrollBar(); _verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _verticalScrollBar.visible = false; _verticalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_verticalScrollBar); copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); _horizontalScrollBar = new ScrollBar(); _horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL; _horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _horizontalScrollBar.visible = false; _horizontalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_horizontalScrollBar); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); disabledOverlay = new Shape(); var _local1:Graphics = disabledOverlay.graphics; _local1.beginFill(0xFFFFFF); _local1.drawRect(0, 0, width, height); _local1.endFill(); addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true); } protected function drawDisabledOverlay():void{ if (enabled){ if (contains(disabledOverlay)){ removeChild(disabledOverlay); }; } else { disabledOverlay.x = (disabledOverlay.y = contentPadding); disabledOverlay.width = availableWidth; disabledOverlay.height = availableHeight; disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number); addChild(disabledOverlay); }; } public function get horizontalScrollPosition():Number{ return (_horizontalScrollBar.scrollPosition); } public function get verticalScrollBar():ScrollBar{ return (_verticalScrollBar); } public function get horizontalLineScrollSize():Number{ return (_horizontalScrollBar.lineScrollSize); } public function set verticalScrollPosition(_arg1:Number):void{ drawNow(); _verticalScrollBar.scrollPosition = _arg1; setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); } protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } protected function setStyles():void{ copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); } public function set verticalPageScrollSize(_arg1:Number):void{ _verticalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } protected function setContentSize(_arg1:Number, _arg2:Number):void{ if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){ return; }; contentWidth = _arg1; contentHeight = _arg2; invalidate(InvalidationType.SIZE); } public function set verticalScrollPolicy(_arg1:String):void{ _verticalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } public function get maxHorizontalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentWidth - availableWidth))); } protected function updateChildren():void{ _verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled); _verticalScrollBar.drawNow(); _horizontalScrollBar.drawNow(); } public function get verticalPageScrollSize():Number{ if (isNaN(availableHeight)){ drawNow(); }; return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize); } public function get verticalScrollPolicy():String{ return (_verticalScrollPolicy); } public function get useBitmapScrolling():Boolean{ return (_useBitmpScrolling); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition())); } } }//package fl.containers
Section 8
//DataGridCellEditor (fl.controls.dataGridClasses.DataGridCellEditor) package fl.controls.dataGridClasses { import fl.controls.listClasses.*; import fl.controls.*; public class DataGridCellEditor extends TextInput implements ICellRenderer { protected var _listData:ListData; protected var _data:Object; private static var defaultStyles:Object = {textPadding:1, textFormat:null, upSkin:"DataGridCellEditor_skin"}; public function DataGridCellEditor():void{ } public function get selected():Boolean{ return (false); } public function get listData():ListData{ return (_listData); } public function get data():Object{ return (_data); } public function set data(_arg1:Object):void{ _data = _arg1; } public function setMouseState(_arg1:String):void{ } public function set selected(_arg1:Boolean):void{ } public function set listData(_arg1:ListData):void{ _listData = _arg1; text = _listData.label; } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls.dataGridClasses
Section 9
//DataGridColumn (fl.controls.dataGridClasses.DataGridColumn) package fl.controls.dataGridClasses { import fl.core.*; import fl.controls.*; public class DataGridColumn { private var _headerText:String; public var editorDataField:String;// = "text" public var sortable:Boolean;// = true private var forceImport:DataGridCellEditor; private var _headerRenderer:Object; public var sortOptions:uint;// = 0 private var _cellRenderer:Object; private var _columnName:String; public var resizable:Boolean;// = true private var _sortCompareFunction:Function; private var _visible:Boolean;// = true public var sortDescending:Boolean;// = false public var owner:DataGrid; private var _imeMode:String; private var _width:Number;// = 100 public var editable:Boolean;// = true public var explicitWidth:Number; private var _minWidth:Number;// = 20 private var _labelFunction:Function; public var itemEditor:Object;// = "fl.controls.dataGridClasses.DataGridCellEditor" public var colNum:Number; public var dataField:String; public function DataGridColumn(_arg1:String=null){ if (_arg1){ dataField = _arg1; headerText = _arg1; }; } public function get visible():Boolean{ return (_visible); } public function get imeMode():String{ return (_imeMode); } public function setWidth(_arg1:Number):void{ _width = _arg1; } public function set width(_arg1:Number):void{ var _local2:Boolean; explicitWidth = _arg1; if (owner != null){ _local2 = resizable; resizable = false; owner.resizeColumn(colNum, _arg1); resizable = _local2; } else { _width = _arg1; }; } public function set cellRenderer(_arg1:Object):void{ _cellRenderer = _arg1; if (owner){ owner.invalidate(InvalidationType.DATA); }; } public function get minWidth():Number{ return (_minWidth); } public function set imeMode(_arg1:String):void{ _imeMode = _arg1; } public function toString():String{ return ("[object DataGridColumn]"); } public function itemToLabel(_arg1:Object):String{ var data = _arg1; if (!data){ return (" "); }; if (labelFunction != null){ return (labelFunction(data)); }; if (owner.labelFunction != null){ return (owner.labelFunction(data, this)); }; if ((((typeof(data) == "object")) || ((typeof(data) == "xml")))){ try { data = data[dataField]; } catch(e:Error) { data = null; }; }; if ((data is String)){ return (String(data)); }; try { return (data.toString()); } catch(e:Error) { }; return (" "); } public function set minWidth(_arg1:Number):void{ _minWidth = _arg1; if (_width < _arg1){ _width = _arg1; }; if (owner){ owner.invalidate(InvalidationType.SIZE); }; } public function set headerText(_arg1:String):void{ _headerText = _arg1; if (owner){ owner.invalidate(InvalidationType.DATA); }; } public function set sortCompareFunction(_arg1:Function):void{ _sortCompareFunction = _arg1; } public function get width():Number{ return (_width); } public function get cellRenderer():Object{ return (_cellRenderer); } public function set labelFunction(_arg1:Function):void{ if (_labelFunction == _arg1){ return; }; _labelFunction = _arg1; if (owner){ owner.invalidate(InvalidationType.DATA); }; } public function set headerRenderer(_arg1:Object):void{ _headerRenderer = _arg1; if (owner){ owner.invalidate(InvalidationType.DATA); }; } public function get headerText():String{ return (((_headerText)!=null) ? _headerText : dataField); } public function get sortCompareFunction():Function{ return (_sortCompareFunction); } public function get headerRenderer():Object{ return (_headerRenderer); } public function get labelFunction():Function{ return (_labelFunction); } public function set visible(_arg1:Boolean):void{ if (_visible != _arg1){ _visible = _arg1; if (owner){ owner.invalidate(InvalidationType.SIZE); }; }; } } }//package fl.controls.dataGridClasses
Section 10
//HeaderRenderer (fl.controls.dataGridClasses.HeaderRenderer) package fl.controls.dataGridClasses { import fl.controls.*; public class HeaderRenderer extends LabelButton { public var _column:uint; private static var defaultStyles:Object = {upSkin:"HeaderRenderer_upSkin", downSkin:"HeaderRenderer_downSkin", overSkin:"HeaderRenderer_overSkin", disabledSkin:"HeaderRenderer_disabledSkin", selectedDisabledSkin:"HeaderRenderer_selectedDisabledSkin", selectedUpSkin:"HeaderRenderer_selectedUpSkin", selectedDownSkin:"HeaderRenderer_selectedDownSkin", selectedOverSkin:"HeaderRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, textPadding:5}; public function HeaderRenderer():void{ focusEnabled = false; } override protected function drawLayout():void{ var _local1:Number = Number(getStyleValue("textPadding")); textField.height = (textField.textHeight + 4); textField.visible = (label.length > 0); var _local2:Number = (textField.textWidth + 4); var _local3:Number = (textField.textHeight + 4); var _local4:Number = ((icon)==null) ? 0 : (icon.width + 4); var _local5:Number = Math.max(0, Math.min(_local2, ((width - (2 * _local1)) - _local4))); if (icon != null){ icon.x = (((width - _local1) - icon.width) - 2); icon.y = Math.round(((height - icon.height) / 2)); }; textField.width = _local5; textField.x = _local1; textField.y = Math.round(((height - textField.height) / 2)); background.width = width; background.height = height; } public function set column(_arg1:uint):void{ _column = _arg1; } public function get column():uint{ return (_column); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls.dataGridClasses
Section 11
//CellRenderer (fl.controls.listClasses.CellRenderer) package fl.controls.listClasses { import flash.events.*; import fl.controls.*; public class CellRenderer extends LabelButton implements ICellRenderer { protected var _listData:ListData; protected var _data:Object; private static var defaultStyles:Object = {upSkin:"CellRenderer_upSkin", downSkin:"CellRenderer_downSkin", overSkin:"CellRenderer_overSkin", disabledSkin:"CellRenderer_disabledSkin", selectedDisabledSkin:"CellRenderer_selectedDisabledSkin", selectedUpSkin:"CellRenderer_selectedUpSkin", selectedDownSkin:"CellRenderer_selectedDownSkin", selectedOverSkin:"CellRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5}; public function CellRenderer():void{ toggle = true; focusEnabled = false; } override public function set selected(_arg1:Boolean):void{ super.selected = _arg1; } override protected function drawLayout():void{ var _local3:Number; var _local1:Number = Number(getStyleValue("textPadding")); var _local2:Number = 0; if (icon != null){ icon.x = _local1; icon.y = Math.round(((height - icon.height) >> 1)); _local2 = (icon.width + _local1); }; if (label.length > 0){ textField.visible = true; _local3 = Math.max(0, ((width - _local2) - (_local1 * 2))); textField.width = _local3; textField.height = (textField.textHeight + 4); textField.x = (_local2 + _local1); textField.y = Math.round(((height - textField.height) >> 1)); } else { textField.visible = false; }; background.width = width; background.height = height; } public function get listData():ListData{ return (_listData); } override public function setSize(_arg1:Number, _arg2:Number):void{ super.setSize(_arg1, _arg2); } public function get data():Object{ return (_data); } public function set data(_arg1:Object):void{ _data = _arg1; } public function set listData(_arg1:ListData):void{ _listData = _arg1; label = _listData.label; setStyle("icon", _listData.icon); } override public function get selected():Boolean{ return (super.selected); } override protected function toggleSelected(_arg1:MouseEvent):void{ } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls.listClasses
Section 12
//ICellRenderer (fl.controls.listClasses.ICellRenderer) package fl.controls.listClasses { public interface ICellRenderer { function set x(_arg1:Number):void; function set y(_arg1:Number):void; function setSize(_arg1:Number, _arg2:Number):void; function set data(_arg1:Object):void; function set selected(_arg1:Boolean):void; function set listData(_arg1:ListData):void; function get listData():ListData; function get data():Object; function get selected():Boolean; function setMouseState(_arg1:String):void; } }//package fl.controls.listClasses
Section 13
//ListData (fl.controls.listClasses.ListData) package fl.controls.listClasses { import fl.core.*; public class ListData { protected var _index:uint; protected var _owner:UIComponent; protected var _label:String; protected var _icon:Object;// = null protected var _row:uint; protected var _column:uint; public function ListData(_arg1:String, _arg2:Object, _arg3:UIComponent, _arg4:uint, _arg5:uint, _arg6:uint=0){ _label = _arg1; _icon = _arg2; _owner = _arg3; _index = _arg4; _row = _arg5; _column = _arg6; } public function get row():uint{ return (_row); } public function get owner():UIComponent{ return (_owner); } public function get label():String{ return (_label); } public function get index():uint{ return (_index); } public function get icon():Object{ return (_icon); } public function get column():uint{ return (_column); } } }//package fl.controls.listClasses
Section 14
//BaseButton (fl.controls.BaseButton) package fl.controls { import fl.core.*; import flash.events.*; import flash.display.*; import fl.events.*; import flash.utils.*; public class BaseButton extends UIComponent { protected var pressTimer:Timer; protected var _autoRepeat:Boolean;// = false protected var _selected:Boolean;// = false protected var background:DisplayObject; private var unlockedMouseState:String; protected var mouseState:String; private var _mouseStateLocked:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } override public function get enabled():Boolean{ return (super.enabled); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function drawLayout():void{ background.width = width; background.height = height; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } protected function drawBackground():void{ var _local1:String = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); var _local2:DisplayObject = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public function get selected():Boolean{ return (_selected); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 15
//Button (fl.controls.Button) package fl.controls { import fl.core.*; import flash.display.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var _emphasized:Boolean;// = false protected var emphasizedBorder:DisplayObject; private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; var _local1:Object = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 16
//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 17
//DataGrid (fl.controls.DataGrid) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.events.*; import flash.display.*; import flash.geom.*; import fl.data.*; import fl.managers.*; import fl.events.*; import fl.controls.dataGridClasses.*; import flash.utils.*; import flash.ui.*; public class DataGrid extends SelectableList implements IFocusManagerComponent { protected var columnStretchCursor:Sprite; protected var _showHeaders:Boolean;// = true protected var visibleColumns:Array; public var itemEditorInstance:Object; protected var headerMask:Sprite; protected var displayableColumns:Array; protected var _rowHeight:Number;// = 20 protected var _cellRenderer:Object; protected var proposedEditedItemPosition; protected var columnStretchIndex:Number;// = -1 protected var _sortDescending:Boolean;// = false protected var currentHoveredRow:int;// = -1 protected var columnsInvalid:Boolean;// = true protected var _sortIndex:int;// = -1 protected var dragHandlesMap:Dictionary; protected var losingFocus:Boolean;// = false public var editable:Boolean;// = false protected var _minColumnWidth:Number; protected var header:Sprite; protected var _headerRenderer:Object; protected var availableCellRenderersMap:Dictionary; protected var isPressed:Boolean;// = false protected var _columns:Array; protected var maxHeaderHeight:Number;// = 25 public var resizableColumns:Boolean;// = true protected var columnStretchStartWidth:Number; protected var minColumnWidthInvalid:Boolean;// = false protected var _editedItemPosition:Object; public var sortableColumns:Boolean;// = true protected var actualRowIndex:int; protected var editedItemPositionChanged:Boolean;// = false protected var activeCellRenderersMap:Dictionary; protected var lastSortIndex:int;// = -1 protected var actualColIndex:int; protected var columnStretchStartX:Number; protected var _labelFunction:Function; protected var _headerHeight:Number;// = 25 protected var headerSortArrow:Sprite; protected static const HEADER_STYLES:Object = {disabledSkin:"headerDisabledSkin", downSkin:"headerDownSkin", overSkin:"headerOverSkin", upSkin:"headerUpSkin", textFormat:"headerTextFormat", disabledTextFormat:"headerDisabledTextFormat", textPadding:"headerTextPadding"}; private static var defaultStyles:Object = {headerUpSkin:"HeaderRenderer_upSkin", headerDownSkin:"HeaderRenderer_downSkin", headerOverSkin:"HeaderRenderer_overSkin", headerDisabledSkin:"HeaderRenderer_disabledSkin", headerSortArrowDescSkin:"HeaderSortArrow_descIcon", headerSortArrowAscSkin:"HeaderSortArrow_ascIcon", columnStretchCursorSkin:"ColumnStretch_cursor", columnDividerSkin:null, headerTextFormat:null, headerDisabledTextFormat:null, headerTextPadding:5, headerRenderer:HeaderRenderer, focusRectSkin:null, focusRectPadding:null, skin:"DataGrid_skin"}; public static var createAccessibilityImplementation:Function; public function DataGrid(){ if (_columns == null){ _columns = []; }; _horizontalScrollPolicy = ScrollPolicy.OFF; activeCellRenderersMap = new Dictionary(true); availableCellRenderersMap = new Dictionary(true); addEventListener(DataGridEvent.ITEM_EDIT_BEGINNING, itemEditorItemEditBeginningHandler, false, -50); addEventListener(DataGridEvent.ITEM_EDIT_BEGIN, itemEditorItemEditBeginHandler, false, -50); addEventListener(DataGridEvent.ITEM_EDIT_END, itemEditorItemEditEndHandler, false, -50); addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler); } protected function showColumnStretchCursor(_arg1:Boolean=true):void{ if (columnStretchCursor == null){ columnStretchCursor = (getDisplayObjectInstance(getStyleValue("columnStretchCursorSkin")) as Sprite); columnStretchCursor.mouseEnabled = false; }; if (_arg1){ Mouse.hide(); stage.addChild(columnStretchCursor); stage.addEventListener(MouseEvent.MOUSE_MOVE, positionColumnStretchCursor, false, 0, true); columnStretchCursor.x = stage.mouseX; columnStretchCursor.y = stage.mouseY; } else { stage.removeEventListener(MouseEvent.MOUSE_MOVE, positionColumnStretchCursor, false); if (stage.contains(columnStretchCursor)){ stage.removeChild(columnStretchCursor); }; Mouse.show(); }; } override protected function drawList():void{ var _local3:Number; var _local4:Number; var _local5:uint; var _local6:Object; var _local7:ICellRenderer; var _local8:Array; var _local9:DataGridColumn; var _local13:Sprite; var _local14:UIComponent; var _local18:Number; var _local19:DataGridColumn; var _local20:Object; var _local21:Array; var _local22:Dictionary; var _local23:Object; var _local24:HeaderRenderer; var _local25:Sprite; var _local26:Graphics; var _local27:Boolean; var _local28:String; if (showHeaders){ header.visible = true; header.x = (contentPadding - _horizontalScrollPosition); header.y = contentPadding; listHolder.y = (contentPadding + headerHeight); _local18 = Math.floor((availableHeight - headerHeight)); _verticalScrollBar.setScrollProperties(_local18, 0, (contentHeight - _local18), _verticalScrollBar.pageScrollSize); } else { header.visible = false; listHolder.y = contentPadding; }; listHolder.x = contentPadding; contentScrollRect = listHolder.scrollRect; contentScrollRect.x = _horizontalScrollPosition; contentScrollRect.y = (vOffset + (Math.floor(_verticalScrollPosition) % rowHeight)); listHolder.scrollRect = contentScrollRect; listHolder.cacheAsBitmap = useBitmapScrolling; var _local1:uint = Math.min(Math.max((length - 1), 0), Math.floor((_verticalScrollPosition / rowHeight))); var _local2:uint = Math.min(Math.max((length - 1), 0), ((_local1 + rowCount) + 1)); var _local10:Boolean = list.hitTestPoint(stage.mouseX, stage.mouseY); calculateColumnSizes(); var _local11:Dictionary = (renderedItems = new Dictionary(true)); if (length > 0){ _local5 = _local1; while (_local5 <= _local2) { _local11[_dataProvider.getItemAt(_local5)] = true; _local5++; }; }; _local3 = 0; var _local12:DataGridColumn = (visibleColumns[0] as DataGridColumn); _local5 = 0; while (_local5 < displayableColumns.length) { _local19 = (displayableColumns[_local5] as DataGridColumn); if (_local19 != _local12){ _local3 = (_local3 + _local19.width); } else { break; }; _local5++; }; while (header.numChildren > 0) { header.removeChildAt(0); }; dragHandlesMap = new Dictionary(true); var _local15:Array = []; var _local16:uint = visibleColumns.length; var _local17:uint; while (_local17 < _local16) { _local9 = (visibleColumns[_local17] as DataGridColumn); _local15.push(_local9.colNum); if (showHeaders){ _local23 = ((_local9.headerRenderer)!=null) ? _local9.headerRenderer : _headerRenderer; _local24 = (getDisplayObjectInstance(_local23) as HeaderRenderer); if (_local24 != null){ _local24.addEventListener(MouseEvent.CLICK, handleHeaderRendererClick, false, 0, true); _local24.x = _local3; _local24.y = 0; _local24.setSize(_local9.width, headerHeight); _local24.column = _local9.colNum; _local24.label = _local9.headerText; header.addChildAt(_local24, _local17); copyStylesToChild(_local24, HEADER_STYLES); if ((((((sortIndex == -1)) && ((lastSortIndex == -1)))) || (!((_local9.colNum == sortIndex))))){ _local24.setStyle("icon", null); } else { _local24.setStyle("icon", (sortDescending) ? getStyleValue("headerSortArrowAscSkin") : getStyleValue("headerSortArrowDescSkin")); }; if ((((((_local17 < (_local16 - 1))) && (resizableColumns))) && (_local9.resizable))){ _local25 = new Sprite(); _local26 = _local25.graphics; _local26.beginFill(0, 0); _local26.drawRect(0, 0, 3, headerHeight); _local26.endFill(); _local25.x = ((_local3 + _local9.width) - 2); _local25.y = 0; _local25.alpha = 0; _local25.addEventListener(MouseEvent.MOUSE_OVER, handleHeaderResizeOver, false, 0, true); _local25.addEventListener(MouseEvent.MOUSE_OUT, handleHeaderResizeOut, false, 0, true); _local25.addEventListener(MouseEvent.MOUSE_DOWN, handleHeaderResizeDown, false, 0, true); header.addChild(_local25); dragHandlesMap[_local25] = _local9.colNum; }; if ((((((_local17 == (_local16 - 1))) && ((_horizontalScrollPosition == 0)))) && ((availableWidth > (_local3 + _local9.width))))){ _local4 = Math.floor((availableWidth - _local3)); _local24.setSize(_local4, headerHeight); } else { _local4 = _local9.width; }; _local24.drawNow(); }; }; _local20 = ((_local9.cellRenderer)!=null) ? _local9.cellRenderer : _cellRenderer; _local21 = availableCellRenderersMap[_local9]; _local8 = activeCellRenderersMap[_local9]; if (_local8 == null){ _local8 = []; activeCellRenderersMap[_local9] = _local8; }; if (_local21 == null){ _local21 = []; availableCellRenderersMap[_local9] = _local21; }; _local22 = new Dictionary(true); while (_local8.length > 0) { _local7 = _local8.pop(); _local6 = _local7.data; if ((((_local11[_local6] == null)) || ((invalidItems[_local6] == true)))){ _local21.push(_local7); } else { _local22[_local6] = _local7; invalidItems[_local6] = true; }; list.removeChild((_local7 as DisplayObject)); }; if (length > 0){ _local5 = _local1; while (_local5 <= _local2) { _local27 = false; _local6 = _dataProvider.getItemAt(_local5); if (_local22[_local6] != null){ _local27 = true; _local7 = _local22[_local6]; delete _local22[_local6]; } else { if (_local21.length > 0){ _local7 = (_local21.pop() as ICellRenderer); } else { _local7 = (getDisplayObjectInstance(_local20) as ICellRenderer); _local13 = (_local7 as Sprite); if (_local13 != null){ _local13.addEventListener(MouseEvent.CLICK, handleCellRendererClick, false, 0, true); _local13.addEventListener(MouseEvent.ROLL_OVER, handleCellRendererMouseEvent, false, 0, true); _local13.addEventListener(MouseEvent.ROLL_OUT, handleCellRendererMouseEvent, false, 0, true); _local13.addEventListener(Event.CHANGE, handleCellRendererChange, false, 0, true); _local13.doubleClickEnabled = true; _local13.addEventListener(MouseEvent.DOUBLE_CLICK, handleCellRendererDoubleClick, false, 0, true); if (_local13["setStyle"] != null){ for (_local28 in rendererStyles) { var _local31 = _local13; _local31["setStyle"](_local28, rendererStyles[_local28]); }; }; }; }; }; list.addChild((_local7 as Sprite)); _local8.push(_local7); _local7.x = _local3; _local7.y = (rowHeight * (_local5 - _local1)); _local7.setSize(((_local17)==(_local16 - 1)) ? _local4 : _local9.width, rowHeight); if (!_local27){ _local7.data = _local6; }; _local7.listData = new ListData(columnItemToLabel(_local9.colNum, _local6), null, this, _local5, _local5, _local17); if (((_local10) && (isHovered(_local7)))){ _local7.setMouseState("over"); currentHoveredRow = _local5; } else { _local7.setMouseState("up"); }; _local7.selected = !((_selectedIndices.indexOf(_local5) == -1)); if ((_local7 is UIComponent)){ _local14 = (_local7 as UIComponent); _local14.drawNow(); }; _local5++; }; }; _local3 = (_local3 + _local9.width); _local17++; }; _local5 = 0; while (_local5 < _columns.length) { if (_local15.indexOf(_local5) == -1){ removeCellRenderersByColumn((_columns[_local5] as DataGridColumn)); }; _local5++; }; if (editedItemPositionChanged){ editedItemPositionChanged = false; commitEditedItemPosition(proposedEditedItemPosition); proposedEditedItemPosition = undefined; }; invalidItems = new Dictionary(true); } public function get imeMode():String{ return (_imeMode); } protected function mouseFocusChangeHandler(_arg1:MouseEvent):void{ if (((((itemEditorInstance) && (!(_arg1.isDefaultPrevented())))) && (itemRendererContains(itemEditorInstance, DisplayObject(_arg1.target))))){ _arg1.preventDefault(); }; } public function set imeMode(_arg1:String):void{ _imeMode = _arg1; } protected function findNextEnterItemRenderer(_arg1:KeyboardEvent):void{ if (proposedEditedItemPosition !== undefined){ return; }; var _local2:int = _editedItemPosition.rowIndex; var _local3:int = _editedItemPosition.columnIndex; var _local4:int = (_editedItemPosition.rowIndex + (_arg1.shiftKey) ? -1 : 1); if ((((_local4 >= 0)) && ((_local4 < length)))){ _local2 = _local4; }; var _local5:DataGridEvent = new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGINNING, false, true, _local3, _local2); _local5.dataField = _columns[_local3].dataField; dispatchEvent(_local5); } protected function itemEditorItemEditEndHandler(_arg1:DataGridEvent):void{ var _local2:Boolean; var _local3:Object; var _local4:String; var _local5:Object; var _local6:String; var _local7:XML; var _local8:IFocusManager; if (!_arg1.isDefaultPrevented()){ _local2 = false; if (((itemEditorInstance) && (!((_arg1.reason == DataGridEventReason.CANCELLED))))){ _local3 = itemEditorInstance[_columns[_arg1.columnIndex].editorDataField]; _local4 = _columns[_arg1.columnIndex].dataField; _local5 = _arg1.itemRenderer.data; _local6 = ""; for each (_local7 in describeType(_local5).variable) { if (_local4 == _local7.@name.toString()){ _local6 = _local7.@type.toString(); break; }; }; switch (_local6){ case "String": if (!(_local3 is String)){ _local3 = _local3.toString(); }; break; case "uint": if (!(_local3 is uint)){ _local3 = uint(_local3); }; break; case "int": if (!(_local3 is int)){ _local3 = int(_local3); }; break; case "Number": if (!(_local3 is Number)){ _local3 = Number(_local3); }; break; }; if (_local5[_local4] != _local3){ _local2 = true; _local5[_local4] = _local3; }; _arg1.itemRenderer.data = _local5; }; } else { if (_arg1.reason != DataGridEventReason.OTHER){ if (((itemEditorInstance) && (_editedItemPosition))){ if (selectedIndex != _editedItemPosition.rowIndex){ selectedIndex = _editedItemPosition.rowIndex; }; _local8 = focusManager; if ((itemEditorInstance is IFocusManagerComponent)){ _local8.setFocus(InteractiveObject(itemEditorInstance)); }; }; }; }; if ((((_arg1.reason == DataGridEventReason.OTHER)) || (!(_arg1.isDefaultPrevented())))){ destroyItemEditor(); }; } public function editField(_arg1:uint, _arg2:String, _arg3:Object):void{ var _local4:Object = getItemAt(_arg1); _local4[_arg2] = _arg3; replaceItemAt(_local4, _arg1); } public function destroyItemEditor():void{ var _local1:DataGridEvent; if (itemEditorInstance){ DisplayObject(itemEditorInstance).removeEventListener(KeyboardEvent.KEY_DOWN, editorKeyDownHandler); stage.removeEventListener(MouseEvent.MOUSE_DOWN, editorMouseDownHandler, true); _local1 = new DataGridEvent(DataGridEvent.ITEM_FOCUS_OUT, false, false, _editedItemPosition.columnIndex, _editedItemPosition.rowIndex, itemEditorInstance); dispatchEvent(_local1); if (((itemEditorInstance) && ((itemEditorInstance is UIComponent)))){ UIComponent(itemEditorInstance).drawFocus(false); }; list.removeChild(DisplayObject(itemEditorInstance)); DisplayObject(editedItemRenderer).visible = true; itemEditorInstance = null; }; } protected function createColumnsFromDataProvider():void{ var _local1:Object; var _local2:String; _columns = []; if (length > 0){ _local1 = _dataProvider.getItemAt(0); for (_local2 in _local1) { addColumn(_local2); }; }; } protected function doKeySelection(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{ var _local5:int; var _local6:Array; var _local7:int; var _local8:int; var _local4:Boolean; if (_arg2){ _local6 = []; _local7 = lastCaretIndex; _local8 = _arg1; if (_local7 == -1){ _local7 = ((caretIndex)!=-1) ? caretIndex : _arg1; }; if (_local7 > _local8){ _local8 = _local7; _local7 = _arg1; }; _local5 = _local7; while (_local5 <= _local8) { _local6.push(_local5); _local5++; }; selectedIndices = _local6; caretIndex = _arg1; _local4 = true; } else { if (_arg3){ caretIndex = _arg1; } else { selectedIndex = _arg1; caretIndex = (lastCaretIndex = _arg1); _local4 = true; }; }; if (_local4){ dispatchEvent(new Event(Event.CHANGE)); }; invalidate(InvalidationType.DATA); } public function get headerHeight():Number{ return (_headerHeight); } protected function positionColumnStretchCursor(_arg1:MouseEvent):void{ columnStretchCursor.x = _arg1.stageX; columnStretchCursor.y = _arg1.stageY; } public function getColumnCount():uint{ return (_columns.length); } public function get editedItemPosition():Object{ if (_editedItemPosition){ return ({rowIndex:_editedItemPosition.rowIndex, columnIndex:_editedItemPosition.columnIndex}); }; return (_editedItemPosition); } protected function setEditedItemPosition(_arg1:Object):void{ editedItemPositionChanged = true; proposedEditedItemPosition = _arg1; if (((_arg1) && (!((_arg1.rowIndex == selectedIndex))))){ selectedIndex = _arg1.rowIndex; }; invalidate(InvalidationType.DATA); } public function set headerHeight(_arg1:Number):void{ maxHeaderHeight = _arg1; _headerHeight = Math.max(0, _arg1); invalidate(InvalidationType.SIZE); } protected function calculateAvailableHeight():Number{ var _local1:Number = Number(getStyleValue("contentPadding")); var _local2:Number = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0; return ((((height - (_local1 * 2)) - _local2) - (showHeaders) ? headerHeight : 0)); } public function resizeColumn(_arg1:int, _arg2:Number):void{ var _local4:int; var _local5:Number; var _local6:int; var _local7:DataGridColumn; var _local8:DataGridColumn; var _local9:int; var _local10:Number; var _local11:Number; var _local12:Number; if (_columns.length == 0){ return; }; var _local3:DataGridColumn = (_columns[_arg1] as DataGridColumn); if (!_local3){ return; }; if (((!(visibleColumns)) || ((visibleColumns.length == 0)))){ _local3.setWidth(_arg2); return; }; if (_arg2 < _local3.minWidth){ _arg2 = _local3.minWidth; }; if ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((_horizontalScrollPolicy == ScrollPolicy.AUTO)))){ _local3.setWidth(_arg2); _local3.explicitWidth = _arg2; } else { _local4 = getVisibleColumnIndex(_local3); if (_local4 != -1){ _local5 = 0; _local6 = visibleColumns.length; _local9 = (_local4 + 1); while (_local9 < _local6) { _local7 = (visibleColumns[_local9] as DataGridColumn); if (((_local7) && (_local7.resizable))){ _local5 = (_local5 + _local7.width); }; _local9++; }; _local11 = ((_local3.width - _arg2) + _local5); if (_local5){ _local3.setWidth(_arg2); _local3.explicitWidth = _arg2; }; _local12 = 0; _local9 = (_local4 + 1); while (_local9 < _local6) { _local7 = (visibleColumns[_local9] as DataGridColumn); if (_local7.resizable){ _local10 = ((_local7.width * _local11) / _local5); if (_local10 < _local7.minWidth){ _local10 = _local7.minWidth; }; _local7.setWidth(_local10); _local12 = (_local12 + _local7.width); _local8 = _local7; }; _local9++; }; if (_local12 > _local11){ _local10 = ((_local3.width - _local12) + _local11); if (_local10 < _local3.minWidth){ _local10 = _local3.minWidth; }; _local3.setWidth(_local10); } else { if (_local8){ _local8.setWidth(((_local8.width - _local12) + _local11)); }; }; } else { _local3.setWidth(_arg2); _local3.explicitWidth = _arg2; }; }; columnsInvalid = true; invalidate(InvalidationType.SIZE); } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ if (itemEditorInstance){ endEdit(DataGridEventReason.OTHER); }; invalidate(InvalidationType.SCROLL); super.setVerticalScrollPosition(_arg1, true); } public function get sortDescending():Boolean{ return (_sortDescending); } override protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } protected function handleHeaderResizeDown(_arg1:MouseEvent):void{ var _local2:Sprite = (_arg1.currentTarget as Sprite); var _local3:Number = dragHandlesMap[_local2]; var _local4:DataGridColumn = getColumnAt(_local3); columnStretchIndex = _local3; columnStretchStartX = _arg1.stageX; columnStretchStartWidth = _local4.width; stage.addEventListener(MouseEvent.MOUSE_MOVE, handleHeaderResizeMove, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_UP, handleHeaderResizeUp, false, 0, true); } protected function editorKeyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ESCAPE){ endEdit(DataGridEventReason.CANCELLED); } else { if (((_arg1.ctrlKey) && ((_arg1.charCode == 46)))){ endEdit(DataGridEventReason.CANCELLED); } else { if ((((_arg1.charCode == Keyboard.ENTER)) && (!((_arg1.keyCode == 229))))){ if (endEdit(DataGridEventReason.NEW_ROW)){ findNextEnterItemRenderer(_arg1); }; }; }; }; } protected function itemEditorItemEditBeginHandler(_arg1:DataGridEvent):void{ var _local2:IFocusManager; if (stage){ stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); }; if (!_arg1.isDefaultPrevented()){ createItemEditor(_arg1.columnIndex, uint(_arg1.rowIndex)); ICellRenderer(itemEditorInstance).listData = ICellRenderer(editedItemRenderer).listData; ICellRenderer(itemEditorInstance).data = editedItemRenderer.data; itemEditorInstance.imeMode = ((columns[_arg1.columnIndex].imeMode)==null) ? _imeMode : columns[_arg1.columnIndex].imeMode; _local2 = focusManager; if ((itemEditorInstance is IFocusManagerComponent)){ _local2.setFocus(InteractiveObject(itemEditorInstance)); }; _local2.defaultButtonEnabled = false; _arg1 = new DataGridEvent(DataGridEvent.ITEM_FOCUS_IN, false, false, _editedItemPosition.columnIndex, _editedItemPosition.rowIndex, itemEditorInstance); dispatchEvent(_arg1); }; } protected function getVisibleColumnIndex(_arg1:DataGridColumn):int{ var _local2:uint; while (_local2 < visibleColumns.length) { if (_arg1 == visibleColumns[_local2]){ return (_local2); }; _local2++; }; return (-1); } override protected function focusOutHandler(_arg1:FocusEvent):void{ setIMEMode(false); if (_arg1.target == this){ super.focusOutHandler(_arg1); }; if ((((_arg1.relatedObject == this)) && (itemRendererContains(itemEditorInstance, DisplayObject(_arg1.target))))){ return; }; if ((((_arg1.relatedObject == null)) && (itemRendererContains(editedItemRenderer, DisplayObject(_arg1.target))))){ return; }; if ((((_arg1.relatedObject == null)) && (itemRendererContains(itemEditorInstance, DisplayObject(_arg1.target))))){ return; }; if (((itemEditorInstance) && (((!(_arg1.relatedObject)) || (!(itemRendererContains(itemEditorInstance, _arg1.relatedObject))))))){ endEdit(DataGridEventReason.OTHER); removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); removeEventListener(MouseEvent.MOUSE_DOWN, mouseFocusChangeHandler); }; } protected function deactivateHandler(_arg1:Event):void{ if (itemEditorInstance){ endEdit(DataGridEventReason.OTHER); losingFocus = true; setFocus(); }; } override public function set horizontalScrollPolicy(_arg1:String):void{ super.horizontalScrollPolicy = _arg1; columnsInvalid = true; } public function set rowHeight(_arg1:Number):void{ _rowHeight = Math.max(0, _arg1); invalidate(InvalidationType.SIZE); } public function set editedItemPosition(_arg1:Object):void{ var _local2:Object = {rowIndex:_arg1.rowIndex, columnIndex:_arg1.columnIndex}; setEditedItemPosition(_local2); } override protected function draw():void{ var _local1 = !((contentHeight == (rowHeight * length))); contentHeight = (rowHeight * length); if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; if (((!((_cellRenderer == getStyleValue("cellRenderer")))) || (!((_headerRenderer == getStyleValue("headerRenderer")))))){ _invalidateList(); _cellRenderer = getStyleValue("cellRenderer"); _headerRenderer = getStyleValue("headerRenderer"); }; }; if (isInvalid(InvalidationType.SIZE)){ columnsInvalid = true; }; if (((isInvalid(InvalidationType.SIZE, InvalidationType.STATE)) || (_local1))){ drawLayout(); drawDisabledOverlay(); }; if (isInvalid(InvalidationType.RENDERER_STYLES)){ updateRendererStyles(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.SCROLL, InvalidationType.SELECTED)){ drawList(); }; updateChildren(); validate(); } protected function itemRendererContains(_arg1:Object, _arg2:DisplayObject):Boolean{ if (((((!(_arg2)) || (!(_arg1)))) || (!((_arg1 is DisplayObjectContainer))))){ return (false); }; return (DisplayObjectContainer(_arg1).contains(_arg2)); } public function getCellRendererAt(_arg1:uint, _arg2:uint):ICellRenderer{ var _local4:Array; var _local5:uint; var _local6:ICellRenderer; var _local3:DataGridColumn = (_columns[_arg2] as DataGridColumn); if (_local3 != null){ _local4 = (activeCellRenderersMap[_local3] as Array); if (_local4 != null){ _local5 = 0; while (_local5 < _local4.length) { _local6 = (_local4[_local5] as ICellRenderer); if (_local6.listData.row == _arg1){ return (_local6); }; _local5++; }; }; }; return (null); } protected function itemEditorItemEditBeginningHandler(_arg1:DataGridEvent):void{ if (!_arg1.isDefaultPrevented()){ setEditedItemPosition({columnIndex:_arg1.columnIndex, rowIndex:uint(_arg1.rowIndex)}); } else { if (!itemEditorInstance){ _editedItemPosition = null; editable = false; setFocus(); editable = true; }; }; } protected function isHovered(_arg1:ICellRenderer):Boolean{ var _local2:uint = Math.min(Math.max((length - 1), 0), Math.floor((_verticalScrollPosition / rowHeight))); var _local3:Number = ((_arg1.listData.row - _local2) * rowHeight); var _local4:Point = list.globalToLocal(new Point(0, stage.mouseY)); return ((((_local4.y > _local3)) && ((_local4.y < (_local3 + rowHeight))))); } protected function sortByColumn(_arg1:int):void{ var _local2:DataGridColumn = (columns[_arg1] as DataGridColumn); if (((((!(enabled)) || (!(_local2)))) || (!(_local2.sortable)))){ return; }; var _local3:Boolean = _local2.sortDescending; var _local4:uint = _local2.sortOptions; if (_local3){ _local4 = (_local4 | Array.DESCENDING); } else { _local4 = (_local4 & ~(Array.DESCENDING)); }; if (_local2.sortCompareFunction != null){ sortItems(_local2.sortCompareFunction, _local4); } else { sortItemsOn(_local2.dataField, _local4); }; _sortDescending = (_local2.sortDescending = !(_local3)); if ((((lastSortIndex >= 0)) && (!((lastSortIndex == sortIndex))))){ _local2 = (columns[lastSortIndex] as DataGridColumn); if (_local2 != null){ _local2.sortDescending = false; }; }; } override public function itemToCellRenderer(_arg1:Object):ICellRenderer{ return (null); } public function addColumn(_arg1):DataGridColumn{ return (addColumnAt(_arg1, _columns.length)); } protected function keyFocusChangeHandler(_arg1:FocusEvent):void{ if ((((((_arg1.keyCode == Keyboard.TAB)) && (!(_arg1.isDefaultPrevented())))) && (findNextItemRenderer(_arg1.shiftKey)))){ _arg1.preventDefault(); }; } override protected function configUI():void{ useFixedHorizontalScrolling = false; super.configUI(); headerMask = new Sprite(); var _local1:Graphics = headerMask.graphics; _local1.beginFill(0, 0.3); _local1.drawRect(0, 0, 100, 100); _local1.endFill(); headerMask.visible = false; addChild(headerMask); header = new Sprite(); addChild(header); header.mask = headerMask; _horizontalScrollPolicy = ScrollPolicy.OFF; _verticalScrollPolicy = ScrollPolicy.AUTO; } public function get minColumnWidth():Number{ return (_minColumnWidth); } protected function handleHeaderResizeMove(_arg1:MouseEvent):void{ var _local2:Number = (_arg1.stageX - columnStretchStartX); var _local3:Number = (columnStretchStartWidth + _local2); resizeColumn(columnStretchIndex, _local3); } override protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{ var _local3:int; var _local4:String; var _local5:uint; var _local6:DataGridColumn; var _local7:ICellRenderer; var _local2:ICellRenderer = (_arg1.target as ICellRenderer); if (_local2){ _local3 = _local2.listData.row; if (_arg1.type == MouseEvent.ROLL_OVER){ _local4 = "over"; } else { if (_arg1.type == MouseEvent.ROLL_OUT){ _local4 = "up"; }; }; if (_local4){ _local5 = 0; while (_local5 < visibleColumns.length) { _local6 = (visibleColumns[_local5] as DataGridColumn); _local7 = getCellRendererAt(_local3, _local6.colNum); if (_local7){ _local7.setMouseState(_local4); }; if (_local3 != currentHoveredRow){ _local7 = getCellRendererAt(currentHoveredRow, _local6.colNum); if (_local7){ _local7.setMouseState("up"); }; }; _local5++; }; }; }; super.handleCellRendererMouseEvent(_arg1); } protected function mouseDownHandler(_arg1:MouseEvent):void{ if (((!(enabled)) || (!(selectable)))){ return; }; isPressed = true; } protected function findNextItemRenderer(_arg1:Boolean):Boolean{ var _local7:String; var _local8:DataGridEvent; if (!_editedItemPosition){ return (false); }; if (proposedEditedItemPosition !== undefined){ return (false); }; var _local2:int = _editedItemPosition.rowIndex; var _local3:int = _editedItemPosition.columnIndex; var _local4:Boolean; var _local5:int = (_arg1) ? -1 : 1; var _local6:int = (length - 1); while (!(_local4)) { _local3 = (_local3 + _local5); if ((((_local3 < 0)) || ((_local3 >= _columns.length)))){ _local3 = ((_local3)<0) ? (_columns.length - 1) : 0; _local2 = (_local2 + _local5); if ((((_local2 < 0)) || ((_local2 > _local6)))){ setEditedItemPosition(null); losingFocus = true; setFocus(); return (false); }; }; if (((_columns[_local3].editable) && (_columns[_local3].visible))){ _local4 = true; if (_local2 == _editedItemPosition.rowIndex){ _local7 = DataGridEventReason.NEW_COLUMN; } else { _local7 = DataGridEventReason.NEW_ROW; }; if (((!(itemEditorInstance)) || (endEdit(_local7)))){ _local8 = new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGINNING, false, true, _local3, _local2); _local8.dataField = _columns[_local3].dataField; dispatchEvent(_local8); }; }; }; return (_local4); } protected function handleHeaderResizeOver(_arg1:MouseEvent):void{ if (columnStretchIndex == -1){ showColumnStretchCursor(); }; } override public function get rowCount():uint{ return (Math.ceil((calculateAvailableHeight() / rowHeight))); } protected function removeCellRenderersByColumn(_arg1:DataGridColumn):void{ if (_arg1 == null){ return; }; var _local2:Array = activeCellRenderersMap[_arg1]; if (_local2 != null){ while (_local2.length > 0) { list.removeChild((_local2.pop() as DisplayObject)); }; }; } public function columnItemToLabel(_arg1:uint, _arg2:Object):String{ var _local3:DataGridColumn = (_columns[_arg1] as DataGridColumn); if (_local3 != null){ return (_local3.itemToLabel(_arg2)); }; return (" "); } protected function scrollToPosition(_arg1:int, _arg2:int):void{ var _local5:uint; var _local8:DataGridColumn; var _local3:Number = verticalScrollPosition; var _local4:Number = horizontalScrollPosition; scrollToIndex(_arg1); var _local6:Number = 0; var _local7:DataGridColumn = (_columns[_arg2] as DataGridColumn); _local5 = 0; while (_local5 < displayableColumns.length) { _local8 = (displayableColumns[_local5] as DataGridColumn); if (_local8 != _local7){ _local6 = (_local6 + _local8.width); } else { break; }; _local5++; }; if (horizontalScrollPosition > _local6){ horizontalScrollPosition = _local6; } else { if ((horizontalScrollPosition + availableWidth) < (_local6 + _local7.width)){ horizontalScrollPosition = -((availableWidth - (_local6 + _local7.width))); }; }; if (((!((_local3 == verticalScrollPosition))) || (!((_local4 == horizontalScrollPosition))))){ drawNow(); }; } protected function handleHeaderResizeUp(_arg1:MouseEvent):void{ var _local4:HeaderRenderer; var _local2:Sprite = (_arg1.currentTarget as Sprite); var _local3:DataGridColumn = (_columns[columnStretchIndex] as DataGridColumn); var _local5:uint; while (_local5 < header.numChildren) { _local4 = (header.getChildAt(_local5) as HeaderRenderer); if (((_local4) && ((_local4.column == columnStretchIndex)))){ break; }; _local5++; }; var _local6:DataGridEvent = new DataGridEvent(DataGridEvent.COLUMN_STRETCH, false, true, columnStretchIndex, -1, _local4, (_local3) ? _local3.dataField : null); dispatchEvent(_local6); columnStretchIndex = -1; showColumnStretchCursor(false); stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleHeaderResizeMove, false); stage.removeEventListener(MouseEvent.MOUSE_UP, handleHeaderResizeUp, false); } override protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:Boolean; var _local3:DataGridColumn; if (_arg1.target != this){ return; }; if (losingFocus){ losingFocus = false; return; }; setIMEMode(true); super.focusInHandler(_arg1); if (((editable) && (!(isPressed)))){ _local2 = !((editedItemPosition == null)); if (!_editedItemPosition){ _editedItemPosition = {rowIndex:0, columnIndex:0}; while (_editedItemPosition.columnIndex < _columns.length) { _local3 = (_columns[_editedItemPosition.columnIndex] as DataGridColumn); if (((_local3.editable) && (_local3.visible))){ _local2 = true; break; }; _editedItemPosition.columnIndex++; }; }; if (_local2){ setEditedItemPosition(_editedItemPosition); }; }; if (editable){ addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); addEventListener(MouseEvent.MOUSE_DOWN, mouseFocusChangeHandler); }; } override public function set dataProvider(_arg1:DataProvider):void{ super.dataProvider = _arg1; if (_columns == null){ _columns = []; }; if (_columns.length == 0){ createColumnsFromDataProvider(); }; removeCellRenderers(); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (((!(selectable)) || (itemEditorInstance))){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.SPACE: if (caretIndex == -1){ caretIndex = 0; }; scrollToIndex(caretIndex); doKeySelection(caretIndex, _arg1.shiftKey, _arg1.ctrlKey); break; default: break; }; _arg1.stopPropagation(); } override protected function handleDataChange(_arg1:DataChangeEvent):void{ super.handleDataChange(_arg1); if (_columns == null){ _columns = []; }; if (_columns.length == 0){ createColumnsFromDataProvider(); }; } public function createItemEditor(_arg1:uint, _arg2:uint):void{ var _local6:int; if (displayableColumns.length != _columns.length){ _local6 = 0; while (_local6 < displayableColumns.length) { if (displayableColumns[_local6].colNum >= _arg1){ _arg1 = displayableColumns[_local6].colNum; break; }; _local6++; }; if (_local6 == displayableColumns.length){ _arg1 = 0; }; }; var _local3:DataGridColumn = (_columns[_arg1] as DataGridColumn); var _local4:ICellRenderer = getCellRendererAt(_arg2, _arg1); if (!itemEditorInstance){ itemEditorInstance = getDisplayObjectInstance(_local3.itemEditor); itemEditorInstance.tabEnabled = false; list.addChild(DisplayObject(itemEditorInstance)); }; list.setChildIndex(DisplayObject(itemEditorInstance), (list.numChildren - 1)); var _local5:Sprite = (_local4 as Sprite); itemEditorInstance.visible = true; itemEditorInstance.move(_local5.x, _local5.y); itemEditorInstance.setSize(_local3.width, rowHeight); itemEditorInstance.drawNow(); DisplayObject(itemEditorInstance).addEventListener(FocusEvent.FOCUS_OUT, itemEditorFocusOutHandler); _local5.visible = false; DisplayObject(itemEditorInstance).addEventListener(KeyboardEvent.KEY_DOWN, editorKeyDownHandler); stage.addEventListener(MouseEvent.MOUSE_DOWN, editorMouseDownHandler, true, 0, true); } override protected function calculateContentWidth():void{ var _local1:int; var _local2:int; var _local3:DataGridColumn; if (_columns.length == 0){ contentWidth = 0; return; }; if (minColumnWidthInvalid){ _local1 = _columns.length; _local2 = 0; while (_local2 < _local1) { _local3 = (_columns[_local2] as DataGridColumn); _local3.minWidth = minColumnWidth; _local2++; }; minColumnWidthInvalid = false; }; if (horizontalScrollPolicy == ScrollPolicy.OFF){ contentWidth = availableWidth; } else { contentWidth = 0; _local1 = _columns.length; _local2 = 0; while (_local2 < _local1) { _local3 = (_columns[_local2] as DataGridColumn); if (_local3.visible){ contentWidth = (contentWidth + _local3.width); }; _local2++; }; if (((!(isNaN(_horizontalScrollPosition))) && (((_horizontalScrollPosition + availableWidth) > contentWidth)))){ setHorizontalScrollPosition((contentWidth - availableWidth)); }; }; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; header.mouseChildren = _enabled; } override public function setSize(_arg1:Number, _arg2:Number):void{ super.setSize(_arg1, _arg2); columnsInvalid = true; } protected function endEdit(_arg1:String):Boolean{ if (!editedItemRenderer){ return (true); }; var _local2:DataGridEvent = new DataGridEvent(DataGridEvent.ITEM_EDIT_END, false, true, editedItemPosition.columnIndex, editedItemPosition.rowIndex, editedItemRenderer, _columns[editedItemPosition.columnIndex].dataField, _arg1); dispatchEvent(_local2); return (!(_local2.isDefaultPrevented())); } override protected function drawLayout():void{ vOffset = (showHeaders) ? headerHeight : 0; super.drawLayout(); contentScrollRect = listHolder.scrollRect; if (showHeaders){ headerHeight = maxHeaderHeight; if (Math.floor((availableHeight - headerHeight)) <= 0){ _headerHeight = availableHeight; }; list.y = headerHeight; contentScrollRect = listHolder.scrollRect; contentScrollRect.y = (contentPadding + headerHeight); contentScrollRect.height = (availableHeight - headerHeight); listHolder.y = (contentPadding + headerHeight); headerMask.x = contentPadding; headerMask.y = contentPadding; headerMask.width = availableWidth; headerMask.height = headerHeight; } else { contentScrollRect.y = contentPadding; listHolder.y = 0; }; listHolder.scrollRect = contentScrollRect; } override public function scrollToIndex(_arg1:int):void{ var _local4:Number; drawNow(); var _local2:int = (Math.floor(((_verticalScrollPosition + availableHeight) / rowHeight)) - 1); var _local3:int = Math.ceil((_verticalScrollPosition / rowHeight)); if (_arg1 < _local3){ verticalScrollPosition = (_arg1 * rowHeight); } else { if (_arg1 >= _local2){ _local4 = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && (hScrollBar))))) ? 15 : 0; verticalScrollPosition = (((((_arg1 + 1) * rowHeight) - availableHeight) + _local4) + (showHeaders) ? headerHeight : 0); }; }; } public function set showHeaders(_arg1:Boolean):void{ _showHeaders = _arg1; invalidate(InvalidationType.SIZE); } private function itemEditorFocusOutHandler(_arg1:FocusEvent):void{ if (((_arg1.relatedObject) && (contains(_arg1.relatedObject)))){ return; }; if (!_arg1.relatedObject){ return; }; if (itemEditorInstance){ endEdit(DataGridEventReason.OTHER); }; } protected function calculateColumnSizes():void{ var _local1:Number; var _local2:int; var _local3:int; var _local5:DataGridColumn; var _local6:DataGridColumn; var _local7:Number; var _local8:int; var _local9:Number; var _local10:int; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local4:Number = 0; if (_columns.length == 0){ visibleColumns = []; displayableColumns = []; return; }; if (columnsInvalid){ columnsInvalid = false; visibleColumns = []; if (minColumnWidthInvalid){ _local2 = _columns.length; _local3 = 0; while (_local3 < _local2) { _columns[_local3].minWidth = minColumnWidth; _local3++; }; minColumnWidthInvalid = false; }; displayableColumns = null; _local2 = _columns.length; _local3 = 0; while (_local3 < _local2) { if (((displayableColumns) && (_columns[_local3].visible))){ displayableColumns.push(_columns[_local3]); } else { if (((!(displayableColumns)) && (!(_columns[_local3].visible)))){ displayableColumns = new Array(_local3); _local8 = 0; while (_local8 < _local3) { displayableColumns[_local8] = _columns[_local8]; _local8++; }; }; }; _local3++; }; if (!displayableColumns){ displayableColumns = _columns; }; if (horizontalScrollPolicy == ScrollPolicy.OFF){ _local2 = displayableColumns.length; _local3 = 0; while (_local3 < _local2) { visibleColumns.push(displayableColumns[_local3]); _local3++; }; } else { _local2 = displayableColumns.length; _local9 = 0; _local3 = 0; while (_local3 < _local2) { _local5 = (displayableColumns[_local3] as DataGridColumn); if (((((_local9 + _local5.width) > _horizontalScrollPosition)) && ((_local9 < (_horizontalScrollPosition + availableWidth))))){ visibleColumns.push(_local5); }; _local9 = (_local9 + _local5.width); _local3++; }; }; }; if (horizontalScrollPolicy == ScrollPolicy.OFF){ _local10 = 0; _local11 = 0; _local2 = visibleColumns.length; _local3 = 0; while (_local3 < _local2) { _local5 = (visibleColumns[_local3] as DataGridColumn); if (_local5.resizable){ if (!isNaN(_local5.explicitWidth)){ _local11 = (_local11 + _local5.width); } else { _local10++; _local11 = (_local11 + _local5.minWidth); }; } else { _local11 = (_local11 + _local5.width); }; _local4 = (_local4 + _local5.width); _local3++; }; _local13 = availableWidth; if ((((availableWidth > _local11)) && (_local10))){ _local2 = visibleColumns.length; _local3 = 0; while (_local3 < _local2) { _local5 = (visibleColumns[_local3] as DataGridColumn); if (((_local5.resizable) && (isNaN(_local5.explicitWidth)))){ _local6 = _local5; if (_local4 > availableWidth){ _local12 = ((_local6.width - _local6.minWidth) / (_local4 - _local11)); } else { _local12 = (_local6.width / _local4); }; _local7 = (_local6.width - ((_local4 - availableWidth) * _local12)); _local14 = _local5.minWidth; _local5.setWidth(Math.max(_local7, _local14)); }; _local13 = (_local13 - _local5.width); _local3++; }; if (((_local13) && (_local6))){ _local6.setWidth((_local6.width + _local13)); }; } else { _local2 = visibleColumns.length; _local3 = 0; while (_local3 < _local2) { _local6 = (visibleColumns[_local3] as DataGridColumn); _local12 = (_local6.width / _local4); _local7 = (availableWidth * _local12); _local6.setWidth(_local7); _local6.explicitWidth = NaN; _local13 = (_local13 - _local7); _local3++; }; if (((_local13) && (_local6))){ _local6.setWidth((_local6.width + _local13)); }; }; }; } public function removeAllColumns():void{ if (_columns.length > 0){ removeCellRenderers(); _columns = []; invalidate(InvalidationType.SIZE); columnsInvalid = true; }; } public function get rowHeight():Number{ return (_rowHeight); } override public function get horizontalScrollPolicy():String{ return (_horizontalScrollPolicy); } public function getColumnAt(_arg1:uint):DataGridColumn{ return ((_columns[_arg1] as DataGridColumn)); } protected function handleHeaderResizeOut(_arg1:MouseEvent):void{ if (columnStretchIndex == -1){ showColumnStretchCursor(false); }; } override protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ var _local4:int = Math.max(Math.floor((calculateAvailableHeight() / rowHeight)), 1); var _local5 = -1; var _local6:int; switch (_arg1){ case Keyboard.UP: if (caretIndex > 0){ _local5 = (caretIndex - 1); }; break; case Keyboard.DOWN: if (caretIndex < (length - 1)){ _local5 = (caretIndex + 1); }; break; case Keyboard.PAGE_UP: if (caretIndex > 0){ _local5 = Math.max((caretIndex - _local4), 0); }; break; case Keyboard.PAGE_DOWN: if (caretIndex < (length - 1)){ _local5 = Math.min((caretIndex + _local4), (length - 1)); }; break; case Keyboard.HOME: if (caretIndex > 0){ _local5 = 0; }; break; case Keyboard.END: if (caretIndex < (length - 1)){ _local5 = (length - 1); }; break; }; if (_local5 >= 0){ doKeySelection(_local5, _arg2, _arg3); scrollToSelected(); }; } override protected function updateRendererStyles():void{ var _local2:Object; var _local3:uint; var _local4:uint; var _local5:String; var _local1:Array = []; for (_local2 in availableCellRenderersMap) { _local1 = _local1.concat(availableCellRenderersMap[_local2]); }; for (_local2 in activeCellRenderersMap) { _local1 = _local1.concat(activeCellRenderersMap[_local2]); }; _local3 = _local1.length; _local4 = 0; while (_local4 < _local3) { if (_local1[_local4]["setStyle"] == null){ } else { for (_local5 in updatedRendererStyles) { _local1[_local4].setStyle(_local5, updatedRendererStyles[_local5]); }; _local1[_local4].drawNow(); }; _local4++; }; updatedRendererStyles = {}; } override protected function initializeAccessibility():void{ if (DataGrid.createAccessibilityImplementation != null){ DataGrid.createAccessibilityImplementation(this); }; } protected function handleHeaderRendererClick(_arg1:MouseEvent):void{ var _local5:uint; var _local6:DataGridEvent; if (!_enabled){ return; }; var _local2:HeaderRenderer = (_arg1.currentTarget as HeaderRenderer); var _local3:uint = _local2.column; var _local4:DataGridColumn = (_columns[_local3] as DataGridColumn); if (((sortableColumns) && (_local4.sortable))){ _local5 = _sortIndex; _sortIndex = _local3; _local6 = new DataGridEvent(DataGridEvent.HEADER_RELEASE, false, true, _local3, -1, _local2, (_local4) ? _local4.dataField : null); if (((!(dispatchEvent(_local6))) || (!(_selectable)))){ _sortIndex = lastSortIndex; return; }; lastSortIndex = _local5; sortByColumn(_local3); invalidate(InvalidationType.DATA); }; } public function set columns(_arg1:Array):void{ removeCellRenderers(); _columns = []; var _local2:uint; while (_local2 < _arg1.length) { addColumn(_arg1[_local2]); _local2++; }; } public function get editedItemRenderer():ICellRenderer{ if (!itemEditorInstance){ return (null); }; return (getCellRendererAt(actualRowIndex, actualColIndex)); } public function set rowCount(_arg1:uint):void{ var _local2:Number = Number(getStyleValue("contentPadding")); var _local3:Number = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && (hScrollBar))))) ? 15 : 0; height = ((((rowHeight * _arg1) + (2 * _local2)) + _local3) + (showHeaders) ? headerHeight : 0); } public function set minColumnWidth(_arg1:Number):void{ _minColumnWidth = _arg1; columnsInvalid = true; minColumnWidthInvalid = true; invalidate(InvalidationType.SIZE); } protected function mouseUpHandler(_arg1:MouseEvent):void{ if (((!(enabled)) || (!(selectable)))){ return; }; isPressed = false; } public function get showHeaders():Boolean{ return (_showHeaders); } protected function commitEditedItemPosition(_arg1:Object):void{ var _local4:String; var _local5:int; if (((!(enabled)) || (!(editable)))){ return; }; if (((((((((itemEditorInstance) && (_arg1))) && ((itemEditorInstance is IFocusManagerComponent)))) && ((_editedItemPosition.rowIndex == _arg1.rowIndex)))) && ((_editedItemPosition.columnIndex == _arg1.columnIndex)))){ IFocusManagerComponent(itemEditorInstance).setFocus(); return; }; if (itemEditorInstance){ if (!_arg1){ _local4 = DataGridEventReason.OTHER; } else { if (((!(editedItemPosition)) || ((_arg1.rowIndex == editedItemPosition.rowIndex)))){ _local4 = DataGridEventReason.NEW_COLUMN; } else { _local4 = DataGridEventReason.NEW_ROW; }; }; if (((!(endEdit(_local4))) && (!((_local4 == DataGridEventReason.OTHER))))){ return; }; }; _editedItemPosition = _arg1; if (!_arg1){ return; }; actualRowIndex = _arg1.rowIndex; actualColIndex = _arg1.columnIndex; if (displayableColumns.length != _columns.length){ _local5 = 0; while (_local5 < displayableColumns.length) { if (displayableColumns[_local5].colNum >= actualColIndex){ actualColIndex = displayableColumns[_local5].colNum; break; }; _local5++; }; if (_local5 == displayableColumns.length){ actualColIndex = 0; }; }; scrollToPosition(actualRowIndex, actualColIndex); var _local2:ICellRenderer = getCellRendererAt(actualRowIndex, actualColIndex); var _local3:DataGridEvent = new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGIN, false, true, actualColIndex, actualRowIndex, _local2); dispatchEvent(_local3); if (editedItemPositionChanged){ editedItemPositionChanged = false; commitEditedItemPosition(proposedEditedItemPosition); proposedEditedItemPosition = undefined; }; if (!itemEditorInstance){ commitEditedItemPosition(null); }; } public function removeColumnAt(_arg1:uint):DataGridColumn{ var _local3:uint; var _local2:DataGridColumn = (_columns[_arg1] as DataGridColumn); if (_local2 != null){ removeCellRenderersByColumn(_local2); _columns.splice(_arg1, 1); _local3 = _arg1; while (_local3 < _columns.length) { _local2 = (_columns[_local3] as DataGridColumn); if (_local2){ _local2.colNum = _local3; }; _local3++; }; invalidate(InvalidationType.SIZE); columnsInvalid = true; }; return (_local2); } protected function removeCellRenderers():void{ var _local1:uint; while (_local1 < _columns.length) { removeCellRenderersByColumn((_columns[_local1] as DataGridColumn)); _local1++; }; } public function set labelFunction(_arg1:Function):void{ if (_labelFunction == _arg1){ return; }; _labelFunction = _arg1; invalidate(InvalidationType.DATA); } public function spaceColumnsEqually():void{ var _local1:Number; var _local2:int; var _local3:DataGridColumn; drawNow(); if (displayableColumns.length > 0){ _local1 = (availableWidth / displayableColumns.length); _local2 = 0; while (_local2 < displayableColumns.length) { _local3 = (displayableColumns[_local2] as DataGridColumn); _local3.width = _local1; _local2++; }; invalidate(InvalidationType.SIZE); columnsInvalid = true; }; } public function get sortIndex():int{ return (_sortIndex); } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ if (_arg1 == _horizontalScrollPosition){ return; }; contentScrollRect = listHolder.scrollRect; contentScrollRect.x = _arg1; listHolder.scrollRect = contentScrollRect; list.x = 0; header.x = -(_arg1); super.setHorizontalScrollPosition(_arg1, true); invalidate(InvalidationType.SCROLL); columnsInvalid = true; } public function get columns():Array{ return (_columns.slice(0)); } public function addColumnAt(_arg1, _arg2:uint):DataGridColumn{ var _local3:DataGridColumn; var _local5:uint; if (_arg2 < _columns.length){ _columns.splice(_arg2, 0, ""); _local5 = (_arg2 + 1); while (_local5 < _columns.length) { _local3 = (_columns[_local5] as DataGridColumn); _local3.colNum = _local5; _local5++; }; }; var _local4:* = _arg1; if (!(_local4 is DataGridColumn)){ if ((_local4 is String)){ _local4 = new DataGridColumn(_local4); } else { _local4 = new DataGridColumn(); }; }; _local3 = (_local4 as DataGridColumn); _local3.owner = this; _local3.colNum = _arg2; _columns[_arg2] = _local3; invalidate(InvalidationType.SIZE); columnsInvalid = true; return (_local3); } public function get labelFunction():Function{ return (_labelFunction); } protected function editorMouseDownHandler(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:uint; if (!itemRendererContains(itemEditorInstance, DisplayObject(_arg1.target))){ if ((((_arg1.target is ICellRenderer)) && (contains(DisplayObject(_arg1.target))))){ _local2 = (_arg1.target as ICellRenderer); _local3 = _local2.listData.row; if (_editedItemPosition.rowIndex == _local3){ endEdit(DataGridEventReason.NEW_COLUMN); } else { endEdit(DataGridEventReason.NEW_ROW); }; } else { endEdit(DataGridEventReason.OTHER); }; }; } public function getColumnIndex(_arg1:String):int{ var _local3:DataGridColumn; var _local2:uint; while (_local2 < _columns.length) { _local3 = (_columns[_local2] as DataGridColumn); if (_local3.dataField == _arg1){ return (_local2); }; _local2++; }; return (-1); } override protected function handleCellRendererClick(_arg1:MouseEvent):void{ var _local3:DataGridColumn; var _local4:DataGridEvent; super.handleCellRendererClick(_arg1); var _local2:ICellRenderer = (_arg1.currentTarget as ICellRenderer); if (((((_local2) && (_local2.data))) && (!((_local2 == itemEditorInstance))))){ _local3 = (_columns[_local2.listData.column] as DataGridColumn); if (((((editable) && (_local3))) && (_local3.editable))){ _local4 = new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGINNING, false, true, _local2.listData.column, _local2.listData.row, _local2, _local3.dataField); dispatchEvent(_local4); }; }; } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, SelectableList.getStyleDefinition(), ScrollBar.getStyleDefinition())); } } }//package fl.controls
Section 18
//LabelButton (fl.controls.LabelButton) package fl.controls { import fl.core.*; import flash.events.*; import flash.display.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _toggle:Boolean;// = false public var textField:TextField; protected var mode:String;// = "center" protected var _labelPlacement:String;// = "right" protected var oldMouseState:String; protected var _label:String;// = "Label" protected var icon:DisplayObject; private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } override protected function drawLayout():void{ var _local7:Number; var _local8:Number; var _local1:Number = Number(getStyleValue("textPadding")); var _local2:String = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); var _local3:Number = (textField.textWidth + 4); var _local4:Number = (textField.textHeight + 4); var _local5:Number = ((icon)==null) ? 0 : (icon.width + _local1); var _local6:Number = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } public function get labelPlacement():String{ return (_labelPlacement); } public function get toggle():Boolean{ return (_toggle); } protected function setEmbedFont(){ var _local1:Object = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } protected function drawIcon():void{ var _local1:DisplayObject = icon; var _local2:String = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); var _local3:Object = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } protected function drawTextFormat():void{ var _local1:Object = UIComponent.getStyleDefinition(); var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public function get label():String{ return (_label); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 19
//ScrollBar (fl.controls.ScrollBar) package fl.controls { import fl.core.*; import flash.events.*; import fl.events.*; public class ScrollBar extends UIComponent { private var _direction:String;// = "vertical" private var _minScrollPosition:Number;// = 0 private var _pageSize:Number;// = 10 private var _maxScrollPosition:Number;// = 0 protected var downArrow:BaseButton; private var _lineScrollSize:Number;// = 1 protected var upArrow:BaseButton; private var _scrollPosition:Number;// = 0 private var thumbScrollOffset:Number; protected var track:BaseButton; protected var thumb:LabelButton; protected var inDrag:Boolean;// = false private var _pageScrollSize:Number;// = 0 protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0}; public static const WIDTH:Number = 15; protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35}; public function ScrollBar(){ setStyles(); focusEnabled = false; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition)))))); updateThumb(); } override public function setSize(_arg1:Number, _arg2:Number):void{ if (_direction == ScrollBarDirection.HORIZONTAL){ super.setSize(_arg2, _arg1); } else { super.setSize(_arg1, _arg2); }; } public function set lineScrollSize(_arg1:Number):void{ if (_arg1 > 0){ _lineScrollSize = _arg1; }; } public function get minScrollPosition():Number{ return (_minScrollPosition); } protected function updateThumb():void{ var _local1:Number = ((_maxScrollPosition - _minScrollPosition) + _pageSize); if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){ thumb.height = 12; thumb.visible = false; } else { thumb.height = Math.max(13, ((_pageSize / _local1) * track.height)); thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition)))); thumb.visible = enabled; }; } public function set minScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _arg1, _maxScrollPosition); } public function get lineScrollSize():Number{ return (_lineScrollSize); } public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{ var _local3:Number = scrollPosition; _scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1)); if (_local3 == _scrollPosition){ return; }; if (_arg2){ dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition)); }; updateThumb(); } public function get maxScrollPosition():Number{ return (_maxScrollPosition); } public function get scrollPosition():Number{ return (_scrollPosition); } override public function get height():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height); } public function get pageSize():Number{ return (_pageSize); } public function set maxScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _minScrollPosition, _arg1); } protected function thumbReleaseHandler(_arg1:MouseEvent):void{ inDrag = false; mouseChildren = true; thumb.mouseStateLocked = false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag); stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler); } public function set pageScrollSize(_arg1:Number):void{ if (_arg1 >= 0){ _pageScrollSize = _arg1; }; } public function set scrollPosition(_arg1:Number):void{ setScrollPosition(_arg1, true); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ var _local1:Number; if (isInvalid(InvalidationType.SIZE)){ _local1 = super.height; downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height))); track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height)))); updateThumb(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ setStyles(); }; downArrow.drawNow(); upArrow.drawNow(); track.drawNow(); thumb.drawNow(); validate(); } override public function get width():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width); } override protected function configUI():void{ super.configUI(); track = new BaseButton(); track.move(0, 14); track.useHandCursor = false; track.autoRepeat = true; track.focusEnabled = false; addChild(track); thumb = new LabelButton(); thumb.label = ""; thumb.setSize(WIDTH, 15); thumb.move(0, 15); thumb.focusEnabled = false; addChild(thumb); downArrow = new BaseButton(); downArrow.setSize(WIDTH, 14); downArrow.autoRepeat = true; downArrow.focusEnabled = false; addChild(downArrow); upArrow = new BaseButton(); upArrow.setSize(WIDTH, 14); upArrow.move(0, 0); upArrow.autoRepeat = true; upArrow.focusEnabled = false; addChild(upArrow); upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true); enabled = false; } public function set pageSize(_arg1:Number):void{ if (_arg1 > 0){ _pageSize = _arg1; }; } public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{ this.pageSize = _arg1; _minScrollPosition = _arg2; _maxScrollPosition = _arg3; if (_arg4 >= 0){ _pageScrollSize = _arg4; }; enabled = (_maxScrollPosition > _minScrollPosition); setScrollPosition(_scrollPosition, false); updateThumb(); } public function get pageScrollSize():Number{ return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize); } protected function handleThumbDrag(_arg1:MouseEvent):void{ var _local2:Number = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset))); setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition)); } protected function setStyles():void{ copyStylesToChild(downArrow, DOWN_ARROW_STYLES); copyStylesToChild(thumb, THUMB_STYLES); copyStylesToChild(track, TRACK_STYLES); copyStylesToChild(upArrow, UP_ARROW_STYLES); } protected function scrollPressHandler(_arg1:ComponentEvent):void{ var _local2:Number; var _local3:Number; _arg1.stopImmediatePropagation(); if (_arg1.currentTarget == upArrow){ setScrollPosition((_scrollPosition - _lineScrollSize)); } else { if (_arg1.currentTarget == downArrow){ setScrollPosition((_scrollPosition + _lineScrollSize)); } else { _local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition); _local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize; if (_scrollPosition < _local2){ setScrollPosition(Math.min(_local2, (_scrollPosition + _local3))); } else { if (_scrollPosition > _local2){ setScrollPosition(Math.max(_local2, (_scrollPosition - _local3))); }; }; }; }; } protected function thumbPressHandler(_arg1:MouseEvent):void{ inDrag = true; thumbScrollOffset = (mouseY - thumb.y); thumb.mouseStateLocked = true; mouseChildren = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true); } public function set direction(_arg1:String):void{ if (_direction == _arg1){ return; }; _direction = _arg1; if (isLivePreview){ return; }; setScaleY(1); var _local2 = (_direction == ScrollBarDirection.HORIZONTAL); if (((_local2) && (componentInspectorSetting))){ if (rotation == 90){ return; }; setScaleX(-1); rotation = -90; }; if (!componentInspectorSetting){ if (((_local2) && ((rotation == 0)))){ rotation = -90; setScaleX(-1); } else { if (((!(_local2)) && ((rotation == -90)))){ rotation = 0; setScaleX(1); }; }; }; invalidate(InvalidationType.SIZE); } public function get direction():String{ return (_direction); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 20
//ScrollBarDirection (fl.controls.ScrollBarDirection) package fl.controls { public class ScrollBarDirection { public static const HORIZONTAL:String = "horizontal"; public static const VERTICAL:String = "vertical"; } }//package fl.controls
Section 21
//ScrollPolicy (fl.controls.ScrollPolicy) package fl.controls { public class ScrollPolicy { public static const OFF:String = "off"; public static const ON:String = "on"; public static const AUTO:String = "auto"; } }//package fl.controls
Section 22
//SelectableList (fl.controls.SelectableList) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.events.*; import flash.display.*; import fl.data.*; import fl.managers.*; import fl.events.*; import flash.utils.*; import fl.containers.*; import flash.ui.*; public class SelectableList extends BaseScrollPane implements IFocusManagerComponent { protected var invalidItems:Dictionary; protected var renderedItems:Dictionary; protected var caretIndex:int;// = -1 protected var updatedRendererStyles:Object; protected var _allowMultipleSelection:Boolean;// = false protected var lastCaretIndex:int;// = -1 protected var _verticalScrollPosition:Number; protected var _selectedIndices:Array; protected var preChangeItems:Array; protected var activeCellRenderers:Array; protected var availableCellRenderers:Array; protected var rendererStyles:Object; protected var list:Sprite; protected var _dataProvider:DataProvider; protected var _horizontalScrollPosition:Number; private var collectionItemImport:SimpleCollectionItem; protected var listHolder:Sprite; protected var _selectable:Boolean;// = true private static var defaultStyles:Object = {skin:"List_skin", cellRenderer:CellRenderer, contentPadding:null, disabledAlpha:null}; public static var createAccessibilityImplementation:Function; public function SelectableList(){ activeCellRenderers = []; availableCellRenderers = []; invalidItems = new Dictionary(true); renderedItems = new Dictionary(true); _selectedIndices = []; if (dataProvider == null){ dataProvider = new DataProvider(); }; verticalScrollPolicy = ScrollPolicy.AUTO; rendererStyles = {}; updatedRendererStyles = {}; } protected function drawList():void{ } protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } public function get allowMultipleSelection():Boolean{ return (_allowMultipleSelection); } protected function onPreChange(_arg1:DataChangeEvent):void{ switch (_arg1.changeType){ case DataChangeType.REMOVE: case DataChangeType.ADD: case DataChangeType.INVALIDATE: case DataChangeType.REMOVE_ALL: case DataChangeType.REPLACE: case DataChangeType.INVALIDATE_ALL: break; default: preChangeItems = selectedItems; break; }; } public function set selectedIndices(_arg1:Array):void{ if (!_selectable){ return; }; _selectedIndices = ((_arg1)==null) ? [] : _arg1.concat(); invalidate(InvalidationType.SELECTED); } public function isItemSelected(_arg1:Object):Boolean{ return ((selectedItems.indexOf(_arg1) > -1)); } public function set allowMultipleSelection(_arg1:Boolean):void{ if (_arg1 == _allowMultipleSelection){ return; }; _allowMultipleSelection = _arg1; if (((!(_arg1)) && ((_selectedIndices.length > 1)))){ _selectedIndices = [_selectedIndices.pop()]; invalidate(InvalidationType.DATA); }; } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ if (_arg1 == _verticalScrollPosition){ return; }; var _local3:Number = (_arg1 - _verticalScrollPosition); _verticalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _local3, _arg1)); }; } public function sortItemsOn(_arg1:String, _arg2:Object=null){ return (_dataProvider.sortOn(_arg1, _arg2)); } public function getNextIndexAtLetter(_arg1:String, _arg2:int=-1):int{ var _local5:Number; var _local6:Object; var _local7:String; if (length == 0){ return (-1); }; _arg1 = _arg1.toUpperCase(); var _local3:int = (length - 1); var _local4:Number = 0; while (_local4 < _local3) { _local5 = ((_arg2 + 1) + _local4); if (_local5 > (length - 1)){ _local5 = (_local5 - length); }; _local6 = getItemAt(_local5); if (_local6 == null){ break; }; _local7 = itemToLabel(_local6); if (_local7 == null){ } else { if (_local7.charAt(0).toUpperCase() == _arg1){ return (_local5); }; }; _local4++; }; return (-1); } override protected function draw():void{ super.draw(); } public function removeItemAt(_arg1:uint):Object{ return (_dataProvider.removeItemAt(_arg1)); } public function get selectedItem():Object{ return (((_selectedIndices.length)==0) ? null : _dataProvider.getItemAt(selectedIndex)); } protected function handleDataChange(_arg1:DataChangeEvent):void{ var _local5:uint; var _local2:int = _arg1.startIndex; var _local3:int = _arg1.endIndex; var _local4:String = _arg1.changeType; if (_local4 == DataChangeType.INVALIDATE_ALL){ clearSelection(); invalidateList(); } else { if (_local4 == DataChangeType.INVALIDATE){ _local5 = 0; while (_local5 < _arg1.items.length) { invalidateItem(_arg1.items[_local5]); _local5++; }; } else { if (_local4 == DataChangeType.ADD){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ _selectedIndices[_local5] = (_selectedIndices[_local5] + (_local2 - _local3)); }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ if (_selectedIndices[_local5] <= _local3){ delete _selectedIndices[_local5]; } else { _selectedIndices[_local5] = (_selectedIndices[_local5] - ((_local2 - _local3) + 1)); }; }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE_ALL){ clearSelection(); } else { if (_local4 == DataChangeType.REPLACE){ } else { selectedItems = preChangeItems; preChangeItems = null; }; }; }; }; }; }; invalidate(InvalidationType.DATA); } public function itemToCellRenderer(_arg1:Object):ICellRenderer{ var _local2:*; var _local3:ICellRenderer; if (_arg1 != null){ for (_local2 in activeCellRenderers) { _local3 = (activeCellRenderers[_local2] as ICellRenderer); if (_local3.data == _arg1){ return (_local3); }; }; }; return (null); } public function addItem(_arg1:Object):void{ _dataProvider.addItem(_arg1); invalidateList(); } public function get rowCount():uint{ return (0); } override protected function configUI():void{ super.configUI(); listHolder = new Sprite(); addChild(listHolder); listHolder.scrollRect = contentScrollRect; list = new Sprite(); listHolder.addChild(list); } public function get selectable():Boolean{ return (_selectable); } public function clearRendererStyle(_arg1:String, _arg2:int=-1):void{ delete rendererStyles[_arg1]; updatedRendererStyles[_arg1] = null; invalidate(InvalidationType.RENDERER_STYLES); } protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{ var _local2:ICellRenderer = (_arg1.target as ICellRenderer); var _local3:String = ((_arg1.type)==MouseEvent.ROLL_OVER) ? ListEvent.ITEM_ROLL_OVER : ListEvent.ITEM_ROLL_OUT; dispatchEvent(new ListEvent(_local3, false, false, _local2.listData.column, _local2.listData.row, _local2.listData.index, _local2.data)); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; }; } protected function handleCellRendererDoubleClick(_arg1:MouseEvent):void{ if (!_enabled){ return; }; var _local2:ICellRenderer = (_arg1.currentTarget as ICellRenderer); var _local3:uint = _local2.listData.index; dispatchEvent(new ListEvent(ListEvent.ITEM_DOUBLE_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)); } public function setRendererStyle(_arg1:String, _arg2:Object, _arg3:uint=0):void{ if (rendererStyles[_arg1] == _arg2){ return; }; updatedRendererStyles[_arg1] = _arg2; rendererStyles[_arg1] = _arg2; invalidate(InvalidationType.RENDERER_STYLES); } public function set dataProvider(_arg1:DataProvider):void{ if (_dataProvider != null){ _dataProvider.removeEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange); _dataProvider.removeEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange); }; _dataProvider = _arg1; _dataProvider.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true); _dataProvider.addEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange, false, 0, true); clearSelection(); invalidateList(); } public function invalidateList():void{ _invalidateList(); invalidate(InvalidationType.DATA); } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ return (_dataProvider.replaceItemAt(_arg1, _arg2)); } public function removeAll():void{ _dataProvider.removeAll(); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; list.mouseChildren = _enabled; } public function scrollToIndex(_arg1:int):void{ } public function get selectedIndices():Array{ return (_selectedIndices.concat()); } override protected function drawLayout():void{ super.drawLayout(); contentScrollRect = listHolder.scrollRect; contentScrollRect.width = availableWidth; contentScrollRect.height = availableHeight; listHolder.scrollRect = contentScrollRect; } protected function _invalidateList():void{ availableCellRenderers = []; while (activeCellRenderers.length > 0) { list.removeChild((activeCellRenderers.pop() as DisplayObject)); }; } public function set selectedItem(_arg1:Object):void{ var _local2:int = _dataProvider.getItemIndex(_arg1); selectedIndex = _local2; } public function getItemAt(_arg1:uint):Object{ return (_dataProvider.getItemAt(_arg1)); } protected function handleCellRendererChange(_arg1:Event):void{ var _local2:ICellRenderer = (_arg1.currentTarget as ICellRenderer); var _local3:uint = _local2.listData.index; _dataProvider.invalidateItemAt(_local3); } protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } public function itemToLabel(_arg1:Object):String{ return (_arg1["label"]); } public function addItemAt(_arg1:Object, _arg2:uint):void{ _dataProvider.addItemAt(_arg1, _arg2); invalidateList(); } override protected function initializeAccessibility():void{ if (SelectableList.createAccessibilityImplementation != null){ SelectableList.createAccessibilityImplementation(this); }; } protected function updateRendererStyles():void{ var _local4:String; var _local1:Array = availableCellRenderers.concat(activeCellRenderers); var _local2:uint = _local1.length; var _local3:uint; while (_local3 < _local2) { if (_local1[_local3].setStyle == null){ } else { for (_local4 in updatedRendererStyles) { _local1[_local3].setStyle(_local4, updatedRendererStyles[_local4]); }; _local1[_local3].drawNow(); }; _local3++; }; updatedRendererStyles = {}; } public function set selectable(_arg1:Boolean):void{ if (_arg1 == _selectable){ return; }; if (!_arg1){ selectedIndices = []; }; _selectable = _arg1; } public function removeItem(_arg1:Object):Object{ return (_dataProvider.removeItem(_arg1)); } public function get dataProvider():DataProvider{ return (_dataProvider); } public function set maxHorizontalScrollPosition(_arg1:Number):void{ _maxHorizontalScrollPosition = _arg1; invalidate(InvalidationType.SIZE); } public function clearSelection():void{ selectedIndex = -1; } public function invalidateItemAt(_arg1:uint):void{ var _local2:Object = _dataProvider.getItemAt(_arg1); if (_local2 != null){ invalidateItem(_local2); }; } public function sortItems(... _args){ return (_dataProvider.sort.apply(_dataProvider, _args)); } public function set selectedItems(_arg1:Array):void{ var _local4:int; if (_arg1 == null){ selectedIndices = null; return; }; var _local2:Array = []; var _local3:uint; while (_local3 < _arg1.length) { _local4 = _dataProvider.getItemIndex(_arg1[_local3]); if (_local4 != -1){ _local2.push(_local4); }; _local3++; }; selectedIndices = _local2; } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ if (_arg1 == _horizontalScrollPosition){ return; }; var _local3:Number = (_arg1 - _horizontalScrollPosition); _horizontalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.HORIZONTAL, _local3, _arg1)); }; } override public function get maxHorizontalScrollPosition():Number{ return (_maxHorizontalScrollPosition); } public function scrollToSelected():void{ scrollToIndex(selectedIndex); } public function get selectedItems():Array{ var _local1:Array = []; var _local2:uint; while (_local2 < _selectedIndices.length) { _local1.push(_dataProvider.getItemAt(_selectedIndices[_local2])); _local2++; }; return (_local1); } public function get length():uint{ return (_dataProvider.length); } public function invalidateItem(_arg1:Object):void{ if (renderedItems[_arg1] == null){ return; }; invalidItems[_arg1] = true; invalidate(InvalidationType.DATA); } public function set selectedIndex(_arg1:int):void{ selectedIndices = ((_arg1)==-1) ? null : [_arg1]; } public function get selectedIndex():int{ return (((_selectedIndices.length)==0) ? -1 : _selectedIndices[(_selectedIndices.length - 1)]); } public function getRendererStyle(_arg1:String, _arg2:int=-1):Object{ return (rendererStyles[_arg1]); } protected function handleCellRendererClick(_arg1:MouseEvent):void{ var _local5:int; var _local6:uint; if (!_enabled){ return; }; var _local2:ICellRenderer = (_arg1.currentTarget as ICellRenderer); var _local3:uint = _local2.listData.index; if (((!(dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)))) || (!(_selectable)))){ return; }; var _local4:int = selectedIndices.indexOf(_local3); if (!_allowMultipleSelection){ if (_local4 != -1){ return; }; _local2.selected = true; _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); } else { if (_arg1.shiftKey){ _local6 = ((_selectedIndices.length)>0) ? _selectedIndices[0] : _local3; _selectedIndices = []; if (_local6 > _local3){ _local5 = _local6; while (_local5 >= _local3) { _selectedIndices.push(_local5); _local5--; }; } else { _local5 = _local6; while (_local5 <= _local3) { _selectedIndices.push(_local5); _local5++; }; }; caretIndex = _local3; } else { if (_arg1.ctrlKey){ if (_local4 != -1){ _local2.selected = false; _selectedIndices.splice(_local4, 1); } else { _local2.selected = true; _selectedIndices.push(_local3); }; caretIndex = _local3; } else { _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); }; }; }; dispatchEvent(new Event(Event.CHANGE)); invalidate(InvalidationType.DATA); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition())); } } }//package fl.controls
Section 23
//TextInput (fl.controls.TextInput) package fl.controls { import fl.core.*; import flash.events.*; import flash.display.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class TextInput extends UIComponent implements IFocusManagerComponent { protected var _html:Boolean;// = false protected var background:DisplayObject; protected var _savedHTML:String; protected var _editable:Boolean;// = true public var textField:TextField; private static var defaultStyles:Object = {upSkin:"TextInput_upSkin", disabledSkin:"TextInput_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:0, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function set alwaysShowSelection(_arg1:Boolean):void{ textField.alwaysShowSelection = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; updateTextFieldType(); } public function get imeMode():String{ return (_imeMode); } protected function handleChange(_arg1:Event):void{ _arg1.stopPropagation(); dispatchEvent(new Event(Event.CHANGE, true)); } public function set imeMode(_arg1:String):void{ _imeMode = _arg1; } protected function setEmbedFont(){ var _local1:Object = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } protected function drawLayout():void{ var _local1:Number = Number(getStyleValue("textPadding")); if (background != null){ background.width = width; background.height = height; }; textField.width = (width - (2 * _local1)); textField.height = (height - (2 * _local1)); textField.x = (textField.y = _local1); } public function set condenseWhite(_arg1:Boolean):void{ textField.condenseWhite = _arg1; } public function get textWidth():Number{ return (textField.textWidth); } override protected function focusOutHandler(_arg1:FocusEvent):void{ super.focusOutHandler(_arg1); if (editable){ setIMEMode(false); }; } override public function setFocus():void{ stage.focus = textField; } public function set displayAsPassword(_arg1:Boolean):void{ textField.displayAsPassword = _arg1; } protected function drawBackground():void{ var _local1:DisplayObject = background; var _local2:String = (enabled) ? "upSkin" : "disabledSkin"; background = getDisplayObjectInstance(getStyleValue(_local2)); if (background == null){ return; }; addChildAt(background, 0); if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){ removeChild(_local1); }; } public function get text():String{ return (textField.text); } public function set maxChars(_arg1:int):void{ textField.maxChars = _arg1; } public function set horizontalScrollPosition(_arg1:int):void{ textField.scrollH = _arg1; } override protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((((_arg1 == textField)) || (super.isOurFocus(_arg1)))); } public function get textHeight():Number{ return (textField.textHeight); } public function get restrict():String{ return (textField.restrict); } public function get alwaysShowSelection():Boolean{ return (textField.alwaysShowSelection); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ var _local1:Object; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawTextFormat(); drawBackground(); _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } public function set editable(_arg1:Boolean):void{ _editable = _arg1; updateTextFieldType(); } public function setSelection(_arg1:int, _arg2:int):void{ textField.setSelection(_arg1, _arg2); } public function get condenseWhite():Boolean{ return (textField.condenseWhite); } public function get displayAsPassword():Boolean{ return (textField.displayAsPassword); } public function get selectionBeginIndex():int{ return (textField.selectionBeginIndex); } override protected function configUI():void{ super.configUI(); tabChildren = true; textField = new TextField(); addChild(textField); updateTextFieldType(); textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true); textField.addEventListener(Event.CHANGE, handleChange, false, 0, true); textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true); } public function get maxChars():int{ return (textField.maxChars); } public function set text(_arg1:String):void{ textField.text = _arg1; _html = false; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); } protected function updateTextFieldType():void{ textField.type = (((enabled) && (editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC; textField.selectable = enabled; } protected function handleKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true)); }; } public function get horizontalScrollPosition():int{ return (textField.scrollH); } public function get selectionEndIndex():int{ return (textField.selectionEndIndex); } public function get editable():Boolean{ return (_editable); } public function get maxHorizontalScrollPosition():int{ return (textField.maxScrollH); } public function appendText(_arg1:String):void{ textField.appendText(_arg1); } protected function drawTextFormat():void{ var _local1:Object = UIComponent.getStyleDefinition(); var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); if (_html){ textField.htmlText = _savedHTML; }; } public function get length():int{ return (textField.length); } public function set htmlText(_arg1:String):void{ if (_arg1 == ""){ text = ""; return; }; _html = true; _savedHTML = _arg1; textField.htmlText = _arg1; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); } protected function handleTextInput(_arg1:TextEvent):void{ _arg1.stopPropagation(); dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text)); } public function set restrict(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ _arg1 = null; }; textField.restrict = _arg1; } public function getLineMetrics(_arg1:int):TextLineMetrics{ return (textField.getLineMetrics(_arg1)); } override public function drawFocus(_arg1:Boolean):void{ if (focusTarget != null){ focusTarget.drawFocus(_arg1); return; }; super.drawFocus(_arg1); } override protected function focusInHandler(_arg1:FocusEvent):void{ if (_arg1.target == this){ stage.focus = textField; }; var _local2:IFocusManager = focusManager; if (((editable) && (_local2))){ _local2.showFocusIndicator = true; if (((textField.selectable) && ((textField.selectionBeginIndex == textField.selectionBeginIndex)))){ setSelection(0, textField.length); }; }; super.focusInHandler(_arg1); if (editable){ setIMEMode(true); }; } public function get htmlText():String{ return (textField.htmlText); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 24
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 25
//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 26
//UIComponent (fl.core.UIComponent) package fl.core { import flash.events.*; import flash.display.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.utils.*; import flash.system.*; public class UIComponent extends Sprite { protected var _x:Number; protected var _enabled:Boolean;// = true protected var callLaterMethods:Dictionary; private var _mouseFocusEnabled:Boolean;// = true private var tempText:TextField; private var _focusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var invalidateFlag:Boolean;// = false protected var _oldIMEMode:String;// = null protected var _inspector:Boolean;// = false protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var invalidHash:Object; protected var sharedStyles:Object; protected var uiFocusRect:DisplayObject; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var _width:Number; protected var instanceStyles:Object; public var version:String;// = "3.0.0.16" protected var isFocused:Boolean;// = false protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } private function callLaterDispatcher(_arg1:Event):void{ var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; var _local2:Dictionary = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } protected function validate():void{ invalidHash = {}; } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } override public function get height():Number{ return (_height); } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } override public function get scaleY():Number{ return ((height / startHeight)); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function configUI():void{ isLivePreview = checkLivePreview(); var _local1:Number = rotation; rotation = 0; var _local2:Number = super.width; var _local3:Number = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } override public function get scaleX():Number{ return ((width / startWidth)); } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var skin = _arg1; var classDef:Object; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } override public function set visible(_arg1:Boolean):void{ if (super.visible == _arg1){ return; }; super.visible = _arg1; var _local2:String = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set y(_arg1:Number):void{ move(_x, _arg1); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local5:Object; var _local6:String; var _local2:Object = {}; var _local3:uint = _args.length; var _local4:uint; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 27
//DataProvider (fl.data.DataProvider) package fl.data { import flash.events.*; import fl.events.*; public class DataProvider extends EventDispatcher { protected var data:Array; public function DataProvider(_arg1:Object=null){ if (_arg1 == null){ data = []; } else { data = getDataFromObject(_arg1); }; } public function invalidateItemAt(_arg1:int):void{ checkIndex(_arg1, (data.length - 1)); dispatchChangeEvent(DataChangeType.INVALIDATE, [data[_arg1]], _arg1, _arg1); } protected function dispatchPreChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.PRE_DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } public function getItemIndex(_arg1:Object):int{ return (data.indexOf(_arg1)); } public function removeItemAt(_arg1:uint):Object{ checkIndex(_arg1, (data.length - 1)); dispatchPreChangeEvent(DataChangeType.REMOVE, data.slice(_arg1, (_arg1 + 1)), _arg1, _arg1); var _local2:Array = data.splice(_arg1, 1); dispatchChangeEvent(DataChangeType.REMOVE, _local2, _arg1, _arg1); return (_local2[0]); } protected function getDataFromObject(_arg1:Object):Array{ var _local2:Array; var _local3:Array; var _local4:uint; var _local5:Object; var _local6:XML; var _local7:XMLList; var _local8:XML; var _local9:XMLList; var _local10:XML; var _local11:XMLList; var _local12:XML; if ((_arg1 is Array)){ _local3 = (_arg1 as Array); if (_local3.length > 0){ if ((((_local3[0] is String)) || ((_local3[0] is Number)))){ _local2 = []; _local4 = 0; while (_local4 < _local3.length) { _local5 = {label:String(_local3[_local4]), data:_local3[_local4]}; _local2.push(_local5); _local4++; }; return (_local2); }; }; return (_arg1.concat()); //unresolved jump }; if ((_arg1 is DataProvider)){ return (_arg1.toArray()); }; if ((_arg1 is XML)){ _local6 = (_arg1 as XML); _local2 = []; _local7 = _local6.*; for each (_local8 in _local7) { _arg1 = {}; _local9 = _local8.attributes(); for each (_local10 in _local9) { _arg1[_local10.localName()] = _local10.toString(); }; _local11 = _local8.*; for each (_local12 in _local11) { if (_local12.hasSimpleContent()){ _arg1[_local12.localName()] = _local12.toString(); }; }; _local2.push(_arg1); }; return (_local2); //unresolved jump }; throw (new TypeError((("Error: Type Coercion failed: cannot convert " + _arg1) + " to Array or DataProvider."))); } public function addItem(_arg1:Object):void{ dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); data.push(_arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); } public function concat(_arg1:Object):void{ addItems(_arg1); } public function getItemAt(_arg1:uint):Object{ checkIndex(_arg1, (data.length - 1)); return (data[_arg1]); } public function sortOn(_arg1:Object, _arg2:Object=null){ dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); var _local3:Array = data.sortOn(_arg1, _arg2); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local3); } public function toArray():Array{ return (data.concat()); } public function addItems(_arg1:Object):void{ addItemsAt(_arg1, data.length); } public function clone():DataProvider{ return (new DataProvider(data)); } public function sort(... _args){ dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); var _local2:Array = data.sort.apply(data, _args); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local2); } public function get length():uint{ return (data.length); } public function addItemAt(_arg1:Object, _arg2:uint):void{ checkIndex(_arg2, data.length); dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); data.splice(_arg2, 0, _arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); } override public function toString():String{ return ((("DataProvider [" + data.join(" , ")) + "]")); } public function invalidateItem(_arg1:Object):void{ var _local2:uint = getItemIndex(_arg1); if (_local2 == -1){ return; }; invalidateItemAt(_local2); } protected function dispatchChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } protected function checkIndex(_arg1:int, _arg2:int):void{ if ((((_arg1 > _arg2)) || ((_arg1 < 0)))){ throw (new RangeError((((("DataProvider index (" + _arg1) + ") is not in acceptable range (0 - ") + _arg2) + ")"))); }; } public function addItemsAt(_arg1:Object, _arg2:uint):void{ checkIndex(_arg2, data.length); var _local3:Array = getDataFromObject(_arg1); dispatchPreChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); data.splice.apply(data, [_arg2, 0].concat(_local3)); dispatchChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); } public function replaceItem(_arg1:Object, _arg2:Object):Object{ var _local3:int = getItemIndex(_arg2); if (_local3 != -1){ return (replaceItemAt(_arg1, _local3)); }; return (null); } public function removeItem(_arg1:Object):Object{ var _local2:int = getItemIndex(_arg1); if (_local2 != -1){ return (removeItemAt(_local2)); }; return (null); } public function merge(_arg1:Object):void{ var _local6:Object; var _local2:Array = getDataFromObject(_arg1); var _local3:uint = _local2.length; var _local4:uint = data.length; dispatchPreChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); var _local5:uint; while (_local5 < _local3) { _local6 = _local2[_local5]; if (getItemIndex(_local6) == -1){ data.push(_local6); }; _local5++; }; if (data.length > _local4){ dispatchChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); } else { dispatchChangeEvent(DataChangeType.ADD, [], -1, -1); }; } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ checkIndex(_arg2, (data.length - 1)); var _local3:Array = [data[_arg2]]; dispatchPreChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); data[_arg2] = _arg1; dispatchChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); return (_local3[0]); } public function invalidate():void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, DataChangeType.INVALIDATE_ALL, data.concat(), 0, data.length)); } public function removeAll():void{ var _local1:Array = data.concat(); dispatchPreChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); data = []; dispatchChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); } } }//package fl.data
Section 28
//SimpleCollectionItem (fl.data.SimpleCollectionItem) package fl.data { public dynamic class SimpleCollectionItem { public var data:String; public var label:String; public function toString():String{ return ((((("[SimpleCollectionItem: " + label) + ",") + data) + "]")); } } }//package fl.data
Section 29
//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 30
//DataChangeEvent (fl.events.DataChangeEvent) package fl.events { import flash.events.*; public class DataChangeEvent extends Event { protected var _items:Array; protected var _changeType:String; protected var _startIndex:uint; protected var _endIndex:uint; public static const PRE_DATA_CHANGE:String = "preDataChange"; public static const DATA_CHANGE:String = "dataChange"; public function DataChangeEvent(_arg1:String, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{ super(_arg1); _changeType = _arg2; _startIndex = _arg4; _items = _arg3; _endIndex = ((_arg5)==-1) ? _startIndex : _arg5; } public function get items():Array{ return (_items); } public function get changeType():String{ return (_changeType); } public function get startIndex():uint{ return (_startIndex); } public function get endIndex():uint{ return (_endIndex); } override public function toString():String{ return (formatToString("DataChangeEvent", "type", "changeType", "startIndex", "endIndex", "bubbles", "cancelable")); } override public function clone():Event{ return (new DataChangeEvent(type, _changeType, _items, _startIndex, _endIndex)); } } }//package fl.events
Section 31
//DataChangeType (fl.events.DataChangeType) package fl.events { public class DataChangeType { public static const ADD:String = "add"; public static const REMOVE:String = "remove"; public static const REMOVE_ALL:String = "removeAll"; public static const CHANGE:String = "change"; public static const REPLACE:String = "replace"; public static const INVALIDATE:String = "invalidate"; public static const INVALIDATE_ALL:String = "invalidateAll"; public static const SORT:String = "sort"; } }//package fl.events
Section 32
//DataGridEvent (fl.events.DataGridEvent) package fl.events { import flash.events.*; public class DataGridEvent extends ListEvent { protected var _reason:String; protected var _dataField:String; protected var _itemRenderer:Object; public static const ITEM_EDIT_BEGIN:String = "itemEditBegin"; public static const ITEM_EDIT_END:String = "itemEditEnd"; public static const ITEM_EDIT_BEGINNING:String = "itemEditBeginning"; public static const HEADER_RELEASE:String = "headerRelease"; public static const ITEM_FOCUS_IN:String = "itemFocusIn"; public static const ITEM_FOCUS_OUT:String = "itemFocusOut"; public static const COLUMN_STRETCH:String = "columnStretch"; public function DataGridEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:Object=null, _arg7:String=null, _arg8:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); _itemRenderer = _arg6; _dataField = _arg7; _reason = _arg8; } public function set dataField(_arg1:String):void{ _dataField = _arg1; } public function get reason():String{ return (_reason); } override public function toString():String{ return (formatToString("DataGridEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "itemRenderer", "dataField", "reason")); } public function get dataField():String{ return (_dataField); } public function get itemRenderer():Object{ return (_itemRenderer); } override public function clone():Event{ return (new DataGridEvent(type, bubbles, cancelable, columnIndex, int(rowIndex), _itemRenderer, _dataField, _reason)); } } }//package fl.events
Section 33
//DataGridEventReason (fl.events.DataGridEventReason) package fl.events { public final class DataGridEventReason { public static const OTHER:String = "other"; public static const CANCELLED:String = "cancelled"; public static const NEW_COLUMN:String = "newColumn"; public static const NEW_ROW:String = "newRow"; } }//package fl.events
Section 34
//ListEvent (fl.events.ListEvent) package fl.events { import flash.events.*; public class ListEvent extends Event { protected var _item:Object; protected var _index:int; protected var _rowIndex:int; protected var _columnIndex:int; public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick"; public static const ITEM_ROLL_OUT:String = "itemRollOut"; public static const ITEM_ROLL_OVER:String = "itemRollOver"; public static const ITEM_CLICK:String = "itemClick"; public function ListEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:Object=null){ super(_arg1, _arg2, _arg3); _rowIndex = _arg5; _columnIndex = _arg4; _index = _arg6; _item = _arg7; } public function get item():Object{ return (_item); } override public function toString():String{ return (formatToString("ListEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "index", "item")); } override public function clone():Event{ return (new ListEvent(type, bubbles, cancelable, _columnIndex, _rowIndex)); } public function get rowIndex():Object{ return (_rowIndex); } public function get index():int{ return (_index); } public function get columnIndex():int{ return (_columnIndex); } } }//package fl.events
Section 35
//ScrollEvent (fl.events.ScrollEvent) package fl.events { import flash.events.*; public class ScrollEvent extends Event { private var _direction:String; private var _position:Number; private var _delta:Number; public static const SCROLL:String = "scroll"; public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){ super(ScrollEvent.SCROLL, false, false); _direction = _arg1; _delta = _arg2; _position = _arg3; } public function get position():Number{ return (_position); } public function get direction():String{ return (_direction); } public function get delta():Number{ return (_delta); } override public function toString():String{ return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position")); } override public function clone():Event{ return (new ScrollEvent(_direction, _delta, _position)); } } }//package fl.events
Section 36
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.core.*; import flash.events.*; import fl.controls.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; var _local5:int = focusableCandidates.length; var _local6:int = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } private function setFocusToNextObject(_arg1:FocusEvent):void{ if (!hasFocusableObjects()){ return; }; var _local2:InteractiveObject = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local3:TextField; var _local4:SimpleButton; var _local2:DisplayObjectContainer = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } private function tabChildrenChangeHandler(_arg1:Event):void{ if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; var _local2:DisplayObjectContainer = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } public function getFocus():InteractiveObject{ var _local1:InteractiveObject = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } public function set defaultButton(_arg1:Button):void{ var _local2:Button = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int = focusableCandidates.length; var _local3:int; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local4:InteractiveObject; var _local3:DisplayObject = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local5:int; var _local6:String; var _local7:String; var _local3 = ""; var _local4 = ""; var _local8 = "0000"; var _local9:DisplayObject = DisplayObject(_arg1); var _local10:DisplayObject = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; var _local2:DisplayObject = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); var _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; var _local4:int = getIndexOfFocusedObject(_local2); var _local5:Boolean; var _local6:int = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; var _local7:int = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ if (_arg1.isDefaultPrevented()){ return; }; var _local2:InteractiveObject = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local3:Button; var _local2:InteractiveObject = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ calculateCandidates = true; var _local2:InteractiveObject = InteractiveObject(_arg1.target); var _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } } }//package fl.managers
Section 37
//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 findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function hideFocus():void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function setFocus(_arg1:InteractiveObject):void; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 38
//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 39
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function get groupName():String; function get selected():Boolean; function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; } }//package fl.managers
Section 40
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.text.*; import flash.utils.*; public class StyleManager { private var classToInstancesDict:Dictionary; private var globalStyles:Object; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToDefaultStylesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class = getClassDef(_arg1); var _local4:Object = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class = getClassDef(_arg1); var _local5:Object = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local5:String; var _local2:StyleManager = getInstance(); var _local3:Class = getClassDef(_arg1); var _local4:Object = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class = getClassDef(_arg1); var _local4:Object = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local4:Object; var _local5:UIComponent; var _local3:Dictionary = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local3:Object; var _local2:Dictionary = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; var inst:StyleManager = getInstance(); var classDef:Class = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; if (inst.classToStylesDict[classDef] == null){ inst.classToStylesDict[classDef] = {}; }; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class = getClassDef(_arg1); var _local4:StyleManager = getInstance(); var _local5:Object = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 41
//TweenEvent (gs.events.TweenEvent) package gs.events { import flash.events.*; public class TweenEvent extends Event { public var info:Object; public static const UPDATE:String = "update"; public static const START:String = "start"; public static const version:Number = 0.9; public static const COMPLETE:String = "complete"; public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); this.info = _arg2; } override public function clone():Event{ return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable)); } } }//package gs.events
Section 42
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin) package gs.plugins { import flash.display.*; import gs.*; public class AutoAlphaPlugin extends TweenPlugin { protected var _tweenVisible:Boolean; protected var _target:Object; protected var _visible:Boolean; protected var _tween:TweenLite; public static const VERSION:Number = 1; public static const API:Number = 1; public function AutoAlphaPlugin(){ this.propName = "autoAlpha"; this.overwriteProps = ["alpha", "visible"]; this.onComplete = onCompleteTween; } override public function killProps(_arg1:Object):void{ super.killProps(_arg1); _tweenVisible = !(Boolean(("visible" in _arg1))); } public function onCompleteTween():void{ if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){ _target.visible = _visible; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _visible = Boolean(!((_arg2 == 0))); _tweenVisible = true; addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); if (((!((_target.visible == true))) && (_tweenVisible))){ _target.visible = true; }; } } }//package gs.plugins
Section 43
//BevelFilterPlugin (gs.plugins.BevelFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class BevelFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BevelFilterPlugin(){ this.propName = "bevelFilter"; this.overwriteProps = ["bevelFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BevelFilter; initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2)))); return (true); } } }//package gs.plugins
Section 44
//BezierPlugin (gs.plugins.BezierPlugin) package gs.plugins { import gs.*; import gs.utils.tween.*; public class BezierPlugin extends TweenPlugin { protected var _future:Object; protected var _orient:Boolean; protected var _orientData:Array; protected var _target:Object; protected var _beziers:Object; protected static const _RAD2DEG:Number = 57.2957795130823; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function BezierPlugin(){ _future = {}; super(); this.propName = "bezier"; this.overwriteProps = []; } override public function killProps(_arg1:Object):void{ var _local2:String; for (_local2 in _beziers) { if ((_local2 in _arg1)){ delete _beziers[_local2]; }; }; super.killProps(_arg1); } protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{ var _local5:int; var _local6:String; _target = _arg1.target; if (_arg1.exposedVars.orientToBezier == true){ _orientData = [["x", "y", "rotation", 0]]; _orient = true; } else { if ((_arg1.exposedVars.orientToBezier is Array)){ _orientData = _arg1.exposedVars.orientToBezier; _orient = true; }; }; var _local4:Object = {}; _local5 = 0; while (_local5 < _arg2.length) { for (_local6 in _arg2[_local5]) { if (_local4[_local6] == undefined){ _local4[_local6] = [_arg1.target[_local6]]; }; if (typeof(_arg2[_local5][_local6]) == "number"){ _local4[_local6].push(_arg2[_local5][_local6]); } else { _local4[_local6].push((_arg1.target[_local6] + Number(_arg2[_local5][_local6]))); }; }; _local5++; }; for (_local6 in _local4) { this.overwriteProps[this.overwriteProps.length] = _local6; if (_arg1.exposedVars[_local6] != undefined){ if (typeof(_arg1.exposedVars[_local6]) == "number"){ _local4[_local6].push(_arg1.exposedVars[_local6]); } else { _local4[_local6].push((_arg1.target[_local6] + Number(_arg1.exposedVars[_local6]))); }; delete _arg1.exposedVars[_local6]; _local5 = (_arg1.tweens.length - 1); while (_local5 > -1) { if (_arg1.tweens[_local5].name == _local6){ _arg1.tweens.splice(_local5, 1); }; _local5--; }; }; }; _beziers = parseBeziers(_local4, _arg3); } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), false); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:String; var _local4:Object; var _local5:Number; var _local6:uint; var _local7:Number; var _local8:int; var _local9:Object; var _local10:Boolean; var _local11:Number; var _local12:Number; var _local13:Array; var _local14:Number; if (_arg1 == 1){ for (_local3 in _beziers) { _local2 = (_beziers[_local3].length - 1); _target[_local3] = _beziers[_local3][_local2][2]; }; } else { for (_local3 in _beziers) { _local6 = _beziers[_local3].length; if (_arg1 < 0){ _local2 = 0; } else { if (_arg1 >= 1){ _local2 = (_local6 - 1); } else { _local2 = int((_local6 * _arg1)); }; }; _local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6); _local4 = _beziers[_local3][_local2]; if (this.round){ _local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); _local8 = ((_local7)<0) ? -1 : 1; _target[_local3] = ((((_local7 % 1) * _local8))>0.5) ? (int(_local7) + _local8) : int(_local7); } else { _target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); }; }; }; if (_orient){ _local9 = _target; _local10 = this.round; _target = _future; this.round = false; _orient = false; this.changeFactor = (_arg1 + 0.01); _target = _local9; this.round = _local10; _orient = true; _local2 = 0; while (_local2 < _orientData.length) { _local13 = _orientData[_local2]; _local14 = ((_local13[3]) || (0)); _local11 = (_future[_local13[0]] - _target[_local13[0]]); _local12 = (_future[_local13[1]] - _target[_local13[1]]); _target[_local13[2]] = ((Math.atan2(_local12, _local11) * _RAD2DEG) + _local14); _local2++; }; }; } public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{ var _local3:int; var _local4:Array; var _local5:Object; var _local6:String; var _local7:Object = {}; if (_arg2){ for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 2){ _local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]]; _local3 = 1; while (_local3 < (_local4.length - 1)) { _local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]]; _local3++; }; } else { _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; } else { for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 3){ _local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)]; _local3 = 2; while (_local3 < (_local4.length - 2)) { _local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)]; _local3++; }; _local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]]; } else { if (_local4.length == 3){ _local5[_local5.length] = [_local4[0], _local4[1], _local4[2]]; } else { if (_local4.length == 2){ _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; }; }; }; return (_local7); } } }//package gs.plugins
Section 45
//BezierThroughPlugin (gs.plugins.BezierThroughPlugin) package gs.plugins { import gs.*; public class BezierThroughPlugin extends BezierPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BezierThroughPlugin(){ this.propName = "bezierThrough"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), true); return (true); } } }//package gs.plugins
Section 46
//BlurFilterPlugin (gs.plugins.BlurFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class BlurFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BlurFilterPlugin(){ this.propName = "blurFilter"; this.overwriteProps = ["blurFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BlurFilter; initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2)))); return (true); } } }//package gs.plugins
Section 47
//ColorMatrixFilterPlugin (gs.plugins.ColorMatrixFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class ColorMatrixFilterPlugin extends FilterPlugin { protected var _matrix:Array; protected var _matrixTween:EndArrayPlugin; public static const API:Number = 1; public static const VERSION:Number = 1.01; protected static var _lumG:Number = 0.71516; protected static var _lumR:Number = 0.212671; protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; protected static var _lumB:Number = 0.072169; public function ColorMatrixFilterPlugin(){ this.propName = "colorMatrixFilter"; this.overwriteProps = ["colorMatrixFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = ColorMatrixFilter; var _local4:Object = _arg2; initFilter({}, new ColorMatrixFilter(_idMatrix.slice())); _matrix = ColorMatrixFilter(_filter).matrix; var _local5:Array = []; if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){ _local5 = _local4.matrix; } else { if (_local4.relative == true){ _local5 = _matrix.slice(); } else { _local5 = _idMatrix.slice(); }; _local5 = setBrightness(_local5, _local4.brightness); _local5 = setContrast(_local5, _local4.contrast); _local5 = setHue(_local5, _local4.hue); _local5 = setSaturation(_local5, _local4.saturation); _local5 = setThreshold(_local5, _local4.threshold); if (!isNaN(_local4.colorize)){ _local5 = colorize(_local5, _local4.colorize, _local4.amount); }; }; _matrixTween = new EndArrayPlugin(); _matrixTween.init(_matrix, _local5); return (true); } override public function set changeFactor(_arg1:Number):void{ _matrixTween.changeFactor = _arg1; ColorMatrixFilter(_filter).matrix = _matrix; super.changeFactor = _arg1; } public static function setSaturation(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Number = (1 - _arg2); var _local4:Number = (_local3 * _lumR); var _local5:Number = (_local3 * _lumG); var _local6:Number = (_local3 * _lumB); var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local7, _arg1)); } public static function setHue(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 * (Math.PI / 180)); var _local3:Number = Math.cos(_arg2); var _local4:Number = Math.sin(_arg2); var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return (applyMatrix(_local5, _arg1)); } public static function setThreshold(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function applyMatrix(_arg1:Array, _arg2:Array):Array{ var _local6:int; var _local7:int; if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (_arg2); }; var _local3:Array = []; var _local4:int; var _local5:int; _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 5) { if (_local7 == 4){ _local5 = _arg1[(_local4 + 4)]; } else { _local5 = 0; }; _local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5); _local7++; }; _local4 = (_local4 + 5); _local6++; }; return (_local3); } public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{ if (isNaN(_arg2)){ return (_arg1); }; if (isNaN(_arg3)){ _arg3 = 1; }; var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF); var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF); var _local6:Number = ((_arg2 & 0xFF) / 0xFF); var _local7:Number = (1 - _arg3); var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local8, _arg1)); } public static function setBrightness(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = ((_arg2 * 100) - 100); return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1)); } public static function setContrast(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 + 0.01); var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } } }//package gs.plugins
Section 48
//DropShadowFilterPlugin (gs.plugins.DropShadowFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class DropShadowFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function DropShadowFilterPlugin(){ this.propName = "dropShadowFilter"; this.overwriteProps = ["dropShadowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = DropShadowFilter; initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject)); return (true); } } }//package gs.plugins
Section 49
//EndArrayPlugin (gs.plugins.EndArrayPlugin) package gs.plugins { import flash.display.*; import gs.*; import gs.utils.tween.*; public class EndArrayPlugin extends TweenPlugin { protected var _a:Array; protected var _info:Array; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function EndArrayPlugin(){ _info = []; super(); this.propName = "endArray"; this.overwriteProps = ["endArray"]; } public function init(_arg1:Array, _arg2:Array):void{ _a = _arg1; var _local3:int = (_arg2.length - 1); while (_local3 > -1) { if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){ _info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3])); }; _local3--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (false); }; init((_arg1 as Array), _arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:ArrayTweenInfo; var _local4:Number; var _local5:int; if (this.round){ _local2 = (_info.length - 1); while (_local2 > -1) { _local3 = _info[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local5 = ((_local4)<0) ? -1 : 1; _a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4); _local2--; }; } else { _local2 = (_info.length - 1); while (_local2 > -1) { _local3 = _info[_local2]; _a[_local3.index] = (_local3.start + (_local3.change * _arg1)); _local2--; }; }; } } }//package gs.plugins
Section 50
//FilterPlugin (gs.plugins.FilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; import gs.utils.tween.*; public class FilterPlugin extends TweenPlugin { protected var _remove:Boolean; protected var _target:Object; protected var _index:int; protected var _filter:BitmapFilter; protected var _type:Class; public static const VERSION:Number = 1.03; public static const API:Number = 1; public function onCompleteTween():void{ var _local1:int; var _local2:Array; if (_remove){ _local2 = _target.filters; if (!(_local2[_index] is _type)){ _local1 = (_local2.length - 1); while (_local1 > -1) { if ((_local2[_local1] is _type)){ _local2.splice(_local1, 1); break; }; _local1--; }; } else { _local2.splice(_index, 1); }; _target.filters = _local2; }; } protected function initFilter(_arg1:Object, _arg2:BitmapFilter):void{ var _local4:String; var _local5:int; var _local6:HexColorsPlugin; var _local3:Array = _target.filters; _index = -1; if (_arg1.index != null){ _index = _arg1.index; } else { _local5 = (_local3.length - 1); while (_local5 > -1) { if ((_local3[_local5] is _type)){ _index = _local5; break; }; _local5--; }; }; if ((((((_index == -1)) || ((_local3[_index] == null)))) || ((_arg1.addFilter == true)))){ _index = ((_arg1.index)!=null) ? _arg1.index : _local3.length; _local3[_index] = _arg2; _target.filters = _local3; }; _filter = _local3[_index]; _remove = Boolean((_arg1.remove == true)); if (_remove){ this.onComplete = onCompleteTween; }; var _local7:Object = ((_arg1.isTV)==true) ? _arg1.exposedVars : _arg1; for (_local4 in _local7) { if (((((((((!((_local4 in _filter))) || ((_filter[_local4] == _local7[_local4])))) || ((_local4 == "remove")))) || ((_local4 == "index")))) || ((_local4 == "addFilter")))){ } else { if ((((((_local4 == "color")) || ((_local4 == "highlightColor")))) || ((_local4 == "shadowColor")))){ _local6 = new HexColorsPlugin(); _local6.initColor(_filter, _local4, _filter[_local4], _local7[_local4]); _tweens[_tweens.length] = new TweenInfo(_local6, "changeFactor", 0, 1, _local4, false); } else { if ((((((((_local4 == "quality")) || ((_local4 == "inner")))) || ((_local4 == "knockout")))) || ((_local4 == "hideObject")))){ _filter[_local4] = _local7[_local4]; } else { addTween(_filter, _local4, _filter[_local4], _local7[_local4], _local4); }; }; }; }; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:TweenInfo; var _local4:Array = _target.filters; _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); _local2--; }; if (!(_local4[_index] is _type)){ _index = (_local4.length - 1); _local2 = (_local4.length - 1); while (_local2 > -1) { if ((_local4[_local2] is _type)){ _index = _local2; break; }; _local2--; }; }; _local4[_index] = _filter; _target.filters = _local4; } } }//package gs.plugins
Section 51
//FramePlugin (gs.plugins.FramePlugin) package gs.plugins { import flash.display.*; import gs.*; public class FramePlugin extends TweenPlugin { protected var _target:MovieClip; public var frame:int; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function FramePlugin(){ this.propName = "frame"; this.overwriteProps = ["frame"]; this.round = true; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; addTween(this, "frame", this.frame, _arg2, "frame"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.gotoAndStop(this.frame); } } }//package gs.plugins
Section 52
//GlowFilterPlugin (gs.plugins.GlowFilterPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.filters.*; public class GlowFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function GlowFilterPlugin(){ this.propName = "glowFilter"; this.overwriteProps = ["glowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = GlowFilter; initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout)); return (true); } } }//package gs.plugins
Section 53
//HexColorsPlugin (gs.plugins.HexColorsPlugin) package gs.plugins { import flash.display.*; import gs.*; public class HexColorsPlugin extends TweenPlugin { protected var _colors:Array; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function HexColorsPlugin(){ this.propName = "hexColors"; this.overwriteProps = []; _colors = []; } override public function killProps(_arg1:Object):void{ var _local2:int = (_colors.length - 1); while (_local2 > -1) { if (_arg1[_colors[_local2][1]] != undefined){ _colors.splice(_local2, 1); }; _local2--; }; super.killProps(_arg1); } public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{ var _local5:Number; var _local6:Number; var _local7:Number; if (_arg3 != _arg4){ _local5 = (_arg3 >> 16); _local6 = ((_arg3 >> 8) & 0xFF); _local7 = (_arg3 & 0xFF); _colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)]; this.overwriteProps[this.overwriteProps.length] = _arg2; }; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:Array; _local2 = (_colors.length - 1); while (_local2 > -1) { _local3 = _colors[_local2]; _local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7]))); _local2--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; for (_local4 in _arg2) { initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4])); }; return (true); } } }//package gs.plugins
Section 54
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin) package gs.plugins { public class RemoveTintPlugin extends TintPlugin { public static const VERSION:Number = 1.01; public static const API:Number = 1; public function RemoveTintPlugin(){ this.propName = "removeTint"; } } }//package gs.plugins
Section 55
//RoundPropsPlugin (gs.plugins.RoundPropsPlugin) package gs.plugins { import flash.display.*; import gs.*; public class RoundPropsPlugin extends TweenPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function RoundPropsPlugin(){ this.propName = "roundProps"; this.overwriteProps = []; this.round = true; } public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package gs.plugins
Section 56
//ShortRotationPlugin (gs.plugins.ShortRotationPlugin) package gs.plugins { import flash.display.*; import gs.*; public class ShortRotationPlugin extends TweenPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function ShortRotationPlugin(){ this.propName = "shortRotation"; this.overwriteProps = []; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; if (typeof(_arg2) == "number"){ trace("WARNING: You appear to be using the old shortRotation syntax. Instead of passing a number, please pass an object with properties that correspond to the rotations values For example, TweenMax.to(mc, 2, {shortRotation:{rotationX:-170, rotationY:25}})"); return (false); }; for (_local4 in _arg2) { initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]); }; return (true); } public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ var _local5:Number = ((_arg4 - _arg3) % 360); if (((_arg4 - _arg3) % 360) != (_local5 % 180)){ _local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360); }; addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package gs.plugins
Section 57
//TintPlugin (gs.plugins.TintPlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.geom.*; import gs.utils.tween.*; public class TintPlugin extends TweenPlugin { protected var _target:DisplayObject; protected var _ct:ColorTransform; protected var _ignoreAlpha:Boolean; public static const VERSION:Number = 1.1; public static const API:Number = 1; protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"]; public function TintPlugin(){ this.propName = "tint"; this.overwriteProps = ["tint"]; } public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{ var _local3:int; var _local4:String; _target = _arg1; _ct = _target.transform.colorTransform; _local3 = (_props.length - 1); while (_local3 > -1) { _local4 = _props[_local3]; if (_ct[_local4] != _arg2[_local4]){ _tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false); }; _local3--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg1 is DisplayObject)){ return (false); }; var _local4:ColorTransform = new ColorTransform(); if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){ _local4.color = uint(_arg2); }; _ignoreAlpha = true; init((_arg1 as DisplayObject), _local4); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:ColorTransform; updateTweens(_arg1); if (_ignoreAlpha){ _local2 = _target.transform.colorTransform; _ct.alphaMultiplier = _local2.alphaMultiplier; _ct.alphaOffset = _local2.alphaOffset; }; _target.transform.colorTransform = _ct; } } }//package gs.plugins
Section 58
//TweenPlugin (gs.plugins.TweenPlugin) package gs.plugins { import gs.*; import gs.utils.tween.*; public class TweenPlugin { public var overwriteProps:Array; protected var _tweens:Array; public var propName:String; public var onComplete:Function; public var round:Boolean; protected var _changeFactor:Number;// = 0 public static const VERSION:Number = 1.03; public static const API:Number = 1; public function TweenPlugin(){ _tweens = []; super(); } protected function updateTweens(_arg1:Number):void{ var _local2:int; var _local3:TweenInfo; var _local4:Number; var _local5:int; if (this.round){ _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local5 = ((_local4)<0) ? -1 : 1; _local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4); _local2--; }; } else { _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); _local2--; }; }; } public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _changeFactor = _arg1; } protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{ var _local6:Number; if (_arg4 != null){ _local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4); if (_local6 != 0){ _tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false); }; }; } public function killProps(_arg1:Object):void{ var _local2:int; _local2 = (this.overwriteProps.length - 1); while (_local2 > -1) { if ((this.overwriteProps[_local2] in _arg1)){ this.overwriteProps.splice(_local2, 1); }; _local2--; }; _local2 = (_tweens.length - 1); while (_local2 > -1) { if ((_tweens[_local2].name in _arg1)){ _tweens.splice(_local2, 1); }; _local2--; }; } public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName); return (true); } public function get changeFactor():Number{ return (_changeFactor); } public static function activate(_arg1:Array):Boolean{ var _local2:int; var _local3:Object; _local2 = (_arg1.length - 1); while (_local2 > -1) { _local3 = new (_arg1[_local2]); TweenLite.plugins[_local3.propName] = _arg1[_local2]; _local2--; }; return (true); } } }//package gs.plugins
Section 59
//VisiblePlugin (gs.plugins.VisiblePlugin) package gs.plugins { import flash.display.*; import gs.*; public class VisiblePlugin extends TweenPlugin { protected var _target:Object; protected var _visible:Boolean; protected var _tween:TweenLite; public static const VERSION:Number = 1; public static const API:Number = 1; public function VisiblePlugin(){ this.propName = "visible"; this.overwriteProps = ["visible"]; this.onComplete = onCompleteTween; } public function onCompleteTween():void{ if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){ _target.visible = _visible; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _visible = Boolean(_arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ if (_target.visible != true){ _target.visible = true; }; } } }//package gs.plugins
Section 60
//VolumePlugin (gs.plugins.VolumePlugin) package gs.plugins { import flash.display.*; import gs.*; import flash.media.*; public class VolumePlugin extends TweenPlugin { protected var _target:Object; protected var _st:SoundTransform; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function VolumePlugin(){ this.propName = "volume"; this.overwriteProps = ["volume"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){ return (false); }; _target = _arg1; _st = _target.soundTransform; addTween(_st, "volume", _st.volume, _arg2, "volume"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.soundTransform = _st; } } }//package gs.plugins
Section 61
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo) package gs.utils.tween { public class ArrayTweenInfo { public var change:Number; public var start:Number; public var index:uint; public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){ this.index = _arg1; this.start = _arg2; this.change = _arg3; } } }//package gs.utils.tween
Section 62
//TweenInfo (gs.utils.tween.TweenInfo) package gs.utils.tween { public class TweenInfo { public var start:Number; public var name:String; public var change:Number; public var target:Object; public var property:String; public var isPlugin:Boolean; public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){ this.target = _arg1; this.property = _arg2; this.start = _arg3; this.change = _arg4; this.name = _arg5; this.isPlugin = _arg6; } } }//package gs.utils.tween
Section 63
//OverwriteManager (gs.OverwriteManager) package gs { import flash.utils.*; import gs.utils.tween.*; import flash.errors.*; public class OverwriteManager { public static const ALL:int = 1; public static const NONE:int = 0; public static const AUTO:int = 2; public static const CONCURRENT:int = 3; public static const version:Number = 3.12; public static var mode:int; public static var enabled:Boolean; public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array):void{ var _local4:int; var _local5:String; var _local6:TweenInfo; _local4 = (_arg3.length - 1); while (_local4 > -1) { _local6 = _arg3[_local4]; if ((_local6.name in _arg1)){ _arg3.splice(_local4, 1); } else { if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){ _local6.target.killProps(_arg1); if (_local6.target.overwriteProps.length == 0){ _arg3.splice(_local4, 1); }; }; }; _local4--; }; for (_local5 in _arg1) { delete _arg2[_local5]; }; } public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{ var _local7:int; var _local8:TweenLite; var _local10:Array; var _local11:Object; var _local12:int; var _local13:TweenInfo; var _local14:Array; var _local3:Object = _arg1.vars; var _local4:int = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite); if ((((_local4 < 2)) || ((_arg2 == null)))){ return; }; var _local5:Number = _arg1.startTime; var _local6:Array = []; var _local9 = -1; _local7 = (_arg2.length - 1); while (_local7 > -1) { _local8 = _arg2[_local7]; if (_local8 == _arg1){ _local9 = _local7; } else { if ((((((_local7 < _local9)) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){ _local6[_local6.length] = _local8; }; }; _local7--; }; if ((((_local6.length == 0)) || ((_arg1.tweens.length == 0)))){ return; }; if (_local4 == AUTO){ _local10 = _arg1.tweens; _local11 = {}; _local7 = (_local10.length - 1); while (_local7 > -1) { _local13 = _local10[_local7]; if (_local13.isPlugin){ if (_local13.name == "_MULTIPLE_"){ _local14 = _local13.target.overwriteProps; _local12 = (_local14.length - 1); while (_local12 > -1) { _local11[_local14[_local12]] = true; _local12--; }; } else { _local11[_local13.name] = true; }; _local11[_local13.target.propName] = true; } else { _local11[_local13.name] = true; }; _local7--; }; _local7 = (_local6.length - 1); while (_local7 > -1) { killVars(_local11, _local6[_local7].exposedVars, _local6[_local7].tweens); _local7--; }; } else { _local7 = (_local6.length - 1); while (_local7 > -1) { _local6[_local7].enabled = false; _local7--; }; }; } public static function init(_arg1:int=2):int{ if (TweenLite.version < 10.09){ trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com."); }; TweenLite.overwriteManager = OverwriteManager; mode = _arg1; enabled = true; return (mode); } } }//package gs
Section 64
//TweenLite (gs.TweenLite) package gs { import flash.events.*; import flash.display.*; import flash.utils.*; import gs.utils.tween.*; import gs.plugins.*; public class TweenLite { public var started:Boolean; public var delay:Number; protected var _hasUpdate:Boolean; protected var _hasPlugins:Boolean; public var initted:Boolean; public var active:Boolean; public var startTime:Number; public var target:Object; public var duration:Number; public var gc:Boolean; public var tweens:Array; public var vars:Object; public var ease:Function; public var exposedVars:Object; public var initTime:Number; public var combinedTimeScale:Number; public static const version:Number = 10.09; private static var _timer:Timer = new Timer(2000); public static var defaultEase:Function = TweenLite.easeOut; public static var plugins:Object = {}; public static var currentTime:uint; public static var masterList:Dictionary = new Dictionary(false); protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1}; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public static var timingSprite:Sprite = new Sprite(); public static var overwriteManager:Object; private static var _tlInitted:Boolean; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ if (_arg1 == null){ return; }; if (!_tlInitted){ TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]); currentTime = getTimer(); timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; _timer.addEventListener("timer", killGarbage, false, 0, true); _timer.start(); _tlInitted = true; }; this.vars = _arg3; this.duration = ((_arg2) || (0.001)); this.delay = ((_arg3.delay) || (0)); this.combinedTimeScale = ((_arg3.timeScale) || (1)); this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0)))); this.target = _arg1; if (typeof(this.vars.ease) != "function"){ this.vars.ease = defaultEase; }; if (this.vars.easeParams != null){ this.vars.proxiedEase = this.vars.ease; this.vars.ease = easeProxy; }; this.ease = this.vars.ease; this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars; this.tweens = []; this.initTime = currentTime; this.startTime = (this.initTime + (this.delay * 1000)); var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); if (((!((_arg1 in masterList))) || ((_local4 == 1)))){ masterList[_arg1] = [this]; } else { masterList[_arg1].push(this); }; if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){ initTweenVals(); if (this.active){ render((this.startTime + 1)); } else { render(this.startTime); }; if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){ this.target.visible = this.exposedVars.visible; }; }; } public function get enabled():Boolean{ return ((this.gc) ? false : true); } public function set enabled(_arg1:Boolean):void{ var _local2:Array; var _local3:Boolean; var _local4:int; if (_arg1){ if (!(this.target in masterList)){ masterList[this.target] = [this]; } else { _local2 = masterList[this.target]; _local4 = (_local2.length - 1); while (_local4 > -1) { if (_local2[_local4] == this){ _local3 = true; break; }; _local4--; }; if (!_local3){ _local2[_local2.length] = this; }; }; }; this.gc = (_arg1) ? false : true; if (this.gc){ this.active = false; } else { this.active = this.started; }; } public function clear():void{ this.tweens = []; this.vars = (this.exposedVars = {ease:this.vars.ease}); _hasUpdate = false; } public function render(_arg1:uint):void{ var _local3:Number; var _local4:TweenInfo; var _local5:int; var _local2:Number = ((_arg1 - this.startTime) * 0.001); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0; } else { _local3 = this.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change)); _local5--; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } public function activate():void{ this.started = (this.active = true); if (!this.initted){ initTweenVals(); }; if (this.vars.onStart != null){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (this.duration == 0.001){ this.startTime = (this.startTime - 1); }; } public function initTweenVals():void{ var _local1:String; var _local2:int; var _local3:*; var _local4:TweenInfo; if (((!((this.exposedVars.timeScale == undefined))) && ((this.target is TweenLite)))){ this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false); }; for (_local1 in this.exposedVars) { if ((_local1 in _reservedProps)){ } else { if ((_local1 in plugins)){ _local3 = new (plugins[_local1]); if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){ this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false); } else { this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true); _hasPlugins = true; }; } else { this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false); }; }; }; if (this.vars.runBackwards == true){ _local2 = (this.tweens.length - 1); while (_local2 > -1) { _local4 = this.tweens[_local2]; this.tweens[_local2].start = (_local4.start + _local4.change); _local4.change = -(_local4.change); _local2--; }; }; if (this.vars.onUpdate != null){ _hasUpdate = true; }; if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){ overwriteManager.manageOverwrites(this, masterList[this.target]); }; this.initted = true; } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } public function killVars(_arg1:Object):void{ if (overwriteManager.enabled){ overwriteManager.killVars(_arg1, this.exposedVars, this.tweens); }; } public function complete(_arg1:Boolean=false):void{ var _local2:int; if (!_arg1){ if (!this.initted){ initTweenVals(); }; this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale)); render(currentTime); return; }; if (_hasPlugins){ _local2 = (this.tweens.length - 1); while (_local2 > -1) { if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){ this.tweens[_local2].target.onComplete(); }; _local2--; }; }; if (this.vars.persist != true){ this.enabled = false; }; if (this.vars.onComplete != null){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); }; } public static function updateAll(_arg1:Event=null):void{ var _local4:Array; var _local5:int; var _local6:TweenLite; var _local2:uint = (currentTime = getTimer()); var _local3:Dictionary = masterList; for each (_local4 in _local3) { _local5 = (_local4.length - 1); while (_local5 > -1) { _local6 = _local4[_local5]; if (_local6.active){ _local6.render(_local2); } else { if (_local6.gc){ _local4.splice(_local5, 1); } else { if (_local2 >= _local6.startTime){ _local6.activate(); _local6.render(_local2); }; }; }; _local5--; }; }; } public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{ if (_arg1 != null){ if (_arg2){ _arg1.clear(); }; _arg1.enabled = false; }; } public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{ var _local3:Array; var _local4:int; var _local5:TweenLite; if (((!((_arg1 == null))) && ((_arg1 in masterList)))){ _local3 = masterList[_arg1]; _local4 = (_local3.length - 1); while (_local4 > -1) { _local5 = _local3[_local4]; if (((_arg2) && (!(_local5.gc)))){ _local5.complete(false); }; _local5.clear(); _local4--; }; delete masterList[_arg1]; }; } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } protected static function killGarbage(_arg1:TimerEvent):void{ var _local3:Object; var _local2:Dictionary = masterList; for (_local3 in _local2) { if (_local2[_local3].length == 0){ delete _local2[_local3]; }; }; } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0})); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package gs
Section 65
//TweenMax (gs.TweenMax) package gs { import flash.events.*; import flash.utils.*; import gs.utils.tween.*; import gs.plugins.*; import gs.events.*; public class TweenMax extends TweenLite implements IEventDispatcher { protected var _dispatcher:EventDispatcher; protected var _callbacks:Object; public var pauseTime:Number; protected var _repeatCount:Number; protected var _timeScale:Number; public static const version:Number = 10.1; public static var removeTween:Function = TweenLite.removeTween; private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(); ; protected static var _pausedTweens:Dictionary = new Dictionary(false); protected static var _globalTimeScale:Number = 1; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _activatedPlugins:Boolean = TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin, HexColorsPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, BevelFilterPlugin, DropShadowFilterPlugin, GlowFilterPlugin, RoundPropsPlugin, BezierPlugin, BezierThroughPlugin, ShortRotationPlugin]); public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); if (TweenLite.version < 10.09){ trace("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com."); }; if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenMax)))){ _timeScale = 1; this.combinedTimeScale = _globalTimeScale; } else { _timeScale = this.combinedTimeScale; this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale); }; if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){ this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale))); }; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ initDispatcher(); if ((((_arg2 == 0)) && ((this.delay == 0)))){ onUpdateDispatcher(); onCompleteDispatcher(); }; }; _repeatCount = 0; if (((!(isNaN(this.vars.yoyo))) || (!(isNaN(this.vars.loop))))){ this.vars.persist = true; }; if ((((this.delay == 0)) && (!((this.exposedVars.startAt == null))))){ this.exposedVars.startAt.overwrite = 0; new TweenMax(this.target, 0, this.exposedVars.startAt); }; } public function dispatchEvent(_arg1:Event):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.dispatchEvent(_arg1)); } public function get reversed():Boolean{ return ((this.ease == reverseEase)); } public function set reversed(_arg1:Boolean):void{ if (this.reversed != _arg1){ reverse(); }; } public function get progress():Number{ var _local1:Number = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime; var _local2:Number = (((((_local1 - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale); if (_local2 > 1){ return (1); }; if (_local2 < 0){ return (0); }; return (_local2); } override public function set enabled(_arg1:Boolean):void{ if (!_arg1){ _pausedTweens[this] = null; delete _pausedTweens[this]; }; super.enabled = _arg1; if (_arg1){ this.combinedTimeScale = (_timeScale * _globalTimeScale); }; } protected function onStartDispatcher(... _args):void{ if (_callbacks.onStart != null){ _callbacks.onStart.apply(null, this.vars.onStartParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); } public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{ var _local5:int; var _local6:TweenInfo; var _local7:Object; var _local8:Object; var _local9:Array; var _local10:Boolean; var _local11:Array; var _local12:Object; var _local4:Number = this.progress; if (this.initted){ if (!_arg3){ _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local6 = this.tweens[_local5]; if (_local6.name == _arg1){ _local6.target[_local6.property] = _local6.start; }; _local5--; }; }; _local7 = this.vars; _local8 = this.exposedVars; _local9 = this.tweens; _local10 = _hasPlugins; this.tweens = []; this.vars = (this.exposedVars = {}); this.vars[_arg1] = _arg2; initTweenVals(); if (((!((this.ease == reverseEase))) && ((_local7.ease is Function)))){ this.ease = _local7.ease; }; if (((_arg3) && (!((_local4 == 0))))){ adjustStartValues(); }; _local11 = this.tweens; this.vars = _local7; this.exposedVars = _local8; this.tweens = _local9; _local12 = {}; _local12[_arg1] = true; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local6 = this.tweens[_local5]; if (_local6.name == _arg1){ this.tweens.splice(_local5, 1); } else { if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){ _local6.target.killProps(_local12); if (_local6.target.overwriteProps.length == 0){ this.tweens.splice(_local5, 1); }; }; }; _local5--; }; this.tweens = this.tweens.concat(_local11); _hasPlugins = Boolean(((_local10) || (_hasPlugins))); }; this.vars[_arg1] = (this.exposedVars[_arg1] = _arg2); } override public function initTweenVals():void{ var _local1:int; var _local2:int; var _local3:String; var _local4:String; var _local5:Array; var _local6:Object; var _local7:TweenInfo; if (((!((this.exposedVars.startAt == null))) && (!((this.delay == 0))))){ this.exposedVars.startAt.overwrite = 0; new TweenMax(this.target, 0, this.exposedVars.startAt); }; super.initTweenVals(); if ((((this.exposedVars.roundProps is Array)) && (!((TweenLite.plugins.roundProps == null))))){ _local5 = this.exposedVars.roundProps; _local1 = (_local5.length - 1); while (_local1 > -1) { _local3 = _local5[_local1]; _local2 = (this.tweens.length - 1); while (_local2 > -1) { _local7 = this.tweens[_local2]; if (_local7.name == _local3){ if (_local7.isPlugin){ _local7.target.round = true; } else { if (_local6 == null){ _local6 = new TweenLite.plugins.roundProps(); _local6.add(_local7.target, _local3, _local7.start, _local7.change); _hasPlugins = true; this.tweens[_local2] = new TweenInfo(_local6, "changeFactor", 0, 1, _local3, true); } else { _local6.add(_local7.target, _local3, _local7.start, _local7.change); this.tweens.splice(_local2, 1); }; }; } else { if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){ _local4 = ((" " + _local7.target.overwriteProps.join(" ")) + " "); if (_local4.indexOf(((" " + _local3) + " ")) != -1){ _local7.target.round = true; }; }; }; _local2--; }; _local1--; }; }; } public function restart(_arg1:Boolean=false):void{ if (_arg1){ this.initTime = currentTime; this.startTime = (currentTime + (this.delay * (1000 / this.combinedTimeScale))); } else { this.startTime = currentTime; this.initTime = (currentTime - (this.delay * (1000 / this.combinedTimeScale))); }; _repeatCount = 0; if (this.target != this.vars.onComplete){ render(this.startTime); }; this.pauseTime = NaN; _pausedTweens[this] = null; delete _pausedTweens[this]; this.enabled = true; } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher != null){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (_dispatcher == null){ initDispatcher(); }; if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){ this.vars.onUpdate = onUpdateDispatcher; _hasUpdate = true; }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } protected function adjustStartValues():void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:TweenInfo; var _local6:int; var _local1:Number = this.progress; if (_local1 != 0){ _local2 = this.ease(_local1, 0, 1, 1); _local3 = (1 / (1 - _local2)); _local6 = (this.tweens.length - 1); while (_local6 > -1) { _local5 = this.tweens[_local6]; _local4 = (_local5.start + _local5.change); if (_local5.isPlugin){ _local5.change = ((_local4 - _local2) * _local3); } else { _local5.change = ((_local4 - _local5.target[_local5.property]) * _local3); }; _local5.start = (_local4 - _local5.change); _local6--; }; }; } override public function render(_arg1:uint):void{ var _local3:Number; var _local4:TweenInfo; var _local5:int; var _local2:Number = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0; } else { _local3 = this.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change)); _local5--; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } protected function initDispatcher():void{ var _local1:Object; var _local2:String; if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); _callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete}; if (this.vars.isTV == true){ this.vars = this.vars.clone(); } else { _local1 = {}; for (_local2 in this.vars) { _local1[_local2] = this.vars[_local2]; }; this.vars = _local1; }; this.vars.onStart = onStartDispatcher; this.vars.onComplete = onCompleteDispatcher; if ((this.vars.onStartListener is Function)){ _dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true); }; if ((this.vars.onUpdateListener is Function)){ _dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true); this.vars.onUpdate = onUpdateDispatcher; _hasUpdate = true; }; if ((this.vars.onCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true); }; }; } public function willTrigger(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.willTrigger(_arg1)); } public function set progress(_arg1:Number):void{ this.startTime = (currentTime - ((this.duration * _arg1) * 1000)); this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); if (!this.started){ activate(); }; render(currentTime); if (!isNaN(this.pauseTime)){ this.pauseTime = currentTime; this.startTime = 999999999999999; this.active = false; }; } public function reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{ this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease; var _local3:Number = this.progress; if (((_arg1) && ((_local3 > 0)))){ this.startTime = (currentTime - ((((1 - _local3) * this.duration) * 1000) / this.combinedTimeScale)); this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); }; if (_arg2 != false){ if (_local3 < 1){ resume(); } else { restart(); }; }; } protected function onUpdateDispatcher(... _args):void{ if (_callbacks.onUpdate != null){ _callbacks.onUpdate.apply(null, this.vars.onUpdateParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); } public function set paused(_arg1:Boolean):void{ if (_arg1){ pause(); } else { resume(); }; } public function resume():void{ this.enabled = true; if (!isNaN(this.pauseTime)){ this.initTime = (this.initTime + (currentTime - this.pauseTime)); this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale))); this.pauseTime = NaN; if (((!(this.started)) && ((currentTime >= this.startTime)))){ activate(); } else { this.active = this.started; }; _pausedTweens[this] = null; delete _pausedTweens[this]; }; } public function get paused():Boolean{ return (!(isNaN(this.pauseTime))); } public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4)); } public function killProperties(_arg1:Array):void{ var _local3:int; var _local2:Object = {}; _local3 = (_arg1.length - 1); while (_local3 > -1) { _local2[_arg1[_local3]] = true; _local3--; }; killVars(_local2); } public function hasEventListener(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.hasEventListener(_arg1)); } public function pause():void{ if (isNaN(this.pauseTime)){ this.pauseTime = currentTime; this.startTime = 999999999999999; this.enabled = false; _pausedTweens[this] = this; }; } override public function complete(_arg1:Boolean=false):void{ if (((((!(isNaN(this.vars.yoyo))) && ((((_repeatCount < this.vars.yoyo)) || ((this.vars.yoyo == 0)))))) || (((!(isNaN(this.vars.loop))) && ((((_repeatCount < this.vars.loop)) || ((this.vars.loop == 0)))))))){ _repeatCount++; if (!isNaN(this.vars.yoyo)){ this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease; }; this.startTime = (_arg1) ? (this.startTime + (this.duration * (1000 / this.combinedTimeScale))) : currentTime; this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); } else { if (this.vars.persist == true){ pause(); }; }; super.complete(_arg1); } public function set timeScale(_arg1:Number):void{ if (_arg1 < 1E-5){ _arg1 = (_timeScale = 1E-5); } else { _timeScale = _arg1; _arg1 = (_arg1 * _globalTimeScale); }; this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1))); if (this.startTime != 999999999999999){ this.startTime = (this.initTime + (this.delay * (1000 / _arg1))); }; this.combinedTimeScale = _arg1; } public function invalidate(_arg1:Boolean=true):void{ var _local2:Number; if (this.initted){ _local2 = this.progress; if (((!(_arg1)) && (!((_local2 == 0))))){ this.progress = 0; }; this.tweens = []; _hasPlugins = false; this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars; initTweenVals(); _timeScale = ((this.vars.timeScale) || (1)); this.combinedTimeScale = (_timeScale * _globalTimeScale); this.delay = ((this.vars.delay) || (0)); if (isNaN(this.pauseTime)){ this.startTime = (this.initTime + ((this.delay * 1000) / this.combinedTimeScale)); }; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ if (_dispatcher != null){ this.vars.onStart = _callbacks.onStart; this.vars.onUpdate = _callbacks.onUpdate; this.vars.onComplete = _callbacks.onComplete; _dispatcher = null; }; initDispatcher(); }; if (_local2 != 0){ if (_arg1){ adjustStartValues(); } else { this.progress = _local2; }; }; }; } public function get timeScale():Number{ return (_timeScale); } protected function onCompleteDispatcher(... _args):void{ if (_callbacks.onComplete != null){ _callbacks.onComplete.apply(null, this.vars.onCompleteParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); } public static function set globalTimeScale(_arg1:Number):void{ setGlobalTimeScale(_arg1); } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(true, _arg1, _arg2); } public static function killAllDelayedCalls(_arg1:Boolean=false):void{ killAll(_arg1, false, true); } public static function setGlobalTimeScale(_arg1:Number):void{ var _local3:int; var _local4:Array; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; var _local2:Dictionary = masterList; _globalTimeScale = _arg1; for each (_local4 in _local2) { _local3 = (_local4.length - 1); while (_local3 > -1) { if ((_local4[_local3] is TweenMax)){ _local4[_local3].timeScale = (_local4[_local3].timeScale * 1); }; _local3--; }; }; } public static function get globalTimeScale():Number{ return (_globalTimeScale); } public static function getTweensOf(_arg1:Object):Array{ var _local4:TweenLite; var _local5:int; var _local2:Array = masterList[_arg1]; var _local3:Array = []; if (_local2 != null){ _local5 = (_local2.length - 1); while (_local5 > -1) { if (!_local2[_local5].gc){ _local3[_local3.length] = _local2[_local5]; }; _local5--; }; }; for each (_local4 in _pausedTweens) { if (_local4.target == _arg1){ _local3[_local3.length] = _local4; }; }; return (_local3); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{ return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0})); } public static function isTweening(_arg1:Object):Boolean{ var _local2:Array = getTweensOf(_arg1); var _local3:int = (_local2.length - 1); while (_local3 > -1) { if (((((_local2[_local3].active) || ((_local2[_local3].startTime == currentTime)))) && (!(_local2[_local3].gc)))){ return (true); }; _local3--; }; return (false); } public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{ var _local5:Boolean; var _local4:Array = getAllTweens(); var _local6:int = (_local4.length - 1); while (_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local4[_local6] is TweenMax)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){ _local4[_local6].paused = _arg1; }; _local6--; }; } public static function killAllTweens(_arg1:Boolean=false):void{ killAll(_arg1, true, false); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3.runBackwards = true; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{ var _local5:Boolean; var _local6:int; var _local4:Array = getAllTweens(); _local6 = (_local4.length - 1); while (_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ if (_arg1){ _local4[_local6].complete(false); _local4[_local6].clear(); } else { TweenLite.removeTween(_local4[_local6], true); }; }; _local6--; }; } public static function getAllTweens():Array{ var _local3:Array; var _local4:int; var _local5:TweenLite; var _local1:Dictionary = masterList; var _local2:Array = []; for each (_local3 in _local1) { _local4 = (_local3.length - 1); while (_local4 > -1) { if (!_local3[_local4].gc){ _local2[_local2.length] = _local3[_local4]; }; _local4--; }; }; for each (_local5 in _pausedTweens) { _local2[_local2.length] = _local5; }; return (_local2); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(false, _arg1, _arg2); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ return (new TweenMax(_arg1, _arg2, _arg3)); } } }//package gs
Section 66
//ani_noe_cook_120 (noelia_chef2_fla.ani_noe_cook_120) package noelia_chef2_fla { import flash.events.*; import flash.display.*; import flash.utils.*; public dynamic class ani_noe_cook_120 extends MovieClip { public var timer:Timer; public function ani_noe_cook_120(){ addFrameScript(342, frame343, 396, frame397, 617, frame618); } function frame618(){ stop(); timer = new Timer(1000, 5); timer.start(); timer.addEventListener(TimerEvent.TIMER_COMPLETE, complete2); } public function completeHandler(_arg1:TimerEvent){ gotoAndPlay(345); } function frame397(){ stop(); timer = new Timer(1000, 10); timer.start(); timer.addEventListener(TimerEvent.TIMER_COMPLETE, complete1); } function frame343(){ stop(); timer = new Timer(1000, 10); timer.start(); timer.addEventListener(TimerEvent.TIMER_COMPLETE, completeHandler); } public function complete1(_arg1:TimerEvent){ gotoAndPlay(398); } public function complete2(_arg1:TimerEvent){ gotoAndPlay(619); } } }//package noelia_chef2_fla
Section 67
//cartasportada_152 (noelia_chef2_fla.cartasportada_152) package noelia_chef2_fla { import flash.display.*; public dynamic class cartasportada_152 extends MovieClip { public function cartasportada_152(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package noelia_chef2_fla
Section 68
//cerrar_mc_96 (noelia_chef2_fla.cerrar_mc_96) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class cerrar_mc_96 extends MovieClip { public var textoCerrar:TextField; public function cerrar_mc_96(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoCerrar); } } }//package noelia_chef2_fla
Section 69
//cerrar_mc_over_97 (noelia_chef2_fla.cerrar_mc_over_97) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class cerrar_mc_over_97 extends MovieClip { public var textoCerrar:TextField; public function cerrar_mc_over_97(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoCerrar); } } }//package noelia_chef2_fla
Section 70
//continuar_over_60 (noelia_chef2_fla.continuar_over_60) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class continuar_over_60 extends MovieClip { public var textoContinuar:TextField; public function continuar_over_60(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoContinuar); } } }//package noelia_chef2_fla
Section 71
//descargar_mc_43 (noelia_chef2_fla.descargar_mc_43) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class descargar_mc_43 extends MovieClip { public var descargar:TextField; public function descargar_mc_43(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(descargar); } } }//package noelia_chef2_fla
Section 72
//descargar_mc_over_44 (noelia_chef2_fla.descargar_mc_over_44) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class descargar_mc_over_44 extends MovieClip { public var descargar:TextField; public function descargar_mc_over_44(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(descargar); } } }//package noelia_chef2_fla
Section 73
//enviarPuntaje_mc_50 (noelia_chef2_fla.enviarPuntaje_mc_50) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class enviarPuntaje_mc_50 extends MovieClip { public var enviarPuntaje:TextField; public function enviarPuntaje_mc_50(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(enviarPuntaje); } } }//package noelia_chef2_fla
Section 74
//enviarPuntaje_mc_over_51 (noelia_chef2_fla.enviarPuntaje_mc_over_51) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class enviarPuntaje_mc_over_51 extends MovieClip { public var enviarPuntaje:TextField; public function enviarPuntaje_mc_over_51(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(enviarPuntaje); } } }//package noelia_chef2_fla
Section 75
//inst1_mc_64 (noelia_chef2_fla.inst1_mc_64) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class inst1_mc_64 extends MovieClip { public var textoIns1:TextField; public function inst1_mc_64(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoIns1); } } }//package noelia_chef2_fla
Section 76
//inst2_mc_68 (noelia_chef2_fla.inst2_mc_68) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class inst2_mc_68 extends MovieClip { public var textoIns2:TextField; public function inst2_mc_68(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoIns2); } } }//package noelia_chef2_fla
Section 77
//instrucciones_mc_62 (noelia_chef2_fla.instrucciones_mc_62) package noelia_chef2_fla { import flash.display.*; public dynamic class instrucciones_mc_62 extends MovieClip { public var btnJugar:SimpleButton; public function instrucciones_mc_62(){ addFrameScript(19, frame20, 40, frame41); } function frame20(){ stop(); } function frame41(){ stop(); } } }//package noelia_chef2_fla
Section 78
//jugar_mc_66 (noelia_chef2_fla.jugar_mc_66) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class jugar_mc_66 extends MovieClip { public var jugar:TextField; public function jugar_mc_66(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(jugar); } } }//package noelia_chef2_fla
Section 79
//jugar_mc_over_67 (noelia_chef2_fla.jugar_mc_over_67) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class jugar_mc_over_67 extends MovieClip { public var jugar:TextField; public function jugar_mc_over_67(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(jugar); } } }//package noelia_chef2_fla
Section 80
//jugarNuevo_over_47 (noelia_chef2_fla.jugarNuevo_over_47) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class jugarNuevo_over_47 extends MovieClip { public var jugarNuevo:TextField; public function jugarNuevo_over_47(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(jugarNuevo); } } }//package noelia_chef2_fla
Section 81
//masJuegos_mc_40 (noelia_chef2_fla.masJuegos_mc_40) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class masJuegos_mc_40 extends MovieClip { public var masJuegos:TextField; public function masJuegos_mc_40(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(masJuegos); } } }//package noelia_chef2_fla
Section 82
//masjuegos_mc_over_41 (noelia_chef2_fla.masjuegos_mc_over_41) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class masjuegos_mc_over_41 extends MovieClip { public var masJuegos:TextField; public function masjuegos_mc_over_41(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(masJuegos); } } }//package noelia_chef2_fla
Section 83
//menu_82 (noelia_chef2_fla.menu_82) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class menu_82 extends MovieClip { public var masJuegos:TextField; public function menu_82(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(masJuegos); } } }//package noelia_chef2_fla
Section 84
//menu_jugar_mc_over_79 (noelia_chef2_fla.menu_jugar_mc_over_79) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class menu_jugar_mc_over_79 extends MovieClip { public var jugar:TextField; public function menu_jugar_mc_over_79(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(jugar); } } }//package noelia_chef2_fla
Section 85
//menu_masjuegos_mc_81 (noelia_chef2_fla.menu_masjuegos_mc_81) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class menu_masjuegos_mc_81 extends MovieClip { public var masJuegos:TextField; public function menu_masjuegos_mc_81(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(masJuegos); } } }//package noelia_chef2_fla
Section 86
//menudescargar_mc_84 (noelia_chef2_fla.menudescargar_mc_84) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class menudescargar_mc_84 extends MovieClip { public var descargar:TextField; public function menudescargar_mc_84(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(descargar); } } }//package noelia_chef2_fla
Section 87
//menudescargar_over_85 (noelia_chef2_fla.menudescargar_over_85) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class menudescargar_over_85 extends MovieClip { public var descargar:TextField; public function menudescargar_over_85(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(descargar); } } }//package noelia_chef2_fla
Section 88
//menuJugar_mc_78 (noelia_chef2_fla.menuJugar_mc_78) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class menuJugar_mc_78 extends MovieClip { public var jugar:TextField; public function menuJugar_mc_78(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(jugar); } } }//package noelia_chef2_fla
Section 89
//nick_mc_93 (noelia_chef2_fla.nick_mc_93) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class nick_mc_93 extends MovieClip { public var textoNick:TextField; public function nick_mc_93(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoNick); } } }//package noelia_chef2_fla
Section 90
//nivelcompleot_mc_73 (noelia_chef2_fla.nivelcompleot_mc_73) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class nivelcompleot_mc_73 extends MovieClip { public var textoNivel:TextField; public var textoTotal:TextField; public var btnNivel:SimpleButton; public var txtTiempo:TextField; public var textoContinuar:TextField; public var textoScore:TextField; public var txtTotal:TextField; public var textoTime:TextField; public var txtPuntos:TextField; public function nivelcompleot_mc_73(){ addFrameScript(0, frame1, 19, frame20, 40, frame41); } function frame41(){ stop(); } function frame1(){ Traductor.pedir(this.textoScore); Traductor.pedir(this.textoTime); Traductor.pedir(this.textoTotal); Traductor.pedir(this.textoNivel); Traductor.pedir(this.textoContinuar); } function frame20(){ stop(); } } }//package noelia_chef2_fla
Section 91
//noelia_mc2_108 (noelia_chef2_fla.noelia_mc2_108) package noelia_chef2_fla { import flash.events.*; import flash.display.*; public dynamic class noelia_mc2_108 extends MovieClip { public var btnNoelia:SimpleButton; public function noelia_mc2_108(){ addFrameScript(0, frame1); } function frame1(){ btnNoelia.addEventListener(MouseEvent.MOUSE_DOWN, Traductor.masJuegos); } } }//package noelia_chef2_fla
Section 92
//pausa__mc_146 (noelia_chef2_fla.pausa__mc_146) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class pausa__mc_146 extends MovieClip { public var textoPausa:TextField; public function pausa__mc_146(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoPausa); } } }//package noelia_chef2_fla
Section 93
//pausa_mc_142 (noelia_chef2_fla.pausa_mc_142) package noelia_chef2_fla { import flash.display.*; public dynamic class pausa_mc_142 extends MovieClip { public function pausa_mc_142(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package noelia_chef2_fla
Section 94
//pausaChico_mc_145 (noelia_chef2_fla.pausaChico_mc_145) package noelia_chef2_fla { import flash.display.*; public dynamic class pausaChico_mc_145 extends MovieClip { public function pausaChico_mc_145(){ addFrameScript(9, frame10); } function frame10(){ stop(); } } }//package noelia_chef2_fla
Section 95
//pausaGrande_mc_53 (noelia_chef2_fla.pausaGrande_mc_53) package noelia_chef2_fla { import flash.display.*; public dynamic class pausaGrande_mc_53 extends MovieClip { public function pausaGrande_mc_53(){ addFrameScript(9, frame10); } function frame10(){ stop(); } } }//package noelia_chef2_fla
Section 96
//pausaGrande2_mc_54 (noelia_chef2_fla.pausaGrande2_mc_54) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class pausaGrande2_mc_54 extends MovieClip { public var textoPausa:TextField; public function pausaGrande2_mc_54(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoPausa); } } }//package noelia_chef2_fla
Section 97
//play__mc_149 (noelia_chef2_fla.play__mc_149) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class play__mc_149 extends MovieClip { public var textoPlay:TextField; public function play__mc_149(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoPlay); } } }//package noelia_chef2_fla
Section 98
//pop_up_99 (noelia_chef2_fla.pop_up_99) package noelia_chef2_fla { import flash.display.*; public dynamic class pop_up_99 extends MovieClip { public var texto2:MovieClip; public var texto1:MovieClip; public function pop_up_99(){ addFrameScript(19, frame20, 40, frame41); } function frame41(){ stop(); } function frame20(){ stop(); } } }//package noelia_chef2_fla
Section 99
//puntaje_mc_94 (noelia_chef2_fla.puntaje_mc_94) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class puntaje_mc_94 extends MovieClip { public var textoPuntaje:TextField; public function puntaje_mc_94(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoPuntaje); } } }//package noelia_chef2_fla
Section 100
//restan_mc_57 (noelia_chef2_fla.restan_mc_57) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class restan_mc_57 extends MovieClip { public var txtCont:TextField; public var textoRestan:TextField; public var textoContinuar2:TextField; public function restan_mc_57(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoRestan); Traductor.pedir(textoContinuar2); } } }//package noelia_chef2_fla
Section 101
//Symbol1_59 (noelia_chef2_fla.Symbol1_59) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class Symbol1_59 extends MovieClip { public var textoContinuar:TextField; public function Symbol1_59(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoContinuar); } } }//package noelia_chef2_fla
Section 102
//textJugarBORRAR_46 (noelia_chef2_fla.textJugarBORRAR_46) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class textJugarBORRAR_46 extends MovieClip { public var jugarNuevo:TextField; public function textJugarBORRAR_46(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(jugarNuevo); } } }//package noelia_chef2_fla
Section 103
//textoPlay_148 (noelia_chef2_fla.textoPlay_148) package noelia_chef2_fla { import flash.display.*; public dynamic class textoPlay_148 extends MovieClip { public function textoPlay_148(){ addFrameScript(9, frame10); } function frame10(){ stop(); } } }//package noelia_chef2_fla
Section 104
//textos_final_100 (noelia_chef2_fla.textos_final_100) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class textos_final_100 extends MovieClip { public var textoFelicita:TextField; public var textoHasganado:TextField; public var txtNombre:TextField; public function textos_final_100(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoFelicita); Traductor.pedir(textoHasganado); Traductor.pedir(textoFelicita); Traductor.pedir(textoFelicita); Traductor.pedir(textoFelicita); Traductor.pedir(txtNombre); } } }//package noelia_chef2_fla
Section 105
//top10_mc_92 (noelia_chef2_fla.top10_mc_92) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class top10_mc_92 extends MovieClip { public var textoTop:TextField; public function top10_mc_92(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoTop); } } }//package noelia_chef2_fla
Section 106
//topTEN_91 (noelia_chef2_fla.topTEN_91) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class topTEN_91 extends MovieClip { public var btnJugar:SimpleButton; public var textoNum:TextField; public var btnMasJuegos:SimpleButton; public var btnCerrar:SimpleButton; public function topTEN_91(){ addFrameScript(19, frame20, 40, frame41); } function frame41(){ stop(); } function frame20(){ stop(); } } }//package noelia_chef2_fla
Section 107
//txtinst_mc_63 (noelia_chef2_fla.txtinst_mc_63) package noelia_chef2_fla { import flash.display.*; import flash.text.*; public dynamic class txtinst_mc_63 extends MovieClip { public var textoInstrucciones:TextField; public function txtinst_mc_63(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoInstrucciones); } } }//package noelia_chef2_fla
Section 108
//PanelJuego (paneles.PanelJuego) package paneles { import flash.events.*; import flash.display.*; import gs.*; import flash.geom.*; import flash.filters.*; import fl.data.*; import flash.text.*; import flash.utils.*; import flash.net.*; import flash.media.*; import flash.ui.*; import gs.easing.*; public class PanelJuego extends MovieClip { public var puntosFinal:PuntajesFinal; public var soundVolume:Number; public var fondo:Fondo; public var track_mc:MovieClip; private var cardsLeft:uint; public var yPos:Number; var boardH:int; var manejaRecords:ManejaRecords; var boardW:int; public var cont:ContenedorPiezas; var tiempoP; var deshab:Deshabilitado; public var textoNivelSolo; var sonidoNivel:SonidoNivel; public var timeOut:GameOver; public var soundVol:SoundTransform; public var btnMenos; public var inst:Instrucciones; public var msgComienzaNivel:ComienzaNivel; var sonidoGO:SonidoGOver; private var timer:Timer; var nivelContinuar:int; var pausePosition:int; var recordsDB:DataProvider; private var cartas:int; public var seg:int; public var cursor:Cursor; public var btnMas; public var nivel1:TextField; var filtros:Array; var c:Card; public var posX;// = 65 public var posY;// = 65 var num:int;// = 11 public var puntajeSuf:int; var inicioC:int; var recordsXML:XML; public var tiempo:TextField; var sonidoAcierta:SonidoAcierta; private var secondCard:Card; public var heightPos:Number; public var widthPos:Number; private var timerP:Timer; public var slider_mc:MovieClip; public var cardlist:Array; public var esSuf:Boolean; var canalMusica:SoundChannel; private var timerNivel:Timer; public var xPos:Number; public var bounds:Rectangle; public var msgCompleto2:NivelCompleto2; public var textoTime; public var textoScore; public var panelFinal:Final; var musica1:MusicaJuego; var musica2:MusicaJuego2; var sonidoConteo:SonidoConteo; public var trackBounds:Rectangle; var contar:Boolean;// = false public var msgCompleto:NivelCompleto; public var gameOver:GameOver2; private var firstCard:Card; var sombra:DropShadowFilter; public var puntaje:TextField; public var btnPausa1; public var btnPausa; private static const totalNiveles:Number = 18; private static const cardHorizontalSpacing:Number = 65; private static const boardOffsetY:Number = 36; private static const boardOffsetX:Number = 24; public static const puntosAcierto:int = 5; private static const cardVerticalSpacing:Number = 65; public static var boardWidth:uint = 3; public static var nivel:int = 0; public static var inicioCarta:int = 0; public static var continua:int = 2; public static var esFinal:Boolean = false; public static var boardHeight:uint = 4; public static var puntos:int; public static var finCarta:int = 18; public function PanelJuego(){ addFrameScript(0, frame1); musica1 = new MusicaJuego(); musica2 = new MusicaJuego2(); sonidoNivel = new SonidoNivel(); sonidoAcierta = new SonidoAcierta(); sonidoGO = new SonidoGOver(); sonidoConteo = new SonidoConteo(); canalMusica = new SoundChannel(); msgCompleto = new NivelCompleto(); msgCompleto2 = new NivelCompleto2(); msgComienzaNivel = new ComienzaNivel(); manejaRecords = new ManejaRecords(); manejaRecords.variablesSubir.j = 10; Traductor.pedir(textoScore); Traductor.pedir(textoTime); Traductor.pedir(textoNivelSolo); btnPausa.addEventListener(MouseEvent.MOUSE_DOWN, pausarJuego); } function pausarJuego(_arg1:MouseEvent){ var _local2:*; if (contar == true){ timerP.stop(); pausePosition = canalMusica.position; canalMusica.stop(); contar = false; btnPausa.gotoAndStop(2); deshab = new Deshabilitado(); addChild(deshab); deshab.cont2.addEventListener(MouseEvent.MOUSE_OVER, cursorSobreMC); } else { _local2 = ((nivel - 1) % 2); canalMusica.stop(); if (_local2 == 0){ canalMusica = musica2.play(pausePosition, 90); } else { canalMusica = musica1.play(pausePosition, 90); }; btnPausa.gotoAndStop(1); removerDesah(); contar = true; timerP.start(); }; } function salirMC(_arg1:MouseEvent){ Mouse.show(); removeChild(cursor); stage.removeEventListener(MouseEvent.MOUSE_MOVE, moverMouse); if (cont != null){ cont.removeEventListener(MouseEvent.MOUSE_OUT, salirMC); }; if (deshab != null){ deshab.cont2.removeEventListener(MouseEvent.MOUSE_OUT, salirMC); }; } public function clockTime(_arg1:int){ var _local2:int = Math.floor(_arg1); var _local3:int = Math.floor((_arg1 / 60)); _local2 = (_local2 - (_local3 * 60)); var _local4:String = ((_local3 + ":") + String((_local2 + 100)).substr(1, 2)); return (_local4); } function removerSoloFinal(_arg1:TimerEvent){ removeChild(panelFinal); puntosFinal = new PuntajesFinal(); addChild(puntosFinal); puntosFinal.top.btnJugar.visible = true; puntosFinal.top.btnCerrar.visible = false; puntosFinal.top.btnJugar.addEventListener(MouseEvent.MOUSE_DOWN, jugardeNuevo2); } public function setVolume(_arg1:Event):void{ soundVolume = (track_mc.slider_mc.x / widthPos); soundVol.volume = soundVolume; SoundMixer.soundTransform = soundVol; } public function enviarPuntaje(_arg1:MouseEvent){ var _local2:* = panelFinal.pop.texto1.txtNombre; if (_local2.text != ""){ if (((((((!((_local2.text == "Escribe tu nombre"))) && (!((_local2.text == "Type your name"))))) && (!((_local2.text == "Entrez votre nom"))))) && (!((_local2.text == "Escreva seu nome"))))){ manejaRecords.variablesSubir.nick = _local2.text; manejaRecords.variablesSubir.puntaje = puntos; manejaRecords.subirRecord(); panelFinal.pop.gotoAndPlay(21); crearTimer(1000, 1, removerSoloFinal); }; }; } function actualizarPuntaje(){ filtros = new Array(); sombra = new DropShadowFilter(0, 45, 0xFFFF00, 1, 10, 10, 5, 1); filtros.push(sombra); puntaje.filters = filtros; puntos = (puntos + puntosAcierto); puntaje.text = String(puntos); crearTimer(1000, 1, sacarEfecto); } function mostrarNivel(_arg1:TimerEvent){ timerP.removeEventListener(TimerEvent.TIMER_COMPLETE, terminaJuego); var _local2:TweenLite = new TweenLite(canalMusica, 5, {volume:0}); removerDesah(); addChild(msgCompleto); sonidoNivel.play(0, 1); msgCompleto.nivel1.text = String((nivel - 1)); crearTimer(1000, 2, mostrarNivel2); } public function comienzaJuego(_arg1:TimerEvent){ var _local2:uint; var _local3:*; var _local4:uint; if ((nivel % 2) == 0){ canalMusica = musica2.play(0, 90); } else { canalMusica = musica1.play(0, 90); }; if (nivel < totalNiveles){ removeChild(msgComienzaNivel); }; controlarTiempo(); if (nivel == 1){ puntaje.text = String(puntos); tiempo.text = clockTime(puntos); }; nivel1.text = String(nivel); cont = new ContenedorPiezas(); cartas = 0; cardlist = new Array(); cont.addEventListener(MouseEvent.MOUSE_OVER, cursorSobreMC); if (nivel < totalNiveles){ addChildAt(cont, 1); if (fondo != null){ removeChild(fondo); fondo = null; }; if (nivel < 5){ fondo = new Fondo(); addChildAt(fondo, 1); }; if (boardWidth < 6){ boardWidth = (boardWidth + 1); if (boardWidth == 5){ posX = (65 / 2); posY = 65; }; if (boardWidth == 4){ posX = 65; posY = 65; }; }; if (boardWidth == 6){ posX = 0; posY = 0; if (boardHeight < 6){ if (boardHeight == 4){ posY = 65; }; if (boardHeight == 5){ posY = (65 / 2); }; }; }; cont.x = (posX + boardOffsetX); cont.y = (posY + boardOffsetY); finCarta = (((boardWidth * boardHeight) / 2) + inicioCarta); boardW = boardWidth; boardH = boardHeight; _local2 = inicioCarta; while (_local2 < finCarta) { cardlist.push(_local2); cardlist.push(_local2); _local2++; }; if (nivel > 10){ inicioCarta = (inicioCarta + 6); } else { inicioCarta = (inicioCarta + 2); }; _local2 = 0; while (_local2 < boardWidth) { _local3 = 0; while (_local3 < boardHeight) { c = new Card(); c.stop(); c.x = ((_local2 * cardHorizontalSpacing) + boardOffsetX); c.y = ((_local3 * cardVerticalSpacing) + boardOffsetY); _local4 = Math.floor((Math.random() * cardlist.length)); c.cardface = cardlist[_local4]; cardlist.splice(_local4, 1); c.buttonMode = true; c.stop(); c.addEventListener(MouseEvent.CLICK, clickCard); cont.addChild(c); cartas++; _local3++; }; _local2++; }; }; if (boardWidth == 6){ if (boardHeight < 6){ boardHeight = (boardHeight + 1); }; }; nivel++; } public function jugarNuevo(_arg1:MouseEvent){ var e = _arg1; setValores(); try { if (gameOver != null){ removeChild(gameOver); gameOver = null; }; } catch(e:MouseEvent) { trace(("1 " + e)); }; try { if (timeOut != null){ removeChild(timeOut); timeOut = null; }; } catch(e:MouseEvent) { trace(("2 " + e)); }; start(); } function sacarEfecto(_arg1:TimerEvent):void{ filtros = new Array(); sombra = new DropShadowFilter(0, 45, 0, 1, 5, 5, 5, 1); filtros.push(sombra); puntaje.filters = filtros; } public function dragSlider(_arg1:MouseEvent):void{ trace(("x track " + track_mc.slider_mc.x)); _arg1.target.startDrag(false, bounds); addEventListener(Event.ENTER_FRAME, setVolume); } function mostrarNivel2(_arg1:TimerEvent){ removeChild(msgCompleto); addChild(msgCompleto2); msgCompleto2.perg.txtPuntos.text = String(puntos); var _local2:Number = (seg / 2); var _local3:Number = (seg / 1.5); var _local4:Number = (seg / 1.2); trace(("tiempoP " + tiempoP)); trace(("puntos1 -> " + puntos)); puntos = (puntos + tiempoP); trace(("puntos2 -> " + puntos)); tiempoP = (seg - tiempoP); if (tiempoP < _local2){ puntos = (puntos + 50); } else { if (tiempoP < _local3){ puntos = (puntos + 20); } else { if (tiempoP < _local4){ puntos = (puntos + 10); }; }; }; trace(("puntos3 -> " + puntos)); puntaje.text = String(puntos); msgCompleto2.perg.gotoAndPlay(1); msgCompleto2.perg.txtTiempo.text = clockTime(tiempoP); timerNivel = new Timer(20, puntos); timerNivel.addEventListener(TimerEvent.TIMER, mostrandoPuntos); timerNivel.addEventListener(TimerEvent.TIMER_COMPLETE, sonidoC); timerNivel.start(); msgCompleto2.perg.btnNivel.addEventListener(MouseEvent.MOUSE_DOWN, aumentarNivel); } public function muestraPanelFinal(){ manejaRecords = new ManejaRecords(); manejaRecords.variablesBajar.tabla = "juego_noelia_chef"; manejaRecords.variablesBajar.orden = 0; manejaRecords.bajarRecords(); manejaRecords.bajo = bajo; } function cursorSobreMC(_arg1:MouseEvent){ Mouse.hide(); cursor = new Cursor(); addChild(cursor); cursor.x = mouseX; cursor.y = mouseY; cursor.mouseEnabled = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, moverMouse); if (cont != null){ cont.addEventListener(MouseEvent.MOUSE_OUT, salirMC); }; if (deshab != null){ deshab.cont2.addEventListener(MouseEvent.MOUSE_OUT, salirMC); }; } function verInicioC(){ if (nivel == 1){ inicioCarta = 0; }; if (nivel == 2){ inicioCarta = 2; }; if (nivel == 3){ inicioCarta = 4; }; if (nivel == 4){ inicioCarta = 6; }; if (nivel == 5){ inicioCarta = 8; }; if (nivel == 6){ inicioCarta = 10; }; if (nivel == 7){ inicioCarta = 12; }; if (nivel == 8){ inicioCarta = 14; }; if (nivel == 9){ inicioCarta = 16; }; if (nivel == 10){ inicioCarta = 18; }; if (nivel == 11){ inicioCarta = 20; }; if (nivel == 12){ inicioCarta = 26; }; if (nivel == 13){ inicioCarta = 32; }; if (nivel == 14){ inicioCarta = 38; }; if (nivel == 15){ inicioCarta = 44; }; if (nivel == 16){ inicioCarta = 50; }; if (nivel == 17){ inicioCarta = 56; }; } public function start(){ switch (nivel){ case 1: seg = 90; break; case 2: seg = 90; break; case 3: seg = 120; break; case 4: seg = 180; break; case 5: seg = 180; break; default: seg = 240; break; }; if (nivel == 0){ inst = new Instrucciones(); addChild(inst); inst.panel.btnJugar.addEventListener(MouseEvent.MOUSE_DOWN, jugar); nivel++; } else { if (nivel < totalNiveles){ addChild(msgComienzaNivel); msgComienzaNivel.nivel1.text = String(nivel); msgComienzaNivel.textoSegundos.text = String(seg); crearTimer(1000, 2, comienzaJuego); } else { muestraPanelFinal(); }; }; } public function jugardeNuevo(_arg1:MouseEvent){ setValores(); panelFinal.pop.gotoAndPlay(21); crearTimer(1000, 1, removerFinal); } function moverMouse(_arg1:MouseEvent){ cursor.x = mouseX; cursor.y = mouseY; } public function drag1(_arg1:MouseEvent){ if (track_mc.slider_mc.x > 5){ track_mc.slider_mc.x = (track_mc.slider_mc.x - 10); addEventListener(Event.ENTER_FRAME, setVolume); }; } public function drag2(_arg1:MouseEvent){ if (track_mc.slider_mc.x < 110){ track_mc.slider_mc.x = (track_mc.slider_mc.x + 10); addEventListener(Event.ENTER_FRAME, setVolume); }; } function aumentarNivel(_arg1:MouseEvent){ terminaNivel(); timerNivel.removeEventListener(TimerEvent.TIMER, mostrandoPuntos); timerNivel.removeEventListener(TimerEvent.TIMER_COMPLETE, sonidoC); msgCompleto2.perg.gotoAndPlay(21); crearTimer(1000, 1, removerCompleto2); } function removerCompleto2(_arg1:TimerEvent){ removeChild(msgCompleto2); start(); } public function stopSlider(_arg1:MouseEvent):void{ track_mc.slider_mc.stopDrag(); removeEventListener(Event.ENTER_FRAME, setVolume); } function esSuficiente(_arg1){ if (_arg1){ panelFinal = new Final(); panelFinal.pop.texto2.btnJugar.addEventListener(MouseEvent.MOUSE_DOWN, jugardeNuevo); panelFinal.pop.texto2.btnMasJuegos.addEventListener(MouseEvent.MOUSE_DOWN, Traductor.masJuegos); panelFinal.pop.texto2.btnPuntaje.addEventListener(MouseEvent.MOUSE_DOWN, enviarPuntaje); panelFinal.pop.texto1.txtNombre.addEventListener(MouseEvent.MOUSE_DOWN, sacarTexto); addChild(panelFinal); } else { gameOver = new GameOver2(); addChild(gameOver); sonidoGO.play(0, 1); esFinal = true; gameOver.btnEmpezar.addEventListener(MouseEvent.MOUSE_DOWN, jugarNuevo); }; } function controlarTiempo(){ timerP = new Timer(1000, seg); timerP.addEventListener(TimerEvent.TIMER, contando); timerP.addEventListener(TimerEvent.TIMER_COMPLETE, terminaJuego); timerP.start(); } function removerCards(_arg1:TimerEvent){ firstCard.removeEventListener(MouseEvent.CLICK, clickCard); secondCard.removeEventListener(MouseEvent.CLICK, clickCard); firstCard = null; secondCard = null; timer.removeEventListener(TimerEvent.TIMER_COMPLETE, removerCards); } function removerFinal2(_arg1:TimerEvent){ removeChild(puntosFinal); start(); } function frame1(){ soundVol = new SoundTransform(); soundVolume = 1; trackBounds = track_mc.getBounds(track_mc); xPos = trackBounds.x; yPos = trackBounds.y; widthPos = (trackBounds.width - track_mc.slider_mc.width); heightPos = 0; bounds = new Rectangle(xPos, yPos, widthPos, heightPos); track_mc.slider_mc.x = widthPos; track_mc.mouseEnabled = false; track_mc.slider_mc.buttonMode = true; track_mc.slider_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragSlider); try { addEventListener(MouseEvent.MOUSE_UP, stopSlider); } catch(e:TypeError) { trace("2"); }; btnMenos.addEventListener(MouseEvent.MOUSE_DOWN, drag1); btnMas.addEventListener(MouseEvent.MOUSE_DOWN, drag2); } function sonidoC(_arg1:TimerEvent){ sonidoConteo.play(0, 1); } function efectoCarta(_arg1){ var _local2:TweenMax = new TweenMax(_arg1, 0.2, {blurFilter:{blurX:15, blurY:15, quality:2, remove:true}}); } function removerFinal(_arg1:TimerEvent){ removeChild(panelFinal); start(); } public function setValores(){ firstCard = null; secondCard = null; continua = 2; nivel = 1; boardWidth = 3; boardHeight = 4; inicioCarta = 0; puntos = 0; puntaje.text = String(puntos); } function clickCard(_arg1:MouseEvent){ var _local2:Card = (_arg1.currentTarget as Card); if (firstCard == null){ firstCard = _local2; firstCard.startFlip((_local2.cardface + 2)); } else { if ((((secondCard == null)) && (!((firstCard == _local2))))){ secondCard = _local2; secondCard.startFlip((_local2.cardface + 2)); if (firstCard.cardface == secondCard.cardface){ cartas = (cartas - 2); crearTimer(500, 1, efectoCartas); crearTimer(500, 2, efectoCartas); crearTimer(500, 3, removerCards); actualizarPuntaje(); if (cartas == 0){ timerP.reset(); crearTimer(1000, 2, efectoFinal); crearTimer(1000, 3, mostrarNivel); }; } else { crearTimer(1000, 1, reiniciarCards); }; }; }; } function contando(_arg1:TimerEvent){ contar = true; tiempoP = (timerP.repeatCount - timerP.currentCount); tiempo.text = clockTime(tiempoP); } public function mostrarPanelFinal(_arg1:MouseEvent){ removeChild(timeOut); muestraPanelFinal(); } public function jugar(_arg1:MouseEvent){ inst.panel.gotoAndPlay(21); crearTimer(1000, 1, removerInst); SoundMixer.stopAll(); } function sacarTexto(_arg1:MouseEvent){ panelFinal.pop.texto1.txtNombre.text = ""; } public function bajo(_arg1){ recordsXML = new XML(_arg1.data); recordsDB = new DataProvider(recordsXML); puntajeSuf = recordsDB.getItemAt(9).tiempo; if (puntajeSuf > puntos){ esSuf = false; } else { esSuf = true; }; esSuficiente(esSuf); } public function removerInst(_arg1:TimerEvent){ removeChild(inst); inst = null; start(); } function efectoCartas(_arg1:TimerEvent){ efectoCarta(firstCard); efectoCarta(secondCard); sonidoAcierta.play(0, 1); } function reiniciarCards(_arg1:TimerEvent){ firstCard.startFlip(1); secondCard.startFlip(1); firstCard = null; secondCard = null; timer.removeEventListener(TimerEvent.TIMER_COMPLETE, reiniciarCards); } function efectoFinal(_arg1:TimerEvent){ efectoCarta(cont); sonidoAcierta.play(0, 1); } function jugardeNuevo2(_arg1:MouseEvent){ setValores(); puntosFinal.sacarDG(); puntosFinal.top.gotoAndPlay(21); crearTimer(1000, 1, removerFinal2); } function removerDesah(){ if (deshab != null){ removeChild(deshab); deshab = null; }; } function mostrandoPuntos(_arg1:TimerEvent){ msgCompleto2.perg.txtTotal.text = String(timerNivel.currentCount); } public function terminaNivel(){ if (cont != null){ removeChild(cont); cont = null; }; } function irPanelFinal(_arg1:MouseEvent){ removeChild(timeOut); panelFinal = new Final(); panelFinal.pop.texto2.btnJugar.addEventListener(MouseEvent.MOUSE_DOWN, jugardeNuevo); panelFinal.pop.texto2.btnMasJuegos.addEventListener(MouseEvent.MOUSE_DOWN, Traductor.masJuegos); panelFinal.pop.texto2.btnPuntaje.addEventListener(MouseEvent.MOUSE_DOWN, enviarPuntaje); panelFinal.pop.texto1.txtNombre.addEventListener(MouseEvent.MOUSE_DOWN, sacarTexto); addChild(panelFinal); if (nivel < totalNiveles){ trace("es final"); panelFinal.pop.texto1.textoFelicita.visible = false; panelFinal.pop.texto1.textoHasganado.visible = false; panelFinal.pop.texto1.txtNombre.y = (panelFinal.pop.texto1.txtNombre.y - 10); panelFinal.pop.texto2.btnPuntaje.y = (panelFinal.pop.texto2.btnPuntaje.y - 10); }; } function terminaJuego(_arg1:TimerEvent){ terminaNivel(); var _local2:TweenLite = new TweenLite(canalMusica, 5, {volume:0}); sonidoGO.play(0, 1); nivelContinuar = nivel; timeOut = new GameOver(); addChild(timeOut); removerDesah(); timerP.reset(); timeOut.btnEnviarPuntaje.addEventListener(MouseEvent.MOUSE_DOWN, irPanelFinal); timeOut.btnEmpezar.addEventListener(MouseEvent.MOUSE_DOWN, jugarNuevo); if (continua >= 0){ timeOut.txtRestan.txtCont.text = String(continua); timeOut.btnContinuar.addEventListener(MouseEvent.MOUSE_DOWN, continuarJuego); }; timerP.removeEventListener(TimerEvent.TIMER_COMPLETE, terminaJuego); } function continuarJuego(_arg1:MouseEvent){ timeOut.temp.removeEventListener(TimerEvent.TIMER, timeOut.mostrar); timeOut.temp.removeEventListener(TimerEvent.TIMER_COMPLETE, timeOut.remover); continua = (continua - 1); puntos = (puntos - (((boardWidth * boardHeight) / 2) * 5)); if (puntos < 0){ puntos = 0; }; puntaje.text = String(puntos); firstCard = null; secondCard = null; nivel = (nivelContinuar - 1); boardWidth = (boardW - 1); boardHeight = boardH; verInicioC(); removeChild(timeOut); start(); } function crearTimer(_arg1:int, _arg2:int, _arg3){ timer = new Timer(_arg1, _arg2); timer.addEventListener(TimerEvent.TIMER_COMPLETE, _arg3); timer.start(); } } }//package paneles
Section 109
//PanelMenu (paneles.PanelMenu) package paneles { import flash.events.*; import flash.display.*; import gs.*; import eventos.*; import flash.media.*; public class PanelMenu extends MovieClip { public var btnTopTen:SimpleButton; public var botonesMenu:MovieClip; public var btnMasJuegos:SimpleButton; public var btnDescargar:SimpleButton; public var btnJugar:SimpleButton; public var puntajesFinal:PuntajesFinal; var sMusica:MusicaMenu; var canalMusica:SoundChannel; public var btnNoelia:SimpleButton; public function PanelMenu(){ botonesMenu = new MovieClip(); super(); addFrameScript(0, frame1, 449, frame450); sMusica = new MusicaMenu(); canalMusica = new SoundChannel(); iniciaMusica(); botonesMenu.btnJugar.addEventListener(MouseEvent.CLICK, Jugar); botonesMenu.btnDescargar.addEventListener(MouseEvent.CLICK, Traductor.descargarJuego); botonesMenu.btnMasJuegos.addEventListener(MouseEvent.CLICK, Traductor.masJuegos); botonesMenu.btnTopTen.addEventListener(MouseEvent.CLICK, mostrarPuntajes); } public function mostrarPuntajes(_arg1:MouseEvent){ puntajesFinal = new PuntajesFinal(); addChild(puntajesFinal); } function frame450(){ stop(); } function Instrucciones(_arg1:MouseEvent){ dispatchEvent(new EventoExtra(EventoExtra.ACCION_TERMINADA, {panel:"3"})); } function Jugar(_arg1:MouseEvent){ dispatchEvent(new EventoExtra(EventoExtra.ACCION_TERMINADA, {panel:"2"})); } public function iniciaMusica(){ canalMusica = sMusica.play(); } function frame1(){ } public function detieneMusica(){ var _local1:TweenLite = new TweenLite(canalMusica, 15, {volume:0}); } public function removerPuntajes(){ removeChild(puntajesFinal); } } }//package paneles
Section 110
//Reloj (utiles.Reloj) package utiles { import flash.events.*; import flash.utils.*; public class Reloj { public var funcion:Function; public var timer:Timer; public var tiempo:int; public function Reloj(_arg1:int, _arg2:Function):void{ funcion = _arg2; tiempo = _arg1; timer = new Timer(tiempo, 0); timer.addEventListener(TimerEvent.TIMER, tic); timer.start(); } public function deconstructor(){ if (timer != null){ timer.stop(); timer.removeEventListener(TimerEvent.TIMER, tic); timer = null; }; funcion = null; } private function tic(_arg1:TimerEvent){ funcion(); } } }//package utiles
Section 111
//banner (banner) package { import flash.events.*; import flash.display.*; public dynamic class banner extends MovieClip { public var btnNoelia:SimpleButton; public function banner(){ addFrameScript(0, frame1); } function frame1(){ btnNoelia.addEventListener(MouseEvent.MOUSE_DOWN, Traductor.masJuegos); } } }//package
Section 112
//barraprogreso (barraprogreso) package { import flash.display.*; public dynamic class barraprogreso extends MovieClip { public var cargando:txtCargando; public function barraprogreso(){ addFrameScript(98, frame99, 121, frame122); } function frame122(){ stop(); } function frame99(){ stop(); } } }//package
Section 113
//Base (Base) package { import flash.display.*; import cargador.*; import eventos.*; import flash.net.*; import paneles.*; public class Base extends MovieClip { public var barra:barraprogreso; public var panelMenu:PanelMenu; public var panel:CargadorPrincipal; public var ban:banner; public var cargadorBase:CargadorPrincipal; public var txtCargando_3; var dos:Monitor; public var ch:chica; public var game:gameboy; public var t:Traductor; public var uno:SelectIdioma; public var panelJuego:PanelJuego; public function Base(){ removeChild(panel); cargadorBase = new CargadorPrincipal(); addChild(cargadorBase); cargadorBase.setea((10 * 16), terminaCarga); stop(); } function terminaCarga(){ uno = null; dos = null; removeChild(cargadorBase); cargadorBase = null; gotoAndStop(2); panelMenu = new PanelMenu(); panelJuego = new PanelJuego(); addChild(panelMenu); preparaListeners(); contadorVisitas(); } function gestionPanel(_arg1:EventoExtra){ switch (_arg1.target){ case panelMenu: if (_arg1.extra.panel == 1){ trace("uno"); } else { if (_arg1.extra.panel == 2){ panelMenu.detieneMusica(); removeChild(panelMenu); addChild(panelJuego); panelJuego.start(); } else { throw (new Error("Opción no controlada")); }; }; break; case panelJuego: if (_arg1.extra.panel == 1){ removeChild(panelJuego); addChild(panelMenu); panelMenu.iniciaMusica(); } else { if (_arg1.extra.panel == 2){ } else { if (_arg1.extra.panel == 3){ removeChild(panelJuego); } else { throw (new Error("Opción no controlada")); }; }; }; break; default: break; }; } function preparaListeners(){ panelMenu.addEventListener(EventoExtra.ACCION_TERMINADA, gestionPanel); panelJuego.addEventListener(EventoExtra.ACCION_TERMINADA, gestionPanel); } function contadorVisitas(){ var _local1:URLVariables; var _local2:URLRequest; var _local3:URLLoader; _local2 = new URLRequest("http://multiplayer.dailygames.com/visitas_juegos/visitas.php"); _local1 = new URLVariables(); _local2.method = URLRequestMethod.POST; _local1.juego = "tblNoeliaChef"; _local2.data = _local1; _local3 = new URLLoader(); _local3.load(_local2); } } }//package
Section 114
//bdCartoon (bdCartoon) package { import flash.text.*; public dynamic class bdCartoon extends Font { } }//package
Section 115
//botonBrasil (botonBrasil) package { import flash.display.*; public dynamic class botonBrasil extends SimpleButton { } }//package
Section 116
//botonesMenu1 (botonesMenu1) package { import flash.display.*; public dynamic class botonesMenu1 extends MovieClip { public var btnJugar:SimpleButton; public var btnMasJuegos:SimpleButton; public var btnDescargar:SimpleButton; public var btnTopTen:SimpleButton; } }//package
Section 117
//botonEspaniol (botonEspaniol) package { import flash.display.*; public dynamic class botonEspaniol extends SimpleButton { } }//package
Section 118
//botonFrancia (botonFrancia) package { import flash.display.*; public dynamic class botonFrancia extends SimpleButton { } }//package
Section 119
//botonIngles (botonIngles) package { import flash.display.*; public dynamic class botonIngles extends SimpleButton { } }//package
Section 120
//Card (Card) package { import flash.events.*; import flash.display.*; import paneles.*; public dynamic class Card extends MovieClip { private var flipToFrame:uint; private var isFlipping:Boolean;// = false var sonidoFlip:SonidoFlip; private var flipStep:uint; public function Card(){ sonidoFlip = new SonidoFlip(); super(); addFrameScript(0, frame1); this.addEventListener(MouseEvent.MOUSE_OVER, efectoOver); } public function sacarEfecto(_arg1:MouseEvent){ this.alpha = 1; } function frame1(){ stop(); this.cartaPortada.gotoAndStop((PanelJuego.nivel - 1)); } public function flip(_arg1:Event){ flipStep--; if (flipStep > 5){ this.scaleX = (0.2 * (flipStep - 6)); } else { this.scaleX = (0.2 * (5 - flipStep)); }; if (flipStep == 5){ gotoAndStop(flipToFrame); }; if (flipStep == 0){ this.removeEventListener(Event.ENTER_FRAME, flip); }; } public function efectoOver(_arg1:MouseEvent){ this.alpha = 0.8; this.addEventListener(MouseEvent.MOUSE_OUT, sacarEfecto); } public function startFlip(_arg1:uint){ sonidoFlip.play(1, 0); isFlipping = true; flipStep = 10; flipToFrame = _arg1; this.addEventListener(Event.ENTER_FRAME, flip); } } }//package
Section 121
//Cargador (Cargador) package { import flash.display.*; public dynamic class Cargador extends MovieClip { public function Cargador(){ addFrameScript(0, frame1, 19, frame20); } function frame20(){ gotoAndPlay(2); } function frame1(){ stop(); } } }//package
Section 122
//CellRenderer_disabledSkin (CellRenderer_disabledSkin) package { import flash.display.*; public dynamic class CellRenderer_disabledSkin extends MovieClip { } }//package
Section 123
//CellRenderer_downSkin (CellRenderer_downSkin) package { import flash.display.*; public dynamic class CellRenderer_downSkin extends MovieClip { } }//package
Section 124
//CellRenderer_overSkin (CellRenderer_overSkin) package { import flash.display.*; public dynamic class CellRenderer_overSkin extends MovieClip { } }//package
Section 125
//CellRenderer_selectedDisabledSkin (CellRenderer_selectedDisabledSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip { } }//package
Section 126
//CellRenderer_selectedDownSkin (CellRenderer_selectedDownSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDownSkin extends MovieClip { } }//package
Section 127
//CellRenderer_selectedOverSkin (CellRenderer_selectedOverSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedOverSkin extends MovieClip { } }//package
Section 128
//CellRenderer_selectedUpSkin (CellRenderer_selectedUpSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedUpSkin extends MovieClip { } }//package
Section 129
//CellRenderer_upSkin (CellRenderer_upSkin) package { import flash.display.*; public dynamic class CellRenderer_upSkin extends MovieClip { } }//package
Section 130
//chica (chica) package { import flash.display.*; public dynamic class chica extends MovieClip { } }//package
Section 131
//ColumnStretch_cursor (ColumnStretch_cursor) package { import flash.display.*; public dynamic class ColumnStretch_cursor extends MovieClip { } }//package
Section 132
//ComienzaNivel (ComienzaNivel) package { import flash.display.*; import flash.text.*; public dynamic class ComienzaNivel extends MovieClip { public var textoTienes2:TextField; public var textoTienes:TextField; public var nivel1:TextField; public var textoSegundos:TextField; public var textoNivelSolo:TextField; public function ComienzaNivel(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(textoNivelSolo); Traductor.pedir(textoTienes); Traductor.pedir(textoTienes2); } } }//package
Section 133
//ContenedorPiezas (ContenedorPiezas) package { import flash.display.*; public dynamic class ContenedorPiezas extends MovieClip { } }//package
Section 134
//Cursor (Cursor) package { import flash.display.*; public dynamic class Cursor extends MovieClip { } }//package
Section 135
//DataGrid_skin (DataGrid_skin) package { import flash.display.*; public dynamic class DataGrid_skin extends MovieClip { } }//package
Section 136
//DataGridCellEditor_skin (DataGridCellEditor_skin) package { import flash.display.*; public dynamic class DataGridCellEditor_skin extends MovieClip { } }//package
Section 137
//Deshabilitado (Deshabilitado) package { import flash.display.*; public dynamic class Deshabilitado extends MovieClip { public var cont2:MovieClip; } }//package
Section 138
//Final (Final) package { import flash.display.*; public dynamic class Final extends MovieClip { public var pop:MovieClip; } }//package
Section 139
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 140
//Fondo (Fondo) package { import flash.display.*; public dynamic class Fondo extends MovieClip { } }//package
Section 141
//fuego (fuego) package { import flash.display.*; public dynamic class fuego extends MovieClip { } }//package
Section 142
//fuego2 (fuego2) package { import flash.display.*; public dynamic class fuego2 extends MovieClip { } }//package
Section 143
//gameboy (gameboy) package { import flash.display.*; public dynamic class gameboy extends MovieClip { public function gameboy(){ addFrameScript(63, frame64); } function frame64(){ stop(); } } }//package
Section 144
//GameOver (GameOver) package { import flash.events.*; import flash.display.*; import fl.data.*; import flash.text.*; import flash.utils.*; import flash.media.*; import paneles.*; public class GameOver extends MovieClip { public var num:int;// = 11 public var txtRestan:MovieClip; public var puntajeSuf:int; public var btnDescargar:SimpleButton; public var btnMasJuegos:SimpleButton; public var manejaRecords:ManejaRecords; public var sonidoRegresivo:SonidoRegresivo; public var btnContinuar:SimpleButton; public var btnTop10:SimpleButton; public var textoTermino:TextField; public var canalSonido:SoundChannel; public var txtPuntos:TextField; public var txtCont:TextField; public var textoPuntajeEs:TextField; public var textoGameOver2:TextField; public var textoGameOver3:TextField; public var temp:Timer; public var sonidoGameO:SonidoGOver; public var textoContinuar2:TextField; public var textoContinuar3:TextField; public var textoGameOver:TextField; public var btnEmpezar:SimpleButton; public var puntajesFinal:PuntajesFinal; public var btnEnviarPuntaje:SimpleButton; public function GameOver(){ addFrameScript(0, frame1, 1, frame2); sonidoRegresivo = new SonidoRegresivo(); sonidoGameO = new SonidoGOver(); Traductor.pedir(textoTermino); Traductor.pedir(textoContinuar3); this.btnMasJuegos.addEventListener(MouseEvent.MOUSE_DOWN, Traductor.masJuegos); this.btnDescargar.addEventListener(MouseEvent.MOUSE_DOWN, Traductor.descargarJuego); this.btnTop10.addEventListener(MouseEvent.MOUSE_DOWN, mostrarPuntajes); this.btnEnviarPuntaje.visible = false; this.btnEmpezar.visible = false; this.btnMasJuegos.visible = false; this.btnDescargar.visible = false; this.textoGameOver2.visible = false; this.textoGameOver3.visible = false; this.btnTop10.visible = false; if (PanelJuego.continua < 0){ removerTodo(); } else { temp = new Timer(1000, 12); temp.addEventListener(TimerEvent.TIMER, mostrar); temp.addEventListener(TimerEvent.TIMER_COMPLETE, remover); temp.start(); }; } public function mostrarPuntajes(_arg1:MouseEvent){ puntajesFinal = new PuntajesFinal(); addChild(puntajesFinal); } public function mostrar(_arg1:TimerEvent){ num = (num - 1); this.txtCont.text = String(num); if (num >= 0){ canalSonido = sonidoRegresivo.play(0, 1); }; } public function bajo(_arg1){ var _local3:DataProvider; var _local2:XML = new XML(_arg1.data); _local3 = new DataProvider(_local2); puntajeSuf = _local3.getItemAt(9).tiempo; this.txtPuntos.text = String(PanelJuego.puntos); if (puntajeSuf > PanelJuego.puntos){ this.textoGameOver2.visible = true; this.textoGameOver3.visible = true; this.btnTop10.visible = true; } else { this.btnEnviarPuntaje.visible = true; this.textoGameOver2.visible = false; this.textoGameOver3.visible = false; this.btnTop10.visible = false; }; } public function removerTodo():void{ sonidoGameO.play(0, 1); this.gotoAndStop(2); this.btnEmpezar.visible = true; this.btnMasJuegos.visible = true; this.btnDescargar.visible = true; manejaRecords = new ManejaRecords(); manejaRecords.variablesBajar.orden = 0; manejaRecords.variablesBajar.j = 10; manejaRecords.variablesBajar.tabla = "juego_noelia_chef"; manejaRecords.bajarRecords(); manejaRecords.bajo = bajo; } function frame1(){ stop(); } function frame2(){ stop(); Traductor.pedir(textoPuntajeEs); Traductor.pedir(textoGameOver2); Traductor.pedir(textoGameOver3); } public function remover(_arg1:TimerEvent){ removerTodo(); } } }//package
Section 145
//GameOver2 (GameOver2) package { import flash.events.*; import flash.display.*; import flash.text.*; import paneles.*; public class GameOver2 extends MovieClip { public var btnDescargar:SimpleButton; public var btnEnviarPuntaje:SimpleButton; public var textoGameOver2:TextField; public var textoGameOver3:TextField; public var puntajesFinal:PuntajesFinal; public var textoGameOver:TextField; public var btnEmpezar:SimpleButton; public var btnTop10:SimpleButton; public var btnMasJuegos:SimpleButton; public var textoPuntajeEs:TextField; public var txtPuntos:TextField; public function GameOver2(){ btnEnviarPuntaje.visible = false; btnMasJuegos.addEventListener(MouseEvent.MOUSE_DOWN, Traductor.masJuegos); btnDescargar.addEventListener(MouseEvent.MOUSE_DOWN, Traductor.descargarJuego); btnTop10.addEventListener(MouseEvent.MOUSE_DOWN, mostrarPuntajes); Traductor.pedir(textoGameOver); Traductor.pedir(textoGameOver2); Traductor.pedir(textoGameOver3); Traductor.pedir(textoPuntajeEs); this.txtPuntos.text = String(PanelJuego.puntos); } public function mostrarPuntajes(_arg1:MouseEvent){ puntajesFinal = new PuntajesFinal(); addChild(puntajesFinal); } } }//package
Section 146
//HeaderRenderer_disabledSkin (HeaderRenderer_disabledSkin) package { import flash.display.*; public dynamic class HeaderRenderer_disabledSkin extends MovieClip { } }//package
Section 147
//HeaderRenderer_downSkin (HeaderRenderer_downSkin) package { import flash.display.*; public dynamic class HeaderRenderer_downSkin extends MovieClip { } }//package
Section 148
//HeaderRenderer_overSkin (HeaderRenderer_overSkin) package { import flash.display.*; public dynamic class HeaderRenderer_overSkin extends MovieClip { } }//package
Section 149
//HeaderRenderer_selectedDisabledSkin (HeaderRenderer_selectedDisabledSkin) package { import flash.display.*; public dynamic class HeaderRenderer_selectedDisabledSkin extends MovieClip { } }//package
Section 150
//HeaderRenderer_selectedDownSkin (HeaderRenderer_selectedDownSkin) package { import flash.display.*; public dynamic class HeaderRenderer_selectedDownSkin extends MovieClip { } }//package
Section 151
//HeaderRenderer_selectedOverSkin (HeaderRenderer_selectedOverSkin) package { import flash.display.*; public dynamic class HeaderRenderer_selectedOverSkin extends MovieClip { } }//package
Section 152
//HeaderRenderer_selectedUpSkin (HeaderRenderer_selectedUpSkin) package { import flash.display.*; public dynamic class HeaderRenderer_selectedUpSkin extends MovieClip { } }//package
Section 153
//HeaderRenderer_upSkin (HeaderRenderer_upSkin) package { import flash.display.*; public dynamic class HeaderRenderer_upSkin extends MovieClip { } }//package
Section 154
//HeaderSortArrow_ascIcon (HeaderSortArrow_ascIcon) package { import flash.display.*; public dynamic class HeaderSortArrow_ascIcon extends MovieClip { } }//package
Section 155
//HeaderSortArrow_descIcon (HeaderSortArrow_descIcon) package { import flash.display.*; public dynamic class HeaderSortArrow_descIcon extends MovieClip { } }//package
Section 156
//humo (humo) package { import flash.display.*; public dynamic class humo extends MovieClip { } }//package
Section 157
//humo2 (humo2) package { import flash.display.*; public dynamic class humo2 extends MovieClip { } }//package
Section 158
//Instrucciones (Instrucciones) package { import flash.display.*; public dynamic class Instrucciones extends MovieClip { public var panel:MovieClip; } }//package
Section 159
//ManejaRecords (ManejaRecords) package { import flash.events.*; import flash.text.*; import flash.net.*; public class ManejaRecords { public var datosBajar:URLLoader; public var bajo:Function; public var variablesBajar:URLVariables; public var conectando:Boolean; public var urlListar:String;// = "http://admin.juegosdiarios.com/subirPuntaje/listar.php" public var subio:Function; public var errorIO:Function; public var variablesSubir:URLVariables; public var urlSubir:String;// = "http://admin.juegosdiarios.com/subirPuntaje/nuevo.php" public function ManejaRecords(){ subio = new Function(); errorIO = new Function(); bajo = new Function(); super(); variablesSubir = new URLVariables(); variablesSubir.idioma = "es"; variablesSubir.puntaje = ""; variablesSubir.nick = ""; variablesSubir.tabla = "juego_noelia_chef"; variablesBajar = new URLVariables(); variablesBajar.j = 10; variablesBajar.tabla = "juego_noelia_chef"; variablesBajar.orden = true; } function completoSubida(_arg1:Event):void{ var loader:URLLoader; var event = _arg1; conectando = false; removerListeners(); try { loader = URLLoader(event.target); } catch(e) { errorIO(event.toString()); }; subio(loader); } function completoBajada(_arg1:Event):void{ var loader:URLLoader; var event = _arg1; conectando = false; removerListeners(); try { loader = URLLoader(event.target); } catch(e) { errorIO(event.toString()); }; bajo(loader); } public function subirRecord(){ conectando = true; var pedido:URLRequest = new URLRequest((urlSubir = (urlSubir + ("?variable=" + Math.random())))); pedido.data = variablesSubir; pedido.method = URLRequestMethod.POST; datosBajar = new URLLoader(); datosBajar.dataFormat = URLLoaderDataFormat.VARIABLES; datosBajar.addEventListener(Event.COMPLETE, completoSubida, false, 0, true); datosBajar.addEventListener(IOErrorEvent.IO_ERROR, errorAlConectar, false, 0, true); try { datosBajar.load(pedido); } catch(error) { removerListeners(); errorIO("nada"); }; } public function muestraStatus(_arg1:Event){ datosBajar.removeEventListener(HTTPStatusEvent.HTTP_STATUS, muestraStatus); } public function bajarRecords(_arg1:String="text"){ var formatoDatos = _arg1; conectando = true; var pedido:URLRequest = new URLRequest(urlListar); pedido.data = variablesBajar; pedido.method = URLRequestMethod.POST; datosBajar = new URLLoader(); datosBajar.dataFormat = formatoDatos; datosBajar.addEventListener(Event.COMPLETE, completoBajada); datosBajar.addEventListener(IOErrorEvent.IO_ERROR, errorAlConectar, false, 0, true); try { datosBajar.load(pedido); } catch(error:Error) { errorIO("atrape en bajar"); }; } function removerListeners(){ datosBajar.removeEventListener(Event.COMPLETE, completoBajada); datosBajar.removeEventListener(Event.COMPLETE, completoSubida); datosBajar.removeEventListener(IOErrorEvent.IO_ERROR, errorAlConectar); } function errorAlConectar(_arg1:Event):void{ conectando = false; trace("funcion errorAlConectar"); removerListeners(); errorIO(_arg1.toString()); } function fStatus(_arg1:HTTPStatusEvent):void{ errorIO(_arg1.toString()); } } }//package
Section 160
//Monitor (Monitor) package { import flash.display.*; import cargador.*; import eventos.*; public class Monitor extends MovieClip implements MonitorCarga { public var barraProgreso:MovieClip; var txtCargando_3:txtCargando; var corriendo:Boolean; public var textoLoading:MovieClip; public var btnNoelia:SimpleButton; public function Monitor(){ txtCargando_3 = new txtCargando(); super(); addFrameScript(56, frame57, 85, frame86); barraProgreso.y = 990; textoLoading.y = 990; stop(); } public function despacharEventoTermina():void{ deconstructor(); dispatchEvent(new Termina()); } function frame57(){ stop(); muestraBarra(); } public function avanza(_arg1:Number){ barraProgreso.x = ((245 * _arg1) - 350); if ((((_arg1 >= 1)) && (!(corriendo)))){ corriendo = true; arranca(); barraProgreso.y = 990; textoLoading.y = 990; }; } public function arranca():void{ play(); } function frame86(){ despacharEventoTermina(); stop(); } function muestraBarra(){ barraProgreso.y = -42; textoLoading.y = -13; Traductor.pedirRetroactivo(textoLoading); } public function deconstructor():void{ barraProgreso = null; } } }//package
Section 161
//MusicaJuego (MusicaJuego) package { import flash.media.*; public dynamic class MusicaJuego extends Sound { } }//package
Section 162
//MusicaJuego2 (MusicaJuego2) package { import flash.media.*; public dynamic class MusicaJuego2 extends Sound { } }//package
Section 163
//MusicaMenu (MusicaMenu) package { import flash.media.*; public dynamic class MusicaMenu extends Sound { } }//package
Section 164
//NivelCompleto (NivelCompleto) package { import flash.display.*; import flash.text.*; public dynamic class NivelCompleto extends MovieClip { public var txtCompleto:TextField; public var nivel1:TextField; public var textoNivelSolo:TextField; public function NivelCompleto(){ addFrameScript(0, frame1); } function frame1(){ Traductor.pedir(txtCompleto); Traductor.pedir(textoNivelSolo); } } }//package
Section 165
//NivelCompleto2 (NivelCompleto2) package { import flash.display.*; public dynamic class NivelCompleto2 extends MovieClip { public var perg:MovieClip; } }//package
Section 166
//PuntajesFinal (PuntajesFinal) package { import flash.events.*; import fl.controls.*; import flash.display.*; import fl.data.*; import flash.text.*; import flash.utils.*; public class PuntajesFinal extends MovieClip { public var dg:DataGrid; public var fuenteCartoon:bdCartoon; public var timer:Timer; public var btnCerrar:SimpleButton; public var fondo:MovieClip; public var top:MovieClip; public var cargarDP:DataProvider; public var cargador:Cargador; public var textoTop:TextField; var manejaRecords:ManejaRecords; public var btnJugar:SimpleButton; public static var formato:TextFormat; public function PuntajesFinal(){ fuenteCartoon = new bdCartoon(); super(); top.btnJugar.visible = false; top.btnCerrar.addEventListener(MouseEvent.CLICK, cerrar); top.btnMasJuegos.addEventListener(MouseEvent.CLICK, Traductor.masJuegos); manejaRecords = new ManejaRecords(); manejaRecords.variablesBajar.orden = 0; manejaRecords.variablesBajar.j = 10; manejaRecords.variablesBajar.tabla = "juego_noelia_chef"; manejaRecords.errorIO = errorIO; manejaRecords.bajarRecords(); manejaRecords.bajo = bajo; formato = new TextFormat(); formato.size = 20; formato.font = fuenteCartoon.fontName; formato.indent = 3; formato.color = 0x660000; cargador = new Cargador(); top.addChild(cargador); cargador.gotoAndPlay(2); cargador.x = 0; cargador.y = -70; } public function bajo(_arg1){ var _local3:DataProvider; var _local2:XML = new XML(_arg1.data); _local3 = new DataProvider(_local2); cargarDP = new DataProvider(_local2); muestraGrid(cargarDP); } public function sacarDG(){ top.removeChild(dg); } public function cerrar(_arg1:MouseEvent){ top.removeChild(dg); this.top.gotoAndPlay(21); timer = new Timer(1000, 1); timer.addEventListener(TimerEvent.TIMER_COMPLETE, destructor); timer.start(); } public function errorIO(_arg1){ trace("error"); } public function destructor(_arg1:TimerEvent){ removeChild(top); removeChild(fondo); } public function muestraGrid(_arg1:DataProvider){ trace("muestraGrid "); dg = new DataGrid(); dg.setSize(250, 180); dg.columns = ["numero", "nick", "tiempo"]; dg.dataProvider = _arg1; dg.columns[0].width = 40; dg.columns[1].width = 130; dg.sortableColumns = false; dg.headerHeight = 0; dg.rowHeight = 18; dg.setRendererStyle("textFormat", formato); dg.setRendererStyle("embedFonts", true); dg.x = -115; dg.y = -80; dg.verticalScrollPolicy = ScrollPolicy.OFF; dg.selectable = false; top.removeChild(cargador); top.addChild(dg); } } }//package
Section 167
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_disabledSkin extends MovieClip { } }//package
Section 168
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_downSkin extends MovieClip { } }//package
Section 169
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_overSkin extends MovieClip { } }//package
Section 170
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_upSkin extends MovieClip { } }//package
Section 171
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_disabledSkin extends MovieClip { } }//package
Section 172
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_downSkin extends MovieClip { } }//package
Section 173
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_overSkin extends MovieClip { } }//package
Section 174
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_upSkin extends MovieClip { } }//package
Section 175
//ScrollBar_thumbIcon (ScrollBar_thumbIcon) package { import flash.display.*; public dynamic class ScrollBar_thumbIcon extends MovieClip { } }//package
Section 176
//ScrollThumb_downSkin (ScrollThumb_downSkin) package { import flash.display.*; public dynamic class ScrollThumb_downSkin extends MovieClip { } }//package
Section 177
//ScrollThumb_overSkin (ScrollThumb_overSkin) package { import flash.display.*; public dynamic class ScrollThumb_overSkin extends MovieClip { } }//package
Section 178
//ScrollThumb_upSkin (ScrollThumb_upSkin) package { import flash.display.*; public dynamic class ScrollThumb_upSkin extends MovieClip { } }//package
Section 179
//ScrollTrack_skin (ScrollTrack_skin) package { import flash.display.*; public dynamic class ScrollTrack_skin extends MovieClip { } }//package
Section 180
//SelectIdioma (SelectIdioma) package { import flash.events.*; import flash.display.*; import cargador.*; public class SelectIdioma extends MovieClip implements SelectorIdioma { public var barra:barraprogreso; var dos:Monitor; public var botonEspañol:botonEspaniol; public var h2:humo2; public var f2:fuego2; public var ban:banner; public var txtCargando_3; public var texto:MovieClip; public var ch:chica; public var f:fuego; public var botonPortugues:botonBrasil; public var h:humo; public var botonEnglish:botonIngles; public var game:gameboy; public var t:Traductor; public var uno:SelectIdioma; public function SelectIdioma(){ botonEspañol.addEventListener(MouseEvent.CLICK, Español); botonEnglish.addEventListener(MouseEvent.CLICK, english); botonPortugues.addEventListener(MouseEvent.CLICK, portugues); } public function despacharEventoIdioma(_arg1:int):void{ dispatchEvent(new EventoIdioma(EventoIdioma.SELECCIONADO, _arg1)); } public function deconstructor():void{ } function english(_arg1:MouseEvent){ despacharEventoIdioma(2); } function Español(_arg1:MouseEvent){ despacharEventoIdioma(1); } function portugues(_arg1:MouseEvent){ despacharEventoIdioma(4); } } }//package
Section 181
//SonidoAcierta (SonidoAcierta) package { import flash.media.*; public dynamic class SonidoAcierta extends Sound { } }//package
Section 182
//SonidoConteo (SonidoConteo) package { import flash.media.*; public dynamic class SonidoConteo extends Sound { } }//package
Section 183
//SonidoFlip (SonidoFlip) package { import flash.media.*; public dynamic class SonidoFlip extends Sound { } }//package
Section 184
//SonidoGOver (SonidoGOver) package { import flash.media.*; public dynamic class SonidoGOver extends Sound { } }//package
Section 185
//SonidoNivel (SonidoNivel) package { import flash.media.*; public dynamic class SonidoNivel extends Sound { } }//package
Section 186
//SonidoRegresivo (SonidoRegresivo) package { import flash.media.*; public dynamic class SonidoRegresivo extends Sound { } }//package
Section 187
//Traductor (Traductor) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.net.*; public dynamic class Traductor { public static var objetos:Array = new Array(); public static var dominio:Array = new Array("http://www.noelia.com/", "http://en.noelia.com/", "http://fr.noelia.com/", "http://pt.noelia.com/"); public static var idioma:uint = 1; static var cosas:Object = new Object(); public static function cambiar(_arg1:uint){ var _local2:*; idioma = _arg1; for each (_local2 in objetos) { pedir(_local2); }; } public static function descargarJuego(_arg1:MouseEvent){ var _local2:URLRequest = new URLRequest("http://multiplayer.dailygames.com/noelia_chinese_chef/noelia_chinese_chef.zip"); navigateToURL(_local2, "_blank"); } public static function masJuegos(_arg1:MouseEvent){ var _local2:URLRequest = new URLRequest(dominio[(idioma - 1)]); navigateToURL(_local2, "_blank"); } public static function pedirRetroactivo(_arg1:Object){ var _local2:TextField; if ((_arg1 is TextField)){ _local2 = (_arg1 as TextField); _local2.htmlText = cosas[_arg1.name][(idioma - 1)]; _local2.embedFonts = true; } else { if ((_arg1 is MovieClip)){ (_arg1 as MovieClip).gotoAndStop(idioma); } else { throw (new Error(("traductor no maneja esta clase: " + _arg1))); }; }; objetos.push(_arg1); } public static function pedir(_arg1:Object){ var _local2:TextField; if ((_arg1 is TextField)){ _local2 = (_arg1 as TextField); _local2.htmlText = cosas[_arg1.name][(idioma - 1)]; _local2.embedFonts = true; } else { if ((_arg1 is MovieClip)){ (_arg1 as MovieClip).gotoAndStop(idioma); } else { throw (new Error(("traductor no maneja esta clase: " + _arg1))); }; }; } cosas.cargando = new Array("Cargando", "Loading", "Chargement", "Carregando"); cosas.jugar = new Array("Jugar", "Play", "Jouer", "Jogar"); cosas.masJuegos = new Array("Mas juegos", "More games", "Plus de jeux", "Mais jogos"); cosas.descargar = new Array("Descargar juego", "Download \n game", "Telechargement de jeu", "Descarregar jogo"); cosas.jugarNuevo = new Array("comenzar de nuevo", "start again", "recommencer", "começar de novo"); cosas.enviarPuntaje = new Array("Enviar puntaje", "Send score", "Envoyer score", "Envie pontuação"); cosas.textoTime = new Array("Tiempo:", "Time:", "Heure:", "Tempo:"); cosas.textoScore = new Array("Puntos:", "Score:", "Points:", "Pontos:"); cosas.textoTotal = new Array("Puntaje total:", "Total score:", "Score total:", "Pontuação total:"); cosas.textoNivel = new Array("Nivel completo", "Level complete", "Plein niveau", "Nivel completo"); cosas.textoNivelSolo = new Array("Nivel", "Level", "Plein", "Nivel"); cosas.txtCompleto = new Array("completo", "complete", "niveau", "completo"); cosas.textoFelicita = new Array("Felicitaciones!!", "Congratulations!!", "Felicitations!!", "Parabéns!!"); cosas.textoHasganado = new Array("Has ganado", "You've won", "Vous gagnez", "Você ganhou"); cosas.txtNombre = new Array("Escribe tu nombre", "Type your name", "Entrez votre nom", "Escreva seu nome"); cosas.textoTop = new Array("Top 10", "Top 10", "Top 10", "Top 10"); cosas.textoContinuar = new Array("haz clic para continuar", "click to continue", "click to continuer", "click para continuar"); cosas.textoContinuar2 = new Array("continuar)", "continue)", "continuer)", "continuar)"); cosas.textoContinuar3 = new Array("¿Continuar?", "Continue?", "Continuer?", "Continuar?"); cosas.textoRestan = new Array("(Resta", "(you have", "(Manquant", "(Resta"); cosas.textoInstrucciones = new Array("Instrucciones", "Instructions", "Instructions", "Instruções"); cosas.textoIns1 = new Array("Deberás utilizar tu memoria y encontrar los pares de los ingredientes haciendo ", "You must use your memory and find the pairs of the ingredients and dishes by ", "", "Deverá utilizar sua memória e encontrar os pares dos ingredientes clicando "); cosas.textoIns2 = new Array("clic en los recuadros antes de que el tiempo de cada nivel finalice.", "clicking the boxes before the time of each level finish.", "", "nos requadros antes que o tempo de cada nivel se finalize."); cosas.textoTienes = new Array("Tienes", "You have", "Tienes", "Tem"); cosas.textoTienes2 = new Array("segundos para completar el nivel", "seconds to complete the level", "secondes pour compléter le niveau", "segundos para completar o nivel"); cosas.textoCerrar = new Array("cerrar", "close", "fermer", "fechar"); cosas.textoNum = new Array("Nº", "Nº", "Nº", "Nº"); cosas.textoNick = new Array("Nick", "Nickname", "Nick", "Nick"); cosas.textoPuntaje = new Array("Puntaje", "Score", "Score", "Pontuação"); cosas.textoGameOver = new Array("Game over", "Game over", "Game over", "Game over"); cosas.textoGameOver2 = new Array("no has conseguido suficiente puntaje", "you haven't achieved enough score", "vous n'avez pas obtenu suffisamment", "Não conseguiu pontuação suficiente"); cosas.textoGameOver3 = new Array("para entrar en el", "to be in the", "de points pour entrer dans le", "para entrar no"); cosas.textoTermino = new Array("Se ha terminado tu tiempo", "Your time has ended", "Votre temps est terminé", "Terminou seu tempo"); cosas.textoPausa = new Array("Pausa", "Pause", "Pause", "Pausa"); cosas.textoPlay = new Array("Play", "Play", "Play", "Play"); cosas.textoPuntajeEs = new Array("Tu puntaje:", "Your score:", "Votre score:", "Sua pontuação:"); } }//package
Section 188
//txtCargando (txtCargando) package { import flash.display.*; public dynamic class txtCargando extends MovieClip { public var texto:MovieClip; public function txtCargando(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:60
Symbol 3 FontUsed by:4 6 8 10
Symbol 4 EditableTextUses:3Used by:5
Symbol 5 MovieClipUses:4Used by:12
Symbol 6 EditableTextUses:3Used by:7
Symbol 7 MovieClipUses:6Used by:12
Symbol 8 EditableTextUses:3Used by:9
Symbol 9 MovieClipUses:8Used by:12
Symbol 10 EditableTextUses:3Used by:11
Symbol 11 MovieClipUses:10Used by:12
Symbol 12 MovieClip {txtCargando}Uses:5 7 9 11Used by:60 479
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:13Used by:60
Symbol 15 GraphicUsed by:21
Symbol 16 GraphicUsed by:21
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:21
Symbol 19 BitmapUsed by:20
Symbol 20 GraphicUses:19Used by:21
Symbol 21 MovieClipUses:15 16 18 20Used by:60 478
Symbol 22 GraphicUsed by:60 90 475 531 569 592 619 648 661
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:27
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:27
Symbol 27 MovieClipUses:24 26Used by:35 90
Symbol 28 BitmapUsed by:29 72
Symbol 29 GraphicUses:28Used by:30
Symbol 30 MovieClipUses:29Used by:35
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:33
Symbol 33 MovieClipUses:32Used by:34 494
Symbol 34 MovieClipUses:33Used by:35
Symbol 35 MovieClipUses:27 30 34Used by:60 432
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:53 57
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:40
Symbol 40 MovieClipUses:39Used by:53 57
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:41Used by:53 57
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:43Used by:53
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:50
Symbol 47 GraphicUsed by:49
Symbol 48 SoundUsed by:49 78 84 89 465 473 485 502 507 512 517 551 556 561 581 615 639 644
Symbol 49 ButtonUses:47 48Used by:50
Symbol 50 MovieClip {banner}Uses:46 49Used by:53 57 60
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:51Used by:53
Symbol 53 MovieClip {gameboy}Uses:37 40 42 44 50 52Used by:60
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClip {chica}Uses:55Used by:57 60
Symbol 57 MovieClipUses:50 37 40 56 42Used by:60
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:60
Symbol 60 MovieClip {Monitor}Uses:2 12 14 21 22 35 53 56 50 57 59Used by:91
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:90
Symbol 63 GraphicUsed by:67
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:66
Symbol 66 MovieClip {humo2}Uses:65Used by:67
Symbol 67 MovieClip {humo}Uses:63 66Used by:90
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:68Used by:70
Symbol 70 MovieClip {fuego2}Uses:69Used by:71
Symbol 71 MovieClip {fuego}Uses:70Used by:90
Symbol 72 GraphicUses:28Used by:90
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:78
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:75Used by:78
Symbol 77 GraphicUsed by:78
Symbol 78 Button {botonIngles}Uses:74 76 77 48Used by:90
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:84
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:84
Symbol 83 GraphicUsed by:84
Symbol 84 Button {botonBrasil}Uses:80 82 83 48Used by:90
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:89
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:89
Symbol 89 Button {botonEspaniol}Uses:86 88 48Used by:90
Symbol 90 MovieClip {SelectIdioma}Uses:62 27 67 71 72 78 84 89 22Used by:91
Symbol 91 MovieClip {cargador.CargadorPrincipal}Uses:60 90Used by:Timeline
Symbol 92 MovieClip {fl.controls.TextInput}
Symbol 93 MovieClip {fl.controls.Button}
Symbol 94 Font {bdCartoon}Used by:453 454 455 461 468 534 535 536 541 542 543 547 549 552 554 557 559 570 571 573 575 577 579 587 588 589 590 591 593 594 595 596 597 607 609 611 613 616 620 621 622 623 624 626 627 629 633 634 635 636 637 638 640 642 645 646 647 650 656 657 658 659 660
Symbol 95 Sound {MusicaJuego2}
Symbol 96 Sound {MusicaJuego}
Symbol 97 Sound {SonidoNivel}
Symbol 98 Sound {SonidoGOver}
Symbol 99 Sound {SonidoFlip}
Symbol 100 Sound {SonidoRegresivo}
Symbol 101 Sound {MusicaMenu}
Symbol 102 Sound {SonidoAcierta}
Symbol 103 Sound {SonidoConteo}Used by:601
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:104Used by:177
Symbol 106 MovieClip {fl.core.ComponentShim}Used by:122 141 174 177
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClip {HeaderRenderer_upSkin}Uses:107Used by:122
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClip {HeaderRenderer_disabledSkin}Uses:109Used by:122
Symbol 111 GraphicUsed by:112 117
Symbol 112 MovieClip {HeaderRenderer_downSkin}Uses:111Used by:122
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClip {HeaderRenderer_overSkin}Uses:113Used by:122
Symbol 115 GraphicUsed by:116
Symbol 116 MovieClip {HeaderRenderer_selectedDisabledSkin}Uses:115Used by:122
Symbol 117 MovieClip {HeaderRenderer_selectedDownSkin}Uses:111Used by:122
Symbol 118 GraphicUsed by:119
Symbol 119 MovieClip {HeaderRenderer_selectedOverSkin}Uses:118Used by:122
Symbol 120 GraphicUsed by:121
Symbol 121 MovieClip {HeaderRenderer_selectedUpSkin}Uses:120Used by:122
Symbol 122 MovieClip {fl.controls.dataGridClasses.HeaderRenderer}Uses:108 106 110 112 114 116 117 119 121Used by:177
Symbol 123 GraphicUsed by:124 150 153 157 167
Symbol 124 MovieClip {HeaderSortArrow_ascIcon}Uses:123Used by:177
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClip {HeaderSortArrow_descIcon}Uses:125Used by:177
Symbol 127 GraphicUsed by:128 140
Symbol 128 MovieClip {CellRenderer_upSkin}Uses:127Used by:141
Symbol 129 GraphicUsed by:130
Symbol 130 MovieClip {CellRenderer_disabledSkin}Uses:129Used by:141
Symbol 131 GraphicUsed by:132 137
Symbol 132 MovieClip {CellRenderer_downSkin}Uses:131Used by:141
Symbol 133 GraphicUsed by:134
Symbol 134 MovieClip {CellRenderer_overSkin}Uses:133Used by:141
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClip {CellRenderer_selectedDisabledSkin}Uses:135Used by:141
Symbol 137 MovieClip {CellRenderer_selectedDownSkin}Uses:131Used by:141
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClip {CellRenderer_selectedOverSkin}Uses:138Used by:141
Symbol 140 MovieClip {CellRenderer_selectedUpSkin}Uses:127Used by:141
Symbol 141 MovieClip {fl.controls.listClasses.CellRenderer}Uses:128 106 130 132 134 136 137 139 140Used by:177
Symbol 142 GraphicUsed by:143
Symbol 143 MovieClip {focusRectSkin}Uses:142Used by:174 177
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClip {ColumnStretch_cursor}Uses:144Used by:177
Symbol 146 MovieClip {DataGrid_skin}Used by:177
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClip {ScrollTrack_skin}Uses:147Used by:174
Symbol 149 GraphicUsed by:151
Symbol 150 MovieClipUses:123Used by:151 161 163
Symbol 151 MovieClip {ScrollArrowUp_downSkin}Uses:149 150Used by:174
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClip {ScrollArrowDown_downSkin}Uses:152 123Used by:174
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClip {ScrollThumb_downSkin}Uses:154Used by:174
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClip {ScrollArrowDown_overSkin}Uses:156 123Used by:174
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClip {ScrollThumb_overSkin}Uses:158Used by:174
Symbol 160 GraphicUsed by:161
Symbol 161 MovieClip {ScrollArrowUp_overSkin}Uses:160 150Used by:174
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClip {ScrollArrowUp_upSkin}Uses:162 150Used by:174
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClip {ScrollThumb_upSkin}Uses:164Used by:174
Symbol 166 GraphicUsed by:167
Symbol 167 MovieClip {ScrollArrowDown_upSkin}Uses:166 123Used by:174
Symbol 168 GraphicUsed by:169
Symbol 169 MovieClip {ScrollArrowDown_disabledSkin}Uses:168Used by:174
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClip {ScrollArrowUp_disabledSkin}Uses:170Used by:174
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClip {ScrollBar_thumbIcon}Uses:172Used by:174
Symbol 174 MovieClip {fl.controls.ScrollBar}Uses:148 106 143 151 153 155 157 159 161 163 165 167 169 171 173Used by:177
Symbol 175 GraphicUsed by:176
Symbol 176 MovieClip {DataGridCellEditor_skin}Uses:175Used by:177
Symbol 177 MovieClip {fl.controls.DataGrid}Uses:105 106 122 124 126 141 143 145 146 174 176
Symbol 178 BitmapUsed by:179
Symbol 179 GraphicUses:178Used by:194
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:194
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:194
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:194
Symbol 186 BitmapUsed by:187
Symbol 187 GraphicUses:186Used by:194
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:194
Symbol 190 BitmapUsed by:191
Symbol 191 GraphicUses:190Used by:194
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:194
Symbol 194 MovieClipUses:179 181 183 185 187 189 191 193Used by:195
Symbol 195 MovieClip {Cargador}Uses:194Used by:375
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:230
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:230
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:230
Symbol 202 BitmapUsed by:203
Symbol 203 GraphicUses:202Used by:230
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:230
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:230
Symbol 208 BitmapUsed by:209
Symbol 209 GraphicUses:208Used by:230
Symbol 210 BitmapUsed by:211
Symbol 211 GraphicUses:210Used by:230
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:230
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:230
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:230
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:230
Symbol 220 BitmapUsed by:221
Symbol 221 GraphicUses:220Used by:230
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:230
Symbol 224 BitmapUsed by:225
Symbol 225 GraphicUses:224Used by:230
Symbol 226 BitmapUsed by:227
Symbol 227 GraphicUses:226Used by:230
Symbol 228 BitmapUsed by:229
Symbol 229 GraphicUses:228Used by:230
Symbol 230 MovieClip {noelia_chef2_fla.cartasportada_152}Uses:197 199 201 203 205 207 209 211 213 215 217 219 221 223 225 227 229Used by:375
Symbol 231 BitmapUsed by:232
Symbol 232 GraphicUses:231Used by:375
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:375
Symbol 235 BitmapUsed by:236
Symbol 236 GraphicUses:235Used by:375
Symbol 237 BitmapUsed by:238
Symbol 238 GraphicUses:237Used by:375
Symbol 239 BitmapUsed by:240
Symbol 240 GraphicUses:239Used by:375
Symbol 241 BitmapUsed by:242
Symbol 242 GraphicUses:241Used by:375
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:375
Symbol 245 BitmapUsed by:246
Symbol 246 GraphicUses:245Used by:375
Symbol 247 BitmapUsed by:248
Symbol 248 GraphicUses:247Used by:375
Symbol 249 BitmapUsed by:250
Symbol 250 GraphicUses:249Used by:375
Symbol 251 BitmapUsed by:252
Symbol 252 GraphicUses:251Used by:375
Symbol 253 BitmapUsed by:254
Symbol 254 GraphicUses:253Used by:375
Symbol 255 BitmapUsed by:256
Symbol 256 GraphicUses:255Used by:375
Symbol 257 BitmapUsed by:258
Symbol 258 GraphicUses:257Used by:375
Symbol 259 BitmapUsed by:260
Symbol 260 GraphicUses:259Used by:375
Symbol 261 BitmapUsed by:262
Symbol 262 GraphicUses:261Used by:375
Symbol 263 BitmapUsed by:264
Symbol 264 GraphicUses:263Used by:375
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:375
Symbol 267 BitmapUsed by:268
Symbol 268 GraphicUses:267Used by:375
Symbol 269 BitmapUsed by:270
Symbol 270 GraphicUses:269Used by:375
Symbol 271 BitmapUsed by:272
Symbol 272 GraphicUses:271Used by:375
Symbol 273 BitmapUsed by:274
Symbol 274 GraphicUses:273Used by:375
Symbol 275 BitmapUsed by:276
Symbol 276 GraphicUses:275Used by:375
Symbol 277 BitmapUsed by:278
Symbol 278 GraphicUses:277Used by:375
Symbol 279 BitmapUsed by:280
Symbol 280 GraphicUses:279Used by:375
Symbol 281 BitmapUsed by:282
Symbol 282 GraphicUses:281Used by:375
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:375
Symbol 285 BitmapUsed by:286
Symbol 286 GraphicUses:285Used by:375
Symbol 287 BitmapUsed by:288
Symbol 288 GraphicUses:287Used by:375
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:375
Symbol 291 BitmapUsed by:292
Symbol 292 GraphicUses:291Used by:375
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:293Used by:375
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:295Used by:375
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:375
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:375
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:375
Symbol 303 BitmapUsed by:304
Symbol 304 GraphicUses:303Used by:375
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:375
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:375
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:375
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:375
Symbol 313 BitmapUsed by:314
Symbol 314 GraphicUses:313Used by:375
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:375
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:375
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:375
Symbol 321 BitmapUsed by:322
Symbol 322 GraphicUses:321Used by:375
Symbol 323 BitmapUsed by:324
Symbol 324 GraphicUses:323Used by:375
Symbol 325 BitmapUsed by:326
Symbol 326 GraphicUses:325Used by:375
Symbol 327 BitmapUsed by:328
Symbol 328 GraphicUses:327Used by:375
Symbol 329 BitmapUsed by:330
Symbol 330 GraphicUses:329Used by:375
Symbol 331 BitmapUsed by:332
Symbol 332 GraphicUses:331Used by:375
Symbol 333 BitmapUsed by:334
Symbol 334 GraphicUses:333Used by:375
Symbol 335 BitmapUsed by:336
Symbol 336 GraphicUses:335Used by:375
Symbol 337 BitmapUsed by:338
Symbol 338 GraphicUses:337Used by:375
Symbol 339 BitmapUsed by:340
Symbol 340 GraphicUses:339Used by:375
Symbol 341 BitmapUsed by:342
Symbol 342 GraphicUses:341Used by:375
Symbol 343 BitmapUsed by:344
Symbol 344 GraphicUses:343Used by:375
Symbol 345 BitmapUsed by:346
Symbol 346 GraphicUses:345Used by:375
Symbol 347 BitmapUsed by:348
Symbol 348 GraphicUses:347Used by:375
Symbol 349 BitmapUsed by:350
Symbol 350 GraphicUses:349Used by:375
Symbol 351 BitmapUsed by:352
Symbol 352 GraphicUses:351Used by:375
Symbol 353 BitmapUsed by:354
Symbol 354 GraphicUses:353Used by:375
Symbol 355 BitmapUsed by:356
Symbol 356 GraphicUses:355Used by:375
Symbol 357 BitmapUsed by:358
Symbol 358 GraphicUses:357Used by:375
Symbol 359 BitmapUsed by:360
Symbol 360 GraphicUses:359Used by:375
Symbol 361 BitmapUsed by:362
Symbol 362 GraphicUses:361Used by:375
Symbol 363 BitmapUsed by:364
Symbol 364 GraphicUses:363Used by:375
Symbol 365 BitmapUsed by:366
Symbol 366 GraphicUses:365Used by:375
Symbol 367 BitmapUsed by:368
Symbol 368 GraphicUses:367Used by:375
Symbol 369 BitmapUsed by:370
Symbol 370 GraphicUses:369Used by:375
Symbol 371 BitmapUsed by:372
Symbol 372 GraphicUses:371Used by:375
Symbol 373 BitmapUsed by:374
Symbol 374 GraphicUses:373Used by:375
Symbol 375 MovieClip {Card}Uses:230 232 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344 346 348 350 352 354 356 358 360 362 364 195 366 368 370 372 374
Symbol 376 GraphicUsed by:377
Symbol 377 MovieClip {ContenedorPiezas}Uses:376
Symbol 378 BitmapUsed by:380
Symbol 379 BitmapUsed by:380
Symbol 380 GraphicUses:378 379Used by:475
Symbol 381 BitmapUsed by:382
Symbol 382 GraphicUses:381Used by:398 432
Symbol 383 BitmapUsed by:384
Symbol 384 GraphicUses:383Used by:407 432
Symbol 385 BitmapUsed by:386
Symbol 386 GraphicUses:385Used by:399 432
Symbol 387 BitmapUsed by:388
Symbol 388 GraphicUses:387Used by:408 432
Symbol 389 BitmapUsed by:390
Symbol 390 GraphicUses:389Used by:432
Symbol 391 GraphicUsed by:432
Symbol 392 GraphicUsed by:432
Symbol 393 GraphicUsed by:397
Symbol 394 BitmapUsed by:395
Symbol 395 GraphicUses:394Used by:396
Symbol 396 MovieClipUses:395Used by:397
Symbol 397 MovieClipUses:393 396Used by:432
Symbol 398 MovieClipUses:382Used by:432
Symbol 399 MovieClipUses:386Used by:432
Symbol 400 GraphicUsed by:432
Symbol 401 BitmapUsed by:402
Symbol 402 GraphicUses:401Used by:403
Symbol 403 MovieClipUses:402Used by:432
Symbol 404 BitmapUsed by:405
Symbol 405 GraphicUses:404Used by:406
Symbol 406 MovieClipUses:405Used by:432
Symbol 407 MovieClipUses:384Used by:432
Symbol 408 MovieClipUses:388Used by:432
Symbol 409 BitmapUsed by:410
Symbol 410 GraphicUses:409Used by:411
Symbol 411 MovieClipUses:410Used by:412
Symbol 412 MovieClipUses:411Used by:432
Symbol 413 BitmapUsed by:414
Symbol 414 GraphicUses:413Used by:415
Symbol 415 MovieClipUses:414Used by:416
Symbol 416 MovieClipUses:415Used by:432
Symbol 417 BitmapUsed by:418
Symbol 418 GraphicUses:417Used by:432 491
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:421 422
Symbol 421 MovieClipUses:420Used by:422
Symbol 422 ButtonUses:421 420Used by:423
Symbol 423 MovieClip {noelia_chef2_fla.noelia_mc2_108}Uses:422Used by:432 475 531
Symbol 424 BitmapUsed by:425
Symbol 425 GraphicUses:424Used by:426
Symbol 426 MovieClipUses:425Used by:427
Symbol 427 MovieClipUses:426Used by:432
Symbol 428 BitmapUsed by:429
Symbol 429 GraphicUses:428Used by:432
Symbol 430 BitmapUsed by:431
Symbol 431 GraphicUses:430Used by:432
Symbol 432 MovieClip {noelia_chef2_fla.ani_noe_cook_120}Uses:382 384 386 388 390 391 392 397 398 399 400 403 406 407 408 412 416 35 418 423 427 429 431Used by:475
Symbol 433 BitmapUsed by:434
Symbol 434 GraphicUses:433Used by:475
Symbol 435 GraphicUsed by:438
Symbol 436 GraphicUsed by:437
Symbol 437 MovieClipUses:436Used by:438
Symbol 438 MovieClipUses:435 437Used by:475
Symbol 439 GraphicUsed by:440
Symbol 440 MovieClipUses:439Used by:475
Symbol 441 FontUsed by:442
Symbol 442 TextUses:441Used by:443 445
Symbol 443 MovieClipUses:442Used by:445
Symbol 444 GraphicUsed by:445 449 601
Symbol 445 ButtonUses:443 444 442Used by:475
Symbol 446 FontUsed by:447
Symbol 447 TextUses:446Used by:448 449
Symbol 448 MovieClipUses:447Used by:449
Symbol 449 ButtonUses:448 444 447Used by:475
Symbol 450 FontUsed by:451 452 456 498 500 503 505 508 510 513 515 598 599 600
Symbol 451 EditableTextUses:450Used by:475
Symbol 452 EditableTextUses:450Used by:475
Symbol 453 EditableTextUses:94Used by:475
Symbol 454 EditableTextUses:94Used by:475
Symbol 455 EditableTextUses:94Used by:475
Symbol 456 EditableTextUses:450Used by:475
Symbol 457 GraphicUsed by:458
Symbol 458 MovieClipUses:457Used by:465
Symbol 459 GraphicUsed by:465
Symbol 460 GraphicUsed by:465
Symbol 461 EditableTextUses:94Used by:462
Symbol 462 MovieClip {noelia_chef2_fla.pausa__mc_146}Uses:461Used by:463
Symbol 463 MovieClip {noelia_chef2_fla.pausaChico_mc_145}Uses:462Used by:465
Symbol 464 GraphicUsed by:465
Symbol 465 ButtonUses:458 459 460 463 464 48Used by:474
Symbol 466 GraphicUsed by:473
Symbol 467 GraphicUsed by:473
Symbol 468 EditableTextUses:94Used by:469
Symbol 469 MovieClip {noelia_chef2_fla.play__mc_149}Uses:468Used by:470
Symbol 470 MovieClip {noelia_chef2_fla.textoPlay_148}Uses:469Used by:473
Symbol 471 GraphicUsed by:473
Symbol 472 GraphicUsed by:473
Symbol 473 ButtonUses:466 467 470 471 472 48Used by:474
Symbol 474 MovieClip {noelia_chef2_fla.pausa_mc_142}Uses:465 473Used by:475
Symbol 475 MovieClip {paneles.PanelJuego}Uses:380 432 434 423 438 440 445 449 451 452 453 454 455 456 474 22
Symbol 476 GraphicUsed by:479
Symbol 477 GraphicUsed by:479
Symbol 478 MovieClipUses:21Used by:479
Symbol 479 MovieClip {barraprogreso}Uses:476 12 477 478
Symbol 480 BitmapUsed by:481
Symbol 481 GraphicUses:480Used by:485
Symbol 482 GraphicUsed by:483
Symbol 483 MovieClipUses:482Used by:485
Symbol 484 GraphicUsed by:485
Symbol 485 Button {botonFrancia}Uses:481 483 484 48
Symbol 486 BitmapUsed by:487
Symbol 487 GraphicUses:486Used by:531
Symbol 488 BitmapUsed by:489
Symbol 489 GraphicUses:488Used by:490
Symbol 490 MovieClipUses:489Used by:531
Symbol 491 MovieClipUses:418Used by:531
Symbol 492 BitmapUsed by:493
Symbol 493 GraphicUses:492Used by:531
Symbol 494 MovieClipUses:33Used by:531
Symbol 495 BitmapUsed by:496
Symbol 496 GraphicUses:495Used by:497
Symbol 497 MovieClipUses:496Used by:531
Symbol 498 EditableTextUses:450Used by:499 502
Symbol 499 MovieClip {noelia_chef2_fla.menuJugar_mc_78}Uses:498Used by:502
Symbol 500 EditableTextUses:450Used by:501
Symbol 501 MovieClip {noelia_chef2_fla.menu_jugar_mc_over_79}Uses:500Used by:502
Symbol 502 ButtonUses:499 501 498 48Used by:518
Symbol 503 EditableTextUses:450Used by:504 507
Symbol 504 MovieClip {noelia_chef2_fla.menu_masjuegos_mc_81}Uses:503Used by:507
Symbol 505 EditableTextUses:450Used by:506
Symbol 506 MovieClip {noelia_chef2_fla.menu_82}Uses:505Used by:507
Symbol 507 ButtonUses:504 506 503 48Used by:518
Symbol 508 EditableTextUses:450Used by:509 512
Symbol 509 MovieClip {noelia_chef2_fla.menudescargar_mc_84}Uses:508Used by:512
Symbol 510 EditableTextUses:450Used by:511
Symbol 511 MovieClip {noelia_chef2_fla.menudescargar_over_85}Uses:510Used by:512
Symbol 512 ButtonUses:509 511 508 48Used by:518
Symbol 513 EditableTextUses:450Used by:514 517
Symbol 514 MovieClipUses:513Used by:517
Symbol 515 EditableTextUses:450Used by:516
Symbol 516 MovieClipUses:515Used by:517
Symbol 517 ButtonUses:514 516 513 48Used by:518
Symbol 518 MovieClip {botonesMenu1}Uses:502 507 512 517Used by:531
Symbol 519 BitmapUsed by:520
Symbol 520 GraphicUses:519Used by:521
Symbol 521 MovieClipUses:520Used by:531
Symbol 522 BitmapUsed by:523
Symbol 523 GraphicUses:522Used by:524
Symbol 524 MovieClipUses:523Used by:531
Symbol 525 BitmapUsed by:526
Symbol 526 GraphicUses:525Used by:527
Symbol 527 MovieClipUses:526Used by:531
Symbol 528 BitmapUsed by:529
Symbol 529 GraphicUses:528Used by:530
Symbol 530 MovieClipUses:529Used by:531
Symbol 531 MovieClip {paneles.PanelMenu}Uses:487 490 491 493 494 497 423 518 22 521 524 527 530
Symbol 532 GraphicUsed by:533
Symbol 533 MovieClipUses:532Used by:537 569 583 592 603 619 648 661
Symbol 534 EditableTextUses:94Used by:537
Symbol 535 EditableTextUses:94Used by:537
Symbol 536 EditableTextUses:94Used by:537
Symbol 537 MovieClip {NivelCompleto}Uses:533 534 535 536
Symbol 538 GraphicUsed by:568 582 602 618
Symbol 539 BitmapUsed by:540 546
Symbol 540 GraphicUses:539Used by:568 582 602 618
Symbol 541 EditableTextUses:94Used by:544
Symbol 542 EditableTextUses:94Used by:544
Symbol 543 EditableTextUses:94Used by:544
Symbol 544 MovieClip {noelia_chef2_fla.textos_final_100}Uses:541 542 543Used by:568
Symbol 545 GraphicUsed by:568 582 602 618
Symbol 546 GraphicUses:539Used by:568 582 602 618
Symbol 547 EditableTextUses:94Used by:548 551
Symbol 548 MovieClip {noelia_chef2_fla.textJugarBORRAR_46}Uses:547Used by:551
Symbol 549 EditableTextUses:94Used by:550
Symbol 550 MovieClip {noelia_chef2_fla.jugarNuevo_over_47}Uses:549Used by:551
Symbol 551 ButtonUses:548 550 547 48Used by:562 582 648 661
Symbol 552 EditableTextUses:94Used by:553 556
Symbol 553 MovieClip {noelia_chef2_fla.enviarPuntaje_mc_50}Uses:552Used by:556
Symbol 554 EditableTextUses:94Used by:555
Symbol 555 MovieClip {noelia_chef2_fla.enviarPuntaje_mc_over_51}Uses:554Used by:556
Symbol 556 ButtonUses:553 555 552 48Used by:562 648 661
Symbol 557 EditableTextUses:94Used by:558 561
Symbol 558 MovieClip {noelia_chef2_fla.masJuegos_mc_40}Uses:557Used by:561
Symbol 559 EditableTextUses:94Used by:560
Symbol 560 MovieClip {noelia_chef2_fla.masjuegos_mc_over_41}Uses:559Used by:561
Symbol 561 ButtonUses:558 560 557 48Used by:562 582 648 661
Symbol 562 MovieClipUses:551 556 561Used by:568
Symbol 563 BitmapUsed by:564 566
Symbol 564 GraphicUses:563Used by:565
Symbol 565 MovieClipUses:564Used by:568 582 602 618
Symbol 566 GraphicUses:563Used by:567
Symbol 567 MovieClipUses:566Used by:568 582 602 618
Symbol 568 MovieClip {noelia_chef2_fla.pop_up_99}Uses:538 540 544 545 546 562 565 567Used by:569
Symbol 569 MovieClip {Final}Uses:533 568 22
Symbol 570 EditableTextUses:94Used by:582
Symbol 571 EditableTextUses:94Used by:572
Symbol 572 MovieClip {noelia_chef2_fla.top10_mc_92}Uses:571Used by:582
Symbol 573 EditableTextUses:94Used by:574
Symbol 574 MovieClip {noelia_chef2_fla.nick_mc_93}Uses:573Used by:582
Symbol 575 EditableTextUses:94Used by:576
Symbol 576 MovieClip {noelia_chef2_fla.puntaje_mc_94}Uses:575Used by:582
Symbol 577 EditableTextUses:94Used by:578 581
Symbol 578 MovieClip {noelia_chef2_fla.cerrar_mc_96}Uses:577Used by:581
Symbol 579 EditableTextUses:94Used by:580
Symbol 580 MovieClip {noelia_chef2_fla.cerrar_mc_over_97}Uses:579Used by:581
Symbol 581 ButtonUses:578 580 577 48Used by:582
Symbol 582 MovieClip {noelia_chef2_fla.topTEN_91}Uses:538 540 570 572 574 576 545 546 581 551 561 565 567Used by:583
Symbol 583 MovieClip {PuntajesFinal}Uses:533 582
Symbol 584 BitmapUsed by:585
Symbol 585 GraphicUses:584Used by:586
Symbol 586 MovieClip {Cursor}Uses:585
Symbol 587 EditableTextUses:94Used by:592
Symbol 588 EditableTextUses:94Used by:592
Symbol 589 EditableTextUses:94Used by:592
Symbol 590 EditableTextUses:94Used by:592
Symbol 591 EditableTextUses:94Used by:592
Symbol 592 MovieClip {ComienzaNivel}Uses:533 587 588 589 590 591 22
Symbol 593 EditableTextUses:94Used by:602
Symbol 594 EditableTextUses:94Used by:602
Symbol 595 EditableTextUses:94Used by:602
Symbol 596 EditableTextUses:94Used by:602
Symbol 597 EditableTextUses:94Used by:602
Symbol 598 EditableTextUses:450Used by:602
Symbol 599 EditableTextUses:450Used by:602
Symbol 600 EditableTextUses:450Used by:602
Symbol 601 ButtonUses:444 103Used by:602
Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73}Uses:538 540 593 594 545 546 595 596 597 598 599 600 565 567 601Used by:603
Symbol 603 MovieClip {NivelCompleto2}Uses:533 602
Symbol 604 BitmapUsed by:605
Symbol 605 GraphicUses:604Used by:606
Symbol 606 MovieClip {Fondo}Uses:605
Symbol 607 EditableTextUses:94Used by:608
Symbol 608 MovieClip {noelia_chef2_fla.txtinst_mc_63}Uses:607Used by:618
Symbol 609 EditableTextUses:94Used by:610
Symbol 610 MovieClip {noelia_chef2_fla.inst1_mc_64}Uses:609Used by:618
Symbol 611 EditableTextUses:94Used by:612 615
Symbol 612 MovieClip {noelia_chef2_fla.jugar_mc_66}Uses:611Used by:615
Symbol 613 EditableTextUses:94Used by:614
Symbol 614 MovieClip {noelia_chef2_fla.jugar_mc_over_67}Uses:613Used by:615
Symbol 615 ButtonUses:612 614 611 48Used by:618
Symbol 616 EditableTextUses:94Used by:617
Symbol 617 MovieClip {noelia_chef2_fla.inst2_mc_68}Uses:616Used by:618
Symbol 618 MovieClip {noelia_chef2_fla.instrucciones_mc_62}Uses:538 540 608 610 545 546 615 617 565 567Used by:619
Symbol 619 MovieClip {Instrucciones}Uses:533 618 22
Symbol 620 EditableTextUses:94Used by:648
Symbol 621 EditableTextUses:94Used by:648
Symbol 622 EditableTextUses:94Used by:625
Symbol 623 EditableTextUses:94Used by:625
Symbol 624 EditableTextUses:94Used by:625
Symbol 625 MovieClip {noelia_chef2_fla.restan_mc_57}Uses:622 623 624Used by:648
Symbol 626 EditableTextUses:94Used by:648
Symbol 627 EditableTextUses:94Used by:628 632
Symbol 628 MovieClip {noelia_chef2_fla.Symbol1_59}Uses:627Used by:632
Symbol 629 EditableTextUses:94Used by:630
Symbol 630 MovieClip {noelia_chef2_fla.continuar_over_60}Uses:629Used by:632
Symbol 631 SoundUsed by:632
Symbol 632 ButtonUses:628 630 627 631Used by:648
Symbol 633 EditableTextUses:94Used by:648
Symbol 634 EditableTextUses:94Used by:648
Symbol 635 EditableTextUses:94Used by:639
Symbol 636 EditableTextUses:94Used by:639
Symbol 637 EditableTextUses:94Used by:639
Symbol 638 EditableTextUses:94Used by:639
Symbol 639 ButtonUses:635 636 637 638 48Used by:648 661
Symbol 640 EditableTextUses:94Used by:641 644
Symbol 641 MovieClip {noelia_chef2_fla.descargar_mc_43}Uses:640Used by:644
Symbol 642 EditableTextUses:94Used by:643
Symbol 643 MovieClip {noelia_chef2_fla.descargar_mc_over_44}Uses:642Used by:644
Symbol 644 ButtonUses:641 643 640 48Used by:648 661
Symbol 645 EditableTextUses:94Used by:648
Symbol 646 EditableTextUses:94Used by:648
Symbol 647 EditableTextUses:94Used by:648
Symbol 648 MovieClip {GameOver}Uses:533 620 621 625 626 632 633 634 639 556 551 561 644 22 645 646 647
Symbol 649 GraphicUsed by:655
Symbol 650 EditableTextUses:94Used by:651
Symbol 651 MovieClip {noelia_chef2_fla.pausaGrande2_mc_54}Uses:650Used by:652
Symbol 652 MovieClip {noelia_chef2_fla.pausaGrande_mc_53}Uses:651Used by:655
Symbol 653 GraphicUsed by:654
Symbol 654 MovieClipUses:653Used by:655
Symbol 655 MovieClip {Deshabilitado}Uses:649 652 654
Symbol 656 EditableTextUses:94Used by:661
Symbol 657 EditableTextUses:94Used by:661
Symbol 658 EditableTextUses:94Used by:661
Symbol 659 EditableTextUses:94Used by:661
Symbol 660 EditableTextUses:94Used by:661
Symbol 661 MovieClip {GameOver2}Uses:533 656 561 644 551 657 658 639 659 660 556 22

Instance Names

"panel"Frame 1Symbol 91 MovieClip {cargador.CargadorPrincipal}
"cargando"Symbol 5 MovieClip Frame 1Symbol 4 EditableText
"cargando"Symbol 7 MovieClip Frame 1Symbol 6 EditableText
"cargando"Symbol 9 MovieClip Frame 1Symbol 8 EditableText
"cargando"Symbol 11 MovieClip Frame 1Symbol 10 EditableText
"texto"Symbol 12 MovieClip {txtCargando} Frame 1Symbol 5 MovieClip
"btnNoelia"Symbol 50 MovieClip {banner} Frame 1Symbol 49 Button
"textoLoading"Symbol 60 MovieClip {Monitor} Frame 1Symbol 12 MovieClip {txtCargando}
"barraProgreso"Symbol 60 MovieClip {Monitor} Frame 1Symbol 14 MovieClip
"botonEnglish"Symbol 90 MovieClip {SelectIdioma} Frame 1Symbol 78 Button {botonIngles}
"botonPortugues"Symbol 90 MovieClip {SelectIdioma} Frame 1Symbol 84 Button {botonBrasil}
"botonEspañol"Symbol 90 MovieClip {SelectIdioma} Frame 1Symbol 89 Button {botonEspaniol}
"cargadorSprite"Symbol 91 MovieClip {cargador.CargadorPrincipal} Frame 1Symbol 60 MovieClip {Monitor}
"selectorSprite"Symbol 91 MovieClip {cargador.CargadorPrincipal} Frame 1Symbol 90 MovieClip {SelectIdioma}
"cartaPortada"Symbol 375 MovieClip {Card} Frame 1Symbol 230 MovieClip {noelia_chef2_fla.cartasportada_152}
"btnNoelia"Symbol 423 MovieClip {noelia_chef2_fla.noelia_mc2_108} Frame 1Symbol 422 Button
"slider_mc"Symbol 438 MovieClip Frame 1Symbol 437 MovieClip
"textoPausa"Symbol 462 MovieClip {noelia_chef2_fla.pausa__mc_146} Frame 1Symbol 461 EditableText
"textoPlay"Symbol 469 MovieClip {noelia_chef2_fla.play__mc_149} Frame 1Symbol 468 EditableText
"track_mc"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 438 MovieClip
"btnMenos"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 445 Button
"btnMas"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 449 Button
"puntaje"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 451 EditableText
"tiempo"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 452 EditableText
"textoTime"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 453 EditableText
"textoScore"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 454 EditableText
"textoNivelSolo"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 455 EditableText
"nivel1"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 456 EditableText
"btnPausa"Symbol 475 MovieClip {paneles.PanelJuego} Frame 1Symbol 474 MovieClip {noelia_chef2_fla.pausa_mc_142}
"cargando"Symbol 479 MovieClip {barraprogreso} Frame 1Symbol 12 MovieClip {txtCargando}
"jugar"Symbol 499 MovieClip {noelia_chef2_fla.menuJugar_mc_78} Frame 1Symbol 498 EditableText
"jugar"Symbol 501 MovieClip {noelia_chef2_fla.menu_jugar_mc_over_79} Frame 1Symbol 500 EditableText
"masJuegos"Symbol 504 MovieClip {noelia_chef2_fla.menu_masjuegos_mc_81} Frame 1Symbol 503 EditableText
"masJuegos"Symbol 506 MovieClip {noelia_chef2_fla.menu_82} Frame 1Symbol 505 EditableText
"descargar"Symbol 509 MovieClip {noelia_chef2_fla.menudescargar_mc_84} Frame 1Symbol 508 EditableText
"descargar"Symbol 511 MovieClip {noelia_chef2_fla.menudescargar_over_85} Frame 1Symbol 510 EditableText
"jugar"Symbol 514 MovieClip Frame 1Symbol 513 EditableText
"jugar"Symbol 516 MovieClip Frame 1Symbol 515 EditableText
"btnJugar"Symbol 518 MovieClip {botonesMenu1} Frame 1Symbol 502 Button
"btnMasJuegos"Symbol 518 MovieClip {botonesMenu1} Frame 1Symbol 507 Button
"btnDescargar"Symbol 518 MovieClip {botonesMenu1} Frame 1Symbol 512 Button
"btnTopTen"Symbol 518 MovieClip {botonesMenu1} Frame 1Symbol 517 Button
"botonesMenu"Symbol 531 MovieClip {paneles.PanelMenu} Frame 1Symbol 518 MovieClip {botonesMenu1}
"nivel1"Symbol 537 MovieClip {NivelCompleto} Frame 1Symbol 534 EditableText
"textoNivelSolo"Symbol 537 MovieClip {NivelCompleto} Frame 1Symbol 535 EditableText
"txtCompleto"Symbol 537 MovieClip {NivelCompleto} Frame 1Symbol 536 EditableText
"textoFelicita"Symbol 544 MovieClip {noelia_chef2_fla.textos_final_100} Frame 1Symbol 541 EditableText
"textoHasganado"Symbol 544 MovieClip {noelia_chef2_fla.textos_final_100} Frame 1Symbol 542 EditableText
"txtNombre"Symbol 544 MovieClip {noelia_chef2_fla.textos_final_100} Frame 1Symbol 543 EditableText
"jugarNuevo"Symbol 548 MovieClip {noelia_chef2_fla.textJugarBORRAR_46} Frame 1Symbol 547 EditableText
"jugarNuevo"Symbol 550 MovieClip {noelia_chef2_fla.jugarNuevo_over_47} Frame 1Symbol 549 EditableText
"enviarPuntaje"Symbol 553 MovieClip {noelia_chef2_fla.enviarPuntaje_mc_50} Frame 1Symbol 552 EditableText
"enviarPuntaje"Symbol 555 MovieClip {noelia_chef2_fla.enviarPuntaje_mc_over_51} Frame 1Symbol 554 EditableText
"masJuegos"Symbol 558 MovieClip {noelia_chef2_fla.masJuegos_mc_40} Frame 1Symbol 557 EditableText
"masJuegos"Symbol 560 MovieClip {noelia_chef2_fla.masjuegos_mc_over_41} Frame 1Symbol 559 EditableText
"btnJugar"Symbol 562 MovieClip Frame 1Symbol 551 Button
"btnPuntaje"Symbol 562 MovieClip Frame 1Symbol 556 Button
"btnMasJuegos"Symbol 562 MovieClip Frame 1Symbol 561 Button
"texto1"Symbol 568 MovieClip {noelia_chef2_fla.pop_up_99} Frame 1Symbol 544 MovieClip {noelia_chef2_fla.textos_final_100}
"texto2"Symbol 568 MovieClip {noelia_chef2_fla.pop_up_99} Frame 1Symbol 562 MovieClip
"pop"Symbol 569 MovieClip {Final} Frame 1Symbol 568 MovieClip {noelia_chef2_fla.pop_up_99}
"textoTop"Symbol 572 MovieClip {noelia_chef2_fla.top10_mc_92} Frame 1Symbol 571 EditableText
"textoNick"Symbol 574 MovieClip {noelia_chef2_fla.nick_mc_93} Frame 1Symbol 573 EditableText
"textoPuntaje"Symbol 576 MovieClip {noelia_chef2_fla.puntaje_mc_94} Frame 1Symbol 575 EditableText
"textoCerrar"Symbol 578 MovieClip {noelia_chef2_fla.cerrar_mc_96} Frame 1Symbol 577 EditableText
"textoCerrar"Symbol 580 MovieClip {noelia_chef2_fla.cerrar_mc_over_97} Frame 1Symbol 579 EditableText
"textoNum"Symbol 582 MovieClip {noelia_chef2_fla.topTEN_91} Frame 1Symbol 570 EditableText
"btnCerrar"Symbol 582 MovieClip {noelia_chef2_fla.topTEN_91} Frame 1Symbol 581 Button
"btnJugar"Symbol 582 MovieClip {noelia_chef2_fla.topTEN_91} Frame 1Symbol 551 Button
"btnMasJuegos"Symbol 582 MovieClip {noelia_chef2_fla.topTEN_91} Frame 1Symbol 561 Button
"fondo"Symbol 583 MovieClip {PuntajesFinal} Frame 1Symbol 533 MovieClip
"top"Symbol 583 MovieClip {PuntajesFinal} Frame 1Symbol 582 MovieClip {noelia_chef2_fla.topTEN_91}
"nivel1"Symbol 592 MovieClip {ComienzaNivel} Frame 1Symbol 587 EditableText
"textoNivelSolo"Symbol 592 MovieClip {ComienzaNivel} Frame 1Symbol 588 EditableText
"textoTienes"Symbol 592 MovieClip {ComienzaNivel} Frame 1Symbol 589 EditableText
"textoTienes2"Symbol 592 MovieClip {ComienzaNivel} Frame 1Symbol 590 EditableText
"textoSegundos"Symbol 592 MovieClip {ComienzaNivel} Frame 1Symbol 591 EditableText
"textoNivel"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 593 EditableText
"textoContinuar"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 594 EditableText
"textoScore"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 595 EditableText
"textoTime"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 596 EditableText
"textoTotal"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 597 EditableText
"txtPuntos"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 598 EditableText
"txtTiempo"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 599 EditableText
"txtTotal"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 600 EditableText
"btnNivel"Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73} Frame 1Symbol 601 Button
"perg"Symbol 603 MovieClip {NivelCompleto2} Frame 1Symbol 602 MovieClip {noelia_chef2_fla.nivelcompleot_mc_73}
"textoInstrucciones"Symbol 608 MovieClip {noelia_chef2_fla.txtinst_mc_63} Frame 1Symbol 607 EditableText
"textoIns1"Symbol 610 MovieClip {noelia_chef2_fla.inst1_mc_64} Frame 1Symbol 609 EditableText
"jugar"Symbol 612 MovieClip {noelia_chef2_fla.jugar_mc_66} Frame 1Symbol 611 EditableText
"jugar"Symbol 614 MovieClip {noelia_chef2_fla.jugar_mc_over_67} Frame 1Symbol 613 EditableText
"textoIns2"Symbol 617 MovieClip {noelia_chef2_fla.inst2_mc_68} Frame 1Symbol 616 EditableText
"btnJugar"Symbol 618 MovieClip {noelia_chef2_fla.instrucciones_mc_62} Frame 1Symbol 615 Button
"panel"Symbol 619 MovieClip {Instrucciones} Frame 1Symbol 618 MovieClip {noelia_chef2_fla.instrucciones_mc_62}
"textoRestan"Symbol 625 MovieClip {noelia_chef2_fla.restan_mc_57} Frame 1Symbol 622 EditableText
"textoContinuar2"Symbol 625 MovieClip {noelia_chef2_fla.restan_mc_57} Frame 1Symbol 623 EditableText
"txtCont"Symbol 625 MovieClip {noelia_chef2_fla.restan_mc_57} Frame 1Symbol 624 EditableText
"textoContinuar"Symbol 628 MovieClip {noelia_chef2_fla.Symbol1_59} Frame 1Symbol 627 EditableText
"textoContinuar"Symbol 630 MovieClip {noelia_chef2_fla.continuar_over_60} Frame 1Symbol 629 EditableText
"descargar"Symbol 641 MovieClip {noelia_chef2_fla.descargar_mc_43} Frame 1Symbol 640 EditableText
"descargar"Symbol 643 MovieClip {noelia_chef2_fla.descargar_mc_over_44} Frame 1Symbol 642 EditableText
"textoContinuar3"Symbol 648 MovieClip {GameOver} Frame 1Symbol 620 EditableText
"txtCont"Symbol 648 MovieClip {GameOver} Frame 1Symbol 621 EditableText
"txtRestan"Symbol 648 MovieClip {GameOver} Frame 1Symbol 625 MovieClip {noelia_chef2_fla.restan_mc_57}
"textoTermino"Symbol 648 MovieClip {GameOver} Frame 1Symbol 626 EditableText
"btnContinuar"Symbol 648 MovieClip {GameOver} Frame 1Symbol 632 Button
"textoGameOver2"Symbol 648 MovieClip {GameOver} Frame 1Symbol 633 EditableText
"textoGameOver3"Symbol 648 MovieClip {GameOver} Frame 1Symbol 634 EditableText
"btnTop10"Symbol 648 MovieClip {GameOver} Frame 1Symbol 639 Button
"btnEnviarPuntaje"Symbol 648 MovieClip {GameOver} Frame 1Symbol 556 Button
"btnEmpezar"Symbol 648 MovieClip {GameOver} Frame 1Symbol 551 Button
"btnMasJuegos"Symbol 648 MovieClip {GameOver} Frame 1Symbol 561 Button
"btnDescargar"Symbol 648 MovieClip {GameOver} Frame 1Symbol 644 Button
"textoGameOver"Symbol 648 MovieClip {GameOver} Frame 2Symbol 645 EditableText
"textoPuntajeEs"Symbol 648 MovieClip {GameOver} Frame 2Symbol 646 EditableText
"txtPuntos"Symbol 648 MovieClip {GameOver} Frame 2Symbol 647 EditableText
"textoPausa"Symbol 651 MovieClip {noelia_chef2_fla.pausaGrande2_mc_54} Frame 1Symbol 650 EditableText
"cont2"Symbol 655 MovieClip {Deshabilitado} Frame 1Symbol 654 MovieClip
"textoGameOver"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 656 EditableText
"btnMasJuegos"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 561 Button
"btnDescargar"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 644 Button
"btnEmpezar"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 551 Button
"textoGameOver2"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 657 EditableText
"textoGameOver3"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 658 EditableText
"btnTop10"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 639 Button
"textoPuntajeEs"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 659 EditableText
"txtPuntos"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 660 EditableText
"btnEnviarPuntaje"Symbol 661 MovieClip {GameOver2} Frame 1Symbol 556 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 11284 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmln ..."
Protect (24)Timeline Frame 10 bytes ""

Labels

"star_1fx"Symbol 427 MovieClip Frame 1
"finLoader"Symbol 479 MovieClip {barraprogreso} Frame 100




http://swfchan.com/22/109838/info.shtml
Created: 14/3 -2019 03:08:17 Last modified: 14/3 -2019 03:08:17 Server time: 22/12 -2024 19:36:16