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

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

Lisa-Famous-Tacos.swf

This is the info page for
Flash #108079

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


Text
PLAY

GAME

PLAY MORE

GAMES

YOUR FINAL SCORE:

<p align="center"><font face="Arial" size="35" color="#e2001a" letterSpacing="0.000000" kerning="1"><b><i>0</i></b></font></p>

PLAY

AGAIN

exit

<p align="left"></p>

<p align="right"></p>

<p align="center"></p>

NEXT

POINTS

BONUS

TIME

TOTAL

POINTS

BONUS

TIME

TOTAL

<p align="left"><font face="Arial" size="35" color="#e2001a" letterSpacing="0.000000" kerning="1"><b><i>0</i></b></font></p>

<p align="left"><font face="Arial" size="35" color="#e2001a" letterSpacing="0.000000" kerning="1"><b><i>0</i></b></font></p>

<p align="left"><font face="Arial" size="35" color="#e2001a" letterSpacing="0.000000" kerning="1"><b><i>0</i></b></font></p>

<p align="left"><font face="Arial" size="35" color="#e2001a" letterSpacing="0.000000" kerning="1"><b><i>0</i></b></font></p>

NO
TIME-BONUS

ActionScript [AS3]

Section 1
//ESound (cerebral.utils.ESound) package cerebral.utils { import flash.events.*; import flash.media.*; public class ESound { public var m_Sound:Sound; public var m_SoundChannel:SoundChannel; public var m_volume:Number; public var m_StartTime:Number; public var m_Times:Number; public var m_Persistent:Boolean; public var m_SoundClass:Class; public static var m_soundList:Array = new Array(); public static var m_muteVolumeFactor:Number = 1; public static var m_soundVol:SoundTransform = new SoundTransform(); public function ESound(_arg1:Class, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0, _arg5:Boolean=false){ m_SoundClass = _arg1; m_Sound = new (_arg1); m_volume = _arg2; m_StartTime = _arg3; m_Times = _arg4; m_Persistent = _arg5; } public function StartSound(){ var Trans:SoundTransform = new SoundTransform(m_volume); m_SoundChannel = m_Sound.play(m_StartTime, m_Times); m_SoundChannel.soundTransform = Trans; if (!m_Persistent){ with ({}) { with ({}) { !ERROR!.Remove = function (_arg1:Event=null){ ESound.RemoveSound(m_SoundChannel); }; }; m_SoundChannel.addEventListener(Event.SOUND_COMPLETE, function (_arg1:Event=null){ ESound.RemoveSound(m_SoundChannel); }); }; } public static function NewESound(_arg1:Class, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0, _arg5:Boolean=false):ESound{ var _local6:ESound; if (_arg1 != null){ _local6 = new ESound(_arg1, _arg2, _arg3, _arg4, _arg5); m_soundList.push(_local6); return (_local6); }; return (null); } public static function RemoveSound(_arg1){ var _local2:int; var _local3:SoundChannel; var _local4:ESound; if (_arg1 == null){ return; }; if ((_arg1 is SoundChannel)){ _local3 = (_arg1 as SoundChannel); _local2 = 0; while (_local2 < m_soundList.length) { if (m_soundList[_local2].m_SoundChannel == _local3){ m_soundList[_local2].m_SoundChannel.stop(); m_soundList.splice(_local2, 1); return; }; _local2++; }; } else { if ((_arg1 is ESound)){ _local4 = (_arg1 as ESound); _local2 = 0; while (_local2 < m_soundList.length) { if (m_soundList[_local2] == _local4){ m_soundList[_local2].m_SoundChannel.stop(); m_soundList.splice(_local2, 1); return; }; _local2++; }; }; }; } public static function Mute(_arg1:Event=null){ m_muteVolumeFactor = ((m_muteVolumeFactor)==1) ? 0 : 1; m_soundVol.volume = m_muteVolumeFactor; SoundMixer.soundTransform = m_soundVol; } } }//package cerebral.utils
Section 2
//NumberUtils (cerebral.utils.NumberUtils) package cerebral.utils { import flash.display.*; public class NumberUtils { public static function formatNumber(_arg1:Number, _arg2:String="", _arg3:String="", _arg4:String=","){ _arg2 = ((_arg2) || ("")); var _local5:* = _arg1.toString(); var _local6:* = _local5.split("."); var _local7:* = _local6[0]; var _local8:* = ((_local6.length > 1)) ? ("." + _local6[1]) : ""; var _local9:* = /(\d+)(\d{3})/; while (_local9.test(_local7)) { _local7 = _local7.replace(_local9, (("$1" + _arg4) + "$2")); }; return ((((_arg2 + _local7) + _local8) + _arg3)); } public static function unformatNumber(_arg1:String):Number{ return (Number(_arg1.replace(/([^0-9\.\-])/g, ""))); } public static function getRandom(_arg1:Number, _arg2:Number):Number{ return ((_arg1 + (Math.random() * (_arg2 - _arg1)))); } public static function getDistanceClips(_arg1:DisplayObject, _arg2:DisplayObject):Number{ return (Math.sqrt((((_arg1.y - _arg2.y) * (_arg1.y - _arg2.y)) + ((_arg1.x - _arg2.x) * (_arg1.x - _arg2.x))))); } } }//package cerebral.utils
Section 3
//numStepper (cerebral.utils.numStepper) package cerebral.utils { import com.greensock.*; import flash.text.*; import com.greensock.easing.*; public class numStepper { public static function setNumber(_arg1:TextField, _arg2:int, _arg3:int, _arg4:Number, _arg5:Number=0, _arg6:Boolean=false, _arg7:String="", _arg8:String=","){ var _local9:Object = new Object(); _local9.number = _arg2; TweenLite.to(_local9, _arg4, {number:_arg3, onUpdate:setStep, onUpdateParams:[_arg1, _local9, _arg6, _arg7, _arg8], delay:_arg5, ease:Strong.easeIn}); } static function setStep(_arg1:TextField, _arg2:Object, _arg3:Boolean=false, _arg4:String="", _arg5:String=","){ if (_arg3){ _arg1.text = NumberUtils.formatNumber(Math.round(_arg2.number), "", _arg4, _arg5); } else { _arg1.text = Math.round(_arg2.number).toString(); }; } } }//package cerebral.utils
Section 4
//PropTween (com.greensock.core.PropTween) package com.greensock.core { public class PropTween { public var target:Object; public var property:String; public var start:Number; public var change:Number; public var name:String; public var priority:int; public var isPlugin:Boolean; public var nextNode:PropTween; public var prevNode:PropTween; public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){ this.target = _arg1; this.property = _arg2; this.start = _arg3; this.change = _arg4; this.name = _arg5; this.isPlugin = _arg6; if (_arg7){ _arg7.prevNode = this; this.nextNode = _arg7; }; this.priority = _arg8; } } }//package com.greensock.core
Section 5
//SimpleTimeline (com.greensock.core.SimpleTimeline) package com.greensock.core { public class SimpleTimeline extends TweenCore { protected var _firstChild:TweenCore; protected var _lastChild:TweenCore; public var autoRemoveChildren:Boolean; public function SimpleTimeline(_arg1:Object=null){ super(0, _arg1); } public function addChild(_arg1:TweenCore):void{ if (_arg1.timeline){ _arg1.timeline.remove(_arg1, true); }; _arg1.timeline = this; if (_arg1.gc){ _arg1.setEnabled(true, true); }; if (_firstChild){ _firstChild.prevNode = _arg1; _arg1.nextNode = _firstChild; } else { _arg1.nextNode = null; }; _firstChild = _arg1; _arg1.prevNode = null; } public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{ if (((!(_arg1.gc)) && (!(_arg2)))){ _arg1.setEnabled(false, true); }; if (_arg1.nextNode){ _arg1.nextNode.prevNode = _arg1.prevNode; } else { if (_lastChild == _arg1){ _lastChild = _arg1.prevNode; }; }; if (_arg1.prevNode){ _arg1.prevNode.nextNode = _arg1.nextNode; } else { if (_firstChild == _arg1){ _firstChild = _arg1.nextNode; }; }; _arg1.nextNode = (_arg1.prevNode = null); } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local5:Number; var _local6:TweenCore; var _local4:TweenCore = _firstChild; this.cachedTotalTime = _arg1; this.cachedTime = _arg1; while (_local4) { _local6 = _local4.nextNode; if (((_local4.active) || ((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))))){ if (!_local4.cachedReversed){ _local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false); } else { _local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration; _local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false); }; }; _local4 = _local6; }; } public function get rawTime():Number{ return (this.cachedTotalTime); } } }//package com.greensock.core
Section 6
//TweenCore (com.greensock.core.TweenCore) package com.greensock.core { import com.greensock.*; public class TweenCore { protected var _delay:Number; protected var _hasUpdate:Boolean; protected var _rawPrevTime:Number;// = -1 protected var _pauseTime:Number; public var vars:Object; public var active:Boolean; public var gc:Boolean; public var initted:Boolean; public var timeline:SimpleTimeline; public var cachedStartTime:Number; public var cachedTime:Number; public var cachedTotalTime:Number; public var cachedDuration:Number; public var cachedTotalDuration:Number; public var cachedTimeScale:Number; public var cachedReversed:Boolean; public var nextNode:TweenCore; public var prevNode:TweenCore; public var cacheIsDirty:Boolean; public var cachedPaused:Boolean; public var data; public static const version:Number = 1; protected static var _classInitted:Boolean; public function TweenCore(_arg1:Number=0, _arg2:Object=null){ this.vars = ((_arg2) || ({})); this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0))); _delay = ((this.vars.delay) || (0)); this.cachedTimeScale = ((this.vars.timeScale) || (1)); this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false))))); this.cachedTotalTime = (this.cachedTime = 0); this.data = this.vars.data; if (!_classInitted){ if (isNaN(TweenLite.rootFrame)){ TweenLite.initClass(); _classInitted = true; } else { return; }; }; var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline; this.cachedStartTime = (_local3.cachedTotalTime + _delay); _local3.addChild(this); if (this.vars.reversed){ this.cachedReversed = true; }; if (this.vars.paused){ this.paused = true; }; } public function play():void{ this.reversed = false; this.paused = false; } public function pause():void{ this.paused = true; } public function resume():void{ this.paused = false; } public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{ this.reversed = false; this.paused = false; this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2); } public function reverse(_arg1:Boolean=true):void{ this.reversed = true; if (_arg1){ this.paused = false; } else { if (this.gc){ this.setEnabled(true, false); }; }; } public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ } public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{ if (!_arg1){ renderTime(this.cachedTotalDuration, _arg2, false); return; }; if (this.timeline.autoRemoveChildren){ this.setEnabled(false, false); } else { this.active = false; }; if (!_arg2){ if (((((this.vars.onComplete) && ((this.cachedTime == this.cachedDuration)))) && (!(this.cachedReversed)))){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); } else { if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){ this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams); }; }; }; } public function invalidate():void{ } public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{ if (_arg1 == this.gc){ this.gc = !(_arg1); if (_arg1){ this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration)))); if (!_arg2){ this.timeline.addChild(this); }; } else { this.active = false; if (!_arg2){ this.timeline.remove(this); }; }; }; return (false); } public function kill():void{ setEnabled(false, false); } protected function setDirtyCache(_arg1:Boolean=true):void{ var _local2:TweenCore = (_arg1) ? this : this.timeline; while (_local2) { _local2.cacheIsDirty = true; _local2 = _local2.timeline; }; } protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; var _local4:Number; if (this.timeline){ _local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime; if (this.cachedReversed){ _local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration; this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale)); } else { this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale)); }; if (!this.timeline.cacheIsDirty){ setDirtyCache(false); }; if (this.cachedTotalTime != _arg1){ renderTime(_arg1, _arg2, false); }; }; } public function get delay():Number{ return (_delay); } public function set delay(_arg1:Number):void{ this.startTime = (this.startTime + (_arg1 - _delay)); _delay = _arg1; } public function get duration():Number{ return (this.cachedDuration); } public function set duration(_arg1:Number):void{ this.cachedDuration = (this.cachedTotalDuration = _arg1); setDirtyCache(false); } public function get totalDuration():Number{ return (this.cachedTotalDuration); } public function set totalDuration(_arg1:Number):void{ this.duration = _arg1; } public function get currentTime():Number{ return (this.cachedTime); } public function set currentTime(_arg1:Number):void{ setTotalTime(_arg1, false); } public function get totalTime():Number{ return (this.cachedTotalTime); } public function set totalTime(_arg1:Number):void{ setTotalTime(_arg1, false); } public function get startTime():Number{ return (this.cachedStartTime); } public function set startTime(_arg1:Number):void{ var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc))))); this.cachedStartTime = _arg1; if (_local2){ this.timeline.addChild(this); }; } public function get reversed():Boolean{ return (this.cachedReversed); } public function set reversed(_arg1:Boolean):void{ if (_arg1 != this.cachedReversed){ this.cachedReversed = _arg1; setTotalTime(this.cachedTotalTime, true); }; } public function get paused():Boolean{ return (this.cachedPaused); } public function set paused(_arg1:Boolean):void{ if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){ if (_arg1){ _pauseTime = this.timeline.rawTime; } else { this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime)); _pauseTime = NaN; setDirtyCache(false); }; this.cachedPaused = _arg1; this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration)))); }; if (((!(_arg1)) && (this.gc))){ this.setEnabled(true, false); }; } } }//package com.greensock.core
Section 7
//FastEase (com.greensock.easing.FastEase) package com.greensock.easing { import com.greensock.*; public class FastEase { public static function activateEase(_arg1:Function, _arg2:int, _arg3:uint):void{ TweenLite.fastEaseLookup[_arg1] = [_arg2, _arg3]; } public static function activate(_arg1:Array):void{ var _local3:Object; var _local2:int = _arg1.length; while (_local2--) { _local3 = _arg1[_local2]; if (_local3.hasOwnProperty("power")){ activateEase(_local3.easeIn, 1, _local3.power); activateEase(_local3.easeOut, 2, _local3.power); activateEase(_local3.easeInOut, 3, _local3.power); if (_local3.hasOwnProperty("easeNone")){ activateEase(_local3.easeNone, 1, 0); }; }; }; } } }//package com.greensock.easing
Section 8
//Linear (com.greensock.easing.Linear) package com.greensock.easing { public class Linear extends FastEase { public static const power:uint = 0; public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } } }//package com.greensock.easing
Section 9
//Strong (com.greensock.easing.Strong) package com.greensock.easing { public class Strong extends FastEase { public static const power:uint = 4; public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 * 0.5)); if (_arg1 < 1){ return ((((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 * 0.5) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } } }//package com.greensock.easing
Section 10
//TweenEvent (com.greensock.events.TweenEvent) package com.greensock.events { import flash.events.*; public class TweenEvent extends Event { public static const VERSION:Number = 1; public static const START:String = "init"; public static const UPDATE:String = "change"; public static const COMPLETE:String = "complete"; public static const REVERSE_COMPLETE:String = "reverseComplete"; public static const REPEAT:String = "repeat"; public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function clone():Event{ return (new TweenEvent(this.type, this.bubbles, this.cancelable)); } } }//package com.greensock.events
Section 11
//AutoAlphaPlugin (com.greensock.plugins.AutoAlphaPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; public class AutoAlphaPlugin extends TweenPlugin { protected var _target:Object; protected var _ignoreVisible:Boolean; public static const API:Number = 1; public function AutoAlphaPlugin(){ this.propName = "autoAlpha"; this.overwriteProps = ["alpha", "visible"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha"); return (true); } override public function killProps(_arg1:Object):void{ super.killProps(_arg1); _ignoreVisible = Boolean(("visible" in _arg1)); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); if (!_ignoreVisible){ _target.visible = Boolean(!((_target.alpha == 0))); }; } } }//package com.greensock.plugins
Section 12
//BevelFilterPlugin (com.greensock.plugins.BevelFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import flash.filters.*; public class BevelFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["distance", "angle", "highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY", "strength", "quality"]; 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))), _propNames); return (true); } } }//package com.greensock.plugins
Section 13
//BezierPlugin (com.greensock.plugins.BezierPlugin) package com.greensock.plugins { import com.greensock.*; import com.greensock.core.*; public class BezierPlugin extends TweenPlugin { protected var _target:Object; protected var _orientData:Array; protected var _orient:Boolean; protected var _future:Object; protected var _beziers:Object; public static const API:Number = 1; protected static const _RAD2DEG:Number = 57.2957795130823; public function BezierPlugin(){ _future = {}; super(); this.propName = "bezier"; this.overwriteProps = []; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), false); return (true); } protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{ var _local6:int; var _local7:String; var _local8:Object; _target = _arg1.target; var _local4:Object = ((_arg1.vars.isTV)==true) ? _arg1.vars.exposedVars : _arg1.vars; if (_local4.orientToBezier == true){ _orientData = [["x", "y", "rotation", 0, 0.01]]; _orient = true; } else { if ((_local4.orientToBezier is Array)){ _orientData = _local4.orientToBezier; _orient = true; }; }; var _local5:Object = {}; _local6 = 0; while (_local6 < _arg2.length) { for (_local7 in _arg2[_local6]) { if (_local5[_local7] == undefined){ _local5[_local7] = [_arg1.target[_local7]]; }; if (typeof(_arg2[_local6][_local7]) == "number"){ _local5[_local7].push(_arg2[_local6][_local7]); } else { _local5[_local7].push((_arg1.target[_local7] + Number(_arg2[_local6][_local7]))); }; }; _local6++; }; for (_local7 in _local5) { this.overwriteProps[this.overwriteProps.length] = _local7; if (_local4[_local7] != undefined){ if (typeof(_local4[_local7]) == "number"){ _local5[_local7].push(_local4[_local7]); } else { _local5[_local7].push((_arg1.target[_local7] + Number(_local4[_local7]))); }; _local8 = {}; _local8[_local7] = true; _arg1.killVars(_local8, false); delete _local4[_local7]; }; }; _beziers = parseBeziers(_local5, _arg3); } override public function killProps(_arg1:Object):void{ var _local2:String; for (_local2 in _beziers) { if ((_local2 in _arg1)){ delete _beziers[_local2]; }; }; super.killProps(_arg1); } 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:Object; var _local9:Number; var _local10:Number; var _local11:Array; var _local12:Number; var _local13:Object; var _local14:Boolean; 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]))))); _target[_local3] = ((_local7)>0) ? int((_local7 + 0.5)) : int((_local7 - 0.5)); } else { _target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); }; }; }; if (_orient){ _local2 = _orientData.length; _local8 = {}; while (_local2--) { _local11 = _orientData[_local2]; _local8[_local11[0]] = _target[_local11[0]]; _local8[_local11[1]] = _target[_local11[1]]; }; _local13 = _target; _local14 = this.round; _target = _future; this.round = false; _orient = false; _local2 = _orientData.length; while (_local2--) { _local11 = _orientData[_local2]; this.changeFactor = (_arg1 + ((_local11[4]) || (0.01))); _local12 = ((_local11[3]) || (0)); _local9 = (_future[_local11[0]] - _local8[_local11[0]]); _local10 = (_future[_local11[1]] - _local8[_local11[1]]); _local13[_local11[2]] = ((Math.atan2(_local10, _local9) * _RAD2DEG) + _local12); }; _target = _local13; this.round = _local14; _orient = true; }; } 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 com.greensock.plugins
Section 14
//BezierThroughPlugin (com.greensock.plugins.BezierThroughPlugin) package com.greensock.plugins { import com.greensock.*; public class BezierThroughPlugin extends BezierPlugin { 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 com.greensock.plugins
Section 15
//BlurFilterPlugin (com.greensock.plugins.BlurFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import flash.filters.*; public class BlurFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["blurX", "blurY", "quality"]; 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))), _propNames); return (true); } } }//package com.greensock.plugins
Section 16
//ColorMatrixFilterPlugin (com.greensock.plugins.ColorMatrixFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import flash.filters.*; public class ColorMatrixFilterPlugin extends FilterPlugin { protected var _matrix:Array; protected var _matrixTween:EndArrayPlugin; public static const API:Number = 1; private static var _propNames:Array = []; 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 _lumR:Number = 0.212671; protected static var _lumG:Number = 0.71516; 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({remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, new ColorMatrixFilter(_idMatrix.slice()), _propNames); _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 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 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 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 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 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 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)); } 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); } } }//package com.greensock.plugins
Section 17
//ColorTransformPlugin (com.greensock.plugins.ColorTransformPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import flash.geom.*; public class ColorTransformPlugin extends TintPlugin { public static const API:Number = 1; public function ColorTransformPlugin(){ this.propName = "colorTransform"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local5:String; var _local6:Number; if (!(_arg1 is DisplayObject)){ return (false); }; var _local4:ColorTransform = _arg1.transform.colorTransform; for (_local5 in _arg2) { if ((((_local5 == "tint")) || ((_local5 == "color")))){ if (_arg2[_local5] != null){ _local4.color = int(_arg2[_local5]); }; } else { if ((((((_local5 == "tintAmount")) || ((_local5 == "exposure")))) || ((_local5 == "brightness")))){ } else { _local4[_local5] = _arg2[_local5]; }; }; }; if (!isNaN(_arg2.tintAmount)){ _local6 = (_arg2.tintAmount / (1 - (((_local4.redMultiplier + _local4.greenMultiplier) + _local4.blueMultiplier) / 3))); _local4.redOffset = (_local4.redOffset * _local6); _local4.greenOffset = (_local4.greenOffset * _local6); _local4.blueOffset = (_local4.blueOffset * _local6); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - _arg2.tintAmount))); } else { if (!isNaN(_arg2.exposure)){ _local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = (0xFF * (_arg2.exposure - 1)))); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = 1)); } else { if (!isNaN(_arg2.brightness)){ _local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = Math.max(0, ((_arg2.brightness - 1) * 0xFF)))); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - Math.abs((_arg2.brightness - 1))))); }; }; }; _ignoreAlpha = Boolean(((!((_arg3.vars.alpha == undefined))) && ((_arg2.alphaMultiplier == undefined)))); init((_arg1 as DisplayObject), _local4); return (true); } } }//package com.greensock.plugins
Section 18
//DropShadowFilterPlugin (com.greensock.plugins.DropShadowFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import flash.filters.*; public class DropShadowFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["distance", "angle", "color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout", "hideObject"]; 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), _propNames); return (true); } } }//package com.greensock.plugins
Section 19
//EndArrayPlugin (com.greensock.plugins.EndArrayPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; public class EndArrayPlugin extends TweenPlugin { protected var _a:Array; protected var _info:Array; public static const API:Number = 1; public function EndArrayPlugin(){ _info = []; super(); this.propName = "endArray"; this.overwriteProps = ["endArray"]; } 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); } public function init(_arg1:Array, _arg2:Array):void{ _a = _arg1; var _local3:int = _arg2.length; while (_local3--) { if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){ _info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3])); }; }; } override public function set changeFactor(_arg1:Number):void{ var _local3:ArrayTweenInfo; var _local4:Number; var _local2:int = _info.length; if (this.round){ while (_local2--) { _local3 = _info[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _a[_local3.index] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5)); }; } else { while (_local2--) { _local3 = _info[_local2]; _a[_local3.index] = (_local3.start + (_local3.change * _arg1)); }; }; } } }//package com.greensock.plugins class ArrayTweenInfo { public var index:uint; public var start:Number; public var change:Number; private function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){ this.index = _arg1; this.start = _arg2; this.change = _arg3; } }
Section 20
//FilterPlugin (com.greensock.plugins.FilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import com.greensock.core.*; import flash.filters.*; public class FilterPlugin extends TweenPlugin { protected var _target:Object; protected var _type:Class; protected var _filter:BitmapFilter; protected var _index:int; protected var _remove:Boolean; public static const VERSION:Number = 2.03; public static const API:Number = 1; protected function initFilter(_arg1:Object, _arg2:BitmapFilter, _arg3:Array):void{ var _local5:String; var _local6:int; var _local7:HexColorsPlugin; var _local4:Array = _target.filters; var _local8:Object = ((_arg1 is BitmapFilter)) ? {} : _arg1; _index = -1; if (_local8.index != null){ _index = _local8.index; } else { _local6 = _local4.length; while (_local6--) { if ((_local4[_local6] is _type)){ _index = _local6; break; }; }; }; if ((((((_index == -1)) || ((_local4[_index] == null)))) || ((_local8.addFilter == true)))){ _index = ((_local8.index)!=null) ? _local8.index : _local4.length; _local4[_index] = _arg2; _target.filters = _local4; }; _filter = _local4[_index]; if (_local8.remove == true){ _remove = true; this.onComplete = onCompleteTween; }; _local6 = _arg3.length; while (_local6--) { _local5 = _arg3[_local6]; if ((((_local5 in _arg1)) && (!((_filter[_local5] == _arg1[_local5]))))){ if ((((((_local5 == "color")) || ((_local5 == "highlightColor")))) || ((_local5 == "shadowColor")))){ _local7 = new HexColorsPlugin(); _local7.initColor(_filter, _local5, _filter[_local5], _arg1[_local5]); _tweens[_tweens.length] = new PropTween(_local7, "changeFactor", 0, 1, _local5, false); } else { if ((((((((_local5 == "quality")) || ((_local5 == "inner")))) || ((_local5 == "knockout")))) || ((_local5 == "hideObject")))){ _filter[_local5] = _arg1[_local5]; } else { addTween(_filter, _local5, _filter[_local5], _arg1[_local5], _local5); }; }; }; }; } public function onCompleteTween():void{ var _local1:Array; var _local2:int; if (_remove){ _local1 = _target.filters; if (!(_local1[_index] is _type)){ _local2 = _local1.length; while (_local2--) { if ((_local1[_local2] is _type)){ _local1.splice(_local2, 1); break; }; }; } else { _local1.splice(_index, 1); }; _target.filters = _local1; }; } override public function set changeFactor(_arg1:Number):void{ var _local3:PropTween; var _local2:int = _tweens.length; var _local4:Array = _target.filters; while (_local2--) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); }; if (!(_local4[_index] is _type)){ _local2 = (_index = _local4.length); while (_local2--) { if ((_local4[_local2] is _type)){ _index = _local2; break; }; }; }; _local4[_index] = _filter; _target.filters = _local4; } } }//package com.greensock.plugins
Section 21
//FrameLabelPlugin (com.greensock.plugins.FrameLabelPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; public class FrameLabelPlugin extends FramePlugin { public static const API:Number = 1; public function FrameLabelPlugin(){ this.propName = "frameLabel"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if ((!(_arg3.target) is MovieClip)){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; var _local4:Array = _target.currentLabels; var _local5:String = _arg2; var _local6:int = _target.currentFrame; var _local7:int = _local4.length; while (_local7--) { if (_local4[_local7].name == _local5){ _local6 = _local4[_local7].frame; break; }; }; if (this.frame != _local6){ addTween(this, "frame", this.frame, _local6, "frame"); }; return (true); } } }//package com.greensock.plugins
Section 22
//FramePlugin (com.greensock.plugins.FramePlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; public class FramePlugin extends TweenPlugin { public var frame:int; protected var _target:MovieClip; public static const API:Number = 1; public function FramePlugin(){ this.propName = "frame"; this.overwriteProps = ["frame", "frameLabel"]; 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 com.greensock.plugins
Section 23
//GlowFilterPlugin (com.greensock.plugins.GlowFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import flash.filters.*; public class GlowFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout"]; 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), _propNames); return (true); } } }//package com.greensock.plugins
Section 24
//HexColorsPlugin (com.greensock.plugins.HexColorsPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; public class HexColorsPlugin extends TweenPlugin { protected var _colors:Array; public static const API:Number = 1; public function HexColorsPlugin(){ this.propName = "hexColors"; this.overwriteProps = []; _colors = []; } 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); } 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 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); } 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--; }; } } }//package com.greensock.plugins
Section 25
//RemoveTintPlugin (com.greensock.plugins.RemoveTintPlugin) package com.greensock.plugins { public class RemoveTintPlugin extends TintPlugin { public static const API:Number = 1; public function RemoveTintPlugin(){ this.propName = "removeTint"; } } }//package com.greensock.plugins
Section 26
//RoundPropsPlugin (com.greensock.plugins.RoundPropsPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; public class RoundPropsPlugin extends TweenPlugin { 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 com.greensock.plugins
Section 27
//ShortRotationPlugin (com.greensock.plugins.ShortRotationPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; public class ShortRotationPlugin extends TweenPlugin { 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 com.greensock.plugins
Section 28
//TintPlugin (com.greensock.plugins.TintPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import com.greensock.core.*; import flash.geom.*; public class TintPlugin extends TweenPlugin { protected var _transform:Transform; protected var _ct:ColorTransform; protected var _ignoreAlpha:Boolean; 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"]; } 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.vars.removeTint == true))))){ _local4.color = uint(_arg2); }; _ignoreAlpha = true; init((_arg1 as DisplayObject), _local4); return (true); } public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{ var _local4:String; _transform = _arg1.transform; _ct = _transform.colorTransform; var _local3:int = _props.length; while (_local3--) { _local4 = _props[_local3]; if (_ct[_local4] != _arg2[_local4]){ _tweens[_tweens.length] = new PropTween(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false); }; }; } override public function set changeFactor(_arg1:Number):void{ var _local2:ColorTransform; updateTweens(_arg1); if (_ignoreAlpha){ _local2 = _transform.colorTransform; _ct.alphaMultiplier = _local2.alphaMultiplier; _ct.alphaOffset = _local2.alphaOffset; }; _transform.colorTransform = _ct; } } }//package com.greensock.plugins
Section 29
//TransformAroundPointPlugin (com.greensock.plugins.TransformAroundPointPlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import com.greensock.core.*; import flash.geom.*; public class TransformAroundPointPlugin extends TweenPlugin { protected var _target:DisplayObject; protected var _local:Point; protected var _point:Point; protected var _shortRotation:ShortRotationPlugin; public static const API:Number = 1; public function TransformAroundPointPlugin(){ this.propName = "transformAroundPoint"; this.overwriteProps = []; this.priority = -1; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; var _local5:ShortRotationPlugin; var _local6:String; var _local7:Object; var _local8:Number; var _local9:Number; if (!(_arg2.point is Point)){ return (false); }; _target = (_arg1 as DisplayObject); _point = _arg2.point.clone(); _local = _target.globalToLocal(_target.parent.localToGlobal(_point)); for (_local4 in _arg2) { if (_local4 == "point"){ } else { if (_local4 == "shortRotation"){ _shortRotation = new ShortRotationPlugin(); _shortRotation.onInitTween(_target, _arg2[_local4], _arg3); addTween(_shortRotation, "changeFactor", 0, 1, "shortRotation"); for (_local6 in _arg2[_local4]) { this.overwriteProps[this.overwriteProps.length] = _local6; }; } else { if ((((_local4 == "x")) || ((_local4 == "y")))){ addTween(_point, _local4, _point[_local4], _arg2[_local4], _local4); this.overwriteProps[this.overwriteProps.length] = _local4; } else { if (_local4 == "scale"){ addTween(_target, "scaleX", _target.scaleX, _arg2.scale, "scaleX"); addTween(_target, "scaleY", _target.scaleY, _arg2.scale, "scaleY"); this.overwriteProps[this.overwriteProps.length] = "scaleX"; this.overwriteProps[this.overwriteProps.length] = "scaleY"; } else { addTween(_target, _local4, _target[_local4], _arg2[_local4], _local4); this.overwriteProps[this.overwriteProps.length] = _local4; }; }; }; }; }; if (_arg3 != null){ _local7 = ((_arg3.vars.isTV)==true) ? _arg3.vars.exposedVars : _arg3.vars; if (((("x" in _local7)) || (("y" in _local7)))){ if (("x" in _local7)){ _local8 = ((typeof(_local7.x))=="number") ? _local7.x : (_target.x + Number(_local7.x)); }; if (("y" in _local7)){ _local9 = ((typeof(_local7.y))=="number") ? _local7.y : (_target.y + Number(_local7.y)); }; _arg3.killVars({x:true, y:true}); this.changeFactor = 1; if (!isNaN(_local8)){ addTween(_point, "x", _point.x, (_point.x + (_local8 - _target.x)), "x"); this.overwriteProps[this.overwriteProps.length] = "x"; }; if (!isNaN(_local9)){ addTween(_point, "y", _point.y, (_point.y + (_local9 - _target.y)), "y"); this.overwriteProps[this.overwriteProps.length] = "y"; }; this.changeFactor = 0; }; }; return (true); } override public function killProps(_arg1:Object):void{ if (_shortRotation != null){ _shortRotation.killProps(_arg1); if (_shortRotation.overwriteProps.length == 0){ _arg1.shortRotation = true; }; }; super.killProps(_arg1); } override public function set changeFactor(_arg1:Number):void{ var _local2:Point; var _local3:PropTween; var _local4:int; var _local5:Number; var _local6:int; var _local7:Number; var _local8:Number; var _local9:int; var _local10:int; if (_target.parent){ _local4 = _tweens.length; if (this.round){ while (_local4--) { _local3 = _tweens[_local4]; _local5 = (_local3.start + (_local3.change * _arg1)); _local6 = ((_local5)<0) ? -1 : 1; _local3.target[_local3.property] = ((((_local5 % 1) * _local6))>0.5) ? (int(_local5) + _local6) : int(_local5); }; _local2 = _target.parent.globalToLocal(_target.localToGlobal(_local)); _local7 = ((_target.x + _point.x) - _local2.x); _local8 = ((_target.y + _point.y) - _local2.y); _local9 = ((_local7)<0) ? -1 : 1; _local10 = ((_local8)<0) ? -1 : 1; _target.x = ((((_local7 % 1) * _local9))>0.5) ? (int(_local7) + _local9) : int(_local7); _target.y = ((((_local8 % 1) * _local10))>0.5) ? (int(_local8) + _local10) : int(_local8); } else { while (_local4--) { _local3 = _tweens[_local4]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); }; _local2 = _target.parent.globalToLocal(_target.localToGlobal(_local)); _target.x = (_target.x + (_point.x - _local2.x)); _target.y = (_target.y + (_point.y - _local2.y)); }; _changeFactor = _arg1; }; } } }//package com.greensock.plugins
Section 30
//TweenPlugin (com.greensock.plugins.TweenPlugin) package com.greensock.plugins { import com.greensock.*; import com.greensock.core.*; public class TweenPlugin { public var propName:String; public var overwriteProps:Array; public var round:Boolean; public var priority:int;// = 0 public var activeDisable:Boolean; public var onComplete:Function; public var onEnable:Function; public var onDisable:Function; protected var _tweens:Array; protected var _changeFactor:Number;// = 0 public static const VERSION:Number = 1.31; public static const API:Number = 1; public function TweenPlugin(){ _tweens = []; super(); } public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName); return (true); } protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{ var _local6:Number; if (_arg4 != null){ _local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) : Number(_arg4); if (_local6 != 0){ _tweens[_tweens.length] = new PropTween(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false); }; }; } protected function updateTweens(_arg1:Number):void{ var _local3:PropTween; var _local4:Number; var _local2:int = _tweens.length; if (this.round){ while (_local2--) { _local3 = _tweens[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local3.target[_local3.property] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5)); }; } else { while (_local2--) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); }; }; } public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _changeFactor = _arg1; } public function get changeFactor():Number{ return (_changeFactor); } public function killProps(_arg1:Object):void{ var _local2:int = this.overwriteProps.length; while (_local2--) { if ((this.overwriteProps[_local2] in _arg1)){ this.overwriteProps.splice(_local2, 1); }; }; _local2 = _tweens.length; while (_local2--) { if ((PropTween(_tweens[_local2]).name in _arg1)){ _tweens.splice(_local2, 1); }; }; } private static function onTweenEvent(_arg1:String, _arg2:TweenLite):Boolean{ var _local4:Boolean; var _local5:Array; var _local6:int; var _local3:PropTween = _arg2.cachedPT1; if (_arg1 == "onInit"){ _local5 = []; while (_local3) { _local5[_local5.length] = _local3; _local3 = _local3.nextNode; }; _local5.sortOn("priority", (Array.NUMERIC | Array.DESCENDING)); _local6 = _local5.length; while (_local6--) { PropTween(_local5[_local6]).nextNode = _local5[(_local6 + 1)]; PropTween(_local5[_local6]).prevNode = _local5[(_local6 - 1)]; }; _arg2.cachedPT1 = _local5[0]; } else { while (_local3) { if (((_local3.isPlugin) && (_local3.target[_arg1]))){ if (_local3.target.activeDisable){ _local4 = true; }; var _local7 = _local3.target; _local7[_arg1](); }; _local3 = _local3.nextNode; }; }; return (_local4); } public static function activate(_arg1:Array):Boolean{ var _local3:Object; TweenLite.onPluginEvent = TweenPlugin.onTweenEvent; var _local2:int = _arg1.length; while (_local2--) { if (_arg1[_local2].hasOwnProperty("API")){ _local3 = new ((_arg1[_local2] as Class)); TweenLite.plugins[_local3.propName] = _arg1[_local2]; }; }; return (true); } } }//package com.greensock.plugins
Section 31
//TypewriterPlugin (com.greensock.plugins.TypewriterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.text.*; public class TypewriterPlugin extends TweenPlugin { protected var target:TextField; protected var newText:String; protected var newLength:int; protected var oldText:String; protected var oldLength:int; public static const API:Number = 1; public function TypewriterPlugin(){ this.propName = "typewriter"; this.overwriteProps = []; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg1 is TextField)){ return (false); }; this.target = (_arg1 as TextField); oldText = _arg1.text; oldLength = oldText.length; newText = String(_arg2); newLength = newText.length; return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:Number = (oldLength + (-(oldLength) * _arg1)); var _local3:Number = (oldLength + ((newLength - oldLength) * _arg1)); target.text = (newText.substr(0, int(((_local3 - _local2) + 0.5))) + oldText.substr(0, int((_local2 + 0.5)))); } } }//package com.greensock.plugins
Section 32
//VisiblePlugin (com.greensock.plugins.VisiblePlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; public class VisiblePlugin extends TweenPlugin { protected var _target:Object; protected var _tween:TweenLite; protected var _visible:Boolean; protected var _initVal:Boolean; public static const API:Number = 1; public function VisiblePlugin(){ this.propName = "visible"; this.overwriteProps = ["visible"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _initVal = _target.visible; _visible = Boolean(_arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ if ((((_arg1 == 1)) && ((_tween.cachedDuration == _tween.cachedTime)))){ _target.visible = _visible; } else { _target.visible = _initVal; }; } } }//package com.greensock.plugins
Section 33
//VolumePlugin (com.greensock.plugins.VolumePlugin) package com.greensock.plugins { import com.greensock.*; import flash.display.*; import flash.media.*; public class VolumePlugin extends TweenPlugin { protected var _target:Object; protected var _st:SoundTransform; 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 com.greensock.plugins
Section 34
//OverwriteManager (com.greensock.OverwriteManager) package com.greensock { import com.greensock.core.*; import flash.utils.*; import flash.errors.*; public class OverwriteManager { public static const version:Number = 6; public static const NONE:int = 0; public static const ALL_IMMEDIATE:int = 1; public static const AUTO:int = 2; public static const CONCURRENT:int = 3; public static const ALL_ONSTART:int = 4; public static const PREEXISTING:int = 5; public static var mode:int; public static var enabled:Boolean; public static function init(_arg1:int=2):int{ if (TweenLite.version < 11.099994){ throw (new Error("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); } public static function manageOverwrites(_arg1:TweenLite, _arg2:Object, _arg3:Array, _arg4:uint):Boolean{ var _local5:int; var _local6:Boolean; var _local7:TweenLite; var _local13:uint; var _local14:Number; var _local15:Number; var _local16:TweenCore; var _local17:Number; var _local18:SimpleTimeline; if (_arg4 >= 4){ _local13 = _arg3.length; _local5 = 0; while (_local5 < _local13) { _local7 = _arg3[_local5]; if (_local7 != _arg1){ if (_local7.setEnabled(false, false)){ _local6 = true; }; } else { if (_arg4 == 5){ break; }; }; _local5++; }; return (_local6); }; var _local8:Number = _arg1.startTime; var _local9:Array = []; var _local10:Array = []; var _local11:uint; var _local12:uint; _local5 = _arg3.length; while (_local5--) { _local7 = _arg3[_local5]; if ((((_local7 == _arg1)) || (_local7.gc))){ } else { if (_local7.timeline != _arg1.timeline){ if (!getGlobalPaused(_local7)){ var _temp1 = _local11; _local11 = (_local11 + 1); var _local19 = _temp1; _local10[_local19] = _local7; }; } else { if ((((((_local7.startTime <= _local8)) && (((_local7.startTime + _local7.totalDuration) > _local8)))) && (!(getGlobalPaused(_local7))))){ var _temp2 = _local12; _local12 = (_local12 + 1); _local19 = _temp2; _local9[_local19] = _local7; }; }; }; }; if (_local11 != 0){ _local14 = _arg1.cachedTimeScale; _local15 = _local8; _local18 = _arg1.timeline; while (_local18) { _local14 = (_local14 * _local18.cachedTimeScale); _local15 = (_local15 + _local18.startTime); _local18 = _local18.timeline; }; _local8 = (_local14 * _local15); _local5 = _local11; while (_local5--) { _local16 = _local10[_local5]; _local14 = _local16.cachedTimeScale; _local15 = _local16.startTime; _local18 = _local16.timeline; while (_local18) { _local14 = (_local14 * _local18.cachedTimeScale); _local15 = (_local15 + _local18.startTime); _local18 = _local18.timeline; }; _local17 = (_local14 * _local15); if ((((_local17 <= _local8)) && (((((_local17 + (_local16.totalDuration * _local14)) > _local8)) || ((_local16.cachedDuration == 0)))))){ var _temp3 = _local12; _local12 = (_local12 + 1); _local19 = _temp3; _local9[_local19] = _local16; }; }; }; if (_local12 == 0){ return (_local6); }; _local5 = _local12; if (_arg4 == 2){ while (_local5--) { _local7 = _local9[_local5]; if (_local7.killVars(_arg2)){ _local6 = true; }; if ((((_local7.cachedPT1 == null)) && (_local7.initted))){ _local7.setEnabled(false, false); }; }; } else { while (_local5--) { if (TweenLite(_local9[_local5]).setEnabled(false, false)){ _local6 = true; }; }; }; return (_local6); } public static function getGlobalPaused(_arg1:TweenCore):Boolean{ while (_arg1) { if (_arg1.cachedPaused){ return (true); }; _arg1 = _arg1.timeline; }; return (false); } } }//package com.greensock
Section 35
//TweenLite (com.greensock.TweenLite) package com.greensock { import flash.events.*; import flash.display.*; import com.greensock.core.*; import com.greensock.plugins.*; import flash.utils.*; public class TweenLite extends TweenCore { public var target:Object; public var propTweenLookup:Object; public var ratio:Number;// = 0 public var cachedPT1:PropTween; protected var _ease:Function; protected var _overwrite:uint; protected var _overwrittenProps:Object; protected var _hasPlugins:Boolean; protected var _notifyPluginsOfEnabled:Boolean; public static const version:Number = 11.101; public static var plugins:Object = {}; public static var fastEaseLookup:Dictionary = new Dictionary(false); public static var onPluginEvent:Function; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public static var defaultEase:Function = TweenLite.easeOut; public static var overwriteManager:Object; public static var rootFrame:Number; public static var rootTimeline:SimpleTimeline; public static var rootFramesTimeline:SimpleTimeline; public static var masterList:Dictionary = new Dictionary(false); private static var _shape:Shape = new Shape(); protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1}; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local5:TweenLite; super(_arg2, _arg3); this.target = _arg1; if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){ this.cachedTimeScale = 1; }; propTweenLookup = {}; _ease = defaultEase; _overwrite = (((!(("overwrite" in _arg3))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); var _local4:Array = masterList[_arg1]; if (!_local4){ masterList[_arg1] = [this]; } else { if (_overwrite == 1){ for each (_local5 in _local4) { if (!_local5.gc){ _local5.setEnabled(false, false); }; }; masterList[_arg1] = [this]; } else { _local4[_local4.length] = this; }; }; if (((this.active) || (this.vars.immediateRender))){ renderTime(0, false, true); }; } protected function init():void{ var _local1:String; var _local2:int; var _local3:*; var _local4:Boolean; var _local5:Array; var _local6:PropTween; if (typeof(this.vars.ease) == "function"){ _ease = this.vars.ease; }; if (this.vars.easeParams){ this.vars.proxiedEase = _ease; _ease = easeProxy; }; this.cachedPT1 = null; this.propTweenLookup = {}; for (_local1 in this.vars) { if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){ } else { if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){ this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1); if (this.cachedPT1.name == "_MULTIPLE_"){ _local2 = _local3.overwriteProps.length; while (_local2--) { this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1; }; } else { this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1; }; if (_local3.priority){ this.cachedPT1.priority = _local3.priority; _local4 = true; }; if (((_local3.onDisable) || (_local3.onEnable))){ _notifyPluginsOfEnabled = true; }; _hasPlugins = true; } else { this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1); this.propTweenLookup[_local1] = this.cachedPT1; }; }; }; if (_local4){ onPluginEvent("onInit", this); }; if (this.vars.runBackwards){ _local6 = this.cachedPT1; while (_local6) { _local6.start = (_local6.start + _local6.change); _local6.change = -(_local6.change); _local6 = _local6.nextNode; }; }; _hasUpdate = Boolean(!((this.vars.onUpdate == null))); if (_overwrittenProps){ killVars(_overwrittenProps); if (this.cachedPT1 == null){ this.setEnabled(false, false); }; }; if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){ if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){ init(); }; }; this.initted = true; } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local4:Boolean; var _local5:Number = this.cachedTime; this.active = true; if (_arg1 >= this.cachedDuration){ this.cachedTotalTime = (this.cachedTime = this.cachedDuration); this.ratio = 1; _local4 = true; if (this.cachedDuration == 0){ if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){ _arg3 = true; }; _rawPrevTime = _arg1; }; } else { if (_arg1 <= 0){ this.cachedTotalTime = (this.cachedTime = (this.ratio = 0)); if (_arg1 < 0){ this.active = false; if (this.cachedDuration == 0){ if (_rawPrevTime > 0){ _arg3 = true; _local4 = true; }; _rawPrevTime = _arg1; }; }; if (((this.cachedReversed) && (!((_local5 == 0))))){ _local4 = true; }; } else { this.cachedTotalTime = (this.cachedTime = _arg1); this.ratio = _ease(_arg1, 0, 1, this.cachedDuration); }; }; if ((((this.cachedTime == _local5)) && (!(_arg3)))){ return; }; if (!this.initted){ init(); if (((!(_local4)) && (this.cachedTime))){ this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration); }; }; if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){ this.vars.onStart.apply(null, this.vars.onStartParams); }; var _local6:PropTween = this.cachedPT1; while (_local6) { _local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change)); _local6 = _local6.nextNode; }; if (((_hasUpdate) && (!(_arg2)))){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local4){ if (((_hasPlugins) && (this.cachedPT1))){ onPluginEvent("onComplete", this); }; complete(true, _arg2); }; } public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{ var _local3:String; var _local4:PropTween; var _local5:Boolean; if (_overwrittenProps == null){ _overwrittenProps = {}; }; for (_local3 in _arg1) { if ((_local3 in propTweenLookup)){ _local4 = propTweenLookup[_local3]; if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){ _local4.target.killProps(_arg1); if (_local4.target.overwriteProps.length == 0){ _local4.name = ""; }; }; if (_local4.name != "_MULTIPLE_"){ if (_local4.nextNode){ _local4.nextNode.prevNode = _local4.prevNode; }; if (_local4.prevNode){ _local4.prevNode.nextNode = _local4.nextNode; } else { if (this.cachedPT1 == _local4){ this.cachedPT1 = _local4.nextNode; }; }; if (((_local4.isPlugin) && (_local4.target.onDisable))){ _local4.target.onDisable(); if (_local4.target.activeDisable){ _local5 = true; }; }; delete propTweenLookup[_local3]; }; }; if (_arg2){ _overwrittenProps[_local3] = 1; }; }; return (_local5); } override public function invalidate():void{ if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){ onPluginEvent("onDisable", this); }; this.cachedPT1 = null; _overwrittenProps = null; _hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false))); this.propTweenLookup = {}; } override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{ var _local3:Array; if (_arg1 == this.gc){ if (_arg1){ _local3 = TweenLite.masterList[this.target]; if (!_local3){ TweenLite.masterList[this.target] = [this]; } else { _local3[_local3.length] = this; }; }; super.setEnabled(_arg1, _arg2); if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){ return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this)); }; }; return (false); } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } public static function initClass():void{ rootFrame = 0; rootTimeline = new SimpleTimeline(null); rootFramesTimeline = new SimpleTimeline(null); rootTimeline.cachedStartTime = (getTimer() * 0.001); rootFramesTimeline.cachedStartTime = rootFrame; rootTimeline.autoRemoveChildren = true; rootFramesTimeline.autoRemoveChildren = true; _shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0})); } protected static function updateAll(_arg1:Event=null):void{ var _local2:Dictionary; var _local3:Object; var _local4:Array; var _local5:int; rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false); rootFrame++; rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false); if (!(rootFrame % 60)){ _local2 = masterList; for (_local3 in _local2) { _local4 = _local2[_local3]; _local5 = _local4.length; while (_local5--) { if (TweenLite(_local4[_local5]).gc){ _local4.splice(_local5, 1); }; }; if (_local4.length == 0){ delete _local2[_local3]; }; }; }; } public static function killTweensOf(_arg1:Object, _arg2:Boolean=false):void{ var _local3:Array; var _local4:int; if ((_arg1 in masterList)){ _local3 = masterList[_arg1]; _local4 = _local3.length; while (_local4--) { if (!TweenLite(_local3[_local4]).gc){ if (_arg2){ TweenLite(_local3[_local4]).complete(false, false); } else { TweenLite(_local3[_local4]).setEnabled(false, false); }; }; }; delete masterList[_arg1]; }; } protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (1 - (_arg1 / _arg4)); return ((1 - (_arg1 * _arg1))); } } }//package com.greensock
Section 36
//TweenMax (com.greensock.TweenMax) package com.greensock { import flash.events.*; import flash.display.*; import com.greensock.core.*; import com.greensock.plugins.*; import com.greensock.events.*; import flash.utils.*; public class TweenMax extends TweenLite implements IEventDispatcher { protected var _dispatcher:EventDispatcher; protected var _hasUpdateListener:Boolean; protected var _repeat:int;// = 0 protected var _repeatDelay:Number;// = 0 protected var _cyclesComplete:uint;// = 0 protected var _easePower:uint; protected var _easeType:uint; public var yoyo:Boolean; public static const version:Number = 11.101; private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(2); ; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); if (TweenLite.version < 11.1){ throw (new Error("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.")); }; this.yoyo = Boolean(this.vars.yoyo); _repeat = ((this.vars.repeat) || (0)); _repeatDelay = ((this.vars.repeatDelay) || (0)); this.cacheIsDirty = true; if (((((((((this.vars.onCompleteListener) || (this.vars.onUpdateListener))) || (this.vars.onStartListener))) || (this.vars.onRepeatListener))) || (this.vars.onReverseCompleteListener))){ initDispatcher(); if ((((_arg2 == 0)) && ((_delay == 0)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); }; }; if (((("timeScale" in this.vars)) && (!((this.target is TweenCore))))){ this.cachedTimeScale = this.vars.timeScale; }; } override protected function init():void{ var _local1:TweenMax; var _local2:int; var _local3:String; var _local4:String; var _local5:Array; var _local6:Object; var _local7:PropTween; var _local8:int; if (this.vars.startAt){ this.vars.startAt.overwrite = 0; this.vars.startAt.immediateRender = true; _local1 = new TweenMax(this.target, 0, this.vars.startAt); }; super.init(); if ((_ease in fastEaseLookup)){ _easeType = fastEaseLookup[_ease][0]; _easePower = fastEaseLookup[_ease][1]; }; if (((!((this.vars.roundProps == null))) && (("roundProps" in TweenLite.plugins)))){ _local5 = this.vars.roundProps; _local8 = _local5.length; while (_local8--) { _local3 = _local5[_local8]; _local7 = this.cachedPT1; while (_local7) { 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.cachedPT1 = insertPropTween(_local6, "changeFactor", 0, 1, "_MULTIPLE_", true, this.cachedPT1); } else { _local6.add(_local7.target, _local3, _local7.start, _local7.change); }; this.removePropTween(_local7); }; } else { if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){ _local4 = ((" " + _local7.target.overwriteProps.join(" ")) + " "); if (_local4.indexOf(((" " + _local3) + " ")) != -1){ _local7.target.round = true; }; }; }; _local7 = _local7.nextNode; }; }; }; } protected function insertPropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String, _arg6:Boolean, _arg7:PropTween):PropTween{ var _local9:Array; var _local10:int; var _local8:PropTween = new PropTween(_arg1, _arg2, _arg3, ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4), _arg5, _arg6, _arg7); if (((_arg6) && ((_arg5 == "_MULTIPLE_")))){ _local9 = _arg1.overwriteProps; _local10 = _local9.length; while (_local10--) { this.propTweenLookup[_local9[_local10]] = _local8; }; } else { this.propTweenLookup[_arg5] = _local8; }; return (_local8); } protected function removePropTween(_arg1:PropTween):Boolean{ if (_arg1.nextNode){ _arg1.nextNode.prevNode = _arg1.prevNode; }; if (_arg1.prevNode){ _arg1.prevNode.nextNode = _arg1.nextNode; } else { if (this.cachedPT1 == _arg1){ this.cachedPT1 = _arg1.nextNode; }; }; if (((_arg1.isPlugin) && (_arg1.target.onDisable))){ _arg1.target.onDisable(); if (_arg1.target.activeDisable){ return (true); }; }; return (false); } override public function invalidate():void{ this.yoyo = Boolean((this.vars.yoyo == true)); _repeat = ((this.vars.repeat) || (0)); _repeatDelay = ((this.vars.repeatDelay) || (0)); _hasUpdateListener = false; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ initDispatcher(); }; setDirtyCache(true); super.invalidate(); } protected function updateTo(_arg1:Object, _arg2:Boolean=true):void{ var _local5:String; var _local6:Object; var _local7:Boolean; var _local8:Object; var _local9:int; var _local3:PropTween = this.cachedPT1; var _local4:Number = this.cachedTotalTime; if (this.initted){ if (!_arg2){ this.totalTime = 0; }; killVars(_arg1, false); for (_local5 in _arg1) { if ((_local5 in _reservedProps)){ } else { if ((((_local5 in plugins)) && (new ((plugins[_local5] as Class)).onInitTween(this.target, _arg1[_local5], this)))){ _local8 = {}; _local9 = _local6.overwriteProps.length; while (_local9--) { _local8[_local6.overwriteProps[_local9]] = true; }; killVars(_local8, false); this.cachedPT1 = insertPropTween(_local6, "changeFactor", 0, 1, ((_local6.overwriteProps.length)==1) ? _local6.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1); _hasPlugins = true; if (_local6.priority){ this.cachedPT1.priority = _local6.priority; _local7 = true; }; } else { this.cachedPT1 = insertPropTween(this.target, _local5, this.target[_local5], _arg1[_local5], _local5, false, this.cachedPT1); }; }; this.vars[_local5] = _arg1[_local5]; }; if (_local7){ onPluginEvent("onInit", this); }; if (((_arg2) && (this.cachedTotalTime))){ adjustStartValues(); }; } else { for (_local5 in _arg1) { this.vars[_local5] = _arg1[_local5]; }; }; } public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{ var _local4:Object = {}; _local4[_arg1] = _arg2; updateTo(_local4, _arg3); } protected function adjustStartValues():void{ var _local1:Number; var _local2:PropTween; var _local3:Number; if (this.cachedTime != 0){ _local1 = (1 / (1 - this.ratio)); _local2 = this.cachedPT1; while (_local2) { _local3 = (_local2.start + _local2.change); if (_local2.isPlugin){ _local2.change = ((_local3 - this.ratio) * _local1); } else { _local2.change = ((_local3 - _local2.target[_local2.property]) * _local1); }; _local2.start = (_local3 - _local2.change); _local2 = _local2.nextNode; }; }; } public function killProperties(_arg1:Array):void{ var _local2:Object = {}; var _local3:int = _arg1.length; while (_local3--) { _local2[_arg1[_local3]] = true; }; killVars(_local2); } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local6:Boolean; var _local7:Boolean; var _local8:Boolean; var _local10:Number; var _local11:uint; var _local12:Number; if (((!(this.active)) && (!(this.cachedPaused)))){ this.active = true; }; var _local4:Number = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration; var _local5:Number = this.cachedTime; if (_arg1 >= _local4){ this.cachedTotalTime = _local4; this.cachedTime = this.cachedDuration; this.ratio = 1; _local6 = true; if (this.cachedDuration == 0){ if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){ _arg3 = true; }; _rawPrevTime = _arg1; }; } else { if (_arg1 <= 0){ if (_arg1 < 0){ this.active = false; if (this.cachedDuration == 0){ if (_rawPrevTime > 0){ _arg3 = true; _local6 = true; }; _rawPrevTime = _arg1; }; }; this.cachedTotalTime = (this.cachedTime = (this.ratio = 0)); if (((this.cachedReversed) && (!((_local5 == 0))))){ _local6 = true; }; } else { this.cachedTotalTime = (this.cachedTime = _arg1); if (_repeat == 0){ _local8 = true; }; }; }; if (_repeat != 0){ _local10 = (this.cachedDuration + _repeatDelay); if (_arg1 > 0){ this.cachedTime = (((((this.yoyo) && ((((this.cachedTotalTime / _local10) % 2) >= 1)))) || (((!(this.yoyo)) && (!(((this.cachedTotalTime / _local10) % 1))))))) ? (this.cachedDuration - (this.cachedTotalTime % _local10)) : (this.cachedTotalTime % _local10); if (this.cachedTime >= this.cachedDuration){ this.cachedTime = this.cachedDuration; this.ratio = 1; } else { if (this.cachedTime <= 0){ this.cachedTime = (this.ratio = 0); } else { _local8 = true; }; }; }; if (((!((_cyclesComplete == int((this.cachedTotalTime / _local10))))) && (!(_local6)))){ _local7 = true; _cyclesComplete = int((this.cachedTotalTime / _local10)); }; }; if ((((_local5 == this.cachedTime)) && (!(_arg3)))){ return; }; if (!this.initted){ init(); }; if (_local8){ if (_easeType){ _local11 = _easePower; _local12 = (this.cachedTime / this.cachedDuration); if (_easeType == 2){ _local12 = (1 - _local12); this.ratio = _local12; while (_local11--) { this.ratio = (_local12 * this.ratio); }; this.ratio = (1 - this.ratio); } else { if (_easeType == 1){ this.ratio = _local12; while (_local11--) { this.ratio = (_local12 * this.ratio); }; } else { if (_local12 < 0.5){ _local12 = (_local12 * 2); this.ratio = _local12; while (_local11--) { this.ratio = (_local12 * this.ratio); }; this.ratio = (this.ratio * 0.5); } else { _local12 = ((1 - _local12) * 2); this.ratio = _local12; while (_local11--) { this.ratio = (_local12 * this.ratio); }; this.ratio = (1 - (0.5 * this.ratio)); }; }; }; } else { this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration); }; }; if ((((((_local5 == 0)) && (!((this.cachedTotalTime == 0))))) && (!(_arg2)))){ if (this.vars.onStart){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); }; }; var _local9:PropTween = this.cachedPT1; while (_local9) { _local9.target[_local9.property] = (_local9.start + (this.ratio * _local9.change)); _local9 = _local9.nextNode; }; if (((_hasUpdate) && (!(_arg2)))){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (((_hasUpdateListener) && (!(_arg2)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); }; if (_local6){ if (((_hasPlugins) && (this.cachedPT1))){ onPluginEvent("onComplete", this); }; complete(true, _arg2); } else { if (((_local7) && (!(_arg2)))){ if (this.vars.onRepeat){ this.vars.onRepeat.apply(null, this.vars.onRepeatParams); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REPEAT)); }; }; }; } override public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{ super.complete(_arg1, _arg2); if (((!(_arg2)) && (_dispatcher))){ if ((((this.cachedTime == this.cachedDuration)) && (!(this.cachedReversed)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); } else { if (((this.cachedReversed) && ((this.cachedTotalTime == 0)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REVERSE_COMPLETE)); }; }; }; } protected function initDispatcher():void{ if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); }; 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); _hasUpdateListener = true; }; if ((this.vars.onCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true); }; if ((this.vars.onRepeatListener is Function)){ _dispatcher.addEventListener(TweenEvent.REPEAT, this.vars.onRepeatListener, false, 0, true); }; if ((this.vars.onReverseCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.REVERSE_COMPLETE, this.vars.onReverseCompleteListener, false, 0, true); }; } 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){ _hasUpdateListener = true; }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } public function hasEventListener(_arg1:String):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.hasEventListener(_arg1)); } public function willTrigger(_arg1:String):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.willTrigger(_arg1)); } public function dispatchEvent(_arg1:Event):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.dispatchEvent(_arg1)); } public function get currentProgress():Number{ return ((this.cachedTime / this.duration)); } public function set currentProgress(_arg1:Number):void{ if (_cyclesComplete == 0){ setTotalTime((this.duration * _arg1), false); } else { setTotalTime(((this.duration * _arg1) + (_cyclesComplete * this.cachedDuration)), false); }; } public function get totalProgress():Number{ return ((this.cachedTotalTime / this.totalDuration)); } public function set totalProgress(_arg1:Number):void{ setTotalTime((this.totalDuration * _arg1), false); } override public function set currentTime(_arg1:Number):void{ if (_cyclesComplete == 0){ } else { if (((this.yoyo) && (((_cyclesComplete % 2) == 1)))){ _arg1 = ((this.duration - _arg1) + (_cyclesComplete * (this.cachedDuration + _repeatDelay))); } else { _arg1 = (_arg1 + (_cyclesComplete * (this.duration + _repeatDelay))); }; }; setTotalTime(_arg1, false); } override public function get totalDuration():Number{ if (this.cacheIsDirty){ this.cachedTotalDuration = ((_repeat)==-1) ? 999999999999 : ((this.cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat)); this.cacheIsDirty = false; }; return (this.cachedTotalDuration); } override public function set totalDuration(_arg1:Number):void{ if (_repeat == -1){ return; }; this.duration = ((_arg1 - (_repeat * _repeatDelay)) / (_repeat + 1)); } public function get timeScale():Number{ return (this.cachedTimeScale); } public function set timeScale(_arg1:Number):void{ if (_arg1 == 0){ _arg1 = 0.0001; }; var _local2:Number = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime; this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) * this.cachedTimeScale) / _arg1)); this.cachedTimeScale = _arg1; setDirtyCache(false); } public function get repeat():int{ return (_repeat); } public function set repeat(_arg1:int):void{ _repeat = _arg1; setDirtyCache(true); } public function get repeatDelay():Number{ return (_repeatDelay); } public function set repeatDelay(_arg1:Number):void{ _repeatDelay = _arg1; setDirtyCache(true); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ return (new TweenMax(_arg1, _arg2, _arg3)); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function fromTo(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Object):TweenMax{ _arg4.startAt = _arg3; if (_arg3.immediateRender){ _arg4.immediateRender = true; }; return (new TweenMax(_arg1, _arg2, _arg4)); } public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{ var i:int; var varsDup:Object; var p:String; var onCompleteProxy:Function; var onCompleteParamsProxy:Array; var targets = _arg1; var duration = _arg2; var vars = _arg3; var stagger = _arg4; var onCompleteAll = _arg5; var onCompleteAllParams = _arg6; var l:uint = targets.length; var a:Array = []; var curDelay:Number = ((vars.delay) || (0)); onCompleteProxy = vars.onComplete; onCompleteParamsProxy = vars.onCompleteParams; var lastIndex:int = ((stagger)<=0) ? 0 : (l - 1); i = 0; while (i < l) { varsDup = {}; for (p in vars) { varsDup[p] = vars[p]; }; varsDup.delay = curDelay; if ((((i == lastIndex)) && (!((onCompleteAll == null))))){ varsDup.onComplete = function ():void{ if (onCompleteProxy != null){ onCompleteProxy.apply(null, onCompleteParamsProxy); }; onCompleteAll.apply(null, onCompleteAllParams); }; }; a[a.length] = new TweenMax(targets[i], duration, varsDup); curDelay = (curDelay + stagger); i = (i + 1); }; return (a); } public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (allTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6)); } public static function allFromTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Object, _arg5:Number=0, _arg6:Function=null, _arg7:Array=null):Array{ _arg4.startAt = _arg3; if (_arg3.immediateRender){ _arg4.immediateRender = true; }; return (allTo(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7)); } 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, immediateRender:false, useFrames:_arg4, overwrite:0})); } public static function getTweensOf(_arg1:Object):Array{ var _local4:int; var _local2:Array = masterList[_arg1]; var _local3:Array = []; if (_local2){ _local4 = _local2.length; while (_local4--) { if (!_local2[_local4].gc){ _local3[_local3.length] = _local2[_local4]; }; }; }; return (_local3); } public static function isTweening(_arg1:Object):Boolean{ var _local4:TweenLite; var _local2:Array = getTweensOf(_arg1); var _local3:int = _local2.length; while (_local3--) { _local4 = _local2[_local3]; if (((_local4.active) || ((((_local4.cachedStartTime == _local4.timeline.cachedTime)) && (_local4.timeline.active))))){ return (true); }; }; return (false); } public static function getAllTweens():Array{ var _local4:Array; var _local5:int; var _local1:Dictionary = masterList; var _local2:uint; var _local3:Array = []; for each (_local4 in _local1) { _local5 = _local4.length; while (_local5--) { if (!TweenLite(_local4[_local5]).gc){ var _temp1 = _local2; _local2 = (_local2 + 1); var _local8 = _temp1; _local3[_local8] = _local4[_local5]; }; }; }; return (_local3); } public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{ var _local5:Boolean; var _local4:Array = getAllTweens(); var _local6:int = _local4.length; while (_local6--) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ if (_arg1){ _local4[_local6].complete(false); } else { _local4[_local6].setEnabled(false, false); }; }; }; } public static function killChildTweensOf(_arg1:DisplayObjectContainer, _arg2:Boolean=false):void{ var _local4:Object; var _local5:DisplayObjectContainer; var _local3:Array = getAllTweens(); var _local6:int = _local3.length; while (_local6--) { _local4 = _local3[_local6].target; if ((_local4 is DisplayObject)){ _local5 = _local4.parent; while (_local5) { if (_local5 == _arg1){ if (_arg2){ _local3[_local6].complete(false); } else { _local3[_local6].setEnabled(false, false); }; }; _local5 = _local5.parent; }; }; }; } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=true):void{ changePause(true, _arg1, _arg2); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=true):void{ changePause(false, _arg1, _arg2); } private static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{ var _local5:Boolean; var _local4:Array = getAllTweens(); var _local6:int = _local4.length; while (_local6--) { _local5 = (TweenLite(_local4[_local6]).target == TweenLite(_local4[_local6]).vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ TweenCore(_local4[_local6]).paused = _arg1; }; }; } public static function get globalTimeScale():Number{ return (((TweenLite.rootTimeline)==null) ? 1 : TweenLite.rootTimeline.cachedTimeScale); } public static function set globalTimeScale(_arg1:Number):void{ if (_arg1 == 0){ _arg1 = 0.0001; }; if (TweenLite.rootTimeline == null){ TweenLite.to({}, 0, {}); }; var _local2:SimpleTimeline = TweenLite.rootTimeline; var _local3:Number = (getTimer() * 0.001); _local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1)); _local2 = TweenLite.rootFramesTimeline; _local3 = TweenLite.rootFrame; _local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1)); TweenLite.rootFramesTimeline.cachedTimeScale = (TweenLite.rootTimeline.cachedTimeScale = _arg1); } TweenPlugin.activate([AutoAlphaPlugin, EndArrayPlugin, FramePlugin, RemoveTintPlugin, TintPlugin, VisiblePlugin, VolumePlugin, BevelFilterPlugin, BezierPlugin, BezierThroughPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, ColorTransformPlugin, DropShadowFilterPlugin, FrameLabelPlugin, GlowFilterPlugin, HexColorsPlugin, RoundPropsPlugin, ShortRotationPlugin, {}]); } }//package com.greensock
Section 37
//ArrowPoint (cooking.ArrowPoint) package cooking { import flash.events.*; import flash.display.*; public class ArrowPoint extends MovieClip { var container:BaseArrow; var id:uint; public function ArrowPoint(){ alpha = 0.8; addEventListener(Event.ADDED_TO_STAGE, init); } function init(_arg1:Event){ this.addEventListener(Event.ENTER_FRAME, dissapear); } function dissapear(_arg1=null){ if (((Defines._game.isDrawing) && (hitTestPoint(Defines._game.mouseX, Defines._game.mouseY, true)))){ if (((((((container.firstTouched) || ((this.name == "p1")))) || ((this.name == "p2")))) && (!(container.invalidMove)))){ container.firstTouched = true; visible = false; this.removeEventListener(Event.ENTER_FRAME, dissapear); container.touchPoint(); } else { container.invalidMove = true; }; }; } } }//package cooking
Section 38
//BaseArrow (cooking.BaseArrow) package cooking { import flash.events.*; import flash.display.*; public class BaseArrow extends Sprite { var points:Array; var numPoints:uint;// = 0 var touchedPoints:uint;// = 0 var invalidMove:Boolean;// = false var firstTouched:Boolean;// = false var finished:Boolean;// = false public var arrowType:String;// = "" public function BaseArrow(){ points = new Array(); addEventListener(Event.ADDED_TO_STAGE, init); } public function init(_arg1=null){ var _local3:ArrowPoint; var _local2:int; while (_local2 < numChildren) { if (getChildAt(_local2).toString() == "[object ArrowPoint]"){ _local3 = (getChildAt(_local2) as ArrowPoint); if (_local3 != null){ _local3.container = this; _local3.id = _local2; } else { trace("no se puede agregar container"); }; points.push(_local3); }; _local2++; }; removeEventListener(Event.ADDED_TO_STAGE, init); numPoints = points.length; } public function touchPoint(_arg1:ArrowPoint=null){ touchedPoints++; } } }//package cooking
Section 39
//CookAction (cooking.CookAction) package cooking { import flash.display.*; public class CookAction { public var steps:Array; public var type:String; public var targetObject:Sprite; public var time:Number;// = 10 public var instructions:String;// = "" } }//package cooking
Section 40
//CookingGame (cooking.CookingGame) package cooking { import cerebral.utils.*; import flash.events.*; import com.greensock.*; import flash.display.*; import com.greensock.easing.*; import flash.ui.*; public class CookingGame extends MovieClip { public var drawingLine:MovieClip; public var currentArrow:BaseArrow; public var currentObject:MovieClip; public var currentObjectID:int;// = 0 var clock:MovieClip; var instructions:MovieClip; var scoreMC:MovieClip; var scoreWindow:MovieClip; var placa:MovieClip; var mixerButtons:Array; var cookButtons:Array; var currentValidButton:DisplayObject; var interLevel:Boolean; var partialScore:int; var partialTimeBonus:int; var partialBonus:int; public var totalScore:int; var clockTween:TweenMax; var maskTween:TweenMax; var clockSoundTween:TweenMax; var objects:Array; var steps:Array; var currentStep:CookAction; var currentDragObject:DraggableObject; var isDrawing:Boolean;// = false var stepNumber:int;// = 0 var countdownSound:ESound; var myContextMenu:ContextMenu; public function CookingGame(){ Defines._game = this; } public function initGame(){ var _local1:int; while (_local1 < objects.length) { objects[_local1].alpha = 0; objects[_local1].visible = false; _local1++; }; this["tabla"].alpha = 0; this["tabla"].visible = false; partialScore = 0; partialTimeBonus = 0; partialBonus = 0; totalScore = 0; interLevel = false; setTotalScore(0); stage.addEventListener(Event.DEACTIVATE, windowNotActive); stage.addEventListener(Event.ACTIVATE, windowActive); var _local2:ContextMenu = new ContextMenu(); contextMenu = _local2; _local2.addEventListener(ContextMenuEvent.MENU_SELECT, menuSelectHandler); } function windowNotActive(_arg1:Event):void{ MouseUp(); } function windowActive(_arg1:Event):void{ } function menuSelectHandler(_arg1:ContextMenuEvent):void{ if (currentDragObject == null){ MouseUp(); } else { currentDragObject.MouseUp(); }; } public function setGUI(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:MovieClip, _arg5:MovieClip){ clock = _arg1; instructions = _arg2; scoreMC = _arg3; scoreWindow = _arg4; placa = _arg5; placa.x = 850; } public function initObject(){ var _local2:int; var _local1:Boolean; TweenMax.to(this["tabla"], 0.3, {autoAlpha:0}); stepNumber = 0; currentStep = (steps[currentObjectID] as CookAction); if (currentStep.targetObject != null){ currentObject = (currentStep.targetObject as MovieClip); currentObject.visible = true; currentObject.gotoAndStop(1); }; if (currentStep.type == "cut"){ TweenMax.to(this["tabla"], 0.3, {autoAlpha:1}); TweenMax.to(currentObject, 0.3, {autoAlpha:1}); nextArrow(); } else { if (currentStep.type == "move"){ TweenMax.to(currentObject, 0.3, {autoAlpha:1}); nextArrow(); } else { if (currentStep.type == "drop"){ _local2 = 0; while (_local2 < currentStep.steps.length) { if (currentStep.steps[_local2][0] != null){ TweenMax.to(currentStep.steps[_local2][0], 0.3, {autoAlpha:1}); currentStep.steps[_local2][0].targetObject = currentObject; currentStep.steps[_local2][0].activateEvents(); }; if (currentStep.steps[_local2][1] != null){ TweenMax.to(currentStep.steps[_local2][1], 0.3, {autoAlpha:1}); }; _local2++; }; if ((((currentObject == this["mixer1"])) && (!((mixerButtons == null))))){ TweenMax.allTo(mixerButtons, 0.3, {autoAlpha:1}); }; if ((((currentObject == this["sarten"])) && (!((mixerButtons == null))))){ TweenMax.allTo(cookButtons, 0.3, {autoAlpha:1}); }; TweenLite.to(placa, 1, {x:465}); hidePlacaItems(); (placa["hint"] as MovieClip).getChildByName(currentStep.steps[0][0].name).visible = true; currentStep.steps[0][0].isCurrent = true; TweenMax.to(currentObject, 0.3, {autoAlpha:1}); } else { if (currentStep.type == "transition"){ TweenMax.allTo(currentStep.steps[0], 1, {autoAlpha:0}); if (currentStep.steps[1] != null){ TweenMax.allTo(currentStep.steps[1], 1, {autoAlpha:1, frame:1}); }; TweenLite.delayedCall(0.9, nextObject); } else { if (currentStep.type == "scores"){ showScoreWindow(); }; }; }; }; }; if (clockTween != null){ clockTween.pause(); clockSoundTween.pause(); }; if (countdownSound != null){ ESound.RemoveSound(countdownSound); countdownSound = null; }; clock.gotoAndStop(1); if (((((_local1) && (!(interLevel)))) && (!((currentStep.type == "transition"))))){ clockTween = TweenMax.to(clock, currentStep.time, {frame:100, ease:Linear.easeNone, delay:0.5, strartAt:{frame:0}, onComplete:timeout}); clockSoundTween = TweenMax.delayedCall((currentStep.time - (currentStep.time / 4)), countDown); TweenMax.killTweensOf(Defines._document["notimebonus"]); Defines._document["notimebonus"].alpha = 0; }; TweenLite.killTweensOf(instructions.texto, false); instructions.texto.text = ""; TweenLite.to(instructions.texto, (currentStep.instructions.length * 0.05), {typewriter:currentStep.instructions, ease:Linear.easeNone}); } function hidePlacaItems(){ if (maskTween != null){ maskTween.kill(); }; placa["mascara"].gotoAndPlay(1); maskTween = TweenMax.to(placa["mascara"], 5, {frame:430}); var _local1:int; while (_local1 < (placa["hint"] as MovieClip).numChildren) { (placa["hint"] as MovieClip).getChildAt(_local1).visible = false; _local1++; }; } function timeout(){ if (countdownSound != null){ ESound.RemoveSound(countdownSound); countdownSound = null; }; TweenMax.to(Defines._document["notimebonus"], 0.3, {alpha:1, yoyo:true, repeat:5}); TweenMax.to(Defines._document["notimebonus"], 0.3, {alpha:0, overwrite:false, delay:2}); var _local1:* = ESound.NewESound(TimeOutSound, 1.5); _local1.StartSound(); } function countDown(){ if (countdownSound != null){ ESound.RemoveSound(countdownSound); countdownSound = null; }; countdownSound = ESound.NewESound(CountdownSound, 3, 0, 5); countdownSound.StartSound(); } public function showScoreWindow(){ interLevel = true; TweenMax.to(scoreWindow, 0.5, {x:50}); clockTween.pause(); clock.gotoAndStop(1); scoreWindow["txtPoints"].text = 0; scoreWindow["txtBonus"].text = 0; scoreWindow["txtTime"].text = 0; scoreWindow["txtTotal"].text = 0; numStepper.setNumber(scoreWindow["txtPoints"], 0, 10000, 0.6, 0.8, true, "", ","); numStepper.setNumber(scoreWindow["txtBonus"], 0, partialScore, 0.6, 1.1, true, "", ","); numStepper.setNumber(scoreWindow["txtTime"], 0, partialTimeBonus, 0.6, 1.4, true, "", ","); numStepper.setNumber(scoreWindow["txtTotal"], 0, ((10000 + partialScore) + partialTimeBonus), 0.6, 1.8, true, "", ","); setTotalScore((totalScore + ((10000 + partialScore) + partialTimeBonus))); } public function hideScoreWindow(_arg1=null){ interLevel = false; TweenMax.to(scoreWindow, 0.5, {x:-600, ease:Linear.easeIn}); clockTween.pause(); clock.gotoAndStop(1); currentObjectID++; if (currentObjectID < steps.length){ TweenLite.delayedCall(1, initObject); } else { (Defines._document as MovieClip).fadeToEnd(); }; partialScore = 0; partialTimeBonus = 0; partialBonus = 0; } public function nextDropObject(){ var _local2:int; trace("nextDropObject()", currentObject.name); var _local1:ESound = ESound.NewESound(SndDrop, 1.5); _local1.StartSound(); if (stepNumber < (currentStep.steps.length - 1)){ stepNumber++; currentStep.steps[stepNumber][0].isCurrent = true; TweenLite.to(placa, 1, {x:465}); if (maskTween != null){ maskTween.kill(); }; placa["mascara"].gotoAndPlay(1); maskTween = TweenMax.to(placa["mascara"], 7, {frame:430, ease:Strong.easeOut}); _local2 = 0; while (_local2 < (placa["hint"] as MovieClip).numChildren) { (placa["hint"] as MovieClip).getChildAt(_local2).visible = false; _local2++; }; (placa["hint"] as MovieClip).getChildByName(currentStep.steps[stepNumber][0].name).visible = true; } else { if (currentObject == this["sarten"]){ _local2 = 0; while (_local2 < cookButtons.length) { cookButtons[_local2].init(cookButtons); _local2++; }; instructions.texto.text = "Click the Red button to cook at high fire"; hidePlacaItems(); (placa["hint"] as MovieClip)["redButton"].visible = true; currentValidButton = this["btnRed2"]; this["btnRed2"].isValid = true; TweenMax.killTweensOf(this["sarten"]); } else { if (currentObject == this["mixer1"]){ trace("mix it baby!"); _local2 = 0; while (_local2 < mixerButtons.length) { mixerButtons[_local2].init(mixerButtons); _local2++; }; instructions.texto.text = "Click the Red Button to mix the ingredients"; currentValidButton = this["btnRed"]; this["btnRed"].isValid = true; TweenMax.killTweensOf(this["mixer1"]); hidePlacaItems(); (placa["hint"] as MovieClip)["redButton"].visible = true; } else { nextObject(); }; }; }; } public function activateCookButton(_arg1:MixerButton){ currentValidButton = _arg1; _arg1.isValid = true; instructions.texto.text = "Now put the fire at medium power pressing the Green button"; hidePlacaItems(); (placa["hint"] as MovieClip)["greenButton"].visible = true; } public function buttonActivated(_arg1:MixerButton, _arg2:String=null){ var _local3:ESound; trace("buttonActivated", _arg1.name); if (_arg1 != currentValidButton){ return; }; if (_arg2 == null){ nextObject(); } else { if (currentValidButton == this["btnRed2"]){ _local3 = ESound.NewESound(SndFry, 2); _local3.StartSound(); TweenLite.to(this["firehigh"], 1, {autoAlpha:1}); TweenMax.delayedCall(4, activateCookButton, [this["btnGreen2"]]); TweenMax.delayedCall(4, this["sarten"].gotoAndStop, [4]); } else { if (currentValidButton == this["btnGreen2"]){ TweenLite.to(this["firehigh"], 1, {autoAlpha:0}); TweenLite.to(this["firemedium"], 1, {autoAlpha:1}); TweenMax.delayedCall(3, nextObject); } else { if (currentValidButton == this["btnRed"]){ _local3 = ESound.NewESound(SndMixer, 5); _local3.StartSound(); nextObject(); }; }; }; }; currentValidButton = null; } public function nextArrow(){ if (currentStep.steps[stepNumber][0] == "rect"){ addRectArrow(currentStep.steps[stepNumber][1], currentStep.steps[stepNumber][2], currentStep.steps[stepNumber][3]); } else { if (currentStep.steps[stepNumber][0] == "curve"){ addCurveArrow(currentStep.steps[stepNumber][1], currentStep.steps[stepNumber][2], currentStep.steps[stepNumber][3]); }; }; } public function addRectArrow(_arg1:int, _arg2:int, _arg3:int=0){ currentArrow = new RectArrow(); currentArrow.x = _arg1; currentArrow.y = _arg2; currentArrow.rotation = _arg3; addChild(currentArrow); activateEvents(); } public function addCurveArrow(_arg1:int, _arg2:int, _arg3:int=0){ currentArrow = new CurveArrow(); currentArrow.x = _arg1; currentArrow.y = _arg2; currentArrow.rotation = _arg3; addChild(currentArrow); activateEvents(); } public function activateEvents(){ addEventListener(MouseEvent.MOUSE_DOWN, MouseDown); addEventListener(MouseEvent.MOUSE_UP, MouseUp); } public function removeEvents(){ removeEventListener(MouseEvent.MOUSE_DOWN, MouseDown); removeEventListener(MouseEvent.MOUSE_UP, MouseUp); } function MouseDown(_arg1:MouseEvent):void{ removeLine(); drawingLine = new MovieClip(); addChild(drawingLine); drawingLine.alpha = 1; isDrawing = true; drawingLine.graphics.lineStyle(7, 0xFF0000, 0.9); drawingLine.graphics.moveTo(mouseX, mouseY); addEventListener(MouseEvent.MOUSE_MOVE, MouseMove); } function MouseMove(_arg1:MouseEvent):void{ if (mouseIsOut()){ MouseUp(); } else { drawingLine.graphics.lineTo(mouseX, mouseY); }; } public function mouseIsOut(_arg1:int=50):Boolean{ if ((((((((mouseX < _arg1)) || ((mouseX > (Defines._document.stage.stageWidth - _arg1))))) || ((mouseY < 120)))) || ((mouseY > (Defines._document.stage.stageHeight - _arg1))))){ return (true); }; return (false); } public function MouseUp(_arg1=null):void{ var s:ESound; var event = _arg1; if (currentArrow != null){ currentArrow.invalidMove = false; }; try { removeEventListener(MouseEvent.MOUSE_MOVE, MouseMove); TweenMax.to(drawingLine, 0.1, {alpha:0, onComplete:removeLine}); isDrawing = false; if (currentArrow.touchedPoints < 3){ return; }; if (currentArrow.arrowType == "rectArrow"){ s = ESound.NewESound(KnifeSound, 2); s.StartSound(); }; addPartialScore((currentArrow.touchedPoints * 100)); removeEvents(); removeChild(currentArrow); currentArrow = null; finishArrow(); } catch(e:Error) { trace(e); }; } function setTotalScore(_arg1:int){ numStepper.setNumber(scoreMC["txtScore"], totalScore, _arg1, 1, 0, true, "", ","); totalScore = _arg1; } function addPartialScore(_arg1:int){ partialScore = (partialScore + _arg1); setTotalScore((totalScore + _arg1)); scoreMC["addScore"].scaleX = 0; scoreMC["addScore"].scaleY = 0; scoreMC["addScore"].alpha = 1; TweenLite.to(scoreMC["addScore"], 1.5, {scaleX:1.2, scaleY:1.2, alpha:0}); scoreMC["addScore"]["txtAddScore"].text = NumberUtils.formatNumber(_arg1); } function nextObject(){ stepNumber = 0; currentObjectID++; removeLine(); var _local1:CookAction = (steps[currentObjectID] as CookAction); if (_local1 != null){ if (_local1.type != "transition"){ TweenMax.to(currentObject, 0.5, {alpha:0, delay:0.3}); }; }; if (currentObjectID < objects.length){ TweenMax.delayedCall(1, initObject); }; TweenLite.to(placa, 1, {x:850}); partialTimeBonus = (partialTimeBonus + ((clock.totalFrames - clock.currentFrame) * 30)); } function finishArrow(_arg1:Number=0){ stepNumber++; currentObject.gotoAndStop((stepNumber + 1)); if (_arg1 == 0){ if (stepNumber < currentStep.steps.length){ parent["tut1"].stop(); parent["tut1"].visible = false; nextArrow(); } else { nextObject(); }; } else { TweenMax.delayedCall(_arg1, nextArrow); }; } function removeLine():void{ try { removeChild(drawingLine); } catch(e:Error) { }; } } }//package cooking
Section 41
//CurveArrow (cooking.CurveArrow) package cooking { public class CurveArrow extends BaseArrow { public var p1:ArrowPoint; public var p2:ArrowPoint; public var p3:ArrowPoint; public var p4:ArrowPoint; public var p5:ArrowPoint; public var p6:ArrowPoint; public function CurveArrow(){ arrowType = "CurveArrow"; } } }//package cooking
Section 42
//DraggableObject (cooking.DraggableObject) package cooking { import flash.events.*; import com.greensock.*; import flash.display.*; import flash.geom.*; public class DraggableObject extends MovieClip { public var targetObject:MovieClip; public var isCurrent:Boolean;// = false public var defaultPos:Point; public function activateEvents(){ trace("activating", this); addEventListener(MouseEvent.MOUSE_DOWN, MouseDown); addEventListener(MouseEvent.MOUSE_UP, MouseUp); this.scaleX = (this.scaleY = 1); } public function removeEvents(){ removeEventListener(MouseEvent.MOUSE_DOWN, MouseDown); removeEventListener(MouseEvent.MOUSE_UP, MouseUp); removeEventListener(MouseEvent.MOUSE_MOVE, MouseMove); } private function MouseMove(_arg1:MouseEvent):void{ if (Defines._game.mouseIsOut(10)){ MouseUp(); }; } function MouseDown(_arg1:MouseEvent):void{ defaultPos = new Point(this.x, this.y); Defines._game.currentDragObject = this; this.startDrag(true); parent.setChildIndex(this, (parent.numChildren - 1)); addEventListener(MouseEvent.MOUSE_MOVE, MouseMove); } function MouseUp(_arg1=null):void{ this.stopDrag(); if (targetObject != null){ if (((hitTestObject(targetObject)) && (isCurrent))){ isCurrent = false; TweenMax.to(this, 0.3, {scaleX:0, scaleY:0, x:targetObject.x, y:targetObject.y, autoAlpha:0}); targetObject.nextFrame(); removeEvents(); Defines._game.addPartialScore(100); Defines._game.nextDropObject(); TweenMax.delayedCall(2, toOriginalPos); } else { this.x = defaultPos.x; this.y = defaultPos.y; Defines._game.addPartialScore(-50); }; }; Defines._game.currentDragObject = null; } function toOriginalPos(){ this.x = defaultPos.x; this.y = defaultPos.y; this.alpha = 0; this.visible = false; } } }//package cooking
Section 43
//MixerButton (cooking.MixerButton) package cooking { import flash.events.*; import flash.display.*; public class MixerButton extends MovieClip { var group:Array; var action:String;// = "" var isValid:Boolean; public function MixerButton(){ group = new Array(); addEventListener(Event.ADDED_TO_STAGE, added); } public function added(_arg1:Event){ removeEventListener(Event.ADDED_TO_STAGE, added); gotoAndStop(1); } public function init(_arg1:Array=null){ trace("initing button", this.name); if (_arg1 != null){ group = _arg1; }; useHandCursor = true; buttonMode = true; isValid = false; addEventListener(MouseEvent.CLICK, click); } public function click(_arg1:MouseEvent){ var _local2:int; while (_local2 < group.length) { group[_local2].gotoAndStop(1); _local2++; }; this.gotoAndStop(2); if (isValid){ _local2 = 0; while (_local2 < group.length) { _local2++; }; Defines._game.buttonActivated(this, action); }; } public function disable(){ removeEventListener(MouseEvent.CLICK, click); } } }//package cooking
Section 44
//RectArrow (cooking.RectArrow) package cooking { public class RectArrow extends BaseArrow { public var p1:ArrowPoint; public var p2:ArrowPoint; public var p3:ArrowPoint; public var p4:ArrowPoint; public var p5:ArrowPoint; public var p6:ArrowPoint; public function RectArrow(){ arrowType = "rectArrow"; } } }//package cooking
Section 45
//TacosGame (cooking.TacosGame) package cooking { import com.greensock.*; import flash.display.*; public class TacosGame extends CookingGame { public var armartaco:MovieClip; public var plato5:MovieClip; public var lemon:jugodelimon; public var tabla:MovieClip; public var armartaco2:MovieClip; public var friedsteak:friedSteak; public var plato6:MovieClip; public var pepper2:pimienta; public var btnRed2:BtnMixerRed; public var ministeak:miniSteak; public var salt:sal; public var pepper:pimienta; public var btnYellow:BtnMixerYellow; public var steak:MovieClip; public var marinated_steak:MovieClip; public var dummy:aceitedeolivo; public var mixed_salsa:MovieClip; public var btnWhite:BtnMixerWhite; public var tomato:MovieClip; public var firelow:MovieClip; public var greensauce:salsa; public var btnGreen2:BtnMixerGreen; public var btnGreen:BtnMixerGreen; public var estufa:MovieClip; public var jalapeno_picado:jalapenos_picados; public var chilli:MovieClip; public var firehigh:MovieClip; public var tortilla:tortilla1; public var firemedium:MovieClip; public var olive:aceitedeolivo; public var sauce:sasonador; public var cebolla_picada:cebollines; public var plato1:MovieClip; public var btnYellow2:BtnMixerYellow; public var salt2:sal; public var tomate_picado:tomatillos; public var btnRed:BtnMixerRed; public var mixer1:MovieClip; public var plato2:MovieClip; public var marinated_steak2:MovieClip; public var plato3:MovieClip; public var onion:MovieClip; public var sarten:MovieClip; public var plato4:MovieClip; public function TacosGame(){ var _local1:CookAction; super(); objects = new Array(this["onion"], this["tomato"], this["chilli"], this["steak"], this["mixer1"], this["tomate_picado"], this["jalapeno_picado"], this["cebolla_picada"], this["plato1"], this["plato2"], this["plato3"], this["mixed_salsa"], this["marinated_steak"], this["marinated_steak2"], this["olive"], this["sauce"], this["lemon"], this["salt"], this["pepper"], this["salt2"], this["pepper2"], this["btnWhite"], this["btnYellow"], this["btnRed"], this["btnGreen"], this["btnYellow2"], this["btnRed2"], this["btnGreen2"], this["ministeak"], this["estufa"], this["sarten"], this["plato4"], this["armartaco"], this["armartaco2"], this["tortilla"], this["plato5"], this["friedsteak"], this["plato6"], this["firelow"], this["firemedium"], this["firehigh"], this["greensauce"]); steps = new Array(); _local1 = new CookAction(); _local1.targetObject = this["onion"]; _local1.type = "cut"; _local1.time = 20; _local1.instructions = "To make the sauce we need to chop some ingredients. Let's start with the onion."; _local1.steps = new Array(["rect", 450, 200, 0], ["rect", 300, 200, 0], ["rect", 280, 250, 270], ["rect", 280, 300, 270], ["rect", 280, 340, 270], ["rect", 375, 200, 0]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["tomato"]; _local1.type = "cut"; _local1.instructions = "Now continue chopping this tomato."; _local1.steps = new Array(["rect", 280, 250, 270], ["rect", 280, 280, 270], ["rect", 280, 310, 270], ["rect", 360, 200, 0]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["chilli"]; _local1.type = "cut"; _local1.instructions = "Now some chillis"; _local1.steps = new Array(["rect", 310, 200, 0], ["rect", 340, 200, 5], ["rect", 380, 200, -3], ["rect", 410, 200, 3], ["rect", 450, 200, -5]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["chilli"]; _local1.type = "cut"; _local1.instructions = "Another chilli"; _local1.steps = new Array(["rect", 310, 200, 0], ["rect", 340, 200, 5], ["rect", 380, 200, -3], ["rect", 410, 200, 3], ["rect", 450, 200, -5]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["mixer1"]; _local1.type = "drop"; _local1.time = 20; _local1.instructions = "Now put all the ingredients in the mixer to finish the sauce"; _local1.steps = new Array([this["tomate_picado"], this["plato1"]], [this["cebolla_picada"], this["plato3"]], [this["jalapeno_picado"], this["plato2"]], [this["salt"], this["plato2"]], [this["pepper"], this["plato2"]]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.targetObject = this["dummy"]; _local1.instructions = ""; _local1.steps = new Array([this["mixer1"], this["tomate_picado"], this["plato1"], this["cebolla_picada"], this["plato3"], this["jalapeno_picado"], this["plato2"], this["salt"], this["pepper"]], [this["mixed_salsa"]]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.targetObject = this["dummy"]; _local1.instructions = ""; _local1.steps = new Array([this["mixed_salsa"], this["btnWhite"], this["btnYellow"], this["btnRed"], this["btnGreen"]], [this["dummy"]]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "scores"; _local1.steps = new Array(); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["steak"]; _local1.type = "cut"; _local1.instructions = "Now cut some steaks"; _local1.steps = new Array(["rect", 300, 200, 0], ["rect", 420, 200, 0]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["steak"]; _local1.type = "cut"; _local1.instructions = "Another steak"; _local1.steps = new Array(["rect", 300, 200, 0], ["rect", 420, 200, 0]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["steak"]; _local1.type = "cut"; _local1.instructions = "This is the last one!"; _local1.steps = new Array(["rect", 300, 200, 0], ["rect", 420, 200, 0]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.instructions = ""; _local1.steps = new Array([this["steak"]], [this["marinated_steak"], this["sauce"], this["lemon"], this["salt2"], this["pepper2"]]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["marinated_steak"]; _local1.type = "drop"; _local1.instructions = "We have to add some ingredients to the steaks"; _local1.steps = new Array([this["lemon"], null], [this["sauce"], null], [this["salt2"], null], [this["pepper2"], null]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["marinated_steak2"]; _local1.type = "move"; _local1.instructions = "And now move them to mix everything very well"; _local1.steps = new Array(["curve", 450, 350, 90], ["curve", 280, 350, 270]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "scores"; _local1.steps = new Array(); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.targetObject = this["dummy"]; _local1.instructions = ""; _local1.steps = new Array([this["dummy"]], [this["estufa"], this["btnYellow2"], this["btnRed2"], this["btnGreen2"]]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["sarten"]; _local1.type = "drop"; _local1.time = 20; _local1.instructions = "Now let's fry the steaks with some olive oil"; _local1.steps = new Array([this["olive"], null], [this["ministeak"], this["plato4"]]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.targetObject = this["dummy"]; _local1.instructions = ""; _local1.steps = new Array([this["firemedium"], this["firehigh"], this["olive"], this["ministeak"], this["sarten"]], [this["dummy"]]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["sarten"]; _local1.type = "drop"; _local1.time = 20; _local1.instructions = "And now fry some more steaks"; _local1.steps = new Array([this["olive"], null], [this["ministeak"], this["plato4"]]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.targetObject = this["dummy"]; _local1.instructions = ""; _local1.steps = new Array([this["firemedium"], this["firehigh"], this["olive"], this["ministeak"], this["sarten"], this["plato4"], this["estufa"], this["btnYellow2"], this["btnRed2"], this["btnGreen2"]], [this["dummy"]]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "scores"; _local1.steps = new Array(); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["armartaco"]; _local1.type = "drop"; _local1.instructions = "Let's put it all together"; _local1.steps = new Array([this["tortilla"], this["plato5"]], [this["friedsteak"], this["plato6"]], [this["greensauce"], null]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["armartaco2"]; _local1.type = "move"; _local1.instructions = "And now move them to mix everything very well"; _local1.steps = new Array(["curve", 260, 320, 90], ["curve", 120, 320, 270], ["curve", 260, 320, 90]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.targetObject = this["dummy"]; _local1.instructions = ""; _local1.steps = new Array([this["tortilla"], this["plato5"], this["friedsteak"], this["plato6"], this["plato3"], this["greensauce"], this["armartaco"], this["armartaco2"]], [this["dummy"]]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["armartaco"]; _local1.type = "drop"; _local1.instructions = "still 2 more to go!"; _local1.steps = new Array([this["tortilla"], this["plato5"]], [this["friedsteak"], this["plato6"]], [this["greensauce"], null]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["armartaco2"]; _local1.type = "move"; _local1.instructions = "Remember to move them well"; _local1.steps = new Array(["curve", 260, 320, 90], ["curve", 120, 320, 270], ["curve", 260, 320, 90]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.targetObject = this["dummy"]; _local1.instructions = ""; _local1.steps = new Array([this["tortilla"], this["plato5"], this["friedsteak"], this["plato6"], this["plato3"], this["greensauce"], this["armartaco"], this["armartaco2"]], [this["dummy"]]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["armartaco"]; _local1.type = "drop"; _local1.instructions = "This is the last one!"; _local1.steps = new Array([this["tortilla"], this["plato5"]], [this["friedsteak"], this["plato6"]], [this["greensauce"], null]); steps.push(_local1); _local1 = new CookAction(); _local1.targetObject = this["armartaco2"]; _local1.type = "move"; _local1.instructions = ""; _local1.steps = new Array(["curve", 260, 320, 90], ["curve", 120, 320, 270], ["curve", 260, 320, 90]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "transition"; _local1.targetObject = this["dummy"]; _local1.instructions = "Great Job!"; _local1.steps = new Array([this["tortilla"], this["plato5"], this["friedsteak"], this["plato6"], this["plato3"], this["greensauce"], this["armartaco"], this["armartaco2"]], [this["dummy"]]); steps.push(_local1); _local1 = new CookAction(); _local1.type = "scores"; _local1.steps = new Array(); steps.push(_local1); mixerButtons = new Array(this["btnWhite"], this["btnYellow"], this["btnRed"], this["btnGreen"]); cookButtons = new Array(this["btnYellow2"], this["btnRed2"], this["btnGreen2"]); TweenMax.delayedCall(0.01, initGame); } } }//package cooking
Section 46
//assetLoader_22 (tacos_fla.assetLoader_22) package tacos_fla { import flash.display.*; public dynamic class assetLoader_22 extends MovieClip { public function assetLoader_22(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 47
//Bistek_56 (tacos_fla.Bistek_56) package tacos_fla { import flash.display.*; public dynamic class Bistek_56 extends MovieClip { public function Bistek_56(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 48
//Carnesmarinadas_77 (tacos_fla.Carnesmarinadas_77) package tacos_fla { import flash.display.*; public dynamic class Carnesmarinadas_77 extends MovieClip { public function Carnesmarinadas_77(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 49
//Carnesmarinadas2_88 (tacos_fla.Carnesmarinadas2_88) package tacos_fla { import flash.display.*; public dynamic class Carnesmarinadas2_88 extends MovieClip { public function Carnesmarinadas2_88(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 50
//CebollaCORTA_26 (tacos_fla.CebollaCORTA_26) package tacos_fla { import flash.display.*; public dynamic class CebollaCORTA_26 extends MovieClip { public function CebollaCORTA_26(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 51
//Chile_45 (tacos_fla.Chile_45) package tacos_fla { import flash.display.*; public dynamic class Chile_45 extends MovieClip { public function Chile_45(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 52
//Esenafinal_120 (tacos_fla.Esenafinal_120) package tacos_fla { import flash.display.*; public dynamic class Esenafinal_120 extends MovieClip { public function Esenafinal_120(){ addFrameScript(0x0101, frame258); } function frame258(){ stop(); } } }//package tacos_fla
Section 53
//finalScoreWindow_121 (tacos_fla.finalScoreWindow_121) package tacos_fla { import cerebral.utils.*; import flash.events.*; import flash.display.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.media.*; import flash.ui.*; import flash.utils.*; import flash.errors.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class finalScoreWindow_121 extends MovieClip { public var btnMore:SimpleButton; public var btnAgain:SimpleButton; public var txtTotal:TextField; public function finalScoreWindow_121(){ addFrameScript(0, frame1); } public function playAgain(_arg1:MouseEvent){ Defines._document.exitGame(); } function frame1(){ btnAgain.addEventListener(MouseEvent.CLICK, playAgain); txtTotal.text = NumberUtils.formatNumber(Defines._game.totalScore, "", "", ","); btnMore.addEventListener(MouseEvent.CLICK, (root as MovieClip).gotoSponsor); } } }//package tacos_fla
Section 54
//mainMenu_112 (tacos_fla.mainMenu_112) package tacos_fla { import flash.events.*; import flash.display.*; import flash.text.*; import flash.geom.*; import flash.filters.*; import flash.media.*; import flash.ui.*; import flash.utils.*; import flash.errors.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; import flash.xml.*; public dynamic class mainMenu_112 extends MovieClip { public var logo:MovieClip; public var btnMore:SimpleButton; public var btnPlay:SimpleButton; public function mainMenu_112(){ addFrameScript(0, frame1); } function frame1(){ btnPlay.addEventListener(MouseEvent.CLICK, (parent as MovieClip).gotoGame); btnMore.addEventListener(MouseEvent.CLICK, (root as MovieClip).gotoSponsor); logo.addEventListener(MouseEvent.CLICK, (root as MovieClip).gotoSponsor); logo.useHandCursor = true; logo.buttonMode = true; } } }//package tacos_fla
Section 55
//mask_hint_136 (tacos_fla.mask_hint_136) package tacos_fla { import flash.display.*; public dynamic class mask_hint_136 extends MovieClip { public function mask_hint_136(){ addFrameScript(429, frame430); } function frame430(){ stop(); } } }//package tacos_fla
Section 56
//mouse_143 (tacos_fla.mouse_143) package tacos_fla { import flash.display.*; public dynamic class mouse_143 extends MovieClip { public function mouse_143(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 57
//reloj_125 (tacos_fla.reloj_125) package tacos_fla { import flash.display.*; public dynamic class reloj_125 extends MovieClip { public function reloj_125(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 58
//scoreWindow_132 (tacos_fla.scoreWindow_132) package tacos_fla { import flash.events.*; import flash.display.*; import flash.text.*; public dynamic class scoreWindow_132 extends MovieClip { public var txtBonus:TextField; public var txtTime:TextField; public var btnNext:SimpleButton; public var txtTotal:TextField; public var txtPoints:TextField; public function scoreWindow_132(){ addFrameScript(0, frame1); } function frame1(){ btnNext.addEventListener(MouseEvent.CLICK, Defines._game.hideScoreWindow); } } }//package tacos_fla
Section 59
//TomateCORTAR_37 (tacos_fla.TomateCORTAR_37) package tacos_fla { import flash.display.*; public dynamic class TomateCORTAR_37 extends MovieClip { public function TomateCORTAR_37(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package tacos_fla
Section 60
//tut1_140 (tacos_fla.tut1_140) package tacos_fla { import flash.display.*; public dynamic class tut1_140 extends MovieClip { public var mouse:MovieClip; public function tut1_140(){ addFrameScript(24, frame25, 89, frame90); } function frame25(){ mouse.gotoAndStop(2); } function frame90(){ mouse.gotoAndStop(1); } } }//package tacos_fla
Section 61
//aceitedeolivo (aceitedeolivo) package { import cooking.*; public dynamic class aceitedeolivo extends DraggableObject { } }//package
Section 62
//BtnMixerGreen (BtnMixerGreen) package { import cooking.*; public dynamic class BtnMixerGreen extends MixerButton { } }//package
Section 63
//BtnMixerRed (BtnMixerRed) package { import cooking.*; public dynamic class BtnMixerRed extends MixerButton { } }//package
Section 64
//BtnMixerWhite (BtnMixerWhite) package { import cooking.*; public dynamic class BtnMixerWhite extends MixerButton { } }//package
Section 65
//BtnMixerYellow (BtnMixerYellow) package { import cooking.*; public dynamic class BtnMixerYellow extends MixerButton { } }//package
Section 66
//cebollines (cebollines) package { import cooking.*; public dynamic class cebollines extends DraggableObject { } }//package
Section 67
//CookingDocument (CookingDocument) package { import cerebral.utils.*; import flash.events.*; import com.greensock.*; import flash.display.*; import cooking.*; import com.greensock.plugins.*; import com.greensock.easing.*; import flash.net.*; public dynamic class CookingDocument extends MovieClip { public var notimebonus:MovieClip; public var tut1:MovieClip; public var todayMenu:MovieClip; public var logo:MovieClip; public var finalScoreWindow:MovieClip; public var blackLayer:MovieClip; public var clock:MovieClip; public var game:TacosGame; public var placa:MovieClip; public var scoreMC:MovieClip; public var preloader:PreloaderMC; public var scoreWindow:MovieClip; public var exitBtn:SimpleButton; public var instructions:MovieClip; public var mainMusic:ESound; public function CookingDocument(){ addFrameScript(0, frame1, 6, frame7, 19, frame20, 29, frame30, 39, frame40); Defines._document = this; TweenPlugin.activate([AutoAlphaPlugin, FramePlugin, TypewriterPlugin, TransformAroundPointPlugin]); if (stage.loaderInfo.hasOwnProperty("uncaughtErrorEvents")){ IEventDispatcher(loaderInfo["uncaughtErrorEvents"]).addEventListener("uncaughtError", uncaughtErrorHandler); }; } public function PL_LOADING(_arg1:ProgressEvent):void{ var _local2:Number = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100); preloader.anim1.loader.barMask.scaleX = (_local2 / 100); if (_local2 >= 100){ trace("LOADED"); (root as MovieClip).play(); this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING); }; } public function gotoSponsor(_arg1=null){ var _local2:URLRequest = new URLRequest(Defines.SPONSOR_URL); navigateToURL(_local2, "_blank"); } public function gotoGame(_arg1:MouseEvent){ _arg1.target.removeEventListener(MouseEvent.CLICK, gotoGame); fadeToGame(); } public function gotoEnd(_arg1:MouseEvent){ _arg1.target.removeEventListener(MouseEvent.CLICK, gotoGame); fadeToEnd(); } public function fadeToGame(){ TweenMax.to(blackLayer, 1, {autoAlpha:1, onComplete:gotoAndPlay, onCompleteParams:["play"]}); TweenMax.to(blackLayer, 1, {autoAlpha:0, delay:1.2}); } public function fadeToEnd(){ TweenMax.to(blackLayer, 1, {autoAlpha:1, onComplete:gotoAndPlay, onCompleteParams:["end"]}); TweenMax.to(blackLayer, 1, {autoAlpha:0, delay:1.2}); } public function exitToMenu(_arg1:MouseEvent){ Defines._document.exitGame(); } public function showTut1(){ tut1.visible = true; tut1.gotoAndPlay(2); } private function uncaughtErrorHandler(_arg1:Event):void{ trace("Global error:", _arg1); } private function mouseLeave(_arg1:Event):void{ trace("leaving stage"); if (Defines._game != null){ Defines._game.MouseUp(); }; } public function exitGame(_arg1=null){ gotoAndPlay("menu"); } public function playMusic(_arg1:Class){ if (mainMusic != null){ ESound.RemoveSound(mainMusic); mainMusic = null; }; mainMusic = ESound.NewESound(_arg1, 1, 0, 100); mainMusic.StartSound(); } function frame1(){ stop(); stage.showDefaultContextMenu = false; this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING); preloader.anim1.loader.barMask.scaleX = 0; preloader.anim1.logo.addEventListener(MouseEvent.CLICK, gotoSponsor); preloader.anim1.logo.useHandCursor = true; preloader.anim1.logo.buttonMode = true; } function frame7(){ gotoAndPlay("menu"); } function frame20(){ stop(); blackLayer.alpha = 0; blackLayer.visible = false; playMusic(mainGameMusic); } function frame30(){ stop(); finalScoreWindow.alpha = 0; TweenLite.to(finalScoreWindow, 1, {alpha:1, delay:3}); } function frame40(){ tut1.visible = false; tut1.stop(); exitBtn.addEventListener(MouseEvent.CLICK, exitToMenu); stop(); TweenLite.to(todayMenu, 2, {y:0, delay:1}); TweenLite.to(todayMenu, 2, {y:600, delay:5, overwrite:false, ease:Strong.easeIn, onComplete:showTut1}); TweenLite.delayedCall(5, Defines._game.initObject); game.setGUI(clock, instructions, scoreMC, scoreWindow, placa); notimebonus.alpha = 0; logo.addEventListener(MouseEvent.CLICK, (root as MovieClip).gotoSponsor); logo.useHandCursor = true; logo.buttonMode = true; } } }//package
Section 68
//CountdownSound (CountdownSound) package { import flash.media.*; public dynamic class CountdownSound extends Sound { } }//package
Section 69
//Defines (Defines) package { import cooking.*; public class Defines { public static var _game:CookingGame = null; public static var _document:CookingDocument = null; public static var SPONSOR_URL:String = "http://www.cookinggames.com/"; } }//package
Section 70
//friedSteak (friedSteak) package { import cooking.*; public dynamic class friedSteak extends DraggableObject { } }//package
Section 71
//jalapenos_picados (jalapenos_picados) package { import cooking.*; public dynamic class jalapenos_picados extends DraggableObject { } }//package
Section 72
//jugodelimon (jugodelimon) package { import cooking.*; public dynamic class jugodelimon extends DraggableObject { } }//package
Section 73
//KnifeSound (KnifeSound) package { import flash.media.*; public dynamic class KnifeSound extends Sound { } }//package
Section 74
//mainGameMusic (mainGameMusic) package { import flash.media.*; public dynamic class mainGameMusic extends Sound { } }//package
Section 75
//miniSteak (miniSteak) package { import cooking.*; public dynamic class miniSteak extends DraggableObject { } }//package
Section 76
//muteButton (muteButton) package { import cerebral.utils.*; import flash.events.*; import flash.display.*; public dynamic class muteButton extends MovieClip { public function muteButton(){ addFrameScript(0, frame1, 1, frame2); } public function clickBtn(_arg1:MouseEvent){ ESound.Mute(); play(); } public function enterFrameBtn(_arg1:Event){ (parent as MovieClip).setChildIndex(this, ((parent as MovieClip).numChildren - 1)); } function frame1(){ stop(); this.buttonMode = true; this.useHandCursor = true; this.addEventListener(MouseEvent.CLICK, clickBtn); this.addEventListener(Event.ENTER_FRAME, enterFrameBtn); } function frame2(){ stop(); } } }//package
Section 77
//pimienta (pimienta) package { import cooking.*; public dynamic class pimienta extends DraggableObject { } }//package
Section 78
//PreloaderMC (PreloaderMC) package { import flash.display.*; public dynamic class PreloaderMC extends MovieClip { public var anim1:MovieClip; public var anim2:MovieClip; } }//package
Section 79
//sal (sal) package { import cooking.*; public dynamic class sal extends DraggableObject { } }//package
Section 80
//salsa (salsa) package { import cooking.*; public dynamic class salsa extends DraggableObject { } }//package
Section 81
//sasonador (sasonador) package { import cooking.*; public dynamic class sasonador extends DraggableObject { } }//package
Section 82
//SndDrop (SndDrop) package { import flash.media.*; public dynamic class SndDrop extends Sound { } }//package
Section 83
//SndFry (SndFry) package { import flash.media.*; public dynamic class SndFry extends Sound { } }//package
Section 84
//SndMixer (SndMixer) package { import flash.media.*; public dynamic class SndMixer extends Sound { } }//package
Section 85
//TimeOutSound (TimeOutSound) package { import flash.media.*; public dynamic class TimeOutSound extends Sound { } }//package
Section 86
//tomatillos (tomatillos) package { import cooking.*; public dynamic class tomatillos extends DraggableObject { } }//package
Section 87
//tortilla1 (tortilla1) package { import cooking.*; public dynamic class tortilla1 extends DraggableObject { } }//package

