Section 1
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var start:Number;
public var name:String;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var priority:int;
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 _local4:TweenCore;
var _local5:Number;
var _local6:TweenCore;
_local4 = _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 get rawTime():Number{
return (this.cachedTotalTime);
}
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;
};
};
}
}
}//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 cachedReversed:Boolean;
public var nextNode:TweenCore;
public var cachedTime:Number;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var data;
public var timeline:SimpleTimeline;
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){
var _local3:SimpleTimeline;
_rawPrevTime = -1;
super();
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;
};
};
_local3 = ((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 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;
_local2 = 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 invalidate():void{
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
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 get reversed():Boolean{
return (this.cachedReversed);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
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;
_local2 = (_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
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import com.greensock.core.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class TweenLite extends TweenCore {
public var target:Object;
protected var _overwrite:uint;
public var ratio:Number;// = 0
protected var _notifyPluginsOfEnabled:Boolean;
protected var _hasPlugins:Boolean;
public var cachedPT1:PropTween;
protected var _overwrittenProps:Object;
public var propTweenLookup:Object;
protected var _ease:Function;
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 _local4:Array;
var _local5:TweenLite;
ratio = 0;
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);
_local4 = 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);
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number;
var _local6:PropTween;
_local5 = 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);
};
_local6 = 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);
};
}
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;
}
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 invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
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 setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = _slot1.masterList[this.target];
if (!(_local3)){
_slot1.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);
}
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 5
//MusicManager (com.tanoku.sonido.MusicManager)
package com.tanoku.sonido {
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import gs.*;
public class MusicManager {
private var _soundsDict:Dictionary;
private var _sounds:Array;
public var Activo:Boolean;// = true
private static var _instance:MusicManager;
private static var _allowInstance:Boolean;
public function MusicManager(){
Activo = true;
super();
this._soundsDict = new Dictionary(true);
this._sounds = new Array();
if (!(MusicManager._allowInstance)){
throw (new Error("Error: Use MusicManager.getInstance() instead of the new keyword."));
};
}
public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:Number=1):void{
var _local4:SoundChannel;
_local4 = this._soundsDict[_arg1].channel;
TweenLite.to(_local4, _arg3, {volume:_arg2});
}
public function get sounds():Array{
return (this._sounds);
}
public function Mute():void{
Activo = !(Activo);
if (Activo){
} else {
stopAllSounds();
};
}
public function getSoundDuration(_arg1:String):Number{
return (this._soundsDict[_arg1].sound.length);
}
public function setSoundVolume(_arg1:String, _arg2:Number):void{
var _local3:Object;
var _local4:SoundTransform;
_local3 = this._soundsDict[_arg1];
_local4 = _local3.channel.soundTransform;
_local4.volume = _arg2;
_local3.channel.soundTransform = _local4;
}
public function getSoundVolume(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.soundTransform.volume);
}
public function addLibrarySound(_arg1, _arg2:String):Boolean{
var _local3:int;
var _local4:Object;
var _local5:Sound;
_local3 = 0;
while (_local3 < this._sounds.length) {
if (this._sounds[_local3].name == _arg2){
return (false);
};
_local3++;
};
_local4 = new Object();
_local5 = new (_arg1);
_local4.name = _arg2;
_local4.sound = _local5;
_local4.channel = new SoundChannel();
_local4.position = 0;
_local4.paused = true;
_local4.volume = 1;
_local4.startTime = 0;
_local4.loops = 0;
_local4.pausedByAll = false;
this._soundsDict[_arg2] = _local4;
this._sounds.push(_local4);
return (true);
}
public function toString():String{
return (getQualifiedClassName(this));
}
public function isSoundPaused(_arg1:String):Boolean{
return (this._soundsDict[_arg1].paused);
}
public function removeAllSounds():void{
var _local1:int;
_local1 = 0;
while (_local1 < this._sounds.length) {
this._sounds[_local1] = null;
_local1++;
};
this._sounds = new Array();
this._soundsDict = new Dictionary(true);
}
public function getSoundPosition(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.position);
}
public function stopAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!(this._soundsDict[_local3].paused)){
this._soundsDict[_local3].pausedByAll = true;
this.stopSound(_local3);
};
} else {
this.stopSound(_local3);
};
_local2++;
};
}
public function removeSound(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < this._sounds.length) {
if (this._sounds[_local2].name == _arg1){
this._sounds[_local2] = null;
this._sounds.splice(_local2, 1);
};
_local2++;
};
delete this._soundsDict[_arg1];
}
public function muteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 0);
_local1++;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.channel.stop();
_local2.position = _local2.channel.position;
}
public function pauseAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!(this._soundsDict[_local3].paused)){
this._soundsDict[_local3].pausedByAll = true;
this.pauseSound(_local3);
};
} else {
this.pauseSound(_local3);
};
_local2++;
};
}
public function playAllSounds(_arg1:Boolean=false):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (this._soundsDict[_local3].pausedByAll){
this._soundsDict[_local3].pausedByAll = false;
this.playSound(_local3);
};
} else {
this.playSound(_local3);
};
_local2++;
};
}
public function addExternalSound(_arg1:String, _arg2:String, _arg3:Number=1000, _arg4:Boolean=false):Boolean{
var _local5:int;
var _local6:Object;
var _local7:Sound;
_local5 = 0;
while (_local5 < this._sounds.length) {
if (this._sounds[_local5].name == _arg2){
return (false);
};
_local5++;
};
_local6 = new Object();
_local7 = new Sound(new URLRequest(_arg1), new SoundLoaderContext(_arg3, _arg4));
_local6.name = _arg2;
_local6.sound = _local7;
_local6.channel = new SoundChannel();
_local6.position = 0;
_local6.paused = true;
_local6.volume = 1;
_local6.startTime = 0;
_local6.loops = 0;
_local6.pausedByAll = false;
this._soundsDict[_arg2] = _local6;
this._sounds.push(_local6);
return (true);
}
public function unmuteAllSounds():void{
var _local1:int;
var _local2:String;
var _local3:Object;
var _local4:SoundTransform;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
_local3 = this._soundsDict[_local2];
_local4 = _local3.channel.soundTransform;
_local4.volume = _local3.volume;
_local3.channel.soundTransform = _local4;
_local1++;
};
}
public function isSoundPausedByAll(_arg1:String):Boolean{
return (this._soundsDict[_arg1].pausedByAll);
}
public function getSoundObject(_arg1:String):Sound{
return (this._soundsDict[_arg1].sound);
}
public function pauseSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.position = _local2.channel.position;
_local2.channel.stop();
}
public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):void{
var _local5:Object;
_local5 = this._soundsDict[_arg1];
_local5.volume = _arg2;
if (Activo){
_local5.volume = _arg2;
} else {
_local5.volume = 0;
};
_local5.startTime = _arg3;
_local5.loops = _arg4;
if (_local5.paused){
_local5.channel = _local5.sound.play(_local5.position, _local5.loops, new SoundTransform(_local5.volume));
} else {
_local5.channel = _local5.sound.play(_arg3, _local5.loops, new SoundTransform(_local5.volume));
};
_local5.paused = false;
}
public static function getInstance():MusicManager{
if (MusicManager._instance == null){
MusicManager._allowInstance = true;
MusicManager._instance = new (MusicManager);
MusicManager._allowInstance = false;
};
return (MusicManager._instance);
}
}
}//package com.tanoku.sonido
Section 6
//SoundManager (com.tanoku.sonido.SoundManager)
package com.tanoku.sonido {
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import gs.*;
public class SoundManager {
private var _soundsDict:Dictionary;
private var _sounds:Array;
public var Activo:Boolean;// = true
private static var _instance:SoundManager;
private static var _allowInstance:Boolean;
public function SoundManager(){
Activo = true;
super();
this._soundsDict = new Dictionary(true);
this._sounds = new Array();
if (!(SoundManager._allowInstance)){
throw (new Error("Error: Use SoundManager.getInstance() instead of the new keyword."));
};
}
public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:Number=1):void{
var _local4:SoundChannel;
_local4 = this._soundsDict[_arg1].channel;
TweenLite.to(_local4, _arg3, {volume:_arg2});
}
public function get sounds():Array{
return (this._sounds);
}
public function Mute():void{
Activo = !(Activo);
if (Activo){
unmuteAllSounds();
} else {
muteAllSounds();
};
}
public function getSoundDuration(_arg1:String):Number{
return (this._soundsDict[_arg1].sound.length);
}
public function setSoundVolume(_arg1:String, _arg2:Number):void{
var _local3:Object;
var _local4:SoundTransform;
_local3 = this._soundsDict[_arg1];
_local4 = _local3.channel.soundTransform;
_local4.volume = _arg2;
_local3.channel.soundTransform = _local4;
}
public function getSoundVolume(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.soundTransform.volume);
}
public function addLibrarySound(_arg1, _arg2:String):Boolean{
var _local3:int;
var _local4:Object;
var _local5:Sound;
_local3 = 0;
while (_local3 < this._sounds.length) {
if (this._sounds[_local3].name == _arg2){
return (false);
};
_local3++;
};
_local4 = new Object();
_local5 = new (_arg1);
_local4.name = _arg2;
_local4.sound = _local5;
_local4.channel = new SoundChannel();
_local4.position = 0;
_local4.paused = true;
_local4.volume = 1;
_local4.startTime = 0;
_local4.loops = 0;
_local4.pausedByAll = false;
this._soundsDict[_arg2] = _local4;
this._sounds.push(_local4);
return (true);
}
public function toString():String{
return (getQualifiedClassName(this));
}
public function isSoundPaused(_arg1:String):Boolean{
return (this._soundsDict[_arg1].paused);
}
public function removeAllSounds():void{
var _local1:int;
_local1 = 0;
while (_local1 < this._sounds.length) {
this._sounds[_local1] = null;
_local1++;
};
this._sounds = new Array();
this._soundsDict = new Dictionary(true);
}
public function getSoundPosition(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.position);
}
public function stopAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!(this._soundsDict[_local3].paused)){
this._soundsDict[_local3].pausedByAll = true;
this.stopSound(_local3);
};
} else {
this.stopSound(_local3);
};
_local2++;
};
}
public function removeSound(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < this._sounds.length) {
if (this._sounds[_local2].name == _arg1){
this._sounds[_local2] = null;
this._sounds.splice(_local2, 1);
};
_local2++;
};
delete this._soundsDict[_arg1];
}
public function muteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 0);
_local1++;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
if (_local2.channel != null){
_local2.channel.stop();
_local2.position = _local2.channel.position;
};
}
public function pauseAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!(this._soundsDict[_local3].paused)){
this._soundsDict[_local3].pausedByAll = true;
this.pauseSound(_local3);
};
} else {
this.pauseSound(_local3);
};
_local2++;
};
}
public function playAllSounds(_arg1:Boolean=false):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (this._soundsDict[_local3].pausedByAll){
this._soundsDict[_local3].pausedByAll = false;
this.playSound(_local3);
};
} else {
this.playSound(_local3);
};
_local2++;
};
}
public function addExternalSound(_arg1:String, _arg2:String, _arg3:Number=1000, _arg4:Boolean=false):Boolean{
var _local5:int;
var _local6:Object;
var _local7:Sound;
_local5 = 0;
while (_local5 < this._sounds.length) {
if (this._sounds[_local5].name == _arg2){
return (false);
};
_local5++;
};
_local6 = new Object();
_local7 = new Sound(new URLRequest(_arg1), new SoundLoaderContext(_arg3, _arg4));
_local6.name = _arg2;
_local6.sound = _local7;
_local6.channel = new SoundChannel();
_local6.position = 0;
_local6.paused = true;
_local6.volume = 1;
_local6.startTime = 0;
_local6.loops = 0;
_local6.pausedByAll = false;
this._soundsDict[_arg2] = _local6;
this._sounds.push(_local6);
return (true);
}
public function unmuteAllSounds():void{
var _local1:int;
var _local2:String;
var _local3:Object;
var _local4:SoundTransform;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
_local3 = this._soundsDict[_local2];
_local4 = _local3.channel.soundTransform;
_local4.volume = 1;
_local3.channel.soundTransform = _local4;
_local1++;
};
}
public function isSoundPausedByAll(_arg1:String):Boolean{
return (this._soundsDict[_arg1].pausedByAll);
}
public function getSoundObject(_arg1:String):Sound{
return (this._soundsDict[_arg1].sound);
}
public function pauseSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
if (_local2.channel != null){
_local2.position = _local2.channel.position;
_local2.channel.stop();
};
}
public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):void{
var _local5:Object;
_local5 = this._soundsDict[_arg1];
if (Activo){
_local5.volume = _arg2;
} else {
_local5.volume = 0;
};
_local5.startTime = _arg3;
_local5.loops = _arg4;
if (_local5.paused){
_local5.channel = _local5.sound.play(_local5.position, _local5.loops, new SoundTransform(_local5.volume));
} else {
_local5.channel = _local5.sound.play(_arg3, _local5.loops, new SoundTransform(_local5.volume));
};
_local5.paused = false;
}
public static function getInstance():SoundManager{
if (SoundManager._instance == null){
SoundManager._allowInstance = true;
SoundManager._instance = new (SoundManager);
SoundManager._allowInstance = false;
};
return (SoundManager._instance);
}
}
}//package com.tanoku.sonido
Section 7
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 8
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 9
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 10
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 11
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.geom.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!((_arg1 is DisplayObject))){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 12
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 13
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 14
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
}
}//package gs.plugins
Section 15
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 16
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 17
//TweenLite (gs.TweenLite)
package gs {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import gs.plugins.*;
import gs.utils.tween.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.092;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!(_tlInitted)){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!((this.target in masterList))){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!(_local3)){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!(this.initted)){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && (this.target.hasOwnProperty("timeScale")))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
_local4.start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!(_arg1)){
if (!(this.initted)){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 18
//apophisfuegoat1_889 (IPFI_fla.apophisfuegoat1_889)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class apophisfuegoat1_889 extends MovieClip {
public function apophisfuegoat1_889(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 19
//apophisfuegoat2_888 (IPFI_fla.apophisfuegoat2_888)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class apophisfuegoat2_888 extends MovieClip {
public function apophisfuegoat2_888(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package IPFI_fla
Section 20
//apophishumo2_891 (IPFI_fla.apophishumo2_891)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class apophishumo2_891 extends MovieClip {
public function apophishumo2_891(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package IPFI_fla
Section 21
//barra_progreso_150 (IPFI_fla.barra_progreso_150)
package IPFI_fla {
import flash.display.*;
import flash.text.*;
public dynamic class barra_progreso_150 extends MovieClip {
public var progreso:MovieClip;
public var info:TextField;
}
}//package IPFI_fla
Section 22
//buff_fuerza_158 (IPFI_fla.buff_fuerza_158)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class buff_fuerza_158 extends MovieClip {
public var info:TextField;
}
}//package IPFI_fla
Section 23
//buff_probabilidad_critico_160 (IPFI_fla.buff_probabilidad_critico_160)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class buff_probabilidad_critico_160 extends MovieClip {
public var info:TextField;
}
}//package IPFI_fla
Section 24
//buff_probabilidad_dinero_162 (IPFI_fla.buff_probabilidad_dinero_162)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class buff_probabilidad_dinero_162 extends MovieClip {
public var info:TextField;
}
}//package IPFI_fla
Section 25
//cargarayos1_576 (IPFI_fla.cargarayos1_576)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cargarayos1_576 extends MovieClip {
public function cargarayos1_576(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package IPFI_fla
Section 26
//cargarayos2_574 (IPFI_fla.cargarayos2_574)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cargarayos2_574 extends MovieClip {
public function cargarayos2_574(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package IPFI_fla
Section 27
//cargarayos3_573 (IPFI_fla.cargarayos3_573)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cargarayos3_573 extends MovieClip {
public function cargarayos3_573(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package IPFI_fla
Section 28
//cartel_sin_fondos_340 (IPFI_fla.cartel_sin_fondos_340)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cartel_sin_fondos_340 extends MovieClip {
public function cartel_sin_fondos_340(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package IPFI_fla
Section 29
//casquilloescopetaanim1_410 (IPFI_fla.casquilloescopetaanim1_410)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class casquilloescopetaanim1_410 extends MovieClip {
public function casquilloescopetaanim1_410(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package IPFI_fla
Section 30
//casquillominigunanim1_417 (IPFI_fla.casquillominigunanim1_417)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class casquillominigunanim1_417 extends MovieClip {
public function casquillominigunanim1_417(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package IPFI_fla
Section 31
//casquillominigunanim2_421 (IPFI_fla.casquillominigunanim2_421)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class casquillominigunanim2_421 extends MovieClip {
public function casquillominigunanim2_421(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package IPFI_fla
Section 32
//casquillominigunanim3_422 (IPFI_fla.casquillominigunanim3_422)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class casquillominigunanim3_422 extends MovieClip {
public function casquillominigunanim3_422(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package IPFI_fla
Section 33
//casquillopistolaanim1_396 (IPFI_fla.casquillopistolaanim1_396)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class casquillopistolaanim1_396 extends MovieClip {
public function casquillopistolaanim1_396(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package IPFI_fla
Section 34
//chains1destello_646 (IPFI_fla.chains1destello_646)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class chains1destello_646 extends MovieClip {
public function chains1destello_646(){
addFrameScript(86, frame87);
}
function frame87(){
stop();
}
}
}//package IPFI_fla
Section 35
//chains2destello_648 (IPFI_fla.chains2destello_648)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class chains2destello_648 extends MovieClip {
public function chains2destello_648(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package IPFI_fla
Section 36
//chains3destello_652 (IPFI_fla.chains3destello_652)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class chains3destello_652 extends MovieClip {
public function chains3destello_652(){
addFrameScript(103, frame104);
}
function frame104(){
stop();
}
}
}//package IPFI_fla
Section 37
//character_bars_165 (IPFI_fla.character_bars_165)
package IPFI_fla {
import flash.display.*;
import flash.text.*;
public dynamic class character_bars_165 extends MovieClip {
public var b_paciencia:MovieClip;
public var b_rabia:MovieClip;
public var rabia:TextField;
public var rabia_max:TextField;
public var paciencia_actual:TextField;
public var p_critico:TextField;
public var paciencia:TextField;
public var paciencia_max:TextField;
public var p_dinero:TextField;
public var rabia_actual:TextField;
}
}//package IPFI_fla
Section 38
//character_points_166 (IPFI_fla.character_points_166)
package IPFI_fla {
import flash.display.*;
public dynamic class character_points_166 extends MovieClip {
public var b_sponsor:MovieClip;
public var dinero:MovieClip;
public var puntos:MovieClip;
}
}//package IPFI_fla
Section 39
//cheer1cheerleader_678 (IPFI_fla.cheer1cheerleader_678)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cheer1cheerleader_678 extends MovieClip {
public function cheer1cheerleader_678(){
addFrameScript(55, frame56);
}
function frame56(){
stop();
}
}
}//package IPFI_fla
Section 40
//cheer2cheerleader_683 (IPFI_fla.cheer2cheerleader_683)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cheer2cheerleader_683 extends MovieClip {
public function cheer2cheerleader_683(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package IPFI_fla
Section 41
//cheer3cheerleader_685 (IPFI_fla.cheer3cheerleader_685)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cheer3cheerleader_685 extends MovieClip {
public function cheer3cheerleader_685(){
addFrameScript(110, frame111);
}
function frame111(){
stop();
}
}
}//package IPFI_fla
Section 42
//chispasvarita_963 (IPFI_fla.chispasvarita_963)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class chispasvarita_963 extends MovieClip {
public function chispasvarita_963(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package IPFI_fla
Section 43
//corteH_1_509 (IPFI_fla.corteH_1_509)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class corteH_1_509 extends MovieClip {
public function corteH_1_509(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package IPFI_fla
Section 44
//corteH_508 (IPFI_fla.corteH_508)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class corteH_508 extends MovieClip {
public function corteH_508(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package IPFI_fla
Section 45
//corteL_1_485 (IPFI_fla.corteL_1_485)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class corteL_1_485 extends MovieClip {
public function corteL_1_485(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package IPFI_fla
Section 46
//corteL_484 (IPFI_fla.corteL_484)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class corteL_484 extends MovieClip {
public function corteL_484(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package IPFI_fla
Section 47
//cortelightsaberchispitas_990 (IPFI_fla.cortelightsaberchispitas_990)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cortelightsaberchispitas_990 extends MovieClip {
public function cortelightsaberchispitas_990(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package IPFI_fla
Section 48
//corteM_1_507 (IPFI_fla.corteM_1_507)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class corteM_1_507 extends MovieClip {
public function corteM_1_507(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package IPFI_fla
Section 49
//corteM_1black_728 (IPFI_fla.corteM_1black_728)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class corteM_1black_728 extends MovieClip {
public function corteM_1black_728(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package IPFI_fla
Section 50
//corteM_506 (IPFI_fla.corteM_506)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class corteM_506 extends MovieClip {
public function corteM_506(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package IPFI_fla
Section 51
//corteprimerplano_529 (IPFI_fla.corteprimerplano_529)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class corteprimerplano_529 extends MovieClip {
public function corteprimerplano_529(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package IPFI_fla
Section 52
//cristalesedificio2_544 (IPFI_fla.cristalesedificio2_544)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cristalesedificio2_544 extends MovieClip {
public function cristalesedificio2_544(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 53
//cuerpoH_1_382 (IPFI_fla.cuerpoH_1_382)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cuerpoH_1_382 extends MovieClip {
public function cuerpoH_1_382(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package IPFI_fla
Section 54
//cuerpoH_381 (IPFI_fla.cuerpoH_381)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cuerpoH_381 extends MovieClip {
public function cuerpoH_381(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package IPFI_fla
Section 55
//cuerpoL_368 (IPFI_fla.cuerpoL_368)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cuerpoL_368 extends MovieClip {
public function cuerpoL_368(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 56
//cuerpoM_1_377 (IPFI_fla.cuerpoM_1_377)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cuerpoM_1_377 extends MovieClip {
public function cuerpoM_1_377(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package IPFI_fla
Section 57
//cuerpoM_376 (IPFI_fla.cuerpoM_376)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cuerpoM_376 extends MovieClip {
public function cuerpoM_376(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package IPFI_fla
Section 58
//efectoestrellitas_679 (IPFI_fla.efectoestrellitas_679)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class efectoestrellitas_679 extends MovieClip {
public function efectoestrellitas_679(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package IPFI_fla
Section 59
//ending01_179 (IPFI_fla.ending01_179)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending01_179 extends MovieClip {
public var i:int;
public function ending01_179(){
addFrameScript(93, frame94);
}
function frame94(){
i = (Math.random() * 50);
gotoAndPlay((22 + i));
}
}
}//package IPFI_fla
Section 60
//ending02_182 (IPFI_fla.ending02_182)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending02_182 extends MovieClip {
public function ending02_182(){
addFrameScript(87, frame88);
}
function frame88(){
gotoAndPlay(5);
}
}
}//package IPFI_fla
Section 61
//ending03_184 (IPFI_fla.ending03_184)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending03_184 extends MovieClip {
public function ending03_184(){
addFrameScript(16, frame17);
}
function frame17(){
gotoAndPlay(7);
}
}
}//package IPFI_fla
Section 62
//ending04_186 (IPFI_fla.ending04_186)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending04_186 extends MovieClip {
public function ending04_186(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package IPFI_fla
Section 63
//ending05_190 (IPFI_fla.ending05_190)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending05_190 extends MovieClip {
public function ending05_190(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package IPFI_fla
Section 64
//ending06_193 (IPFI_fla.ending06_193)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending06_193 extends MovieClip {
public function ending06_193(){
addFrameScript(51, frame52);
}
function frame52(){
gotoAndPlay(28);
}
}
}//package IPFI_fla
Section 65
//ending07_196 (IPFI_fla.ending07_196)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending07_196 extends MovieClip {
public function ending07_196(){
addFrameScript(32, frame33);
}
function frame33(){
gotoAndPlay(27);
}
}
}//package IPFI_fla
Section 66
//ending08_198 (IPFI_fla.ending08_198)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending08_198 extends MovieClip {
public function ending08_198(){
addFrameScript(29, frame30);
}
function frame30(){
gotoAndPlay(5);
}
}
}//package IPFI_fla
Section 67
//ending09_199 (IPFI_fla.ending09_199)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending09_199 extends MovieClip {
public function ending09_199(){
addFrameScript(62, frame63);
}
function frame63(){
gotoAndPlay(19);
}
}
}//package IPFI_fla
Section 68
//ending10_204 (IPFI_fla.ending10_204)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending10_204 extends MovieClip {
public function ending10_204(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay(34);
}
}
}//package IPFI_fla
Section 69
//ending11_208 (IPFI_fla.ending11_208)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending11_208 extends MovieClip {
public function ending11_208(){
addFrameScript(179, frame180);
}
function frame180(){
gotoAndPlay(26);
}
}
}//package IPFI_fla
Section 70
//ending12_215 (IPFI_fla.ending12_215)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class ending12_215 extends MovieClip {
public function ending12_215(){
addFrameScript(183, frame184);
}
function frame184(){
gotoAndPlay(110);
}
}
}//package IPFI_fla
Section 71
//estrellita_680 (IPFI_fla.estrellita_680)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class estrellita_680 extends MovieClip {
public function estrellita_680(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package IPFI_fla
Section 72
//explosionaerea_426 (IPFI_fla.explosionaerea_426)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class explosionaerea_426 extends MovieClip {
public function explosionaerea_426(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package IPFI_fla
Section 73
//explosionaereafuego_427 (IPFI_fla.explosionaereafuego_427)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class explosionaereafuego_427 extends MovieClip {
public function explosionaereafuego_427(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package IPFI_fla
Section 74
//explosionmeteorito_904 (IPFI_fla.explosionmeteorito_904)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class explosionmeteorito_904 extends MovieClip {
public function explosionmeteorito_904(){
addFrameScript(124, frame125);
}
function frame125(){
stop();
}
}
}//package IPFI_fla
Section 75
//explosionmisil1_827 (IPFI_fla.explosionmisil1_827)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class explosionmisil1_827 extends MovieClip {
public function explosionmisil1_827(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package IPFI_fla
Section 76
//explosionmisil2_829 (IPFI_fla.explosionmisil2_829)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class explosionmisil2_829 extends MovieClip {
public function explosionmisil2_829(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package IPFI_fla
Section 77
//explosiontierra_824 (IPFI_fla.explosiontierra_824)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class explosiontierra_824 extends MovieClip {
public function explosiontierra_824(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package IPFI_fla
Section 78
//explosiontierrafuego_825 (IPFI_fla.explosiontierrafuego_825)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class explosiontierrafuego_825 extends MovieClip {
public function explosiontierrafuego_825(){
addFrameScript(3, frame4);
}
function frame4(){
stop();
}
}
}//package IPFI_fla
Section 79
//fire1lavaespuma_584 (IPFI_fla.fire1lavaespuma_584)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire1lavaespuma_584 extends MovieClip {
public function fire1lavaespuma_584(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package IPFI_fla
Section 80
//fire1lavafuego_585 (IPFI_fla.fire1lavafuego_585)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire1lavafuego_585 extends MovieClip {
public function fire1lavafuego_585(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package IPFI_fla
Section 81
//fire2garganta_595 (IPFI_fla.fire2garganta_595)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire2garganta_595 extends MovieClip {
public function fire2garganta_595(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package IPFI_fla
Section 82
//fire2hydraojos_593 (IPFI_fla.fire2hydraojos_593)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire2hydraojos_593 extends MovieClip {
public function fire2hydraojos_593(){
addFrameScript(148, frame149);
}
function frame149(){
stop();
}
}
}//package IPFI_fla
Section 83
//fire2preparafuego_594 (IPFI_fla.fire2preparafuego_594)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire2preparafuego_594 extends MovieClip {
public function fire2preparafuego_594(){
addFrameScript(56, frame57);
}
function frame57(){
stop();
}
}
}//package IPFI_fla
Section 84
//fire3cascoteimpacta_617 (IPFI_fla.fire3cascoteimpacta_617)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire3cascoteimpacta_617 extends MovieClip {
public function fire3cascoteimpacta_617(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package IPFI_fla
Section 85
//fire3erupcion_609 (IPFI_fla.fire3erupcion_609)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire3erupcion_609 extends MovieClip {
public function fire3erupcion_609(){
addFrameScript(62, frame63);
}
function frame63(){
stop();
}
}
}//package IPFI_fla
Section 86
//fire3humocascotes_610 (IPFI_fla.fire3humocascotes_610)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire3humocascotes_610 extends MovieClip {
public function fire3humocascotes_610(){
addFrameScript(66, frame67);
}
function frame67(){
stop();
}
}
}//package IPFI_fla
Section 87
//fire3lava2_612 (IPFI_fla.fire3lava2_612)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire3lava2_612 extends MovieClip {
public function fire3lava2_612(){
addFrameScript(65, frame66);
}
function frame66(){
stop();
}
}
}//package IPFI_fla
Section 88
//fire3lavaarrasa_621 (IPFI_fla.fire3lavaarrasa_621)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire3lavaarrasa_621 extends MovieClip {
public function fire3lavaarrasa_621(){
addFrameScript(90, frame91);
}
function frame91(){
stop();
}
}
}//package IPFI_fla
Section 89
//fire3lavaarrasaover_622 (IPFI_fla.fire3lavaarrasaover_622)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire3lavaarrasaover_622 extends MovieClip {
public function fire3lavaarrasaover_622(){
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package IPFI_fla
Section 90
//fire3mikeenlava_600 (IPFI_fla.fire3mikeenlava_600)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fire3mikeenlava_600 extends MovieClip {
public function fire3mikeenlava_600(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package IPFI_fla
Section 91
//fireweapons3aitsoeffectup_430 (IPFI_fla.fireweapons3aitsoeffectup_430)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fireweapons3aitsoeffectup_430 extends MovieClip {
public function fireweapons3aitsoeffectup_430(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package IPFI_fla
Section 92
//fireweapons3aitsorayo3_433 (IPFI_fla.fireweapons3aitsorayo3_433)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fireweapons3aitsorayo3_433 extends MovieClip {
public function fireweapons3aitsorayo3_433(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package IPFI_fla
Section 93
//golpebala_393 (IPFI_fla.golpebala_393)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class golpebala_393 extends MovieClip {
public function golpebala_393(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package IPFI_fla
Section 94
//golpebala2_399 (IPFI_fla.golpebala2_399)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class golpebala2_399 extends MovieClip {
public function golpebala2_399(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package IPFI_fla
Section 95
//golpebala3_402 (IPFI_fla.golpebala3_402)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class golpebala3_402 extends MovieClip {
public function golpebala3_402(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package IPFI_fla
Section 96
//golpebala4_405 (IPFI_fla.golpebala4_405)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class golpebala4_405 extends MovieClip {
public function golpebala4_405(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package IPFI_fla
Section 97
//golpebaladestello_394 (IPFI_fla.golpebaladestello_394)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class golpebaladestello_394 extends MovieClip {
public function golpebaladestello_394(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 98
//golpebaladestello2_400 (IPFI_fla.golpebaladestello2_400)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class golpebaladestello2_400 extends MovieClip {
public function golpebaladestello2_400(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package IPFI_fla
Section 99
//golpebaladestello3_403 (IPFI_fla.golpebaladestello3_403)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class golpebaladestello3_403 extends MovieClip {
public function golpebaladestello3_403(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package IPFI_fla
Section 100
//golpebaladestello4_406 (IPFI_fla.golpebaladestello4_406)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class golpebaladestello4_406 extends MovieClip {
public function golpebaladestello4_406(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package IPFI_fla
Section 101
//hand_941 (IPFI_fla.hand_941)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class hand_941 extends MovieClip {
public function hand_941(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package IPFI_fla
Section 102
//horseespadaataque_933 (IPFI_fla.horseespadaataque_933)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class horseespadaataque_933 extends MovieClip {
public function horseespadaataque_933(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package IPFI_fla
Section 103
//horseespadaataqueinverso_932 (IPFI_fla.horseespadaataqueinverso_932)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class horseespadaataqueinverso_932 extends MovieClip {
public function horseespadaataqueinverso_932(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package IPFI_fla
Section 104
//horseespadabase_926 (IPFI_fla.horseespadabase_926)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class horseespadabase_926 extends MovieClip {
public function horseespadabase_926(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package IPFI_fla
Section 105
//horselanzaataque_931 (IPFI_fla.horselanzaataque_931)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class horselanzaataque_931 extends MovieClip {
public function horselanzaataque_931(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package IPFI_fla
Section 106
//horselanzabase_918 (IPFI_fla.horselanzabase_918)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class horselanzabase_918 extends MovieClip {
public function horselanzabase_918(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package IPFI_fla
Section 107
//horsemikebase_924 (IPFI_fla.horsemikebase_924)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class horsemikebase_924 extends MovieClip {
public function horsemikebase_924(){
addFrameScript(96, frame97);
}
function frame97(){
stop();
}
}
}//package IPFI_fla
Section 108
//impactocuerpoLight_188 (IPFI_fla.impactocuerpoLight_188)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class impactocuerpoLight_188 extends MovieClip {
public function impactocuerpoLight_188(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 109
//introimpact_319 (IPFI_fla.introimpact_319)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class introimpact_319 extends MovieClip {
public function introimpact_319(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 110
//juegobottom_253 (IPFI_fla.juegobottom_253)
package IPFI_fla {
import flash.display.*;
public dynamic class juegobottom_253 extends MovieClip {
public var b_music:MovieClip;
public var b_upgrades:SimpleButton;
public var b_more_games:SimpleButton;
public var b_salir:SimpleButton;
}
}//package IPFI_fla
Section 111
//katana3polvoedificio_536 (IPFI_fla.katana3polvoedificio_536)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class katana3polvoedificio_536 extends MovieClip {
public function katana3polvoedificio_536(){
addFrameScript(192, frame193);
}
function frame193(){
stop();
}
}
}//package IPFI_fla
Section 112
//kick2efecto_387 (IPFI_fla.kick2efecto_387)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class kick2efecto_387 extends MovieClip {
public function kick2efecto_387(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package IPFI_fla
Section 113
//lightning1rayosmanos_554 (IPFI_fla.lightning1rayosmanos_554)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightning1rayosmanos_554 extends MovieClip {
public function lightning1rayosmanos_554(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package IPFI_fla
Section 114
//lightning1trueno_555 (IPFI_fla.lightning1trueno_555)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightning1trueno_555 extends MovieClip {
public function lightning1trueno_555(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package IPFI_fla
Section 115
//lightning2rayosmanos_557 (IPFI_fla.lightning2rayosmanos_557)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightning2rayosmanos_557 extends MovieClip {
public function lightning2rayosmanos_557(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package IPFI_fla
Section 116
//lightsaber1destello_655 (IPFI_fla.lightsaber1destello_655)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightsaber1destello_655 extends MovieClip {
public function lightsaber1destello_655(){
addFrameScript(80, frame81);
}
function frame81(){
stop();
}
}
}//package IPFI_fla
Section 117
//lightsaber2destello_664 (IPFI_fla.lightsaber2destello_664)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightsaber2destello_664 extends MovieClip {
public function lightsaber2destello_664(){
addFrameScript(114, frame115);
}
function frame115(){
stop();
}
}
}//package IPFI_fla
Section 118
//lightsaber3sables_666 (IPFI_fla.lightsaber3sables_666)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightsaber3sables_666 extends MovieClip {
public function lightsaber3sables_666(){
addFrameScript(203, frame204);
}
function frame204(){
stop();
}
}
}//package IPFI_fla
Section 119
//lightsabercorte_656 (IPFI_fla.lightsabercorte_656)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightsabercorte_656 extends MovieClip {
public function lightsabercorte_656(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package IPFI_fla
Section 120
//lightsabercortechispitas_658 (IPFI_fla.lightsabercortechispitas_658)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightsabercortechispitas_658 extends MovieClip {
public function lightsabercortechispitas_658(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package IPFI_fla
Section 121
//lightsaberrastro_671 (IPFI_fla.lightsaberrastro_671)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightsaberrastro_671 extends MovieClip {
public function lightsaberrastro_671(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package IPFI_fla
Section 122
//lightsaberthrow_668 (IPFI_fla.lightsaberthrow_668)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lightsaberthrow_668 extends MovieClip {
public var d4:MovieClip;
public var d8:MovieClip;
public var d2:MovieClip;
public var d5:MovieClip;
public var d6:MovieClip;
public var d7:MovieClip;
public var d9:MovieClip;
public var d3:MovieClip;
public var d10:MovieClip;
public var d11:MovieClip;
public var d12:MovieClip;
public var d1:MovieClip;
public function lightsaberthrow_668(){
addFrameScript(46, frame47);
}
function frame47(){
stop();
}
}
}//package IPFI_fla
Section 123
//maquinachispas_724 (IPFI_fla.maquinachispas_724)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class maquinachispas_724 extends MovieClip {
public function maquinachispas_724(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 124
//maquinaliquidos_725 (IPFI_fla.maquinaliquidos_725)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class maquinaliquidos_725 extends MovieClip {
public function maquinaliquidos_725(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package IPFI_fla
Section 125
//mike_flexion_1018 (IPFI_fla.mike_flexion_1018)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class mike_flexion_1018 extends MovieClip {
public function mike_flexion_1018(){
addFrameScript(2, frame3);
}
function frame3(){
gotoAndStop(1);
}
}
}//package IPFI_fla
Section 126
//mikemainmenu_287 (IPFI_fla.mikemainmenu_287)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class mikemainmenu_287 extends MovieClip {
public function mikemainmenu_287(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package IPFI_fla
Section 127
//mikerompefarola_288 (IPFI_fla.mikerompefarola_288)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class mikerompefarola_288 extends MovieClip {
public function mikerompefarola_288(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package IPFI_fla
Section 128
//newrecordmessages_242 (IPFI_fla.newrecordmessages_242)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class newrecordmessages_242 extends MovieClip {
public var i:int;
public function newrecordmessages_242(){
addFrameScript(0, frame1);
}
function frame1(){
i = (Math.random() * 11);
gotoAndStop((2 + i));
}
}
}//package IPFI_fla
Section 129
//newrecordtext_241 (IPFI_fla.newrecordtext_241)
package IPFI_fla {
import flash.display.*;
public dynamic class newrecordtext_241 extends MovieClip {
public var c_awesome:MovieClip;
}
}//package IPFI_fla
Section 130
//overtime3papelcayendo1_691 (IPFI_fla.overtime3papelcayendo1_691)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class overtime3papelcayendo1_691 extends MovieClip {
public function overtime3papelcayendo1_691(){
addFrameScript(41, frame42);
}
function frame42(){
stop();
}
}
}//package IPFI_fla
Section 131
//palito_681 (IPFI_fla.palito_681)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class palito_681 extends MovieClip {
public function palito_681(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 132
//panel_botonera_252 (IPFI_fla.panel_botonera_252)
package IPFI_fla {
import flash.display.*;
public dynamic class panel_botonera_252 extends MovieClip {
public var b_progreso:MovieClip;
public var botonera:MovieClip;
}
}//package IPFI_fla
Section 133
//panel_botonera_lateral_344 (IPFI_fla.panel_botonera_lateral_344)
package IPFI_fla {
import flash.display.*;
public dynamic class panel_botonera_lateral_344 extends MovieClip {
public var b_specials:MovieClip;
public var b_attacks:MovieClip;
public var b_buffs:MovieClip;
public var b_jugar:SimpleButton;
public var b_stats:MovieClip;
public var b_premium:MovieClip;
}
}//package IPFI_fla
Section 134
//panel_impactos_231 (IPFI_fla.panel_impactos_231)
package IPFI_fla {
import flash.display.*;
public dynamic class panel_impactos_231 extends MovieClip {
public var c_posicion:MovieClip;
}
}//package IPFI_fla
Section 135
//panel_inferior_347 (IPFI_fla.panel_inferior_347)
package IPFI_fla {
import flash.display.*;
import flash.text.*;
public dynamic class panel_inferior_347 extends MovieClip {
public var p_botones_comunes:MovieClip;
public var nombre_skill:TextField;
public var botonera:MovieClip;
}
}//package IPFI_fla
Section 136
//panel_premium_348 (IPFI_fla.panel_premium_348)
package IPFI_fla {
import flash.display.*;
import flash.text.*;
public dynamic class panel_premium_348 extends MovieClip {
public var b_buy_pack_attack:MovieClip;
public var f_go_sponsor:MovieClip;
public var b_sponsor:SimpleButton;
public var b_buy_money1:MovieClip;
public var t_go_sponsor:TextField;
public var b_buy_pack_buffs:MovieClip;
public var b_go_sponsor:SimpleButton;
public var b_buy_pack_all:MovieClip;
public var b_buy_pack_special:MovieClip;
public var p_premium_bloqueado:MovieClip;
}
}//package IPFI_fla
Section 137
//panel_premium_bloqueado_351 (IPFI_fla.panel_premium_bloqueado_351)
package IPFI_fla {
import flash.display.*;
public dynamic class panel_premium_bloqueado_351 extends MovieClip {
public var b_go:SimpleButton;
}
}//package IPFI_fla
Section 138
//panel_puntuacion_232 (IPFI_fla.panel_puntuacion_232)
package IPFI_fla {
import flash.display.*;
import flash.text.*;
public dynamic class panel_puntuacion_232 extends MovieClip {
public var b_reintentar_:SimpleButton;
public var t_score:TextField;
public var b_ranking_:SimpleButton;
public var b_tienda:SimpleButton;
public var b_submit_:SimpleButton;
public var t_coins:TextField;
public var t_record:TextField;
public var p_superior:MovieClip;
public var adBox:adBoxD;
public var p_izquierda:MovieClip;
public var p_derecha:MovieClip;
public var p_inferior:MovieClip;
}
}//package IPFI_fla
Section 139
//panel_stats_353 (IPFI_fla.panel_stats_353)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class panel_stats_353 extends MovieClip {
public var t_critical:TextField;
public var t_money:TextField;
public var t_rage:TextField;
public var t_patience:TextField;
}
}//package IPFI_fla
Section 140
//panel_superior_354 (IPFI_fla.panel_superior_354)
package IPFI_fla {
import flash.display.*;
import flash.text.*;
public dynamic class panel_superior_354 extends MovieClip {
public var b_ranking:SimpleButton;
public var t_coins:TextField;
public var b_medallas:SimpleButton;
public var b_estadisticas:SimpleButton;
}
}//package IPFI_fla
Section 141
//pelicula_sponsor_307 (IPFI_fla.pelicula_sponsor_307)
package IPFI_fla {
import flash.net.*;
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class pelicula_sponsor_307 extends MovieClip {
public var orig_frameRate:Number;
public var scale:Number;
public var _video:MovieClip;
public var orig_align:String;
public var _mgbutton:SimpleButton;
public var tar;
public var orig_scale:String;
public var _background:MovieClip;
public function pelicula_sponsor_307(){
addFrameScript(0, frame1, 96, frame97);
}
function frame97(){
stop();
tar = parent;
tar.play();
stage.frameRate = orig_frameRate;
stage.align = orig_align;
stage.scaleMode = orig_scale;
_mgbutton.removeEventListener(MouseEvent.CLICK, onClick);
dispatchEvent(new Event(Event.COMPLETE));
stop();
}
function frame1(){
_mgbutton.addEventListener(MouseEvent.CLICK, onClick);
orig_frameRate = stage.frameRate;
orig_align = stage.align;
orig_scale = stage.scaleMode;
stage.frameRate = 24;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
_mgbutton.width = stage.stageWidth;
_mgbutton.height = stage.stageHeight;
_background.width = stage.stageWidth;
_background.height = stage.stageHeight;
scale = Math.min((stage.stageWidth / _video.width), (stage.stageHeight / _video.height));
_video.x = Math.floor(((stage.stageWidth - _video.width) / 2));
_video.y = Math.floor(((stage.stageHeight - _video.height) / 2));
}
public function onClick(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.mochigames.com/?utm_source=sponsored_game&utm_medium=splash&utm_content=mike-shadow-i-paid-for-it&utm_campaign=sponsored_game");
navigateToURL(_local2, "_blank");
}
}
}//package IPFI_fla
Section 142
//pelicula_tanoku_324 (IPFI_fla.pelicula_tanoku_324)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class pelicula_tanoku_324 extends MovieClip {
public var cadenaTemp:String;
public var tar;
public var h3:MovieClip;
public function pelicula_tanoku_324(){
addFrameScript(0, frame1, 316, frame317, 317, frame318, 469, frame470);
}
function frame318(){
VariablesGlobales.musicMan.stopAllSounds();
VariablesGlobales.musicaActual = "principal1";
VariablesGlobales.EstadoMusica();
}
function frame317(){
cadenaTemp = ("impacto" + VariablesGlobales.calcularValorAleatorio(1, 4));
trace(cadenaTemp);
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound(cadenaTemp, 1, 0, 0);
};
}
function frame1(){
VariablesGlobales.musicaActual = "ambiente1";
VariablesGlobales.EstadoMusica();
}
function frame470(){
tar = parent;
tar.play();
}
}
}//package IPFI_fla
Section 143
//piedraarcos_653 (IPFI_fla.piedraarcos_653)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class piedraarcos_653 extends MovieClip {
public function piedraarcos_653(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package IPFI_fla
Section 144
//piedradiagonal_513 (IPFI_fla.piedradiagonal_513)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class piedradiagonal_513 extends MovieClip {
public function piedradiagonal_513(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package IPFI_fla
Section 145
//polvo1_371 (IPFI_fla.polvo1_371)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvo1_371 extends MovieClip {
public function polvo1_371(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package IPFI_fla
Section 146
//polvo14_763 (IPFI_fla.polvo14_763)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvo14_763 extends MovieClip {
public function polvo14_763(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package IPFI_fla
Section 147
//polvo15_858 (IPFI_fla.polvo15_858)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvo15_858 extends MovieClip {
public function polvo15_858(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
}
}
}//package IPFI_fla
Section 148
//polvo2_372 (IPFI_fla.polvo2_372)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvo2_372 extends MovieClip {
public function polvo2_372(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package IPFI_fla
Section 149
//polvo3_490 (IPFI_fla.polvo3_490)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvo3_490 extends MovieClip {
public function polvo3_490(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package IPFI_fla
Section 150
//polvo7_458 (IPFI_fla.polvo7_458)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvo7_458 extends MovieClip {
public function polvo7_458(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package IPFI_fla
Section 151
//polvo8_482 (IPFI_fla.polvo8_482)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvo8_482 extends MovieClip {
public function polvo8_482(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package IPFI_fla
Section 152
//polvocompuesto1_370 (IPFI_fla.polvocompuesto1_370)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvocompuesto1_370 extends MovieClip {
public function polvocompuesto1_370(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package IPFI_fla
Section 153
//polvopartetierra_839 (IPFI_fla.polvopartetierra_839)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class polvopartetierra_839 extends MovieClip {
public function polvopartetierra_839(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package IPFI_fla
Section 154
//popup_coste_358 (IPFI_fla.popup_coste_358)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class popup_coste_358 extends MovieClip {
public var info:TextField;
}
}//package IPFI_fla
Section 155
//popup_descripcion_359 (IPFI_fla.popup_descripcion_359)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class popup_descripcion_359 extends MovieClip {
public var coste:TextField;
public var descripcion:TextField;
public var nombre:TextField;
}
}//package IPFI_fla
Section 156
//Preload_3 (IPFI_fla.Preload_3)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class Preload_3 extends MovieClip {
public function Preload_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package IPFI_fla
Section 157
//rangedweapons2arquero_467 (IPFI_fla.rangedweapons2arquero_467)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rangedweapons2arquero_467 extends MovieClip {
public function rangedweapons2arquero_467(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package IPFI_fla
Section 158
//rangedweapons3disparacatapulta_479 (IPFI_fla.rangedweapons3disparacatapulta_479)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rangedweapons3disparacatapulta_479 extends MovieClip {
public function rangedweapons3disparacatapulta_479(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package IPFI_fla
Section 159
//rangedweapons3disparacatstick_480 (IPFI_fla.rangedweapons3disparacatstick_480)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rangedweapons3disparacatstick_480 extends MovieClip {
public function rangedweapons3disparacatstick_480(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package IPFI_fla
Section 160
//rangedweapons3preparacatapulta_477 (IPFI_fla.rangedweapons3preparacatapulta_477)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rangedweapons3preparacatapulta_477 extends MovieClip {
public function rangedweapons3preparacatapulta_477(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package IPFI_fla
Section 161
//rayos1_570 (IPFI_fla.rayos1_570)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rayos1_570 extends MovieClip {
public function rayos1_570(){
addFrameScript(3, frame4);
}
function frame4(){
stop();
}
}
}//package IPFI_fla
Section 162
//rayos2_572 (IPFI_fla.rayos2_572)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rayos2_572 extends MovieClip {
public function rayos2_572(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package IPFI_fla
Section 163
//rayos3_575 (IPFI_fla.rayos3_575)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rayos3_575 extends MovieClip {
public function rayos3_575(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package IPFI_fla
Section 164
//rayoscarga_566 (IPFI_fla.rayoscarga_566)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rayoscarga_566 extends MovieClip {
public function rayoscarga_566(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package IPFI_fla
Section 165
//sacmikerebienta_1009 (IPFI_fla.sacmikerebienta_1009)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sacmikerebienta_1009 extends MovieClip {
public function sacmikerebienta_1009(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package IPFI_fla
Section 166
//sangredinamica1_229 (IPFI_fla.sangredinamica1_229)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sangredinamica1_229 extends MovieClip {
public function sangredinamica1_229(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 167
//sangredinamica2_218 (IPFI_fla.sangredinamica2_218)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sangredinamica2_218 extends MovieClip {
public function sangredinamica2_218(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package IPFI_fla
Section 168
//sangredinamica3_219 (IPFI_fla.sangredinamica3_219)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sangredinamica3_219 extends MovieClip {
public function sangredinamica3_219(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package IPFI_fla
Section 169
//scoresbottom_247 (IPFI_fla.scoresbottom_247)
package IPFI_fla {
import flash.display.*;
public dynamic class scoresbottom_247 extends MovieClip {
public var b_ranking:SimpleButton;
public var b_submit:SimpleButton;
public var b_retry:SimpleButton;
}
}//package IPFI_fla
Section 170
//scoresleft_243 (IPFI_fla.scoresleft_243)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class scoresleft_243 extends MovieClip {
public var t_buffs:TextField;
public var c_time:TextField;
public var t_hits:TextField;
public var c_specials:TextField;
public var t_specials:TextField;
public var c_attacks:TextField;
public var t_attacks:TextField;
public var t_critic:TextField;
public var c_buffs:TextField;
public var c_hits:TextField;
public var t_time:TextField;
public var c_critic:TextField;
}
}//package IPFI_fla
Section 171
//scoresright_238 (IPFI_fla.scoresright_238)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class scoresright_238 extends MovieClip {
public var c_coins_total:TextField;
public var t_score:TextField;
public var c_coins:TextField;
public var c_best:TextField;
public var t_coins:TextField;
public var t_coins_total:TextField;
public var t_record:TextField;
public var f_score:MovieClip;
public var c_record:MovieClip;
public var c_score:TextField;
public var t_best:TextField;
}
}//package IPFI_fla
Section 172
//scorestop_244 (IPFI_fla.scorestop_244)
package IPFI_fla {
import flash.display.*;
public dynamic class scorestop_244 extends MovieClip {
public var b_sponsor:SimpleButton;
}
}//package IPFI_fla
Section 173
//sword1effectembestida_510 (IPFI_fla.sword1effectembestida_510)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sword1effectembestida_510 extends MovieClip {
public function sword1effectembestida_510(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package IPFI_fla
Section 174
//sword1trazo_505 (IPFI_fla.sword1trazo_505)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sword1trazo_505 extends MovieClip {
public function sword1trazo_505(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package IPFI_fla
Section 175
//sword2trazadas_512 (IPFI_fla.sword2trazadas_512)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sword2trazadas_512 extends MovieClip {
public function sword2trazadas_512(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package IPFI_fla
Section 176
//sword3embestida1_521 (IPFI_fla.sword3embestida1_521)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sword3embestida1_521 extends MovieClip {
public function sword3embestida1_521(){
addFrameScript(66, frame67);
}
function frame67(){
stop();
}
}
}//package IPFI_fla
Section 177
//sword3embestida2_522 (IPFI_fla.sword3embestida2_522)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sword3embestida2_522 extends MovieClip {
public function sword3embestida2_522(){
addFrameScript(58, frame59);
}
function frame59(){
stop();
}
}
}//package IPFI_fla
Section 178
//sword3embestida3_523 (IPFI_fla.sword3embestida3_523)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sword3embestida3_523 extends MovieClip {
public function sword3embestida3_523(){
addFrameScript(55, frame56);
}
function frame56(){
stop();
}
}
}//package IPFI_fla
Section 179
//sword3embestida4_524 (IPFI_fla.sword3embestida4_524)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sword3embestida4_524 extends MovieClip {
public function sword3embestida4_524(){
addFrameScript(52, frame53);
}
function frame53(){
stop();
}
}
}//package IPFI_fla
Section 180
//sword3embestida5_525 (IPFI_fla.sword3embestida5_525)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class sword3embestida5_525 extends MovieClip {
public function sword3embestida5_525(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package IPFI_fla
Section 181
//thorrayitos_972 (IPFI_fla.thorrayitos_972)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class thorrayitos_972 extends MovieClip {
public function thorrayitos_972(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package IPFI_fla
Section 182
//tubosverdes1_723 (IPFI_fla.tubosverdes1_723)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class tubosverdes1_723 extends MovieClip {
public function tubosverdes1_723(){
addFrameScript(41, frame42);
}
function frame42(){
stop();
}
}
}//package IPFI_fla
Section 183
//tubosverdes2_722 (IPFI_fla.tubosverdes2_722)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class tubosverdes2_722 extends MovieClip {
public function tubosverdes2_722(){
addFrameScript(41, frame42);
}
function frame42(){
stop();
}
}
}//package IPFI_fla
Section 184
//value_cash_167 (IPFI_fla.value_cash_167)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class value_cash_167 extends MovieClip {
public var info:TextField;
}
}//package IPFI_fla
Section 185
//value_score_168 (IPFI_fla.value_score_168)
package IPFI_fla {
import flash.text.*;
import flash.display.*;
public dynamic class value_score_168 extends MovieClip {
public var info:TextField;
}
}//package IPFI_fla
Section 186
//water3tsunamiacercarayas_644 (IPFI_fla.water3tsunamiacercarayas_644)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class water3tsunamiacercarayas_644 extends MovieClip {
public function water3tsunamiacercarayas_644(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package IPFI_fla
Section 187
//VCam_AS3_144 (IPFI_fla.VCam_AS3_144)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class VCam_AS3_144 extends MovieClip {
public var sw:Number;
public var sh:Number;
public var camH:Number;
public var camW:Number;
public function VCam_AS3_144(){
addFrameScript(0, frame1);
}
public function init():void{
var _local1:Object;
removeEventListener(Event.ADDED_TO_STAGE, onAdded);
_local1 = this.getBounds(this);
camH = _local1.height;
camW = _local1.width;
sh = stage.stageHeight;
sw = stage.stageWidth;
addEventListener(Event.REMOVED_FROM_STAGE, reset, false, 0, true);
addEventListener(Event.ENTER_FRAME, onFrame, false, 0, true);
dispatchEvent(new Event(Event.ENTER_FRAME));
}
public function onAdded(_arg1:Event):void{
init();
}
public function reset(_arg1:Event):void{
var _local2:Matrix;
var _local3:ColorTransform;
removeEventListener(Event.ENTER_FRAME, onFrame);
removeEventListener(Event.REMOVED_FROM_STAGE, reset);
_local2 = new Matrix();
parent.transform.matrix = _local2;
parent.filters = [];
_local3 = new ColorTransform();
parent.transform.colorTransform = _local3;
}
function frame1(){
mouseEnabled = false;
mouseChildren = false;
visible = false;
if (!(stage)){
addEventListener(Event.ADDED_TO_STAGE, onAdded, false, 0, true);
} else {
init();
};
}
public function onFrame(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Matrix;
if (((!(parent)) || (!(stage)))){
return;
};
_local2 = (camH * scaleY);
_local3 = (camW * scaleX);
_local4 = (sh / _local2);
_local5 = (sw / _local3);
_local6 = this.transform.matrix.clone();
_local6.invert();
_local6.scale(scaleX, scaleY);
_local6.translate((_local3 / 2), (_local2 / 2));
_local6.scale(_local5, _local4);
parent.transform.matrix = _local6;
parent.transform.colorTransform = this.transform.colorTransform;
parent.filters = this.filters;
}
}
}//package IPFI_fla
Section 188
//wizarddisparovaritadestello_962 (IPFI_fla.wizarddisparovaritadestello_962)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class wizarddisparovaritadestello_962 extends MovieClip {
public function wizarddisparovaritadestello_962(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package IPFI_fla
Section 189
//zombiecae_217 (IPFI_fla.zombiecae_217)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class zombiecae_217 extends MovieClip {
public function zombiecae_217(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package IPFI_fla
Section 190
//zombiechofhead_220 (IPFI_fla.zombiechofhead_220)
package IPFI_fla {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class zombiechofhead_220 extends MovieClip {
public function zombiechofhead_220(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package IPFI_fla
Section 191
//MochiAd (mochi.as3.MochiAd)
package mochi.as3 {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
public class MochiAd {
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:5500, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = _slot1._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!(_slot1.load(options))){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
_slot1._cleanup(mc);
options.ad_finished();
};
wh = _slot1._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
_slot1.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!(this.parent)){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!(chk.showing)){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType == "application"){
return (_local2);
};
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!(_arg1._mochiad)){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:5500, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = _slot1._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!(_slot1.load(options))){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
_slot1._cleanup(mc);
options.ad_finished();
};
wh = _slot1._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!(this.parent)){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
_slot1.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
_slot1.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!(this.parent)){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!(chk.showing)){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
_slot1.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _slot1._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = _slot1.getVersion();
clip = options.clip;
if (!((clip is DisplayObject))){
trace("Warning: Object passed as container clip not a descendant of the DisplayObject type");
return (null);
};
if (MovieClip(clip).stage == null){
trace("Warning: Container clip for ad is not attached to the stage");
return (null);
};
if (!(_slot1._isNetworkAvailable())){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = _slot1._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
} else {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!((v is Function))){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
_slot1.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
trace("[MochiAds] Blocked URL");
});
if (!(options.skip)){
loader.load(req);
};
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.right - _local3.left);
_local5 = (_local3.top - _local3.bottom);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
_slot1.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = _slot1.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = _slot1.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_w:Number;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var progress:Number;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:5500, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}, progress_override:function (_arg1:Object):Number{
return (NaN);
}, bar_offset:0};
options = _slot1._parseOptions(options, DEFAULTS);
if ("dfeada81ac97cde83665f81c12da7def".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
if (options.skip){
ad_timeout = 0;
};
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!(_slot1.load(options))){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
_slot1._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = _slot1._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = (10 + options.bar_offset);
bar.y = (h - 20);
};
bar_w = ((w - bar.x) - 10);
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(bar_w, 0);
backing.lineTo(bar_w, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(bar_w, 0);
inside.lineTo(bar_w, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(bar_w, 0);
outline.lineTo(bar_w, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
_slot1.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
progress = Math.min(1, options.progress_override(clip));
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
_slot1.unload(clip);
};
};
if (!(isNaN(progress))){
complete = (progress == 1);
} else {
if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){
complete = true;
} else {
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
_slot1.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Object;
var _local11:Number;
var _local12:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
_local7 = Math.min(1, options.progress_override(_local1));
if (_local7 == 1){
complete = true;
};
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local8 = ((100 * _local6) / _local5);
if (!(isNaN(_local7))){
_local8 = (100 * _local7);
};
_local9 = ((100 * _local3) / chk.ad_msec);
_local10 = this._mochiad_bar._inside;
_local11 = Math.min(100, Math.min(((_local8) || (0)), _local9));
_local11 = Math.max(this.last_pcnt, _local11);
this.last_pcnt = _local11;
_local10.scaleX = (_local11 * 0.01);
options.ad_progress(_local11);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local8});
if (_local8 >= 100){
sendHostProgress = false;
};
};
if (!(chk.showing)){
_local12 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local12 > 0){
chk.showing = true;
chk.started = getTimer();
_slot1.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local8 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (unloaded){
_slot1.unload(_local1);
} else {
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
_slot1.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
_slot1.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package mochi.as3
Section 192
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const NO_USER:String = "NoUser";
public static const IO_ERROR:String = "IOError";
public static const ITEM_NEW:String = "ItemNew";
public static const ITEM_OWNED:String = "ItemOwned";
public static const STORE_ITEMS:String = "StoreItems";
public static const ERROR:String = "Error";
public static const STORE_SHOW:String = "StoreShow";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _inventory:MochiInventory;
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function get inventory():MochiInventory{
return (_inventory);
}
public static function showStore(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function requestFunding(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestFunding", _arg1);
}
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showItem call must pass an Object with an item key");
return;
};
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showVideo call must pass an Object with an item key");
return;
};
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_inventory = new MochiInventory();
});
addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_inventory = null;
});
}
}//package mochi.as3
Section 193
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 194
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
eventTable = {};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
return;
};
for (_local3 in eventTable[_arg1]) {
var _local6 = eventTable[_arg1];
_local6[_local3](_arg2);
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
eventTable[_arg1] = [];
return;
};
for (_local3 in eventTable[_arg1]) {
if (eventTable[_arg1][_local3] != _arg2){
} else {
eventTable[_arg1].splice(Number(_local3), 1);
};
};
}
public function addEventListener(_arg1:String, _arg2:Function):void{
removeEventListener(_arg1, _arg2);
eventTable[_arg1].push(_arg2);
}
}
}//package mochi.as3
Section 195
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const FORMAT_LONG:String = "LongForm";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const FORMAT_SHORT:String = "ShortForm";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_CENTER:String = "ALIGN_C";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var gameStart:Number;
private static var levelStart:Number;
public static function endPlay():void{
MochiServices.send("events_clearRoundID", null, null, null);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function trackEvent(_arg1:String, _arg2=null):void{
MochiServices.send("events_trackEvent", {tag:_arg1, value:_arg2}, null, null);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function startSession(_arg1:String):void{
MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{
var _local3:Object;
var _local4:Object;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startPlay(_arg1:String="gameplay"):void{
MochiServices.send("events_setRoundID", {tag:String(_arg1)}, null, null);
}
}
}//package mochi.as3
Section 196
//MochiInventory (mochi.as3.MochiInventory)
package mochi.as3 {
import flash.utils.*;
import flash.events.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _names:Array;
private var _consumableProperties:Object;
private var _syncID:Number;
private var _storeSync:Object;
private var _outstandingID:Number;
private var _syncPending:Boolean;
public static const READY:String = "InvReady";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IoError";
private static const KEY_SALT:String = " syncMaint";
public static const WRITTEN:String = "InvWritten";
public static const NOT_READY:String = "InvNotReady";
public static const VALUE_ERROR:String = "InvValueError";
private static const CONSUMER_KEY:String = "MochiConsumables";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public function MochiInventory():void{
MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned);
MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut);
_storeSync = new Object();
_syncPending = false;
_outstandingID = 0;
_syncID = 0;
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, sync);
_timer.start();
if (MochiSocial.loggedIn){
loggedIn();
} else {
loggedOut();
};
}
private function newItems(_arg1:Object):void{
if (!(this[(_arg1.id + KEY_SALT)])){
this[(_arg1.id + KEY_SALT)] = 0;
};
if (!(this[_arg1.id])){
this[_arg1.id] = 0;
};
this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count);
this[_arg1.id] = (this[_arg1.id] + _arg1.count);
if (((_arg1.privateProperties) && (_arg1.privateProperties.consumable))){
if (!(this[_arg1.privateProperties.tag])){
this[_arg1.privateProperties.tag] = 0;
};
this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count));
};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[_arg1]){
return (MochiDigits(_consumableProperties[_arg1]).value);
};
return (undefined);
}
public function release():void{
MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (false);
};
if (_consumableProperties[_arg1] == undefined){
return (false);
};
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{
return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1));
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:MochiDigits;
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return;
};
if (!((_arg2 is Number))){
triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2});
return;
};
if (_consumableProperties[_arg1]){
_local3 = MochiDigits(_consumableProperties[_arg1]);
if (_local3.value == _arg2){
return;
};
_local3.value = _arg2;
} else {
_names.push(_arg1);
_consumableProperties[_arg1] = new MochiDigits(_arg2);
};
_syncID++;
}
private function sync(_arg1:Event=null):void{
var _local2:Object;
var _local3:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
_local2 = {};
for (_local3 in _consumableProperties) {
_local2[_local3] = MochiDigits(_consumableProperties[_local3]).value;
};
MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag);
_syncPending = true;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{
return (_names[(_arg1 - 1)]);
}
private function loggedIn(_arg1:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{
if (!(_consumableProperties[_arg1])){
return (false);
};
_names.splice(_names.indexOf(_arg1), 1);
delete _consumableProperties[_arg1];
return (true);
}
private function itemOwned(_arg1:Object):void{
_storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count};
}
private function putConsumableBag(_arg1:MochiUserData):void{
_syncPending = false;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
private function getConsumableBag(_arg1:MochiUserData):void{
var _local2:String;
var _local3:Number;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
return;
};
_consumableProperties = {};
_names = new Array();
if (_arg1.data){
for (_local2 in _arg1.data) {
_names.push(_local2);
_consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]);
};
};
for (_local2 in _storeSync) {
_local3 = _storeSync[_local2].count;
if (_consumableProperties[(_local2 + KEY_SALT)]){
_local3 = (_local3 - _consumableProperties[(_local2 + KEY_SALT)].value);
};
if (_local3 == 0){
} else {
newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties});
};
};
triggerEvent(READY, {});
}
private function loggedOut(_arg1:Object=null):void{
_consumableProperties = null;
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
}
}//package mochi.as3
Section 197
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
delete options.clip;
MochiServices.setContainer();
MochiServices.bringToTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (_slot1.boardID != null){
options.boardID = _slot1.boardID;
};
};
MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (((((_arg1) && ((_arg1.error == true)))) && (onErrorHandler))){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiServices.warnID(_arg1, true);
_slot1.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 198
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.system.*;
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
public class MochiServices {
public static const CONNECTED:String = "onConnected";
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _queue:Array;
private static var _swfVersion:String;
private static var _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
private static var _nextCallbackID:Number;
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _services:String = "services.swf";
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var _callbacks:Object;
private static var _connecting:Boolean = false;
private static var _mochiLocalConnection:MovieClip;
private static var _listenChannelName:String = "__ms_";
public static var onError:Object;
public static var netup:Boolean = true;
private static var _mochiLC:String = "MochiLC.swf";
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function onReceive(_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = _callbacks[cb];
if (!(cblst)){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete _callbacks[cb];
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_nextCallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_queue.push({methodName:_arg1, args:_arg2, callbackID:_nextCallbackID});
};
if (_clip != null){
if (_callbacks != null){
_callbacks[_nextCallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_nextCallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local3:Array;
var _local4:int;
var _local5:Array;
var _local6:Array;
var _local7:MovieClip;
var _local8:LocalConnection;
var _local9:String;
var _local10:ByteArray;
var _local11:ByteArray;
var _local12:uint;
var _local13:uint;
var _local14:Loader;
_local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
_local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
_local6 = [0, 64, 0, 0, 0];
_local7 = new MovieClip();
_local8 = new LocalConnection();
_local9 = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
_local10 = new ByteArray();
_local11 = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
_local12 = ((_local3.length + _local11.length) + 4);
_local13 = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
private static function detach(_arg1:Event):void{
var _local2:LoaderInfo;
_local2 = LoaderInfo(_arg1.target);
_local2.removeEventListener(Event.COMPLETE, detach);
_local2.removeEventListener(IOErrorEvent.IO_ERROR, detach);
_local2.removeEventListener(Event.COMPLETE, loadLCBridgeComplete);
_local2.removeEventListener(IOErrorEvent.IO_ERROR, loadError);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, _slot1.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
private static function loadLCBridgeComplete(_arg1:Event):void{
var _local2:Loader;
_local2 = LoaderInfo(_arg1.target).loader;
_mochiLocalConnection = MovieClip(_local2.content);
listen();
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_mochiLocalConnection.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, connectWait);
_timer = null;
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.9.2 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, _slot1.bringToTop);
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
var _local3:Number;
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
_local3 = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
return;
};
_local3++;
};
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_queue))){
while (_queue.length > 0) {
_local2 = _queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _callbacks[_local2.callbackID];
};
delete _callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
}
public static function get id():String{
return (_id);
}
private static function onEvent(_arg1:Object):void{
var _local2:String;
var _local3:String;
_local2 = _arg1.target;
_local3 = _arg1.event;
switch (_local2){
case "services":
_slot1.triggerEvent(_arg1.event, _arg1.args);
break;
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "social":
MochiSocial.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
private static function urlOptions(_arg1:Object):Object{
var _local2:Object;
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
_local2 = {};
if (_arg1.stage){
_local3 = _arg1.stage.loaderInfo.parameters.mochiad_options;
} else {
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
};
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
vars = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
s = "?";
i = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://link.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
var _local2:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
_local2 = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!(((netupAttempted) || (_connected)))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_clip.parent){
_clip.parent.removeChild(_clip);
};
if (_arg1 != null){
if ((_arg1 is DisplayObjectContainer)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is DisplayObjectContainer)){
DisplayObjectContainer(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function loadError(_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
_slot1.disconnect();
_slot1.onError("IOError");
}
public static function get childClip():Object{
return (_clip);
}
private static function initComChannels():void{
if (!(_connected)){
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
_slot1.onError("IOError");
};
while (_queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _queue.shift());
};
};
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
_slot1.comChannelName = _arg1.newChannel;
};
trace("Waiting for MochiAds services to connect...");
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
private static function loadLCBridge(_arg1:Object):void{
var _local2:Loader;
var _local3:String;
var _local4:URLRequest;
_local2 = new Loader();
_local3 = (_servURL + _mochiLC);
_local4 = new URLRequest(_local3);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, detach);
_local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, loadLCBridgeComplete);
_local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
_local2.load(_local4);
_arg1.addChild(_local2);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var _local3:String;
var _local4:URLRequest;
var _local5:URLVariables;
if (_clip != null){
return (_clip);
};
if (!(_slot1.isNetworkAvailable())){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
_local3 = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local3 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
_slot1.allowDomains(_local3);
_clip = new MovieClip();
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, detach);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
_local4 = new URLRequest(_local3);
_local5 = new URLVariables();
_local5.listenLC = _listenChannelName;
_local5.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local5.api_version = getVersion();
if (widget){
_local5.widget = true;
};
_local4.data = _local5;
_loader.load(_local4);
_clip.addChild(_loader);
_sendChannel = new LocalConnection();
_queue = [];
_nextCallbackID = 0;
_callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function get clip():Object{
return (_container);
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (clip.stage == null){
trace("MochiServices connect requires the containing clip be attached to the stage");
};
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
_slot1.onError = onError;
} else {
if (_slot1.onError == null){
_slot1.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((_slot1.clip == null))) && (!((_slot1.childClip == null))))){
try {
if (_slot1.clip.numChildren > 1){
_slot1.clip.setChildIndex(_slot1.childClip, (_slot1.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, _slot1.bringToTop);
};
};
}
public static function connectWait(_arg1:TimerEvent):void{
if (!(_connected)){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
_slot1.disconnect();
_slot1.onError("IOError");
} else {
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, connectWait);
_timer = null;
};
}
}
}//package mochi.as3
Section 199
//MochiSocial (mochi.as3.MochiSocial)
package mochi.as3 {
public class MochiSocial {
public static const LOGGED_IN:String = "LoggedIn";
public static const ACTION_CANCELED:String = "onCancel";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const IO_ERROR:String = "IOError";
public static const NO_USER:String = "NoUser";
public static const FRIEND_LIST:String = "FriendsList";
public static const PROFILE_DATA:String = "ProfileData";
public static const GAMEPLAY_DATA:String = "GameplayData";
public static const ACTION_COMPLETE:String = "onComplete";
public static const LOGIN_SHOW:String = "LoginShow";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const USER_INFO:String = "UserInfo";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const ERROR:String = "Error";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_HIDE:String = "LoginHide";
public static const LOGIN_SHOWN:String = "LoginShown";
public static var _user_info:Object = null;
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static function requestFan(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestFan", _arg1);
}
public static function postToStream(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_postToStream", _arg1);
}
public static function getFriendsList(_arg1:Object=null):void{
MochiServices.send("social_getFriendsList", _arg1);
}
public static function requestLogin(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestLogin", _arg1);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("social_saveUserProperties", _arg1);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function inviteFriends(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_inviteFriends", _arg1);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_showLoginWidget", {options:_arg1});
}
public static function getAPIURL():String{
if (!(_user_info)){
return (null);
};
return (_user_info.api_url);
}
public static function hideLoginWidget():void{
MochiServices.send("social_hideLoginWidget");
}
public static function getAPIToken():String{
if (!(_user_info)){
return (null);
};
return (_user_info.api_token);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_user_info = _arg1;
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_user_info = null;
});
}
}//package mochi.as3
Section 200
//MochiUserData (mochi.as3.MochiUserData)
package mochi.as3 {
import flash.utils.*;
import flash.net.*;
import flash.events.*;
public class MochiUserData extends EventDispatcher {
public var callback:Function;// = null
public var error:Event;// = null
public var key:String;// = null
public var operation:String;// = null
public var data;// = null
public var _loader:URLLoader;
public function MochiUserData(_arg1:String="", _arg2:Function=null){
key = null;
data = null;
error = null;
operation = null;
callback = null;
super();
this.key = _arg1;
this.callback = _arg2;
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString())));
}
public function putEvent(_arg1):void{
request("put", serialize(_arg1));
}
public function request(_arg1:String, _arg2:ByteArray):void{
var api_url:String;
var api_token:String;
var args:URLVariables;
var req:URLRequest;
var _operation = _arg1;
var _data = _arg2;
operation = _operation;
api_url = MochiSocial.getAPIURL();
api_token = MochiSocial.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
args = new URLVariables();
args.op = _operation;
args.key = key;
req = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString()));
req.method = URLRequestMethod.POST;
req.contentType = "application/x-mochi-userdata";
req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)];
req.data = _data;
_loader.dataFormat = URLLoaderDataFormat.BINARY;
_loader.addEventListener(Event.COMPLETE, completeHandler);
_loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
try {
_loader.load(req);
} catch(e:SecurityError) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString())));
};
}
public function completeHandler(_arg1:Event):void{
var event = _arg1;
try {
if (_loader.data.length){
data = deserialize(_loader.data);
} else {
data = null;
};
} catch(e:Error) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString())));
return;
};
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function performCallback():void{
try {
callback(this);
} catch(e:Error) {
trace(("[MochiUserData] exception during callback: " + e));
};
}
public function serialize(_arg1):ByteArray{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.objectEncoding = ObjectEncoding.AMF3;
_local2.writeObject(_arg1);
_local2.compress();
return (_local2);
}
public function errorHandler(_arg1:IOErrorEvent):void{
data = null;
error = _arg1;
if (callback != null){
performCallback();
} else {
dispatchEvent(_arg1);
};
close();
}
public function getEvent():void{
request("get", serialize(null));
}
override public function toString():String{
return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]"));
}
public function close():void{
if (_loader){
_loader.removeEventListener(Event.COMPLETE, completeHandler);
_loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.close();
_loader = null;
};
error = null;
callback = null;
}
public function deserialize(_arg1:ByteArray){
_arg1.objectEncoding = ObjectEncoding.AMF3;
_arg1.uncompress();
return (_arg1.readObject());
}
public static function get(_arg1:String, _arg2:Function):void{
var _local3:MochiUserData;
_local3 = new MochiUserData(_arg1, _arg2);
_local3.getEvent();
}
public static function put(_arg1:String, _arg2, _arg3:Function):void{
var _local4:MochiUserData;
_local4 = new MochiUserData(_arg1, _arg3);
_local4.putEvent(_arg2);
}
}
}//package mochi.as3
Section 201
//Encode (Playtomic.Encode)
package Playtomic {
import flash.utils.*;
import flash.display.*;
public class Encode {
private static const BASE64_CHARS:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
private static var crcTableComputed:Boolean = false;
private static var hex_chr:String = "0123456789abcdef";
private static var crcTable:Array;
private static function ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (cmn(bitOR(bitAND(_arg2, _arg3), bitAND(~(_arg2), _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private static function hh(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (cmn(bitXOR(bitXOR(_arg2, _arg3), _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private static function cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (addme(rol(addme(addme(_arg2, _arg1), addme(_arg4, _arg6)), _arg5), _arg3));
}
private static function gg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (cmn(bitOR(bitAND(_arg2, _arg4), bitAND(_arg3, ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private static function bitAND(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 1) & (_arg2 & 1));
_local4 = ((_arg1 >>> 1) & (_arg2 >>> 1));
return (((_local4 << 1) | _local3));
}
private static function writeChunk(_arg1:ByteArray, _arg2:uint, _arg3:ByteArray):void{
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:int;
var _local8:uint;
var _local9:uint;
var _local10:uint;
if (!(crcTableComputed)){
crcTableComputed = true;
crcTable = [];
_local9 = 0;
while (_local9 < 0x0100) {
_local8 = _local9;
_local10 = 0;
while (_local10 < 8) {
if ((_local8 & 1)){
_local8 = uint((uint(3988292384) ^ uint((_local8 >>> 1))));
} else {
_local8 = uint((_local8 >>> 1));
};
_local10++;
};
crcTable[_local9] = _local8;
_local9++;
};
};
_local4 = 0;
if (_arg3 != null){
_local4 = _arg3.length;
};
_arg1.writeUnsignedInt(_local4);
_local5 = _arg1.position;
_arg1.writeUnsignedInt(_arg2);
if (_arg3 != null){
_arg1.writeBytes(_arg3);
};
_local6 = _arg1.position;
_arg1.position = _local5;
_local8 = 4294967295;
_local7 = 0;
while (_local7 < (_local6 - _local5)) {
_local8 = uint((crcTable[((_local8 ^ _arg1.readUnsignedByte()) & uint(0xFF))] ^ uint((_local8 >>> 8))));
_local7++;
};
_local8 = uint((_local8 ^ uint(4294967295)));
_arg1.position = _local6;
_arg1.writeUnsignedInt(_local8);
}
public static function Base64(_arg1:ByteArray):String{
var _local2:String;
var _local3:Array;
var _local4:Array;
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local2 = "";
_local4 = new Array(4);
_arg1.position = 0;
while (_arg1.bytesAvailable > 0) {
_local3 = new Array();
_local5 = 0;
while ((((_local5 < 3)) && ((_arg1.bytesAvailable > 0)))) {
_local3[_local5] = _arg1.readUnsignedByte();
_local5++;
};
_local4[0] = ((_local3[0] & 252) >> 2);
_local4[1] = (((_local3[0] & 3) << 4) | (_local3[1] >> 4));
_local4[2] = (((_local3[1] & 15) << 2) | (_local3[2] >> 6));
_local4[3] = (_local3[2] & 63);
_local6 = _local3.length;
while (_local6 < 3) {
_local4[(_local6 + 1)] = 64;
_local6++;
};
_local7 = 0;
while (_local7 < _local4.length) {
_local2 = (_local2 + BASE64_CHARS.charAt(_local4[_local7]));
_local7++;
};
};
return (_local2);
}
public static function PNG(_arg1:BitmapData):ByteArray{
var _local2:ByteArray;
var _local3:ByteArray;
var _local4:ByteArray;
var _local5:uint;
var _local6:int;
var _local7:int;
_local2 = new ByteArray();
_local2.writeUnsignedInt(2303741511);
_local2.writeUnsignedInt(218765834);
_local3 = new ByteArray();
_local3.writeInt(_arg1.width);
_local3.writeInt(_arg1.height);
_local3.writeUnsignedInt(134610944);
_local3.writeByte(0);
writeChunk(_local2, 1229472850, _local3);
_local4 = new ByteArray();
_local7 = 0;
while (_local7 < _arg1.height) {
_local4.writeByte(0);
if (!(_arg1.transparent)){
_local6 = 0;
while (_local6 < _arg1.width) {
_local5 = _arg1.getPixel(_local6, _local7);
_local4.writeUnsignedInt(uint((((_local5 & 0xFFFFFF) << 8) | 0xFF)));
_local6++;
};
} else {
_local6 = 0;
while (_local6 < _arg1.width) {
_local5 = _arg1.getPixel32(_local6, _local7);
_local4.writeUnsignedInt(uint((((_local5 & 0xFFFFFF) << 8) | (_local5 >>> 24))));
_local6++;
};
};
_local7++;
};
_local4.compress();
writeChunk(_local2, 1229209940, _local4);
writeChunk(_local2, 1229278788, null);
return (_local2);
}
private static function ii(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (cmn(bitXOR(_arg3, bitOR(_arg2, ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private static function rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
private static function bitOR(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 1) | (_arg2 & 1));
_local4 = ((_arg1 >>> 1) | (_arg2 >>> 1));
return (((_local4 << 1) | _local3));
}
private static function rhex(_arg1:Number):String{
var _local2:String;
var _local3:int;
_local2 = "";
_local3 = 0;
while (_local3 <= 3) {
_local2 = (_local2 + (hex_chr.charAt(((_arg1 >> ((_local3 * 8) + 4)) & 15)) + hex_chr.charAt(((_arg1 >> (_local3 * 8)) & 15))));
_local3++;
};
return (_local2);
}
private static function addme(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
private static function bitXOR(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 1) ^ (_arg2 & 1));
_local4 = ((_arg1 >>> 1) ^ (_arg2 >>> 1));
return (((_local4 << 1) | _local3));
}
public static function MD5(_arg1:String):String{
var _local2:Array;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_local2 = str2blks_MD5(_arg1);
_local3 = 1732584193;
_local4 = -271733879;
_local5 = -1732584194;
_local6 = 271733878;
_local7 = 0;
while (_local7 < _local2.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = ff(_local3, _local4, _local5, _local6, _local2[(_local7 + 0)], 7, -680876936);
_local6 = ff(_local6, _local3, _local4, _local5, _local2[(_local7 + 1)], 12, -389564586);
_local5 = ff(_local5, _local6, _local3, _local4, _local2[(_local7 + 2)], 17, 606105819);
_local4 = ff(_local4, _local5, _local6, _local3, _local2[(_local7 + 3)], 22, -1044525330);
_local3 = ff(_local3, _local4, _local5, _local6, _local2[(_local7 + 4)], 7, -176418897);
_local6 = ff(_local6, _local3, _local4, _local5, _local2[(_local7 + 5)], 12, 1200080426);
_local5 = ff(_local5, _local6, _local3, _local4, _local2[(_local7 + 6)], 17, -1473231341);
_local4 = ff(_local4, _local5, _local6, _local3, _local2[(_local7 + 7)], 22, -45705983);
_local3 = ff(_local3, _local4, _local5, _local6, _local2[(_local7 + 8)], 7, 1770035416);
_local6 = ff(_local6, _local3, _local4, _local5, _local2[(_local7 + 9)], 12, -1958414417);
_local5 = ff(_local5, _local6, _local3, _local4, _local2[(_local7 + 10)], 17, -42063);
_local4 = ff(_local4, _local5, _local6, _local3, _local2[(_local7 + 11)], 22, -1990404162);
_local3 = ff(_local3, _local4, _local5, _local6, _local2[(_local7 + 12)], 7, 1804603682);
_local6 = ff(_local6, _local3, _local4, _local5, _local2[(_local7 + 13)], 12, -40341101);
_local5 = ff(_local5, _local6, _local3, _local4, _local2[(_local7 + 14)], 17, -1502002290);
_local4 = ff(_local4, _local5, _local6, _local3, _local2[(_local7 + 15)], 22, 1236535329);
_local3 = gg(_local3, _local4, _local5, _local6, _local2[(_local7 + 1)], 5, -165796510);
_local6 = gg(_local6, _local3, _local4, _local5, _local2[(_local7 + 6)], 9, -1069501632);
_local5 = gg(_local5, _local6, _local3, _local4, _local2[(_local7 + 11)], 14, 643717713);
_local4 = gg(_local4, _local5, _local6, _local3, _local2[(_local7 + 0)], 20, -373897302);
_local3 = gg(_local3, _local4, _local5, _local6, _local2[(_local7 + 5)], 5, -701558691);
_local6 = gg(_local6, _local3, _local4, _local5, _local2[(_local7 + 10)], 9, 38016083);
_local5 = gg(_local5, _local6, _local3, _local4, _local2[(_local7 + 15)], 14, -660478335);
_local4 = gg(_local4, _local5, _local6, _local3, _local2[(_local7 + 4)], 20, -405537848);
_local3 = gg(_local3, _local4, _local5, _local6, _local2[(_local7 + 9)], 5, 568446438);
_local6 = gg(_local6, _local3, _local4, _local5, _local2[(_local7 + 14)], 9, -1019803690);
_local5 = gg(_local5, _local6, _local3, _local4, _local2[(_local7 + 3)], 14, -187363961);
_local4 = gg(_local4, _local5, _local6, _local3, _local2[(_local7 + 8)], 20, 1163531501);
_local3 = gg(_local3, _local4, _local5, _local6, _local2[(_local7 + 13)], 5, -1444681467);
_local6 = gg(_local6, _local3, _local4, _local5, _local2[(_local7 + 2)], 9, -51403784);
_local5 = gg(_local5, _local6, _local3, _local4, _local2[(_local7 + 7)], 14, 1735328473);
_local4 = gg(_local4, _local5, _local6, _local3, _local2[(_local7 + 12)], 20, -1926607734);
_local3 = hh(_local3, _local4, _local5, _local6, _local2[(_local7 + 5)], 4, -378558);
_local6 = hh(_local6, _local3, _local4, _local5, _local2[(_local7 + 8)], 11, -2022574463);
_local5 = hh(_local5, _local6, _local3, _local4, _local2[(_local7 + 11)], 16, 1839030562);
_local4 = hh(_local4, _local5, _local6, _local3, _local2[(_local7 + 14)], 23, -35309556);
_local3 = hh(_local3, _local4, _local5, _local6, _local2[(_local7 + 1)], 4, -1530992060);
_local6 = hh(_local6, _local3, _local4, _local5, _local2[(_local7 + 4)], 11, 1272893353);
_local5 = hh(_local5, _local6, _local3, _local4, _local2[(_local7 + 7)], 16, -155497632);
_local4 = hh(_local4, _local5, _local6, _local3, _local2[(_local7 + 10)], 23, -1094730640);
_local3 = hh(_local3, _local4, _local5, _local6, _local2[(_local7 + 13)], 4, 681279174);
_local6 = hh(_local6, _local3, _local4, _local5, _local2[(_local7 + 0)], 11, -358537222);
_local5 = hh(_local5, _local6, _local3, _local4, _local2[(_local7 + 3)], 16, -722521979);
_local4 = hh(_local4, _local5, _local6, _local3, _local2[(_local7 + 6)], 23, 76029189);
_local3 = hh(_local3, _local4, _local5, _local6, _local2[(_local7 + 9)], 4, -640364487);
_local6 = hh(_local6, _local3, _local4, _local5, _local2[(_local7 + 12)], 11, -421815835);
_local5 = hh(_local5, _local6, _local3, _local4, _local2[(_local7 + 15)], 16, 530742520);
_local4 = hh(_local4, _local5, _local6, _local3, _local2[(_local7 + 2)], 23, -995338651);
_local3 = ii(_local3, _local4, _local5, _local6, _local2[(_local7 + 0)], 6, -198630844);
_local6 = ii(_local6, _local3, _local4, _local5, _local2[(_local7 + 7)], 10, 1126891415);
_local5 = ii(_local5, _local6, _local3, _local4, _local2[(_local7 + 14)], 15, -1416354905);
_local4 = ii(_local4, _local5, _local6, _local3, _local2[(_local7 + 5)], 21, -57434055);
_local3 = ii(_local3, _local4, _local5, _local6, _local2[(_local7 + 12)], 6, 1700485571);
_local6 = ii(_local6, _local3, _local4, _local5, _local2[(_local7 + 3)], 10, -1894986606);
_local5 = ii(_local5, _local6, _local3, _local4, _local2[(_local7 + 10)], 15, -1051523);
_local4 = ii(_local4, _local5, _local6, _local3, _local2[(_local7 + 1)], 21, -2054922799);
_local3 = ii(_local3, _local4, _local5, _local6, _local2[(_local7 + 8)], 6, 1873313359);
_local6 = ii(_local6, _local3, _local4, _local5, _local2[(_local7 + 15)], 10, -30611744);
_local5 = ii(_local5, _local6, _local3, _local4, _local2[(_local7 + 6)], 15, -1560198380);
_local4 = ii(_local4, _local5, _local6, _local3, _local2[(_local7 + 13)], 21, 1309151649);
_local3 = ii(_local3, _local4, _local5, _local6, _local2[(_local7 + 4)], 6, -145523070);
_local6 = ii(_local6, _local3, _local4, _local5, _local2[(_local7 + 11)], 10, -1120210379);
_local5 = ii(_local5, _local6, _local3, _local4, _local2[(_local7 + 2)], 15, 718787259);
_local4 = ii(_local4, _local5, _local6, _local3, _local2[(_local7 + 9)], 21, -343485551);
_local3 = addme(_local3, _local8);
_local4 = addme(_local4, _local9);
_local5 = addme(_local5, _local10);
_local6 = addme(_local6, _local11);
_local7 = (_local7 + 16);
};
return ((((rhex(_local3) + rhex(_local4)) + rhex(_local5)) + rhex(_local6)));
}
private static function str2blks_MD5(_arg1:String):Array{
var _local2:Number;
var _local3:Array;
var _local4:int;
var _local5:int;
_local2 = (((_arg1.length + 8) >> 6) + 1);
_local3 = new Array((_local2 * 16));
_local4 = 0;
while (_local4 < (_local2 * 16)) {
_local3[_local4] = 0;
_local4++;
};
_local4 = 0;
while (_local4 < _arg1.length) {
_local3[(_local4 >> 2)] = (_local3[(_local4 >> 2)] | (_arg1.charCodeAt(_local4) << ((((_arg1.length * 8) + _local4) % 4) * 8)));
_local4++;
};
_local3[(_local4 >> 2)] = (_local3[(_local4 >> 2)] | (128 << ((((_arg1.length * 8) + _local4) % 4) * 8)));
_local5 = (_arg1.length * 8);
_local3[((_local2 * 16) - 2)] = (_local5 & 0xFF);
_local3[((_local2 * 16) - 2)] = (_local3[((_local2 * 16) - 2)] | (((_local5 >>> 8) & 0xFF) << 8));
_local3[((_local2 * 16) - 2)] = (_local3[((_local2 * 16) - 2)] | (((_local5 >>> 16) & 0xFF) << 16));
_local3[((_local2 * 16) - 2)] = (_local3[((_local2 * 16) - 2)] | (((_local5 >>> 24) & 0xFF) << 24));
return (_local3);
}
}
}//package Playtomic
Section 202
//Leaderboards (Playtomic.Leaderboards)
package Playtomic {
import flash.net.*;
import flash.events.*;
import flash.utils.*;
public class Leaderboards {
private static function ProcessScores(_arg1:URLLoader, _arg2:Function):void{
var _local3:XML;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:Array;
var _local8:XMLList;
var _local9:String;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:XML;
var _local14:PlayerScore;
var _local15:XMLList;
var _local16:XML;
_local3 = XML(_arg1["data"]);
_local4 = parseInt(_local3["status"]);
_local5 = parseInt(_local3["errorcode"]);
_local6 = parseInt(_local3["numscores"]);
_local7 = new Array();
if (_local4 == 1){
_local8 = _local3["score"];
for each (_local13 in _local8) {
_local9 = _local13["sdate"];
_local10 = int(_local9.substring((_local9.lastIndexOf("/") + 1)));
_local11 = int(_local9.substring(0, _local9.indexOf("/")));
_local12 = int(_local9.substring((_local9.indexOf("/") + 1)).substring(0, 2));
_local14 = new PlayerScore();
_local14.SDate = new Date(_local10, (_local11 - 1), _local12);
_local14.RDate = _local13["rdate"];
_local14.Name = _local13["name"];
_local14.Points = _local13["points"];
_local14.Website = _local13["website"];
if (_local13["custom"]){
_local15 = _local13["custom"];
_local14.CustomData = new Dictionary();
for each (_local16 in _local15.children()) {
_local14.CustomData[_local16.name()] = _local16.text();
};
};
_local7.push(_local14);
};
};
_arg2(_local7, _local6, {Success:(_local4 == 1), ErrorCode:_local5});
}
public static function ListFB(_arg1:String, _arg2:Function, _arg3:Object=null):void{
var global:Boolean;
var highest:Boolean;
var friendslist:Array;
var mode:String;
var customfilters:Object;
var page:int;
var perpage:int;
var sendaction:URLLoader;
var handled:Boolean;
var fail:Function;
var httpstatusignore:Function;
var postdata:URLVariables;
var numcustomfilters:int;
var request:URLRequest;
var bridge:Function;
var key:String;
var table = _arg1;
var callback = _arg2;
var options = _arg3;
if (options == null){
options = new Object();
};
global = (options.hasOwnProperty("global")) ? options["global"] : true;
highest = (options.hasOwnProperty("highest")) ? options["highest"] : true;
friendslist = (options.hasOwnProperty("friendslist")) ? options["friendslist"] : new Array();
mode = (options.hasOwnProperty("mode")) ? options["mode"] : "alltime";
customfilters = (options.hasOwnProperty("customfilters")) ? options["customfilters"] : {};
page = (options.hasOwnProperty("page")) ? options["page"] : 1;
perpage = (options.hasOwnProperty("perpage")) ? options["perpage"] : 20;
sendaction = new URLLoader();
handled = false;
if (callback != null){
bridge = function ():void{
if ((((callback == null)) || (handled))){
return;
};
handled = true;
ProcessScores(sendaction, callback);
};
sendaction.addEventListener(Event.COMPLETE, bridge);
};
fail = function ():void{
if ((((callback == null)) || (handled))){
return;
};
handled = true;
callback([], 0, {Success:false, ErrorCode:1});
};
httpstatusignore = function ():void{
};
postdata = new URLVariables();
postdata["friendslist"] = friendslist.join(",");
numcustomfilters = 0;
if (customfilters != null){
for (key in customfilters) {
postdata[("ckey" + numcustomfilters)] = key;
postdata[("cdata" + numcustomfilters)] = escape(customfilters[key]);
numcustomfilters = (numcustomfilters + 1);
};
};
request = new URLRequest(((((((((((((((((((("http://g" + Log.GUID) + ".api.playtomic.com/leaderboards/listfb.aspx?swfid=") + Log.SWFID) + "&table=") + table) + "&mode=") + mode) + "&filters=") + numcustomfilters) + "&url=") + (((global) || ((Log.SourceUrl == null)))) ? "global" : Log.SourceUrl) + "&highest=") + (highest) ? "y" : "n") + "&page=") + page) + "&perpage=") + perpage) + "&") + Math.random()));
request.data = postdata;
request.method = URLRequestMethod.POST;
sendaction.addEventListener(IOErrorEvent.IO_ERROR, fail, false, 0, true);
sendaction.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpstatusignore, false, 0, true);
sendaction.addEventListener(SecurityErrorEvent.SECURITY_ERROR, fail, false, 0, true);
sendaction.load(request);
}
public static function Save(_arg1:PlayerScore, _arg2:String, _arg3:Function=null, _arg4:Object=null){
var facebook:Boolean;
var allowduplicates:Boolean;
var highest:Boolean;
var sendaction:URLLoader;
var handled:Boolean;
var fail:Function;
var httpstatusignore:Function;
var s:String;
var postdata:URLVariables;
var customfields:int;
var request:URLRequest;
var bridge:Function;
var key:String;
var score = _arg1;
var table = _arg2;
var callback = _arg3;
var options = _arg4;
if (options == null){
options = new Object();
};
facebook = (options.hasOwnProperty("facebook")) ? options["facebook"] : false;
allowduplicates = (options.hasOwnProperty("allowduplicates")) ? options["allowduplicates"] : false;
highest = (options.hasOwnProperty("highest")) ? options["highest"] : true;
sendaction = new URLLoader();
handled = false;
if (callback != null){
bridge = function ():void{
var _local1:XML;
var _local2:int;
if ((((callback == null)) || (handled))){
return;
};
handled = true;
_local1 = XML(sendaction["data"]);
_local2 = parseInt(_local1["status"]);
if (_local2 == 1){
score.SDate = new Date();
score.RDate = "Just now";
};
callback(score, {Success:(_local2 == 1), ErrorCode:parseInt(_local1["errorcode"])});
};
sendaction.addEventListener(Event.COMPLETE, bridge);
};
fail = function ():void{
if ((((callback == null)) || (handled))){
return;
};
handled = true;
callback(score, {Success:false, ErrorCode:1});
};
httpstatusignore = function ():void{
};
s = score.Points.toString();
if (s.indexOf(".") > -1){
s = s.substring(0, s.indexOf("."));
};
postdata = new URLVariables();
postdata["table"] = escape(table);
postdata["highest"] = highest;
postdata["name"] = escape(score.Name);
postdata["points"] = s;
postdata["allowduplicates"] = (allowduplicates) ? "y" : "n";
postdata["auth"] = Encode.MD5((Log.SourceUrl + s));
postdata["fb"] = (facebook) ? "y" : "n";
postdata["fbuserid"] = score.FBUserId;
customfields = 0;
if (score.CustomData != null){
for (key in score.CustomData) {
postdata[("ckey" + customfields)] = key;
postdata[("cdata" + customfields)] = escape(score.CustomData[key]);
customfields = (customfields + 1);
};
};
postdata["customfields"] = customfields;
request = new URLRequest(((((((("http://g" + Log.GUID) + ".api.playtomic.com/leaderboards/save.aspx?swfid=") + Log.SWFID) + "&url=") + Log.SourceUrl) + "&r=") + Math.random()));
request.data = postdata;
request.method = URLRequestMethod.POST;
sendaction.addEventListener(IOErrorEvent.IO_ERROR, fail, false, 0, true);
sendaction.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpstatusignore, false, 0, true);
sendaction.addEventListener(SecurityErrorEvent.SECURITY_ERROR, fail, false, 0, true);
sendaction.load(request);
}
public static function List(_arg1:String, _arg2:Function, _arg3:Object=null):void{
var global:Boolean;
var highest:Boolean;
var mode:String;
var customfilters:Object;
var page:int;
var perpage:int;
var sendaction:URLLoader;
var handled:Boolean;
var fail:Function;
var httpstatusignore:Function;
var postdata:URLVariables;
var numcustomfilters:int;
var request:URLRequest;
var bridge:Function;
var key:String;
var table = _arg1;
var callback = _arg2;
var options = _arg3;
if (options == null){
options = new Object();
};
global = (options.hasOwnProperty("global")) ? options["global"] : true;
highest = (options.hasOwnProperty("highest")) ? options["highest"] : true;
mode = (options.hasOwnProperty("mode")) ? options["mode"] : "alltime";
customfilters = (options.hasOwnProperty("customfilters")) ? options["customfilters"] : {};
page = (options.hasOwnProperty("page")) ? options["page"] : 1;
perpage = (options.hasOwnProperty("perpage")) ? options["perpage"] : 20;
sendaction = new URLLoader();
handled = false;
if (callback != null){
bridge = function ():void{
if ((((callback == null)) || (handled))){
return;
};
handled = true;
ProcessScores(sendaction, callback);
};
sendaction.addEventListener(Event.COMPLETE, bridge);
};
fail = function ():void{
if ((((callback == null)) || (handled))){
return;
};
handled = true;
callback([], 0, {Success:false, ErrorCode:1});
};
httpstatusignore = function ():void{
};
postdata = new URLVariables();
numcustomfilters = 0;
if (customfilters != null){
for (key in customfilters) {
postdata[("ckey" + numcustomfilters)] = key;
postdata[("cdata" + numcustomfilters)] = escape(customfilters[key]);
numcustomfilters = (numcustomfilters + 1);
};
};
request = new URLRequest(((((((((((((((((((("http://g" + Log.GUID) + ".api.playtomic.com/leaderboards/list.aspx?swfid=") + Log.SWFID) + "&table=") + table) + "&mode=") + mode) + "&filters=") + numcustomfilters) + "&url=") + (((global) || ((Log.SourceUrl == null)))) ? "global" : Log.SourceUrl) + "&highest=") + (highest) ? "y" : "n") + "&page=") + page) + "&perpage=") + perpage) + "&") + Math.random()));
request.data = postdata;
request.method = URLRequestMethod.POST;
sendaction.addEventListener(IOErrorEvent.IO_ERROR, fail, false, 0, true);
sendaction.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpstatusignore, false, 0, true);
sendaction.addEventListener(SecurityErrorEvent.SECURITY_ERROR, fail, false, 0, true);
sendaction.load(request);
}
}
}//package Playtomic
Section 203
//Log (Playtomic.Log)
package Playtomic {
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.events.*;
import flash.external.*;
public final class Log {
private static const PingR:Timer = new Timer(30000);
private static const PingF:Timer = new Timer(60000);
private static var LevelAverages:Array = new Array();
private static var Customs:Array = new Array();
public static var Cookie:SharedObject;
public static var GUID:String = "";
private static var LevelRangeds:Array = new Array();
private static var Plays:int = 0;
public static var Enabled:Boolean = false;
private static var Pings:int = 0;
private static var FrozenQueue:Array = new Array();
public static var SourceUrl:String;
private static var HighestGoal:int = 0;
private static var FirstPing:Boolean = true;
private static var Frozen:Boolean = false;
public static var BaseUrl:String;
public static var Request:LogRequest;
public static var Queue:Boolean = true;
private static var LevelCounters:Array = new Array();
public static var SWFID:int = 0;
public static function LevelAverageMetric(_arg1:String, _arg2, _arg3:int, _arg4:Boolean=false):void{
if (!(Enabled)){
return;
};
if (_arg4){
if (LevelAverages.indexOf(_arg1) > -1){
return;
};
LevelAverages.push(_arg1);
};
Send(((((("la/" + Clean(_arg1)) + "/") + Clean(_arg2)) + "/") + _arg3));
}
private static function Send(_arg1:String, _arg2:Boolean=false):void{
if (Frozen){
FrozenQueue.push(_arg1);
return;
};
Request.Queue(_arg1);
if (((((Request.Ready) || (_arg2))) || (!(Queue)))){
Request.Send();
Request = LogRequest.Create();
};
}
public static function CustomMetric(_arg1:String, _arg2:String=null, _arg3:Boolean=false):void{
if (!(Enabled)){
return;
};
if (_arg2 == null){
_arg2 = "";
};
if (_arg3){
if (Customs.indexOf(_arg1) > -1){
return;
};
Customs.push(_arg1);
};
Send(((("c/" + Clean(_arg1)) + "/") + Clean(_arg2)));
}
private static function Clean(_arg1:String):String{
return (escape(_arg1.replace("/", "\\").replace("~", "-")));
}
public static function UnFreeze():void{
Frozen = false;
Request.MassQueue(FrozenQueue);
}
private static function GetCookie(_arg1:String):int{
if (Cookie.data[_arg1] == undefined){
return (0);
};
return (int(Cookie.data[_arg1]));
}
public static function View(_arg1:int=0, _arg2:String="", _arg3:String=""):void{
var _local4:int;
if (SWFID > 0){
return;
};
SWFID = _arg1;
GUID = _arg2;
Enabled = true;
if ((((SWFID == 0)) || ((GUID == "")))){
Enabled = false;
return;
};
if (((((!((_arg3.indexOf("http://") == 0))) && (!((Security.sandboxType == "localWithNetwork"))))) && (!((Security.sandboxType == "localTrusted"))))){
Enabled = false;
return;
};
SourceUrl = GetUrl(_arg3);
if ((((SourceUrl == null)) || ((SourceUrl == "")))){
Enabled = false;
return;
};
Security.allowDomain((("http://g" + _slot1.GUID) + ".api.playtomic.com/"));
Security.allowInsecureDomain((("http://g" + _slot1.GUID) + ".api.playtomic.com/"));
Security.loadPolicyFile((("http://g" + _slot1.GUID) + ".api.playtomic.com/crossdomain.xml"));
Request = LogRequest.Create();
Cookie = SharedObject.getLocal("playtomic");
_local4 = GetCookie("views");
_local4++;
SaveCookie("views", _local4);
Send(("v/" + _local4), true);
PingF.addEventListener(TimerEvent.TIMER, PingServer);
PingF.start();
}
public static function Freeze():void{
Frozen = true;
}
public static function LevelCounterMetric(_arg1:String, _arg2, _arg3:Boolean=false):void{
if (!(Enabled)){
return;
};
if (_arg3){
if (LevelCounters.indexOf(_arg1) > -1){
return;
};
LevelCounters.push(_arg1);
};
Send(((("lc/" + Clean(_arg1)) + "/") + Clean(_arg2)));
}
public static function Play():void{
if (!(Enabled)){
return;
};
LevelCounters = new Array();
LevelAverages = new Array();
LevelRangeds = new Array();
Plays++;
Send(("p/" + Plays));
}
private static function GetUrl(_arg1:String):String{
var url:String;
var defaulturl = _arg1;
if (ExternalInterface.available){
try {
url = String(ExternalInterface.call("window.location.href.toString"));
} catch(s:Error) {
url = defaulturl;
};
} else {
if (defaulturl.indexOf("http://") == 0){
url = defaulturl;
};
};
if ((((((url == null)) || ((url == "")))) || ((url == "null")))){
if ((((Security.sandboxType == "localWithNetwork")) || ((Security.sandboxType == "localTrusted")))){
url = "http://local-testing/";
} else {
url = null;
};
};
return (escape(url));
}
public static function LevelRangedMetric(_arg1:String, _arg2, _arg3:int, _arg4:Boolean=false):void{
if (!(Enabled)){
return;
};
if (_arg4){
if (LevelRangeds.indexOf(_arg1) > -1){
return;
};
LevelRangeds.push(_arg1);
};
Send(((((("lr/" + Clean(_arg1)) + "/") + Clean(_arg2)) + "/") + _arg3));
}
private static function SaveCookie(_arg1:String, _arg2:int):void{
var _local3:SharedObject;
_local3 = SharedObject.getLocal("swfstats");
_local3.data[_arg1] = _arg2.toString();
_local3.flush();
}
public static function ForceSend():void{
Request.Send();
Request = LogRequest.Create();
if (FrozenQueue.length > 0){
Request.MassQueue(FrozenQueue);
};
}
private static function PingServer(... _args):void{
if (!(Enabled)){
return;
};
Pings++;
Send(((("t/" + (FirstPing) ? "y" : "n") + "/") + Pings), true);
if (FirstPing){
PingF.stop();
PingR.addEventListener(TimerEvent.TIMER, PingServer);
PingR.start();
FirstPing = false;
};
}
}
}//package Playtomic
Section 204
//LogRequest (Playtomic.LogRequest)
package Playtomic {
import flash.net.*;
import flash.events.*;
public final class LogRequest {
public var Ready:Boolean;// = false
private var Data:String;// = ""
private var Target:URLRequest;
private var Sender:URLLoader;
private var BaseUrl:String;
private static var Pool:Array = new Array();
private static var Failed:int = 0;
public function LogRequest(){
Data = "";
Ready = false;
super();
this.Sender = new URLLoader();
this.Sender.addEventListener(Event.COMPLETE, this.Dispose, false, 0, true);
this.Sender.addEventListener(IOErrorEvent.IO_ERROR, this.IOErrorHandler, false, 0, true);
this.Sender.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.StatusChange, false, 0, true);
this.Sender.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.SecurityErrorHandler, false, 0, true);
this.Target = new URLRequest();
this.BaseUrl = ((("http://g" + Log.GUID) + ".api.playtomic.com/tracker/q.aspx?swfid=") + Log.SWFID);
}
public function Send():void{
this.Target.url = (((((((this.BaseUrl + "&q=") + this.Data) + "&url=") + Log.SourceUrl) + "&") + Math.random()) + "z");
this.Sender.load(this.Target);
}
private function SecurityErrorHandler(_arg1:SecurityErrorEvent):void{
}
private function IOErrorHandler(_arg1:IOErrorEvent):void{
Failed++;
}
public function Queue(_arg1:String):void{
if (Failed > 3){
return;
};
this.Data = (this.Data + (((this.Data == "")) ? "" : "~" + _arg1));
if (this.Data.length > 300){
this.Ready = true;
};
}
private function StatusChange(_arg1:HTTPStatusEvent):void{
}
public function MassQueue(_arg1:Array):void{
var _local2:int;
var _local3:LogRequest;
if (Failed > 3){
return;
};
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
this.Data = (this.Data + (((this.Data == "")) ? "" : "~" + _arg1[_local2]));
_arg1.splice(_local2, 1);
if (this.Data.length > 300){
_local3 = Create();
_local3.MassQueue(_arg1);
this.Ready = true;
this.Send();
return;
};
_local2--;
};
Log.Request = this;
}
public function Dispose(_arg1:Event=null):void{
Pool.push(this);
}
public static function Create():LogRequest{
var _local1:LogRequest;
_local1 = ((Pool.length > 0)) ? (Pool.pop() as LogRequest) : new (LogRequest);
_local1.Data = "";
_local1.Ready = false;
return (_local1);
}
}
}//package Playtomic
Section 205
//PlayerScore (Playtomic.PlayerScore)
package Playtomic {
import flash.utils.*;
public final class PlayerScore {
public var RDate:String;
public var FBUserId:String;
public var Points:Number;
public var SDate:Date;
public var CustomData:Dictionary;
public var Name:String;
public var Website:String;
public function PlayerScore(){
CustomData = new Dictionary();
super();
}
}
}//package Playtomic
Section 206
//adBoxD (adBoxD)
package {
import flash.display.*;
public dynamic class adBoxD extends MovieClip {
}
}//package
Section 207
//ambiente1 (ambiente1)
package {
import flash.media.*;
public dynamic class ambiente1 extends Sound {
}
}//package
Section 208
//boton_stats_tienda (boton_stats_tienda)
package {
import flash.display.*;
public dynamic class boton_stats_tienda extends MovieClip {
public var p_rojo:MovieClip;
}
}//package
Section 209
//BotonDrageable (BotonDrageable)
package {
import flash.display.*;
public class BotonDrageable extends MovieClip {
var apariencia:MovieClip;
public function BotonDrageable(_arg1){
alpha = 0.6;
mouseChildren = false;
mouseEnabled = false;
_arg1.addChild(this);
apariencia = new icono_vacio();
addChild(apariencia);
}
public function inicia(_arg1):void{
apariencia.addChild(VariablesGlobales.skillsMan.iconoSkill(VariablesGlobales.tiendaActual.skillDrag.ID));
apariencia.x = -(15);
apariencia.y = -(15);
}
}
}//package
Section 210
//BotonSkillBotoneraTienda (BotonSkillBotoneraTienda)
package {
import flash.display.*;
import flash.events.*;
public class BotonSkillBotoneraTienda extends MovieClip {
var fondo:MovieClip;
var vacio:MovieClip;
public var indice:int;
var apariencia:MovieClip;
public var skillData:Skill;
var descripcionSkill:String;// = ""
public function BotonSkillBotoneraTienda(_arg1:Skill, _arg2:MovieClip, _arg3:int, _arg4:int){
descripcionSkill = "";
super();
skillData = _arg1;
this.x = _arg3;
this.y = _arg4;
_arg2.addChild(this);
this.buttonMode = true;
fondo = new icono_fondo();
addChild(fondo);
vacio = new icono_vacio();
addChild(vacio);
apariencia = new MovieClip();
addChild(apariencia);
CrearDescripcion();
actualizarApariencia();
addEventListener(MouseEvent.CLICK, on_mouse_click);
addEventListener(MouseEvent.MOUSE_OVER, on_mouse_over);
addEventListener(MouseEvent.MOUSE_OUT, on_mouse_out);
addEventListener(MouseEvent.MOUSE_UP, on_mouse_up);
addEventListener(MouseEvent.MOUSE_MOVE, on_mouse_move);
}
public function ocultarDescripcion(){
VariablesGlobales.tiendaActual.p_descripcion.visible = false;
}
private function on_mouse_click(_arg1:Event):void{
var _local2:int;
_local2 = 0;
while (_local2 < VariablesGlobales.skillsJugador.length) {
if (skillData.ID == VariablesGlobales.skillsJugador[_local2]){
VariablesGlobales.skillsJugador[_local2] = 0;
_local2 = VariablesGlobales.skillsJugador.length;
};
_local2++;
};
skillData = VariablesGlobales.skillsMan.data[0];
actualizarBoton();
VariablesGlobales.tiendaActual.ActualizarSkills();
}
public function actualizarBoton(){
VariablesGlobales.skillsJugador[indice] = skillData.ID;
actualizarApariencia();
if (VariablesGlobales.savegameMan != null){
VariablesGlobales.savegameMan.salvarPartida();
};
}
public function actualizarApariencia():void{
apariencia.addChild(VariablesGlobales.skillsMan.iconoSkill(skillData.ID));
if (skillData.ID == 0){
apariencia.visible = false;
vacio.visible = false;
} else {
apariencia.visible = true;
vacio.visible = false;
};
}
private function on_mouse_out(_arg1:MouseEvent):void{
VariablesGlobales.tiendaActual.NombreSkillBotonera("");
VariablesGlobales.tiendaActual.p_coste.visible = false;
VariablesGlobales.tiendaActual.p_descripcion.visible = false;
}
private function on_mouse_over(_arg1:MouseEvent):void{
if (skillData.ID == 0){
VariablesGlobales.tiendaActual.NombreSkillBotonera("");
ocultarDescripcion();
} else {
VariablesGlobales.tiendaActual.NombreSkillBotonera("Click to remove!");
if (skillData.Level > 0){
mostrarDescripcion();
} else {
mostrarDescripcion();
};
};
}
private function on_mouse_move(_arg1:MouseEvent):void{
if (!(VariablesGlobales.tiendaActual.botonDrag.visible)){
mostrarDescripcion();
};
}
public function mostrarDescripcion(){
var _local1:String;
var _local2:String;
CrearDescripcion();
if (skillData.ID == 0){
ocultarDescripcion();
return;
};
VariablesGlobales.tiendaActual.p_descripcion.visible = true;
_local1 = "";
if (skillData.Level > 0){
_local1 = (((skillData.Name + " (lvl. ") + skillData.Level) + ")");
} else {
_local1 = skillData.Name;
};
_local2 = "";
if (skillData.Patience > 0){
_local2 = (skillData.Patience + " Patience");
};
if (skillData.Angry > 0){
_local2 = (skillData.Angry + " Stress");
};
if (skillData.Recast > 0){
_local2 = (((_local2 + " / Refresh ") + Number((skillData.Recast / 24)).toFixed(1)) + " secs.");
};
VariablesGlobales.tiendaActual.p_descripcion.nombre.text = _local1;
VariablesGlobales.tiendaActual.p_descripcion.coste.text = _local2;
VariablesGlobales.tiendaActual.p_descripcion.descripcion.text = descripcionSkill;
VariablesGlobales.tiendaActual.p_coste.visible = false;
VariablesGlobales.tiendaActual.p_descripcion.x = (stage.mouseX - 100);
VariablesGlobales.tiendaActual.p_descripcion.y = (stage.mouseY - 125);
}
private function CrearDescripcion():void{
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Array;
var _local6:String;
var _local7:String;
var _local8:Number;
var _local9:int;
var _local10:int;
_local1 = new Array();
_local2 = 0;
while (_local2 < skillData.Script.length) {
_local1.push(skillData.Script[_local2]);
_local2++;
};
descripcionSkill = "";
switch (skillData.Type){
case Type_ID.ATTACK:
descripcionSkill = "Damage: ";
break;
case Type_ID.BUFF:
_local2 = 0;
while (_local2 < _local1.length) {
_local5 = _local1[_local2].split(" ");
_local6 = String(_local5[1]);
_local7 = String(_local5[2]);
if (_local6 == Skill_Action.PACIENCIA){
descripcionSkill = (("+" + int(_local7)) + "% Patience");
return;
};
if (_local6 == Skill_Action.RABIA){
descripcionSkill = (("+" + int(_local7)) + "% Stress");
return;
};
if (_local6 == Skill_Action.MASDINERO){
_local8 = int(_local7.split(",")[0]);
descripcionSkill = (("3 Turns +" + int(_local8)) + "% Money Chance");
return;
};
if (_local6 == Skill_Action.MASCRITICO){
_local8 = int(_local7.split(",")[0]);
descripcionSkill = (("3 Turns +" + int(_local8)) + "% Critical Chance");
return;
};
if (_local6 == Skill_Action.MASFUERZA){
_local8 = int(_local7.split(",")[0]);
descripcionSkill = "3 Turns Double Damage";
return;
};
if (_local6 == Skill_Action.REFRESCARSKILLS){
descripcionSkill = "Refresh all skills";
return;
};
_local2++;
};
break;
case Type_ID.SPECIAL:
descripcionSkill = "Damage: ";
break;
};
_local3 = 0;
_local4 = 0;
_local2 = 0;
while (_local2 < _local1.length) {
_local5 = _local1[_local2].split(" ");
_local6 = String(_local5[1]);
_local7 = String(_local5[2]);
if (_local6 == Skill_Action.ATACAR){
_local9 = int(_local7.split(",")[0]);
_local10 = int(_local7.split(",")[1]);
_local3 = (_local3 + _local9);
_local4 = (_local4 + _local10);
};
_local2++;
};
descripcionSkill = (((descripcionSkill + _local3) + " - ") + _local4);
}
private function on_mouse_up(_arg1:MouseEvent):void{
trace("mouse up boton skill botonera tienda");
if (VariablesGlobales.tiendaActual.skillDrag != null){
VariablesGlobales.tiendaActual.botonDrag.visible = false;
skillData = VariablesGlobales.tiendaActual.skillDrag;
VariablesGlobales.tiendaActual.skillDrag = null;
actualizarBoton();
VariablesGlobales.tiendaActual.soltandoSkill();
};
}
}
}//package
Section 211
//BotonSkillIngame (BotonSkillIngame)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class BotonSkillIngame extends MovieClip {
public var activo:Boolean;// = false
var no_disponible:MovieClip;
var scriptTemp:Array;
var apariencia:MovieClip;
var refrescando:MovieClip;
var estado:String;
var framesRestantes:int;
var no_disponible_espera:MovieClip;
public var skillData:Skill;
var info:TextField;
public static const EN_EJECUCION:String = "ejecutando";
public static const EN_RECARGA:String = "recargando";
public static const EN_PAUSA:String = "pausado";
public static const EN_ESPERA:String = "esperando";
public function BotonSkillIngame(_arg1:Skill, _arg2:MovieClip, _arg3:int, _arg4:int){
activo = false;
super();
skillData = _arg1;
this.x = _arg3;
this.y = _arg4;
_arg2.addChild(this);
this.buttonMode = true;
apariencia = new MovieClip();
addChild(apariencia);
apariencia.addChild(VariablesGlobales.skillsMan.iconoSkill(skillData.ID));
no_disponible_espera = new icono_no_disponible_espera();
no_disponible_espera.visible = false;
this.addChild(no_disponible_espera);
no_disponible = new icono_no_disponible();
no_disponible.visible = false;
this.addChild(no_disponible);
refrescando = new icono_recargando();
refrescando.visible = false;
refrescando.gotoAndStop(100);
this.addChild(refrescando);
estado = EN_ESPERA;
if (skillData.ID == 0){
visible = false;
};
addEventListener(MouseEvent.CLICK, on_mouse_click);
}
private function contadoresBuffs(){
if (VariablesGlobales.fuerzaTurnos > 0){
trace(("fuerza bonificada " + VariablesGlobales.fuerzaBonus));
VariablesGlobales.fuerzaTurnos--;
} else {
trace("fuerza no bonificada");
VariablesGlobales.fuerzaTurnos = 0;
};
if (VariablesGlobales.dineroTurnos > 0){
trace(("probabilidad dinero bonificado " + VariablesGlobales.dineroProb));
VariablesGlobales.dineroTurnos--;
} else {
trace("probabilidad dinero no bonificado");
VariablesGlobales.dineroBonus = 0;
};
if (VariablesGlobales.criticoTurnos > 0){
trace(("probabilidad criticos bonificado " + VariablesGlobales.criticoProb));
VariablesGlobales.criticoTurnos--;
} else {
trace("probabilidad criticos no bonificado");
VariablesGlobales.criticoBonus = 0;
};
}
public function Descargar(){
}
public function hideMovie(){
if (skillData.Movie != null){
skillData.Movie.stop();
skillData.Movie.visible = false;
} else {
trace((skillData.ID + " pelicula = null"));
};
}
private function controlEnEspera():void{
var _local1:Boolean;
_local1 = false;
switch (skillData.Type){
case Type_ID.ATTACK:
if (VariablesGlobales.pacienciaAct >= skillData.Patience){
_local1 = true;
} else {
_local1 = false;
};
break;
case Type_ID.BUFF:
_local1 = true;
break;
case Type_ID.SPECIAL:
if (VariablesGlobales.rabiaAct >= skillData.Angry){
_local1 = true;
} else {
_local1 = false;
};
break;
};
no_disponible_espera.visible = !(_local1);
}
private function on_mouse_click(_arg1:MouseEvent):void{
if (activo){
trace((((((("click skill " + skillData.Name) + " ") + VariablesGlobales.pacienciaAct) + " pa ") + VariablesGlobales.rabiaAct) + " ra"));
switch (estado){
case EN_ESPERA:
if (VariablesGlobales.juegoActual.skillEjecuntandose == false){
ejecutarSkill();
} else {
trace("skill ejecutandose!");
};
break;
case EN_EJECUCION:
trace((((((("skill " + skillData.Name) + " en ejecucion! ") + VariablesGlobales.pacienciaAct) + " pa ") + VariablesGlobales.rabiaAct) + " ra"));
break;
case EN_RECARGA:
trace((("skill " + skillData.Name) + " recargandose!"));
break;
};
} else {
trace((("skill " + skillData.Name) + " INACTIVO"));
};
}
public function unloadMovie(_arg1){
if (skillData.Movie != null){
skillData.Movie.stop();
skillData.Movie.visible = false;
if (skillData.Movie.parent != null){
_arg1.removeChild(skillData.Movie);
};
if (VariablesGlobales.cargaFicherosExterna == false){
skillData.Movie = null;
};
};
}
private function controlLogica():void{
var _local1:int;
if (skillData.Movie != null){
no_disponible_espera.visible = true;
if (MovieClip(skillData.Movie.getChildAt(0)).currentFrame == MovieClip(skillData.Movie.getChildAt(0)).totalFrames){
finalizarSkill();
} else {
_local1 = ((MovieClip(skillData.Movie.getChildAt(0)).currentFrame * 100) / MovieClip(skillData.Movie.getChildAt(0)).totalFrames);
VariablesGlobales.juegoActual.p_botonera.b_progreso.progreso.gotoAndStop(_local1);
ParsearScript(MovieClip(skillData.Movie.getChildAt(0)).currentFrame);
skillData.Movie.visible = true;
MovieClip(skillData.Movie.getChildAt(0)).play();
};
} else {
finalizarSkill();
};
}
private function actualizarRecarga():void{
var _local1:int;
if (framesRestantes == -1){
return;
};
no_disponible_espera.visible = false;
framesRestantes--;
if (framesRestantes > 0){
refrescando.visible = true;
_local1 = ((framesRestantes * 100) / skillData.Recast);
refrescando.gotoAndStop(_local1);
refrescando.info.text = ("" + Number((framesRestantes / 24)).toFixed(1));
refrescando.info.visible = true;
} else {
refrescando.visible = false;
estado = EN_ESPERA;
refrescando.info.visible = false;
};
}
private function finalizarSkill():void{
switch (skillData.Type){
case Type_ID.ATTACK:
contadoresBuffs();
break;
case Type_ID.SPECIAL:
contadoresBuffs();
break;
};
VariablesGlobales.tipoSkillActual = Type_ID.EMPTY;
VariablesGlobales.juegoActual.skillEjecuntandose = false;
if (skillData.Movie != null){
skillData.Movie.visible = false;
};
VariablesGlobales.juegoActual.p_botonera.b_progreso.visible = false;
VariablesGlobales.juegoActual.p_botonera.b_progreso.progreso.gotoAndStop(100);
VariablesGlobales.juegoActual.p_impactos.c_posicion.visible = false;
estado = EN_RECARGA;
iniciarRecarga();
}
public function update(){
if (activo){
switch (estado){
case EN_ESPERA:
controlEnEspera();
break;
case EN_EJECUCION:
controlLogica();
break;
case EN_RECARGA:
actualizarRecarga();
controlEnEspera();
break;
};
};
}
private function ejecutarSkill():void{
var _local1:int;
trace((((((("ejecutar skill " + skillData.ID) + " ") + VariablesGlobales.pacienciaAct) + " pa ") + VariablesGlobales.rabiaAct) + " ra"));
if (skillData.ID == 0){
return;
};
if (VariablesGlobales.pacienciaAct < 1){
return;
};
VariablesGlobales.cartelPosAleatoreo = false;
VariablesGlobales.cartelPosX = VariablesGlobales.cartelPosXIni;
VariablesGlobales.cartelPosY = VariablesGlobales.cartelPosYIni;
switch (skillData.Type){
case Type_ID.ATTACK:
if (int(VariablesGlobales.pacienciaAct) >= skillData.Patience){
VariablesGlobales.attacksPartida++;
VariablesGlobales.tipoSkillActual = Type_ID.ATTACK;
VariablesGlobales.pacienciaAct = (VariablesGlobales.pacienciaAct - skillData.Patience);
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.MENOSPACIENCIA, String(skillData.Patience));
} else {
return;
};
break;
case Type_ID.BUFF:
if (VariablesGlobales.pacienciaAct >= skillData.Patience){
VariablesGlobales.pacienciaAct = (VariablesGlobales.pacienciaAct - skillData.Patience);
VariablesGlobales.tipoSkillActual = Type_ID.BUFF;
VariablesGlobales.buffsPartida++;
} else {
return;
};
break;
case Type_ID.SPECIAL:
if (VariablesGlobales.rabiaAct >= skillData.Angry){
VariablesGlobales.specialsPartida++;
VariablesGlobales.tipoSkillActual = Type_ID.BUFF;
VariablesGlobales.rabiaAct = (VariablesGlobales.rabiaAct - skillData.Angry);
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.MENOSRABIA, String(skillData.Angry));
} else {
return;
};
break;
default:
trace("**ERROR** tipo skill no reconocido");
};
VariablesGlobales.juegoActual.p_impactos.c_posicion.visible = true;
if (VariablesGlobales.juegoActual.estado == Juego.EN_ESPERA){
trace("empezar!");
VariablesGlobales.juegoActual.iniciarPartida();
VariablesGlobales.juegoActual.estado = Juego.EN_JUEGO;
};
estado = EN_EJECUCION;
VariablesGlobales.juegoActual.skillEjecuntandose = true;
if (skillData.Movie != null){
MovieClip(skillData.Movie.getChildAt(0)).gotoAndStop(1);
skillData.Movie.visible = true;
if (skillData.Level > 0){
VariablesGlobales.juegoActual.p_botonera.b_progreso.info.text = ((skillData.Name + " lvl.") + skillData.Level);
} else {
VariablesGlobales.juegoActual.p_botonera.b_progreso.info.text = skillData.Name;
};
VariablesGlobales.juegoActual.p_botonera.b_progreso.progreso.gotoAndStop(100);
VariablesGlobales.juegoActual.p_botonera.b_progreso.visible = true;
scriptTemp = new Array();
_local1 = 0;
while (_local1 < skillData.Script.length) {
scriptTemp.push(skillData.Script[_local1]);
_local1++;
};
};
}
public function Iniciar(){
activo = true;
estado = EN_ESPERA;
refrescando.visible = false;
controlEnEspera();
}
private function iniciarRecarga():void{
framesRestantes = skillData.Recast;
refrescando.gotoAndStop(100);
refrescando.visible = true;
}
public function forzarRefrescar():void{
framesRestantes = 0;
refrescando.gotoAndStop(100);
refrescando.visible = false;
}
private function ParsearScript(_arg1:int):void{
var _local2:int;
var _local3:int;
_local2 = 0;
while (_local2 < scriptTemp.length) {
_local3 = int(String(scriptTemp[_local2]).split(" ")[0]);
if (_local3 == _arg1){
if (VariablesGlobales.scriptMan.parsearLinea(_arg1, scriptTemp[_local2])){
scriptTemp.splice(_local2, 1);
_local2--;
} else {
return;
};
};
_local2++;
};
}
public function loadMovie(_arg1){
var _local2:Skill_Movie;
if (skillData.Movie != null){
skillData.Movie.stop();
skillData.Movie.visible = false;
_arg1.addChild(skillData.Movie);
trace(MovieClip(skillData.Movie.getChildAt(0)).totalFrames);
} else {
if (VariablesGlobales.cargaFicherosExterna == false){
_local2 = new Skill_Movie();
skillData.Movie = new MovieClip();
skillData.Movie.addChild(_local2.getMovie(skillData.ID));
skillData.Movie.stop();
skillData.Movie.visible = false;
_arg1.addChild(skillData.Movie);
trace(MovieClip(skillData.Movie.getChildAt(0)).totalFrames);
} else {
trace((skillData.ID + " pelicula = null"));
};
};
}
}
}//package
Section 212
//BotonSkillTienda (BotonSkillTienda)
package {
import flash.display.*;
import flash.events.*;
public class BotonSkillTienda extends MovieClip {
var skillComprado:Boolean;// = false
var fondo:MovieClip;
var esta_cargado:MovieClip;
var apariencia:MovieClip;
var premium:MovieClip;
var skillEnUso:Boolean;// = false
public var skillData:Skill;
var copia_apariencia:MovieClip;
var por_comprar:MovieClip;
var descripcionSkill:String;// = ""
public function BotonSkillTienda(_arg1:Skill, _arg2:MovieClip, _arg3:int, _arg4:int){
var _local5:Skill_Icon;
skillComprado = false;
skillEnUso = false;
descripcionSkill = "";
super();
skillData = _arg1;
this.x = _arg3;
this.y = _arg4;
_arg2.addChild(this);
this.buttonMode = true;
fondo = new icono_fondo();
addChild(fondo);
apariencia = new MovieClip();
addChild(apariencia);
apariencia.addChild(VariablesGlobales.skillsMan.iconoSkill(skillData.ID));
if (VariablesGlobales.cargaFicherosExterna == false){
_local5 = new Skill_Icon();
copia_apariencia = new MovieClip();
addChild(copia_apariencia);
copia_apariencia.addChild(_local5.getIcon(skillData.ID));
};
por_comprar = new icono_por_comprar();
por_comprar.mouseChildren = false;
por_comprar.mouseEnabled = false;
addChild(por_comprar);
esta_cargado = new icono_esta_cargado();
esta_cargado.mouseChildren = false;
esta_cargado.mouseEnabled = false;
addChild(esta_cargado);
premium = new icono_premium();
premium.mouseChildren = false;
premium.mouseEnabled = false;
addChild(premium);
premium.visible = false;
CrearDescripcion();
Actualiza();
addEventListener(MouseEvent.CLICK, on_mouse_click);
addEventListener(MouseEvent.MOUSE_DOWN, on_mouse_down);
addEventListener(MouseEvent.MOUSE_MOVE, on_mouse_move);
addEventListener(MouseEvent.MOUSE_OUT, on_mouse_out);
}
private function on_mouse_click(_arg1:MouseEvent):void{
var _local2:Boolean;
var _local3:int;
if (!(skillComprado)){
_local2 = false;
if (skillData.Cost > 0){
if ((((skillData.Premium > 0)) && (!(VariablesGlobales.estoyEnSponsor)))){
VariablesGlobales.tiendaActual.main_class.abre_pantalla(new Redirigir());
return;
};
if (skillData.Cost > VariablesGlobales.dineroTotal){
trace("no hay dinero");
} else {
_local2 = true;
};
if (_local2){
VariablesGlobales.tiendaActual.main_class.abre_pantalla(new Compra(this));
} else {
VariablesGlobales.tiendaActual.MostrarSinFondos();
};
} else {
if (skillData.Premium > 0){
_local3 = 0;
switch (skillData.ID){
case 39:
_local3 = GamerSafeConstants.ITEM_LIGHTNING_LVL_3;
break;
case 42:
_local3 = GamerSafeConstants.ITEM_FIRE_LVL_3;
break;
case 45:
_local3 = GamerSafeConstants.ITEM_WATER_LVL_3;
break;
case 48:
_local3 = GamerSafeConstants.ITEM_CHAINS_LVL_3;
break;
case 1003:
_local3 = GamerSafeConstants.ITEM_CHEERLEADERS_LVL_3;
break;
case 1006:
_local3 = GamerSafeConstants.ITEM_OVERTIME_LVL_3;
break;
case 1009:
_local3 = GamerSafeConstants.ITEM_SHOW_ME_THE_MONEY_LVL_3;
break;
case 1012:
_local3 = GamerSafeConstants.ITEM_IVE_GOT_THE_POWER_LVL_3;
break;
case 2013:
_local3 = GamerSafeConstants.ITEM_SPECIAL_13;
break;
case 2014:
_local3 = GamerSafeConstants.ITEM_SPECIAL_14;
break;
case 2015:
_local3 = GamerSafeConstants.ITEM_SPECIAL_15;
break;
case 2016:
_local3 = GamerSafeConstants.ITEM_SPECIAL_16;
break;
};
VariablesGlobales.tiendaActual.LanzarTiendaPremium(_local3);
};
};
};
trace(("click skil " + skillData.Name));
}
private function on_mouse_out(_arg1:MouseEvent):void{
VariablesGlobales.tiendaActual.p_coste.visible = false;
VariablesGlobales.tiendaActual.p_descripcion.visible = false;
}
private function MostrarAparienciaNormal():void{
apariencia.addChild(VariablesGlobales.skillsMan.iconoSkill(skillData.ID));
}
private function on_mouse_down(_arg1:MouseEvent):void{
if (((skillComprado) && (!(skillEnUso)))){
VariablesGlobales.tiendaActual.skillDrag = skillData;
VariablesGlobales.tiendaActual.botonDrag.inicia(apariencia);
VariablesGlobales.tiendaActual.moviendoSkill();
};
}
public function realizarCompra(){
if (VariablesGlobales.comprarSkill(skillData.ID)){
if (skillData.Cost > 0){
VariablesGlobales.balanceDinero(-(skillData.Cost));
};
};
}
private function on_mouse_move(_arg1:MouseEvent):void{
if (!(VariablesGlobales.tiendaActual.botonDrag.visible)){
mostrarDescripcion();
};
}
private function CrearDescripcion():void{
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Array;
var _local6:String;
var _local7:String;
var _local8:Number;
var _local9:int;
var _local10:int;
_local1 = new Array();
_local2 = 0;
while (_local2 < skillData.Script.length) {
_local1.push(skillData.Script[_local2]);
_local2++;
};
descripcionSkill = "";
switch (skillData.Type){
case Type_ID.ATTACK:
descripcionSkill = "Damage: ";
break;
case Type_ID.BUFF:
_local2 = 0;
while (_local2 < _local1.length) {
_local5 = _local1[_local2].split(" ");
_local6 = String(_local5[1]);
_local7 = String(_local5[2]);
if (_local6 == Skill_Action.PACIENCIA){
descripcionSkill = (("+" + int(_local7)) + "% Patience");
return;
};
if (_local6 == Skill_Action.RABIA){
descripcionSkill = (("+" + int(_local7)) + "% Stress");
return;
};
if (_local6 == Skill_Action.MASDINERO){
_local8 = int(_local7.split(",")[0]);
descripcionSkill = (("3 Turns +" + int(_local8)) + "% Money Chance");
return;
};
if (_local6 == Skill_Action.MASCRITICO){
_local8 = int(_local7.split(",")[0]);
descripcionSkill = (("3 Turns +" + int(_local8)) + "% Critical Chance");
return;
};
if (_local6 == Skill_Action.MASFUERZA){
_local8 = int(_local7.split(",")[0]);
descripcionSkill = "3 Turns Double Damage";
return;
};
if (_local6 == Skill_Action.REFRESCARSKILLS){
descripcionSkill = "Refresh all skills";
return;
};
_local2++;
};
break;
case Type_ID.SPECIAL:
descripcionSkill = "Damage: ";
break;
};
_local3 = 0;
_local4 = 0;
_local2 = 0;
while (_local2 < _local1.length) {
_local5 = _local1[_local2].split(" ");
_local6 = String(_local5[1]);
_local7 = String(_local5[2]);
if (_local6 == Skill_Action.ATACAR){
_local9 = int(_local7.split(",")[0]);
_local10 = int(_local7.split(",")[1]);
_local3 = (_local3 + _local9);
_local4 = (_local4 + _local10);
};
_local2++;
};
descripcionSkill = (((descripcionSkill + _local3) + " - ") + _local4);
}
public function mostrarDescripcion(){
var _local1:String;
var _local2:String;
Actualiza();
por_comprar.visible = !(skillComprado);
VariablesGlobales.tiendaActual.p_descripcion.visible = true;
_local1 = "";
if (skillData.Level > 0){
_local1 = (((skillData.Name + " (lvl. ") + skillData.Level) + ")");
} else {
_local1 = skillData.Name;
};
_local2 = "";
if (skillData.Patience > 0){
_local2 = (skillData.Patience + " Patience");
};
if (skillData.Angry > 0){
_local2 = (skillData.Angry + " Stress");
};
if (skillData.Recast > 0){
_local2 = (((_local2 + " / Refresh ") + Number((skillData.Recast / 24)).toFixed(1)) + " secs.");
};
VariablesGlobales.tiendaActual.p_descripcion.nombre.text = _local1;
VariablesGlobales.tiendaActual.p_descripcion.coste.text = _local2;
VariablesGlobales.tiendaActual.p_descripcion.descripcion.text = descripcionSkill;
if (skillComprado){
VariablesGlobales.tiendaActual.p_descripcion.x = (stage.mouseX + 15);
VariablesGlobales.tiendaActual.p_descripcion.y = stage.mouseY;
VariablesGlobales.tiendaActual.p_coste.visible = false;
} else {
VariablesGlobales.tiendaActual.p_coste.x = (stage.mouseX + 15);
VariablesGlobales.tiendaActual.p_coste.y = stage.mouseY;
VariablesGlobales.tiendaActual.p_coste.visible = true;
if (skillData.Cost > 0){
VariablesGlobales.tiendaActual.p_coste.info.text = (skillData.Cost + "$");
if (VariablesGlobales.dineroTotal < skillData.Cost){
};
};
VariablesGlobales.tiendaActual.p_descripcion.x = (stage.mouseX + 15);
VariablesGlobales.tiendaActual.p_descripcion.y = (stage.mouseY + 35);
};
}
public function Actualiza():void{
var _local1:int;
var _local2:int;
skillComprado = false;
_local1 = 0;
while (_local1 < VariablesGlobales.skillsComprados.length) {
if (skillData.ID == VariablesGlobales.skillsComprados[_local1]){
skillComprado = true;
_local1 = VariablesGlobales.skillsComprados.length;
};
_local1++;
};
por_comprar.visible = !(skillComprado);
por_comprar.p_rojo.visible = false;
if (por_comprar.visible){
if (VariablesGlobales.dineroTotal < skillData.Cost){
por_comprar.p_rojo.visible = true;
};
};
skillEnUso = false;
_local2 = 0;
while (_local2 < VariablesGlobales.skillsJugador.length) {
if (skillData.ID == VariablesGlobales.skillsJugador[_local2]){
skillEnUso = true;
_local2 = VariablesGlobales.skillsJugador.length;
};
_local2++;
};
if (skillEnUso){
esta_cargado.visible = true;
if (VariablesGlobales.cargaFicherosExterna == false){
esta_cargado.alpha = 0.9;
};
} else {
esta_cargado.visible = false;
if (VariablesGlobales.tiendaActual.skillDrag != null){
if (VariablesGlobales.tiendaActual.skillDrag.ID == skillData.ID){
} else {
MostrarAparienciaNormal();
};
} else {
MostrarAparienciaNormal();
};
};
}
public function Descargar(){
}
}
}//package
Section 213
//BotonStatsTienda (BotonStatsTienda)
package {
import flash.events.*;
import flash.display.*;
public class BotonStatsTienda extends MovieClip {
public var nivelBoton:int;
public var tipoBoton:String;
public var estadoBoton:int;
public var apariencia:MovieClip;
public var costeBoton:int;
var skillData:Skill;
public static const RABIA:String = "rabia";
public static const DINERO:String = "dinero";
public static const CRITICO:String = "critico";
public static const PACIENCIA:String = "paciencia";
public function BotonStatsTienda(_arg1, _arg2, _arg3, _arg4){
estadoBoton = _arg4;
_arg1.addChild(this);
apariencia = new boton_stats_tienda();
apariencia.x = _arg2;
apariencia.y = _arg3;
apariencia.gotoAndStop(_arg4);
this.addChild(apariencia);
apariencia.p_rojo.mouseChildren = false;
apariencia.p_rojo.mouseEnabled = false;
addEventListener(MouseEvent.CLICK, on_mouse_click);
addEventListener(MouseEvent.MOUSE_DOWN, on_mouse_down);
addEventListener(MouseEvent.MOUSE_MOVE, on_mouse_move);
addEventListener(MouseEvent.MOUSE_OUT, on_mouse_out);
Actualiza();
}
private function on_mouse_click(_arg1:MouseEvent):void{
if (apariencia.currentFrame == 2){
if (costeBoton > VariablesGlobales.dineroTotal){
VariablesGlobales.tiendaActual.MostrarSinFondos();
trace("no hay dinero");
return;
};
VariablesGlobales.tiendaActual.main_class.abre_pantalla(new Compra(this, true));
};
}
private function on_mouse_out(_arg1:MouseEvent):void{
VariablesGlobales.tiendaActual.p_coste.visible = false;
VariablesGlobales.tiendaActual.p_descripcion.visible = false;
}
private function on_mouse_down(_arg1:MouseEvent):void{
}
public function realizarCompra(){
switch (tipoBoton){
case PACIENCIA:
VariablesGlobales.nivelPaciencia++;
break;
case RABIA:
VariablesGlobales.nivelRabia++;
break;
case CRITICO:
VariablesGlobales.nivelCritical++;
break;
case DINERO:
VariablesGlobales.nivelMoney++;
break;
};
VariablesGlobales.balanceDinero(-(costeBoton));
VariablesGlobales.tiendaActual.ActualizarDinero();
VariablesGlobales.tiendaActual.ActualizarStats();
VariablesGlobales.tiendaActual.p_coste.visible = false;
VariablesGlobales.tiendaActual.p_descripcion.visible = false;
}
public function Inicia(){
var _local1:String;
var _local2:String;
var _local3:int;
var _local4:*;
_local1 = "desct temp";
_local2 = "desct temp";
_local3 = 0;
_local4 = (nivelBoton - 1);
switch (tipoBoton){
case PACIENCIA:
_local1 = ("Patience lvl." + nivelBoton);
_local2 = ("Max patience = " + VariablesGlobales.valorPaciencia[_local4]);
_local3 = VariablesGlobales.costePaciencia[_local4];
break;
case RABIA:
_local1 = ("Stress lvl." + nivelBoton);
_local2 = ("Max Stress = " + VariablesGlobales.valorRabia[_local4]);
_local3 = VariablesGlobales.costeRabia[_local4];
break;
case CRITICO:
_local1 = ("Critical Chance lvl." + nivelBoton);
_local2 = (("Critical Chance " + VariablesGlobales.valorCritical[_local4]) + "%");
_local3 = VariablesGlobales.costeCritical[_local4];
break;
case DINERO:
_local1 = ("Money Chance lvl." + nivelBoton);
_local2 = (("Money Chance " + VariablesGlobales.valorMoney[_local4]) + "%");
_local3 = VariablesGlobales.costeMoney[_local4];
break;
};
skillData = new Skill(-1, _local1, 0, _local4, _local3, 0, 0, 0, 0);
trace(_local3);
}
private function on_mouse_move(_arg1:MouseEvent):void{
if (apariencia.currentFrame == 2){
mostrarDescripcion();
};
}
private function mostrarDescripcion(){
var _local1:String;
var _local2:String;
var _local3:String;
var _local4:*;
VariablesGlobales.tiendaActual.p_descripcion.visible = true;
_local1 = "desct temp";
_local2 = "desct temp";
_local3 = ("" + _local3);
_local4 = (nivelBoton - 1);
switch (tipoBoton){
case PACIENCIA:
_local1 = ("Patience lvl." + nivelBoton);
_local2 = ("Max patience = " + VariablesGlobales.valorPaciencia[_local4]);
_local3 = (VariablesGlobales.costePaciencia[_local4] + "$");
break;
case RABIA:
_local1 = ("Stress lvl." + nivelBoton);
_local2 = ("Max Stress =" + VariablesGlobales.valorRabia[_local4]);
_local3 = (VariablesGlobales.costeRabia[_local4] + "$");
break;
case CRITICO:
_local1 = ("Critical Chance lvl." + nivelBoton);
_local2 = (("Critical Chance " + VariablesGlobales.valorCritical[_local4]) + "%");
_local3 = (VariablesGlobales.costeCritical[_local4] + "$");
break;
case DINERO:
_local1 = ("Money Chance lvl." + nivelBoton);
_local2 = (("Money Chance " + VariablesGlobales.valorMoney[_local4]) + "%");
_local3 = (VariablesGlobales.costeMoney[_local4] + "$");
break;
};
VariablesGlobales.tiendaActual.p_descripcion.nombre.text = _local1;
VariablesGlobales.tiendaActual.p_descripcion.coste.text = "";
VariablesGlobales.tiendaActual.p_descripcion.descripcion.text = _local2;
VariablesGlobales.tiendaActual.p_coste.info.text = _local3;
VariablesGlobales.tiendaActual.p_coste.x = (stage.mouseX + 15);
VariablesGlobales.tiendaActual.p_coste.y = (stage.mouseY + 15);
VariablesGlobales.tiendaActual.p_coste.visible = true;
VariablesGlobales.tiendaActual.p_descripcion.x = (stage.mouseX + 15);
VariablesGlobales.tiendaActual.p_descripcion.y = (stage.mouseY + 50);
}
public function Actualiza():void{
apariencia.p_rojo.visible = false;
if ((((estadoBoton == 2)) && ((VariablesGlobales.dineroTotal < costeBoton)))){
apariencia.p_rojo.visible = true;
};
}
}
}//package
Section 214
//buff1 (buff1)
package {
import flash.media.*;
public dynamic class buff1 extends Sound {
}
}//package
Section 215
//Carga (Carga)
package {
import flash.events.*;
import flash.net.*;
import flash.display.*;
public class Carga extends Ventana {
var loader:Loader;
var skillActual:Skill;
var listaPeliculas:Array;
var nombreActual:String;
private function lanzarJuego():void{
trace("lanzar");
main_class.abre_pantalla(new Juego());
main_class.cierra_pantalla(this);
}
function initHandler(_arg1:Event):void{
}
override protected function Cargar_Ventana():void{
VariablesGlobales.contenedorPadre.abre_pantalla(new Estado());
cargarDatos();
super.Cargar_Ventana();
}
private function cargarPelicula():void{
var _local1:URLRequest;
if (listaPeliculas.length == 0){
VariablesGlobales.estadoActual.actualiza("fin");
VariablesGlobales.estadoActual.cierra();
lanzarJuego();
} else {
VariablesGlobales.estadoActual.actualiza((listaPeliculas.length + " restantes."));
skillActual = listaPeliculas[0][0];
nombreActual = listaPeliculas[0][1];
VariablesGlobales.estadoActual.actualiza(((skillActual.ID + " cargar ") + nombreActual));
loader = new Loader();
ponerListeners(loader.contentLoaderInfo);
_local1 = new URLRequest(nombreActual);
VariablesGlobales.estadoActual.actualiza((nombreActual + " cargando..."));
loader.load(_local1);
};
}
function httpStatusHandler(_arg1:HTTPStatusEvent):void{
}
function progressHandler(_arg1:ProgressEvent):void{
}
function quitarListeners(_arg1:IEventDispatcher):void{
_arg1.removeEventListener(Event.COMPLETE, completeHandler);
_arg1.removeEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
_arg1.removeEventListener(Event.INIT, initHandler);
_arg1.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_arg1.removeEventListener(Event.OPEN, openHandler);
_arg1.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
}
function ponerListeners(_arg1:IEventDispatcher):void{
_arg1.addEventListener(Event.COMPLETE, completeHandler);
_arg1.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
_arg1.addEventListener(Event.INIT, initHandler);
_arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_arg1.addEventListener(Event.OPEN, openHandler);
_arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler);
}
function ioErrorHandler(_arg1:IOErrorEvent):void{
altaPelicula(null);
}
private function cargaManualPeliculas():void{
if (listaPeliculas.length == 0){
VariablesGlobales.estadoActual.actualiza("fin");
VariablesGlobales.estadoActual.cierra();
lanzarJuego();
} else {
VariablesGlobales.estadoActual.actualiza((listaPeliculas.length + " restantes."));
skillActual = listaPeliculas[0][0];
nombreActual = listaPeliculas[0][1];
VariablesGlobales.estadoActual.actualiza(((skillActual.ID + " cargar ") + nombreActual));
skillActual.Movie = new MovieClip();
skillActual.Movie.addChild(new pelicula_skill_temporal());
VariablesGlobales.estadoActual.actualiza((nombreActual + " cargada"));
listaPeliculas.shift();
cargaManualPeliculas();
};
}
private function cargarDatos():void{
var _local1:int;
var _local2:int;
var _local3:String;
var _local4:*;
listaPeliculas = new Array();
_local1 = 0;
while (_local1 < VariablesGlobales.skillsJugador.length) {
if (VariablesGlobales.skillsJugador[_local1] != 0){
_local2 = 0;
while (_local2 < VariablesGlobales.skillsMan.data.length) {
if (VariablesGlobales.skillsJugador[_local1] == VariablesGlobales.skillsMan.data[_local2].ID){
_local3 = (("pelicula" + VariablesGlobales.skillsJugador[_local1]) + ".swf");
_local4 = new Array();
_local4.push(VariablesGlobales.skillsMan.data[_local2]);
_local4.push(_local3);
VariablesGlobales.estadoActual.actualiza(("encolar " + _local3));
listaPeliculas.push(_local4);
};
_local2++;
};
};
_local1++;
};
trace(listaPeliculas.length);
if (VariablesGlobales.cargaFicherosExterna == true){
cargarPelicula();
};
}
private function altaPelicula(_arg1):void{
if (_arg1 == null){
skillActual.Movie = null;
} else {
skillActual.Movie = new MovieClip();
skillActual.Movie.addChild(MovieClip(_arg1).getChildAt(0));
};
VariablesGlobales.estadoActual.actualiza((nombreActual + " cargada"));
listaPeliculas.shift();
quitarListeners(loader.contentLoaderInfo);
cargarPelicula();
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_jugar":
lanzarJuego();
break;
};
}
function openHandler(_arg1:Event):void{
}
function completeHandler(_arg1:Event):void{
altaPelicula(_arg1.target.content);
}
}
}//package
Section 216
//cartelFlotante (cartelFlotante)
package {
import flash.text.*;
import flash.display.*;
public dynamic class cartelFlotante extends MovieClip {
public var info_sombra:TextField;
public var info:TextField;
}
}//package
Section 217
//Compra (Compra)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Compra extends Ventana {
private var botonCompra;
public var b_yes:SimpleButton;
public var t_info:TextField;
private var skillData:Skill;
public var b_no:SimpleButton;
public var t_cost:TextField;
public function Compra(_arg1, _arg2:Boolean=false){
var _local3:String;
var _local4:String;
super();
botonCompra = _arg1;
skillData = _arg1.skillData;
if (_arg2){
skillData.Level = 0;
};
_local3 = ("Unlock " + skillData.Name);
if (skillData.Level > 0){
_local3 = (((_local3 + "(lvl. ") + skillData.Level) + ")");
};
_local3 = (_local3 + " ?");
_local4 = "Cost : ";
if (skillData.Cost > 0){
_local4 = ((_local4 + "$") + skillData.Cost);
};
t_info.text = _local3;
t_cost.text = _local4;
}
override protected function Cargar_Ventana():void{
b_yes.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_no.addEventListener(MouseEvent.CLICK, on_button_clicked);
super.Cargar_Ventana();
}
private function LanzarComprar():void{
botonCompra.realizarCompra();
CerrarVentana();
}
override protected function Descargar_Ventana():void{
super.Descargar_Ventana();
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_yes":
LanzarComprar();
break;
case "b_no":
CerrarVentana();
break;
};
}
private function CerrarVentana():void{
main_class.cierra_pantalla(this);
}
}
}//package
Section 218
//Creditos (Creditos)
package {
import Playtomic.*;
import flash.events.*;
import gs.*;
import flash.display.*;
public class Creditos extends Ventana {
public var b_exit:SimpleButton;
public function Creditos(){
addFrameScript(4, frame5);
Log.CustomMetric("ViewedCredits");
}
override protected function Cargar_Ventana():void{
b_exit.addEventListener(MouseEvent.CLICK, on_button_clicked);
super.Cargar_Ventana();
}
function frame5(){
stop();
}
override protected function Descargar_Ventana():void{
super.Descargar_Ventana();
}
function onFinishTweenSalida():void{
main_class.cierra_pantalla(this);
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_exit":
TweenLite.to(this, 0.2, {delay:0, alpha:0, onComplete:onFinishTweenSalida});
break;
};
}
}
}//package
Section 219
//Estadisticas (Estadisticas)
package {
import Playtomic.*;
import flash.events.*;
import gs.*;
import flash.text.*;
import flash.display.*;
public class Estadisticas extends Ventana {
public var t_total_hits:TextField;
public var t_last_specials:TextField;
public var t_best_score:TextField;
public var t_last_hits:TextField;
public var t_last_score:TextField;
public var t_last_attacks:TextField;
public var t_total_specials:TextField;
public var t_total_attacks:TextField;
public var t_last_money:TextField;
public var t_total_buffs:TextField;
public var t_total_time:TextField;
public var t_total_score:TextField;
public var t_total_money:TextField;
public var t_last_time:TextField;
public var b_exit:SimpleButton;
public var t_last_buffs:TextField;
public function Estadisticas(){
var _local1:int;
var _local2:String;
var _local3:int;
var _local4:int;
var _local5:*;
var _local6:int;
super();
addFrameScript(4, frame5);
Log.CustomMetric("ViewedStats");
t_best_score.text = ("" + VariablesGlobales.puntosRecord);
t_total_score.text = ("" + VariablesGlobales.est_total_score);
t_total_money.text = (("" + VariablesGlobales.est_total_money) + "$");
_local1 = VariablesGlobales.est_total_time;
_local1 = (_local1 / 1000);
_local3 = Math.floor((_local1 / ((60 * 60) * 24)));
_local1 = (_local1 - (((_local3 * 60) * 60) * 24));
_local4 = Math.floor((_local1 / (60 * 60)));
_local1 = (_local1 - ((_local4 * 60) * 60));
_local5 = Math.floor((_local1 / 60));
_local1 = (_local1 - (_local5 * 60));
_local6 = _local1;
_local2 = "";
_local2 = ((_local2 + _local3) + "d ");
_local2 = ((_local2 + _local4) + "h ");
_local2 = ((_local2 + _local5) + "m ");
_local2 = ((_local2 + _local6) + "s ");
t_total_time.text = _local2;
t_total_hits.text = ("" + VariablesGlobales.est_total_hits);
t_total_attacks.text = ("" + VariablesGlobales.est_total_attacks);
t_total_buffs.text = ("" + VariablesGlobales.est_total_buffs);
t_total_specials.text = ("" + VariablesGlobales.est_total_specials);
t_last_score.text = ("" + VariablesGlobales.est_last_score);
t_last_money.text = (("" + VariablesGlobales.est_last_money) + "$");
_local1 = VariablesGlobales.est_last_time;
_local1 = (_local1 / 1000);
_local3 = Math.floor((_local1 / ((60 * 60) * 24)));
_local1 = (_local1 - (((_local3 * 60) * 60) * 24));
_local4 = Math.floor((_local1 / (60 * 60)));
_local1 = (_local1 - ((_local4 * 60) * 60));
_local5 = Math.floor((_local1 / 60));
_local1 = (_local1 - (_local5 * 60));
_local6 = _local1;
_local2 = "";
_local2 = ((_local2 + _local3) + "d ");
_local2 = ((_local2 + _local4) + "h ");
_local2 = ((_local2 + _local5) + "m ");
_local2 = ((_local2 + _local6) + "s ");
t_last_time.text = _local2;
t_last_hits.text = ("" + VariablesGlobales.est_last_hits);
t_last_attacks.text = ("" + VariablesGlobales.est_last_attacks);
t_last_buffs.text = ("" + VariablesGlobales.est_last_buffs);
t_last_specials.text = ("" + VariablesGlobales.est_last_specials);
}
override protected function Cargar_Ventana():void{
b_exit.addEventListener(MouseEvent.CLICK, on_button_clicked);
super.Cargar_Ventana();
}
function frame5(){
stop();
}
override protected function Descargar_Ventana():void{
super.Descargar_Ventana();
}
function onFinishTweenSalida():void{
main_class.cierra_pantalla(this);
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_exit":
TweenLite.to(this, 0.2, {delay:0, alpha:0, onComplete:onFinishTweenSalida});
break;
};
}
}
}//package
Section 220
//Estado (Estado)
package {
import flash.text.*;
public class Estado extends Ventana {
var info:TextField;
public function Estado(){
info = new TextField();
info.multiline = true;
info.height = 450;
info.width = 780;
addChild(info);
VariablesGlobales.estadoActual = this;
info.text = "";
}
public function actualiza(_arg1):void{
info.text = ((_arg1 + String.fromCharCode(13)) + info.text);
}
public function cierra():void{
VariablesGlobales.contenedorPadre.cierra_pantalla(this);
}
}
}//package
Section 221
//GamerSafe (GamerSafe)
package {
import flash.system.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.events.*;
import flash.utils.*;
public class GamerSafe extends Sprite {
private const _storedPasscode:String = "G1ae8c500247aab9161ba98c4934e82ab95254d2bf:1285686570";
private const _storedHashseed:String = "c6a2ce20a27b23facd034b637ac63d68e0debd48";
private var _evt_onScoreSubmitted:Function;// = null
private var _stageHeight:Number;// = 400
private var _evt_onLevelVaultLevelRated:Function;// = null
private var _evt_onOtherGameProfileReceived:Function;// = null
private var _evt_onLevelVaultLevelEdited:Function;// = null
private var _evt_onMetaData:Function;// = null
private var _levelVaultTempAttributes:Object;
private var _evt_accountChange:Function;// = null
private var _evt_onRegistrationFormClosed:Function;// = null
private var _evt_apiReady:Function;// = null
private var _evt_itemPurchase:Function;// = null
private var _context:LoaderContext;
private var _evt_onLevelVaultLevelStringsSet:Function;// = null
private var _evt_login:Function;// = null
private var _evt_onScoreboardError:Function;// = null
private var _levelVaultLastError:String;// = ""
private var _evt_beginSession:Function;// = null
private var _gamerSafe:Object;// = null
private var _evt_onLevelVaultLevelNumericsSet:Function;// = null
private var _evt_confYes:Function;// = null
private var _status:String;// = "Loading"
private var _inUse:Boolean;// = false
private var _loaded:Boolean;// = false
private var _evt_onFacebookLoginFailed:Function;// = null
private var _evt_useChanged:Function;// = null
private var _loader:Loader;
private var _request:URLRequest;
private var _evt_onLoginFormClosed:Function;// = null
private var _referrer:String;// = ""
private var _evt_itemPurchaseFailed:Function;// = null
private var _tmpSkin:Object;
private var _stage:Stage;
private var _evt_onUnregisteredName:Function;// = null
private var _evt_onLevelVaultGotLevel:Function;// = null
private var _evt_useEnded:Function;// = null
private var _evt_onFacebookWallPostFailed:Function;// = null
private var _evt_networkingError:Function;// = null
private var _evt_loginFailed:Function;// = null
private var _evt_onLevelVaultLevelCreated:Function;// = null
private var _evt_onLevelVaultGotLevels:Function;// = null
private var _evt_onFacebookGotLocalUser:Function;// = null
private var _evt_onScoreboardRecieved:Function;// = null
private var _evt_onConsumptionCompleted:Function;// = null
private var _evt_onLevelVaultLevelNumericsIncremented:Function;// = null
private var _evt_useStarted:Function;// = null
private var _stageWidth:Number;// = 550
private var _evt_onFacebookConnected:Function;// = null
private var _evt_onFacebookWallPostSuccess:Function;// = null
private var _evt_onMetaDataError:Function;// = null
private var _evt_beginSessionFailed:Function;// = null
private var _evt_onFacebookGotFriends:Function;// = null
private var _evt_confNo:Function;// = null
private var _evt_onLevelVaultLevelDeleted:Function;// = null
private var _evt_onLevelVaultLevelFlagged:Function;// = null
private var _evt_onLevelVaultLevelAttributesChanged:Function;// = null
public static const EVT_OTHER_GAME_PROFILE_RECEIVED:String = "other_game_profile_received";
public static const EVT_LEVELVAULT_LEVEL_FLAGGED:String = "level_flagged";
public static const EVT_ITEM_PURCHASE_FAILED:String = "item_purchase_failed";
public static const EVT_LEVELVAULT_GOT_SINGLE_LEVEL:String = "got_level";
public static const EVT_BEGIN_SESSION_FAILED:String = "begin_session_failed";
public static const EVT_FACEBOOK_GOT_USER:String = "fb_got_user";
public static const EVT_ACCOUNT_CHANGE:String = "account_change";
public static const EVT_SCOREBOARD_ENTRIES_RECEIVED:String = "scoreboard_entries_received";
public static const EVT_FACEBOOK_WALL_POST_FAILED:String = "fb_wallpost_fail";
public static const EVT_LEVELVAULT_LEVEL_NUMERICS_INCREMENTED:String = "level_numerics_incremented";
public static const EVT_LEVELVAULT_LEVEL_CREATED:String = "level_created";
public static const EVT_METADATA:String = "metadata";
public static const EVT_FACEBOOK_CONNECTED:String = "fb_connected";
public static const META_SORT_ASC:int = 1;
public static const EVT_LEVELVAULT_LEVEL_RATED:String = "level_rated";
public static const EVT_LEVELVAULT_LEVEL_STRINGS_SET:String = "level_strings_set";
public static const EVT_ITEM_PURCHASE:String = "item_purchase";
public static const EVT_LEVELVAULT_LEVEL_NUMERICS_SET:String = "level_numerics_set";
public static const EVT_REGISTRATION_FORM_CLOSED:String = "register_close";
public static const EVT_BEGIN_SESSION:String = "begin_session";
public static const EVT_FACEBOOK_GOT_FRIENDS:String = "fb_got_friends";
public static const EVT_LEVELVAULT_LEVEL_DELETED:String = "level_deleted";
public static const EVT_LOGIN:String = "login";
public static const EVT_FACEBOOK_LOGIN_FAILED:String = "fb_login_failed";
public static const EVT_LOGIN_FORM_CLOSED:String = "login_close";
public static const EVT_LEVELVAULT_GOT_LEVELS:String = "got_levels";
public static const META_SORT_DESC:int = 2;
public static const EVT_NETWORKING_ERROR:String = "networking_error";
public static const EVT_METADATA_ERROR:String = "metadata_error";
public static const EVT_FACEBOOK_WALL_POST_SUCCESS:String = "fb_wallpost_success";
public static const version:String = "01";
public static const EVT_LEVELVAULT_LEVEL_EDITED:String = "level_edited";
public static const EVT_SCOREBOARD_ENTRIES_ERROR:String = "scoreboard_entries_error";
public static const EVT_CONSUMPTION_COMPLETED:String = "consumption_completed";
public static const EVT_LOGIN_FAILED:String = "login_failed";
public static const EVT_UNREGISTERED_NAME:String = "unregistered_name";
public static const EVT_SCOREBOARD_ENTRY_SUBMITTED:String = "scoreboard_entry_submitted";
protected static var _instance:GamerSafe = null;
public function GamerSafe(_arg1){
var parent = _arg1;
_status = "Loading";
_loaded = false;
_stageWidth = 550;
_stageHeight = 400;
_inUse = false;
_tmpSkin = {};
_levelVaultTempAttributes = {};
_levelVaultLastError = "";
_referrer = "";
_loader = new Loader();
_context = new LoaderContext(true);
_request = new URLRequest((("http://components.gamersafe.com/GamerSafe." + version) + ".swf"));
_evt_networkingError = null;
_evt_accountChange = null;
_evt_login = null;
_evt_loginFailed = null;
_evt_beginSession = null;
_evt_beginSessionFailed = null;
_evt_itemPurchase = null;
_evt_itemPurchaseFailed = null;
_evt_apiReady = null;
_evt_confYes = null;
_evt_confNo = null;
_evt_useStarted = null;
_evt_useEnded = null;
_evt_useChanged = null;
_evt_onScoreboardError = null;
_evt_onScoreboardRecieved = null;
_evt_onScoreSubmitted = null;
_evt_onMetaData = null;
_evt_onMetaDataError = null;
_evt_onUnregisteredName = null;
_evt_onConsumptionCompleted = null;
_evt_onRegistrationFormClosed = null;
_evt_onLoginFormClosed = null;
_evt_onOtherGameProfileReceived = null;
_evt_onLevelVaultGotLevel = null;
_evt_onLevelVaultGotLevels = null;
_evt_onLevelVaultLevelAttributesChanged = null;
_evt_onLevelVaultLevelCreated = null;
_evt_onLevelVaultLevelEdited = null;
_evt_onLevelVaultLevelDeleted = null;
_evt_onLevelVaultLevelFlagged = null;
_evt_onLevelVaultLevelRated = null;
_evt_onLevelVaultLevelNumericsIncremented = null;
_evt_onLevelVaultLevelNumericsSet = null;
_evt_onLevelVaultLevelStringsSet = null;
_evt_onFacebookConnected = null;
_evt_onFacebookGotFriends = null;
_evt_onFacebookGotLocalUser = null;
_evt_onFacebookLoginFailed = null;
_evt_onFacebookWallPostSuccess = null;
_evt_onFacebookWallPostFailed = null;
_gamerSafe = null;
super();
if (_instance == null){
_instance = this;
} else {
trace("GamerSafe: Instance Error: The GamerSafe class is a singleton and should only be constructed once. Use Gamersafe.instance instead.");
return;
};
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_context.applicationDomain = ApplicationDomain.currentDomain;
_status = "Downloading";
try {
_loader.load(_request, _context);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onLoadingError);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadingComplete);
} catch(s:SecurityError) {
_status = "Failed";
trace("Security error - GamerSafe library cannot load");
_loader = null;
};
addEventListener(Event.ADDED_TO_STAGE, setupStage);
if ((((((parent is Sprite)) || ((parent is MovieClip)))) || ((parent is Stage)))){
parent.addChild(this);
} else {
trace("Incompatible parent!");
};
}
public function set onFacebookLoginFailed(_arg1:Function):void{
_evt_onFacebookLoginFailed = _arg1;
}
public function get loaded():Boolean{
return (_loaded);
}
public function facebookConfigureAttachment(_arg1:String, _arg2:String=null, _arg3:String=null, _arg4:String=null, _arg5:String=null):void{
if (_loaded == false){
return;
};
_gamerSafe.facebookConfigureAttachment(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function levelVaultRegisterPersistentErrorCallback(_arg1:Function, ... _args):void{
var _local3:Array;
var _local4:*;
_local3 = [];
_local3.push(_arg1);
for each (_local4 in _args) {
_local3.push(_local4);
};
(_gamerSafe.levelVaultRegisterPersistentErrorCallback as Function).apply(this, _local3);
}
public function levelVaultRegisterErrorCallback(_arg1:Function, ... _args):void{
var _local3:Array;
var _local4:*;
_local3 = [];
_local3.push(_arg1);
for each (_local4 in _args) {
_local3.push(_local4);
};
(_gamerSafe.levelVaultRegisterErrorCallback as Function).apply(this, _local3);
}
public function set highScore(_arg1:Number):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.highScore = _arg1;
}
private function e_onBeginSessionFailed(_arg1:Event):void{
if (_evt_beginSessionFailed != null){
_evt_beginSessionFailed();
};
dispatchEvent(_arg1);
}
public function levelVaultIncrementNumerics(_arg1, _arg2:Array):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultIncrementNumerics(_arg1, _arg2));
}
public function levelVaultGetLastSelectedLevel():Object{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", null));
};
return (_gamerSafe.levelVaultGetLastSelectedLevel());
}
public function get onOtherGameProfileReceived():Function{
return (_evt_onOtherGameProfileReceived);
}
public function get gamerTestMode():Boolean{
if (_loaded == false){
return (false);
};
return (_gamerSafe.gamerTestMode);
}
public function get onUseStarted():Function{
return (_evt_useStarted);
}
public function hasAchievement(_arg1:int):Boolean{
if (_loaded == false){
return (false);
};
if (inSession == false){
return (false);
};
return (_gamerSafe.hasAchievement(_arg1));
}
public function facebookGetPicture(_arg1:String="me"):URLRequest{
if (_loaded == false){
return (null);
};
return (_gamerSafe.facebookGetPicture(_arg1));
}
private function e_onOtherGameProfileReceived(_arg1:Event):void{
if (_evt_onOtherGameProfileReceived != null){
_evt_onOtherGameProfileReceived();
};
dispatchEvent(_arg1);
}
private function e_onRegistrationFormClosed(_arg1:Event):void{
if (_evt_onRegistrationFormClosed != null){
_evt_onRegistrationFormClosed();
};
dispatchEvent(_arg1);
}
private function e_onBeginSession(_arg1:Event):void{
if (_evt_beginSession != null){
_evt_beginSession();
};
dispatchEvent(_arg1);
}
public function showStatusBar(_arg1:Object=null):void{
if (_loaded == false){
return;
};
_gamerSafe.showStatusBar(_arg1);
}
public function get failed():Boolean{
if (_loaded == false){
return (false);
};
return (_gamerSafe.failed);
}
private function e_onLevelVaultLevelNumericsIncremented(_arg1:Event):void{
if (_evt_onLevelVaultLevelNumericsIncremented != null){
_evt_onLevelVaultLevelNumericsIncremented();
};
dispatchEvent(_arg1);
}
public function closeItemInterface():void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.closeItemInterface();
}
public function get onMetaDataError():Function{
return (_evt_onMetaDataError);
}
public function set onOtherGameProfileReceived(_arg1:Function):void{
_evt_onOtherGameProfileReceived = _arg1;
}
private function e_onLevelVaultLevelStringsSet(_arg1:Event):void{
if (_evt_onLevelVaultLevelStringsSet != null){
_evt_onLevelVaultLevelStringsSet();
};
dispatchEvent(_arg1);
}
private function e_onLevelVaultLevelEdited(_arg1:Event):void{
if (_evt_onLevelVaultLevelEdited != null){
_evt_onLevelVaultLevelEdited();
};
dispatchEvent(_arg1);
}
public function get latestItemConsumptionInfo():Object{
if (_loaded == false){
return (null);
};
return (_gamerSafe.getLatestItemConsumptionInfo());
}
public function levelVaultFetchLevelByID(_arg1:int):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultFetchLevelByID(_arg1));
}
private function e_onMetaDataError(_arg1:Event):void{
if (_evt_onMetaDataError != null){
_evt_onMetaDataError();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelEdited(_arg1:Function):void{
_evt_onLevelVaultLevelEdited = _arg1;
}
public function get onBeginSessionFailed():Function{
return (_evt_beginSessionFailed);
}
public function set onUseStarted(_arg1:Function):void{
_evt_useStarted = _arg1;
}
private function get levelVaultEventObject():EventDispatcher{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", null));
};
return (_gamerSafe.levelVaultEventObject);
}
private function e_onUseEnded(_arg1):void{
if (_inUse == false){
return;
};
_inUse = false;
if (_evt_useChanged != null){
_evt_useChanged();
};
if (_evt_useEnded != null){
_evt_useEnded();
};
dispatchEvent(new Event("inUseEnded"));
dispatchEvent(new Event("inUseChanged"));
}
public function set onScoreSubmitted(_arg1:Function):void{
_evt_onScoreSubmitted = _arg1;
}
public function get levelVaultLastSelectedLevelsReceipt():int{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultLastSelectedLevelsReceipt);
}
public function get onUseEnded():Function{
return (_evt_useEnded);
}
public function showFriendsList(_arg1:int, _arg2:int, _arg3:int=400, _arg4:int=350):void{
if (_loaded == false){
return;
};
_gamerSafe.facebookShowFriendsList(_arg1, _arg2, _arg3, _arg4);
}
public function set onMetaData(_arg1:Function):void{
_evt_onMetaData = _arg1;
}
public function get onAccountChange():Function{
return (_evt_accountChange);
}
private function e_onConfirmNo(_arg1:Event):void{
if (_evt_confNo != null){
_evt_confNo();
};
dispatchEvent(new Event("confirmedNo"));
}
public function get onLevelVaultLevelNumericsIncremented():Function{
return (_evt_onLevelVaultLevelNumericsIncremented);
}
public function get onItemPurchase():Function{
return (_evt_itemPurchase);
}
public function set onScoreboardRecieved(_arg1:Function):void{
_evt_onScoreboardRecieved = _arg1;
}
public function levelVaultSetExpiringStringAttribute(_arg1, _arg2:String, _arg3:String, _arg4:String):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (levelVaultSetExpiringStringAttributes(_arg1, [_arg2], [_arg3], [_arg4]));
}
public function bestowAchievement(_arg1:uint):Boolean{
if (_loaded == false){
return (false);
};
_gamerSafe.bestowAchievement(_arg1);
return (true);
}
public function get onLogin():Function{
return (_evt_login);
}
private function e_onAccountChange(_arg1:Event):void{
if (_evt_accountChange != null){
_evt_accountChange();
};
dispatchEvent(_arg1);
}
public function levelVaultGetLevelsByDateCreated(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLevelsByDateCreated(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function hasItem(_arg1:int):Boolean{
if (_loaded == false){
return (false);
};
if (inSession == false){
return (false);
};
return (_gamerSafe.hasItem(_arg1));
}
public function requestMetaDataByType(_arg1:int, _arg2:int=1000):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.requestMetaDataByType(_arg1, _arg2);
}
public function get levelVaultLastEditedLevelID():uint{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLastEditedLevelID());
}
public function levelVaultSetStringAttributes(_arg1, _arg2:Array, _arg3:Array):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultSetStringAttributes(_arg1, _arg2, _arg3));
}
public function get username():String{
if (_loaded == false){
return ("GamerSafe");
};
return (_gamerSafe.username);
}
public function levelVaultSetExpiringNumericAttribute(_arg1, _arg2:String, _arg3:Number, _arg4:String):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (levelVaultSetExpiringNumericAttributes(_arg1, [_arg2], [_arg3], [_arg4]));
}
public function set onMetaDataError(_arg1:Function):void{
_evt_onMetaDataError = _arg1;
}
private function e_onConfirmYes(_arg1:Event):void{
if (_evt_confYes != null){
_evt_confYes();
};
dispatchEvent(new Event("confirmedYes"));
}
public function get onLevelVaultLevelDeleted():Function{
return (_evt_onLevelVaultLevelDeleted);
}
public function set onUseEnded(_arg1:Function):void{
_evt_useEnded = _arg1;
}
public function set onUseChanged(_arg1:Function):void{
_evt_useChanged = _arg1;
}
private function e_onLevelVaultLevelAttributesChanged(_arg1:Event):void{
if (_evt_onLevelVaultLevelAttributesChanged != null){
_evt_onLevelVaultLevelAttributesChanged();
};
dispatchEvent(_arg1);
}
public function levelVaultSetAttributes(_arg1, _arg2:Object):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultSetAttributes(_arg1, _arg2));
}
public function requestOtherGameProfile(_arg1:String):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.requestOtherGameProfile(_arg1);
}
public function set onBeginSessionFailed(_arg1:Function):void{
_evt_beginSessionFailed = _arg1;
}
public function showFriendsPanel(_arg1:int=400, _arg2:int=350):void{
if (_loaded == false){
return;
};
_gamerSafe.facebookShowFriendsPanel(_arg1, _arg2);
}
public function get onLevelVaultLevelStringsSet():Function{
return (_evt_onLevelVaultLevelStringsSet);
}
public function levelVaultGetLevelsByRating(_arg1:Number, _arg2:Number, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLevelsByRating(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function set onLevelVaultLevelRated(_arg1:Function):void{
_evt_onLevelVaultLevelRated = _arg1;
}
public function get onFacebookGotLocalUser():Function{
return (_evt_onFacebookGotLocalUser);
}
private function e_onUnregisteredName(_arg1:Event):void{
if (_evt_onUnregisteredName != null){
_evt_onUnregisteredName();
};
dispatchEvent(_arg1);
}
public function levelVaultRateLevel(_arg1, _arg2:uint):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultRateLevel(_arg1, _arg2));
}
private function levelVaultCreateLevelFromObject(_arg1:Object):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultCreateLevelFromObject(_arg1));
}
public function get onBeginSession():Function{
return (_evt_beginSession);
}
public function consumeItem(_arg1:int, _arg2:int):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.consumeItem(_arg1, _arg2);
}
public function hideFriendsList():void{
if (_loaded == false){
return;
};
_gamerSafe.facebookHideFriendsList();
}
public function get levelVaultReady():Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultReady);
}
public function levelVaultRegisterCallback(_arg1:Function, ... _args):void{
var _local3:Array;
var _local4:*;
_local3 = [];
_local3.push(_arg1);
for each (_local4 in _args) {
_local3.push(_local4);
};
(_gamerSafe.levelVaultRegisterCallback as Function).apply(this, _local3);
}
public function get signupUrl():String{
if (_loaded == false){
return ("");
};
return (_gamerSafe.signupUrl);
}
public function get onLevelVaultLevelFlagged():Function{
return (_evt_onLevelVaultLevelFlagged);
}
public function get levelVaultShareCookie():String{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", null));
};
return (_gamerSafe.levelVaultShareCookie);
}
public function set onAccountChange(_arg1:Function):void{
_evt_accountChange = _arg1;
}
public function set onFacebookWallPostSuccess(_arg1:Function):void{
_evt_onFacebookWallPostSuccess = _arg1;
}
public function levelVaultFail(_arg1:String, _arg2=false){
trace("[ LevelVault Error:", _arg1, "]");
_levelVaultLastError = _arg1;
return (_arg2);
}
public function set onApiReady(_arg1:Function):void{
_evt_apiReady = _arg1;
}
public function set onLevelVaultLevelNumericsIncremented(_arg1:Function):void{
_evt_onLevelVaultLevelNumericsIncremented = _arg1;
}
public function levelVaultGetLevelsByDateModified(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLevelsByDateModified(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function set onItemPurchase(_arg1:Function):void{
_evt_itemPurchase = _arg1;
}
private function e_onLevelVaultGotLevel(_arg1:Event):void{
if (_evt_onLevelVaultGotLevel != null){
_evt_onLevelVaultGotLevel();
};
dispatchEvent(_arg1);
}
public function get onConsumptionCompleted():Function{
return (_evt_onConsumptionCompleted);
}
private function e_onLevelVaultLevelNumericsSet(_arg1:Event):void{
if (_evt_onLevelVaultLevelNumericsSet != null){
_evt_onLevelVaultLevelNumericsSet();
};
dispatchEvent(_arg1);
}
public function get levelVaultLastCreatedLevelID():uint{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLastCreatedLevelID());
}
public function get wantsNewsletter():Boolean{
if (_loaded == false){
return (false);
};
return (_gamerSafe.wantsNewsletter);
}
public function get onConfirmNo():Function{
return (_evt_confNo);
}
public function enable():void{
if (_status == "Disabled"){
_status = "Ready";
_loaded = true;
};
}
public function set onFacebookConnected(_arg1:Function):void{
_evt_onFacebookConnected = _arg1;
}
public function get paymentUrl():String{
if (_loaded == false){
return ("");
};
return (_gamerSafe.paymentUrl);
}
public function logout():void{
if (_loaded == false){
return;
};
_gamerSafe.logout();
}
public function set partner(_arg1:String):void{
if (_loaded == false){
return;
};
_gamerSafe.setPartner(_arg1);
}
public function get latestScoreboardEntries():Object{
if (_loaded == false){
return (null);
};
return (_gamerSafe.getLatestScoreboardEntries());
}
private function e_onScoreboardError(_arg1:Event):void{
if (_evt_onScoreboardError != null){
_evt_onScoreboardError();
};
dispatchEvent(_arg1);
}
public function set onItemPurchaseFailed(_arg1:Function):void{
_evt_itemPurchaseFailed = _arg1;
}
public function get onLoginFailed():Function{
return (_evt_loginFailed);
}
public function levelVaultGetLastSelectedLevels():Array{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", []));
};
return (_gamerSafe.levelVaultGetLastSelectedLevels());
}
public function get latestItemPurchaseInfo():Object{
if (_loaded == false){
return (null);
};
return (_gamerSafe.getLatestItemPurchaseInfo());
}
public function set onLogin(_arg1:Function):void{
_evt_login = _arg1;
}
private function beginSession(_arg1:String, _arg2:String):Boolean{
if (_loaded == false){
return (false);
};
_gamerSafe.beginSession(_arg1, _arg2, _referrer);
return (true);
}
private function e_onFacebookLoginFailed(_arg1:Event):void{
if (_evt_onFacebookLoginFailed != null){
_evt_onFacebookLoginFailed();
};
dispatchEvent(_arg1);
}
public function get onRegistrationFormClosed():Function{
return (_evt_onRegistrationFormClosed);
}
public function get facebookLocalUser():Object{
if (_loaded == false){
return ({});
};
return (_gamerSafe.facebookLocalUser);
}
public function get inSession():Boolean{
if (_loaded == false){
return (false);
};
return (_gamerSafe.inSession);
}
private function onLoadingError(_arg1:IOErrorEvent):void{
_loaded = false;
_status = "Failed";
trace("Failed to load GamerSafe");
}
public function setRegistrationDefaults(_arg1:Object):void{
if (_loaded == false){
return;
};
_gamerSafe.setRegisterDefaults(_arg1);
}
public function levelVaultGetLevelRating(_arg1:Object=null):Number{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLevelRating(_arg1));
}
public function showPublisherPanel(_arg1:String="me", _arg2:int=400, _arg3:int=350):void{
if (_loaded == false){
return;
};
_gamerSafe.facebookShowPublisherPanel(_arg1, _arg2, _arg3);
}
public function get gamerXP():uint{
if (_loaded == false){
return (0);
};
return (_gamerSafe.gamerXP);
}
public function levelVaultGetLevelsByNumericData(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=true, _arg5:uint=20, _arg6:uint=0):int{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLevelsByNumericData(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
}
public function levelVaultIncrementNumeric(_arg1, _arg2:String):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultIncrementNumeric(_arg1, _arg2));
}
public function get latestOtherGameProfile():Object{
if (_loaded == false){
return (null);
};
return (_gamerSafe.getLatestOtherGameProfile());
}
public function setMetaData(_arg1:int, _arg2:Number):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
if (!(loggedIn)){
return;
};
_gamerSafe.setMetaData(_arg1, _arg2);
}
private function e_onUseStarted(_arg1):void{
if (_inUse == true){
return;
};
_inUse = true;
if (_evt_useChanged != null){
_evt_useChanged();
};
if (_evt_useStarted != null){
_evt_useStarted();
};
dispatchEvent(new Event("inUseStarted"));
dispatchEvent(new Event("inUseChanged"));
}
public function set onLevelVaultLevelAttributesChanged(_arg1:Function):void{
_evt_onLevelVaultLevelAttributesChanged = _arg1;
}
public function get onLevelVaultGotLevel():Function{
return (_evt_onLevelVaultGotLevel);
}
private function levelVaultSetTempAttributes(_arg1:Event):void{
removeEventListener(_slot1.EVT_LEVELVAULT_LEVEL_CREATED, levelVaultSetTempAttributes);
levelVaultSetAttributes(levelVaultLastCreatedLevelID, _levelVaultTempAttributes);
_levelVaultTempAttributes = {};
}
public function set onLevelVaultLevelDeleted(_arg1:Function):void{
_evt_onLevelVaultLevelDeleted = _arg1;
}
public function set onScoreboardError(_arg1:Function):void{
_evt_onScoreboardError = _arg1;
}
public function set autoLogin(_arg1:Boolean):void{
if (_loaded == false){
return;
};
_gamerSafe.autoLogin = _arg1;
}
private function e_onScoreboardRecieved(_arg1:Event):void{
if (_evt_onScoreboardRecieved != null){
_evt_onScoreboardRecieved();
};
dispatchEvent(_arg1);
}
public function levelVaultCreateLevel(_arg1):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
if (loggedIn == false){
return (levelVaultFail("You must be logged in to create levels"));
};
if ((_arg1 is ByteArray)){
return (levelVaultCreateLevelFromBytes(_arg1));
};
return (levelVaultCreateLevelFromObject(_arg1));
}
public function get onFacebookLoginFailed():Function{
return (_evt_onFacebookLoginFailed);
}
public function flashBar():void{
if (_loaded == false){
return;
};
_gamerSafe.flashBar();
}
public function levelVaultFlagLevel(_arg1):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultFlagLevel(_arg1));
}
public function set achievementPopupPosition(_arg1:Point):void{
if (_loaded == false){
return;
};
_gamerSafe.achievementPopupPosition = _arg1;
}
public function showScoreSubmit(_arg1:Number, _arg2:String, _arg3:Boolean=false, _arg4:int=-1):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.showScoreSubmitPrompt(_arg1, _arg2, _arg4, _arg3);
}
private function levelVaultCreateLevelFromBytes(_arg1:ByteArray):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultCreateLevel(_arg1));
}
public function hideInterface():void{
if (_loaded == false){
return;
};
_gamerSafe.visible = false;
}
public function set onUnregisteredName(_arg1:Function):void{
_evt_onUnregisteredName = _arg1;
}
public function set onFacebookGotFriends(_arg1:Function):void{
_evt_onFacebookGotFriends = _arg1;
}
public function set onFacebookGotLocalUser(_arg1:Function):void{
_evt_onFacebookGotLocalUser = _arg1;
}
private function e_onFacebookWallPostFailed(_arg1:Event):void{
if (_evt_onFacebookWallPostFailed != null){
_evt_onFacebookWallPostFailed();
};
dispatchEvent(_arg1);
}
public function get highScore():Number{
if (_loaded == false){
return (0);
};
if (inSession == false){
return (0);
};
return (_gamerSafe.highScore);
}
public function get inUse():Boolean{
return (_inUse);
}
public function levelVaultEditLevel(_arg1, _arg2:ByteArray):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
if (loggedIn == false){
return (levelVaultFail("You must be logged in to edit levels"));
};
return (_gamerSafe.levelVaultEditLevel(_arg1, _arg2));
}
public function get account():Object{
if (_loaded == false){
return (null);
};
return (_gamerSafe.account);
}
public function levelVaultSetNumericAttributes(_arg1, _arg2:Array, _arg3:Array):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultSetNumericAttributes(_arg1, _arg2, _arg3));
}
public function set savedGame(_arg1:String):void{
if (_loaded == false){
return;
};
_gamerSafe.savedGame = _arg1;
}
public function levelVaultGetLevelNumRatings(_arg1:Object=null):int{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLevelNumRatings(_arg1));
}
public function get applicationDomain():ApplicationDomain{
return (_loader.contentLoaderInfo.applicationDomain);
}
public function set onLevelVaultLevelStringsSet(_arg1:Function):void{
_evt_onLevelVaultLevelStringsSet = _arg1;
}
public function get iconUrl():String{
if (_loaded == false){
return ("");
};
return (_gamerSafe.iconUrl);
}
private function e_onFacebookGotLocalUser(_arg1:Event):void{
if (_evt_onFacebookGotLocalUser != null){
_evt_onFacebookGotLocalUser();
};
dispatchEvent(_arg1);
}
private function e_onNetworkingError(_arg1:Event):void{
if (_evt_networkingError != null){
_evt_networkingError();
};
dispatchEvent(_arg1);
}
public function showRegistrationForm():void{
if (_loaded == false){
return;
};
_gamerSafe.showRegistrationForm();
}
private function e_onLevelVaultLevelCreated(_arg1:Event):void{
if (_evt_onLevelVaultLevelCreated != null){
_evt_onLevelVaultLevelCreated();
};
dispatchEvent(_arg1);
}
public function get onScoreSubmitted():Function{
return (_evt_onScoreSubmitted);
}
public function get onMetaData():Function{
return (_evt_onMetaData);
}
public function set onBeginSession(_arg1:Function):void{
_evt_beginSession = _arg1;
}
public function get onScoreboardRecieved():Function{
return (_evt_onScoreboardRecieved);
}
public function set onLevelVaultLevelFlagged(_arg1:Function):void{
_evt_onLevelVaultLevelFlagged = _arg1;
}
public function get loggedIn():Boolean{
if (_loaded == false){
return (false);
};
return (_gamerSafe.loggedIn);
}
private function e_onLoginFormClosed(_arg1:Event):void{
if (_evt_onLoginFormClosed != null){
_evt_onLoginFormClosed();
};
dispatchEvent(_arg1);
}
public function get onLevelVaultLevelEdited():Function{
return (_evt_onLevelVaultLevelEdited);
}
private function e_onMetaData(_arg1:Event):void{
if (_evt_onMetaData != null){
_evt_onMetaData();
};
dispatchEvent(_arg1);
}
private function e_onItemPurchaseFailed(_arg1:Event):void{
if (_evt_itemPurchaseFailed != null){
_evt_itemPurchaseFailed();
};
dispatchEvent(_arg1);
}
public function setStyle(_arg1:String, _arg2):void{
var _local3:Object;
if (_loaded == false){
_tmpSkin[_arg1] = _arg2;
return;
};
_local3 = new Object();
_local3[_arg1] = _arg2;
_gamerSafe.setSkin(_local3);
}
public function facebookWallPost(_arg1:String, _arg2:String="me"):void{
if (_loaded == false){
return;
};
_gamerSafe.facebookWallPost(_arg1, _arg2);
}
public function showScoreboard(_arg1:int=-1):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.showScoreboard(_arg1);
}
public function levelVaultSetStringAttribute(_arg1, _arg2:String, _arg3:String):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultSetStringAttribute(_arg1, _arg2, _arg3));
}
public function showLogin(_arg1:Object=null):void{
if (_loaded == false){
return;
};
_gamerSafe.showLogin(_arg1);
}
public function requestMetaDataByValue(_arg1:int, _arg2:Number, _arg3:Number, _arg4:int=-1, _arg5:int=1):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.requestMetaDataByValue(_arg1, _arg2, _arg3, _arg4, _arg5);
}
private function setupStage(_arg1:Event):void{
if (stage == null){
return;
};
_stage = stage;
_stage.addEventListener(Event.RESIZE, resizeStage);
_stageWidth = stage.stageWidth;
_stageHeight = stage.stageHeight;
if (root != null){
_referrer = root.loaderInfo.loaderURL;
};
if (loaded){
_gamerSafe.componentWidth = _stageWidth;
_gamerSafe.componentHeight = _stageHeight;
_stage.addChild((_gamerSafe as Sprite));
};
}
public function get onUseChanged():Function{
return (_evt_useChanged);
}
public function saveToScoreboard(_arg1:Number, _arg2:String, _arg3:int=-1, _arg4:String=""):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.saveToScoreboard(_arg1, _arg2, _arg3, _arg4);
}
public function get onLevelVaultLevelRated():Function{
return (_evt_onLevelVaultLevelRated);
}
private function e_onConsumptionCompleted(_arg1:Event):void{
if (_evt_onConsumptionCompleted != null){
_evt_onConsumptionCompleted();
};
dispatchEvent(_arg1);
}
public function set onConfirmYes(_arg1:Function):void{
_evt_confYes = _arg1;
}
public function get onFacebookWallPostSuccess():Function{
return (_evt_onFacebookWallPostSuccess);
}
public function bestowFreeItem(_arg1:int):Boolean{
if (_loaded == false){
return (false);
};
_gamerSafe.bestowFreeItem(_arg1);
return (true);
}
public function set onLevelVaultGotLevels(_arg1:Function):void{
_evt_onLevelVaultGotLevels = _arg1;
}
public function get countryCode():String{
if (_loaded == false){
return ("");
};
if (inSession == false){
return ("");
};
return (_gamerSafe.countryCode);
}
public function get FAQUrl():String{
if (_loaded == false){
return ("");
};
return (_gamerSafe.FAQUrl);
}
public function levelVaultSetNumericAttribute(_arg1, _arg2:String, _arg3:Number):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultSetNumericAttribute(_arg1, _arg2, _arg3));
}
public function levelVaultDeleteLevel(_arg1):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultDeleteLevel(_arg1));
}
public function get onApiReady():Function{
return (_evt_apiReady);
}
private function resizeStage(_arg1:Event):void{
if (loaded == false){
return;
};
_stageWidth = _stage.stageWidth;
_stageHeight = _stage.stageHeight;
_gamerSafe.componentWidth = _stageWidth;
_gamerSafe.componentHeight = _stageHeight;
}
private function onLoadingComplete(_arg1:Event):void{
var _local2:EventDispatcher;
_status = "Ready";
_loaded = true;
_gamerSafe = (_loader.content as Object);
_gamerSafe.componentWidth = _stageWidth;
_gamerSafe.componentHeight = _stageHeight;
_gamerSafe.setSkin(_tmpSkin);
_gamerSafe.addEventListener(EVT_NETWORKING_ERROR, e_onNetworkingError);
_gamerSafe.addEventListener(EVT_ACCOUNT_CHANGE, e_onAccountChange);
_gamerSafe.addEventListener(EVT_LOGIN, e_onLogin);
_gamerSafe.addEventListener(EVT_LOGIN_FAILED, e_onLoginFailed);
_gamerSafe.addEventListener(EVT_BEGIN_SESSION, e_onBeginSession);
_gamerSafe.addEventListener(EVT_BEGIN_SESSION_FAILED, e_onBeginSessionFailed);
_gamerSafe.addEventListener(EVT_ITEM_PURCHASE, e_onItemPurchase);
_gamerSafe.addEventListener(EVT_ITEM_PURCHASE_FAILED, e_onItemPurchaseFailed);
_gamerSafe.addEventListener("yes", e_onConfirmYes);
_gamerSafe.addEventListener("no", e_onConfirmNo);
_gamerSafe.addEventListener("dialog_begin", e_onUseStarted);
_gamerSafe.addEventListener("dialog_end", e_onUseEnded);
_gamerSafe.addEventListener(EVT_SCOREBOARD_ENTRIES_ERROR, e_onScoreboardError);
_gamerSafe.addEventListener(EVT_SCOREBOARD_ENTRIES_RECEIVED, e_onScoreboardRecieved);
_gamerSafe.addEventListener(EVT_SCOREBOARD_ENTRY_SUBMITTED, e_onScoreSubmitted);
_gamerSafe.addEventListener(EVT_METADATA, e_onMetaData);
_gamerSafe.addEventListener(EVT_METADATA_ERROR, e_onMetaDataError);
_gamerSafe.addEventListener(EVT_UNREGISTERED_NAME, e_onUnregisteredName);
_gamerSafe.addEventListener(EVT_CONSUMPTION_COMPLETED, e_onConsumptionCompleted);
_gamerSafe.addEventListener(EVT_REGISTRATION_FORM_CLOSED, e_onRegistrationFormClosed);
_gamerSafe.addEventListener(EVT_LOGIN_FORM_CLOSED, e_onLoginFormClosed);
_gamerSafe.addEventListener(EVT_OTHER_GAME_PROFILE_RECEIVED, e_onOtherGameProfileReceived);
_local2 = levelVaultEventObject;
_local2.addEventListener(EVT_LEVELVAULT_GOT_LEVELS, e_onLevelVaultGotLevels);
_local2.addEventListener(EVT_LEVELVAULT_GOT_SINGLE_LEVEL, e_onLevelVaultGotLevel);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_CREATED, e_onLevelVaultLevelCreated);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_DELETED, e_onLevelVaultLevelDeleted);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_EDITED, e_onLevelVaultLevelEdited);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_FLAGGED, e_onLevelVaultLevelFlagged);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_RATED, e_onLevelVaultLevelRated);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_NUMERICS_SET, e_onLevelVaultLevelNumericsSet);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_STRINGS_SET, e_onLevelVaultLevelStringsSet);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_NUMERICS_INCREMENTED, e_onLevelVaultLevelNumericsIncremented);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_NUMERICS_SET, e_onLevelVaultLevelAttributesChanged);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_STRINGS_SET, e_onLevelVaultLevelAttributesChanged);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_NUMERICS_INCREMENTED, e_onLevelVaultLevelAttributesChanged);
_gamerSafe.addEventListener(EVT_FACEBOOK_CONNECTED, e_onFacebookConnected);
_gamerSafe.addEventListener(EVT_FACEBOOK_LOGIN_FAILED, e_onFacebookLoginFailed);
_gamerSafe.addEventListener(EVT_FACEBOOK_GOT_USER, e_onFacebookGotLocalUser);
_gamerSafe.addEventListener(EVT_FACEBOOK_GOT_FRIENDS, e_onFacebookGotFriends);
_gamerSafe.addEventListener(EVT_FACEBOOK_WALL_POST_SUCCESS, e_onFacebookWallPostSuccess);
_gamerSafe.addEventListener(EVT_FACEBOOK_WALL_POST_FAILED, e_onFacebookWallPostFailed);
if (_stage != null){
_stage.addChild((_gamerSafe as Sprite));
};
if (root != null){
_referrer = root.loaderInfo.loaderURL;
};
if (_storedPasscode != ""){
beginSession(_storedPasscode, _storedHashseed);
};
showStatusBar();
e_onApiReady(new Event("apiReady"));
}
private function e_onFacebookGotFriends(_arg1:Event):void{
if (_evt_onFacebookGotFriends != null){
_evt_onFacebookGotFriends();
};
dispatchEvent(_arg1);
}
public function showAchievements(_arg1:Object=null):void{
if (_loaded == false){
return;
};
_gamerSafe.showAchievements(_arg1);
}
public function requestMetaDataForAccount(_arg1:int=-1):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.requestMetaDataForAccount(_arg1);
}
public function showInterface():void{
if (_loaded == false){
return;
};
_gamerSafe.visible = true;
}
public function get onFacebookConnected():Function{
return (_evt_onFacebookConnected);
}
private function get sprite():Sprite{
if (_loaded == false){
return (null);
};
return (_gamerSafe.sprite);
}
public function levelVaultGetLevelData(_arg1:Object=null):ByteArray{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", null));
};
return (_gamerSafe.levelVaultGetLevelData(_arg1));
}
private function e_onApiReady(_arg1:Event):void{
if (_evt_apiReady != null){
_evt_apiReady();
};
dispatchEvent(_arg1);
}
public function get onItemPurchaseFailed():Function{
return (_evt_itemPurchaseFailed);
}
public function hidePublisher():void{
if (_loaded == false){
return;
};
_gamerSafe.facebookHidePublisher();
}
public function set onConsumptionCompleted(_arg1:Function):void{
_evt_onConsumptionCompleted = _arg1;
}
public function showSmallScoreSubmit(_arg1:Number, _arg2:String, _arg3:Boolean=false, _arg4:int=-1):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.showSmallScoreSubmitPrompt(_arg1, _arg2, _arg4, _arg3);
}
private function e_onScoreSubmitted(_arg1:Event):void{
if (_evt_onScoreSubmitted != null){
_evt_onScoreSubmitted();
};
dispatchEvent(_arg1);
}
public function get onLevelVaultLevelAttributesChanged():Function{
return (_evt_onLevelVaultLevelAttributesChanged);
}
public function disable():void{
if (_status == "Ready"){
_status = "Disabled";
_loaded = false;
};
}
public function get facebookLocalUserId():int{
if (_loaded == false){
return (0);
};
return (_gamerSafe.facebookLocalUserId);
}
private function e_onLogin(_arg1:Event):void{
if (_evt_login != null){
_evt_login();
};
flashBar();
dispatchEvent(_arg1);
}
private function e_onLevelVaultGotLevels(_arg1:Event):void{
if (_evt_onLevelVaultGotLevels != null){
_evt_onLevelVaultGotLevels();
};
dispatchEvent(_arg1);
}
public function get autoLogin():Boolean{
if (_loaded == false){
return (false);
};
return (_gamerSafe.autoLogin);
}
public function getItemById(_arg1:int):Object{
var _local2:Array;
var _local3:Object;
if (_loaded == false){
return (null);
};
if (inSession == false){
return (null);
};
_local2 = items;
for each (_local3 in _local2) {
if (_local3.id == _arg1){
return (_local3);
};
};
return (null);
}
public function set wantsNewsletter(_arg1:Boolean):void{
if (_loaded == true){
_gamerSafe.wantsNewsletter = _arg1;
};
}
public function set onConfirmNo(_arg1:Function):void{
_evt_confNo = _arg1;
}
public function get onUnregisteredName():Function{
return (_evt_onUnregisteredName);
}
public function get unregisteredName():String{
if (_loaded == false){
return ("");
};
return (_gamerSafe.unregisteredName);
}
public function get achievementPopupPosition():Point{
if (_loaded == false){
return (new Point(0, 0));
};
return (_gamerSafe.achievementPopupPosition);
}
public function get onFacebookGotFriends():Function{
return (_evt_onFacebookGotFriends);
}
public function levelVaultGetLevelID(_arg1:Object=null):uint{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", null));
};
return (_gamerSafe.levelVaultGetLevelID(_arg1));
}
public function get savedGame():String{
if (_loaded == false){
return ("");
};
if (_gamerSafe.savedGame == null){
return ("");
};
return (_gamerSafe.savedGame);
}
public function showMessageBox(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
if (_loaded == false){
return;
};
_gamerSafe.messageBox(_arg1, _arg2, _arg3);
}
public function get onScoreboardError():Function{
return (_evt_onScoreboardError);
}
public function get achievements():Array{
if (_loaded == false){
return ([]);
};
if (inSession == false){
return ([]);
};
return (_gamerSafe.achievementList);
}
public function set onNetworkingError(_arg1:Function):void{
_evt_networkingError = _arg1;
}
public function get startingTime():Date{
if (_loaded == false){
return (null);
};
if (inSession == false){
return (null);
};
return (_gamerSafe.startingTime);
}
public function levelVaultSetExpiringStringAttributes(_arg1, _arg2:Array, _arg3:Array, _arg4:Array):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultSetExpiringStringAttributes(_arg1, _arg2, _arg3, _arg4));
}
public function get facebookLoggedIn():Boolean{
if (_loaded == false){
return (false);
};
return (_gamerSafe.facebookLoggedIn);
}
public function levelVaultGetLevelAsObject(_arg1:Object=null):Object{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", null));
};
return (_gamerSafe.levelVaultGetLevelAsObject(_arg1));
}
public function showSmallScoreboard(_arg1:int=-1):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.showSmallScoreboard(_arg1);
}
public function get gamerGold():uint{
if (_loaded == false){
return (0);
};
return (_gamerSafe.gamerGold);
}
private function e_onFacebookWallPostSuccess(_arg1:Event):void{
if (_evt_onFacebookWallPostSuccess != null){
_evt_onFacebookWallPostSuccess();
};
dispatchEvent(_arg1);
}
public function facebookConnect():void{
if (_loaded == false){
return;
};
_gamerSafe.facebookConnect();
}
public function get onConfirmYes():Function{
return (_evt_confYes);
}
public function set onLoginFailed(_arg1:Function):void{
_evt_loginFailed = _arg1;
}
public function set onRegistrationFormClosed(_arg1:Function):void{
_evt_onRegistrationFormClosed = _arg1;
}
private function e_onLoginFailed(_arg1:Event):void{
if (_evt_loginFailed != null){
_evt_loginFailed();
};
dispatchEvent(_arg1);
}
public function get onLevelVaultGotLevels():Function{
return (_evt_onLevelVaultGotLevels);
}
public function levelVaultCreateLevelWithAttributes(_arg1, _arg2:Object):Boolean{
if (levelVaultCreateLevel(_arg1)){
_levelVaultTempAttributes = _arg2;
addEventListener(_slot1.EVT_LEVELVAULT_LEVEL_CREATED, levelVaultSetTempAttributes);
return (true);
};
return (levelVaultFail(_levelVaultLastError));
}
public function set onFacebookWallPostFailed(_arg1:Function):void{
_evt_onFacebookWallPostFailed = _arg1;
}
public function set onLevelVaultLevelCreated(_arg1:Function):void{
_evt_onLevelVaultLevelCreated = _arg1;
}
public function login(_arg1:String, _arg2:String, _arg3:Boolean=false):void{
if (_loaded == false){
return;
};
_gamerSafe.login(_arg1, _arg2, _arg3);
}
public function levelVaultGetLevelAttributes(_arg1:Object=null):Array{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", []));
};
return (_gamerSafe.levelVaultGetLevelAttributes(_arg1));
}
public function levelVaultSetExpiringNumericAttributes(_arg1, _arg2:Array, _arg3:Array, _arg4:Array):Boolean{
if (_loaded == false){
return (levelVaultFail("API not yet loaded"));
};
return (_gamerSafe.levelVaultSetExpiringNumericAttributes(_arg1, _arg2, _arg3, _arg4));
}
public function set onLoginFormClosed(_arg1:Function):void{
_evt_onLoginFormClosed = _arg1;
}
private function e_onLevelVaultLevelDeleted(_arg1:Event):void{
if (_evt_onLevelVaultLevelDeleted != null){
_evt_onLevelVaultLevelDeleted();
};
dispatchEvent(_arg1);
}
public function tryAutoLogin():void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.tryAutoLogin();
}
public function levelVaultGetLevelAsCustomObject(_arg1:Class, _arg2:Object=null){
if (_loaded == false){
return (levelVaultFail("API not yet loaded", null));
};
return (_gamerSafe.levelVaultGetLevelAsCustomObject(_arg1, _arg2));
}
public function showPublisher(_arg1:int, _arg2:int, _arg3:String="me", _arg4:int=400, _arg5:int=350):void{
if (_loaded == false){
return;
};
_gamerSafe.facebookShowPublisher(_arg3, _arg1, _arg2, _arg4, _arg5);
}
public function set onLevelVaultGotLevel(_arg1:Function):void{
_evt_onLevelVaultGotLevel = _arg1;
}
public function requestScoreboardEntries(_arg1:int=-1):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.requestScoreboardEntries(_arg1);
}
public function set onLevelVaultLevelNumericsSet(_arg1:Function):void{
_evt_onLevelVaultLevelNumericsSet = _arg1;
}
public function showShop(_arg1:Object=null):void{
if (_loaded == false){
return;
};
_gamerSafe.showShop(_arg1);
}
public function get onNetworkingError():Function{
return (_evt_networkingError);
}
public function get onFacebookWallPostFailed():Function{
return (_evt_onFacebookWallPostFailed);
}
public function hideStatusBar():void{
if (_loaded == false){
return;
};
_gamerSafe.hideStatusBar();
}
public function get levelVaultLastError():String{
return (_levelVaultLastError);
}
private function e_onLevelVaultLevelRated(_arg1:Event):void{
if (_evt_onLevelVaultLevelStringsSet != null){
_evt_onLevelVaultLevelStringsSet();
};
dispatchEvent(_arg1);
}
public function levelVaultGetLevelsByStringData(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (_loaded == false){
return (levelVaultFail("API not yet loaded", 0));
};
return (_gamerSafe.levelVaultGetLevelsByStringData(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function closeScoreboard():void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.closeScoreboard();
}
public function showPopup(_arg1:String, _arg2:Object=null):void{
if (_loaded == false){
return;
};
_gamerSafe.showPopup(_arg1, _arg2);
}
public function get onLevelVaultLevelCreated():Function{
return (_evt_onLevelVaultLevelCreated);
}
public function get latestMetaDataResult():Array{
if (_loaded == false){
return ([]);
};
return (_gamerSafe.metaData);
}
public function purchaseItem(_arg1:int, _arg2:int=0):Boolean{
if (_loaded == false){
return (false);
};
return (_gamerSafe.purchaseItem(_arg1, _arg2));
}
public function requestUnregisteredName():void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.requestUnregisteredUserName();
}
public function get onLoginFormClosed():Function{
return (_evt_onLoginFormClosed);
}
public function getConsumptionsAvailable(_arg1:int):int{
if (_loaded == false){
return (0);
};
if (inSession == false){
return (0);
};
return (_gamerSafe.getConsumptionsAvailable(_arg1));
}
private function e_onLevelVaultLevelFlagged(_arg1:Event):void{
if (_evt_onLevelVaultLevelFlagged != null){
_evt_onLevelVaultLevelFlagged();
};
dispatchEvent(_arg1);
}
public function get items():Array{
if (_loaded == false){
return ([]);
};
if (inSession == false){
return ([]);
};
return (_gamerSafe.itemList);
}
public function get gamerPoints():uint{
if (_loaded == false){
return (0);
};
return (_gamerSafe.gamerPoints);
}
public function get onLevelVaultLevelNumericsSet():Function{
return (_evt_onLevelVaultLevelNumericsSet);
}
private function e_onItemPurchase(_arg1:Event):void{
if (_evt_itemPurchase != null){
_evt_itemPurchase();
};
dispatchEvent(_arg1);
}
public function purchaseItemInterface(_arg1:int, _arg2:int=0):void{
if (_loaded == false){
return;
};
if (inSession == false){
return;
};
_gamerSafe.purchaseItemInterface(_arg1, _arg2);
}
public function get facebookFriends():Array{
if (_loaded == false){
return ([]);
};
return (_gamerSafe.facebookFriends);
}
public function get status():String{
return (_status);
}
public function get isGamerGoldPurchaseDisabled():Boolean{
if (_loaded == false){
return (true);
};
return (_gamerSafe.isGamerGoldPurchasingDisabled);
}
private function e_onFacebookConnected(_arg1:Event):void{
if (_evt_onFacebookConnected != null){
_evt_onFacebookConnected();
};
dispatchEvent(_arg1);
}
public function setShopCategoryVisible(_arg1:int, _arg2:Boolean):void{
if (_loaded == false){
return;
};
_gamerSafe.setShopCategoryVisible(_arg1, _arg2);
}
public static function get api():GamerSafe{
if (_instance == null){
trace("GamerSafe: Instance Error: Attempted to get instance before initial construction.");
return (null);
};
return (_instance);
}
public static function get apiLoaded():Boolean{
return (!((_instance == null)));
}
}
}//package
Section 222
//GamerSafeConstants (GamerSafeConstants)
package {
public class GamerSafeConstants {
public static const ACHIEVEMENT_UNLOCK_ALL_ATTACKS:int = 837;
public static const ACHIEVEMENT_VISIT_TANOKU_SITE:int = 842;
public static const ITEMGROUP_BUFFS:int = 370;
public static const ACHIEVEMENT_UNLOCK_5_MEDALS:int = 843;
public static const ITEM_UNLOCK_ALL_BUFFS:int = 542;
public static const ACHIEVEMENT_UNLOCK_ALL_BUFFS:int = 838;
public static const ACHIEVEMENT_GET_100000_POINTS:int = 830;
public static const ITEMGROUP_SPECIALS:int = 371;
public static const ITEM_SHOW_ME_THE_MONEY_LVL_3:int = 534;
public static const ITEM_FIRE_LVL_3:int = 529;
public static const ITEM_I_WANT_ALL_NOW:int = 544;
public static const ACHIEVEMENT_VISIT_SPONSOR_SITE:int = 841;
public static const ACHIEVEMENT_SAVE_1000:int = 834;
public static const ITEM_SPECIAL_13:int = 536;
public static const ITEM_LIGHTNING_LVL_3:int = 528;
public static const ACHIEVEMENT_GET_1000_POINTS:int = 828;
public static const ACHIEVEMENT_SUBMIT_SCORE:int = 836;
public static const ITEM_SPECIAL_14:int = 537;
public static const ITEM_SPECIAL_15:int = 538;
public static const ITEM_CHEERLEADERS_LVL_3:int = 532;
public static const ITEM_WATER_LVL_3:int = 530;
public static const ACHIEVEMENT_UNLOCK_ALL_SPECIALS:int = 839;
public static const ITEM_OVERTIME_LVL_3:int = 533;
public static const ITEM_UNLOCK_ALL_SPECIALS:int = 543;
public static const ACHIEVEMENT_GET_10000_POINTS:int = 829;
public static const ACHIEVEMENTGROUP_MEDALS:int = 348;
public static const ACHIEVEMENT_UNLOCK_15_MEDALS:int = 845;
public static const ITEM_CHAINS_LVL_3:int = 531;
public static const SCOREBOARD_HIGHSCORES:int = 225;
public static const ITEM_SPECIAL_16:int = 539;
public static const ACHIEVEMENT_GET_1000000_POINTS:int = 831;
public static const SCOREBOARDGROUP_SCOREBOARDS:int = 338;
public static const ITEM_EXTRA_FUNDS_XXX_:int = 540;
public static const ACHIEVEMENT_SAVE_2500:int = 835;
public static const ITEMGROUP_VALUE_PACKS:int = 368;
public static const ACHIEVEMENT_SAVE_100:int = 832;
public static const ACHIEVEMENT_SAVE_500:int = 833;
public static const ACHIEVEMENT_UNLOCK_ALL_SKILLS:int = 840;
public static const ITEM_IVE_GOT_THE_POWER_LVL_3:int = 535;
public static const ACHIEVEMENT_UNLOCK_10_MEDALS:int = 844;
public static const ITEMGROUP_ATTACKS:int = 369;
public static const ITEM_UNLOCK_ALL_ATTACKS:int = 541;
}
}//package
Section 223
//icono_esta_cargado (icono_esta_cargado)
package {
import flash.display.*;
public dynamic class icono_esta_cargado extends MovieClip {
}
}//package
Section 224
//icono_fondo (icono_fondo)
package {
import flash.display.*;
public dynamic class icono_fondo extends MovieClip {
}
}//package
Section 225
//icono_no_disponible (icono_no_disponible)
package {
import flash.display.*;
public dynamic class icono_no_disponible extends MovieClip {
}
}//package
Section 226
//icono_no_disponible_espera (icono_no_disponible_espera)
package {
import flash.display.*;
public dynamic class icono_no_disponible_espera extends MovieClip {
}
}//package
Section 227
//icono_por_comprar (icono_por_comprar)
package {
import flash.display.*;
public dynamic class icono_por_comprar extends MovieClip {
public var p_rojo:MovieClip;
}
}//package
Section 228
//icono_premium (icono_premium)
package {
import flash.display.*;
public dynamic class icono_premium extends MovieClip {
}
}//package
Section 229
//icono_recargando (icono_recargando)
package {
import flash.text.*;
import flash.display.*;
public dynamic class icono_recargando extends MovieClip {
public var info:TextField;
}
}//package
Section 230
//icono_skill_temporal (icono_skill_temporal)
package {
import flash.display.*;
public dynamic class icono_skill_temporal extends MovieClip {
}
}//package
Section 231
//icono_vacio (icono_vacio)
package {
import flash.display.*;
public dynamic class icono_vacio extends MovieClip {
}
}//package
Section 232
//icono1_ (icono1_)
package {
import flash.display.*;
public dynamic class icono1_ extends MovieClip {
}
}//package
Section 233
//icono10_ (icono10_)
package {
import flash.display.*;
public dynamic class icono10_ extends MovieClip {
}
}//package
Section 234
//icono1001_ (icono1001_)
package {
import flash.display.*;
public dynamic class icono1001_ extends MovieClip {
}
}//package
Section 235
//icono1002_ (icono1002_)
package {
import flash.display.*;
public dynamic class icono1002_ extends MovieClip {
}
}//package
Section 236
//icono1003_ (icono1003_)
package {
import flash.display.*;
public dynamic class icono1003_ extends MovieClip {
}
}//package
Section 237
//icono1004_ (icono1004_)
package {
import flash.display.*;
public dynamic class icono1004_ extends MovieClip {
}
}//package
Section 238
//icono1005_ (icono1005_)
package {
import flash.display.*;
public dynamic class icono1005_ extends MovieClip {
}
}//package
Section 239
//icono1006_ (icono1006_)
package {
import flash.display.*;
public dynamic class icono1006_ extends MovieClip {
}
}//package
Section 240
//icono1007_ (icono1007_)
package {
import flash.display.*;
public dynamic class icono1007_ extends MovieClip {
}
}//package
Section 241
//icono1008_ (icono1008_)
package {
import flash.display.*;
public dynamic class icono1008_ extends MovieClip {
}
}//package
Section 242
//icono1009_ (icono1009_)
package {
import flash.display.*;
public dynamic class icono1009_ extends MovieClip {
}
}//package
Section 243
//icono1010_ (icono1010_)
package {
import flash.display.*;
public dynamic class icono1010_ extends MovieClip {
}
}//package
Section 244
//icono1011_ (icono1011_)
package {
import flash.display.*;
public dynamic class icono1011_ extends MovieClip {
}
}//package
Section 245
//icono1012_ (icono1012_)
package {
import flash.display.*;
public dynamic class icono1012_ extends MovieClip {
}
}//package
Section 246
//icono1013_ (icono1013_)
package {
import flash.display.*;
public dynamic class icono1013_ extends MovieClip {
}
}//package
Section 247
//icono1014_ (icono1014_)
package {
import flash.display.*;
public dynamic class icono1014_ extends MovieClip {
}
}//package
Section 248
//icono11_ (icono11_)
package {
import flash.display.*;
public dynamic class icono11_ extends MovieClip {
}
}//package
Section 249
//icono12_ (icono12_)
package {
import flash.display.*;
public dynamic class icono12_ extends MovieClip {
}
}//package
Section 250
//icono13_ (icono13_)
package {
import flash.display.*;
public dynamic class icono13_ extends MovieClip {
}
}//package
Section 251
//icono14_ (icono14_)
package {
import flash.display.*;
public dynamic class icono14_ extends MovieClip {
}
}//package
Section 252
//icono15_ (icono15_)
package {
import flash.display.*;
public dynamic class icono15_ extends MovieClip {
}
}//package
Section 253
//icono16_ (icono16_)
package {
import flash.display.*;
public dynamic class icono16_ extends MovieClip {
}
}//package
Section 254
//icono17_ (icono17_)
package {
import flash.display.*;
public dynamic class icono17_ extends MovieClip {
}
}//package
Section 255
//icono18_ (icono18_)
package {
import flash.display.*;
public dynamic class icono18_ extends MovieClip {
}
}//package
Section 256
//icono19_ (icono19_)
package {
import flash.display.*;
public dynamic class icono19_ extends MovieClip {
}
}//package
Section 257
//icono2_ (icono2_)
package {
import flash.display.*;
public dynamic class icono2_ extends MovieClip {
}
}//package
Section 258
//icono20_ (icono20_)
package {
import flash.display.*;
public dynamic class icono20_ extends MovieClip {
}
}//package
Section 259
//icono2001_ (icono2001_)
package {
import flash.display.*;
public dynamic class icono2001_ extends MovieClip {
}
}//package
Section 260
//icono2002_ (icono2002_)
package {
import flash.display.*;
public dynamic class icono2002_ extends MovieClip {
}
}//package
Section 261
//icono2003_ (icono2003_)
package {
import flash.display.*;
public dynamic class icono2003_ extends MovieClip {
}
}//package
Section 262
//icono2004_ (icono2004_)
package {
import flash.display.*;
public dynamic class icono2004_ extends MovieClip {
}
}//package
Section 263
//icono2005_ (icono2005_)
package {
import flash.display.*;
public dynamic class icono2005_ extends MovieClip {
}
}//package
Section 264
//icono2006_ (icono2006_)
package {
import flash.display.*;
public dynamic class icono2006_ extends MovieClip {
}
}//package
Section 265
//icono2007_ (icono2007_)
package {
import flash.display.*;
public dynamic class icono2007_ extends MovieClip {
}
}//package
Section 266
//icono2008_ (icono2008_)
package {
import flash.display.*;
public dynamic class icono2008_ extends MovieClip {
}
}//package
Section 267
//icono2009_ (icono2009_)
package {
import flash.display.*;
public dynamic class icono2009_ extends MovieClip {
}
}//package
Section 268
//icono2010_ (icono2010_)
package {
import flash.display.*;
public dynamic class icono2010_ extends MovieClip {
}
}//package
Section 269
//icono2011_ (icono2011_)
package {
import flash.display.*;
public dynamic class icono2011_ extends MovieClip {
}
}//package
Section 270
//icono2012_ (icono2012_)
package {
import flash.display.*;
public dynamic class icono2012_ extends MovieClip {
}
}//package
Section 271
//icono2013_ (icono2013_)
package {
import flash.display.*;
public dynamic class icono2013_ extends MovieClip {
}
}//package
Section 272
//icono2014_ (icono2014_)
package {
import flash.display.*;
public dynamic class icono2014_ extends MovieClip {
}
}//package
Section 273
//icono2015_ (icono2015_)
package {
import flash.display.*;
public dynamic class icono2015_ extends MovieClip {
}
}//package
Section 274
//icono2016_ (icono2016_)
package {
import flash.display.*;
public dynamic class icono2016_ extends MovieClip {
}
}//package
Section 275
//icono2017_ (icono2017_)
package {
import flash.display.*;
public dynamic class icono2017_ extends MovieClip {
}
}//package
Section 276
//icono2018_ (icono2018_)
package {
import flash.display.*;
public dynamic class icono2018_ extends MovieClip {
}
}//package
Section 277
//icono2019_ (icono2019_)
package {
import flash.display.*;
public dynamic class icono2019_ extends MovieClip {
}
}//package
Section 278
//icono21_ (icono21_)
package {
import flash.display.*;
public dynamic class icono21_ extends MovieClip {
}
}//package
Section 279
//icono22_ (icono22_)
package {
import flash.display.*;
public dynamic class icono22_ extends MovieClip {
}
}//package
Section 280
//icono23_ (icono23_)
package {
import flash.display.*;
public dynamic class icono23_ extends MovieClip {
}
}//package
Section 281
//icono24_ (icono24_)
package {
import flash.display.*;
public dynamic class icono24_ extends MovieClip {
}
}//package
Section 282
//icono25_ (icono25_)
package {
import flash.display.*;
public dynamic class icono25_ extends MovieClip {
}
}//package
Section 283
//icono26_ (icono26_)
package {
import flash.display.*;
public dynamic class icono26_ extends MovieClip {
}
}//package
Section 284
//icono27_ (icono27_)
package {
import flash.display.*;
public dynamic class icono27_ extends MovieClip {
}
}//package
Section 285
//icono28_ (icono28_)
package {
import flash.display.*;
public dynamic class icono28_ extends MovieClip {
}
}//package
Section 286
//icono29_ (icono29_)
package {
import flash.display.*;
public dynamic class icono29_ extends MovieClip {
}
}//package
Section 287
//icono3_ (icono3_)
package {
import flash.display.*;
public dynamic class icono3_ extends MovieClip {
}
}//package
Section 288
//icono30_ (icono30_)
package {
import flash.display.*;
public dynamic class icono30_ extends MovieClip {
}
}//package
Section 289
//icono31_ (icono31_)
package {
import flash.display.*;
public dynamic class icono31_ extends MovieClip {
}
}//package
Section 290
//icono32_ (icono32_)
package {
import flash.display.*;
public dynamic class icono32_ extends MovieClip {
}
}//package
Section 291
//icono33_ (icono33_)
package {
import flash.display.*;
public dynamic class icono33_ extends MovieClip {
}
}//package
Section 292
//icono34_ (icono34_)
package {
import flash.display.*;
public dynamic class icono34_ extends MovieClip {
}
}//package
Section 293
//icono35_ (icono35_)
package {
import flash.display.*;
public dynamic class icono35_ extends MovieClip {
}
}//package
Section 294
//icono36_ (icono36_)
package {
import flash.display.*;
public dynamic class icono36_ extends MovieClip {
}
}//package
Section 295
//icono37_ (icono37_)
package {
import flash.display.*;
public dynamic class icono37_ extends MovieClip {
}
}//package
Section 296
//icono38_ (icono38_)
package {
import flash.display.*;
public dynamic class icono38_ extends MovieClip {
}
}//package
Section 297
//icono39_ (icono39_)
package {
import flash.display.*;
public dynamic class icono39_ extends MovieClip {
}
}//package
Section 298
//icono4_ (icono4_)
package {
import flash.display.*;
public dynamic class icono4_ extends MovieClip {
}
}//package
Section 299
//icono40_ (icono40_)
package {
import flash.display.*;
public dynamic class icono40_ extends MovieClip {
}
}//package
Section 300
//icono41_ (icono41_)
package {
import flash.display.*;
public dynamic class icono41_ extends MovieClip {
}
}//package
Section 301
//icono42_ (icono42_)
package {
import flash.display.*;
public dynamic class icono42_ extends MovieClip {
}
}//package
Section 302
//icono43_ (icono43_)
package {
import flash.display.*;
public dynamic class icono43_ extends MovieClip {
}
}//package
Section 303
//icono44_ (icono44_)
package {
import flash.display.*;
public dynamic class icono44_ extends MovieClip {
}
}//package
Section 304
//icono45_ (icono45_)
package {
import flash.display.*;
public dynamic class icono45_ extends MovieClip {
}
}//package
Section 305
//icono46_ (icono46_)
package {
import flash.display.*;
public dynamic class icono46_ extends MovieClip {
}
}//package
Section 306
//icono47_ (icono47_)
package {
import flash.display.*;
public dynamic class icono47_ extends MovieClip {
}
}//package
Section 307
//icono48_ (icono48_)
package {
import flash.display.*;
public dynamic class icono48_ extends MovieClip {
}
}//package
Section 308
//icono5_ (icono5_)
package {
import flash.display.*;
public dynamic class icono5_ extends MovieClip {
}
}//package
Section 309
//icono6_ (icono6_)
package {
import flash.display.*;
public dynamic class icono6_ extends MovieClip {
}
}//package
Section 310
//icono7_ (icono7_)
package {
import flash.display.*;
public dynamic class icono7_ extends MovieClip {
}
}//package
Section 311
//icono8_ (icono8_)
package {
import flash.display.*;
public dynamic class icono8_ extends MovieClip {
}
}//package
Section 312
//icono9_ (icono9_)
package {
import flash.display.*;
public dynamic class icono9_ extends MovieClip {
}
}//package
Section 313
//iconos_skills_ (iconos_skills_)
package {
import flash.text.*;
import flash.display.*;
public dynamic class iconos_skills_ extends MovieClip {
public var locked:TextField;
public var info:TextField;
}
}//package
Section 314
//impacto1 (impacto1)
package {
import flash.media.*;
public dynamic class impacto1 extends Sound {
}
}//package
Section 315
//impacto2 (impacto2)
package {
import flash.media.*;
public dynamic class impacto2 extends Sound {
}
}//package
Section 316
//impacto3 (impacto3)
package {
import flash.media.*;
public dynamic class impacto3 extends Sound {
}
}//package
Section 317
//impacto4 (impacto4)
package {
import flash.media.*;
public dynamic class impacto4 extends Sound {
}
}//package
Section 318
//ingame1 (ingame1)
package {
import flash.media.*;
public dynamic class ingame1 extends Sound {
}
}//package
Section 319
//IPFI (IPFI)
package {
import mochi.as3.*;
import Playtomic.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import com.tanoku.sonido.*;
import flash.text.*;
public class IPFI extends MovieClip {
var timerCpmStar:Timer;
public var b_skip:MovieClip;
public var _mochiads_game_id:String;
var mc_preload:MovieClip;
var contadorFlexiones:int;// = 0
public var txt_denegado:TextField;
public function IPFI(){
timerCpmStar = new Timer(1000);
contadorFlexiones = 0;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
VariablesGlobales.cargaFicherosExterna = false;
VariablesGlobales.contenedorPadre = this;
}
public function init(_arg1:Event){
removeEventListener(Event.ADDED_TO_STAGE, init);
removeEventListener(Event.ENTER_FRAME, init);
trace("lanzar validar");
Validar();
}
public function Validar(){
var _local1:String;
var _local2:Array;
var _local3:Array;
var _local4:String;
var _local5:Array;
var _local6:Array;
var _local7:Boolean;
var _local8:int;
var _local9:int;
trace("validar");
stage.scaleMode = StageScaleMode.NO_SCALE;
_local1 = "";
_local2 = new Array("www.flashgamelicense.com", "games.mochigames.com", "games.mochiads.com", "games.mochimedia.com", "www.tanoku.com");
_local3 = new Array("games.mochigames.com", "games.mochiads.com", "games.mochimedia.com");
_local4 = stage.loaderInfo.url;
_local5 = _local4.split("://");
_local6 = _local5[1].split("/");
_local1 = _local6[0];
_local7 = true;
VariablesGlobales.estoyEnSponsor = true;
_local8 = 0;
while (_local8 < _local2.length) {
if (_local1 == _local2[_local8]){
_local7 = true;
_local8 = _local2.length;
_local9 = 0;
while (_local9 < _local3.length) {
if (_local1 == _local3[_local9]){
VariablesGlobales.estoyEnSponsor = true;
_local9 = _local3.length;
};
_local9++;
};
};
_local8++;
};
if (_local7){
mc_preload = new Preloader_MC();
this.addChild(mc_preload);
mc_preload.jugar.visible = false;
addEventListener(Event.ENTER_FRAME, preloader);
mc_preload.addEventListener(MouseEvent.CLICK, stageClick);
mc_preload.b_sponsor_i.addEventListener(MouseEvent.CLICK, sponsorPreload);
mc_preload.b_sponsor_d.addEventListener(MouseEvent.CLICK, sponsorPreload);
mc_preload.b_tanoku.addEventListener(MouseEvent.CLICK, tanokuPreload);
if (!(VariablesGlobales.estoyEnSponsor)){
mc_preload.b_sponsor_d.visible = false;
};
mc_preload.b_sponsor_d.visible = false;
if (stage){
on_added_to_stage(null);
} else {
addEventListener(Event.ADDED_TO_STAGE, on_added_to_stage);
};
mc_preload.t_flexion.text = "...";
mc_preload.mike.gotoAndStop(1);
Log.CustomMetric("Preloader", "Pregame", true);
Log.ForceSend();
trace("allowed");
this.play();
} else {
trace("denied");
b_skip.visible = false;
txt_denegado.text = (("access denied \n -" + _local1) + "-");
};
}
function tanokuPreload(_arg1:MouseEvent):void{
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_TANOKU, false);
}
private function stageClick(_arg1:MouseEvent):void{
contadorFlexiones++;
mc_preload.t_flexion.text = contadorFlexiones;
mc_preload.mike.play();
}
function frame3(){
stop();
Intros();
}
function frame1(){
Log.View(1041, "20ee2887140e", root.loaderInfo.loaderURL);
_mochiads_game_id = "d71ed61efaff7880";
MochiServices.connect("d71ed61efaff7880", root);
stop();
trace("evento init");
addEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.ENTER_FRAME, init);
}
function inicioAnuncio():void{
trace("Inicio anuncio");
}
function preloader(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:int;
_local2 = stage.loaderInfo.bytesTotal;
_local3 = stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 * 100) / _local2);
trace((_local4 + "%"));
mc_preload.porc.text = (("loading ... " + _local4) + "%");
mc_preload.gotoAndStop(_local4);
if (_local3 >= _local2){
timerCpmStar = new Timer(5000, 1);
timerCpmStar.start();
timerCpmStar.addEventListener(TimerEvent.TIMER_COMPLETE, finTiempoTimerCPM);
mc_preload.porc.visible = false;
removeEventListener(Event.ENTER_FRAME, preloader);
trace(("loaded " + getTimer()));
};
}
private function CargarDatos():void{
addEventListener(Event.ENTER_FRAME, on_enter_frame);
VariablesGlobales.logrosMan = new ManagerLogros();
VariablesGlobales.logrosMan.main_class = this;
VariablesGlobales.scriptMan = new ManagerScript();
VariablesGlobales.skillsMan = new Skill_List();
VariablesGlobales.movieMan = new Skill_Movie();
VariablesGlobales.iniciarDatosStats();
VariablesGlobales.savegameMan = new ManagerPartidas();
}
private function Start():void{
trace("start");
stop();
CargarDatos();
}
private function Preloader():void{
}
function frame2(){
stop();
}
function frame5(){
stop();
Start();
}
public function cierra_pantalla(_arg1){
if (_arg1){
VariablesGlobales.contenedorPadre.removeChild(_arg1);
VariablesGlobales.contenedorHijo = null;
_arg1.main_class = null;
_arg1 = null;
};
}
function sponsorPreload(_arg1:MouseEvent):void{
trace("sponsor");
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_SPONSOR, false);
}
public function abre_pantalla(_arg1){
VariablesGlobales.contenedorPadre.addChild(_arg1);
_arg1.main_class = VariablesGlobales.contenedorPadre;
VariablesGlobales.contenedorHijo = _arg1;
}
function frame4(){
b_skip.visible = true;
stop();
}
public function CargarSonidos():void{
VariablesGlobales.soundMan = SoundManager.getInstance();
VariablesGlobales.musicMan = MusicManager.getInstance();
VariablesGlobales.musicMan.addLibrarySound(principal1, "principal1");
VariablesGlobales.musicMan.addLibrarySound(ingame1, "ingame1");
VariablesGlobales.musicMan.addLibrarySound(puntuacion1, "puntuacion1");
VariablesGlobales.musicMan.addLibrarySound(ambiente1, "ambiente1");
VariablesGlobales.soundMan.addLibrarySound(impacto1, "impacto1");
VariablesGlobales.soundMan.addLibrarySound(impacto2, "impacto2");
VariablesGlobales.soundMan.addLibrarySound(impacto3, "impacto3");
VariablesGlobales.soundMan.addLibrarySound(impacto4, "impacto4");
VariablesGlobales.soundMan.addLibrarySound(buff1, "buff1");
VariablesGlobales.soundMan.addLibrarySound(versus1, "versus1");
}
private function onItemPurchase(_arg1:Event):void{
}
function jugarPreload(_arg1:MouseEvent):void{
if (!(VariablesGlobales.estoyEnSponsor)){
};
mc_preload.removeEventListener(MouseEvent.CLICK, stageClick);
mc_preload.jugar.removeEventListener(MouseEvent.CLICK, jugarPreload);
mc_preload.b_sponsor_i.removeEventListener(MouseEvent.CLICK, sponsorPreload);
mc_preload.b_sponsor_d.removeEventListener(MouseEvent.CLICK, sponsorPreload);
mc_preload.b_tanoku.removeEventListener(MouseEvent.CLICK, tanokuPreload);
this.removeChild(mc_preload);
this.play();
}
function finTiempoTimerCPM(_arg1:TimerEvent):void{
trace("fin timer");
mc_preload.jugar.visible = true;
mc_preload.jugar.addEventListener(MouseEvent.CLICK, jugarPreload);
timerCpmStar.removeEventListener(TimerEvent.TIMER_COMPLETE, finTiempoTimerCPM);
}
public function Intros(){
trace("intros");
b_skip.buttonMode = true;
b_skip.visible = false;
b_skip.addEventListener(MouseEvent.CLICK, saltarPelicula);
Log.CustomMetric("SponsorSplash", "Pregame", true);
Log.ForceSend();
CargarSonidos();
}
private function onLogin(_arg1:Event):void{
trace("GG loged in!!!!");
VariablesGlobales.savegameMan.cargarPartida();
}
private function onScoreSubmited(_arg1:Event):void{
VariablesGlobales.logrosMan.DesbloquearLogro(ManagerLogros.SUBIR_PUNTUACION);
}
private function on_enter_frame(_arg1:Event):void{
if (((VariablesGlobales.scriptsCargados) && (VariablesGlobales.scriptsCargadosOk))){
Log.CustomMetric("MainMenu", "Pregame", true);
Log.ForceSend();
removeEventListener(Event.ENTER_FRAME, on_enter_frame);
abre_pantalla(new Principal());
};
}
private function saltarPelicula(_arg1:MouseEvent):void{
Log.CustomMetric("SkipButton", "Pregame", true);
Log.ForceSend();
b_skip.visible = false;
gotoAndStop(5);
}
public function on_added_to_stage(_arg1:Event):void{
trace("-------> showClickAwayAd");
MochiAd.showClickAwayAd({clip:mc_preload.adBox, id:"d71ed61efaff7880", ad_started:inicioAnuncio, ad_finished:finAnuncio});
removeEventListener(Event.ADDED_TO_STAGE, on_added_to_stage);
}
function finAnuncio():void{
trace("fin anuncio");
}
}
}//package
Section 320
//Juego (Juego)
package {
import com.greensock.*;
import Playtomic.*;
import mochi.as3.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
public class Juego extends Ventana {
public var listaBotonesIngame:Array;
public var p_botones_comunes:MovieClip;
public var b_p_critico:MovieClip;
public var listaCartelesFlotantes:Array;
public var b_p_dinero:MovieClip;
public var b_fuerza:MovieClip;
public var p_puntos:MovieClip;
public var p_tutorial:MovieClip;
public var infoDinero:TextField;
public var mc_versus:MovieClip;
public var p_impactos:MovieClip;
public var p_botonera:MovieClip;
public var p_negro_interfaz:MovieClip;
public var p_puntuacion:MovieClip;
public var skillEjecuntandose:Boolean;// = false
public var p_negro_puntuacion:MovieClip;
public var p_negro:MovieClip;
public var estado:String;
public var p_barras:MovieClip;
public var mc_base:MovieClip;
public var p_peliculas:MovieClip;
public var infoCritico:TextField;
public static const EN_DESCARGA:String = "descargando";
public static const EN_CARGA:String = "cargando";
public static const EN_PUNTUACION:String = "puntuando";
public static const EN_JUEGO:String = "jugando";
public static const EN_ESPERA:String = "esperando";
public function Juego(){
skillEjecuntandose = false;
super();
VariablesGlobales.juegoActual = this;
estado = EN_CARGA;
p_botones_comunes.visible = false;
addEventListener(Event.ENTER_FRAME, on_enter_frame_transicion);
p_negro_puntuacion.visible = true;
mc_versus = new TRANSICIONPARTIDA();
mc_versus.x = 390;
mc_versus.y = 225;
addChild(mc_versus);
}
private function BorrarListaCartelesFlotantes():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaCartelesFlotantes.length) {
TextoFlotante(listaCartelesFlotantes[_local1]).Descargar();
_local1++;
};
}
private function EntradaInterfaz():void{
p_botones_comunes.b_upgrades.visible = false;
p_botones_comunes.b_salir.visible = true;
p_negro_interfaz.alpha = 1;
p_negro_interfaz.visible = true;
TweenLite.to(p_negro_interfaz, 0.6, {delay:0, alpha:0, onComplete:onFinishTweenEntradaInterfaz});
mc_base.gotoAndStop(1);
p_peliculas.visible = true;
p_barras.visible = true;
p_botonera.visible = true;
p_puntos.visible = true;
p_barras.x = -18.9;
p_barras.y = -43.2;
TweenLite.to(p_barras, 0.2, {delay:0, x:154.1, y:54.8});
p_puntos.x = 731.5;
p_puntos.y = -38.8;
TweenLite.to(p_puntos, 0.2, {delay:0.15, x:593.3, y:52.3});
p_botonera.x = 164.6;
p_botonera.y = 463.4;
TweenLite.to(p_botonera, 0.2, {delay:0.3, x:159.6, y:386.4});
}
function onFinishTweenSalidaPuntuacion():void{
EntradaInterfaz();
p_puntuacion.visible = false;
p_negro_puntuacion.alpha = 0;
p_negro_puntuacion.visible = false;
}
private function ReiniciarInterfaz():void{
EntradaInterfaz();
BorrarListaCartelesFlotantes();
p_barras.visible = true;
p_botonera.visible = true;
p_puntos.visible = true;
p_puntuacion.visible = false;
p_botonera.b_progreso.visible = false;
b_p_dinero.visible = false;
b_p_dinero.x = -(b_p_dinero.width);
b_p_critico.visible = false;
b_p_critico.x = -(b_p_critico.width);
b_fuerza.visible = false;
b_fuerza.x = -(b_fuerza.width);
}
public function CrearCartelFlotante(_arg1, _arg2){
var _local3:TextoFlotante;
var _local4:int;
var _local5:int;
p_impactos.c_posicion.visible = false;
p_impactos.c_posicion.alpha = 0;
if (VariablesGlobales.cartelPosAleatoreo){
VariablesGlobales.cartelPosX = VariablesGlobales.calcularValorAleatorio(VariablesGlobales.cartelAleatorioIni.x, VariablesGlobales.cartelAleatorioFin.x);
VariablesGlobales.cartelPosY = VariablesGlobales.calcularValorAleatorio(VariablesGlobales.cartelAleatorioIni.y, VariablesGlobales.cartelAleatorioFin.y);
p_impactos.c_posicion.x = VariablesGlobales.cartelAleatorioIni.x;
p_impactos.c_posicion.y = VariablesGlobales.cartelAleatorioIni.y;
_local4 = (VariablesGlobales.cartelAleatorioFin.x - VariablesGlobales.cartelAleatorioIni.x);
_local5 = (VariablesGlobales.cartelAleatorioFin.y - VariablesGlobales.cartelAleatorioIni.y);
if (_local4 <= 0){
_local4 = 1;
};
if (_local5 <= 0){
_local5 = 1;
};
p_impactos.c_posicion.width = _local4;
p_impactos.c_posicion.height = _local5;
} else {
p_impactos.c_posicion.x = VariablesGlobales.cartelPosX;
p_impactos.c_posicion.y = VariablesGlobales.cartelPosY;
p_impactos.c_posicion.width = 1;
p_impactos.c_posicion.height = 1;
};
_local3 = new TextoFlotante(VariablesGlobales.cartelPosX, VariablesGlobales.cartelPosY, _arg1, _arg2);
p_impactos.addChild(_local3);
listaCartelesFlotantes.push(_local3);
}
public function iniciarPartida(){
if (estado == EN_ESPERA){
p_tutorial.visible = false;
VariablesGlobales.timePartida = getTimer();
Log.Play();
Log.ForceSend();
VariablesGlobales.musicMan.stopAllSounds();
VariablesGlobales.musicaActual = "ingame1";
VariablesGlobales.EstadoMusica();
VariablesGlobales.soundMan.stopAllSounds();
};
}
private function FinalizarInterfaz():void{
p_botones_comunes.b_music.removeEventListener(MouseEvent.CLICK, on_button_click);
p_botones_comunes.b_salir.removeEventListener(MouseEvent.CLICK, on_button_click);
p_botones_comunes.b_more_games.removeEventListener(MouseEvent.CLICK, on_button_click);
p_puntos.b_sponsor.removeEventListener(MouseEvent.CLICK, on_button_click);
p_puntuacion.p_inferior.b_retry.removeEventListener(MouseEvent.CLICK, on_button_click);
p_puntuacion.p_inferior.b_submit.removeEventListener(MouseEvent.CLICK, on_button_click);
p_puntuacion.p_inferior.b_ranking.removeEventListener(MouseEvent.CLICK, on_button_click);
p_puntuacion.p_superior.b_sponsor.removeEventListener(MouseEvent.CLICK, on_button_click);
}
private function controlLogica():void{
if (VariablesGlobales.pacienciaAct > 0){
calcularBotonesSkills();
calcularVariables();
} else {
if (VariablesGlobales.juegoActual.skillEjecuntandose){
calcularBotonesSkills();
calcularVariables();
} else {
trace("fin de partida");
VariablesGlobales.timePartida = (getTimer() - VariablesGlobales.timePartida);
estado = EN_PUNTUACION;
ActivarBotonesSkills();
MostrarPanelPuntuacion();
Log.CustomMetric("ShowScores");
};
};
}
public function RefrescarSkills():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaBotonesIngame.length) {
listaBotonesIngame[_local1].forzarRefrescar();
_local1++;
};
}
override protected function Descargar_Ventana():void{
super.Descargar_Ventana();
}
private function on_button_click(_arg1:MouseEvent):void{
switch (_arg1.currentTarget.name){
case "b_music":
VariablesGlobales.EstadoMusica(true);
VariablesGlobales.MostrarEstadoMusica(p_botones_comunes.b_music);
break;
case "b_salir":
Log.CustomMetric("ExitGame");
p_negro.alpha = 0;
p_negro.visible = true;
TweenLite.to(p_negro, 0.1, {delay:0, alpha:1, onComplete:onFinishTweenSalidaTienda});
break;
case "b_upgrades":
Log.CustomMetric("UpgradeGame");
p_negro.alpha = 0;
p_negro.visible = true;
TweenLite.to(p_negro, 0.1, {delay:0, alpha:1, onComplete:onFinishTweenSalidaTienda});
break;
case "b_more_games":
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_MORE);
break;
case "b_sponsor":
break;
case "b_tienda":
abrirTienda();
break;
case "b_retry":
Log.CustomMetric("RetryGame");
reiniciarPartida();
break;
case "b_submit":
VariablesGlobales.SubmitPuntuaciones(main_class);
p_puntuacion.p_inferior.b_submit.visible = false;
break;
case "b_ranking":
VariablesGlobales.AbrePuntuaciones(main_class);
break;
};
}
private function calcularBotonesSkills():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaBotonesIngame.length) {
listaBotonesIngame[_local1].update();
_local1++;
};
}
public function mostrarIconoBuff(_arg1, _arg2){
_arg1.x = -50;
_arg1.visible = true;
_arg1.info.text = ("" + _arg2);
TweenLite.to(_arg1, 0.1, {delay:0, x:0});
}
private function actualizarInterfaz():void{
var _local1:int;
p_barras.paciencia_actual.text = ("" + int(VariablesGlobales.pacienciaAct));
p_barras.paciencia_max.text = ("" + VariablesGlobales.pacienciaMax);
p_barras.b_paciencia.gotoAndStop(int(((VariablesGlobales.pacienciaAct * 100) / VariablesGlobales.pacienciaMax)));
p_barras.rabia_actual.text = ("" + int(VariablesGlobales.rabiaAct));
p_barras.rabia_max.text = ("" + VariablesGlobales.rabiaMax);
p_barras.b_rabia.gotoAndStop(int(((VariablesGlobales.rabiaAct * 100) / VariablesGlobales.rabiaMax)));
p_puntos.puntos.info.text = ("" + VariablesGlobales.puntosAct);
p_puntos.dinero.info.text = (("" + VariablesGlobales.dineroAct) + "$");
p_barras.p_dinero.text = ((VariablesGlobales.dineroProb + VariablesGlobales.dineroBonus) + "");
p_barras.p_critico.text = ((VariablesGlobales.criticoProb + VariablesGlobales.criticoBonus) + "");
if (VariablesGlobales.dineroTurnos > 0){
b_p_dinero.info.text = ("" + VariablesGlobales.dineroTurnos);
} else {
b_p_dinero.info.text = "";
ocultarIconoBuff(b_p_dinero);
};
if (VariablesGlobales.criticoTurnos > 0){
b_p_critico.info.text = ("" + VariablesGlobales.criticoTurnos);
} else {
b_p_critico.info.text = "";
ocultarIconoBuff(b_p_critico);
};
if (VariablesGlobales.fuerzaTurnos > 0){
b_fuerza.info.text = ("" + VariablesGlobales.fuerzaTurnos);
} else {
b_fuerza.info.text = "";
ocultarIconoBuff(b_fuerza);
};
_local1 = 0;
while (_local1 < listaCartelesFlotantes.length) {
TextoFlotante(listaCartelesFlotantes[_local1]).Actualizar();
_local1++;
};
DescargarCartelesFlotantes();
}
private function DescargarPeliculas():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaBotonesIngame.length) {
BotonSkillIngame(listaBotonesIngame[_local1]).unloadMovie(p_peliculas);
_local1++;
};
}
private function BorrarBotonesSkills():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaBotonesIngame.length) {
BotonSkillIngame(listaBotonesIngame[_local1]).Descargar();
listaBotonesIngame.shift();
_local1 = 0;
_local1++;
};
}
private function CargarPeliculas():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaBotonesIngame.length) {
BotonSkillIngame(listaBotonesIngame[_local1]).loadMovie(p_peliculas);
_local1++;
};
}
private function IniciarInterfaz():void{
p_botones_comunes.b_music.addEventListener(MouseEvent.CLICK, on_button_click);
p_botones_comunes.b_music.buttonMode = true;
p_botones_comunes.b_salir.addEventListener(MouseEvent.CLICK, on_button_click);
p_botones_comunes.b_upgrades.addEventListener(MouseEvent.CLICK, on_button_click);
p_botones_comunes.b_more_games.addEventListener(MouseEvent.CLICK, on_button_click);
p_puntos.b_sponsor.addEventListener(MouseEvent.CLICK, on_button_click);
if (VariablesGlobales.estoyEnSponsor){
p_botones_comunes.b_more_games.visible = false;
p_puntos.b_sponsor.visible = false;
p_puntuacion.p_superior.b_sponsor.visible = false;
};
p_puntuacion.adBox.visible = false;
p_puntuacion.p_inferior.b_retry.addEventListener(MouseEvent.CLICK, on_button_click);
p_puntuacion.p_inferior.b_submit.addEventListener(MouseEvent.CLICK, on_button_click);
p_puntuacion.p_inferior.b_ranking.addEventListener(MouseEvent.CLICK, on_button_click);
p_puntuacion.p_superior.b_sponsor.addEventListener(MouseEvent.CLICK, on_button_click);
p_negro_puntuacion.visible = false;
p_puntuacion.visible = false;
p_negro.visible = false;
listaCartelesFlotantes = new Array();
}
function onFinishTweenEntradaInterfaz():void{
p_negro_interfaz.visible = false;
}
private function ActivarBotonesSkills():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaBotonesIngame.length) {
listaBotonesIngame[_local1].Iniciar();
_local1++;
};
}
private function abrirTienda():void{
trace("abrir tienda");
removeEventListener(Event.ENTER_FRAME, on_enter_frame);
FinalizarInterfaz();
DescargarPeliculas();
BorrarBotonesSkills();
VariablesGlobales.musicMan.stopAllSounds();
main_class.abre_pantalla(new Tienda());
main_class.cierra_pantalla(this);
}
private function on_enter_frame(_arg1:Event):void{
switch (estado){
case EN_CARGA:
break;
case EN_ESPERA:
break;
case EN_JUEGO:
controlLogica();
actualizarInterfaz();
break;
case EN_PUNTUACION:
break;
case EN_DESCARGA:
break;
};
}
private function DescargarCartelesFlotantes():void{
var _local1:int;
var _local2:TextoFlotante;
_local1 = 0;
while (_local1 < listaCartelesFlotantes.length) {
_local2 = listaCartelesFlotantes[_local1];
if (_local2.marcaDescargar){
_local2.parent.removeChild(_local2);
listaCartelesFlotantes.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
private function MostrarPanelPuntuacion():void{
BorrarListaCartelesFlotantes();
mc_base.gotoAndStop(VariablesGlobales.calcularValorAleatorio(2, 13));
p_peliculas.visible = false;
VariablesGlobales.monedasBonus = 0;
EntradaPuntuacion();
VariablesGlobales.musicMan.stopAllSounds();
VariablesGlobales.musicaActual = "puntuacion1";
VariablesGlobales.EstadoMusica();
VariablesGlobales.balanceDinero((VariablesGlobales.dineroAct + VariablesGlobales.monedasBonus));
SalidaInterfaz();
p_puntuacion.visible = true;
ControlMedallasIngame();
}
private function SalidaInterfaz():void{
b_p_dinero.visible = false;
b_p_dinero.x = -(b_p_dinero.width);
b_p_critico.visible = false;
b_p_critico.x = -(b_p_critico.width);
b_fuerza.visible = false;
b_fuerza.x = -(b_fuerza.width);
TweenLite.to(p_barras, 0.5, {delay:0, x:-18.9, y:-43.2});
TweenLite.to(p_puntos, 0.2, {delay:0.15, x:731.5, y:-38.8});
TweenLite.to(p_botonera, 0.2, {delay:0.3, x:164.6, y:463.4});
}
private function calcularVariables():void{
if (VariablesGlobales.tipoSkillActual == Type_ID.EMPTY){
VariablesGlobales.pacienciaAct = (VariablesGlobales.pacienciaAct - 0.4);
};
if (VariablesGlobales.pacienciaAct < 0){
VariablesGlobales.pacienciaAct = 0;
};
}
private function ReiniciarVariables():void{
VariablesGlobales.pacienciaMax = VariablesGlobales.valorPaciencia[(VariablesGlobales.nivelPaciencia - 1)];
VariablesGlobales.pacienciaAct = VariablesGlobales.pacienciaMax;
VariablesGlobales.rabiaMax = VariablesGlobales.valorRabia[(VariablesGlobales.nivelRabia - 1)];
VariablesGlobales.rabiaAct = 0;
VariablesGlobales.rabiaPor = 0;
VariablesGlobales.puntosAct = 0;
VariablesGlobales.dineroAct = 0;
VariablesGlobales.dineroTurnos = 0;
VariablesGlobales.dineroBonus = 0;
VariablesGlobales.criticoProb = VariablesGlobales.valorCritical[(VariablesGlobales.nivelCritical - 1)];
VariablesGlobales.dineroProb = VariablesGlobales.valorMoney[(VariablesGlobales.nivelMoney - 1)];
VariablesGlobales.criticoTurnos = 0;
VariablesGlobales.criticoBonus = 0;
VariablesGlobales.fuerzaTurnos = 0;
VariablesGlobales.fuerzaBonus = 1;
VariablesGlobales.tipoSkillActual = Type_ID.EMPTY;
VariablesGlobales.timePartida = 0;
VariablesGlobales.criticPartida = 0;
VariablesGlobales.hitsPartida = 0;
VariablesGlobales.attacksPartida = 0;
VariablesGlobales.buffsPartida = 0;
VariablesGlobales.specialsPartida = 0;
actualizarInterfaz();
VariablesGlobales.musicMan.stopAllSounds();
VariablesGlobales.musicaActual = "ambiente1";
VariablesGlobales.EstadoMusica();
VariablesGlobales.MostrarEstadoMusica(p_botones_comunes.b_music);
}
private function EntradaPuntuacion():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:*;
var _local5:int;
p_botones_comunes.b_upgrades.visible = true;
p_botones_comunes.b_salir.visible = false;
p_puntuacion.alpha = 1;
p_puntuacion.p_izquierda.c_time.visible = false;
p_puntuacion.p_izquierda.t_time.visible = false;
_local1 = VariablesGlobales.timePartida;
_local1 = (_local1 / 1000);
_local2 = Math.floor((_local1 / ((60 * 60) * 24)));
_local1 = (_local1 - (((_local2 * 60) * 60) * 24));
_local3 = Math.floor((_local1 / (60 * 60)));
_local1 = (_local1 - ((_local3 * 60) * 60));
_local4 = Math.floor((_local1 / 60));
_local1 = (_local1 - (_local4 * 60));
_local5 = _local1;
if (_local5 <= 9){
p_puntuacion.p_izquierda.t_time.text = ((_local4 + ":0") + _local5);
} else {
p_puntuacion.p_izquierda.t_time.text = ((_local4 + ":") + _local5);
};
TweenLite.to(p_puntuacion.p_izquierda.c_time, 0.1, {delay:1, visible:true});
TweenLite.to(p_puntuacion.p_izquierda.t_time, 0.1, {delay:1, visible:true});
p_puntuacion.p_izquierda.c_critic.visible = false;
p_puntuacion.p_izquierda.t_critic.visible = false;
p_puntuacion.p_izquierda.t_critic.text = (int(((VariablesGlobales.criticPartida * 100) / VariablesGlobales.hitsPartida)) + "% ");
TweenLite.to(p_puntuacion.p_izquierda.c_critic, 0.1, {delay:1.2, visible:true});
TweenLite.to(p_puntuacion.p_izquierda.t_critic, 0.1, {delay:1.2, visible:true});
p_puntuacion.p_izquierda.c_hits.visible = false;
p_puntuacion.p_izquierda.t_hits.visible = false;
p_puntuacion.p_izquierda.t_hits.text = (VariablesGlobales.hitsPartida + " ");
TweenLite.to(p_puntuacion.p_izquierda.c_hits, 0.1, {delay:1.4, visible:true});
TweenLite.to(p_puntuacion.p_izquierda.t_hits, 0.1, {delay:1.4, visible:true});
p_puntuacion.p_izquierda.c_attacks.visible = false;
p_puntuacion.p_izquierda.t_attacks.visible = false;
p_puntuacion.p_izquierda.t_attacks.text = (VariablesGlobales.attacksPartida + " ");
TweenLite.to(p_puntuacion.p_izquierda.c_attacks, 0.1, {delay:1.6, visible:true});
TweenLite.to(p_puntuacion.p_izquierda.t_attacks, 0.1, {delay:1.6, visible:true});
p_puntuacion.p_izquierda.c_buffs.visible = false;
p_puntuacion.p_izquierda.t_buffs.visible = false;
p_puntuacion.p_izquierda.t_buffs.text = (VariablesGlobales.buffsPartida + " ");
TweenLite.to(p_puntuacion.p_izquierda.c_buffs, 0.1, {delay:1.8, visible:true});
TweenLite.to(p_puntuacion.p_izquierda.t_buffs, 0.1, {delay:1.8, visible:true});
p_puntuacion.p_izquierda.c_specials.visible = false;
p_puntuacion.p_izquierda.t_specials.visible = false;
p_puntuacion.p_izquierda.t_specials.text = (VariablesGlobales.specialsPartida + " ");
TweenLite.to(p_puntuacion.p_izquierda.c_specials, 0.1, {delay:2, visible:true});
TweenLite.to(p_puntuacion.p_izquierda.t_specials, 0.1, {delay:2, visible:true});
p_puntuacion.p_izquierda.x = -410;
p_puntuacion.p_izquierda.y = -8.5;
TweenLite.to(p_puntuacion.p_izquierda, 0.6, {delay:0, x:-72, y:-8.5});
p_puntuacion.p_derecha.c_score.visible = false;
p_puntuacion.p_derecha.t_score.visible = false;
p_puntuacion.p_derecha.f_score.visible = false;
p_puntuacion.p_derecha.t_score.text = (VariablesGlobales.puntosAct + " ");
TweenLite.to(p_puntuacion.p_derecha.c_score, 0.1, {delay:2.2, visible:true});
TweenLite.to(p_puntuacion.p_derecha.t_score, 0.1, {delay:2.2, visible:true});
TweenLite.to(p_puntuacion.p_derecha.f_score, 0.1, {delay:2.2, visible:true});
p_puntuacion.p_derecha.c_record.visible = false;
p_puntuacion.p_derecha.t_record.visible = false;
p_puntuacion.p_derecha.c_best.visible = false;
p_puntuacion.p_derecha.t_best.visible = false;
p_puntuacion.p_derecha.t_best.text = (VariablesGlobales.puntosRecord + " ");
if (VariablesGlobales.puntosAct > VariablesGlobales.puntosRecord){
VariablesGlobales.monedasBonus = (VariablesGlobales.puntosAct / 100);
if (VariablesGlobales.monedasBonus > 0){
p_puntuacion.p_derecha.t_record.text = (("+" + VariablesGlobales.monedasBonus) + "$ Bonus ");
} else {
p_puntuacion.p_derecha.t_record.text = "";
};
p_puntuacion.p_derecha.c_record.c_awesome.gotoAndStop(1);
TweenLite.to(p_puntuacion.p_derecha.c_record, 0.1, {delay:2.4, visible:true});
TweenLite.to(p_puntuacion.p_derecha.t_record, 0.1, {delay:2.4, visible:true});
p_puntuacion.p_inferior.b_submit.visible = true;
VariablesGlobales.puntosRecord = VariablesGlobales.puntosAct;
} else {
TweenLite.to(p_puntuacion.p_derecha.c_best, 0.1, {delay:2.4, visible:true});
TweenLite.to(p_puntuacion.p_derecha.t_best, 0.1, {delay:2.4, visible:true});
p_puntuacion.p_inferior.b_submit.visible = false;
};
p_puntuacion.p_derecha.c_coins.visible = false;
p_puntuacion.p_derecha.t_coins.visible = false;
p_puntuacion.p_derecha.c_coins_total.visible = false;
p_puntuacion.p_derecha.t_coins_total.visible = false;
p_puntuacion.p_derecha.t_coins.text = ((VariablesGlobales.dineroAct + VariablesGlobales.monedasBonus) + "$ ");
p_puntuacion.p_derecha.t_coins_total.text = ((VariablesGlobales.dineroTotal + (VariablesGlobales.dineroAct + VariablesGlobales.monedasBonus)) + "$ ");
TweenLite.to(p_puntuacion.p_derecha.c_coins, 0.1, {delay:2.6, visible:true});
TweenLite.to(p_puntuacion.p_derecha.t_coins, 0.1, {delay:2.6, visible:true});
TweenLite.to(p_puntuacion.p_derecha.c_coins_total, 0.1, {delay:2.6, visible:true});
TweenLite.to(p_puntuacion.p_derecha.t_coins_total, 0.1, {delay:2.6, visible:true});
p_puntuacion.p_derecha.x = 564.1;
p_puntuacion.p_derecha.y = -8.4;
TweenLite.to(p_puntuacion.p_derecha, 0.6, {delay:0, x:226.2, y:-8.4});
p_puntuacion.p_superior.x = -5;
p_puntuacion.p_superior.y = -84.5;
TweenLite.to(p_puntuacion.p_superior, 0.6, {delay:0, x:-5, y:-4.5});
p_puntuacion.p_inferior.x = 241.8;
p_puntuacion.p_inferior.y = 460.3;
TweenLite.to(p_puntuacion.p_inferior, 0.6, {delay:3, x:241.8, y:400.3});
VariablesGlobales.est_total_score = (VariablesGlobales.est_total_score + VariablesGlobales.puntosAct);
VariablesGlobales.est_total_money = ((VariablesGlobales.est_total_money + VariablesGlobales.dineroAct) + VariablesGlobales.monedasBonus);
VariablesGlobales.est_total_time = (VariablesGlobales.est_total_time + VariablesGlobales.timePartida);
VariablesGlobales.est_total_hits = (VariablesGlobales.est_total_hits + VariablesGlobales.hitsPartida);
VariablesGlobales.est_total_attacks = (VariablesGlobales.est_total_attacks + VariablesGlobales.attacksPartida);
VariablesGlobales.est_total_buffs = (VariablesGlobales.est_total_buffs + VariablesGlobales.buffsPartida);
VariablesGlobales.est_total_specials = (VariablesGlobales.est_total_specials + VariablesGlobales.specialsPartida);
VariablesGlobales.est_last_score = VariablesGlobales.puntosAct;
VariablesGlobales.est_last_money = (VariablesGlobales.dineroAct + VariablesGlobales.monedasBonus);
VariablesGlobales.est_last_time = VariablesGlobales.timePartida;
VariablesGlobales.est_last_hits = VariablesGlobales.hitsPartida;
VariablesGlobales.est_last_attacks = VariablesGlobales.attacksPartida;
VariablesGlobales.est_last_buffs = VariablesGlobales.buffsPartida;
VariablesGlobales.est_last_specials = VariablesGlobales.specialsPartida;
}
private function InciarDatos():void{
addEventListener(Event.ENTER_FRAME, on_enter_frame);
IniciarInterfaz();
ReiniciarVariables();
ReiniciarInterfaz();
CrearBotonesSkills();
ActivarBotonesSkills();
CargarPeliculas();
estado = EN_ESPERA;
}
public function ocultarIconoBuff(_arg1){
TweenLite.to(_arg1, 0.4, {delay:0, x:-50});
}
private function reiniciarPartida():void{
SalidaPuntuacion();
VariablesGlobales.musicMan.stopAllSounds();
VariablesGlobales.soundMan.stopAllSounds();
ReiniciarVariables();
ActivarBotonesSkills();
estado = EN_ESPERA;
skillEjecuntandose = false;
}
private function CrearBotonesSkills():void{
var _local1:int;
var _local2:int;
var _local3:BotonSkillIngame;
listaBotonesIngame = new Array();
_local1 = 0;
while (_local1 < VariablesGlobales.skillsJugador.length) {
_local2 = 0;
while (_local2 < VariablesGlobales.skillsMan.data.length) {
if (VariablesGlobales.skillsJugador[_local1] == int(Skill(VariablesGlobales.skillsMan.data[_local2]).ID)){
_local3 = new BotonSkillIngame(VariablesGlobales.skillsMan.data[_local2], p_botonera.botonera, (3 + (_local1 * 46)), 2);
listaBotonesIngame.push(_local3);
_local2 = VariablesGlobales.skillsMan.data.length;
};
_local2++;
};
_local1++;
};
}
private function ControlMedallasIngame():void{
if (VariablesGlobales.puntosAct >= 100){
VariablesGlobales.logrosMan.DesbloquearLogro(ManagerLogros.CONSEGUIR_1_PUNTOS);
};
if (VariablesGlobales.puntosAct >= 1000){
VariablesGlobales.logrosMan.DesbloquearLogro(ManagerLogros.CONSEGUIR_2_PUNTOS);
};
if (VariablesGlobales.puntosAct >= 10000){
VariablesGlobales.logrosMan.DesbloquearLogro(ManagerLogros.CONSEGUIR_3_PUNTOS);
};
if (VariablesGlobales.puntosAct >= 100000){
VariablesGlobales.logrosMan.DesbloquearLogro(ManagerLogros.CONSEGUIR_4_PUNTOS);
};
}
public function popPuntos(_arg1){
}
function onFinishTweenSalidaTienda():void{
abrirTienda();
}
private function SalidaPuntuacion():void{
p_negro_puntuacion.alpha = 0;
p_negro_puntuacion.visible = true;
TweenLite.to(p_negro_puntuacion, 0.3, {delay:0, alpha:1, onComplete:onFinishTweenSalidaPuntuacion});
}
private function OcultarPeliculas():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaBotonesIngame.length) {
BotonSkillIngame(listaBotonesIngame[_local1]).hideMovie();
_local1++;
};
}
public function popDinero(_arg1){
}
private function on_enter_frame_transicion(_arg1:Event):void{
if (mc_versus.currentFrame == mc_versus.totalFrames){
removeEventListener(Event.ENTER_FRAME, on_enter_frame_transicion);
InciarDatos();
removeChild(mc_versus);
p_botones_comunes.visible = true;
p_tutorial.visible = VariablesGlobales.mostrarTutorial;
VariablesGlobales.mostrarTutorial = false;
};
}
}
}//package
Section 321
//Logros (Logros)
package {
import Playtomic.*;
import flash.events.*;
import gs.*;
import flash.display.*;
public class Logros extends Ventana {
public var b_medalla10:MovieClip;
public var b_medalla13:MovieClip;
public var b_medalla14:MovieClip;
public var b_medalla15:MovieClip;
public var b_medalla11:MovieClip;
public var b_medalla12:MovieClip;
public var b_medalla2:MovieClip;
public var b_medalla4:MovieClip;
public var b_medalla7:MovieClip;
public var b_medalla8:MovieClip;
public var b_medalla6:MovieClip;
public var b_medalla3:MovieClip;
public var b_medalla9:MovieClip;
public var b_medalla1:MovieClip;
public var b_medalla5:MovieClip;
public var b_exit:SimpleButton;
public function Logros(){
addFrameScript(4, frame5);
Log.CustomMetric("ViewedMedals");
}
override protected function Cargar_Ventana():void{
b_exit.addEventListener(MouseEvent.CLICK, on_button_clicked);
EstadoMedallas();
super.Cargar_Ventana();
}
function frame5(){
stop();
}
override protected function Descargar_Ventana():void{
b_exit.removeEventListener(MouseEvent.CLICK, on_button_clicked);
super.Descargar_Ventana();
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_exit":
TweenLite.to(this, 0.2, {delay:0, alpha:0, onComplete:onFinishTweenSalida});
break;
};
}
function onFinishTweenSalida():void{
main_class.cierra_pantalla(this);
}
private function EstadoMedallas():void{
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.CONSEGUIR_1_PUNTOS)){
b_medalla1.gotoAndStop(2);
} else {
b_medalla1.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.CONSEGUIR_2_PUNTOS)){
b_medalla2.gotoAndStop(2);
} else {
b_medalla2.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.CONSEGUIR_3_PUNTOS)){
b_medalla3.gotoAndStop(2);
} else {
b_medalla3.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.CONSEGUIR_4_PUNTOS)){
b_medalla4.gotoAndStop(2);
} else {
b_medalla4.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.CONSEGUIR_1_DINERO)){
b_medalla5.gotoAndStop(2);
} else {
b_medalla5.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.CONSEGUIR_2_DINERO)){
b_medalla6.gotoAndStop(2);
} else {
b_medalla6.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.CONSEGUIR_3_DINERO)){
b_medalla7.gotoAndStop(2);
} else {
b_medalla7.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.CONSEGUIR_4_DINERO)){
b_medalla8.gotoAndStop(2);
} else {
b_medalla8.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.SUBIR_PUNTUACION)){
b_medalla9.gotoAndStop(2);
} else {
b_medalla9.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.DESBLOQUEAR_ATAQUES)){
b_medalla10.gotoAndStop(2);
} else {
b_medalla10.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.DESBLOQUEAR_BUFFS)){
b_medalla11.gotoAndStop(2);
} else {
b_medalla11.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.DESBLOQUEAR_ESPECIALES)){
b_medalla12.gotoAndStop(2);
} else {
b_medalla12.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.DESBLOQUEAR_TODO)){
b_medalla13.gotoAndStop(2);
} else {
b_medalla13.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.VISITAR_SPONSOR)){
b_medalla14.gotoAndStop(2);
} else {
b_medalla14.gotoAndStop(1);
};
if (VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.VISITAR_TANOKU)){
b_medalla15.gotoAndStop(2);
} else {
b_medalla15.gotoAndStop(1);
};
}
}
}//package
Section 322
//ManagerLogros (ManagerLogros)
package {
import flash.utils.*;
import flash.events.*;
import gs.*;
import flash.display.*;
public class ManagerLogros {
public var matrizLogrosInicial:Array;
private var _colaLogros:Array;
private var _matrizLogros:Array;
private var _mostrandoLogro:Boolean;// = false
private var panelAchi:popupMedallas;
private var muertePanel:Timer;
private var timerLogros:Timer;
public var main_class:MovieClip;
public static const DESBLOQUEAR_BUFFS:int = 11;
public static const CONSEGUIR_4_PUNTOS:int = 4;
public static const CONSEGUIR_4_DINERO:int = 8;
public static const LOGRO_01:int = 1;
public static const LOGRO_02:int = 2;
public static const LOGRO_03:int = 3;
public static const LOGRO_05:int = 5;
public static const LOGRO_06:int = 6;
public static const LOGRO_07:int = 7;
public static const LOGRO_08:int = 8;
public static const LOGRO_09:int = 9;
public static const LOGRO_04:int = 4;
public static const DESBLOQUEAR_TODO:int = 13;
public static const CONSEGUIR_3_PUNTOS:int = 3;
public static const CONSEGUIR_3_DINERO:int = 7;
public static const LOGRO_10:int = 10;
public static const LOGRO_11:int = 11;
public static const LOGRO_12:int = 12;
public static const LOGRO_14:int = 14;
public static const LOGRO_13:int = 13;
public static const LOGRO_15:int = 15;
public static const CONSEGUIR_2_PUNTOS:int = 2;
public static const DESBLOQUEAR_ESPECIALES:int = 12;
public static const SUBIR_PUNTUACION:int = 9;
public static const VISITAR_SPONSOR:int = 14;
public static const CONSEGUIR_2_DINERO:int = 6;
public static const VISITAR_TANOKU:int = 15;
public static const DESBLOQUEAR_ATAQUES:int = 10;
public static const CONSEGUIR_1_PUNTOS:int = 1;
public static const CONSEGUIR_1_DINERO:int = 5;
public function ManagerLogros(){
_matrizLogros = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
matrizLogrosInicial = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_colaLogros = [];
_mostrandoLogro = false;
timerLogros = new Timer(1000, 1);
super();
trace("inicia manager logros");
_matrizLogros = matrizLogrosInicial;
timerLogros.addEventListener(TimerEvent.TIMER_COMPLETE, timerComplete);
timerLogros.start();
}
private function on_finish_timer(_arg1:TimerEvent):void{
muertePanel.removeEventListener(TimerEvent.TIMER_COMPLETE, on_finish_timer);
TweenLite.to(panelAchi, 3, {alpha:0, onComplete:onFinishTween});
}
function onFinishTween():void{
trace("mostrando logro = false");
_mostrandoLogro = false;
}
public function DesbloquearTodos(){
_matrizLogros = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
VariablesGlobales.savegameMan.salvarPartida();
}
private function timerComplete(_arg1:TimerEvent):void{
timerLogros.start();
if ((((_colaLogros.length > 0)) && ((_mostrandoLogro == false)))){
mostrarLogro(_colaLogros.splice(0, 1));
};
}
private function mostrarLogro(_arg1:int):void{
_mostrandoLogro = true;
trace("mostrando logro = true");
panelAchi = new popupMedallas();
panelAchi.gotoAndStop(_arg1);
panelAchi.mouseEnabled = false;
panelAchi.mouseChildren = false;
panelAchi.x = 0;
panelAchi.y = 0;
VariablesGlobales.contenedorPadre.addChild(panelAchi);
muertePanel = new Timer(3000, 1);
muertePanel.addEventListener(TimerEvent.TIMER_COMPLETE, on_finish_timer);
muertePanel.start();
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound("buff1", 1, 0, 0);
};
}
public function DesbloquearLogro(_arg1:int){
if (LogroDesbloqueado(_arg1)){
return;
};
if (VariablesGlobales.savegameMan != null){
if (VariablesGlobales.savegameMan.cargandoSavegame){
return;
};
};
if (_matrizLogros[_arg1] == 0){
trace((("logro " + _arg1) + " desbloqueado"));
_matrizLogros[_arg1] = 1;
if (VariablesGlobales.savegameMan != null){
VariablesGlobales.savegameMan.salvarPartida();
};
_colaLogros.push(_arg1);
controlLogrosGS();
};
}
public function LogroDesbloqueado(_arg1:int):Boolean{
if (Number(_matrizLogros[_arg1]) == 1){
return (true);
};
return (false);
}
public function set matrizLogros(_arg1:Array):void{
_matrizLogros = _arg1;
}
public function get matrizLogros():Array{
return (_matrizLogros);
}
private function controlLogrosGS():void{
var _local1:int;
var _local2:int;
if (((GamerSafe.apiLoaded) && (GamerSafe.api.loggedIn))){
_local1 = 0;
_local2 = 0;
while (_local2 < _matrizLogros.length) {
if (_matrizLogros[_local2] == 1){
_local1++;
};
_local2++;
};
trace((("control logros GS. " + _local1) + " medallas desbloqueadas"));
if (_local1 >= 5){
if (!(GamerSafe.api.hasAchievement(GamerSafeConstants.ACHIEVEMENT_UNLOCK_5_MEDALS))){
GamerSafe.api.bestowAchievement(GamerSafeConstants.ACHIEVEMENT_UNLOCK_5_MEDALS);
};
};
if (_local1 >= 10){
if (!(GamerSafe.api.hasAchievement(GamerSafeConstants.ACHIEVEMENT_UNLOCK_10_MEDALS))){
GamerSafe.api.bestowAchievement(GamerSafeConstants.ACHIEVEMENT_UNLOCK_10_MEDALS);
};
};
if (_local1 >= 15){
if (!(GamerSafe.api.hasAchievement(GamerSafeConstants.ACHIEVEMENT_UNLOCK_15_MEDALS))){
GamerSafe.api.bestowAchievement(GamerSafeConstants.ACHIEVEMENT_UNLOCK_15_MEDALS);
};
};
};
}
}
}//package
Section 323
//ManagerPartidas (ManagerPartidas)
package {
import flash.net.*;
public class ManagerPartidas {
private var ultimoRecordIni;
private var cadenaDatos;
private var nivelCriticoIni;
private var nivelDineroIni;
private var dineroTotalIni;
private var nivelPacienciaIni;
private var nivelRabiaIni;
var so:SharedObject;
public var cargandoSavegame;// = false
private var cargadosIni;
private var logrosIni;
private var compradosIni;
public function ManagerPartidas(){
so = SharedObject.getLocal("ipfi_so", "/");
cargandoSavegame = false;
super();
cargarPartida();
}
private function crearCadenaDatos():void{
var _local1:int;
cadenaDatos = "";
cadenaDatos = (cadenaDatos + VariablesGlobales.nivelPaciencia);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.nivelRabia);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.nivelCritical);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.nivelMoney);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.dineroTotal);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.puntosRecord);
cadenaDatos = (cadenaDatos + "|");
_local1 = 0;
while (_local1 < VariablesGlobales.logrosMan.matrizLogros.length) {
cadenaDatos = (cadenaDatos + VariablesGlobales.logrosMan.matrizLogros[_local1]);
if (_local1 != (VariablesGlobales.logrosMan.matrizLogros.length - 1)){
cadenaDatos = (cadenaDatos + ",");
};
_local1++;
};
cadenaDatos = (cadenaDatos + "|");
_local1 = 0;
while (_local1 < VariablesGlobales.skillsComprados.length) {
cadenaDatos = (cadenaDatos + VariablesGlobales.skillsComprados[_local1]);
if (_local1 != (VariablesGlobales.skillsComprados.length - 1)){
cadenaDatos = (cadenaDatos + ",");
};
_local1++;
};
cadenaDatos = (cadenaDatos + "|");
_local1 = 0;
while (_local1 < VariablesGlobales.skillsJugador.length) {
cadenaDatos = (cadenaDatos + VariablesGlobales.skillsJugador[_local1]);
if (_local1 != (VariablesGlobales.skillsJugador.length - 1)){
cadenaDatos = (cadenaDatos + ",");
};
_local1++;
};
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_total_score);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_total_money);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_total_time);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_total_hits);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_total_attacks);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_total_buffs);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_total_specials);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_last_score);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_last_money);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_last_time);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_last_hits);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_last_attacks);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_last_buffs);
cadenaDatos = ((cadenaDatos + "|") + VariablesGlobales.est_last_specials);
cadenaDatos = (cadenaDatos + "|");
}
private function leerCadenaDatos():void{
var _local1:Array;
trace(("cadena a leer : " + cadenaDatos));
cargandoSavegame = true;
_local1 = cadenaDatos.split("|");
VariablesGlobales.nivelPaciencia = _local1[0];
VariablesGlobales.nivelRabia = _local1[1];
VariablesGlobales.nivelCritical = _local1[2];
VariablesGlobales.nivelMoney = _local1[3];
VariablesGlobales.dineroTotal = 0;
VariablesGlobales.balanceDinero(_local1[4], false);
VariablesGlobales.puntosRecord = _local1[5];
VariablesGlobales.logrosMan.matrizLogros = String(_local1[6]).split(",");
VariablesGlobales.skillsComprados = String(_local1[7]).split(",");
VariablesGlobales.skillsJugador = String(_local1[8]).split(",");
VariablesGlobales.est_total_score = _local1[9];
VariablesGlobales.est_total_money = _local1[10];
VariablesGlobales.est_total_time = _local1[11];
VariablesGlobales.est_total_hits = _local1[12];
VariablesGlobales.est_total_attacks = _local1[13];
VariablesGlobales.est_total_buffs = _local1[14];
VariablesGlobales.est_total_specials = _local1[15];
VariablesGlobales.est_last_score = _local1[16];
VariablesGlobales.est_last_money = _local1[17];
VariablesGlobales.est_last_time = _local1[18];
VariablesGlobales.est_last_hits = _local1[19];
VariablesGlobales.est_last_attacks = _local1[20];
VariablesGlobales.est_last_buffs = _local1[21];
VariablesGlobales.est_last_specials = _local1[22];
trace(((("medallas (" + VariablesGlobales.logrosMan.matrizLogros.length) + ")") + VariablesGlobales.logrosMan.matrizLogros));
trace(("comprados " + VariablesGlobales.skillsComprados));
trace(("cargados " + VariablesGlobales.skillsJugador));
cargandoSavegame = false;
}
public function salvarPartida(){
if (cargandoSavegame){
return;
};
trace("--salvar partida AHORA--");
crearCadenaDatos();
trace("cadena de datos generada para guardar");
trace(cadenaDatos);
salvarPartidaSO();
}
public function desbloquearTodo(){
VariablesGlobales.skillsComprados = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019];
VariablesGlobales.nivelPaciencia = 10;
VariablesGlobales.nivelRabia = 10;
VariablesGlobales.nivelCritical = 10;
VariablesGlobales.nivelMoney = 10;
salvarPartida();
}
private function salvarPartidaSO():void{
so.data.inicializados = true;
so.data.savedGame = cadenaDatos;
so.flush();
trace("saveGame SO actualizado");
}
private function leerPartidaGG():void{
if (GamerSafe.api.savedGame == ""){
return;
};
cadenaDatos = "";
cadenaDatos = GamerSafe.api.savedGame;
trace(("cargar GG = " + cadenaDatos));
}
public function cargarPartida(){
trace("--cargar partida AHORA--");
cargarPartidaPorDefecto();
trace("buscar saveGame SO");
leerPartidaSO();
leerCadenaDatos();
}
private function leerPartidaSO():void{
if (so.data.savedGame == undefined){
return;
};
cadenaDatos = "";
cadenaDatos = so.data.savedGame;
trace(("cargar local = " + cadenaDatos));
}
private function salvarPartidaGG():void{
GamerSafe.api.savedGame = cadenaDatos;
trace("saveGame GG actualizado");
}
public function borrarPartida(){
cargarPartidaPorDefecto();
salvarPartida();
}
private function cargarPartidaPorDefecto():void{
VariablesGlobales.logrosMan.matrizLogros = VariablesGlobales.logrosMan.matrizLogrosInicial;
VariablesGlobales.skillsComprados = [1, 4, 10, 22, 2001];
VariablesGlobales.skillsJugador = [1, 4, 10, 22, 2001, 0, 0, 0, 0, 0];
VariablesGlobales.nivelPaciencia = 1;
VariablesGlobales.nivelRabia = 1;
VariablesGlobales.nivelCritical = 1;
VariablesGlobales.nivelMoney = 1;
VariablesGlobales.dineroTotal = 0;
VariablesGlobales.puntosRecord = 0;
VariablesGlobales.est_total_score = 0;
VariablesGlobales.est_total_money = 0;
VariablesGlobales.est_total_time = 0;
VariablesGlobales.est_total_hits = 0;
VariablesGlobales.est_total_attacks = 0;
VariablesGlobales.est_total_buffs = 0;
VariablesGlobales.est_total_specials = 0;
VariablesGlobales.est_last_score = 0;
VariablesGlobales.est_last_money = 0;
VariablesGlobales.est_last_time = 0;
VariablesGlobales.est_last_hits = 0;
VariablesGlobales.est_last_attacks = 0;
VariablesGlobales.est_last_buffs = 0;
VariablesGlobales.est_last_specials = 0;
crearCadenaDatos();
}
}
}//package
Section 324
//ManagerScript (ManagerScript)
package {
import flash.geom.*;
public class ManagerScript {
private function ejecutarUbicarIni(_arg1:String):void{
VariablesGlobales.cartelPosX = VariablesGlobales.cartelPosXIni;
VariablesGlobales.cartelPosY = VariablesGlobales.cartelPosYIni;
}
private function ejecutarAleatorio(_arg1:String):void{
trace(("aleatoreo " + _arg1));
if (_arg1 == "true"){
VariablesGlobales.cartelPosAleatoreo = true;
} else {
VariablesGlobales.cartelPosAleatoreo = false;
};
}
private function ejecutarMasDinero(_arg1:String):void{
var _local2:Number;
_local2 = int(_arg1.split(",")[0]);
VariablesGlobales.dineroBonus = _local2;
VariablesGlobales.dineroTurnos = int(_arg1.split(",")[1]);
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.MASDINERO, String(_local2));
VariablesGlobales.juegoActual.mostrarIconoBuff(VariablesGlobales.juegoActual.b_p_dinero, VariablesGlobales.dineroTurnos);
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound("buff1", 1, 0, 0);
};
}
private function ejecutarPaciencia(_arg1:String):void{
var _local2:int;
trace(("ejecutar Paciencia var paciecnia max " + VariablesGlobales.pacienciaMax));
_local2 = ((int(_arg1) * VariablesGlobales.pacienciaMax) / 100);
trace(((((("recargar " + _arg1) + "% paciencia ") + "(") + _local2) + ")"));
trace(("ant " + VariablesGlobales.pacienciaAct));
VariablesGlobales.pacienciaAct = (VariablesGlobales.pacienciaAct + _local2);
trace(("pos " + VariablesGlobales.pacienciaAct));
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.MASPACIENCIA, String(_local2));
if (VariablesGlobales.pacienciaAct > VariablesGlobales.pacienciaMax){
VariablesGlobales.pacienciaAct = VariablesGlobales.pacienciaMax;
};
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound("buff1", 1, 0, 0);
};
}
public function parsearLinea(_arg1, _arg2:String):Boolean{
var _local3:int;
var _local4:String;
var _local5:String;
var _local6:Array;
_local6 = _arg2.split(" ");
_local3 = int(_local6[0]);
_local4 = String(_local6[1]);
_local5 = String(_local6[2]);
if (_arg1 > _local3){
return (false);
};
if (_arg1 == _local3){
EjecutarAccion(_local4, _local5);
};
return (true);
}
private function ejecutarUbicar(_arg1:String):void{
VariablesGlobales.cartelPosX = int(_arg1.split(",")[0]);
VariablesGlobales.cartelPosY = int(_arg1.split(",")[1]);
}
private function ejecutarAleatorioPos(_arg1:String):void{
VariablesGlobales.cartelAleatorioIni = new Point(int(_arg1.split(",")[0]), int(_arg1.split(",")[1]));
VariablesGlobales.cartelAleatorioFin = new Point(int(_arg1.split(",")[2]), int(_arg1.split(",")[3]));
}
private function ejecutarMasCritico(_arg1:String):void{
var _local2:Number;
_local2 = int(_arg1.split(",")[0]);
VariablesGlobales.criticoBonus = _local2;
VariablesGlobales.criticoTurnos = int(_arg1.split(",")[1]);
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.MASCRITICO, String(_local2));
VariablesGlobales.juegoActual.mostrarIconoBuff(VariablesGlobales.juegoActual.b_p_critico, VariablesGlobales.criticoTurnos);
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound("buff1", 1, 0, 0);
};
}
private function ejecutarRabia(_arg1:String):void{
var _local2:int;
_local2 = ((int(_arg1) * VariablesGlobales.rabiaMax) / 100);
trace(((((("recargar " + _arg1) + "% rabia ") + "(") + _local2) + ")"));
trace(("ant " + VariablesGlobales.rabiaAct));
VariablesGlobales.rabiaAct = (VariablesGlobales.rabiaAct + _local2);
trace(("pos " + VariablesGlobales.rabiaAct));
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.MASRABIA, String(_local2));
if (VariablesGlobales.rabiaAct > VariablesGlobales.rabiaMax){
VariablesGlobales.rabiaAct = VariablesGlobales.rabiaMax;
};
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound("buff1", 1, 0, 0);
};
}
private function ejecutarAtacar(_arg1:String):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Boolean;
var _local11:String;
var _local12:Number;
_local2 = int(_arg1.split(",")[0]);
_local3 = int(_arg1.split(",")[1]);
_local4 = VariablesGlobales.calcularValorAleatorio(_local2, _local3);
_local5 = 1;
_local6 = 1;
_local7 = 0;
_local8 = 0;
_local9 = 0;
_local10 = false;
if (VariablesGlobales.fuerzaTurnos > 0){
_local5 = VariablesGlobales.fuerzaBonus;
};
_local4 = (_local4 * _local5);
if (VariablesGlobales.criticoTurnos > 0){
_local9 = (VariablesGlobales.criticoProb + VariablesGlobales.criticoBonus);
} else {
_local9 = VariablesGlobales.criticoProb;
};
if (VariablesGlobales.calcularValorAleatorio(1, 100) <= _local9){
_local6 = VariablesGlobales.criticoMult;
_local10 = true;
};
_local4 = (_local4 * _local6);
if (VariablesGlobales.dineroTurnos > 0){
_local8 = (VariablesGlobales.dineroProb + VariablesGlobales.dineroBonus);
} else {
_local8 = VariablesGlobales.dineroProb;
};
if (VariablesGlobales.calcularValorAleatorio(1, 100) <= _local8){
_local7 = ((VariablesGlobales.dineroPorGolpe * _local4) / 100);
VariablesGlobales.dineroAct = (VariablesGlobales.dineroAct + _local7);
VariablesGlobales.juegoActual.popDinero(_local7);
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.DINERO, String(_local7));
};
if (VariablesGlobales.tipoSkillActual == Type_ID.ATTACK){
_local12 = ((VariablesGlobales.rabiaPorGolpe * _local4) / 100);
VariablesGlobales.rabiaAct = (VariablesGlobales.rabiaAct + _local12);
if (VariablesGlobales.rabiaAct > VariablesGlobales.rabiaMax){
VariablesGlobales.rabiaAct = VariablesGlobales.rabiaMax;
};
};
VariablesGlobales.puntosAct = (VariablesGlobales.puntosAct + _local4);
VariablesGlobales.juegoActual.popPuntos(_local4);
VariablesGlobales.hitsPartida++;
if (_local10){
VariablesGlobales.criticPartida++;
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.IMPACTO_CRITICO, String(_local4));
} else {
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.IMPACTO, String(_local4));
};
_local11 = ("impacto" + VariablesGlobales.calcularValorAleatorio(1, 4));
trace(_local11);
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound(_local11, 1, 0, 0);
};
}
public function EjecutarAccion(_arg1:String, _arg2:String){
switch (_arg1){
case Skill_Action.ATACAR:
ejecutarAtacar(_arg2);
break;
case Skill_Action.UBICAR:
ejecutarUbicar(_arg2);
break;
case Skill_Action.UBICARINI:
ejecutarUbicarIni(_arg2);
break;
case Skill_Action.ALEATORIO:
ejecutarAleatorio(_arg2);
break;
case Skill_Action.ALEATORIOPOS:
ejecutarAleatorioPos(_arg2);
break;
case Skill_Action.PACIENCIA:
ejecutarPaciencia(_arg2);
break;
case Skill_Action.RABIA:
ejecutarRabia(_arg2);
break;
case Skill_Action.MASDINERO:
ejecutarMasDinero(_arg2);
break;
case Skill_Action.MASCRITICO:
ejecutarMasCritico(_arg2);
break;
case Skill_Action.MASFUERZA:
ejecutarMasFuerza(_arg2);
break;
case Skill_Action.REFRESCARSKILLS:
ejecutarRefrescarSkills();
break;
default:
trace((("**ERROR** accion [" + _arg1) + "] no reconocida"));
};
}
private function ejecutarRefrescarSkills():void{
VariablesGlobales.juegoActual.RefrescarSkills();
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.REFRESCARSKILLS, "Reset Skills");
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound("buff1", 1, 0, 0);
};
}
private function ejecutarMasFuerza(_arg1:String):void{
var _local2:Number;
_local2 = int(_arg1.split(",")[0]);
VariablesGlobales.fuerzaBonus = _local2;
VariablesGlobales.fuerzaTurnos = int(_arg1.split(",")[1]);
VariablesGlobales.juegoActual.CrearCartelFlotante(TextoFlotante.MASFUERZA, "Double Damage");
VariablesGlobales.juegoActual.mostrarIconoBuff(VariablesGlobales.juegoActual.b_fuerza, VariablesGlobales.fuerzaTurnos);
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound("buff1", 1, 0, 0);
};
}
}
}//package
Section 325
//pelicula_skill_temporal (pelicula_skill_temporal)
package {
import flash.display.*;
public dynamic class pelicula_skill_temporal extends MovieClip {
}
}//package
Section 326
//pelicula1_ (pelicula1_)
package {
import flash.display.*;
public dynamic class pelicula1_ extends MovieClip {
}
}//package
Section 327
//pelicula10_ (pelicula10_)
package {
import flash.display.*;
public dynamic class pelicula10_ extends MovieClip {
}
}//package
Section 328
//pelicula1001_ (pelicula1001_)
package {
import flash.display.*;
public dynamic class pelicula1001_ extends MovieClip {
}
}//package
Section 329
//pelicula1002_ (pelicula1002_)
package {
import flash.display.*;
public dynamic class pelicula1002_ extends MovieClip {
}
}//package
Section 330
//pelicula1003_ (pelicula1003_)
package {
import flash.display.*;
public dynamic class pelicula1003_ extends MovieClip {
}
}//package
Section 331
//pelicula1004_ (pelicula1004_)
package {
import flash.display.*;
public dynamic class pelicula1004_ extends MovieClip {
}
}//package
Section 332
//pelicula1005_ (pelicula1005_)
package {
import flash.display.*;
public dynamic class pelicula1005_ extends MovieClip {
public var e2:MovieClip;
public var e1:MovieClip;
}
}//package
Section 333
//pelicula1006_ (pelicula1006_)
package {
import flash.display.*;
public dynamic class pelicula1006_ extends MovieClip {
public var e2:MovieClip;
public var e3:MovieClip;
public var e1:MovieClip;
}
}//package
Section 334
//pelicula1007_ (pelicula1007_)
package {
import flash.display.*;
public dynamic class pelicula1007_ extends MovieClip {
}
}//package
Section 335
//pelicula1008_ (pelicula1008_)
package {
import flash.display.*;
public dynamic class pelicula1008_ extends MovieClip {
}
}//package
Section 336
//pelicula1009_ (pelicula1009_)
package {
import flash.display.*;
public dynamic class pelicula1009_ extends MovieClip {
}
}//package
Section 337
//pelicula1010_ (pelicula1010_)
package {
import flash.display.*;
public dynamic class pelicula1010_ extends MovieClip {
}
}//package
Section 338
//pelicula1011_ (pelicula1011_)
package {
import flash.display.*;
public dynamic class pelicula1011_ extends MovieClip {
}
}//package
Section 339
//pelicula1012_ (pelicula1012_)
package {
import flash.display.*;
public dynamic class pelicula1012_ extends MovieClip {
}
}//package
Section 340
//pelicula1013_ (pelicula1013_)
package {
import flash.display.*;
public dynamic class pelicula1013_ extends MovieClip {
}
}//package
Section 341
//pelicula1014_ (pelicula1014_)
package {
import flash.display.*;
public dynamic class pelicula1014_ extends MovieClip {
}
}//package
Section 342
//pelicula11_ (pelicula11_)
package {
import flash.display.*;
public dynamic class pelicula11_ extends MovieClip {
public var e2:MovieClip;
public var e3:MovieClip;
public var e1:MovieClip;
public var h1:MovieClip;
public var h2:MovieClip;
public var h4:MovieClip;
public var h3:MovieClip;
}
}//package
Section 343
//pelicula12_ (pelicula12_)
package {
import flash.display.*;
public dynamic class pelicula12_ extends MovieClip {
}
}//package
Section 344
//pelicula13_ (pelicula13_)
package {
import flash.display.*;
public dynamic class pelicula13_ extends MovieClip {
public var h10:MovieClip;
public var h13:MovieClip;
public var h12:MovieClip;
public var h17:MovieClip;
public var h11:MovieClip;
public var h16:MovieClip;
public var h18:MovieClip;
public var h15:MovieClip;
public var h1:MovieClip;
public var h2:MovieClip;
public var h4:MovieClip;
public var h5:MovieClip;
public var h6:MovieClip;
public var h7:MovieClip;
public var h8:MovieClip;
public var h9:MovieClip;
public var h3:MovieClip;
public var h14:MovieClip;
}
}//package
Section 345
//pelicula14_ (pelicula14_)
package {
import flash.display.*;
public dynamic class pelicula14_ extends MovieClip {
public var golpe1:MovieClip;
public var golpe2:MovieClip;
}
}//package
Section 346
//pelicula15_ (pelicula15_)
package {
import flash.display.*;
public dynamic class pelicula15_ extends MovieClip {
}
}//package
Section 347
//pelicula16_ (pelicula16_)
package {
import flash.display.*;
public dynamic class pelicula16_ extends MovieClip {
}
}//package
Section 348
//pelicula17_ (pelicula17_)
package {
import flash.display.*;
public dynamic class pelicula17_ extends MovieClip {
public var i2:MovieClip;
public var i3:MovieClip;
}
}//package
Section 349
//pelicula18_ (pelicula18_)
package {
import flash.display.*;
public dynamic class pelicula18_ extends MovieClip {
}
}//package
Section 350
//pelicula19_ (pelicula19_)
package {
import flash.display.*;
public dynamic class pelicula19_ extends MovieClip {
}
}//package
Section 351
//pelicula2_ (pelicula2_)
package {
import flash.display.*;
public dynamic class pelicula2_ extends MovieClip {
public var e2:MovieClip;
public var e3:MovieClip;
public var e4:MovieClip;
public var e1:MovieClip;
}
}//package
Section 352
//pelicula20_ (pelicula20_)
package {
import flash.display.*;
public dynamic class pelicula20_ extends MovieClip {
}
}//package
Section 353
//pelicula2001_ (pelicula2001_)
package {
import flash.display.*;
public dynamic class pelicula2001_ extends MovieClip {
}
}//package
Section 354
//pelicula2002_ (pelicula2002_)
package {
import flash.display.*;
public dynamic class pelicula2002_ extends MovieClip {
}
}//package
Section 355
//pelicula2003_ (pelicula2003_)
package {
import flash.display.*;
public dynamic class pelicula2003_ extends MovieClip {
}
}//package
Section 356
//pelicula2004_ (pelicula2004_)
package {
import flash.display.*;
public dynamic class pelicula2004_ extends MovieClip {
}
}//package
Section 357
//pelicula2005_ (pelicula2005_)
package {
import flash.display.*;
public dynamic class pelicula2005_ extends MovieClip {
public var r2:MovieClip;
public var r3:MovieClip;
public var r4:MovieClip;
}
}//package
Section 358
//pelicula2006_ (pelicula2006_)
package {
import flash.display.*;
public dynamic class pelicula2006_ extends MovieClip {
}
}//package
Section 359
//pelicula2007_ (pelicula2007_)
package {
import flash.display.*;
public dynamic class pelicula2007_ extends MovieClip {
}
}//package
Section 360
//pelicula2008_ (pelicula2008_)
package {
import flash.display.*;
public dynamic class pelicula2008_ extends MovieClip {
}
}//package
Section 361
//pelicula2009_ (pelicula2009_)
package {
import flash.display.*;
public dynamic class pelicula2009_ extends MovieClip {
public var e2:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
}
}//package
Section 362
//pelicula2010_ (pelicula2010_)
package {
import flash.display.*;
public dynamic class pelicula2010_ extends MovieClip {
}
}//package
Section 363
//pelicula2011_ (pelicula2011_)
package {
import flash.display.*;
public dynamic class pelicula2011_ extends MovieClip {
}
}//package
Section 364
//pelicula2012_ (pelicula2012_)
package {
import flash.display.*;
public dynamic class pelicula2012_ extends MovieClip {
}
}//package
Section 365
//pelicula2013_ (pelicula2013_)
package {
import flash.display.*;
public dynamic class pelicula2013_ extends MovieClip {
}
}//package
Section 366
//pelicula2014_ (pelicula2014_)
package {
import flash.display.*;
public dynamic class pelicula2014_ extends MovieClip {
}
}//package
Section 367
//pelicula2015_ (pelicula2015_)
package {
import flash.display.*;
public dynamic class pelicula2015_ extends MovieClip {
public var z:MovieClip;
}
}//package
Section 368
//pelicula2016_ (pelicula2016_)
package {
import flash.display.*;
public dynamic class pelicula2016_ extends MovieClip {
}
}//package
Section 369
//pelicula2017_ (pelicula2017_)
package {
import flash.display.*;
public dynamic class pelicula2017_ extends MovieClip {
}
}//package
Section 370
//pelicula2018_ (pelicula2018_)
package {
import flash.display.*;
public dynamic class pelicula2018_ extends MovieClip {
}
}//package
Section 371
//pelicula2019_ (pelicula2019_)
package {
import flash.display.*;
public dynamic class pelicula2019_ extends MovieClip {
}
}//package
Section 372
//pelicula21_ (pelicula21_)
package {
import flash.display.*;
public dynamic class pelicula21_ extends MovieClip {
public var p1:MovieClip;
public var p2:MovieClip;
}
}//package
Section 373
//pelicula22_ (pelicula22_)
package {
import flash.display.*;
public dynamic class pelicula22_ extends MovieClip {
}
}//package
Section 374
//pelicula23_ (pelicula23_)
package {
import flash.display.*;
public dynamic class pelicula23_ extends MovieClip {
}
}//package
Section 375
//pelicula24_ (pelicula24_)
package {
import flash.display.*;
public dynamic class pelicula24_ extends MovieClip {
}
}//package
Section 376
//pelicula25_ (pelicula25_)
package {
import flash.display.*;
public dynamic class pelicula25_ extends MovieClip {
public var corte1:MovieClip;
public var corte2:MovieClip;
public var corte3:MovieClip;
}
}//package
Section 377
//pelicula26_ (pelicula26_)
package {
import flash.display.*;
public dynamic class pelicula26_ extends MovieClip {
public var c1:MovieClip;
public var c3:MovieClip;
public var c2:MovieClip;
}
}//package
Section 378
//pelicula27_ (pelicula27_)
package {
import flash.display.*;
public dynamic class pelicula27_ extends MovieClip {
}
}//package
Section 379
//pelicula28_ (pelicula28_)
package {
import flash.display.*;
public dynamic class pelicula28_ extends MovieClip {
public var corte1:MovieClip;
public var corte4:MovieClip;
public var corte2:MovieClip;
public var corte3:MovieClip;
public var corte5:MovieClip;
}
}//package
Section 380
//pelicula29_ (pelicula29_)
package {
import flash.display.*;
public dynamic class pelicula29_ extends MovieClip {
public var corte1:MovieClip;
public var corte4:MovieClip;
public var corte6:MovieClip;
public var corte8:MovieClip;
public var corte7:MovieClip;
public var corte9:MovieClip;
public var corte2:MovieClip;
public var corte3:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p6:MovieClip;
public var corte10:MovieClip;
public var corte5:MovieClip;
}
}//package
Section 381
//pelicula3_ (pelicula3_)
package {
import flash.display.*;
public dynamic class pelicula3_ extends MovieClip {
public var h2:MovieClip;
public var h4:MovieClip;
}
}//package
Section 382
//pelicula30_ (pelicula30_)
package {
import flash.display.*;
public dynamic class pelicula30_ extends MovieClip {
public var r2:MovieClip;
public var r3:MovieClip;
public var r6:MovieClip;
public var r8:MovieClip;
public var r5:MovieClip;
public var r4:MovieClip;
public var r7:MovieClip;
public var r1:MovieClip;
}
}//package
Section 383
//pelicula31_ (pelicula31_)
package {
import flash.display.*;
public dynamic class pelicula31_ extends MovieClip {
}
}//package
Section 384
//pelicula32_ (pelicula32_)
package {
import flash.display.*;
public dynamic class pelicula32_ extends MovieClip {
}
}//package
Section 385
//pelicula33_ (pelicula33_)
package {
import flash.display.*;
public dynamic class pelicula33_ extends MovieClip {
}
}//package
Section 386
//pelicula34_ (pelicula34_)
package {
import flash.display.*;
public dynamic class pelicula34_ extends MovieClip {
}
}//package
Section 387
//pelicula35_ (pelicula35_)
package {
import flash.display.*;
public dynamic class pelicula35_ extends MovieClip {
}
}//package
Section 388
//pelicula36_ (pelicula36_)
package {
import flash.display.*;
public dynamic class pelicula36_ extends MovieClip {
}
}//package
Section 389
//pelicula37_ (pelicula37_)
package {
import flash.display.*;
public dynamic class pelicula37_ extends MovieClip {
public var e2:MovieClip;
}
}//package
Section 390
//pelicula38_ (pelicula38_)
package {
import flash.display.*;
public dynamic class pelicula38_ extends MovieClip {
}
}//package
Section 391
//pelicula39_ (pelicula39_)
package {
import flash.display.*;
public dynamic class pelicula39_ extends MovieClip {
}
}//package
Section 392
//pelicula4_ (pelicula4_)
package {
import flash.display.*;
public dynamic class pelicula4_ extends MovieClip {
}
}//package
Section 393
//pelicula40_ (pelicula40_)
package {
import flash.display.*;
public dynamic class pelicula40_ extends MovieClip {
}
}//package
Section 394
//pelicula41_ (pelicula41_)
package {
import flash.display.*;
public dynamic class pelicula41_ extends MovieClip {
}
}//package
Section 395
//pelicula42_ (pelicula42_)
package {
import flash.display.*;
public dynamic class pelicula42_ extends MovieClip {
public var ikNode_1:MovieClip;
}
}//package
Section 396
//pelicula43_ (pelicula43_)
package {
import flash.display.*;
public dynamic class pelicula43_ extends MovieClip {
public var i5:MovieClip;
public var i4:MovieClip;
public var i10:MovieClip;
public var i1:MovieClip;
public var i2:MovieClip;
public var i6:MovieClip;
public var i7:MovieClip;
public var i8:MovieClip;
public var i3:MovieClip;
public var i9:MovieClip;
}
}//package
Section 397
//pelicula44_ (pelicula44_)
package {
import flash.display.*;
public dynamic class pelicula44_ extends MovieClip {
public var i5:MovieClip;
public var i4:MovieClip;
public var i10:MovieClip;
public var i1:MovieClip;
public var i2:MovieClip;
public var i6:MovieClip;
public var i7:MovieClip;
public var i8:MovieClip;
public var i3:MovieClip;
public var i9:MovieClip;
}
}//package
Section 398
//pelicula45_ (pelicula45_)
package {
import flash.display.*;
public dynamic class pelicula45_ extends MovieClip {
public var i1:MovieClip;
public var i2:MovieClip;
public var i3:MovieClip;
}
}//package
Section 399
//pelicula46_ (pelicula46_)
package {
import flash.display.*;
public dynamic class pelicula46_ extends MovieClip {
public var p:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p4:MovieClip;
}
}//package
Section 400
//pelicula47_ (pelicula47_)
package {
import flash.display.*;
public dynamic class pelicula47_ extends MovieClip {
}
}//package
Section 401
//pelicula48_ (pelicula48_)
package {
import flash.display.*;
public dynamic class pelicula48_ extends MovieClip {
}
}//package
Section 402
//pelicula5_ (pelicula5_)
package {
import flash.display.*;
public dynamic class pelicula5_ extends MovieClip {
}
}//package
Section 403
//pelicula6_ (pelicula6_)
package {
import flash.display.*;
public dynamic class pelicula6_ extends MovieClip {
public var e2:MovieClip;
public var e5:MovieClip;
public var e6:MovieClip;
public var e4:MovieClip;
public var e1:MovieClip;
public var e12:MovieClip;
public var e9:MovieClip;
public var e7:MovieClip;
public var e8:MovieClip;
public var h2:MovieClip;
public var h3:MovieClip;
}
}//package
Section 404
//pelicula7_ (pelicula7_)
package {
import flash.display.*;
public dynamic class pelicula7_ extends MovieClip {
public var e10:MovieClip;
public var e11:MovieClip;
public var e2:MovieClip;
public var e5:MovieClip;
public var e6:MovieClip;
public var e3:MovieClip;
public var e4:MovieClip;
public var e1:MovieClip;
public var e9:MovieClip;
public var e7:MovieClip;
public var e8:MovieClip;
}
}//package
Section 405
//pelicula8_ (pelicula8_)
package {
import flash.display.*;
public dynamic class pelicula8_ extends MovieClip {
}
}//package
Section 406
//pelicula9_ (pelicula9_)
package {
import flash.display.*;
public dynamic class pelicula9_ extends MovieClip {
public var e1:MovieClip;
}
}//package
Section 407
//popupMedallas (popupMedallas)
package {
import flash.display.*;
public dynamic class popupMedallas extends MovieClip {
}
}//package
Section 408
//Preloader_MC (Preloader_MC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Preloader_MC extends MovieClip {
public var b_tanoku:SimpleButton;
public var porc:TextField;
public var adBox:adBoxD;
public var jugar:SimpleButton;
public var t_flexion:TextField;
public var b_sponsor_d:SimpleButton;
public var b_sponsor_i:SimpleButton;
public var mike:MovieClip;
}
}//package
Section 409
//Principal (Principal)
package {
import mochi.as3.*;
import Playtomic.*;
import flash.events.*;
import com.greensock.*;
import flash.display.*;
import flash.text.*;
public class Principal extends Ventana {
public var b_tips:SimpleButton;
public var b_music:MovieClip;
public var b_cash:SimpleButton;
public var b_reset:SimpleButton;
public var p_negro:MovieClip;
public var b_start:SimpleButton;
public var b_sponsor:SimpleButton;
public var b_more_games:SimpleButton;
public var b_tanoku:SimpleButton;
public var b_ranking:SimpleButton;
var numero_clicks:int;// = 0
public var b_medallas:SimpleButton;
public var b_shop:SimpleButton;
public var b_oculto:MovieClip;
public var b_credits:SimpleButton;
public var b_unlock:SimpleButton;
public var t_version_m:TextField;
public var mc_mike:MovieClip;
public function Principal(){
numero_clicks = 0;
super();
addFrameScript(10, frame11);
Log.CustomMetric("ViewedMain");
}
private function AbrirLogros():void{
main_class.abre_pantalla(new Logros());
}
private function LanzarJuego():void{
if (validarSkills()){
VariablesGlobales.musicMan.stopAllSounds();
descargarDatos();
} else {
LanzarTienda();
};
}
function onFinishTweenSalidaTienda():void{
LanzarTienda();
}
override protected function Cargar_Ventana():void{
b_start.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_shop.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_credits.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_more_games.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_ranking.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_medallas.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_tips.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_sponsor.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_tanoku.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_oculto.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_cash.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_reset.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_unlock.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_cash.visible = false;
b_reset.visible = false;
b_unlock.visible = false;
t_version_m.visible = false;
b_music.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_music.buttonMode = true;
if (VariablesGlobales.musicaActual != "principal1"){
VariablesGlobales.musicaActual = "principal1";
VariablesGlobales.EstadoMusica();
};
VariablesGlobales.MostrarEstadoMusica(b_music);
p_negro.visible = false;
super.Cargar_Ventana();
MochiSocial.showLoginWidget({x:300, y:410});
}
private function descargarDatos():void{
if (VariablesGlobales.cargaFicherosExterna == true){
main_class.abre_pantalla(new Carga());
main_class.cierra_pantalla(this);
} else {
main_class.abre_pantalla(new Juego());
main_class.cierra_pantalla(this);
Log.CustomMetric("StartMain");
};
}
override protected function Descargar_Ventana():void{
MochiSocial.hideLoginWidget();
super.Descargar_Ventana();
}
function frame11(){
stop();
}
private function LanzarTienda():void{
main_class.abre_pantalla(new Tienda());
main_class.cierra_pantalla(this);
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_start":
mc_mike.gotoAndStop(2);
if (validarSkills()){
p_negro.alpha = 0;
p_negro.visible = true;
TweenLite.to(p_negro, 0.3, {delay:0.4, alpha:1, onComplete:onFinishTweenSalidaJuego});
} else {
p_negro.alpha = 0;
p_negro.visible = true;
TweenLite.to(p_negro, 0.3, {delay:0.4, alpha:1, onComplete:onFinishTweenSalidaTienda});
};
break;
case "b_shop":
mc_mike.gotoAndStop(2);
p_negro.alpha = 0;
p_negro.visible = true;
TweenLite.to(p_negro, 0.3, {delay:0.4, alpha:1, onComplete:onFinishTweenSalidaTienda});
break;
case "b_credits":
LanzarCreditos();
break;
case "b_more_games":
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_MORE);
break;
case "b_ranking":
VariablesGlobales.AbrePuntuaciones(main_class);
break;
case "b_medallas":
AbrirLogros();
break;
case "b_tips":
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_TIPS);
break;
case "b_sponsor":
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_SPONSOR);
break;
case "b_tanoku":
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_TANOKU);
break;
case "b_oculto":
numero_clicks++;
if (numero_clicks == 5){
b_cash.visible = true;
b_reset.visible = true;
b_unlock.visible = true;
t_version_m.visible = true;
b_reset.x = 650;
b_unlock.x = 650;
b_cash.x = 650;
t_version_m.x = 650;
};
break;
case "b_reset":
VariablesGlobales.savegameMan.borrarPartida();
break;
case "b_unlock":
VariablesGlobales.savegameMan.desbloquearTodo();
break;
case "b_cash":
VariablesGlobales.balanceDinero(10000);
break;
case "b_music":
VariablesGlobales.EstadoMusica(true);
VariablesGlobales.MostrarEstadoMusica(b_music);
break;
};
}
private function validarSkills():Boolean{
var _local1:int;
_local1 = 0;
while (_local1 < VariablesGlobales.skillsJugador.length) {
if (VariablesGlobales.skillsJugador[_local1] != 0){
return (true);
};
_local1++;
};
trace("no hay skills cargados");
return (false);
}
function onFinishTweenSalidaJuego():void{
LanzarJuego();
}
private function LanzarCreditos():void{
main_class.abre_pantalla(new Creditos());
}
}
}//package
Section 410
//principal1 (principal1)
package {
import flash.media.*;
public dynamic class principal1 extends Sound {
}
}//package
Section 411
//puntuacion1 (puntuacion1)
package {
import flash.media.*;
public dynamic class puntuacion1 extends Sound {
}
}//package
Section 412
//Ranking (Ranking)
package {
import Playtomic.*;
import gs.*;
import flash.events.*;
import flash.text.*;
import flash.display.*;
public class Ranking extends Ventana {
public var t_nombre10:TextField;
public var t_nombre1:TextField;
public var t_puntuacion10:TextField;
public var t_nombre2:TextField;
public var t_nombre5:TextField;
public var t_nombre6:TextField;
public var t_nombre7:TextField;
public var t_nombre9:TextField;
public var t_puntuacion1:TextField;
public var t_puntuacion3:TextField;
public var t_puntuacion4:TextField;
public var t_nombre3:TextField;
public var t_puntuacion6:TextField;
public var t_puntuacion7:TextField;
public var t_puntuacion8:TextField;
public var t_puntuacion9:TextField;
public var t_nombre8:TextField;
public var t_puntuacion5:TextField;
public var t_puntuacion2:TextField;
public var b_exit:SimpleButton;
public var t_nombre4:TextField;
public function Ranking(){
addFrameScript(4, frame5);
Log.CustomMetric("ViewedRanking");
t_nombre1.text = "";
t_nombre2.text = "";
t_nombre3.text = "";
t_nombre4.text = "";
t_nombre5.text = "";
t_nombre6.text = "";
t_nombre7.text = "";
t_nombre8.text = "";
t_nombre9.text = "";
t_nombre10.text = "";
t_puntuacion1.text = "";
t_puntuacion2.text = "";
t_puntuacion3.text = "";
t_puntuacion4.text = "";
t_puntuacion5.text = "";
t_puntuacion6.text = "";
t_puntuacion7.text = "";
t_puntuacion8.text = "";
t_puntuacion9.text = "";
t_puntuacion10.text = "";
Leaderboards.List("Score", this.DisplayScores, {global:true, highest:true, page:1, perpage:10});
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_exit":
TweenLite.to(this, 0.2, {delay:0, alpha:0, onComplete:onFinishTweenSalida});
break;
};
}
override protected function Cargar_Ventana():void{
b_exit.addEventListener(MouseEvent.CLICK, on_button_clicked);
super.Cargar_Ventana();
}
function DisplayScores(_arg1:Array, _arg2:int, _arg3:Object):void{
var _local4:*;
var _local5:PlayerScore;
if (_arg3.Success){
_local4 = 0;
while (_local4 < _arg1.length) {
_local5 = _arg1[_local4];
switch ((_local4 + 1)){
case 1:
t_nombre1.text = ("" + _local5.Name);
t_puntuacion1.text = ("" + _local5.Points);
break;
case 2:
t_nombre2.text = ("" + _local5.Name);
t_puntuacion2.text = ("" + _local5.Points);
break;
case 3:
t_nombre3.text = ("" + _local5.Name);
t_puntuacion3.text = ("" + _local5.Points);
break;
case 4:
t_nombre4.text = ("" + _local5.Name);
t_puntuacion4.text = ("" + _local5.Points);
break;
case 5:
t_nombre5.text = ("" + _local5.Name);
t_puntuacion5.text = ("" + _local5.Points);
break;
case 6:
t_nombre6.text = ("" + _local5.Name);
t_puntuacion6.text = ("" + _local5.Points);
break;
case 7:
t_nombre7.text = ("" + _local5.Name);
t_puntuacion7.text = ("" + _local5.Points);
break;
case 8:
t_nombre8.text = ("" + _local5.Name);
t_puntuacion8.text = ("" + _local5.Points);
break;
case 9:
t_nombre9.text = ("" + _local5.Name);
t_puntuacion9.text = ("" + _local5.Points);
break;
case 10:
t_nombre10.text = ("" + _local5.Name);
t_puntuacion10.text = ("" + _local5.Points);
break;
};
_local4++;
};
} else {
TweenLite.to(this, 0.2, {delay:0, alpha:0, onComplete:onFinishTweenSalida});
};
}
function frame5(){
stop();
}
override protected function Descargar_Ventana():void{
super.Descargar_Ventana();
}
function onFinishTweenSalida():void{
main_class.cierra_pantalla(this);
}
}
}//package
Section 413
//Redirigir (Redirigir)
package {
import Playtomic.*;
import flash.events.*;
import flash.text.*;
import flash.display.*;
public class Redirigir extends Ventana {
private var botonCompra;
public var t_sponsor:TextField;
public var b_yes:SimpleButton;
public var t_info:TextField;
private var skillData:Skill;
public var b_no:SimpleButton;
public var t_cost:TextField;
public function Redirigir(){
var _local1:String;
var _local2:String;
var _local3:String;
super();
Log.CustomMetric("ViewedRedirect");
_local1 = "Premiun features available at ";
_local2 = "";
_local3 = "Go now?";
t_info.text = _local1;
t_sponsor.text = _local2;
t_cost.text = _local3;
}
override protected function Cargar_Ventana():void{
b_yes.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_no.addEventListener(MouseEvent.CLICK, on_button_clicked);
super.Cargar_Ventana();
}
override protected function Descargar_Ventana():void{
super.Descargar_Ventana();
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_yes":
Log.CustomMetric("Redirected");
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_PREMIUM);
CerrarVentana();
break;
case "b_no":
CerrarVentana();
break;
};
}
private function CerrarVentana():void{
main_class.cierra_pantalla(this);
}
}
}//package
Section 414
//Skill (Skill)
package {
import flash.display.*;
public class Skill {
public var Angry:int;// = 0
public var Patience:int;// = 0
public var Recast:int;
public var Movie:MovieClip;
public var Icon:MovieClip;
public var ID:int;// = 0
public var Type:int;// = 0
public var Level:int;// = 0
public var Script:Array;
public var Cost:int;// = 0
public var Name:String;// = ""
public var Premium:int;// = 0
public function Skill(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
ID = 0;
Name = "";
Type = 0;
Level = 0;
Cost = 0;
Patience = 0;
Angry = 0;
Premium = 0;
super();
ID = _arg1;
Name = _arg2;
Type = _arg3;
Level = _arg4;
Icon = null;
Cost = _arg5;
Patience = _arg6;
Angry = _arg7;
Movie = null;
Script = new Array();
Recast = _arg8;
Premium = _arg9;
}
}
}//package
Section 415
//Skill_Action (Skill_Action)
package {
public class Skill_Action {
public static const ATACAR:String = "atacar";
public static const RABIA:String = "rabia";
public static const UBICAR:String = "ubicar";
public static const PACIENCIA:String = "paciencia";
public static const MUSICAFADE:String = "musicafade";
public static const REFRESCARSKILLS:String = "refrescarskills";
public static const UBICARINI:String = "ubicarini";
public static const MASFUERZA:String = "masfuerza";
public static const ALEATORIO:String = "aleatorio";
public static const MASDINERO:String = "masdinero";
public static const SONIDO:String = "sonido";
public static const MASCRITICO:String = "mascritico";
public static const ALEATORIOPOS:String = "aleatoriopos";
}
}//package
Section 416
//Skill_Icon (Skill_Icon)
package {
import flash.display.*;
public class Skill_Icon {
public function getIcon(_arg1):MovieClip{
var _local2:MovieClip;
switch (_arg1){
case 1:
_local2 = new icono1_();
break;
case 2:
_local2 = new icono2_();
break;
case 3:
_local2 = new icono3_();
break;
case 4:
_local2 = new icono4_();
break;
case 5:
_local2 = new icono5_();
break;
case 6:
_local2 = new icono6_();
break;
case 7:
_local2 = new icono7_();
break;
case 8:
_local2 = new icono8_();
break;
case 9:
_local2 = new icono9_();
break;
case 10:
_local2 = new icono10_();
break;
case 11:
_local2 = new icono11_();
break;
case 12:
_local2 = new icono12_();
break;
case 13:
_local2 = new icono13_();
break;
case 14:
_local2 = new icono14_();
break;
case 15:
_local2 = new icono15_();
break;
case 16:
_local2 = new icono16_();
break;
case 17:
_local2 = new icono17_();
break;
case 18:
_local2 = new icono18_();
break;
case 19:
_local2 = new icono19_();
break;
case 20:
_local2 = new icono20_();
break;
case 21:
_local2 = new icono21_();
break;
case 22:
_local2 = new icono22_();
break;
case 23:
_local2 = new icono23_();
break;
case 24:
_local2 = new icono24_();
break;
case 25:
_local2 = new icono25_();
break;
case 26:
_local2 = new icono26_();
break;
case 27:
_local2 = new icono27_();
break;
case 28:
_local2 = new icono28_();
break;
case 29:
_local2 = new icono29_();
break;
case 30:
_local2 = new icono30_();
break;
case 31:
_local2 = new icono31_();
break;
case 32:
_local2 = new icono32_();
break;
case 33:
_local2 = new icono33_();
break;
case 34:
_local2 = new icono34_();
break;
case 35:
_local2 = new icono35_();
break;
case 36:
_local2 = new icono36_();
break;
case 37:
_local2 = new icono37_();
break;
case 38:
_local2 = new icono38_();
break;
case 39:
_local2 = new icono39_();
break;
case 40:
_local2 = new icono40_();
break;
case 41:
_local2 = new icono41_();
break;
case 42:
_local2 = new icono42_();
break;
case 43:
_local2 = new icono43_();
break;
case 44:
_local2 = new icono44_();
break;
case 45:
_local2 = new icono45_();
break;
case 46:
_local2 = new icono46_();
break;
case 47:
_local2 = new icono47_();
break;
case 48:
_local2 = new icono48_();
break;
case 1001:
_local2 = new icono1001_();
break;
case 1002:
_local2 = new icono1002_();
break;
case 1003:
_local2 = new icono1003_();
break;
case 1004:
_local2 = new icono1004_();
break;
case 1005:
_local2 = new icono1005_();
break;
case 1006:
_local2 = new icono1006_();
break;
case 1007:
_local2 = new icono1007_();
break;
case 1008:
_local2 = new icono1008_();
break;
case 1009:
_local2 = new icono1009_();
break;
case 1010:
_local2 = new icono1010_();
break;
case 1011:
_local2 = new icono1011_();
break;
case 1012:
_local2 = new icono1012_();
break;
case 1013:
_local2 = new icono1013_();
break;
case 1014:
_local2 = new icono1014_();
break;
case 2001:
_local2 = new icono2001_();
break;
case 2002:
_local2 = new icono2002_();
break;
case 2003:
_local2 = new icono2003_();
break;
case 2004:
_local2 = new icono2004_();
break;
case 2005:
_local2 = new icono2005_();
break;
case 2006:
_local2 = new icono2006_();
break;
case 2007:
_local2 = new icono2007_();
break;
case 2008:
_local2 = new icono2008_();
break;
case 2009:
_local2 = new icono2009_();
break;
case 2010:
_local2 = new icono2010_();
break;
case 2011:
_local2 = new icono2011_();
break;
case 2012:
_local2 = new icono2012_();
break;
case 2013:
_local2 = new icono2013_();
break;
case 2014:
_local2 = new icono2014_();
break;
case 2015:
_local2 = new icono2015_();
break;
case 2016:
_local2 = new icono2016_();
break;
case 2017:
_local2 = new icono2017_();
break;
case 2018:
_local2 = new icono2018_();
break;
case 2019:
_local2 = new icono2019_();
break;
default:
trace((("**ERROR** icono " + _arg1) + " no asignado"));
_local2 = new icono_skill_temporal();
};
return (_local2);
}
}
}//package
Section 417
//Skill_List (Skill_List)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
public class Skill_List {
var arrayFicheroScript:Array;
var loadit:URLLoader;
var loader:Loader;
public var data:Array;
var cadenaFicheroIcono:String;
var manSkillIcon:Skill_Icon;
var cadenaFicheroScript:String;
var skillActual:Skill;
var manSkillScript:Skill_Script;
var cadenaFichero:String;
var manSkillMovie:Skill_Movie;
var skilladata:Array;
var arrayFichero:Array;
var url:String;// = "skilldata.txt"
var indiceActual:int;
public function Skill_List(){
url = "skilldata.txt";
loadit = new URLLoader();
super();
skilladata = new Array();
skilladata.push("0\t,Empty,\t\t\t0\t,0\t,0\t,0\t,0\t,0\t,0");
skilladata.push("1\t,Punch,\t\t\t1\t,1\t,1\t,5\t,0\t,48\t,0");
skilladata.push("2\t,Punch,\t\t\t1\t,2\t,5\t,12\t,0\t,68\t,0");
skilladata.push("3\t,Punch,\t\t\t1\t,3\t,25\t,30\t,0\t,110\t,0");
skilladata.push("4\t,Kick,\t\t\t1\t,1\t,1\t,5\t,0\t,48\t,0");
skilladata.push("5\t,Kick,\t\t\t1\t,2\t,15\t,15\t,0\t,68\t,0");
skilladata.push("6\t,Kick,\t\t\t1\t,3\t,25\t,30\t,0\t,110\t,0");
skilladata.push("7\t,Fire Weapons,\t\t1\t,1\t,30\t,30\t,0\t,100\t,0");
skilladata.push("8\t,Fire Weapons,\t\t1\t,2\t,75\t,50\t,0\t,160\t,0");
skilladata.push("9\t,Fire Weapons,\t\t1\t,3\t,175\t,90\t,0\t,200\t,0");
skilladata.push("10\t,Push,\t\t\t1\t,1\t,1\t,18\t,0\t,140\t,0");
skilladata.push("11\t,Push,\t\t\t1\t,2\t,30\t,35\t,0\t,130\t,0");
skilladata.push("12\t,Push,\t\t\t1\t,3\t,80\t,70\t,0\t,200\t,0");
skilladata.push("13\t,Combo,\t\t\t1\t,1\t,150\t,80\t,0\t,200\t,0");
skilladata.push("14\t,Combo,\t\t\t1\t,2\t,250\t,135\t,0\t,240\t,0");
skilladata.push("15\t,Combo,\t\t\t1\t,3\t,500\t,160\t,0\t,360\t,0");
skilladata.push("16\t,Ranged Weapons,\t1\t,1\t,20\t,20\t,0\t,100\t,0");
skilladata.push("17\t,Ranged Weapons,\t1\t,2\t,40\t,35\t,0\t,130\t,0");
skilladata.push("18\t,Ranged Weapons,\t1\t,3\t,50\t,35\t,0\t,150\t,0");
skilladata.push("19\t,Street Weapons,\t1\t,1\t,3\t,10\t,0\t,48\t,0");
skilladata.push("20\t,Street Weapons,\t1\t,2\t,8\t,12\t,0\t,120\t,0");
skilladata.push("21\t,Street Weapons,\t1\t,3\t,25\t,30\t,0\t,110\t,0");
skilladata.push("22\t,Lock,\t\t\t1\t,1\t,1\t,10\t,0\t,60\t,0");
skilladata.push("23\t,Lock,\t\t\t1\t,2\t,12\t,15\t,0\t,60\t,0");
skilladata.push("24\t,Lock,\t\t\t1\t,3\t,30\t,35\t,0\t,140\t,0");
skilladata.push("25\t,Sword,\t\t\t1\t,1\t,20\t,25\t,0\t,100\t,0");
skilladata.push("26\t,Sword,\t\t\t1\t,2\t,70\t,45\t,0\t,160\t,0");
skilladata.push("27\t,Sword,\t\t\t1\t,3\t,600\t,200\t,0\t,420\t,1");
skilladata.push("28\t,Katana,\t\t1\t,1\t,20\t,25\t,0\t,90\t,0");
skilladata.push("29\t,Katana,\t\t1\t,2\t,60\t,40\t,0\t,150\t,0");
skilladata.push("30\t,Katana,\t\t1\t,3\t,140\t,125\t,0\t,220\t,0");
skilladata.push("31\t,Balls,\t\t\t1\t,1\t,5\t,18\t,0\t,68\t,0");
skilladata.push("32\t,Balls,\t\t\t1\t,2\t,15\t,20\t,0\t,120\t,0");
skilladata.push("33\t,Balls,\t\t\t1\t,3\t,25\t,30\t,0\t,160\t,0");
skilladata.push("34\t,Lightning,\t\t1\t,1\t,100\t,60\t,0\t,170\t,0");
skilladata.push("35\t,Lightning,\t\t1\t,2\t,250\t,95\t,0\t,300\t,0");
skilladata.push("36\t,Lightning,\t\t1\t,3\t,500\t,225\t,0\t,450\t,1");
skilladata.push("37\t,Fire,\t\t\t1\t,1\t,150\t,100\t,0\t,200\t,0");
skilladata.push("38\t,Fire,\t\t\t1\t,2\t,300\t,130\t,0\t,300\t,0");
skilladata.push("39\t,Fire,\t\t\t1\t,3\t,500\t,250\t,0\t,500\t,1");
skilladata.push("40\t,Water,\t\t\t1\t,1\t,150\t,85\t,0\t,200\t,0");
skilladata.push("41\t,Water,\t\t\t1\t,2\t,450\t,155\t,0\t,380\t,0");
skilladata.push("42\t,Water,\t\t\t1\t,3\t,500\t,215\t,0\t,430\t,1");
skilladata.push("43\t,Chains,\t\t1\t,1\t,250\t,100\t,0\t,200\t,0");
skilladata.push("44\t,Chains,\t\t1\t,2\t,450\t,140\t,0\t,300\t,0");
skilladata.push("45\t,Chains,\t\t1\t,3\t,500\t,185\t,0\t,410\t,0");
skilladata.push("46\t,Lightsaber,\t\t1\t,1\t,250\t,100\t,0\t,200\t,0");
skilladata.push("47\t,Lightsaber,\t\t1\t,2\t,450\t,150\t,0\t,300\t,0");
skilladata.push("48\t,Lightsaber,\t\t1\t,3\t,500\t,180\t,0\t,400\t,0");
skilladata.push("1001\t,Cheerleaders,\t\t2\t,1\t,350\t,1\t,0\t,2880\t,0");
skilladata.push("1002\t,Cheerleaders,\t\t2\t,2\t,750\t,1\t,0\t,4320\t,0");
skilladata.push("1003\t,Cheerleaders,\t\t2\t,3\t,2500\t,1\t,0\t,7200\t,1");
skilladata.push("1004\t,Overtime,\t\t2\t,1\t,350\t,1\t,0\t,2880\t,0");
skilladata.push("1005\t,Overtime,\t\t2\t,2\t,750\t,1\t,0\t,4320\t,0");
skilladata.push("1006\t,Overtime,\t\t2\t,3\t,2500\t,1\t,0\t,7200\t,1");
skilladata.push("1007\t,Show me the money!,\t2\t,1\t,350\t,1\t,0\t,2880\t,0");
skilladata.push("1008\t,Show me the money!,\t2\t,2\t,750\t,1\t,0\t,4320\t,0");
skilladata.push("1009\t,Show me the money!,\t2\t,3\t,2500\t,1\t,0\t,7200\t,1");
skilladata.push("1010\t,I've got the power!,\t2\t,1\t,350\t,1\t,0\t,2880\t,0");
skilladata.push("1011\t,I've got the power!,\t2\t,2\t,750\t,1\t,0\t,4320\t,0");
skilladata.push("1012\t,I've got the power!,\t2\t,3\t,2500\t,1\t,0\t,7200\t,1");
skilladata.push("1013\t,Time forward,\t\t2\t,0\t,25000\t,1\t,0\t,-1\t,0");
skilladata.push("1014\t,Stronger than ever,\t2\t,0\t,10000\t,1\t,0\t,-1,0");
skilladata.push("2001\t,Scythe of death,\t3\t,0\t,1\t,0\t,4\t,720\t,0");
skilladata.push("2002\t,Kame,\t\t\t3\t,0\t,5000\t,0\t,100\t,6400\t,1");
skilladata.push("2003\t,Owned,\t\t\t3\t,0\t,500\t,0\t,60\t,4320\t,0");
skilladata.push("2004\t,Fly me to the moon,\t3\t,0\t,750\t,0\t,70\t,4320\t,0");
skilladata.push("2005\t,Mecha,\t\t\t3\t,0\t,175\t,0\t,35\t,1440\t,0");
skilladata.push("2006\t,Chuck,\t\t\t3\t,0\t,600\t,0\t,65\t,4320\t,0");
skilladata.push("2007\t,Nuclear Strike,\t3\t,0\t,7500\t,0\t,100\t,6800\t,1");
skilladata.push("2008\t,Around the world,\t3\t,0\t,500\t,0\t,40\t,1440\t,0");
skilladata.push("2009\t,Gate of the hell,\t3\t,0\t,550\t,0\t,55\t,4320\t,0");
skilladata.push("2010\t,Deep impact,\t\t3\t,0\t,20000\t,0\t,100\t,7200\t,1");
skilladata.push("2011\t,Cavalry,\t\t3\t,0\t,85\t,0\t,20\t,720\t,0");
skilladata.push("2012\t,Godhand,\t\t3\t,0\t,850\t,0\t,80\t,4320\t,0");
skilladata.push("2013\t,Titan,\t\t\t3\t,0\t,525\t,0\t,50\t,1440\t,0");
skilladata.push("2014\t,Wizard,\t\t3\t,0\t,30\t,0\t,10\t,720\t,0");
skilladata.push("2015\t,Thor,\t\t\t3\t,0\t,3000\t,0\t,100\t,6000\t,1");
skilladata.push("2016\t,Wolverine,\t\t3\t,0\t,300\t,0\t,30\t,1440\t,0");
skilladata.push("2017\t,Chainsaw,\t\t3\t,0\t,75\t,0\t,15\t,720\t,0");
skilladata.push("2018\t,Turret,\t\t3\t,0\t,100\t,0\t,25\t,720\t,0");
skilladata.push("2019\t,Sacrifice,\t\t3\t,0\t,900\t,0\t,90\t,4320\t,0");
VariablesGlobales.contenedorPadre.abre_pantalla(new Estado());
VariablesGlobales.totalAttacks = 0;
VariablesGlobales.totalBuffs = 0;
VariablesGlobales.totalSpecials = 0;
data = new Array();
VariablesGlobales.estadoActual.actualiza("cargar skills");
if (VariablesGlobales.cargaFicherosExterna == true){
loadit.addEventListener(Event.COMPLETE, completeHandler);
loadit.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loadit.load(new URLRequest(url));
} else {
manSkillScript = new Skill_Script();
manSkillIcon = new Skill_Icon();
manSkillMovie = new Skill_Movie();
lanzarCargaManual();
};
}
private function ioErrorHandlerIcon(_arg1:IOErrorEvent):void{
Skill(data[indiceActual]).Icon.addChild(new icono_vacio());
indiceActual++;
buscarScriptSkill();
}
private function parsearCadena():void{
var _local1:int;
var _local2:String;
var _local3:*;
arrayFichero = new Array();
arrayFichero = cadenaFichero.split(String.fromCharCode(13));
_local1 = 0;
while (_local1 < arrayFichero.length) {
_local2 = arrayFichero[_local1];
_local3 = _local2.charAt(1);
if (!(isNaN(Number(_local3)))){
parsearLinea(arrayFichero[_local1]);
};
_local1++;
};
trace((data.length + " skill cargados"));
VariablesGlobales.estadoActual.actualiza((data.length + " skill cargados"));
VariablesGlobales.scriptsCargadosOk = true;
VariablesGlobales.estadoActual.actualiza("cargar scripts");
indiceActual = 0;
VariablesGlobales.estadoActual.actualiza((("lanzar busqueda " + data.length) + " scripts"));
buscarScriptSkill();
}
private function parsearCadenaScript():void{
var _local1:int;
var _local2:String;
var _local3:*;
arrayFicheroScript = new Array();
arrayFicheroScript = cadenaFicheroScript.split(String.fromCharCode(13));
_local1 = 0;
while (_local1 < arrayFicheroScript.length) {
_local2 = arrayFicheroScript[_local1];
_local3 = _local2.charAt(1);
if (!(isNaN(Number(_local3)))){
parsearLineaScript(arrayFicheroScript[_local1]);
};
_local1++;
};
}
private function parsearLinea(_arg1:String):void{
var _local2:Array;
var _local3:int;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:Array;
_local2 = _arg1.split(",");
_local3 = int(_local2[0]);
_local4 = String(_local2[1]);
_local5 = int(_local2[2]);
_local6 = int(_local2[3]);
_local7 = int(_local2[4]);
_local8 = int(_local2[5]);
_local9 = int(_local2[6]);
_local10 = int(_local2[7]);
_local11 = int(_local2[8]);
if (_local5 == 1){
VariablesGlobales.totalAttacks++;
};
if (_local5 == 2){
VariablesGlobales.totalBuffs++;
};
if (_local5 == 3){
VariablesGlobales.totalSpecials++;
};
skillActual = new Skill(_local3, _local4, _local5, _local6, _local7, _local8, _local9, _local10, _local11);
data.push(skillActual);
VariablesGlobales.estadoActual.actualiza((((("alta skill " + _local4) + " (") + _local3) + ")"));
}
private function cargaManualPelicula(_arg1:Skill):void{
_arg1.Movie = null;
}
function completeHandler(_arg1:Event):void{
cadenaFichero = _arg1.target.data;
parsearCadena();
}
private function buscarScriptSkill():void{
VariablesGlobales.estadoActual.actualiza(("lanzar busqueda " + indiceActual));
if (indiceActual >= data.length){
VariablesGlobales.estadoActual.actualiza("fin scripts");
trace(("TOTAL ATAQUES = " + VariablesGlobales.totalAttacks));
trace(("TOTAL BUFFS = " + VariablesGlobales.totalBuffs));
trace(("TOTAL ESPECIALES = " + VariablesGlobales.totalSpecials));
VariablesGlobales.estadoActual.cierra();
finalizarCarga();
} else {
cargarScript(data[indiceActual]);
};
}
private function ioErrorHandlerScript(_arg1:IOErrorEvent):void{
cargarIcono(data[indiceActual]);
}
public function iconoSkill(_arg1:int):MovieClip{
var _local2:int;
_local2 = 0;
while (_local2 < data.length) {
if (_arg1 == data[_local2].ID){
return (data[_local2].Icon);
};
_local2++;
};
return (null);
}
private function cargaManualIcono(_arg1:Skill):void{
_arg1.Icon = new MovieClip();
_arg1.Icon.addChild(manSkillIcon.getIcon(_arg1.ID));
}
private function parsearLineaScript(_arg1:String):void{
trace(("script -> " + _arg1));
skillActual.Script.push(_arg1);
}
private function lanzarCargaManual():void{
var _local1:int;
_local1 = 0;
while (_local1 < skilladata.length) {
parsearLinea(skilladata[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < data.length) {
cargaManualScript(data[_local1]);
cargaManualIcono(data[_local1]);
cargaManualPelicula(data[_local1]);
_local1++;
};
VariablesGlobales.scriptsCargados = true;
VariablesGlobales.scriptsCargadosOk = true;
trace(("TOTAL ATAQUES = " + VariablesGlobales.totalAttacks));
trace(("TOTAL BUFFS = " + VariablesGlobales.totalBuffs));
trace(("TOTAL ESPECIALES = " + VariablesGlobales.totalSpecials));
VariablesGlobales.estadoActual.cierra();
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
VariablesGlobales.estadoActual.actualiza("**ERROR** no se han podido inicializar los datos");
data.push(new Skill(0, "", 0, 0, 0, 0, 0, 0, 0));
VariablesGlobales.scriptsCargadosOk = false;
}
function completeHandlerIcon(_arg1:Event):void{
Skill(data[indiceActual]).Icon.addChild(_arg1.target.content);
indiceActual++;
buscarScriptSkill();
}
private function LoadSkill():void{
}
private function cargarIcono(_arg1:Skill):void{
var _local2:String;
var _local3:Loader;
_arg1.Icon = new MovieClip();
cadenaFicheroIcono = "";
_local2 = (("icono" + _arg1.ID) + ".swf");
VariablesGlobales.estadoActual.actualiza(("buscar " + _local2));
_local3 = new Loader();
_local3.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandlerIcon);
_local3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandlerIcon);
_local3.load(new URLRequest(_local2));
}
private function cargarScript(_arg1:Skill):void{
var _local2:String;
var _local3:URLLoader;
_arg1.Script = new Array();
cadenaFicheroScript = "";
_local2 = (("script" + _arg1.ID) + ".txt");
VariablesGlobales.estadoActual.actualiza(("buscar " + _local2));
_local3 = new URLLoader();
_local3.addEventListener(Event.COMPLETE, completeHandlerScript);
_local3.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandlerScript);
_local3.load(new URLRequest(_local2));
}
function completeHandlerScript(_arg1:Event):void{
Skill(data[indiceActual]).Script = String(_arg1.target.data).split(String.fromCharCode(13));
cargarIcono(data[indiceActual]);
}
private function finalizarCarga():void{
VariablesGlobales.scriptsCargados = true;
}
private function cargaManualScript(_arg1:Skill):void{
_arg1.Script = manSkillScript.getScript(_arg1.ID);
}
}
}//package
Section 418
//Skill_Movie (Skill_Movie)
package {
import flash.display.*;
public class Skill_Movie {
public function getMovie(_arg1):MovieClip{
var _local2:MovieClip;
switch (_arg1){
case 1:
_local2 = new pelicula1_();
break;
case 2:
_local2 = new pelicula2_();
break;
case 3:
_local2 = new pelicula3_();
break;
case 4:
_local2 = new pelicula4_();
break;
case 5:
_local2 = new pelicula5_();
break;
case 6:
_local2 = new pelicula6_();
break;
case 7:
_local2 = new pelicula7_();
break;
case 8:
_local2 = new pelicula8_();
break;
case 9:
_local2 = new pelicula9_();
break;
case 10:
_local2 = new pelicula10_();
break;
case 11:
_local2 = new pelicula11_();
break;
case 12:
_local2 = new pelicula12_();
break;
case 13:
_local2 = new pelicula13_();
break;
case 14:
_local2 = new pelicula14_();
break;
case 15:
_local2 = new pelicula15_();
break;
case 16:
_local2 = new pelicula16_();
break;
case 17:
_local2 = new pelicula17_();
break;
case 18:
_local2 = new pelicula18_();
break;
case 19:
_local2 = new pelicula19_();
break;
case 20:
_local2 = new pelicula20_();
break;
case 21:
_local2 = new pelicula21_();
break;
case 22:
_local2 = new pelicula22_();
break;
case 23:
_local2 = new pelicula23_();
break;
case 24:
_local2 = new pelicula24_();
break;
case 25:
_local2 = new pelicula25_();
break;
case 26:
_local2 = new pelicula26_();
break;
case 27:
_local2 = new pelicula27_();
break;
case 28:
_local2 = new pelicula28_();
break;
case 29:
_local2 = new pelicula29_();
break;
case 30:
_local2 = new pelicula30_();
break;
case 31:
_local2 = new pelicula31_();
break;
case 32:
_local2 = new pelicula32_();
break;
case 33:
_local2 = new pelicula33_();
break;
case 34:
_local2 = new pelicula34_();
break;
case 35:
_local2 = new pelicula35_();
break;
case 36:
_local2 = new pelicula36_();
break;
case 37:
_local2 = new pelicula37_();
break;
case 38:
_local2 = new pelicula38_();
break;
case 39:
_local2 = new pelicula39_();
break;
case 40:
_local2 = new pelicula40_();
break;
case 41:
_local2 = new pelicula41_();
break;
case 42:
_local2 = new pelicula42_();
break;
case 43:
_local2 = new pelicula43_();
break;
case 44:
_local2 = new pelicula44_();
break;
case 45:
_local2 = new pelicula45_();
break;
case 46:
_local2 = new pelicula46_();
break;
case 47:
_local2 = new pelicula47_();
break;
case 48:
_local2 = new pelicula48_();
break;
case 1001:
_local2 = new pelicula1001_();
break;
case 1002:
_local2 = new pelicula1002_();
break;
case 1003:
_local2 = new pelicula1003_();
break;
case 1004:
_local2 = new pelicula1004_();
break;
case 1005:
_local2 = new pelicula1005_();
break;
case 1006:
_local2 = new pelicula1006_();
break;
case 1007:
_local2 = new pelicula1007_();
break;
case 1008:
_local2 = new pelicula1008_();
break;
case 1009:
_local2 = new pelicula1009_();
break;
case 1010:
_local2 = new pelicula1010_();
break;
case 1011:
_local2 = new pelicula1011_();
break;
case 1012:
_local2 = new pelicula1012_();
break;
case 1013:
_local2 = new pelicula1013_();
break;
case 1014:
_local2 = new pelicula1014_();
break;
case 2001:
_local2 = new pelicula2001_();
break;
case 2002:
_local2 = new pelicula2002_();
break;
case 2003:
_local2 = new pelicula2003_();
break;
case 2004:
_local2 = new pelicula2004_();
break;
case 2005:
_local2 = new pelicula2005_();
break;
case 2006:
_local2 = new pelicula2006_();
break;
case 2007:
_local2 = new pelicula2007_();
break;
case 2008:
_local2 = new pelicula2008_();
break;
case 2009:
_local2 = new pelicula2009_();
break;
case 2010:
_local2 = new pelicula2010_();
break;
case 2011:
_local2 = new pelicula2011_();
break;
case 2012:
_local2 = new pelicula2012_();
break;
case 2013:
_local2 = new pelicula2013_();
break;
case 2014:
_local2 = new pelicula2014_();
break;
case 2015:
_local2 = new pelicula2015_();
break;
case 2016:
_local2 = new pelicula2016_();
break;
case 2017:
_local2 = new pelicula2017_();
break;
case 2018:
_local2 = new pelicula2018_();
break;
case 2019:
_local2 = new pelicula2019_();
break;
default:
trace((("**ERROR** pelicula " + _arg1) + " no asignada"));
_local2 = new pelicula_skill_temporal();
};
return (_local2);
}
}
}//package
Section 419
//Skill_Script (Skill_Script)
package {
public class Skill_Script {
public function getScript(_arg1):Array{
var _local2:Array;
_local2 = new Array();
switch (_arg1){
case 1:
_local2.push("12 ubicar 407,224");
_local2.push("12 atacar 3,15");
_local2.push("20 ubicar 411,265");
_local2.push("20 atacar 3,15");
break;
case 2:
_local2.push("10 ubicar 438,294");
_local2.push("10 atacar 8,5");
_local2.push("17 ubicar 426,265");
_local2.push("17 atacar 8,15");
_local2.push("29 ubicar 453,275");
_local2.push("29 atacar 8,15");
_local2.push("36 ubicar 465,274");
_local2.push("36 atacar 8,15");
break;
case 3:
_local2.push("10 ubicar 401,363");
_local2.push("10 atacar 22,35");
_local2.push("25 atacar 22,35");
_local2.push("35 atacar 22,35");
_local2.push("45 atacar 22,35");
break;
case 4:
_local2.push("7 ubicar 410,275");
_local2.push("7 atacar 10,15");
_local2.push("16 ubicar 426,356");
_local2.push("16 atacar 10,15");
break;
case 5:
_local2.push("7 ubicar 454,289");
_local2.push("7 atacar 20,30");
_local2.push("22 ubicar 443,212");
_local2.push("22 atacar 20,30");
break;
case 6:
_local2.push("6 ubicar 415,322");
_local2.push("6 atacar 10,15");
_local2.push("10 ubicar 430,282");
_local2.push("10 atacar 10,15");
_local2.push("13 ubicar 450,248");
_local2.push("13 atacar 10,15");
_local2.push("20 ubicar 458,269");
_local2.push("20 atacar 10,15");
_local2.push("25 ubicar 448,239");
_local2.push("25 atacar 10,15");
_local2.push("32 ubicar 448,239");
_local2.push("32 atacar 10,15");
_local2.push("37 ubicar 448,239");
_local2.push("37 atacar 10,15");
_local2.push("42 ubicar 448,239");
_local2.push("42 atacar 10,15");
_local2.push("47 ubicar 448,239");
_local2.push("47 atacar 10,15");
break;
case 7:
_local2.push("8 ubicar 424,274");
_local2.push("8 atacar 10,15");
_local2.push("13 ubicar 475,249");
_local2.push("13 atacar 10,15");
_local2.push("18 ubicar 527,260");
_local2.push("18 atacar 10,15");
_local2.push("23 ubicar 580,254");
_local2.push("23 atacar 10,15");
_local2.push("43 ubicar 612,248");
_local2.push("43 atacar 10,15");
_local2.push("46 ubicar 587,278");
_local2.push("46 atacar 10,15");
_local2.push("48 ubicar 555,257");
_local2.push("48 atacar 10,15");
_local2.push("52 ubicar 527,254");
_local2.push("52 atacar 10,15");
_local2.push("55 ubicar 498,261");
_local2.push("55 atacar 10,15");
_local2.push("59 ubicar 460,258");
_local2.push("59 atacar 10,15");
_local2.push("61 ubicar 445,241");
_local2.push("61 atacar 10,15");
break;
case 8:
_local2.push("8 ubicar 411,269");
_local2.push("8 atacar 3,6");
_local2.push("8 atacar 3,6");
_local2.push("8 atacar 3,6");
_local2.push("17 ubicar 461,283");
_local2.push("17 atacar 3,6");
_local2.push("17 atacar 3,6");
_local2.push("17 atacar 3,6");
_local2.push("30 ubicar 468,249");
_local2.push("30 atacar 3,6");
_local2.push("30 atacar 3,6");
_local2.push("30 atacar 3,6");
_local2.push("40 ubicar 515,272");
_local2.push("40 atacar 3,6");
_local2.push("40 atacar 3,6");
_local2.push("40 atacar 3,6");
_local2.push("49 ubicar 561,269");
_local2.push("49 atacar 3,6");
_local2.push("49 atacar 3,6");
_local2.push("49 atacar 3,6");
_local2.push("67 ubicar 537,294");
_local2.push("67 atacar 3,6");
_local2.push("67 atacar 3,6");
_local2.push("68 ubicar 536,284");
_local2.push("68 atacar 3,6");
_local2.push("68 atacar 3,6");
_local2.push("69 ubicar 525,295");
_local2.push("69 atacar 3,6");
_local2.push("69 atacar 3,6");
_local2.push("70 ubicar 529,314");
_local2.push("70 atacar 3,6");
_local2.push("70 atacar 3,6");
_local2.push("71 ubicar 518,299");
_local2.push("71 atacar 3,6");
_local2.push("71 atacar 3,6");
_local2.push("72 ubicar 511,307");
_local2.push("72 atacar 3,6");
_local2.push("72 atacar 3,6");
_local2.push("73 ubicar 510,300");
_local2.push("73 atacar 3,6");
_local2.push("73 atacar 3,6");
_local2.push("74 ubicar 510,294");
_local2.push("74 atacar 3,6");
_local2.push("74 atacar 3,6");
_local2.push("75 ubicar 494,304");
_local2.push("75 atacar 3,6");
_local2.push("75 atacar 3,6");
_local2.push("76 ubicar 493,296");
_local2.push("76 atacar 3,6");
_local2.push("76 atacar 3,6");
_local2.push("77 ubicar 490,290");
_local2.push("77 atacar 3,6");
_local2.push("77 atacar 3,6");
_local2.push("78 ubicar 481,298");
_local2.push("78 atacar 3,6");
_local2.push("78 atacar 3,6");
_local2.push("79 ubicar 476,293");
_local2.push("79 atacar 3,6");
_local2.push("80 ubicar 473,291");
_local2.push("80 atacar 3,6");
_local2.push("81 ubicar 463,302");
_local2.push("81 atacar 3,6");
_local2.push("82 ubicar 458,290");
_local2.push("82 atacar 3,6");
_local2.push("83 ubicar 452,293");
_local2.push("83 atacar 3,6");
_local2.push("84 ubicar 452,290");
_local2.push("84 atacar 3,6");
_local2.push("85 ubicar 438,283");
_local2.push("85 atacar 3,6");
_local2.push("86 ubicar 442,305");
_local2.push("86 atacar 3,6");
break;
case 9:
_local2.push("32 ubicar 545,249");
_local2.push("32 atacar 18,23");
_local2.push("47 ubicar 545,248");
_local2.push("47 atacar 18,23");
_local2.push("72 aleatoreo true");
_local2.push("72 aleatoreopos 513,255,544,314");
_local2.push("72 atacar 18,23");
_local2.push("73 atacar 18,23");
_local2.push("74 atacar 18,23");
_local2.push("75 atacar 18,23");
_local2.push("76 atacar 18,23");
_local2.push("77 atacar 18,23");
_local2.push("78 atacar 18,23");
_local2.push("79 atacar 18,23");
_local2.push("81 atacar 18,23");
_local2.push("82 atacar 18,23");
_local2.push("83 atacar 18,23");
_local2.push("84 atacar 18,23");
_local2.push("85 atacar 18,23");
_local2.push("86 atacar 18,23");
_local2.push("87 atacar 18,23");
_local2.push("88 atacar 18,23");
_local2.push("89 atacar 18,23");
_local2.push("90 atacar 18,23");
_local2.push("91 atacar 18,23");
_local2.push("92 atacar 18,23");
_local2.push("93 atacar 18,23");
_local2.push("94 atacar 18,23");
_local2.push("95 atacar 18,23");
_local2.push("96 atacar 18,23");
break;
case 10:
_local2.push("6 ubicar 416,270");
_local2.push("6 atacar 14,28");
_local2.push("19 ubicar 485,255");
_local2.push("19 atacar 14,28");
_local2.push("30 ubicar 485,255");
_local2.push("30 atacar 14,28");
break;
case 11:
_local2.push("22 ubicar 436,372");
_local2.push("22 atacar 30,45");
_local2.push("30 ubicar 458,224");
_local2.push("30 atacar 30,45");
_local2.push("34 ubicar 461,230");
_local2.push("34 atacar 30,45");
_local2.push("38 ubicar 425,227");
_local2.push("38 atacar 30,45");
_local2.push("42 ubicar 418,237");
_local2.push("42 atacar 30,45");
break;
case 12:
_local2.push("60 aleatorio true");
_local2.push("60 aleatoriopos 557,255,621,369");
_local2.push("60 atacar 10,15");
_local2.push("61 atacar 10,15");
_local2.push("62 atacar 10,15");
_local2.push("63 atacar 10,15");
_local2.push("64 atacar 10,15");
_local2.push("65 atacar 10,15");
_local2.push("66 atacar 10,15");
_local2.push("67 atacar 10,15");
_local2.push("68 atacar 10,15");
_local2.push("69 atacar 10,15");
_local2.push("70 atacar 10,15");
_local2.push("71 atacar 10,15");
_local2.push("72 atacar 10,15");
_local2.push("73 atacar 10,15");
_local2.push("74 atacar 10,15");
_local2.push("75 atacar 10,15");
_local2.push("76 atacar 10,15");
_local2.push("77 atacar 10,15");
_local2.push("78 atacar 10,15");
_local2.push("79 atacar 10,15");
_local2.push("80 atacar 10,15");
_local2.push("81 atacar 10,15");
_local2.push("82 atacar 10,15");
_local2.push("83 atacar 10,15");
_local2.push("84 atacar 10,15");
_local2.push("85 atacar 10,15");
_local2.push("86 aleatoriopos 600,259,659,370");
_local2.push("86 atacar 10,15");
_local2.push("87 aleatoriopos 641,255,710,369");
_local2.push("87 atacar 10,15");
_local2.push("88 aleatoriopos 683,263,739,355");
_local2.push("88 atacar 10,15");
_local2.push("87 aleatoriopos 641,255,710,369");
break;
case 13:
_local2.push("13 ubicar 408,255");
_local2.push("13 atacar 20,30");
_local2.push("17 ubicar 406,256");
_local2.push("17 atacar 20,30");
_local2.push("24 ubicar 408,274");
_local2.push("24 atacar 20,30");
_local2.push("28 ubicar 454,234");
_local2.push("28 atacar 20,30");
_local2.push("33 ubicar 409,283");
_local2.push("33 atacar 20,30");
_local2.push("39 ubicar 405,298");
_local2.push("39 atacar 20,30");
_local2.push("43 ubicar 450,312");
_local2.push("43 atacar 20,30");
_local2.push("47 ubicar 427,347");
_local2.push("47 atacar 20,30");
_local2.push("53 ubicar 420,256");
_local2.push("53 atacar 20,30");
_local2.push("58 ubicar 419,347");
_local2.push("58 atacar 20,30");
_local2.push("63 ubicar 419,347");
_local2.push("63 atacar 20,30");
_local2.push("68 ubicar 414,268");
_local2.push("68 atacar 20,30");
_local2.push("74 ubicar 448,231");
_local2.push("74 atacar 20,30");
_local2.push("78 ubicar 450,364");
_local2.push("78 atacar 20,30");
_local2.push("83 ubicar 430,254");
_local2.push("83 atacar 20,30");
_local2.push("89 ubicar 435,272");
_local2.push("89 atacar 20,30");
_local2.push("93 ubicar 414,268");
_local2.push("93 atacar 20,30");
_local2.push("98 ubicar 415,234");
_local2.push("98 atacar 20,30");
_local2.push("105 ubicar 444,264");
_local2.push("105 atacar 20,30");
break;
case 14:
_local2.push("15 ubicar 424,286");
_local2.push("15 atacar 10,15");
_local2.push("34 ubicar 397,312");
_local2.push("34 atacar 10,15");
_local2.push("43 ubicar 397,300");
_local2.push("43 atacar 10,15");
_local2.push("44 ubicar 393,310");
_local2.push("44 atacar 10,15");
_local2.push("46 ubicar 391,279");
_local2.push("46 atacar 10,15");
_local2.push("47 ubicar 393,292");
_local2.push("47 atacar 10,15");
_local2.push("49 ubicar 392,312");
_local2.push("49 atacar 10,15");
_local2.push("50 ubicar 379,308");
_local2.push("50 atacar 10,15");
_local2.push("52 ubicar 403,298");
_local2.push("52 atacar 10,15");
_local2.push("54 ubicar 430,300");
_local2.push("54 atacar 10,15");
_local2.push("56 ubicar 384,277");
_local2.push("56 atacar 10,15");
_local2.push("57 ubicar 391,338");
_local2.push("57 atacar 10,15");
_local2.push("59 ubicar 377,268");
_local2.push("59 atacar 10,15");
_local2.push("60 ubicar 419,292");
_local2.push("60 atacar 10,15");
_local2.push("62 ubicar 393,301");
_local2.push("62 atacar 10,15");
_local2.push("63 ubicar 399,309");
_local2.push("63 atacar 10,15");
_local2.push("65 ubicar 397,303");
_local2.push("65 atacar 10,15");
_local2.push("66 ubicar 391,323");
_local2.push("66 atacar 10,15");
_local2.push("68 ubicar 401,255");
_local2.push("68 atacar 10,15");
_local2.push("69 ubicar 408,315");
_local2.push("69 atacar 10,15");
_local2.push("71 ubicar 403,316");
_local2.push("71 atacar 10,15");
_local2.push("72 ubicar 397,300");
_local2.push("72 atacar 10,15");
_local2.push("74 ubicar 407,299");
_local2.push("74 atacar 10,15");
_local2.push("76 ubicar 401,301");
_local2.push("76 atacar 10,15");
_local2.push("78 ubicar 395,299");
_local2.push("78 atacar 10,15");
_local2.push("79 ubicar 391,312");
_local2.push("79 atacar 10,15");
_local2.push("81 ubicar 391,377");
_local2.push("81 atacar 10,15");
_local2.push("82 ubicar 396,292");
_local2.push("82 atacar 10,15");
_local2.push("84 ubicar 390,313");
_local2.push("84 atacar 10,15");
_local2.push("85 ubicar 378,307");
_local2.push("85 atacar 10,15");
_local2.push("103 ubicar 403,284");
_local2.push("103 atacar 10,15");
_local2.push("103 ubicar 444,266");
_local2.push("103 atacar 10,15");
_local2.push("104 ubicar 395,315");
_local2.push("104 atacar 10,15");
_local2.push("104 ubicar 420,293");
_local2.push("104 atacar 10,15");
_local2.push("106 ubicar 396,256");
_local2.push("106 atacar 10,15");
_local2.push("106 ubicar 443,301");
_local2.push("106 atacar 10,15");
_local2.push("107 ubicar 395,301");
_local2.push("107 atacar 10,15");
_local2.push("107 ubicar 418,310");
_local2.push("107 atacar 10,15");
_local2.push("109 ubicar 385,320");
_local2.push("109 atacar 10,15");
_local2.push("109 ubicar 415,294");
_local2.push("109 atacar 10,15");
_local2.push("110 ubicar 402,305");
_local2.push("110 atacar 10,15");
_local2.push("111 ubicar 394,297");
_local2.push("111 atacar 10,15");
_local2.push("112 ubicar 408,297");
_local2.push("112 atacar 10,15");
_local2.push("113 ubicar 420,290");
_local2.push("113 atacar 10,15");
_local2.push("114 ubicar 388,306");
_local2.push("114 atacar 10,15");
_local2.push("114 ubicar 401,332");
_local2.push("114 atacar 10,15");
_local2.push("116 ubicar 379,287");
_local2.push("116 atacar 10,15");
_local2.push("116 ubicar 407,266");
_local2.push("116 atacar 10,15");
_local2.push("117 ubicar 398,303");
_local2.push("117 atacar 10,15");
_local2.push("117 ubicar 410,285");
_local2.push("117 atacar 10,15");
_local2.push("119 ubicar 402,257");
_local2.push("119 atacar 10,15");
_local2.push("119 ubicar 435,304");
_local2.push("119 atacar 10,15");
_local2.push("120 ubicar 471,302");
_local2.push("120 atacar 10,15");
_local2.push("120 ubicar 398,310");
_local2.push("120 atacar 10,15");
_local2.push("122 ubicar 372,306");
_local2.push("122 atacar 10,15");
_local2.push("122 ubicar 404,285");
_local2.push("122 atacar 10,15");
_local2.push("124 ubicar 378,311");
_local2.push("124 atacar 10,15");
_local2.push("124 ubicar 414,327");
_local2.push("124 atacar 10,15");
_local2.push("143 ubicar 376,274");
_local2.push("143 atacar 10,15");
break;
case 15:
_local2.push("10 ubicar 396,228");
_local2.push("10 atacar 10,15");
_local2.push("49 ubicar 360,227");
_local2.push("49 atacar 10,15");
_local2.push("49 atacar 10,15");
_local2.push("62 ubicar 380,258");
_local2.push("62 atacar 10,15");
_local2.push("62 atacar 10,15");
_local2.push("68 ubicar 417,206");
_local2.push("68 atacar 10,15");
_local2.push("68 atacar 10,15");
_local2.push("71 ubicar 367,170");
_local2.push("71 atacar 10,15");
_local2.push("71 atacar 10,15");
_local2.push("73 ubicar 406,237");
_local2.push("73 atacar 10,15");
_local2.push("73 atacar 10,15");
_local2.push("75 ubicar 439,183");
_local2.push("75 atacar 10,15");
_local2.push("75 atacar 10,15");
_local2.push("77 ubicar 390,231");
_local2.push("77 atacar 10,15");
_local2.push("77 atacar 10,15");
_local2.push("79 ubicar 401,173");
_local2.push("79 atacar 10,15");
_local2.push("79 atacar 10,15");
_local2.push("82 ubicar 404,214");
_local2.push("82 atacar 10,15");
_local2.push("82 atacar 10,15");
_local2.push("85 ubicar 396,228");
_local2.push("85 atacar 10,15");
_local2.push("85 atacar 10,15");
_local2.push("88 ubicar 399,262");
_local2.push("88 atacar 10,15");
_local2.push("88 atacar 10,15");
_local2.push("92 ubicar 390,195");
_local2.push("92 atacar 10,15");
_local2.push("92 atacar 10,15");
_local2.push("94 ubicar 372,219");
_local2.push("94 atacar 10,15");
_local2.push("94 atacar 10,15");
_local2.push("97 ubicar 436,226");
_local2.push("97 atacar 10,15");
_local2.push("97 atacar 10,15");
_local2.push("98 ubicar 342,254");
_local2.push("98 atacar 10,15");
_local2.push("98 atacar 10,15");
_local2.push("101 ubicar 398,272");
_local2.push("101 atacar 10,15");
_local2.push("101 atacar 10,15");
_local2.push("102 ubicar 376,219");
_local2.push("102 atacar 10,15");
_local2.push("102 atacar 10,15");
_local2.push("104 ubicar 393,195");
_local2.push("104 atacar 10,15");
_local2.push("104 atacar 10,15");
_local2.push("105 ubicar 403,220");
_local2.push("105 atacar 10,15");
_local2.push("105 atacar 10,15");
_local2.push("107 ubicar 366,230");
_local2.push("107 atacar 10,15");
_local2.push("107 atacar 10,15");
_local2.push("109 ubicar 360,162");
_local2.push("109 atacar 10,15");
_local2.push("109 atacar 10,15");
_local2.push("110 ubicar 384,247");
_local2.push("110 atacar 10,15");
_local2.push("110 atacar 10,15");
_local2.push("112 ubicar 404,228");
_local2.push("112 atacar 10,15");
_local2.push("112 atacar 10,15");
_local2.push("114 ubicar 371,198");
_local2.push("114 atacar 10,15");
_local2.push("114 atacar 10,15");
_local2.push("116 ubicar 475,236");
_local2.push("116 atacar 10,15");
_local2.push("116 atacar 10,15");
_local2.push("118 ubicar 355,248");
_local2.push("118 atacar 10,15");
_local2.push("118 atacar 10,15");
_local2.push("119 ubicar 410,190");
_local2.push("119 atacar 10,15");
_local2.push("119 atacar 10,15");
_local2.push("122 ubicar 380,224");
_local2.push("122 atacar 10,15");
_local2.push("122 atacar 10,15");
_local2.push("125 ubicar 484,258");
_local2.push("125 atacar 10,15");
_local2.push("125 atacar 10,15");
_local2.push("129 ubicar 396,246");
_local2.push("129 atacar 10,15");
_local2.push("129 atacar 10,15");
_local2.push("130 ubicar 398,202");
_local2.push("130 atacar 10,15");
_local2.push("130 atacar 10,15");
_local2.push("142 ubicar 389,326");
_local2.push("142 atacar 10,15");
_local2.push("142 atacar 10,15");
_local2.push("143 atacar 10,15");
_local2.push("143 atacar 10,15");
_local2.push("144 atacar 10,15");
_local2.push("144 atacar 10,15");
break;
case 16:
_local2.push("19 ubicar 475,261");
_local2.push("19 atacar 9,13");
_local2.push("22 ubicar 475,249");
_local2.push("22 atacar 9,13");
_local2.push("25 ubicar 480,235");
_local2.push("25 atacar 9,13");
_local2.push("33 ubicar 475,204");
_local2.push("33 atacar 9,13");
_local2.push("33 ubicar 475,250");
_local2.push("33 atacar 9,13");
_local2.push("33 ubicar 475,278");
_local2.push("33 atacar 9,13");
_local2.push("33 ubicar 475,306");
_local2.push("33 atacar 9,13");
_local2.push("33 ubicar 475,335");
_local2.push("33 atacar 9,13");
_local2.push("33 ubicar 475,365");
_local2.push("33 atacar 9,13");
break;
case 17:
_local2.push("63 ubicar 567,329");
_local2.push("63 atacar 10,15");
_local2.push("63 ubicar 569,228");
_local2.push("63 atacar 10,15");
_local2.push("63 ubicar 528,210");
_local2.push("63 atacar 10,15");
_local2.push("64 ubicar 560,292");
_local2.push("64 atacar 10,15");
_local2.push("65 ubicar 576,240");
_local2.push("65 atacar 10,15");
_local2.push("65 ubicar 570,343");
_local2.push("65 atacar 10,15");
_local2.push("69 ubicar 515,201");
_local2.push("69 atacar 10,15");
_local2.push("69 ubicar 574,253");
_local2.push("69 atacar 10,15");
_local2.push("69 ubicar 567,306");
_local2.push("69 atacar 10,15");
_local2.push("117 ubicar 527,254");
_local2.push("117 atacar 10,15");
_local2.push("127 ubicar 516,244");
_local2.push("127 atacar 10,15");
_local2.push("137 ubicar 501,261");
_local2.push("137 atacar 10,15");
break;
case 18:
_local2.push("103 ubicar 484,357");
_local2.push("103 atacar 50,75");
_local2.push("113 ubicar 499,355");
_local2.push("113 atacar 50,75");
_local2.push("123 ubicar 470,357");
_local2.push("123 atacar 50,75");
break;
case 19:
_local2.push("13 ubicar 427,279");
_local2.push("13 atacar 15,23");
_local2.push("18 ubicar 423,256");
_local2.push("18 atacar 15,23");
break;
case 20:
_local2.push("15 ubicar 452,287");
_local2.push("15 atacar 10,15");
_local2.push("77 ubicar 357,358");
_local2.push("77 atacar 10,15");
_local2.push("80 ubicar 408,358");
_local2.push("80 atacar 10,15");
_local2.push("83 ubicar 458,363");
_local2.push("83 atacar 10,15");
break;
case 21:
_local2.push("64 ubicar 515,255");
_local2.push("64 atacar 30,45");
_local2.push("78 ubicar 514,270");
_local2.push("78 atacar 30,45");
_local2.push("102 ubicar 564,285");
_local2.push("102 atacar 30,45");
break;
case 22:
_local2.push("24 ubicar 470,371");
_local2.push("24 atacar 15,20");
_local2.push("24 ubicar 544,371");
_local2.push("24 atacar 15,20");
break;
case 23:
_local2.push("19 ubicar 453,368");
_local2.push("19 atacar 10,15");
_local2.push("19 ubicar 490,368");
_local2.push("19 atacar 10,15");
_local2.push("44 ubicar 466,368");
_local2.push("44 atacar 10,15");
_local2.push("44 ubicar 503,367");
_local2.push("44 atacar 10,15");
break;
case 24:
_local2.push("76 ubicar 367,318");
_local2.push("76 atacar 23,38");
_local2.push("76 ubicar 381,318");
_local2.push("76 atacar 23,38");
_local2.push("76 ubicar 397,318");
_local2.push("76 atacar 23,38");
_local2.push("76 ubicar 424,318");
_local2.push("76 atacar 23,38");
_local2.push("76 ubicar 444,318");
_local2.push("76 atacar 23,38");
break;
case 25:
_local2.push("8 ubicar 466,279");
_local2.push("8 atacar 10,15");
_local2.push("17 ubicar 483,283");
_local2.push("17 atacar 10,15");
_local2.push("29 ubicar 492,294");
_local2.push("29 atacar 10,15");
_local2.push("39 ubicar 521,252");
_local2.push("39 atacar 10,15");
_local2.push("41 ubicar 532,251");
_local2.push("41 atacar 10,15");
_local2.push("43 atacar 10,15");
_local2.push("45 ubicar 509,245");
_local2.push("45 atacar 10,15");
_local2.push("47 ubicar 461,248");
_local2.push("47 atacar 10,15");
break;
case 26:
_local2.push("13 ubicar 465,200");
_local2.push("13 atacar 20,30");
_local2.push("34 ubicar 376,200");
_local2.push("34 atacar 20,30");
_local2.push("45 ubicar 418,182");
_local2.push("45 atacar 20,30");
_local2.push("56 ubicar 429,246");
_local2.push("56 atacar 20,30");
_local2.push("74 ubicar 444,289");
_local2.push("74 atacar 20,30");
_local2.push("75 atacar 20,30");
_local2.push("76 atacar 20,30");
_local2.push("77 atacar 20,30");
_local2.push("78 atacar 20,30");
break;
case 27:
_local2.push("13 ubicar 473,215");
_local2.push("13 atacar 19,28");
_local2.push("46 ubicar 468,189");
_local2.push("46 atacar 19,28");
_local2.push("50 ubicar 464,172");
_local2.push("50 atacar 19,28");
_local2.push("52 atacar 19,28");
_local2.push("54 atacar 19,28");
_local2.push("56 atacar 19,28");
_local2.push("58 atacar 19,28");
_local2.push("60 atacar 19,28");
_local2.push("61 atacar 19,28");
_local2.push("62 ubicar 469,191");
_local2.push("62 atacar 19,28");
_local2.push("63 atacar 19,28");
_local2.push("64 atacar 19,28");
_local2.push("65 atacar 19,28");
_local2.push("66 atacar 19,28");
_local2.push("67 ubicar 462,160");
_local2.push("67 atacar 19,28");
_local2.push("68 atacar 19,28");
_local2.push("69 atacar 19,28");
_local2.push("70 atacar 19,28");
_local2.push("93 ubicar 403,303");
_local2.push("93 atacar 19,28");
_local2.push("107 ubicar 401,290");
_local2.push("107 atacar 19,28");
_local2.push("118 ubicar 393,288");
_local2.push("118 atacar 19,28");
_local2.push("127 ubicar 416,286");
_local2.push("127 atacar 19,28");
_local2.push("141 ubicar 424,325");
_local2.push("141 atacar 19,28");
_local2.push("154 ubicar 363,257");
_local2.push("154 atacar 19,28");
_local2.push("155 atacar 19,28");
_local2.push("156 atacar 19,28");
_local2.push("159 ubicar 363,240");
_local2.push("159 atacar 19,28");
_local2.push("160 atacar 19,28");
_local2.push("161 atacar 19,28");
_local2.push("164 ubicar 437,230");
_local2.push("164 atacar 19,28");
_local2.push("165 atacar 19,28");
_local2.push("166 atacar 19,28");
_local2.push("169 ubicar 429,190");
_local2.push("169 atacar 19,28");
_local2.push("170 atacar 19,28");
_local2.push("171 atacar 19,28");
_local2.push("174 ubicar 403,211");
_local2.push("174 atacar 19,28");
_local2.push("175 atacar 19,28");
_local2.push("176 atacar 19,28");
_local2.push("185 ubicar 403,211");
_local2.push("185 atacar 19,28");
_local2.push("186 atacar 19,28");
_local2.push("187 atacar 19,28");
_local2.push("188 atacar 19,28");
_local2.push("189 atacar 19,28");
_local2.push("190 atacar 19,28");
break;
case 28:
_local2.push("6 ubicar 458,291");
_local2.push("6 atacar 10,16");
_local2.push("17 ubicar 443,321");
_local2.push("17 atacar 10,16");
_local2.push("27 ubicar 460,278");
_local2.push("27 atacar 10,16");
_local2.push("40 ubicar 439,303");
_local2.push("40 atacar 10,16");
_local2.push("52 ubicar 468,286");
_local2.push("52 atacar 10,16");
_local2.push("53 atacar 10,16");
_local2.push("54 atacar 10,16");
break;
case 29:
_local2.push("7 ubicar 472,266");
_local2.push("7 atacar 10,15");
_local2.push("18 ubicar 440,331");
_local2.push("18 atacar 10,15");
_local2.push("19 ubicar 455,296");
_local2.push("19 atacar 10,15");
_local2.push("29 ubicar 450,302");
_local2.push("29 atacar 10,15");
_local2.push("40 ubicar 438,293");
_local2.push("40 atacar 10,15");
_local2.push("40 ubicar 458,320");
_local2.push("40 atacar 10,15");
_local2.push("49 ubicar 442,263");
_local2.push("49 atacar 10,15");
_local2.push("52 ubicar 442,303");
_local2.push("52 atacar 10,15");
_local2.push("60 ubicar 496,298");
_local2.push("60 atacar 10,15");
_local2.push("60 ubicar 521,290");
_local2.push("60 atacar 10,15");
_local2.push("78 ubicar 467,318");
_local2.push("78 atacar 10,15");
_local2.push("78 atacar 10,15");
_local2.push("79 atacar 10,15");
_local2.push("79 atacar 10,15");
_local2.push("80 atacar 10,15");
_local2.push("80 atacar 10,15");
break;
case 30:
_local2.push("32 ubicar 500,300");
_local2.push("32 atacar 14,18");
_local2.push("34 atacar 14,18");
_local2.push("36 atacar 14,18");
_local2.push("182 ubicar 400,340");
_local2.push("183 atacar 14,18");
_local2.push("184 atacar 14,18");
_local2.push("185 atacar 14,18");
_local2.push("186 atacar 14,18");
_local2.push("187 atacar 14,18");
_local2.push("188 atacar 14,18");
_local2.push("189 atacar 14,18");
_local2.push("190 atacar 14,18");
_local2.push("191 atacar 14,18");
_local2.push("192 atacar 14,18");
_local2.push("193 atacar 14,18");
_local2.push("194 atacar 14,18");
_local2.push("195 atacar 14,18");
_local2.push("196 atacar 14,18");
_local2.push("197 atacar 14,18");
_local2.push("198 atacar 14,18");
_local2.push("199 atacar 14,18");
_local2.push("200 atacar 14,18");
_local2.push("201 atacar 14,18");
_local2.push("202 atacar 14,18");
_local2.push("203 atacar 14,18");
_local2.push("204 atacar 14,18");
_local2.push("205 atacar 14,18");
_local2.push("206 atacar 14,18");
_local2.push("207 atacar 14,18");
_local2.push("208 atacar 14,18");
_local2.push("209 atacar 14,18");
_local2.push("210 atacar 14,18");
_local2.push("211 atacar 14,18");
_local2.push("212 atacar 14,18");
_local2.push("213 atacar 14,18");
_local2.push("214 atacar 14,18");
_local2.push("215 atacar 14,18");
_local2.push("216 atacar 14,18");
_local2.push("217 atacar 14,18");
_local2.push("218 atacar 14,18");
_local2.push("219 atacar 14,18");
_local2.push("220 atacar 14,18");
_local2.push("221 atacar 14,18");
_local2.push("222 atacar 14,18");
break;
case 31:
_local2.push("62 ubicar 486,251");
_local2.push("62 atacar 10,18");
_local2.push("63 atacar 10,18");
_local2.push("64 atacar 10,18");
_local2.push("65 atacar 10,18");
break;
case 32:
_local2.push("85 ubicar 411,356");
_local2.push("85 atacar 7,12");
_local2.push("86 atacar 7,12");
_local2.push("87 atacar 7,12");
_local2.push("88 atacar 7,12");
_local2.push("89 atacar 7,12");
_local2.push("90 atacar 7,12");
_local2.push("91 atacar 7,12");
_local2.push("92 atacar 7,12");
break;
case 33:
_local2.push("78 ubicar 408,299");
_local2.push("78 atacar 10,15");
_local2.push("81 ubicar 396,295");
_local2.push("81 atacar 10,15");
_local2.push("84 ubicar 410,291");
_local2.push("84 atacar 10,15");
_local2.push("87 ubicar 398,298");
_local2.push("87 atacar 10,15");
_local2.push("90 ubicar 409,285");
_local2.push("90 atacar 10,15");
_local2.push("93 ubicar 395,300");
_local2.push("93 atacar 10,15");
_local2.push("96 ubicar 411,290");
_local2.push("96 atacar 10,15");
_local2.push("99 ubicar 399,299");
_local2.push("99 atacar 10,15");
_local2.push("103 ubicar 486,300");
_local2.push("103 atacar 10,15");
break;
case 34:
_local2.push("20 aleatorio true");
_local2.push("20 aleatoriopos 459,205,463,368");
_local2.push("21 atacar 20,35");
_local2.push("23 atacar 20,35");
_local2.push("26 atacar 20,35");
_local2.push("29 atacar 20,35");
_local2.push("32 atacar 20,35");
_local2.push("35 atacar 20,35");
_local2.push("38 atacar 20,35");
_local2.push("41 atacar 20,35");
_local2.push("44 atacar 20,35");
_local2.push("47 atacar 20,35");
break;
case 35:
_local2.push("11 ubicar 399,257");
_local2.push("11 atacar 10,15");
_local2.push("28 aleatorio true");
_local2.push("28 aleatoriopos 395,259,451,378");
_local2.push("28 atacar 10,15");
_local2.push("29 atacar 10,15");
_local2.push("30 atacar 10,15");
_local2.push("31 atacar 10,15");
_local2.push("32 atacar 10,15");
_local2.push("33 atacar 10,15");
_local2.push("34 atacar 10,15");
_local2.push("35 atacar 10,15");
_local2.push("36 atacar 10,15");
_local2.push("37 atacar 10,15");
_local2.push("38 atacar 10,15");
_local2.push("39 atacar 10,15");
_local2.push("40 atacar 10,15");
_local2.push("41 atacar 10,15");
_local2.push("42 atacar 10,15");
_local2.push("43 atacar 10,15");
_local2.push("44 atacar 10,15");
_local2.push("45 atacar 10,15");
_local2.push("46 atacar 10,15");
_local2.push("47 atacar 10,15");
_local2.push("48 atacar 10,15");
_local2.push("49 atacar 10,15");
_local2.push("50 atacar 10,15");
_local2.push("51 atacar 10,15");
_local2.push("52 atacar 10,15");
_local2.push("53 atacar 10,15");
_local2.push("54 atacar 10,15");
_local2.push("55 atacar 10,15");
_local2.push("56 atacar 10,15");
_local2.push("57 atacar 10,15");
_local2.push("58 atacar 10,15");
_local2.push("59 atacar 10,15");
_local2.push("60 atacar 10,15");
_local2.push("61 atacar 10,15");
_local2.push("62 atacar 10,15");
_local2.push("63 atacar 10,15");
_local2.push("64 atacar 10,15");
_local2.push("65 atacar 10,15");
_local2.push("66 atacar 10,15");
break;
case 36:
_local2.push("130 aleatorio true");
_local2.push("130 aleatoriopos 515,322,544,381");
_local2.push("130 atacar 15,21");
_local2.push("131 atacar 15,21");
_local2.push("132 atacar 15,21");
_local2.push("133 atacar 15,21");
_local2.push("134 atacar 15,21");
_local2.push("135 atacar 15,21");
_local2.push("136 atacar 15,21");
_local2.push("137 atacar 15,21");
_local2.push("138 atacar 15,21");
_local2.push("139 atacar 15,21");
_local2.push("140 atacar 15,21");
_local2.push("141 atacar 15,21");
_local2.push("142 atacar 15,21");
_local2.push("143 atacar 15,21");
_local2.push("144 atacar 15,21");
_local2.push("145 atacar 15,21");
_local2.push("146 atacar 15,21");
_local2.push("147 atacar 15,21");
_local2.push("148 atacar 15,21");
_local2.push("149 atacar 15,21");
_local2.push("150 atacar 15,21");
_local2.push("151 atacar 15,21");
_local2.push("152 atacar 15,21");
_local2.push("153 atacar 15,21");
_local2.push("154 atacar 15,21");
_local2.push("155 atacar 15,21");
_local2.push("156 atacar 15,21");
_local2.push("157 atacar 15,21");
_local2.push("158 atacar 15,21");
_local2.push("159 atacar 15,21");
_local2.push("160 atacar 15,21");
_local2.push("161 atacar 15,21");
_local2.push("162 atacar 15,21");
_local2.push("163 atacar 15,21");
_local2.push("164 atacar 15,21");
_local2.push("165 atacar 15,21");
_local2.push("166 atacar 15,21");
_local2.push("167 atacar 15,21");
_local2.push("168 atacar 15,21");
_local2.push("169 atacar 15,21");
_local2.push("170 atacar 15,21");
_local2.push("171 atacar 15,21");
_local2.push("172 atacar 15,21");
_local2.push("173 atacar 15,21");
_local2.push("174 atacar 15,21");
_local2.push("175 atacar 15,21");
_local2.push("176 atacar 15,21");
_local2.push("177 atacar 15,21");
_local2.push("178 atacar 15,21");
_local2.push("179 atacar 15,21");
_local2.push("180 atacar 15,21");
_local2.push("181 atacar 15,21");
_local2.push("182 atacar 15,21");
_local2.push("183 atacar 15,21");
_local2.push("184 atacar 15,21");
_local2.push("185 atacar 15,21");
_local2.push("186 atacar 15,21");
_local2.push("187 atacar 15,21");
_local2.push("188 atacar 15,21");
_local2.push("189 atacar 15,21");
_local2.push("190 atacar 15,21");
_local2.push("191 atacar 15,21");
_local2.push("192 atacar 15,21");
_local2.push("193 atacar 15,21");
_local2.push("194 atacar 15,21");
_local2.push("195 atacar 15,21");
_local2.push("196 atacar 15,21");
break;
case 37:
_local2.push("18 ubicar 435,276");
_local2.push("18 atacar 20,30");
_local2.push("19 ubicar 423,272");
_local2.push("19 atacar 20,30");
_local2.push("20 ubicar 396,323");
_local2.push("20 atacar 20,30");
_local2.push("21 ubicar 384,318");
_local2.push("21 atacar 20,30");
_local2.push("22 ubicar 374,322");
_local2.push("22 atacar 20,30");
_local2.push("23 ubicar 383,334");
_local2.push("23 atacar 20,30");
_local2.push("24 aleatorio true");
_local2.push("24 aleatoriopos 350,320,375,374");
_local2.push("24 atacar 20,30");
_local2.push("27 atacar 20,30");
_local2.push("30 atacar 20,30");
_local2.push("33 atacar 20,30");
_local2.push("36 atacar 20,30");
_local2.push("39 atacar 20,30");
_local2.push("42 atacar 20,30");
_local2.push("45 atacar 20,30");
_local2.push("48 atacar 20,30");
_local2.push("51 atacar 20,30");
_local2.push("54 atacar 20,30");
_local2.push("57 atacar 20,30");
_local2.push("60 atacar 20,30");
_local2.push("64 atacar 20,30");
_local2.push("66 atacar 20,30");
_local2.push("68 atacar 20,30");
break;
case 38:
_local2.push("9 ubicar 412,276");
_local2.push("9 atacar 10,15");
_local2.push("119 aleatorio true");
_local2.push("119 aleatoriopos 680,300,715,360");
_local2.push("119 atacar 10,15");
_local2.push("120 atacar 10,15");
_local2.push("121 atacar 10,15");
_local2.push("122 aleatoriopos 663,306,689,353");
_local2.push("122 atacar 10,15");
_local2.push("123 atacar 10,15");
_local2.push("124 atacar 10,15");
_local2.push("125 aleatoriopos 647,307,671,351");
_local2.push("125 atacar 10,15");
_local2.push("126 atacar 10,15");
_local2.push("127 atacar 10,15");
_local2.push("128 aleatoriopos 629,312,654,355");
_local2.push("128 atacar 10,15");
_local2.push("129 atacar 10,15");
_local2.push("130 atacar 10,15");
_local2.push("131 aleatoriopos 615,305,640,347");
_local2.push("131 atacar 10,15");
_local2.push("132 atacar 10,15");
_local2.push("133 atacar 10,15");
_local2.push("134 aleatoriopos 597,303,622,346");
_local2.push("134 atacar 10,15");
_local2.push("135 atacar 10,15");
_local2.push("136 atacar 10,15");
_local2.push("137 aleatoriopos 578,308,603,354");
_local2.push("137 atacar 10,15");
_local2.push("138 atacar 10,15");
_local2.push("139 atacar 10,15");
_local2.push("140 aleatoriopos 563,304,586,347");
_local2.push("140 atacar 10,15");
_local2.push("141 atacar 10,15");
_local2.push("142 atacar 10,15");
_local2.push("143 aleatoriopos 544,307,569,354");
_local2.push("143 atacar 10,15");
_local2.push("144 atacar 10,15");
_local2.push("145 atacar 10,15");
_local2.push("146 aleatoriopos 528,300,551,348");
_local2.push("146 atacar 10,15");
_local2.push("147 atacar 10,15");
_local2.push("148 atacar 10,15");
_local2.push("149 aleatoriopos 511,296,535,343");
_local2.push("149 atacar 10,15");
_local2.push("150 atacar 10,15");
_local2.push("151 atacar 10,15");
_local2.push("152 aleatoriopos 491,304,515,346");
_local2.push("152 atacar 10,15");
_local2.push("153 atacar 10,15");
_local2.push("154 atacar 10,15");
_local2.push("155 aleatoriopos 468,298,488,344");
_local2.push("155 atacar 10,15");
_local2.push("156 atacar 10,15");
_local2.push("157 atacar 10,15");
_local2.push("158 aleatoriopos 441,306,465,351");
_local2.push("158 atacar 10,15");
_local2.push("159 atacar 10,15");
_local2.push("160 atacar 10,15");
_local2.push("161 aleatoriopos 411,307,435,354");
_local2.push("161 atacar 10,15");
_local2.push("162 atacar 10,15");
_local2.push("163 atacar 10,15");
_local2.push("164 aleatoriopos 382,308,407,354");
_local2.push("164 atacar 10,15");
_local2.push("165 atacar 10,15");
_local2.push("166 atacar 10,15");
_local2.push("167 aleatoriopos 365,304,390,354");
_local2.push("167 atacar 10,15");
_local2.push("168 atacar 10,15");
_local2.push("169 atacar 10,15");
_local2.push("170 aleatoriopos 367,304,390,346");
_local2.push("170 atacar 10,15");
_local2.push("171 atacar 10,15");
_local2.push("172 atacar 10,15");
break;
case 39:
_local2.push("123 aleatorio true");
_local2.push("123 aleatoriopos 389,314,415,344");
_local2.push("123 atacar 20,30");
_local2.push("124 atacar 20,30");
_local2.push("125 atacar 20,30");
_local2.push("130 aleatoriopos 396,320,420,351");
_local2.push("130 atacar 20,30");
_local2.push("131 atacar 20,30");
_local2.push("132 atacar 20,30");
_local2.push("138 aleatoriopos 391,315,415,347");
_local2.push("138 atacar 20,30");
_local2.push("138 atacar 20,30");
_local2.push("149 atacar 20,30");
_local2.push("139 atacar 20,30");
_local2.push("140 atacar 20,30");
_local2.push("140 atacar 20,30");
_local2.push("223 aleatoriopos 366,298,419,347");
_local2.push("223 atacar 20,30");
_local2.push("224 atacar 20,30");
_local2.push("225 atacar 20,30");
_local2.push("226 atacar 20,30");
_local2.push("227 atacar 20,30");
_local2.push("228 atacar 20,30");
_local2.push("229 atacar 20,30");
_local2.push("230 atacar 20,30");
_local2.push("231 atacar 20,30");
_local2.push("232 atacar 20,30");
_local2.push("233 atacar 20,30");
_local2.push("234 atacar 20,30");
_local2.push("235 atacar 20,30");
_local2.push("236 atacar 20,30");
_local2.push("237 atacar 20,30");
_local2.push("238 atacar 20,30");
_local2.push("239 atacar 20,30");
_local2.push("240 atacar 20,30");
_local2.push("241 atacar 20,30");
_local2.push("242 atacar 20,30");
_local2.push("243 atacar 20,30");
_local2.push("244 atacar 20,30");
_local2.push("245 atacar 20,30");
_local2.push("246 atacar 20,30");
_local2.push("247 atacar 20,30");
_local2.push("248 atacar 20,30");
_local2.push("249 atacar 20,30");
_local2.push("250 atacar 20,30");
_local2.push("251 atacar 20,30");
_local2.push("252 atacar 20,30");
_local2.push("253 atacar 20,30");
_local2.push("254 atacar 20,30");
_local2.push("255 atacar 20,30");
_local2.push("256 atacar 20,30");
_local2.push("257 atacar 20,30");
_local2.push("258 atacar 20,30");
_local2.push("259 atacar 20,30");
_local2.push("260 atacar 20,30");
_local2.push("261 atacar 20,30");
_local2.push("262 atacar 20,30");
_local2.push("263 atacar 20,30");
_local2.push("264 atacar 20,30");
_local2.push("265 atacar 20,30");
_local2.push("266 atacar 20,30");
_local2.push("267 atacar 20,30");
_local2.push("268 atacar 20,30");
_local2.push("269 atacar 20,30");
_local2.push("270 atacar 20,30");
break;
case 40:
_local2.push("17 ubicar 445,343");
_local2.push("17 atacar 20,30");
_local2.push("18 ubicar 448,277");
_local2.push("18 atacar 20,30");
_local2.push("19 ubicar 438,160");
_local2.push("19 atacar 20,30");
_local2.push("20 aleatorio true");
_local2.push("20 aleatoriopos 402,198,481,322");
_local2.push("21 atacar 20,30");
_local2.push("23 atacar 20,30");
_local2.push("25 atacar 20,30");
_local2.push("27 atacar 20,30");
_local2.push("29 atacar 20,30");
_local2.push("31 atacar 20,30");
_local2.push("33 atacar 20,30");
_local2.push("35 atacar 20,30");
_local2.push("37 atacar 20,30");
_local2.push("39 atacar 20,30");
_local2.push("41 atacar 20,30");
_local2.push("43 atacar 20,30");
_local2.push("45 atacar 20,30");
_local2.push("47 atacar 20,30");
_local2.push("49 atacar 20,30");
_local2.push("51 atacar 20,30");
break;
case 41:
_local2.push("85 ubicar 388,237");
_local2.push("85 atacar 12,17");
_local2.push("86 atacar 12,17");
_local2.push("87 atacar 12,17");
_local2.push("88 ubicar 383,251");
_local2.push("88 atacar 12,17");
_local2.push("89 ubicar 398,240");
_local2.push("89 atacar 12,17");
_local2.push("89 ubicar 388,237");
_local2.push("89 atacar 12,17");
_local2.push("90 ubicar 367,270");
_local2.push("90 atacar 12,17");
_local2.push("91 ubicar 389,225");
_local2.push("91 atacar 12,17");
_local2.push("92 ubicar 393,251");
_local2.push("92 atacar 12,17");
_local2.push("93 ubicar 415,252");
_local2.push("93 atacar 12,17");
_local2.push("94 ubicar 373,262");
_local2.push("94 atacar 12,17");
_local2.push("95 ubicar 401,239");
_local2.push("95 atacar 12,17");
_local2.push("96 ubicar 386,271");
_local2.push("96 atacar 12,17");
_local2.push("97 ubicar 386,247");
_local2.push("97 atacar 12,17");
_local2.push("98 ubicar 370,239");
_local2.push("98 atacar 12,17");
_local2.push("99 ubicar 409,252");
_local2.push("99 atacar 12,17");
_local2.push("100 ubicar 383,230");
_local2.push("100 atacar 12,17");
_local2.push("101 ubicar 369,239");
_local2.push("101 atacar 12,17");
_local2.push("102 ubicar 385,247");
_local2.push("102 atacar 12,17");
_local2.push("103 ubicar 389,265");
_local2.push("103 atacar 12,17");
_local2.push("104 ubicar 410,239");
_local2.push("104 atacar 12,17");
_local2.push("105 ubicar 376,244");
_local2.push("105 atacar 12,17");
_local2.push("106 ubicar 356,200");
_local2.push("106 atacar 12,17");
_local2.push("107 ubicar 393,266");
_local2.push("107 atacar 12,17");
_local2.push("108 ubicar 370,273");
_local2.push("108 atacar 12,17");
_local2.push("133 ubicar 376,347");
_local2.push("133 atacar 12,17");
_local2.push("134 atacar 12,17");
_local2.push("135 ubicar 383,355");
_local2.push("135 atacar 12,17");
_local2.push("136 atacar 12,17");
_local2.push("137 ubicar 381,381");
_local2.push("137 atacar 12,17");
_local2.push("138 atacar 12,17");
_local2.push("139 ubicar 383,395");
_local2.push("139 atacar 12,17");
_local2.push("147 aleatorio true");
_local2.push("147 aleatoriopos 358,320,411,360");
_local2.push("147 atacar 12,17");
_local2.push("148 atacar 12,17");
_local2.push("149 atacar 12,17");
_local2.push("150 atacar 12,17");
_local2.push("151 atacar 12,17");
_local2.push("152 atacar 12,17");
_local2.push("153 atacar 12,17");
_local2.push("154 atacar 12,17");
_local2.push("155 atacar 12,17");
_local2.push("156 atacar 12,17");
_local2.push("157 atacar 12,17");
_local2.push("158 atacar 12,17");
_local2.push("159 atacar 12,17");
_local2.push("160 atacar 12,17");
_local2.push("161 atacar 12,17");
_local2.push("162 atacar 12,17");
_local2.push("163 atacar 12,17");
_local2.push("164 atacar 12,17");
_local2.push("165 atacar 12,17");
_local2.push("166 atacar 12,17");
_local2.push("167 atacar 12,17");
_local2.push("168 atacar 12,17");
_local2.push("169 atacar 12,17");
_local2.push("170 atacar 12,17");
_local2.push("171 atacar 12,17");
_local2.push("172 atacar 12,17");
_local2.push("173 atacar 12,17");
_local2.push("174 atacar 12,17");
_local2.push("175 atacar 12,17");
break;
case 42:
_local2.push("162 aleatorio true");
_local2.push("162 aleatoriopos 352,335,444,373");
_local2.push("162 atacar 10,15");
_local2.push("162 atacar 10,15");
_local2.push("163 atacar 10,15");
_local2.push("163 atacar 10,15");
_local2.push("164 atacar 10,15");
_local2.push("164 atacar 10,15");
_local2.push("165 atacar 10,15");
_local2.push("165 atacar 10,15");
_local2.push("166 atacar 10,15");
_local2.push("166 atacar 10,15");
_local2.push("167 atacar 10,15");
_local2.push("167 atacar 10,15");
_local2.push("168 atacar 10,15");
_local2.push("168 atacar 10,15");
_local2.push("169 atacar 10,15");
_local2.push("169 atacar 10,15");
_local2.push("170 atacar 10,15");
_local2.push("170 atacar 10,15");
_local2.push("171 atacar 10,15");
_local2.push("171 atacar 10,15");
_local2.push("172 atacar 10,15");
_local2.push("172 atacar 10,15");
_local2.push("173 atacar 10,15");
_local2.push("173 atacar 10,15");
_local2.push("174 atacar 10,15");
_local2.push("174 atacar 10,15");
_local2.push("175 atacar 10,15");
_local2.push("175 atacar 10,15");
_local2.push("176 atacar 10,15");
_local2.push("176 atacar 10,15");
_local2.push("177 atacar 10,15");
_local2.push("177 atacar 10,15");
_local2.push("178 atacar 10,15");
_local2.push("178 atacar 10,15");
_local2.push("179 atacar 10,15");
_local2.push("179 atacar 10,15");
_local2.push("180 atacar 10,15");
_local2.push("180 atacar 10,15");
_local2.push("181 atacar 10,15");
_local2.push("181 atacar 10,15");
_local2.push("182 atacar 10,15");
_local2.push("182 atacar 10,15");
_local2.push("183 atacar 10,15");
_local2.push("183 atacar 10,15");
_local2.push("184 atacar 10,15");
_local2.push("184 atacar 10,15");
_local2.push("185 atacar 10,15");
_local2.push("185 atacar 10,15");
_local2.push("186 atacar 10,15");
_local2.push("186 atacar 10,15");
_local2.push("187 atacar 10,15");
_local2.push("187 atacar 10,15");
_local2.push("188 atacar 10,15");
_local2.push("188 atacar 10,15");
_local2.push("189 atacar 10,15");
_local2.push("189 atacar 10,15");
_local2.push("190 atacar 10,15");
_local2.push("190 atacar 10,15");
_local2.push("191 atacar 10,15");
_local2.push("191 atacar 10,15");
_local2.push("192 atacar 10,15");
_local2.push("192 atacar 10,15");
_local2.push("193 atacar 10,15");
_local2.push("193 atacar 10,15");
_local2.push("194 atacar 10,15");
_local2.push("194 atacar 10,15");
_local2.push("195 atacar 10,15");
_local2.push("195 atacar 10,15");
_local2.push("196 atacar 10,15");
_local2.push("196 atacar 10,15");
_local2.push("197 atacar 10,15");
_local2.push("197 atacar 10,15");
_local2.push("198 atacar 10,15");
_local2.push("198 atacar 10,15");
_local2.push("199 atacar 10,15");
_local2.push("199 atacar 10,15");
_local2.push("200 atacar 10,15");
_local2.push("200 atacar 10,15");
_local2.push("201 atacar 10,15");
_local2.push("201 atacar 10,15");
_local2.push("202 atacar 10,15");
_local2.push("202 atacar 10,15");
_local2.push("203 atacar 10,15");
_local2.push("203 atacar 10,15");
_local2.push("204 atacar 10,15");
_local2.push("204 atacar 10,15");
_local2.push("205 atacar 10,15");
_local2.push("205 atacar 10,15");
_local2.push("206 atacar 10,15");
_local2.push("206 atacar 10,15");
_local2.push("207 atacar 10,15");
_local2.push("207 atacar 10,15");
break;
case 43:
_local2.push("2 ubicar 476,282");
_local2.push("2 atacar 20,30");
_local2.push("13 ubicar 542,291");
_local2.push("13 atacar 20,30");
_local2.push("14 atacar 20,30");
_local2.push("23 ubicar 545,294");
_local2.push("23 atacar 20,30");
_local2.push("24 atacar 20,30");
_local2.push("34 ubicar 562,270");
_local2.push("34 atacar 20,30");
_local2.push("35 atacar 20,30");
_local2.push("39 ubicar 596,259");
_local2.push("39 atacar 20,30");
_local2.push("40 atacar 20,30");
_local2.push("51 ubicar 544,293");
_local2.push("51 atacar 20,30");
_local2.push("52 atacar 20,30");
_local2.push("58 ubicar 580,277");
_local2.push("58 atacar 20,30");
_local2.push("59 atacar 20,30");
_local2.push("76 ubicar 489,309");
_local2.push("76 atacar 20,30");
_local2.push("76 atacar 20,30");
_local2.push("77 atacar 20,30");
_local2.push("78 ubicar 478,255");
_local2.push("78 atacar 20,30");
_local2.push("78 atacar 20,30");
_local2.push("79 atacar 20,30");
_local2.push("80 ubicar 507,287");
_local2.push("80 atacar 20,30");
_local2.push("80 atacar 20,30");
_local2.push("81 atacar 20,30");
break;
case 44:
_local2.push("8 ubicar 469,291");
_local2.push("8 atacar 20,30");
_local2.push("9 atacar 20,30");
_local2.push("10 atacar 20,30");
_local2.push("42 ubicar 492,194");
_local2.push("42 atacar 20,30");
_local2.push("43 atacar 20,30");
_local2.push("44 atacar 20,30");
_local2.push("51 ubicar 476,218");
_local2.push("51 atacar 20,30");
_local2.push("52 atacar 20,30");
_local2.push("53 atacar 20,30");
_local2.push("62 ubicar 468,208");
_local2.push("62 atacar 20,30");
_local2.push("63 atacar 20,30");
_local2.push("64 atacar 20,30");
_local2.push("75 ubicar 489,183");
_local2.push("75 atacar 20,30");
_local2.push("76 atacar 20,30");
_local2.push("77 atacar 20,30");
_local2.push("80 ubicar 495,212");
_local2.push("80 atacar 20,30");
_local2.push("81 atacar 20,30");
_local2.push("82 atacar 20,30");
_local2.push("87 ubicar 470,284");
_local2.push("87 atacar 20,30");
_local2.push("88 atacar 20,30");
_local2.push("89 atacar 20,30");
_local2.push("90 ubicar 484,310");
_local2.push("90 atacar 20,30");
_local2.push("91 atacar 20,30");
_local2.push("92 atacar 20,30");
_local2.push("94 ubicar 499,241");
_local2.push("94 atacar 20,30");
_local2.push("95 atacar 20,30");
_local2.push("96 atacar 20,30");
_local2.push("101 ubicar 503,226");
_local2.push("101 atacar 20,30");
_local2.push("102 atacar 20,30");
_local2.push("103 atacar 20,30");
break;
case 45:
_local2.push("9 ubicar 408,275");
_local2.push("9 atacar 23,32");
_local2.push("21 ubicar 567,253");
_local2.push("21 atacar 23,32");
_local2.push("26 ubicar 364,236");
_local2.push("26 atacar 23,32");
_local2.push("36 ubicar 349,268");
_local2.push("36 atacar 23,32");
_local2.push("47 ubicar 371,188");
_local2.push("47 atacar 23,32");
_local2.push("50 ubicar 453,371");
_local2.push("50 atacar 23,32");
_local2.push("64 ubicar 442,315");
_local2.push("64 atacar 23,32");
_local2.push("65 atacar 23,32");
_local2.push("66 atacar 23,32");
_local2.push("68 ubicar 481,316");
_local2.push("68 atacar 23,32");
_local2.push("69 atacar 23,32");
_local2.push("70 atacar 23,32");
_local2.push("88 ubicar 464,257");
_local2.push("88 atacar 23,32");
_local2.push("89 atacar 23,32");
_local2.push("90 atacar 23,32");
_local2.push("91 ubicar 500,359");
_local2.push("91 atacar 23,32");
_local2.push("92 atacar 23,32");
_local2.push("93 atacar 23,32");
_local2.push("94 ubicar 532,315");
_local2.push("94 atacar 23,32");
_local2.push("95 atacar 23,32");
_local2.push("96 atacar 23,32");
_local2.push("106 ubicar 532,315");
_local2.push("106 atacar 23,32");
_local2.push("107 atacar 23,32");
_local2.push("108 atacar 23,32");
_local2.push("115 ubicar 591,316");
_local2.push("115 atacar 23,32");
_local2.push("116 atacar 23,32");
_local2.push("117 atacar 23,32");
_local2.push("131 ubicar 591,270");
_local2.push("131 atacar 23,32");
_local2.push("132 atacar 23,32");
_local2.push("133 atacar 23,32");
_local2.push("149 ubicar 591,316");
_local2.push("149 atacar 23,32");
_local2.push("150 atacar 23,32");
_local2.push("151 atacar 23,32");
_local2.push("162 ubicar 591,316");
_local2.push("162 atacar 23,32");
break;
case 46:
_local2.push("16 ubicar 519,218");
_local2.push("16 atacar 30,45");
_local2.push("16 atacar 30,45");
_local2.push("16 atacar 30,45");
_local2.push("27 ubicar 435,245");
_local2.push("27 atacar 30,45");
_local2.push("27 atacar 30,45");
_local2.push("27 atacar 30,45");
_local2.push("38 ubicar 392,242");
_local2.push("38 atacar 30,45");
_local2.push("38 atacar 30,45");
_local2.push("38 atacar 30,45");
_local2.push("54 ubicar 400,244");
_local2.push("54 atacar 30,45");
_local2.push("54 atacar 30,45");
_local2.push("54 atacar 30,45");
_local2.push("73 ubicar 415,248");
_local2.push("73 atacar 30,45");
_local2.push("73 atacar 30,45");
_local2.push("73 atacar 30,45");
break;
case 47:
_local2.push("23 ubicar 398,150");
_local2.push("23 atacar 22,35");
_local2.push("27 ubicar 422,175");
_local2.push("27 atacar 22,35");
_local2.push("27 atacar 22,35");
_local2.push("27 atacar 22,35");
_local2.push("33 ubicar 405,177");
_local2.push("33 atacar 22,35");
_local2.push("41 ubicar 437,188");
_local2.push("41 atacar 22,35");
_local2.push("41 atacar 22,35");
_local2.push("41 atacar 22,35");
_local2.push("46 ubicar 448,277");
_local2.push("46 atacar 22,35");
_local2.push("46 atacar 22,35");
_local2.push("46 atacar 22,35");
_local2.push("53 ubicar 390,139");
_local2.push("53 atacar 22,35");
_local2.push("55 ubicar 394,267");
_local2.push("55 atacar 22,35");
_local2.push("65 ubicar 386,150");
_local2.push("65 atacar 22,35");
_local2.push("69 ubicar 444,145");
_local2.push("69 atacar 22,35");
_local2.push("74 ubicar 432,281");
_local2.push("74 atacar 22,35");
_local2.push("82 ubicar 508,165");
_local2.push("82 atacar 22,35");
_local2.push("83 ubicar 467,199");
_local2.push("83 atacar 22,35");
_local2.push("84 ubicar 425,237");
_local2.push("84 atacar 22,35");
_local2.push("88 ubicar 421,209");
_local2.push("88 atacar 22,35");
_local2.push("92 ubicar 441,256");
_local2.push("92 atacar 22,35");
_local2.push("92 atacar 22,35");
_local2.push("92 atacar 22,35");
_local2.push("95 ubicar 477,276");
_local2.push("95 atacar 22,35");
_local2.push("95 atacar 22,35");
_local2.push("95 atacar 22,35");
_local2.push("101 ubicar 424,303");
_local2.push("101 atacar 22,35");
_local2.push("105 ubicar 418,244");
_local2.push("105 atacar 22,35");
break;
case 48:
_local2.push("24 ubicar 453,227");
_local2.push("24 atacar 15,20");
_local2.push("24 atacar 15,20");
_local2.push("24 atacar 15,20");
_local2.push("29 ubicar 438,187");
_local2.push("29 atacar 15,20");
_local2.push("29 atacar 15,20");
_local2.push("29 atacar 15,20");
_local2.push("35 ubicar 419,149");
_local2.push("35 atacar 15,20");
_local2.push("35 atacar 15,20");
_local2.push("35 atacar 15,20");
_local2.push("42 ubicar 400,154");
_local2.push("42 atacar 15,20");
_local2.push("42 atacar 15,20");
_local2.push("42 atacar 15,20");
_local2.push("66 ubicar 378,269");
_local2.push("66 atacar 15,20");
_local2.push("66 ubicar 413,248");
_local2.push("66 atacar 15,20");
_local2.push("77 ubicar 397,234");
_local2.push("77 atacar 15,20");
_local2.push("77 ubicar 432,218");
_local2.push("77 atacar 15,20");
_local2.push("90 ubicar 383,197");
_local2.push("90 atacar 15,20");
_local2.push("90 ubicar 420,185");
_local2.push("90 atacar 15,20");
_local2.push("90 atacar 15,20");
_local2.push("90 atacar 15,20");
_local2.push("118 ubicar 478,269");
_local2.push("118 atacar 15,20");
_local2.push("119 atacar 15,20");
_local2.push("130 ubicar 490,208");
_local2.push("130 atacar 15,20");
_local2.push("131 atacar 15,20");
_local2.push("133 ubicar 469,242");
_local2.push("133 atacar 15,20");
_local2.push("134 atacar 15,20");
_local2.push("143 ubicar 455,237");
_local2.push("143 atacar 15,20");
_local2.push("144 atacar 15,20");
_local2.push("146 ubicar 511,246");
_local2.push("146 atacar 15,20");
_local2.push("147 atacar 15,20");
_local2.push("155 ubicar 491,244");
_local2.push("155 atacar 15,20");
_local2.push("156 atacar 15,20");
_local2.push("158 ubicar 499,242");
_local2.push("158 atacar 15,20");
_local2.push("159 atacar 15,20");
_local2.push("171 ubicar 488,197");
_local2.push("171 atacar 15,20");
_local2.push("172 atacar 15,20");
_local2.push("187 ubicar 465,257");
_local2.push("187 atacar 15,20");
_local2.push("188 atacar 15,20");
_local2.push("190 ubicar 446,236");
_local2.push("190 atacar 15,20");
_local2.push("191 atacar 15,20");
_local2.push("193 ubicar 457,298");
_local2.push("193 atacar 15,20");
_local2.push("194 atacar 15,20");
_local2.push("207 ubicar 428,268");
_local2.push("207 atacar 15,20");
_local2.push("207 atacar 15,20");
_local2.push("207 atacar 15,20");
_local2.push("207 ubicar 454,268");
_local2.push("207 atacar 15,20");
_local2.push("207 atacar 15,20");
_local2.push("207 atacar 15,20");
_local2.push("209 ubicar 493,278");
_local2.push("209 atacar 15,20");
_local2.push("209 atacar 15,20");
_local2.push("209 atacar 15,20");
_local2.push("209 ubicar 519,289");
_local2.push("209 atacar 15,20");
_local2.push("209 atacar 15,20");
_local2.push("209 atacar 15,20");
break;
case 1001:
_local2.push("88 ubicar 347,215");
_local2.push("88 paciencia 20");
break;
case 1002:
_local2.push("113 ubicar 347,215");
_local2.push("113 paciencia 30");
break;
case 1003:
_local2.push("155 ubicar 347,215");
_local2.push("155 paciencia 40");
break;
case 1004:
_local2.push("110 ubicar 387,203");
_local2.push("110 rabia 20");
break;
case 1005:
_local2.push("121 ubicar 387,203");
_local2.push("121 rabia 30");
break;
case 1006:
_local2.push("140 ubicar 387,203");
_local2.push("140 rabia 40");
break;
case 1007:
_local2.push("119 ubicar 563,135");
_local2.push("119 masdinero 15,3");
break;
case 1008:
_local2.push("165 ubicar 586,159");
_local2.push("165 masdinero 30,3");
break;
case 1009:
_local2.push("219 ubicar 564,236");
_local2.push("219 masdinero 50,3");
break;
case 1010:
_local2.push("67 ubicar 382,198");
_local2.push("67 mascritico 15,3");
break;
case 1011:
_local2.push("171 ubicar 390,188");
_local2.push("171 mascritico 30,3");
break;
case 1012:
_local2.push("245 ubicar 381,254");
_local2.push("245 mascritico 50,3");
break;
case 1013:
_local2.push("78 ubicar 554,254");
_local2.push("78 refrescarskills");
break;
case 1014:
_local2.push("78 ubicar 374,191");
_local2.push("78 masfuerza 2,3");
break;
case 2001:
_local2.push("20 ubicar 410,246");
_local2.push("20 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("30 ubicar 423,306");
_local2.push("30 atacar 1,5");
_local2.push("30 atacar 1,5");
_local2.push("30 atacar 1,5");
_local2.push("30 atacar 1,5");
_local2.push("30 atacar 1,5");
_local2.push("30 atacar 1,5");
_local2.push("30 atacar 1,5");
_local2.push("36 ubicar 486,221");
_local2.push("36 atacar 1,5");
_local2.push("36 atacar 1,5");
_local2.push("36 atacar 1,5");
_local2.push("36 atacar 1,5");
_local2.push("36 atacar 1,5");
_local2.push("36 atacar 1,5");
_local2.push("36 atacar 1,5");
_local2.push("47 ubicar 441,252");
_local2.push("47 atacar 1,5");
_local2.push("47 atacar 1,5");
_local2.push("47 atacar 1,5");
_local2.push("47 atacar 1,5");
_local2.push("47 atacar 1,5");
_local2.push("47 atacar 1,5");
_local2.push("47 atacar 1,5");
break;
case 2002:
_local2.push("12 ubicar 384,261");
_local2.push("12 atacar 40,48");
_local2.push("12 atacar 40,48");
_local2.push("12 atacar 40,48");
_local2.push("163 ubicar 403,209");
_local2.push("163 atacar 40,48");
_local2.push("163 atacar 40,48");
_local2.push("164 atacar 40,48");
_local2.push("164 atacar 40,48");
_local2.push("165 atacar 40,48");
_local2.push("165 atacar 40,48");
_local2.push("166 atacar 40,48");
_local2.push("166 atacar 40,48");
_local2.push("167 atacar 40,48");
_local2.push("167 atacar 40,48");
_local2.push("168 atacar 40,48");
_local2.push("168 atacar 40,48");
_local2.push("169 atacar 40,48");
_local2.push("169 atacar 40,48");
_local2.push("170 atacar 40,48");
_local2.push("170 atacar 40,48");
_local2.push("171 atacar 40,48");
_local2.push("171 atacar 40,48");
_local2.push("172 atacar 40,48");
_local2.push("172 atacar 40,48");
_local2.push("173 atacar 40,48");
_local2.push("173 atacar 40,48");
_local2.push("174 atacar 40,48");
_local2.push("174 atacar 40,48");
_local2.push("201 ubicar 485,121");
_local2.push("202 atacar 40,48");
_local2.push("202 atacar 40,48");
_local2.push("203 atacar 40,48");
_local2.push("203 atacar 40,48");
_local2.push("204 atacar 40,48");
_local2.push("204 atacar 40,48");
_local2.push("205 atacar 40,48");
_local2.push("205 atacar 40,48");
_local2.push("206 atacar 40,48");
_local2.push("206 atacar 40,48");
_local2.push("207 atacar 40,48");
_local2.push("207 atacar 40,48");
_local2.push("208 atacar 40,48");
_local2.push("208 atacar 40,48");
_local2.push("209 atacar 40,48");
_local2.push("209 atacar 40,48");
_local2.push("210 atacar 40,48");
_local2.push("210 atacar 40,48");
_local2.push("211 atacar 40,48");
_local2.push("211 atacar 40,48");
_local2.push("212 atacar 40,48");
_local2.push("212 atacar 40,48");
_local2.push("213 atacar 40,48");
_local2.push("213 atacar 40,48");
_local2.push("214 ubicar 403,209");
_local2.push("214 atacar 40,48");
_local2.push("214 atacar 40,48");
_local2.push("215 atacar 40,48");
_local2.push("215 atacar 40,48");
_local2.push("216 atacar 40,48");
_local2.push("216 atacar 40,48");
_local2.push("217 atacar 40,48");
_local2.push("217 atacar 40,48");
_local2.push("218 atacar 40,48");
_local2.push("218 atacar 40,48");
_local2.push("219 atacar 40,48");
_local2.push("219 atacar 40,48");
_local2.push("220 atacar 40,48");
_local2.push("220 atacar 40,48");
_local2.push("221 ubicar 428,188");
_local2.push("221 atacar 40,48");
_local2.push("221 atacar 40,48");
_local2.push("222 ubicar 459,155");
_local2.push("222 atacar 40,48");
_local2.push("222 atacar 40,48");
_local2.push("223 ubicar 486,130");
_local2.push("223 atacar 40,48");
_local2.push("223 atacar 40,48");
_local2.push("224 ubicar 518,97");
_local2.push("224 atacar 40,48");
_local2.push("225 atacar 40,48");
_local2.push("226 atacar 40,48");
_local2.push("227 atacar 40,48");
_local2.push("228 atacar 40,48");
_local2.push("229 atacar 40,48");
_local2.push("230 ubicar 269,299");
_local2.push("230 atacar 40,48");
_local2.push("230 atacar 40,48");
_local2.push("231 atacar 40,48");
_local2.push("231 atacar 40,48");
_local2.push("232 atacar 40,48");
_local2.push("232 atacar 40,48");
_local2.push("233 atacar 40,48");
_local2.push("233 atacar 40,48");
_local2.push("234 atacar 40,48");
_local2.push("234 atacar 40,48");
_local2.push("235 atacar 40,48");
_local2.push("235 atacar 40,48");
_local2.push("236 atacar 40,48");
_local2.push("236 atacar 40,48");
_local2.push("237 atacar 40,48");
_local2.push("237 atacar 40,48");
_local2.push("238 atacar 40,48");
_local2.push("238 atacar 40,48");
_local2.push("239 atacar 40,48");
_local2.push("239 atacar 40,48");
_local2.push("240 atacar 40,48");
_local2.push("240 atacar 40,48");
_local2.push("241 atacar 40,48");
_local2.push("241 atacar 40,48");
_local2.push("242 atacar 40,48");
_local2.push("242 atacar 40,48");
_local2.push("243 atacar 40,48");
_local2.push("243 atacar 40,48");
_local2.push("244 atacar 40,48");
_local2.push("244 atacar 40,48");
_local2.push("245 atacar 40,48");
_local2.push("245 atacar 40,48");
_local2.push("246 atacar 40,48");
_local2.push("246 atacar 40,48");
_local2.push("247 atacar 40,48");
_local2.push("247 atacar 40,48");
_local2.push("248 atacar 40,48");
_local2.push("248 atacar 40,48");
_local2.push("249 atacar 40,48");
_local2.push("249 atacar 40,48");
_local2.push("250 atacar 40,48");
_local2.push("250 atacar 40,48");
_local2.push("251 atacar 40,48");
_local2.push("251 atacar 40,48");
_local2.push("252 atacar 40,48");
_local2.push("252 atacar 40,48");
_local2.push("253 atacar 40,48");
_local2.push("253 atacar 40,48");
break;
case 2003:
_local2.push("10 ubicar 462,258");
_local2.push("10 atacar 7,11");
_local2.push("11 ubicar 377,317");
_local2.push("11 atacar 7,11");
_local2.push("14 ubicar 329,328");
_local2.push("14 atacar 7,11");
_local2.push("17 ubicar 292,315");
_local2.push("17 atacar 7,11");
_local2.push("22 ubicar 226,334");
_local2.push("22 atacar 7,11");
_local2.push("24 ubicar 210,353");
_local2.push("24 atacar 7,11");
_local2.push("26 ubicar 126,359");
_local2.push("26 atacar 7,11");
_local2.push("27 ubicar 110,347");
_local2.push("27 atacar 7,11");
_local2.push("29 ubicar 82,350");
_local2.push("29 atacar 7,11");
_local2.push("31 ubicar 29,309");
_local2.push("31 atacar 7,11");
_local2.push("34 ubicar 303,335");
_local2.push("34 atacar 7,11");
_local2.push("35 atacar 7,11");
_local2.push("36 atacar 7,11");
_local2.push("37 atacar 7,11");
_local2.push("38 atacar 7,11");
_local2.push("39 atacar 7,11");
_local2.push("40 atacar 7,11");
_local2.push("41 atacar 7,11");
_local2.push("42 atacar 7,11");
_local2.push("43 atacar 7,11");
_local2.push("44 atacar 7,11");
_local2.push("45 atacar 7,11");
_local2.push("46 atacar 7,11");
_local2.push("47 atacar 7,11");
_local2.push("48 atacar 7,11");
_local2.push("49 atacar 7,11");
_local2.push("50 atacar 7,11");
_local2.push("51 atacar 7,11");
_local2.push("52 atacar 7,11");
_local2.push("53 atacar 7,11");
_local2.push("54 atacar 7,11");
_local2.push("55 atacar 7,11");
_local2.push("56 atacar 7,11");
_local2.push("58 ubicar 316,248");
_local2.push("58 atacar 7,11");
_local2.push("58 atacar 7,11");
_local2.push("58 atacar 7,11");
_local2.push("58 atacar 7,11");
_local2.push("58 atacar 7,11");
_local2.push("90 ubicar 350,323");
_local2.push("90 atacar 7,11");
_local2.push("90 atacar 7,11");
_local2.push("90 atacar 7,11");
_local2.push("90 ubicar 389,322");
_local2.push("90 atacar 7,11");
_local2.push("90 atacar 7,11");
_local2.push("90 atacar 7,11");
_local2.push("106 ubicar 366,300");
_local2.push("106 atacar 7,11");
_local2.push("106 ubicar 421,297");
_local2.push("106 atacar 7,11");
_local2.push("111 ubicar 363,303");
_local2.push("111 atacar 7,11");
_local2.push("111 ubicar 424,295");
_local2.push("111 atacar 7,11");
_local2.push("116 ubicar 363,299");
_local2.push("116 atacar 7,11");
_local2.push("116 ubicar 424,269");
_local2.push("116 atacar 7,11");
_local2.push("121 ubicar 364,300");
_local2.push("121 atacar 7,11");
_local2.push("121 ubicar 423,295");
_local2.push("121 atacar 7,11");
_local2.push("131 ubicar 313,260");
_local2.push("131 atacar 7,11");
_local2.push("133 ubicar 303,285");
_local2.push("133 atacar 7,11");
_local2.push("135 ubicar 290,256");
_local2.push("135 atacar 7,11");
_local2.push("137 ubicar 313,273");
_local2.push("137 atacar 7,11");
_local2.push("141 ubicar 302,262");
_local2.push("141 atacar 7,11");
_local2.push("143 ubicar 305,249");
_local2.push("143 atacar 7,11");
_local2.push("143 atacar 7,11");
_local2.push("143 atacar 7,11");
_local2.push("162 ubicar 530,220");
_local2.push("162 atacar 7,11");
_local2.push("162 atacar 7,11");
_local2.push("162 atacar 7,11");
_local2.push("162 atacar 7,11");
_local2.push("162 atacar 7,11");
_local2.push("170 ubicar 513,191");
_local2.push("170 atacar 7,11");
_local2.push("170 atacar 7,11");
_local2.push("170 atacar 7,11");
_local2.push("189 ubicar 447,157");
_local2.push("189 atacar 7,11");
_local2.push("193 ubicar 458,164");
_local2.push("193 atacar 7,11");
_local2.push("197 ubicar 450,154");
_local2.push("197 atacar 7,11");
_local2.push("201 ubicar 456,165");
_local2.push("201 atacar 7,11");
_local2.push("205 ubicar 438,166");
_local2.push("205 atacar 7,11");
_local2.push("211 ubicar 372,363");
_local2.push("211 atacar 7,11");
_local2.push("211 atacar 7,11");
_local2.push("211 atacar 7,11");
_local2.push("211 atacar 7,11");
_local2.push("211 atacar 7,11");
_local2.push("220 ubicar 409,327");
_local2.push("220 atacar 7,11");
_local2.push("222 ubicar 397,329");
_local2.push("222 atacar 7,11");
_local2.push("225 ubicar 415,322");
_local2.push("225 atacar 7,11");
_local2.push("228 ubicar 415,322");
_local2.push("228 atacar 7,11");
_local2.push("230 ubicar 403,316");
_local2.push("230 atacar 7,11");
_local2.push("232 ubicar 393,330");
_local2.push("232 atacar 7,11");
_local2.push("234 ubicar 418,332");
_local2.push("234 atacar 7,11");
_local2.push("236 ubicar 403,318");
_local2.push("236 atacar 7,11");
_local2.push("249 ubicar 397,322");
_local2.push("249 atacar 7,11");
_local2.push("249 atacar 7,11");
_local2.push("249 atacar 7,11");
_local2.push("249 atacar 7,11");
_local2.push("249 atacar 7,11");
_local2.push("249 atacar 7,11");
_local2.push("249 atacar 7,11");
_local2.push("249 atacar 7,11");
_local2.push("249 atacar 7,11");
_local2.push("250 atacar 7,11");
_local2.push("251 atacar 7,11");
_local2.push("252 atacar 7,11");
_local2.push("253 atacar 7,11");
_local2.push("254 atacar 7,11");
_local2.push("255 atacar 7,11");
_local2.push("256 atacar 7,11");
_local2.push("257 atacar 7,11");
_local2.push("258 atacar 7,11");
_local2.push("259 atacar 7,11");
break;
case 2004:
_local2.push("15 ubicar 410,220");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("15 atacar 11,24");
_local2.push("67 ubicar 448,183");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("67 atacar 11,24");
_local2.push("116 ubicar 395,343");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
_local2.push("116 atacar 11,24");
break;
case 2005:
_local2.push("158 ubicar 1000,180");
_local2.push("158 atacar 3,8");
_local2.push("159 atacar 3,8");
_local2.push("160 atacar 3,8");
_local2.push("161 atacar 3,8");
_local2.push("162 atacar 3,8");
_local2.push("163 atacar 3,8");
_local2.push("164 atacar 3,8");
_local2.push("165 atacar 3,8");
_local2.push("166 atacar 3,8");
_local2.push("167 atacar 3,8");
_local2.push("168 atacar 3,8");
_local2.push("169 atacar 3,8");
_local2.push("170 atacar 3,8");
_local2.push("171 atacar 3,8");
_local2.push("172 atacar 3,8");
_local2.push("173 atacar 3,8");
_local2.push("174 atacar 3,8");
_local2.push("175 atacar 3,8");
_local2.push("176 atacar 3,8");
_local2.push("177 atacar 3,8");
_local2.push("178 atacar 3,8");
_local2.push("179 atacar 3,8");
_local2.push("180 atacar 3,8");
_local2.push("181 atacar 3,8");
_local2.push("182 atacar 3,8");
_local2.push("183 ubicar 758,343");
_local2.push("183 atacar 3,8");
_local2.push("184 ubicar 736,343");
_local2.push("184 atacar 3,8");
_local2.push("185 ubicar 730,350");
_local2.push("185 atacar 3,8");
_local2.push("186 atacar 3,8");
_local2.push("187 ubicar 719,338");
_local2.push("187 atacar 3,8");
_local2.push("188 ubicar 709,339");
_local2.push("188 atacar 3,8");
_local2.push("189 atacar 3,8");
_local2.push("190 ubicar 697,337");
_local2.push("190 atacar 3,8");
_local2.push("191 atacar 3,8");
_local2.push("192 ubicar 690,341");
_local2.push("192 atacar 3,8");
_local2.push("193 ubicar 678,340");
_local2.push("193 atacar 3,8");
_local2.push("194 atacar 3,8");
_local2.push("195 ubicar 671,339");
_local2.push("195 atacar 3,8");
_local2.push("196 atacar 3,8");
_local2.push("197 ubicar 660,335");
_local2.push("197 atacar 3,8");
_local2.push("198 atacar 3,8");
_local2.push("199 ubicar 640,337");
_local2.push("199 atacar 3,8");
_local2.push("200 ubicar 616,344");
_local2.push("200 atacar 3,8");
_local2.push("201 ubicar 589,340");
_local2.push("201 atacar 3,8");
_local2.push("202 ubicar 564,331");
_local2.push("202 atacar 3,8");
_local2.push("212 ubicar 487,356");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("212 atacar 3,8");
_local2.push("215 ubicar 479,315");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("215 atacar 3,8");
_local2.push("219 ubicar 475,350");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("219 atacar 3,8");
_local2.push("221 ubicar 465,334");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("221 atacar 3,8");
_local2.push("224 ubicar 477,306");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
_local2.push("224 atacar 3,8");
break;
case 2006:
_local2.push("100 ubicar 383,178");
_local2.push("100 atacar 17,34");
_local2.push("101 ubicar 383,178");
_local2.push("101 atacar 17,34");
_local2.push("102 ubicar 387,163");
_local2.push("102 atacar 17,34");
_local2.push("103 ubicar 385,159");
_local2.push("103 atacar 17,34");
_local2.push("104 ubicar 373,157");
_local2.push("104 atacar 17,34");
_local2.push("105 ubicar 391,157");
_local2.push("105 atacar 17,34");
_local2.push("106 ubicar 379,155");
_local2.push("106 atacar 17,34");
_local2.push("107 ubicar 392,146");
_local2.push("107 atacar 17,34");
_local2.push("108 ubicar 373,150");
_local2.push("108 atacar 17,34");
_local2.push("109 ubicar 395,160");
_local2.push("109 atacar 17,34");
_local2.push("110 ubicar 365,165");
_local2.push("110 atacar 17,34");
_local2.push("111 ubicar 374,196");
_local2.push("111 atacar 17,34");
_local2.push("112 ubicar 385,182");
_local2.push("112 atacar 17,34");
_local2.push("113 ubicar 398,174");
_local2.push("113 atacar 17,34");
_local2.push("114 ubicar 382,178");
_local2.push("114 atacar 17,34");
_local2.push("115 ubicar 386,193");
_local2.push("115 atacar 17,34");
_local2.push("116 ubicar 376,189");
_local2.push("116 atacar 17,34");
_local2.push("117 ubicar 389,198");
_local2.push("117 atacar 17,34");
_local2.push("118 ubicar 376,202");
_local2.push("118 atacar 17,34");
_local2.push("119 ubicar 375,194");
_local2.push("119 atacar 17,34");
_local2.push("120 ubicar 386,198");
_local2.push("120 atacar 17,34");
_local2.push("121 ubicar 373,178");
_local2.push("121 atacar 17,34");
_local2.push("122 ubicar 395,204");
_local2.push("122 atacar 17,34");
_local2.push("123 ubicar 375,201");
_local2.push("123 atacar 17,34");
_local2.push("124 ubicar 385,225");
_local2.push("124 atacar 17,34");
_local2.push("125 ubicar 375,223");
_local2.push("125 atacar 17,34");
_local2.push("126 ubicar 388,208");
_local2.push("126 atacar 17,34");
_local2.push("127 ubicar 387,224");
_local2.push("127 atacar 17,34");
_local2.push("128 ubicar 398,207");
_local2.push("128 atacar 17,34");
_local2.push("129 ubicar 386,242");
_local2.push("129 atacar 17,34");
_local2.push("130 ubicar 386,230");
_local2.push("130 atacar 17,34");
_local2.push("131 ubicar 398,236");
_local2.push("131 atacar 17,34");
_local2.push("132 ubicar 368,238");
_local2.push("132 atacar 17,34");
_local2.push("133 ubicar 393,232");
_local2.push("133 atacar 17,34");
_local2.push("134 ubicar 381,245");
_local2.push("134 atacar 17,34");
_local2.push("135 ubicar 396,238");
_local2.push("135 atacar 17,34");
break;
case 2007:
_local2.push("60 ubicar 388,348");
_local2.push("60 atacar 20,24");
_local2.push("60 atacar 20,24");
_local2.push("60 atacar 20,24");
_local2.push("60 atacar 20,24");
_local2.push("60 atacar 20,24");
_local2.push("70 ubicar 388,348");
_local2.push("70 atacar 20,24");
_local2.push("71 atacar 20,24");
_local2.push("72 atacar 20,24");
_local2.push("73 atacar 20,24");
_local2.push("74 atacar 20,24");
_local2.push("75 atacar 20,24");
_local2.push("76 atacar 20,24");
_local2.push("77 atacar 20,24");
_local2.push("78 atacar 20,24");
_local2.push("79 atacar 20,24");
_local2.push("80 atacar 20,24");
_local2.push("81 atacar 20,24");
_local2.push("82 atacar 20,24");
_local2.push("83 atacar 20,24");
_local2.push("84 atacar 20,24");
_local2.push("85 atacar 20,24");
_local2.push("86 atacar 20,24");
_local2.push("87 atacar 20,24");
_local2.push("88 atacar 20,24");
_local2.push("89 atacar 20,24");
_local2.push("90 atacar 20,24");
_local2.push("91 atacar 20,24");
_local2.push("92 atacar 20,24");
_local2.push("93 atacar 20,24");
_local2.push("94 atacar 20,24");
_local2.push("95 atacar 20,24");
_local2.push("96 atacar 20,24");
_local2.push("97 atacar 20,24");
_local2.push("98 atacar 20,24");
_local2.push("99 atacar 20,24");
_local2.push("100 atacar 20,24");
_local2.push("101 atacar 20,24");
_local2.push("102 atacar 20,24");
_local2.push("103 atacar 20,24");
_local2.push("104 atacar 20,24");
_local2.push("105 atacar 20,24");
_local2.push("106 atacar 20,24");
_local2.push("107 atacar 20,24");
_local2.push("108 atacar 20,24");
_local2.push("109 atacar 20,24");
_local2.push("110 atacar 20,24");
_local2.push("111 atacar 20,24");
_local2.push("112 atacar 20,24");
_local2.push("113 atacar 20,24");
_local2.push("114 atacar 20,24");
_local2.push("115 atacar 20,24");
_local2.push("116 atacar 20,24");
_local2.push("117 atacar 20,24");
_local2.push("118 atacar 20,24");
_local2.push("119 atacar 20,24");
_local2.push("120 atacar 20,24");
_local2.push("121 atacar 20,24");
_local2.push("122 atacar 20,24");
_local2.push("123 atacar 20,24");
_local2.push("124 atacar 20,24");
_local2.push("125 atacar 20,24");
_local2.push("126 atacar 20,24");
_local2.push("127 atacar 20,24");
_local2.push("128 atacar 20,24");
_local2.push("129 atacar 20,24");
_local2.push("130 atacar 20,24");
_local2.push("131 atacar 20,24");
_local2.push("132 atacar 20,24");
_local2.push("133 atacar 20,24");
_local2.push("134 atacar 20,24");
_local2.push("135 atacar 20,24");
_local2.push("136 atacar 20,24");
_local2.push("137 atacar 20,24");
_local2.push("138 atacar 20,24");
_local2.push("139 atacar 20,24");
_local2.push("140 atacar 20,24");
_local2.push("141 atacar 20,24");
_local2.push("142 atacar 20,24");
_local2.push("143 atacar 20,24");
_local2.push("144 atacar 20,24");
_local2.push("145 atacar 20,24");
_local2.push("146 atacar 20,24");
_local2.push("147 atacar 20,24");
_local2.push("148 atacar 20,24");
_local2.push("149 atacar 20,24");
_local2.push("150 atacar 20,24");
_local2.push("151 atacar 20,24");
_local2.push("152 atacar 20,24");
_local2.push("153 atacar 20,24");
_local2.push("154 atacar 20,24");
_local2.push("155 atacar 20,24");
_local2.push("156 atacar 20,24");
_local2.push("157 atacar 20,24");
_local2.push("158 atacar 20,24");
_local2.push("159 atacar 20,24");
_local2.push("160 atacar 20,24");
_local2.push("161 atacar 20,24");
_local2.push("162 atacar 20,24");
_local2.push("163 atacar 20,24");
_local2.push("164 atacar 20,24");
_local2.push("165 atacar 20,24");
_local2.push("166 atacar 20,24");
_local2.push("167 atacar 20,24");
_local2.push("168 atacar 20,24");
_local2.push("169 atacar 20,24");
_local2.push("170 atacar 20,24");
_local2.push("171 atacar 20,24");
_local2.push("172 atacar 20,24");
_local2.push("173 atacar 20,24");
_local2.push("174 atacar 20,24");
_local2.push("175 atacar 20,24");
_local2.push("176 atacar 20,24");
_local2.push("177 atacar 20,24");
_local2.push("178 atacar 20,24");
_local2.push("179 atacar 20,24");
_local2.push("180 atacar 20,24");
_local2.push("181 atacar 20,24");
_local2.push("182 atacar 20,24");
_local2.push("183 atacar 20,24");
_local2.push("184 atacar 20,24");
_local2.push("185 atacar 20,24");
_local2.push("186 atacar 20,24");
_local2.push("187 atacar 20,24");
_local2.push("188 atacar 20,24");
_local2.push("189 atacar 20,24");
_local2.push("190 atacar 20,24");
_local2.push("191 atacar 20,24");
_local2.push("192 atacar 20,24");
_local2.push("193 atacar 20,24");
_local2.push("194 atacar 20,24");
_local2.push("195 atacar 20,24");
_local2.push("196 atacar 20,24");
_local2.push("197 atacar 20,24");
_local2.push("198 atacar 20,24");
_local2.push("199 atacar 20,24");
_local2.push("200 atacar 20,24");
_local2.push("201 atacar 20,24");
_local2.push("202 atacar 20,24");
_local2.push("203 atacar 20,24");
_local2.push("204 atacar 20,24");
_local2.push("205 atacar 20,24");
_local2.push("206 atacar 20,24");
_local2.push("207 atacar 20,24");
_local2.push("208 atacar 20,24");
_local2.push("209 atacar 20,24");
_local2.push("210 atacar 20,24");
_local2.push("211 atacar 20,24");
_local2.push("212 atacar 20,24");
_local2.push("213 atacar 20,24");
_local2.push("214 atacar 20,24");
_local2.push("215 atacar 20,24");
_local2.push("216 atacar 20,24");
_local2.push("217 atacar 20,24");
_local2.push("218 atacar 20,24");
_local2.push("219 atacar 20,24");
_local2.push("220 atacar 20,24");
_local2.push("221 atacar 20,24");
_local2.push("222 atacar 20,24");
_local2.push("223 atacar 20,24");
_local2.push("224 atacar 20,24");
_local2.push("225 atacar 20,24");
_local2.push("226 atacar 20,24");
_local2.push("227 atacar 20,24");
_local2.push("228 atacar 20,24");
_local2.push("229 atacar 20,24");
_local2.push("230 atacar 20,24");
_local2.push("231 atacar 20,24");
_local2.push("232 atacar 20,24");
_local2.push("233 atacar 20,24");
_local2.push("234 atacar 20,24");
_local2.push("235 atacar 20,24");
_local2.push("236 atacar 20,24");
_local2.push("237 atacar 20,24");
_local2.push("238 atacar 20,24");
_local2.push("239 atacar 20,24");
_local2.push("240 atacar 20,24");
_local2.push("241 atacar 20,24");
_local2.push("242 atacar 20,24");
_local2.push("243 atacar 20,24");
_local2.push("244 atacar 20,24");
_local2.push("245 atacar 20,24");
_local2.push("246 atacar 20,24");
_local2.push("247 atacar 20,24");
_local2.push("248 atacar 20,24");
_local2.push("249 atacar 20,24");
_local2.push("250 atacar 20,24");
_local2.push("251 atacar 20,24");
_local2.push("252 atacar 20,24");
_local2.push("253 atacar 20,24");
_local2.push("254 atacar 20,24");
_local2.push("255 atacar 20,24");
_local2.push("256 atacar 20,24");
_local2.push("257 atacar 20,24");
_local2.push("258 atacar 20,24");
_local2.push("259 atacar 20,24");
_local2.push("260 atacar 20,24");
_local2.push("261 atacar 20,24");
_local2.push("262 atacar 20,24");
_local2.push("263 atacar 20,24");
_local2.push("264 atacar 20,24");
_local2.push("265 atacar 20,24");
_local2.push("266 atacar 20,24");
_local2.push("267 atacar 20,24");
_local2.push("268 atacar 20,24");
_local2.push("269 atacar 20,24");
_local2.push("270 atacar 20,24");
_local2.push("271 atacar 20,24");
_local2.push("272 atacar 20,24");
_local2.push("273 atacar 20,24");
_local2.push("274 atacar 20,24");
_local2.push("275 atacar 20,24");
_local2.push("276 atacar 20,24");
_local2.push("277 atacar 20,24");
_local2.push("278 atacar 20,24");
_local2.push("279 atacar 20,24");
_local2.push("280 atacar 20,24");
_local2.push("281 atacar 20,24");
_local2.push("282 atacar 20,24");
_local2.push("283 atacar 20,24");
_local2.push("284 atacar 20,24");
_local2.push("285 atacar 20,24");
_local2.push("286 atacar 20,24");
_local2.push("287 atacar 20,24");
_local2.push("288 atacar 20,24");
_local2.push("289 atacar 20,24");
_local2.push("290 atacar 20,24");
_local2.push("291 atacar 20,24");
_local2.push("292 atacar 20,24");
_local2.push("293 atacar 20,24");
_local2.push("294 atacar 20,24");
_local2.push("295 atacar 20,24");
_local2.push("296 atacar 20,24");
_local2.push("297 atacar 20,24");
_local2.push("298 atacar 20,24");
_local2.push("299 atacar 20,24");
_local2.push("300 atacar 20,24");
_local2.push("301 atacar 20,24");
_local2.push("302 atacar 20,24");
_local2.push("303 atacar 20,24");
_local2.push("304 atacar 20,24");
_local2.push("305 atacar 20,24");
_local2.push("306 atacar 20,24");
_local2.push("307 atacar 20,24");
_local2.push("308 atacar 20,24");
_local2.push("309 atacar 20,24");
_local2.push("310 atacar 20,24");
_local2.push("311 atacar 20,24");
_local2.push("312 atacar 20,24");
_local2.push("313 atacar 20,24");
_local2.push("314 atacar 20,24");
_local2.push("315 atacar 20,24");
_local2.push("316 atacar 20,24");
_local2.push("317 atacar 20,24");
_local2.push("318 atacar 20,24");
_local2.push("319 atacar 20,24");
_local2.push("320 atacar 20,24");
_local2.push("321 atacar 20,24");
_local2.push("322 atacar 20,24");
_local2.push("323 atacar 20,24");
_local2.push("324 atacar 20,24");
_local2.push("325 atacar 20,24");
_local2.push("326 atacar 20,24");
_local2.push("327 atacar 20,24");
_local2.push("328 atacar 20,24");
_local2.push("329 atacar 20,24");
_local2.push("330 atacar 20,24");
break;
case 2008:
_local2.push("30 ubicar 437,364");
_local2.push("30 atacar 6,14");
_local2.push("32 ubicar 450,364");
_local2.push("32 atacar 6,14");
_local2.push("34 ubicar 460,364");
_local2.push("34 atacar 6,14");
_local2.push("36 ubicar 470,364");
_local2.push("36 atacar 6,14");
_local2.push("38 ubicar 480,364");
_local2.push("38 atacar 6,14");
_local2.push("40 ubicar 490,364");
_local2.push("40 atacar 6,14");
_local2.push("42 ubicar 500,364");
_local2.push("42 atacar 6,14");
_local2.push("44 ubicar 510,364");
_local2.push("44 atacar 6,14");
_local2.push("46 ubicar 520,364");
_local2.push("46 atacar 6,14");
_local2.push("48 ubicar 530,364");
_local2.push("48 atacar 6,14");
_local2.push("50 ubicar 540,364");
_local2.push("50 atacar 6,14");
_local2.push("52 ubicar 550,364");
_local2.push("52 atacar 6,14");
_local2.push("54 ubicar 560,364");
_local2.push("54 atacar 6,14");
_local2.push("56 ubicar 570,364");
_local2.push("56 atacar 6,14");
_local2.push("58 ubicar 580,364");
_local2.push("58 atacar 6,14");
_local2.push("60 ubicar 590,364");
_local2.push("60 atacar 6,14");
_local2.push("62 ubicar 600,364");
_local2.push("62 atacar 6,14");
_local2.push("64 ubicar 610,364");
_local2.push("64 atacar 6,14");
_local2.push("66 ubicar 620,364");
_local2.push("66 atacar 6,14");
_local2.push("68 ubicar 630,364");
_local2.push("68 atacar 6,14");
_local2.push("70 ubicar 640,364");
_local2.push("70 atacar 6,14");
_local2.push("72 ubicar 650,364");
_local2.push("72 atacar 6,14");
_local2.push("74 ubicar 660,364");
_local2.push("74 atacar 6,14");
_local2.push("76 ubicar 670,364");
_local2.push("76 atacar 6,14");
_local2.push("78 ubicar 219,61");
_local2.push("78 atacar 6,14");
_local2.push("80 ubicar 309,83");
_local2.push("80 atacar 6,14");
_local2.push("82 ubicar 410,159");
_local2.push("82 atacar 6,14");
_local2.push("84 ubicar 473,261");
_local2.push("84 atacar 6,14");
_local2.push("86 ubicar 497,316");
_local2.push("86 atacar 6,14");
_local2.push("88 ubicar 497,381");
_local2.push("88 atacar 6,14");
_local2.push("90 ubicar 530,54");
_local2.push("90 atacar 6,14");
_local2.push("92 ubicar 444,87");
_local2.push("92 atacar 6,14");
_local2.push("94 ubicar 357,159");
_local2.push("94 atacar 6,14");
_local2.push("96 ubicar 299,259");
_local2.push("96 atacar 6,14");
_local2.push("98 ubicar 273,351");
_local2.push("98 atacar 6,14");
_local2.push("100 ubicar 195,176");
_local2.push("100 atacar 6,14");
_local2.push("102 ubicar 250,235");
_local2.push("102 atacar 6,14");
_local2.push("104 ubicar 371,273");
_local2.push("104 atacar 6,14");
_local2.push("106 ubicar 491,274");
_local2.push("106 atacar 6,14");
_local2.push("108 ubicar 578,254");
_local2.push("108 atacar 6,14");
_local2.push("110 ubicar 360,393");
_local2.push("110 atacar 6,14");
_local2.push("112 ubicar 418,344");
_local2.push("112 atacar 6,14");
_local2.push("114 ubicar 456,237");
_local2.push("114 atacar 6,14");
_local2.push("116 ubicar 439,92");
_local2.push("116 atacar 6,14");
_local2.push("118 ubicar 418,30");
_local2.push("118 atacar 6,14");
_local2.push("120 atacar 6,14");
_local2.push("122 atacar 6,14");
_local2.push("124 atacar 6,14");
_local2.push("126 atacar 6,14");
_local2.push("128 atacar 6,14");
_local2.push("130 atacar 6,14");
_local2.push("132 atacar 6,14");
_local2.push("134 atacar 6,14");
_local2.push("136 atacar 6,14");
_local2.push("138 atacar 6,14");
_local2.push("173 ubicar 537,340");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
_local2.push("173 atacar 6,14");
break;
case 2009:
_local2.push("53 ubicar 429,300");
_local2.push("53 atacar 1,5");
_local2.push("53 atacar 1,5");
_local2.push("53 atacar 1,5");
_local2.push("53 atacar 1,5");
_local2.push("53 atacar 1,5");
_local2.push("106 ubicar 564,303");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("106 atacar 1,5");
_local2.push("116 ubicar 162,350");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("116 atacar 1,5");
_local2.push("130 ubicar 554,355");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("130 atacar 1,5");
_local2.push("176 ubicar 395,221");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("176 atacar 1,5");
_local2.push("185 aleatorio true");
_local2.push("185 aleatoriopos 349,193,438,229");
_local2.push("185 atacar 10,15");
_local2.push("185 atacar 10,15");
_local2.push("185 atacar 10,15");
_local2.push("186 atacar 10,15");
_local2.push("186 atacar 10,15");
_local2.push("186 atacar 10,15");
_local2.push("187 atacar 10,15");
_local2.push("187 atacar 10,15");
_local2.push("187 atacar 10,15");
_local2.push("188 atacar 10,15");
_local2.push("188 atacar 10,15");
_local2.push("188 atacar 10,15");
_local2.push("189 atacar 10,15");
_local2.push("189 atacar 10,15");
_local2.push("189 atacar 10,15");
_local2.push("190 atacar 10,15");
_local2.push("190 atacar 10,15");
_local2.push("190 atacar 10,15");
_local2.push("191 atacar 10,15");
_local2.push("191 atacar 10,15");
_local2.push("191 atacar 10,15");
_local2.push("192 atacar 10,15");
_local2.push("192 atacar 10,15");
_local2.push("192 atacar 10,15");
_local2.push("193 atacar 10,15");
_local2.push("193 atacar 10,15");
_local2.push("193 atacar 10,15");
_local2.push("194 atacar 10,15");
_local2.push("194 atacar 10,15");
_local2.push("194 atacar 10,15");
_local2.push("195 atacar 10,15");
_local2.push("195 atacar 10,15");
_local2.push("195 atacar 10,15");
_local2.push("196 atacar 10,15");
_local2.push("196 atacar 10,15");
_local2.push("196 atacar 10,15");
_local2.push("197 atacar 10,15");
_local2.push("197 atacar 10,15");
_local2.push("197 atacar 10,15");
_local2.push("198 atacar 10,15");
_local2.push("198 atacar 10,15");
_local2.push("198 atacar 10,15");
_local2.push("199 atacar 10,15");
_local2.push("199 atacar 10,15");
_local2.push("199 atacar 10,15");
_local2.push("200 atacar 10,15");
_local2.push("200 atacar 10,15");
_local2.push("200 atacar 10,15");
break;
case 2010:
_local2.push("241 ubicar 306,235");
_local2.push("241 atacar 52,60");
_local2.push("242 atacar 52,60");
_local2.push("243 atacar 52,60");
_local2.push("244 atacar 52,60");
_local2.push("245 atacar 52,60");
_local2.push("246 atacar 52,60");
_local2.push("247 atacar 52,60");
_local2.push("248 atacar 52,60");
_local2.push("249 atacar 52,60");
_local2.push("250 atacar 52,60");
_local2.push("251 atacar 52,60");
_local2.push("252 atacar 52,60");
_local2.push("253 atacar 52,60");
_local2.push("254 atacar 52,60");
_local2.push("255 atacar 52,60");
_local2.push("256 atacar 52,60");
_local2.push("257 atacar 52,60");
_local2.push("258 atacar 52,60");
_local2.push("259 atacar 52,60");
_local2.push("260 atacar 52,60");
_local2.push("261 atacar 52,60");
_local2.push("262 atacar 52,60");
_local2.push("263 atacar 52,60");
_local2.push("264 atacar 52,60");
_local2.push("265 atacar 52,60");
_local2.push("266 atacar 52,60");
_local2.push("267 atacar 52,60");
_local2.push("268 atacar 52,60");
_local2.push("269 atacar 52,60");
_local2.push("270 atacar 52,60");
_local2.push("271 atacar 52,60");
_local2.push("272 atacar 52,60");
_local2.push("273 atacar 52,60");
_local2.push("274 atacar 52,60");
_local2.push("275 atacar 52,60");
_local2.push("276 atacar 52,60");
_local2.push("277 atacar 52,60");
_local2.push("278 atacar 52,60");
_local2.push("279 atacar 52,60");
_local2.push("280 atacar 52,60");
_local2.push("281 atacar 52,60");
_local2.push("282 atacar 52,60");
_local2.push("283 atacar 52,60");
_local2.push("284 atacar 52,60");
_local2.push("285 atacar 52,60");
_local2.push("286 atacar 52,60");
_local2.push("287 atacar 52,60");
_local2.push("288 atacar 52,60");
_local2.push("289 atacar 52,60");
_local2.push("290 atacar 52,60");
_local2.push("291 atacar 52,60");
_local2.push("292 atacar 52,60");
_local2.push("293 atacar 52,60");
_local2.push("294 atacar 52,60");
_local2.push("295 atacar 52,60");
_local2.push("296 atacar 52,60");
_local2.push("297 atacar 52,60");
_local2.push("298 atacar 52,60");
_local2.push("299 atacar 52,60");
_local2.push("300 atacar 52,60");
_local2.push("301 atacar 52,60");
_local2.push("302 atacar 52,60");
_local2.push("303 atacar 52,60");
_local2.push("304 atacar 52,60");
_local2.push("305 atacar 52,60");
_local2.push("306 atacar 52,60");
_local2.push("307 atacar 52,60");
_local2.push("308 atacar 52,60");
_local2.push("309 atacar 52,60");
_local2.push("310 atacar 52,60");
_local2.push("311 atacar 52,60");
_local2.push("312 atacar 52,60");
_local2.push("313 atacar 52,60");
_local2.push("314 atacar 52,60");
_local2.push("315 atacar 52,60");
_local2.push("316 atacar 52,60");
_local2.push("317 atacar 52,60");
_local2.push("318 atacar 52,60");
_local2.push("319 atacar 52,60");
_local2.push("320 atacar 52,60");
_local2.push("321 atacar 52,60");
_local2.push("322 atacar 52,60");
_local2.push("323 atacar 52,60");
_local2.push("324 atacar 52,60");
_local2.push("325 atacar 52,60");
_local2.push("326 atacar 52,60");
_local2.push("327 atacar 52,60");
_local2.push("328 atacar 52,60");
_local2.push("329 atacar 52,60");
_local2.push("330 atacar 52,60");
_local2.push("331 atacar 52,60");
_local2.push("332 atacar 52,60");
_local2.push("333 atacar 52,60");
_local2.push("334 atacar 52,60");
_local2.push("335 atacar 52,60");
_local2.push("336 atacar 52,60");
_local2.push("337 atacar 52,60");
_local2.push("338 atacar 52,60");
_local2.push("339 atacar 52,60");
_local2.push("340 atacar 52,60");
_local2.push("341 atacar 52,60");
_local2.push("342 atacar 52,60");
_local2.push("343 atacar 52,60");
_local2.push("344 atacar 52,60");
_local2.push("345 atacar 52,60");
_local2.push("346 atacar 52,60");
_local2.push("347 atacar 52,60");
_local2.push("348 atacar 52,60");
_local2.push("349 atacar 52,60");
_local2.push("350 atacar 52,60");
_local2.push("351 atacar 52,60");
_local2.push("352 atacar 52,60");
_local2.push("353 atacar 52,60");
_local2.push("354 atacar 52,60");
_local2.push("355 atacar 52,60");
_local2.push("356 atacar 52,60");
_local2.push("357 atacar 52,60");
_local2.push("358 atacar 52,60");
_local2.push("359 atacar 52,60");
_local2.push("360 atacar 52,60");
break;
case 2011:
_local2.push("84 ubicar 466,294");
_local2.push("84 atacar 2,8");
_local2.push("84 atacar 2,8");
_local2.push("84 atacar 2,8");
_local2.push("84 atacar 2,8");
_local2.push("84 atacar 2,8");
_local2.push("88 ubicar 370,276");
_local2.push("88 atacar 2,8");
_local2.push("88 atacar 2,8");
_local2.push("88 atacar 2,8");
_local2.push("88 atacar 2,8");
_local2.push("88 atacar 2,8");
_local2.push("89 ubicar 398,315");
_local2.push("89 atacar 2,8");
_local2.push("89 atacar 2,8");
_local2.push("89 atacar 2,8");
_local2.push("89 atacar 2,8");
_local2.push("89 atacar 2,8");
_local2.push("89 atacar 2,8");
_local2.push("99 ubicar 382,304");
_local2.push("99 atacar 2,8");
_local2.push("99 atacar 2,8");
_local2.push("99 atacar 2,8");
_local2.push("99 atacar 2,8");
_local2.push("99 atacar 2,8");
_local2.push("105 ubicar 380,275");
_local2.push("105 atacar 2,8");
_local2.push("105 atacar 2,8");
_local2.push("105 atacar 2,8");
_local2.push("105 atacar 2,8");
_local2.push("105 atacar 2,8");
_local2.push("108 ubicar 393,308");
_local2.push("108 atacar 2,8");
_local2.push("108 atacar 2,8");
_local2.push("108 atacar 2,8");
_local2.push("108 atacar 2,8");
_local2.push("108 atacar 2,8");
_local2.push("115 ubicar 376,279");
_local2.push("115 atacar 2,8");
_local2.push("115 atacar 2,8");
_local2.push("115 atacar 2,8");
_local2.push("115 atacar 2,8");
_local2.push("115 atacar 2,8");
_local2.push("117 ubicar 385,306");
_local2.push("117 atacar 2,8");
_local2.push("117 atacar 2,8");
_local2.push("117 atacar 2,8");
_local2.push("117 atacar 2,8");
_local2.push("117 atacar 2,8");
_local2.push("125 ubicar 383,309");
_local2.push("125 atacar 2,8");
_local2.push("125 atacar 2,8");
_local2.push("125 atacar 2,8");
_local2.push("125 atacar 2,8");
_local2.push("125 atacar 2,8");
_local2.push("131 ubicar 372,282");
_local2.push("131 atacar 2,8");
_local2.push("131 atacar 2,8");
_local2.push("131 atacar 2,8");
_local2.push("131 atacar 2,8");
_local2.push("131 atacar 2,8");
_local2.push("134 ubicar 391,304");
_local2.push("134 atacar 2,8");
_local2.push("134 atacar 2,8");
_local2.push("134 atacar 2,8");
_local2.push("134 atacar 2,8");
_local2.push("134 atacar 2,8");
break;
case 2012:
_local2.push("80 ubicar 390,323");
_local2.push("80 atacar 16,35");
_local2.push("82 atacar 16,35");
_local2.push("84 atacar 16,35");
_local2.push("86 atacar 16,35");
_local2.push("88 atacar 16,35");
_local2.push("90 atacar 16,35");
_local2.push("92 atacar 16,35");
_local2.push("94 atacar 16,35");
_local2.push("96 atacar 16,35");
_local2.push("98 atacar 16,35");
_local2.push("100 atacar 16,35");
_local2.push("102 atacar 16,35");
_local2.push("104 atacar 16,35");
_local2.push("106 atacar 16,35");
_local2.push("108 atacar 16,35");
_local2.push("110 atacar 16,35");
_local2.push("112 atacar 16,35");
_local2.push("114 atacar 16,35");
_local2.push("116 ubicar 383,344");
_local2.push("116 atacar 16,35");
_local2.push("118 atacar 16,35");
_local2.push("120 atacar 16,35");
_local2.push("122 atacar 16,35");
_local2.push("124 atacar 16,35");
_local2.push("126 atacar 16,35");
_local2.push("128 atacar 16,35");
_local2.push("130 atacar 16,35");
_local2.push("132 atacar 16,35");
_local2.push("134 atacar 16,35");
_local2.push("136 atacar 16,35");
_local2.push("138 atacar 16,35");
_local2.push("140 atacar 16,35");
_local2.push("142 atacar 16,35");
_local2.push("144 atacar 16,35");
_local2.push("146 atacar 16,35");
_local2.push("148 atacar 16,35");
_local2.push("140 atacar 16,35");
_local2.push("152 atacar 16,35");
_local2.push("154 atacar 16,35");
_local2.push("156 atacar 16,35");
_local2.push("158 atacar 16,35");
_local2.push("160 atacar 16,35");
_local2.push("162 atacar 16,35");
_local2.push("164 atacar 16,35");
_local2.push("166 atacar 16,35");
_local2.push("168 atacar 16,35");
_local2.push("170 atacar 16,35");
_local2.push("172 atacar 16,35");
_local2.push("174 atacar 16,35");
_local2.push("176 atacar 16,35");
_local2.push("178 atacar 16,35");
break;
case 2013:
_local2.push("54 ubicar 353,257");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("54 atacar 13,31");
_local2.push("146 ubicar 581,346");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("146 atacar 13,31");
_local2.push("173 ubicar 416,355");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
_local2.push("173 atacar 13,31");
break;
case 2014:
_local2.push("29 ubicar 425,139");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("29 atacar 2,7");
_local2.push("40 ubicar 495,121");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("40 atacar 2,7");
_local2.push("50 ubicar 582,134");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
_local2.push("50 atacar 2,7");
break;
case 2015:
_local2.push("60 ubicar 441,280");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 atacar 106,127");
_local2.push("60 ubicar 400,340");
_local2.push("77 atacar 106,127");
_local2.push("78 atacar 106,127");
_local2.push("79 atacar 106,127");
_local2.push("81 atacar 106,127");
_local2.push("82 atacar 106,127");
_local2.push("83 atacar 106,127");
_local2.push("84 atacar 106,127");
_local2.push("85 atacar 106,127");
_local2.push("86 atacar 106,127");
_local2.push("87 atacar 106,127");
_local2.push("88 atacar 106,127");
_local2.push("89 atacar 106,127");
_local2.push("90 atacar 106,127");
_local2.push("91 atacar 106,127");
_local2.push("92 atacar 106,127");
_local2.push("93 atacar 106,127");
_local2.push("94 atacar 106,127");
_local2.push("95 atacar 106,127");
_local2.push("96 atacar 106,127");
_local2.push("97 atacar 106,127");
_local2.push("98 atacar 106,127");
_local2.push("99 atacar 106,127");
_local2.push("100 atacar 106,127");
_local2.push("101 atacar 106,127");
_local2.push("102 atacar 106,127");
_local2.push("103 atacar 106,127");
_local2.push("104 atacar 106,127");
_local2.push("105 atacar 106,127");
_local2.push("106 atacar 106,127");
_local2.push("107 atacar 106,127");
_local2.push("108 atacar 106,127");
_local2.push("109 atacar 106,127");
break;
case 2016:
_local2.push("12 ubicar 422,202");
_local2.push("12 atacar 3,13");
_local2.push("12 atacar 3,13");
_local2.push("12 atacar 3,13");
_local2.push("21 ubicar 420,221");
_local2.push("21 atacar 3,13");
_local2.push("21 atacar 3,13");
_local2.push("21 atacar 3,13");
_local2.push("33 ubicar 477,237");
_local2.push("33 atacar 3,13");
_local2.push("33 atacar 3,13");
_local2.push("33 atacar 3,13");
_local2.push("35 ubicar 428,175");
_local2.push("35 atacar 3,13");
_local2.push("35 atacar 3,13");
_local2.push("35 atacar 3,13");
_local2.push("44 ubicar 408,151");
_local2.push("44 atacar 3,13");
_local2.push("44 atacar 3,13");
_local2.push("44 atacar 3,13");
_local2.push("48 ubicar 375,276");
_local2.push("48 atacar 3,13");
_local2.push("48 atacar 3,13");
_local2.push("48 atacar 3,13");
_local2.push("54 ubicar 409,241");
_local2.push("54 atacar 3,13");
_local2.push("54 atacar 3,13");
_local2.push("54 atacar 3,13");
_local2.push("59 ubicar 420,203");
_local2.push("59 atacar 3,13");
_local2.push("59 atacar 3,13");
_local2.push("59 atacar 3,13");
_local2.push("76 ubicar 501,276");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("76 atacar 3,13");
_local2.push("98 ubicar 313,145");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
_local2.push("98 atacar 3,13");
break;
case 2017:
_local2.push("17 ubicar 414,147");
_local2.push("17 atacar 1,5");
_local2.push("17 atacar 1,5");
_local2.push("17 atacar 1,5");
_local2.push("18 atacar 1,5");
_local2.push("18 atacar 1,5");
_local2.push("18 atacar 1,5");
_local2.push("19 atacar 1,5");
_local2.push("19 atacar 1,5");
_local2.push("19 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("20 atacar 1,5");
_local2.push("21 ubicar 424,157");
_local2.push("21 atacar 1,5");
_local2.push("21 atacar 1,5");
_local2.push("23 ubicar 440,174");
_local2.push("23 atacar 1,5");
_local2.push("23 atacar 1,5");
_local2.push("25 ubicar 441,187");
_local2.push("25 atacar 1,5");
_local2.push("25 atacar 1,5");
_local2.push("27 ubicar 459,221");
_local2.push("27 atacar 1,5");
_local2.push("27 atacar 1,5");
_local2.push("29 ubicar 459,237");
_local2.push("29 atacar 1,5");
_local2.push("29 atacar 1,5");
_local2.push("31 ubicar 450,266");
_local2.push("31 atacar 1,5");
_local2.push("31 atacar 1,5");
_local2.push("33 ubicar 442,289");
_local2.push("33 atacar 1,5");
_local2.push("33 atacar 1,5");
_local2.push("35 ubicar 433,305");
_local2.push("35 atacar 1,5");
_local2.push("35 atacar 1,5");
_local2.push("45 ubicar 450,266");
_local2.push("45 atacar 1,5");
_local2.push("45 atacar 1,5");
_local2.push("45 atacar 1,5");
_local2.push("45 atacar 1,5");
_local2.push("45 atacar 1,5");
_local2.push("46 atacar 1,5");
_local2.push("46 atacar 1,5");
_local2.push("47 atacar 1,5");
_local2.push("47 atacar 1,5");
_local2.push("48 atacar 1,5");
_local2.push("48 atacar 1,5");
_local2.push("49 atacar 1,5");
_local2.push("49 atacar 1,5");
_local2.push("50 atacar 1,5");
_local2.push("50 atacar 1,5");
_local2.push("51 atacar 1,5");
_local2.push("51 atacar 1,5");
_local2.push("52 atacar 1,5");
_local2.push("52 atacar 1,5");
_local2.push("53 atacar 1,5");
_local2.push("53 atacar 1,5");
_local2.push("54 atacar 1,5");
_local2.push("54 atacar 1,5");
_local2.push("55 atacar 1,5");
_local2.push("55 atacar 1,5");
_local2.push("56 atacar 1,5");
_local2.push("56 atacar 1,5");
_local2.push("57 atacar 1,5");
_local2.push("57 atacar 1,5");
_local2.push("58 atacar 1,5");
_local2.push("58 atacar 1,5");
_local2.push("59 atacar 1,5");
_local2.push("59 atacar 1,5");
_local2.push("60 atacar 1,5");
_local2.push("60 atacar 1,5");
_local2.push("61 atacar 1,5");
_local2.push("61 atacar 1,5");
_local2.push("62 atacar 1,5");
_local2.push("62 atacar 1,5");
break;
case 2018:
_local2.push("40 ubicar 647,223");
_local2.push("40 atacar 3,12");
_local2.push("41 ubicar 708,218");
_local2.push("41 atacar 3,12");
_local2.push("42 ubicar 680,282");
_local2.push("42 atacar 3,12");
_local2.push("43 ubicar 684,231");
_local2.push("43 atacar 3,12");
_local2.push("44 ubicar 647,223");
_local2.push("44 atacar 3,12");
_local2.push("45 ubicar 667,222");
_local2.push("45 atacar 3,12");
_local2.push("46 ubicar 598,218");
_local2.push("46 atacar 3,12");
_local2.push("47 ubicar 567,235");
_local2.push("47 atacar 3,12");
_local2.push("48 ubicar 572,207");
_local2.push("48 atacar 3,12");
_local2.push("49 ubicar 647,223");
_local2.push("49 atacar 3,12");
_local2.push("50 ubicar 556,218");
_local2.push("50 atacar 3,12");
_local2.push("51 ubicar 570,241");
_local2.push("51 atacar 3,12");
_local2.push("52 ubicar 580,262");
_local2.push("52 atacar 3,12");
_local2.push("53 ubicar 593,232");
_local2.push("53 atacar 3,12");
_local2.push("54 ubicar 568,273");
_local2.push("54 atacar 3,12");
_local2.push("55 ubicar 597,240");
_local2.push("55 atacar 3,12");
_local2.push("56 ubicar 495,262");
_local2.push("56 atacar 3,12");
_local2.push("57 ubicar 506,208");
_local2.push("57 atacar 3,12");
_local2.push("58 ubicar 490,240");
_local2.push("58 atacar 3,12");
_local2.push("59 ubicar 504,252");
_local2.push("59 atacar 3,12");
_local2.push("60 ubicar 514,210");
_local2.push("60 atacar 3,12");
_local2.push("61 ubicar 523,262");
_local2.push("61 atacar 3,12");
_local2.push("62 ubicar 536,231");
_local2.push("62 atacar 3,12");
_local2.push("63 ubicar 527,262");
_local2.push("63 atacar 3,12");
_local2.push("64 ubicar 545,223");
_local2.push("64 atacar 3,12");
_local2.push("65 ubicar 519,209");
_local2.push("65 atacar 3,12");
_local2.push("66 ubicar 441,263");
_local2.push("66 atacar 3,12");
_local2.push("67 ubicar 445,219");
_local2.push("67 atacar 3,12");
_local2.push("68 ubicar 430,241");
_local2.push("68 atacar 3,12");
_local2.push("69 ubicar 437,261");
_local2.push("69 atacar 3,12");
_local2.push("70 ubicar 454,239");
_local2.push("70 atacar 3,12");
_local2.push("71 ubicar 477,228");
_local2.push("71 atacar 3,12");
_local2.push("72 ubicar 458,250");
_local2.push("72 atacar 3,12");
_local2.push("73 ubicar 479,215");
_local2.push("73 atacar 3,12");
_local2.push("74 ubicar 386,250");
_local2.push("74 atacar 3,12");
_local2.push("75 ubicar 373,216");
_local2.push("75 atacar 3,12");
_local2.push("76 ubicar 347,244");
_local2.push("76 atacar 3,12");
_local2.push("77 ubicar 339,252");
_local2.push("77 atacar 3,12");
_local2.push("78 ubicar 335,213");
_local2.push("78 atacar 3,12");
_local2.push("79 ubicar 336,247");
_local2.push("79 atacar 3,12");
break;
case 2019:
_local2.push("93 ubicar 394,338");
_local2.push("93 atacar 12,25");
_local2.push("94 atacar 12,25");
_local2.push("95 atacar 12,25");
_local2.push("96 atacar 12,25");
_local2.push("97 atacar 12,25");
_local2.push("98 atacar 12,25");
_local2.push("99 atacar 12,25");
_local2.push("100 atacar 12,25");
_local2.push("101 atacar 12,25");
_local2.push("102 atacar 12,25");
_local2.push("103 atacar 12,25");
_local2.push("104 atacar 12,25");
_local2.push("105 atacar 12,25");
_local2.push("106 atacar 12,25");
_local2.push("107 atacar 12,25");
_local2.push("108 atacar 12,25");
_local2.push("109 atacar 12,25");
_local2.push("110 atacar 12,25");
_local2.push("111 atacar 12,25");
_local2.push("112 atacar 12,25");
_local2.push("113 atacar 12,25");
_local2.push("114 atacar 12,25");
_local2.push("115 atacar 12,25");
_local2.push("116 atacar 12,25");
_local2.push("117 atacar 12,25");
_local2.push("118 atacar 12,25");
_local2.push("119 atacar 12,25");
_local2.push("120 atacar 12,25");
_local2.push("121 atacar 12,25");
_local2.push("122 atacar 12,25");
_local2.push("123 atacar 12,25");
_local2.push("124 atacar 12,25");
_local2.push("125 atacar 12,25");
_local2.push("126 atacar 12,25");
_local2.push("127 atacar 12,25");
_local2.push("128 atacar 12,25");
_local2.push("129 atacar 12,25");
_local2.push("130 atacar 12,25");
_local2.push("131 atacar 12,25");
_local2.push("132 atacar 12,25");
_local2.push("133 atacar 12,25");
_local2.push("134 atacar 12,25");
_local2.push("135 atacar 12,25");
_local2.push("136 atacar 12,25");
_local2.push("137 atacar 12,25");
_local2.push("138 atacar 12,25");
_local2.push("139 atacar 12,25");
_local2.push("140 atacar 12,25");
_local2.push("141 atacar 12,25");
_local2.push("142 atacar 12,25");
_local2.push("143 atacar 12,25");
_local2.push("144 atacar 12,25");
_local2.push("145 atacar 12,25");
_local2.push("146 atacar 12,25");
_local2.push("147 atacar 12,25");
_local2.push("148 atacar 12,25");
_local2.push("149 atacar 12,25");
_local2.push("150 atacar 12,25");
_local2.push("151 atacar 12,25");
_local2.push("152 atacar 12,25");
_local2.push("153 atacar 12,25");
_local2.push("154 atacar 12,25");
_local2.push("155 atacar 12,25");
_local2.push("156 atacar 12,25");
_local2.push("157 atacar 12,25");
_local2.push("158 atacar 12,25");
_local2.push("159 atacar 12,25");
_local2.push("160 atacar 12,25");
_local2.push("161 atacar 12,25");
_local2.push("162 atacar 12,25");
_local2.push("163 atacar 12,25");
_local2.push("164 atacar 12,25");
_local2.push("165 atacar 12,25");
_local2.push("166 atacar 12,25");
_local2.push("167 atacar 12,25");
_local2.push("168 atacar 12,25");
_local2.push("169 atacar 12,25");
_local2.push("170 atacar 12,25");
break;
default:
trace((("**ERROR** script " + _arg1) + " no asignado"));
};
return (_local2);
}
}
}//package
Section 420
//Submit (Submit)
package {
import Playtomic.*;
import flash.events.*;
import gs.*;
import flash.text.*;
import flash.display.*;
public class Submit extends Ventana {
public var t_score:TextField;
public var t_name:TextField;
public var t_error:TextField;
public var b_submit:SimpleButton;
public var b_exit:SimpleButton;
public function Submit(){
Log.CustomMetric("ViewedSubmit");
}
override protected function Cargar_Ventana():void{
b_submit.addEventListener(MouseEvent.CLICK, on_button_clicked);
b_exit.addEventListener(MouseEvent.CLICK, on_button_clicked);
t_error.visible = false;
t_score.text = ("" + VariablesGlobales.puntosRecord);
t_name.text = ("" + VariablesGlobales.nombrePlayer);
stage.focus = t_name;
super.Cargar_Ventana();
}
override protected function Descargar_Ventana():void{
super.Descargar_Ventana();
}
function onFinishTweenSalida():void{
main_class.cierra_pantalla(this);
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_submit":
ValidarSubmit();
break;
case "b_exit":
TweenLite.to(this, 0.2, {delay:0, alpha:0, onComplete:onFinishTweenSalida});
break;
};
}
private function ValidarSubmit():void{
var _local1:PlayerScore;
if (t_name.text == ""){
t_error.visible = true;
stage.focus = t_name;
} else {
_local1 = new PlayerScore();
_local1.Name = String(t_name.text);
_local1.Points = int(VariablesGlobales.puntosRecord);
Leaderboards.Save(_local1, "Score", onSubmit);
VariablesGlobales.nombrePlayer = t_name.text;
};
}
private function onSubmit(_arg1:PlayerScore, _arg2:Object):void{
if (_arg2.Success){
Log.CustomMetric("Submit_OK");
if (!(VariablesGlobales.logrosMan.LogroDesbloqueado(ManagerLogros.SUBIR_PUNTUACION))){
VariablesGlobales.logrosMan.DesbloquearLogro(ManagerLogros.SUBIR_PUNTUACION);
};
};
TweenLite.to(this, 0.2, {delay:0, alpha:0, onComplete:onFinishTweenSalida});
}
}
}//package
Section 421
//TextoFlotante (TextoFlotante)
package {
import com.greensock.*;
import flash.display.*;
public class TextoFlotante extends MovieClip {
var framesVida:int;// = 12
var apariencia:MovieClip;
var marcaDescargar:Boolean;// = false
public static const DINERO:int = 3;
public static const MENOSPACIENCIA:int = 8;
public static const MASCRITICO:int = 7;
public static const IMPACTO_CRITICO:int = 2;
public static const IMPACTO:int = 1;
public static const MASRABIA:int = 5;
public static const MASFUERZA:int = 10;
public static const MENOSRABIA:int = 9;
public static const REFRESCARSKILLS:int = 11;
public static const MASDINERO:int = 6;
public static const MASPACIENCIA:int = 4;
public function TextoFlotante(_arg1, _arg2, _arg3, _arg4){
var _local5:int;
var _local6:int;
framesVida = 12;
marcaDescargar = false;
super();
trace(((_arg1 + " ") + _arg2));
this.x = _arg1;
this.y = _arg2;
_local5 = this.x;
_local6 = (this.y - 20);
apariencia = new cartelFlotante();
apariencia.info.text = _arg4;
switch (_arg3){
case IMPACTO:
apariencia.info.textColor = 0xFFFFFF;
apariencia.info.text = (apariencia.info.text + "P");
break;
case IMPACTO_CRITICO:
apariencia.info.textColor = 15353659;
apariencia.info.text = (apariencia.info.text + "P!");
break;
case DINERO:
apariencia.info.textColor = 16777011;
apariencia.info.text = (apariencia.info.text + "$");
break;
case MASPACIENCIA:
apariencia.info.textColor = 6398041;
apariencia.info.text = (("+" + apariencia.info.text) + "Pa");
break;
case MASRABIA:
apariencia.info.textColor = 7512039;
apariencia.info.text = (("+" + apariencia.info.text) + "St");
break;
case MASDINERO:
apariencia.info.textColor = 16777011;
apariencia.info.text = (("+" + apariencia.info.text) + "%Mo");
break;
case MASCRITICO:
apariencia.info.textColor = 15353659;
apariencia.info.text = (("+" + apariencia.info.text) + "%Cr");
break;
case MENOSPACIENCIA:
apariencia.info.textColor = 6398041;
apariencia.info.text = (("-" + apariencia.info.text) + "Pa");
break;
case MENOSRABIA:
apariencia.info.textColor = 7512039;
apariencia.info.text = (("-" + apariencia.info.text) + "St");
break;
case MASFUERZA:
apariencia.info.textColor = 0xFFFFFF;
apariencia.info.text = apariencia.info.text;
break;
case REFRESCARSKILLS:
apariencia.info.textColor = 0xFFFFFF;
apariencia.info.text = apariencia.info.text;
break;
};
apariencia.info_sombra.text = apariencia.info.text;
addChild(apariencia);
}
function onFinishTween():void{
framesVida = 0;
}
public function Actualizar(){
if (!(marcaDescargar)){
framesVida--;
if (framesVida <= 0){
Descargar();
};
};
}
public function Descargar(){
marcaDescargar = true;
}
}
}//package
Section 422
//Tienda (Tienda)
package {
import Playtomic.*;
import flash.events.*;
import gs.*;
import flash.ui.*;
import flash.display.*;
public class Tienda extends Ventana {
public var p_stats:MovieClip;
public var skillDrag:Skill;
public var p_negro:MovieClip;
public var listaBotonesTienda:Array;
public var p_attacks:MovieClip;
public var p_descripcion:MovieClip;
public var p_blanco:MovieClip;
public var p_premium:MovieClip;
public var p_superior:MovieClip;
public var p_coste:MovieClip;
public var botonDrag:BotonDrageable;
public var listaBotonesSkills:Array;
public var p_specials:MovieClip;
public var listaStatsTienda:Array;
public var p_derecha:MovieClip;
public var p_sin_fondos:MovieClip;
public var p_inferior:MovieClip;
public var p_buffs:MovieClip;
public function Tienda(){
VariablesGlobales.tiendaActual = this;
Log.CustomMetric("ViewedShop");
}
private function AbrirLogros():void{
main_class.abre_pantalla(new Logros());
}
public function soltandoSkill(){
Mouse.show();
skillDrag = null;
botonDrag.visible = false;
botonDrag.stopDrag();
ActualizarSkills();
trace("soltando skill");
}
public function ActualizarDinero():void{
trace("actualizar dinero tienda");
p_superior.t_coins.text = (VariablesGlobales.dineroTotal + "$");
}
public function ActualizarSkills():void{
var _local1:int;
_local1 = 0;
while (_local1 < listaBotonesTienda.length) {
listaBotonesTienda[_local1].Actualiza();
_local1++;
};
}
private function LanzarPrincipal():void{
main_class.abre_pantalla(new Principal());
main_class.cierra_pantalla(this);
}
public function LanzarTiendaPremium(_arg1:int=0){
}
override protected function Cargar_Ventana():void{
p_derecha.b_stats.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_derecha.b_stats.buttonMode = true;
p_derecha.b_attacks.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_derecha.b_attacks.buttonMode = true;
p_derecha.b_buffs.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_derecha.b_buffs.buttonMode = true;
p_derecha.b_specials.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_derecha.b_specials.buttonMode = true;
p_derecha.b_premium.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_derecha.b_premium.buttonMode = true;
p_derecha.b_jugar.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_superior.b_estadisticas.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_superior.b_medallas.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_superior.b_ranking.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_inferior.p_botones_comunes.b_more_games.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_inferior.p_botones_comunes.b_salir.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_inferior.p_botones_comunes.b_upgrades.visible = false;
p_premium.p_premium_bloqueado.visible = false;
if (VariablesGlobales.estoyEnSponsor){
p_inferior.p_botones_comunes.b_more_games.visible = false;
p_premium.f_go_sponsor.visible = false;
p_premium.t_go_sponsor.visible = false;
p_premium.b_go_sponsor.visible = false;
p_premium.b_sponsor.visible = false;
} else {
p_inferior.p_botones_comunes.b_more_games.visible = true;
p_premium.f_go_sponsor.visible = true;
p_premium.t_go_sponsor.visible = true;
p_premium.b_go_sponsor.visible = true;
p_premium.b_sponsor.visible = true;
p_premium.b_go_sponsor.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_premium.b_sponsor.addEventListener(MouseEvent.CLICK, on_button_clicked);
};
p_premium.p_premium_bloqueado.b_go.addEventListener(MouseEvent.CLICK, on_button_clicked);
NombreSkillBotonera("");
CargarStats();
listaBotonesTienda = new Array();
CargarTienda(Type_ID.ATTACK, p_attacks);
CargarTienda(Type_ID.BUFF, p_buffs, 60);
CargarTienda(Type_ID.SPECIAL, p_specials, 30);
CargarTiendaPremium(p_premium, 30);
listaBotonesSkills = new Array();
CargarBotonesSkills();
ActualizarSkills();
botonDrag = new BotonDrageable(this);
botonDrag.visible = false;
addEventListener(MouseEvent.MOUSE_UP, on_mouse_up);
p_coste.visible = false;
p_descripcion.visible = false;
p_sin_fondos.visible = false;
ActualizarDinero();
MostrarPanel(VariablesGlobales.ultimoMenuTienda);
p_inferior.p_botones_comunes.b_music.addEventListener(MouseEvent.CLICK, on_button_clicked);
p_inferior.p_botones_comunes.b_music.buttonMode = true;
VariablesGlobales.musicaActual = "principal1";
VariablesGlobales.EstadoMusica();
VariablesGlobales.MostrarEstadoMusica(p_inferior.p_botones_comunes.b_music);
VariablesGlobales.soundMan.stopAllSounds();
p_blanco.visible = false;
p_negro.visible = true;
p_negro.alpha = 1;
TweenLite.to(p_negro, 0.1, {delay:0, alpha:0, onComplete:onFinishTweenEntradaTienda});
p_superior.y = -80;
TweenLite.to(p_superior, 0.1, {delay:0.2, y:0});
p_inferior.y = 90;
TweenLite.to(p_inferior, 0.1, {delay:0.2, y:0});
p_derecha.x = 170;
TweenLite.to(p_derecha, 0.1, {delay:0.2, x:0});
p_stats.alpha = 0;
TweenLite.to(p_stats, 0.1, {delay:0.3, alpha:1});
p_attacks.alpha = 0;
TweenLite.to(p_attacks, 0.1, {delay:0.3, alpha:1});
p_buffs.alpha = 0;
TweenLite.to(p_buffs, 0.1, {delay:0.3, alpha:1});
p_specials.alpha = 0;
TweenLite.to(p_specials, 0.1, {delay:0.3, alpha:1});
p_premium.alpha = 0;
TweenLite.to(p_premium, 0.1, {delay:0.3, alpha:1});
super.Cargar_Ventana();
}
private function descargarDatos():void{
if (VariablesGlobales.cargaFicherosExterna == true){
main_class.abre_pantalla(new Carga());
main_class.cierra_pantalla(this);
} else {
Log.CustomMetric("StartShop");
main_class.abre_pantalla(new Juego());
main_class.cierra_pantalla(this);
};
}
private function CargarStats():void{
var _local1:Number;
var _local2:BotonStatsTienda;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local1 = 0;
_local3 = 218;
_local4 = 29;
_local5 = 38;
listaStatsTienda = new Array();
_local1 = 0;
while (_local1 < VariablesGlobales.costePaciencia.length) {
_local2 = new BotonStatsTienda(p_stats, (_local3 + (_local1 * _local5)), 55, 3);
_local2.tipoBoton = BotonStatsTienda.PACIENCIA;
_local2.nivelBoton = (_local1 + 1);
_local2.costeBoton = VariablesGlobales.costePaciencia[_local1];
_local2.Inicia();
listaStatsTienda.push(_local2);
_local1++;
};
_local1 = 0;
while (_local1 < VariablesGlobales.costeRabia.length) {
_local2 = new BotonStatsTienda(p_stats, (_local3 + (_local1 * _local5)), 107, 3);
_local2.tipoBoton = BotonStatsTienda.RABIA;
_local2.nivelBoton = (_local1 + 1);
_local2.costeBoton = VariablesGlobales.costeRabia[_local1];
_local2.Inicia();
listaStatsTienda.push(_local2);
_local1++;
};
_local1 = 0;
while (_local1 < VariablesGlobales.costeCritical.length) {
_local2 = new BotonStatsTienda(p_stats, (_local3 + (_local1 * _local5)), 157, 3);
_local2.tipoBoton = BotonStatsTienda.CRITICO;
_local2.nivelBoton = (_local1 + 1);
_local2.costeBoton = VariablesGlobales.costeCritical[_local1];
_local2.Inicia();
listaStatsTienda.push(_local2);
_local1++;
};
_local1 = 0;
while (_local1 < VariablesGlobales.costeMoney.length) {
_local2 = new BotonStatsTienda(p_stats, (_local3 + (_local1 * _local5)), 210, 3);
_local2.tipoBoton = BotonStatsTienda.DINERO;
_local2.nivelBoton = (_local1 + 1);
_local2.costeBoton = VariablesGlobales.costeMoney[_local1];
_local2.Inicia();
listaStatsTienda.push(_local2);
_local1++;
};
ActualizarStats();
}
private function CargarBotonesSkills():void{
var _local1:int;
var _local2:BotonSkillBotoneraTienda;
listaBotonesSkills = new Array();
_local1 = 0;
while (_local1 < VariablesGlobales.skillsJugador.length) {
_local2 = new BotonSkillBotoneraTienda(VariablesGlobales.skillsMan.data[0], p_inferior.botonera, (3 + (_local1 * 46)), 2);
_local2.indice = _local1;
listaBotonesSkills.push(_local2);
CargarSkillEnBoton(VariablesGlobales.skillsJugador[_local1], _local1);
_local1++;
};
}
function onFinishTweenEntradaTienda():void{
p_negro.visible = false;
}
private function AbrirEstadisticas():void{
main_class.abre_pantalla(new Estadisticas());
}
private function lanzarJuego():void{
if (validarSkills()){
VariablesGlobales.musicMan.stopAllSounds();
VariablesGlobales.soundMan.stopAllSounds();
descargarDatos();
};
}
function MostrarPanel(_arg1:String){
VariablesGlobales.ultimoMenuTienda = _arg1;
switch (_arg1){
case "stats":
p_stats.visible = true;
p_attacks.visible = false;
p_buffs.visible = false;
p_specials.visible = false;
p_premium.visible = false;
p_derecha.b_stats.gotoAndStop(2);
p_derecha.b_attacks.gotoAndStop(1);
p_derecha.b_buffs.gotoAndStop(1);
p_derecha.b_specials.gotoAndStop(1);
p_derecha.b_premium.gotoAndStop(1);
break;
case "attacks":
p_stats.visible = false;
p_attacks.visible = true;
p_buffs.visible = false;
p_specials.visible = false;
p_premium.visible = false;
p_derecha.b_stats.gotoAndStop(1);
p_derecha.b_attacks.gotoAndStop(2);
p_derecha.b_buffs.gotoAndStop(1);
p_derecha.b_specials.gotoAndStop(1);
p_derecha.b_premium.gotoAndStop(1);
break;
case "buffs":
p_stats.visible = false;
p_attacks.visible = false;
p_buffs.visible = true;
p_specials.visible = false;
p_premium.visible = false;
p_derecha.b_stats.gotoAndStop(1);
p_derecha.b_attacks.gotoAndStop(1);
p_derecha.b_buffs.gotoAndStop(2);
p_derecha.b_specials.gotoAndStop(1);
p_derecha.b_premium.gotoAndStop(1);
break;
case "specials":
p_stats.visible = false;
p_attacks.visible = false;
p_buffs.visible = false;
p_specials.visible = true;
p_premium.visible = false;
p_derecha.b_stats.gotoAndStop(1);
p_derecha.b_attacks.gotoAndStop(1);
p_derecha.b_buffs.gotoAndStop(1);
p_derecha.b_specials.gotoAndStop(2);
p_derecha.b_premium.gotoAndStop(1);
break;
case "premium":
p_stats.visible = false;
p_attacks.visible = false;
p_buffs.visible = false;
p_specials.visible = false;
p_premium.visible = true;
p_derecha.b_stats.gotoAndStop(1);
p_derecha.b_attacks.gotoAndStop(1);
p_derecha.b_buffs.gotoAndStop(1);
p_derecha.b_specials.gotoAndStop(1);
p_derecha.b_premium.gotoAndStop(2);
break;
};
}
override protected function Descargar_Ventana():void{
super.Descargar_Ventana();
}
private function CargarTienda(_arg1, _arg2, _arg3=0):void{
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:BotonSkillTienda;
_local4 = "";
_local5 = 0;
_local6 = 4;
_local7 = 0;
_local8 = 6;
_local9 = 42;
if (_arg3 != 0){
_local9 = _arg3;
};
_local10 = ((_local9 * 3) + 20);
_local11 = 62;
_local12 = 12;
_local13 = 17;
_local14 = _local12;
_local15 = _local13;
_local16 = 0;
while (_local16 < VariablesGlobales.skillsMan.data.length) {
if ((((Skill(VariablesGlobales.skillsMan.data[_local16]).Type == _arg1)) && ((Skill(VariablesGlobales.skillsMan.data[_local16]).Premium == 0)))){
if (_local4 == Skill(VariablesGlobales.skillsMan.data[_local16]).Name){
_local14 = (_local14 + _local9);
} else {
_local4 = Skill(VariablesGlobales.skillsMan.data[_local16]).Name;
if (_local5 >= _local6){
_local5 = 0;
_local7++;
};
_local14 = (_local12 + (_local7 * _local10));
_local15 = (_local13 + (_local5 * _local11));
_local5++;
};
_local17 = new BotonSkillTienda(VariablesGlobales.skillsMan.data[_local16], _arg2, _local14, _local15);
listaBotonesTienda.push(_local17);
};
_local16++;
};
}
public function ActualizarStats():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = 0;
while (_local1 < listaStatsTienda.length) {
_local2 = 1;
_local3 = BotonStatsTienda(listaStatsTienda[_local1]).nivelBoton;
_local4 = 0;
switch (BotonStatsTienda(listaStatsTienda[_local1]).tipoBoton){
case BotonStatsTienda.PACIENCIA:
_local4 = VariablesGlobales.nivelPaciencia;
break;
case BotonStatsTienda.RABIA:
_local4 = VariablesGlobales.nivelRabia;
break;
case BotonStatsTienda.CRITICO:
_local4 = VariablesGlobales.nivelCritical;
break;
case BotonStatsTienda.DINERO:
_local4 = VariablesGlobales.nivelMoney;
break;
};
if (_local3 == _local4){
_local2 = 1;
};
if (_local3 == (_local4 + 1)){
_local2 = 2;
};
if (_local3 > (_local4 + 1)){
_local2 = 3;
};
BotonStatsTienda(listaStatsTienda[_local1]).apariencia.gotoAndStop(_local2);
if ((((_local2 == 2)) && ((VariablesGlobales.dineroTotal < BotonStatsTienda(listaStatsTienda[_local1]).costeBoton)))){
BotonStatsTienda(listaStatsTienda[_local1]).apariencia.p_rojo.visible = true;
};
_local1++;
};
p_stats.t_patience.text = VariablesGlobales.valorPaciencia[(VariablesGlobales.nivelPaciencia - 1)];
p_stats.t_rage.text = VariablesGlobales.valorRabia[(VariablesGlobales.nivelRabia - 1)];
p_stats.t_critical.text = (VariablesGlobales.valorCritical[(VariablesGlobales.nivelCritical - 1)] + "%");
p_stats.t_money.text = (VariablesGlobales.valorMoney[(VariablesGlobales.nivelMoney - 1)] + "%");
}
public function MostrarSinFondos(){
p_sin_fondos.gotoAndPlay(1);
p_sin_fondos.visible = true;
}
public function NombreSkillBotonera(_arg1:String):void{
p_inferior.nombre_skill.text = _arg1;
}
public function moviendoSkill(){
Mouse.hide();
botonDrag.visible = true;
botonDrag.startDrag(true);
botonDrag.x = stage.mouseX;
botonDrag.y = stage.mouseY;
}
private function validarSkills():Boolean{
var _local1:int;
_local1 = 0;
while (_local1 < VariablesGlobales.skillsJugador.length) {
if (VariablesGlobales.skillsJugador[_local1] != 0){
return (true);
};
_local1++;
};
trace("no hay skills cargados");
return (false);
}
function onFinishTweenSalidaPrincipal():void{
LanzarPrincipal();
}
private function on_mouse_up(_arg1:MouseEvent):void{
if (botonDrag.visible){
soltandoSkill();
};
}
private function on_button_clicked(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "b_estadisticas":
AbrirEstadisticas();
break;
case "b_medallas":
AbrirLogros();
break;
case "b_ranking":
trace("abrir ranking");
VariablesGlobales.AbrePuntuaciones(main_class);
break;
case "b_stats":
MostrarPanel("stats");
break;
case "b_attacks":
MostrarPanel("attacks");
break;
case "b_buffs":
MostrarPanel("buffs");
break;
case "b_specials":
MostrarPanel("specials");
break;
case "b_premium":
MostrarPanel("premium");
break;
case "b_jugar":
if (validarSkills()){
p_negro.alpha = 0;
p_negro.visible = true;
TweenLite.to(p_negro, 0.1, {delay:0, alpha:1, onComplete:onFinishTweenSalidaJuego});
};
break;
case "b_music":
VariablesGlobales.EstadoMusica(true);
VariablesGlobales.MostrarEstadoMusica(p_inferior.p_botones_comunes.b_music);
break;
case "b_salir":
p_blanco.alpha = 0;
p_blanco.visible = true;
TweenLite.to(p_blanco, 0.1, {delay:0, alpha:1, onComplete:onFinishTweenSalidaPrincipal});
break;
case "b_buy_money1":
break;
case "b_buy_pack_attack":
break;
case "b_buy_pack_buffs":
break;
case "b_buy_pack_special":
break;
case "b_buy_pack_all":
break;
case "b_go":
p_blanco.alpha = 0;
p_blanco.visible = true;
TweenLite.to(p_blanco, 0.1, {delay:0, alpha:1, onComplete:onFinishTweenSalidaPrincipal});
break;
case "b_go_sponsor":
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_PREMIUM);
break;
case "b_sponsor":
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_SPONSOR);
break;
case "b_more_games":
VariablesGlobales.AbreWeb(VariablesGlobales.WEB_MORE);
break;
};
}
private function CargarTiendaPremium(_arg1, _arg2=0):void{
var _local3:String;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:BotonSkillTienda;
_local3 = "";
_local4 = 0;
_local5 = 4;
_local6 = 0;
_local7 = 6;
_local8 = 21;
if (_arg2 != 0){
_local8 = _arg2;
};
_local9 = ((_local8 * 3) + 5);
_local10 = 62;
_local11 = 12;
_local12 = 17;
_local13 = _local11;
_local14 = _local12;
_local15 = 0;
while (_local15 < VariablesGlobales.skillsMan.data.length) {
if (Skill(VariablesGlobales.skillsMan.data[_local15]).Premium > 0){
if (_local3 == Skill(VariablesGlobales.skillsMan.data[_local15]).Name){
_local13 = (_local13 + _local8);
} else {
_local3 = Skill(VariablesGlobales.skillsMan.data[_local15]).Name;
if (_local4 >= _local5){
_local4 = 0;
_local6++;
};
_local13 = (_local11 + (_local6 * _local9));
_local14 = (_local12 + (_local4 * _local10));
_local4++;
};
_local16 = new BotonSkillTienda(VariablesGlobales.skillsMan.data[_local15], _arg1, _local13, _local14);
listaBotonesTienda.push(_local16);
};
_local15++;
};
p_premium.setChildIndex(p_premium.p_premium_bloqueado, (MovieClip(p_premium).numChildren - 1));
}
function onFinishTweenSalidaJuego():void{
lanzarJuego();
}
private function CargarSkillEnBoton(_arg1, _arg2):void{
var _local3:int;
_local3 = 0;
while (_local3 < VariablesGlobales.skillsMan.data.length) {
if (_arg1 == int(Skill(VariablesGlobales.skillsMan.data[_local3]).ID)){
BotonSkillBotoneraTienda(listaBotonesSkills[_arg2]).skillData = VariablesGlobales.skillsMan.data[_local3];
BotonSkillBotoneraTienda(listaBotonesSkills[_arg2]).actualizarBoton();
_local3 = VariablesGlobales.skillsMan.data.length;
};
_local3++;
};
}
}
}//package
Section 423
//TRANSICIONPARTIDA (TRANSICIONPARTIDA)
package {
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class TRANSICIONPARTIDA extends MovieClip {
public var cadenaTemp:String;
public function TRANSICIONPARTIDA(){
addFrameScript(7, frame8, 50, frame51);
}
function frame8(){
cadenaTemp = "versus1";
if (VariablesGlobales.soundMan){
VariablesGlobales.soundMan.playSound(cadenaTemp, 1, 0, 0);
};
}
function frame51(){
stop();
}
}
}//package
Section 424
//Type_ID (Type_ID)
package {
public class Type_ID {
public static const BUFF:Number = 2;
public static const ATTACK:Number = 1;
public static const SPECIAL:Number = 3;
public static const EMPTY:Number = 0;
}
}//package
Section 425
//VariablesGlobales (VariablesGlobales)
package {
import mochi.as3.*;
import flash.geom.*;
import flash.net.*;
import flash.display.*;
import com.tanoku.sonido.*;
public class VariablesGlobales {
public static const WEB_DOMINIO:String = "mochigames.com";
public static const WEB_PREMIUM:String = "http://www.mochigames.com/games/mike-shadow-i-paid-for-it/?utm_source=sponsored_game&utm_medium=exclusive_content&utm_content=mike-shadow-i-paid-for-it&utm_campaign=sponsored_game";
public static const WEB_TANOKU:String = "http://tanoku.com";
public static const WEB_SPONSOR:String = "http://www.mochigames.com/?utm_source=sponsored_game&utm_medium=more_games&utm_content=mike-shadow-i-paid-for-it&utm_campaign=sponsored_game";
public static const WEB_MORE:String = "http://www.mochigames.com/?utm_source=sponsored_game&utm_medium=more_games&utm_content=mike-shadow-i-paid-for-it&utm_campaign=sponsored_game";
public static const WEB_TIPS:String = "http://www.mochigames.com/games/mike-shadow-i-paid-for-it?utm_source=sponsored_game&utm_medium=more_games&utm_content=mike-shadow-i-paid-for-it&utm_campaign=sponsored_game";
public static var cartelPosXIni:int = 350;
public static var scriptsCargados:Boolean = false;
public static var valorRabia:Array;
public static var monedasBonus:int;
public static var movieMan:Skill_Movie;
public static var cartelPosAleatoreo:Boolean = false;
public static var juegoActual:Juego;
public static var est_last_score:Number = 0;
public static var costeRabia:Array;
public static var skillsJugador:Array;
public static var estoyEnSponsor:Boolean = false;
public static var est_last_hits:Number = 0;
public static var nombrePlayer:String = "";
public static var rabiaAct:Number;
public static var attacksPartida:int;
public static var est_last_money:Number = 0;
public static var buffsPartida:int;
public static var dineroProb:int;
public static var est_total_attacks:Number = 0;
public static var cargaFicherosExterna:Boolean = false;
public static var totalSpecials:int = 0;
public static var dineroPorGolpe:int;
public static var est_total_time:Number = 0;
public static var contenedorHijo:MovieClip;
public static var mostrarTutorial:Boolean = true;
public static var timePartida:int;
public static var totalAttacks:int = 0;
public static var tiendaActual:Tienda;
public static var criticoMult:int;
public static var cartelAleatorioIni:Point = new Point(cartelPosX, cartelPosY);
public static var valorPaciencia:Array;
public static var cartelPosYIni:int = 200;
public static var valorMoney:Array;
public static var est_total_specials:Number = 0;
public static var puntosAct:int;
public static var criticoBonus:int;
public static var dineroBonus:int;
public static var costeMoney:Array;
public static var contenedorPadre:MovieClip;
public static var costePaciencia:Array;
public static var est_last_time:Number = 0;
public static var rabiaPorGolpe:Number;
public static var tipoSkillActual:int;
public static var hitsPartida:int;
public static var criticoProb:int;
public static var est_last_specials:Number = 0;
public static var criticoTurnos:int;
public static var valorCritical:Array;
public static var scriptsCargadosOk:Boolean = false;
public static var nivelRabia:int;
public static var musicaActual:String = "";
public static var dineroTotal:int;
public static var scriptMan:ManagerScript;
public static var estadoActual:Estado;
public static var dineroAct:int;
public static var est_total_buffs:Number = 0;
public static var totalBuffs:int = 0;
public static var cartelAleatorioFin:Point = new Point(cartelPosX, cartelPosY);
public static var specialsPartida:int;
public static var est_last_attacks:Number = 0;
public static var GGOcultado:Boolean = false;
public static var est_total_score:Number = 0;
public static var ultimoMenuTienda:String = "stats";
public static var pacienciaMax:Number;
public static var est_total_hits:Number = 0;
public static var skillsMan:Skill_List;
public static var dineroTurnos:int;
public static var nivelCritical:int;
public static var soundMan:SoundManager;
public static var criticPartida:int;
public static var est_total_money:Number = 0;
public static var nivelPaciencia:int;
public static var nivelMoney:int;
public static var fuerzaTurnos:int;
public static var pacienciaAct:Number;
public static var puntosRecord:int;
public static var rabiaPor:Number;
public static var savegameMan:ManagerPartidas;
public static var cartelPosY:int = cartelPosYIni;
public static var logrosMan:ManagerLogros;
public static var est_last_buffs:Number = 0;
public static var musicMan:MusicManager;
public static var skillsComprados:Array;
public static var rabiaMax:Number;
public static var cartelPosX:int = cartelPosXIni;
public static var fuerzaBonus:int;
public static var costeCritical:Array;
public static function comprarSkill(_arg1):Boolean{
var _local2:Boolean;
var _local3:int;
_local2 = false;
_local3 = 0;
while (_local3 < _slot1.skillsComprados.length) {
if (_arg1 == _slot1.skillsComprados[_local3]){
_local2 = true;
_local3 = _slot1.skillsComprados.length;
};
_local3++;
};
if (_local2 == false){
trace(("comprar skill " + _arg1));
_slot1.skillsComprados.push(_arg1);
_local2 = true;
};
if (tiendaActual != null){
tiendaActual.ActualizarSkills();
};
if (_slot1.savegameMan != null){
_slot1.savegameMan.salvarPartida();
};
ControlSkillsComprados();
return (_local2);
}
private static function ControlSkillsComprados():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local4 = 0;
while (_local4 < skillsComprados.length) {
_local5 = indiceTipoSkill(skillsComprados[_local4]);
if (_local5 == 1){
_local1++;
};
if (_local5 == 2){
_local2++;
};
if (_local5 == 3){
_local3++;
};
_local4++;
};
trace(("ataques comprados " + _local1));
trace(("buffs comprados " + _local2));
trace(("especiales comprados " + _local2));
if (_local1 >= totalAttacks){
logrosMan.DesbloquearLogro(ManagerLogros.DESBLOQUEAR_ATAQUES);
};
if (_local2 >= totalBuffs){
logrosMan.DesbloquearLogro(ManagerLogros.DESBLOQUEAR_BUFFS);
};
if (_local3 >= totalSpecials){
logrosMan.DesbloquearLogro(ManagerLogros.DESBLOQUEAR_ESPECIALES);
};
if (((((logrosMan.LogroDesbloqueado(ManagerLogros.DESBLOQUEAR_ATAQUES)) && (logrosMan.LogroDesbloqueado(ManagerLogros.DESBLOQUEAR_BUFFS)))) && (logrosMan.LogroDesbloqueado(ManagerLogros.DESBLOQUEAR_ESPECIALES)))){
logrosMan.DesbloquearLogro(ManagerLogros.DESBLOQUEAR_TODO);
};
}
public static function EstadoMusica(_arg1:Boolean=false):int{
if (_arg1){
_slot1.musicMan.Mute();
};
_slot1.soundMan.Activo = _slot1.musicMan.Activo;
if (_slot1.musicMan.Activo){
if (_slot1.musicaActual != ""){
if (_slot1.musicMan.isSoundPaused(_slot1.musicaActual)){
_slot1.musicMan.playSound(_slot1.musicaActual, 1, 0, 99);
};
};
return (2);
//unresolved jump
};
return (1);
}
public static function comprarTodoslosSkills(_arg1:int):void{
var _local2:Array;
var _local3:int;
_local2 = [];
_local3 = 0;
while (_local3 < skillsMan.data.length) {
if (Skill(skillsMan.data[_local3]).Type == _arg1){
_local2.push(skillsMan.data[_local3]);
};
_local3++;
};
trace((("lanzar " + _local2.length) + " compras"));
_local3 = 0;
while (_local3 < _local2.length) {
comprarSkill(_local2[_local3].ID);
_local3++;
};
}
public static function iniciarDatosStats():void{
_slot1.costePaciencia = new Array();
_slot1.valorPaciencia = new Array();
_slot1.costePaciencia.push(0);
_slot1.valorPaciencia.push(100);
_slot1.costePaciencia.push(100);
_slot1.valorPaciencia.push(200);
_slot1.costePaciencia.push(500);
_slot1.valorPaciencia.push(300);
_slot1.costePaciencia.push(1000);
_slot1.valorPaciencia.push(400);
_slot1.costePaciencia.push(2500);
_slot1.valorPaciencia.push(500);
_slot1.costePaciencia.push(5000);
_slot1.valorPaciencia.push(600);
_slot1.costePaciencia.push(7500);
_slot1.valorPaciencia.push(700);
_slot1.costePaciencia.push(10000);
_slot1.valorPaciencia.push(800);
_slot1.costePaciencia.push(30000);
_slot1.valorPaciencia.push(900);
_slot1.costePaciencia.push(50000);
_slot1.valorPaciencia.push(1000);
_slot1.costeRabia = new Array();
_slot1.valorRabia = new Array();
_slot1.costeRabia.push(0);
_slot1.valorRabia.push(10);
_slot1.costeRabia.push(100);
_slot1.valorRabia.push(20);
_slot1.costeRabia.push(500);
_slot1.valorRabia.push(30);
_slot1.costeRabia.push(1000);
_slot1.valorRabia.push(40);
_slot1.costeRabia.push(2500);
_slot1.valorRabia.push(50);
_slot1.costeRabia.push(5000);
_slot1.valorRabia.push(60);
_slot1.costeRabia.push(7500);
_slot1.valorRabia.push(70);
_slot1.costeRabia.push(10000);
_slot1.valorRabia.push(80);
_slot1.costeRabia.push(15000);
_slot1.valorRabia.push(90);
_slot1.costeRabia.push(20000);
_slot1.valorRabia.push(100);
_slot1.costeCritical = new Array();
_slot1.valorCritical = new Array();
_slot1.costeCritical.push(0);
_slot1.valorCritical.push(5);
_slot1.costeCritical.push(5);
_slot1.valorCritical.push(10);
_slot1.costeCritical.push(10);
_slot1.valorCritical.push(15);
_slot1.costeCritical.push(25);
_slot1.valorCritical.push(20);
_slot1.costeCritical.push(100);
_slot1.valorCritical.push(25);
_slot1.costeCritical.push(250);
_slot1.valorCritical.push(30);
_slot1.costeCritical.push(500);
_slot1.valorCritical.push(35);
_slot1.costeCritical.push(1000);
_slot1.valorCritical.push(40);
_slot1.costeCritical.push(1500);
_slot1.valorCritical.push(45);
_slot1.costeCritical.push(3000);
_slot1.valorCritical.push(50);
_slot1.costeMoney = new Array();
_slot1.valorMoney = new Array();
_slot1.costeMoney.push(0);
_slot1.valorMoney.push(5);
_slot1.costeMoney.push(5);
_slot1.valorMoney.push(10);
_slot1.costeMoney.push(10);
_slot1.valorMoney.push(15);
_slot1.costeMoney.push(25);
_slot1.valorMoney.push(20);
_slot1.costeMoney.push(100);
_slot1.valorMoney.push(25);
_slot1.costeMoney.push(250);
_slot1.valorMoney.push(30);
_slot1.costeMoney.push(500);
_slot1.valorMoney.push(35);
_slot1.costeMoney.push(1000);
_slot1.valorMoney.push(40);
_slot1.costeMoney.push(1500);
_slot1.valorMoney.push(45);
_slot1.costeMoney.push(3000);
_slot1.valorMoney.push(50);
_slot1.skillsComprados = new Array();
_slot1.skillsJugador = new Array();
_slot1.rabiaPorGolpe = 1.5;
_slot1.dineroPorGolpe = 25;
_slot1.criticoMult = 2;
}
public static function duplicateDisplayObject(_arg1:DisplayObject, _arg2:Boolean=false):DisplayObject{
var _local3:Class;
var _local4:DisplayObject;
var _local5:Rectangle;
_local3 = Object(_arg1).constructor;
_local4 = new (_local3);
_local4.transform = _arg1.transform;
_local4.filters = _arg1.filters;
_local4.cacheAsBitmap = _arg1.cacheAsBitmap;
_local4.opaqueBackground = _arg1.opaqueBackground;
if (_arg1.scale9Grid){
_local5 = _arg1.scale9Grid;
_local4.scale9Grid = _local5;
};
if (((_arg2) && (_arg1.parent))){
_arg1.parent.addChild(_local4);
};
return (_local4);
}
public static function AbreWeb(_arg1:String, _arg2:Boolean=true){
if (_arg1 == WEB_TANOKU){
if (_arg2){
_slot1.logrosMan.DesbloquearLogro(ManagerLogros.VISITAR_TANOKU);
};
};
if (_arg1 == WEB_SPONSOR){
if (_arg2){
_slot1.logrosMan.DesbloquearLogro(ManagerLogros.VISITAR_SPONSOR);
};
};
navigateToURL(new URLRequest(_arg1));
}
public static function AbrePuntuaciones(_arg1=null):void{
var o:Object;
var boardID:String;
var main_class = _arg1;
if (main_class != null){
o = {n:[8, 8, 1, 15, 5, 5, 7, 1, 2, 15, 8, 5, 12, 5, 0, 11], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({onClose:function (){
}, boardID:boardID});
};
}
public static function SubmitPuntuaciones(_arg1=null):void{
var o:Object;
var boardID:String;
var main_class = _arg1;
if (main_class != null){
o = {n:[8, 8, 1, 15, 5, 5, 7, 1, 2, 15, 8, 5, 12, 5, 0, 11], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({onClose:function (){
}, boardID:boardID, score:_slot1.puntosRecord});
};
}
private static function indiceTipoSkill(_arg1):int{
var _local2:int;
var _local3:int;
_local2 = 0;
_local3 = 0;
while (_local3 < skillsMan.data.length) {
if (Skill(skillsMan.data[_local3]).ID == _arg1){
return (Skill(skillsMan.data[_local3]).Type);
};
_local3++;
};
return (_local2);
}
public static function balanceDinero(_arg1, _arg2:Boolean=true){
dineroTotal = (dineroTotal + _arg1);
if (tiendaActual != null){
tiendaActual.ActualizarDinero();
tiendaActual.ActualizarSkills();
};
if (_arg2){
if (dineroTotal >= 100){
logrosMan.DesbloquearLogro(ManagerLogros.CONSEGUIR_1_DINERO);
};
if (dineroTotal >= 1000){
logrosMan.DesbloquearLogro(ManagerLogros.CONSEGUIR_2_DINERO);
};
if (dineroTotal >= 10000){
logrosMan.DesbloquearLogro(ManagerLogros.CONSEGUIR_3_DINERO);
};
if (dineroTotal >= 100000){
logrosMan.DesbloquearLogro(ManagerLogros.CONSEGUIR_4_DINERO);
};
if (_slot1.savegameMan != null){
_slot1.savegameMan.salvarPartida();
};
};
}
public static function MostrarEstadoMusica(_arg1):void{
if (_slot1.musicMan.Activo){
_arg1.gotoAndStop(1);
} else {
_arg1.gotoAndStop(2);
};
}
public static function calcularValorAleatorio(_arg1:int=0, _arg2:int=0):int{
var _local3:*;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
}
}//package
Section 426
//Ventana (Ventana)
package {
import flash.events.*;
import flash.display.*;
public class Ventana extends MovieClip {
public var main_class:MovieClip;
public function Ventana(){
addEventListener(Event.ADDED_TO_STAGE, Ventana_Added);
addEventListener(Event.REMOVED_FROM_STAGE, Ventana_Removed);
}
protected function Cargar_Ventana():void{
}
private function Ventana_Added(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, Ventana_Added);
Cargar_Ventana();
}
protected function Descargar_Ventana():void{
}
private function Ventana_Removed(_arg1:Event):void{
removeEventListener(Event.REMOVED, Ventana_Removed);
Descargar_Ventana();
}
}
}//package
Section 427
//versus1 (versus1)
package {
import flash.media.*;
public dynamic class versus1 extends Sound {
}
}//package