Section 1
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var priority:int;
public var start:Number;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var name:String;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
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 2
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
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)))) && (!(_local4.gc)))))){
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 addChild(_arg1:TweenCore):void{
if (((!(_arg1.gc)) && (_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;
_firstChild = _arg1;
_arg1.prevNode = null;
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.gc){
return;
};
if (!_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;
};
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
}
}//package com.greensock.core
Section 3
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedTime:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var timeline:SimpleTimeline;
public var data;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.13;
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 renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
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 set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
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.cachedTotalTime == this.cachedTotalDuration)))) && (!(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 get totalTime():Number{
return (this.cachedTotalTime);
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
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 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.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
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 pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.gc))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this, true);
};
};
this.gc = !(_arg1);
return (false);
}
}
}//package com.greensock.core
Section 4
//Back (com.greensock.easing.Back)
package com.greensock.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 * 0.5) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 5
//Quart (com.greensock.easing.Quart)
package com.greensock.easing {
public class Quart {
public static const power:uint = 3;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _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) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) * 0.5) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 6
//Sine (com.greensock.easing.Sine)
package com.greensock.easing {
public class Sine {
private static const _HALF_PI:Number = (Math.PI * 0.5);
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * _HALF_PI))) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * _HALF_PI))) + _arg3) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * 0.5) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
}
}//package com.greensock.easing
Section 7
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.events.*;
import com.greensock.core.*;
import flash.display.*;
import flash.utils.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
protected var _hasPlugins:Boolean;
public var propTweenLookup:Object;
public var cachedPT1:PropTween;
protected var _overwrite:uint;
protected var _ease:Function;
public var target:Object;
public var ratio:Number;// = 0
protected var _overwrittenProps:Object;
protected var _notifyPluginsOfEnabled:Boolean;
public static const version:Number = 11.133;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
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 = (((!((Number(_arg3.overwrite) > -1))) || (((!(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 easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number = this.cachedTime;
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 (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
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);
};
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
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 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;
}
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 = {};
}
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 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];
};
}
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));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
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 to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 8
//bandejascosas_518 (NekoChuChu_fla.bandejascosas_518)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class bandejascosas_518 extends MovieClip {
public function bandejascosas_518(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 9
//bikinini_484 (NekoChuChu_fla.bikinini_484)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class bikinini_484 extends MovieClip {
public function bikinini_484(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 10
//bocasni_486 (NekoChuChu_fla.bocasni_486)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class bocasni_486 extends MovieClip {
public function bocasni_486(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 11
//calcetinesneko_496 (NekoChuChu_fla.calcetinesneko_496)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class calcetinesneko_496 extends MovieClip {
public function calcetinesneko_496(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 12
//camisetamodel6_511 (NekoChuChu_fla.camisetamodel6_511)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class camisetamodel6_511 extends MovieClip {
public function camisetamodel6_511(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 13
//camisetamodelo1_506 (NekoChuChu_fla.camisetamodelo1_506)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class camisetamodelo1_506 extends MovieClip {
public function camisetamodelo1_506(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 14
//camisetamodelo2_507 (NekoChuChu_fla.camisetamodelo2_507)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class camisetamodelo2_507 extends MovieClip {
public function camisetamodelo2_507(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package NekoChuChu_fla
Section 15
//camisetamodelo3_508 (NekoChuChu_fla.camisetamodelo3_508)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class camisetamodelo3_508 extends MovieClip {
public function camisetamodelo3_508(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package NekoChuChu_fla
Section 16
//camisetamodelo4_509 (NekoChuChu_fla.camisetamodelo4_509)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class camisetamodelo4_509 extends MovieClip {
public function camisetamodelo4_509(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 17
//camisetamodelo5_510 (NekoChuChu_fla.camisetamodelo5_510)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class camisetamodelo5_510 extends MovieClip {
public function camisetamodelo5_510(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 18
//camisetasni_505 (NekoChuChu_fla.camisetasni_505)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class camisetasni_505 extends MovieClip {
public var camiseta:MovieClip;
public function camisetasni_505(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame6(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_CAMISETA_CHANGE, {}));
}
function frame1(){
stop();
}
function frame2(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_CAMISETA_CHANGE, {}));
}
function frame3(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_CAMISETA_CHANGE, {}));
}
function frame4(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_CAMISETA_CHANGE, {}));
}
function frame5(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_CAMISETA_CHANGE, {}));
}
function frame7(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_CAMISETA_CHANGE, {}));
}
}
}//package NekoChuChu_fla
Section 19
//cascosmusica_514 (NekoChuChu_fla.cascosmusica_514)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cascosmusica_514 extends MovieClip {
public function cascosmusica_514(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 20
//cejas_493 (NekoChuChu_fla.cejas_493)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class cejas_493 extends MovieClip {
public var ceja:MovieClip;
public function cejas_493(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame6(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame1(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
stop();
}
function frame2(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame3(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame4(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame5(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
}
}//package NekoChuChu_fla
Section 21
//cejasmodo1_268 (NekoChuChu_fla.cejasmodo1_268)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cejasmodo1_268 extends MovieClip {
public function cejasmodo1_268(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 22
//cejasmodo2_269 (NekoChuChu_fla.cejasmodo2_269)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cejasmodo2_269 extends MovieClip {
public function cejasmodo2_269(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 23
//cejasmodo3_270 (NekoChuChu_fla.cejasmodo3_270)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cejasmodo3_270 extends MovieClip {
public function cejasmodo3_270(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 24
//cejasmodo4_271 (NekoChuChu_fla.cejasmodo4_271)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cejasmodo4_271 extends MovieClip {
public function cejasmodo4_271(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 25
//cejasmodo5_272 (NekoChuChu_fla.cejasmodo5_272)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cejasmodo5_272 extends MovieClip {
public function cejasmodo5_272(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 26
//cejasmodo6_273 (NekoChuChu_fla.cejasmodo6_273)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cejasmodo6_273 extends MovieClip {
public function cejasmodo6_273(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 27
//cola1_274 (NekoChuChu_fla.cola1_274)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cola1_274 extends MovieClip {
public function cola1_274(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 28
//cola2_275 (NekoChuChu_fla.cola2_275)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cola2_275 extends MovieClip {
public function cola2_275(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 29
//cola3_279 (NekoChuChu_fla.cola3_279)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cola3_279 extends MovieClip {
public function cola3_279(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 30
//cola4_276 (NekoChuChu_fla.cola4_276)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cola4_276 extends MovieClip {
public function cola4_276(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 31
//cola5_277 (NekoChuChu_fla.cola5_277)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cola5_277 extends MovieClip {
public function cola5_277(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 32
//cola6_278 (NekoChuChu_fla.cola6_278)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class cola6_278 extends MovieClip {
public function cola6_278(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 33
//coloretesni_485 (NekoChuChu_fla.coloretesni_485)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class coloretesni_485 extends MovieClip {
public function coloretesni_485(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package NekoChuChu_fla
Section 34
//correas_494 (NekoChuChu_fla.correas_494)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class correas_494 extends MovieClip {
public function correas_494(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 35
//DETALLES_3 (NekoChuChu_fla.DETALLES_3)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class DETALLES_3 extends MovieClip {
public function DETALLES_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 36
//falda1_499 (NekoChuChu_fla.falda1_499)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class falda1_499 extends MovieClip {
public function falda1_499(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 37
//falda2_500 (NekoChuChu_fla.falda2_500)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class falda2_500 extends MovieClip {
public function falda2_500(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 38
//falda3_501 (NekoChuChu_fla.falda3_501)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class falda3_501 extends MovieClip {
public function falda3_501(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 39
//falda4_502 (NekoChuChu_fla.falda4_502)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class falda4_502 extends MovieClip {
public function falda4_502(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 40
//falda5_503 (NekoChuChu_fla.falda5_503)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class falda5_503 extends MovieClip {
public function falda5_503(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 41
//falda6_504 (NekoChuChu_fla.falda6_504)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class falda6_504 extends MovieClip {
public function falda6_504(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 42
//faldas_498 (NekoChuChu_fla.faldas_498)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class faldas_498 extends MovieClip {
public var falda:MovieClip;
public function faldas_498(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame1(){
stop();
}
function frame2(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_FALDA_CHANGE, {}));
}
function frame3(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_FALDA_CHANGE, {}));
}
function frame4(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_FALDA_CHANGE, {}));
}
function frame5(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_FALDA_CHANGE, {}));
}
function frame6(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_FALDA_CHANGE, {}));
}
function frame7(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_FALDA_CHANGE, {}));
}
}
}//package NekoChuChu_fla
Section 43
//felpas_513 (NekoChuChu_fla.felpas_513)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class felpas_513 extends MovieClip {
public function felpas_513(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 44
//fondonekogirl_109 (NekoChuChu_fla.fondonekogirl_109)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class fondonekogirl_109 extends MovieClip {
public var score:MovieClip;
public var bocata:MovieClip;
public function fondonekogirl_109(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
dispatchEvent(new GameEvents(GameEvents.SHOW_SCORES, {}));
}
}
}//package NekoChuChu_fla
Section 45
//gafas_516 (NekoChuChu_fla.gafas_516)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class gafas_516 extends MovieClip {
public function gafas_516(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 46
//gorras_517 (NekoChuChu_fla.gorras_517)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class gorras_517 extends MovieClip {
public function gorras_517(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 47
//imagenwarningchicasgames_83 (NekoChuChu_fla.imagenwarningchicasgames_83)
package NekoChuChu_fla {
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.utils.*;
import rutch.stage.*;
import flash.text.*;
import flash.media.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class imagenwarningchicasgames_83 extends MovieClip {
public var txt_url:TextField;
public var txt_mess:TextField;
public var logo:MovieClip;
public function imagenwarningchicasgames_83(){
addFrameScript(0, frame1);
}
function frame1(){
txt_mess.htmlText = ((((("<br>" + Language.JUEGO_BLOQUEADO[Language.lang][0]) + "<font color='#00CBFF'>") + Language.WEBS[Language.lang]) + "</font>") + Language.JUEGO_BLOQUEADO[Language.lang][1]);
txt_url.text = ((Language.WEBS[Language.lang] + TheStage.GAME_NAME) + "/");
logo.gotoAndStop((Language.lang + 1));
logo.buttonMode = true;
logo.addEventListener(MouseEvent.CLICK, TheStage.gotoWeb);
visible = false;
}
}
}//package NekoChuChu_fla
Section 48
//iris_488 (NekoChuChu_fla.iris_488)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class iris_488 extends MovieClip {
public function iris_488(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 49
//lazosni_515 (NekoChuChu_fla.lazosni_515)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class lazosni_515 extends MovieClip {
public function lazosni_515(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 50
//logos_99 (NekoChuChu_fla.logos_99)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class logos_99 extends MovieClip {
public function logos_99(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 51
//menu_122 (NekoChuChu_fla.menu_122)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class menu_122 extends MovieClip {
public var btn_1:SimpleButton;
public var btn_2:SimpleButton;
public var btn_3:SimpleButton;
public var btn_4:SimpleButton;
public var btn_5:SimpleButton;
public var btn_6:SimpleButton;
public var ventanas:MovieClip;
public function menu_122(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 52
//menuventanillas_124 (NekoChuChu_fla.menuventanillas_124)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class menuventanillas_124 extends MovieClip {
public var v_1:MovieClip;
public var v_2:MovieClip;
public var v_3:MovieClip;
public var v_4:MovieClip;
public var v_5:MovieClip;
public var v_6:MovieClip;
public function menuventanillas_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 53
//movventanilla1_125 (NekoChuChu_fla.movventanilla1_125)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class movventanilla1_125 extends MovieClip {
public var v:MovieClip;
public var menu:MovieClip;
public function movventanilla1_125(){
addFrameScript(8, frame9);
}
function frame9(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_1_OPEN, {}));
stop();
}
}
}//package NekoChuChu_fla
Section 54
//movventanilla2_224 (NekoChuChu_fla.movventanilla2_224)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class movventanilla2_224 extends MovieClip {
public var v:MovieClip;
public var menu:MovieClip;
public function movventanilla2_224(){
addFrameScript(8, frame9);
}
function frame9(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_2_OPEN, {}));
stop();
}
}
}//package NekoChuChu_fla
Section 55
//movventanilla3_286 (NekoChuChu_fla.movventanilla3_286)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class movventanilla3_286 extends MovieClip {
public var camiseta_1_1:MovieClip;
public var camiseta_1_2:MovieClip;
public var camiseta_3_1:MovieClip;
public var camiseta_3_2:MovieClip;
public var camiseta_3_3:MovieClip;
public var camiseta_5_2:MovieClip;
public var camiseta_5_3:MovieClip;
public var camiseta_5_4:MovieClip;
public var camiseta_5_5:MovieClip;
public var camiseta_1_3:MovieClip;
public var camiseta_1_4:MovieClip;
public var camiseta_1_5:MovieClip;
public var camiseta_3_4:MovieClip;
public var camiseta_3_5:MovieClip;
public var camiseta_3_6:MovieClip;
public var camiseta_5_6:MovieClip;
public var camiseta_5_1:MovieClip;
public var camiseta_1_6:MovieClip;
public var camiseta_2_1:MovieClip;
public var camiseta_2_2:MovieClip;
public var camiseta_2_3:MovieClip;
public var camiseta_4_2:MovieClip;
public var camiseta_4_3:MovieClip;
public var camiseta_4_4:MovieClip;
public var camiseta_4_5:MovieClip;
public var camiseta_6_4:MovieClip;
public var camiseta_6_6:MovieClip;
public var camiseta_6_1:MovieClip;
public var camiseta_6_2:MovieClip;
public var camiseta_6_3:MovieClip;
public var camiseta_4_6:MovieClip;
public var camiseta_6_5:MovieClip;
public var back:SimpleButton;
public var camiseta_2_4:MovieClip;
public var camiseta_2_5:MovieClip;
public var camiseta_2_6:MovieClip;
public var next:SimpleButton;
public var v:MovieClip;
public var camiseta_4_1:MovieClip;
public function movventanilla3_286(){
addFrameScript(8, frame9, 9, frame10);
}
function frame10(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_3_FRAME_10, {}));
}
function frame9(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_3_OPEN, {}));
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_3_FRAME_9, {}));
stop();
}
}
}//package NekoChuChu_fla
Section 56
//movventanilla4_326 (NekoChuChu_fla.movventanilla4_326)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class movventanilla4_326 extends MovieClip {
public var falda_6_3:MovieClip;
public var falda_2_1:MovieClip;
public var falda_2_4:MovieClip;
public var falda_4_4:MovieClip;
public var falda_4_6:MovieClip;
public var falda_4_1:MovieClip;
public var falda_2_5:MovieClip;
public var falda_2_3:MovieClip;
public var v:MovieClip;
public var falda_2_6:MovieClip;
public var falda_2_2:MovieClip;
public var falda_1_1:MovieClip;
public var falda_1_2:MovieClip;
public var falda_3_1:MovieClip;
public var falda_3_2:MovieClip;
public var falda_3_3:MovieClip;
public var falda_5_2:MovieClip;
public var falda_5_3:MovieClip;
public var falda_5_4:MovieClip;
public var falda_5_5:MovieClip;
public var falda_1_3:MovieClip;
public var falda_1_4:MovieClip;
public var falda_5_1:MovieClip;
public var falda_3_4:MovieClip;
public var falda_3_5:MovieClip;
public var falda_3_6:MovieClip;
public var falda_1_5:MovieClip;
public var falda_1_6:MovieClip;
public var back:SimpleButton;
public var next:SimpleButton;
public var falda_4_2:MovieClip;
public var falda_6_1:MovieClip;
public var falda_6_2:MovieClip;
public var falda_4_5:MovieClip;
public var falda_6_4:MovieClip;
public var falda_6_5:MovieClip;
public var falda_6_6:MovieClip;
public var falda_4_3:MovieClip;
public function movventanilla4_326(){
addFrameScript(8, frame9, 9, frame10);
}
function frame10(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_4_FRAME_10, {}));
}
function frame9(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_4_OPEN, {}));
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_4_FRAME_9, {}));
stop();
}
}
}//package NekoChuChu_fla
Section 57
//movventanilla5_362 (NekoChuChu_fla.movventanilla5_362)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class movventanilla5_362 extends MovieClip {
public var pantie_10:MovieClip;
public var zapato_1:MovieClip;
public var zapato_2:MovieClip;
public var zapato_3:MovieClip;
public var zapato_4:MovieClip;
public var zapato_5:MovieClip;
public var zapato_6:MovieClip;
public var zapato_7:MovieClip;
public var zapato_8:MovieClip;
public var calcetin_1:MovieClip;
public var calcetin_2:MovieClip;
public var calcetin_3:MovieClip;
public var calcetin_5:MovieClip;
public var calcetin_4:MovieClip;
public var back:SimpleButton;
public var pantie_01:MovieClip;
public var pantie_02:MovieClip;
public var pantie_03:MovieClip;
public var pantie_04:MovieClip;
public var pantie_05:MovieClip;
public var pantie_06:MovieClip;
public var pantie_07:MovieClip;
public var pantie_08:MovieClip;
public var v:MovieClip;
public var next:SimpleButton;
public var pantie_09:MovieClip;
public function movventanilla5_362(){
addFrameScript(8, frame9, 9, frame10);
}
function frame10(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_5_FRAME_10, {}));
}
function frame9(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_5_OPEN, {}));
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_5_FRAME_9, {}));
stop();
}
}
}//package NekoChuChu_fla
Section 58
//movventanilla6_388 (NekoChuChu_fla.movventanilla6_388)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class movventanilla6_388 extends MovieClip {
public var casco:MovieClip;
public var correa_4:MovieClip;
public var bandeja_2:SimpleButton;
public var bandeja_3:SimpleButton;
public var correa_3:MovieClip;
public var piel_2:SimpleButton;
public var piel_3:SimpleButton;
public var piel_4:SimpleButton;
public var piel_1:SimpleButton;
public var bandeja_4:SimpleButton;
public var ojos_2:SimpleButton;
public var next:SimpleButton;
public var ojos_4:SimpleButton;
public var correa_1:MovieClip;
public var ojos_col_1:SimpleButton;
public var ojos_3:SimpleButton;
public var gafas_1:MovieClip;
public var gafas_2:MovieClip;
public var gafas_3:MovieClip;
public var gafas_4:MovieClip;
public var colorete_1:SimpleButton;
public var colorete_2:SimpleButton;
public var colorete_3:SimpleButton;
public var boca_1:SimpleButton;
public var boca_2:SimpleButton;
public var boca_3:SimpleButton;
public var boca_4:SimpleButton;
public var v:MovieClip;
public var unas_1:SimpleButton;
public var unas_2:SimpleButton;
public var unas_3:SimpleButton;
public var lazo_1:MovieClip;
public var lazo_2:MovieClip;
public var lazo_4:MovieClip;
public var lazo_3:MovieClip;
public var gorra_1:MovieClip;
public var gorra_2:MovieClip;
public var gorra_3:MovieClip;
public var gorra_4:MovieClip;
public var diadema_01:MovieClip;
public var diadema_02:MovieClip;
public var diadema_03:MovieClip;
public var diadema_04:MovieClip;
public var diadema_05:MovieClip;
public var diadema_06:MovieClip;
public var diadema_07:MovieClip;
public var diadema_08:MovieClip;
public var diadema_09:MovieClip;
public var diadema_10:MovieClip;
public var diadema_11:MovieClip;
public var diadema_12:MovieClip;
public var diadema_13:MovieClip;
public var back:SimpleButton;
public var ojos_1:SimpleButton;
public var ojos_col_2:SimpleButton;
public var ojos_col_3:SimpleButton;
public var ojos_col_4:SimpleButton;
public var bandeja_1:SimpleButton;
public var correa_2:MovieClip;
public var bandeja_5:SimpleButton;
public var bandeja_6:SimpleButton;
public function movventanilla6_388(){
addFrameScript(8, frame9, 9, frame10);
}
function frame10(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_6_FRAME_10, {}));
}
function frame9(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_6_OPEN, {}));
parent.dispatchEvent(new GameEvents(GameEvents.ON_MENU_6_FRAME_9, {}));
stop();
}
}
}//package NekoChuChu_fla
Section 59
//ojosni_487 (NekoChuChu_fla.ojosni_487)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class ojosni_487 extends MovieClip {
public var ojo:MovieClip;
public function ojosni_487(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 60
//orejasgatoni_480 (NekoChuChu_fla.orejasgatoni_480)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class orejasgatoni_480 extends MovieClip {
public var orejas:MovieClip;
public function orejasgatoni_480(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
stop();
}
function frame2(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame3(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame4(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame5(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame6(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
}
}//package NekoChuChu_fla
Section 61
//orejasmodo1_232 (NekoChuChu_fla.orejasmodo1_232)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class orejasmodo1_232 extends MovieClip {
public function orejasmodo1_232(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 62
//orejasmodo2_239 (NekoChuChu_fla.orejasmodo2_239)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class orejasmodo2_239 extends MovieClip {
public function orejasmodo2_239(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 63
//orejasmodo3_246 (NekoChuChu_fla.orejasmodo3_246)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class orejasmodo3_246 extends MovieClip {
public function orejasmodo3_246(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 64
//orejasmodo5_254 (NekoChuChu_fla.orejasmodo5_254)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class orejasmodo5_254 extends MovieClip {
public function orejasmodo5_254(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 65
//orejasmodo6_261 (NekoChuChu_fla.orejasmodo6_261)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class orejasmodo6_261 extends MovieClip {
public function orejasmodo6_261(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 66
//pantiesni_495 (NekoChuChu_fla.pantiesni_495)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pantiesni_495 extends MovieClip {
public function pantiesni_495(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 67
//pelodelantero1_130 (NekoChuChu_fla.pelodelantero1_130)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelodelantero1_130 extends MovieClip {
public function pelodelantero1_130(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 68
//pelodelantero2_137 (NekoChuChu_fla.pelodelantero2_137)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelodelantero2_137 extends MovieClip {
public function pelodelantero2_137(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 69
//pelodelantero3_144 (NekoChuChu_fla.pelodelantero3_144)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelodelantero3_144 extends MovieClip {
public function pelodelantero3_144(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 70
//pelodelantero4_151 (NekoChuChu_fla.pelodelantero4_151)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelodelantero4_151 extends MovieClip {
public function pelodelantero4_151(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 71
//pelodelantero5_158 (NekoChuChu_fla.pelodelantero5_158)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelodelantero5_158 extends MovieClip {
public function pelodelantero5_158(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 72
//pelodelantero6_165 (NekoChuChu_fla.pelodelantero6_165)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelodelantero6_165 extends MovieClip {
public function pelodelantero6_165(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 73
//pelosdelanteros_512 (NekoChuChu_fla.pelosdelanteros_512)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class pelosdelanteros_512 extends MovieClip {
public var pelo:MovieClip;
public function pelosdelanteros_512(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
stop();
}
function frame2(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame3(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame4(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame6(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame5(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
}
}//package NekoChuChu_fla
Section 74
//pelostraveserosni_479 (NekoChuChu_fla.pelostraveserosni_479)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class pelostraveserosni_479 extends MovieClip {
public var pelo:MovieClip;
public function pelostraveserosni_479(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame1(){
stop();
}
function frame2(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame3(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame4(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame6(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame7(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
function frame5(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_PELO_CHANGE, {}));
}
}
}//package NekoChuChu_fla
Section 75
//pelotravesero1_172 (NekoChuChu_fla.pelotravesero1_172)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelotravesero1_172 extends MovieClip {
public function pelotravesero1_172(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 76
//pelotravesero2_179 (NekoChuChu_fla.pelotravesero2_179)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelotravesero2_179 extends MovieClip {
public function pelotravesero2_179(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 77
//pelotravesero3_186 (NekoChuChu_fla.pelotravesero3_186)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelotravesero3_186 extends MovieClip {
public function pelotravesero3_186(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 78
//pelotravesero4_193 (NekoChuChu_fla.pelotravesero4_193)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelotravesero4_193 extends MovieClip {
public function pelotravesero4_193(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 79
//pelotravesero5_200 (NekoChuChu_fla.pelotravesero5_200)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelotravesero5_200 extends MovieClip {
public function pelotravesero5_200(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 80
//pelotravesero6_207 (NekoChuChu_fla.pelotravesero6_207)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pelotravesero6_207 extends MovieClip {
public function pelotravesero6_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 81
//pielni_482 (NekoChuChu_fla.pielni_482)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class pielni_482 extends MovieClip {
public function pielni_482(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 82
//sonidoencendioyapagado_33 (NekoChuChu_fla.sonidoencendioyapagado_33)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class sonidoencendioyapagado_33 extends MovieClip {
public function sonidoencendioyapagado_33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 83
//Timeline_34 (NekoChuChu_fla.Timeline_34)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class Timeline_34 extends MovieClip {
public function Timeline_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 84
//Timeline_35 (NekoChuChu_fla.Timeline_35)
package NekoChuChu_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_35 extends MovieClip {
public function Timeline_35(){
addFrameScript(187, frame188);
}
function frame188(){
parent.dispatchEvent(new Event(Event.COMPLETE));
stop();
}
}
}//package NekoChuChu_fla
Section 85
//Timeline_63 (NekoChuChu_fla.Timeline_63)
package NekoChuChu_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_63 extends MovieClip {
public function Timeline_63(){
addFrameScript(187, frame188);
}
function frame188(){
parent.dispatchEvent(new Event(Event.COMPLETE));
stop();
}
}
}//package NekoChuChu_fla
Section 86
//Timeline_66 (NekoChuChu_fla.Timeline_66)
package NekoChuChu_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_66 extends MovieClip {
public function Timeline_66(){
addFrameScript(187, frame188);
}
function frame188(){
parent.dispatchEvent(new Event(Event.COMPLETE));
stop();
}
}
}//package NekoChuChu_fla
Section 87
//Timeline_69 (NekoChuChu_fla.Timeline_69)
package NekoChuChu_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_69 extends MovieClip {
public function Timeline_69(){
addFrameScript(187, frame188);
}
function frame188(){
parent.dispatchEvent(new Event(Event.COMPLETE));
stop();
}
}
}//package NekoChuChu_fla
Section 88
//Timeline_72 (NekoChuChu_fla.Timeline_72)
package NekoChuChu_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_72 extends MovieClip {
public function Timeline_72(){
addFrameScript(187, frame188);
}
function frame188(){
parent.dispatchEvent(new Event(Event.COMPLETE));
stop();
}
}
}//package NekoChuChu_fla
Section 89
//Timeline_75 (NekoChuChu_fla.Timeline_75)
package NekoChuChu_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_75 extends MovieClip {
public function Timeline_75(){
addFrameScript(187, frame188);
}
function frame188(){
parent.dispatchEvent(new Event(Event.COMPLETE));
stop();
}
}
}//package NekoChuChu_fla
Section 90
//Timeline_78 (NekoChuChu_fla.Timeline_78)
package NekoChuChu_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_78 extends MovieClip {
public function Timeline_78(){
addFrameScript(187, frame188);
}
function frame188(){
parent.dispatchEvent(new Event(Event.COMPLETE));
stop();
}
}
}//package NekoChuChu_fla
Section 91
//Timeline_81 (NekoChuChu_fla.Timeline_81)
package NekoChuChu_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_81 extends MovieClip {
public function Timeline_81(){
addFrameScript(187, frame188);
}
function frame188(){
parent.dispatchEvent(new Event(Event.COMPLETE));
stop();
}
}
}//package NekoChuChu_fla
Section 92
//todaslascolas_481 (NekoChuChu_fla.todaslascolas_481)
package NekoChuChu_fla {
import flash.display.*;
import rutch.events.*;
public dynamic class todaslascolas_481 extends MovieClip {
public var cola:MovieClip;
public function todaslascolas_481(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
stop();
}
function frame2(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame3(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame4(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame5(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
function frame6(){
parent.dispatchEvent(new GameEvents(GameEvents.ON_COMP_CHANGE, {}));
}
}
}//package NekoChuChu_fla
Section 93
//u_483 (NekoChuChu_fla.u_483)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class u_483 extends MovieClip {
public function u_483(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 94
//zapatos_497 (NekoChuChu_fla.zapatos_497)
package NekoChuChu_fla {
import flash.display.*;
public dynamic class zapatos_497 extends MovieClip {
public function zapatos_497(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package NekoChuChu_fla
Section 95
//CrossEvent (rutch.cross.events.CrossEvent)
package rutch.cross.events {
import flash.events.*;
public class CrossEvent extends Event {
public var params:Object;
public static const DELETE_CROSS_LISTENER:String = "_DeleteCrossEventListener";
public static const DEFAULT_NAME:String = "rutch.cross.events.CrossEvent";
public static const REGISTER_CROSS_LISTENER:String = "_RegisterCrossEventListener";
public function CrossEvent(_arg1:String, _arg2:Object, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.params = _arg2;
}
override public function toString():String{
return (formatToString("CrossEvent", "params", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new CrossEvent(type, this.params, bubbles, cancelable));
}
}
}//package rutch.cross.events
Section 96
//CrossBase64 (rutch.cross.CrossBase64)
package rutch.cross {
public class CrossBase64 {
private var _base64Count:Number;
private var _base64Str:String;
private static var _CharsReverseLookup:Array;
private static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
private static var _CharsReverseLookupInited:Boolean = InitReverseChars();
private static var _EndOfInput = -1;
private static var _Chars:Array = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
private function setBase64Str(_arg1:String){
_base64Str = _arg1;
_base64Count = 0;
}
private function readBase64():Number{
if (!_base64Str){
return (_EndOfInput);
};
if (_base64Count >= _base64Str.length){
return (_EndOfInput);
};
var _local1:Number = (_base64Str.charCodeAt(_base64Count) & 0xFF);
_base64Count++;
return (_local1);
}
private function toHex(_arg1:Number):String{
var _local5:*;
var _local2 = "";
var _local3:* = true;
var _local4:Number = 32;
while (_local4 > 0) {
_local4 = (_local4 - 4);
_local5 = ((_arg1 >> _local4) & 15);
if (((!(_local3)) || (!((_local5 == 0))))){
_local3 = false;
_local2 = (_local2 + _Digits[_local5]);
};
};
return (((_local2 == "")) ? "0" : _local2);
}
private function ntos(_arg1:Number):String{
var _local2:String = _arg1.toString(16);
if (_local2.length == 1){
_local2 = ("0" + _local2);
};
_local2 = ("%" + _local2);
return (unescape(_local2));
}
private function encodeBase64(_arg1:String){
setBase64Str(_arg1);
var _local2:* = "";
var _local3:* = new Array(3);
var _local4:* = 0;
var _local5:* = false;
while (((!(_local5)) && (!(((_local3[0] = readBase64()) == _EndOfInput))))) {
_local3[1] = readBase64();
_local3[2] = readBase64();
_local2 = (_local2 + _Chars[(_local3[0] >> 2)]);
if (_local3[1] != _EndOfInput){
_local2 = (_local2 + _Chars[(((_local3[0] << 4) & 48) | (_local3[1] >> 4))]);
if (_local3[2] != _EndOfInput){
_local2 = (_local2 + _Chars[(((_local3[1] << 2) & 60) | (_local3[2] >> 6))]);
_local2 = (_local2 + _Chars[(_local3[2] & 63)]);
} else {
_local2 = (_local2 + _Chars[((_local3[1] << 2) & 60)]);
_local2 = (_local2 + "=");
_local5 = true;
};
} else {
_local2 = (_local2 + _Chars[((_local3[0] << 4) & 48)]);
_local2 = (_local2 + "=");
_local2 = (_local2 + "=");
_local5 = true;
};
_local4 = (_local4 + 4);
if (_local4 >= 76){
_local2 = (_local2 + "\n");
_local4 = 0;
};
};
return (_local2);
}
private function decodeHex(_arg1:String):String{
var _local2:* = "";
var _local3:* = "";
var _local4:* = 0;
while (_local4 < _arg1.length) {
_local3 = (_local3 + _arg1.charAt(_local4));
if (_local3.length == 2){
_local2 = (_local2 + ntos(parseInt(("0x" + _local3))));
_local3 = "";
};
_local4++;
};
return (_local2);
}
function encodeHex(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + pad(toHex((_arg1.charCodeAt(_local3) & 0xFF)), 2, "0"));
_local3++;
};
return (_local2);
}
private function pad(_arg1:String, _arg2:Number, _arg3:String):String{
var _local4:String = _arg1;
var _local5:* = _arg1.length;
while (_local5 < _arg2) {
_local4 = (_arg3 + _local4);
_local5++;
};
return (_local4);
}
private function readReverseBase64(){
var _local1:String;
if (!_base64Str){
return (_EndOfInput);
};
while (true) {
if (_base64Count >= _base64Str.length){
return (_EndOfInput);
};
_local1 = _base64Str.charAt(_base64Count);
_base64Count++;
if (_CharsReverseLookup[_local1]){
return (_CharsReverseLookup[_local1]);
};
if (_local1 == "A"){
return (0);
};
};
return (_EndOfInput);
}
private function decodeBase64(_arg1:String):String{
setBase64Str(_arg1);
var _local2 = "";
var _local3:Array = new Array(4);
var _local4:Boolean;
while (((((!(_local4)) && (!(((_local3[0] = readReverseBase64()) == _EndOfInput))))) && (!(((_local3[1] = readReverseBase64()) == _EndOfInput))))) {
_local3[2] = readReverseBase64();
_local3[3] = readReverseBase64();
_local2 = (_local2 + ntos((((_local3[0] << 2) & 0xFF) | (_local3[1] >> 4))));
if (_local3[2] != _EndOfInput){
_local2 = (_local2 + ntos((((_local3[1] << 4) & 0xFF) | (_local3[2] >> 2))));
if (_local3[3] != _EndOfInput){
_local2 = (_local2 + ntos((((_local3[2] << 6) & 0xFF) | _local3[3])));
} else {
_local4 = true;
};
} else {
_local4 = true;
};
};
return (_local2);
}
public static function StringReplaceAll(_arg1:String, _arg2:String, _arg3:String):String{
return (_arg1.split(_arg2).join(_arg3));
}
private static function InitReverseChars():Boolean{
_CharsReverseLookup = new Array();
var _local1:* = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
};
return (true);
}
private static function UrlEncode(_arg1:String):String{
_arg1 = escape(_arg1);
_arg1 = StringReplaceAll(_arg1, "+", "%2B");
_arg1 = StringReplaceAll(_arg1, "%20", "+");
return (_arg1);
}
public static function Decode(_arg1:String):String{
var _local2:CrossBase64 = new (CrossBase64);
return (_local2.decodeBase64(_arg1));
}
public static function Encode(_arg1:String):String{
var _local2:CrossBase64 = new (CrossBase64);
return (_local2.encodeBase64(_arg1));
}
private static function UrlDecode(_arg1:String):String{
_arg1 = StringReplaceAll(_arg1, "+", " ");
_arg1 = unescape(_arg1);
return (_arg1);
}
}
}//package rutch.cross
Section 97
//CrossConnection (rutch.cross.CrossConnection)
package rutch.cross {
import rutch.cross.events.*;
import flash.net.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class CrossConnection {
private var timeOutTimer:Timer;
private var request:URLRequest;
private var timeOutMaxTime:Number;
private var HTTPStatusErrorCallBack:Function;
private var callBackFunction:Function;
public var loader:URLLoader;
private var outOfTimeCallBack:Function;
private static var eventHandlerMc:MovieClip;
private static var registeredListeners:Array;
public function CrossConnection(_arg1:Function, _arg2:Number, _arg3:Function):void{
loader = new URLLoader();
request = new URLRequest();
super();
this.HTTPStatusErrorCallBack = _arg1;
this.timeOutMaxTime = _arg2;
this.outOfTimeCallBack = _arg3;
}
private function onIOError(_arg1:IOErrorEvent):void{
trace("IOError dispatched! Proceding to force a timeOut...");
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
this.timedOut();
}
private function stopTimedOutTimer():void{
if (this.timeOutTimer.hasEventListener(TimerEvent.TIMER)){
this.timeOutTimer.stop();
this.timeOutTimer.removeEventListener(TimerEvent.TIMER, this.timedOut);
};
}
private function decodeJSON(_arg1:Event):void{
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:this, eventType:Event.COMPLETE, callBackFunction:this.decodeJSON}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
this.stopTimedOutTimer();
var _local2:URLLoader = URLLoader(_arg1.target);
var _local3:Object = CrossJSON.deserialize(_local2.data);
this.callBackFunction(_local3);
}
private function timedOut(_arg1:TimerEvent=null):void{
this.stopTimedOutTimer();
this.deleteAllCrossEventsFromThis();
var _local2:Object = new Object();
_local2.message = "# Response Timed Out! #";
this.outOfTimeCallBack(_local2);
}
public function connectAndLoad(_arg1:String, _arg2:Function, _arg3:Boolean=true):void{
this.callBackFunction = _arg2;
this.request.url = _arg1;
this.loader.load(request);
this.initTimedOutTimer();
if (_arg3){
this.loader.addEventListener(Event.COMPLETE, this.decodeJSON);
this.loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.onHTTPStatusEvent);
this.loader.addEventListener(IOErrorEvent.IO_ERROR, this.onIOError);
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:Event.COMPLETE, callBackFunction:this.decodeJSON}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:HTTPStatusEvent.HTTP_STATUS, callBackFunction:this.onHTTPStatusEvent}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
} else {
this.loader.addEventListener(Event.COMPLETE, this.onCallComplete);
this.loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.onHTTPStatusEvent);
this.loader.addEventListener(IOErrorEvent.IO_ERROR, this.onIOError);
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:Event.COMPLETE, callBackFunction:this.onCallComplete}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:HTTPStatusEvent.HTTP_STATUS, callBackFunction:this.onHTTPStatusEvent}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
};
}
public function sendAndLoadEncrypted(_arg1:String, _arg2:URLVariables, _arg3:Function):void{
this.callBackFunction = _arg3;
this.request.url = _arg1;
var _local4:String = CrossBase64.Encode(CrossJSON.serialize(_arg2)).replace("\n", "");
var _local5:URLVariables = new URLVariables();
_local5.dataSend = _local4;
this.request.data = _local5;
this.request.method = URLRequestMethod.POST;
this.loader.load(request);
this.initTimedOutTimer();
this.loader.addEventListener(Event.COMPLETE, this.decryptOnCallComplete);
this.loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.onHTTPStatusEvent);
this.loader.addEventListener(IOErrorEvent.IO_ERROR, this.onIOError);
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:Event.COMPLETE, callBackFunction:this.decryptOnCallComplete}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:HTTPStatusEvent.HTTP_STATUS, callBackFunction:this.onHTTPStatusEvent}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
}
private function onHTTPStatusEvent(_arg1:HTTPStatusEvent):void{
var _local2:Object;
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:this, eventType:HTTPStatusEvent.HTTP_STATUS, callBackFunction:this.onHTTPStatusEvent}));
this.stopTimedOutTimer();
if ((((((((((_arg1.status == 401)) || ((_arg1.status == 403)))) || ((_arg1.status == 404)))) || ((_arg1.status == 500)))) || ((_arg1.status == 501)))){
this.deleteAllCrossEventsFromThis();
_local2 = new Object();
_local2.status = _arg1.status;
this.HTTPStatusErrorCallBack(_local2);
};
}
private function decryptOnCallComplete(_arg1:Event):void{
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:this, eventType:Event.COMPLETE, callBackFunction:this.decryptOnCallComplete}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
this.stopTimedOutTimer();
var _local2:URLLoader = URLLoader(_arg1.target);
var _local3:Object = CrossJSON.deserialize(CrossBase64.Decode(_local2.data));
this.callBackFunction(_local3);
}
public function connectAndSendAndLoad(_arg1:String, _arg2:URLVariables, _arg3:Function, _arg4:Boolean=true):void{
this.callBackFunction = _arg3;
this.request.url = _arg1;
this.request.data = _arg2;
this.request.method = URLRequestMethod.POST;
this.loader.load(request);
this.initTimedOutTimer();
if (_arg4){
this.loader.addEventListener(Event.COMPLETE, this.decodeJSON);
this.loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.onHTTPStatusEvent);
this.loader.addEventListener(IOErrorEvent.IO_ERROR, this.onIOError);
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:Event.COMPLETE, callBackFunction:this.decodeJSON}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:HTTPStatusEvent.HTTP_STATUS, callBackFunction:this.onHTTPStatusEvent}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
} else {
this.loader.addEventListener(Event.COMPLETE, this.onCallComplete);
this.loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.onHTTPStatusEvent);
this.loader.addEventListener(IOErrorEvent.IO_ERROR, this.onIOError);
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:Event.COMPLETE, callBackFunction:this.onCallComplete}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:HTTPStatusEvent.HTTP_STATUS, callBackFunction:this.onHTTPStatusEvent}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.REGISTER_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
};
}
private function deleteAllCrossEventsFromThis():void{
var _local4:Object;
var _local1:Array = new Array();
var _local2:Number = 0;
while (_local2 < CrossConnection.registeredListeners.length) {
if ((((CrossConnection.registeredListeners[_local2].crossConn == this)) && (!((CrossConnection.registeredListeners[_local2].eventType == IOErrorEvent.IO_ERROR))))){
_local4 = new Object();
_local4.crossConn = this;
_local4.eventType = CrossConnection.registeredListeners[_local2].eventType;
_local4.callBackFunction = CrossConnection.registeredListeners[_local2].callBackFunction;
_local1[_local1.length] = _local4;
};
_local2++;
};
var _local3:Number = 0;
while (_local3 < _local1.length) {
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:_local1[_local3].crossConn, eventType:_local1[_local3].eventType, callBackFunction:_local1[_local3].callBackFunction}));
_local3++;
};
}
private function onCallComplete(_arg1:Event):void{
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:this, eventType:Event.COMPLETE, callBackFunction:this.onCallComplete}));
CrossConnection.eventHandlerMc.dispatchEvent(new CrossEvent(CrossEvent.DELETE_CROSS_LISTENER, {crossConn:this, eventType:IOErrorEvent.IO_ERROR, callBackFunction:this.onIOError}));
this.stopTimedOutTimer();
var _local2:URLLoader = URLLoader(_arg1.target);
var _local3:String = _local2.data;
this.callBackFunction(_local3);
}
private function initTimedOutTimer():void{
this.timeOutTimer = new Timer(this.timeOutMaxTime, 1);
this.timeOutTimer.addEventListener(TimerEvent.TIMER, this.timedOut);
this.timeOutTimer.start();
}
private static function registerCrossEvent(_arg1:CrossEvent):void{
CrossConnection.registeredListeners.push(_arg1.params);
}
private static function deleteCrossEvent(_arg1:CrossEvent):void{
var _local2:Boolean;
var _local3:Number = 0;
while ((((_local3 < CrossConnection.registeredListeners.length)) && (!(_local2)))) {
if ((((((_arg1.params.crossConn == CrossConnection.registeredListeners[_local3].crossConn)) && ((_arg1.params.eventType == CrossConnection.registeredListeners[_local3].eventType)))) && ((_arg1.params.callBackFunction == CrossConnection.registeredListeners[_local3].callBackFunction)))){
_local2 = true;
if (CrossConnection.registeredListeners[_local3].crossConn.loader.hasEventListener(CrossConnection.registeredListeners[_local3].eventType)){
CrossConnection.registeredListeners[_local3].crossConn.loader.removeEventListener(CrossConnection.registeredListeners[_local3].eventType, CrossConnection.registeredListeners[_local3].callBackFunction);
};
CrossConnection.registeredListeners.splice(_local3, 1);
};
_local3++;
};
if (!_local2){
trace((((((" * CrossEventListener NO ENCONTRADO!!!\n\t" + _arg1.params.crossConn) + ", ") + _arg1.params.eventType) + ", ") + _arg1.params.callBackFunction));
};
}
public static function initCrossCustomListeners():void{
CrossConnection.eventHandlerMc = new MovieClip();
CrossConnection.registeredListeners = new Array();
CrossConnection.eventHandlerMc.addEventListener(CrossEvent.REGISTER_CROSS_LISTENER, CrossConnection.registerCrossEvent);
CrossConnection.eventHandlerMc.addEventListener(CrossEvent.DELETE_CROSS_LISTENER, CrossConnection.deleteCrossEvent);
}
}
}//package rutch.cross
Section 98
//CrossJSON (rutch.cross.CrossJSON)
package rutch.cross {
public class CrossJSON {
public static function serialize(_arg1):String{
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local6:*;
var _local7:String;
var _local8:Number;
var _local5 = "";
switch (typeof(_arg1)){
case "object":
if (_arg1){
if ((_arg1 is Array)){
_local4 = _arg1.length;
_local3 = 0;
while (_local3 < _local4) {
_local6 = serialize(_arg1[_local3]);
if (_local5){
_local5 = (_local5 + ",");
};
_local5 = (_local5 + _local6);
_local3++;
};
return ((("[" + _local5) + "]"));
} else {
if (typeof(_arg1.toString) != "undefined"){
for (_local7 in _arg1) {
_local6 = _arg1[_local7];
if (((!((typeof(_local6) == "undefined"))) && (!((typeof(_local6) == "function"))))){
_local6 = serialize(_local6);
if (_local5){
_local5 = (_local5 + ",");
};
_local5 = (_local5 + ((serialize(_local7) + ":") + _local6));
};
};
return ((("{" + _local5) + "}"));
};
};
};
return ("null");
case "number":
return ((isFinite(_arg1)) ? String(_arg1) : "null");
case "string":
_local4 = _arg1.length;
_local5 = "\"";
_local3 = 0;
while (_local3 < _local4) {
_local2 = _arg1.charAt(_local3);
if (_local2 >= " "){
if ((((_local2 == "\\")) || ((_local2 == "\"")))){
_local5 = (_local5 + "\\");
};
_local5 = (_local5 + _local2);
} else {
switch (_local2){
case "\b":
_local5 = (_local5 + "\\b");
break;
case "\f":
_local5 = (_local5 + "\\f");
break;
case "\n":
_local5 = (_local5 + "\\n");
break;
case "\r":
_local5 = (_local5 + "\\r");
break;
case "\t":
_local5 = (_local5 + "\\t");
break;
default:
_local8 = _local2.charCodeAt();
_local5 = (_local5 + (("\\u00" + Math.floor((_local8 / 16)).toString(16)) + (_local8 % 16).toString(16)));
};
};
_local3 = (_local3 + 1);
};
return ((_local5 + "\""));
case "boolean":
return (String(_arg1));
default:
return ("null");
};
}
public static function deserialize(_arg1:String){
var at:Number;
var ch:String;
var _isDigit:Function;
var _isHexDigit:Function;
var _white:Function;
var _string:Function;
var _next:Function;
var _array:Function;
var _object:Function;
var _number:Function;
var _word:Function;
var _value:Function;
var _error:Function;
var source = _arg1;
source = new String(source);
at = 0;
ch = " ";
_isDigit = function (_arg1:String){
return (((("0" <= _arg1)) && ((_arg1 <= "9"))));
};
_isHexDigit = function (_arg1:String){
return (((((_isDigit(_arg1)) || (((("A" <= _arg1)) && ((_arg1 <= "F")))))) || (((("a" <= _arg1)) && ((_arg1 <= "f"))))));
};
_error = function (_arg1:String):void{
throw (new Error(_arg1, (at - 1)));
};
_next = function (){
ch = source.charAt(at);
at = (at + 1);
return (ch);
};
_white = function ():void{
while (ch) {
if (ch <= " "){
_next();
} else {
if (ch == "/"){
switch (_next()){
case "/":
do {
} while (((((_next()) && (!((ch == "\n"))))) && (!((ch == "\r")))));
break;
case "*":
_next();
while (true) {
if (ch){
if (ch == "*"){
if (_next() == "/"){
_next();
break;
};
} else {
_next();
};
} else {
_error("Unterminated Comment");
};
};
break;
default:
_error("Syntax Error");
};
} else {
break;
};
};
};
};
_string = function (){
var _local3:*;
var _local4:*;
var _local1:* = "";
var _local2:* = "";
var _local5:Boolean;
if (ch == "\""){
while (_next()) {
if (ch == "\""){
_next();
return (_local2);
};
if (ch == "\\"){
switch (_next()){
case "b":
_local2 = (_local2 + "\b");
break;
case "f":
_local2 = (_local2 + "\f");
break;
case "n":
_local2 = (_local2 + "\n");
break;
case "r":
_local2 = (_local2 + "\r");
break;
case "t":
_local2 = (_local2 + "\t");
break;
case "u":
_local4 = 0;
_local1 = 0;
while (_local1 < 4) {
_local3 = parseInt(_next(), 16);
if (!isFinite(_local3)){
_local5 = true;
break;
};
_local4 = ((_local4 * 16) + _local3);
_local1 = (_local1 + 1);
};
if (_local5){
_local5 = false;
break;
};
_local2 = (_local2 + String.fromCharCode(_local4));
break;
default:
_local2 = (_local2 + ch);
};
} else {
_local2 = (_local2 + ch);
};
};
};
_error("Bad String");
return (null);
};
_array = function (){
var _local1:Array = [];
if (ch == "["){
_next();
_white();
if (ch == "]"){
_next();
return (_local1);
};
while (ch) {
_local1.push(_value());
_white();
if (ch == "]"){
_next();
return (_local1);
};
if (ch != ","){
break;
};
_next();
_white();
};
};
_error("Bad Array");
return (null);
};
_object = function (){
var _local1:* = {};
var _local2:* = {};
if (ch == "{"){
_next();
_white();
if (ch == "}"){
_next();
return (_local2);
};
while (ch) {
_local1 = _string();
_white();
if (ch != ":"){
break;
};
_next();
_local2[_local1] = _value();
_white();
if (ch == "}"){
_next();
return (_local2);
};
if (ch != ","){
break;
};
_next();
_white();
};
};
_error("Bad Object");
};
_number = function (){
var _local2:*;
var _local1:* = "";
var _local3 = "";
var _local4 = "";
if (ch == "-"){
_local1 = "-";
_local4 = _local1;
_next();
};
if (ch == "0"){
_next();
if ((((ch == "x")) || ((ch == "X")))){
_next();
while (_isHexDigit(ch)) {
_local3 = (_local3 + ch);
_next();
};
if (_local3 == ""){
_error("mal formed Hexadecimal");
} else {
return (Number(((_local4 + "0x") + _local3)));
};
} else {
_local1 = (_local1 + "0");
};
};
while (_isDigit(ch)) {
_local1 = (_local1 + ch);
_next();
};
if (ch == "."){
_local1 = (_local1 + ".");
while (((((_next()) && ((ch >= "0")))) && ((ch <= "9")))) {
_local1 = (_local1 + ch);
};
};
_local2 = (1 * _local1);
if (!isFinite(_local2)){
_error("Bad Number");
} else {
return (_local2);
};
return (NaN);
};
_word = function (){
switch (ch){
case "t":
if ((((((_next() == "r")) && ((_next() == "u")))) && ((_next() == "e")))){
_next();
return (true);
};
break;
case "f":
if ((((((((_next() == "a")) && ((_next() == "l")))) && ((_next() == "s")))) && ((_next() == "e")))){
_next();
return (false);
};
break;
case "n":
if ((((((_next() == "u")) && ((_next() == "l")))) && ((_next() == "l")))){
_next();
return (null);
};
break;
};
_error("Syntax Error");
return (null);
};
_value = function (){
_white();
switch (ch){
case "{":
return (_object());
case "[":
return (_array());
case "\"":
return (_string());
case "-":
return (_number());
default:
return (((((ch >= "0")) && ((ch <= "9")))) ? _number() : _word());
};
};
return (_value());
}
}
}//package rutch.cross
Section 99
//GameEvents (rutch.events.GameEvents)
package rutch.events {
import flash.events.*;
public class GameEvents extends Event {
public var params:Object;
public static const ON_COMP_CHANGE:String = "_OnCompChange";
public static const ON_FALDA_CHANGE:String = "_OnFaldaChange";
public static const ON_MENU_4_FRAME_10:String = "_OnMenu_4_Frame_10";
public static const ON_MENU_5_FRAME_9:String = "_OnMenu_5_Frame_9";
public static const ON_MENU_6_FRAME_9:String = "_OnMenu_6_Frame_9";
public static const ON_MENU_5_OPEN:String = "_OnMenu5Open";
public static const ON_CAMISETA_CHANGE:String = "_OnCamisetaChange";
public static const ON_MENU_1_OPEN:String = "_OnMenu1Open";
public static const ON_MENU_5_FRAME_10:String = "_OnMenu_5_Frame_10";
public static const ON_MENU_6_FRAME_10:String = "_OnMenu_6_Frame_10";
public static const ON_MENU_3_OPEN:String = "_OnMenu3Open";
public static const SHOW_SCORES:String = "_ShowScores";
public static const ON_MENU_3_FRAME_10:String = "_OnMenu_3_Frame_10";
public static const DEFAULT_NAME:String = "rutch.events.GameEvents";
public static const ON_MENU_6_OPEN:String = "_OnMenu6Open";
public static const ON_MENU_4_OPEN:String = "_OnMenu4Open";
public static const ON_MENU_2_OPEN:String = "_OnMenu2Open";
public static const ON_MENU_3_FRAME_9:String = "_OnMenu_3_Frame_9";
public static const ON_MENU_4_FRAME_9:String = "_OnMenu_4_Frame_9";
public static const ON_PELO_CHANGE:String = "_OnPeloChange";
public function GameEvents(_arg1:String, _arg2:Object, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.params = _arg2;
}
override public function toString():String{
return (formatToString("GameEvents", "params", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new GameEvents(type, this.params, bubbles, cancelable));
}
}
}//package rutch.events
Section 100
//Game (rutch.game.Game)
package rutch.game {
import flash.events.*;
import com.greensock.*;
import flash.display.*;
import rutch.events.*;
import rutch.stage.*;
import rutch.mates.*;
import com.greensock.easing.*;
import flash.text.*;
public class Game extends MovieClip {
public var rand:SimpleButton;
private var ventanas:MovieClip;
public var back_:MovieClip;
private var menu:MovieClip;
private var nena:MovieClip;
public var menu_:MovieClip;
private var back:MovieClip;
public var nena_:MovieClip;
public var btn_next:SimpleButton;
public function Game(){
this.init();
}
private function menu_2_colasClick(_arg1:MouseEvent):void{
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
_local2.getChildByName(("co_" + GameDefinitions.cola)).alpha = 1;
GameDefinitions.cola = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
_local2.getChildByName(("co_" + GameDefinitions.cola)).alpha = 0.5;
MovieClip(this.nena.getChildByName("cola")).gotoAndStop(GameDefinitions.cola);
}
private function menu_1_btn_p2_le(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_1")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("pb_1").x < 0){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("pb_" + _local3)), 0.25, {x:(_local2.getChildByName(("pb_" + _local3)).x + 220), y:_local2.getChildByName(("pb_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function onMenu_1(_arg1:GameEvents):void{
MovieClip(MovieClip(this.ventanas.getChildByName("v_1")).getChildByName("v")).getChildByName("btn_close").addEventListener(MouseEvent.CLICK, this.closeMenu);
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_1")).getChildByName("menu") as MovieClip);
_local2.getChildByName("p1_le").addEventListener(MouseEvent.CLICK, this.menu_1_btn_p1_le);
_local2.getChildByName("p1_ri").addEventListener(MouseEvent.CLICK, this.menu_1_btn_p1_ri);
_local2.getChildByName("p2_le").addEventListener(MouseEvent.CLICK, this.menu_1_btn_p2_le);
_local2.getChildByName("p2_ri").addEventListener(MouseEvent.CLICK, this.menu_1_btn_p2_ri);
_local2.getChildByName("col_1").addEventListener(MouseEvent.CLICK, this.menu_1_btn_col_1);
_local2.getChildByName("col_2").addEventListener(MouseEvent.CLICK, this.menu_1_btn_col_2);
_local2.getChildByName("col_3").addEventListener(MouseEvent.CLICK, this.menu_1_btn_col_3);
_local2.getChildByName("col_4").addEventListener(MouseEvent.CLICK, this.menu_1_btn_col_4);
_local2.getChildByName("col_5").addEventListener(MouseEvent.CLICK, this.menu_1_btn_col_5);
_local2.getChildByName("col_6").addEventListener(MouseEvent.CLICK, this.menu_1_btn_col_6);
_local2.getChildByName(("pa_" + GameDefinitions.pelo_a)).alpha = 0.5;
if ((GameDefinitions.pelo_b - 1) != 0){
_local2.getChildByName(("pa_" + (GameDefinitions.pelo_b - 1))).alpha = 0.5;
};
MovieClip(_local2.getChildByName("pa_1")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pa_2")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pa_3")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pa_4")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pa_5")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pa_6")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pb_1")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pb_2")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pb_3")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pb_4")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pb_5")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pb_6")).addEventListener(MouseEvent.CLICK, this.menu_1_peloClick);
MovieClip(_local2.getChildByName("pa_1")).buttonMode = true;
MovieClip(_local2.getChildByName("pa_2")).buttonMode = true;
MovieClip(_local2.getChildByName("pa_3")).buttonMode = true;
MovieClip(_local2.getChildByName("pa_4")).buttonMode = true;
MovieClip(_local2.getChildByName("pa_5")).buttonMode = true;
MovieClip(_local2.getChildByName("pa_6")).buttonMode = true;
MovieClip(_local2.getChildByName("pb_1")).buttonMode = true;
MovieClip(_local2.getChildByName("pb_2")).buttonMode = true;
MovieClip(_local2.getChildByName("pb_3")).buttonMode = true;
MovieClip(_local2.getChildByName("pb_4")).buttonMode = true;
MovieClip(_local2.getChildByName("pb_5")).buttonMode = true;
MovieClip(_local2.getChildByName("pb_6")).buttonMode = true;
this.changeHairColorMenu();
}
private function onMenu_2(_arg1:GameEvents):void{
MovieClip(MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("v")).getChildByName("btn_close").addEventListener(MouseEvent.CLICK, this.closeMenu);
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
_local2.getChildByName("o_le").addEventListener(MouseEvent.CLICK, this.menu_2_btn_o_le);
_local2.getChildByName("o_ri").addEventListener(MouseEvent.CLICK, this.menu_2_btn_o_ri);
_local2.getChildByName("ce_le").addEventListener(MouseEvent.CLICK, this.menu_2_btn_ce_le);
_local2.getChildByName("ce_ri").addEventListener(MouseEvent.CLICK, this.menu_2_btn_ce_ri);
_local2.getChildByName("co_le").addEventListener(MouseEvent.CLICK, this.menu_2_btn_co_le);
_local2.getChildByName("co_ri").addEventListener(MouseEvent.CLICK, this.menu_2_btn_co_ri);
_local2.getChildByName("col_1").addEventListener(MouseEvent.CLICK, this.menu_2_btn_col_1);
_local2.getChildByName("col_2").addEventListener(MouseEvent.CLICK, this.menu_2_btn_col_2);
_local2.getChildByName("col_3").addEventListener(MouseEvent.CLICK, this.menu_2_btn_col_3);
_local2.getChildByName("col_4").addEventListener(MouseEvent.CLICK, this.menu_2_btn_col_4);
_local2.getChildByName("col_5").addEventListener(MouseEvent.CLICK, this.menu_2_btn_col_5);
_local2.getChildByName("col_6").addEventListener(MouseEvent.CLICK, this.menu_2_btn_col_6);
_local2.getChildByName(("o_" + GameDefinitions.orejas)).alpha = 0.5;
_local2.getChildByName(("ce_" + GameDefinitions.cejas)).alpha = 0.5;
_local2.getChildByName(("co_" + GameDefinitions.cola)).alpha = 0.5;
MovieClip(_local2.getChildByName("o_1")).addEventListener(MouseEvent.CLICK, this.menu_2_orejasClick);
MovieClip(_local2.getChildByName("o_2")).addEventListener(MouseEvent.CLICK, this.menu_2_orejasClick);
MovieClip(_local2.getChildByName("o_3")).addEventListener(MouseEvent.CLICK, this.menu_2_orejasClick);
MovieClip(_local2.getChildByName("o_4")).addEventListener(MouseEvent.CLICK, this.menu_2_orejasClick);
MovieClip(_local2.getChildByName("o_5")).addEventListener(MouseEvent.CLICK, this.menu_2_orejasClick);
MovieClip(_local2.getChildByName("o_6")).addEventListener(MouseEvent.CLICK, this.menu_2_orejasClick);
MovieClip(_local2.getChildByName("ce_1")).addEventListener(MouseEvent.CLICK, this.menu_2_cejasClick);
MovieClip(_local2.getChildByName("ce_2")).addEventListener(MouseEvent.CLICK, this.menu_2_cejasClick);
MovieClip(_local2.getChildByName("ce_3")).addEventListener(MouseEvent.CLICK, this.menu_2_cejasClick);
MovieClip(_local2.getChildByName("ce_4")).addEventListener(MouseEvent.CLICK, this.menu_2_cejasClick);
MovieClip(_local2.getChildByName("ce_5")).addEventListener(MouseEvent.CLICK, this.menu_2_cejasClick);
MovieClip(_local2.getChildByName("ce_6")).addEventListener(MouseEvent.CLICK, this.menu_2_cejasClick);
MovieClip(_local2.getChildByName("co_1")).addEventListener(MouseEvent.CLICK, this.menu_2_colasClick);
MovieClip(_local2.getChildByName("co_2")).addEventListener(MouseEvent.CLICK, this.menu_2_colasClick);
MovieClip(_local2.getChildByName("co_3")).addEventListener(MouseEvent.CLICK, this.menu_2_colasClick);
MovieClip(_local2.getChildByName("co_4")).addEventListener(MouseEvent.CLICK, this.menu_2_colasClick);
MovieClip(_local2.getChildByName("co_5")).addEventListener(MouseEvent.CLICK, this.menu_2_colasClick);
MovieClip(_local2.getChildByName("co_6")).addEventListener(MouseEvent.CLICK, this.menu_2_colasClick);
MovieClip(_local2.getChildByName("o_1")).buttonMode = true;
MovieClip(_local2.getChildByName("o_2")).buttonMode = true;
MovieClip(_local2.getChildByName("o_3")).buttonMode = true;
MovieClip(_local2.getChildByName("o_4")).buttonMode = true;
MovieClip(_local2.getChildByName("o_5")).buttonMode = true;
MovieClip(_local2.getChildByName("o_6")).buttonMode = true;
MovieClip(_local2.getChildByName("ce_1")).buttonMode = true;
MovieClip(_local2.getChildByName("ce_2")).buttonMode = true;
MovieClip(_local2.getChildByName("ce_3")).buttonMode = true;
MovieClip(_local2.getChildByName("ce_4")).buttonMode = true;
MovieClip(_local2.getChildByName("ce_5")).buttonMode = true;
MovieClip(_local2.getChildByName("ce_6")).buttonMode = true;
MovieClip(_local2.getChildByName("co_1")).buttonMode = true;
MovieClip(_local2.getChildByName("co_2")).buttonMode = true;
MovieClip(_local2.getChildByName("co_3")).buttonMode = true;
MovieClip(_local2.getChildByName("co_4")).buttonMode = true;
MovieClip(_local2.getChildByName("co_5")).buttonMode = true;
MovieClip(_local2.getChildByName("co_6")).buttonMode = true;
this.changeCompColorMenu();
}
private function onMenu_3(_arg1:GameEvents):void{
MovieClip(MovieClip(this.ventanas.getChildByName("v_3")).getChildByName("v")).getChildByName("btn_close").addEventListener(MouseEvent.CLICK, this.closeMenu);
}
private function onMenu_4(_arg1:GameEvents):void{
MovieClip(MovieClip(this.ventanas.getChildByName("v_4")).getChildByName("v")).getChildByName("btn_close").addEventListener(MouseEvent.CLICK, this.closeMenu);
}
private function onMenu_5(_arg1:GameEvents):void{
MovieClip(MovieClip(this.ventanas.getChildByName("v_5")).getChildByName("v")).getChildByName("btn_close").addEventListener(MouseEvent.CLICK, this.closeMenu);
}
private function onMenu_6(_arg1:GameEvents):void{
MovieClip(MovieClip(this.ventanas.getChildByName("v_6")).getChildByName("v")).getChildByName("btn_close").addEventListener(MouseEvent.CLICK, this.closeMenu);
}
private function init():void{
this.menu = (this.getChildByName("menu_") as MovieClip);
this.nena = (this.getChildByName("nena_") as MovieClip);
this.ventanas = (this.menu.getChildByName("ventanas") as MovieClip);
this.back = (this.getChildByName("back_") as MovieClip);
this.getChildByName("btn_next").addEventListener(MouseEvent.CLICK, this.onClickFlechaNext);
this.menu.getChildByName("btn_1").addEventListener(MouseEvent.CLICK, this.onClickMenu_1);
this.menu.getChildByName("btn_2").addEventListener(MouseEvent.CLICK, this.onClickMenu_2);
this.menu.getChildByName("btn_3").addEventListener(MouseEvent.CLICK, this.onClickMenu_3);
this.menu.getChildByName("btn_4").addEventListener(MouseEvent.CLICK, this.onClickMenu_4);
this.menu.getChildByName("btn_5").addEventListener(MouseEvent.CLICK, this.onClickMenu_5);
this.menu.getChildByName("btn_6").addEventListener(MouseEvent.CLICK, this.onClickMenu_6);
this.getChildByName("rand").addEventListener(MouseEvent.CLICK, this.randomize);
this.ventanas.addEventListener(GameEvents.ON_MENU_1_OPEN, this.onMenu_1);
this.ventanas.addEventListener(GameEvents.ON_MENU_2_OPEN, this.onMenu_2);
this.ventanas.addEventListener(GameEvents.ON_MENU_3_OPEN, this.onMenu_3);
this.ventanas.addEventListener(GameEvents.ON_MENU_3_FRAME_9, this.menu_3_init_9);
this.ventanas.addEventListener(GameEvents.ON_MENU_3_FRAME_10, this.menu_3_init_10);
this.ventanas.addEventListener(GameEvents.ON_MENU_4_OPEN, this.onMenu_4);
this.ventanas.addEventListener(GameEvents.ON_MENU_4_FRAME_9, this.menu_4_init_9);
this.ventanas.addEventListener(GameEvents.ON_MENU_4_FRAME_10, this.menu_4_init_10);
this.ventanas.addEventListener(GameEvents.ON_MENU_5_OPEN, this.onMenu_5);
this.ventanas.addEventListener(GameEvents.ON_MENU_5_FRAME_9, this.menu_5_init_9);
this.ventanas.addEventListener(GameEvents.ON_MENU_5_FRAME_10, this.menu_5_init_10);
this.ventanas.addEventListener(GameEvents.ON_MENU_6_OPEN, this.onMenu_6);
this.ventanas.addEventListener(GameEvents.ON_MENU_6_FRAME_9, this.menu_6_init_9);
this.ventanas.addEventListener(GameEvents.ON_MENU_6_FRAME_10, this.menu_6_init_10);
this.nena.addEventListener(GameEvents.ON_PELO_CHANGE, this.changeHairColorNena);
this.nena.addEventListener(GameEvents.ON_COMP_CHANGE, this.changeCompColorNena);
this.nena.addEventListener(GameEvents.ON_CAMISETA_CHANGE, this.changeCamisetaColor);
this.nena.addEventListener(GameEvents.ON_FALDA_CHANGE, this.changeFaldaColor);
this.back.addEventListener(GameEvents.SHOW_SCORES, this.showScores);
}
private function changeHairColorNena(_arg1:GameEvents=null):void{
MovieClip(MovieClip(this.nena.getChildByName("pelos_a")).getChildByName("pelo")).gotoAndStop(GameDefinitions.hairColor);
if (MovieClip(this.nena.getChildByName("pelos_b")).getChildByName("pelo")){
MovieClip(MovieClip(this.nena.getChildByName("pelos_b")).getChildByName("pelo")).gotoAndStop(GameDefinitions.hairColor);
};
}
private function menu_4_init_9(_arg1:GameEvents):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_4"));
_local2.getChildByName("next").addEventListener(MouseEvent.CLICK, this.menu_4_btn_next);
MovieClip(_local2.getChildByName("falda_1_1")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_1_1")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_1_click);
MovieClip(_local2.getChildByName("falda_1_2")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_1_2")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_1_click);
MovieClip(_local2.getChildByName("falda_1_3")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_1_3")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_1_click);
MovieClip(_local2.getChildByName("falda_1_4")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_1_4")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_1_click);
MovieClip(_local2.getChildByName("falda_1_5")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_1_5")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_1_click);
MovieClip(_local2.getChildByName("falda_1_6")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_1_6")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_1_click);
MovieClip(_local2.getChildByName("falda_2_1")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_2_1")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_2_click);
MovieClip(_local2.getChildByName("falda_2_2")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_2_2")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_2_click);
MovieClip(_local2.getChildByName("falda_2_3")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_2_3")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_2_click);
MovieClip(_local2.getChildByName("falda_2_4")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_2_4")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_2_click);
MovieClip(_local2.getChildByName("falda_2_5")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_2_5")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_2_click);
MovieClip(_local2.getChildByName("falda_2_6")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_2_6")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_2_click);
MovieClip(_local2.getChildByName("falda_3_1")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_3_1")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_3_click);
MovieClip(_local2.getChildByName("falda_3_2")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_3_2")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_3_click);
MovieClip(_local2.getChildByName("falda_3_3")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_3_3")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_3_click);
MovieClip(_local2.getChildByName("falda_3_4")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_3_4")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_3_click);
MovieClip(_local2.getChildByName("falda_3_5")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_3_5")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_3_click);
MovieClip(_local2.getChildByName("falda_3_6")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_3_6")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_3_click);
if ((((GameDefinitions.falda > 1)) && ((GameDefinitions.falda <= 4)))){
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 0.5;
};
}
private function menu_6_coloretes_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.colorete != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("colorete_" + (GameDefinitions.colorete - 1))).alpha = 1;
};
GameDefinitions.colorete = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
MovieClip(this.nena.getChildByName("coloretes")).gotoAndStop(GameDefinitions.colorete);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("colorete_" + (GameDefinitions.colorete - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("colorete_" + (GameDefinitions.colorete - 1))).alpha = 1;
GameDefinitions.colorete = 1;
MovieClip(this.nena.getChildByName("coloretes")).gotoAndStop(GameDefinitions.colorete);
};
}
private function menu_3_camiseta_2_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.camiseta == 1))) && (!((GameDefinitions.camisetaColor == 0))))) && ((GameDefinitions.camiseta <= 4)))){
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
};
GameDefinitions.camiseta = (2 + 1);
GameDefinitions.camisetaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("camisetas")).currentFrame == GameDefinitions.camiseta){
MovieClip(MovieClip(this.nena.getChildByName("camisetas")).getChildByName("camiseta")).gotoAndStop(GameDefinitions.camisetaColor);
};
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
GameDefinitions.camiseta = 1;
GameDefinitions.camisetaColor = 0;
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
};
}
private function menu_1_btn_col_2(_arg1:MouseEvent):void{
GameDefinitions.hairColor = 2;
this.changeHairColorMenu();
this.changeHairColorNena();
}
private function menu_1_btn_col_3(_arg1:MouseEvent):void{
GameDefinitions.hairColor = 3;
this.changeHairColorMenu();
this.changeHairColorNena();
}
private function menu_1_btn_col_4(_arg1:MouseEvent):void{
GameDefinitions.hairColor = 4;
this.changeHairColorMenu();
this.changeHairColorNena();
}
private function menu_1_btn_col_6(_arg1:MouseEvent):void{
GameDefinitions.hairColor = 6;
this.changeHairColorMenu();
this.changeHairColorNena();
}
private function menu_6_bandeja_click(_arg1:MouseEvent):void{
GameDefinitions.bandeja = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
MovieClip(this.nena.getChildByName("bandeja")).gotoAndStop(GameDefinitions.bandeja);
}
private function menu_4_falda_4_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.falda == 1))) && (!((GameDefinitions.faldaColor == 0))))) && ((GameDefinitions.falda > 4)))){
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
};
GameDefinitions.falda = (4 + 1);
GameDefinitions.faldaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("faldas")).currentFrame == GameDefinitions.falda){
MovieClip(MovieClip(this.nena.getChildByName("faldas")).getChildByName("falda")).gotoAndStop(GameDefinitions.faldaColor);
};
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
GameDefinitions.falda = 1;
GameDefinitions.faldaColor = 0;
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
};
}
private function menu_1_btn_col_5(_arg1:MouseEvent):void{
GameDefinitions.hairColor = 5;
this.changeHairColorMenu();
this.changeHairColorNena();
}
private function menu_2_btn_ce_le(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("ce_1").x < -28.9){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("ce_" + _local3)), 0.25, {x:(_local2.getChildByName(("ce_" + _local3)).x + 180), y:_local2.getChildByName(("ce_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function menu_1_btn_col_1(_arg1:MouseEvent):void{
GameDefinitions.hairColor = 1;
this.changeHairColorMenu();
this.changeHairColorNena();
}
private function menu_3_camiseta_6_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.camiseta == 1))) && (!((GameDefinitions.camisetaColor == 0))))) && ((GameDefinitions.camiseta > 4)))){
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
};
GameDefinitions.camiseta = (6 + 1);
GameDefinitions.camisetaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("camisetas")).currentFrame == GameDefinitions.camiseta){
MovieClip(MovieClip(this.nena.getChildByName("camisetas")).getChildByName("camiseta")).gotoAndStop(GameDefinitions.camisetaColor);
};
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
GameDefinitions.camiseta = 1;
GameDefinitions.camisetaColor = 0;
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
};
}
private function menu_3_init_9(_arg1:GameEvents):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_3"));
_local2.getChildByName("next").addEventListener(MouseEvent.CLICK, this.menu_3_btn_next);
MovieClip(_local2.getChildByName("camiseta_1_1")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_1_1")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_1_click);
MovieClip(_local2.getChildByName("camiseta_1_2")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_1_2")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_1_click);
MovieClip(_local2.getChildByName("camiseta_1_3")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_1_3")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_1_click);
MovieClip(_local2.getChildByName("camiseta_1_4")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_1_4")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_1_click);
MovieClip(_local2.getChildByName("camiseta_1_5")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_1_5")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_1_click);
MovieClip(_local2.getChildByName("camiseta_1_6")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_1_6")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_1_click);
MovieClip(_local2.getChildByName("camiseta_2_1")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_2_1")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_2_click);
MovieClip(_local2.getChildByName("camiseta_2_2")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_2_2")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_2_click);
MovieClip(_local2.getChildByName("camiseta_2_3")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_2_3")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_2_click);
MovieClip(_local2.getChildByName("camiseta_2_4")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_2_4")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_2_click);
MovieClip(_local2.getChildByName("camiseta_2_5")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_2_5")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_2_click);
MovieClip(_local2.getChildByName("camiseta_2_6")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_2_6")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_2_click);
MovieClip(_local2.getChildByName("camiseta_3_1")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_3_1")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_3_click);
MovieClip(_local2.getChildByName("camiseta_3_2")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_3_2")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_3_click);
MovieClip(_local2.getChildByName("camiseta_3_3")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_3_3")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_3_click);
MovieClip(_local2.getChildByName("camiseta_3_4")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_3_4")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_3_click);
MovieClip(_local2.getChildByName("camiseta_3_5")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_3_5")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_3_click);
MovieClip(_local2.getChildByName("camiseta_3_6")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_3_6")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_3_click);
if ((((GameDefinitions.camiseta > 1)) && ((GameDefinitions.camiseta <= 4)))){
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 0.5;
};
}
private function onClickFlechaNext(_arg1:MouseEvent):void{
if (this.back.currentFrame == 1){
this.back.gotoAndStop(2);
this.ventanas.gotoAndStop(1);
TweenLite.to(this.menu, 0.75, {x:this.menu.x, y:-89.4, ease:Back.easeInOut});
TweenLite.to(this.getChildByName("rand"), 0.75, {x:this.getChildByName("rand").x, y:243.9, ease:Back.easeInOut});
TweenLite.to(this.getChildByName("btn_next"), 0.75, {x:this.getChildByName("btn_next").x, y:this.getChildByName("btn_next").y, rotation:180, ease:Back.easeInOut});
TweenLite.to(this.nena, 0.25, {x:174, y:this.nena.y, ease:Quart.easeIn});
} else {
this.back.gotoAndStop(1);
TweenLite.to(this.menu, 0.5, {x:this.menu.x, y:0.6, ease:Back.easeOut});
TweenLite.to(this.getChildByName("rand"), 0.5, {x:this.getChildByName("rand").x, y:203.9, ease:Back.easeOut});
TweenLite.to(this.getChildByName("btn_next"), 0.75, {x:this.getChildByName("btn_next").x, y:this.getChildByName("btn_next").y, rotation:0, ease:Back.easeInOut});
TweenLite.to(this.nena, 0.25, {x:-156, y:this.nena.y, ease:Quart.easeIn});
};
}
private function menu_2_cejasClick(_arg1:MouseEvent):void{
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
_local2.getChildByName(("ce_" + GameDefinitions.cejas)).alpha = 1;
GameDefinitions.cejas = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
_local2.getChildByName(("ce_" + GameDefinitions.cejas)).alpha = 0.5;
MovieClip(this.nena.getChildByName("cejas")).gotoAndStop(GameDefinitions.cejas);
}
private function menu_6_boca_click(_arg1:MouseEvent):void{
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("boca_" + GameDefinitions.boca)).alpha = 1;
GameDefinitions.boca = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
MovieClip(this.nena.getChildByName("bocas")).gotoAndStop(GameDefinitions.boca);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("boca_" + GameDefinitions.boca)).alpha = 0.5;
}
private function menu_2_orejasClick(_arg1:MouseEvent):void{
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
_local2.getChildByName(("o_" + GameDefinitions.orejas)).alpha = 1;
GameDefinitions.orejas = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
_local2.getChildByName(("o_" + GameDefinitions.orejas)).alpha = 0.5;
MovieClip(this.nena.getChildByName("orejas")).gotoAndStop(GameDefinitions.orejas);
}
private function changeCompColorMenu():void{
var _local1:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
MovieClip(_local1.getChildByName("o_1")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("o_2")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("o_3")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("o_4")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("o_5")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("o_6")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("ce_1")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("ce_2")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("ce_3")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("ce_4")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("ce_5")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("ce_6")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("co_1")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("co_2")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("co_3")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("co_4")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("co_5")).gotoAndStop(GameDefinitions.compColor);
MovieClip(_local1.getChildByName("co_6")).gotoAndStop(GameDefinitions.compColor);
}
private function menu_6_ojosColor_click(_arg1:MouseEvent):void{
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("ojos_col_" + GameDefinitions.ojosColor)).alpha = 1;
GameDefinitions.ojosColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
MovieClip(MovieClip(this.nena.getChildByName("ojos")).getChildByName("ojo")).gotoAndStop(GameDefinitions.ojosColor);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("ojos_col_" + GameDefinitions.ojosColor)).alpha = 0.5;
}
private function menu_6_correas_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.correa != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("correa_" + (GameDefinitions.correa - 1))).alpha = 1;
};
GameDefinitions.correa = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
MovieClip(this.nena.getChildByName("correa")).gotoAndStop(GameDefinitions.correa);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("correa_" + (GameDefinitions.correa - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("correa_" + (GameDefinitions.correa - 1))).alpha = 1;
GameDefinitions.correa = 1;
MovieClip(this.nena.getChildByName("correa")).gotoAndStop(GameDefinitions.correa);
};
}
private function menu_3_btn_back(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_3"));
_local2.gotoAndStop(9);
}
private function menu_2_btn_o_ri(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("o_1").x > -930.55){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("o_" + _local3)), 0.25, {x:(_local2.getChildByName(("o_" + _local3)).x - 180), y:_local2.getChildByName(("o_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function changeCamisetaColor(_arg1:GameEvents=null):void{
if (((!((GameDefinitions.camiseta == 1))) && (!((GameDefinitions.camisetaColor == 0))))){
MovieClip(MovieClip(this.nena.getChildByName("camisetas")).getChildByName("camiseta")).gotoAndStop(GameDefinitions.camisetaColor);
};
}
private function menu_6_unas_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.unas != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("unas_" + (GameDefinitions.unas - 1))).alpha = 1;
};
GameDefinitions.unas = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
MovieClip(this.nena.getChildByName("unas")).gotoAndStop(GameDefinitions.unas);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("unas_" + (GameDefinitions.unas - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("unas_" + (GameDefinitions.unas - 1))).alpha = 1;
GameDefinitions.unas = 1;
MovieClip(this.nena.getChildByName("unas")).gotoAndStop(GameDefinitions.unas);
};
}
private function menu_4_falda_1_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.falda == 1))) && (!((GameDefinitions.faldaColor == 0))))) && ((GameDefinitions.falda <= 4)))){
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
};
GameDefinitions.falda = (1 + 1);
GameDefinitions.faldaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("faldas")).currentFrame == GameDefinitions.falda){
MovieClip(MovieClip(this.nena.getChildByName("faldas")).getChildByName("falda")).gotoAndStop(GameDefinitions.faldaColor);
};
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
GameDefinitions.falda = 1;
GameDefinitions.faldaColor = 0;
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
};
}
private function menu_3_btn_next(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_3"));
_local2.gotoAndStop(10);
}
private function menu_1_btn_p1_ri(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_1")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("pa_1").x > -495.05){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("pa_" + _local3)), 0.25, {x:(_local2.getChildByName(("pa_" + _local3)).x - 110), y:_local2.getChildByName(("pa_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function menu_3_camiseta_3_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.camiseta == 1))) && (!((GameDefinitions.camisetaColor == 0))))) && ((GameDefinitions.camiseta <= 4)))){
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
};
GameDefinitions.camiseta = (3 + 1);
GameDefinitions.camisetaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("camisetas")).currentFrame == GameDefinitions.camiseta){
MovieClip(MovieClip(this.nena.getChildByName("camisetas")).getChildByName("camiseta")).gotoAndStop(GameDefinitions.camisetaColor);
};
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
GameDefinitions.camiseta = 1;
GameDefinitions.camisetaColor = 0;
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
};
}
private function menu_4_falda_5_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.falda == 1))) && (!((GameDefinitions.faldaColor == 0))))) && ((GameDefinitions.falda > 4)))){
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
};
GameDefinitions.falda = (5 + 1);
GameDefinitions.faldaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("faldas")).currentFrame == GameDefinitions.falda){
MovieClip(MovieClip(this.nena.getChildByName("faldas")).getChildByName("falda")).gotoAndStop(GameDefinitions.faldaColor);
};
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
GameDefinitions.falda = 1;
GameDefinitions.faldaColor = 0;
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
};
}
private function menu_6_piel_click(_arg1:MouseEvent):void{
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("piel_" + GameDefinitions.piel)).alpha = 1;
GameDefinitions.piel = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
MovieClip(this.nena.getChildByName("piel")).gotoAndStop(GameDefinitions.piel);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("piel_" + GameDefinitions.piel)).alpha = 0.5;
}
private function menu_4_btn_back(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_4"));
_local2.gotoAndStop(9);
}
private function closeMenu(_arg1:MouseEvent):void{
this.ventanas.gotoAndStop(1);
}
private function showScores(_arg1:GameEvents):void{
var _local2:String;
GameDefinitions.score = 0;
switch (GameDefinitions.camiseta){
case 2:
if (GameDefinitions.falda != 1){
if (GameDefinitions.falda == 3){
if (GameDefinitions.camisetaColor == GameDefinitions.faldaColor){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
} else {
GameDefinitions.score = 40;
};
} else {
GameDefinitions.score = 10;
};
break;
case 3:
if (GameDefinitions.falda != 1){
if (GameDefinitions.falda == 4){
if (GameDefinitions.camisetaColor == GameDefinitions.faldaColor){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
} else {
GameDefinitions.score = 40;
};
} else {
GameDefinitions.score = 10;
};
break;
case 4:
if (GameDefinitions.falda != 1){
if (GameDefinitions.falda == 5){
if (GameDefinitions.camisetaColor == GameDefinitions.faldaColor){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
} else {
GameDefinitions.score = 40;
};
} else {
GameDefinitions.score = 10;
};
break;
case 5:
if (GameDefinitions.falda != 1){
if (GameDefinitions.falda == 1){
if (GameDefinitions.camisetaColor == GameDefinitions.faldaColor){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
} else {
GameDefinitions.score = 40;
};
} else {
GameDefinitions.score = 10;
};
break;
case 6:
if (GameDefinitions.falda != 1){
if (GameDefinitions.falda == 6){
switch (GameDefinitions.camisetaColor){
case 1:
if (GameDefinitions.faldaColor == 1){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 2:
if (GameDefinitions.faldaColor == 2){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 3:
if (GameDefinitions.faldaColor == 2){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 4:
if (GameDefinitions.faldaColor == 3){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 5:
if (GameDefinitions.faldaColor == 4){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 6:
if (GameDefinitions.faldaColor == 5){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
};
} else {
GameDefinitions.score = 40;
};
} else {
GameDefinitions.score = 10;
};
break;
case 7:
if (GameDefinitions.falda != 1){
if (GameDefinitions.falda == 7){
switch (GameDefinitions.camisetaColor){
case 1:
if (GameDefinitions.faldaColor == 1){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 2:
if (GameDefinitions.faldaColor == 2){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 3:
if (GameDefinitions.faldaColor == 6){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 4:
if (GameDefinitions.faldaColor == 3){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 5:
if ((((GameDefinitions.faldaColor == 5)) || ((GameDefinitions.faldaColor == 4)))){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
case 6:
if (GameDefinitions.faldaColor == 5){
GameDefinitions.score = 80;
} else {
GameDefinitions.score = 65;
};
break;
};
} else {
GameDefinitions.score = 40;
};
} else {
GameDefinitions.score = 10;
};
break;
case 1:
if (GameDefinitions.falda != 1){
GameDefinitions.score = 10;
};
break;
};
if (GameDefinitions.hairColor == GameDefinitions.compColor){
GameDefinitions.score = (GameDefinitions.score + 10);
} else {
GameDefinitions.score = (GameDefinitions.score + 5);
};
if (GameDefinitions.gorras != 1){
switch (GameDefinitions.camiseta){
case 2:
if (GameDefinitions.camiseta == 7){
GameDefinitions.score = (GameDefinitions.score + 2);
} else {
if (GameDefinitions.camiseta == 4){
GameDefinitions.score = (GameDefinitions.score + 1);
};
};
break;
case 3:
if (GameDefinitions.camiseta == 7){
GameDefinitions.score = (GameDefinitions.score + 2);
};
break;
case 4:
if ((((GameDefinitions.camiseta == 2)) || ((GameDefinitions.camiseta == 4)))){
GameDefinitions.score = (GameDefinitions.score + 2);
} else {
if (GameDefinitions.camiseta == 7){
GameDefinitions.score = (GameDefinitions.score + 1);
};
};
break;
case 5:
if ((((GameDefinitions.camiseta == 2)) || ((GameDefinitions.camiseta == 4)))){
GameDefinitions.score = (GameDefinitions.score + 2);
};
break;
};
} else {
if ((((((GameDefinitions.camiseta == 3)) || ((GameDefinitions.camiseta == 5)))) || ((GameDefinitions.camiseta == 6)))){
GameDefinitions.score = (GameDefinitions.score + 2);
} else {
GameDefinitions.score = (GameDefinitions.score + 1);
};
};
if (GameDefinitions.gafas != 1){
switch (GameDefinitions.gafas){
case 2:
if ((((((((GameDefinitions.camiseta == 2)) || ((GameDefinitions.camiseta == 3)))) || ((GameDefinitions.camiseta == 4)))) || ((GameDefinitions.camiseta == 7)))){
GameDefinitions.score = (GameDefinitions.score + 2);
};
break;
case 3:
if ((((((GameDefinitions.camiseta == 2)) || ((GameDefinitions.camiseta == 4)))) || ((GameDefinitions.camiseta == 7)))){
GameDefinitions.score = (GameDefinitions.score + 2);
};
break;
case 4:
if ((((((GameDefinitions.camiseta == 3)) || ((GameDefinitions.camiseta == 5)))) || ((GameDefinitions.camiseta == 6)))){
GameDefinitions.score = (GameDefinitions.score + 2);
};
break;
case 5:
if ((((((((GameDefinitions.camiseta == 3)) || ((GameDefinitions.camiseta == 4)))) || ((GameDefinitions.camiseta == 5)))) || ((GameDefinitions.camiseta == 7)))){
GameDefinitions.score = (GameDefinitions.score + 2);
};
break;
};
} else {
GameDefinitions.score = (GameDefinitions.score + 2);
};
if (GameDefinitions.cascos != 1){
if ((((((((GameDefinitions.camiseta == 7)) || ((GameDefinitions.camiseta == 3)))) || ((GameDefinitions.camiseta == 6)))) || ((GameDefinitions.camiseta == 4)))){
GameDefinitions.score = (GameDefinitions.score + 1);
};
} else {
GameDefinitions.score = (GameDefinitions.score + 1);
};
if (GameDefinitions.diadema != 1){
switch (GameDefinitions.diadema){
case 2:
if (GameDefinitions.camiseta == 5){
if (GameDefinitions.camisetaColor == 1){
GameDefinitions.score = (GameDefinitions.score + 5);
} else {
GameDefinitions.score = (GameDefinitions.score + 3);
};
};
break;
case 3:
if (GameDefinitions.camiseta == 5){
if (GameDefinitions.camisetaColor == 2){
GameDefinitions.score = (GameDefinitions.score + 5);
} else {
GameDefinitions.score = (GameDefinitions.score + 3);
};
};
break;
case 4:
if (GameDefinitions.camiseta == 5){
if (GameDefinitions.camisetaColor == 3){
GameDefinitions.score = (GameDefinitions.score + 5);
} else {
GameDefinitions.score = (GameDefinitions.score + 3);
};
};
break;
case 5:
if (GameDefinitions.camiseta == 5){
if (GameDefinitions.camisetaColor == 4){
GameDefinitions.score = (GameDefinitions.score + 5);
} else {
GameDefinitions.score = (GameDefinitions.score + 3);
};
};
break;
case 6:
if (GameDefinitions.camiseta == 5){
if (GameDefinitions.camisetaColor == 5){
GameDefinitions.score = (GameDefinitions.score + 5);
} else {
GameDefinitions.score = (GameDefinitions.score + 3);
};
};
break;
case 7:
if (GameDefinitions.camiseta == 5){
if (GameDefinitions.camisetaColor == 6){
GameDefinitions.score = (GameDefinitions.score + 5);
} else {
GameDefinitions.score = (GameDefinitions.score + 3);
};
};
break;
case 8:
case 9:
if (GameDefinitions.camiseta == 6){
GameDefinitions.score = (GameDefinitions.score + 5);
};
break;
default:
if (GameDefinitions.camiseta == 3){
GameDefinitions.score = (GameDefinitions.score + 5);
};
break;
};
} else {
GameDefinitions.score = (GameDefinitions.score + 3);
};
if (GameDefinitions.score >= 100){
_local2 = Language.TXT_END_4[Language.lang];
} else {
if (GameDefinitions.score >= 65){
_local2 = Language.TXT_END_3[Language.lang];
} else {
if (GameDefinitions.score >= 35){
_local2 = Language.TXT_END_2[Language.lang];
} else {
_local2 = Language.TXT_END_1[Language.lang];
};
};
};
TextField(MovieClip(this.back.getChildByName("bocata")).getChildByName("txt")).text = _local2;
TextField(MovieClip(MovieClip(this.back.getChildByName("score")).getChildByName("score")).getChildByName("txt")).text = (GameDefinitions.score + "%");
}
private function menu_4_btn_next(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_4"));
_local2.gotoAndStop(10);
}
private function changeFaldaColor(_arg1:GameEvents=null):void{
if (((!((GameDefinitions.falda == 1))) && (!((GameDefinitions.faldaColor == 0))))){
MovieClip(MovieClip(this.nena.getChildByName("faldas")).getChildByName("falda")).gotoAndStop(GameDefinitions.faldaColor);
};
}
private function changeCompColorNena(_arg1:GameEvents=null):void{
MovieClip(MovieClip(this.nena.getChildByName("orejas")).getChildByName("orejas")).gotoAndStop(GameDefinitions.compColor);
MovieClip(MovieClip(this.nena.getChildByName("cola")).getChildByName("cola")).gotoAndStop(GameDefinitions.compColor);
MovieClip(MovieClip(this.nena.getChildByName("cejas")).getChildByName("ceja")).gotoAndStop(GameDefinitions.compColor);
}
private function menu_5_btn_back(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_5"));
_local2.gotoAndStop(9);
}
private function menu_2_btn_o_le(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("o_1").x < -30.55){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("o_" + _local3)), 0.25, {x:(_local2.getChildByName(("o_" + _local3)).x + 180), y:_local2.getChildByName(("o_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function onClickMenu_1(_arg1:MouseEvent):void{
this.ventanas.gotoAndStop(2);
}
private function onClickMenu_2(_arg1:MouseEvent):void{
this.ventanas.gotoAndStop(3);
}
private function onClickMenu_3(_arg1:MouseEvent):void{
this.ventanas.gotoAndStop(4);
}
private function onClickMenu_4(_arg1:MouseEvent):void{
this.ventanas.gotoAndStop(5);
}
private function onClickMenu_5(_arg1:MouseEvent):void{
this.ventanas.gotoAndStop(6);
}
private function onClickMenu_6(_arg1:MouseEvent):void{
this.ventanas.gotoAndStop(7);
}
private function menu_5_btn_next(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_5"));
_local2.gotoAndStop(10);
}
private function menu_2_btn_co_ri(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("co_1").x > -932.5){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("co_" + _local3)), 0.25, {x:(_local2.getChildByName(("co_" + _local3)).x - 180), y:_local2.getChildByName(("co_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function menu_4_falda_6_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.falda == 1))) && (!((GameDefinitions.faldaColor == 0))))) && ((GameDefinitions.falda > 4)))){
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
};
GameDefinitions.falda = (6 + 1);
GameDefinitions.faldaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("faldas")).currentFrame == GameDefinitions.falda){
MovieClip(MovieClip(this.nena.getChildByName("faldas")).getChildByName("falda")).gotoAndStop(GameDefinitions.faldaColor);
};
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
GameDefinitions.falda = 1;
GameDefinitions.faldaColor = 0;
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
};
}
private function menu_6_gafas_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.gafas != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("gafas_" + (GameDefinitions.gafas - 1))).alpha = 1;
};
GameDefinitions.gafas = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
MovieClip(this.nena.getChildByName("gafas")).gotoAndStop(GameDefinitions.gafas);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("gafas_" + (GameDefinitions.gafas - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("gafas_" + (GameDefinitions.gafas - 1))).alpha = 1;
GameDefinitions.gafas = 1;
MovieClip(this.nena.getChildByName("gafas")).gotoAndStop(GameDefinitions.gafas);
};
}
private function menu_1_btn_p1_le(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_1")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("pa_1").x < -55.05){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("pa_" + _local3)), 0.25, {x:(_local2.getChildByName(("pa_" + _local3)).x + 110), y:_local2.getChildByName(("pa_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function menu_6_lazos_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.lazos != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("lazo_" + (GameDefinitions.lazos - 1))).alpha = 1;
};
GameDefinitions.lazos = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
MovieClip(this.nena.getChildByName("lazos")).gotoAndStop(GameDefinitions.lazos);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("lazo_" + (GameDefinitions.lazos - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("lazo_" + (GameDefinitions.lazos - 1))).alpha = 1;
GameDefinitions.lazos = 1;
MovieClip(this.nena.getChildByName("lazos")).gotoAndStop(GameDefinitions.lazos);
};
}
private function menu_6_gorras_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.gorras != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("gorra_" + (GameDefinitions.gorras - 1))).alpha = 1;
};
GameDefinitions.gorras = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
MovieClip(this.nena.getChildByName("gorras")).gotoAndStop(GameDefinitions.gorras);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("gorra_" + (GameDefinitions.gorras - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("gorra_" + (GameDefinitions.gorras - 1))).alpha = 1;
GameDefinitions.gorras = 1;
MovieClip(this.nena.getChildByName("gorras")).gotoAndStop(GameDefinitions.gorras);
};
}
private function menu_4_falda_2_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.falda == 1))) && (!((GameDefinitions.faldaColor == 0))))) && ((GameDefinitions.falda <= 4)))){
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
};
GameDefinitions.falda = (2 + 1);
GameDefinitions.faldaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("faldas")).currentFrame == GameDefinitions.falda){
MovieClip(MovieClip(this.nena.getChildByName("faldas")).getChildByName("falda")).gotoAndStop(GameDefinitions.faldaColor);
};
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
GameDefinitions.falda = 1;
GameDefinitions.faldaColor = 0;
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
};
}
private function randomize(_arg1:MouseEvent=null):void{
GameDefinitions.hairColor = MatesFunctions.getAleatori(1, 6);
GameDefinitions.pelo_a = MatesFunctions.getAleatori(1, 6);
GameDefinitions.pelo_b = MatesFunctions.getAleatori(1, 7);
GameDefinitions.compColor = MatesFunctions.getAleatori(1, 6);
GameDefinitions.orejas = MatesFunctions.getAleatori(1, 6);
GameDefinitions.cejas = MatesFunctions.getAleatori(1, 6);
GameDefinitions.cola = MatesFunctions.getAleatori(1, 6);
GameDefinitions.camisetaColor = MatesFunctions.getAleatori(1, 6);
GameDefinitions.camiseta = MatesFunctions.getAleatori(2, 7);
GameDefinitions.falda = MatesFunctions.getAleatori(2, 7);
GameDefinitions.faldaColor = MatesFunctions.getAleatori(1, ((GameDefinitions.falda)==6) ? 5 : 6);
GameDefinitions.panties = MatesFunctions.getAleatori(1, 11);
GameDefinitions.calcetines = 1;
GameDefinitions.zapatos = MatesFunctions.getAleatori(1, 9);
GameDefinitions.bandeja = MatesFunctions.getAleatori(1, 6);
if (MatesFunctions.getAleatori(1, 2) == 1){
GameDefinitions.diadema = 1;
GameDefinitions.lazos = MatesFunctions.getAleatori(1, 5);
} else {
GameDefinitions.diadema = MatesFunctions.getAleatori(1, 14);
GameDefinitions.lazos = 1;
};
GameDefinitions.gafas = MatesFunctions.getAleatori(1, 5);
GameDefinitions.gorras = 1;
GameDefinitions.cascos = 1;
GameDefinitions.correa = MatesFunctions.getAleatori(1, 5);
GameDefinitions.ojos = MatesFunctions.getAleatori(1, 4);
GameDefinitions.ojosColor = MatesFunctions.getAleatori(1, 4);
GameDefinitions.piel = MatesFunctions.getAleatori(1, 4);
GameDefinitions.boca = MatesFunctions.getAleatori(1, 4);
GameDefinitions.unas = MatesFunctions.getAleatori(1, 4);
GameDefinitions.colorete = MatesFunctions.getAleatori(1, 4);
MovieClip(this.nena.getChildByName("pelos_a")).gotoAndStop(GameDefinitions.pelo_a);
MovieClip(this.nena.getChildByName("pelos_b")).gotoAndStop(GameDefinitions.pelo_b);
MovieClip(this.nena.getChildByName("orejas")).gotoAndStop(GameDefinitions.orejas);
MovieClip(this.nena.getChildByName("cejas")).gotoAndStop(GameDefinitions.cejas);
MovieClip(this.nena.getChildByName("cola")).gotoAndStop(GameDefinitions.cola);
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
MovieClip(this.nena.getChildByName("panties")).gotoAndStop(GameDefinitions.panties);
MovieClip(this.nena.getChildByName("calcetines")).gotoAndStop(GameDefinitions.calcetines);
MovieClip(this.nena.getChildByName("zapatos")).gotoAndStop(GameDefinitions.zapatos);
MovieClip(this.nena.getChildByName("bandeja")).gotoAndStop(GameDefinitions.bandeja);
MovieClip(this.nena.getChildByName("diademas")).gotoAndStop(GameDefinitions.diadema);
MovieClip(this.nena.getChildByName("lazos")).gotoAndStop(GameDefinitions.lazos);
MovieClip(this.nena.getChildByName("gafas")).gotoAndStop(GameDefinitions.gafas);
MovieClip(this.nena.getChildByName("gorras")).gotoAndStop(GameDefinitions.gorras);
MovieClip(this.nena.getChildByName("cascos")).gotoAndStop(GameDefinitions.cascos);
MovieClip(this.nena.getChildByName("correa")).gotoAndStop(GameDefinitions.correa);
MovieClip(this.nena.getChildByName("coloretes")).gotoAndStop(GameDefinitions.colorete);
MovieClip(this.nena.getChildByName("unas")).gotoAndStop(GameDefinitions.unas);
MovieClip(this.nena.getChildByName("piel")).gotoAndStop(GameDefinitions.piel);
MovieClip(this.nena.getChildByName("bocas")).gotoAndStop(GameDefinitions.boca);
MovieClip(this.nena.getChildByName("ojos")).gotoAndStop(GameDefinitions.ojos);
MovieClip(MovieClip(this.nena.getChildByName("ojos")).getChildByName("ojo")).gotoAndStop(GameDefinitions.ojosColor);
}
private function menu_3_camiseta_4_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.camiseta == 1))) && (!((GameDefinitions.camisetaColor == 0))))) && ((GameDefinitions.camiseta > 4)))){
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
};
GameDefinitions.camiseta = (4 + 1);
GameDefinitions.camisetaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("camisetas")).currentFrame == GameDefinitions.camiseta){
MovieClip(MovieClip(this.nena.getChildByName("camisetas")).getChildByName("camiseta")).gotoAndStop(GameDefinitions.camisetaColor);
};
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
GameDefinitions.camiseta = 1;
GameDefinitions.camisetaColor = 0;
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
};
}
private function menu_6_btn_back(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_6"));
_local2.gotoAndStop(9);
}
private function menu_6_btn_next(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_6"));
_local2.gotoAndStop(10);
}
private function menu_1_peloClick(_arg1:MouseEvent):void{
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_1")).getChildByName("menu") as MovieClip);
if (_arg1.currentTarget.name.indexOf("pa") != -1){
_local2.getChildByName(("pa_" + GameDefinitions.pelo_a)).alpha = 1;
GameDefinitions.pelo_a = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
_local2.getChildByName(("pa_" + GameDefinitions.pelo_a)).alpha = 0.5;
MovieClip(this.nena.getChildByName("pelos_a")).gotoAndStop(GameDefinitions.pelo_a);
} else {
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.pelo_b != 1){
_local2.getChildByName(("pb_" + (GameDefinitions.pelo_b - 1))).alpha = 1;
};
GameDefinitions.pelo_b = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
_local2.getChildByName(("pb_" + (GameDefinitions.pelo_b - 1))).alpha = 0.5;
MovieClip(this.nena.getChildByName("pelos_b")).gotoAndStop(GameDefinitions.pelo_b);
} else {
_local2.getChildByName(("pb_" + (GameDefinitions.pelo_b - 1))).alpha = 1;
GameDefinitions.pelo_b = 1;
MovieClip(this.nena.getChildByName("pelos_b")).gotoAndStop(GameDefinitions.pelo_b);
};
};
}
private function menu_1_btn_p2_ri(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_1")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("pb_1").x > -1100){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("pb_" + _local3)), 0.25, {x:(_local2.getChildByName(("pb_" + _local3)).x - 220), y:_local2.getChildByName(("pb_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function menu_5_init_10(_arg1:GameEvents):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_5"));
_local2.getChildByName("back").addEventListener(MouseEvent.CLICK, this.menu_5_btn_back);
MovieClip(_local2.getChildByName("calcetin_1")).buttonMode = true;
MovieClip(_local2.getChildByName("calcetin_1")).addEventListener(MouseEvent.CLICK, this.menu_5_calcetin_click);
MovieClip(_local2.getChildByName("calcetin_2")).buttonMode = true;
MovieClip(_local2.getChildByName("calcetin_2")).addEventListener(MouseEvent.CLICK, this.menu_5_calcetin_click);
MovieClip(_local2.getChildByName("calcetin_3")).buttonMode = true;
MovieClip(_local2.getChildByName("calcetin_3")).addEventListener(MouseEvent.CLICK, this.menu_5_calcetin_click);
MovieClip(_local2.getChildByName("calcetin_4")).buttonMode = true;
MovieClip(_local2.getChildByName("calcetin_4")).addEventListener(MouseEvent.CLICK, this.menu_5_calcetin_click);
MovieClip(_local2.getChildByName("calcetin_5")).buttonMode = true;
MovieClip(_local2.getChildByName("calcetin_5")).addEventListener(MouseEvent.CLICK, this.menu_5_calcetin_click);
if (GameDefinitions.calcetines != 1){
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName(("calcetin_" + (GameDefinitions.calcetines - 1))).alpha = 0.5;
};
MovieClip(_local2.getChildByName("zapato_1")).buttonMode = true;
MovieClip(_local2.getChildByName("zapato_1")).addEventListener(MouseEvent.CLICK, this.menu_5_zapato_click);
MovieClip(_local2.getChildByName("zapato_2")).buttonMode = true;
MovieClip(_local2.getChildByName("zapato_2")).addEventListener(MouseEvent.CLICK, this.menu_5_zapato_click);
MovieClip(_local2.getChildByName("zapato_3")).buttonMode = true;
MovieClip(_local2.getChildByName("zapato_3")).addEventListener(MouseEvent.CLICK, this.menu_5_zapato_click);
MovieClip(_local2.getChildByName("zapato_4")).buttonMode = true;
MovieClip(_local2.getChildByName("zapato_4")).addEventListener(MouseEvent.CLICK, this.menu_5_zapato_click);
MovieClip(_local2.getChildByName("zapato_5")).buttonMode = true;
MovieClip(_local2.getChildByName("zapato_5")).addEventListener(MouseEvent.CLICK, this.menu_5_zapato_click);
MovieClip(_local2.getChildByName("zapato_6")).buttonMode = true;
MovieClip(_local2.getChildByName("zapato_6")).addEventListener(MouseEvent.CLICK, this.menu_5_zapato_click);
MovieClip(_local2.getChildByName("zapato_7")).buttonMode = true;
MovieClip(_local2.getChildByName("zapato_7")).addEventListener(MouseEvent.CLICK, this.menu_5_zapato_click);
MovieClip(_local2.getChildByName("zapato_8")).buttonMode = true;
MovieClip(_local2.getChildByName("zapato_8")).addEventListener(MouseEvent.CLICK, this.menu_5_zapato_click);
if (GameDefinitions.zapatos != 1){
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName(("zapato_" + (GameDefinitions.zapatos - 1))).alpha = 0.5;
};
}
private function menu_6_init_10(_arg1:GameEvents):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_6"));
_local2.getChildByName("back").addEventListener(MouseEvent.CLICK, this.menu_6_btn_back);
MovieClip(_local2.getChildByName("lazo_1")).buttonMode = true;
MovieClip(_local2.getChildByName("lazo_1")).addEventListener(MouseEvent.CLICK, this.menu_6_lazos_click);
MovieClip(_local2.getChildByName("lazo_2")).buttonMode = true;
MovieClip(_local2.getChildByName("lazo_2")).addEventListener(MouseEvent.CLICK, this.menu_6_lazos_click);
MovieClip(_local2.getChildByName("lazo_3")).buttonMode = true;
MovieClip(_local2.getChildByName("lazo_3")).addEventListener(MouseEvent.CLICK, this.menu_6_lazos_click);
MovieClip(_local2.getChildByName("lazo_4")).buttonMode = true;
MovieClip(_local2.getChildByName("lazo_4")).addEventListener(MouseEvent.CLICK, this.menu_6_lazos_click);
if (GameDefinitions.lazos != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("lazo_" + (GameDefinitions.lazos - 1))).alpha = 0.5;
};
MovieClip(_local2.getChildByName("gorra_1")).buttonMode = true;
MovieClip(_local2.getChildByName("gorra_1")).addEventListener(MouseEvent.CLICK, this.menu_6_gorras_click);
MovieClip(_local2.getChildByName("gorra_2")).buttonMode = true;
MovieClip(_local2.getChildByName("gorra_2")).addEventListener(MouseEvent.CLICK, this.menu_6_gorras_click);
MovieClip(_local2.getChildByName("gorra_3")).buttonMode = true;
MovieClip(_local2.getChildByName("gorra_3")).addEventListener(MouseEvent.CLICK, this.menu_6_gorras_click);
MovieClip(_local2.getChildByName("gorra_4")).buttonMode = true;
MovieClip(_local2.getChildByName("gorra_4")).addEventListener(MouseEvent.CLICK, this.menu_6_gorras_click);
if (GameDefinitions.gorras != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("gorra_" + (GameDefinitions.gorras - 1))).alpha = 0.5;
};
MovieClip(_local2.getChildByName("casco")).buttonMode = true;
MovieClip(_local2.getChildByName("casco")).addEventListener(MouseEvent.CLICK, this.menu_6_cascos_click);
if (GameDefinitions.cascos != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName("casco").alpha = 0.5;
};
MovieClip(_local2.getChildByName("gafas_1")).buttonMode = true;
MovieClip(_local2.getChildByName("gafas_1")).addEventListener(MouseEvent.CLICK, this.menu_6_gafas_click);
MovieClip(_local2.getChildByName("gafas_2")).buttonMode = true;
MovieClip(_local2.getChildByName("gafas_2")).addEventListener(MouseEvent.CLICK, this.menu_6_gafas_click);
MovieClip(_local2.getChildByName("gafas_3")).buttonMode = true;
MovieClip(_local2.getChildByName("gafas_3")).addEventListener(MouseEvent.CLICK, this.menu_6_gafas_click);
MovieClip(_local2.getChildByName("gafas_4")).buttonMode = true;
MovieClip(_local2.getChildByName("gafas_4")).addEventListener(MouseEvent.CLICK, this.menu_6_gafas_click);
if (GameDefinitions.gafas != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("gafas_" + (GameDefinitions.gafas - 1))).alpha = 0.5;
};
MovieClip(_local2.getChildByName("correa_1")).buttonMode = true;
MovieClip(_local2.getChildByName("correa_1")).addEventListener(MouseEvent.CLICK, this.menu_6_correas_click);
MovieClip(_local2.getChildByName("correa_2")).buttonMode = true;
MovieClip(_local2.getChildByName("correa_2")).addEventListener(MouseEvent.CLICK, this.menu_6_correas_click);
MovieClip(_local2.getChildByName("correa_3")).buttonMode = true;
MovieClip(_local2.getChildByName("correa_3")).addEventListener(MouseEvent.CLICK, this.menu_6_correas_click);
MovieClip(_local2.getChildByName("correa_4")).buttonMode = true;
MovieClip(_local2.getChildByName("correa_4")).addEventListener(MouseEvent.CLICK, this.menu_6_correas_click);
if (GameDefinitions.correa != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("correa_" + (GameDefinitions.correa - 1))).alpha = 0.5;
};
_local2.getChildByName("colorete_1").addEventListener(MouseEvent.CLICK, this.menu_6_coloretes_click);
_local2.getChildByName("colorete_2").addEventListener(MouseEvent.CLICK, this.menu_6_coloretes_click);
_local2.getChildByName("colorete_3").addEventListener(MouseEvent.CLICK, this.menu_6_coloretes_click);
if (GameDefinitions.colorete != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("colorete_" + (GameDefinitions.colorete - 1))).alpha = 0.5;
};
_local2.getChildByName("unas_1").addEventListener(MouseEvent.CLICK, this.menu_6_unas_click);
_local2.getChildByName("unas_2").addEventListener(MouseEvent.CLICK, this.menu_6_unas_click);
_local2.getChildByName("unas_3").addEventListener(MouseEvent.CLICK, this.menu_6_unas_click);
if (GameDefinitions.unas != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("unas_" + (GameDefinitions.unas - 1))).alpha = 0.5;
};
_local2.getChildByName("piel_1").addEventListener(MouseEvent.CLICK, this.menu_6_piel_click);
_local2.getChildByName("piel_2").addEventListener(MouseEvent.CLICK, this.menu_6_piel_click);
_local2.getChildByName("piel_3").addEventListener(MouseEvent.CLICK, this.menu_6_piel_click);
_local2.getChildByName("piel_4").addEventListener(MouseEvent.CLICK, this.menu_6_piel_click);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("piel_" + GameDefinitions.piel)).alpha = 0.5;
_local2.getChildByName("boca_1").addEventListener(MouseEvent.CLICK, this.menu_6_boca_click);
_local2.getChildByName("boca_2").addEventListener(MouseEvent.CLICK, this.menu_6_boca_click);
_local2.getChildByName("boca_3").addEventListener(MouseEvent.CLICK, this.menu_6_boca_click);
_local2.getChildByName("boca_4").addEventListener(MouseEvent.CLICK, this.menu_6_boca_click);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("boca_" + GameDefinitions.boca)).alpha = 0.5;
_local2.getChildByName("ojos_1").addEventListener(MouseEvent.CLICK, this.menu_6_ojos_click);
_local2.getChildByName("ojos_2").addEventListener(MouseEvent.CLICK, this.menu_6_ojos_click);
_local2.getChildByName("ojos_3").addEventListener(MouseEvent.CLICK, this.menu_6_ojos_click);
_local2.getChildByName("ojos_4").addEventListener(MouseEvent.CLICK, this.menu_6_ojos_click);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("ojos_" + GameDefinitions.ojos)).alpha = 0.5;
_local2.getChildByName("ojos_col_1").addEventListener(MouseEvent.CLICK, this.menu_6_ojosColor_click);
_local2.getChildByName("ojos_col_2").addEventListener(MouseEvent.CLICK, this.menu_6_ojosColor_click);
_local2.getChildByName("ojos_col_3").addEventListener(MouseEvent.CLICK, this.menu_6_ojosColor_click);
_local2.getChildByName("ojos_col_4").addEventListener(MouseEvent.CLICK, this.menu_6_ojosColor_click);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("ojos_col_" + GameDefinitions.ojosColor)).alpha = 0.5;
}
private function menu_5_pantie_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.panties != 1){
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName((("pantie_" + (((GameDefinitions.panties - 1))<10) ? "0" : "") + (GameDefinitions.panties - 1))).alpha = 1;
};
GameDefinitions.panties = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 2), 2)) + 1);
MovieClip(this.nena.getChildByName("panties")).gotoAndStop(GameDefinitions.panties);
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName((("pantie_" + (((GameDefinitions.panties - 1))<10) ? "0" : "") + (GameDefinitions.panties - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName((("pantie_" + (((GameDefinitions.panties - 1))<10) ? "0" : "") + (GameDefinitions.panties - 1))).alpha = 1;
GameDefinitions.panties = 1;
MovieClip(this.nena.getChildByName("panties")).gotoAndStop(GameDefinitions.panties);
};
}
private function menu_3_init_10(_arg1:GameEvents):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_3"));
_local2.getChildByName("back").addEventListener(MouseEvent.CLICK, this.menu_3_btn_back);
MovieClip(_local2.getChildByName("camiseta_4_1")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_4_1")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_4_click);
MovieClip(_local2.getChildByName("camiseta_4_2")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_4_2")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_4_click);
MovieClip(_local2.getChildByName("camiseta_4_3")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_4_3")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_4_click);
MovieClip(_local2.getChildByName("camiseta_4_4")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_4_4")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_4_click);
MovieClip(_local2.getChildByName("camiseta_4_5")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_4_5")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_4_click);
MovieClip(_local2.getChildByName("camiseta_4_6")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_4_6")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_4_click);
MovieClip(_local2.getChildByName("camiseta_5_1")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_5_1")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_5_click);
MovieClip(_local2.getChildByName("camiseta_5_2")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_5_2")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_5_click);
MovieClip(_local2.getChildByName("camiseta_5_3")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_5_3")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_5_click);
MovieClip(_local2.getChildByName("camiseta_5_4")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_5_4")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_5_click);
MovieClip(_local2.getChildByName("camiseta_5_5")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_5_5")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_5_click);
MovieClip(_local2.getChildByName("camiseta_5_6")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_5_6")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_5_click);
MovieClip(_local2.getChildByName("camiseta_6_1")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_6_1")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_6_click);
MovieClip(_local2.getChildByName("camiseta_6_2")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_6_2")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_6_click);
MovieClip(_local2.getChildByName("camiseta_6_3")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_6_3")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_6_click);
MovieClip(_local2.getChildByName("camiseta_6_4")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_6_4")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_6_click);
MovieClip(_local2.getChildByName("camiseta_6_5")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_6_5")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_6_click);
MovieClip(_local2.getChildByName("camiseta_6_6")).buttonMode = true;
MovieClip(_local2.getChildByName("camiseta_6_6")).addEventListener(MouseEvent.CLICK, this.menu_3_camiseta_6_click);
if (GameDefinitions.camiseta > 4){
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 0.5;
};
}
private function menu_4_init_10(_arg1:GameEvents):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_4"));
_local2.getChildByName("back").addEventListener(MouseEvent.CLICK, this.menu_4_btn_back);
MovieClip(_local2.getChildByName("falda_4_1")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_4_1")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_4_click);
MovieClip(_local2.getChildByName("falda_4_2")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_4_2")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_4_click);
MovieClip(_local2.getChildByName("falda_4_3")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_4_3")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_4_click);
MovieClip(_local2.getChildByName("falda_4_4")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_4_4")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_4_click);
MovieClip(_local2.getChildByName("falda_4_5")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_4_5")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_4_click);
MovieClip(_local2.getChildByName("falda_4_6")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_4_6")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_4_click);
MovieClip(_local2.getChildByName("falda_5_1")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_5_1")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_5_click);
MovieClip(_local2.getChildByName("falda_5_2")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_5_2")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_5_click);
MovieClip(_local2.getChildByName("falda_5_3")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_5_3")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_5_click);
MovieClip(_local2.getChildByName("falda_5_4")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_5_4")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_5_click);
MovieClip(_local2.getChildByName("falda_5_5")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_5_5")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_5_click);
MovieClip(_local2.getChildByName("falda_6_1")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_6_1")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_6_click);
MovieClip(_local2.getChildByName("falda_6_2")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_6_2")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_6_click);
MovieClip(_local2.getChildByName("falda_6_3")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_6_3")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_6_click);
MovieClip(_local2.getChildByName("falda_6_4")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_6_4")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_6_click);
MovieClip(_local2.getChildByName("falda_6_5")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_6_5")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_6_click);
MovieClip(_local2.getChildByName("falda_6_6")).buttonMode = true;
MovieClip(_local2.getChildByName("falda_6_6")).addEventListener(MouseEvent.CLICK, this.menu_4_falda_6_click);
if (GameDefinitions.falda > 4){
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 0.5;
};
}
private function menu_5_zapato_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.zapatos != 1){
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName(("zapato_" + (GameDefinitions.zapatos - 1))).alpha = 1;
};
GameDefinitions.zapatos = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
MovieClip(this.nena.getChildByName("zapatos")).gotoAndStop(GameDefinitions.zapatos);
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName(("zapato_" + (GameDefinitions.zapatos - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName(("zapato_" + (GameDefinitions.zapatos - 1))).alpha = 1;
GameDefinitions.zapatos = 1;
MovieClip(this.nena.getChildByName("zapatos")).gotoAndStop(GameDefinitions.zapatos);
};
}
private function changeHairColorMenu():void{
var _local1:MovieClip = (MovieClip(this.ventanas.getChildByName("v_1")).getChildByName("menu") as MovieClip);
MovieClip(_local1.getChildByName("pa_1")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pa_2")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pa_3")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pa_4")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pa_5")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pa_6")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pb_1")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pb_2")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pb_3")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pb_4")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pb_5")).gotoAndStop(GameDefinitions.hairColor);
MovieClip(_local1.getChildByName("pb_6")).gotoAndStop(GameDefinitions.hairColor);
}
private function menu_6_ojos_click(_arg1:MouseEvent):void{
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("ojos_" + GameDefinitions.ojos)).alpha = 1;
GameDefinitions.ojos = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
MovieClip(this.nena.getChildByName("ojos")).gotoAndStop(GameDefinitions.ojos);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName(("ojos_" + GameDefinitions.ojos)).alpha = 0.5;
}
private function menu_6_init_9(_arg1:GameEvents):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_6"));
_local2.getChildByName("next").addEventListener(MouseEvent.CLICK, this.menu_6_btn_next);
_local2.getChildByName("bandeja_1").addEventListener(MouseEvent.CLICK, this.menu_6_bandeja_click);
_local2.getChildByName("bandeja_2").addEventListener(MouseEvent.CLICK, this.menu_6_bandeja_click);
_local2.getChildByName("bandeja_3").addEventListener(MouseEvent.CLICK, this.menu_6_bandeja_click);
_local2.getChildByName("bandeja_4").addEventListener(MouseEvent.CLICK, this.menu_6_bandeja_click);
_local2.getChildByName("bandeja_5").addEventListener(MouseEvent.CLICK, this.menu_6_bandeja_click);
_local2.getChildByName("bandeja_6").addEventListener(MouseEvent.CLICK, this.menu_6_bandeja_click);
MovieClip(_local2.getChildByName("diadema_01")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_01")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_02")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_02")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_03")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_03")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_04")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_04")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_05")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_05")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_06")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_06")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_07")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_07")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_08")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_08")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_09")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_09")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_10")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_10")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_11")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_11")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_12")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_12")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
MovieClip(_local2.getChildByName("diadema_13")).buttonMode = true;
MovieClip(_local2.getChildByName("diadema_13")).addEventListener(MouseEvent.CLICK, this.menu_6_diadema_click);
if (GameDefinitions.diadema != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName((("diadema_" + (((GameDefinitions.diadema - 1))<10) ? "0" : "") + (GameDefinitions.diadema - 1))).alpha = 0.5;
};
}
private function menu_5_calcetin_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.calcetines != 1){
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName(("calcetin_" + (GameDefinitions.calcetines - 1))).alpha = 1;
};
GameDefinitions.calcetines = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1)) + 1);
MovieClip(this.nena.getChildByName("calcetines")).gotoAndStop(GameDefinitions.calcetines);
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName(("calcetin_" + (GameDefinitions.calcetines - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName(("calcetin_" + (GameDefinitions.calcetines - 1))).alpha = 1;
GameDefinitions.calcetines = 1;
MovieClip(this.nena.getChildByName("calcetines")).gotoAndStop(GameDefinitions.calcetines);
};
}
private function menu_2_btn_col_1(_arg1:MouseEvent):void{
GameDefinitions.compColor = 1;
this.changeCompColorMenu();
this.changeCompColorNena();
}
private function menu_2_btn_co_le(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("co_1").x < -32.5){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("co_" + _local3)), 0.25, {x:(_local2.getChildByName(("co_" + _local3)).x + 180), y:_local2.getChildByName(("co_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function menu_2_btn_ce_ri(_arg1:MouseEvent):void{
var _local3:Number;
var _local2:MovieClip = (MovieClip(this.ventanas.getChildByName("v_2")).getChildByName("menu") as MovieClip);
if (_local2.getChildByName("ce_1").x > -928.9){
_local3 = 0;
_local3 = 1;
while (_local3 <= 6) {
TweenLite.to(_local2.getChildByName(("ce_" + _local3)), 0.25, {x:(_local2.getChildByName(("ce_" + _local3)).x - 180), y:_local2.getChildByName(("ce_" + _local3)).y, ease:Sine.easeOut});
_local3++;
};
};
}
private function menu_2_btn_col_4(_arg1:MouseEvent):void{
GameDefinitions.compColor = 4;
this.changeCompColorMenu();
this.changeCompColorNena();
}
private function menu_2_btn_col_5(_arg1:MouseEvent):void{
GameDefinitions.compColor = 5;
this.changeCompColorMenu();
this.changeCompColorNena();
}
private function menu_2_btn_col_2(_arg1:MouseEvent):void{
GameDefinitions.compColor = 2;
this.changeCompColorMenu();
this.changeCompColorNena();
}
private function menu_2_btn_col_3(_arg1:MouseEvent):void{
GameDefinitions.compColor = 3;
this.changeCompColorMenu();
this.changeCompColorNena();
}
private function menu_2_btn_col_6(_arg1:MouseEvent):void{
GameDefinitions.compColor = 6;
this.changeCompColorMenu();
this.changeCompColorNena();
}
private function menu_3_camiseta_1_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.camiseta == 1))) && (!((GameDefinitions.camisetaColor == 0))))) && ((GameDefinitions.camiseta <= 4)))){
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
};
GameDefinitions.camiseta = (1 + 1);
GameDefinitions.camisetaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("camisetas")).currentFrame == GameDefinitions.camiseta){
MovieClip(MovieClip(this.nena.getChildByName("camisetas")).getChildByName("camiseta")).gotoAndStop(GameDefinitions.camisetaColor);
};
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
GameDefinitions.camiseta = 1;
GameDefinitions.camisetaColor = 0;
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
};
}
private function menu_6_diadema_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (GameDefinitions.diadema != 1){
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName((("diadema_" + (((GameDefinitions.diadema - 1))<10) ? "0" : "") + (GameDefinitions.diadema - 1))).alpha = 1;
};
GameDefinitions.diadema = (Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 2), 2)) + 1);
MovieClip(this.nena.getChildByName("diademas")).gotoAndStop(GameDefinitions.diadema);
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName((("diadema_" + (((GameDefinitions.diadema - 1))<10) ? "0" : "") + (GameDefinitions.diadema - 1))).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_6")).getChildByName((("diadema_" + (((GameDefinitions.diadema - 1))<10) ? "0" : "") + (GameDefinitions.diadema - 1))).alpha = 1;
GameDefinitions.diadema = 1;
MovieClip(this.nena.getChildByName("diademas")).gotoAndStop(GameDefinitions.diadema);
};
}
private function menu_3_camiseta_5_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.camiseta == 1))) && (!((GameDefinitions.camisetaColor == 0))))) && ((GameDefinitions.camiseta > 4)))){
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
};
GameDefinitions.camiseta = (5 + 1);
GameDefinitions.camisetaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("camisetas")).currentFrame == GameDefinitions.camiseta){
MovieClip(MovieClip(this.nena.getChildByName("camisetas")).getChildByName("camiseta")).gotoAndStop(GameDefinitions.camisetaColor);
};
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_3")).getChildByName(((("camiseta_" + (GameDefinitions.camiseta - 1)) + "_") + GameDefinitions.camisetaColor)).alpha = 1;
GameDefinitions.camiseta = 1;
GameDefinitions.camisetaColor = 0;
MovieClip(this.nena.getChildByName("camisetas")).gotoAndStop(GameDefinitions.camiseta);
};
}
private function menu_5_init_9(_arg1:GameEvents):void{
var _local2:MovieClip = MovieClip(this.ventanas.getChildByName("v_5"));
_local2.getChildByName("next").addEventListener(MouseEvent.CLICK, this.menu_5_btn_next);
MovieClip(_local2.getChildByName("pantie_01")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_01")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_02")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_02")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_03")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_03")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_04")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_04")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_05")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_05")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_06")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_06")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_07")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_07")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_08")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_08")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_09")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_09")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
MovieClip(_local2.getChildByName("pantie_10")).buttonMode = true;
MovieClip(_local2.getChildByName("pantie_10")).addEventListener(MouseEvent.CLICK, this.menu_5_pantie_click);
if (GameDefinitions.panties != 1){
MovieClip(this.ventanas.getChildByName("v_5")).getChildByName((("pantie_" + (((GameDefinitions.panties - 1))<10) ? "0" : "") + (GameDefinitions.panties - 1))).alpha = 0.5;
};
}
private function menu_4_falda_3_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
if (((((!((GameDefinitions.falda == 1))) && (!((GameDefinitions.faldaColor == 0))))) && ((GameDefinitions.falda <= 4)))){
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
};
GameDefinitions.falda = (3 + 1);
GameDefinitions.faldaColor = Number(String(_arg1.currentTarget.name).substr((String(_arg1.currentTarget.name).length - 1), 1));
if (MovieClip(this.nena.getChildByName("faldas")).currentFrame == GameDefinitions.falda){
MovieClip(MovieClip(this.nena.getChildByName("faldas")).getChildByName("falda")).gotoAndStop(GameDefinitions.faldaColor);
};
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 0.5;
} else {
MovieClip(this.ventanas.getChildByName("v_4")).getChildByName(((("falda_" + (GameDefinitions.falda - 1)) + "_") + GameDefinitions.faldaColor)).alpha = 1;
GameDefinitions.falda = 1;
GameDefinitions.faldaColor = 0;
MovieClip(this.nena.getChildByName("faldas")).gotoAndStop(GameDefinitions.falda);
};
}
private function menu_6_cascos_click(_arg1:MouseEvent):void{
if (_arg1.currentTarget.alpha == 1){
_arg1.currentTarget.alpha = 0.5;
GameDefinitions.cascos = 2;
MovieClip(this.nena.getChildByName("cascos")).gotoAndStop(GameDefinitions.cascos);
} else {
_arg1.currentTarget.alpha = 1;
GameDefinitions.cascos = 1;
MovieClip(this.nena.getChildByName("cascos")).gotoAndStop(GameDefinitions.cascos);
};
}
}
}//package rutch.game
Section 101
//GameDefinitions (rutch.game.GameDefinitions)
package rutch.game {
public class GameDefinitions {
public static var panties:Number = 1;
public static var cejas:Number = 1;
public static var gafas:Number = 1;
public static var unas:Number = 1;
public static var zapatos:Number = 1;
public static var compColor:Number = 1;
public static var bandeja:Number = 1;
public static var cascos:Number = 1;
public static var pelo_a:Number = 1;
public static var pelo_b:Number = 1;
public static var hairColor:Number = 1;
public static var camisetaColor:Number = 0;
public static var ojosColor:Number = 1;
public static var faldaColor:Number;
public static var camiseta:Number = 1;
public static var score:Number = 0;
public static var correa:Number = 1;
public static var falda:Number = 1;
public static var lazos:Number = 1;
public static var diadema:Number = 1;
public static var colorete:Number = 1;
public static var calcetines:Number = 1;
public static var gorras:Number = 1;
public static var piel:Number = 1;
public static var cola:Number = 1;
public static var boca:Number = 1;
public static var orejas:Number = 1;
public static var ojos:Number = 1;
}
}//package rutch.game
Section 102
//MatesFunctions (rutch.mates.MatesFunctions)
package rutch.mates {
import flash.geom.*;
public class MatesFunctions {
public static function getVector(_arg1:Point, _arg2:Point):Number{
var _local3:Number = (_arg1.x - _arg2.x);
return ((_local3 / Math.cos((MatesFunctions.getAlpha(_arg1, _arg2) * (Math.PI / 180)))));
}
public static function gradToRad(_arg1:Number):Number{
return ((_arg1 * (Math.PI / 180)));
}
public static function calcDespX(_arg1:Number, _arg2:Number):Number{
return ((Math.cos((_arg1 * (Math.PI / 180))) * _arg2));
}
public static function calcDespY(_arg1:Number, _arg2:Number):Number{
return ((Math.sin((_arg1 * (Math.PI / 180))) * _arg2));
}
public static function getAlpha(_arg1:Point, _arg2:Point):Number{
var _local3:Number = (_arg1.x - _arg2.x);
var _local4:Number = (_arg1.y - _arg2.y);
return ((((Math.atan2(_local4, _local3) * 180) / Math.PI) - 180));
}
public static function reglaDe3(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (((_arg3 * _arg2) / _arg1));
}
public static function getHipotenusa(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((_arg1 * _arg1) + (_arg2 * _arg2));
_local3 = Math.sqrt(_local3);
return (_local3);
}
public static function rotateVector(_arg1:Point, _arg2:Point, _arg3:Number):Point{
var _local4:Number = (((_arg2.x - _arg1.x) * Math.cos(MatesFunctions.gradToRad(_arg3))) - ((_arg2.y - _arg1.y) * Math.sin(MatesFunctions.gradToRad(_arg3))));
var _local5:Number = (((_arg2.x - _arg1.x) * Math.sin(MatesFunctions.gradToRad(_arg3))) + ((_arg2.y - _arg1.y) * Math.cos(MatesFunctions.gradToRad(_arg3))));
return (new Point((_local4 + _arg1.x), (_local5 + _arg1.y)));
}
public static function radToGrad(_arg1:Number):Number{
return ((_arg1 * (180 / Math.PI)));
}
public static function getAleatori(_arg1:Number, _arg2:Number):Number{
return ((Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1));
}
}
}//package rutch.mates
Section 103
//Language (rutch.stage.Language)
package rutch.stage {
public class Language {
public static const JUGAR:Array = new Array("Jugar", "Jouer", "Gioca", "Jogar", "Spielen", "Play", "Graj", "Играть");
public static const CAMBIAR_IDIOMA:Array = new Array("Cambiar idioma", "Changer de langue", "Cambia la lingua", "Selecciona o idioma", "Sprache ändern", "Select language", "Zmień język", "Выбрать язык");
public static const MAS_JUEGOS:Array = new Array("Más juegos", "Autres jeux", "Altri giochi", "Mais jogos", "Mehr Spiele", "More games", "Więcej gier", "Другие игры");
public static const JUEGO_BLOQUEADO:Array = new Array(new Array("¡Este juego está bloqueado! Por favor, dirígete a ", " para jugar a la versión original."), new Array("Ce jeu est bloqué! S'il te plaît, va sur ", " pour jouer à la version originale."), new Array("Questo gioco è bloccato! Per favore, vai al sito ", " per giocare con la versione originale."), new Array("Este jogo encontra-se bloqueado! Por favor, vá à página ", " para jogar a versão original."), new Array("Dieses Spiel ist gesperrt! Bitte gehe zu ", ", um die Originalversion zu spielen."), new Array("This game is locked! Please go to ", " to play the original version."), new Array("Ta gra jest zablokowana! Prosimy o przejście na stronę ", " by zagrać w wersję oryginalną."), new Array("Игра заблокирована! Пожалуйста, идите на сайт ", ", где вы сможете играть в оригинальную версию игры."));
public static const INSTRUCCIONES:Array = new Array("Instrucciones", "Instructions", "Istruzioni", "Instruções", "Anleitungen", "Instructions", "Instrukcje", "Правила");
public static const ONLY_AVAILABLE:Array = new Array("Sólo disponible en ", "Seulement disponible sur ", "Solo disponibile in ", "Somente disponível em ", "Nur bei ", "Only at ", "Tylko na ", "Только на ");
public static const WEBS:Array = new Array("http://www.chicasgames.com/", "http://www.jeuxdenanas.com/", "http://www.giochidiragazze.com/", "http://www.jogosemeninas.com/", "http://www.spielemaedchen.com/", "http://www.bonniegames.com/", "http://www.dziewczynygames.com/", "http://www.veragames.ru/");
public static var TXT_END_1:Array = new Array("¡Qué horror! ¡Lo puedes hacer mucho mejor!", "Quelle horreur! Tu peux le faire beaucoup mieux!", "Che brutta! Puoi vestirmi molto, ma molto meglio!", "Oh, que horror! Podes melhorar isso!", "Schrecklich! Das kannst du viel besser machen!", "That's terrible! You can do much better than that!", "Fatalnie! Możesz zrobić to dużo lepiej!", "Какой ужас! Ты можешь одеть меня и получше!");
public static var TXT_END_3:Array = new Array("¡Qué guapa está la Chu-Chu! ¡Te falta muy poco para que esté perfecta!", "Qu’elle est belle Chu-Chu! Il te manque presque rien pour être parfaite!", "Che bella è la Chu-Chu! Ti manca pochissimo per farla essere perfetta!", "Que gira está Chu-Chu! Falta bem pouco para ficar perfeita!", "Wie hübsch Chu-Chu ist! Dir fehlt nicht viel zum perfekten Aussehen!", "Chu-Chu's so pretty! You don't need much more to look perfect!", "Chu-Chu jest taka ładna! Już nie dużo brakuje by wyglądała idealnie!", "Чу-Чу просто красотка! Тебе не хватает совсем чуть-чуть, чтобы она была совершенна!");
public static var TXT_END_4:Array = new Array("¡Aquí tienes a la Neko Girl más guapa del mundo! ¡Chu-Chu es un concentrado de estilo y belleza!", "Voici la Neko Girl la plus belle du monde! Chu-Chu est un concentré de style et de beauté!", "Ecco la Neko Girl più bella del mondo! Chu-Chu è un concentrato di stile e bellezza!", "Aqui tens a Neko Girl mais gira do mundo! Chu-Chu é um concentrado de estilo e beleza!", "Hier hast du das hübscheste Neko Girl der Welt! Chu-Chu ist Stil und Schönheit pur!", "Here's the prettiest Neko Girl in the world! Chu-Chu is pure style and beauty!", "Oto najpiękniejsza Neko Girl na świecie! Chu-Chu to kwintesencja stylu i urody!", "Вот она – самая красивая в мире Девочка Неко! Чу-Чу - олицетворение красоты и стиля!");
public static var lang:Number;
public static var TXT_END_2:Array = new Array("¡Vas por el buen camino! ¡Una Neko Girl como Chu-Chu tiene que combinar bien los colores!", "Tu es en bonne voie! Une Neko Girl comme Chu-Chu doit savoir bien combiner les couleurs!", "Non c’è male! Una Neko Girl come Chu-Chu deve abbinare bene i colori!", "Estás no caminho certo! Uma Neko Girl como Chu-Chu tem que saber combinar bem as cores!", "Du bist auf einem guten Weg! Ein Neko Girl wie Chu-Chu muss die Farben gut kombinieren!", "You're on the right track! A Neko Girl like Chu-Chu has to do a great job combining colors!", "Dobrze Ci idzie! Taka Neko Girl jak Chu-Chu może dobrze łączyć wszystkie kolory!", "Ты на верном пути! Девочка Неко должна уметь хорошо сочетать цвета!");
}
}//package rutch.stage
Section 104
//S_Idioma (rutch.stage.S_Idioma)
package rutch.stage {
import flash.events.*;
import flash.display.*;
public class S_Idioma extends MovieClip {
public var de:SimpleButton;
public var ru:SimpleButton;
public var pt:SimpleButton;
public var fr:SimpleButton;
public var en:SimpleButton;
public var it:SimpleButton;
public var es:SimpleButton;
public var pl:SimpleButton;
public function S_Idioma(){
this.getChildByName("es").addEventListener(MouseEvent.CLICK, this.btnEs);
this.getChildByName("it").addEventListener(MouseEvent.CLICK, this.btnIt);
this.getChildByName("pt").addEventListener(MouseEvent.CLICK, this.btnPt);
this.getChildByName("fr").addEventListener(MouseEvent.CLICK, this.btnFr);
this.getChildByName("en").addEventListener(MouseEvent.CLICK, this.btnEn);
this.getChildByName("de").addEventListener(MouseEvent.CLICK, this.btnDe);
this.getChildByName("pl").addEventListener(MouseEvent.CLICK, this.btnPl);
this.getChildByName("ru").addEventListener(MouseEvent.CLICK, this.btnRu);
}
private function btnPt(_arg1:MouseEvent):void{
Language.lang = 3;
this.onLangSelected();
}
private function btnRu(_arg1:MouseEvent):void{
Language.lang = 7;
this.onLangSelected();
}
private function btnFr(_arg1:MouseEvent):void{
Language.lang = 1;
this.onLangSelected();
}
private function btnEn(_arg1:MouseEvent):void{
Language.lang = 5;
this.onLangSelected();
}
private function btnIt(_arg1:MouseEvent):void{
Language.lang = 2;
this.onLangSelected();
}
private function onLangSelected():void{
TheStage.stageMc.gotoAndPlay("logo");
}
private function btnEs(_arg1:MouseEvent):void{
Language.lang = 0;
this.onLangSelected();
}
private function btnPl(_arg1:MouseEvent):void{
Language.lang = 6;
this.onLangSelected();
}
private function btnDe(_arg1:MouseEvent):void{
Language.lang = 4;
this.onLangSelected();
}
}
}//package rutch.stage
Section 105
//TheStage (rutch.stage.TheStage)
package rutch.stage {
import flash.net.*;
import flash.events.*;
import com.greensock.*;
import flash.display.*;
import rutch.cross.*;
import flash.utils.*;
import com.greensock.easing.*;
import flash.media.*;
public class TheStage extends MovieClip {
public var big_logo:MovieClip;
public var warning_blocked:MovieClip;
public var credits:MovieClip;
private var allowedDomains:Array;
public var logo:MovieClip;
public var sound_:MovieClip;
public var preload_:MovieClip;
public var credits_btn:SimpleButton;
public static const ON_LANGUAGE_FRAME:Number = 25;
public static const GAME_NAME:String = "neko-girl-chu-chu";
public static var onValidDomain:Boolean;
public static var soundChann:SoundChannel;
private static var AN_Timer:Timer = new Timer(180000);
public static var stageObj:Stage;
private static var allowNetworking:String = "";
private static var currentDomain:String;
public static var stageMc:MovieClip;
public function TheStage(){
allowedDomains = new Array("localhost", "chicasgames.com", "jeuxdenanas.com", "giochidiragazze.com", "jogosemeninas.com", "spielemaedchen.com", "bonniegames.com", "dziewczynygames.com", "veragames.ru", "macrojuegos.com", "microjeux.com", "microspiele.com", "microgiochi.com", "microjogos.com", "minigamers.com", "empollonas.com");
super();
addFrameScript(0, frame1, 3, frame4, 13, frame14, 14, frame15, 23, frame24, 24, frame25, 33, frame34, 43, frame44, 53, frame54, 54, frame55, 63, frame64, 74, frame75);
TheStage.stageMc = MovieClip(this);
TheStage.stageObj = stage;
this.preload();
this.checkDomain();
CrossConnection.initCrossCustomListeners();
this.checkCrossConnection();
}
function frame44(){
stop();
}
private function checkCrossConnectionResponse(_arg1:Object):void{
if (_arg1.isWall){
trace("*** allowNetworking = 'internal';");
TheStage.allowNetworking = "internal";
TheStage.AN_Timer.addEventListener(TimerEvent.TIMER, TheStage.AN_onTimer);
TheStage.AN_Timer.start();
} else {
trace("*** allowNetworking = 'all|internal';");
TheStage.allowNetworking = "all|internal";
};
}
function frame25(){
big_logo.addEventListener(Event.COMPLETE, onLogoPlayed);
big_logo.buttonMode = true;
big_logo.addEventListener(MouseEvent.CLICK, TheStage.gotoWeb);
big_logo.gotoAndStop((Language.lang + 1));
}
public function preload():void{
trace("Preloading Stage ...");
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, this.onLoadProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, this.onLoadComplete);
}
function frame75(){
stop();
}
function frame54(){
stop();
}
function frame55(){
logo.gotoAndStop((Language.lang + 1));
logo.buttonMode = true;
logo.addEventListener(MouseEvent.CLICK, TheStage.gotoWeb);
credits_btn.addEventListener(MouseEvent.CLICK, showCredits);
credits.getChildByName("back").addEventListener(MouseEvent.CLICK, hideCredits);
}
function frame15(){
sound_.addEventListener(MouseEvent.CLICK, onSoundClick);
sound_.buttonMode = true;
}
function frame34(){
stop();
}
function frame14(){
stop();
}
public function onLogoPlayed(_arg1:Event):void{
gotoAndPlay("juego");
}
public function showCredits(_arg1:MouseEvent):void{
TweenLite.to(credits, 0.75, {x:credits.x, y:-7, ease:Back.easeOut});
}
private function checkCrossConnection():void{
var cross:CrossConnection = new CrossConnection(TheStage.httpStatusErrorResponse, 2500, TheStage.timedOutResponse);
var requestVars:URLVariables = new URLVariables();
requestVars.panacross = "checkBlockingDomain";
requestVars.gameId = TheStage.GAME_NAME;
requestVars.currentDomain = TheStage.currentDomain;
try {
cross.sendAndLoadEncrypted("http://cross.macrojuegos.com/", requestVars, this.checkCrossConnectionResponse);
} catch(e:Error) {
trace("*** allowNetworking = 'none';");
TheStage.allowNetworking = "none";
TheStage.AN_Timer.addEventListener(TimerEvent.TIMER, TheStage.AN_onTimer);
TheStage.AN_Timer.start();
};
}
function frame4(){
stop();
}
function frame24(){
stop();
}
public function onLoadProgress(_arg1:ProgressEvent):void{
var _local2:int = _arg1.bytesLoaded;
var _local3:int = _arg1.bytesTotal;
var _local4:int = ((_local2 / _local3) * 100);
trace((_local4 + " %"));
MovieClip(this).preload_.loader_text.text = (_local4 + "%");
MovieClip(this).preload_.loader.gotoAndStop(_local4);
}
public function onSoundClick(_arg1:MouseEvent):void{
if (_arg1.currentTarget.currentFrame == 1){
SoundMixer.soundTransform = new SoundTransform(0);
_arg1.currentTarget.gotoAndStop(2);
} else {
SoundMixer.soundTransform = new SoundTransform(1);
_arg1.currentTarget.gotoAndStop(1);
};
}
function frame64(){
stop();
}
public function checkDomain():void{
var _local1:LocalConnection = new LocalConnection();
TheStage.currentDomain = _local1.domain;
TheStage.onValidDomain = false;
var _local2:Number = 0;
while ((((_local2 < this.allowedDomains.length)) && (!(TheStage.onValidDomain)))) {
if (TheStage.currentDomain.indexOf(this.allowedDomains[_local2]) != -1){
trace((("Domain Allowed! [" + this.allowedDomains[_local2]) + "]"));
TheStage.onValidDomain = true;
};
_local2++;
};
}
function frame1(){
MochiBot.track(this, "2d80cf6d");
}
public function onLoadComplete(_arg1:Event):void{
trace("... Load Complete!");
TheStage.stageMc.gotoAndPlay("idioma");
}
public function hideCredits(_arg1:MouseEvent):void{
TweenLite.to(credits, 1, {x:credits.x, y:485, ease:Back.easeInOut});
}
private static function updateCrossAllowNetworkingResponse(_arg1:Object):void{
trace("*** Cross is Up To Date!");
}
private static function AN_onTimer(_arg1:TimerEvent):void{
TheStage.AN_Timer.stop();
trace((Language.lang is Number));
if ((((((((Language.lang is Number)) && ((TheStage.stageMc.currentFrame >= TheStage.ON_LANGUAGE_FRAME)))) && (!((TheStage.allowNetworking == "all"))))) && (!(TheStage.onValidDomain)))){
TheStage.stageMc.getChildByName("warning_blocked").visible = true;
} else {
if (!TheStage.onValidDomain){
TheStage.AN_Timer.start();
};
};
}
public static function gotoGameWeb(_arg1:MouseEvent=null):void{
var url:String;
var ev = _arg1;
url = ((Language.WEBS[Language.lang] + TheStage.GAME_NAME) + "/");
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
trace("*** allowNetworking = 'all';");
if (TheStage.allowNetworking == "all|internal"){
TheStage.allowNetworking = "all";
};
} catch(e) {
trace(((("!! " + e) + "\n\tERROR AL HACER REQUEST A ") + url));
if (TheStage.allowNetworking == "all|internal"){
trace("*** allowNetworking = 'internal';");
TheStage.allowNetworking = "internal";
TheStage.updateCrossAllowNetworking();
};
TheStage.AN_Timer.addEventListener(TimerEvent.TIMER, TheStage.AN_onTimer);
TheStage.AN_Timer.start();
};
}
public static function playBaseSound(_arg1:String):void{
if (TheStage.soundChann != null){
TheStage.soundChann.stop();
};
TheStage.soundChann = null;
switch (_arg1){
case "menu":
break;
};
if (((!((MovieClip(TheStage.stageMc.getChildByName("sound_")) == null))) && ((MovieClip(TheStage.stageMc.getChildByName("sound_")).currentFrame == 2)))){
TheStage.soundChann.soundTransform = new SoundTransform(0);
};
}
private static function updateCrossAllowNetworking():void{
var cross:CrossConnection = new CrossConnection(TheStage.httpStatusErrorResponse, 2500, TheStage.timedOutResponse);
var requestVars:URLVariables = new URLVariables();
requestVars.panacross = "updateBlockingDomain";
requestVars.gameId = TheStage.GAME_NAME;
requestVars.currentDomain = TheStage.currentDomain;
try {
cross.sendAndLoadEncrypted("http://cross.macrojuegos.com/", requestVars, TheStage.updateCrossAllowNetworkingResponse);
trace("*** Updating Cross...");
} catch(e:Error) {
trace("*** allowNetworking = 'none';");
TheStage.allowNetworking = "none";
TheStage.AN_Timer.addEventListener(TimerEvent.TIMER, TheStage.AN_onTimer);
TheStage.AN_Timer.start();
};
}
private static function httpStatusErrorResponse(_arg1:Object):void{
trace((("*** HTTP Status Error [ErrorCode: " + _arg1.status) + "]"));
trace("*** allowNetworking = 'all|internal';");
if (TheStage.allowNetworking == ""){
TheStage.allowNetworking = "all|internal";
};
}
public static function gotoWeb(_arg1:MouseEvent=null):void{
var url:String;
var ev = _arg1;
url = Language.WEBS[Language.lang];
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
trace("*** allowNetworking = 'all';");
if (TheStage.allowNetworking == "all|internal"){
TheStage.allowNetworking = "all";
};
} catch(e) {
trace(((("!! " + e) + "\n\tERROR AL HACER REQUEST A ") + url));
if (TheStage.allowNetworking == "all|internal"){
trace("*** allowNetworking = 'internal';");
TheStage.allowNetworking = "internal";
TheStage.updateCrossAllowNetworking();
};
TheStage.AN_Timer.addEventListener(TimerEvent.TIMER, TheStage.AN_onTimer);
TheStage.AN_Timer.start();
};
}
public static function switchSound(_arg1:MouseEvent):void{
var _local2:SoundTransform;
if (TheStage.soundChann.soundTransform.volume == 1){
_local2 = new SoundTransform(0);
MovieClip(TheStage.stageMc.getChildByName("sound_")).gotoAndStop(2);
} else {
_local2 = new SoundTransform(1);
MovieClip(TheStage.stageMc.getChildByName("sound_")).gotoAndStop(1);
};
TheStage.soundChann.soundTransform = _local2;
}
private static function timedOutResponse(_arg1:Object):void{
trace((("*** Response Out of Time! [ErrorMessage: " + _arg1.message) + "]"));
trace("*** allowNetworking = 'all|internal';");
if (TheStage.allowNetworking == ""){
TheStage.allowNetworking = "all|internal";
};
}
}
}//package rutch.stage
Section 106
//MochiBot (MochiBot)
package {
import flash.net.*;
import flash.display.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package