Library Items

Symbol 1 Sound {KnifeSound}Used by:Timeline
Symbol 2 GraphicUsed by:5
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip {cooking.ArrowPoint}Uses:3Used by:5 7
Symbol 5 MovieClip {cooking.RectArrow}Uses:2 4
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip {cooking.CurveArrow}Uses:6 4
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:12
Symbol 10 BitmapUsed by:11
Symbol 11 GraphicUses:10Used by:12
Symbol 12 MovieClip {muteButton}Uses:9 11Used by:Timeline
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:17
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:17
Symbol 17 MovieClip {BtnMixerWhite}Uses:14 16Used by:259
Symbol 18 BitmapUsed by:19
Symbol 19 GraphicUses:18Used by:22
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:22
Symbol 22 MovieClip {BtnMixerYellow}Uses:19 21Used by:259
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:27 434
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:27
Symbol 27 MovieClip {BtnMixerRed}Uses:24 26Used by:259
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:32 435
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30Used by:32
Symbol 32 MovieClip {BtnMixerGreen}Uses:29 31Used by:259
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 MovieClipUses:34Used by:259
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:38
Symbol 38 MovieClipUses:37Used by:259
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:41
Symbol 41 MovieClipUses:40Used by:69
Symbol 42 BitmapUsed by:43
Symbol 43 GraphicUses:42Used by:44
Symbol 44 MovieClipUses:43Used by:69
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:47
Symbol 47 MovieClipUses:46Used by:69
Symbol 48 BitmapUsed by:49
Symbol 49 GraphicUses:48Used by:50
Symbol 50 MovieClipUses:49Used by:69
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:53
Symbol 53 MovieClipUses:52Used by:69
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClipUses:55Used by:69
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:59
Symbol 59 MovieClipUses:58Used by:69
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:60Used by:62
Symbol 62 MovieClipUses:61Used by:69
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:65
Symbol 65 MovieClipUses:64Used by:69
Symbol 66 BitmapUsed by:67
Symbol 67 GraphicUses:66Used by:68
Symbol 68 MovieClip {cebollines}Uses:67Used by:69 259 436
Symbol 69 MovieClip {tacos_fla.CebollaCORTA_26}Uses:41 44 47 50 53 56 59 62 65 68Used by:259
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:91
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:75
Symbol 75 MovieClipUses:74Used by:91
Symbol 76 BitmapUsed by:77
Symbol 77 GraphicUses:76Used by:78
Symbol 78 MovieClipUses:77Used by:91
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:81
Symbol 81 MovieClipUses:80Used by:91
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:84
Symbol 84 MovieClipUses:83Used by:91
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:87
Symbol 87 MovieClipUses:86Used by:91
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:90
Symbol 90 MovieClip {tomatillos}Uses:89Used by:91 259 436
Symbol 91 MovieClip {tacos_fla.TomateCORTAR_37}Uses:72 75 78 81 84 87 90Used by:259
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:94
Symbol 94 MovieClipUses:93Used by:122
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:97
Symbol 97 MovieClipUses:96Used by:122
Symbol 98 BitmapUsed by:99
Symbol 99 GraphicUses:98Used by:100
Symbol 100 MovieClipUses:99Used by:122
Symbol 101 BitmapUsed by:102 169
Symbol 102 GraphicUses:101Used by:103
Symbol 103 MovieClipUses:102Used by:122
Symbol 104 BitmapUsed by:105
Symbol 105 GraphicUses:104Used by:106
Symbol 106 MovieClipUses:105Used by:122
Symbol 107 BitmapUsed by:108 169
Symbol 108 GraphicUses:107Used by:109
Symbol 109 MovieClipUses:108Used by:122
Symbol 110 BitmapUsed by:111 169
Symbol 111 GraphicUses:110Used by:112
Symbol 112 MovieClipUses:111Used by:122
Symbol 113 BitmapUsed by:114
Symbol 114 GraphicUses:113Used by:115
Symbol 115 MovieClipUses:114Used by:122
Symbol 116 BitmapUsed by:117 169
Symbol 117 GraphicUses:116Used by:118
Symbol 118 MovieClipUses:117Used by:122
Symbol 119 BitmapUsed by:120 169
Symbol 120 GraphicUses:119Used by:121
Symbol 121 MovieClipUses:120Used by:122
Symbol 122 MovieClip {tacos_fla.Chile_45}Uses:94 97 100 103 106 109 112 115 118 121Used by:259
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:125
Symbol 125 MovieClipUses:124Used by:138
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:128
Symbol 128 MovieClipUses:127Used by:138
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:131
Symbol 131 MovieClipUses:130Used by:138 225
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:134
Symbol 134 MovieClipUses:133Used by:138 225
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:137
Symbol 137 MovieClipUses:136Used by:138 225
Symbol 138 MovieClip {tacos_fla.Bistek_56}Uses:125 128 131 134 137Used by:259
Symbol 139 BitmapUsed by:140
Symbol 140 GraphicUses:139Used by:141
Symbol 141 MovieClipUses:140Used by:259
Symbol 142 BitmapUsed by:143
Symbol 143 GraphicUses:142Used by:144 253 258
Symbol 144 MovieClipUses:143Used by:259
Symbol 145 BitmapUsed by:146
Symbol 146 GraphicUses:145Used by:147
Symbol 147 MovieClipUses:146Used by:167 168
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:150
Symbol 150 MovieClipUses:149Used by:167 168
Symbol 151 BitmapUsed by:152
Symbol 152 GraphicUses:151Used by:153
Symbol 153 MovieClipUses:152Used by:167
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:154Used by:156
Symbol 156 MovieClipUses:155Used by:167
Symbol 157 BitmapUsed by:158
Symbol 158 GraphicUses:157Used by:159
Symbol 159 MovieClipUses:158Used by:167
Symbol 160 BitmapUsed by:161 163 180 181
Symbol 161 GraphicUses:160Used by:167
Symbol 162 BitmapUsed by:163 181
Symbol 163 GraphicUses:162 160Used by:167
Symbol 164 BitmapUsed by:165
Symbol 165 GraphicUses:164Used by:166
Symbol 166 MovieClipUses:165Used by:167 168
Symbol 167 MovieClipUses:147 150 153 156 159 161 163 166Used by:259
Symbol 168 MovieClipUses:147 166 150Used by:259
Symbol 169 GraphicUses:116 110 107 101 119Used by:170
Symbol 170 MovieClip {jalapenos_picados}Uses:169Used by:259 436
Symbol 171 BitmapUsed by:172
Symbol 172 GraphicUses:171Used by:173
Symbol 173 MovieClipUses:172Used by:188
Symbol 174 BitmapUsed by:175
Symbol 175 GraphicUses:174Used by:176
Symbol 176 MovieClipUses:175Used by:188
Symbol 177 BitmapUsed by:178
Symbol 178 GraphicUses:177Used by:179
Symbol 179 MovieClipUses:178Used by:188 204
Symbol 180 GraphicUses:160Used by:188
Symbol 181 GraphicUses:162 160Used by:188 204
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:184
Symbol 184 MovieClipUses:183Used by:188 204
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:187
Symbol 187 MovieClipUses:186Used by:188 204
Symbol 188 MovieClip {tacos_fla.Carnesmarinadas_77}Uses:173 176 179 180 181 184 187Used by:259
Symbol 189 BitmapUsed by:190
Symbol 190 GraphicUses:189Used by:191
Symbol 191 MovieClip {jugodelimon}Uses:190Used by:259 436
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:194
Symbol 194 MovieClip {sasonador}Uses:193Used by:259 436
Symbol 195 BitmapUsed by:196
Symbol 196 GraphicUses:195Used by:197
Symbol 197 MovieClip {pimienta}Uses:196Used by:259 436
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:200
Symbol 200 MovieClip {sal}Uses:199Used by:259 436
Symbol 201 BitmapUsed by:202
Symbol 202 GraphicUses:201Used by:203
Symbol 203 MovieClip {aceitedeolivo}Uses:202Used by:259 436
Symbol 204 MovieClip {tacos_fla.Carnesmarinadas2_88}Uses:179 181 184 187Used by:259
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:207
Symbol 207 MovieClipUses:206Used by:208
Symbol 208 MovieClipUses:207Used by:259
Symbol 209 BitmapUsed by:210
Symbol 210 GraphicUses:209Used by:211
Symbol 211 MovieClipUses:210Used by:225
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:214
Symbol 214 MovieClipUses:213Used by:225
Symbol 215 GraphicUsed by:225
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:218
Symbol 218 MovieClipUses:217Used by:225 253 257 258
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:221
Symbol 221 MovieClipUses:220Used by:225
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:224
Symbol 224 MovieClipUses:223Used by:225
Symbol 225 MovieClipUses:211 214 215 131 134 137 218 221 224Used by:259
Symbol 226 BitmapUsed by:227
Symbol 227 GraphicUses:226Used by:228
Symbol 228 MovieClip {miniSteak}Uses:227Used by:259 436
Symbol 229 BitmapUsed by:230
Symbol 230 GraphicUses:229Used by:231
Symbol 231 MovieClipUses:230Used by:238 239 240
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:234
Symbol 234 MovieClipUses:233Used by:238 239
Symbol 235 BitmapUsed by:236
Symbol 236 GraphicUses:235Used by:237
Symbol 237 MovieClipUses:236Used by:238
Symbol 238 MovieClipUses:231 234 237Used by:259
Symbol 239 MovieClipUses:231 234Used by:259
Symbol 240 MovieClipUses:231Used by:259
Symbol 241 BitmapUsed by:242
Symbol 242 GraphicUses:241Used by:243
Symbol 243 MovieClip {tortilla1}Uses:242Used by:253 258 259 436
Symbol 244 BitmapUsed by:245
Symbol 245 GraphicUses:244Used by:246
Symbol 246 MovieClipUses:245Used by:253 258
Symbol 247 BitmapUsed by:248
Symbol 248 GraphicUses:247Used by:249
Symbol 249 MovieClipUses:248Used by:253 258
Symbol 250 BitmapUsed by:251
Symbol 251 GraphicUses:250Used by:252
Symbol 252 MovieClipUses:251Used by:253 258
Symbol 253 MovieClipUses:143 243 218 246 249 252Used by:259
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:256
Symbol 256 MovieClip {salsa}Uses:255Used by:259 436
Symbol 257 MovieClip {friedSteak}Uses:218Used by:259 436
Symbol 258 MovieClipUses:143 243 218 246 249 252Used by:259
Symbol 259 MovieClip {cooking.TacosGame}Uses:35 38 69 91 122 138 141 144 167 168 32 27 22 17 170 68 90 188 191 194 197 200 203 204 208 225 228 238 239 240 253 243 256 257 258Used by:347  Timeline
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:300
Symbol 262 BitmapUsed by:263
Symbol 263 GraphicUses:262Used by:300
Symbol 264 BitmapUsed by:265
Symbol 265 GraphicUses:264Used by:300
Symbol 266 BitmapUsed by:267
Symbol 267 GraphicUses:266Used by:300
Symbol 268 BitmapUsed by:269
Symbol 269 GraphicUses:268Used by:300
Symbol 270 BitmapUsed by:271
Symbol 271 GraphicUses:270Used by:300
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:272Used by:300
Symbol 274 BitmapUsed by:275
Symbol 275 GraphicUses:274Used by:300
Symbol 276 BitmapUsed by:277
Symbol 277 GraphicUses:276Used by:300
Symbol 278 BitmapUsed by:279
Symbol 279 GraphicUses:278Used by:300
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:300
Symbol 282 BitmapUsed by:283
Symbol 283 GraphicUses:282Used by:300
Symbol 284 BitmapUsed by:285
Symbol 285 GraphicUses:284Used by:300
Symbol 286 BitmapUsed by:287
Symbol 287 GraphicUses:286Used by:300
Symbol 288 BitmapUsed by:289
Symbol 289 GraphicUses:288Used by:300
Symbol 290 BitmapUsed by:291
Symbol 291 GraphicUses:290Used by:300
Symbol 292 BitmapUsed by:293
Symbol 293 GraphicUses:292Used by:300
Symbol 294 BitmapUsed by:295
Symbol 295 GraphicUses:294Used by:300
Symbol 296 BitmapUsed by:297
Symbol 297 GraphicUses:296Used by:300
Symbol 298 BitmapUsed by:299
Symbol 299 GraphicUses:298Used by:300
Symbol 300 MovieClipUses:261 263 265 267 269 271 273 275 277 279 281 283 285 287 289 291 293 295 297 299Used by:304
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClipUses:301Used by:303
Symbol 303 MovieClipUses:302Used by:304
Symbol 304 MovieClipUses:300 303Used by:336 338
Symbol 305 GraphicUsed by:306
Symbol 306 MovieClipUses:305Used by:310
Symbol 307 GraphicUsed by:310
Symbol 308 GraphicUsed by:309
Symbol 309 MovieClipUses:308Used by:310
Symbol 310 MovieClipUses:306 307 309Used by:335 336
Symbol 311 GraphicUsed by:312
Symbol 312 MovieClipUses:311Used by:335 336
Symbol 313 GraphicUsed by:317
Symbol 314 GraphicUsed by:317
Symbol 315 GraphicUsed by:317
Symbol 316 GraphicUsed by:317
Symbol 317 MovieClipUses:313 314 315 316Used by:336
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:318Used by:336
Symbol 320 GraphicUsed by:321
Symbol 321 MovieClipUses:320Used by:335 336
Symbol 322 GraphicUsed by:334
Symbol 323 GraphicUsed by:326
Symbol 324 GraphicUsed by:325
Symbol 325 MovieClipUses:324Used by:326
Symbol 326 MovieClipUses:323 325Used by:334
Symbol 327 GraphicUsed by:334
Symbol 328 GraphicUsed by:329
Symbol 329 MovieClipUses:328Used by:334
Symbol 330 GraphicUsed by:331
Symbol 331 MovieClipUses:330Used by:334
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClipUses:332Used by:334
Symbol 334 MovieClipUses:322 326 327 329 331 333Used by:335 336
Symbol 335 MovieClipUses:334 310 321 312Used by:336 338 365
Symbol 336 MovieClipUses:304 310 312 317 319 321 334 335Used by:339
Symbol 337 GraphicUsed by:338
Symbol 338 MovieClipUses:335 337 304Used by:339
Symbol 339 MovieClip {PreloaderMC}Uses:336 338Used by:Timeline
Symbol 340 GraphicUsed by:347
Symbol 341 Sound {mainGameMusic}Used by:347
Symbol 342 Sound {SndDrop}Used by:347
Symbol 343 Sound {SndMixer}Used by:347
Symbol 344 Sound {SndFry}Used by:347
Symbol 345 Sound {TimeOutSound}Used by:347
Symbol 346 Sound {CountdownSound}Used by:347
Symbol 347 MovieClip {tacos_fla.assetLoader_22}Uses:340 341 342 343 344 259 345 346Used by:Timeline
Symbol 348 BitmapUsed by:349
Symbol 349 GraphicUses:348Used by:366
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:352 356
Symbol 352 MovieClipUses:351Used by:356
Symbol 353 FontUsed by:354 355 360 361 382 383 384 391 402 407 415 425 426 427 428 448
Symbol 354 TextUses:353Used by:356
Symbol 355 TextUses:353Used by:356
Symbol 356 ButtonUses:352 354 355 351Used by:366
Symbol 357 BitmapUsed by:358
Symbol 358 GraphicUses:357Used by:359 362 385 416
Symbol 359 MovieClipUses:358Used by:362 385 416
Symbol 360 TextUses:353Used by:362
Symbol 361 TextUses:353Used by:362
Symbol 362 ButtonUses:359 360 361 358Used by:366 386 429
Symbol 363 BitmapUsed by:364
Symbol 364 GraphicUses:363Used by:366
Symbol 365 MovieClipUses:335Used by:366  Timeline
Symbol 366 MovieClip {tacos_fla.mainMenu_112}Uses:349 356 362 364 365Used by:Timeline
Symbol 367 GraphicUsed by:368
Symbol 368 MovieClipUses:367Used by:Timeline
Symbol 369 BitmapUsed by:371
Symbol 370 BitmapUsed by:371
Symbol 371 GraphicUses:369 370Used by:378
Symbol 372 BitmapUsed by:373
Symbol 373 GraphicUses:372Used by:378
Symbol 374 BitmapUsed by:375
Symbol 375 GraphicUses:374Used by:378
Symbol 376 BitmapUsed by:377
Symbol 377 GraphicUses:376Used by:378
Symbol 378 MovieClip {tacos_fla.Esenafinal_120}Uses:371 373 375 377Used by:Timeline
Symbol 379 GraphicUsed by:386
Symbol 380 FontUsed by:381 382 417 418 419 420 421 422 423 424 425 426 427 428
Symbol 381 TextUses:380Used by:386
Symbol 382 EditableTextUses:353 380Used by:386
Symbol 383 TextUses:353Used by:385
Symbol 384 TextUses:353Used by:385
Symbol 385 ButtonUses:359 383 384 358Used by:386
Symbol 386 MovieClip {tacos_fla.finalScoreWindow_121}Uses:379 381 382 362 385Used by:Timeline
Symbol 387 SoundUsed by:Timeline
Symbol 388 BitmapUsed by:389
Symbol 389 GraphicUses:388Used by:390 392
Symbol 390 MovieClipUses:389Used by:392
Symbol 391 TextUses:353Used by:392
Symbol 392 ButtonUses:390 391 389Used by:Timeline
Symbol 393 BitmapUsed by:394
Symbol 394 GraphicUses:393Used by:398
Symbol 395 GraphicUsed by:398
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClipUses:396Used by:398
Symbol 398 MovieClip {tacos_fla.reloj_125}Uses:394 395 397Used by:Timeline
Symbol 399 BitmapUsed by:400
Symbol 400 GraphicUses:399Used by:401
Symbol 401 MovieClipUses:400Used by:403
Symbol 402 EditableTextUses:353Used by:403
Symbol 403 MovieClipUses:401 402Used by:Timeline
Symbol 404 BitmapUsed by:405
Symbol 405 GraphicUses:404Used by:406
Symbol 406 MovieClipUses:405Used by:411
Symbol 407 EditableTextUses:353Used by:411
Symbol 408 FontUsed by:409
Symbol 409 EditableTextUses:408Used by:410
Symbol 410 MovieClipUses:409Used by:411
Symbol 411 MovieClipUses:406 407 410Used by:Timeline
Symbol 412 BitmapUsed by:413
Symbol 413 GraphicUses:412Used by:414
Symbol 414 MovieClipUses:413Used by:429
Symbol 415 TextUses:353Used by:416
Symbol 416 ButtonUses:359 415 358Used by:429
Symbol 417 TextUses:380Used by:429
Symbol 418 TextUses:380Used by:429
Symbol 419 TextUses:380Used by:429
Symbol 420 TextUses:380Used by:429
Symbol 421 TextUses:380Used by:429
Symbol 422 TextUses:380Used by:429
Symbol 423 TextUses:380Used by:429
Symbol 424 TextUses:380Used by:429
Symbol 425 EditableTextUses:353 380Used by:429
Symbol 426 EditableTextUses:353 380Used by:429
Symbol 427 EditableTextUses:353 380Used by:429
Symbol 428 EditableTextUses:353 380Used by:429
Symbol 429 MovieClip {tacos_fla.scoreWindow_132}Uses:414 416 362 417 418 419 420 421 422 423 424 425 426 427 428Used by:Timeline
Symbol 430 BitmapUsed by:431
Symbol 431 GraphicUses:430Used by:437
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClip {tacos_fla.mask_hint_136}Uses:432Used by:437
Symbol 434 MovieClipUses:24Used by:436
Symbol 435 MovieClipUses:29Used by:436
Symbol 436 MovieClipUses:257 243 256 170 68 90 191 194 197 200 228 203 434 435Used by:437
Symbol 437 MovieClipUses:431 433 436Used by:Timeline
Symbol 438 GraphicUsed by:439
Symbol 439 MovieClipUses:438Used by:447
Symbol 440 GraphicUsed by:441
Symbol 441 MovieClipUses:440Used by:447
Symbol 442 GraphicUsed by:447
Symbol 443 GraphicUsed by:446
Symbol 444 GraphicUsed by:446
Symbol 445 GraphicUsed by:446
Symbol 446 MovieClip {tacos_fla.mouse_143}Uses:443 444 445Used by:447
Symbol 447 MovieClip {tacos_fla.tut1_140}Uses:439 441 442 446Used by:Timeline
Symbol 448 TextUses:353Used by:449
Symbol 449 MovieClipUses:448Used by:Timeline
Symbol 450 BitmapUsed by:451
Symbol 451 GraphicUses:450Used by:452
Symbol 452 MovieClipUses:451Used by:Timeline

Instance Names

"preloader"Frame 1Symbol 339 MovieClip {PreloaderMC}
"blackLayer"Frame 20Symbol 368 MovieClip
"finalScoreWindow"Frame 30Symbol 386 MovieClip {tacos_fla.finalScoreWindow_121}
"game"Frame 40Symbol 259 MovieClip {cooking.TacosGame}
"logo"Frame 40Symbol 365 MovieClip
"exitBtn"Frame 40Symbol 392 Button
"clock"Frame 40Symbol 398 MovieClip {tacos_fla.reloj_125}
"instructions"Frame 40Symbol 403 MovieClip
"scoreMC"Frame 40Symbol 411 MovieClip
"scoreWindow"Frame 40Symbol 429 MovieClip {tacos_fla.scoreWindow_132}
"placa"Frame 40Symbol 437 MovieClip
"tut1"Frame 40Symbol 447 MovieClip {tacos_fla.tut1_140}
"notimebonus"Frame 40Symbol 449 MovieClip
"todayMenu"Frame 40Symbol 452 MovieClip
"p1"Symbol 5 MovieClip {cooking.RectArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p2"Symbol 5 MovieClip {cooking.RectArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p3"Symbol 5 MovieClip {cooking.RectArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p4"Symbol 5 MovieClip {cooking.RectArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p5"Symbol 5 MovieClip {cooking.RectArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p6"Symbol 5 MovieClip {cooking.RectArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p1"Symbol 7 MovieClip {cooking.CurveArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p2"Symbol 7 MovieClip {cooking.CurveArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p3"Symbol 7 MovieClip {cooking.CurveArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p4"Symbol 7 MovieClip {cooking.CurveArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p5"Symbol 7 MovieClip {cooking.CurveArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"p6"Symbol 7 MovieClip {cooking.CurveArrow} Frame 1Symbol 4 MovieClip {cooking.ArrowPoint}
"base"Symbol 167 MovieClip Frame 1Symbol 147 MovieClip
"base"Symbol 168 MovieClip Frame 1Symbol 147 MovieClip
"tabla"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 38 MovieClip
"onion"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 69 MovieClip {tacos_fla.CebollaCORTA_26}
"tomato"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 91 MovieClip {tacos_fla.TomateCORTAR_37}
"chilli"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 122 MovieClip {tacos_fla.Chile_45}
"steak"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 138 MovieClip {tacos_fla.Bistek_56}
"plato2"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 141 MovieClip
"plato1"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 144 MovieClip
"plato3"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 141 MovieClip
"mixer1"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 167 MovieClip
"mixed_salsa"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 168 MovieClip
"btnGreen"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 32 MovieClip {BtnMixerGreen}
"btnRed"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 27 MovieClip {BtnMixerRed}
"btnYellow"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 22 MovieClip {BtnMixerYellow}
"btnWhite"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 17 MovieClip {BtnMixerWhite}
"jalapeno_picado"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 170 MovieClip {jalapenos_picados}
"cebolla_picada"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 68 MovieClip {cebollines}
"tomate_picado"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 90 MovieClip {tomatillos}
"marinated_steak"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 188 MovieClip {tacos_fla.Carnesmarinadas_77}
"lemon"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 191 MovieClip {jugodelimon}
"sauce"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 194 MovieClip {sasonador}
"pepper"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 197 MovieClip {pimienta}
"salt"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 200 MovieClip {sal}
"pepper2"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 197 MovieClip {pimienta}
"salt2"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 200 MovieClip {sal}
"dummy"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 203 MovieClip {aceitedeolivo}
"marinated_steak2"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 204 MovieClip {tacos_fla.Carnesmarinadas2_88}
"estufa"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 208 MovieClip
"plato4"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 144 MovieClip
"sarten"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 225 MovieClip
"olive"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 203 MovieClip {aceitedeolivo}
"ministeak"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 228 MovieClip {miniSteak}
"firehigh"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 238 MovieClip
"firemedium"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 239 MovieClip
"firelow"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 240 MovieClip
"btnGreen2"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 32 MovieClip {BtnMixerGreen}
"btnRed2"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 27 MovieClip {BtnMixerRed}
"btnYellow2"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 22 MovieClip {BtnMixerYellow}
"plato6"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 141 MovieClip
"plato5"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 141 MovieClip
"armartaco"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 253 MovieClip
"tortilla"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 243 MovieClip {tortilla1}
"greensauce"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 256 MovieClip {salsa}
"friedsteak"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 257 MovieClip {friedSteak}
"armartaco2"Symbol 259 MovieClip {cooking.TacosGame} Frame 1Symbol 258 MovieClip
"barMask"Symbol 304 MovieClip Frame 1Symbol 303 MovieClip
"loader"Symbol 336 MovieClip Frame 1Symbol 304 MovieClip
"logo"Symbol 338 MovieClip Frame 1Symbol 335 MovieClip
"loader"Symbol 338 MovieClip Frame 1Symbol 304 MovieClip
"anim2"Symbol 339 MovieClip {PreloaderMC} Frame 1Symbol 336 MovieClip
"anim1"Symbol 339 MovieClip {PreloaderMC} Frame 1Symbol 338 MovieClip
"btnPlay"Symbol 366 MovieClip {tacos_fla.mainMenu_112} Frame 1Symbol 356 Button
"btnMore"Symbol 366 MovieClip {tacos_fla.mainMenu_112} Frame 1Symbol 362 Button
"logo"Symbol 366 MovieClip {tacos_fla.mainMenu_112} Frame 1Symbol 365 MovieClip
"txtTotal"Symbol 386 MovieClip {tacos_fla.finalScoreWindow_121} Frame 1Symbol 382 EditableText
"btnMore"Symbol 386 MovieClip {tacos_fla.finalScoreWindow_121} Frame 1Symbol 362 Button
"btnAgain"Symbol 386 MovieClip {tacos_fla.finalScoreWindow_121} Frame 1Symbol 385 Button
"texto"Symbol 403 MovieClip Frame 1Symbol 402 EditableText
"txtAddScore"Symbol 410 MovieClip Frame 1Symbol 409 EditableText
"txtScore"Symbol 411 MovieClip Frame 1Symbol 407 EditableText
"addScore"Symbol 411 MovieClip Frame 1Symbol 410 MovieClip
"btnNext"Symbol 429 MovieClip {tacos_fla.scoreWindow_132} Frame 1Symbol 416 Button
"txtPoints"Symbol 429 MovieClip {tacos_fla.scoreWindow_132} Frame 1Symbol 425 EditableText
"txtBonus"Symbol 429 MovieClip {tacos_fla.scoreWindow_132} Frame 1Symbol 426 EditableText
"txtTime"Symbol 429 MovieClip {tacos_fla.scoreWindow_132} Frame 1Symbol 427 EditableText
"txtTotal"Symbol 429 MovieClip {tacos_fla.scoreWindow_132} Frame 1Symbol 428 EditableText
"friedsteak"Symbol 436 MovieClip Frame 1Symbol 257 MovieClip {friedSteak}
"tortilla"Symbol 436 MovieClip Frame 1Symbol 243 MovieClip {tortilla1}
"greensauce"Symbol 436 MovieClip Frame 1Symbol 256 MovieClip {salsa}
"jalapeno_picado"Symbol 436 MovieClip Frame 1Symbol 170 MovieClip {jalapenos_picados}
"cebolla_picada"Symbol 436 MovieClip Frame 1Symbol 68 MovieClip {cebollines}
"tomate_picado"Symbol 436 MovieClip Frame 1Symbol 90 MovieClip {tomatillos}
"lemon"Symbol 436 MovieClip Frame 1Symbol 191 MovieClip {jugodelimon}
"sauce"Symbol 436 MovieClip Frame 1Symbol 194 MovieClip {sasonador}
"pepper"Symbol 436 MovieClip Frame 1Symbol 197 MovieClip {pimienta}
"salt"Symbol 436 MovieClip Frame 1Symbol 200 MovieClip {sal}
"pepper2"Symbol 436 MovieClip Frame 1Symbol 197 MovieClip {pimienta}
"salt2"Symbol 436 MovieClip Frame 1Symbol 200 MovieClip {sal}
"ministeak"Symbol 436 MovieClip Frame 1Symbol 228 MovieClip {miniSteak}
"olive"Symbol 436 MovieClip Frame 1Symbol 203 MovieClip {aceitedeolivo}
"redButton"Symbol 436 MovieClip Frame 1Symbol 434 MovieClip
"greenButton"Symbol 436 MovieClip Frame 1Symbol 435 MovieClip
"mascara"Symbol 437 MovieClip Frame 1Symbol 433 MovieClip {tacos_fla.mask_hint_136}
"hint"Symbol 437 MovieClip Frame 1Symbol 436 MovieClip
"mouse"Symbol 447 MovieClip {tacos_fla.tut1_140} Frame 1Symbol 446 MovieClip {tacos_fla.mouse_143}

Special Tags

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

Labels

"preload"Frame 1
"menu"Frame 20
"end"Frame 30
"play"Frame 40




http://swfchan.com/22/108079/info.shtml
Created: 10/8 -2019 11:45:06 Last modified: 10/8 -2019 11:45:06 Server time: 14/11 -2024 17:26:48